PageSourceSearch

https://www.epharma.co.il/cdn/shop/t/9/assets/shine-trust-v4-product-badge.js?v=163303082972753879751791274912

js epharma.co.il collected 2026-10-10 00:56:39 UTC 26,253 bytes, 1 lines download raw bytes

1!function(e){"use strict";const t=e=>{if("string"!=typeof e)return"";const t=e.trim();if(/^\/(?![\/\\])/.test(t)||t.startsWith("#")||/^(mailto|tel):/i.test(t))return t;if(!/^https?:\/\//i.test(t))return"";try{const e=new URL(t);return"http:"===e.protocol||"https:"===e.protocol?t:""}catch(e){return""}},i=(()=>{const t=new Set(["script","style","iframe","frame","frameset","object","embed","applet","base","meta","link","noscript","noembed","noframes","xmp","plaintext","title","textarea","template","portal","math","animate","set","animatemotion","animatetransform","handler","listener"]),i=new Set(["h1","h2","h3","h4","h5","h6","br","span","b","u","i","em"]),a=new Set(["href","xlink:href","src","action","formaction","poster","background","data","lowsrc","dynsrc","srcset"]),n=/expression\s*\(|javascript:|behavior\s*:|-moz-binding/i,s=e=>{const t=String(e??"").replace(/[\u0000- \u007f-\u009f]+/g,""),i=t.match(/^([a-z][a-z0-9+.-]*):/i);if(!i)return!0;const a=i[1].toLowerCase();return"http"===a||"https"===a||"mailto"===a||"tel"===a||"data"===a&&/^data:image\/(png|jpe?g|gif|webp);/i.test(t)},o=(o,l)=>{const r=e.createElement("template");r.innerHTML=o;for(const e of Array.from(r.content.querySelectorAll("*")).reverse()){const o=String(e.localName).toLowerCase();if(t.has(o))e.remove();else if(!l||i.has(o))for(const{name:t,value:i}of Array.from(e.attributes)){const o=t.toLowerCase();if(l)("style"!==o&&"class"!==o||"style"===o&&n.test(i))&&e.removeAttribute(t);else if(o.startsWith("on"))"onclick"===o&&/^st[A-Za-z]+\(event\);?$/.test(String(i).trim())||e.removeAttribute(t);else if("srcdoc"===o||"formaction"===o)e.removeAttribute(t);else if(a.has(o)){("srcset"===o?String(i).split(",").map(e=>e.trim().split(/\s+/)[0]):[i]).every(s)||e.removeAttribute(t)}else"style"===o&&n.test(i)&&e.removeAttribute(t)}else e.replaceWith(...Array.from(e.childNodes))}return r.innerHTML};return(e,t)=>{if(null==e||""===e)return"";let i=String(e);for(let e=0;e<4;e++){const e=o(i,t);if(e===i)return i;i=e}return o(i,t)}})(),a=e=>i(e,!0);window.ST_SAFE_HELPERS="safe-helpers-2026-10-05";const n=setInterval(()=>{window.ST_GLOBALS&&(clearInterval(n),_().then(()=>console.info("ST Product Badge loaded")))});class s{constructor(t){this.editor=t,this.badgeElement=e.createElement("div"),this.badgeItemElement=e.createElement("div"),this.imageBadgeElement=null}render(){const{id:n,name:s,status:l,property:{positions:r=[],size:d,animation:c},badgeType:p,displayPosition:u,positionImage:m,hasDynamicData:h,badgeEditData:{labelLink:g=""}}=this.editor;this.badgeElement.style.display="none",this.badgeElement.classList.add("shine-trust-icon-wrap"),this.badgeElement.classList.add(`item-${n}`);const f=r.length?r[0]:null;let w="";switch(window.ST_GLOBALS.pageType){case"index":w="in-home";break;case"product":w="in-single-product";break;case"cart":w="in-cart";break;case"list-collections":w="in-list-collections";break;case"collection":w="in-collection";break;case"search":w="in-search"}if(w&&this.badgeElement.classList.add(w),this.badgeItemElement.classList.add("badgeItem"),this.badgeItemElement.classList.add(c),f){const e=f?.preset||"top-left";if("%"===(f?.unit||"%"))this.badgeItemElement.style.left=`${f.axisX}%`,this.badgeItemElement.style.top=`${f.axisY}%`;else switch(e){case"top-left":default:this.badgeItemElement.style.left=`${f.axisX}px`,this.badgeItemElement.style.top=`${f.axisY}px`;break;case"top-right":this.badgeItemElement.style.right=`${f.axisX}px`,this.badgeItemElement.style.top=`${f.axisY}px`;break;case"bottom-left":this.badgeItemElement.style.left=`${f.axisX}px`,this.badgeItemElement.style.bottom=`${f.axisY}px`;break;case"bottom-right":this.badgeItemElement.style.right=`${f.axisX}px`,this.badgeItemElement.style.bottom=`${f.axisY}px`}}if("image-badge"===p){if(this.imageBadgeElement=e.createElement("img"),this.editor?.patternBadgeCSSRender){const t=this.editor.patternBadgeCSSRender,i=`.item-${n.toString()}`,a=t.replaceAll(/{{REPLATE_ID_BADGE}}/g,i),s=e.createElement("style");s.type="text/css";const o=`${a}`;s.appendChild(e.createTextNode(o)),e.head.appendChild(s)}else window.ST_META_DATA.resizeBadge?(this.badgeItemElement.style.width=`${window.ST_META_DATA.resizeBadge}%`,this.badgeItemElement.style.maxWidth=`${d}px`):this.badgeItemElement.style.width=`${d}px`;this.badgeItemElement.style.height="auto";const i=f.imageURL,a=i.lastIndexOf("/");if(this.imageBadgeElement.setAttribute("src",o+"/assets/"+i.substring(a+1)),this.imageBadgeElement.setAttribute("alt",n
1),this.imageBadgeElement.setAttribute("data-src",i),this.imageBadgeElement.style.width="100%",this.imageBadgeElement.setAttribute("style","height : auto !important"),this.imageBadgeElement.style.objectFit="unset",f){"%"===(f?.unit||"%")?(this.imageBadgeElement.style.transform=`translate(${-1*f.axisX}%, ${-1*f.axisY}%)`,this.imageBadgeElement.style.WebkitTransform=`translate(${-1*f.axisX}%, ${-1*f.axisY}%)`):(this.imageBadgeElement.style.transform="translate(0)",this.imageBadgeElement.style.WebkitTransform="translate(0)")}const s=t(g);if(""!==s){const t=e.createElement("a");t.href=s,t.rel="noopener noreferrer",t.target="_blank",t.style.display="inline-flex",t.style.lineHeight="1",t.style.textDecoration="none",t.appendChild(this.imageBadgeElement),this.badgeItemElement.appendChild(t)}else this.badgeItemElement.appendChild(this.imageBadgeElement)}else if("text-badge"===p){const{patternID:n,patternBadgeData:{badgeHtml:s,badgeCss:o,badgeName:l},badgeEditData:{labelText:r,fontFamily:d},patternBadgeCSSRender:c,hasDynamicData:p}=this.editor;if(this.imageBadgeElement=e.createElement("div"),this.imageBadgeElement.classList.add("patternBadgeItem"),f){"%"===(f?.unit||"%")?(this.imageBadgeElement.style.transform=`translate(${-1*f.axisX}%, ${-1*f.axisY}%)`,this.imageBadgeElement.style.WebkitTransform=`translate(${-1*f.axisX}%, ${-1*f.axisY}%)`):(this.imageBadgeElement.style.transform="translate(0)",this.imageBadgeElement.style.WebkitTransform="translate(0)")}let u=String(s??"");if(!p){const e=(y=r,a(window.ST_GLOBALS.translate(y,b)));u=u.replace("{{TEXT_BADGE}}",()=>e)}u=(e=>i(e,!1))(u);const m=t(g);""!==m&&(u=`<a href="${(e=>String(e??"").replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"}[e])))(m)}" target="_blank" rel="noopener noreferrer" style="display: inline-flex; line-height: 1; text-decoration: none">${u}</a>`),this.imageBadgeElement.innerHTML=u,this.badgeItemElement.classList.add("badgeItemPattern"),this.badgeItemElement.appendChild(this.imageBadgeElement),this.badgeElement.classList.add(n.substring(1))}var y,b;return this.badgeElement.appendChild(this.badgeItemElement),{id:n,badgeEl:this.badgeElement,badgeType:p,displayPosition:u,hasDynamicData:h,positionImage:m,labelText:this.editor?.badgeEditData?.labelText,patternName:this.editor?.patternBadgeData?.badgeName,patternCss:this.editor?.patternBadgeData?.badgeCss,badgeCss:"text-badge"===p?this.editor?.patternBadgeCSSRender:"",filters:window.ST_GLOBALS.convertFilters(this.editor?.productFilters,this.editor?.selectedProducts),fontFamily:this.editor?.badgeEditData?.fontFamily}}}let o=null,l=!1,r=!1,d=!1,c="",p=null,u=!1,m=!1,h=!1,g="",f=null;const w=["absolute","fixed","sticky"];let y="";function b(e){return"string"==typeof e?e.trim().toLowerCase():""}const T={},S={default:null,custom:null,customPosition:null},_=async function(){if(!window.ST_PLAN||"ACTIVE"!==window.ST_PLAN?.status)return;let t="en";try{t=await async function({mode:e,shopifyCountry:t,getIpCountry:i}){const a=b(t);if("shopify_markets"===e){if(a)return a;try{return b(await i())||a}catch(e){return a}}try{return b(await i())}catch(e){return""}}({mode:window.ST_META_DATA?.detectVisitorLocationBy,shopifyCountry:window.Shopify?.country,getIpCountry:()=>window.ST_GLOBALS.getCountryCode()})}catch(e){}let i=[...window.ST_PRODUCT_BADGES,...window.ST_AUTOMATION_BADGES]||[];if(0===i.length)return;"Free"===window.ST_PLAN?.name&&(i=i.splice(0,2)),o=window.ST_GLOBALS.getBaseCDN(),l=window.ST_META_DATA.fixMultiLanguage||!1,r=window.ST_META_DATA.searchByID||!1,d=window.ST_META_DATA.idSelectors||!1,u=window.ST_META_DATA.prefixLanguageCode||!1,m=window.ST_META_DATA.useUrlLocate||!1,h=window.ST_META_DATA.useRootLanguage||!1,c=window.ST_META_DATA.mainLanguageCode||"",g=window.ST_META_DATA.findByTitle||"",p=window.ST_GLOBALS.currentLanguage,h&&(p=Shopify.routes.root.replaceAll("/","")),y=window.ST_META_DATA?.excludedLinks||'a[href*="/products/"]:not(.sp-link):not(.stBadgeLo
1aded),[data-href]:not(.sp-link):not(.stBadgeLoaded)',S.default=N(),S.custom=M(),S.customPosition=G();const n=[],w={},_={};if(i.map(e=>{const{status:i=!1,property:{startDateStatus:a,endDateStatus:o,startDate:l,endDate:r},badgeEditData:d}=e,{targeting:{locationFilter:c="include",locationShow:p=["all"]}}=d;let u=!1;if("include"===c&&(p.includes("all")||p.includes(t.toLowerCase()))?u=!0:"exclude"!==c||p.includes("all")||p.includes(t.toLowerCase())||(u=!0),i&&u){let t=!1;if(a||o){const e=window.ST_GLOBALS.dateWithTimeZone(new Date,window.ST_META_DATA.timeZone),i=window.ST_GLOBALS.dateWithTimeZone(l,window.ST_META_DATA.timeZone),n=window.ST_GLOBALS.dateWithTimeZone(r,window.ST_META_DATA.timeZone);(!a&&o&&n.getTime()>=e.getTime()||a&&!o&&i.getTime()<=e.getTime()||a&&o&&i.getTime()<=e.getTime()&&n.getTime()>=e.getTime())&&(t=!0)}else t=!0;if(t){const{targeting:t={}}=d;if(q(window.ST_GLOBALS.pageType,t?.pageShow,t?.collections)){const t=new s(e).render();T[t.id]=t;const i=t.fontFamily;if("object"==typeof i&&i?.fontFamily){0===n.filter(e=>e.fontFamily===i.fontFamily&&parseInt(e.fontWeight)===parseInt(i.fontWeight)).length&&n.push(i)}t?.patternCss&&!w.hasOwnProperty(t.patternName)&&(w[t.patternName]=t.patternCss),t?.badgeCss&&(_[t.id]=t.badgeCss)}}}}),n.length&&n.map(e=>{window.ST_LOADED_FONTS.includes(e.fontFamily)||window.ST_GLOBALS.loadFont(e)}),Object.keys(w).length){let e="";for(const t in w)e+=w[t];window.ST_GLOBALS.addStyle(e)}if(Object.keys(_).length){let e="";for(const t in _)e+=_[t];window.ST_GLOBALS.addStyle(e)}let v=e.URL;const B=new URL(v);f=B.searchParams.get("variant")||null,e.addEventListener("change",function(t){const i=e.URL,n=new URL(i);f=n.searchParams.get("variant")||null,f&&v!==i&&(v=i);const s=e.body.querySelectorAll(".single-product-badge.has-dynamic-data");for(let e=0;e<s.length;e++)try{const t=s[e],i=JSON.parse(t.dataset.badge_id).id,n=JSON.parse(t.dataset.variants);if(n&&n.hasOwnProperty(f)&&T.hasOwnProperty(i)){t.classList.remove("none-variant");const e=t.querySelector(".st-label-text"),s=n[f];let{labelText:o}=T[i],l=window.ST_GLOBALS.translate(o);k(l,s)||t.classList.add("none-variant"),l=P(l,s),e.innerHTML=a(l)}}catch(e){console.log(e)}});const D=e.querySelector('[data-app="shine-trust-app"]'),x=e.querySelector('[data-app="shine-trust-app-single"]');D&&L(),x&&(e.body.classList.add("st-single-loaded"),A(x)),E(),setInterval(()=>{D&&L(),E()},500)},A=async function(e){for(const t in T){const i=T[t],{filters:a}=i;if(e)try{const{product:t=""}=e.dataset,n=JSON.parse(Base64.decode(t));B(a,n,i,[null])}catch(e){console.log(e)}}},L=async function(){const e=U('.sp-product-card a[href*="/products/"]:not(.stBadgeLo
1aded)');for(const t in T){const i=T[t],{filters:a}=i;for(let t=0;t<e.length;t++){const n=e[t],s=n.getAttribute("href")||n.getAttribute("data-href");R(s);n.classList.add("stBadgeLoaded");const o=n.closest(".sp-product-card").querySelector('[data-app="shine-trust-app"]');if(o)try{const{product:e=""}=o.dataset,t=JSON.parse(Base64.decode(e));B(a,t,i,[n])}catch(e){console.log(e)}}}},E=async function(){const t=U();let i=[];const a={};for(let e=0;e<t.length;e++){const n=t[e],s=n.getAttribute("href")||n.getAttribute("data-href"),o=R(s);a.hasOwnProperty(o)?a[o].push(n):a[o]=[n],i.push(o),n.classList.add("stBadgeLoaded")}if("product"===window.ST_GLOBALS.pageType&&window.ST_GLOBALS.productHandle&&!e.body.classList.contains("st-single-loaded")&&(a.hasOwnProperty(window.ST_GLOBALS.productHandle)?a[window.ST_GLOBALS.productHandle].push(null):a[window.ST_GLOBALS.productHandle]=[null],i.push(window.ST_GLOBALS.productHandle),e.body.classList.add("st-single-loaded")),i=[...new Set(i)],i.length){if(r)try{let t=[];e.querySelectorAll(`${d}
1:not(.stBadgeLoaded)`).forEach(e=>{t.push(e.value),e.classList.add("stBadgeLoaded")}),i=[...new Set(t)]}catch(e){}if(g){F().map(e=>{let t="";t=l&&p!==c?u?`${m?window.ST_GLOBALS.shopUrlLocate:window.ST_GLOBALS.shopUrl}/search.js?q=${e}&view=shinetrust.product-handles`:`${m?window.ST_GLOBALS.shopUrlLocate:`${window.ST_GLOBALS.shopUrl}/${p}`}/search.js?q=${e}&view=shinetrust.product-handles`:`${m?window.ST_GLOBALS.shopUrlLocate:window.ST_GLOBALS.shopUrl}/search.js?q=${e}&view=shinetrust.product-handles`,v(t,a).then(()=>!0)})}else{const e=i.length,t=50;for(let n=0;n<e;n+=t){const e=i.slice(n,n+t),s=e.length;let o="";e.map((e,t)=>{o+=l&&p!==c&&!m?`${e}${t<s-1?" OR ":""}`:r?`id:"${e}"${t<s-1?" OR ":""}`:`handle:"${e}"${t<s-1?" OR ":""}`});let d="";d=l&&p!==c?u?`${m?window.ST_GLOBALS.shopUrlLocate:window.ST_GLOBALS.shopUrl}/search.js?q=${o}&view=shinetrust.product-handles`:`${m?window.ST_GLOBALS.shopUrlLocate:`${window.ST_GLOBALS.shopUrl}/${p}`}/search.js?q=${o}&view=shinetrust.product-handles`:`${m?window.ST_GLOBALS.shopUrlLocate:window.ST_GLOBALS.shopUrl}/search.js?q=${o}&view=shinetrust.product-handles`,d&&v(d,a).then(()=>!0)}}}},v=async function(e,t){try{const i=await fetch(e,{mode:"no-cors"}),a=await i.json();for(const e in T){const i=T[e],{filters:n}=i;a.map(e=>{let{handle:a}=e;t.hasOwnProperty(a)&&B(n,e,i,t[a])})}}catch(e){console.log(e)}},B=function(e,t,i,a){let{published_at:n,created_at:s,on_sale:o,inventory:l,collections:r,tags:d,title:c,id:p,featured_image:u,available:m,price_min:h,price_max:g,vendor:f,type:w,variant:y,variants:b}=t;if(h=window.ST_GLOBALS.fixPrice(h),g=window.ST_GLOBALS.fixPrice(g),e.type)if("new-arrival"===e.type){let t=window.ST_GLOBALS.dateWithTimeZone(new Date(parseInt(n)),window.ST_META_DATA.timeZone);window.ST_META_DATA?.newArrivalByCreatedAt&&(t=window.ST_GLOBALS.dateWithTimeZone(new Date(parseInt(s)),window.ST_META_DATA.timeZone));const o=window.ST_GLOBALS.dateWithTimeZone(new Date(e.date),window.ST_META_DATA.timeZone);t.getTime()>=o.getTime()&&D(a,i,{variant:y,variants:b,inventory:l,badge_id:{id:i.id}},{title:c,featured_image:u})}else"on-sale"===e.type&&o||"low-stock"===e.type&&l>0&&l<=e.quantity?D(a,i,{variant:y,variants:b,inventory:l,badge_id:{id:i.id}},{title:c,featured_image:u}):"out-stock"!==e.type||m||D(a,i,{variant:y,variants:b,inventory:l,badge_id:{id:i.id}},{title:c,featured_image:u});else if("all"===e?.mode)D(a,i,{variant:y,variants:b,badge_id:{id:i.id},inventory:l},{title:c,featured_image:u});else if("manual"===e?.mode&&e.products.size)e.products.has(p)&&D(a,i,{variant:y,variants:b,inventory:l,badge_id:{id:i.id}},{title:c,featured_image:u});else if("condition"===e?.mode){let t=0,n=Object.keys(e.filters).length;if(e.collection.length){n+=1;const i=r.some(t=>e.collection.includes(t.toString()));(e.collection.includes("all")||i)&&(t+=1)}if(e.collectionExclude.length){n+=1;r.some(t=>e.collectionExclude.includes(t.toString()))||(t+=1)}for(const i in e.filters)"_s"===i&&c.toString().toLowerCase().includes(e.filters[i])&&(t+=1),"price"===i&&!isNaN(h)&&!isNaN(g)&&h>=e.filters[i].min&&g<=e.filters[i].max&&(t+=1),"tag"===i&&d.includes(`${e.filters.tag}`)&&(t+=1),"tagExclude"!==i||d.includes(`${e.filters.tagExclude}`)||(t+=1),"vendor"===i&&f===e.filters.vendor&&(t+=1),"type"===i&&w===e.filters.type&&(t+=1),"inventory"===i&&("instock"===e.filters.inventory.type&&m&&(t+=1),"outstock"!==e.filters.inventory.type||m||(t+=1),"less-than"===e.filters.inventory.type&&m&&!isNaN(l)&&-1!==l&&l<=e.filters.inventory.lte&&(t+=1),"great-than"===e.filters.inventory.type&&m&&!isNaN(l)&&(-1===l||l>=e.filters.inventory.gte)&&(t+=1));t===n&&D(a,i,{variant:y,variants:b,inventory:l,badge_id:{id:i.id}},{title:c,featured_image:u})}},D=function(t,i,a={},n={}){const{badgeType:s,displayPosition:o,positionImage:l,id:r,badgeEl:d,hasDynamicData:c,labelText:p,labelLink:u=""}=i;if(S.default)for(let e=0;e<t.length;e++){const i=t[e];if(null===i){if("product_image"===o)if(S.customPosition&&S.customPosition.hasOwnProperty(r)&&S.customPosition[r].single){const{parent:e,child:t,await:n}=S.customPosition[r].single;x({linkEl:i,parent:e,child:t,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,attrs:a,_await:n})}else{let e=[];S.custom?e=S.custom?.single.thumbnail:S.default&&(e=S.default?.single.thumbnail),e.map(e=>{const{parent:t,child:n,await:l=!1}=e;x({linkEl:i,parent:t,child:n,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,attrs:a,_await:l})})}else if("product_information"===o){let e="below";if(l.includes("above")&&(e="above"),S.customPosition&&S.customPosition.hasOwnProperty(r)&&S.customPosition[r].single){const{parent:t,child:n,await:l}=S.customPosition[r].single;x({linkEl:i,parent:t,child:n,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,position:e,attrs:a,_await:l})}else{let t=[],n=[];S.default&&(t=S.default?.single.title,n=S.default?.single.price),S.custom&&(t=S.custom?.single.title,n=S.custom?.single.price);let u=t;"below_price"!==l&&"above_price"!==l||(u=n),u.map(t=>{const{parent:n,child:l,await:u=!1}=t;x({linkEl:i,parent:n,child:l,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,position:e,attrs:a,_await:u})})}}}else if("product_image"===o)if(S.customPosition&&S.customPosition.hasOwnProperty(r)&&S.customPosition[r].loop){const{parent:e,child:t,await:n}=S.customPosition[r].loop;x({linkEl:i,parent:e,child:t,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,attrs:a,_await:n})}else{let e=[];S.custom?e=S.custom?.loop.thumbnail:S.default&&(e=S.default?.loop.thumbnail),e.map(e=>{const{parent:t,child:n,await:l=!1}=e;x({linkEl:i,parent:t,child:n,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,attrs:a,_await:l})})}else if("product_information"===o){let e="below";if(l.includes("above")&&(e="above"),S.customPosition&&S.customPosition.hasOwnProperty(r)&&S.customPosition[r].loop){const{parent:t,child:n,await:l}=S.customPosition[r].loop;x({linkEl:i,parent:t,child:n,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,position:e,attrs:a,_await:l})}else{let t=[],n=[];S.default&&(t=S.default?.loop.title,n=S.default?.loop.price),S.custom&&(t=S.custom?.loop.title,n=S.custom?.loop.price);let u=t;"below_price"!==l&&"above_price"!==l||(u=n),u.map(t=>{const{parent:n,child:l,await:u=!1}=t;x({linkEl:i,parent:n,child:l,badgeEl:d,id:r,badgeType:s,hasDynamicData:c,displayPosition:o,labelText:p,position:e,attrs:a,_await:u})})}}}else if("product_image"===o){let{featured_image:t}=n;if(!t)return;t=t.split("?")[0];const i=e.body.querySelectorAll('div[data-bg*="'+t+'"], div[data-bgset*="'+t+'"],img[src*="'+t+'"], img[srcset*="'+t+'"]');for(let e=0;e<i.length;e++){const t=i[e].parentElement;if(t&&!t.classList.contains(`item-${r}`)){const e=getComputedStyle(t);w.includes(e.position)||(t.style.position="relative");const i=I(d);if(Object.keys(a).length)for(const e in a)i.dataset[e]=JSON.stringify(a[e]);"text-badge"===s&&O(c,i,p),c&&i.classList.add("has-dynamic-data"),t.appendChild(i),i.classList.add("loaded"),t.classList.add(`item-${r}`)}}}else if("product_information"===o){const{title:e}=n;let t="below";l.includes("above")&&(t="above");const i=C(e);for(let e=0;e<i.length;e++){const n=i[e].parentNode;if(n&&!n.classList.contains(`item-${r}`)){const o=I(d);if(Object.keys(a).length)for(const e in a)o.dataset[e]=JSON.stringify(a[e]);if("text-badge"===s&&O(c,o,p),"below"===t){const t=i[e].nextSibling;null===t?n.appendChild(o):n.insertBefore(o,t)}"above"===t&&n.insertBefore(o,i[e]),c&&o.classList.add("has-dynamic-data"),o.classList.add("in-product-information"),o.classList.add("loaded"),n.classList.add(`item-${r}`)}}}},x=async function(t){const{linkEl:i,parent:a,child:n,badgeEl:s,id:o,badgeType:l,hasDynamicData:r,displayPosition:d="product_image",labelText:c,attrs:p={},position:u=null,_await:m=!1}=t,h=null===i;let g;if(g=a?i?i.closest(a):e.body.querySelector(a):e.body,g&&!g.classList.contains(`item-${o}`)){let e=g.querySelectorAll(n);if(0===e.length&&m){let t=0;for(;t<=10;)e=g.querySelectorAll(n),0===e.length?(await new Promise(e=>
1setTimeout(e,300)),t++):t=11}for(let t=0;t<e.length;t++){const a=e[t],n=getComputedStyle(a);"product_image"!==d||w.includes(n.position)||(a.style.position="relative");const m=I(s);if(Object.keys(p).length)for(const e in p)m.dataset[e]=JSON.stringify(p[e]);if("text-badge"===l&&O(r,m,c,h),u){const e=a.parentNode;if("below"===u){const t=a.nextSibling;null===t?e.appendChild(m):e.insertBefore(m,t)}else"above"===u&&e.insertBefore(m,a)}else a.appendChild(m);u&&m.classList.add("in-product-information"),i||m.classList.add("single-product-badge"),r&&m.classList.add("has-dynamic-data"),m.classList.add("loaded"),g.classList.add(`item-${o}`)}}},O=function(e,t,i,n=!1){const s=t.querySelector(".st-label-text");let o=window.ST_GLOBALS.translate(i);if(e)try{let e=JSON.parse(t.dataset.variant);if(!n&&window.ST_META_DATA?.inventoryByTotal&&(e.inventory_quantity=t.dataset.inventory),f){const i=JSON.parse(t.dataset.variants);i.hasOwnProperty(f)&&(e=i[f])}e&&(t.classList.remove("none-variant"),k(o,e)||t.classList.add("none-variant"),o=P(o,e,t),s.innerHTML=a(o))}catch(e){console.log(e)}},P=function(e,t,i=void 0){return e=e.replace(/{{sale_amount}}|{{sale_percent}}|{{inventory}}|{{mtf\.(.*)}}/g,function(e){return $(e,t,i)})},$=function(e,t,i=void 0){const{sale_amount:a,sale_percent:n,inventory_quantity:s,id:o}=t;switch(e){case"{{sale_amount}}":return a;case"{{sale_percent}}":return`${n}%`;case"{{inventory}}":return s;default:if(/{{mtf\.(.*)}}/.test(e)){const t=e.match(/{{mtf\.(.*)}}/)[1],a=window.ST_DATA_METAFIELDS;if(!a.hasOwnProperty(o))return i.classList.add("none-variant"),"";if(""!==a[o][t]&&null!==a[o][t]&&void 0!==a[o][t])return a[o][t];i.classList.add("none-variant")}return""}},k=function(e,t){let{price:i,compare_at_price:a,inventory_quantity:n,inventory_management:s}=t;i=parseFloat(i),a=parseFloat(a),n=parseInt(n),s=""===s?null:s;const o=e.match(/{{sale_amount}}|{{sale_percent}}|{{inventory}}|{{mtf\.(.*)}}/gm);if(null===o)return!1;if(o.includes("{{sale_amount}}")||o.includes("{{sale_percent}}"))return a>i;if(o.includes("{{inventory}}"))return null!==s&&-1!==n&&n>0;for(let e of o)if(/{{mtf\.(.*)}}/.test(e))return!0;return!1},C=function(t,i=null){const a=[],n=null===i?e:i;for(const e of n.querySelectorAll("div, h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a"))e.textContent.trim()===t&&0===e.children.length&&a.push(e);return a},I=function(e){const t=e.cloneNode(!0),i=t.querySelector("img");return null!==i&&(i.onerror=function(){return this.onerror="",this.src=this.getAttribute("data-src"),!0}),t},G=function(){if(window.ST_META_DATA.customBadgePosition){const e=window.ST_META_DATA.customBadgePosition.replace(/[\n\r\t]+/g,"").split(","),t={};return e.map(e=>{const i=e.split("||");i.length>=4&&(t.hasOwnProperty(i[0])||(t[i[0]]={single:null,loop:null}),t[i[0]][i[1]]={parent:i[2],child:i[3],await:!(void 0===i[4]||"1"!==i[4])})}),t}return null},M=function(){if(window.ST_META_DATA.customCompatibleTheme){const e=window.ST_META_DATA.customCompatibleTheme.replace(/[\n\r\t]+/g,"").trim().split(";;"),t={loop:{thumbnail:[{parent:".sp-product-card",child:".sp-product-card-media",await:!1}],title:[{parent:".sp-product-card",child:".sp-product-card-heading",await:!1}],price:[{parent:".sp-product-card",child:".sp-product-card-price",await:!1}]},single:{thumbnail:[],title:[],price:[]}};return e.map(e=>{if(""!==e){const i=e.split(":");if(2===i.length){i[1].split(",").map(e=>{const a=e.split("||"),n={parent:a[0],child:a[1],await:3===a.length};switch(i[0]){case"image":t.loop.thumbnail.push(n);break;case"title":t.loop.title.push(n);break;case"price":t.loop.price.push(n);break;case"imageSingle":t.single.thumbnail.push(n);break;case"titleSingle":t.single.title.push(n);break;case"priceSingle":t.single.price.push(n)}})}}}),t}return null},N=function(){if(window.ST_META_DATA.compatibleData){const{selectors:{image:e,imageSingleProduct:t,detail:{title:i,price:a,titleSingleProduct:n,priceSingleProduct:s}}}=window.ST_META_DATA.compatibleData,o={loop:{thumbnail:[{parent:".sp-product-card",child:".sp-product-card-media",await:!1}],title:[{parent:".sp-product-card",child:".sp-product-card-heading",await:!1}],price:[{parent:".sp-product-card",child:".sp-product-card-price",await:!1}]},single:{thumbnail:[],title:[],price:[]}};return e.map(e=>{const t=e.split("||");o.loop.thumbnail.push({parent:t[0],child:t[1]})}),t.map(e=>{o.single.thumbnail.push({parent:null,child:e,await:1})}),i.map(e=>{const t=e.split("||");o.loop.title.push({parent:t[0],child:t[1]})}),n.map(e=>{o.single.title.push({parent:null,child:e})}),a.map(e=>{const t=e.split("||");o.loop.price.push({parent:t[0],child:t[1]})}),s.map(e=>{o.single.price.push({parent:null,child:e})}),o}return null},q=function(e,t,i=[]){let a=!1;if(t||(t=["homepage","collection_page","collection_list","product_page","search","others"]),"string"==typeof t){let i=t;switch(t){case"collection_page":i="collection";break;case"collection_list":i="list-collections";break;case"product_page":i="product";break;case"homepage":i="index";break;case"others":i="page"}"all"!==i&&i!==e||(a=!0)}else{t.map(e=>{switch(e){case"collection_page":return"collection";case"collection_list":return"list-collections";
1case"product_page":return"product";case"homepage":return"index";case"others":return"page";default:return e}}).includes(e)&&(a=!0)}return a},U=function(t=""){return t?e.querySelectorAll(t):y?e.querySelectorAll(y):e.querySelectorAll('a[href*="/products/"]:not(.sp-link):not(.stBadgeLoaded),[data-href]:not(.sp-link):not(.stBadgeLoaded)')},F=function(){let t=[],i=[];const a=e.querySelectorAll(g);for(let e=0;e<a.length;e++)t.push(a[e].innerHTML.trim().replaceAll(/&amp;|&/g,"")),a[e].classList.add("stTitleLoaded");t=[...new Set(t)];const n=t.length;for(let e=0;e<n;e+=50){const a=t.slice(e,e+50),n=a.length;let s="";a.map((e,t)=>{s+=`title:"${e}"${t<n-1?" OR ":""}`}),s&&i.push(s)}return i},R=function(e){const t=e.split("#")[0].split("?")[0].split("/products/");return decodeURIComponent(t[1])}}(window.document);

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.