| 1 |
- import{i as e}from"./chunk-aKtaBQYM.js";import{C as t,O as n,T as r,a as i,w as a}from"./client-D5sDHQfN.js";import{n as o}from"./QueryClientProvider-RTEea2Mk.js";import{t as s}from"./useQuery-CGtzNsic.js";import{t as c}from"./useMutation-Kl2cmi_r.js";import{t as l}from"./useQueries-Ryq2rPkY.js";import{t as u}from"./arrow-left-CyXfDjDU.js";import{t as d}from"./box-ZYqEOjzw.js";import{a as f}from"./info-hj_2aNUa.js";import{n as p}from"./ToastContext-DKTQgyG5.js";import{t as m}from"./loader-circle-D_tGybHN.js";import{t as ee}from"./move-CGH69kM-.js";import{t as te}from"./search-CGgI8arA.js";import{t as h}from"./x-CUdw628F.js";import{n as ne}from"./AuthContext-F8QHEqr7.js";import{n as g,t as _}from"./Card-BehSIsEQ.js";import{t as v}from"./Button-D71ID444.js";import{Dt as re,Kt as ie,Tt as y,cn as ae,on as oe,qn as se,qt as b,wt as x,zt as S}from"./index-nsyp3RII.js";var C=t(`user-minus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),w=e(n(),1),T=a(),ce=100,E=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#14b8a6`,`#3b82f6`,`#8b5cf6`,`#ec4899`,`#6b7280`],le=[`name-asc`,`name-desc`,`count-asc`,`count-desc`],ue=`printerLocations.hideEmpty`,D=`printerLocations.sort`;function de(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r)?r:n}catch{return n}}function fe(e,t){try{localStorage.setItem(e,t)}catch{}}var pe=e=>e.location?.trim()||``;function me({location:e}){return(0,T.jsxs)(`div`,{className:`p-2 rounded-lg bg-bambu-dark relative overflow-hidden flex-shrink-0`,children:[(0,T.jsx)(x.find(t=>t.name===e.icon)?.icon??d,{className:`w-[25px] h-[25px] text-bambu-gray`}),e.color&&(0,T.jsx)(`div`,{className:`absolute top-0 left-0 w-1 h-full`,style:{backgroundColor:e.color}})]})}function he({printer:e,status:t,selected:n,canEdit:i,busy:a,onToggle:o,onMove:s,onRemove:c}){let{t:l}=r(),u=t?.state,d=t?.connected,f=l(d?u===`RUNNING`?`printers.status.printing`:u===`PAUSE`?`printers.status.paused`:u===`FINISH`?`printers.status.finished`:`printers.status.idle`:`printers.status.offline`),p=d?u===`RUNNING`?`bg-orange-500/20 text-orange-400`:u===`PAUSE`?`bg-yellow-500/20 text-yellow-400`:u===`FINISH`?`bg-bambu-green/20 text-bambu-green`:`bg-bambu-dark text-bambu-gray`:`bg-gray-500/20 text-gray-400`;return(0,T.jsxs)(`div`,{className:`flex items-center justify-between gap-2 py-2 px-3 rounded-lg transition-colors ${n?`bg-bambu-green/10 border border-bambu-green/30`:`bg-bambu-dark-secondary hover:bg-bambu-dark`}`,children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3 min-w-0`,children:[i&&(0,T.jsx)(`button`,{type:`button`,onClick:o,className:`text-bambu-gray hover:text-bambu-green transition-colors`,title:l(`printers.locations.selectPrinter`),"aria-label":l(`printers.locations.selectPrinter`),"aria-pressed":n,children:n?(0,T.jsx)(b,{className:`w-4 h-4 text-bambu-green`}):(0,T.jsx)(ie,{className:`w-4 h-4`})}),(0,T.jsx)(`div`,{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${d?u===`RUNNING`||u===`PAUSE`?`bg-orange-500`:`bg-bambu-green`:`bg-gray-500`}`}),(0,T.jsxs)(`div`,{className:`min-w-0`,children:[(0,T.jsx)(`p`,{className:`text-white text-sm font-medium truncate`,children:e.name}),(0,T.jsx)(`p`,{className:`text-xs text-bambu-gray`,children:e.model||l(`printers.status.unknown`)})]})]}),(0,T.jsxs)(`div`,{className:`flex items-center gap-2 flex-shrink-0`,children:[(0,T.jsx)(`span`,{className:`text-xs px-2 py-1 rounded-full ${p}`,children:f}),i&&(0,T.jsx)(v,{variant:`ghost`,size:`sm`,onClick:s,disabled:a,className:`text-bambu-gray hover:text-bambu-green hover:bg-bambu-green/10`,title:l(`printers.locations.move`),"aria-label":l(`printers.locations.move`),children:(0,T.jsx)(ee,{className:`w-3.5 h-3.5`})}),i&&c&&(0,T.jsx)(v,{variant:`ghost`,size:`sm`,onClick:c,disabled:a,className:`text-bambu-gray hover:text-red-400 hover:bg-red-500/10`,title:l(`printers.locations.removeFromLocation`),"aria-label":l(`printers.locations.removeFromLocation`),children:(0,T.jsx)(C,{className:`w-3.5 h-3.5`})})]})]})}function ge({initial:e,saving:t,onSave:n,onCancel:i}){let{t:a}=r(),[o,s]=(0,w.useState)(e?.name??``),[c,l]=(0,w.useState)(e?.icon??``),[u,d]=(0,w.useState)(e?.color??``),f=o.trim().length>0&&!t,p=()=>f&&n({name:o.trim(),icon:c,color:u});return(0,T.jsx)(`div`,{className:`fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4`,children:(0,T.jsx)(_,{className:`w-full max-w-md`,children:(0,T.jsxs)(g,{className:`space-y-4`,children:[(0,T.jsx)(`h2`,{className:`text-lg font-semibold text-white`,children:a(e?`printers.locations.editTitle`:`printers.locations.createTitle`)}),(0,T.jsx)(`input`,{type:`text`,value:o,maxLength:ce,onChange:e=>s(e.target.value),placeholder:a(`printers.locations.namePlaceholder`),"aria-label":a(`printers.locations.namePlaceholder`),className:`w-full px-4 py-2 text-sm bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg text-white placeholder-bambu-gray focus:outline-none focus:ring-2 focus:ring-bambu-green/50 focus:border-bambu-green transition-colors`,autoFocus:!0,onKeyDown:e=>{e.key===`Enter`&&p(),e.key===`Escape`&&i()}}),(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:`text-sm text-bambu-gray mb-2`,children:a(`printers.locations.icon`)}),(0,T.jsx)(y,{value:c,onChange:l})]}),(0,T.jsxs)(`div`,{children:[(0,T.jsx)(`p`,{className:`text-sm text-bambu-gray mb-2`,children:a(`printers.locations.color`)}),(0,T.jsxs)(`div`,{className:`flex gap-2 flex-wrap`,children:[E.map(e=>(0,T.jsx)(`button`,{type:`button`,onClick:()=>d(u===e?``:e),className:`w-8 h-8 rounded-lg transition-all ${u===e?`ring-2 ring-white ring-offset-2 ring-offset-bambu-dark-secondary scale-110`:`hover:scale-105`}`,style:{backgroundColor:e},title:e,"aria-label":e,"aria-pressed":u===e},e)),u&&(0,T.jsx)(`button`,{type:`button`,onClick:()=>d(``),className:`w-8 h-8 rounded-lg border-2 border-bambu-dark-tertiary bg-bambu-dark-secondary text-bambu-gray hover:text-white hover:border-bambu-gray transition-all flex items-center justify-center`,title:a(`printers.locations.noColor`),"aria-label":a(`printers.locations.noColor`),children:(0,T.jsx)(h,{className:`w-3.5 h-3.5`})})]})]}),(0,T.jsxs)(`div`,{className:`flex gap-2 justify-end`,children:[(0,T.jsx)(v,{variant:`secondary`,onClick:i,disabled:t,children:a(`common.cancel`)}),(0,T.jsx)(v,{onClick:p,disabled:!f,children:t?(0,T.jsx)(m,{className:`w-4 h-4 animate-spin`}):a(e?`common.save`:`printers.locations.create`)})]})]})})})}var O=`__none__`;function _e({count:e,printerName:t,locations:n,saving:i,onMove:a,onCancel:o}){let{t:s}=r(),[c,l]=(0,w.useState)(``);return(0,T.jsx)(`div`,{className:`fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4`,children:(0,T.jsx)(_,{className:`w-full max-w-md`,children:(0,T.jsxs)(g,{className:`space-y-4`,children:[(0,T.jsx)(`h2`,{className:`text-lg font-semibold text-white`,children:e===1?s(`printers.locations.moveTitle`):s(`printers.locations.moveTitleMany`,{count:e})}),t&&(0,T.jsx)(`p`,{className:`text-sm text-bambu-gray`,children:t}),(0,T.jsxs)(`select`,{value:c,onChange:e=>l(e.target.value),"aria-label":s(`printers.locations.targetPlaceholder`),className:`w-full px-4 py-2 text-sm bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg text-white focus:outline-none focus:ring-2 focus:ring-bambu-green/50 focus:border-bambu-green transition-colors`,disabled:i,autoFocus:!0,children:[(0,T.jsx)(`option`,{value:``,disabled:!0,children:s(`printers.locations.targetPlaceholder`)}),n.map(e=>(0,T.jsx)(`option`,{value:e.name,children:e.name},e.name)),(0,T.jsx)(`option`,{value:O,children:s(`printers.locations.noLocation`)})]}),(0,T.jsxs)(`div`,{className:`flex gap-2 justify-end`,children:[(0,T.jsx)(v,{variant:`secondary`,onClick:o,disabled:i,children:s(`common.cancel`)}),(0,T.jsx)(v,{onClick:()=>a(c===O?null:c),disabled:i||!c,children:i?(0,T.jsx)(m,{className:`w-4 h-4 animate-spin`}):s(`printers.locations.moveButton`)})]})]})})})}function k(){let e=o(),{t}=r(),{showToast:n}=p(),{hasPermission:a}=ne(),h=a(`printers:update`),[y,x]=(0,w.useState)(``),[C,ce]=(0,w.useState)(()=>de(ue,[`true`,`false`],`false`)===`true`),[E,O]=(0,w.useState)(()=>de(D,le,`name-asc`)),[k,A]=(0,w.useState)(!1),[ve,j]=(0,w.useState)(null),[M,N]=(0,w.useState)(!1),[P,F]=(0,w.useState)(new Set),[I,L]=(0,w.useState)(new Set),[R,z]=(0,w.useState)(null),[B,V]=(0,w.useState)(null),[H,U]=(0,w.useState)(null);(0,w.useEffect)(()=>fe(ue,String(C)),[C]),(0,w.useEffect)(()=>fe(D,E),[E]),(0,w.useEffect)(()=>{M&&j(null)},[M]);let{data:W,isLoading:ye}=s({queryKey:[`printers`],queryFn:i.getPrinters}),{data:G,isLoading:be}=s({queryKey:[`printer-locations`],queryFn:i.getPrinterLocations}),xe=l({queries:(W??[]).map(e=>({queryKey:[`printerStatus`,e.id],queryFn:()=>i.getPrinterStatus(e.id),refetchInterval:3e4}))}),Se=new Map((W??[]).map((e,t)=>[e.id,xe[t]?.data])),K=(0,w.useMemo)(()=>{let e=new Map;for(let t of W??[]){let n=pe(t);e.set(n,[...e.get(n)??[],t])}return e},[W]),q=K.get(``)??[],Ce=(W?.length??0)-q.length,we=(0,w.useMemo)(()=>{let e=y.trim().toLowerCase(),t=(G??[]).filter(t=>(!e||t.name.toLowerCase().includes(e))&&(!C||t.printer_count>0)),n=(e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:`base`});return[...t].sort((e,t)=>{switch(E){case`name-desc`:return n(t,e);case`count-asc`:return e.printer_count-t.printer_count||n(e,t);case`count-desc`:return t.printer_count-e.printer_count||n(e,t);default:return n(e,t)}})},[G,y,C,E]),J=()=>{e.invalidateQueries({queryKey:[`printer-locations`]}),e.invalidateQueries({queryKey:[`printers`]})},Y=e=>n(t(`printers.locations.failed`,{error:e instanceof Error?e.message:String(e)}),`error`),X=c({mutationFn:({value:e,location:t})=>t?i.updatePrinterLocation({name:t.name,...e.name===t.name?{}:{new_name:e.name},icon:e.icon||null,color:e.color||null}):i.createPrinterLocation({name:e.name,icon:e.icon||null,color:e.color||null}),onSuccess:(e,{location:r})=>{J(),r&&ve===r.name&&j(e.name),n(t(r?`printers.locations.saved`:`printers.locations.created`)),z(null)},onError:Y}),Z=c({mutationFn:({ids:e,location:t})=>i.assignPrinterLocation(e,t),onSuccess:({moved:e})=>{J(),n(t(`printers.locations.moved`,{count:e})),L(new Set),V(null)},onError:Y}),Q=c({mutationFn:e=>i.deletePrinterLocations(e),onSuccess:({deleted:e})=>{J(),n(t(`printers.locations.deleted`,{count:e})),F(new Set),N(!1),U(null)},onError:e=>{Y(e),U(null)}}),$=Z.isPending||Q.isPending||X.isPending,Te=(e,t)=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n};if(ye||be)return(0,T.jsx)(`div`,{className:`flex items-center justify-center h-64`,children:(0,T.jsx)(m,{className:`w-8 h-8 text-bambu-green animate-spin`})});let Ee=(H??[]).reduce((e,t)=>e+(G?.find(e=>e.name===t)?.printer_count??0),0),De=e=>({"name-asc":t(`printers.locations.sortNameAsc`),"name-desc":t(`printers.locations.sortNameDesc`),"count-asc":t(`printers.locations.sortCountAsc`),"count-desc":t(`printers.locations.sortCountDesc`)})[e],Oe=(e,t)=>(0,T.jsx)(he,{printer:e,status:Se.get(e.id),selected:I.has(e.id),canEdit:h&&!M,busy:$,onToggle:()=>L(Te(I,e.id)),onMove:()=>V({ids:[e.id],printerName:e.name}),onRemove:t?()=>Z.mutate({ids:[e.id],location:null}):void 0},e.id),ke=q.length>0&&q.every(e=>I.has(e.id));return(0,T.jsxs)(`div`,{className:`p-4 md:p-8 pb-28`,children:[(0,T.jsxs)(se,{to:`/`,className:`inline-flex items-center gap-1 mb-3 text-sm text-bambu-gray hover:text-white transition-colors`,children:[(0,T.jsx)(u,{className:`w-4 h-4`}),` `,t(`printers.locations.backToPrinters`)]}),(0,T.jsxs)(`div`,{className:`mb-4`,children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3 mb-1`,children:[(0,T.jsx)(d,{className:`w-[25px] h-[25px] text-bambu-green`}),(0,T.jsx)(`h1`,{className:`text-2xl font-bold text-white`,children:t(`printers.locations.title`)})]}),(0,T.jsx)(`p`,{className:`text-sm text-bambu-gray`,children:t(`printers.locations.subtitle`,{grouped:Ce,ungrouped:q.length})})]}),(0,T.jsxs)(`div`,{className:`flex flex-wrap gap-3 mb-6`,children:[(0,T.jsxs)(`div`,{className:`relative flex-1 min-w-[12rem]`,children:[(0,T.jsx)(te,{className:`w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-bambu-gray`}),(0,T.jsx)(`input`,{type:`text`,value:y,onChange:e=>x(e.target.value),placeholder:t(`printers.locations.search`),"aria-label":t(`printers.locations.search`),className:`w-full pl-9 pr-4 py-2 text-sm bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg text-white placeholder-bambu-gray focus:outline-none focus:ring-2 focus:ring-bambu-green/50 focus:border-bambu-green transition-colors`})]}),(0,T.jsx)(v,{onClick:()=>ce(!C),variant:C?`primary`:`secondary`,children:t(C?`printers.locations.showEmpty`:`printers.locations.hideEmpty`)}),h&&(0,T.jsxs)(v,{onClick:()=>{F(new Set),N(!M)},variant:M?`primary`:`secondary`,children:[(0,T.jsx)(b,{className:`w-4 h-4 mr-1`}),t(M?`printers.locations.done`:`printers.locations.select`)]}),(0,T.jsxs)(`div`,{className:`relative`,children:[(0,T.jsxs)(v,{onClick:()=>A(!k),variant:`secondary`,"aria-haspopup":`menu`,children:[(0,T.jsx)(f,{className:`w-4 h-4 mr-1 transition-transform ${k?`rotate-180`:``}`}),De(E)]}),k&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`div`,{className:`fixed inset-0 z-40`,onClick:()=>A(!1)}),(0,T.jsx)(`div`,{role:`menu`,className:`absolute right-0 top-full mt-1 z-50 bg-bambu-dark-secondary border border-bambu-dark-tertiary rounded-lg shadow-lg p-1 min-w-[10rem]`,children:le.map(e=>(0,T.jsx)(`button`,{role:`menuitem`,onClick:()=>{O(e),A(!1)},className:`w-full text-left px-3 py-2 text-sm rounded transition-colors ${E===e?`bg-bambu-green text-white`:`text-bambu-gray hover:bg-bambu-dark-tertiary hover:text-white`}`,children:De(e)},e))})]})]}),h&&(0,T.jsxs)(v,{onClick:()=>z({mode:`create`}),children:[(0,T.jsx)(oe,{className:`w-4 h-4 mr-1`}),t(`printers.locations.create`)]})]}),we.length===0&&q.length===0?(0,T.jsx)(_,{children:(0,T.jsx)(g,{className:`text-center py-12 text-bambu-gray`,children:t(y?`printers.locations.noResults`:`printers.locations.none`)})}):(0,T.jsxs)(`div`,{className:`space-y-3`,children:[we.map(e=>{let n=ve===e.name,r=P.has(e.name);return(0,T.jsx)(_,{children:(0,T.jsxs)(g,{className:`p-4`,children:[(0,T.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,T.jsxs)(`button`,{type:`button`,onClick:()=>M?F(Te(P,e.name)):j(n?null:e.name),className:`flex items-center gap-3 flex-1 min-w-0 text-left`,"aria-expanded":M?void 0:n,"aria-pressed":M?r:void 0,children:[M?r?(0,T.jsx)(b,{className:`w-4 h-4 text-bambu-green flex-shrink-0`}):(0,T.jsx)(ie,{className:`w-4 h-4 text-bambu-gray flex-shrink-0`}):(0,T.jsx)(f,{className:`w-4 h-4 text-bambu-gray flex-shrink-0 transition-transform ${n?`rotate-180`:``}`}),(0,T.jsx)(me,{location:e}),(0,T.jsxs)(`div`,{className:`min-w-0`,children:[(0,T.jsx)(`p`,{className:`text-white font-medium truncate`,children:e.name}),(0,T.jsx)(`p`,{className:`text-sm text-bambu-gray`,children:t(`printers.locations.printerCount`,{count:e.printer_count})})]})]}),h&&!M&&(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,T.jsx)(v,{variant:`ghost`,size:`sm`,onClick:()=>z({mode:`edit`,location:e}),disabled:$,className:`text-bambu-gray hover:text-blue-400 hover:bg-blue-500/10`,title:t(`common.edit`),"aria-label":t(`common.edit`),children:(0,T.jsx)(ae,{className:`w-4 h-4`})}),(0,T.jsx)(v,{variant:`ghost`,size:`sm`,onClick:()=>U([e.name]),disabled:$,className:`text-red-500 hover:text-red-400 hover:bg-red-500/10`,title:t(`common.delete`),"aria-label":t(`common.delete`),children:(0,T.jsx)(S,{className:`w-4 h-4`})})]})]}),n&&(0,T.jsx)(`div`,{className:`border-t border-bambu-dark-tertiary pt-3 mt-3 space-y-2`,children:(K.get(e.name)??[]).length===0?(0,T.jsx)(`p`,{className:`text-sm text-bambu-gray text-center py-4`,children:t(`printers.locations.noPrinters`)}):(K.get(e.name)??[]).map(e=>Oe(e,!0))})]})},e.name)}),q.length>0&&(0,T.jsxs)(`div`,{className:`pt-4 border-t border-bambu-dark-tertiary`,children:[(0,T.jsxs)(`div`,{className:`flex items-center justify-between mb-3`,children:[(0,T.jsx)(`h3`,{className:`text-sm font-medium text-bambu-gray`,children:t(`printers.locations.ungroupedPrinters`,{count:q.length})}),h&&!M&&(0,T.jsx)(`button`,{type:`button`,onClick:()=>{let e=new Set(I);q.forEach(t=>ke?e.delete(t.id):e.add(t.id)),L(e)},className:`text-xs text-bambu-green hover:text-bambu-green-light transition-colors`,children:t(ke?`common.deselectAll`:`common.selectAll`)})]}),(0,T.jsx)(`div`,{className:`space-y-2`,children:q.map(e=>Oe(e,!1))})]})]}),h&&!M&&I.size>0&&(0,T.jsxs)(`div`,{className:`fixed bottom-6 left-1/2 -translate-x-1/2 bg-bambu-dark border border-bambu-dark-tertiary rounded-xl shadow-2xl px-6 py-4 flex items-center gap-4 z-40`,children:[(0,T.jsx)(`span`,{className:`text-white text-sm`,children:t(`printers.locations.selected`,{count:I.size})}),(0,T.jsxs)(v,{onClick:()=>V({ids:Array.from(I)}),disabled:$,children:[(0,T.jsx)(ee,{className:`w-4 h-4 mr-1`}),t(`printers.locations.moveButton`)]}),(0,T.jsx)(v,{variant:`ghost`,onClick:()=>L(new Set),disabled:$,children:t(`common.cancel`)})]}),M&&P.size>0&&(0,T.jsxs)(`div`,{className:`fixed bottom-6 left-1/2 -translate-x-1/2 bg-bambu-dark border border-bambu-dark-tertiary rounded-xl shadow-2xl px-6 py-4 flex items-center gap-4 z-40`,children:[(0,T.jsx)(`span`,{className:`text-white text-sm`,children:t(`printers.locations.selected`,{count:P.size})}),(0,T.jsxs)(v,{variant:`danger`,onClick:()=>U(Array.from(P)),disabled:$,children:[(0,T.jsx)(S,{className:`w-4 h-4 mr-1`}),t(`printers.locations.deleteSelected`)]}),(0,T.jsx)(v,{variant:`ghost`,onClick:()=>F(new Set),disabled:$,children:t(`common.cancel`)})]}),R&&(0,T.jsx)(ge,{initial:R.mode===`edit`?R.location:void 0,saving:X.isPending,onSave:e=>X.mutate({value:e,location:R.mode===`edit`?R.location:void 0}),onCancel:()=>z(null)}),B&&(0,T.jsx)(_e,{count:B.ids.length,printerName:B.printerName,locations:G??[],saving:Z.isPending,onMove:e=>Z.mutate({ids:B.ids,location:e}),onCancel:()=>V(null)}),H&&(0,T.jsx)(re,{title:H.length===1?t(`printers.locations.deleteTitle`):t(`printers.locations.deleteTitleMany`,{count:H.length}),message:t(`printers.locations.deleteMessage`,{count:Ee,names:H.join(`, `)}),confirmText:t(`common.delete`),variant:`danger`,isLoading:Q.isPending,onConfirm:()=>Q.mutate(H),onCancel:()=>U(null)})]})}export{k as PrinterLocationsPage};
|