{"product_id":"telescoping-magnetic-led-flashlight-lxa518","title":"Extendable Magnetic Flashlight – 360° Flexible Gooseneck \u0026 LED Light","description":"\u003cstyle\u003e\nhtml.dh-source-replica :is(#SiteHeader,#HeaderWrapper,.shopify-section-group-header-group,#shopify-section-header){display:none!important}\nhtml.dh-source-replica #MainContent{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}\nhtml.dh-source-replica #MainContent\u003e:not(#dh-product-replica){display:none!important}\nhtml.dh-source-replica body.has-sticky-announcement-bar{padding-top:0!important}\n\u003c\/style\u003e\u003cdiv data-replica-url=\"https:\/\/cdn.shopify.com\/s\/files\/1\/1021\/0253\/2413\/files\/lxa518-dh-layout.zip?v=1796208139\" data-product=\"15565995409725\" data-spu=\"LXA518\" data-title=\"Extendable Magnetic Flashlight – 360° Flexible Gooseneck \u0026amp; LED Light\" data-variants=\"68274821693757,68274821726525\"\u003e\n\u003cp\u003e\u003cstrong\u003eExtendable Magnetic Flashlight – 360° Flexible Gooseneck \u0026amp; LED Light\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eReach under seats and into tight spaces with a telescoping LED flashlight. Aim the flexible neck and retrieve small steel parts with the magnetic tip.\u003c\/p\u003e\n\u003c\/div\u003e\u003cscript\u003e(()=\u003e{\nfunction bindReplicaFrame(win, document, send) {\n const $=(q,root=document)=\u003eroot.querySelector(q), $$=(q,root=document)=\u003eArray.from(root.querySelectorAll(q));\n const cfg=JSON.parse($('#dh-bind').textContent);\n const variantArtwork={\"68274821693757\":{\"url\":\"https:\/\/cdn.shopify.com\/s\/files\/1\/1021\/0253\/2413\/files\/lxa518-blk-variant-q80.webp?v=1796210422\",\"alt\":\"Black telescoping magnetic flashlight\"},\"68274821726525\":{\"url\":\"https:\/\/cdn.shopify.com\/s\/files\/1\/1021\/0253\/2413\/files\/lxa518-slv-q80.webp?v=1796210422\",\"alt\":\"Silver telescoping magnetic flashlight picking up small hardware\"}};\n const magnet=$('#section-zg8jb95ye');\n magnet?.style.setProperty('background-image','url(\"'+\"https:\/\/cdn.shopify.com\/s\/files\/1\/1021\/0253\/2413\/files\/lxa518-magnetic-grip-background-q80.webp?v=1796210423\"+'\")','important');\n magnet?.style.setProperty('background-color','#101722','important');\n const purchaseImage=$('.custom-product-main-media img');\n const secondaryStyle=document.createElement('style');\n secondaryStyle.textContent='#replica-cart{text-align:left}.custom-product-inner h3,.custom-product-title{font-family:Inter,Arial,sans-serif!important}'+(cfg.spu==='LXA518'?'@media(min-width:768px){.replica-header nav{min-height:calc(var(--d2c-design-unit)*111)} .replica-price strong{font-size:22px}}':'@media(min-width:768px){.replica-header nav{min-height:85.5px}.replica-price strong{font-size:32px}}');\n document.head.append(secondaryStyle);\n if (cfg.spu==='LXA520') {\n    for(const strip of document.querySelectorAll('#section-tbnn6j3qz,#section-b6l1m7b5j')){\n      const words=document.createTreeWalker(strip,NodeFilter.SHOW_TEXT);\n      while(words.nextNode()){\n        const text=words.currentNode;\n        text.nodeValue=text.nodeValue.replace(\/Offer\\s*Ends\\s*Tonight\/gi,'55% OFF').replace(\/Buy\\s*More,?\\s*Save\\s*More\/gi,'Shop This Product');\n      }\n    }\n }\n const head=$('.replica-header'), offer=$('#section-urytg6dgr'), form=$('#replica-cart'), err=$('#replica-cart-error');\n let pid=cfg.variants[0].id, quantity=1, viewportY=0, viewportHeight=win.innerHeight, resizeQueued=false;\n const fit=()=\u003e{if(resizeQueued)return;resizeQueued=true;window.requestAnimationFrame(()=\u003e{resizeQueued=false;send('height',{height:Math.ceil(document.body.getBoundingClientRect().height)})})};\n const go=where=\u003e{const x=$(where);if(x)send('scroll',{offset:x.getBoundingClientRect().top-((head?.offsetHeight)||0)-8})};\n const update=()=\u003e{\n  const variant=cfg.variants.find(x=\u003ex.id===pid);\n  const artwork=variantArtwork[pid];\n  if(purchaseImage\u0026\u0026artwork\u0026\u0026purchaseImage.src!==artwork.url){\n   purchaseImage.removeAttribute('srcset');\n   purchaseImage.alt=artwork.alt;\n   purchaseImage.src=artwork.url;\n  }\n  $$('.replica-color').forEach(el=\u003eel.setAttribute('aria-pressed',String(el.dataset.variant===pid)));\n  $$('.replica-deal').forEach(el=\u003eel.setAttribute('aria-pressed',String(Number(el.dataset.qty)===quantity)));\n  const number=$('#replica-qty');if(number)number.value=quantity;\n  $('#replica-current').textContent=variant.price;\n  $('#replica-compare').textContent=variant.compare;\n };\n const tab=(button)=\u003e{\n  const container=button.closest('section'), bg=$('.js-tabbed-bg',container);\n  const asset=win.matchMedia('(max-width: 767px)').matches?button.dataset.bgMobile:button.dataset.bgDesktop;\n  if(bg\u0026\u0026asset)bg.style.backgroundImage='url('+JSON.stringify(asset)+')';\n  $$('.js-tabbed-btn',container).forEach(b=\u003e{\n   const active=b===button;\n   b.classList.toggle('is-active-tab',active);\n   b.classList.toggle('opacity-100',active);\n   b.classList.toggle('opacity-50',!active);\n   b.classList.toggle('border-transparent',!active);\n   b.style.borderColor=active?(b.dataset.activeColorDesktop||win.getComputedStyle(b).getPropertyValue('--active-color').trim()):'transparent';\n   b.setAttribute('aria-selected',String(active));\n  });\n  $$('.js-tabbed-content',container).forEach(el=\u003e{\n   const active=el.dataset.index===button.dataset.index;\n   el.classList.toggle('hidden',!active);\n   el.hidden=!active;\n  });\n  fit();\n };\n $$('section:has(.js-tabbed-btn)').forEach(sec=\u003e{const start=$('.js-tabbed-btn.is-active-tab',sec)||$('.js-tabbed-btn',sec);tab(start)});\n const menu=$('.js-mobile-menu-container');\n const menuOpen=open=\u003e{if(menu){\n  menu.classList.toggle('hidden',!open);\n  menu.classList.toggle('opacity-0',!open);\n  menu.classList.toggle('pointer-events-none',!open);\n  const drawer=$('.js-mobile-menu-drawer',menu);\n  if(drawer)drawer.classList.toggle('-translate-x-full',!open);\n }};\n const slides=$$('.custom-product-main-media img',offer);\n if(slides.length\u003e1){let pos=0;const paint=()=\u003eslides.forEach((el,i)=\u003eel.hidden=i!==pos);paint();$('.custom-product-main-media',offer).addEventListener('click',()=\u003e{pos=(pos+1)%slides.length;paint()});}\n document.addEventListener('click',event=\u003e{\n  const el=event.target.closest('a,button,.js-mobile-menu-backdrop');\n  if(!el)return;\n  if(el.matches('[data-replica-jump]')){event.preventDefault();go(el.dataset.replicaJump);menuOpen(false);}\n  else if(el.matches('[data-go-cart]')){event.preventDefault();send('navigate',{path:'\/cart'});}\n  else if(el.matches('[data-replica-link]')){event.preventDefault();send('navigate',{path:el.getAttribute('href')});}\n  else if(el.matches('.js-mobile-menu-btn'))menuOpen(true);\n  else if(el.matches('.js-mobile-menu-close,.js-mobile-menu-backdrop'))menuOpen(false);\n  else if(el.matches('.js-tabbed-btn')){event.preventDefault();tab(el);}\n  else if(el.matches('.js-faq-trigger')){\n    const faq=el.closest('.js-faq-item'), answer=$('.js-faq-content',faq), open=el.getAttribute('aria-expanded')!=='true';\n    el.setAttribute('aria-expanded',String(open));faq.classList.toggle('is-open',open);\n    answer.classList.toggle('hidden',!open);answer.style.maxHeight=open?answer.scrollHeight+'px':'0px';\n    const icon=$('.js-faq-icon',faq);if(icon)icon.classList.toggle('rotate-45',open);fit();\n  }else if(el.matches('.replica-color')){pid=el.dataset.variant;update();}\n  else if(el.matches('#replica-cart [type=\"submit\"]')){\n    event.preventDefault();\n    err.textContent='';\n    send('add',{id:pid,quantity,checkout:el.value==='checkout'});\n  }\n  else if(el.matches('[data-qty]')){quantity=Number(el.dataset.qty);update();}\n  else if(el.matches('[data-step]')){quantity=Math.min(99,Math.max(1,quantity+Number(el.dataset.step)));update();}\n });\n form.addEventListener('change',event=\u003e{if(event.target.id==='replica-qty'){quantity=Math.min(99,Math.max(1,Number(event.target.value)||1));update()}});\n form.addEventListener('submit',event=\u003e{\n  event.preventDefault();err.textContent='';\n  const submitted={id:pid,quantity,checkout:event.submitter?.value==='checkout'};\n  send('add',submitted);\n });\n const videos=$$('video[src]');\n videos.forEach(v=\u003e{v.dataset.dhVideo=v.getAttribute('src');v.removeAttribute('src');v.muted=true;v.loop=true;});\n const receive=m=\u003e{\n  if(m.type==='viewport'){\n   viewportY=Math.max(0,m.y);\n   viewportHeight=m.height;\n   if(head){\n    head.style.position='relative';\n    head.style.transform='translate3d(0,'+(viewportY\/(Number(win.getComputedStyle(document.body).zoom)||1))+'px,0)';\n   }\n   videos.forEach(v=\u003e{\n    const rect=v.getBoundingClientRect();\n    if(rect.bottom\u003e=viewportY-160\u0026\u0026rect.top\u003c=viewportY+viewportHeight+160\u0026\u0026!v.src){\n     v.src=v.dataset.dhVideo;\n     v.play().catch(()=\u003e{v.controls=true;});\n    }\n   });\n  }else if(m.type==='cart-error')err.textContent=m.message;\n };\n win.addEventListener('resize',()=\u003e{$$('.js-tabbed-btn.is-active-tab').forEach(tab);fit()});\n new ResizeObserver(fit).observe(document.body);\n win.addEventListener('load',fit);\n update();\n send('height',{height:Math.ceil(document.body.getBoundingClientRect().height)});\n fit();\n return receive;\n}\n\n(async()=\u003e{\n const s=document.currentScript, holder=s.previousElementSibling;\n if(!holder||holder.dataset.dhMounted)return;\n const stage=document.querySelector('#MainContent');\n const parentSection=holder.closest('[id^=\"ProductSection-\"]');\n if(!stage || !parentSection || !parentSection.id.endsWith('-'+holder.dataset.product))return;\n holder.dataset.dhMounted='1';\n const response=await fetch(holder.dataset.replicaUrl,{credentials:'omit'});\n if(!response.ok)throw new Error('Product layout file unavailable: '+response.status);\n const archive=await response.arrayBuffer(), header=new DataView(archive);\n const signature=header.getUint32(0,true), flags=header.getUint16(6,true), method=header.getUint16(8,true), length=header.getUint32(18,true);\n const start=30+header.getUint16(26,true)+header.getUint16(28,true);\n if(signature!==0x04034b50||flags\u00268||method!==8||start+length\u003earchive.byteLength)throw new Error('Invalid product layout file');\n const stream=new Blob([archive.slice(start,start+length)]).stream().pipeThrough(new DecompressionStream('deflate-raw'));\n const doc=(await new Response(stream).text()).replace(\/\u003cscript\u003e([\\s\\S]*?)\u003c\\\/script\u003e\/gi,'');\n const view=document.createElement('section'), frame=document.createElement('iframe');\n view.id='dh-product-replica';view.dataset.spu=holder.dataset.spu;\n frame.title=holder.dataset.title;frame.sandbox='allow-same-origin';\n frame.style.cssText='display:block;border:0;width:100%;height:1px;overflow:hidden';\n view.style.cssText='width:100%;margin:0;display:block';\n frame.setAttribute('scrolling','no');\n const top=()=\u003eview.getBoundingClientRect().top+scrollY;\n let receive;\n const send=(type,opts={})=\u003ereceive?.({type,...opts});\n let active=false,sending=false,queued=false;\n const inspect=()=\u003e{if(queued)return;queued=true;requestAnimationFrame(()=\u003e{queued=false;send('viewport',{y:scrollY-top(),height:innerHeight})})};\n const ids=holder.dataset.variants.split(',');\n const handle=async (type,opts)=\u003e{\n  const v={type,...opts};\n  if(v.type==='height'\u0026\u0026Number.isFinite(v.height)\u0026\u0026v.height\u003e=200\u0026\u0026v.height\u003c=100000){\n   frame.style.height=Math.ceil(v.height)+'px';\n   if(!active){\n    active=true;\n    stage.querySelectorAll(':scope \u003e :not(#dh-product-replica)').forEach(el=\u003eel.hidden=true);\n    document.documentElement.classList.add('dh-source-replica');\n    view.style.visibility='visible';\n   }\n   inspect();\n  }else if(v.type==='scroll'\u0026\u0026Number.isFinite(v.offset)){\n   scrollTo({top:Math.max(0,top()+v.offset),behavior:'smooth'});\n  }else if(v.type==='navigate'\u0026\u0026['\/','\/cart','\/policies\/refund-policy','\/policies\/shipping-policy','\/pages\/contact'].includes(v.path)){\n   location.assign(v.path);\n  }else if(v.type==='add'\u0026\u0026!sending\u0026\u0026ids.includes(v.id)\u0026\u0026Number.isInteger(v.quantity)\u0026\u0026v.quantity\u003e0\u0026\u0026v.quantity\u003c=99){\n   sending=true;\n   try{\n    const response=await fetch((window.Shopify?.routes?.root||'\/')+'cart\/add.js',{method:'POST',headers:{'Content-Type':'application\/json','Accept':'application\/json'},body:JSON.stringify({items:[{id:Number(v.id),quantity:v.quantity}]})});\n    const details=await response.json();\n    if(!response.ok)throw new Error(details.description||'This item is unavailable in the current preview.');\n    location.assign(v.checkout?'\/checkout':'\/cart');\n   }catch(error){send('cart-error',{message:error.message});}\n   finally{sending=false;}\n  }\n };\n addEventListener('scroll',inspect,{passive:true});\n addEventListener('resize',inspect);\n view.style.visibility='hidden';\n view.append(frame);\n frame.addEventListener('load',()=\u003e{\n   const page=frame.contentDocument;\n   if(!page?.getElementById('dh-bind'))return;\n   receive=bindReplicaFrame(frame.contentWindow,page,handle);\n   inspect();\n });\n frame.srcdoc=doc;\n stage.insertBefore(view,stage.firstChild);\n})().catch(console.error);\n\n\n})();\u003c\/script\u003e","brand":"DHactive","offers":[{"title":"Black","offer_id":68274821693757,"sku":"LXA518-BLK","price":14.99,"currency_code":"USD","in_stock":true},{"title":"Silver","offer_id":68274821726525,"sku":"LXA518-SLV","price":14.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/1021\/0253\/2413\/files\/lxa518-001-q80.webp?v=1796206084","url":"https:\/\/dhactive.com\/products\/telescoping-magnetic-led-flashlight-lxa518","provider":"DHactive","version":"1.0","type":"link"}