PageSourceSearch

https://woocommerce.com/wp-content/themes/woo/dist/8980.ddf233d099e512246aa9.min.js

js woocommerce.com collected 2026-09-24 07:56:18 UTC 3,930 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwoo_commerce_com=globalThis.webpackChunkwoo_commerce_com||[]).push([[8980],{2640(e,n,a){a.d(n,{A:()=>c});var t=a(1386);function c(e=!1){const[n,a]=(0,t.useState)(e);return[n,function(e){a(!0===e||!1===e?e:!n)}]}},4535(e,n,a){a.d(n,{$k:()=>i,Dq:()=>d,F:()=>s,hT:()=>o,rd:()=>r});var t=a(5889),c=a(963);function o(){return(0,c.Ri)(t.st)}function s(){return(0,c.Ri)(t.IS)}function i(e){t.Iy===e&&((0,c.Yj)("gaUserTypeShort"),(0,c.Yj)("gaUserTypeLong"),(0,c.Yj)("tk_ai"),(0,c.Yj)("woo_tk_ai")),(0,c.TV)(t.st,e,t.Yj)}function r(e){(0,c.TV)(t.IS,e,t.Yj)}function d(e){if(!["analytics","advertising"].includes(e))throw new Error("Unrecognised cookie consent type "+e);const n=(0,c.Ri)(`wccom_cookie_consent_${e}`);if(t.Iy===n)return!1;if("advertising"===e&&t.aI!==n){if(document.body.classList.contains("gdpr"))return!1;if(document.body.classList.contains("us"))return!1;if(navigator?.globalPrivacyControl)return!1}return!0}const l={canTrackUser:d};window.wccom=window.wccom||{},window.wccom=Object.assign(window.wccom,l)},5889(e,n,a){a.d(n,{IS:()=>c,Iy:()=>i,Yj:()=>o,aI:()=>s,st:()=>t});const t="wccom_cookie_consent_analytics",c="wccom_cookie_consent_advertising",o=365,s="granted",i="denied"},8980(e,n,a){a.r(n),a.d(n,{default:()=>y});var t=a(2470),c=a(1386),o=a(6736),s=a(1119),i=a(2640),r=a(4535),d=a(5889),l=a(2425),u=a(3709),_=a(3713);const w=(0,c.lazy)((()=>a.e(2634).then(a.bind(a,2634)))),y=()=>{const e=document.body.classList.contains("gdpr"),n=document.body.classList.contains("us"),y="#privacy-choices"===window.location.hash&&(e||n),m=(0,r.hT)(),p=(0,r.F)(),b=(e||n)&&(!m||!p),[v,g]=(0,c.useState)(b),[h,f]=(0,i.A)(y),[k,I]=(0,c.useState)(!1),{width:j}=(0,u.A)();return(0,c.useEffect)((()=>{n||(0,r.hT)()||(0,r.$k)(d.aI)}),[n]),(0,c.useEffect)((()=>{(async()=>{await a.e(2634).then(a.bind(a,2634)),I(!0)})()}),[]),(0,c.useEffect)((()=>{if(v){const e=document.querySelector(".wccom-privacy-banner").offsetHeight;document.body.style.setProperty("padding-bottom",`calc(${e}px - 2em)`)}else document.body.style.removeProperty("padding-bottom")}),[v,j]),(0,l.A)({isElementVisible:v,elementSelector:".wccom-privacy-banner"}),v&&(0,s.A)("privacy_banner_viewed"),v||h?h&&k?(0,_.jsx)(c.Suspense,{fallback:null,children:(0,_.jsx)(w,{onClose:f,setShowBanner:g,isUs:n})}):(0,_.jsx)("div",{className:"wccom-privacy-banner",children:(0,_.jsxs)("div",{className:"wccom-privacy-banner__content-wrapper",children:[(0,_.jsx)("div",{className:"wccom-privacy-banner__content-title",children:(0,t.__)("Use of your personal data","wccom")}),(0,_.jsxs)("div",{className:"wccom-privacy-banner__content",children:[(0,_.jsx)("div",{className:"wccom-privacy-banner__content-text",children:(0,t.__)("We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.","wccom")}),(0,_.jsxs)("div",{className:"wccom-privacy-banner__content-buttons",children:[e&&(0,_.jsx)(o.A,{text:(0,t.__)("Reject all","wccom"),onClick:()=>{(0,s.A)("privacy_banner_reject_all_clicked"),g(!1),(0,r.rd)(d.Iy),(0,r.$k)(d.Iy),gtag("consent","update",{ad_storage:d.Iy,ad_user_data:d.Iy,ad_personalization:d.Iy,analytics_storage:d.Iy}),void 0===window.dataLayer&&(window.dataLayer=[]),window.dataLayer.push({event:"consent_update"})},isLarge:!0}),(0,_.jsx)(o.A,{text:(0,t.__)("Customize","wccom"),onClick:()=>{f(!h)},isLarge:!0,isBusy:!k&&h}),(0,_.jsx)(o.A,{isPrimary:!0,text:(0,t.__)("Accept all","wccom"),onClick:()=>{(0,s.A)("privacy_banner_accept_all_clicked"),g(!1),(0,r.rd)(d.aI),(0,r.$k)(d.aI),gtag("consent","update",{ad_storage:d.aI,ad_user_data:d.aI,ad_personalization:d.aI,analytics_storage:d.aI}),void 0===window.dataLayer&&(window.dataLayer=[]),window.dataLayer.push({event:"consent_update"})},isLarge:!0})]})]})]})}):null}}}]);

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.