1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="729e57ff-0ef8-4bda-8a17-e2af27f8d8d3",e._sentryDebugIdIdentifier="sentry-dbid-729e57ff-0ef8-4bda-8a17-e2af27f8d8d3")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4718],{24356:(e,t,n)=>{n.d(t,{J:()=>o});let o="editor-new-section-placeholder"},73379:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(95155),r=n(12115),i=n(9929);let a=(0,r.forwardRef)((e,t)=>{let{className:n,...r}=e;return(0,o.jsx)("div",{className:(0,i.cn)("container mx-auto px-4 sm:max-md:max-w-[480px] md:max-lg:max-w-[736px] lg:max-xl:max-w-[912px] xl:max-w-[1200px] md:px-0",n),ref:t,...r})});a.displayName="Container";let l=a},85932:(e,t,n)=>{n.d(t,{R:()=>r,i:()=>l});let o="sections.elements.",r={headline:`${o}headline`,subheadline:`${o}subheadline`,button:`${o}button`,image:`${o}image`,content:`${o}content`,description:`${o}description`,items:"cart_widget.table.item",video:"sections.video",map:"sections.map",address:"map.address",openingHours:"map.opening_hours",relatedItems:"related_items.headline.content",sharing:`${o}sharing`,filtering:`${o}filtering`,sorting:`${o}sorting`,menu:"sections.menu",socialMedia:`${o}social_media`,storeName:`${o}store_name`,logo:"sections.logo",slide:`${o}slide`},i={Headline:r.headline,Subheadline:r.subheadline,Button:r.button,Image:r.image,Content:r.content,Description:r.description,Items:r.items,Video:r.video,Map:r.map,Slide:r.slide},a={headline:r.headline,subheadline:r.subheadline,button:r.button,image:r.image,images:r.image,featured_gallery:r.image,content:r.content,form:r.content,description:r.description,featured_details:r.description,products:r.items,categories:r.items,services:r.items,menu_items:r.items,video:r.video,map:r.map,address:r.address,opening_hours:r.openingHours,related_items:r.relatedItems,social_sharing:r.sharing,filters:r.sorting,header_menu:r.menu,menu:r.menu,social_media:r.socialMedia,company_name_heading:r.storeName,header_logo_headline:r.logo,background:`${o}background_color`,layout:`${o}layout`},l=(e,t,n)=>{let o=(t.includes(".")?t:void 0)||i[t]||a[e]||a[(e=>{let t=e.match(/_([^_]+)$/);return t?.[1]??e})(e)];return o&&((e,t)=>{let n=t(e);return n===e?"":n})(o,n)||t}},93247:(e,t,n)=>{n.d(t,{$:()=>a});var o=n(12115),r=n(87358);let i=e=>"object"==typeof e&&null!==e;function a(){return{sendEventToDashboard:(0,o.useCallback)(e=>{window.parent!==window&&window.parent.postMessage(e,(()=>{let e=r.env.NEXT_PUBLIC_EDITOR_ORIGIN;if(e)return e;if("undefined"!=typeof document&&document.referrer)try{return new URL(document.referrer).origin}catch{}return"*"})())},[]),onDashboardEvent:(0,o.useCallback)(e=>{let t=r.env.NEXT_PUBLIC_EDITOR_ORIGIN,n=(()=>{if("undefined"==typeof document||!document.referrer)return"";try{return new URL(document.referrer).origin}catch{return""}})(),o=o=>{(!t||o.origin===t)&&(t||!n||o.origin===n)&&(e=>{if(!i(e))return!1;if("generalSettings"in e||"pageSettings"in e||"scrollTo"in e&&"string"==typeof e.scrollTo||"newSection"in e&&"boolean"==typeof e.newSection||"highlightComponent"in e&&"string"==typeof e.highlightComponent||"activateComponent"in e&&"string"==typeof e.activateComponent||"toggleInspectionMode"in e&&"boolean"==typeof e.toggleInspectionMode||"section"in e&&"string"==typeof e.section&&"reorderComponents"in e&&Array.isArray(e.reorderComponents)||"activateDragging"in e&&i(e.activateDragging)||"closeItemMenuModal"in e&&"boolean"==typeof e.closeItemMenuModal)return!0;if("refreshMenu"in e&&i(e.refreshMenu)){let{menuId:t,menuType:n}=e.refreshMenu;return"string"==typeof t&&""!==t.trim()&&("header"===n||"footer"===n)}if("section"in e&&"string"==typeof e.section&&"html"in e)return!0;if("editBanner"in e&&i(e.editBanner)){let t=e.editBanner;return"string"==typeof t.selector&&""!==t.selector.trim()&&(!("action"in t)||null==t.action||"pause"===t.action||"play"===t.action)&&(!("slideIndex"in t)||null==t.slideIndex||"number"==typeof t.slideIndex)}if("image"in e&&i(e.image)){let t=e.image;return"string"==typeof t.path&&""!==t.path.trim()&&"string"==typeof t.url&&""!==t.url.trim()&&(!("uuid"in t)||null==t.uuid||"string"==typeof t.uuid)}return!!("OnboardingGeneralSettings"in e&&i(e.OnboardingGeneralSettings)||"OnboardingPageSettings"in e&&i(e.OnboardingPageSettings))})(o.data)&&e(o.data)};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)},[])}}},95719:(e,t,n)=>{n.d(t,{m:()=>
1o.useEditorContext});var o=n(99287)},99287:(e,t,n)=>{n.d(t,{EditorProvider:()=>b,useEditorContext:()=>v});var o=n(95155),r=n(12115),i=n(20063);let a=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i,l=(e,t,n)=>{if(0===t.length)return n;let[o,...r]=t;if(null==e)return e;if(void 0!==o.index){let{key:t}=o,i=e[t],a=Array.isArray(i)?[...i]:[],s=o.index;for(;a.length<=s;)a.push(void 0);return a[s]=l(a[s],r,n),{...e,[t]:a}}let i=e[o.key];return{...e,[o.key]:l(i,r,n)}},s=(e,t)=>({uuid:e,url:{origin:t,th96:t,th240:t,th480:t,th640:t,th1024:t,th2048:t},name:"",size:0,metadata:{width:0,height:0,format:"",orientation:"",alt:""}}),d=(e,t)=>{let n="string"==typeof e.uuid&&""!==e.uuid.trim()?e.uuid.trim():(e=>{let t=e.match(a);return t?t[0]:null})(e.url);return n||(n=t?.trim()??""),n||null};var c=n(93247);let u=(e,t,n)=>{document.documentElement.style.setProperty(`--font-${e}`,t),document.documentElement.style.setProperty(`--font-${e}-weight`,n.toString())},m="0, 0, 0",g="255, 255, 255",p=e=>{let t=e.match(/\w\w/g);return t?t.map(e=>Number.parseInt(e,16)):[]},f=e=>(.2126*e[0]+.7152*e[1]+.0722*e[2])/255;var h=n(24356);let y=(0,r.createContext)(null),b=e=>{let{themeDraftUUID:t,children:n,generalSettingsServer:a,merchantCode:b,host:v,protocol:w,locale:S,previewController:E}=e,C=(0,i.useSearchParams)(),k=(0,i.usePathname)(),x=C.get("locale")||"en-GB",[I,P]=(0,r.useState)(""),[_,M]=(0,r.useState)(""),[T,$]=(0,r.useState)(""),[F,N]=(0,r.useState)(Object.values(a.properties.styles.fonts).map(e=>({faceType:e.faceType,weight:e.weight}))),[D,L]=(0,r.useState)(a),[O,A]=(0,r.useState)(void 0),[B,R]=(0,r.useState)(void 0),H=O??B,[W,j]=(0,r.useState)(!1),[G,U]=(0,r.useState)(""),[z,J]=(0,r.useState)(!1),[X,V]=(0,r.useState)(0),[q,K]=(0,r.useState)(null),[Q,Y]=(0,r.useState)(""),[Z,ee]=(0,r.useState)(!1),[et,en]=(0,r.useState)(null),[eo,er]=(0,r.useState)({}),ei=(0,r.useRef)(void 0),ea=(0,r.useRef)(D),{sendEventToDashboard:el,onDashboardEvent:es}=(0,c.$)(),ed=(0,r.useMemo)(()=>({merchantCode:b,host:v,protocol:w,locale:S}),[b,v,w,S]);(0,r.useLayoutEffect)(()=>{ei.current=H},[H]),(0,r.useLayoutEffect)(()=>{ea.current=D},[D]);let ec=(0,r.useCallback)(e=>{let t=new FontFace(e.faceType,`url(https://static.sumup.com/online-store/fonts/${e.faceType.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}-${e.weight}.woff2`,{style:"normal",weight:e.weight.toString(),display:"swap"});t.load().then(()=>{document.fonts.add(t),N(t=>[...t,{faceType:e.faceType,weight:e.weight}]),u(e.settingName,e.faceType,e.weight)})},[]),eu=(0,r.useCallback)(e=>{let t=""===e.replace(/\/+$/,"")?"/":e.replace(/\/+$/,"");return"/"===t?"homepage":t.startsWith("/product/")?"product_detail":t.startsWith("/products")||t.startsWith("/category/")?"product_list":t.startsWith("/search")?"search":t.startsWith("/contact")?"contact":"custom_page"},[]);(0,r.useEffect)(()=>es(e=>{if("highlightComponent"in e&&$(e.highlightComponent),"activateComponent"in e&&(P(e.activateComponent),M(""),U(e.activateComponent)),"toggleInspectionMode"in e&&(j(e.toggleInspectionMode),"string"==typeof e.activeComponent&&(P(e.activeComponent),M(""))),"scrollTo"in e&&U(e.scrollTo),"newSection"in e&&(J(e.newSection),e.newSection&&U(h.J),V(e=>e+1)),"reorderComponents"in e&&V(e=>e+1),"activateDragging"in e&&(Y(e.activateDragging.draggingSection),V(e=>e+1)),"closeItemMenuModal"in e&&(ee(e.closeItemMenuModal),V(e=>e+1)),"refreshMenu"in e&&K(t=>({menuId:e.refreshMenu.menuId,menuType:e.refreshMenu.menuType,tick:(t?.tick??0)+1})),"generalSettings"in e){L(e.generalSettings),(e=>{let{colorAffirmation:t,colorDecoration:n,colorAttention:o,colorLink:r,colorLinkRgb:i,affirmationColorFont:a,affirmationColorFontInvert:l,attentionColorFont:s,attentionColorFontInvert:d,decorationColorFont:c,decorationColorFontHex:u,decorationColorFontInvert:h,nativeControlColorScheme:y,linkColorFont:b,linkColorFontHex:v,linkColorFontInvert:w}=(e=>{let t=p(e.affirmation),n=p(e.attention),o=p(e.decoration),r=p(e.link),i=e=>f(e)>.55?m:g,a=e=>.55>f(e)?m:g,l=e=>f(e)>.55?"#000000":"#FFFFFF";return{colorAffirmation:e.affirmation,colorDecoration:e.decoration,colorAttention:e.attention,colorWarning:"#B50E18",colorLink:e.link,colorLinkRgb:e.link,affirmationColorFont:i(t),affirmationColorFontInvert:a(t),attentionColorFont:i(n),attentionColorFontInvert:a(n),decorationColorFont:i(o),decorationColorFontHex:l(o),decorationColorFontInvert:a(o),nativeControlColorScheme:i(o)===m?"light":"dark",linkColorFont:i(r),linkColorFontHex:l(r),linkColorFontInvert:a(r)}})(e);document.documentElement.style.setProperty("--color-affirmation",t),document.documentElement.style.setProperty("--color-decoration",n),document.documentElement.style.setProperty("--color-attention",o),document.documentElement.style.setProperty("--color-link",r),document.documentElement.style.setProperty("--color-link-rgb",i),document.documentElement.style.setProperty("--affirmation-color-font",a),document.documentElement.style.setProperty("--affirmation-color-font-invert",l),document.documentElement.style.setProperty("--attention-color-font",s),document.documentElement.style.setProperty("--attention-color-font-invert",d),document.documentElement.style.setProperty("--decoration-color-font",c),document.documentElement.style.setProperty("--decoration-color-font-hex",u),document.documentElement.style.setProperty("--decoration-color-font-invert",h),document.documentElement.style.setProperty("--native-control-color-scheme",y),document.documentElement.style.setProperty("--link-color-font",b),document.documentElement.style.setProperty("--link-color-font-hex",v),document.documentElement.style.setProperty("--link-color-font-invert",w),document.documentElement.style.setProperty("--placeholder-fill-opacity",c===m?"0.08":"0.2"),document.documentElement.style.setProperty("--placeholder-content-fill-opacity",c===m?"1":"0.7"),document.documentElement.style.setProperty("--placeholder-fill-opacity-invert",c!==m?"0.08":"0.2"),document.documentElement.style.setProperty("--placeholder-content-fill-opacity-invert",c!==m?"1":"0.7")})(e.generalSettings.properties.styles.colors);let t=function(e,t){let n=[];return Object.entries(t).forEach(t=>{let[o,r]=t;e.some(e=>e.faceType===r.faceType&&e.weight===r.weight)||n.push({settingName:o,...r})}),n}(F,e.generalSettings.properties.styles.fonts);
1t.length?t.forEach(e=>{ec(e)}):Object.entries(e.generalSettings.properties.styles.fonts).forEach(e=>{let[t,n]=e;u(t,n.faceType,n.weight)}),e.generalSettings.properties.styles.background.visible?document.body.classList.add("with-background"):document.body.classList.remove("with-background"),V(e=>e+1)}if("OnboardingGeneralSettings"in e){let t=e.OnboardingGeneralSettings;if(t.properties?.header?.headerName?.content){let e=ea.current,n={...e,properties:{...e.properties,header:{...e.properties.header,headerName:{...e.properties.header.headerName,content:t.properties.header.headerName.content}}}};ea.current=n,L(n)}}if("OnboardingPageSettings"in e){let t=e.OnboardingPageSettings.homepage,n=ei.current,o=n?.components[0];if(!n||!o||!t)return;let r=o.properties,i=r.slides?.[0],a=t.components[0]?.properties,l=a?.slides?.[0];if(!i)return;let s={...n,components:[{...o,properties:{...r,slides:[{...i,headline:{...i.headline,content:l?.headline?.content},subheadline:{...i.subheadline,content:l?.subheadline?.content},cta:{...i.cta,title:l?.cta?.title}}]}},...n.components.slice(1)]};ei.current=s,A(s)}if("pageSettings"in e&&(A(e.pageSettings),er({}),V(e=>e+1)),"image"in e){let t=((e,t)=>{if(!(e=>{let t=e.trim().toLowerCase();return t.includes("header.logo.image")&&t.endsWith(".uuid")})(t.path))return null;let n=d(t,e.properties.header.logo.image.uuid);return n?{generalSettings:{...e,properties:{...e.properties,header:{...e.properties.header,logo:{...e.properties.header.logo,image:{...e.properties.header.logo.image,uuid:n}}}}},assetPatch:{[n]:s(n,t.url)}}:null})(ea.current,e.image);if(t)L(t.generalSettings),er(e=>({...e,...t.assetPatch})),V(e=>e+1);else{let t=ei.current;if(t){let n=((e,t)=>{let n=(e=>{let t=e.trim(),n=t.match(/(components\b.*|settings\b.*)$/i);return n?n[1]:t})(t.path).split(".").filter(Boolean).map(e=>{let t=e.indexOf("[");if(-1===t)return{key:e};let n=e.slice(0,t),o=e.indexOf("]",t);if(-1===o)return{key:e};let r=Number(e.slice(t+1,o));return Number.isFinite(r)&&""!==n?{key:n,index:r}:{key:e}});if(0===n.length)return null;let o=n[n.length-1],r=n.slice(0,-1);if("uuid"!==o.key)return null;let i=d(t,((e,t)=>{let n=e;return t.forEach(e=>{if(null==n){n=void 0;return}if(void 0!==e.index){let t=n[e.key];n=Array.isArray(t)?t[e.index]:void 0;return}n=n[e.key]}),n})(e,r)?.uuid);return i?{pageSettings:l(e,n,i),assetPatch:{[i]:s(i,t.url)}}:null})(t,e.image);n&&(A(n.pageSettings),er(e=>({...e,...n.assetPatch})),V(e=>e+1))}}}"editBanner"in e&&en((e=>{let t=e.selector.replace(/^#/,"").trim();return!t||e.cleanCurrentEditableSlide||"play"===(e.action??"pause")&&void 0===e.slideIndex?null:"number"==typeof e.slideIndex&&e.slideIndex>=0?{selector:t,slideIndex:e.slideIndex}:null})(e.editBanner))}),[F,ec,es]),(0,r.useEffect)(()=>{let e=e=>{let t=e.target;if("A"===t.tagName&&t instanceof HTMLAnchorElement){let n=t.getAttribute("href");n&&!n.startsWith(window.location.origin)&&e.preventDefault()}};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]);let em=(0,r.useCallback)(()=>{U("")},[]),eg=(0,r.useCallback)(e=>{R(e)},[]);return(0,o.jsx)(y.Provider,{value:{handleActivateComponent:(e,t)=>{P(e),M(t),U(t||e),el({type:"changePage",linkData:"home"===E||"homepage"===eu(k)||(e=>{if(!e?.settings)return!1;let t=e.settings;return!("name"in t)&&!("slug"in t)&&!("sorting"in t)&&!("itemHeadline"in t)&&"seo"in t&&"object"==typeof t.seo&&null!==t.seo})(H)?{type:"homepage",selectedPage:"homepage",selectedComponent:e,...t&&t!==e?{selectedSection:t}:{}}:{selectedPage:eu(k),selectedComponent:e,selectedSection:t}})},activeComponent:I,activeSelectedSection:_,setActiveComponent:P,highlightedComponent:T,setHighlightedComponent:$,isInspectionModeEnabled:W,setIsInspectionModeEnabled:j,generalSettings:D,serverData:ed,themeDraftUUID:t,previewLocale:x,handleHighlightComponent:e=>{el({type:"highlightFromSection",highlightFromSection:e})},pageSettings:H,registerServerPageSettings:eg,pendingScrollTarget:G,consumePendingScrollTarget:em,showNewSectionPlaceholder:z,inspectionUpdateTick:X,menuRefreshSignal:q,draggingSection:Q,closeItemMenuModal:Z,bannerParentDirective:et,editorLiveAssetPatches:eo},children:n})};function v(){let e=(0,r.useContext)(y);if(!e)throw Error("useEditorContext must be used within EditorContext");return e}}}]);
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.