PageSourceSearch

https://app.heyfoodlama.com/~/static/js/582.60c9b1a8.chunk.js

js heyfoodlama.com collected 2026-10-01 15:16:09 UTC 6,526 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_clickerance_web=self.webpackChunk_clickerance_web||[]).push([[582],{7582:function(t,n,e){e.r(n),e.d(n,{default:function(){return g}});var r=e(678),i=e(3744),o=e(4509),l=e(7754),c=e(8976),s=e(365),a=e(2615),u=e(390),d=e(971),x=e(7876);var f=e.p+"static/media/scan.cf15592f507404cdd6ed061df349e5b9.svg",h=e(7603),p=e(856),m=e(5524),j=e(7936),v=e(2559),g=function(){var t=(0,d.useHistory)(),n=(0,u.useState)(null),e=(0,r.Z)(n,2),g=e[0],y=e[1];return(0,v.jsxs)(i.kC,{flexDir:"column",justifyContent:"center",alignItems:"start",w:"full",pb:"50px",children:[(0,v.jsx)(i.kC,{pt:"30px",pb:"12",gap:"8",flexDir:"column",justifyContent:"center",alignItems:"center",width:"full",position:"relative",children:(0,v.jsx)(s.eZ,{onClick:function(){return t.push(x.ET.dashboard)},withPattern:!0,children:(0,v.jsx)(i.xv,{fontSize:"20px",color:"black",fontWeight:"700",gap:"8",children:(0,a.t)("check-a-product.title")})})}),(0,v.jsxs)(i.xu,{w:"full",px:"8",children:[(0,v.jsx)(p.Z,{content:[{tabTitle:(0,a.t)("check-a-product.scan-product.title"),tabBody:(0,a.t)("check-a-product.scan-product.body"),tabPanel:(0,v.jsx)(o.zx,{minH:"56px",fontWeight:"400",fontSize:"2xl",rounded:"full",onClick:function(){return window[j.a.SCAN_REQUEST]("scan")},width:"full",iconSpacing:"5",py:"9",leftIcon:(0,v.jsx)(l.Ee,{src:f,w:"full",h:"full",objectFit:"cover"}),children:(0,a.t)("check-a-product.scan-product.tap-start-scan")})},{tabTitle:(0,a.t)("check-a-product.paste-url.title"),tabBody:(0,a.t)("check-a-product.paste-url.body"),tabPanel:(0,v.jsxs)(c.BZ,{size:"lg",children:[(0,v.jsx)(c.II,{paddingInlineStart:"6",fontSize:"xl",minH:"56px",rounded:"full",placeholder:(0,a.t)("check-a-product.paste-url.type-here"),borderColor:"#EBEBEB",sx:{"::placeholder":{fontSize:"1.25rem"}},onKeyUp:function(t){return"Enter"===t.key&&window[j.a.SCAN_REQUEST]("paste-url",g)},onChange:function(t){return y(t.target.value)}}),(0,v.jsx)(c.xH,{fontSize:"2xl",top:"50%",transform:"translateY(-50%)",right:"4",color:"#1D2433A6",onClick:function(){return window[j.a.SCAN_REQUEST]("paste-url",g)},children:(0,v.jsx)(h.GV,{})})]})}]}),(0,v.jsx)(i.X6,{fontSize:"2xl",children:(0,a.t)("nav-menu.scan-history")}),(0,v.jsx)(m.h,{})]})]})}},5524:function(t,n,e){e.d(n,{h:function(){return y}});var r=e(7166),i=e(3032),o=e(678),l=e(390),c=e(3744),s=e(7754),a=e(8978),u=e(7524),d=e(2615),x=e(5951),f=e(626),h=e(5380),p=e(606),m=e.n(p),j=e(2559),v=function(t){var n,e=t.scanHistory,u=void 0===e?null:e,p=(0,x.I0)(),v=(0,l.useState)(null!==(n=null===u||void 0===u?void 0:u.product_image_url)&&void 0!==n?n:h.Z),g=(0,o.Z)(v,2),y=g[0],w=g[1],b=function(){var t=(0,i.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===u||!u.is_found){t.next=5;break}return p(f.Nw.setIsShowOverlayLoader(!0)),t.next=4,u.openProductAnalysisPage();case 4:p(f.Nw.setIsShowOverlayLoader(!1));case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),k=null===u?"":u.is_found?""===u.product_name?"N/A":u.product_name:"Product Not Found";return(0,j.jsxs)(c.kC,{w:"full",alignItems:"center",backgroundColor:!1===(null===u||void 0===u?void 0:u.is_found)?"#ebe7e3":"#F8F9FB",boxShadow:"sm",borderRadius:"12px",minH:"75px",position:"relative",p:"4",cursor:"pointer",onClick:b,gap:"3",children:[(0,j.jsx)(c.xu,{w:"48px",h:"full",children:(0,j.jsx)(s.Ee,{objectPosition:"center",objectFit:"contain",w:"full",h:"full",src:y,fallbackSrc:h.Z,onError:function(t){return w(h.Z)},alt:null===u||void 0===u?void 0:u.product_name,fallback:null!==u&&u.is_found&&(0,j.jsx)(c.kC,{w:"full",h:"full",justifyContent:"center",alignItems:"center",bg:"#ddd",children:(0,j.jsx)(a.$,{thickness:"7px",speed:"0.65s",emptyColor:"gray.200",color:"teal.500",size:"xl"})}),sx:{mixBlendMode:"multiply"}})}),(0,j.jsx)(c.kC,{flex:"1",minW:"0",children:(0,j.jsxs)(c.xu,{flex:"1",minW:"0",overflow:"hidden",children:[(0,j.jsx)(c.xv,{fontSize:{base:"14px",md:"16px"},fontWeight:"600",noOfLines:1,title:k,children:k}),(0,j.jsx)(c.xv,{fontSize:{base:"12px",md:"14px"},children:null===u||null===(null===u||void 0===u?void 0:u.timestamp)?"-":m()().isSame(u.timestamp.toDate(),"date")?"Today, ".concat(m()(u.timestamp.toDate()).format("HH:mm")):m()(u.timestamp.toDate()).format("DD MMM[,] HH:mm")}
1)]})}),(0,j.jsxs)(c.xu,{textAlign:"right",ml:"4",children:[(0,j.jsx)(c.xv,{fontSize:{base:"12px",md:"14px"},mb:"1",children:(0,d.t)("history.product-scans.scan-id")}),(0,j.jsx)(c.xv,{fontSize:{base:"12px",md:"14px"},fontWeight:"600",children:(null===u||void 0===u?void 0:u.scan_id)||"-"})]})]})},g=function(t){var n=t.length,e=void 0===n?10:n;return(0,j.jsx)(l.Fragment,{children:Array.from({length:e},(function(){return 0})).map((function(t,n){return(0,j.jsx)(u.Od,{isLoaded:!1,rounded:"12px",children:(0,j.jsx)(v,{scanHistory:null})},n)}))})},y=function(){var t=(0,x.I0)(),n=(0,x.v9)((function(t){return t.app})),e=n.scanHistoryList,r=n.isLoadScanHistory,i=n.isScanHistoryHasMoreData;return(0,l.useEffect)((function(){0===e.length&&!r&&i&&t(f.Nw.loadScanHistoryList(10,null))}),[t,e,r,i]),(0,l.useEffect)((function(){var n=function(){window.innerHeight+document.documentElement.scrollTop<document.documentElement.offsetHeight-5||r||!i||0!==e.length&&i&&t(f.Nw.loadScanHistoryList(10,e[e.length-1].timestamp))};return window.addEventListener("scroll",n),function(){return window.removeEventListener("scroll",n)}}),[r,t,e,i]),(0,j.jsxs)(l.Fragment,{children:[(0,j.jsx)(w,{}),(0,j.jsxs)(c.kC,{flexDir:"column",mt:"4",rowGap:"16px",width:"full",height:"full",children:[r&&0===e.length?(0,j.jsx)(g,{length:8}):e.map((function(t,n){return(0,j.jsx)(v,{scanHistory:t},"".concat(n,"-product-scan"))})),!r&&0===e.length&&(0,j.jsx)(c.xu,{children:(0,j.jsx)(c.xv,{fontSize:{base:"14px",md:"16px"},children:(0,d.t)("history.product-scans.your-scan-history-empty")})}),i||0===e.length?null:(0,j.jsx)(c.kC,{w:"full",justifyContent:"center",children:(0,j.jsx)(c.xv,{fontSize:"10px",children:(0,d.t)("history.product-scans.no-more-scan-history")})}),(0,j.jsx)(u.Od,{visibility:r&&0!==e.length?"visible":"hidden",children:(0,j.jsx)(c.xu,{height:"80px",width:"full"})})]})]})},w=function(){return(0,j.jsx)(c.xu,{width:"full",p:"4",bgColor:"#D9D9D9",display:"none",children:(0,j.jsxs)(c.xv,{color:"black",fontWeight:"500",fontSize:["xl","md","md","large"],textAlign:"center",children:["You have 3 Days left in your free trial.",(0,j.jsx)("br",{}),"Click here to get more unlimited scans"]})})}}}]);
2//# sourceMappingURL=582.60c9b1a8.chunk.js.map

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.