1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fd8e35f0-f40e-4fcc-9807-56857d4910c0",e._sentryDebugIdIdentifier="sentry-dbid-fd8e35f0-f40e-4fcc-9807-56857d4910c0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7763],{98383:function(e,n,t){t.r(n),t.d(n,{default:function(){return S}});var l=t(57437),r=t(2265),i=t(43949),s=t(32603),a=t(38143),o=t(17604),d=t(66766),c=t(61377),u=t(19484),x=t(24112),h=t(64537),p=t(43699),b=t(66020),m=t(11208),f=t(64587),g=t(36295),v=t(94070);let y="__any__";function w(e){let{title:n,children:t}=e;return(0,l.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,l.jsx)("h3",{className:"text-nl-caption font-semibold uppercase tracking-wide text-nl-text-secondary",children:n}),t]})}function j(e){var n;let{open:t,onOpenChange:r,values:s,onChange:a,onApply:o,availableStages:d,zones:u,riders:x,branches:h}=e,{t:p}=(0,i.$G)(),b="newLook.orderLogs.filters",j=v.Ng.filter(e=>d.includes(e));return(0,l.jsx)(m.e,{open:t,onOpenChange:r,title:p("".concat(b,".title"),"Filters"),closeLabel:p("newLook.orderLogs.ui.close","Close"),footer:(0,l.jsx)(c.B,{variant:"yellow",onClick:()=>{o(),r(!1)},children:p("".concat(b,".apply"),"Show changes")}),children:(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)(w,{title:p("".concat(b,".stages"),"Stages"),children:(0,l.jsx)(f.tQ,{label:p("".concat(b,".stages"),"Stages"),value:s.stages,onChange:e=>a({stages:e}),options:j.map(e=>({value:e,label:p(v.al[e],e)}))})}),(0,l.jsx)(w,{title:p("".concat(b,".deliveryTypes"),"Delivery type"),children:(0,l.jsx)(f.tQ,{label:p("".concat(b,".deliveryTypes"),"Delivery type"),value:s.deliveryTypes,onChange:e=>a({deliveryTypes:e}),options:v.yR.map(e=>({value:e.value,label:p(e.labelKey,e.value)}))})}),(0,l.jsx)(w,{title:p("".concat(b,".zones"),"Delivery zone"),children:(0,l.jsx)(f.tQ,{label:p("".concat(b,".zones"),"Delivery zone"),value:s.blockIds,onChange:e=>a({blockIds:e}),options:[...u.map(e=>({value:e.id,label:e.label})),{value:g.S,label:p("".concat(b,".unzoned"),"No zone")}]})}),(0,l.jsx)(w,{title:p("".concat(b,".branches"),"Branch"),children:(0,l.jsx)(f.tQ,{label:p("".concat(b,".branches"),"Branch"),value:s.branchIds,onChange:e=>a({branchIds:e}),options:[...h.map(e=>({value:e.id,label:e.name})),{value:g.E,label:p("".concat(b,".storeLevel"),"Store-level (no branch)")}]})}),(0,l.jsx)(w,{title:p("".concat(b,".orderKinds"),"Order kind"),children:(0,l.jsx)(f.tQ,{label:p("".concat(b,".orderKinds"),"Order kind"),value:s.orderKinds,onChange:e=>a({orderKinds:e}),options:v.xF.map(e=>({value:e,label:p(v.Kt[e],v.fy[e])}))})}),x.length>0&&(0,l.jsx)(w,{title:p("".concat(b,".rider"),"Rider"),children:(0,l.jsx)(f.Y_,{label:p("".concat(b,".rider"),"Rider"),value:null!==(n=s.partnerId)&&void 0!==n?n:y,onChange:e=>a({partnerId:e===y?null:e}),options:[{value:y,label:p("".concat(b,".anyRider"),"Any rider")},...x.map(e=>({value:e.id,label:e.name}))]})})]})})}var k=t(74227);let N="newLook.orderLogs";function S(){let{t:e}=(0,i.$G)(),n=(0,a.d)(),t=(0,s.v9)(e=>e.orderStageLogs.error),m=function(e){let{t:n}=(0,i.$G)(),t="newLook.orderLogs.columns",r="text-nl-sub text-nl-text-primary";return[{id:"when",header:e?n("".concat(t,".whenIn"),"When ({{timezone}})",{timezone:e}):n("".concat(t,".when"),"When"),width:"w-[160px]",cell:e=>(0,l.jsx)("span",{className:"text-nl-sub tabular-nums text-nl-text-primary",dir:"ltr",children:(0,k.e0)(e.occurredAt)})},{id:"order",header:n("".concat(t,".order"),"Order"),width:"w-[110px]",cell:e=>(0,l.jsx)("span",{className:"text-nl-body font-semibold text-nl-text-primary",children:e.orderNumber?"#".concat(e.orderNumber):"â"})},{id:"stage",header:n("".concat(t,".stage"),"Stage"),cell:e=>(0,l.jsx)(x.VL,{tone:"info",children:e.stage})},{id:"kind",header:n("".concat(t,".orderKind"),"Order kind"),width:"w-[140px]",hideBelow:"lg",cell:e=>{var t,i;return(0,l.jsx)("span",{className:r,children:n(null!==(t=v.Kt[e.orderKind])&&void 0!==t?t:v.Kt.other,null!==(i=v.fy[e.orderKind])&&void 0!==i?i:v.fy.other)}
1)}},{id:"deliveryType",header:n("".concat(t,".deliveryType"),"Delivery type"),width:"w-[130px]",hideBelow:"lg",cell:e=>{var n;return(0,l.jsx)("span",{className:r,children:null!==(n=e.deliveryType)&&void 0!==n?n:"â"})}},{id:"zone",header:n("".concat(t,".zone"),"Zone"),width:"w-[130px]",hideBelow:"md",cell:e=>(0,l.jsx)("span",{className:r,children:(0,l.jsx)(k.ld,{row:e})})},{id:"rider",header:n("".concat(t,".rider"),"Rider"),width:"w-[130px]",hideBelow:"md",cell:e=>(0,l.jsx)("span",{className:r,children:(0,l.jsx)(k.Hv,{row:e})})},{id:"branch",header:n("".concat(t,".branch"),"Branch"),width:"w-[130px]",cell:e=>(0,l.jsx)("span",{className:r,children:(0,l.jsx)(k.I0,{row:e})})},{id:"note",header:n("".concat(t,".note"),"Note"),width:"w-[160px]",hideBelow:"lg",cell:e=>{var n;return(0,l.jsx)("span",{className:"text-nl-small text-nl-text-secondary",children:null!==(n=e.note)&&void 0!==n?n:"â"})}}]}(n.timezone),[f,g]=(0,r.useState)(!1),y=n.draft,w=e=>n.setDraft(n=>({...n,...e})),S=y.stages.length+y.deliveryTypes.length+y.blockIds.length+y.branchIds.length+y.orderKinds.length+(y.partnerId?1:0),C=0===n.summary.transitions;return n.permissionsLoading?(0,l.jsx)("div",{className:"flex min-h-[60vh] items-center justify-center",children:(0,l.jsx)("span",{className:"h-8 w-8 animate-spin rounded-full border-2 border-nl-control border-t-nl-blue","aria-label":e("Loading...")})}):n.canViewOrderLogs?(0,l.jsxs)(d.w,{title:e("".concat(N,".title"),"Order stage logs"),subtitle:e("".concat(N,".subtitle"),"Every stage change, by the day it happened."),secondaryActions:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.B,{onClick:()=>window.print(),disabled:n.loading||C,children:e("".concat(N,".print"),"Print")}),(0,l.jsxs)(c.B,{onClick:n.exportCsv,loading:n.exporting,disabled:n.loading||C,children:[(0,l.jsx)(b.ve,{})," ",e("".concat(N,".export"),"Export CSV")]})]}),children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("form",{className:"flex flex-wrap items-end gap-3",onSubmit:e=>{e.preventDefault(),n.handleApply()},children:[(0,l.jsx)(u.sl,{label:e("".concat(N,".from"),"From"),children:(0,l.jsx)(u.t4,{type:"date",value:y.startDate,max:y.endDate,onChange:e=>w({startDate:e.target.value})})}),(0,l.jsx)(u.sl,{label:e("".concat(N,".to"),"To"),children:(0,l.jsx)(u.t4,{type:"date",value:y.endDate,min:y.startDate,onChange:e=>w({endDate:e.target.value})})}),(0,l.jsx)(u.sl,{label:e("".concat(N,".search"),"Order number"),className:"min-w-[180px] flex-1",children:(0,l.jsx)(u.t4,{value:y.searchKey,placeholder:e("".concat(N,".searchPlaceholder"),"e.g. 10482"),onChange:e=>w({searchKey:e.target.value})})}),(0,l.jsxs)(c.B,{type:"button",onClick:()=>g(!0),children:[e("".concat(N,".filters.title"),"Filters"),(0,l.jsx)(x.bW,{count:S,tone:"brand"})]}),(0,l.jsx)(c.B,{type:"submit",variant:"ink",disabled:n.loading,children:e("".concat(N,".apply"),"Apply")}),(0,l.jsx)(c.B,{type:"button",variant:"ghost",onClick:n.handleReset,disabled:n.loading,children:e("".concat(N,".reset"),"Reset")})]}),(0,l.jsxs)(h.gi,{label:e("".concat(N,".summary.label"),"Summary"),children:[(0,l.jsx)(h.d6,{label:e("".concat(N,".summary.transitions"),"Stage changes"),value:n.summary.transitions.toLocaleString(),caption:e("".concat(N,".summary.transitionsHint"),"One row per change"),loading:n.loading}),(0,l.jsx)(h.d6,{label:e("".concat(N,".summary.orders"),"Orders involved"),value:n.summary.distinctOrders.toLocaleString(),caption:e("".concat(N,".summary.ordersHint"),"An order can change stage more than once"),loading:n.loading}),(0,l.jsx)(h.d6,{label:e("".concat(N,".summary.storeLevel"),"Store-level"),value:n.summary.storeLevelTransitions.toLocaleString(),caption:e("".concat(N,".summary.storeLevelHint"),"No branch, counted under every branch"),loading:n.loading}),(0,l.jsx)(h.d6,{label:e("".concat(N,".summary.unzoned"),"No delivery zone"),value:n.summary.unzonedTransitions.toLocaleString(),caption:e("".concat(N,".summary.unzonedHint"),"Order has no zone"),loading:n.loading})]}),n.timezone&&(0,l.jsx)(o.cg,{tone:"info",children:e("".concat(N,".timezoneNote"),"Days are your storeâs local days ({{timezone}}).",{timezone:n.timezone})}),n.branchSelected&&n.summary.storeLevelTransitions>0&&(0,l.jsx)(o.cg,{tone:"warning",children:e("".concat(N,".storeLevelWarning"),"Store-level changes belong to every branch. Do not add branch figures together, or they are counted more than once.")}),(0,l.jsx)(p.f,{caption:e("".concat(N,".title"),"Order stage logs"),columns:m,rows:n.rows,getRowId:e=>e.id,loading:n.loading,error:t?(0,l.jsx)(o.z2,{title:e("".concat(N,".error"),"Couldn't load order logs"),onRetry:n.handleApply,retryLabel:e("".concat(N,".retry"),"Try again")}
1):void 0,empty:(0,l.jsx)(o.iF,{variant:"plain",pili:"curious",title:e("".concat(N,".empty"),"No stage changes in this range"),description:e("".concat(N,".emptyBody"),"Try a wider date range or clear a filter.")}),footer:n.hasMore?(0,l.jsx)("div",{className:"flex justify-center p-3",children:(0,l.jsx)(c.B,{onClick:n.loadMore,loading:n.loadingMore,children:e("".concat(N,".loadMore"),"Load more")})}):void 0})]}),(0,l.jsx)(j,{open:f,onOpenChange:g,values:y,onChange:w,onApply:n.handleApply,availableStages:n.availableStages,zones:n.zones,riders:n.riders,branches:n.branches})]}):(0,l.jsx)("div",{className:"flex min-h-[60vh] items-center justify-center px-6",children:(0,l.jsx)(o.yJ,{title:e("".concat(N,".noAccess"),"You cannot see order logs"),description:e("".concat(N,".noAccessBody"),"This needs the view orders permission. Ask the store owner.")})})}},61377:function(e,n,t){t.d(n,{B:function(){return o}});var l=t(57437),r=t(2265),i=t(32444);let s={yellow:"bg-nl-yellow text-nl-ink hover:brightness-95",ink:"bg-nl-ink text-white hover:bg-nl-text-primary",outline:"border border-nl-control bg-nl-card text-nl-text-primary hover:bg-nl-page",ghost:"text-nl-text-secondary hover:bg-nl-fill hover:text-nl-text-primary",link:"px-0 text-nl-blue hover:underline","soft-danger":"bg-nl-danger-soft text-nl-danger hover:brightness-95","soft-warning":"bg-nl-warning-soft text-nl-warning hover:brightness-95","soft-blue":"bg-nl-blue-soft text-nl-blue hover:brightness-95",whatsapp:"bg-nl-whatsapp text-white hover:brightness-95"},a={sm:"h-8 gap-1.5 px-3 text-nl-small",md:"h-10 gap-2 px-4 text-nl-sub",lg:"h-12 gap-2 px-5 text-nl-body"},o=r.forwardRef(function(e,n){let{variant:t="outline",size:r="md",className:o,type:d="button",loading:c=!1,disabled:u,children:x,...h}=e;return(0,l.jsxs)("button",{ref:n,type:d,disabled:u||c,"aria-busy":c||void 0,className:(0,i.U)("inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-nl-control font-semibold transition","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a[r],s[t],o),...h,children:[c&&(0,l.jsx)("span",{"aria-hidden":"true",className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-e-transparent"}),x]})})},64587:function(e,n,t){t.d(n,{J3:function(){return d},Y_:function(){return s},tQ:function(){return a},yg:function(){return o}});var l=t(57437);t(2265);var r=t(32444);function i(e){var n,t;if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let l=Array.from(e.currentTarget.querySelectorAll("button[role]:not(:disabled)")),r=l.indexOf(document.activeElement);if(0===l.length||-1===r)return;let i=(null===(t=e.currentTarget.closest("[dir]"))||void 0===t?void 0:null===(n=t.getAttribute("dir"))||void 0===n?void 0:n.toLowerCase())==="rtl",s=r;s="Home"===e.key?0:"End"===e.key?l.length-1:e.key===(i?"ArrowLeft":"ArrowRight")?(r+1)%l.length:(r-1+l.length)%l.length,e.preventDefault(),l[s].focus(),l[s].click()}function s(e){let{options:n,value:t,onChange:s,label:a,size:o="md",tone:d="ink",scroll:c=!1,trailing:u,className:x}=e;return(0,l.jsxs)("div",{role:"radiogroup","aria-label":a,onKeyDown:i,className:(0,r.U)("flex gap-2",c?"flex-nowrap items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden":"flex-wrap",x),children:[n.map(e=>{let n=e.value===t;return(0,l.jsxs)("button",{type:"button",role:"radio","aria-checked":n,tabIndex:n?0:-1,disabled:e.disabled,onClick:()=>s(e.value),className:(0,r.U)("inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue focus-visible:ring-offset-1 disabled:opacity-50","sm"===o?"h-8 px-3 text-nl-small":"h-9 px-3.5 text-nl-body",n?"accent"===d?"border border-transparent bg-nl-blue-soft text-nl-blue":"bg-nl-ink text-white":"border border-nl-control bg-nl-card text-nl-text-primary hover:bg-nl-page"),children:[e.label,void 0!==e.count&&(0,l.jsx)("span",{className:(0,r.U)("nl-num","accent"===d&&!n&&"text-nl-text-tertiary"),children:e.count})]},e.value)}),u]})}function a(e){let{options:n,value:t,onChange:i,label:s,allLabel:a,className:o}=e,d=e=>(0,r.U)("inline-flex h-9 items-center gap-1.5 whitespace-nowrap rounded-full px-3.5 text-nl-body font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue focus-visible:ring-offset-1 disabled:opacity-50",e?"bg-nl-ink text-white":"border border-nl-control bg-nl-card text-nl-text-primary hover:bg-nl-page");return(0,l.jsxs)("div",{role:"group","aria-label":s,className:(0,r.U)("flex flex-wrap gap-2",o),children:[a&&(0,l.jsx)("button",{type:"button","aria-pressed":0===t.length,onClick:()=>i([]),className:d(0===t.length),children:a}),n.map(e=>{let n=t.includes(e.value);return(0,l.jsxs)("button",{type:"button","aria-pressed":n,disabled:e.disabled,onClick:()=>
1i(n?t.filter(n=>n!==e.value):[...t,e.value]),className:d(n),children:[e.label,void 0!==e.count&&(0,l.jsx)("span",{className:"nl-num",children:e.count})]},e.value)})]})}function o(e){let{options:n,value:t,onChange:s,label:a,size:o="md",fullWidth:d=!1,role:c="tablist",className:u}=e,x="radiogroup"===c;return(0,l.jsx)("div",{role:c,"aria-label":a,onKeyDown:i,className:(0,r.U)("rounded-xl bg-nl-fill p-1",d?"flex w-full":"inline-flex",u),children:n.map(e=>{let n=e.value===t;return(0,l.jsxs)("button",{type:"button",role:x?"radio":"tab",...x?{"aria-checked":n}:{"aria-selected":n},lang:e.lang,dir:e.dir,"aria-describedby":e.describedBy,tabIndex:n?0:-1,disabled:e.disabled,onClick:()=>s(e.value),className:(0,r.U)("inline-flex items-center gap-1.5 whitespace-nowrap rounded-lg text-nl-sub transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue disabled:opacity-50","sm"===o?"h-7 px-2.5":"h-8 px-3.5",d&&"min-w-0 flex-1 justify-center",n?"bg-nl-card font-semibold text-nl-text-primary shadow-nl-card":"text-nl-text-secondary hover:text-nl-text-primary"),children:[e.label,e.adornment,void 0!==e.count&&(0,l.jsx)("span",{className:"nl-num text-nl-text-tertiary",children:e.count})]},e.value)})})}function d(e){let{options:n,value:t,onChange:s,label:a,className:o}=e;return(0,l.jsx)("div",{role:"tablist","aria-label":a,onKeyDown:i,className:(0,r.U)("flex gap-6 overflow-x-auto overflow-y-hidden shadow-[inset_0_-1px_0_0] shadow-nl-separator [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",o),children:n.map(e=>{let n=e.value===t;return(0,l.jsxs)("button",{type:"button",role:"tab","aria-selected":n,tabIndex:n?0:-1,disabled:e.disabled,onClick:()=>s(e.value),className:(0,r.U)("inline-flex h-10 shrink-0 items-center gap-1.5 whitespace-nowrap border-b-2 text-nl-body transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-nl-blue disabled:opacity-50",n?"border-nl-ink font-semibold text-nl-text-primary":"border-transparent text-nl-text-secondary hover:text-nl-text-primary"),children:[e.label,void 0!==e.count&&(0,l.jsx)("span",{className:"nl-num rounded-full bg-nl-fill px-1.5 text-nl-caption font-semibold text-nl-text-body",children:e.count})]},e.value)})})}},11208:function(e,n,t){t.d(n,{e:function(){return o}});var l=t(57437);t(2265);var r=t(49027),i=t(66020),s=t(32444),a=t(30727);function o(e){let{open:n,onOpenChange:t,title:o,description:d,closeLabel:c,footer:u,size:x="md",onPanelElement:h,children:p}=e;return(0,l.jsx)(r.fC,{open:n,onOpenChange:t,children:(0,l.jsxs)(r.h_,{children:[(0,l.jsx)(r.aV,{className:"nl-portal fixed inset-0 z-[200] bg-nl-scrim data-[state=open]:animate-in data-[state=open]:fade-in-0"}),(0,l.jsxs)(r.VY,{ref:h,...d?{}:{"aria-describedby":void 0},onInteractOutside:a.n,onEscapeKeyDown:e=>{e.target instanceof Element&&e.target.closest('[data-ui="dialog"]')&&e.preventDefault()},className:(0,s.U)("nl-portal fixed inset-y-0 end-0 z-[201] flex w-full flex-col bg-nl-card shadow-nl-pop focus:outline-none","md"===x?"sm:max-w-[400px]":"sm:max-w-[560px]","data-[state=open]:animate-in data-[state=open]:fade-in-0"),children:[(0,l.jsxs)("header",{className:"flex items-start justify-between gap-3 px-5 pb-3 pt-5",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)(r.Dx,{className:"text-nl-h2 font-semibold text-nl-text-primary",children:o}),d&&(0,l.jsx)(r.dk,{className:"mt-1 text-nl-sub text-nl-text-secondary",children:d})]}),(0,l.jsx)(r.x8,{"aria-label":c,className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg text-nl-text-secondary hover:bg-nl-page focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue",children:(0,l.jsx)(i.Tw,{size:20})})]}),(0,l.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 pb-5",children:p}),u&&(0,l.jsx)("div",{className:"flex flex-wrap justify-end gap-2.5 border-t border-nl-separator px-5 py-4",children:u})]})]})})}},19484:function(e,n,t){t.d(n,{EQ:function(){return x},Q4:function(){return h},ow:function(){return o},sl:function(){return d},t4:function(){return u}});
1var l=t(57437),r=t(2265),i=t(66020),s=t(32444);let a=(0,r.createContext)(null);function o(){return(0,r.useContext)(a)}function d(e){let{label:n,helper:t,error:i,labelSuffix:o,id:d,className:c,children:u}=e,x=(0,r.useId)(),h=null!=d?d:"nl-field-".concat(x),p="".concat(h,"-note"),b=i||t;return(0,l.jsx)(a.Provider,{value:{id:h,describedBy:b?p:void 0,invalid:!!i},children:(0,l.jsxs)("div",{className:(0,s.U)("flex min-w-0 flex-col gap-1.5",c),children:[(0,l.jsxs)("label",{htmlFor:h,className:"flex items-center gap-1.5 text-nl-small font-medium text-nl-text-body",children:[n,o]}),u,b&&(0,l.jsx)("p",{id:p,role:i?"alert":void 0,className:(0,s.U)("text-nl-small",i?"text-nl-danger-text":"text-nl-text-secondary"),children:b})]})})}let c="w-full rounded-nl-control border bg-nl-card text-nl-sub text-nl-text-primary transition-colors placeholder:text-nl-text-tertiary disabled:cursor-not-allowed disabled:bg-nl-page disabled:text-nl-text-secondary",u=r.forwardRef(function(e,n){var t;let{prefix:r,suffix:i,invalid:a,boxClassName:d,className:u,id:x,...h}=e,p=o(),b=null!==(t=null!=a?a:null==p?void 0:p.invalid)&&void 0!==t&&t;return(0,l.jsxs)("div",{className:(0,s.U)(c,"flex h-10 items-center gap-2 px-3",b?"border-nl-danger-text focus-within:ring-1 focus-within:ring-nl-danger-text":"border-nl-control focus-within:border-nl-text-primary focus-within:ring-[0.5px] focus-within:ring-nl-text-primary",h.disabled&&"bg-nl-page",d),children:[r&&(0,l.jsx)("span",{className:"shrink-0 text-nl-text-secondary",children:r}),(0,l.jsx)("input",{ref:n,id:null!=x?x:null==p?void 0:p.id,"aria-invalid":b||void 0,"aria-describedby":null==p?void 0:p.describedBy,className:(0,s.U)("h-full min-w-0 flex-1 bg-transparent outline-none placeholder:text-nl-text-tertiary disabled:cursor-not-allowed",u),...h}),i&&(0,l.jsx)("span",{className:"shrink-0 text-nl-text-secondary",children:i})]})}),x=r.forwardRef(function(e,n){var t;let{invalid:r,className:i,id:a,rows:d=4,...u}=e,x=o(),h=null!==(t=null!=r?r:null==x?void 0:x.invalid)&&void 0!==t&&t;return(0,l.jsx)("textarea",{ref:n,id:null!=a?a:null==x?void 0:x.id,rows:d,"aria-invalid":h||void 0,"aria-describedby":null==x?void 0:x.describedBy,className:(0,s.U)(c,"px-3 py-2.5 outline-none",h?"border-nl-danger-text focus:ring-1 focus:ring-nl-danger-text":"border-nl-control focus:border-nl-text-primary focus:ring-[0.5px] focus:ring-nl-text-primary",i),...u})}),h=r.forwardRef(function(e,n){var t;let{options:r,placeholder:a,invalid:d,className:u,id:x,...h}=e,p=o(),b=null!==(t=null!=d?d:null==p?void 0:p.invalid)&&void 0!==t&&t;return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("select",{ref:n,id:null!=x?x:null==p?void 0:p.id,"aria-invalid":b||void 0,"aria-describedby":null==p?void 0:p.describedBy,className:(0,s.U)(c,"h-10 appearance-none pe-9 ps-3 outline-none",b?"border-nl-danger-text":"border-nl-control focus:border-nl-text-primary focus:ring-[0.5px] focus:ring-nl-text-primary",u),...h,children:[void 0!==a&&(0,l.jsx)("option",{value:"",children:a}),r.map(e=>(0,l.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))]}),(0,l.jsx)(i.v4,{size:16,className:"pointer-events-none absolute end-3 top-1/2 -translate-y-1/2 text-nl-text-secondary"})]})})},64537:function(e,n,t){t.d(n,{d6:function(){return a},gi:function(){return o}});var l=t(57437);t(2265);var r=t(32444),i=t(59534),s=t(16204);function a(e){let{label:n,value:t,caption:a,tone:o="default",trend:d,trendLabels:c,comparison:u,change:x,formatChange:h,loading:p=!1,compact:b=!1,className:m}=e,f=null!=d?d:(0,s.I)(x),g=function(e,n,t){let l=!!t;if(!e)return l&&(null==n?void 0:n.unavailable)?{words:n.unavailable}:void 0;if("up"===e.kind||"down"===e.kind)return{indicator:!0,compared:l};let r="idle"===e.kind?null==n?void 0:n.idle:"same"===e.kind?null==n?void 0:n.same:null==n?void 0:n.new;if(r)return{words:r,compared:"same"===e.kind&&l}}(f,c,u),v=!!u;return(0,l.jsxs)("div",{className:(0,r.U)("flex min-w-0 flex-col rounded-2xl bg-nl-card shadow-nl-card",!b&&"gap-1 p-5 sm:p-6",!0===b&&"gap-0.5 p-3","phone"===b&&"gap-0.5 p-3 sm:gap-1 sm:p-6",m),children:[(0,l.jsx)("p",{className:(0,r.U)("text-nl-text-secondary",!0===b&&"text-nl-small","phone"===b&&"text-nl-small sm:truncate sm:text-nl-sub",!b&&"truncate text-nl-sub"),children:n}),p?(0,l.jsx)("span",{"aria-hidden":"true",className:(0,r.U)("my-1 animate-pulse rounded-md bg-nl-fill",!0===b&&"h-6 w-16","phone"===b&&"h-6 w-16 sm:h-8 sm:w-20",!b&&"h-8 w-20")}):(0,l.jsx)("p",{className:(0,r.U)("nl-num min-w-0 break-words text-nl-text-primary",!b&&"text-nl-h1 font-bold",!0===b&&"text-nl-h3 font-semibold","phone"===b&&"text-nl-h3 font-semibold sm:text-nl-h1 sm:font-bold"),children:t}),(v||!p&&g)&&(0,l.jsxs)("p",{className:"flex min-h-[18px] flex-wrap items-center gap-x-1.5 text-nl-small text-nl-text-secondary","data-testid":"nl-kpi-note",children:[!p&&(null==g?void 0:g.indicator)&&f&&(0,l.jsx)(i.Q,{trend:f,labels:c,formatPercent:h}),!p&&(null==g?void 0:g.words)&&(0,l.jsx)("span",{className:"font-medium text-nl-text-tertiary",children:g.words}),!p&&(null==g?void 0:g.compared)&&(0,l.jsx)("span",{children:u})]}),a&&(0,l.jsx)("p",{className:(0,r.U)("text-nl-small","danger"===o&&"text-nl-danger-text","warning"===o&&"text-nl-warning","default"===o&&"text-nl-text-secondary"),children:a})]})}function o(e){let{children:n,className:t,label:i,compact:s=!1}=e;return(0,l.jsx)("div",{role:"group","aria-label":i,className:(0,r.U)("grid gap-4",!s&&"grid-cols-1 sm:grid-cols-2 xl:grid-cols-4","phone"===s&&"grid-cols-2 gap-3 sm:gap-4 xl:grid-cols-4",!0===s&&"grid-cols-2 gap-3 md:auto-cols-fr md:grid-flow-col [&>:last-child:nth-child(odd)]:col-span-2 md:[&>:last-child:nth-child(odd)]:col-span-1",t),children:n})}},11145:function(e,n,t){t.d(n,{B:function(){return o}});
1var l=t(57437),r=t(2265),i=t(70085),s=t(66020),a=t(32444);function o(e){let{trigger:n,items:t,align:o="end",label:d}=e,[c,u]=(0,r.useState)(!1),x=(0,r.useRef)(!1);return(0,l.jsxs)(i.fC,{open:c,onOpenChange:u,children:[(0,l.jsx)(i.xz,{asChild:!0,onPointerDown:e=>{x.current="mouse"!==e.pointerType,x.current&&e.preventDefault()},onClick:()=>{x.current&&(x.current=!1,u(e=>!e))},children:n}),(0,l.jsx)(i.Uv,{children:(0,l.jsx)(i.VY,{align:o,sideOffset:6,"aria-label":d,className:"nl-portal z-[210] min-w-[200px] rounded-xl border border-nl-separator bg-nl-card p-1.5 shadow-nl-pop data-[state=open]:animate-in data-[state=open]:fade-in-0",children:t.map(e=>(0,l.jsxs)(i.ck,{disabled:e.disabled,onSelect:e.onSelect,className:(0,a.U)("flex h-9 cursor-pointer select-none items-center gap-2.5 rounded-lg px-2.5 text-nl-sub font-medium outline-none","data-[highlighted]:bg-nl-page data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",e.danger?"text-nl-danger-text":"text-nl-text-primary"),children:[e.icon,(0,l.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),e.checked&&(0,l.jsx)(s.nQ,{size:16,className:"text-nl-text-primary"})]},e.id))})})]})}},24112:function(e,n,t){t.d(n,{SC:function(){return c},VL:function(){return a},bW:function(){return o}});var l=t(57437);t(2265);var r=t(32444);let i={success:"bg-nl-success-soft text-nl-success",warning:"bg-nl-warning-soft text-nl-warning",danger:"bg-nl-danger-soft text-nl-danger-text",info:"bg-nl-blue-soft text-nl-blue",neutral:"bg-nl-fill text-nl-text-body",brand:"bg-nl-yellow-tint text-nl-text-primary"},s={success:"bg-nl-success-strong",warning:"bg-nl-warning",danger:"bg-nl-danger",info:"bg-nl-blue",neutral:"bg-nl-slate",brand:"bg-nl-yellow-deep"};function a(e){let{tone:n,children:t,dot:a=!1,className:o}=e;return(0,l.jsxs)("span",{"data-tone":n,className:(0,r.U)("inline-flex h-[26px] max-w-full shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full px-2.5 text-nl-caption font-semibold",i[n],o),children:[a&&(0,l.jsx)("span",{"aria-hidden":"true",className:(0,r.U)("h-1.5 w-1.5 rounded-full",s[n])}),(0,l.jsx)("span",{className:"truncate",children:t})]})}function o(e){let{count:n,tone:t="danger",max:i=99,label:s,className:a}=e;return!n||n<0?null:(0,l.jsx)("span",{"aria-label":s,className:(0,r.U)("nl-num inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-1.5 text-nl-caption font-semibold","danger"===t&&"bg-nl-danger-text text-white","neutral"===t&&"bg-nl-fill text-nl-text-body","brand"===t&&"bg-nl-yellow text-nl-ink",a),children:n>i?"".concat(i,"+"):n})}let d=["bg-nl-blue-soft text-nl-blue","bg-nl-warning-soft text-nl-warning","bg-nl-success-soft text-nl-success","bg-nl-danger-soft text-nl-danger-text","bg-nl-yellow-tint text-nl-text-primary"];function c(e){let{name:n,src:t,size:i=32,className:s}=e,a={width:i,height:i};return t?(0,l.jsx)("img",{src:t,alt:"",style:a,className:(0,r.U)("shrink-0 rounded-full object-cover",s)}):(0,l.jsx)("span",{"aria-hidden":"true",style:a,className:(0,r.U)("inline-flex shrink-0 items-center justify-center rounded-full font-semibold",i<=24?"text-nl-caption":"text-nl-small",function(e){var n;let t=0;for(let l of e)t=31*t+(null!==(n=l.codePointAt(0))&&void 0!==n?n:0)>>>0;return d[t%d.length]}(n),s),children:n.trim().split(/\s+/).filter(Boolean).slice(0,2).map(e=>{var n;return null!==(n=Array.from(e)[0])&&void 0!==n?n:""}).join("").toLocaleUpperCase()})}},90478:function(e,n,t){t.d(n,{q9:function(){return u},sR:function(){return h},wZ:function(){return x}});var l=t(57437),r=t(2265),i=t(50721),s=t(9270),a=t(61312),o=t(66020),d=t(32444),c=t(11407);function u(e){let{checked:n,onCheckedChange:t,label:r,labelledBy:s,describedBy:u,disabled:x,busy:h=!1,lockedReason:p,lockedTooltip:b=!0,id:m,className:f}=e,g=!!p,v=(0,l.jsx)(i.fC,{id:m,checked:n,onCheckedChange:g?()=>void 0:t,disabled:!g&&(x||h),"aria-disabled":g||void 0,"data-locked":g||void 0,"aria-label":s?void 0:r,"aria-labelledby":s,"aria-describedby":u,"aria-busy":h||void 0,className:(0,d.U)("relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","aria-disabled:cursor-not-allowed aria-disabled:opacity-50",n?"bg-nl-success":"bg-nl-fill",f),children:(0,l.jsx)(i.bU,{className:(0,d.U)("pointer-events-none flex h-[21px] w-[21px] items-center justify-center rounded-full bg-white shadow-[0_1px_3px_rgba(11,16,32,0.2)] transition-[margin]",n?"ms-[17.5px]":"ms-[1.5px]"),children:g&&(0,l.jsx)(o.mB,{size:11,strokeWidth:2.25,className:"text-nl-text-secondary"})})});return g&&b?(0,l.jsx)(a.zt,{delayDuration:150,children:(0,l.jsxs)(a.fC,{children:[(0,l.jsx)(a.xz,{asChild:!0,children:v}),(0,l.jsx)(c.L,{side:"top",children:p})]})}):v}function x(e){let{title:n,description:t,icon:i,control:s,controlBelow:a,details:c,className:x,...h}=e,p=(0,r.useId)(),b="nl-sr-".concat(p,"-t"),m=t?"nl-sr-".concat(p,"-d"):void 0,f=h.lockedReason?"nl-sr-".concat(p,"-l"):void 0,g=[m,f].filter(
1Boolean).join(" ")||void 0;return(0,l.jsxs)("div",{className:(0,d.U)("flex flex-wrap items-center gap-x-4 gap-y-3 py-4",x),children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 basis-56 items-center gap-4",children:[i&&(0,l.jsx)("span",{"aria-hidden":"true",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-nl-control bg-nl-page text-nl-text-body",children:i}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{id:b,className:"text-nl-body font-semibold text-nl-text-primary",children:n}),t&&(0,l.jsx)("p",{id:m,className:"text-nl-sub text-nl-text-secondary",children:t}),h.lockedReason&&(0,l.jsxs)("p",{id:f,className:"mt-1 flex items-center gap-1.5 text-nl-small text-nl-text-secondary",children:[(0,l.jsx)(o.mB,{size:14,className:"shrink-0"}),h.lockedReason]}),c]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-4 ms-auto",children:[s,(0,l.jsx)(u,{...h,lockedTooltip:!1,labelledBy:b,describedBy:g})]}),a&&(0,l.jsx)("div",{className:(0,d.U)("min-w-0 basis-full",i&&"ps-14"),children:a})]})}function h(e){let{checked:n,onCheckedChange:t,label:i,ariaLabel:a,description:c,disabled:u,id:x,className:h}=e,p=(0,r.useId)(),b=null!=x?x:"nl-cb-".concat(p),m=(0,l.jsx)(s.fC,{id:b,checked:n,onCheckedChange:e=>t(!0===e),disabled:u,"aria-label":i?void 0:a,className:(0,d.U)("flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-nl-check border border-nl-text-secondary bg-nl-card transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue focus-visible:ring-offset-1","data-[state=checked]:border-nl-ink data-[state=checked]:bg-nl-ink data-[state=indeterminate]:border-nl-ink data-[state=indeterminate]:bg-nl-ink","disabled:cursor-not-allowed disabled:opacity-50"),children:(0,l.jsx)(s.z$,{className:"text-white",children:"indeterminate"===n?(0,l.jsx)("span",{className:"block h-0.5 w-2.5 rounded bg-white"}):(0,l.jsx)(o.nQ,{size:13,strokeWidth:3})})});return i?(0,l.jsxs)("div",{className:(0,d.U)("flex items-start gap-2.5",h),children:[(0,l.jsx)("span",{className:"pt-px",children:m}),(0,l.jsxs)("label",{htmlFor:b,className:"min-w-0 cursor-pointer",children:[(0,l.jsx)("span",{className:"block text-nl-sub font-medium text-nl-text-primary",children:i}),c&&(0,l.jsx)("span",{className:"block text-nl-small text-nl-text-secondary",children:c})]})]}):(0,l.jsx)("span",{className:h,children:m})}},43699:function(e,n,t){t.d(n,{f:function(){return h}});var l=t(57437),r=t(2265),i=t(40148),s=t(90478),a=t(66020),o=t(32444);let d={start:"text-start",center:"text-center",end:"text-end"},c={sm:"hidden sm:table-cell",md:"hidden md:table-cell",lg:"hidden lg:table-cell"};function u(e){var n;let{col:t,sort:r,base:i}=e,s=(null==r?void 0:r.columnId)===t.id;return(0,l.jsx)("th",{scope:"col","aria-sort":s?(null==r?void 0:r.direction)==="asc"?"ascending":"descending":void 0,className:(0,o.U)(i,d[null!==(n=t.align)&&void 0!==n?n:"start"],t.width,t.hideBelow&&c[t.hideBelow]),children:t.sortable&&r?(0,l.jsxs)("button",{type:"button",onClick:()=>r.onChange(t.id,s&&"asc"===r.direction?"desc":"asc"),className:(0,o.U)("inline-flex items-center gap-1 rounded hover:text-nl-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nl-blue",s&&"text-nl-text-primary"),children:[t.header,s&&("asc"===r.direction?(0,l.jsx)(a.Hf,{size:12}):(0,l.jsx)(a.ve,{size:12}))]}):t.header})}function x(e){let{rows:n,cols:t,wideCol:r}=e;return(0,l.jsx)(l.Fragment,{children:Array.from({length:n}).map((e,n)=>(0,l.jsx)("tr",{"data-testid":"nl-table-skeleton",children:Array.from({length:t}).map((e,n)=>(0,l.jsx)("td",{className:"h-[72px] px-4 first:ps-5 last:pe-5 sm:first:ps-6 sm:last:pe-6",children:(0,l.jsx)("span",{"aria-hidden":"true",className:(0,o.U)("block h-4 animate-pulse rounded bg-nl-fill",n===r?"w-40":"w-16")})},n))},"sk-".concat(n)))})}function h(e){var n;let{columns:t,rows:a,getRowId:h,caption:p,onRowClick:b,renderExpanded:m,expandedRowId:f,selection:g,sort:v,loading:y=!1,skeletonRows:w=6,empty:j,error:k,footer:N,stickyHeader:S=!0,className:C}
1=e,L=a.map(h),z=null==g?void 0:g.canSelect,U=z?L.filter((e,n)=>z(a[n])):L,K=new Set(null!==(n=null==g?void 0:g.selected)&&void 0!==n?n:[]),D=U.filter(e=>K.has(e)).length,B=0!==D&&(D===U.length||"indeterminate"),A=t.length+(g?1:0),I=!y&&!k&&a.length>0,R=(e,n)=>{if(!g)return;let t=new Set(K);n?t.add(e):t.delete(e),g.onChange(Array.from(t))},{wrapRef:O,tableRef:T,overflowing:_}=function(){let e=r.useRef(null),n=r.useRef(null),[t,l]=r.useState(!1);return r.useEffect(()=>{let t=e.current,r=n.current;if(!t||!r||"undefined"==typeof ResizeObserver)return;let i=()=>l(r.scrollWidth>t.clientWidth+1),s=new ResizeObserver(i);return s.observe(t),s.observe(r),i(),()=>s.disconnect()},[]),{wrapRef:e,tableRef:n,overflowing:t}}(),P=(e,n)=>{if(!e.currentTarget.contains(e.target))return;let t=e.target.closest('a,button,input,select,textarea,label,[role="switch"],[role="checkbox"],[role="menuitem"],[data-nl-row-stop]');t&&e.currentTarget.contains(t)||null==b||b(n)},E=(0,o.U)("h-11 px-4 text-nl-caption font-semibold text-nl-text-tertiary first:ps-5 last:pe-5 sm:first:ps-6 sm:last:pe-6",S&&"lg:sticky lg:top-0 lg:z-10 lg:bg-nl-card lg:first:rounded-ss-2xl lg:last:rounded-se-2xl");return(0,l.jsxs)("div",{className:(0,o.U)("rounded-2xl bg-nl-card shadow-nl-card",C),"data-testid":"nl-table",children:[g&&!g.hideBar&&K.size>0&&(0,l.jsx)(i.c,{selection:g,count:K.size}),(0,l.jsx)("div",{ref:O,className:(0,o.U)("overflow-x-auto",S&&!_&&"lg:overflow-visible"),"data-overflowing":_||void 0,children:(0,l.jsxs)("table",{ref:T,className:"w-full border-collapse","aria-busy":y||void 0,children:[(0,l.jsx)("caption",{className:"sr-only",children:p}),(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"border-b border-nl-separator",children:[g&&(0,l.jsx)("th",{scope:"col",className:(0,o.U)(E,"w-12 pe-0"),children:(0,l.jsx)(s.sR,{checked:B,onCheckedChange:e=>{if(!g)return;let n=new Set(K);U.forEach(t=>e?n.add(t):n.delete(t)),g.onChange(Array.from(n))},ariaLabel:g.labels.selectAll,disabled:!I||0===U.length})}),t.map(e=>(0,l.jsx)(u,{col:e,sort:v,base:E},e.id))]})}),(0,l.jsxs)("tbody",{className:"divide-y divide-nl-separator",children:[y&&(0,l.jsx)(x,{rows:w,cols:A,wideCol:g?1:0}),!y&&(k||0===a.length)&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:A,className:"p-0",children:null!=k?k:j})}),I&&a.map((e,n)=>{let i=L[n],a=K.has(i),u=!!m&&f===i;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("tr",{onClick:b?n=>P(n,e):void 0,onKeyDown:b?n=>{"Enter"===n.key&&n.target===n.currentTarget&&b(e)}:void 0,tabIndex:b?0:void 0,"aria-expanded":m?u:void 0,className:(0,o.U)("transition-colors",b&&"cursor-pointer hover:bg-nl-page focus-visible:bg-nl-page focus-visible:[outline-style:solid] focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-nl-blue",a&&"bg-nl-yellow-soft"),children:[g&&(0,l.jsx)("td",{className:"w-12 py-4 pe-0 ps-5 sm:ps-6",children:(0,l.jsx)(s.sR,{checked:a,onCheckedChange:e=>R(i,e),ariaLabel:g.labels.selectRow(e),disabled:!!z&&!z(e)})}),t.map(n=>{var t;return(0,l.jsx)("td",{className:(0,o.U)("h-[72px] px-4 py-4 text-nl-sub text-nl-text-primary first:ps-5 last:pe-5 sm:first:ps-6 sm:last:pe-6",d[null!==(t=n.align)&&void 0!==t?t:"start"],n.width,n.hideBelow&&c[n.hideBelow],n.className),children:n.cell(e)},n.id)})]}),u&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:A,className:"p-0",children:m(e)})})]},i)})]})]})}),N&&!k&&(y||a.length>0)&&(0,l.jsx)("div",{className:"border-t border-nl-separator",children:N})]})}},11407:function(e,n,t){t.d(n,{L:function(){return a},_:function(){return o}});var l=t(57437),r=t(2265),i=t(61312),s=t(32444);function a(e){let{className:n,sideOffset:t=6,collisionPadding:r=8,align:a="center",...o}=e;return(0,l.jsx)(i.h_,{children:(0,l.jsx)(i.VY,{sideOffset:t,collisionPadding:r,align:a,...o,className:(0,s.U)("nl-portal z-[220] max-w-[240px] rounded-lg bg-nl-ink px-2.5 py-1.5 text-nl-small font-medium text-white shadow-nl-pop","origin-[var(--radix-tooltip-content-transform-origin)] duration-150 ease-out animate-in fade-in-0 zoom-in-[0.97] motion-reduce:animate-none",n)})})}function o(e){let{label:n,children:t,side:s="top",delay:o=250}=e,d=t.props["aria-label"]?t:r.cloneElement(t,{"aria-label":n});return(0,l.jsx)(i.zt,{delayDuration:o,children:(0,l.jsxs)(i.fC,{children:[(0,l.jsx)(i.xz,{asChild:!0,children:d}),(0,l.jsx)(a,{side:function(e){if("top"===e||"bottom"===e)return e;let n="undefined"!=typeof document&&"rtl"===document.documentElement.dir;return"end"===e?n?"left":"right":n?"right":"left"}(s),children:n})]})})}},59534:function(e,n,t){t.d(n,{Q:function(){return s}});
1var l=t(57437);t(2265);var r=t(66020),i=t(32444);function s(e){let{trend:n,labels:t,formatPercent:s=e=>"".concat(e,"%"),size:a="md",title:o}=e;if("up"!==n.kind&&"down"!==n.kind){let e="idle"===n.kind?null==t?void 0:t.idle:null==t?void 0:t[n.kind];return e?(0,l.jsx)("span",{className:"text-nl-small font-medium text-nl-text-tertiary",title:o,children:e}):null}let d="up"===n.kind,c=s(n.percent);return(0,l.jsxs)("span",{className:(0,i.U)("inline-flex items-center gap-0.5 text-nl-small font-semibold",d?"text-nl-success":"text-nl-danger-text"),title:o,children:[d?(0,l.jsx)(r.uH,{size:"sm"===a?12:14}):(0,l.jsx)(r.$m,{size:"sm"===a?12:14}),(0,l.jsx)("span",{"aria-hidden":!!t||void 0,children:"".concat(d?"+":"â").concat(c)}),t&&(0,l.jsx)("span",{className:"sr-only",children:d?t.up(c):t.down(c)})]})}},16204:function(e,n,t){function l(e,n){if(void 0===e||void 0===n||!Number.isFinite(e)||!Number.isFinite(n)||e<0||n<0)return;if(0===e&&0===n)return{kind:"idle"};if(0===n)return{kind:"new"};let t=(e-n)/n*100,l=Math.round(Math.abs(t));return 0===l?{kind:"same"}:{kind:t>0?"up":"down",percent:l}}function r(e){if(null==e||!Number.isFinite(e))return;let n=Math.round(Math.abs(e));return 0===n?{kind:"same"}:{kind:e>0?"up":"down",percent:n}}t.d(n,{A:function(){return l},I:function(){return r}})},32444:function(e,n,t){t.d(n,{U:function(){return i}});var l=t(61994);let r=(0,t(53335).q7)({extend:{classGroups:{"font-size":[{text:["nl-caption","nl-small","nl-sub","nl-body","nl-headline","nl-h3","nl-h2","nl-h1"]}],rounded:[{rounded:["nl-control","nl-tip","nl-check"]}]}}});function i(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return r((0,l.W)(n))}},30727:function(e,n,t){t.d(n,{n:function(){return l}});function l(e){let n=e.target;n instanceof Element&&(!n.isConnected||n.closest('[role="dialog"]'))&&e.preventDefault()}},43049:function(e,n,t){t.d(n,{$c:function(){return s},CR:function(){return r},bt:function(){return i}});let l={tour:{titleKey:"newLook.videos.tour",url:"",durationSeconds:124},designStudio:{titleKey:"newLook.videos.designStudio",url:"",durationSeconds:120},designPages:{titleKey:"newLook.videos.designPages",url:"",durationSeconds:90},blogPosts:{titleKey:"newLook.videos.blogPosts",url:"",durationSeconds:90},whatsNew:{titleKey:"newLook.videos.whatsNew",url:"",durationSeconds:60},connectPayments:{titleKey:"newLook.videos.connectPayments",url:"",durationSeconds:112},deliveryAreas:{titleKey:"newLook.videos.deliveryAreas",url:"",durationSeconds:90},testOrder:{titleKey:"newLook.videos.testOrder",url:"",durationSeconds:70},openingHours:{titleKey:"newLook.videos.openingHours",url:"",durationSeconds:60},welcomeDiscount:{titleKey:"newLook.videos.welcomeDiscount",url:"",durationSeconds:60},inviteStaff:{titleKey:"newLook.videos.inviteStaff",url:"",durationSeconds:60},ownDomain:{titleKey:"newLook.videos.ownDomain",url:"",durationSeconds:60},addProductsBulk:{titleKey:"newLook.videos.addProductsBulk",url:"",durationSeconds:150},acceptAndPack:{titleKey:"newLook.videos.acceptAndPack",url:"",durationSeconds:105},deliveryCharges:{titleKey:"newLook.videos.deliveryCharges",url:"",durationSeconds:130},firstDiscount:{titleKey:"newLook.videos.firstDiscount",url:"",durationSeconds:80},languageHowTo:{titleKey:"newLook.videos.languageHowTo",url:"",durationSeconds:45},helpSupport:{titleKey:"newLook.videos.helpSupport",url:"",durationSeconds:60},subscriptionsOverview:{titleKey:"newLook.videos.subscriptionsOverview",url:"",durationSeconds:90},subscriptionDeliveries:{titleKey:"newLook.videos.subscriptionDeliveries",url:"",durationSeconds:120},subscriptionPlans:{titleKey:"newLook.videos.subscriptionPlans",url:"",durationSeconds:100},subscriptionLogs:{titleKey:"newLook.videos.subscriptionLogs",url:"",durationSeconds:60},deliverySlots:{titleKey:"newLook.videos.deliverySlots",url:"",durationSeconds:75},subscriptionSettings:{titleKey:"newLook.videos.subscriptionSettings",url:"",durationSeconds:90},productAvailability:{titleKey:"newLook.videos.productAvailability",url:"",durationSeconds:110},insights:{titleKey:"newLook.videos.insights",url:"",durationSeconds:90},sendMessages:{titleKey:"newLook.videos.sendMessages",url:"",durationSeconds:90},customerMessages:{titleKey:"newLook.videos.customerMessages",url:"",durationSeconds:90}},r=["addProductsBulk","acceptAndPack","deliveryCharges","firstDiscount"];function i(e){let n=l[e];return n&&n.url.trim()?n:void 0}function s(e){let n=Math.max(0,Math.round(e));return"".concat(Math.floor(n/60),":").concat(String(n%60).padStart(2,"0"))}}}]);
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.