1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7959],{12211:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(37876),a=r(80053),i=r(26686),n=r(59852),o=r(54431),l=r(14232);let c=({retailerId:e,onChange:t,error:r,helperText:c})=>{let[d,u]=(0,l.useState)(""),{loading:h,data:p}=(0,o.IT)(n.Rt,{variables:{offset:0,limit:10,sort:[{name:i.pH.asc}],search:e?void 0:d}}),{data:g}=(0,o.IT)(n.QR,{skip:!e,variables:{id:e}});return(0,s.jsx)(a.A,{data:p?.retailers.data,error:r,getOptionLabel:({name:e})=>e,helperText:c,label:"Retailer",loading:h,onChange:t,setSearch:u,value:e&&g?.retailer||null})}},72382:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(37876),a=r(80053),i=r(59852),n=r(26686),o=r(54431),l=r(14232);let c=({brandId:e,onChange:t,error:r,helperText:c})=>{let[d,u]=(0,l.useState)(""),{loading:h,data:p}=(0,o.IT)(i.sk,{variables:{offset:0,limit:10,sort:[{name:n.pH.asc}],search:e?void 0:d}}),{data:g}=(0,o.IT)(i.jK,{skip:!e,variables:{id:e}});return(0,s.jsx)(a.A,{data:p?.brands.data,error:r,getOptionLabel:({name:e})=>e,helperText:c,label:"Brand",loading:h,onChange:t,setSearch:u,value:e&&g?.brand||null})}},80053:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(37876),a=r(73640),i=r.n(a),n=r(96521),o=r(73996),l=r(14232);let c=({label:e,value:t,onChange:r,error:a,helperText:c,loading:d,data:u,getOptionLabel:h,setSearch:p})=>{let[g,f]=(0,l.useState)([]);(0,l.useEffect)(()=>{!d&&u&&f(u)},[d,u,f]);let m=i()(e=>{t&&h(t)===e||p(e)});return(0,s.jsx)(n.A,{fullWidth:!0,autoComplete:!0,options:g,loading:d,value:t,getOptionLabel:h,isOptionEqualToValue:(e,t)=>e.id===t.id,filterOptions:e=>e,renderInput:t=>(0,s.jsx)(o.A,{...t,label:e,error:a,helperText:c}),onInputChange:(e,t)=>
1m(t),onChange:r})}},87646:(e,t,r)=>{r.d(t,{A:()=>$});var s=r(37876),a=r(6172),i=r(76686),n=r(95249),o=r(75353),l=r(21565),c=r(59852),d=r(14232),u=r(54431),h=r(93519),p=r(82702),g=r(23832),f=r(29472),m=r(73996),x=r(24661),A=r(87210),y=r(29351),j=r(19135),w=r(80169),S=r(77223),P=r(9092),b=r(81393),C=r(75782),v=r(25923),T=r(61001),k=r(49843),I=r(22250),E=r(8676),D=r(19356),U=r(47103),O=r(93402);let R=(e,t)=>null!=e&&null!=t&&String(e)===String(t),$=({onClose:e,onItemSelected:t,open:r,selectedProducts:$})=>{let[N,K]=(0,d.useState)("text"),[L,z]=(0,d.useState)(""),[H,J]=(0,d.useState)(null),[F,X]=(0,d.useState)([]),[Y,B]=(0,d.useState)(!1),[V,_]=(0,d.useState)({offset:0,order:{field:"name",direction:"asc"},page:0,rowsPerPage:n.I[0]}),[W,M]=(0,d.useState)([]),[q,Q]=(0,d.useState)(0),{offset:Z,order:G,rowsPerPage:ee,search:et}=V,{loading:er,data:es}=(0,u.IT)(c.sZ,{variables:{offset:Z,limit:ee,sort:{[G.field]:G.direction},search:et||void 0},skip:"text"!==N}),[ea,{loading:ei,data:en}]=(0,h._)(c.hr);(0,d.useEffect)(()=>{"text"===N&&!er&&es?.products&&(M(es.products.data),Q(es.products.pagination.totalItems||0))},[es,er,N]),(0,d.useEffect)(()=>{"url"===N&&en?.productsByUrls&&(M(en.productsByUrls),Q(en.productsByUrls.length))},[en,N]);let eo="text"===N?er:ei,el=O.r.parseUrls(L),ec=e=>$.some(t=>R(t.id,e));return(0,s.jsxs)(a.A,{onClose:e,open:r,children:[(0,s.jsx)(i.A,{display:"flex",flexDirection:"column",alignItems:"center",children:(0,s.jsxs)(o.A,{title:(0,s.jsxs)(i.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,s.jsxs)(i.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,s.jsx)(p.A,{variant:"h6",children:"Select Products"}),(0,s.jsxs)(g.A,{value:N,exclusive:!0,onChange:(e,t)=>
1t&&K(t),size:"small",children:[(0,s.jsxs)(f.A,{value:"text",children:[(0,s.jsx)(E.A,{sx:{mr:1}}),"Text Search"]}),(0,s.jsxs)(f.A,{value:"url",children:[(0,s.jsx)(D.A,{sx:{mr:1}}),"URL Search"]})]})]}),"text"===N?(0,s.jsx)(l.A,{title:"",onSearch:e=>_({...V,offset:0,page:0,search:e})}):(0,s.jsxs)(i.A,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(0,s.jsx)(m.A,{fullWidth:!0,multiline:!0,rows:4,label:"Product URLs (one per line)",value:L,onChange:e=>z(e.target.value),placeholder:"Paste product URLs here, one per line...",helperText:`${el.length} valid URLs found`,size:"small"}),(0,s.jsx)(i.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsxs)(x.A,{variant:"contained",onClick:()=>{let e=O.r.parseUrls(L);0===e.length?J("Please enter valid URLs"):(J(null),ea({variables:{urls:e}}))},disabled:0===el.length||ei,size:"small",children:["Search by URLs (",el.length,")"]})}),H&&(0,s.jsx)(A.A,{severity:"error",onClose:()=>J(null),children:H})]})]}),sx:{width:"100%"},children:[(0,s.jsx)(i.A,{sx:{mb:10},children:(0,s.jsx)(n.A,{rows:W,renderRowTooltip:e=>{let t=e.productsOnRetailers;return t&&0!==t.length?(0,s.jsx)(y.A,{spacing:.75,sx:{p:.5,maxWidth:280},children:t.slice(0,3).map(e=>(0,s.jsx)(j.A,{href:e.url??"#",target:"_blank",rel:"noopener noreferrer",underline:"hover",color:"inherit",sx:{fontSize:"0.8125rem",wordBreak:"break-all"},onClick:e=>e.stopPropagation(),children:(0,s.jsx)(p.A,{component:"span",variant:"body2",sx:{display:"block",color:"#ffffff"},children:e.url&&(0,s.jsx)(p.A,{component:"span",variant:"body2",sx:{display:"block",color:"#ffffff"},children:e.url})})},e.id))}):null},onSelectAll:e=>{let t=W.filter(e=>!ec(e.id)).map(e=>e);if(e)X(e=>{let r=new Set(e.map(e=>String(e.id)));return[...e,...t.filter(e=>!r.has(String(e.id)))]});else{let e=new Set(t.map(e=>String(e.id)));X(t=>t.filter(t=>!ec(t.id)&&!e.has(String(t.id))))}},selectedItems:F,setSelectedItems:e=>X(e),previousSelectedItems:$,headCells:[{id:"selected",sortable:!1,disablePadding:!0,label:"",displayCallback:e=>(0,s.jsx)(w.A,{disabled:ec(e.id),checked:ec(e.id)||F.some(t=>R(t.id,e.id)),onChange:t=>{let r=t.target.checked;X(t=>r?t.some(t=>R(t.id,e.id))?t:[...t,e]:t.filter(t=>!R(t.id,e.id)))}})},{id:"id",disablePadding:!0},{id:"name"},{id:"slug"}],totalItems:q,sortablePaginator:V,onChange:_,size:"small",hidePagination:"url"===N,loading:eo})}),(0,s.jsxs)(i.A,{sx:{position:"absolute",bottom:0,left:0,right:0,padding:2,backgroundColor:"background.paper",borderTop:"1px solid",borderColor:"divider",display:"flex",flexDirection:"row",justifyContent:"space-between",gap:1,mt:5},children:[(0,s.jsx)(i.A,{sx:{display:"flex",justifyContent:"flex-start",gap:1},children:(0,s.jsxs)(p.A,{component:"a",href:"#",variant:"body2",sx:{textDecoration:"underline",color:F.length>0?"primary.main":"text.secondary",cursor:F.length>0?"pointer":"default"},onClick:e=>{e.preventDefault(),F.length>0&&B(!0)},children:["Show Selected Items (",F.length,")"]})}),(0,s.jsxs)(i.A,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[(0,s.jsx)(x.A,{variant:"outlined",color:"secondary",onClick:()=>e?.(),children:"Cancel"}),(0,s.jsxs)(x.A,{variant:"contained",disabled:0===F.length,onClick:()=>{t(F),X([]),e?.()},children:["Submit (",F.length,")"]})]})]})]})}),(0,s.jsx)(a.A,{onClose:()=>B(!1),open:Y,children:(0,s.jsx)(i.A,{display:"flex",flexDirection:"column",alignItems:"center",children:(0,s.jsxs)(o.A,{title:(0,s.jsxs)(p.A,{variant:"h6",children:["Selected Items (",F.length,")"]}),sx:{width:"100%"},children:[(0,s.jsx)(S.A,{component:P.A,variant:"outlined",children:(0,s.jsxs)(b.A,{size:"small",children:[(0,s.jsx)(C.A,{children:(0,s.jsxs)(v.A,{children:[(0,s.jsx)(T.A,{children:"ID"}),(0,s.jsx)(T.A,{children:"Name"}),(0,s.jsx)(T.A,{children:"Slug"}),(0,s.jsx)(T.A,{align:"right",children:"Remove"})]})}),(0,s.jsx)(k.A,{children:0===F.length?(0,s.jsx)(v.A,{children:(0,s.jsx)(T.A,{colSpan:4,align:"center",children:(0,s.jsx)(p.A,{variant:"body2",color:"text.secondary",children:"No items selected"})})}):F.map(e=>(0,s.jsxs)(v.A,{children:[(0,s.jsx)(T.A,{children:e.id}),(0,s.jsx)(T.A,{children:e.name}),(0,s.jsx)(T.A,{children:e.slug}),(0,s.jsx)(T.A,{align:"right",children:(0,s.jsx)(I.A,{size:"small",onClick:()=>{var t;return t=e.id,void X(e=>e.filter(e=>!R(e.id,t)))},children:(0,s.jsx)(U.A,{fontSize:"small"})})})]},String(e.id)))})]})}),(0,s.jsx)(i.A,{sx:{display:"flex",justifyContent:"flex-end",mt:2},children:(0,s.jsx)(x.A,{variant:"outlined",onClick:()=>B(!1),children:"Close"})})]})})})]})}},93402:(e,t,r)=>{r.d(t,{r:()=>a});var s=r(5639);class a{static{this.lastAppliedConfigs=new Map}static hasConfigChanged(e,t){let r=this.lastAppliedConfigs.get(e),s=JSON.stringify(t||{})!==JSON.stringify(r||{});
1return s&&void 0!==r&&console.log(`ð Config changed for ${e}:`,{previous:r,current:t}),s}static updateLastAppliedConfig(e,t){t&&this.lastAppliedConfigs.set(e,t)}static addProcessStep(e,t,r,s){e.processSteps||(e.processSteps=[]);let a={step:t,status:r,timestamp:Date.now(),details:s},i=e.processSteps.findIndex(e=>e.step===t);if(i>=0){let t=e.processSteps[i];"running"===t.status&&"running"!==r&&(a.duration=(Date.now()-t.timestamp)/1e3),e.processSteps[i]=a}else e.processSteps.push(a);return a}static isValidUrl(e){try{return new URL(e),!0}catch(e){return console.error("Error validating URL:",e),!1}}static extractDomain(e){try{return new URL(e).hostname}catch(e){return console.error("Error extracting domain:",e),""}}static async resolveConfiguration(e){try{let t=await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify({action:"resolve",url:e})});if(!t.ok)throw Error(`HTTP ${t.status}: ${t.statusText}`);return await t.json()}catch(e){return console.error("Error resolving configuration:",e),{success:!1,config:{global:{}}}}}static async setDomainConfiguration(e,t){try{return(await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify({action:"config",domain:e,config:{domains:{[e]:t}}})})).ok}catch(e){return console.error("Error setting domain configuration:",e),!1}}static parseUrls(e){return e.split("\n").map(e=>e.trim()).filter(e=>e&&this.isValidUrl(e))}static async retryUpdate(e,t){try{let r=await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify({action:"update",url:e,force:!0,...t&&{config:t}})});if(!r.ok)throw Error(`HTTP ${r.status}: ${r.statusText}`);await r.json();let a=0;for(;a<10;){await new Promise(e=>setTimeout(e,3e3));let t=await this.fetchHtmlContent(e);if(t.success&&t.content)return{success:!0,content:t.content};a++}return{success:!1,error:"Timeout waiting for updated content"}}catch(e){return{success:!1,error:e instanceof Error?e.message:"Update failed"}}}static async retryExtract(e,t){return this.extractProductData(e,t,!0)}static async retryDownload(e,t){return this.downloadProductImages(e,t,!0)}static async checkStatus(e){try{let t=await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify({action:"status",url:e})});if(!t.ok)throw Error(`HTTP ${t.status}: ${t.statusText}`);let r=await t.json();return{cached:r.success&&r.cached}}catch(e){return{cached:!1,error:e instanceof Error?e.message:"Status check failed"}}}static async downloadProductImages(e,t,r){try{let a=await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify({action:"download",url:e,...r&&{force:!0},...t&&{config:t}})});if(!a.ok)throw Error(`HTTP ${a.status}: ${a.statusText}`);let i=await a.json();if(!i.success||!i.images||0===i.images.length)return{success:!1,error:"No images downloaded",rawData:i};let n=i.images,o=i.uuid,l=n[0];return{success:!0,rawData:i,folder:o,images:n,totalImages:i.totalImages,availableImages:i.availableImages,hasMore:i.hasMore,imageUrls:{original:l.original,resized:l.resized,cropped:l.cropped,backgroundRemoved:l.backgroundRemoved||void 0}}}catch(e){return{success:!1,error:e instanceof Error?e.message:"Download failed"}}}static getImageUrl(e){return e?e.cropped||e.resized||e.original:""}static async extractProductData(e,t,r){try{let a=await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify({action:"extract",url:e,...r&&{force:!0},...t&&{config:t}})});if(!a.ok)throw Error(`HTTP ${a.status}: ${a.statusText}`);let i=await a.json();if(!i.success||!i.data||0===i.data.length)return{success:!1,error:"No product data extracted",rawData:i};let n=i.data[0],o=n?.hasVariant?.[0],l=n?.name||o?.name||"Unknown Product",c=(n?.description||o?.description||"").replace(/<[^>]*>/g,"").trim(),d=n?.brand?.name||o?.brand?.name||"Unknown Brand",u=o?.offers?.[0]?.price||0,h=n?.aggregateRating?.ratingValue||o?.aggregateRating?.ratingValue;return{success:!0,rawData:i,data:{name:l,description:c,brand:d,price:"string"==typeof u?parseFloat(u):u,rating:h?Number(h):void 0}}}catch(e){return{success:!1,error:e instanceof Error?e.message:"Extraction failed"}}}static async fetchHtmlContent(e){try{let t=await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify({action:"get",url:e})});if(!t.ok)throw Error(`HTTP ${t.status}: ${t.statusText}`);let r=await t.text(),a=!!(r&&r.trim().length>0);return{success:a,content:a?r:void 0,error:a?void 0:"No content received"}}catch(e){return{success:!1,error:e instanceof Error?e.message:"Fetch failed"}}}static async processUrls(e,t,r){let a=e.map((e,t)=>({url:e,status:"pending",index:t,domain:this.extractDomain(e)}));t(a);for(let e=0;e<a.length;e++){let i=a[e].url,n=a[e].domain,o=n&&r?.[n]?r[n]:void 0;this.addProcessStep(a[e],"resolve-config","running","Resolving configuration..."),t([...a]);let l=await this.resolveConfiguration(i),c={},d="global";l.success&&l.config&&(c={...l.config.global,...l.config.domain||{},...l.config.product||{}},l.config.product?d="product":l.config.domain&&(d="domain")),o&&(c={...c,...o},d="custom");let u=this.lastAppliedConfigs.has(i),h=this.hasConfigChanged(i,c),p=u&&h;a[e]={...a[e],status:"processing",resolvedConfig:l,appliedConfig:c,configSource:d,forceUsed:p},this.addProcessStep(a[e],"resolve-config","success",`Using ${d} configuration${p?" (force)":""}`),t([...a]);try{this.addProcessStep(a[e],"fetch-html","running","Checking cached content..."),t([...a]);let r=await this.fetchHtmlContent(i);if(r.success&&r.content&&!p)a[e]={...a[e],htmlContent:r.content,hasContent:!0},this.addProcessStep(a[e],"fetch-html","success","Using cached content");else{this.addProcessStep(a[e],"update-content","running",p?"Forcing content update...":"Fetching fresh content..."),t([...a]);let r={action:"update",url:i,...p&&{force:!0},...c&&Object.keys(c).length>0&&{config:c}};await fetch(s.A.product.importer.url,{method:"POST",headers:{"Content-Type":"application/json","X-API-KEY":s.A.product.importer.apiKey},body:JSON.stringify(r)});let n=0,o=!1;for(this.addProcessStep(a[e],"update-content","running","Waiting for content..."),t([...a]);n<10&&!o;){await new Promise(e=>setTimeout(e,3e3));let r=await this.fetchHtmlContent(i);r.success&&r.content?(a[e]={...a[e],htmlContent:r.content,hasContent:!0},this.addProcessStep(a[e],"update-content","success","Content retrieved successfully"),o=!0):(this.addProcessStep(a[e],"update-content","running",`Waiting for content... (${n+1}/10)`),t([...a])),n++}if(!o){this.addProcessStep(a[e],"update-content","error","Timeout waiting for product data"),a[e]={...a[e],status:"error",error:"Timeout waiting for product data"},t([...a]);continue}}this.addProcessStep(a[e],"extract-data","running","Extracting product data..."),a[e]={...a[e],status:"extracting"},t([...a]);let n=await this.extractProductData(i,c,p);if(!n.success){let r=0;for(;r<3&&!n.success;)this.addProcessStep(a[e],"extract-data","running",`Retrying extraction... (${r+1}/3)`),t([...a]),await new Promise(e=>setTimeout(e,2e3)),n=await this.extractProductData(i,c,p),r++}n.success?this.addProcessStep(a[e],"extract-data","success","Product data extracted"):this.addProcessStep(a[e],"extract-data","error",n.error||"Failed to extract data"),this.addProcessStep(a[e],"download-images","running","Downloading images..."),a[e]={...a[e],status:"downloading"},t([...a]);let o=await this.downloadProductImages(i,c,p);if(!o.success||!o.images||0===o.images.length){let r=0;for(;r<3&&(!o.success||!o.images||0===o.images.length);)this.addProcessStep(a[e],"download-images","running",`Retrying download... (${r+1}/3)`),t([...a]),await new Promise(e=>setTimeout(e,2e3)),o=await this.downloadProductImages(i,c,p),r++}o.success?this.addProcessStep(a[e],"download-images","success",`Downloaded ${o.images?.length||0} images`):this.addProcessStep(a[e],"download-images","error",o.error||"Failed to download images"),this.updateLastAppliedConfig(i,c),a[e]={...a[e],status:o.success?"success":"error",productData:n.data,rawExtractData:n.rawData,imageFolder:o.folder,images:o.images,rawDownloadData:o.rawData,selectedImageIndex:0,imageUrls:o.imageUrls,error:n.error||o.error}}catch(t){this.addProcessStep(a[e],"error","error",t instanceof Error?t.message:"Processing failed"),a[e]={...a[e],status:"error",error:t instanceof Error?t.message:"Processing failed"}}t([...a])}return a}}},95249:(e,t,r)=>{r.d(t,{A:()=>S,I:()=>j});var s=r(37876),a=r(75782),i=r(25923),n=r(61001),o=r(83722),l=r(80169),c=r(76686),d=r(58053),u=r(64145);let h=e=>{let{order:t,onRequestSort:r,headCells:h,onSelectAll:p,selectAllDisabled:g,selectAllChecked:f,selectAllIndeterminate:m}=e,{field:x,direction:A}=t;return(0,s.jsx)(a.A,{children:(0,s.jsx)(i.A,{children:h.map(({id:e,align:t,disablePadding:a,sortable:i,label:h,width:y})=>(0,s.jsx)(n.A,{align:t??"left",padding:a?"none":"normal",sortDirection:x===e&&A,style:{width:y},children:(0,s.jsxs)(o.A,{active:x===e,direction:A,hideSortIcon:!1===i,onClick:()=>{!1!==i&&r({field:e,direction:"asc"===A?"desc":"asc"})},children:["selected"===e&&(0,s.jsx)(l.A,{disabled:g,checked:f,indeterminate:m,onChange:e=>p(e.target.checked)}),h??(0,d.i5)(e),x===e&&(0,s.jsx)(c.A,{component:"span",sx:u.A,children:"desc"===A?"sorted descending":"sorted ascending"})]})},e))})})};var p=r(77223),g=r(81393),f=r(49843),m=r(80424),x=r(1567),A=r(87210);r(14232);let y=({message:e})=>(0,s.jsx)(A.A,{icon:!1,severity:"info",children:e}),j=[10,25,50],w=(e,t)=>null!=e&&null!=t&&String(e)===String(t),S=({rows:e,headCells:t,totalItems:r,sortablePaginator:a,onChange:o,size:l="medium",hidePagination:c=!1,loading:d=!1,onSelectAll:u,selectedItems:A=[],setSelectedItems:S,selectAllDisabled:P=!1,previousSelectedItems:b=[],renderRowTooltip:C})=>{let v=e=>{o({...a,...e})};if(0===r)return d?(0,s.jsx)(y,{message:"Loading records"}):(0,s.jsx)(y,{message:"No records were found"});let{order:T,page:k,rowsPerPage:I}=a,E=e.filter(e=>b.some(t=>w(t.id,e.id))||A.some(t=>w(t.id,e.id))).length,D=e.length>0&&E===e.length,U=E>0&&E<e.length,O=e.length>0&&e.every(e=>b.some(t=>w(t.id,e.id))),R=k>0?Math.max(0,(1+k)*I-r):0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.A,{children:(0,s.jsxs)(g.A,{size:l,children:[(0,s.jsx)(h,{selectAllDisabled:P||O,selectAllChecked:D,selectAllIndeterminate:U,order:T,onRequestSort:e=>v({order:e}),headCells:t,onSelectAll:e=>u?.(e)}),(0,s.jsxs)(f.A,{sx:{wordBreak:"break-word"},children:[e.map((e,r)=>{let a=C?.(e,r),o=(0,s.jsx)(i.A,{hover:!0,tabIndex:-1,sx:{cursor:S?"pointer":"default",display:b.some(t=>w(t.id,e.id))?"none":"table-row"},onClick:()=>S&&S(t=>A.some(t=>w(t.id,e.id))?A.filter(t=>!w(t.id,e.id)):[...t,e]),children:t.map((t,a)=>(0,s.jsx)(n.A,{padding:0===a?"none":"normal",align:t.align??"left",children:(0,s.jsx)(s.Fragment,{children:t?.displayCallback?t.displayCallback(e,r):e[t.id]})},`row-${t.id}`))},`table-row-${e.id}`);return a?(0,s.jsx)(m.A,{title:a,placement:"right",arrow:!0,enterDelay:400,disableInteractive:!1,children:o},`tooltip-${e.id}`):o}),R>0&&(0,s.jsx)(i.A,{style:{height:33*R},children:(0,s.jsx)(n.A,{colSpan:5})})]})]})}),!c&&(0,s.jsx)(x.A,{rowsPerPageOptions:j,component:"div",count:r,rowsPerPage:I,page:k,onPageChange:(e,t)=>
1v({page:t,offset:t*I}),onRowsPerPageChange:({target:{value:e}})=>v({rowsPerPage:parseInt(e,10),page:0,offset: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.