(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,669716,e=>{"use strict";var r=e.i(843476),a=e.i(671878);let t={default:"bg-white dark:bg-gray-800 border border-border hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300",primary:"bg-blue-600 border border-blue-600 hover:bg-blue-700 text-white",destructive:"bg-white dark:bg-gray-800 border border-red-300 dark:border-red-600 hover:bg-red-50 dark:hover:bg-red-900/20 text-red-600 dark:text-red-400",accent:"bg-white dark:bg-gray-800 border border-blue-300 dark:border-blue-600 hover:bg-blue-50 dark:hover:bg-blue-900/20 text-blue-600 dark:text-blue-400",orange:"bg-white dark:bg-gray-800 border border-orange-300 dark:border-orange-700 hover:bg-orange-50 dark:hover:bg-orange-900/20 text-orange-600 dark:text-orange-400"};function d({onClick:e,disabled:o,title:l,icon:i,label:n,variant:s="default",className:b}){return(0,r.jsx)(a.HoverTooltip,{content:l??n,children:(0,r.jsxs)("button",{onClick:()=>e(),disabled:o,className:`flex items-center gap-1 px-2.5 py-1.5 text-xs rounded disabled:opacity-40 disabled:cursor-not-allowed whitespace-nowrap ${t[s]}${b?` ${b}`:""}`,children:[i,n]})})}function o(){return(0,r.jsx)("span",{className:"w-px h-5 bg-border mx-0.5 shrink-0"})}let l={default:"bg-gray-50 dark:bg-gray-700 border border-border hover:bg-gray-100 dark:hover:bg-gray-600 text-gray-700 dark:text-gray-200",primary:"bg-blue-600 border border-blue-600 hover:bg-blue-700 text-white",destructive:"bg-gray-50 dark:bg-gray-700 border border-red-300 dark:border-red-500 hover:bg-red-50 dark:hover:bg-red-900/30 text-red-600 dark:text-red-400",accent:"bg-gray-50 dark:bg-gray-700 border border-blue-300 dark:border-blue-500 hover:bg-blue-50 dark:hover:bg-blue-900/30 text-blue-600 dark:text-blue-400",orange:"bg-gray-50 dark:bg-gray-700 border border-orange-300 dark:border-orange-600 hover:bg-orange-50 dark:hover:bg-orange-900/30 text-orange-600 dark:text-orange-400"};function i({onClick:e,disabled:t,title:d,icon:o,label:n,variant:s="default"}){return(0,r.jsx)(a.HoverTooltip,{content:d??n,side:"right",children:(0,r.jsxs)("button",{onClick:()=>e(),disabled:t,className:`flex flex-col items-center gap-0.5 w-full px-1 py-1.5 text-[10px] leading-tight rounded disabled:opacity-40 disabled:cursor-not-allowed ${l[s]}`,children:[o,(0,r.jsx)("span",{children:n})]})})}e.s(["AdaptiveBtn",0,function(e){let{orientation:a,...t}=e;return"vertical"===a?(0,r.jsx)(i,{...t}):(0,r.jsx)(d,{...t})},"AdaptiveSeparator",0,function({orientation:e}){return"vertical"===e?(0,r.jsx)("span",{className:"w-full h-px bg-border my-0.5"}):(0,r.jsx)(o,{})}])},37727,e=>{"use strict";var r=e.i(841947);e.s(["X",()=>r.default])},727612,e=>{"use strict";let r=(0,e.i(475254).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,r],727612)},107233,e=>{"use strict";let r=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,r],107233)},778917,e=>{"use strict";let r=(0,e.i(475254).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,r],778917)},331163,e=>{"use strict";var r=e.i(843476),a=e.i(107233),t=e.i(727612),d=e.i(37727),o=e.i(778917),l=e.i(669716);e.s(["LicenseManagerActionPanel",0,function({position:e,install:i,remove:n,clear:s,busy:b,hasSelection:g,hasLicenses:c,viewOnly:h=!1}){let u="left"===e||"right"===e?"vertical":"horizontal";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.AdaptiveBtn,{orientation:u,onClick:i,disabled:b||h,icon:(0,r.jsx)(a.Plus,{className:"w-4 h-4"}),label:"Install License",title:"Install a license from a JSON file",variant:"primary"}),(0,r.jsx)(l.AdaptiveBtn,{orientation:u,onClick:n,disabled:!g||b||h,icon:(0,r.jsx)(t.Trash2,{className:"w-4 h-4"}),label:"Remove Selected",title:g?"Remove the selected license":"Select a license to remove",variant:"destructive"}),(0,r.jsx)(l.AdaptiveBtn,{orientation:u,onClick:s,disabled:!c||b||h,icon:(0,r.jsx)(d.X,{className:"w-4 h-4"}),label:"Remove All",title:c?"Remove all installed licenses":"No licenses to remove",variant:"destructive"}),(0,r.jsx)(l.AdaptiveBtn,{orientation:u,onClick:()=>window.open("https://www.innovarhealthcare.com/plugins","_blank"),disabled:!1,icon:(0,r.jsx)(o.ExternalLink,{className:"w-4 h-4"}),label:"Purchase License",title:"Purchase a license for Innovar plugins",variant:"default"})]})}])}]);