PageSourceSearch

https://pricelink.io/_next/static/chunks/1144.818cc362d21f9232.js

js pricelink.io collected 2026-10-01 15:43:08 UTC 5,993 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1144],{53643:function(e,t,r){r.r(t),r.d(t,{GlobalUploadModal:function(){return f}});var n=r(27573),s=r(64357),l=r(56967),o=r(72659),i=r(7653),a=r(30609),d=r(95239);class u extends i.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 rounded-lg border border-red-200 bg-red-50 p-6 text-center dark:border-red-900 dark:bg-red-950",children:[(0,n.jsx)(a.Z,{className:"h-8 w-8 text-red-500"}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-red-900 dark:text-red-200",children:"Something went wrong"}),(0,n.jsx)("p",{className:"text-xs text-red-700 dark:text-red-400",children:"An unexpected error occurred. Please try again."})]}),(0,n.jsx)(d.z,{variant:"outline",size:"sm",onClick:this.handleReset,children:"Try Again"})]}):this.props.children}constructor(e){super(e),this.handleReset=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}}var c=r(8418),h=r(95961),p=r(60169);function f(){let{open:e,setOpen:t}=(0,c.G)();return(0,n.jsx)(s.M,{children:(0,n.jsx)(o.u,{showModal:e,setShowModal:t,className:"sm:max-w-2xl",children:(0,n.jsxs)(l.E.div,{variants:h.RD,initial:"hidden",animate:"visible",exit:"hidden",className:"w-full overflow-x-hidden overflow-y-auto max-h-[90vh] p-6",children:[(0,n.jsxs)("div",{className:"mb-5",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold",children:"File Upload"}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Upload a CSV or Excel file to import and scan products."})]}),(0,n.jsx)(u,{children:(0,n.jsx)(p.D,{})})]})})})}},64357:function(e,t,r){r.d(t,{M:function(){return v}});var n=r(27573),s=r(7653),l=r(50728),o=r(2415),i=r(14),a=r(11668);class d extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(e){let{children:t,isPresent:r}=e,l=(0,s.useId)(),o=(0,s.useRef)(null),i=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,s.useContext)(a._);return(0,s.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:s}=i.current;if(r||!o.current||!e||!t)return;o.current.dataset.motionPopId=l;let a=document.createElement("style");return u&&(a.nonce=u),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(l,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            top: ").concat(n,"px !important;\n            left: ").concat(s,"px !important;\n          }\n        ")),()=>{document.head.removeChild(a)}},[r]),(0,n.jsx)(d,{isPresent:r,childRef:o,sizeRef:i,children:s.cloneElement(t,{ref:o})})}let c=e=>{let{children:t,initial:r,isPresent:l,onExitComplete:a,custom:d,presenceAffectsLayout:c,mode:p}=e,f=(0,o.h)(h),m=(0,s.useId)(),x=(0,s.useCallback)(e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;a&&a()},[f,a]),v=(0,s.useMemo)(()=>({id:m,initial:r,isPresent:l,custom:d,onExitComplete:x,register:e=>(f.set(e,!1),()=>f.delete(e))}),c?[Math.random(),x]:[l,x]);return(0,s.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[l]),s.useEffect(()=>{l||f.size||!a||a()},[l]),"popLayout"===p&&(t=(0,n.jsx)(u,{isPresent:l,children:t})),(0,n.jsx)(i.O.Provider,{value:v,children:t})};function h(){return new Map}var p=r(19235);let f=e=>e.key||"";function m(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}var x=r(98739);let v=e=>{let{children:t,custom:r,initial:i=!0,onExitComplete:a,presenceAffectsLayout:d=!0,mode:u="sync",propagate:h=!1}=e,[v,g]=(0,p.oO)(h),j=(0,s.useMemo)(()=>m(t),[t]),E=h&&!v?[]:j.map(f),w=(0,s.useRef)(!0),C=(0,s.useRef)(j),b=(0,o.h)(()=>
1new Map),[k,R]=(0,s.useState)(j),[y,M]=(0,s.useState)(j);(0,x.L)(()=>{w.current=!1,C.current=j;for(let e=0;e<y.length;e++){let t=f(y[e]);E.includes(t)?b.delete(t):!0!==b.get(t)&&b.set(t,!1)}},[y,E.length,E.join("-")]);let N=[];if(j!==k){let e=[...j];for(let t=0;t<y.length;t++){let r=y[t],n=f(r);E.includes(n)||(e.splice(t,0,r),N.push(r))}"wait"===u&&N.length&&(e=N),M(m(e)),R(j);return}let{forceRender:S}=(0,s.useContext)(l.p);return(0,n.jsx)(n.Fragment,{children:y.map(e=>{let t=f(e),s=(!h||!!v)&&(j===y||E.includes(t));return(0,n.jsx)(c,{isPresent:s,initial:(!w.current||!!i)&&void 0,custom:s?void 0:r,presenceAffectsLayout:d,mode:u,onExitComplete:s?void 0:()=>{if(!b.has(t))return;b.set(t,!0);let e=!0;b.forEach(t=>{t||(e=!1)}),e&&(null==S||S(),M(C.current),h&&(null==g||g()),a&&a())},children:e},t)})})}},24241:function(e,t,r){r.d(t,{S:function(){return h}});var n=r(27573),s=r(7653),l=r(50728);let o=(0,s.createContext)(null);var i=r(98739),a=r(32736);let d=e=>!e.isLayoutDirty&&e.willUpdate(!1),u=e=>!0===e,c=e=>u(!0===e)||"id"===e,h=e=>{let{children:t,id:r,inherit:h=!0}=e,p=(0,s.useContext)(l.p),f=(0,s.useContext)(o),[m,x]=function(){let e=function(){let e=(0,s.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[t,r]=(0,s.useState)(0),n=(0,s.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,s.useCallback)(()=>a.Wi.postRender(n),[n]),t]}(),v=(0,s.useRef)(null),g=p.id||f;null===v.current&&(c(h)&&g&&(r=r?g+"-"+r:g),v.current={id:r,group:u(h)&&p.group||function(){let e=new Set,t=new WeakMap,r=()=>e.forEach(d);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);let s=t.get(n);s&&(s(),t.delete(n)),r()},dirty:r}}()});let j=(0,s.useMemo)(()=>({...v.current,forceRender:m}),[x]);return(0,n.jsx)(l.p.Provider,{value:j,children:t})}}}]);

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.