(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16715,e=>{"use strict";let r=(0,e.i(475254).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,r],16715)},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:b,icon:i,label:l,variant:s="default",className:n}){return(0,r.jsx)(a.HoverTooltip,{content:b??l,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]}${n?` ${n}`:""}`,children:[i,l]})})}function o(){return(0,r.jsx)("span",{className:"w-px h-5 bg-border mx-0.5 shrink-0"})}let b={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:l,variant:s="default"}){return(0,r.jsx)(a.HoverTooltip,{content:d??l,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 ${b[s]}`,children:[o,(0,r.jsx)("span",{children:l})]})})}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,{})}])},356909,e=>{"use strict";let r=(0,e.i(475254).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,r],356909)},837647,e=>{"use strict";let r=(0,e.i(475254).default)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);e.s(["Undo2",0,r],837647)},758188,e=>{"use strict";var r=e.i(843476),a=e.i(16715),t=e.i(356909),d=e.i(837647),o=e.i(669716);e.s(["OidcActionPanel",0,function({position:e,save:b,refresh:i,discard:l,dirty:s,saving:n,loading:g,viewOnly:c=!1}){let h="left"===e||"right"===e?"vertical":"horizontal";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.AdaptiveBtn,{orientation:h,onClick:b,disabled:!s||n||c,variant:"primary",icon:(0,r.jsx)(t.Save,{className:"w-4 h-4"}),label:n?"Saving...":"Save",title:"Save settings"}),(0,r.jsx)(o.AdaptiveBtn,{orientation:h,onClick:i,disabled:g,icon:(0,r.jsx)(a.RefreshCw,{className:"w-4 h-4"}),label:"Refresh",title:"Refresh settings"}),(0,r.jsx)(o.AdaptiveBtn,{orientation:h,onClick:l,disabled:!s||g,icon:(0,r.jsx)(d.Undo2,{className:"w-4 h-4"}),label:"Discard",title:"Discard unsaved changes"})]})}])}]);