Version Description
(2022/09/06) = * Add: Added column in the Media Library (to edit faster).
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Gallery Custom Links |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.3
- app/index.js +1 -1
- app/index.js.map +1 -1
- app/vendor.js +2 -2
app/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
!function(e){function n(n){for(var r,i,l=n[0],c=n[1],u=n[2],d=0,f=[];d<l.length;d++)i=l[d],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&f.push(a[i][0]),a[i]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(s&&s(n);f.length;)f.shift()();return o.push.apply(o,u||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,l=1;l<t.length;l++){var c=t[l];0!==a[c]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},a={0:0},o=[];function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="";var l=window.wpJsonMgcl=window.wpJsonMgcl||[],c=l.push.bind(l);l.push=n,l=l.slice();for(var u=0;u<l.length;u++)n(l[u]);var s=c;o.push([100,1]),t()}({0:function(e,n){e.exports=React},10:function(e,n){e.exports=ReactDOM},100:function(e,n,t){"use strict";t.r(n);var r=t(0),a=t.n(r),o=t(10),i=t.n(o),l=t(80),c=t(1),u=t.n(c);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var g=function(e){var n=e.spinner,t=void 0===n||n,o=e.busy,i=void 0!==o&&o,l=e.overlayStyle,c=m(Object(r.useState)(!0),2),u=c[0],d=c[1];Object(r.useEffect)((function(){var e;return i?d(!0):e=setTimeout((function(){d(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var p=u?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:l},Boolean(t)&&a.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null))),a.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,b=f(f({},e),{},{busy:void 0,spinner:void 0});return a.a.createElement("div",s({style:{position:"relative"}},b),p,e.children)};g.propTypes={busy:u.a.bool.isRequired,spinner:u.a.bool,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]).isRequired};var h=g,y=t(2),v=t(4);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var E,j={black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"},S={danger:j.red,primary:j.blue,secondary:j.lightBlue,success:j.green},C=O(O(O({},j),S),{},{fontFamily:'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"}),P=t(3),A=["type"];function z(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var N,R,I=y.a.div(E||(N=["\n width: ",";\n padding-top: ",";\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n"],R||(R=N.slice(0)),E=Object.freeze(Object.defineProperties(N,{raw:{value:Object.freeze(R)}}))),(function(e){return e.size||"50%"}),(function(e){return e.size||"50%"}),(function(e){return e.color||"#333"})),D=function(e){return a.a.createElement(I,e,a.a.createElement("div",{className:"double-bounce1"}),a.a.createElement("div",{className:"double-bounce2"}))},T=function(e){var n=e.type,t=void 0===n?"circle":n,r=z(e,A);switch(t){case"circle":return a.a.createElement(D,r);default:return null}},_=function(e){return a.a.createElement(T,e)};_.propTypes={type:u.a.string},_.defaultProps={type:"circle"};var B=t(34),M=t.n(B),F=t(35),L=t.n(F),U=t(36),G=t.n(U),q=t(12),H=t.n(q),$=t(13),W=t.n($),K=t(14),J=t.n(K),V=t(6),Y=t.n(V),Z=t(5),X=t.n(Z),Q=t(7),ee=t.n(Q),ne=t(15),te=t.n(ne),re=t(16),ae=t.n(re),oe=t(37),ie=t.n(oe),le=t(38),ce=t.n(le),ue=t(17),se=t.n(ue),de=t(39),fe=t.n(de),pe=t(40),me=t.n(pe),be=t(41),ge=t.n(be),he=t(42),ye=t.n(he),ve=(t(85),t(43)),xe=t.n(ve),we=t(44),Oe=t.n(we),ke=t(45),Ee=t.n(ke),je=t(46),Se=t.n(je),Ce=t(47),Pe=t.n(Ce),Ae=t(48),ze=t.n(Ae),Ne=t(49),Re=t.n(Ne),Ie=t(50),De=t.n(Ie),Te=t(8),_e=t.n(Te),Be=t(18),Me=t.n(Be),Fe=t(19),Le=t.n(Fe),Ue=t(51),Ge=t.n(Ue),qe=t(52),He=t.n(qe),$e=t(53),We=t.n($e),Ke=t(54),Je=t.n(Ke),Ve=t(55),Ye=t.n(Ve),Ze=t(56),Xe=t.n(Ze),Qe=t(57),en=t.n(Qe),nn=t(58),tn=t.n(nn),rn=t(59),an=t.n(rn),on=t(60),ln=t.n(on),cn=t(61),un=t.n(cn),sn=t(62),dn=t.n(sn),fn=t(63),pn=t.n(fn),mn=t(64),bn=t.n(mn),gn=t(65),hn=t.n(gn),yn=t(66),vn=t.n(yn),xn=t(67),wn=t.n(xn),On=t(68),kn=t.n(On),En=t(69),jn=t.n(En),Sn=t(70),Cn=t.n(Sn),Pn=t(71),An=t.n(Pn),zn=t(72),Nn=t.n(zn),Rn={lock:M.a,"lock-open":L.a,"file-undo":G.a,"chevron-double-left":H.a,"chevron-double-right":W.a,"chevron-left":J.a,"chevron-right":Y.a,"chevron-down":X.a,"chevron-up":ee.a,pause:te.a,play:ae.a,replay:ie.a,check:ce.a,stop:se.a,delete:fe.a,undo:me.a,alert:ge.a,database:ye.a,tools:xe.a,cog:Oe.a,close:Ee.a,cat:Se.a,upload:un.a,trash:Pe.a,pencil:ze.a,dashboard:Re.a,search:De.a,folder:_e.a,"folder-open":Me.a,"image-multiple-outline":Le.a,plus:Ge.a,"folder-plus":He.a,"image-plus":We.a,"view-grid":Je.a,"format-list-bulleted":Ye.a,twitter:Xe.a,instagram:en.a,facebook:tn.a,star:an.a,"timer-outline":ln.a,link:dn.a,linkedin:pn.a,pinterest:bn.a,"zoom-in":hn.a,"info-outline":vn.a,"arrow-up":wn.a,"arrow-down":kn.a,sort:jn.a,eye:Cn.a,"rocket-launch":An.a,"calendar-month":Nn.a},In=t(23),Dn=t.n(In);function Tn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||_n(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _n(e,n){if(e){if("string"==typeof e)return Bn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Bn(e,n):void 0}}function Bn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Mn,Fn,Ln=function(){var e=Object(r.useRef)(),n=Tn(Object(r.useState)({}),2),t=n[0],a=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&a({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},Un=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n};new Dn.a({concurrency:1,autoStart:!1});function Gn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return qn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qn(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Hn(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var $n=y.a.div(Mn||(Mn=Hn(["\n\tdisplay: flex;\n"]))),Wn=y.a.div(Fn||(Fn=Hn(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"])),C.blackRGB,C.white,C.fontFamily,C.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),C.blackRGB,C.blackRGB,C.blackRGB,C.blackRGB,(function(e){return e.style})),Kn=function(e){var n=e.text,t=void 0===n?"Hello world!":n,o=e.position,i=void 0===o?"top":o,l=Gn(Object(r.useState)(!1),2),c=l[0],u=l[1],s=Ln(),d=s.ref,f=s.width,p=s.height,m=Ln(),b=m.ref,g=m.width,h=m.height,y=Object(r.useMemo)((function(){var e=0,n=0;if("top"===i)e=-1*p-5,n=f/2*-1+g/2;else if("bottom"===i)e=h+5,n=f/2*-1+g/2;else if("left"===i){e=(p-h)/2*-1,n=-1*f-5}else if("right"===i){e=(p-h)/2*-1,n=g+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[i,f,p,g,h]);return a.a.createElement($n,null,a.a.createElement(Wn,{ref:d,visible:c,className:i,style:y},t),a.a.createElement("div",{ref:b,onMouseEnter:function(){return t&&u(!0)},onMouseLeave:function(){return u(!1)}},e.children))},Jn=function(e){return a.a.createElement(Kn,e)};Jn.propTypes={text:u.a.string,position:u.a.oneOf(["top","right","bottom","left"])},Jn.defaultProps={text:"Hello world!",position:"top"};var Vn,Yn,Zn=["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled","raw","isBusy"];function Xn(){return(Xn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Qn(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function et(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var nt=y.a.div(Vn||(Vn=et(["\n display: flex;\n align-items: center;\n"]))),tt=Object(y.a)(P.Icon)(Yn||(Yn=et(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"])),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(v.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),rt=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,o=e.className,i=void 0===o?"":o,l=e.title,c=e.tooltip,u=e.containerStyle,s=e.color,d=e.hoverColor,f=e.disabled,p=void 0!==f&&f,m=e.raw,b=e.isBusy,g=void 0!==b&&b,h=Qn(e,Zn);h.width||h.height||(h.width=h.height=30);var y=function(){return"string"==typeof n?Rn[n]||null:n},v="nui-icon ".concat(i).concat(h.onClick?" nui-clickable":"").concat(r?" spin":"").concat(p?" disabled":"").concat(g?" busy":"");return c?a.a.createElement(Jn,{text:c.text,position:c.position||"top"},a.a.createElement(nt,{style:u},a.a.createElement(tt,Xn({icon:y(),className:v,color:s,hoverColor:d},h)))):m?a.a.createElement(tt,Xn({icon:y(),className:v,color:s,hoverColor:d},h)):a.a.createElement(nt,{style:u,title:l},a.a.createElement(tt,Xn({icon:y(),className:v,color:s,hoverColor:d},h)),c?a.a.createElement(Jn,null,c):null)},at=function(e){return a.a.createElement(rt,e)};at.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:u.a.string,spinning:u.a.bool,className:u.a.string,tooltip:u.a.string,raw:u.a.bool,isBusy:u.a.bool},at.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0,raw:void 0,isBusy:!1};var ot,it=["className","icon","onClick","disabled","color","small","isBusy","width","height","children","rounded","busyText","spinning","hideBusyIcon"];function lt(){return(lt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ct(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var ut=Object(y.a)((function(e){var n=e.className,t=e.icon,o=void 0===t?null:t,i=e.onClick,l=e.disabled,c=void 0!==l&&l,u=e.color,s=void 0===u?null:u,d=e.small,f=e.isBusy,p=void 0!==f&&f,m=e.width,b=(e.height,e.children),g=e.rounded,h=e.busyText,y=e.spinning,v=void 0!==y&&y,x=e.hideBusyIcon,w=void 0!==x&&x,O=ct(e,it),k=!!o,E=Object(r.useMemo)((function(){var e=null!=m?m:30;return g?e-10:e-6}),[m,g]),j="nui-button ".concat(n||"").concat(k?" has-icon":"").concat(s?" custom-color":"").concat(d?" small":"").concat(g?" rounded":"").concat(p?" busy":"");return a.a.createElement("button",lt({type:"button",className:j,onClick:i,disabled:c},O),p&&!w&&!k&&a.a.createElement(_,{type:"circle",color:"#fff",size:g?"82%":"35%"}),p&&!!h&&a.a.createElement("span",{style:{marginLeft:w?0:"4px",marginRight:"2xp"}},h),k&&a.a.createElement(at,{icon:o,width:E,height:E,spinning:v,raw:!0,style:g?{margin:"0 auto"}:{}}),!!b&&!p&&a.a.createElement("span",{style:{marginLeft:k?"4px":0,marginRight:k?"2xp":0}},b))}))(ot||(ot=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ","px;\n width: ","px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ","\n"])),C.fontFamily,C.fontSizeText,C.blue,Object(v.a)(.1,C.blue),C.lightBlue,C.blue,C.blue,Object(v.a)(.1,C.lightBlue),C.red,C.red,Object(v.a)(.1,C.red),C.green,C.green,Object(v.a)(.1,C.green),C.fontSizeSmallButton,C.deepBlue,C.deepBlue,Object(v.a)(.1,C.deepBlue),(function(e){var n,t;return null!==(n=e.height)&&void 0!==n?n:null!==(t=e.width)&&void 0!==t?t:30}),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:30}),(function(e){return st(e.color)})),st=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(v.a)(.1,e),";\n }\n }\n ")},dt=function(e){return a.a.createElement(ut,e)};dt.propTypes={className:u.a.oneOf(["primary","secondary","danger","success","header"]),disabled:u.a.bool,icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["setting","edit","trash"])]),color:u.a.string,onClick:u.a.func.isRequired,rounded:u.a.bool,isBusy:u.a.bool,spinning:u.a.bool,busyText:u.a.string,hideBusyIcon:u.a.bool},dt.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){},rounded:void 0,isBusy:!1,spinning:!1,busyText:void 0,hideBusyIcon:!1};var ft,pt=["show","className"];function mt(){return(mt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function bt(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var gt,ht,yt,vt,xt=y.a.a(ft||(ft=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"])),C.yellow,C.white,C.fontFamily,C.white),wt=function(e){var n=e.show,t=void 0===n||n,r=e.className,o=bt(e,pt);return t?a.a.createElement(xt,mt({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},o),"Pro Only"):null},Ot=function(e){return a.a.createElement(wt,e)};function kt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Et(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Et(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Et(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function jt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Ot.propTypes={show:u.a.bool,className:u.a.string},Ot.defaultProps={show:!0,className:void 0};var St,Ct=y.a.div(gt||(gt=jt(["\n display: inline-block;\n"]))),Pt=y.a.button(ht||(ht=jt(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"])),C.blue,C.fontFamily,C.fontSizeText,Object(v.a)(.1,C.blue)),At=y.a.div(yt||(yt=jt(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"])),C.blue,C.lightShadow,C.blue),zt=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,o=e.isPro,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.hideChevron,s=e.titleStyle,d=void 0===s?{}:s,f=kt(a.a.useState(!1),2),p=f[0],m=f[1],b=Un((function(){m(!1)})),g=Ln(),h=g.ref,y=g.width,v=function(){m(!p)},x=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{isPro:i,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),v()}})}));return a.a.createElement(Ct,{ref:b},a.a.createElement(Pt,{ref:h,type:"button",disabled:r,onClick:v,style:c},a.a.createElement("span",{style:d},n),!u&&a.a.createElement(P.Icon,{icon:X.a,width:"24",height:"24",style:{marginLeft:"4px"}})),p&&a.a.createElement(At,{style:{transform:"translateX(calc(-50% + ".concat(y/2,"px))")}},x))},Nt=y.a.button(vt||(vt=jt(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n\n &.separator {\n border-top: 1px solid ",";\n font-size: 10px;\n padding: 5px;\n }\n"])),C.blue,C.fontFamily,C.fontSizeText,Object(v.a)(.1,C.blue),C.proGray,C.white),Rt=function(e){var n=e.onClick,t=e.children,r=e.isPro,o=e.requirePro,i=void 0!==o&&o,l=e.disabled,c=e.separator,u=i&&!r;return a.a.createElement(Nt,{type:"button",className:"".concat(u?"is-pro":""," ").concat(c?"separator":""),onClick:n,disabled:l||u},a.a.createElement("span",null,t),u&&!r&&a.a.createElement(Ot,null))},It=function(e){return a.a.createElement(zt,e)},Dt=function(e){return a.a.createElement(Rt,e)};function Tt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||_t(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _t(e,n){if(e){if("string"==typeof e)return Bt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Bt(e,n):void 0}}function Bt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}It.propTypes={title:u.a.string,disabled:u.a.bool,isPro:u.a.bool,hideChevron:u.a.bool,style:u.a.object,titleStyle:u.a.object},It.defaultProps={title:void 0,disabled:!1,isPro:!1,hideChevron:void 0,style:{},titleStyle:{}},Dt.propTypes={onClick:u.a.func.isRequired,requirePro:u.a.bool,separator:u.a.bool},Dt.defaultProps={onClick:function(){},requirePro:!1,separator:void 0};var Mt=y.a.div(St||(St=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"]))),Ft=function(e){var n=e.className,t=e.children,o=e.nekoErrors,i=void 0===o?[]:o,l=e.style,c=void 0===l?{}:l,u=Tt(Object(r.useState)(!1),2),s=u[0],d=u[1],f=Tt(Object(r.useState)(!1),2),p=f[0],m=f[1];if(i&&!s){var b,g=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_t(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}(i);try{for(g.s();!(b=g.n()).done;){var h=b.value;if(h){d(h);break}}}catch(e){g.e(e)}finally{g.f()}}return a.a.createElement(Mt,{className:n||"",style:c},s&&a.a.createElement("div",{className:"neko-rest-error"},a.a.createElement("div",{className:"container"},!p&&a.a.createElement(a.a.Fragment,null,a.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),a.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),a.a.createElement("p",null,a.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),a.a.createElement("p",{className:"neko-debug"},a.a.createElement("small",null,"URL: ",s.url,a.a.createElement("br",null),"CODE: ",s.code,a.a.createElement("br",null),"MESSAGE: ",s.message,a.a.createElement("br",null)))),s.body&&p&&a.a.createElement("p",{className:"neko-debug"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:s.body}})),s.body&&a.a.createElement(dt,{color:"#a94242",onClick:function(){return m(!p)}},p?"Hide":"Display"," response from server"),a.a.createElement(dt,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},Lt=function(e){return a.a.createElement(Ft,e)};Lt.propTypes={className:u.a.string,style:u.a.object,nekoErrors:u.a.bool},Lt.defaultProps={className:void 0,style:{},nekoErrors:!1};var Ut,Gt,qt,Ht,$t,Wt=["children"];function Kt(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Jt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Vt,Yt=y.a.h1(Ut||(Ut=Jt(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeH1),Zt=y.a.h2(Gt||(Gt=Jt(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeH2),Xt=y.a.p(qt||(qt=Jt(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),Qt=y.a.span(Ht||(Ht=Jt(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),er=y.a.label($t||($t=Jt(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),C.fontFamily,C.fontSizeText),nr=function(e){var n=e.children,t=Kt(e,Wt);return e.h1?a.a.createElement(Yt,t,n):e.h2?a.a.createElement(Zt,t,n):e.p?a.a.createElement(Xt,t,n):e.label?a.a.createElement(er,t,n):a.a.createElement(Qt,t,n)},tr=function(e){return a.a.createElement(nr,e)};tr.propTypes={h1:u.a.any,h2:u.a.any,p:u.a.any},tr.defaultProps={h1:void 0,h2:void 0,p:void 0};var rr,ar,or=y.a.div(Vt||(Vt=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-size: ",";\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"])),C.fontSizeText,C.blue,C.blue,C.white,C.white),ir=function(e){var n=e.title,t=e.children,r=e.className,o=e.busy,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.action;return a.a.createElement(or,{className:"nui-block "+(r||""),style:c},a.a.createElement(h,{busy:i},a.a.createElement("div",{className:"nui-block-header"},a.a.createElement(tr,{h2:!0,className:"nui-block-title"},n),!!u&&u),a.a.createElement("div",{className:"nui-block-content"},t)))},lr=function(e){return a.a.createElement(ir,e)};function cr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}lr.propTypes={title:u.a.string,className:u.a.oneOf(["","primary"]),style:u.a.object,action:u.a.element},lr.defaultProps={title:void 0,className:"",style:{},action:void 0};var ur,sr=y.a.div(rr||(rr=cr(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"])),C.fontSizeText,C.fontFamily,C.white,C.blue),dr=y.a.div(ar||(ar=cr(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"])),C.lightGray2),fr=function(e){var n=e.children,t=e.header,r=e.headerAlign,o=void 0===r?"left":r,i=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,d=void 0===s?{}:s;return a.a.createElement(sr,{className:u||"",style:d},t&&a.a.createElement(dr,{className:"align-".concat(o)},t),a.a.createElement("div",{className:"content"},n),i&&a.a.createElement(dr,{className:"align-".concat(c)},i))},pr=function(e){return a.a.createElement(fr,e)};pr.propTypes={header:u.a.element,headerAlign:u.a.oneOf(["left","right"]),footer:u.a.element,footerAlign:u.a.oneOf(["left","right"]),className:u.a.string,style:u.a.object},pr.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}};var mr,br,gr=Object(y.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,o=void 0===r?"left":r;return a.a.createElement("div",{className:e.className||""},t?a.a.createElement("div",{className:"nui-settings-head"},t):null,a.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(o)},e.children))}))(ur||(ur=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"])),C.fontFamily,C.fontFamily),hr=function(e){return a.a.createElement(gr,e)};function yr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}hr.propTypes={title:u.a.string,className:u.a.string,contentAlign:u.a.string},hr.defaultProps={title:"",className:void 0,contentAlign:"left"};var vr=y.a.div(mr||(mr=yr(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]))),xr=Object(y.a)((function(e){return e.children?a.a.createElement("div",{className:e.className},e.children):null}))(br||(br=yr(["\n background-color: ",";\n color: white;\n"])),C.blue),wr=function(e){return a.a.createElement(vr,{className:"window"},a.a.createElement(xr,null,e.title),e.children)},Or=function(e){return a.a.createElement(wr,e)};Or.propTypes={title:u.a.string},Or.defaultProps={title:void 0};var kr,Er,jr=["full","minimal"];function Sr(){return(Sr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Cr(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Pr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Ar=y.a.div(kr||(kr=Pr(["\n display: flex;\n flex-wrap: wrap;\n"]))),zr=y.a.div(Er||(Er=Pr(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]))),Nr=function(e){return a.a.createElement(Ar,null,e.children)},Rr=function(e){var n=e.full,t=e.minimal,r=Cr(e,jr),o=n?"full":"";return o+=t?" minimal":"",a.a.createElement(zr,Sr({className:o},r),e.children)},Ir=function(e){return a.a.createElement(Nr,e)},Dr=function(e){return a.a.createElement(Rr,e)};Ir.propTypes={},Ir.defaultProps={},Dr.propTypes={full:u.a.any},Dr.defaultProps={full:void 0};var Tr,_r=t(9),Br=t.n(_r),Mr=t(20),Fr=t.n(Mr);var Lr,Ur=Object(y.a)((function(e){var n=e.id,t=e.name,r=e.checked,o=void 0!==r&&r,i=e.onChange,l=e.label,c=e.description,u=e.isPro,s=e.disabled,d=e.requirePro,f=void 0!==d&&d,p=e.isBusy,m=void 0!==p&&p,b=f&&!u,g=s||b,h=g?"disabled":"";return a.a.createElement("div",{className:["nui-checkbox",e.className,h].join(" "),onClick:function(e){return e.stopPropagation()}},a.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,disabled:g||m}),a.a.createElement("label",{htmlFor:n,onClick:function(){i?i(!o,n):console.log("The onChange handler it not set for this checkbox.",e)}},a.a.createElement("div",{className:"nui-checkbox-check-container"},m?a.a.createElement("div",{className:"nui-checkbox-busy-container"},a.a.createElement(P.Icon,{icon:Br.a,width:"30px",height:"30px",color:C.blue}),a.a.createElement(_,{type:"circle",size:"16px",style:{position:"absolute",top:"7px",left:"7px"}})):a.a.createElement(P.Icon,{icon:o?Fr.a:Br.a,width:"30px",height:"30px",color:g?C.disabledForm:C.blue})),a.a.createElement("div",{className:"nui-checkbox-inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(Ot,{className:"inline",show:b})),c?a.a.createElement("small",{className:"description"},c):null)))}))(Tr||(Tr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n user-select: none;\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"])),C.fontFamily,C.disabledForm),Gr=function(e){return a.a.createElement(Ur,e)};Gr.propTypes={id:u.a.string,name:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,isPro:u.a.bool,requirePro:u.a.bool,isBusy:u.a.bool},Gr.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1,isBusy:!1};var qr=Object(y.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return a.a.Children.map(e.children,(function(e){return e.props.name?e:a.a.cloneElement(e,{name:n,isPro:r})}))}))(Lr||(Lr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n"]))),Hr=function(e){return a.a.createElement(qr,e)};Hr.propTypes={name:u.a.string,mas:u.a.number,isPro:u.a.bool},Hr.defaultProps={name:void 0,mas:-1,isPro:!1};var $r,Wr=["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle","onChange","onBlur","onReset"];function Kr(){return(Kr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Jr(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Vr(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Vr(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Yr(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Zr=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.onEnter,d=void 0===s?null:s,f=e.readOnly,p=void 0!==f&&f,m=e.type,b=void 0===m?"text":m,g=e.step,h=void 0===g?1:g,y=e.min,v=void 0===y?1:y,x=e.max,w=void 0===x?999:x,O=e.maxLength,k=void 0===O?void 0:O,E=e.className,j=e.style,S=e.natural,P=void 0!==S&&S,A=e.inputStyle,z=e.onChange,N=e.onBlur,R=e.onReset,I=Yr(e,Wr),D=Jr(Object(r.useState)(i),2),T=D[0],_=D[1],B=!!z,M=k||("number"===b?3:void 0);Object(r.useEffect)((function(){B||_(i)}),[i]);var F=function(e){B?z(e.target.value,n):_(e.target.value,n)},L=function(e){d&&"Enter"===event.key&&(e.preventDefault(),d(e.target.value,n))},U=function(e){N&&i!==e.target.value&&N(e.target.value,n)},G="neko-input ".concat(P?" natural":"");return a.a.createElement("div",{className:[E].join(" "),style:j},a.a.createElement("div",{style:{position:"relative"}},"number"===b?a.a.createElement("input",Kr({className:[G].join(" "),id:n,name:t,value:B?i:T,type:b,step:h,min:v,max:w,maxLength:M,autoComplete:"off",placeholder:u,style:A,onChange:F,onKeyPress:L,onBlur:U,readOnly:p},I)):a.a.createElement("input",Kr({className:[G].join(" ")},I,{id:n,name:t,value:B?i:T,type:b,spellCheck:"false",autoComplete:"off",placeholder:u,style:A,maxLength:M,onChange:F,onKeyPress:L,onBlur:U,readOnly:p},I)),!!i&&!!R&&a.a.createElement(at,{icon:"close",width:24,style:{position:"absolute",top:"3px",right:"3px"},color:C.blue,onClick:R})),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))($r||($r=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.gray,C.fontFamily,C.fontSizeSmall),Xr=function(e){return a.a.createElement(Zr,e)};Xr.propTypes={id:u.a.string,type:u.a.oneOf(["number","text"]),name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,step:u.a.number,min:u.a.number,max:u.a.number,maxLength:u.a.number,natural:u.a.bool,onReset:u.a.func},Xr.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1,onReset:void 0};var Qr,ea=["id","name","value","description","placeholder","avoidOnEnterWithShift","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"];function na(){return(na=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ta(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return ra(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ra(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ra(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function aa(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var oa=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.avoidOnEnterWithShift,d=void 0!==s&&s,f=e.onEnter,p=void 0===f?null:f,m=e.readOnly,b=void 0!==m&&m,g=e.maxLength,h=void 0===g?null:g,y=e.className,v=e.style,x=e.textAreaStyle,w=void 0===x?{}:x,O=e.countable,k=void 0!==O&&O,E=aa(e,ea),j=ta(Object(r.useState)(i),2),S=j[0],C=j[1],P=ta(Object(r.useState)(0),2),A=P[0],z=P[1],N=ta(Object(r.useState)(!1),2),R=N[0],I=N[1],D=!!e.onChange,T=Object(r.useCallback)((function(e){I(e.shiftKey)}),[]),_=Object(r.useCallback)((function(){I(!1)}),[]);Object(r.useEffect)((function(){return document.addEventListener("keydown",T,!1),document.addEventListener("keyup",_,!1),function(){document.removeEventListener("keydown",T,!1),document.removeEventListener("keyup",_,!1)}}),[]),Object(r.useEffect)((function(){D||C(i),k&&z(i.length)}),[i,k]);var B=Object(r.useCallback)((function(t){var r=h?t.target.value.substr(0,h):t.target.value;D?e.onChange(r,n):C(r,n)}),[h,e.onChange]);return a.a.createElement("div",{className:[y].join(" "),style:v},a.a.createElement("div",{className:"neko-textarea-container"},a.a.createElement("textarea",na({className:"neko-textarea",rows:6},E,{id:n,name:t,spellCheck:"false",placeholder:u,onChange:B,onKeyPress:function(t){if(p&&!t.shiftKey&&"Enter"===t.key){if(d&&R)return;t.preventDefault(),e.onEnter(t.target.value,n)}},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:b,style:w,value:D?i:S})),k&&a.a.createElement("p",{className:"neko-textarea-count"},A," / ",h," characters")),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(Qr||(Qr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.gray,C.blackRGB,C.fontFamily,C.fontSizeSmall),ia=function(e){return a.a.createElement(oa,e)};ia.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,avoidOnEnterWithShift:u.a.bool},ia.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,avoidOnEnterWithShift:!1};var la,ca,ua,sa,da,fa,pa,ma=t(73),ba=t.n(ma),ga=t(74),ha=t.n(ga),ya=["id","name","value","scrolldown","isPro","onChange","className","disabled","isBusy","chevronIconSize"];function va(){return(va=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function xa(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return wa(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return wa(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wa(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Oa(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function ka(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Ea=y.a.div(la||(la=ka(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n\n .nui-select-option {\n background: ",";\n padding-right: 10px;\n }\n }\n"])),C.blue,C.gray),ja=y.a.div(ca||(ca=ka(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"])),C.white,C.blue,C.fontFamily),Sa=y.a.div(ua||(ua=ka(["\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n"]))),Ca=y.a.div(sa||(sa=ka(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]))),Pa=y.a.div(da||(da=ka(["\n background-color: ",";\n overflow-y: auto;\n max-height: 300px;\n"])),C.white),Aa=function(e){var n,t=e.id,o=e.name,i=e.value,l=e.scrolldown,c=void 0!==l&&l,u=e.isPro,s=void 0!==u&&u,d=e.onChange,f=e.className,p=e.disabled,m=e.isBusy,b=void 0!==m&&m,g=e.chevronIconSize,h=void 0===g?24:g,y=Oa(e,ya),v=null===(n=a.a.Children.toArray(e.children).find((function(e){return e.props.value===i||e.props.checked})))||void 0===n?void 0:n.props,x=(null==v?void 0:v.label)||"Select",w=(null==v?void 0:v.description)||e.description,O=(null==v?void 0:v.requirePro)||!1,k=null==v?void 0:v.icon,E=null==v?void 0:v.iconSize,j=xa(Object(r.useState)(!1),2),S=j[0],C=j[1],A=c?Un((function(){C(!1)})):null,z=O&&!s,N=function(n){if(n!==i){if(!d)return void console.log("The onChange handler it not set for this checkbox.",e);d(n,t)}c&&C(!1)},R=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{name:e.props.name||o,checked:e.props.value===i||e.props.checked,onClick:N,scrolldown:c,isPro:s,disabled:p})}));return c?a.a.createElement(Ea,va({id:t,ref:A},y,{onClick:function(){return C(!S)},className:["nui-select",f,S?"show-options":""],childrenLength:R.length,"data-is-disabled":p||b}),a.a.createElement(ja,{className:"nui-select-option ".concat(b?"isBusy":"")},b?a.a.createElement(a.a.Fragment,null,a.a.createElement(_,{type:"circle",size:"20px"})):a.a.createElement(a.a.Fragment,null,k&&a.a.createElement(at,{icon:k,width:E,height:E,style:{marginRight:"".concat(Math.max(E-15,4),"px")}}),a.a.createElement("span",{className:"nui-select-option-label"},x),a.a.createElement("div",{className:"rightContent"},z&&a.a.createElement(Ot,null),!p&&a.a.createElement(P.Icon,{icon:S?ee.a:X.a,width:h})))),w&&a.a.createElement(Sa,null,w),S&&a.a.createElement(Ca,{className:"nui-option ".concat(S?"":"hidden")},a.a.createElement(Pa,null,[R]))):R},za=y.a.div(fa||(fa=ka(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"])),C.fontFamily,C.disabledForm),Na=y.a.div(pa||(pa=ka(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"])),C.blue,C.fontFamily,C.white,C.fontFamily),Ra=function(e){var n=e.id,t=e.name,r=e.value,o=e.checked,i=e.icon,l=e.label,c=e.description,u=e.onClick,s=e.scrolldown,d=e.isPro,f=void 0!==d&&d,p=e.requirePro,m=void 0!==p&&p,b=e.disabled,g=e.iconSize,h=void 0===g?20:g,y=m&&!f,v=y||b?"disabled":"",x=a.a.createElement(za,{className:"nui-select ".concat(e.className||""," ").concat(v)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,onClick:function(e){return u(e.target.value)},disabled:y||b}),a.a.createElement("label",{htmlFor:n},a.a.createElement(P.Icon,{icon:o?ha.a:ba.a,width:"24px",color:y?C.disabledForm:C.blue}),a.a.createElement("div",{className:"inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(Ot,{className:"inline",style:{top:-1},show:y})),c?a.a.createElement("small",{className:"description"},c):null))),w=a.a.createElement(Na,{className:"nui-select ".concat(e.className||""," ").concat(v)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,disabled:y||b}),a.a.createElement("div",{className:"option",onClick:function(){return u(r)}},a.a.createElement("div",{className:"option-group"},i&&a.a.createElement(at,{icon:i,width:h,height:h,style:{marginRight:"".concat(Math.max(h-11,4),"px")}}),l),a.a.createElement(Ot,{show:y})));return s?w:x},Ia=function(e){return a.a.createElement(Aa,e)};Ia.propTypes={id:u.a.string,name:u.a.string,description:u.a.string,scrolldown:u.a.bool,isPro:u.a.bool,onChange:u.a.func,isBusy:u.a.bool,chevronIconSize:u.a.number},Ia.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0,isBusy:!1,chevronIconSize:24};var Da,Ta=function(e){return a.a.createElement(Ra,e)};Ta.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,onClick:u.a.func,scrolldown:u.a.bool,isPro:u.a.bool,requirePro:u.a.bool,icon:u.a.string,iconSize:u.a.number},Ta.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0,iconSize:20};var _a=y.a.div(Da||(Da=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"]))),Ba=function(e){return a.a.createElement(_a,null,e.children||null)},Ma=function(e){return a.a.createElement(Ba,e)};Ma.propTypes={},Ma.defaultProps={};var Fa,La=["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"];function Ua(){return(Ua=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Ga(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var qa=Object(y.a)((function(e){e.width,e.height,e.fontSize;var n=e.onValue,t=e.offValue,o=e.checked,i=void 0!==o&&o,l=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),c=e.disabled,u=Ga(e,La),s=Object(r.useCallback)((function(e){l(e.target.checked?n:t)}),[l,n,t]);return a.a.createElement("label",Ua({},u,{"data-is-disabled":c?"disabled":""}),a.a.createElement("input",{type:"checkbox",onChange:s,checked:i,disabled:c}),a.a.createElement("span",{className:"nui-switch-slider"}))}))(Fa||(Fa=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"])),C.white,C.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),Ha=function(e){return a.a.createElement(qa,e)};Ha.propTypes={width:u.a.string,height:u.a.string,fontSize:u.a.string,onValue:u.a.string,offValue:u.a.string,checked:u.a.bool,onBackgroundColor:u.a.string,offBackgroundColor:u.a.string,onLabel:u.a.string,offLabel:u.a.string},Ha.defaultProps={width:"100%",height:"20px",fontSize:"12px",checked:!1};var $a,Wa,Ka,Ja,Va,Ya,Za=t(75),Xa=t.n(Za);function Qa(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return eo(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eo(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function no(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var to=function(e){var n=e.chevron,t=void 0===n||n;return a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:t})}))},ro=y.a.div($a||($a=no(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ",";\n"])),C.fontFamily),ao=y.a.div(Wa||(Wa=no(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n"]))),oo=y.a.div(Ka||(Ka=no(["\n height: 24px;\n width: 24px;\n"]))),io=y.a.div(Ja||(Ja=no(["\n position: relative;\n width: 24px;\n height: 24px;\n"]))),lo=y.a.div(Va||(Va=no(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]))),co=y.a.div(Ya||(Ya=no(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"])),C.finderBorder),uo=function(e){var n={gallery:Le.a,tag:Xa.a},t=e.title,o=e.chevron,i=e.rightElement,l=void 0===i?null:i,c=e.rightElementStyle,u=void 0===c?{marginLeft:"5px"}:c,s=e.showRightElement,d=void 0!==s&&s,f=e.selected,p=void 0!==f&&f,m=e.draggable,b=void 0!==m&&m,g=e.onDragStart,h=e.onDragOver,y=e.onDragEnd,v=e.onDrop,x=e.isExpanded,w=void 0!==x&&x,O=e.dragging,k=void 0!==O&&O,E=e.rightAction,j=void 0===E?null:E,S=e.rightActionOnHover,A=void 0===S?null:S,z=e.onDragLeave,N=(e.preventClose,!!e.icon),R=!!e.children,I=Qa(Object(r.useState)(w),2),D=I[0],T=I[1],_=Qa(Object(r.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:_e.a})),2),B=_[0],M=_[1],F=Boolean(B),L=Qa(Object(r.useState)(!1),2),U=L[0],G=L[1];Object(r.useEffect)((function(){T(w),N||M(w?_e.a:Me.a)}),[w]);var q=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:o})})),H=k||p?C.purple:p?C.black:C.blue;return a.a.createElement("div",null,a.a.createElement(ro,{onMouseEnter:function(){return G(!0)},onMouseLeave:function(){return G(!1)}},a.a.createElement(ao,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:b,onDragStart:g,onDragOver:h,onDrop:v,className:"".concat(F||q||e.onClick?"can-expand":""," ").concat(p?"selected":""),onDragLeave:z,onDragEnd:y},o?F&&R?a.a.createElement(P.Icon,{icon:D?X.a:Y.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),T(!D)}}):a.a.createElement(oo,null):null,a.a.createElement(io,null,a.a.createElement(lo,null),a.a.createElement(P.Icon,{icon:B,color:H,width:"24",height:"24"})),a.a.createElement("span",null,t),d&&a.a.createElement("div",{style:u},l)),U&&A||j),D&&a.a.createElement(co,{className:"".concat(F?"":"no-line"," ").concat(o?"":"no-chevron")},q))},so=function(e){return a.a.createElement(to,e)};so.propTypes={chevron:u.a.bool},so.defaultProps={chevron:!0};var fo,po=function(e){return a.a.createElement(uo,e)};po.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["gallery"])]),title:u.a.string,isExpanded:u.a.bool},po.defaultProps={icon:_e.a,title:void 0,isExpanded:!1};var mo,bo,go=y.a.div(fo||(fo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"]))),ho=function(){return a.a.createElement(go,null,a.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},yo=function(e){return a.a.createElement(ho,e)};function vo(e){return(vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}yo.propTypes={},yo.defaultProps={};var wo=Object(y.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,o=void 0===r?100:r,i=e.busy,l=void 0!==i&&i,c=e.status;t=Math.min(t,o);var u=parseFloat(t)/parseFloat(o);return a.a.createElement("div",{className:e.className},a.a.createElement(Oo,{ratio:u,busy:e.busy,status:c}),a.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&a.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?a.a.createElement(P.InlineIcon,{icon:ae.a}):a.a.createElement(P.InlineIcon,{icon:te.a})),l&&e.onStopClick&&a.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},a.a.createElement(P.InlineIcon,{icon:se.a}))))}))(mo||(mo=xo(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"])),C.blue,Object(v.a)(.1,C.blue),C.red,Object(v.a)(.1,C.red)),Oo=Object(y.a)((function(e){var n,t,r,o=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),i=vo(e.status),l="undefined"!==i?"string"===i?e.status:e.status(o):"".concat(o,"%");return a.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=o+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},a.a.createElement("div",null,l))}))(bo||(bo=xo(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"])),C.progress,C.fontFamily,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),ko=function(e){return a.a.createElement(wo,e)};ko.propTypes={value:u.a.number,max:u.a.number,busy:u.a.bool,paused:u.a.bool,onPauseClick:u.a.func,onStopClick:u.a.func,status:u.a.oneOf([u.a.string,u.a.func])},ko.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0};var Eo,jo=t(76),So=t.n(jo);var Co,Po=y.a.div(Eo||(Eo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"])),C.fontFamily,C.fontSizeText,C.header,C.blackRGB,C.fontFamily,C.fontFamily,C.fontSizeText),Ao=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,o=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,c=void 0!==l&&l;return a.a.createElement(Po,null,a.a.createElement("div",{className:"nui-header-logo-container"},a.a.createElement(yo,null)),a.a.createElement("div",{className:"nui-header-title-container"},a.a.createElement("h1",{className:"nui-header-title"},t),a.a.createElement("small",{className:"nui-header-subtitle"},a.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),a.a.createElement("div",{className:"nui-header-extra-content"},i),c&&a.a.createElement(at,{icon:So.a,width:"36",height:"36"}))},zo=function(e){return a.a.createElement(Ao,e)};function No(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ro(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ro(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ro(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}zo.propTypes={title:u.a.string,subtitle:u.a.string,saving:u.a.bool},zo.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1};var Io,Do,To=y.a.div(Co||(Co=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n margin-right: 15px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n"])),C.fontFamily,C.blueRGB,C.white,C.darkGray,C.white,C.fontFamily),_o=function(e){var n=e.currentPage,t=e.limit,o=void 0===t?0:t,i=e.onClick,l=e.total,c=void 0===l?0:l,u=e.onCurrentPageChanged,s=(e.full,e.infinite),d=void 0!==s&&s,f=e.controllerText,p=!!u,m=Object(r.useMemo)((function(){return d?0:Math.ceil(0===c?1:o>0?c/o:1)}),[d,o,c]),b="nako-paging-controller-icon ".concat(d||1!==n?"":"disabled"),g="nako-paging-controller-icon ".concat(d||n!==m?"":"disabled"),h=No(Object(r.useState)(!1),2),y=h[0],v=h[1],x=function(e){v(!1),i(e)},w=function(e){if(d)return e;var n=Number(e);return n>m?m:n<1?1:n},O=function(e){var n=e.target.value;isNaN(n)||u(w(n)),v(!1)},k=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||u(w(n)),v(!1)}},E=Object(r.useMemo)((function(){if(!y){return a.a.createElement("span",{className:p?"neko-paging-current-page":"",onClick:function(){p&&v(!0)}},n)}return a.a.createElement("input",{autoFocus:!0,type:"text",className:p?"neko-paging-current-page":"",defaultValue:n,onBlur:O,onKeyPress:k})}),[n,y,u]),j=function(e){y&&e.target===e.currentTarget&&v(!1)};return a.a.createElement(To,null,!!c&&a.a.createElement("span",{className:"neko-paging-text"},c," result",c>0?"s":""),a.a.createElement("div",{className:"neko-paging-controller",onClick:j},!d&&a.a.createElement(P.Icon,{icon:H.a,className:b,onClick:function(){return x(1)}}),a.a.createElement(P.Icon,{icon:J.a,className:b,onClick:function(){return x(n-1)}}),a.a.createElement("p",{className:"nako-paging-controller-text",onClick:j},f||a.a.createElement(a.a.Fragment,null,"Page ",E," of ",m)),a.a.createElement(P.Icon,{icon:Y.a,className:g,onClick:function(){return x(n+1)}}),!d&&a.a.createElement(P.Icon,{icon:W.a,className:g,onClick:function(){return x(m)}})))},Bo=function(e){return a.a.createElement(_o,e)};function Mo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Bo.propTypes={currentPage:u.a.number,limit:u.a.number,total:u.a.number,onClick:u.a.func,lastPage:u.a.number,infinite:u.a.bool,controllerText:u.a.object},Bo.defaultProps={currentPage:void 0,limit:0,total:0,onClick:void 0,lastPage:void 0,infinite:!1,controllerText:void 0};var Fo=y.a.div(Io||(Io=Mo(["\n display: flex;\n align-items: center;\n"]))),Lo=y.a.span(Do||(Do=Mo(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"])),(function(e){return e.variant||C.blue}),C.fontFamily,C.black,C.darkGray,C.darkGray),Uo=function(e){var n=e.id,t=e.value,r=e.onChange,o=e.busy,i=void 0!==o&&o,l=e.className,c=a.a.Children.map(e.children,(function(e,o){return a.a.cloneElement(e,{busy:i,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return a.a.createElement(Fo,{className:l},c)},Go=function(e){var n=e.title,t=e.value,o=void 0===t?0:t,i=e.count,l=e.onClick,c=e.busy,u=e.isActive,s=e.className,d=e.variant,f=Object(r.useMemo)((function(){if(d)return Object.keys(C).includes(d)?C[d]:d}),[d]);return a.a.createElement(Lo,{onClick:function(){return l(o)},className:"".concat(u?"is-active":""," ").concat(s),variant:f},n,null===i?null:a.a.createElement("span",null,"(",c?a.a.createElement(at,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):i,")"))},qo=function(e){return a.a.createElement(Uo,e)};qo.propTypes={id:u.a.string,value:u.a.string,onChange:u.a.func},qo.defaultProps={id:void 0,value:void 0,onChange:void 0};var Ho,$o=function(e){return a.a.createElement(Go,e)};$o.propTypes={title:u.a.string,value:u.a.string,count:u.a.number,onClick:u.a.func,isActive:u.a.bool,variant:u.a.string},$o.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1,variant:void 0};var Wo,Ko,Jo=y.a.section(Ho||(Ho=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"])),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),Vo=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),o=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,c=e.background,u=void 0===c?"#007cba":c,s=e.children,d=180*(t<=o?t:o)/o;return a.a.createElement(Jo,{backgroundColor:u,degrees:d,width:l},a.a.createElement("div",{class:"gauge"},a.a.createElement("div",{class:"mask"},a.a.createElement("div",{class:"semi-circle"}),a.a.createElement("div",{class:"semi-circle--mask"})),a.a.createElement("div",{class:"child-container"},a.a.createElement("div",{class:"child"},a.a.createElement("div",{class:"spacing"}),s))))};function Yo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Vo.propTypes={value:u.a.number,min:u.a.number,max:u.a.number,width:u.a.number,background:u.a.string},Vo.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"};y.a.p(Wo||(Wo=Yo(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),y.a.p(Ko||(Ko=Yo(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"])));var Zo,Xo=["multiple","width","height","iconSize","iconColor","onSuccess","onFailure","style","apiUrl","apiConfig","onClick","disabled"];function Qo(){return(Qo=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ei(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ni(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ei(Object(t),!0).forEach((function(n){ti(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ei(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ti(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ri(e){return function(e){if(Array.isArray(e))return ci(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||li(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function oi(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){ai(o,r,a,i,l,"next",e)}function l(e){ai(o,r,a,i,l,"throw",e)}i(void 0)}))}}function ii(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||li(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function li(e,n){if(e){if("string"==typeof e)return ci(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ci(e,n):void 0}}function ci(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ui(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var si=y.a.div(Zo||(Zo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"]))),di=function(e){var n=e.multiple,t=e.width,o=void 0===t?"100%":t,i=e.height,l=void 0===i?"100%":i,c=e.iconSize,u=void 0===c?48:c,s=e.iconColor,d=void 0===s?"#A9A9A9":s,f=e.onSuccess,p=void 0===f?function(){}:f,m=e.onFailure,b=void 0===m?function(){}:m,g=e.style,h=void 0===g?{}:g,y=e.apiUrl,v=e.apiConfig,x=e.onClick,w=e.disabled,O=ui(e,Xo),k=ii(Object(r.useState)(!1),2),E=k[0],j=k[1],S=ii(Object(r.useState)(Math.floor(1e8*Math.random())),2),C=S[0],P=(S[1],Object(r.useRef)(null)),A=Object(r.useRef)(null),z=ii(Object(r.useState)(!1),2),N=z[0],R=z[1];Object(r.useEffect)((function(){A&&(A.current.style.pointerEvents=N?"none":"auto")}),[A,N]);var I=function(){var e=oi(regeneratorRuntime.mark((function e(t){var r,a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!0),r=function(){var e=oi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v.file=n,e.next=3,xc(y,v);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(t.map(function(){var e=oi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:a=e.sent,o=a.filter((function(e){return e.success})),i=a.filter((function(e){return!e.success})),o.length&&p(n?o:o[0]),i.length&&b(n?i:i[0]),R(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(e){e.preventDefault(),e.stopPropagation()},T=function(e){e.preventDefault(),e.stopPropagation(),j(!0)},_=function(e,n){n.preventDefault(),n.stopPropagation(),j(!1),console.log(e),I(e)};return a.a.createElement("div",{ref:A},a.a.createElement("input",{type:"file",id:C,accept:"image/*",ref:P,onChange:function(e){var n=ri(e.target.files);_(n,e)},style:{display:"none"},disabled:w,multiple:n}),a.a.createElement(si,Qo({onClick:function(){x?x():P.current.click()},style:ni(ni({},h),{},{width:o,height:l}),className:E?"dropping":"",onDragOver:D,onDragEnter:T,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),j(!1)},onDrop:function(e){var n=ri(e.dataTransfer.files);_(n,e)},"data-is-disabled":w},O),a.a.createElement(at,{width:u,height:u,icon:"upload",spinning:N,color:d,onDragOver:D,onDragEnter:T})))};di.propTypes={width:u.a.string,height:u.a.string,onSuccess:u.a.func,onFailure:u.a.func,style:u.a.object,apiUrl:u.a.string,apiConfig:u.a.object},di.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}};var fi,pi=["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children","multiple"];function mi(){return(mi=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function bi(e){return function(e){if(Array.isArray(e))return xi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function hi(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){gi(o,r,a,i,l,"next",e)}function l(e){gi(o,r,a,i,l,"throw",e)}i(void 0)}))}}function yi(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||vi(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vi(e,n){if(e){if("string"==typeof e)return xi(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xi(e,n):void 0}}function xi(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function wi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Oi=y.a.div(fi||(fi=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n &.dropping {\n background: #a4d5ff;\n }\n"]))),ki=Object(r.forwardRef)((function(e,n){var t=e.onSuccess,o=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,c=e.apiUrl,u=e.apiConfig,s=e.className,d=e.disabled,f=void 0!==d&&d,p=e.children,m=e.multiple,b=wi(e,pi),g=yi(Object(r.useState)(!1),2),y=g[0],v=g[1],x=yi(Object(r.useState)(!1),2),w=x[0],O=x[1],k=Object(r.useCallback)(function(){var e=hi(regeneratorRuntime.mark((function e(n){var t,r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return O(!0),t=function(){var e=hi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.file=n,e.next=3,xc(c,u);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(n.map(function(){var e=hi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:r=e.sent,a=r.filter((function(e){return e.success})),i=r.filter((function(e){return!e.success})),a.length&&o(m?a:a[0]),i.length&&l(m?i:i[0]),O(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[u,o,l]),E=Object(r.useCallback)((function(e,n){n.preventDefault(),n.stopPropagation(),v(!1),k(e)}),[k]),j=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[]),S=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!0)}),[f]),C=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!1)}),[f]),P=Object(r.useCallback)((function(e){if(!f){var n=bi(e.dataTransfer.files);E(n,e)}}),[f,E]),A=Object(r.useCallback)((function(e){var n=bi(e.target.files);E(n,e)}),[E]);return a.a.createElement(h,{busy:w},a.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:A,style:{display:"none"},multiple:m}),a.a.createElement(Oi,mi({className:"".concat(s||""," ").concat(y?"dropping":""),onDragOver:j,onDragEnter:S,onDragLeave:C,onDrop:P},b),p))}));ki.propTypes={ref:u.a.ref,onSuccess:u.a.func,onFailure:u.a.func,apiUrl:u.a.string,apiConfig:u.a.object,disabled:u.a.bool},ki.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1};var Ei,ji,Si,Ci,Pi,Ai=["month","year","onEventClicked","onEventMoved","eventBuilder","events"];function zi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ni(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ri(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ii(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ii(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ii(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Di(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Ti(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var _i={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:7},Bi=y.a.div(Ei||(Ei=Ti(["\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ",";\n font-size: 12px;\n"])),C.fontFamily),Mi=y.a.div(ji||(ji=Ti(["\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ",";\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),C.primary),Fi=y.a.div(Si||(Si=Ti(["\n display: flex;\n flex-direction: column;\n"]))),Li=y.a.div(Ci||(Ci=Ti(["\n display: flex;\n"]))),Ui=y.a.div(Pi||(Pi=Ti(["\n background: purple;\n width: calc(100% / 7);\n background: ",";;\n padding: 3px;\n border-bottom: 1px solid ",";\n border-right: 1px solid ",";\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ",";\n }\n\n &:last-child {\n border-right: 1px solid ",";\n }\n\n .day {\n text-align: right;\n color: ",";\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ",";\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n"])),C.white,C.lightGray,C.lightGray,C.lightGray,C.lightGray,C.black,C.lightGray);var Gi=function(e){var n=e.month,t=void 0===n?(new Date).getMonth():n,a=e.year,o=void 0===a?(new Date).getFullYear():a,i=e.onEventClicked,l=void 0===i?function(){console.log("[NekoCalendar] onEventClicked not handled.")}:i,c=e.onEventMoved,u=void 0===c?function(){console.log("[NekoCalendar] onEventMoved not handled.")}:c,s=e.eventBuilder,d=void 0===s?function(){return"YOOO"}:s,f=e.events,p=Di(e,Ai),m=Ri(Object(r.useState)(),2),b=m[0],g=m[1],h=Ri(Object(r.useState)(),2),y=h[0],v=h[1],x=e.disableDaysBefore,w=void 0===x?null:x;w=w||new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate());var O=Object(r.useMemo)((function(){for(var e=[],n=function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_i.Monday,r=new Date(n,e);r.getDay()!==t;)r.setDate(r.getDate()-1);return r}(t,o,_i.Monday),r=function(e,n){for(var t=new Date(e),r=new Date(n),a=0;t<=r;)a++,t.setDate(t.getDate()+1);return a-1}(n,new Date(o,t,1))<5?34:41,a=new Date(n).setDate(n.getDate()+r);n<=a;)e.push(new Date(n)),n.setDate(n.getDate()+1);return function(e,n){for(var t=[],r=0;r<e.length;)t.push(e.slice(r,r+=n));return t}(e,7)}),[t,o]);return React.createElement(Bi,p,React.createElement(Mi,null,Object.keys(_i).map((function(e){return React.createElement("div",{key:e},e)}))),React.createElement(Fi,null,O.map((function(e){return React.createElement(Li,{key:e},e.map((function(e){var n,r,a=e.getMonth()==t,o=!a||e<w,i=(o?"disabled ":"")+(n=e,r=new Date,n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()?"today":"")+(e===y?"highlighted":""),c=f.filter((function(n){return a&&n.date.getDate()===e.getDate()}));return React.createElement(Ui,{className:i,key:e.getTime(),onDragOver:function(n){return!o&&(t=e,r=b.date,t.getFullYear()!==r.getFullYear()||t.getMonth()!==r.getMonth()||t.getDate()!==r.getDate())&&(n.preventDefault(),v(e),!0);var t,r},onDragLeave:function(){return v(null)},onDrop:function(){u(e,b),v(null)}},React.createElement("div",{className:"day"},e.getDate()),c.map((function(e){return React.createElement("div",{className:"event",key:e.key,draggable:e.draggable,onClick:function(){return l(e)},onDragStart:function(n){return g(e)}},d(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?zi(Object(t),!0).forEach((function(n){Ni(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):zi(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e)))})),o&&React.createElement("div",{className:"gray-overlay"}))})))}))))};Gi.propTypes={month:u.a.number,year:u.a.number,disableDaysBefore:u.a.instanceOf(Date),disableDaysAfter:u.a.instanceOf(Date),eventBuilder:u.a.func,events:u.a.array,onEventClicked:u.a.func,onEventMoved:u.a.func},Gi.defaultProps={month:(new Date).getMonth(),year:(new Date).getFullYear(),disableDaysBefore:null,disableDaysAfter:null,eventBuilder:function(){return"UI for this event"},events:[{key:"A1",date:new Date},{key:"A2",date:new Date}],onEventClicked:function(e){console.log("An event was clicked",e)},onEventMoved:function(e,n){console.log("An event was moved to another day",n,e)}};var qi,Hi,$i=t(77),Wi=t.n($i),Ki=["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail"];function Ji(){return(Ji=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Vi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Yi(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Zi=y.a.div(qi||(qi=Yi(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"])),C.overlay,C.white),Xi=y.a.div(Hi||(Hi=Yi(["\n width: ",";\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n"])),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:"518px"}),C.fontFamily,C.fontFamily),Qi=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,o=e.isOpen,i=e.children,l=e.className,c=e.style,u=e.ok,s=void 0===u?"OK":u,d=e.cancel,f=void 0===d?"Cancel":d,p=e.customButtons,m=void 0===p?null:p,b=e.customButtonsPosition,g=void 0===b?"right":b,h=e.title,y=void 0===h?"":h,v=e.content,x=void 0===v?"":v,w=e.contentWidth,O=e.onOkClick,k=e.onCancelClick,E=e.okOnEnter,j=void 0!==E&&E,S=e.thumbnail,C=Vi(e,Ki),P=c?"custom-modal":"",A=null!==m,z=Object(r.useCallback)((function(e){"Enter"===e.key&&O()}),[O]);Object(r.useEffect)((function(){if(j&&o)return window.addEventListener("keyup",z),function(){window.removeEventListener("keyup",z)}}),[o,z]);var N=i||a.a.createElement(Xi,{width:w},y&&a.a.createElement("p",{className:"title"},y),a.a.createElement("div",{className:"content-container"},S&&a.a.createElement("div",{className:"thumbnail"},S),x&&a.a.createElement("p",{className:"content"},x)),a.a.createElement("div",{className:"button-group"},A&&"left"===g&&m,k&&a.a.createElement(dt,{className:"danger",onClick:k},f),O&&a.a.createElement(dt,{onClick:O},s),A&&"right"===g&&m));return a.a.createElement(a.a.Fragment,null,a.a.createElement(Zi,{id:t}),a.a.createElement(Wi.a,Ji({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(P),isOpen:o},C),N))},el=function(e){return a.a.createElement(Qi,e)};el.propTypes={className:u.a.string,style:u.a.object,ok:u.a.string,cancel:u.a.string,title:u.a.string,content:u.a.string,contentWidth:u.a.string,onOkClick:u.a.func,onCancelClick:u.a.func,customButtons:u.a.object,okOnEnter:u.a.bool,thumbnail:u.a.element},el.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",contentWidth:void 0,onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0};var nl,tl=t(78),rl=t.n(tl),al=["checked","intermediate","onSelect","onUnselect"];function ol(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function il(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ol(Object(t),!0).forEach((function(n){ll(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ol(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ll(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function cl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var ul=y.a.table(nl||(nl=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ",";\n color: ",";\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ",";\n \n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: ",";\n color: ",";\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"])),C.fontFamily,C.blackRGB,C.blackRGB,C.blue,C.white,C.white,C.black,C.white,C.tableGray,C.blueRGB,C.white,C.white,C.white,C.black),sl=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,o=e.onSelect,i=void 0===o?function(){}:o,l=e.onUnselect,c=void 0===l?function(){}:l;cl(e,al);return a.a.createElement(P.Icon,{icon:r?rl.a:n?Fr.a:Br.a,width:"24px",height:"24px",onClick:function(e){n?c(e):i(e)}})},dl={left:"start",center:"center",right:"end"},fl=function(e){var n=e.columns,t=e.data,r=e.busy,o=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,c=e.selectedItems,u=e.sort,s=e.onSortChange,d=e.variant,f=void 0===d?"default":d,p=e.sortIconColor,m=void 0===p?void 0:p,b=e.emptyMessage,g=void 0===b?"Empty.":b,y=n.length+(i?1:0),v=function(e){var n={};return e.align&&(n={textAlign:e.align,justifyContent:dl[e.align]}),e.width&&(n=il(il({},n),{},{width:e.width})),e.style&&(n=il(il({},n),e.style)),n},x=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:v(n)}}));return{id:e.id,cells:t}})),w=x.map((function(e){return e.id})),O=w.filter((function(e){return c.includes(e)})).length===w.length,k=!O&&c.length>0,E=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),j=a.a.createElement("tr",null,i&&a.a.createElement("th",{className:"table-checkbox-cell"},a.a.createElement(sl,{checked:O,intermediate:k,onSelect:function(e){return i(w,e)},onUnselect:function(e){l(k?c:w,e)}})),n.filter((function(e,n){return!E.includes(n)})).map((function(e){var n=u&&u.accessor===e.accessor,t=u&&"asc"===u.by,r=n?C.white:"rgba(".concat(C.blackRGB,", 0.1)");m&&(r=n?m:C.gray);var o=v(e);return a.a.createElement("th",{style:o,key:e.accessor},a.a.createElement("div",{className:e.sortable?"sortable":"",style:o,onClick:e.sortable?function(r){s(e.accessor,n&&t?"desc":"asc",r)}:void 0},a.a.createElement("div",null,e.title),a.a.createElement("div",{style:{flex:"auto"}}),a.a.createElement("div",null,e.sortable&&a.a.createElement(P.Icon,{icon:n?t?X.a:ee.a:X.a,color:r,width:"26px",height:"26px"}))))})));return a.a.createElement(h,{busy:o,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},a.a.createElement(ul,{className:"nekotable-".concat(f)},a.a.createElement("thead",null,j),a.a.createElement("tbody",null,!x.length&&a.a.createElement("tr",null,a.a.createElement("td",{colspan:y,style:{textAlign:"center",height:40,color:"gray"}},g)),x.map((function(e){return a.a.createElement("tr",{className:c.includes(e.id)?"selected":""},i&&a.a.createElement("td",{className:"table-checkbox-cell"},a.a.createElement(sl,{checked:c.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!E.includes(n)})).map((function(e){return a.a.createElement("td",{style:e.style},e.value)})))}))),"default"===f&&a.a.createElement("tfoot",null,j)))},pl=function(e){return a.a.createElement(fl,e)};pl.propTypes={columns:u.a.arrayOf(u.a.any),data:u.a.arrayOf(u.a.any),busy:u.a.arrayOf(u.a.bool),onSelect:u.a.func,onUnselect:u.a.func,selectedItems:u.a.arrayOf(u.a.object),onSortChange:u.a.func,variant:u.a.string,sortIconColor:u.a.string},pl.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0,variant:"default",sortIconColor:void 0};var ml,bl=["images","onNextPage","onPreviousPage","onRefresh","onClick","onRemoveClick","onZoomClick","onSearch","searchValue","busy","currentPage","limit","total","onPageChange","selected","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave"];function gl(){return(gl=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function hl(e){return function(e){if(Array.isArray(e))return xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yl(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||vl(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vl(e,n){if(e){if("string"==typeof e)return xl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xl(e,n):void 0}}function xl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function wl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ol,kl,El,jl,Sl=Object(y.a)(el)(ml||(ml=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ",";\n border: 1px solid ",";\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ",";\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ",";\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n"])),C.white,C.black,C.blue,C.blackRGB,C.blue,C.blackRGB,C.blackRGB),Cl=function(e){Array.prototype.forEach.call(document.getElementsByClassName(e),(function(n){n.classList.remove(e)}))},Pl="grid",Al="list",zl=[{accessor:"thumbnail_url",title:"Thumb",style:{width:"42px"}},{accessor:"title",title:"Title"},{accessor:"size",title:"Size",style:{width:"70px"}},{accessor:"filename",title:"Filename"}],Nl=function(e){var n=e.images,t=(e.onNextPage,e.onPreviousPage,e.onRefresh),o=e.onClick,i=e.onRemoveClick,l=e.onZoomClick,c=e.onSearch,u=e.searchValue,s=e.busy,d=e.currentPage,f=e.limit,p=e.total,m=e.onPageChange,b=e.selected,g=e.multiSelect,y=void 0!==g&&g,v=e.showUploader,x=void 0!==v&&v,w=e.uploader,O=e.onSelectedOrderChanged,k=e.onUploadSuccess,E=void 0===k?function(){}:k,j=e.onUploadFailure,S=void 0===j?function(){}:j,P=e.uploadApiUrl,A=e.uploadApiConfig,z=e.uploadMultiple,N=e.onClose,R=e.onCancel,I=e.onSave,D=wl(e,bl),T=yl(Object(r.useState)(u),2),_=T[0],B=T[1],M=yl(Object(r.useState)(null),2),F=M[0],L=M[1],U=yl(Object(r.useState)(Pl),2),G=U[0],q=U[1],H=Object(r.useRef)(null),$=function(e,n){if(e.preventDefault(),null!==F){var t=e.currentTarget.getBoundingClientRect(),r=t.width,a=t.left,o=t.right,i=n;F<n&&(n>0&&n<b.length?i+1===F&&e.clientX>=o-25?i-=1:(i-1===F&&e.clientX>=a-25||55!==r&&e.clientX>=o-25)&&(i+=1):55!==r&&e.clientX>=o-25&&(i+=1)),Cl("drag-over"),F!==i&&F+1!==i&&document.getElementById("".concat("nmlm-selected-").concat(i)).classList.add("drag-over")}},W=function(e){e.preventDefault(),L(null),Cl("drag-over")},K=function(e,n){e.preventDefault(),null!==F&&F!==n&&F+1!==n&&O({currentIndex:F,afterIndex:F>n?n:n-1})},J=Object(r.useMemo)((function(){if(!y)return[];var e=a.a.createElement("div",{id:"nmlm-selected-".concat(b.length),className:"neko-media-library-modal-content-selected-media-container dummy",draggable:!1,onDragEnd:function(e){return W(e)},onDragOver:function(e){return $(e,b.length)},onDrop:function(e){return K(e,b.length)},onDragLeave:function(){return Cl("drag-over")}}),n=b.map((function(e,n){return a.a.createElement("div",{id:"nmlm-selected-".concat(n),key:e.id,className:"neko-media-library-modal-content-selected-media-container",draggable:!0,onDragStart:function(){return L(n)},onDragEnd:W,onDragOver:function(e){return $(e,n)},onDrop:function(e){return K(e,n)}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media"}),a.a.createElement("button",{className:"remove-button",onClick:function(){return i({id:e.id,src:e.src})}},a.a.createElement(at,{icon:"close",color:C.white,width:19,height:19})),a.a.createElement("button",{className:"zoom-button",onClick:function(){return l({id:e.id,src:e.zoom_src})}},a.a.createElement(at,{icon:"zoom-in",color:C.white,width:19,height:19})))}));return[].concat(hl(n),[e])}),[b,y,i,l,$,W,K]),V=Object(r.useMemo)((function(){return n.map((function(e){return a.a.createElement("div",{key:e.id,className:"neko-media-library-modal-content-media-container ".concat(b.some((function(n){return n.id===e.id}))?"selected":""),onClick:function(){o({id:e.id,src:e.src,zoom_src:e.zoom_src})}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media",width:"90",height:"90"}),a.a.createElement("button",{className:"zoom-button",onClick:function(n){n.stopPropagation(),l({id:e.id,src:e.zoom_src})}},a.a.createElement(at,{icon:"zoom-in",color:C.white,width:29,height:29})))}))}),[n,b,l,o]),Y=Object(r.useMemo)((function(){return n.map((function(e){return{id:e.id,thumbnail_url:a.a.createElement("img",{src:e.src,style:{width:40,height:40,objectFit:"cover"}}),title:e.title,size:e.size,filename:e.filename}}))}),[n]),Z=Object(r.useCallback)((function(){B(""),t()}),[t]),X=Object(r.useMemo)((function(){var e=function(e,t){var r=n.find((function(n){return e.includes(n.id)}));o({id:r.id,src:r.src,zoom_src:r.zoom_src})};return a.a.createElement(pl,{data:Y,columns:zl,onSelect:e,onUnselect:e,selectedItems:b.map((function(e){return e.id}))})}),[n,Y,b,o]);return a.a.createElement(Sl,gl({style:!0},D),a.a.createElement("div",{className:"neko-modal-wrapper",draggable:!0,onDragOver:function(){return Cl("drag-over")}},a.a.createElement(ki,{ref:H,onSuccess:E,onFailure:S,apiUrl:P,apiConfig:A,disabled:!x||null!==F,multiple:z},a.a.createElement("div",{className:"neko-media-library-modal-content"},a.a.createElement("div",{className:"neko-media-library-modal-content-header"},a.a.createElement(tr,{h1:!0},"Media Library"),a.a.createElement("div",{style:{display:"flex"}},a.a.createElement("div",{className:"neko-media-library-modal-search"},a.a.createElement(Xr,{value:_,disabled:s,onEnter:c,onChange:function(e){return B(e)},placeholder:"Search..."}),""!==_&&a.a.createElement(at,{icon:"close",containerStyle:{width:"20px",position:"absolute",right:"5px",top:"5px",cursor:"pointer"},width:20,height:20,color:C.darkGray,onClick:Z})),a.a.createElement(dt,{onClick:function(){return c(_)},style:{marginLeft:"4px",marginRight:"4px"}},"Search"),a.a.createElement(at,{color:G===Pl?C.black:C.blue,icon:"view-grid",onClick:function(){return q(Pl)},width:"20",height:"20"}),a.a.createElement(at,{color:G===Al?C.black:C.blue,icon:"format-list-bulleted",onClick:function(){return q(Al)},width:"20",height:"20"}))),a.a.createElement("div",null,a.a.createElement("div",{className:"neko-media-library-modal-content-body"},a.a.createElement(h,{busy:s},a.a.createElement("div",{className:"".concat(G===Pl?"neko-media-library-modal-content-body-gallery":"neko-media-library-modal-content-body-list")},G===Pl&&x&&w,G===Pl?V:X)),a.a.createElement("div",{className:"neko-media-library-modal-content-body-selected-gallery"},J))),a.a.createElement("div",{className:"neko-media-library-modal-content-footer"},a.a.createElement(Bo,{limit:f,currentPage:d,total:p,onClick:m}),a.a.createElement("div",{style:{display:"flex"}},!!N&&a.a.createElement(dt,{onClick:function(){return N()}},"Close"),!!R&&a.a.createElement(dt,{className:"danger",onClick:function(){return R()}},"Cancel"),!!I&&a.a.createElement(dt,{onClick:function(){return I()}},"Save")))))))},Rl=function(e){return a.a.createElement(Nl,e)};function Il(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Dl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Dl(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Tl(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Rl.propTypes={images:u.a.array,onNextPage:u.a.func,onPreviousPage:u.a.func,onRefresh:u.a.func,onClick:u.a.func,onSearch:u.a.func,searchValue:u.a.string,busy:u.a.bool,currentPage:u.a.number,limit:u.a.number,total:u.a.number,onPageChange:u.a.func,multiSelect:u.a.bool,selected:u.a.array,onClose:u.a.func,onCancel:u.a.func,onSave:u.a.func},Rl.defaultProps={multiSelect:!1};var _l=y.a.div(Ol||(Ol=Tl(["\n"]))),Bl=y.a.div(kl||(kl=Tl(["\n display: flex;\n"]))),Ml=y.a.button(El||(El=Tl(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n"])),C.fontFamily,C.fontSizeText,C.blue,C.white),Fl=y.a.div(jl||(jl=Tl(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"])),C.blue),Ll=function(e){var n=Il(a.a.useState(0),2),t=n[0],r=n[1],o=e.children?e.children.length?e.children.filter((function(e){return!!e})):[e.children]:[];a.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return r(0),void(e.callOnTabChangeFirst&&c(0,i[0]));var t=decodeURIComponent(n),l=a.a.Children.toArray(o).map((function(e){return e.props.title.replaceAll(" ","")})).indexOf(t);return-1===l?(r(0),void(e.callOnTabChangeFirst&&c(0,i[0]))):(r(l),void(e.callOnTabChangeFirst&&c(l,i[l])))}r(0),e.callOnTabChangeFirst&&c(0,i[0])}),[]);var i=a.a.Children.map(o,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),hidden:n.props.hidden||!1,icon:n.props.icon||!1}})),l=a.a.Children.map(o,(function(e,n){return a.a.cloneElement(e,{isActive:n===t})})),c=function(n,t,a){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,a),e.keepTabOnReload&&function(e){if(history.pushState&&"string"==typeof e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replaceAll(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return a.a.createElement(_l,null,a.a.createElement(Bl,null,i.map((function(e,n){return a.a.createElement(Ml,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""," ").concat(e.hidden?"hidden":""),onClick:function(t){c(n,e,t)}},e.icon&&a.a.createElement(at,{icon:e.icon,width:15,height:15,style:{marginRight:"2px"},raw:!0}),e.title,a.a.createElement(Ot,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),l)},Ul=function(e){var n=e.children,t=e.isActive;return a.a.createElement(Fl,{className:"".concat(t?"active":"")},!!t&&n)},Gl=function(e){return a.a.createElement(Ll,e)};Gl.propTypes={isPro:u.a.bool,onChange:u.a.func},Gl.defaultProps={isPro:!1,onChange:void 0};var ql,Hl,$l,Wl=function(e){return a.a.createElement(Ul,e)};function Kl(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Jl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Jl(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Vl(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Wl.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,icon:u.a.string},Wl.defaultProps={isActive:!1,requirePro:!1,title:void 0,icon:void 0};var Yl=y.a.div(ql||(ql=Vl(["\n"]))),Zl=y.a.div(Hl||(Hl=Vl(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"])),C.blue,C.yellowRGB,C.white,C.fontFamily,C.white),Xl=y.a.div($l||($l=Vl(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"])),C.white),Ql=function(e){var n=Kl(a.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],o=a.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),i=a.a.Children.map(e.children,(function(e,n){return a.a.cloneElement(e,{isActive:n===t})}));return a.a.createElement(Yl,null,o.map((function(n,o){return a.a.createElement(a.a.Fragment,null,a.a.createElement(Zl,{key:n.key,className:"".concat(o===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(a){!function(n,a,o){if(!a.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,a,o)}}(o,n,a)},onDragOver:n.onDragOver,onDrop:n.onDrop},a.a.createElement("p",null,a.a.createElement("span",{style:{fontSize:15}},n.title),a.a.createElement(Ot,{className:"inline",show:n.requirePro})),null===n.rightActions?a.a.createElement(P.Icon,{icon:o===t?X.a:Y.a,className:"neko-side-tab-icon"}):o===t?a.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):a.a.createElement(P.Icon,{icon:Y.a,className:"neko-side-tab-icon"})),i[o])})))},ec=function(e){var n=e.children,t=e.isActive;return a.a.createElement(Xl,{className:"".concat(t?"active":"")},n)},nc=function(e){return a.a.createElement(Ql,e)};nc.propTypes={isPro:u.a.bool,onChange:u.a.func,activeTabIndex:u.a.number},nc.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var tc=function(e){return a.a.createElement(ec,e)};tc.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,onDragOver:u.a.func,onDrop:u.a.func,rightActions:u.a.element},tc.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0};var rc,ac=["align"];function oc(){return(oc=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ic(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var lc=y.a.div(rc||(rc=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ",";\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(",", 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n"])),C.white,C.blackRGB),cc=function(e){var n=e.align,t=void 0===n?"left":n,r=ic(e,ac);return a.a.createElement(lc,oc({className:"neko-align-".concat(t)},r),r.children)},uc=function(e){return a.a.createElement(cc,e)};uc.propTypes={align:u.a.oneOf(["left","right"])},uc.defaultProps={align:"left"};t(24);function sc(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var dc=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};sc(this,e),this.url=r,this.message=n,this.code=t,this.body=a,this.debug=o};function fc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||gc(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function mc(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){pc(o,r,a,i,l,"next",e)}function l(e){pc(o,r,a,i,l,"throw",e)}i(void 0)}))}}function bc(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=gc(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}function gc(e,n){if(e){if("string"==typeof e)return hc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?hc(e,n):void 0}}function hc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var yc=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=bc(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},vc=function(){var e=mc(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>1&&void 0!==d[1]?d[1]:{},r=null,a={},o=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(a=JSON.parse(r)).success||(l=!1===a.success?"NOT-SUCCESS":"N/A",c=a.message?a.message:"Unknown error. Check your Console Logs.","rest_no_route"===a.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===a.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),o=new dc(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),o=new dc(s,u,n,r||i,e.t0);case 26:return o&&(console.error("[NekoError] JsonFetcher",o.url,{code:o.code,error:o.error,body:o.body}),a.success=!1,a.error=o),e.abrupt("return",yc(a));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),xc=function(){var e=mc(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d,f,p,m,b=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=b.length>1&&void 0!==b[1]?b[1]:{},r=t.json,a=void 0===r?{}:r,o=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(a);u<s.length;u++)d=fc(s[u],2),f=d[0],p=d[1],c.append(f,p);return m=l?{"X-WP-Nonce":l}:{},c||(m["Content-Type"]="application/json"),e.abrupt("return",vc(n,{method:"POST",headers:m,body:c||JSON.stringify(a),signal:o}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),wc=(mgcl_gallery_custom_links.prefix,mgcl_gallery_custom_links.domain,mgcl_gallery_custom_links.rest_url.replace(/\/+$/,""),mgcl_gallery_custom_links.api_url.replace(/\/+$/,"")),Oc=(mgcl_gallery_custom_links.plugin_url.replace(/\/+$/,""),"1"===mgcl_gallery_custom_links.is_pro&&mgcl_gallery_custom_links.is_registered,mgcl_gallery_custom_links.rest_nonce);function kc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ec(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?kc(Object(t),!0).forEach((function(n){jc(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kc(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function jc(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Sc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Cc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Pc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pc(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Ac=wp.element,zc=Ac.useState,Nc=Ac.useMemo,Rc=function(){var e=Nc((function(){return["".concat(wc,"/all_settings/"),{headers:{"X-WP-Nonce":Oc}}]}),[wc,Oc]),n=Object(l.a)(e,vc),t=n.data,a=n.mutate,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(r.useState)(n),o=Tn(a,2),i=o[0],l=o[1],c=Object(r.useState)(null),u=Tn(c,2),s=u[0],d=u[1],f=Object(r.useState)(t),p=Tn(f,2),m=p[0],b=p[1],g=Object(r.useState)(0),h=Tn(g,2),y=h[0],v=h[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),v(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:y,error:s}}(t,{},!0),i=o.busy,c=o.data,u=o.error,s=Cc(zc(!1),2),d=s[0],f=s[1],p=i||d,m=null==c?void 0:c.mgcl_obmode,b=null==c?void 0:c.mgcl_parsing_engine,g=null==c?void 0:c.mgcl_log,h=null==c?void 0:c.mgcl_button_enabled,y=null==c?void 0:c.mgcl_button_label,v=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=Ec({},t.data))[r]=n,a(Ec(Ec({},t),{},{data:o}),!1),f(!0),e.prev=4,e.next=7,xc("".concat(wc,"/update_option"),{json:{name:r,value:n},nonce:Oc});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),alert(e.t0.message);case 12:return e.prev=12,f(!1),a(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[4,9,12,16]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Sc(o,r,a,i,l,"next",e)}function l(e){Sc(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),x=React.createElement(hr,{title:"OB Mode"},React.createElement(Hr,{max:"1"},React.createElement(Gr,{id:"mgcl_obmode",label:"Enabled",value:"1",checked:m,onChange:v,description:"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended)."}))),w=React.createElement(hr,{title:"Parsing Engine",description:"Hello"},React.createElement(Ia,{id:"mgcl_parsing_engine",onChange:v},[{id:"none",value:"None",label:"None (Not Supported Yet)"},{id:"htmldomparser",value:"HtmlDomParser",label:"HtmlDomParser"},{id:"didom",value:"DiDom",label:"DiDom"}].map((function(e){return React.createElement(Ta,{id:"mgcl_parsing_engine_".concat(e.id),value:e.value,label:e.label,checked:b===e.value})})))),O=React.createElement(hr,{title:"Logs"},React.createElement(Hr,{max:"1"},React.createElement(Gr,{id:"mgcl_log",label:"Logs",value:"1",checked:g,onChange:v,description:"Simple logging, written directly in the PHP Error Logs."}))),k=React.createElement(hr,{title:"Use Buttons"},React.createElement(Hr,{max:"1"},React.createElement(Gr,{id:"mgcl_button_enabled",label:"Enabled",value:"1",description:"A call-to-action button will be used of a clickable image.",checked:h,onChange:v}))),E=React.createElement(hr,{title:"Label"},React.createElement(Xr,{id:"mgcl_button_label",name:"mgcl_button_label",value:y,description:"A call-to-action button will be used of a clickable image.",onBlur:v}));return React.createElement(Lt,{nekoErrors:[u]},React.createElement(zo,{title:"Gallery Custom Links | Settings",subtitle:"By Jordy Meow"}),React.createElement(Ir,null,React.createElement(Dr,{full:!0},React.createElement(pr,null,React.createElement(tr,{p:!0},"This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the ",React.createElement("a",{href:"https://meowapps.com/plugin/gallery-custom-links/"},"official page"),".")),React.createElement(Gl,null,React.createElement(Wl,{title:"Settings"},React.createElement(Ir,null,React.createElement(Dr,{minimal:!0},React.createElement(lr,{busy:p,title:"Settings",className:"primary"},w,x,O)),React.createElement(Dr,{minimal:!0},React.createElement(lr,{busy:p,title:"CTA Buttons",className:"primary"},React.createElement(tr,{p:!0},React.createElement("b",null,"Currently works with the ",React.createElement("a",{href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")," and Gutenberg Galleries.")," In a future Pro version, support for additional galleries might be added (please contact ",React.createElement("a",{href:"https://meowapps.com/contact/"},"Meow Apps")," for this)."),k,h?E:null))))))))},Ic=wp.i18n.__,Dc={};Dc.PENDING=Ic("Pending","gallery-custom-links"),Dc.RENAME=Ic("Rename","gallery-custom-links"),Dc.TITLE=Ic("Title","gallery-custom-links"),Dc.SAME_PAGE=Ic("Same page","gallery-custom-links"),Dc.NEW_PAGE=Ic("New page","gallery-custom-links"),Dc.LINK_URL=Ic("Link URL","gallery-custom-links"),Dc.LINK_TARGET=Ic("Link Target","gallery-custom-links"),Dc.LINK_REL=Ic("Link Rel","gallery-custom-links"),Dc.ARIAL_LABEL=Ic("Arial Label","gallery-custom-links");var Tc,_c=Dc;function Bc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Mc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Fc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fc(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Lc=wp.element,Uc=Lc.useState,Gc=Lc.useCallback,qc=[{label:_c.SAME_PAGE,value:"_self"},{label:_c.NEW_PAGE,value:"_blank"}],Hc=y.a.div(Tc||(Tc=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n"]))),$c=function(e){var n=Mc(Uc(!1),2),t=n[0],r=n[1],a=t,o=e.postId,i=Mc(Uc(e.url),2),l=i[0],c=i[1],u=Mc(Uc(e.target?e.target:"_self"),2),s=u[0],d=u[1],f=Mc(Uc(e.rel),2),p=f[0],m=f[1],b=Mc(Uc(e.aria),2),g=b[0],h=b[1],y=Mc(Uc(!1),2),v=y[0],x=y[1],w=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,t,a,o,i){var l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),l=!0,e.prev=2,e.next=5,xc("".concat(wc,"/update_meta"),{json:{post_id:n,_gallery_link_url:t,_gallery_link_target:a,_gallery_link_rel:o,_gallery_link_aria:i},nonce:Oc});case 5:(c=e.sent).success||(l=!1,alert(c.message)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),l=!1,alert(e.t0.message);case 13:return e.prev=13,l&&O(),r(!1),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[2,9,13,17]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Bc(o,r,a,i,l,"next",e)}function l(e){Bc(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t,r,a,o){return n.apply(this,arguments)}}(),O=function(){return x(!1)},k=Gc((function(){w(o,l,s,p,g)}),[o,l,s,p,g,w,O]),E=Gc((function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),k())}),[k]);return React.createElement(React.Fragment,null,React.createElement("span",{onClick:function(){return x(!0)},style:{cursor:"pointer"}},React.createElement(at,{icon:"link",disabled:!l})),React.createElement(el,{isOpen:v,onRequestClose:O,title:"Edit the custom link",content:React.createElement("div",null,React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.LINK_URL),React.createElement(Xr,{disabled:a,onInput:function(e){return c(e.target.value)},onKeyDown:E,value:l,autoFocus:!0})),React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.LINK_TARGET),React.createElement(Ia,{scrolldown:!0,value:s,onChange:function(e){return d(e)},disabled:a},qc.map((function(e){return React.createElement(Ta,{value:e.value,label:e.label})})))),React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.LINK_REL),React.createElement(Xr,{disabled:a,onInput:function(e){return m(e.target.value)},value:p})),React.createElement(Hc,null,React.createElement(tr,{p:!0},_c.ARIAL_LABEL),React.createElement(Xr,{disabled:a,onInput:function(e){return h(e.target.value)},value:g}))),onOkClick:k,onCancelClick:O}))},Wc=null;document.addEventListener("DOMContentLoaded",(function(e){var n;(Wc=document.getElementsByClassName("upload-php")[0],(n=document.getElementById("mgcl-admin-settings"))&&(i.a.render(a.a.createElement(Rc,null),n),1)||!Wc)||Array.from(document.getElementsByClassName("mgcl-edit-link-field")).forEach((function(e){var n=e.getAttribute("data-post-id"),t=e.getAttribute("data-url"),r=e.getAttribute("data-target"),o=e.getAttribute("data-rel"),l=e.getAttribute("data-aria");i.a.render(a.a.createElement($c,{postId:n,url:t,target:r,rel:o,aria:l}),e)}))}))}});
|
2 |
//# sourceMappingURL=index.js.map
|
1 |
+
!function(e){function n(n){for(var r,i,l=n[0],c=n[1],u=n[2],d=0,f=[];d<l.length;d++)i=l[d],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&f.push(a[i][0]),a[i]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(s&&s(n);f.length;)f.shift()();return o.push.apply(o,u||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,l=1;l<t.length;l++){var c=t[l];0!==a[c]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},a={0:0},o=[];function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="";var l=window.wpJsonMgcl=window.wpJsonMgcl||[],c=l.push.bind(l);l.push=n,l=l.slice();for(var u=0;u<l.length;u++)n(l[u]);var s=c;o.push([101,1]),t()}({0:function(e,n){e.exports=React},10:function(e,n){e.exports=ReactDOM},101:function(e,n,t){"use strict";t.r(n);var r=t(0),a=t.n(r),o=t(10),i=t.n(o),l=t(21),c=t(1),u=t.n(c);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return b(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return b(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var h=function(e){var n=e.spinner,t=void 0===n||n,o=e.busy,i=void 0!==o&&o,l=e.overlayStyle,c=m(Object(r.useState)(!0),2),u=c[0],d=c[1];Object(r.useEffect)((function(){var e;return i?d(!0):e=setTimeout((function(){d(!1),e=null}),250),function(){e&&clearTimeout(e)}}),[i]);var p=u?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"overlay "+(i?"":"overlayHidden"),style:l},Boolean(t)&&a.a.createElement("div",{className:"lds-ellipsis "+(i?"":"spinnerHidden")},a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null),a.a.createElement("div",null))),a.a.createElement("style",{jsx:!0},"\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n ")):null,b=f(f({},e),{},{busy:void 0,spinner:void 0});return a.a.createElement("div",s({style:{position:"relative"}},b),p,e.children)};h.propTypes={busy:u.a.bool.isRequired,spinner:u.a.bool,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]).isRequired};var g=h,y=t(2),v=t(4);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){k(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var O,j={black:"#000000",blackRGB:"0, 0, 0",blue:"#007cba",blueRGB:"0, 124, 186",deepBlue:"#134575",finderBorder:"#DEDEDE",lightBlue:"#EBF3FF",lightGray:"#cacaca",lightGray2:"#F5F5F5",lightPurple:"#D8B1FF",gray:"#E8E8E8",green:"#0EA480",darkGray:"#A0A0A0",disabledForm:"#828282",orange:"#daa827",overlay:"rgba(16, 16, 16, 0.92)",red:"#ba4300",redHighlight:"#de5307",header:"#007cba",proGray:"#7F8EA0",progress:"#8414a8",purple:"#956DBE",tableGray:"#FAFAFA",yellow:"#e4b42b",yellowRGB:"224, 156, 54",white:"#ffffff",whiteRGB:"255, 255, 255"},S={danger:j.red,primary:j.blue,secondary:j.lightBlue,success:j.green},R=E(E(E({},j),S),{},{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,"Helvetica Neue", sans-serif',fontSizeH1:"24px",fontSizeH2:"18px",fontSizeText:"13px",fontSizeSmall:"12px",fontSizeSmallButton:"10px",lightShadow:"0px 0px 10px rgba(0,0,0,0.1)"}),P=t(3),C=["type"];function A(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var z,N,I=y.a.div(O||(z=["\n width: ",";\n padding-top: ",";\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n"],N||(N=z.slice(0)),O=Object.freeze(Object.defineProperties(z,{raw:{value:Object.freeze(N)}}))),(function(e){return e.size||"50%"}),(function(e){return e.size||"50%"}),(function(e){return e.color||"#333"})),T=function(e){return a.a.createElement(I,e,a.a.createElement("div",{className:"double-bounce1"}),a.a.createElement("div",{className:"double-bounce2"}))},_=function(e){var n=e.type,t=void 0===n?"circle":n,r=A(e,C);switch(t){case"circle":return a.a.createElement(T,r);default:return null}},D=function(e){return a.a.createElement(_,e)};D.propTypes={type:u.a.string},D.defaultProps={type:"circle"};var M=t(35),B=t.n(M),F=t(36),L=t.n(F),U=t(37),G=t.n(U),q=t(12),W=t.n(q),H=t(13),$=t.n(H),Y=t(14),K=t.n(Y),V=t(6),J=t.n(V),X=t(5),Z=t.n(X),Q=t(7),ee=t.n(Q),ne=t(15),te=t.n(ne),re=t(16),ae=t.n(re),oe=t(38),ie=t.n(oe),le=t(39),ce=t.n(le),ue=t(40),se=t.n(ue),de=t(17),fe=t.n(de),pe=t(41),me=t.n(pe),be=t(42),he=t.n(be),ge=t(43),ye=t.n(ge),ve=t(44),we=t.n(ve),xe=(t(86),t(45)),Ee=t.n(xe),ke=t(46),Oe=t.n(ke),je=t(47),Se=t.n(je),Re=t(48),Pe=t.n(Re),Ce=t(49),Ae=t.n(Ce),ze=t(50),Ne=t.n(ze),Ie=t(51),Te=t.n(Ie),_e=t(52),De=t.n(_e),Me=t(8),Be=t.n(Me),Fe=t(18),Le=t.n(Fe),Ue=t(19),Ge=t.n(Ue),qe=t(53),We=t.n(qe),He=t(54),$e=t.n(He),Ye=t(55),Ke=t.n(Ye),Ve=t(56),Je=t.n(Ve),Xe=t(57),Ze=t.n(Xe),Qe=t(58),en=t.n(Qe),nn=t(59),tn=t.n(nn),rn=t(60),an=t.n(rn),on=t(61),ln=t.n(on),cn=t(62),un=t.n(cn),sn=t(63),dn=t.n(sn),fn=t(64),pn=t.n(fn),mn=t(65),bn=t.n(mn),hn=t(66),gn=t.n(hn),yn=t(67),vn=t.n(yn),wn=t(68),xn=t.n(wn),En=t(69),kn=t.n(En),On=t(70),jn=t.n(On),Sn=t(71),Rn=t.n(Sn),Pn=t(72),Cn=t.n(Pn),An=t(73),zn=t.n(An),Nn=t(74),In=t.n(Nn),Tn={lock:B.a,"lock-open":L.a,"file-undo":G.a,"chevron-double-left":W.a,"chevron-double-right":$.a,"chevron-left":K.a,"chevron-right":J.a,"chevron-down":Z.a,"chevron-up":ee.a,pause:te.a,play:ae.a,replay:ie.a,check:ce.a,"check-circle":se.a,stop:fe.a,delete:me.a,undo:he.a,alert:ye.a,database:we.a,tools:Ee.a,cog:Oe.a,close:Se.a,cat:Pe.a,upload:dn.a,trash:Ae.a,pencil:Ne.a,dashboard:Te.a,search:De.a,folder:Be.a,"folder-open":Le.a,"image-multiple-outline":Ge.a,plus:We.a,"folder-plus":$e.a,"image-plus":Ke.a,"view-grid":Je.a,"format-list-bulleted":Ze.a,twitter:en.a,instagram:tn.a,facebook:an.a,star:ln.a,"timer-outline":un.a,link:pn.a,linkedin:bn.a,pinterest:gn.a,"zoom-in":vn.a,"info-outline":xn.a,"arrow-up":kn.a,"arrow-down":jn.a,sort:Rn.a,eye:Cn.a,"rocket-launch":zn.a,"calendar-month":In.a},_n=t(24),Dn=t.n(_n);t(25);function Mn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var Bn=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Mn(this,e),this.url=r,this.message=n,this.code=t,this.body=a,this.debug=o};function Fn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||qn(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ln(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Un(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Ln(o,r,a,i,l,"next",e)}function l(e){Ln(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Gn(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=qn(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}function qn(e,n){if(e){if("string"==typeof e)return Wn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Wn(e,n):void 0}}function Wn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Hn=function(e){if(!e.data)return e;if(e.data.length>0&&e.data[0].meta){var n,t=Gn(e.data);try{for(t.s();!(n=t.n()).done;){var r=n.value;try{r.meta=JSON.parse(r.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",r.meta)}}}catch(e){t.e(e)}finally{t.f()}}else if(e.data.meta)try{e.data.meta=JSON.parse(e.data.meta)}catch(e){console.error("[JsonFetcher]","Could not decode meta.",x.meta)}return e},$n=function(){var e=Un(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>1&&void 0!==d[1]?d[1]:{},r=null,a={},o=null,i=null,e.prev=5,(t=t||{}).headers=t.headers?t.headers:{},t.headers.Pragma="no-cache",t.headers["Cache-Control"]="no-cache",e.next=12,fetch("".concat(n),t);case 12:return i=e.sent,e.next=15,i.text();case 15:r=e.sent,(a=JSON.parse(r)).success||(l=!1===a.success?"NOT-SUCCESS":"N/A",c=a.message?a.message:"Unknown error. Check your Console Logs.","rest_no_route"===a.code?(c="The API can't be accessed. Is Rest API enabled?",l="NO-ROUTE"):"internal_server_error"===a.code&&(c="Server error. Please check your PHP Error Logs.",l="SERVER-ERROR"),o=new Bn(c,l,n,r||i)),e.next=26;break;case 20:e.prev=20,e.t0=e.catch(5),u="BROKEN-REPLY",s="The reply sent by the server is broken.",i&&i.status&&408===i.status&&(u="REQUEST-TIMEOUT",s="The request generated a timeout."),o=new Bn(s,u,n,r||i,e.t0);case 26:return o&&(console.error("[NekoError] JsonFetcher",o.url,{code:o.code,error:o.error,body:o.body}),a.success=!1,a.error=o),e.abrupt("return",Hn(a));case 28:case"end":return e.stop()}}),e,null,[[5,20]])})));return function(n){return e.apply(this,arguments)}}(),Yn=function(){var e=Un(regeneratorRuntime.mark((function e(n){var t,r,a,o,i,l,c,u,s,d,f,p,m,b=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=b.length>1&&void 0!==b[1]?b[1]:{},r=t.json,a=void 0===r?{}:r,o=t.signal,i=t.file,l=t.nonce,c=i?new FormData:null,i)for(c.append("file",i),u=0,s=Object.entries(a);u<s.length;u++)d=Fn(s[u],2),f=d[0],p=d[1],c.append(f,p);return m=l?{"X-WP-Nonce":l}:{},c||(m["Content-Type"]="application/json"),e.abrupt("return",$n(n,{method:"POST",headers:m,body:c||JSON.stringify(a),signal:o}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();function Kn(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Vn(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,n){if(e){if("string"==typeof e)return Jn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Jn(e,n):void 0}}function Jn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Xn,Zn,Qn=function(){var e=Object(r.useRef)(),n=Kn(Object(r.useState)({}),2),t=n[0],a=n[1];return Object(r.useEffect)((function(){if(e&&e.current){var n=new ResizeObserver((function(e){var n=e[0];n.contentRect&&a({width:n.contentRect.left+n.contentRect.right,height:n.contentRect.top+n.contentRect.bottom})}));return n.observe(e.current),function(){n.unobserve(e.current)}}}),[]),{ref:e,width:t.width?t.width:0,height:t.height?t.height:0}},et=function(e){var n=Object(r.useRef)(),t=function(t){e&&!n.current.contains(t.target)&&e()};return Object(r.useEffect)((function(){return document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}})),n};new Dn.a({concurrency:1,autoStart:!1});function nt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return tt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function rt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var at=y.a.div(Xn||(Xn=rt(["\n\tdisplay: flex;\n"]))),ot=y.a.div(Zn||(Zn=rt(["\n\tbackground-color: rgba(",", 0.8);\n\tborder-radius: 4px;\n\tcolor: ",";\n\tfont-family: ",";\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ",";\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ",';\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(',", 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(",", 0.8);\n\t\t}\n\t}\n\n\t","\n"])),R.blackRGB,R.white,R.fontFamily,R.fontSizeText,(function(e){return e.visible?"inline-block":"none"}),R.blackRGB,R.blackRGB,R.blackRGB,R.blackRGB,(function(e){return e.style})),it=function(e){var n=e.text,t=void 0===n?"Hello world!":n,o=e.position,i=void 0===o?"top":o,l=nt(Object(r.useState)(!1),2),c=l[0],u=l[1],s=Qn(),d=s.ref,f=s.width,p=s.height,m=Qn(),b=m.ref,h=m.width,g=m.height,y=Object(r.useMemo)((function(){var e=0,n=0;if("top"===i)e=-1*p-5,n=f/2*-1+h/2;else if("bottom"===i)e=g+5,n=f/2*-1+h/2;else if("left"===i){e=(p-g)/2*-1,n=-1*f-5}else if("right"===i){e=(p-g)/2*-1,n=h+5}return{transform:"translateX(".concat(n,"px) translateY(").concat(e,"px)")}}),[i,f,p,h,g]);return a.a.createElement(at,null,a.a.createElement(ot,{ref:d,visible:c,className:i,style:y},t),a.a.createElement("div",{ref:b,onMouseEnter:function(){return t&&u(!0)},onMouseLeave:function(){return u(!1)}},e.children))},lt=function(e){return a.a.createElement(it,e)};lt.propTypes={text:u.a.string,position:u.a.oneOf(["top","right","bottom","left"])},lt.defaultProps={text:"Hello world!",position:"top"};var ct,ut,st=["icon","spinning","className","title","tooltip","containerStyle","color","hoverColor","disabled","raw","isBusy"];function dt(){return(dt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ft(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function pt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var mt=y.a.div(ct||(ct=pt(["\n display: flex;\n align-items: center;\n"]))),bt=Object(y.a)(P.Icon)(ut||(ut=pt(["\n\n path {\n fill: ",";\n }\n\n ","\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n"])),(function(e){return e.color}),(function(e){return n=e.color,(t=e.hoverColor)?"\n &:hover {\n path {\n fill: ".concat(t,";\n }\n }\n "):n?"\n &:hover {\n path {\n fill: ".concat(Object(v.a)(.1,n),";\n }\n }\n "):void 0;var n,t})),ht=function(e){var n=e.icon,t=e.spinning,r=void 0!==t&&t,o=e.className,i=void 0===o?"":o,l=e.title,c=e.tooltip,u=e.containerStyle,s=e.color,d=e.hoverColor,f=e.disabled,p=void 0!==f&&f,m=e.raw,b=e.isBusy,h=void 0!==b&&b,g=ft(e,st);g.width||g.height||(g.width=g.height=30);var y=function(){return"string"==typeof n?Tn[n]||null:n},v="nui-icon ".concat(i).concat(g.onClick?" nui-clickable":"").concat(r?" spin":"").concat(p?" disabled":"").concat(h?" busy":"");return c?a.a.createElement(lt,{text:c.text,position:c.position||"top"},a.a.createElement(mt,{style:u},a.a.createElement(bt,dt({icon:y(),className:v,color:s,hoverColor:d},g)))):m?a.a.createElement(bt,dt({icon:y(),className:v,color:s,hoverColor:d},g)):a.a.createElement(mt,{style:u,title:l},a.a.createElement(bt,dt({icon:y(),className:v,color:s,hoverColor:d},g)),c?a.a.createElement(lt,null,c):null)},gt=function(e){return a.a.createElement(ht,e)};gt.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["lock","lock-open","file-undo","chevron-double-left","chevron-double-right","chevron-left","chevron-right","chevron-down","chevron-up","pause","play","replay","check","stop","delete","undo","alert","database","pencil","tools","cog","close","cat","upload"])]),color:u.a.string,spinning:u.a.bool,className:u.a.string,tooltip:u.a.string,raw:u.a.bool,isBusy:u.a.bool},gt.defaultProps={icon:void 0,color:void 0,spinning:!1,className:"",tooltip:void 0,raw:void 0,isBusy:!1};var yt,vt=["className","icon","onClick","disabled","color","small","isBusy","width","height","children","rounded","busyText","spinning","hideBusyIcon","busyIconSize"];function wt(){return(wt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function xt(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Et=Object(y.a)((function(e){var n=e.className,t=e.icon,o=void 0===t?null:t,i=e.onClick,l=e.disabled,c=void 0!==l&&l,u=e.color,s=void 0===u?null:u,d=e.small,f=e.isBusy,p=void 0!==f&&f,m=e.width,b=(e.height,e.children),h=e.rounded,g=e.busyText,y=e.spinning,v=void 0!==y&&y,w=e.hideBusyIcon,x=void 0!==w&&w,E=e.busyIconSize,k=xt(e,vt),O=!!o,j=Object(r.useMemo)((function(){var e=null!=m?m:30;return h?e-10:e-6}),[m,h]),S=Object(r.useMemo)((function(){return E||(h?"82%":"35%")}),[h,E]),R="nui-button ".concat(n||"").concat(O?" has-icon":"").concat(s?" custom-color":"").concat(d?" small":"").concat(h?" rounded":"").concat(p?" busy":"");return a.a.createElement("button",wt({type:"button",className:R,onClick:i,disabled:c},k),p&&!x&&a.a.createElement(D,{type:"circle",color:"#fff",size:S}),p&&!!g&&a.a.createElement("span",{style:{marginLeft:x?0:"4px",marginRight:"2xp"}},g),O&&!p&&a.a.createElement(gt,{icon:o,width:j,height:j,spinning:v,raw:!0,style:h?{margin:"0 auto"}:{}}),!!b&&!p&&a.a.createElement("span",{style:{marginLeft:O?"4px":0,marginRight:O?"2xp":0}},b))}))(yt||(yt=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ",";\n font-size: ",";\n padding: 0 15px;\n\n background-color: ",";\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n &.danger {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.success {\n background-color: ",";\n border-color: ",";\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ",";\n height: 24px;\n }\n\n &.header {\n background-color: ",";\n border-color: ",";\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ",";\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ","px;\n width: ","px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ","\n"])),R.fontFamily,R.fontSizeText,R.blue,Object(v.a)(.1,R.blue),R.lightBlue,R.blue,R.blue,Object(v.a)(.1,R.lightBlue),R.red,R.red,Object(v.a)(.1,R.red),R.green,R.green,Object(v.a)(.1,R.green),R.fontSizeSmallButton,R.deepBlue,R.deepBlue,Object(v.a)(.1,R.deepBlue),(function(e){var n,t;return null!==(n=e.height)&&void 0!==n?n:null!==(t=e.width)&&void 0!==t?t:30}),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:30}),(function(e){return kt(e.color)})),kt=function(e){if(e)return"\n &.custom-color {\n background-color: ".concat(e,";\n border: 1px solid ").concat(e,";\n\n &:hover {\n background-color: ").concat(Object(v.a)(.1,e),";\n }\n }\n ")},Ot=function(e){return a.a.createElement(Et,e)};Ot.propTypes={className:u.a.oneOf(["primary","secondary","danger","success","header"]),disabled:u.a.bool,icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["setting","edit","trash"])]),color:u.a.string,onClick:u.a.func.isRequired,rounded:u.a.bool,isBusy:u.a.bool,spinning:u.a.bool,busyText:u.a.string,hideBusyIcon:u.a.bool,busyIconSize:u.a.string},Ot.defaultProps={className:"primary",disabled:!1,icon:null,color:null,onClick:function(){},rounded:void 0,isBusy:!1,spinning:!1,busyText:void 0,hideBusyIcon:!1,busyIconSize:void 0};var jt,St=["show","className"];function Rt(){return(Rt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Pt(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ct,At,zt,Nt,It=y.a.a(jt||(jt=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n background-color: ",";\n position: relative;\n border-radius: 10px;\n color: ",";\n font-family: ",";\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ",";\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n"])),R.yellow,R.white,R.fontFamily,R.white),Tt=function(e){var n=e.show,t=void 0===n||n,r=e.className,o=Pt(e,St);return t?a.a.createElement(It,Rt({href:"https://store.meowapps.com",target:"_blank",className:"".concat(r||"")},o),"Pro Only"):null},_t=function(e){return a.a.createElement(Tt,e)};function Dt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Mt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Mt(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Bt(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}_t.propTypes={show:u.a.bool,className:u.a.string},_t.defaultProps={show:!0,className:void 0};var Ft,Lt=y.a.div(Ct||(Ct=Bt(["\n display: inline-block;\n"]))),Ut=y.a.button(At||(At=Bt(["\n align-items: center;\n background-color: ",";\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ",";\n font-size: ",";\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n"])),R.blue,R.fontFamily,R.fontSizeText,Object(v.a)(.1,R.blue)),Gt=y.a.div(zt||(zt=Bt(["\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ",";\n position: absolute;\n z-index: 10;\n box-shadow: ",';\n\n &:before {\n content: "";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ',";\n }\n"])),R.blue,R.lightShadow,R.blue),qt=function(e){var n=e.title,t=e.disabled,r=void 0!==t&&t,o=e.isPro,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.hideChevron,s=e.titleStyle,d=void 0===s?{}:s,f=Dt(a.a.useState(!1),2),p=f[0],m=f[1],b=et((function(){m(!1)})),h=Qn(),g=h.ref,y=h.width,v=function(){m(!p)},w=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{isPro:i,disabled:e.props.disabled||r,onClick:function(){e.props.onClick&&e.props.onClick(),v()}})}));return a.a.createElement(Lt,{ref:b},a.a.createElement(Ut,{ref:g,type:"button",disabled:r,onClick:v,style:c},a.a.createElement("span",{style:d},n),!u&&a.a.createElement(P.Icon,{icon:Z.a,width:"24",height:"24",style:{marginLeft:"4px"}})),p&&a.a.createElement(Gt,{style:{transform:"translateX(calc(-50% + ".concat(y/2,"px))")}},w))},Wt=y.a.button(Nt||(Nt=Bt(["\n align-items: center;\n background-color: ",";\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ",";\n font-size: ",";\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ",";\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ",";\n justify-content: space-between;\n }\n\n &.separator {\n border-top: 1px solid ",";\n font-size: 10px;\n padding: 5px;\n }\n"])),R.blue,R.fontFamily,R.fontSizeText,Object(v.a)(.1,R.blue),R.proGray,R.white),Ht=function(e){var n=e.onClick,t=e.children,r=e.isPro,o=e.requirePro,i=void 0!==o&&o,l=e.disabled,c=e.separator,u=i&&!r;return a.a.createElement(Wt,{type:"button",className:"".concat(u?"is-pro":""," ").concat(c?"separator":""),onClick:n,disabled:l||u},a.a.createElement("span",null,t),u&&!r&&a.a.createElement(_t,null))},$t=function(e){return a.a.createElement(qt,e)},Yt=function(e){return a.a.createElement(Ht,e)};function Kt(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Vt(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,n){if(e){if("string"==typeof e)return Jt(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Jt(e,n):void 0}}function Jt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}$t.propTypes={title:u.a.string,disabled:u.a.bool,isPro:u.a.bool,hideChevron:u.a.bool,style:u.a.object,titleStyle:u.a.object},$t.defaultProps={title:void 0,disabled:!1,isPro:!1,hideChevron:void 0,style:{},titleStyle:{}},Yt.propTypes={onClick:u.a.func.isRequired,requirePro:u.a.bool,separator:u.a.bool},Yt.defaultProps={onClick:function(){},requirePro:!1,separator:void 0};var Xt=y.a.div(Ft||(Ft=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n"]))),Zt=function(e){var n=e.className,t=e.children,o=e.nekoErrors,i=void 0===o?[]:o,l=e.style,c=void 0===l?{}:l,u=Kt(Object(r.useState)(!1),2),s=u[0],d=u[1],f=Kt(Object(r.useState)(!1),2),p=f[0],m=f[1];if(i&&!s){var b,h=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Vt(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}(i);try{for(h.s();!(b=h.n()).done;){var g=b.value;if(g){d(g);break}}}catch(e){h.e(e)}finally{h.f()}}return a.a.createElement(Xt,{className:n||"",style:c},s&&a.a.createElement("div",{className:"neko-rest-error"},a.a.createElement("div",{className:"container"},!p&&a.a.createElement(a.a.Fragment,null,a.a.createElement("h3",null,"The Rest API is disabled or broken 😢"),a.a.createElement("p",null,"The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled."),a.a.createElement("p",null,a.a.createElement("i",null,"Last but not least: check your PHP Error Logs and your Debugging Console.")),a.a.createElement("p",{className:"neko-debug"},a.a.createElement("small",null,"URL: ",s.url,a.a.createElement("br",null),"CODE: ",s.code,a.a.createElement("br",null),"MESSAGE: ",s.message,a.a.createElement("br",null)))),s.body&&p&&a.a.createElement("p",{className:"neko-debug"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:s.body}})),s.body&&a.a.createElement(Ot,{color:"#a94242",onClick:function(){return m(!p)}},p?"Hide":"Display"," response from server"),a.a.createElement(Ot,{color:"#a94242",onClick:function(){window.open("https://meowapps.com/fix-wordpress-rest-api/","_blank")}},"Learn about WordPress Debugging"))),t)},Qt=function(e){return a.a.createElement(Zt,e)};Qt.propTypes={className:u.a.string,style:u.a.object,nekoErrors:u.a.bool},Qt.defaultProps={className:void 0,style:{},nekoErrors:!1};var er,nr,tr,rr,ar,or=["children"];function ir(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function lr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var cr,ur=y.a.h1(er||(er=lr(["\n font-family: ",";\n font-weight: normal;\n font-size: ",";\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),R.fontFamily,R.fontSizeH1),sr=y.a.h2(nr||(nr=lr(["\n font-family: ",";\n font-size: ",";\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n"])),R.fontFamily,R.fontSizeH2),dr=y.a.p(tr||(tr=lr(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n"])),R.fontFamily,R.fontSizeText),fr=y.a.span(rr||(rr=lr(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),R.fontFamily,R.fontSizeText),pr=y.a.label(ar||(ar=lr(["\n font-family: ",";\n font-size: ",";\n line-height: normal;\n margin: 0;\n padding: 0;\n"])),R.fontFamily,R.fontSizeText),mr=function(e){var n=e.children,t=ir(e,or);return e.h1?a.a.createElement(ur,t,n):e.h2?a.a.createElement(sr,t,n):e.p?a.a.createElement(dr,t,n):e.label?a.a.createElement(pr,t,n):a.a.createElement(fr,t,n)},br=function(e){return a.a.createElement(mr,e)};br.propTypes={h1:u.a.any,h2:u.a.any,p:u.a.any},br.defaultProps={h1:void 0,h2:void 0,p:void 0};var hr,gr,yr=y.a.div(cr||(cr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-size: ",";\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ",";\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ",";\n\n .nui-block-title {\n color: ",";\n }\n\n .nui-block-content {\n background-color: ",";\n }\n }\n"])),R.fontSizeText,R.blue,R.blue,R.white,R.white),vr=function(e){var n=e.title,t=e.children,r=e.className,o=e.busy,i=void 0!==o&&o,l=e.style,c=void 0===l?{}:l,u=e.contentStyle,s=void 0===u?{}:u,d=e.action;return a.a.createElement(yr,{className:"nui-block "+(r||""),style:c},a.a.createElement(g,{busy:i},a.a.createElement("div",{className:"nui-block-header"},a.a.createElement(br,{h2:!0,className:"nui-block-title"},n),!!d&&d),a.a.createElement("div",{className:"nui-block-content",style:s},t)))},wr=function(e){return a.a.createElement(vr,e)};function xr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}wr.propTypes={title:u.a.string,className:u.a.oneOf(["","primary"]),style:u.a.object,action:u.a.element},wr.defaultProps={title:void 0,className:"",style:{},action:void 0};var Er,kr=y.a.div(hr||(hr=xr(["\n font-size: ",";\n font-family: ",";\n background-color: ",";\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ",";\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n"])),R.fontSizeText,R.fontFamily,R.white,R.blue),Or=y.a.div(gr||(gr=xr(["\n justify-content: flex-start;\n background-color: ",";\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n"])),R.lightGray2),jr=function(e){var n=e.children,t=e.header,r=e.headerAlign,o=void 0===r?"left":r,i=e.footer,l=e.footerAlign,c=void 0===l?"right":l,u=e.className,s=e.style,d=void 0===s?{}:s;return a.a.createElement(kr,{className:u||"",style:d},t&&a.a.createElement(Or,{className:"align-".concat(o)},t),a.a.createElement("div",{className:"content"},n),i&&a.a.createElement(Or,{className:"align-".concat(c)},i))},Sr=function(e){return a.a.createElement(jr,e)};Sr.propTypes={header:u.a.element,headerAlign:u.a.oneOf(["left","right"]),footer:u.a.element,footerAlign:u.a.oneOf(["left","right"]),className:u.a.string,style:u.a.object},Sr.defaultProps={header:void 0,headerAlign:"left",footer:void 0,footerAlign:"right",className:void 0,style:{}};var Rr,Pr,Cr=Object(y.a)((function(e){var n=e.title,t=void 0===n?"":n,r=e.contentAlign,o=void 0===r?"left":r;return a.a.createElement("div",{className:e.className||""},t?a.a.createElement("div",{className:"nui-settings-head"},t):null,a.a.createElement("div",{className:"nui-settings-content nui-settings-content-align-".concat(o)},e.children))}))(Er||(Er=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n font-family: ",";\n\n > .nui-settings-head {\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n"])),R.fontFamily,R.fontFamily),Ar=function(e){return a.a.createElement(Cr,e)};function zr(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Ar.propTypes={title:u.a.string,className:u.a.string,contentAlign:u.a.string},Ar.defaultProps={title:"",className:void 0,contentAlign:"left"};var Nr=y.a.div(Rr||(Rr=zr(["\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n"]))),Ir=Object(y.a)((function(e){return e.children?a.a.createElement("div",{className:e.className},e.children):null}))(Pr||(Pr=zr(["\n background-color: ",";\n color: white;\n"])),R.blue),Tr=function(e){return a.a.createElement(Nr,{className:"window"},a.a.createElement(Ir,null,e.title),e.children)},_r=function(e){return a.a.createElement(Tr,e)};_r.propTypes={title:u.a.string},_r.defaultProps={title:void 0};var Dr,Mr,Br=["full","minimal"];function Fr(){return(Fr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Lr(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Ur(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Gr=y.a.div(Dr||(Dr=Ur(["\n display: flex;\n flex-wrap: wrap;\n"]))),qr=y.a.div(Mr||(Mr=Ur(["\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n"]))),Wr=function(e){return a.a.createElement(Gr,null,e.children)},Hr=function(e){var n=e.full,t=e.minimal,r=Lr(e,Br),o=n?"full":"";return o+=t?" minimal":"",a.a.createElement(qr,Fr({className:o},r),e.children)},$r=function(e){return a.a.createElement(Wr,e)},Yr=function(e){return a.a.createElement(Hr,e)};$r.propTypes={},$r.defaultProps={},Yr.propTypes={full:u.a.any},Yr.defaultProps={full:void 0};var Kr,Vr=t(9),Jr=t.n(Vr),Xr=t(20),Zr=t.n(Xr);var Qr,ea=Object(y.a)((function(e){var n=e.id,t=e.name,r=e.checked,o=void 0!==r&&r,i=e.onChange,l=e.label,c=e.description,u=e.isPro,s=e.disabled,d=e.requirePro,f=void 0!==d&&d,p=e.isBusy,m=void 0!==p&&p,b=f&&!u,h=s||b,g=h?"disabled":"";return a.a.createElement("div",{className:["nui-checkbox",e.className,g].join(" "),onClick:function(e){return e.stopPropagation()}},a.a.createElement("input",{id:n,name:t,type:"checkbox",defaultChecked:!1,disabled:h||m}),a.a.createElement("label",{htmlFor:n,onClick:function(){h||(i?i(!o,n):console.log("The onChange handler it not set for the NekoCheckbox.",e))}},a.a.createElement("div",{className:"nui-checkbox-check-container"},m?a.a.createElement("div",{className:"nui-checkbox-busy-container"},a.a.createElement(P.Icon,{icon:Jr.a,width:"30px",height:"30px",color:R.blue}),a.a.createElement(D,{type:"circle",size:"16px",style:{position:"absolute",top:"7px",left:"7px"}})):a.a.createElement(P.Icon,{icon:o?Zr.a:Jr.a,width:"30px",height:"30px",color:h?R.disabledForm:R.blue})),a.a.createElement("div",{className:"nui-checkbox-inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(_t,{className:"inline",show:b})),c?a.a.createElement("small",{className:"description"},c):null)))}))(Kr||(Kr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n user-select: none;\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 28px;\n }\n \n .description {\n display: block;\n font-size: ",";\n line-height: 14px;\n color: ",";\n\n * {\n font-size: ",";\n line-height: inherit;\n margin: 0;\n }\n }\n }\n"])),R.fontFamily,R.disabledForm,R.fontSizeSmall,R.darkGray,R.fontSizeSmall),na=function(e){return a.a.createElement(ea,e)};na.propTypes={id:u.a.string,name:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,isPro:u.a.bool,requirePro:u.a.bool,isBusy:u.a.bool},na.defaultProps={id:void 0,name:void 0,checked:!1,label:void 0,description:void 0,isPro:!1,requirePro:!1,isBusy:!1};var ta=Object(y.a)((function(e){var n=e.name,t=(e.max,e.isPro),r=void 0!==t&&t;return a.a.Children.map(e.children,(function(e){return e.props.name?e:a.a.cloneElement(e,{name:n,isPro:r})}))}))(Qr||(Qr=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n"]))),ra=function(e){return a.a.createElement(ta,e)};ra.propTypes={name:u.a.string,mas:u.a.number,isPro:u.a.bool},ra.defaultProps={name:void 0,mas:-1,isPro:!1};var aa,oa=["id","name","value","description","placeholder","onEnter","readOnly","type","step","min","max","maxLength","className","style","natural","inputStyle","onChange","onBlur","onReset"];function ia(){return(ia=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function la(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return ca(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ca(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ca(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ua(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var sa=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.onEnter,d=void 0===s?null:s,f=e.readOnly,p=void 0!==f&&f,m=e.type,b=void 0===m?"text":m,h=e.step,g=void 0===h?1:h,y=e.min,v=void 0===y?1:y,w=e.max,x=void 0===w?999:w,E=e.maxLength,k=void 0===E?void 0:E,O=e.className,j=e.style,S=e.natural,P=void 0!==S&&S,C=e.inputStyle,A=e.onChange,z=e.onBlur,N=e.onReset,I=ua(e,oa),T=la(Object(r.useState)(i),2),_=T[0],D=T[1],M=!!A,B=k||("number"===b?3:void 0);Object(r.useEffect)((function(){M||D(i)}),[i]);var F=function(e){M?A(e.target.value,n):D(e.target.value)},L=function(e){d&&"Enter"===event.key&&(e.preventDefault(),d(e.target.value,n))},U=function(e){z&&i!==e.target.value&&z(e.target.value,n)},G="neko-input ".concat(P?" natural":"");return a.a.createElement("div",{className:[O].join(" "),style:j},a.a.createElement("div",{style:{position:"relative"}},"number"===b?a.a.createElement("input",ia({className:[G].join(" "),id:n,name:t,value:M?i:_,type:b,step:g,min:v,max:x,maxLength:B,autoComplete:"off",placeholder:u,style:C,onChange:F,onKeyPress:L,onBlur:U,readOnly:p},I)):a.a.createElement("input",ia({className:[G].join(" ")},I,{id:n,name:t,value:M?i:_,type:b,spellCheck:"false",autoComplete:"off",placeholder:u,style:C,maxLength:B,onChange:F,onKeyPress:L,onBlur:U,readOnly:p},I)),!!i&&!!N&&a.a.createElement(gt,{icon:"close",width:24,style:{position:"absolute",top:"3px",right:"3px"},color:R.blue,onClick:N})),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(aa||(aa=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-input {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n color: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),R.fontFamily,R.fontSizeText,R.blue,R.gray,R.fontFamily,R.fontSizeSmall,R.darkGray),da=function(e){return a.a.createElement(sa,e)};da.propTypes={id:u.a.string,type:u.a.oneOf(["number","text"]),name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,step:u.a.number,min:u.a.number,max:u.a.number,maxLength:u.a.number,natural:u.a.bool,onReset:u.a.func},da.defaultProps={id:void 0,type:"text",name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,step:1,min:1,max:999,maxLength:void 0,natural:!1,onReset:void 0};var fa,pa=["id","name","value","description","placeholder","avoidOnEnterWithShift","onEnter","readOnly","maxLength","className","style","textAreaStyle","countable"];function ma(){return(ma=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function ba(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return ha(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ha(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ga(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var ya=Object(y.a)((function(e){var n=e.id,t=e.name,o=e.value,i=void 0===o?"":o,l=e.description,c=e.placeholder,u=void 0===c?"":c,s=e.avoidOnEnterWithShift,d=void 0!==s&&s,f=e.onEnter,p=void 0===f?null:f,m=e.readOnly,b=void 0!==m&&m,h=e.maxLength,g=void 0===h?null:h,y=e.className,v=e.style,w=e.textAreaStyle,x=void 0===w?{}:w,E=e.countable,k=void 0!==E&&E,O=ga(e,pa),j=ba(Object(r.useState)(i),2),S=j[0],R=j[1],P=ba(Object(r.useState)(0),2),C=P[0],A=P[1],z=ba(Object(r.useState)(!1),2),N=z[0],I=z[1],T=!!e.onChange,_=Object(r.useCallback)((function(e){I(e.shiftKey)}),[]),D=Object(r.useCallback)((function(){I(!1)}),[]);Object(r.useEffect)((function(){return document.addEventListener("keydown",_,!1),document.addEventListener("keyup",D,!1),function(){document.removeEventListener("keydown",_,!1),document.removeEventListener("keyup",D,!1)}}),[]),Object(r.useEffect)((function(){T||R(i),k&&A(i.length)}),[i,k]);var M=Object(r.useCallback)((function(t){var r=g?t.target.value.substr(0,g):t.target.value;T?e.onChange(r,n):R(r,n)}),[g,e.onChange]);return a.a.createElement("div",{className:[y].join(" "),style:v},a.a.createElement("div",{className:"neko-textarea-container"},a.a.createElement("textarea",ma({className:"neko-textarea",rows:6},O,{id:n,name:t,spellCheck:"false",placeholder:u,onChange:M,onKeyPress:function(t){if(p&&!t.shiftKey&&"Enter"===t.key){if(d&&N)return;t.preventDefault(),e.onEnter(t.target.value,n)}},onBlur:function(t){e.onBlur&&i!==t.target.value&&e.onBlur(t.target.value,n)},readOnly:b,style:x,value:T?i:S})),k&&a.a.createElement("p",{className:"neko-textarea-count"},C," / ",g," characters")),l&&a.a.createElement("p",{className:"neko-input-description"},l))}))(fa||(fa=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ",";\n font-size: ",";\n border: 2px solid ",";\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ",";\n }\n }\n .neko-textarea-count {\n color: rgba(",", 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ",";\n font-size: ",";\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n"])),R.fontFamily,R.fontSizeText,R.blue,R.gray,R.blackRGB,R.fontFamily,R.fontSizeSmall),va=function(e){return a.a.createElement(ya,e)};va.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,description:u.a.string,placeholder:u.a.string,onChange:u.a.func,onEnter:u.a.func,onBlur:u.a.func,readOnly:u.a.bool,avoidOnEnterWithShift:u.a.bool},va.defaultProps={id:void 0,name:void 0,value:"",description:void 0,placeholder:"",onChange:void 0,onEnter:void 0,onBlur:void 0,readOnly:!1,avoidOnEnterWithShift:!1};var wa,xa,Ea,ka,Oa,ja,Sa,Ra=t(76),Pa=t.n(Ra),Ca=t(77),Aa=t.n(Ca),za=["id","name","value","scrolldown","isPro","onChange","className","disabled","isBusy","chevronIconSize","textFiltering"];function Na(){return(Na=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Ia(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ta(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ta(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ta(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function _a(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Da(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Ma=y.a.div(wa||(wa=Da(["\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ",";\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n\n .nui-select-option {\n pointer-events: none;\n background: ",";\n padding-right: 10px;\n }\n }\n"])),R.blue,R.gray),Ba=y.a.div(xa||(xa=Da(["\n align-items: center;\n background-color: ",";\n border: 2px solid ",";\n border-radius: 8px;\n display: flex;\n font-family: ",";\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n"])),R.white,R.blue,R.fontFamily),Fa=y.a.div(Ea||(Ea=Da(["\n display: block;\n margin-top: 5px;\n font-size: ",";\n line-height: 14px;\n color: ",";\n\n * {\n font-size: ",";\n line-height: inherit;\n margin: 0;\n }\n"])),R.fontSizeSmall,R.darkGray,R.fontSizeSmall),La=y.a.div(ka||(ka=Da(["\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n"]))),Ua=y.a.div(Oa||(Oa=Da(["\n background-color: ",";\n overflow-y: auto;\n max-height: 300px;\n\n &.nui-select-filter-container {\n background-color: ",";\n background: rgb(38 155 214);\n padding: 6px;\n margin-top: 2px;\n overflow: hidden;\n\n div {\n overflow: hidden;\n }\n }\n"])),R.white,R.blue),Ga=function(e){var n,t=e.id,o=e.name,i=e.value,l=e.scrolldown,c=void 0!==l&&l,u=e.isPro,s=void 0!==u&&u,d=e.onChange,f=e.className,p=e.disabled,m=e.isBusy,b=void 0!==m&&m,h=e.chevronIconSize,g=void 0===h?24:h,y=e.textFiltering,v=_a(e,za),w=null===(n=a.a.Children.toArray(e.children).find((function(e){return e.props.value===i||e.props.checked})))||void 0===n?void 0:n.props,x=(null==w?void 0:w.label)||"Select",E=(null==w?void 0:w.description)||e.description,k=(null==w?void 0:w.requirePro)||!1,O=null==w?void 0:w.icon,j=null==w?void 0:w.iconSize,S=Ia(Object(r.useState)(!1),2),C=S[0],A=S[1],z=Ia(Object(r.useState)(""),2),N=z[0],I=z[1],T=c?et((function(){A(!1)})):null,_=k&&!s,M=function(n){if(n!==i){if(!d)return void console.log("The onChange handler it not set for this checkbox.",e);d(n,t)}c&&A(!1)},B=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{name:e.props.name||o,checked:e.props.value===i||e.props.checked,onClick:M,scrolldown:c,isPro:s,disabled:p})})),F=Object(r.useMemo)((function(){if(!N||!B.length)return B;var e=[];return a.a.Children.forEach(B,(function(n){(n.props.label.includes(N)||n.props.value.includes(N))&&e.push(n)})),e}),[B,N]);return c?a.a.createElement(Ma,Na({id:t,ref:T},v,{onClick:function(){return A(!C)},className:["nui-select",f,C?"show-options":""],childrenLength:B.length,"data-is-disabled":p||b}),a.a.createElement(Ba,{className:"nui-select-option ".concat(b?"isBusy":"")},b?a.a.createElement(a.a.Fragment,null,a.a.createElement(D,{type:"circle",size:"20px"})):a.a.createElement(a.a.Fragment,null,O&&a.a.createElement(gt,{icon:O,width:j,height:j,style:{marginRight:"".concat(Math.max(j-15,4),"px")}}),a.a.createElement("span",{className:"nui-select-option-label"},x),a.a.createElement("div",{className:"rightContent"},_&&a.a.createElement(_t,null),!p&&a.a.createElement(P.Icon,{icon:C?ee.a:Z.a,width:g})))),E&&a.a.createElement(Fa,null,E),C&&a.a.createElement(La,{className:"nui-option ".concat(C?"":"hidden")},y&&a.a.createElement(Ua,{className:"nui-select-filter-container"},a.a.createElement(da,{id:"nui-select-filter",value:N,placeholder:"Search...",onChange:function(e){return I(e)},onClick:function(e){return e.stopPropagation()},style:{background:R.white},inputStyle:{margin:0,borderRadius:0},autoFocus:!0})),a.a.createElement(Ua,null,[F]))):B},qa=y.a.div(ja||(ja=Da(["\n font-family: ",";\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: ",";\n }\n }\n\n &.disabled {\n color: ",";\n\n label {\n cursor: default;\n }\n }\n"])),R.fontFamily,R.fontSizeSmall,R.disabledForm),Wa=y.a.div(Sa||(Sa=Da(["\n background-color: ",";\n cursor: pointer;\n font-family: ",";\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ",";\n display: flex;\n justify-content: space-between;\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n"])),R.blue,R.fontFamily,R.white,R.fontFamily),Ha=function(e){var n=e.id,t=e.name,r=e.value,o=e.checked,i=e.icon,l=e.label,c=e.description,u=e.onClick,s=e.scrolldown,d=e.isPro,f=void 0!==d&&d,p=e.requirePro,m=void 0!==p&&p,b=e.disabled,h=e.iconSize,g=void 0===h?20:h,y=m&&!f,v=y||b?"disabled":"",w=a.a.createElement(qa,{className:"nui-select ".concat(e.className||""," ").concat(v)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,onClick:function(e){return u(e.target.value)},disabled:y||b}),a.a.createElement("label",{htmlFor:n},a.a.createElement(P.Icon,{icon:o?Aa.a:Pa.a,width:"24px",color:y?R.disabledForm:R.blue}),a.a.createElement("div",{className:"inner-container"},a.a.createElement("span",{className:"label"},l,a.a.createElement(_t,{className:"inline",style:{top:-1},show:y})),c?a.a.createElement("small",{className:"description"},c):null))),x=a.a.createElement(Wa,{className:"nui-select ".concat(e.className||""," ").concat(v)},a.a.createElement("input",{id:n,name:t,type:"radio",value:r,defaultChecked:o,disabled:y||b}),a.a.createElement("div",{className:"option",onClick:function(){return u(r)}},a.a.createElement("div",{className:"option-group"},i&&a.a.createElement(gt,{icon:i,width:g,height:g,style:{marginRight:"".concat(Math.max(g-11,4),"px")}}),l),a.a.createElement(_t,{show:y})));return s?x:w},$a=function(e){return a.a.createElement(Ga,e)};$a.propTypes={id:u.a.string,name:u.a.string,description:u.a.string,scrolldown:u.a.bool,isPro:u.a.bool,onChange:u.a.func,isBusy:u.a.bool,chevronIconSize:u.a.number,textFiltering:u.a.bool},$a.propTypes={id:void 0,name:void 0,description:void 0,scrolldown:!1,isPro:!1,onChange:void 0,isBusy:!1,chevronIconSize:24,textFiltering:void 0};var Ya,Ka=function(e){return a.a.createElement(Ha,e)};Ka.propTypes={id:u.a.string,name:u.a.string,value:u.a.string,checked:u.a.bool,label:u.a.string,description:u.a.string,onClick:u.a.func,scrolldown:u.a.bool,isPro:u.a.bool,requirePro:u.a.bool,icon:u.a.string,iconSize:u.a.number},Ka.defaultProps={id:void 0,name:void 0,value:void 0,checked:!1,label:void 0,description:void 0,onClick:void 0,scrolldown:!1,isPro:!1,requirePro:!1,icon:void 0,iconSize:20};var Va=y.a.div(Ya||(Ya=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n"]))),Ja=function(e){return a.a.createElement(Va,null,e.children||null)},Xa=function(e){return a.a.createElement(Ja,e)};Xa.propTypes={},Xa.defaultProps={};var Za,Qa=["width","height","fontSize","onValue","offValue","checked","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onChange","disabled"];function eo(){return(eo=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function no(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var to=Object(y.a)((function(e){e.width,e.height;var n=e.fontSize,t=(void 0===n&&R.fontSizeSmall,e.onValue),o=e.offValue,i=e.checked,l=void 0!==i&&i,c=(e.onBackgroundColor,e.offBackgroundColor,e.onLabel,e.offLabel,e.onChange),u=e.disabled,s=no(e,Qa),d=Object(r.useCallback)((function(e){c(e.target.checked?t:o)}),[c,t,o]);return a.a.createElement("label",eo({},s,{"data-is-disabled":u?"disabled":""}),a.a.createElement("input",{type:"checkbox",onChange:d,checked:l,disabled:u}),a.a.createElement("span",{className:"nui-switch-slider"}))}))(Za||(Za=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n color: ",";\n font-family: ",";\n font-size: ",";\n position: relative;\n display: inline-block;\n width: ",";\n height: ",";\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ",";\n border-radius: ",';\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: "";\n height: ',";\n width: ",';\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: "','";\n margin-left: auto;\n margin-right: ',";\n }\n\n input:checked + .nui-switch-slider {\n background-color: ",";\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(",');\n }\n\n input:checked + .nui-switch-slider:after {\n content: "','";\n margin-left: ',";\n margin-right: auto;\n }\n"])),R.white,R.fontFamily,(function(e){return e.fontSize}),(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.offBackgroundColor}),(function(e){return e.height}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return"calc(".concat(e.height," - 8px)")}),(function(e){return e.offLabel}),(function(e){return"calc(".concat(e.height," / 2)")}),(function(e){return e.onBackgroundColor}),(function(e){return"calc(".concat(e.width," - ").concat(e.height,")")}),(function(e){return e.onLabel}),(function(e){return"calc(".concat(e.height," / 2)")})),ro=function(e){return a.a.createElement(to,e)};ro.propTypes={width:u.a.string,height:u.a.string,fontSize:u.a.string,onValue:u.a.string,offValue:u.a.string,checked:u.a.bool,onBackgroundColor:u.a.string,offBackgroundColor:u.a.string,onLabel:u.a.string,offLabel:u.a.string},ro.defaultProps={width:"100%",height:"20px",fontSize:"${Theme.fontSizeSmall}",checked:!1};var ao,oo,io,lo,co,uo,so=t(78),fo=t.n(so);function po(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return mo(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mo(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mo(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function bo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var ho=function(e){var n=e.chevron,t=void 0===n||n;return a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:t})}))},go=y.a.div(ao||(ao=bo(["\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ",";\n"])),R.fontFamily),yo=y.a.div(oo||(oo=bo(["\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: ",";\n margin: 0 0 0 8px;\n }\n"])),R.fontSizeText),vo=y.a.div(io||(io=bo(["\n height: 24px;\n width: 24px;\n"]))),wo=y.a.div(lo||(lo=bo(["\n position: relative;\n width: 24px;\n height: 24px;\n"]))),xo=y.a.div(co||(co=bo(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n"]))),Eo=y.a.div(uo||(uo=bo(["\n border-left: 1px solid ",";\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n"])),R.finderBorder),ko=function(e){var n={gallery:Ge.a,tag:fo.a},t=e.title,o=e.chevron,i=e.rightElement,l=void 0===i?null:i,c=e.rightElementStyle,u=void 0===c?{marginLeft:"5px"}:c,s=e.showRightElement,d=void 0!==s&&s,f=e.selected,p=void 0!==f&&f,m=e.draggable,b=void 0!==m&&m,h=e.onDragStart,g=e.onDragOver,y=e.onDragEnd,v=e.onDrop,w=e.isExpanded,x=void 0!==w&&w,E=e.dragging,k=void 0!==E&&E,O=e.rightAction,j=void 0===O?null:O,S=e.rightActionOnHover,C=void 0===S?null:S,A=e.onDragLeave,z=(e.preventClose,!!e.icon),N=!!e.children,I=po(Object(r.useState)(x),2),T=I[0],_=I[1],D=po(Object(r.useState)((function(){return"string"==typeof e.icon&&Object.keys(n).includes(e.icon)?n[e.icon]:e.icon?e.icon:Be.a})),2),M=D[0],B=D[1],F=Boolean(M),L=po(Object(r.useState)(!1),2),U=L[0],G=L[1];Object(r.useEffect)((function(){_(x),z||B(x?Be.a:Le.a)}),[x]);var q=a.a.Children.map(e.children,(function(e){return a.a.cloneElement(e,{chevron:o})})),W=k||p?R.purple:p?R.black:R.blue;return a.a.createElement("div",null,a.a.createElement(go,{onMouseEnter:function(){return G(!0)},onMouseLeave:function(){return G(!1)}},a.a.createElement(yo,{onClick:function(){e.onClick&&e.onClick()},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,draggable:b,onDragStart:h,onDragOver:g,onDrop:v,className:"".concat(F||q||e.onClick?"can-expand":""," ").concat(p?"selected":""),onDragLeave:A,onDragEnd:y},o?F&&N?a.a.createElement(P.Icon,{icon:T?Z.a:J.a,width:"24",height:"24",onClick:function(e){e.stopPropagation(),_(!T)}}):a.a.createElement(vo,null):null,a.a.createElement(wo,null,a.a.createElement(xo,null),a.a.createElement(P.Icon,{icon:M,color:W,width:"24",height:"24"})),a.a.createElement("span",null,t),d&&a.a.createElement("div",{style:u},l)),U&&C||j),T&&a.a.createElement(Eo,{className:"".concat(F?"":"no-line"," ").concat(o?"":"no-chevron")},q))},Oo=function(e){return a.a.createElement(ho,e)};Oo.propTypes={chevron:u.a.bool},Oo.defaultProps={chevron:!0};var jo,So=function(e){return a.a.createElement(ko,e)};So.propTypes={icon:u.a.oneOfType([u.a.instanceOf(P.IconifyIcon),u.a.oneOf(["gallery"])]),title:u.a.string,isExpanded:u.a.bool},So.defaultProps={icon:Be.a,title:void 0,isExpanded:!1};var Ro,Po,Co=y.a.div(jo||(jo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n"]))),Ao=function(){return a.a.createElement(Co,null,a.a.createElement("svg",{width:"54",height:"38",viewBox:"0 0 54 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z",fill:"#724024",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",fill:"#B7782E"}),a.a.createElement("path",{d:"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z",stroke:"black"}),a.a.createElement("path",{d:"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z",stroke:"black"}),a.a.createElement("path",{d:"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z",stroke:"black"}),a.a.createElement("path",{d:"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z",stroke:"black",strokeWidth:"2.1869"}),a.a.createElement("path",{d:"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z",fill:"white",stroke:"black",strokeWidth:"2.1869"})))},zo=function(e){return a.a.createElement(Ao,e)};function No(e){return(No="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Io(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}zo.propTypes={},zo.defaultProps={};var To=Object(y.a)((function(e){var n=e.value,t=void 0===n?0:n,r=e.max,o=void 0===r?100:r,i=e.busy,l=void 0!==i&&i,c=e.status;t=Math.min(t,o);var u=parseFloat(t)/parseFloat(o);return a.a.createElement("div",{className:e.className},a.a.createElement(_o,{ratio:u,busy:e.busy,status:c}),a.a.createElement("div",{className:"nui-progress-buttons"},l&&e.onPauseClick&&a.a.createElement("div",{className:"nui-progress-button pause",onClick:e.onPauseClick},e.paused?a.a.createElement(P.InlineIcon,{icon:ae.a}):a.a.createElement(P.InlineIcon,{icon:te.a})),l&&e.onStopClick&&a.a.createElement("div",{className:"nui-progress-button stop",onClick:e.onStopClick},a.a.createElement(P.InlineIcon,{icon:fe.a}))))}))(Ro||(Ro=Io(["\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n\n &.stop {\n background: ",";\n\n &:hover {\n background-color: ",";\n }\n }\n }\n }\n"])),R.blue,Object(v.a)(.1,R.blue),R.red,Object(v.a)(.1,R.red)),_o=Object(y.a)((function(e){var n,t,r,o=isNaN(e.ratio)?0:parseInt(Math.round(100*e.ratio)),i=No(e.status),l="undefined"!==i?"string"===i?e.status:e.status(o):"".concat(o,"%");return a.a.createElement("div",{className:e.className,style:(n={minWidth:28},t="minWidth",r=o+"%",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n)},a.a.createElement("div",null,l))}))(Po||(Po=Io(["\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ",";\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ",";\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n"])),R.progress,R.fontFamily,R.fontSizeText,(function(e){return e.busy?"animate-stripes 1.6s linear infinite":"none"})),Do=function(e){return a.a.createElement(To,e)};Do.propTypes={value:u.a.number,max:u.a.number,busy:u.a.bool,paused:u.a.bool,onPauseClick:u.a.func,onStopClick:u.a.func,status:u.a.oneOf([u.a.string,u.a.func])},Do.defaultProps={value:0,max:100,busy:!1,paused:!1,onPauseClick:void 0,onStopClick:void 0,status:void 0};var Mo,Bo=t(79),Fo=t.n(Bo);var Lo,Uo=y.a.div(Mo||(Mo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n position: relative;\n color: white;\n font-family: ",";\n font-size: ",";\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ",";\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(",", 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ",";\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ",";\n line-height: normal;\n font-size: ",";\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n"])),R.fontFamily,R.fontSizeText,R.header,R.blackRGB,R.fontFamily,R.fontFamily,R.fontSizeText),Go=function(e){var n=e.title,t=void 0===n?"NekoUI":n,r=e.subtitle,o=void 0===r?"By Jordy Meow":r,i=e.children,l=e.saving,c=void 0!==l&&l;return a.a.createElement(Uo,null,a.a.createElement("div",{className:"nui-header-logo-container"},a.a.createElement(zo,null)),a.a.createElement("div",{className:"nui-header-title-container"},a.a.createElement("h1",{className:"nui-header-title"},t),a.a.createElement("small",{className:"nui-header-subtitle"},a.a.createElement("a",{target:"_blank",href:"https://meowapps.com",style:{color:"white",textDecoration:"none"}},o))),a.a.createElement("div",{className:"nui-header-extra-content"},i),c&&a.a.createElement(gt,{icon:Fo.a,width:"36",height:"36"}))},qo=function(e){return a.a.createElement(Go,e)};function Wo(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ho(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ho(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ho(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}qo.propTypes={title:u.a.string,subtitle:u.a.string,saving:u.a.bool},qo.defaultProps={title:"NekoUI",subtitle:"By Jordy Meow",saving:!1};var $o,Yo,Ko=y.a.div(Lo||(Lo=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n margin-right: 15px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(",", 0.8);\n border-radius: 15px;\n display: flex;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ",";\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ",";\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ",";\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: ",";\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n"])),R.fontFamily,R.blueRGB,R.white,R.darkGray,R.white,R.fontFamily,R.fontSizeText),Vo=function(e){var n=e.currentPage,t=e.limit,o=void 0===t?0:t,i=e.onClick,l=e.total,c=void 0===l?0:l,u=e.onCurrentPageChanged,s=(e.full,e.infinite),d=void 0!==s&&s,f=e.controllerText,p=!!u,m=Object(r.useMemo)((function(){return d?0:Math.ceil(0===c?1:o>0?c/o:1)}),[d,o,c]),b="nako-paging-controller-icon ".concat(d||1!==n?"":"disabled"),h="nako-paging-controller-icon ".concat(d||n!==m?"":"disabled"),g=Wo(Object(r.useState)(!1),2),y=g[0],v=g[1],w=function(e){v(!1),i(e)},x=function(e){if(d)return e;var n=Number(e);return n>m?m:n<1?1:n},E=function(e){var n=e.target.value;isNaN(n)||u(x(n)),v(!1)},k=function(e){if("Enter"===event.key){e.preventDefault();var n=e.target.value;isNaN(n)||u(x(n)),v(!1)}},O=Object(r.useMemo)((function(){if(!y){return a.a.createElement("span",{className:p?"neko-paging-current-page":"",onClick:function(){p&&v(!0)}},n)}return a.a.createElement("input",{autoFocus:!0,type:"text",className:p?"neko-paging-current-page":"",defaultValue:n,onBlur:E,onKeyPress:k})}),[n,y,u]),j=function(e){y&&e.target===e.currentTarget&&v(!1)};return a.a.createElement(Ko,null,!!c&&a.a.createElement("span",{className:"neko-paging-text"},c," result",c>0?"s":""),a.a.createElement("div",{className:"neko-paging-controller",onClick:j},!d&&a.a.createElement(P.Icon,{icon:W.a,className:b,onClick:function(){return w(1)}}),a.a.createElement(P.Icon,{icon:K.a,className:b,onClick:function(){return w(n-1)}}),a.a.createElement("p",{className:"nako-paging-controller-text",onClick:j},f||a.a.createElement(a.a.Fragment,null,"Page ",O," of ",m)),a.a.createElement(P.Icon,{icon:J.a,className:h,onClick:function(){return w(n+1)}}),!d&&a.a.createElement(P.Icon,{icon:$.a,className:h,onClick:function(){return w(m)}})))},Jo=function(e){return a.a.createElement(Vo,e)};function Xo(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Jo.propTypes={currentPage:u.a.number,limit:u.a.number,total:u.a.number,onClick:u.a.func,lastPage:u.a.number,infinite:u.a.bool,controllerText:u.a.object},Jo.defaultProps={currentPage:void 0,limit:0,total:0,onClick:void 0,lastPage:void 0,infinite:!1,controllerText:void 0};var Zo=y.a.div($o||($o=Xo(["\n display: flex;\n align-items: center;\n"]))),Qo=y.a.span(Yo||(Yo=Xo(["\n color: ",";\n cursor: pointer;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ",';\n font-weight: bold;\n }\n\n &::after {\n content: "|";\n color: ',";\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ",";\n font-weight: normal;\n margin-left: 4px;\n }\n"])),(function(e){return e.variant||R.blue}),R.fontFamily,R.black,R.darkGray,R.darkGray),ei=function(e){var n=e.id,t=e.value,r=e.onChange,o=e.busy,i=void 0!==o&&o,l=e.className,c=a.a.Children.map(e.children,(function(e,o){return a.a.cloneElement(e,{busy:i,isActive:e.props.value===t,onClick:function(e){e!==t&&r(e,n)}})}));return a.a.createElement(Zo,{className:l},c)},ni=function(e){var n=e.title,t=e.value,o=void 0===t?0:t,i=e.count,l=e.onClick,c=e.busy,u=e.isActive,s=e.className,d=e.variant,f=Object(r.useMemo)((function(){if(d)return Object.keys(R).includes(d)?R[d]:d}),[d]);return a.a.createElement(Qo,{onClick:function(){return l(o)},className:"".concat(u?"is-active":""," ").concat(s),variant:f},n,null===i?null:a.a.createElement("span",null,"(",c?a.a.createElement(gt,{icon:"replay",spinning:!0,width:12,containerStyle:{display:"inline"}}):i,")"))},ti=function(e){return a.a.createElement(ei,e)};ti.propTypes={id:u.a.string,value:u.a.string,onChange:u.a.func},ti.defaultProps={id:void 0,value:void 0,onChange:void 0};var ri,ai=function(e){return a.a.createElement(ni,e)};ai.propTypes={title:u.a.string,value:u.a.string,count:u.a.number,onClick:u.a.func,isActive:u.a.bool,variant:u.a.string},ai.defaultProps={title:void 0,value:"default",count:0,onClick:void 0,isActive:!1,variant:void 0};var oi,ii,li=y.a.section(ri||(ri=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ","px;\n height: ","px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ","px;\n height: ",'px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: "";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ',";\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ","px;\n height: ",'px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ',"px;\n height: ","px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ","px;\n height: ","px;\n \n .semi-circle--mask {\n transform: rotate(","deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ","px;\n height: ","px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n"])),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.backgroundColor}),(function(e){return e.width}),(function(e){return e.width}),(function(e){return e.width+2}),(function(e){return e.width/2+2}),(function(e){return e.width}),(function(e){return e.width/2}),(function(e){return e.degrees}),(function(e){return e.width+2}),(function(e){return e.width/2})),ci=function(e){var n=e.value,t=void 0===n?1e3:n,r=(e.min,e.max),o=void 0===r?2500:r,i=e.width,l=void 0===i?200:i,c=e.background,u=void 0===c?"#007cba":c,s=e.children,d=180*(t<=o?t:o)/o;return a.a.createElement(li,{backgroundColor:u,degrees:d,width:l},a.a.createElement("div",{class:"gauge"},a.a.createElement("div",{class:"mask"},a.a.createElement("div",{class:"semi-circle"}),a.a.createElement("div",{class:"semi-circle--mask"})),a.a.createElement("div",{class:"child-container"},a.a.createElement("div",{class:"child"},a.a.createElement("div",{class:"spacing"}),s))))};function ui(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}ci.propTypes={value:u.a.number,min:u.a.number,max:u.a.number,width:u.a.number,background:u.a.string},ci.defaultProps={value:1e3,min:0,max:2500,width:200,background:"#007cba"};var si,di=y.a.p(oi||(oi=ui(["\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),fi=y.a.p(ii||(ii=ui(["\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n"]))),pi=["multiple","width","height","iconSize","iconColor","onSuccess","onFailure","style","apiUrl","apiConfig","onClick","disabled"];function mi(){return(mi=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function bi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function hi(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?bi(Object(t),!0).forEach((function(n){gi(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):bi(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function gi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function yi(e){return function(e){if(Array.isArray(e))return ki(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vi(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function wi(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){vi(o,r,a,i,l,"next",e)}function l(e){vi(o,r,a,i,l,"throw",e)}i(void 0)}))}}function xi(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Ei(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,n){if(e){if("string"==typeof e)return ki(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ki(e,n):void 0}}function ki(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Oi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var ji=y.a.div(si||(si=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n"]))),Si=function(e){var n=e.multiple,t=e.width,o=void 0===t?"100%":t,i=e.height,l=void 0===i?"100%":i,c=e.iconSize,u=void 0===c?48:c,s=e.iconColor,d=void 0===s?"#A9A9A9":s,f=e.onSuccess,p=void 0===f?function(){}:f,m=e.onFailure,b=void 0===m?function(){}:m,h=e.style,g=void 0===h?{}:h,y=e.apiUrl,v=e.apiConfig,w=e.onClick,x=e.disabled,E=Oi(e,pi),k=xi(Object(r.useState)(!1),2),O=k[0],j=k[1],S=xi(Object(r.useState)(Math.floor(1e8*Math.random())),2),R=S[0],P=(S[1],Object(r.useRef)(null)),C=Object(r.useRef)(null),A=xi(Object(r.useState)(!1),2),z=A[0],N=A[1];Object(r.useEffect)((function(){C&&(C.current.style.pointerEvents=z?"none":"auto")}),[C,z]);var I=function(){var e=wi(regeneratorRuntime.mark((function e(t){var r,a,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),r=function(){var e=wi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v.file=n,e.next=3,Yn(y,v);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(t.map(function(){var e=wi(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:a=e.sent,o=a.filter((function(e){return e.success})),i=a.filter((function(e){return!e.success})),o.length&&p(n?o:o[0]),i.length&&b(n?i:i[0]),N(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=function(e){e.preventDefault(),e.stopPropagation()},_=function(e){e.preventDefault(),e.stopPropagation(),j(!0)},D=function(e,n){n.preventDefault(),n.stopPropagation(),j(!1),console.log(e),I(e)};return a.a.createElement("div",{ref:C},a.a.createElement("input",{type:"file",id:R,accept:"image/*",ref:P,onChange:function(e){var n=yi(e.target.files);D(n,e)},style:{display:"none"},disabled:x,multiple:n}),a.a.createElement(ji,mi({onClick:function(){w?w():P.current.click()},style:hi(hi({},g),{},{width:o,height:l}),className:O?"dropping":"",onDragOver:T,onDragEnter:_,onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),j(!1)},onDrop:function(e){var n=yi(e.dataTransfer.files);D(n,e)},"data-is-disabled":x},E),a.a.createElement(gt,{width:u,height:u,icon:"upload",spinning:z,color:d,onDragOver:T,onDragEnter:_})))};Si.propTypes={width:u.a.string,height:u.a.string,onSuccess:u.a.func,onFailure:u.a.func,style:u.a.object,apiUrl:u.a.string,apiConfig:u.a.object},Si.defaultProps={width:"100%",height:"100%",onSuccess:function(){},onFailure:function(){},style:{}};var Ri,Pi=["onSuccess","onFailure","apiUrl","apiConfig","className","disabled","children","multiple"];function Ci(){return(Ci=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Ai(e){return function(e){if(Array.isArray(e))return _i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ti(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zi(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Ni(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){zi(o,r,a,i,l,"next",e)}function l(e){zi(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Ii(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Ti(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ti(e,n){if(e){if("string"==typeof e)return _i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_i(e,n):void 0}}function _i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Di(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Mi=y.a.div(Ri||(Ri=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n &.dropping {\n background: #a4d5ff;\n }\n"]))),Bi=Object(r.forwardRef)((function(e,n){var t=e.onSuccess,o=void 0===t?function(){}:t,i=e.onFailure,l=void 0===i?function(){}:i,c=e.apiUrl,u=e.apiConfig,s=e.className,d=e.disabled,f=void 0!==d&&d,p=e.children,m=e.multiple,b=Di(e,Pi),h=Ii(Object(r.useState)(!1),2),y=h[0],v=h[1],w=Ii(Object(r.useState)(!1),2),x=w[0],E=w[1],k=Object(r.useCallback)(function(){var e=Ni(regeneratorRuntime.mark((function e(n){var t,r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(!0),t=function(){var e=Ni(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.file=n,e.next=3,Yn(c,u);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.next=4,Promise.all(n.map(function(){var e=Ni(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:r=e.sent,a=r.filter((function(e){return e.success})),i=r.filter((function(e){return!e.success})),a.length&&o(m?a:a[0]),i.length&&l(m?i:i[0]),E(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[u,o,l]),O=Object(r.useCallback)((function(e,n){n.preventDefault(),n.stopPropagation(),v(!1),k(e)}),[k]),j=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation()}),[]),S=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!0)}),[f]),R=Object(r.useCallback)((function(e){e.preventDefault(),e.stopPropagation(),f||v(!1)}),[f]),P=Object(r.useCallback)((function(e){if(!f){var n=Ai(e.dataTransfer.files);O(n,e)}}),[f,O]),C=Object(r.useCallback)((function(e){var n=Ai(e.target.files);O(n,e)}),[O]);return a.a.createElement(g,{busy:x},a.a.createElement("input",{type:"file",accept:"image/*",ref:n,onChange:C,style:{display:"none"},multiple:m}),a.a.createElement(Mi,Ci({className:"".concat(s||""," ").concat(y?"dropping":""),onDragOver:j,onDragEnter:S,onDragLeave:R,onDrop:P},b),p))}));Bi.propTypes={ref:u.a.ref,onSuccess:u.a.func,onFailure:u.a.func,apiUrl:u.a.string,apiConfig:u.a.object,disabled:u.a.bool},Bi.defaultProps={onSuccess:function(){},onFailure:function(){},disabled:!1};var Fi,Li,Ui,Gi,qi,Wi=["month","year","onEventClicked","onEventMoved","eventBuilder","events"];function Hi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Yi(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Ki(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ki(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ki(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Vi(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function Ji(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Xi={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:7},Zi=y.a.div(Fi||(Fi=Ji(["\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ",";\n font-size: ",";\n"])),R.fontFamily,R.fontSizeSmall),Qi=y.a.div(Li||(Li=Ji(["\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ",";\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])),R.primary),el=y.a.div(Ui||(Ui=Ji(["\n display: flex;\n flex-direction: column;\n"]))),nl=y.a.div(Gi||(Gi=Ji(["\n display: flex;\n"]))),tl=y.a.div(qi||(qi=Ji(["\n background: purple;\n width: calc(100% / 7);\n background: ",";;\n padding: 3px;\n border-bottom: 1px solid ",";\n border-right: 1px solid ",";\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ",";\n }\n\n &:last-child {\n border-right: 1px solid ",";\n }\n\n .day {\n text-align: right;\n color: ",";\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ",";\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n"])),R.white,R.lightGray,R.lightGray,R.lightGray,R.lightGray,R.black,R.lightGray);var rl=function(e){var n=e.month,t=void 0===n?(new Date).getMonth():n,a=e.year,o=void 0===a?(new Date).getFullYear():a,i=e.onEventClicked,l=void 0===i?function(){console.log("[NekoCalendar] onEventClicked not handled.")}:i,c=e.onEventMoved,u=void 0===c?function(){console.log("[NekoCalendar] onEventMoved not handled.")}:c,s=e.eventBuilder,d=void 0===s?function(){return"YOOO"}:s,f=e.events,p=Vi(e,Wi),m=Yi(Object(r.useState)(),2),b=m[0],h=m[1],g=Yi(Object(r.useState)(),2),y=g[0],v=g[1],w=e.disableDaysBefore,x=void 0===w?null:w;x=x||new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate());var E=Object(r.useMemo)((function(){for(var e=[],n=function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xi.Monday,r=new Date(n,e);r.getDay()!==t;)r.setDate(r.getDate()-1);return r}(t,o,Xi.Monday),r=function(e,n){for(var t=new Date(e),r=new Date(n),a=0;t<=r;)a++,t.setDate(t.getDate()+1);return a-1}(n,new Date(o,t,1))<5?34:41,a=new Date(n).setDate(n.getDate()+r);n<=a;)e.push(new Date(n)),n.setDate(n.getDate()+1);return function(e,n){for(var t=[],r=0;r<e.length;)t.push(e.slice(r,r+=n));return t}(e,7)}),[t,o]);return React.createElement(Zi,p,React.createElement(Qi,null,Object.keys(Xi).map((function(e){return React.createElement("div",{key:e},e)}))),React.createElement(el,null,E.map((function(e){return React.createElement(nl,{key:e},e.map((function(e){var n,r,a=e.getMonth()==t,o=!a||e<x,i=(o?"disabled ":"")+(n=e,r=new Date,n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()?"today":"")+(e===y?"highlighted":""),c=f.filter((function(n){return a&&n.date.getDate()===e.getDate()}));return React.createElement(tl,{className:i,key:e.getTime(),onDragOver:function(n){return!o&&(t=e,r=b.date,t.getFullYear()!==r.getFullYear()||t.getMonth()!==r.getMonth()||t.getDate()!==r.getDate())&&(n.preventDefault(),v(e),!0);var t,r},onDragLeave:function(){return v(null)},onDrop:function(){u(e,b),v(null)}},React.createElement("div",{className:"day"},e.getDate()),c.map((function(e){return React.createElement("div",{className:"event",key:e.key,draggable:e.draggable,onClick:function(){return l(e)},onDragStart:function(n){return h(e)}},d(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Hi(Object(t),!0).forEach((function(n){$i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Hi(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e)))})),o&&React.createElement("div",{className:"gray-overlay"}))})))}))))};rl.propTypes={month:u.a.number,year:u.a.number,disableDaysBefore:u.a.instanceOf(Date),disableDaysAfter:u.a.instanceOf(Date),eventBuilder:u.a.func,events:u.a.array,onEventClicked:u.a.func,onEventMoved:u.a.func},rl.defaultProps={month:(new Date).getMonth(),year:(new Date).getFullYear(),disableDaysBefore:null,disableDaysAfter:null,eventBuilder:function(){return"UI for this event"},events:[{key:"A1",date:new Date},{key:"A2",date:new Date}],onEventClicked:function(e){console.log("An event was clicked",e)},onEventMoved:function(e,n){console.log("An event was moved to another day",n,e)}};var al,ol,il=t(80),ll=t.n(il),cl=["id","isOpen","children","className","style","ok","cancel","customButtons","customButtonsPosition","title","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail"];function ul(){return(ul=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function sl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function dl(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var fl=y.a.div(al||(al=dl(["\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: "," !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ",";\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n"])),R.overlay,R.white),pl=y.a.div(ol||(ol=dl(["\n width: ",";\n\n p {\n margin: 0;\n }\n .title {\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ",";\n font-style: normal;\n font-weight: normal;\n font-size: ",";\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n font-size: inherit;\n white-space: normal;\n }\n"])),(function(e){var n;return null!==(n=e.width)&&void 0!==n?n:"518px"}),R.fontFamily,R.fontFamily,R.fontSizeText),ml=function(e){var n=e.id,t=void 0===n?"neko-modal-parent":n,o=e.isOpen,i=e.children,l=e.className,c=e.style,u=e.ok,s=void 0===u?"OK":u,d=e.cancel,f=void 0===d?"Cancel":d,p=e.customButtons,m=void 0===p?null:p,b=e.customButtonsPosition,h=void 0===b?"right":b,g=e.title,y=void 0===g?"":g,v=e.content,w=void 0===v?"":v,x=e.contentWidth,E=e.onOkClick,k=e.onCancelClick,O=e.okOnEnter,j=void 0!==O&&O,S=e.thumbnail,R=sl(e,cl),P=c?"custom-modal":"",C=null!==m,A=Object(r.useCallback)((function(e){"Enter"===e.key&&E()}),[E]);Object(r.useEffect)((function(){if(j&&o)return window.addEventListener("keyup",A),function(){window.removeEventListener("keyup",A)}}),[o,A]);var z=i||a.a.createElement(pl,{width:x},y&&a.a.createElement("p",{className:"title"},y),a.a.createElement("div",{className:"content-container"},S&&a.a.createElement("div",{className:"thumbnail"},S),w&&a.a.createElement("p",{className:"content"},w)),a.a.createElement("div",{className:"button-group"},C&&"left"===h&&m,k&&a.a.createElement(Ot,{className:"danger",onClick:k},f),E&&a.a.createElement(Ot,{onClick:E},s),C&&"right"===h&&m));return a.a.createElement(a.a.Fragment,null,a.a.createElement(fl,{id:t}),a.a.createElement(ll.a,ul({ariaHideApp:!1,parentSelector:function(){return document.getElementById(t)},closeTimeoutMS:200,className:"neko-modal ".concat(l||""," ").concat(P),isOpen:o},R),z))},bl=function(e){return a.a.createElement(ml,e)};bl.propTypes={className:u.a.string,style:u.a.object,ok:u.a.string,cancel:u.a.string,title:u.a.string,content:u.a.string,contentWidth:u.a.string,onOkClick:u.a.func,onCancelClick:u.a.func,customButtons:u.a.object,okOnEnter:u.a.bool,thumbnail:u.a.element},bl.defaultProps={className:void 0,style:void 0,ok:"OK",cancel:"Cancel",title:"",content:"",contentWidth:void 0,onOkClick:void 0,onCancelClick:void 0,customButtons:null,okOnEnter:!1,thumbnail:void 0};var hl,gl=t(81),yl=t.n(gl),vl=["checked","intermediate","onSelect","onUnselect"];function wl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xl(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wl(Object(t),!0).forEach((function(n){El(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wl(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function El(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function kl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ol=y.a.table(hl||(hl=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n font-family: ",";\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(",", 0.1);\n border-right: 1px solid rgba(",", 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ",";\n color: ",";\n font-style: normal;\n font-weight: normal;\n font-size: ",";\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ",";\n color: ",";\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ",";\n \n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: rgba(",", 0.8);\n color: ",";\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ",";\n }\n &.selected {\n background-color: ",";\n color: ",";\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n"])),R.fontFamily,R.blackRGB,R.blackRGB,R.blue,R.white,R.fontSizeText,R.white,R.black,R.white,R.tableGray,R.blueRGB,R.white,R.white,R.white,R.black),jl=function(e){var n=e.checked,t=e.intermediate,r=void 0!==t&&t,o=e.onSelect,i=void 0===o?function(){}:o,l=e.onUnselect,c=void 0===l?function(){}:l;kl(e,vl);return a.a.createElement(P.Icon,{icon:r?yl.a:n?Zr.a:Jr.a,width:"24px",height:"24px",onClick:function(e){n?c(e):i(e)}})},Sl={left:"start",center:"center",right:"end"},Rl=function(e){var n=e.columns,t=e.data,r=e.busy,o=void 0!==r&&r,i=e.onSelect,l=e.onUnselect,c=e.selectedItems,u=e.sort,s=e.onSortChange,d=e.variant,f=void 0===d?"default":d,p=e.sortIconColor,m=void 0===p?void 0:p,b=e.emptyMessage,h=void 0===b?"Empty.":b,y=n.length+(i?1:0),v=function(e){var n={};return e.align&&(n={textAlign:e.align,justifyContent:Sl[e.align]}),e.width&&(n=xl(xl({},n),{},{width:e.width})),e.style&&(n=xl(xl({},n),e.style)),n},w=t.map((function(e){var t=n.map((function(n){return{value:e[n.accessor],style:v(n)}}));return{id:e.id,cells:t}})),x=w.map((function(e){return e.id})),E=x.filter((function(e){return c.includes(e)})).length===x.length,k=!E&&c.length>0,O=n.reduce((function(e,n,t){return!1===n.visible&&e.push(t),e}),[]),j=a.a.createElement("tr",null,i&&a.a.createElement("th",{className:"table-checkbox-cell"},a.a.createElement(jl,{checked:E,intermediate:k,onSelect:function(e){return i(x,e)},onUnselect:function(e){l(k?c:x,e)}})),n.filter((function(e,n){return!O.includes(n)})).map((function(e){var n=u&&u.accessor===e.accessor,t=u&&"asc"===u.by,r=n?R.white:"rgba(".concat(R.blackRGB,", 0.1)");m&&(r=n?m:R.gray);var o=v(e);return a.a.createElement("th",{style:o,key:e.accessor},a.a.createElement("div",{className:e.sortable?"sortable":"",style:xl(xl({},o),{},{width:"auto"}),onClick:e.sortable?function(r){s(e.accessor,n&&t?"desc":"asc",r)}:void 0},a.a.createElement("div",null,e.title),a.a.createElement("div",{style:{flex:"auto"}}),a.a.createElement("div",null,e.sortable&&a.a.createElement(P.Icon,{icon:n?t?Z.a:ee.a:Z.a,color:r,width:"26px",height:"26px"}))))})));return a.a.createElement(g,{busy:o,overlayStyle:{top:"36px",height:"calc(100% - 76px)"}},a.a.createElement(Ol,{className:"nekotable-".concat(f)},a.a.createElement("thead",null,j),a.a.createElement("tbody",null,!w.length&&a.a.createElement("tr",null,a.a.createElement("td",{colspan:y,style:{textAlign:"center",height:40,color:"gray"}},h)),w.map((function(e){return a.a.createElement("tr",{className:c.includes(e.id)?"selected":""},i&&a.a.createElement("td",{className:"table-checkbox-cell"},a.a.createElement(jl,{checked:c.includes(e.id),onSelect:function(n){return i([e.id],n)},onUnselect:function(n){return l([e.id],n)}})),e.cells.filter((function(e,n){return!O.includes(n)})).map((function(e){return a.a.createElement("td",{style:e.style},e.value)})))}))),"default"===f&&a.a.createElement("tfoot",null,j)))},Pl=function(e){return a.a.createElement(Rl,e)};Pl.propTypes={columns:u.a.arrayOf(u.a.any),data:u.a.arrayOf(u.a.any),busy:u.a.arrayOf(u.a.bool),onSelect:u.a.func,onUnselect:u.a.func,selectedItems:u.a.arrayOf(u.a.object),onSortChange:u.a.func,variant:u.a.string,sortIconColor:u.a.string},Pl.defaultProps={columns:void 0,data:void 0,busy:!1,onSelect:void 0,onUnselect:void 0,selectedItems:void 0,onSortChange:void 0,variant:"default",sortIconColor:void 0};var Cl,Al=["images","onNextPage","onPreviousPage","onRefresh","onClick","onRemoveClick","onZoomClick","onSearch","searchValue","busy","currentPage","limit","total","onPageChange","selected","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave"];function zl(){return(zl=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Nl(e){return function(e){if(Array.isArray(e))return _l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Il(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Tl(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tl(e,n){if(e){if("string"==typeof e)return _l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_l(e,n):void 0}}function _l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Dl(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ml,Bl,Fl,Ll,Ul=Object(y.a)(bl)(Cl||(Cl=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ",";\n border: 1px solid ",";\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ",";\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ",";\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(",", 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n"])),R.white,R.black,R.blue,R.blackRGB,R.blue,R.blackRGB,R.blackRGB),Gl=function(e){Array.prototype.forEach.call(document.getElementsByClassName(e),(function(n){n.classList.remove(e)}))},ql="grid",Wl="list",Hl=[{accessor:"thumbnail_url",title:"Thumb",style:{width:"42px"}},{accessor:"title",title:"Title"},{accessor:"size",title:"Size",style:{width:"70px"}},{accessor:"filename",title:"Filename"}],$l=function(e){var n=e.images,t=(e.onNextPage,e.onPreviousPage,e.onRefresh),o=e.onClick,i=e.onRemoveClick,l=e.onZoomClick,c=e.onSearch,u=e.searchValue,s=e.busy,d=e.currentPage,f=e.limit,p=e.total,m=e.onPageChange,b=e.selected,h=e.multiSelect,y=void 0!==h&&h,v=e.showUploader,w=void 0!==v&&v,x=e.uploader,E=e.onSelectedOrderChanged,k=e.onUploadSuccess,O=void 0===k?function(){}:k,j=e.onUploadFailure,S=void 0===j?function(){}:j,P=e.uploadApiUrl,C=e.uploadApiConfig,A=e.uploadMultiple,z=e.onClose,N=e.onCancel,I=e.onSave,T=Dl(e,Al),_=Il(Object(r.useState)(u),2),D=_[0],M=_[1],B=Il(Object(r.useState)(null),2),F=B[0],L=B[1],U=Il(Object(r.useState)(ql),2),G=U[0],q=U[1],W=Object(r.useRef)(null),H=function(e,n){if(e.preventDefault(),null!==F){var t=e.currentTarget.getBoundingClientRect(),r=t.width,a=t.left,o=t.right,i=n;F<n&&(n>0&&n<b.length?i+1===F&&e.clientX>=o-25?i-=1:(i-1===F&&e.clientX>=a-25||55!==r&&e.clientX>=o-25)&&(i+=1):55!==r&&e.clientX>=o-25&&(i+=1)),Gl("drag-over"),F!==i&&F+1!==i&&document.getElementById("".concat("nmlm-selected-").concat(i)).classList.add("drag-over")}},$=function(e){e.preventDefault(),L(null),Gl("drag-over")},Y=function(e,n){e.preventDefault(),null!==F&&F!==n&&F+1!==n&&E({currentIndex:F,afterIndex:F>n?n:n-1})},K=Object(r.useMemo)((function(){if(!y)return[];var e=a.a.createElement("div",{id:"nmlm-selected-".concat(b.length),className:"neko-media-library-modal-content-selected-media-container dummy",draggable:!1,onDragEnd:function(e){return $(e)},onDragOver:function(e){return H(e,b.length)},onDrop:function(e){return Y(e,b.length)},onDragLeave:function(){return Gl("drag-over")}}),n=b.map((function(e,n){return a.a.createElement("div",{id:"nmlm-selected-".concat(n),key:e.id,className:"neko-media-library-modal-content-selected-media-container",draggable:!0,onDragStart:function(){return L(n)},onDragEnd:$,onDragOver:function(e){return H(e,n)},onDrop:function(e){return Y(e,n)}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media"}),a.a.createElement("button",{className:"remove-button",onClick:function(){return i({id:e.id,src:e.src})}},a.a.createElement(gt,{icon:"close",color:R.white,width:19,height:19})),a.a.createElement("button",{className:"zoom-button",onClick:function(){return l({id:e.id,src:e.zoom_src})}},a.a.createElement(gt,{icon:"zoom-in",color:R.white,width:19,height:19})))}));return[].concat(Nl(n),[e])}),[b,y,i,l,H,$,Y]),V=Object(r.useMemo)((function(){return n.map((function(e){return a.a.createElement("div",{key:e.id,className:"neko-media-library-modal-content-media-container ".concat(b.some((function(n){return n.id===e.id}))?"selected":""),onClick:function(){o({id:e.id,src:e.src,zoom_src:e.zoom_src})}},a.a.createElement("img",{src:e.src,className:"neko-media-library-modal-content-media",width:"90",height:"90"}),a.a.createElement("button",{className:"zoom-button",onClick:function(n){n.stopPropagation(),l({id:e.id,src:e.zoom_src})}},a.a.createElement(gt,{icon:"zoom-in",color:R.white,width:29,height:29})))}))}),[n,b,l,o]),J=Object(r.useMemo)((function(){return n.map((function(e){return{id:e.id,thumbnail_url:a.a.createElement("img",{src:e.src,style:{width:40,height:40,objectFit:"cover"}}),title:e.title,size:e.size,filename:e.filename}}))}),[n]),X=Object(r.useCallback)((function(){M(""),t()}),[t]),Z=Object(r.useMemo)((function(){var e=function(e,t){var r=n.find((function(n){return e.includes(n.id)}));o({id:r.id,src:r.src,zoom_src:r.zoom_src})};return a.a.createElement(Pl,{data:J,columns:Hl,onSelect:e,onUnselect:e,selectedItems:b.map((function(e){return e.id}))})}),[n,J,b,o]);return a.a.createElement(Ul,zl({style:!0},T),a.a.createElement("div",{className:"neko-modal-wrapper",draggable:!0,onDragOver:function(){return Gl("drag-over")}},a.a.createElement(Bi,{ref:W,onSuccess:O,onFailure:S,apiUrl:P,apiConfig:C,disabled:!w||null!==F,multiple:A},a.a.createElement("div",{className:"neko-media-library-modal-content"},a.a.createElement("div",{className:"neko-media-library-modal-content-header"},a.a.createElement(br,{h1:!0},"Media Library"),a.a.createElement("div",{style:{display:"flex"}},a.a.createElement("div",{className:"neko-media-library-modal-search"},a.a.createElement(da,{value:D,disabled:s,onEnter:c,onChange:function(e){return M(e)},placeholder:"Search..."}),""!==D&&a.a.createElement(gt,{icon:"close",containerStyle:{width:"20px",position:"absolute",right:"5px",top:"5px",cursor:"pointer"},width:20,height:20,color:R.darkGray,onClick:X})),a.a.createElement(Ot,{onClick:function(){return c(D)},style:{marginLeft:"4px",marginRight:"4px"}},"Search"),a.a.createElement(gt,{color:G===ql?R.black:R.blue,icon:"view-grid",onClick:function(){return q(ql)},width:"20",height:"20"}),a.a.createElement(gt,{color:G===Wl?R.black:R.blue,icon:"format-list-bulleted",onClick:function(){return q(Wl)},width:"20",height:"20"}))),a.a.createElement("div",null,a.a.createElement("div",{className:"neko-media-library-modal-content-body"},a.a.createElement(g,{busy:s},a.a.createElement("div",{className:"".concat(G===ql?"neko-media-library-modal-content-body-gallery":"neko-media-library-modal-content-body-list")},G===ql&&w&&x,G===ql?V:Z)),a.a.createElement("div",{className:"neko-media-library-modal-content-body-selected-gallery"},K))),a.a.createElement("div",{className:"neko-media-library-modal-content-footer"},a.a.createElement(Jo,{limit:f,currentPage:d,total:p,onClick:m}),a.a.createElement("div",{style:{display:"flex"}},!!z&&a.a.createElement(Ot,{onClick:function(){return z()}},"Close"),!!N&&a.a.createElement(Ot,{className:"danger",onClick:function(){return N()}},"Cancel"),!!I&&a.a.createElement(Ot,{onClick:function(){return I()}},"Save")))))))},Yl=function(e){return a.a.createElement($l,e)};function Kl(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Vl(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Vl(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vl(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Jl(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}Yl.propTypes={images:u.a.array,onNextPage:u.a.func,onPreviousPage:u.a.func,onRefresh:u.a.func,onClick:u.a.func,onSearch:u.a.func,searchValue:u.a.string,busy:u.a.bool,currentPage:u.a.number,limit:u.a.number,total:u.a.number,onPageChange:u.a.func,multiSelect:u.a.bool,selected:u.a.array,onClose:u.a.func,onCancel:u.a.func,onSave:u.a.func},Yl.defaultProps={multiSelect:!1};var Xl=y.a.div(Ml||(Ml=Jl(["\n"]))),Zl=y.a.div(Bl||(Bl=Jl(["\n display: flex;\n"]))),Ql=y.a.button(Fl||(Fl=Jl(["\n font-family: ",";\n font-size: ",";\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin: 0 5px 0 0;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n"])),R.fontFamily,R.fontSizeText,R.blue,R.white),ec=y.a.div(Ll||(Ll=Jl(["\n background-color: ",";\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n"])),R.blue),nc=function(e){var n=Kl(a.a.useState(0),2),t=n[0],r=n[1],o=e.children?e.children.length?e.children.filter((function(e){return!!e})):[e.children]:[];a.a.useEffect((function(){if(e.keepTabOnReload){var n=new URL(window.location.href).searchParams.get("nekoTab");if(!n)return r(0),void(e.callOnTabChangeFirst&&c(0,i[0]));var t=decodeURIComponent(n),l=a.a.Children.toArray(o).map((function(e){return e.props.title.replaceAll(" ","")})).indexOf(t);return-1===l?(r(0),void(e.callOnTabChangeFirst&&c(0,i[0]))):(r(l),void(e.callOnTabChangeFirst&&c(l,i[l])))}r(0),e.callOnTabChangeFirst&&c(0,i[0])}),[]);var i=a.a.Children.map(o,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),hidden:n.props.hidden||!1,icon:n.props.icon||!1}})),l=a.a.Children.map(o,(function(e,n){var o=n===t,i=e.props.hidden;return o&&i&&r(0),a.a.cloneElement(e,{isActive:o&&!i})})),c=function(n,t,a){t.requirePro||(r(n),e.onChange&&e.onChange(n,t,a),e.keepTabOnReload&&function(e){if(history.pushState&&"string"==typeof e){var n=new URLSearchParams(window.location.search),t=encodeURIComponent(e.replaceAll(" ",""));n.set("nekoTab",t);var r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+n.toString();window.history.replaceState({path:r},"",r)}}(t.title))};return a.a.createElement(Xl,null,a.a.createElement(Zl,null,i.map((function(e,n){return a.a.createElement(Ql,{key:e.key,className:"neko-tab-title ".concat(n===t?"active":""," ").concat(e.requirePro?"disabled":""," ").concat(e.hidden?"hidden":""),onClick:function(t){c(n,e,t)}},e.icon&&a.a.createElement(gt,{icon:e.icon,width:15,height:15,style:{marginRight:"2px"},raw:!0}),e.title,a.a.createElement(_t,{className:"inline",style:{marginLeft:10,marginRight:-5,top:-1},show:e.requirePro}))}))),l)},tc=function(e){var n=e.children,t=e.isActive;return a.a.createElement(ec,{className:"".concat(t?"active":"")},!!t&&n)},rc=function(e){return a.a.createElement(nc,e)};rc.propTypes={isPro:u.a.bool,onChange:u.a.func},rc.defaultProps={isPro:!1,onChange:void 0};var ac,oc,ic,lc=function(e){return a.a.createElement(tc,e)};function cc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return uc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return uc(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function sc(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}lc.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,icon:u.a.string},lc.defaultProps={isActive:!1,requirePro:!1,title:void 0,icon:void 0};var dc=y.a.div(ac||(ac=sc(["\n"]))),fc=y.a.div(oc||(oc=sc(["\n align-items: center;\n background-color: ",";\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(",", 0.25);\n cursor: default;\n }\n\n p {\n color: ",";\n font-family: ",";\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ",";\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n"])),R.blue,R.yellowRGB,R.white,R.fontFamily,R.white),pc=y.a.div(ic||(ic=sc(["\n background-color: ",";\n display: none;\n\n &.active {\n display: block;\n }\n"])),R.white),mc=function(e){var n=cc(a.a.useState(e.activeTabIndex),2),t=n[0],r=n[1],o=a.a.Children.map(e.children,(function(n,t){var r=n.props.title||"Untitled Tab "+(t+1);return{key:n.props.key||"neko-tab-"+r.toLowerCase(),title:r,onClick:n.props.onClick?n.props.onClick:null,requirePro:!e.isPro&&(n.props.requirePro||!1),onDragOver:n.props.onDragOver,onDrop:n.props.onDrop,rightActions:n.props.rightActions||null}})),i=a.a.Children.map(e.children,(function(e,n){return a.a.cloneElement(e,{isActive:n===t})}));return a.a.createElement(dc,null,o.map((function(n,o){return a.a.createElement(a.a.Fragment,null,a.a.createElement(fc,{key:n.key,className:"".concat(o===t?"active":""," ").concat(n.requirePro?"disabled":""),onClick:function(a){!function(n,a,o){if(!a.requirePro){var i=n===t?null:n;r(i),e.onChange&&e.onChange(i,a,o)}}(o,n,a)},onDragOver:n.onDragOver,onDrop:n.onDrop},a.a.createElement("p",null,a.a.createElement("span",{style:{fontSize:15}},n.title),a.a.createElement(_t,{className:"inline",show:n.requirePro})),null===n.rightActions?a.a.createElement(P.Icon,{icon:o===t?Z.a:J.a,className:"neko-side-tab-icon"}):o===t?a.a.createElement("div",{style:{marginLeft:"auto"}},n.rightActions):a.a.createElement(P.Icon,{icon:J.a,className:"neko-side-tab-icon"})),i[o])})))},bc=function(e){var n=e.children,t=e.isActive;return a.a.createElement(pc,{className:"".concat(t?"active":"")},n)},hc=function(e){return a.a.createElement(mc,e)};hc.propTypes={isPro:u.a.bool,onChange:u.a.func,activeTabIndex:u.a.number},hc.defaultProps={isPro:!1,onChange:void 0,activeTabIndex:null};var gc=function(e){return a.a.createElement(bc,e)};gc.propTypes={isActive:u.a.bool,requirePro:u.a.bool,title:u.a.string,onDragOver:u.a.func,onDrop:u.a.func,rightActions:u.a.element},gc.defaultProps={isActive:!1,requirePro:!1,title:void 0,onDragOver:void 0,onDrop:void 0,rightActions:void 0};var yc,vc=["align"];function wc(){return(wc=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function xc(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var Ec=y.a.div(yc||(yc=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ",";\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(",", 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n"])),R.white,R.blackRGB),kc=function(e){var n=e.align,t=void 0===n?"left":n,r=xc(e,vc);return a.a.createElement(Ec,wc({className:"neko-align-".concat(t)},r),r.children)},Oc=function(e){return a.a.createElement(kc,e)};Oc.propTypes={align:u.a.oneOf(["left","right"])},Oc.defaultProps={align:"left"};var jc,Sc,Rc,Pc,Cc,Ac=mgcl_gallery_custom_links.prefix,zc=mgcl_gallery_custom_links.domain,Nc=mgcl_gallery_custom_links.rest_url.replace(/\/+$/,""),Ic=mgcl_gallery_custom_links.api_url.replace(/\/+$/,""),Tc=mgcl_gallery_custom_links.plugin_url.replace(/\/+$/,""),_c="1"===mgcl_gallery_custom_links.is_pro,Dc=_c&&"1"===mgcl_gallery_custom_links.is_registered,Mc=mgcl_gallery_custom_links.rest_nonce;function Bc(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var Fc=y.a.div(jc||(jc=Bc(["\n color: white;\n padding: 15px;\n margin-bottom: -15px;\n\n a {\n color: #7dedff;\n text-decoration: none;\n }\n\n p {\n font-size: 15px;\n }\n"]))),Lc=Object(y.a)(wr)(Sc||(Sc=Bc(["\n\n .nui-block-title {\n display: none;\n }\n\n .nui-block-content {\n display: flex;\n padding: 10px;\n\n h2 {\n color: #055082;\n font-size: 16px;\n margin: 5px 0 5px 0;\n\n a {\n text-decoration: none;\n }\n }\n\n p {\n margin: 0px;\n line-height: 18px;\n }\n }\n"]))),Uc=y.a.img(Rc||(Rc=Bc(["\n width: 85px;\n height: 85px;\n padding-right: 10px;\n"]))),Gc=y.a.div(Pc||(Pc=Bc(["\n\n margin: 15px;\n\n .center {\n background: white;\n border-radius: 10px;\n padding: 10px;\n max-width: 100%\n overflow: none;\n\n h2 {\n font-size: 26px;\n }\n\n table {\n width: 100%;\n\n tr td:first-child {\n width: 220px;\n font-weight: bold;\n color: #1e7cba;\n }\n\n * {\n overflow-wrap: anywhere;\n }\n }\n }\n\n hr {\n border-color: #1e7cba;\n }\n"]))),qc=y.a.ul(Cc||(Cc=Bc(["\n margin-top: 10px;\n background: rgb(0, 72, 88);\n padding: 10px;\n color: rgb(58, 212, 58);\n max-height: 600px;\n min-height: 200px;\n display: block;\n font-family: monospace;\n font-size: 12px;\n white-space: pre;\n overflow-x: auto;\n width: calc(100vw - 276px);\n\n .log-date {\n color: white;\n margin-left: 8px;\n }\n\n .log-type {\n background: #0000004d;\n padding: 2px 5px;\n border-radius: 8px;\n text-transform: uppercase;\n }\n\n .log-content {\n display: block;\n }\n\n .log-warning .log-type {\n background: #ccb028;\n color: white;\n }\n\n .log-fatal .log-type {\n background: #cc2828;\n color: white;\n }\n"])));function Wc(e){return function(e){if(Array.isArray(e))return Vc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hc(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function $c(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Hc(o,r,a,i,l,"next",e)}function l(e){Hc(o,r,a,i,l,"throw",e)}i(void 0)}))}}function Yc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||Kc(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kc(e,n){if(e){if("string"==typeof e)return Vc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vc(e,n):void 0}}function Vc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Jc=wp.element,Xc=Jc.useState,Zc=Jc.useEffect,Qc="".concat(Nc,"/meow-common/v1"),eu=function(e){var n=e.request,t=e.title,r=e.max,a=Yc(Xc(!1),2),o=a[0],i=a[1],l=Yc(Xc([]),2),c=l[0],u=l[1],s=c.length>0?c.reduce((function(e,n){return e+n})):0,d=c.length>0?Math.ceil(s/c.length):0,f=!c.length&&o;Zc((function(){o&&setTimeout($c(regeneratorRuntime.mark((function e(){var t,r,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(new Date).getTime(),e.next=3,Yn("".concat(Qc,"/").concat(n),{nonce:Mc});case 3:r=(new Date).getTime(),a=r-t,u((function(e){return[].concat(Wc(e),[a])}));case 6:case"end":return e.stop()}}),e)}))),1e3)}),[c]);return React.createElement(Fc,{style:{width:200,textAlign:"center"}},React.createElement(br,{h2:!0,style:{color:"white"}},t),React.createElement(ci,{size:200,value:f?r:d,max:r},React.createElement("span",{style:{fontSize:20}},f?"START":d+" ms"),React.createElement("span",{style:{fontSize:12}},f?"YOUR ENGINE":c.length+" requests")),React.createElement(Ot,{style:{width:"100%",marginTop:10},color:o?"#cc3627":"#ccb027",onClick:function(){o||u([]),i(!o)}},o?"Stop":"Start"))};function nu(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function tu(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nu(Object(t),!0).forEach((function(n){ru(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nu(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ru(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function au(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function ou(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){au(o,r,a,i,l,"next",e)}function l(e){au(o,r,a,i,l,"throw",e)}i(void 0)}))}}function iu(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return lu(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lu(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lu(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var cu=wp.element,uu=cu.useState,su=cu.useEffect;Ic&&Nc&&Tc||console.error("[@common/dashboard] apiUrl, restUrl and pluginUrl are mandatory.");var du="".concat(Nc,"/meow-common/v1"),fu=React.createElement(Fc,null,React.createElement(br,{p:!0},"Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking ",React.createElement("a",{target:"_blank",href:"https://offbeatjapan.org"},"a lot of photos"),"). Meow Apps proposes a suite of plugins focusing on photography, imaging, optimization and SEO. The ultimate goal is to make your website better, faster, while making it easy. Meow Apps also teams up with the best players in the community. For more information, please check ",React.createElement("a",{href:"http://meowapps.com",target:"_blank"},"Meow Apps"),".")),pu=React.createElement(Fc,null,React.createElement(br,{p:!0},"The ",React.createElement("b",null,"Empty Request Time")," helps you analyzing the raw performance of your install by giving you the average time it takes to run an empty request to your server. You can try to disable some plugins (or change their options) then Start this again to see how it influences the results. An excellent install would have an Empty Request Time of less than 500 ms. Keep it absolutely under 2,000 ms! For more information, ",React.createElement("a",{href:"https://meowapps.com/clean-optimize-wordpress/#Optimize_your_Empty_Request_Time",target:"_blank"},"click here"),"."),React.createElement(br,{p:!0},React.createElement("b",null,"File Operation Time")," creates a temporary size of 10MB every time. ",React.createElement("b",null,"SQL Request Time")," counts the number of posts. Those two should be very fast, and almost the same as the ",React.createElement("b",null,"Empty Request Time"),".")),mu=React.createElement(Fc,null,React.createElement(br,{p:!0},"Too many WordPress installs are blown-up with useless and/or heavy plugins, and not aware of best practices. That's not the fault of the users; WordPress pretends to be simple but it is in fact very complex, and the immensity and diversity of the community around it makes it a real jungle where everything is possible."),React.createElement(br,{p:!0},"A rule of thumb is to keep your WordPress install as simple as possible, with the least number of plugins installed (run away from the heavy ones) and an excellent hosting service. Avoid VPS or self-hosted solutions; you must be a professional to actually set them up so that they are actually performant."),React.createElement(br,{p:!0},"On the Meow Apps website, you will find articles which are always updated with the latest recommendations.",React.createElement("ul",null,React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/how-to-debug-wordpress-errors/",target:"_blank"},"How To Debug WordPress")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-improve-seo-wordpress/",target:"_blank"},"SEO Checklist & Optimization")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-faster-wordpress-optimize/",target:"_blank"},"Optimize your WordPress Speed")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-optimize-images-wordpress/",target:"_blank"},"Optimize Images (CDN, and so on)")),React.createElement("li",null,"☘️ ",React.createElement("a",{href:"https://meowapps.com/tutorial-hosting-service-wordpress/",target:"_blank"},"Best Hosting Services for WordPress"))))),bu=["".concat(du,"/all_settings/"),{headers:{"X-WP-Nonce":Mc}}],hu=function(){var e=iu(uu(!1),2),n=e[0],t=e[1],r=Object(l.a)(bu,$n),a=r.data,o=r.mutate,i=r.error,c=null==a?void 0:a.data,u=null==c?void 0:c.meowapps_hide_meowapps,s=null==c?void 0:c.force_sslverify,d=iu(uu(!1),2),f=d[0],p=d[1],m=iu(uu([]),2),b=m[0],h=m[1],g=iu(uu(""),2),y=g[0],v=g[1];su((function(){i&&!n&&(t(!0),console.error("Error from UseSWR",i.message))}),[i]),su((function(){var e=document.getElementById("meow-common-phpinfo");v(e.innerHTML)}),[]);var w=function(){var e=ou(regeneratorRuntime.mark((function e(n,t){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=tu({},a.data))[t]=n,o(tu(tu({},a),{},{data:r}),!1),p(!0),e.next=6,Yn("".concat(du,"/update_option"),{json:{name:t,value:n},nonce:Mc});case 6:i=e.sent,p(!1),i.success||alert(i.message),o();case 10:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),x=function(){var e=ou(regeneratorRuntime.mark((function e(){var n,t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.next=3,Yn("".concat(du,"/error_logs"),{nonce:Mc});case 3:n=e.sent,t=n&&n.data?n.data:[],h(t.reverse()),p(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=React.createElement(Ar,{title:"Main Menu"},React.createElement(ra,{max:"1"},React.createElement(na,{id:"meowapps_hide_meowapps",label:"Hide (Not Recommended)",description:React.createElement(br,{p:!0},"This will hide the Meow Apps Menu (on the left side) and everything it contains. You can re-enable it through though an option that will be added in Settings → General."),value:"1",disabled:f,checked:u,onChange:w}))),k=React.createElement(Ar,{title:"SSL Verify"},React.createElement(ra,{max:"1"},React.createElement(na,{id:"force_sslverify",label:"Force (Not Recommended)",description:React.createElement(br,{p:!0},"This will enforce the usage of SSL when checking the license or updating the plugin."),value:"1",disabled:f,checked:s,onChange:w})));return React.createElement(Qt,{showRestError:n},React.createElement(qo,{title:"The Dashboard"}),React.createElement($r,null,React.createElement(Yr,{full:!0},React.createElement(rc,null,React.createElement(lc,{title:"Meow Apps"},fu,React.createElement($r,null,React.createElement(Yr,{minimal:!0},React.createElement(Lc,{title:"Media Cleaner",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/media-cleaner.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-cleaner/"},"Media Cleaner")),React.createElement("p",null,"The Cleaner analyzes your WordPress entirely to find out which files are not used. You can trash them, before deleting them permanently. Your WordPress will breath again :)"))),React.createElement(Lc,{title:"Database Cleaner",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/database-cleaner.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/database-cleaner/"},"Database Cleaner")),React.createElement("p",null,"Clean your WordPress database. This plugin is simple, handles risk levels, and aims to work even on oversized databases on which other plugins fail to operate."))),React.createElement(Lc,{title:"Media File Renamer",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/media-file-renamer.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/media-file-renamer/"},"Media File Renamer")),React.createElement("p",null,"The Renamer will help you in getting nicer filenames for an improved SEO and a tidier filesystem. It's mostly automatic and very fun to use."))),React.createElement(Lc,{title:"Social Engine",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/social-engine.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/social-engine/"},"Social Engine")),React.createElement("p",null,"Organize, schedule and automate the publishing of your content and photos on social accounts. Similar to Buffer, TweetDeck, etc, but without all the limitations, and in your WordPress."))),React.createElement(Lc,{title:"Meow Analytics",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/meow-analytics.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-analytics/"},"Meow Analytics")),React.createElement("p",null,"Are you tired of those heavy plugins, accessing your Google Analytics deliberately? Switch to Meow Analytics!")))),React.createElement(Yr,{minimal:!0},React.createElement(Lc,{title:"Photo Engine",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/wplr-sync.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wplr-sync/"},"Photo Engine")),React.createElement("p",null,"Are you using Lightroom? So you know Photo Engine already. Wait, you don't? You must try it! This plugin will be your favorite very soon."))),React.createElement(Lc,{title:"Meow Gallery",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/meow-gallery.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")),React.createElement("p",null,"This is the fastest gallery system... and it is pretty as well! It is 100% compatible with the native WordPress galleries and therefore, works right away."))),React.createElement(Lc,{title:"Meow Lightbox",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/meow-lightbox.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/meow-lightbox/"},"Meow Lightbox")),React.createElement("p",null,"A very sleek and performant Lightbox which will also display your EXIF data (camera, lens, aperture...). Photographers love it."))),React.createElement(Lc,{title:"Perfect Images (Retina)",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/wp-retina-2x.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/wp-retina-2x/"},"Perfect Images + Retina")),React.createElement("p",null,"It handles Retina, help you managing the Image Sizes registered in your WP, and much more."))),React.createElement(Lc,{title:"Contact Form Block",className:"primary"},React.createElement(Uc,{src:"".concat(Tc,"/common/img/contact-form-block.png")}),React.createElement("div",null,React.createElement("h2",null,React.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/contact-form-block/"},"Contact Form Block")),React.createElement("p",null,"A simple, pretty and superlight contact form. If you simply want your visitors to get in touch with you, this contact form will be perfect for you and your WordPress.")))))),React.createElement(lc,{title:"Performance"},pu,React.createElement("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:25}},React.createElement(eu,{title:"Empty Request Time",request:"empty_request",max:2500}),React.createElement(eu,{title:"File Operation Time",request:"file_operation",max:2600}),React.createElement(eu,{title:"SQL Request Time",request:"sql_request",max:2800}))),React.createElement(lc,{title:"Recommendations"},mu),React.createElement(lc,{title:"PHP Info"},React.createElement(Gc,{dangerouslySetInnerHTML:{__html:y}})),React.createElement(lc,{title:"PHP Error Logs"},React.createElement(Fc,null,React.createElement(Ot,{style:{marginBottom:10},color:"#ccb027",onClick:x},"Load PHP Error Logs"),React.createElement(qc,null,b.map((function(e){return React.createElement("li",{class:"log-".concat(e.type)},React.createElement("span",{class:"log-type"},e.type),React.createElement("span",{class:"log-date"},e.date),React.createElement("span",{class:"log-content"},e.content))}))))),React.createElement(lc,{title:"Settings"},React.createElement(wr,{title:"Settings",className:"primary"},E,k))))))};function gu(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function yu(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){gu(o,r,a,i,l,"next",e)}function l(e){gu(o,r,a,i,l,"throw",e)}i(void 0)}))}}function vu(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return wu(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return wu(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wu(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var xu=wp.element,Eu=xu.useState,ku=xu.useEffect,Ou="".concat(Nc,"/meow-licenser/").concat(Ac,"/v1"),ju=function(){var e=vu(Eu(!1),2),n=e[0],t=e[1],r=vu(Eu(!1),2),a=r[0],o=r[1],i=vu(Eu(null),2),l=i[0],c=i[1],u=vu(Eu(null),2),s=u[0],d=u[1],f=vu(Eu(""),2),p=f[0],m=f[1],b=Dc&&(!s||"valid"!==s.license),h=function(){var e=yu(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_c){e.next=2;break}return e.abrupt("return");case 2:return t(!0),e.next=5,Yn("".concat(Ou,"/get_license"),{nonce:Mc});case 5:n=e.sent,d(n.data),n.data.key&&m(n.data.key),t(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=yu(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(!0),e.next=3,Yn("".concat(Ou,"/set_license"),{nonce:Mc,json:{serialKey:null}});case 3:e.sent.success&&(m(""),d(null),c("licenseRemoved")),t(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=yu(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(!0),e.next=3,Yn("".concat(Ou,"/set_license"),{nonce:Mc,json:{serialKey:p,override:!0}});case 3:(n=e.sent).success&&(d(n.data),n.data&&!n.data.issue&&c("licenseAdded")),t(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=yu(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("MEOW_OVERRIDE"!==p){e.next=5;break}return o(!0),d(null),m(""),e.abrupt("return");case 5:return t(!0),e.next=8,Yn("".concat(Ou,"/set_license"),{nonce:Mc,json:{serialKey:p}});case 8:(n=e.sent).success&&(d(n.data),n.data&&!n.data.issue&&c("licenseAdded")),t(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();ku((function(){h()}),[]);var w=b?"Forced License":Dc?"Enabled":"Disabled",x=b||s&&"valid"===s.license,E="Your license is active. Thanks a lot for your support :)";b&&s&&s.check_url&&(E=React.createElement(React.Fragment,null,React.createElement("span",null,E),React.createElement("br",null),React.createElement("small",null,"This license was enabled manually. To check your license status, please click ",React.createElement("a",{target:"_blank",href:s.check_url+"&cache="+642e3*Math.random()},"here"),"."))),x||(s?"no_activations_left"===s.issue?E=React.createElement("span",null,"There are no activations left for this license. You can visit your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"Meow Apps Store"),", unregister a site, and click on ",React.createElement("i",null,"Retry to validate"),"."):"expired"===s.issue?E=React.createElement("span",null,"Your license has expired. You can get another license or renew the current one by visiting your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"Meow Apps Store"),"."):"missing"===s.issue?E="This license does not exist.":"disabled"===s.issue?E="This license has been disabled.":"item_name_mismatch"===s.issue?E="This license seems to be for a different plugin... isn't it? :)":"forced"===s.issue?E="ABC":(E=React.createElement("span",null,"There is an unknown error related to the system or this serial key. Really sorry about this! Make sure your security plugins and systems are off temporarily. If you are still experiencing an issue, please ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/contact/"},"contact us"),"."),console.error({license:s})):E="Unknown error :(");var k=React.createElement(wr,{title:"Pro Version (Not Installed)",className:"primary"},"You will find more information about the Pro Version ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com"},"here"),". If you actually bought the Pro Version already, please remove the current plugin and download the Pro Version from your account at the ",React.createElement("a",{target:"_blank",rel:"noreferrer",href:"https://meowapps.com/"},"Meow Apps Store"),"."),O=React.createElement(wr,{title:"Pro Version (".concat(w,")"),busy:n,className:"primary"},React.createElement(Ar,{title:"Serial Key",style:{fontWeight:"bold"}},React.createElement(da,{id:"mfrh_pro_serial",name:"mfrh_pro_serial",disabled:n,value:p,onChange:function(e){return m(e)},placeholder:""})),s&&!x&&React.createElement(di,null,E),s&&x&&React.createElement(fi,null,E),!s&&React.createElement(br,{p:!0},"Insert your serial key above. If you don't have one yet, you can get one ",React.createElement("a",{href:"https://meowapps.com"},"here"),". If there was an error during the validation, try the ",React.createElement("i",null,"Retry")," to ",React.createElement("i",null,"validate")," button."),React.createElement(Ar,{contentAlign:"right"},s&&!x&&React.createElement(Ot,{className:"secondary",disabled:n||!p,onClick:v},"Retry to validate"),s&&s.key===p&&React.createElement(Ot,{className:"secondary",disabled:n||!p,onClick:g},"Remove License"),React.createElement(Ot,{disabled:n||!p||s&&s.key===p,onClick:v},"Validate License"),a&&!x&&React.createElement(Ot,{disabled:n||!p||s&&s.key===p,onClick:y,className:"danger"},"Force License")),React.createElement(bl,{isOpen:"licenseAdded"===l,title:"Thank you :)",content:"The Pro features have been enabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}),React.createElement(bl,{isOpen:"licenseRemoved"===l,title:"Goodbye :(",content:"The Pro features have been disabled. This page should be now reloaded.",ok:"Reload",onOkClick:function(){return location.reload()}}));return _c?O:k},Su=wp.element.render;function Ru(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Pu(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ru(Object(t),!0).forEach((function(n){Cu(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ru(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Cu(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Au(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function zu(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Nu(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Nu(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nu(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}document.meowDashboardLoaded||(document.meowDashboardLoaded=!0,document.addEventListener("DOMContentLoaded",(function(e){var n=document.getElementById("meow-common-dashboard");n&&Su(React.createElement(hu,null),n)})));var Iu=wp.element,Tu=Iu.useState,_u=Iu.useMemo,Du=function(){var e=_u((function(){return["".concat(Ic,"/all_settings/"),{headers:{"X-WP-Nonce":Mc}}]}),[Ic,Mc]),n=Object(l.a)(e,$n),t=n.data,a=n.mutate,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object(r.useState)(n),o=Kn(a,2),i=o[0],l=o[1],c=Object(r.useState)(null),u=Kn(c,2),s=u[0],d=u[1],f=Object(r.useState)(t),p=Kn(f,2),m=p[0],b=p[1],h=Object(r.useState)(0),g=Kn(h,2),y=g[0],v=g[1];return Object(r.useEffect)((function(){void 0!==e&&(e.success?(d(null),l(e.data),v(e.total?e.total:0)):d(e.error)),b(void 0===e)}),[e]),{busy:m,data:i,total:y,error:s}}(t,{},!0),i=o.busy,c=o.data,u=o.error,s=zu(Tu(!1),2),d=s[0],f=s[1],p=i||d,m=null==c?void 0:c.mgcl_obmode,b=null==c?void 0:c.mgcl_parsing_engine,h=null==c?void 0:c.mgcl_log,g=null==c?void 0:c.mgcl_button_enabled,y=null==c?void 0:c.mgcl_button_label,v=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=Pu({},t.data))[r]=n,a(Pu(Pu({},t),{},{data:o}),!1),f(!0),e.prev=4,e.next=7,Yn("".concat(Ic,"/update_option"),{json:{name:r,value:n},nonce:Mc});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),alert(e.t0.message);case 12:return e.prev=12,f(!1),a(),e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[4,9,12,16]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Au(o,r,a,i,l,"next",e)}function l(e){Au(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),w=React.createElement(Ar,{title:"OB Mode"},React.createElement(ra,{max:"1"},React.createElement(na,{id:"mgcl_obmode",label:"Enabled",value:"1",checked:m,onChange:v,description:"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended)."}))),x=React.createElement(Ar,{title:"Parsing Engine",description:"Hello"},React.createElement($a,{id:"mgcl_parsing_engine",onChange:v},[{id:"none",value:"None",label:"None (Not Supported Yet)"},{id:"htmldomparser",value:"HtmlDomParser",label:"HtmlDomParser"},{id:"didom",value:"DiDom",label:"DiDom"}].map((function(e){return React.createElement(Ka,{id:"mgcl_parsing_engine_".concat(e.id),value:e.value,label:e.label,checked:b===e.value})})))),E=React.createElement(Ar,{title:"Logs"},React.createElement(ra,{max:"1"},React.createElement(na,{id:"mgcl_log",label:"Logs",value:"1",checked:h,onChange:v,description:"Simple logging, written directly in the PHP Error Logs."}))),k=React.createElement(Ar,{title:"Use Buttons"},React.createElement(ra,{max:"1"},React.createElement(na,{id:"mgcl_button_enabled",label:"Enabled",value:"1",description:"A call-to-action button will be used of a clickable image.",checked:g,onChange:v}))),O=React.createElement(Ar,{title:"Label"},React.createElement(da,{id:"mgcl_button_label",name:"mgcl_button_label",value:y,description:"A call-to-action button will be used of a clickable image.",onBlur:v}));return React.createElement(Qt,{nekoErrors:[u]},React.createElement(qo,{title:"Gallery Custom Links | Settings",subtitle:"By Jordy Meow"}),React.createElement($r,null,React.createElement(Yr,{full:!0},React.createElement(Sr,null,React.createElement(br,{p:!0},"This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the ",React.createElement("a",{target:"_blank",href:"https://meowapps.com/plugin/gallery-custom-links/"},"official page"),". ",React.createElement("b",null,"If you are interested in the Pro Version, it's ",React.createElement("a",{target:"_blank",href:"https://meowapps.com/products/gallery-custom-links-pro/"},"here!"))," 💕")),React.createElement(rc,null,React.createElement(lc,{title:"Settings"},React.createElement($r,null,React.createElement(Yr,{minimal:!0},React.createElement(wr,{busy:p,title:"Settings",className:"primary"},x,w,E)),React.createElement(Yr,{minimal:!0},React.createElement(wr,{busy:p,title:"CTA Buttons",className:"primary"},React.createElement(br,{p:!0},React.createElement("b",null,"Currently works with the ",React.createElement("a",{href:"https://wordpress.org/plugins/meow-gallery/"},"Meow Gallery")," and Gutenberg Galleries.")," In a future Pro version, support for additional galleries might be added (please contact ",React.createElement("a",{href:"https://meowapps.com/contact/"},"Meow Apps")," for this)."),k,g?O:null)))),React.createElement(lc,{title:"License"},React.createElement(ju,{domain:zc,prefix:Ac,isPro:_c,isRegistered:Dc}))))))},Mu=wp.i18n.__,Bu={};Bu.PENDING=Mu("Pending","gallery-custom-links"),Bu.RENAME=Mu("Rename","gallery-custom-links"),Bu.TITLE=Mu("Title","gallery-custom-links"),Bu.SAME_PAGE=Mu("Same page","gallery-custom-links"),Bu.NEW_PAGE=Mu("New page","gallery-custom-links"),Bu.LINK_URL=Mu("Link URL","gallery-custom-links"),Bu.LINK_TARGET=Mu("Link Target","gallery-custom-links"),Bu.LINK_REL=Mu("Link Rel","gallery-custom-links"),Bu.ARIAL_LABEL=Mu("Arial Label","gallery-custom-links");var Fu,Lu=Bu;function Uu(e,n,t,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(r,a)}function Gu(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,a,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw a}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return qu(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qu(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qu(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var Wu=wp.element,Hu=Wu.useState,$u=Wu.useCallback,Yu=[{label:Lu.SAME_PAGE,value:"_self"},{label:Lu.NEW_PAGE,value:"_blank"}],Ku=y.a.div(Fu||(Fu=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}(["\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n"]))),Vu=function(e){var n=Gu(Hu(!1),2),t=n[0],r=n[1],a=t,o=e.postId,i=Gu(Hu(e.url),2),l=i[0],c=i[1],u=Gu(Hu(e.target?e.target:"_self"),2),s=u[0],d=u[1],f=Gu(Hu(e.rel),2),p=f[0],m=f[1],b=Gu(Hu(e.aria),2),h=b[0],g=b[1],y=Gu(Hu(!1),2),v=y[0],w=y[1],x=function(){var e,n=(e=regeneratorRuntime.mark((function e(n,t,a,o,i){var l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),l=!0,e.prev=2,e.next=5,Yn("".concat(Ic,"/update_meta"),{json:{post_id:n,_gallery_link_url:t,_gallery_link_target:a,_gallery_link_rel:o,_gallery_link_aria:i},nonce:Mc});case 5:(c=e.sent).success||(l=!1,alert(c.message)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),l=!1,alert(e.t0.message);case 13:return e.prev=13,l&&E(),r(!1),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[2,9,13,17]])})),function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){Uu(o,r,a,i,l,"next",e)}function l(e){Uu(o,r,a,i,l,"throw",e)}i(void 0)}))});return function(e,t,r,a,o){return n.apply(this,arguments)}}(),E=function(){return w(!1)},k=$u((function(){x(o,l,s,p,h)}),[o,l,s,p,h,x,E]),O=$u((function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),k())}),[k]);return React.createElement(React.Fragment,null,React.createElement("span",{onClick:function(){return w(!0)},style:{cursor:"pointer"}},React.createElement(gt,{icon:"link",disabled:!l})),React.createElement(bl,{isOpen:v,onRequestClose:E,title:"Edit the custom link",content:React.createElement("div",null,React.createElement(Ku,null,React.createElement(br,{p:!0},Lu.LINK_URL),React.createElement(da,{disabled:a,onInput:function(e){return c(e.target.value)},onKeyDown:O,value:l,autoFocus:!0})),React.createElement(Ku,null,React.createElement(br,{p:!0},Lu.LINK_TARGET),React.createElement($a,{scrolldown:!0,value:s,onChange:function(e){return d(e)},disabled:a},Yu.map((function(e){return React.createElement(Ka,{value:e.value,label:e.label})})))),React.createElement(Ku,null,React.createElement(br,{p:!0},Lu.LINK_REL),React.createElement(da,{disabled:a,onInput:function(e){return m(e.target.value)},value:p})),React.createElement(Ku,null,React.createElement(br,{p:!0},Lu.ARIAL_LABEL),React.createElement(da,{disabled:a,onInput:function(e){return g(e.target.value)},value:h}))),onOkClick:k,onCancelClick:E}))},Ju=null;document.addEventListener("DOMContentLoaded",(function(e){var n;(Ju=document.getElementsByClassName("upload-php")[0],(n=document.getElementById("mgcl-admin-settings"))&&(i.a.render(a.a.createElement(Du,null),n),1)||!Ju)||Array.from(document.getElementsByClassName("mgcl-edit-link-field")).forEach((function(e){var n=e.getAttribute("data-post-id"),t=e.getAttribute("data-url"),r=e.getAttribute("data-target"),o=e.getAttribute("data-rel"),l=e.getAttribute("data-aria");i.a.render(a.a.createElement(Vu,{postId:n,url:t,target:r,rel:o,aria:l}),e)}))}))}});
|
2 |
//# sourceMappingURL=index.js.map
|
app/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"React\"","webpack:///external \"ReactDOM\"","webpack:///../neko-ui/src/common/NekoBusyOverlay.js","webpack:///../neko-ui/src/common/NekoTheme.js","webpack:///../neko-ui/src/misc/Spinner.js","webpack:///../neko-ui/src/common/PresetIcons.js","webpack:///../neko-ui/src/hooks.js","webpack:///../neko-ui/src/misc/Tooltip.js","webpack:///../neko-ui/src/misc/Icon.js","webpack:///../neko-ui/src/button/Button.js","webpack:///../neko-ui/src/label/ProOnly.js","webpack:///../neko-ui/src/button/MenuButton.js","webpack:///../neko-ui/src/container/Page.js","webpack:///../neko-ui/src/misc/Typography.js","webpack:///../neko-ui/src/container/Block.js","webpack:///../neko-ui/src/container/Container.js","webpack:///../neko-ui/src/container/Settings.js","webpack:///../neko-ui/src/container/Window.js","webpack:///../neko-ui/src/container/Wrapper.js","webpack:///../neko-ui/src/form/Checkbox.js","webpack:///../neko-ui/src/form/CheckboxGroup.js","webpack:///../neko-ui/src/form/Input.js","webpack:///../neko-ui/src/form/TextArea.js","webpack:///../neko-ui/src/form/Select.js","webpack:///../neko-ui/src/form/Form.js","webpack:///../neko-ui/src/form/Switch.js","webpack:///../neko-ui/src/misc/Finder.js","webpack:///../neko-ui/src/misc/Logo.js","webpack:///../neko-ui/src/misc/Progress.js","webpack:///../neko-ui/src/misc/Header.js","webpack:///../neko-ui/src/misc/Paging.js","webpack:///../neko-ui/src/misc/Links.js","webpack:///../neko-ui/src/misc/Gauge.js","webpack:///../neko-ui/src/misc/Message.js","webpack:///../neko-ui/src/misc/Upload.js","webpack:///../neko-ui/src/misc/UploadDropArea.js","webpack:///../neko-ui/src/misc/Calendar.js","webpack:///../neko-ui/src/modal/Modal.js","webpack:///../neko-ui/src/table/Table.js","webpack:///../neko-ui/src/modal/MediaLibraryModal.js","webpack:///../neko-ui/src/tabs/Tabs.js","webpack:///../neko-ui/src/tabs/SideTabs.js","webpack:///../neko-ui/src/toolbar/Toolbar.js","webpack:///../neko-ui/src/errors.js","webpack:///../neko-ui/src/helpers.js","webpack:///./app/js/settings.js","webpack:///./app/js/components/Settings.js","webpack:///./app/js/i18n.js","webpack:///./app/js/components/EditLinkField.js","webpack:///./app/js/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","React","ReactDOM","NekoBusyOverlay","props","spinner","busy","overlayStyle","useState","showLoader","setShowLoader","useEffect","timeout","setTimeout","clearTimeout","loader","Fragment","className","style","Boolean","jsx","propsForElement","undefined","position","children","propTypes","PropTypes","bool","isRequired","oneOfType","arrayOf","node","NekoColors","black","blackRGB","blue","blueRGB","deepBlue","finderBorder","lightBlue","lightGray","lightGray2","lightPurple","gray","green","darkGray","disabledForm","orange","overlay","red","redHighlight","header","proGray","progress","purple","tableGray","yellow","yellowRGB","white","whiteRGB","NekoColorTheme","danger","primary","secondary","success","NekoTheme","fontFamily","fontSizeH1","fontSizeH2","fontSizeText","fontSizeSmall","fontSizeSmallButton","lightShadow","StyledCircleSpinner","Styled","div","size","color","CircleSpinner","StyledNekoSpinner","type","rest","NekoSpinner","string","defaultProps","presetIcons","lockCheck","lockOpenVariant","fileUndo","chevronDoubleLeft","chevronDoubleRight","chevronLeft","chevronRight","chevronDown","chevronUp","pauseIcon","playIcon","replayIcon","checkIcon","stopIcon","deleteIcon","undoIcon","alertCircle","databaseIcon","toolsIcon","cogIcon","closeIcon","catIcon","arrowUpBoldCircleOutline","trashCan","leadPencil","viewDashboard","databaseSearch","folderIcon","folderOpen","imageMultipleOutline","plusIcon","folderPlus","imagePlus","viewGrid","formatListBulleted","twitterIcon","instagramIcon","facebookIcon","starIcon","timerOutline","linkVariant","linkedin","pinterest","zoomIn","infoOutline","arrowUp","arrowDown","sort","eye","rocketLaunch","calendarMonth","useComponentSize","ref","useRef","setSize","current","observer","ResizeObserver","entries","element","contentRect","width","left","right","height","top","bottom","observe","unobserve","useOutsideClick","onOutsideClick","componentRef","handleOutsideClick","e","contains","target","document","addEventListener","removeEventListener","PQueue","concurrency","autoStart","TooltipContainer","Tooltip","Theme","prop","visible","StyledNekoTooltip","text","show","setShow","tooltipRef","tooltipWidth","tooltipHeight","childRef","childWidth","childHeight","transformStyle","useMemo","transY","transX","transform","onMouseEnter","onMouseLeave","NekoTooltip","oneOf","StyledIconContainer","StyledIcon","Icon","hoverColor","lighten","StyledNekoIcon","icon","spinning","title","tooltip","containerStyle","disabled","raw","isBusy","getIcon","PresetIcons","iconClassName","onClick","NekoIcon","instanceOf","IconifyIcon","StyledButton","small","rounded","busyText","hideBusyIcon","hasIcon","iconWidth","base","classNames","marginLeft","marginRight","margin","additionalColor","NekoButton","func","Tag","a","Colors","StyledProOnly","href","ProOnly","MenuButtonWrapper","MenuButton","button","MenuItemContainer","StyledMenuButton","isPro","hideChevron","titleStyle","isOpen","setIsOpen","wrapperRef","buttonRef","buttonWidth","Children","map","child","cloneElement","MenuItem","StyledNekoMenuItem","requirePro","separator","needsProUser","NekoMenuButton","NekoMenuItem","Page","StyledNekoPage","nekoErrors","fatalError","setFatalError","showBody","setShowBody","error","url","code","message","body","dangerouslySetInnerHTML","__html","open","NekoPage","NekoH1","h1","NekoH2","h2","NekoP","NekoSpan","span","NekoLabel","label","StyledNekoTypo","NekoTypo","any","Block","StyledNekoBlock","action","NekoBlock","Container","Bar","StyledNekoContainer","headerAlign","footer","footerAlign","NekoContainer","StyledNekoSettings","contentAlign","NekoSettings","WindowBase","TitleBar","StyledNekoWindow","NekoWindow","Wrapper","Column","StyledNekoWrapper","StyledNekoColumn","full","minimal","NekoWrapper","NekoColumn","StyledNekoCheckbox","id","checked","onChange","description","showUpProOnly","isDisabled","disabledClass","join","stopPropagation","defaultChecked","htmlFor","console","log","checkboxBlankOutline","checkboxMarked","NekoCheckbox","StyledNekoCheckboxGroup","max","NekoCheckboxGroup","mas","number","StyledNekoInput","placeholder","onEnter","readOnly","step","min","maxLength","defaultMaxLength","natural","inputStyle","onCustomChange","onCustomBlur","onBlur","onReset","newValue","setNewValue","isControlled","onKeyPress","event","preventDefault","autoComplete","spellCheck","NekoInput","StyledNekoTextArea","avoidOnEnterWithShift","textAreaStyle","countable","count","setCount","pressShift","setPressShift","keydownFunction","useCallback","shiftKey","keyupFunction","substr","rows","NekoTextArea","Select","SelectedOption","Description","Options","OptionsContainer","StyledNekoSelect","scrolldown","chevronIconSize","currentOption","toArray","find","iconSize","showOptions","toggleOptions","onOptionClick","childrenLength","data-is-disabled","Math","RadioOption","SelectOption","StyledNekoOption","radioOption","recordCircle","checkboxBlankCircleOutline","selectOption","NekoSelect","NekoOption","Form","StyledNekoForm","NekoForm","StyledNekoSwitch","fontSize","onValue","offValue","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onToggle","v","NekoSwitch","StyledNekoFinder","chevron","FinderTitleContainer","FinderTitle","ChevronSpace","FinderTitleIconDropZone","FinderTitleIconDroppableArea","ItemContainer","StyledNekoFinderItem","defaultIcons","gallery","tag","tagIcon","rightElement","rightElementStyle","showRightElement","selected","draggable","onDragStart","onDragOver","onDragEnd","onDrop","isExpanded","dragging","rightAction","rightActionOnHover","onDragLeave","isCustomizedIcon","preventClose","hasChild","expanded","setExpanded","keys","includes","setIcon","isFolder","showRightAction","setShowRightAction","iconColor","NekoFinder","NekoFinderItem","Logo","StyledNekoLogo","viewBox","fill","xmlns","stroke","strokeWidth","NekoLogo","StyledNekoProgress","status","ratio","parseFloat","ProgressCurrent","onPauseClick","paused","onStopClick","percent","isNaN","parseInt","round","typeOfStatus","minWidth","NekoProgress","HeaderBase","StyledNekoHeader","subtitle","saving","textDecoration","contentSave","NekoHeader","PagingContainer","StyledNekoPaging","currentPage","limit","total","onCurrentPageChanged","infinite","controllerText","isEditable","maxPage","ceil","prevIconClassName","nextIconClassName","showCurrentPageInput","setShowCurrentPageInput","onClickHandle","page","getValidPage","numberPage","Number","currentPageJsx","autoFocus","defaultValue","onControllerClick","currentTarget","NekoPaging","lastPage","LinkContainer","Link","variant","StyledNekoQuickLinks","isActive","StyledNekoLink","variantValue","display","NekoQuickLinks","NekoLink","StyledSection","section","backgroundColor","degrees","NekoGauge","background","class","StyledUpload","NekoUpload","multiple","onSuccess","onFailure","apiUrl","apiConfig","inDropZone","setInDropZone","floor","random","inputId","inputEl","divEl","setBusy","pointerEvents","uploadFile","files","upload","file","postFetch","Promise","all","response","successResponses","filter","failerResponses","onDragEnter","uploadFiles","accept","click","dataTransfer","StyledUploadDropArea","NekoUploadDropArea","forwardRef","onInputUpload","Days","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","StyledNekoCalendar","CalendarHeaders","CalendarContent","WeekContainer","DayContainer","NekoCalendar","month","Date","getMonth","year","getFullYear","onEventClicked","onEventMoved","eventBuilder","events","draggedEvent","setDraggedEvent","highlightedDay","setHighlightedDay","disableDaysBefore","getDate","weeks","days","currentDate","weekDay","date","getDay","setDate","getFirstWeekDayForMonth","totalCalendarDays","startDate","endDate","start","end","numberOfDaysBetween","lastDate","array","chunkSize","chunks","splitArrayInChunks","day","week","today","isCurrentMonth","filterEvents","getTime","date1","date2","disableDaysAfter","NekoModalParent","NekoModalContent","StyledNekoModal","ok","cancel","customButtons","customButtonsPosition","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail","customClassName","showCustomButtons","keyUpHandler","modalContent","ariaHideApp","parentSelector","getElementById","closeTimeoutMS","NekoModal","Table","table","TableCheckBox","intermediate","onSelect","onUnselect","checkboxMultipleMarked","alignToJustifyContent","center","StyledNekoTable","columns","selectedItems","onSortChange","sortIconColor","emptyMessage","columnsCount","getColumnStyle","column","align","textAlign","justifyContent","cells","accessor","currentRowsIds","x","areAllRowsSelected","isIntermediate","hiddenColumnIndexes","reduce","headersFooters","beingSorted","beingSortedAsc","by","columnStyle","sortable","flex","colspan","row","cell","NekoTable","removeClass","Array","forEach","getElementsByClassName","ele","classList","remove","displayModes","StyledNekoMediaLibraryModal","images","onRefresh","onNextPage","onPreviousPage","onRemoveClick","onZoomClick","onSearch","searchValue","onPageChange","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave","search","setSerch","dragImageIndex","setDragImageIndex","displayMode","setDisplayMode","getBoundingClientRect","clientX","add","currentIndex","afterIndex","selectedMediaJsx","dummyElementForDrop","selectedElement","image","src","zoom_src","mediaGridJsx","some","mediaRows","thumbnail_url","objectFit","filename","mediaListJsx","ids","cursor","NekoMediaLibraryModal","TabContainer","TabGroup","Tab","TabContent","StyledNekoTabs","isActiveTabIndex","setIsActiveTabIndex","childrenProp","keepTabOnReload","URL","location","searchParams","callOnTabChangeFirst","onTabClick","tabAttributes","searchTitle","decodeURIComponent","index","replaceAll","indexOf","toLowerCase","hidden","tabIndex","tabAttr","ev","history","pushState","URLSearchParams","encodeURIComponent","set","newUrl","protocol","host","pathname","toString","replaceState","path","keepTab","attr","StyledNekoTab","NekoTabs","NekoTab","StyledNekoSideTabs","activeTabIndex","rightActions","newTabIndex","StyledNekoSideTab","NekoSideTabs","NekoSideTab","ToolbarBase","StyledNekoToolbar","NekoToolbar","NekoError","debug","this","consolidateJsonResult","json","meta","JSON","parse","err","jsonFetcher","options","nekoError","rawBody","headers","fetch","config","signal","nonce","formData","FormData","append","method","stringify","mgcl_gallery_custom_links","prefix","domain","rest_url","replace","api_url","restNonce","plugin_url","is_pro","is_registered","rest_nonce","wp","Settings","swrAllSettingsKey","useSWR","swrSettings","mutateSwrSettings","mutate","swrData","defaultData","defaultBusy","setData","setError","setTotal","useHandleSWR","busySettings","settings","swrError","busyAction","setBusyAction","obmode","mgcl_obmode","parsingEngine","mgcl_parsing_engine","mgcl_log","buttonEnabled","mgcl_button_enabled","buttonLabel","mgcl_button_label","updateOption","newSettingsData","alert","jsxOBMode","jsxParsingEngine","option","jsxLog","jsxUseButtons","jsxButtonLabel","__","i18n","PENDING","RENAME","TITLE","SAME_PAGE","NEW_PAGE","LINK_URL","LINK_TARGET","LINK_REL","ARIAL_LABEL","targets","GroupContainer","EditLinkField","postId","setUrl","setTarget","rel","setRel","aria","setAria","openModal","setOpenModal","post_id","_gallery_link_url","_gallery_link_target","_gallery_link_rel","_gallery_link_aria","res","onCloseModal","onKeyDown","keyCode","onRequestClose","onInput","isMediaLibrary","container","render","from","field","getAttribute"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU8B,QAGnC,IAAIC,EAASH,EAAiB5B,GAAY,CACzCK,EAAGL,EACHgC,GAAG,EACHF,QAAS,IAUV,OANAhB,EAAQd,GAA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AOyS,MAAOzH,EAAOyH,aAGxE,oBAACilB,GAAD,KACC,oBAAC,GAAD,CAAU/2B,GAAC,GAAEo2B,GAAKQ,UAClB,oBAAC,GAAD,CAAW7pB,SAAUrM,EAAM03B,QAAS,SAACjuB,GAAD,OAAOktB,EAAOltB,EAAEE,OAAOhL,QAAQA,MAAO+3B,KAE3E,oBAACL,GAAD,KACC,oBAAC,GAAD,CAAU/2B,GAAC,GAAEo2B,GAAKS,aAClB,oBAAC,GAAD,CAAW9pB,SAAUrM,EAAM03B,QAAS,SAACjuB,GAAD,OAAOotB,EAAQptB,EAAEE,OAAOhL,QAAQA,MAAOi4B,MAI9E5P,UAAWA,EACXC,cAAeqQ,MC1GfK,GAAiB,KAgBrB/tB,SAASC,iBAAiB,oBAAoB,SAAS6L,GATvD,IACOkiB,GALND,GAAiB/tB,SAAS4gB,uBAAuB,cAAc,IAKzDoN,EAAYhuB,SAAS8d,eAAe,0BAEzC9nB,IAASi4B,OAAQ,kBAAC,GAAD,MAAeD,GACzB,KAScD,KAKPrN,MAAMwN,KAAKluB,SAAS4gB,uBAAuB,yBACnDD,SAAQ,SAAAwN,GACd,IAAMxB,EAASwB,EAAMC,aAAa,gBAC5B5nB,EAAM2nB,EAAMC,aAAa,YACzBruB,EAASouB,EAAMC,aAAa,eAC5BtB,EAAMqB,EAAMC,aAAa,YACzBpB,EAAOmB,EAAMC,aAAa,aAChCp4B,IAASi4B,OAAQ,kBAAC,GAAD,CAAetB,OAAQA,EAAQnmB,IAAKA,EAAKzG,OAAQA,EAAQ+sB,IAAKA,EAAKE,KAAMA,IAAWmB","file":"index.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"wpJsonMgcl\"] = window[\"wpJsonMgcl\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([100,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","module.exports = React;","module.exports = ReactDOM;","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nconst NekoBusyOverlay = (props) => {\n const { spinner = true, busy = false, overlayStyle } = props;\n const [ showLoader, setShowLoader ] = useState(true);\n\n useEffect(() => {\n let timeout;\n\n // Show the loader\n if (!busy) { \n timeout = setTimeout(() => { \n setShowLoader(false); \n timeout = null; \n }, 250);\n }\n else { \n setShowLoader(true);\n }\n\n // Cleanup\n return (() => {\n if (timeout) {\n clearTimeout(timeout);\n }\n });\n }, [busy]);\n\n const loader = !showLoader ? null : (\n <React.Fragment>\n <div className={'overlay' + ' ' + (!busy ? 'overlayHidden' : '')} style={overlayStyle}>\n {Boolean(spinner) && \n <div className={'lds-ellipsis ' + (!busy ? 'spinnerHidden' : '')}>\n <div></div><div></div><div></div><div></div>\n </div>\n }\n </div>\n <style jsx>{`\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n `}</style>\n </React.Fragment>\n );\n\n // I am removing the busy because I like it as a boolean...\n // ... but React doesn't like pure boolean value here.\n const propsForElement = { ...props, busy: undefined, spinner: undefined };\n return (\n <div style={{ position: 'relative' }} {...propsForElement}> \n {loader}\n {props.children}\n </div>\n );\n};\n\nNekoBusyOverlay.propTypes = {\n busy: PropTypes.bool.isRequired,\n spinner: PropTypes.bool,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node\n ]).isRequired\n};\n\nexport default NekoBusyOverlay;","export const NekoColors = {\n black: '#000000',\n blackRGB: '0, 0, 0',\n blue: '#007cba',\n blueRGB: '0, 124, 186',\n deepBlue: '#134575',\n finderBorder: '#DEDEDE',\n lightBlue: '#EBF3FF',\n lightGray: '#cacaca',\n lightGray2: '#F5F5F5',\n lightPurple: '#D8B1FF',\n gray: '#E8E8E8',\n green: '#0EA480',\n darkGray: '#A0A0A0',\n disabledForm: '#828282',\n orange: '#daa827',\n overlay: 'rgba(16, 16, 16, 0.92)',\n red: '#ba4300',\n redHighlight: '#de5307',\n header: '#007cba',\n proGray: '#7F8EA0',\n progress: '#8414a8',\n purple: '#956DBE',\n tableGray: '#FAFAFA',\n yellow: '#e4b42b',\n yellowRGB: '224, 156, 54',\n white: '#ffffff',\n whiteRGB: '255, 255, 255',\n}\n\nexport const NekoColorTheme = {\n danger: NekoColors.red,\n primary: NekoColors.blue,\n secondary: NekoColors.lightBlue,\n success: NekoColors.green,\n}\n\nconst NekoTheme = {\n\n // COLORS\n ...NekoColors,\n ...NekoColorTheme,\n\n // FONT\n\n fontFamily: '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif',\n fontSizeH1: '24px',\n fontSizeH2: '18px',\n fontSizeText: '13px',\n fontSizeSmall: '12px',\n fontSizeSmallButton: '10px',\n\n // SHADOW\n\n lightShadow: '0px 0px 10px rgba(0,0,0,0.1)',\n};\n\nexport default NekoTheme;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\n\nconst StyledCircleSpinner = Styled.div`\n width: ${props => props.size || '50%'};\n padding-top: ${props => props.size || '50%'};\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ${props => props.color || '#333'};\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n`;\n\nconst CircleSpinner = (props) => {\n return (\n <StyledCircleSpinner {...props}>\n <div className=\"double-bounce1\"></div>\n <div className=\"double-bounce2\"></div>\n </StyledCircleSpinner>\n );\n};\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoSpinner = (props) => {\n const { type = 'circle', ...rest } = props;\n\n switch (type) {\n case 'circle':\n return <CircleSpinner {...rest} />\n\n default:\n return null;\n }\n};\n\nconst NekoSpinner = (props) => {\n return <StyledNekoSpinner {...props} />;\n};\n\nNekoSpinner.propTypes = {\n type: PropTypes.string,\n};\n\nNekoSpinner.defaultProps = {\n type: 'circle',\n};\n\nexport { NekoSpinner };\n","import lockCheck from '@iconify/icons-mdi/lock-check';\nimport lockOpenVariant from '@iconify/icons-mdi/lock-open-variant';\nimport fileUndo from '@iconify/icons-mdi/file-undo';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport playIcon from '@iconify/icons-mdi/play';\nimport replayIcon from '@iconify/icons-mdi/replay';\nimport checkIcon from '@iconify/icons-mdi/check';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport deleteIcon from '@iconify/icons-mdi/delete';\nimport undoIcon from '@iconify/icons-mdi/undo';\n//import alertIcon from '@iconify/icons-mdi/alert';\nimport alertCircle from '@iconify/icons-mdi/alert-circle';\nimport databaseIcon from '@iconify/icons-mdi/database';\nimport pencilIcon from '@iconify/icons-mdi/pencil';\nimport toolsIcon from '@iconify/icons-mdi/tools';\nimport cogIcon from '@iconify/icons-mdi/cog';\nimport closeIcon from '@iconify/icons-mdi/close';\nimport catIcon from '@iconify/icons-mdi/cat';\nimport trashCan from '@iconify/icons-mdi/trash-can';\nimport leadPencil from '@iconify/icons-mdi/lead-pencil';\nimport viewDashboard from '@iconify/icons-mdi/view-dashboard';\nimport databaseSearch from '@iconify/icons-mdi/database-search';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport plusIcon from '@iconify/icons-mdi/plus';\nimport folderPlus from '@iconify/icons-mdi/folder-plus';\nimport imagePlus from '@iconify/icons-mdi/image-plus';\nimport viewGrid from '@iconify/icons-mdi/view-grid';\nimport formatListBulleted from '@iconify/icons-mdi/format-list-bulleted';\nimport twitterIcon from '@iconify/icons-mdi/twitter';\nimport instagramIcon from '@iconify/icons-mdi/instagram';\nimport facebookIcon from '@iconify/icons-mdi/facebook';\nimport starIcon from '@iconify/icons-mdi/star';\nimport timerOutline from '@iconify/icons-mdi/timer-outline';\nimport arrowUpBoldCircleOutline from '@iconify/icons-mdi/arrow-up-bold-circle-outline';\nimport linkVariant from '@iconify/icons-mdi/link-variant';\nimport linkedin from '@iconify/icons-mdi/linkedin';\nimport pinterest from '@iconify/icons-mdi/pinterest';\nimport zoomIn from '@iconify/icons-mdi/zoom-in'\nimport infoOutline from '@iconify/icons-mdi/info-outline'\nimport arrowUp from '@iconify/icons-mdi/arrow-up'\nimport arrowDown from '@iconify/icons-mdi/arrow-down'\nimport sort from '@iconify/icons-mdi/sort'\nimport eye from '@iconify/icons-mdi/eye'\nimport rocketLaunch from '@iconify/icons-mdi/rocket-launch'\nimport calendarMonth from '@iconify/icons-mdi/calendar-month'\n\nconst presetIcons = {\n 'lock': lockCheck,\n 'lock-open': lockOpenVariant,\n 'file-undo': fileUndo,\n 'chevron-double-left': chevronDoubleLeft,\n 'chevron-double-right': chevronDoubleRight,\n 'chevron-left': chevronLeft,\n 'chevron-right': chevronRight,\n 'chevron-down': chevronDown,\n 'chevron-up': chevronUp,\n 'pause': pauseIcon,\n 'play': playIcon,\n 'replay': replayIcon,\n 'check': checkIcon,\n 'stop': stopIcon,\n 'delete': deleteIcon,\n 'undo': undoIcon,\n 'alert': alertCircle,\n 'database': databaseIcon,\n 'tools': toolsIcon,\n 'cog': cogIcon,\n 'close': closeIcon,\n 'cat': catIcon,\n 'upload': arrowUpBoldCircleOutline,\n 'trash': trashCan,\n 'pencil': leadPencil,\n 'dashboard': viewDashboard,\n 'search': databaseSearch,\n 'folder': folderIcon,\n 'folder-open': folderOpen,\n 'image-multiple-outline': imageMultipleOutline,\n 'plus': plusIcon,\n 'folder-plus': folderPlus,\n 'image-plus': imagePlus,\n 'view-grid': viewGrid,\n 'format-list-bulleted': formatListBulleted,\n 'twitter': twitterIcon,\n 'instagram': instagramIcon,\n 'facebook': facebookIcon,\n 'star': starIcon,\n 'timer-outline': timerOutline,\n 'link': linkVariant,\n 'linkedin': linkedin,\n 'pinterest': pinterest,\n 'zoom-in': zoomIn,\n 'info-outline': infoOutline,\n 'arrow-up': arrowUp,\n 'arrow-down': arrowDown,\n 'sort': sort,\n 'eye': eye,\n 'rocket-launch': rocketLaunch,\n 'calendar-month': calendarMonth,\n};\n\nexport default presetIcons;","import React, { useState, useRef, useEffect, useCallback } from 'react';\nimport PQueue from 'p-queue';\n\nconst useHandleSWR = (swrData = undefined, defaultData = null, defaultBusy = false) => {\n const [ data, setData ] = useState(defaultData);\n const [ error, setError ] = useState(null);\n const [ busy, setBusy ] = useState(defaultBusy);\n const [ total, setTotal ] = useState(0);\n\n useEffect(() => {\n if (swrData !== undefined) { \n if (swrData.success) {\n setError(null);\n setData(swrData.data);\n setTotal(swrData.total ? swrData.total : 0);\n }\n else {\n setError(swrData.error);\n }\n }\n setBusy(swrData === undefined);\n }, [ swrData ]);\n\n return { busy, data, total, error };\n}\n\n// Sometimes, we need to align or place elements depending on other dynamic elements.\n// This hook returns a ref (which should be assign to a component), and the size of\n// this element every time it changes.\n\nconst useComponentSize = () => {\n const ref = useRef();\n const [ size, setSize ] = useState({});\n\n useEffect(() => {\n if (ref && ref.current) {\n const observer = new ResizeObserver(entries => {\n let element = entries[0];\n if (element.contentRect) {\n setSize({ \n width: element.contentRect.left + element.contentRect.right, \n height: element.contentRect.top + element.contentRect.bottom \n });\n }\n });\n observer.observe(ref.current);\n return () => { observer.unobserve(ref.current); };\n }\n }, []);\n return { ref, width: size.width ? size.width : 0, height: size.height ? size.height : 0 };\n};\n\n// If a click is made outside the component, then the function onOutsideClick is called.\n// This function returns a ref which needs to be assigned to the component.\n\nconst useOutsideClick = (onOutsideClick) => {\n const componentRef = useRef();\n const handleOutsideClick = (e) => {\n if (!onOutsideClick || componentRef.current.contains(e.target)) {\n return;\n }\n onOutsideClick();\n };\n useEffect(() => {\n document.addEventListener(\"mousedown\", handleOutsideClick);\n return () => { document.removeEventListener(\"mousedown\", handleOutsideClick); };\n });\n return componentRef;\n};\n\n\n// This hook allows calling many requests without having too many of them\n// running concurrently.\n\nlet GlobalQueue = null;\n\nconst useNekoGlobalQueue = (params = {}) => {\n\n if (!GlobalQueue) {\n let { concurrency = 2 } = params;\n GlobalQueue = new PQueue({ concurrency, autoStart: true });\n }\n\n const runTask = async (func) => {\n return await GlobalQueue.add(func);\n }\n\n return { runTask };\n};\n\n// This hook handles batch of asynchronous requests, and provide everything\n// the NekoProgress might need.\n\nconst isDebug = true;\nconst UploadQueue = new PQueue({ concurrency: 1, autoStart: false });\n\nconst useNekoTasks = () => {\n\n // We should be able to kill fetch requests using this\n // Interesting article: https://davidwalsh.name/cancel-fetch\n const [ controller, setController ] = useState(new AbortController());\n const refSkip = useRef(false);\n const refErrors = useRef(0);\n const refCurrentTask = useRef(null);\n const [ busy, setBusy ] = useState(null);\n const [ paused, setPaused ] = useState(false);\n const [ max, setMax ] = useState(0);\n const [ error, setError ] = useState(false);\n const [ success, setSuccess ] = useState(false);\n const [ value, setValue ] = useState(0);\n\n const reset = async () => {\n let newController = new AbortController();\n setController(newController);\n setError(false);\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setValue(0);\n setMax(0);\n };\n\n const start = async (tasks) => {\n const runnerPromise = new Promise((resolve, reject) => {\n setError(false);\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setTasks(tasks);\n setBusy(true);\n if (isDebug) { console.log('[useNekoTasks] Start.'); }\n UploadQueue.start();\n UploadQueue.onIdle().then(() => {\n onIdle();\n resolve();\n }); \n });\n return runnerPromise;\n };\n\n const pause = async () => {\n if (isDebug) { console.log('[useNekoTasks] Pause.'); }\n UploadQueue.pause();\n setPaused(true);\n };\n\n const resume = async () => {\n if (isDebug) { console.log('[useNekoTasks] Resume.'); }\n setError(false);\n setPaused(false);\n UploadQueue.start();\n };\n\n const retry = async () => {\n if (isDebug) { console.log('[useNekoTasks] Retrying.'); }\n setError(false);\n setPaused(false);\n if (refCurrentTask.current) {\n await executeTask(refCurrentTask.current, true);\n }\n //UploadQueue.start();\n };\n\n const stop = async () => {\n if (isDebug) { console.log('[useNekoTasks] Cancel.'); }\n UploadQueue.pause();\n controller.abort();\n setBusy(false);\n setError(false);\n setSuccess(false);\n };\n\n const onIdle = async () => {\n if (isDebug) { console.log('[useNekoTasks] onIdle.'); }\n setSuccess(true);\n setBusy(false);\n };\n\n const executeTask = async(task, isRetry = false) => {\n try {\n if (isRetry) {\n refErrors.current--;\n setValue(value => value - 1);\n }\n refCurrentTask.current = task;\n let res = await task(controller.signal);\n if (!res || !res.success) {\n console.error('[useNekoTasks] The function for that task did not return anything.', res);\n }\n if (!res.success) {\n refErrors.current++;\n if (!refSkip.current) {\n setError(res.error);\n pause();\n }\n }\n // If we are retrying a task and it is successful, we should restart PQueue\n else if (isRetry) {\n UploadQueue.start();\n }\n }\n catch (err) {\n if (err.name === 'AbortError') {\n console.log('[useNekoTasks] Aborted');\n return;\n }\n else {\n refErrors.current++;\n if (!refSkip.current) {\n setError(\"[useNekoTasks] An error was caught (more information in the console).\");\n pause();\n }\n }\n }\n finally {\n setValue(value => value + 1);\n }\n }\n\n const addTask = async (task) => {\n UploadQueue.add(async () => executeTask(task));\n setMax(max => max + 1);\n }\n\n const setTasks = async (tasks) => {\n UploadQueue.clear();\n for (let task of tasks) {\n addTask(task);\n }\n setValue(0);\n };\n\n const setAlwaysSkip = useCallback((value = true) => {\n refSkip.current = true;\n }, []);\n\n const getErrorCount = useCallback(() => {\n return refErrors.current;\n }, []);\n\n return { start, stop, pause, resume, reset, retry,\n addTask, setAlwaysSkip, getErrorCount,\n error, success, busy, paused, value, max };\n};\n\nconst useKeyboardEvent = () => {\n\tconst [ pressShift, setPressShift ] = useState(false);\n const [ pressControl, setPressControl ] = useState(false);\n\n\tconst keydownFunction = useCallback((e) => {\n\t\tsetPressShift(e.shiftKey);\n setPressControl(e.ctrlKey || e.metaKey);\n\t}, []);\n\tconst keyupFunction = useCallback(() => {\n\t\tsetPressShift(false);\n setPressControl(false);\n\t}, []);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"keydown\", keydownFunction, false);\n\t\tdocument.addEventListener(\"keyup\", keyupFunction, false);\n\n\t\treturn () => {\n\t\tdocument.removeEventListener(\"keydown\", keydownFunction, false);\n\t\tdocument.removeEventListener(\"keyup\", keyupFunction, false);\n\t\t}\n\t}, []);\n\n\treturn { pressShift, pressControl };\n}\n\nexport { useHandleSWR, useOutsideClick, useNekoGlobalQueue, useNekoTasks, useComponentSize, useKeyboardEvent };","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport { useComponentSize } from '../hooks';\nimport Theme from '../common/NekoTheme';\n\nconst TooltipContainer = Styled.div`\n\tdisplay: flex;\n`;\n\nconst Tooltip = Styled.div`\n\tbackground-color: rgba(${Theme.blackRGB}, 0.8);\n\tborder-radius: 4px;\n\tcolor: ${Theme.white};\n\tfont-family: ${Theme.fontFamily};\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ${Theme.fontSizeText};\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ${prop => prop.visible ? 'inline-block' : 'none'};\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: \"\";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t${prop => prop.style}\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTooltip = props => {\n\tconst { text = 'Hello world!', position = 'top' } = props;\n\tconst [ show, setShow ] = useState(false);\n\tconst { ref: tooltipRef, width: tooltipWidth, height: tooltipHeight } = useComponentSize();\n\tconst { ref: childRef, width: childWidth, height: childHeight } = useComponentSize();\n\n\tconst transformStyle = useMemo(() => {\n\t\tconst pointerSize = 5;\n\t\tlet transY = 0;\n\t\tlet transX = 0;\n\n\t\tif (position === 'top') {\n\t\t\ttransY = -1 * tooltipHeight - pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'bottom') {\n\t\t\ttransY = childHeight + pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'left') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = -1 * tooltipWidth - pointerSize;\n\t\t}\n\t\telse if (position === 'right') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = childWidth + pointerSize;\n\t\t}\n\t\t\n\t\treturn { \n\t\t\ttransform: `translateX(${transX}px) translateY(${transY}px)`\n\t\t};\n\n\t}, [position, tooltipWidth, tooltipHeight, childWidth, childHeight])\n\n\treturn (\n\t\t<TooltipContainer>\n\t\t\t<Tooltip ref={tooltipRef} visible={show} className={position} style={transformStyle}>\n\t\t\t\t{text}\n\t\t\t</Tooltip>\n\t\t\t<div ref={childRef} onMouseEnter={() => text && setShow(true)} onMouseLeave={() => setShow(false)}>\n\t\t\t\t{props.children}\n\t\t\t</div>\n\t\t</TooltipContainer>\n\t);\n};\n\nconst NekoTooltip = (props) => {\n return (<StyledNekoTooltip {...props} />);\n}\n\nNekoTooltip.propTypes = {\n\ttext: PropTypes.string,\n\tposition: PropTypes.oneOf(['top', 'right', 'bottom', 'left'])\n};\n\nNekoTooltip.defaultProps = {\n\ttext: 'Hello world!',\n\tposition: 'top'\n};\n\nexport { NekoTooltip };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, IconifyIcon } from '@iconify/react';\n\nimport PresetIcons from '../common/PresetIcons';\nimport { NekoTooltip } from './Tooltip';\n\nconst StyledIconContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst hoverColor = (color, hoverColor) => {\n if (hoverColor) {\n return `\n &:hover {\n path {\n fill: ${hoverColor};\n }\n }\n `;\n }\n if (color) {\n return `\n &:hover {\n path {\n fill: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\nconst StyledIcon = Styled(Icon)`\n\n path {\n fill: ${props => props.color};\n }\n\n ${props => hoverColor(props.color, props.hoverColor)}\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n`;\n\nconst StyledNekoIcon = props => {\n\n let { icon, spinning = false, className = '', title, tooltip, containerStyle, color, hoverColor,\n disabled = false, raw, isBusy = false, ...rest } = props;\n\n if (!rest.width && !rest.height) {\n rest.width = rest.height = 30;\n }\n\n const getIcon = () => {\n if (typeof icon === 'string') {\n return PresetIcons[icon] || null;\n }\n return icon;\n };\n\n const iconClassName = `nui-icon ${className}${rest.onClick ? ' nui-clickable' : ''}${spinning ? ' spin' : ''}${disabled ? ' disabled' : ''}${isBusy ? ' busy' : ''}`;\n\n if (tooltip) {\n return (\n <NekoTooltip text={tooltip.text} position={tooltip.position || 'top'}>\n <StyledIconContainer style={containerStyle}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest}/>\n </StyledIconContainer>\n </NekoTooltip>\n );\n }\n\n if (raw) {\n return <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n }\n\n return (\n <StyledIconContainer style={containerStyle} title={title}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n {!tooltip ? null : <NekoTooltip>{tooltip}</NekoTooltip>}\n </StyledIconContainer>\n );\n};\n\nconst NekoIcon = (props) => {\n return (<StyledNekoIcon {...props} />);\n};\n\nNekoIcon.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['lock' ,'lock-open' ,'file-undo' ,'chevron-double-left' ,'chevron-double-right' ,'chevron-left' ,'chevron-right' ,'chevron-down' ,'chevron-up' ,'pause' ,'play' ,'replay' ,'check' ,'stop' ,'delete' ,'undo' ,'alert' ,'database' ,'pencil' ,'tools' ,'cog' ,'close' ,'cat' ,'upload'])]),\n color: PropTypes.string,\n spinning: PropTypes.bool,\n className: PropTypes.string,\n tooltip: PropTypes.string,\n raw: PropTypes.bool,\n isBusy: PropTypes.bool,\n};\n\nNekoIcon.defaultProps = {\n icon: undefined,\n color: undefined,\n spinning: false,\n className: '',\n tooltip: undefined,\n raw: undefined,\n isBusy: false,\n};\n\nexport { NekoIcon };\n","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { IconifyIcon } from '@iconify/react';\nimport { NekoSpinner } from '../misc/Spinner';\nimport { NekoIcon } from '../misc/Icon';\n\nconst StyledButton = Styled(props => {\n\n const { className, icon = null, onClick, disabled = false, color = null, small, isBusy = false, width, height,\n children, rounded, busyText, spinning = false, hideBusyIcon = false, ...rest } = props;\n const hasIcon = !!icon;\n const iconWidth = useMemo(() => {\n const base = width ?? 30;\n return rounded ? base - 10 : base - 6;\n }, [width, rounded]);\n\n const classNames = `nui-button ${className || ''}${hasIcon ? ' has-icon' : ''}${color ? ' custom-color' : ''}${small ? ' small' : ''}${rounded ? ' rounded' : ''}${isBusy ? ' busy' : ''}`;\n\n return (\n <button type=\"button\" className={classNames} onClick={onClick} disabled={disabled} {...rest}>\n {isBusy && !hideBusyIcon && !hasIcon && <NekoSpinner type=\"circle\" color=\"#fff\" size={rounded ? '82%' : '35%'} />}\n {isBusy && !!busyText && <span style={{ marginLeft: hideBusyIcon ? 0 : '4px', marginRight: '2xp' }}>{busyText}</span>}\n {hasIcon && <NekoIcon icon={icon} width={iconWidth} height={iconWidth} spinning={spinning} raw style={ rounded ? { margin: '0 auto' } : {}} />}\n {!!children && !isBusy && <span style={{ marginLeft: hasIcon ? '4px' : 0, marginRight: hasIcon ? '2xp' : 0 }}>{children}</span>}\n </button>\n );\n})`\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n padding: 0 15px;\n\n background-color: ${Theme.blue};\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ${Theme.lightBlue};\n border: 1px solid ${Theme.blue};\n color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.lightBlue)};\n }\n }\n\n &.danger {\n background-color: ${Theme.red};\n border-color: ${Theme.red};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.red)};\n\t }\n }\n\n &.success {\n background-color: ${Theme.green};\n border-color: ${Theme.green};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.green)};\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ${Theme.fontSizeSmallButton};\n height: 24px;\n }\n\n &.header {\n background-color: ${Theme.deepBlue};\n border-color: ${Theme.deepBlue};\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.deepBlue)};\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ${props => props.height ?? (props.width ?? 30)}px;\n width: ${props => props.width ?? 30}px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ${props => additionalColor(props.color)}\n`;\n\nconst additionalColor = (color) => {\n if (color) {\n return `\n &.custom-color {\n background-color: ${color};\n border: 1px solid ${color};\n\n &:hover {\n background-color: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\n/**\n * The NekoButton works out of the box without specific attributes.\n */\nconst NekoButton = (props) => {\n return (<StyledButton {...props} />);\n};\n\nNekoButton.propTypes = {\n className: PropTypes.oneOf(['primary', 'secondary', 'danger', 'success', 'header']),\n disabled: PropTypes.bool,\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['setting', 'edit', 'trash'])]),\n color: PropTypes.string,\n onClick: PropTypes.func.isRequired,\n rounded: PropTypes.bool,\n isBusy: PropTypes.bool,\n spinning: PropTypes.bool,\n busyText: PropTypes.string,\n hideBusyIcon: PropTypes.bool,\n};\n\nNekoButton.defaultProps = {\n className: 'primary',\n disabled: false,\n icon: null,\n color: null,\n onClick: () => {},\n rounded: undefined,\n isBusy: false,\n spinning: false,\n busyText: undefined,\n hideBusyIcon: false,\n};\n\nexport { NekoButton };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\nimport Theme from '../common/NekoTheme';\n\nconst Tag = Styled.a`\n background-color: ${Colors.yellow};\n position: relative;\n border-radius: 10px;\n color: ${Colors.white};\n font-family: ${Theme.fontFamily};\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ${Colors.white};\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n`;\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledProOnly = (props) => {\n\n const { show = true, className, ...rest } = props;\n\n if (!show) {\n return null;\n }\n\n return (\n <Tag href='https://store.meowapps.com' target='_blank' className={`${className || ''}`} {...rest}>\n Pro Only\n </Tag>\n );\n};\n\nconst ProOnly = (props) => {\n return (<StyledProOnly {...props} />);\n}\n\nProOnly.propTypes = {\n show: PropTypes.bool,\n className: PropTypes.string\n};\n\nProOnly.defaultProps = {\n show: true,\n className: undefined\n};\n\nexport { ProOnly };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport { useOutsideClick, useComponentSize } from '../hooks';\n\nconst MenuButtonWrapper = Styled.div`\n display: inline-block;\n`;\n\nconst MenuButton = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n`;\n\nconst MenuItemContainer = Styled.div`\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ${Theme.blue};\n position: absolute;\n z-index: 10;\n box-shadow: ${Theme.lightShadow};\n\n &:before {\n content: \"\";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ${Theme.blue};\n }\n`;\n\nconst StyledMenuButton = props => {\n\n const { title, disabled = false, isPro = false, style = {}, hideChevron, titleStyle = {} } = props;\n const [ isOpen, setIsOpen ] = React.useState(false);\n const wrapperRef = useOutsideClick(() => { setIsOpen(false) });\n const { ref: buttonRef, width: buttonWidth } = useComponentSize();\n\n const onClick = () => {\n setIsOpen(!isOpen);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n isPro,\n disabled: child.props.disabled || disabled,\n onClick: () => {\n if (child.props.onClick) {\n child.props.onClick();\n }\n onClick();\n }\n });\n });\n\n return (\n <MenuButtonWrapper ref={wrapperRef}>\n <MenuButton ref={buttonRef} type=\"button\" disabled={disabled} onClick={onClick} style={style}>\n <span style={titleStyle}>{title}</span>\n {!hideChevron && <Icon icon={chevronDown} width=\"24\" height=\"24\" style={{ marginLeft: '4px' }} />}\n </MenuButton>\n {isOpen &&\n <MenuItemContainer style={{ transform: `translateX(calc(-50% + ${buttonWidth / 2}px))` }}>\n {children}\n </MenuItemContainer>\n }\n </MenuButtonWrapper>\n );\n};\n\nconst MenuItem = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ${Theme.proGray};\n justify-content: space-between;\n }\n\n &.separator {\n border-top: 1px solid ${Theme.white};\n font-size: 10px;\n padding: 5px;\n }\n`;\n\nconst StyledNekoMenuItem = props => {\n\n const { onClick, children, isPro, requirePro = false, disabled, separator } = props;\n const needsProUser = requirePro && !isPro;\n\n return (\n <MenuItem type=\"button\" className={`${needsProUser? 'is-pro' : ''} ${separator ? 'separator' : ''}`} onClick={onClick} disabled={disabled || needsProUser}>\n <span>{children}</span>\n {needsProUser && !isPro && <ProOnly />}\n </MenuItem>\n );\n};\n\n/**\n * The NekoMenuButton works out of the box without specific attributes.\n */\nconst NekoMenuButton = (props) => {\n return (<StyledMenuButton {...props} />);\n}\nconst NekoMenuItem = (props) => {\n return (<StyledNekoMenuItem {...props} />);\n}\n\nNekoMenuButton.propTypes = {\n title: PropTypes.string,\n disabled: PropTypes.bool,\n isPro: PropTypes.bool,\n hideChevron: PropTypes.bool,\n style: PropTypes.object,\n titleStyle: PropTypes.object,\n};\n\nNekoMenuButton.defaultProps = {\n title: undefined,\n disabled: false,\n isPro: false,\n hideChevron: undefined,\n style: {},\n titleStyle: {},\n};\n\nNekoMenuItem.propTypes = {\n onClick: PropTypes.func.isRequired,\n requirePro: PropTypes.bool,\n separator: PropTypes.bool,\n};\n\nNekoMenuItem.defaultProps = {\n onClick: () => {},\n requirePro: false,\n separator: undefined,\n};\n\nexport { NekoMenuButton, NekoMenuItem };\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoButton } from '../button/Button';\n\nconst Page = Styled.div`\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoPage = props => {\n\n const { className, children, nekoErrors = [], style = {} } = props;\n const [ fatalError, setFatalError ] = useState(false);\n const [ showBody, setShowBody ] = useState(false);\n\n if (nekoErrors && !fatalError) {\n for (let error of nekoErrors) {\n if (error) {\n setFatalError(error);\n break\n }\n }\n }\n\n return (\n <Page className={className || ''} style={style}>\n {fatalError && \n <div className='neko-rest-error'>\n <div className='container'>\n {!showBody &&\n <>\n <h3>The Rest API is disabled or broken 😢</h3>\n <p>The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled.</p>\n <p><i>Last but not least: check your PHP Error Logs and your Debugging Console.</i></p>\n <p className='neko-debug'>\n <small>\n URL: {fatalError.url}<br />\n CODE: {fatalError.code}<br />\n MESSAGE: {fatalError.message}<br />\n </small>\n </p>\n </>\n }\n {fatalError.body && showBody &&\n <p className='neko-debug'>\n <div dangerouslySetInnerHTML={{ __html: fatalError.body }}></div>\n </p>\n }\n {fatalError.body &&\n <NekoButton color=\"#a94242\" onClick={() => setShowBody(!showBody)}>\n {showBody ? 'Hide' : 'Display'} response from server\n </NekoButton>\n }\n <NekoButton color=\"#a94242\" onClick={() => { window.open('https://meowapps.com/fix-wordpress-rest-api/', '_blank') }}>\n Learn about WordPress Debugging\n </NekoButton>\n </div>\n </div>}\n {children}\n </Page>\n );\n};\n\nconst NekoPage = (props) => {\n return (<StyledNekoPage {...props} />);\n};\n\nNekoPage.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n nekoErrors: PropTypes.bool\n};\n\nNekoPage.defaultProps = {\n className: undefined,\n style: {},\n nekoErrors: false\n};\n\nexport { NekoPage };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport Theme from '../common/NekoTheme';\n\nconst NekoH1 = Styled.h1`\n font-family: ${Theme.fontFamily};\n font-weight: normal;\n font-size: ${Theme.fontSizeH1};\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoH2 = Styled.h2`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeH2};\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoP = Styled.p`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n`;\n\nconst NekoSpan = Styled.span`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\nconst NekoLabel = Styled.label`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTypo = props => {\n const { children, ...rest } = props;\n\n return (\n props.h1 ? <NekoH1 {...rest}>{children}</NekoH1>\n : props.h2 ? <NekoH2 {...rest}>{children}</NekoH2>\n : props.p ? <NekoP {...rest}>{children}</NekoP>\n : props.label ? <NekoLabel {...rest}>{children}</NekoLabel>\n : <NekoSpan {...rest}>{children}</NekoSpan>\n );\n};\n\nconst NekoTypo = (props) => {\n return (<StyledNekoTypo {...props} />);\n}\n\nNekoTypo.propTypes = {\n h1: PropTypes.any,\n h2: PropTypes.any,\n p: PropTypes.any\n};\n\nNekoTypo.defaultProps = {\n h1: undefined,\n h2: undefined,\n p: undefined\n};\n\nexport { NekoTypo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoTypo } from '../misc/Typography';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Block = Styled.div`\n font-size: ${Theme.fontSizeText};\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ${Theme.blue};\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ${Theme.blue};\n\n .nui-block-title {\n color: ${Theme.white};\n }\n\n .nui-block-content {\n background-color: ${Theme.white};\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoBlock = props => {\n\n const { title, children, className, busy = false, style = {}, action } = props;\n\n return (\n <Block className={'nui-block ' + (className || '')} style={style}>\n <NekoBusyOverlay busy={busy}>\n <div className=\"nui-block-header\">\n <NekoTypo h2 className=\"nui-block-title\">{title}</NekoTypo>\n {!!action && action}\n </div>\n <div className=\"nui-block-content\">\n {children}\n </div>\n </NekoBusyOverlay>\n </Block>\n );\n};\n\nconst NekoBlock = (props) => {\n return (<StyledNekoBlock {...props} />);\n}\n\nNekoBlock.propTypes = {\n title: PropTypes.string,\n className: PropTypes.oneOf(['', 'primary']),\n style: PropTypes.object,\n action: PropTypes.element,\n};\n\nNekoBlock.defaultProps = {\n title: undefined,\n className: '',\n style: {},\n action: undefined,\n};\n\nexport { NekoBlock };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Container = Styled.div`\n font-size: ${Theme.fontSizeText};\n font-family: ${Theme.fontFamily};\n background-color: ${Theme.white};\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ${Theme.blue};\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n`;\n\nconst Bar = Styled.div`\n justify-content: flex-start;\n background-color: ${Theme.lightGray2};\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoContainer = props => {\n\n const { children, header, headerAlign = 'left', footer, footerAlign = 'right', className, style = {} } = props;\n\n return (\n <Container className={className || ''} style={style}>\n {header && <Bar className={`align-${headerAlign}`}>{ header }</Bar>}\n <div className=\"content\">\n { children }\n </div>\n {footer && <Bar className={`align-${footerAlign}`}>{ footer }</Bar>}\n </Container>\n );\n};\n\nconst NekoContainer = (props) => {\n return (<StyledNekoContainer {...props} />);\n}\n\nNekoContainer.propTypes = {\n header: PropTypes.element,\n headerAlign: PropTypes.oneOf(['left', 'right']),\n footer: PropTypes.element,\n footerAlign: PropTypes.oneOf(['left', 'right']),\n className: PropTypes.string,\n style: PropTypes.object\n};\nNekoContainer.defaultProps = {\n header: undefined,\n headerAlign: 'left',\n footer: undefined,\n footerAlign: 'right',\n className: undefined,\n style: {}\n};\n\nexport { NekoContainer };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} title=''\n */\nconst StyledNekoSettings = Styled(props => {\n const { title = '', contentAlign = 'left' } = props;\n return (\n <div className={props.className || ''}>\n {title ? <div className=\"nui-settings-head\">{title}</div> : null}\n <div className={`nui-settings-content nui-settings-content-align-${contentAlign}`}>\n {props.children}\n </div>\n </div>\n );\n})`\n display: flex;\n font-family: ${Theme.fontFamily};\n\n > .nui-settings-head {\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n`;\n\nconst NekoSettings = (props) => {\n return (<StyledNekoSettings {...props} />);\n}\n\nNekoSettings.propTypes = {\n title: PropTypes.string,\n className: PropTypes.string,\n contentAlign: PropTypes.string\n};\n\nNekoSettings.defaultProps = {\n title: '',\n className: undefined,\n contentAlign: 'left'\n};\n\nexport { NekoSettings };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst WindowBase = Styled.div`\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n`;\n\nconst TitleBar = Styled(props => (\n props.children ? (\n <div className={props.className}>\n {props.children}\n </div>\n ) : null\n))`\n background-color: ${Theme.blue};\n color: white;\n`;\n\nconst StyledNekoWindow = props => (\n <WindowBase className='window'>\n <TitleBar>{props.title}</TitleBar>\n {props.children}\n </WindowBase>\n);\n\nconst NekoWindow = (props) => {\n return (<StyledNekoWindow {...props} />);\n}\n\nNekoWindow.propTypes = {\n title: PropTypes.string\n};\nNekoWindow.defaultProps = {\n title: undefined\n};\n\nexport { NekoWindow };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Wrapper = Styled.div`\n display: flex;\n flex-wrap: wrap;\n`;\n\nconst Column = Styled.div`\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoWrapper = props => {\n return (\n <Wrapper>\n { props.children }\n </Wrapper>\n );\n};\n\nconst StyledNekoColumn = props => {\n const { full, minimal, ...rest } = props;\n let className = full ? 'full' : '';\n className += minimal ? ' minimal' : '';\n return (\n <Column className={className} {...rest}>{props.children}</Column>\n );\n};\n\nconst NekoWrapper = (props) => {\n return (<StyledNekoWrapper {...props} />);\n};\n\nconst NekoColumn = (props) => {\n return (<StyledNekoColumn {...props} />);\n};\n\nNekoWrapper.propTypes = {\n};\nNekoWrapper.defaultProps = {\n};\n\nNekoColumn.propTypes = {\n full: PropTypes.any\n};\nNekoColumn.defaultProps = {\n full: undefined\n};\n\nexport { NekoWrapper, NekoColumn };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { NekoSpinner } from '../misc/Spinner';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoCheckbox = Styled(props => {\n const { id, name, checked = false, onChange, label, description, isPro, disabled, requirePro = false, isBusy = false } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const isDisabled = disabled || showUpProOnly;\n const disabledClass = isDisabled ? 'disabled' : '';\n\n const onClick = () => {\n if (!onChange) {\n console.log(`The onChange handler it not set for this checkbox.`, props);\n return;\n }\n onChange(!checked, id);\n };\n\n return (\n <div className={['nui-checkbox', props.className, disabledClass].join(' ')} onClick={(e) => e.stopPropagation() }>\n <input id={id} name={name} type=\"checkbox\" defaultChecked={false} disabled={isDisabled || isBusy} />\n <label htmlFor={id} onClick={onClick}>\n <div className=\"nui-checkbox-check-container\">\n {isBusy\n ? <div className='nui-checkbox-busy-container'><Icon icon={checkboxBlankOutline} width=\"30px\" height=\"30px\" \n color={Theme.blue} /><NekoSpinner type=\"circle\" size=\"16px\" style={{ position: 'absolute', top: '7px', left: '7px' }} /></div>\n : <Icon icon={checked ? checkboxMarked : checkboxBlankOutline} width=\"30px\" height=\"30px\" \n color={isDisabled ? Theme.disabledForm : Theme.blue} />\n }\n </div>\n <div className=\"nui-checkbox-inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </div>\n );\n})`\n font-family: ${Theme.fontFamily};\n user-select: none;\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n }\n \n .description {\n display: block;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n }\n }\n`;\n\nconst NekoCheckbox = (props) => {\n return (<StyledNekoCheckbox {...props} />);\n};\n\nNekoCheckbox.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool,\n isBusy: PropTypes.bool,\n};\n\nNekoCheckbox.defaultProps = {\n id: undefined,\n name: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n isPro: false,\n requirePro: false,\n isBusy: false,\n};\n\nexport { NekoCheckbox };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\n/**\n * @param {string} name\n * @param {int} max=-1 Max number of checkboxes to be checked. Negative number means unlimited\n */\nconst StyledNekoCheckboxGroup = Styled(props => {\n const { name, max = -1, isPro = false } = props;\n\n // React.Children.toArray(props.children)\n\n // Modify child components (Checkboxes)\n const children = React.Children.map(props.children, child => {\n if (child.props.name) return child; // Do not modify if the child has its own name\n return React.cloneElement(child, {\n name: name, // Apply the group's name\n isPro\n });\n });\n\n return children;\n})`\n`;\n\nconst NekoCheckboxGroup = (props) => {\n return (<StyledNekoCheckboxGroup {...props} />);\n}\n\nNekoCheckboxGroup.propTypes = {\n name: PropTypes.string,\n mas: PropTypes.number,\n isPro: PropTypes.bool\n};\n\nNekoCheckboxGroup.defaultProps = {\n name: undefined,\n mas: -1,\n isPro: false\n}\n\nexport { NekoCheckboxGroup };\n","import React, { useState, useEffect, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoIcon } from '../misc/Icon';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoInput = Styled(props => {\n const { id, name, value = '', description, placeholder = '', onEnter = null,\n readOnly = false, type = 'text', step = 1, min = 1, max = 999, maxLength : defaultMaxLength = undefined,\n className, style, natural = false, inputStyle, onChange: onCustomChange, onBlur: onCustomBlur, onReset, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const isControlled = !!onCustomChange;\n const maxLength = defaultMaxLength ? defaultMaxLength : (type === 'number' ? 3 : undefined);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n }, [ value ]);\n\n const onChange = (e) => {\n if (isControlled) { \n onCustomChange(e.target.value, id);\n }\n else {\n setNewValue(e.target.value, id);\n }\n };\n\n const onKeyPress = (e) => {\n if (onEnter && event.key === 'Enter') {\n e.preventDefault();\n onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (onCustomBlur && value !== e.target.value) {\n onCustomBlur(e.target.value, id);\n }\n };\n\n const classNames = `neko-input ${natural ? ' natural' : ''}`;\n\n return (\n <div className={[className].join(' ')} style={style}>\n <div style={{ position: 'relative' }}>\n {type === 'number'\n ? <input className={[classNames].join(' ')} id={id} name={name} value={isControlled ? value : newValue} type={type} \n step={step} min={min} max={max} maxLength={maxLength}\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n : <input className={[classNames].join(' ')} {...rest} id={id} name={name} value={isControlled ? value : newValue} type={type} \n spellCheck=\"false\"\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle} maxLength={maxLength}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n }\n {!!value && !!onReset && <NekoIcon icon='close' width={24} style={{ position: 'absolute', top: '3px', right: '3px' }} color={Theme.blue} onClick={onReset} />}\n </div>\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-input {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoInput = (props) => {\n return (<StyledNekoInput {...props} />);\n};\n\nNekoInput.propTypes = {\n id: PropTypes.string,\n type: PropTypes.oneOf(['number', 'text']),\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n step: PropTypes.number,\n min: PropTypes.number,\n max: PropTypes.number,\n maxLength: PropTypes.number,\n natural: PropTypes.bool,\n onReset: PropTypes.func,\n};\n\nNekoInput.defaultProps = {\n id: undefined,\n type: 'text',\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n step: 1,\n min: 1,\n max: 999,\n maxLength: undefined,\n natural: false,\n onReset: undefined,\n};\n\nexport { NekoInput };\n","import React, { useState, useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoTextArea = Styled(props => {\n const { id, name, value = '', description, placeholder = '', avoidOnEnterWithShift = false, onEnter = null, readOnly = false, \n maxLength = null, className, style, textAreaStyle = {}, countable = false, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const [ count, setCount ] = useState(0);\n const [ pressShift, setPressShift ] = useState(false);\n const isControlled = !!props.onChange;\n\n const keydownFunction = useCallback((e) => {\n setPressShift(e.shiftKey);\n }, []);\n const keyupFunction = useCallback(() => {\n setPressShift(false);\n }, []);\n\n useEffect(() => {\n document.addEventListener(\"keydown\", keydownFunction, false);\n document.addEventListener(\"keyup\", keyupFunction, false);\n\n return () => {\n document.removeEventListener(\"keydown\", keydownFunction, false);\n document.removeEventListener(\"keyup\", keyupFunction, false);\n }\n }, []);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n if (countable) {\n setCount(value.length);\n }\n }, [ value, countable ]);\n\n const onChange = useCallback((e) => {\n const newValue = maxLength ? e.target.value.substr(0, maxLength): e.target.value;\n if (isControlled) { \n props.onChange(newValue, id);\n }\n else {\n setNewValue(newValue, id);\n }\n }, [maxLength, props.onChange]);\n\n const onKeyPress = (e) => {\n if (onEnter && !e.shiftKey && e.key === 'Enter') {\n if (avoidOnEnterWithShift && pressShift) return;\n\n e.preventDefault();\n props.onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (props.onBlur && value !== e.target.value) {\n props.onBlur(e.target.value, id);\n }\n };\n\n return (\n <div className={[className].join(' ')} style={style}>\n <div className=\"neko-textarea-container\">\n <textarea className=\"neko-textarea\" rows={6} {...rest} id={id} name={name} spellCheck=\"false\" placeholder={placeholder} \n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} style={textAreaStyle}\n value={isControlled ? value : newValue} />\n {countable && <p className=\"neko-textarea-count\">{count} / {maxLength} characters</p>}\n </div>\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n .neko-textarea-count {\n color: rgba(${Theme.blackRGB}, 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoTextArea = (props) => {\n return (<StyledNekoTextArea {...props} />);\n};\n\nNekoTextArea.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n avoidOnEnterWithShift: PropTypes.bool\n};\n\nNekoTextArea.defaultProps = {\n id: undefined,\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n avoidOnEnterWithShift: false\n};\n\nexport { NekoTextArea };\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { useOutsideClick } from '../hooks';\nimport { NekoSpinner } from '../misc/Spinner';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankCircleOutline from '@iconify/icons-mdi/checkbox-blank-circle-outline';\nimport recordCircle from '@iconify/icons-mdi/record-circle';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport { NekoIcon } from '../misc/Icon';\n\nconst Select = Styled.div`\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ${Theme.blue};\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n\n .nui-select-option {\n background: ${Theme.gray};\n padding-right: 10px;\n }\n }\n`;\n\nconst SelectedOption = Styled.div`\n align-items: center;\n background-color: ${Theme.white};\n border: 2px solid ${Theme.blue};\n border-radius: 8px;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n`;\n\nconst Description = Styled.div`\n display: block;\n margin-top: 5px;\n font-size: 13px;\n line-height: 14px;\n color: #8a8a8a;\n\n * {\n font-size: 13px;\n line-height: inherit;\n margin: 0;\n }\n`;\n\nconst Options = Styled.div`\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n`;\n\nconst OptionsContainer = Styled.div`\n background-color: ${Theme.white};\n overflow-y: auto;\n max-height: 300px;\n`;\n\n/**\n * @param {string} name\n */\nconst StyledNekoSelect = props => {\n const { id, name, value, scrolldown = false, isPro = false, onChange, className, disabled, isBusy = false,\n chevronIconSize = 24, ...rest } = props;\n\n const currentOption = React.Children.toArray(props.children)\n .find(child => child.props.value === value || child.props.checked)?.props;\n\n const label = currentOption?.label || 'Select';\n const description = currentOption?.description || props.description;\n const requirePro = currentOption?.requirePro || false;\n const icon = currentOption?.icon;\n const iconSize = currentOption?.iconSize;\n //const id = scrolldown ? props.id : currentOption?.id;\n\n const [ showOptions, toggleOptions ] = useState(false);\n const componentRef = scrolldown ? useOutsideClick(() => { toggleOptions(false) }) : null;\n const showUpProOnly = requirePro && !isPro;\n\n const onOptionClick = (newValue) => {\n if (newValue !== value) {\n if (!onChange) {\n console.log(`The onChange handler it not set for this checkbox.`, props);\n return;\n }\n onChange(newValue, id);\n }\n if (scrolldown) {\n toggleOptions(false);\n }\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n name: child.props.name || name,\n checked: child.props.value === value || child.props.checked,\n onClick: onOptionClick,\n scrolldown,\n isPro,\n disabled\n });\n });\n\n return scrolldown\n ? <Select id={id} ref={componentRef} {...rest}\n onClick={() => toggleOptions(!showOptions)}\n className={[ 'nui-select', className, showOptions ? 'show-options' : '']}\n childrenLength={children.length} data-is-disabled={disabled || isBusy}\n >\n <SelectedOption className={`nui-select-option ${isBusy ? 'isBusy' : ''}`}>\n {isBusy\n ? <>\n <NekoSpinner type=\"circle\" size=\"20px\" />\n </>\n : <>\n {icon && <NekoIcon icon={icon} width={iconSize} height={iconSize} style={{ marginRight: `${Math.max(iconSize - 15, 4)}px` }} />}\n <span className='nui-select-option-label'>{label}</span>\n <div className=\"rightContent\">\n {showUpProOnly && <ProOnly />}\n {!disabled && <Icon icon={showOptions ? chevronUp : chevronDown} width={chevronIconSize} />}\n </div>\n </>}\n </SelectedOption>\n {description && <Description>{description}</Description>}\n {showOptions &&\n <Options className={`nui-option ${showOptions ? '' : 'hidden'}`}>\n <OptionsContainer>{[children]}</OptionsContainer>\n </Options>\n }\n </Select>\n : children;\n};\n\nconst RadioOption = Styled.div`\n font-family: ${Theme.fontFamily};\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: 12px;\n }\n }\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n`;\n\nconst SelectOption = Styled.div`\n background-color: ${Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ${Theme.white};\n display: flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n * @param {function} onClick\n */\nconst StyledNekoOption = props => {\n const { id, name, value, checked, icon, label, description, onClick, scrolldown, isPro = false,\n requirePro = false, disabled, iconSize = 20 } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const disabledClass = showUpProOnly || disabled ? 'disabled' : '';\n\n const radioOption = (\n <RadioOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} onClick={(e) => onClick(e.target.value)} disabled={showUpProOnly || disabled} />\n <label htmlFor={id}>\n <Icon icon={checked ? recordCircle : checkboxBlankCircleOutline} width=\"24px\" color={showUpProOnly ? Theme.disabledForm : Theme.blue}/>\n <div className=\"inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" style={{ top: -1 }} show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </RadioOption>\n );\n\n const selectOption = (\n <SelectOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} disabled={showUpProOnly || disabled} />\n <div className=\"option\" onClick={() => onClick(value)}>\n <div className=\"option-group\">\n {icon && <NekoIcon icon={icon} width={iconSize} height={iconSize} style={{ marginRight: `${Math.max(iconSize - 11, 4)}px` }} />}\n {label}\n </div>\n <ProOnly show={showUpProOnly} />\n </div>\n </SelectOption>\n );\n\n return scrolldown ? selectOption : radioOption;\n};\n\n/**\n * The NekoSelect has 2 types, radio (default) or select.\n */\nconst NekoSelect = (props) => {\n return (<StyledNekoSelect {...props} />);\n}\n\nNekoSelect.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n description: PropTypes.string,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n onChange: PropTypes.func,\n isBusy: PropTypes.bool,\n chevronIconSize: PropTypes.number,\n};\n\nNekoSelect.propTypes = {\n id: undefined,\n name: undefined,\n description: undefined,\n scrolldown: false,\n isPro: false,\n onChange: undefined,\n isBusy: false,\n chevronIconSize: 24,\n};\n\nconst NekoOption = (props) => {\n return (<StyledNekoOption {...props} />);\n}\n\nNekoOption.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n onClick: PropTypes.func,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool,\n icon: PropTypes.string,\n iconSize: PropTypes.number,\n};\n\nNekoOption.defaultProps = {\n id: undefined,\n name: undefined,\n value: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n onClick: undefined,\n scrolldown: false,\n isPro: false,\n requirePro: false,\n icon: undefined,\n iconSize: 20,\n};\n\nexport { NekoSelect, NekoOption };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Form = Styled.div`\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoForm = (props) => {\n return (\n <Form>\n {props.children || null}\n </Form>\n );\n};\n\nconst NekoForm = (props) => {\n return (<StyledNekoForm {...props} />);\n};\n\nNekoForm.propTypes = {\n};\n\nNekoForm.defaultProps = {\n};\n\nexport { NekoForm };\n","import React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoSwitch = Styled(props => {\n const { width = '100%', height = '20px', fontSize = '12px', onValue, offValue, checked = false,\n onBackgroundColor, offBackgroundColor, onLabel, offLabel, onChange, disabled, ...rest } = props;\n\n const onToggle = useCallback((v) => {\n onChange(v.target.checked ? onValue : offValue);\n }, [onChange, onValue, offValue]);\n\n return (\n <label {...rest} data-is-disabled={disabled ? 'disabled' : ''}>\n <input type=\"checkbox\" onChange={onToggle} checked={checked} disabled={disabled} />\n <span className=\"nui-switch-slider\"></span>\n </label>\n );\n})`\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: ${props => props.fontSize};\n position: relative;\n display: inline-block;\n width: ${props => props.width};\n height: ${props => props.height};\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ${props => props.offBackgroundColor};\n border-radius: ${props => props.height};\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: \"\";\n height: ${props => `calc(${props.height} - 8px)`};\n width: ${props => `calc(${props.height} - 8px)`};\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: \"${props => props.offLabel}\";\n margin-left: auto;\n margin-right: ${props => `calc(${props.height} / 2)`};\n }\n\n input:checked + .nui-switch-slider {\n background-color: ${props => props.onBackgroundColor};\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(${props => `calc(${props.width} - ${props.height})` });\n }\n\n input:checked + .nui-switch-slider:after {\n content: \"${props => props.onLabel}\";\n margin-left: ${props => `calc(${props.height} / 2)`};\n margin-right: auto;\n }\n`;\n\nconst NekoSwitch = (props) => {\n return (<StyledNekoSwitch {...props} />);\n};\n\nNekoSwitch.propTypes = {\n width: PropTypes.string,\n height: PropTypes.string,\n fontSize : PropTypes.string,\n onValue: PropTypes.string,\n offValue: PropTypes.string,\n checked: PropTypes.bool,\n onBackgroundColor: PropTypes.string,\n offBackgroundColor: PropTypes.string,\n onLabel: PropTypes.string,\n offLabel: PropTypes.string\n};\n\nNekoSwitch.defaultProps = {\n width: '100%',\n height: '20px',\n fontSize: '12px',\n checked: false\n};\n\nexport { NekoSwitch };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\nimport { Icon, InlineIcon, IconifyIcon } from '@iconify/react';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport tagIcon from '@iconify/icons-mdi/tag';\n\nconst StyledNekoFinder = props => {\n\n const { chevron = true } = props;\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n return (\n children\n );\n};\n\nconst FinderTitleContainer = Styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ${Colors.fontFamily};\n`;\n\nconst FinderTitle = Styled.div`\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: 13px;\n margin: 0 0 0 8px;\n }\n`;\n\nconst ChevronSpace = Styled.div`\n height: 24px;\n width: 24px;\n`;\n\nconst FinderTitleIconDropZone = Styled.div`\n position: relative;\n width: 24px;\n height: 24px;\n`;\n\nconst FinderTitleIconDroppableArea = Styled.div`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n`;\n\nconst ItemContainer = Styled.div`\n border-left: 1px solid ${Colors.finderBorder};\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n`;\n\nconst StyledNekoFinderItem = props => {\n\n const defaultIcons = {\n gallery: imageMultipleOutline,\n tag: tagIcon\n }\n\n const { title, chevron, rightElement = null, rightElementStyle = { marginLeft: '5px' }, showRightElement = false, selected = false,\n draggable = false, onDragStart, onDragOver, onDragEnd, onDrop, isExpanded = false, dragging = false, rightAction = null,\n rightActionOnHover = null, onDragLeave, preventClose = false } = props;\n const isCustomizedIcon = !!props.icon;\n const hasChild = !!props.children;\n const [ expanded, setExpanded ] = useState(isExpanded);\n const [ icon, setIcon ] = useState(() => {\n if (typeof props.icon === 'string' && Object.keys(defaultIcons).includes(props.icon)) {\n return defaultIcons[props.icon];\n } else if (props.icon) {\n return props.icon;\n }\n return folderIcon\n });\n const isFolder = Boolean(icon);\n const [ showRightAction, setShowRightAction ] = useState(false);\n\n useEffect(() => {\n setExpanded(isExpanded);\n if (!isCustomizedIcon) {\n setIcon(isExpanded ? folderIcon : folderOpen);\n }\n }, [isExpanded]);\n\n const onClick = () => {\n if (props.onClick) {\n props.onClick();\n }\n }\n\n const onChevronClick = (e) => {\n e.stopPropagation();\n setExpanded(!expanded);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n const iconColor = dragging || selected ? Colors.purple : (selected ? Colors.black : Colors.blue);\n\n return (\n <div>\n <FinderTitleContainer onMouseEnter={() => setShowRightAction(true)} onMouseLeave={() => setShowRightAction(false)}>\n <FinderTitle onClick={onClick} onMouseEnter={props.onMouseEnter} onMouseLeave={props.onMouseLeave} draggable={draggable} onDragStart={onDragStart} onDragOver={onDragOver} onDrop={onDrop} className={`${isFolder || children || props.onClick ? 'can-expand' : ''} ${selected ? 'selected' : ''}`} onDragLeave={onDragLeave} onDragEnd={onDragEnd}>\n {chevron\n ? (isFolder && hasChild)\n ? <Icon icon={expanded ? chevronDown : chevronRight} width=\"24\" height=\"24\" onClick={onChevronClick} />\n : <ChevronSpace></ChevronSpace>\n : null\n }\n <FinderTitleIconDropZone>\n <FinderTitleIconDroppableArea />\n <Icon icon={icon} color={iconColor} width=\"24\" height=\"24\" />\n </FinderTitleIconDropZone>\n <span>{title}</span>\n {showRightElement &&\n <div style={rightElementStyle}>{rightElement}</div>\n }\n </FinderTitle>\n {showRightAction ? (rightActionOnHover || rightAction) : rightAction}\n </FinderTitleContainer>\n {expanded && <ItemContainer className={`${isFolder ? '' : 'no-line'} ${chevron ? '' : 'no-chevron'}`}>{children}</ItemContainer>}\n </div>\n )\n}\n\nconst NekoFinder = (props) => {\n return (<StyledNekoFinder {...props} />);\n}\n\nNekoFinder.propTypes = {\n chevron: PropTypes.bool\n};\n\nNekoFinder.defaultProps = {\n chevron: true\n};\n\nconst NekoFinderItem = (props) => {\n return (<StyledNekoFinderItem {...props} />);\n}\n\nNekoFinderItem.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['gallery'])]),\n title: PropTypes.string,\n isExpanded: PropTypes.bool\n};\n\nNekoFinderItem.defaultProps = {\n icon: folderIcon,\n title: undefined,\n isExpanded: false\n};\n\nexport { NekoFinder, NekoFinderItem };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Logo = Styled.div`\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n`;\n\nconst StyledNekoLogo = () => {\n return (\n <Logo>\n <svg width=\"54\" height=\"38\" viewBox=\"0 0 54 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z\" fill=\"#724024\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" fill=\"#B7782E\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" fill=\"#B7782E\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" fill=\"#B7782E\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" stroke=\"black\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" stroke=\"black\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" stroke=\"black\"/>\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z\" fill=\"white\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n </svg>\n </Logo>\n );\n}\n\nconst NekoLogo = (props) => {\n return (<StyledNekoLogo {...props} />);\n}\n\nNekoLogo.propTypes = {\n};\n\nNekoLogo.defaultProps = {\n};\n\nexport { NekoLogo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport playIcon from '@iconify/icons-mdi/play';\n\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {number} value Current progress\n * @param {number} max Max progress\n */\nconst StyledNekoProgress = Styled(props => {\n let { value = 0, max = 100, busy = false, status } = props;\n value = Math.min(value, max);\n let ratio = parseFloat(value) / parseFloat(max);\n\n return (\n <div className={props.className}>\n <ProgressCurrent ratio={ratio} busy={props.busy} status={status} />\n <div className=\"nui-progress-buttons\">\n {busy && props.onPauseClick && \n <div className='nui-progress-button pause' onClick={props.onPauseClick}>\n {props.paused ? <InlineIcon icon={playIcon} /> : <InlineIcon icon={pauseIcon} />}\n </div>\n }\n {busy && props.onStopClick && \n <div className='nui-progress-button stop' onClick={props.onStopClick}>\n <InlineIcon icon={stopIcon} />\n </div>\n }\n </div>\n </div>\n );\n})`\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n &.stop {\n background: ${Theme.red};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.red)};\n }\n }\n }\n }\n`;\n\n/**\n * @param {float} ratio Progress ratio (0.0 to 1.0)\n */\nconst ProgressCurrent = Styled(props => {\n const percent = !isNaN(props.ratio) ? parseInt(Math.round(props.ratio * 100)) : 0;\n const typeOfStatus = typeof props.status;\n let status = typeOfStatus !== 'undefined'\n ? (typeOfStatus === 'string') ? props.status : props.status(percent)\n : `${percent}%`;\n\n return (\n <div className={props.className} style={{ minWidth: 28, minWidth: percent + '%' }}>\n <div>{status}</div>\n </div>\n );\n})`\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ${Theme.progress};\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ${props => props.busy ? 'animate-stripes 1.6s linear infinite' : 'none'};\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n`;\n\nconst NekoProgress = (props) => {\n return (<StyledNekoProgress {...props} />);\n}\n\nNekoProgress.propTypes = {\n value: PropTypes.number,\n max: PropTypes.number,\n busy: PropTypes.bool,\n paused: PropTypes.bool,\n onPauseClick: PropTypes.func,\n onStopClick: PropTypes.func,\n status: PropTypes.oneOf([PropTypes.string, PropTypes.func])\n};\n\nNekoProgress.defaultProps = {\n value: 0,\n max: 100,\n busy: false,\n paused: false,\n onPauseClick: undefined,\n onStopClick: undefined,\n status: undefined\n};\n\nexport { NekoProgress };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoLogo } from './Logo';\nimport { NekoIcon } from './Icon';\nimport Theme from '../common/NekoTheme';\nimport contentSave from '@iconify/icons-mdi/content-save';\n\nconst HeaderBase = Styled.div`\n position: relative;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ${Theme.header};\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(${Theme.blackRGB}, 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ${Theme.fontFamily};\n line-height: normal;\n font-size: ${Theme.fontSizeText};\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n`;\n\nconst StyledNekoHeader = props => {\n\n const { title = 'NekoUI', subtitle = 'By Jordy Meow', children, saving = false } = props;\n\n return (\n <HeaderBase>\n <div className='nui-header-logo-container'>\n <NekoLogo />\n </div>\n <div className=\"nui-header-title-container\">\n <h1 className=\"nui-header-title\">{title}</h1>\n <small className=\"nui-header-subtitle\"><a target='_blank' href='https://meowapps.com' \n style={{ color: 'white', textDecoration: 'none' }}>{subtitle}</a></small>\n </div>\n <div className=\"nui-header-extra-content\">{children}</div>\n {saving && <NekoIcon icon={contentSave} width=\"36\" height=\"36\" />}\n </HeaderBase>\n );\n};\n\nconst NekoHeader = (props) => {\n return (<StyledNekoHeader {...props} />);\n}\n\nNekoHeader.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n saving: PropTypes.bool\n};\n\nNekoHeader.defaultProps = {\n title: 'NekoUI',\n subtitle: 'By Jordy Meow',\n saving: false\n};\n\nexport { NekoHeader };\n","import React, { useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport Theme from '../common/NekoTheme';\n\nconst PagingContainer = Styled.div`\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n margin-right: 15px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(${Theme.blueRGB}, 0.8);\n border-radius: 15px;\n display: flex;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ${Theme.white};\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ${Theme.darkGray};\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n`;\n\n/**\n * @param {number} currentPage Current page\n * @param {number} limit Items per page\n */\nconst StyledNekoPaging = props => {\n const { currentPage, limit = 0, onClick, total = 0, onCurrentPageChanged, full, infinite = false, controllerText } = props;\n const isEditable = !!onCurrentPageChanged;\n const maxPage = useMemo(() => {\n if (infinite) return 0;\n return Math.ceil(total === 0 ? 1 : (limit > 0 ? (total / limit) : 1));\n }, [infinite, limit, total]);\n const prevIconClassName = `nako-paging-controller-icon ${!infinite && currentPage === 1 ? 'disabled' : ''}`;\n const nextIconClassName = `nako-paging-controller-icon ${!infinite && currentPage === maxPage ? 'disabled' : ''}`;\n const [ showCurrentPageInput, setShowCurrentPageInput ] = useState(false);\n\n const onClickHandle = (page) => {\n setShowCurrentPageInput(false);\n onClick(page);\n };\n\n const getValidPage = (page) => {\n if (infinite) return page;\n const numberPage = Number(page);\n return numberPage > maxPage ? maxPage : (numberPage < 1 ? 1 : numberPage);\n }\n\n const onBlur = (e) => {\n const page = e.target.value;\n\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n\n const onKeyPress = (e) => {\n if (event.key === 'Enter') {\n e.preventDefault();\n const page = e.target.value;\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n };\n\n const currentPageJsx = useMemo(() => {\n if (!showCurrentPageInput) {\n const onClick = () => {\n if (!isEditable) {\n return;\n }\n setShowCurrentPageInput(true);\n }\n return <span className={isEditable ? 'neko-paging-current-page' : ''} onClick={onClick}>{currentPage}</span>;\n }\n return <input autoFocus type=\"text\" className={isEditable ? 'neko-paging-current-page' : ''} \n defaultValue={currentPage} onBlur={onBlur} onKeyPress={onKeyPress} />;\n }, [currentPage, showCurrentPageInput, onCurrentPageChanged]);\n\n const onControllerClick = (e) => {\n if (!showCurrentPageInput || e.target !== e.currentTarget) return;\n\n setShowCurrentPageInput(false);\n }\n\n return (\n <PagingContainer>\n\n {!!total && <span className=\"neko-paging-text\">{total} result{total > 0 ? 's' : ''}</span>}\n\n <div className=\"neko-paging-controller\" onClick={onControllerClick}>\n {!infinite && <Icon icon={chevronDoubleLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(1)}\n />}\n <Icon icon={chevronLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(currentPage - 1)}\n />\n <p className=\"nako-paging-controller-text\" onClick={onControllerClick}>\n {!!controllerText\n ? controllerText\n : <>Page {currentPageJsx} of {maxPage}</>\n }\n </p>\n <Icon icon={chevronRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(currentPage + 1)}\n />\n {!infinite && <Icon icon={chevronDoubleRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(maxPage)}\n />}\n </div>\n\n </PagingContainer>\n );\n};\n\nconst NekoPaging = (props) => {\n return (<StyledNekoPaging {...props} />);\n};\n\nNekoPaging.propTypes = {\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onClick: PropTypes.func,\n lastPage: PropTypes.number,\n infinite: PropTypes.bool,\n controllerText: PropTypes.object\n};\n\nNekoPaging.defaultProps = {\n currentPage: undefined,\n limit: 0,\n total: 0,\n onClick: undefined,\n lastPage: undefined,\n infinite: false,\n controllerText: undefined\n};\n\nexport { NekoPaging };\n","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoIcon } from '../misc/Icon';\n\nconst LinkContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Link = Styled.span`\n color: ${props => props.variant || Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ${Theme.black};\n font-weight: bold;\n }\n\n &::after {\n content: \"|\";\n color: ${Theme.darkGray};\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ${Theme.darkGray};\n font-weight: normal;\n margin-left: 4px;\n }\n`;\n\nconst StyledNekoQuickLinks = props => {\n const { id, value, onChange, busy = false, className } = props;\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n busy: busy,\n isActive: child.props.value === value,\n onClick: (newValue) => {\n if (newValue !== value) {\n onChange(newValue, id);\n }\n }\n });\n });\n\n return (\n <LinkContainer className={className}>{children}</LinkContainer>\n );\n};\n\nconst StyledNekoLink = props => {\n\n const { title, value = 0, count, onClick, busy, isActive, className, variant } = props;\n\n const variantValue = useMemo(() => {\n if (!variant) return undefined\n return Object.keys(Theme).includes(variant) ? Theme[variant] : variant\n }, [variant])\n\n return (\n <Link onClick={() => onClick(value)} className={`${isActive ? 'is-active' : ''} ${className}`} variant={variantValue}>\n {title}\n {count === null ? null :\n <span>(\n {busy ? \n <NekoIcon icon=\"replay\" spinning={true} width={12} containerStyle={{ display: 'inline' }} /> : \n count\n })\n </span>\n }\n </Link>\n );\n};\n\nconst NekoQuickLinks = (props) => {\n return (<StyledNekoQuickLinks {...props} />);\n};\n\nNekoQuickLinks.propTypes = {\n id: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func\n};\n\nNekoQuickLinks.defaultProps = {\n id: undefined,\n value: undefined,\n onChange: undefined\n};\n\nconst NekoLink = (props) => {\n return (<StyledNekoLink {...props} />);\n};\n\nNekoLink.propTypes = {\n title: PropTypes.string,\n value: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func,\n isActive: PropTypes.bool,\n variant: PropTypes.string,\n};\n\nNekoLink.defaultProps = {\n title: undefined,\n value: 'default',\n count: 0,\n onClick: undefined,\n isActive: false,\n variant: undefined,\n};\n\nexport { NekoQuickLinks, NekoLink };\n","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst StyledSection = Styled.section`\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: \"\";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ${props => props.backgroundColor};\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ${props => props.width}px;\n height: ${props => props.width}px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2 + 2}px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n \n .semi-circle--mask {\n transform: rotate(${props => props.degrees}deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2}px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n`;\n\nconst NekoGauge = ({ value = 1000, min = 0, max = 2500, width = 200, background = '#007cba', children }) => {\n const degrees = 180 * (value <= max ? value : max) / max;\n return (\n <StyledSection backgroundColor={background} degrees={degrees} width={width}>\n <div class=\"gauge\">\n <div class=\"mask\">\n <div class=\"semi-circle\"></div>\n <div class=\"semi-circle--mask\"></div>\n </div>\n <div class=\"child-container\">\n <div class=\"child\">\n <div class=\"spacing\" />\n {children}\n </div>\n </div>\n </div>\n </StyledSection>\n )\n};\n\nNekoGauge.propTypes = {\n value : PropTypes.number,\n min : PropTypes.number,\n max : PropTypes.number,\n width : PropTypes.number,\n background : PropTypes.string,\n};\n\nNekoGauge.defaultProps = {\n value : 1000,\n min : 0,\n max : 2500,\n width : 200,\n background : '#007cba',\n};\n\nexport { NekoGauge };\n","import Styled from 'styled-components';\n\nconst NekoMessageDanger = Styled.p`\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nconst NekoMessageSuccess = Styled.p`\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nexport { NekoMessageDanger, NekoMessageSuccess };","import React, { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoIcon, postFetch } from '../../index';\n\nconst StyledUpload = Styled.div`\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n`;\n\nconst NekoUpload = (props) => {\n\n const { multiple, width = '100%', height = '100%', iconSize = 48, iconColor = '#A9A9A9', onSuccess = () => {}, \n onFailure = () => {}, style = {}, apiUrl, apiConfig, onClick, disabled, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ inputId, setInputId ] = useState(Math.floor(Math.random() * 100000000));\n const inputEl = useRef(null);\n const divEl = useRef(null);\n const [ busy, setBusy ] = useState(false);\n\n useEffect(() => {\n if (!divEl) return;\n\n divEl.current.style.pointerEvents = busy ? 'none' : 'auto';\n }, [divEl, busy])\n\n const uploadFile = async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }\n\n const onDragOver = (e) => {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const onDragEnter = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(true);\n }\n\n const onDragLeave = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n }\n\n const onDrop = (e) => {\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }\n\n const onUploaderClick = () => {\n if (onClick) {\n onClick();\n return;\n }\n inputEl.current.click();\n }\n\n const onInputUpload = (e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }\n\n const uploadFiles = (files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n console.log(files);\n uploadFile(files);\n }\n\n return (\n <div ref={divEl}>\n <input type=\"file\" id={inputId} accept=\"image/*\" ref={inputEl} onChange={onInputUpload} style={{ display: 'none' }} disabled={disabled} multiple={multiple} />\n <StyledUpload onClick={onUploaderClick} style={{ ...style, width, height }} className={inDropZone ? 'dropping' : ''} \n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} data-is-disabled={disabled} {...rest}>\n <NekoIcon width={iconSize} height={iconSize} icon='upload' spinning={busy} color={iconColor}\n onDragOver={onDragOver} onDragEnter={onDragEnter} />\n </StyledUpload>\n </div>\n );\n}\n\nNekoUpload.propTypes = {\n width : PropTypes.string,\n height : PropTypes.string,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n style : PropTypes.object,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object\n};\n\nNekoUpload.defaultProps = {\n width : '100%',\n height : '100%',\n onSuccess : () => {},\n onFailure : () => {},\n style : {}\n};\n\nexport { NekoUpload };\n","import React, { useState, forwardRef, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoBusyOverlay, postFetch } from '../../index';\n\nconst StyledUploadDropArea = Styled.div`\n &.dropping {\n background: #a4d5ff;\n }\n`;\n\nconst NekoUploadDropArea = forwardRef((props, ref) => {\n\n const { onSuccess = () => {}, onFailure = () => {}, apiUrl, apiConfig, className, disabled = false, children, multiple, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ busy, setBusy ] = useState(false);\n\n const uploadFile = useCallback(async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }, [apiConfig, onSuccess, onFailure]);\n\n const uploadFiles = useCallback((files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n // console.log(files);\n uploadFile(files);\n }, [uploadFile]);\n\n const onDragOver = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const onDragEnter = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(true);\n }, [disabled]);\n\n const onDragLeave = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(false);\n }, [disabled]);\n\n const onDrop = useCallback((e) => {\n if (disabled) return;\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }, [disabled, uploadFiles]);\n\n const onInputUpload = useCallback((e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }, [uploadFiles]);\n\n return (\n <NekoBusyOverlay busy={busy}>\n <input type=\"file\" accept=\"image/*\" ref={ref} onChange={onInputUpload} style={{ display: 'none' }} multiple={multiple} />\n <StyledUploadDropArea className={`${className ? className : ''} ${inDropZone ? 'dropping' : ''}`}\n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} {...rest}>\n {children}\n </StyledUploadDropArea>\n </NekoBusyOverlay>\n );\n});\n\nNekoUploadDropArea.propTypes = {\n ref: PropTypes.ref,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object,\n disabled: PropTypes.bool\n};\n\nNekoUploadDropArea.defaultProps = {\n onSuccess : () => {},\n onFailure : () => {},\n disabled : false\n};\n\nexport { NekoUploadDropArea };\n","import { useState, useEffect, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport NekoTheme from '../common/NekoTheme';\n//import { Icon, InlineIcon, IconifyIcon } from '@iconify/react';\n//import folderIcon from '@iconify/icons-mdi/folder';\n\nconst Days = {\n Monday: 1,\n Tuesday: 2,\n Wednesday: 3,\n Thursday: 4,\n Friday: 5,\n Saturday: 6,\n Sunday: 7\n}\n\nconst StyledNekoCalendar = Styled.div`\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ${NekoTheme.fontFamily};\n font-size: 12px;\n`;\n\nconst CalendarHeaders = Styled.div`\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ${NekoTheme.primary};\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n`;\n\nconst CalendarContent = Styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nconst WeekContainer = Styled.div`\n display: flex;\n`;\n\nconst DayContainer = Styled.div`\n background: purple;\n width: calc(100% / 7);\n background: ${NekoTheme.white};;\n padding: 3px;\n border-bottom: 1px solid ${NekoTheme.lightGray};\n border-right: 1px solid ${NekoTheme.lightGray};\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ${NekoTheme.lightGray};\n }\n\n &:last-child {\n border-right: 1px solid ${NekoTheme.lightGray};\n }\n\n .day {\n text-align: right;\n color: ${NekoTheme.black};\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ${NekoTheme.lightGray};\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n`;\n\nfunction getFirstWeekDayForMonth(month, year, weekDay = Days.Monday) {\n const date = new Date(year, month);\n while (date.getDay() !== weekDay) {\n date.setDate(date.getDate() - 1);\n }\n return date;\n}\n\nfunction numberOfDaysBetween(startDate, endDate) {\n const start = new Date(startDate);\n const end = new Date(endDate);\n let count = 0;\n while (start <= end) {\n count++;\n start.setDate(start.getDate() + 1);\n }\n return count - 1;\n}\n\nfunction splitArrayInChunks(array, chunkSize) {\n const chunks = [];\n let i = 0;\n while (i < array.length) {\n chunks.push(array.slice(i, i += chunkSize));\n }\n return chunks;\n}\n\nconst NekoCalendar = (props) => {\n const { month = new Date().getMonth(), year = new Date().getFullYear(),\n onEventClicked = () => { console.log(\"[NekoCalendar] onEventClicked not handled.\"); },\n onEventMoved = () => { console.log(\"[NekoCalendar] onEventMoved not handled.\"); },\n eventBuilder = () => \"YOOO\", events, ...rest } = props;\n const [draggedEvent, setDraggedEvent] = useState();\n const [highlightedDay, setHighlightedDay] = useState();\n\n let { disableDaysBefore = null } = props;\n disableDaysBefore = disableDaysBefore ? disableDaysBefore :\n new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());\n\n const weeks = useMemo(() => {\n const days = [];\n const currentDate = getFirstWeekDayForMonth(month, year, Days.Monday);\n const totalCalendarDays = numberOfDaysBetween(currentDate, new Date(year, month, 1)) < 5 ? 34 : 41;\n const lastDate = new Date(currentDate).setDate(currentDate.getDate() + totalCalendarDays)\n while (currentDate <= lastDate) {\n days.push(new Date(currentDate));\n currentDate.setDate(currentDate.getDate() + 1);\n }\n return splitArrayInChunks(days, 7);\n }, [month, year]);\n\n const isDayToday = (date) => {\n const today = new Date();\n return date.getFullYear() === today.getFullYear() &&\n date.getMonth() === today.getMonth() &&\n date.getDate() === today.getDate();\n }\n\n const isSameDay = (date1, date2) => {\n return date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate();\n }\n\n return (\n <StyledNekoCalendar {...rest}>\n\n <CalendarHeaders>\n {Object.keys(Days).map(day => (\n <div key={day}>{day}</div>\n ))}\n </CalendarHeaders>\n\n <CalendarContent>\n {weeks.map(week => \n <WeekContainer key={week}>\n {week.map(day => {\n const isCurrentMonth = day.getMonth() == month;\n const isDisabled = !isCurrentMonth || day < disableDaysBefore;\n const className = (isDisabled ? 'disabled ' : '') + (isDayToday(day) ? 'today' : '')\n + (day === highlightedDay ? 'highlighted' : '');\n const filterEvents = events.filter(event => isCurrentMonth && event.date.getDate() === day.getDate());\n return (\n <DayContainer className={className} key={day.getTime()}\n onDragOver={(e) => { \n if ( isDisabled || isSameDay(day, draggedEvent.date) ) { \n return false;\n };\n e.preventDefault();\n setHighlightedDay(day);\n return true;\n }}\n onDragLeave={() => setHighlightedDay(null)}\n onDrop={() => { onEventMoved(day, draggedEvent); setHighlightedDay(null) }}>\n <div className=\"day\">{day.getDate()}</div>\n {filterEvents.map(event => \n <div className=\"event\" key={event.key} draggable={event.draggable} \n onClick={() => onEventClicked(event)}\n onDragStart={(e) => setDraggedEvent(event)}>\n {eventBuilder({ ...event })}\n </div>)\n }\n {isDisabled && <div className=\"gray-overlay\" />}\n </DayContainer>\n );\n })}\n </WeekContainer>\n )}\n </CalendarContent>\n\n </StyledNekoCalendar>\n );\n}\n\nNekoCalendar.propTypes = {\n month: PropTypes.number,\n year: PropTypes.number,\n disableDaysBefore: PropTypes.instanceOf(Date),\n disableDaysAfter: PropTypes.instanceOf(Date),\n eventBuilder: PropTypes.func,\n events: PropTypes.array,\n onEventClicked: PropTypes.func,\n onEventMoved: PropTypes.func,\n};\n\nNekoCalendar.defaultProps = {\n month: (new Date).getMonth(),\n year: (new Date).getFullYear(),\n disableDaysBefore: null,\n disableDaysAfter: null,\n eventBuilder: () => \"UI for this event\",\n events: [{ key: 'A1', date: new Date() }, { key: 'A2', date: new Date() }],\n onEventClicked: (event) => { console.log(\"An event was clicked\", event); },\n onEventMoved: (day, event) => { console.log(\"An event was moved to another day\", event, day); },\n};\n\nexport { NekoCalendar };","import React, { useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoButton } from '../button/Button';\n\nconst NekoModalParent = Styled.div`\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: ${Theme.overlay} !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ${Theme.white};\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n`;\n\nconst NekoModalContent = Styled.div`\n width: ${props => props.width ?? '518px'};\n\n p {\n margin: 0;\n }\n .title {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n }\n`;\n\nconst StyledNekoModal = (props) => {\n\n const {\n id = 'neko-modal-parent',\n isOpen,\n children,\n className,\n style,\n ok = 'OK',\n cancel = 'Cancel',\n customButtons = null,\n customButtonsPosition = 'right',\n title = '',\n content = '',\n contentWidth,\n onOkClick,\n onCancelClick,\n okOnEnter = false,\n thumbnail,\n ...rest\n } = props;\n const customClassName = style ? 'custom-modal' : '';\n const showCustomButtons = customButtons !== null;\n\n const keyUpHandler = useCallback(({ key }) => {\n if (key === 'Enter') {\n onOkClick();\n }\n }, [onOkClick]);\n\n useEffect(() => {\n if (!okOnEnter || !isOpen) return;\n\n window.addEventListener(\"keyup\", keyUpHandler);\n return () => {\n window.removeEventListener(\"keyup\", keyUpHandler);\n };\n }, [isOpen, keyUpHandler]);\n\n const modalContent = children\n ? children\n : <NekoModalContent width={contentWidth}>\n {title && <p className=\"title\">{title}</p>}\n <div className=\"content-container\">\n {thumbnail && <div className=\"thumbnail\">{thumbnail}</div>}\n {content && <p className=\"content\">{content}</p>}\n </div>\n <div className=\"button-group\">\n {showCustomButtons && customButtonsPosition === 'left' && customButtons}\n {onCancelClick && <NekoButton className=\"danger\" onClick={onCancelClick}>{cancel}</NekoButton>}\n {onOkClick && <NekoButton onClick={onOkClick}>{ok}</NekoButton>}\n {showCustomButtons && customButtonsPosition === 'right' && customButtons}\n </div>\n </NekoModalContent>;\n\n return (\n <React.Fragment>\n <NekoModalParent id={id} />\n <Modal ariaHideApp={false}\n parentSelector={() => document.getElementById(id)}\n closeTimeoutMS={200}\n className={`neko-modal ${className || ''} ${customClassName}`}\n isOpen={isOpen}\n {...rest}\n >\n {modalContent}\n </Modal>\n </React.Fragment>\n );\n};\n\nconst NekoModal = (props) => {\n return (<StyledNekoModal {...props} />);\n};\n\nNekoModal.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n ok: PropTypes.string,\n cancel: PropTypes.string,\n title: PropTypes.string,\n content: PropTypes.string,\n contentWidth: PropTypes.string,\n onOkClick: PropTypes.func,\n onCancelClick: PropTypes.func,\n customButtons: PropTypes.object,\n okOnEnter: PropTypes.bool,\n thumbnail: PropTypes.element\n};\n\nNekoModal.defaultProps = {\n className: undefined,\n style: undefined,\n ok: 'OK',\n cancel: 'Cancel',\n title: '',\n content: '',\n contentWidth: undefined,\n onOkClick: undefined,\n onCancelClick: undefined,\n customButtons: null,\n okOnEnter: false,\n thumbnail: undefined\n};\n\nexport { NekoModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\nimport checkboxMultipleMarked from '@iconify/icons-mdi/checkbox-multiple-marked';\n\nimport Theme from '../common/NekoTheme';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Table = Styled.table`\n font-family: ${Theme.fontFamily};\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(${Theme.blackRGB}, 0.1);\n border-right: 1px solid rgba(${Theme.blackRGB}, 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ${Theme.blue};\n color: ${Theme.white};\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ${Theme.white};\n color: ${Theme.black};\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ${Theme.white};\n \n tr {\n :nth-child(even) {\n background-color: ${Theme.tableGray};\n }\n &.selected {\n background-color: rgba(${Theme.blueRGB}, 0.8);\n color: ${Theme.white};\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ${Theme.white};\n }\n &.selected {\n background-color: ${Theme.white};\n color: ${Theme.black};\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n`;\n\nconst TableCheckBox = (props) => {\n const { checked, intermediate = false, onSelect = () => {}, onUnselect = () => {}, ...rest } = props;\n\n const onClick = (e) => { \n checked ? onUnselect(e) : onSelect(e);\n };\n\n return (\n <Icon icon={intermediate ? checkboxMultipleMarked : (checked ? checkboxMarked : checkboxBlankOutline)}\n width=\"24px\" height=\"24px\" onClick={onClick} />\n );\n};\n\nconst alignToJustifyContent = {\n left: 'start',\n center: 'center',\n right: 'end',\n};\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledNekoTable = (props) => {\n const { columns, data, busy = false, onSelect, onUnselect, selectedItems, sort, onSortChange, variant = 'default', sortIconColor = undefined, emptyMessage = \"Empty.\" } = props;\n const columnsCount = columns.length + (onSelect ? 1 : 0);\n\n const getColumnStyle = (column) => {\n let style = {};\n if (column.align) {\n style = { textAlign: column.align, justifyContent: alignToJustifyContent[column.align] };\n }\n if (column.width) {\n style = { ...style, width: column.width };\n }\n if (column.style) {\n style = { ...style, ...column.style };\n }\n return style;\n }\n\n const rows = data.map(v => {\n const cells = columns.map(c => {\n return { value: v[c.accessor], style: getColumnStyle(c) }\n });\n return { id: v.id, cells };\n });\n\n const currentRowsIds = rows.map(x => x.id);\n const currentSelectedRows = currentRowsIds.filter(x => selectedItems.includes(x));\n const areAllRowsSelected = currentSelectedRows.length === currentRowsIds.length;\n const isIntermediate = !areAllRowsSelected && selectedItems.length > 0;\n\n const hiddenColumnIndexes = columns.reduce(function(a, e, i) {\n if (e.visible === false)\n a.push(i);\n return a;\n }, []);\n\n const headersFooters = <tr>\n {onSelect && \n <th className='table-checkbox-cell'>\n <TableCheckBox checked={areAllRowsSelected} intermediate={isIntermediate}\n onSelect={(e) => onSelect(currentRowsIds, e) } \n onUnselect={(e) => { \n // The unselect on selectedItems never happens, but I keep it here in case\n // we find an elegant UI solution to unselect all the invisible selected rows as well.\n isIntermediate ? onUnselect(selectedItems, e) : onUnselect(currentRowsIds, e);\n }}\n />\n </th>\n }\n {columns.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(column => {\n let beingSorted = sort && sort.accessor === column.accessor;\n let beingSortedAsc = sort && sort.by === 'asc';\n let color = beingSorted ? Theme.white : `rgba(${Theme.blackRGB}, 0.1)`;\n if (sortIconColor) {\n color = beingSorted ? sortIconColor : Theme.gray;\n }\n const columnStyle = getColumnStyle(column);\n return (<th style={columnStyle} key={column.accessor}>\n <div className={column.sortable ? 'sortable' : ''} style={columnStyle}\n onClick={column.sortable ? (e) => { \n onSortChange(column.accessor, beingSorted && beingSortedAsc ? 'desc' : 'asc', e)\n } : undefined}>\n <div>{column.title}</div>\n <div style={{ flex: 'auto' }} />\n <div>{column.sortable && \n <Icon icon={!beingSorted ? chevronDown : (beingSortedAsc ? chevronDown : chevronUp)} \n color={color} width=\"26px\" height=\"26px\" />}\n </div>\n </div>\n </th>)\n })}\n </tr>;\n\n return (\n <NekoBusyOverlay busy={busy} overlayStyle={{ top: '36px', height: 'calc(100% - 76px)' }}>\n <Table className={`nekotable-${variant}`}>\n <thead>{headersFooters}</thead>\n <tbody>\n {!rows.length && \n <tr><td colspan={columnsCount} style={{ textAlign: 'center', height: 40, color: 'gray' }}>\n {emptyMessage}\n </td></tr>\n }\n {rows.map(row => {\n return (\n <tr className={selectedItems.includes(row.id) ? 'selected' : ''}>\n {onSelect && \n <td className='table-checkbox-cell'>\n <TableCheckBox \n checked={selectedItems.includes(row.id)}\n onSelect={(e) => onSelect([ row.id ], e)}\n onUnselect={(e) => onUnselect([ row.id ], e)} \n />\n </td>\n }\n {row.cells.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(cell => {\n return <td style={cell.style}>{cell.value}</td>;\n })}\n </tr>\n );\n })}\n </tbody>\n {variant === 'default' && <tfoot>{headersFooters}</tfoot>}\n </Table>\n </NekoBusyOverlay>\n );\n};\n\nconst NekoTable = (props) => {\n return (<StyledNekoTable {...props} />);\n};\n\nNekoTable.propTypes = {\n columns: PropTypes.arrayOf(PropTypes.any),\n data: PropTypes.arrayOf(PropTypes.any),\n busy: PropTypes.arrayOf(PropTypes.bool),\n onSelect: PropTypes.func,\n onUnselect: PropTypes.func,\n selectedItems: PropTypes.arrayOf(PropTypes.object),\n onSortChange: PropTypes.func,\n variant: PropTypes.string,\n sortIconColor: PropTypes.string,\n};\n\nNekoTable.defaultProps = {\n columns: undefined,\n data: undefined,\n busy: false,\n onSelect: undefined,\n onUnselect: undefined,\n selectedItems: undefined,\n onSortChange: undefined,\n variant: 'default',\n sortIconColor: undefined,\n};\n\nexport { NekoTable };\n","import React, { useMemo, useState, useRef, useCallback } from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\nimport Theme from '../common/NekoTheme';\nimport { NekoModal } from \"./Modal\";\nimport { NekoTypo } from \"./../misc/Typography\";\nimport { NekoInput } from \"./../form/Input\";\nimport { NekoButton } from \"../button/Button\";\nimport { NekoPaging } from \"../misc/Paging\";\nimport NekoBusyOverlay from \"../common/NekoBusyOverlay\";\nimport { NekoIcon } from \"../misc/Icon\";\nimport { NekoUploadDropArea } from \"../misc/UploadDropArea\";\nimport { NekoTable } from \"../table/Table\";\n\nconst StyledNekoModal = Styled(NekoModal)`\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ${Theme.white};\n border: 1px solid ${Theme.black};\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ${Theme.blue};\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ${Theme.blue};\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n`;\n\nconst selectedImageBaseWidth = 55;\nconst nextItemRange = 25;\nconst selectedImageIdPrefix = 'nmlm-selected-';\nconst dragOverClassName = 'drag-over';\nconst removeClass = (className) => {\n Array.prototype.forEach.call(document.getElementsByClassName(className), (ele) => {\n ele.classList.remove(className);\n });\n}\nconst displayModes = {\n grid: 'grid',\n list: 'list'\n};\nconst columns = [\n { accessor: 'thumbnail_url', title: 'Thumb', style: { width: '42px' } },\n { accessor: 'title', title: 'Title' },\n { accessor: 'size', title: 'Size', style: { width: '70px' } },\n { accessor: 'filename', title: 'Filename' },\n];\n\nconst StyledNekoMediaLibraryModal = (props) => {\n const { images, onNextPage, onPreviousPage, onRefresh, onClick, onRemoveClick, onZoomClick, onSearch, searchValue, busy,\n currentPage, limit, total, onPageChange, selected, multiSelect = false, showUploader = false, uploader, onSelectedOrderChanged,\n onUploadSuccess = () => {}, onUploadFailure = () => {}, uploadApiUrl, uploadApiConfig, uploadMultiple, onClose, onCancel, onSave, ...rest } = props;\n const [ search, setSerch ] = useState(searchValue);\n const [ dragImageIndex, setDragImageIndex ] = useState(null);\n const [ displayMode, setDisplayMode ] = useState(displayModes.grid);\n const ref = useRef(null);\n\n const onDragOver = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null) return;\n const { width, left, right } = e.currentTarget.getBoundingClientRect();\n let target = i;\n // Only tweak the index if the element dragged over is the right on the image dragged.\n if (dragImageIndex < i) {\n if (i > 0 && i < selected.length) {\n if (target + 1 === dragImageIndex && e.clientX >= right - nextItemRange) {\n target -= 1\n } else if (target - 1 === dragImageIndex && e.clientX >= left - nextItemRange) {\n target += 1;\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n }\n removeClass(dragOverClassName);\n if (dragImageIndex === target || (dragImageIndex + 1) === target) return;\n document.getElementById(`${selectedImageIdPrefix}${target}`).classList.add(dragOverClassName);\n }\n\n const onDragEnd = (e) => {\n e.preventDefault();\n setDragImageIndex(null);\n removeClass(dragOverClassName);\n }\n\n const onDrop = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null || dragImageIndex === i || (dragImageIndex + 1) === i) return;\n onSelectedOrderChanged({ currentIndex: dragImageIndex, afterIndex: dragImageIndex > i ? i : i - 1});\n }\n\n const selectedMediaJsx = useMemo(() => {\n if ( !multiSelect ) return [];\n const dummyElementForDrop = <div id={`nmlm-selected-${selected.length}`} className=\"neko-media-library-modal-content-selected-media-container dummy\" draggable={false} onDragEnd={(e) => onDragEnd(e)} onDragOver={(e) => onDragOver(e, selected.length)} onDrop={(e) => onDrop(e, selected.length)} onDragLeave={() => removeClass(dragOverClassName)}></div>\n const selectedElement = selected.map( (image, i) => {\n return (\n <div id={`nmlm-selected-${i}`} key={image.id} className=\"neko-media-library-modal-content-selected-media-container\" draggable={true} onDragStart={() => setDragImageIndex(i)} onDragEnd={onDragEnd} onDragOver={(e) => onDragOver(e, i)} onDrop={(e) => onDrop(e, i)}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" />\n <button className=\"remove-button\" onClick={() => onRemoveClick({ id: image.id, src: image.src })}>\n <NekoIcon icon=\"close\" color={Theme.white} width={19} height={19} />\n </button>\n <button className=\"zoom-button\" onClick={() => onZoomClick({ id: image.id, src: image.zoom_src })}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={19} height={19} />\n </button>\n </div>\n );\n } );\n return [...selectedElement, dummyElementForDrop];\n }, [ selected, multiSelect, onRemoveClick, onZoomClick, onDragOver, onDragEnd, onDrop ] );\n\n const mediaGridJsx = useMemo(() => {\n return images.map((image) => {\n return (\n <div key={image.id} className={`neko-media-library-modal-content-media-container ${selected.some(v => v.id === image.id) ? 'selected' : ''}`}\n onClick={() => {\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src })\n }}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" width=\"90\" height=\"90\" />\n <button className=\"zoom-button\" onClick={(e) => { e.stopPropagation(); onZoomClick({ id: image.id, src: image.zoom_src }); }}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={29} height={29} />\n </button>\n </div>\n );\n });\n }, [images, selected, onZoomClick, onClick]);\n\n const mediaRows = useMemo(() => {\n return images.map(x => ({\n id: x.id,\n thumbnail_url: <img src={x.src} style={{ width: 40, height: 40, objectFit: 'cover' }} />,\n title: x.title,\n size: x.size,\n filename: x.filename\n }));\n }, [images]);\n\n const onReset = useCallback(() => {\n setSerch(\"\");\n onRefresh();\n }, [onRefresh]);\n\n const mediaListJsx = useMemo(() => {\n const onSelect = (ids, e) => {\n const image = images.find(v => ids.includes(v.id));\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src });\n }\n return <NekoTable\n data={mediaRows}\n columns={columns}\n onSelect={onSelect}\n onUnselect={onSelect}\n selectedItems={selected.map(v => v.id)}\n />\n }, [images, mediaRows, selected, onClick]);\n\n return (\n <StyledNekoModal style={true} {...rest}>\n <div className=\"neko-modal-wrapper\" draggable={true} onDragOver={() => removeClass(dragOverClassName)}>\n <NekoUploadDropArea ref={ref} onSuccess={onUploadSuccess} onFailure={onUploadFailure} apiUrl={uploadApiUrl} apiConfig={uploadApiConfig} disabled={!showUploader || dragImageIndex !== null} multiple={uploadMultiple}>\n <div className=\"neko-media-library-modal-content\">\n <div className=\"neko-media-library-modal-content-header\">\n <NekoTypo h1>Media Library</NekoTypo>\n <div style={{ display: 'flex' }}>\n <div className=\"neko-media-library-modal-search\">\n <NekoInput value={search} disabled={busy} onEnter={onSearch} onChange={(v) => setSerch(v)} placeholder=\"Search...\" />\n {search !== \"\" && <NekoIcon icon=\"close\" containerStyle={{ width: '20px', position: 'absolute', right: '5px', top: '5px', cursor: 'pointer' }} width={20} height={20} color={Theme.darkGray} onClick={onReset} />}\n </div>\n <NekoButton onClick={() => onSearch(search)} style={{ marginLeft: '4px', marginRight: '4px' }}>Search</NekoButton>\n <NekoIcon color={displayMode === displayModes.grid ? Theme.black : Theme.blue} icon='view-grid' onClick={() => setDisplayMode(displayModes.grid)} width=\"20\" height=\"20\" />\n <NekoIcon color={displayMode === displayModes.list ? Theme.black : Theme.blue} icon='format-list-bulleted' onClick={() => setDisplayMode(displayModes.list)} width=\"20\" height=\"20\" />\n </div>\n </div>\n <div>\n <div className=\"neko-media-library-modal-content-body\">\n <NekoBusyOverlay busy={busy}>\n <div className={`${displayMode === displayModes.grid ? 'neko-media-library-modal-content-body-gallery' : 'neko-media-library-modal-content-body-list'}`}>\n {displayMode === displayModes.grid && showUploader && uploader}\n {displayMode === displayModes.grid ? mediaGridJsx : mediaListJsx}\n </div>\n </NekoBusyOverlay>\n <div className=\"neko-media-library-modal-content-body-selected-gallery\">\n {selectedMediaJsx}\n </div>\n </div>\n </div>\n <div className=\"neko-media-library-modal-content-footer\">\n <NekoPaging limit={limit} currentPage={currentPage} total={total} onClick={onPageChange} />\n <div style={{ display: 'flex' }}>\n {!!onClose && <NekoButton onClick={() => onClose()}>\n Close\n </NekoButton>}\n {!!onCancel && <NekoButton className=\"danger\" onClick={() => onCancel()}>\n Cancel\n </NekoButton>}\n {!!onSave && <NekoButton onClick={() => onSave()}>\n Save\n </NekoButton>}\n </div>\n </div>\n </div>\n </NekoUploadDropArea>\n </div>\n </StyledNekoModal>\n );\n};\n\nconst NekoMediaLibraryModal = (props) => {\n return <StyledNekoMediaLibraryModal {...props} />;\n};\n\nNekoMediaLibraryModal.propTypes = {\n images: PropTypes.array,\n onNextPage: PropTypes.func,\n onPreviousPage: PropTypes.func,\n onRefresh: PropTypes.func,\n onClick: PropTypes.func,\n onSearch: PropTypes.func,\n searchValue: PropTypes.string,\n busy: PropTypes.bool,\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onPageChange: PropTypes.func,\n multiSelect: PropTypes.bool,\n selected: PropTypes.array,\n onClose: PropTypes.func,\n onCancel: PropTypes.func,\n onSave: PropTypes.func,\n};\n\nNekoMediaLibraryModal.defaultProps = {\n multiSelect: false\n};\n\nexport { NekoMediaLibraryModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { NekoIcon } from '../misc/Icon';\n\nconst TabContainer = Styled.div`\n`;\n\nconst TabGroup = Styled.div`\n display: flex;\n`;\n\nconst Tab = Styled.button`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin-right: 5px;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ${Theme.blue};\n color: ${Theme.white};\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.blue};\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoTabs = props => {\n const [isActiveTabIndex, setIsActiveTabIndex] = React.useState(0);\n const childrenProp = props.children\n ? (\n props.children.length\n ? props.children.filter(x => !!x)\n : [props.children]\n )\n : [];\n\n React.useEffect(() => {\n if (props.keepTabOnReload) {\n const url = new URL(window.location.href);\n const title = url.searchParams.get('nekoTab');\n if (!title) {\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n return;\n }\n const searchTitle = decodeURIComponent(title);\n const index = React.Children.toArray(childrenProp).map(c => c.props.title.replaceAll(' ', '')).indexOf(searchTitle);\n if (index === -1) {\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n return;\n }\n setIsActiveTabIndex(index);\n if (props.callOnTabChangeFirst) {\n onTabClick(index, tabAttributes[index]);\n }\n return;\n }\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n }, [])\n\n const tabAttributes = React.Children.map(childrenProp, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const hidden = child.props.hidden || false;\n const icon = child.props.icon || false;\n return { key, title, onClick, requirePro, hidden, icon };\n });\n\n const children = React.Children.map(childrenProp, (child, i) => {\n return React.cloneElement(child, {\n isActive: i === isActiveTabIndex\n });\n });\n\n const keepTab = (title) => {\n if (history.pushState && typeof title === 'string' ) {\n let searchParams = new URLSearchParams(window.location.search);\n const value = encodeURIComponent(title.replaceAll(' ', ''));\n searchParams.set('nekoTab', value);\n let newUrl = window.location.protocol + \"//\" + window.location.host + window.location.pathname + '?' + searchParams.toString();\n window.history.replaceState({ path: newUrl }, '', newUrl);\n }\n }\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n setIsActiveTabIndex(tabIndex);\n if (props.onChange) {\n props.onChange(tabIndex, tabAttr, ev);\n }\n if (props.keepTabOnReload) {\n keepTab(tabAttr.title);\n }\n };\n\n return (\n <TabContainer>\n <TabGroup>\n {tabAttributes.map((attr, i) =>\n <Tab \n key={attr.key} \n className={`neko-tab-title ${i === isActiveTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''} ${attr.hidden ? `hidden` : ''}`} \n onClick={(ev) => { onTabClick(i, attr, ev) }}\n >\n {attr.icon && <NekoIcon icon={attr.icon} width={15} height={15} style={{ marginRight: '2px' }} raw />}\n {attr.title}<ProOnly className=\"inline\" style={{ marginLeft: 10, marginRight: -5, top: -1 }} show={attr.requirePro} />\n </Tab>\n )}\n </TabGroup>\n {children}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n {!!isActive && children}\n </TabContent>\n );\n};\n\nconst NekoTabs = (props) => {\n return (<StyledNekoTabs {...props} />);\n};\n\nNekoTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func\n};\n\nNekoTabs.defaultProps = {\n isPro: false,\n onChange: undefined\n};\n\nconst NekoTab = (props) => {\n return (<StyledNekoTab {...props} />);\n};\n\nNekoTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n icon: PropTypes.string,\n};\n\nNekoTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n icon: undefined,\n};\n\nexport { NekoTab, NekoTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\n\nconst TabContainer = Styled.div`\n`;\n\nconst Tab = Styled.div`\n align-items: center;\n background-color: ${Theme.blue};\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(${Theme.yellowRGB}, 0.25);\n cursor: default;\n }\n\n p {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ${Theme.white};\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.white};\n display: none;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoSideTabs = props => {\n\n const [activeTabIndex, setIsActiveTabIndex] = React.useState(props.activeTabIndex);\n\n const tabAttributes = React.Children.map(props.children, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const onDragOver = child.props.onDragOver;\n const onDrop = child.props.onDrop;\n const rightActions = child.props.rightActions || null;\n return { key, title, onClick, requirePro, onDragOver, onDrop, rightActions };\n });\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n isActive: i === activeTabIndex\n });\n });\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n const newTabIndex = tabIndex === activeTabIndex ? null : tabIndex;\n setIsActiveTabIndex(newTabIndex);\n if (props.onChange) {\n props.onChange(newTabIndex, tabAttr, ev);\n }\n };\n\n return (\n <TabContainer>\n {tabAttributes.map((attr, i) =>\n <React.Fragment>\n <Tab\n key={attr.key}\n className={`${i === activeTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''}`}\n onClick={(ev) => { onTabClick(i, attr, ev); }}\n onDragOver={attr.onDragOver}\n onDrop={attr.onDrop}\n >\n <p>\n <span style={{ fontSize: 15 }}>{attr.title}</span>\n <ProOnly className=\"inline\" show={attr.requirePro} />\n </p>\n {attr.rightActions === null\n ? <Icon icon={i === activeTabIndex ? chevronDown : chevronRight } className=\"neko-side-tab-icon\" />\n : (\n i === activeTabIndex\n ? <div style={{ marginLeft: 'auto' }}>{attr.rightActions}</div>\n : <Icon icon={chevronRight} className=\"neko-side-tab-icon\" />\n )\n }\n </Tab>\n { children[i] }\n </React.Fragment>\n )}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoSideTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n { children }\n </TabContent>\n );\n};\n\nconst NekoSideTabs = (props) => {\n return (<StyledNekoSideTabs {...props} />);\n};\n\nNekoSideTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func,\n activeTabIndex: PropTypes.number\n};\n\nNekoSideTabs.defaultProps = {\n isPro: false,\n onChange: undefined,\n activeTabIndex: null\n};\n\nconst NekoSideTab = (props) => {\n return (<StyledNekoSideTab {...props} />);\n};\n\nNekoSideTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n onDragOver: PropTypes.func,\n onDrop: PropTypes.func,\n rightActions: PropTypes.element\n};\n\nNekoSideTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n onDragOver: undefined,\n onDrop: undefined,\n rightActions: undefined\n};\n\nexport { NekoSideTab, NekoSideTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\n\nconst ToolbarBase = Styled.div`\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ${Colors.white};\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(${Colors.blackRGB}, 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n`;\n\nconst StyledNekoToolbar = ({ align = 'left', ...props }) => {\n return (\n <ToolbarBase className={`neko-align-${align}`} {...props}>\n {props.children}\n </ToolbarBase>\n );\n};\n\nconst NekoToolbar = (props) => {\n return (<StyledNekoToolbar {...props} />);\n};\n\nNekoToolbar.propTypes = {\n align: PropTypes.oneOf(['left', 'right'])\n};\n\nNekoToolbar.defaultProps = {\n align: 'left'\n};\n\nexport { NekoToolbar };","class NekoError {\n\n constructor(message, code = '', url = null, body = null, debug = {}, ) {\n this.url = url;\n this.message = message;\n this.code = code;\n this.body = body;\n this.debug = debug;\n }\n}\n\nexport { NekoError };","import { cache, mutate } from 'swr';\nimport { NekoError } from './errors';\n\n// This function allows to invalidate a SWR key which might\n// have been use for paging, for example: swrInvalidateMany('/api/items')\n// will reset everything which happens around this key.\n\nfunction swrInvalidateMany(select) {\n const keys = cache.keys();\n const mutations = [];\n let regexp = new RegExp(`(.*)${select}(.*)`);\n for (let key of keys) {\n if (regexp.test(key)) {\n mutations.push(mutate(key, null, true));\n }\n }\n return Promise.all(mutations);\n}\n\nfunction chunkArrayInGroups(arr, size) {\n let result = [];\n for (let i = 0; i < arr.length; i += size)\n result.push(arr.slice(i, i + size));\n return result;\n}\n\nconst consolidateJsonResult = (json) => {\n if (!json.data) {\n return json;\n }\n if (json.data.length > 0 && json.data[0].meta) {\n for (let x of json.data) {\n try { x.meta = JSON.parse(x.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n }\n else if (json.data.meta) {\n try { json.data.meta = JSON.parse(json.data.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n return json;\n}\n\nconst jsonFetcher = async (url, options = {}) => {\n let body = null;\n let json = {};\n let nekoError = null;\n let rawBody = null;\n\n try {\n options = options ? options : {};\n options.headers = options.headers ? options.headers : {};\n options.headers['Pragma'] = 'no-cache';\n options.headers['Cache-Control'] = 'no-cache';\n rawBody = await fetch(`${url}`, options);\n body = await rawBody.text();\n json = JSON.parse(body);\n if (!json.success) {\n let code = json.success === false ? 'NOT-SUCCESS' : 'N/A';\n let message = json.message ? json.message : 'Unknown error. Check your Console Logs.';\n if (json.code === 'rest_no_route') {\n message = \"The API can't be accessed. Is Rest API enabled?\";\n code = 'NO-ROUTE';\n }\n else if (json.code === 'internal_server_error') {\n message = \"Server error. Please check your PHP Error Logs.\";\n code = 'SERVER-ERROR';\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody);\n }\n }\n catch (error) {\n let code = 'BROKEN-REPLY';\n let message = \"The reply sent by the server is broken.\";\n if (rawBody && rawBody.status) {\n if (rawBody.status === 408) {\n code = \"REQUEST-TIMEOUT\";\n message = \"The request generated a timeout.\";\n }\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody, error);\n }\n\n // Rewrite the Json if there is an error\n if (nekoError) {\n console.error('[NekoError] JsonFetcher', nekoError.url, { code: nekoError.code, \n error: nekoError.error, body: nekoError.body });\n json.success = false;\n json.error = nekoError;\n }\n return consolidateJsonResult(json);\n}\n\nconst getFetch = async (url, json, signal, nonce) => {\n const nonceHeader = nonce ? { 'X-WP-Nonce': nonce } : {};\n return jsonFetcher(url, { \n method: 'GET', \n headers: { 'Content-Type': 'application/json', ...nonceHeader },\n signal: signal\n });\n}\n\nconst postFetch = async (url, config = {}) => {\n const { json = {}, signal, file, nonce } = config;\n let formData = file ? new FormData() : null;\n if (file) {\n formData.append('file', file);\n for (const [key, value] of Object.entries(json)) {\n formData.append(key, value);\n }\n }\n\n const headers = nonce ? { 'X-WP-Nonce': nonce } : {};\n if (!formData) {\n headers['Content-Type'] = 'application/json';\n }\n\n return jsonFetcher(url, { \n method: 'POST',\n headers: headers,\n body: formData ? formData :JSON.stringify(json) ,\n signal: signal\n });\n}\n\nconst buildUrlWithParams = (apiUrl, params) => {\n const isPlainPermalink = apiUrl.includes('index.php?rest_route');\n const urlParams = new URLSearchParams(params);\n const finalUrl = apiUrl + (isPlainPermalink ? '&' : '?') + urlParams.toString();\n return finalUrl;\n}\n\nconst formatBytes = (bytes, decimals = 2) => {\n //if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n let i = bytes > 0 ? Math.floor(Math.log(bytes) / Math.log(k)) : 0;\n if ( sizes[i] === 'Bytes' ) {\n i = 1;\n }\n bytes = parseFloat((bytes / Math.pow(k, i)).toFixed(dm));\n var str = bytes.toFixed(Math.max(dm, (bytes.toString().split('.')[1] || []).length));\n return str + ' ' + sizes[i];\n \n}\n\nexport { getFetch, postFetch, jsonFetcher, swrInvalidateMany, chunkArrayInGroups, buildUrlWithParams, formatBytes };","const prefix = mgcl_gallery_custom_links.prefix;\nconst domain = mgcl_gallery_custom_links.domain;\nconst restUrl = mgcl_gallery_custom_links.rest_url.replace(/\\/+$/, \"\");\nconst apiUrl = mgcl_gallery_custom_links.api_url.replace(/\\/+$/, \"\");\nconst pluginUrl = mgcl_gallery_custom_links.plugin_url.replace(/\\/+$/, \"\");\nconst isPro = mgcl_gallery_custom_links.is_pro === '1';\nconst isRegistered = isPro && mgcl_gallery_custom_links.is_registered === '1';\nconst restNonce = mgcl_gallery_custom_links.rest_nonce;\n\nexport { prefix, domain, apiUrl, restUrl, pluginUrl, isPro, isRegistered, restNonce };\n","// React & Vendor Libs\nconst { useState, useMemo } = wp.element;\nimport useSWR from 'swr';\n\n// NekoUI\nimport { NekoInput, NekoTypo, NekoPage, NekoBlock, NekoHeader, NekoContainer, NekoSettings,\n NekoTabs, NekoTab, NekoCheckboxGroup, NekoCheckbox, NekoWrapper, NekoSelect, NekoOption,\n NekoColumn } from '@neko-ui';\nimport { jsonFetcher, postFetch, useHandleSWR } from '@neko-ui';\n\nimport { apiUrl, restNonce } from '@app/settings';\n\nconst Settings = () => {\n\n const swrAllSettingsKey = useMemo(() => {\n return [`${apiUrl}/all_settings/`, { headers: { 'X-WP-Nonce': restNonce } }];\n }, [apiUrl, restNonce]);\n const { data: swrSettings, mutate: mutateSwrSettings } = useSWR(swrAllSettingsKey, jsonFetcher);\n const { busy: busySettings, data: settings, error: swrError } = useHandleSWR(swrSettings, {}, true);\n const [ busyAction, setBusyAction ] = useState(false);\n const busy = busySettings || busyAction;\n\n const obmode = settings?.mgcl_obmode;\n const parsingEngine = settings?.mgcl_parsing_engine;\n const log = settings?.mgcl_log;\n const buttonEnabled = settings?.mgcl_button_enabled;\n const buttonLabel = settings?.mgcl_button_label;\n\n const parsingEngineOptions = [\n { id: \"none\", value: \"None\", label: \"None (Not Supported Yet)\"},\n { id: \"htmldomparser\", value: \"HtmlDomParser\", label: \"HtmlDomParser\" },\n { id: \"didom\", value: \"DiDom\", label: \"DiDom\" }\n ]\n\n const updateOption = async (value, id) => {\n let newSettingsData = { ...swrSettings.data };\n newSettingsData[id] = value;\n mutateSwrSettings({ ...swrSettings, data: newSettingsData }, false);\n setBusyAction(true);\n try {\n await postFetch(`${apiUrl}/update_option`, { json: { name: id, value }, nonce: restNonce });\n }\n catch (err) {\n alert(err.message);\n }\n finally {\n setBusyAction(false);\n mutateSwrSettings();\n }\n }\n\n /**\n * Settings\n */\n\n const jsxOBMode =\n <NekoSettings title=\"OB Mode\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_obmode\" label=\"Enabled\" value=\"1\" checked={obmode} onChange={updateOption} description=\"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended).\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxParsingEngine =\n <NekoSettings title=\"Parsing Engine\" description=\"Hello\">\n <NekoSelect id=\"mgcl_parsing_engine\" onChange={updateOption}>\n {parsingEngineOptions.map(option => <NekoOption id={`mgcl_parsing_engine_${option.id}`} value={option.value} label={option.label} checked={parsingEngine === option.value} /> )}\n </NekoSelect>\n </NekoSettings>;\n\n const jsxLog =\n <NekoSettings title=\"Logs\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_log\" label=\"Logs\" value=\"1\" checked={log} onChange={updateOption} description=\"Simple logging, written directly in the PHP Error Logs.\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n /**\n * CTA Buttons\n */\n const jsxUseButtons =\n <NekoSettings title=\"Use Buttons\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_button_enabled\" label=\"Enabled\" value=\"1\" description=\"A call-to-action button will be used of a clickable image.\" checked={buttonEnabled} onChange={updateOption} />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxButtonLabel =\n <NekoSettings title=\"Label\">\n <NekoInput id=\"mgcl_button_label\" name=\"mgcl_button_label\" value={buttonLabel} description=\"A call-to-action button will be used of a clickable image.\" onBlur={updateOption} />\n </NekoSettings>;\n\n return (\n <NekoPage nekoErrors={[ swrError ]}>\n\n <NekoHeader title='Gallery Custom Links | Settings' subtitle='By Jordy Meow' />\n\n <NekoWrapper>\n\n <NekoColumn full>\n <NekoContainer>\n <NekoTypo p>This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the <a href=\"https://meowapps.com/plugin/gallery-custom-links/\">official page</a>.</NekoTypo>\n </NekoContainer>\n\n <NekoTabs>\n\n <NekoTab title='Settings'>\n <NekoWrapper>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"Settings\" className=\"primary\">\n {jsxParsingEngine}\n {jsxOBMode}\n {jsxLog}\n </NekoBlock>\n </NekoColumn>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"CTA Buttons\" className=\"primary\">\n <NekoTypo p><b>Currently works with the <a href=\"https://wordpress.org/plugins/meow-gallery/\">Meow Gallery</a> and Gutenberg Galleries.</b> In a future Pro version, support for additional galleries might be added (please contact <a href=\"https://meowapps.com/contact/\">Meow Apps</a> for this).</NekoTypo>\n {jsxUseButtons}\n {!buttonEnabled ? null : jsxButtonLabel}\n </NekoBlock>\n </NekoColumn>\n\n </NekoWrapper>\n </NekoTab>\n\n </NekoTabs>\n\n </NekoColumn>\n\n </NekoWrapper>\n\n </NekoPage>\n );\n};\n\nexport default Settings;","const { __ } = wp.i18n;\n\nconst i18n = {};\n\ni18n.PENDING = __( 'Pending', 'gallery-custom-links' );\ni18n.RENAME = __( 'Rename', 'gallery-custom-links' );\ni18n.TITLE = __( 'Title', 'gallery-custom-links' );\ni18n.SAME_PAGE = __( 'Same page', 'gallery-custom-links' );\ni18n.NEW_PAGE = __( 'New page', 'gallery-custom-links' );\ni18n.LINK_URL = __( 'Link URL', 'gallery-custom-links' );\ni18n.LINK_TARGET = __( 'Link Target', 'gallery-custom-links' );\ni18n.LINK_REL = __( 'Link Rel', 'gallery-custom-links' );\ni18n.ARIAL_LABEL = __( 'Arial Label', 'gallery-custom-links' );\n\nexport default i18n;\n\n","// React & Vendor Libs\nconst { useState, useCallback } = wp.element;\nimport Styled from \"styled-components\";\n\n// Libs\nimport i18n from '@app/i18n';\nimport { apiUrl, restNonce } from '@app/settings';\n\n// NekoUI\nimport { NekoTypo, NekoIcon, NekoModal, NekoInput, NekoSelect, NekoOption } from '@neko-ui';\nimport { postFetch } from '@neko-ui';\n\nconst targets = [\n\t{ label: i18n.SAME_PAGE, value: '_self' },\n\t{ label: i18n.NEW_PAGE, value: '_blank' }\n];\n\nconst GroupContainer = Styled.div`\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n`;\n\nconst EditLinkField = ( props ) => {\n\n\tconst [ busyAction, setBusyAction ] = useState(false);\n\tconst busy = busyAction;\n\n\tconst { postId } = props;\n\tconst [ url, setUrl ] = useState( props.url );\n\tconst [ target, setTarget ] = useState( props.target ? props.target : '_self' );\n\tconst [ rel, setRel ] = useState( props.rel );\n\tconst [ aria, setAria ] = useState( props.aria );\n\tconst [ openModal, setOpenModal ] = useState( false );\n\n\tconst updateOption = async (postId, url, target, rel, aria) => {\n\t\tsetBusyAction( true );\n\t\tlet result = true;\n\t\ttry {\n\t\t\tconst res = await postFetch( `${apiUrl}/update_meta`, { json: {\n\t\t\t\tpost_id: postId,\n\t\t\t\t_gallery_link_url: url,\n\t\t\t\t_gallery_link_target: target,\n\t\t\t\t_gallery_link_rel: rel,\n\t\t\t\t_gallery_link_aria: aria,\n\t\t\t}, nonce: restNonce } );\n\t\t\tif ( !res.success ) {\n\t\t\t\tresult = false;\n\t\t\t\talert(res.message);\n\t\t\t}\n\t\t} catch ( err ) {\n\t\t\tresult = false;\n\t\t\talert( err.message );\n\t\t} finally {\n\t\t\tif ( result ) onCloseModal();\n\t\t\tsetBusyAction( false );\n\t\t}\n\t};\n\n\tconst onCloseModal = () => setOpenModal( false )\n\n\tconst onOkClick = useCallback(() => {\n\t\tupdateOption( postId, url, target, rel, aria );\n\t}, [postId, url, target, rel, aria, updateOption, onCloseModal]);\n\n const onKeyDown = useCallback((e) => {\n if (e.key === 'Enter' || e.keyCode === 13) {\n e.preventDefault();\n onOkClick();\n }\n }, [onOkClick]);\n\n\treturn (\n\t\t<>\n\t\t\t<span onClick={() => setOpenModal( true )} style={{ cursor: 'pointer' }}>\n\t\t\t\t<NekoIcon icon=\"link\" disabled={!url} />\n\t\t\t</span>\n\t\t\t<NekoModal\n\t\t\t\tisOpen={openModal}\n\t\t\t\tonRequestClose={onCloseModal}\n\t\t\t\ttitle=\"Edit the custom link\"\n\t\t\t\tcontent={\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_URL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setUrl(e.target.value)}\n onKeyDown={onKeyDown} value={url} autoFocus />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_TARGET}</NekoTypo>\n\t\t\t\t\t\t\t<NekoSelect scrolldown={true} value={target} onChange={(v) => setTarget(v)} disabled={busy}>\n\t\t\t\t\t\t\t\t{targets.map(target => <NekoOption value={target.value} label={target.label} />)}\n\t\t\t\t\t\t\t</NekoSelect>\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_REL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setRel(e.target.value)} value={rel} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.ARIAL_LABEL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setAria(e.target.value)} value={aria} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\tonOkClick={onOkClick}\n\t\t\t\tonCancelClick={onCloseModal}\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default EditLinkField;","// React & Vendor Libs\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\n// Gallery Custom Links\nimport Settings from '@app/components/Settings';\nimport EditLinkField from '@app/components/EditLinkField';\n\nlet isMediaLibrary = null;\n\nfunction init() {\n\tisMediaLibrary = document.getElementsByClassName('upload-php')[0];\n}\n\n// Gallery Custom Links Settings\nfunction addSettings() {\n\tconst container = document.getElementById('mgcl-admin-settings');\n\tif (container) {\n\t\tReactDOM.render((<Settings />), container);\n\t\treturn true;\n\t}\n\treturn false;\n}\n\ndocument.addEventListener('DOMContentLoaded', function(event) {\n\n\tinit();\n\n\tif (addSettings() || !isMediaLibrary) {\n\t\treturn;\n\t}\n\n\t// Edit Link Fields need to be added in the Media Library\n\tconst fields = Array.from(document.getElementsByClassName('mgcl-edit-link-field'));\n\tfields.forEach(field => {\n\t\tconst postId = field.getAttribute('data-post-id');\n\t\tconst url = field.getAttribute('data-url');\n\t\tconst target = field.getAttribute('data-target');\n\t\tconst rel = field.getAttribute('data-rel');\n\t\tconst aria = field.getAttribute('data-aria');\n\t\tReactDOM.render((<EditLinkField postId={postId} url={url} target={target} rel={rel} aria={aria} />), field);\n\t});\n\n});\n"],"sourceRoot":""}
|
1 |
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"React\"","webpack:///external \"ReactDOM\"","webpack:///../neko-ui/src/common/NekoBusyOverlay.js","webpack:///../neko-ui/src/common/NekoTheme.js","webpack:///../neko-ui/src/misc/Spinner.js","webpack:///../neko-ui/src/common/PresetIcons.js","webpack:///../neko-ui/src/errors.js","webpack:///../neko-ui/src/helpers.js","webpack:///../neko-ui/src/hooks.js","webpack:///../neko-ui/src/misc/Tooltip.js","webpack:///../neko-ui/src/misc/Icon.js","webpack:///../neko-ui/src/button/Button.js","webpack:///../neko-ui/src/label/ProOnly.js","webpack:///../neko-ui/src/button/MenuButton.js","webpack:///../neko-ui/src/container/Page.js","webpack:///../neko-ui/src/misc/Typography.js","webpack:///../neko-ui/src/container/Block.js","webpack:///../neko-ui/src/container/Container.js","webpack:///../neko-ui/src/container/Settings.js","webpack:///../neko-ui/src/container/Window.js","webpack:///../neko-ui/src/container/Wrapper.js","webpack:///../neko-ui/src/form/Checkbox.js","webpack:///../neko-ui/src/form/CheckboxGroup.js","webpack:///../neko-ui/src/form/Input.js","webpack:///../neko-ui/src/form/TextArea.js","webpack:///../neko-ui/src/form/Select.js","webpack:///../neko-ui/src/form/Form.js","webpack:///../neko-ui/src/form/Switch.js","webpack:///../neko-ui/src/misc/Finder.js","webpack:///../neko-ui/src/misc/Logo.js","webpack:///../neko-ui/src/misc/Progress.js","webpack:///../neko-ui/src/misc/Header.js","webpack:///../neko-ui/src/misc/Paging.js","webpack:///../neko-ui/src/misc/Links.js","webpack:///../neko-ui/src/misc/Gauge.js","webpack:///../neko-ui/src/misc/Message.js","webpack:///../neko-ui/src/misc/Upload.js","webpack:///../neko-ui/src/misc/UploadDropArea.js","webpack:///../neko-ui/src/misc/Calendar.js","webpack:///../neko-ui/src/modal/Modal.js","webpack:///../neko-ui/src/table/Table.js","webpack:///../neko-ui/src/modal/MediaLibraryModal.js","webpack:///../neko-ui/src/tabs/Tabs.js","webpack:///../neko-ui/src/tabs/SideTabs.js","webpack:///../neko-ui/src/toolbar/Toolbar.js","webpack:///./app/js/settings.js","webpack:///./common/js/dashboard/Dashboard.styled.js","webpack:///./common/js/dashboard/SpeedTester.js","webpack:///./common/js/dashboard/Dashboard.js","webpack:///./common/js/components/LicenseBlock.js","webpack:///./common/js/index.js","webpack:///./app/js/components/Settings.js","webpack:///./app/js/i18n.js","webpack:///./app/js/components/EditLinkField.js","webpack:///./app/js/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","React","ReactDOM","NekoBusyOverlay","props","spinner","busy","overlayStyle","useState","showLoader","setShowLoader","useEffect","timeout","setTimeout","clearTimeout","loader","Fragment","className","style","Boolean","jsx","propsForElement","undefined","position","children","propTypes","PropTypes","bool","isRequired","oneOfType","arrayOf","node","NekoColors","black","blackRGB","blue","blueRGB","deepBlue","finderBorder","lightBlue","lightGray","lightGray2","lightPurple","gray","green","darkGray","disabledForm","orange","overlay","red","redHighlight","header","proGray","progress","purple","tableGray","yellow","yellowRGB","white","whiteRGB","NekoColorTheme","danger","primary","secondary","success","NekoTheme","fontFamily","fontSizeH1","fontSizeH2","fontSizeText","fontSizeSmall","fontSizeSmallButton","lightShadow","StyledCircleSpinner","Styled","div","size","color","CircleSpinner","StyledNekoSpinner","type","rest","NekoSpinner","string","defaultProps","presetIcons","lockCheck","lockOpenVariant","fileUndo","chevronDoubleLeft","chevronDoubleRight","chevronLeft","chevronRight","chevronDown","chevronUp","pauseIcon","playIcon","replayIcon","checkIcon","checkCircle","stopIcon","deleteIcon","undoIcon","alertCircle","databaseIcon","toolsIcon","cogIcon","closeIcon","catIcon","arrowUpBoldCircleOutline","trashCan","leadPencil","viewDashboard","databaseSearch","folderIcon","folderOpen","imageMultipleOutline","plusIcon","folderPlus","imagePlus","viewGrid","formatListBulleted","twitterIcon","instagramIcon","facebookIcon","starIcon","timerOutline","linkVariant","linkedin","pinterest","zoomIn","infoOutline","arrowUp","arrowDown","sort","eye","rocketLaunch","calendarMonth","NekoError","message","code","url","body","debug","this","consolidateJsonResult","json","meta","x","JSON","parse","err","console","error","jsonFetcher","options","nekoError","rawBody","headers","fetch","text","status","postFetch","config","signal","file","nonce","formData","FormData","append","entries","method","stringify","useComponentSize","ref","useRef","setSize","current","observer","ResizeObserver","element","contentRect","width","left","right","height","top","bottom","observe","unobserve","useOutsideClick","onOutsideClick","componentRef","handleOutsideClick","e","contains","target","document","addEventListener","removeEventListener","PQueue","concurrency","autoStart","TooltipContainer","Tooltip","Theme","prop","visible","StyledNekoTooltip","show","setShow","tooltipRef","tooltipWidth","tooltipHeight","childRef","childWidth","childHeight","transformStyle","useMemo","transY","transX","transform","onMouseEnter","onMouseLeave","NekoTooltip","oneOf","StyledIconContainer","StyledIcon","Icon","hoverColor","lighten","StyledNekoIcon","icon","spinning","title","tooltip","containerStyle","disabled","raw","isBusy","getIcon","PresetIcons","iconClassName","onClick","NekoIcon","instanceOf","IconifyIcon","StyledButton","small","rounded","busyText","hideBusyIcon","busyIconSize","hasIcon","iconWidth","base","spinnerSize","classNames","marginLeft","marginRight","margin","additionalColor","NekoButton","func","Tag","a","Colors","StyledProOnly","href","ProOnly","MenuButtonWrapper","MenuButton","button","MenuItemContainer","StyledMenuButton","isPro","hideChevron","titleStyle","isOpen","setIsOpen","wrapperRef","buttonRef","buttonWidth","Children","map","child","cloneElement","MenuItem","StyledNekoMenuItem","requirePro","separator","needsProUser","NekoMenuButton","NekoMenuItem","Page","StyledNekoPage","nekoErrors","fatalError","setFatalError","showBody","setShowBody","dangerouslySetInnerHTML","__html","open","NekoPage","NekoH1","h1","NekoH2","h2","NekoP","NekoSpan","span","NekoLabel","label","StyledNekoTypo","NekoTypo","any","Block","StyledNekoBlock","contentStyle","action","NekoBlock","Container","Bar","StyledNekoContainer","headerAlign","footer","footerAlign","NekoContainer","StyledNekoSettings","contentAlign","NekoSettings","WindowBase","TitleBar","StyledNekoWindow","NekoWindow","Wrapper","Column","StyledNekoWrapper","StyledNekoColumn","full","minimal","NekoWrapper","NekoColumn","StyledNekoCheckbox","id","checked","onChange","description","showUpProOnly","isDisabled","disabledClass","join","stopPropagation","defaultChecked","htmlFor","log","checkboxBlankOutline","checkboxMarked","NekoCheckbox","StyledNekoCheckboxGroup","max","NekoCheckboxGroup","mas","number","StyledNekoInput","placeholder","onEnter","readOnly","step","min","maxLength","defaultMaxLength","natural","inputStyle","onCustomChange","onCustomBlur","onBlur","onReset","newValue","setNewValue","isControlled","onKeyPress","event","preventDefault","autoComplete","spellCheck","NekoInput","StyledNekoTextArea","avoidOnEnterWithShift","textAreaStyle","countable","count","setCount","pressShift","setPressShift","keydownFunction","useCallback","shiftKey","keyupFunction","substr","rows","NekoTextArea","Select","SelectedOption","Description","Options","OptionsContainer","StyledNekoSelect","scrolldown","chevronIconSize","textFiltering","currentOption","toArray","find","iconSize","showOptions","toggleOptions","filterText","setFilterText","onOptionClick","filteredChildren","filtered","forEach","includes","childrenLength","data-is-disabled","Math","v","background","borderRadius","autoFocus","RadioOption","SelectOption","StyledNekoOption","radioOption","recordCircle","checkboxBlankCircleOutline","selectOption","NekoSelect","NekoOption","Form","StyledNekoForm","NekoForm","StyledNekoSwitch","fontSize","onValue","offValue","onBackgroundColor","offBackgroundColor","onLabel","offLabel","onToggle","NekoSwitch","StyledNekoFinder","chevron","FinderTitleContainer","FinderTitle","ChevronSpace","FinderTitleIconDropZone","FinderTitleIconDroppableArea","ItemContainer","StyledNekoFinderItem","defaultIcons","gallery","tag","tagIcon","rightElement","rightElementStyle","showRightElement","selected","draggable","onDragStart","onDragOver","onDragEnd","onDrop","isExpanded","dragging","rightAction","rightActionOnHover","onDragLeave","isCustomizedIcon","preventClose","hasChild","expanded","setExpanded","keys","setIcon","isFolder","showRightAction","setShowRightAction","iconColor","NekoFinder","NekoFinderItem","Logo","StyledNekoLogo","viewBox","fill","xmlns","stroke","strokeWidth","NekoLogo","StyledNekoProgress","ratio","parseFloat","ProgressCurrent","onPauseClick","paused","onStopClick","percent","isNaN","parseInt","round","typeOfStatus","minWidth","NekoProgress","HeaderBase","StyledNekoHeader","subtitle","saving","textDecoration","contentSave","NekoHeader","PagingContainer","StyledNekoPaging","currentPage","limit","total","onCurrentPageChanged","infinite","controllerText","isEditable","maxPage","ceil","prevIconClassName","nextIconClassName","showCurrentPageInput","setShowCurrentPageInput","onClickHandle","page","getValidPage","numberPage","Number","currentPageJsx","defaultValue","onControllerClick","currentTarget","NekoPaging","lastPage","LinkContainer","Link","variant","StyledNekoQuickLinks","isActive","StyledNekoLink","variantValue","display","NekoQuickLinks","NekoLink","StyledSection","section","backgroundColor","degrees","NekoGauge","class","NekoMessageDanger","NekoMessageSuccess","StyledUpload","NekoUpload","multiple","onSuccess","onFailure","apiUrl","apiConfig","inDropZone","setInDropZone","floor","random","inputId","inputEl","divEl","setBusy","pointerEvents","uploadFile","files","upload","Promise","all","response","successResponses","filter","failerResponses","onDragEnter","uploadFiles","accept","click","dataTransfer","StyledUploadDropArea","NekoUploadDropArea","forwardRef","onInputUpload","Days","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","StyledNekoCalendar","CalendarHeaders","CalendarContent","WeekContainer","DayContainer","NekoCalendar","month","Date","getMonth","year","getFullYear","onEventClicked","onEventMoved","eventBuilder","events","draggedEvent","setDraggedEvent","highlightedDay","setHighlightedDay","disableDaysBefore","getDate","weeks","days","currentDate","weekDay","date","getDay","setDate","getFirstWeekDayForMonth","totalCalendarDays","startDate","endDate","start","end","numberOfDaysBetween","lastDate","array","chunkSize","chunks","splitArrayInChunks","day","week","today","isCurrentMonth","filterEvents","getTime","date1","date2","disableDaysAfter","NekoModalParent","NekoModalContent","StyledNekoModal","ok","cancel","customButtons","customButtonsPosition","content","contentWidth","onOkClick","onCancelClick","okOnEnter","thumbnail","customClassName","showCustomButtons","keyUpHandler","modalContent","ariaHideApp","parentSelector","getElementById","closeTimeoutMS","NekoModal","Table","table","TableCheckBox","intermediate","onSelect","onUnselect","checkboxMultipleMarked","alignToJustifyContent","center","StyledNekoTable","columns","selectedItems","onSortChange","sortIconColor","emptyMessage","columnsCount","getColumnStyle","column","align","textAlign","justifyContent","cells","accessor","currentRowsIds","areAllRowsSelected","isIntermediate","hiddenColumnIndexes","reduce","headersFooters","beingSorted","beingSortedAsc","by","columnStyle","sortable","flex","colspan","row","cell","NekoTable","removeClass","Array","getElementsByClassName","ele","classList","remove","displayModes","StyledNekoMediaLibraryModal","images","onRefresh","onNextPage","onPreviousPage","onRemoveClick","onZoomClick","onSearch","searchValue","onPageChange","multiSelect","showUploader","uploader","onSelectedOrderChanged","onUploadSuccess","onUploadFailure","uploadApiUrl","uploadApiConfig","uploadMultiple","onClose","onCancel","onSave","search","setSerch","dragImageIndex","setDragImageIndex","displayMode","setDisplayMode","getBoundingClientRect","clientX","add","currentIndex","afterIndex","selectedMediaJsx","dummyElementForDrop","selectedElement","image","src","zoom_src","mediaGridJsx","some","mediaRows","thumbnail_url","objectFit","filename","mediaListJsx","ids","cursor","NekoMediaLibraryModal","TabContainer","TabGroup","Tab","TabContent","StyledNekoTabs","isActiveTabIndex","setIsActiveTabIndex","childrenProp","keepTabOnReload","URL","location","searchParams","callOnTabChangeFirst","onTabClick","tabAttributes","searchTitle","decodeURIComponent","index","replaceAll","indexOf","toLowerCase","hidden","tabIndex","tabAttr","ev","history","pushState","URLSearchParams","encodeURIComponent","set","newUrl","protocol","host","pathname","toString","replaceState","path","keepTab","attr","StyledNekoTab","NekoTabs","NekoTab","StyledNekoSideTabs","activeTabIndex","rightActions","newTabIndex","StyledNekoSideTab","NekoSideTabs","NekoSideTab","ToolbarBase","StyledNekoToolbar","NekoToolbar","prefix","mgcl_gallery_custom_links","domain","restUrl","rest_url","replace","api_url","pluginUrl","plugin_url","is_pro","isRegistered","is_registered","restNonce","rest_nonce","TabText","StyledPluginBlock","StyledPluginImage","img","StyledPhpInfo","StyledPhpErrorLogs","ul","wp","CommonApiUrl","SpeedTester","request","runRequests","setRunRequests","results","setResults","resultsTotal","b","resultsAverage","isInitializing","time","marginTop","jsxTextStory","jsxTextPerformance","jsxTextRecommendations","swrAllSettingsKey","Dashboard","useSWR","swrSettings","mutateSwrSettings","mutate","swrError","settings","hide_meowapps","meowapps_hide_meowapps","force_sslverify","phpErrorLogs","setPhpErrorLogs","phpInfo","setPhpInfo","info","innerHTML","updateOption","newSettingsData","res","alert","loadErrorLogs","fresh","reverse","jsxHideMeowApps","jsxForceSSLVerify","showRestError","marginBottom","LicenseBlock","meowMode","setMeowMode","currentModal","setCurrentModal","license","setLicense","serialKey","setSerialKey","isOverridenLicense","checkLicense","removeLicense","forceLicense","override","issue","validateLicense","licenseTextStatus","check_url","rel","jsxNonPro","jsxProVersion","fontWeight","txt","reload","render","meowDashboardLoaded","commmonDash","Settings","swrData","defaultData","defaultBusy","setData","setError","setTotal","useHandleSWR","busySettings","busyAction","setBusyAction","obmode","mgcl_obmode","parsingEngine","mgcl_parsing_engine","mgcl_log","buttonEnabled","mgcl_button_enabled","buttonLabel","mgcl_button_label","jsxOBMode","jsxParsingEngine","option","jsxLog","jsxUseButtons","jsxButtonLabel","__","i18n","PENDING","RENAME","TITLE","SAME_PAGE","NEW_PAGE","LINK_URL","LINK_TARGET","LINK_REL","ARIAL_LABEL","targets","GroupContainer","EditLinkField","postId","setUrl","setTarget","setRel","aria","setAria","openModal","setOpenModal","post_id","_gallery_link_url","_gallery_link_target","_gallery_link_rel","_gallery_link_aria","onCloseModal","onKeyDown","keyCode","onRequestClose","onInput","isMediaLibrary","container","from","field","getAttribute"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChB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AM28B,QAAS,SAAC/wB,GAAD,OAAOmwB,EAAQnwB,EAAEE,OAAOnN,QAAQA,MAAOm9B,MAI9EzS,UAAWA,EACXC,cAAeiT,MC1GfK,GAAiB,KAgBrB7wB,SAASC,iBAAiB,oBAAoB,SAASyL,GATvD,IACOolB,GALND,GAAiB7wB,SAAS4gB,uBAAuB,cAAc,IAKzDkQ,EAAY9wB,SAASge,eAAe,0BAEzCnqB,IAASm5B,OAAQ,kBAAC,GAAD,MAAe8D,GACzB,KAScD,KAKPlQ,MAAMoQ,KAAK/wB,SAAS4gB,uBAAuB,yBACnD1S,SAAQ,SAAA8iB,GACd,IAAMrB,EAASqB,EAAMC,aAAa,gBAC5Bz0B,EAAMw0B,EAAMC,aAAa,YACzBlxB,EAASixB,EAAMC,aAAa,eAC5BvE,EAAMsE,EAAMC,aAAa,YACzBlB,EAAOiB,EAAMC,aAAa,aAChCp9B,IAASm5B,OAAQ,kBAAC,GAAD,CAAe2C,OAAQA,EAAQnzB,IAAKA,EAAKuD,OAAQA,EAAQ2sB,IAAKA,EAAKqD,KAAMA,IAAWiB","file":"index.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"wpJsonMgcl\"] = window[\"wpJsonMgcl\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([101,1]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","module.exports = React;","module.exports = ReactDOM;","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\n\nconst NekoBusyOverlay = (props) => {\n const { spinner = true, busy = false, overlayStyle } = props;\n const [ showLoader, setShowLoader ] = useState(true);\n\n useEffect(() => {\n let timeout;\n\n // Show the loader\n if (!busy) { \n timeout = setTimeout(() => { \n setShowLoader(false); \n timeout = null; \n }, 250);\n }\n else { \n setShowLoader(true);\n }\n\n // Cleanup\n return (() => {\n if (timeout) {\n clearTimeout(timeout);\n }\n });\n }, [busy]);\n\n const loader = !showLoader ? null : (\n <React.Fragment>\n <div className={'overlay' + ' ' + (!busy ? 'overlayHidden' : '')} style={overlayStyle}>\n {Boolean(spinner) && \n <div className={'lds-ellipsis ' + (!busy ? 'spinnerHidden' : '')}>\n <div></div><div></div><div></div><div></div>\n </div>\n }\n </div>\n <style jsx>{`\n .overlay {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgb(30 124 186 / 85%);\n transition: opacity 1s ease-out;\n z-index: 10;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n overflow: hidden;\n }\n\n .overlayHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .spinnerHidden {\n opacity: 0;\n transition: opacity 0.25s ease-out;\n }\n .lds-ellipsis {\n position: relative;\n width: 80px;\n height: 80px;\n display: flex;\n justify-items: center;\n align-items: center;\n }\n .lds-ellipsis div {\n position: absolute;\n width: 13px;\n height: 13px;\n border-radius: 50%;\n background: white;\n animation-timing-function: cubic-bezier(0, 1, 1, 0);\n }\n .lds-ellipsis div:nth-child(1) {\n left: 8px;\n animation: lds-ellipsis1 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(2) {\n left: 8px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(3) {\n left: 32px;\n animation: lds-ellipsis2 0.6s infinite;\n }\n .lds-ellipsis div:nth-child(4) {\n left: 56px;\n animation: lds-ellipsis3 0.6s infinite;\n }\n @keyframes lds-ellipsis1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n }\n @keyframes lds-ellipsis3 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n }\n @keyframes lds-ellipsis2 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n } \n `}</style>\n </React.Fragment>\n );\n\n // I am removing the busy because I like it as a boolean...\n // ... but React doesn't like pure boolean value here.\n const propsForElement = { ...props, busy: undefined, spinner: undefined };\n return (\n <div style={{ position: 'relative' }} {...propsForElement}> \n {loader}\n {props.children}\n </div>\n );\n};\n\nNekoBusyOverlay.propTypes = {\n busy: PropTypes.bool.isRequired,\n spinner: PropTypes.bool,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node\n ]).isRequired\n};\n\nexport default NekoBusyOverlay;","export const NekoColors = {\n black: '#000000',\n blackRGB: '0, 0, 0',\n blue: '#007cba',\n blueRGB: '0, 124, 186',\n deepBlue: '#134575',\n finderBorder: '#DEDEDE',\n lightBlue: '#EBF3FF',\n lightGray: '#cacaca',\n lightGray2: '#F5F5F5',\n lightPurple: '#D8B1FF',\n gray: '#E8E8E8',\n green: '#0EA480',\n darkGray: '#A0A0A0',\n disabledForm: '#828282',\n orange: '#daa827',\n overlay: 'rgba(16, 16, 16, 0.92)',\n red: '#ba4300',\n redHighlight: '#de5307',\n header: '#007cba',\n proGray: '#7F8EA0',\n progress: '#8414a8',\n purple: '#956DBE',\n tableGray: '#FAFAFA',\n yellow: '#e4b42b',\n yellowRGB: '224, 156, 54',\n white: '#ffffff',\n whiteRGB: '255, 255, 255',\n}\n\nexport const NekoColorTheme = {\n danger: NekoColors.red,\n primary: NekoColors.blue,\n secondary: NekoColors.lightBlue,\n success: NekoColors.green,\n}\n\nconst NekoTheme = {\n\n // COLORS\n ...NekoColors,\n ...NekoColorTheme,\n\n // FONT\n\n fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell,\"Helvetica Neue\", sans-serif',\n fontSizeH1: '24px',\n fontSizeH2: '18px',\n fontSizeText: '13px',\n fontSizeSmall: '12px',\n fontSizeSmallButton: '10px',\n\n // SHADOW\n\n lightShadow: '0px 0px 10px rgba(0,0,0,0.1)',\n};\n\nexport default NekoTheme;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\n\nconst StyledCircleSpinner = Styled.div`\n width: ${props => props.size || '50%'};\n padding-top: ${props => props.size || '50%'};\n position: relative;\n margin: 0 auto;\n\n .double-bounce1, .double-bounce2 {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ${props => props.color || '#333'};\n opacity: 0.6;\n position: absolute;\n top: 0;\n left: 0;\n\n -webkit-animation: sk-bounce 2.0s infinite ease-in-out;\n animation: sk-bounce 2.0s infinite ease-in-out;\n }\n\n .double-bounce2 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n @-webkit-keyframes sk-bounce {\n 0%, 100% { -webkit-transform: scale(0.0) }\n 50% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bounce {\n 0%, 100% {\n transform: scale(0.0);\n -webkit-transform: scale(0.0);\n } 50% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n }\n`;\n\nconst CircleSpinner = (props) => {\n return (\n <StyledCircleSpinner {...props}>\n <div className=\"double-bounce1\"></div>\n <div className=\"double-bounce2\"></div>\n </StyledCircleSpinner>\n );\n};\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoSpinner = (props) => {\n const { type = 'circle', ...rest } = props;\n\n switch (type) {\n case 'circle':\n return <CircleSpinner {...rest} />\n\n default:\n return null;\n }\n};\n\nconst NekoSpinner = (props) => {\n return <StyledNekoSpinner {...props} />;\n};\n\nNekoSpinner.propTypes = {\n type: PropTypes.string,\n};\n\nNekoSpinner.defaultProps = {\n type: 'circle',\n};\n\nexport { NekoSpinner };\n","import lockCheck from '@iconify/icons-mdi/lock-check';\nimport lockOpenVariant from '@iconify/icons-mdi/lock-open-variant';\nimport fileUndo from '@iconify/icons-mdi/file-undo';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport playIcon from '@iconify/icons-mdi/play';\nimport replayIcon from '@iconify/icons-mdi/replay';\nimport checkIcon from '@iconify/icons-mdi/check';\nimport checkCircle from '@iconify/icons-mdi/check-circle';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport deleteIcon from '@iconify/icons-mdi/delete';\nimport undoIcon from '@iconify/icons-mdi/undo';\n//import alertIcon from '@iconify/icons-mdi/alert';\nimport alertCircle from '@iconify/icons-mdi/alert-circle';\nimport databaseIcon from '@iconify/icons-mdi/database';\nimport pencilIcon from '@iconify/icons-mdi/pencil';\nimport toolsIcon from '@iconify/icons-mdi/tools';\nimport cogIcon from '@iconify/icons-mdi/cog';\nimport closeIcon from '@iconify/icons-mdi/close';\nimport catIcon from '@iconify/icons-mdi/cat';\nimport trashCan from '@iconify/icons-mdi/trash-can';\nimport leadPencil from '@iconify/icons-mdi/lead-pencil';\nimport viewDashboard from '@iconify/icons-mdi/view-dashboard';\nimport databaseSearch from '@iconify/icons-mdi/database-search';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport plusIcon from '@iconify/icons-mdi/plus';\nimport folderPlus from '@iconify/icons-mdi/folder-plus';\nimport imagePlus from '@iconify/icons-mdi/image-plus';\nimport viewGrid from '@iconify/icons-mdi/view-grid';\nimport formatListBulleted from '@iconify/icons-mdi/format-list-bulleted';\nimport twitterIcon from '@iconify/icons-mdi/twitter';\nimport instagramIcon from '@iconify/icons-mdi/instagram';\nimport facebookIcon from '@iconify/icons-mdi/facebook';\nimport starIcon from '@iconify/icons-mdi/star';\nimport timerOutline from '@iconify/icons-mdi/timer-outline';\nimport arrowUpBoldCircleOutline from '@iconify/icons-mdi/arrow-up-bold-circle-outline';\nimport linkVariant from '@iconify/icons-mdi/link-variant';\nimport linkedin from '@iconify/icons-mdi/linkedin';\nimport pinterest from '@iconify/icons-mdi/pinterest';\nimport zoomIn from '@iconify/icons-mdi/zoom-in'\nimport infoOutline from '@iconify/icons-mdi/info-outline'\nimport arrowUp from '@iconify/icons-mdi/arrow-up'\nimport arrowDown from '@iconify/icons-mdi/arrow-down'\nimport sort from '@iconify/icons-mdi/sort'\nimport eye from '@iconify/icons-mdi/eye'\nimport rocketLaunch from '@iconify/icons-mdi/rocket-launch'\nimport calendarMonth from '@iconify/icons-mdi/calendar-month'\n\nconst presetIcons = {\n 'lock': lockCheck,\n 'lock-open': lockOpenVariant,\n 'file-undo': fileUndo,\n 'chevron-double-left': chevronDoubleLeft,\n 'chevron-double-right': chevronDoubleRight,\n 'chevron-left': chevronLeft,\n 'chevron-right': chevronRight,\n 'chevron-down': chevronDown,\n 'chevron-up': chevronUp,\n 'pause': pauseIcon,\n 'play': playIcon,\n 'replay': replayIcon,\n 'check': checkIcon,\n 'check-circle': checkCircle,\n 'stop': stopIcon,\n 'delete': deleteIcon,\n 'undo': undoIcon,\n 'alert': alertCircle,\n 'database': databaseIcon,\n 'tools': toolsIcon,\n 'cog': cogIcon,\n 'close': closeIcon,\n 'cat': catIcon,\n 'upload': arrowUpBoldCircleOutline,\n 'trash': trashCan,\n 'pencil': leadPencil,\n 'dashboard': viewDashboard,\n 'search': databaseSearch,\n 'folder': folderIcon,\n 'folder-open': folderOpen,\n 'image-multiple-outline': imageMultipleOutline,\n 'plus': plusIcon,\n 'folder-plus': folderPlus,\n 'image-plus': imagePlus,\n 'view-grid': viewGrid,\n 'format-list-bulleted': formatListBulleted,\n 'twitter': twitterIcon,\n 'instagram': instagramIcon,\n 'facebook': facebookIcon,\n 'star': starIcon,\n 'timer-outline': timerOutline,\n 'link': linkVariant,\n 'linkedin': linkedin,\n 'pinterest': pinterest,\n 'zoom-in': zoomIn,\n 'info-outline': infoOutline,\n 'arrow-up': arrowUp,\n 'arrow-down': arrowDown,\n 'sort': sort,\n 'eye': eye,\n 'rocket-launch': rocketLaunch,\n 'calendar-month': calendarMonth,\n};\n\nexport default presetIcons;","class NekoError {\n\n constructor(message, code = '', url = null, body = null, debug = {}, ) {\n this.url = url;\n this.message = message;\n this.code = code;\n this.body = body;\n this.debug = debug;\n }\n}\n\nexport { NekoError };","import { cache, mutate } from 'swr';\nimport { NekoError } from './errors';\n\n// This function allows to invalidate a SWR key which might\n// have been use for paging, for example: swrInvalidateMany('/api/items')\n// will reset everything which happens around this key.\n\nfunction swrInvalidateMany(select) {\n const keys = cache.keys();\n const mutations = [];\n let regexp = new RegExp(`(.*)${select}(.*)`);\n for (let key of keys) {\n if (regexp.test(key)) {\n mutations.push(mutate(key, null, true));\n }\n }\n return Promise.all(mutations);\n}\n\nfunction chunkArrayInGroups(arr, size) {\n let result = [];\n for (let i = 0; i < arr.length; i += size)\n result.push(arr.slice(i, i + size));\n return result;\n}\n\nconst consolidateJsonResult = (json) => {\n if (!json.data) {\n return json;\n }\n if (json.data.length > 0 && json.data[0].meta) {\n for (let x of json.data) {\n try { x.meta = JSON.parse(x.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n }\n else if (json.data.meta) {\n try { json.data.meta = JSON.parse(json.data.meta); }\n catch (err) { console.error('[JsonFetcher]', 'Could not decode meta.', x.meta); }\n }\n return json;\n}\n\nconst jsonFetcher = async (url, options = {}) => {\n let body = null;\n let json = {};\n let nekoError = null;\n let rawBody = null;\n\n try {\n options = options ? options : {};\n options.headers = options.headers ? options.headers : {};\n options.headers['Pragma'] = 'no-cache';\n options.headers['Cache-Control'] = 'no-cache';\n rawBody = await fetch(`${url}`, options);\n body = await rawBody.text();\n json = JSON.parse(body);\n if (!json.success) {\n let code = json.success === false ? 'NOT-SUCCESS' : 'N/A';\n let message = json.message ? json.message : 'Unknown error. Check your Console Logs.';\n if (json.code === 'rest_no_route') {\n message = \"The API can't be accessed. Is Rest API enabled?\";\n code = 'NO-ROUTE';\n }\n else if (json.code === 'internal_server_error') {\n message = \"Server error. Please check your PHP Error Logs.\";\n code = 'SERVER-ERROR';\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody);\n }\n }\n catch (error) {\n let code = 'BROKEN-REPLY';\n let message = \"The reply sent by the server is broken.\";\n if (rawBody && rawBody.status) {\n if (rawBody.status === 408) {\n code = \"REQUEST-TIMEOUT\";\n message = \"The request generated a timeout.\";\n }\n }\n nekoError = new NekoError(message, code, url, body ? body : rawBody, error);\n }\n\n // Rewrite the Json if there is an error\n if (nekoError) {\n console.error('[NekoError] JsonFetcher', nekoError.url, { code: nekoError.code, \n error: nekoError.error, body: nekoError.body });\n json.success = false;\n json.error = nekoError;\n }\n return consolidateJsonResult(json);\n}\n\nconst getFetch = async (url, json, signal, nonce) => {\n const nonceHeader = nonce ? { 'X-WP-Nonce': nonce } : {};\n return jsonFetcher(url, { \n method: 'GET', \n headers: { 'Content-Type': 'application/json', ...nonceHeader },\n signal: signal\n });\n}\n\nconst postFetch = async (url, config = {}) => {\n const { json = {}, signal, file, nonce } = config;\n let formData = file ? new FormData() : null;\n if (file) {\n formData.append('file', file);\n for (const [key, value] of Object.entries(json)) {\n formData.append(key, value);\n }\n }\n\n const headers = nonce ? { 'X-WP-Nonce': nonce } : {};\n if (!formData) {\n headers['Content-Type'] = 'application/json';\n }\n\n return jsonFetcher(url, { \n method: 'POST',\n headers: headers,\n body: formData ? formData :JSON.stringify(json) ,\n signal: signal\n });\n}\n\nconst buildUrlWithParams = (apiUrl, params) => {\n const isPlainPermalink = apiUrl.includes('index.php?rest_route');\n const urlParams = new URLSearchParams(params);\n const finalUrl = apiUrl + (isPlainPermalink ? '&' : '?') + urlParams.toString();\n return finalUrl;\n}\n\nconst formatBytes = (bytes, decimals = 2) => {\n //if (bytes === 0) return '0 Bytes';\n const k = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n let i = bytes > 0 ? Math.floor(Math.log(bytes) / Math.log(k)) : 0;\n if ( sizes[i] === 'Bytes' ) {\n i = 1;\n }\n bytes = parseFloat((bytes / Math.pow(k, i)).toFixed(dm));\n var str = bytes.toFixed(Math.max(dm, (bytes.toString().split('.')[1] || []).length));\n return str + ' ' + sizes[i];\n}\n\nfunction sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n\nexport { getFetch, postFetch, jsonFetcher, swrInvalidateMany, chunkArrayInGroups,\n buildUrlWithParams, formatBytes, sleep };","import { useState, useRef, useEffect, useCallback } from 'react';\nimport PQueue from 'p-queue';\nimport { sleep } from './helpers';\n\nconst useHandleSWR = (swrData = undefined, defaultData = null, defaultBusy = false) => {\n const [ data, setData ] = useState(defaultData);\n const [ error, setError ] = useState(null);\n const [ busy, setBusy ] = useState(defaultBusy);\n const [ total, setTotal ] = useState(0);\n\n useEffect(() => {\n if (swrData !== undefined) { \n if (swrData.success) {\n setError(null);\n setData(swrData.data);\n setTotal(swrData.total ? swrData.total : 0);\n }\n else {\n setError(swrData.error);\n }\n }\n setBusy(swrData === undefined);\n }, [ swrData ]);\n\n return { busy, data, total, error };\n}\n\n// Sometimes, we need to align or place elements depending on other dynamic elements.\n// This hook returns a ref (which should be assign to a component), and the size of\n// this element every time it changes.\n\nconst useComponentSize = () => {\n const ref = useRef();\n const [ size, setSize ] = useState({});\n\n useEffect(() => {\n if (ref && ref.current) {\n const observer = new ResizeObserver(entries => {\n let element = entries[0];\n if (element.contentRect) {\n setSize({ \n width: element.contentRect.left + element.contentRect.right, \n height: element.contentRect.top + element.contentRect.bottom \n });\n }\n });\n observer.observe(ref.current);\n return () => { observer.unobserve(ref.current); };\n }\n }, []);\n return { ref, width: size.width ? size.width : 0, height: size.height ? size.height : 0 };\n};\n\n// If a click is made outside the component, then the function onOutsideClick is called.\n// This function returns a ref which needs to be assigned to the component.\n\nconst useOutsideClick = (onOutsideClick) => {\n const componentRef = useRef();\n const handleOutsideClick = (e) => {\n if (!onOutsideClick || componentRef.current.contains(e.target)) {\n return;\n }\n onOutsideClick();\n };\n useEffect(() => {\n document.addEventListener(\"mousedown\", handleOutsideClick);\n return () => { document.removeEventListener(\"mousedown\", handleOutsideClick); };\n });\n return componentRef;\n};\n\n\n// This hook allows calling many requests without having too many of them\n// running concurrently.\n\nlet GlobalQueue = null;\n\nconst useNekoGlobalQueue = (params = {}) => {\n\n if (!GlobalQueue) {\n let { concurrency = 2 } = params;\n GlobalQueue = new PQueue({ concurrency, autoStart: true });\n }\n\n const runTask = async (func) => {\n return await GlobalQueue.add(func);\n }\n\n return { runTask };\n};\n\n// This hook handles batch of asynchronous requests, and provide everything\n// the NekoProgress might need.\n\nconst isDebug = true;\nconst UploadQueue = new PQueue({ concurrency: 1, autoStart: false });\n\nconst useNekoTasks = () => {\n\n // We should be able to kill fetch requests using this\n // Interesting article: https://davidwalsh.name/cancel-fetch\n const [ controller, setController ] = useState(new AbortController());\n const refSkip = useRef(false);\n const refErrors = useRef(0);\n const refCurrentTask = useRef(null);\n const refRetries = useRef(0);\n const refRetriesLeft = useRef(0);\n const [ isSleeping, setIsSleeping ] = useState(false);\n const [ busy, setBusy ] = useState(null);\n const [ paused, setPaused ] = useState(false);\n const [ max, setMax ] = useState(0);\n const [ error, setError ] = useState(false);\n const [ success, setSuccess ] = useState(false);\n const [ value, setValue ] = useState(0);\n\n const reset = async () => {\n let newController = new AbortController();\n setController(newController);\n setError(false);\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setValue(0);\n setMax(0);\n };\n\n const start = async (tasks) => {\n const runnerPromise = new Promise((resolve, reject) => {\n setError(false);\n refRetries.current = 0;\n refRetriesLeft.current = 0;\n refErrors.current = 0;\n refSkip.current = false;\n setPaused(false);\n setSuccess(false);\n setTasks(tasks);\n setBusy(true);\n if (isDebug) { console.log('[useNekoTasks] Start.'); }\n UploadQueue.start();\n UploadQueue.onIdle().then(() => {\n onIdle();\n resolve();\n }); \n });\n return runnerPromise;\n };\n\n const pause = async () => {\n if (isDebug) { console.log('[useNekoTasks] Pause.'); }\n UploadQueue.pause();\n setPaused(true);\n };\n\n const resume = async () => {\n if (isDebug) { console.log('[useNekoTasks] Resume.'); }\n setError(false);\n setPaused(false);\n UploadQueue.start();\n };\n\n const autoRetry = async (maxRetries = 5) => {\n refRetries.current = maxRetries;\n refRetriesLeft.current = maxRetries;\n retry();\n }\n\n const retry = async () => {\n if (isDebug) { console.log('[useNekoTasks] Retrying.'); }\n setError(false);\n setPaused(false);\n if (refRetriesLeft.current > 0) {\n if (refRetriesLeft.current < refRetries.current) {\n let retries = refRetries.current - refRetriesLeft.current;\n setIsSleeping(true);\n let sleepFor = retries * 5000;\n if (isDebug) {\n console.log(`[useNekoTasks] Sleep for ${sleepFor}ms.`);\n }\n await sleep(sleepFor);\n setIsSleeping(false);\n }\n refRetriesLeft.current--;\n }\n if (refCurrentTask.current) {\n await executeTask(refCurrentTask.current, true);\n }\n //UploadQueue.start();\n };\n\n const stop = async () => {\n if (isDebug) { console.log('[useNekoTasks] Cancel.'); }\n UploadQueue.pause();\n controller.abort();\n setBusy(false);\n setError(false);\n setSuccess(false);\n };\n\n const onIdle = async () => {\n if (isDebug) { console.log('[useNekoTasks] onIdle.'); }\n setSuccess(true);\n setBusy(false);\n };\n\n const executeTask = async(task, isRetry = false) => {\n try {\n if (isRetry) {\n refErrors.current--;\n setValue(value => value - 1);\n }\n refCurrentTask.current = task;\n let res = await task(controller.signal);\n if (!res || !res.success) {\n console.error('[useNekoTasks] The function for that task did not return anything.', res);\n }\n if (!res.success) {\n refErrors.current++;\n\n // Otherwise, if \"auto-skip\" is not set, we set an error and break.\n if (!refSkip.current) {\n pause();\n // If there are retries left, let's retry.\n if (refRetriesLeft.current > 0) {\n retry();\n return;\n }\n else {\n setError(res.error);\n }\n }\n }\n // If we are retrying a task and it is successful, we should restart PQueue\n else if (isRetry) {\n refRetriesLeft.current = refRetries.current;\n UploadQueue.start();\n }\n }\n catch (err) {\n if (err.name === 'AbortError') {\n console.log('[useNekoTasks] Aborted');\n return;\n }\n else {\n refErrors.current++;\n if (!refSkip.current) {\n setError(\"[useNekoTasks] An error was caught (more information in the console).\");\n pause();\n }\n }\n }\n finally {\n setValue(value => value + 1);\n }\n }\n\n const addTask = async (task) => {\n UploadQueue.add(async () => executeTask(task));\n setMax(max => max + 1);\n }\n\n const setTasks = async (tasks) => {\n UploadQueue.clear();\n for (let task of tasks) {\n addTask(task);\n }\n setValue(0);\n };\n\n const setAlwaysSkip = useCallback((value = true) => {\n refSkip.current = true;\n }, []);\n\n const getErrorCount = useCallback(() => {\n return refErrors.current;\n }, []);\n\n return { start, stop, pause, resume, reset, retry, autoRetry, isSleeping,\n addTask, setAlwaysSkip, getErrorCount,\n error, success, busy, paused, value, max };\n};\n\nconst useKeyboardEvent = () => {\n\tconst [ pressShift, setPressShift ] = useState(false);\n const [ pressControl, setPressControl ] = useState(false);\n\n\tconst keydownFunction = useCallback((e) => {\n\t\tsetPressShift(e.shiftKey);\n setPressControl(e.ctrlKey || e.metaKey);\n\t}, []);\n\tconst keyupFunction = useCallback(() => {\n\t\tsetPressShift(false);\n setPressControl(false);\n\t}, []);\n\n\tuseEffect(() => {\n\t\tdocument.addEventListener(\"keydown\", keydownFunction, false);\n\t\tdocument.addEventListener(\"keyup\", keyupFunction, false);\n\n\t\treturn () => {\n\t\tdocument.removeEventListener(\"keydown\", keydownFunction, false);\n\t\tdocument.removeEventListener(\"keyup\", keyupFunction, false);\n\t\t}\n\t}, []);\n\n\treturn { pressShift, pressControl };\n}\n\nexport { useHandleSWR, useOutsideClick, useNekoGlobalQueue, useNekoTasks, useComponentSize, useKeyboardEvent };","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport { useComponentSize } from '../hooks';\nimport Theme from '../common/NekoTheme';\n\nconst TooltipContainer = Styled.div`\n\tdisplay: flex;\n`;\n\nconst Tooltip = Styled.div`\n\tbackground-color: rgba(${Theme.blackRGB}, 0.8);\n\tborder-radius: 4px;\n\tcolor: ${Theme.white};\n\tfont-family: ${Theme.fontFamily};\n\tfont-weight: normal;\n\tmin-width: 180px;\n\tmax-width: 280px;\n\tfont-size: ${Theme.fontSizeText};\n\tpadding: 8px 12px;\n\tposition: absolute;\n \tmax-width: 280px;\n\tword-break: break-word;\n\tdisplay: ${prop => prop.visible ? 'inline-block' : 'none'};\n\tz-index: 100;\n\n\t&:before {\n\t\tcontent: \"\";\n\t\tposition: absolute;\n\t\tborder: 4px solid transparent;\n\t}\n\n\t&.top {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\tborder-top: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.left {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tright: -8px;\n\t\t\tborder-left: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.right {\n\t\t&:before {\n\t\t\tmargin-top: -4px;\n\t\t\ttop: 50%;\n\t\t\tleft: -8px;\n\t\t\tborder-right: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t&.bottom {\n\t\t&:before {\n\t\t\tmargin-left: -4px;\n\t\t\ttop: -8px;\n\t\t\tleft: 50%;\n\t\t\tborder-bottom: 4px solid rgba(${Theme.blackRGB}, 0.8);\n\t\t}\n\t}\n\n\t${prop => prop.style}\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTooltip = props => {\n\tconst { text = 'Hello world!', position = 'top' } = props;\n\tconst [ show, setShow ] = useState(false);\n\tconst { ref: tooltipRef, width: tooltipWidth, height: tooltipHeight } = useComponentSize();\n\tconst { ref: childRef, width: childWidth, height: childHeight } = useComponentSize();\n\n\tconst transformStyle = useMemo(() => {\n\t\tconst pointerSize = 5;\n\t\tlet transY = 0;\n\t\tlet transX = 0;\n\n\t\tif (position === 'top') {\n\t\t\ttransY = -1 * tooltipHeight - pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'bottom') {\n\t\t\ttransY = childHeight + pointerSize;\n\t\t\ttransX = -1 * (tooltipWidth / 2) + (childWidth / 2);\n\t\t}\n\t\telse if (position === 'left') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = -1 * tooltipWidth - pointerSize;\n\t\t}\n\t\telse if (position === 'right') {\n\t\t\tconst diff = tooltipHeight - childHeight;\n\t\t\ttransY = -1 * (diff / 2);\n\t\t\ttransX = childWidth + pointerSize;\n\t\t}\n\t\t\n\t\treturn { \n\t\t\ttransform: `translateX(${transX}px) translateY(${transY}px)`\n\t\t};\n\n\t}, [position, tooltipWidth, tooltipHeight, childWidth, childHeight])\n\n\treturn (\n\t\t<TooltipContainer>\n\t\t\t<Tooltip ref={tooltipRef} visible={show} className={position} style={transformStyle}>\n\t\t\t\t{text}\n\t\t\t</Tooltip>\n\t\t\t<div ref={childRef} onMouseEnter={() => text && setShow(true)} onMouseLeave={() => setShow(false)}>\n\t\t\t\t{props.children}\n\t\t\t</div>\n\t\t</TooltipContainer>\n\t);\n};\n\nconst NekoTooltip = (props) => {\n return (<StyledNekoTooltip {...props} />);\n}\n\nNekoTooltip.propTypes = {\n\ttext: PropTypes.string,\n\tposition: PropTypes.oneOf(['top', 'right', 'bottom', 'left'])\n};\n\nNekoTooltip.defaultProps = {\n\ttext: 'Hello world!',\n\tposition: 'top'\n};\n\nexport { NekoTooltip };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, IconifyIcon } from '@iconify/react';\n\nimport PresetIcons from '../common/PresetIcons';\nimport { NekoTooltip } from './Tooltip';\n\nconst StyledIconContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst hoverColor = (color, hoverColor) => {\n if (hoverColor) {\n return `\n &:hover {\n path {\n fill: ${hoverColor};\n }\n }\n `;\n }\n if (color) {\n return `\n &:hover {\n path {\n fill: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\nconst StyledIcon = Styled(Icon)`\n\n path {\n fill: ${props => props.color};\n }\n\n ${props => hoverColor(props.color, props.hoverColor)}\n\n &.nui-clickable {\n cursor: pointer;\n }\n\n &.spin {\n animation-name: spin;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n @keyframes spin {\n 0% {\n transform: rotate(360deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n }\n }\n\n &.busy {\n animation: crescendo 0.4s alternate infinite;\n @keyframes crescendo {\n 0% {transform: scale(.65);}\n 100% {transform: scale(1);}\n }\n }\n\n &.disabled {\n pointer-events: none;\n opacity: 0.35;\n cursor: default;\n }\n`;\n\nconst StyledNekoIcon = props => {\n\n let { icon, spinning = false, className = '', title, tooltip, containerStyle, color, hoverColor,\n disabled = false, raw, isBusy = false, ...rest } = props;\n\n if (!rest.width && !rest.height) {\n rest.width = rest.height = 30;\n }\n\n const getIcon = () => {\n if (typeof icon === 'string') {\n return PresetIcons[icon] || null;\n }\n return icon;\n };\n\n const iconClassName = `nui-icon ${className}${rest.onClick ? ' nui-clickable' : ''}${spinning ? ' spin' : ''}${disabled ? ' disabled' : ''}${isBusy ? ' busy' : ''}`;\n\n if (tooltip) {\n return (\n <NekoTooltip text={tooltip.text} position={tooltip.position || 'top'}>\n <StyledIconContainer style={containerStyle}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest}/>\n </StyledIconContainer>\n </NekoTooltip>\n );\n }\n\n if (raw) {\n return <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n }\n\n return (\n <StyledIconContainer style={containerStyle} title={title}>\n <StyledIcon icon={getIcon()} className={iconClassName} color={color} hoverColor={hoverColor} {...rest} />\n {!tooltip ? null : <NekoTooltip>{tooltip}</NekoTooltip>}\n </StyledIconContainer>\n );\n};\n\nconst NekoIcon = (props) => {\n return (<StyledNekoIcon {...props} />);\n};\n\nNekoIcon.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['lock' ,'lock-open' ,'file-undo' ,'chevron-double-left' ,'chevron-double-right' ,'chevron-left' ,'chevron-right' ,'chevron-down' ,'chevron-up' ,'pause' ,'play' ,'replay' ,'check' ,'stop' ,'delete' ,'undo' ,'alert' ,'database' ,'pencil' ,'tools' ,'cog' ,'close' ,'cat' ,'upload'])]),\n color: PropTypes.string,\n spinning: PropTypes.bool,\n className: PropTypes.string,\n tooltip: PropTypes.string,\n raw: PropTypes.bool,\n isBusy: PropTypes.bool,\n};\n\nNekoIcon.defaultProps = {\n icon: undefined,\n color: undefined,\n spinning: false,\n className: '',\n tooltip: undefined,\n raw: undefined,\n isBusy: false,\n};\n\nexport { NekoIcon };\n","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { IconifyIcon } from '@iconify/react';\nimport { NekoSpinner } from '../misc/Spinner';\nimport { NekoIcon } from '../misc/Icon';\n\nconst StyledButton = Styled(props => {\n\n const { className, icon = null, onClick, disabled = false, color = null, small, isBusy = false, width, height,\n children, rounded, busyText, spinning = false, hideBusyIcon = false, busyIconSize, ...rest } = props;\n const hasIcon = !!icon;\n const iconWidth = useMemo(() => {\n const base = width ?? 30;\n return rounded ? base - 10 : base - 6;\n }, [width, rounded]);\n const spinnerSize = useMemo(() => {\n if (busyIconSize) return busyIconSize;\n return rounded ? '82%' : '35%';\n }, [rounded, busyIconSize]);\n\n const classNames = `nui-button ${className || ''}${hasIcon ? ' has-icon' : ''}${color ? ' custom-color' : ''}${small ? ' small' : ''}${rounded ? ' rounded' : ''}${isBusy ? ' busy' : ''}`;\n\n return (\n <button type=\"button\" className={classNames} onClick={onClick} disabled={disabled} {...rest}>\n {isBusy && !hideBusyIcon && <NekoSpinner type=\"circle\" color=\"#fff\" size={spinnerSize} />}\n {isBusy && !!busyText && <span style={{ marginLeft: hideBusyIcon ? 0 : '4px', marginRight: '2xp' }}>{busyText}</span>}\n {hasIcon && !isBusy && <NekoIcon icon={icon} width={iconWidth} height={iconWidth} spinning={spinning} raw style={ rounded ? { margin: '0 auto' } : {}} />}\n {!!children && !isBusy && <span style={{ marginLeft: hasIcon ? '4px' : 0, marginRight: hasIcon ? '2xp' : 0 }}>{children}</span>}\n </button>\n );\n})`\n display: inline-block;\n box-sizing: border-box;\n height: 30px;\n min-height: 30px;\n min-width: 6em;\n border: none;\n border-radius: 4px;\n text-align: center;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n padding: 0 15px;\n\n background-color: ${Theme.blue};\n color: white;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.has-icon {\n align-items: center;\n display: inline-flex;\n padding: 2.5px 8px;\n }\n\n &.secondary {\n background-color: ${Theme.lightBlue};\n border: 1px solid ${Theme.blue};\n color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.lightBlue)};\n }\n }\n\n &.danger {\n background-color: ${Theme.red};\n border-color: ${Theme.red};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.red)};\n\t }\n }\n\n &.success {\n background-color: ${Theme.green};\n border-color: ${Theme.green};\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.green)};\n\t }\n }\n\n & + button {\n margin-left: .25rem;\n }\n\n &.small {\n font-size: ${Theme.fontSizeSmallButton};\n height: 24px;\n }\n\n &.header {\n background-color: ${Theme.deepBlue};\n border-color: ${Theme.deepBlue};\n height: 40px;\n padding: 0 20px;\n\n\t &:hover {\n\t\t background-color: ${lighten(0.1, Theme.deepBlue)};\n\t }\n }\n\n &.rounded {\n border-radius: 100%;\n min-width: 30px;\n height: ${props => props.height ?? (props.width ?? 30)}px;\n width: ${props => props.width ?? 30}px;\n padding: 3px;\n }\n\n &.busy {\n pointer-events: none;\n }\n\n ${props => additionalColor(props.color)}\n`;\n\nconst additionalColor = (color) => {\n if (color) {\n return `\n &.custom-color {\n background-color: ${color};\n border: 1px solid ${color};\n\n &:hover {\n background-color: ${lighten(0.1, color)};\n }\n }\n `;\n }\n};\n\n/**\n * The NekoButton works out of the box without specific attributes.\n */\nconst NekoButton = (props) => {\n return (<StyledButton {...props} />);\n};\n\nNekoButton.propTypes = {\n className: PropTypes.oneOf(['primary', 'secondary', 'danger', 'success', 'header']),\n disabled: PropTypes.bool,\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['setting', 'edit', 'trash'])]),\n color: PropTypes.string,\n onClick: PropTypes.func.isRequired,\n rounded: PropTypes.bool,\n isBusy: PropTypes.bool,\n spinning: PropTypes.bool,\n busyText: PropTypes.string,\n hideBusyIcon: PropTypes.bool,\n busyIconSize: PropTypes.string,\n};\n\nNekoButton.defaultProps = {\n className: 'primary',\n disabled: false,\n icon: null,\n color: null,\n onClick: () => {},\n rounded: undefined,\n isBusy: false,\n spinning: false,\n busyText: undefined,\n hideBusyIcon: false,\n busyIconSize: undefined,\n};\n\nexport { NekoButton };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\nimport Theme from '../common/NekoTheme';\n\nconst Tag = Styled.a`\n background-color: ${Colors.yellow};\n position: relative;\n border-radius: 10px;\n color: ${Colors.white};\n font-family: ${Theme.fontFamily};\n font-size: 9px;\n line-height: 10px;\n padding: 5px 8px;\n text-transform: uppercase;\n text-decoration: none;\n\n &:hover {\n color: ${Colors.white};\n background-color: #f78c1f;\n }\n\n &.inline {\n display: inline;\n margin-left: 5px;\n vertical-align: middle;\n }\n`;\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledProOnly = (props) => {\n\n const { show = true, className, ...rest } = props;\n\n if (!show) {\n return null;\n }\n\n return (\n <Tag href='https://store.meowapps.com' target='_blank' className={`${className || ''}`} {...rest}>\n Pro Only\n </Tag>\n );\n};\n\nconst ProOnly = (props) => {\n return (<StyledProOnly {...props} />);\n}\n\nProOnly.propTypes = {\n show: PropTypes.bool,\n className: PropTypes.string\n};\n\nProOnly.defaultProps = {\n show: true,\n className: undefined\n};\n\nexport { ProOnly };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport { useOutsideClick, useComponentSize } from '../hooks';\n\nconst MenuButtonWrapper = Styled.div`\n display: inline-block;\n`;\n\nconst MenuButton = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n border-radius: 4px;\n box-sizing: border-box;\n color: white;\n display: inline-flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n height: 30px;\n min-width: 6em;\n padding: 0px 10px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n & + button {\n margin-left: .25rem;\n }\n`;\n\nconst MenuItemContainer = Styled.div`\n position: relative;\n display: block;\n margin-top: 18px;\n background-color: ${Theme.blue};\n position: absolute;\n z-index: 10;\n box-shadow: ${Theme.lightShadow};\n\n &:before {\n content: \"\";\n position: absolute;\n top: -18px;\n left: 50%;\n margin-left: -8px;\n border: 8px solid transparent;\n border-bottom: 10px solid ${Theme.blue};\n }\n`;\n\nconst StyledMenuButton = props => {\n\n const { title, disabled = false, isPro = false, style = {}, hideChevron, titleStyle = {} } = props;\n const [ isOpen, setIsOpen ] = React.useState(false);\n const wrapperRef = useOutsideClick(() => { setIsOpen(false) });\n const { ref: buttonRef, width: buttonWidth } = useComponentSize();\n\n const onClick = () => {\n setIsOpen(!isOpen);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n isPro,\n disabled: child.props.disabled || disabled,\n onClick: () => {\n if (child.props.onClick) {\n child.props.onClick();\n }\n onClick();\n }\n });\n });\n\n return (\n <MenuButtonWrapper ref={wrapperRef}>\n <MenuButton ref={buttonRef} type=\"button\" disabled={disabled} onClick={onClick} style={style}>\n <span style={titleStyle}>{title}</span>\n {!hideChevron && <Icon icon={chevronDown} width=\"24\" height=\"24\" style={{ marginLeft: '4px' }} />}\n </MenuButton>\n {isOpen &&\n <MenuItemContainer style={{ transform: `translateX(calc(-50% + ${buttonWidth / 2}px))` }}>\n {children}\n </MenuItemContainer>\n }\n </MenuButtonWrapper>\n );\n};\n\nconst MenuItem = Styled.button`\n align-items: center;\n background-color: ${Theme.blue};\n border: none;\n box-sizing: border-box;\n color: white;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n width: 100%;\n padding: 8px 15px 8px 15px;\n text-align: center;\n transition: background-color .10s, opacity .25s;\n\n :not([disabled]):hover {\n cursor: pointer;\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n :disabled:not(.is-pro) {\n opacity: 0.35;\n }\n\n :focus {\n outline: none;\n }\n\n &.is-pro {\n background-color: ${Theme.proGray};\n justify-content: space-between;\n }\n\n &.separator {\n border-top: 1px solid ${Theme.white};\n font-size: 10px;\n padding: 5px;\n }\n`;\n\nconst StyledNekoMenuItem = props => {\n\n const { onClick, children, isPro, requirePro = false, disabled, separator } = props;\n const needsProUser = requirePro && !isPro;\n\n return (\n <MenuItem type=\"button\" className={`${needsProUser? 'is-pro' : ''} ${separator ? 'separator' : ''}`} onClick={onClick} disabled={disabled || needsProUser}>\n <span>{children}</span>\n {needsProUser && !isPro && <ProOnly />}\n </MenuItem>\n );\n};\n\n/**\n * The NekoMenuButton works out of the box without specific attributes.\n */\nconst NekoMenuButton = (props) => {\n return (<StyledMenuButton {...props} />);\n}\nconst NekoMenuItem = (props) => {\n return (<StyledNekoMenuItem {...props} />);\n}\n\nNekoMenuButton.propTypes = {\n title: PropTypes.string,\n disabled: PropTypes.bool,\n isPro: PropTypes.bool,\n hideChevron: PropTypes.bool,\n style: PropTypes.object,\n titleStyle: PropTypes.object,\n};\n\nNekoMenuButton.defaultProps = {\n title: undefined,\n disabled: false,\n isPro: false,\n hideChevron: undefined,\n style: {},\n titleStyle: {},\n};\n\nNekoMenuItem.propTypes = {\n onClick: PropTypes.func.isRequired,\n requirePro: PropTypes.bool,\n separator: PropTypes.bool,\n};\n\nNekoMenuItem.defaultProps = {\n onClick: () => {},\n requirePro: false,\n separator: undefined,\n};\n\nexport { NekoMenuButton, NekoMenuItem };\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoButton } from '../button/Button';\n\nconst Page = Styled.div`\n position: relative;\n background: #f1f1f1;\n margin-left: -20px;\n background-color: rgb(30 124 186 / 10%);\n padding-bottom: 50px;\n margin-bottom: -26px;\n\n .neko-rest-error {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: #1e232deb;\n z-index: 100;\n\n .container {\n color: white;\n padding: 5px 20px 15px 20px;\n min-width: 480px;\n max-width: 600px;\n border-radius: 20px;\n background: #883131;\n margin-left: 50%;\n transform: translateX(-50%);\n margin-top: 100px;\n\n h3 {\n color: white;\n }\n\n .neko-debug {\n padding: 5px 10px;\n background: #692426;\n border-radius: 10px;\n\n * {\n margin: 0px;\n padding: 0px;\n } \n }\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoPage = props => {\n\n const { className, children, nekoErrors = [], style = {} } = props;\n const [ fatalError, setFatalError ] = useState(false);\n const [ showBody, setShowBody ] = useState(false);\n\n if (nekoErrors && !fatalError) {\n for (let error of nekoErrors) {\n if (error) {\n setFatalError(error);\n break\n }\n }\n }\n\n return (\n <Page className={className || ''} style={style}>\n {fatalError && \n <div className='neko-rest-error'>\n <div className='container'>\n {!showBody &&\n <>\n <h3>The Rest API is disabled or broken 😢</h3>\n <p>The Rest API is required for this plugin to work. It is enabled in WordPress by default since December 2016 and used by the Gutenberg Editor since 2019. In short, it allows more robustness and a much cleaner infrastructure. Soon, Wordpress will entirely depends on it, so it is important to keep it enabled.</p>\n <p><i>Last but not least: check your PHP Error Logs and your Debugging Console.</i></p>\n <p className='neko-debug'>\n <small>\n URL: {fatalError.url}<br />\n CODE: {fatalError.code}<br />\n MESSAGE: {fatalError.message}<br />\n </small>\n </p>\n </>\n }\n {fatalError.body && showBody &&\n <p className='neko-debug'>\n <div dangerouslySetInnerHTML={{ __html: fatalError.body }}></div>\n </p>\n }\n {fatalError.body &&\n <NekoButton color=\"#a94242\" onClick={() => setShowBody(!showBody)}>\n {showBody ? 'Hide' : 'Display'} response from server\n </NekoButton>\n }\n <NekoButton color=\"#a94242\" onClick={() => { window.open('https://meowapps.com/fix-wordpress-rest-api/', '_blank') }}>\n Learn about WordPress Debugging\n </NekoButton>\n </div>\n </div>}\n {children}\n </Page>\n );\n};\n\nconst NekoPage = (props) => {\n return (<StyledNekoPage {...props} />);\n};\n\nNekoPage.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n nekoErrors: PropTypes.bool\n};\n\nNekoPage.defaultProps = {\n className: undefined,\n style: {},\n nekoErrors: false\n};\n\nexport { NekoPage };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nimport Theme from '../common/NekoTheme';\n\nconst NekoH1 = Styled.h1`\n font-family: ${Theme.fontFamily};\n font-weight: normal;\n font-size: ${Theme.fontSizeH1};\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoH2 = Styled.h2`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeH2};\n font-weight: normal;\n line-height: normal;\n margin-top: 0;\n margin-bottom: 16px;\n padding: 0;\n`;\n\nconst NekoP = Styled.p`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 16px 0 24px;\n padding: 0;\n`;\n\nconst NekoSpan = Styled.span`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\nconst NekoLabel = Styled.label`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n line-height: normal;\n margin: 0;\n padding: 0;\n`;\n\n/**\n * @param {string} (variant) Tag Name\n */\nconst StyledNekoTypo = props => {\n const { children, ...rest } = props;\n\n return (\n props.h1 ? <NekoH1 {...rest}>{children}</NekoH1>\n : props.h2 ? <NekoH2 {...rest}>{children}</NekoH2>\n : props.p ? <NekoP {...rest}>{children}</NekoP>\n : props.label ? <NekoLabel {...rest}>{children}</NekoLabel>\n : <NekoSpan {...rest}>{children}</NekoSpan>\n );\n};\n\nconst NekoTypo = (props) => {\n return (<StyledNekoTypo {...props} />);\n}\n\nNekoTypo.propTypes = {\n h1: PropTypes.any,\n h2: PropTypes.any,\n p: PropTypes.any\n};\n\nNekoTypo.defaultProps = {\n h1: undefined,\n h2: undefined,\n p: undefined\n};\n\nexport { NekoTypo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoTypo } from '../misc/Typography';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Block = Styled.div`\n font-size: ${Theme.fontSizeText};\n margin-bottom: 15px;\n\n .nui-block-header {\n display: flex;\n justify-content: space-between;\n }\n\n .nui-block-title {\n color: ${Theme.blue};\n padding: 5px 10px;\n margin-bottom: 5px;\n }\n\n .nui-block-content {\n background-color: #f1f1f1;\n padding: 26px;\n box-shadow: 0px 2px 5px 0px #0000004a;\n border-radius: 10px;\n\n p:first-child {\n margin-top: 0;\n }\n\n p:last-child {\n margin-bottom: 0;\n }\n }\n\n &.primary {\n padding: 8px;\n background-color: ${Theme.blue};\n\n .nui-block-title {\n color: ${Theme.white};\n }\n\n .nui-block-content {\n background-color: ${Theme.white};\n }\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoBlock = props => {\n\n const { title, children, className, busy = false, style = {}, contentStyle = {}, action } = props;\n\n return (\n <Block className={'nui-block ' + (className || '')} style={style}>\n <NekoBusyOverlay busy={busy}>\n <div className=\"nui-block-header\">\n <NekoTypo h2 className=\"nui-block-title\">{title}</NekoTypo>\n {!!action && action}\n </div>\n <div className=\"nui-block-content\" style={contentStyle}>\n {children}\n </div>\n </NekoBusyOverlay>\n </Block>\n );\n};\n\nconst NekoBlock = (props) => {\n return (<StyledNekoBlock {...props} />);\n}\n\nNekoBlock.propTypes = {\n title: PropTypes.string,\n className: PropTypes.oneOf(['', 'primary']),\n style: PropTypes.object,\n action: PropTypes.element,\n};\n\nNekoBlock.defaultProps = {\n title: undefined,\n className: '',\n style: {},\n action: undefined,\n};\n\nexport { NekoBlock };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Container = Styled.div`\n font-size: ${Theme.fontSizeText};\n font-family: ${Theme.fontFamily};\n background-color: ${Theme.white};\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);\n margin-bottom: 25px;\n\n &.primary {\n background-color: ${Theme.blue};\n }\n\n p:first-child {\n margin-top: 0px;\n }\n\n p:last-child {\n margin-bottom: 0px;\n }\n\n .content {\n padding: 20px 20px;\n }\n`;\n\nconst Bar = Styled.div`\n justify-content: flex-start;\n background-color: ${Theme.lightGray2};\n display: flex;\n align-items: center;\n padding: 8px 10px;\n\n &.align-right {\n justify-content: flex-end;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoContainer = props => {\n\n const { children, header, headerAlign = 'left', footer, footerAlign = 'right', className, style = {} } = props;\n\n return (\n <Container className={className || ''} style={style}>\n {header && <Bar className={`align-${headerAlign}`}>{ header }</Bar>}\n <div className=\"content\">\n { children }\n </div>\n {footer && <Bar className={`align-${footerAlign}`}>{ footer }</Bar>}\n </Container>\n );\n};\n\nconst NekoContainer = (props) => {\n return (<StyledNekoContainer {...props} />);\n}\n\nNekoContainer.propTypes = {\n header: PropTypes.element,\n headerAlign: PropTypes.oneOf(['left', 'right']),\n footer: PropTypes.element,\n footerAlign: PropTypes.oneOf(['left', 'right']),\n className: PropTypes.string,\n style: PropTypes.object\n};\nNekoContainer.defaultProps = {\n header: undefined,\n headerAlign: 'left',\n footer: undefined,\n footerAlign: 'right',\n className: undefined,\n style: {}\n};\n\nexport { NekoContainer };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} title=''\n */\nconst StyledNekoSettings = Styled(props => {\n const { title = '', contentAlign = 'left' } = props;\n return (\n <div className={props.className || ''}>\n {title ? <div className=\"nui-settings-head\">{title}</div> : null}\n <div className={`nui-settings-content nui-settings-content-align-${contentAlign}`}>\n {props.children}\n </div>\n </div>\n );\n})`\n display: flex;\n font-family: ${Theme.fontFamily};\n\n > .nui-settings-head {\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n width: 120px;\n margin-right: 16px;\n }\n\n /* Select, Checkbox, Input need to be a bit higher to be in front of the settings title */\n\n .nui-settings-content > .nui-select:first-child {\n position: relative;\n margin-top: -5px;\n }\n \n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-checkbox:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > .nui-button:first-child {\n position: relative;\n margin-top: -5px;\n }\n\n .nui-settings-content > div:first-child > .neko-input {\n position: relative;\n margin-top: -5px;\n }\n\n > .nui-settings-content {\n flex: 1;\n\n &.nui-settings-content-align-right {\n flex: none;\n margin-left: auto;\n }\n\n input[type=text] {\n width: 100%;\n }\n\n\n }\n\n & + div {\n margin-top: 15px;\n }\n`;\n\nconst NekoSettings = (props) => {\n return (<StyledNekoSettings {...props} />);\n}\n\nNekoSettings.propTypes = {\n title: PropTypes.string,\n className: PropTypes.string,\n contentAlign: PropTypes.string\n};\n\nNekoSettings.defaultProps = {\n title: '',\n className: undefined,\n contentAlign: 'left'\n};\n\nexport { NekoSettings };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst WindowBase = Styled.div`\n margin: 20px;\n padding: 14px;\n background-color: white;\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n\n > * + * {\n /* Base margin between child elements */\n margin-top: 14px;\n }\n`;\n\nconst TitleBar = Styled(props => (\n props.children ? (\n <div className={props.className}>\n {props.children}\n </div>\n ) : null\n))`\n background-color: ${Theme.blue};\n color: white;\n`;\n\nconst StyledNekoWindow = props => (\n <WindowBase className='window'>\n <TitleBar>{props.title}</TitleBar>\n {props.children}\n </WindowBase>\n);\n\nconst NekoWindow = (props) => {\n return (<StyledNekoWindow {...props} />);\n}\n\nNekoWindow.propTypes = {\n title: PropTypes.string\n};\nNekoWindow.defaultProps = {\n title: undefined\n};\n\nexport { NekoWindow };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Wrapper = Styled.div`\n display: flex;\n flex-wrap: wrap;\n`;\n\nconst Column = Styled.div`\n flex: 1;\n padding: 32px 30px;\n\n .nui-block:not(:first-child) {\n margin-top: -20px;\n }\n\n .nui-block:last-child {\n margin-bottom: 0px;\n }\n\n &.minimal {\n padding: 0;\n }\n\n &.full {\n flex-basis: 100%;\n padding-bottom: 0;\n }\n\n & + .full {\n padding-bottom: 32px;\n padding-top: 0;\n }\n\n &:not(.full) + div:not(.full) {\n padding-left: 0;\n }\n`;\n\n/**\n * @oaram {string} className\n */\nconst StyledNekoWrapper = props => {\n return (\n <Wrapper>\n { props.children }\n </Wrapper>\n );\n};\n\nconst StyledNekoColumn = props => {\n const { full, minimal, ...rest } = props;\n let className = full ? 'full' : '';\n className += minimal ? ' minimal' : '';\n return (\n <Column className={className} {...rest}>{props.children}</Column>\n );\n};\n\nconst NekoWrapper = (props) => {\n return (<StyledNekoWrapper {...props} />);\n};\n\nconst NekoColumn = (props) => {\n return (<StyledNekoColumn {...props} />);\n};\n\nNekoWrapper.propTypes = {\n};\nNekoWrapper.defaultProps = {\n};\n\nNekoColumn.propTypes = {\n full: PropTypes.any\n};\nNekoColumn.defaultProps = {\n full: undefined\n};\n\nexport { NekoWrapper, NekoColumn };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { NekoSpinner } from '../misc/Spinner';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoCheckbox = Styled(props => {\n const { id, name, checked = false, onChange, label, description, isPro, disabled, requirePro = false, isBusy = false } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const isDisabled = disabled || showUpProOnly;\n const disabledClass = isDisabled ? 'disabled' : '';\n\n const onClick = () => {\n if (isDisabled) {\n return;\n }\n if (!onChange) {\n console.log(`The onChange handler it not set for the NekoCheckbox.`, props);\n return;\n }\n onChange(!checked, id);\n };\n\n return (\n <div className={['nui-checkbox', props.className, disabledClass].join(' ')}\n onClick={(e) => e.stopPropagation() }>\n <input id={id} name={name} type=\"checkbox\" defaultChecked={false} disabled={isDisabled || isBusy} />\n <label htmlFor={id} onClick={onClick}>\n <div className=\"nui-checkbox-check-container\">\n {isBusy\n ? <div className='nui-checkbox-busy-container'><Icon icon={checkboxBlankOutline} width=\"30px\" height=\"30px\" \n color={Theme.blue} /><NekoSpinner type=\"circle\" size=\"16px\" style={{ position: 'absolute', top: '7px', left: '7px' }} /></div>\n : <Icon icon={checked ? checkboxMarked : checkboxBlankOutline} width=\"30px\" height=\"30px\" \n color={isDisabled ? Theme.disabledForm : Theme.blue} />\n }\n </div>\n <div className=\"nui-checkbox-inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </div>\n );\n})`\n font-family: ${Theme.fontFamily};\n user-select: none;\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n .nui-checkbox-check-container {\n display: flex;\n align-content: center;\n flex-basis: 30px;\n\n .nui-checkbox-busy-container {\n position: relative\n }\n }\n .nui-checkbox-inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 28px;\n }\n \n .description {\n display: block;\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n color: ${Theme.darkGray};\n\n * {\n font-size: ${Theme.fontSizeSmall};\n line-height: inherit;\n margin: 0;\n }\n }\n }\n`;\n\nconst NekoCheckbox = (props) => {\n return (<StyledNekoCheckbox {...props} />);\n};\n\nNekoCheckbox.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool,\n isBusy: PropTypes.bool,\n};\n\nNekoCheckbox.defaultProps = {\n id: undefined,\n name: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n isPro: false,\n requirePro: false,\n isBusy: false,\n};\n\nexport { NekoCheckbox };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\n/**\n * @param {string} name\n * @param {int} max=-1 Max number of checkboxes to be checked. Negative number means unlimited\n */\nconst StyledNekoCheckboxGroup = Styled(props => {\n const { name, max = -1, isPro = false } = props;\n\n // React.Children.toArray(props.children)\n\n // Modify child components (Checkboxes)\n const children = React.Children.map(props.children, child => {\n if (child.props.name) return child; // Do not modify if the child has its own name\n return React.cloneElement(child, {\n name: name, // Apply the group's name\n isPro\n });\n });\n\n return children;\n})`\n`;\n\nconst NekoCheckboxGroup = (props) => {\n return (<StyledNekoCheckboxGroup {...props} />);\n}\n\nNekoCheckboxGroup.propTypes = {\n name: PropTypes.string,\n mas: PropTypes.number,\n isPro: PropTypes.bool\n};\n\nNekoCheckboxGroup.defaultProps = {\n name: undefined,\n mas: -1,\n isPro: false\n}\n\nexport { NekoCheckboxGroup };\n","import React, { useState, useEffect, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoIcon } from '../misc/Icon';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoInput = Styled(props => {\n const { id, name, value = '', description, placeholder = '', onEnter = null,\n readOnly = false, type = 'text', step = 1, min = 1, max = 999, maxLength : defaultMaxLength = undefined,\n className, style, natural = false, inputStyle, onChange: onCustomChange, onBlur: onCustomBlur, onReset, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const isControlled = !!onCustomChange;\n const maxLength = defaultMaxLength ? defaultMaxLength : (type === 'number' ? 3 : undefined);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n }, [ value ]);\n\n const onChange = (e) => {\n if (isControlled) { \n onCustomChange(e.target.value, id);\n }\n else {\n setNewValue(e.target.value);\n }\n };\n\n const onKeyPress = (e) => {\n if (onEnter && event.key === 'Enter') {\n e.preventDefault();\n onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (onCustomBlur && value !== e.target.value) {\n onCustomBlur(e.target.value, id);\n }\n };\n\n const classNames = `neko-input ${natural ? ' natural' : ''}`;\n\n return (\n <div className={[className].join(' ')} style={style}>\n <div style={{ position: 'relative' }}>\n {type === 'number'\n ? <input className={[classNames].join(' ')} id={id} name={name} value={isControlled ? value : newValue} type={type} \n step={step} min={min} max={max} maxLength={maxLength}\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n : <input className={[classNames].join(' ')} {...rest} id={id} name={name} value={isControlled ? value : newValue} type={type} \n spellCheck=\"false\"\n autoComplete=\"off\"\n placeholder={placeholder} style={inputStyle} maxLength={maxLength}\n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} {...rest} />\n }\n {!!value && !!onReset && <NekoIcon icon='close' width={24} style={{ position: 'absolute', top: '3px', right: '3px' }} color={Theme.blue} onClick={onReset} />}\n </div>\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-input {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n height: 30px;\n background: rgb(0 124 186 / 10%);\n padding: 0 10px;\n width: 100%;\n\n &.natural {\n border-color: gray;\n border-width: 1px;\n }\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n color: ${Theme.darkGray};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoInput = (props) => {\n return (<StyledNekoInput {...props} />);\n};\n\nNekoInput.propTypes = {\n id: PropTypes.string,\n type: PropTypes.oneOf(['number', 'text']),\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n step: PropTypes.number,\n min: PropTypes.number,\n max: PropTypes.number,\n maxLength: PropTypes.number,\n natural: PropTypes.bool,\n onReset: PropTypes.func,\n};\n\nNekoInput.defaultProps = {\n id: undefined,\n type: 'text',\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n step: 1,\n min: 1,\n max: 999,\n maxLength: undefined,\n natural: false,\n onReset: undefined,\n};\n\nexport { NekoInput };\n","import React, { useState, useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoTextArea = Styled(props => {\n const { id, name, value = '', description, placeholder = '', avoidOnEnterWithShift = false, onEnter = null, readOnly = false, \n maxLength = null, className, style, textAreaStyle = {}, countable = false, ...rest } = props;\n\n const [ newValue, setNewValue ] = useState(value);\n const [ count, setCount ] = useState(0);\n const [ pressShift, setPressShift ] = useState(false);\n const isControlled = !!props.onChange;\n\n const keydownFunction = useCallback((e) => {\n setPressShift(e.shiftKey);\n }, []);\n const keyupFunction = useCallback(() => {\n setPressShift(false);\n }, []);\n\n useEffect(() => {\n document.addEventListener(\"keydown\", keydownFunction, false);\n document.addEventListener(\"keyup\", keyupFunction, false);\n\n return () => {\n document.removeEventListener(\"keydown\", keydownFunction, false);\n document.removeEventListener(\"keyup\", keyupFunction, false);\n }\n }, []);\n\n useEffect(() => {\n if (!isControlled) {\n setNewValue(value);\n }\n if (countable) {\n setCount(value.length);\n }\n }, [ value, countable ]);\n\n const onChange = useCallback((e) => {\n const newValue = maxLength ? e.target.value.substr(0, maxLength): e.target.value;\n if (isControlled) { \n props.onChange(newValue, id);\n }\n else {\n setNewValue(newValue, id);\n }\n }, [maxLength, props.onChange]);\n\n const onKeyPress = (e) => {\n if (onEnter && !e.shiftKey && e.key === 'Enter') {\n if (avoidOnEnterWithShift && pressShift) return;\n\n e.preventDefault();\n props.onEnter(e.target.value, id);\n }\n };\n\n const onBlur = (e) => {\n if (props.onBlur && value !== e.target.value) {\n props.onBlur(e.target.value, id);\n }\n };\n\n return (\n <div className={[className].join(' ')} style={style}>\n <div className=\"neko-textarea-container\">\n <textarea className=\"neko-textarea\" rows={6} {...rest} id={id} name={name} spellCheck=\"false\" placeholder={placeholder} \n onChange={onChange} onKeyPress={onKeyPress} onBlur={onBlur} readOnly={readOnly} style={textAreaStyle}\n value={isControlled ? value : newValue} />\n {countable && <p className=\"neko-textarea-count\">{count} / {maxLength} characters</p>}\n </div>\n {description && <p className=\"neko-input-description\">{description}</p>}\n </div>\n );\n})`\n .neko-textarea-container {\n position: relative;\n }\n .neko-textarea {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border: 2px solid ${Theme.blue};\n box-sizing: border-box;\n background: rgb(0 124 186 / 10%);\n padding: 5px 10px;\n width: 100%;\n\n &::placeholder {\n color: rgba(0, 0, 0, 0.25);\n }\n\n :focus {\n background-color: white;\n }\n\n :read-only {\n background-color: ${Theme.gray};\n }\n }\n .neko-textarea-count {\n color: rgba(${Theme.blackRGB}, 0.4);\n font-size: 11px;\n margin: 0;\n position: absolute;\n right: 13px;\n bottom: 10px;\n }\n\n .neko-input-description {\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n margin-top: 8px;\n margin-bottom: 0;\n }\n`;\n\nconst NekoTextArea = (props) => {\n return (<StyledNekoTextArea {...props} />);\n};\n\nNekoTextArea.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onBlur: PropTypes.func,\n readOnly: PropTypes.bool,\n avoidOnEnterWithShift: PropTypes.bool\n};\n\nNekoTextArea.defaultProps = {\n id: undefined,\n name: undefined,\n value: '',\n description: undefined,\n placeholder: '',\n onChange: undefined,\n onEnter: undefined,\n onBlur: undefined,\n readOnly: false,\n avoidOnEnterWithShift: false\n};\n\nexport { NekoTextArea };\n","import React, { useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { useOutsideClick } from '../hooks';\nimport { NekoSpinner } from '../misc/Spinner';\n\nimport { Icon } from '@iconify/react';\nimport checkboxBlankCircleOutline from '@iconify/icons-mdi/checkbox-blank-circle-outline';\nimport recordCircle from '@iconify/icons-mdi/record-circle';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport { NekoIcon } from '../misc/Icon';\nimport { NekoInput } from './Input';\n\nconst Select = Styled.div`\n border-radius: 8px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n &.show-options {\n background-color: ${Theme.blue};\n border-radius: 8px 8px 0 0;\n }\n\n &[data-is-disabled=true] {\n cursor: none;\n pointer-events: none;\n\n .nui-select-option {\n pointer-events: none;\n background: ${Theme.gray};\n padding-right: 10px;\n }\n }\n`;\n\nconst SelectedOption = Styled.div`\n align-items: center;\n background-color: ${Theme.white};\n border: 2px solid ${Theme.blue};\n border-radius: 8px;\n display: flex;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n padding: 0 5px 0 10px;\n box-sizing: border-box;\n height: 30px;\n\n &.isBusy {\n padding-left: 5px;\n }\n\n .rightContent {\n align-items: center;\n display: flex;\n margin-left: auto;\n }\n`;\n\nconst Description = Styled.div`\n display: block;\n margin-top: 5px;\n font-size: ${Theme.fontSizeSmall};\n line-height: 14px;\n color: ${Theme.darkGray};\n\n * {\n font-size: ${Theme.fontSizeSmall};\n line-height: inherit;\n margin: 0;\n }\n`;\n\nconst Options = Styled.div`\n border-radius: 8px;\n overflow: hidden;\n padding-top: 28px;\n position: absolute;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: all 0.2s ease-in;\n\n &.hidden {\n opacity: 0;\n }\n`;\n\nconst OptionsContainer = Styled.div`\n background-color: ${Theme.white};\n overflow-y: auto;\n max-height: 300px;\n\n &.nui-select-filter-container {\n background-color: ${Theme.blue};\n background: rgb(38 155 214);\n padding: 6px;\n margin-top: 2px;\n overflow: hidden;\n\n div {\n overflow: hidden;\n }\n }\n`;\n\n/**\n * @param {string} name\n */\nconst StyledNekoSelect = props => {\n const { id, name, value, scrolldown = false, isPro = false, onChange, className, disabled, isBusy = false,\n chevronIconSize = 24, textFiltering, ...rest } = props;\n\n const currentOption = React.Children.toArray(props.children)\n .find(child => child.props.value === value || child.props.checked)?.props;\n\n const label = currentOption?.label || 'Select';\n const description = currentOption?.description || props.description;\n const requirePro = currentOption?.requirePro || false;\n const icon = currentOption?.icon;\n const iconSize = currentOption?.iconSize;\n //const id = scrolldown ? props.id : currentOption?.id;\n\n const [ showOptions, toggleOptions ] = useState(false);\n const [ filterText, setFilterText ] = useState('');\n const componentRef = scrolldown ? useOutsideClick(() => { toggleOptions(false) }) : null;\n const showUpProOnly = requirePro && !isPro;\n\n const onOptionClick = (newValue) => {\n if (newValue !== value) {\n if (!onChange) {\n console.log(`The onChange handler it not set for this checkbox.`, props);\n return;\n }\n onChange(newValue, id);\n }\n if (scrolldown) {\n toggleOptions(false);\n }\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n name: child.props.name || name,\n checked: child.props.value === value || child.props.checked,\n onClick: onOptionClick,\n scrolldown,\n isPro,\n disabled\n });\n });\n\n const filteredChildren = useMemo(() => {\n if (!filterText || !children.length) return children;\n\n const filtered = [];\n React.Children.forEach(children, child => {\n if (child.props.label.includes(filterText) || child.props.value.includes(filterText)) {\n filtered.push(child);\n }\n });\n return filtered;\n }, [children, filterText]);\n\n return scrolldown\n ? <Select id={id} ref={componentRef} {...rest}\n onClick={() => toggleOptions(!showOptions)}\n className={[ 'nui-select', className, showOptions ? 'show-options' : '']}\n childrenLength={children.length} data-is-disabled={disabled || isBusy}\n >\n <SelectedOption className={`nui-select-option ${isBusy ? 'isBusy' : ''}`}>\n {isBusy\n ? <>\n <NekoSpinner type=\"circle\" size=\"20px\" />\n </>\n : <>\n {icon && <NekoIcon icon={icon} width={iconSize} height={iconSize} style={{ marginRight: `${Math.max(iconSize - 15, 4)}px` }} />}\n <span className='nui-select-option-label'>{label}</span>\n <div className=\"rightContent\">\n {showUpProOnly && <ProOnly />}\n {!disabled && <Icon icon={showOptions ? chevronUp : chevronDown} width={chevronIconSize} />}\n </div>\n </>}\n </SelectedOption>\n {description && <Description>{description}</Description>}\n {showOptions &&\n <Options className={`nui-option ${showOptions ? '' : 'hidden'}`}>\n {textFiltering && \n <OptionsContainer className='nui-select-filter-container'>\n <NekoInput id=\"nui-select-filter\" value={filterText} placeholder=\"Search...\" onChange={(v) => setFilterText(v)}\n onClick={(e) => e.stopPropagation()} style={{ background: Theme.white }} inputStyle={{ margin: 0, borderRadius: 0 }} autoFocus />\n </OptionsContainer>\n }\n <OptionsContainer>{[filteredChildren]}</OptionsContainer>\n </Options>\n }\n </Select>\n : children;\n};\n\nconst RadioOption = Styled.div`\n font-family: ${Theme.fontFamily};\n margin-bottom: 6px;\n\n input {\n display: none;\n }\n\n label {\n cursor: pointer;\n display: flex;\n }\n\n .inner-container {\n margin-left: 4px;\n\n .label {\n display: block;\n font-size: 14px;\n line-height: 17px;\n padding-top: 4.5px;\n padding-bottom: 4px;\n }\n .description {\n display: block;\n font-size: ${Theme.fontSizeSmall};\n }\n }\n\n &.disabled {\n color: ${Theme.disabledForm};\n\n label {\n cursor: default;\n }\n }\n`;\n\nconst SelectOption = Styled.div`\n background-color: ${Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n\n &:hover {\n filter: brightness(80%);\n }\n\n input {\n display: none;\n }\n\n .option {\n align-items: center;\n color: ${Theme.white};\n display: flex;\n justify-content: space-between;\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n padding: 8px 12px;\n\n .option-group {\n align-items: center;\n display: flex;\n }\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n pointer-events: none;\n\n .option {\n color: rgb(255 255 255 / 35%);\n }\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n * @param {function} onClick\n */\nconst StyledNekoOption = props => {\n const { id, name, value, checked, icon, label, description, onClick, scrolldown, isPro = false,\n requirePro = false, disabled, iconSize = 20 } = props;\n\n const showUpProOnly = requirePro && !isPro;\n const disabledClass = showUpProOnly || disabled ? 'disabled' : '';\n\n const radioOption = (\n <RadioOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} onClick={(e) => onClick(e.target.value)} disabled={showUpProOnly || disabled} />\n <label htmlFor={id}>\n <Icon icon={checked ? recordCircle : checkboxBlankCircleOutline} width=\"24px\" color={showUpProOnly ? Theme.disabledForm : Theme.blue}/>\n <div className=\"inner-container\">\n <span className=\"label\">{label}<ProOnly className=\"inline\" style={{ top: -1 }} show={showUpProOnly} /></span>\n {description ? <small className=\"description\">{description}</small> : null}\n </div>\n </label>\n </RadioOption>\n );\n\n const selectOption = (\n <SelectOption className={`nui-select ${props.className || ''} ${disabledClass}`}>\n <input id={id} name={name} type=\"radio\" value={value} defaultChecked={checked} disabled={showUpProOnly || disabled} />\n <div className=\"option\" onClick={() => onClick(value)}>\n <div className=\"option-group\">\n {icon && <NekoIcon icon={icon} width={iconSize} height={iconSize} style={{ marginRight: `${Math.max(iconSize - 11, 4)}px` }} />}\n {label}\n </div>\n <ProOnly show={showUpProOnly} />\n </div>\n </SelectOption>\n );\n\n return scrolldown ? selectOption : radioOption;\n};\n\n/**\n * The NekoSelect has 2 types, radio (default) or select.\n */\nconst NekoSelect = (props) => {\n return (<StyledNekoSelect {...props} />);\n}\n\nNekoSelect.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n description: PropTypes.string,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n onChange: PropTypes.func,\n isBusy: PropTypes.bool,\n chevronIconSize: PropTypes.number,\n textFiltering: PropTypes.bool,\n};\n\nNekoSelect.propTypes = {\n id: undefined,\n name: undefined,\n description: undefined,\n scrolldown: false,\n isPro: false,\n onChange: undefined,\n isBusy: false,\n chevronIconSize: 24,\n textFiltering: undefined,\n};\n\nconst NekoOption = (props) => {\n return (<StyledNekoOption {...props} />);\n}\n\nNekoOption.propTypes = {\n id: PropTypes.string,\n name: PropTypes.string,\n value: PropTypes.string,\n checked: PropTypes.bool,\n label: PropTypes.string,\n description: PropTypes.string,\n onClick: PropTypes.func,\n scrolldown: PropTypes.bool,\n isPro: PropTypes.bool,\n requirePro: PropTypes.bool,\n icon: PropTypes.string,\n iconSize: PropTypes.number,\n};\n\nNekoOption.defaultProps = {\n id: undefined,\n name: undefined,\n value: undefined,\n checked: false,\n label: undefined,\n description: undefined,\n onClick: undefined,\n scrolldown: false,\n isPro: false,\n requirePro: false,\n icon: undefined,\n iconSize: 20,\n};\n\nexport { NekoSelect, NekoOption };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\nconst Form = Styled.div`\n label {\n display: block;\n margin-bottom: 3px;\n }\n\n .neko-input, .neko-textarea {\n margin-bottom: 5px;\n }\n`;\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {string} value\n * @param {string} description\n * @param {string} placeholder\n */\nconst StyledNekoForm = (props) => {\n return (\n <Form>\n {props.children || null}\n </Form>\n );\n};\n\nconst NekoForm = (props) => {\n return (<StyledNekoForm {...props} />);\n};\n\nNekoForm.propTypes = {\n};\n\nNekoForm.defaultProps = {\n};\n\nexport { NekoForm };\n","import React, { useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {string} id\n * @param {string} name\n * @param {bool} checked\n * @param {string} label\n * @param {string} description\n */\nconst StyledNekoSwitch = Styled(props => {\n\n const { width = '100%', height = '20px', fontSize = Theme.fontSizeSmall, onValue,\n offValue, checked = false, onBackgroundColor, offBackgroundColor,\n onLabel, offLabel, onChange, disabled, ...rest } = props;\n\n const onToggle = useCallback((v) => {\n onChange(v.target.checked ? onValue : offValue);\n }, [onChange, onValue, offValue]);\n\n return (\n <label {...rest} data-is-disabled={disabled ? 'disabled' : ''}>\n <input type=\"checkbox\" onChange={onToggle} checked={checked} disabled={disabled} />\n <span className=\"nui-switch-slider\"></span>\n </label>\n );\n})`\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: ${props => props.fontSize};\n position: relative;\n display: inline-block;\n width: ${props => props.width};\n height: ${props => props.height};\n\n &[data-is-disabled=disabled] {\n opacity: 0.4;\n\n .nui-switch-slider {\n cursor: auto;\n }\n }\n\n input {\n opacity: 0;\n width: 0;\n height: 0;\n border: 0;\n }\n\n .nui-switch-slider {\n background-color: ${props => props.offBackgroundColor};\n border-radius: ${props => props.height};\n align-items: center;\n cursor: pointer;\n display: inline-flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n transition: .4s;\n }\n\n .nui-switch-slider:before {\n border-radius: 50%;\n position: absolute;\n content: \"\";\n height: ${props => `calc(${props.height} - 8px)`};\n width: ${props => `calc(${props.height} - 8px)`};\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: .3s;\n }\n\n .nui-switch-slider:after {\n content: \"${props => props.offLabel}\";\n margin-left: auto;\n margin-right: ${props => `calc(${props.height} / 2)`};\n }\n\n input:checked + .nui-switch-slider {\n background-color: ${props => props.onBackgroundColor};\n }\n\n input:checked + .nui-switch-slider:before {\n transform: translateX(${props => `calc(${props.width} - ${props.height})` });\n }\n\n input:checked + .nui-switch-slider:after {\n content: \"${props => props.onLabel}\";\n margin-left: ${props => `calc(${props.height} / 2)`};\n margin-right: auto;\n }\n`;\n\nconst NekoSwitch = (props) => {\n return (<StyledNekoSwitch {...props} />);\n};\n\nNekoSwitch.propTypes = {\n width: PropTypes.string,\n height: PropTypes.string,\n fontSize : PropTypes.string,\n onValue: PropTypes.string,\n offValue: PropTypes.string,\n checked: PropTypes.bool,\n onBackgroundColor: PropTypes.string,\n offBackgroundColor: PropTypes.string,\n onLabel: PropTypes.string,\n offLabel: PropTypes.string\n};\n\nNekoSwitch.defaultProps = {\n width: '100%',\n height: '20px',\n fontSize: '${Theme.fontSizeSmall}',\n checked: false\n};\n\nexport { NekoSwitch };\n","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { Icon, IconifyIcon } from '@iconify/react';\nimport folderIcon from '@iconify/icons-mdi/folder';\nimport folderOpen from '@iconify/icons-mdi/folder-open';\nimport imageMultipleOutline from '@iconify/icons-mdi/image-multiple-outline';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport tagIcon from '@iconify/icons-mdi/tag';\n\nconst StyledNekoFinder = props => {\n\n const { chevron = true } = props;\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n return (\n children\n );\n};\n\nconst FinderTitleContainer = Styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-bottom: 5px;\n font-family: ${Theme.fontFamily};\n`;\n\nconst FinderTitle = Styled.div`\n align-items: center;\n display: flex;\n\n &.can-expand {\n cursor: pointer;\n }\n\n &.selected {\n color: #956DBE;\n }\n\n span {\n font-weight: normal;\n font-size: ${Theme.fontSizeText};\n margin: 0 0 0 8px;\n }\n`;\n\nconst ChevronSpace = Styled.div`\n height: 24px;\n width: 24px;\n`;\n\nconst FinderTitleIconDropZone = Styled.div`\n position: relative;\n width: 24px;\n height: 24px;\n`;\n\nconst FinderTitleIconDroppableArea = Styled.div`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 100;\n`;\n\nconst ItemContainer = Styled.div`\n border-left: 1px solid ${Theme.finderBorder};\n margin-left: 12px;\n padding-left: 6px;\n\n &.no-line {\n border-left: 0;\n padding-left: 12px;\n }\n\n &.no-chevron {\n border-left: 0;\n margin-left: 0;\n padding-left: 0;\n }\n`;\n\nconst StyledNekoFinderItem = props => {\n\n const defaultIcons = {\n gallery: imageMultipleOutline,\n tag: tagIcon\n }\n\n const { title, chevron, rightElement = null, rightElementStyle = { marginLeft: '5px' }, showRightElement = false, selected = false,\n draggable = false, onDragStart, onDragOver, onDragEnd, onDrop, isExpanded = false, dragging = false, rightAction = null,\n rightActionOnHover = null, onDragLeave, preventClose = false } = props;\n const isCustomizedIcon = !!props.icon;\n const hasChild = !!props.children;\n const [ expanded, setExpanded ] = useState(isExpanded);\n const [ icon, setIcon ] = useState(() => {\n if (typeof props.icon === 'string' && Object.keys(defaultIcons).includes(props.icon)) {\n return defaultIcons[props.icon];\n } else if (props.icon) {\n return props.icon;\n }\n return folderIcon\n });\n const isFolder = Boolean(icon);\n const [ showRightAction, setShowRightAction ] = useState(false);\n\n useEffect(() => {\n setExpanded(isExpanded);\n if (!isCustomizedIcon) {\n setIcon(isExpanded ? folderIcon : folderOpen);\n }\n }, [isExpanded]);\n\n const onClick = () => {\n if (props.onClick) {\n props.onClick();\n }\n }\n\n const onChevronClick = (e) => {\n e.stopPropagation();\n setExpanded(!expanded);\n }\n\n const children = React.Children.map(props.children, child => {\n return React.cloneElement(child, {\n chevron\n });\n });\n\n const iconColor = dragging || selected ? Theme.purple : (selected ? Theme.black : Theme.blue);\n\n return (\n <div>\n <FinderTitleContainer onMouseEnter={() => setShowRightAction(true)} onMouseLeave={() => setShowRightAction(false)}>\n <FinderTitle onClick={onClick} onMouseEnter={props.onMouseEnter} onMouseLeave={props.onMouseLeave} draggable={draggable} onDragStart={onDragStart} onDragOver={onDragOver} onDrop={onDrop} className={`${isFolder || children || props.onClick ? 'can-expand' : ''} ${selected ? 'selected' : ''}`} onDragLeave={onDragLeave} onDragEnd={onDragEnd}>\n {chevron\n ? (isFolder && hasChild)\n ? <Icon icon={expanded ? chevronDown : chevronRight} width=\"24\" height=\"24\" onClick={onChevronClick} />\n : <ChevronSpace></ChevronSpace>\n : null\n }\n <FinderTitleIconDropZone>\n <FinderTitleIconDroppableArea />\n <Icon icon={icon} color={iconColor} width=\"24\" height=\"24\" />\n </FinderTitleIconDropZone>\n <span>{title}</span>\n {showRightElement &&\n <div style={rightElementStyle}>{rightElement}</div>\n }\n </FinderTitle>\n {showRightAction ? (rightActionOnHover || rightAction) : rightAction}\n </FinderTitleContainer>\n {expanded && <ItemContainer className={`${isFolder ? '' : 'no-line'} ${chevron ? '' : 'no-chevron'}`}>{children}</ItemContainer>}\n </div>\n )\n}\n\nconst NekoFinder = (props) => {\n return (<StyledNekoFinder {...props} />);\n}\n\nNekoFinder.propTypes = {\n chevron: PropTypes.bool\n};\n\nNekoFinder.defaultProps = {\n chevron: true\n};\n\nconst NekoFinderItem = (props) => {\n return (<StyledNekoFinderItem {...props} />);\n}\n\nNekoFinderItem.propTypes = {\n icon: PropTypes.oneOfType([PropTypes.instanceOf(IconifyIcon), PropTypes.oneOf(['gallery'])]),\n title: PropTypes.string,\n isExpanded: PropTypes.bool\n};\n\nNekoFinderItem.defaultProps = {\n icon: folderIcon,\n title: undefined,\n isExpanded: false\n};\n\nexport { NekoFinder, NekoFinderItem };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst Logo = Styled.div`\n display: flex;\n width: 100%;\n height: 100%;\n max-width: 128px;\n max-height: 128px;\n\n & > * {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n`;\n\nconst StyledNekoLogo = () => {\n return (\n <Logo>\n <svg width=\"54\" height=\"38\" viewBox=\"0 0 54 38\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.9038 19.1156 23.9038 19.1156C23.9038 19.1156 13.4345 22.0656 11.3663 9.40518Z\" fill=\"#724024\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" fill=\"#B7782E\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" fill=\"#B7782E\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" fill=\"#B7782E\"/>\n <path d=\"M10.7517 8.0531C10.0142 10.7573 6.32673 12.1093 3.99131 11.2489C1.65589 10.3885 2.63923 13.8302 5.09756 14.9364C7.55589 16.0427 11.2434 14.1989 12.1038 12.4781C12.9642 10.7573 11.4892 5.34893 10.7517 8.0531Z\" stroke=\"black\"/>\n <path d=\"M14.0705 17.2718C13.8246 19.2385 9.64547 19.976 7.55589 19.8531C5.46631 19.7302 9.76839 23.5406 11.3663 23.5406C12.9642 23.5406 17.3892 21.2052 17.1434 19.2385C16.8976 17.2718 14.3163 15.3052 14.0705 17.2718Z\" stroke=\"black\"/>\n <path d=\"M17.5121 26.2448C18.6184 25.3843 20.9538 21.8198 19.8476 19.8531C18.7413 17.8864 22.4288 20.9593 22.4288 20.9593L21.6913 26.2448C21.6913 26.2448 16.4059 27.1052 17.5121 26.2448Z\" stroke=\"black\"/>\n <path d=\"M11.3663 9.40518C9.2981 -3.25522 -0.310763 2.76769 2.5163 9.40518C2.5163 9.40518 8.29338 29.9322 22.3059 26.3677C36.3184 22.8031 23.658 19.4843 23.658 19.4843C23.658 19.4843 13.4345 22.0656 11.3663 9.40518Z\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n <path d=\"M25.3788 9.89685C25.3788 9.89685 21.3225 35.0947 21.9371 35.7093C22.5517 36.3239 27.4684 36.3239 28.083 35.7093C28.6975 35.0947 29.6523 22.5858 30.2955 21.9427C30.9386 21.2995 35.7226 33.1281 36.81 33.1281C37.8975 33.1281 43.2303 21.3567 43.8163 21.9427C44.4023 22.5287 45.2913 35.0947 45.9059 35.7093C46.5204 36.3239 51.3142 36.3239 51.9288 35.7093C52.5434 35.0947 48.9788 9.89685 48.9788 9.89685H42.9559C42.9559 9.89685 37.7934 21.9427 36.81 21.9427C35.8267 21.9427 31.4017 9.89685 31.4017 9.89685H25.3788Z\" fill=\"white\" stroke=\"black\" strokeWidth=\"2.1869\"/>\n </svg>\n </Logo>\n );\n}\n\nconst NekoLogo = (props) => {\n return (<StyledNekoLogo {...props} />);\n}\n\nNekoLogo.propTypes = {\n};\n\nNekoLogo.defaultProps = {\n};\n\nexport { NekoLogo };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { lighten } from 'polished';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport pauseIcon from '@iconify/icons-mdi/pause';\nimport stopIcon from '@iconify/icons-mdi/stop';\nimport playIcon from '@iconify/icons-mdi/play';\n\nimport Theme from '../common/NekoTheme';\n\n/**\n * @param {number} value Current progress\n * @param {number} max Max progress\n */\nconst StyledNekoProgress = Styled(props => {\n let { value = 0, max = 100, busy = false, status } = props;\n value = Math.min(value, max);\n let ratio = parseFloat(value) / parseFloat(max);\n\n return (\n <div className={props.className}>\n <ProgressCurrent ratio={ratio} busy={props.busy} status={status} />\n <div className=\"nui-progress-buttons\">\n {busy && props.onPauseClick && \n <div className='nui-progress-button pause' onClick={props.onPauseClick}>\n {props.paused ? <InlineIcon icon={playIcon} /> : <InlineIcon icon={pauseIcon} />}\n </div>\n }\n {busy && props.onStopClick && \n <div className='nui-progress-button stop' onClick={props.onStopClick}>\n <InlineIcon icon={stopIcon} />\n </div>\n }\n </div>\n </div>\n );\n})`\n position: relative;\n box-sizing: border-box;\n height: 30px;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0.06) 0%,\n rgba(0, 0, 0, 0.02) 50%,\n rgba(0, 0, 0, 0.10) 100%\n );\n border-radius: 12px;\n\n .nui-progress-buttons {\n position: absolute;\n height: 100%;\n right: 0px;\n display: flex;\n align-items: center;\n padding-right: 5px;\n\n .nui-progress-button {\n border: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n border-radius: 100%;\n color: white;\n padding: 2px;\n width: 18px;\n height: 18px;\n background-color: ${Theme.blue};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.blue)};\n }\n\n &.stop {\n background: ${Theme.red};\n\n &:hover {\n background-color: ${lighten(0.1, Theme.red)};\n }\n }\n }\n }\n`;\n\n/**\n * @param {float} ratio Progress ratio (0.0 to 1.0)\n */\nconst ProgressCurrent = Styled(props => {\n const percent = !isNaN(props.ratio) ? parseInt(Math.round(props.ratio * 100)) : 0;\n const typeOfStatus = typeof props.status;\n let status = typeOfStatus !== 'undefined'\n ? (typeOfStatus === 'string') ? props.status : props.status(percent)\n : `${percent}%`;\n\n return (\n <div className={props.className} style={{ minWidth: 28, minWidth: percent + '%' }}>\n <div>{status}</div>\n </div>\n );\n})`\n position: absolute;\n overflow: hidden;\n top: 0; left: 0;\n height: 100%;\n background-color: ${Theme.progress};\n border-radius: 12px;\n text-align: center;\n padding: 0 10px;\n vertical-align: middle;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n display: flex;\n justify-content: center;\n align-items: center;\n transition: min-width .2s ease-out;\n\n background-size: 30px 30px;\n background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%,\n transparent 25%,\n transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,\n transparent 75%, transparent);\n animation: ${props => props.busy ? 'animate-stripes 1.6s linear infinite' : 'none'};\n\n @keyframes animate-stripes {\n 0% { background-position: 0 0; }\n 100% { background-position: 60px 0; }\n }\n`;\n\nconst NekoProgress = (props) => {\n return (<StyledNekoProgress {...props} />);\n}\n\nNekoProgress.propTypes = {\n value: PropTypes.number,\n max: PropTypes.number,\n busy: PropTypes.bool,\n paused: PropTypes.bool,\n onPauseClick: PropTypes.func,\n onStopClick: PropTypes.func,\n status: PropTypes.oneOf([PropTypes.string, PropTypes.func])\n};\n\nNekoProgress.defaultProps = {\n value: 0,\n max: 100,\n busy: false,\n paused: false,\n onPauseClick: undefined,\n onStopClick: undefined,\n status: undefined\n};\n\nexport { NekoProgress };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoLogo } from './Logo';\nimport { NekoIcon } from './Icon';\nimport Theme from '../common/NekoTheme';\nimport contentSave from '@iconify/icons-mdi/content-save';\n\nconst HeaderBase = Styled.div`\n position: relative;\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n display: flex;\n height: 61px;\n overflow: hidden;\n align-items: center;\n padding: 15px 20px;\n background-color: ${Theme.header};\n display: flex;\n\n .nui-header-logo-container {\n width: 102px;\n height: 102px;\n padding: 20px;\n margin-right: 25px;\n background: rgba(${Theme.blackRGB}, 0.1);\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(-29.83deg);\n }\n\n .nui-header-title-container {\n flex-direction: column;\n display: flex;\n\n .nui-header-title {\n color: white;\n font-family: ${Theme.fontFamily};\n font-size: 23px;\n line-height: normal;\n margin: 0;\n }\n\n .nui-header-subtitle {\n color: white;\n font-family: ${Theme.fontFamily};\n line-height: normal;\n font-size: ${Theme.fontSizeText};\n }\n }\n\n .nui-header-extra-content {\n flex: 1;\n margin: 0 20px;\n }\n`;\n\nconst StyledNekoHeader = props => {\n\n const { title = 'NekoUI', subtitle = 'By Jordy Meow', children, saving = false } = props;\n\n return (\n <HeaderBase>\n <div className='nui-header-logo-container'>\n <NekoLogo />\n </div>\n <div className=\"nui-header-title-container\">\n <h1 className=\"nui-header-title\">{title}</h1>\n <small className=\"nui-header-subtitle\"><a target='_blank' href='https://meowapps.com' \n style={{ color: 'white', textDecoration: 'none' }}>{subtitle}</a></small>\n </div>\n <div className=\"nui-header-extra-content\">{children}</div>\n {saving && <NekoIcon icon={contentSave} width=\"36\" height=\"36\" />}\n </HeaderBase>\n );\n};\n\nconst NekoHeader = (props) => {\n return (<StyledNekoHeader {...props} />);\n}\n\nNekoHeader.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n saving: PropTypes.bool\n};\n\nNekoHeader.defaultProps = {\n title: 'NekoUI',\n subtitle: 'By Jordy Meow',\n saving: false\n};\n\nexport { NekoHeader };\n","import React, { useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDoubleLeft from '@iconify/icons-mdi/chevron-double-left';\nimport chevronLeft from '@iconify/icons-mdi/chevron-left';\nimport chevronDoubleRight from '@iconify/icons-mdi/chevron-double-right';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\nimport Theme from '../common/NekoTheme';\n\nconst PagingContainer = Styled.div`\n align-items: center;\n display: flex;\n user-select: none;\n\n .neko-paging-text {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 15px;\n line-height: 14px;\n margin-right: 15px;\n }\n\n .neko-paging-controller {\n box-sizing: border-box;\n height: 30px;\n align-items: center;\n background-color: rgba(${Theme.blueRGB}, 0.8);\n border-radius: 15px;\n display: flex;\n padding: 3px 5px;\n\n .nako-paging-controller-icon {\n background-color: ${Theme.white};\n border-radius: 100%;\n cursor: pointer;\n margin-right: 2px;\n height: 22px;\n width: 22px;\n box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);\n transition: transform 0.1s ease-in;\n box-sizing: border-box;\n\n :last-child {\n margin-right: 0;\n }\n\n &.disabled {\n color: ${Theme.darkGray};\n cursor: default;\n pointer-events: none;\n }\n\n &:hover {\n transform: scale(1.2) !important;\n z-index: 10;\n position: relative;\n }\n }\n\n .nako-paging-controller-text {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: ${Theme.fontSizeText};\n margin: 0 40px;\n user-select: none;\n }\n\n span.neko-paging-current-page {\n cursor: pointer;\n text-decoration: underline;\n }\n\n input.neko-paging-current-page {\n width: 1.5rem;\n }\n }\n`;\n\n/**\n * @param {number} currentPage Current page\n * @param {number} limit Items per page\n */\nconst StyledNekoPaging = props => {\n const { currentPage, limit = 0, onClick, total = 0, onCurrentPageChanged, full, infinite = false, controllerText } = props;\n const isEditable = !!onCurrentPageChanged;\n const maxPage = useMemo(() => {\n if (infinite) return 0;\n return Math.ceil(total === 0 ? 1 : (limit > 0 ? (total / limit) : 1));\n }, [infinite, limit, total]);\n const prevIconClassName = `nako-paging-controller-icon ${!infinite && currentPage === 1 ? 'disabled' : ''}`;\n const nextIconClassName = `nako-paging-controller-icon ${!infinite && currentPage === maxPage ? 'disabled' : ''}`;\n const [ showCurrentPageInput, setShowCurrentPageInput ] = useState(false);\n\n const onClickHandle = (page) => {\n setShowCurrentPageInput(false);\n onClick(page);\n };\n\n const getValidPage = (page) => {\n if (infinite) return page;\n const numberPage = Number(page);\n return numberPage > maxPage ? maxPage : (numberPage < 1 ? 1 : numberPage);\n }\n\n const onBlur = (e) => {\n const page = e.target.value;\n\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n\n const onKeyPress = (e) => {\n if (event.key === 'Enter') {\n e.preventDefault();\n const page = e.target.value;\n if (!isNaN(page)) {\n onCurrentPageChanged(getValidPage(page));\n }\n setShowCurrentPageInput(false);\n }\n };\n\n const currentPageJsx = useMemo(() => {\n if (!showCurrentPageInput) {\n const onClick = () => {\n if (!isEditable) {\n return;\n }\n setShowCurrentPageInput(true);\n }\n return <span className={isEditable ? 'neko-paging-current-page' : ''} onClick={onClick}>{currentPage}</span>;\n }\n return <input autoFocus type=\"text\" className={isEditable ? 'neko-paging-current-page' : ''} \n defaultValue={currentPage} onBlur={onBlur} onKeyPress={onKeyPress} />;\n }, [currentPage, showCurrentPageInput, onCurrentPageChanged]);\n\n const onControllerClick = (e) => {\n if (!showCurrentPageInput || e.target !== e.currentTarget) return;\n\n setShowCurrentPageInput(false);\n }\n\n return (\n <PagingContainer>\n\n {!!total && <span className=\"neko-paging-text\">{total} result{total > 0 ? 's' : ''}</span>}\n\n <div className=\"neko-paging-controller\" onClick={onControllerClick}>\n {!infinite && <Icon icon={chevronDoubleLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(1)}\n />}\n <Icon icon={chevronLeft}\n className={prevIconClassName}\n onClick={() => onClickHandle(currentPage - 1)}\n />\n <p className=\"nako-paging-controller-text\" onClick={onControllerClick}>\n {!!controllerText\n ? controllerText\n : <>Page {currentPageJsx} of {maxPage}</>\n }\n </p>\n <Icon icon={chevronRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(currentPage + 1)}\n />\n {!infinite && <Icon icon={chevronDoubleRight}\n className={nextIconClassName}\n onClick={() => onClickHandle(maxPage)}\n />}\n </div>\n\n </PagingContainer>\n );\n};\n\nconst NekoPaging = (props) => {\n return (<StyledNekoPaging {...props} />);\n};\n\nNekoPaging.propTypes = {\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onClick: PropTypes.func,\n lastPage: PropTypes.number,\n infinite: PropTypes.bool,\n controllerText: PropTypes.object\n};\n\nNekoPaging.defaultProps = {\n currentPage: undefined,\n limit: 0,\n total: 0,\n onClick: undefined,\n lastPage: undefined,\n infinite: false,\n controllerText: undefined\n};\n\nexport { NekoPaging };\n","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoIcon } from '../misc/Icon';\n\nconst LinkContainer = Styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Link = Styled.span`\n color: ${props => props.variant || Theme.blue};\n cursor: pointer;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 17px;\n\n &.is-active {\n cursor: default;\n color: ${Theme.black};\n font-weight: bold;\n }\n\n &::after {\n content: \"|\";\n color: ${Theme.darkGray};\n padding: 0 4px;\n }\n\n &:last-child::after {\n content: none;\n }\n\n span {\n color: ${Theme.darkGray};\n font-weight: normal;\n margin-left: 4px;\n }\n`;\n\nconst StyledNekoQuickLinks = props => {\n const { id, value, onChange, busy = false, className } = props;\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n busy: busy,\n isActive: child.props.value === value,\n onClick: (newValue) => {\n if (newValue !== value) {\n onChange(newValue, id);\n }\n }\n });\n });\n\n return (\n <LinkContainer className={className}>{children}</LinkContainer>\n );\n};\n\nconst StyledNekoLink = props => {\n\n const { title, value = 0, count, onClick, busy, isActive, className, variant } = props;\n\n const variantValue = useMemo(() => {\n if (!variant) return undefined\n return Object.keys(Theme).includes(variant) ? Theme[variant] : variant\n }, [variant])\n\n return (\n <Link onClick={() => onClick(value)} className={`${isActive ? 'is-active' : ''} ${className}`} variant={variantValue}>\n {title}\n {count === null ? null :\n <span>(\n {busy ? \n <NekoIcon icon=\"replay\" spinning={true} width={12} containerStyle={{ display: 'inline' }} /> : \n count\n })\n </span>\n }\n </Link>\n );\n};\n\nconst NekoQuickLinks = (props) => {\n return (<StyledNekoQuickLinks {...props} />);\n};\n\nNekoQuickLinks.propTypes = {\n id: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func\n};\n\nNekoQuickLinks.defaultProps = {\n id: undefined,\n value: undefined,\n onChange: undefined\n};\n\nconst NekoLink = (props) => {\n return (<StyledNekoLink {...props} />);\n};\n\nNekoLink.propTypes = {\n title: PropTypes.string,\n value: PropTypes.string,\n count: PropTypes.number,\n onClick: PropTypes.func,\n isActive: PropTypes.bool,\n variant: PropTypes.string,\n};\n\nNekoLink.defaultProps = {\n title: undefined,\n value: 'default',\n count: 0,\n onClick: undefined,\n isActive: false,\n variant: undefined,\n};\n\nexport { NekoQuickLinks, NekoLink };\n","import React, { useState, useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\n\nconst StyledSection = Styled.section`\n .mask {\n position: absolute;\n overflow: hidden;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n }\n\n .semi-circle {\n position: relative;\n display: block;\n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n background: linear-gradient(to right, #27b775 0%, #f3f32c 50%, #f71b1b 100%);\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n\n &::before {\n content: \"\";\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 2;\n display: block;\n width: 140px;\n height: 70px;\n margin-left: -70px;\n background: ${props => props.backgroundColor};\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .semi-circle--mask {\n position: absolute;\n top: 0;\n left: 0;\n width: ${props => props.width}px;\n height: ${props => props.width}px;\n background: transparent;\n transform-origin: center center;\n backface-visibility: hidden;\n transition: all .3s ease-in-out;\n\n &::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0%;\n z-index: 2;\n display: block;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2 + 2}px;\n margin-top: -1px;\n margin-left: -1px;\n background: #5396c1d6;\n border-radius: 50% 50% 50% 50% / 100% 100% 0% 0% ;\n } \n }\n\n .gauge { \n width: ${props => props.width}px;\n height: ${props => props.width / 2}px;\n \n .semi-circle--mask {\n transform: rotate(${props => props.degrees}deg) translate3d(0,0,0);\n }\n }\n\n .child-container {\n position: absolute;\n font-size: 16px;\n display: flex;\n width: ${props => props.width + 2}px;\n height: ${props => props.width / 2}px;\n z-index: 10;\n\n .spacing {\n flex: auto;\n }\n\n .child {\n color: white;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n }\n`;\n\nconst NekoGauge = ({ value = 1000, min = 0, max = 2500, width = 200, background = '#007cba', children }) => {\n const degrees = 180 * (value <= max ? value : max) / max;\n return (\n <StyledSection backgroundColor={background} degrees={degrees} width={width}>\n <div class=\"gauge\">\n <div class=\"mask\">\n <div class=\"semi-circle\"></div>\n <div class=\"semi-circle--mask\"></div>\n </div>\n <div class=\"child-container\">\n <div class=\"child\">\n <div class=\"spacing\" />\n {children}\n </div>\n </div>\n </div>\n </StyledSection>\n )\n};\n\nNekoGauge.propTypes = {\n value : PropTypes.number,\n min : PropTypes.number,\n max : PropTypes.number,\n width : PropTypes.number,\n background : PropTypes.string,\n};\n\nNekoGauge.defaultProps = {\n value : 1000,\n min : 0,\n max : 2500,\n width : 200,\n background : '#007cba',\n};\n\nexport { NekoGauge };\n","import Styled from 'styled-components';\n\nconst NekoMessageDanger = Styled.p`\n background: #ba341e;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nconst NekoMessageSuccess = Styled.p`\n background: #1eba96;\n padding: 20px;\n color: white;\n border-radius: 10px;\n font-size: 15px;\n text-align: center;\n\n a {\n color: white;\n font-weight: bold;\n }\n`;\n\nexport { NekoMessageDanger, NekoMessageSuccess };","import React, { useState, useRef, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoIcon, postFetch } from '../../index';\n\nconst StyledUpload = Styled.div`\n box-sizing: border-box;\n background: #C4C4C4;\n color: rgb(0 0 0 / 60%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n transition: all 0.25s ease;\n\n &[data-is-disabled=true] {\n svg {\n opacity: 0.7;\n }\n }\n\n div {\n transition: all 0.5s ease;\n transform: scale(1.5);\n pointer-events: none;\n max-width: 100%;\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.dropping {\n background: #a4d5ff;\n\n div {\n transform: scale(2);\n }\n }\n`;\n\nconst NekoUpload = (props) => {\n\n const { multiple, width = '100%', height = '100%', iconSize = 48, iconColor = '#A9A9A9', onSuccess = () => {}, \n onFailure = () => {}, style = {}, apiUrl, apiConfig, onClick, disabled, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ inputId, setInputId ] = useState(Math.floor(Math.random() * 100000000));\n const inputEl = useRef(null);\n const divEl = useRef(null);\n const [ busy, setBusy ] = useState(false);\n\n useEffect(() => {\n if (!divEl) return;\n\n divEl.current.style.pointerEvents = busy ? 'none' : 'auto';\n }, [divEl, busy])\n\n const uploadFile = async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }\n\n const onDragOver = (e) => {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const onDragEnter = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(true);\n }\n\n const onDragLeave = (e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n }\n\n const onDrop = (e) => {\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }\n\n const onUploaderClick = () => {\n if (onClick) {\n onClick();\n return;\n }\n inputEl.current.click();\n }\n\n const onInputUpload = (e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }\n\n const uploadFiles = (files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n console.log(files);\n uploadFile(files);\n }\n\n return (\n <div ref={divEl}>\n <input type=\"file\" id={inputId} accept=\"image/*\" ref={inputEl} onChange={onInputUpload} style={{ display: 'none' }} disabled={disabled} multiple={multiple} />\n <StyledUpload onClick={onUploaderClick} style={{ ...style, width, height }} className={inDropZone ? 'dropping' : ''} \n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} data-is-disabled={disabled} {...rest}>\n <NekoIcon width={iconSize} height={iconSize} icon='upload' spinning={busy} color={iconColor}\n onDragOver={onDragOver} onDragEnter={onDragEnter} />\n </StyledUpload>\n </div>\n );\n}\n\nNekoUpload.propTypes = {\n width : PropTypes.string,\n height : PropTypes.string,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n style : PropTypes.object,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object\n};\n\nNekoUpload.defaultProps = {\n width : '100%',\n height : '100%',\n onSuccess : () => {},\n onFailure : () => {},\n style : {}\n};\n\nexport { NekoUpload };\n","import React, { useState, forwardRef, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { NekoBusyOverlay, postFetch } from '../../index';\n\nconst StyledUploadDropArea = Styled.div`\n &.dropping {\n background: #a4d5ff;\n }\n`;\n\nconst NekoUploadDropArea = forwardRef((props, ref) => {\n\n const { onSuccess = () => {}, onFailure = () => {}, apiUrl, apiConfig, className, disabled = false, children, multiple, ...rest } = props;\n const [ inDropZone, setInDropZone ] = useState(false);\n const [ busy, setBusy ] = useState(false);\n\n const uploadFile = useCallback(async (files) => {\n setBusy(true);\n const upload = async (file) => {\n apiConfig.file = file;\n return await postFetch(apiUrl, apiConfig);\n }\n const response = await Promise.all(files.map(async (file) => {\n return await upload(file);\n }))\n const successResponses = response.filter(v => v.success);\n const failerResponses = response.filter(v => !v.success);\n if (successResponses.length) {\n onSuccess(multiple ? successResponses : successResponses[0]);\n }\n if (failerResponses.length) {\n onFailure(multiple ? failerResponses : failerResponses[0]);\n }\n setBusy(false);\n }, [apiConfig, onSuccess, onFailure]);\n\n const uploadFiles = useCallback((files, e) => {\n e.preventDefault();\n e.stopPropagation();\n setInDropZone(false);\n // console.log(files);\n uploadFile(files);\n }, [uploadFile]);\n\n const onDragOver = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const onDragEnter = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(true);\n }, [disabled]);\n\n const onDragLeave = useCallback((e) => {\n e.preventDefault();\n e.stopPropagation();\n if (disabled) return;\n setInDropZone(false);\n }, [disabled]);\n\n const onDrop = useCallback((e) => {\n if (disabled) return;\n const files = [...e.dataTransfer.files];\n uploadFiles(files, e);\n }, [disabled, uploadFiles]);\n\n const onInputUpload = useCallback((e) => {\n const files = [...e.target.files];\n uploadFiles(files, e);\n }, [uploadFiles]);\n\n return (\n <NekoBusyOverlay busy={busy}>\n <input type=\"file\" accept=\"image/*\" ref={ref} onChange={onInputUpload} style={{ display: 'none' }} multiple={multiple} />\n <StyledUploadDropArea className={`${className ? className : ''} ${inDropZone ? 'dropping' : ''}`}\n onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop} {...rest}>\n {children}\n </StyledUploadDropArea>\n </NekoBusyOverlay>\n );\n});\n\nNekoUploadDropArea.propTypes = {\n ref: PropTypes.ref,\n onSuccess : PropTypes.func,\n onFailure : PropTypes.func,\n apiUrl : PropTypes.string,\n apiConfig : PropTypes.object,\n disabled: PropTypes.bool\n};\n\nNekoUploadDropArea.defaultProps = {\n onSuccess : () => {},\n onFailure : () => {},\n disabled : false\n};\n\nexport { NekoUploadDropArea };\n","import { useState, useEffect, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\n//import { Icon, InlineIcon, IconifyIcon } from '@iconify/react';\n//import folderIcon from '@iconify/icons-mdi/folder';\n\nconst Days = {\n Monday: 1,\n Tuesday: 2,\n Wednesday: 3,\n Thursday: 4,\n Friday: 5,\n Saturday: 6,\n Sunday: 7\n}\n\nconst StyledNekoCalendar = Styled.div`\n display: flex;\n flex-direction: column;\n border-radius: 5px;\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeSmall};\n`;\n\nconst CalendarHeaders = Styled.div`\n display: flex;\n width: 100%;\n padding: 10px 0px;\n color: white;\n background: ${Theme.primary};\n border-radius: 5px 5px 0px 0px;\n\n div {\n width: calc(100% / 7);\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n`;\n\nconst CalendarContent = Styled.div`\n display: flex;\n flex-direction: column;\n`;\n\nconst WeekContainer = Styled.div`\n display: flex;\n`;\n\nconst DayContainer = Styled.div`\n background: purple;\n width: calc(100% / 7);\n background: ${Theme.white};;\n padding: 3px;\n border-bottom: 1px solid ${Theme.lightGray};\n border-right: 1px solid ${Theme.lightGray};\n position: relative;\n transition: background-color 150ms linear;\n box-sizing: border-box;\n\n &:first-child {\n border-left: 1px solid ${Theme.lightGray};\n }\n\n &:last-child {\n border-right: 1px solid ${Theme.lightGray};\n }\n\n .day {\n text-align: right;\n color: ${Theme.black};\n margin-bottom: 5px;\n }\n\n &.highlighted {\n background: #ffe8bc;\n }\n\n &.today .day {\n font-weight: bold;\n text-decoration: underline;\n }\n\n .gray-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: ${Theme.lightGray};\n opacity: 0.8;\n }\n\n .event {\n margin-bottom: 2px;\n }\n\n .event:last-child {\n margin-bottom: 0px;\n }\n`;\n\nfunction getFirstWeekDayForMonth(month, year, weekDay = Days.Monday) {\n const date = new Date(year, month);\n while (date.getDay() !== weekDay) {\n date.setDate(date.getDate() - 1);\n }\n return date;\n}\n\nfunction numberOfDaysBetween(startDate, endDate) {\n const start = new Date(startDate);\n const end = new Date(endDate);\n let count = 0;\n while (start <= end) {\n count++;\n start.setDate(start.getDate() + 1);\n }\n return count - 1;\n}\n\nfunction splitArrayInChunks(array, chunkSize) {\n const chunks = [];\n let i = 0;\n while (i < array.length) {\n chunks.push(array.slice(i, i += chunkSize));\n }\n return chunks;\n}\n\nconst NekoCalendar = (props) => {\n const { month = new Date().getMonth(), year = new Date().getFullYear(),\n onEventClicked = () => { console.log(\"[NekoCalendar] onEventClicked not handled.\"); },\n onEventMoved = () => { console.log(\"[NekoCalendar] onEventMoved not handled.\"); },\n eventBuilder = () => \"YOOO\", events, ...rest } = props;\n const [draggedEvent, setDraggedEvent] = useState();\n const [highlightedDay, setHighlightedDay] = useState();\n\n let { disableDaysBefore = null } = props;\n disableDaysBefore = disableDaysBefore ? disableDaysBefore :\n new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());\n\n const weeks = useMemo(() => {\n const days = [];\n const currentDate = getFirstWeekDayForMonth(month, year, Days.Monday);\n const totalCalendarDays = numberOfDaysBetween(currentDate, new Date(year, month, 1)) < 5 ? 34 : 41;\n const lastDate = new Date(currentDate).setDate(currentDate.getDate() + totalCalendarDays)\n while (currentDate <= lastDate) {\n days.push(new Date(currentDate));\n currentDate.setDate(currentDate.getDate() + 1);\n }\n return splitArrayInChunks(days, 7);\n }, [month, year]);\n\n const isDayToday = (date) => {\n const today = new Date();\n return date.getFullYear() === today.getFullYear() &&\n date.getMonth() === today.getMonth() &&\n date.getDate() === today.getDate();\n }\n\n const isSameDay = (date1, date2) => {\n return date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate();\n }\n\n return (\n <StyledNekoCalendar {...rest}>\n\n <CalendarHeaders>\n {Object.keys(Days).map(day => (\n <div key={day}>{day}</div>\n ))}\n </CalendarHeaders>\n\n <CalendarContent>\n {weeks.map(week => \n <WeekContainer key={week}>\n {week.map(day => {\n const isCurrentMonth = day.getMonth() == month;\n const isDisabled = !isCurrentMonth || day < disableDaysBefore;\n const className = (isDisabled ? 'disabled ' : '') + (isDayToday(day) ? 'today' : '')\n + (day === highlightedDay ? 'highlighted' : '');\n const filterEvents = events.filter(event => isCurrentMonth && event.date.getDate() === day.getDate());\n return (\n <DayContainer className={className} key={day.getTime()}\n onDragOver={(e) => { \n if ( isDisabled || isSameDay(day, draggedEvent.date) ) { \n return false;\n };\n e.preventDefault();\n setHighlightedDay(day);\n return true;\n }}\n onDragLeave={() => setHighlightedDay(null)}\n onDrop={() => { onEventMoved(day, draggedEvent); setHighlightedDay(null) }}>\n <div className=\"day\">{day.getDate()}</div>\n {filterEvents.map(event => \n <div className=\"event\" key={event.key} draggable={event.draggable} \n onClick={() => onEventClicked(event)}\n onDragStart={(e) => setDraggedEvent(event)}>\n {eventBuilder({ ...event })}\n </div>)\n }\n {isDisabled && <div className=\"gray-overlay\" />}\n </DayContainer>\n );\n })}\n </WeekContainer>\n )}\n </CalendarContent>\n\n </StyledNekoCalendar>\n );\n}\n\nNekoCalendar.propTypes = {\n month: PropTypes.number,\n year: PropTypes.number,\n disableDaysBefore: PropTypes.instanceOf(Date),\n disableDaysAfter: PropTypes.instanceOf(Date),\n eventBuilder: PropTypes.func,\n events: PropTypes.array,\n onEventClicked: PropTypes.func,\n onEventMoved: PropTypes.func,\n};\n\nNekoCalendar.defaultProps = {\n month: (new Date).getMonth(),\n year: (new Date).getFullYear(),\n disableDaysBefore: null,\n disableDaysAfter: null,\n eventBuilder: () => \"UI for this event\",\n events: [{ key: 'A1', date: new Date() }, { key: 'A2', date: new Date() }],\n onEventClicked: (event) => { console.log(\"An event was clicked\", event); },\n onEventMoved: (day, event) => { console.log(\"An event was moved to another day\", event, day); },\n};\n\nexport { NekoCalendar };","import React, { useEffect, useCallback } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { NekoButton } from '../button/Button';\n\nconst NekoModalParent = Styled.div`\n\n .ReactModal__Overlay {\n z-index: 100;\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n background: ${Theme.overlay} !important;\n }\n .ReactModal__Overlay {\n opacity: 0;\n transition: opacity 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open {\n opacity: 1;\n }\n .ReactModal__Overlay--before-close {\n opacity: 0;\n }\n .ReactModal__Overlay .neko-modal {\n opacity: 0;\n transform: scale(0.85);\n transition: all 200ms ease-in-out;\n }\n .ReactModal__Overlay--after-open .neko-modal {\n transform: scale(1);\n opacity: 1;\n }\n .ReactModal__Overlay--before-close .neko-modal {\n transform: scale(0.85);\n opacity: 0;\n }\n .neko-modal {\n background: ${Theme.white};\n position: relative;\n box-shadow: 2px 2px 15px 2px rgba(0, 0, 0, 0.8);\n outline: none;\n padding: 15px;\n max-width: 820px;\n }\n`;\n\nconst NekoModalContent = Styled.div`\n width: ${props => props.width ?? '518px'};\n\n p {\n margin: 0;\n }\n .title {\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n }\n .content-container {\n display: flex;\n margin-top: 15px;\n\n .thumbnail {\n margin-right: 15px;\n width: 240px;\n overflow: hidden;\n\n img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n .content {\n flex: auto;\n font-family: ${Theme.fontFamily};\n font-style: normal;\n font-weight: normal;\n font-size: ${Theme.fontSizeText};\n line-height: 14px;\n width: 100%;\n }\n }\n .button-group {\n align-items: center;\n display: flex;\n justify-content: flex-end;\n margin-top: 15px;\n font-size: inherit;\n white-space: normal;\n }\n`;\n\nconst StyledNekoModal = (props) => {\n\n const {\n id = 'neko-modal-parent',\n isOpen,\n children,\n className,\n style,\n ok = 'OK',\n cancel = 'Cancel',\n customButtons = null,\n customButtonsPosition = 'right',\n title = '',\n content = '',\n contentWidth,\n onOkClick,\n onCancelClick,\n okOnEnter = false,\n thumbnail,\n ...rest\n } = props;\n const customClassName = style ? 'custom-modal' : '';\n const showCustomButtons = customButtons !== null;\n\n const keyUpHandler = useCallback(({ key }) => {\n if (key === 'Enter') {\n onOkClick();\n }\n }, [onOkClick]);\n\n useEffect(() => {\n if (!okOnEnter || !isOpen) return;\n\n window.addEventListener(\"keyup\", keyUpHandler);\n return () => {\n window.removeEventListener(\"keyup\", keyUpHandler);\n };\n }, [isOpen, keyUpHandler]);\n\n const modalContent = children\n ? children\n : <NekoModalContent width={contentWidth}>\n {title && <p className=\"title\">{title}</p>}\n <div className=\"content-container\">\n {thumbnail && <div className=\"thumbnail\">{thumbnail}</div>}\n {content && <p className=\"content\">{content}</p>}\n </div>\n <div className=\"button-group\">\n {showCustomButtons && customButtonsPosition === 'left' && customButtons}\n {onCancelClick && <NekoButton className=\"danger\" onClick={onCancelClick}>{cancel}</NekoButton>}\n {onOkClick && <NekoButton onClick={onOkClick}>{ok}</NekoButton>}\n {showCustomButtons && customButtonsPosition === 'right' && customButtons}\n </div>\n </NekoModalContent>;\n\n return (\n <React.Fragment>\n <NekoModalParent id={id} />\n <Modal ariaHideApp={false}\n parentSelector={() => document.getElementById(id)}\n closeTimeoutMS={200}\n className={`neko-modal ${className || ''} ${customClassName}`}\n isOpen={isOpen}\n {...rest}\n >\n {modalContent}\n </Modal>\n </React.Fragment>\n );\n};\n\nconst NekoModal = (props) => {\n return (<StyledNekoModal {...props} />);\n};\n\nNekoModal.propTypes = {\n className: PropTypes.string,\n style: PropTypes.object,\n ok: PropTypes.string,\n cancel: PropTypes.string,\n title: PropTypes.string,\n content: PropTypes.string,\n contentWidth: PropTypes.string,\n onOkClick: PropTypes.func,\n onCancelClick: PropTypes.func,\n customButtons: PropTypes.object,\n okOnEnter: PropTypes.bool,\n thumbnail: PropTypes.element\n};\n\nNekoModal.defaultProps = {\n className: undefined,\n style: undefined,\n ok: 'OK',\n cancel: 'Cancel',\n title: '',\n content: '',\n contentWidth: undefined,\n onOkClick: undefined,\n onCancelClick: undefined,\n customButtons: null,\n okOnEnter: false,\n thumbnail: undefined\n};\n\nexport { NekoModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport { Icon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronUp from '@iconify/icons-mdi/chevron-up';\nimport checkboxBlankOutline from '@iconify/icons-mdi/checkbox-blank-outline';\nimport checkboxMarked from '@iconify/icons-mdi/checkbox-marked';\nimport checkboxMultipleMarked from '@iconify/icons-mdi/checkbox-multiple-marked';\n\nimport Theme from '../common/NekoTheme';\nimport NekoBusyOverlay from '../common/NekoBusyOverlay';\n\nconst Table = Styled.table`\n font-family: ${Theme.fontFamily};\n border-spacing: 0;\n width: 100%;\n word-break: break-all;\n\n th, td {\n margin: 0;\n padding: 5px;\n border-bottom: 1px solid rgba(${Theme.blackRGB}, 0.1);\n border-right: 1px solid rgba(${Theme.blackRGB}, 0.1);\n\n a {\n text-decoration: none;\n }\n\n :last-child {\n border-right: 0;\n }\n }\n\n &.nekotable-raw {\n th, td {\n border: 0;\n }\n }\n\n th, tfoot td {\n height: 30px;\n background-color: ${Theme.blue};\n color: ${Theme.white};\n font-style: normal;\n font-weight: normal;\n font-size: ${Theme.fontSizeText};\n line-height: 16px;\n text-align: left;\n\n div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n &.sortable {\n cursor: pointer;\n }\n }\n }\n\n thead tr th:first-child {\n border-top-left-radius: 10px;\n }\n\n thead tr th:last-child {\n border-top-right-radius: 10px;\n }\n\n tfoot tr th:first-child {\n border-bottom-left-radius: 10px;\n }\n\n tfoot tr th:last-child {\n border-bottom-right-radius: 10px;\n }\n\n &.nekotable-raw {\n th {\n font-weight: bold;\n }\n th, tfoot td {\n background-color: ${Theme.white};\n color: ${Theme.black};\n\n div {\n justify-content: normal;\n }\n }\n }\n\n tbody {\n background-color: ${Theme.white};\n \n tr {\n :nth-child(even) {\n background-color: ${Theme.tableGray};\n }\n &.selected {\n background-color: rgba(${Theme.blueRGB}, 0.8);\n color: ${Theme.white};\n\n a {\n color: #81e8ff;\n }\n }\n }\n img {\n vertical-align: bottom;\n }\n }\n\n &.nekotable-raw {\n tbody {\n tr {\n :nth-child(even) {\n background-color: ${Theme.white};\n }\n &.selected {\n background-color: ${Theme.white};\n color: ${Theme.black};\n }\n }\n }\n }\n\n tfoot tr:last-child {\n td {\n border-bottom: 0;\n }\n }\n\n .table-checkbox-cell {\n width: 35px;\n text-align: center;\n\n svg {\n padding: 5px;\n cursor: pointer;\n }\n }\n`;\n\nconst TableCheckBox = (props) => {\n const { checked, intermediate = false, onSelect = () => {}, onUnselect = () => {}, ...rest } = props;\n\n const onClick = (e) => { \n checked ? onUnselect(e) : onSelect(e);\n };\n\n return (\n <Icon icon={intermediate ? checkboxMultipleMarked : (checked ? checkboxMarked : checkboxBlankOutline)}\n width=\"24px\" height=\"24px\" onClick={onClick} />\n );\n};\n\nconst alignToJustifyContent = {\n left: 'start',\n center: 'center',\n right: 'end',\n};\n\n/**\n * @param {string} className\n * @param {string|object} icon\n * @param {bool} disabled\n * @param {function} onClick\n */\nconst StyledNekoTable = (props) => {\n const { columns, data, busy = false, onSelect, onUnselect, selectedItems, sort, onSortChange, variant = 'default', sortIconColor = undefined, emptyMessage = \"Empty.\" } = props;\n const columnsCount = columns.length + (onSelect ? 1 : 0);\n\n const getColumnStyle = (column) => {\n let style = {};\n if (column.align) {\n style = { textAlign: column.align, justifyContent: alignToJustifyContent[column.align] };\n }\n if (column.width) {\n style = { ...style, width: column.width };\n }\n if (column.style) {\n style = { ...style, ...column.style };\n }\n return style;\n }\n\n const rows = data.map(v => {\n const cells = columns.map(c => {\n return { value: v[c.accessor], style: getColumnStyle(c) }\n });\n return { id: v.id, cells };\n });\n\n const currentRowsIds = rows.map(x => x.id);\n const currentSelectedRows = currentRowsIds.filter(x => selectedItems.includes(x));\n const areAllRowsSelected = currentSelectedRows.length === currentRowsIds.length;\n const isIntermediate = !areAllRowsSelected && selectedItems.length > 0;\n\n const hiddenColumnIndexes = columns.reduce(function(a, e, i) {\n if (e.visible === false)\n a.push(i);\n return a;\n }, []);\n\n const headersFooters = <tr>\n {onSelect && \n <th className='table-checkbox-cell'>\n <TableCheckBox checked={areAllRowsSelected} intermediate={isIntermediate}\n onSelect={(e) => onSelect(currentRowsIds, e) } \n onUnselect={(e) => { \n // The unselect on selectedItems never happens, but I keep it here in case\n // we find an elegant UI solution to unselect all the invisible selected rows as well.\n isIntermediate ? onUnselect(selectedItems, e) : onUnselect(currentRowsIds, e);\n }}\n />\n </th>\n }\n {columns.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(column => {\n let beingSorted = sort && sort.accessor === column.accessor;\n let beingSortedAsc = sort && sort.by === 'asc';\n let color = beingSorted ? Theme.white : `rgba(${Theme.blackRGB}, 0.1)`;\n if (sortIconColor) {\n color = beingSorted ? sortIconColor : Theme.gray;\n }\n const columnStyle = getColumnStyle(column);\n return (<th style={columnStyle} key={column.accessor}>\n <div className={column.sortable ? 'sortable' : ''} style={{...columnStyle, width: 'auto' }}\n onClick={column.sortable ? (e) => { \n onSortChange(column.accessor, beingSorted && beingSortedAsc ? 'desc' : 'asc', e)\n } : undefined}>\n <div>{column.title}</div>\n <div style={{ flex: 'auto' }} />\n <div>{column.sortable && \n <Icon icon={!beingSorted ? chevronDown : (beingSortedAsc ? chevronDown : chevronUp)} \n color={color} width=\"26px\" height=\"26px\" />}\n </div>\n </div>\n </th>)\n })}\n </tr>;\n\n return (\n <NekoBusyOverlay busy={busy} overlayStyle={{ top: '36px', height: 'calc(100% - 76px)' }}>\n <Table className={`nekotable-${variant}`}>\n <thead>{headersFooters}</thead>\n <tbody>\n {!rows.length && \n <tr><td colspan={columnsCount} style={{ textAlign: 'center', height: 40, color: 'gray' }}>\n {emptyMessage}\n </td></tr>\n }\n {rows.map(row => {\n return (\n <tr className={selectedItems.includes(row.id) ? 'selected' : ''}>\n {onSelect && \n <td className='table-checkbox-cell'>\n <TableCheckBox \n checked={selectedItems.includes(row.id)}\n onSelect={(e) => onSelect([ row.id ], e)}\n onUnselect={(e) => onUnselect([ row.id ], e)} \n />\n </td>\n }\n {row.cells.filter((x, i) => !hiddenColumnIndexes.includes(i)).map(cell => {\n return <td style={cell.style}>{cell.value}</td>;\n })}\n </tr>\n );\n })}\n </tbody>\n {variant === 'default' && <tfoot>{headersFooters}</tfoot>}\n </Table>\n </NekoBusyOverlay>\n );\n};\n\nconst NekoTable = (props) => {\n return (<StyledNekoTable {...props} />);\n};\n\nNekoTable.propTypes = {\n columns: PropTypes.arrayOf(PropTypes.any),\n data: PropTypes.arrayOf(PropTypes.any),\n busy: PropTypes.arrayOf(PropTypes.bool),\n onSelect: PropTypes.func,\n onUnselect: PropTypes.func,\n selectedItems: PropTypes.arrayOf(PropTypes.object),\n onSortChange: PropTypes.func,\n variant: PropTypes.string,\n sortIconColor: PropTypes.string,\n};\n\nNekoTable.defaultProps = {\n columns: undefined,\n data: undefined,\n busy: false,\n onSelect: undefined,\n onUnselect: undefined,\n selectedItems: undefined,\n onSortChange: undefined,\n variant: 'default',\n sortIconColor: undefined,\n};\n\nexport { NekoTable };\n","import React, { useMemo, useState, useRef, useCallback } from \"react\";\nimport PropTypes from \"prop-types\";\nimport Styled from \"styled-components\";\nimport Theme from '../common/NekoTheme';\nimport { NekoModal } from \"./Modal\";\nimport { NekoTypo } from \"./../misc/Typography\";\nimport { NekoInput } from \"./../form/Input\";\nimport { NekoButton } from \"../button/Button\";\nimport { NekoPaging } from \"../misc/Paging\";\nimport NekoBusyOverlay from \"../common/NekoBusyOverlay\";\nimport { NekoIcon } from \"../misc/Icon\";\nimport { NekoUploadDropArea } from \"../misc/UploadDropArea\";\nimport { NekoTable } from \"../table/Table\";\n\nconst StyledNekoModal = Styled(NekoModal)`\n width: 633px;\n\n &.custom-modal {\n padding: 0;\n }\n\n .neko-modal-wrapper {\n padding: 15px;\n }\n\n .neko-media-library-modal-content-header {\n align-items: center;\n display: flex;\n justify-content: space-between;\n\n h1 {\n font-size: 21px;\n font-weight: bold;\n margin: 0;\n }\n\n input {\n background-color: ${Theme.white};\n border: 1px solid ${Theme.black};\n border-radius: 3px;\n }\n }\n .neko-media-library-modal-content-body {\n margin-top: 33px;\n margin-bottom: 36px;\n\n .neko-media-library-modal-content-body-list {\n max-height: 406px;\n overflow-y: scroll;\n margin-bottom: 10px;\n width: 100%;\n }\n .neko-media-library-modal-content-body-gallery {\n display: grid;\n gap: 10px;\n grid-template-columns: repeat(6, 1fr);\n margin-bottom: 10px;\n\n .neko-media-library-modal-content-media-container {\n cursor: pointer;\n position: relative;\n\n img {\n box-sizing: border-box;\n }\n\n &.selected {\n img {\n border: 5px solid ${Theme.blue};\n }\n }\n\n &:hover {\n .zoom-button {\n display: block;\n }\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 30px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 2px;\n left: 2px;\n width: 30px;\n height: 30px;\n }\n }\n }\n\n .neko-media-library-modal-content-body-selected-gallery {\n display: flex;\n\n .neko-media-library-modal-content-selected-media-container {\n overflow: hidden;\n position: relative;\n height: 50px;\n width: 50px;\n padding-right: 5px;\n\n &.dummy {\n width: 50px;\n\n &.drag-over {\n width: 50px;\n }\n }\n\n &.drag-over {\n width: 105px;\n\n .zoom-button {\n left: 56px;\n }\n }\n\n &.drag-over::before {\n content: '';\n display: inline-block;\n width: 50px;\n height: 50px;\n background-color: ${Theme.blue};\n }\n\n img {\n box-sizing: border-box;\n width: 100%;\n max-width: 50px;\n }\n\n &.drag-over {\n img {\n margin-left: 5px;\n }\n }\n\n &:hover {\n .remove-button,\n .zoom-button {\n display: block;\n }\n }\n\n .remove-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n }\n\n .zoom-button {\n background-color: rgba(${Theme.blackRGB}, 0.4);\n border: 0;\n border-radius: 20px;\n cursor: pointer;\n display: none;\n position: absolute;\n top: 1px;\n left: 1px;\n width: 20px;\n height: 20px;\n }\n }\n }\n }\n .neko-media-library-modal-content-footer {\n display: flex;\n justify-content: space-between;\n }\n .neko-media-library-modal-search {\n position: relative;\n }\n`;\n\nconst selectedImageBaseWidth = 55;\nconst nextItemRange = 25;\nconst selectedImageIdPrefix = 'nmlm-selected-';\nconst dragOverClassName = 'drag-over';\nconst removeClass = (className) => {\n Array.prototype.forEach.call(document.getElementsByClassName(className), (ele) => {\n ele.classList.remove(className);\n });\n}\nconst displayModes = {\n grid: 'grid',\n list: 'list'\n};\nconst columns = [\n { accessor: 'thumbnail_url', title: 'Thumb', style: { width: '42px' } },\n { accessor: 'title', title: 'Title' },\n { accessor: 'size', title: 'Size', style: { width: '70px' } },\n { accessor: 'filename', title: 'Filename' },\n];\n\nconst StyledNekoMediaLibraryModal = (props) => {\n const { images, onNextPage, onPreviousPage, onRefresh, onClick, onRemoveClick, onZoomClick, onSearch, searchValue, busy,\n currentPage, limit, total, onPageChange, selected, multiSelect = false, showUploader = false, uploader, onSelectedOrderChanged,\n onUploadSuccess = () => {}, onUploadFailure = () => {}, uploadApiUrl, uploadApiConfig, uploadMultiple, onClose, onCancel, onSave, ...rest } = props;\n const [ search, setSerch ] = useState(searchValue);\n const [ dragImageIndex, setDragImageIndex ] = useState(null);\n const [ displayMode, setDisplayMode ] = useState(displayModes.grid);\n const ref = useRef(null);\n\n const onDragOver = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null) return;\n const { width, left, right } = e.currentTarget.getBoundingClientRect();\n let target = i;\n // Only tweak the index if the element dragged over is the right on the image dragged.\n if (dragImageIndex < i) {\n if (i > 0 && i < selected.length) {\n if (target + 1 === dragImageIndex && e.clientX >= right - nextItemRange) {\n target -= 1\n } else if (target - 1 === dragImageIndex && e.clientX >= left - nextItemRange) {\n target += 1;\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n } else if (width !== selectedImageBaseWidth && e.clientX >= right - nextItemRange) {\n target += 1;\n }\n }\n removeClass(dragOverClassName);\n if (dragImageIndex === target || (dragImageIndex + 1) === target) return;\n document.getElementById(`${selectedImageIdPrefix}${target}`).classList.add(dragOverClassName);\n }\n\n const onDragEnd = (e) => {\n e.preventDefault();\n setDragImageIndex(null);\n removeClass(dragOverClassName);\n }\n\n const onDrop = (e, i) => {\n e.preventDefault();\n if (dragImageIndex === null || dragImageIndex === i || (dragImageIndex + 1) === i) return;\n onSelectedOrderChanged({ currentIndex: dragImageIndex, afterIndex: dragImageIndex > i ? i : i - 1});\n }\n\n const selectedMediaJsx = useMemo(() => {\n if ( !multiSelect ) return [];\n const dummyElementForDrop = <div id={`nmlm-selected-${selected.length}`} className=\"neko-media-library-modal-content-selected-media-container dummy\" draggable={false} onDragEnd={(e) => onDragEnd(e)} onDragOver={(e) => onDragOver(e, selected.length)} onDrop={(e) => onDrop(e, selected.length)} onDragLeave={() => removeClass(dragOverClassName)}></div>\n const selectedElement = selected.map( (image, i) => {\n return (\n <div id={`nmlm-selected-${i}`} key={image.id} className=\"neko-media-library-modal-content-selected-media-container\" draggable={true} onDragStart={() => setDragImageIndex(i)} onDragEnd={onDragEnd} onDragOver={(e) => onDragOver(e, i)} onDrop={(e) => onDrop(e, i)}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" />\n <button className=\"remove-button\" onClick={() => onRemoveClick({ id: image.id, src: image.src })}>\n <NekoIcon icon=\"close\" color={Theme.white} width={19} height={19} />\n </button>\n <button className=\"zoom-button\" onClick={() => onZoomClick({ id: image.id, src: image.zoom_src })}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={19} height={19} />\n </button>\n </div>\n );\n } );\n return [...selectedElement, dummyElementForDrop];\n }, [ selected, multiSelect, onRemoveClick, onZoomClick, onDragOver, onDragEnd, onDrop ] );\n\n const mediaGridJsx = useMemo(() => {\n return images.map((image) => {\n return (\n <div key={image.id} className={`neko-media-library-modal-content-media-container ${selected.some(v => v.id === image.id) ? 'selected' : ''}`}\n onClick={() => {\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src })\n }}>\n <img src={image.src} className=\"neko-media-library-modal-content-media\" width=\"90\" height=\"90\" />\n <button className=\"zoom-button\" onClick={(e) => { e.stopPropagation(); onZoomClick({ id: image.id, src: image.zoom_src }); }}>\n <NekoIcon icon=\"zoom-in\" color={Theme.white} width={29} height={29} />\n </button>\n </div>\n );\n });\n }, [images, selected, onZoomClick, onClick]);\n\n const mediaRows = useMemo(() => {\n return images.map(x => ({\n id: x.id,\n thumbnail_url: <img src={x.src} style={{ width: 40, height: 40, objectFit: 'cover' }} />,\n title: x.title,\n size: x.size,\n filename: x.filename\n }));\n }, [images]);\n\n const onReset = useCallback(() => {\n setSerch(\"\");\n onRefresh();\n }, [onRefresh]);\n\n const mediaListJsx = useMemo(() => {\n const onSelect = (ids, e) => {\n const image = images.find(v => ids.includes(v.id));\n onClick({ id: image.id, src: image.src, zoom_src: image.zoom_src });\n }\n return <NekoTable\n data={mediaRows}\n columns={columns}\n onSelect={onSelect}\n onUnselect={onSelect}\n selectedItems={selected.map(v => v.id)}\n />\n }, [images, mediaRows, selected, onClick]);\n\n return (\n <StyledNekoModal style={true} {...rest}>\n <div className=\"neko-modal-wrapper\" draggable={true} onDragOver={() => removeClass(dragOverClassName)}>\n <NekoUploadDropArea ref={ref} onSuccess={onUploadSuccess} onFailure={onUploadFailure} apiUrl={uploadApiUrl} apiConfig={uploadApiConfig} disabled={!showUploader || dragImageIndex !== null} multiple={uploadMultiple}>\n <div className=\"neko-media-library-modal-content\">\n <div className=\"neko-media-library-modal-content-header\">\n <NekoTypo h1>Media Library</NekoTypo>\n <div style={{ display: 'flex' }}>\n <div className=\"neko-media-library-modal-search\">\n <NekoInput value={search} disabled={busy} onEnter={onSearch} onChange={(v) => setSerch(v)} placeholder=\"Search...\" />\n {search !== \"\" && <NekoIcon icon=\"close\" containerStyle={{ width: '20px', position: 'absolute', right: '5px', top: '5px', cursor: 'pointer' }} width={20} height={20} color={Theme.darkGray} onClick={onReset} />}\n </div>\n <NekoButton onClick={() => onSearch(search)} style={{ marginLeft: '4px', marginRight: '4px' }}>Search</NekoButton>\n <NekoIcon color={displayMode === displayModes.grid ? Theme.black : Theme.blue} icon='view-grid' onClick={() => setDisplayMode(displayModes.grid)} width=\"20\" height=\"20\" />\n <NekoIcon color={displayMode === displayModes.list ? Theme.black : Theme.blue} icon='format-list-bulleted' onClick={() => setDisplayMode(displayModes.list)} width=\"20\" height=\"20\" />\n </div>\n </div>\n <div>\n <div className=\"neko-media-library-modal-content-body\">\n <NekoBusyOverlay busy={busy}>\n <div className={`${displayMode === displayModes.grid ? 'neko-media-library-modal-content-body-gallery' : 'neko-media-library-modal-content-body-list'}`}>\n {displayMode === displayModes.grid && showUploader && uploader}\n {displayMode === displayModes.grid ? mediaGridJsx : mediaListJsx}\n </div>\n </NekoBusyOverlay>\n <div className=\"neko-media-library-modal-content-body-selected-gallery\">\n {selectedMediaJsx}\n </div>\n </div>\n </div>\n <div className=\"neko-media-library-modal-content-footer\">\n <NekoPaging limit={limit} currentPage={currentPage} total={total} onClick={onPageChange} />\n <div style={{ display: 'flex' }}>\n {!!onClose && <NekoButton onClick={() => onClose()}>\n Close\n </NekoButton>}\n {!!onCancel && <NekoButton className=\"danger\" onClick={() => onCancel()}>\n Cancel\n </NekoButton>}\n {!!onSave && <NekoButton onClick={() => onSave()}>\n Save\n </NekoButton>}\n </div>\n </div>\n </div>\n </NekoUploadDropArea>\n </div>\n </StyledNekoModal>\n );\n};\n\nconst NekoMediaLibraryModal = (props) => {\n return <StyledNekoMediaLibraryModal {...props} />;\n};\n\nNekoMediaLibraryModal.propTypes = {\n images: PropTypes.array,\n onNextPage: PropTypes.func,\n onPreviousPage: PropTypes.func,\n onRefresh: PropTypes.func,\n onClick: PropTypes.func,\n onSearch: PropTypes.func,\n searchValue: PropTypes.string,\n busy: PropTypes.bool,\n currentPage: PropTypes.number,\n limit: PropTypes.number,\n total: PropTypes.number,\n onPageChange: PropTypes.func,\n multiSelect: PropTypes.bool,\n selected: PropTypes.array,\n onClose: PropTypes.func,\n onCancel: PropTypes.func,\n onSave: PropTypes.func,\n};\n\nNekoMediaLibraryModal.defaultProps = {\n multiSelect: false\n};\n\nexport { NekoMediaLibraryModal };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { NekoIcon } from '../misc/Icon';\n\nconst TabContainer = Styled.div`\n`;\n\nconst TabGroup = Styled.div`\n display: flex;\n`;\n\nconst Tab = Styled.button`\n font-family: ${Theme.fontFamily};\n font-size: ${Theme.fontSizeText};\n border-radius: 8px 8px 0px 0px;\n border: 0;\n background-color: #459ad2;\n color: rgb(255 255 255 / 65%);\n display: flex;\n align-items: center;\n\n cursor: pointer;\n line-height: 17px;\n margin: 0 5px 0 0;\n text-align: left;\n padding: 10px 15px 10px 15px;\n\n &:focus {\n outline: none;\n }\n\n &.active {\n background-color: ${Theme.blue};\n color: ${Theme.white};\n }\n\n &.disabled {\n background-color: rgb(224 156 54);\n cursor: default;\n display: inline-flex;\n padding-bottom: 7px;\n }\n\n &.hidden {\n display: none;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.blue};\n display: none;\n padding: 10px;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoTabs = props => {\n const [isActiveTabIndex, setIsActiveTabIndex] = React.useState(0);\n const childrenProp = props.children\n ? (\n props.children.length\n ? props.children.filter(x => !!x)\n : [props.children]\n )\n : [];\n\n React.useEffect(() => {\n if (props.keepTabOnReload) {\n const url = new URL(window.location.href);\n const title = url.searchParams.get('nekoTab');\n if (!title) {\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n return;\n }\n const searchTitle = decodeURIComponent(title);\n const index = React.Children.toArray(childrenProp).map(c => c.props.title.replaceAll(' ', '')).indexOf(searchTitle);\n if (index === -1) {\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n return;\n }\n setIsActiveTabIndex(index);\n if (props.callOnTabChangeFirst) {\n onTabClick(index, tabAttributes[index]);\n }\n return;\n }\n setIsActiveTabIndex(0);\n if (props.callOnTabChangeFirst) {\n onTabClick(0, tabAttributes[0]);\n }\n }, [])\n\n const tabAttributes = React.Children.map(childrenProp, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const hidden = child.props.hidden || false;\n const icon = child.props.icon || false;\n return { key, title, onClick, requirePro, hidden, icon };\n });\n\n const children = React.Children.map(childrenProp, (child, i) => {\n const isActive = i === isActiveTabIndex;\n const hidden = child.props.hidden;\n if (isActive && hidden) {\n setIsActiveTabIndex(0);\n }\n return React.cloneElement(child, {\n isActive: isActive && !hidden\n });\n });\n\n const keepTab = (title) => {\n if (history.pushState && typeof title === 'string' ) {\n let searchParams = new URLSearchParams(window.location.search);\n const value = encodeURIComponent(title.replaceAll(' ', ''));\n searchParams.set('nekoTab', value);\n let newUrl = window.location.protocol + \"//\" + window.location.host + window.location.pathname + '?' + searchParams.toString();\n window.history.replaceState({ path: newUrl }, '', newUrl);\n }\n }\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n setIsActiveTabIndex(tabIndex);\n if (props.onChange) {\n props.onChange(tabIndex, tabAttr, ev);\n }\n if (props.keepTabOnReload) {\n keepTab(tabAttr.title);\n }\n };\n\n return (\n <TabContainer>\n <TabGroup>\n {tabAttributes.map((attr, i) =>\n <Tab \n key={attr.key} \n className={`neko-tab-title ${i === isActiveTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''} ${attr.hidden ? `hidden` : ''}`} \n onClick={(ev) => { onTabClick(i, attr, ev) }}\n >\n {attr.icon && <NekoIcon icon={attr.icon} width={15} height={15} style={{ marginRight: '2px' }} raw />}\n {attr.title}<ProOnly className=\"inline\" style={{ marginLeft: 10, marginRight: -5, top: -1 }} show={attr.requirePro} />\n </Tab>\n )}\n </TabGroup>\n {children}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n {!!isActive && children}\n </TabContent>\n );\n};\n\nconst NekoTabs = (props) => {\n return (<StyledNekoTabs {...props} />);\n};\n\nNekoTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func\n};\n\nNekoTabs.defaultProps = {\n isPro: false,\n onChange: undefined\n};\n\nconst NekoTab = (props) => {\n return (<StyledNekoTab {...props} />);\n};\n\nNekoTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n icon: PropTypes.string,\n};\n\nNekoTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n icon: undefined,\n};\n\nexport { NekoTab, NekoTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Theme from '../common/NekoTheme';\nimport { ProOnly } from '../label/ProOnly';\nimport { Icon, InlineIcon } from '@iconify/react';\nimport chevronDown from '@iconify/icons-mdi/chevron-down';\nimport chevronRight from '@iconify/icons-mdi/chevron-right';\n\nconst TabContainer = Styled.div`\n`;\n\nconst Tab = Styled.div`\n align-items: center;\n background-color: ${Theme.blue};\n border: 0;\n cursor: pointer;\n display: flex;\n padding: 2px 3px 2px 19px;\n\n &.disabled {\n background-color: rgba(${Theme.yellowRGB}, 0.25);\n cursor: default;\n }\n\n p {\n color: ${Theme.white};\n font-family: ${Theme.fontFamily};\n font-size: 14px;\n line-height: 17px;\n margin: 0;\n }\n\n .neko-side-tab-icon {\n color: ${Theme.white};\n margin-left: auto;\n height: 36px;\n width: 36px;\n }\n`;\n\nconst TabContent = Styled.div`\n background-color: ${Theme.white};\n display: none;\n\n &.active {\n display: block;\n }\n`;\n\n/**\n * Need to use with NecoTab\n */\nconst StyledNekoSideTabs = props => {\n\n const [activeTabIndex, setIsActiveTabIndex] = React.useState(props.activeTabIndex);\n\n const tabAttributes = React.Children.map(props.children, (child, i) => {\n const title = child.props.title || (\"Untitled Tab \" + (i + 1));\n const key = child.props.key || 'neko-tab-' + title.toLowerCase();\n const onClick = child.props.onClick ? child.props.onClick : null;\n const requirePro = !props.isPro && (child.props.requirePro || false);\n const onDragOver = child.props.onDragOver;\n const onDrop = child.props.onDrop;\n const rightActions = child.props.rightActions || null;\n return { key, title, onClick, requirePro, onDragOver, onDrop, rightActions };\n });\n\n const children = React.Children.map(props.children, (child, i) => {\n return React.cloneElement(child, {\n isActive: i === activeTabIndex\n });\n });\n\n const onTabClick = (tabIndex, tabAttr, ev) => {\n if (tabAttr.requirePro) return;\n const newTabIndex = tabIndex === activeTabIndex ? null : tabIndex;\n setIsActiveTabIndex(newTabIndex);\n if (props.onChange) {\n props.onChange(newTabIndex, tabAttr, ev);\n }\n };\n\n return (\n <TabContainer>\n {tabAttributes.map((attr, i) =>\n <React.Fragment>\n <Tab\n key={attr.key}\n className={`${i === activeTabIndex ? 'active' : ''} ${attr.requirePro ? 'disabled' : ''}`}\n onClick={(ev) => { onTabClick(i, attr, ev); }}\n onDragOver={attr.onDragOver}\n onDrop={attr.onDrop}\n >\n <p>\n <span style={{ fontSize: 15 }}>{attr.title}</span>\n <ProOnly className=\"inline\" show={attr.requirePro} />\n </p>\n {attr.rightActions === null\n ? <Icon icon={i === activeTabIndex ? chevronDown : chevronRight } className=\"neko-side-tab-icon\" />\n : (\n i === activeTabIndex\n ? <div style={{ marginLeft: 'auto' }}>{attr.rightActions}</div>\n : <Icon icon={chevronRight} className=\"neko-side-tab-icon\" />\n )\n }\n </Tab>\n { children[i] }\n </React.Fragment>\n )}\n </TabContainer>\n );\n};\n\n\n/**\n * @oaram {string} title\n * @param {bool} isActive\n */\nconst StyledNekoSideTab = props => {\n\n const { children, isActive } = props;\n\n return (\n <TabContent className={`${isActive ? 'active' : ''}`}>\n { children }\n </TabContent>\n );\n};\n\nconst NekoSideTabs = (props) => {\n return (<StyledNekoSideTabs {...props} />);\n};\n\nNekoSideTabs.propTypes = {\n isPro: PropTypes.bool,\n onChange: PropTypes.func,\n activeTabIndex: PropTypes.number\n};\n\nNekoSideTabs.defaultProps = {\n isPro: false,\n onChange: undefined,\n activeTabIndex: null\n};\n\nconst NekoSideTab = (props) => {\n return (<StyledNekoSideTab {...props} />);\n};\n\nNekoSideTab.propTypes = {\n isActive: PropTypes.bool,\n requirePro: PropTypes.bool,\n title: PropTypes.string,\n onDragOver: PropTypes.func,\n onDrop: PropTypes.func,\n rightActions: PropTypes.element\n};\n\nNekoSideTab.defaultProps = {\n isActive: false,\n requirePro: false,\n title: undefined,\n onDragOver: undefined,\n onDrop: undefined,\n rightActions: undefined\n};\n\nexport { NekoSideTab, NekoSideTabs };\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Styled from 'styled-components';\nimport Colors from '../common/NekoTheme';\n\nconst ToolbarBase = Styled.div`\n box-sizing: border-box;\n display: flex;\n width: 100%;\n padding: 10px 10px;\n background: ${Colors.white};\n border-radius: 10px;\n box-shadow: 0px 0px 10px rgba(${Colors.blackRGB}, 0.1);\n\n &.neko-align-left {\n justify-content: flex-start;\n }\n\n &.neko-align-right {\n justify-content: flex-end;\n }\n\n > *:not(:last-child) {\n margin-right: 5px;\n }\n`;\n\nconst StyledNekoToolbar = ({ align = 'left', ...props }) => {\n return (\n <ToolbarBase className={`neko-align-${align}`} {...props}>\n {props.children}\n </ToolbarBase>\n );\n};\n\nconst NekoToolbar = (props) => {\n return (<StyledNekoToolbar {...props} />);\n};\n\nNekoToolbar.propTypes = {\n align: PropTypes.oneOf(['left', 'right'])\n};\n\nNekoToolbar.defaultProps = {\n align: 'left'\n};\n\nexport { NekoToolbar };","const prefix = mgcl_gallery_custom_links.prefix;\nconst domain = mgcl_gallery_custom_links.domain;\nconst restUrl = mgcl_gallery_custom_links.rest_url.replace(/\\/+$/, \"\");\nconst apiUrl = mgcl_gallery_custom_links.api_url.replace(/\\/+$/, \"\");\nconst pluginUrl = mgcl_gallery_custom_links.plugin_url.replace(/\\/+$/, \"\");\nconst isPro = mgcl_gallery_custom_links.is_pro === '1';\nconst isRegistered = isPro && mgcl_gallery_custom_links.is_registered === '1';\nconst restNonce = mgcl_gallery_custom_links.rest_nonce;\n\nexport { prefix, domain, apiUrl, restUrl, pluginUrl, isPro, isRegistered, restNonce };\n","// React & Vendor Libs\nimport Styled from 'styled-components';\n\n// NekoUI\nimport { NekoBlock } from '@neko-ui';\n\nconst TabText = Styled.div`\n color: white;\n padding: 15px;\n margin-bottom: -15px;\n\n a {\n color: #7dedff;\n text-decoration: none;\n }\n\n p {\n font-size: 15px;\n }\n`;\n\nconst StyledPluginBlock = Styled(NekoBlock)`\n\n .nui-block-title {\n display: none;\n }\n\n .nui-block-content {\n display: flex;\n padding: 10px;\n\n h2 {\n color: #055082;\n font-size: 16px;\n margin: 5px 0 5px 0;\n\n a {\n text-decoration: none;\n }\n }\n\n p {\n margin: 0px;\n line-height: 18px;\n }\n }\n`;\n\nconst StyledPluginImage = Styled.img`\n width: 85px;\n height: 85px;\n padding-right: 10px;\n`;\n\nconst StyledPhpInfo = Styled.div`\n\n margin: 15px;\n\n .center {\n background: white;\n border-radius: 10px;\n padding: 10px;\n max-width: 100%\n overflow: none;\n\n h2 {\n font-size: 26px;\n }\n\n table {\n width: 100%;\n\n tr td:first-child {\n width: 220px;\n font-weight: bold;\n color: #1e7cba;\n }\n\n * {\n overflow-wrap: anywhere;\n }\n }\n }\n\n hr {\n border-color: #1e7cba;\n }\n`;\n\nconst StyledPhpErrorLogs = Styled.ul`\n margin-top: 10px;\n background: rgb(0, 72, 88);\n padding: 10px;\n color: rgb(58, 212, 58);\n max-height: 600px;\n min-height: 200px;\n display: block;\n font-family: monospace;\n font-size: 12px;\n white-space: pre;\n overflow-x: auto;\n width: calc(100vw - 276px);\n\n .log-date {\n color: white;\n margin-left: 8px;\n }\n\n .log-type {\n background: #0000004d;\n padding: 2px 5px;\n border-radius: 8px;\n text-transform: uppercase;\n }\n\n .log-content {\n display: block;\n }\n\n .log-warning .log-type {\n background: #ccb028;\n color: white;\n }\n\n .log-fatal .log-type {\n background: #cc2828;\n color: white;\n }\n`;\n\nexport { TabText, StyledPluginBlock, StyledPluginImage, StyledPhpInfo, StyledPhpErrorLogs };","// React & Vendor Libs\nconst { useState, useEffect } = wp.element;\n\n// NekoUI\nimport { NekoButton, NekoTypo, NekoGauge } from '@neko-ui';\nimport { postFetch } from '@neko-ui';\n\n// From Main Plugin\nimport { restUrl, restNonce } from '@app/settings';\n\n// Common\nimport { TabText } from './Dashboard.styled';\nconst CommonApiUrl = `${restUrl}/meow-common/v1`;\n\nconst SpeedTester = ({ request, title, max }) => {\n const [ runRequests, setRunRequests ] = useState(false);\n const [ results, setResults ] = useState([]);\n const resultsTotal = results.length > 0 ? results.reduce(function(a, b) { return a + b; }) : 0;\n const resultsAverage = results.length > 0 ? Math.ceil(resultsTotal / results.length) : 0;\n const isInitializing = !results.length && runRequests;\n\n useEffect(() => {\n if (!runRequests) {\n return;\n }\n setTimeout(async () => {\n const start = new Date().getTime();\n await postFetch(`${CommonApiUrl}/${request}`, { nonce: restNonce });\n const end = new Date().getTime();\n const time = end - start;\n setResults(x => [ ...x, time ]);\n }, 1000);\n }, [results]);\n\n const toggleRequestsProcess = () => {\n if (!runRequests) {\n setResults([]);\n }\n setRunRequests(!runRequests);\n }\n\n return (\n <TabText style={{ width: 200, textAlign: 'center' }}>\n <NekoTypo h2 style={{ color: 'white' }}>{title}</NekoTypo>\n <NekoGauge size={200} value={isInitializing ? max : resultsAverage} max={max}>\n <span style={{ fontSize: 20 }}>{isInitializing ? 'START' : resultsAverage + ' ms'}</span>\n <span style={{ fontSize: 12 }}>{isInitializing ? 'YOUR ENGINE' : results.length + ' requests'}</span>\n </NekoGauge>\n <NekoButton style={{ width: '100%', marginTop: 10 }} color={runRequests ? '#cc3627' : '#ccb027'}\n onClick={toggleRequestsProcess}>\n {runRequests ? 'Stop' : 'Start'}\n </NekoButton>\n </TabText>\n );\n}\n\nexport { SpeedTester };","// React & Vendor Libs\nconst { useState, useEffect } = wp.element;\nimport useSWR from 'swr';\n\n// NekoUI\nimport { NekoTypo, NekoPage, NekoHeader, NekoWrapper, NekoTab, NekoTabs, NekoBlock, NekoButton,\n NekoColumn, NekoSettings, NekoCheckboxGroup, NekoCheckbox } from '@neko-ui';\nimport { postFetch, jsonFetcher } from '@neko-ui';\n\nimport { apiUrl, restUrl, pluginUrl, restNonce } from '@app/settings';\nimport { SpeedTester } from './SpeedTester';\nimport { TabText, StyledPluginBlock, StyledPluginImage, \n StyledPhpErrorLogs, StyledPhpInfo } from './Dashboard.styled';\n\nif ( !apiUrl || !restUrl || !pluginUrl ) {\n console.error(\"[@common/dashboard] apiUrl, restUrl and pluginUrl are mandatory.\");\n}\n\nconst CommonApiUrl = `${restUrl}/meow-common/v1`;\n\nconst jsxTextStory = \n <TabText>\n <NekoTypo p>\n Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking <a target=\"_blank\" href=\"https://offbeatjapan.org\">a lot of photos</a>). Meow Apps proposes a suite of plugins focusing on photography, imaging, optimization and SEO. The ultimate goal is to make your website better, faster, while making it easy. Meow Apps also teams up with the best players in the community. For more information, please check <a href=\"http://meowapps.com\" target=\"_blank\">Meow Apps</a>.\n </NekoTypo>\n </TabText>;\n\nconst jsxTextPerformance = \n <TabText>\n <NekoTypo p>\n The <b>Empty Request Time</b> helps you analyzing the raw performance of your install by giving you the average time it takes to run an empty request to your server. You can try to disable some plugins (or change their options) then Start this again to see how it influences the results. An excellent install would have an Empty Request Time of less than 500 ms. Keep it absolutely under 2,000 ms! For more information, <a href=\"https://meowapps.com/clean-optimize-wordpress/#Optimize_your_Empty_Request_Time\" target=\"_blank\">click here</a>.\n </NekoTypo>\n <NekoTypo p>\n <b>File Operation Time</b> creates a temporary size of 10MB every time. <b>SQL Request Time</b> counts the number of posts. Those two should be very fast, and almost the same as the <b>Empty Request Time</b>.\n </NekoTypo>\n </TabText>;\n\nconst jsxTextRecommendations = \n <TabText>\n <NekoTypo p>\n Too many WordPress installs are blown-up with useless and/or heavy plugins, and not aware of best practices. That's not the fault of the users; WordPress pretends to be simple but it is in fact very complex, and the immensity and diversity of the community around it makes it a real jungle where everything is possible.\n </NekoTypo>\n <NekoTypo p>\n A rule of thumb is to keep your WordPress install as simple as possible, with the least number of plugins installed (run away from the heavy ones) and an excellent hosting service. Avoid VPS or self-hosted solutions; you must be a professional to actually set them up so that they are actually performant. \n </NekoTypo>\n <NekoTypo p>\n On the Meow Apps website, you will find articles which are always updated with the latest recommendations.\n <ul>\n <li>☘️ <a href=\"https://meowapps.com/how-to-debug-wordpress-errors/\" target=\"_blank\">How To Debug WordPress</a></li>\n <li>☘️ <a href=\"https://meowapps.com/tutorial-improve-seo-wordpress/\" target=\"_blank\">SEO Checklist & Optimization</a></li>\n <li>☘️ <a href=\"https://meowapps.com/tutorial-faster-wordpress-optimize/\" target=\"_blank\">Optimize your WordPress Speed</a></li>\n <li>☘️ <a href=\"https://meowapps.com/tutorial-optimize-images-wordpress/\" target=\"_blank\">Optimize Images (CDN, and so on)</a></li>\n <li>☘️ <a href=\"https://meowapps.com/tutorial-hosting-service-wordpress/\" target=\"_blank\">Best Hosting Services for WordPress</a></li>\n </ul>\n </NekoTypo>\n </TabText>;\n\nconst swrAllSettingsKey = [`${CommonApiUrl}/all_settings/`, { headers: { 'X-WP-Nonce': restNonce } }];\n\nconst Dashboard = () => {\n const [ fatalError, setFatalError ] = useState(false);\n const { data: swrSettings, mutate: mutateSwrSettings, error: swrError } = useSWR(swrAllSettingsKey, jsonFetcher);\n const settings = swrSettings?.data;\n const hide_meowapps = settings?.meowapps_hide_meowapps;\n const force_sslverify = settings?.force_sslverify;\n const [ busy, setBusy ] = useState(false);\n const [ phpErrorLogs, setPhpErrorLogs ] = useState([]);\n const [ phpInfo, setPhpInfo ] = useState(\"\");\n\n // Handle SWR errors\n useEffect(() => {\n if (swrError && !fatalError) {\n setFatalError(true);\n console.error('Error from UseSWR', swrError.message);\n }\n }, [swrError]);\n\n useEffect(() => {\n let info = document.getElementById('meow-common-phpinfo');\n setPhpInfo(info.innerHTML);\n }, []);\n\n const updateOption = async (value, id) => {\n let newSettingsData = { ...swrSettings.data };\n newSettingsData[id] = value;\n mutateSwrSettings({ ...swrSettings, data: newSettingsData }, false);\n setBusy(true);\n const res = await postFetch(`${CommonApiUrl}/update_option`, { json: { name: id, value }, nonce: restNonce });\n setBusy(false);\n if (!res.success) {\n alert(res.message);\n }\n mutateSwrSettings();\n }\n\n const loadErrorLogs = async () => {\n setBusy(true);\n const res = await postFetch(`${CommonApiUrl}/error_logs`, { nonce: restNonce });\n let fresh = res && res.data ? res.data : [];\n setPhpErrorLogs(fresh.reverse());\n setBusy(false);\n }\n\n const jsxHideMeowApps = \n <NekoSettings title=\"Main Menu\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"meowapps_hide_meowapps\" label=\"Hide (Not Recommended)\" description={<NekoTypo p>This will hide the Meow Apps Menu (on the left side) and everything it contains. You can re-enable it through though an option that will be added in Settings → General.</NekoTypo>} value=\"1\" disabled={busy} checked={hide_meowapps} onChange={updateOption} />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n\n const jsxForceSSLVerify = \n <NekoSettings title=\"SSL Verify\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"force_sslverify\" label=\"Force (Not Recommended)\" description={<NekoTypo p>This will enforce the usage of SSL when checking the license or updating the plugin.</NekoTypo>} value=\"1\" disabled={busy} checked={force_sslverify} onChange={updateOption} />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n return (\n <NekoPage showRestError={fatalError}>\n\n <NekoHeader title='The Dashboard'>\n </NekoHeader>\n\n <NekoWrapper>\n\n <NekoColumn full>\n \n {/* TAB FOR ADVANCED SETTINGS */}\n <NekoTabs>\n <NekoTab title='Meow Apps'>\n\n {jsxTextStory}\n\n <NekoWrapper>\n <NekoColumn minimal>\n\n <StyledPluginBlock title=\"Media Cleaner\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/media-cleaner.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/media-cleaner/'>Media Cleaner</a></h2>\n <p>The Cleaner analyzes your WordPress entirely to find out which files are not used. You can trash them, before deleting them permanently. Your WordPress will breath again :)</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Database Cleaner\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/database-cleaner.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/database-cleaner/'>Database Cleaner</a></h2>\n <p>Clean your WordPress database. This plugin is simple, handles risk levels, and aims to work even on oversized databases on which other plugins fail to operate.</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Media File Renamer\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/media-file-renamer.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/media-file-renamer/'>Media File Renamer</a></h2>\n <p>The Renamer will help you in getting nicer filenames for an improved SEO and a tidier filesystem. It's mostly automatic and very fun to use.</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Social Engine\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/social-engine.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/social-engine/'>Social Engine</a></h2>\n <p>Organize, schedule and automate the publishing of your content and photos on social accounts. Similar to Buffer, TweetDeck, etc, but without all the limitations, and in your WordPress.</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Meow Analytics\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/meow-analytics.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/meow-analytics/'>Meow Analytics</a></h2>\n <p>Are you tired of those heavy plugins, accessing your Google Analytics deliberately? Switch to Meow Analytics!</p>\n </div>\n </StyledPluginBlock>\n \n </NekoColumn>\n\n <NekoColumn minimal>\n\n <StyledPluginBlock title=\"Photo Engine\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/wplr-sync.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/wplr-sync/'>Photo Engine</a></h2>\n <p>Are you using Lightroom? So you know Photo Engine already. Wait, you don't? You must try it! This plugin will be your favorite very soon.</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Meow Gallery\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/meow-gallery.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/meow-gallery/'>Meow Gallery</a></h2>\n <p>This is the fastest gallery system... and it is pretty as well! It is 100% compatible with the native WordPress galleries and therefore, works right away.</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Meow Lightbox\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/meow-lightbox.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/meow-lightbox/'>Meow Lightbox</a></h2>\n <p>A very sleek and performant Lightbox which will also display your EXIF data (camera, lens, aperture...). Photographers love it.</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Perfect Images (Retina)\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/wp-retina-2x.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/wp-retina-2x/'>Perfect Images + Retina</a></h2>\n <p>It handles Retina, help you managing the Image Sizes registered in your WP, and much more.</p>\n </div>\n </StyledPluginBlock>\n\n <StyledPluginBlock title=\"Contact Form Block\" className=\"primary\">\n <StyledPluginImage src={`${pluginUrl}/common/img/contact-form-block.png`} />\n <div>\n <h2><a target='_blank' href='https://wordpress.org/plugins/contact-form-block/'>Contact Form Block</a></h2>\n <p>A simple, pretty and superlight contact form. If you simply want your visitors to get in touch with you, this contact form will be perfect for you and your WordPress.</p>\n </div>\n </StyledPluginBlock>\n\n </NekoColumn>\n\n </NekoWrapper>\n </NekoTab>\n \n <NekoTab title=\"Performance\">\n {jsxTextPerformance}\n <div style={{ display: 'flex', justifyContent: 'space-around', marginBottom: 25 }}>\n <SpeedTester title=\"Empty Request Time\" request=\"empty_request\" max={2500} />\n <SpeedTester title=\"File Operation Time\" request=\"file_operation\" max={2600} />\n <SpeedTester title=\"SQL Request Time\" request=\"sql_request\" max={2800} />\n </div>\n </NekoTab>\n\n <NekoTab title=\"Recommendations\">\n {jsxTextRecommendations}\n </NekoTab>\n\n <NekoTab title=\"PHP Info\">\n <StyledPhpInfo dangerouslySetInnerHTML={{ __html: phpInfo }} />\n </NekoTab>\n\n <NekoTab title=\"PHP Error Logs\">\n <TabText>\n <NekoButton style={{ marginBottom: 10 }} color={'#ccb027'} onClick={loadErrorLogs}>\n Load PHP Error Logs\n </NekoButton>\n <StyledPhpErrorLogs>\n {phpErrorLogs.map(x => <li class={`log-${x.type}`}>\n <span class='log-type'>{x.type}</span>\n <span class='log-date'>{x.date}</span>\n <span class='log-content'>{x.content}</span>\n </li>)}\n </StyledPhpErrorLogs>\n </TabText>\n {/* {jsxPhpErrorLogs}\n <StyledPhpErrorLogs dangerouslySetInnerHTML={{ __html: phpErrorLogs }} />\n <StyledPhpInfo dangerouslySetInnerHTML={{ __html: phpInfo }} /> */}\n </NekoTab>\n\n <NekoTab title=\"Settings\">\n <NekoBlock title=\"Settings\" className=\"primary\">\n {jsxHideMeowApps}\n {jsxForceSSLVerify}\n </NekoBlock>\n </NekoTab>\n \n </NekoTabs>\n\n </NekoColumn>\n\n </NekoWrapper>\n </NekoPage>\n );\n};\n\nexport { Dashboard };","// React & Vendor Libs\nconst { useState, useEffect } = wp.element;\n\n// NekoUI\nimport { NekoButton, NekoTypo, NekoBlock, NekoSettings, NekoInput, \n NekoMessageDanger, NekoMessageSuccess, NekoModal } from '@neko-ui';\nimport { postFetch } from '@neko-ui';\n\n// From Main Plugin\nimport { restUrl, prefix, domain, isPro, isRegistered, restNonce } from '@app/settings';\n\nconst CommonApiUrl = `${restUrl}/meow-licenser/${prefix}/v1`;\n\nconst LicenseBlock = () => {\n const [ busy, setBusy ] = useState(false);\n const [ meowMode, setMeowMode ] = useState(false);\n const [ currentModal, setCurrentModal ] = useState(null);\n const [ license, setLicense ] = useState(null);\n const [ serialKey, setSerialKey ] = useState('');\n const isOverridenLicense = isRegistered && (!license || license.license !== 'valid');\n\n const checkLicense = async () => {\n if (!isPro) {\n return;\n }\n setBusy(true);\n const res = await postFetch(`${CommonApiUrl}/get_license`, { nonce: restNonce });\n setLicense(res.data);\n if (res.data.key) {\n setSerialKey(res.data.key);\n }\n setBusy(false);\n }\n\n const removeLicense = async () => {\n setBusy(true);\n const res = await postFetch(`${CommonApiUrl}/set_license`, { nonce: restNonce, json: { serialKey: null } });\n if (res.success) {\n setSerialKey('');\n setLicense(null);\n setCurrentModal('licenseRemoved');\n }\n setBusy(false);\n }\n\n const forceLicense = async () => {\n setBusy(true);\n const res = await postFetch(`${CommonApiUrl}/set_license`, { nonce: restNonce, json: { serialKey, override: true } });\n if (res.success) {\n setLicense(res.data);\n if (res.data && !res.data.issue) {\n setCurrentModal('licenseAdded');\n }\n }\n setBusy(false);\n }\n\n const validateLicense = async () => {\n if ( serialKey === 'MEOW_OVERRIDE' ) {\n setMeowMode(true);\n setLicense(null);\n setSerialKey(\"\");\n return;\n }\n setBusy(true);\n const res = await postFetch(`${CommonApiUrl}/set_license`, { nonce: restNonce, json: { serialKey } });\n if (res.success) {\n setLicense(res.data);\n if (res.data && !res.data.issue) {\n setCurrentModal('licenseAdded');\n }\n }\n setBusy(false);\n }\n\n useEffect(() => { checkLicense() }, []);\n\n const licenseTextStatus = isOverridenLicense ? 'Forced License' : isRegistered ? 'Enabled' : 'Disabled';\n\n const success = isOverridenLicense || (license && license.license === 'valid');\n let message = '\u001bYour license is active. Thanks a lot for your support :)';\n if ( isOverridenLicense && license && license.check_url ) {\n message = <><span>{message}</span><br /><small>This license was enabled manually. To check your license status, please click <a target=\"_blank\" href={license.check_url + '&cache=' + (Math.random() * (642000))}>here</a>.</small></>;\n }\n if (!success) {\n if (!license) {\n message = 'Unknown error :(';\n }\n else if (license.issue === 'no_activations_left') {\n message = <span>There are no activations left for this license. You can visit your account at the <a target='_blank' rel=\"noreferrer\" href='https://meowapps.com'>Meow Apps Store</a>, unregister a site, and click on <i>Retry to validate</i>.</span>;\n }\n else if (license.issue === 'expired') {\n message = <span>Your license has expired. You can get another license or renew the current one by visiting your account at the <a target='_blank' rel=\"noreferrer\" href='https://meowapps.com'>Meow Apps Store</a>.</span>;\n }\n else if (license.issue === 'missing') {\n message = 'This license does not exist.';\n }\n else if (license.issue === 'disabled') {\n message = 'This license has been disabled.';\n }\n else if (license.issue === 'item_name_mismatch') {\n message = 'This license seems to be for a different plugin... isn\\'t it? :)';\n }\n else if (license.issue === 'forced') {\n message = 'ABC';\n }\n else {\n message = <span>There is an unknown error related to the system or this serial key. Really sorry about this! Make sure your security plugins and systems are off temporarily. If you are still experiencing an issue, please <a target='_blank' rel=\"noreferrer\" href='https://meowapps.com/contact/'>contact us</a>.</span>\n console.error({ license });\n }\n }\n\n const jsxNonPro = \n <NekoBlock title=\"Pro Version (Not Installed)\" className=\"primary\">\n You will find more information about the Pro Version <a target='_blank' rel=\"noreferrer\" href={`https://meowapps.com`}>here</a>. If you actually bought the Pro Version already, please remove the current plugin and download the Pro Version from your account at the <a target='_blank' rel=\"noreferrer\" href='https://meowapps.com/'>Meow Apps Store</a>.\n </NekoBlock>;\n\n const jsxProVersion = \n <NekoBlock title={`Pro Version (${licenseTextStatus})`} busy={busy} className=\"primary\">\n\n <NekoSettings title=\"Serial Key\" style={{ fontWeight: 'bold' }}><NekoInput id=\"mfrh_pro_serial\" \n name=\"mfrh_pro_serial\" disabled={busy} value={serialKey} onChange={(txt) => setSerialKey(txt)} placeholder=\"\" />\n </NekoSettings>\n\n {license && !success && <NekoMessageDanger>{message}</NekoMessageDanger>}\n {license && success && <NekoMessageSuccess>{message}</NekoMessageSuccess>}\n\n {!license && <NekoTypo p>\n Insert your serial key above. If you don't have one yet, you can get one <a href=\"https://meowapps.com\">here</a>. If there was an error during the validation, try the <i>Retry</i> to <i>validate</i> button.\n </NekoTypo>\n }\n\n <NekoSettings contentAlign=\"right\">\n {license && !success && <NekoButton className=\"secondary\" disabled={busy || !serialKey} \n onClick={validateLicense}>Retry to validate\n </NekoButton>}\n {license && license.key === serialKey && <NekoButton className=\"secondary\" disabled={busy || !serialKey} \n onClick={removeLicense}>Remove License\n </NekoButton>}\n <NekoButton disabled={busy || !serialKey || (license && license.key === serialKey)} \n onClick={validateLicense}>Validate License</NekoButton>\n {meowMode && !success && <NekoButton disabled={busy || !serialKey || (license && license.key === serialKey)} \n onClick={forceLicense} className=\"danger\">Force License</NekoButton>}\n </NekoSettings>\n\n <NekoModal\n isOpen={currentModal === 'licenseAdded'}\n title=\"Thank you :)\"\n content=\"The Pro features have been enabled. This page should be now reloaded.\"\n ok='Reload'\n onOkClick={() => location.reload()}\n />\n\n <NekoModal\n isOpen={currentModal === 'licenseRemoved'}\n title=\"Goodbye :(\"\n content=\"The Pro features have been disabled. This page should be now reloaded.\"\n ok='Reload'\n onOkClick={() => location.reload()}\n />\n\n </NekoBlock>;\n\n return (isPro ? jsxProVersion : jsxNonPro);\n};\n\nexport { LicenseBlock };\n","const { render } = wp.element;\nimport { Dashboard } from './dashboard/Dashboard';\n\n// Common Dashboard\nif (!document.meowDashboardLoaded) {\n\tdocument.meowDashboardLoaded = true;\n\tdocument.addEventListener('DOMContentLoaded', function(event) {\n\t\tconst commmonDash = document.getElementById('meow-common-dashboard');\n\t\tif (commmonDash) {\n\t\t\trender((<Dashboard />), commmonDash);\n\t\t}\n\t});\n}\n\nexport { LicenseBlock } from './components/LicenseBlock';\n","// React & Vendor Libs\nconst { useState, useMemo } = wp.element;\nimport useSWR from 'swr';\n\n// NekoUI\nimport { NekoInput, NekoTypo, NekoPage, NekoBlock, NekoHeader, NekoContainer, NekoSettings,\n NekoTabs, NekoTab, NekoCheckboxGroup, NekoCheckbox, NekoWrapper, NekoSelect, NekoOption,\n NekoColumn } from '@neko-ui';\nimport { jsonFetcher, postFetch, useHandleSWR } from '@neko-ui';\nimport { apiUrl, prefix, domain, isRegistered, isPro, restNonce } from '@app/settings';\nimport { LicenseBlock } from '@common';\n\nconst Settings = () => {\n\n const swrAllSettingsKey = useMemo(() => {\n return [`${apiUrl}/all_settings/`, { headers: { 'X-WP-Nonce': restNonce } }];\n }, [apiUrl, restNonce]);\n const { data: swrSettings, mutate: mutateSwrSettings } = useSWR(swrAllSettingsKey, jsonFetcher);\n const { busy: busySettings, data: settings, error: swrError } = useHandleSWR(swrSettings, {}, true);\n const [ busyAction, setBusyAction ] = useState(false);\n const busy = busySettings || busyAction;\n\n const obmode = settings?.mgcl_obmode;\n const parsingEngine = settings?.mgcl_parsing_engine;\n const log = settings?.mgcl_log;\n const buttonEnabled = settings?.mgcl_button_enabled;\n const buttonLabel = settings?.mgcl_button_label;\n\n const parsingEngineOptions = [\n { id: \"none\", value: \"None\", label: \"None (Not Supported Yet)\"},\n { id: \"htmldomparser\", value: \"HtmlDomParser\", label: \"HtmlDomParser\" },\n { id: \"didom\", value: \"DiDom\", label: \"DiDom\" }\n ]\n\n const updateOption = async (value, id) => {\n let newSettingsData = { ...swrSettings.data };\n newSettingsData[id] = value;\n mutateSwrSettings({ ...swrSettings, data: newSettingsData }, false);\n setBusyAction(true);\n try {\n await postFetch(`${apiUrl}/update_option`, { json: { name: id, value }, nonce: restNonce });\n }\n catch (err) {\n alert(err.message);\n }\n finally {\n setBusyAction(false);\n mutateSwrSettings();\n }\n }\n\n /**\n * Settings\n */\n\n const jsxOBMode =\n <NekoSettings title=\"OB Mode\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_obmode\" label=\"Enabled\" value=\"1\" checked={obmode} onChange={updateOption} description=\"If the linked images are outside of the main content (header, sidebar, etc), OB Mode is needed. This slows down the processing (cache recommended).\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxParsingEngine =\n <NekoSettings title=\"Parsing Engine\" description=\"Hello\">\n <NekoSelect id=\"mgcl_parsing_engine\" onChange={updateOption}>\n {parsingEngineOptions.map(option => <NekoOption id={`mgcl_parsing_engine_${option.id}`} value={option.value} label={option.label} checked={parsingEngine === option.value} /> )}\n </NekoSelect>\n </NekoSettings>;\n\n const jsxLog =\n <NekoSettings title=\"Logs\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_log\" label=\"Logs\" value=\"1\" checked={log} onChange={updateOption} description=\"Simple logging, written directly in the PHP Error Logs.\" />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n /**\n * CTA Buttons\n */\n const jsxUseButtons =\n <NekoSettings title=\"Use Buttons\">\n <NekoCheckboxGroup max=\"1\">\n <NekoCheckbox id=\"mgcl_button_enabled\" label=\"Enabled\" value=\"1\" description=\"A call-to-action button will be used of a clickable image.\" checked={buttonEnabled} onChange={updateOption} />\n </NekoCheckboxGroup>\n </NekoSettings>;\n\n const jsxButtonLabel =\n <NekoSettings title=\"Label\">\n <NekoInput id=\"mgcl_button_label\" name=\"mgcl_button_label\" value={buttonLabel} description=\"A call-to-action button will be used of a clickable image.\" onBlur={updateOption} />\n </NekoSettings>;\n\n return (\n <NekoPage nekoErrors={[ swrError ]}>\n\n <NekoHeader title='Gallery Custom Links | Settings' subtitle='By Jordy Meow' />\n\n <NekoWrapper>\n\n <NekoColumn full>\n <NekoContainer>\n <NekoTypo p>This plugin works out of the box, the default settings are the best for most installs. Don't hesitate to take a look at the <a target=\"_blank\" href=\"https://meowapps.com/plugin/gallery-custom-links/\">official page</a>. <b>If you are interested in the Pro Version, it's <a target=\"_blank\" href=\"https://meowapps.com/products/gallery-custom-links-pro/\">here!</a></b> 💕</NekoTypo>\n </NekoContainer>\n\n <NekoTabs>\n\n <NekoTab title='Settings'>\n <NekoWrapper>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"Settings\" className=\"primary\">\n {jsxParsingEngine}\n {jsxOBMode}\n {jsxLog}\n </NekoBlock>\n </NekoColumn>\n\n <NekoColumn minimal>\n <NekoBlock busy={busy} title=\"CTA Buttons\" className=\"primary\">\n <NekoTypo p><b>Currently works with the <a href=\"https://wordpress.org/plugins/meow-gallery/\">Meow Gallery</a> and Gutenberg Galleries.</b> In a future Pro version, support for additional galleries might be added (please contact <a href=\"https://meowapps.com/contact/\">Meow Apps</a> for this).</NekoTypo>\n {jsxUseButtons}\n {!buttonEnabled ? null : jsxButtonLabel}\n </NekoBlock>\n </NekoColumn>\n\n </NekoWrapper>\n </NekoTab>\n\n <NekoTab title='License'>\n <LicenseBlock domain={domain} prefix={prefix} isPro={isPro} isRegistered={isRegistered} />\n </NekoTab>\n\n </NekoTabs>\n\n </NekoColumn>\n\n </NekoWrapper>\n\n </NekoPage>\n );\n};\n\nexport default Settings;","const { __ } = wp.i18n;\n\nconst i18n = {};\n\ni18n.PENDING = __( 'Pending', 'gallery-custom-links' );\ni18n.RENAME = __( 'Rename', 'gallery-custom-links' );\ni18n.TITLE = __( 'Title', 'gallery-custom-links' );\ni18n.SAME_PAGE = __( 'Same page', 'gallery-custom-links' );\ni18n.NEW_PAGE = __( 'New page', 'gallery-custom-links' );\ni18n.LINK_URL = __( 'Link URL', 'gallery-custom-links' );\ni18n.LINK_TARGET = __( 'Link Target', 'gallery-custom-links' );\ni18n.LINK_REL = __( 'Link Rel', 'gallery-custom-links' );\ni18n.ARIAL_LABEL = __( 'Arial Label', 'gallery-custom-links' );\n\nexport default i18n;\n\n","// React & Vendor Libs\nconst { useState, useCallback } = wp.element;\nimport Styled from \"styled-components\";\n\n// Libs\nimport i18n from '@app/i18n';\nimport { apiUrl, restNonce } from '@app/settings';\n\n// NekoUI\nimport { NekoTypo, NekoIcon, NekoModal, NekoInput, NekoSelect, NekoOption } from '@neko-ui';\nimport { postFetch } from '@neko-ui';\n\nconst targets = [\n\t{ label: i18n.SAME_PAGE, value: '_self' },\n\t{ label: i18n.NEW_PAGE, value: '_blank' }\n];\n\nconst GroupContainer = Styled.div`\n\talign-items: center;\n\tdisplay: flex;\n\tmargin-bottom: 10px;\n\n\tp {\n\t\tmargin: 0 !important;\n\t\twidth: 20%;\n\t}\n\n\t> div {\n\t\tflex-grow: 1;\n\t}\n`;\n\nconst EditLinkField = ( props ) => {\n\n\tconst [ busyAction, setBusyAction ] = useState(false);\n\tconst busy = busyAction;\n\n\tconst { postId } = props;\n\tconst [ url, setUrl ] = useState( props.url );\n\tconst [ target, setTarget ] = useState( props.target ? props.target : '_self' );\n\tconst [ rel, setRel ] = useState( props.rel );\n\tconst [ aria, setAria ] = useState( props.aria );\n\tconst [ openModal, setOpenModal ] = useState( false );\n\n\tconst updateOption = async (postId, url, target, rel, aria) => {\n\t\tsetBusyAction( true );\n\t\tlet result = true;\n\t\ttry {\n\t\t\tconst res = await postFetch( `${apiUrl}/update_meta`, { json: {\n\t\t\t\tpost_id: postId,\n\t\t\t\t_gallery_link_url: url,\n\t\t\t\t_gallery_link_target: target,\n\t\t\t\t_gallery_link_rel: rel,\n\t\t\t\t_gallery_link_aria: aria,\n\t\t\t}, nonce: restNonce } );\n\t\t\tif ( !res.success ) {\n\t\t\t\tresult = false;\n\t\t\t\talert(res.message);\n\t\t\t}\n\t\t} catch ( err ) {\n\t\t\tresult = false;\n\t\t\talert( err.message );\n\t\t} finally {\n\t\t\tif ( result ) onCloseModal();\n\t\t\tsetBusyAction( false );\n\t\t}\n\t};\n\n\tconst onCloseModal = () => setOpenModal( false )\n\n\tconst onOkClick = useCallback(() => {\n\t\tupdateOption( postId, url, target, rel, aria );\n\t}, [postId, url, target, rel, aria, updateOption, onCloseModal]);\n\n const onKeyDown = useCallback((e) => {\n if (e.key === 'Enter' || e.keyCode === 13) {\n e.preventDefault();\n onOkClick();\n }\n }, [onOkClick]);\n\n\treturn (\n\t\t<>\n\t\t\t<span onClick={() => setOpenModal( true )} style={{ cursor: 'pointer' }}>\n\t\t\t\t<NekoIcon icon=\"link\" disabled={!url} />\n\t\t\t</span>\n\t\t\t<NekoModal\n\t\t\t\tisOpen={openModal}\n\t\t\t\tonRequestClose={onCloseModal}\n\t\t\t\ttitle=\"Edit the custom link\"\n\t\t\t\tcontent={\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_URL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setUrl(e.target.value)}\n onKeyDown={onKeyDown} value={url} autoFocus />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_TARGET}</NekoTypo>\n\t\t\t\t\t\t\t<NekoSelect scrolldown={true} value={target} onChange={(v) => setTarget(v)} disabled={busy}>\n\t\t\t\t\t\t\t\t{targets.map(target => <NekoOption value={target.value} label={target.label} />)}\n\t\t\t\t\t\t\t</NekoSelect>\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.LINK_REL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setRel(e.target.value)} value={rel} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t\t<GroupContainer>\n\t\t\t\t\t\t\t<NekoTypo p>{i18n.ARIAL_LABEL}</NekoTypo>\n\t\t\t\t\t\t\t<NekoInput disabled={busy} onInput={(e) => setAria(e.target.value)} value={aria} />\n\t\t\t\t\t\t</GroupContainer>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\tonOkClick={onOkClick}\n\t\t\t\tonCancelClick={onCloseModal}\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default EditLinkField;","// React & Vendor Libs\nimport React from 'react';\nimport ReactDOM from 'react-dom';\n\n// Gallery Custom Links\nimport Settings from '@app/components/Settings';\nimport EditLinkField from '@app/components/EditLinkField';\n\nlet isMediaLibrary = null;\n\nfunction init() {\n\tisMediaLibrary = document.getElementsByClassName('upload-php')[0];\n}\n\n// Gallery Custom Links Settings\nfunction addSettings() {\n\tconst container = document.getElementById('mgcl-admin-settings');\n\tif (container) {\n\t\tReactDOM.render((<Settings />), container);\n\t\treturn true;\n\t}\n\treturn false;\n}\n\ndocument.addEventListener('DOMContentLoaded', function(event) {\n\n\tinit();\n\n\tif (addSettings() || !isMediaLibrary) {\n\t\treturn;\n\t}\n\n\t// Edit Link Fields need to be added in the Media Library\n\tconst fields = Array.from(document.getElementsByClassName('mgcl-edit-link-field'));\n\tfields.forEach(field => {\n\t\tconst postId = field.getAttribute('data-post-id');\n\t\tconst url = field.getAttribute('data-url');\n\t\tconst target = field.getAttribute('data-target');\n\t\tconst rel = field.getAttribute('data-rel');\n\t\tconst aria = field.getAttribute('data-aria');\n\t\tReactDOM.render((<EditLinkField postId={postId} url={url} target={target} rel={rel} aria={aria} />), field);\n\t});\n\n});\n"],"sourceRoot":""}
|
app/vendor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
(window.wpJsonMgcl=window.wpJsonMgcl||[]).push([[1],[,function(e,t,n){e.exports=n(81)()},function(e,t,n){"use strict";(function(e){var r=n(11),o=n(0),i=n.n(o),a=n(31),l=n.n(a),u=n(32),s=n(33),c=n(25),f=n(22),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},y=Object.freeze([]),m=Object.freeze({});function b(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var _=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY));function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,u=t.length;l<u;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),M=new Map,A=new Map,x=1,E=function(e){if(M.has(e))return M.get(e);for(;A.has(x);)x++;var t=x++;return M.set(e,t),A.set(t,e),t},P=function(e){return A.get(e)},I=function(e,t){t>=x&&(x=t+1),M.set(e,t),A.set(t,e)},j="style["+_+'][data-styled-version="5.3.1"]',R=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(R);if(l){var u=0|parseInt(l[1],10),s=l[2];0!==u&&(I(s,u),T(e,s,l[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},N=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.1");var a=N();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},D=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),H=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),V=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),z=C,q={isServer:!C,useCSSOMInjection:!O},$=function(){function e(e,t,n){void 0===e&&(e=m),void 0===t&&(t={}),this.options=h({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&z&&(z=!1,function(e){for(var t=document.querySelectorAll(j),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(_)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return E(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new V(o):r?new D(o):new H(o),new k(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(E(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=P(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var u=_+".g"+o+'[id="'+i+'"]',s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+l+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),U=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function Z(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=W(t%52)+n;return(W(t%52)+n).replace(U,"$1-$2")}var B=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},G=function(e){return B(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!w(n))return!1}return!0}var Y=G("5.3.1"),X=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=B(Y,t),this.baseStyle=n,$.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ve(this.rules,e,t,n).join(""),a=Z(B(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,s=B(this.baseHash,n.hash),c="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var h=ve(d,e,t,n),p=Array.isArray(h)?h.join(""):h;s=B(s,p+f),c+=p}}if(c){var v=Z(s>>>0);if(!t.hasNameForId(r,v)){var y=n(c,"."+v,void 0,r);t.insertRules(r,v,y)}o.push(v)}}return o.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function ee(e){var t,n,r,o,i=void 0===e?m:e,a=i.options,l=void 0===a?m:a,s=i.plugins,c=void 0===s?y:s,f=new u.a(l),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,u,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==J.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,l){void 0===l&&(l="&");var u=e.replace(Q,""),s=i&&a?a+" "+i+" { "+u+" }":u;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||S(15),B(e,t.name)}),5381).toString():"",v}var te=i.a.createContext(),ne=(te.Consumer,i.a.createContext()),re=(ne.Consumer,new $),oe=ee();function ie(){return Object(o.useContext)(te)||re}function ae(){return Object(o.useContext)(ne)||oe}function le(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),u=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(te.Provider,{value:u},i.a.createElement(ne.Provider,{value:s},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),se=/([A-Z])/,ce=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function he(e){return se.test(e)?e.replace(ce,de).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ve(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return pe(e)?"":w(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof ue?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!pe(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(he(a)+":",t[a],";"):v(t[a])?i.push.apply(i,e(t[a],a)):i.push(he(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in s.a?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var u}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||v(e)?ye(ve(p(y,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(ve(p(e,n)))}new Set;var be=function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function _e(e){return e.replace(ge,"-").replace(we,"")}var Ce=function(e){return Z(G(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];Se(t)&&Se(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Se(a))for(var l in a)ke(l)&&Me(e,a[l],l)}return e}var xe=i.a.createContext();xe.Consumer;var Ee={};function Pe(e,t,n){var r=w(e),a=!Oe(e),l=t.attrs,u=void 0===l?y:l,s=t.componentId,f=void 0===s?function(e,t){var n="string"!=typeof e?"sc":_e(e);Ee[n]=(Ee[n]||0)+1;var r=n+"-"+Ce("5.3.1"+n+Ee[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,p=t.displayName,v=void 0===p?function(e){return Oe(e)?"styled."+e:"Styled("+g(e)+")"}(e):p,_=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||f,C=r&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,O=t.shouldForwardProp;r&&e.shouldForwardProp&&(O=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var S,k=new X(n,_,r?e.componentStyle:void 0),M=k.isStatic&&0===u.length,A=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,s=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=m);var r=h({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in b(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(be(t,Object(o.useContext)(xe),l)||m,t,i),v=p[0],y=p[1],g=function(e,t,n,r){var o=ie(),i=ae();return t?e.generateAndInjectStyles(m,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,v),w=n,_=y.$as||t.$as||y.as||t.as||d,C=Oe(_),O=y!==t?h({},t,{},y):t,S={};for(var k in O)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?S.as=O[k]:(s?s(k,c.a,_):!C||Object(c.a)(k))&&(S[k]=O[k]));return t.style&&y.style!==t.style&&(S.style=h({},t.style,{},y.style)),S.className=Array.prototype.concat(u,f,g!==f?g:null,t.className,y.className).filter(Boolean).join(" "),S.ref=w,Object(o.createElement)(_,S)}(S,e,t,M)};return A.displayName=v,(S=i.a.forwardRef(A)).attrs=C,S.componentStyle=k,S.displayName=v,S.shouldForwardProp=O,S.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):y,S.styledComponentId=_,S.target=r?e.target:e,S.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Oe(e)?e:_e(g(e)));return Pe(e,h({},o,{attrs:C,componentId:i}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},a&&d()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Ie=function(e){return function e(t,n,o){if(void 0===o&&(o=m),!Object(r.isValidElementType)(n))return S(1,String(n));var i=function(){return t(n,o,me.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),$.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(ve(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&$.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=N();return"<style "+[n&&'nonce="'+n+'"',_+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=N();return r&&(n.nonce=r),[i.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new $({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?S(2):i.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)}}();t.a=Ie}).call(this,n(83))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InlineIcon=t.Icon=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=0,u=/(-?[0-9.]*[0-9]+[0-9.]*)/g,s=/^-?[0-9.]*[0-9]+[0-9.]*$/g,c=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=t}var t,n,r;return t=e,r=[{key:"splitAttributes",value:function(e){var t={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(n){t[-1===c.indexOf(n)?"node":"icon"][n]=e[n]})),t}},{key:"calculateDimension",value:function(e,t,n){if(1===t)return e;if(n=void 0===n?100:n,"number"==typeof e)return Math.ceil(e*t*n)/n;var r=e.split(u);if(null===r||!r.length)return null;for(var o,i=[],a=r.shift(),l=s.test(a);;){if(l?(o=parseFloat(a),isNaN(o)?i.push(a):i.push(Math.ceil(o*t*n)/n)):i.push(a),void 0===(a=r.shift()))return i.join("");l=!l}}},{key:"replaceIDs",value:function(e){var t,n,r=/\sid="(\S+)"/g,o=[];function i(e,t,n){for(var r=0;-1!==(r=n.indexOf(e,r));)n=n.slice(0,r)+t+n.slice(r+e.length),r+=t.length;return n}for(;t=r.exec(e);)o.push(t[1]);return o.length?(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(t){var r=n+l;l++,e=i('="'+t+'"','="'+r+'"',e),e=i('="#'+t+'"','="#'+r+'"',e),e=i("(#"+t+")","(#"+r+")",e)})),e):e}}],(n=[{key:"getAttributes",value:function(t){var n=this._item;"object"!==i(t)&&(t=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:n.rotate,hFlip:n.hFlip,vFlip:n.vFlip},a=Object.create(null),l=Object.create(null),u=!0===t.inline||"true"===t.inline||"1"===t.inline,s={left:n.left,top:u?n.inlineTop:n.top,width:n.width,height:u?n.inlineHeight:n.height};if(["hFlip","vFlip"].forEach((function(e){void 0===t[e]||!0!==t[e]&&"true"!==t[e]&&"1"!==t[e]||(o[e]=!o[e])})),void 0!==t.flip&&t.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==t.rotate){var c=t.rotate;if("number"==typeof c)o.rotate+=c;else if("string"==typeof c){var f=c.replace(/^-?[0-9.]*/,"");if(""===f)c=parseInt(c),isNaN(c)||(o.rotate+=c);else if(f!==c){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(c=parseInt(c.slice(0,c.length-f.length)),isNaN(c)||(o.rotate+=Math.round(c/d)))}}}var h,p=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(p.push("translate("+(s.width+s.left)+" "+(0-s.top)+")"),p.push("scale(-1 1)"),s.top=s.left=0):o.vFlip&&(p.push("translate("+(0-s.left)+" "+(s.height+s.top)+")"),p.push("scale(1 -1)"),s.top=s.left=0),o.rotate%4){case 1:h=s.height/2+s.top,p.unshift("rotate(90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h);break;case 2:p.unshift("rotate(180 "+(s.width/2+s.left)+" "+(s.height/2+s.top)+")");break;case 3:h=s.width/2+s.left,p.unshift("rotate(-90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h)}var v,y,m=t.width?t.width:null,b=t.height?t.height:null;null===m&&null===b&&(b="1em"),null!==m&&null!==b?(v=m,y=b):null!==m?(v=m,y=e.calculateDimension(v,s.height/s.width)):(y=b,v=e.calculateDimension(y,s.width/s.height)),!1!==v&&(l.width="auto"===v?s.width:v),!1!==y&&(l.height="auto"===y?s.height:y),u&&0!==n.verticalAlign&&(a["vertical-align"]=n.verticalAlign+"em"),void 0!==t.align&&t.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var t;switch(e.horizontal){case"left":t="xMin";break;case"right":t="xMax";break;default:t="xMid"}switch(e.vertical){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}(r),l.viewBox=s.left+" "+s.top+" "+s.width+" "+s.height;var g=e.replaceIDs(n.body);return void 0!==t.color&&(g=g.replace(/currentColor/g,t.color)),p.length&&(g='<g transform="'+p.join(" ")+'">'+g+"</g>"),!0!==t.box&&"true"!==t.box&&"1"!==t.box||(g+='<rect x="'+s.left+'" y="'+s.top+'" width="'+s.width+'" height="'+s.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:g,style:a}}},{key:"getSVG",value:function(t,n){var r=e.splitAttributes(t),o=this.getAttributes(r.icon),i='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return n&&Object.keys(r.node).forEach((function(e){i+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){i+=" "+e+'="'+o.attributes[e]+'"'})),i+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){i+=" "+e+": "+o.style[e]+";"})),t&&void 0!==t.style&&(i+=t.style),i+='">',i+=o.body+"</svg>"}}])&&a(t.prototype,n),r&&a(t,r),e}();function h(e,t){if("object"!==i(e.icon))return null;var n=d.splitAttributes(e),r=n.icon,a=n.node;delete a.icon,void 0===r.inline&&(r.inline=t);var l=new d(function(e){var t,n=Object.create(null);for(t in f)n[t]=f[t];for(t in e)n[t]=e[t];return void 0===n.inlineTop&&(n.inlineTop=n.top),void 0===n.inlineHeight&&(n.inlineHeight=n.height),void 0===n.verticalAlign&&(n.verticalAlign=n.height%7==0&&n.height%8!=0?-.143:-.125),n}(e.icon)).getAttributes(r),u={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(u.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var s in e.style)u[s]=e.style[s];var c,h={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:u};for(c in a)h[c]=a[c];for(c in l.attributes)h[c]=l.attributes[c];return h.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",h,null)}var p=function(e){return h(e,!1)};t.Icon=p;t.InlineIcon=function(e){return h(e,!0)};var v=p;t.default=v},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(){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(e){return!1}}function l(e,t,n){return(l=a()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,i(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return D}));var c=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),r}(u(Error));function f(e){return Math.round(255*e)}function d(e,t,n){return f(e)+","+f(t)+","+f(n)}function h(e,t,n,r){if(void 0===r&&(r=d),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,u=0,s=0;o>=0&&o<1?(l=i,u=a):o>=1&&o<2?(l=a,u=i):o>=2&&o<3?(u=i,s=a):o>=3&&o<4?(u=a,s=i):o>=4&&o<5?(l=a,s=i):o>=5&&o<6&&(l=i,s=a);var c=n-i/2;return r(l+c,u+c,s+c)}var p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,C=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function O(e){if("string"!=typeof e)throw new c(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return p[t]?"#"+p[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(y)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(m))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=g.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=w.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=_.exec(t);if(a){var l="rgb("+h(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=g.exec(l);if(!u)throw new c(4,t,l);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var s=C.exec(t.substring(0,50));if(s){var f="rgb("+h(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",d=g.exec(f);if(!d)throw new c(4,t,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+s[4])}}throw new c(5)}function S(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),l=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var u=i-a,s=l>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:s,lightness:l,alpha:e.alpha}:{hue:t,saturation:s,lightness:l}}(O(e))}var k=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function M(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function A(e){return M(Math.round(255*e))}function x(e,t,n){return k("#"+A(e)+A(t)+A(n))}function E(e,t,n){return h(e,t,n,x)}function P(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return E(e,t,n);if("object"===s(e)&&void 0===t&&void 0===n)return E(e.hue,e.saturation,e.lightness);throw new c(1)}function I(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?E(e,t,n):"rgba("+h(e,t,n)+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?E(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new c(2)}function j(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return k("#"+M(e)+M(t)+M(n));if("object"===s(e)&&void 0===t&&void 0===n)return k("#"+M(e.red)+M(e.green)+M(e.blue));throw new c(6)}function R(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=O(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?j(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?j(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new c(7)}function T(e){if("object"!==s(e))throw new c(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return R(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return j(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return P(e);throw new c(8)}function L(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function N(e,t,n){return Math.max(e,Math.min(t,n))}function F(e,t){if("transparent"===t)return t;var n=S(t);return T(r({},n,{lightness:N(0,1,n.lightness+parseFloat(e))}))}var D=L(F)},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14Z"/>'}},,function(e,t,n){"use strict";e.exports=n(84)},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M14 19h4V5h-4M6 19h4V5H6v14Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M8 5.14v14l11-7l-11-7Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 18H6V6h12v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/>'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(96);var i=((r=o)&&r.__esModule?r:{default:r}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},function(e,t,n){"use strict";var r=n(11),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=u(t),v=u(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||v&&v[m]||l&&l[m])){var b=d(n,m);try{s(t,m,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,u,"next",e)}function u(e){r(a,o,i,l,u,"throw",e)}l(void 0)}))}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){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(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0});var f=n(86),d=n(87),h=n(89),p=function(){},v=new d.TimeoutError,y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(b,e);var t,n,r,s,c,f,y,m=u(b);function b(e){var t,n,r,o,a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(t=m.call(this))._intervalCount=0,t._intervalEnd=0,t._pendingCount=0,t._resolveEmpty=p,t._resolveIdle=p,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(n=e.intervalCap)||void 0===n?void 0:n.toString())&&void 0!==r?r:"","` (").concat(i(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==a?a:"","` (").concat(i(e.interval),")"));return t._carryoverConcurrencyCount=e.carryoverConcurrencyCount,t._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,t._intervalCap=e.intervalCap,t._interval=e.interval,t._queue=new e.queueClass,t._queueClass=e.queueClass,t.concurrency=e.concurrency,t._timeout=e.timeout,t._throwOnTimeout=!0===e.throwOnTimeout,t._isPaused=!1===e.autoStart,t}return t=b,(n=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=p,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=p,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,t=Date.now();if(void 0===this._intervalId){var n=this._intervalEnd-t;if(!(n<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),n)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(i(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(y=o(regeneratorRuntime.mark((function e(t){var n,r=this,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise((function(e,i){var a=function(){var a=o(regeneratorRuntime.mark((function o(){var a;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,a=void 0===r._timeout&&void 0===n.timeout?t():d.default(Promise.resolve(t()),void 0===n.timeout?r._timeout:n.timeout,(function(){(void 0===n.throwOnTimeout?r._throwOnTimeout:n.throwOnTimeout)&&i(v)})),o.t0=e,o.next=7,a;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),i(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return a.apply(this,arguments)}}();r._queue.enqueue(a,n),r._tryToStartAnother(),r.emit("add")})));case 2:case"end":return e.stop()}}),e)}))),function(e){return y.apply(this,arguments)})},{key:"addAll",value:(f=o(regeneratorRuntime.mark((function e(t,n){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t.map(function(){var e=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(c=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveEmpty;t._resolveEmpty=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"onIdle",value:(s=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveIdle;t._resolveIdle=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&a(t.prototype,n),r&&a(t,r),b}(f);t.default=y},function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return f}));var r=n(0),o=n(79),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=new WeakMap,c=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&k(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return k(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&k(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!==u(e[n])?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):s.has(e[n])?r=s.get(e[n]):(r=c,s.set(e[n],c++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),m=(i.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!m){var b=function(){if(a()&&l())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",b,!1),window.addEventListener("focus",b,!1),m=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var _=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},O="undefined"==typeof window,S=(O?r.useEffect:r.useLayoutEffect,function(e,t){void 0===t&&(t=!0);var n=f.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=f.get(r),l=f.get(o),u=[],s=0;s<i.length;++s)u.push(i[s](t,a,l,s>0));return Promise.all(u).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),k=function(e,t,n){return void 0===n&&(n=!0),_(void 0,void 0,void 0,(function(){var r,o,i,a,l,u,s,c,h,y;return C(this,(function(m){switch(m.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===t)return[2,S(e,n)];if(v[r]=Date.now()-1,a=v[r],l=d[r],!t||"function"!=typeof t)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t(f.get(r))];case 2:return o=m.sent(),[3,4];case 3:return u=m.sent(),i=u,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];m.label=6;case 6:return m.trys.push([6,8,,9]),[4,t];case 7:return o=m.sent(),[3,9];case 8:return s=m.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,m.label=11;case 11:if(a!==v[r]||l!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&f.set(r,o,!1),c=p[r]){for(h=[],y=0;y<c.length;++y)h.push(c[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return f.get(r)}))]}if(i)throw i;return[2,o]}}))}))};w.Provider,new Map},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};
|
2 |
/*!
|
3 |
* Adapted from jQuery UI core
|
4 |
*
|
@@ -10,7 +10,7 @@
|
|
10 |
*
|
11 |
* http://api.jqueryui.com/category/ui-core/
|
12 |
*/
|
13 |
-
var r=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l&&(l.removeAttribute?l.removeAttribute("aria-hidden"):null!=l.length?l.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(l).forEach((function(e){return e.removeAttribute("aria-hidden")})));l=null},t.log=function(){0},t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return l=t||l},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){l=null};var r,o=n(95),i=(r=o)&&r.__esModule?r:{default:r},a=n(21);var l=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||l;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new r;t.default=o},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var a,l,u,s=r(t),c=r(n);if(s&&c){if((l=t.length)!=n.length)return!1;for(a=l;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(s!=c)return!1;var f=t instanceof Date,d=n instanceof Date;if(f!=d)return!1;if(f&&d)return t.getTime()==n.getTime();var h=t instanceof RegExp,p=n instanceof RegExp;if(h!=p)return!1;if(h&&p)return t.toString()==n.toString();var v=o(t);if((l=v.length)!==o(n).length)return!1;for(a=l;0!=a--;)if(!i.call(n,v[a]))return!1;for(a=l;0!=a--;)if(!e(t[u=v[a]],n[u]))return!1;return!0}return t!=t&&n!=n}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!l(s))return!1;var c=e[s],f=t[s];if(!1===(o=n?n.call(r,c,f,s):void 0)||void 0===o&&c!==f)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(p);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=n(e,t[l],r).trim();break;default:var u=l=0;for(t=[];l<i;++l)for(var s=0;s<a;++s)t[u++]=n(e[s]+" ",o[l],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",l=2*t+3*n+4*i;if(944===l){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===E||2===E&&o(u,1)?"-webkit-"+u+u:u}if(0===E||2===E&&!o(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(g,"tb");break;case 232:u=a.replace(g,"tb-rl");break;case 220:u=a.replace(g,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(O,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,l,s,c){for(var f,d=0,h=t;d<j;++d)switch(f=I[d].call(u,e,h,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?E=1:(E=2,R=e):E=0),l}function u(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<j){var u=a(-1,n,l,l,A,M,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,l,u,f,d){for(var h,p,v,g,_,C=0,O=0,S=0,k=0,I=0,R=0,L=v=h=0,N=0,F=0,D=0,H=0,V=u.length,z=V-1,q="",$="",U="",W="";N<V;){if(p=u.charCodeAt(N),N===z&&0!==O+k+S+C&&(0!==O&&(p=47===O?10:47),k=S=C=0,V++,z++),0===O+k+S+C){if(N===z&&(0<F&&(q=q.replace(c,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=u.charAt(N)}p=59}switch(p){case 123:for(h=(q=q.trim()).charCodeAt(0),v=1,H=++N;N<V;){switch(p=u.charCodeAt(N)){case 123:v++;break;case 125:v--;break;case 47:switch(p=u.charCodeAt(N+1)){case 42:case 47:e:{for(L=N+1;L<z;++L)switch(u.charCodeAt(L)){case 47:if(42===p&&42===u.charCodeAt(L-1)&&N+2!==L){N=L+1;break e}break;case 10:if(47===p){N=L+1;break e}}N=L}}break;case 91:p++;case 40:p++;case 34:case 39:for(;N++<z&&u.charCodeAt(N)!==p;);}if(0===v)break;N++}switch(v=u.substring(H,N),0===h&&(h=(q=q.replace(s,"").trim()).charCodeAt(0)),h){case 64:switch(0<F&&(q=q.replace(c,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=l;break;default:F=P}if(H=(v=e(l,F,v,p,d+1)).length,0<j&&(_=a(3,v,F=t(P,q,D),l,A,M,H,p,d,f),q=F.join(""),void 0!==_&&0===(H=(v=_.trim()).length)&&(p=0,v="")),0<H)switch(p){case 115:q=q.replace(w,i);case 100:case 109:case 45:v=q+"{"+v+"}";break;case 107:v=(q=q.replace(y,"$1 $2"))+"{"+v+"}",v=1===E||2===E&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=q+v,112===f&&($+=v,v="")}else v="";break;default:v=e(l,t(l,q,D),v,f,d+1)}U+=v,v=D=F=L=h=0,q="",p=u.charCodeAt(++N);break;case 125:case 59:if(1<(H=(q=(0<F?q.replace(c,""):q).trim()).length))switch(0===L&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(H=(q=q.replace(" ",":")).length),0<j&&void 0!==(_=a(1,q,l,n,A,M,$.length,f,d,f))&&0===(H=(q=_.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),p=q.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){W+=q+u.charAt(N);break}default:58!==q.charCodeAt(H-1)&&($+=r(q,h,p,q.charCodeAt(2)))}D=F=L=h=0,q="",p=u.charCodeAt(++N)}}switch(p){case 13:case 10:47===O?O=0:0===1+h&&107!==f&&0<q.length&&(F=1,q+="\0"),0<j*T&&a(0,q,l,n,A,M,$.length,f,d,f),M=1,A++;break;case 59:case 125:if(0===O+k+S+C){M++;break}default:switch(M++,g=u.charAt(N),p){case 9:case 32:if(0===k+C+O)switch(I){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+O+C&&(F=D=1,g="\f"+g);break;case 108:if(0===k+O+C+x&&0<L)switch(N-L){case 2:112===I&&58===u.charCodeAt(N-3)&&(x=I);case 8:111===R&&(x=R)}break;case 58:0===k+O+C&&(L=N);break;case 44:0===O+S+k+C&&(F=1,g+="\r");break;case 34:case 39:0===O&&(k=k===p?0:0===k?p:k);break;case 91:0===k+O+S&&C++;break;case 93:0===k+O+S&&C--;break;case 41:0===k+O+C&&S--;break;case 40:if(0===k+O+C){if(0===h)switch(2*I+3*R){case 533:break;default:h=1}S++}break;case 64:0===O+S+k+C+L+v&&(v=1);break;case 42:case 47:if(!(0<k+C+S))switch(O){case 0:switch(2*p+3*u.charCodeAt(N+1)){case 235:O=47;break;case 220:H=N,O=42}break;case 42:47===p&&42===I&&H+2!==N&&(33===u.charCodeAt(H+2)&&($+=u.substring(H,N+1)),g="",O=0)}}0===O&&(q+=g)}R=I,I=p,N++}if(0<(H=$.length)){if(F=l,0<j&&(void 0!==(_=a(2,$,F,n,A,M,H,f,d,f))&&0===($=_).length))return W+$+U;if($=F.join(",")+"{"+$+"}",0!=E*x){switch(2!==E||o($,2)||(x=0),x){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(m,"::-webkit-input-$1")+$.replace(m,"::-moz-$1")+$.replace(m,":-ms-input-$1")+$}x=0}}return W+$+U}(P,l,n,0,0);return 0<j&&(void 0!==(u=a(-2,f,l,l,A,M,f.length,0,0,0))&&(f=u)),"",x=0,M=A=1,f}var s=/^\0+/g,c=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,b=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,C=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,M=1,A=1,x=0,E=1,P=[],I=[],j=0,R=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:j=I.length=0;break;default:if("function"==typeof t)I[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 13c.34 0 .67.04 1 .09V10a2 2 0 0 0-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6a2 2 0 0 0-2 2v10c0 1.11.89 2 2 2h7.81c-.51-.88-.81-1.9-.81-3c0-3.31 2.69-6 6-6M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6m3 11a2 2 0 1 1 2-2c0 1.11-.89 2-2 2m10.5.25L17.75 22L15 19l1.16-1.16l1.59 1.59l3.59-3.59l1.16 1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 1c-2.76 0-5 2.24-5 5v2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12c1.11 0 2-.89 2-2V10a2 2 0 0 0-2-2h-1V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2h2V6c0-2.76-2.24-5-5-5m-8 12a2 2 0 0 1 2 2c0 1.11-.89 2-2 2a2 2 0 1 1 0-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m6.16 12.31c-1.56 0-2.97.58-4.05 1.52L6 13.72V19h5.28l-2.13-2.12c.82-.68 1.85-1.1 3.01-1.1c2.07 0 3.84 1.35 4.45 3.22l1.39-.46c-.81-2.45-3.12-4.23-5.84-4.23Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 5V1L7 6l5 5V7a6 6 0 0 1 6 6a6 6 0 0 1-6 6a6 6 0 0 1-6-6H4a8 8 0 0 0 8 8a8 8 0 0 0 8-8a8 8 0 0 0-8-8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 3C7.58 3 4 4.79 4 7s3.58 4 8 4s8-1.79 8-4s-3.58-4-8-4M4 9v3c0 2.21 3.58 4 8 4s8-1.79 8-4V9c0 2.21-3.58 4-8 4s-8-1.79-8-4m0 5v3c0 2.21 3.58 4 8 4s8-1.79 8-4v-3c0 2.21-3.58 4-8 4s-8-1.79-8-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m21.71 20.29l-1.42 1.42a1 1 0 0 1-1.41 0L7 9.85A3.81 3.81 0 0 1 6 10a4 4 0 0 1-3.78-5.3l2.54 2.54l.53-.53l1.42-1.42l.53-.53L4.7 2.22A4 4 0 0 1 10 6a3.81 3.81 0 0 1-.15 1l11.86 11.88a1 1 0 0 1 0 1.41M2.29 18.88a1 1 0 0 0 0 1.41l1.42 1.42a1 1 0 0 0 1.41 0l5.47-5.46l-2.83-2.83M20 2l-4 2v2l-2.17 2.17l2 2L18 8h2l2-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97c0-.33-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1c0 .33.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m12 8l-1.33.09C9.81 7.07 7.4 4.5 5 4.5c0 0-1.97 2.96-.04 6.91c-.55.83-.89 1.26-.96 2.25l-1.93.29l.21.98l1.76-.26l.14.71l-1.57.94l.47.89l1.45-.89C5.68 18.76 8.59 20 12 20s6.32-1.24 7.47-3.68l1.45.89l.47-.89l-1.57-.94l.14-.71l1.76.26l.21-.98l-1.93-.29c-.07-.99-.41-1.42-.96-2.25C20.97 7.46 19 4.5 19 4.5c-2.4 0-4.81 2.57-5.67 3.59L12 8m-3 3a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m6 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 3h2l-.7 1.39c.2.64.76 1.11 1.45 1.11a1.5 1.5 0 0 0 1.5-1.5h.5a2 2 0 0 1-2 2c-.75 0-1.4-.41-1.75-1c-.35.59-1 1-1.75 1a2 2 0 0 1-2-2h.5a1.5 1.5 0 0 0 1.5 1.5c.69 0 1.25-.47 1.45-1.11L11 14Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9m0 5h2v9H9V8m4 0h2v9h-2V8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M16.84 2.73c-.39 0-.77.15-1.07.44l-2.12 2.12l5.3 5.31l2.12-2.1c.6-.61.6-1.56 0-2.14L17.9 3.17c-.3-.29-.68-.44-1.06-.44M12.94 6l-8.1 8.11l2.56.28l.18 2.29l2.28.17l.29 2.56l8.1-8.11m-14 3.74L2.5 21.73l6.7-1.79l-.24-2.16l-2.31-.17l-.18-2.32"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 3v6h8V3m-8 18h8V11h-8M3 21h8v-6H3m0-2h8V3H3v10Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18.68 12.32a4.49 4.49 0 0 0-6.36.01a4.49 4.49 0 0 0 0 6.36a4.508 4.508 0 0 0 5.57.63L21 22.39L22.39 21l-3.09-3.11c1.13-1.77.87-4.09-.62-5.57m-1.41 4.95c-.98.98-2.56.97-3.54 0c-.97-.98-.97-2.56.01-3.54c.97-.97 2.55-.97 3.53 0c.97.98.97 2.56 0 3.54M10.9 20.1a6.527 6.527 0 0 1-1.48-2.32C6.27 17.25 4 15.76 4 14v3c0 2.21 3.58 4 8 4c-.4-.26-.77-.56-1.1-.9M4 9v3c0 1.68 2.07 3.12 5 3.7v-.2c0-.93.2-1.85.58-2.69C6.34 12.3 4 10.79 4 9m8-6C7.58 3 4 4.79 4 7c0 2 3 3.68 6.85 4h.05c1.2-1.26 2.86-2 4.6-2c.91 0 1.81.19 2.64.56A3.215 3.215 0 0 0 20 7c0-2.21-3.58-4-8-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 19c0 .34.04.67.09 1H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h8a2 2 0 0 1 2 2v5.81c-.88-.51-1.9-.81-3-.81c-3.31 0-6 2.69-6 6m7-1v-3h-2v3h-3v2h3v3h2v-3h3v-2h-3Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 15v3h-3v2h3v3h2v-3h3v-2h-3v-3h-2m-4.7 6H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v8.3c-.6-.2-1.3-.3-2-.3c-1.1 0-2.2.3-3.1.9L14.5 12L11 16.5l-2.5-3L5 18h8.1c-.1.3-.1.7-.1 1c0 .7.1 1.4.3 2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7 5h14v2H7V5m0 8v-2h14v2H7M4 4.5A1.5 1.5 0 0 1 5.5 6A1.5 1.5 0 0 1 4 7.5A1.5 1.5 0 0 1 2.5 6A1.5 1.5 0 0 1 4 4.5m0 6A1.5 1.5 0 0 1 5.5 12A1.5 1.5 0 0 1 4 13.5A1.5 1.5 0 0 1 2.5 12A1.5 1.5 0 0 1 4 10.5M7 19v-2h14v2H7m-3-2.5A1.5 1.5 0 0 1 5.5 18A1.5 1.5 0 0 1 4 19.5A1.5 1.5 0 0 1 2.5 18A1.5 1.5 0 0 1 4 16.5Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 2.04c-5.5 0-10 4.49-10 10.02c0 5 3.66 9.15 8.44 9.9v-7H7.9v-2.9h2.54V9.85c0-2.51 1.49-3.89 3.78-3.89c1.09 0 2.23.19 2.23.19v2.47h-1.26c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.45 2.9h-2.33v7a10 10 0 0 0 8.44-9.9c0-5.53-4.5-10.02-10-10.02Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m12 7l5 5h-3v4h-4v-4H7l5-5m0 15A10 10 0 0 1 2 12A10 10 0 0 1 12 2a10 10 0 0 1 10 10a10 10 0 0 1-10 10m0-2a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M10.59 13.41c.41.39.41 1.03 0 1.42c-.39.39-1.03.39-1.42 0a5.003 5.003 0 0 1 0-7.07l3.54-3.54a5.003 5.003 0 0 1 7.07 0a5.003 5.003 0 0 1 0 7.07l-1.49 1.49c.01-.82-.12-1.64-.4-2.42l.47-.48a2.982 2.982 0 0 0 0-4.24a2.982 2.982 0 0 0-4.24 0l-3.53 3.53a2.982 2.982 0 0 0 0 4.24m2.82-4.24c.39-.39 1.03-.39 1.42 0a5.003 5.003 0 0 1 0 7.07l-3.54 3.54a5.003 5.003 0 0 1-7.07 0a5.003 5.003 0 0 1 0-7.07l1.49-1.49c-.01.82.12 1.64.4 2.43l-.47.47a2.982 2.982 0 0 0 0 4.24a2.982 2.982 0 0 0 4.24 0l3.53-3.53a2.982 2.982 0 0 0 0-4.24a.973.973 0 0 1 0-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2A10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34c-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41c.86 0 1.26.63 1.26 1.44c0 .86-.57 2.09-.86 3.27c-.17.98.52 1.84 1.52 1.84c1.78 0 3.16-1.9 3.16-4.58c0-2.4-1.72-4.04-4.19-4.04c-2.82 0-4.48 2.1-4.48 4.31c0 .86.28 1.73.74 2.3c.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11c-1.28-.56-2.02-2.38-2.02-3.85c0-3.16 2.24-6.03 6.56-6.03c3.44 0 6.12 2.47 6.12 5.75c0 3.44-2.13 6.2-5.18 6.2c-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9 2a7 7 0 0 1 7 7c0 1.57-.5 3-1.39 4.19l.8.81H16l6 6l-2 2l-6-6v-.59l-.81-.8A6.916 6.916 0 0 1 9 16a7 7 0 0 1-7-7a7 7 0 0 1 7-7M8 5v3H5v2h3v3h2v-3h3V8h-3V5H8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M11 4h2v12l5.5-5.5l1.42 1.42L12 19.84l-7.92-7.92L5.5 10.5L11 16V4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m18 21l-4-4h3V7h-3l4-4l4 4h-3v10h3M2 19v-2h10v2M2 13v-2h7v2M2 7V5h4v2H2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 9a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3m0 8a5 5 0 0 1-5-5a5 5 0 0 1 5-5a5 5 0 0 1 5 5a5 5 0 0 1-5 5m0-12.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m13.13 22.19l-1.63-3.83c1.57-.58 3.04-1.36 4.4-2.27l-2.77 6.1M5.64 12.5l-3.83-1.63l6.1-2.77C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39S16.66.269 11 5.93c-2.19 2.19-3.5 4.6-4.35 6.71c-.28.75-.09 1.57.46 2.13l2.13 2.12c.55.56 1.37.74 2.12.46A19.1 19.1 0 0 0 18.07 13c5.66-5.66 3.54-10.61 3.54-10.61m-7.07 7.07c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0c.77.78.78 2.05 0 2.83c-.78.78-2.05.78-2.83 0m-5.66 7.07l-1.41-1.41l1.41 1.41M6.24 22l3.64-3.64c-.34-.09-.67-.24-.97-.45L4.83 22h1.41M2 22h1.41l4.77-4.76l-1.42-1.41L2 20.59V22m0-2.83l4.09-4.08c-.21-.3-.36-.62-.45-.97L2 17.76v1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M9 10v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2m2-7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h1V1h2v2h8V1h2v2h1m0 16V8H5v11h14M9 14v2H7v-2h2m4 0v2h-2v-2h2m4 0v2h-2v-2h2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 20a8 8 0 0 1-8-8a8 8 0 0 1 8-8a8 8 0 0 1 8 8a8 8 0 0 1-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 7a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M5.5 7A1.5 1.5 0 0 1 4 5.5A1.5 1.5 0 0 1 5.5 4A1.5 1.5 0 0 1 7 5.5A1.5 1.5 0 0 1 5.5 7m15.91 4.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.11 0-2 .89-2 2v7c0 .55.22 1.05.59 1.41l8.99 9c.37.36.87.59 1.42.59c.55 0 1.05-.23 1.41-.59l7-7c.37-.36.59-.86.59-1.41c0-.56-.23-1.06-.59-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M15 9H5V5h10m-3 14a3 3 0 0 1-3-3a3 3 0 0 1 3-3a3 3 0 0 1 3 3a3 3 0 0 1-3 3m5-16H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7l-4-4Z"/>'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(91),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M22 16a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2h12a2 2 0 0 1 2 2v12m-6 4v2H4a2 2 0 0 1-2-2V7h2v13h12m-3-6l7-7l-1.41-1.41L13 11.17L9.91 8.09L8.5 9.5L13 14Z"/>'}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=Array.isArray,i=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==r(t)&&"object"==r(n)){var l,u,s,c=o(t),f=o(n);if(c&&f){if((u=t.length)!=n.length)return!1;for(l=u;0!=l--;)if(!e(t[l],n[l]))return!1;return!0}if(c!=f)return!1;var d=t instanceof Date,h=n instanceof Date;if(d!=h)return!1;if(d&&h)return t.getTime()==n.getTime();var p=t instanceof RegExp,v=n instanceof RegExp;if(p!=v)return!1;if(p&&v)return t.toString()==n.toString();var y=i(t);if((u=y.length)!==i(n).length)return!1;for(l=u;0!=l--;)if(!a.call(n,y[l]))return!1;for(l=u;0!=l--;)if(!e(t[s=y[l]],n[s]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";var r=n(0),o=n(30),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}var u=new WeakMap,s=0;var c=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&P(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return P(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&P(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!=typeof e[n]?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):u.has(e[n])?r=u.get(e[n]):(r=s,u.set(e[n],s++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),f={},d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),m={onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,t,n,r,o){if(a()&&!(n.errorRetryCount&&o.retryCount>n.errorRetryCount)){var i=Math.min(o.retryCount||0,8),l=~~((Math.random()+.5)*(1<<i))*n.errorRetryInterval;setTimeout(r,l,o)}},errorRetryInterval:1e3*(y?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(y?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:i.a},b=!1;if("undefined"!=typeof window&&window.addEventListener&&!b){var g=function(){if(a()&&l())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",g,!1),window.addEventListener("focus",g,!1),b=!0}var w=m;function _(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,r),setTimeout((function(){return n=!1}),t))}}var C=Object(r.createContext)({});C.displayName="SWRConfigContext";var O=C,S=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},k=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},M="undefined"==typeof window,A=M?r.useEffect:r.useLayoutEffect,x=function(e,t){void 0===t&&(t=!0);var n=c.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=c.get(r),l=c.get(o),u=[],s=0;s<i.length;++s)u.push(i[s](t,a,l,s>0));return Promise.all(u).then((function(){return c.get(r)}))}return Promise.resolve(c.get(r))},E=function(e,t,n){var r=p[e];if(e&&r)for(var o=0;o<r.length;++o)r[o](!1,t,n)},P=function(e,t,n){return void 0===n&&(n=!0),S(void 0,void 0,void 0,(function(){var r,o,i,a,l,u,s,f,h,y;return k(this,(function(m){switch(m.label){case 0:if(!(r=c.serializeKey(e)[0]))return[2];if(void 0===t)return[2,x(e,n)];if(v[r]=Date.now()-1,a=v[r],l=d[r],!t||"function"!=typeof t)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t(c.get(r))];case 2:return o=m.sent(),[3,4];case 3:return u=m.sent(),i=u,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];m.label=6;case 6:return m.trys.push([6,8,,9]),[4,t];case 7:return o=m.sent(),[3,9];case 8:return s=m.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,m.label=11;case 11:if(a!==v[r]||l!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&c.set(r,o,!1),f=p[r]){for(h=[],y=0;y<f.length;++y)h.push(f[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return c.get(r)}))]}if(i)throw i;return[2,o]}}))}))};O.Provider;var I=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o,i,u={};t.length>=1&&(o=t[0]),t.length>2?(i=t[1],u=t[2]):"function"==typeof t[1]?i=t[1]:"object"==typeof t[1]&&(u=t[1]);var s=c.serializeKey(o),y=s[0],m=s[1],b=s[2];u=Object.assign({},w,Object(r.useContext)(O),u),void 0===i&&(i=u.fetcher);var g=c.get(y)||u.initialData,C=c.get(b),x=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),I=Object(r.useRef)({data:g,error:C,isValidating:!1}),j=Object(r.useState)(null)[1],R=Object(r.useCallback)((function(e){var t=!1;for(var n in e)I.current[n]=e[n],x.current[n]&&(t=!0);(t||u.suspense)&&j({})}),[]),T=Object(r.useRef)(!1),L=Object(r.useRef)(y),N=Object(r.useRef)({emit:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];T.current||u[e].apply(u,t)}}),F=Object(r.useCallback)((function(e,t){return P(y,e,t)}),[y]),D=Object(r.useCallback)((function(t){return void 0===t&&(t={}),S(e,void 0,void 0,(function(){var e,n,r,o,a,l,s;return k(this,(function(h){switch(h.label){case 0:if(!y||!i)return[2,!1];if(T.current)return[2,!1];t=Object.assign({dedupe:!1},t),e=!0,n=void 0!==f[y]&&t.dedupe,h.label=1;case 1:return h.trys.push([1,6,,7]),R({isValidating:!0}),r=void 0,o=void 0,n?(o=d[y],[4,f[y]]):[3,3];case 2:return r=h.sent(),[3,5];case 3:return f[y]&&(v[y]=Date.now()-1),u.loadingTimeout&&!c.get(y)&&setTimeout((function(){e&&N.current.emit("onLoadingSlow",y,u)}),u.loadingTimeout),f[y]=null!==m?i.apply(void 0,m):i(y),d[y]=o=Date.now(),[4,f[y]];case 4:r=h.sent(),setTimeout((function(){delete f[y],delete d[y]}),u.dedupingInterval),N.current.emit("onSuccess",r,y,u),h.label=5;case 5:return v[y]&&o<=v[y]?(R({isValidating:!1}),[2,!1]):(c.set(y,r,!1),c.set(b,void 0,!1),a={isValidating:!1},void 0!==I.current.error&&(a.error=void 0),u.compare(I.current.data,r)||(a.data=r),R(a),n||E(y,r,void 0),[3,7]);case 6:return l=h.sent(),delete f[y],delete d[y],c.set(b,l,!1),I.current.error!==l&&(R({isValidating:!1,error:l}),n||E(y,void 0,l)),N.current.emit("onError",l,y,u),u.shouldRetryOnError&&(s=(t.retryCount||0)+1,N.current.emit("onErrorRetry",l,y,u,D,Object.assign({dedupe:!0},t,{retryCount:s}))),[3,7];case 7:return e=!1,[2,!0]}}))}))}),[y]);if(A((function(){if(y){T.current=!1;var e=I.current.data,t=c.get(y)||u.initialData;L.current===y&&u.compare(e,t)||(R({data:t}),L.current=y);var n,r=function(){return D({dedupe:!0})};(u.revalidateOnMount||!u.initialData&&void 0===u.revalidateOnMount)&&(void 0!==t&&!M&&window.requestIdleCallback?window.requestIdleCallback(r):r()),u.revalidateOnFocus&&(n=_(r,u.focusThrottleInterval),h[y]?h[y].push(n):h[y]=[n]);var o=function(e,t,n,o){void 0===e&&(e=!0),void 0===o&&(o=!0);var i={},a=!1;return void 0===t||u.compare(I.current.data,t)||(i.data=t,a=!0),I.current.error!==n&&(i.error=n,a=!0),a&&R(i),!!e&&(o?r():D())};p[y]?p[y].push(o):p[y]=[o];var i=null;return!M&&window.addEventListener&&u.revalidateOnReconnect&&window.addEventListener("online",i=r),function(){var e,t;(R=function(){return null},T.current=!0,n&&h[y])&&((t=(e=h[y]).indexOf(n))>=0&&(e[t]=e[e.length-1],e.pop()));p[y]&&((t=(e=p[y]).indexOf(o))>=0&&(e[t]=e[e.length-1],e.pop()));!M&&window.removeEventListener&&null!==i&&window.removeEventListener("online",i)}}}),[y,D]),A((function(){var t=null,n=function(){return S(e,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return I.current.error||!u.refreshWhenHidden&&!a()||!u.refreshWhenOffline&&!l()?[3,2]:[4,D({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return u.refreshInterval&&(t=setTimeout(n,u.refreshInterval)),[2]}}))}))};return u.refreshInterval&&(t=setTimeout(n,u.refreshInterval)),function(){t&&clearTimeout(t)}}),[u.refreshInterval,u.refreshWhenHidden,u.refreshWhenOffline,D]),u.suspense){var H=c.get(y)||g,V=c.get(b)||C;if(void 0===H&&void 0===V){if(f[y]||D(),f[y]&&"function"==typeof f[y].then)throw f[y];H=f[y]}if(void 0===H&&V)throw V;return{error:V,data:H,revalidate:D,mutate:F,isValidating:I.current.isValidating}}return Object(r.useMemo)((function(){var e={revalidate:D,mutate:F};return Object.defineProperties(e,{error:{get:function(){return x.current.error=!0,L.current===y?I.current.error:C},enumerable:!0},data:{get:function(){return x.current.data=!0,L.current===y?I.current.data:g},enumerable:!0},isValidating:{get:function(){return x.current.isValidating=!0,I.current.isValidating},enumerable:!0}}),e}),[D])};new Map;t.a=I},function(e,t,n){"use strict";var r=n(82);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?s=u.concat(s):f=-1,s.length&&h())}function h(){if(!c){var e=l(d);c=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||c||l(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";
|
1 |
+
(window.wpJsonMgcl=window.wpJsonMgcl||[]).push([[1],[,function(e,t,n){e.exports=n(82)()},function(e,t,n){"use strict";(function(e){var r=n(11),o=n(0),i=n.n(o),a=n(32),l=n.n(a),u=n(33),s=n(34),c=n(26),f=n(23),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},y=Object.freeze([]),m=Object.freeze({});function b(e){return"function"==typeof e}function g(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var _=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,O=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY));function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,u=t.length;l<u;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),M=new Map,A=new Map,x=1,E=function(e){if(M.has(e))return M.get(e);for(;A.has(x);)x++;var t=x++;return M.set(e,t),A.set(t,e),t},P=function(e){return A.get(e)},I=function(e,t){t>=x&&(x=t+1),M.set(e,t),A.set(t,e)},j="style["+_+'][data-styled-version="5.3.1"]',R=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},L=function(e,t){for(var n=(t.innerHTML||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(R);if(l){var u=0|parseInt(l[1],10),s=l[2];0!==u&&(I(s,u),T(e,s,l[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},N=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},F=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.1");var a=N();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},D=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),H=function(){function e(e){var t=this.element=F(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),V=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),z=C,q={isServer:!C,useCSSOMInjection:!O},$=function(){function e(e,t,n){void 0===e&&(e=m),void 0===t&&(t={}),this.options=h({},q,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&z&&(z=!1,function(e){for(var t=document.querySelectorAll(j),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(_)&&(L(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return E(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new V(o):r?new D(o):new H(o),new k(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(E(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=P(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var u=_+".g"+o+'[id="'+i+'"]',s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+l+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),U=/(a)(d)/gi,Z=function(e){return String.fromCharCode(e+(e>25?39:97))};function W(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Z(t%52)+n;return(Z(t%52)+n).replace(U,"$1-$2")}var B=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},G=function(e){return B(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!w(n))return!1}return!0}var Y=G("5.3.1"),X=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=B(Y,t),this.baseStyle=n,$.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ve(this.rules,e,t,n).join(""),a=W(B(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,s=B(this.baseHash,n.hash),c="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var h=ve(d,e,t,n),p=Array.isArray(h)?h.join(""):h;s=B(s,p+f),c+=p}}if(c){var v=W(s>>>0);if(!t.hasNameForId(r,v)){var y=n(c,"."+v,void 0,r);t.insertRules(r,v,y)}o.push(v)}}return o.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function ee(e){var t,n,r,o,i=void 0===e?m:e,a=i.options,l=void 0===a?m:a,s=i.plugins,c=void 0===s?y:s,f=new u.a(l),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,u,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==J.indexOf(i[n.length])||i.match(o)?e:"."+t};function v(e,i,a,l){void 0===l&&(l="&");var u=e.replace(Q,""),s=i&&a?a+" "+i+" { "+u+" }":u;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(a||!i?"":i,s)}return f.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||S(15),B(e,t.name)}),5381).toString():"",v}var te=i.a.createContext(),ne=(te.Consumer,i.a.createContext()),re=(ne.Consumer,new $),oe=ee();function ie(){return Object(o.useContext)(te)||re}function ae(){return Object(o.useContext)(ne)||oe}function le(e){var t=Object(o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),u=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=Object(o.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(te.Provider,{value:u},i.a.createElement(ne.Provider,{value:s},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),se=/([A-Z])/,ce=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function he(e){return se.test(e)?e.replace(ce,de).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ve(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return pe(e)?"":w(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof ue?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!pe(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(he(a)+":",t[a],";"):v(t[a])?i.push.apply(i,e(t[a],a)):i.push(he(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in s.a?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var u}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||v(e)?ye(ve(p(y,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(ve(p(e,n)))}new Set;var be=function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme},ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function _e(e){return e.replace(ge,"-").replace(we,"")}var Ce=function(e){return W(G(e)>>>0)};function Oe(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Me(e,t,n){var r=e[n];Se(t)&&Se(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Se(a))for(var l in a)ke(l)&&Me(e,a[l],l)}return e}var xe=i.a.createContext();xe.Consumer;var Ee={};function Pe(e,t,n){var r=w(e),a=!Oe(e),l=t.attrs,u=void 0===l?y:l,s=t.componentId,f=void 0===s?function(e,t){var n="string"!=typeof e?"sc":_e(e);Ee[n]=(Ee[n]||0)+1;var r=n+"-"+Ce("5.3.1"+n+Ee[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,p=t.displayName,v=void 0===p?function(e){return Oe(e)?"styled."+e:"Styled("+g(e)+")"}(e):p,_=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||f,C=r&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,O=t.shouldForwardProp;r&&e.shouldForwardProp&&(O=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var S,k=new X(n,_,r?e.componentStyle:void 0),M=k.isStatic&&0===u.length,A=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,s=e.shouldForwardProp,f=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=m);var r=h({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in b(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(be(t,Object(o.useContext)(xe),l)||m,t,i),v=p[0],y=p[1],g=function(e,t,n,r){var o=ie(),i=ae();return t?e.generateAndInjectStyles(m,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,v),w=n,_=y.$as||t.$as||y.as||t.as||d,C=Oe(_),O=y!==t?h({},t,{},y):t,S={};for(var k in O)"$"!==k[0]&&"as"!==k&&("forwardedAs"===k?S.as=O[k]:(s?s(k,c.a,_):!C||Object(c.a)(k))&&(S[k]=O[k]));return t.style&&y.style!==t.style&&(S.style=h({},t.style,{},y.style)),S.className=Array.prototype.concat(u,f,g!==f?g:null,t.className,y.className).filter(Boolean).join(" "),S.ref=w,Object(o.createElement)(_,S)}(S,e,t,M)};return A.displayName=v,(S=i.a.forwardRef(A)).attrs=C,S.componentStyle=k,S.displayName=v,S.shouldForwardProp=O,S.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):y,S.styledComponentId=_,S.target=r?e.target:e,S.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Oe(e)?e:_e(g(e)));return Pe(e,h({},o,{attrs:C,componentId:i}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},a&&d()(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Ie=function(e){return function e(t,n,o){if(void 0===o&&(o=m),!Object(r.isValidElementType)(n))return S(1,String(n));var i=function(){return t(n,o,me.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,h({},o,{},r))},i.attrs=function(r){return e(t,n,h({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ie[e]=Ie(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),$.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(ve(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&$.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=N();return"<style "+[n&&'nonce="'+n+'"',_+'="true"','data-styled-version="5.3.1"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=N();return r&&(n.nonce=r),[i.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new $({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?S(2):i.a.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)}}();t.a=Ie}).call(this,n(84))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.InlineIcon=t.Icon=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=0,u=/(-?[0-9.]*[0-9]+[0-9.]*)/g,s=/^-?[0-9.]*[0-9]+[0-9.]*$/g,c=["width","height","inline","hFlip","vFlip","flip","rotate","align","color","box"],f={left:0,top:0,width:16,height:16,rotate:0,hFlip:!1,vFlip:!1};var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=t}var t,n,r;return t=e,r=[{key:"splitAttributes",value:function(e){var t={icon:Object.create(null),node:Object.create(null)};return Object.keys(e).forEach((function(n){t[-1===c.indexOf(n)?"node":"icon"][n]=e[n]})),t}},{key:"calculateDimension",value:function(e,t,n){if(1===t)return e;if(n=void 0===n?100:n,"number"==typeof e)return Math.ceil(e*t*n)/n;var r=e.split(u);if(null===r||!r.length)return null;for(var o,i=[],a=r.shift(),l=s.test(a);;){if(l?(o=parseFloat(a),isNaN(o)?i.push(a):i.push(Math.ceil(o*t*n)/n)):i.push(a),void 0===(a=r.shift()))return i.join("");l=!l}}},{key:"replaceIDs",value:function(e){var t,n,r=/\sid="(\S+)"/g,o=[];function i(e,t,n){for(var r=0;-1!==(r=n.indexOf(e,r));)n=n.slice(0,r)+t+n.slice(r+e.length),r+=t.length;return n}for(;t=r.exec(e);)o.push(t[1]);return o.length?(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o.forEach((function(t){var r=n+l;l++,e=i('="'+t+'"','="'+r+'"',e),e=i('="#'+t+'"','="#'+r+'"',e),e=i("(#"+t+")","(#"+r+")",e)})),e):e}}],(n=[{key:"getAttributes",value:function(t){var n=this._item;"object"!==i(t)&&(t=Object.create(null));var r={horizontal:"center",vertical:"middle",slice:!1},o={rotate:n.rotate,hFlip:n.hFlip,vFlip:n.vFlip},a=Object.create(null),l=Object.create(null),u=!0===t.inline||"true"===t.inline||"1"===t.inline,s={left:n.left,top:u?n.inlineTop:n.top,width:n.width,height:u?n.inlineHeight:n.height};if(["hFlip","vFlip"].forEach((function(e){void 0===t[e]||!0!==t[e]&&"true"!==t[e]&&"1"!==t[e]||(o[e]=!o[e])})),void 0!==t.flip&&t.flip.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"horizontal":o.hFlip=!o.hFlip;break;case"vertical":o.vFlip=!o.vFlip}})),void 0!==t.rotate){var c=t.rotate;if("number"==typeof c)o.rotate+=c;else if("string"==typeof c){var f=c.replace(/^-?[0-9.]*/,"");if(""===f)c=parseInt(c),isNaN(c)||(o.rotate+=c);else if(f!==c){var d=!1;switch(f){case"%":d=25;break;case"deg":d=90}d&&(c=parseInt(c.slice(0,c.length-f.length)),isNaN(c)||(o.rotate+=Math.round(c/d)))}}}var h,p=[];switch(o.hFlip?o.vFlip?o.rotate+=2:(p.push("translate("+(s.width+s.left)+" "+(0-s.top)+")"),p.push("scale(-1 1)"),s.top=s.left=0):o.vFlip&&(p.push("translate("+(0-s.left)+" "+(s.height+s.top)+")"),p.push("scale(1 -1)"),s.top=s.left=0),o.rotate%4){case 1:h=s.height/2+s.top,p.unshift("rotate(90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h);break;case 2:p.unshift("rotate(180 "+(s.width/2+s.left)+" "+(s.height/2+s.top)+")");break;case 3:h=s.width/2+s.left,p.unshift("rotate(-90 "+h+" "+h+")"),0===s.left&&0===s.top||(h=s.left,s.left=s.top,s.top=h),s.width!==s.height&&(h=s.width,s.width=s.height,s.height=h)}var v,y,m=t.width?t.width:null,b=t.height?t.height:null;null===m&&null===b&&(b="1em"),null!==m&&null!==b?(v=m,y=b):null!==m?(v=m,y=e.calculateDimension(v,s.height/s.width)):(y=b,v=e.calculateDimension(y,s.width/s.height)),!1!==v&&(l.width="auto"===v?s.width:v),!1!==y&&(l.height="auto"===y?s.height:y),u&&0!==n.verticalAlign&&(a["vertical-align"]=n.verticalAlign+"em"),void 0!==t.align&&t.align.toLowerCase().split(/[\s,]+/).forEach((function(e){switch(e){case"left":case"right":case"center":r.horizontal=e;break;case"top":case"bottom":case"middle":r.vertical=e;break;case"crop":r.slice=!0;break;case"meet":r.slice=!1}})),l.preserveAspectRatio=function(e){var t;switch(e.horizontal){case"left":t="xMin";break;case"right":t="xMax";break;default:t="xMid"}switch(e.vertical){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet"}(r),l.viewBox=s.left+" "+s.top+" "+s.width+" "+s.height;var g=e.replaceIDs(n.body);return void 0!==t.color&&(g=g.replace(/currentColor/g,t.color)),p.length&&(g='<g transform="'+p.join(" ")+'">'+g+"</g>"),!0!==t.box&&"true"!==t.box&&"1"!==t.box||(g+='<rect x="'+s.left+'" y="'+s.top+'" width="'+s.width+'" height="'+s.height+'" fill="rgba(0, 0, 0, 0)" />'),{attributes:l,body:g,style:a}}},{key:"getSVG",value:function(t,n){var r=e.splitAttributes(t),o=this.getAttributes(r.icon),i='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"';return n&&Object.keys(r.node).forEach((function(e){i+=" "+e+'="'+r.node[e]+'"'})),Object.keys(o.attributes).forEach((function(e){i+=" "+e+'="'+o.attributes[e]+'"'})),i+=' style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);',Object.keys(o.style).forEach((function(e){i+=" "+e+": "+o.style[e]+";"})),t&&void 0!==t.style&&(i+=t.style),i+='">',i+=o.body+"</svg>"}}])&&a(t.prototype,n),r&&a(t,r),e}();function h(e,t){if("object"!==i(e.icon))return null;var n=d.splitAttributes(e),r=n.icon,a=n.node;delete a.icon,void 0===r.inline&&(r.inline=t);var l=new d(function(e){var t,n=Object.create(null);for(t in f)n[t]=f[t];for(t in e)n[t]=e[t];return void 0===n.inlineTop&&(n.inlineTop=n.top),void 0===n.inlineHeight&&(n.inlineHeight=n.height),void 0===n.verticalAlign&&(n.verticalAlign=n.height%7==0&&n.height%8!=0?-.143:-.125),n}(e.icon)).getAttributes(r),u={transform:"rotate(360deg)"};if(void 0!==l.style["vertical-align"]&&(u.verticalAlign=l.style["vertical-align"]),void 0!==e.style)for(var s in e.style)u[s]=e.style[s];var c,h={xmlns:"http://www.w3.org/2000/svg",focusable:!1,style:u};for(c in a)h[c]=a[c];for(c in l.attributes)h[c]=l.attributes[c];return h.dangerouslySetInnerHTML={__html:l.body},o.default.createElement("svg",h,null)}var p=function(e){return h(e,!1)};t.Icon=p;t.InlineIcon=function(e){return h(e,!0)};var v=p;t.default=v},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(){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(e){return!1}}function l(e,t,n){return(l=a()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return(u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,i(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)})(e)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return D}));var c=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,o(t,n),r}(u(Error));function f(e){return Math.round(255*e)}function d(e,t,n){return f(e)+","+f(t)+","+f(n)}function h(e,t,n,r){if(void 0===r&&(r=d),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,u=0,s=0;o>=0&&o<1?(l=i,u=a):o>=1&&o<2?(l=a,u=i):o>=2&&o<3?(u=i,s=a):o>=3&&o<4?(u=a,s=i):o>=4&&o<5?(l=a,s=i):o>=5&&o<6&&(l=i,s=a);var c=n-i/2;return r(l+c,u+c,s+c)}var p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var v=/^#[a-fA-F0-9]{6}$/,y=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,C=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function O(e){if("string"!=typeof e)throw new c(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return p[t]?"#"+p[t]:e}(e);if(t.match(v))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(y)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(m))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=g.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=w.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=_.exec(t);if(a){var l="rgb("+h(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=g.exec(l);if(!u)throw new c(4,t,l);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var s=C.exec(t.substring(0,50));if(s){var f="rgb("+h(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",d=g.exec(f);if(!d)throw new c(4,t,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+s[4])}}throw new c(5)}function S(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),l=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var u=i-a,s=l>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:s,lightness:l,alpha:e.alpha}:{hue:t,saturation:s,lightness:l}}(O(e))}var k=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function M(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function A(e){return M(Math.round(255*e))}function x(e,t,n){return k("#"+A(e)+A(t)+A(n))}function E(e,t,n){return h(e,t,n,x)}function P(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return E(e,t,n);if("object"===s(e)&&void 0===t&&void 0===n)return E(e.hue,e.saturation,e.lightness);throw new c(1)}function I(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?E(e,t,n):"rgba("+h(e,t,n)+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?E(e.hue,e.saturation,e.lightness):"rgba("+h(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new c(2)}function j(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return k("#"+M(e)+M(t)+M(n));if("object"===s(e)&&void 0===t&&void 0===n)return k("#"+M(e.red)+M(e.green)+M(e.blue));throw new c(6)}function R(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=O(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?j(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===s(e)&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?j(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new c(7)}function T(e){if("object"!==s(e))throw new c(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return R(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return j(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return I(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return P(e);throw new c(8)}function L(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function N(e,t,n){return Math.max(e,Math.min(t,n))}function F(e,t){if("transparent"===t)return t;var n=S(t);return T(r({},n,{lightness:N(0,1,n.lightness+parseFloat(e))}))}var D=L(F)},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M10 4H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-8l-2-2Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 3H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14Z"/>'}},,function(e,t,n){"use strict";e.exports=n(85)},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18.41 7.41L17 6l-6 6l6 6l1.41-1.41L13.83 12l4.58-4.59m-6 0L11 6l-6 6l6 6l1.41-1.41L7.83 12l4.58-4.59Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M5.59 7.41L7 6l6 6l-6 6l-1.41-1.41L10.17 12L5.59 7.41m6 0L13 6l6 6l-6 6l-1.41-1.41L16.17 12l-4.58-4.59Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6l6 6l1.41-1.42Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M14 19h4V5h-4M6 19h4V5H6v14Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M8 5.14v14l11-7l-11-7Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 18H6V6h12v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 20H4a2 2 0 0 1-2-2V6c0-1.11.89-2 2-2h6l2 2h7a2 2 0 0 1 2 2H4v10l2.14-8h17.07l-2.28 8.5c-.23.87-1.01 1.5-1.93 1.5Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M21 17H7V3h14m0-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2M3 5H1v16a2 2 0 0 0 2 2h16v-2H3m12.96-10.71l-2.75 3.54l-1.96-2.36L8.5 15h11l-3.54-4.71Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="m10 17l-5-5l1.41-1.42L10 14.17l7.59-7.59L19 8m0-5H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/>'}},function(e,t,n){"use strict";var r=n(0),o=n(31),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}var u=new WeakMap,s=0;var c=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&P(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return P(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&P(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!=typeof e[n]?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):u.has(e[n])?r=u.get(e[n]):(r=s,u.set(e[n],s++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),f={},d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),m={onLoadingSlow:function(){},onSuccess:function(){},onError:function(){},onErrorRetry:function(e,t,n,r,o){if(a()&&!(n.errorRetryCount&&o.retryCount>n.errorRetryCount)){var i=Math.min(o.retryCount||0,8),l=~~((Math.random()+.5)*(1<<i))*n.errorRetryInterval;setTimeout(r,l,o)}},errorRetryInterval:1e3*(y?10:5),focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:1e3*(y?5:3),refreshInterval:0,revalidateOnFocus:!0,revalidateOnReconnect:!0,refreshWhenHidden:!1,refreshWhenOffline:!1,shouldRetryOnError:!0,suspense:!1,compare:i.a},b=!1;if("undefined"!=typeof window&&window.addEventListener&&!b){var g=function(){if(a()&&l())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",g,!1),window.addEventListener("focus",g,!1),b=!0}var w=m;function _(e,t){var n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n||(n=!0,e.apply(void 0,r),setTimeout((function(){return n=!1}),t))}}var C=Object(r.createContext)({});C.displayName="SWRConfigContext";var O=C,S=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},k=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},M="undefined"==typeof window,A=M?r.useEffect:r.useLayoutEffect,x=function(e,t){void 0===t&&(t=!0);var n=c.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=c.get(r),l=c.get(o),u=[],s=0;s<i.length;++s)u.push(i[s](t,a,l,s>0));return Promise.all(u).then((function(){return c.get(r)}))}return Promise.resolve(c.get(r))},E=function(e,t,n){var r=p[e];if(e&&r)for(var o=0;o<r.length;++o)r[o](!1,t,n)},P=function(e,t,n){return void 0===n&&(n=!0),S(void 0,void 0,void 0,(function(){var r,o,i,a,l,u,s,f,h,y;return k(this,(function(m){switch(m.label){case 0:if(!(r=c.serializeKey(e)[0]))return[2];if(void 0===t)return[2,x(e,n)];if(v[r]=Date.now()-1,a=v[r],l=d[r],!t||"function"!=typeof t)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t(c.get(r))];case 2:return o=m.sent(),[3,4];case 3:return u=m.sent(),i=u,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];m.label=6;case 6:return m.trys.push([6,8,,9]),[4,t];case 7:return o=m.sent(),[3,9];case 8:return s=m.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,m.label=11;case 11:if(a!==v[r]||l!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&c.set(r,o,!1),f=p[r]){for(h=[],y=0;y<f.length;++y)h.push(f[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return c.get(r)}))]}if(i)throw i;return[2,o]}}))}))};O.Provider;var I=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o,i,u={};t.length>=1&&(o=t[0]),t.length>2?(i=t[1],u=t[2]):"function"==typeof t[1]?i=t[1]:"object"==typeof t[1]&&(u=t[1]);var s=c.serializeKey(o),y=s[0],m=s[1],b=s[2];u=Object.assign({},w,Object(r.useContext)(O),u),void 0===i&&(i=u.fetcher);var g=c.get(y)||u.initialData,C=c.get(b),x=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),I=Object(r.useRef)({data:g,error:C,isValidating:!1}),j=Object(r.useState)(null)[1],R=Object(r.useCallback)((function(e){var t=!1;for(var n in e)I.current[n]=e[n],x.current[n]&&(t=!0);(t||u.suspense)&&j({})}),[]),T=Object(r.useRef)(!1),L=Object(r.useRef)(y),N=Object(r.useRef)({emit:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];T.current||u[e].apply(u,t)}}),F=Object(r.useCallback)((function(e,t){return P(y,e,t)}),[y]),D=Object(r.useCallback)((function(t){return void 0===t&&(t={}),S(e,void 0,void 0,(function(){var e,n,r,o,a,l,s;return k(this,(function(h){switch(h.label){case 0:if(!y||!i)return[2,!1];if(T.current)return[2,!1];t=Object.assign({dedupe:!1},t),e=!0,n=void 0!==f[y]&&t.dedupe,h.label=1;case 1:return h.trys.push([1,6,,7]),R({isValidating:!0}),r=void 0,o=void 0,n?(o=d[y],[4,f[y]]):[3,3];case 2:return r=h.sent(),[3,5];case 3:return f[y]&&(v[y]=Date.now()-1),u.loadingTimeout&&!c.get(y)&&setTimeout((function(){e&&N.current.emit("onLoadingSlow",y,u)}),u.loadingTimeout),f[y]=null!==m?i.apply(void 0,m):i(y),d[y]=o=Date.now(),[4,f[y]];case 4:r=h.sent(),setTimeout((function(){delete f[y],delete d[y]}),u.dedupingInterval),N.current.emit("onSuccess",r,y,u),h.label=5;case 5:return v[y]&&o<=v[y]?(R({isValidating:!1}),[2,!1]):(c.set(y,r,!1),c.set(b,void 0,!1),a={isValidating:!1},void 0!==I.current.error&&(a.error=void 0),u.compare(I.current.data,r)||(a.data=r),R(a),n||E(y,r,void 0),[3,7]);case 6:return l=h.sent(),delete f[y],delete d[y],c.set(b,l,!1),I.current.error!==l&&(R({isValidating:!1,error:l}),n||E(y,void 0,l)),N.current.emit("onError",l,y,u),u.shouldRetryOnError&&(s=(t.retryCount||0)+1,N.current.emit("onErrorRetry",l,y,u,D,Object.assign({dedupe:!0},t,{retryCount:s}))),[3,7];case 7:return e=!1,[2,!0]}}))}))}),[y]);if(A((function(){if(y){T.current=!1;var e=I.current.data,t=c.get(y)||u.initialData;L.current===y&&u.compare(e,t)||(R({data:t}),L.current=y);var n,r=function(){return D({dedupe:!0})};(u.revalidateOnMount||!u.initialData&&void 0===u.revalidateOnMount)&&(void 0!==t&&!M&&window.requestIdleCallback?window.requestIdleCallback(r):r()),u.revalidateOnFocus&&(n=_(r,u.focusThrottleInterval),h[y]?h[y].push(n):h[y]=[n]);var o=function(e,t,n,o){void 0===e&&(e=!0),void 0===o&&(o=!0);var i={},a=!1;return void 0===t||u.compare(I.current.data,t)||(i.data=t,a=!0),I.current.error!==n&&(i.error=n,a=!0),a&&R(i),!!e&&(o?r():D())};p[y]?p[y].push(o):p[y]=[o];var i=null;return!M&&window.addEventListener&&u.revalidateOnReconnect&&window.addEventListener("online",i=r),function(){var e,t;(R=function(){return null},T.current=!0,n&&h[y])&&((t=(e=h[y]).indexOf(n))>=0&&(e[t]=e[e.length-1],e.pop()));p[y]&&((t=(e=p[y]).indexOf(o))>=0&&(e[t]=e[e.length-1],e.pop()));!M&&window.removeEventListener&&null!==i&&window.removeEventListener("online",i)}}}),[y,D]),A((function(){var t=null,n=function(){return S(e,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return I.current.error||!u.refreshWhenHidden&&!a()||!u.refreshWhenOffline&&!l()?[3,2]:[4,D({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return u.refreshInterval&&(t=setTimeout(n,u.refreshInterval)),[2]}}))}))};return u.refreshInterval&&(t=setTimeout(n,u.refreshInterval)),function(){t&&clearTimeout(t)}}),[u.refreshInterval,u.refreshWhenHidden,u.refreshWhenOffline,D]),u.suspense){var H=c.get(y)||g,V=c.get(b)||C;if(void 0===H&&void 0===V){if(f[y]||D(),f[y]&&"function"==typeof f[y].then)throw f[y];H=f[y]}if(void 0===H&&V)throw V;return{error:V,data:H,revalidate:D,mutate:F,isValidating:I.current.isValidating}}return Object(r.useMemo)((function(){var e={revalidate:D,mutate:F};return Object.defineProperties(e,{error:{get:function(){return x.current.error=!0,L.current===y?I.current.error:C},enumerable:!0},data:{get:function(){return x.current.data=!0,L.current===y?I.current.data:g},enumerable:!0},isValidating:{get:function(){return x.current.isValidating=!0,I.current.isValidating},enumerable:!0}}),e}),[D])};new Map;t.a=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(97);var i=((r=o)&&r.__esModule?r:{default:r}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},function(e,t,n){"use strict";var r=n(11),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=u(t),v=u(n),y=0;y<a.length;++y){var m=a[y];if(!(i[m]||r&&r[m]||v&&v[m]||l&&l[m])){var b=d(n,m);try{s(t,m,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,u,"next",e)}function u(e){r(a,o,i,l,u,"throw",e)}l(void 0)}))}}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){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(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0});var f=n(87),d=n(88),h=n(90),p=function(){},v=new d.TimeoutError,y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(b,e);var t,n,r,s,c,f,y,m=u(b);function b(e){var t,n,r,o,a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(t=m.call(this))._intervalCount=0,t._intervalEnd=0,t._pendingCount=0,t._resolveEmpty=p,t._resolveIdle=p,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:h.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError("Expected `intervalCap` to be a number from 1 and up, got `".concat(null!==(r=null===(n=e.intervalCap)||void 0===n?void 0:n.toString())&&void 0!==r?r:"","` (").concat(i(e.intervalCap),")"));if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError("Expected `interval` to be a finite number >= 0, got `".concat(null!==(a=null===(o=e.interval)||void 0===o?void 0:o.toString())&&void 0!==a?a:"","` (").concat(i(e.interval),")"));return t._carryoverConcurrencyCount=e.carryoverConcurrencyCount,t._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,t._intervalCap=e.intervalCap,t._interval=e.interval,t._queue=new e.queueClass,t._queueClass=e.queueClass,t.concurrency=e.concurrency,t._timeout=e.timeout,t._throwOnTimeout=!0===e.throwOnTimeout,t._isPaused=!1===e.autoStart,t}return t=b,(n=[{key:"_doesIntervalAllowAnother",get:function(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}},{key:"_doesConcurrentAllowAnother",get:function(){return this._pendingCount<this._concurrency}},{key:"_next",value:function(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}},{key:"_resolvePromises",value:function(){this._resolveEmpty(),this._resolveEmpty=p,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=p,this.emit("idle"))}},{key:"_onResumeInterval",value:function(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}},{key:"_isIntervalPaused",value:function(){var e=this,t=Date.now();if(void 0===this._intervalId){var n=this._intervalEnd-t;if(!(n<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout((function(){e._onResumeInterval()}),n)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}},{key:"_tryToStartAnother",value:function(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){var e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){var t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}},{key:"_initializeIntervalIfNeeded",value:function(){var e=this;this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval((function(){e._onInterval()}),this._interval),this._intervalEnd=Date.now()+this._interval)}},{key:"_onInterval",value:function(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}},{key:"_processQueue",value:function(){for(;this._tryToStartAnother(););}},{key:"concurrency",get:function(){return this._concurrency},set:function(e){if(!("number"==typeof e&&e>=1))throw new TypeError("Expected `concurrency` to be a number from 1 and up, got `".concat(e,"` (").concat(i(e),")"));this._concurrency=e,this._processQueue()}},{key:"add",value:(y=o(regeneratorRuntime.mark((function e(t){var n,r=this,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise((function(e,i){var a=function(){var a=o(regeneratorRuntime.mark((function o(){var a;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r._pendingCount++,r._intervalCount++,o.prev=2,a=void 0===r._timeout&&void 0===n.timeout?t():d.default(Promise.resolve(t()),void 0===n.timeout?r._timeout:n.timeout,(function(){(void 0===n.throwOnTimeout?r._throwOnTimeout:n.throwOnTimeout)&&i(v)})),o.t0=e,o.next=7,a;case 7:o.t1=o.sent,(0,o.t0)(o.t1),o.next=14;break;case 11:o.prev=11,o.t2=o.catch(2),i(o.t2);case 14:r._next();case 15:case"end":return o.stop()}}),o,null,[[2,11]])})));return function(){return a.apply(this,arguments)}}();r._queue.enqueue(a,n),r._tryToStartAnother(),r.emit("add")})));case 2:case"end":return e.stop()}}),e)}))),function(e){return y.apply(this,arguments)})},{key:"addAll",value:(f=o(regeneratorRuntime.mark((function e(t,n){var r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t.map(function(){var e=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r.add(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)})},{key:"start",value:function(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}},{key:"pause",value:function(){this._isPaused=!0}},{key:"clear",value:function(){this._queue=new this._queueClass}},{key:"onEmpty",value:(c=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveEmpty;t._resolveEmpty=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"onIdle",value:(s=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this._pendingCount||0!==this._queue.size){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",new Promise((function(e){var n=t._resolveIdle;t._resolveIdle=function(){n(),e()}})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"size",get:function(){return this._queue.size}},{key:"sizeBy",value:function(e){return this._queue.filter(e).length}},{key:"pending",get:function(){return this._pendingCount}},{key:"isPaused",get:function(){return this._isPaused}},{key:"timeout",get:function(){return this._timeout},set:function(e){this._timeout=e}}])&&a(t.prototype,n),r&&a(t,r),b}(f);t.default=y},function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return f}));var r=n(0),o=n(75),i=n.n(o);function a(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function l(){return void 0===navigator.onLine||navigator.onLine}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=new WeakMap,c=0;var f=new(function(){function e(e){void 0===e&&(e={}),this.__cache=new Map(Object.entries(e)),this.__listeners=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.__cache.get(t)},e.prototype.set=function(e,t,n){void 0===n&&(n=!0);var r=this.serializeKey(e)[0];this.__cache.set(r,t),n&&k(e,t,!1),this.notify()},e.prototype.keys=function(){return Array.from(this.__cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.__cache.has(t)},e.prototype.clear=function(e){void 0===e&&(e=!0),e&&this.__cache.forEach((function(e){return k(e,null,!1)})),this.__cache.clear(),this.notify()},e.prototype.delete=function(e,t){void 0===t&&(t=!0);var n=this.serializeKey(e)[0];t&&k(e,null,!1),this.__cache.delete(n),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"==typeof e)try{e=e()}catch(t){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n<e.length;++n){var r=void 0;null===e[n]||"object"!==u(e[n])?r="string"==typeof e[n]?'"'+e[n]+'"':String(e[n]):s.has(e[n])?r=s.get(e[n]):(r=c,s.set(e[n],c++)),t+="@"+r}return t}(e)):e=String(e||""),[e,t,e?"err@"+e:""]},e.prototype.subscribe=function(e){var t=this;if("function"!=typeof e)throw new Error("Expected the listener to be a function.");var n=!0;return this.__listeners.push(e),function(){if(n){n=!1;var r=t.__listeners.indexOf(e);r>-1&&(t.__listeners[r]=t.__listeners[t.__listeners.length-1],t.__listeners.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.__listeners;e<t.length;e++){(0,t[e])()}},e}()),d={},h={},p={},v={};var y="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),m=(i.a,!1);if("undefined"!=typeof window&&window.addEventListener&&!m){var b=function(){if(a()&&l())for(var e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",b,!1),window.addEventListener("focus",b,!1),m=!0}var g=Object(r.createContext)({});g.displayName="SWRConfigContext";var w=g;var _=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},O="undefined"==typeof window,S=(O?r.useEffect:r.useLayoutEffect,function(e,t){void 0===t&&(t=!0);var n=f.serializeKey(e),r=n[0],o=n[2];if(!r)return Promise.resolve();var i=p[r];if(r&&i){for(var a=f.get(r),l=f.get(o),u=[],s=0;s<i.length;++s)u.push(i[s](t,a,l,s>0));return Promise.all(u).then((function(){return f.get(r)}))}return Promise.resolve(f.get(r))}),k=function(e,t,n){return void 0===n&&(n=!0),_(void 0,void 0,void 0,(function(){var r,o,i,a,l,u,s,c,h,y;return C(this,(function(m){switch(m.label){case 0:if(!(r=f.serializeKey(e)[0]))return[2];if(void 0===t)return[2,S(e,n)];if(v[r]=Date.now()-1,a=v[r],l=d[r],!t||"function"!=typeof t)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,t(f.get(r))];case 2:return o=m.sent(),[3,4];case 3:return u=m.sent(),i=u,[3,4];case 4:return[3,11];case 5:if(!t||"function"!=typeof t.then)return[3,10];m.label=6;case 6:return m.trys.push([6,8,,9]),[4,t];case 7:return o=m.sent(),[3,9];case 8:return s=m.sent(),i=s,[3,9];case 9:return[3,11];case 10:o=t,m.label=11;case 11:if(a!==v[r]||l!==d[r]){if(i)throw i;return[2,o]}if(void 0!==o&&f.set(r,o,!1),c=p[r]){for(h=[],y=0;y<c.length;++y)h.push(c[y](!!n,o,i,y>0));return[2,Promise.all(h).then((function(){return f.get(r)}))]}if(i)throw i;return[2,o]}}))}))};w.Provider,new Map},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};
|
2 |
/*!
|
3 |
* Adapted from jQuery UI core
|
4 |
*
|
10 |
*
|
11 |
* http://api.jqueryui.com/category/ui-core/
|
12 |
*/
|
13 |
+
var r=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&i(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){l&&(l.removeAttribute?l.removeAttribute("aria-hidden"):null!=l.length?l.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(l).forEach((function(e){return e.removeAttribute("aria-hidden")})));l=null},t.log=function(){0},t.assertNodeList=u,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);u(n,t),t=n}return l=t||l},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){l=null};var r,o=n(96),i=(r=o)&&r.__esModule?r:{default:r},a=n(22);var l=null;function u(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||l;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new r;t.default=o},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var a,l,u,s=r(t),c=r(n);if(s&&c){if((l=t.length)!=n.length)return!1;for(a=l;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(s!=c)return!1;var f=t instanceof Date,d=n instanceof Date;if(f!=d)return!1;if(f&&d)return t.getTime()==n.getTime();var h=t instanceof RegExp,p=n instanceof RegExp;if(h!=p)return!1;if(h&&p)return t.toString()==n.toString();var v=o(t);if((l=v.length)!==o(n).length)return!1;for(a=l;0!=a--;)if(!i.call(n,v[a]))return!1;for(a=l;0!=a--;)if(!e(t[u=v[a]],n[u]))return!1;return!0}return t!=t&&n!=n}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!l(s))return!1;var c=e[s],f=t[s];if(!1===(o=n?n.call(r,c,f,s):void 0)||void 0===o&&c!==f)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var o=t.trim().split(p);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=n(e,t[l],r).trim();break;default:var u=l=0;for(t=[];l<i;++l)for(var s=0;s<a;++s)t[u++]=n(e[s]+" ",o[l],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",l=2*t+3*n+4*i;if(944===l){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===E||2===E&&o(u,1)?"-webkit-"+u+u:u}if(0===E||2===E&&!o(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(g,"tb");break;case 232:u=a.replace(g,"tb-rl");break;case 220:u=a.replace(g,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(O,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,l,s,c){for(var f,d=0,h=t;d<j;++d)switch(f=I[d].call(u,e,h,n,r,o,i,a,l,s,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?E=1:(E=2,R=e):E=0),l}function u(e,n){var l=e;if(33>l.charCodeAt(0)&&(l=l.trim()),l=[l],0<j){var u=a(-1,n,l,l,A,M,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,l,u,f,d){for(var h,p,v,g,_,C=0,O=0,S=0,k=0,I=0,R=0,L=v=h=0,N=0,F=0,D=0,H=0,V=u.length,z=V-1,q="",$="",U="",Z="";N<V;){if(p=u.charCodeAt(N),N===z&&0!==O+k+S+C&&(0!==O&&(p=47===O?10:47),k=S=C=0,V++,z++),0===O+k+S+C){if(N===z&&(0<F&&(q=q.replace(c,"")),0<q.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:q+=u.charAt(N)}p=59}switch(p){case 123:for(h=(q=q.trim()).charCodeAt(0),v=1,H=++N;N<V;){switch(p=u.charCodeAt(N)){case 123:v++;break;case 125:v--;break;case 47:switch(p=u.charCodeAt(N+1)){case 42:case 47:e:{for(L=N+1;L<z;++L)switch(u.charCodeAt(L)){case 47:if(42===p&&42===u.charCodeAt(L-1)&&N+2!==L){N=L+1;break e}break;case 10:if(47===p){N=L+1;break e}}N=L}}break;case 91:p++;case 40:p++;case 34:case 39:for(;N++<z&&u.charCodeAt(N)!==p;);}if(0===v)break;N++}switch(v=u.substring(H,N),0===h&&(h=(q=q.replace(s,"").trim()).charCodeAt(0)),h){case 64:switch(0<F&&(q=q.replace(c,"")),p=q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=l;break;default:F=P}if(H=(v=e(l,F,v,p,d+1)).length,0<j&&(_=a(3,v,F=t(P,q,D),l,A,M,H,p,d,f),q=F.join(""),void 0!==_&&0===(H=(v=_.trim()).length)&&(p=0,v="")),0<H)switch(p){case 115:q=q.replace(w,i);case 100:case 109:case 45:v=q+"{"+v+"}";break;case 107:v=(q=q.replace(y,"$1 $2"))+"{"+v+"}",v=1===E||2===E&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=q+v,112===f&&($+=v,v="")}else v="";break;default:v=e(l,t(l,q,D),v,f,d+1)}U+=v,v=D=F=L=h=0,q="",p=u.charCodeAt(++N);break;case 125:case 59:if(1<(H=(q=(0<F?q.replace(c,""):q).trim()).length))switch(0===L&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(H=(q=q.replace(" ",":")).length),0<j&&void 0!==(_=a(1,q,l,n,A,M,$.length,f,d,f))&&0===(H=(q=_.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),p=q.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){Z+=q+u.charAt(N);break}default:58!==q.charCodeAt(H-1)&&($+=r(q,h,p,q.charCodeAt(2)))}D=F=L=h=0,q="",p=u.charCodeAt(++N)}}switch(p){case 13:case 10:47===O?O=0:0===1+h&&107!==f&&0<q.length&&(F=1,q+="\0"),0<j*T&&a(0,q,l,n,A,M,$.length,f,d,f),M=1,A++;break;case 59:case 125:if(0===O+k+S+C){M++;break}default:switch(M++,g=u.charAt(N),p){case 9:case 32:if(0===k+C+O)switch(I){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===k+O+C&&(F=D=1,g="\f"+g);break;case 108:if(0===k+O+C+x&&0<L)switch(N-L){case 2:112===I&&58===u.charCodeAt(N-3)&&(x=I);case 8:111===R&&(x=R)}break;case 58:0===k+O+C&&(L=N);break;case 44:0===O+S+k+C&&(F=1,g+="\r");break;case 34:case 39:0===O&&(k=k===p?0:0===k?p:k);break;case 91:0===k+O+S&&C++;break;case 93:0===k+O+S&&C--;break;case 41:0===k+O+C&&S--;break;case 40:if(0===k+O+C){if(0===h)switch(2*I+3*R){case 533:break;default:h=1}S++}break;case 64:0===O+S+k+C+L+v&&(v=1);break;case 42:case 47:if(!(0<k+C+S))switch(O){case 0:switch(2*p+3*u.charCodeAt(N+1)){case 235:O=47;break;case 220:H=N,O=42}break;case 42:47===p&&42===I&&H+2!==N&&(33===u.charCodeAt(H+2)&&($+=u.substring(H,N+1)),g="",O=0)}}0===O&&(q+=g)}R=I,I=p,N++}if(0<(H=$.length)){if(F=l,0<j&&(void 0!==(_=a(2,$,F,n,A,M,H,f,d,f))&&0===($=_).length))return Z+$+U;if($=F.join(",")+"{"+$+"}",0!=E*x){switch(2!==E||o($,2)||(x=0),x){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(m,"::-webkit-input-$1")+$.replace(m,"::-moz-$1")+$.replace(m,":-ms-input-$1")+$}x=0}}return Z+$+U}(P,l,n,0,0);return 0<j&&(void 0!==(u=a(-2,f,l,l,A,M,f.length,0,0,0))&&(f=u)),"",x=0,M=A=1,f}var s=/^\0+/g,c=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,p=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,b=/:(read-only)/g,g=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,C=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,M=1,A=1,x=0,E=1,P=[],I=[],j=0,R=null,T=0;return u.use=function e(t){switch(t){case void 0:case null:j=I.length=0;break;default:if("function"==typeof t)I[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else T=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 13c.34 0 .67.04 1 .09V10a2 2 0 0 0-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6a2 2 0 0 0-2 2v10c0 1.11.89 2 2 2h7.81c-.51-.88-.81-1.9-.81-3c0-3.31 2.69-6 6-6M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6m3 11a2 2 0 1 1 2-2c0 1.11-.89 2-2 2m10.5.25L17.75 22L15 19l1.16-1.16l1.59 1.59l3.59-3.59l1.16 1.41Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M18 1c-2.76 0-5 2.24-5 5v2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12c1.11 0 2-.89 2-2V10a2 2 0 0 0-2-2h-1V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2h2V6c0-2.76-2.24-5-5-5m-8 12a2 2 0 0 1 2 2c0 1.11-.89 2-2 2a2 2 0 1 1 0-4Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M13 9h5.5L13 3.5V9M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m6.16 12.31c-1.56 0-2.97.58-4.05 1.52L6 13.72V19h5.28l-2.13-2.12c.82-.68 1.85-1.1 3.01-1.1c2.07 0 3.84 1.35 4.45 3.22l1.39-.46c-.81-2.45-3.12-4.23-5.84-4.23Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 5V1L7 6l5 5V7a6 6 0 0 1 6 6a6 6 0 0 1-6 6a6 6 0 0 1-6-6H4a8 8 0 0 0 8 8a8 8 0 0 0 8-8a8 8 0 0 0-8-8Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6v12Z"/>'}},function(e,t){t.__esModule=!0,t.default={width:24,height:24,body:'<path fill="currentColor" d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88c3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8Z"/>'}},
|