Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aleon_35_pdf_ui_lib

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aleon_35_pdf_ui_lib - npm Package Compare versions

Comparing version 1.1.3 to 1.1.5

assets/chevron-down-white.svg

2

dist/pdf_ui_lib.js

@@ -1,1 +0,1 @@

!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.PdfUiLibrary=e():n.PdfUiLibrary=e()}(self,(()=>(()=>{"use strict";var n={840:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,".JGOZEl16KDnhjwZOounc {\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n padding: 10px;\n}\n\n.rMqW2zQrdtY1ymHtUP_p {\n display: none;\n padding: 10px 0;\n}\n\n.rMqW2zQrdtY1ymHtUP_p.IyQNCxi2JxGoUDJsQ3To {\n display: block;\n}\n\n.i0S_dx1PXaqY8NOUGzfb {\n transition: transform 0.3s ease;\n}\n\n.i0S_dx1PXaqY8NOUGzfb.IyQNCxi2JxGoUDJsQ3To {\n transform: rotate(180deg);\n}",""]),l.locals={accordionBar:"JGOZEl16KDnhjwZOounc",content:"rMqW2zQrdtY1ymHtUP_p",open:"IyQNCxi2JxGoUDJsQ3To",chevronIcon:"i0S_dx1PXaqY8NOUGzfb"};const a=l},938:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,"\n.MCSqMJs2SXm4CvlK5rQg {\n opacity: 0.7;\n pointer-events: none;\n}\n\n.b7xQ6Sz23JoFM3NDI1yO {\n border: none;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n border-radius: 4px;\n}",""]),l.locals={disabled:"MCSqMJs2SXm4CvlK5rQg",customButton:"b7xQ6Sz23JoFM3NDI1yO"};const a=l},958:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,'.WEqeRKtKFvYngiHmkfA0 {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: "Lato", sans-serif;\n margin: 5px 0; /* Optional, adds some spacing between checkboxes */\n}\n\n.rUvgAvf9JZd2m9GV0ttq {\n appearance: none;\n width: 20px; /* Adjust size as needed */\n height: 20px; /* Adjust size as needed */\n border: 1px solid #ccc;\n border-radius: 4px;\n margin-right: 10px; /* Optional, adds some spacing between checkbox and label */\n cursor: pointer; /* Makes it clear that the checkbox is clickable */\n position: relative;\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked {\n background-color: #3d9bff; /* Background color when checked */\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked::after {\n content: "";\n position: absolute;\n left: 45%; /* Center the checkmark */\n top: 30%; /* Center the checkmark */\n transform: translate(-40%, -40%) rotate(45deg); /* Center and rotate */\n width: 6px;\n height: 12px;\n border: solid white;\n border-width: 0 2px 2px 0; /* Creates the checkmark */\n}\n\n.rUvgAvf9JZd2m9GV0ttq.aHMHNNzcwSR5T1VPl1Gf::after {\n border-color: black;\n}\n\n.rUvgAvf9JZd2m9GV0ttq.cSLbmkZflqOPMqlGgaYJ::after {\n border-color: white;\n}\n',""]),l.locals={checkboxContainer:"WEqeRKtKFvYngiHmkfA0",checkboxStyle:"rUvgAvf9JZd2m9GV0ttq",checkedDark:"aHMHNNzcwSR5T1VPl1Gf",checkedLight:"cSLbmkZflqOPMqlGgaYJ"};const a=l},367:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,"/* Dropdown.module.css */\n\n.aPCic56MR8Vbkf66xRzs {\n display: none;\n position: absolute;\n background-color: #f9f9f9;\n min-width: 160px;\n box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n z-index: 1;\n}\n\n.H0_wGd7h7qHmm0TjenNY {\n padding: 0;\n margin: 0;\n border: none;\n box-sizing: border-box;\n display: flex;\n font-family: Lato;\n}\n\n.Z4Be7MNC2ePCWrDpJzUx {\n display: block;\n}",""]),l.locals={dropdownContent:"aPCic56MR8Vbkf66xRzs",styleRefresh:"H0_wGd7h7qHmm0TjenNY",dropdownVisible:"Z4Be7MNC2ePCWrDpJzUx aPCic56MR8Vbkf66xRzs"};const a=l},875:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,'.byHo_6akp8iCkyfWpmAG {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.q5hH3yrQOkVJnw7uo98p:focus,\ninput[type="number"]:focus {\n border-color: #007bff;\n}\n\n.TdOmzhCfN24fHJm8MZqg {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n}\n\n.EzjabeS7XCtFkF6g7WGi {\n position: relative;\n display: inline-block;\n}\n\n.q5hH3yrQOkVJnw7uo98p,\ninput[type="number"] {\n appearance: none; /* Remove the default styling */\n padding: 10px 10px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n}\n\n.Xt0DnFbf71tmeoBHaT3n {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none; /* Make it non-clickable */\n}\n\n.q5hH3yrQOkVJnw7uo98p,\ninput[type="number"] {\n /* common styles here, omitting size-specific styles */\n}\n\n.TdOmzhCfN24fHJm8MZqg[data-size=\'md\'] .q5hH3yrQOkVJnw7uo98p,\n.TdOmzhCfN24fHJm8MZqg[data-size=\'md\'] input[type="number"] {\n font-size: 16px;\n padding: 10px 10px 10px 10px;\n}\n\n.TdOmzhCfN24fHJm8MZqg[data-size=\'sm\'] .q5hH3yrQOkVJnw7uo98p,\n.TdOmzhCfN24fHJm8MZqg[data-size=\'sm\'] input[type="number"] {\n font-size: 12px;\n padding: 5px 5px 5px 5px;\n}\n\n.h_vn_OYtRtcFInwhRfzw::placeholder {\n color: #cacaca; /* Adjust this to the desired light color for the placeholder */\n}\n\n.Be0WY4BSpUTkFpgz9vBZ {\n color: inherit; /* This allows the color to be inherited from the parent element */\n}',""]),l.locals={labelStyle:"byHo_6akp8iCkyfWpmAG",selectStyle:"q5hH3yrQOkVJnw7uo98p",selectContainer:"TdOmzhCfN24fHJm8MZqg",selectWrapper:"EzjabeS7XCtFkF6g7WGi",chevronIcon:"Xt0DnFbf71tmeoBHaT3n",darkModePlaceholder:"h_vn_OYtRtcFInwhRfzw",themedInput:"Be0WY4BSpUTkFpgz9vBZ"};const a=l},207:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,".vtInfWEngrL8ObR4UGa6 {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.GtZm5KBURjydSGpgGK9f:focus {\n border-color: #007bff;\n}\n\n.GtZm5KBURjydSGpgGK9f optgroup {\n font-weight: bold;\n color: #999;\n}\n\n.x5OZgBPtDAH3QPcw9trA {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: 'Lato';\n}\n\n.B272WIB99MWnjhvZEBvc {\n position: relative;\n display: inline-block;\n}\n\n.GtZm5KBURjydSGpgGK9f {\n appearance: none; /* Remove the default styling */\n padding: 10px 30px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n}\n\n.Lg_pRAL_O5KSkOj6njEA {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 10px;\n pointer-events: none; /* Make it non-clickable */\n}\n\n.x5OZgBPtDAH3QPcw9trA[data-size='md'] .GtZm5KBURjydSGpgGK9f {\n font-size: 16px;\n padding: 10px 30px 10px 10px;\n}\n\n.x5OZgBPtDAH3QPcw9trA[data-size='sm'] .GtZm5KBURjydSGpgGK9f {\n font-size: 12px;\n padding: 5px 25px 5px 5px;\n}",""]),l.locals={labelStyle:"vtInfWEngrL8ObR4UGa6",selectStyle:"GtZm5KBURjydSGpgGK9f",selectContainer:"x5OZgBPtDAH3QPcw9trA",selectWrapper:"B272WIB99MWnjhvZEBvc",chevronIcon:"Lg_pRAL_O5KSkOj6njEA"};const a=l},975:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,".g6edoCHfEdciAFuKVbhc {\n width: 100%;\n overflow: hidden; /* Prevents horizontal scrolling */\n}\n\n.jm8hodcifihiR9lxACXp {\n display: flex;\n}\n\n.Nvyk8ZDyB6xvKFGjut7J {\n flex: 1; /* Adjust as needed */\n padding: 8px;\n text-align: left;\n overflow: hidden; /* Prevents text overflow */\n white-space: nowrap; /* Keeps text on one line */\n display: flex;\n align-items: center;\n}\n\n.N4365cKmQ7o3ulw0TB6r {\n flex: 1; /* Adjust as needed */\n padding: 8px;\n text-align: right;\n overflow: hidden; /* Prevents text overflow */\n white-space: nowrap; /* Keeps text on one line */\n}\n\n/* If custom widths are needed */\n.Nvyk8ZDyB6xvKFGjut7J.DgLTRLanCSYiP7mhT8AB,\n.N4365cKmQ7o3ulw0TB6r.DgLTRLanCSYiP7mhT8AB {\n flex: none;\n}",""]),l.locals={tableContainer:"g6edoCHfEdciAFuKVbhc",row:"jm8hodcifihiR9lxACXp",columnLeft:"Nvyk8ZDyB6xvKFGjut7J",columnRight:"N4365cKmQ7o3ulw0TB6r",customWidth:"DgLTRLanCSYiP7mhT8AB"};const a=l},645:n=>{n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t="",o=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),o&&(t+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),t+=n(e),o&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t})).join("")},e.i=function(n,t,o,r,i){"string"==typeof n&&(n=[[null,n,void 0]]);var l={};if(o)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(l[c]=!0)}for(var s=0;s<n.length;s++){var u=[].concat(n[s]);o&&l[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),t&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=t):u[2]=t),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},81:n=>{n.exports=function(n){return n[1]}},379:n=>{var e=[];function t(n){for(var t=-1,o=0;o<e.length;o++)if(e[o].identifier===n){t=o;break}return t}function o(n,o){for(var i={},l=[],a=0;a<n.length;a++){var c=n[a],s=o.base?c[0]+o.base:c[0],u=i[s]||0,d="".concat(s," ").concat(u);i[s]=u+1;var _=t(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==_)e[_].references++,e[_].updater(p);else{var f=r(p,o);o.byIndex=a,e.splice(a,0,{identifier:d,updater:f,references:1})}l.push(d)}return l}function r(n,e){var t=e.domAPI(e);return t.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;t.update(n=e)}else t.remove()}}n.exports=function(n,r){var i=o(n=n||[],r=r||{});return function(n){n=n||[];for(var l=0;l<i.length;l++){var a=t(i[l]);e[a].references--}for(var c=o(n,r),s=0;s<i.length;s++){var u=t(i[s]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}i=c}}},569:n=>{var e={};n.exports=function(n,t){var o=function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(n){t=null}e[n]=t}return e[n]}(n);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}},216:n=>{n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},565:(n,e,t)=>{n.exports=function(n){var e=t.nc;e&&n.setAttribute("nonce",e)}},795:n=>{n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(t){!function(n,e,t){var o="";t.supports&&(o+="@supports (".concat(t.supports,") {")),t.media&&(o+="@media ".concat(t.media," {"));var r=void 0!==t.layer;r&&(o+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),o+=t.css,r&&(o+="}"),t.media&&(o+="}"),t.supports&&(o+="}");var i=t.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(o,n,e.options)}(e,n,t)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},589:n=>{n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}}},e={};function t(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,exports:{}};return n[o](i,i.exports,t),i.exports}t.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},t.d=(n,e)=>{for(var o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},t.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),t.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var o={};return(()=>{t.r(o),t.d(o,{Accordion:()=>Rn,Button:()=>vn,Checkbox:()=>tn,Dropdown:()=>n.Dropdown,Icon:()=>cn,NumberInput:()=>pn,Select:()=>sn,Table:()=>Cn,Text:()=>En,ThemeContext:()=>O,ThemeProvider:()=>Jn,themes:()=>U});var n={};t.r(n);var e,r,i,l,a,c,s,u,d={},_=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=Array.isArray;function h(n,e){for(var t in e)n[t]=e[t];return n}function m(n){var e=n.parentNode;e&&e.removeChild(n)}function v(n,t,o){var r,i,l,a={};for(l in t)"key"==l?r=t[l]:"ref"==l?i=t[l]:a[l]=t[l];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof n&&null!=n.defaultProps)for(l in n.defaultProps)void 0===a[l]&&(a[l]=n.defaultProps[l]);return g(n,a,r,i,null)}function g(n,e,t,o,l){var a={type:n,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++i:l};return null==l&&null!=r.vnode&&r.vnode(a),a}function y(n){return n.children}function b(n,e){this.props=n,this.context=e}function x(n,e){if(null==e)return n.__?x(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e)return t.__e;return"function"==typeof n.type?x(n):null}function k(n){var e,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return k(n)}}function w(n){(!n.__d&&(n.__d=!0)&&l.push(n)&&!C.__r++||a!==r.debounceRendering)&&((a=r.debounceRendering)||c)(C)}function C(){var n,e,t,o,r,i,a,c,u;for(l.sort(s);n=l.shift();)n.__d&&(e=l.length,o=void 0,r=void 0,i=void 0,c=(a=(t=n).__v).__e,(u=t.__P)&&(o=[],r=[],(i=h({},a)).__v=a.__v+1,j(u,a,i,t.__n,void 0!==u.ownerSVGElement,null!=a.__h?[c]:null,o,null==c?x(a):c,a.__h,r),z(o,a,r),a.__e!=c&&k(a)),l.length>e&&l.sort(s));C.__r=0}function M(n,e,t,o,r,i,l,a,c,s,u){var p,h,m,v,b,k,w,C,M,Z=0,N=o&&o.__k||_,T=N.length,P=T,z=e.length;for(t.__k=[],p=0;p<z;p++)null!=(v=t.__k[p]=null==(v=e[p])||"boolean"==typeof v||"function"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):f(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)?(v.__=t,v.__b=t.__b+1,-1===(C=S(v,N,w=p+Z,P))?m=d:(m=N[C]||d,N[C]=void 0,P--),j(n,v,m,r,i,l,a,c,s,u),b=v.__e,(h=v.ref)&&m.ref!=h&&(m.ref&&D(m.ref,null,v),u.push(h,v.__c||b,v)),null!=b&&(null==k&&(k=b),(M=m===d||null===m.__v)?-1==C&&Z--:C!==w&&(C===w+1?Z++:C>w?P>z-w?Z+=C-w:Z--:Z=C<w&&C==w-1?C-w:0),w=p+Z,"function"!=typeof v.type||C===w&&m.__k!==v.__k?"function"==typeof v.type||C===w&&!M?void 0!==v.__d?(c=v.__d,v.__d=void 0):c=b.nextSibling:c=A(n,b,c):c=I(v,c,n),"function"==typeof t.type&&(t.__d=c))):(m=N[p])&&null==m.key&&m.__e&&(m.__e==c&&(c=x(m)),L(m,m,!1));for(t.__e=k,p=T;p--;)null!=N[p]&&("function"==typeof t.type&&null!=N[p].__e&&N[p].__e==t.__d&&(t.__d=N[p].__e.nextSibling),L(N[p],N[p]))}function I(n,e,t){for(var o,r=n.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=n,e="function"==typeof o.type?I(o,e,t):A(t,o.__e,e));return e}function A(n,e,t){return null==t||t.parentNode!==n?n.insertBefore(e,null):e==t&&null!=e.parentNode||n.insertBefore(e,t),e.nextSibling}function S(n,e,t,o){var r=n.key,i=n.type,l=t-1,a=t+1,c=e[t];if(null===c||c&&r==c.key&&i===c.type)return t;if(o>(null!=c?1:0))for(;l>=0||a<e.length;){if(l>=0){if((c=e[l])&&r==c.key&&i===c.type)return l;l--}if(a<e.length){if((c=e[a])&&r==c.key&&i===c.type)return a;a++}}return-1}function Z(n,e,t){"-"===e[0]?n.setProperty(e,null==t?"":t):n[e]=null==t?"":"number"!=typeof t||p.test(e)?t:t+"px"}function N(n,e,t,o,r){var i;n:if("style"===e)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof o&&(n.style.cssText=o=""),o)for(e in o)t&&e in t||Z(n.style,e,"");if(t)for(e in t)o&&t[e]===o[e]||Z(n.style,e,t[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+i]=t,t?o||n.addEventListener(e,i?P:T,i):n.removeEventListener(e,i?P:T,i);else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&e in n)try{n[e]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!==e[4]?n.removeAttribute(e):n.setAttribute(e,t))}}function T(n){return this.l[n.type+!1](r.event?r.event(n):n)}function P(n){return this.l[n.type+!0](r.event?r.event(n):n)}function j(n,e,t,o,i,l,a,c,s,u){var d,_,p,m,v,g,x,k,w,C,I,A,S,Z,N,T=e.type;if(void 0!==e.constructor)return null;null!=t.__h&&(s=t.__h,c=e.__e=t.__e,e.__h=null,l=[c]),(d=r.__b)&&d(e);n:if("function"==typeof T)try{if(k=e.props,w=(d=T.contextType)&&o[d.__c],C=d?w?w.props.value:d.__:o,t.__c?x=(_=e.__c=t.__c).__=_.__E:("prototype"in T&&T.prototype.render?e.__c=_=new T(k,C):(e.__c=_=new b(k,C),_.constructor=T,_.render=H),w&&w.sub(_),_.props=k,_.state||(_.state={}),_.context=C,_.__n=o,p=_.__d=!0,_.__h=[],_._sb=[]),null==_.__s&&(_.__s=_.state),null!=T.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=h({},_.__s)),h(_.__s,T.getDerivedStateFromProps(k,_.__s))),m=_.props,v=_.state,_.__v=e,p)null==T.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==T.getDerivedStateFromProps&&k!==m&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(k,C),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(k,_.__s,C)||e.__v===t.__v)){for(e.__v!==t.__v&&(_.props=k,_.state=_.__s,_.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach((function(n){n&&(n.__=e)})),I=0;I<_._sb.length;I++)_.__h.push(_._sb[I]);_._sb=[],_.__h.length&&a.push(_);break n}null!=_.componentWillUpdate&&_.componentWillUpdate(k,_.__s,C),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(m,v,g)}))}if(_.context=C,_.props=k,_.__P=n,_.__e=!1,A=r.__r,S=0,"prototype"in T&&T.prototype.render){for(_.state=_.__s,_.__d=!1,A&&A(e),d=_.render(_.props,_.state,_.context),Z=0;Z<_._sb.length;Z++)_.__h.push(_._sb[Z]);_._sb=[]}else do{_.__d=!1,A&&A(e),d=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++S<25);_.state=_.__s,null!=_.getChildContext&&(o=h(h({},o),_.getChildContext())),p||null==_.getSnapshotBeforeUpdate||(g=_.getSnapshotBeforeUpdate(m,v)),M(n,f(N=null!=d&&d.type===y&&null==d.key?d.props.children:d)?N:[N],e,t,o,i,l,a,c,s,u),_.base=e.__e,e.__h=null,_.__h.length&&a.push(_),x&&(_.__E=_.__=null)}catch(n){e.__v=null,(s||null!=l)&&(e.__e=c,e.__h=!!s,l[l.indexOf(c)]=null),r.__e(n,e,t)}else null==l&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=G(t.__e,e,t,o,i,l,a,s,u);(d=r.diffed)&&d(e)}function z(n,e,t){for(var o=0;o<t.length;o++)D(t[o],t[++o],t[++o]);r.__c&&r.__c(e,n),n.some((function(e){try{n=e.__h,e.__h=[],n.some((function(n){n.call(e)}))}catch(n){r.__e(n,e.__v)}}))}function G(n,t,o,r,i,l,a,c,s){var u,_,p,h=o.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=l)for(;y<l.length;y++)if((u=l[y])&&"setAttribute"in u==!!g&&(g?u.localName===g:3===u.nodeType)){n=u,l[y]=null;break}if(null==n){if(null===g)return document.createTextNode(v);n=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),l=null,c=!1}if(null===g)h===v||c&&n.data===v||(n.data=v);else{if(l=l&&e.call(n.childNodes),_=(h=o.props||d).dangerouslySetInnerHTML,p=v.dangerouslySetInnerHTML,!c){if(null!=l)for(h={},y=0;y<n.attributes.length;y++)h[n.attributes[y].name]=n.attributes[y].value;(p||_)&&(p&&(_&&p.__html==_.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(function(n,e,t,o,r){var i;for(i in t)"children"===i||"key"===i||i in e||N(n,i,null,t[i],o);for(i in e)r&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===e[i]||N(n,i,e[i],t[i],o)}(n,v,h,i,c),p)t.__k=[];else if(M(n,f(y=t.props.children)?y:[y],t,o,r,i&&"foreignObject"!==g,l,a,l?l[0]:o.__k&&x(o,0),c,s),null!=l)for(y=l.length;y--;)null!=l[y]&&m(l[y]);c||("value"in v&&void 0!==(y=v.value)&&(y!==n.value||"progress"===g&&!y||"option"===g&&y!==h.value)&&N(n,"value",y,h.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==n.checked&&N(n,"checked",y,h.checked,!1))}return n}function D(n,e,t){try{"function"==typeof n?n(e):n.current=e}catch(n){r.__e(n,t)}}function L(n,e,t){var o,i;if(r.unmount&&r.unmount(n),(o=n.ref)&&(o.current&&o.current!==n.__e||D(o,null,e)),null!=(o=n.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(n){r.__e(n,e)}o.base=o.__P=null,n.__c=void 0}if(o=n.__k)for(i=0;i<o.length;i++)o[i]&&L(o[i],e,t||"function"!=typeof n.type);t||null==n.__e||m(n.__e),n.__=n.__e=n.__d=void 0}function H(n,e,t){return this.constructor(n,t)}e=_.slice,r={__e:function(n,e,t,o){for(var r,i,l;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(n)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(n,o||{}),l=r.__d),l)return r.__E=r}catch(e){n=e}throw n}},i=0,b.prototype.setState=function(n,e){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},t),this.props)),n&&h(t,n),null!=n&&this.__v&&(e&&this._sb.push(e),w(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w(this))},b.prototype.render=y,l=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(n,e){return n.__v.__b-e.__v.__b},C.__r=0,u=0;var O=function(n,e){var t={__c:e="__cC"+u++,__:{theme:"light",toggleTheme:function(){}},Consumer:function(n,e){return n.children(e)},Provider:function(n){var t,o;return this.getChildContext||(t=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&t.some((function(n){n.__e=!0,w(n)}))},this.sub=function(n){t.push(n);var e=n.componentWillUnmount;n.componentWillUnmount=function(){t.splice(t.indexOf(n),1),e&&e.call(n)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}(),U={light:{background:"#ffffff",inputBackground:"#fff",name:"light",text:"#000000"},dark:{background:"#000000",inputBackground:"#4e4e4e",name:"dark",text:"#ffffff"}},B=t(379),E=t.n(B),R=t(795),J=t.n(R),W=t(569),F=t.n(W),q=t(565),V=t.n(q),Q=t(216),K=t.n(Q),Y=t(589),X=t.n(Y),$=t(958),nn={};nn.styleTagTransform=X(),nn.setAttributes=V(),nn.insert=F().bind(null,"head"),nn.domAPI=J(),nn.insertStyleElement=K(),E()($.Z,nn);const en=$.Z&&$.Z.locals?$.Z.locals:void 0;var tn=function(n){var e=n.label,t=n.checked,o=n.onChange;return v(O.Consumer,null,(function(n){var r=n.theme;return v("div",{className:en.checkboxContainer},v("input",{type:"checkbox",id:"custom-checkbox-".concat(e),onChange:o,checked:t,className:"".concat(en.checkboxStyle," ").concat(t?"dark"===r.name?en.checkedDark:en.checkedLight:"")}),!!e&&v("label",{htmlFor:"custom-checkbox-".concat(e),className:en.labelStyle},e))}))},on=t(207),rn={};rn.styleTagTransform=X(),rn.setAttributes=V(),rn.insert=F().bind(null,"head"),rn.domAPI=J(),rn.insertStyleElement=K(),E()(on.Z,rn);const ln=on.Z&&on.Z.locals?on.Z.locals:void 0,an="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cjxzdmcgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSIwIC01IDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnNrZXRjaD0iaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoL25zIj4KICAgIAogICAgPHRpdGxlPmNoZXZyb24tZG93bjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoIEJldGEuPC9kZXNjPgogICAgPGRlZnM+Cgo8L2RlZnM+CiAgICA8ZyBvcGFjaXR5PSIwLjUiIGlkPSJQYWdlLTEiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHNrZXRjaDp0eXBlPSJNU1BhZ2UiPgogICAgICAgIDxnIGlkPSJJY29uLVNldCIgc2tldGNoOnR5cGU9Ik1TTGF5ZXJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU3Mi4wMDAwMDAsIC0xMjAwLjAwMDAwMCkiIGZpbGw9IiMwMDAwMDAiPgogICAgICAgICAgICA8cGF0aCBkPSJNNTk1LjY4OCwxMjAwLjI4IEM1OTUuMjk1LDExOTkuODkgNTk0LjY1OSwxMTk5Ljg5IDU5NC4yNjgsMTIwMC4yOCBMNTgzLjk4NCwxMjExLjU3IEw1NzMuNzAyLDEyMDAuMjggQzU3My4zMSwxMTk5Ljg5IDU3Mi42NzQsMTE5OS44OSA1NzIuMjgyLDEyMDAuMjggQzU3MS44OSwxMjAwLjY4IDU3MS44OSwxMjAxLjMyIDU3Mi4yODIsMTIwMS43MSBMNTgzLjIyNSwxMjEzLjcyIEM1ODMuNDM0LDEyMTMuOTMgNTgzLjcxMSwxMjE0LjAyIDU4My45ODQsMTIxNCBDNTg0LjI1OCwxMjE0LjAyIDU4NC41MzUsMTIxMy45MyA1ODQuNzQ1LDEyMTMuNzIgTDU5NS42ODgsMTIwMS43MSBDNTk2LjA3OSwxMjAxLjMyIDU5Ni4wNzksMTIwMC42OCA1OTUuNjg4LDEyMDAuMjgiIGlkPSJjaGV2cm9uLWRvd24iIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPgoKPC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+";var cn=function(n){var e=n.src,t=n.alt,o=28;return"sm"===n.size&&(o=8),v("img",{onClick:n.onClick,style:{display:"flex",cursor:"pointer",width:o,height:o},src:e,alt:t})},sn=function(n){var e=n.options,t=n.value,o=n.onChange,r=n.width,i=void 0===r?"auto":r,l=n.size,a=void 0===l?"md":l;return v("div",{className:ln.selectContainer,"data-size":a},v("select",{onChange:o,value:t,className:ln.selectStyle,style:{width:i}},e.map((function(n,e){return"string"==typeof n?v("option",{key:e,value:n},n):v("optgroup",{key:e,label:n.label},n.options.map((function(n,e){return v("option",{key:e,value:n},n)})))}))),v("div",{className:ln.chevronIcon},v(cn,{size:"sm",src:an,alt:"Arrow left"})))},un=t(875),dn={};dn.styleTagTransform=X(),dn.setAttributes=V(),dn.insert=F().bind(null,"head"),dn.domAPI=J(),dn.insertStyleElement=K(),E()(un.Z,dn);const _n=un.Z&&un.Z.locals?un.Z.locals:void 0;var pn=function(n){var e=n.placeholder,t=n.value,o=n.onChange,r=n.min,i=n.max,l=n.step,a=n.width,c=void 0===a?"auto":a,s=n.size,u=void 0===s?"md":s;return v(O.Consumer,null,(function(n){var a=n.theme;return v("div",{className:_n.selectContainer,"data-size":u,style:{color:a.text}},v("input",{type:"number",placeholder:e,onChange:o,value:t,className:"".concat(_n.selectStyle," ").concat("dark"===a.name?_n.darkModePlaceholder:""),min:r,max:i,step:l,style:{width:c,backgroundColor:a.inputBackground,color:a.text}}))}))},fn=t(938),hn={};hn.styleTagTransform=X(),hn.setAttributes=V(),hn.insert=F().bind(null,"head"),hn.domAPI=J(),hn.insertStyleElement=K(),E()(fn.Z,hn);const mn=fn.Z&&fn.Z.locals?fn.Z.locals:void 0;var vn=function(n){var e,t,o=n.loading,r=void 0!==o&&o,i=n.disabled,l=void 0!==i&&i,a=n.children,c=n.size,s=void 0===c?"lg":c,u=n.variant,d=void 0===u?"primary":u,_=n.onClick;switch(s){case"sm":e="8px 16px",t="14px";break;case"md":e="12px 16px",t="16px";break;default:e="15px 32px",t="16px"}return v("label",{onClick:!l&&_,className:"".concat(mn.customButton," ").concat(r||l?mn.disabled:""),style:{padding:e,fontSize:t,color:"primary"===d?"white":"#4CAF50",background:"primary"===d?"#4CAF50":"#f1faf7"}},a)},gn=t(975),yn={};yn.styleTagTransform=X(),yn.setAttributes=V(),yn.insert=F().bind(null,"head"),yn.domAPI=J(),yn.insertStyleElement=K(),E()(gn.Z,yn);const bn=gn.Z&&gn.Z.locals?gn.Z.locals:void 0;var xn,kn,wn,Cn=function(n){var e=n.leftColumnWidth,t=n.rightColumnWidth,o=n.rows;return v("div",{className:bn.tableContainer},o.map((function(n,o){return v("div",{key:o,className:bn.row},v("div",{className:bn.columnLeft,style:{width:e||"auto"}},n.left),v("div",{className:bn.columnRight,style:{width:t||"auto"}},n.right))})))},Mn=[],In=[],An=r.__b,Sn=r.__r,Zn=r.diffed,Nn=r.__c,Tn=r.unmount;function Pn(){for(var n;n=Mn.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(Gn),n.__H.__h.forEach(Dn),n.__H.__h=[]}catch(e){n.__H.__h=[],r.__e(e,n.__v)}}r.__b=function(n){xn=null,An&&An(n)},r.__r=function(n){Sn&&Sn(n);var e=(xn=n.__c).__H;e&&(kn===xn?(e.__h=[],xn.__h=[],e.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=In,n.__N=n.i=void 0}))):(e.__h.forEach(Gn),e.__h.forEach(Dn),e.__h=[])),kn=xn},r.diffed=function(n){Zn&&Zn(n);var e=n.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Mn.push(e)&&wn===r.requestAnimationFrame||((wn=r.requestAnimationFrame)||zn)(Pn)),e.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==In&&(n.__=n.__V),n.i=void 0,n.__V=In}))),kn=xn=null},r.__c=function(n,e){e.some((function(n){try{n.__h.forEach(Gn),n.__h=n.__h.filter((function(n){return!n.__||Dn(n)}))}catch(t){e.some((function(n){n.__h&&(n.__h=[])})),e=[],r.__e(t,n.__v)}})),Nn&&Nn(n,e)},r.unmount=function(n){Tn&&Tn(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach((function(n){try{Gn(n)}catch(n){e=n}})),t.__H=void 0,e&&r.__e(e,t.__v))};var jn="function"==typeof requestAnimationFrame;function zn(n){var e,t=function(){clearTimeout(o),jn&&cancelAnimationFrame(e),setTimeout(n)},o=setTimeout(t,100);jn&&(e=requestAnimationFrame(t))}function Gn(n){var e=xn,t=n.__c;"function"==typeof t&&(n.__c=void 0,t()),xn=e}function Dn(n){var e=xn;n.__c=n.__(),xn=e}var Ln=t(367),Hn={};Hn.styleTagTransform=X(),Hn.setAttributes=V(),Hn.insert=F().bind(null,"head"),Hn.domAPI=J(),Hn.insertStyleElement=K(),E()(Ln.Z,Hn),Ln.Z&&Ln.Z.locals&&Ln.Z.locals;var On=t(840),Un={};Un.styleTagTransform=X(),Un.setAttributes=V(),Un.insert=F().bind(null,"head"),Un.domAPI=J(),Un.insertStyleElement=K(),E()(On.Z,Un);const Bn=On.Z&&On.Z.locals?On.Z.locals:void 0;var En=function(n){var e=n.children;return v(O.Consumer,null,(function(n){var t=n.theme;return v("span",{style:{color:null==t?void 0:t.text}},e)}))},Rn=function(n){var e=n.title,t=n.content,o=n.isOpen,r=n.toggleAccordion,i=n.leftPadding,l=void 0===i?"10px":i,a=n.rightPadding,c=void 0===a?"10px":a;return v("div",null,v("div",{className:Bn.accordionBar,onClick:r,style:{paddingLeft:l,paddingRight:c}},v(En,null,e),v("div",{className:o?"".concat(Bn.chevronIcon," ").concat(Bn.open):Bn.chevronIcon},v(cn,{size:"sm",src:an,alt:"Toggle"}))),v("div",{className:o?"".concat(Bn.content," ").concat(Bn.open):Bn.content},t))},Jn=function(n){var e=n.children,t=n.defaultTheme,o=void 0===t?"light":t;return v(O.Provider,{value:{theme:null==U?void 0:U[o]}},e)}})(),o})()));
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.PdfUiLibrary=e():n.PdfUiLibrary=e()}(self,(()=>(()=>{"use strict";var n={840:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,".JGOZEl16KDnhjwZOounc {\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n padding: 10px;\n}\n\n.rMqW2zQrdtY1ymHtUP_p {\n display: none;\n padding: 10px 0;\n}\n\n.rMqW2zQrdtY1ymHtUP_p.IyQNCxi2JxGoUDJsQ3To {\n display: block;\n}\n\n.i0S_dx1PXaqY8NOUGzfb {\n transition: transform 0.3s ease;\n}\n\n.i0S_dx1PXaqY8NOUGzfb.IyQNCxi2JxGoUDJsQ3To {\n transform: rotate(180deg);\n}",""]),l.locals={accordionBar:"JGOZEl16KDnhjwZOounc",content:"rMqW2zQrdtY1ymHtUP_p",open:"IyQNCxi2JxGoUDJsQ3To",chevronIcon:"i0S_dx1PXaqY8NOUGzfb"};const a=l},938:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,"\n.MCSqMJs2SXm4CvlK5rQg {\n opacity: 0.7;\n pointer-events: none;\n}\n\n.b7xQ6Sz23JoFM3NDI1yO {\n border: none;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n border-radius: 4px;\n}",""]),l.locals={disabled:"MCSqMJs2SXm4CvlK5rQg",customButton:"b7xQ6Sz23JoFM3NDI1yO"};const a=l},958:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,'.WEqeRKtKFvYngiHmkfA0 {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: "Lato", sans-serif;\n margin: 5px 0; /* Optional, adds some spacing between checkboxes */\n}\n\n.rUvgAvf9JZd2m9GV0ttq {\n appearance: none;\n width: 20px; /* Adjust size as needed */\n height: 20px; /* Adjust size as needed */\n border: 1px solid #ccc;\n border-radius: 4px;\n margin-right: 10px; /* Optional, adds some spacing between checkbox and label */\n cursor: pointer; /* Makes it clear that the checkbox is clickable */\n position: relative;\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked {\n background-color: #3d9bff; /* Background color when checked */\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked::after {\n content: "";\n position: absolute;\n left: 45%; /* Center the checkmark */\n top: 30%; /* Center the checkmark */\n transform: translate(-40%, -40%) rotate(45deg); /* Center and rotate */\n width: 6px;\n height: 12px;\n border: solid white;\n border-width: 0 2px 2px 0; /* Creates the checkmark */\n}\n\n.rUvgAvf9JZd2m9GV0ttq.aHMHNNzcwSR5T1VPl1Gf::after {\n border-color: black;\n}\n\n.rUvgAvf9JZd2m9GV0ttq.cSLbmkZflqOPMqlGgaYJ::after {\n border-color: white;\n}\n',""]),l.locals={checkboxContainer:"WEqeRKtKFvYngiHmkfA0",checkboxStyle:"rUvgAvf9JZd2m9GV0ttq",checkedDark:"aHMHNNzcwSR5T1VPl1Gf",checkedLight:"cSLbmkZflqOPMqlGgaYJ"};const a=l},367:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,"/* Dropdown.module.css */\n\n.aPCic56MR8Vbkf66xRzs {\n display: none;\n position: absolute;\n background-color: #f9f9f9;\n min-width: 160px;\n box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n z-index: 1;\n}\n\n.H0_wGd7h7qHmm0TjenNY {\n padding: 0;\n margin: 0;\n border: none;\n box-sizing: border-box;\n display: flex;\n font-family: Lato;\n}\n\n.Z4Be7MNC2ePCWrDpJzUx {\n display: block;\n}",""]),l.locals={dropdownContent:"aPCic56MR8Vbkf66xRzs",styleRefresh:"H0_wGd7h7qHmm0TjenNY",dropdownVisible:"Z4Be7MNC2ePCWrDpJzUx aPCic56MR8Vbkf66xRzs"};const a=l},875:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,'.byHo_6akp8iCkyfWpmAG {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.q5hH3yrQOkVJnw7uo98p:focus,\ninput[type="number"]:focus {\n border-color: #007bff;\n}\n\n.TdOmzhCfN24fHJm8MZqg {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n}\n\n.EzjabeS7XCtFkF6g7WGi {\n position: relative;\n display: inline-block;\n}\n\n.q5hH3yrQOkVJnw7uo98p,\ninput[type="number"] {\n appearance: none; /* Remove the default styling */\n padding: 10px 10px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n}\n\n.Xt0DnFbf71tmeoBHaT3n {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none; /* Make it non-clickable */\n}\n\n.q5hH3yrQOkVJnw7uo98p,\ninput[type="number"] {\n /* common styles here, omitting size-specific styles */\n}\n\n.TdOmzhCfN24fHJm8MZqg[data-size=\'md\'] .q5hH3yrQOkVJnw7uo98p,\n.TdOmzhCfN24fHJm8MZqg[data-size=\'md\'] input[type="number"] {\n font-size: 16px;\n padding: 10px 10px 10px 10px;\n}\n\n.TdOmzhCfN24fHJm8MZqg[data-size=\'sm\'] .q5hH3yrQOkVJnw7uo98p,\n.TdOmzhCfN24fHJm8MZqg[data-size=\'sm\'] input[type="number"] {\n font-size: 12px;\n padding: 5px 5px 5px 5px;\n}\n\n.h_vn_OYtRtcFInwhRfzw::placeholder {\n color: #cacaca; /* Adjust this to the desired light color for the placeholder */\n}\n\n.Be0WY4BSpUTkFpgz9vBZ {\n color: inherit; /* This allows the color to be inherited from the parent element */\n}',""]),l.locals={labelStyle:"byHo_6akp8iCkyfWpmAG",selectStyle:"q5hH3yrQOkVJnw7uo98p",selectContainer:"TdOmzhCfN24fHJm8MZqg",selectWrapper:"EzjabeS7XCtFkF6g7WGi",chevronIcon:"Xt0DnFbf71tmeoBHaT3n",darkModePlaceholder:"h_vn_OYtRtcFInwhRfzw",themedInput:"Be0WY4BSpUTkFpgz9vBZ"};const a=l},207:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,".vtInfWEngrL8ObR4UGa6 {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.GtZm5KBURjydSGpgGK9f:focus {\n border-color: #007bff;\n}\n\n.GtZm5KBURjydSGpgGK9f optgroup {\n font-weight: bold;\n color: #999;\n}\n\n.x5OZgBPtDAH3QPcw9trA {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: 'Lato';\n border-radius: 5px;\n}\n\n.B272WIB99MWnjhvZEBvc {\n position: relative;\n display: inline-block;\n}\n\n.GtZm5KBURjydSGpgGK9f {\n appearance: none; /* Remove the default styling */\n padding: 10px 30px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n}\n\n.Lg_pRAL_O5KSkOj6njEA {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 10px;\n pointer-events: none; /* Make it non-clickable */\n}\n\n.x5OZgBPtDAH3QPcw9trA[data-size='md'] .GtZm5KBURjydSGpgGK9f {\n font-size: 16px;\n padding: 10px 30px 10px 10px;\n}\n\n.x5OZgBPtDAH3QPcw9trA[data-size='sm'] .GtZm5KBURjydSGpgGK9f {\n font-size: 12px;\n padding: 5px 25px 5px 5px;\n}\n\n.GtZm5KBURjydSGpgGK9f {\n background-color: transparent;\n}",""]),l.locals={labelStyle:"vtInfWEngrL8ObR4UGa6",selectStyle:"GtZm5KBURjydSGpgGK9f",selectContainer:"x5OZgBPtDAH3QPcw9trA",selectWrapper:"B272WIB99MWnjhvZEBvc",chevronIcon:"Lg_pRAL_O5KSkOj6njEA"};const a=l},975:(n,e,t)=>{t.d(e,{Z:()=>a});var o=t(81),r=t.n(o),i=t(645),l=t.n(i)()(r());l.push([n.id,".g6edoCHfEdciAFuKVbhc {\n width: 100%;\n overflow: hidden; /* Prevents horizontal scrolling */\n}\n\n.jm8hodcifihiR9lxACXp {\n display: flex;\n}\n\n.Nvyk8ZDyB6xvKFGjut7J {\n flex: 1; /* Adjust as needed */\n padding: 8px;\n text-align: left;\n overflow: hidden; /* Prevents text overflow */\n white-space: nowrap; /* Keeps text on one line */\n display: flex;\n align-items: center;\n}\n\n.N4365cKmQ7o3ulw0TB6r {\n flex: 1; /* Adjust as needed */\n padding: 8px;\n text-align: right;\n overflow: hidden; /* Prevents text overflow */\n white-space: nowrap; /* Keeps text on one line */\n}\n\n/* If custom widths are needed */\n.Nvyk8ZDyB6xvKFGjut7J.DgLTRLanCSYiP7mhT8AB,\n.N4365cKmQ7o3ulw0TB6r.DgLTRLanCSYiP7mhT8AB {\n flex: none;\n}",""]),l.locals={tableContainer:"g6edoCHfEdciAFuKVbhc",row:"jm8hodcifihiR9lxACXp",columnLeft:"Nvyk8ZDyB6xvKFGjut7J",columnRight:"N4365cKmQ7o3ulw0TB6r",customWidth:"DgLTRLanCSYiP7mhT8AB"};const a=l},645:n=>{n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t="",o=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),o&&(t+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),t+=n(e),o&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t})).join("")},e.i=function(n,t,o,r,i){"string"==typeof n&&(n=[[null,n,void 0]]);var l={};if(o)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(l[c]=!0)}for(var s=0;s<n.length;s++){var u=[].concat(n[s]);o&&l[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),t&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=t):u[2]=t),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},81:n=>{n.exports=function(n){return n[1]}},379:n=>{var e=[];function t(n){for(var t=-1,o=0;o<e.length;o++)if(e[o].identifier===n){t=o;break}return t}function o(n,o){for(var i={},l=[],a=0;a<n.length;a++){var c=n[a],s=o.base?c[0]+o.base:c[0],u=i[s]||0,d="".concat(s," ").concat(u);i[s]=u+1;var _=t(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==_)e[_].references++,e[_].updater(p);else{var f=r(p,o);o.byIndex=a,e.splice(a,0,{identifier:d,updater:f,references:1})}l.push(d)}return l}function r(n,e){var t=e.domAPI(e);return t.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;t.update(n=e)}else t.remove()}}n.exports=function(n,r){var i=o(n=n||[],r=r||{});return function(n){n=n||[];for(var l=0;l<i.length;l++){var a=t(i[l]);e[a].references--}for(var c=o(n,r),s=0;s<i.length;s++){var u=t(i[s]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}i=c}}},569:n=>{var e={};n.exports=function(n,t){var o=function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(n){t=null}e[n]=t}return e[n]}(n);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}},216:n=>{n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},565:(n,e,t)=>{n.exports=function(n){var e=t.nc;e&&n.setAttribute("nonce",e)}},795:n=>{n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(t){!function(n,e,t){var o="";t.supports&&(o+="@supports (".concat(t.supports,") {")),t.media&&(o+="@media ".concat(t.media," {"));var r=void 0!==t.layer;r&&(o+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),o+=t.css,r&&(o+="}"),t.media&&(o+="}"),t.supports&&(o+="}");var i=t.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(o,n,e.options)}(e,n,t)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},589:n=>{n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}}},e={};function t(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,exports:{}};return n[o](i,i.exports,t),i.exports}t.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},t.d=(n,e)=>{for(var o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},t.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),t.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nc=void 0;var o={};return(()=>{t.r(o),t.d(o,{Accordion:()=>qn,Button:()=>mn,Checkbox:()=>en,Dropdown:()=>Fn,Icon:()=>an,NumberInput:()=>_n,Select:()=>cn,Table:()=>kn,Text:()=>Kn,ThemeContext:()=>U,ThemeProvider:()=>$n,themes:()=>H});var n,e,r,i,l,a,c,s,u={},d=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function f(n,e){for(var t in e)n[t]=e[t];return n}function h(n){var e=n.parentNode;e&&e.removeChild(n)}function m(e,t,o){var r,i,l,a={};for(l in t)"key"==l?r=t[l]:"ref"==l?i=t[l]:a[l]=t[l];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):o),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===a[l]&&(a[l]=e.defaultProps[l]);return g(e,a,r,i,null)}function g(n,t,o,i,l){var a={type:n,props:t,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++r:l};return null==l&&null!=e.vnode&&e.vnode(a),a}function v(n){return n.children}function y(n,e){this.props=n,this.context=e}function b(n,e){if(null==e)return n.__?b(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e)return t.__e;return"function"==typeof n.type?b(n):null}function x(n){var e,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if(null!=(t=n.__k[e])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return x(n)}}function I(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!M.__r++||l!==e.debounceRendering)&&((l=e.debounceRendering)||a)(M)}function M(){var n,e,t,o,r,l,a,s,u;for(i.sort(c);n=i.shift();)n.__d&&(e=i.length,o=void 0,r=void 0,l=void 0,s=(a=(t=n).__v).__e,(u=t.__P)&&(o=[],r=[],(l=f({},a)).__v=a.__v+1,T(u,a,l,t.__n,void 0!==u.ownerSVGElement,null!=a.__h?[s]:null,o,null==s?b(a):s,a.__h,r),D(o,a,r),a.__e!=s&&x(a)),i.length>e&&i.sort(c));M.__r=0}function k(n,e,t,o,r,i,l,a,c,s,_){var f,h,m,y,x,I,M,k,N,j=0,S=o&&o.__k||d,Z=S.length,D=Z,G=e.length;for(t.__k=[],f=0;f<G;f++)null!=(y=t.__k[f]=null==(y=e[f])||"boolean"==typeof y||"function"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?g(null,y,null,null,y):p(y)?g(v,{children:y},null,null,null):y.__b>0?g(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)?(y.__=t,y.__b=t.__b+1,-1===(k=A(y,S,M=f+j,D))?m=u:(m=S[k]||u,S[k]=void 0,D--),T(n,y,m,r,i,l,a,c,s,_),x=y.__e,(h=y.ref)&&m.ref!=h&&(m.ref&&L(m.ref,null,y),_.push(h,y.__c||x,y)),null!=x&&(null==I&&(I=x),(N=m===u||null===m.__v)?-1==k&&j--:k!==M&&(k===M+1?j++:k>M?D>G-M?j+=k-M:j--:j=k<M&&k==M-1?k-M:0),M=f+j,"function"!=typeof y.type||k===M&&m.__k!==y.__k?"function"==typeof y.type||k===M&&!N?void 0!==y.__d?(c=y.__d,y.__d=void 0):c=x.nextSibling:c=C(n,x,c):c=w(y,c,n),"function"==typeof t.type&&(t.__d=c))):(m=S[f])&&null==m.key&&m.__e&&(m.__e==c&&(c=b(m)),P(m,m,!1));for(t.__e=I,f=Z;f--;)null!=S[f]&&("function"==typeof t.type&&null!=S[f].__e&&S[f].__e==t.__d&&(t.__d=S[f].__e.nextSibling),P(S[f],S[f]))}function w(n,e,t){for(var o,r=n.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=n,e="function"==typeof o.type?w(o,e,t):C(t,o.__e,e));return e}function C(n,e,t){return null==t||t.parentNode!==n?n.insertBefore(e,null):e==t&&null!=e.parentNode||n.insertBefore(e,t),e.nextSibling}function A(n,e,t,o){var r=n.key,i=n.type,l=t-1,a=t+1,c=e[t];if(null===c||c&&r==c.key&&i===c.type)return t;if(o>(null!=c?1:0))for(;l>=0||a<e.length;){if(l>=0){if((c=e[l])&&r==c.key&&i===c.type)return l;l--}if(a<e.length){if((c=e[a])&&r==c.key&&i===c.type)return a;a++}}return-1}function N(n,e,t){"-"===e[0]?n.setProperty(e,null==t?"":t):n[e]=null==t?"":"number"!=typeof t||_.test(e)?t:t+"px"}function j(n,e,t,o,r){var i;n:if("style"===e)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof o&&(n.style.cssText=o=""),o)for(e in o)t&&e in t||N(n.style,e,"");if(t)for(e in t)o&&t[e]===o[e]||N(n.style,e,t[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+i]=t,t?o||n.addEventListener(e,i?Z:S,i):n.removeEventListener(e,i?Z:S,i);else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&e in n)try{n[e]=null==t?"":t;break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!==e[4]?n.removeAttribute(e):n.setAttribute(e,t))}}function S(n){return this.l[n.type+!1](e.event?e.event(n):n)}function Z(n){return this.l[n.type+!0](e.event?e.event(n):n)}function T(n,t,o,r,i,l,a,c,s,u){var d,_,h,m,g,b,x,I,M,w,C,A,N,j,S,Z=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(s=o.__h,c=t.__e=o.__e,t.__h=null,l=[c]),(d=e.__b)&&d(t);n:if("function"==typeof Z)try{if(I=t.props,M=(d=Z.contextType)&&r[d.__c],w=d?M?M.props.value:d.__:r,o.__c?x=(_=t.__c=o.__c).__=_.__E:("prototype"in Z&&Z.prototype.render?t.__c=_=new Z(I,w):(t.__c=_=new y(I,w),_.constructor=Z,_.render=z),M&&M.sub(_),_.props=I,_.state||(_.state={}),_.context=w,_.__n=r,h=_.__d=!0,_.__h=[],_._sb=[]),null==_.__s&&(_.__s=_.state),null!=Z.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=f({},_.__s)),f(_.__s,Z.getDerivedStateFromProps(I,_.__s))),m=_.props,g=_.state,_.__v=t,h)null==Z.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(null==Z.getDerivedStateFromProps&&I!==m&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(I,w),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(I,_.__s,w)||t.__v===o.__v)){for(t.__v!==o.__v&&(_.props=I,_.state=_.__s,_.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(n){n&&(n.__=t)})),C=0;C<_._sb.length;C++)_.__h.push(_._sb[C]);_._sb=[],_.__h.length&&a.push(_);break n}null!=_.componentWillUpdate&&_.componentWillUpdate(I,_.__s,w),null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(m,g,b)}))}if(_.context=w,_.props=I,_.__P=n,_.__e=!1,A=e.__r,N=0,"prototype"in Z&&Z.prototype.render){for(_.state=_.__s,_.__d=!1,A&&A(t),d=_.render(_.props,_.state,_.context),j=0;j<_._sb.length;j++)_.__h.push(_._sb[j]);_._sb=[]}else do{_.__d=!1,A&&A(t),d=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++N<25);_.state=_.__s,null!=_.getChildContext&&(r=f(f({},r),_.getChildContext())),h||null==_.getSnapshotBeforeUpdate||(b=_.getSnapshotBeforeUpdate(m,g)),k(n,p(S=null!=d&&d.type===v&&null==d.key?d.props.children:d)?S:[S],t,o,r,i,l,a,c,s,u),_.base=t.__e,t.__h=null,_.__h.length&&a.push(_),x&&(_.__E=_.__=null)}catch(n){t.__v=null,(s||null!=l)&&(t.__e=c,t.__h=!!s,l[l.indexOf(c)]=null),e.__e(n,t,o)}else null==l&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=G(o.__e,t,o,r,i,l,a,s,u);(d=e.diffed)&&d(t)}function D(n,t,o){for(var r=0;r<o.length;r++)L(o[r],o[++r],o[++r]);e.__c&&e.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){e.__e(n,t.__v)}}))}function G(e,t,o,r,i,l,a,c,s){var d,_,f,m=o.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=l)for(;y<l.length;y++)if((d=l[y])&&"setAttribute"in d==!!v&&(v?d.localName===v:3===d.nodeType)){e=d,l[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),l=null,c=!1}if(null===v)m===g||c&&e.data===g||(e.data=g);else{if(l=l&&n.call(e.childNodes),_=(m=o.props||u).dangerouslySetInnerHTML,f=g.dangerouslySetInnerHTML,!c){if(null!=l)for(m={},y=0;y<e.attributes.length;y++)m[e.attributes[y].name]=e.attributes[y].value;(f||_)&&(f&&(_&&f.__html==_.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(n,e,t,o,r){var i;for(i in t)"children"===i||"key"===i||i in e||j(n,i,null,t[i],o);for(i in e)r&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===e[i]||j(n,i,e[i],t[i],o)}(e,g,m,i,c),f)t.__k=[];else if(k(e,p(y=t.props.children)?y:[y],t,o,r,i&&"foreignObject"!==v,l,a,l?l[0]:o.__k&&b(o,0),c,s),null!=l)for(y=l.length;y--;)null!=l[y]&&h(l[y]);c||("value"in g&&void 0!==(y=g.value)&&(y!==e.value||"progress"===v&&!y||"option"===v&&y!==m.value)&&j(e,"value",y,m.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&j(e,"checked",y,m.checked,!1))}return e}function L(n,t,o){try{"function"==typeof n?n(t):n.current=t}catch(n){e.__e(n,o)}}function P(n,t,o){var r,i;if(e.unmount&&e.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||L(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){e.__e(n,t)}r.base=r.__P=null,n.__c=void 0}if(r=n.__k)for(i=0;i<r.length;i++)r[i]&&P(r[i],t,o||"function"!=typeof n.type);o||null==n.__e||h(n.__e),n.__=n.__e=n.__d=void 0}function z(n,e,t){return this.constructor(n,t)}n=d.slice,e={__e:function(n,e,t,o){for(var r,i,l;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(n)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(n,o||{}),l=r.__d),l)return r.__E=r}catch(e){n=e}throw n}},r=0,y.prototype.setState=function(n,e){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof n&&(n=n(f({},t),this.props)),n&&f(t,n),null!=n&&this.__v&&(e&&this._sb.push(e),I(this))},y.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),I(this))},y.prototype.render=v,i=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(n,e){return n.__v.__b-e.__v.__b},M.__r=0,s=0;var U=function(n,e){var t={__c:e="__cC"+s++,__:{theme:"light",toggleTheme:function(){}},Consumer:function(n,e){return n.children(e)},Provider:function(n){var t,o;return this.getChildContext||(t=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&t.some((function(n){n.__e=!0,I(n)}))},this.sub=function(n){t.push(n);var e=n.componentWillUnmount;n.componentWillUnmount=function(){t.splice(t.indexOf(n),1),e&&e.call(n)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}(),H={light:{background:"#ffffff",inputBackground:"#fff",name:"light",text:"#000000"},dark:{background:"#000000",inputBackground:"#4e4e4e",name:"dark",text:"#ffffff"}},O=t(379),B=t.n(O),E=t(795),R=t.n(E),J=t(569),W=t.n(J),V=t(565),F=t.n(V),X=t(216),Q=t.n(X),Y=t(589),K=t.n(Y),q=t(958),$={};$.styleTagTransform=K(),$.setAttributes=F(),$.insert=W().bind(null,"head"),$.domAPI=R(),$.insertStyleElement=Q(),B()(q.Z,$);const nn=q.Z&&q.Z.locals?q.Z.locals:void 0;var en=function(n){var e=n.label,t=n.checked,o=n.onChange;return m(U.Consumer,null,(function(n){var r=n.theme;return m("div",{className:nn.checkboxContainer},m("input",{type:"checkbox",id:"custom-checkbox-".concat(e),onChange:o,checked:t,className:"".concat(nn.checkboxStyle," ").concat(t?"dark"===r.name?nn.checkedDark:nn.checkedLight:"")}),!!e&&m("label",{htmlFor:"custom-checkbox-".concat(e),className:nn.labelStyle},e))}))},tn=t(207),on={};on.styleTagTransform=K(),on.setAttributes=F(),on.insert=W().bind(null,"head"),on.domAPI=R(),on.insertStyleElement=Q(),B()(tn.Z,on);const rn=tn.Z&&tn.Z.locals?tn.Z.locals:void 0,ln="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cjxzdmcgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSIwIC01IDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnNrZXRjaD0iaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoL25zIj4KICAgIAogICAgPHRpdGxlPmNoZXZyb24tZG93bjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoIEJldGEuPC9kZXNjPgogICAgPGRlZnM+Cgo8L2RlZnM+CiAgICA8ZyBvcGFjaXR5PSIwLjUiIGlkPSJQYWdlLTEiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHNrZXRjaDp0eXBlPSJNU1BhZ2UiPgogICAgICAgIDxnIGlkPSJJY29uLVNldCIgc2tldGNoOnR5cGU9Ik1TTGF5ZXJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU3Mi4wMDAwMDAsIC0xMjAwLjAwMDAwMCkiIGZpbGw9IiMwMDAwMDAiPgogICAgICAgICAgICA8cGF0aCBkPSJNNTk1LjY4OCwxMjAwLjI4IEM1OTUuMjk1LDExOTkuODkgNTk0LjY1OSwxMTk5Ljg5IDU5NC4yNjgsMTIwMC4yOCBMNTgzLjk4NCwxMjExLjU3IEw1NzMuNzAyLDEyMDAuMjggQzU3My4zMSwxMTk5Ljg5IDU3Mi42NzQsMTE5OS44OSA1NzIuMjgyLDEyMDAuMjggQzU3MS44OSwxMjAwLjY4IDU3MS44OSwxMjAxLjMyIDU3Mi4yODIsMTIwMS43MSBMNTgzLjIyNSwxMjEzLjcyIEM1ODMuNDM0LDEyMTMuOTMgNTgzLjcxMSwxMjE0LjAyIDU4My45ODQsMTIxNCBDNTg0LjI1OCwxMjE0LjAyIDU4NC41MzUsMTIxMy45MyA1ODQuNzQ1LDEyMTMuNzIgTDU5NS42ODgsMTIwMS43MSBDNTk2LjA3OSwxMjAxLjMyIDU5Ni4wNzksMTIwMC42OCA1OTUuNjg4LDEyMDAuMjgiIGlkPSJjaGV2cm9uLWRvd24iIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPgoKPC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+";var an=function(n){var e=n.src,t=n.alt,o=28;return"sm"===n.size&&(o=8),m("img",{onClick:n.onClick,style:{display:"flex",cursor:"pointer",width:o,height:o},src:e,alt:t})},cn=function(n){var e=n.options,t=n.value,o=n.onChange,r=n.width,i=void 0===r?"auto":r,l=n.size,a=void 0===l?"md":l;return m(U.Consumer,null,(function(n){var r=n.theme;return m("div",{className:rn.selectContainer,"data-size":a,style:{background:r.inputBackground}},m("select",{onChange:o,value:t,className:rn.selectStyle,style:{width:i,color:r.text}},e.map((function(n,e){return"string"==typeof n?m("option",{key:e,value:n},n):m("optgroup",{key:e,label:n.label},n.options.map((function(n,e){return m("option",{key:e,value:n},n)})))}))),m("div",{className:rn.chevronIcon},m(an,{size:"sm",src:"dark"===r.name?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cjxzdmcgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSIwIC01IDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnNrZXRjaD0iaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoL25zIj4KICAgIAogICAgPHRpdGxlPmNoZXZyb24tZG93bjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoIEJldGEuPC9kZXNjPgogICAgPGRlZnM+Cgo8L2RlZnM+CiAgICA8ZyBvcGFjaXR5PSIwLjUiIGlkPSJQYWdlLTEiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHNrZXRjaDp0eXBlPSJNU1BhZ2UiPgogICAgICAgIDxnIGlkPSJJY29uLVNldCIgc2tldGNoOnR5cGU9Ik1TTGF5ZXJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU3Mi4wMDAwMDAsIC0xMjAwLjAwMDAwMCkiIGZpbGw9IiMwMDAwMDAiPgogICAgICAgICAgICA8cGF0aCBkPSJNNTk1LjY4OCwxMjAwLjI4IEM1OTUuMjk1LDExOTkuODkgNTk0LjY1OSwxMTk5Ljg5IDU5NC4yNjgsMTIwMC4yOCBMNTgzLjk4NCwxMjExLjU3IEw1NzMuNzAyLDEyMDAuMjggQzU3My4zMSwxMTk5Ljg5IDU3Mi42NzQsMTE5OS44OSA1NzIuMjgyLDEyMDAuMjggQzU3MS44OSwxMjAwLjY4IDU3MS44OSwxMjAxLjMyIDU3Mi4yODIsMTIwMS43MSBMNTgzLjIyNSwxMjEzLjcyIEM1ODMuNDM0LDEyMTMuOTMgNTgzLjcxMSwxMjE0LjAyIDU4My45ODQsMTIxNCBDNTg0LjI1OCwxMjE0LjAyIDU4NC41MzUsMTIxMy45MyA1ODQuNzQ1LDEyMTMuNzIgTDU5NS42ODgsMTIwMS43MSBDNTk2LjA3OSwxMjAxLjMyIDU5Ni4wNzksMTIwMC42OCA1OTUuNjg4LDEyMDAuMjgiIGlkPSJjaGV2cm9uLWRvd24iIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPgoKPC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+":ln,alt:"Arrow left"})))}))},sn=t(875),un={};un.styleTagTransform=K(),un.setAttributes=F(),un.insert=W().bind(null,"head"),un.domAPI=R(),un.insertStyleElement=Q(),B()(sn.Z,un);const dn=sn.Z&&sn.Z.locals?sn.Z.locals:void 0;var _n=function(n){var e=n.placeholder,t=n.value,o=n.onChange,r=n.min,i=n.max,l=n.step,a=n.width,c=void 0===a?"auto":a,s=n.size,u=void 0===s?"md":s;return m(U.Consumer,null,(function(n){var a=n.theme;return m("div",{className:dn.selectContainer,"data-size":u,style:{color:a.text}},m("input",{type:"number",placeholder:e,onChange:o,value:t,className:"".concat(dn.selectStyle," ").concat("dark"===a.name?dn.darkModePlaceholder:""),min:r,max:i,step:l,style:{width:c,backgroundColor:a.inputBackground,color:a.text}}))}))},pn=t(938),fn={};fn.styleTagTransform=K(),fn.setAttributes=F(),fn.insert=W().bind(null,"head"),fn.domAPI=R(),fn.insertStyleElement=Q(),B()(pn.Z,fn);const hn=pn.Z&&pn.Z.locals?pn.Z.locals:void 0;var mn=function(n){var e,t,o=n.loading,r=void 0!==o&&o,i=n.disabled,l=void 0!==i&&i,a=n.children,c=n.size,s=void 0===c?"lg":c,u=n.variant,d=void 0===u?"primary":u,_=n.onClick;switch(s){case"sm":e="8px 16px",t="14px";break;case"md":e="12px 16px",t="16px";break;default:e="15px 32px",t="16px"}return m("label",{onClick:!l&&_,className:"".concat(hn.customButton," ").concat(r||l?hn.disabled:""),style:{padding:e,fontSize:t,color:"primary"===d?"white":"#4CAF50",background:"primary"===d?"#4CAF50":"#f1faf7"}},a)},gn=t(975),vn={};vn.styleTagTransform=K(),vn.setAttributes=F(),vn.insert=W().bind(null,"head"),vn.domAPI=R(),vn.insertStyleElement=Q(),B()(gn.Z,vn);const yn=gn.Z&&gn.Z.locals?gn.Z.locals:void 0;var bn,xn,In,Mn,kn=function(n){var e=n.leftColumnWidth,t=n.rightColumnWidth,o=n.rows;return m("div",{className:yn.tableContainer},o.map((function(n,o){return m("div",{key:o,className:yn.row},m("div",{className:yn.columnLeft,style:{width:e||"auto"}},n.left),m("div",{className:yn.columnRight,style:{width:t||"auto"}},n.right))})))},wn=0,Cn=[],An=[],Nn=e.__b,jn=e.__r,Sn=e.diffed,Zn=e.__c,Tn=e.unmount;function Dn(n,t){e.__h&&e.__h(xn,n,wn||t),wn=0;var o=xn.__H||(xn.__H={__:[],__h:[]});return n>=o.__.length&&o.__.push({__V:An}),o.__[n]}function Gn(n){return wn=1,function(n,e,t){var o=Dn(bn++,2);if(o.t=n,!o.__c&&(o.__=[Bn(void 0,e),function(n){var e=o.__N?o.__N[0]:o.__[0],t=o.t(e,n);e!==t&&(o.__N=[t,o.__[1]],o.__c.setState({}))}],o.__c=xn,!xn.u)){var r=function(n,e,t){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(n){return n.__c}));if(r.every((function(n){return!n.__N})))return!i||i.call(this,n,e,t);var l=!1;return r.forEach((function(n){if(n.__N){var e=n.__[0];n.__=n.__N,n.__N=void 0,e!==n.__[0]&&(l=!0)}})),!(!l&&o.__c.props===n)&&(!i||i.call(this,n,e,t))};xn.u=!0;var i=xn.shouldComponentUpdate,l=xn.componentWillUpdate;xn.componentWillUpdate=function(n,e,t){if(this.__e){var o=i;i=void 0,r(n,e,t),i=o}l&&l.call(this,n,e,t)},xn.shouldComponentUpdate=r}return o.__N||o.__}(Bn,n)}function Ln(){for(var n;n=Cn.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(Un),n.__H.__h.forEach(Hn),n.__H.__h=[]}catch(t){n.__H.__h=[],e.__e(t,n.__v)}}e.__b=function(n){xn=null,Nn&&Nn(n)},e.__r=function(n){jn&&jn(n),bn=0;var e=(xn=n.__c).__H;e&&(In===xn?(e.__h=[],xn.__h=[],e.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=An,n.__N=n.i=void 0}))):(e.__h.forEach(Un),e.__h.forEach(Hn),e.__h=[],bn=0)),In=xn},e.diffed=function(n){Sn&&Sn(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Cn.push(t)&&Mn===e.requestAnimationFrame||((Mn=e.requestAnimationFrame)||zn)(Ln)),t.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==An&&(n.__=n.__V),n.i=void 0,n.__V=An}))),In=xn=null},e.__c=function(n,t){t.some((function(n){try{n.__h.forEach(Un),n.__h=n.__h.filter((function(n){return!n.__||Hn(n)}))}catch(o){t.some((function(n){n.__h&&(n.__h=[])})),t=[],e.__e(o,n.__v)}})),Zn&&Zn(n,t)},e.unmount=function(n){Tn&&Tn(n);var t,o=n.__c;o&&o.__H&&(o.__H.__.forEach((function(n){try{Un(n)}catch(n){t=n}})),o.__H=void 0,t&&e.__e(t,o.__v))};var Pn="function"==typeof requestAnimationFrame;function zn(n){var e,t=function(){clearTimeout(o),Pn&&cancelAnimationFrame(e),setTimeout(n)},o=setTimeout(t,100);Pn&&(e=requestAnimationFrame(t))}function Un(n){var e=xn,t=n.__c;"function"==typeof t&&(n.__c=void 0,t()),xn=e}function Hn(n){var e=xn;n.__c=n.__(),xn=e}function On(n,e){return!n||n.length!==e.length||e.some((function(e,t){return e!==n[t]}))}function Bn(n,e){return"function"==typeof e?e(n):e}var En=t(367),Rn={};Rn.styleTagTransform=K(),Rn.setAttributes=F(),Rn.insert=W().bind(null,"head"),Rn.domAPI=R(),Rn.insertStyleElement=Q(),B()(En.Z,Rn);const Jn=En.Z&&En.Z.locals?En.Z.locals:void 0;function Wn(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var o,r,i,l,a=[],c=!0,s=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;c=!1}else for(;!(c=(o=i.call(t)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(n){s=!0,r=n}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(s)throw r}}return a}}(n,e)||function(n,e){if(n){if("string"==typeof n)return Vn(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vn(n,e):void 0}}(n,e)||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(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=n[t];return o}var Fn=function(n){var t=n.title,o=n.child,r=n.marginTop,i=Wn(Gn(!1),2),l=i[0],a=i[1],c=Wn(Gn(!1),2),s=c[0],u=c[1],d=(wn=5,function(n,e){var t=Dn(bn++,7);return On(t.__H,e)?(t.__V=n(),t.i=e,t.__h=n,t.__V):t.__}((function(){return{current:null}}),[]));return function(n,t){var o=Dn(bn++,3);!e.__s&&On(o.__H,t)&&(o.__=n,o.i=t,xn.__H.__h.push(o))}(function(n,e,t,o){return function(){n||t.current&&(e(!0),["click","touchstart"].forEach((function(n){document.addEventListener("click",(function(n){t.current.contains(n.target)||o(!1)}))})))}}(s,u,d,a)),m("div",{style:{zIndex:9999},class:Jn.styleRefresh,ref:d},m("div",{class:Jn.styleRefresh,onClick:function(){return a(!l)}},t,m("div",{onClick:function(n){n.stopPropagation(),a(!1)},class:l?Jn.dropdownVisible:Jn.dropdownContent,style:{marginTop:r||48}},o)))},Xn=t(840),Qn={};Qn.styleTagTransform=K(),Qn.setAttributes=F(),Qn.insert=W().bind(null,"head"),Qn.domAPI=R(),Qn.insertStyleElement=Q(),B()(Xn.Z,Qn);const Yn=Xn.Z&&Xn.Z.locals?Xn.Z.locals:void 0;var Kn=function(n){var e=n.children;return m(U.Consumer,null,(function(n){var t=n.theme;return m("span",{style:{color:null==t?void 0:t.text}},e)}))},qn=function(n){var e=n.title,t=n.content,o=n.isOpen,r=n.toggleAccordion,i=n.leftPadding,l=void 0===i?"10px":i,a=n.rightPadding,c=void 0===a?"10px":a;return m("div",null,m("div",{className:Yn.accordionBar,onClick:r,style:{paddingLeft:l,paddingRight:c}},m(Kn,null,e),m("div",{className:o?"".concat(Yn.chevronIcon," ").concat(Yn.open):Yn.chevronIcon},m(an,{size:"sm",src:ln,alt:"Toggle"}))),m("div",{className:o?"".concat(Yn.content," ").concat(Yn.open):Yn.content},t))},$n=function(n){var e=n.children,t=n.defaultTheme,o=void 0===t?"light":t;return m(U.Provider,{value:{theme:null==H?void 0:H[o]}},e)}})(),o})()));
{
"name": "aleon_35_pdf_ui_lib",
"version": "1.1.3",
"version": "1.1.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/pdf_ui_lib.js",

@@ -19,3 +19,3 @@ import { h } from 'preact';

const Dropdown = ({ title, child, marginTop }) => {
export const Dropdown = ({ title, child, marginTop }) => {
const [isOpen, setIsOpen] = useState(false);

@@ -54,3 +54,1 @@

};
export default Dropdown;

@@ -1,54 +0,21 @@

import { h } from 'preact';
import { useEffect, useRef, useState } from 'preact/hooks';
import styles from './Dropdown.module.css';
import { ThemeProvider } from '../../ThemeProvider';
import { Dropdown } from './Dropdown';
function listenForOutsideClicks(listening, setListening, menuRef, setIsOpen) {
return () => {
if (listening) return;
if (!menuRef.current) return;
setListening(true);
[`click`, `touchstart`].forEach((type) => {
document.addEventListener(`click`, (evt) => {
if (menuRef.current.contains(evt.target)) return;
setIsOpen(false);
});
});
};
}
// More on how to set up stories at: https://storybook.js.org/docs/preact/writing-stories/introduction
export default {
title: 'Example/Dropdown',
component: Dropdown,
tags: ['autodocs'],
argTypes: {
backgroundColor: { control: 'color' },
onClick: { action: 'onClick' },
},
};
const Dropdown = ({ title, child, marginTop }) => {
const [isOpen, setIsOpen] = useState(false);
const childClick = (e) => {
e.stopPropagation();
setIsOpen(false);
// perform the action for child click
};
const [listening, setListening] = useState(false);
const dropdownRef = useRef(null);
useEffect(listenForOutsideClicks(
listening,
setListening,
dropdownRef,
setIsOpen
));
return (
<div style={{ zIndex: 9999 }} class={styles.styleRefresh} ref={dropdownRef}>
<div class={styles.styleRefresh} onClick={() => setIsOpen(!isOpen)}>
{title}
<div onClick={childClick} class={isOpen ? styles.dropdownVisible : styles.dropdownContent} style={{
marginTop: marginTop || 48
}}
>
{child}
</div>
</div>
</div>
);
// More on writing stories with args: https://storybook.js.org/docs/preact/writing-stories/args
export const Primary = {
args: {
title: "Dog",
child: <div>Hey</div>
},
};
export default Dropdown;
import { h } from 'preact';
import styles from "./Select.module.css";
import ChevronDown from '../../assets/chevron-down.svg'; // Replace with the actual path
import ChevronDownWhite from '../../assets/chevron-down-white.svg'; // Replace with the actual path
import { Icon } from '../Icon/Icon';
import { ThemeContext } from '../../Theme';
export const Select = ({ options, value, onChange, width = 'auto', size = 'md' }) => (
<div className={styles.selectContainer} data-size={size}>
<select onChange={onChange} value={value} className={styles.selectStyle} style={{ width }}>
{options.map((option, index) =>
typeof option === 'string' ? (
<option key={index} value={option}>{option}</option>
) : (
<optgroup key={index} label={option.label}>
{option.options.map((subOption, subIndex) => (
<option key={subIndex} value={subOption}>{subOption}</option>
))}
</optgroup>
))}
</select>
<div className={styles.chevronIcon}>
<Icon size="sm" src={ChevronDown} alt="Arrow left" />
</div>
</div>
<ThemeContext.Consumer>
{({ theme }) => (
<div
className={styles.selectContainer}
data-size={size}
style={{
'background': theme.inputBackground,
}}
>
<select onChange={onChange} value={value} className={styles.selectStyle} style={{ width, color: theme.text }}>
{options.map((option, index) =>
typeof option === 'string' ? (
<option key={index} value={option}>{option}</option>
) : (
<optgroup key={index} label={option.label}>
{option.options.map((subOption, subIndex) => (
<option key={subIndex} value={subOption}>{subOption}</option>
))}
</optgroup>
))}
</select>
<div className={styles.chevronIcon}>
<Icon size="sm" src={theme.name === "dark" ? ChevronDownWhite : ChevronDown} alt="Arrow left" />
</div>
</div>
)}
</ThemeContext.Consumer>
);

@@ -1,2 +0,2 @@

import { Select } from '../../index';
import { Select, ThemeProvider } from '../../index';
const orientationOptions = [

@@ -54,2 +54,16 @@ "Auto",

},
};
};
export const PrimaryDark = (args) => (
<ThemeProvider defaultTheme="dark">
<Select {...args} />
</ThemeProvider>
);
PrimaryDark.args = {
primary: true,
options: orientationOptions,
size: "sm",
width: "200px",
label: 'Add background graphics',
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc