1import{j as e,e as be,m as I,s as W,r as g,E as G,t as He,H as $e,F as Ge,aT as Ze,N as ue,B as T,T as xe,z as Qe,aW as Ye,I as Je,a4 as X,bH as le,aY as de,ar as Xe,S as ea,Y as aa,J as we,M as ta,K as oa,w as na,L as ia,Q as sa,Z as _e,X as ra,ax as ke,$ as la,l as da,C as ca,P as ua,a0 as ma}from"./account-selector.js";import{P as De,f as Ne,g as Ve,v as Le,bl as pa,ad as L,r as U,s as K,t as B,az as ga,J as ba,b4 as ha,aC as ce,aA as va,bm as ye,M as A,K as me,N as ae,ae as fa,af as xa,b3 as je,bn as Pe,ah as wa,aB as ka,b5 as La,aa as Te,ab as Ie,ac as Re,aj as pe,ag as te,a0 as qe,a1 as Fe,a2 as Oe,a3 as Ue,a4 as ya,L as Q,u as oe,S as ja,h as Sa,i as Ca,j as Ea,k as Y,w as za,a5 as Ke,bo as Ma,a7 as Z,a9 as Aa,bi as _a,O as Da,F as Na,l as Va,m as Pa,n as Ta,_ as Ia,o as Ra,$ as qa,p as Fa,q as Oa,an as Ua,ap as Ka,R as Ba,Q as ne,U as Se,bp as Wa,V as Ha,W as $a,X as Ga,Y as Za,bq as Qa,br as Ya,bs as Ja}from"./accounting-orders-table.js";import{O as Xa,o as se,a as et,b as at,e as H,S as tt}from"./chat-inbox.js";import{P as ot}from"./vinted-items-table.js";import{c as nt,l as it,r as st,w as rt,a as lt,m as dt,d as Ce,p as ct}from"./lib.js";import{P as ut}from"./accounting-panel.js";import"./image-editor.js";import"./affiliate-calculator.js";import"./vinted-form.js";import"./smart-agent-v2.js";import"./shopify-to-vinted-csv.js";import"./smart-agent-account-picker.js";import"./vinted-fee-calculator.js";import"./master-global-stats.js";import"./vinted-overview.js";import"./leaderboard.js";function ie({className:t,...d}){return e.jsx("div",{"data-slot":"skeleton",className:be("animate-pulse rounded-md bg-accent",t),...d})}function mt(t){const d=t.unit?` ${t.unit}`:"";return[t.length,t.width].filter(b=>b!=null).map(b=>`${b}${d}`).join(" Ã ")}function F({label:t,value:d}){return d?e.jsxs("div",{className:"grid grid-cols-2 gap-2 py-0.5 text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:t}),e.jsx("span",{className:"font-medium break-words",children:d})]}):null}function pt({text:t}){const d=I(),b=g.useRef(null),[s,n]=g.useState(!1),[l,p]=g.useState(!1);return g.useLayoutEffect(()=>{const o=b.current;o&&!s&&p(o.scrollHeight>o.clientHeight)},[t,s]),e.jsxs("div",{children:[e.jsx("p",{ref:b,className:`whitespace-pre-line text-sm text-muted-foreground blur-sensitive ${s?"max-h-40 overflow-y-auto":"line-clamp-3"}`,children:t}),l&&e.jsx("button",{type:"button",onClick:()=>n(o=>!o),className:"mt-1 text-xs font-medium text-link hover:underline",children:d.formatMessage({id:s?"itemDetails.showLess":"itemDetails.showMore"})})]})}function gt({details:t,fallbackPhoto:d,vintedUrl:b}){const s=I(),n=p=>s.formatMessage({id:p}),l=t.photos.length>0?t.photos:d?[d]:[];return e.jsxs("div",{className:"space-y-3",children:[l.length>0&&e.jsx("div",{className:"flex gap-1.5 overflow-x-auto pb-1",children:l.map(p=>e.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"shrink-0",children:e.jsx("img",{src:p,alt:t.title,className:"h-24 w-20 rounded object-cover"})},p))}),e.jsx("p",{className:"font-semibold leading-snug blur-sensitive",children:t.title}),e.jsx(Le,{}),e.jsxs("div",{children:[e.jsx(F,{label:n("itemDetails.brand"),value:t.brand}),e.jsx(F,{label:n("itemDetails.size"),value:t.size}),e.jsx(F,{label:n("itemDetails.condition"),value:t.condition}),e.jsx(F,{label:n("itemDetails.color"),value:t.colors.join(", ")}),e.jsx(F,{label:n("itemDetails.category"),value:t.category}),t.attributes.map(p=>e.jsx(F,{label:p.label,value:p.values.join(", ")},p.label)),e.jsx(F,{label:n("itemDetails.measurements"),value:t.measurements&&mt(t.measurements)}),e.jsx(F,{label:"ISBN",value:t.isbn}),e.jsx(F,{label:n("itemDetails.packageSize"),value:t.package_size})]}),t.description&&e.jsxs(e.Fragment,{children:[e.jsx(Le,{}),e.jsx(pt,{text:t.description})]}),!t.linked&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:[n("itemDetails.notStored")," ",b&&e.jsxs("a",{href:b,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-link hover:underline",children:[n("itemDetails.viewOnVinted"),e.jsx(G,{className:"h-3 w-3"})]})]})]})}function Be({itemId:t,fallbackPhoto:d,vintedUrl:b,children:s}){const n=I(),{pushEvent:l}=W(),[p,o]=g.useState(!1),[x,a]=g.useState({status:"idle"}),i=g.useRef(null);g.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const r=g.useCallback(async()=>{a({status:"loading"});try{const v=await l("get_order_item_details",{item_id:t});v?.details?a({status:"ok",details:v.details}):a({status:"error"})}catch{a({status:"error"})}},[l,t]),c=v=>{o(v),v&&(x.status==="idle"||x.status==="error")&&r()},m=()=>{i.current&&clearTimeout(i.current),c(!0)},h=()=>{i.current=setTimeout(()=>
1o(!1),100)};return e.jsxs(De,{open:p,onOpenChange:c,children:[e.jsx(Ne,{asChild:!0,onMouseEnter:m,onMouseLeave:h,"aria-label":n.formatMessage({id:"itemDetails.open"}),children:s}),e.jsx(Ve,{side:"right",align:"start",sideOffset:8,className:"w-80",onMouseEnter:m,onMouseLeave:h,children:x.status==="ok"?e.jsx(gt,{details:x.details,fallbackPhoto:d,vintedUrl:b}):x.status==="error"?e.jsx("p",{className:"text-sm text-muted-foreground",children:n.formatMessage({id:"itemDetails.error"})}):e.jsxs("div",{className:"space-y-2",children:[e.jsx(ie,{className:"h-24 w-full"}),e.jsx(ie,{className:"h-4 w-3/4"}),e.jsx(ie,{className:"h-4 w-1/2"}),e.jsx(ie,{className:"h-4 w-2/3"})]})})]})}function bt({orderId:t,invoiceId:d,transactionStatus:b,storedItemCount:s,itemCount:n,accountHasCompany:l,onReissue:p}){const o=I(),{pushEvent:x}=W(),a=pa({invoiceId:d,transactionStatus:b,storedItemCount:s,itemCount:n,accountHasCompany:l}),i=a==="failed"||a==="incomplete"||a==="no_company"?a:null;if(d)return e.jsxs(e.Fragment,{children:[e.jsx(L,{asChild:!0,children:e.jsxs("a",{href:`/dashboard/vinted/invoices/${d}`,target:"_blank",rel:"noopener noreferrer",className:"flex cursor-pointer items-center",children:[e.jsx(G,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"invoice.view",defaultMessage:"View invoice"})]})}),e.jsxs(L,{variant:"destructive",onClick:p,children:[e.jsx(He,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"invoice.reissue",defaultMessage:"Re-issue invoice"})]})]});if(i){const r=i==="failed"?o.formatMessage({id:"invoice.failedTooltip",defaultMessage:"Cancelled orders can't be invoiced."}):i==="no_company"?o.formatMessage({id:"invoice.noCompanyTooltip",defaultMessage:"Assign a company to this Vinted account first â invoices need a company to issue from."}):o.formatMessage({id:"invoice.unavailableTooltip",defaultMessage:"Can't generate invoice â one or more listings on this order have been deleted on Vinted."});return e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:e.jsxs(L,{onSelect:c=>c.preventDefault(),"aria-disabled":"true",className:"cursor-not-allowed opacity-50",children:[e.jsx($e,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"invoice.unavailable",defaultMessage:"Invoice Unavailable"})]})}),e.jsx(B,{side:"left",className:"max-w-xs",children:r})]})}return e.jsxs(L,{onClick:()=>x("issue_invoice",{order_id:t}),children:[e.jsx(Ge,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"invoice.issue",defaultMessage:"Issue invoice"})]})}const ht=(t={})=>{const{onDownloadLabel:d,onGetShippingLabel:b,onAdvancedEdit:s,onEditNote:n,onReissueInvoice:l,readOnly:p=!1}=t,o=I(),{pushEvent:x}=W();return g.useMemo(()=>[ga(),{id:"images",accessorFn:a=>a.items?.length||0,header:()=>e.jsx(Ze,{className:"h-4 w-4 text-muted-foreground"}),cell:({row:a})=>{const i=a.original.items||[],r=i.map(m=>m.thumbnail_url).filter(Boolean);if(r.length===0)return e.jsx("span",{className:"text-muted-foreground",children:"â"});const c=i[0];return i.length===1&&c.thumbnail_url?e.jsx(Be,{itemId:c.id,fallbackPhoto:c.thumbnail_url,vintedUrl:c.vinted_id?ce(c.vinted_id,a.original.account_country_code):null,children:e.jsx("img",{src:c.thumbnail_url,alt:"",className:"h-8 w-8 cursor-pointer rounded object-cover",loading:"lazy"})}):e.jsx(va,{thumbnails:r})},meta:{label:o.formatMessage({id:"column.images"})},enableSorting:!1,size:60},{id:"vinted_transaction_id",accessorKey:"vinted_transaction_id",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.id"})}),cell:({row:a})=>{const i=a.original.vinted_transaction_id,r=a.original.vinted_conversation_id,c=a.original.account_country_code;return r===null?e.jsx("span",{className:"text-xs blur-sensitive",children:i}):e.jsxs("a",{href:ye(r,c),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-xs text-link hover:underline blur-sensitive",children:[i,e.jsx(G,{className:"h-2.5 w-2.5"})]})},meta:{label:o.formatMessage({id:"column.id"})},enableSorting:!0},{id:"order_date",accessorKey:"order_date",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.orderDate"})}),cell:({row:a})=>e.jsx(me,{date:a.getValue("order_date")}),meta:{label:o.formatMessage({id:"column.orderDate"}),variant:"dateRange"},filterFn:ba,enableColumnFilter:!0,enableSorting:!0},{id:"title",accessorKey:"title",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.title"})}),cell:({row:a})=>{const i=a.getValue("title"),r=47,c=i.length>r?`${i.slice(0,r)}...`:i,m=a.original.items||[],h=a.original.account_country_code;if(m.length===1&&m[0].vinted_id){const v=ce(m[0].vinted_id,h);return e.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-link hover:underline blur-sensitive",title:i,children:[c,e.jsx(G,{className:"h-3 w-3 shrink-0"})]})}return e.jsx("span",{className:"blur-sensitive",title:i,children:c})},meta:{label:o.formatMessage({id:"column.title"}),placeholder:o.formatMessage({id:"column.searchOrders"}),variant:"text"},enableColumnFilter:!0,enableSorting:!0},{id:"expand",header:()=>null,cell:({row:a})=>{const i=a.original.items?.length||0,r=a.original.item_count||0,c=i!==r,m=a.getCanExpand(),h=a.original.note,v=h?e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:p?e.jsx("div",{className:"flex h-8 items-center justify-center px-2",children:e.jsx(ue,{className:"h-4 w-4 text-muted-foreground"})}):e.jsx(T,{variant:"outline",size:"sm",className:"h-8 gap-1 px-2",onClick:()=>n?.(a.original),children:e.jsx(ue,{className:"h-4 w-4"})})}),e.jsx(B,{side:"top",className:"max-w-[300px] px-3 py-2 text-xs",children:e.jsx("p",{className:"blur-sensitive",children:h.length>100?`${h.slice(0,100)}...`:h})})]}):null;if(!m&&c&&r>0)return e.jsxs("div",{className:"flex items-center justify-end gap-1",children:[v,e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:e.jsx("div",{className:"flex h-8 items-center justify-center px-2",children:e.jsx(xe,{className:"h-4 w-4 text-amber-500"})})}),e.jsx(B,{side:"top",className:"max-w-[250px] px-3 py-2 text-xs",children:e.jsx("p",{children:o.formatMessage({id:"expand.missingItemsWarning"})})})]})]});if(!m)return v?e.jsx("div",{className:"flex items-center justify-end gap-1",children:v}):null;const E=e.jsxs(T,{variant:"outline",size:"sm",className:"h-8 gap-1 px-2",onClick:a.getToggleExpandedHandler(),"aria-label":a.getIsExpanded()?o.formatMessage({id:"aria.collapseRow"}):o.formatMessage({id:"aria.expandRow"}),children:[a.getIsExpanded()?e.jsx(Qe,{className:"h-4 w-4"}):e.jsx(Ye,{className:"h-4 w-4"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:i}),c&&e.jsx(xe,{className:"h-3.5 w-3.5 text-amber-500"})]});return c?e.jsxs("div",{className:"flex items-center justify-end gap-1",children:[v,e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:E}),e.jsx(B,{side:"top",className:"max-w-[250px] px-3 py-2 text-xs",children:e.jsx("p",{children:o.formatMessage({id:"expand.missingItemsWarning"})})})]})]}):e.jsxs("div",{className:"flex items-center justify-end gap-1",children:[v,E]})},enableSorting:!1,enableHiding:!1,size:100},{id:"skus",accessorFn:a=>a.items?.map(i=>
1i.sku).filter(Boolean).join(", ")||null,header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.skus"})}),cell:({row:a})=>{const i=a.original.items?.map(m=>m.sku).filter(Boolean).join(", ");if(!i)return e.jsx("span",{className:"text-muted-foreground",children:"â"});const r=30,c=i.length>r?`${i.slice(0,r)}...`:i;return e.jsx("span",{className:"blur-sensitive",title:i,children:c})},meta:{label:o.formatMessage({id:"column.skus"})},enableSorting:!0},{id:"locations",accessorFn:a=>a.items?.map(i=>i.location).filter(Boolean).join(", ")||null,header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.locations"})}),cell:({row:a})=>{const i=a.original.items?.map(m=>m.location).filter(Boolean).join(", ");if(!i)return e.jsx("span",{className:"text-muted-foreground",children:"â"});const r=30,c=i.length>r?`${i.slice(0,r)}...`:i;return e.jsx("span",{className:"blur-sensitive",title:i,children:c})},meta:{label:o.formatMessage({id:"column.locations"})},enableSorting:!1},{id:"transaction_user_status",accessorKey:"transaction_user_status",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.transactionStatus"})}),cell:({row:a})=>{const i=a.getValue("transaction_user_status"),r=fa[i]||"",c=`transactionStatus.${i}`,m=o.messages[c]?o.formatMessage({id:c}):i;return e.jsx(ae,{className:r,children:m})},meta:{label:o.formatMessage({id:"column.transactionStatus"}),variant:"select",options:[{label:o.formatMessage({id:"transactionStatus.failed"}),value:"failed"},{label:o.formatMessage({id:"transactionStatus.needs_action"}),value:"needs_action"},{label:o.formatMessage({id:"transactionStatus.waiting"}),value:"waiting"},{label:o.formatMessage({id:"transactionStatus.completed"}),value:"completed"}]},enableColumnFilter:!0,enableSorting:!1},{id:"normalized_status",accessorKey:"normalized_status",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.status"})}),cell:({row:a})=>{const i=a.original.normalized_status,r=a.original.status;if(!i)return e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:e.jsx("span",{className:"cursor-default",children:e.jsx(ae,{variant:"outline",children:o.formatMessage({id:"orderStatus.unknown"})})})}),e.jsx(B,{side:"top",className:"max-w-[300px] px-3 py-2 text-xs",children:e.jsx("p",{children:r})})]});const c=xa[i]||"",m=`orderStatus.${i}`,h=o.messages[m]?o.formatMessage({id:m}):i;return e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:e.jsx("span",{className:"cursor-default",children:e.jsx(ae,{className:c,children:h})})}),e.jsx(B,{side:"top",className:"max-w-[300px] px-3 py-2 text-xs",children:e.jsx("p",{children:r})})]})},meta:{label:o.formatMessage({id:"column.status"}),variant:"select",options:[{label:o.formatMessage({id:"orderStatus.payment_received"}),value:"payment_received"},{label:o.formatMessage({id:"orderStatus.label_ordering"}),value:"label_ordering"},{label:o.formatMessage({id:"orderStatus.label_failed"}),value:"label_failed"},{label:o.formatMessage({id:"orderStatus.label_sent"}),value:"label_sent"},{label:o.formatMessage({id:"orderStatus.packed"}),value:"packed"},{label:o.formatMessage({id:"orderStatus.shipped"}),value:"shipped"},{label:o.formatMessage({id:"orderStatus.ready_for_pickup"}),value:"ready_for_pickup"},{label:o.formatMessage({id:"orderStatus.delivered"}),value:"delivered"},{label:o.formatMessage({id:"orderStatus.completed"}),value:"completed"},{label:o.formatMessage({id:"orderStatus.returning"}),value:"returning"},{label:o.formatMessage({id:"orderStatus.suspended"}),value:"suspended"},{label:o.formatMessage({id:"orderStatus.cancelled"}),value:"cancelled"}]},filterFn:(a,i,r)=>{if(!r||Array.isArray(r)&&r.length===0)return!0;const c=a.getValue(i);return c?Array.isArray(r)?r.includes(c):c===r:!1},enableColumnFilter:!0,enableSorting:!1},{id:"order_event",accessorFn:a=>a.events?.[0]?.type??null,header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.orderEvent"})}),cell:({row:a})=>{const i=a.original.events??[],r=i[0];if(!r)return e.jsx("span",{className:"text-muted-foreground",children:"â"});const c=[...i].reverse(),m=et[r.type];return e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:e.jsx("span",{className:"cursor-default",children:e.jsx(ae,{variant:m?"default":"outline",className:m,children:se(o,r.type)})})}),e.jsx(B,{side:"top",className:"max-w-[340px] px-3 py-2 text-xs",children:e.jsx("ol",{className:"space-y-1.5",children:c.map((h,v)=>e.jsxs("li",{className:"flex items-center justify-between gap-3",children:[e.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:be("h-1.5 w-1.5 shrink-0 rounded-full",at[h.type]??"bg-primary")}),se(o,h.type)]}),e.jsx("span",{className:"shrink-0 text-muted-foreground",children:o.formatDate(new Date(h.at),{dateStyle:"short",timeStyle:"short"})})]},v))})})]})},meta:{label:o.formatMessage({id:"column.orderEvent"}),variant:"select",options:Xa.map(a=>({label:se(o,a),value:a}))},enableColumnFilter:!0,enableSorting:!1},{id:"payout",accessorKey:"payout",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.payout"})}),cell:({row:a})=>e.jsx(je,{value:a.original.payout,currency:a.original.currency}),meta:{label:o.formatMessage({id:"column.payout"})},enableSorting:!0},{id:"total_cost",accessorKey:"total_cost",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.totalCost"})}),cell:({row:a})=>e.jsx(je,{value:a.original.total_cost,currency:a.original.currency}),meta:{label:o.formatMessage({id:"column.totalCost"})},enableSorting:!1},{id:"gross_profit",accessorKey:"gross_profit",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.grossProfit"})}),cell:({row:a})=>e.jsx(Pe,{value:a.original.gross_profit,currency:a.original.currency}),meta:{label:o.formatMessage({id:"column.grossProfit"})},enableSorting:!1},{id:"carrier_name",accessorKey:"carrier_name",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.carrier"})}),cell:({row:a})=>{const i=a.getValue("carrier_name");if(!i)return e.jsx("span",{className:"text-muted-foreground",children:"â"});const r=i.replace(/_(ad|digital)$/i,"");return e.jsx("span",{className:"blur-sensitive",children:r})},meta:{label:o.formatMessage({id:"column.carrier"})},enableSorting:!0},{id:"tracking",accessorKey:"tracking_code",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.tracking"})}),cell:({row:a})=>e.jsx(wa,{trackingCode:a.original.tracking_code,trackingUrl:a.original.tracking_url,shippingLabelUrl:a.original.shipping_label_url}),meta:{label:o.formatMessage({id:"column.tracking"})},enableSorting:!1},{id:"status_updated_at",accessorKey:"status_updated_at",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.lastUpdated"})}),cell:({row:a})=>e.jsx(me,{date:a.getValue("status_updated_at")}),meta:{label:o.formatMessage({id:"column.lastUpdated"}),variant:"dateRange"},enableColumnFilter:!0,enableSorting:!0},{id:"shipping_deadline_date",accessorKey:"shipping_deadline_date",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.shippingDeadline"})}),cell:({row:a})=>e.jsx(me,{date:a.getValue("shipping_deadline_date")}),meta:{label:o.formatMessage({id:"column.shippingDeadline"})},enableSorting:!0},{id:"account_login",accessorKey:"account_login",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.account"})}),cell:({row:a})=>e.jsx(ka,{login:a.getValue("account_login"),vintedId:a.original.account_vinted_id,countryCode:a.original.account_country_code}),meta:{label:o.formatMessage({id:"column.account"}),variant:"text",icon:ha},filterFn:(a,i,r)=>{if(!r||Array.isArray(r)&&r.length===0)return!0;const c=a.getValue(i);return Array.isArray(r)?r.includes(c):c.toLowerCase().includes(r.toLowerCase())},enableColumnFilter:!0,enableSorting:!0},{id:"customer_login",accessorKey:"customer_login",header:({column:a})=>e.jsx(A,{column:a,label:o.formatMessage({id:"column.customer"})}),cell:({row:a})=>e.jsx(La,{login:a.getValue("customer_login"),vintedId:a.original.customer_vinted_id,countryCode:a.original.customer_country_code}),meta:{label:o.formatMessage({id:"column.customer"}),placeholder:o.formatMessage({id:"column.searchCustomer"}),variant:"text"},enableColumnFilter:!0,enableSorting:!0},...p?[]:[{id:"actions",header:()=>null,cell:({row:a})=>{const i=a.original.shipping_label_url,r=a.original.vinted_conversation_id,c=a.original.account_country_code,m=a.original.normalized_status,h=m==="label_sent",v=m==="packed",E=()=>{x("mark_as_packed",{order_ids:[a.original.id]})},_=()=>{x("unpack_orders",{order_ids:[a.original.id]})};return e.jsxs(Te,{children:[e.jsx(Ie,{asChild:!0,children:e.jsx(T,{variant:"outline",size:"sm",className:"h-8 w-8 p-0","aria-label":o.formatMessage({id:"aria.openMenu"}),children:e.jsx(Je,{className:"h-4 w-4"})})}),e.jsxs(Re,{align:"end",children:[h?e.jsxs(L,{onClick:E,children:[e.jsx(X,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.markAsPacked"})]}):e.jsxs(L,{disabled:!0,children:[e.jsx(X,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.markAsPacked"})]}),v?e.jsxs(L,{onClick:_,children:[e.jsx(le,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.unpack"})]}):e.jsxs(L,{disabled:!0,children:[e.jsx(le,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.unpack"})]}),e.jsx(pe,{}),i?e.jsxs(L,{onClick:()=>d?.(a.original),children:[e.jsx(de,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.downloadLabel"})]}):e.jsxs(L,{disabled:!0,children:[e.jsx(de,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.noLabel"})]}),(m==="payment_received"||m==="label_failed")&&!i&&a.original.connected&&r?e.jsxs(L,{onClick:()=>b?.(a.original),children:[e.jsx(X,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"shippingLabel.action"})]}):null,e.jsx(pe,{}),a.original.connected&&r?e.jsx(L,{asChild:!0,children:e.jsxs("a",{href:`/dashboard/vinted/chat/${a.original.account_id}/${r}?thread_only=1`,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(Xe,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.openInChat"})]})}):null,r?e.jsx(L,{asChild:!0,children:e.jsxs("a",{href:ye(r,c),target:"_blank",rel:"noopener noreferrer",children:[e.jsx(G,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.openOnVinted"})]})}):e.jsxs(L,{disabled:!0,children:[e.jsx(G,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.noConversation"})]}),e.jsx(pe,{}),e.jsxs(L,{onClick:()=>n?.(a.original),children:[e.jsx(ue,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.editNote"})]}),e.jsxs(L,{onClick:()=>s?.(a.original),children:[e.jsx(ea,{className:"mr-2 h-4 w-4"}),o.formatMessage({id:"actions.advancedEdit"})]}),e.jsx(bt,{orderId:a.original.id,invoiceId:a.original.invoice_id,transactionStatus:a.original.transaction_user_status,storedItemCount:a.original.items?.length||0,itemCount:a.original.item_count,accountHasCompany:a.original.account_has_company,onReissue:()=>l?.(a.original)})]})]})},enableSorting:!1,enableHiding:!1,size:40}]],[o,d,b,s,n,l,x,p])};function re(t){if(!t||typeof t!="object")return!1;const d=t;return typeof d.x=="number"&&typeof d.y=="number"&&typeof d.width=="number"&&typeof d.height=="number"&&typeof d.rotate=="number"}function vt(t){return re(t?.crop_config_secondary)}function We({open:t,onOpenChange:d,selectedOrders:b,onComplete:s}){const n=I(),{pushEvent:l}=W(),[p,o]=g.useState(!1),[x,a]=g.useState(!1),[i,r]=g.useState(0),[c,m]=g.useState(""),[h,v]=g.useState({}),[E,_]=te("download_labels_crop",!0),[D,V]=te("download_labels_write_info",!0),[P,u]=te("download_labels_merge",!0),[M,N]=te("download_labels_annotations_config",null),[z,w]=g.useState(!1),j=g.useMemo(()=>b.filter(C=>C.shipping_label_url),[b]);g.useEffect(()=>{if(!t)return;w(!1),(async()=>{a(!0);try{const R=await l("get_extension_settings",{});if(M===null&&R?.label_annotations_config&&N(R.label_annotations_config),j.length>0){const S=j.map(y=>y.id);
1console.log("[DownloadLabelsModal] Fetching label configs for order_ids:",S);const k=await l("get_label_configs",{order_ids:S});console.log("[DownloadLabelsModal] Response from get_label_configs:",k),k?.configs?(v(k.configs),console.log("[DownloadLabelsModal] Label configs set:",k.configs)):console.warn("[DownloadLabelsModal] No configs in response")}}catch(R){console.error("[DownloadLabelsModal] Failed to fetch configs:",R)}finally{a(!1)}})()},[t,j,l]);const f=async()=>{if(j.length!==0){o(!0),r(0),console.log("[DownloadLabelsModal] Starting download with options:",{cropLabels:E,writeInfo:D,mergeLabels:P}),console.log("[DownloadLabelsModal] Label configs available:",h);try{const C=[],R=j.length;for(let S=0;S<j.length;S++){const k=j[S];if(!k.shipping_label_url)continue;const y=h[k.id];console.log(`[DownloadLabelsModal] Order ${k.id} config:`,y),m(n.formatMessage({id:"modal.downloadLabels.fetchingLabel"},{current:S+1,total:R})),r((S+1)/R*80);try{const O=await fetch(k.shipping_label_url);if(!O.ok){console.error(`Failed to fetch label for order ${k.id}`);continue}const ve=await O.arrayBuffer(),$=D?xt(k,M??"transaction_id"):null;if(E&&vt(y)){console.log(`[DownloadLabelsModal] Order ${k.id} - Using multi-crop for double label`);const q=[];if(re(y?.crop_config)&&q.push({cropConfig:y.crop_config,annotationsConfig:$&&y?.annotations_config?{text:$,x:y.annotations_config.x,y:y.annotations_config.y}:void 0}),re(y?.crop_config_secondary)&&q.push({cropConfig:y.crop_config_secondary,annotationsConfig:$&&y?.annotations_config_secondary?{text:$,x:y.annotations_config_secondary.x,y:y.annotations_config_secondary.y}:void 0}),q.length>0){const ee=await nt(ve,q,!0,k.carrier_name);C.push(ee)}}else{const q=await it(ve,k.carrier_name);if(st(q),D&&y?.annotations_config){const{x:ee,y:fe}=y.annotations_config;console.log(`[DownloadLabelsModal] Order ${k.id} - Writing annotations:`,{x:ee,y:fe,text:$}),$&&await rt(q,{text:$,x:ee,y:fe})}E&&re(y?.crop_config)&&(console.log(`[DownloadLabelsModal] Order ${k.id} - Applying crop:`,y.crop_config),lt(q,y.crop_config)),C.push(q)}}catch(O){console.error(`Failed to process label for order ${k.id}:`,O)}}if(C.length===0){m(n.formatMessage({id:"modal.downloadLabels.noLabelsDownloaded"}));return}if(P&&C.length>1){m(n.formatMessage({id:"modal.downloadLabels.merging"},{count:C.length})),r(90);const S=await dt(C,25),k=Ma(new Date,"yyyy-MM-dd");r(95);for(const y of S){const O=S.length===1?`${k}_labels_${C.length}.pdf`:`${k}_labels_${y.startIndex}-${y.endIndex}.pdf`;Ce(y.blob,O)}}else{m(n.formatMessage({id:"modal.downloadLabels.downloadingIndividual"})),r(90);for(let S=0;S<C.length;S++){const k=await ct(C[S]),O=`label_${j[S].vinted_transaction_id}.pdf`;Ce(k,O)}}r(100),m(n.formatMessage({id:"modal.downloadLabels.complete"})),z&&l("mark_as_packed",{order_ids:j.map(S=>S.id)}),await new Promise(S=>setTimeout(S,500)),s(),d(!1)}catch(C){console.error("Failed to download labels:",C),m(n.formatMessage({id:"modal.downloadLabels.error"}))}finally{o(!1),r(0),m("")}}};return e.jsx(qe,{open:t,onOpenChange:d,children:e.jsxs(Fe,{className:"sm:max-w-md",children:[e.jsxs(Oe,{children:[e.jsx(Ue,{children:n.formatMessage({id:"modal.downloadLabels.title"})}),e.jsx(ya,{children:n.formatMessage({id:"modal.downloadLabels.description"},{count:j.length})})]}),e.jsxs("div",{className:"space-y-4 py-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"crop-labels",className:"flex-1 cursor-pointer",children:n.formatMessage({id:"modal.downloadLabels.cropLabels"})}),e.jsx(oe,{id:"crop-labels",checked:E,onCheckedChange:_})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"write-info",className:"flex-1 cursor-pointer",children:n.formatMessage({id:"modal.downloadLabels.writeInfo"})}),e.jsx(oe,{id:"write-info",checked:D,onCheckedChange:V})]}),D&&e.jsxs("div",{className:"flex items-center justify-between pl-4",children:[e.jsx(Q,{htmlFor:"annotations-config",className:"flex-1 cursor-pointer",children:n.formatMessage({id:"modal.downloadLabels.annotationsConfig"})}),e.jsxs(ja,{value:M??"transaction_id",onValueChange:C=>N(C),children:[e.jsx(Sa,{className:"w-[180px]",children:e.jsx(Ca,{})}),e.jsxs(Ea,{children:[e.jsx(Y,{value:"titles",children:n.formatMessage({id:"modal.downloadLabels.annotationsConfig.titles"})}),e.jsx(Y,{value:"transaction_id",children:n.formatMessage({id:"modal.downloadLabels.annotationsConfig.transactionId"})}),e.jsx(Y,{value:"skus",children:n.formatMessage({id:"modal.downloadLabels.annotationsConfig.skus"})}),e.jsx(Y,{value:"titles_end",children:n.formatMessage({id:"modal.downloadLabels.annotationsConfig.titlesEnd"})}),e.jsx(Y,{value:"skus_locations",children:n.formatMessage({id:"modal.downloadLabels.annotationsConfig.skusLocations"})})]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"merge-labels",className:"flex-1 cursor-pointer",children:n.formatMessage({id:"modal.downloadLabels.mergeLabels"})}),e.jsx(oe,{id:"merge-labels",checked:P,onCheckedChange:u})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center gap-1.5",children:[e.jsx(Q,{htmlFor:"mark-as-packed",className:"cursor-pointer",children:n.formatMessage({id:"modal.downloadLabels.markAsPacked"})}),e.jsx(za,{children:e.jsxs(U,{children:[e.jsx(K,{asChild:!0,children:e.jsx(aa,{className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(B,{className:"max-w-xs",children:e.jsx("p",{children:n.formatMessage({id:"modal.downloadLabels.markAsPacked.tooltip"})})})]})})]}),e.jsx(oe,{id:"mark-as-packed",checked:z,onCheckedChange:w})]}),p&&e.jsxs("div",{className:"space-y-2",children:[e.jsx(ot,{value:i,className:"h-2"}),e.jsx("p",{className:"text-sm text-muted-foreground text-center",children:c})]})]}),e.jsx(Ke,{children:e.jsx(T,{onClick:f,disabled:p||x||j.length===0,children:x?n.formatMessage({id:"modal.downloadLabels.loadingConfigs"}):p?n.formatMessage({id:"modal.downloadLabels.downloading"}):n.formatMessage({id:"modal.downloadLabels.download"})})})]})})}function he(t,d={}){const{lowercase:b=!1,maxWords:s}=d;let n=t.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").replace(/[^\p{Script=Latin}\p{Script=Cyrillic}\p{N} ]+/gu,"").trim().split(/\s+/);s&&(n=n.slice(0,s));const l=n.join("-");return b?l.toLowerCase():l}function ge(t){return he(t,{maxWords:5})}function J(t){return he(t)}function ft(t){return he(t)}function xt(t,d){const b=t.items||[],s=b.length>1?`B${b.length} `:"";if(d==="titles")return`# ${s}${b.map(n=>ge(n.title)).join("+")}`;if(d==="titles_end")return`# ${s}${b.map(n=>ft(n.title).slice(-10)).join("+")}`;if(d==="skus"){const n=b.map(l=>{const p=l.sku;return typeof p=="string"&&p?J(p):ge(l.title)});return`# ${s}${n.join("+")}`}else if(d==="skus_locations"){const n=b.map(l=>{const p=l.sku,o=l.location;
1return typeof p=="string"&&p&&typeof o=="string"&&o?`${J(p)}@${J(o)}`:typeof p=="string"&&p?J(p):typeof o=="string"&&o?J(o):ge(l.title)});return`# ${s}${n.join("+")}`}else return`# ${s}${t.vinted_transaction_id}`}function wt({item:t,currency:d,countryCode:b,readOnly:s=!1}){const n=I(),{pushEvent:l}=W(),[p,o]=g.useState(t.sku||""),[x,a]=g.useState(t.location||""),[i,r]=g.useState(t.purchase_price||""),c=(h,v)=>{s||l("update_order_item",{item_id:t.id,field:h,value:v||null})},m=g.useMemo(()=>{if(!t.selling_price||!i)return null;const h=parseFloat(t.selling_price),v=parseFloat(i);return isNaN(h)||isNaN(v)?null:h-v},[t.selling_price,i]);return e.jsxs("div",{className:"flex items-start gap-2 px-3 py-2",children:[e.jsx(Be,{itemId:t.id,fallbackPhoto:t.thumbnail_url,vintedUrl:t.vinted_id?ce(t.vinted_id,b):null,children:t.thumbnail_url?e.jsx("img",{src:t.thumbnail_url,alt:t.title,className:"h-10 w-10 cursor-pointer rounded object-cover shrink-0"}):e.jsx("div",{className:"h-10 w-10 shrink-0 cursor-pointer rounded bg-muted"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[t.vinted_id?e.jsxs("a",{href:ce(t.vinted_id,b),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 font-medium text-link hover:underline blur-sensitive",children:[t.title,e.jsx(G,{className:"h-3 w-3 shrink-0"})]}):e.jsx("span",{className:"font-medium block blur-sensitive",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-muted-foreground",children:n.formatMessage({id:"item.sold"})}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(Z,{value:t.selling_price||"",readOnly:!0,className:"h-6 w-14 text-xs px-1.5 py-0.5 bg-muted cursor-default",tabIndex:-1}),e.jsx("span",{className:"text-muted-foreground text-xs ml-0.5",children:we(d)})]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-muted-foreground",children:n.formatMessage({id:"item.cost"})}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(Z,{id:`purchase-price-${t.id}`,type:"text",inputMode:"decimal",value:i,onChange:h=>r(Aa(h.target.value)),onBlur:()=>c("purchase_price",i),placeholder:"0",readOnly:s,tabIndex:s?-1:void 0,className:s?"h-6 w-14 text-xs px-1.5 py-0.5 bg-muted cursor-default":"h-6 w-14 text-xs px-1.5 py-0.5 bg-muted","aria-label":n.formatMessage({id:"item.purchasePrice"})}),e.jsx("span",{className:"text-muted-foreground text-xs ml-0.5",children:we(d)})]})]}),e.jsx("div",{className:"w-20",children:e.jsx(Pe,{value:m?.toString()??null,currency:d})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-muted-foreground",children:"#"}),e.jsx(Z,{id:`sku-${t.id}`,value:p,onChange:h=>o(h.target.value),onBlur:()=>c("sku",p),placeholder:"",readOnly:s,tabIndex:s?-1:void 0,className:s?"h-6 w-24 text-xs px-1.5 py-0.5 blur-sensitive bg-muted cursor-default":"h-6 w-24 text-xs px-1.5 py-0.5 blur-sensitive bg-muted","aria-label":n.formatMessage({id:"item.sku"})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ta,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx(Z,{id:`location-${t.id}`,value:x,onChange:h=>a(h.target.value),onBlur:()=>c("location",x),placeholder:"",readOnly:s,tabIndex:s?-1:void 0,className:s?"h-6 w-24 text-xs px-1.5 py-0.5 blur-sensitive bg-muted cursor-default":"h-6 w-24 text-xs px-1.5 py-0.5 blur-sensitive bg-muted","aria-label":n.formatMessage({id:"item.location"})})]}),e.jsx(_a,{itemId:t.id,value:t.supplier_link,event:"update_order_item",labelId:"item.supplierLink",placeholderId:"item.supplierLinkPlaceholder",readOnly:s})]})]})]})}function kt({items:t,currency:d,countryCode:b,readOnly:s=!1}){return e.jsx("div",{className:"bg-muted/30 border-l-2 border-muted-foreground/20 ml-10",children:t.map((n,l)=>e.jsx("div",{className:l!==t.length-1?"border-b border-border/50":"",children:e.jsx(wt,{item:n,currency:d,countryCode:b,readOnly:s})},n.id))})}const Lt={...H.en,"column.orderEvent":"Order flow","column.images":"Images","column.id":"ID","column.transactionId":"Transaction ID","column.customer":"Customer","column.title":"Title","column.payout":"Payout","column.totalCost":"Total Cost","column.grossProfit":"Gross Profit","column.status":"Status","column.carrier":"Carrier","column.tracking":"Tracking","column.skus":"SKUs","column.locations":"Locations","column.transactionStatus":"Transaction status","column.lastUpdated":"Last Updated","column.orderDate":"Order Date","column.shippingDeadline":"Ship By","column.account":"Account","column.searchOrders":"Search title, SKU, location...","column.searchCustomer":"Search customer...","transactionStatus.completed":"completed","transactionStatus.waiting":"waiting","transactionStatus.needs_action":"needs action","transactionStatus.failed":"failed","orderStatus.payment_received":"Payment received","orderStatus.label_ordering":"Label ordering","orderStatus.label_failed":"Label failed","orderStatus.label_sent":"Label sent","orderStatus.packed":"Packed","orderStatus.shipped":"Shipped","orderStatus.ready_for_pickup":"Ready for pickup","orderStatus.delivered":"Delivered","orderStatus.completed":"Completed","orderStatus.returning":"Returning","orderStatus.suspended":"Suspended","orderStatus.cancelled":"Cancelled","orderStatus.unknown":"Unknown","actions.viewDetails":"View Details","actions.advancedEdit":"Advanced Edit","actions.markAsPacked":"Mark as packed","actions.unpack":"Unpack","actions.downloadLabel":"Download Shipping Label","actions.noLabel":"No shipping label available","actions.openInChat":"Open in chat","actions.openOnVinted":"Open on Vinted","actions.noConversation":"No conversation available","actions.viewLabel":"View label","expand.showItems":"Show items","expand.hideItems":"Hide items","expand.missingItemsWarning":"The sold listing was deleted on Vinted before sync, so details could not be retrieved.","item.title":"Title","item.sku":"SKU","item.location":"Location","item.supplierLink":"Supplier Link","item.supplierLinkPlaceholder":"Paste a URL...","item.price":"Price","item.soldFor":"Sold for","item.sold":"Sold","item.cost":"Cost","item.purchasePrice":"Cost","item.profit":"Profit","toolbar.reset":"Reset","toolbar.resetFilters":"Reset filters","toolbar.bulkActions":"Bulk actions","toolbar.showDetail
1s":"Show details","toolbar.hideDetails":"Hide details","toolbar.downloadLabels":"Download labels","toolbar.noLabels":"No labels available","toolbar.markAsPacked":"Mark as packed","toolbar.noPackableOrders":"No packable orders","toolbar.unpack":"Unpack","toolbar.noUnpackableOrders":"No packed orders","toolbar.bulkAdvancedEdit":"Advanced Edit","toolbar.exportCSV":"Export to CSV","csv.transactionId":"Transaction ID","csv.currency":"Currency","csv.customerCountry":"Customer Country","csv.accountVintedId":"Account Vinted ID","csv.accountCountry":"Account Country","csv.originalPrice":"Original Price","csv.subtotal":"Subtotal","csv.subtotalVat":"Subtotal VAT","csv.shippingFee":"Shipping Fee","csv.shippingVat":"Shipping VAT","csv.serviceFee":"Service Fee","csv.vatRate":"VAT Rate","csv.trackingCode":"Tracking Code","csv.trackingUrl":"Tracking URL","csv.itemTitles":"Item Titles","csv.lastUpdated":"Last Updated","modal.downloadLabels.title":"Download Labels","modal.downloadLabels.description":"This will download a total of {count} labels.","modal.downloadLabels.cropLabels":"Crop labels (PDF only)","modal.downloadLabels.writeInfo":"Write extra info on the labels (PDF only)","modal.downloadLabels.annotationsConfig":"Info to write","modal.downloadLabels.annotationsConfig.titles":"Item titles","modal.downloadLabels.annotationsConfig.transactionId":"Transaction ID","modal.downloadLabels.annotationsConfig.skus":"SKUs","modal.downloadLabels.annotationsConfig.titlesEnd":"Item titles (end)","modal.downloadLabels.annotationsConfig.skusLocations":"SKUs & Locations","modal.downloadLabels.mergeLabels":"Merge PDF labels into single file (max 25 per file)","modal.downloadLabels.markAsPacked":"Mark orders as packed after download","modal.downloadLabels.markAsPacked.tooltip":`"Packed" is a status that helps you keep track of what's already handled, so you can see at a glance which orders are done.`,"modal.downloadLabels.download":"Download","modal.downloadLabels.downloading":"Downloading...","modal.downloadLabels.fetchingLabel":"Fetching label {current} of {total}...","modal.downloadLabels.merging":"Merging {count} labels...","modal.downloadLabels.noLabelsDownloaded":"No labels could be downloaded","modal.downloadLabels.downloadingIndividual":"Downloading individual labels...","modal.downloadLabels.complete":"Complete!","modal.downloadLabels.error":"An error occurred","modal.downloadLabels.loadingConfigs":"Loading...","modal.advancedEdit.title":"Advanced Edit","modal.advancedEdit.description":"Manually update order when sync is unavailable","modal.advancedEdit.modifyStatus":"Modify status","modal.advancedEdit.selectStatus":"Select status...","modal.advancedEdit.newPayout":"New payout amount","modal.advancedEdit.reason":"Reason for manual edit","modal.advancedEdit.reasonPlaceholder":"e.g., Account blocked, manual adjustment needed","modal.advancedEdit.reasonRequired":"Reason is required","modal.advancedEdit.originalValues":"Original values from Vinted","modal.advancedEdit.restore":"Restore","modal.advancedEdit.restoring":"Restoring...","modal.advancedEdit.previousReason":"Previous reason","modal.advancedEdit.save":"Save Changes","modal.advancedEdit.saving":"Saving...","modal.advancedEdit.error":"An error occurred","modal.bulkAdvancedEdit.title":"Bulk Advanced Edit","modal.bulkAdvancedEdit.description":"Manually update multiple orders when sync is unavailable","modal.bulkAdvancedEdit.ordersSelected":"{count} orders selected","modal.bulkAdvancedEdit.alreadyPatched":"{count} order(s) already have manual patches that will be overwritten","modal.bulkAdvancedEdit.statusRequired":"Status is required","modal.bulkAdvancedEdit.result":"Patched {patched} orders, {failed} failed","shipping.export":"Shipping CSV","shipping.exportTitle":"Shipping Export","export.accounts":"Accounts","export.allAccounts":"All accounts","export.searchAccounts":"Search accounts...","export.noAccountsFound":"No accounts found","export.dateRange":"Date range","export.today":"Today","export.last7Days":"Last 7 days","export.all":"All","export.custom":"Custom","export.pickRange":"Pick a date range","export.export":"Export","export.queuing":"Preparing...","export.queuedTitle":"Export in progress","export.queuedMessage":"Your CSV is being generated. You will receive an email with the download link shortly. If your tab stays open, the download will start automatically.","export.downloadReady":"Download ready","export.downloadReadyMessage":"Your CSV has been generated and the download should have started automatically.","export.error":"An error occurred","dataTable.cancel":"Cancel","column.note":"Note","actions.editNote":"Edit Note","modal.note.title":"Order Note","modal.note.description":"Add or edit a note for this order","modal.note.placeholder":"Write a note...","modal.note.charCount":"{count}/500","modal.note.save":"Save","modal.note.saving":"Saving...","modal.note.error":"An error occurred","aria.selectAll":"Select all","aria.selectRow":"Select row","aria.actions":"Actions","aria.openMenu":"Open menu","aria.expandRow":"Expand row","aria.collapseRow":"Collapse row","invoice.view":"View invoice","invoice.issue":"Issue invoice","invoice.reissue":"Re-issue invoice","invoice.reissueTitle":"Re-issue this invoice?","invoice.reissueWhen":"Re-issue after editing this company's settings â an issued invoice keeps the values it had when it was created.","invoice.reissueSettings":"Collects VAT · Charge the buyer's country VAT rate · Show Vinted fees · Show Vinted shipping · Footer mentions · Address, legal name and logo","invoice.reissueBody":"The current invoice and its PDF are deleted, and a replacement is issued from the order as it stands today. The replacement takes the next invoice number â the old number is not reused.","invoice.reissueConfirm":"Delete & re-issue","invoice.unavailable":"Invoice Unavailable","invoice.unavailableTooltip":"Can't generate invoice â one or more listings on this order have been deleted on Vinted.","invoice.failedTooltip":"Cancelled orders can't be invoiced.","invoice.noCompanyTooltip":"Assign a company to this Vinted account first â invoices need a company to issue from.","shippingLabel.title":"Get shipping label","shippingLabel.carrierPaid":"Selected and paid for by buyer","shippingLabel.yourAddress":"Your address","shippingLabel.yourContact":"Your contact details","shippingLabel.recipient":"Recipient's address","shippingLabel.recipientNote":"This address is automatically added to the shipping label.","shippingLabel.phoneMissing":"Add a phone number to this account on Vinted before ordering the label.","shippingLabel.action":"Get shipping label","shippingLabel.ordering":"Getting labelâ¦","shippingLabel.generating":"Generating your shipping labelâ¦","shippingLabel.generatingHint":"This can take up to a minute â please keep this window open.","shippingLabel.stillGenerating":"Your label was ordered â it'll appear here shortly.","shippingLabel.sendQuestion":"How will you send this parcel?","shippingLabel.printable":"Printable label","shippingLabel.printableHint":"Print out your own label and attach it to the parcel before sending it.","shippingLabel.digital":"Digital label","shippingLabel.digitalHint":"No printer required. Our shipping instructions explain which drop-off points accept digital labels.","shippingLabel.loading":"Loading shipping optionsâ¦","shippingLabel.loadError":"Could not load the shipping options.","shippingLabel.ordered":"Shipping label ordered.","shippingLabel.orderError":"Could not order the shipping label.","return.readOnlyHint":"This can't be edited in the Dotb chat â update it on your Vinted account."},yt={...H.fr,"column.orderEvent":"Flux de commande","column.images":"Images","column.id":"ID","column.transactionId":"ID Transaction","column.customer":"Client","column.title":"Titre","column.payout":"Paiement","column.totalCost":"Coût total","column.grossProfit":"Bénéfice brut","column.status":"Statut","column.carrier":"Transporteur","column.tracking":"Suivi","column.skus":"SKUs","column.locations":"Emplacements","column.transactionStatus":"Statut transaction","column.lastUpdated":"Dernière mise à jour","column.orderDate":"Date de commande","column.shippingDeadline":"Expédier avant","column.account":"Compte","column.searchOrders":"Rechercher titre, SKU, emplacement...","column.searchCustomer":"Rechercher client...","transactionStatus.completed":"terminé","transactionStatus.waiting":"en attente","transactionStatus.needs_action":"action requise","transactionStatus.failed":"échoué","orderStatus.payment_received":"Paiement reçu","orderStatus.label_ordering":"Création étiquette","orderStatus.label_failed":"Ãtiquette échouée","orderStatus.label_sent":"Ãtiquette envoyée","orderStatus.packed":"Emballé","orderStatus.shipped":"Expédié","orderStatus.ready_for_pickup":"Prêt à récupérer","orderStatus.delivered":"Livré","orderStatus.completed":"Terminé","orderStatus.returning":"En retour","orderStatus.suspended":"Suspendu","orderStatus.cancelled":"Annulé","orderStatus.unknown":"Inconnu","actions.viewDetails":"Voir les détails","actions.advancedEdit":"Ãdition avancée","actions.markAsPacked":"Marquer comme emballé","actions.unpack":"Désemballer","actions.downloadLabel":"Télécharger l'étiquette","actions.noLabel":"Pas d'étiquette disponible","actions.openInChat":"Ouvrir dans le chat","actions.openOnVinted":"Ouvrir sur Vinted","actions.noConversation":"Pas de conversation disponible","actions.viewLabel":"Voir l'étiquette","expand.showItems":"Afficher les articles","expand.hideItems":"Masquer les articles","expand.missingItemsWarning":"L'annonce vendue a été supprimée sur Vinted avant la synchronisation, les détails n'ont pas pu être récupérés.","item.title":"Titre","item.sku":"SKU","item.location":"Emplacement","item.supplierLink":"Lien fournisseur","item.supplierLinkPlaceholder":"Coller une URL...","item.price":"Prix","item.soldFor":"Vendu","item.sold":"Vendu","item.cost":"Coût","item.purchasePrice":"Coût","item.profit":"Bénéfice","toolbar.reset":"Réinitialiser","toolbar.resetFilters":"Réinitialiser les filtres","toolbar.bulkActions":"Actions groupées","toolbar.showDetail
1s":"Afficher les détails","toolbar.hideDetails":"Masquer les détails","toolbar.downloadLabels":"Télécharger les étiquettes","toolbar.noLabels":"Aucune étiquette disponible","toolbar.markAsPacked":"Marquer comme emballé","toolbar.noPackableOrders":"Aucune commande à emballer","toolbar.unpack":"Désemballer","toolbar.noUnpackableOrders":"Aucune commande emballée","toolbar.bulkAdvancedEdit":"Ãdition avancée","toolbar.exportCSV":"Exporter en CSV","csv.transactionId":"ID Transaction","csv.currency":"Devise","csv.customerCountry":"Pays du client","csv.accountVintedId":"ID Vinted du compte","csv.accountCountry":"Pays du compte","csv.originalPrice":"Prix original","csv.subtotal":"Sous-total","csv.subtotalVat":"TVA sous-total","csv.shippingFee":"Frais de port","csv.shippingVat":"TVA livraison","csv.serviceFee":"Frais de service","csv.vatRate":"Taux de TVA","csv.trackingCode":"Code de suivi","csv.trackingUrl":"URL de suivi","csv.itemTitles":"Titres des articles","csv.lastUpdated":"Dernière mise à jour","modal.downloadLabels.title":"Télécharger les étiquettes","modal.downloadLabels.description":"Cela téléchargera un total de {count} étiquettes.","modal.downloadLabels.cropLabels":"Recadrer les étiquettes (PDF uniquement)","modal.downloadLabels.writeInfo":"Ãcrire des infos supplémentaires (PDF uniquement)","modal.downloadLabels.annotationsConfig":"Info à écrire","modal.downloadLabels.annotationsConfig.titles":"Titres des articles","modal.downloadLabels.annotationsConfig.transactionId":"ID de transaction","modal.downloadLabels.annotationsConfig.skus":"SKUs","modal.downloadLabels.annotationsConfig.titlesEnd":"Titres des articles (fin)","modal.downloadLabels.annotationsConfig.skusLocations":"SKUs & Emplacements","modal.downloadLabels.mergeLabels":"Fusionner les PDF en un seul fichier (max 25 par fichier)","modal.downloadLabels.markAsPacked":"Marquer les commandes comme emballées après téléchargement","modal.downloadLabels.markAsPacked.tooltip":"« Emballé » est un statut qui vous aide à suivre ce qui est déjà traité, pour voir en un coup d'Åil quelles commandes sont terminées.","modal.downloadLabels.download":"Télécharger","modal.downloadLabels.downloading":"Téléchargement...","modal.downloadLabels.fetchingLabel":"Récupération de l'étiquette {current} sur {total}...","modal.downloadLabels.merging":"Fusion de {count} étiquettes...","modal.downloadLabels.noLabelsDownloaded":"Aucune étiquette n'a pu être téléchargée","modal.downloadLabels.downloadingIndividual":"Téléchargement des étiquettes individuelles...","modal.downloadLabels.complete":"Terminé !","modal.downloadLabels.error":"Une erreur est survenue","modal.downloadLabels.loadingConfigs":"Chargement...","modal.advancedEdit.title":"Ãdition avancée","modal.advancedEdit.description":"Modifier manuellement la commande lorsque la synchronisation est indisponible","modal.advancedEdit.modifyStatus":"Modifier le statut","modal.advancedEdit.selectStatus":"Sélectionner le statut...","modal.advancedEdit.newPayout":"Nouveau montant de paiement","modal.advancedEdit.reason":"Raison de la modification manuelle","modal.advancedEdit.reasonPlaceholder":"ex: Compte bloqué, ajustement manuel nécessaire","modal.advancedEdit.reasonRequired":"La raison est requise","modal.advancedEdit.originalValues":"Valeurs originales de Vinted","modal.advancedEdit.restore":"Restaurer","modal.advancedEdit.restoring":"Restauration...","modal.advancedEdit.previousReason":"Raison précédente","modal.advancedEdit.save":"Enregistrer les modifications","modal.advancedEdit.saving":"Enregistrement...","modal.advancedEdit.error":"Une erreur est survenue","modal.bulkAdvancedEdit.title":"Ãdition avancée groupée","modal.bulkAdvancedEdit.description":"Modifier manuellement plusieurs commandes lorsque la synchronisation est indisponible","modal.bulkAdvancedEdit.ordersSelected":"{count} commandes sélectionnées","modal.bulkAdvancedEdit.alreadyPatched":"{count} commande(s) ont déjà des modifications manuelles qui seront écrasées","modal.bulkAdvancedEdit.statusRequired":"Le statut est requis","modal.bulkAdvancedEdit.result":"{patched} commandes modifiées, {failed} échouées","shipping.export":"CSV d'expédition","shipping.exportTitle":"Export d'expédition","export.accounts":"Comptes","export.allAccounts":"Tous les comptes","export.searchAccounts":"Rechercher un compte...","export.noAccountsFound":"Aucun compte trouvé","export.dateRange":"Période","export.today":"Aujourd'hui","export.last7Days":"7 derniers jours","export.all":"Tout","export.custom"
1:"Personnalisé","export.pickRange":"Choisir une période","export.export":"Exporter","export.queuing":"Préparation...","export.queuedTitle":"Export en cours","export.queuedMessage":"Votre CSV est en cours de génération. Vous recevrez un e-mail avec le lien de téléchargement sous peu. Si votre onglet reste ouvert, le téléchargement démarrera automatiquement.","export.downloadReady":"Téléchargement prêt","export.downloadReadyMessage":"Votre CSV a été généré et le téléchargement devrait avoir démarré automatiquement.","export.error":"Une erreur est survenue","dataTable.cancel":"Annuler","column.note":"Note","actions.editNote":"Modifier la note","modal.note.title":"Note de commande","modal.note.description":"Ajouter ou modifier une note pour cette commande","modal.note.placeholder":"Ãcrire une note...","modal.note.charCount":"{count}/500","modal.note.save":"Enregistrer","modal.note.saving":"Enregistrement...","modal.note.error":"Une erreur est survenue","aria.selectAll":"Tout sélectionner","aria.selectRow":"Sélectionner la ligne","aria.actions":"Actions","aria.openMenu":"Ouvrir le menu","aria.expandRow":"Développer la ligne","aria.collapseRow":"Réduire la ligne","invoice.view":"Voir la facture","invoice.issue":"Ãmettre une facture","invoice.reissue":"Réémettre la facture","invoice.reissueTitle":"Réémettre cette facture ?","invoice.reissueWhen":"Réémettez après avoir modifié les réglages de cette société â une facture émise conserve les valeurs qu'elle avait à sa création.","invoice.reissueSettings":"TVA collectée · Appliquer le taux de TVA du pays de l'acheteur · Afficher les frais Vinted · Afficher la livraison Vinted · Mentions de bas de page · Adresse, raison sociale et logo","invoice.reissueBody":"La facture actuelle et son PDF sont supprimés, et une nouvelle facture est émise à partir de la commande telle qu'elle est aujourd'hui. Elle prend le numéro de facture suivant â l'ancien numéro n'est pas réutilisé.","invoice.reissueConfirm":"Supprimer et réémettre","invoice.unavailable":"Facture indisponible","invoice.unavailableTooltip":"Impossible de générer la facture â un ou plusieurs articles de cette commande ont été supprimés sur Vinted.","invoice.failedTooltip":"Les commandes annulées ne peuvent pas être facturées.","invoice.noCompanyTooltip":"Attribuez d'abord une société à ce compte Vinted â les factures nécessitent une société pour être émises.","shippingLabel.title":"Obtenir le bordereau d'envoi","shippingLabel.carrierPaid":"Choisi et payé par l'acheteur","shippingLabel.yourAddress":"Ton adresse","shippingLabel.yourContact":"Tes coordonnées","shippingLabel.recipient":"Adresse du destinataire","shippingLabel.recipientNote":"Cette adresse est automatiquement ajoutée au bordereau d'envoi.","shippingLabel.phoneMissing":"Ajoute un numéro de téléphone à ce compte sur Vinted avant de commander le bordereau.","shippingLabel.action":"Obtenir le bordereau d'envoi","shippingLabel.ordering":"Obtention du bordereauâ¦","shippingLabel.generating":"Génération de ton bordereau d'envoiâ¦","shippingLabel.generatingHint":"Cela peut prendre jusqu'à une minute â garde cette fenêtre ouverte.","shippingLabel.stillGenerating":"Ton bordereau a été commandé â il apparaîtra ici sous peu.","shippingLabel.sendQuestion":"Comment vas-tu envoyer ce colis ?","shippingLabel.printable":"Bordereau imprimable","shippingLabel.printableHint":"Imprime ton propre bordereau et colle-le sur le colis avant de l'envoyer.","shippingLabel.digital":"Bordereau numérique","shippingLabel.digitalHint":"Aucune imprimante nécessaire. Nos instructions d'envoi expliquent quels points de dépôt acceptent les bordereaux numériques.","shippingLabel.loading":"Chargement des options d'envoiâ¦","shippingLabel.loadError":"Impossible de charger les options d'envoi.","shippingLabel.ordered":"Bordereau d'envoi commandé.","shippingLabel.orderError":"Impossible de commander le bordereau d'envoi.","return.readOnlyHint":"Ceci ne peut pas être modifié dans le chat Dotb â modifie-le sur ton compte Vinted."},jt={...H.es,"column.orderEvent":"Flujo del pedido","column.images":"Imágenes","column.id":"ID","column.transactionId":"ID Transacción","column.customer":"Cliente","column.title":"TÃtulo","column.payout":"Pago","column.totalCost":"Costo total","column.grossProfit":"Beneficio bruto","column.status":"Estado","column.carrier":"Transportista","column.tracking":"Seguimiento","column.skus":"SKUs","column.locations":"Ubicaciones","column.transactionStatus":"Estado transacción","column.lastUpdated":"Ãltima actualización","column.orderDate":"Fecha de pedido","column.shippingDeadline":"Enviar antes de","column.account":"Cuenta","column.searchOrders":"Buscar tÃtulo, SKU, ubicación...","column.searchCustomer":"Buscar cliente...","transactionStatus.completed":"completado","transactionStatus.waiting":"en espera","transactionStatus.needs_action":"acción requerida","transactionStatus.failed":"fallido","orderStatus.payment_received":"Pago recibido","orderStatus.label_ordering":"Creando etiqueta","orderStatus.label_failed":"Etiqueta fallida","orderStatus.label_sent":"Etiqueta enviada","orderStatus.packed":"Empaquetado","orderStatus.shipped":"Enviado","orderStatus.ready_for_pickup":"Listo para recoger","orderStatus.delivered":"Entregado","orderStatus.completed":"Completado","orderStatus.returning":"En devolución","orderStatus.suspended":"Suspendido","orderStatus.cancelled":"Cancelado","orderStatus.unknown":"Desconocido","actions.viewDetails":"Ver detalles","actions.advancedEdit":"Edición avanzada","actions.markAsPacked":"Marcar como empaquetado","actions.unpack":"Desempaquetar","actions.downloadLabel":"Descargar etiqueta","actions.noLabel":"Sin etiqueta disponible","actions.openInChat":"Abrir en el chat","actions.openOnVinted":"Abrir en Vinted","actions.noConversation":"Sin conversación disponible","actions.viewLabel":"Ver etiqueta","expand.showItems":"Mostrar artÃculos","expand.hideItems":"Ocultar artÃculos","expand.missingItemsWarning":"El anuncio vendido fue eliminado en Vinted antes de la sincronización, no se pudieron recuperar los detalles.","item.title":"TÃtulo","item.sku":"SKU","item.location":"Ubicación","item.supplierLink":"Enlace del proveedor","item.supplierLinkPlaceholder":"Pega una URL...","item.price":"Precio","item.soldFor":"Vendido por","item.sold":"Vendido","item.cost":"Costo","item.purchasePrice":"Costo","item.profit":"Beneficio","toolbar.reset":"Restablecer","toolbar.resetFilters":"Restablecer filtros","toolbar.bulkActions":"Acciones masivas","toolbar.showDetail
1s":"Mostrar detalles","toolbar.hideDetails":"Ocultar detalles","toolbar.downloadLabels":"Descargar etiquetas","toolbar.noLabels":"Sin etiquetas disponibles","toolbar.markAsPacked":"Marcar como empaquetado","toolbar.noPackableOrders":"Sin pedidos para empaquetar","toolbar.unpack":"Desempaquetar","toolbar.noUnpackableOrders":"Sin pedidos empaquetados","toolbar.bulkAdvancedEdit":"Edición avanzada","toolbar.exportCSV":"Exportar a CSV","csv.transactionId":"ID Transacción","csv.currency":"Moneda","csv.customerCountry":"PaÃs del cliente","csv.accountVintedId":"ID Vinted de cuenta","csv.accountCountry":"PaÃs de cuenta","csv.originalPrice":"Precio original","csv.subtotal":"Subtotal","csv.subtotalVat":"IVA subtotal","csv.shippingFee":"Gastos de envÃo","csv.shippingVat":"IVA envÃo","csv.serviceFee":"Tarifa de servicio","csv.vatRate":"Tipo de IVA","csv.trackingCode":"Código de seguimiento","csv.trackingUrl":"URL de seguimiento","csv.itemTitles":"TÃtulos de artÃculos","csv.lastUpdated":"Ãltima actualización","modal.downloadLabels.title":"Descargar etiquetas","modal.downloadLabels.description":"Esto descargará un total de {count} etiquetas.","modal.downloadLabels.cropLabels":"Recortar etiquetas (solo PDF)","modal.downloadLabels.writeInfo":"Escribir info extra en las etiquetas (solo PDF)","modal.downloadLabels.annotationsConfig":"Info a escribir","modal.downloadLabels.annotationsConfig.titles":"TÃtulos de artÃculos","modal.downloadLabels.annotationsConfig.transactionId":"ID de transacción","modal.downloadLabels.annotationsConfig.skus":"SKUs","modal.downloadLabels.annotationsConfig.titlesEnd":"TÃtulos de artÃculos (final)","modal.downloadLabels.annotationsConfig.skusLocations":"SKUs y Ubicaciones","modal.downloadLabels.mergeLabels":"Fusionar PDF en un solo archivo (máx 25 por archivo)","modal.downloadLabels.markAsPacked":"Marcar pedidos como empaquetados después de descargar","modal.downloadLabels.markAsPacked.tooltip":"«Empaquetado» es un estado que te ayuda a saber qué ya está gestionado, para ver de un vistazo qué pedidos están listos.","modal.downloadLabels.download":"Descargar","modal.downloadLabels.downloading":"Descargando...","modal.downloadLabels.fetchingLabel":"Obteniendo etiqueta {current} de {total}...","modal.downloadLabels.merging":"Fusionando {count} etiquetas...","modal.downloadLabels.noLabelsDownloaded":"No se pudieron descargar etiquetas","modal.downloadLabels.downloadingIndividual":"Descargando etiquetas individuales...","modal.downloadLabels.complete":"¡Completado!","modal.downloadLabels.error":"Ocurrió un error","modal.downloadLabels.loadingConfigs":"Cargando...","modal.advancedEdit.title":"Edición avanzada","modal.advancedEdit.description":"Actualizar manualmente el pedido cuando la sincronización no está disponible","modal.advancedEdit.modifyStatus":"Modificar estado","modal.advancedEdit.selectStatus":"Seleccionar estado...","modal.advancedEdit.newPayout":"Nuevo monto de pago","modal.advancedEdit.reason":"Razón de la edición manual","modal.advancedEdit.reasonPlaceholder":"ej: Cuenta bloqueada, ajuste manual necesario","modal.advancedEdit.reasonRequired":"La razón es requerida","modal.advancedEdit.originalValues":"Valores originales de Vinted","modal.advancedEdit.restore":"Restaurar","modal.advancedEdit.restoring":"Restaurando...","modal.advancedEdit.previousReason":"Razón anterior","modal.advancedEdit.save":"Guardar cambios","modal.advancedEdit.saving":"Guardando...","modal.advancedEdit.error":"Ocurrió un error","modal.bulkAdvancedEdit.title":"Edición avanzada masiva","modal.bulkAdvancedEdit.description":"Actualizar manualmente varios pedidos cuando la sincronización no está disponible","modal.bulkAdvancedEdit.ordersSelected":"{count} pedidos seleccionados","modal.bulkAdvancedEdit.alreadyPatched":"{count} pedido(s) ya tienen modificaciones manuales que serán sobrescritas","modal.bulkAdvancedEdit.statusRequired":"El estado es requerido","modal.bulkAdvancedEdit.result":"{patched} pedidos modificados, {failed} fallidos","shipping.export":"CSV de envÃo","shipping.exportTitle":"Exportar envÃos","export.accounts":"Cuentas","export.allAccounts":"Todas las cuentas","export.searchAccounts":"Buscar cuentas...","export.noAccountsFound":"No se encontraron cuentas","export.dateRange":"PerÃodo","export.today":"Hoy","export.last7Days":"Ãltimos 7 dÃas","export.all":"Todo","export.custom"
1:"Personalizado","export.pickRange":"Seleccionar perÃodo","export.export":"Exportar","export.queuing":"Preparando...","export.queuedTitle":"Exportación en progreso","export.queuedMessage":"Su CSV se está generando. Recibirá un correo electrónico con el enlace de descarga en breve. Si su pestaña permanece abierta, la descarga comenzará automáticamente.","export.downloadReady":"Descarga lista","export.downloadReadyMessage":"Su CSV ha sido generado y la descarga deberÃa haber comenzado automáticamente.","export.error":"Ocurrió un error","dataTable.cancel":"Cancelar","column.note":"Nota","actions.editNote":"Editar nota","modal.note.title":"Nota del pedido","modal.note.description":"Agregar o editar una nota para este pedido","modal.note.placeholder":"Escribir una nota...","modal.note.charCount":"{count}/500","modal.note.save":"Guardar","modal.note.saving":"Guardando...","modal.note.error":"Ocurrió un error","aria.selectAll":"Seleccionar todo","aria.selectRow":"Seleccionar fila","aria.actions":"Acciones","aria.openMenu":"Abrir menú","aria.expandRow":"Expandir fila","aria.collapseRow":"Contraer fila","invoice.view":"Ver factura","invoice.issue":"Emitir factura","invoice.reissue":"Reemitir la factura","invoice.reissueTitle":"¿Reemitir esta factura?","invoice.reissueWhen":"Reemite después de cambiar los ajustes de esta empresa: una factura emitida conserva los valores que tenÃa al crearse.","invoice.reissueSettings":"IVA repercutido · Aplicar el tipo de IVA del paÃs del comprador · Mostrar las comisiones de Vinted · Mostrar el envÃo de Vinted · Menciones del pie · Dirección, razón social y logotipo","invoice.reissueBody":"La factura actual y su PDF se eliminan, y se emite una nueva a partir del pedido tal como está hoy. La nueva toma el siguiente número de factura; el número anterior no se reutiliza.","invoice.reissueConfirm":"Eliminar y reemitir","invoice.unavailable":"Factura no disponible","invoice.unavailableTooltip":"No se puede generar la factura â uno o más artÃculos de este pedido se han eliminado en Vinted.","invoice.failedTooltip":"Los pedidos cancelados no pueden facturarse.","invoice.noCompanyTooltip":"Asigna primero una empresa a esta cuenta de Vinted â las facturas necesitan una empresa para emitirse.","shippingLabel.title":"Obtener etiqueta de envÃo","shippingLabel.carrierPaid":"Seleccionado y pagado por el comprador","shippingLabel.yourAddress":"Tu dirección","shippingLabel.yourContact":"Tus datos de contacto","shippingLabel.recipient":"Dirección del destinatario","shippingLabel.recipientNote":"Esta dirección se añade automáticamente a la etiqueta de envÃo.","shippingLabel.phoneMissing":"Añade un número de teléfono a esta cuenta en Vinted antes de pedir la etiqueta.","shippingLabel.action":"Obtener etiqueta de envÃo","shippingLabel.ordering":"Obteniendo etiquetaâ¦","shippingLabel.generating":"Generando tu etiqueta de envÃoâ¦","shippingLabel.generatingHint":"Esto puede tardar hasta un minuto â mantén esta ventana abierta.","shippingLabel.stillGenerating":"Tu etiqueta se ha pedido â aparecerá aquà en breve.","shippingLabel.sendQuestion":"¿Cómo vas a enviar este paquete?","shippingLabel.printable":"Etiqueta imprimible","shippingLabel.printableHint":"Imprime tu propia etiqueta y pégala en el paquete antes de enviarlo.","shippingLabel.digital":"Etiqueta digital","shippingLabel.digitalHint":"No necesitas impresora. Nuestras instrucciones de envÃo indican qué puntos de recogida aceptan etiquetas digitales.","shippingLabel.loading":"Cargando opciones de envÃoâ¦","shippingLabel.loadError":"No se pudieron cargar las opciones de envÃo.","shippingLabel.ordered":"Etiqueta de envÃo pedida.","shippingLabel.orderError":"No se pudo pedir la etiqueta de envÃo.","return.readOnlyHint":"Esto no se puede editar en el chat de Dotb: modifÃcalo en tu cuenta de Vinted."},St={...H.it,"column.orderEvent":"Flusso dell'ordine","column.images":"Immagini","column.id":"ID","column.transactionId":"ID Transazione","column.customer":"Cliente","column.title":"Titolo","column.payout":"Pagamento","column.totalCost":"Costo totale","column.grossProfit":"Profitto lordo","column.status":"Stato","column.carrier":"Corriere","column.tracking":"Tracciamento","column.skus":"SKUs","column.locations":"Posizioni","column.transactionStatus":"Stato transazione","column.lastUpdated":"Ultimo aggiornamento","column.orderDate":"Data ordine","column.shippingDeadline":"Spedire entro","column.account":"Account","column.searchOrders":"Cerca titolo, SKU, posizione...","column.searchCustomer":"Cerca cliente...","transactionStatus.completed":"completato","transactionStatus.waiting":"in attesa","transactionStatus.needs_action":"azione richiesta","transactionStatus.failed":"fallito","orderStatus.payment_received":"Pagamento ricevuto","orderStatus.label_ordering":"Creazione etichetta","orderStatus.label_failed":"Etichetta fallita","orderStatus.label_sent":"Etichetta inviata","orderStatus.packed":"Imballato","orderStatus.shipped":"Spedito","orderStatus.ready_for_pickup":"Pronto per ritiro","orderStatus.delivered":"Conseg
1nato","orderStatus.completed":"Completato","orderStatus.returning":"In reso","orderStatus.suspended":"Sospeso","orderStatus.cancelled":"Annullato","orderStatus.unknown":"Sconosciuto","actions.viewDetails":"Visualizza dettagli","actions.advancedEdit":"Modifica avanzata","actions.markAsPacked":"Segna come imballato","actions.unpack":"Disimballa","actions.downloadLabel":"Scarica etichetta","actions.noLabel":"Nessuna etichetta disponibile","actions.openInChat":"Apri nella chat","actions.openOnVinted":"Apri su Vinted","actions.noConversation":"Nessuna conversazione disponibile","actions.viewLabel":"Visualizza etichetta","expand.showItems":"Mostra articoli","expand.hideItems":"Nascondi articoli","expand.missingItemsWarning":"L'annuncio venduto è stato eliminato su Vinted prima della sincronizzazione, i dettagli non sono stati recuperati.","item.title":"Titolo","item.sku":"SKU","item.location":"Posizione","item.supplierLink":"Link fornitore","item.supplierLinkPlaceholder":"Incolla un URL...","item.price":"Prezzo","item.soldFor":"Venduto a","item.sold":"Venduto","item.cost":"Costo","item.purchasePrice":"Costo","item.profit":"Profitto","toolbar.reset":"Reimposta","toolbar.resetFilters":"Reimposta filtri","toolbar.bulkActions":"Azioni di massa","toolbar.showDetails":"Mostra dettagli","toolbar.hideDetails":"Nascondi dettagli","toolbar.downloadLabels":"Scarica etichette","toolbar.noLabels":"Nessuna etichetta disponibile","toolbar.markAsPacked":"Segna come imballato","toolbar.noPackableOrders":"Nessun ordine da imballare","toolbar.unpack":"Disimballa","toolbar.noUnpackableOrders":"Nessun ordine imballato","toolbar.bulkAdvancedEdit":"Modifica avanzata","toolbar.exportCSV":"Esporta in CSV","csv.transactionId":"ID Transazione","csv.currency":"Valuta","csv.customerCountry":"Paese del cliente","csv.accountVintedId":"ID Vinted account","csv.accountCountry":"Paese account","csv.originalPrice":"Prezzo originale","csv.subtotal":"Subtotale","csv.subtotalVat":"IVA subtotale","csv.shippingFee":"Spese di spedizione","csv.shippingVat":"IVA spedizione","csv.serviceFee":"Commissione servizio","csv.vatRate":"Aliquota IVA","csv.trackingCode":"Codice tracciamento","csv.trackingUrl":"URL tracciamento","csv.itemTitles":"Titoli articoli","csv.lastUpdated":"Ultimo aggiornamento","modal.downloadLabels.title":"Scarica etichette","modal.downloadLabels.description":"Questo scaricherà un totale di {count} etichette.","modal.downloadLabels.cropLabels":"Ritaglia etichette (solo PDF)","modal.downloadLabels.writeInfo":"Scrivi info extra sulle etichette (solo PDF)","modal.downloadLabels.annotationsConfig":"Info da scrivere","modal.downloadLabels.annotationsConfig.titles":"Titoli articoli","modal.downloadLabels.annotationsConfig.transactionId":"ID transazione","modal.downloadLabels.annotationsConfig.skus":"SKU","modal.downloadLabels.annotationsConfig.titlesEnd":"Titoli articoli (fine)","modal.downloadLabels.annotationsConfig.skusLocations":"SKU e Posizioni","modal.downloadLabels.mergeLabels":"Unisci PDF in un singolo file (max 25 per file)","modal.downloadLabels.markAsPacked":"Segna ordini come imballati dopo il download","modal.downloadLabels.markAsPacked.tooltip":`"Imballato" è uno stato che ti aiuta a tenere traccia di ciò che è già stato gestito, così vedi a colpo d'occhio quali ordini sono completati.`,"modal.downloadLabels.download":"Scarica","modal.downloadLabels.downloading":"Scaricamento...","modal.downloadLabels.fetchingLabel":"Recupero etichetta {current} di {total}...","modal.downloadLabels.merging":"Unione di {count} etichette...","modal.downloadLabels.noLabelsDownloaded":"Nessuna etichetta scaricabile","modal.downloadLabels.downloadingIndividual":"Scaricamento etichette singole...","modal.downloadLabels.complete":"Completato!","modal.downloadLabels.error":"Si è verificato un errore","modal.downloadLabels.loadingConfigs":"Caricamento...","modal.advancedEdit.title":"Modifica avanzata","modal.advancedEdit.description":"Aggiorna manualmente l'ordine quando la sincronizzazione non è disponibile","modal.advancedEdit.modifyStatus":"Modifica stato","modal.advancedEdit.selectStatus":"Seleziona stato...","modal.advancedEdit.newPayout":"Nuovo importo di pagamento","modal.advancedEdit.reason":"Motivo della modifica manuale","modal.advancedEdit.reasonPlaceholder":"es: Account bloccato, regolazione manuale necessaria","modal.advancedEdit.reasonRequired":"Il motivo è obbligatorio","modal.advancedEdit.originalValues":"Valori originali da Vinted","modal.advancedEdit.restore":"Ripristina","modal.advancedEdit.restoring":"Ripristino...","modal.advancedEdit.previousReason":"Motivo precedente","modal.advancedEdit.save":"Salva modifiche","modal.advancedEdit.saving":"Salvataggio...","modal.advancedEdit.error":"Si è verificato un errore","modal.bulkAdvancedEdit.t
1itle":"Modifica avanzata di massa","modal.bulkAdvancedEdit.description":"Aggiorna manualmente più ordini quando la sincronizzazione non è disponibile","modal.bulkAdvancedEdit.ordersSelected":"{count} ordini selezionati","modal.bulkAdvancedEdit.alreadyPatched":"{count} ordine/i hanno già modifiche manuali che saranno sovrascritte","modal.bulkAdvancedEdit.statusRequired":"Lo stato è obbligatorio","modal.bulkAdvancedEdit.result":"{patched} ordini modificati, {failed} falliti","shipping.export":"CSV di spedizione","shipping.exportTitle":"Esportazione spedizioni","export.accounts":"Account","export.allAccounts":"Tutti gli account","export.searchAccounts":"Cerca account...","export.noAccountsFound":"Nessun account trovato","export.dateRange":"Periodo","export.today":"Oggi","export.last7Days":"Ultimi 7 giorni","export.all":"Tutto","export.custom":"Personalizzato","export.pickRange":"Seleziona un periodo","export.export":"Esporta","export.queuing":"Preparazione...","export.queuedTitle":"Esportazione in corso","export.queuedMessage":"Il CSV è in fase di generazione. Riceverai un'email con il link di download a breve. Se la scheda rimane aperta, il download inizierà automaticamente.","export.downloadReady":"Download pronto","export.downloadReadyMessage":"Il tuo CSV è stato generato e il download dovrebbe essere partito automaticamente.","export.error":"Si è verificato un errore","dataTable.cancel":"Annulla","column.note":"Nota","actions.editNote":"Modifica nota","modal.note.title":"Nota dell'ordine","modal.note.description":"Aggiungi o modifica una nota per questo ordine","modal.note.placeholder":"Scrivi una nota...","modal.note.charCount":"{count}/500","modal.note.save":"Salva","modal.note.saving":"Salvataggio...","modal.note.error":"Si è verificato un errore","aria.selectAll":"Seleziona tutto","aria.selectRow":"Seleziona riga","aria.actions":"Azioni","aria.openMenu":"Apri menu","aria.expandRow":"Espandi riga","aria.collapseRow":"Comprimi riga","invoice.view":"Vedi fattura","invoice.issue":"Emetti fattura","invoice.reissue":"Riemetti la fattura","invoice.reissueTitle":"Riemettere questa fattura?","invoice.reissueWhen":"Riemetti dopo aver modificato le impostazioni di questa azienda: una fattura emessa mantiene i valori che aveva alla creazione.","invoice.reissueSettings":"IVA applicata · Applicare l'aliquota IVA del paese dell'acquirente · Mostrare le commissioni Vinted · Mostrare la spedizione Vinted · Note a piè di pagina · Indirizzo, ragione sociale e logo","invoice.reissueBody":"La fattura attuale e il suo PDF vengono eliminati e ne viene emessa una nuova basata sull'ordine così com'è oggi. La nuova prende il numero di fattura successivo: il vecchio numero non viene riutilizzato.","invoice.reissueConfirm":"Elimina e riemetti","invoice.unavailable":"Fattura non disponibile","invoice.unavailableTooltip":"Impossibile generare la fattura â uno o più articoli di questo ordine sono stati eliminati su Vinted.","invoice.failedTooltip":"Gli ordini annullati non possono essere fatturati.","invoice.noCompanyTooltip":"Assegna prima un'azienda a questo account Vinted â le fatture richiedono un'azienda per essere emesse.","shippingLabel.title":"Ottieni etichetta di spedizione","shippingLabel.carrierPaid":"Scelto e pagato dall'acquirente","shippingLabel.yourAddress":"Il tuo indirizzo","shippingLabel.yourContact":"I tuoi contatti","shippingLabel.recipient":"Indirizzo del destinatario","shippingLabel.recipientNote":"Questo indirizzo viene aggiunto automaticamente all'etichetta di spedizione.","shippingLabel.phoneMissing":"Aggiungi un numero di telefono a questo account su Vinted prima di ordinare l'etichetta.","shippingLabel.action":"Ottieni etichetta di spedizione","shippingLabel.ordering":"Ottenimento etichettaâ¦","shippingLabel.generating":"Generazione dell'etichetta di spedizioneâ¦","shippingLabel.generatingHint":"Può richiedere fino a un minuto â tieni aperta questa finestra.","shippingLabel.stillGenerating":"L'etichetta è stata ordinata â apparirà qui a breve.","shippingLabel.sendQuestion":"Come invierai questo pacco?","shippingLabel.printable":"Etichetta stampabile","shippingLabel.printableHint":"Stampa la tua etichetta e attaccala al pacco prima di spedirlo.","shippingLabel.digital":"Etichetta digitale","shippingLabel.digitalHint":"Nessuna stampante necessaria. Le nostre istruzioni di spedizione spiegano quali punti di consegna accettano le etichette digitali.","shippingLabel.loading":"Caricamento delle opzioni di spedizioneâ¦","shippingLabel.loadError":"Impossibile caricare le opzioni di spedizione.","shippingLabel.ordered":"Etichetta di spedizione ordinata.","shippingLabel.orderError":"Impossibile ordinare l'etichetta di spedizione.","return.readOnlyHint":"Questo non può essere modificato nella chat Dotb: modificalo sul tuo account Vinted."},Ct={...H.pt,"column.orderEvent":"Fluxo da encomenda","column.images":"Imagens","column.id":"ID","column.transactionId":"ID Transação","column.customer":"Cliente","column.title":"TÃtulo","column.payout":"Pagamento","column.totalCost":"Custo total","column.grossProfit":"Lucro bruto","column.status":"Estado","column.carrier":"Transportadora","column.tracking":"Rastreamento","column.skus":"SKUs","column.locations":"Localizações","column.transactionStatus":"Estado transação","column.lastUpdated":"Ãltima atualização","column.orderDate":"Data do pedido","column.shippingDeadline":"Enviar até","column.account":"Conta","column.searchOrders":"Pesquisar tÃtulo, SKU, localização...","column.searchCustomer":"Pesquisar cliente...","transactionStatus.completed":"concluÃdo","transactionStatus.waiting":"aguardando","transactionStatus.needs_action":"ação necessária","transactionStatus.failed":"falhou","orderStatus.payment_received":"Pagamento recebido","orderStatus.label_ordering":"Criando etiqueta","orderStatus.label_failed":"Etiqueta falhou","orderStatus.label_sent":"Etiqueta enviada","orderStatus.packed":"Embalado","orderStatus.shipped":"Enviado","orderStatus.ready_for_pickup":"Pronto para retirada","orderStatus.delivered":"Entregue","orderStatus.completed":"ConcluÃdo","orderStatus.returning":"Em devolução","orderStatus.suspended":"Suspenso","orderStatus.cancelled":"Cancelado","orderStatus.unknown":"Desconhecido","actions.viewDetails":"Ver detalhes","actions.advancedEdit":"Edição avançada","actions.markAsPacked":"Marcar como embalado","actions.unpack":"Desembalar","actions.downloadLabel":"Baixar etiqueta","actions.noLabel":"Sem etiqueta disponÃvel","actions.openInChat":"Abrir no chat","actions.openOnVinted":"Abrir no Vinted","actions.noConversation":"Sem conversa dis
1ponÃvel","actions.viewLabel":"Ver etiqueta","expand.showItems":"Mostrar itens","expand.hideItems":"Ocultar itens","expand.missingItemsWarning":"O anúncio vendido foi excluÃdo no Vinted antes da sincronização, os detalhes não puderam ser recuperados.","item.title":"TÃtulo","item.sku":"SKU","item.location":"Localização","item.supplierLink":"Link do fornecedor","item.supplierLinkPlaceholder":"Cole um URL...","item.price":"Preço","item.soldFor":"Vendido por","item.sold":"Vendido","item.cost":"Custo","item.purchasePrice":"Custo","item.profit":"Lucro","toolbar.reset":"Redefinir","toolbar.resetFilters":"Redefinir filtros","toolbar.bulkActions":"Ações em massa","toolbar.showDetails":"Mostrar detalhes","toolbar.hideDetails":"Ocultar detalhes","toolbar.downloadLabels":"Baixar etiquetas","toolbar.noLabels":"Sem etiquetas disponÃveis","toolbar.markAsPacked":"Marcar como embalado","toolbar.noPackableOrders":"Sem pedidos para embalar","toolbar.unpack":"Desembalar","toolbar.noUnpackableOrders":"Sem pedidos embalados","toolbar.bulkAdvancedEdit":"Edição avançada","toolbar.exportCSV":"Exportar para CSV","csv.transactionId":"ID Transação","csv.currency":"Moeda","csv.customerCountry":"PaÃs do cliente","csv.accountVintedId":"ID Vinted da conta","csv.accountCountry":"PaÃs da conta","csv.originalPrice":"Preço original","csv.subtotal":"Subtotal","csv.subtotalVat":"IVA subtotal","csv.shippingFee":"Taxa de envio","csv.shippingVat":"IVA envio","csv.serviceFee":"Taxa de serviço","csv.vatRate":"Taxa de IVA","csv.trackingCode":"Código de rastreamento","csv.trackingUrl":"URL de rastreamento","csv.itemTitles":"TÃtulos dos itens","csv.lastUpdated":"Ãltima atualização","modal.downloadLabels.title":"Baixar etiquetas","modal.downloadLabels.description":"Isso baixará um total de {count} etiquetas.","modal.downloadLabels.cropLabels":"Recortar etiquetas (somente PDF)","modal.downloadLabels.writeInfo":"Escrever info extra nas etiquetas (somente PDF)","modal.downloadLabels.annotationsConfig":"Info a escrever","modal.downloadLabels.annotationsConfig.titles":"TÃtulos dos itens","modal.downloadLabels.annotationsConfig.transactionId":"ID da transação","modal.downloadLabels.annotationsConfig.skus":"SKUs","modal.downloadLabels.annotationsConfig.titlesEnd":"TÃtulos dos itens (fim)","modal.downloadLabels.annotationsConfig.skusLocations":"SKUs e Localizações","modal.downloadLabels.mergeLabels":"Mesclar PDFs em um único arquivo (máx 25 por arquivo)","modal.downloadLabels.markAsPacked":"Marcar pedidos como embalados após o download","modal.downloadLabels.markAsPacked.tooltip":'"Embalado" é um estado que ajuda a acompanhar o que já foi tratado, para ver rapidamente quais pedidos estão concluÃdos.',"modal.downloadLabels.download":"Baixar","modal.downloadLabels.downloading":"Baixando...","modal.downloadLabels.fetchingLabel":"Buscando etiqueta {current} de {total}...","modal.downloadLabels.merging":"Mesclando {count} etiquetas...","modal.downloadLabels.noLabelsDownloaded":"Nenhuma etiqueta pôde ser baixada","modal.downloadLabels.downloadingIndividual":"Baixando etiquetas individuais...","modal.downloadLabels.complete":"ConcluÃdo!","modal.downloadLabels.error":"Ocorreu um erro","modal.downloadLabels.loadingConfigs":"Carregando...","modal.advancedEdit.title":"Edição avançada","modal.advancedEdit.description":"Atualizar manualmente o pedido quando a sincronização não está disponÃvel","modal.advancedEdit.modifyStatus":"Modificar estado","modal.advancedEdit.selectStatus":"Selecionar estado...","modal.advancedEdit.newPayout":"Novo valor de pagamento","modal.advancedEdit.reason":"Motivo da edição manual","modal.advancedEdit.reasonPlaceholder":"ex: Conta bloqueada, ajuste manual necessário","modal.advancedEdit.reasonRequired":"O motivo é obrigatório","modal.advancedEdit.originalValues":"Valores originais do Vinted","modal.advancedEdit.restore":"Restaurar","modal.advancedEdit.restoring":"Restaurando...","modal.advancedEdit.previousReason":"Motivo anterior","modal.advancedEdit.save":"Salvar alterações","modal.advancedEdit.saving":"Salvando...","modal.advancedEdit.error":"Ocorreu um erro","modal.bulkAdvancedEdit.t
1itle":"Edição avançada em massa","modal.bulkAdvancedEdit.description":"Atualizar manualmente vários pedidos quando a sincronização não está disponÃvel","modal.bulkAdvancedEdit.ordersSelected":"{count} pedidos selecionados","modal.bulkAdvancedEdit.alreadyPatched":"{count} pedido(s) já possuem modificações manuais que serão sobrescritas","modal.bulkAdvancedEdit.statusRequired":"O estado é obrigatório","modal.bulkAdvancedEdit.result":"{patched} pedidos modificados, {failed} falharam","shipping.export":"CSV de envio","shipping.exportTitle":"Exportar envios","export.accounts":"Contas","export.allAccounts":"Todas as contas","export.searchAccounts":"Pesquisar contas...","export.noAccountsFound":"Nenhuma conta encontrada","export.dateRange":"PerÃodo","export.today":"Hoje","export.last7Days":"Ãltimos 7 dias","export.all":"Tudo","export.custom":"Personalizado","export.pickRange":"Selecionar perÃodo","export.export":"Exportar","export.queuing":"Preparando...","export.queuedTitle":"Exportação em andamento","export.queuedMessage":"O seu CSV está a ser gerado. Receberá um e-mail com o link de download em breve. Se o separador ficar aberto, o download iniciará automaticamente.","export.downloadReady":"Download pronto","export.downloadReadyMessage":"O seu CSV foi gerado e o download deveria ter iniciado automaticamente.","export.error":"Ocorreu um erro","dataTable.cancel":"Cancelar","column.note":"Nota","actions.editNote":"Editar nota","modal.note.title":"Nota do pedido","modal.note.description":"Adicionar ou editar uma nota para este pedido","modal.note.placeholder":"Escrever uma nota...","modal.note.charCount":"{count}/500","modal.note.save":"Salvar","modal.note.saving":"Salvando...","modal.note.error":"Ocorreu um erro","aria.selectAll":"Selecionar tudo","aria.selectRow":"Selecionar linha","aria.actions":"Ações","aria.openMenu":"Abrir menu","aria.expandRow":"Expandir linha","aria.collapseRow":"Recolher linha","invoice.view":"Ver fatura","invoice.issue":"Emitir fatura","invoice.reissue":"Reemitir a fatura","invoice.reissueTitle":"Reemitir esta fatura?","invoice.reissueWhen":"Reemita depois de alterar as definições desta empresa: uma fatura emitida mantém os valores que tinha quando foi criada.","invoice.reissueSettings":"IVA cobrado · Aplicar a taxa de IVA do paÃs do comprador · Mostrar as taxas do Vinted · Mostrar os portes do Vinted · Menções do rodapé · Morada, denominação social e logótipo","invoice.reissueBody":"A fatura atual e o respetivo PDF são eliminados e é emitida uma nova a partir da encomenda tal como está hoje. A nova recebe o número de fatura seguinte â o número antigo não é reutilizado.","invoice.reissueConfirm":"Eliminar e reemitir","invoice.unavailable":"Fatura indisponÃvel","invoice.unavailableTooltip":"Não é possÃvel gerar a fatura â um ou mais itens deste pedido foram excluÃdos no Vinted.","invoice.failedTooltip":"Os pedidos cancelados não podem ser faturados.","invoice.noCompanyTooltip":"Atribua primeiro uma empresa a esta conta Vinted â as faturas precisam de uma empresa para serem emitidas.","shippingLabel.title":"Obter etiqueta de envio","shippingLabel.carrierPaid":"Selecionado e pago pelo comprador","shippingLabel.yourAddress":"O teu endereço","shippingLabel.yourContact":"Os teus contactos","shippingLabel.recipient":"Endereço do destinatário","shippingLabel.recipientNote":"Este endereço é adicionado automaticamente à etiqueta de envio.","shippingLabel.phoneMissing":"Adiciona um número de telefone a esta conta no Vinted antes de encomendar a etiqueta.","shippingLabel.action":"Obter etiqueta de envio","shippingLabel.ordering":"A obter etiquetaâ¦","shippingLabel.generating":"A gerar a tua etiqueta de envioâ¦","shippingLabel.generatingHint":"Pode demorar até um minuto â mantém esta janela aberta.","shippingLabel.stillGenerating":"A tua etiqueta foi encomendada â aparecerá aqui em breve.","shippingLabel.sendQuestion":"Como vais enviar esta encomenda?","shippingLabel.printable":"Etiqueta imprimÃvel","shippingLabel.printableHint":"Imprime a tua própria etiqueta e cola-a na encomenda antes de a enviares.","shippingLabel.digital":"Etiqueta digital","shippingLabel.digitalHint":"Não é necessária impressora. As n
1ossas instruções de envio explicam que pontos de entrega aceitam etiquetas digitais.","shippingLabel.loading":"A carregar as opções de envioâ¦","shippingLabel.loadError":"Não foi possÃvel carregar as opções de envio.","shippingLabel.ordered":"Etiqueta de envio encomendada.","shippingLabel.orderError":"Não foi possÃvel encomendar a etiqueta de envio.","return.readOnlyHint":"Isto não pode ser editado no chat Dotb â altera-o na tua conta Vinted."},Et={...H.nl,"column.orderEvent":"Bestelproces","column.images":"Afbeeldingen","column.id":"ID","column.transactionId":"Transactie ID","column.customer":"Klant","column.title":"Titel","column.payout":"Uitbetaling","column.totalCost":"Totale kosten","column.grossProfit":"Brutowinst","column.status":"Status","column.carrier":"Vervoerder","column.tracking":"Tracking","column.skus":"SKUs","column.locations":"Locaties","column.transactionStatus":"Transactiestatus","column.lastUpdated":"Laatst bijgewerkt","column.orderDate":"Besteldatum","column.shippingDeadline":"Verzenden voor","column.account":"Account","column.searchOrders":"Zoek titel, SKU, locatie...","column.searchCustomer":"Zoek klant...","transactionStatus.completed":"voltooid","transactionStatus.waiting":"wachtend","transactionStatus.needs_action":"actie vereist","transactionStatus.failed":"mislukt","orderStatus.payment_received":"Betaling ontvangen","orderStatus.label_ordering":"Label aanmaken","orderStatus.label_failed":"Label mislukt","orderStatus.label_sent":"Label verzonden","orderStatus.packed":"Ingepakt","orderStatus.shipped":"Verzonden","orderStatus.ready_for_pickup":"Klaar voor ophalen","orderStatus.delivered":"Afgeleverd","orderStatus.completed":"Voltooid","orderStatus.returning":"In retour","orderStatus.suspended":"Opgeschort","orderStatus.cancelled":"Geannuleerd","orderStatus.unknown":"Onbekend","actions.viewDetails":"Details bekijken","actions.advancedEdit":"Geavanceerd bewerken","actions.markAsPacked":"Markeren als ingepakt","actions.unpack":"Uitpakken","actions.downloadLabel":"Label downloaden","actions.noLabel":"Geen label beschikbaar","actions.openInChat":"Openen in chat","actions.openOnVinted":"Openen op Vinted","actions.noConversation":"Geen gesprek beschikbaar","actions.viewLabel":"Label bekijken","expand.showItems":"Artikelen tonen","expand.hideItems":"Artikelen verbergen","expand.missingItemsWarning":"De verkochte advertentie werd verwijderd op Vinted vóór synchronisatie, details konden niet worden opgehaald.","item.title":"Titel","item.sku":"SKU","item.location":"Locatie","item.supplierLink":"Leverancierslink","item.supplierLinkPlaceholder":"Plak een URL...","item.price":"Prijs","item.soldFor":"Verkocht voor","item.sold":"Verkocht","item.cost":"Kosten","item.purchasePrice":"Kosten","item.profit":"Winst","toolbar.reset":"Resetten","toolbar.resetFilters":"Filters resetten","toolbar.bulkActions":"Bulkacties","toolbar.showDetails":"Details tonen","toolbar.hideDetails":"Details verbergen","toolbar.downloadLabels":"Labels downloaden","toolbar.noLabels":"Geen labels beschikbaar","toolbar.markAsPacked":"Markeren als ingepakt","toolbar.noPackableOrders":"Geen bestellingen om in te pakken","toolbar.unpack":"Uitpakken","toolbar.noUnpackableOrders":"Geen ingepakte bestellingen","toolbar.bulkAdvancedEdit":"Geavanceerd bewerken","toolbar.exportCSV":"Exporteren naar CSV","csv.transactionId":"Transactie-ID","csv.currency":"Valuta","csv.customerCountry":"Land van klant","csv.accountVintedId":"Account Vinted-ID","csv.accountCountry":"Account Land","csv.originalPrice":"Originele prijs","csv.subtotal":"Subtotaal","csv.subtotalVat":"BTW subtotaal","csv.shippingFee":"Verzendkosten","csv.shippingVat":"BTW verzending","csv.serviceFee":"Servicekosten","csv.vatRate":"BTW-tarief","csv.trackingCode":"Trackingcode","csv.trackingUrl":"Tracking-URL","csv.itemTitles":"Artikeltitels","csv.lastUpdated":"Laatst bijgewerkt","modal.downloadLabels.title":"Labels downloaden","modal.downloadLabels.description":"Dit zal in totaal {count} labels downloaden.","modal.downloadLabels.cropLabels":"Labels bijsnijden (alleen PDF)","modal.downloadLabels.writeInfo":"Extra info op labels schrijven (alleen PDF)","modal.downloadLabels.annotationsConfig":"Te schrijven info","modal.downloadLabels.annotationsConfig.titles":"Artikeltitels","modal.downloadLabels.annotationsConfig.transactionId":"Transactie-ID","modal.downloadLabels.annotationsConfig.skus":"SKU's","modal.downloadLabels.annotationsConfig.titlesEnd":"Artikeltitels (einde)","modal.downloadLabels.annotationsConfig.skusLocations":"SKU's & Locaties","modal.downloadLabels.mergeLabels":"PDF-labels samenvoegen tot één bestand (max 25 per bestand)","modal.downloadLabels.markAsPacked":"Bestellingen markeren als ingepakt na downloaden","modal.downloadLabels.markAsPacked.tooltip":'"Ingepakt" is een status waarmee je bijhoudt wat al is afgehandeld, zodat je in één oogopslag ziet welke bestellingen klaar zijn.',"modal.downloadLabels.download":"Downloaden","modal.downloadLabels.downloading":"Downloaden...","modal.downloadLabels.fetchingLabel":"Label {current} van {total} ophalen...","modal.downloadLabels.merging":"{count} labels samenvoegen...","modal.downloadLabels.noLabelsDownloaded":"Er konden geen labels worden gedownload","modal.downloadLabels.downloadingIndividual":"Individuele labels downloaden...","modal.downloadLabels.complete":"Voltooid!","modal.downloadLabels.error":"Er is een fout opgetreden","modal.downloadLabels.loadingConfigs":"Laden...","modal.advancedEdit.t
1itle":"Geavanceerd bewerken","modal.advancedEdit.description":"Bestelling handmatig bijwerken wanneer synchronisatie niet beschikbaar is","modal.advancedEdit.modifyStatus":"Status wijzigen","modal.advancedEdit.selectStatus":"Selecteer status...","modal.advancedEdit.newPayout":"Nieuw uitbetalingsbedrag","modal.advancedEdit.reason":"Reden voor handmatige bewerking","modal.advancedEdit.reasonPlaceholder":"bijv. Account geblokkeerd, handmatige aanpassing nodig","modal.advancedEdit.reasonRequired":"Reden is verplicht","modal.advancedEdit.originalValues":"Originele waarden van Vinted","modal.advancedEdit.restore":"Herstellen","modal.advancedEdit.restoring":"Herstellen...","modal.advancedEdit.previousReason":"Vorige reden","modal.advancedEdit.save":"Wijzigingen opslaan","modal.advancedEdit.saving":"Opslaan...","modal.advancedEdit.error":"Er is een fout opgetreden","modal.bulkAdvancedEdit.title":"Geavanceerd bewerken (bulk)","modal.bulkAdvancedEdit.description":"Meerdere bestellingen handmatig bijwerken wanneer synchronisatie niet beschikbaar is","modal.bulkAdvancedEdit.ordersSelected":"{count} bestellingen geselecteerd","modal.bulkAdvancedEdit.alreadyPatched":"{count} bestelling(en) hebben al handmatige wijzigingen die worden overschreven","modal.bulkAdvancedEdit.statusRequired":"Status is verplicht","modal.bulkAdvancedEdit.result":"{patched} bestellingen bijgewerkt, {failed} mislukt","shipping.export":"Verzending CSV","shipping.exportTitle":"Verzending exporteren","export.accounts":"Accounts","export.allAccounts":"Alle accounts","export.searchAccounts":"Accounts zoeken...","export.noAccountsFound":"Geen accounts gevonden","export.dateRange":"Periode","export.today":"Vandaag","export.last7Days":"Laatste 7 dagen","export.all":"Alles","export.custom":"Aangepast","export.pickRange":"Kies een periode","export.export":"Exporteren","export.queuing":"Voorbereiden...","export.queuedTitle":"Export bezig","export.queuedMessage":"Uw CSV wordt gegenereerd. U ontvangt binnenkort een e-mail met de downloadlink. Als uw tabblad open blijft, start de download automatisch.","export.downloadReady":"Download klaar","export.downloadReadyMessage":"Uw CSV is gegenereerd en de download zou automatisch moeten zijn gestart.","export.error":"Er is een fout opgetreden","dataTable.cancel":"Annuleren","column.note":"Notitie","actions.editNote":"Notitie bewerken","modal.note.title":"Bestelnotitie","modal.note.description":"Voeg een notitie toe of bewerk deze voor deze bestelling","modal.note.placeholder":"Schrijf een notitie...","modal.note.charCount":"{count}/500","modal.note.save":"Opslaan","modal.note.saving":"Opslaan...","modal.note.error":"Er is een fout opgetreden","aria.selectAll":"Alles selecteren","aria.selectRow":"Rij selecteren","aria.actions":"Acties","aria.openMenu":"Menu openen","aria.expandRow":"Rij uitvouwen","aria.collapseRow":"Rij invouwen","invoice.view":"Factuur bekijken","invoice.issue":"Factuur uitgeven","invoice.reissue":"Factuur opnieuw uitgeven","invoice.reissueTitle":"Deze factuur opnieuw uitgeven?","invoice.reissueWhen":"Geef opnieuw uit na het wijzigen van de instellingen van dit bedrijf: een uitgegeven factuur behoudt de waarden van het moment van aanmaken.","invoice.reissueSettings":"Btw-plichtig · Btw-tarief van het land van de koper toepassen · Vinted-kosten tonen · Vinted-verzending tonen · Voettekst · Adres, bedrijfsnaam en logo","invoice.reissueBody":"De huidige factuur en de bijbehorende PDF worden verwijderd en er wordt een nieuwe uitgegeven op basis van de bestelling zoals die er nu bij staat. De nieuwe krijgt het volgende factuurnummer â het oude nummer wordt niet hergebruikt.","invoice.reissueConfirm":"Verwijderen en opnieuw uitgeven","invoice.unavailable":"Factuur niet beschikbaar","invoice.unavailableTooltip":"Kan factuur niet genereren â een of meer artikelen in deze bestelling zijn op Vinted verwijderd.","invoice.failedTooltip":"Geannuleerde bestellingen kunnen niet worden gefactureerd.","invoice.noCompanyTooltip":"Wijs eerst een bedrijf toe aan dit Vinted-account â facturen hebben een bedrijf nodig om uit te geven.","shippingLabel.title":"Verzendlabel ophalen","shippingLabel.carrierPaid":"Gekozen en betaald door de koper","shippingLabel.yourAddress":"Jouw adres","shippingLabel.yourContact":"Jouw contactgegevens","shippingLabel.recipient":"Adres van de ontvanger","shippingLabel.recipientNote":"Dit adres wordt automatisch aan het verzendlabel toegevoegd.","shippingLabel.phoneMissing":"Voeg een telefoonnummer toe aan dit account op Vinted voordat je het label bestelt.","shippingLabel.action":"Verzendlabel ophalen","shippingLabel.ordering":"Label ophalenâ¦","shippingLabel.generating":"Je verzendlabel wordt aangemaaktâ¦","shippingLabel.generatingHint":"Dit
1kan tot een minuut duren â houd dit venster open.","shippingLabel.stillGenerating":"Je label is besteld â het verschijnt hier binnenkort.","shippingLabel.sendQuestion":"Hoe ga je dit pakket verzenden?","shippingLabel.printable":"Printbaar label","shippingLabel.printableHint":"Print je eigen label en bevestig het aan het pakket voordat je het verzendt.","shippingLabel.digital":"Digitaal label","shippingLabel.digitalHint":"Geen printer nodig. Onze verzendinstructies leggen uit welke afleverpunten digitale labels accepteren.","shippingLabel.loading":"Verzendopties ladenâ¦","shippingLabel.loadError":"Kon de verzendopties niet laden.","shippingLabel.ordered":"Verzendlabel besteld.","shippingLabel.orderError":"Kon het verzendlabel niet bestellen.","return.readOnlyHint":"Dit kan niet in de Dotb-chat worden bewerkt â pas het aan in je Vinted-account."},zt={...H.pl,"column.orderEvent":"PrzepÅyw zamówienia","column.images":"ZdjÄcia","column.id":"ID","column.transactionId":"ID Transakcji","column.customer":"Klient","column.title":"TytuÅ","column.payout":"WypÅata","column.totalCost":"CaÅkowity koszt","column.grossProfit":"Zysk brutto","column.status":"Status","column.carrier":"Przewoźnik","column.tracking":"Åledzenie","column.skus":"SKUs","column.locations":"Lokalizacje","column.transactionStatus":"Status transakcji","column.lastUpdated":"Ostatnia aktualizacja","column.orderDate":"Data zamówienia","column.shippingDeadline":"WyÅlij do","column.account":"Konto","column.searchOrders":"Szukaj tytuÅ, SKU, lokalizacja...","column.searchCustomer":"Szukaj klienta...","transactionStatus.completed":"zakoÅczone","transactionStatus.waiting":"oczekujÄ
ce","transactionStatus.needs_action":"wymaga dziaÅania","transactionStatus.failed":"niepowodzenie","orderStatus.payment_received":"PÅatnoÅÄ otrzymana","orderStatus.label_ordering":"Tworzenie etykiety","orderStatus.label_failed":"Etykieta nieudana","orderStatus.label_sent":"Etykieta wysÅana","orderStatus.packed":"Spakowane","orderStatus.shipped":"WysÅane","orderStatus.ready_for_pickup":"Gotowe do odbioru","orderStatus.delivered":"Dostarczone","orderStatus.completed":"ZakoÅczone","orderStatus.returning":"W zwrocie","orderStatus.suspended":"Zawieszone","orderStatus.cancelled":"Anulowane","orderStatus.unknown":"Nieznany","actions.viewDetails":"Zobacz szczegóÅy","actions.advancedEdit":"Edycja zaawansowana","actions.markAsPacked":"Oznacz jako spakowane","actions.unpack":"Rozpakuj","actions.downloadLabel":"Pobierz etykietÄ","actions.noLabel":"Brak etykiety","actions.openInChat":"Otwórz na czacie","actions.openOnVinted":"Otwórz na Vinted","actions.noConversation":"Brak rozmowy","actions.viewLabel":"Zobacz etykietÄ","expand.showItems":"Pokaż przedmioty","expand.hideItems":"Ukryj przedmioty","expand.missingItemsWarning":"Sprzedane ogÅoszenie zostaÅo usuniÄte na Vinted przed synchronizacjÄ
, szczegóÅy nie mogÅy zostaÄ pobrane.","item.title":"TytuÅ","item.sku":"SKU","item.location":"Lokalizacja","item.supplierLink":"Link dostawcy","item.supplierLinkPlaceholder":"Wklej URL...","item.price":"Cena","item.soldFor":"Sprzedano za","item.sold":"Sprzedano","item.cost":"Koszt","item.purchasePrice":"Koszt","item.profit":"Zysk","toolbar.reset":"Resetuj","toolbar.resetFilters":"Resetuj filtry","toolbar.bulkActions":"Akcje zbiorcze","toolbar.showDetails":"Pokaż szczegóÅy","toolbar.hideDetails":"Ukryj szczegóÅy","toolbar.downloadLabels":"Pobierz etykiety","toolbar.noLabels":"Brak dostÄpnych etykiet","toolbar.markAsPacked":"Oznacz jako spakowane","toolbar.noPackableOrders":"Brak zamówieÅ do spakowania","toolbar.unpack":"Rozpakuj","toolbar.noUnpackableOrders":"Brak spakowanych zamówieÅ","toolbar.bulkAdvancedEdit":"Edycja zaawansowana","toolbar.exportCSV":"Eksportuj do CSV","csv.transactionId":"ID Transakcji","csv.currency":"Waluta","csv.customerCountry":"Kraj klienta","csv.accountVintedId":"ID Vinted konta","csv.accountCountry":"Kraj konta","csv.originalPrice":"Cena oryginalna","csv.subtotal":"Suma czÄÅciowa","csv.subtotalVat":"VAT suma czÄÅciowa","csv.shippingFee":"Koszt wysyÅki","csv.shippingVat":"VAT wysyÅka","csv.serviceFee":"OpÅata za usÅugÄ","csv.vatRate":"Stawka VAT","csv.trackingCode":"Kod Åledzenia","csv.trackingUrl":"URL Åledzenia","csv.itemTitles":"TytuÅy przedmiotów","csv.lastUpdated":"Ostatnia aktualizacja","modal.downloadLabels.title":"Pobierz etykiety","modal.downloadLabels.description":"To pobierze ÅÄ
cznie {count} etykiet.","modal.downloadLabels.cropLabels":"Przytnij etykiety (tylko PDF)","modal.downloadLabels.writeInfo":"Zapisz dodatkowe info na etykietach (tylko PDF)","modal.downloadLabels.annotationsConfig":"Info do zapisania","modal.downloadLabels.annotationsConfig.titles":"TytuÅy przedmiotów","modal.downloadLabels.annotationsConfig.transactionId":"ID transakcji","modal.downloadLabels.annotationsConfig.skus":"SKU","modal.downloadLabels.annotationsConfig.titlesEnd":"TytuÅy przedmiotów (koniec)","modal.downloadLabels.annotationsConfig.skusLocations":"SKU i Lokalizacje","modal.downloadLabels.mergeLabels":"PoÅÄ
cz PDF w jeden plik (maks. 25 na plik)","modal.downloadLabels.markAsPacked":"Oznacz zamówienia jako spakowane po pobraniu","modal.downloadLabels.markAsPacked.tooltip":"âSpakowaneâ to status, który pomaga ÅledziÄ, co jest już obsÅużone, dziÄki czemu od razu widzisz, które zamówienia sÄ
gotowe.","modal.downloadLabels.download":"Pobierz","modal.downloadLabels.downloading":"Pobieranie...","modal.downloadLabels.fetchingLabel":"Pobieranie etykiety {current} z {total}...","modal.downloadLabels.merging":"ÅÄ
czenie {count} etykiet...","modal.downloadLabels.noLabelsDownloaded":"Nie udaÅo siÄ pobraÄ Å¼adnych etykiet","modal.downloadLabels.downloadingIndividual":"Pobieranie pojedynczych etykiet...","modal.downloadLabels.complete":"ZakoÅczono!","modal.downloadLabels.error":"WystÄ
piÅ bÅÄ
d","modal.downloadLabels.loadingConfigs":"Åadowanie...","modal.advancedEdit.t
1itle":"Edycja zaawansowana","modal.advancedEdit.description":"RÄczna aktualizacja zamówienia gdy synchronizacja jest niedostÄpna","modal.advancedEdit.modifyStatus":"ZmieÅ status","modal.advancedEdit.selectStatus":"Wybierz status...","modal.advancedEdit.newPayout":"Nowa kwota wypÅaty","modal.advancedEdit.reason":"Powód rÄcznej edycji","modal.advancedEdit.reasonPlaceholder":"np. Konto zablokowane, wymagana rÄczna korekta","modal.advancedEdit.reasonRequired":"Powód jest wymagany","modal.advancedEdit.originalValues":"Oryginalne wartoÅci z Vinted","modal.advancedEdit.restore":"PrzywróÄ","modal.advancedEdit.restoring":"Przywracanie...","modal.advancedEdit.previousReason":"Poprzedni powód","modal.advancedEdit.save":"Zapisz zmiany","modal.advancedEdit.saving":"Zapisywanie...","modal.advancedEdit.error":"WystÄ
piÅ bÅÄ
d","modal.bulkAdvancedEdit.title":"Zbiorcza edycja zaawansowana","modal.bulkAdvancedEdit.description":"RÄczna aktualizacja wielu zamówieÅ gdy synchronizacja jest niedostÄpna","modal.bulkAdvancedEdit.ordersSelected":"{count} zamówieÅ wybranych","modal.bulkAdvancedEdit.alreadyPatched":"{count} zamówienie/a majÄ
już rÄczne modyfikacje, które zostanÄ
nadpisane","modal.bulkAdvancedEdit.statusRequired":"Status jest wymagany","modal.bulkAdvancedEdit.result":"{patched} zamówieÅ zmodyfikowanych, {failed} nieudanych","shipping.export":"CSV wysyÅki","shipping.exportTitle":"Eksport wysyÅki","export.accounts":"Konta","export.allAccounts":"Wszystkie konta","export.searchAccounts":"Konta wyszukiwania...","export.noAccountsFound":"Nie znaleziono kont","export.dateRange":"Okres","export.today":"DziÅ","export.last7Days":"Ostatnie 7 dni","export.all":"Wszystko","export.custom":"Niestandardowy","export.pickRange":"Wybierz zakres dat","export.export":"Eksportuj","export.queuing":"Przygotowywanie...","export.queuedTitle":"Eksport w toku","export.queuedMessage":"Twój plik CSV jest generowany. Wkrótce otrzymasz e-mail z linkiem do pobrania. JeÅli karta pozostanie otwarta, pobieranie rozpocznie siÄ automatycznie.","export.downloadReady":"Pobieranie gotowe","export.downloadReadyMessage":"Twój plik CSV zostaÅ wygenerowany i pobieranie powinno byÅo siÄ rozpoczÄ
Ä automatycznie.","export.error":"WystÄ
piÅ bÅÄ
d","dataTable.cancel":"Anuluj","column.note":"Notatka","actions.editNote":"Edytuj notatkÄ","modal.note.title":"Notatka zamówienia","modal.note.description":"Dodaj lub edytuj notatkÄ do tego zamówienia","modal.note.placeholder":"Napisz notatkÄ...","modal.note.charCount":"{count}/500","modal.note.save":"Zapisz","modal.note.saving":"Zapisywanie...","modal.note.error":"WystÄ
piÅ bÅÄ
d","aria.selectAll":"Zaznacz wszystko","aria.selectRow":"Zaznacz wiersz","aria.actions":"Akcje","aria.openMenu":"Otwórz menu","aria.expandRow":"RozwiÅ wiersz","aria.collapseRow":"ZwiÅ wiersz","invoice.view":"Zobacz fakturÄ","invoice.issue":"Wystaw fakturÄ","invoice.reissue":"Wystaw fakturÄ ponownie","invoice.reissueTitle":"WystawiÄ tÄ fakturÄ ponownie?","invoice.reissueWhen":"Wystaw ponownie po zmianie ustawieÅ tej firmy â wystawiona faktura zachowuje wartoÅci z chwili jej utworzenia.","invoice.reissueSettings":"Naliczanie VAT · Stawka VAT kraju kupujÄ
cego · Pokazywanie prowizji Vinted · Pokazywanie wysyÅki Vinted · Stopka · Adres, nazwa firmy i logo","invoice.reissueBody":"BieżÄ
ca faktura i jej PDF zostanÄ
usuniÄte, a na podstawie aktualnego stanu zamówienia zostanie wystawiona nowa. Nowa otrzyma kolejny numer faktury â stary numer nie zostanie użyty ponownie.","invoice.reissueConfirm":"UsuÅ i wystaw ponownie","invoice.unavailable":"Faktura niedostÄpna","invoice.unavailableTooltip":"Nie można wygenerowaÄ faktury â co najmniej jeden przedmiot z tego zamówienia zostaÅ usuniÄty na Vinted.","invoice.failedTooltip":"Anulowanych zamówieÅ nie można fakturowaÄ.","invoice.noCompanyTooltip":"Najpierw przypisz firmÄ do tego konta Vinted â faktury wymagajÄ
firmy, aby je wystawiÄ.","shippingLabel.title":"Pobierz etykietÄ wysyÅki","shippingLabel.carrierPaid":"Wybrane i opÅacone przez kupujÄ
cego","shippingLabel.yourAddress":"Twój adres","shippingLabel.yourContact":"Twoje dane kontaktowe","shippingLabel.recipient":"Adres odbiorcy","shippingLabel.recipientNote":"Ten adres jest automatycznie dodawany do etykiety wysyÅki.","shippingLabel.phoneMissing":"Dodaj numer telefonu do tego konta w Vinted przed zamówieniem etykiety.","shippingLabel.action":"Pobierz etykietÄ wysyÅki","shippingLabel.ordering":"Pobieranie etykietyâ¦","shippingLabel.generating":"Generowanie etykiety wysyÅkiâ¦","shippingLabel.generatingHint":"Może to potr
1waÄ do minuty â nie zamykaj tego okna.","shippingLabel.stillGenerating":"Etykieta zostaÅa zamówiona â pojawi siÄ tutaj wkrótce.","shippingLabel.sendQuestion":"Jak wyÅlesz tÄ paczkÄ?","shippingLabel.printable":"Etykieta do wydruku","shippingLabel.printableHint":"Wydrukuj wÅasnÄ
etykietÄ i przyklej jÄ
do paczki przed wysÅaniem.","shippingLabel.digital":"Etykieta cyfrowa","shippingLabel.digitalHint":"Drukarka nie jest potrzebna. Nasze instrukcje wysyÅki wyjaÅniajÄ
, które punkty nadania akceptujÄ
etykiety cyfrowe.","shippingLabel.loading":"Åadowanie opcji wysyÅkiâ¦","shippingLabel.loadError":"Nie udaÅo siÄ zaÅadowaÄ opcji wysyÅki.","shippingLabel.ordered":"Etykieta wysyÅki zamówiona.","shippingLabel.orderError":"Nie udaÅo siÄ zamówiÄ etykiety wysyÅki.","return.readOnlyHint":"Tego nie można edytowaÄ w czacie Dotb â zmieÅ to na swoim koncie Vinted."},Mt={...H.de,"column.orderEvent":"Bestellablauf","column.images":"Bilder","column.id":"ID","column.transactionId":"Transaktions-ID","column.customer":"Kunde","column.title":"Titel","column.payout":"Auszahlung","column.totalCost":"Gesamtkosten","column.grossProfit":"Bruttogewinn","column.status":"Status","column.carrier":"Versanddienstleister","column.tracking":"Sendungsverfolgung","column.skus":"SKUs","column.locations":"Standorte","column.transactionStatus":"Transaktionsstatus","column.lastUpdated":"Zuletzt aktualisiert","column.orderDate":"Bestelldatum","column.shippingDeadline":"Versenden bis","column.account":"Konto","column.searchOrders":"Suche Titel, SKU, Standort...","column.searchCustomer":"Kunde suchen...","transactionStatus.completed":"abgeschlossen","transactionStatus.waiting":"wartend","transactionStatus.needs_action":"Aktion erforderlich","transactionStatus.failed":"fehlgeschlagen","orderStatus.payment_received":"Zahlung erhalten","orderStatus.label_ordering":"Etikett er
1stellen","orderStatus.label_failed":"Etikett fehlgeschlagen","orderStatus.label_sent":"Etikett gesendet","orderStatus.packed":"Verpackt","orderStatus.shipped":"Versendet","orderStatus.ready_for_pickup":"Abholbereit","orderStatus.delivered":"Zugestellt","orderStatus.completed":"Abgeschlossen","orderStatus.returning":"Rückversand","orderStatus.suspended":"Ausgesetzt","orderStatus.cancelled":"Storniert","orderStatus.unknown":"Unbekannt","actions.viewDetails":"Details anzeigen","actions.advancedEdit":"Erweiterte Bearbeitung","actions.markAsPacked":"Als verpackt markieren","actions.unpack":"Auspacken","actions.downloadLabel":"Etikett herunterladen","actions.noLabel":"Kein Etikett verfügbar","actions.openInChat":"Im Chat öffnen","actions.openOnVinted":"Auf Vinted öffnen","actions.noConversation":"Keine Konversation verfügbar","actions.viewLabel":"Etikett anzeigen","expand.showItems":"Artikel anzeigen","expand.hideItems":"Artikel ausblenden","expand.missingItemsWarning":"Die verkaufte Anzeige wurde vor der Synchronisierung auf Vinted gelöscht, Details konnten nicht abgerufen werden.","item.title":"Titel","item.sku":"SKU","item.location":"Standort","item.supplierLink":"Lieferantenlink","item.supplierLinkPlaceholder":"URL einfügen...","item.price":"Preis","item.soldFor":"Verkauft für","item.sold":"Verkauft","item.cost":"Kosten","item.purchasePrice":"Kosten","item.profit":"Gewinn","toolbar.reset":"Zurücksetzen","toolbar.resetFilters":"Filter zurücksetzen","toolbar.bulkActions":"Massenaktionen","toolbar.showDetails":"Details anzeigen","toolbar.hideDetails":"Details ausblenden","toolbar.downloadLabels":"Etiketten herunterladen","toolbar.noLabels":"Keine Etiketten verfügbar","toolbar.markAsPacked":"Als verpackt markieren","toolbar.noPackableOrders":"Keine verpackbaren Bestellungen","toolbar.unpack":"Auspacken","toolbar.noUnpackableOrders":"Keine verpackten Bestellungen","toolbar.bulkAdvancedEdit":"Erweiterte Bearbeitung","toolbar.exportCSV":"Als CSV exportieren","csv.transactionId":"Transaktions-ID","csv.currency":"Währung","csv.customerCountry":"Land des Kunden","csv.accountVintedId":"Konto Vinted-ID","csv.accountCountry":"Konto Land","csv.originalPrice":"Originalpreis","csv.subtotal":"Zwischensumme","csv.subtotalVat":"MwSt. Zwischensumme","csv.shippingFee":"Versandkosten","csv.shippingVat":"MwSt. Versand","csv.serviceFee":"Servicegebühr","csv.vatRate":"MwSt.-Satz","csv.trackingCode":"Tracking-Code","csv.trackingUrl":"Tracking-URL","csv.itemTitles":"Artikeltitel","csv.lastUpdated":"Zuletzt aktualisiert","modal.downloadLabels.title":"Etiketten herunterladen","modal.downloadLabels.description":"Dies wird insgesamt {count} Etiketten herunterladen.","modal.downloadLabels.cropLabels":"Etiketten zuschneiden (nur PDF)","modal.downloadLabels.writeInfo":"Zusätzliche Info auf Etiketten schreiben (nur PDF)","modal.downloadLabels.annotationsConfig":"Zu schreibende Info","modal.downloadLabels.annotationsConfig.titles":"Artikeltitel","modal.downloadLabels.annotationsConfig.transactionId":"Transaktions-ID","modal.downloadLabels.annotationsConfig.skus":"SKUs","modal.downloadLabels.annotationsConfig.titlesEnd":"Artikeltitel (Ende)","modal.downloadLabels.annotationsConfig.skusLocations":"SKUs & Standorte","modal.downloadLabels.mergeLabels":"PDF-Etiketten in eine Datei zusammenführen (max 25 pro Datei)","modal.downloadLabels.markAsPacked":"Bestellungen nach dem Download als verpackt markieren","modal.downloadLabels.markAsPacked.tooltip":"âVerpacktâ ist ein Status, der dir hilft nachzuverfolgen, was bereits erledigt ist, sodass du auf einen Blick siehst, welche Bestellungen fertig sind.","modal.downloadLabels.download":"Herunterladen","modal.downloadLabels.downloading":"Wird heruntergeladen...","modal.downloadLabels.fetchingLabel":"Etikett {current} von {total} wird abgerufen...","modal.downloadLabels.merging":"{count} Etiketten werden zusammengeführt...","modal.downloadLabels.noLabelsDownloaded":"Es konnten keine Etiketten heruntergeladen werden","modal.downloadLabels.downloadingIndividual":"Einzelne Etiketten werden heruntergeladen...","modal.downloadLabels.complete":"Abgeschlossen!","modal.downloadLabels.error":"Ein Fehler ist aufgetreten","modal.downloadLabels.loadingConfigs":"Laden...","modal.advancedEdit.t
1itle":"Erweiterte Bearbeitung","modal.advancedEdit.description":"Bestellung manuell aktualisieren, wenn Synchronisierung nicht verfügbar ist","modal.advancedEdit.modifyStatus":"Status ändern","modal.advancedEdit.selectStatus":"Status auswählen...","modal.advancedEdit.newPayout":"Neuer Auszahlungsbetrag","modal.advancedEdit.reason":"Grund für manuelle Bearbeitung","modal.advancedEdit.reasonPlaceholder":"z.B. Konto gesperrt, manuelle Anpassung erforderlich","modal.advancedEdit.reasonRequired":"Grund ist erforderlich","modal.advancedEdit.originalValues":"Originalwerte von Vinted","modal.advancedEdit.restore":"Wiederherstellen","modal.advancedEdit.restoring":"Wiederherstellen...","modal.advancedEdit.previousReason":"Vorheriger Grund","modal.advancedEdit.save":"Ãnderungen speichern","modal.advancedEdit.saving":"Speichern...","modal.advancedEdit.error":"Ein Fehler ist aufgetreten","modal.bulkAdvancedEdit.title":"Erweiterte Massenbearbeitung","modal.bulkAdvancedEdit.description":"Mehrere Bestellungen manuell aktualisieren, wenn Synchronisierung nicht verfügbar ist","modal.bulkAdvancedEdit.ordersSelected":"{count} Bestellungen ausgewählt","modal.bulkAdvancedEdit.alreadyPatched":"{count} Bestellung(en) haben bereits manuelle Ãnderungen, die überschrieben werden","modal.bulkAdvancedEdit.statusRequired":"Status ist erforderlich","modal.bulkAdvancedEdit.result":"{patched} Bestellungen aktualisiert, {failed} fehlgeschlagen","shipping.export":"Versand-CSV","shipping.exportTitle":"Versand-Export","export.accounts":"Konten","export.allAccounts":"Alle Konten","export.searchAccounts":"Konten suchen...","export.noAccountsFound":"Keine Konten gefunden","export.dateRange":"Zeitraum","export.today":"Heute","export.last7Days":"Letzte 7 Tage","export.all":"Alle","export.custom":"Benutzerdefiniert","export.pickRange":"Zeitraum auswählen","export.export":"Exportieren","export.queuing":"Vorbereitung...","export.queuedTitle":"Export läuft","export.queuedMessage":"Ihre CSV wird generiert. Sie erhalten in Kürze eine E-Mail mit dem Download-Link. Wenn Ihr Tab geöffnet bleibt, startet der Download automatisch.","export.downloadReady":"Download bereit","export.downloadReadyMessage":"Ihre CSV wurde generiert und der Download sollte automatisch gestartet haben.","export.error":"Ein Fehler ist aufgetreten","dataTable.cancel":"Abbrechen","column.note":"Notiz","actions.editNote":"Notiz bearbeiten","modal.note.title":"Bestellnotiz","modal.note.description":"Notiz für diese Bestellung hinzufügen oder bearbeiten","modal.note.placeholder":"Notiz schreiben...","modal.note.charCount":"{count}/500","modal.note.save":"Speichern","modal.note.saving":"Speichern...","modal.note.error":"Ein Fehler ist aufgetreten","aria.selectAll":"Alle auswählen","aria.selectRow":"Zeile auswählen","aria.actions":"Aktionen","aria.openMenu":"Menü öffnen","aria.expandRow":"Zeile erweitern","aria.collapseRow":"Zeile reduzieren","invoice.view":"Rechnung anzeigen","invoice.issue":"Rechnung ausstellen","invoice.reissue":"Rechnung neu ausstellen","invoice.reissueTitle":"Diese Rechnung neu ausstellen?","invoice.reissueWhen":"Nach Ãnderungen an den Einstellungen dieses Unternehmens neu ausstellen â eine ausgestellte Rechnung behält die Werte ihrer Erstellung.","invoice.reissueSettings":"USt. wird berechnet · USt.-Satz des Käuferlandes anwenden · Vinted-Gebühren anzeigen · Vinted-Versand anzeigen · FuÃzeile · Adresse, Firmenname und Logo","invoice.reissueBody":"Die aktuelle Rechnung und ihr PDF werden gelöscht und eine neue Rechnung auf Basis der Bestellung im heutigen Stand ausgestellt. Sie erhält die nächste Rechnungsnummer â die alte Nummer wird nicht wiederverwendet.","invoice.reissueConfirm":"Löschen und neu ausstellen","invoice.unavailable":"Rechnung nicht verfügbar","invoice.unavailableTooltip":"Rechnung kann nicht erstellt werden â ein oder mehrere Artikel dieser Bestellung wurden auf Vinted gelöscht.","invoice.failedTooltip":"Stornierte Bestellungen können nicht in Rechnung gestellt werden.","invoice.noCompanyTooltip":"Weisen Sie diesem Vinted-Konto zuerst ein Unternehmen zu â Rechnungen benötigen ein Unternehmen zur Ausstellung.","shippingLabel.title":"Versandetikett anfordern","shippingLabel.carrierPaid":"Vom Käufer ausgewählt und bezahlt","shippingLabel.yourAddress":"Deine Adresse","shippingLabel.yourContact":"Deine Kontaktdaten","shippingLabel.recipient":"Adresse des Empfängers","shippingLabel.recipientNote":"Diese Adresse wird dem Versandetikett automatisch hinzugefügt.","shippingLabel.phoneMissing":"Füge diesem Konto auf Vinted eine Telefonnummer hinzu, bevor du das Etikett anforderst.","shippingLabel.action":"Versandetikett anfordern","shippingLabel.ordering":"Etikett wird angefordertâ¦","shippingLabel.generating":"Dein Versandetikett wird erstelltâ¦","shippingLabel.generatingHint":"Das kann bis zu einer Minute dauern â lass dieses Fenster geöffnet.","shippingLabel.stillGenerating":"Dein Etikett wurde angefordert â es erscheint gleich hier.","shippingLabel.sendQuestion":"Wie möchtest du dieses Paket versenden?","shippingLabel.printable":"Druckbares Etikett","shippingLabel.printableHint":"Drucke dein eigenes Etikett aus und bringe es vor dem Versand am Paket an.","shippingLabel.digital":"Digitales Etikett","shippingLabel.digitalHint":"Kein Drucker erforderlich. Unsere Versandanweisungen erklären, welche Abgabestellen digitale Etiketten akzeptieren.","shippingLabel.loading":"Versandoptionen werden geladenâ¦","shippingLabel.loadError":"Versandoptionen konnten nicht geladen werden.","shippingLabel.ordered":"Versandetikett angefordert.","shippingLabel.orderError":"Versandetikett konnte nicht angefordert werden.","return.readOnlyHint":"Das kann nicht im Dotb-Chat bearbeitet werden â ändere es in deinem Vinted-Konto."},At={en:Lt,fr:yt,es:jt,it:St,pt:Ct,nl:Et,pl:zt,de:Mt},_t=Da(At),Dt=oa(_t);function Ee(t){return t.toISOString().split("T")[0]}function ze(t,d,b){if(!t&&!d)return"";const s=n=>n.toLocaleDateString(b,{month:"short",day:"numeric"});return t?d?`${s(t)} â ${s(d)}`:`${s(t)} â`:`â ${s(d)}`}function Me(t,d){const s=(n=>new Date(n.getFullYear(),n.getMonth(),n.getDate()))(d);switch(t){case"today":return{from:s,to:s};case"last_7_days":{const n=new Date(s);return n.setDate(s.getDate()-6),{from:n,to:s}}case"all":return{from:null,to:null};
1case"custom":return{from:null,to:null}}}function Nt({open:t,onOpenChange:d,accounts:b=[]}){const s=I(),{pushEvent:n,handleEvent:l,removeHandleEvent:p}=W(),o=g.useMemo(()=>new Date,[]),[x,a]=g.useState("all"),[i,r]=g.useState(void 0),[c,m]=g.useState([]),[h,v]=g.useState(!1),[E,_]=g.useState(!1),[D,V]=g.useState(!1),[P,u]=g.useState(null);g.useEffect(()=>{const w=l("export_ready",()=>{_(!1),V(!0)}),j=l("export_error",()=>{_(!1),u(s.formatMessage({id:"export.error"}))});return()=>{p(w),p(j)}},[]),g.useEffect(()=>{t&&(a("all"),r(void 0),m([]),v(!1),_(!1),V(!1),u(null))},[t]);const M=[{id:"today",label:s.formatMessage({id:"export.today"})},{id:"last_7_days",label:s.formatMessage({id:"export.last7Days"})},{id:"all",label:s.formatMessage({id:"export.all"})},{id:"custom",label:s.formatMessage({id:"export.custom"})}],N=w=>w==="custom"?{from:i?.from??null,to:i?.to??null}:Me(w,o),z=async()=>{const{from:w,to:j}=N(x);v(!0),u(null);try{if(!(await n("export_shipping_csv",{from:w?Ee(w):null,to:j?Ee(j):null,accounts:c,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}))?.success){u(s.formatMessage({id:"export.error"}));return}_(!0)}catch{u(s.formatMessage({id:"export.error"}))}finally{v(!1)}};return e.jsx(qe,{open:t,onOpenChange:d,children:e.jsxs(Fe,{className:"sm:max-w-[560px]",children:[e.jsx(Oe,{children:e.jsx(Ue,{children:s.formatMessage({id:"shipping.exportTitle"})})}),D?e.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[e.jsx(na,{className:"h-10 w-10 text-green-500"}),e.jsx("p",{className:"text-sm font-medium",children:s.formatMessage({id:"export.downloadReady"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.formatMessage({id:"export.downloadReadyMessage"})})]}):E?e.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[e.jsx(ia,{className:"h-10 w-10 animate-spin text-primary"}),e.jsx("p",{className:"text-sm font-medium",children:s.formatMessage({id:"export.queuedTitle"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.formatMessage({id:"export.queuedMessage"})})]}):e.jsxs("div",{className:"flex flex-col gap-4 py-2",children:[b.length>1&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-sm font-medium",children:s.formatMessage({id:"export.accounts"})}),e.jsxs(Na,{value:c,onValueChange:w=>m(w??[]),multiple:!0,children:[e.jsx(Va,{asChild:!0,children:e.jsx(T,{variant:"outline",className:"w-full",children:e.jsx(Pa,{options:b.map(w=>({label:w,value:w})),placeholder:s.formatMessage({id:"export.allAccounts"})})})}),e.jsxs(Ta,{className:"w-[380px]",children:[e.jsx(Ia,{placeholder:s.formatMessage({id:"export.searchAccounts"})}),e.jsxs(Ra,{children:[e.jsx(qa,{children:s.formatMessage({id:"export.noAccountsFound"})}),e.jsx(Fa,{children:b.map(w=>e.jsx(Oa,{value:w,children:w},w))})]})]})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-sm font-medium",children:s.formatMessage({id:"export.dateRange"})}),e.jsx("div",{className:"flex flex-col gap-0",children:M.map(({id:w,label:j})=>{const f=w!=="custom"?Me(w,o):null,C=f?ze(f.from,f.to,s.locale):"";return e.jsxs("label",{className:"flex cursor-pointer items-center justify-between rounded px-2 py-0.5 hover:bg-muted/50",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"radio",name:"shipping-export-preset",value:w,checked:x===w,onChange:()=>a(w),className:"accent-primary"}),e.jsx("span",{className:"text-sm",children:j})]}),C&&e.jsx("span",{className:"text-sm text-muted-foreground",children:C})]},w)})}),x==="custom"&&e.jsx("div",{className:"mt-3 pl-6",children:e.jsxs(De,{children:[e.jsx(Ne,{asChild:!0,children:e.jsxs(T,{variant:"outline",className:"w-full justify-start text-left font-normal",children:[e.jsx(sa,{className:"mr-2 h-4 w-4 shrink-0"}),i?.from?e.jsx("span",{children:ze(i.from,i.to,s.locale)}):e.jsx("span",{className:"text-muted-foreground",children:s.formatMessage({id:"export.pickRange"})})]})}),e.jsx(Ve,{className:"w-auto p-0",align:"start",children:e.jsx(Ua,{autoFocus:!0,mode:"range",selected:i,onSelect:r,disabled:{after:o},numberOfMonths:2})})]})})]}),P&&e.jsx("p",{className:"text-sm text-destructive",children:P})]}),e.jsxs(Ke,{children:[e.jsx(T,{variant:"outline",onClick:()=>d(!1),children:s.formatMessage({id:"dataTable.cancel"})}),!E&&!D&&e.jsxs(T,{onClick:z,disabled:h,children:[e.jsx(_e,{className:"mr-2 h-4 w-4"}),h?s.formatMessage({id:"export.queuing"}):s.formatMessage({id:"export.export"})]})]})]})})}function Vt({table:t,orderStatuses:d,orderEventTypes:b=[],accounts:s,readOnly:n=!1}){const l=I(),{isMobile:p}=Ka(),o=t.getState().columnFilters.length>0,x=t.getSelectedRowModel().rows,[a,i]=g.useState(!1),r=x.length>0,c=t.getColumn("title"),m=t.getColumn("customer_login"),h=t.getColumn("normalized_status"),v=t.getColumn("transaction_user_status"),E=t.getColumn("account_login"),_=t.getColumn("order_date"),D=t.getColumn("order_event"),V=g.useMemo(()=>s.map(z=>({label:z,value:z})),[s]),P=g.useMemo(()=>[{label:l.formatMessage({id:"transactionStatus.failed"}),value:"failed"},{label:l.formatMessage({id:"transactionStatus.needs_action"}),value:"needs_action"},{label:l.formatMessage({id:"transactionStatus.waiting"}),value:"waiting"},{label:l.formatMessage({id:"transactionStatus.completed"}),value:"completed"}],[l]),u=g.useMemo(()=>d.map(z=>({label:l.formatMessage({id:`orderStatus.${z}`}),value:z})),[d,l]),M=g.useMemo(()=>b.map(z=>({label:se(l,z),value:z})),[b,l]),N=g.useCallback(()=>{t.resetColumnFilters()},[t]);return e.jsxs("div",{role:"toolbar","aria-orientation":"horizontal",className:"flex w-full flex-col gap-2 p-1",children:[e.jsxs("div",{className:"flex w-full items-start justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-1 flex-wrap items-center gap-2",children:[c&&e.jsx(Z,{placeholder:l.formatMessage({id:"column.searchOrders"}),value:c.getFilterValue()??"",onChange:z=>c.setFilterValue(z.target.value),className:"h-8 w-full sm:w-40 lg:w-56"}),m&&e.jsx(Z,{placeholder:l.formatMessage({id:"column.searchCustomer"}),value:m.getFilterValue()??"",onChange:z=>m.setFilterValue(z.target.value),className:"h-8 w-full sm:w-40"}),_&&e.jsx(Ba,{column:_,title:l.formatMessage({id:"column.orderDate"}),multiple:!0}),v&&e.jsx(ne,{column:v,title:l.formatMessage({id:"column.transactionStatus"}),options:P,multiple:!0}),h&&u.length>0&&e.jsx(ne,{column:h,title:l.formatMessage({id:"column.status"}),options:u,multiple:!0}),D&&M.length>0&&e.jsx(ne,{column:D,title:l.formatMessage({id:"column.orderEvent"}),options:M,multiple:!0}),E&&V.length>0&&e.jsx(ne,{column:E,title:l.formatMessage({id:"column.account"}),options:V,multiple:!0,sensitive:!0}),o&&e.jsxs(T,{"aria-label":l.formatMessage({id:"toolbar.resetFilters"}),variant:"outline",size:"sm",className:"h-8 border-dashed",onClick:N,children:[e.jsx(ra,{className:"size-4"}),l.formatMessage({id:"toolbar.reset"})]}),p&&e.jsxs(e.Fragment,{children:[e.jsxs(T,{variant:"default",size:"sm",className:"h-8 w-full",onClick:()=>i(!0),children:[e.jsx(ke,{className:"size-4"}),l.formatMessage({id:"shipping.export"})]}),r?e.jsx(Ae,{selectedRows:x,onClearSelection:()=>t.resetRowSelection(),buttonClassName:"w-full",readOnly:n}):e.jsx(Se,{table:t,tableId:"vinted-orders",align:"end",buttonClassName:"w-full"})]})]}),!p&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(T,{variant:"default",size:"sm",className:"h-8",onClick:()=>i(!0),children:[e.jsx(ke,{className:"size-4"}),l.formatMessage({id:"shipping.export"})]}),r?e.jsx(Ae,{selectedRows:x,onClearSelection:()=>t.resetRowSelection(),readOnly:n}):e.jsx(Se,{table:t,tableId:"vinted-orders",align:"end"})]})]}),e.jsx(Nt,{open:a,onOpenChange:i,accounts:s})]})}function Ae({selectedRows:t,onClearSelection:d,buttonClassName:b,readOnly:s=!1}){const n=I(),{pushEvent:l}=W(),[p,o]=g.useState(!1),[x,a]=g.useState(!1),i=t.filter(u=>u.original.shipping_label_url),r=t.map(u=>u.original),c=t.filter(u=>u.original.normalized_status==="label_sent"),m=t.filter(u=>u.original.normalized_status==="packed"),h=g.useCallback(()=>{const M=t.map(f=>f.original).map(f=>{const C=f.items?.map(k=>
1k.title).filter(Boolean).join(", ")||"",R=f.items?.map(k=>k.sku).filter(Boolean).join(", ")||"",S=f.items?.map(k=>k.location).filter(Boolean).join(", ")||"";return{[n.formatMessage({id:"csv.transactionId"})]:f.vinted_transaction_id,[n.formatMessage({id:"column.orderDate"})]:f.order_date,[n.formatMessage({id:"column.title"})]:f.title,[n.formatMessage({id:"column.status"})]:f.status,[n.formatMessage({id:"column.transactionStatus"})]:f.transaction_user_status,[n.formatMessage({id:"column.payout"})]:f.payout,[n.formatMessage({id:"csv.subtotal"})]:f.subtotal||"",[n.formatMessage({id:"csv.subtotalVat"})]:f.subtotal_vat||"",[n.formatMessage({id:"csv.shippingFee"})]:f.shipping_fee||"",[n.formatMessage({id:"csv.shippingVat"})]:f.shipping_vat||"",[n.formatMessage({id:"csv.serviceFee"})]:f.service_fee||"",[n.formatMessage({id:"csv.originalPrice"})]:f.original_price||"",[n.formatMessage({id:"csv.currency"})]:f.currency,[n.formatMessage({id:"csv.vatRate"})]:f.vat_rate||"",[n.formatMessage({id:"csv.itemTitles"})]:C,[n.formatMessage({id:"column.skus"})]:R,[n.formatMessage({id:"column.locations"})]:S,[n.formatMessage({id:"column.customer"})]:f.customer_login,[n.formatMessage({id:"csv.customerCountry"})]:f.customer_country_code,[n.formatMessage({id:"column.account"})]:f.account_login,[n.formatMessage({id:"csv.accountVintedId"})]:f.account_vinted_id,[n.formatMessage({id:"csv.accountCountry"})]:f.account_country_code,[n.formatMessage({id:"column.carrier"})]:f.carrier_name||"",[n.formatMessage({id:"csv.trackingCode"})]:f.tracking_code||"",[n.formatMessage({id:"csv.trackingUrl"})]:f.tracking_url||"",[n.formatMessage({id:"column.shippingDeadline"})]:f.shipping_deadline_date||"",[n.formatMessage({id:"csv.lastUpdated"})]:f.status_updated_at||""}}),N=ut.unparse(M),z=new Blob([N],{type:"text/csv;charset=utf-8;"}),w=URL.createObjectURL(z),j=document.createElement("a");j.href=w,j.download=`orders-${new Date().toISOString().split("T")[0]}.csv`,j.click(),URL.revokeObjectURL(w),d()},[t,n,d]),v=t.filter(u=>u.getCanExpand()),E=v.filter(u=>u.getIsExpanded()).length,_=v.length>0&&E===v.length,D=()=>{const u=!_;v.forEach(M=>M.toggleExpanded(u))},V=g.useCallback(()=>{const u=c.map(M=>M.original.id);l("mark_as_packed",{order_ids:u}),d()},[c,l,d]),P=g.useCallback(()=>{const u=m.map(M=>M.original.id);l("unpack_orders",{order_ids:u}),d()},[m,l,d]);return e.jsxs(e.Fragment,{children:[e.jsxs(Te,{children:[e.jsx(Ie,{asChild:!0,children:e.jsxs(T,{variant:"outline",size:"sm",className:be("h-8",b),children:[e.jsx(la,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.bulkActions"})]})}),e.jsxs(Re,{align:"end",children:[v.length>0&&e.jsxs(L,{onClick:D,children:[_?e.jsxs(e.Fragment,{children:[e.jsx(da,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.hideDetails"})]}):e.jsxs(e.Fragment,{children:[e.jsx(ca,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.showDetails"})]}),e.jsxs("span",{className:"ml-1 text-muted-foreground",children:["(",v.length,")"]})]}),!s&&(c.length>0?e.jsxs(L,{onClick:V,children:[e.jsx(X,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.markAsPacked"}),e.jsxs("span",{className:"ml-1 text-muted-foreground",children:["(",c.length,")"]})]}):e.jsxs(L,{disabled:!0,children:[e.jsx(X,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.noPackableOrders"})]})),!s&&(m.length>0?e.jsxs(L,{onClick:P,children:[e.jsx(le,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.unpack"}),e.jsxs("span",{className:"ml-1 text-muted-foreground",children:["(",m.length,")"]})]}):e.jsxs(L,{disabled:!0,children:[e.jsx(le,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.noUnpackableOrders"})]})),!s&&(i.length>0?e.jsxs(L,{onClick:()=>o(!0),children:[e.jsx(de,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.downloadLabels"}),e.jsxs("span",{className:"ml-1 text-muted-foreground",children:["(",i.length,")"]})]}):e.jsxs(L,{disabled:!0,children:[e.jsx(de,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.noLabels"})]})),e.jsxs(L,{onClick:h,children:[e.jsx(_e,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.exportCSV"}),e.jsxs("span",{className:"ml-1 text-muted-foreground",children:["(",t.length,")"]})]}),!s&&e.jsxs(L,{onClick:()=>a(!0),children:[e.jsx(ua,{className:"mr-2 h-4 w-4"}),n.formatMessage({id:"toolbar.bulkAdvancedEdit"}),e.jsxs("span",{className:"ml-1 text-muted-foreground",children:["(",t.length,")"]})]})]})]}),!s&&e.jsxs(e.Fragment,{children:[e.jsx(We,{open:p,onOpenChange:o,selectedOrders:r,onComplete:d}),e.jsx(Wa,{open:x,onOpenChange:a,orders:r,onComplete:d})]})]})}const Pt=({orders:t,page_count:d,order_statuses:b,order_event_types:s=[],accounts:n,readOnly:l=!1})=>{const[p,o]=g.useState(null),[x,a]=g.useState(null),[i,r]=g.useState(null),[c,m]=g.useState(null),[h,v]=g.useState(null),{handleEvent:E,removeHandleEvent:_}=W();g.useEffect(()=>{const u=E("export_ready",({url:M})=>{const N=document.createElement("a");N.href=M,N.setAttribute("download",""),document.body.appendChild(N),N.click(),document.body.removeChild(N)});return()=>_(u)},[]);const D=ht(l?{readOnly:!0}:{onDownloadLabel:u=>o(u),onGetShippingLabel:u=>v(u),onAdvancedEdit:u=>a(u),onEditNote:u=>r(u),onReissueInvoice:u=>m(u)}
1),{table:V}=Ga({data:t,columns:D,pageCount:d,initialState:{sorting:[{id:"order_date",desc:!0}],pagination:{pageSize:20,pageIndex:0},columnPinning:{left:["select"],right:l?["expand"]:["expand","actions"]},columnVisibility:{images:!1,account_login:!1,vinted_transaction_id:!1,customer_login:!1,carrier_name:!1,payout:!1,total_cost:!1,gross_profit:!1,skus:!1,locations:!1}},getRowId:u=>u.id,enableRowSelection:!0,getRowCanExpand:u=>u.original.items&&u.original.items.length>0,eventName:"update_table"}),P=g.useCallback(u=>e.jsx(kt,{items:u.original.items,currency:u.original.currency,countryCode:u.original.account_country_code,readOnly:l}),[l]);return e.jsxs(e.Fragment,{children:[e.jsx(Za,{table:V,renderExpandedRow:P,tableId:"vinted-orders",children:e.jsx(Vt,{table:V,orderStatuses:b,orderEventTypes:s,accounts:n,readOnly:l})}),!l&&e.jsxs(e.Fragment,{children:[e.jsx(We,{open:p!==null,onOpenChange:u=>!u&&o(null),selectedOrders:p?[p]:[],onComplete:()=>o(null)}),e.jsx(Qa,{open:x!==null,onOpenChange:u=>!u&&a(null),order:x,onComplete:()=>a(null)}),e.jsx(Ya,{open:i!==null,onOpenChange:u=>!u&&r(null),order:i,onComplete:()=>r(null)}),e.jsx(Ja,{open:c!==null,onOpenChange:u=>!u&&m(null),orderId:c?.id??null}),h&&h.vinted_conversation_id!=null&&e.jsx(tt,{open:!!h,onOpenChange:u=>{u||v(null)},accountId:h.account_id,transactionId:h.vinted_transaction_id,conversationId:String(h.vinted_conversation_id),onOrdered:()=>v(null)})]})]})},Jt=({locale:t="en",orders:d,page_count:b,order_statuses:s,order_event_types:n,accounts:l,readOnly:p=!1})=>{const o=Dt(t);return e.jsx(ma,{locale:t,messages:o,children:e.jsx(Ha,{children:e.jsx($a,{children:e.jsx(Pt,{orders:d,page_count:b,order_statuses:s,order_event_types:n,accounts:l,readOnly:p})})})})};export{Jt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.