Files
cablecreations.de/reference/_next/static/chunks/4503-41eb96d0e14be7f9.js
2026-01-19 19:13:27 +01:00

1 line
13 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4503],{11757:(e,t,r)=>{r.r(t),r.d(t,{PageSchema:()=>c});var i=r(95155);r(12115);var a=r(76703),n=r(99652),o=r(16888);function c(e){let{title:t,description:r,url:c,type:s="WebPage",image:l,lastUpdated:u,breadcrumbs:d=[]}=e,p=(0,a.useClientLocale)(),m=(0,o.cf)({title:t,description:r,url:c,type:s,image:l,lastUpdated:u},p),g=d.length>0?(0,o.WO)(d,p):null,h=(0,o.Mq)(m,g);return(0,i.jsx)(n.SchemaMarkup,{schema:h})}},16888:(e,t,r)=>{r.d(t,{Mq:()=>d,WO:()=>l,G0:()=>o,Sz:()=>a,Yo:()=>c,G9:()=>s,cf:()=>u,y0:()=>n,sC:()=>p});let i=JSON.parse('{"kw":{"name":"Cable Creations","legalName":"Cable Creations","url":"https://cablecreations.de","logo":"https://cablecreations.de/img/logo-white.svg","description":"Specialized 3D content creator focusing on the energy sector, delivering photorealistic renders and animations for marketing in renewable and industrial energy applications.","address":{"streetAddress":"Example Street 123","addressLocality":"Berlin","addressRegion":"Berlin","postalCode":"10115","addressCountry":"DE"},"contactPoint":{"telephone":"+49-123-456789","email":"contact@cablecreations.de","contactType":"Customer Service"},"sameAs":["https://www.linkedin.com/company/101094754","https://instagram.com/cablecreations.de"]},"_x":{"name":"Cable Creations - Premium 3D Cable Modeling","alternateName":"Cable Creations","description":"Premium digital assets for creative professionals"},"zm":{"priceRange":"€€-€€€","openingHours":"Mo-Fr 09:00-18:00","areaServed":["Germany","Europe","Worldwide"],"serviceType":["3D Modeling","Visualization","Animation"]},"$p":{"main":{"name":"Custom Cable Modeling","description":"Photorealistic 3D modeling and marketing-focused visualization for cable products","offers":{"price":"Contact for pricing","priceCurrency":"EUR"}},"categories":[{"name":"Premium 3D Stock Library","description":"High-quality 3D models of cables and energy infrastructure","image":"https://cablecreations.de/img/services/stock-library.jpg"},{"name":"Custom Cable Modeling","description":"Photorealistic 3D modeling tailored to your specific cable products","image":"https://cablecreations.de/img/services/custom-modeling.jpg"},{"name":"Cable Catalog Visualization","description":"Complete visualization solutions for your product catalog","image":"https://cablecreations.de/img/services/catalog-visualization.jpg"}]}}');function a(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let{kw:e}=i;return{"@context":"https://schema.org","@type":"Organization",name:e.name,legalName:e.legalName,url:e.url,logo:e.logo,description:e.description,address:{"@type":"PostalAddress",...e.address},contactPoint:{"@type":"ContactPoint",...e.contactPoint},sameAs:e.sameAs}}function n(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let{_x:e,kw:t}=i;return{"@context":"https://schema.org","@type":"WebSite",name:e.name,alternateName:e.alternateName,url:t.url,description:e.description,potentialAction:{"@type":"SearchAction",target:"".concat(t.url,"/search?q={search_term_string}"),"query-input":"required name=search_term_string"}}}function o(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let{kw:e,zm:t}=i;return{"@context":"https://schema.org","@type":"ProfessionalService",name:e.name,image:e.logo,"@id":"".concat(e.url,"#organization"),url:e.url,telephone:e.contactPoint.telephone,priceRange:t.priceRange,address:{"@type":"PostalAddress",...e.address},openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday"],opens:"09:00",closes:"18:00"},sameAs:e.sameAs,areaServed:t.areaServed,serviceType:t.serviceType}}function c(e){var t,r,a;arguments.length>1&&void 0!==arguments[1]&&arguments[1];let{kw:n}=i;return{"@context":"https://schema.org","@type":"Product",name:e.name,description:e.description,image:e.image||(null===(t=e.images)||void 0===t?void 0:t[0]),sku:e.id,brand:{"@type":"Brand",name:n.name},offers:{"@type":"Offer",url:"".concat(n.url,"/products/").concat(e.slug),priceCurrency:(null===(r=e.price)||void 0===r?void 0:r.currency)||"EUR",price:null===(a=e.price)||void 0===a?void 0:a.amount,availability:e.availability||"https://schema.org/InStock",seller:{"@type":"Organization",name:n.name}}}}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;arguments.length>1&&void 0!==arguments[1]&&arguments[1];let{kw:t,$p:r}=i,a=e||r.main;return{"@context":"https://schema.org","@type":"Service",name:a.name,description:a.description,provider:{"@type":"Organization",name:t.name,url:t.url},areaServed:i.zm.areaServed,serviceType:a.serviceType||i.zm.serviceType,offers:a.offers?{"@type":"Offer",...a.offers}:void 0}}function l(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let{kw:t}=i;return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,r)=>({"@type":"ListItem",position:r+1,name:e.name,item:e.url.startsWith("http")?e.url:"".concat(t.url).concat(e.url)}))}}function u(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let{kw:t}=i;return{"@context":"https://schema.org","@type":e.type||"WebPage",name:e.title,description:e.description,url:e.url.startsWith("http")?e.url:"".concat(t.url).concat(e.url),image:e.image,lastReviewed:e.lastUpdated,publisher:{"@type":"Organization",name:t.name,logo:{"@type":"ImageObject",url:t.logo}}}}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let i=t.filter(e=>e);return 0===i.length?null:1===i.length?i[0]:{"@context":"https://schema.org","@graph":i.map(e=>{let{"@context":t,...r}=e;return r})}}function p(e){return e?'<script type="application/ld+json">'.concat(JSON.stringify(e),"<\/script>"):""}},41589:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(95155);r(12115);var a=r(51626);function n(e){let{children:t,className:r="",color:n="rgba(0,127,255,0.4)",opacity:o=.2,size:c=70,blur:s=40}=e,{mousePosition:l,elementRef:u,isHovering:d}=(0,a.c)();return(0,i.jsxs)("div",{ref:u,className:"relative ".concat(r),children:[t,d&&l&&(0,i.jsx)("div",{className:"absolute pointer-events-none",style:{background:"radial-gradient(circle at ".concat(l.relativeX,"% ").concat(l.relativeY,"%, ").concat(n," 0%, rgba(0,10,30,0.1) ").concat(c,"%, transparent ").concat(c+30,"%)"),width:"100%",height:"100%",top:0,left:0,opacity:o,transition:"opacity 0.3s ease",filter:"blur(".concat(s,"px)")}})]})}},43486:(e,t,r)=>{r.d(t,{J:()=>n});var i=r(95155);r(12115);var a=r(37281);function n(e){let{children:t,className:r="",color:n="blue",opacity:o=.2,animate:c=!1,thickness:s=1,sides:l=["top"],position:u="outside",distance:d=4}=e,p={blue:"from-transparent via-electric-blue to-transparent",pink:"from-transparent via-electric-pink to-transparent",purple:"from-transparent via-electric-purple to-transparent",vibrant:"from-electric-blue via-electric-purple to-electric-pink"},m=e=>({top:{inside:"top-0",outside:"-top-".concat(d),center:"-top-".concat(d/2)},right:{inside:"right-0",outside:"-right-".concat(d),center:"-right-".concat(d/2)},bottom:{inside:"bottom-0",outside:"-bottom-".concat(d),center:"-bottom-".concat(d/2)},left:{inside:"left-0",outside:"-left-".concat(d),center:"-left-".concat(d/2)}})[e][u],g=e=>({top:"left-0 right-0 h-".concat(s,"px"),right:"top-0 bottom-0 w-".concat(s,"px"),bottom:"left-0 right-0 h-".concat(s,"px"),left:"top-0 bottom-0 w-".concat(s,"px")})[e],h=e=>({top:"bg-gradient-to-r",right:"bg-gradient-to-b",bottom:"bg-gradient-to-r",left:"bg-gradient-to-b"})[e],f={initial:{opacity:o},animate:{opacity:[o,1.5*o,o],transition:{duration:2,repeat:1/0,repeatType:"reverse"}}};return(0,i.jsxs)("div",{className:"relative ".concat(r),children:[t,l.map(e=>(0,i.jsx)(a.P.div,{className:"absolute ".concat(m(e)," ").concat(g(e)," ").concat(h(e)," ").concat(p[n]),initial:"initial",animate:c?"animate":"initial",variants:f},e))]})}},44570:(e,t,r)=>{r.d(t,{WishlistProvider:()=>l,n:()=>s});var i=r(95155),a=r(12115),n=r(46414),o=r(51457);let c=(0,a.createContext)({items:[],isLoading:!0,addItem:async()=>{},removeItem:async()=>{},clearWishlist:async()=>{},isInWishlist:()=>!1,itemCount:0}),s=()=>(0,a.useContext)(c);function l(e){let{children:t}=e,[r,s]=(0,a.useState)([]),[l,u]=(0,a.useState)(!0),{user:d}=(0,o.A)(),p=(0,n.u)(),m=r.length,g=e=>r.some(t=>t.product_id===e);(0,a.useEffect)(()=>{if(d)h();else{let e=localStorage.getItem("guestWishlist");if(e)try{s(JSON.parse(e))}catch(e){console.error("Error parsing stored wishlist:",e)}u(!1)}},[d]),(0,a.useEffect)(()=>{!d&&r.length>0&&localStorage.setItem("guestWishlist",JSON.stringify(r))},[r,d]);let h=async()=>{if(!(null==d?void 0:d.id)){console.log("fetchWishlistItems: No user ID, skipping fetch."),s([]),u(!1);return}try{u(!0);let{data:e,error:t}=await p.from("wishlists").select("*").eq("user_id",d.id);if(t)throw t;if(!e||0===e.length){s([]);return}s(e)}catch(e){console.error("Error fetching wishlist items:",e)}finally{u(!1)}},f=async e=>{if(g(e))return;let t={product_id:e};if(s(e=>[...e,t]),d)try{let{data:t,error:r}=await p.from("wishlists").insert({user_id:d.id,product_id:e}).select().single();if(r)throw s(t=>t.filter(t=>t.product_id!==e)),r;s(r=>r.map(r=>r.product_id===e?{...r,id:t.id}:r)),h()}catch(e){console.error("Error adding wishlist item:",e)}},y=async e=>{let t=[...r];if(s(t=>t.filter(t=>t.product_id!==e)),d)try{let{error:r}=await p.from("wishlists").delete().eq("user_id",d.id).eq("product_id",e);if(r)throw s(t),r}catch(e){console.error("Error removing wishlist item:",e)}},v=async()=>{let e=[...r];if(s([]),!d){localStorage.removeItem("guestWishlist");return}try{let{error:t}=await p.from("wishlists").delete().eq("user_id",d.id);if(t)throw s(e),t}catch(e){console.error("Error clearing wishlist:",e)}},b=async()=>{if(!d)return;let e=localStorage.getItem("guestWishlist");if(e)try{for(let t of JSON.parse(e))g(t.product_id)||await f(t.product_id);localStorage.removeItem("guestWishlist")}catch(e){console.error("Error merging guest wishlist:",e)}};return(0,a.useEffect)(()=>{d&&b()},[d]),(0,i.jsx)(c.Provider,{value:{items:r,isLoading:l,addItem:f,removeItem:y,clearWishlist:v,isInWishlist:g,itemCount:m},children:t})}},51626:(e,t,r)=>{r.d(t,{c:()=>a});var i=r(12115);function a(){let[e,t]=(0,i.useState)({x:0,y:0,relativeX:50,relativeY:50}),r=(0,i.useRef)(null),[a,n]=(0,i.useState)(!1),o=e=>{if(r.current){let i=r.current.getBoundingClientRect(),a=e.clientX-i.left,o=e.clientY-i.top,c=a/i.width*100,s=o/i.height*100;r.current.style.setProperty("--mouse-x","".concat(a,"px")),r.current.style.setProperty("--mouse-y","".concat(o,"px")),r.current.style.setProperty("--mouse-x-percent","".concat(c,"%")),r.current.style.setProperty("--mouse-y-percent","".concat(s,"%")),t({x:a,y:o,relativeX:c,relativeY:s}),n(!0)}},c=()=>{n(!1)};return(0,i.useEffect)(()=>{let e=r.current;if(e)return e.addEventListener("mousemove",o),e.addEventListener("mouseleave",c),()=>{e.removeEventListener("mousemove",o),e.removeEventListener("mouseleave",c)}},[]),{mousePosition:e,elementRef:e=>{r.current=e},isHovering:a}}},66759:(e,t,r)=>{r.r(t),r.d(t,{ServiceSchema:()=>c});var i=r(95155);r(12115);var a=r(76703),n=r(99652),o=r(16888);function c(e){let{service:t,breadcrumbs:r=[]}=e,c=(0,a.useClientLocale)(),s=(0,o.G9)(t,c),l=(0,o.cf)({title:"object"==typeof t.name?t.name[c]:t.name,description:"object"==typeof t.description?t.description[c]:t.description,url:"/services/".concat(t.slug),type:"WebPage",image:t.image,lastUpdated:t.updated_at},c),u=r.length>0?(0,o.WO)(r,c):null,d=(0,o.Mq)(s,l,u);return(0,i.jsx)(n.SchemaMarkup,{schema:d})}},72275:(e,t,r)=>{r.r(t),r.d(t,{BaseSchema:()=>c});var i=r(95155);r(12115);var a=r(76703),n=r(99652),o=r(16888);function c(){let e=(0,a.useClientLocale)(),t=(0,o.Sz)(e),r=(0,o.y0)(e),c=(0,o.G0)(e),s=(0,o.Mq)(t,r,c);return(0,i.jsx)(n.SchemaMarkup,{schema:s})}},80191:(e,t,r)=>{r.r(t),r.d(t,{ProductSchema:()=>c});var i=r(95155);r(12115);var a=r(76703),n=r(99652),o=r(16888);function c(e){var t;let{product:r,breadcrumbs:c=[]}=e,s=(0,a.useClientLocale)(),l=(0,o.Yo)(r,s),u=(0,o.cf)({title:"object"==typeof r.name?r.name[s]:r.name,description:"object"==typeof r.description?r.description[s]:r.description,url:"/products/".concat(r.slug),type:"ProductPage",image:r.image||(null===(t=r.images)||void 0===t?void 0:t[0]),lastUpdated:r.updated_at},s),d=c.length>0?(0,o.WO)(c,s):null,p=(0,o.Mq)(l,u,d);return(0,i.jsx)(n.SchemaMarkup,{schema:p})}},80991:(e,t,r)=>{r.d(t,{g:()=>n});var i=r(95155);r(12115);var a=r(88548);let n=e=>{let{money:t,locale:r="en-US",className:n=""}=e,o=(0,a.u)(t,r);return(0,i.jsx)("span",{className:n,children:o})}},88548:(e,t,r)=>{r.d(t,{u:()=>i});function i(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=!1;if(e?"number"==typeof e.amount&&"string"==typeof e.currency?t=e:"number"==typeof e.amount?(t={amount:e.amount,currency:"USD"},i=!0):t="string"==typeof e.currency?{amount:0,currency:e.currency}:{amount:0,currency:"USD"}:t={amount:0,currency:"USD"},i)return"".concat((t.amount/100).toFixed(2)," ").concat(t.currency);try{let e=t.currency.toUpperCase();return new Intl.NumberFormat(r,{style:"currency",currency:e}).format(t.amount/100)}catch(i){return console.error("Error formatting currency:",i,{money:e,locale:r}),"".concat((t.amount/100).toFixed(2)," ").concat(t.currency)}}},99652:(e,t,r)=>{r.r(t),r.d(t,{SchemaGenerator:()=>c,SchemaMarkup:()=>o});var i=r(95155);r(12115);var a=r(76703),n=r(16888);function o(e){let{schema:t}=e;if(!t)return null;let r=(0,n.sC)(t);return(0,i.jsx)("div",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r}})}function c(e){let{generator:t,params:r={}}=e,n=t((0,a.useClientLocale)(),r);return(0,i.jsx)(o,{schema:n})}}}]);