| 1 |
- import{i as e}from"./chunk-aKtaBQYM.js";import{C as t,D as n,a as r,w as i}from"./client-BdOyoZJz.js";import{n as a}from"./QueryClientProvider-Clbyr4Jg.js";import{t as o}from"./useQuery-CCy0EwsM.js";import{t as s}from"./useMutation-qh3Iyscy.js";import{t as c}from"./check-D1Pn8T1J.js";import{n as l}from"./info-DcT0QU8O.js";import{r as ee}from"./ToastContext-VFOrCCoA.js";import{t as u}from"./loader-circle-CB4leTZa.js";import{t as te}from"./x-Dctff5l9.js";import{K as ne,_t as re,cn as ie,ft as ae,lt as oe}from"./index-BoVbGTav.js";import{r as se,t as ce}from"./AmsUnitCard-DLM3L08d.js";import{n as le}from"./spoolPaint-CrvpHqdD.js";var d=e(n(),1),f=t();function p(e){return e<=3?`AMS ${String.fromCharCode(65+e)}`:e>=128&&e<=135?`AMS HT ${String.fromCharCode(65+e-128)}`:`AMS ${e}`}function m(e){return!e.tray_type||e.tray_type===``}function ue(e){return e?`#${e.slice(0,6)}`:`#808080`}var h=[`a[href]`,`button:not([disabled])`,`input:not([disabled]):not([type="hidden"])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`);function de(e){return Array.from(e.querySelectorAll(h)).filter(e=>!e.hasAttribute(`hidden`)&&e.getAttribute(`aria-hidden`)!==`true`)}var g=e=>(e??``).trim().toUpperCase();function fe(e,t){let n=g(e),r=g(t);return!n||!r?`none`:n===r?`exact`:r.includes(n)||n.includes(r)?`partial`:`none`}function pe(e,t){let n=g(e),r=g(t);return!n||!r?!1:n===r}function _({isOpen:e,onClose:t,spool:n,printerId:h,variant:g=`dialog`,spoolmanMode:_=!1}){let{t:v}=i(),y=a(),b=(0,d.useRef)(null),[me,he]=(0,d.useState)(h),[x,S]=(0,d.useState)(null),[ge,C]=(0,d.useState)(null),[w,T]=(0,d.useState)(null),[E,D]=(0,d.useState)(!1),[O,k]=(0,d.useState)(null),[A,j]=(0,d.useState)(null);(0,d.useEffect)(()=>{e&&(he(h),S(null),C(null),T(null),D(!1),k(null),j(null))},[e,h,n.id]);let M=h===null,N=M,P=h??me,{data:_e=[],isLoading:ve}=o({queryKey:[`printers`],queryFn:()=>r.getPrinters(),enabled:e&&M}),ye=(0,d.useMemo)(()=>_e.filter(e=>e.is_active!==!1),[_e]);(0,d.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow,n=document.activeElement instanceof HTMLElement?document.activeElement:null;document.body.style.overflow=`hidden`;let r=b.current;return((r?de(r)[0]:null)??r)?.focus(),()=>{document.body.style.overflow=t,n?.isConnected&&n.focus()}},[e]);let F=(0,d.useCallback)(e=>{if(E)return;if(e.key===`Escape`){e.preventDefault(),t();return}if(e.key!==`Tab`)return;let n=b.current;if(!n)return;let r=de(n);if(r.length===0){e.preventDefault(),n.focus();return}let i=r[0],a=r[r.length-1],o=document.activeElement;e.shiftKey&&(o===i||!n.contains(o))?(e.preventDefault(),a.focus()):!e.shiftKey&&(o===a||!n.contains(o))&&(e.preventDefault(),i.focus())},[t,E]);(0,d.useEffect)(()=>{if(e)return document.addEventListener(`keydown`,F),()=>document.removeEventListener(`keydown`,F)},[e,F]);let{data:I,isLoading:be}=o({queryKey:[`printerStatus`,P],queryFn:()=>r.getPrinterStatus(P),enabled:e&&P!==null,refetchInterval:5e3}),{data:xe}=o({queryKey:[`printer`,P],queryFn:()=>r.getPrinter(P),enabled:e&&P!==null}),{data:L}=o({queryKey:[`settings`],queryFn:()=>r.getSettings(),enabled:e,staleTime:300*1e3}),{data:R}=o({queryKey:[`spool-assignments`,P],queryFn:()=>r.getAssignments(P),enabled:e&&P!==null,staleTime:30*1e3}),{data:Se=[]}=o({queryKey:[`spoolman-slot-assignments`,P],queryFn:()=>r.getSpoolmanSlotAssignments(P??void 0),enabled:e&&!!_&&P!==null,staleTime:30*1e3}),z=_?Se.find(e=>e.spoolman_spool_id===n.id):void 0,B=(0,d.useMemo)(()=>{let e={};if(!R)return e;for(let t of R){let n=t.spool;if(n&&n.label_weight>0&&n.weight_used!=null){let r=Math.round(Math.max(0,n.label_weight-n.weight_used)/n.label_weight*100);e[`${t.ams_id}-${t.tray_id}`]=r}}return e},[R]),Ce=L?{humidityGood:Number(L.ams_humidity_good)||40,humidityFair:Number(L.ams_humidity_fair)||60,tempGood:Number(L.ams_temp_good)||28,tempFair:Number(L.ams_temp_fair)||35}:void 0,we=I?.connected??!1,V=(0,d.useMemo)(()=>I?.ams??[],[I?.ams]),Te=(0,d.useMemo)(()=>V.filter(e=>!e.is_ams_ht),[V]),H=(0,d.useMemo)(()=>V.filter(e=>e.is_ams_ht),[V]),U=(0,d.useMemo)(()=>[...I?.vt_tray??[]].sort((e,t)=>(e.id??254)-(t.id??254)),[I?.vt_tray]),W=xe?.nozzle_count===2||I?.temperatures?.nozzle_2!==void 0,G=(0,d.useRef)({});(0,d.useEffect)(()=>{G.current={}},[P]),(0,d.useEffect)(()=>{I?.ams_extruder_map&&Object.keys(I.ams_extruder_map).length>0&&(G.current=I.ams_extruder_map)},[I?.ams_extruder_map]);let Ee=I?.ams_extruder_map&&Object.keys(I.ams_extruder_map).length>0?I.ams_extruder_map:G.current,K=I?.fila_switch?.installed===!0,q=(0,d.useCallback)(e=>{if(!W)return null;let t=Ee[String(e)];return t===void 0?K?null:(e>=128?e-128:e)===1?`L`:`R`:t===1?`L`:`R`},[W,Ee,K]),J=s({mutationFn:async({amsId:e,trayId:t})=>{if(!P)throw Error(`No printer selected`);return _?await r.assignSpoolmanSlot({spoolman_spool_id:n.id,printer_id:P,ams_id:e,tray_id:t}):await r.assignSpool({spool_id:n.id,printer_id:P,ams_id:e,tray_id:t})},onSuccess:e=>{T(`success`);let n=e&&`pending_config`in e&&e.pending_config;C(n?v(`spoolbuddy.modal.assignPendingInsert`,`Assigned. Slot will configure when you insert the spool.`):v(`spoolbuddy.modal.assignSuccess`,`Assigned!`)),y.invalidateQueries({queryKey:[`slotPresets`]}),y.invalidateQueries({queryKey:[`spool-assignments`]}),y.invalidateQueries({queryKey:[`spoolman-slot-assignments`]}),y.invalidateQueries({queryKey:[`spoolman-slot-assignments-all`]}),y.invalidateQueries({queryKey:[`inventory-spools`]}),y.invalidateQueries({queryKey:[`spoolman-inventory-spools`]}),setTimeout(()=>t(),n?2500:1500)},onError:e=>{T(`error`),C(e instanceof Error?e.message:v(`spoolbuddy.modal.assignError`,`Failed to assign spool.`))}}),Y=J.isPending,De=(0,d.useCallback)((e,t)=>{if(e===254||e===255){let n=e===254?254:254+t;return U.find(e=>(e.id??254)===n)||null}return V.find(t=>t.id===e)?.tray?.find(e=>e.id===t)||null},[V,U]),X=(0,d.useCallback)((e,t)=>e<=3?`${p(e)} ${v(`ams.slot`,`Slot`)} ${t+1}`:e>=128&&e<=135?p(e):W?e===254||e===255&&t===0?v(`printers.extL`,`Ext-L`):v(`printers.extR`,`Ext-R`):v(`printers.ext`,`Ext`),[v,W]),Z=(0,d.useCallback)((e,t)=>{T(`info`),C(v(`spoolbuddy.modal.assigning`,`Configuring slot...`)),J.mutate({amsId:e,trayId:t})},[J,v]),Q=(0,d.useCallback)((e,t)=>{if(!Y){if(!L?.disable_filament_warnings){let r=De(e,t);if(r&&!m(r)){let i=r.tray_sub_brands||r.tray_type||``,a=fe(n.material,i),o=n.slicer_filament_name||n.slicer_filament,s=r.tray_type||``,c=pe(o,s);if(a!==`exact`){let r;r=a===`none`&&!c?`material_profile`:a===`partial`&&!c?`partial_profile`:a===`none`?`material`:`partial`;let l=X(e,t);j({amsId:e,trayId:t}),k({type:r,spoolMaterial:n.material||``,trayMaterial:i||``,spoolProfile:o||void 0,trayProfile:s||void 0,location:l}),D(!0);return}}}Z(e,t)}},[Y,L?.disable_filament_warnings,n,De,X,Z]),Oe=(0,d.useCallback)((e,t)=>{if(!Y){if(N){S({amsId:e,trayId:t}),C(null),T(null);return}Q(e,t)}},[N,Y,Q]),ke=(0,d.useCallback)(()=>{x&&Q(x.amsId,x.trayId)},[Q,x]),Ae=(0,d.useCallback)(()=>{A&&(D(!1),k(null),Z(A.amsId,A.trayId),j(null))},[A,Z]),je=(0,d.useMemo)(()=>{let e=[];for(let t of H){let n=t.tray?.[0]||{id:0,tray_color:null,tray_type:``,tray_sub_brands:null,tray_id_name:null,tray_info_idx:null,remain:-1,k:null,cali_idx:null,tag_uid:null,tray_uuid:null,nozzle_temp_min:null,nozzle_temp_max:null},r=B[`${t.id}-0`]??null,i=n.remain!=null&&n.remain>=0?n.remain:null,a=r===0&&i!==null&&i>0?null:r;e.push({key:`ht-${t.id}`,label:p(t.id),amsId:t.id,trayId:0,tray:n,isEmpty:m(n),nozzleSide:q(t.id),effectiveFill:a??i})}for(let t of U){let n=t.id??254,r=n-254,i=B[`255-${r}`]??null,a=t.remain!=null&&t.remain>=0?t.remain:null,o=i===0&&a!==null&&a>0?null:i;e.push({key:`ext-${n}`,label:W?n===254?v(`printers.extL`,`Ext-L`):v(`printers.extR`,`Ext-R`):v(`printers.ext`,`Ext`),amsId:255,trayId:r,tray:t,isEmpty:m(t),nozzleSide:W?n===254?`L`:`R`:null,effectiveFill:o??a})}return e},[H,U,W,v,q,B]);if(!e)return null;let Me=le(n)??oe(n.rgba),Ne=x?X(x.amsId,x.trayId):null,$=g===`dialog`;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:$?`fixed inset-0 z-[60] flex items-center justify-center bg-black/45 dark:bg-black/70 p-2 sm:p-4 backdrop-blur-sm animate-fade-in`:`fixed inset-0 z-[60] bg-bambu-dark`,onClick:$&&!Y?t:void 0,children:(0,f.jsxs)(`div`,{ref:b,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`assign-to-ams-title`,tabIndex:-1,className:$?`bg-bambu-dark-secondary text-white font-sans w-full max-w-3xl h-[calc(100vh-1rem)] sm:h-[calc(100vh-2rem)] max-h-[820px] border border-[var(--border-color)] rounded-xl sm:rounded-2xl shadow-2xl flex flex-col overflow-hidden animate-slide-up`:`w-full h-full bg-bambu-dark flex flex-col`,onClick:e=>e.stopPropagation(),children:[(0,f.jsxs)(`div`,{className:`flex items-center justify-between bg-bambu-dark-secondary px-5 py-3 border-b border-[var(--border-color)] shrink-0`,children:[(0,f.jsxs)(`div`,{className:`flex items-center gap-3 min-w-0`,children:[(0,f.jsx)(`div`,{className:`w-7 h-7 rounded-full shrink-0`,style:Me}),(0,f.jsx)(`div`,{className:`min-w-0`,children:(0,f.jsxs)(`h2`,{id:`assign-to-ams-title`,className:`text-sm font-semibold text-white truncate`,children:[v(`spoolbuddy.modal.assignToAmsTitle`,`Assign to AMS`),(0,f.jsxs)(`span`,{className:`font-normal text-bambu-gray-light ml-2`,children:[ae(n.color_name,n.rgba,n.color_name_is_synthesized)||v(`spoolbuddy.spool.unknownColor`),` • `,n.brand,` `,n.material,n.subtype&&` ${n.subtype}`]}),(0,f.jsxs)(`span`,{className:`text-[10px] font-mono text-bambu-gray ml-2 shrink-0`,children:[`#`,n.id]})]})})]}),(0,f.jsx)(`button`,{onClick:t,disabled:Y,"aria-label":v(`common.close`,`Close`),className:`p-2 rounded-lg text-bambu-gray hover:text-white hover:bg-bambu-dark-tertiary transition-colors shrink-0 disabled:opacity-50`,children:(0,f.jsx)(te,{className:`w-5 h-5`})})]}),M&&(0,f.jsxs)(`div`,{className:`bg-bambu-dark-secondary px-5 py-3 border-b border-[var(--border-color)] shrink-0`,children:[(0,f.jsxs)(`label`,{htmlFor:`assign-spool-printer`,className:`flex items-center gap-2 text-sm font-medium text-white mb-2`,children:[(0,f.jsx)(`span`,{className:`inline-flex h-5 w-5 items-center justify-center rounded-full bg-bambu-green text-[11px] font-bold text-[#ffffff]`,children:`1`}),v(`printModal.selectPrinter`)]}),(0,f.jsxs)(`select`,{id:`assign-spool-printer`,"aria-label":v(`printModal.selectPrinter`),value:me??``,onChange:e=>{he(e.target.value?Number(e.target.value):null),S(null),C(null),T(null)},disabled:Y||ve,className:`w-full bg-bambu-dark border border-[var(--border-color)] rounded-lg px-3 py-2.5 text-sm text-white focus:outline-none focus:border-bambu-green disabled:opacity-50`,children:[(0,f.jsx)(`option`,{value:``,children:ve?v(`common.loading`):ye.length===0?v(`common.noPrinters`):v(`printModal.selectPrinter`)}),ye.map(e=>(0,f.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]}),ge&&(0,f.jsxs)(`div`,{className:`mx-5 mt-3 p-3 rounded-lg flex items-center gap-3 border shrink-0 ${w===`info`?`bg-blue-50 border-blue-300 dark:bg-blue-500/10 dark:border-blue-500/40`:w===`success`?`bg-green-50 border-green-300 dark:bg-green-500/10 dark:border-green-500/40`:`bg-red-50 border-red-300 dark:bg-red-500/10 dark:border-red-500/40`}`,children:[w===`info`&&(0,f.jsx)(u,{className:`w-4 h-4 text-blue-600 dark:text-blue-400 animate-spin shrink-0`}),w===`success`&&(0,f.jsx)(ee,{className:`w-4 h-4 text-green-600 dark:text-green-400 shrink-0`}),w===`error`&&(0,f.jsx)(l,{className:`w-4 h-4 text-red-600 dark:text-red-400 shrink-0`}),(0,f.jsx)(`span`,{className:`text-sm ${w===`info`?`text-blue-700 dark:text-blue-300`:w===`success`?`text-green-700 dark:text-green-300`:`text-red-700 dark:text-red-300`}`,children:ge})]}),(0,f.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,f.jsxs)(`section`,{className:`flex min-h-[18rem] flex-col gap-3 bg-bambu-dark p-4 lg:min-h-0 lg:overflow-y-auto`,children:[M&&(0,f.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-medium text-white shrink-0`,children:[(0,f.jsx)(`span`,{className:`inline-flex h-5 w-5 items-center justify-center rounded-full bg-bambu-green text-[11px] font-bold text-[#ffffff]`,children:`2`}),v(`printModal.selectSlot`)]}),P?be?(0,f.jsxs)(`div`,{className:`flex flex-1 items-center justify-center text-bambu-gray-light`,children:[(0,f.jsx)(u,{className:`mr-2 h-5 w-5 animate-spin text-bambu-green`}),v(`common.loading`)]}):we?V.length===0&&U.length===0?(0,f.jsx)(`div`,{className:`flex flex-1 items-center justify-center rounded-xl border border-dashed border-[var(--border-color)] bg-bambu-dark-secondary p-8`,children:(0,f.jsxs)(`div`,{className:`text-center text-bambu-gray`,children:[(0,f.jsx)(ie,{className:`w-12 h-12 mx-auto mb-3 opacity-60`}),(0,f.jsx)(`p`,{className:`text-base text-bambu-gray-light mb-1`,children:v(`spoolbuddy.ams.noData`,`No AMS detected`)}),(0,f.jsx)(`p`,{className:`text-sm`,children:v(`spoolbuddy.ams.connectAms`,`Connect an AMS to see filament slots`)})]})}):(0,f.jsxs)(f.Fragment,{children:[Te.length>0&&(0,f.jsx)(`div`,{className:`grid grid-cols-1 xl:grid-cols-2 gap-3`,children:Te.map(e=>(0,f.jsx)(ce,{unit:e,activeSlot:x?.amsId===e.id?x.trayId:z?.ams_id===e.id?z.tray_id??null:null,onConfigureSlot:(t,n)=>Oe(e.id,n),isDualNozzle:W,nozzleSide:q(e.id),thresholds:Ce,fillOverrides:B},e.id))}),je.length>0&&(0,f.jsx)(`div`,{className:`flex flex-wrap gap-2 shrink-0`,children:je.map(({key:e,label:t,amsId:n,trayId:r,tray:i,isEmpty:a,nozzleSide:o,effectiveFill:s})=>{let c=ue(i.tray_color),l=x?x.amsId===n&&x.trayId===r:!!z&&z.ams_id===n&&z.tray_id===r;return(0,f.jsxs)(`button`,{type:`button`,"aria-pressed":l,title:X(n,r),onClick:()=>Oe(n,r),className:`bg-bambu-dark-secondary border rounded-lg px-3 py-2 hover:bg-bambu-dark-tertiary transition-all flex items-center gap-2 ${l?`ring-2 ring-bambu-green border-bambu-green bg-bambu-green/10`:`border-[var(--border-color)]`} ${Y?`opacity-50 pointer-events-none`:``}`,children:[(0,f.jsx)(`div`,{className:`relative w-10 h-10 shrink-0`,children:a?(0,f.jsx)(`div`,{className:`w-full h-full rounded-full border-2 border-dashed border-gray-500 flex items-center justify-center`,children:(0,f.jsx)(`div`,{className:`w-1.5 h-1.5 rounded-full bg-gray-600`})}):(0,f.jsxs)(`svg`,{viewBox:`0 0 56 56`,className:`w-full h-full`,children:[(0,f.jsx)(`circle`,{cx:`28`,cy:`28`,r:`26`,fill:c}),(0,f.jsx)(`circle`,{cx:`28`,cy:`28`,r:`20`,fill:c,style:{filter:`brightness(0.85)`}}),(0,f.jsx)(`ellipse`,{cx:`20`,cy:`20`,rx:`6`,ry:`4`,fill:`white`,opacity:`0.3`}),(0,f.jsx)(`circle`,{cx:`28`,cy:`28`,r:`8`,fill:`#2d2d2d`}),(0,f.jsx)(`circle`,{cx:`28`,cy:`28`,r:`5`,fill:`#1a1a1a`})]})}),(0,f.jsxs)(`div`,{className:`min-w-0 text-left`,children:[(0,f.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,f.jsx)(`span`,{className:`text-xs text-bambu-gray font-medium`,children:t}),o&&(0,f.jsx)(se,{side:o})]}),(0,f.jsx)(`div`,{className:`text-sm text-white truncate`,children:a?v(`ams.empty`):i.tray_type||`?`})]}),!a&&s!=null&&s>=0&&(0,f.jsx)(`div`,{className:`w-1.5 h-8 bg-bambu-dark-tertiary rounded-full overflow-hidden shrink-0 flex flex-col-reverse`,children:(0,f.jsx)(`div`,{className:`w-full rounded-full`,style:{height:`${s}%`,backgroundColor:ne(s)}})})]},e)})})]}):(0,f.jsx)(`div`,{className:`flex flex-1 items-center justify-center rounded-xl border border-red-300 bg-red-50 p-8 dark:border-red-500/30 dark:bg-red-500/5`,children:(0,f.jsx)(`p`,{className:`text-base text-red-700 dark:text-red-300`,children:v(`spoolbuddy.ams.printerDisconnected`,`Printer disconnected`)})}):(0,f.jsx)(`div`,{className:`flex flex-1 items-center justify-center rounded-xl border border-dashed border-[var(--border-color)] bg-bambu-dark-secondary p-8`,children:(0,f.jsxs)(`div`,{className:`text-center text-bambu-gray`,children:[(0,f.jsx)(ie,{className:`w-12 h-12 mx-auto mb-3 opacity-60`}),(0,f.jsx)(`p`,{className:`text-base text-bambu-gray-light`,children:v(`printModal.selectPrinter`)})]})})]})}),(0,f.jsxs)(`div`,{className:`flex items-center gap-3 bg-bambu-dark-secondary px-5 py-3 border-t border-[var(--border-color)] shrink-0`,children:[N&&(0,f.jsxs)(`div`,{className:`min-w-0 flex-1 text-sm`,children:[(0,f.jsxs)(`span`,{className:`text-bambu-gray`,children:[v(`printModal.selectSlot`),`: `]}),(0,f.jsx)(`span`,{className:Ne?`font-medium text-white`:`text-bambu-gray`,children:Ne||`—`})]}),(0,f.jsx)(`button`,{onClick:t,disabled:Y,className:`px-5 py-2.5 rounded-lg border border-[var(--border-color)] text-sm font-medium bg-bambu-dark-tertiary text-white hover:bg-bambu-dark transition-colors min-h-[44px] disabled:opacity-50`,children:v(w===`success`?`common.close`:`common.cancel`)}),N&&(0,f.jsxs)(`button`,{type:`button`,onClick:ke,disabled:!P||!x||Y||w===`success`,className:`inline-flex min-h-[44px] items-center gap-2 rounded-lg bg-bambu-green px-5 py-2.5 text-sm font-semibold text-[#ffffff] transition-colors hover:bg-bambu-green-dark disabled:cursor-not-allowed disabled:opacity-40`,children:[Y?(0,f.jsx)(u,{className:`h-4 w-4 animate-spin`}):(0,f.jsx)(c,{className:`h-4 w-4`}),v(`inventory.assignSpool`)]})]})]})}),E&&O&&(()=>{let e=``;return O.type===`material`?e=v(`inventory.assignMismatchMessage`,{spoolMaterial:O.spoolMaterial,trayMaterial:O.trayMaterial,location:O.location}):O.type===`partial`?e=v(`inventory.assignPartialMismatchMessage`,{spoolMaterial:O.spoolMaterial,trayMaterial:O.trayMaterial,location:O.location}):O.type===`material_profile`?e=`${v(`inventory.assignMismatchMessage`,{spoolMaterial:O.spoolMaterial,trayMaterial:O.trayMaterial,location:O.location})}\n\n${v(`inventory.assignProfileMismatchMessage`,{spoolProfile:O.spoolProfile||v(`common.unknown`),trayProfile:O.trayProfile||v(`common.unknown`),location:O.location})}`:O.type===`partial_profile`&&(e=`${v(`inventory.assignPartialMismatchMessage`,{spoolMaterial:O.spoolMaterial,trayMaterial:O.trayMaterial,location:O.location})}\n\n${v(`inventory.assignProfileMismatchMessage`,{spoolProfile:O.spoolProfile||v(`common.unknown`),trayProfile:O.trayProfile||v(`common.unknown`),location:O.location})}`),e=`${e}\n\n${v(`inventory.assignReconfigureNote`)}`,(0,f.jsx)(re,{title:v(`inventory.assignMismatchTitle`),message:e,confirmText:v(`inventory.assignMismatchConfirm`),variant:`warning`,overlayZIndex:`z-[70]`,isLoading:J.isPending,onConfirm:Ae,onCancel:()=>{J.isPending||(D(!1),j(null),k(null))}})})()]})}export{_ as t};
|