PageSourceSearch

https://www.top-obaly.cz/_next/static/chunks/app/%5Blocale%5D/custom-manufacturing/page-73520a18c1db66d3.js

js top-obaly.cz collected 2026-09-25 18:40:46 UTC 101,694 bytes, 8 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4341,5493],{85775:function(e,t,r){"use strict";var n,s=r(4325);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",o({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM10.994 6.08343L9.91658 5.00603L8.00001 6.9226L6.08344 5.00603L5.00604 6.08343L6.92261 8L5.00604 9.91657L6.08344 10.994L8.00001 9.0774L9.91658 10.994L10.994 9.91657L9.07741 8L10.994 6.08343Z",fill:"currentColor"})))}},84753:function(e,t,r){"use strict";var n,s=r(4325);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",o({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 3V13C2.5 14.1046 3.39543 15 4.5 15H11.5C12.6046 15 13.5 14.1046 13.5 13V5L9.5 1H4.5C3.39543 1 2.5 1.89543 2.5 3ZM9 2L12.5 5.5H11C9.89543 5.5 9 4.60457 9 3.5V2Z",fill:"currentColor"})))}},61076:function(e,t,r){"use strict";var n,s=r(4325);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",o({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{d:"M7.25 8.75V15H8.75V8.75H15V7.25H8.75V1H7.25V7.25H1V8.75H7.25Z",fill:"currentColor"})))}},43620:function(e,t,r){"use strict";var n,s=r(4325);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("g",{id:"ic_announcement-24px"},s.createElement("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M20 2H4C2.9 2 2.01 2.9 2.01 4L2 22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM13 11H11V5.00001H13V11ZM13 15H11V13H13V15Z",fill:"currentColor"}))))}},91593:function(e,t,r){"use strict";var n,s=r(4325);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{d:"M19 4H15.5L14.5 3H9.5L8.5 4H5V6H19M6 19C6 19.5304 6.21071 20.0391 6.58579 20.4142C6.96086 20.7893 7.46957 21 8 21H16C16.5304 21 17.0391 20.7893 17.4142 20.4142C17.7893 20.0391 18 19.5304 18 19V7H15V17H13.5V7H12H10.5V17H9V7H6V19Z",fill:"currentColor"})))}},37865:function(e,t,r){"use strict";var n,s=r(4325);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}t.Z=function(e){return s.createElement("svg",o({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26 8.01429L23.9857 6L16 13.9857L8.01429 6L6 8.01429L13.9857 16L6 23.9857L8.01429 26L16 18.0143L23.9857 26L26 23.9857L18.0143 16L26 8.01429Z",fill:"currentColor"})))}},56016:function(e,t,r){Promise.resolve().then(r.bind(r,63474)),Promise.resolve().then(r.bind(r,66305))},55547:function(e,t,r){"use strict";r.d(t,{pm:function(){return d},xX:function(){return p}});var n,s=r(7653),o=r(5504),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},a=function(e){var t;e?function(e){if(e)for(;e.lastChild;
1)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(t=document.querySelector(".grecaptcha-badge"))&&t.parentNode&&document.body.removeChild(t.parentNode)},c=function(e,t){a(t),window.___grecaptcha_cfg=void 0;var r,n=document.querySelector("#"+e);n&&n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))&&r.remove()},l=function(e){var t=e.render,r=e.onLoadCallbackName,n=e.language,s=e.onLoad,o=e.useRecaptchaNet,i=e.useEnterprise,a=e.scriptProps,c=void 0===a?{}:a,l=c.nonce,u=void 0===l?"":l,m=c.defer,d=c.async,p=c.id,h=c.appendTo,f=(void 0===p?"":p)||"google-recaptcha-v3";if(document.querySelector("#"+f))s();else{var g,_="https://www."+((g={useEnterprise:i,useRecaptchaNet:o}).useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(g.useEnterprise?"enterprise.js":"api.js"),x=document.createElement("script");x.id=f,x.src=_+"?render="+t+("explicit"===t?"&onload="+r:"")+(n?"&hl="+n:""),u&&(x.nonce=u),x.defer=!!(void 0!==m&&m),x.async=!!(void 0!==d&&d),x.onload=s,("body"===h?document.body:document.getElementsByTagName("head")[0]).appendChild(x)}},u=function(e){void 0===o||o.env,console.warn(e)};(n||(n={})).SCRIPT_NOT_AVAILABLE="Recaptcha script is not available";var m=(0,s.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});function d(e){var t=e.reCaptchaKey,r=e.useEnterprise,o=void 0!==r&&r,a=e.useRecaptchaNet,d=void 0!==a&&a,p=e.scriptProps,h=e.language,f=e.container,g=e.children,_=(0,s.useState)(null),x=_[0],v=_[1],j=(0,s.useRef)(t),w=JSON.stringify(p),y=JSON.stringify(null==f?void 0:f.parameters);(0,s.useEffect)(function(){if(t){var e=(null==p?void 0:p.id)||"google-recaptcha-v3",r=(null==p?void 0:p.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[r]=function(){var e=o?window.grecaptcha.enterprise:window.grecaptcha,r=i({badge:"inline",size:"invisible",sitekey:t},(null==f?void 0:f.parameters)||{});j.current=e.render(null==f?void 0:f.element,r)},l({render:(null==f?void 0:f.element)?"explicit":t,onLoadCallbackName:r,useEnterprise:o,useRecaptchaNet:d,scriptProps:p,language:h,onLoad:function(){if(window&&window.grecaptcha){var e=o?window.grecaptcha.enterprise:window.grecaptcha;e.ready(function(){v(e)})}else u("<GoogleRecaptchaProvider /> "+n.SCRIPT_NOT_AVAILABLE)},onError:function(){u("Error loading google recaptcha script")}}),function(){c(e,null==f?void 0:f.element)}}u("<GoogleReCaptchaProvider /> recaptcha key not provided")},[o,d,w,y,h,t,null==f?void 0:f.element]);var b=(0,s.useCallback)(function(e){if(!x||!x.execute)throw Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return x.execute(j.current,{action:e})},[x,j]),N=(0,s.useMemo)(function(){return{executeRecaptcha:x?b:void 0,container:null==f?void 0:f.element}},[b,x,null==f?void 0:f.element]);return s.createElement(m.Provider,{value:N},g)}m.Consumer;var p=function(){return(0,s.useContext)(m)};function h(e,t){return e(t={exports:{}},t.exports),t.exports;/** @license React v16.13.1
2 * react-is.production.min.js
3 *
4 * Copyright (c) Facebook, Inc. and its affiliates.
5 *
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the root directory of this source tree.
8 */}var f="function"==typeof Symbol&&Symbol.for,g=f?Symbol.for("react.element"):60103,_=f?Symbol.for("react.portal"):60106,x=f?Symbol.for("react.fragment"):60107,v=f?Symbol.for("react.strict_mode"):60108,j=f?Symbol.for("react.profiler"):60114,
8w=f?Symbol.for("react.provider"):60109,y=f?Symbol.for("react.context"):60110,b=f?Symbol.for("react.async_mode"):60111,N=f?Symbol.for("react.concurrent_mode"):60111,S=f?Symbol.for("react.forward_ref"):60112,C=f?Symbol.for("react.suspense"):60113,I=f?Symbol.for("react.suspense_list"):60120,Z=f?Symbol.for("react.memo"):60115,T=f?Symbol.for("react.lazy"):60116,k=f?Symbol.for("react.block"):60121,L=f?Symbol.for("react.fundamental"):60117,M=f?Symbol.for("react.responder"):60118,E=f?Symbol.for("react.scope"):60119;function P(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case g:switch(e=e.type){case b:case N:case x:case j:case v:case C:return e;default:switch(e=e&&e.$$typeof){case y:case S:case T:case Z:case w:return e;default:return t}}case _:return t}}}function H(e){return P(e)===N}var O={AsyncMode:b,ConcurrentMode:N,ContextConsumer:y,ContextProvider:w,Element:g,ForwardRef:S,Fragment:x,Lazy:T,Memo:Z,Portal:_,Profiler:j,StrictMode:v,Suspense:C,isAsyncMode:function(e){return H(e)||P(e)===b},isConcurrentMode:H,isContextConsumer:function(e){return P(e)===y},isContextProvider:function(e){return P(e)===w},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===g},isForwardRef:function(e){return P(e)===S},isFragment:function(e){return P(e)===x},isLazy:function(e){return P(e)===T},isMemo:function(e){return P(e)===Z},isPortal:function(e){return P(e)===_},isProfiler:function(e){return P(e)===j},isStrictMode:function(e){return P(e)===v},isSuspense:function(e){return P(e)===C},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===x||e===N||e===j||e===v||e===C||e===I||"object"==typeof e&&null!==e&&(e.$$typeof===T||e.$$typeof===Z||e.$$typeof===w||e.$$typeof===y||e.$$typeof===S||e.$$typeof===L||e.$$typeof===M||e.$$typeof===E||e.$$typeof===k)},typeOf:P},F=h(function(e,t){}),V=(F.AsyncMode,F.ConcurrentMode,F.ContextConsumer,F.ContextProvider,F.Element,F.ForwardRef,F.Fragment,F.Lazy,F.Memo,F.Portal,F.Profiler,F.StrictMode,F.Suspense,F.isAsyncMode,F.isConcurrentMode,F.isContextConsumer,F.isContextProvider,F.isElement,F.isForwardRef,F.isFragment,F.isLazy,F.isMemo,F.isPortal,F.isProfiler,F.isStrictMode,F.isSuspense,F.isValidElementType,F.typeOf,h(function(e){e.exports=O})),R={};R[V.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[V.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}},58401:function(e,t,r){"use strict";var n=r(27573),s=r(27264),o=r(90618),i=r(7653),a=r(23577),c=r(47138),l=r.n(c),u=r(89425),m=r(2457),d=r(596);t.Z=e=>{let{items:t,className:r}=e,{activeCategories:c}=(0,u.Z)(),p=(0,s.useTranslations)(),{currentPage:h}=(0,m.Z)(),{route:f,categoryRoute:g}=(0,d.Z)(),_=(0,i.useMemo)(()=>{if("category-page"===h||"datasheet-page"===h){let e=[{breadcrumbTitle:p.raw("navigation.breadcrumbs.top"),breadcrumbPath:f("/",{})}];for(let t of c)(t.dataSheetTotalCount>1||t.categoryTotalCount>=1)&&e.push({breadcrumbTitle:t.title,breadcrumbPath:g(t.slug)});return[...e,...t]}return t},[t]);return(0,n.jsx)(n.Fragment,{children:_.length?(0,n.jsxs)("nav",{"aria-label":p.raw("a11y.breadcrumbs"),children:[(0,n.jsxs)("ul",{className:l()("breadcrumbs",r),children:[_.map((e,t)=>e.breadcrumbPath&&_.length-1>t?(0,n.jsx)("li",{className:l()("breadcrumbs__item"),children:(0,n.jsx)(o.Z,{href:e.breadcrumbPath,className:l()("breadcrumbs__item-link"),children:e.breadcrumbTitle},t)}):(0,n.jsx)("li",{className:l()("breadcrumbs__item"),"aria-current":"page",children:e.breadcrumbTitle},t)),(0,n.jsx)("li",{className:l()("breadcrumbs__left-overlay")})]}),(0,n.jsx)(a.Z,{richSnippets:[JSON.stringify({"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:_.map((e,t)=>({"@type":"ListItem",position:t,item:{...e.breadcrumbPath&&{"@id":e.breadcrumbPath},name:e.breadcrumbPath}})).slice(1)})],scope:"".concat(h,"-b")})]}):null})}},13777:function(e,t,r){"use strict";var n=r(46245),s=r(7653),o=r(38752);t.Z=()=>{let{submitCount:e,isValid:t}=(0,o.u6)();return(0,s.useEffect)(()=>{let r;return e>0&&!t&&(r=setTimeout(()=>(0,n.x6)(),0)),()=>clearTimeout(r)},[e,t]),null}},17257:function(e,t,r){"use strict";var n=r(27573),s=r(13952),o=r(85775),i=r(7653),a=r(47138),c=r.n(a);t.Z=e=>{let{type:t,name:r,size:a="large",required:l,disabled:u,passwordToggle:m,rules:d,placeholder:p,customMessage:h,state:f,className:g,children:_,phoneFull:x,onChange:v,onAfterChange:j,onFocus:w,onKeyDown:y,autoComplete:b,dataCy:N}=e,[S,C]=(0,i.useState)(!1),I=(0,i.useRef)(null),{register:Z,getValues:T,formState:{errors:k,dirtyFields:L}}=(0,s.Gc)(),M=(0,s.U2)(k,r),E=Z(r,{...d,required:l}),P=()=>{C(!S)};return(0,n.jsxs)("div",{className:c()("form-input__wrapper"),children:[(0,n.jsxs)("div",{className:c()("form-input__inner",a&&"form-input__inner--".concat(a),x&&"form-input__inner--phone-full"),children:[(0,n.jsx)("input",{id:r,"data-cy":N,type:m&&S?"text":t,className:c()("form-input",M&&"form-input--error",!M&&L[r]&&"form-input--success",(null==h?void 0:h.type)==="warning"&&"form-input--warning",f&&"form-input--".concat(f),u&&"is-disabled",g),placeholder:p,"aria-required":l,"aria-invalid":!!M,"aria-describedby":M?"".concat(r,"-error"):void 0,...E,onChange:e=>{v&&v(e),j?E.onChange(e).then(()=>{j(T(r))}):E.onChange(e)},onFocus:w,onKeyDown:y,autoComplete:b,disabled:u,ref:e=>{E.ref(e),I.current=e}}),_&&i.cloneElement(_,{..._.props,inputRef:I}),!h&&!f&&!M&&L[r]&&(0,n.jsx)("img",{src:"/img/ico-svg/checkmark-green.svg",className:c()("form-input__success-icon")}),m&&(0,n.jsx)(n.Fragment,{children:S?(0,n.jsx)("img",{src:"/img/ico-svg/eye-dash.svg",className:c()("form-input__password-toggler"),onClick:P}):(0,n.jsx)("img",{src:"/img/ico-svg/eye.svg",className:c()("form-input__password-toggler"),onClick:P})})]}),M&&M.message&&(0,n.jsxs)("div",{id:"".concat(r,"-error"),role:"alert",className:c()("form-input__error"),children:[(0,n.jsx)(o.Z,{className:c()("form-input__error-icon")}),(0,n.jsx)("p",{className:c()("form-input__error-message"),children:M.message})]}),!M&&(null==h?void 0:h.label)&&(0,n.jsx)("div",{className:c()("form-input__custom-message","form-input__custom-message--".concat(h.type)),children:h.label})]})}},74497:function(e,t,r){"use strict";var n=r(27573),s=r(7653),o=r(47138),i=r.n(o);t.Z=e=>{let{label:t,children:r,note:o,fontSize:a,isBold:c,className:l,htmlFor:u}=e,m=u;if(!m){let e=s.Children.toArray(r)[0];s.isValidElement(e)&&(m=e.props.name)}return(0,n.jsxs)("div",{className:i()("form-item",a&&"form-item--".concat(a),c&&"form-item--bold",l),children:[(0,n.jsx)("label",{className:i()("form-item__label"),htmlFor:m,dangerouslySetInnerHTML:{__html:t}}),r,o&&(0,n.jsx)("p",{className:i()("form-item__label-note"),children:o})]})}},72525:function(e,t,r){"use strict";var n=r(27573),s=r(13952),o=r(85775);r(7653);var i=r(47138),a=r.n(i);t.Z=e=>{let{placeholder:t,name:r,required:i,onBlur:c,className:l}=e,{register:u,formState:{errors:m}}=(0,s.Gc)(),d=(0,s.U2)(m,r),p=u(r);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("textarea",{id:r,className:a()("form-text-area",d&&"form-text-area--error",l),placeholder:t,"aria-required":i,"aria-invalid":!!d,"aria-describedby":d?"".concat(r,"-error"):void 0,...p,onBlur:e=>{c&&c(e),p.onBlur(e)}}),d&&d.message&&(0,n.jsxs)("div",{id:"".concat(r,"-error"),role:"alert",className:a()("form-input__error"),children:[(0,n.jsx)(o.Z,{className:a()("form-input__error-icon")}),(0,n.jsx)("p",{className:a()("form-input__error-message"),children:d.message})]})]})}},20305:function(e,t,r){"use strict";var n=r(27573),s=r(7653),o=r(35799),i=r(80906),a=r.n(i);let c=()=>Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);t.Z=e=>{let{onChange:t}
8=e,[r,i]=(0,s.useState)("unqxk"),l=(0,s.useRef)(null),u=(0,o.A)(a()),m=()=>{i(c()),t()};return(0,s.useEffect)(()=>{let e=null;if(l.current){var t;t=l.current,(e=new MutationObserver(m)).observe(t,{attributes:!0,attributeFilter:["value"]})}return()=>{e&&e.disconnect()}},[l.current]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{className:u("honeypot"),"aria-hidden":"true",htmlFor:r,children:r}),(0,n.jsx)("input",{onChange:m,ref:l,id:r,name:r,type:"text",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:u("honeypot")})]})}},63475:function(e,t,r){"use strict";var n=r(27573),s=r(61121),o=r(28358),i=r(70108),a=r(71059),c=r(7653),l=r(47138),u=r.n(l),m=r(10561),d=r(39936);let p=e=>{if(!e)return null;try{let t=e;return e.startsWith("#")&&(t=(0,i.n)(e)),t?document.querySelector("div".concat(t)):null}catch(e){return(0,s.O)(e),null}};t.Z=e=>{let{items:t,className:r}=e,[s,i]=(0,c.useState)(!1),[l,h]=(0,c.useState)(!1),[f,g]=(0,c.useState)(),_=(0,d.Z)(769),x=(0,c.useRef)(null),v=()=>{var e,t,r,n;if(!x.current)return;let s=(0,o.oJ)(x.current)-(_?0:null!==(r=null===(e=document.querySelector(".page-top-navigation__wrapper.is-scrolled"))||void 0===e?void 0:e.offsetHeight)&&void 0!==r?r:0)-(null!==(n=null===(t=document.querySelector(".inpage-nav"))||void 0===t?void 0:t.offsetHeight)&&void 0!==n?n:0),a=document.documentElement.scrollTop;20>Math.abs(a-s)||(a>s?i(!0):i(!1),h(!_&&null===document.querySelector(".page-top-navigation__wrapper.is-scrolled")))},j=()=>{var e,r;let n=null===(e=document.querySelector(".page-top-header"))||void 0===e?void 0:e.offsetHeight,s=null===(r=document.querySelector(".inpage-nav"))||void 0===r?void 0:r.offsetHeight;for(let e of t){let t=p(e.href);if(!t||!n||!s)return;let r=n+s;if(t.getBoundingClientRect().top+t.offsetHeight-r>0){g(e.href);break}}},w=(e,t)=>{e.preventDefault();let r=p(t);r&&(0,o.Gd)(r)},y=()=>{var e;let t=p(null===(e=window.location)||void 0===e?void 0:e.hash);if(!t)return;let r=t.querySelector(".custom-production__product-toggler");r&&r.click(),(0,o.Gd)(t)},b=()=>{setTimeout(()=>{v(),j()},100)};return(0,c.useEffect)(()=>(x.current&&(y(),b(),window.addEventListener("hashchange",y),window.addEventListener("scroll",b)),()=>{window.removeEventListener("scroll",b)}),[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:x}),(0,n.jsx)("div",{className:u()("inpage-nav",s&&"is-sticky",l&&"is-main-nav-visible",r),children:t.map((e,t)=>(0,n.jsx)(a.Z,{variant:"secondary",size:"small",href:e.href,className:u()("inpage-nav__item",s&&f===e.href&&"is-active"),onClick:t=>{(0,m.Z)(t),w(t,e.href)},children:e.label},t))})]})}},93148:function(e,t,r){"use strict";var n=r(27573),s=r(71059),o=r(32883);r(7653);var i=r(47138),a=r.n(i);t.Z=e=>{let{id:t,size:r,title:i,description:c,icon:l,onClose:u,onSubmit:m,closeButton:d,submitButton:p,submitButtonSize:h,hideCloseButton:f,reversed:g,className:_}=e,x="".concat(t||"modal-selection","-title");return(0,n.jsx)(o.Z,{id:t||"",className:a()("modal-selection",g&&"modal-selection--reversed",_),size:r,onClose:u,withoutCloseButton:f,labelledBy:x,children:(0,n.jsxs)("div",{className:a()("modal-selection__inner"),children:[l&&(0,n.jsx)("div",{className:a()("modal-selection__icon",l.variant&&"modal-selection__icon--".concat(l.variant)),children:l.icon}),(0,n.jsx)("h3",{id:x,className:a()("modal-selection__title"),children:i}),c&&(0,n.jsx)("p",{className:a()("modal-selection__description"),children:c}),(0,n.jsxs)("div",{className:a()("modal-selection__controls"),children:[(0,n.jsx)(s.Z,{variant:"secondary",size:"small",onClick:u,children:d}),(0,n.jsx)(s.Z,{onClick:m,size:h,children:p})]})]})})}},29209:function(e,t,r){"use strict";var n=r(27573),s=r(30813),o=r(58401),i=r(97909),a=r(12243),c=r(81147),l=r(91164);r(7653);var u=r(47138),m=r.n(u),d=r(2457);t.Z=e=>{let{children:t,breadcrumbsClassName:r,isCheckoutHeader:u,footer:p}=e,{breadcrumbs:h}=(0,d.Z)();return(0,n.jsx)(s.Z,{isCheckoutHeader:u,isBasketSummaryCompact:!0,footer:p,children:(0,n.jsxs)("div",{className:m()("one-column-layout"),children:[(0,n.jsx)(i.Z,{container:!0,children:(0,n.jsx)(i.Z,{item:!0,size:{full:11,basket:11,xl:11,lg:6},colStart:{full:4,basket:4,xl:4,lg:3},children:(0,n.jsx)("div",{className:m()("one-column-layout__menu"),children:(0,n.jsx)(c.Z,{isFullSize:!0,isSingleColumn:!0})})})}),(0,n.jsx)(i.Z,{container:!0,children:(0,n.jsx)(i.Z,{item:!0,size:{full:14},children:(0,n.jsx)("div",{className:m()("one-column-layout__nav"),children:(0,n.jsxs)(i.Z,{container:!0,children:[(0,n.jsx)(i.Z,{item:!0,size:{full:3,lg:2},children:(0,n.jsx)(l.Z,{children:(0,n.jsx)(a.Z,{})})}),(0,n.jsx)(i.Z,{item:!0,size:{full:11,xl:9,lg:6,md:8,sm:6,xs:4},children:(0,n.jsx)("div",{className:m()("one-column-layout__nav-breadcrumbs"),children:(0,n.jsx)(o.Z,{items:h,className:r})})})]})})})}),(0,n.jsx)(i.Z,{container:!0,offset:!0,children:(0,n.jsx)(i.Z,{item:!0,size:{full:12},children:(0,n.jsx)("main",{className:m()("one-column-layout__main-content"),id:"main-content",children:t})})})]})})}},91164:function(e,t,r){"use strict";
8var n=r(27573),s=r(27264),o=r(80718),i=r(7653),a=r(47138),c=r.n(a);t.Z=e=>{let{children:t,className:r}=e,a=(0,s.useTranslations)(),[l,u]=(0,i.useState)(!1),m=(0,i.useRef)(null),d=e=>{if(!m.current)return;let t=e.target;m.current.contains(t)||u(!1)};return(0,i.useEffect)(()=>(document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}),[]),(0,n.jsxs)("div",{className:c()("navigation__toggler-wrapper",l&&"is-opened",r),ref:m,children:[(0,n.jsxs)("button",{className:c()("navigation__toggler"),onClick:()=>{u(!l)},"aria-expanded":l,children:[(0,n.jsx)("span",{children:a.raw("default.index.catalogue")}),(0,n.jsx)(o.Z,{})]}),(0,n.jsx)("div",{className:c()("navigation__toggler-content"),children:t})]})}},66305:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return tv}});var n,s,o,i=r(27573),a=r(82610);let c=()=>{let e=document.querySelectorAll(".customers-slider__item"),t=e[0].getAttribute("style");if(t){let r=t.replace(" margin-right: 16px;","").replace("width: ","flex: 0 0 ");e.forEach(e=>{e.setAttribute("style","".concat(t," ").concat(r))})}},l=()=>{document.querySelectorAll(".customers-slider__item").forEach(e=>{e.removeAttribute("style")})},u=()=>{l();let e=window.innerWidth>960?3:1;(()=>{let t=new a.ZP(".customers-slider",{modules:[a.W_,a.tl],slidesPerView:e,spaceBetween:16,slidesPerGroup:e,pagination:{el:".customers-slider__pagination",clickable:!0},navigation:{nextEl:".customers-slider__arrow-next",prevEl:".customers-slider__arrow-prev"}});c(),t.init()})()};var m=r(27264),d=r(20644),p=r(9598),h=r(72806),f=r(46245),g=r(14283),_=r(71059),x=r(7653);let v=(0,x.createContext)({customManufacturingForm:{name:"",email:"",phone:"",companyOrVatId:"",options:null,formSubmitCount:0,predefinedOptionId:null,openedProduct:0,setOpenedProduct:()=>0,visibleHint:{id:null,position:0,isPopupVisible:!1},setVisibleHint:()=>({id:null,position:0,isPopupVisible:!1}),shouldUpdateForm:!1,setShouldUpdateForm:()=>!1,shouldSlideToProduct:!1,setShouldSlideToProduct:()=>!1,customManufacturingFormRef:{current:null},setPredefinedOptionId:()=>null,setFormSubmitCount:()=>0},callbackRequestForm:{placeOfRequest:""},customManufacturingNavigation:null,customManufacturingSections:null});var j=r(28358),w=r(77716),y=e=>{let{title:t,image:r,name:n,index:s,handleOpenGallery:o}=e,{customManufacturingForm:{customManufacturingFormRef:a}}=(0,x.useContext)(v);return(0,i.jsxs)("div",{className:"custom-production__product-variant",children:[(0,i.jsx)("a",{className:"custom-production__product-variant-gallery-link",onClick:e=>o(e,s),children:(0,i.jsx)(w.Z,{strategy:d.J.EXACT_CROP,imagePath:r,width:176,height:176,ariaHidden:!0,className:"custom-production__product-variant-image-wrapper",imageClassName:"custom-production__product-variant-image"})}),(0,i.jsx)("p",{className:"custom-production__product-variant-name",children:n}),(0,i.jsx)("a",{href:"",className:"custom-production__product-variant-link",onClick:e=>{e.preventDefault(),a.current&&(0,j.JV)(a.current,100)},children:t})]})},b=r(47138),N=r.n(b),S=r(99915);let C=(0,S.default)(()=>r.e(1245).then(r.bind(r,28239)),{loadableGenerated:{webpack:()=>[28239]},ssr:!1,loading:h.q});var I=e=>{let{id:t,title:r,description:n,variants:s,parameters:o,action:a,mainImage:c,gallery:l,order:u,withIllustrationImages:h,isNotReversedType:j,className:b}=e,S=(0,m.useTranslations)(),I=(0,m.useLocale)(),{customManufacturingForm:{setPredefinedOptionId:Z,customManufacturingFormRef:T},customManufacturingSections:k}=(0,x.useContext)(v),L=(null==k?void 0:k.something_else.id)===t,[M,E]=(0,x.useState)(L),{shouldOpenGallery:P,startPosition:H,isVisible:O,handleOpenGallery:F,handleCloseGallery:V}=(0,g.d)(),R=(0,x.useMemo)(()=>[{thumbnail:(0,p.Xy)(c,d.J.EXACT_CROP,100,100,"retina","webp"),src:(0,p.Xy)(c,d.J.BIGGER,568,568,null,null)},...l.map(e=>({thumbnail:(0,p.Xy)(e,d.J.EXACT_CROP,100,100,"retina","webp"),src:(0,p.Xy)(e,d.J.BIGGER,568,568,null,null)})),...s?s.map(e=>{let{image:t}=e;return{thumbnail:(0,p.Xy)(t,d.J.EXACT_CROP,175,175),src:(0,p.Xy)(t,d.J.BIGGER,568,568,null,null)}}):[]],[]),z=(0,x.useMemo)(()=>l.map(e=>({large:(0,p.Xy)(c,d.J.BIGGER,568,568,null,null),imagePath:e})),[]),q=(0,i.jsx)(i.Fragment,{children:"hu"===I?(0,i.jsx)("img",{src:"img/ico-svg/accordion-plus-green.svg",className:"custom-production__product-toggler-icon-plus",role:"img","aria-hidden":"true"}):(0,i.jsx)("img",{src:"img/ico-svg/accordion-plus.svg",className:"custom-production__product-toggler-icon-plus",role:"img","aria-hidden":"true"})}),A=(0,i.jsx)(i.Fragment,{children:"hu"===I?(0,i.jsx)("img",{src:"img/ico-svg/accordion-minus-green.svg",className:"custom-production__product-toggler-icon-minus",role:"img","aria-hidden":"true"}):(0,i.jsx)("img",{src:"img/ico-svg/accordion-minus.svg",className:"custom-production__product-toggler-icon-minus",role:"img","aria-hidden":"true"})});return(0,i.jsxs)("div",{id:t,className:N()("custom-production__product",!j&&(u%2==0||L)&&"custom-production__product--highlighted custom-production__product--reversed",M&&"is-opened",b),children:[P&&(0,i.jsx)(C,{titles:[r],items:R,startPosition:H,isVisible:O,onClose:V}),!L&&(0,i.jsxs)("div",{className:"custom-production__product-toggler",onClick:()=>{E(!M)},children:[(0,i.jsx)(w.Z,{strategy:d.J.EXACT_CROP,imagePath:c,width:104,height:64,ariaHidden:!0,className:"custom-production__product-toggler-image"}),(0,i.jsx)("span",{className:"custom-production__product-toggler-title",children:r}),q,A]}),(0,i.jsxs)("div",{className:"custom-production__product-wrapper",children:[(0,i.jsxs)("div",{className:"custom-production__product-inner",children:[(0,i.jsxs)("div",{className:"custom-production__product-gallery",children:[(0,i.jsx)("a",{className:"custom-production__product-gallery-main",onClick:e=>F(e,0),children:(0,i.jsx)(w.Z,{strategy:d.J.EXACT_CROP,imagePath:c,width:524,height:320,ariaHidden:!0})}),(0,i.jsx)("div",{className:"custom-production__product-gallery-aside",children:z.map((e,t)=>(0,i.jsx)("a",{className:"custom-production__product-gallery-aside-item",onClick:e=>F(e,t+1),children:(0,i.jsx)(w.Z,{strategy:d.J.EXACT_CROP,imagePath:e.imagePath,width:100,height:100,ariaHidden:!0})},"image-aside-".concat(e.large,"-").concat(t)))})]}),(0,i.jsxs)("div",{className:"custom-production__product-content",children:[h&&(0,i.jsx)("div",{className:"custom-production__product-illustration",children:"hu"===I?(0,i.jsx)(w.Z,{...(0,p.md)("/img/cu
8stom-production/not-found-illustration-hu","png"),width:289,height:231,disablePlaceholder:!0}):(0,i.jsx)(w.Z,{...(0,p.md)("/img/custom-production/not-found-illustration","png"),width:289,height:231,disablePlaceholder:!0})}),(0,i.jsx)("h4",{className:"custom-production__product-title",children:r}),(0,i.jsx)("p",{className:"custom-production__product-description",dangerouslySetInnerHTML:{__html:n}}),o&&(0,i.jsx)("div",{className:"custom-production__product-table",children:o.map(e=>(0,i.jsxs)("div",{className:"custom-production__product-table-row",children:[(0,i.jsx)("p",{className:"custom-production__product-table-title",children:e.title}),(0,i.jsx)("p",{className:"custom-production__product-table-content",dangerouslySetInnerHTML:{__html:e.name}})]},e.name))}),(0,i.jsx)(_.Z,{size:"dominant",className:N()("custom-production__product-button"),onClick:e=>{e.preventDefault(),Z(t),T.current&&(0,f.kI)(T.current)},children:a})]})]}),s&&(0,i.jsxs)("div",{className:"custom-production__product-variants",children:[(0,i.jsx)("p",{className:"custom-production__product-variants-title",children:S.raw("custom_manufacturing.products.variants")}),(0,i.jsx)("div",{className:"custom-production__product-variants-inner",children:s.map((e,t)=>(0,i.jsx)(y,{title:e.title,image:e.image,name:e.name,index:t+1+l.length,handleOpenGallery:F},e.name))})]})]})]})},Z=()=>{let{customManufacturingSections:e}=(0,x.useContext)(v);if(!e)return null;let{bag:t,box:r,envelope:n,gift:s,paper:o,tape:a,wine:c,stickers:l,something_else:u}=e;return(0,i.jsxs)("div",{className:"custom-production__products-section-inner",children:[(0,i.jsx)(I,{order:1,id:r.id,title:r.title,description:r.description,mainImage:r.mainImage,gallery:r.gallery,variants:r.variants,parameters:r.parameters,action:r.action}),(0,i.jsx)(I,{order:2,id:a.id,title:a.title,mainImage:a.mainImage,gallery:a.gallery,description:a.description,variants:a.variants,parameters:a.parameters,action:a.action}),(0,i.jsx)(I,{order:3,id:c.id,title:c.title,mainImage:c.mainImage,gallery:c.gallery,description:c.description,variants:c.variants,parameters:c.parameters,action:c.action}),(0,i.jsx)(I,{order:4,id:n.id,title:n.title,mainImage:n.mainImage,gallery:n.gallery,description:n.description,variants:n.variants,parameters:n.parameters,action:n.action}),(0,i.jsx)(I,{order:5,id:t.id,title:t.title,mainImage:t.mainImage,gallery:t.gallery,description:t.description,variants:t.variants,parameters:t.parameters,action:t.action}),(0,i.jsx)(I,{order:6,id:s.id,title:s.title,mainImage:s.mainImage,gallery:s.gallery,description:s.description,parameters:s.parameters,action:s.action}),(0,i.jsx)(I,{order:7,id:o.id,title:o.title,mainImage:o.mainImage,gallery:o.gallery,description:o.description,parameters:o.parameters,action:o.action}),(0,i.jsx)(I,{order:8,id:l.id,title:l.title,mainImage:l.mainImage,gallery:l.gallery,description:l.description,parameters:l.parameters,action:l.action}),(0,i.jsx)(I,{order:9,id:u.id,title:u.title,mainImage:u.mainImage,gallery:u.gallery,description:u.description,parameters:u.parameters,action:u.action,withIllustrationImages:!0,isNotReversedType:!0,className:"custom-production__product--not-found"})]})},T=r(961);let k=[{path:"/img/custom-production/jan-melvil",format:"jpg",alt:"Jan Melvil",width:134,height:52},{path:"/img/custom-production/wesatet",format:"jpg",alt:"Wesatet",width:67,height:53},{path:"/img/custom-production/puravida",format:"jpg",alt:"Puravida",width:197,height:32},{path:"/img/custom-production/ceska-posta",format:"jpg",alt:"Česk\xe1 pošta",width:175,height:24},{path:"/img/custom-production/notino",format:"jpg",alt:"Notino",width:123,height:32}];var L=e=>{let{withButton:t,className:r}=e,n=(0,m.useTranslations)(),s=(0,T.Z)(),o=(0,x.useMemo)(()=>"hu"===s?k.filter(e=>"Česk\xe1 pošta"!==e.alt):k,[]);return(0,i.jsxs)("div",{className:N()("custom-production__companies",r),children:[(0,i.jsx)("p",{className:"custom-production__companies-title",dangerouslySetInnerHTML:{__html:n.raw("custom_manufacturing.intro.companies")}}),(0,i.jsx)("div",{className:"custom-production__companies-inner",children:o.map(e=>(0,i.jsx)("div",{className:"custom-production__companies-item",children:(0,i.jsx)(w.Z,{...(0,p.md)(e.path,e.format),width:e.width,height:e.height,alt:e.alt})},e.alt))}),t&&(0,i.jsx)(_.Z,{variant:"secondary",href:"#custom-production-form",className:N()("custom-production__companies-button 
8js-slide-to"),"data-distance":"100",children:n.raw("custom_manufacturing.wrap_tape_button")})]})},M=r(81587);let E={post:{create:{endpoint:"/callback-request/create"}}};var P=r(38752),H=r(67460);let O=(e,t)=>{if(!t)return H.Z_();let{phone:r}=t.pattern.contactInformation;return H.Z_().matches(r,e.raw("phone_invalid_format")).required(e("custom_production_phone_not_blank"))},F=(e,t,r)=>"phone"===e?O(t,r):H.Z_(),V=(e,t)=>H.Ry({phone:F("phone",e,t)}).defined(),R=(0,x.createContext)({placeOfRequest:""});var z=r(13777),q=r(19742),A=r(20305),B=r(38521),G=r(12240),$=e=>{let{label:t,name:r,type:n,autocomplete:s,placeholder:o}=e,a=(0,x.useRef)(null),{validationRules:c}=(0,B.Z)(),l=(0,m.useTranslations)(),{onChange:u,value:d,hasError:p,isSuccessed:h,className:f,errorMessage:g}=(0,G.Z)(r,F(r,l,c));return(0,i.jsxs)("div",{className:"formRow custom-production-form__input",children:[(0,i.jsx)("div",{className:"formRowLabel",children:(0,i.jsx)("label",{htmlFor:r,dangerouslySetInnerHTML:{__html:t||""}})}),(0,i.jsxs)("div",{className:"formRowControl",children:[(0,i.jsx)("input",{ref:a,onChange:e=>{u(e)},id:r,value:d,name:r,type:n||"text",autoComplete:s,className:f,placeholder:o||"","aria-invalid":p,"aria-describedby":p?"".concat(r,"-error"):void 0}),p&&g&&(0,i.jsx)("div",{id:"".concat(r,"-error"),role:"alert",className:"validationMessage validationError filled",children:(0,i.jsx)("span",{className:"message",children:g})}),h&&(0,i.jsx)("div",{className:"validationMessage validationSuccess",children:(0,i.jsx)("span",{className:"message"})})]})]})},J=()=>{let e=(0,m.useTranslations)(),{validationRules:t}=(0,B.Z)(),{placeOfRequest:r}=(0,x.useContext)(R),[n,s]=(0,x.useState)(!1),[o,a]=(0,x.useState)(!1),c=()=>{s(!0)},l=(0,x.useCallback)(()=>V(e,t),[]);return(0,i.jsx)(i.Fragment,{children:o?(0,i.jsxs)("div",{className:"custom-production-footer__form",children:[(0,i.jsx)("div",{className:"custom-production-footer__form-success-image-wrapper",children:(0,i.jsx)("img",{src:"/img/ico-svg/orderStepWrapper-active.svg",alt:"",role:"img","aria-hidden":"true"})}),(0,i.jsx)("div",{className:"custom-production-footer__form-success-inner",children:(0,i.jsx)("div",{className:"custom-production-footer__form-success-title",children:e.raw("custom_manufacturing.footer.callback_request_form.success")})})]}):(0,i.jsx)(P.J9,{initialValues:{phone:""},validationSchema:l(),onSubmit:(e,t)=>{n||M.l.post(E.post.create.endpoint,{phone:e.phone,placeOfRequest:r},e=>{let{status:r,errors:n}=e;if("OK"===r){q.Z.pushCallbackRequestFormSubmit(),a(!0);return}n&&(t.setErrors({phone:n.phone}),a(!1))},()=>{a(!1)})},children:t=>{let{handleSubmit:r}=t;return(0,i.jsxs)("form",{onSubmit:r,className:"custom-production-footer__form",noValidate:!0,children:[(0,i.jsx)(z.Z,{}),(0,i.jsx)(A.Z,{onChange:c}),(0,i.jsx)($,{placeholder:e("custom_manufacturing.footer.callback_request_form.input_placeholder"),name:"phone",type:"tel",autocomplete:"tel"}),(0,i.jsx)(_.Z,{size:"small",className:N()("custom-production-footer__form-submit"),type:"submit",children:e.raw("custom_manufacturing.footer.callback_request_form.button")})]})}})})},X=e=>{let{placeOfRequest:t}=e;return(0,i.jsx)("div",{className:"callback-request-form__container",children:(0,i.jsx)(R.Provider,{value:{placeOfRequest:t},children:(0,i.jsx)(J,{})})})},D=r(90618),U=r(10561),W=r(596),K=()=>{let{route:e}=(0,W.Z)(),t=(0,T.Z)(),r=(0,m.useTranslations)(),{callbackRequestForm:{placeOfRequest:n}}=(0,x.useContext)(v);return(0,i.jsx)("div",{className:"custom-production__footer-section",children:(0,i.jsxs)("div",{className:"custom-production-footer",children:[(0,i.jsx)("div",{className:"custom-production-footer__illustration-wrapper",children:(0,i.jsx)("div",{className:"custom-production-footer__illustration",children:(0,i.jsx)("img",{src:"img/ico-svg/phone-reversed-white.svg",role:"img","aria-hidden":"true"})})}),(0,i.jsx)("h4",{className:"custom-production-footer__title",children:r.raw("custom_manufacturing.footer.title")}),(0,i.jsx)("p",{className:"custom-production-footer__subtitle",children:r.raw("custom_manufacturing.footer.subtitle")}),(0,i.jsx)(X,{placeOfRequest:n}),(0,i.jsx)("div",{className:"custom-production-footer__gdprText",children:r.rich("custom_manufacturing.footer.gdpr_text",{link:t=>(0,i.jsx)(D.Z,{href:e("/gdpr"),children:t})})}),(0,i.jsxs)("div",{className:"custom-production-footer__hotline",children:[(0,i.jsx)("p",{className:"custom-production-footer__hotline-label",children:r.raw("custom_manufacturing.footer.hotline.label")}),(0,i.jsx)("p",{className:"custom-production-footer__hotline-content",children:r.raw("custom_manufacturing.footer.hotline.content")})]}
8),(0,i.jsxs)("div",{className:"custom-production-footer__contacts",children:[(0,i.jsxs)("div",{className:"custom-production-footer__contact",children:["hu"!==t&&(0,i.jsx)("div",{className:"custom-production-footer__contact-portrait",children:(0,i.jsx)(w.Z,{...(0,p.md)("img/contact/top-obaly-cz-".concat(r.raw("custom_manufacturing.footer.contact.1.image")),"jpg"),width:72,height:76,alt:r.raw("custom_manufacturing.footer.contact.1.name")})}),(0,i.jsxs)("div",{className:"custom-production-footer__contact-inner",children:[(0,i.jsx)("div",{className:"custom-production-footer__contact-name",children:r.raw("custom_manufacturing.footer.contact.1.name")}),(0,i.jsx)("div",{className:"custom-production-footer__contact-phone",children:r.raw("custom_manufacturing.footer.contact.1.phone")}),(0,i.jsx)(D.Z,{className:"custom-production-footer__contact-email",href:"mailto:".concat(r.raw("custom_manufacturing.footer.contact.1.email")),onClick:e=>{(0,U.Z)(e),window.location.href="mailto:".concat(r.raw("custom_manufacturing.footer.contact.1.email"))},children:r.raw("custom_manufacturing.footer.contact.1.email")})]})]}),("cs"===t||"sk"===t)&&(0,i.jsxs)("div",{className:"custom-production-footer__contact",children:[(0,i.jsx)("div",{className:"custom-production-footer__contact-portrait",children:(0,i.jsx)(w.Z,{...(0,p.md)("img/contact/top-obaly-cz-".concat(r.raw("custom_manufacturing.footer.contact.2.image")),"jpg"),width:72,height:76,alt:r.raw("custom_manufacturing.footer.contact.2.name")})}),(0,i.jsxs)("div",{className:"custom-production-footer__contact-inner",children:[(0,i.jsx)("div",{className:"custom-production-footer__contact-name",children:r.raw("custom_manufacturing.footer.contact.2.name")}),(0,i.jsx)("div",{className:"custom-production-footer__contact-phone",children:r.raw("custom_manufacturing.footer.contact.2.phone")}),(0,i.jsx)(D.Z,{className:"custom-production-footer__contact-email",href:"mailto:".concat(r.raw("custom_manufacturing.footer.contact.2.email")),onClick:e=>{(0,U.Z)(e),window.location.href="mailto:".concat(r.raw("custom_manufacturing.footer.contact.2.email"))},children:r.raw("custom_manufacturing.footer.contact.2.email")})]})]})]})]})})},Y=r(47512),Q=r(13952),ee=r(61121);let et={post:{uploadFile:{endpoint:"/file/upload"},deleteFiles:{endpoint:"/file/delete"}}};var er=r(82059);let en=e=>H.Z_().trim().email(e("email_invalid_format")).required(e("email_not_blank")),es=()=>H.Z_(),eo=(e,t)=>{if(!t)return H.Z_();let{vatId:r,cid:n}=t.pattern.invoiceInformation;return e.raw("locale")===er.hr||e.raw("locale")===er.A$?H.Z_().matches(r,{message:e.raw("company_vat_id_invalid_format"),excludeEmptyString:!0}):H.Z_().matches(n,{message:e.raw("company_id_invalid_format"),excludeEmptyString:!0})},ei=(e,t)=>{if(!t)return H.Z_();let{phone:r}=t.pattern.contactInformation;return H.Z_().matches(r,{message:e.raw("phone_invalid_format"),excludeEmptyString:!0})},ea=e=>H.O7().oneOf([!0],e.raw("custom_production_gdpr_not_checked")),ec=e=>H.Z_().required(e("custom_production_product_option_not_blank")),el=(e,t)=>H.Ry({name:es(),email:en(e),phone:ei(e,t),companyOrVatId:eo(e,t),gdpr:ea(e),products:H.IX().of(H.Ry().shape({customProductionOptionId:ec(e),text:H.Z_()}))}).defined(),eu=e=>{var t,r,n,s,o;if(!e)return{formErrors:{}};let i={name:null!==(t=e.name)&&void 0!==t?t:void 0,email:null!==(r=e.email)&&void 0!==r?r:void 0,phone:null!==(n=e.phone)&&void 0!==n?n:void 0,companyOrVatId:null!==(s=e.companyOrVatId)&&void 0!==s?s:void 0,gdpr:null!==(o=e.gdpr)&&void 0!==o?o:void 0};
8return Object.keys(i).forEach(e=>void 0===i[e]&&delete i[e]),{formErrors:i}};var em=r(55547),ed=r(17069),ep=r(8739),eh=r(72748),ef=r(29128),eg=r(17257),e_=r(74497),ex=()=>{let{validationRules:e}=(0,B.Z)(),t=(0,m.useTranslations)(),r=(0,T.Z)(),[n,s]=(0,x.useState)(""),[o,a]=(0,x.useState)(!1),c=eo(t,e),l=async e=>{var n,o;if(""===e||!c.isValidSync(e)){s("");return}if(a(!0),r!==er.hr&&r!==er.A$){try{let r=await (0,eh.h)(e,t);(null===(n=r.state)||void 0===n?void 0:n.state)===ep.d.danger?s(t.raw("cid_remote_validation_fail")):s(""),a(!1)}catch(e){a(!1)}return}try{let r=await (0,ef.u)(e,void 0,t);(null===(o=r.state)||void 0===o?void 0:o.state)===ep.d.danger?s(t.raw("vat_id_remote_validation_fail")):s(""),a(!1)}catch(e){a(!1)}};return(0,i.jsx)(e_.Z,{label:t.raw("custom_manufacturing.form.company_or_vat_id"),children:(0,i.jsx)(eg.Z,{type:"text",name:"companyOrVatId",customMessage:o?{label:null,type:"loading"}:n&&{label:n,type:"warning"}||void 0,state:n?"warning":void 0,onAfterChange:l,phoneFull:!0})})},ev=r(85775),ej=e=>{let{id:t,name:r,label:n,required:s,rules:o,className:a,onChange:c,onFocus:l,onKeyDown:u,checked:m,size:d="mid"}=e,p=(0,x.useRef)(null),{register:h,formState:{errors:f}}=(0,Q.Gc)(),g=h(r,{...o,required:s}),_=(0,Q.U2)(f,r);return(0,i.jsxs)("label",{htmlFor:t,className:N()("form-checkbox__wrapper"),"data-name":"FormCheckbox",children:[(0,i.jsx)("input",{id:t,type:"checkbox",className:N()("form-checkbox__input"),"aria-required":s,"aria-invalid":!!_,"aria-describedby":_?"".concat(t,"-error"):void 0,...g,onChange:e=>{c&&c(e),g.onChange(e)},onFocus:l,onKeyDown:u,ref:e=>{g.ref(e),p.current=e}}),(0,i.jsx)("span",{className:N()("form-checkbox",m&&"is-checked",_&&"has-error",d&&"form-checkbox--".concat(d),a),children:n}),_&&_.message&&(0,i.jsxs)("span",{id:"".concat(t,"-error"),role:"alert",className:N()("form-checkbox__error"),children:[(0,i.jsx)(ev.Z,{className:N()("form-checkbox__error-icon")}),(0,i.jsx)("span",{className:N()("form-checkbox__error-message"),children:_.message})]})]})},ew=()=>{let e=(0,m.useTranslations)(),{gdpr:t}=(0,Q.Gc)().getValues();return(0,i.jsxs)("fieldset",{className:N()("custom-production-form__fieldset"),children:[(0,i.jsx)(e_.Z,{label:e.raw("custom_manufacturing.form.name"),children:(0,i.jsx)(eg.Z,{type:"text",name:"name",phoneFull:!0})}),(0,i.jsx)(e_.Z,{label:e.raw("custom_manufacturing.form.email"),children:(0,i.jsx)(eg.Z,{type:"email",name:"email",required:!0,phoneFull:!0})}),(0,i.jsx)(e_.Z,{label:e.raw("custom_manufacturing.form.phone"),children:(0,i.jsx)(eg.Z,{type:"tel",name:"phone",phoneFull:!0})}),(0,i.jsx)(ex,{}),(0,i.jsx)(ej,{id:"gdpr",name:"gdpr",label:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:e.raw("custom_manufacturing.form.gdpr_text")}}),checked:t,className:N()("custom-production-form__fieldset-checkbox"),required:!0})]})},ey=r(74942),eb=r(4325);function eN(){return(eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eS=function(e){return eb.createElement("svg",eN({width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=eb.createElement("g",{clipPath:"url(#question)"},eb.createElement("circle",{cx:20,cy:20,r:19.5,stroke:"currentColor"}),eb.createElement("path",{d:"M18.5055 20.744C18.5055 21.374 18.7215 21.914 19.0995 22.328L21.0615 21.752C20.8815 21.59 20.7375 21.284 20.7375 20.996C20.7375 20.33 21.2955 19.934 21.9255 19.466C22.7895 18.872 23.7435 18.152 23.7435 16.658C23.7435 14.984 22.3215 13.814 19.9995 13.814C18.4515 13.814 17.0115 14.444 16.0575 15.56L17.5155 17.198C18.0735 16.532 18.8295 16.082 19.7295 16.082C20.7195 16.082 21.1335 16.55 21.1335 17.108C21.1335 17.648 20.6475 17.99 20.0895 18.386C19.3695 18.908 18.5055 19.502 18.5055 20.744ZM18.5055 24.74C18.5055 25.532 19.1715 26.198 19.9635 26.198C20.7555 26.198 21.4215 25.532 21.4215 24.74C21.4215 23.948 20.7555 23.282 19.9635 23.282C19.1715 23.282 18.5055 23.948 18.5055 24.74Z",fill:"currentColor"}))),s||(s=eb.createElement("defs",null,eb.createElement("clipPath",{id:"question"},eb.createElement("rect",{width:40,height:40,fill:"white"})))))},eC=e=>{let{className:t}=e,r=(0,m.useTranslations)(),{customManufacturingForm:{setVisibleHint:n}}=(0,x.useContext)(v);return(0,i.jsxs)("div",{className:N()("custom-production-hint__heading",t),children:[(0,i.jsx)(eS,{className:N()("custom-production-hint__heading-icon")}),(0,i.jsx)("p",{id:"hint-popup-title",className:N()("custom-production-hint__heading-title"),children:r.raw("custom_manufacturing.hints.title")}),(0,i.jsx)("button",{className:N()("custom-production-hint__heading-close"),onClick:()=>{n({id:null,position:0,isPopupVisible:!1})},children:(0,i.jsx)(ey.Z,{width:20,height:20})})]})},eI=e=>{let{children:t,className:r}=e;return(0,i.jsxs)("div",{className:N()("custom-production-hint",r),children:[(0,i.jsx)(eC,{}),(0,i.jsx)("div",{className:N()("custom-production-hint__inner"),children:t})]})},eZ=e=>{let{content:t,image:r,orientation:n,centered:s,spacing:o,className:a}=e,c=(0,T.Z)(),l=(0,x.useMemo)(()=>"pl"===c?"".concat(r,"-pl"):"hu"===c?"".concat(r,"-hu"):r,[c]);return(0,i.jsxs)("div",{className:N()("custom-production-hint__content-image","custom-production-hint__content-image--".concat(n),s&&"custom-production-hint__content-image--centered",o&&"custom-production-hint__content-image--spacing-".concat(o),a),children:[(0,i.jsx)("div",{className:N()("custom-production-hint__content"),children:t}),(0,i.jsx)("div",{className:N()("custom-production-hint__image"),children:(0,i.jsx)("img",{src:"/img/cu
8stom-production/form/hints/".concat(l,".svg"),alt:"",role:"img","aria-hidden":"true"})})]})},eT=r(43620),ek=e=>{let{spacing:t,className:r}=e,n=(0,m.useTranslations)();return(0,i.jsxs)("div",{className:N()("custom-production-hint__info",t&&"custom-production-hint__info--spacing-".concat(t),r),children:[(0,i.jsx)(eT.Z,{className:N()("custom-production-hint__info-icon")}),(0,i.jsx)("p",{className:N()("custom-production-hint__info-text"),children:n.raw("custom_manufacturing.hints.info")})]})},eL=e=>{let{children:t,className:r}=e;return(0,i.jsx)("div",{className:N()("custom-production-hint__section",r),children:t})},eM=e=>{let{children:t,className:r}=e;return(0,i.jsx)("div",{className:N()("custom-production-hint__wysiwyg",r),children:t})},eE=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eL,{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.bag.paper.title")}),(0,i.jsxs)("ul",{className:N()("without-offset top-spacing"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.paper.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.paper.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.paper.list.3")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.paper.list.4")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.paper.list.5")}})]})]})}),image:"bag-1",orientation:"horizontal"})}),(0,i.jsx)(eL,{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.bag.plastic.title")}),(0,i.jsxs)("ul",{className:N()("without-offset top-spacing"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.plastic.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.plastic.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.plastic.list.3")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.plastic.list.4")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.plastic.list.5")}})]})]})}),image:"bag-2",orientation:"horizontal"})}),(0,i.jsx)(eL,{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.bag.zipper.title")}),(0,i.jsxs)("ul",{className:N()("without-offset top-spacing"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.zipper.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.zipper.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.zipper.list.3")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.bag.zipper.list.4")}})]})]})}),image:"bag-3",orientation:"horizontal"})}),(0,i.jsx)(ek,{spacing:"top-large"})]})},eP=e=>{let{size:t,items:r,spacing:n,className:s}=e;return(0,i.jsx)("div",{className:N()("custom-production-hint__grid","custom-production-hint__grid--".concat(t),n&&"custom-production-hint__grid--spacing-".concat(n),s),children:r.map((e,t)=>(0,i.jsx)("div",{className:N()("custom-production-hint__grid-item"),children:e.children},t))})},eH=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eM,{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.list.3")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.list.4")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.list.5")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.list.6")}})]})}),(0,i.jsx)(ek,{spacing:"both"}),(0,i.jsx)(eP,{size:2,items:[{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.box.dimensions.title")}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.dimensions.description")}})]})}),image:"box",orientation:"vertical"})},{children:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.box.material.title")}),(0,i.jsx)("p",{children:r.raw("custom_manufacturing.hints.box.material.description")}),(0,i.jsxs)("ul",{className:N()("without-offset"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.material.list.1")}
8}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.box.material.list.2")}})]})]})})}]})]})},eO=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)("div",{className:N()("custom-production-hint__default",t),children:[(0,i.jsx)(eS,{className:N()("custom-production-hint__default-icon")}),(0,i.jsx)("p",{className:N()("custom-production-hint__default-text"),dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.default")}})]})},eF=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eL,{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.envelope.plastic.title")}),(0,i.jsx)("p",{className:N()("spaceless"),children:r.raw("custom_manufacturing.hints.envelope.plastic.description")}),(0,i.jsxs)("ul",{className:N()("without-offset"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.plastic.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.plastic.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.plastic.list.3")}})]})]})}),image:"envelope-1",orientation:"horizontal"})}),(0,i.jsx)(eL,{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.envelope.bubble.title")}),(0,i.jsx)("p",{className:N()("spaceless"),children:r.raw("custom_manufacturing.hints.envelope.bubble.description")}),(0,i.jsxs)("ul",{className:N()("without-offset"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.bubble.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.bubble.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.bubble.list.3")}})]})]})}),image:"envelope-2",orientation:"horizontal"})}),(0,i.jsx)(eL,{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.envelope.paper.title")}),(0,i.jsx)("p",{className:N()("spaceless"),children:r.raw("custom_manufacturing.hints.envelope.paper.description")}),(0,i.jsxs)("ul",{className:N()("without-offset"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.paper.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.paper.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.paper.list.3")}})]})]})}),image:"envelope-3",orientation:"horizontal"})}),(0,i.jsx)(eL,{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.envelope.post.title")}),(0,i.jsxs)("ul",{className:N()("without-offset"),children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.post.list.1")}
8}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.post.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.post.list.3")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.post.list.4")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.envelope.post.list.5")}})]})]})}),image:"envelope-4",orientation:"horizontal"})}),(0,i.jsx)(ek,{spacing:"top-large"})]})},eV=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eM,{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.gift.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.gift.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.gift.list.3")}})]})}),(0,i.jsx)(ek,{spacing:"both"}),(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.gift.dimensions.title")}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.gift.dimensions.description")}})]})}),image:"gift",orientation:"horizontal"})]})},eR=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eM,{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.paper.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.paper.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.paper.list.3")}})]})}),(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.paper.color")}})}),image:"paper",orientation:"horizontal",spacing:"top"}),(0,i.jsx)(ek,{spacing:"top"})]})};let ez='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';var eq=e=>{let{children:t,className:r}=e,{customManufacturingForm:{visibleHint:n,setVisibleHint:s}}=(0,x.useContext)(v),[o,a]=(0,x.useState)(!1),c=(0,x.useRef)(null),l=(0,x.useRef)(null),u=()=>{setTimeout(()=>{a(!0)},1),document.documentElement.classList.add("u-prevent-scroll")},m=()=>{a(!1),document.documentElement.classList.remove("u-prevent-scroll")};return(0,x.useEffect)(()=>{let{documentElement:e}=document;l.current=document.activeElement,e.classList.add("u-prevent-scroll"),u();let t=e=>{if("Tab"!==e.key||!c.current)return;let t=Array.from(c.current.querySelectorAll(ez));if(!t.length)return;let r=t[0],n=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),n.focus()):e.shiftKey||document.activeElement!==n||(e.preventDefault(),r.focus())};return document.addEventListener("keydown",t),setTimeout(()=>{if(!c.current)return;let e=c.current.querySelector(ez);e?e.focus():(c.current.tabIndex=-1,c.current.focus())},100),()=>{var r;e.classList.remove("u-prevent-scroll"),document.removeEventListener("keydown",t),null===(r=l.current)||void 0===r||r.focus()}},[]),(0,x.useEffect)(()=>{n.isPopupVisible||m()},[n.isPopupVisible]),(0,i.jsxs)("div",{className:N()("custom-production-hint-popup",o&&"is-open",r),children:[(0,i.jsx)("div",{className:N()("custom-production-hint-popup__overlay"),onClick:()=>{s({id:null,position:0,isPopupVisible:!1})}}),(0,i.jsx)("div",{ref:c,role:"dialog","aria-modal":"true","aria-labelledby":"hint-popup-title",className:N()("custom-production-hint-popup__children"),children:t})]})},eA=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eM,{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.stickers.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.stickers.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.stickers.list.3")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.stickers.list.4")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.stickers.list.5")}})]})}),(0,i.jsx)(ek,{spacing:"both"}),(0,i.jsx)(eP,{size:3,items:[{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsx)("p",{className:N()("title-small"),children:r.raw("custom_manufacturing.hints.stickers.labels.1")})}),image:"stickers-1",orientation:"vertical",centered:!0})},{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsx)("p",{className:N()("title-small"),children:r.raw("custom_manufacturing.hints.stickers.labels.2")})}),image:"stickers-2",orientation:"vertical",centered:!0})},{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsx)("p",{className:N()("title-small"),children:r.raw("custom_manufacturing.hints.stickers.labels.3")})}),image:"stickers-3",orientation:"vertical",centered:!0})}]})]})},eB=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eM,{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.tape.list.1")}
8}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.tape.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.tape.list.3")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.tape.list.4")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.tape.list.5")}})]})}),(0,i.jsx)(ek,{spacing:"both"}),(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.tape.width.title")}),(0,i.jsx)("p",{children:r.raw("custom_manufacturing.hints.tape.width.description")})]})}),image:"tape",orientation:"horizontal"})]})},eG=e=>{let{children:t,isDefault:r,isFirstProductFocused:n,className:s}=e,{customManufacturingForm:{visibleHint:o}}=(0,x.useContext)(v),[a,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(0),m=()=>{setTimeout(()=>{c(!0)},1)},d=()=>{c(!1)};return(0,x.useEffect)(()=>{m()},[]),(0,x.useEffect)(()=>{n?u(50):u(0)},[n]),(0,x.useEffect)(()=>{o.id||d()},[o.id]),(0,i.jsx)("div",{className:N()("custom-production-hint-tooltip",r&&"custom-production-hint-tooltip--default",a&&"is-open",s),style:{marginTop:"".concat(o.position-l,"px")},children:t})},e$=e=>{let{className:t}=e,r=(0,m.useTranslations)();return(0,i.jsxs)(eI,{className:t,children:[(0,i.jsx)(eM,{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.wine.list.1")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.wine.list.2")}}),(0,i.jsx)("li",{dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.hints.wine.list.3")}})]})}),(0,i.jsx)(ek,{spacing:"both"}),(0,i.jsx)(eM,{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:N()("title"),children:r.raw("custom_manufacturing.hints.wine.dimensions.title")}),(0,i.jsx)("p",{children:r.raw("custom_manufacturing.hints.wine.dimensions.description")})]})}),(0,i.jsx)(eP,{size:3,items:[{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsx)("p",{className:N()("title-small"),children:r.raw("custom_manufacturing.hints.wine.labels.1")})}),image:"wine-1",orientation:"vertical",centered:!0})},{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsx)("p",{className:N()("title-small"),children:r.raw("custom_manufacturing.hints.wine.labels.2")})}),image:"wine-2",orientation:"vertical",centered:!0})},{children:(0,i.jsx)(eZ,{content:(0,i.jsx)(eM,{children:(0,i.jsx)("p",{className:N()("title-small"),children:r.raw("custom_manufacturing.hints.wine.labels.3")})}),image:"wine-3",orientation:"vertical",centered:!0})}],spacing:"top"})]})},eJ=r(39936),eX=e=>{let{isFirstProductFocused:t,className:r}=e,{customManufacturingForm:{visibleHint:n}}=(0,x.useContext)(v),[s,o]=(0,x.useState)(!1),[a,c]=(0,x.useState)(!1),l=(0,eJ.Z)(960,!1),u=(0,x.useRef)(),m=(0,x.useMemo)(()=>{switch(n.id){case"box":return(0,i.jsx)(eH,{});case"tape":return(0,i.jsx)(eB,{});case"wine":return(0,i.jsx)(e$,{});case"envelope":return(0,i.jsx)(eF,{});case"bag":return(0,i.jsx)(eE,{});case"gift":return(0,i.jsx)(eV,{});case"paper":return(0,i.jsx)(eR,{});case"stickers":return(0,i.jsx)(eA,{});case"something_else":default:return;case"default":return(0,i.jsx)(eO,{})}},[n]),d=e=>{o(!0),c(e),u.current&&clearTimeout(u.current)},p=()=>{u.current=setTimeout(()=>{o(!1),c(!1)},400)};return((0,x.useEffect)(()=>{n.id?d(n.isPopupVisible):p()},[n.id,n.isPopupVisible]),"something_else"===n.id)?null:(0,i.jsxs)("div",{className:N()("custom-production-form__hints",r),children:[s&&!l&&(0,i.jsx)(eG,{isDefault:"default"===n.id,isFirstProductFocused:t,children:m}),a&&"default"!==n.id&&l&&(0,i.jsx)(eq,{children:m})]})};let eD=(e,t)=>({title:(0,x.useMemo)(()=>{var r;return null==e?void 0:null===(r=e.find(e=>e.id===t))||void 0===r?void 0:r.value},[t])});var eU=r(91593),eW=r(84753),eK=e=>{var t;let{id:r,onEdit:n,handleDeleteProduct:s,className:o}=e,a=(0,m.useTranslations)(),c=(0,m.useLocale)(),{customManufacturingForm:{options:l}}=(0,x.useContext)(v),{getValues:u}=(0,Q.Gc)(),d=u("products.".concat(r)),[p,h]=(0,x.useState)("align-top"),f=(0,x.useRef)(null),g=d.customProductionOptionId,j=(null===(t=d.files)||void 0===t?void 0:t.length)||void 0,{text:w}=d,{title:y}=eD(l,g),b=e=>"tape"===g||e>=102?"align-center":"align-top",S=(0,i.jsx)(i.Fragment,{children:"hu"===c?(0,i.jsx)("img",{src:"/img/cu
8stom-production/form/something_else-hu.png",srcSet:"/img/custom-production/form/something_else-hu.png 1x, /img/custom-production/form/[email protected] 2x",alt:"",className:N()(p)}):(0,i.jsx)("img",{src:"/img/custom-production/form/something_else.png",srcSet:"/img/custom-production/form/something_else.png 1x, /img/custom-production/form/[email protected] 2x",alt:"",className:N()(p)})});return(0,x.useEffect)(()=>{f.current&&h(b(f.current.clientHeight))},[d]),(0,i.jsxs)("div",{className:N()("custom-production-form__products-filled",o),children:[(0,i.jsx)("div",{ref:f,className:N()("custom-production-form__products-filled-image",p),children:g?(0,i.jsx)("img",{src:"/img/custom-production/form/".concat(g,".png"),srcSet:"/img/custom-production/form/".concat(g,".png 1x, /img/custom-production/form/").concat(g,"@2x.png"),alt:"",className:N()(p)}):S}),(0,i.jsxs)("div",{className:N()("custom-production-form__products-filled-inner"),children:[y&&(0,i.jsx)("p",{className:N()("custom-production-form__products-filled-title"),children:y}),j&&(0,i.jsxs)("div",{className:N()("custom-production-form__products-filled-files"),children:[(0,i.jsx)(eW.Z,{}),(0,i.jsxs)("span",{children:[j," ",a("custom_manufacturing.form.files_count",{count:j})]})]}),w&&(0,i.jsx)("p",{className:N()("custom-production-form__products-filled-text"),children:w}),(0,i.jsxs)("div",{className:N()("custom-production-form__products-filled-controls"),children:[(0,i.jsx)(_.Z,{type:"button",variant:"text",size:"mid",onClick:()=>n(r),children:a.raw("custom_manufacturing.form.edit")}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.Z,{type:"button",variant:"text-dark",size:"mid",className:N()("custom-production-form__products-filled-controls-remove"),onClick:()=>s(r),children:a.raw("custom_manufacturing.form.remove")}),(0,i.jsx)("button",{type:"button",className:N()("custom-production-form__products-filled-controls-remove-phone"),onClick:()=>s(r),children:(0,i.jsx)(eU.Z,{})})]})]})]})]})},eY=r(35007);let eQ=(e,t)=>e.find(e=>e.id===t);var e0=e=>{let{predefinedOptionId:t,defaultOption:r,options:n,name:s,getHintPosition:o}=e,a=(0,x.useRef)(null),{customManufacturingForm:{setVisibleHint:c,setShouldUpdateForm:l}}=(0,x.useContext)(v),u=(0,T.Z)(),m=(0,i.jsx)(i.Fragment,{children:"hu"===u?(0,i.jsx)("img",{src:"/img/ico-svg/li-arrow-green.svg",alt:"",role:"img","aria-hidden":"true"}):(0,i.jsx)("img",{src:"/img/ico-svg/li-arrow-blue.svg",alt:"",role:"img","aria-hidden":"true"})}),d=(0,i.jsx)(i.Fragment,{children:"hu"===u?(0,i.jsx)("img",{src:"/img/ico-svg/checkmark-green.svg",className:N()("select__option-checked-icon"),alt:"",role:"img","aria-hidden":"true"}):(0,i.jsx)("img",{src:"/img/ico-svg/checkmark-blue.svg",className:N()("select__option-checked-icon"),alt:"",role:"img","aria-hidden":"true"})}),p=(0,Q.Gc)(),{errors:h}=p.formState,f=p.getValues(s),[g,_]=(0,x.useState)(!1),[j,w]=(0,x.useState)(r),y=(0,Q.U2)(h,s),b=e=>{let t=eQ(n,e);p.setValue(s,t?t.id:"",{shouldValidate:!0}),c({id:t?t.id:null,position:o(),isPopupVisible:!1}),l(!0),w(t?t.value:r)},S=()=>{_(!1)};return(0,x.useEffect)(()=>(g&&document.addEventListener("click",S),()=>{document.removeEventListener("click",S)}),[g]),(0,x.useEffect)(()=>{t&&b(t)},[t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:N()("select__wrapper select__wrapper--full-width"),children:[(0,i.jsxs)("button",{ref:a,type:"button",onClick:()=>{_(!0)},className:N()("select",g&&"is-opened",y&&"has-error"),children:[(0,i.jsx)("span",{id:"selected",className:N()("select__selected"),children:j}),(0,i.jsx)("span",{className:N()("select__icon-wrapper"),children:m})]}),(0,i.jsx)("ul",{id:s,tabIndex:-1,role:"listbox",className:N()("select__options-wrapper"),children:n.map((e,t)=>(0,i.jsxs)("li",{id:e.id,onClick:()=>b(e.id),role:"option",className:N()("select__option","select__option--highlighted",e.id===f&&"is-selected"),children:[(0,i.jsx)("span",{children:e.value}),d]},t))})]}),y&&y.message&&(0,i.jsxs)("div",{className:N()("select__error"),children:[(0,i.jsx)(ev.Z,{className:N()("select__error-icon")}),(0,i.jsx)("p",{className:N()("select__error-message"),children:y.message})]})]})},e1=r(72525),e2=r(90352),e5=r(61076);function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
8for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var e6=function(e){return eb.createElement("svg",e3({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),o||(o=eb.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.19999 14.8003H10.8V13.2003H9.19999V14.8003ZM10 2C5.584 2 2 5.584 2 10C2 14.416 5.584 18 10 18C14.416 18 18 14.416 18 10C18 5.584 14.416 2 10 2ZM10.0003 16.4003C6.47231 16.4003 3.60031 13.5283 3.60031 10.0003C3.60031 6.47231 6.47231 3.60031 10.0003 3.60031C13.5283 3.60031 16.4003 6.47231 16.4003 10.0003C16.4003 13.5283 13.5283 16.4003 10.0003 16.4003ZM10 5.19969C8.23201 5.19969 6.80001 6.63169 6.80001 8.39969H8.40001C8.40001 7.51969 9.12001 6.79969 10 6.79969C10.88 6.79969 11.6 7.51969 11.6 8.39969C11.6 9.99969 9.20001 9.79969 9.20001 12.3997H10.8C10.8 10.5997 13.2 10.3997 13.2 8.39969C13.2 6.63169 11.768 5.19969 10 5.19969Z",fill:"currentColor"})))};let e4=(0,S.default)(()=>r.e(1245).then(r.bind(r,28239)),{loadableGenerated:{webpack:()=>[28239]},ssr:!1,loading:h.q});var e9=e=>{let{id:t,handleDeleteProduct:r,canBeDeleted:n,isMain:s,isEditMode:o,isNew:a,className:c}=e,{executeRecaptcha:l}=(0,em.xX)(),u=(0,m.useTranslations)(),d=(0,m.useLocale)(),{customManufacturingForm:{options:p,predefinedOptionId:h,visibleHint:f,setVisibleHint:w,openedProduct:y,setShouldUpdateForm:b,shouldSlideToProduct:S,setShouldSlideToProduct:C}}=(0,x.useContext)(v),{shouldOpenGallery:I,startPosition:Z,isVisible:T,handleOpenGallery:k,handleCloseGallery:L}=(0,g.d)(),[E,P]=(0,x.useState)([]),[H,O]=(0,x.useState)([]),[F,V]=(0,x.useState)(void 0),[R,z]=(0,x.useState)(void 0),[q,A]=(0,x.useState)(!1),B=(0,x.useRef)(null),G=(0,eJ.Z)(960,!1),$=(0,Q.Gc)(),J=$.getValues("products.".concat(t)),X=J.customProductionOptionId,D=E.filter(e=>!e.id.toLowerCase().endsWith("pdf")),{title:U}=eD(p,X),W=()=>{let e=document.querySelector(".custom-production-form__inner"),t=null==e?void 0:e.getBoundingClientRect().top;return t&&B.current?B.current.getBoundingClientRect().top-t:0},K=async e=>{let t=new FormData;t.append("files[]",e);let r="";try{l&&(r=await l())}catch(e){r=""}t.append("token",r),M.l.postWithValidation(et.post.uploadFile.endpoint,t,e=>{V(e),z(void 0)},e=>{z(null==e?void 0:e.message),(0,ee.O)(e)},void 0,{headers:{accept:"application/json","Content-Type":"multipart/form-data;"}})},Y=async e=>{let t="";try{l&&(t=await l())}catch(e){t=""}M.l.postWithValidation(et.post.deleteFiles.endpoint,{ids:[e],token:t},()=>{P(E.filter(t=>t.id!==e))},()=>{P(E.filter(t=>t.id!==e))})},er=()=>{A(!1),setTimeout(()=>{A(!0)},300)},en=(0,i.jsx)(i.Fragment,{children:"hu"===d?(0,i.jsx)("img",{src:"/img/custom-production/form/something_else-hu.png",srcSet:"/img/custom-production/form/something_else-hu.png 1x, /img/custom-production/form/[email protected] 2x",alt:""}):(0,i.jsx)("img",{src:"/img/custom-production/form/something_else.png",srcSet:"/img/custom-production/form/something_else.png 1x, /img/custom-production/form/[email protected] 2x",alt:""})});return(0,x.useEffect)(()=>{if(o||null===y){w({id:null,position:0,isPopupVisible:!1});return}w({id:X||"default",position:W(),isPopupVisible:!1})},[X,y]),(0,x.useEffect)(()=>{(J.text||J.customProductionOptionId)&&er()},[J.text,J.customProductionOptionId,E.length]),(0,x.useEffect)(()=>{(0,eY.Hj)(H,E)||(O(E),$.setValue("products.".concat(t,".files"),E),b(!0))},[E]),(0,x.useEffect)(()=>{F&&(P(E.concat(F)),V(void 0))},[F]),(0,x.useEffect)(()=>{let e=$.getValues("products.".concat(t,".files"));e&&(O(e),P(e))},[]),(0,x.useEffect)(()=>{B.current&&S&&((0,j.JV)(B.current,96),C(!1))},[S]),(0,i.jsxs)("div",{ref:B,className:N()("custom-production-form__products-item",s&&"custom-production-form__products-item--main",c),children:[a&&(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-title"),children:[(0,i.jsx)(e5.Z,{className:N()("custom-production-form__products-item-title-icon")}),(0,i.jsx)("span",{children:u.raw("custom_manufacturing.form.products_interested_in")})]}),o&&X&&(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-category"),children:[(0,i.jsx)("div",{className:N()("custom-production-form__products-item-category-image"),children:X?(0,i.jsx)("img",{src:"/img/cu
8stom-production/form/".concat(X,".png"),srcSet:"/img/custom-production/form/".concat(X,".png 1x, /img/custom-production/form/").concat(X,"@2x.png 2x"),alt:""}):en}),(0,i.jsx)("p",{className:N()("custom-production-form__products-item-category-name"),children:U})]}),(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-inner"),children:[(!o||o&&!X)&&p&&(0,i.jsx)("div",{children:(0,i.jsx)(e0,{defaultOption:u.raw("custom_manufacturing.form.select_default"),name:"products.".concat(t,".customProductionOptionId"),predefinedOptionId:X||h,options:p,getHintPosition:W})}),(0,i.jsx)("div",{children:(0,i.jsxs)(e_.Z,{label:u.raw("custom_manufacturing.form.text"),fontSize:"small",isBold:!0,children:[(0,i.jsx)(e1.Z,{name:"products.".concat(t,".text"),onBlur:()=>{b(!0)}}),X&&"something_else"!==X&&(0,i.jsx)(_.Z,{type:"button",variant:"text",size:"small",startIcon:(0,i.jsx)(e6,{}),className:N()("custom-production-form__products-item-question"),onClick:()=>{w({id:X||null,position:W(),isPopupVisible:!0})},bold:!0,disabled:G?null!==f.id&&f.isPopupVisible:null!==f.id,children:u.raw("custom_manufacturing.form.what_informations_we_need")})]})}),(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-files-wrapper"),children:[(0,i.jsx)("p",{className:N()("custom-production-form__products-item-files-label"),dangerouslySetInnerHTML:{__html:u.raw("custom_manufacturing.form.files")}}),E.length>0&&(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-files"),children:[E.map((e,t)=>{let r=e.id.split("."),n=r[r.length-1].toLocaleLowerCase(),s="pdf"===n;return(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-files-item"),children:[(0,i.jsx)("span",{className:"custom-production-form__products-item-files-item-extension",children:n}),(0,i.jsx)("a",{onClick:s?void 0:e=>k(e,t),href:s?"/uploads/storefront/".concat(e.id):void 0,target:s?"_blank":void 0,className:N()("custom-production-form__products-item-files-item-name"),rel:"noreferrer",children:e.name}),(0,i.jsxs)("button",{type:"button",className:N()("custom-production-form__products-item-files-item-remove"),onClick:()=>{Y(e.id)},children:[(0,i.jsx)(e2.Z,{}),(0,i.jsx)("span",{children:u.raw("custom_manufacturing.form.remove")})]})]},"file-".concat(t))}),I&&(0,i.jsx)(e4,{titles:D.map(e=>e.name),items:D.map(e=>({thumbnail:"/uploads/storefront/".concat(e.id),src:"/uploads/storefront/".concat(e.id)})),startPosition:Z,isVisible:T,onClose:L,useInitialFormat:!0})]}),R&&(0,i.jsx)("p",{className:N()("custom-production-form__products-item-files-upload-error"),children:R}),(0,i.jsxs)(_.Z,{variant:"secondary",size:"small",className:N()("custom-production-form__products-item-files-upload"),type:"button",children:[u.raw("custom_manufacturing.form.choose_file"),(0,i.jsx)("input",{type:"file",accept:"image/*,application/pdf",multiple:!0,onChange:e=>{let t=e.target.files;t&&(Object.values(t).forEach(e=>{K(e)}),e.target.value="")}})]})]})]}),n&&(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-footer"),children:[(0,i.jsxs)("div",{className:N()("custom-production-form__products-item-save",q&&"animate"),children:[(0,i.jsx)("div",{className:N()("custom-production-form__products-item-save-cirlce"),children:(0,i.jsx)("div",{className:N()("custom-production-form__products-item-save-cirlce-check")})}),(0,i.jsx)("p",{className:N()("custom-production-form__products-item-save-label"),children:u.raw("custom_manufacturing.form.form_saved")})]}),(0,i.jsx)(_.Z,{type:"button",variant:"text-dark",size:"mid",className:N()("custom-production-form__products-item-remove"),onClick:()=>r(t),children:u.raw("custom_manufacturing.form.remove")}),(0,i.jsx)("button",{type:"button",className:N()("custom-production-form__products-item-remove-phone"),onClick:()=>r(t),children:(0,i.jsx)(eU.Z,{})})]})]})},e7=r(37865),e8=r(93148),te=e=>{let{products:t,handleDeleteProduct:r,className:n}=e,s=(0,m.useTranslations)(),{customManufacturingForm:{openedProduct:o,setOpenedProduct:a,setVisibleHint:c,setShouldSlideToProduct:l}}=(0,x.useContext)(v),u=(0,Q.Gc)(),d=u.getValues("products"),[p,h]=(0,x.useState)(void 0),[f,g]=(0,x.useState)(void 0),_=e=>{p&&p>e&&(2===t.fields.length?h(void 0):h(p-1)),r(e),g(void 0),o===e&&c({id:null,position:0,isPopupVisible:!1})},j=e=>{if(d[e].customProductionOptionId||d[e].text||d[e].files.length>0){g(e);return}_(e)},w=e=>{if(l(!0),1===t.fields.length){a(e),h(void 0);return}if(o){let e=u.getValues("products.".concat(o));e.customProductionOptionId||e.text||r(o)}c({id:null,position:0,isPopupVisible:!1}),a(e),h(e)};return(0,x.useEffect)(()=>{null===o&&c({id:null,position:0,isPopupVisible:!1})}
8,[o]),(0,i.jsxs)("div",{className:N()("custom-production-form__products",n),children:[t.fields.map((e,r)=>(0,i.jsx)(x.Fragment,{children:o===r?(0,i.jsx)(e9,{id:r,handleDeleteProduct:j,isMain:p!==r&&1===t.fields.length,isEditMode:p===r,isNew:p!==r&&t.fields.length>1,canBeDeleted:t.fields.length>1}):(0,i.jsx)(eK,{id:r,onEdit:w,handleDeleteProduct:j})},e.id)),void 0!==f&&(0,i.jsx)(e8.Z,{title:s.raw("custom_manufacturing.form.delete.question"),icon:{icon:(0,i.jsx)(e7.Z,{}),variant:"error"},size:492,onClose:()=>g(void 0),onSubmit:()=>{void 0!==f&&_(f)},closeButton:s.raw("custom_manufacturing.form.delete.cancel"),submitButton:s.raw("custom_manufacturing.form.delete.submit"),submitButtonSize:"small",reversed:!0})]})},tt=e=>{let{number:t,title:r,subtitle:n,status:s,errorMessage:o,hasOffset:a,children:c,className:l}=e;return(0,i.jsxs)("div",{className:N()("custom-production-form__section",s&&"custom-production-form__section--".concat(s),a&&"custom-production-form__section--with-offset",l),children:[(0,i.jsx)("div",{className:N()("custom-production-form__section-number"),children:(0,i.jsxs)("p",{children:[t,"."]})}),(0,i.jsxs)("div",{className:N()("custom-production-form__section-inner"),children:[(0,i.jsx)("p",{className:N()("custom-production-form__section-title"),children:r}),n&&(0,i.jsx)("p",{className:N()("custom-production-form__section-subtitle"),children:n}),(0,i.jsx)("div",{className:N()("custom-production-form__section-content"),children:c}),"error"===s&&o&&(0,i.jsxs)("div",{className:N()("custom-production-form__section-error"),children:[(0,i.jsx)(ev.Z,{className:N()("custom-production-form__section-error-icon")}),(0,i.jsx)("p",{className:N()("custom-production-form__section-error-message"),children:o})]})]})]})},tr=r(89258),tn=e=>{let{shouldShow:t}=e;return t?(0,i.jsx)(tr.Z,{modifiers:"custom-production__loading-spinner custom-production__loading-spinner--content",id:"custom-manufacturing"}):null},ts=e=>{let{onCreteNewFormClick:t}=e,r=(0,m.useTranslations)(),n=(0,m.useLocale)(),s=(0,i.jsx)(i.Fragment,{children:"hu"===n?(0,i.jsx)("img",{src:"/img/ico-svg/checkmark-green.svg",className:"custom-production-form__submitted-icon",alt:"",role:"img","aria-hidden":"true"}):(0,i.jsx)("img",{src:"/img/ico-svg/checkmark-blue.svg",className:"custom-production-form__submitted-icon",alt:"",role:"img","aria-hidden":"true"})});return(0,i.jsxs)("div",{className:"custom-production-form__submitted",children:[(0,i.jsxs)("h3",{className:"custom-production-form__submitted-title",children:[s,r.raw("custom_manufacturing.form.submitted.title")]}),(0,i.jsx)("p",{className:"custom-production-form__submitted-description",children:r.raw("custom_manufacturing.form.submitted.description")}),(0,i.jsx)(_.Z,{className:"custom-production-form__submitted-button",onClick:e=>{e.preventDefault(),t()},children:r.raw("custom_manufacturing.form.submitted.button")})]})},to=r(34594),ti=r(70010);let ta={name:"",email:"",phone:"",companyOrVatId:"",gdpr:!1,products:[{customProductionOptionId:"",text:"",files:[]}]},tc="custom-production-form",tl=(e,t)=>{if(!e||!t)return null;let r=e.find(e=>e.id===t);return r?r.value:null},tu=()=>{let e=(0,m.useTranslations)(),{validationRules:t}=(0,B.Z)(),[r,n]=(0,x.useState)(!1),[s,o]=(0,x.useState)(!1),[a,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(!1),[d,h]=(0,x.useState)(!1),{customManufacturingForm:{formSubmitCount:g,setFormSubmitCount:j,name:y,email:b,phone:S,options:C,companyOrVatId:I,customManufacturingFormRef:Z,openedProduct:T,setOpenedProduct:k,visibleHint:L,setVisibleHint:E,shouldUpdateForm:P,setShouldUpdateForm:H,setShouldSlideToProduct:O}}=(0,x.useContext)(v),{executeRecaptcha:F}=(0,em.xX)(),V=(0,x.useCallback)(()=>el(e,t),[]),R=(0,Q.cI)({defaultValues:{...ta,name:y,email:b,phone:S,companyOrVatId:I},resolver:(0,ed.X)(V()),mode:"onChange"});(0,to.Z)(R);let z=R.getValues(),G=(0,Q.Dq)({control:R.control,name:"products"}),{remove:$,append:J}=G,X=()=>{H(!0),k(G.fields.length),E({id:"default",position:0,isPopupVisible:!1}),O(!0),J({customProductionOptionId:"",text:"",files:[]},{shouldFocus:!1})},D=async e=>{let t="";try{F&&(t=await F())}catch(e){t=""}M.l.post(et.post.deleteFiles.endpoint,{ids:e,token:t},M.l.onApiSuccessUnhandled,M.l.onApiErrorUnhandled)},U=e=>{j(e?0:g+1)};(0,ti.Z)(Z,r);let W=()=>{try{localStorage.removeItem("customManufacturingForm"),R.reset(ta),k(0)}catch(e){R.reset(ta),k(0)}},K=e=>{Object.keys(e).forEach(t=>{switch(t){case"name":R.setError("name",{type:"custom",message:e[t]});break;case"email":R.setError("email",{type:"custom",message:e[t]});break;case"phone":R.setError("phone",{type:"custom",message:e[t]});break;case"companyOrVatId":R.setError("companyOrVatId",{type:"custom",message:e[t]});break;case"gdpr":R.setError("gdpr",{type:"custom",message:e[t]})}})},er=async e=>{if(d)return;n(!0);let t=Y.I.instance;try{let{isSubmitted:r,status:s,errors:o}=(await t.path("/apiv2/custom-manufacturing").post(null,e)).data;if(r&&"OK"===s){let t=[];
8e.products.forEach(e=>{if(!e.customProductionOptionId)return;let r=tl(C,e.customProductionOptionId);r&&t.push(r)}),q.Z.pushCustomManufacturingFormSubmit(e.email,t.join(", ")),u(!0),n(!1),U(),W();return}if(o){let{formErrors:e}=eu(o);K(e),u(!1)}n(!1),U()}catch(e){(0,ee.O)(e),u(!1),n(!1),U()}},en=()=>{let{products:e}=z;1!==e.length||e[0].customProductionOptionId?o(!1):o(!0)},es=()=>{if(P)try{localStorage.setItem("customManufacturingForm",JSON.stringify(z)),H(!1)}catch(e){H(!1)}},eo=()=>{try{let e=localStorage.getItem("customManufacturingForm");if(e){let t=JSON.parse(e);(t.products[0].customProductionOptionId||t.products[0].text)&&k(null),localStorage.setItem("customManufacturingForm",JSON.stringify(t)),R.reset(t)}}catch(e){R.reset(ta)}};return(0,x.useEffect)(()=>{en()},[z.products]),(0,x.useEffect)(()=>{a&&!R.formState.errors.products&&c(!1)},[R.formState.errors.products]),(0,x.useEffect)(()=>{eo()},[]),(0,x.useEffect)(()=>{es()},[P]),(0,i.jsx)("div",{className:"custom-production-form-container",ref:Z,children:(0,i.jsxs)("div",{className:"custom-production-form__wrapper",id:"custom-production-form",children:[(0,i.jsx)("div",{className:"custom-production-form__illustration",children:(0,i.jsx)(w.Z,{...(0,p.md)("/img/custom-production/form-illustration","png"),width:220,height:195,role:"img",ariaHidden:!0,disablePlaceholder:!0})}),l?(0,i.jsx)(ts,{onCreteNewFormClick:()=>{q.Z.pushCustomManufacturingNewForm(),U(!0),u(!1)}}):(0,i.jsxs)("section",{className:N()("custom-production-form__content",r&&"is-loading"),"aria-labelledby":"custom-manufacturing-form-title",children:[(0,i.jsx)("h3",{id:"custom-manufacturing-form-title",className:"custom-production-form__title",children:e.raw("custom_manufacturing.form.title")}),(0,i.jsx)("p",{className:"custom-production-form__subtitle",dangerouslySetInnerHTML:{__html:e.raw("custom_manufacturing.form.subtitle")}}),(0,i.jsx)(tn,{shouldShow:r}),(0,i.jsxs)("div",{className:N()("custom-production-form__inner"),children:[(0,i.jsx)("div",{className:N()("custom-production-form",(!L.id||"something_else"===L.id)&&"is-centered"),id:tc,children:(0,i.jsx)(Q.RV,{...R,children:(0,i.jsxs)("form",{onSubmit:R.handleSubmit(er,e=>{if(e.products){let t=e.products.find(e=>"object"==typeof e);if(t){let r=e.products.indexOf(t),n=document.getElementById(tc);k(r),c(!0),n&&(0,f.kI)(n)}}}),noValidate:!0,children:[(0,i.jsx)(A.Z,{onChange:()=>{h(!0)}}),(0,i.jsx)(tt,{number:1,title:e.raw("custom_manufacturing.form.interested_products"),status:a&&"error"||s&&"focused"||void 0,errorMessage:e.raw("custom_manufacturing.form.products_error"),hasOffset:!0,children:(0,i.jsx)(te,{products:G,handleDeleteProduct:e=>{let t=z.products[e].files.map(e=>e.id);1===z.products.length&&0===e?(k(0),R.setValue("products",ta.products)):$(e),T&&e<T&&k(T-1),e===T&&k(null),H(!0),t.length>0&&D(t)}})}),(()=>{let{products:e}=z;return!!e[e.length-1].customProductionOptionId})()&&(0,i.jsxs)("div",{className:N()("custom-production-form__add-product"),children:[(0,i.jsx)(_.Z,{variant:"secondary",size:"small",type:"button",startIcon:(0,i.jsx)(e5.Z,{}),className:N()("custom-production-form__add-product-button"),onClick:X,children:e.raw("custom_manufacturing.form.products_add_more")}),(0,i.jsxs)("button",{type:"button",className:N()("custom-production-form__add-product-button-phone"),onClick:X,children:[(0,i.jsx)("span",{className:N()("custom-production-form__add-product-button-phone-icon"),children:(0,i.jsx)(e5.Z,{})}),(0,i.jsx)("span",{children:e.raw("custom_manufacturing.form.products_add_more")})]})]}),(0,i.jsxs)(tt,{number:2,title:e.raw("custom_manufacturing.form.your_information"),subtitle:e.raw("custom_manufacturing.form.call_back"),children:[(0,i.jsx)(ew,{}),(0,i.jsx)(_.Z,{type:"submit",size:"dominant",className:N()("custom-production-form__submit"),children:e.raw("custom_manufacturing.form.submit")}),(0,i.jsx)("p",{className:"custom-production-form__required-note",children:e.raw("custom_manufacturing.form.required")})]})]})})}),L.id&&(0,i.jsx)(eX,{isFirstProductFocused:s})]})]})]})})};var tm=()=>{let{recaptchaSiteKey:e}=(0,B.Z)();return(0,i.jsx)(em.pm,{reCaptchaKey:e,scriptProps:{async:!0,defer:!0},children:(0,i.jsx)(tu,{})})},td=e=>{let{manufacturingSectionRef:t}=e,r=(0,m.useTranslations)(),n=(0,eJ.Z)(768);return(0,i.jsxs)("div",{className:"custom-production__intro",children:[(0,i.jsxs)("div",{className:"custom-production__intro-content",children:[(0,i.jsxs)("div",{className:"custom-production__intro-content-half",children:[(0,i.jsx)("h1",{className:"custom-production__intro-title",children:r.raw("custom_manufacturing.intro.title")}),(0,i.jsx)("p",{className:"custom-production__intro-subtitle",dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.intro.description")}}),(0,i.jsx)("ul",{className:"custom-production__intro-list",children:(0,eY.Pr)(3).map((e,t)=>(0,i.jsx)("li",{className:"custom-production__intro-list-item",dangerouslySetInnerHTML:{__html:r.raw("custom_manufacturing.intro.benefits.".concat(t+1))}},t))}),(0,i.jsx)(_.Z,{className:N()("custom-production__intro-button "),onClick:()=>{t.current&&(0,j.JV)(t.current,n?56:128)},children:r.raw("custom_manufacturing.intro.button")}
8),(0,i.jsx)(w.Z,{...(0,p.md)("/img/custom-production/intro","png"),width:500,height:500,className:N()("custom-production__intro-image-wrapper custom-production__intro-image-wrapper--phone"),imageClassName:N()("custom-production__intro-image")})]}),(0,i.jsx)("div",{className:"custom-production__intro-companies",children:(0,i.jsx)(L,{})})]}),(0,i.jsx)("div",{className:"custom-production__intro-aside",children:(0,i.jsx)(w.Z,{...(0,p.md)("/img/custom-production/intro","png"),width:500,height:500,className:N()("custom-production__intro-image-wrapper"),imageClassName:N()("custom-production__intro-image")})})]})},tp=()=>{let e=(0,m.useTranslations)(),t=(0,m.useLocale)(),r=(0,i.jsx)(i.Fragment,{children:"hu"===t?(0,i.jsx)("img",{src:"img/ico-svg/li-arrow-green.svg",alt:"",role:"img","aria-hidden":"true"}):(0,i.jsx)("img",{src:"img/ico-svg/li-arrow-blue.svg",alt:"",role:"img","aria-hidden":"true"})}),n=(0,x.useMemo)(()=>"hu"===t?[{review:e.raw("custom_manufacturing.customers.1"),image:"/img/custom-production/laget",name:e.raw("custom_manufacturing.customers.name.1"),company:"L\xe4get P\xe9ks\xe9g"},{review:e.raw("custom_manufacturing.customers.3"),image:"/img/custom-production/tomas-hofer",name:e.raw("custom_manufacturing.customers.name.3"),company:"Notino"},{review:e.raw("custom_manufacturing.customers.2"),image:"/img/custom-production/logo-helyivegyi",name:e.raw("custom_manufacturing.customers.name.2"),company:"Helyi Vegyi Kft"}]:[{review:e.raw("custom_manufacturing.customers.1"),image:"/img/custom-production/katerina-rackova",name:e.raw("custom_manufacturing.customers.name.1"),company:"Jan Melvil Publishing"},{review:e.raw("custom_manufacturing.customers.2"),image:"/img/custom-production/jana-klaudova",name:e.raw("custom_manufacturing.customers.name.2"),company:"Pura Vida"},{review:e.raw("custom_manufacturing.customers.3"),image:"/img/custom-production/tomas-hofer",name:e.raw("custom_manufacturing.customers.name.3"),company:"Notino"}],[]);return(0,i.jsx)("div",{className:"custom-production__customers-section",children:(0,i.jsxs)("div",{className:"customers-slider__wrapper",children:[(0,i.jsx)("h2",{className:"customers-slider__title",children:e.raw("custom_manufacturing.customers.title")}),(0,i.jsx)("div",{className:"customers-slider swiper",children:(0,i.jsx)("div",{className:"customers-slider__inner swiper-wrapper",children:n.map(e=>(0,i.jsx)("div",{className:"customers-slider__item swiper-slide",children:(0,i.jsxs)("div",{className:"customers-slider__item-inner",children:[(0,i.jsx)("p",{className:"customers-slider__item-text",children:e.review}),(0,i.jsxs)("div",{className:"customers-slider__item-author",children:[(0,i.jsx)("div",{className:"customers-slider__item-author-image",children:(0,i.jsx)(w.Z,{...(0,p.md)(e.image,"png"),width:56,height:56})}),(0,i.jsxs)("div",{className:"customers-slider__item-author-inner",children:[(0,i.jsx)("p",{className:"customers-slider__item-author-name",children:e.name}),(0,i.jsx)("p",{className:"customers-slider__item-author-company",children:e.company})]})]})]})},e.name))})}),(0,i.jsxs)("div",{className:"customers-slider__controls",children:[(0,i.jsx)("div",{className:"customers-slider__arrow customers-slider__arrow-prev swiper-button-prev",children:r}),(0,i.jsx)("div",{className:"customers-slider__pagination swiper-pagination"}),(0,i.jsx)("div",{className:"customers-slider__arrow customers-slider__arrow-next swiper-button-next",children:r})]})]})})},th=r(63475),tf=()=>{let{customManufacturingNavigation:e}=(0,x.useContext)(v);if(!e)return null;let t=Object.values(e).map(e=>({label:e.title,href:"#".concat(e.id)}));return(0,i.jsx)(th.Z,{items:t,className:N()("inpage-nav--custom-production")})},tg=r(76741),t_=e=>{let{title:t,description:r,path:n,thumbnailImage:s}=e,o=(0,m.useTranslations)(),a=(0,m.useLocale)(),c=(0,i.jsx)(i.Fragment,{children:"hu"===a?(0,i.jsx)("img",{className:N()("custom-production__story-sticker"),src:"/img/custom-production/story-sticker-green.svg",alt:""}):(0,i.jsx)("img",{className:N()("custom-production__story-sticker"),src:"/img/custom-production/story-sticker.svg",alt:""})});return(0,i.jsxs)("div",{className:N()("custom-production__story"),children:[(0,i.jsx)("div",{className:N()("custom-production__story-image"),children:(0,i.jsx)(w.Z,{imagePath:s,strategy:d.J.EXACT_CROP,width:384,height:230})}),(0,i.jsxs)("div",{className:N()("custom-production__story-inner"),children:[(0,i.jsx)("h3",{className:N()("custom-production__story-title"),children:t}),(0,i.jsx)("p",{className:N()("custom-production__story-description"),children:r}),(0,i.jsx)(tg.Z,{variant:"text",size:"mid",href:n,target:"_blank",children:o.raw("custom_manufacturing.story.read_more")})]}),c]})},tx=r(29209),tv=(0,r(49278).Z)(e=>{let{pageProps:{callbackRequest:t,customManufacturing:r,userStory:n}}=e,[s,o]=(0,x.useState)(0),[a,c]=(0,x.useState)(null),[l,d]=(0,x.useState)(0),[p,h]=(0,x.useState)(!1),[f,g]=(0,x.useState)(!1),[_,j]=(0,x.useState)({id:null,position:0,isPopupVisible:!1}),w=(0,x.useRef)(null),y=(0,m.useTranslations)(),b=(0,x.useRef)(null);return(0,x.useEffect)(()=>(window.addEventListener("resize",u,!1),u(),()=>{window.removeEventListener("resize",u,!1)}),[]),(0,i.jsx)(tx.Z,{breadcrumbsClassName:N()("without-spacing","breadcrumbs--s
8hort"),children:(0,i.jsx)(v.Provider,{value:{customManufacturingForm:{name:r.name||"",email:r.email||"",phone:r.phone||"",companyOrVatId:r.companyOrVatId,options:r.options,formSubmitCount:s,setFormSubmitCount:o,setPredefinedOptionId:c,predefinedOptionId:a,openedProduct:l,setOpenedProduct:d,visibleHint:_,setVisibleHint:j,shouldUpdateForm:p,setShouldUpdateForm:h,shouldSlideToProduct:f,setShouldSlideToProduct:g,customManufacturingFormRef:b},callbackRequestForm:{placeOfRequest:t.placeOfRequest},customManufacturingNavigation:r.navigation,customManufacturingSections:r.content},children:(0,i.jsxs)("div",{className:"custom-production",children:[(0,i.jsx)(td,{manufacturingSectionRef:w}),(0,i.jsxs)("div",{className:"custom-production__products-section",ref:w,children:[(0,i.jsx)("h2",{className:"custom-production__content-title",children:y.raw("custom_manufacturing.products.title")}),(0,i.jsx)(tf,{}),(0,i.jsx)(Z,{})]}),(0,i.jsx)(tp,{}),(0,i.jsx)(L,{className:"custom-production__companies--standalone",withButton:!0}),n&&(0,i.jsx)(t_,{...n}),(0,i.jsx)(tm,{}),(0,i.jsx)(K,{})]})})})})},82059:function(e,t,r){"use strict";r.d(t,{A$:function(){return i},C5:function(){return n},F8:function(){return o},hr:function(){return s},lE:function(){return a}});let n="cs",s="pl",o="sk",i="hu",a=[n,s,o,i]},8739:function(e,t,r){"use strict";var n,s;r.d(t,{d:function(){return n}}),(s=n||(n={}))[s.validating=0]="validating",s[s.success=1]="success",s[s.error=2]="error",s[s.danger=3]="danger",s[s.waiting=4]="waiting"},34594:function(e,t,r){"use strict";var n=r(46245),s=r(7653);t.Z=e=>{let{formState:{errors:t,submitCount:r}}=e;(0,s.useEffect)(()=>{r>0&&Object.keys(t).length>0&&(0,n.x6)()},[r,t])}},14283:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(7653),s=r(10561);let o=()=>{let[e,t]=(0,n.useState)(!1),[r,o]=(0,n.useState)(0),[i,a]=(0,n.useState)(!1),c=()=>{t(!0),setTimeout(()=>{a(!0)},50)},l=()=>{a(!1),setTimeout(()=>{t(!1)},300)};return{shouldOpenGallery:e,startPosition:r,isVisible:i,handleOpenGallery:(e,t)=>{(0,s.Z)(e),o(t),c()},handleCloseGallery:()=>{o(0),l()}}}},70010:function(e,t,r){"use strict";var n=r(28358),s=r(7653);t.Z=(e,t)=>{(0,s.useEffect)(()=>{e.current&&t&&(0,n.JV)(e.current,150)},[t])}},12240:function(e,t,r){"use strict";var n=r(38752),s=r(7653),o=r(35434);t.Z=(e,t)=>{let[r,i]=(0,s.useState)(null),a=(0,o.Z)(r,"email"===e?1e3:500),[c,l,u]=(0,n.U$)(e),[m,d]=(0,s.use
8State)(""),[p,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1),[_,x]=(0,s.useState)();return(0,s.useEffect)(()=>{x(t)},[]),(0,s.useEffect)(()=>{null!==a&&(a.length>3&&u.setTouched(!0),0===a.length&&u.setTouched(!0))},[a]),(0,s.useEffect)(()=>{if(!l.touched||!l.error&&""===c.value){h(!1),g(!1),d("");return}h(!!l.error),g(!l.error),d(l.error?"error":"success")},[l.error,l.touched,c.value]),{onChange:e=>{let{value:t}=e.target;i(t),c.onChange(e),_&&_.validate(t).then(()=>{u.setError(void 0)}).catch(e=>{u.setError(e.errors)})},value:c.value,hasError:p,isSuccessed:f,className:m,errorMessage:l.error}}},28358:function(e,t,r){"use strict";r.d(t,{Gd:function(){return o},JV:function(){return i},oJ:function(){return n}});let n=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},s=(e,t,r)=>{let n;let s=window.pageYOffset,o=e-s,i=performance.now(),a=!0,c=()=>{a=!1,n&&cancelAnimationFrame(n),window.removeEventListener("touchstart",c),window.removeEventListener("wheel",c),window.removeEventListener("keydown",c)};window.addEventListener("touchstart",c,{passive:!0}),window.addEventListener("wheel",c,{passive:!0}),window.addEventListener("keydown",e=>{["ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Space"].includes(e.code)&&c()});let l=e=>{if(!a)return;let u=Math.min((e-i)/t,1);window.scrollTo(0,s+u*(2-u)*o),u<1?n=requestAnimationFrame(l):(c(),r&&r())};n=requestAnimationFrame(l)},o=(e,t)=>{var r,o,i,a;let c=n(e),l=(null!==(i=null===(r=document.querySelector(".page-top-header"))||void 0===r?void 0:r.offsetHeight)&&void 0!==i?i:0)+(null!==(a=null===(o=document.querySelector(".inpage-nav"))||void 0===o?void 0:o.offsetHeight)&&void 0!==a?a:0)+22;if(c-l<document.documentElement.scrollTop&&(l+=40),!(window.innerWidth<=768)){window.scrollTo({top:c-l,behavior:"smooth"}),t&&t();return}let u=Math.abs(c-window.pageYOffset),m=200;u>7e3?m=3e3:u>5e3?m=2500:u>3e3?m=2e3:u>1e3?m=1500:u>500?m=800:u>200&&(m=600),s(c-l,m,t)},i=function(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(s){o(e,r);return}let i=n(e)-t,a=()=>{window.pageYOffset===i&&(window.removeEventListener("scroll",a),r&&r())};window.addEventListener("scroll",a),e&&window.scrollTo({top:i,behavior:"smooth"})}},35007:function(e,t,r){"use strict";r.d(t,{F3:function(){return s},Hj:function(){return o},Pr:function(){return n}});let n=e=>Array.from(Array(e).keys()),s=(e,t)=>{if(t<1)return[];let r=Math.floor(e.length/t),n=[];for(let s=0;s<r;s++)n.push(e.slice(s*t,s*t+t));return e.length>r*t&&n.push(e.slice(r*t)),n},o=(e,t)=>JSON.stringify(e)===JSON.stringify(t)},35799:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(44115);let s=(e,t)=>{let r=[];for(let n of e.split(" ")){let e=null==t?void 0:t[n];e?r.push(e):r.push(n)}return r.join(" ")},o=e=>{let t=r=>{if("string"==typeof r)return s(r,e);if(Array.isArray(r))return r.map(t).filter(Boolean).join(" ");if("object"==typeof r&&null!==r){let t=[];for(let n in r)if(r[n]){let r=s(n,e);t.push(r)}return t.join(" ")}throw Error("Invalid type for className; expected string, array, or object.")};return function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];let o=[],i=r.filter(Boolean);return i.length>0&&(Array.isArray(i)?o.push(...i.map(t).flat()):o.push(t(i))),(0,n.Z)(...o)}}},70108:function(e,t,r){"use strict";r.d(t,{n:function(){return s}});var n=r(61121);let s=e=>{if(!e||!e.startsWith("#"))return null;try{let t=e.search(/[?&=\s]/);if(-1!==t)return e.substring(0,t);return e}catch(e){return(0,n.O)(e),null}}},46245:function(e,t,r){"use strict";r.d(t,{ab:function(){return i},kI:function(){return a},x6:function(){return o}});let n=(e,t,r,n)=>(e/=n/2)<1?r/2*e*e+t:-r/2*((e-=1)*(e-2)-1)+t,s=(e,t,r)=>{let s=e.scrollTop,o=t-s,i=0,a=()=>{let t=n(i+=20,s,o,r);e.scrollTop=t,i<r&&setTimeout(a,20)};a()},o=e=>{let t=(null!=e?e:document).querySelector('[aria-invalid="true"]');t&&i(t)},i=e=>{let t=document.body.getBoundingClientRect().top,r=e.getBoundingClientRect().top;window.scrollTo({top:r-t-120,behavior:"smooth"}),e.focus({preventScroll:!0})},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(r){try{s(r,e.offsetTop-t,600)}catch(e){console.error("scrollToElement error")}return}let n=e.offsetTop;n&&window.scrollTo({top:n-t,behavior:"smooth"})}},72748:function(e,t,r){"use strict";r.d(t,{h:function(){return c}});var n=r(81587),s=r(8739);let o={post:{validate:{endpoint:"/validate-company-id"}}},i=e=>e&&e.data&&"object"==typeof e.data&&(Object.prototype.hasOwnProperty.call(e.data,"companyName")||Object.prototype.hasOwnProperty.call(e.data,"cId")),a=async e=>{try{return await n.l.client.post(o.post.validate.endpoint,{companyId:e})}catch(e){return}},c=async(e,t)=>{let r=await a(e);return r&&void 0!==r.data?i(r)?{state:{message:t.raw("cid_remote_validation_success"),state:s.d.success},hint:{companyName:r.data.companyName||"",street:r.data.street||"",city:r.data.city||"",zip:r.data.zip||"",vatId:"boolean"==typeof r.data.vatId||null===r.data.vatId?"":r.data.vatId||"",cId:"boolean"==typeof r.data.cId||null===r.data.cId?"":r.data.cId||"",vatParagraph:r.data.vatParagraph||"",placeOfPerformance:r.data.placeOfPerformance||null,type:"cId"}}:{state:{message:t.raw("cid_remote_validation_fail"),state:s.d.danger},hint:void 0}:{state:void 0,hint:void 0}}},29128:function(e,t,r){"use strict";r.d(t,{u:function(){return c}});var n=r(81587),s=r(8739);let o={post:{validate:{endpoint:"/validate-vat-id"}}},i=e=>e&&e.data&&"object"==typeof e.data&&!0===e.data.isValid,a=async(e,t)=>{try{return await n.l.client.post(o.post.validate.endpoint,{vatId:e,companyId:t})}catch(e){return}},c=async(e,t,r)=>{let n=await a(e,t);return n&&void 0!==n.data?i(n)?{state:{message:r.raw("vat_id_remote_validation_success"),state:s.d.success},hint:{companyName:n.data.companyName||"",street:n.data.street||"",city:n.data.city||"",zip:n.data.zip||"",vatId:"boolean"==typeof n.data.vatId||null===n.data.vatId?"":n.data.vatId||"",cId:"boolean"==typeof n.data.cId||null===n.data.cId?"":n.data.cId||"",vatParagraph:n.data.vatParagraph||"",placeOfPerformance:n.data.placeOfPerformance||null,type:"vatId"}}:{state:{message:r.raw("vat_id_remote_validation_fail"),state:s.d.danger},hint:void 0}:{state:void 0,hint:void 0}}},80906:function(e){e.exports={honeypot:"HoneypotInput_honeypot__d5He2"}},44115:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=function e(t){var r,n,s="";if("string"==typeof t||"number"==typeof t)s+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(s&&(s+=" "),s+=n)}else for(n in t)t[n]&&(s&&(s+=" "),s+=n)}return s}(e))&&(n&&(n+=" "),n+=t);return n}}},function(e){e.O(0,[9181,6230,7460,8752,510,2610,9744,9278,1293,1424,1744],function(){return e(e.s=56016)}),_N_E=e.O()}]);

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.