PageSourceSearch

https://pricelink.io/_next/static/chunks/2924.d692f6f0fef1ca54.js

js pricelink.io collected 2026-10-01 15:43:12 UTC 20,068 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2924],{82924:function(e,t,n){n.r(t),n.d(t,{StatCard:function(){return I},UploadPhase:function(){return S}});var r=n(27573),a=n(7653),s=n(56967),i=n(36120),l=n(25555),o=n(36673);let u=(0,n(2389).Z)("ScanLine",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]);var c=n(87354),d=n(75721),m=n(27126),p=n(34365),f=n(95239),h=n(29986),v=n(8418),x=n(40841),g=n(8930),y=n(8301),N=n(95961);let b={uploaded:i.Z,waiting:l.Z,parsing:o.Z,scanning:u,done:c.Z},w={uploaded:"Uploaded",waiting:"Waiting",parsing:"Parsing",scanning:"Scanning",done:"Done"},j=e=>{var t,n;let{currentStage:s,lastUpload:i,scannedCount:l,parsedCount:o,scanProgressPercent:u,importedCount:c,notFoundCount:d,errorCount:m,etaLabel:f}=e,h=(0,a.useRef)(null),[v,x]=(0,a.useState)(0),g=(0,a.useCallback)(()=>{if(h.current){let e=h.current.scrollHeight;x(t=>Math.max(t,e))}},[]);return(0,a.useEffect)(()=>{g()}),(0,r.jsx)("div",{style:{minHeight:v},className:"transition-[min-height] duration-300 ease-out",children:(0,r.jsxs)("div",{ref:h,children:["waiting"===s&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground text-center",children:"Your file is queued and will begin processing shortly."}),"parsing"===s&&(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,r.jsx)("span",{className:"font-medium",children:"Parsing file..."}),(0,r.jsxs)("span",{className:"text-muted-foreground",children:[null!==(t=null==i?void 0:i.parsingProgress)&&void 0!==t?t:0,"%"]})]}),(0,r.jsx)(p.Progress,{value:null!==(n=null==i?void 0:i.parsingProgress)&&void 0!==n?n:0,className:"w-full"})]}),"scanning"===s&&(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,r.jsx)("span",{className:"font-medium",children:"Scanning products..."}),(0,r.jsxs)("span",{className:"text-muted-foreground",children:[l,"/",o,f&&(0,r.jsxs)("span",{className:"ml-2 text-xs",children:["(",f,")"]})]})]}),(0,r.jsx)(p.Progress,{value:u,className:"w-full"}),(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-3 text-center",children:[(0,r.jsx)(I,{label:"Total",value:o}),(0,r.jsx)(I,{label:"Imported",value:c}),(0,r.jsx)(I,{label:"Not found",value:d})]})]})]})})},S=e=>{var t,n,l,o,u,S;let{embedded:I,listSelection:E}=e,{file:M,status:P,isLoading:C,lastUpload:D,totalRowsComputed:T}=(0,v.G)(),{onSubmit:_}=(0,x.h3)(),k=P===g.KF.ListChosen,A=P===g.KF.Uploading,R=P===g.KF.UploadingErrors,U=P===y.D.QUEUED||P===y.D.PARSING||P===y.D.PROCESSING||P===y.D.SCANNING||P===y.D.IMPORTING,z=function(e){if(!e)return"uploaded";switch(e){case y.D.QUEUED:return"waiting";case y.D.PARSING:case y.D.PROCESSING:return"parsing";case y.D.SCANNING:case y.D.IMPORTING:return"scanning";case y.D.DONE:case y.D.ERROR:case y.D.PARTIAL:return"done";default:return"uploaded"}}(null!==(t=null==D?void 0:D.status)&&void 0!==t?t:P),F=N.Bv.indexOf(z),Z=null!==(n=null==D?void 0:D.importedCount)&&void 0!==n?n:0,O=null!==(l=null==D?void 0:D.parsedCount)&&void 0!==l?l:0,G=null!==(o=null==D?void 0:D.notFoundCount)&&void 0!==o?o:0,$=null!==(u=null==D?void 0:D.errorCount)&&void 0!==u?u:0,H=Z+G+$,V=O>0?Math.round(H/O*100):0,W=(0,a.useRef)(null),L=(0,a.useRef)(0);(0,a.useEffect)(()=>{"scanning"===z&&null===W.current&&(W.current=Date.now(),L.current=H),"scanning"!==z&&(W.current=null)},[z,H]);let X=(()=>{if(!W.current||H<=L.current||0===O)return null;let e=(Date.now()-W.current)/1e3,t=H-L.current,n=O-H;return 0===t?null:Math.ceil(n/t*e)})();return(0,r.jsxs)("div",{className:"space-y-4",children:[k&&(0,r.jsxs)(s.E.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"space-y-4",children:[(0,r.jsx)("div",{className:"flex items-center justify-between border rounded-lg px-4 py-3",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:null!==(S=null==M?void 0:M.name)&&void 0!==S?S:"File ready"}),(0,r.jsxs)("p",{className:"text-xs text-muted-foreground",children:[T," products to scan"]})]})}),(0,r.jsxs)(f.z,{onClick:()=>{E&&_(E)},disabled:C,className:"w-full",children:[C?(0,r.jsx)(d.Z,{className:"h-4 w-4 mr-2 animate-spin"}):(0,r.jsx)(i.Z,{className:"h-4 w-4 mr-2"}),"Upload & Start Scan"]})]}),A&&(0,r.jsxs)(s.E.div,{initial:{opacity:0},animate:{opacity:1},className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(d.Z,{className:"h-4 w-4 animate-spin"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"Uploading file..."})]}),(0,r.jsx)(p.Progress,{value:0,className:"w-full"})]}),R&&(0,r.jsx)(s.E.div,{initial:{opacity:0},animate:{opacity:1},children:(0,r.jsx)("div",{className:"p-4 rounded-md bg-destructive/10",children:(0,r.jsx)("p",{className:"text-sm text-destructive",children:"Upload failed. Please try again."})})}),U&&(0,r.jsxs)(s.E.div,{initial:{opacity:0}
1,animate:{opacity:1},className:"space-y-5",children:[(0,r.jsx)("div",{className:"flex items-center justify-between",children:N.Bv.map((e,t)=>{let n=b[e],a=t<F,s=t===F,i=t>F,l=t===N.Bv.length-1;return(0,r.jsxs)("div",{className:"flex items-center flex-1 last:flex-none",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,r.jsx)("div",{className:(0,h.cn)("flex h-8 w-8 items-center justify-center rounded-full transition-colors duration-300",{"bg-green-500 text-white":a,"bg-primary text-primary-foreground":s,"bg-muted text-muted-foreground":i}),children:a?(0,r.jsx)(c.Z,{className:"h-4 w-4"}):s?(0,r.jsx)(d.Z,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(n,{className:"h-4 w-4"})}),(0,r.jsx)("span",{className:(0,h.cn)("text-[10px] font-medium",{"text-green-600":a,"text-primary":s,"text-muted-foreground":i}),children:w[e]})]}),!l&&(0,r.jsx)("div",{className:(0,h.cn)("flex-1 h-px mx-1 mb-5 transition-colors duration-300",{"bg-green-500":a,"bg-primary/40":s,"bg-muted":i})})]},e)})}),(0,r.jsx)(j,{currentStage:z,lastUpload:D,scannedCount:H,parsedCount:O,scanProgressPercent:V,importedCount:Z,notFoundCount:G,errorCount:$,etaLabel:null!=X?X>60?"~".concat(Math.ceil(X/60),"m remaining"):"~".concat(X,"s remaining"):null}),(0,r.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border px-3 py-2 text-sm text-muted-foreground",children:[(0,r.jsx)(m.Z,{className:"h-4 w-4 mt-0.5 shrink-0"}),(0,r.jsx)("span",{children:I?"You can leave this page. Processing continues in the background.":"You can close this modal. Processing continues in the background."})]})]})]})},I=e=>{let{label:t,value:n}=e;return(0,r.jsxs)("div",{className:"rounded-lg border bg-muted/30 px-3 py-2",children:[(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:t}),(0,r.jsx)("p",{className:"text-lg font-semibold",children:isNaN(n)?0:n})]})}},40841:function(e,t,n){n.d(t,{wt:function(){return u},h3:function(){return g},_h:function(){return c},xh:function(){return b}});var r=n(8930),a=n(8418),s=n(77992),i=n(3730),l=n.n(i),o=n(82563);let u=()=>{let{setProgress:e}=(0,a.G)(),t=(e,t,n)=>{let r=[];
1return t.mappings.forEach(t=>{let a=s.r6[t.field].safeParse(e.at(t.columnIndex));a.error&&r.push({message:"".concat(t.fieldDisplayName,": ").concat(a.error.errors[0].message),line:n})}),r},n=async n=>{let{file:r,mappingResult:a}=n;return new Promise((n,s)=>{let i=[],o=0;l().parse(r,{skipEmptyLines:!0,header:!1,step:async(n,s)=>{if(e(Math.round(n.meta.cursor/r.size*100)),1==++o&&a.enableHeaderRow)return;if(n.data.every(e=>!e||0===e.toString().length)){o--;return}let l=t(n.data,a,o);l.length&&i.push(...l)},complete(e){n({success:!0,errors:i})},error(e){console.error("Papa.parse errors",e),n({success:!1,errors:[{message:"Could not load csv."}]})}})})},i=async n=>{let{file:r,mappingResult:a}=n,s=[],i=await (0,o.Z)(r);return i.forEach((n,r,l)=>{if(e(Math.round((r+1)/i.length*100)),0===r&&a.enableHeaderRow||n.every(e=>!e||0===e.toString().length))return;let o=t(n,a,r+1);o&&s.push(...o)}),s};return{basicValidation:e=>{let{file:t,total:n}=e,r=[];return t.size&&n||r.push({message:"File is empty"}),t.size>s.aW.MAX_SIZE_BYTES&&r.push({message:"File size must not exceed 3Mb"}),n>s.aW.MAX_LINES&&r.push({message:"Maximum number of products reached",line:s.aW.MAX_LINES}),r},validateFile:async e=>{let{file:t,mappingResult:a}=e,s=[];switch(null==t?void 0:t.type){case r.hd.CSV:{let e=await n({file:t,mappingResult:a});(null==e?void 0:e.errors)&&e.errors.length>0&&(s=null==e?void 0:e.errors);break}case r.hd.EXCEL:s=await i({file:t,mappingResult:a})}return s}}},c=()=>({previewCsvFile:(e,t)=>new Promise((n,r)=>{let a=0,s=[],i=new Map;l().parse(e,{skipEmptyLines:!0,step(e,t){!i.has(e.data.join("\x01"))&&(i.set(e.data.join("\x01"),!0),s.push(e.data),a++)},complete(e){n({rows:s,preview:s.slice(0,t),total:a})},error(e){console.error("previewCsvFile Papa.parse errors",e)}})}),previewXlsxFile:async(e,t)=>{let n=await (0,o.Z)(e),r=new Map;return{rows:n.filter(e=>{if(!r.has(e.join("\x01")))return r.set(e.join("\x01"),!0),!0}),preview:n.slice(0,t),total:n.length}}}),d=(e,t,n)=>{let r=l().unparse(n?e.map(e=>{let t=[];
1return n.mappings.forEach(n=>{var r;n.field===s.VG.SourceUrl&&t.push(""),t.push(null!==(r=e.at(n.columnIndex))&&void 0!==r?r:"")}),t}):e,{delimiter:";"});if(t.includes(".")){var a;t=null!==(a=t.split(".").at(0))&&void 0!==a?a:"csv_".concat(Date.now())}return new File([new Blob([r])],"".concat(t,".csv"),{type:"text/csv",lastModified:Date.now()})};n(43503);var m=n(99976);(0,m.$)("bea65bf89e10a02392c320b603cb4856bc586edd"),(0,m.$)("536083985aab6160ab57ffc69ae46f1ffd2963e4");var p=(0,m.$)("b2be19dc9be0a705fa519e4cd49ced919511b78e"),f=n(44992),h=n(85569),v=n(8301),x=n(13908);let g=()=>{let{file:e,fileName:t,setProgress:n,setStatus:s,setErrors:i,mappingResult:l,setMappingResult:o,rows:c,setIsLoading:m,setLastUploadId:g,setEnableHeaderRow:y}=(0,a.G)(),{validateFile:N}=u();async function b(e,t){try{return await x.Z.put(t,e,{headers:{"Content-Type":e.type},onUploadProgress:e=>{if(e.total){let t=e.loaded/e.total*100;n(t)}}}),{success:!0}}catch(e){return{error:"Upload failed. Please contact support team"}}}return{onSubmit:async a=>{if(e&&l&&c){let o=d(l.enableHeaderRow?c.slice(1):c,t,l),u=await p({unsafeFilename:o.name,unsafeFileSize:o.size,listId:a.listId,listName:a.listName,productCount:l.totalRows,enableHeaderRow:l.enableHeaderRow});if((0,f.R)(u)){(0,h._N)(u.error);return}if(e){s(r.KF.Uploading),n(0),m(!0);let e=await b(o,u.url);if(e.error){s(r.KF.UploadingErrors),i([{message:e.error}]),m(!1);return}g(u.uploadId),s(v.D.QUEUED),m(!1),(0,h.Am)({title:"File uploaded",description:"Processing will begin shortly",variant:"default"})}}},onColumnMapped:async t=>{if(y(t.enableHeaderRow),o(t),s(r.KF.Validating),m(!0),e){let a=await N({file:e,mappingResult:t});if(null==a?void 0:a.length){i(a),m(!1);return}m(!1),n(0),s(r.KF.UploadReady)}},uploadFile:b}};var y=n(7653);let N=[v.D.SCANNING],b=()=>{let{uploads:e}=(0,a.G)();return{listHasActiveUploads:(0,y.useCallback)(t=>e.filter(e=>e.listId===t&&N.includes(e.status)).length>0,[e]),isImporting:(0,y.useMemo)(()=>e.some(e=>N.includes(e.status)),[e]),activeListsImportCount:(0,y.useMemo)(()=>[...new Set(e.filter(e=>N.includes(e.status)).map(e=>e.listId))].length,[e])}}},77992:function(e,t,n){n.d(t,{r6:function(){return m},aW:function(){return o},VG:function(){return i},dm:function(){return f}});var r,a,s,i,l=n(41270);(r=s||(s={})).UPC="UPC",r.GTIN="GTIN",r.WalmartID="Walmart ID",(a=i||(i={})).ProductId="productId",a.Cost="cost",a.SourceUrl="sourceUrl";let o={MAX_SIZE_BYTES:3145728,MAX_LINES:1e5,ACCEPTED_MIME_TYPES:["text/csv"]},u=l.z.coerce.string().min(4,"Value is too short (min: 4), probably wrong ID format").max(100,"Value is too long, probably wrong ID format").transform(e=>{let t=e.split(",");return t.length>1&&t[0].length>4?t[0]:e}).transform(e=>e.replace(/\D+/g,"")).refine(e=>e.length<20,{message:"Id too long"}).refine(e=>null!==function(e){for(let[t,n]of Object.entries({GTIN:/\b\d{14}\b/,UPC:/\b\d{11,12}\b/,"Walmart ID":RegExp("(?<=^|\\/)(\\d{3,10})\\b")})){let r=e.match(n);if(r)return{type:t,id:r[0]}}return null}(e),{message:"Id is not (UPC, GTIN, walmart)"}),c=l.z.union([l.z.string().min(1).max(30,"Number too long").optional(),l.z.number().min(0).optional(),l.z.undefined()]).optional().transform(e=>"string"==typeof e?e.slice(0,10):e).transform(e=>"string"==typeof e?parseFloat(/^\d/.test(e)?e:e.slice(1)):void 0).transform(e=>{if(e&&e>0)return e}).refine(e=>void 0===e||!isNaN(e)&&e>0,{message:"Must be a valid number"}).transform(e=>e?Math.round(100*e)/100:void 0).optional(),d=l.z.union([l.z.string().url().max(250).optional(),l.z.undefined(),l.z.string().length(0),l.z.null()]),m={productId:u,cost:c,sourceUrl:d},p=l.z.string().max(250).optional().nullable().transform(e=>(null==e?void 0:e.length)===0?null:e).default(null);l.z.tuple([u,c,p,d]);let f=l.z.string().min(1,"File name is required").max(200).regex(/^[a-zA-Z0-9._\-\s()[\],]+$/,"File name can only contain alphanumeric characters, dots, underscores, and hyphens").transform(e=>e.trim().slice(0,30)).transform(e=>e.endsWith(".csv")?e:e+".csv").refine(e=>!e.startsWith("."),{message:"File name cannot start with a dot"}).refine(e=>!e.includes(".."),{message:"File name cannot contain consecutive dots (..)"})},34365:function(e,t,n){n.r(t),n.d(t,{Progress:function(){return l}});var r=n(27573),a=n(7653),s=n(94743),i=n(29986);let l=a.forwardRef((e,t)=>
1{let{indicatorClassName:n,className:a,value:l,...o}=e;return(0,r.jsx)(s.fC,{ref:t,className:(0,i.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a),...o,children:(0,r.jsx)(s.z$,{className:(0,i.cn)("h-full w-full flex-1 bg-primary transition-all",n),style:{transform:"translateX(-".concat(100-(l||0),"%)")}})})});l.displayName=s.fC.displayName},85569:function(e,t,n){n.d(t,{Am:function(){return d},_N:function(){return m},pm:function(){return f},x9:function(){return p}});var r=n(7653);let a=0,s=new Map,i=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=t;return n?i(n):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],u={toasts:[]};function c(e){u=l(u,e),o.forEach(e=>{e(u)})}function d(e){let{...t}=e,n=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:n});return c({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:e=>{e||r()}}}),{id:n,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function m(e){d({title:"Error",description:e,variant:"destructive"})}function p(e){d({title:"Success",description:e,variant:"default"})}function f(){let[e,t]=r.useState(u);return r.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},25555:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(2389).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},36673:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(2389).Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},27126:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(2389).Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},36120:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(2389).Z)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},99976:function(e,t,n){Object.defineProperty(t,"$",{enumerable:!0,get:function(){return a}});let r=n(43503);function a(e){let{createServerReference:t}=n(18786);return t(e,r.callServer)}},99933:function(e,t,n){n.d(t,{b:function(){return i},k:function(){return s}});var r=n(7653),a=n(27573);function s(e,t){let n=r.createContext(t),s=e=>{let{children:t,...s}=e,i=r.useMemo(()=>s,Object.values(s));return(0,a.jsx)(n.Provider,{value:i,children:t})};return s.displayName=e+"Provider",[s,function(a){let s=r.useContext(n);if(s)return s;if(void 0!==t)return t;throw Error(`\`${a}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],s=()=>{let t=n.map(e=>r.createContext(e));return function(n){let a=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:a}}),[n,a])}};return s.scopeName=e,[function(t,s){let i=r.createContext(s),l=n.length;n=[...n,s];let o=t=>{let{scope:n,children:s,...o}=t,u=n?.[e]?.[l]||i,c=r.useMemo(()=>o,Object.values(o));return(0,a.jsx)(u.Provider,{value:c,children:s})};return o.displayName=t+"Provider",[o,function(n,a){let o=a?.[e]?.[l]||i,u=r.useContext(o);if(u)return u;if(void 0!==s)return s;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=n.reduce((t,{useScope:n,scopeName:r})=>{let a=n(e)[`__scope${r}`];return{...t,...a}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:a}
1),[a])}};return n.scopeName=t.scopeName,n}(s,...t)]}},78378:function(e,t,n){n.d(t,{WV:function(){return l},jH:function(){return o}});var r=n(7653),a=n(3458),s=n(8828),i=n(27573),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,s.Z8)(`Primitive.${t}`),a=r.forwardRef((e,r)=>{let{asChild:a,...s}=e,l=a?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...s,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function o(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}},94743:function(e,t,n){n.d(t,{fC:function(){return N},z$:function(){return b}});var r=n(7653),a=n(99933),s=n(78378),i=n(27573),l="Progress",[o,u]=(0,a.b)(l),[c,d]=o(l),m=r.forwardRef((e,t)=>{var n,r,a,l;let{__scopeProgress:o,value:u=null,max:d,getValueLabel:m=h,...p}=e;(d||0===d)&&!g(d)&&console.error((n="".concat(d),r="Progress","Invalid prop `max` of value `".concat(n,"` supplied to `").concat(r,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let f=g(d)?d:100;null===u||y(u,f)||console.error((a="".concat(u),l="Progress","Invalid prop `value` of value `".concat(a,"` supplied to `").concat(l,"`. The `value` prop must be:\n  - a positive number\n  - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n  - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let N=y(u,f)?u:null,b=x(N)?m(N,f):void 0;return(0,i.jsx)(c,{scope:o,value:N,max:f,children:(0,i.jsx)(s.WV.div,{"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":x(N)?N:void 0,"aria-valuetext":b,role:"progressbar","data-state":v(N,f),"data-value":null!=N?N:void 0,"data-max":f,...p,ref:t})})});m.displayName=l;var p="ProgressIndicator",f=r.forwardRef((e,t)=>{var n;let{__scopeProgress:r,...a}=e,l=d(p,r);return(0,i.jsx)(s.WV.div,{"data-state":v(l.value,l.max),"data-value":null!==(n=l.value)&&void 0!==n?n:void 0,"data-max":l.max,...a,ref:t})});function h(e,t){return"".concat(Math.round(e/t*100),"%")}function v(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function x(e){return"number"==typeof e}function g(e){return x(e)&&!isNaN(e)&&e>0}function y(e,t){return x(e)&&!isNaN(e)&&e<=t&&e>=0}f.displayName=p;var N=m,b=f}}]);

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.