1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9070],{20253:(e,t,a)=>{a.d(t,{ConsentProvider:()=>d,S:()=>u});var r=a(95155),n=a(12115);let o="https://www.googletagmanager.com/gtag/js?id=",i="1.0.0",c="G-QZ6V1J1387",s="memotech_consent",l={necessary:!0,analytics:!1,marketing:!1,preferences:!1},_=(0,n.createContext)(void 0);function d(e){let{children:t}=e,[a,d]=(0,n.useState)(l),[u,g]=(0,n.useState)(!0),[m,p]=(0,n.useState)(!1),[w,y]=(0,n.useState)(!1),C=a.analytics||a.marketing||a.preferences,v=(0,n.useCallback)((e,t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t,timestamp:Date.now()})},[]),f=(0,n.useCallback)(()=>{let e=()=>{if(!window.gtag||"function"!=typeof window.gtag)return!1;try{return window.gtag("config",c,{anonymize_ip:!0,cookie_domain:"memotech.ch",cookie_expires:63072e3,cookie_flags:"SameSite=None;Secure",send_page_view:!1,allow_google_signals:!1,allow_ad_personalization_signals:!1,currency:"CHF"}),window.gtag("event","page_view",{page_path:window.location.pathname,page_title:document.title,page_location:window.location.href}),!0}catch(e){return console.warn("GA4 config attempt failed (script not ready yet):",e),!1}};if(e())return;let t=0,a=setInterval(()=>{t++,e()?clearInterval(a):t>=100&&(clearInterval(a),console.error("â GA4 script failed to load after 10 seconds"),console.error("Possible causes:"),console.error(" 1. Ad blocker is blocking googletagmanager.com"),console.error(" 2. Network connectivity issues"),console.error(" 3. GTM script tag missing or incorrect Measurement ID"))},100)},[]),k=(0,n.useCallback)(e=>{let t={ad_storage:e.marketing?"granted":"denied",ad_user_data:e.marketing?"granted":"denied",ad_personalization:e.marketing?"granted":"denied",analytics_storage:e.analytics?"granted":"denied",functionality_storage:e.preferences?"granted":"denied",personalization_storage:e.preferences?"granted":"denied",security_storage:"granted"},a=!0===window.__MEMOTECH_ANALYTICS_CONSENT__&&!e.analytics;if(window.__MEMOTECH_ANALYTICS_CONSENT__=e.analytics,a)return void function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>window.location.reload();window["ga-disable-".concat(e)]=!0;let a=window.location.hostname.split("."),r=["",...a.map((e,t)=>a.slice(t).join("."))];for(let e of document.cookie.split(";").map(e=>e.split("=")[0].trim()))if("_ga"===e||e.startsWith("_ga_"))for(let t of r)document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/").concat(t?"; domain=".concat(t):"");t()}(c);e.analytics&&function(e){var t,a;if(!e||document.querySelector('script[src^="'.concat(o,'"]')))return;window.dataLayer=window.dataLayer||[],null==(t=(a=window).gtag)||t.call(a,"js",new Date);let r=document.createElement("script");r.async=!0,r.src=o+e,document.head.appendChild(r)}(c);let r=()=>{if(!window.gtag||"function"!=typeof window.gtag)return!1;try{return window.gtag("consent","update",t),e.analytics&&f(),!0}catch(e){return console.warn("Consent update failed (gtag not ready yet):",e),!1}};if(r())return;let n=0,i=setInterval(()=>{n++,r()?clearInterval(i):n>=50&&(clearInterval(i),console.error("â Failed to update consent: gtag not available after 5 seconds"),console.error("Consent Mode will remain at default (all denied)"))},100)},[f]),S=(0,n.useCallback)(e=>{let t={preferences:e,timestamp:Date.now(),version:i};try{localStorage.setItem(s,JSON.stringify(t))}catch(e){console.error("Failed to save consent to localStorage:",e)}},[]),h=(0,n.useCallback)(()=>{try{let e=localStorage.getItem(s);if(!e)return null;let t=JSON.parse(e);if(t.version!==i||Date.now()-t.timestamp>31536e6)return localStorage.removeItem(s),null;return t.preferences}catch(e){return console.error("Failed to load consent from localStorage:",e),null}},[]);(0,n.useEffect)(()=>{let e=h();e?(d(e),k(e),g(!1),v("consent_banner_hidden",{reason:"existing_consent",has_analytics:e.analytics,has_marketing:e.marketing})):(d(l),g(!0),v("consent_banner_shown",{is_new_visitor:!0})),y(!0)},[h,k,v]);let E=(0,n.useCallback)(()=>{let e={necessary:!0,analytics:!0,marketing:!0,preferences:!0};v("consent_accept_all",{analytics:!0,marketing:!0,preferences:!0}),d(e),S(e),k(e),g(!1),p(!1),window.__MEMOTECH_ANALYTICS_CONSENT__=e.anal
1ytics},[S,k,v]),b=(0,n.useCallback)(()=>{let e={necessary:!0,analytics:!1,marketing:!1,preferences:!1};v("consent_accept_necessary_only",{analytics:!1,marketing:!1,preferences:!1}),d(e),S(e),k(e),g(!1),p(!1),window.__MEMOTECH_ANALYTICS_CONSENT__=e.analytics},[S,k,v]),N=(0,n.useCallback)(e=>{let t={...a,...e,necessary:!0};d(t),S(t),k(t),g(!1),p(!1),window.__MEMOTECH_ANALYTICS_CONSENT__=t.analytics},[a,S,k]),T=(0,n.useCallback)(e=>{d({...a,...e,necessary:!0})},[a]),I=(0,n.useCallback)(()=>{v("consent_save_custom_selection",{analytics:a.analytics,marketing:a.marketing,preferences:a.preferences}),S(a),k(a),g(!1),p(!1),window.__MEMOTECH_ANALYTICS_CONSENT__=a.analytics},[a,S,k,v]),O=(0,n.useCallback)(()=>{localStorage.removeItem(s),d(l),g(!0),p(!1)},[]),A=(0,n.useCallback)(()=>{v("consent_settings_opened",{current_analytics:a.analytics,current_marketing:a.marketing}),p(!0)},[a.analytics,a.marketing,v]),M=(0,n.useCallback)(()=>{var e;d(null!=(e=h())?e:l),p(!1)},[h]);return(0,r.jsx)(_.Provider,{value:{consent:a,consentGiven:C,showBanner:u,showSettings:m,acceptAll:E,acceptNecessaryOnly:b,updateConsent:N,updateConsentLocal:T,saveCurrentSelection:I,resetConsent:O,openSettings:A,closeSettings:M},children:t})}function u(){let e=(0,n.useContext)(_);if(void 0===e)throw Error("useConsent must be used within ConsentProvider");return e}},49070:(e,t,a)=>{a.d(t,{CO:()=>c,default:()=>s,sx:()=>o,wv:()=>i});var r=a(12115),n=a(20253);let o=(e,t)=>{window.gtag&&window.__MEMOTECH_ANALYTICS_CONSENT__&&window.gtag("event",e,t)},i={heroView:()=>o("hero_section_view"),ctaPrimaryClick:()=>o("cta_primary_click",{cta_type:"performance_quick_fix"}),ctaSecondaryClick:()=>o("cta_secondary_click",{cta_type:"revenue_boost"}),ctaTertiaryClick:()=>o("cta_tertiary_click",{cta_type:"strategic_partnership"}),servicesView:()=>o("services_section_view"),serviceCardClick:e=>o("service_card_click",{service_type:e}),viewService:(e,t,a)=>{o("view_item",{currency:"CHF",value:t,items:[{item_id:e.toLowerCase().replace(/\s+/g,"_"),item_name:e,item_category:a||"E-Commerce Service",price:t,quantity:1}]})},contactFormView:()=>o("contact_form_view"),contactFormStep:e=>o("contact_form_step",{step:e}),contactFormSubmit:e=>{o("contact_form_submit",{company_size:e.companySize,industry:e.industry,role:e.role})},beginCheckout:(e,t)=>{o("begin_checkout",{currency:"CHF",value:t,items:[{item_id:e.toLowerCase().replace(/\s+/g,"_"),item_name:e,item_category:"E-Commerce Service",price:t,quantity:1}]})},generateLead:e=>{o("generate_lead",{currency:"CHF",value:e.value||0,company_size:e.companySize,industry:e.industry,urgency:e.urgency,lead_source:e.leadSource||"contact_form"})},complianceAssessmentStart:()=>o("compliance_assessment_start"),complianceAssessmentComplete:e=>o("compliance_assessment_complete",{score:e}),roiCalculatorView:()=>o("roi_calculator_view"),roiCalculatorCalculate:e=>o("roi_calculator_calculate",e),roiDetailedReportClick:()=>o("roi_detailed_report_click"),roiLeadCaptureOpen:e=>o("roi_lead_capture_open",{roi_value:e}),roiLeadCaptureSubmit:e=>{o("roi_lead_capture_submit",{roi_value:e.roi,shop_size:e.shopSize,newsletter_optin:e.newsletterOptIn,lead_source:"roi_calculator"})},roiReportEmailSent:e=>o("roi_report_email_sent",{roi_value:e}),roiShareLinkedIn:e=>o("roi_share_linkedin",{roi_value:e}),roiShareTwitter:e=>o("roi_share_twitter",{roi_value:e}),generateROILead:e=>{o("generate_lead",{currency:"CHF",value:e.value||0,shop_size:e.shopSize,roi_calculated:e.roi,newsletter_optin:e.newsletterOptIn,lead_source:"roi_calculator"})},navigationClick:e=>o("navigation_click",{destination:e}),scrollToSection:e=>o("scroll_to_section",{section:e})},c=(e,t)=>{(0,r.useEffect)(()=>{let a=e.current;if(!a)return;let r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(o(t),r.unobserve(a))})},{threshold:.5,rootMargin:"-50px"});return r.observe(a),()=>r.unobserve(a)},[e,t])},s=()=>{let{consent:e}=(0,n.S)();return(0,r.useEffect)(()=>{e.analytics||window.__MEMOTECH_ANALYTICS_CONSENT__},[e.analytics]),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.