PageSourceSearch

https://www.phosphorouschemicals.com/_next/static/chunks/9b0757d08…?dpl=dpl_A9V6e4myaZvEjg9wNzWxQHSXNrQQ

js phosphorouschemicals.com collected 2026-09-27 04:12:22 UTC 1,370,472 bytes, 422 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,830167,e=>{"use strict";var t=e.i(576905);e.s(["ArrowIcon",()=>t.default])},659544,e=>{"use strict";var t=e.i(843476);e.i(79951);var a=e.i(902936);function r(e){let{variant:r="signIn",children:l,className:i="",...n}=e,s=["signIn"===r?"btn-sign-in":"primary"===r?"btn btn-primary":"outlined"===r?"btn btn-outlined":"",i].filter(Boolean).join(" ").trim();if("href"in n&&"string"==typeof n.href){let{href:e,...r}=n;return(0,t.jsx)(a.Link,{href:e,className:s,...r,children:l})}let{type:o,...c}=n;return(0,t.jsx)("button",{type:o??"button",className:s,...c,children:l})}e.s(["Button",()=>r])},488143,(e,t,a)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:a,blurHeight:r,blurDataURL:l,objectFit:i}){let n=a?40*a:e,s=r?40*r:t,o=n&&s?`viewBox='0 0 ${n} ${s}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${o}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${o?"none":"contain"===i?"xMidYMid":"cover"===i?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${l}'/%3E%3C/svg%3E`}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},987690,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return n}};for(var l in r)Object.defineProperty(a,l,{enumerable:!0,get:r[l]});let i=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},908927,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"getImgProps",{enumerable:!0,get:function(){return c}}),e.r(233525);let r=e.r(543369),l=e.r(488143),i=e.r(987690),n=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:a=!1,priority:c=!1,preload:d=!1,loading:u,className:m,quality:h,width:p,height:g,fill:v=!1,style:x,overrideSrc:b,onLoad:f,onLoadingComplete:w,placeholder:y="empty",blurDataURL:j,fetchPriority:N,decoding:_="async",layout:k,objectFit:C,objectPosition:S,lazyBoundary:L,lazyRoot:I,...z},A){var q;let E,$,P,{imgConf:T,showAltText:M,blurComplete:O,defaultLoader:F}=A,R=T||i.imageConfigDefault;if("allSizes"in R)E=R;else{let e=[...R.deviceSizes,...R.imageSizes].sort((e,t)=>e-t),t=R.deviceSizes.sort((e,t)=>e-t),a=R.qualities?.sort((e,t)=>e-t);E={...R,allSizes:e,deviceSizes:t,qualities:a}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=z.loader||F;delete z.loader,delete z.srcSet;let D="__next_img_default"in B;if(D){if("custom"===E.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:a,...r}=t;return e(r)}}if(k){"fill"===k&&(v=!0);
2let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(x={...x,...e});let a={responsive:"100vw",fill:"100vw"}[k];a&&!t&&(t=a)}let H="",U=o(p),G=o(g);if((q=e)&&"object"==typeof q&&(s(q)||void 0!==q.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if($=t.blurWidth,P=t.blurHeight,j=j||t.blurDataURL,H=t.src,!v)if(U||G){if(U&&!G){let e=U/t.width;G=Math.round(t.height*e)}else if(!U&&G){let e=G/t.height;U=Math.round(t.width*e)}}else U=t.width,G=t.height}let W=!c&&!d&&("lazy"===u||void 0===u);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(a=!0,W=!1),E.unoptimized&&(a=!0),D&&!E.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(a=!0);let V=o(h),K=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:S}:{},M?{}:{color:"transparent"},x),Y=O||"empty"===y?null:"blur"===y?`url("data:image/svg+xml;charset=utf-8,${(0,l.getImageBlurSvg)({widthInt:U,heightInt:G,blurWidth:$,blurHeight:P,blurDataURL:j||"",objectFit:K.objectFit})}")`:`url("${y}")`,Q=n.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Z=Y?{backgroundSize:Q,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},X=function({config:e,src:t,unoptimized:a,width:l,quality:i,sizes:n,loader:s}){if(a){let e=(0,r.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")&&e){let a=t.includes("?")?"&":"?";t=`${t}${a}dpl=${e}`}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:c}=function({deviceSizes:e,allSizes:t},a,r){if(r){let a=/(^|\s)(1?\d?\d)vw/g,l=[];for(let e;e=a.exec(r);)l.push(parseInt(e[2]));if(l.length){let a=.01*Math.min(...l);return{widths:t.filter(t=>t>=e[0]*a),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof a?{widths:e,kind:"w"}:{widths:[...new Set([a,2*a].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,l,n),d=o.length-1;return{sizes:n||"w"!==c?n:"100vw",srcSet:o.map((a,r)=>`${s({config:e,src:t,quality:i,width:a})} ${"w"===c?a:r+1}${c}`).join(", "),src:s({config:e,src:t,quality:i,width:o[d]})}}({config:E,src:e,unoptimized:a,width:U,quality:V,sizes:t,loader:B}),J=W?"lazy":u;return{props:{...z,loading:J,fetchPriority:N,width:U,height:G,decoding:_,className:m,style:{...K,...Z},sizes:X.sizes,srcSet:X.srcSet,src:b||X.src},meta:{unoptimized:a,preload:d||c,placeholder:y,fill:v}}}},898879,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return s}});let r=e.r(271645),l="u"<typeof window,i=l?()=>{}:r.useLayoutEffect,n=l?()=>{}:r.useEffect;function s(e){let{headManager:t,reduceComponentsToState:a}=e;function s(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(a(e))}}return l&&(t?.mountedInstances?.add(e.children),s()),i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),n(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},325633,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return g},defaultHead:function(){return u}};for(var l in r)Object.defineProperty(a,l,{enumerable:!0,get:r[l]});let i=e.r(555682),n=e.r(190809),s=e.r(843476),o=n._(e.r(271645)),c=i._(e.r(898879)),d=e.r(742732);function u(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function m(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>
2"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(233525);let h=["name","httpEquiv","charSet","itemProp"];function p(e){let t,a,r,l;return e.reduce(m,[]).reverse().concat(u().reverse()).filter((t=new Set,a=new Set,r=new Set,l={},e=>{let i=!0,n=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){n=!0;let a=e.key.slice(e.key.indexOf("$")+1);t.has(a)?i=!1:t.add(a)}switch(e.type){case"title":case"base":a.has(e.type)?i=!1:a.add(e.type);break;case"meta":for(let t=0,a=h.length;t<a;t++){let a=h[t];if(e.props.hasOwnProperty(a))if("charSet"===a)r.has(a)?i=!1:r.add(a);else{let t=e.props[a],r=l[a]||new Set;("name"!==a||!n)&&r.has(t)?i=!1:(r.add(t),l[a]=r)}}}return i})).reverse().map((e,t)=>{let a=e.key||t;return o.default.cloneElement(e,{key:a})})}let g=function({children:e}){let t=(0,o.useContext)(d.HeadManagerContext);return(0,s.jsx)(c.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},918556,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let r=e.r(555682)._(e.r(271645)),l=e.r(987690),i=r.default.createContext(l.imageConfigDefault)},65856,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(555682)._(e.r(271645)).default.createContext(null)},670965,(e,t,a)=>{"use strict";function r(e,t){let a=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-a)<Math.abs(e-a)?t:e,0):a}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"findClosestQuality",{enumerable:!0,get:function(){return r}})},1948,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return n}});let r=e.r(670965),l=e.r(543369);function i({config:e,src:t,width:a,quality:i}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let n=(0,r.findClosestQuality)(i,e),s=(0,l.getDeploymentId)();return`${e.path}?url=${encodeURIComponent(t)}&w=${a}&q=${n}${t.startsWith("/")&&s?`&dpl=${s}`:""}`}i.__next_img_default=!0;let n=i},605500,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"Image",{enumerable:!0,get:function(){return w}});let r=e.r(555682),l=e.r(190809),i=e.r(843476),n=l._(e.r(271645)),s=r._(e.r(174080)),o=r._(e.r(325633)),c=e.r(908927),d=e.r(987690),u=e.r(918556);e.r(233525);let m=e.r(65856),h=r._(e.r(1948)),p=e.r(818581),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[60,65,70,75,90],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(e,t,a,r,l,i,n){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&l(!0),a?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,l=!1;a.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>l,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{l=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function x(e){return n.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b=(0,n.forwardRef)(({src:e,srcSet:t,sizes:a,height:r,width:l,decoding:s,className:o,style:c,fetchPriority:d,placeholder:u,loading:m,unoptimized:h,fill:g,onLoadRef:b,onLoadingCompleteRef:f,setBlurComplete:w,setShowAltText:y,sizesInput:j,onLoad:N,onError:_,...k},C)=>{let S=(0,n.useCallback)(e=>{e&&(_&&(e.src=e.src),e.complete&&v(e,u,b,f,w,h,j))},[e,u,b,f,w,_,h,j]),L=(0,p.useMergedRef)(C,S);return(0,i.jsx)("img",{...k,...x(d),loading:m,width:l,height:r,decoding:s,"data-nimg":g?"fill":"1",className:o,style:c,sizes:a,srcSet:t,src:e,ref:L,onLoad:e=>{v(e.currentTarget,u,b,f,w,h,j)},onError:e=>{y(!0),"empty"!==u&&w(!0),_&&_(e)}})});function f({isAppRouter:e,imgAttributes:t}){let a={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,a),null):(0,i.jsx)(o.default,{children:(0,i.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...a},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,n.forwardRef)((e,t)=>{let a=(0,n.useContext)(m.RouterContext),r=(0,n.useContext)(u.ImageConfigContext),l=(0,n.useMemo)(()=>{let e=g||r||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),a=e.deviceSizes.sort((e,t)=>e-t),l=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:a,qualities:l,localPatterns:"u"<typeof window?r?.localPatterns:e.localPatterns}},[r]),{onLoad:s,onLoadingComplete:o}=e,p=(0,n.useRef)(s);(0,n.useEffect)(()=>{p.current=s},[s]);let v=(0,n.useRef)(o);(0,n.useEffect)(()=>{v.current=o},[o]);let[x,w]=(0,n.useState)(!1),[y,j]=(0,n.useState)(!1),{props:N,meta:_}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:l,blurComplete:x,showAltText:y});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{...N,unoptimized:_.unoptimized,placeholder:_.placeholder,fill:_.fill,onLoadRef:p,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:j,sizesInput:e.sizes,ref:t}),_.preload?(0,i.jsx)(f,{isAppRouter:!a,imgAttributes:N}):null]})});("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},794909,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return d},getImageProps:function(){return c}};for(var l in r)Object.defineProperty(a,l,{enumerable:!0,get:r[l]});let i=e.r(555682),n=e.r(908927),s=e.r(605500),o=i._(e.r(1948));function c(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[60,65,70,75,90],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}}let d=s.Image},657688,(e,t,a)=>{t.exports=e.r(794909)},963982,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r({embedUrl:e,title:r,className:l="absolute inset-0 h-full w-full"}){let[i,n]=(0,a.useState)(!1),s=function(e){let t=e.trim();if(!t)return null;try{let e=new URL(t),a=e.hostname.toLowerCase();if("youtu.be"===a||a.endsWith(".youtu.be"))return e.pathname.replace(/^\/+/,"").split("/")[0]||null;if("youtube.com"!==a&&"www.youtube.com"!==a&&"m.youtube.com"!==a&&"youtube-nocookie.com"!==a&&"www.youtube-nocookie.com"!==a)return null;let r=e.searchParams.get("v")?.trim();if(r)return r;if(e.pathname.startsWith("/embed/"))return e.pathname.replace("/embed/","").split("/")[0]||null;if(e.pathname.startsWith("/shorts/"))return e.pathname.replace("/shorts/","").split("/")[0]||null;return null}catch{return null}}(e),o=(0,a.useCallback)(()=>{n(!0)},[]);if(i){let a,i=s?(a=new URLSearchParams({autoplay:"1",rel:"0",modestbranding:"1"}),`https://www.youtube-nocookie.com/embed/${s}?${a.toString()}`):e.includes("?")?`${e}&autoplay=1`:`${e}?autoplay=1`;return(0,t.jsx)("iframe",{className:l,src:i,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})}return s?(0,t.jsxs)("button",{type:"button",className:`${l} group cursor-pointer border-0 bg-black p-0`,onClick:o,"aria-label":r,children:[(0,t.jsx)("img",{src:`https://i.ytimg.com/vi/${s}/hqdefault.jpg`,alt:"",className:"absolute inset-0 h-full w-full object-cover",loading:"lazy",decoding:"async"}),(0,t.jsx)("span",{className:"pointer-events-none absolute inset-0 bg-black/25 transition-colors group-hover:bg-black/35 group-focus-visible:bg-black/35","aria-hidden":!0}),(0,t.jsx)("span",{className:"pointer-events-none absolute start-1/2 top-1/2 flex h-14 w-14 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#f03] shadow-lg transition-transform group-hover:scale-105 group-focus-visible:scale-105 md:h-16 md:w-16","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"ms-0.5 h-7 w-7 fill-white","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})]}):(0,t.jsx)("button",{type:"button",className:`${l} flex cursor-pointer items-center justify-center border-0 bg-neutral-900 p-4 text-center text-sm text-white`,onClick:o,"aria-label":r,children:r})}e.s(["LazyYouTubeEmbed",()=>r],963982)},716787,e=>{"use strict";e.i(659544),e.i(963982),e.s([])},960174,e=>{"use strict";var t=e.i(578938);function a(e){return window.addEventListener("storage",e),window.addEventListener(t.AUTH_SESSION_CHANGED_EVENT,e),()=>{window.removeEventListener("storage",e),window.removeEventListener(t.AUTH_SESSION_CHANGED_EVENT,e)}}function r(){return!!(0,t.getAuthToken)()}function l(){return!1}e.s(["getAuthSessionServerSnapshot",()=>l,"getAuthSessionSnapshot",()=>r,"subscribeAuthSession",()=>a])},902312,e=>{"use strict";var t=e.i(960174),a=e.i(271645);function r(){return(0,a.useSyncExternalStore)(t.subscribeAuthSession,t.getAuthSessionSnapshot,t.getAuthSessionServerSnapshot)}e.s(["useHasAuthSession",()=>r])},160741,e=>{"use strict";var t=e.i(22584);let a=new Set(["/login","/sign-in",t.routes.auth.login,t.routes.auth.register]);function r(e){try{let t=new URL(e,"http://local").pathname.replace(/\/$/,"")||"/";return a.has(t)}catch{let t=e.split("?")[0]?.replace(/\/$/,"")||"/";return a.has(t)}}e.s(["isAuthUtilityHref",()=>r])},614326,e=>{"use strict";var t=e.i(843476),a=e.i(956061),r=e.i(22584);e.i(527967);var l=e.i(811961),i=e.i(948148),n=e.i(271645),s=e.i(174080);e.s(["default",0,function({isOpen:e,onClose:o,returnPathAfterAuth:c}){let d=(0,i.useTranslations)();return((0,n.useEffect)(()=>
3{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),!e||"u"<typeof document)?null:(0,s.createPortal)((0,t.jsxs)("div",{className:"pointer-events-none fixed inset-0 z-[1200] flex items-center justify-center px-4 py-8 sm:px-8",children:[(0,t.jsx)("button",{type:"button",className:"pointer-events-auto absolute inset-0 cursor-default bg-black/45","aria-label":d("close_sign_in_modal"),onClick:o}),(0,t.jsxs)("div",{className:"pointer-events-auto relative z-[1200] w-full max-w-[700px] border border-[#e5e7e9] bg-[var(--brand-white)] p-9 shadow-[0_10px_40px_rgba(0,0,0,0.12)] sm:px-10 sm:py-10",role:"dialog","aria-modal":"true","aria-labelledby":"auth-modal-title",children:[(0,t.jsx)("button",{type:"button",className:"absolute right-4 top-4 p-1.5 text-[#9ca3af] transition-colors hover:bg-black/[0.04] hover:text-[var(--brand-neutral-text)] sm:right-5 sm:top-5","aria-label":d("close_sign_in_modal"),onClick:o,children:(0,t.jsx)(l.CloseCrossIcon,{className:"h-6 w-6","aria-hidden":!0})}),(0,t.jsx)(a.AuthSsoSplitSection,{variant:"compact",returnPathAfterAuth:c,title:d("welcome_back"),description:d("login_page_description"),providers:[{id:"google",label:d("sign_in_with_google")},{id:"microsoft",label:d("sign_in_with_microsoft")},{id:"apple",label:d("sign_in_with_apple")}],footerLines:[{prefix:d("dont_have_account"),links:[{label:d("sign_up_here"),href:r.routes.auth.register}]}]})]})]}),document.body)}],614326)},811961,e=>{"use strict";var t=e.i(896253);e.s(["CloseCrossIcon",()=>t.default])},956061,237407,707029,28987,44512,147872,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);e.i(527967);var l=e.i(944387);e.s(["AppleLogoIcon",()=>l.default],237407);var l=l,i=e.i(101535);e.s(["FacebookLogoIcon",()=>i.default],707029);var i=i,n=e.i(946140);e.s(["GoogleLogoIcon",()=>n.default],28987);var n=n,s=e.i(495598);e.s(["LinkedinLogoIcon",()=>s.default],44512);var s=s,o=e.i(790187);e.s(["MicroSoftLogoIcon",()=>o.default],147872);var o=o,c=e.i(659544),d=e.i(578938);function u({id:e}){let a="google"===e?n.default:"microsoft"===e?o.default:"apple"===e?l.default:"linkedin"===e?s.default:i.default;return(0,t.jsx)(a,{className:"h-5 w-5 md:h-6 md:w-6","aria-hidden":"true"})}function m(e,t){("google"===e||"apple"===e||"microsoft"===e)&&(0,d.initiateSocialLogin)(e,{returnPath:t?.trim()||(0,d.peekAuthReturnPath)()||void 0})}function h({footerLines:e}){return(0,t.jsx)(t.Fragment,{children:e.map(e=>(0,t.jsxs)("p",{className:" mt-7 text-[var(--auth-footer-color)] text-[length:var(--auth-footer-size-mobile)] leading-[var(--auth-footer-line-mobile)] font-[var(--auth-footer-weight)] md:text-[length:var(--auth-footer-size-desktop)] md:leading-[var(--auth-footer-line-desktop)] ",children:[e.prefix," ",e.links.map(e=>(0,t.jsxs)("span",{children:[(0,t.jsx)(r.Link,{href:e.href,className:"text-[var(--auth-footer-link-color)] underline underline-offset-2",children:e.label}),e.suffix?` ${e.suffix} `:null]},e.href))]},e.prefix))})}function p({title:e,description:r,providers:l,footerLines:i,returnPathAfterAuth:n,variant:s="split"}){return"compact"===s?(0,t.jsx)("section",{className:"auth-modal-sso w-full",children:(0,t.jsxs)("div",{className:"max-w-[100%] md:mx-auto flex w-full max-w-[80%] flex-col items-stretch",children:[(0,t.jsx)("h2",{id:"auth-modal-title",className:" text-center text-balance text-[var(--auth-modal-sso-title)] text-[length:var(--auth-modal-sso-title-size-mobile)] md:text-[length:var(--auth-modal-sso-title-size-desktop)] md:leading-[var(--auth-modal-sso-title-line-desktop)] font-[var(--auth-modal-sso-title-weight)] ",children:e}),(0,t.jsx)("p",{className:" md:mt-4 text-center text-[var(--auth-modal-sso-text)] text-[length:var(--auth-modal-sso-text-size)] leading-[var(--auth-modal-sso-text-line)] font-[var(--auth-text-weight)] ",children:r}),(0,t.jsx)("div",{className:"mt-7 flex w-full flex-col items-stretch gap-5",children:l.map(e=>(0,t.jsxs)(c.Button,{variant:"outlined",type:"button",className:"relative flex w-full items-center justify-center !shadow-none","data-provider":e.id,"aria-label":`${e.label} Button`,onClick:()=>m(e.id,n),children:[(0,t.jsx)("span",{className:"pointer-events-none absolute start-10 top-1/2 shrink-0 -translate-y-1/2",children:(0,t.jsx)(u,{id:e.id})}),(0,t.jsx)("span",{className:"block w-full text-center",children:e.label})]},e.id))}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(h,{footerLines:i})})]})}):(0,t.jsxs)("section",{className:"flex min-h-[var(--auth-min-h)] flex-col md:flex-row",children:[(0,t.jsx)("div",{className:"flex w-full items-center md:w-[var(--auth-left-w)]",children:(0,t.jsx)("div",{className:"w-full px-3 md:px-5",children:(0,t.jsxs)("div",{className:"w-full max-w-[540px] py-12 md:ms-auto md:me-[100px] md:py-20",children:[(0,t.jsx)("h1",{className:" text-[var(--auth-title-color)] text-start text-[length:var(--auth-title-size-mobile)] leading-[var(--auth-title-line-mobile)] font-[var(--auth-title-weight)] md:text-[length:var(--auth-title-size-desktop)] md:leading-[var(--auth-title-line-desktop)] ",children:e}),(0,t.jsx)("p",{className:" text-[var(--auth-text-color)] text-start text-[length:var(--auth-text-size-mobile)] leading-[var(--auth-text-line-mobile)] font-[var(--auth-text-weight)] md:text-[length:var(--auth-text-size-desktop)] md:leading-[var(--auth-text-line-desktop)] ",children:r}),(0,t.jsx)("div",{className:"mt-7 flex flex-col gap-5",children:l.map(e=>(0,t.jsxs)(c.Button,{variant:"outlined",type:"button",className:" relative flex w-full items-center justify-center !shadow-none ","data-provider":e.id,"aria-label":`${e.label} Button`,onClick:()=>m(e.id,n),children:[(0,t.jsx)("span",{className:"absolute start-[40px] top-1/2 -translate-y-1/2 shrink-0","aria-hidden":"true",children:(0,t.jsx)(u,{id:e.id})}),e.label]},e.id))}),(0,t.jsx)(h,{footerLines:i})]})})}),(0,t.jsx)("div",{className:"relative h-[500px] w-full overflow-hidden md:h-auto md:w-[calc(100%_-_var(--auth-left-w))]",children:(0,t.jsx)(a.default,{src:"/authentication/bg-authentication.webp",alt:"Authentication background",fill:!0,className:"object-cover object-center",sizes:"(min-width: 768px) 50vw, 100vw"})})]})}e.s(["AuthSsoSplitSection",()=>p],956061)},632423,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(79951);var r=e.i(902936),l=e.i(614326),i=e.i(578938);function n({href:e,children:n,className:s,openInNewTab:o=!0,returnPathAfterAuth:c}){let d=(0,r.useRouter)(),[u,m]=(0,a.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:s,onClick:()=>
3{if((0,i.getAuthToken)()?.trim()){if(!o)return void d.push(e);window.open(e,"_blank","noopener,noreferrer")}else m(!0)},children:n}),(0,t.jsx)(l.default,{isOpen:u,onClose:()=>m(!1),returnPathAfterAuth:c})]})}e.s(["AuthGatedDocLink",()=>n])},301630,e=>{"use strict";function t(e){let t=e;for(let e=0;e<3&&/%25[0-9A-Fa-f]{2}/i.test(t);e+=1)try{let e=decodeURIComponent(t);if(e===t)break;t=e}catch{break}return t}function a(e,r=""){if(!e)return r;let l=e.trim();if(!l)return r;let i=l.startsWith("http://")||l.startsWith("https://")||l.startsWith("/")?l:`https://cdn.chemtradeasia.com/${l.replace(/^\/+/,"")}`;if(i.startsWith("/"))try{let e=new URL(i,"http://localhost");return e.pathname=t(e.pathname),`${e.pathname}${e.search}${e.hash}`}catch{return encodeURI(i)}try{let e=new URL(i);if(!/^https?:$/.test(e.protocol))return r;return e.pathname=t(e.pathname),e.href}catch{return r}}e.s(["normalizeCmsImage",()=>a])},716571,e=>{"use strict";var t=e.i(399946);function a(e,a,r,l){return e.params.createElements&&Object.keys(l).forEach(i=>{if(!r[i]&&!0===r.auto){let n=(0,t.e)(e.el,`.${l[i]}`)[0];n||((n=(0,t.c)("div",l[i])).className=l[i],e.el.append(n)),r[i]=n,a[i]=n}}),r}e.s(["c",()=>a])},579053,e=>{"use strict";var t=e.i(716571),a=e.i(399946);let r='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function l({swiper:e,extendParams:l,on:i,emit:n}){function s(t){let a;return t&&"string"==typeof t&&e.isElement&&(a=e.el.querySelector(t)||e.hostEl.querySelector(t))?a:(t&&("string"==typeof t&&(a=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&a&&a.length>1&&1===e.el.querySelectorAll(t).length?a=e.el.querySelector(t):a&&1===a.length&&(a=a[0])),t&&!a)?t:a}function o(t,r){let l=e.params.navigation;(t=(0,a.m)(t)).forEach(t=>{t&&(t.classList[r?"add":"remove"](...l.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=r),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](l.lockClass))})}function c(){let{nextEl:t,prevEl:a}=e.navigation;if(e.params.loop){o(a,!1),o(t,!1);return}o(a,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function d(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function u(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function m(){let l=e.params.navigation;if(e.params.navigation=(0,t.c)(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(l.nextEl||l.prevEl))return;let i=s(l.nextEl),n=s(l.prevEl);Object.assign(e.navigation,{nextEl:i,prevEl:n}),i=(0,a.m)(i),n=(0,a.m)(n);let o=(t,i)=>{if(t){if(l.addIcons&&t.matches(".swiper-button-next,.swiper-button-prev")&&!t.querySelector("svg")){let e=document.createElement("div");(0,a.s)(e,r),t.appendChild(e.querySelector("svg")),e.remove()}t.addEventListener("click","next"===i?u:d)}!e.enabled&&t&&t.classList.add(...l.lockClass.split(" "))};i.forEach(e=>
3o(e,"next")),n.forEach(e=>o(e,"prev"))}function h(){let{nextEl:t,prevEl:r}=e.navigation;t=(0,a.m)(t),r=(0,a.m)(r);let l=(t,a)=>{t.removeEventListener("click","next"===a?u:d),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>l(e,"next")),r.forEach(e=>l(e,"prev"))}l({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:r},i("init",()=>{!1===e.params.navigation.enabled?p():(m(),c())}),i("toEdge fromEdge lock unlock",()=>{c()}),i("destroy",()=>{h()}),i("enable disable",()=>{let{nextEl:t,prevEl:r}=e.navigation;(t=(0,a.m)(t),r=(0,a.m)(r),e.enabled)?c():[...t,...r].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),i("click",(t,r)=>{let{nextEl:l,prevEl:i}=e.navigation;l=(0,a.m)(l),i=(0,a.m)(i);let s=r.target,o=i.includes(s)||l.includes(s);if(e.isElement&&!o){let e=r.path||r.composedPath&&r.composedPath();e&&(o=e.find(e=>l.includes(e)||i.includes(e)))}if(e.params.navigation.hideOnClick&&!o){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;l.length?t=l[0].classList.contains(e.params.navigation.hiddenClass):i.length&&(t=i[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?n("navigationShow"):n("navigationHide"),[...l,...i].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),c()},disable:p,update:c,init:m,destroy:h})}e.s(["Navigation",()=>l],579053)},622989,e=>{"use strict";function t(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}e.s(["c",()=>t])},186301,e=>{"use strict";var t=e.i(622989),a=e.i(716571),r=e.i(399946);function l({swiper:e,extendParams:l,on:i,emit:n}){let s,o="swiper-pagination";l({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),e.pagination={el:null,bullets:[]};let c=0;function d(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function u(t,a){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${"prev"===a?"previous":"next"}ElementSibling`])&&(t.classList.add(`${r}-${a}`),(t=t[`${"prev"===a?"previous":"next"}ElementSibling`])&&t.classList.add(`${r}-${a}-${a}`))}function m(a){let l=a.target.closest((0,t.c)(e.params.pagination.bulletClass));if(!l)return;a.preventDefault();let i=(0,r.j)(l)*e.params.slidesPerGroup;if(e.params.loop){var n,s,o;if(e.realIndex===i)return;let t=(n=e.realIndex,s=i,(n%=o=e.slides.length,(s%=o)===n+1)?"next":s===n-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(i)}else e.slideTo(i)}function h(){let a,l,i=e.rtl,o=e.params.pagination;if(d())return;let m=e.pagination.el;m=(0,r.m)(m);let h=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(h/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(l=e.previousRealIndex||0,a=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(a=e.snapIndex,l=e.previousSnapIndex):(l=e.previousIndex||0,a=e.activeIndex||0),"bullets"===o.type&&e.pagination.bullets&&e.pagination.bullets.length>0){let t,n,d,h=e.pagination.bullets;if(o.dynamicBullets&&(s=(0,r.i)(h[0],e.isHorizontal()?"width":"height",!0),m.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=`${s*(o.dynamicMainBullets+4)}px`}),o.dynamicMainBullets>1&&void 0!==l&&((c+=a-(l||0))>o.dynamicMainBullets-1?c=o.dynamicMainBullets-1:c<0&&(c=0)),d=((n=(t=Math.max(a-c,0))+(Math.min(h.length,o.dynamicMainBullets)-1))+t)/2),h.forEach(e
3=>{let t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${o.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),m.length>1)h.forEach(l=>{let i=(0,r.j)(l);i===a?l.classList.add(...o.bulletActiveClass.split(" ")):e.isElement&&l.setAttribute("part","bullet"),o.dynamicBullets&&(i>=t&&i<=n&&l.classList.add(...`${o.bulletActiveClass}-main`.split(" ")),i===t&&u(l,"prev"),i===n&&u(l,"next"))});else{let r=h[a];if(r&&r.classList.add(...o.bulletActiveClass.split(" ")),e.isElement&&h.forEach((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")}),o.dynamicBullets){let e=h[t],a=h[n];for(let e=t;e<=n;e+=1)h[e]&&h[e].classList.add(...`${o.bulletActiveClass}-main`.split(" "));u(e,"prev"),u(a,"next")}}if(o.dynamicBullets){let t=Math.min(h.length,o.dynamicMainBullets+4),a=(s*t-s)/2-d*s,r=i?"right":"left";h.forEach(t=>{t.style[e.isHorizontal()?r:"top"]=`${a}px`})}}m.forEach((l,i)=>{if("fraction"===o.type&&(l.querySelectorAll((0,t.c)(o.currentClass)).forEach(e=>{e.textContent=o.formatFractionCurrent(a+1)}),l.querySelectorAll((0,t.c)(o.totalClass)).forEach(e=>{e.textContent=o.formatFractionTotal(p)})),"progressbar"===o.type){let r;r=o.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";let i=(a+1)/p,n=1,s=1;"horizontal"===r?n=i:s=i,l.querySelectorAll((0,t.c)(o.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${s})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===o.type&&o.renderCustom?((0,r.s)(l,o.renderCustom(e,a+1,p)),0===i&&n("paginationRender",l)):(0===i&&n("paginationRender",l),n("paginationUpdate",l)),e.params.watchOverflow&&e.enabled&&l.classList[e.isLocked?"add":"remove"](o.lockClass)})}function p(){let a=e.params.pagination;if(d())return;let l=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,i=e.pagination.el;i=(0,r.m)(i);let s="";if("bullets"===a.type){let t=e.params.loop?Math.ceil(l/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&t>l&&(t=l);for(let r=0;r<t;r+=1)a.renderBullet?s+=a.renderBullet.call(e,r,a.bulletClass):s+=`<${a.bulletElement} ${e.isElement?'part="bullet"':""} class="${a.bulletClass}"></${a.bulletElement}>`}"fraction"===a.type&&(s=a.renderFraction?a.renderFraction.call(e,a.currentClass,a.totalClass):`<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`),"progressbar"===a.type&&(s=a.renderProgressbar?a.renderProgressbar.call(e,a.progressbarFillClass):`<span class="${a.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(l=>{"custom"!==a.type&&(0,r.s)(l,s||""),"bullets"===a.type&&e.pagination.bullets.push(...l.querySelectorAll((0,t.c)(a.bulletClass)))}),"custom"!==a.type&&n("paginationRender",i[0])}function g(){let t;e.params.pagination=(0,a.c)(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});let l=e.params.pagination;!l.el||("string"==typeof l.el&&e.isElement&&(t=e.el.querySelector(l.el)),t||"string"!=typeof l.el||(t=[...document.querySelectorAll(l.el)]),t||(t=l.el),t&&0!==t.length&&(e.params.uniqueNavElements&&"string"==typeof l.el&&Array.isArray(t)&&t.length>1&&(t=[...e.el.querySelectorAll(l.el)]).length>1&&(t=t.find(t=>(0,r.d)(t,".swiper")[0]===e.el)),Array.isArray(t)&&1===t.length&&(t=t[0]),Object.assign(e.pagination,{el:t}),(t=(0,r.m)(t)).forEach(t=>{"bullets"===l.type&&l.clickable&&t.classList.add(...(l.clickableClass||"").split(" ")),t.classList.add(l.modifierClass+l.type),t.classList.add(e.isHorizontal()?l.horizontalClass:l.verticalClass),"bullets"===l.type&&l.dynamicBullets&&(t.classList.add(`${l.modifierClass}${l.type}-dynamic`),c=0,l.dynamicMainBullets<1&&(l.dynamicMainBullets=1)),"progressbar"===l.type&&l.progressbarOpposite&&t.classList.add(l.progressbarOppositeClass),l.clickable&&t.addEventListener("click",m),e.enabled||t.classList.add(l.lockClass)})))}function v(){let t=e.params.pagination;if(d())return;let a=e.pagination.el;
3a&&(a=(0,r.m)(a)).forEach(a=>{a.classList.remove(t.hiddenClass),a.classList.remove(t.modifierClass+t.type),a.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(a.classList.remove(...(t.clickableClass||"").split(" ")),a.removeEventListener("click",m))}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:a}=e.pagination;(a=(0,r.m)(a)).forEach(a=>{a.classList.remove(t.horizontalClass,t.verticalClass),a.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),i("init",()=>{!1===e.params.pagination.enabled?x():(g(),p(),h())}),i("activeIndexChange",()=>{void 0===e.snapIndex&&h()}),i("snapIndexChange",()=>{h()}),i("snapGridLengthChange",()=>{p(),h()}),i("destroy",()=>{v()}),i("enable disable",()=>{let{el:t}=e.pagination;t&&(t=(0,r.m)(t)).forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))}),i("lock unlock",()=>{h()}),i("click",(t,a)=>{let l=a.target,i=(0,r.m)(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&i&&i.length>0&&!l.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&l===e.navigation.nextEl||e.navigation.prevEl&&l===e.navigation.prevEl))return;!0===i[0].classList.contains(e.params.pagination.hiddenClass)?n("paginationShow"):n("paginationHide"),i.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let x=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=(0,r.m)(t)).forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass)),v()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=(0,r.m)(t)).forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass)),g(),p(),h()},disable:x,render:p,update:h,init:g,destroy:v})}e.s(["Pagination",()=>l],186301)},134962,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);function l(e,t,a){return t<=0?-1:"next"===a?(e+1)%t:e<=0?t-1:e-1}function i({id:e,name:i,required:n,placeholder:s,className:o,maxLength:c,listClassName:d="banner-one-product-suggestions absolute start-0 top-full z-[var(--banner-one-suggestions-z)] mt-1 max-h-[var(--banner-one-suggestions-max-height)] w-full overflow-y-auto rounded-[8px] border-2 border-[var(--banner-one-input-border)] bg-[var(--banner-one-input-bg)] py-1 shadow-[var(--banner-one-suggestions-shadow)]",itemClassName:u="banner-one-product-suggestion block w-full px-[var(--banner-one-input-padding-x)] py-[var(--banner-one-suggestions-item-padding-y)] text-start text-[length:var(--banner-one-input-text-size)] leading-[var(--body-regular-line-height)] text-[var(--banner-one-link-color)] transition-colors hover:bg-[var(--banner-one-suggestions-item-hover-bg)] hover:text-[var(--banner-one-link-hover-color)]",activeItem
3ClassName:m="bg-[var(--banner-one-suggestions-item-hover-bg)] text-[var(--banner-one-link-hover-color)]",emptyClassName:h=u,defaultValue:p="",searchMode:g="header"}){let v=(0,r.useTranslations)(),x=(0,a.useId)(),b=(0,a.useRef)(null),f=(0,a.useRef)(null),w=(0,a.useRef)(null);w.current||(w.current=function(e=""){let t=0,a=!!e.trim(),r=e.trim()||null;return{beginRequest:()=>t+=1,canApply:e=>e===t,canOpen:e=>e===t&&!a,dismiss(e){t+=1,a=!0,void 0!==e&&(r=e.trim()||null)},edit(){t+=1,a=!1,r=null},reopen(){a=!1},reset(e){t+=1,a=!0,r=e.trim()||null},consumeSkippedQuery:e=>!!r&&r===e.trim()&&(r=null,!0)}}(p));let y=w.current,[j,N]=(0,a.useState)(p),[_,k]=(0,a.useState)([]),[C,S]=(0,a.useState)(!1),[L,I]=(0,a.useState)(!1),[z,A]=(0,a.useState)(!1),[q,E]=(0,a.useState)(-1);function $(e){y.dismiss(e.title),f.current&&(f.current.value=e.title),N(e.title),S(!1),I(!1),E(-1)}function P(){y.reopen(),j.trim().length>=3&&("catalog"===g?z:_.length>0)&&S(!0)}(0,a.useEffect)(()=>{let e=j.trim(),t="catalog"===g;if(y.consumeSkippedQuery(e)){S(!1),I(!1),E(-1);return}if(e.length<3){k([]),S(!1),I(!1),A(!1),E(-1);return}let a=new AbortController,r=y.beginRequest(),l=window.setTimeout(async()=>{I(!0);try{let l=t?e.trim().split(/\s+/).filter(Boolean)[0]??e.trim():e,i=await fetch(`/api/search?result_search=${encodeURIComponent(l)}&scope=${t?"page":"header"}`,{signal:a.signal}),n=i.ok?await i.json():null,s=n?.ok&&n.data?.products?.length?n.data.products:[],o=(t?s.filter(t=>(function(e,t){let a=t.trim().toLowerCase();if(!a)return!0;let r=[e.title,e.sku,e.cas_number,e.highlight].filter(Boolean).join(" ").toLowerCase();if(r.includes(a))return!0;let l=a.split(/\s+/).filter(Boolean),i=r.split(/[^a-z0-9]+/).filter(Boolean);return l.every(e=>i.some(t=>t.startsWith(e)))})(t,e)):s).slice(0,8);if(!y.canApply(r))return;k(o),A(!0),S(y.canOpen(r)&&(t||o.length>0)),E(-1)}catch{!a.signal.aborted&&y.canApply(r)&&(k([]),A(!0),S(t&&y.canOpen(r)))}finally{!a.signal.aborted&&y.canApply(r)&&I(!1)}},250);return()=>{a.abort(),window.clearTimeout(l)}},[j,y,g]),(0,a.useEffect)(()=>{y.reset(p),f.current&&(f.current.value=p),N(p),k([]),S(!1),I(!1),A(!1),E(-1)},[p,y]),(0,a.useEffect)(()=>{let e=f.current?.form;if(e)return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t);function t(){y.reset(p),f.current&&(f.current.value=p),N(p),k([]),S(!1),I(!1),A(!1),E(-1)}},[p,y]),(0,a.useEffect)(()=>{function e(e){let t=e.target;!t||b.current?.contains(t)||(y.dismiss(),S(!1),I(!1),E(-1))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[y]);let T=function({mode:e,isOpen:t,isLoading:a,hasSearched:r,query:l,suggestionCount:i}){return"header"===e?t&&i>0:t&&!a&&r&&l.trim().length>=3}({mode:g,isOpen:C,isLoading:L,hasSearched:z,query:j,suggestionCount:_.length});return(0,t.jsxs)("div",{ref:b,className:"relative",children:[(0,t.jsx)("input",{ref:f,type:"text",id:e,name:i,required:n,maxLength:c,placeholder:s,className:o,defaultValue:p,autoComplete:"off",role:"combobox","aria-expanded":T,"aria-controls":T?x:void 0,"aria-autocomplete":"list","aria-busy":L,onChange:e=>{y.edit(),"catalog"===g&&(S(!1),A(!1)),N(e.target.value)},onFocus:P,onClick:P,onKeyDown:function(e){if("Escape"===e.key&&C){y.dismiss(),S(!1),I(!1),E(-1);return}if(C&&0!==_.length){if("ArrowDown"===e.key){e.preventDefault(),E(e=>l(e,_.length,"next"));return}if("ArrowUp"===e.key){e.preventDefault(),E(e=>l(e,_.length,"previous"));return}"Enter"===e.key&&q>=0&&(e.preventDefault(),$(_[q]))}}}),T?(0,t.jsx)("ul",{id:x,role:"listbox","aria-label":v("search_suggestions"),className:d,children:0===_.length?(0,t.jsx)("li",{className:h,role:"status",children:v("no_products_found")}):_.map((e,a)=>(0,t.jsx)("li",{role:"presentation",children:(0,t.jsx)("button",{type:"button",role:"option","aria-selected":a===q,className:`${u} ${a===q?m:""}`,onMouseDown:e=>e.preventDefault(),onClick:()=>$(e),children:e.title})},`${e.id}-${a}`))}):null]})}e.s(["ProductNameAutocompleteInput",()=>i],134962)},808341,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return n},requestIdleCallback:function(){return i}};for(var l in r)Object.defineProperty(a,l,{enumerable:!0,get:r[l]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esMo
3dule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},479520,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={default:function(){return f},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return x}};for(var l in r)Object.defineProperty(a,l,{enumerable:!0,get:r[l]});let i=e.r(555682),n=e.r(190809),s=e.r(843476),o=i._(e.r(174080)),c=n._(e.r(271645)),d=e.r(742732),u=e.r(922737),m=e.r(808341),h=new Map,p=new Set,g=e=>{let{src:t,id:a,onLoad:r=()=>{},onReady:l=null,dangerouslySetInnerHTML:i,children:n="",strategy:s="afterInteractive",onError:c,stylesheets:d}=e,m=a||t;if(m&&p.has(m))return;if(h.has(t)){p.add(m),h.get(t).then(r,c);return}let g=()=>{l&&l(),p.add(m)},v=document.createElement("script"),x=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),r&&r.call(this,t),g()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(v.innerHTML=i.__html||"",g()):n?(v.textContent="string"==typeof n?n:Array.isArray(n)?n.join(""):"",g()):t&&(v.src=t,h.set(t,x)),(0,u.setAttributesFromProps)(v,e),"worker"===s&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",s),d&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=e,t.appendChild(a)})}})(d),document.body.appendChild(v)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>g(e))}):g(e)}function x(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function b(e){let{id:t,src:a="",onLoad:r=()=>{},onReady:l=null,strategy:i="afterInteractive",onError:n,stylesheets:u,...h}=e,{updateScripts:v,scripts:x,getIsSsr:b,appDir:f,nonce:w}=(0,c.useContext)(d.HeadManagerContext);w=h.nonce||w;let y=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||a;y.current||(l&&e&&p.has(e)&&l(),y.current=!0)},[l,t,a]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===i)g(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>g(e))}));j.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(v?(x[i]=(x[i]||[]).concat([{id:t,src:a,onLoad:r,onReady:l,onError:n,...h,nonce:w}]),v(x)):b&&b()?p.add(t||a):b&&!b()&&g({...e,nonce:w})),f){if(u&&u.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!a)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...h,id:t}])})`}});else return o.default.preload(a,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([a,{...h,id:t}])})`}});"afterInteractive"===i&&a&&o.default.preload(a,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let f=b;("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},3303,(e,t,a)=>{t.exports=e.r(479520)},647898,e=>{"use strict";function t(e){let t=(e??"en").trim().toLowerCase().split(/[_-]/)[0]||"en";return({zh:"zh-CN",tl:"fil"})[t]??t}function a(e){let a=encodeURIComponent(t(e));return`https://www.google.com/recaptcha/api.js?render=explicit&hl=${a}`}a("en");let r=new WeakMap;function l(){return window.grecaptcha}function i(e){let t=e?.querySelector(".g-recaptcha");if(t)return r.get(t)}function n(e,a,i){let n,s=!1,o=t(i?.hl),c=()=>{let t=l();if("function"!=typeof t?.render)return!1;let i=()=>
3{if(!(s||r.has(e)))try{let l=t.render(e,{sitekey:a,hl:o});"number"==typeof l&&r.set(e,l)}catch{}};return"function"==typeof t.ready?t.ready(i):i(),!0};return c()||(n=window.setInterval(()=>{c()&&null!=n&&(window.clearInterval(n),n=void 0)},50)),()=>{s=!0,null!=n&&window.clearInterval(n)}}function s(e){let t=l();if(!t?.reset)return;let a=i(e);if("number"!=typeof a)return;let r=()=>{try{t.reset?.(a)}catch{}};"function"==typeof t.ready?t.ready(r):r()}function o(e){if(!e)return"";let t=l(),a=i(e);if(t?.getResponse&&"number"==typeof a)try{let e=t.getResponse(a)?.trim()??"";if(e)return e}catch{}for(let t of e.querySelectorAll('textarea[name="g-recaptcha-response"]')){let e=t.value?.trim()??"";if(e)return e}for(let t of e.querySelectorAll('input[name="g-recaptcha-response"]')){let e=t.value?.trim()??"";if(e)return e}return""}function c(e,t){e.querySelectorAll('input[name="g-recaptcha-response"]').forEach(e=>e.remove());let a=e.querySelector('textarea[name="g-recaptcha-response"]');a||((a=document.createElement("textarea")).name="g-recaptcha-response",a.className="g-recaptcha-response",a.style.display="none",e.appendChild(a)),a.value=t}e.s(["bindExplicitRecaptcha",()=>n,"getRecaptchaResponse",()=>o,"recaptchaExplicitSrc",()=>a,"resetRecaptcha",()=>s,"syncRecaptchaResponseToForm",()=>c,"toRecaptchaHl",()=>t])},3305,e=>{"use strict";let t=/^\+\d{1,4}$/,a=/^\d+$/;function r(e){return"string"==typeof e?e.trim():""}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:null}function i(e){let t=l(e);if(!t)return null;let a=l(t.data)??t,i=l(a.customer)??a,n=r(i.mobile_number)||r(i.phone_number),s=r(i.profile_avatar)||r(i.picture)||r(i.avatar)||null;return r(i.first_name)||r(i.last_name)||r(i.email)||r(i.role)||r(i.company_name)||r(i.country)||n||r(i.dialing_code)||s?{id:"number"==typeof i.id?i.id:null,role:r(i.role)||null,first_name:r(i.first_name)||null,last_name:r(i.last_name)||null,email:r(i.email)||null,company_name:r(i.company_name)||null,country:r(i.country)||null,phone_number:n||null,dialing_code:r(i.dialing_code)||null,picture:s}:null}function n(e){let t=l(e);if(!t)return"";let a=l(t.data);if(a){let e=r(a.role);if(e)return e}let n=i(e);return n?.role?.trim()??""}function s(e,t){let a=t??{firstName:"",lastName:"",email:"",companyName:"",country:"",dialingCode:"",phoneNumber:"",avatarUrl:null};return{firstName:r(e?.first_name)||a.firstName,lastName:r(e?.last_name)||a.lastName,email:r(e?.email)||a.email,companyName:r(e?.company_name)||a.companyName,country:r(e?.country)||a.country,dialingCo
3de:r(e?.dialing_code)||a.dialingCode,mobileNumber:r(e?.phone_number)||a.phoneNumber}}function o(e){return{first_name:e.firstName.trim()||null,last_name:e.lastName.trim()||null,email:e.email.trim()||null,company_name:e.companyName.trim()||null,country:e.country.trim()||null,dialing_code:e.dialingCode.trim()||null,phone_number:e.mobileNumber.trim()||null}}function c(e,t){let a={};for(let[r,l]of[["first_name","firstName"],["last_name","lastName"],["company_name","companyName"],["country","country"],["phone_number","mobileNumber"],["dialing_code","dialingCode"]]){let i=e[l].trim();i!==t[l].trim()&&(a[r]=i)}return a}function d(e){let r={},l=e.dialingCode.trim(),i=e.mobileNumber.trim();return l&&!t.test(l)&&(r.dialingCode="Use a format like +65."),i&&!a.test(i)&&(r.mobileNumber="Mobile number must contain digits only."),r}function u(e){return Object.keys(e).length>0}e.s(["buildCustomerProfileUpdatePayload",()=>c,"customerRecordToFormFields",()=>s,"extractCustomerProfileRecord",()=>i,"formFieldsToCustomerRecord",()=>o,"hasProfileFieldErrors",()=>u,"resolveCustomerProfileRole",()=>n,"validateProfileFormFields",()=>d])},389616,e=>{"use strict";var t=e.i(3305),a=e.i(578938);function r(e){return{firstName:e.firstName.trim(),lastName:e.lastName.trim(),company:e.companyName.trim(),email:e.email.trim(),phone:function(e,t){let a=t.trim().replace(/[\s-()]/g,"");if(!a)return"";if(a.startsWith("+"))return a;let r=e.trim(),l=r.replace(/\D/g,"");if(l&&a.startsWith(l))return`+${a}`;if(r){let e=r.startsWith("+")?r:`+${l}`;return`${e}${a.replace(/^0+/,"")}`}return a}(e.dialingCode,e.mobileNumber),country:e.country.trim(),dialingCo
3de:e.dialingCode.trim()}}function l(){let e=(0,a.getAuthCustomerProfile)();return r((0,t.customerRecordToFormFields)(e?{first_name:e.first_name||null,last_name:e.last_name||null,email:e.email||null,company_name:e.company_name||null,country:e.country||null,dialing_code:e.dialing_code||null,phone_number:e.phone_number||null}:null,(0,a.getAuthProfileFormPrefill)()))}function i(e){let t=!0;return e.map(e=>{var a;let r;return"heading"===e.type&&"string"==typeof e.text&&(a=t,t=!(r=e.text.trim().toLowerCase()).includes("end customer")&&(!!r.includes("agent info")||a)),{field:e,allowPersonalPrefill:t}})}function n(e,t){switch(e){case"firstName":return t.firstName;case"lastName":return t.lastName;case"company":return t.company;case"email":return t.email;case"phone":return t.phone;case"country":return t.country}}function s(e){var t,a,r;let l,i,s;if(!1===e.allowPersonalPrefill)return"";let o=(t=e.name,a=e.id??"",r=e.label??"",l=t.trim().toLowerCase(),i=a.trim().toLowerCase(),s=r.trim().toLowerCase(),"first_name"===l||"first_name"===i||"first name"===s?"firstName":"last_name"===l||"last_name"===i||"last name"===s?"lastName":"company"===l||"company"===i||"company"===s||"company name"===s?"company":"email"===l||"email"===i||"email"===s||"business email"===s?"email":"phone"===l||"phone"===i||"mobile"===l||"mobile"===i||"phone"===s||"phone number"===s||"mobile"===s?"phone":"country"===l||"country"===i||"country"===s||s.includes("country list")||s.includes("country code")||"agent country"===s?"country":null);if(!o)return"";if(e.options?.length){if("country"===o)return function(e,t){let a=t.country.trim(),r=a.toLowerCase(),l=t.dialingCode.replace(/\D/g,"");if(a){let t=e.find(e=>e.value.trim().toLowerCase()===r||e.label.trim().toLowerCase()===r);if(t)return t.value;let a=e.find(e=>{let t=e.value.trim().toLowerCase(),a=e.label.trim().toLowerCase();return t===r||a===r||t.startsWith(`${r} (`)||a.startsWith(`${r} (`)||t.startsWith(`${r} `)||a.startsWith(`${r} `)});if(a)return a.value}if(l){let t=e.find(e=>{let t=`${e.value} ${e.label}`;return t.includes(`(+${l})`)||t.includes(`+${l}`)});if(t)return t.value}return""}(e.options,e.prefill);let t=n(o,e.prefill);if(!t)return"";let a=e.options.find(e=>e.value===t||e.label===t||e.value.toLowerCase()===t.toLowerCase()||e.label.toLowerCase()===t.toLowerCase());return a?.value??""}return n(o,e.prefill)}e.s(["EMPTY_CONTACT_FORM_PREFILL",0,{firstName:"",lastName:"",company:"",email:"",phone:"",country:"",dialingCode:""},"getContactFormPrefillFromAuth",()=>l,"profileFieldsToContactPrefill",()=>
3r,"resolveContactFieldPrefillValue",()=>s,"withPersonalPrefillGate",()=>i])},203286,e=>{"use strict";var t=e.i(271645),a=e.i(960174),r=e.i(389616);function l(){return(0,a.getAuthSessionSnapshot)()?(0,r.getContactFormPrefillFromAuth)().email:""}function i(){return""}function n(){let e=(0,t.useSyncExternalStore)(a.subscribeAuthSession,l,i),r=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=r.current;if(t){if(e){t.value&&t.value!==t.defaultValue||(t.value=e,t.defaultValue=e);return}t.value===t.defaultValue&&(t.value="",t.defaultValue="")}},[e]),{email:e,emailInputRef:r}}e.s(["useAuthEmailPrefill",()=>n])},235441,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r={years:[],selectedYear:null,setSelectedYear:()=>{}},l=(0,a.createContext)(null);function i({children:e}){let[r,i]=(0,a.useState)([]),[n,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=!1;return fetch("/api/trade/years").then(e=>e.ok?e.json():null).then(t=>{e||!t?.success||(i(Array.isArray(t.data?.years)?t.data.years:[]),"number"==typeof t.data?.latest_year&&s(e=>e??t.data.latest_year))}).catch(()=>{}),()=>{e=!0}},[]),(0,t.jsx)(l.Provider,{value:{years:r,selectedYear:n,setSelectedYear:s},children:e})}function n(){return(0,a.useContext)(l)??r}e.s(["MarketSpreadYearProvider",()=>i,"useMarketSpreadYear",()=>n])},419037,e=>{"use strict";var t=e.i(480511);e.s(["GlobeIcon",()=>t.default])},24014,420268,e=>{"use strict";var t=e.i(869140);function a(e){let a=e.trim().toLowerCase().split(/[-_]/)[0]??"";return t.UI_DICTIONARY_LOCALES.includes(a)?a:"en"}function r(e){let t=e?.trim()??"";if(t)return t;if("u"<typeof document)return"";let a=`; ${document.cookie}`.split("; cta_lang=");if(a.length<2)return"";let r=a.pop()?.split(";").shift()??"";if(!r.trim())return"";try{return decodeURIComponent(r.trim())}catch{return r.trim()}}function l(e){return r(e).length>0}async function i(e){let t,a;try{t=await fetch("/api/locale/apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({languageCode:e})})}catch{return{ok:!1,error:{messageKey:"could_not_verify_language"}}}try{a=await t.json()}catch{return{ok:!1,error:{messageKey:"invalid_response_from_server"}}}let r=a;return t.ok&&!0===r.ok?{ok:!0}:{ok:!1,error:{messageKey:"language_could_not_be_loaded"}}}async function n(e,t,r){let l=a(t),i=e&&"/"!==e?e:"/",n=new URL("/api/locale/resolve-path",window.location.origin);n.searchParams.set("locale",l),n.searchParams.set("pathname",i),r?.trim()&&n.searchParams.set("sourceLocale",a(r));try{let e=await fetch(n.toString(),{cache:"no-store"});if(!e.ok)throw Error("resolve path failed");let t=await e.json();if(t.ok&&"string"==typeof t.path&&t.path.trim())return t.path}catch{}return`/${l}${"/"===i?"":i}`}async function s(e,t){let a=e.trim();if(!a)return;let r=t?.currentCode?.trim();if(r&&a.toLowerCase()===r.toLowerCase())return void t?.onSame?.();let l=await i(a);l.ok?t?.onApplied?t.onApplied():window.location.reload():t?.onError?.(l.error)}e.s(["normalizeUiLocale",()=>a],420268),e.s(["hasSelectedLocale",()=>l,"resolveActiveLocaleCode",()=>r,"resolveLocalizedPathForLanguage",()=>n,"setPreferredLocaleAfterVerify",()=>s],24014)},387946,e=>{"use strict";var t=e.i(286571);e.s(["DocumentIcons",()=>t.default])},158760,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r=(0,a.createContext)(null);function l({tenantId:e,meta:a,children:l}){return(0,t.jsx)(r.Provider,{value:{tenantId:e,meta:a},children:l})}function i(){return(0,a.useContext)(r)}e.s(["StorefrontConfigProvider",()=>l,"useStorefrontConfig",()=>i])},402090,e=>{"use strict";var t=e.i(483431);e.s(["CopyLinkButtonIcon",()=>t.default])},190496,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(527967);var r=e.i(402090),l=e.i(948148);function i({className:e,url:i}){let n=(0,l.useTranslations)(),[s,o]=(0,a.useState)(!1);async function c(){let e=i?.trim()||window.location.href;try{await navigator.clipboard.writeText(e),o(!0),window.setTimeout(()=>o(!1),2e3)}catch{}}return(0,t.jsxs)("div",{className:"relative inline-flex",children:[(0,t.jsx)("button",{type:"button",className:e,onClick:()=>void c(),"aria-label":n(s?"link_copied":"copy_link"),title:n(s?"copied":"copy_link"),children:(0,t.jsx)(r.CopyLinkButtonIcon,{className:"h-5 w-5","aria-hidden":!0})}),s?(0,t.jsx)("span",{role:"status","aria-live":"polite",className:"pointer-events-none absolute start-1/2 top-[calc(100%+6px)] z-20 -translate-x-1/2 whitespace-nowrap rounded bg-[var(--brand-primary-deep)] px-2 py-1 text-[length:var(--body-caption-size)] leading-tight text-white shadow-md",children:n("copied")}):null]})}e.s(["CopyLinkIconButton",()=>i])},212090,e=>{"use strict";function t(...e){return e.filter(Boolean).join(" ")}function a(e){return t("w-fit px-[14px] py-[7px] text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] leading-none",e?"bg-[var(--brand-neutral-surface-5)] text-[var(--brand-neutral-text)]":"bg-[var(--brand-secondary)] text-[var(--brand-white)]")}e.s(["accountCardClass",0,"border border-[var(--brand-border-color-light)] bg-[var(--profile-page-card-bg)] p-[var(--section-padding-20)] shadow-[0_18px_45px_rgba(var(--brand-sha
3dow-rgb),0.08)] md:p-[var(--section-padding-30)]","accountCountClass",0,"w-fit bg-[var(--brand-neutral-surface-5)] px-[14px] py-[7px] text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] leading-none text-[var(--brand-primary-deep)]","accountErrorClass",0,"mt-[var(--gap-15)] border border-[#fecaca] bg-[#fef2f2] px-4 py-3 text-[length:var(--body-small-size)] text-[#b91c1c]","accountEyebrowClass",0,"m-0 mb-[var(--gap-8)] text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] uppercase tracking-[0.04em] text-[var(--brand-secondary)]","accountMutedClass",0,"mt-[var(--gap-10)] mb-0 text-[length:var(--body-regular-size)] leading-[var(--body-large-line-height)] text-[var(--brand-neutral-text)]","accountTitleClass",0,"m-0 text-[22px] font-[var(--font-weight-semibold)] leading-[1.35] text-[var(--brand-primary-deep)]","cx",()=>t,"statusPillClass",()=>a])},388578,e=>{"use strict";var t=e.i(578938),a=e.i(156255),r=e.i(3305);class l extends Error{status;constructor(e,t){super(e),this.status=t,this.name="CustomerProfileRequestError"}}async function i(e,r,i){let n=await fetch(e,{method:r,headers:function(e){let r=(0,t.getAuthToken)()?.trim();if(r){let t=r.trim();if(!t)throw Error("SSO access token is required.");return{Accept:"application/json",Authorization:`Bearer ${t}`,"X-CSRF-TOKEN":(0,a.communityCsrfTokenFromSsoBearer)(t),...{jsonBody:"PUT"===e}.jsonBody?{"Content-Type":"application/json"}:{}}}return{Accept:"application/json",..."PUT"===e?{"Content-Type":"application/json"}:{}}}(r),cache:"no-store",...i?{body:JSON.stringify(i)}:{}}),s=await n.json().catch(()=>({success:!1,message:"Unable to parse server response.",errors:[]}));if(401===n.status)throw console.error("[CUSTOMER] Unauthorized — SSO token missing or expired",{method:r,status:n.status}),new l("Your session has expired. Please sign in again.",401);if(!n.ok||!1===s.success)throw console.error("[CUSTOMER] Request failed",{method:r,status:n.status,statusCode:s.statusCode,message:s.message,errors:s.errors}),new l("GET"===r?"Unable to load your profile right now.":"Unable to save your profile. Please try again.",n.status);return s}let n=null;function s(){return n||(n=i("/api/customer/me","GET").finally(()=>{n=null})),n}function o(e){return i("/api/customer/me","PUT",e)}function c(){return i("/api/customer/leads","GET")}
3function d(){return i("/api/customer/shipments","GET")}function u(e){return i(`/api/customer/shipments/${encodeURIComponent(e)}`,"GET")}function m(e){return i(`/api/customer/shipments/${encodeURIComponent(e)}/routes`,"GET")}function h(e){return i(`/api/customer/shipments/${encodeURIComponent(e)}/tracking`,"GET")}function p(e){return"string"==typeof e&&e.trim()?e.trim():"Profile updated successfully."}async function g(){if(!(0,t.getAuthToken)()?.trim())return{ok:!1,role:"",record:null};try{let e=await s(),a=(0,r.resolveCustomerProfileRole)(e)||(0,r.resolveCustomerProfileRole)(e.data),l=(0,r.extractCustomerProfileRecord)(e)??(0,r.extractCustomerProfileRecord)(e.data),i={...l??{},...a?{role:a}:{}};if(!l&&!a)return{ok:!1,role:"",record:null};let n=(0,t.storedCustomerProfileFromRecord)(i);(0,t.storeAuthCustomerProfile)(n);let o=[n.first_name,n.last_name].filter(Boolean).join(" ").trim();return(0,t.storeAuthUserProfile)({name:o||"Account",email:n.email,...n.role?{role:n.role}:{}}),{ok:!0,role:n.role||a,record:l??i}}catch{return{ok:!1,role:"",record:null}}}e.s(["CustomerProfileRequestError",()=>l,"fetchCustomerLeadsClient",()=>c,"fetchCustomerProfileClient",()=>s,"fetchCustomerShipmentClient",()=>u,"fetchCustomerShipmentRoutesClient",()=>m,"fetchCustomerShipmentTrackingClient",()=>h,"fetchCustomerShipmentsClient",()=>d,"refreshCustomerSessionFromApi",()=>g,"resolveProfileSuccessMessage",()=>p,"updateCustomerProfileClient",()=>o],388578)},887300,e=>{"use strict";var t=e.i(860894);e.s(["ClearIcon",()=>t.default])},71527,e=>{"use strict";var t=e.i(448226);e.s(["SearchIconNew",()=>t.default])},45698,e=>{"use strict";var t=e.i(505356);e.s(["HamburgerIcon",()=>t.default])},337190,e=>{"use strict";var t=e.i(213112);e.s(["GlobeIconNew",()=>t.default])},715010,e=>{"use strict";function t(e){return e.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&nbsp;/gi," ").replace(/<script\b[\s\S]*?<\/script>/gi,"").replace(/<style\b[\s\S]*?<\/style>/gi,"").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}e.s(["stripHtml",()=>t],715010)},872225,e=>{"use strict";var t=e.i(503259);function a({swiper:e,extendParams:a,on:r,emit:l,params:i}){let n,s,o,c,d,u,m,h,p;e.autoplay={running:!1,paused:!1,timeLeft:0},a({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let g=i&&i.autoplay?i.autoplay.delay:3e3,v=i&&i.autoplay?i.autoplay.delay:3e3,x=new Date().getTime();function b(t){!e||e.destroyed||!e.wrapperEl||t.target!==e.wrapperEl||(e.wrapperEl.removeEventListener("transitionend",b),p||t.detail&&t.detail.bySwiperTouchMove||k())}let f=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?c=!0:c&&(v=o,c=!1);let t=e.autoplay.paused?o:x+v-new Date().getTime();e.autoplay.timeLeft=t,l("autoplayTimeLeft",t,t/g),s=requestAnimationFrame(()=>{f()})},w=()=>{let t=e.params.autoplay.delay,a=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex])return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(a)&&a>0&&(t=a),t},y=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(s),f();let a=t;void 0===a&&(g=a=w(),v=a),o=a;let r=e.params.speed,i=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(r,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,r,!0,!0),l("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(r,!0,!0),l("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,r,!0,!0),l("autoplay")),e.params.cssMode&&(x=new Date().getTime(),requestAnimationFrame(()=>{y()})))};return a>0?(clearTimeout(n),n=setTimeout(()=>{i()},a)):requestAnimationFrame(()=>{i()}),a},j=()=>{x=new Date().getTime(),e.autoplay.running=!0,y(),l("autoplayStart")},N=()=>{e.autoplay.running=!1,clearTimeout(n),cancelAnimationFrame(s),l("autoplayStop")},_=(t,a)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(n),t||(h=!0);let r=()=>{l("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):k()};(e.autoplay.paused=!0,a)?r():(o=(o||e.params.autoplay.delay)-(new Date().getTime()-x),e.
3isEnd&&o<0&&!e.params.loop||(o<0&&(o=0),r()))},k=()=>{e.isEnd&&o<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(x=new Date().getTime(),h?(h=!1,y(o)):y(),e.autoplay.paused=!1,l("autoplayResume"))},C=()=>{if(e.destroyed||!e.autoplay.running)return;let a=(0,t.g)();"hidden"===a.visibilityState&&(h=!0,_(!0)),"visible"===a.visibilityState&&k()},S=t=>{"mouse"!==t.pointerType||(h=!0,p=!0,e.animating||e.autoplay.paused||_(!0))},L=t=>{"mouse"===t.pointerType&&(p=!1,e.autoplay.paused&&k())};r("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",S),e.el.addEventListener("pointerleave",L)),(0,t.g)().addEventListener("visibilitychange",C),j())}),r("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",S),e.el.removeEventListener("pointerleave",L)),(0,t.g)().removeEventListener("visibilitychange",C),e.autoplay.running&&N()}),r("_freeModeStaticRelease",()=>{(u||h)&&k()}),r("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?N():_(!0,!0)}),r("beforeTransitionStart",(t,a,r)=>{!e.destroyed&&e.autoplay.running&&(r||!e.params.autoplay.disableOnInteraction?_(!0,!0):N())}),r("sliderFirstMove",()=>{if(!e.destroyed&&e.autoplay.running){if(e.params.autoplay.disableOnInteraction)return void N();d=!0,u=!1,h=!1,m=setTimeout(()=>{h=!0,u=!0,_(!0)},200)}}),r("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&d){if(clearTimeout(m),clearTimeout(n),e.params.autoplay.disableOnInteraction){u=!1,d=!1;return}u&&e.params.cssMode&&k(),u=!1,d=!1}}),r("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(o=w(),g=w())}),Object.assign(e.autoplay,{start:j,stop:N,pause:_,resume:k})}e.s(["Autoplay",()=>a],872225)},468894,e=>{"use strict";var t=e.i(935227);e.s(["CalenderIconNew",()=>t.default])},822492,780020,e=>{"use strict";let t=new Set(e.i(869140).UI_DICTIONARY_LOCALES);function a(e){let t=e.split("?")[0]?.split("#")[0]?.trim()??"";if(!t)return"/";try{return(t.startsWith("http")?new URL(t).pathname:t.startsWith("/")?t:`/${t}`).replace(/\/$/,"").toLowerCase()||"/"}catch{return(t.startsWith("/")?t:`/${t}`).replace(/\/$/,"").toLowerCase()||"/"}}function r(e){if(!e)return!1;let t=e.trim();return!!t&&"#"!==t&&!t.startsWith("javascript:")}function l(e){let t=e.trim();return t.startsWith("http://")||t.startsWith("https://")}function i(e,i){let n=null,s=0;return i.forEach((i,o)=>{let c=0===i.children.length;for(let d of function e(t,a){let i=[];for(let n of(a&&r(t.href)&&!l(t.href)&&i.push(t.href),t.children))i.push(...e(n,!0));for(let e of t.marketInsightPosts??[])r(e.url)&&!l(e.url)&&i.push(e.url);return i}(i,c)){let r=!function(e,r){if(l(r))return!1;let i=a(function(e){let a=e.split("?")[0]?.trim()||"",r=a.split("/").filter(Boolean);if(0===r.length)return"/";let l=r[0]?.toLowerCase();if(l&&t.has(l)){let e=r.slice(1).join("/");return e?`/${e}`:"/"}return a.startsWith("/")?a:`/${a}`}(e)),n=a(r);return"/"===n?"/"===i:i===n||i.startsWith(`${n}/`)}(e,d)?0:a(d).length;r>s&&(s=r,n=o)}}),n}function n(e){let t=e.trim();if(!t)return"";let a=new Date(t);if(Number.isNaN(a.getTime()))return t.replace("T"," ");let r=a.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"}),l=a.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"UTC"});return`${r} ${l}`}e.s(["findActiveCmsNavItemIndex",()=>i],822492),e.s(["formatMegaInsightDate",()=>n],780020)},101252,e=>{"use strict";function t(e){let t=[];for(let a of e)if(a.children?.length)for(let e of a.children)t.push({label:e.label,href:e.href});else t.push({label:a.label,href:a.href});return t}e.s(["flattenCategoryLinksFromNav",()=>t])},242405,e=>{"use strict";var t=e.i(271645);function a(e){let[a,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e),a=()=>r(t.matches);return a(),t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),a}e.s(["useMediaQuery",()=>a])},667585,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let r=e.r(132061);function l({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
3configurable:!0});return t}},309885,(e,t,a)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"encodeURIPath",{enumerable:!0,get:function(){return r}})},652157,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"PreloadChunks",{enumerable:!0,get:function(){return o}});let r=e.r(843476),l=e.r(174080),i=e.r(563599),n=e.r(309885),s=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let a=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;a.push(...e)}}if(0===a.length)return null;let o=(0,s.getDeploymentIdQueryOrEmptyString)();return(0,r.jsx)(r.Fragment,{children:a.map(e=>{let a=`${t.assetPrefix}/_next/${(0,n.encodeURIPath)(e)}${o}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:a,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,l.preload)(a,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return c}});let r=e.r(843476),l=e.r(271645),i=e.r(667585),n=e.r(652157);function s(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},a=(0,l.lazy)(()=>t.loader().then(s)),c=t.loading;function d(e){let s=c?(0,r.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,d=o?l.Suspense:l.Fragment,u=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(n.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(a,{...e})]}):(0,r.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(a,{...e})});return(0,r.jsx)(d,{...o?{fallback:s}:{},children:u})}return d.displayName="LoadableComponent",d}},770703,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return l}});let r=e.r(555682)._(e.r(869093));function l(e,t){let a={};"function"==typeof e&&(a.loader=e);let l={...a,...t};return(0,r.default)({...l,modules:l.loadableGenerated?.modules})}("function"==typeof a.default||"object"==typeof a.default&&null!==a.default)&&void 0===a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)},30700,e=>{"use strict";var t=e.i(757278);e.s(["RightIcon",()=>t.default])},329078,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303),l=e.i(861745),i=e.i(647898);function n({siteKey:e,eager:n=!1}){let s=(0,l.useLocale)(),o=(0,i.toRecaptchaHl)(s),c=e.trim(),d=(0,a.useRef)(null),u=(0,a.useRef)(null),[m,h]=(0,a.useState)(1),[p,g]=(0,a.useState)(n);return((0,a.useEffect)(()=>{if(n)return void g(!0);let e=d.current?.closest("form")??d.current;if(!e)return;let t=()=>g(!0);return e.addEventListener("focusin",t,{once:!0}),e.addEventListener("pointerdown",t,{once:!0}),()=>{e.removeEventListener("focusin",t),e.removeEventListener("pointerdown",t)}},[n]),(0,a.useEffect)(()=>{let e=()=>{h(Math.min(1,(d.current?.offsetWidth??304)/304))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(!p||!c)return;let e=u.current;if(e)return(0,i.bindExplicitRecaptcha)(e,c,{hl:o})},[p,c,o]),c)?(0,t.jsxs)(t.Fragment,{children:[p&&(0,t.jsx)(r.default,{id:`recaptcha-api-${o}`,src:(0,i.recaptchaExplicitSrc)(o),strategy:"afterInteractive"}),(0,t.jsx)("div",{ref:d,className:"w-full overflow-hidden",style:{height:`${78*m}px`},children:(0,t.jsx)("div",{ref:u,className:"g-recaptcha origin-top-left rtl:origin-top-right",style:{transform:`scale(${m})`}},o)})]}):null}e.s(["RecaptchaWidget",()=>n])},324377,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(527967);var l=e.i(830167);function i(e){let t=e.trim();if(!t)return null;let a=Number(t);return Number.isFinite(a)?a:null}function n({id:e,name:n,required:s,placeholder:o,ariaLabel:c,className:d}){let u=(0,r.useTranslations)(),m=(0,a.useRef)(null);function h(e){let t=Math.max(1,Math.floor(e));m.current&&(m.current.value=String(t))}return(0,a.useEffect)(()=>{let e=m.current?.form;if(e)return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t);function t(){m.current&&(m.current.value="")}},[]),(0,t.jsxs)("div",{className:"banner-one-qty-input relative min-w-0",children:[(0,t.jsx)("input",{ref:m,type:"text",inputMode:"numeric",pattern:"[0-9]*",id:e,name:n,required:s,placeholder:o,"aria-label":c,defaultValue:"",className:`banner-one-qty-field ${d}`,onChange:e=>{var t;!(""===(t=e.target.value)||/^\d+$/.test(t))&&m.current&&(m.current.value=t.replace(/\D/g,""))}}),(0,t.jsxs)("div",{className:"banner-one-qty-spinners absolute inset-y-0 end-[var(--banner-one-qty-spinner-inset-inline-end)] flex w-[var(--banner-one-qty-spinner-width)] flex-col justify-center gap-[var(--banner-one-qty-spinner-gap)]",children:[(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_increase"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){h((i(m.current?.value??"")??0)+1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] -rotate-90"})}),(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_decrease"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){let e=i(m.current?.value??"");null===e||e<=1||h(e-1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] rotate-90"})})]})]})}e.s(["QuantitySpinnerInput",()=>n])},679918,e=>{"use strict";var t=e.i(22584);let a={action:t.routes.searchResult.result,inputName:"result_search",industryHiddenName:"industry",placeholderKey:"header_search_placeholder"},r=[{href:t.routes.marketInsights.allInsights,label:"All Insights",subPanel:"all"},{href:t.routes.marketInsights.productSpecificInsights,label:"Product Specific Insights",subPanel:"product-specific"},{href:t.routes.marketInsights.trendsAndForecast,label:"Trends & Forecasts",subPanel:"trends"},{href:t.routes.marketInsights.tradeInsights,label:"Trade Insights",subPanel:"market-trends",showChevron:!0},{href:t.routes.marketInsights.pricingIndices,label:"Pricing Indices",subPanel:"pricing"},{href:t.routes.marketInsights.reportsAndIntelligence,label:"Reports and Intelligence",subPanel:"reports"},{href:t.routes.marketInsights.newsletter,label:"Newsletter",subPanel:"newsletter"}],l=[{href:t.routes.marketInsights.applicationsAndBuyers,label:"Applications and Buyers"},{href:t.routes.marketInsights.supplyChain,label:"Supply Chain"},{href:t.routes.marketInsights.regulatoryAndCompliance,label:"Regulatory and Compliance"}],i=[{href:t.routes.learningCenter.root,label:"Overview"},{href:t.routes.learningCenter.oleochemicals,label:"Industry Overview"},{href:t.routes.learningCenter.productBasedKnowledge,label:"Product-Based Knowledge"},{href:t.routes.learningCenter.allCaseStudies,label:"Case Studies"},{href:t.routes.learningCenter.glossary,label:"Glossary"}];e.s(["CAREER_HREF",0,"https://career.chemtradeasia.com/","COMMUNITY_HREF",0,"/community","COMPANY_LINKS",0,[{href:"/overview",label:"About Us",id:"overview"},{href:"/our-location",label:"Our Locations",id:"our-location"},{href:"/market-spread",label:"Market Spread",id:"market-spread"},{href:"/sustainability",label:"Sustainability",id:"sustainability"},{href:"/supplier",label:"Supplier",id:"supplier"}],"HEADER_ONE_POPULAR_SEARCH_TERMS",0,["Palm","Stearic Acid","Crude Glycerine","Oleo"],"HEADER_ONE_SEARCH",0,a,"LEARNING_LEFT_LINKS",0,i,"MARKET_LEFT_LINKS",0,r,"MARKET_TRENDS_LINKS",0,l,"PRODUCT_LEFT_LINKS",0,[{href:"/products",label:"All Products",megaKey:"all"},{href:"/categories",label:"By Categories",megaKey:"categories",showChevron:!0},{href:"/download-center",label:"Technical Library",megaKey:"library"}],"SIGN_IN_HREF",0,"/login"])},655564,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(948148),n=e.i(22584),s=e.i(902312),o=e.i(578938),
3c=e.i(679918);function d({onNavigate:e,variant:d="desktop",signInHref:u=c.SIGN_IN_HREF,signInLabel:m,buttonVariant:h="outlined"}){let p=(0,i.useTranslations)(),g=m??p("login"),v=(0,r.useRouter)(),x=(0,s.useHasAuthSession)(),[b,f]=(0,l.useState)(!1),[w,y]=(0,l.useState)(null),j=(0,l.useRef)(null),N=(0,l.useRef)(null),_=(0,l.useRef)(null),k=(0,l.useCallback)(()=>{let e=N.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerWidth,r=window.innerHeight,l=_.current,i=Math.min(320,Math.max(0,a-16)),n=Math.min(l?.offsetHeight||190,r-16),s=r-t.bottom,o=t.top,c="mobile"===d||s<n+8&&o>s,u=document.documentElement.dir,m="mobile"===d&&"rtl"===u,h="mobile"===d||"rtl"===u,p=m?0:h?t.left:t.right-i;!m&&p<8&&(p=8),p+i>a-8&&(p=Math.max(8,a-i-8));let g=c?t.top-n-8:t.bottom+8;g<8&&(g=8),g+n>r-8&&(g=Math.max(8,r-n-8)),y({left:p,top:g,width:"min(320px, calc(100vw - 16px))",visibility:"visible"})},[d]);(0,l.useLayoutEffect)(()=>{if(!b)return;let e=window.requestAnimationFrame(k),t=e=>{j.current?.contains(e.target)||f(!1)},a=e=>{"Escape"===e.key&&f(!1)},r=()=>k();return document.addEventListener("mousedown",t),document.addEventListener("keydown",a),window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),()=>{window.cancelAnimationFrame(e),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",a),window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}},[b,k]);let C=(0,l.useCallback)(()=>{y(null),f(e=>!e)},[]),S=(0,l.useCallback)(()=>{let t=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(o.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,o.clearAuthSession)(),f(!1),e?.(),(0,o.isAuthRequiredCommunityRoute)(t)||v.replace(n.routes.homePage)},[e,v]);if(!x)return(0,t.jsx)(a.Button,{variant:h,href:u,title:g,className:"mobile"===d?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:e,children:g});let L=(0,o.getAuthDisplayProfile)(),I=function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(L);return(0,t.jsxs)("div",{ref:j,className:"mobile"===d?"relative min-w-0 flex-1 flex justify-end":"relative",children:[(0,t.jsx)("button",{ref:N,type:"button",className:"h1s-account-trigger","aria-expanded":b,"aria-haspopup":"menu","aria-label":p("account_menu"),onClick:C,children:I}),b?(0,t.jsxs)("div",{ref:_,className:"h1s-auth-menu fixed z-[1400] max-h-[calc(100dvh_-_16px)] min-w-0 overflow-y-auto border border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] p-4",role:"menu",style:{left:w?.left??0,top:w?.top??0,width:w?.width,visibility:w?.visibility??"hidden"},children:[(0,t.jsx)("p",{className:"m-0 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--header-two-nav-text)]",children:L.name}),L.email?(0,t.jsx)("p",{className:"mt-1 mb-0 break-all text-sm font-[var(--header-two-font-weight-normal)] text-[var(--header-two-nav-text)] opacity-80",children:L.email}):null,(0,t.jsx)("hr",{className:"my-3 border-0 border-t border-[var(--header-two-main-border)]"}),(0,t.jsx)(r.Link,{href:n.routes.auth.profile,className:"block py-2 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)] no-underline hover:underline",role:"menuitem",onClick:()=>{f(!1),e?.()},children:p("my_profile")}),(0,t.jsx)("button",{type:"button",className:"w-full cursor-pointer border-0 bg-transparent p-0 py-2 text-start text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--brand-danger)] hover:underline",role:"menuitem",onClick:S,children:p("sign_out")})]}):null]})}e.s(["HeaderNavAuth",()=>d])},77066,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(160741),l=e.i(655564);function i({actions:e,variant:i="desktop",onNavigate:n}){return e.length?(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>{let o=`${e.href}-${e.label}-${s}`;return(0,r.isAuthUtilityHref)(e.href)?(0,t.jsx)(l.HeaderNavAuth,{variant:i,onNavigate:n,signInHref:e.href,signInLabel:e.label,buttonVariant:e.type},o):(0,t.jsx)(a.Button,{variant:e.type,href:e.href,title:e.label,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"noopener noreferrer":void 0,className:"mobile"===i?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:n,children:e.label},o)})}):null}e.s(["HeaderUtilityActions",()=>i])},106446,e=>{"use strict";var t=e.i(22584);let a={action:t.routes.searchResult.result,inputName:"result_search",industryHiddenName:"industry",placeholderKey:"header_search_placeholder"},r=[{href:t.routes.marketInsights.allInsights,label:"All Insights",subPanel:"all"},{href:t.routes.marketInsights.productSpecificInsights,label:"Product Specific Insights",subPanel:"product-specific"},{href:t.routes.marketInsights.trendsAndForecast,label:"Trends & Forecasts",subPanel:"trends"},{href:t.routes.marketInsights.tradeInsights,label:"Trade Insights",subPanel:"market-trends",showChevron:!0},{href:t.routes.marketInsights.pricingIndices,label:"Pricing Indices",subPanel:"pricing"},{href:t.routes.marketInsights.reportsAndIntelligence,label:"Reports and Intelligence",subPanel:"reports"},{href:t.routes.marketInsights.newsletter,label:"Newsletter",subPanel:"newsletter"}],l=[{href:t.routes.marketInsights.applicationsAndBuyers,label:"Applications and Buyers"},{href:t.routes.marketInsights.supplyChain,label:"Supply Chain"},{href:t.routes.marketInsights.regulatoryAndCompliance,label:"Regulatory and Compliance"}],i=[{href:t.routes.learningCenter.root,label:"Overview"},{href:t.routes.learningCenter.oleochemicals,label:"Industry Overview"},{href:t.routes.learningCenter.productBasedKnowledge,label:"Product-Based Knowledge"},{href:t.routes.learningCenter.allCaseStudies,label:"Case Studies"},{href:t.routes.learningCenter.glossary,label:"Glossary"}];e.s(["CAREER_HREF",0,"https://career.chemtradeasia.com/","COMMUNITY_HREF",0,"/community","COMPANY_LINKS",0,[{href:"/overview",label:"About Us",id:"overview"},{href:"/our-location",label:"Our Locations",id:"our-location"},{href:"/market-spread",label:"Market Spread",id:"market-spread"},{href:"/sustainability",label:"Sustainability",id:"sustainability"},{href:"/supplier",label:"Supplier",id:"supplier"}],"HEADER_ONE_POPULAR_SEARCH_TERMS",0,["Palm","Stearic Acid","Crude Glycerine","Oleo"],"HEADER_ONE_SEARCH",0,a,"LEARNING_LEFT_LINKS",0,i,"MARKET_LEFT_LINKS",0,r,"MARKET_TRENDS_LINKS",0,l,"PRODUCT_LEFT_LINKS",0,[{href:"/products",label:"All Products",megaKey:"all"},{href:"/categories",label:"By Categories",megaKey:"categories",showChevron:!0},{href:"/download-center",label:"Technical Library",megaKey:"library"}],"SIGN_IN_HREF",0,"/login"])},250863,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(948148),n=e.i(22584),s=e.i(902312),o=e.i(578938),
3c=e.i(106446);function d({onNavigate:e,variant:d="desktop",signInHref:u=c.SIGN_IN_HREF,signInLabel:m,buttonVariant:h="outlined"}){let p=(0,i.useTranslations)(),g=m??p("login"),v=(0,r.useRouter)(),x=(0,s.useHasAuthSession)(),[b,f]=(0,l.useState)(!1),[w,y]=(0,l.useState)(null),j=(0,l.useRef)(null),N=(0,l.useRef)(null),_=(0,l.useRef)(null),k=(0,l.useCallback)(()=>{let e=N.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerWidth,r=window.innerHeight,l=_.current,i=Math.min(320,Math.max(0,a-16)),n=Math.min(l?.offsetHeight||190,r-16),s=r-t.bottom,o=t.top,c="mobile"===d||s<n+8&&o>s,u=document.documentElement.dir,m="mobile"===d&&"rtl"===u,h="mobile"===d||"rtl"===u,p=m?0:h?t.left:t.right-i;!m&&p<8&&(p=8),p+i>a-8&&(p=Math.max(8,a-i-8));let g=c?t.top-n-8:t.bottom+8;g<8&&(g=8),g+n>r-8&&(g=Math.max(8,r-n-8)),y({left:p,top:g,width:"min(320px, calc(100vw - 16px))",visibility:"visible"})},[d]);(0,l.useLayoutEffect)(()=>{if(!b)return;let e=window.requestAnimationFrame(k),t=e=>{j.current?.contains(e.target)||f(!1)},a=e=>{"Escape"===e.key&&f(!1)},r=()=>k();return document.addEventListener("mousedown",t),document.addEventListener("keydown",a),window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),()=>{window.cancelAnimationFrame(e),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",a),window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}},[b,k]);let C=(0,l.useCallback)(()=>{y(null),f(e=>!e)},[]),S=(0,l.useCallback)(()=>{let t=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(o.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,o.clearAuthSession)(),f(!1),e?.(),(0,o.isAuthRequiredCommunityRoute)(t)||v.replace(n.routes.homePage)},[e,v]);if(!x)return(0,t.jsx)(a.Button,{variant:h,href:u,title:g,className:"mobile"===d?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:e,children:g});let L=(0,o.getAuthDisplayProfile)(),I=function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(L);return(0,t.jsxs)("div",{ref:j,className:"mobile"===d?"relative min-w-0 flex-1 flex justify-end":"relative",children:[(0,t.jsx)("button",{ref:N,type:"button",className:" flex h-10 w-10 shrink-0 items-center justify-center rounded-full border-0 bg-[var(--header-two-top-deep-color)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-white shadow-sm outline-none ring-offset-2 transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-[var(--header-two-link-outline-border)] ","aria-expanded":b,"aria-haspopup":"menu","aria-label":p("account_menu"),onClick:C,children:I}),b?(0,t.jsxs)("div",{ref:_,className:"fixed z-[1400] max-h-[calc(100dvh_-_16px)] min-w-0 overflow-y-auto border border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] p-4 shadow-[0_8px_24px_rgba(0,0,0,0.12)]",role:"menu",style:{left:w?.left??0,top:w?.top??0,width:w?.width,visibility:w?.visibility??"hidden"},children:[(0,t.jsx)("p",{className:"m-0 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--header-two-nav-text)]",children:L.name}),L.email?(0,t.jsx)("p",{className:"mt-1 mb-0 break-all text-sm font-[var(--header-two-font-weight-normal)] text-[var(--header-two-nav-text)] opacity-80",children:L.email}):null,(0,t.jsx)("hr",{className:"my-3 border-0 border-t border-[var(--header-two-main-border)]"}),(0,t.jsx)(r.Link,{href:n.routes.auth.profile,className:"block py-2 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)] no-underline hover:underline",role:"menuitem",onClick:()=>{f(!1),e?.()},children:p("my_profile")}),(0,t.jsx)("button",{type:"button",className:"w-full cursor-pointer border-0 bg-transparent p-0 py-2 text-start text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-red-600 hover:underline",role:"menuitem",onClick:S,children:p("sign_out")})]}):null]})}e.s(["HeaderNavAuth",()=>d])},416808,e=>{"use strict";var t=e.i(843476);e.i(716787);
3var a=e.i(659544),r=e.i(160741),l=e.i(250863);function i({actions:e,variant:i="desktop",onNavigate:n}){return e.length?(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>{let o=`${e.href}-${e.label}-${s}`;return(0,r.isAuthUtilityHref)(e.href)?(0,t.jsx)(l.HeaderNavAuth,{variant:i,onNavigate:n,signInHref:e.href,signInLabel:e.label,buttonVariant:e.type},o):(0,t.jsx)(a.Button,{variant:e.type,href:e.href,title:e.label,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"noopener noreferrer":void 0,className:"mobile"===i?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:n,children:e.label},o)})}):null}e.s(["HeaderUtilityActions",()=>i])},37354,e=>{"use strict";var t=e.i(22584);let a={action:t.routes.searchResult.result,inputName:"result_search",industryHiddenName:"industry",placeholderKey:"header_search_placeholder"},r=[{href:t.routes.marketInsights.allInsights,label:"All Insights",subPanel:"all"},{href:t.routes.marketInsights.productSpecificInsights,label:"Product Specific Insights",subPanel:"product-specific"},{href:t.routes.marketInsights.trendsAndForecast,label:"Trends & Forecasts",subPanel:"trends"},{href:t.routes.marketInsights.tradeInsights,label:"Trade Insights",subPanel:"market-trends",showChevron:!0},{href:t.routes.marketInsights.pricingIndices,label:"Pricing Indices",subPanel:"pricing"},{href:t.routes.marketInsights.reportsAndIntelligence,label:"Reports and Intelligence",subPanel:"reports"},{href:t.routes.marketInsights.newsletter,label:"Newsletter",subPanel:"newsletter"}],l=[{href:t.routes.marketInsights.applicationsAndBuyers,label:"Applications and Buyers"},{href:t.routes.marketInsights.supplyChain,label:"Supply Chain"},{href:t.routes.marketInsights.regulatoryAndCompliance,label:"Regulatory and Compliance"}],i=[{href:t.routes.learningCenter.root,label:"Overview"},{href:t.routes.learningCenter.oleochemicals,label:"Industry Overview"},{href:t.routes.learningCenter.productBasedKnowledge,label:"Product-Based Knowledge"},{href:t.routes.learningCenter.allCaseStudies,label:"Case Studies"},{href:t.routes.learningCenter.glossary,label:"Glossary"}];e.s(["CAREER_HREF",0,"https://career.chemtradeasia.com/","COMMUNITY_HREF",0,"/community","COMPANY_LINKS",0,[{href:"/overview",label:"About Us",id:"overview"},{href:"/our-location",label:"Our Locations",id:"our-location"},{href:"/market-spread",label:"Market Spread",id:"market-spread"},{href:"/sustainability",label:"Sustainability",id:"sustainability"},{href:"/supplier",label:"Supplier",id:"supplier"}],"HEADER_ONE_POPULAR_SEARCH_TERMS",0,["Palm","Stearic Acid","Crude Glycerine","Oleo"],"HEADER_ONE_SEARCH",0,a,"LEARNING_LEFT_LINKS",0,i,"MARKET_LEFT_LINKS",0,r,"MARKET_TRENDS_LINKS",0,l,"PRODUCT_LEFT_LINKS",0,[{href:"/products",label:"All Products",megaKey:"all"},{href:"/categories",label:"By Categories",megaKey:"categories",showChevron:!0},{href:"/download-center",label:"Technical Library",megaKey:"library"}],"SIGN_IN_HREF",0,"/login"])},821212,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(948148),n=e.i(22584),s=e.i(902312),o=e.i(578938),c=e.i(37354);function d({onNavigate:e,variant:d="desktop",signInHref:u=c.SIGN_IN_HREF,signInLabel:m,buttonVariant:h="outlined"}){let p=(0,i.useTranslations)(),g=m??p("login"),v=(0,r.useRouter)(),x=(0,s.useHasAuthSession)(),[b,f]=(0,l.useState)(!1),[w,y]=(0,l.useState)(null),j=(0,l.useRef)(null),N=(0,l.useRef)(null),_=(0,l.useRef)(null),k=(0,l.useCallback)(()=>{let e=N.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerWidth,r=window.innerHeight,l=_.current,i=Math.min(320,Math.max(0,a-16)),n=Math.min(l?.offsetHeight||190,r-16),s=r-t.bottom,o=t.top,c="mobile"===d||s<n+8&&o>s,u=document.documentElement.dir,m="mobile"===d&&"rtl"===u,h="mobile"===d||"rtl"===u,p=m?0:h?t.left:t.right-i;!m&&p<8&&(p=8),p+i>a-8&&(p=Math.max(8,a-i-8));let g=c?t.top-n-8:t.bottom+8;g<8&&(g=8),g+n>r-8&&(g=Math.max(8,r-n-8)),y({left:p,top:g,width:"min(320px, calc(100vw - 16px))",visibility:"visible"})},[d]);(0,l.useLayoutEffect)(()=>{if(!b)return;let e=window.requestAnimationFrame(k),t=e=>{j.current?.contains(e.target)||f(!1)},a=e=>{"Escape"===e.key&&f(!1)},r=()=>k();return document.addEventListener("mousedown",t),document.addEventListener("keydown",a),window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),()=>{window.cancelAnimationFrame(e),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",a),window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}},[b,k]);let C=(0,l.useCallback)(()=>{y(null),f(e=>!e)},[]),S=(0,l.useCallback)(()=>{let t=window.location.pathname.split("?")[0]||"";
3try{window.sessionStorage.setItem(o.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,o.clearAuthSession)(),f(!1),e?.(),(0,o.isAuthRequiredCommunityRoute)(t)||v.replace(n.routes.homePage)},[e,v]);if(!x)return(0,t.jsx)(a.Button,{variant:h,href:u,title:g,className:"mobile"===d?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:e,children:g});let L=(0,o.getAuthDisplayProfile)(),I=function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(L);return(0,t.jsxs)("div",{ref:j,className:"mobile"===d?"relative min-w-0 flex-1 flex justify-end":"relative",children:[(0,t.jsx)("button",{ref:N,type:"button",className:"h1s-account-trigger","aria-expanded":b,"aria-haspopup":"menu","aria-label":p("account_menu"),onClick:C,children:I}),b?(0,t.jsxs)("div",{ref:_,className:"h1s-auth-menu fixed z-[1400] max-h-[calc(100dvh_-_16px)] min-w-0 overflow-y-auto border border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] p-4",role:"menu",style:{left:w?.left??0,top:w?.top??0,width:w?.width,visibility:w?.visibility??"hidden"},children:[(0,t.jsx)("p",{className:"m-0 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--header-two-nav-text)]",children:L.name}),L.email?(0,t.jsx)("p",{className:"mt-1 mb-0 break-all text-sm font-[var(--header-two-font-weight-normal)] text-[var(--header-two-nav-text)] opacity-80",children:L.email}):null,(0,t.jsx)("hr",{className:"my-3 border-0 border-t border-[var(--header-two-main-border)]"}),(0,t.jsx)(r.Link,{href:n.routes.auth.profile,className:"block py-2 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)] no-underline hover:underline",role:"menuitem",onClick:()=>{f(!1),e?.()},children:p("my_profile")}),(0,t.jsx)("button",{type:"button",className:"w-full cursor-pointer border-0 bg-transparent p-0 py-2 text-start text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--brand-danger)] hover:underline",role:"menuitem",onClick:S,children:p("sign_out")})]}):null]})}e.s(["HeaderNavAuth",()=>d])},56106,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(160741),l=e.i(821212);function i({actions:e,variant:i="desktop",onNavigate:n}){return e.length?(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>{let o=`${e.href}-${e.label}-${s}`;return(0,r.isAuthUtilityHref)(e.href)?(0,t.jsx)(l.HeaderNavAuth,{variant:i,onNavigate:n,signInHref:e.href,signInLabel:e.label,buttonVariant:e.type},o):(0,t.jsx)(a.Button,{variant:e.type,href:e.href,title:e.label,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"noopener noreferrer":void 0,className:"mobile"===i?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:n,children:e.label},o)})}):null}e.s(["HeaderUtilityActions",()=>i])},189015,e=>{"use strict";var t=e.i(22584);let a={action:t.routes.searchResult.result,inputName:"result_search",industryHiddenName:"industry",placeholderKey:"header_search_placeholder"},r=[{href:t.routes.marketInsights.allInsights,label:"All Insights",subPanel:"all"},{href:t.routes.marketInsights.productSpecificInsights,label:"Product Specific Insights",subPanel:"product-specific"},{href:t.routes.marketInsights.trendsAndForecast,label:"Trends & Forecasts",subPanel:"trends"},{href:t.routes.marketInsights.tradeInsights,label:"Trade Insights",subPanel:"market-trends",showChevron:!0},{href:t.routes.marketInsights.pricingIndices,label:"Pricing Indices",subPanel:"pricing"},{href:t.routes.marketInsights.reportsAndIntelligence,label:"Reports and Intelligence",subPanel:"reports"},{href:t.routes.marketInsights.newsletter,label:"Newsletter",subPanel:"newsletter"}],l=[{href:t.routes.marketInsights.applicationsAndBuyers,label:"Applications and Buyers"},{href:t.routes.marketInsights.supplyChain,label:"Supply Chain"},{href:t.routes.marketInsights.regulatoryAndCompliance,label:"Regulatory and Compliance"}],i=[{href:t.routes.learningCenter.root,label:"Overview"},{href:t.routes.learningCenter.oleochemicals,label:"Industry Overview"},{href:t.routes.learningCenter.productBasedKnowledge,label:"Product-Based Knowledge"},{href:t.routes.learningCenter.allCaseStudies,label:"Case Studies"},{href:t.routes.learningCenter.glossary,label:"Glossary"}];e.s(["CAREER_HREF",0,"https://career.chemtradeasia.com/","COMMUNITY_HREF",0,"/community","COMPANY_LINKS",0,[{href:"/overview",label:"About Us",id:"overview"},{href:"/our-location",label:"Our Locations",id:"our-location"},{href:"/market-spread",label:"Market Spread",id:"market-spread"},{href:"/sustainability",label:"Sustainability",id:"sustainability"},{href:"/supplier",label:"Supplier",id:"supplier"}],"HEADER_ONE_POPULAR_SEARCH_TERMS",0,["Palm","Stearic Acid","Crude Glycerine","Oleo"],"HEADER_ONE_SEARCH",0,a,"LEARNING_LEFT_LINKS",0,i,"MARKET_LEFT_LINKS",0,r,"MARKET_TRENDS_LINKS",0,l,"PRODUCT_LEFT_LINKS",0,[{href:"/products",label:"All Products",megaKey:"all"},{href:"/categories",label:"By Categories",megaKey:"categories",showChevron:!0},{href:"/download-center",label:"Technical Library",megaKey:"library"}],"SIGN_IN_HREF",0,"/login"])},716227,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(948148),n=e.i(22584),s=e.i(902312),o=e.i(578938),
3c=e.i(189015);function d({onNavigate:e,variant:d="desktop",signInHref:u=c.SIGN_IN_HREF,signInLabel:m,buttonVariant:h="outlined"}){let p=(0,i.useTranslations)(),g=m??p("login"),v=(0,r.useRouter)(),x=(0,s.useHasAuthSession)(),[b,f]=(0,l.useState)(!1),[w,y]=(0,l.useState)(null),j=(0,l.useRef)(null),N=(0,l.useRef)(null),_=(0,l.useRef)(null),k=(0,l.useCallback)(()=>{let e=N.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerWidth,r=window.innerHeight,l=_.current,i=Math.min(320,Math.max(0,a-16)),n=Math.min(l?.offsetHeight||190,r-16),s=r-t.bottom,o=t.top,c="mobile"===d||s<n+8&&o>s,u=document.documentElement.dir,m="mobile"===d&&"rtl"===u,h="mobile"===d||"rtl"===u,p=m?0:h?t.left:t.right-i;!m&&p<8&&(p=8),p+i>a-8&&(p=Math.max(8,a-i-8));let g=c?t.top-n-8:t.bottom+8;g<8&&(g=8),g+n>r-8&&(g=Math.max(8,r-n-8)),y({left:p,top:g,width:"min(320px, calc(100vw - 16px))",visibility:"visible"})},[d]);(0,l.useLayoutEffect)(()=>{if(!b)return;let e=window.requestAnimationFrame(k),t=e=>{j.current?.contains(e.target)||f(!1)},a=e=>{"Escape"===e.key&&f(!1)},r=()=>k();return document.addEventListener("mousedown",t),document.addEventListener("keydown",a),window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),()=>{window.cancelAnimationFrame(e),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",a),window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}},[b,k]);let C=(0,l.useCallback)(()=>{y(null),f(e=>!e)},[]),S=(0,l.useCallback)(()=>{let t=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(o.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,o.clearAuthSession)(),f(!1),e?.(),(0,o.isAuthRequiredCommunityRoute)(t)||v.replace(n.routes.homePage)},[e,v]);if(!x)return(0,t.jsx)(a.Button,{variant:h,href:u,title:g,className:"mobile"===d?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:e,children:g});let L=(0,o.getAuthDisplayProfile)(),I=function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(L);return(0,t.jsxs)("div",{ref:j,className:"mobile"===d?"relative min-w-0 flex-1 flex justify-end":"relative",children:[(0,t.jsx)("button",{ref:N,type:"button",className:" flex h-10 w-10 shrink-0 items-center justify-center rounded-full border-0 bg-[var(--header-two-top-deep-color)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-white shadow-sm outline-none ring-offset-2 transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-[var(--header-two-link-outline-border)] ","aria-expanded":b,"aria-haspopup":"menu","aria-label":p("account_menu"),onClick:C,children:I}),b?(0,t.jsxs)("div",{ref:_,className:"fixed z-[1400] max-h-[calc(100dvh_-_16px)] min-w-0 overflow-y-auto border border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] p-4 shadow-[0_8px_24px_rgba(0,0,0,0.12)]",role:"menu",style:{left:w?.left??0,top:w?.top??0,width:w?.width,visibility:w?.visibility??"hidden"},children:[(0,t.jsx)("p",{className:"m-0 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[color:var(--header-two-auth-menu-text-color,var(--header-two-auth-menu-text-color-on-light))]",children:L.name}),L.email?(0,t.jsx)("p",{className:"mt-1 mb-0 break-all text-sm font-[var(--header-two-font-weight-normal)] text-[color:var(--header-two-auth-menu-text-color,var(--header-two-auth-menu-text-color-on-light))] opacity-80",children:L.email}):null,(0,t.jsx)("hr",{className:"my-3 border-0 border-t border-[color:var(--brand-neutral-text-light)]"}),(0,t.jsx)(r.Link,{href:n.routes.auth.profile,className:"block py-2 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[color:var(--header-two-auth-menu-text-color,var(--header-two-auth-menu-text-color-on-light))] no-underline hover:underline",role:"menuitem",onClick:()=>{f(!1),e?.()},children:p("my_profile")}),(0,t.jsx)("button",{type:"button",className:"w-full cursor-pointer border-0 bg-transparent p-0 py-2 text-start text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-red-600 hover:underline",role:"menuitem",onClick:S,children:p("sign_out")})]}):null]})}e.s(["HeaderNavAuth",()=>d])},285216,e=>{"use strict";var t=e.i(843476);e.i(716787);
3var a=e.i(659544),r=e.i(160741),l=e.i(716227);function i({actions:e,variant:i="desktop",onNavigate:n}){return e.length?(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>{let o=`${e.href}-${e.label}-${s}`;return(0,r.isAuthUtilityHref)(e.href)?(0,t.jsx)(l.HeaderNavAuth,{variant:i,onNavigate:n,signInHref:e.href,signInLabel:e.label,buttonVariant:e.type},o):(0,t.jsx)(a.Button,{variant:e.type,href:e.href,title:e.label,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"noopener noreferrer":void 0,className:"mobile"===i?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:n,children:e.label},o)})}):null}e.s(["HeaderUtilityActions",()=>i])},475584,e=>{"use strict";e.i(285216),e.s([])},425923,e=>{"use strict";var t=e.i(578938),a=e.i(271645);let r={name:"Account",email:""},l=r;function i(e){return window.addEventListener("storage",e),window.addEventListener(t.AUTH_SESSION_CHANGED_EVENT,e),()=>{window.removeEventListener("storage",e),window.removeEventListener(t.AUTH_SESSION_CHANGED_EVENT,e)}}function n(){var e;let a=(0,t.getAuthDisplayProfile)();return(e=l,a.name===e.name&&a.email===e.email&&a.role===e.role&&a.pictureUrl===e.pictureUrl)?l:l=a}function s(){return r}function o(){return(0,a.useSyncExternalStore)(i,n,s)}e.s(["useAuthDisplayProfile",()=>o])},797100,e=>{"use strict";var t=e.i(22584);let a={action:t.routes.searchResult.result,inputName:"result_search",industryHiddenName:"industry",placeholderKey:"header_search_placeholder"},r=[{href:t.routes.marketInsights.allInsights,label:"All Insights",subPanel:"all"},{href:t.routes.marketInsights.productSpecificInsights,label:"Product Specific Insights",subPanel:"product-specific"},{href:t.routes.marketInsights.trendsAndForecast,label:"Trends & Forecasts",subPanel:"trends"},{href:t.routes.marketInsights.tradeInsights,label:"Trade Insights",subPanel:"market-trends",showChevron:!0},{href:t.routes.marketInsights.pricingIndices,label:"Pricing Indices",subPanel:"pricing"},{href:t.routes.marketInsights.reportsAndIntelligence,label:"Reports and Intelligence",subPanel:"reports"},{href:t.routes.marketInsights.newsletter,label:"Newsletter",subPanel:"newsletter"}],l=[{href:t.routes.marketInsights.applicationsAndBuyers,label:"Applications and Buyers"},{href:t.routes.marketInsights.supplyChain,label:"Supply Chain"},{href:t.routes.marketInsights.regulatoryAndCompliance,label:"Regulatory and Compliance"}],i=[{href:t.routes.learningCenter.root,label:"Overview"},{href:t.routes.learningCenter.oleochemicals,label:"Industry Overview"},{href:t.routes.learningCenter.productBasedKnowledge,label:"Product-Based Knowledge"},{href:t.routes.learningCenter.allCaseStudies,label:"Case Studies"},{href:t.routes.learningCenter.glossary,label:"Glossary"}];e.s(["CAREER_HREF",0,"https://career.chemtradeasia.com/","COMMUNITY_HREF",0,"/community","COMPANY_LINKS",0,[{href:"/overview",label:"About Us",id:"overview"},{href:"/our-location",label:"Our Locations",id:"our-location"},{href:"/market-spread",label:"Market Spread",id:"market-spread"},{href:"/sustainability",label:"Sustainability",id:"sustainability"},{href:"/supplier",label:"Supplier",id:"supplier"}],"HEADER_ONE_POPULAR_SEARCH_TERMS",0,["Palm","Stearic Acid","Crude Glycerine","Oleo"],"HEADER_ONE_SEARCH",0,a,"LEARNING_LEFT_LINKS",0,i,"MARKET_LEFT_LINKS",0,r,"MARKET_TRENDS_LINKS",0,l,"PRODUCT_LEFT_LINKS",0,[{href:"/products",label:"All Products",megaKey:"all"},{href:"/categories",label:"By Categories",megaKey:"categories",showChevron:!0},{href:"/download-center",label:"Technical Library",megaKey:"library"}],"SIGN_IN_HREF",0,"/login"])},624822,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(948148),n=e.i(22584),s=e.i(425923),o=e.i(902312),c=e.i(578938),d=e.i(797100);function u({onNavigate:e,variant:u="desktop",signInHref:m=d.SIGN_IN_HREF,signInLabel:h,buttonVariant:p="outlined"}){let g=(0,i.useTranslations)(),v=h??g("login"),x=(0,r.useRouter)(),b=(0,o.useHasAuthSession)(),f=(0,s.useAuthDisplayProfile)(),[w,y]=(0,l.useState)(!1),[j,N]=(0,l.useState)(null),_=(0,l.useRef)(null),k=(0,l.useRef)(null),C=(0,l.useRef)(null),S=(0,l.useCallback)(()=>{let e=k.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerWidth,r=window.innerHeight,l=C.current,i=Math.min(320,Math.max(0,a-16)),n=Math.min(l?.offsetHeight||190,r-16),s=r-t.bottom,o=t.top,c="mobile"===u||s<n+8&&o>s,d=document.documentElement.dir,m="mobile"===u&&"rtl"===d,h="mobile"===u||"rtl"===d,p=m?0:h?t.left:t.right-i;!m&&p<8&&(p=8),p+i>a-8&&(p=Math.max(8,a-i-8));let g=c?t.top-n-8:t.bottom+8;g<8&&(g=8),g+n>r-8&&(g=Math.max(8,r-n-8)),N({left:p,top:g,width:"min(320px, calc(100vw - 16px))",visibility:"visible"})},[u]);(0,l.useLayoutEffect)(()=>
3{if(!w)return;let e=window.requestAnimationFrame(S),t=e=>{_.current?.contains(e.target)||y(!1)},a=e=>{"Escape"===e.key&&y(!1)},r=()=>S();return document.addEventListener("mousedown",t),document.addEventListener("keydown",a),window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),()=>{window.cancelAnimationFrame(e),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",a),window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}},[w,S]);let L=(0,l.useCallback)(()=>{N(null),y(e=>!e)},[]),I=(0,l.useCallback)(()=>{let t=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(c.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,c.clearAuthSession)(),y(!1),e?.(),(0,c.isAuthRequiredCommunityRoute)(t)||x.replace(n.routes.homePage)},[e,x]);if(!b)return(0,t.jsx)(a.Button,{variant:p,href:m,title:v,className:"mobile"===u?"min-w-0 flex-1":"min-w-0",onClick:e,children:v});let z=function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(f),A=f.role?.trim()?(0,c.formatAuthRoleLabel)(f.role):"",q=f.pictureUrl?.trim()||null;return(0,t.jsxs)("div",{ref:_,className:"mobile"===u?"relative min-w-0 flex-1 flex justify-end":"relative",children:[(0,t.jsx)("button",{ref:k,type:"button",className:"h1s-account-trigger overflow-hidden",style:q?{backgroundImage:`url(${q})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,"aria-expanded":w,"aria-haspopup":"menu","aria-label":g("account_menu"),onClick:L,children:q?null:z}),w?(0,t.jsxs)("div",{ref:C,className:"h1s-auth-menu fixed z-[1400] max-h-[calc(100dvh_-_16px)] min-w-0 overflow-y-auto border border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] p-4",role:"menu",style:{left:j?.left??0,top:j?.top??0,width:j?.width,visibility:j?.visibility??"hidden"},children:[(0,t.jsx)("p",{className:"m-0 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--header-two-nav-text)]",children:f.name}),A?(0,t.jsx)("p",{className:"mt-1 mb-0 text-sm font-[var(--header-two-font-weight-normal)] capitalize text-[var(--header-two-nav-text)] opacity-80",children:A}):null,f.email?(0,t.jsx)("p",{className:"mt-1 mb-0 break-all text-sm font-[var(--header-two-font-weight-normal)] text-[var(--header-two-nav-text)] opacity-80",children:f.email}):null,(0,t.jsx)("hr",{className:"my-3 border-0 border-t border-[var(--header-two-main-border)]"}),(0,t.jsx)(r.Link,{href:n.routes.auth.profile,className:"block py-2 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)] no-underline hover:underline",role:"menuitem",onClick:()=>{y(!1),e?.()},children:g("my_profile")}),(0,t.jsx)("button",{type:"button",className:"w-full cursor-pointer border-0 bg-transparent p-0 py-2 text-start text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--brand-danger)] hover:underline",role:"menuitem",onClick:I,children:g("sign_out")})]}):null]})}e.s(["HeaderNavAuth",()=>u])},875120,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(160741),l=e.i(624822);function i({actions:e,variant:i="desktop",onNavigate:n}){return e.length?(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>{let o=`${e.href}-${e.label}-${s}`;return(0,r.isAuthUtilityHref)(e.href)?(0,t.jsx)(l.HeaderNavAuth,{variant:i,onNavigate:n,signInHref:e.href,signInLabel:e.label,buttonVariant:e.type},o):(0,t.jsx)(a.Button,{variant:e.type,href:e.href,title:e.label,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"noopener noreferrer":void 0,className:"mobile"===i?"min-w-0 flex-1":"min-w-0",onClick:n,children:e.label},o)})}):null}e.s(["HeaderUtilityActions",()=>i])},924455,e=>{"use strict";var t=e.i(22584);function a(e){return"string"==typeof e?e.trim():""}function r(e){var t;return t=e.category?.slug??e.categories?.[0]?.slug,t?.trim().toLowerCase()==="newsletter"}function l(e){for(let t of[e.url,e.post_url,e.slug]){let e=a(t);if(e){if(/^https?:\/\//i.test(e))return e;return e.startsWith("/")?e:`/${e}`}}return""}function i(e){return l({url:e,post_url:e,slug:e})}function n(e){let i=e.raw?.slug?.trim()||e.raw?.url_key?.trim()||function e(t){let a=t.trim();if(!a)return"";if(/^https?:\/\//i.test(a))try{return e(new URL(a).pathname)}catch{return""}let r=a.replace(/^\/+|\/+$/g,"");r=r.replace(/^[a-z]{2}(?:-[a-z]{2})?\//i,"");let l="market-insights/";r.toLowerCase().startsWith(l)&&(r=r.slice(l.length));
3let i=r.split("/").filter(Boolean);return i.length>0?i[i.length-1]??"":""}(e.url??"");var n={...e.raw,slug:i||void 0,url:e.url,postUrl:"string"==typeof e.raw?.post_url?e.raw.post_url:void 0};if(r(n))return a(n.document_url);let s=n.slug?.trim();return s?t.routes.marketInsights.post(s):l({url:n.url,post_url:n.postUrl,slug:n.slug})}e.s(["isNewsletterMarketInsightPost",()=>r,"normalizeMarketInsightPostHref",()=>i,"resolveSearchMarketInsightHref",()=>n])},572447,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303),l=e.i(861745),i=e.i(647898);function n({siteKey:e}){let n=(0,l.useLocale)(),s=(0,i.toRecaptchaHl)(n),o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(!1),[u,m]=(0,a.useState)(1),[h,p]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(d.current||h)return;let e=o.current;if(!e)return;let t=()=>{d.current||(d.current=!0,p(!0))};if("u"<typeof IntersectionObserver)return void t();let a=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(t(),a.disconnect())},{root:null,rootMargin:"200px 0px",threshold:0});return a.observe(e),()=>a.disconnect()},[h]),(0,a.useEffect)(()=>{let e=()=>{m(Math.min(1,(o.current?.offsetWidth??304)/304))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(!h)return;let t=c.current;if(t)return(0,i.bindExplicitRecaptcha)(t,e,{hl:s})},[h,e,s]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(r.default,{id:`recaptcha-api-${s}`,src:(0,i.recaptchaExplicitSrc)(s),strategy:"afterInteractive"}),(0,t.jsx)("div",{ref:o,className:"w-full overflow-hidden",style:{height:`${78*u}px`},children:(0,t.jsx)("div",{ref:c,className:"g-recaptcha origin-top-left rtl:origin-top-right",style:{transform:`scale(${u})`}},s)})]})}e.s(["RecaptchaWidget",()=>n])},956091,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303),l=e.i(861745),i=e.i(647898);function n({siteKey:e}){let n=(0,l.useLocale)(),s=(0,i.toRecaptchaHl)(n),o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(!1),[u,m]=(0,a.useState)(1),[h,p]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(d.current||h)return;let e=o.current;if(e)return function(e,t,a="u"<typeof IntersectionObserver?void 0:IntersectionObserver){if(!a)return t(),()=>void 0;let r=!1,l=new a(e=>{!r&&e.some(e=>e.isIntersecting)&&(r=!0,t(),l.disconnect())},{root:null,rootMargin:"200px 0px",threshold:0});return l.observe(e),()=>l.disconnect()}(e,()=>{d.current||(d.current=!0,p(!0))})},[h]),(0,a.useEffect)(()=>{let e=()=>{m(Math.min(1,(o.current?.offsetWidth??304)/304))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(!h)return;let t=c.current;if(t)return(0,i.bindExplicitRecaptcha)(t,e,{hl:s})},[h,e,s]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(r.default,{id:`recaptcha-api-${s}`,src:(0,i.recaptchaExplicitSrc)(s),strategy:"afterInteractive"}),(0,t.jsx)("div",{ref:o,className:"w-full overflow-hidden",style:{height:`${78*u}px`},children:(0,t.jsx)("div",{ref:c,className:"g-recaptcha origin-top-left rtl:origin-top-right",style:{transform:`scale(${u})`}},s)})]})}e.s(["RecaptchaWidget",()=>n],956091)},765232,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(468894),r=e.i(387946),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(271645);function s({image:e,label:s,title:o,categories:c=[],description:d,date:u,author:m,link:h,linkIsDocument:p=!1,isLoading:g=!1,readTime:v="1 min read",variant:x="default"}){let[b,f]=(0,n.useState)(e.trim()),w=b.trim(),y=(0,n.useMemo)(()=>m.trim(),[m]),j="search-result"===x,N=p?"a":i.Link;return g?(0,t.jsx)("article",{className:"overflow-hidden bg-[var(--blog-card-bg)] p-[var(--blog-card-shell-padding-mobile)] md:p-[var(--blog-card-shell-padding-desktop)] shadow-[var(--blog-card-shadow)]",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--blog-card-shell-content-gap)] md:grid-cols-2",children:[(0,t.jsx)("div",{className:"h-[var(--blog-card-skeleton-line-height)] w-[var(--blog-card-skeleton-line-w-sm)] rounded-[var(--blog-card-radius-sm)] bg-[var(--blog-card-skeleton-bg)]"}),(0,t.jsx)("div",{className:"h-[var(--blog-card-preview-height)] w-full animate-pulse bg-[var(--blog-card-skeleton-bg)]"})]})}):(0,t.jsxs)("article",{className:`group h-full p-[var(--blog-card-shell-padding-mobile)] md:p-[var(--blog-card-shell-padding-desktop)] transition-all duration-300 ease-out ${j?"bg-transparent border-b-2 border-[var(--brand-neutral-surface-3)] hover:bg-[var(--brand-neutral-surface-3)]":"bg-[var(--blog-card-bg)] hover:-translate-y-[var(--blog-card-hover-translate-y)] hover:shadow-[var(--blog-card-hover-shadow)] z-50 shadow-[var(--blog-card-shadow)]"}`,children:[(0,t.jsxs)(N,{href:h,target:p?"_blank":void 0,rel:p?"noopener noreferrer":void 0,className:"grid h-full grid-cols-12 gap-[var(--blog-card-shell-content-inner-gap-mobile)] md:gap-[var(--blog-card-shell-content-inner-gap-desktop)]",children:[(0,t.jsxs)("div",{className:`flex flex-col gap-[var(--blog-card-content-gap)] ${j?"col-span-12 md:col-span-9":"col-span-8 md:col-span-8"}
3`,children:[j?null:(0,t.jsx)("p",{className:"w-fit rounded-[var(--blog-card-pill-radius)] border border-[var(--blog-card-pill-border-color)] px-[var(--blog-card-pill-padding-x-mobile)] md:px-[var(--blog-card-pill-padding-x-desktop)] py-[var(--blog-card-pill-padding-y-mobile)] md:py-[var(--blog-card-pill-padding-y-desktop)] text-[length:var(--blog-card-pill-size-mobile)] md:text-[length:var(--blog-card-pill-size-desktop)] font-[var(--blog-card-pill-weight-mobile)] md:font-[var(--blog-card-pill-weight-desktop)] leading-[var(--blog-card-pill-line-height-mobile)] md:leading-[var(--blog-card-pill-line-height-desktop)] text-start text-[var(--blog-card-pill-color)]",children:s}),(0,t.jsx)("h3",{className:`line-clamp-2 text-start text-[length:var(--blog-card-title-size-mobile)] font-[var(--blog-card-title-weight)] leading-[var(--blog-card-title-line-height-mobile)] text-[var(--blog-card-title-color)] md:text-[length:var(--blog-card-title-size-desktop)] md:leading-[var(--blog-card-title-line-height-desktop)] ${j?"":"min-h-[var(--blog-card-title-min-height)]"}`,children:o}),c.length>0&&(0,t.jsx)("p",{className:"flex flex-wrap items-center gap-x-[var(--blog-card-categories-gap)] gap-y-[var(--gap-6)] text-[length:var(--blog-card-categories-size-mobile)] md:text-[length:var(--blog-card-categories-size-desktop)] font-[var(--blog-card-categories-weight-mobile)] md:font-[var(--blog-card-categories-weight-desktop)] leading-[var(--blog-card-categories-line-height-mobile)] md:leading-[var(--blog-card-categories-line-height-desktop)] text-start text-[var(--blog-card-categories-color)]",children:c.map((e,a)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-[var(--blog-card-categories-gap)]",children:[(0,t.jsx)("span",{className:"line-clamp-1",children:e}),a<c.length-1&&(0,t.jsx)("span",{className:"h-[var(--blog-card-dot-size)] w-[var(--blog-card-dot-size)] rounded-full bg-[var(--blog-card-dot-color)]"})]},`${e}-${a}`))}),(0,t.jsx)("p",{className:"line-clamp-3 text-start text-[length:var(--blog-card-description-size-mobile)] font-[var(--blog-card-description-weight)] leading-[var(--blog-card-description-line-height-mobile)] text-[var(--blog-card-description-color)] md:text-[length:var(--blog-card-description-size-desktop)] md:leading-[var(--blog-card-description-line-height-desktop)]",children:d}),(0,t.jsxs)("div",{className:"mt-auto flex items-center gap-[var(--blog-card-meta-gap)] text-[length:var(--blog-card-meta-size-mobile)] md:text-[length:var(--blog-card-meta-size-desktop)] font-[var(--blog-card-meta-weight-mobile)] md:font-[var(--blog-card-meta-weight-desktop)] leading-[var(--blog-card-meta-line-height-mobile)] md:leading-[var(--blog-card-meta-line-height-desktop)] text-[var(--blog-card-meta-color)]",children:[j?(0,t.jsx)(a.CalenderIconNew,{className:"w-5 h-5"}):(0,t.jsx)(r.DocumentIcons,{className:"w-5 h-5"}),(0,t.jsx)("span",{children:v})]})]}),(0,t.jsxs)("div",{className:`relative h-[var(--blog-card-image-height-mobile)] w-full overflow-hidden ${j?"md:h-[var(--blog-card-image-height-mobile)] col-span-12 md:col-span-3 mt-3 md:mt-0":"md:h-full col-span-4 md:col-span-4"}`,children:[w?(0,t.jsx)(l.default,{src:w,alt:o,fill:!0,className:"object-cover",onError:()=>f("")}):(0,t.jsx)("div",{className:"h-full w-full bg-[var(--our-top-products-one-card-border)]"}),(0,t.jsx)("span",{className:"absolute end-0 top-0 h-0 w-0 border-b-[var(--blog-card-fold-size)] border-s-[var(--blog-card-fold-size)] border-b-[var(--blog-card-fold-color)] border-s-transparent"})]})]}),(0,t.jsxs)("p",{className:"sr-only",children:[u," ",y]})]})}e.s(["BlogCard",()=>s])},915248,e=>{"use strict";var t=e.i(22584);let a={action:t.routes.searchResult.result,inputName:"result_search",industryHiddenName:"industry",placeholderKey:"header_search_placeholder"},r=[{href:t.routes.marketInsights.allInsights,label:"All Insights",subPanel:"all"},{href:t.routes.marketInsights.productSpecificInsights,label:"Product Specific Insights",subPanel:"product-specific"},{href:t.routes.marketInsights.trendsAndForecast,label:"Trends & Forecasts",subPanel:"trends"},{href:t.routes.marketInsights.tradeInsights,label:"Trade Insights",subPanel:"market-trends",showChevron:!0},{href:t.routes.marketInsights.pricingIndices,label:"Pricing Indices",subPanel:"pricing"},{href:t.routes.marketInsights.reportsAndIntelligence,label:"Reports and Intelligence",subPanel:"reports"},{href:t.routes.marketInsights.newsletter,label:"Newsletter",subPanel:"newsletter"}],l=[{href:t.routes.marketInsights.applicationsAndBuyers,label:"Applications and Buyers"},{href:t.routes.marketInsights.supplyChain,label:"Supply Chain"},{href:t.routes.marketInsights.regulatoryAndCompliance,label:"Regulatory and Compliance"}],i=[{href:t.routes.learningCenter.root,label:"Overview"},{href:t.routes.learningCenter.oleochemicals,label:"Industry Overview"},{href:t.routes.learningCenter.productBasedKnowledge,label:"Product-Based Knowledge"},{href:t.routes.learningCenter.allCaseStudies,label:"Case Studies"},{href:t.routes.learningCenter.glossary,label:"Glossary"}];e.s(["CAREER_HREF",0,"https://career.chemtradeasia.com/","COMMUNITY_HREF",0,"/community","COMPANY_LINKS",0,[{href:"/overview",label:"About Us",id:"overview"},{href:"/our-location",label:"Our Locations",id:"our-location"},{href:"/market-spread",label:"Market Spread",id:"market-spread"},{href:"/sustainability",label:"Sustainability",id:"sustainability"},{href:"/supplier",label:"Supplier",id:"supplier"}],"HEADER_ONE_POPULAR_SEARCH_TERMS",0,["Palm","Stearic Acid","Crude Glycerine","Oleo"],"HEADER_ONE_SEARCH",0,a,"LEARNING_LEFT_LINKS",0,i,"MARKET_LEFT_LINKS",0,r,"MARKET_TRENDS_LINKS",0,l,"PRODUCT_LEFT_LINKS",0,[{href:"/products",label:"All Products",megaKey:"all"},{href:"/categories",label:"By Categories",megaKey:"categories",showChevron:!0},{href:"/download-center",label:"Technical Library",megaKey:"library"}],"SIGN_IN_HREF",0,"/login"])},419096,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(948148),n=e.i(22584),s=e.i(902312),o=e.i(425923),c=e.i(578938),d=e.i(915248);function u({onNavigate:e,variant:u="desktop",signInHref:m=d.SIGN_IN_HREF,signInLabel:h,buttonVariant:p="outlined"}){let g=(0,i.useTranslations)(),v=h??g("login"),x=(0,r.useRouter)(),b=(0,s.useHasAuthSession)(),f=(0,o.useAuthDisplayProfile)(),[w,y]=(0,l.useState)(!1),[j,N]=(0,l.useState)(null),_=(0,l.useRef)(null),k=(0,l.useRef)(null),C=(0,l.useRef)(null),S=(0,l.useCallback)(()=>{let e=k.current;if(!e)return;let t=e.getBoundingClientRect(),a=window.innerWidth,r=window.innerHeight,l=C.current,i=Math.min(320,Math.max(0,a-16)),n=Math.min(l?.offsetHeight||190,r-16),s=r-t.bottom,o=t.top,c="mobile"===u||s<n+8&&o>s,d=document.documentElement.dir,m="mobile"===u&&"rtl"===d,h="mobile"===u||"rtl"===d,p=m?0:h?t.left:t.right-i;!m&&p<8&&(p=8),p+i>a-8&&(p=Math.max(8,a-i-8));let g=c?t.top-n-8:t.bottom+8;g<8&&(g=8),g+n>r-8&&(g=Math.max(8,r-n-8)),N({left:p,top:g,width:"min(320px, calc(100vw - 16px))",visibility:"visible"})},[u]);(0,l.useLayoutEffect)(()=>
3{if(!w)return;let e=window.requestAnimationFrame(S),t=e=>{_.current?.contains(e.target)||y(!1)},a=e=>{"Escape"===e.key&&y(!1)},r=()=>S();return document.addEventListener("mousedown",t),document.addEventListener("keydown",a),window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),()=>{window.cancelAnimationFrame(e),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",a),window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0)}},[w,S]);let L=(0,l.useCallback)(()=>{N(null),y(e=>!e)},[]),I=(0,l.useCallback)(()=>{let t=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(c.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,c.clearAuthSession)(),y(!1),e?.(),(0,c.isAuthRequiredCommunityRoute)(t)||x.replace(n.routes.homePage)},[e,x]);if(!b)return(0,t.jsx)(a.Button,{variant:p,href:m,title:v,className:"mobile"===u?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:e,children:v});let z=function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(f),A=f.role?.trim()?(0,c.formatAuthRoleLabel)(f.role):"",q=f.pictureUrl?.trim()||null;return(0,t.jsxs)("div",{ref:_,className:"mobile"===u?"relative min-w-0 flex-1 flex justify-end":"relative",children:[(0,t.jsx)("button",{ref:k,type:"button",className:" flex h-10 w-10 shrink-0 items-center justify-center overflow-hidden rounded-full border-0 bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-white shadow-sm outline-none ring-offset-2 transition hover:opacity-90 focus-visible:ring-2 focus-visible:ring-[var(--header-two-link-outline-border)] ",style:q?{backgroundImage:`url(${q})`}:void 0,"aria-expanded":w,"aria-haspopup":"menu","aria-label":g("account_menu"),onClick:L,children:q?null:z}),w?(0,t.jsxs)("div",{ref:C,className:"fixed z-[1400] max-h-[calc(100dvh_-_16px)] min-w-0 overflow-y-auto border border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] p-4 shadow-[0_8px_24px_rgba(0,0,0,0.12)]",role:"menu",style:{left:j?.left??0,top:j?.top??0,width:j?.width,visibility:j?.visibility??"hidden"},children:[(0,t.jsx)("p",{className:"m-0 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--header-two-nav-text)]",children:f.name}),A?(0,t.jsx)("p",{className:"mt-1 mb-0 text-sm font-[var(--header-two-font-weight-normal)] capitalize text-[var(--header-two-nav-text)] opacity-80",children:A}):null,f.email?(0,t.jsx)("p",{className:"mt-1 mb-0 break-all text-sm font-[var(--header-two-font-weight-normal)] text-[var(--header-two-nav-text)] opacity-80",children:f.email}):null,(0,t.jsx)("hr",{className:"my-3 border-0 border-t border-[var(--header-two-main-border)]"}),(0,t.jsx)(r.Link,{href:n.routes.auth.profile,className:"block py-2 text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)] no-underline hover:underline",role:"menuitem",onClick:()=>{y(!1),e?.()},children:g("my_profile")}),(0,t.jsx)("button",{type:"button",className:"w-full cursor-pointer border-0 bg-transparent p-0 py-2 text-start text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-red-600 hover:underline",role:"menuitem",onClick:I,children:g("sign_out")})]}):null]})}e.s(["HeaderNavAuth",()=>u])},495067,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(160741),l=e.i(419096);function i({actions:e,variant:i="desktop",onNavigate:n}){return e.length?(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>{let o=`${e.href}-${e.label}-${s}`;return(0,r.isAuthUtilityHref)(e.href)?(0,t.jsx)(l.HeaderNavAuth,{variant:i,onNavigate:n,signInHref:e.href,signInLabel:e.label,buttonVariant:e.type},o):(0,t.jsx)(a.Button,{variant:e.type,href:e.href,title:e.label,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"nofollow noopener noreferrer":void 0,className:"mobile"===i?"min-w-0 flex-1":"min-w-0 max-w-[150px]",onClick:n,children:e.label},o)})}):null}e.s(["HeaderUtilityActions",()=>i])},805820,e=>{"use strict";var t=e.i(934422);e.s(["ShareIcon",()=>t.default])},583239,e=>{"use strict";var t=e.i(184383);e.s(["WhatsappIcon",()=>t.default])},18369,e=>{"use strict";var t=e.i(72317);e.s(["UpArrowLongIcon",()=>t.default])},43857,e=>{"use strict";var t=e.i(552606);e.s(["DownArrowLongIcon",()=>t.default])},10451,809009,458123,e=>{"use strict";var t=e.i(136594);e.s(["CommentGrey",()=>t.default],10451);var a=e.i(619865);e.s(["UpIconGrey",()=>a.default],809009);var r=e.i(286180);e.s(["ViewGrey",()=>r.default],458123)},863975,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(830167);
3let l="inline-flex items-center gap-[var(--page-banner-cta-arrow-gap)]";function i({button:e}){let{text:i,link:n,variant:s,showArrow:o}=e,c="outlined"===s?"btn btn-outlined":"btn btn-primary",d=(0,t.jsxs)(t.Fragment,{children:[i,o?(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-2 shrink-0 rtl:rotate-180","aria-hidden":!0}):null]});return n?(0,t.jsx)(a.Button,{href:n,variant:s,className:l,children:d}):(0,t.jsx)("span",{className:`${c} ${l}`,children:d})}e.s(["PageBannerButton",()=>i])},173888,e=>{"use strict";let t={"united states":"US",usa:"US","u.s.a.":"US",china:"CN",germany:"DE",india:"IN",japan:"JP","republic of korea":"KR","rep. of korea":"KR",korea:"KR","south korea":"KR",singapore:"SG","saudi arabia":"SA",brazil:"BR",netherlands:"NL","united kingdom":"GB",uk:"GB",france:"FR",australia:"AU",russia:"RU",mexico:"MX",canada:"CA",turkey:"TR",türkiye:"TR","united arab emirates":"AE",uae:"AE",malaysia:"MY",thailand:"TH",indonesia:"ID",taiwan:"TW",belgium:"BE",poland:"PL",italy:"IT",spain:"ES",argentina:"AR",egypt:"EG","south africa":"ZA","viet nam":"VN",vietnam:"VN",pakistan:"PK",iran:"IR",ukraine:"UA",nigeria:"NG",bangladesh:"BD",kenya:"KE",qatar:"QA",kuwait:"KW",iraq:"IQ",oman:"OM",finland:"FI",sweden:"SE",norway:"NO",denmark:"DK",switzerland:"CH",austria:"AT","czech republic":"CZ",czechia:"CZ",romania:"RO",hungary:"HU",portugal:"PT",greece:"GR",israel:"IL",philippines:"PH","new zealand":"NZ",chile:"CL",colombia:"CO",peru:"PE",venezuela:"VE",kazakhstan:"KZ",uzbekistan:"UZ","chinese taipei":"TW",morocco:"MA",algeria:"DZ",libya:"LY",tunisia:"TN",ethiopia:"ET",ghana:"GH",tanzania:"TZ","côte d'ivoire":"CI","ivory coast":"CI",angola:"AO",mozambique:"MZ",zimbabwe:"ZW","sri lanka":"LK",myanmar:"MM",burma:"MM",cambodia:"KH","hong kong":"HK",macau:"MO","new caledonia":"NC",jordan:"JO",syria:"SY",lebanon:"LB",bahrain:"BH","czech rep.":"CZ"};function a(e){let a=t[e.toLowerCase().trim()];return a?[...a].map(e=>String.fromCodePoint(127397+e.charCodeAt(0))).join(""):"🌐"}e.s(["flagEmoji",()=>a])},390427,e=>{"use strict";var t=e.i(843476),a=e.i(902312),r=e.i(22584),l=e.i(578938);e.i(79951);var i=e.i(902936),n=e.i(271645);function s({children:e}){let s=(0,i.useRouter)(),o=(0,a.useHasAuthSession)();return((0,n.useLayoutEffect)(()=>{o||(0,l.getAuthToken)()||(console.info("[AUTH] Protected route — no SSO session, redirecting home"),s.replace(r.routes.homePage))},[o,s]),(0,n.useLayoutEffect)(()=>{let e=e=>{!e.persisted||(0,l.getAuthToken)()||(console.info("[AUTH] Back navigation to protected route without session — redirecting home"),s.replace(r.routes.homePage))};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[s]),o||(0,l.getAuthToken)())?(0,t.jsx)(t.Fragment,{children:e}):null}e.s(["CommunityAuthPageGate",0,s,"SsoAuthPageGate",()=>s])},785336,e=>{"use strict";let t={classic_theme:"modern",modern:"premium",fancy:"premium",standard_theme:"premium",sleek_theme:"premium"};function a(e,r,l=t){let i=e?.trim();if(!i)return[];let n=r?new Set(r):null,s=[],o=new Set,c=i;for(;c&&!o.has(c);)o.add(c),(!n||n.has(c))&&s.push(c),c=l[c]?.trim()||void 0;return s}function r(e,t){return a(e).includes(t)}function l(e,t,r){return a(t,Object.keys(r)).find(t=>{let a=r[t];return!!a&&("function"==typeof a.has&&"function"==typeof a[Symbol.iterator]?a.has(e):Object.prototype.hasOwnProperty.call(a,e))})??null}e.s(["findComponentTheme",()=>l,"usesComponentTheme",()=>r])},475711,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r=(0,a.createContext)(null);function l({layoutThemeId:e,children:a}){return(0,t.jsx)(r.Provider,{value:{layoutThemeId:e},children:a})}function i(){return(0,a.useContext)(r)?.layoutThemeId??null}e.s(["LayoutThemeProvider",()=>l,"useLayoutThemeId",()=>i])},770275,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(785336);let l={ProductTileOne:(0,a.lazy)(()=>e.A(349423).then(e=>({default:e.ProductTileOne})))},i={classic_theme:{ProductTileOne:(0,a.lazy)(()=>e.A(660877).then(e=>({default:e.ProductTileOne})))},fancy:{ProductTileOne:(0,a.lazy)(()=>e.A(700095).then(e=>({default:e.ProductTileOne})))},luxe_theme:{ProductTileOne:(0,a.lazy)(()=>e.A(842225).then(e=>({default:e.ProductTileOne})))},modern:{ProductTileOne:(0,a.lazy)(()=>e.A(887867).then(e=>({default:e.ProductTileOne})))},premium:{ProductTileOne:(0,a.lazy)(()=>e.A(626465).then(e=>({default:e.ProductTileOne})))},sleek_theme:{ProductTileOne:(0,a.lazy)(()=>e.A(617335).then(e=>({default:e.ProductTileOne})))},standard_theme:{ProductTileOne:(0,a.lazy)(()=>e.A(535805).then(e=>({default:e.ProductTileOne})))}};var n=e.i(475711);
3function s(){return(0,t.jsxs)("div",{"aria-hidden":!0,className:"flex h-full min-h-[23rem] w-full flex-col overflow-hidden rounded-[var(--radius-card-sm)] border border-[var(--brand-border-color-light)] bg-[var(--brand-white)] motion-safe:animate-pulse",children:[(0,t.jsx)("div",{className:"aspect-[268/163] w-full shrink-0 bg-[var(--brand-neutral-surface-2)]"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-[var(--gap-12)] p-[var(--card-padding-20)]",children:[(0,t.jsx)("div",{className:"h-[var(--gap-16)] w-3/4 rounded bg-[var(--brand-neutral-surface-3)]"}),(0,t.jsx)("div",{className:"h-[var(--gap-12)] w-full rounded bg-[var(--brand-neutral-surface-2)]"}),(0,t.jsx)("div",{className:"h-[var(--gap-12)] w-2/3 rounded bg-[var(--brand-neutral-surface-2)]"}),(0,t.jsx)("div",{className:"mt-auto h-[var(--gap-40)] w-full rounded bg-[var(--brand-neutral-surface-3)]"})]})]})}function o(e){let o=function(e,t){let a=(0,r.findComponentTheme)(e,t,i);if(a){let t=i[a][e];if(t)return t}return l[e]??null}("ProductTileOne",(0,n.useLayoutThemeId)());return o?(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)(s,{}),children:(0,a.createElement)(o,e)}):null}e.s(["InheritedProductTileOne",()=>o],770275)},179718,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(527967);var r=e.i(468894),l=e.i(387946),i=e.i(614326),n=e.i(578938),s=e.i(657688);e.i(79951);var o=e.i(902936),c=e.i(271645),d=e.i(948148);function u({image:e,buttonText:u,buttonHref:m,title:h,categories:p=[],description:g,date:v,author:x,link:b,isLoading:f=!1,fallbackImage:w="/industry-trends/insight-1.webp",readTime:y,variant:j="default",preferReadTimeMeta:N=!1,requireAuth:_=!0}){let k=(0,d.useTranslations)(),C=u?.trim(),S=C?.toLowerCase()!=="launch report"&&C!==k("launch_report")||m?.trim()?C:void 0,L=(0,o.useRouter)(),[I,z]=(0,c.useState)(e),A="newsletter"===j,q="product-specific-insights"===j,E="hide-image-view-more"===j,$="market-insights-button-change"===j,P=!!(S&&m)&&!$,T=!!S&&!E&&($?!!S:!P&&!q),M=q?"px-[var(--content-card-shell-padding-mobile)] md:px-[var(--content-card-shell-padding-product-specific-insights-desktop)] pb-[var(--content-card-shell-padding-mobile)] md:pb-[var(--content-card-shell-padding-product-specific-insights-desktop)] pt-2":"px-[var(--content-card-shell-padding-mobile)] md:px-[var(--content-card-shell-padding-desktop)] pb-[var(--content-card-shell-padding-mobile)] md:pb-[var(--content-card-shell-padding-desktop)] pt-2",[O,F]=(0,c.useState)(!1),R=(0,c.useMemo)(()=>x.trim(),[x]),B=(0,c.useMemo)(()=>p.slice(0,2),[p]),D=(0,c.useMemo)(()=>{let e=p.find(e=>e.trim());return e?.trim()??""},[p]),H=("default"===j||E||$)&&B.length>0,U=y?.trim()||k("one_min_read"),G=m?.trim()??"",W=!!G,V=(e,t)=>{(e.preventDefault(),e.stopPropagation(),_&&!(0,n.getAuthToken)())?F(!0):window.open(t,"_blank","noopener,noreferrer")};if(f)return(0,t.jsx)("article",{className:"overflow-hidden bg-[var(--content-card-bg)] p-[var(--content-card-shell-padding-mobile)] md:p-[var(--content-card-shell-padding-desktop)] shadow-[var(--content-card-shadow)]",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--content-card-shell-content-gap)] md:grid-cols-2",children:[(0,t.jsx)("div",{className:"h-[var(--content-card-skeleton-line-height)] w-[var(--content-card-skeleton-line-w-sm)] rounded-[var(--content-card-radius-sm)] bg-[var(--content-card-skeleton-bg)]"}),(0,t.jsx)("div",{className:"h-[var(--content-card-preview-height)] w-full animate-pulse bg-[var(--content-card-skeleton-bg)]"})]})});let K=(0,t.jsxs)(t.Fragment,{children:[!E&&(q?(0,t.jsx)("div",{className:"relative h-[clamp(220px,30vw,233px)] w-full overflow-hidden",children:(0,t.jsx)(s.default,{src:I,alt:h,fill:!0,className:"object-cover",onError:()=>z(w)})}):(0,t.jsxs)("div",{className:"relative isolate h-[clamp(300px,30vw,250px)] md:h-[clamp(250px,30vw,250px)] w-full overflow-hidden",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 scale-110 bg-cover bg-center blur-[5px]",style:{backgroundImage:`url(${I})`}}),(0,t.jsx)("div",{className:"absolute inset-0 bg-[rgba(var(--brand-black-rgb),0.08)]"}),(0,t.jsxs)("div",{className:"absolute left-1/2 top-1/2 z-10 aspect-[4/6] w-[clamp(140px,30%,240px)] -translate-x-1/2 -translate-y-1/2 overflow-hidden shadow-[0_18px_40px_rgba(0,0,0,0.25)] [clip-path:polygon(0_0,calc(100%_-_42px)_0,100%_42px,100%_100%,0_100%)] rtl:[clip-path:polygon(42px_0,100%_0,100%_100%,0_100%,0_42px)]",children:[(0,t.jsx)(s.default,{src:I,alt:h,fill:!0,className:"object-cover",onError:()=>z(w)}),(0,t.jsx)("span",{className:"absolute end-0 top-0 h-0 w-0 border-b-[42px] border-s-[42px] border-b-[var(--content-card-fold-color)] border-s-[var(--content-card-fold-color)]"})]})]})),(0,t.jsxs)("div",{className:`flex flex-1 flex-col gap-[var(--content-card-content-gap)] p-[var(--content-card-shell-padding-mobile)] ${q?"md:p-[var(--content-card-shell-padding-product-specific-insights-desktop)]":"md:p-[var(--content-card-shell-padding-desktop)]"}`,children:[(A||q||E)&&D?(0,t.jsx)("span",{className:"w-fit roun
3ded-full border border-[var(--content-card-pill-border-color)] px-[var(--content-card-pill-padding-x-mobile)] py-[var(--content-card-pill-padding-y-mobile)] text-start text-[length:var(--content-card-pill-size-mobile)] font-[var(--content-card-pill-weight-mobile)] leading-[var(--content-card-pill-line-height-mobile)] text-[var(--content-card-pill-color)] md:px-[var(--content-card-pill-padding-x-desktop)] md:py-[var(--content-card-pill-padding-y-desktop)] md:text-[length:var(--content-card-pill-size-desktop)] md:font-[var(--content-card-pill-weight-desktop)] md:leading-[var(--content-card-pill-line-height-desktop)]",children:D}):null,(0,t.jsx)("h3",{className:"line-clamp-2 text-start text-[length:var(--content-card-title-size-mobile)] font-[var(--content-card-title-weight)] leading-[var(--content-card-title-line-height-mobile)] text-[var(--content-card-title-color)] md:text-[length:var(--content-card-title-size-desktop)] md:leading-[var(--content-card-title-line-height-desktop)] md:min-h-[var(--content-card-title-min-height)]",children:h}),H&&(0,t.jsx)("p",{className:"flex flex-wrap items-center gap-x-[var(--content-card-categories-gap)] gap-y-[var(--gap-6)] text-[length:var(--content-card-categories-size-mobile)] md:text-[length:var(--content-card-categories-size-desktop)] font-[var(--content-card-categories-weight-mobile)] md:font-[var(--content-card-categories-weight-desktop)] leading-[var(--content-card-categories-line-height-mobile)] md:leading-[var(--content-card-categories-line-height-desktop)] text-start text-[var(--content-card-categories-color)]",children:B.map((e,a)=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-[var(--content-card-categories-gap)]",children:[(0,t.jsx)("span",{className:"line-clamp-1",children:e}),a<B.length-1&&(0,t.jsx)("span",{className:"h-[var(--content-card-dot-size)] w-[var(--content-card-dot-size)] rounded-full bg-[var(--content-card-dot-color)]"})]},`${e}-${a}`))}),"newsletter"!==j&&(0,t.jsx)("p",{className:"line-clamp-3 text-start text-[length:var(--content-card-description-size-mobile)] font-[var(--content-card-description-weight)] leading-[var(--content-card-description-line-height-mobile)] text-[var(--content-card-description-color)] md:text-[length:var(--content-card-description-size-desktop)] md:leading-[var(--content-card-description-line-height-desktop)]",children:g}),(0,t.jsx)("div",{className:"mt-auto flex items-center gap-[var(--content-card-meta-gap)] text-[length:var(--content-card-meta-size-mobile)] md:text-[length:var(--content-card-meta-size-desktop)] font-[var(--content-card-meta-weight-mobile)] md:font-[var(--content-card-meta-weight-desktop)] leading-[var(--content-card-meta-line-height-mobile)] md:leading-[var(--content-card-meta-line-height-desktop)] text-[var(--content-card-meta-color)]",children:!N&&(A||q)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.CalenderIconNew,{className:"w-5 h-5"}),(0,t.jsx)("span",{children:v})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.DocumentIcons,{className:"w-5 h-5"}),(0,t.jsx)("span",{children:U})]})}),T&&($?W?(0,t.jsx)("span",{className:"btn btn-primary mt-2 inline-flex w-full cursor-pointer items-center justify-center",children:S??k("launch_report")}):m?(0,t.jsx)(a.Button,{variant:"primary",type:"button",onClick:e=>V(e,m),className:"w-full mt-2 cursor-pointer",children:S??k("launch_report")}):(0,t.jsx)(a.Button,{variant:"primary",type:"button",className:"w-full mt-2 cursor-pointer",children:S??k("read_more")}):(0,t.jsx)(a.Button,{variant:"primary",href:b,className:"w-full mt-2 cursor-pointer",children:S}))]})]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("article",{className:"group h-full overflow-hidden border border-[var(--content-card-border-color)] bg-[var(--content-card-bg)] transition-all duration-300 ease-out hover:-translate-y-[var(--content-card-hover-translate-y)] hover:shadow-[var(--content-card-hover-shadow)] shadow-[var(--content-card-shadow)]",children:[W?(0,t.jsxs)("button",{type:"button",className:"flex h-full w-full cursor-pointer flex-col border-0 bg-transparent p-0 text-start text-inherit",onClick:e=>V(e,G),children:[K,P?(0,t.jsx)("div",{className:M,children:(0,t.jsx)("span",{className:"btn btn-primary flex min-h-0 flex-1 flex-col items-center justify-center text-inherit no-underline",children:S})}):null]}):$?(0,t.jsx)(o.Link,{href:b,className:"flex h-full flex-col cursor-pointer",onClick:()=>{b&&"#"!==b&&L.push(b)},children:K}):P?(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[(0,t.jsx)(o.Link,{href:b,className:"flex min-h-0 flex-1 flex-col text-inherit no-underline",children:K}),(0,t.jsx)("div",{className:M,children:(0,t.jsx)(a.Button,{variant:"primary",type:"button",onClick:e=>{m&&V(e,m)},className:"flex min-h-0 flex-1 flex-col text-inherit no-underline cursor-pointer",children:S})})]}):(0,t.jsx)(o.Link,{href:b,className:"flex h-full flex-col",children:K}),(0,t.jsxs)("p",{className:"sr-only",children:[v," ",R]})]}),(0,t.jsx)(i.default,{isOpen:O,onClose:()=>F(!1)})]})}e.s(["ContentCard",()=>u])},899231,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303);function l({entries:e}){let a=e.filter(e=>e.code&&e.code.trim().length>0);return(0,t.jsx)(t.Fragment,{children:a.flatMap((e,a)=>(function(e){let t,a=e.trim();if(!a)return[];let r=[],l=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;for(;null!==(t=l.exec(a));){let e=t[1]??"",a=(t[2]??"").trim(),l=e.match(/\bsrc\s*=\s*(["'])([^"']*)\1/i),i=l?.[2]?.trim();i&&r.push({kind:"external",src:i}),a&&r.push({kind:"inline",source:a})}return r.length>0?r:[{kind:"inline",source:a}]})(e.code).map((l,i)=>{let n=`cms-header-${a}-${i}-${e.description??"script"}`;return"external"===l.kind?(0,t.jsx)(r.default,{id:`cms-header-${a}-${i}`,src:l.src,strategy:"lazyOnload"},n):(0,t.jsx)(r.default,{id:`cms-header-${a}-${i}`,strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:l.source}},n)}))})}function i({entries:e}){let[r,i]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{i(!0)},[]),r)?(0,t.jsx)(l,{entries:e}):null}e.s(["DeferredWebsiteHeaderScripts",()=>i],899231)},593763,e=>{"use strict";var t=e.i(843476);e.i(79951);var a=e.i(902936),r=e.i(450063),l=e.i(902312),i=e.i(22584);function n({card:e,className:n="btn btn-primary"}){let s=(0,r.useOptionalCommunityAuth)(),o=(0,l.useHasAuthSession)(),c=e.buttonLink||"/",d=!!(e.requireAuthToNavigate&&!o);return d&&s?(0,t.jsx)("button",{type:"button",className:`${n} cursor-pointer`,onClick:t=>{t.preventDefault(),t.stopPropagation(),console.info("[COMMUNITY] Gated card CTA — opening SSO modal (no navigation)",{title:e.title,returnPath:c}),s.openCommunitySsoModal(c)},children:e.buttonText}):d&&!s?(0,t.jsx)(a.Link,{prefetch:!1,className:n,href:i.routes.auth.login,children:e.buttonText}):(0,t.jsx)(a.Link,{prefetch:!1,className:n,href:c,children:e.buttonText})}e.s(["CardCta",()=>n,"default",0,({cards:e,className:a=""})=>e&&0!==e.length?(0,t.jsx)("div",{className:`layout-container px-3 md:px-5 ${a}`.trim(),children:(0,t.jsx)("div",{className:"grid grid-cols-1 gap-[var(--cards-section-grid-gap-mobile)] md:grid-cols-2 md:gap-[var(--card-discussion-grid-gap-desktop)] lg:grid-cols-3",children:e.map(e=>(0,t.jsxs)("div",{className:`relative p-[var(--cards-inner-padding-desktop)] ${e.hasShadow?"[box-shadow:var(--cards-shadow-others)]":""}`,style:{background:"gradient"===e.bgType&&e.bgGradient?e.bgGradient:"var(--cards-bg-color-others)",color:e.textColor||"inherit"},children:[(0,t.jsx)("div",{className:"absolute top-0 end-0 h-20 w-20 opacity-50 pointer-events-none",children:e.blurIconSrc}),(0,t.jsx)("div",{className:"relative z-10",children:e.iconSrc}),(0,t.jsx)("h4",{className:"my-[var(--cards-title-margin-desktop)] text-start text-[length:var(--cards-title-size-mobile)] font-[var(--cards-title-weight-mobile)] text-[var(--cards-title-color-other)] md:text-[length:var(--cards-title-size-desktop)] md:leading-[var(--cards-title-line-height-desktop)] md:font-[var(--cards-title-weight-desktop)]",style:{color:e.textColor||"inherit"},children:e.title}),(0,t.jsx)(n,{card:e})]},e.id))})}):null])},60530,e=>{"use strict";var t=e.i(843476);function a({title:e,items:a}){return(0,t.jsxs)("nav",{"aria-label":e,className:"mb-[var(--featured-banner-details-toc-card-margin-bottom-mobile)] rounded-[var(--featured-banner-details-toc-card-radius-mobile)] bg-[var(--featured-banner-details-toc-card-bg)] py-[var(--featured-banner-details-toc-card-padding-block-mobile)] ps-[var(--featured-banner-details-toc-card-padding-inline-start-mobile)] pe-[var(--featured-banner-details-toc-card-padding-inline-end-mobile)] md:mb-[var(--featured-banner-details-toc-card-margin-bottom-desktop)] md:rounded-[var(--featured-banner-details-toc-card-radius-desktop)] md:py-[var(--featured-banner-details-toc-card-padding-block-desktop)] md:ps-[var(--featured-banner-details-toc-card-padding-inline-start-desktop)] md:pe-[var(--featured-banner-details-toc-card-padding-inline-end-desktop)]",children:[(0,t.jsx)("h3",{className:"mb-[var(--featured-banner-details-toc-title-margin-bottom-mobile)] text-start text-[length:var(--featured-banner-details-toc-title-size-mobile)] font-[var(--featured-banner-details-toc-title-weight)] leading-[var(--featured-banner-details-toc-title-line-height-mobile)] text-[var(--featured-banner-details-toc-title-color)] md:mb-[var(--featured-banner-details-toc-title-margin-bottom-desktop)] md:text-[length:var(--featured-banner-details-toc-title-size-desktop)] md:leading-[var(--featured-banner-details-toc-title-line-height-desktop)]",children:e}),(0,t.jsx)("ol",{className:"m-0 flex list-disc flex-col gap-[var(--featured-banner-details-toc-list-gap-mobile)] ps-[var(--featured-banner-details-toc-list-padding-left-mobile)] text-[length:var(--featured-banner-details-toc-item-size-mobile)] font-[var(--featured-banner-details-toc-item-weight)] leading-[var(--featured-banner-details-toc-item-line-height-mobile)] text-[var(--featured-banner-details-toc-list-color)] marker:text-[var(--featured-banner-details-toc-list-color)] md:gap-[var(--featured-banner-details-toc-list-gap-desktop)] md:ps-[var(--featured-banner-details-toc-list-padding-left-desktop)] md:text-[length:var(--featured-banner-details-toc-item-size-desktop)] md:leading-[var(--featured-banner-details-toc-item-line-height-desktop)]",children:a.map((e,a)=>{let r=Math.max(0,(e.level??2)-2),l=e.anchor?.trim();return(0,t.jsx)("li",{className:"ps-[var(--gap-1)]",style:r>0?{marginInlineStart:`${16*r}px`}:void 0,children:l?(0,t.jsx)("a",{href:`#${l}`,className:"text-inherit no-underline hover:underline",onClick:e=>{let t;(t=document.getElementById(l))&&(e.preventDefault(),t.scrollIntoView({behavior:"smooth",block:"start"}),window.history.replaceState(null,"",`#${l}`))},children:e.label}):e.label},`${l??a}-${e.label}`)})})]})}e.s(["TableOfContentsNav",()=>a])},249902,e=>{"use strict";var t=e.i(843476);function a({html:e,className:a}){let r=function(e){let t=e.trim();if(!t)return"";let a=t;return(a=(a=a.replace(/<p\b[^>]*>\s*(<(div|section|article|ul|ol|table|h[1-6]|figure|blockquote|iframe)\b[^>]*>[\s\S]*?<\/\2>)\s*<\/p>/gi,"$1")).replace(/<p\b[^>]*>\s*(?:&nbsp;|\u00a0|\s)*<\/p>/gi,"")).replace(/<a\b([^>]*)>/gi,(e,t)=>{let a=t.replace(/\bhref\s*=\s*(["'])([^"']*)\1/i,(e,t,a)=>{let r;return`href=${t}${!(r=a.trim())||/^(https?:|mailto:|tel:|#|\/|\.\/|\.\.\/)/i.test(r)?r:r.startsWith("//")?`https:${r}`:/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+(?::\d+)?(?:\/[^\s"']*)?$/i.test(r)?`https://${r}`:r}${t}`});return`<a${a}>`})}(e);if(!r)return null;
3let l=["cms-html",a].filter(Boolean).join(" ");return(0,t.jsx)("div",{className:l,dangerouslySetInnerHTML:{__html:r}})}var r=e.i(614326),l=e.i(902312);e.i(79951);var i=e.i(76209),n=e.i(948148),s=e.i(271645);function o({html:e,className:o}){let c=(0,l.useHasAuthSession)(),d=(0,i.usePathname)(),u=(0,n.useTranslations)(),[m,h]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(a,{html:e,className:o}),c?null:(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 top-1/2 z-10 flex min-h-[190px] items-start justify-center bg-white/20 px-5 pt-10 text-center font-[family-name:var(--font-sans)] backdrop-blur-xs md:px-10 md:pt-14",children:(0,t.jsxs)("div",{className:"max-w-xl  border border-[var(--brand-border-color-light)] bg-[var(--brand-white)] px-6 py-7 shadow-[0_10px_30px_rgba(0,0,0,0.12)]",children:[(0,t.jsx)("h2",{className:"m-0 py-4 text-[length:var(--heading-4-size)] font-[var(--font-weight-bold)] leading-[var(--heading-4-line-height)] text-[var(--brand-primary-deep)]",children:u("article_sign_in_title")}),(0,t.jsx)("p",{className:"m-0 text-[length:var(--body-regular-size)] font-[var(--font-weight-normal)] leading-[var(--body-regular-line-height)] text-[var(--brand-primary-deep)]",children:u("article_sign_in_description")}),(0,t.jsx)("button",{type:"button",className:"btn btn-primary mt-5",onClick:()=>h(!0),children:u("login")})]})}),(0,t.jsx)(r.default,{isOpen:m,onClose:()=>h(!1),returnPathAfterAuth:d})]})}e.s(["AuthGatedCmsHtmlContent",()=>o],249902)},526246,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(785336);let r=["--haptik-chat-header-bg","--haptik-chat-header-text","--haptik-chat-header-promo-bg","--haptik-chat-surface-bg","--haptik-chat-bot-bubble-bg","--haptik-chat-bot-bubble-text","--haptik-chat-bot-bubble-border","--haptik-chat-user-bubble-bg","--haptik-chat-user-bubble-text","--haptik-chat-muted-text","--haptik-chat-composer-bg","--haptik-chat-composer-border","--haptik-chat-composer-text","--haptik-chat-composer-placeholder","--haptik-chat-accent","--haptik-chat-link","--haptik-chat-task-hover"],l="/haptik-chat-overrides.css";function i(e){return"u"<typeof document?"":getComputedStyle(document.documentElement).getPropertyValue(e).trim()}var n=e.i(271645),s=e.i(948148),o=e.i(3303);function c({dir:e="ltr"}){let c,d=(0,s.useTranslations)(),u="9362",m="dd6ca30320683b209fb4ed40c3798a7bd5efcd00",h="https://api.haptikapi.com/",[p,g]=(0,n.useState)(!1),[v,x]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{let e=()=>g(!0),t=["scroll","click","keydown","touchstart","mousemove"];return t.forEach(t=>window.addEventListener(t,e,{once:!0,passive:!0})),()=>t.forEach(t=>window.removeEventListener(t,e))},[u,m,h]),(0,n.useEffect)(()=>{let e=e=>{let t=e.detail;t&&"boolean"==typeof t.open&&x(t.open)};return window.addEventListener("haptik-chat-visibility",e),()=>window.removeEventListener("haptik-chat-visibility",e)},[]),!u||!m||!h||!p)return null;let b=i("--brand-primary"),f=function(){if("u"<typeof document)return"Poppins";let e=document.documentElement.getAttribute("data-layout-theme");return(0,a.usesComponentTheme)(e,"premium")?"Plus Jakarta Sans":"Poppins"}(),w=(c=r.map(e=>{let t=i(e);return t?`${e}: ${t};`:""}).join(""))?`:root { ${c} }`:"",y=`
4    window.__haptikChatOpen = false;
5    window.__dispatchHaptikVisibility = function (open) {
6      window.dispatchEvent(new CustomEvent("haptik-chat-visibility", { detail: { open: open } }));
7    };
8    window.toggleHaptikChat = function () {
9      if (!window.HaptikSDK) return;
10      if (window.__haptikChatOpen) {
11        window.HaptikSDK.hide();
12        window.__haptikChatOpen = false;
13        window.__dispatchHaptikVisibility(false);
14      } else {
15        window.HaptikSDK.show();
16        window.__haptikChatOpen = true;
17        window.__dispatchHaptikVisibility(true);
18      }
19    };
20    window.haptikInitSettings = {
21      "business-id":        "${u}",
22      "client-id":          "${m}",
23      "base-url":           "${h}",
24      "widget-positioning": "${"rtl"===e?"bottom-left":"bottom-right"}",
25      "custom-button":      true,
26      "primary-color":      "${b}",
27      "custom-css":         "${l}",
28      typography:           "${f}",
29      onChatWindowHide: function () {
30        window.__haptikChatOpen = false;
31        window.__dispatchHaptikVisibility(false);
32      }
33    };
34  `,j=`
35    (function () {
36      var VARS_STYLE_ID = "haptik-brand-vars";
37      var THEME_LINK_ID = "haptik-brand-theme";
38      var RTL_STYLE_ID = "haptik-rtl-patch";
39      var THEME_HREF = "${l}";
40      var THEME_VARS_CSS = ${JSON.stringify(w)};
41      var RTL_CSS = ${JSON.stringify("rtl"===e?".minimized-view-v2, .minimized-view { margin-left: 0 !important; margin-right: 0 !important; }":"")};
42
43      function patch(iframe) {
44        try {
45          var doc = iframe.contentDocument;
46          if (!doc || !doc.head) return false;
47
48          if (THEME_VARS_CSS && !doc.getElementById(VARS_STYLE_ID)) {
49            var varsStyle = doc.createElement("style");
50            varsStyle.id = VARS_STYLE_ID;
51            varsStyle.textContent = THEME_VARS_CSS;
52            doc.head.appendChild(varsStyle);
53          }
54
55          if (!doc.getElementById(THEME_LINK_ID)) {
56            var link = doc.createElement("link");
57            link.id = THEME_LINK_ID;
58            link.rel = "stylesheet";
59            link.href = THEME_HREF;
60            doc.head.appendChild(link);
61          }
62
63          if (RTL_CSS && !doc.getElementById(RTL_STYLE_ID)) {
64            var style = doc.createElement("style");
65            style.id = RTL_STYLE_ID;
66            style.textContent = RTL_CSS;
67            doc.head.appendChild(style);
68          }
69
70          return true;
71        } catch (err) {
72          return false;
73        }
74      }
75
76      function patchAll() {
77        var iframes = document.querySelectorAll("iframe.xdk-iframe");
78        var allPatched = iframes.length > 0;
79        for (var i = 0; i < iframes.length; i++) {
80          if (!patch(iframes[i])) allPatched = false;
81          iframes[i].addEventListener("load", function () { patch(this); });
82        }
83        return allPatched;
84      }
85
86      if (!patchAll()) {
87        var attempts = 0;
88        var interval = setInterval(function () {
89          attempts += 1;
90          if (patchAll() || attempts > 40) clearInterval(interval);
91        }, 250);
92      }
93
94      var observer = new MutationObserver(function () { patchAll(); });
95      observer.observe(document.body, { childList: true, subtree: true });
96    })();
97  `;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{id:"haptik-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:y}}),(0,t.jsx)(o.default,{id:"haptik-loader",src:"https://toolassets.haptikapi.com/platform/javascript-xdk/production/loader.js",strategy:"afterInteractive",charSet:"UTF-8"}),(0,t.jsx)(o.default,{id:"haptik-iframe-patch",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:j}}),(0,t.jsxs)("div",{className:"haptik-custom-launcher-group",children:[v?null:(0,t.jsx)("button",{type:"button",className:"haptik-custom-launcher-prompt",onClick:()=>window.toggleHaptikChat?.(),children:d("haptik_chat_assist_prompt")}),(0,t.jsx)("button",{type:"button",className:"haptik-custom-launcher","aria-label":d("haptik_chat_assist_prompt"),onClick:()=>window.toggleHaptikChat?.(),children:(0,t.jsx)("img",{src:"/ic_chatbot.png",alt:"",width:24,height:24,className:"haptik-custom-launcher__icon","aria-hidden":!0})})]})]})}e.s(["HaptikScript",()=>c],526246)},682432,e=>{"use strict";var t=e.i(843476),a=e.i(614326),r=e.i(578938);e.i(527967);var l=e.i(468894),i=e.i(322665),i=i,n=e.i(387946),s=e.i(674455),s=s,o=e.i(657688);e.i(79951);var c=e.i(902936),d=e.i(271645),u=e.i(948148);function m({image:e,buttonText:m,buttonHref:h,title:p,categories:g=[],description:v,date:x,author:b,link:f,isLoading:w=!1,fallbackImage:y="/industry-trends/insight-1.webp",readTime:j,requireAuth:N=!0}){let _=(0,u.useTranslations)(),[k,C]=(0,d.useState)(e),[S,L]=(0,d.useState)(!1),I=(0,d.useMemo)(()=>g.map(e=>e.trim()).filter(Boolean).slice(0,1),[g]),z=j?.trim()||_("one_min_read"),A=b.trim()||_("chemtradeasia_team"),q=h?.trim()??"",E=m?.trim()??"",$=!!q,P="launch report"===E.toLowerCase()||E===_("launch_report"),T=!!E&&!$&&!P;if(w)return(0,t.jsxs)("article",{"data-premium-cc":!0,"aria-busy":"true",children:[(0,t.jsx)("div",{className:"cc-p-media",children:(0,t.jsx)("div",{className:"cc-p-media-frame animate-pulse"})}),(0,t.jsxs)("div",{className:"cc-p-body",children:[(0,t.jsx)("div",{className:"h-4 w-3/4 rounded bg-[var(--brand-neutral-surface-4)]"}),(0,t.jsx)("div",{className:"h-3 w-full rounded bg-[var(--brand-neutral-surface-4)]"}),(0,t.jsx)("div",{className:"h-3 w-2/3 rounded bg-[var(--brand-neutral-surface-4)]"})]})]});let M=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"cc-p-media",children:[(0,t.jsx)("div",{className:"cc-p-media-frame",children:(0,t.jsx)(o.default,{src:k,alt:p,fill:!0,className:"cc-p-image",sizes:"(max-width: 768px) 100vw, 33vw",onError:()=>C(y)})}),I.length>0?(0,t.jsx)("div",{className:"cc-p-pills",children:I.map(e=>(0,t.jsx)("span",{className:"cc-p-pill",children:e},e))}):null]}),(0,t.jsxs)("div",{className:"cc-p-body",children:[(0,t.jsx)("h3",{className:"cc-p-title",children:p}),v?(0,t.jsx)("p",{className:"cc-p-description",children:v}):null]})]}),O=(0,t.jsxs)("div",{className:"cc-p-footer",children:[(0,t.jsxs)("div",{className:"cc-p-footer-row",children:[(0,t.jsxs)("span",{className:"cc-p-meta",children:[(0,t.jsx)(i.default,{className:"cc-p-meta-icon","aria-hidden":!0}),(0,t.jsx)("span",{children:z})]}),$&&E?(0,t.jsxs)("span",{className:"cc-p-launch",children:[(0,t.jsx)(n.DocumentIcons,{className:"cc-p-meta-icon","aria-hidden":!0}),(0,t.jsx)("span",{children:E})]}):T?(0,t.jsx)(c.Link,{href:f,className:"cc-p-launch",children:(0,t.jsx)("span",{children:E})}):(0,t.jsx)("span",{className:"cc-p-meta","aria-hidden":!0})]}),(0,t.jsxs)("div",{className:"cc-p-footer-row",children:[x?(0,t.jsxs)("span",{className:"cc-p-meta cc-p-meta--date",children:[(0,t.jsx)(l.CalenderIconNew,{className:"cc-p-meta-icon","aria-hidden":!0}),(0,t.jsx)("span",{children:x})]}):(0,t.jsx)("span",{className:"cc-p-meta","aria-hidden":!0}),(0,t.jsxs)("span",{className:"cc-p-meta cc-p-meta--author",children:[(0,t.jsx)(s.default,{className:"cc-p-meta-icon","aria-hidden":!0}),(0,t.jsx)("span",{className:"cc-p-author",children:A})]})]})]});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("article",{"data-premium-cc":!0,children:$?(0,t.jsxs)("button",{type:"button",className:"cc-p-link",onClick:e=>{(e.preventDefault(),e.stopPropagation(),N&&!(0,r.getAuthToken)())?L(!0):window.open(q,"_blank","noopener,noreferrer")},children:[M,O]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Link,{href:f,className:"cc-p-link",children:M}),O]})}),(0,t.jsx)(a.default,{isOpen:S,onClose:()=>L(!1)})]})}e.s(["ContentCard",()=>m],682432)},449087,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(618566);e.i(79951);var l=e.i(76209),i=e.i(902936);let n=["agriculture","feed-ingredients","beauty-and-personal-care","food-additives","glass-and-ceramic","leather-chemicals","paint-ink-and-coating","oleochemicals","pharmaceutical","pine-derivatives","plastic-and-polymers","pulp-and-paper","rubber","soap-and-detergents","surplus-chemicals","textile-chemicals","water-treatment-chemicals","boron","fertilizers"],s={agriculture:"Agriculture","feed-ingredients":"Feed Ingredients","beauty-and-personal-care":"Beauty and Personal Care","food-additives":"Food Additives","glass-and-ceramic":"Glass and Ceramic","leather-chemicals":"Leather Chemicals","paint-ink-and-coating":"Paint Ink and Coating",oleochemicals:"Oleochemicals",pharmaceutical:"Pharmaceutical","pine-derivatives":"Pine Derivatives","plastic-and-polymers":"Plastic and Polymers","pulp-and-paper":"Pulp and Paper",rubber:"Rubber","soap-and-detergents":"Soap and Detergents","surplus-chemicals":"Surplus Chemicals","textile-chemicals":"Textile Chemicals","water-treatment-chemicals":"Water Treatment Chemicals",boron:"Boron",fertilizers:"Fertilizers"},o={agriculture:["Glyphosate","Chlorpyrifos","Mancozeb","Imidacloprid","Abamectin"],"feed-ingredients":["Lysine","Methionine","Threonine","Tryptophan","Choline Chloride"],"beauty-and-personal-care":["Cetyl Alcohol","Glycerin","Sodium Lauryl Sulfate","Propylene Glycol","Hyaluronic Acid"],"food-additives":["Citric Acid","Sodium Benzoate","Ascorbic Acid","Tartaric Acid","Xanthan Gum"],"glass-and-ceramic":["Sodium Silicate","Boric Acid","Zirconium Oxide","Aluminum Oxide","Calcium Carbonate"],"leather-chemicals":["Chrome Sulfate","Formic Acid","Sodium Formate","Syntans","Fatliquor"],"paint-ink-and-coating":["Titanium Dioxide","Zinc Oxide","Calcium Carbonate PCC","Kaolin","Talc"],oleochemicals:["Palm Fatty Acid","Stearic Acid","Oleic Acid","Lauric Acid","Glycerol"],pharmaceutical:["Paracetamol","Ibuprofen","Ascorbic Acid USP","Citric Acid USP","Magnesium Stearate"],"pine-derivatives":["Gum Rosin","Turpentine Oil","Tall Oil","Pine Tar","Abietic Acid"],"plastic-and-polymers":["Polyethylene","Polypropylene","Polyvinyl Chloride","Polystyrene","Nylon 6"],"pulp-and-paper":["Sodium Hydroxide","Hydrogen Peroxide","Sodium Sulfate","Alum","Rosin Size"],rubber:["Sulfur","Zinc Oxide Rubber","Stearic Acid Rubber","CBS Accelerator","MBTS Accelerator"],"soap-and-detergents":["Sodium Laureth Sulfate","Cocamidopropyl Betaine","SLES 70%","AOS","Sodium Tripolyphosphate"],"surplus-chemicals":["Methanol Surplus","Ethanol Surplus","Acetone Surplus","Toluene Surplus","Xylene Surplus"],"textile-chemicals":["Acetic Acid","Sodium Carbonate","Hydrogen Peroxide Textile","Caustic Soda Textile","Optical Brightener"],"water-treatment-chemicals":["Aluminum Sulfate","Polyaluminum Chloride","Sodium Hypochlorite","Chlorine","Ferric Sulfate"],boron:["Borax Decahydrate","Boric Acid","Borax Pentahydrate","Sodium Perborate","Disodium Octaborate"],fertilizers:["Urea","Ammonium Nitrate","Diammonium Phosphate","Potassium Chloride","NPK Compound"]},c={agriculture:"1071-83-6","feed-ingredients":"56-87-1","beauty-and-personal-care":"36653-82-4","food-additives":"77-92-9","glass-and-ceramic":"1344-09-8","leather-chemicals":"10101-53-8","paint-ink-and-coating":"13463-67-7",oleochemicals:"57-11-4",pharmaceutical:"103-90-2","pine-derivatives":"8050-09-7","plastic-and-polymers":"9002-88-4","pulp-and-paper":"1310-73-2",rubber:"7704-34-9","soap-and-detergents":"68585-34-2","surplus-chemicals":"67-56-1","textile-chemicals":"64-19-7","water-treatment-chemicals":"10043-01-3",boron:"1303-96-4",fertilizers:"57-13-6"},d={agriculture:"3808.93.00","feed-ingredients":"2922.41.00","beauty-and-personal-care":"2905.16.00","food-additives":"2918.14.00","glass-and-ceramic":"2839.11.00","leather-chemicals":"2827.39.00","paint-ink-and-coating":"3206.11.00",oleochemicals:"2915.70.00",pharmaceutical:"2924.29.00","pine-derivatives":"3806.10.00","plastic-and-polymers":"3901.10.00","pulp-and-paper":"2815.11.00",rubber:"2802.00.00","soap-and-detergents":"3402.11.00","surplus-chemicals":"2905.11.
9700","textile-chemicals":"2915.21.00","water-treatment-chemicals":"2833.22.00",boron:"2840.19.00",fertilizers:"3102.10.00"},u=["Indonesia","India","Malaysia","Thailand","China","Vietnam","Singapore","United States","Brazil","Argentina"];n.flatMap((e,t)=>o[e].map((a,r)=>({id:5*t+r+1,name:a,origin:u[(t+r)%u.length],casNumber:c[e],hsCode:d[e],image:"/CategoryImage.png",badge:"In Stock",category:e})));var m=e.i(948148);function h({products:e}){let o=(0,i.useRouter)(),c=(0,m.useTranslations)(),d=(0,l.usePathname)(),u=(0,r.useSearchParams)(),h=(u.get("category")??"").toLowerCase(),p=!h||"all-products"===h,g=(0,a.useMemo)(()=>{let t=e.reduce((e,t)=>{let a=t.category.toLowerCase();return e[a]=(e[a]||0)+1,e},{});return[{label:c("all_products"),slug:"all-products",count:e.length},...n.flatMap(e=>{let a=t[e];return a?[{label:s[e],slug:e,count:a}]:[]})]},[e,c]);return(0,t.jsxs)("div",{className:"flex flex-col p-[var(--industries-products-sidebar-padding)] gap-[var(--industries-products-sidebar-gap)] rounded-[var(--industries-products-sidebar-radius)] bg-[var(--industries-products-sidebar-bg)] shadow-[var(--industries-products-sidebar-shadow)] mx-[var(--industries-products-sidebar-margin-x-mobile)] md:mx-0",children:[(0,t.jsx)("h3",{className:" text-[length:var(--industries-products-sidebar-title-size-mobile)] md:text-[length:var(--industries-products-sidebar-title-size-desktop)] leading-[var(--industries-products-sidebar-title-line-mobile)] md:leading-[var(--industries-products-sidebar-title-line-desktop)] text-[var(--industries-products-sidebar-title-color)] font-[var(--industries-products-sidebar-title-weight-mobile)] md:font-[var(--industries-products-sidebar-title-weight-desktop)]",children:c("product_categories")}),(0,t.jsx)("div",{className:"flex flex-col gap-[var(--industries-products-sidebar-menu-list-gap)]",children:g.map(e=>{let a="all-products"===e.slug?p:e.slug===h;return(0,t.jsxs)("div",{onClick:()=>{var t;let a,r;return t=e.slug,a=new URLSearchParams(u.toString()),"all-products"===t?a.delete("category"):a.set("category",t),r=a.toString(),void o.push(r?`${d}?${r}`:d)},className:`
98              group flex items-center justify-between
99              px-[var(--industries-products-sidebar-menu-list-padding-x)]
100              py-[var(--industries-products-sidebar-menu-list-padding-y)]
101              rounded-[var(--industries-products-sidebar-menu-list-radius)]
102              cursor-pointer transition-all
103              ${a?"bg-[var(--industries-products-sidebar-menu-list-bg)]":"hover:bg-[var(--industries-products-sidebar-menu-list-bg)]"}
104            `,children:[(0,t.jsx)("span",{className:`
105                text-[length:var(--industries-products-sidebar-menu-title-size)]
106                leading-[var(--industries-products-sidebar-menu-title-line)]
107                font-[var(--industries-products-sidebar-menu-title-weight)]
108                transition-default
109                ${a?"text-[var(--industries-products-sidebar-menu-title-color-active)]":"text-[var(--industries-products-sidebar-menu-title-color-inactive)] group-hover:text-[var(--industries-products-sidebar-menu-title-color-active)]"}
110              `,children:e.label}),(0,t.jsx)("span",{className:`
111                flex items-center justify-center
112                w-[var(--industries-products-sidebar-menu-badge-width)]
113                h-[var(--industries-products-sidebar-menu-badge-height)]
114                rounded-[var(--industries-products-sidebar-menu-badge-radius)]
115                text-[length:var(--industries-products-sidebar-menu-badge-size)]
116                leading-[var(--industries-products-sidebar-menu-badge-line)]
117                font-[var(--industries-products-sidebar-menu-badge-weight)]
118                transition-default
119                ${a?"bg-[var(--industries-products-sidebar-menu-badge-bg-active)] text-[var(--industries-products-sidebar-menu-badge-color-active)]":"bg-[var(--industries-products-sidebar-menu-badge-bg-inactive)] text-[var(--industries-products-sidebar-menu-badge-color-inactive)] group-hover:bg-[var(--industries-products-sidebar-menu-badge-bg-active)] group-hover:text-[var(--industries-products-sidebar-menu-badge-color-active)]"}
120              `,children:e.count})]},e.slug)})})]})}e.s(["ProductCategoriesSideBar",()=>h,"ProductCategoriesSideBarSection",()=>h],449087)},967224,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(632423);function i({title:e,imageSrc:i,href:n,originLabel:s,casLabel:o,hsLabel:c,inquireLabel:d,originValue:u,casValue:m="",hsValue:h=""}){let p="/contact-us";return(0,t.jsxs)("article",{className:"relative z-0 box-border flex h-full min-h-0 w-full max-w-full flex-col overflow-visible border border-[var(--our-top-products-one-card-border)] bg-[var(--our-top-products-one-card-bg)] shadow-none transition-all duration-[var(--our-top-products-one-card-hover-duration)] ease-out hover:z-10 hover:translate-y-[length:var(--our-top-products-one-card-hover-translate-y)] hover:shadow-[var(--our-top-products-one-card-hover-shadow)]",children:[(0,t.jsxs)(r.Link,{href:n,className:"flex min-h-0 flex-1 flex-col text-start focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",children:[(0,t.jsx)("span",{className:"relative block w-full shrink-0 overflow-hidden",children:i?(0,t.jsx)(a.default,{src:i,alt:"",width:268,height:163,className:"aspect-[268/163] h-auto w-full object-cover","aria-hidden":!0}):(0,t.jsx)("span",{className:"block aspect-[268/163] w-full bg-[var(--our-top-products-one-card-border)]","aria-hidden":!0})}),(0,t.jsxs)("span",{className:"flex min-h-0 flex-1 flex-col justify-between p-[var(--our-top-products-one-card-body-
120padding)]",children:[(0,t.jsx)("h3",{className:"line-clamp-2 m-0 mb-[var(--our-top-products-one-card-margin-bottom)] text-[length:var(--our-top-products-one-card-title-size)] leading-[var(--our-top-products-one-card-title-line)] font-[var(--our-top-products-one-card-title-weight)] text-[var(--our-top-products-one-card-title-color)]",children:e}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-[var(--our-top-products-one-card-meta-row-gap)]",children:[u?(0,t.jsxs)("span",{className:"flex min-w-0 items-center",children:[(0,t.jsxs)("span",{className:"shrink-0 font-[var(--our-top-products-one-card-meta-label-weight)] text-[length:var(--our-top-products-one-card-meta-size)] leading-[var(--our-top-products-one-card-meta-line)] text-[var(--our-top-products-one-card-meta-label-color)]",children:[s," : "]}),(0,t.jsx)("span",{className:"min-w-0 truncate text-[length:var(--our-top-products-one-card-meta-size)] leading-[var(--our-top-products-one-card-meta-line)] font-[var(--our-top-products-one-card-meta-option-weight)] text-[var(--our-top-products-one-card-meta-value-color)] notranslate",title:u,children:u})]}):null,(0,t.jsxs)("span",{className:"flex flex-wrap",children:[(0,t.jsxs)("span",{className:"font-[var(--our-top-products-one-card-meta-label-weight)] text-[length:var(--our-top-products-one-card-meta-size)] leading-[var(--our-top-products-one-card-meta-line)] text-[var(--our-top-products-one-card-meta-label-color)]",children:[o," : "]}),(0,t.jsx)("span",{className:"text-[length:var(--our-top-products-one-card-meta-size)] leading-[var(--our-top-products-one-card-meta-line)] font-[var(--our-top-products-one-card-meta-option-weight)] text-[var(--our-top-products-one-card-meta-value-color)] notranslate",children:m})]}),(0,t.jsxs)("span",{className:"flex flex-wrap",children:[(0,t.jsxs)("span",{className:"font-[var(--our-top-products-one-card-meta-label-weight)] text-[length:var(--our-top-products-one-card-meta-size)] leading-[var(--our-top-products-one-card-meta-line)] text-[var(--our-top-products-one-card-meta-label-color)]",children:[c," : "]}),(0,t.jsx)("span",{className:"text-[length:var(--our-top-products-one-card-meta-size)] leading-[var(--our-top-products-one-card-meta-line)] font-[var(--our-top-products-one-card-meta-option-weight)] text-[var(--our-top-products-one-card-meta-value-color)] notranslate",children:h})]})]})]})]}),(0,t.jsx)("div",{className:"pb-[var(--our-top-products-one-card-inquire-mb)] px-[var(--our-top-products-one-card-inquire-mb)]",children:(0,t.jsx)(l.AuthGatedDocLink,{href:p,openInNewTab:!1,returnPathAfterAuth:p,className:"block w-full btn btn-outlined text-center",children:d})})]})}e.s(["ProductTileOne",()=>i])},149797,e=>{"use strict";e.i(967224),e.s([])},750254,997741,e=>{"use strict";var t=e.i(843476),a=e.i(301630);e.i(79951);var r=e.i(902936),l=e.i(657688);function i(e){return"string"==typeof e?e.trim():""}function n({image:e,name:n,counts:s,href:o}){let c=(0,a.normalizeCmsImage)(i(e),""),d=i(n),u=i(s);if(!c&&!d&&!u)return null;let m=(0,t.jsxs)(t.Fragment,{children:[c?(0,t.jsx)("div",{className:"category-overview-card__media",children:(0,t.jsx)(l.default,{src:c,alt:d,fill:!0,sizes:"100px",className:"object-contain"})}):null,d?(0,t.jsx)("h3",{className:"category-overview-card__name",children:d}):null,u?(0,t.jsx)("p",{className:"category-overview-card__counts",children:u}):null]});return o?(0,t.jsx)(r.Link,{href:o,className:"category-overview-card","aria-label":d||void 0,children:m}):(0,t.jsx)("article",{className:"category-overview-card",children:m})}e.s(["CategoryOverviewCard",()=>n],997741),e.s([],750254)},523782,e=>{"use strict";var t=e.i(843476);e.i(750254);var a=e.i(997741);e.i(149797);var r=e.i(967224);e.i(716787);var l=e.i(659544);e.i(527967);var i=e.i(830167),n=e.i(861745),s=e.i(948148),o=e.i(271645),c=e.i(579053),d=e.i(186301),u=e.i(980401);function m(e,t){return[t.mobile?`cps--${e}-mobile`:"",t.tablet?`cps--${e}-tablet`:"",t.desktop?`cps--${e}-desktop`:""].filter(Boolean)}function h(e){return e.desktop||e.tablet||e.mobile}function p(e){let{instanceId:p,source:g,items:v,slidesPerView:x,carouselInfinite:b,carouselIndicators:f,carouselControls:w}=e,y=(0,s.useTranslations)(),j=(0,n.useLocale)(),N=(0,o.useId)(),_=(0,o.useMemo)(()=>{let e;return(e=p?.trim())?e.replace(/[^a-zA-Z0-9_-]/g,"-"):N.replace(/:/g,"")},[p,N]),k=`cps-prev-${_}`,C=`cps-next-${_}`,S=`cps-dots-${_}`,{effectiveControls:L,effectiveIndicators:I}=(0,o.useMemo)(()=>{var e;let t,a,r;return e=v.length,t={mobile:e>x.mobile,tablet:e>x.tablet,desktop:e>x.desktop},a={mobile:w.mobile&&t.mobile,tablet:w.tablet&&t.tablet,desktop:w.desktop&&t.desktop},r={mobile:f.mobile&&t.mobile,tablet:f.tablet&&t.tablet,desktop:f.desktop&&t.desktop},{canSlide:t,effectiveControls:a,effectiveIndicators:r}},[v.length,x,w,f]),z=(0,o.useMemo)(()=>h(L),[L]),A=(0,o.useMemo)(()=>h(I),[I]);if(0===v.length)return null;let q=Math.max(x.desktop,x.tablet,x.mobile),E=b&&v.length>q,$=[...m("controls",L),...m("indicators",I)].join(" ");return(0,t.jsxs)("div",{className:`cps ${$}`.trim(),children:[(0,t.jsxs)("div",{className:"cps__viewport",children:[z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Button,{type:"button",variant:"primary","aria-label":y("previous"),className:`${k}
120 cps__arrow cps__arrow--prev !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(i.ArrowIcon,{className:"h-3.5 w-4 rotate-180"})}),(0,t.jsx)(l.Button,{type:"button",variant:"primary","aria-label":y("next"),className:`${C} cps__arrow cps__arrow--next !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(i.ArrowIcon,{className:"h-3.5 w-4"})})]}):null,(0,t.jsx)(u.Swiper,{modules:[c.Navigation,d.Pagination],loop:E,watchOverflow:!0,centerInsufficientSlides:!0,slidesPerView:x.mobile,spaceBetween:16,navigation:!!z&&{prevEl:`.${k}`,nextEl:`.${C}`},pagination:!!A&&{clickable:!0,el:`.${S}`},breakpoints:{0:{slidesPerView:x.mobile,spaceBetween:16},768:{slidesPerView:x.tablet,spaceBetween:16},1024:{slidesPerView:x.desktop,spaceBetween:24}},className:"cps__swiper",children:"product"===g?v.map(e=>(0,t.jsx)(u.SwiperSlide,{children:(0,t.jsx)(r.ProductTileOne,{title:e.title,imageSrc:e.imageSrc,href:e.href,originLabel:y("origin"),casLabel:y("cas_number"),hsLabel:y("hs_code"),inquireLabel:y("inquire_now"),originValue:e.originValue,casValue:e.casValue,hsValue:e.hsValue})},String(e.id))):v.map(e=>{let r;return(0,t.jsx)(u.SwiperSlide,{children:(0,t.jsx)(a.CategoryOverviewCard,{image:e.image,name:e.name,counts:(r=e.productCount,`${new Intl.NumberFormat(j).format(r)} ${y("products")}`),href:e.href})},String(e.id))})})]}),A?(0,t.jsx)("div",{className:`cps__indicators ${S} !relative !bottom-auto !left-auto !right-auto !top-auto !w-auto [&_.swiper-pagination-bullet]:!m-0`}):null]})}e.s(["CategoryProductSliderSection",()=>p])},658512,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(858237),a=a;function r({className:e="",...a}){return(0,t.jsx)("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:`mx-auto flex w-full justify-center ${e}`,...a})}function l({className:e="",...a}){return(0,t.jsx)("ul",{className:`flex items-center md:gap-[var(--pagination-gap-desktop)] ${e}`,...a})}function i({...e}){return(0,t.jsx)("li",{"data-slot":"pagination-item",...e})}function n({className:e="",isActive:a,children:r,...l}){let i=!0===l["aria-disabled"];return(0,t.jsx)("a",{"aria-current":a?"page":void 0,"data-slot":"pagination-link",className:`
121                flex items-center justify-center
122                min-w-[32px] h-[32px]
123                px-[12px]
124                text-sm body-small
125                font-[var(--pagination-link-weight)]!
126                rounded-md
127                transition
128                ${i?"pointer-events-none opacity-50 cursor-not-allowed":""}
129                ${a?"bg-[var(--pagination-bg-active)] text-[var(--pagination-color-active)]":"text-[var(--pagination-color)]"}
130                ${e}
131            `,...l,children:r})}function s({className:e="",text:r="Previous",disabled:l=!1,...i}){return(0,t.jsxs)(n,{"aria-label":"Go to previous page","aria-disabled":l,tabIndex:l?-1:void 0,className:`gap-2 text-[var(--pagination-muted)] hover:text-[var(--pagination-color)] ${e}`,...i,children:[(0,t.jsx)(a.default,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"text-[length:var(--pagination-caption-size-mobile)] md:text-[length:var(--pagination-caption-size-desktop)]",children:r})]})}function o({className:e="",text:r="Next",disabled:l=!1,...i}){return(0,t.jsxs)(n,{"aria-label":"Go to previous page","aria-disabled":l,tabIndex:l?-1:void 0,className:`gap-2 text-[var(--pagination-color)] hover:text-[var(--pagination-muted)] ${e}`,...i,children:[(0,t.jsx)("span",{className:"text-[length:var(--pagination-caption-size-mobile)] md:text-[length:var(--pagination-caption-size-desktop)]",children:r}),(0,t.jsx)(a.default,{className:"rotate-180 w-4 h-4"})]})}function c({className:e="",...a}){return(0,t.jsx)("span",{className:`flex items-center justify-center w-[36px] h-[36px] text-[var(--pagination-color)] ${e}`,...a,children:"..."})}e.s(["Pagination",()=>r,"PaginationContent",()=>l,"PaginationEllipsis",()=>c,"PaginationItem",()=>i,"PaginationLink",()=>n,"PaginationNext",()=>o,"PaginationPrevious",()=>s],658512)},678002,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(618566);e.i(79951);
131var l=e.i(76209),i=e.i(902936),n=e.i(659544),s=e.i(658512);e.i(527967);var o=e.i(830167);function c({title:e,Products:c=[]}){let d,u,m,h=(0,i.useRouter)(),p=(0,l.usePathname)(),g=(0,r.useSearchParams)(),v=(g.get("category")??"").toLowerCase(),x=(g.get("sort")??"asc").toLowerCase(),b=Number(g.get("page")??"1"),f=Number.isFinite(b)&&b>0?Math.floor(b):1,w=[...v&&"all-products"!==v?c.filter(e=>e.category.toLowerCase()===v):c].sort((e,t)=>("desc"===x?-1:1)*e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"})),y=Math.max(1,Math.ceil(w.length/9)),j=Math.min(f,y),N=(j-1)*9,_=w.slice(N,N+9),k=e=>{let t,a=new URLSearchParams(g.toString());return e<=1?a.delete("page"):a.set("page",String(e)),(t=a.toString())?`${p}?${t}`:p};return(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industries-products-list-gap-mobile)] md:gap-[var(--industries-products-list-gap-desktop)] w-full",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)("h3",{className:" text-[length:var(--industries-products-list-title-size-mobile)] md:text-[length:var(--industries-products-list-title-size-desktop)] leading-[var(--industries-products-list-title-line-mobile)] md:leading-[var(--industries-products-list-title-line-desktop)] font-[var(--industries-products-list-title-weight-mobile)] md:font-[var(--industries-products-list-title-weight-desktop)] text-start text-[var(--industries-products-list-title-color)]",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-[var(--industries-products-sort-gap
131)]",children:[(0,t.jsx)("span",{className:" text-[length:var(--industries-products-sort-title-size)] leading-[var(--industries-products-sort-title-line)] font-[var(--industries-products-sort-title-weight)] text-start text-[var(--industries-products-sort-title-color)]",children:"Sort by :"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:"desc"===x?"desc":"asc",onChange:e=>{let t=new URLSearchParams(g.toString()),a="desc"===e.target.value?"desc":"asc";"asc"===a?t.delete("sort"):t.set("sort",a),t.delete("page");let r=t.toString();h.push(r?`${p}?${r}`:p)},className:" appearance-none w-[var(--industries-products-dropdown-width)] border border-[var(--industries-products-dropdown-border-color)] text-[length:var(--industries-products-dropdown-option-size)] leading-[var(--industries-products-dropdown-option-line)] font-[var(--industries-products-dropdown-option-weight)] text-[var(--industries-products-dropdown-option-color)] px-[var(--industries-products-dropdown-padding-x)] pe-[var(--industries-products-dropdown-padding-r)] py-[var(--industries-products-dropdown-padding-y)] text-start rounded-[var(--industries-products-dropdown-radius)] bg-[var(--industries-products-dropdown-bg)] outline-none cursor-pointer ",children:[(0,t.jsx)("option",{value:"asc",children:"Ascending (A-Z)"}),(0,t.jsx)("option",{value:"desc",children:"Descending (Z-A)"})]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--industries-products-dropdown-arrow-right)] flex items-center",children:(0,t.jsx)(o.ArrowIcon,{className:"w-[12px] h-[12px] rotate-90 text-[var(--industries-products-dropdown-arrow-color)]"})})]})]})]}),_.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-y-[var(--industries-products-grid-card-gap-y-mobile)] md:gap-y-[var(--industries-products-grid-card-gap-y-desktop)] gap-x-[var(--industries-products-grid-card-gap-x)]",children:_.map(e=>(0,t.jsxs)("div",{className:" flex flex-col rounded-b-[var(--industries-products-grid-card-bottom-radius)] bg-[var(--industries-products-grid-card-bg)] shadow-[var(--industries-products-grid-card-shadow)] hover:shadow-[var(--industries-products-grid-card-shadow-hover)] overflow-hidden ",children:[(0,t.jsxs)("div",{className:"relative w-full bg-[var(--industries-products-tile-bg)]",children:[(0,t.jsx)(a.default,{src:e.image,alt:e.name,width:260,height:260,className:"w-full max-h-[200px] object-cover"}),(0,t.jsx)("span",{className:" absolute capitalize rounded-[var(--industries-products-tile-badge-radius)] top-[var(--industries-products-tile-badge-gap-top)] start-[var(--industries-products-tile-badge-gap-left)] py-[var(--industries-products-tile-badge-padding-y)] px-[var(--industries-products-tile-badge-padding-x)] text-[length:var(--industries-products-tile-badge-size)] leading-[var(--industries-products-tile-badge-line)] font-[var(--industries-products-tile-badge-weight)] text-start text-[var(--industries-products-tile-badge-color)] bg-[var(--industries-products-tile-badge-bg)]  ",children:e.badge})]}),(0,t.jsxs)("div",{className:" flex flex-col bg-[var(--industries-products-tile-bg)] pt-[var(--industries-products-tile-padding-top)] pb-[var(--industries-products-tile-padding-bottom)] px-[var(--industries-products-tile-padding-x)] gap-[var(--industries-products-tile-gap)] h-full",children:[(0,t.jsx)("h3",{className:" text-[length:var(--industries-products-tile-title-size-mobile)] md:text-[length:var(--industries-products-tile-title-size-desktop)] leading-[var(--industries-products-tile-title-line-mobile)] md:leading-[var(--industries-products-tile-title-line-desktop)] font-[var(--industries-products-tile-title-weight-mobile)] md:font-[var(--industries-products-tile-title-weight-desktop)] text-start text-[var(--industries-products-tile-title-color)]",children:e.name}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsxs)("p",{className:" flex justify-between w-full text-[length:var(--industries-products-tile-subtitle-size)] leading-[var(--industries-products-tile-subtitle-line)] font-[var(--industries-products-tile-subtitle-value-we
131ight)] text-start text-[var(--industries-products-tile-subtitle-value-color)]",children:[(0,t.jsx)("span",{className:" text-[length:var(--industries-products-tile-subtitle-size)] leading-[var(--industries-products-tile-subtitle-line)] font-[var(--industries-products-tile-subtitle-weight)] text-start text-[var(--industries-products-tile-subtitle-color)]",children:"CAS NUMBER:"})," ",e.casNumber]})}),(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsxs)("p",{className:" flex justify-between w-full text-[length:var(--industries-products-tile-subtitle-size)] leading-[var(--industries-products-tile-subtitle-line)] font-[var(--industries-products-tile-subtitle-value-weight)] text-start text-[var(--industries-products-tile-subtitle-value-color)]",children:[(0,t.jsx)("span",{className:" text-[length:var(--industries-products-tile-subtitle-size)] leading-[var(--industries-products-tile-subtitle-line)] font-[var(--industries-products-tile-subtitle-weight)] text-start text-[var(--industries-products-tile-subtitle-color)]",children:"HS CODE:"})," ",e.hsCode]})})]}),(0,t.jsx)(n.Button,{variant:"primary",href:"#",className:"w-full mt-auto uppercase text-[var(--industries-products-cta-text-color)]! py-[var(--industries-products-cta-padding-y)]!",children:"Inquire Now"})]})]},e.id))}),(0,t.jsx)("div",{className:"md:pt-[var(--pagination-padding-top-desktop)]",children:(0,t.jsx)(s.Pagination,{children:(0,t.jsxs)(s.PaginationContent,{children:[(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationPrevious,{href:k(Math.max(1,j-1)),disabled:j<=1})}),(d=Math.max(1,(u=Math.min(y,(d=Math.max(1,j-1))+2))-2),m=Array.from({length:u-d+1},(e,t)=>d+t),(0,t.jsxs)(t.Fragment,{children:[d>1&&(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationLink,{href:k(1),isActive:1===j,children:"1"})}),d>2&&(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationEllipsis,{})}),m.map(e=>(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationLink,{href:k(e),isActive:e===j,children:e})},e)),u<y-1&&(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationEllipsis,{})}),u<y&&(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationLink,{href:k(y),isActive:y===j,children:y})})]})),(0,t.jsx)(s.PaginationItem,{children:(0,t.jsx)(s.PaginationNext,{href:k(Math.min(y,j+1)),disabled:j>=y})})]})})})]})}e.s(["ProductsListSection",()=>c,"ProductsListTile",()=>c])},592042,e=>{"use strict";e.i(863975),e.s([])},313878,e=>{"use strict";var t=e.i(271645),a=e.i(861745);function r(){let e=(0,a.useLocale)();return(0,t.useEffect)(()=>{if("/"!==window.location.pathname)return;let t=`/${e}${window.location.search}${window.location.hash}`;window.history.replaceState(window.history.state,"",t)},[e]),null}e.s(["RootLocaleUrlSync",()=>r])},78556,e=>{"use strict";var t=e.i(843476);e.i(233568);var a=e.i(981743);function r({layout:e="inline",className:r,...l}){let i="sidebar"===e;return(0,t.jsx)(a.FilterBar,{...l,layout:i||"stacked"===e?"stacked":"inline",className:[i?"filter-bar--sidebar":"",r].filter(Boolean).join(" ")})}e.s(["FilterBar",()=>r])},290365,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(830167);let l="inline-flex items-center gap-[var(--page-banner-cta-arrow-gap)]";function i({button:e}){let{text:i,link:n,variant:s,showArrow:o}=e,c="outlined"===s?"btn btn-outlined":"btn btn-primary",d=(0,t.jsxs)(t.Fragment,{children:[i,o?(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-2 shrink-0 rtl:rotate-180","aria-hidden":!0}):null]});return n?(0,t.jsx)(a.Button,{href:n,variant:s,className:l,children:d}):(0,t.jsx)("span",{className:`${c} ${l}`,children:d})}e.s(["PageBannerButton",()=>i])},768669,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(830167);let l="inline-flex items-center gap-[var(--page-banner-cta-arrow-gap)]";function i({button:e}){let{text:i,link:n,variant:s,showArrow:o}=e,c="outlined"===s?"btn btn-outlined":"btn btn-primary",d=(0,t.jsxs)(t.Fragment,{children:[i,o?(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-2 shrink-0 rtl:rotate-180","aria-hidden":!0}):null]});return n?(0,t.jsx)(a.Button,{href:n,variant:s,className:l,children:d}):(0,t.jsx)("span",{className:`${c} ${l}`,children:d})}e.s(["PageBannerButton",()=>i])},401640,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(830167);
131let l="inline-flex items-center gap-[var(--page-banner-cta-arrow-gap)]";function i({button:e}){let{text:i,link:n,variant:s,showArrow:o}=e,c="outlined"===s?"btn btn-outlined":"btn btn-primary",d=(0,t.jsxs)(t.Fragment,{children:[i,o?(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-2 shrink-0 rtl:rotate-180","aria-hidden":!0}):null]});return n?(0,t.jsx)(a.Button,{href:n,variant:s,className:l,children:d}):(0,t.jsx)("span",{className:`${c} ${l}`,children:d})}e.s(["PageBannerButton",()=>i])},399821,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(830167);let l="inline-flex items-center gap-[var(--page-banner-cta-arrow-gap)]";function i({button:e}){let{text:i,link:n,variant:s,showArrow:o}=e,c="outlined"===s?"btn btn-outlined":"btn btn-primary",d=(0,t.jsxs)(t.Fragment,{children:[i,o?(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-2 shrink-0 rtl:rotate-180","aria-hidden":!0}):null]});return n?(0,t.jsx)(a.Button,{href:n,variant:s,className:l,children:d}):(0,t.jsx)("span",{className:`${c} ${l}`,children:d})}e.s(["PageBannerButton",()=>i])},584653,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(830167);let l="inline-flex items-center gap-[var(--page-banner-cta-arrow-gap)]";function i({button:e}){let{text:i,link:n,variant:s,showArrow:o}=e,c="outlined"===s?"btn btn-outlined":"btn btn-primary",d=(0,t.jsxs)(t.Fragment,{children:[i,o?(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-2 shrink-0 rtl:rotate-180","aria-hidden":!0}):null]});return n?(0,t.jsx)(a.Button,{href:n,variant:s,className:l,children:d}):(0,t.jsx)("span",{className:`${c} ${l}`,children:d})}e.s(["PageBannerButton",()=>i])},28249,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(830167);let l="inline-flex items-center gap-[var(--page-banner-cta-arrow-gap)]";function i({button:e}){let{text:i,link:n,variant:s,showArrow:o}=e,c="outlined"===s?"btn btn-outlined":"btn btn-primary",d=(0,t.jsxs)(t.Fragment,{children:[i,o?(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-2 shrink-0 rtl:rotate-180","aria-hidden":!0}):null]});return n?(0,t.jsx)(a.Button,{href:n,variant:s,className:l,children:d}):(0,t.jsx)("span",{className:`${c} ${l}`,children:d})}e.s(["PageBannerButton",()=>i])},971301,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r(e){return e.startsWith("#")?e.slice(1):e}function l({items:e}){let l=(0,a.useMemo)(()=>e.map(e=>r(e.href)).filter(Boolean),[e]),[i,n]=(0,a.useState)(l[0]??null);return(0,a.useEffect)(()=>{let e=l.map(e=>document.getElementById(e)).filter(e=>!!e);if(!e.length)return;let t=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>(e.boundingClientRect.top??0)-(t.boundingClientRect.top??0));t[0]?.target&&n(t[0].target.id)},{root:null,rootMargin:"-30% 0px -60% 0px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});for(let a of e)t.observe(a);return()=>t.disconnect()},[l]),(0,t.jsx)("nav",{className:"lca-toc-list","aria-label":"Table of contents",children:e.map(e=>{let a=r(e.href),l=!!(a&&i===a);return(0,t.jsx)("a",{href:e.href,className:"lca-toc-link","data-active":l?"":void 0,"aria-current":l?"location":void 0,children:e.label},e.href)})})}e.s(["StickyToc",()=>l])},884165,e=>{"use strict";var t=e.i(843476);function a({title:e,subtitle:a}){return(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industrial-applications-header-gap)] text-center md:text-start",children:[(0,t.jsx)("h1",{className:" text-[length:var(--industrial-applications-header-title-size-mobile)] leading-[var(--industrial-applications-header-title-line-mobile)] font-[var(--industrial-applications-header-title-weight-mobile)] md:text-[length:var(--industrial-applications-header-title-size-desktop)] md:leading-[var(--industrial-applications-header-title-line-desktop)] md:font-[var(--industrial-applications-header-title-weight-desktop)] text-[var(--industrial-applications-header-title-color)] rtl:tracking-normal ",children:e}),a&&(0,t.jsx)("p",{className:" tracking-[-0.008em] rtl:tracking-normal text-[length:var(--industrial-applications-header-text-size-mobile)] leading-[var(--industrial-applications-header-text-line-mobile)] md:text-[length:var(--industrial-applications-header-text-size-desktop)] md:leading-[var(--industrial-applications-header-text-line-desktop)] font-[var(--industrial-applications-header-text-weight-mobile)] md:font-[var(--industrial-applications-header-text-weight-desktop)] ",children:a})]})})}e.s(["QuickInquiryHeader",()=>a])},696850,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(614326);e.i(527967);var l=e.i(387946),i=e.i(578938);function n({documentUrl:e,label:n,requireAuth:s=!0}){let[o,c]=(0,a.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:"mib-card-report",onClick:t=>{t.preventDefault(),t.stopPropagation();let a=(0,i.getAuthToken)();s&&!a?c(!0):window.open(e,"_blank","noopener,noreferrer")},children:[(0,t.jsx)(l.DocumentIcons,{className:"mib-card-meta-icon","aria-hidden":!0}),(0,t.jsx)("span",{children:n})]}),(0,t.jsx)(r.default,{isOpen:o,onClose:()=>c(!1)})]})}e.s(["LaunchReportLink",()=>n])},722024,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(583239),r=e.i(830167);function l(){return(0,t.jsxs)("div",{className:"floating-btn",children:[(0,t.jsx)("button",{type:"button",className:"arrow-up",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},"aria-label":"Back to Top",children:(0,t.jsx)(r.ArrowIcon,{className:"h-4 w-4 -rotate-90","aria-hidden":!0})}),(0,t.jsx)("a",{className:"whatsapp whatsapp-scrolltip",href:"https://api.whatsapp.com/se
131nd?phone=6287761101633",target:"_blank",rel:"nofollow noopener noreferrer","aria-label":"Open WhatsApp Chat",children:(0,t.jsx)(a.WhatsappIcon,{className:"h-[var(--floating-icon-size)] w-[var(--floating-icon-size)]","aria-hidden":!0})})]})}e.s(["FloatingActions",()=>l])},166966,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r({descriptionHtml:e,applicationHtml:r,labels:l}){let[i,n]=(0,a.useState)("description"),s=[{id:"description",label:l.description,html:e},{id:"application",label:l.application,html:r}],o=s.find(e=>e.id===i)??s[0];return(0,t.jsxs)("div",{className:"pdp-tabs",children:[(0,t.jsx)("div",{className:"pdp-tabs-nav",role:"tablist","aria-label":"Product details",children:s.map(e=>{let a=e.id===i;return(0,t.jsx)("button",{type:"button",role:"tab",id:`pdp-tab-${e.id}`,"aria-selected":a,"aria-controls":`pdp-panel-${e.id}`,tabIndex:a?0:-1,className:`pdp-tab-btn${a?" is-active":""}`,onClick:()=>n(e.id),children:e.label},e.id)})}),(0,t.jsx)("div",{className:"pdp-tabs-panel",role:"tabpanel",id:`pdp-panel-${o.id}`,"aria-labelledby":`pdp-tab-${o.id}`,children:o.html?(0,t.jsx)("div",{className:"pdp-tabs-content",dangerouslySetInnerHTML:{__html:o.html}}):(0,t.jsx)("p",{className:"pdp-tabs-empty",children:"—"})})]})}e.s(["ProductDetailTabs",()=>r])},807354,e=>{"use strict";var t=e.i(843476);function a({title:e,subtitle:a}){return(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industrial-applications-header-gap)] text-center md:text-start",children:[(0,t.jsx)("h1",{className:" text-[length:var(--industrial-applications-header-title-size-mobile)] leading-[var(--industrial-applications-header-title-line-mobile)] font-[var(--industrial-applications-header-title-weight-mobile)] md:text-[length:var(--industrial-applications-header-title-size-desktop)] md:leading-[var(--industrial-applications-header-title-line-desktop)] md:font-[var(--industrial-applications-header-title-weight-desktop)] text-[var(--industrial-applications-header-title-color)] rtl:tracking-normal ",children:e}),a&&(0,t.jsx)("p",{className:" tracking-[-0.008em] rtl:tracking-normal text-[length:var(--industrial-applications-header-text-size-mobile)] leading-[var(--industrial-applications-header-text-line-mobile)] md:text-[length:var(--industrial-applications-header-text-size-desktop)] md:leading-[var(--industrial-applications-header-text-line-desktop)] font-[var(--industrial-applications-header-text-weight-mobile)] md:font-[var(--industrial-applications-header-text-weight-desktop)] ",children:a})]})})}e.s(["IndustrialApplicationsHeader",()=>a])},477798,114994,e=>{"use strict";function t(e){let t=e.text?.trim()??"";return t?{text:t,link:e.link?.trim()??"",variant:"outlined"===(e.type?.trim().toLowerCase()??"")?"outlined":"primary",showArrow:!0===e.show_arrow||1===e.show_arrow}:null}function a(e){let t="string"==typeof e?Number(e):e;return"number"!=typeof t||Number.isNaN(t)?350:Math.min(700,Math.max(300,Math.round(t)))}function r(e,t){return!1!==e&&0!==e&&(!0===e||1===e||!1!==t)}function l(e){let t=e?.trim().toLowerCase()??"";return"text-center"===t||"center"===t?"text-center":"text-end"===t||"end"===t?"text-end":"text-start"}function i(e){return{text:e,column:"text-center"===e?"items-center":"text-end"===e?"items-end":"items-start",buttons:"text-center"===e?"justify-center":"text-end"===e?"justify-end":"justify-start",block:"text-center"===e?"mx-auto":"text-end"===e?"ms-auto":""}}e.s(["resolvePageBannerButton",()=>t],477798),e.s(["pageBannerAlignClasses",()=>i,"resolvePageBannerHeight",()=>a,"resolvePageBannerOverlay",()=>r,"resolvePageBannerTextAlign",()=>l],114994)},325056,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r({descriptionHtml:e,applicationHtml:r,labels:l}){let[i,n]=(0,a.useState)("description");return(0,t.jsxs)("div",{className:"pdp-tabs mt-[var(--pdp-tabs-mt)]",children:[(0,t.jsxs)("div",{className:"pdp-tab-bar flex",children:[(0,t.jsx)("button",{type:"button",className:["pdp-tab-btn","description"===i?"is-active":null].filter(Boolean).join(" "),onClick:()=>n("description"),"aria-label":l.description,children:l.description}),(0,t.jsx)("button",{type:"button",className:["pdp-tab-btn","application"===i?"is-active":null].filter(
131Boolean).join(" "),onClick:()=>n("application"),"aria-label":l.application,children:l.application})]}),(0,t.jsx)("div",{className:"pdp-tab-content tab-content-lc",children:"description"===i?(0,t.jsx)("div",{className:"pdp-tab-pane",dangerouslySetInnerHTML:{__html:e}}):(0,t.jsx)("div",{className:"pdp-tab-pane",dangerouslySetInnerHTML:{__html:r}})})]})}e.s(["ProductDetailTabs",()=>r])},560428,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(716787);var r=e.i(659544),l=e.i(614326),i=e.i(578938);function n({documentUrl:e,label:n="Get the Document",requireAuth:s=!0}){let[o,c]=(0,a.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"outlined",type:"button",onClick:()=>{s&&!(0,i.getAuthToken)()?c(!0):window.open(e,"_blank","noopener,noreferrer")},className:"inline-flex items-center justify-center",children:n}),(0,t.jsx)(l.default,{isOpen:o,onClose:()=>c(!1)})]})}e.s(["PostDocCtaButton",()=>n])},758639,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(716787);var r=e.i(659544),l=e.i(614326),i=e.i(578938);function n({documentUrl:e,label:n="Get the Document",requireAuth:s=!0}){let[o,c]=(0,a.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"outlined",type:"button",onClick:()=>{s&&!(0,i.getAuthToken)()?c(!0):window.open(e,"_blank","noopener,noreferrer")},className:"inline-flex items-center justify-center",children:n}),(0,t.jsx)(l.default,{isOpen:o,onClose:()=>c(!1)})]})}e.s(["PostDocCtaButton",()=>n])},21403,e=>{"use strict";var t=e.i(843476),a=e.i(765232);let r={1:"grid grid-cols-1 gap-x-[var(--blog-card-grid-gap-x)] gap-y-[var(--blog-card-grid-gap-y)] md:grid-cols-2 mb-[var(--blog-card-grid-margin-bottom)]"},l={1:"grid grid-cols-1 gap-x-[var(--blog-card-grid-gap-x)] gap-y-[var(--blog-card-grid-gap-y)] md:grid-cols-1 mb-[var(--blog-card-grid-margin-bottom)]"};function i({title:e,subtitle:i,blogs:n,columns:s,isLoading:o=!1,skeletonCount:c=s,variant:d="default"}){let u=o?Array.from({length:c},(e,t)=>({image:"",label:"",title:`Loading blog ${t+1}`,categories:[],description:"Loading description",date:"",author:"",link:"#",readTime:""})):n,m="search-result"===d?l[s]:r[s];return(0,t.jsx)("section",{children:(0,t.jsxs)("div",{children:[(e||i)&&(0,t.jsxs)("header",{className:"mb-[var(--blog-card-section-header-gap)] space-y-[var(--blog-card-section-header-inner-gap)]",children:[i&&(0,t.jsx)("p",{className:"text-start text-[length:var(--blog-card-section-subtitle-size)] font-[var(--blog-card-section-subtitle-weight)] leading-[var(--blog-card-section-subtitle-line-height)] text-[var(--blog-card-section-subtitle-color)]",children:i}),e&&(0,t.jsx)("h2",{className:"text-start text-[length:var(--blog-card-section-title-size-mobile)] font-[var(--blog-card-section-title-weight)] leading-[var(--blog-card-section-title-line-height-mobile)] text-[var(--blog-card-section-title-color)] md:text-[length:var(--blog-card-section-title-size-desktop)] md:leading-[var(--blog-card-section-title-line-height-desktop)]",children:e})]}),(0,t.jsx)("div",{className:m,children:u.map(({image:e,label:r,title:l,categories:i,description:n,date:s,author:c,link:u,linkIsDocument:m,readTime:h},p)=>(0,t.jsx)(a.BlogCard,{image:e,label:r,title:l,categories:i,description:n,date:s,author:c,link:u,linkIsDocument:m,readTime:h,isLoading:o,variant:d},`${l}-${p}`))})]})})}e.s(["BlogCardSectionComponent",()=>i])},600872,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645);function l({images:e,productName:l}){let[i,n]=(0,r.useState)(0),s=e.map(e=>e.url).join("|");(0,r.useEffect)(()=>{n(0)},[l,s]);let o=0===e.length?0:Math.min(i,e.length-1),c=e[o]??e[0];return c?(0,t.jsxs)("div",{className:"pdp-gallery-premium",children:[(0,t.jsx)("div",{className:"pdp-image-wrap-premium",children:(0,t.jsx)(a.default,{src:c.url,alt:c.alt?.trim()||l,width:700,height:700,className:"pdp-image-premium",priority:!0})}),e.length>1?(0,t.jsx)("div",{className:"pdp-thumbs-premium",role:"listbox","aria-label":l,children:e.map((e,r)=>{let i=r===o;return(0,t.jsx)("button",{type:"button",role:"option","aria-selected":i,className:`pdp-thumb-premium${i?" is-active":""}`,onClick:()=>n(r),children:(0,t.jsx)(a.default,{src:e.url,alt:e.alt?.trim()||l,width:80,height:80,className:"pdp-thumb-image-premium"})},`${e.url}-${r}`)})}):null]}):(0,t.jsx)("div",{className:"pdp-gallery-premium",children:(0,t.jsx)("div",{className:"pdp-image-wrap-premium",children:(0,t.jsx)("div",{className:"pdp-image-placeholder-premium"})})})}e.s(["ProductImageGallery",()=>l])},630013,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645);function l({images:e,productName:l}){let[i,n]=(0,r.useState)(0),s=e[i]??e[0];return(0,t.jsxs)("div",{className:"pdp-modern__gallery",children:[(0,t.jsxs)("div",{className:"pdp-modern__image-frame",children:[(0,t.jsx)("span",{className:"pdp-modern__image-placeholder","aria-hidden":!0}),s?(0,t.jsx)(a.default,{src:s.url,alt:s.alt||l,fill:!0,priority:!0,sizes:"(max-width: 1023px) calc(100vw - 48px), 42vw",className:"pdp-modern__image",onError:e=>{e.currentTarget.style.display="none"}},s.url):null]}),e.length>1?(0,t.jsx)("div",{className:"pdp-modern__thumbnails",role:"group","aria-label":`${l} images`,children:e.map((e,r)=>{let s=r===i;return(0,t.jsxs)("button",{type:"button",className:`pdp-modern__thumbnail${s?" is-active":""}`,"aria-label":`View ${l} image ${r+1}`,"aria-pressed":s,onClick:()=>n(r),children:[(0,t.jsx)("span",{className:"pdp-modern__thumbnail-placeholder","aria-hidden":!0}),(0,t.jsx)(a.default,{src:e.url,alt:"",fill:!0,sizes:"72px",className:"pdp-modern__thumbnail-image",onError:e=>{e.currentTarget.style.display="none"}})]},`${e.url}-${r}`)})}):null]})}e.s(["ProductImageGallery",()=>l])},744891,e=>{"use strict";var t=e.i(76209),a=e.i(618566),r=e.i(271645),l=e.i(835352);function i(){let e=(0,t.usePathname)(),i=(0,a.useSearchParams)(),n=`${e}?${i.toString()}`;return(0,r.useLayoutEffect)(()=>{let e=(0,l.getActiveNavigationId)();if(null==e)return;
131let t=null,a=null,r=null,i=null,s=!1,o=()=>{s||(0,l.dispatchNavProgressComplete)(e,n)};return t=window.requestAnimationFrame(()=>{a=window.requestAnimationFrame(()=>{if("function"==typeof window.requestIdleCallback){r=window.requestIdleCallback(o,{timeout:1200});return}i=window.setTimeout(o,80)})}),()=>{s=!0,null!=t&&window.cancelAnimationFrame(t),null!=a&&window.cancelAnimationFrame(a),null!=r&&"function"==typeof window.cancelIdleCallback&&window.cancelIdleCallback(r),null!=i&&window.clearTimeout(i)}},[n]),null}e.s(["NavigationProgressCompleteSignal",()=>i])},689483,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(744891);function l(){return(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(r.NavigationProgressCompleteSignal,{})})}e.s(["NavigationProgressCompleteSignalBoundary",()=>l])},535477,e=>{"use strict";var t=e.i(843476);e.i(79951);var a=e.i(902936),r=e.i(948148);function l({heading:e,questions:l,emptyMessage:i}){let n=(0,r.useTranslations)(),s=i??n("no_entries_yet");return(0,t.jsxs)("aside",{className:"pq-p-panel",children:[(0,t.jsx)("h2",{className:"pq-p-heading",children:e}),0===l.length?(0,t.jsx)("p",{className:"pq-p-empty",children:s}):(0,t.jsx)("ul",{className:"pq-p-list",children:l.map(e=>(0,t.jsx)("li",{className:"pq-p-item",children:(0,t.jsxs)(a.Link,{className:"pq-p-item__link",href:e.link,children:[(0,t.jsx)("span",{className:"pq-p-item__badge","aria-hidden":"true",children:"?"}),(0,t.jsxs)("span",{className:"pq-p-item__body",children:[(0,t.jsx)("span",{className:"pq-p-item__title",children:e.title}),(0,t.jsxs)("span",{className:"pq-p-item__answers",children:[e.answerCount," ",1===e.answerCount?n("answer_singular"):n("answers_plural")]})]})]})},e.id))})]})}e.s(["CommunityPopularQuestions",()=>l])},767920,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r(e){return e.startsWith("#")?e.slice(1):e}function l({items:e}){let l=(0,a.useMemo)(()=>e.map(e=>r(e.href)).filter(Boolean),[e]),[i,n]=(0,a.useState)(l[0]??null);return(0,a.useEffect)(()=>{let e=l.map(e=>document.getElementById(e)).filter(e=>!!e);if(!e.length)return;let t=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>(e.boundingClientRect.top??0)-(t.boundingClientRect.top??0));t[0]?.target&&n(t[0].target.id)},{root:null,rootMargin:"-30% 0px -60% 0px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});for(let a of e)t.observe(a);return()=>t.disconnect()},[l]),(0,t.jsx)("div",{className:"grid-tab flex flex-col gap-2",children:e.map(e=>{let a=r(e.href),l=a&&i===a;return(0,t.jsx)("a",{href:e.href,className:["toc-link","text-start","text-[var(--lc-article-toc-link-color)]","hover:text-[var(--lc-article-toc-link-hover)]","hover:bg-[var(--lc-article-toc-link-hover-bg)]","text-[length:var(--lc-article-toc-link-size)]","py-3 px-5","leading-[var(--lc-article-toc-link-lh)]","font-[var(--lc-article-toc-link-weight)]","hover:font-[var(--lc-article-toc-link-hover-weight)]",l?"text-[var(--lc-article-toc-link-hover)] bg-[var(--lc-article-toc-link-hover-bg)] font-[var(--lc-article-toc-link-hover-weight)]":null].filter(Boolean).join(" "),"aria-current":l?"location":void 0,children:e.label},e.href)})})}e.s(["StickyToc",()=>l])},485377,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r({descriptionHtml:e,applicationHtml:r,labels:l}){let i="pdp-modern-details",n=(0,a.useRef)([]),s=[{id:"description",label:l.description,html:e},{id:"application",label:l.application,html:r}].filter(e=>e.html.trim().length>0),[o,c]=(0,a.useState)(s[0]?.id??"description");if(0===s.length)return null;let d=s.find(e=>e.id===o)??s[0];return(0,t.jsxs)("section",{className:"pdp-modern__tabs","aria-label":"Product details",children:[(0,t.jsx)("div",{className:"pdp-modern__tabs-nav",role:"tablist","aria-label":"Product details",children:s.map((e,a)=>{let r=e.id===d.id,l=`${i}-${e.id}-tab`,o=`${i}-${e.id}-panel`;return(0,t.jsx)("button",{ref:e=>{n.current[a]=e},type:"button",role:"tab",id:l,"aria-selected":r,"aria-controls":o,tabIndex:r?0:-1,className:`pdp-modern__tab${r?" is-active":""}`,onClick:()=>c(e.id),onKeyDown:e=>(function(e,t){let a="rtl"===document.documentElement.dir,r=null;if("Home"===e.key&&(r=0),"End"===e.key&&(r=s.length-1),"ArrowRight"===e.key&&(r=(t+(a?-1:1)+s.length)%s.length),"ArrowLeft"===e.key&&(r=(t+(a?1:-1)+s.length)%s.length),null!=r){var l;let t;e.preventDefault(),(t=s[l=r])&&(c(t.id),n.current[l]?.focus())}})(e,a),children:e.label},e.id)})}),(0,t.jsx)("div",{className:"pdp-modern__tab-panel",role:"tabpanel",id:`${i}-${d.id}-panel`,"aria-labelledby":`${i}-${d.id}-tab`,tabIndex:0,children:(0,t.jsx)("div",{className:"pdp-modern__rich-text",dangerouslySetInnerHTML:{__html:d.html}}
131)})]})}e.s(["ProductDetailTabs",()=>r])},153961,e=>{"use strict";var t=e.i(843476),a=e.i(271645);function r({rows:e,keyOffset:a=0}){return(0,t.jsx)(t.Fragment,{children:e.map((e,r)=>(0,t.jsxs)("div",{className:"pdp-specs-row",children:[(0,t.jsx)("dt",{className:"pdp-specs-label",children:e.label}),(0,t.jsx)("dd",{className:"pdp-specs-value",children:e.value})]},`${e.label}-${a+r}`))})}function l({rows:e}){let[l,i]=(0,a.useState)(!1),n=e.length>6,s=e.slice(0,6),o=n?e.slice(6):[];return(0,t.jsxs)("div",{className:"pdp-specs-panel",children:[(0,t.jsx)("dl",{className:"pdp-specs-table",children:(0,t.jsx)(r,{rows:s})}),n?(0,t.jsx)("div",{className:`pdp-specs-extra${l?" is-expanded":""}`,"aria-hidden":!l,children:(0,t.jsx)("div",{className:"pdp-specs-extra-inner",children:(0,t.jsx)("dl",{className:"pdp-specs-table",children:(0,t.jsx)(r,{rows:o,keyOffset:6})})})}):null,n?(0,t.jsx)("button",{type:"button",className:"pdp-specs-more","aria-expanded":l,onClick:()=>i(e=>!e),children:l?"Less":"More"}):null]})}e.s(["ProductSpecsTable",()=>l])},700483,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(632423);function i({title:e,imageSrc:i,href:n,inquireLabel:s}){let o="/contact-us";return(0,t.jsxs)("article",{className:"pto-standard",children:[(0,t.jsxs)(r.Link,{href:n,className:"pto-standard__link",children:[(0,t.jsx)("span",{className:"pto-standard__media",children:i?(0,t.jsx)(a.default,{src:i,alt:"",width:268,height:163,className:"pto-standard__image","aria-hidden":!0}):(0,t.jsx)("span",{className:"pto-standard__placeholder","aria-hidden":!0})}),(0,t.jsx)("span",{className:"pto-standard__body",children:(0,t.jsx)("h3",{className:"pto-standard__title",children:e})})]}),(0,t.jsx)("div",{className:"pto-standard__actions",children:(0,t.jsxs)(l.AuthGatedDocLink,{href:o,openInNewTab:!1,returnPathAfterAuth:o,className:"pto-standard__inquire",children:[s,(0,t.jsx)("span",{className:"pto-standard__inquire-arrow","aria-hidden":!0,children:"→"})]})})]})}e.s(["ProductTileOne",()=>i])},344888,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(632423);e.i(527967);var i=e.i(830167);function n({title:e,imageSrc:n,href:s,originLabel:o,casLabel:c,hsLabel:d,inquireLabel:u,originValue:m,casValue:h="",hsValue:p=""}){let g="/contact-us";return(0,t.jsxs)("article",{className:"pto-luxe",children:[(0,t.jsxs)(r.Link,{href:s,className:"pto-luxe__link",children:[(0,t.jsx)("div",{className:"pto-luxe__media","aria-hidden":!n,children:n?(0,t.jsx)(a.default,{src:n,alt:"",fill:!0,sizes:"(max-width: 639px) 85vw, (max-width: 1023px) 40vw, 220px",className:"pto-luxe__image"}):(0,t.jsx)("span",{className:"pto-luxe__placeholder"})}),(0,t.jsxs)("div",{className:"pto-luxe__body",children:[(0,t.jsx)("h3",{className:"pto-luxe__title",children:e}),(0,t.jsxs)("div",{className:"pto-luxe__meta",children:[m?(0,t.jsxs)("div",{className:"pto-luxe__meta-row",children:[(0,t.jsx)("span",{className:"pto-luxe__meta-label",children:o}),(0,t.jsx)("span",{className:"pto-luxe__meta-value notranslate",title:m,children:m})]}):null,h?(0,t.jsxs)("div",{className:"pto-luxe__meta-row",children:[(0,t.jsx)("span",{className:"pto-luxe__meta-label",children:c}),(0,t.jsx)("span",{className:"pto-luxe__meta-value notranslate",children:h})]}):null,p?(0,t.jsxs)("div",{className:"pto-luxe__meta-row",children:[(0,t.jsx)("span",{className:"pto-luxe__meta-label",children:d}),(0,t.jsx)("span",{className:"pto-luxe__meta-value notranslate",children:p})]}):null]})]})]}),(0,t.jsx)("div",{className:"pto-luxe__actions",children:(0,t.jsxs)(l.AuthGatedDocLink,{href:g,openInNewTab:!1,returnPathAfterAuth:g,className:"pto-luxe__inquire",children:[u,(0,t.jsx)(i.ArrowIcon,{className:"pto-luxe__inquire-icon rtl:rotate-180","aria-hidden":!0})]})})]})}e.s(["ProductTileOne",()=>n])},857493,e=>{"use strict";var t=e.i(843476),a=e.i(724960);e.i(527967);var r=e.i(830167),l=e.i(948148);let i="premium-all-products-sort";function n({total:e,sort:n,onSortChange:s,mobileFilterCount:o=0,onMobileFilterOpen:c,isMobileFilterOpen:d=!1}){let u=(0,l.useTranslations)(),m=!!c;return(0,t.jsxs)("div",{className:`apg-toolbar${m?"":" apg-toolbar--no-filter"}`,children:[(0,t.jsx)("p",{className:"apg-toolbar-count",children:u("showing_products",{count:e})}),(0,t.jsxs)("div",{className:"apg-toolbar-actions",children:[m?(0,t.jsx)("div",{className:"apg-toolbar-filter",children:(0,t.jsxs)("button",{type:"button",className:"apg-mobile-filter-trigger",onClick:c,"aria-haspopup":"dialog","aria-expanded":d,children:[(0,t.jsx)("span",{children:u("filter_products")}),o>0?(0,t.jsx)("span",{className:"apg-mobile-filter-trigger__count",children:o}):null]})}):null,(0,t.jsxs)("div",{className:"apg-toolbar-sort",children:[(0,t.jsx)("label",{htmlFor:i,className:a.ALL_PRODUCTS_LABEL_CLASS,children:u("sort_by_colon")}),(0,t.jsxs)("div",{className:"relative apg-toolbar-sort-select",children:[(0,t.jsxs)("select",{id:i,value:n,onChange:e=>s("desc"===e.target.value?"desc":"asc"),children:[(0,t.jsx)("option",{value:"asc",children:u("ascending")}),(0,t.jsx)("option",{value:"desc",children:u("descending")})]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-0 flex items-center pe-3",children:(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-3 rotate-90 text-[var(--brand-neutral-text)]","aria-hidden":!0})})]})]})]})]})}e.s(["ProductCatalogToolbar",()=>n])},411491,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(887300),r=e.i(271645),l=e.i(948148);function i({categories:e,filterQuery:i,onFilterQueryChange:n,draftCategoryIds:s,onDraftToggle:o,onApply:c,onReset:d,isFiltering:u,resultCount:m,onClose:h,categorySearchId:p="premium-all-products-category-search"}){let g=(0,l.useTranslations)(),v=(0,r.useMemo)(()=>{let t=i.trim().toLowerCase();return t?e.filter(e=>e.name.toLowerCase().includes(t)):e},[e,i]);return(0,t.jsx)("aside",{className:"apg-sidebar","aria-label":g("filter_products"),children:(0,t.jsxs)("div",{className:"apg-sidebar-panel",children:[(0,t.jsxs)("div",{className:"apg-sidebar-header",children:[(0,t.jsx)("h2",{className:"apg-sidebar-title",children:g("filter_products")}),h?(0,t.jsx)("button",{type:"button",className:"apg-sidebar-close",onClick:h,"aria-label":g("close"),children:(0,t.jsx)(a.ClearIcon,{className:"h-5 w-5","aria-hidden":!0})}):null]}),(0,t.jsx)("label",{htmlFor:p,className:"sr-only",children:g("search_category")}),(0,t.jsx)("input",{id:p,type:"search",value:i,onChange:e=>n(e.target.value),placeholder:g("search_category"),className:"apg-sidebar-search"}),(0,t.jsx)("div",{className:"apg-sidebar-options",role:"group","aria-label":g("product_categories"),children:0===v.length?(0,t.jsx)("p",{className:"m-0 text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:g("no_categories_found")}):v.map(e=>(0,t.jsxs)("label",{className:"apg-sidebar-option",children:[(0,t.jsx)("input",{type:"checkbox",checked:s.has(e.id),onChange:()=>o(e)}),(0,t.jsx)("span",{children:e.name})]},e.id))}),(0,t.jsxs)("div",{className:"apg-sidebar-actions",children:[(0,t.jsx)("button",{type:"button",className:"btn btn-primary apg-sidebar-apply",onClick:c,disabled:u,children:u?g("loading"):g("apply_filters_with_count",{count:m})}),(0,t.jsx)("button",{type:"button",className:"btn btn-outlined apg-sidebar-reset",onClick:d,disabled:u,children:g("reset_filters")})]})]})})}e.s(["ProductFiltersSidebar",()=>i])},517832,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(948148),l=e.i(271645);function i(e){return"string"==typeof e?e.trim():""}function n({heading:e,subheading:n,buttonLabel:s,emailPlaceholder:o}){let c=(0,r.useTranslations)(),d=i(e),u=i(n),m=i(s),h=i(o),[p,g]=(0,l.useState)(""),[v,x]=(0,l.useState)(!1),[b,f]=(0,l.useState)(null),w=async e=>{e.preventDefault(),f(null),x(!0);try{let e=await fetch("/api/v1/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:p.trim()})}
131),t=await e.json().catch(()=>({})),a="string"==typeof t.message?t.message.trim():"";a||(422===e.status?a=c("error_email_required"):503===e.status&&(a=c("error_newsletter_api_unreachable"))),e.ok?(f({ok:!0,text:a}),g("")):f({ok:!1,text:a})}catch{f({ok:!1,text:c("error_newsletter_api_unreachable")})}finally{x(!1)}};return(0,t.jsxs)("div",{className:"newsletter-subscribe-panel",children:[d?(0,t.jsx)("h2",{className:"newsletter-subscribe-panel__heading heading-4",children:d}):null,u?(0,t.jsx)("p",{className:"newsletter-subscribe-panel__subheading body-small",children:u}):null,(0,t.jsxs)("div",{className:"newsletter-subscribe-panel__form-wrap",children:[(0,t.jsxs)("form",{onSubmit:w,className:"newsletter-subscribe-panel__form",children:[(0,t.jsx)("input",{type:"email",name:"email",value:p,onChange:e=>g(e.target.value),placeholder:h||void 0,disabled:v,required:!0,className:"newsletter-subscribe-panel__input"}),(0,t.jsx)(a.Button,{variant:"primary",type:"submit",disabled:v,children:m})]}),b?(0,t.jsx)("p",{role:"status",className:`newsletter-subscribe-panel__feedback ${b.ok?"newsletter-subscribe-panel__feedback--success":"newsletter-subscribe-panel__feedback--error"}`,children:b.text}):null]})]})}e.s(["NewsletterSubscribePanel",()=>n])},495341,e=>{"use strict";var t=e.i(843476),a=e.i(212090),r=e.i(22584);e.i(79951);var l=e.i(902936),i=e.i(76209),n=e.i(948148);let s=[{href:r.routes.auth.profile,labelKey:"my_profile",match:"exact"},{href:r.routes.auth.leads,labelKey:"my_leads",match:"section"},{href:r.routes.auth.orders,labelKey:"my_orders",match:"section"}];function o({children:e}){let r=(0,i.usePathname)(),o=(0,n.useTranslations)();return(0,t.jsx)("section",{className:"mt-[var(--profile-page-margin-top)] mb-[var(--profile-page-margin-bottom)]",children:(0,t.jsx)("div",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--gap-24)] lg:grid-cols-[280px_minmax(0,1fr)] lg:items-start",children:[(0,t.jsx)("aside",{className:"min-w-0 lg:sticky lg:top-[163px]","aria-label":o("account_flow_account_navigation"),children:(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:o("account_flow_account")}
131),(0,t.jsx)("h1",{className:"m-0 text-[length:var(--heading-4-size)] font-[var(--font-weight-semibold)] leading-[var(--heading-4-line-height)] text-[var(--brand-primary-deep)]",children:o("account_flow_my_account")}),(0,t.jsx)("nav",{className:"mt-[var(--gap-24)] grid gap-[var(--gap-10)]",children:s.map(e=>{let i="exact"===e.match?r===e.href:r===e.href||r.startsWith(`${e.href}/`);return(0,t.jsx)(l.Link,{href:e.href,className:(0,a.cx)("flex items-center justify-between px-4 py-3 text-[length:var(--body-regular-size)] font-[var(--font-weight-semibold)] no-underline transition-default",i?"bg-[var(--header-two-link-primary-bg)] text-[var(--brand-white)]":"text-[var(--brand-primary-deep)] hover:bg-[var(--header-two-link-primary-bg)] hover:text-[var(--brand-white)]"),"aria-current":i?"page":void 0,children:o(e.labelKey)},e.href)})})]})}),(0,t.jsx)("main",{className:"min-w-0",children:e})]})})})}e.s(["ProfileAccountLayout",()=>o])},940333,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);function l({title:e,imageSrc:l,href:i,originLabel:n,casLabel:s,hsLabel:o,inquireLabel:c,originValue:d,casValue:u="",hsValue:m=""}){return(0,t.jsxs)("article",{className:"pto-classic",children:[(0,t.jsxs)(r.Link,{href:i,className:"pto-classic__link",children:[(0,t.jsx)("span",{className:"pto-classic__media",children:l?(0,t.jsx)(a.default,{src:l,alt:"",width:268,height:163,className:"pto-classic__image","aria-hidden":!0}):(0,t.jsx)("span",{className:"pto-classic__placeholder","aria-hidden":!0})}),(0,t.jsxs)("span",{className:"pto-classic__body",children:[(0,t.jsx)("h3",{className:"pto-classic__title",children:e}),(0,t.jsxs)("span",{className:"pto-classic__meta",children:[d?(0,t.jsxs)("span",{className:"pto-classic__meta-row pto-classic__meta-row--truncate",children:[(0,t.jsxs)("span",{className:"pto-classic__meta-label",children:[n," : "]}),(0,t.jsx)("span",{className:"pto-classic__meta-value notranslate",title:d,children:d})]}):null,(0,t.jsxs)("span",{className:"pto-classic__meta-row",children:[(0,t.jsxs)("span",{className:"pto-classic__meta-label",children:[s," : "]}),(0,t.jsx)("span",{className:"pto-classic__meta-value notranslate",children:u})]}),(0,t.jsxs)("span",{className:"pto-classic__meta-row",children:[(0,t.jsxs)("span",{className:"pto-classic__meta-label",children:[o," : "]}),(0,t.jsx)("span",{className:"pto-classic__meta-value notranslate",children:m})]})]})]})]}),(0,t.jsx)("div",{className:"pto-classic__actions",children:(0,t.jsxs)(r.Link,{href:"/contact-us",className:"pto-classic__inquire",children:[c,(0,t.jsx)("span",{className:"pto-classic__inquire-arrow","aria-hidden":!0,children:"→"})]})})]})}e.s(["ProductTileOne",()=>l])},187387,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(632423);function i({title:e,imageSrc:i,href:n,originLabel:s,casLabel:o,hsLabel:c,inquireLabel:d,originValue:u,casValue:m="",hsValue:h=""}){let p="/contact-us";return(0,t.jsxs)("article",{className:"pto-fancy",children:[(0,t.jsxs)(r.Link,{href:n,className:"pto-fancy__link focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",children:[(0,t.jsx)("div",{className:"pto-fancy__media","aria-hidden":!i,children:i?(0,t.jsx)(a.default,{src:i,alt:"",width:320,height:200,className:"pto-fancy__image"}):(0,t.jsx)("span",{className:"pto-fancy__placeholder"})}),(0,t.jsxs)("div",{className:"pto-fancy__body",children:[(0,t.jsx)("h3",{className:"pto-fancy__title",children:e}),(0,t.jsxs)("div",{className:"pto-fancy__meta",children:[u?(0,t.jsxs)("div",{className:"pto-fancy__meta-row",children:[(0,t.jsxs)("span",{className:"pto-fancy__meta-label",children:[s," :"]}),(0,t.jsx)("span",{className:"pto-fancy__meta-value notranslate",title:u,children:u})]}):null,(0,t.jsxs)("div",{className:"pto-fancy__meta-row",children:[(0,t.jsxs)("span",{className:"pto-fancy__meta-label",children:[o," :"]}),(0,t.jsx)("span",{className:"pto-fancy__meta-value notranslate",children:m})]}),(0,t.jsxs)("div",{className:"pto-fancy__meta-row",children:[(0,t.jsxs)("span",{className:"pto-fancy__meta-label",children:[c," :"]}),(0,t.jsx)("span",{className:"pto-fancy__meta-value notranslate",children:h})]})]})]})]}),(0,t.jsx)("div",{className:"pto-fancy__actions",children:(0,t.jsxs)(l.AuthGatedDocLink,{href:p,openInNewTab:!1,returnPathAfterAuth:p,className:"pto-fancy__inquire",children:[d,(0,t.jsx)("span",{className:"pto-fancy__inquire-arrow","aria-hidden":!0,
131children:"→"})]})})]})}e.s(["ProductTileOne",()=>i])},645214,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(632423);e.i(527967);var i=e.i(830167);function n({title:e,imageSrc:n,href:s,originLabel:o,casLabel:c,hsLabel:d,inquireLabel:u,originValue:m,casValue:h="",hsValue:p="",presentation:g="catalog"}){let v="/contact-us",x=!!(m||h||p);return(0,t.jsxs)("article",{className:"pto-modern","data-modern-product-tile":!0,"data-modern-product-tile-presentation":g,children:[(0,t.jsxs)(r.Link,{href:s,className:"pto-modern__link",children:[(0,t.jsxs)("div",{className:"pto-modern__media","aria-hidden":!0,children:[(0,t.jsx)("span",{className:"pto-modern__placeholder"}),n?(0,t.jsx)(a.default,{src:n,alt:"",fill:!0,sizes:"(max-width: 639px) calc(100vw - 48px), (max-width: 1023px) 33vw, 25vw",className:"pto-modern__image",onError:e=>{e.currentTarget.style.display="none"}}):null]}),(0,t.jsxs)("div",{className:"pto-modern__body",children:[(0,t.jsx)("h3",{className:"pto-modern__title",title:e,children:e}),x?(0,t.jsxs)("dl",{className:"pto-modern__meta",children:[m?(0,t.jsxs)("div",{className:"pto-modern__meta-row",children:[(0,t.jsxs)("dt",{className:"pto-modern__meta-label",children:[o," :"]}),(0,t.jsx)("dd",{className:"pto-modern__meta-value notranslate",title:m,children:m})]}):null,h?(0,t.jsxs)("div",{className:"pto-modern__meta-row",children:[(0,t.jsxs)("dt",{className:"pto-modern__meta-label",children:[c," :"]}),(0,t.jsx)("dd",{className:"pto-modern__meta-value notranslate",title:h,children:h})]}):null,p?(0,t.jsxs)("div",{className:"pto-modern__meta-row",children:[(0,t.jsxs)("dt",{className:"pto-modern__meta-label",children:[d," :"]}),(0,t.jsx)("dd",{className:"pto-modern__meta-value notranslate",title:p,children:p})]}):null]}):null]})]}),(0,t.jsx)("div",{className:"pto-modern__actions",children:(0,t.jsxs)(l.AuthGatedDocLink,{href:v,openInNewTab:!1,returnPathAfterAuth:v,className:"pto-modern__inquire",children:[(0,t.jsx)("span",{className:"pto-modern__inquire-label",children:u}),(0,t.jsxs)("span",{className:"sr-only",children:[": ",e]}),(0,t.jsx)(i.ArrowIcon,{className:"pto-modern__inquire-icon rtl:rotate-180","aria-hidden":!0})]})})]})}e.s(["ProductTileOne",()=>n])},664401,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645),l=e.i(24014),i=e.i(948148);e.i(79951);var n=e.i(76209),s=e.i(420268);function o({isOpen:e,onClose:o,languages:c,activeLanguageCode:d}){let u=(0,i.useTranslations)(),m=(0,n.usePathname)(),[h,p]=(0,r.useState)(null),[g,v]=(0,r.useState)(null);if(!e)return null;let x=(0,l.resolveActiveLocaleCode)(d),b=(0,l.hasSelectedLocale)(d);return(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0,onClick:o}),(0,t.jsxs)("div",{className:"rounded-2xl px-5 py-7 shadow-[var(--header-modal-shadow)] fixed left-1/2 top-1/2 z-[101] w-full max-w-[min(90vw,400px)] -translate-x-1/2 -translate-y-1/2 overflow-hidden bg-[var(--header-modal-bg)]",role:"dialog","aria-labelledby":"language-modal-title","aria-modal":!0,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between pb-7",children:[(0,t.jsx)("div",{id:"language-modal-title",className:"body-regular text-[var(--header-modal-title-color)]",children:u("choose_your_language")}),(0,t.jsx)("button",{type:"button",onClick:o,"aria-label":u("close"),children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:13,height:13})})]}),h?(0,t.jsx)("p",{className:"body-caption text-[var(--brand-danger,#b91c1c)] pb-3",role:"alert",children:h}):null,(0,t.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:0===c.length?(0,t.jsx)("p",{className:"body-caption text-[var(--header-modal-title-color)]",children:u("no_languages_available")}):(0,t.jsx)("ul",{className:"language-modal-grid grid grid-cols-2 gap-[var(--header-modal-lang-grid-gap)]",children:c.map(e=>{let r=b&&e.code.trim().toLowerCase()===x.toLowerCase(),i=g===e.code;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",disabled:i||null!==g,className:`flex w-full items-center gap-[var(--header-modal-lang-item-gap)] rounded-md pl-3 text-left disabled:opacity-50 ${r?"bg-[var(--header-modal-primary)]/20":"hover:bg-[var(--header-modal-primary)]/10"}`,"aria-current":r?"true":void 0,"aria-busy":i,onClick:async()=>
131{if(p(null),b&&e.code.trim().toLowerCase()===x.toLowerCase())return void o();v(e.code);let t=(0,s.normalizeUiLocale)(e.code);try{await (0,l.setPreferredLocaleAfterVerify)(e.code,{currentCode:x,onSame:o,onError:e=>p(u(e.messageKey)),onApplied:()=>{o(),(0,l.resolveLocalizedPathForLanguage)(m,t,x).then(e=>{let t=window.location.search,a=window.location.hash;window.location.assign(`${e}${t}${a}`)})}})}finally{v(null)}},children:[(0,t.jsx)("span",{className:"relative h-6 w-8 shrink-0 overflow-hidden",children:(0,t.jsx)(a.default,{src:e.flagSrc??"/flag.svg",alt:"",width:32,height:24,className:"h-full w-full object-cover"})}),(0,t.jsx)("span",{className:"body-caption text-[var(--header-modal-title-color)]",children:i?"…":e.name})]})},e.code)})})})]})]})}e.s(["LanguageModal",()=>o])},719778,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(527967);var l=e.i(224887),l=l,i=e.i(757464),i=i,n=e.i(805820),s=e.i(583239),o=e.i(190496);function c({shareUrl:e,shareOnFacebook:c,shareOnWhatsApp:d,shareOnLinkedIn:u}){let m=(0,r.useTranslations)(),h=(0,a.useId)(),p=(0,a.useRef)(null),[g,v]=(0,a.useState)(!1),{facebook:x,linkedIn:b,whatsapp:f}=(0,a.useMemo)(()=>{let t=encodeURIComponent(e.trim());return{facebook:`https://www.facebook.com/share.php?u=${t}`,linkedIn:`https://www.linkedin.com/sharing/share-offsite/?url=${t}`,whatsapp:`https://wa.me/?text=${t}`}},[e]);return(0,a.useEffect)(()=>{if(!g)return;let e=e=>{let t=e.target;p.current&&t&&!p.current.contains(t)&&v(!1)},t=e=>{"Escape"===e.key&&v(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[g]),(0,t.jsxs)("div",{className:"pdp-share-dropdown",ref:p,children:[(0,t.jsxs)("button",{type:"button",className:"pdp-share-trigger","aria-haspopup":"menu","aria-expanded":g,"aria-controls":h,onClick:()=>v(e=>!e),children:[(0,t.jsx)(n.ShareIcon,{className:"pdp-share-trigger-icon","aria-hidden":!0}),(0,t.jsx)("span",{children:m("share")})]}),g?(0,t.jsxs)("div",{id:h,className:"pdp-share-menu",role:"menu","aria-label":m("share_this_product"),children:[(0,t.jsxs)("a",{className:"pdp-share-menu-item",href:x,target:"_blank",rel:"noopener noreferrer",role:"menuitem",onClick:()=>v(!1),children:[(0,t.jsx)("span",{className:"pdp-share-menu-icon is-facebook","aria-hidden":!0,children:(0,t.jsx)(l.default,{className:"h-4 w-4"})}),c]}),(0,t.jsxs)("a",{className:"pdp-share-menu-item",href:f,target:"_blank",rel:"noopener noreferrer",role:"menuitem",onClick:()=>v(!1),children:[(0,t.jsx)("span",{className:"pdp-share-menu-icon is-whatsapp","aria-hidden":!0,children:(0,t.jsx)(s.WhatsappIcon,{className:"h-4 w-4"})}),d]}),(0,t.jsxs)("a",{className:"pdp-share-menu-item",href:b,target:"_blank",rel:"noopener noreferrer",role:"menuitem",onClick:()=>v(!1),children:[(0,t.jsx)("span",{className:"pdp-share-menu-icon is-linkedin","aria-hidden":!0,children:(0,t.jsx)(i.default,{className:"h-4 w-4"})}),u]}),(0,t.jsxs)("div",{className:"pdp-share-menu-item pdp-share-menu-copy",role:"none",onClick:e=>{let t=e.target;if(t?.closest("button"))return;let a=e.currentTarget.querySelector("button");a?.click()},children:[(0,t.jsx)(o.CopyLinkIconButton,{className:"pdp-share-menu-copy-btn",url:e}),(0,t.jsx)("span",{className:"pdp-share-menu-copy-label","aria-hidden":!0,children:m("copy_link")})]})]}):null]})}e.s(["ProductShareDropdown",()=>c],719778)},78805,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(527967);var r=e.i(830167),l=e.i(659544);let i=[{id:"1",image:"/CategoryImage.png",badge:"ARTICLE",heading:"The Invisible Framework: Understanding Bulking Agents in Foo...",date:"04 February 2026",readMoreUrl:"/article/1"},{id:"2",image:"/CategoryImage.png",badge:"ARTICLE",heading:"The Zero-Error Standard: Managing Allergens from Distribution to Labeling",date:"04 February 2026",readMoreUrl:"/article/2"},{id:"3",image:"/CategoryImage.png",badge:"ARTICLE",heading:"Deep Dive: The Universal Emulsifier – Understanding Lecithin in Food...",date:"04 February 2026",readMoreUrl:"/article/3"}];
131function n({title:e,subtitle:n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industry-updates-news-gap-main)] h-full",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industry-updates-news-gap-header)] ",children:[(0,t.jsx)("h2",{className:"heading-3 text-[var(--industry-updates-subsection-title-color)]",children:e}),n&&(0,t.jsx)("p",{className:"body-large",children:n})]}),i.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-1 gap-[var(--industry-updates-news-article-gap)]",children:i.map(e=>(0,t.jsxs)("div",{className:" flex flex-col md:flex-row rounded-[var(--industry-updates-news-card-radius)] bg-[var(--industry-updates-news-card-bg)] shadow-[var(--industry-updates-news-card-shadow)] hover:shadow-[var(--industry-updates-news-card-shadow-hover)] overflow-hidden",children:[(0,t.jsx)("div",{className:"hidden md:flex relative w-full md:max-w-[270px] h-auto flex-shrink-0",children:(0,t.jsx)(a.default,{src:e.image,alt:e.heading,fill:!0,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industry-updates-news-card-inner-gap)] justify-between py-[var(--industry-updates-news-card-padding-y)] px-[var(--industry-updates-news-card-padding-x)] md:px-[var(--industry-updates-news-card-padding-x)]",children:[(0,t.jsx)("span",{className:"inline-flex w-fit body-caption font-[var(--industry-updates-news-badge-weight)]! py-2 px-5 text-[var(--industry-updates-news-badge-color)] border border-[var(--industry-updates-news-badge-border)] rounded-[20px] uppercase bg-[var(--industry-updates-news-badge-bg)]",children:e.badge}),(0,t.jsx)("p",{className:"body-medium text-[var(--industry-updates-news-heading-color)] leading-[var(--industry-updates-news-heading-line)]!",children:e.heading}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[var(--industry-updates-news-footer-gap)] pt-[var(--industry-updates-news-footer-pt)]",children:[(0,t.jsx)("span",{className:"body-caption font-[var(--industry-updates-news-badge-weight)]!",children:e.date}),(0,t.jsxs)(l.Button,{href:e.readMoreUrl,variant:"primary",className:" inline-flex gap-[var(--industry-updates-news-button-gap)] items-center justify-center py-3! px-5!",children:["Read More",(0,t.jsx)(r.ArrowIcon,{className:"w-4 h-3"})]})]})]})]},e.id))})]})}e.s(["NewsAndInsights",()=>n,"NewsAndInsightsSection",()=>n])},537390,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(835352);function l(){let[e,l]=(0,a.useState)(!1),[i,n]=(0,a.useState)(0),s=(0,a.useRef)(null),o=(0,a.useRef)(0),c=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(null),m=(0,a.useRef)(null),h=(0,a.useCallback)(()=>{null!=c.current&&(window.clearInterval(c.current),c.current=null),null!=d.current&&(window.clearTimeout(d.current),d.current=null),null!=u.current&&(window.clearTimeout(u.current),u.current=null),null!=m.current&&(window.clearTimeout(m.current),m.current=null)},[]),p=(0,a.useCallback)(e=>{s.current===e&&(n(1),d.current=window.setTimeout(()=>{s.current===e&&(l(!1),n(0),s.current=null)},320))},[]),g=(0,a.useCallback)(e=>{if(s.current!==e)return;h(),(0,r.clearActiveNavigation)(e);let t=Math.max(0,180-(Date.now()-o.current));0===t?p(e):m.current=window.setTimeout(()=>p(e),t)},[h,p]),v=(0,a.useCallback)(({navigationId:e})=>{s.current!==e&&(h(),s.current=e,o.current=Date.now(),l(!0),n(.1),c.current=window.setInterval(()=>{n(e=>{if(e>=.92)return e;let t=(.92-e)*(.06+.1*Math.random());return Math.min(.92,e+t)})},160),u.current=window.setTimeout(()=>g(e),2e4))},[h,g]);return((0,a.useEffect)(()=>{let e=e=>{let t=e.target?.closest("a");if(!t||!(0,r.shouldStartNavigationForAnchor)(e,t))return;let a=(0,r.getNavigationTargetKey)(t.href);a&&(0,r.dispatchNavProgressStart)(a)},t=()=>{(0,r.dispatchNavProgressStart)(`popstate:${(0,r.getCurrentRouteKey)()}`)},a=e=>{v(e.detail)},l=e=>{let{navigationId:t}=e.detail;g(t)};return document.addEventListener("click",e),window.addEventListener("popstate",t),window.addEventListener(r.NAV_PROGRESS_START,a),window.addEventListener(r.NAV_PROGRESS_COMPLETE,l),()=>{document.removeEventListener("click",e),window.removeEventListener("popstate",t),window.removeEventListener(r.NAV_PROGRESS_START,a),window.removeEventListener(r.NAV_PROGRESS_COMPLETE,l);let i=s.current;null!=i&&(0,r.clearActiveNavigation)(i),h()}},[h,g,v]),e)?(0,t.jsx)("div",{className:"nav-progress nav-progress--active",role:"progressbar","aria-hidden":!0,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(100*i),children:(0,t.jsx)("div",{className:"nav-progress__track",children:(0,t.jsx)("div",{className:"nav-progress__bar",style:{transform:`scaleX(${i})`}})})}):null}e.s(["NavigationProgressBar",()=>l])},968251,e=>{"use strict";var t=e.i(843476),a=e.i(658512);e.i(527967);var r=e.i(830167),l=e.i(948148);let i=[12,24,48];function n({currentPage:e,totalPages:n,perPage:s,onPageChange:o,onPerPageChange:c,disabled:d=!1}){let u,m,h=(0,l.useTranslations)(),p=n>0?(u=Math.max(1,(m=Math.min(n,(u=Math.max(1,e-Math.floor(2.5)))+5-1))-5+1),Array.from({length:m-u+1},(e,t)=>u+t)):[],g=p.length>0&&p[0]>2,v=p.length>0&&p[p.length-1]<n-1;return(0,t.jsxs)("div",{className:"apg-footer",children:[n>1?(0,t.jsx)(a.Pagination,{className:"apg-pagination-nav",children:(0,t.jsxs)(a.PaginationContent,{children:[(0,t.jsx)(a.PaginationItem,{children:(0,t.jsx)(a.PaginationPrevious,{href:"#",text:h("previous"),disabled:d||e<=1,onClick:t=>{t.preventDefault(),!d&&e>1&&o(e-1)},className:"apg-pagination-btn"})}),p[0]>1?(0,t.jsx)(a.PaginationItem,{children:(0,t.jsx)(a.PaginationLink,{href:"#",isActive:1===e,onClick:e=>{e.preventDefault(),d||o(1)},className:"apg-pagination-btn",children:"1"})}):null,g?(0,t.jsx)(a.PaginationItem,{children:(0,t.jsx)(a.PaginationEllipsis,{})}):null,p.map(r=>(0,t.jsx)(a.PaginationItem,{children:(0,t.jsx)(a.PaginationLink,{href:"#",isActive:r===e,onClick:e=>{e.preventDefault(),d||o(r)}
131,className:"apg-pagination-btn",children:r})},r)),v?(0,t.jsx)(a.PaginationItem,{children:(0,t.jsx)(a.PaginationEllipsis,{})}):null,p.length>0&&p[p.length-1]<n?(0,t.jsx)(a.PaginationItem,{children:(0,t.jsx)(a.PaginationLink,{href:"#",isActive:e===n,onClick:e=>{e.preventDefault(),d||o(n)},className:"apg-pagination-btn",children:n})}):null,(0,t.jsx)(a.PaginationItem,{children:(0,t.jsx)(a.PaginationNext,{href:"#",text:h("next"),disabled:d||e>=n,onClick:t=>{t.preventDefault(),!d&&e<n&&o(e+1)},className:"apg-pagination-btn"})})]})}):(0,t.jsx)("div",{}),(0,t.jsxs)("label",{className:"apg-per-page",children:[(0,t.jsx)("span",{children:h("show_per_page")}),(0,t.jsxs)("span",{className:"apg-per-page-select",children:[(0,t.jsx)("select",{value:s,onChange:e=>c(Number(e.target.value)),disabled:d,children:i.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)("span",{className:"apg-per-page-arrow","aria-hidden":!0,children:(0,t.jsx)(r.ArrowIcon,{className:"h-3 w-3 rotate-90"})})]})]})]})}e.s(["DEFAULT_PER_PAGE",()=>24,"PER_PAGE_OPTIONS",()=>i,"ProductCatalogPagination",()=>n])},982281,e=>{"use strict";let t=[{image:"/market-insights/blog-card-image.webp",title:"Market Intelligence & Supply Chain Dynamics",categories:["Oleochemicals","Palm Oil"],description:"Gain market intelligence on regional price gaps, production risks in South Korea, and the rise of specialty oleochemicals like PLA and Bio-PP.",date:"17 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/oleochemicals",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"Asia Oleochemicals Feedstock Update",categories:["Oleochemicals","Palm Oil"],description:"Track feedstock supply, refinery operating rates, and downstream demand shifts across Indonesia, Malaysia, and Vietnam.",date:"15 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/feedstock-update",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"South Korea Pricing and Import Movements",categories:["Oleochemicals","Palm Oil"],description:"Review import channel activity and benchmark pricing trends for high-purity oleochemical grades in South Korea.",date:"12 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/korea-pricing",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"Market Intelligence & Supply Chain Dynamics",categories:["Oleochemicals","Palm Oil"],description:"Gain market intelligence on regional price gaps, production risks in South Korea, and the rise of specialty oleochemicals like PLA and Bio-PP.",date:"17 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/oleochemicals",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"Asia Oleochemicals Feedstock Update",categories:["Oleochemicals","Palm Oil"],description:"Track feedstock supply, refinery operating rates, and downstream demand shifts across Indonesia, Malaysia, and Vietnam.",date:"15 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/feedstock-update",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"South Korea Pricing and Import Movements",categories:["Oleochemicals","Palm Oil"],description:"Review import channel activity and benchmark pricing trends for high-purity oleochemical grades in South Korea.",date:"12 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/korea-pricing",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"Market Intelligence & Supply Chain Dynamics",categories:["Oleochemicals","Palm Oil"],description:"Gain market intelligence on regional price gaps, production risks in South Korea, and the rise of specialty oleochemicals like PLA and Bio-PP.",date:"17 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/oleochemicals",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"Asia Oleochemicals Feedstock Update",categories:["Oleochemicals","Palm Oil"],description:"Track feedstock supply, refinery operating rates, and downstream demand shifts across Indonesia, Malaysia, and Vietnam.",date:"15 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/feedstock-update",buttonText:"Launch Report"},{image:"/market-insights/blog-card-image.webp",title:"South Korea Pricing and Import Movements",categories:["Oleochemicals","Palm Oil"],description:"Review import channel activity and benchmark pricing trends for high-purity oleochemical grades in South Korea.",date:"12 Apr 2026",author:"Tradeasia Team",link:"/en/market-insights/reports-and-intelligence/korea-pricing",buttonText:"Launch Report"}];t.slice(0,3),e.s(["baseContent",0,t])},800436,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167);e.i(79951);var r=e.i(902936),l=e.i(271645);function i(e){return Array.isArray(e)?e.filter(e=>"string"==typeof e?.label&&e.label.trim()&&"string"==typeof e?.url&&e.url.trim()):[]}function n({title:e,ariaLabel:n,links:s}){let[o,c]=(0,l.useState)(null),d=null!==o?s[o]:null,u=d?i(d.categories):[],m=u.length>0;return(0,t.jsx)("div",{className:"relative flex h-full min-h-[var(--banner-one-image-min-height-desktop)] flex-col",onMouseLeave:()=>c(null),children:(0,t.jsxs)("div",{className:"flex h-full flex-col border-2 border-solid border-[var(--banner-one-panel-border-color)]",children:[(0,t.jsx)("div",{className:"bg-[var(--banner-one-title-bar-bg)] px-[var(--banner-one-title-bar-padding-x)] py-[var(--banner-one-title-bar-padding-y-mobile)] text-center md:py-[var(--banner-one-title-bar-padding-y-desktop)]",children:(0,t.jsx)("h2",{className:"m-0 text-[length:var(--banner-one-title-size-mobile)] leading-[var(--banner-one-title-line-mobile)] font-[var(--banner-one-title-weight)] text-[var(--banner-one-title-bar-color)] md:text-[length:var(--banner-one-title-size-desktop)] md:leading-[var(--banner-one-title-line-desktop)]",children:e})}),(0,t.jsxs)("nav",{className:"relative flex-1 bg-[var(--banner-one-panel-bg)] px-[var(--banner-one-panel-body-padding-x)]","aria-label":n,children:[(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:s.map((e,l)=>{let n=i(e.categories).length>0,s=o===l,d=/^see\s*more$/i.test(e.label.trim());return(0,t.jsx)("li",{className:"border-b border-[var(--banner-one-link-border-color)] last:border-b-0",onMouseEnter:()=>c(n?l:null),children:(0,t.jsxs)(r.Link,{href:e.url,className:`flex items-center justify-between gap-[var(--banner-one-link-gap)] px-[var(--banner-one-link-padding-x)] py-[var(--banner-one-link-padding-y)] text-start text-[length:var(--banner-one-link-size)] leading-[var(--banner-one-link-line)] font-[var(--banner-one-link-weight)] transition-colors ${d||s?"text-[var(--banner-one-link-hover-color)]":"text-[var(--banner-one-link-color)] hover:text-[var(--banner-one-link-hover-color)]"}`,onFocus:()=>c(n?l:null),children:[(0,t.jsx)("span",{children:e.label}),n?(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--banner-one-link-chevron-size)] w-[length:var(--banner-one-link-chevron-size)] shrink-0 rtl:rotate-180","aria-hidden":!0}):null]})},`${e.url}-${e.label}`)})}),m&&d?(0,t.jsx)("div",{className:"absolute inset-y-0 start-full z-[var(--banner-one-flyout-z)] ms-[var(--banner-one-flyout-offset)] flex h-full w-[var(--banner-one-flyout-width)] flex-col border-2 border-solid border-[var(--banner-one-flyout-border-color)] bg-[var(--banner-one-flyout-bg)] [box-shadow:var(--banner-one-flyout-shadow)]",role:"region","aria-label":d.label,onMouseEnter:()=>c(o),children:(0,t.jsx)("ul",{className:"m-0 h-full list-none overflow-y-auto p-0",children:u.map(e=>(0,t.jsx)("li",{className:"border-b border-[var(--banner-one-link-border-color)] last:border-b-0",children:(0,t.jsx)(r.Link,{href:e.url,className:"block px-[var(--banner-one-flyout-link-padding-x)] py-[var(--banner-one-flyout-link-padding-y)] text-start text-[length:var(--banner-one-link-size)] leading-[var(--banner-one-link-line)] font-[var(--banner-one-link-weight)] text-[var(--banner-one-link-color)] transition-colors hover:bg-[var(--banner-one-flyout-link-hover-bg)] hover:text-[var(--banner-one-link-hover-color)]",children:e.label})},`${e.url}-${e.label}`))})}):null]})]})})}e.s(["BannerCategoryNav",()=>n])},163307,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(79951);var r=e.i(76209),l=e.i(578938),i=e.i(948148);function n(){try{if("1"===window.sessionStorage.getItem(l.AUTH_PENDING_LOGIN_TOAST_KEY))return window.sessionStorage.removeItem(l.AUTH_PENDING_LOGIN_TOAST_KEY),"login";if("1"===window.sessionStorage.getItem(l.AUTH_PENDING_LOGOUT_TOAST_KEY))return window.sessionStorage.removeItem(l.AUTH_PENDING_LOGOUT_TOAST_KEY),"logout"}catch{}return null}function s(){let e=(0,r.usePathname)(),[s,o]=(0,a.useState)(null),c=(0,a.useRef)(null),d=(0,a.useCallback)(e=>{c.current&&(clearTimeout(c.current),c.current=null),o(e),c.current=setTimeout(()=>{o(null),c.current=null},3200)},[]);(0,a.useEffect)(()=>{let e=n();e&&queueMicrotask(()=>{d(e)})},[e,d]),(0,a.useEffect)(()=>{let e=()=>{let e=n();e&&queueMicrotask(()=>{d(e)})};return window.addEventListener(l.AUTH_SESSION_CHANGED_EVENT,e),()=>window.removeEventListener(l.AUTH_SESSION_CHANGED_EVENT,e)},[d]),(0,a.useEffect)(()=>()=>{c.current&&(clearTimeout(c.current),c.current=null)},[]);let u=(0,i.useTranslations)();if(!s)return null;let m=u("login"===s?"auth_signed_in_title":"auth_signed_out_title"),h=u("login"===s?"auth_signed_in_body":"auth_signed_out_body");return(0,t.jsx)("div",{className:"pointer-events-none fixed inset-0 z-[20000] flex items-center justify-center bg-transparent p-4",role:"status","aria-live":"polite","aria-atomic":"true",children:(0,t.jsxs)("div",{className:"pointer-events-auto w-full max-w-[440px] bg-white px-8 py-10 text-center shadow-[0_20px_50px_rgba(0,0,0,0.18)] md:px-12 md:py-12",children:[(0,t.jsx)("div",{className:"mx-auto mb-6 flex h-[4.5rem] w-[4.5rem] items-center justify-center rounded-full md:h-20 md:w-20",style:{backgroundColor:"#d1fae5"}
131,"aria-hidden":!0,children:(0,t.jsx)("svg",{className:"h-9 w-9 md:h-10 md:w-10",style:{color:"#047857"},viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("h2",{className:"m-0 text-[length:1.25rem] font-bold leading-tight text-[#065f46] md:text-[length:1.5rem]",children:m}),(0,t.jsx)("p",{className:"mt-4 mb-0 text-[length:0.9375rem] leading-relaxed text-neutral-600 md:text-[length:1rem]",children:h})]})})}e.s(["AuthSessionFlash",()=>s])},42596,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);function l({title:e,imageSrc:l,href:i,originLabel:n,casLabel:s,hsLabel:o,inquireLabel:c,originValue:d,casValue:u="",hsValue:m=""}){return(0,t.jsx)("div",{className:"group relative z-0 h-full transition-all duration-300 ease-out hover:z-20",children:(0,t.jsx)(r.Link,{href:i,className:"block h-full text-inherit no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",children:(0,t.jsxs)("article",{className:"relative flex h-full w-full flex-col overflow-hidden rounded-[18px] border border-[var(--brand-border-color-light)] bg-[var(--brand-white)] p-5 md:px-6 shadow-[inset_0_2px_10px_rgba(15,23,42,0.08)] transition-all duration-300 ease-out group-hover:shadow-[inset_0_4px_16px_rgba(15,23,42,0.12)]",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-xl border border-gray-100 transition-all duration-300"}),(0,t.jsxs)("div",{className:"relative block h-72 w-full shrink-0 overflow-hidden rounded-xl bg-gradient-to-br from-gray-100 to-gray-50",children:[l?(0,t.jsx)(a.default,{src:l,alt:e,width:320,height:288,className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-125","aria-hidden":!0}):(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-orange-200 to-orange-100","aria-hidden":!0,children:(0,t.jsx)("span",{className:"text-sm font-medium text-orange-400",children:"No Image"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-black/0 transition-all duration-300 group-hover:bg-black/10"})]}),(0,t.jsx)("div",{className:"pt-3",children:(0,t.jsx)("h3",{className:"m-0 line-clamp-2 min-h-[2.5rem] text-sm font-bold leading-snug text-gray-900 md:min-h-[3rem] md:text-base",children:e})}),(0,t.jsx)("div",{className:"flex flex-1 flex-col pt-1",children:(0,t.jsxs)("div",{className:"space-y-3 text-xs md:text-sm",children:[d&&(0,t.jsxs)("div",{className:"mb-1 flex items-start justify-between",children:[(0,t.jsxs)("strong",{className:"text-gray-700",children:[n,":"]}),(0,t.jsx)("span",{className:"max-w-xs text-right text-gray-600",children:d})]}),u&&(0,t.jsxs)("div",{className:"mb-1 flex items-start justify-between",children:[(0,t.jsxs)("strong",{className:"text-gray-700",children:[s,":"]}),(0,t.jsx)("span",{className:"text-right font-mono text-gray-600",children:u})]}),m&&(0,t.jsxs)("div",{className:"mb-1 flex items-start justify-between",children:[(0,t.jsxs)("strong",{className:"text-gray-700",children:[o,":"]}),(0,t.jsx)("span",{className:"text-right font-mono text-gray-600",children:m})]})]})})]})})})}e.s(["ProductTileOne",()=>l])},40566,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(174080);e.i(527967);var n=e.i(830167),s=e.i(419037),o=e.i(948148);function c({href:e,className:a,onClick:l,children:i}){return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer",onClick:l,children:i}):(0,t.jsx)(r.Link,{href:e,className:a,onClick:l,children:i})}function d({isOpen:e,onClose:r,exploreCategories:d=[],globalWebsiteUrl:u="https://chemtradeasia.com"}){let m=(0,o.useTranslations)(),[h,p]=(0,l.useState)(!1),[g,v]=(0,l.useState)(()=>d[0]?.label??"");if((0,l.useEffect)(()=>{p(!0)},[]),(0,l.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,r]),!e||!h)return null;let x=0===d.length?"":d.some(e=>e.label===g)?g:d[0]?.label??"",b=d.find(e=>e.label===x),f=(b?.children??[]).map(e=>({label:e.label,href:e.href??"#",flagSrc:e.flagSrc,flagEmoji:e.flagEmoji}));return(0,i.createPortal)((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h1f-explore-backdrop","aria-hidden":!0,onClick:r}),(0,t.jsxs)("div",{className:"h1f-explore-dialog",role:"dialog","aria-modal":!0,"aria-labelledby":"h1f-explore-dialog-title",children:[(0,t.jsxs)("div",{className:"h1f-explore-dialog-header",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"h1f-explore-dialog-title",className:"h1f-explore-dialog-title",children:m("select_a_website_to_explore")}),(0,t.jsx)("p",{className:"h1f-explore-dialog-desc",children:m("website_explore_description")})]}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":m("close"),className:"h1f-explore-dialog-close",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14})})]}),d.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1f-explore-dialog-tabs-wrap",children:[(0,t.jsxs)("div",{className:"h1f-explore-dialog-tabs md:hidden","aria-label":m("explore_categories"),children:[(0,t.jsx)("select",{value:x,onChange:e=>v(e.target.value),className:"h1f-explore-dialog-select",children:d.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label},e.label))}),(0,t.jsx)(n.ArrowIcon,{className:"h1f-explore-dialog-select-icon","aria-hidden":!0})]}),(0,t.jsx)("div",{className:"h1f-explore-dialog-tabs hidden md:flex",role:"tablist","aria-label":m("explore_categories"),children:d.map(e=>{let a=x===e.label;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":a,className:`h1f-explore-dialog-tab${a?" is-active":""}`,onClick:()=>v(e.label),children:e.label},e.label)})})]}),(0,t.jsx)("ul",{className:"h1f-explore-dialog-grid",children:f.map((e,l)=>(0,t.jsx)("li",{children:e.href?(0,t.jsxs)(c,{href:e.href,className:"h1f-explore-dialog-link",onClick:r,children:[e.flagSrc?(0,t.jsx)("span",{className:"h1f-explore-dialog-flag",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:36,height:36,className:"h-full w-full object-cover"})}):e.flagEmoji?(0,t.jsx)("span",{className:"h1f-explore-dialog-flag h1f-explore-dialog-flag-emoji",children:e.flagEmoji}):(0,t.jsx)("span",{className:"h1f-explore-dialog-flag","aria-hidden":!0}),(0,t.jsx)("span",{className:"h1f-explore-dialog-link-label",children:e.label})]}):(0,t.jsx)("span",{className:"h1f-explore-dialog-link h1f-explore-dialog-link-static",children:e.label})},`${e.label}-${l}`))})]}):(0,t.jsx)("p",{className:"h1f-explore-dialog-empty",children:m("no_websites_available")}),(0,t.jsx)("div",{className:"h1f-explore-dialog-footer",children:(0,t.jsxs)(c,{href:u,className:"h1f-explore-dialog-cta",onClick:r,children:[(0,t.jsx)(s.GlobeIcon,{className:"h1f-explore-dialog-cta-icon","aria-hidden":!0}),m("visit_global_site")]})})]})]}),document.body)}e.s(["WebsiteExplorePanel",()=>d])},513663,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(527967);var r=e.i(830167),l=e.i(579053),i=e.i(186301),n=e.i(980401),s=e.i(6
13157688);e.i(79951);var o=e.i(902936);function c({image:e,badge:a,title:l,description:i,date:n,href:c}){return(0,t.jsx)(o.Link,{href:c,className:"block h-full",children:(0,t.jsxs)("article",{className:"group relative overflow-hidden rounded-[var(--industry-trends-card-radius)] h-full hover:shadow-[var(--industry-trends-card-shadow-hover)]",children:[(0,t.jsx)("div",{className:"absolute inset-0 z-10 pointer-events-none transition-opacity duration-300 opacity-100 group-hover:opacity-0 hidden md:block bg-[linear-gradient(to_right,var(--industry-trends-card-overlay-start),var(--industry-trends-card-overlay-mid),transparent)] rtl:bg-[linear-gradient(to_left,var(--industry-trends-card-overlay-start),var(--industry-trends-card-overlay-mid),transparent)]"}),(0,t.jsxs)("div",{className:"relative flex flex-col h-full",children:[(0,t.jsx)("div",{className:"relative h-[var(--industry-trends-card-image-height)] w-full overflow-hidden",children:(0,t.jsx)(s.default,{src:e,alt:l,fill:!0,className:"object-cover",sizes:"(max-width:768px) 100vw, (max-width:1024px) 50vw, 33vw"})}),(0,t.jsx)("div",{className:"relative flex flex-col flex-grow py-[var(--industry-trends-card-content-padding-y)] px-[var(--industry-trends-card-content-padding-x)] bg-[var(--industry-trends-card-content-bg)]",children:(0,t.jsxs)("div",{className:"relative z-20 flex flex-col h-full",children:[(0,t.jsx)("span",{className:"inline-flex w-fit items-center justify-center h-[38px] px-4 rounded-full uppercase text-[var(--industry-trends-card-badge-color)] font-[var(--industry-trends-card-badge-we
131ight)] text-[length:var(--industry-trends-card-badge-size)] tracking-[var(--industry-trends-card-badge-tracking)] bg-[var(--industry-trends-card-badge-bg)] text-start border border-[var(--industry-trends-card-badge-border)]",children:a}),(0,t.jsx)("h3",{className:"mt-3 text-[length:var(--industry-trends-card-title-size-mobile)] md:text-[length:var(--industry-trends-card-title-size-desktop)] leading-[var(--industry-trends-card-title-line-mobile)] md:leading-[var(--industry-trends-card-title-line-desktop)] text-start text-[var(--industry-trends-card-title-color)] font-[var(--industry-trends-card-title-weight-mobile)] md:font-[var(--industry-trends-card-title-weight-desktop)]",children:l}),(0,t.jsx)("p",{className:"mt-5 md:mt-3 body-small text-start text-[var(--industry-trends-card-text-color)] line-clamp-3",children:i}),(0,t.jsxs)("div",{className:"mt-auto pt-[var(--industry-trends-card-footer-pt-mobile)] md:pt-[var(--industry-trends-card-footer-pt-desktop)] flex items-center justify-between body-small text-[var(--industry-trends-card-text-color)]",children:[(0,t.jsx)("time",{className:"text-start",children:n}),(0,t.jsx)("span",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-[var(--industry-trends-card-arrow-bg)]",children:(0,t.jsx)(r.ArrowIcon,{className:"w-2 h-3 text-[var(--industry-trends-card-arrow-color)] rtl:rotate-180"})})]})]})})]})]})})}function d({insights:e}){return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.Swiper,{modules:[l.Navigation,i.Pagination],spaceBetween:20,navigation:{prevEl:".insight-swiper-prev",nextEl:".insight-swiper-next"},pagination:{clickable:!0,el:".insight-swiper-pagination"},breakpoints:{0:{slidesPerView:1},768:{slidesPerView:2},1024:{slidesPerView:3}},className:"insight-swiper",children:e.map(e=>(0,t.jsx)(n.SwiperSlide,{children:(0,t.jsx)(c,{...e})},e.id))}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-[var(--industry-trends-nav-gap)]",children:[(0,t.jsx)(a.Button,{variant:"primary",className:"mt-7 insight-swiper-prev inline-flex items-center justify-center !rounded-[50%] disabled:cursor-not-allowed disabled:opacity-[0.3] h-[50px] w-[50px]",children:(0,t.jsx)(r.ArrowIcon,{className:"w-2 h-3 rotate-180"})}),(0,t.jsx)("div",{className:"mt-7 insight-swiper-pagination !w-auto flex items-center justify-center gap-[var(--industry-trends-pagination-gap)] [&_.swiper-pagination-bullet-active]:!w-[42px] [&_.swiper-pagination-bullet-active]:!rounded-[20px] [&_.swiper-pagination-bullet-active]:!bg-[var(--industry-trends-pagination-bullet-active-color)]"}),(0,t.jsx)(a.Button,{variant:"primary",className:"mt-7 insight-swiper-next inline-flex items-center justify-center !rounded-[50%] disabled:cursor-not-allowed disabled:opacity-[0.3] h-[50px] w-[50px]",children:(0,t.jsx)(r.ArrowIcon,{className:"w-2 h-3"})})]})]})}e.s(["InsightSlider",()=>d],513663)},176100,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(948148);function n({href:e,className:a,onClick:l,children:i,style:n}){return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:a,style:n,target:"_blank",rel:"nofollow noopener noreferrer",onClick:l,children:i}):(0,t.jsx)(r.Link,{href:e,className:a,style:n,onClick:l,children:i})}function s({isOpen:e,onClose:r,exploreCategories:s=[],globalWebsiteUrl:o="https://chemtradeasia.com"}){let c=(0,i.useTranslations)(),[d,u]=(0,l.useState)(!1),[m,h]=(0,l.useState)(()=>s[0]?.label??"");if(!e)return null;let p=0===s.length?"":s.some(e=>e.label===m)?m:s[0]?.label??"",g=s.find(e=>e.label===p),v=(g?.children??[]).map(e=>({label:e.label,href:e.href??"#",flagSrc:e.flagSrc,flagEmoji:e.flagEmoji}));return(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0,onClick:r}),(0,t.jsxs)("div",{className:"rounded-2xl px-5 py-7 shadow-[var(--header-modal-shadow)] fixed left-1/2 top-1/2 z-[101] w-full max-w-[min(90vw,400px)] -translate-x-1/2 -translate-y-1/2 overflow-hidden bg-[var(--header-modal-bg)]",role:"dialog","aria-labelledby":"website-explore-modal-title","aria-modal":!0,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between pb-2",children:[(0,t.jsx)("div",{id:"website-explore-modal-title",className:"body-regular text-[var(--header-modal-title-color)]",children:c("select_a_website_to_explore")}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":c("close"),className:"flex h-6 w-6 shrink-0 items-center justify-end",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:13,height:13})})]}),(0,t.jsx)("p",{className:"body-caption text-[var(--header-modal-title-color)] pb-4",children:c("website_explore_description")}),s.length>0?(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",className:"body-small text-[var(--header-modal-primary)] flex w-full items-center justify-between pb-2 border-b border-[var(--header-modal-primary)]",onClick:()=>u(!d),"aria-expanded":d,children:[(0,t.jsx)("span",{children:p.toUpperCase()}),(0,t.jsx)("span",{className:`transition-transform ${d?"rotate-180":""}`,children:(0,t.jsx)(a.default,{src:"/dropdown-icon.svg",alt:"",width:12,height:7,className:"invert"})})]}),d&&(0,t.jsx)("div",{className:"bg-[var(--header-modal-primary)] z-[1] flex flex-col items-stretch absolute top-full left-0 right-0",children:s.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{h(e.label),u(!1)},className:"body-small p-4 text-[var(--header-modal-option-color)] text-left",style:{transition:"var(--transition)",...p===e.label&&{background:"var(--header-modal-option-active-bg)"}},children:e.label},e.label))})]}):null,(0,t.jsx)("div",{className:"max-h-[40vh] overflow-y-auto py-3",children:0===s.length?(0,t.jsx)("p",{className:"body-caption text-[var(--header-modal-title-color)]",children:c("no_websites_available")}):(0,t.jsx)("ul",{className:"grid grid-cols-2 gap-[var(--header-modal-explore-grid-gap)]",children:v.map((e,l)=>(0,t.jsx)("li",{children:e.href?(0,t.jsxs)(n,{href:e.href,className:"flex w-full items-center gap-[var(--header-modal-explore-item-gap)]",onClick:r,children:[e.flagSrc?(0,t.jsx)("span",{className:"relative h-6 w-8 shrink-0 overflow-hidden rounded border border-[var(--header-modal-flag-border)] bg-[var(--header-modal-flag-bg)]",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:32,height:24,className:"h-full w-full object-cover"})}):e.flagEmoji?(0,t.jsx)("span",{className:"flex h-6 w-8 shrink-0 items-center justify-center rounded border border-[var(--header-modal-flag-border)] bg-[var(--header-modal-flag-bg)] text-sm",children:e.flagEmoji}):null,(0,t.jsx)("span",{className:"body-caption text-[var(--header-modal-title-color)]",children:e.label})]}):(0,t.jsx)("span",{className:"body-caption text-[var(--header-modal-title-color)]",children:e.label})},e.label+l))})}),(0,t.jsx)("div",{className:"h-px bg-[var(--header-modal-primary)]"}),(0,t.jsx)("div",{className:"pt-4",children:(0,t.jsx)(n,{href:o,style:{padding:"12px 24px"},className:"btn btn-outlined flex w-full items-center justify-center",onClick:r,children:c("visit_global_site")})})]})]})}e.s(["WebsiteExploreModal",()=>s])},232182,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(174080);e.i(527967);var n=e.i(830167),s=e.i(419037),o=e.i(948148);function c({href:e,className:a,onClick:l,children:i}){return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer",onClick:l,children:i}):(0,t.jsx)(r.Link,{href:e,className:a,onClick:l,children:i})}function d({isOpen:e,onClose:r,exploreCategories:d=[],globalWebsiteUrl:u="https://chemtradeasia.com"}){let m=(0,o.useTranslations)(),[h,p]=(0,l.useState)(!1),[g,v]=(0,l.useState)(()=>
131d[0]?.label??"");if((0,l.useEffect)(()=>{p(!0)},[]),(0,l.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,r]),!e||!h)return null;let x=0===d.length?"":d.some(e=>e.label===g)?g:d[0]?.label??"",b=d.find(e=>e.label===x),f=(b?.children??[]).map(e=>({label:e.label,href:e.href??"#",flagSrc:e.flagSrc,flagEmoji:e.flagEmoji}));return(0,i.createPortal)((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h1s-explore-backdrop","aria-hidden":!0,onClick:r}),(0,t.jsxs)("div",{className:"h1s-explore-dialog",role:"dialog","aria-modal":!0,"aria-labelledby":"h1s-explore-dialog-title",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-header",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-header-content",children:[(0,t.jsx)("h2",{id:"h1s-explore-dialog-title",className:"h1s-explore-dialog-title",children:m("select_a_website_to_explore")}),(0,t.jsx)("p",{className:"h1s-explore-dialog-desc",children:m("website_explore_description")})]}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":m("close"),className:"h1s-explore-dialog-close",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14})})]}),d.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs-wrap",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs xl:hidden","aria-label":m("explore_categories"),children:[(0,t.jsx)("select",{value:x,onChange:e=>v(e.target.value),className:"h1s-explore-dialog-select",children:d.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label},e.label))}),(0,t.jsx)(n.ArrowIcon,{className:"h1s-explore-dialog-select-icon","aria-hidden":!0})]}),(0,t.jsx)("div",{className:"h1s-explore-dialog-tabs hidden xl:flex",role:"tablist","aria-label":m("explore_categories"),children:d.map(e=>{let a=x===e.label;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":a,className:`h1s-explore-dialog-tab${a?" is-active":""}`,onClick:()=>v(e.label),children:e.label},e.label)})})]}),(0,t.jsx)("ul",{className:"h1s-explore-dialog-grid",children:f.map((e,l)=>(0,t.jsx)("li",{children:e.href?(0,t.jsxs)(c,{href:e.href,className:"h1s-explore-dialog-link",onClick:r,children:[e.flagSrc?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:36,height:36,className:"h-full w-full object-cover"})}):e.flagEmoji?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag h1s-explore-dialog-flag-emoji",children:e.flagEmoji}):(0,t.jsx)("span",{className:"h1s-explore-dialog-flag","aria-hidden":!0}),(0,t.jsx)("span",{className:"h1s-explore-dialog-link-label",children:e.label})]}):(0,t.jsx)("span",{className:"h1s-explore-dialog-link h1s-explore-dialog-link-static",children:e.label})},`${e.label}-${l}`))})]}):(0,t.jsx)("p",{className:"h1s-explore-dialog-empty",children:m("no_websites_available")}),(0,t.jsx)("div",{className:"h1s-explore-dialog-footer",children:(0,t.jsxs)(c,{href:u,className:"btn btn-primary",onClick:r,children:[(0,t.jsx)(s.GlobeIcon,{"aria-hidden":!0}),m("visit_global_site")]})})]})]}),document.body)}e.s(["WebsiteExplorePanel",()=>d])},252082,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(174080);e.i(527967);var n=e.i(830167),s=e.i(887300),o=e.i(948148);function c({href:e,onClick:a,children:l}){let i="h1s-explore-dialog-link";return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:i,target:"_blank",rel:"noopener noreferrer",onClick:a,children:l}):(0,t.jsx)(r.Link,{href:e,className:i,onClick:a,children:l})}function d({isOpen:e,onClose:r,exploreCategories:d=[]}){let u=(0,o.useTranslations)(),m=(0,l.useSyncExternalStore)(()=>()=>void 0,()=>!0,()=>!1),[h,p]=(0,l.useState)(()=>d[0]?.label??"");if((0,l.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,r]),!e||!m)return null;let g=d.find(e=>e.label===h)??d[0],v=g?.label??"",x=g?.children??[];return(0,i.createPortal)((0,t.jsxs)("div",{"data-luxe-header":!0,children:[(0,t.jsx)("button",{type:"button",className:"h1s-explore-backdrop","aria-label":u("close"),onClick:r}),(0,t.jsxs)("section",{className:"h1s-explore-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"luxe-explore-title",children:[(0,t.jsxs)("header",{className:"h1s-explore-dialog-header",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-header-content",children:[(0,t.jsx)("h2",{id:"luxe-explore-title",className:"h1s-explore-dialog-title",children:u("select_a_website_to_explore")}),(0,t.jsx)("p",{className:"h1s-explore-dialog-desc",children:u("website_explore_description")})]}),(0,t.jsx)("button",{type:"button",className:"h1s-explore-dialog-close","aria-label":u("close"),onClick:r,children:(0,t.jsx)(s.ClearIcon,{"aria-hidden":!0})})]}),d.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs-wrap",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs h1s-explore-dialog-tabs--select",children:[(0,t.jsx)("select",{value:v,onCh
131ange:e=>p(e.target.value),className:"h1s-explore-dialog-select","aria-label":u("explore_categories"),children:d.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label},e.label))}),(0,t.jsx)(n.ArrowIcon,{className:"h1s-explore-dialog-select-icon","aria-hidden":!0})]}),(0,t.jsx)("div",{className:"h1s-explore-dialog-tabs h1s-explore-dialog-tabs--buttons",role:"tablist",children:d.map(e=>(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":v===e.label,className:`h1s-explore-dialog-tab${v===e.label?" is-active":""}`,onClick:()=>p(e.label),children:e.label},e.label))})]}),(0,t.jsx)("ul",{className:"h1s-explore-dialog-grid",children:x.map((e,l)=>{let i=e.href?.trim(),n=(0,t.jsxs)(t.Fragment,{children:[e.flagSrc?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:36,height:36})}):e.flagEmoji?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag h1s-explore-dialog-flag-emoji",children:e.flagEmoji}):null,(0,t.jsx)("span",{className:"h1s-explore-dialog-link-label",children:e.label})]});return(0,t.jsx)("li",{children:i?(0,t.jsx)(c,{href:i,onClick:r,children:n}):(0,t.jsx)("span",{className:"h1s-explore-dialog-link h1s-explore-dialog-link-static",children:n})},`${e.label}-${l}`)})})]}):(0,t.jsx)("p",{className:"h1s-explore-dialog-empty",children:u("no_websites_available")})]})]}),document.body)}e.s(["WebsiteExplorePanel",()=>d])},969972,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(174080);e.i(527967);var n=e.i(830167),s=e.i(419037),o=e.i(948148);function c({href:e,className:a,onClick:l,children:i}){return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer",onClick:l,children:i}):(0,t.jsx)(r.Link,{href:e,className:a,onClick:l,children:i})}function d({isOpen:e,onClose:r,exploreCategories:d=[],globalWebsiteUrl:u="https://chemtradeasia.com"}){let m=(0,o.useTranslations)(),[h,p]=(0,l.useState)(!1),[g,v]=(0,l.useState)(()=>d[0]?.label??"");if((0,l.useEffect)(()=>{p(!0)},[]),(0,l.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,r]),!e||!h)return null;let x=0===d.length?"":d.some(e=>e.label===g)?g:d[0]?.label??"",b=d.find(e=>e.label===x),f=(b?.children??[]).map(e=>({label:e.label,href:e.href??"#",flagSrc:e.flagSrc,flagEmoji:e.flagEmoji}));return(0,i.createPortal)((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h1s-explore-backdrop","aria-hidden":!0,onClick:r}),(0,t.jsxs)("div",{className:"h1s-explore-dialog",role:"dialog","aria-modal":!0,"aria-labelledby":"h1s-explore-dialog-title",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-header",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-header-content",children:[(0,t.jsx)("h2",{id:"h1s-explore-dialog-title",className:"h1s-explore-dialog-title",children:m("select_a_website_to_explore")}),(0,t.jsx)("p",{className:"h1s-explore-dialog-desc",children:m("website_explore_description")})]}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":m("close"),className:"h1s-explore-dialog-close",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14})})]}),d.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs-wrap",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs xl:hidden","aria-label":m("explore_categories"),children:[(0,t.jsx)("select",{value:x,onChange:e=>v(e.target.value),className:"h1s-explore-dialog-select",children:d.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label},e.label))}),(0,t.jsx)(n.ArrowIcon,{className:"h1s-explore-dialog-select-icon","aria-hidden":!0})]}),(0,t.jsx)("div",{className:"h1s-explore-dialog-tabs hidden xl:flex",role:"tablist","aria-label":m("explore_categories"),children:d.map(e=>{let a=x===e.label;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":a,className:`h1s-explore-dialog-tab${a?" is-active":""}`,onClick:()=>v(e.label),children:e.label},e.label)})})]}),(0,t.jsx)("ul",{className:"h1s-explore-dialog-grid",children:f.map((e,l)=>(0,t.jsx)("li",{children:e.href?(0,t.jsxs)(c,{href:e.href,className:"h1s-explore-dialog-link",onClick:r,children:[e.flagSrc?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:36,height:36,className:"h-full w-full object-cover"})}):e.flagEmoji?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag h1s-explore-dialog-flag-emoji",children:e.flagEmoji}):(0,t.jsx)("span",{className:"h1s-explore-dialog-flag","aria-hidden":!0}),(0,t.jsx)("span",{className:"h1s-explore-dialog-link-label",children:e.label})]}):(0,t.jsx)("span",{className:"h1s-explore-dialog-link h1s-explore-dialog-link-static",children:e.label})},`${e.label}-${l}`))})]}):(0,t.jsx)("p",{className:"h1s-explore-dialog-empty",children:m("no_websites_available")}),(0,t.jsx)("div",{className:"h1s-explore-dialog-footer",children:(0,t.jsxs)(c,{href:u,className:"h1s-explore-dialog-cta",onClick:r,children:[(0,t.jsx)(s.GlobeIcon,{className:"h1s-explore-dialog-cta-icon","aria-hidden":!0}),m("visit_global_site")]})})]})]}),document.body)}e.s(["WebsiteExplorePanel",()=>d])},701722,e=>{"use strict";var t=e.i(843476),a=e.i(212090),r=e.i(388578),l=e.i(948148),i=e.i(271645);function n(...e){for(let t of e){if(null==t)continue;let e=String(t).trim();if(e)return e}return"-"}function s(){let e=(0,l.useTranslations)(),[s,o]=(0,i.useState)([]),[c,d]=(0,i.useState)(!0),[u,m]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let t=!1;return async function(){d(!0),m(null);try{let e=await (0,r.fetchCustomerLeadsClient)();t||o(function(e){return Array.isArray(e)?e:e&&!Array.isArray(e)&&"object"==typeof e&&null!==e?Array.isArray(e.leads)?e.leads:Array.isArray(e.records)?e.records:[]:[]}(e.data))}catch(a){console.error("[CUSTOMER] Unable to load leads",a),t||(m(e("account_flow_unable_load_leads")),o([]))}finally{t||d(!1)}}(),()=>{t=!0}},[e]),(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--gap-15)] md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:e("account_flow_leads")}),(0,t.jsx)("h2",{className:a.accountTitleClass,children:e("my_leads")})]}),(0,t.jsx)("span",{className:a.accountCountClass,children:e("account_flow_total_count",{count:s.length})})]}),c?(0,t.jsx)("p",{className:a.accountMutedClass,children:e("account_flow_loading_leads")}):null,u?(0,t.jsx)("p",{className:a.accountErrorClass,children:u}):null,c||u||0!==s.length?null:(0,t.jsx)("div",{className:"text-[length:var(--body-regular-size)] text-[var(--brand-neutral-text)]",children:e("account_flow_no_leads")}),s.length>0?(0,t.jsxs)("div",{className:"mt-[var(--gap-20)] overflow-hidden border border-[var(--brand-border-color-light)]",role:"list",children:[(0,t.jsxs)("div",{className:"hidden grid-cols-[1fr_1.1fr_1.4fr_1.1fr] items-center bg-[var(--brand-neutral-surface-2)] p-4 text-[var(--brand-primary-deep)] font-[var(--font-weight-semibold)] md:grid","aria-hidden":!0,
131children:[(0,t.jsx)("span",{children:e("account_flow_lead_id")}),(0,t.jsx)("span",{children:e("account_flow_name")}),(0,t.jsx)("span",{children:e("account_flow_email")}),(0,t.jsx)("span",{children:e("account_flow_assignee")})]}),s.map((a,r)=>{let l,i=n(a.Lead_ID__c,a.Lead_Id__c,a.Lead_Number__c,a.Id,a.id);return(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--gap-8)] border-t border-[var(--brand-border-color-light)] p-4 md:grid-cols-[1fr_1.1fr_1.4fr_1.1fr] md:items-center",role:"listitem",children:[(0,t.jsxs)("span",{className:"text-[length:var(--body-small-size)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:[(0,t.jsxs)("span",{className:"font-[var(--font-weight-semibold)] text-[var(--brand-neutral-text)] md:hidden",children:[e("account_flow_lead_id"),":"," "]}),i]}),(0,t.jsxs)("span",{className:"text-[length:var(--body-small-size)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:[(0,t.jsxs)("span",{className:"font-[var(--font-weight-semibold)] text-[var(--brand-neutral-text)] md:hidden",children:[e("account_flow_name"),":"," "]}),n(a.Name,a.name)]}),(0,t.jsxs)("span",{className:"text-[length:var(--body-small-size)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:[(0,t.jsxs)("span",{className:"font-[var(--font-weight-semibold)] text-[var(--brand-neutral-text)] md:hidden",children:[e("account_flow_email"),":"," "]}),n(a.Email,a.Email__c,a.email)]}),(0,t.jsxs)("span",{className:"text-[length:var(--body-small-size)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:[(0,t.jsxs)("span",{className:"font-[var(--font-weight-semibold)] text-[var(--brand-neutral-text)] md:hidden",children:[e("account_flow_assignee"),":"," "]}),"-"===(l=n(a.Assigned_Agent_Email__c,a.Assignee_Name__c,a.Assignee__r?.Name,a.Assignee__r?.name,a.Assigned_To__r?.Name,a.Assigned_To__r?.name,a.Owner__r?.Name,a.Owner__r?.name,a.Owner?.Name,a.Owner?.name))?"--":l]})]},`${i}-${r}`)})]}):null]})}e.s(["CustomerLeadsList",()=>s])},700386,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(134962);e.i(527967);var l=e.i(830167),i=e.i(203286),n=e.i(723178),s=e.i(948148),o=e.i(956091);function c({parsedEmbed:e,recaptchaSiteKey:c,defaultProductName:d}){let u=(0,s.useTranslations)(),m="sf_pdp_modern_target",{formRef:h,showSuccess:p,captchaError:g,handleSubmit:v,handleIframeLoad:x}=(0,n.useSalesforceIframeFormSubmit)(c),{emailInputRef:b}=(0,i.useAuthEmailPrefill)(),f=e.visibleFields,w=f.find(e=>"product"===e.role),y=f.find(e=>"qty"===e.role),j=f.find(e=>"uom"===e.role),N=f.find(e=>"email"===e.role),_=f.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:m,title:"form submission target",className:"hidden",onLoad:x}),(0,t.jsxs)("form",{ref:h,className:"pdp-modern__form",action:e.action,method:e.method,target:m,onSubmit:v,children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),w?(0,t.jsxs)("div",{className:"pdp-modern__field pdp-modern__field--wide",children:[(0,t.jsxs)("label",{htmlFor:w.id,children:[u("product_name")," ",(0,t.jsx)("span",{"aria-hidden":!0,children:"*"})]}),(0,t.jsx)(r.ProductNameAutocompleteInput,{id:w.id,name:w.name,required:!0,defaultValue:d??"",searchMode:"catalog",placeholder:u("enter_product_name"),className:"pdp-modern__input",listClassName:"pdp-modern__suggestions",itemClassName:"pdp-modern__suggestion",activeItem
131ClassName:"is-active",emptyClassName:"pdp-modern__suggestion pdp-modern__suggestion--empty"})]}):null,y||j?(0,t.jsxs)("div",{className:"pdp-modern__field",children:[(0,t.jsxs)("label",{htmlFor:y?.id??j?.id,children:[u("quantity")," ",(0,t.jsx)("span",{"aria-hidden":!0,children:"*"})]}),(0,t.jsxs)("div",{className:"pdp-modern__quantity",children:[y?(0,t.jsx)("input",{type:"text",id:y.id,name:y.name,required:!0,placeholder:u("enter_quantity"),className:"pdp-modern__quantity-input"}):null,j?(0,t.jsxs)("div",{className:"pdp-modern__uom",children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:j.id,children:u("unit_of_measure")}),(0,t.jsxs)("select",{id:j.id,name:j.name,required:!0,defaultValue:"","aria-label":u("unit_of_measure"),className:"pdp-modern__select",children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:u("select")}),j.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)(l.ArrowIcon,{className:"pdp-modern__select-arrow","aria-hidden":!0})]}):null]})]}):null,N?(0,t.jsxs)("div",{className:"pdp-modern__field",children:[(0,t.jsxs)("label",{htmlFor:N.id,children:[u("email")," ",(0,t.jsx)("span",{"aria-hidden":!0,children:"*"})]}),(0,t.jsx)("input",{ref:b,type:"email",id:N.id,name:N.name,maxLength:N.maxLength,required:!0,placeholder:u("enter_your_email"),className:"pdp-modern__input"})]}):null,_?(0,t.jsxs)("div",{className:"pdp-modern__field pdp-modern__field--wide",children:[(0,t.jsx)("label",{htmlFor:_.id,children:u("message")}),(0,t.jsx)("textarea",{id:_.id,name:_.name,rows:_.rows,placeholder:u("enter_your_message"),className:"pdp-modern__textarea"})]}):null,c?(0,t.jsx)("div",{className:"pdp-modern__recaptcha",children:(0,t.jsx)(o.RecaptchaWidget,{siteKey:c})}):null,(0,t.jsxs)("div",{className:"pdp-modern__form-footer",children:[p?(0,t.jsx)("p",{className:"pdp-modern__form-status is-success",role:"status",children:"Thank you! We'll be in touch."}):g?(0,t.jsx)("p",{className:"pdp-modern__form-status is-error",role:"alert",children:g}):null,(0,t.jsx)(a.Button,{variant:"primary",type:"submit",className:"pdp-modern__submit",children:u("submit_inquiry")})]})]})]})}e.s(["PdpSalesforceEmbedForm",()=>c])},818739,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(174080);e.i(527967);var n=e.i(830167),s=e.i(887300),o=e.i(948148);function c({href:e,onClick:a,children:l}){let i="h1s-explore-dialog-link";return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:i,target:"_blank",rel:"noopener noreferrer",onClick:a,children:l}):(0,t.jsx)(r.Link,{href:e,className:i,onClick:a,children:l})}function d({isOpen:e,onClose:r,exploreCategories:d=[]}){let u=(0,o.useTranslations)(),m=(0,l.useSyncExternalStore)(()=>()=>void 0,()=>!0,()=>!1),[h,p]=(0,l.useState)(()=>d[0]?.label??"");if((0,l.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,r]),!e||!m)return null;let g=d.find(e=>e.label===h)??d[0],v=g?.label??"",x=g?.children??[];return(0,i.createPortal)((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","data-modern-header":!0,className:"h1s-explore-backdrop","aria-label":u("close"),onClick:r}),(0,t.jsxs)("section",{"data-modern-header":!0,className:"h1s-explore-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"modern-explore-title",children:[(0,t.jsxs)("header",{className:"h1s-explore-dialog-header",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-header-content",children:[(0,t.jsx)("h2",{id:"modern-explore-title",className:"h1s-explore-dialog-title",children:u("select_a_website_to_explore")}),(0,t.jsx)("p",{className:"h1s-explore-dialog-desc",children:u("website_explore_description")})]}),(0,t.jsx)("button",{type:"button",className:"h1s-explore-dialog-close","aria-label":u("close"),onClick:r,children:(0,t.jsx)(s.ClearIcon,{"aria-hidden":!0})})]}),d.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs-wrap",children:[(0,t.jsxs)("div",{className:"h1s-explore-dialog-tabs h1s-explore-dialog-tabs--select",children:[(0,t.jsx)("select",{value:v,onCh
131ange:e=>p(e.target.value),className:"h1s-explore-dialog-select","aria-label":u("explore_categories"),children:d.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label},e.label))}),(0,t.jsx)(n.ArrowIcon,{className:"h1s-explore-dialog-select-icon","aria-hidden":!0})]}),(0,t.jsx)("div",{className:"h1s-explore-dialog-tabs h1s-explore-dialog-tabs--buttons",role:"tablist",children:d.map(e=>(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":v===e.label,className:`h1s-explore-dialog-tab${v===e.label?" is-active":""}`,onClick:()=>p(e.label),children:e.label},e.label))})]}),(0,t.jsx)("ul",{className:"h1s-explore-dialog-grid",children:x.map((e,l)=>{let i=e.href?.trim(),n=(0,t.jsxs)(t.Fragment,{children:[e.flagSrc?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:36,height:36})}):e.flagEmoji?(0,t.jsx)("span",{className:"h1s-explore-dialog-flag h1s-explore-dialog-flag-emoji",children:e.flagEmoji}):null,(0,t.jsx)("span",{className:"h1s-explore-dialog-link-label",children:e.label})]});return(0,t.jsx)("li",{children:i?(0,t.jsx)(c,{href:i,onClick:r,children:n}):(0,t.jsx)("span",{className:"h1s-explore-dialog-link h1s-explore-dialog-link-static",children:n})},`${e.label}-${l}`)})})]}):(0,t.jsx)("p",{className:"h1s-explore-dialog-empty",children:u("no_websites_available")})]})]}),document.body)}e.s(["WebsiteExplorePanel",()=>d])},25153,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(419037),l=e.i(657688);e.i(79951);var i=e.i(76209),n=e.i(271645),s=e.i(861745),o=e.i(948148),c=e.i(24014),d=e.i(420268);function u({languages:e,activeLanguageCode:u,compact:m=!1}){let h=(0,o.useTranslations)(),p=(0,s.useLocale)(),g=(0,i.usePathname)(),v=(0,n.useRef)(null),[x,b]=(0,n.useState)(!1),[f,w]=(0,n.useState)(null),y=(0,c.resolveActiveLocaleCode)(u)||p,j=(0,d.normalizeUiLocale)(y),N=e.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,d.normalizeUiLocale)(e.code)===j)??e[0];(0,n.useEffect)(()=>{if(!x)return;let e=e=>{v.current?.contains(e.target)||b(!1)},t=e=>{"Escape"===e.key&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[x]);let _=async e=>{let t=e.trim();t&&(w(t),await (0,c.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{w(null),b(!1)},onError:()=>w(null),onApplied:()=>{b(!1);let e=(0,d.normalizeUiLocale)(t);(0,c.resolveLocalizedPathForLanguage)(g,e,y).then(e=>{window.location.assign(`${e}${window.location.search}${window.location.hash}`)})}}),w(null))};return(0,t.jsxs)("div",{className:"h1m-language",ref:v,children:[(0,t.jsxs)("button",{type:"button",className:`h1m-language-trigger${m?" h1m-language-trigger--compact":""}`,"aria-label":h("language"),"aria-expanded":x,"aria-haspopup":"listbox",onClick:()=>b(e=>!e),children:[N?.flagSrc?(0,t.jsx)("span",{className:"h1m-language-flag",children:(0,t.jsx)(l.default,{src:N.flagSrc,alt:"",width:18,height:12})}):(0,t.jsx)(r.GlobeIcon,{className:"h-4 w-4","aria-hidden":!0}),m?null:(0,t.jsx)("span",{children:N?.name??h("language")}),(0,t.jsx)(a.ArrowIcon,{className:"h1m-chevron","aria-hidden":!0})]}),x?(0,t.jsx)("div",{className:"h1m-language-menu",role:"listbox","aria-label":h("language"),children:e.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,d.normalizeUiLocale)(a)===j;return(0,t.jsxs)("button",{type:"button",className:"h1m-language-option",disabled:f?.toLowerCase()===a.toLowerCase(),"aria-selected":r,role:"option",onClick:()=>_(e.code),children:[e.flagSrc?(0,t.jsx)("span",{className:"h1m-language-flag",children:(0,t.jsx)(l.default,{src:e.flagSrc,alt:"",width:18,height:12})}):null,(0,t.jsx)("span",{children:e.name})]},e.code)})}):null]})}function m({languages:e,activeLanguageCode:a,onOpenGroupSites:l}){let i=(0,o.useTranslations)();return(0,t.jsx)("div",{className:"h1m-utility-bar",children:(0,t.jsx)("div",{className:"layout-container h1m-utility-inner",children:(0,t.jsxs)("div",{className:"h1m-utility-nav",children:[(0,t.jsxs)("button",{type:"button",className:"h1m-group-sites-trigger","aria-haspopup":"dialog",onClick:l,children:[(0,t.jsx)(r.GlobeIcon,{className:"h-4 w-4","aria-hidden":!0}),(0,t.jsx)("span",{children:i("group_sites")})]}),e.length>0?(0,t.jsx)(u,{languages:e,activeLanguageCode:a}):null]})})})}e.s(["LuxeUtilityBar",()=>m])},462649,e=>{e.v({languageChevron:"FooterOne-module__WqCR5W__languageChevron",languageChevronWrap:"FooterOne-module__WqCR5W__languageChevronWrap",languageDropdown:"FooterOne-module__WqCR5W__languageDropdown",languageIcon:"FooterOne-module__WqCR5W__languageIcon",languageIconWrap:"FooterOne-module__WqCR5W__languageIconWrap",languageLabel:"FooterOne-module__WqCR5W__languageLabel",languageMenu:"FooterOne-module__WqCR5W__languageMenu",languageOption:"FooterOne-module__WqCR5W__languageOption",languageOptionName:"FooterOne-module__WqCR5W__languageOptionName",languageTrigger:"FooterOne-module__WqCR5W__languageTrigger"})},567067,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(419037),l=e.i(24014),i=e.i(420268);e.i(79951);var n=e.i(76209),s=e.i(158760),o=e.i(861745),c=e.i(948148),d=e.i(271645),u=e.i(462649);function m(){let e=(0,c.useTranslations)(),m=(0,o.useLocale)(),h=(0,n.usePathname)(),p=(0,s.use
131StorefrontConfig)(),g=(0,d.useRef)(null),[v,x]=(0,d.useState)(!1),[b,f]=(0,d.useState)(null),w=(0,d.useMemo)(()=>{let e=p?.meta?.allowedLanguages;return e?.length?e.map(e=>({code:e.locale,name:e.native_name||e.name,flagSrc:e.iconSrc})):[]},[p?.meta?.allowedLanguages]),y=(0,l.resolveActiveLocaleCode)(p?.meta?.activeLanguageCode)||m,j=(0,i.normalizeUiLocale)(y),N=w.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,i.normalizeUiLocale)(e.code)===j)??w[0],_=N?.name||function(e){try{return new Intl.DisplayNames([e],{type:"language"}).of(e)??e}catch{return e}}(j||m);(0,d.useEffect)(()=>{if(v)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){g.current?.contains(e.target)||x(!1)}function t(e){"Escape"===e.key&&x(!1)}},[v]);let k=async e=>{let t=e.trim();if(!t)return;let a=(0,i.normalizeUiLocale)(t);f(t),await (0,l.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{f(null),x(!1)},onError:()=>{f(null)},onApplied:()=>{x(!1),(0,l.resolveLocalizedPathForLanguage)(h,a,y).then(e=>{window.location.assign(`${e}${window.location.search}${window.location.hash}`)})}}),f(null)},C=w.length>0;return(0,t.jsxs)("div",{className:u.default.languageDropdown,ref:g,children:[(0,t.jsxs)("button",{type:"button",className:u.default.languageTrigger,"aria-label":e("language"),"aria-expanded":v,"aria-haspopup":C?"listbox":void 0,onClick:()=>{C&&x(e=>!e)},children:[(0,t.jsx)("span",{className:u.default.languageIconWrap,"aria-hidden":"true",children:(0,t.jsx)(r.GlobeIcon,{className:u.default.languageIcon})}),(0,t.jsx)("span",{className:u.default.languageLabel,children:_}),(0,t.jsx)("span",{className:u.default.languageChevronWrap,"aria-hidden":"true",children:(0,t.jsx)(a.ArrowIcon,{className:u.default.languageChevron})})]}),v&&C?(0,t.jsx)("div",{className:u.default.languageMenu,role:"listbox","aria-label":e("language"),children:w.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,i.normalizeUiLocale)(a)===j,l=b?.toLowerCase()===a.toLowerCase();return(0,t.jsx)("button",{type:"button",className:u.default.languageOption,disabled:l,"aria-selected":r,role:"option",onClick:()=>k(e.code),children:(0,t.jsx)("span",{className:u.default.languageOptionName,children:e.name})},e.code)})}):null]})}e.s(["FooterLanguageDropdown",()=>m])},280681,e=>{e.v({address:"FooterOne-module__63GhzG__address",appBadges:"FooterOne-module__63GhzG__appBadges",appCol:"FooterOne-module__63GhzG__appCol",backgroundImage:"FooterOne-module__63GhzG__backgroundImage",bottomBar:"FooterOne-module__63GhzG__bottomBar",brandCol:"FooterOne-module__63GhzG__brandCol",brandText:"FooterOne-module__63GhzG__brandText",colTitle:"FooterOne-module__63GhzG__colTitle",contactCol:"FooterOne-module__63GhzG__contactCol",contactRows:"FooterOne-module__63GhzG__contactRows",container:"FooterOne-module__63GhzG__container",copyrightText:"FooterOne-module__63GhzG__copyrightText",footer:"FooterOne-module__63GhzG__footer",grid:"FooterOne-module__63GhzG__grid",languageChevron:"FooterOne-module__63GhzG__languageChevron",languageChevronWrap:"FooterOne-module__63GhzG__languageChevronWrap",languageDropdown:"FooterOne-module__63GhzG__languageDropdown",languageIcon:"FooterOne-module__63GhzG__languageIcon",languageIconWrap:"FooterOne-module__63GhzG__languageIconWrap",languageLabel:"FooterOne-module__63GhzG__languageLabel",languageMenu:"FooterOne-module__63GhzG__languageMenu",languageOption:"FooterOne-module__63GhzG__languageOption",languageOptionName:"FooterOne-module__63GhzG__languageOptionName",languageTrigger:"FooterOne-module__63GhzG__languageTrigger",logo:"FooterOne-module__63GhzG__logo",logoLink:"FooterOne-module__63GhzG__logoLink",main:"FooterOne-module__63GhzG__main",navCol:"FooterOne-module__63GhzG__navCol",navList:"FooterOne-module__63GhzG__navList",overlay:"FooterOne-module__63GhzG__overlay",socialBlock:"FooterOne-module__63GhzG__socialBlock",socialLink:"FooterOne-module__63GhzG__socialLink",socialRow:"FooterOne-module__63GhzG__socialRow",visuallyHidden:"FooterOne-module__63GhzG__visuallyHidden"})},72984,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(419037),l=e.i(24014),i=e.i(420268);e.i(79951);var n=e.i(76209),s=e.i(158760),o=e.i(861745),c=e.i(948148),d=e.i(271645),u=e.i(280681);function m(){let e=(0,c.useTranslations)(),m=(0,o.useLocale)(),h=(0,n.usePathname)(),p=(0,s.use
131StorefrontConfig)(),g=(0,d.useRef)(null),[v,x]=(0,d.useState)(!1),[b,f]=(0,d.useState)(null),w=(0,d.useMemo)(()=>{let e=p?.meta?.allowedLanguages;return e?.length?e.map(e=>({code:e.locale,name:e.native_name||e.name,flagSrc:e.iconSrc})):[]},[p?.meta?.allowedLanguages]),y=(0,l.resolveActiveLocaleCode)(p?.meta?.activeLanguageCode)||m,j=(0,i.normalizeUiLocale)(y),N=w.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,i.normalizeUiLocale)(e.code)===j)??w[0],_=N?.name||function(e){try{return new Intl.DisplayNames([e],{type:"language"}).of(e)??e}catch{return e}}(j||m);(0,d.useEffect)(()=>{if(v)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){g.current?.contains(e.target)||x(!1)}function t(e){"Escape"===e.key&&x(!1)}},[v]);let k=async e=>{let t=e.trim();if(!t)return;let a=(0,i.normalizeUiLocale)(t);f(t),await (0,l.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{f(null),x(!1)},onError:()=>{f(null)},onApplied:()=>{x(!1),(0,l.resolveLocalizedPathForLanguage)(h,a,y).then(e=>{window.location.assign(`${e}${window.location.search}${window.location.hash}`)})}}),f(null)},C=w.length>0;return(0,t.jsxs)("div",{className:u.default.languageDropdown,ref:g,children:[(0,t.jsxs)("button",{type:"button",className:u.default.languageTrigger,"aria-label":e("language"),"aria-expanded":v,"aria-haspopup":C?"listbox":void 0,onClick:()=>{C&&x(e=>!e)},children:[(0,t.jsx)("span",{className:u.default.languageIconWrap,"aria-hidden":"true",children:(0,t.jsx)(r.GlobeIcon,{className:u.default.languageIcon})}),(0,t.jsx)("span",{className:u.default.languageLabel,children:_}),(0,t.jsx)("span",{className:u.default.languageChevronWrap,"aria-hidden":"true",children:(0,t.jsx)(a.ArrowIcon,{className:u.default.languageChevron})})]}),v&&C?(0,t.jsx)("div",{className:u.default.languageMenu,role:"listbox","aria-label":e("language"),children:w.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,i.normalizeUiLocale)(a)===j,l=b?.toLowerCase()===a.toLowerCase();return(0,t.jsx)("button",{type:"button",className:u.default.languageOption,disabled:l,"aria-selected":r,role:"option",onClick:()=>k(e.code),children:(0,t.jsx)("span",{className:u.default.languageOptionName,children:e.name})},e.code)})}):null]})}e.s(["FooterLanguageDropdown",()=>m])},916648,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(716787);var r=e.i(659544);e.i(527967);var l=e.i(830167),i=e.i(203286),n=e.i(134962),s=e.i(324377),o=e.i(329078),c=e.i(647898);let d={product:0,qty:1,uom:2,email:3,description:4},u="w-full min-h-[var(--banner-one-input-height)] rounded-[var(--banner-one-input-radius)] border-2 border-[var(--banner-one-input-border)] bg-[var(--banner-one-input-bg)] px-[var(--banner-one-input-padding-x)] py-[var(--banner-one-input-padding-y)] text-[length:var(--banner-one-input-text-size)] leading-[var(--body-regular-line-height)] font-[var(--banner-one-input-font-weight)] placeholder:text-[length:var(--banner-one-input-text-size)] placeholder:font-[var(--banner-one-input-placeholder-weight)] placeholder:text-[var(--banner-one-input-placeholder-color)] focus:border-[var(--banner-one-input-focus-border)] focus:outline-none";function m(e){let t=e.trim();return t?t.endsWith("*")?t:`${t} *`:"*"}function h({parsedEmbed:e,recaptchaSiteKey:h,productNamePlaceholder:p,quantityPlaceholder:g,quantityAriaLabel:v,emailPlaceholder:x,messagesPlaceholder:b,uomPlaceholder:f,uomAriaLabel:w,submitLabel:y,submitAriaLabel:j,successMessage:N}){let{emailInputRef:_}=(0,i.useAuthEmailPrefill)(),[k,C]=(0,a.useState)(!1),[S,L]=(0,a.useState)(null),I=(0,a.useRef)(!1),z=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!S||!h)return;let e=window.setInterval(()=>{let e=z.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&L(null)},400);return()=>window.clearInterval(e)},[S,h]);let A=[...e.visibleFields].sort((e,t)=>(d[e.role]??99)-(d[t.role]??99)),q=A.find(e=>"qty"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){I.current&&(I.current=!1,z.current?.reset(),(0,c.resetRecaptcha)(z.current),L(null),C(!0),setTimeout(()=>C(!1),4e3))}}),(0,t.jsxs)("form",{ref:z,className:"flex flex-col gap-[var(--banner-one-form-gap)]",action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(h){let t=z.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),I.current=!1,C(!1),L("Please complete reCAPTCHA.");return}L(null)}I.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),A.map(e=>"product"===e.role?(0,t.jsx)(n.ProductNameAutocompleteInput,{id:e.id,name:e.name,required:!0,placeholder:m(p),className:u},e.name):"qty"===e.role?null:"uom"===e.role?(0,t.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-[var(--banner-one-form-row-gap)] md:grid-cols-2",children:[q&&(0,t.jsx)(s.QuantitySpinnerInput,{id:q.id,name:q.name,required:!0,placeholder:m(g),ariaLabel:v,className:`${u} min-w-0 px-[var(--banner-one-input-padding-x-compact)]`}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:e.id,name:e.name,required:!0,defaultValue:"","aria-label":w,className:`${u} appearance-none bg-[var(--banner-one-select-bg)] pe-[var(--banner-one-select-padding-inline-end)] text-[var(--banner-one-select-text-color)]`,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,className:"bg-[var(--banner-one-select-option-disabled-bg)] text-[var(--banner-one-select-option-disabled-color)]",children:m(f)}),e.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,className:"bg-[var(--banner-one-select-option-bg)] text-[var(--banner-one-select-option-color)]",children:a},e))]}),(0,t.jsx)("span",{className:"pointer-events-none absolute inset-y-0 end-[var(--banner-one-select-arrow-inset-inline-end)] flex items-center",children:(0,t.jsx)(l.ArrowIcon,{className:"h-3 w-3 rotate-90 text-[var(--banner-one-select-arrow-color)]"})})]})]},e.name):"email"===e.role?(0,t.jsx)("input",{ref:_,type:"email",id:e.id,name:e.name,maxLength:e.maxLength,required:!0,placeholder:m(x),className:u},e.name):"description"===e.role?(0,t.jsx)("textarea",{id:e.id,name:e.name,rows:e.rows,placeholder:b,className:`${u}
131 min-h-[var(--banner-one-textarea-min-height)] resize-y rounded-[var(--banner-one-textarea-radius)]`},e.name):null),h&&(0,t.jsx)(o.RecaptchaWidget,{siteKey:h}),(0,t.jsxs)("div",{className:"mt-[var(--banner-one-submit-margin-top)] flex items-center gap-3 mb-[var(--banner-one-submit-margin-bottom)]",children:[k?(0,t.jsx)("p",{className:"text-[length:var(--banner-one-input-text-size)] font-[var(--banner-one-input-font-weight)] text-[var(--color-success,#16a34a)]",children:N||"Thank you! We'll be in touch."}):S?(0,t.jsx)("p",{className:"text-[length:var(--banner-one-input-text-size)] font-[var(--banner-one-input-font-weight)] text-[var(--color-danger,#dc2626)]",children:S}):null,(0,t.jsx)(r.Button,{variant:"primary",type:"submit","aria-label":j,className:"ms-auto",children:y})]})]})]})}e.s(["SalesforceEmbedForm",()=>h])},471216,e=>{"use strict";var t=e.i(843476),a=e.i(212090),r=e.i(22584),l=e.i(388578);e.i(79951);var i=e.i(902936),n=e.i(948148),s=e.i(271645);function o(...e){for(let t of e){if(null==t)continue;let e=String(t).trim();if(e)return e}return"-"}function c(e){if(!e)return"-";let t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"2-digit"}).format(t)}function d(){let e=(0,n.useTranslations)(),[d,m]=(0,s.useState)([]),[h,p]=(0,s.use
131State)(!0),[g,v]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let t=!1;return async function(){p(!0),v(null);try{let e=await (0,l.fetchCustomerShipmentsClient)();t||m(function(e){return Array.isArray(e)?e:e&&!Array.isArray(e)&&"object"==typeof e&&null!==e&&Array.isArray(e.shipments)?e.shipments:[]}(e.data))}catch(a){console.error("[CUSTOMER] Unable to load shipments",a),t||(v(e("account_flow_unable_load_orders")),m([]))}finally{t||p(!1)}}(),()=>{t=!0}},[e]),(0,t.jsxs)("div",{className:"grid gap-[var(--gap-20)]",children:[(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--gap-15)] md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:e("account_flow_shipments")}),(0,t.jsx)("h2",{className:a.accountTitleClass,children:e("my_orders")})]}),(0,t.jsx)("span",{className:a.accountCountClass,children:e("account_flow_total_count",{count:d.length})})]}),(0,t.jsx)("p",{className:a.accountMutedClass,children:e("account_flow_orders_description")})]}),h?(0,t.jsx)("p",{className:a.accountMutedClass,children:e("account_flow_loading_orders")}):null,g?(0,t.jsx)("p",{className:a.accountErrorClass,children:g}):null,h||g||0!==d.length?null:(0,t.jsx)("div",{className:(0,a.cx)(a.accountCardClass,"text-[length:var(--body-regular-size)] text-[var(--brand-neutral-text)]"),children:e("account_flow_no_orders")}),d.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-[var(--gap-20)] md:grid-cols-2",children:d.map((l,n)=>{let s=o(l.Id),d=o(l.Status__c),m=l.ETA_Date__c||l.ETA_estimated_Date_of_Arrival__c,h="-"===s?r.routes.auth.orders:r.routes.auth.orderDetail(s);return(0,t.jsxs)(i.Link,{className:(0,a.cx)(a.accountCardClass,"grid gap-[var(--gap-20)] text-inherit no-underline transition-default hover:-translate-y-0.5 hover:border-[var(--brand-secondary)]"),href:h,"aria-label":`View shipment ${o(l.Name,s)}`,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--gap-15)] md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:e("account_flow_shipment")}),(0,t.jsx)("h3",{className:"m-0 text-[20px] font-[var(--font-weight-semibold)] leading-[1.35] text-[var(--brand-primary-deep)]",children:o(l.Name,s)})]}),(0,t.jsx)("span",{className:(0,a.statusPillClass)("-"===d),children:"-"===d?e("account_flow_pending"):d})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--gap-12)] md:grid-cols-2",children:[(0,t.jsx)(u,{label:e("account_flow_order_number"),value:o(l.Order__r?.OrderNumber)}),(0,t.jsx)(u,{label:e("account_flow_product"),value:o(l.Product_Name__c)}),(0,t.jsx)(u,{label:e("account_flow_quantity"),value:function(e){let t=o(e.Quantity__c);if("-"===t)return"-";let a=o(e.UOM__c);return"-"===a?t:`${t} ${a}`}(l)}),(0,t.jsx)(u,{label:e("account_flow_created"),value:c(l.CreatedDate)}),(0,t.jsx)(u,{label:e("account_flow_eta"),value:c(m)}),(0,t.jsx)(u,{label:e("account_flow_etd"),value:c(l.ETD_Date__c)})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--gap-8)] border-t border-[var(--brand-border-color-light)] pt-[var(--gap-15)] md:flex-row md:justify-between",children:[(0,t.jsxs)("span",{className:"block text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:[e("account_flow_awb"),": ",o(l.AWB_NO__c)]}),(0,t.jsx)("span",{className:"block text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:o(l.AWB_Current_Status__c,l.Last_Tracking_Location__c)})]})]},`${s}-${n}`)})}):null]})}function u({label:e,value:a}){return(0,t.jsxs)("div",{className:"bg-[var(--brand-neutral-surface-5)] px-[14px] py-3",children:[(0,t.jsx)("span",{className:"block text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:e}),(0,t.jsx)("strong",{className:"mt-1 block text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:a})]})}e.s(["CustomerShipmentsList",()=>d])},183205,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(134962);e.i(527967);var l=e.i(830167),i=e.i(203286),n=e.i(723178),s=e.i(948148),o=e.i(572447);let c="h-11 w-full rounded-lg border border-[#e5e7eb] bg-white px-3 text-sm font-normal text-[#0f172a] placeholder:text-sm placeholder:font-normal placeholder:text-[#94a3b8] focus:border-[var(--brand-primary,#2563eb)
131] focus:outline-none",d="text-start text-sm font-semibold text-[#0f172a] normal-case tracking-normal";function u({parsedEmbed:e,recaptchaSiteKey:u,defaultProductName:m}){let h=(0,s.useTranslations)(),{formRef:p,showSuccess:g,captchaError:v,handleSubmit:x,handleIframeLoad:b}=(0,n.useSalesforceIframeFormSubmit)(u),{emailInputRef:f}=(0,i.useAuthEmailPrefill)(),w=e.visibleFields,y=w.find(e=>"product"===e.role),j=w.find(e=>"qty"===e.role),N=w.find(e=>"uom"===e.role),_=w.find(e=>"email"===e.role),k=w.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_pdp_iframe",title:"form submission target",className:"hidden",onLoad:function(){if(b(),!y||!m||!p.current)return;let e=p.current.elements.namedItem(y.name);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=m)}}),(0,t.jsxs)("form",{ref:p,className:"flex flex-col gap-4",action:e.action,method:"POST",target:"sf_pdp_iframe",onSubmit:x,children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),y?(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{className:d,htmlFor:y.id,children:[h("product_name")," ",(0,t.jsx)("span",{className:"text-[#ef4444]",children:"*"})]}),(0,t.jsx)(r.ProductNameAutocompleteInput,{id:y.id,name:y.name,required:!0,defaultValue:m??"",searchMode:"catalog",placeholder:h("enter_product_name"),className:c})]}):null,N||j?(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{className:d,htmlFor:j?.id??N?.id,children:[h("quantity")," ",(0,t.jsx)("span",{className:"text-[#ef4444]",children:"*"})]}),(0,t.jsxs)("div",{className:"flex min-h-11 overflow-hidden rounded-lg border border-[#e5e7eb] bg-white",children:[j?(0,t.jsx)("input",{type:"text",id:j.id,name:j.name,required:!0,placeholder:h("enter_quantity"),className:"min-w-0 flex-1 border-0 bg-transparent px-3 text-sm font-normal text-[#0f172a] placeholder:text-sm placeholder:font-normal placeholder:text-[#94a3b8] focus:outline-none"}):null,N?(0,t.jsxs)("div",{className:"relative min-w-[7.5rem] shrink-0 border-s border-[#e5e7eb]",children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:N.id,children:h("unit_of_measure")}),(0,t.jsxs)("select",{id:N.id,name:N.name,required:!0,defaultValue:"","aria-label":h("unit_of_measure"),className:"h-11 w-full appearance-none bg-transparent pe-8 ps-3 text-sm font-normal text-[#0f172a] focus:outline-none",children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:h("select")}),N.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)("span",{className:"pointer-events-none absolute inset-y-0 end-2.5 flex items-center",children:(0,t.jsx)(l.ArrowIcon,{className:"h-2.5 w-2.5 rotate-90 text-[#64748b]"})})]}):null]})]}):null,_?(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{className:d,htmlFor:_.id,children:[h("email")," ",(0,t.jsx)("span",{className:"text-[#ef4444]",children:"*"})]}),(0,t.jsx)("input",{ref:f,type:"email",id:_.id,name:_.name,maxLength:_.maxLength,required:!0,placeholder:h("enter_your_email"),className:c})]}):null,k?(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("label",{className:d,htmlFor:k.id,children:h("message")}),(0,t.jsx)("textarea",{id:k.id,name:k.name,rows:4,placeholder:h("enter_your_message"),className:`${c} min-h-[6.5rem] resize-y py-2.5 leading-relaxed`})]}):null,u?(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsx)(o.RecaptchaWidget,{siteKey:u})}):null,(g||v)&&(0,t.jsx)("div",{children:g?(0,t.jsx)("p",{className:"m-0 text-start text-sm text-[var(--brand-primary,#2563eb)
131]",children:"Thank you! We'll be in touch."}):v?(0,t.jsx)("p",{className:"m-0 text-start text-sm text-[#ef4444]",children:v}):null}),(0,t.jsx)("div",{className:"pt-1",children:(0,t.jsx)(a.Button,{variant:"primary",type:"submit",className:"inline-flex h-11 w-full items-center justify-center rounded-lg text-sm font-semibold leading-none !shadow-none !py-0",children:h("submit_inquiry")})})]})]})}e.s(["PdpSalesforceEmbedForm",()=>u])},249649,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(527967);var r=e.i(830167),l=e.i(944392),l=l,i=e.i(123852),i=i,n=e.i(657688),s=e.i(579053),o=e.i(186301),c=e.i(980401);let d=[{id:1,name:"SIAL Interfood 2026",date:"2026-11-04 00:00:00",location:"Nusantara International Convention Exhibition (NICE) PIK 2, Tangerang, Indonesia",image:"/sialLogo.png",calenderIcon:l.default,locationIcon:i.default},{id:2,name:"SIAL Interfood 2025",date:"2025-11-04 00:00:00",location:"Nusantara International Convention Exhibition (NICE) PIK 2, Tangerang, Indonesia",image:"/sialLogo.png",calenderIcon:l.default,locationIcon:i.default}];function u({title:e,subtitle:l}){return(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industry-updates-events-gap-main-mobile)] h-full lg:gap-[var(--industry-updates-events-gap-main-desktop)]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--industry-updates-events-gap-header)]",children:[(0,t.jsx)("h2",{className:"heading-3 text-[var(--industry-updates-subsection-title-color)]",children:e}),l&&(0,t.jsx)("p",{className:"body-large",children:l})]}),(0,t.jsx)("div",{className:"relative z-10 w-full flex-1 min-h-0 flex flex-col rounded-2xl bg-[var(--industry-updates-events-card-bg)] shadow-[var(--industry-updates-events-card-shadow)] hover:shadow-[var(--industry-updates-events-card-shadow-hover)] gap-[var(--industry-updates-events-card-gap)]",children:(0,t.jsxs)("div",{className:"relative z-10 flex flex-1 min-h-0 flex flex-col",children:[(0,t.jsx)(c.Swiper,{modules:[s.Navigation,o.Pagination],spaceBetween:110,slidesPerView:1,slidesPerGroup:1,speed:0,allowTouchMove:!1,loop:!1,navigation:{prevEl:".events-swiper-prev",nextEl:".events-swiper-next"},pagination:{clickable:!0,el:".events-swiper-pagination",renderBullet:(e,t)=>`<span class="${t} h-[6px] w-[6px] rounded-[10px] bg-[var(--industry-updates-events-pagination-bullet-color)] cursor-pointer transition-all duration-300"></span>`},breakpoints:{320:{slidesPerView:1,spaceBetween:12}},className:"industries-swiper h-full w-full flex-1",children:d.map(e=>(0,t.jsx)(c.SwiperSlide,{children:(0,t.jsxs)("div",{className:"rounded-tl-2xl rounded-tr-2xl overflow-hidden h-full flex flex-col",children:[(0,t.jsx)("div",{className:"relative w-full bg-[var(--industry-updates-events-card-bg)]",children:(0,t.jsx)(n.default,{src:e.image,alt:e.name,width:420,height:420,className:"object-cover w-full h-auto py-[var(--industry-updates-events-slide-image-padding-y)]"})}),(0,t.jsxs)("div",{className:"bg-[var(--industry-updates-events-slide-content-bg)] flex-1 px-5 md:px-8 pb-0 py-[var(--industry-updates-events-slide-content-padding-y)] flex flex-col",children:[(0,t.jsx)("h4",{className:"heading-4 text-[var(--industry-updates-events-slide-title-color)]",children:e.name}),(0,t.jsxs)("div",{className:"space-y-[var(--industry-updates-events-slide-details-gap-mobile)] md:space-y-[var(--industry-updates-events-slide-details-gap-desktop)] mt-9 md:mt-6 heading-4 text-[var(--industry-updates-events-slide-text-color)] flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[var(--industry-updates-events-slide-row-gap-mobile)] md:gap-[var(--industry-updates-events-slide-row-gap-desktop)]",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-8 h-8 flex items-center justify-center",children:(0,t.jsx)(e.calenderIcon,{className:"text-[var(--industry-updates-events-slide-text-color)]"})}),(0,t.jsx)("p",{className:"body-medium text-[var(--industry-updates-events-slide-text-color)]",children:e.date})]}),(0,t.jsxs)("div",{className:"flex items-center gap-[var(--industry-updates-events-slide-row-gap-mobile)] md:gap-[var(--industry-updates-events-slide-row-gap-desktop)]",children:[(0,t.jsx)("div",{className:"flex-shrink-0 w-8 h-8 flex items-center justify-center",children:(0,t.jsx)(e.locationIcon,{className:"text-[var(--industry-updates-events-slide-text-color)]"})}),(0,t.jsx)("p",{className:"body-medium text-[var(--industry-updates-events-slide-text-color)]",children:e.location})]})]})]})]})},e.id))}),(0,t.jsx)("div",{className:"rounded-b-2xl bg-[var(--industry-updates-events-nav-bg)] flex items-center justify-center w-full pb-[var(--industry-updates-events-nav-padding-bottom-mobile)] md:pb-[var(--industry-updates-events-nav-padding-bottom-desktop)] flex-shrink-0 pt-[var(--industry-updates-events-nav-padding-top)]",children:(0,t.jsxs)("div",{className:"grid grid-cols-[1fr_auto_1fr] items-center w-full max-w-[320px] px-4 gap-[var(--industry-updates-events-nav-gap)]",children:[(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)(a.Button,{variant:"outlined",className:"events-swiper-prev inline-flex items-center justify-center shadow-none! p-3! [&.swiper-button-disabled]:opacity-30 h-[50px] w-[50px]",children:(0,t.jsx)(r.ArrowIcon,{className:"w-4 h-3 rotate-180"})})}),(0,t.jsx)("div",{className:"flex events-swiper-pagination items-center justify-center gap-[var(--industry-updates-events-nav-gap)] [&_.swiper-pagination-bullet-active]:!w-[40px] [&_.swiper-pagination-bullet-active]:!rounded-[20px] [&_.swiper-pagination-bullet-active]:!bg-[var(--industry-updates-events-pagination-bullet-color)] [&_.swiper-pagination-bullet]:!bg-[var(--industry-updates-events-pagination-bullet-color)]"}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(a.Button,{variant:"outlined",className:"events-swiper-next inline-flex items-center justify-center shadow-none! p-3! [&.swiper-button-disabled]:opacity-30 h-[50px] w-[50px]",children:(0,t.jsx)(r.ArrowIcon,{className:"w-4 h-3"})})})]})})]})})]})}e.s(["Events",()=>u,"EventsSection",()=>u],249649)},125013,e=>{"use strict";var t=e.i(843476);e.i(527967);
131var a=e.i(830167),r=e.i(337190),l=e.i(45698),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(861745),d=e.i(948148),u=e.i(24014),m=e.i(420268),h=e.i(991283),p=e.i(285216);function g({logo:e,actions:g=[],languages:v=[],activeLanguageCode:x="",websiteName:b,showMenuButton:f=!0,onOpenNav:w}){let y=(0,d.useTranslations)(),j=(0,c.useLocale)(),N=(0,s.usePathname)(),_=e.darkSrc??e.src,k=(0,o.useRef)(null),[C,S]=(0,o.useState)(!1),[L,I]=(0,o.useState)(null),z=(0,u.resolveActiveLocaleCode)(x)||j,A=(0,m.normalizeUiLocale)(z),q=v.find(e=>e.code.trim().toLowerCase()===z.trim().toLowerCase()||(0,m.normalizeUiLocale)(e.code)===A)??v[0],E=z?z.trim().split(/[-_]/)[0]??"":y("language");(0,o.useEffect)(()=>{if(C)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){k.current?.contains(e.target)||S(!1)}function t(e){"Escape"===e.key&&S(!1)}},[C]);let $=async e=>{let t=e.trim();if(!t)return;let a=(0,m.normalizeUiLocale)(t);I(t),await (0,u.setPreferredLocaleAfterVerify)(t,{currentCode:z,onSame:()=>{I(null),S(!1)},onError:()=>{I(null)},onApplied:()=>{S(!1),(0,u.resolveLocalizedPathForLanguage)(N,a,z).then(e=>{window.location.assign(`${e}${window.location.search}${window.location.hash}`)})}}),I(null)};return(0,t.jsx)("div",{className:" border-b-[length:var(--h1p-tier2-border-width)] border-b-[var(--h1p-tier2-border)] bg-[var(--h1p-tier2-bg)] shadow-[var(--h1p-tier2-shadow)] ","data-premium-tier":"logo-search",children:(0,t.jsxs)("div",{className:"layout-container flex min-w-0 items-center gap-[var(--h1p-tier2-gap)] px-3 py-[var(--h1p-tier2-padding-y)] md:px-5",children:[f?(0,t.jsx)("button",{type:"button","aria-label":y("open_menu"),onClick:w,className:"flex h-[var(--h1p-icon-button-size)] w-[var(--h1p-icon-button-size)] shrink-0 cursor-pointer items-center justify-center rounded-[var(--h1p-control-radius)] border border-[var(--h1p-control-border)] bg-transparent text-[var(--h1p-input-text)]",children:(0,t.jsx)(l.HamburgerIcon,{className:"h-5 w-5"})}):null,(0,t.jsx)(n.Link,{href:e.href,"aria-label":b?`${b} - ${y("home")}`:e.alt,className:"inline-flex min-w-0 shrink-0 items-center",children:(0,t.jsx)(i.default,{src:_,alt:e.alt,width:164,height:61,sizes:"(max-width: 1024px) 130px, 164px",priority:!0,className:"h-[var(--h1p-logo-h-mobile)] w-auto object-contain md:h-[var(--h1p-logo-h-desktop)]"})}),(0,t.jsx)("div",{className:"h1p-search-cluster",children:(0,t.jsx)(h.HeaderSearchField,{variant:"premium",inputId:"header-premium-search",className:"h1p-search-field"})}),(0,t.jsxs)("div",{className:"h1p-language-menu",ref:k,children:[(0,t.jsxs)("button",{type:"button",className:"h1p-language-button","aria-label":y("language"),"aria-expanded":C,"aria-haspopup":"listbox",onClick:()=>S(e=>!e),children:[q?.flagSrc?(0,t.jsx)("span",{className:"h1p-language-flag",children:(0,t.jsx)(i.default,{src:q.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):(0,t.jsx)(r.GlobeIconNew,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:z?"h1p-language-code":void 0,children:E}),(0,t.jsx)(a.ArrowIcon,{className:"h1p-language-chevron"})]}),C?(0,t.jsx)("div",{className:"h1p-language-dropdown absolute end-0 top-[calc(100%+10px)] z-[1300] flex w-[220px] flex-col overflow-hidden rounded-lg border border-[#d7e1ef] bg-white shadow-[0_16px_36px_rgba(2,20,56,0.16)]",role:"listbox","aria-label":y("language"),children:v.length>0?v.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===z.toLowerCase()||(0,m.normalizeUiLocale)(a)===A,l=L?.toLowerCase()===a.toLowerCase();return(0,t.jsxs)("button",{type:"button",className:"h1p-language-option flex w-full items-center gap-[9px] border-0 bg-transparent px-3 py-2.5 text-start text-[#15233c]",disabled:l,"aria-selected":r,role:"option",onClick:()=>$(e.code),children:[e.flagSrc?(0,t.jsx)("span",{className:"h1p-language-flag",children:(0,t.jsx)(i.default,{src:e.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):null,(0,t.jsx)("span",{className:"h1p-language-option-name",children:e.name})]},e.code)}):(0,t.jsx)("p",{className:"h1p-language-empty",children:y("no_languages_available")})}):null]}),g.length>0?(0,t.jsx)("div",{className:"h1p-utility-actions",children:(0,t.jsx)(p.HeaderUtilityActions,{actions:g,variant:"desktop"})}):null]})})}e.s(["PremiumLogoSearchBar",()=>g])},244347,e=>{e.v({addressBlock:"FooterOne-module__QO4xmW__addressBlock",appBadgeImage:"FooterOne-module__QO4xmW__appBadgeImage",appBadgeLink:"FooterOne-module__QO4xmW__appBadgeLink",appBadges:"FooterOne-module__QO4xmW__appBadges",appCol:"FooterOne-module__QO4xmW__appCol",bottomBar:"FooterOne-module__QO4xmW__bottomBar",brandCol:"FooterOne-module__QO4xmW__brandCol",brandHead:"FooterOne-module__QO4xmW__brandHead",brandText:"FooterOne-module__QO4xmW__brandText",colTitle:"FooterOne-module__QO4xmW__colTitle",companyName:"FooterOne-module__QO4xmW__companyName",contactCol:"FooterOne-module__QO4xmW__contactCol",contactIcon:"FooterOne-module__QO4xmW__contactIcon",contactIconWrap:"FooterOne-module__QO4xmW__contactIconWrap",contactLink:"FooterOne-module__QO4xmW__contactLink",contactRow:"FooterOne-module__QO4xmW__contactRow",contactRows:"FooterOne-module__QO4xmW__contactRows",container:"FooterOne-module__QO4xmW__container",copyrightText:"FooterOne-module__QO4xmW__copyrightText",footer:"FooterOne-module__QO4xmW__footer",grid:"FooterOne-module__QO4xmW__grid",languageChevron:"FooterOne-module__QO4xmW__languageChevron",languageChevronWrap:"FooterOne-module__QO4xmW__languageChevronWrap",languageDropdown:"FooterOne-module__QO4xmW__languageDropdown",languageIcon:"FooterOne-module__QO4xmW__languageIcon",languageIconWrap:"FooterOne-module__QO4xmW__languageIconWrap",languageLabel:"FooterOne-module__QO4xmW__languageLabel",languageMenu:"FooterOne-module__QO4xmW__languageMenu",languageOption:"FooterOne-module__QO4xmW__languageOption",languageOptionName:"FooterOne-module__QO4xmW__languageOptionName",languageTrigger:"FooterOne-module__QO4xmW__languageTrigger",logo:"FooterOne-module__QO4xmW__logo",navCol:"FooterOne-module__QO4xmW__navCol",navLink:"FooterOne-module__QO4xmW__navLink",navList:"FooterOne-module__QO4xmW__navList",socialIcon:"FooterOne-module__QO4xmW__socialIcon",socialLink:"FooterOne-module__QO4xmW__socialLink",socialRow:"FooterOne-module__QO4xmW__socialRow"})},581374,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(419037),l=e.i(24014),i=e.i(420268);e.i(79951);var n=e.i(76209),s=e.i(158760),o=e.i(861745),c=e.i(948148),d=e.i(271645),u=e.i(244347);function m(){let e=(0,c.useTranslations)(),m=(0,o.useLocale)(),h=(0,n.usePathname)(),p=(0,s.use
131StorefrontConfig)(),g=(0,d.useRef)(null),[v,x]=(0,d.useState)(!1),[b,f]=(0,d.useState)(null),w=(0,d.useMemo)(()=>{let e=p?.meta?.allowedLanguages;return e?.length?e.map(e=>({code:e.locale,name:e.native_name||e.name,flagSrc:e.iconSrc})):[]},[p?.meta?.allowedLanguages]),y=(0,l.resolveActiveLocaleCode)(p?.meta?.activeLanguageCode)||m,j=(0,i.normalizeUiLocale)(y),N=w.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,i.normalizeUiLocale)(e.code)===j)??w[0],_=N?.name||function(e){try{return new Intl.DisplayNames([e],{type:"language"}).of(e)??e}catch{return e}}(j||m);(0,d.useEffect)(()=>{if(v)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){g.current?.contains(e.target)||x(!1)}function t(e){"Escape"===e.key&&x(!1)}},[v]);let k=async e=>{let t=e.trim();if(!t)return;let a=(0,i.normalizeUiLocale)(t);f(t),await (0,l.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{f(null),x(!1)},onError:()=>{f(null)},onApplied:()=>{x(!1),(0,l.resolveLocalizedPathForLanguage)(h,a,y).then(e=>{window.location.assign(`${e}${window.location.search}${window.location.hash}`)})}}),f(null)},C=w.length>0;return(0,t.jsxs)("div",{className:u.default.languageDropdown,ref:g,children:[(0,t.jsxs)("button",{type:"button",className:u.default.languageTrigger,"aria-label":e("language"),"aria-expanded":v,"aria-haspopup":C?"listbox":void 0,onClick:()=>{C&&x(e=>!e)},children:[(0,t.jsx)("span",{className:u.default.languageIconWrap,"aria-hidden":"true",children:(0,t.jsx)(r.GlobeIcon,{className:u.default.languageIcon})}),(0,t.jsx)("span",{className:u.default.languageLabel,children:_}),(0,t.jsx)("span",{className:u.default.languageChevronWrap,"aria-hidden":"true",children:(0,t.jsx)(a.ArrowIcon,{className:u.default.languageChevron})})]}),v&&C?(0,t.jsx)("div",{className:u.default.languageMenu,role:"listbox","aria-label":e("language"),children:w.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,i.normalizeUiLocale)(a)===j,l=b?.toLowerCase()===a.toLowerCase();return(0,t.jsx)("button",{type:"button",className:u.default.languageOption,disabled:l,"aria-selected":r,role:"option",onClick:()=>k(e.code),children:(0,t.jsx)("span",{className:u.default.languageOptionName,children:e.name})},e.code)})}):null]})}e.s(["FooterLanguageDropdown",()=>m])},478522,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645);e.i(527967);var i=e.i(830167),n=e.i(419037),s=e.i(948148);function o({href:e,className:a,onClick:l,children:i}){return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer",onClick:l,children:i}):(0,t.jsx)(r.Link,{href:e,className:a,onClick:l,children:i})}function c({isOpen:e,onClose:r,exploreCategories:c=[],globalWebsiteUrl:d="https://chemtradeasia.com"}){let u=(0,s.useTranslations)(),[m,h]=(0,l.useState)(()=>c[0]?.label??"");if(!e)return null;let p=0===c.length?"":c.some(e=>e.label===m)?m:c[0]?.label??"",g=c.find(e=>e.label===p),v=(g?.children??[]).map(e=>({label:e.label,href:e.href??"#",flagSrc:e.flagSrc,flagEmoji:e.flagEmoji}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-config-drawer-overlay)] bg-[var(--header-two-drawer-desktop-overlay-bg)]","aria-hidden":!0,onClick:r}),(0,t.jsxs)("aside",{className:"fixed end-0 top-0 z-[var(--header-two-z-config-drawer-panel)] flex h-full w-full max-w-[var(--h1p-explore-sidebar-max-width)] flex-col bg-[var(--h1p-explore-sidebar-bg)] shadow-xl",role:"dialog","aria-labelledby":"website-explore-sidebar-title","aria-modal":!0,children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-[var(--header-two-main-border)] px-5 py-4",children:[(0,t.jsx)("h2",{id:"website-explore-sidebar-title",className:"min-w-0 flex-1 text-lg font-semibold text-[var(--header-two-modal-explore-heading-color)]",children:u("select_a_website_to_explore")}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":u("close"),className:"shrink-0 rounded-md p-1 text-[var(--header-two-modal-explore-close-color)] transition-colors hover:text-[var(--header-two-modal-explore-close-hover-color)]",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14,className:"h-[length:var(--header-two-modal-explore-close-icon-size)] w-[length:var(--header-two-modal-explore-close-icon-size)] opacity-70 hover:opacity-100"})})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-4",children:[(0,t.jsx)("p",{className:"pb-4 text-sm text-[var(--header-two-modal-explore-desc-color)]",children:u("website_explore_description")}),c.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative md:hidden",children:[(0,t.jsx)("select",{value:p,onChange:e=>h(e.target.value),"aria-label":u("explore_categories"),className:"w-full appearance-none bg-[var(--header-two-modal-explore-dropdown-bg)] px-[length:var(--header-two-modal-explore-dropdown-padding-x)] py-[length:var(--header-two-modal-explore-dropdown-padding-y)] pe-[length:var(--header-two-modal-explore-dropdown-padding-right)] text-[length:var(--header-two-modal-explore-dropdown-font-size-mobile)] font-[var(--header-two-modal-explore-dropdown-font-weight)] text-[var(--header-two-modal-explore-dropdown-color)] focu
131s:outline-none",children:c.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label},e.label))}),(0,t.jsx)(i.ArrowIcon,{className:"pointer-events-none absolute end-[length:var(--header-two-modal-explore-dropdown-icon-right)] top-1/2 h-[length:var(--header-two-modal-explore-dropdown-icon-size)] w-[length:var(--header-two-modal-explore-dropdown-icon-size)] -translate-y-1/2 rotate-90 text-[var(--header-two-modal-explore-dropdown-icon-color)]"})]}),(0,t.jsx)("div",{className:"hidden flex-wrap gap-x-[length:var(--header-two-modal-explore-tabs-gap)] border-b border-[color:var(--header-two-modal-explore-tabs-border-color)] md:flex",role:"tablist","aria-label":u("explore_categories"),children:c.map(e=>{let a=p===e.label;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":a,className:`p-[length:var(--header-two-modal-explore-tab-padding)] text-[length:var(--header-two-modal-explore-tab-font-size)] font-[var(--header-two-modal-explore-tab-font-weight)] text-[var(--header-two-modal-explore-tab-color)] transition-colors ${a?"-mb-px border-b-[length:var(--header-two-modal-explore-tab-underline-height)] border-[color:var(--header-two-modal-explore-tab-underline-active)]":""}`,onClick:()=>h(e.label),children:e.label},e.label)})})]}):null,(0,t.jsx)("div",{className:"py-4 [scrollbar-gutter:stable]",children:0===c.length?(0,t.jsx)("p",{className:"text-sm text-[var(--header-two-modal-explore-desc-color)]",children:u("no_websites_available")}):(0,t.jsx)("ul",{className:"grid grid-cols-1 gap-y-[length:var(--header-two-modal-explore-grid-gap-y-mobile)]",children:v.map((e,l)=>(0,t.jsx)("li",{children:e.href?(0,t.jsxs)(o,{href:e.href,className:"group flex w-full min-w-0 items-start gap-[length:var(--header-two-modal-explore-item-gap)] rounded-[length:var(--header-two-modal-explore-item-radius)] px-[length:var(--header-two-modal-explore-item-padding-x)] py-[length:var(--header-two-modal-explore-item-padding-y)] transition-colors hover:bg-[var(--header-two-modal-explore-item-hover-bg)]",onClick:r,children:[e.flagSrc?(0,t.jsx)("span",{className:"relative h-[length:var(--header-two-modal-explore-thumb-size)] w-[length:var(--header-two-modal-explore-thumb-size)] shrink-0 overflow-hidden rounded-full bg-[var(--header-two-modal-explore-thumb-bg)] ring-1 ring-[color:var(--header-two-modal-explore-tabs-border-color)]",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:36,height:36,className:"h-full w-full object-cover"})}):e.flagEmoji?(0,t.jsx)("span",{className:"flex h-[length:var(--header-two-modal-explore-thumb-size)] w-[length:var(--header-two-modal-explore-thumb-size)] shrink-0 items-center justify-center rounded-full bg-[var(--header-two-modal-explore-thumb-bg)] text-[length:var(--header-two-modal-explore-label-emoji-font-size)] ring-1 ring-[color:var(--header-two-modal-explore-tabs-border-color)]",children:e.flagEmoji}):(0,t.jsx)("span",{className:"h-[length:var(--header-two-modal-explore-thumb-size)] w-[length:var(--header-two-modal-explore-thumb-size)] shrink-0 rounded-full bg-[var(--header-two-modal-explore-thumb-bg)] ring-1 ring-[color:var(--header-two-modal-explore-tabs-border-color)]","aria-hidden":!0}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,t.jsx)("span",{className:"min-w-0 text-[length:var(--header-two-modal-explore-label-font-size-mobile)] font-[var(--header-two-modal-explore-label-font-weight)] leading-[var(--header-two-modal-explore-label-line-height)] text-[var(--header-two-modal-explore-label-color)]",children:e.label}),(0,t.jsx)(i.ArrowIcon,{"aria-hidden":!0,className:"ms-auto h-3 w-3 shrink-0 rtl:rotate-180 text-[var(--header-two-modal-explore-item-arrow-color)] opacity-0 transition-opacity group-hover:opacity-100"})]})]}):(0,t.jsx)("span",{className:"text-sm text-[var(--header-two-modal-explore-label-color)]",children:e.label})},e.label+l))})})]}),(0,t.jsx)("div",{className:"shrink-0 border-t border-[var(--header-two-modal-explore-footer-separator-color)] px-5 py-4",children:(0,t.jsxs)(o,{href:d,className:"group inline-flex w-full items-center justify-center gap-2 rounded-full border-2 border-[color:var(--header-two-modal-explore-cta-border)] bg-[var(--header-two-modal-explore-cta-bg)] px-4 py-2.5 text-sm font-medium text-[var(--header-two-modal-explore-cta-color)] transition-[color,background-color,border-color] hover:border-[color:var(--header-two-modal-explore-cta-hover-border)] hover:bg-[var(--header-two-modal-explore-cta-hover-bg)] hover:text-[var(--header-two-modal-explore-cta-hover-color)]",onClick:r,children:[(0,t.jsx)(n.GlobeIcon,{className:"h-4 w-4 shrink-0 text-[var(--header-two-modal-explore-cta-color)] group-hover:text-[var(--header-two-modal-explore-cta-hover-color)]","aria-hidden":!0}),u("visit_global_site")]})})]})]})}e.s(["WebsiteExploreSidebar",()=>c])},369867,e=>{"use strict";var t=e.i(843476),a=e.i(212090),r=e.i(22584),l=e.i(388578);e.i(79951);var i=e.i(902936),n=e.i(948148),s=e.i(271645);function o(...e){for(let t of e){if(null==t)continue;let e=String(t).trim();if(e)return e}return"-"}function c(e){if(!e)return"-";let t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"2-digit"}).format(t)}function d(e,t){let a=o(e);if("-"===a)return"-";let r=o(t);return"-"===r?a:`${a} ${r}`}function u({label:e,value:a}){return(0,t.jsxs)("div",{className:"bg-[var(--brand-neutral-surface-5)] px-[14px] py-3",children:[(0,t.jsx)("span",{className:"block text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:e}),(0,t.jsx)("strong",{className:"mt-1 block text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:a})]})}function m({outboundShipmentId:e}
131){let m=(0,n.useTranslations)(),[h,p]=(0,s.useState)(null),[g,v]=(0,s.useState)(!0),[x,b]=(0,s.useState)(null);(0,s.useEffect)(()=>{let t=!1;return async function(){v(!0),b(null);try{let a=await (0,l.fetchCustomerShipmentClient)(e);t||p(function(e){return e?"object"==typeof e&&null!==e&&"shipment"in e?e.shipment??null:e:null}(a.data))}catch(e){console.error("[CUSTOMER] Unable to load shipment",e),t||(b(m("account_flow_unable_load_shipment")),p(null))}finally{t||v(!1)}}(),()=>{t=!0}},[e,m]);let f=h?.Order__r??null,w=o(h?.Status__c);return(0,t.jsxs)("div",{className:"grid gap-[var(--gap-20)]",children:[(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsxs)(i.Link,{href:r.routes.auth.orders,className:"inline-flex items-center gap-2 font-[var(--font-weight-semibold)] text-[var(--brand-primary)] no-underline hover:text-[var(--brand-primary-hover)] hover:underline",children:[(0,t.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M19 12H5m0 0 6-6m-6 6 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),m("account_flow_back_to_orders")]}),(0,t.jsxs)("div",{className:"mt-[var(--gap-20)] flex flex-col gap-[var(--gap-15)] md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:m("account_flow_shipment_details")}),(0,t.jsx)("h2",{className:a.accountTitleClass,children:o(h?.Name,e)}),(0,t.jsxs)("p",{className:a.accountMutedClass,children:[m("account_flow_shipment_id"),": ",e]})]}),(0,t.jsx)("span",{className:(0,a.statusPillClass)("-"===w),children:"-"===w?m("account_flow_pending"):w})]}),g?(0,t.jsx)("p",{className:a.accountMutedClass,children:m("account_flow_loading_shipment")}):null,x?(0,t.jsx)("p",{className:a.accountErrorClass,children:x}):null]}),h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-[var(--gap-12)]",children:[(0,t.jsx)(i.Link,{href:r.routes.auth.orderTracking(e),className:"border border-[var(--brand-border-color-light)] bg-[var(--profile-page-card-bg)] px-4 py-2.5 font-[var(--font-weight-semibold)] text-[var(--brand-primary)] no-underline hover:text-[var(--brand-primary-hover)] hover:underline",children:m("account_flow_tracking")}),(0,t.jsx)(i.Link,{href:r.routes.auth.orderRoutes(e),className:"border border-[var(--brand-border-color-light)] bg-[var(--profile-page-card-bg)] px-4 py-2.5 font-[var(--font-weight-semibold)] text-[var(--brand-primary)] no-underline hover:text-[var(--brand-primary-hover)] hover:underline",children:m("account_flow_routes")})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--gap-20)] lg:grid-cols-2",children:[(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsx)("h3",{className:"mb-[var(--gap-15)] text-[18px] font-[var(--font-weight-semibold)] leading-[1.4] text-[var(--brand-primary-deep)]",children:m("account_flow_shipment_information")}),(0,t.jsxs)("div",{className:"grid gap-[var(--gap-12)]",children:[(0,t.jsx)(u,{label:m("account_flow_shipment_name"),value:o(h.Name)}),(0,t.jsx)(u,{label:m("account_flow_product"),value:o(h.Product_Name__c)}),(0,t.jsx)(u,{label:m("account_flow_quantity"),value:d(h.Quantity__c,h.UOM__c)}),(0,t.jsx)(u,{label:m("account_flow_status"),value:"-"===w?m("account_flow_pending"):w}),(0,t.jsx)(u,{label:m("account_flow_created_date"),value:c(h.CreatedDate)}),(0,t.jsx)(u,{label:m("account_flow_eta"),value:c(h.ETA_Date__c)}),(0,t.jsx)(u,{label:m("account_flow_etd"),value:c(h.ETD_Date__c)}),(0,t.jsx)(u,{label:m("account_flow_awb_number"),value:o(h.AWB_NO__c)}),(0,t.jsx)(u,{label:m("account_flow_awb_status"),value:o(h.AWB_Current_Status__c)}),(0,t.jsx)(u,{label:m("account_flow_last_location"),value:o(h.Last_Tracking_Location__c)})]})]}),(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsx)("h3",{className:"mb-[var(--gap-15)] text-[18px] font-[var(--font-weight-semibold)] leading-[1.4] text-[var(--brand-primary-deep)]",children:m("account_flow_order_information")}),(0,t.jsxs)("div",{className:"grid gap-[var(--gap-12)]",children:[(0,t.jsx)(u,{label:m("account_flow_order_number"),value:o(f?.OrderNumber)}),(0,t.jsx)(u,{label:m("account_flow_order_id"),value:o(f?.Id)}),(0,t.jsx)(u,{label:m("account_flow_account_id"),value:o(f?.AccountId)}),(0,t.jsx)(u,{label:m("account_flow_product"),value:o(f?.Product_Name__c)}),(0,t.jsx)(u,{label:m("account_flow_quantity"),value:d(f?.Quantity__c,f?.UOM__c)}),(0,t.jsx)(u,{label:m("account_flow_delivery_terms"),value:o(f?.Delivery_Terms__c)}),(0,t.jsx)(u,{label:m("account_flow_order_created"),value:c(f?.CreatedDate)}),(0,t.jsx)(u,{label:m("account_flow_master_bl"),value:o(f?.Master_BL_1st_Sector__c)})]})]})]})]}):null]})}e.s(["CustomerShipmentDetail",()=>m])},137696,e=>{"use strict";function t(e){return"string"==typeof e?e.trim():""}
131function a(e,t,a){return[e,t,a].filter(Boolean).join(", ")}function r(e){let r=t(e.address),l=t(e.addressLine2)||t(e.address_line_2),i=t(e.addressLine3)||t(e.address_line_3),n=t(e.city),s=t(e.country);return l||i?[r,l,i||a(n,"",s)].filter(e=>e.length>0):r?(function(e,t,r){let l=e.replace(/\s+/g," ").trim();if(!l)return[];let i=l.split(",").map(e=>e.trim()).filter(Boolean),n=r.toLowerCase();i.length>1&&i[i.length-1].toLowerCase()===n&&i.pop();let s="";if(i.length>0){let e=i[i.length-1];if(/^\d{3,6}(-\d{3,4})?$/.test(e))s=i.pop()??"";else{let t=e.match(/\b(\d{3,6}(?:-\d{3,4})?)\s*$/);if(t){s=t[1];let a=e.slice(0,t.index).trim();a?i[i.length-1]=a:i.pop()}}}let o=a(t,s,r);return 0===i.length?o?["","",o]:[]:1===i.length?[i[0],"",o]:[i[0],i.slice(1).join(", "),o]})(r,n,s).filter(e=>e.length>0):[]}let l={brazil:"top",tunisia:"left",jordan:"top",egypt:"bottom",uae:"top",india:"top","sri-lanka":"left",bangladesh:"top",thailand:"top","republic-of-singapore":"left",indonesia:"bottom",vietnam:"right",philippines:"right",china:"right","south-korea":"right"},i={brazil:"top",tunisia:"left",jordan:"top",egypt:"bottom",uae:"top",india:"top","sri lanka":"left",bangladesh:"top",thailand:"top",singapore:"left","republic of singapore":"left",indonesia:"bottom",vietnam:"right",philippines:"right",china:"left","south korea":"right"},n={egypt:{x:-10},indonesia:{x:10}};function s(e,t){let a=e.trim().toLowerCase();if(l[a])return l[a];let r=t?.trim().toLowerCase();return r&&i[r]?i[r]:"right"}function o(e,t){let a=e.trim().toLowerCase();if(n[a])return n[a];let r=t?.trim().toLowerCase();if(r){let e=r.replace(/\./g,"");if(n[e])return n[e]}return{}}e.s(["resolveLocationAddressLines",()=>r,"resolvePinLabelOffset",()=>o,"resolvePinLabelPlacement",()=>s])},377642,e=>{e.v({quantityGroup:"BannerSectionOne-module__uxLcsa__quantityGroup",rfqBanner:"BannerSectionOne-module__uxLcsa__rfqBanner",rfqDecorImage:"BannerSectionOne-module__uxLcsa__rfqDecorImage",rfqDecorImageImg:"BannerSectionOne-module__uxLcsa__rfqDecorImageImg",rfqDescription:"BannerSectionOne-module__uxLcsa__rfqDescription",rfqField:"BannerSectionOne-module__uxLcsa__rfqField",rfqFieldMessage:"BannerSectionOne-module__uxLcsa__rfqFieldMessage",rfqFieldWide:"BannerSectionOne-module__uxLcsa__rfqFieldWide",rfqFormBody:"BannerSectionOne-module__uxLcsa__rfqFormBody",rfqFormFooter:"BannerSectionOne-module__uxLcsa__rfqFormFooter",rfqFormMessage:"BannerSectionOne-module__uxLcsa__rfqFormMessage",rfqFormMessageError:"BannerSectionOne-module__uxLcsa__rfqFormMessageError",rfqFormMessageSuccess:"BannerSectionOne-module__uxLcsa__rfqFormMessageSuccess",rfqIcon:"BannerSectionOne-module__uxLcsa__rfqIcon",rfqIconGlyph:"BannerSectionOne-module__uxLcsa__rfqIconGlyph",rfqInput:"BannerSectionOne-module__uxLcsa__rfqInput",rfqIntro:"BannerSectionOne-module__uxLcsa__rfqIntro",rfqIntroText:"BannerSectionOne-module__uxLcsa__rfqIntroText",rfqLabel:"BannerSectionOne-module__uxLcsa__rfqLabel",rfqRecaptcha:"BannerSectionOne-module__uxLcsa__rfqRecaptcha",rfqSelect:"BannerSectionOne-module__uxLcsa__rfqSelect",rfqSubmit:"BannerSectionOne-module__uxLcsa__rfqSubmit",rfqSubmitIcon:"BannerSectionOne-module__uxLcsa__rfqSubmitIcon",rfqTextarea:"BannerSectionOne-module__uxLcsa__rfqTextarea",rfqTitle:"BannerSectionOne-module__uxLcsa__rfqTitle",section:"BannerSectionOne-module__uxLcsa__section",uomSelectArrow:"BannerSectionOne-module__uxLcsa__uomSelectArrow",uomSelectArrowIcon:"BannerSectionOne-module__uxLcsa__uomSelectArrowIcon",uomSelectWrap:"BannerSectionOne-module__uxLcsa__uomSelectWrap"})},952232,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645);e.i(716787);var l=e.i(659544);e.i(527967);var i=e.i(830167),n=e.i(134962),s=e.i(324377),o=e.i(329078),c=e.i(203286),d=e.i(647898),u=e.i(377642);function m(e,t){let a=e.trim();return t?a?a.endsWith("*")?a:`${a} *`:"*":a}function h({parsedEmbed:e,recaptchaSiteKey:h,productNamePlaceholder:p,quantityPlaceholder:g,quantityAriaLabel:v,emailPlaceholder:x,messagesPlaceholder:b,uomPlaceholder:f,uomAriaLabel:w,submitLabel:y,submitAriaLabel:j,successMessage:N,inquiryTitle:_,inquiryDescription:k,decorImageSrc:C,decorImageAlt:S,productNameLabel:L,quantityLabel:I,emailLabel:z,messageLabel:A}){let{emailInputRef:q}=(0,c.useAuthEmailPrefill)(),[E,$]=(0,r.useState)(!1),[P,T]=(0,r.useState)(null),M=(0,r.useRef)(!1),O=(0,r.useRef)(null);(0,r.useEffect)(()=>
131{if(!P||!h)return;let e=window.setInterval(()=>{let e=O.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&T(null)},400);return()=>window.clearInterval(e)},[P,h]);let F=e.visibleFields,R=F.find(e=>"product"===e.role),B=F.find(e=>"qty"===e.role),D=F.find(e=>"uom"===e.role),H=F.find(e=>"email"===e.role),U=F.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){M.current&&(M.current=!1,O.current?.reset(),(0,d.resetRecaptcha)(O.current),T(null),$(!0),setTimeout(()=>$(!1),4e3))}}),(0,t.jsxs)("form",{ref:O,className:u.default.rfqBanner,action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(h){let t=O.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),M.current=!1,$(!1),T("Please complete reCAPTCHA.");return}T(null)}M.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("div",{className:u.default.rfqIntro,children:[(0,t.jsx)("span",{className:u.default.rfqIcon,"aria-hidden":!0,children:(0,t.jsx)("span",{className:u.default.rfqIconGlyph})}),(0,t.jsxs)("div",{className:u.default.rfqIntroText,children:[(0,t.jsx)("h2",{className:u.default.rfqTitle,children:_}),(0,t.jsx)("p",{className:u.default.rfqDescription,children:k})]})]}),(0,t.jsxs)("div",{className:u.default.rfqFormBody,children:[R?(0,t.jsxs)("div",{className:u.default.rfqField,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:R.id,children:m(L,!0)}),(0,t.jsx)(n.ProductNameAutocompleteInput,{id:R.id,name:R.name,required:!0,placeholder:p,className:u.default.rfqInput})]}):null,B||D?(0,t.jsxs)("div",{className:u.default.rfqField,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:B?.id??D?.id,children:I}),(0,t.jsxs)("div",{className:B&&D?u.default.quantityGroup:void 0,children:[B?(0,t.jsx)(s.QuantitySpinnerInput,{id:B.id,name:B.name,required:!0,placeholder:g,ariaLabel:v,className:u.default.rfqInput}):null,D?(0,t.jsxs)("div",{className:u.default.uomSelectWrap,children:[(0,t.jsxs)("select",{id:D.id,name:D.name,required:!0,defaultValue:"","aria-label":w,className:u.default.rfqSelect,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:f}),D.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)("span",{className:u.default.uomSelectArrow,"aria-hidden":!0,children:(0,t.jsx)(i.ArrowIcon,{className:u.default.uomSelectArrowIcon})})]}):null]})]}):null,H?(0,t.jsxs)("div",{className:`${u.default.rfqField} ${u.default.rfqFieldWide}`,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:H.id,children:m(z,!0)}),(0,t.jsx)("input",{ref:q,type:"email",id:H.id,name:H.name,maxLength:H.maxLength,required:!0,placeholder:x,className:u.default.rfqInput})]}):null,U?(0,t.jsxs)("div",{className:`${u.default.rfqField} ${u.default.rfqFieldWide} ${u.default.rfqFieldMessage}`,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:U.id,children:A}),(0,t.jsx)("textarea",{id:U.id,name:U.name,rows:2,placeholder:b,className:u.default.rfqTextarea})]}):null,h?(0,t.jsx)("div",{className:u.default.rfqRecaptcha,children:(0,t.jsx)(o.RecaptchaWidget,{siteKey:h,eager:!0})}):null,(0,t.jsxs)("div",{className:u.default.rfqFormFooter,children:[E?(0,t.jsx)("p",{className:`${u.default.rfqFormMessage} ${u.default.rfqFormMessageSuccess}`,children:N||"Thank you! We'll be in touch."}):P?(0,t.jsx)("p",{className:`${u.default.rfqFormMessage} ${u.default.rfqFormMessageError}`,children:P}):null,(0,t.jsxs)(l.Button,{variant:"primary",type:"submit","aria-label":j,className:u.default.rfqSubmit,children:[y,(0,t.jsx)(i.ArrowIcon,{className:u.default.rfqSubmitIcon})]})]})]}),(0,t.jsx)("div",{className:u.default.rfqDecorImage,"aria-hidden":!0,children:(0,t.jsx)(a.default,{src:C,alt:S,width:419,height:228,className:u.default.rfqDecorImageImg})})]})]})}e.s(["SalesforceEmbedForm",()=>h])},718447,e=>{e.v({quantityGroup:"BannerSectionOne-module__PMXHda__quantityGroup",rfqBanner:"BannerSectionOne-module__PMXHda__rfqBanner",rfqDecorImage:"BannerSectionOne-module__PMXHda__rfqDecorImage",rfqDescription:"BannerSectionOne-module__PMXHda__rfqDescription",rfqField:"BannerSectionOne-module__PMXHda__rfqField",rfqFieldMessage:"BannerSectionOne-module__PMXHda__rfqFieldMessage",rfqFieldWide:"BannerSectionOne-module__PMXHda__rfqFieldWide",rfqFormBody:"BannerSectionOne-module__PMXHda__rfqFormBody",rfqFormFooter:"BannerSectionOne-module__PMXHda__rfqFormFooter",rfqFormMessage:"BannerSectionOne-module__PMXHda__rfqFormMessage",rfqFormMessageError:"BannerSectionOne-module__PMXHda__rfqFormMessageError",rfqFormMessageSuccess:"BannerSectionOne-module__PMXHda__rfqFormMessageSuccess",rfqIcon:"BannerSectionOne-module__PMXHda__rfqIcon",rfqIconGlyph:"BannerSectionOne-module__PMXHda__rfqIconGlyph",rfqInput:"BannerSectionOne-module__PMXHda__rfqInput",rfqIntro:"BannerSectionOne-module__PMXHda__rfqIntro",rfqIntroText:"BannerSectionOne-module__PMXHda__rfqIntroText",rfqLabel:"BannerSectionOne-module__PMXHda__rfqLabel",rfqRecaptcha:"BannerSectionOne-module__PMXHda__rfqRecaptcha",rfqSelect:"BannerSectionOne-module__PMXHda__rfqSelect",rfqSubmit:"BannerSectionOne-module__PMXHda__rfqSubmit",rfqSubmitIcon:"BannerSectionOne-module__PMXHda__rfqSubmitIcon",rfqTextarea:"BannerSectionOne-module__PMXHda__rfqTextarea",rfqTitle:"BannerSectionOne-module__PMXHda__rfqTitle",section:"BannerSectionOne-module__PMXHda__section",uomSelectArrow:"BannerSectionOne-module__PMXHda__uomSelectArrow",uomSelectArrowIcon:"BannerSectionOne-module__PMXHda__uomSelectArrowIcon",uomSelectWrap:"BannerSectionOne-module__PMXHda__uomSelectWrap"})},591930,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(716787);var r=e.i(659544);e.i(527967);var l=e.i(830167),i=e.i(134962),n=e.i(324377),s=e.i(329078),o=e.i(203286),c=e.i(647898),d=e.i(718447);function u(e,t){let a=e.trim();return t?a?a.endsWith("*")?a:`${a} *`:"*":a}function m({parsedEmbed:e,recaptchaSiteKey:m,productNamePlaceholder:h,quantityPlaceholder:p,quantityAriaLabel:g,emailPlaceholder:v,messagesPlaceholder:x,uomPlaceholder:b,uomAriaLabel:f,submitLabel:w,submitAriaLabel:y,successMessage:j,inquiryTitle:N,inquiryDescription:_,productNameLabel:k,quantityLabel:C,emailLabel:S,messageLabel:L}){let{emailInputRef:I}=(0,o.useAuthEmailPrefill)(),[z,A]=(0,a.useState)(!1),[q,E]=(0,a.useState)(null),$=(0,a.useRef)(!1),P=(0,a.useRef)(null);(0,a.useEffect)(()=>
131{if(!q||!m)return;let e=window.setInterval(()=>{let e=P.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&E(null)},400);return()=>window.clearInterval(e)},[q,m]);let T=e.visibleFields,M=T.find(e=>"product"===e.role),O=T.find(e=>"qty"===e.role),F=T.find(e=>"uom"===e.role),R=T.find(e=>"email"===e.role),B=T.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){$.current&&($.current=!1,P.current?.reset(),(0,c.resetRecaptcha)(P.current),E(null),A(!0),setTimeout(()=>A(!1),4e3))}}),(0,t.jsxs)("form",{ref:P,className:d.default.rfqBanner,action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(m){let t=P.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),$.current=!1,A(!1),E("Please complete reCAPTCHA.");return}E(null)}$.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("div",{className:d.default.rfqIntro,children:[(0,t.jsx)("span",{className:d.default.rfqIcon,"aria-hidden":!0,children:(0,t.jsx)("span",{className:d.default.rfqIconGlyph})}),(0,t.jsxs)("div",{className:d.default.rfqIntroText,children:[(0,t.jsx)("h2",{className:d.default.rfqTitle,children:N}),(0,t.jsx)("p",{className:d.default.rfqDescription,children:_})]}),(0,t.jsx)("div",{className:d.default.rfqDecorImage,"aria-hidden":!0})]}),(0,t.jsxs)("div",{className:d.default.rfqFormBody,children:[M?(0,t.jsxs)("div",{className:d.default.rfqField,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:M.id,children:u(k,!0)}),(0,t.jsx)(i.ProductNameAutocompleteInput,{id:M.id,name:M.name,required:!0,placeholder:h,className:d.default.rfqInput})]}):null,O||F?(0,t.jsxs)("div",{className:d.default.rfqField,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:O?.id??F?.id,children:C}),(0,t.jsxs)("div",{className:O&&F?d.default.quantityGroup:void 0,children:[O?(0,t.jsx)(n.QuantitySpinnerInput,{id:O.id,name:O.name,required:!0,placeholder:p,ariaLabel:g,className:d.default.rfqInput}):null,F?(0,t.jsxs)("div",{className:d.default.uomSelectWrap,children:[(0,t.jsxs)("select",{id:F.id,name:F.name,required:!0,defaultValue:"","aria-label":f,className:d.default.rfqSelect,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:b}),F.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)("span",{className:d.default.uomSelectArrow,"aria-hidden":!0,children:(0,t.jsx)(l.ArrowIcon,{className:d.default.uomSelectArrowIcon})})]}):null]})]}):null,R?(0,t.jsxs)("div",{className:`${d.default.rfqField} ${d.default.rfqFieldWide}`,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:R.id,children:u(S,!0)}),(0,t.jsx)("input",{ref:I,type:"email",id:R.id,name:R.name,maxLength:R.maxLength,required:!0,placeholder:v,className:d.default.rfqInput})]}):null,B?(0,t.jsxs)("div",{className:`${d.default.rfqField} ${d.default.rfqFieldWide} ${d.default.rfqFieldMessage}`,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:B.id,children:L}),(0,t.jsx)("textarea",{id:B.id,name:B.name,rows:2,placeholder:x,className:d.default.rfqTextarea})]}):null,m?(0,t.jsx)("div",{className:d.default.rfqRecaptcha,children:(0,t.jsx)(s.RecaptchaWidget,{siteKey:m,eager:!0})}):null,(0,t.jsxs)("div",{className:d.default.rfqFormFooter,children:[z?(0,t.jsx)("p",{className:`${d.default.rfqFormMessage} ${d.default.rfqFormMessageSuccess}`,children:j||"Thank you! We'll be in touch."}):q?(0,t.jsx)("p",{className:`${d.default.rfqFormMessage} ${d.default.rfqFormMessageError}`,children:q}):null,(0,t.jsxs)(r.Button,{variant:"primary",type:"submit","aria-label":y,className:d.default.rfqSubmit,children:[w,(0,t.jsx)(l.ArrowIcon,{className:d.default.rfqSubmitIcon})]})]})]})]})]})}e.s(["SalesforceEmbedForm",()=>m])},478088,e=>{"use strict";function t({swiper:e,extendParams:t,on:a}){let r,l,i,n;t({grid:{rows:1,fill:"column"}});let s=()=>{let t=e.params.spaceBetween;return"string"==typeof t&&t.indexOf("%")>=0?t=parseFloat(t.replace("%",""))/100*e.size:"string"==typeof t&&(t=parseFloat(t)),t};a("init",()=>{n=e.params.grid&&e.params.grid.rows>1}),a("update",()=>{let{params:t,el:a}=e,r=t.grid&&t.grid.rows>1;n&&!r?(a.classList.remove(`${t.containerModifierClass}grid`,`${t.containerModifierClass}grid-column`),i=1,e.emitContainerClasses()):!n&&r&&(a.classList.add(`${t.containerModifierClass}grid`),"column"===t.grid.fill&&a.classList.add(`${t.containerModifierClass}grid-column`),e.emitContainerClasses()),n=r}),e.grid={initSlides:t=>{let{slidesPerView:a}=e.params,{rows:n,fill:s}=e.params.grid,o=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:t.length;i=Math.floor(o/n),r=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==a&&"row"===s&&(r=Math.max(r,Math.floor(a)*n)),l=r/n},unsetSlides:()=>
131{e.slides&&e.slides.forEach(t=>{t.swiperSlideGridSet&&(t.style.height="",t.style[e.getDirectionLabel("margin-top")]="")})},updateSlide:(t,a,n)=>{let o,c,d,{slidesPerGroup:u}=e.params,m=s(),{rows:h,fill:p}=e.params.grid,g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:n.length;if("row"===p&&u>1){let e=Math.floor(t/(u*h)),l=t-h*u*e,i=0===e?u:Math.min(Math.ceil((g-e*h*u)/h),u);d=Math.floor(l/i),o=(c=l-d*i+e*u)+d*r/h,a.style.order=o}else"column"===p?(c=Math.floor(t/h),d=t-c*h,(c>i||c===i&&d===h-1)&&(d+=1)>=h&&(d=0,c+=1)):(d=Math.floor(t/l),c=t-d*l);a.row=d,a.column=c,a.style.height=`calc((100% - ${(h-1)*m}px) / ${h})`,a.style[e.getDirectionLabel("margin-top")]=0!==d?m&&`${m}px`:"",a.swiperSlideGridSet=!0},updateWrapperSize:(t,a)=>{let{centeredSlides:l,roundLengths:i}=e.params,n=s(),{rows:o}=e.params.grid;if(e.virtualSize=(t+n)*r,e.virtualSize=Math.ceil(e.virtualSize/o)-n,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+n}px`),l){let t=[];for(let r=0;r<a.length;r+=1){let l=a[r];i&&(l=Math.floor(l)),a[r]<e.virtualSize+a[0]&&t.push(l)}a.splice(0,a.length),a.push(...t)}}}}e.s(["Grid",()=>t],478088)},704619,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(527967);var r=e.i(830167),l=e.i(954281),l=l;e.i(79951);var i=e.i(902936),n=e.i(477813),s=e.i(478088),o=e.i(579053),c=e.i(186301),d=e.i(980401);function u(){let e=n.INDUSTRIES.slice(0,10);return(0,t.jsxs)("div",{className:"w-full h-full md:rounded-[var(--industrial-applications-slider-radius-desktop)] md:bg-[var(--industrial-applications-slider-bg)] px-0 py-0 md:px-[var(--industrial-applications-slider-padding-x)] md:py-[var(--industrial-applications-slider-padding-y)] md:shadow-[var(--industrial-applications-slider-shadow)] flex flex-col gap-[var(--industrial-applications-slider-gap)]",children:[(0,t.jsx)("div",{className:"grid grid-cols-2 gap-x-[var(--industrial-applications-slider-mobile-grid-gap-x)] gap-y-[var(--industrial-applications-slider-mobile-grid-gap-y)] md:hidden",children:e.map((e,a)=>(0,t.jsxs)(i.Link,{href:"#",className:"flex items-center justify-between rounded-[var(--industrial-applications-slider-card-radius)] bg-[var(--industrial-applications-slider-card-bg)] px-[var(--industrial-applications-slider-card-padding-x)] py-[var(--industrial-applications-slider-card-padding-y)] gap-[var(--industrial-applications-slider-card-gap)]",children:[(0,t.jsx)("span",{className:"body-regular text-[var(--industrial-applications-slider-card-text-color)]",children:e}),(0,t.jsx)(r.ArrowIcon,{className:"w-2 h-3 text-[var(--industrial-applications-slider-card-icon-color)] flex-shrink-0"})]},a))}),(0,t.jsxs)("div",{className:"hidden md:block flex-1",children:[(0,t.jsxs)("div",{className:"hidden items-center justify-between mb-6 md:flex",children:[(0,t.jsx)(a.Button,{variant:"primary",className:"custom-swiper-prev inline-flex items-center justify-center !rounded-[50%] disabled:cursor-not-allowed disabled:opacity-[0.3] h-[50px] w-[50px] !shadow-none",children:(0,t.jsx)(r.ArrowIcon,{className:"w-2 h-3 rotate-180"})}),(0,t.jsx)("div",{className:"custom-swiper-pagination !w-auto flex items-center justify-center gap-[var(--industrial-applications-slider-pagination-gap)] [&_.swiper-pagination-bullet-active]:!w-[42px] [&_.swiper-pagination-bullet-active]:!rounded-[20px] [&_.swiper-pagination-bullet-active]:!bg-[var(--industrial-applications-slider-pagination-bullet-active-color)]"}),(0,t.jsx)(a.Button,{variant:"primary",className:"custom-swiper-next inline-flex items-center justify-center !rounded-[50%] disabled:cursor-not-allowed disabled:opacity-[0.3] h-[50px] w-[50px] !shadow-none",children:(0,t.jsx)(r.ArrowIcon,{className:"w-2 h-3"})})]}),(0,t.jsx)(d.Swiper,{modules:[o.Navigation,c.Pagination,s.Grid],spaceBetween:20,navigation:{prevEl:".custom-swiper-prev",nextEl:".custom-swiper-next"},pagination:{clickable:!0,el:".custom-swiper-pagination",renderBullet:(e,t)=>`<span class="${t} h-[6px] w-[6px] rounded-[10px] bg-[var(--industrial-applications-slider-pagination-bullet-color)] cursor-pointer transition-all duration-300"></span>`},grid:{rows:2,fill:"row"},breakpoints:{0:{slidesPerView:2,grid:{rows:5,fill:"row"}},768:{slidesPerView:2,grid:{rows:2,fill:"row"}},1024:{slidesPerView:2,grid:{rows:4,fill:"row"}},1280:{slidesPerView:2,grid:{rows:5,fill:"row"}}},className:"industries-swiper",children:n.INDUSTRIES.map((e,a)=>(0,t.jsx)(d.SwiperSlide,{children:(0,t.jsxs)(i.Link,{href:"#",className:"flex items-center justify-between rounded-[var(--industrial-applications-slider-card-radius)] bg-[var(--industrial-applications-slider-card-bg)] px-[var(--industrial-applications-slider-card-padding-x)] py-[var(--industrial-applications-slider-card-padding-y)] transition gap-[var(--industrial-applications-slider-desktop-card-gap)]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[var(--industrial-applications-slider-desktop-card-inner-gap)]",children:[(0,t.jsx)("span",{className:"hidden md:flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-[var(--industrial-applications-slider-desktop-icon-bg)] text-[var(--industrial-applications-slider-desktop-icon-color)]",children:(0,t.jsx)(l.default,{className:"h-6 w-6"})}),(0,t.jsx)("span",{className:"body-regular text-[var(--industrial-applications-slider-card-text-color)]",children:e})]}),(0,t.jsx)(r.ArrowIcon,{className:"w-2 h-3 text-[var(--industrial-applications-slider-card-icon-color)] flex-shrink-0"})]})},a))})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(a.Button,{variant:"primary",href:"/industries",className:"px-[30px]!",children:"SEE MORE INDUSTRIES"})})]})}e.s(["default",()=>u],704619)},493874,e=>{e.v({backgroundImage:"IndustryTrendsAndAnalysisSection-module__GveLMa__backgroundImage",backgroundLeft:"IndustryTrendsAndAnalysisSection-module__GveLMa__backgroundLeft",backgroundRight:"IndustryTrendsAndAnalysisSection-module__GveLMa__backgroundRight",badge:"IndustryTrendsAndAnalysisSection-module__GveLMa__badge",card:"IndustryTrendsAndAnalysisSection-module__GveLMa__card",cardBody:"IndustryTrendsAndAnalysisSection-module__GveLMa__cardBody",cardDescription:"IndustryTrendsAndAnalysisSection-module__GveLMa__cardDescription",cardLink:"IndustryTrendsAndAnalysisSection-module__GveLMa__cardLink",cardMeta:"IndustryTrendsAndAnalysisSection-module__GveLMa__cardMeta",cardTitle:"IndustryTrendsAndAnalysisSection-module__GveLMa__cardTitle",cardsSwiper:"IndustryTrendsAndAnalysisSection-module__GveLMa__cardsSwiper",content:"IndustryTrendsAndAnalysisSection-module__GveLMa__content",headerActions:"IndustryTrendsAndAnalysisSection-module__GveLMa__headerActions",headerLink:"IndustryTrendsAndAnalysisSection-module__GveLMa__headerLink",image:"IndustryTrendsAndAnalysisSection-module__GveLMa__image",imageWrap:"IndustryTrendsAndAnalysisSection-module__GveLMa__imageWrap",metaIcon:"IndustryTrendsAndAnalysisSection-module__GveLMa__metaIcon",nav:"IndustryTrendsAndAnalysisSection-module__GveLMa__nav",navGroup:"IndustryTrendsAndAnalysisSection-module__GveLMa__navGroup",navGroupShowDesktop:"IndustryTrendsAndAnalysisSection-module__GveLMa__navGroupShowDesktop",navGroupShowMobile:"IndustryTrendsAndAnalysisSection-module__GveLMa__navGroupShowMobile",navGroupShowTablet:"IndustryTrendsAndAnalysisSection-module__GveLMa__navGroupShowTablet",navIcon:"IndustryTrendsAndAnalysisSection-module__GveLMa__navIcon",readMore:"IndustryTrendsAndAnalysisSection-module__GveLMa__readMore",readMoreIcon:"IndustryTrendsAndAnalysisSection-module__GveLMa__readMoreIcon",section:"IndustryTrendsAndAnalysisSection-module__GveLMa__section",sectionFooter:"IndustryTrendsAndAnalysisSection-module__GveLMa__sectionFooter",sectionHeader:"IndustryTrendsAndAnalysisSection-module__GveLMa__sectionHeader",sectionTitle:"IndustryTrendsAndAnalysisSection-module__GveLMa__sectionTitle",slide:"IndustryTrendsAndAnalysisSection-module__GveLMa__slide"})},729435,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);e.i(527967);var l=e.i(830167),i=e.i(271645),n=e.i(579053),s=e.i(980401),o=e.i(493874);function c(e,t,a){if(!t||!a||!e||e.destroyed||!e.params)return;let r=e.params.navigation;if(!r||"boolean"==typeof r)return;r.prevEl=t,r.nextEl=a;let{navigation:l}=e;if(l){try{l.destroy()}catch{}
131l.init(),l.update()}}function d({item:e,readMoreLabel:i}){return(0,t.jsx)("article",{className:o.default.card,children:(0,t.jsxs)(r.Link,{href:e.href,className:o.default.cardLink,children:[(0,t.jsx)("div",{className:o.default.imageWrap,children:e.imageSrc?(0,t.jsx)(a.default,{src:e.imageSrc,alt:e.imageAlt,fill:!0,sizes:"(max-width: 767px) 100vw, (max-width: 1023px) 50vw, 33vw",quality:85,loading:"lazy",className:o.default.image}):null}),(0,t.jsxs)("div",{className:o.default.cardBody,children:[e.tag?(0,t.jsx)("span",{className:o.default.badge,title:e.tag,children:e.tag}):null,(0,t.jsx)("h3",{className:o.default.cardTitle,title:e.title,children:e.title}),e.description?(0,t.jsx)("p",{className:o.default.cardDescription,children:e.description}):null,(0,t.jsxs)("span",{className:o.default.readMore,children:[i,(0,t.jsx)(l.ArrowIcon,{className:`${o.default.readMoreIcon} rtl:rotate-180`,"aria-hidden":"true"})]})]})]})})}function u({heading:e,insightsLink:a,items:u,readMoreLabel:m,previousLabel:h,nextLabel:p}){let g=(0,i.useRef)(null),v=(0,i.useRef)(null),[x,b]=(0,i.useState)(null),f=u.length>3,w=!!(e||a||u.length>0),y=[o.default.navGroup,u.length>1?o.default.navGroupShowMobile:"",u.length>2?o.default.navGroupShowTablet:"",u.length>3?o.default.navGroupShowDesktop:""].filter(Boolean).join(" ");return(0,i.useEffect)(()=>{x&&!x.destroyed&&c(x,g.current,v.current)},[x]),(0,t.jsxs)(t.Fragment,{children:[w?(0,t.jsxs)("div",{className:o.default.sectionHeader,children:[e?(0,t.jsx)("h2",{className:o.default.sectionTitle,children:e}):(0,t.jsx)("span",{"aria-hidden":!0}),(0,t.jsxs)("div",{className:o.default.headerActions,children:[a?(0,t.jsx)(r.Link,{href:a.href,className:o.default.headerLink,children:a.label}):null,(0,t.jsxs)("div",{className:y,children:[(0,t.jsx)("button",{ref:g,type:"button","aria-label":h,className:`${o.default.nav} ${o.default.navPrev}`,children:(0,t.jsx)(l.ArrowIcon,{className:`${o.default.navIcon} rotate-180 rtl:rotate-0`})}),(0,t.jsx)("button",{ref:v,type:"button","aria-label":p,className:`${o.default.nav} ${o.default.navNext}`,children:(0,t.jsx)(l.ArrowIcon,{className:`${o.default.navIcon} rtl:rotate-180`})})]})]})]}):null,(0,t.jsx)(s.Swiper,{modules:[n.Navigation],loop:f,rewind:!1,loopAddBlankSlides:!1,speed:400,slidesPerGroup:1,slidesPerView:1,spaceBetween:12,watchOverflow:!0,navigation:{},onBeforeInit:function(e){let{navigation:t}=e.params;t&&"boolean"!=typeof t&&(t.prevEl=g.current,t.nextEl=v.current)},onSwiper:e=>{b(e),queueMicrotask(()=>{e.destroyed||c(e,g.current,v.current)})},onResize:e=>{c(e,g.current,v.current)},breakpoints:{768:{slidesPerView:2,spaceBetween:14},1024:{slidesPerView:3,spaceBetween:14}},className:o.default.cardsSwiper,children:u.map(e=>(0,t.jsx)(s.SwiperSlide,{className:o.default.slide,children:(0,t.jsx)(d,{item:e,readMoreLabel:m})},e.href))},f?"loop":"linear")]})}e.s(["LuxeInsightSlider",()=>u])},625303,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(212090),r=e.i(945922);let l=/\s*(?:\u2192|->|>)\s*/;function i(e){return e.split(l).map(e=>e.trim()).filter(Boolean)}var n=e.i(376896),s=e.i(948148),o=e.i(271645);let c="AIzaSyB49u9jINe7q-upqcKnAaPEyScW3yFqcpE",d={lat:20,lng:0};function u({routes:e}){let l=(0,s.useTranslations)(),[c,u]=(0,o.useState)(null),[m,h]=(0,o.useState)(null),p=(0,o.useMemo)(()=>{let t=new Set;for(let a of e)if(a.Path__c)for(let e of i(a.Path__c))t.add(e);return[...t]},[e]);(0,o.useEffect)(()=>{if(0===p.length)return void u([]);let t=!1,a=new URLSearchParams({names:p.join(",")});return fetch(`/api/v1/geocode?${a.toString()}`).then(e=>{if(!e.ok)throw Error(`Geocode API returned ${e.status}`);return e.json()}).then(({results:a})=>{if(t)return;let r=new globalThis.Map;for(let e of a)null!==e.lat&&null!==e.lng&&r.set(e.name,{lat:e.lat,lng:e.lng});let l=[];for(let t=0;t<e.length;t++){let a=e[t];if(!a.Path__c)continue;let n=i(a.Path__c).map(e=>{let t=r.get(e);return t?{name:e,...t}:null}).filter(e=>null!==e);n.length>=2&&l.push({id:a.Id?.trim()||`route-${t}`,waypoints:n})}u(l)}).catch(()=>{t||u([])}),()=>{t=!0}},[p,e]),(0,o.useEffect)(()=>{h(getComputedStyle(document.documentElement).getPropertyValue("--brand-primary").trim()||null)},[]);let g=(0,o.useMemo)(()=>c?.flatMap(e=>e.waypoints)??[],[c]);return null===c?(0,t.jsx)("div",{className:a.accountCardClass,children:(0,t.jsx)("p",{className:a.accountMutedClass,children:l("account_flow_route_map_resolving")})}):0===c.length?null:(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsx)("p",{className:"mb-[var(--gap-12)] text-[length:var(--heading-5-size)] font-[var(--font-weight-medium)] leading-[1.35] text-[var(--brand-secondary)]",children:l("account_flow_route_map")}),(0,t.jsx)("div",{className:"overflow-hidden",style:{height:420},children:(0,t.jsxs)(n.Map,{defaultCenter:d,defaultZoom:3,gestureHandling:"cooperative",disableDefaultUI:!1,style:{width:"100%",height:"100%"},children:[(0,t.jsx)(r.MapBoundsSetter,{points:g}),c.map(e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Polyline,{path:e.waypoints,strokeColor:m??void 0,strokeWeight:3,strokeOpacity:.85},`line-${e.id}`),e.waypoints.map(a=>(0,t.jsx)(n.Marker,{position:{lat:a.lat,lng:a.lng},title:a.name}
131,`${e.id}-${a.name}`))]}))]})})]})}function m({routes:e}){return c&&0!==e.length&&e.some(e=>e.Path__c?.trim())?(0,t.jsx)(n.APIProvider,{apiKey:c,children:(0,t.jsx)(u,{routes:e})}):null}e.s(["ShipmentRouteMap",()=>m],625303)},417545,e=>{"use strict";var t=e.i(843476),a=e.i(212090),r=e.i(625303),l=e.i(22584),i=e.i(388578);e.i(79951);var n=e.i(902936),s=e.i(948148),o=e.i(271645);function c(...e){for(let t of e){if(null==t)continue;let e=String(t).trim();if(e)return e}return"-"}function d({label:e,value:a}){return(0,t.jsxs)("div",{className:"border border-[var(--brand-border-color-light)] bg-[var(--brand-neutral-surface-5)] px-[14px] py-3",children:[(0,t.jsx)("span",{className:"block text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:e}),(0,t.jsx)("strong",{className:"mt-1 block text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:a})]})}function u({outboundShipmentId:e}){let u=(0,s.useTranslations)(),[m,h]=(0,o.useState)([]),[p,g]=(0,o.useState)(!0),[v,x]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let t=!1;return async function(){g(!0),x(null);try{let a=await (0,i.fetchCustomerShipmentRoutesClient)(e);t||h(function(e){return Array.isArray(e)?e:e&&!Array.isArray(e)&&"object"==typeof e&&null!==e&&Array.isArray(e.routes)?e.routes:[]}(a.data))}catch(e){console.error("[CUSTOMER] Unable to load shipment routes",e),t||(x(u("account_flow_unable_load_routes")),h([]))}finally{t||g(!1)}}(),()=>{t=!0}},[e,u]),(0,t.jsxs)("div",{className:"grid gap-[var(--gap-20)]",children:[(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsxs)(n.Link,{href:l.routes.auth.orderDetail(e),className:"inline-flex items-center gap-2 font-[var(--font-weight-semibold)] text-[var(--brand-primary)] no-underline hover:text-[var(--brand-primary-hover)] hover:underline",children:[(0,t.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M19 12H5m0 0 6-6m-6 6 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),u("account_flow_back_to_shipment_details")]}),(0,t.jsxs)("div",{className:"mt-[var(--gap-20)] flex flex-col gap-[var(--gap-15)] md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:u("account_flow_shipment_with_id",{id:e})}),(0,t.jsx)("h2",{className:a.accountTitleClass,children:u("account_flow_shipment_routes")}),(0,t.jsx)("p",{className:a.accountMutedClass,children:u("account_flow_routes_description")})]}),(0,t.jsx)("span",{className:"w-fit bg-[var(--brand-neutral-surface-5)] px-[14px] py-[7px] text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] leading-none text-[var(--brand-primary-deep)]",children:u("account_flow_total_count",{count:m.length})})]}),p?(0,t.jsx)("p",{className:a.accountMutedClass,children:u("account_flow_loading_routes")}):null,v?(0,t.jsx)("p",{className:a.accountErrorClass,children:v}):null]}),p||v||0!==m.length?null:(0,t.jsx)("div",{className:a.accountCardClass,children:(0,t.jsx)("p",{className:"m-0 text-[length:var(--body-regular-size)] text-[var(--brand-neutral-text)]",children:u("account_flow_no_routes")})}),m.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-[var(--gap-20)]",children:m.map((e,r)=>{let l=c(e.Id);return(0,t.jsxs)("article",{className:a.accountCardClass,children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:u("account_flow_route")}),(0,t.jsx)("h3",{className:"m-0 text-[20px] font-[var(--font-weight-semibold)] leading-[1.35] text-[var(--brand-primary-deep)]",children:c(e.Name)}),(0,t.jsxs)("div",{className:"mt-[var(--gap-20)] grid grid-cols-1 gap-[var(--gap-12)] md:grid-cols-3",children:[(0,t.jsx)(d,{label:u("account_flow_path"),value:c(e.Path__c)}),(0,t.jsx)(d,{label:u("account_flow_supplier_order"),value:c(e.Supplier_Order__c)}),(0,t.jsx)(d,{label:u("account_flow_route_id"),value:l})]})]},`${l}-${r}`)})}):null,p||v?null:(0,t.jsx)(r.ShipmentRouteMap,{routes:m})]})}e.s(["CustomerShipmentRoutes",()=>u])},295515,e=>{"use strict";e.i(247167);
131var t=e.i(843476),a=e.i(212090),r=e.i(945922),l=e.i(376896),i=e.i(948148);let n="AIzaSyB49u9jINe7q-upqcKnAaPEyScW3yFqcpE";function s({locations:e}){let s=(0,i.useTranslations)(),o=function(e){let t=[];for(let a=0;a<e.length;a++){let r=e[a],l=r.Location__c?.latitude??r.Location__Latitude__s??null,i=r.Location__c?.longitude??r.Location__Longitude__s??null;"number"==typeof l&&"number"==typeof i&&t.push({id:r.Id?.trim()||`location-${a}`,title:r.Name?.trim()||"Location",lat:l,lng:i})}return t}(e);if(!n||0===o.length)return null;let c=o[0];return(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsx)("h2",{className:"m-0 mb-[var(--gap-12)] text-[length:var(--heading-5-size)] font-[var(--font-weight-medium)] leading-[1.35] text-[var(--brand-secondary)]",children:s("account_flow_current_location")}),(0,t.jsx)("div",{className:"overflow-hidden",style:{height:420},children:(0,t.jsx)(l.APIProvider,{apiKey:n,children:(0,t.jsxs)(l.Map,{defaultCenter:{lat:c.lat,lng:c.lng},defaultZoom:10,gestureHandling:"cooperative",disableDefaultUI:!1,style:{width:"100%",height:"100%"},children:[(0,t.jsx)(r.MapBoundsSetter,{points:o}),o.map(e=>(0,t.jsx)(l.Marker,{position:{lat:e.lat,lng:e.lng},title:e.title},e.id))]})})})]})}e.s(["ShipmentTrackingMap",()=>s],295515)},780643,e=>{"use strict";var t=e.i(843476),a=e.i(212090),r=e.i(295515),l=e.i(22584),i=e.i(388578);e.i(79951);var n=e.i(902936),s=e.i(948148),o=e.i(271645);function c(...e){for(let t of e){if(null==t)continue;let e=String(t).trim();if(e)return e}return"-"}function d(e,t){return"latitude"===t?e.Location__c?.latitude??e.Location__Latitude__s??null:e.Location__c?.longitude??e.Location__Longitude__s??null}function u({label:e,value:a}){return(0,t.jsxs)("div",{className:"border border-[var(--brand-border-color-light)] bg-[var(--brand-neutral-surface-5)] px-[14px] py-3",children:[(0,t.jsx)("span",{className:"block text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:e}),(0,t.jsx)("strong",{className:"mt-1 block text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] text-[var(--brand-primary-deep)] [overflow-wrap:anywhere]",children:a})]})}function m({outboundShipmentId:e}){let m=(0,s.useTranslations)(),[h,p]=(0,o.useState)([]),[g,v]=(0,o.useState)(!0),[x,b]=(0,o.useState)(null);return(0,o.useEffect)(()=>{let t=!1;return async function(){v(!0),b(null);try{let a=await (0,i.fetchCustomerShipmentTrackingClient)(e);t||p(function(e){return Array.isArray(e)?e:e&&!Array.isArray(e)&&"object"==typeof e&&null!==e&&Array.isArray(e.locations)?e.locations:[]}(a.data))}catch(e){console.error("[CUSTOMER] Unable to load shipment tracking",e),t||(b(m("account_flow_unable_load_tracking")),p([]))}finally{t||v(!1)}}(),()=>{t=!0}},[e,m]),(0,t.jsxs)("div",{className:"grid gap-[var(--gap-20)]",children:[(0,t.jsxs)("div",{className:a.accountCardClass,children:[(0,t.jsxs)(n.Link,{href:l.routes.auth.orderDetail(e),className:"inline-flex items-center gap-2 font-[var(--font-weight-semibold)] text-[var(--brand-primary)] no-underline hover:text-[var(--brand-primary-hover)] hover:underline",children:[(0,t.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M19 12H5m0 0 6-6m-6 6 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),m("account_flow_back_to_shipment_details")]}),(0,t.jsxs)("div",{className:"mt-[var(--gap-20)] flex flex-col gap-[var(--gap-15)] md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:m("account_flow_shipment_with_id",{id:e})}),(0,t.jsx)("h2",{className:a.accountTitleClass,children:m("account_flow_shipment_tracking")}),(0,t.jsx)("p",{className:a.accountMutedClass,children:m("account_flow_tracking_description")})]}),(0,t.jsx)("span",{className:"w-fit bg-[var(--brand-neutral-surface-5)] px-[14px] py-[7px] text-[length:var(--body-small-size)] font-[var(--font-weight-semibold)] leading-none text-[var(--brand-primary-deep)]",children:m("account_flow_total_count",{count:h.length})})]}),g?(0,t.jsx)("p",{className:a.accountMutedClass,children:m("account_flow_loading_tracking")}):null,x?(0,t.jsx)("p",{className:a.accountErrorClass,children:x}):null]}),g||x||0!==h.length?null:(0,t.jsx)("div",{className:a.accountCardClass,children:(0,t.jsx)("p",{className:"m-0 text-[length:var(--body-regular-size)] text-[var(--brand-neutral-text)]",children:m("account_flow_no_tracking")})}),h.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-[var(--gap-20)]",children:h.map((e,r)=>{let l,i,n=c(e.Id),s=d(e,"latitude"),o=d(e,"longitude"),h=(l=d(e,"latitude"),i=d(e,"longitude"),"number"!=typeof l||"number"!=typeof i?null:`https://www.google.com/maps/search/?api=1&query=${l},${i}`);return(0,t.jsxs)("article",{className:a.accountCardClass,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--gap-12)] md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:a.accountEyebrowClass,children:m("account_flow_location")}),(0,t.jsx)("h3",{className:"m-0 text-[20px] font-[var(--font-weight-semibold)] leading-[1.35] text-[var(--brand-primary-deep)]",children:c(e.Name)}),(0,t.jsx)("p",{className:"mt-2 mb-0 text-[length:var(--body-small-size)] text-[var(--brand-neutral-text)]",children:[e.State__c,e.Country__c].map(e=>
131e?.trim()).filter(Boolean).join(", ")||"-"})]}),h?(0,t.jsx)("a",{href:h,target:"_blank",rel:"nofollow noopener noreferrer",className:"w-fit border border-[var(--brand-border-color-light)] bg-[var(--profile-page-card-bg)] px-4 py-2.5 font-[var(--font-weight-semibold)] text-[var(--brand-primary)] no-underline hover:text-[var(--brand-primary-hover)] hover:underline",children:m("account_flow_open_maps")}):null]}),(0,t.jsxs)("div",{className:"mt-[var(--gap-20)] grid grid-cols-1 gap-[var(--gap-12)] md:grid-cols-2 xl:grid-cols-4",children:[(0,t.jsx)(u,{label:m("account_flow_last_updated"),value:function(e){if(!e)return"-";let t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(t)}(e.LastModifiedDate)}),(0,t.jsx)(u,{label:m("account_flow_latitude"),value:c(s)}),(0,t.jsx)(u,{label:m("account_flow_longitude"),value:c(o)}),(0,t.jsx)(u,{label:m("account_flow_currency"),value:c(e.CurrencyIsoCode)}),(0,t.jsx)(u,{label:m("account_flow_tracking_id"),value:n}),(0,t.jsx)(u,{label:m("account_flow_shipment_id"),value:c(e.Outbound_Shipment__c)})]})]},`${n}-${r}`)})}):null,g||x?null:(0,t.jsx)(r.ShipmentTrackingMap,{locations:h})]})}e.s(["CustomerShipmentTracking",()=>m])},411971,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(632423);e.i(527967);var i=e.i(830167);function n({title:e,imageSrc:n,href:s,originLabel:o,casLabel:c,hsLabel:d,inquireLabel:u,originValue:m,casValue:h="",hsValue:p=""}){let g="/contact-us";return(0,t.jsxs)("article",{className:"pto-sleek",children:[(0,t.jsxs)(r.Link,{href:s,className:"pto-sleek__link",children:[(0,t.jsx)("div",{className:"pto-sleek__media","aria-hidden":!n,children:n?(0,t.jsx)(a.default,{src:n,alt:"",fill:!0,sizes:"(max-width: 767px) 90vw, (max-width: 1023px) 45vw, 240px",className:"pto-sleek__image"}):(0,t.jsx)("span",{className:"pto-sleek__placeholder"})}),(0,t.jsxs)("div",{className:"pto-sleek__body",children:[(0,t.jsx)("h3",{className:"pto-sleek__title",children:e}),(0,t.jsxs)("div",{className:"pto-sleek__meta",children:[m?(0,t.jsxs)("div",{className:"pto-sleek__meta-row",children:[(0,t.jsxs)("span",{className:"pto-sleek__meta-label",children:[o,":"]}),(0,t.jsx)("span",{className:"pto-sleek__meta-value notranslate",title:m,children:m})]}):null,h?(0,t.jsxs)("div",{className:"pto-sleek__meta-row",children:[(0,t.jsxs)("span",{className:"pto-sleek__meta-label",children:[c,":"]}),(0,t.jsx)("span",{className:"pto-sleek__meta-value notranslate",children:h})]}):null,p?(0,t.jsxs)("div",{className:"pto-sleek__meta-row",children:[(0,t.jsxs)("span",{className:"pto-sleek__meta-label",children:[d,":"]}),(0,t.jsx)("span",{className:"pto-sleek__meta-value notranslate",children:p})]}):null]})]})]}),(0,t.jsx)("div",{className:"pto-sleek__actions",children:(0,t.jsxs)(l.AuthGatedDocLink,{href:g,openInNewTab:!1,returnPathAfterAuth:g,className:"pto-sleek__inquire",children:[u,(0,t.jsx)(i.ArrowIcon,{className:"pto-sleek__inquire-icon rtl:rotate-180","aria-hidden":!0})]})})]})}e.s(["ProductTileOne",()=>n])},376006,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(271645),l=e.i(948148),i=e.i(579053),n=e.i(186301),s=e.i(980401),o=e.i(411971);function c(e,t){return[t.mobile?`cps-sleek--${e}-mobile`:"",t.tablet?`cps-sleek--${e}-tablet`:"",t.desktop?`cps-sleek--${e}-desktop`:""].filter(Boolean)}function d(e){return e.desktop||e.tablet||e.mobile}function u({instanceId:e,items:u,slidesPerView:m,carouselInfinite:h,carouselIndicators:p,carouselControls:g}){let v=(0,l.useTranslations)(),x=(0,r.useId)(),b=(0,r.useMemo)(()=>{let t;return(t=e?.trim())?t.replace(/[^a-zA-Z0-9_-]/g,"-"):x.replace(/:/g,"")},[e,x]),f=`cps-sleek-prev-${b}`,w=`cps-sleek-next-${b}`,y=`cps-sleek-dots-${b}`,{effectiveControls:j,effectiveIndicators:N}=(0,r.useMemo)(()=>{var e;let t;return e=u.length,t={mobile:e>m.mobile,tablet:e>m.tablet,desktop:e>m.desktop},{effectiveControls:{mobile:g.mobile&&t.mobile,tablet:g.tablet&&t.tablet,desktop:g.desktop&&t.desktop},effectiveIndicators:{mobile:p.mobile&&t.mobile,tablet:p.tablet&&t.tablet,desktop:p.desktop&&t.desktop}}},[u.length,m,g,p]),_=d(j),k=d(N);if(0===u.length)return null;let C=Math.max(m.desktop,m.tablet,m.mobile),S=h&&u.length>C,L=[...c("controls",j),...c("indicators",N)].join(" ");return(0,t.jsxs)("div",{className:`cps-sleek cps-sleek--product ${L}`.trim(),children:[(0,t.jsxs)("div",{className:"cps-sleek__viewport",children:[_?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-label":v("previous"),className:`${f} cps-sleek__nav cps-sleek__nav--prev`,children:(0,t.jsx)(a.ArrowIcon,{className:"cps-sleek__nav-icon rotate-180 rtl:rotate-0"})}),(0,t.jsx)("button",{type:"button","aria-label":v("next"),className:`${w} cps-sleek__nav cps-sleek__nav--next`,children:(0,t.jsx)(a.ArrowIcon,{className:"cps-sleek__nav-icon rtl:rotate-180"})})]}):null,(0,t.jsx)(s.Swiper,{modules:[i.Navigation,n.Pagination],loop:S,watchOverflow:!0,centerInsufficientSlides:!0,slidesPerView:m.mobile,spaceBetween:16,navigation:!!_&&{prevEl:`.${f}`,nextEl:`.${w}`},pagination:!!k&&{clickable:!0,el:`.${y}`},breakpoints:{0:{slidesPerView:m.mobile,spaceBetween:16},768:{slidesPerView:m.tablet,spaceBetween:16},1024:{slidesPerView:m.desktop,spaceBetween:20}},className:"cps-sleek__swiper",children:u.map(e=>(0,t.jsx)(s.SwiperSlide,{className:"cps-sleek__slide",children:(0,t.jsx)(o.ProductTileOne,{title:e.title,imageSrc:e.imageSrc,href:e.href,originLabel:v("origin"),casLabel:v("cas_number"),hsLabel:v("hs_code"),inquireLabel:v("inquire_now"),originValue:e.originValue,casValue:e.casValue,hsValue:e.hsValue})},String(e.id)))})]}),k?(0,t.jsx)("div",{className:`cps-sleek__indicators ${y}`}):null]})}e.s(["SleekProductSourceSlider",()=>u])},910027,e=>{"use strict";var t=e.i(843476),a=e.i(301630);e.i(79951);var r=e.i(902936),l=e.i(657688);function i(e){return"string"==typeof e?e.trim():""}function n({image:e,name:n,counts:s,href:o}){let c=(0,a.normalizeCmsImage)(i(e),""),d=i(n),u=i(s);if(!c&&!d&&!u)return null;let m=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"coc-sleek__media",children:c?(0,t.jsx)(l.default,{src:c,alt:d||"",fill:!0,sizes:"(max-width: 639px) 92vw, (max-width: 1023px) 46vw, 320px",quality:90,className:"coc-sleek__image",style:{objectFit:"cover",objectPosition:"center"}}):(0,t.jsx)("span",{className:"coc-sleek__placeholder","aria-hidden":!0})}),(0,t.jsxs)("span",{className:"coc-sleek__body",children:[d?(0,t.jsx)("h3",{className:"coc-sleek__title",children:d}):null,u?(0,t.jsx)("p",{className:"coc-sleek__count",children:u}):null]})]});return o?(0,t.jsx)(r.Link,{href:o,className:"coc-sleek","aria-label":d?u?`${d}, ${u}
131`:d:void 0,children:m}):(0,t.jsx)("article",{className:"coc-sleek",children:m})}var s=e.i(376006),o=e.i(861745),c=e.i(948148);function d(e){let a=(0,c.useTranslations)(),r=(0,o.useLocale)();return"product"===e.source?(0,t.jsx)(s.SleekProductSourceSlider,{...e}):0===e.items.length?null:(0,t.jsx)("div",{className:"cps-sleek",children:(0,t.jsx)("div",{className:"cps-sleek__grid",children:e.items.map(e=>{let l;return(0,t.jsx)(n,{image:e.image,name:e.name,counts:(l=e.productCount,`${new Intl.NumberFormat(r).format(l)} ${a("products")}`),href:e.href},String(e.id))})})})}e.s(["SleekCategoryProductSliderView",()=>d],910027)},245999,e=>{e.v({empty:"ProductNameAutocompleteInput-module__H2reSW__empty",list:"ProductNameAutocompleteInput-module__H2reSW__list",option:"ProductNameAutocompleteInput-module__H2reSW__option",optionActive:"ProductNameAutocompleteInput-module__H2reSW__optionActive",root:"ProductNameAutocompleteInput-module__H2reSW__root"})},596780,e=>{"use strict";var t=e.i(843476),a=e.i(134962),r=e.i(245999);function l({id:e,name:l,required:i,placeholder:n,className:s,maxLength:o,defaultValue:c=""}){return(0,t.jsx)("div",{className:r.default.root,children:(0,t.jsx)(a.ProductNameAutocompleteInput,{id:e,name:l,required:i,placeholder:n,className:s,maxLength:o,defaultValue:c,searchMode:"catalog",listClassName:r.default.list,itemClassName:r.default.option,activeItemClassName:r.default.optionActive,emptyClassName:r.default.empty})})}e.s(["ProductNameAutocompleteInput",()=>l])},726365,e=>{e.v({banner:"BannerSectionOne-module__ZDqFVa__banner",quantityGroup:"BannerSectionOne-module__ZDqFVa__quantityGroup",rfqBanner:"BannerSectionOne-module__ZDqFVa__rfqBanner",rfqDescription:"BannerSectionOne-module__ZDqFVa__rfqDescription",rfqField:"BannerSectionOne-module__ZDqFVa__rfqField",rfqFormArea:"BannerSectionOne-module__ZDqFVa__rfqFormArea",rfqFormMessage:"BannerSectionOne-module__ZDqFVa__rfqFormMessage",rfqFormMessageError:"BannerSectionOne-module__ZDqFVa__rfqFormMessageError",rfqFormMessageSuccess:"BannerSectionOne-module__ZDqFVa__rfqFormMessageSuccess",rfqHeader:"BannerSectionOne-module__ZDqFVa__rfqHeader",rfqInput:"BannerSectionOne-module__ZDqFVa__rfqInput",rfqLabel:"BannerSectionOne-module__ZDqFVa__rfqLabel",rfqRecaptcha:"BannerSectionOne-module__ZDqFVa__rfqRecaptcha",rfqSelect:"BannerSectionOne-module__ZDqFVa__rfqSelect",rfqSubmit:"BannerSectionOne-module__ZDqFVa__rfqSubmit",rfqTextarea:"BannerSectionOne-module__ZDqFVa__rfqTextarea",rfqTitle:"BannerSectionOne-module__ZDqFVa__rfqTitle",uomSelectArrow:"BannerSectionOne-module__ZDqFVa__uomSelectArrow",uomSelectArrowIcon:"BannerSectionOne-module__ZDqFVa__uomSelectArrowIcon",uomSelectWrap:"BannerSectionOne-module__ZDqFVa__uomSelectWrap"})},26800,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(716787);var r=e.i(659544);e.i(527967);var l=e.i(830167),i=e.i(203286),n=e.i(596780),s=e.i(572447),o=e.i(647898),c=e.i(726365);function d({parsedEmbed:e,recaptchaSiteKey:d,productNamePlaceholder:u,quantityPlaceholder:m,emailPlaceholder:h,messagesPlaceholder:p,uomPlaceholder:g,uomAriaLabel:v,submitLabel:x,submitAriaLabel:b,successMessage:f,productNameLabel:w,quantityLabel:y,emailLabel:j,messageLabel:N}){let{emailInputRef:_}=(0,i.useAuthEmailPrefill)(),[k,C]=(0,a.useState)(!1),[S,L]=(0,a.useState)(null),I=(0,a.useRef)(!1),z=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!S||!d)return;let e=window.setInterval(()=>{let e=z.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&L(null)},400);return()=>window.clearInterval(e)},[S,d]);let A=e.visibleFields,q=A.find(e=>"product"===e.role),E=A.find(e=>"qty"===e.role),$=A.find(e=>"uom"===e.role),P=A.find(e=>"email"===e.role),T=A.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){I.current&&(I.current=!1,z.current?.reset(),(0,o.resetRecaptcha)(z.current),L(null),C(!0),setTimeout(()=>C(!1),4e3))}}),(0,t.jsxs)("form",{ref:z,className:"grid grid-cols-1 items-start gap-3.5 lg:grid-cols-12 lg:gap-x-8 lg:gap-y-3",action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(d){let t=z.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),I.current=!1,C(!1),L("Please complete reCAPTCHA.");return}L(null)}I.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 lg:col-span-9",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-3",children:[q?(0,t.jsxs)("div",{className:c.default.rfqField,children:[(0,t.jsx)("label",{className:c.default.rfqLabel,htmlFor:q.id,children:w}),(0,t.jsx)(n.ProductNameAutocompleteInput,{id:q.id,name:q.name,required:!0,placeholder:u,className:c.default.rfqInput})]}):null,$?(0,t.jsxs)("div",{className:c.default.rfqField,children:[(0,t.jsx)("label",{className:c.default.rfqLabel,htmlFor:E?.id??$.id,children:y}),(0,t.jsxs)("div",{className:c.default.quantityGroup,children:[E?(0,t.jsx)("input",{type:"text",id:E.id,name:E.name,required:!0,placeholder:m,className:c.default.rfqInput}):null,(0,t.jsxs)("div",{className:c.default.uomSelectWrap,children:[(0,t.jsxs)("select",{id:$.id,name:$.name,required:!0,defaultValue:"","aria-label":v,className:c.default.rfqSelect,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:g}),$.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)("span",{className:c.default.uomSelectArrow,"aria-hidden":!0,
131children:(0,t.jsx)(l.ArrowIcon,{className:c.default.uomSelectArrowIcon})})]})]})]}):null,P?(0,t.jsxs)("div",{className:c.default.rfqField,children:[(0,t.jsx)("label",{className:c.default.rfqLabel,htmlFor:P.id,children:j}),(0,t.jsx)("input",{ref:_,type:"email",id:P.id,name:P.name,maxLength:P.maxLength,required:!0,placeholder:h,className:c.default.rfqInput})]}):null]}),T?(0,t.jsxs)("div",{className:c.default.rfqField,children:[(0,t.jsx)("label",{className:c.default.rfqLabel,htmlFor:T.id,children:N}),(0,t.jsx)("textarea",{id:T.id,name:T.name,rows:2,placeholder:p,className:c.default.rfqTextarea})]}):null,(k||S)&&(0,t.jsx)("div",{children:k?(0,t.jsx)("p",{className:`${c.default.rfqFormMessage} ${c.default.rfqFormMessageSuccess}`,children:f||"Thank you! We'll be in touch."}):S?(0,t.jsx)("p",{className:`${c.default.rfqFormMessage} ${c.default.rfqFormMessageError}`,children:S}):null})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 lg:col-span-3",children:[d?(0,t.jsx)("div",{className:c.default.rfqRecaptcha,children:(0,t.jsx)(s.RecaptchaWidget,{siteKey:d})}):null,(0,t.jsx)(r.Button,{variant:"primary",type:"submit","aria-label":b,className:c.default.rfqSubmit,children:x})]})]})]})}e.s(["SalesforceEmbedForm",()=>d])},557111,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645);e.i(527967);var i=e.i(830167),n=e.i(419037),s=e.i(948148);function o({href:e,className:a,onClick:l,children:i}){return e.startsWith("http")?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer",onClick:l,children:i}):(0,t.jsx)(r.Link,{href:e,className:a,onClick:l,children:i})}function c({isOpen:e,onClose:r,exploreCategories:c=[],globalWebsiteUrl:d="https://chemtradeasia.com",allBreakpoints:u=!1}){let m=(0,s.useTranslations)(),[h,p]=(0,l.useState)(()=>c[0]?.label??"");if(!e)return null;let g=0===c.length?"":c.some(e=>e.label===h)?h:c[0]?.label??"",v=c.find(e=>e.label===g),x=(v?.children??[]).map(e=>({label:e.label,href:e.href??"#",flagSrc:e.flagSrc,flagEmoji:e.flagEmoji}));return(0,t.jsxs)("div",{className:u?void 0:"lg:hidden",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-config-modal-backdrop)] bg-[var(--header-two-modal-explore-backdrop-bg)]","aria-hidden":!0,onClick:r}),(0,t.jsxs)("div",{className:"fixed left-1/2 top-1/2 z-[var(--header-two-z-config-modal-dialog)] w-full max-w-[var(--header-two-modal-explore-dialog-max-width-mobile)] md:max-w-[var(--header-two-modal-explore-dialog-max-width-desktop)] max-h-[min(92vh,900px)] -translate-x-1/2 -translate-y-1/2 overflow-y-auto bg-[var(--header-two-modal-explore-dialog-bg)] px-[length:var(--header-two-modal-explore-dialog-padding-x-mobile)] md:px-[length:var(--header-two-modal-explore-dialog-padding-x-desktop)] py-[length:var(--header-two-modal-explore-dialog-padding-y-mobile)] md:py-[length:var(--header-two-modal-explore-dialog-padding-y-desktop)] shadow-[var(--header-two-modal-explore-dialog-shadow)]",role:"dialog","aria-labelledby":"website-explore-modal-title","aria-modal":!0,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 pb-[length:var(--header-two-modal-explore-header-padding-bottom)]",children:[(0,t.jsx)("h2",{id:"website-explore-modal-title",className:"min-w-0 flex-1 text-[length:var(--header-two-modal-explore-heading-font-size-mobile)] md:text-[length:var(--header-two-modal-explore-heading-font-size-desktop)] font-[var(--header-two-modal-explore-heading-font-weight)] leading-[var(--header-two-modal-explore-heading-line-height)] text-[var(--header-two-modal-explore-heading-color)]",children:m("select_a_website_to_explore")}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":m("close"),className:"shrink-0 rounded-md p-1 text-[var(--header-two-modal-explore-close-color)] transition-colors hover:text-[var(--header-two-modal-explore-close-hover-color)]",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14,className:"h-[length:var(--header-two-modal-explore-close-icon-size)] w-[length:var(--header-two-modal-explore-close-icon-size)] opacity-70 hover:opacity-100"})})]}),(0,t.jsx)("p",{className:"pb-[length:var(--header-two-modal-explore-desc-padding-bottom)] text-[length:var(--header-two-modal-explore-desc-font-size-mobile)] md:text-[length:var(--header-two-modal-explore-desc-font-size-desktop)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-modal-explore-desc-line-height)] text-[var(--header-two-modal-explore-desc-color)]",children:m("website_explore_description")}),c.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"relative md:hidden",children:[(0,t.jsx)("select",{value:g,onChange:e=>p(e.target.value),"aria-label":m("explore_categories"),className:"w-full appearance-none bg-[var(--header-two-modal-explore-dropdown-bg)] px-[length:var(--header-two-modal-explore-dropdown-padding-x)] py-[length:var(--header-two-modal-explore-dropdown-padding-y)] pe-[length:var(--header-two-modal-explore-dropdown-padding-right)] text-[length:var(--header-two-modal-explore-dropdown-font-size-mobile)] md:text-[length:var(--header-two-modal-explore-dropdown-font-size-desktop)] font-[var(--header-two-modal-explore-dropdown-font-weight)] text-[var(--header-two-modal-explore-dropdown-color)] focu
131s:outline-none",children:c.map(e=>(0,t.jsx)("option",{value:e.label,children:e.label},e.label))}),(0,t.jsx)(i.ArrowIcon,{className:"pointer-events-none absolute end-[length:var(--header-two-modal-explore-dropdown-icon-right)] top-1/2 h-[length:var(--header-two-modal-explore-dropdown-icon-size)] w-[length:var(--header-two-modal-explore-dropdown-icon-size)] -translate-y-1/2 rotate-90 text-[var(--header-two-modal-explore-dropdown-icon-color)]"})]}),(0,t.jsx)("div",{className:"hidden md:flex md:flex-wrap md:gap-x-[length:var(--header-two-modal-explore-tabs-gap)] md:border-b md:border-[color:var(--header-two-modal-explore-tabs-border-color)]",role:"tablist","aria-label":m("explore_categories"),children:c.map(e=>{let a=g===e.label;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":a,className:`p-[length:var(--header-two-modal-explore-tab-padding)] text-[length:var(--header-two-modal-explore-tab-font-size)] font-[var(--header-two-modal-explore-tab-font-weight)] text-[var(--header-two-modal-explore-tab-color)] transition-colors ${a?"-mb-px border-b-[length:var(--header-two-modal-explore-tab-underline-height)] border-[color:var(--header-two-modal-explore-tab-underline-active)]":""}`,onClick:()=>p(e.label),children:e.label},e.label)})})]}):null,(0,t.jsx)("div",{className:"max-h-[var(--header-two-modal-explore-list-max-height)] overflow-y-auto py-[length:var(--header-two-modal-explore-list-padding-y-mobile)] md:py-[length:var(--header-two-modal-explore-list-padding-y-desktop)] [scrollbar-gutter:stable]",children:0===c.length?(0,t.jsx)("p",{className:"text-[length:var(--header-two-modal-explore-label-font-size-mobile)] md:text-[length:var(--header-two-modal-explore-label-font-size-desktop)] font-[var(--header-two-modal-explore-label-font-weight)] text-[var(--header-two-modal-explore-desc-color)]",children:m("no_websites_available")}):(0,t.jsx)("ul",{className:"grid grid-cols-1 gap-x-[length:var(--header-two-modal-explore-grid-gap-x)] gap-y-[length:var(--header-two-modal-explore-grid-gap-y-mobile)] md:gap-y-[length:var(--header-two-modal-explore-grid-gap-y-desktop)] md:grid-cols-3 lg:grid-cols-4",children:x.map((e,l)=>(0,t.jsx)("li",{children:e.href?(0,t.jsxs)(o,{href:e.href,className:"group flex w-full min-w-0 items-start gap-[length:var(--header-two-modal-explore-item-gap)] rounded-[length:var(--header-two-modal-explore-item-radius)] px-[length:var(--header-two-modal-explore-item-padding-x)] py-[length:var(--header-two-modal-explore-item-padding-y)] transition-colors hover:bg-[var(--header-two-modal-explore-item-hover-bg)]",onClick:r,children:[e.flagSrc?(0,t.jsx)("span",{className:"relative h-[length:var(--header-two-modal-explore-thumb-size)] w-[length:var(--header-two-modal-explore-thumb-size)] shrink-0 overflow-hidden rounded-full bg-[var(--header-two-modal-explore-thumb-bg)] ring-1 ring-[color:var(--header-two-modal-explore-tabs-border-color)]",children:(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:36,height:36,className:"h-full w-full object-cover"})}):e.flagEmoji?(0,t.jsx)("span",{className:"flex h-[length:var(--header-two-modal-explore-thumb-size)] w-[length:var(--header-two-modal-explore-thumb-size)] shrink-0 items-center justify-center rounded-full bg-[var(--header-two-modal-explore-thumb-bg)] text-[length:var(--header-two-modal-explore-label-emoji-font-size)] ring-1 ring-[color:var(--header-two-modal-explore-tabs-border-color)]",children:e.flagEmoji}):(0,t.jsx)("span",{className:"h-[length:var(--header-two-modal-explore-thumb-size)] w-[length:var(--header-two-modal-explore-thumb-size)] shrink-0 rounded-full bg-[var(--header-two-modal-explore-thumb-bg)] ring-1 ring-[color:var(--header-two-modal-explore-tabs-border-color)]","aria-hidden":!0}),(0,t.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,t.jsx)("span",{className:"min-w-0 text-[length:var(--header-two-modal-explore-label-font-size-mobile)] md:text-[length:var(--header-two-modal-explore-label-font-size-desktop)] font-[var(--header-two-modal-explore-label-font-weight)] text-[var(--header-two-modal-explore-label-color)] leading-[var(--header-two-modal-explore-label-line-height)]",children:e.label}
131),(0,t.jsx)(i.ArrowIcon,{"aria-hidden":!0,className:"ms-auto h-3 w-3 shrink-0 rtl:rotate-180 text-[var(--header-two-modal-explore-item-arrow-color)] opacity-0 transition-opacity group-hover:opacity-100"})]})]}):(0,t.jsx)("span",{className:"text-[length:var(--header-two-modal-explore-label-font-size-mobile)] md:text-[length:var(--header-two-modal-explore-label-font-size-desktop)] font-[var(--header-two-modal-explore-label-font-weight)] text-[var(--header-two-modal-explore-label-color)]",children:e.label})},e.label+l))})}),(0,t.jsx)("div",{className:"h-px bg-[var(--header-two-modal-explore-footer-separator-color)]"}),(0,t.jsx)("div",{className:"flex justify-end py-[length:var(--header-two-modal-explore-footer-padding-top)]",children:(0,t.jsxs)(o,{href:d,className:"group inline-flex items-center gap-[var(--gap-10)] rounded-full border-2 border-[color:var(--header-two-modal-explore-cta-border)] hover:border-[color:var(--header-two-modal-explore-cta-hover-border)] bg-[var(--header-two-modal-explore-cta-bg)] px-[length:var(--header-two-modal-explore-cta-padding-x-mobile)] md:px-[length:var(--header-two-modal-explore-cta-padding-x-desktop)] py-[length:var(--header-two-modal-explore-cta-padding-y-mobile)] md:py-[length:var(--header-two-modal-explore-cta-padding-y-desktop)] text-[length:var(--header-two-modal-explore-cta-font-size)] font-[var(--header-two-modal-explore-cta-font-weight)] text-[var(--header-two-modal-explore-cta-color)] transition-[color,background-color,border-color] duration-200 hover:border-[color:var(--header-two-modal-explore-cta-hover-border)] hover:bg-[var(--header-two-modal-explore-cta-hover-bg)] hover:font-bold hover:text-[var(--header-two-modal-explore-cta-hover-color)]",onClick:r,children:[(0,t.jsx)(n.GlobeIcon,{className:"h-[length:var(--header-two-modal-explore-cta-icon-size)] w-[length:var(--header-two-modal-explore-cta-icon-size)] shrink-0 text-[var(--header-two-modal-explore-cta-color)] group-hover:text-[var(--header-two-modal-explore-cta-hover-color)]","aria-hidden":!0}),m("visit_global_site")]})})]})]})}e.s(["WebsiteExploreModal",()=>c])},406061,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),l=e.i(235441);function i(e){let t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:void 0}function n(e){let t=i(e.rank),a=i(e.id),r="string"==typeof e.display_name?e.display_name.trim():"",l="string"==typeof e.hs_code?e.hs_code.trim():"",n=i(e.total_value_usd),s=i(e.total_weight_kg);return void 0!==t&&void 0!==a&&r&&void 0!==n&&void 0!==s?{rank:t,id:a,displayName:r,hsCode:l,totalValueUsd:n,totalWeightKg:s,totalWeightMt:i(e.total_weight_mt)??s/1e3,impliedPriceUsdPerMt:function(e){if(null!==e)return i(e)}(e.implied_price_usd_per_mt)??null}:null}let s={1:"var(--market-spread-top-chemicals-rank-gold)",2:"var(--market-spread-top-chemicals-rank-silver)",3:"var(--market-spread-top-chemicals-rank-bronze)"},o={1:"🥇",2:"🥈",3:"🥉"};function c({heading:e,subheading:i,initialData:c,labels:d}){let u=(0,r.useTranslations)(),[m,h]=(0,a.useState)(c),[p,g]=(0,a.useState)(!1),{selectedYear:v}=(0,l.useMarketSpreadYear)();if((0,a.useEffect)(()=>{if(null===v||v===m?.year)return;let e=!1;return g(!0),fetch(`/api/trade/top-chemicals?year=${v}`).then(e=>e.ok?e.json():null).then(t=>{if(!e&&t?.success){var a;let e,r=(e=(a=t.data)&&"object"==typeof a?a:null)&&"number"==typeof e.year?{year:e.year,chemicals:Array.isArray(e.chemicals)?e.chemicals.map(n).filter(e=>null!==e):[]}:null;r&&h(r)}}).catch(()=>{}).finally(()=>{e||g(!1)}),()=>{e=!0}},[v]),!m||0===m.chemicals.length)return null;let x=m.chemicals,b=Math.max(...x.map(e=>e.totalWeightMt),1),f=x.some(e=>null!=e.impliedPriceUsdPerMt);return(0,t.jsx)("section",{className:"bg-[var(--market-spread-top-chemicals-bg-color)]",children:(0,t.jsxs)("div",{className:"layout-container",children:[(0,t.jsx)("h2",{className:"text-[length:var(--market-spread-top-chemicals-heading-size-mobile)] leading-[var(--market-spread-top-chemicals-heading-line-mobile)] font-[var(--market-spread-top-chemicals-heading-weight)] text-[var(--market-spread-top-chemicals-heading-color)] md:text-[length:var(--market-spread-top-chemicals-heading-size-desktop)] md:leading-[var(--market-spread-top-chemicals-heading-line-desktop)]",children:e}),i?(0,t.jsx)("p",{className:"mt-[var(--market-spread-top-chemicals-header-gap)] max-w-[720px] text-[length:var(--market-spread-top-chemicals-subheading-size)] leading-[var(--market-spread-top-chemicals-subheading-line)] font-[var(--market-spread-top-chemicals-subheading-weight)] text-[var(--market-spread-top-chemicals-subheading-color)]",children:i}):null,(0,t.jsxs)("div",{className:`rounded-[var(--market-spread-top-chemicals-card-radius)]
132          border border-[var(--market-spread-top-chemicals-card-border-color)]
133          bg-[var(--market-spread-top-chemicals-card-bg)]
134          p-[var(--market-spread-top-chemicals-card-padding-mobile)]
135          [box-shadow:var(--market-spread-top-chemicals-card-shadow)]
136          transition-shadow duration-300 ease-out
137          hover:[box-shadow:var(--market-spread-top-chemicals-card-hover-shadow)]
138          md:p-[var(--market-spread-top-chemicals-card-padding-desktop)]
139          mt-[var(--market-spread-top-chemicals-grid-padding-top)]
140          transition-opacity duration-200 ${p?"opacity-60":"opacity-100"}`,children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,t.jsx)("p",{className:"text-[length:var(--market-spread-top-chemicals-value-size)] font-[var(--font-weight-semibold)] text-[var(--market-spread-top-chemicals-name-color)]",children:u("market_spread_ranked_by_trade_value")}),(0,t.jsx)("span",{className:"shrink-0 whitespace-nowrap text-[11px] font-[var(--font-weight-medium)] text-[var(--market-spread-top-chemicals-hs-color)]",children:d?.data?`${m.year} ${d.data}`:u("market_spread_year_data",{year:m.year})})]}),(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full min-w-[520px] border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-[var(--market-spread-top-chemicals-row-border-color)]",children:[(0,t.jsx)("th",{className:"w-10 py-2 text-start text-[length:var(--market-spread-top-chemicals-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-top-chemicals-head-color)]",children:d?.rank??"#"}),(0,t.jsx)("th",{className:"py-2 text-start text-[length:var(--market-spread-top-chemicals-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-top-chemicals-head-color)]",children:d?.chemical??u("market_spread_chemical")}),(0,t.jsx)("th",{className:"w-44 py-2 text-end text-[length:var(--market-spread-top-chemicals-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-top-chemicals-head-color)]",children:d?.tradeVolume??u("market_spread_trade_volume")}),(0,t.jsx)("th",{className:"w-28 py-2 text-end text-[length:var(--market-spread-top-chemicals-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-top-chemicals-head-color)]",children:d?.avgUnitPrice??u("market_spread_avg_unit_price")})]})}),(0,t.jsx)("tbody",{children:x.map(e=>{var a,r;let l=s[e.rank],i=o[e.rank],n=Math.max(e.totalWeightMt/b*100,2);return(0,t.jsxs)("tr",{className:"border-b border-[var(--market-spread-top-chemicals-row-border-color)] last:border-b-0 transition-colors duration-200 ease-out hover:bg-[var(--market-spread-top-chemicals-row-hover-bg)]",style:{borderInlineStart:`3px solid ${l??"transparent"}`},children:[(0,t.jsx)("td",{className:"py-2.5 ps-2 text-start align-middle",children:i?(0,t.jsx)("span",{"aria-hidden":"true",children:i}):(0,t.jsx)("span",{className:"text-[13px] font-[var(--font-weight-bold)]",style:{color:"var(--market-spread-top-chemicals-rank-color)"},children:e.rank})}),(0,t.jsxs)("td",{className:"py-2.5 align-middle",children:[(0,t.jsx)("p",{className:"truncate text-[length:var(--market-spread-top-chemicals-name-size)] font-[var(--font-weight-semibold)] text-[var(--market-spread-top-chemicals-name-color)]",children:e.displayName}),e.hsCode?(0,t.jsxs)("p",{className:"mt-0.5 font-mono text-[10px] text-[var(--market-spread-top-chemicals-hs-color)]",children:["HS ",e.hsCode]}):null]}),(0,t.jsx)("td",{className:"py-2.5 align-middle",children:(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)("span",{className:"whitespace-nowrap text-[11px] font-[var(--font-weight-bold)] text-[var(--market-spread-top-chemicals-name-color)]",children:(a=e.totalWeightMt)>=1e6?`${(a/1e6).toFixed(2)}M MT`:a>=1e3?`${(a/1e3).toFixed(1)}K MT`:`${a.toFixed(0)} MT`}),(0,t.jsx)("div",{className:"h-[var(--market-spread-top-chemicals-bar-height)] w-full overflow-hidden rounded-full bg-[var(--market-spread-top-chemicals-bar-track-color)]",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-[var(--market-spread-top-chemicals-bar-fill-color)] transition-[width] duration-500",style:{width:`${n}%`}})})]})}),(0,t.jsx)("td",{className:"py-2.5 text-end align-middle",children:null!=e.impliedPriceUsdPerMt?(0,t.jsx)("span",{className:"inline-block rounded-[var(--radius-card-sm,6px)] bg-[var(--market-spread-top-chemicals-price-pill-bg)] px-2 py-1 text-[11px] font-[var(--font-weight-medium)] text-[var(--market-spread-top-chemicals-price-pill-color)]",children:(r=e.impliedPriceUsdPerMt,`~${new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(r)}/MT`)}):(0,t.jsx)("span",{className:"text-[11px] text-[var(--market-spread-top-chemicals-hs-color)]",children:"—"})})]},e.id)})})]})}),f?(0,t.jsx)("p",{className:"mt-3 border-t border-[var(--market-spread-top-chemicals-row-border-color)] pt-3 text-[10px] text-[var(--market-spread-top-chemicals-footnote-color)]",children:u("market_spread_avg_price_footnote")}):null]})]})})}e.s(["MarketSpreadTopChemicalsSection",()=>c],406061)},591621,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(468894),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(76209),s=e.i(271645),o=e.i(822492),c=e.i(780020),d=e.i(948148);e.i(475584);var u=e.i(285216);let m="h1s-mega-heading text-[length:var(--header-two-font-size-mega-heading)] font-[var(--font-weight-semibold)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--brand-primary-deep)]",h="max-h-[length:var(--header-two-mega-list-max-height)]",p="h1s-mega-link text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--brand-primary-deep)]",g="h1s-mega-col-divider border-s border-[var(--header-two-main-border)] ps-[var(--header-two-mega-insights-padding-left)]";function v({href:e,className:a,children:r,target:l,"aria-current":n,...s}){return e.startsWith("http")||"_blank"===l?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer","aria-current":n,...s,children:r}):(0,t.jsx)(i.Link,{href:e,className:a,"aria-current":n,children:r})}function x({items:e}){let a=(0,d.useTranslations)();return 0===e.length?null:(0,t.jsxs)("div",{className:`mega-col col-right ${g}`,children:[(0,t.jsx)("h4",{className:m,children:a("top_market_insights")}),e.map(e=>(0,t.jsxs)("div",{className:"h1s-mega-insight-row flex items-center justify-between gap-[var(--header-two-mega-row-gap)]",children:[(0,t.jsxs)("div",{className:"me-[var(--header-two-mega-body-margin-end)] min-w-0 flex-1",children:[(0,t.jsx)(v,{href:e.href,className:"m-0 block p-0 text-inherit no-underline",children:(0,t.jsx)("h6",{className:"h1s-mega-insight-title m-0 mb-[var(--header-two-mega-insight-title-margin-bottom)] text-[length:var(--header-two-mega-insight-title-size)] font-[var(--header-two-mega-insight-title-weight)] leading-[var(--header-two-mega-insight-title-line-height)] text-[var(--header-two-mega-insight-title-color)]",children:e.title})}),e.date?(0,t.jsxs)("p",{className:"m-0 flex items-center gap-[var(--header-two-mega-date-icon-gap)] text-[length:var(--header-two-mega-date-size)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-mega-date-line-height)] text-[var(--header-two-mega-date-color)]",children:[(0,t.jsx)(r.CalenderIconNew,{className:"h1s-mega-insight-d
140ate-icon","aria-hidden":!0}),e.date]}):null]}),e.imageSrc?(0,t.jsx)(l.default,{src:e.imageSrc,alt:e.imageAlt,className:"h1s-mega-insight-image h-[length:var(--header-two-mega-insight-image-height)] w-[length:var(--header-two-mega-insight-image-width)] shrink-0 object-cover",width:96,height:68,sizes:"96px"}):null]},e.id??e.href))]})}function b({openMega:e,onMegaChange:r,utilityActions:l=[],navItems:i,visible:d=!0,measureLayout:b=!1,onOverflowChange:f,standard:w=!1,trailingContent:y}){let j=!!i?.length,N=(0,s.useRef)(null),_=(0,s.useRef)(null),[k,C]=(0,s.useState)(null),S=(0,s.useCallback)(e=>{C(null),r(e)},[r]),L=(0,s.useCallback)(()=>{r(null)},[r]);(0,s.useEffect)(()=>{let e=e=>{N.current?.contains(e.target)||r(null)},t=e=>{"Escape"===e.key&&r(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,s.useLayoutEffect)(()=>{if(!b)return void f?.(!1);let e=_.current;if(!e)return;let t=()=>{f?.(e.scrollWidth>e.clientWidth+1)};t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[b,i,l,f]);let I=(0,n.usePathname)(),z=(0,s.useMemo)(()=>{if(!i?.length)return new Set;let e=(0,o.findActiveCmsNavItemIndex)(I,i);return null===e?new Set:new Set([`cms-${e}`])},[i,I]),A=["hidden xl:block border-b border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)]",w?"h1s-main-nav":"",!d?"max-h-0 overflow-hidden border-b-0 opacity-0 pointer-events-none":""].filter(Boolean).join(" ");if(!b&&!d)return null;let q=w?" active":" active font-[var(--font-weight-semibold)] text-[var(--header-two-nav-text-active)]";return(0,t.jsxs)("div",{className:A,ref:N,onMouseLeave:L,"aria-hidden":!d||void 0,"data-sleek-main-nav":w?"true":void 0,children:[(0,t.jsxs)("div",{ref:_,className:"layout-container flex items-center justify-between gap-[length:var(--header-two-nav-row-gap)] px-3 py-[length:var(--header-two-nav-row-padding-y)] md:px-5",children:[(0,t.jsx)("nav",{"aria-label":"Primary",className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-nowrap items-stretch gap-[length:var(--header-two-nav-list-gap-sm)] p-0 xl:gap-[length:var(--header-two-nav-list-gap-md)]",children:j?i.map((r,l)=>{let i=`cms-${l}`,n=z.has(i);return r.children.length>0?(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:()=>S(i),children:(0,t.jsxs)("button",{type:"button",className:`inline-flex cursor-pointer items-center gap-[length:var(--header-two-mega-button-gap)] truncate border-0 bg-transparent py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?q:""}`,"aria-expanded":e===i,"aria-controls":`mega-${i}`,"aria-current":n?"true":void 0,onFocus:()=>S(i),children:[r.label,(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mega-chevron-size)] w-[length:var(--header-two-mega-chevron-size)] shrink-0 rotate-90"})]})},i):(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:L,children:(0,t.jsx)(v,{href:r.href??"/",target:r.target,className:`inline-flex items-center truncate py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?q:""}`,"aria-current":n?"page":void 0,children:r.label})},i)}):null})}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-[length:var(--header-two-nav-actions-gap)]",onMouseEnter:L,children:y??(0,t.jsx)(u.HeaderUtilityActions,{actions:l})})]}),j?i.map((r,l)=>{var i;let n,s=`cms-${l}`;if(e!==s||0===r.children.length)return null;let o=k?r.children.find(e=>e.label===k)??null:null;return(0,t.jsx)("div",{className:"h1s-mega-panel absolute z-[var(--header-two-z-mega-panel)] m-0 box-border w-full border-t border-[var(--header-two-main-border)] bg-[var(--brand-white)] [box-shadow:var(--header-two-mega-shadow)]",id:`mega-${s}`,role:"region","aria-label":`${r.label} menu`,children:(0,t.jsxs)("div",{className:"h1s-mega-grid mega-grid layout-container box-border grid w-full [grid-template-columns:var(--header-two-mega-grid-template-columns)] px-3 py-[var(--header-two-mega-grid-padding-y)] md:px-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:m,children:r.label}),(0,t.jsx)("ul",{className:`m-0 list-none overflow-y-auto p-0 ${h}`,children:r.children.map(e=>{let r=e.children.length>0,l=k===e.label;return(0,t.jsx)("li",{className:`h1s-mega-list-item bg-transparent py-[length:var(--header-two-mega-list-item-padding-y)] px-[length:var(--header-two-mega-list-item-padding-x)]${l&&r?" active":""}`,onMouseEnter:()=>C(r?e.label:null),children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[length:var(--header-two-mega-sub-row-gap)]",children:[e.href?(0,t.jsx)(v,{href:e.href,target:e.target,className:`${p} min-w-0 flex-1`,children:e.label}):(0,t.jsx)("span",{className:`${p} min-w-0 flex-1`,children:e.label}),r&&(0,t.jsx)(a.ArrowIcon,{className:`h-[length:var(--header-two-mega-chevron-left-size)] w-[length:var(--header-two-mega-chevron-left-size)] shrink-0 rtl:rotate-180 ${l?"text-[var(--header-two-link-outline-text)]":"text-[var(--header-two-top-deep-color)]"}`,"aria-hidden":!0})]})},e.label)})})]}),(0,t.jsx)("div",{className:o?.children.length?`mega-col col-middle ${g}`:"mega-col col-middle",children:o?.children.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:m,children:o.label}),(0,t.jsx)("div",{className:`active overflow-y-auto ${h}`,children:o.children.map(e=>(0,t.jsx)(v,{href:e.href??"/",target:e.target,className:"h1s-mega-sublink block bg-transparent py-[length:var(--header-two-mega-sub-link-padding-y)] px-[length:var(--header-two-mega-sub-link-padding-x)]! text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mega-sub-link-color)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]",children:e.label},e.label))})]}):(0,t.jsx)("div",{"aria-hidden":!0})}),(0,t.jsx)(x,{items:(n=(i=r).marketInsightPosts)&&n.length>0?("Company"===i.label?n.slice(0,2):n).map(e=>({id:e.id,href:e.url,title:e.title,date:(0,c.formatMegaInsightDate)(e.publishedAt??""),imageSrc:e.thumbnailUrl??e.featuredImageUrl??"",imageAlt:e.title})):[]})]})},s)}):null]})}e.s(["HeaderOneMainNav",()=>b])},452983,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),l=e.i(173888),i=e.i(235441);function n(e){let t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:void 0}function s(e){let t="string"==typeof e.origin?e.origin.trim():"",a="str
140ing"==typeof e.destination?e.destination.trim():"",r="string"==typeof e.chemical?e.chemical.trim():"",l="string"==typeof e.hs_code?e.hs_code.trim():"",i=n(e.volume_mt),s=n(e.value_usd);return t&&a&&r&&void 0!==i&&void 0!==s?{origin:t,destination:a,chemical:r,hsCode:l,volumeMt:i,valueUsd:s}:null}function o({flow:e,onChange:a,labels:l}){let i=(0,r.useTranslations)();return(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-1.5",children:["X","M"].map(r=>{let n=e===r;return(0,t.jsx)("button",{type:"button",onClick:()=>a(r),className:"rounded-[var(--radius-card-sm,8px)] border px-3 py-1.5 text-[11px] font-[var(--font-weight-bold)] transition-colors duration-200 ease-out",style:{backgroundColor:n?"var(--market-spread-trade-lanes-toggle-active-bg)":"var(--market-spread-trade-lanes-toggle-inactive-bg)",color:n?"var(--market-spread-trade-lanes-toggle-active-color)":"var(--market-spread-trade-lanes-toggle-inactive-color)",borderColor:n?"var(--market-spread-trade-lanes-toggle-active-bg)":"var(--market-spread-trade-lanes-toggle-border-color)"},"aria-pressed":n,children:"X"===r?l?.exports??i("market_spread_exports"):l?.imports??i("market_spread_imports")},r)})})}function c({heading:e,subheading:n,initialData:c,labels:d}){let u=(0,r.useTranslations)(),[m,h]=(0,a.useState)(c),[p,g]=(0,a.useState)(c?.flow??"X"),[v,x]=(0,a.useState)(!1),{selectedYear:b}=(0,i.useMarketSpreadYear)();if((0,a.useEffect)(()=>{let e=b??m?.year??null;if(null===e||e===m?.year&&p===m?.flow)return;let t=!1;return x(!0),fetch(`/api/trade/trade-lanes?year=${e}&flow=${p}`).then(e=>e.ok?e.json():null).then(e=>{if(!t&&e?.success){var a;let t,r=(t=(a=e.data)&&"object"==typeof a?a:null)&&"number"==typeof t.year?{year:t.year,flow:"M"===t.flow?"M":"X",lanes:Array.isArray(t.lanes)?t.lanes.map(s).filter(e=>null!==e):[]}:null;r&&h(r)}}).catch(()=>{}).finally(()=>{t||x(!1)}),()=>{t=!0}},[b,p]),!m)return null;let f=m.lanes,w=Math.max(...f.map(e=>e.volumeMt),1);return(0,t.jsx)("section",{className:"bg-[var(--market-spread-trade-lanes-bg-color)]",children:(0,t.jsxs)("div",{className:"layout-container",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-[length:var(--market-spread-trade-lanes-heading-size-mobile)] leading-[var(--market-spread-trade-lanes-heading-line-mobile)] font-[var(--market-spread-trade-lanes-heading-weight)] text-[var(--market-spread-trade-lanes-heading-color)] md:text-[length:var(--market-spread-trade-lanes-heading-size-desktop)] md:leading-[var(--market-spread-trade-lanes-heading-line-desktop)]",children:e}),n?(0,t.jsx)("p",{className:"mt-[var(--market-spread-trade-lanes-header-gap)] max-w-[720px] text-[length:var(--market-spread-trade-lanes-subheading-size)] leading-[var(--market-spread-trade-lanes-subheading-line)] font-[var(--market-spread-trade-lanes-subheading-weight)] text-[var(--market-spread-trade-lanes-subheading-color)]",children:n}):null]}),(0,t.jsx)(o,{flow:p,onChange:g,labels:d})]}),(0,t.jsxs)("div",{className:`rounded-[var(--market-spread-trade-lanes-card-radius)]
141          border border-[var(--market-spread-trade-lanes-card-border-color)]
142          bg-[var(--market-spread-trade-lanes-card-bg)]
143          p-[var(--market-spread-trade-lanes-card-padding-mobile)]
144          [box-shadow:var(--market-spread-trade-lanes-card-shadow)]
145          transition-shadow duration-300 ease-out
146          hover:[box-shadow:var(--market-spread-trade-lanes-card-hover-shadow)]
147          md:p-[var(--market-spread-trade-lanes-card-padding-desktop)]
148          mt-[var(--market-spread-trade-lanes-grid-padding-top)]
149          transition-opacity duration-200 ${v?"opacity-60":"opacity-100"}`,children:[0===f.length?(0,t.jsx)("p",{className:"py-8 text-center text-[length:var(--market-spread-trade-lanes-name-size)] text-[var(--market-spread-trade-lanes-muted-color)]",children:u("market_spread_no_data")}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full min-w-[600px] border-collapse",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-[var(--market-spread-trade-lanes-row-border-color)]",children:[(0,t.jsx)("th",{className:"py-2 text-start text-[length:var(--market-spread-trade-lanes-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-trade-lanes-head-color)]",children:d?.origin??u("market_spread_origin")}),(0,t.jsx)("th",{className:"py-2 text-start text-[length:var(--market-spread-trade-lanes-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-trade-lanes-head-color)]",children:d?.destination??u("market_spread_destination")}),(0,t.jsx)("th",{className:"py-2 text-start text-[length:var(--market-spread-trade-lanes-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-trade-lanes-head-color)]",children:d?.chemical??u("market_spread_chemical")}),(0,t.jsx)("th",{className:"w-40 py-2 text-end text-[length:var(--market-spread-trade-lanes-head-size)] font-[var(--font-weight-semibold)] uppercase tracking-wide text-[var(--market-spread-trade-lanes-head-color)]",children:d?.volumeValue??u("market_spread_volume_value")})]})}),(0,t.jsx)("tbody",{children:f.map((e,a)=>{var r,i;let n=Math.max(e.volumeMt/w*100,2);return(0,t.jsxs)("tr",{className:"border-b border-[var(--market-spread-trade-lanes-row-border-color)] last:border-b-0 transition-colors duration-200 ease-out hover:bg-[var(--market-spread-trade-lanes-row-hover-bg)]",children:[(0,t.jsx)("td",{className:"py-2.5 align-middle",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[length:var(--market-spread-trade-lanes-name-size)] text-[var(--market-spread-trade-lanes-name-color)]",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:(0,l.flagEmoji)(e.origin)}),(0,t.jsx)("span",{className:"truncate",children:e.origin})]})}),(0,t.jsx)("td",{className:"py-2.5 align-middle",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[length:var(--market-spread-trade-lanes-name-size)] text-[var(--market-spread-trade-lanes-name-color)]",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"text-[var(--market-spread-trade-lanes-arrow-color)]",children:"→"}),(0,t.jsx)("span",{"aria-hidden":"true",children:(0,l.flagEmoji)(e.destination)}),(0,t.jsx)("span",{className:"truncate",children:e.destination})]})}),(0,t.jsxs)("td",{className:"py-2.5 align-middle",children:[(0,t.jsx)("p",{className:"truncate text-[length:var(--market-spread-trade-lanes-name-size)] font-[var(--font-weight-semibold)] text-[var(--market-spread-trade-lanes-name-color)]",children:e.chemical}),e.hsCode?(0,t.jsxs)("p",{className:"mt-0.5 font-mono text-[10px] text-[var(--market-spread-trade-lanes-muted-color)]",children:["HS ",e.hsCode]}):null]}),(0,t.jsx)("td",{className:"py-2.5 align-middle",children:(0,t.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,t.jsx)("span",{className:"whitespace-nowrap text-[11px] font-[var(--font-weight-bold)] text-[var(--market-spread-trade-lanes-name-color)]",children:(r=e.volumeMt)>=1e6?`${(r/1e6).toFixed(2)}M MT`:r>=1e3?`${(r/1e3).toFixed(1)}K MT`:`${r.toFixed(0)} MT`}),(0,t.jsx)("div",{className:"h-[var(--market-spread-trade-lanes-bar-height)] overflow-hidden rounded-full bg-[var(--market-spread-trade-lanes-bar-track-color)]",style:{width:"var(--market-spread-trade-lanes-bar-width)"},children:(0,t.jsx)("div",{className:"h-full rounded-full bg-[var(--market-spread-trade-lanes-bar-fill-color)] transition-[width] duration-500",style:{width:`${n}%`}})}),(0,t.jsx)("span",{className:"whitespace-nowrap text-[10px] text-[var(--market-spread-trade-lanes-muted-color)]",children:(i=e.valueUsd,new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(i))})]})})]},`${e.origin}-${e.destination}-${e.hsCode}-${a}`)})})]})}),f.length>0?(0,t.jsxs)("p",{className:"mt-3 border-t border-[var(--market-spread-trade-lanes-row-border-color)] pt-3 text-[10px] text-[var(--market-spread-trade-lanes-footnote-color)]",children:[m.year," ·"," ","X"===p?d?.exports??u("market_spread_exports"):d?.imports??u("market_spread_imports")]}):null]})]})})}e.s(["MarketSpreadTradeLanesSection",()=>c],452983)},728404,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(527967);var l=e.i(18369),i=e.i(43857);function n(e){let t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:void 0}function s(e){return{value_usd:n(e?.value_usd)??0,weight_kg:n(e?.weight_kg)??0}}function o(e){return"string"==typeof e&&e.trim()?e:null}var c=e.i(235441);let d={trade_volume:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,t.jsx)("path",{d:"M3.6 9h16.8M3.6 15h16.8M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18"})]}),trade_value:(0,t.jsx)("path",{d:"M12 2v20M17 6.5C17 4.6 14.8 3.5 12 3.5S7 4.6 7 6.5s2.2 2.9 5 3.5 5 1.6 5 3.5-2.2 3-5 3-5-1.1-5-3"}),exports:(0,t.jsx)("path",{d:"M12 19V5M5 12l7-7 7 7"}),imports:(0,t.jsx)("path",{d:"M12 5v14M5 12l7 7 7-7"}),active_routes:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:"5",cy:"6",r:"2.5"}),(0,t.jsx)("circle",{cx:"19",cy:"18",r:"2.5"}),(0,t.jsx)("path",{d:"M7.5 6H14a4 4 0 0 1 0 8H10a4 4 0 0 0 0 8h.5"})]}),tracked_chemicals:(0,t.jsx)("path",{d:"M9 3h6M10 3v6.5L4.8 18a2 2 0 0 0 1.7 3h11a2 2 0 0 0 1.7-3L14 9.5V3"})};function u(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(e)}function m({cardKey:e,iconOverrideUrl:a}){return(0,t.jsx)("span",{className:"flex h-[var(--market-spread-stats-badge-size)] w-[var(--market-spread-stats-badge-size)] shrink-0 items-center justify-center rounded-full bg-[var(--market-spread-stats-badge-bg)]",children:a?(0,t.jsx)("img",{src:a,alt:"","aria-hidden":"true",className:"h-[var(--market-spread-stats-badge-icon-size)] w-[var(--market-spread-stats-badge-icon-size)] object-contain"}):(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"var(--market-spread-stats-badge-icon-color)",strokeWidth:"var(--market-spread-stats-badge-icon-stroke-width)",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"h-[var(--market-spread-stats-badge-icon-size)] w-[var(--market-spread-stats-badge-icon-size)]",children:d[e]})})}function h({cardKey:e,iconOverrideUrl:a,value:r,label:n,changePct:s,changeLabel:o}){let c,d="number"==typeof s&&Number.isFinite(s),u=d&&s>=0,h=u?l.UpArrowLongIcon:i.DownArrowLongIcon;return(0,t.jsxs)("div",{className:"market-spread-stats-cell flex h-full flex-col items-center justify-center text-center gap-[var(--market-spread-stats-cell-gap)] py-[var(--market-spread-stats-cell-padding-y)] px-[var(--market-spread-stats-cell-padding-x)]",children:[(0,t.jsx)(m,{cardKey:e,iconOverrideUrl:a}),(0,t.jsx)("p",{className:"tabular-nums text-[length:var(--market-spread-stats-value-size)] leading-[var(--market-spread-stats-value-line)] font-[var(--market-spread-stats-value-we
149ight)] text-[var(--market-spread-stats-value-color)]",children:r}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)("p",{className:"text-[length:var(--market-spread-stats-label-size)] leading-[var(--market-spread-stats-label-line)] text-[var(--market-spread-stats-label-color)]",children:n}),d?(0,t.jsxs)("p",{className:"flex items-center gap-1 text-[length:var(--market-spread-stats-change-size,11px)]",style:{color:u?"var(--market-spread-stats-change-up-color, var(--brand-success))":"var(--market-spread-stats-change-down-color, var(--brand-danger))"},children:[(0,t.jsx)(h,{"aria-hidden":"true",className:"h-3 w-3 shrink-0"}),(c=s.toLocaleString("en-US",{maximumFractionDigits:1}),s>0?`+${c}%`:`${c}%`)," ",o]}):null]})]})}function p({heading:e,subheading:l,initialData:i,embedded:d=!1,labels:m}){var p;let g=(0,r.useTranslations)(),[v,x]=(0,a.useState)(i),[b,f]=(0,a.useState)(!1),{selectedYear:w}=(0,c.useMarketSpreadYear)();if((0,a.useEffect)(()=>{if(null===w||w===v?.year)return;let e=!1;return f(!0),fetch(`/api/trade/summary?year=${w}`).then(e=>e.ok?e.json():null).then(t=>{if(!e&&t?.success){var a;let e,r=(e=(a=t.data)&&"object"==typeof a?a:null)&&"number"==typeof e.year?{year:e.year,exports:s(e.exports),imports:s(e.imports),combined:s(e.combined),trade_growth:{current_year:n(e.trade_growth?.current_year)??e.year,previous_year:n(e.trade_growth?.previous_year)??e.year-1,current_value_usd:n(e.trade_growth?.current_value_usd)??0,previous_value_usd:n(e.trade_growth?.previous_value_usd)??0,growth_pct:"number"==typeof e.trade_growth?.growth_pct?e.trade_growth.growth_pct:null},active_routes:{count:n(e.active_routes?.count)??0,display:"string"==typeof e.active_routes?.display?e.active_routes.display:"0+",year:n(e.active_routes?.year)??e.year},tracked_chemicals:{count:n(e.tracked_chemicals?.count)??0,display:"string"==typeof e.tracked_chemicals?.dis
149play?e.tracked_chemicals.display:"0"},card_icons:{trade_volume:o(e.card_icons?.trade_volume),trade_value:o(e.card_icons?.trade_value),exports:o(e.card_icons?.exports),imports:o(e.card_icons?.imports),active_routes:o(e.card_icons?.active_routes),tracked_chemicals:o(e.card_icons?.tracked_chemicals)}}:null;r&&x(r)}}).catch(()=>{}).finally(()=>{e||f(!1)}),()=>{e=!0}},[w]),!v)return null;let y="number"==typeof v.trade_growth?.growth_pct?v.trade_growth.growth_pct:null,j=v.trade_growth?.previous_year?g("market_spread_vs_year",{year:v.trade_growth.previous_year}):void 0;return(0,t.jsx)("section",{className:d?"bg-transparent p-0":"bg-[var(--market-spread-stats-bg-color)]",children:(0,t.jsxs)("div",{className:"layout-container",children:[d?null:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-[length:var(--market-spread-stats-heading-size-mobile)] leading-[var(--market-spread-stats-heading-line-mobile)] font-[var(--market-spread-stats-heading-weight)] text-[var(--market-spread-stats-heading-color)] md:text-[length:var(--market-spread-stats-heading-size-desktop)] md:leading-[var(--market-spread-stats-heading-line-desktop)]",children:e}),l?(0,t.jsx)("p",{className:"mt-[var(--market-spread-stats-header-gap)] max-w-[720px] text-[length:var(--market-spread-stats-subheading-size)] leading-[var(--market-spread-stats-subheading-line)] font-[var(--market-spread-stats-subheading-weight)] text-[var(--market-spread-stats-subheading-color)]",children:l}):null]}),(0,t.jsx)("div",{className:`overflow-hidden
150          rounded-[var(--market-spread-stats-panel-radius)]
151          border border-[var(--market-spread-stats-panel-border-color)]
152          bg-[var(--market-spread-stats-panel-bg)]
153          [box-shadow:var(--market-spread-stats-panel-shadow)]
154          ${d?"":"mt-[var(--market-spread-stats-grid-padding-top)]"}`,children:(0,t.jsxs)("div",{className:`grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6
155            transition-opacity duration-200 ${b?"opacity-60":"opacity-100"}`,children:[(0,t.jsx)(h,{cardKey:"trade_volume",iconOverrideUrl:v.card_icons.trade_volume,value:(p=v.combined.weight_kg,`${new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(p/1e3)} MT`),label:m?.totalTradeVolume??g("market_spread_total_trade_volume"),changePct:y,changeLabel:j}),(0,t.jsx)(h,{cardKey:"trade_value",iconOverrideUrl:v.card_icons.trade_value,value:u(v.combined.value_usd),label:m?.totalTradeValue??g("market_spread_total_trade_value"),changePct:y,changeLabel:j}),(0,t.jsx)(h,{cardKey:"exports",iconOverrideUrl:v.card_icons.exports,value:u(v.exports.value_usd),label:m?.totalExportsValue??g("market_spread_total_exports_value"),changePct:y,changeLabel:j}),(0,t.jsx)(h,{cardKey:"imports",iconOverrideUrl:v.card_icons.imports,value:u(v.imports.value_usd),label:m?.totalImportsValue??g("market_spread_total_imports_value"),changePct:y,changeLabel:j}),(0,t.jsx)(h,{cardKey:"active_routes",iconOverrideUrl:v.card_icons.active_routes,value:v.active_routes.display,label:m?.activeTradeRoutes??g("market_spread_active_trade_routes")}),(0,t.jsx)(h,{cardKey:"tracked_chemicals",iconOverrideUrl:v.card_icons.tracked_chemicals,value:v.tracked_chemicals.display,label:m?.totalTrackedChemicals??g("market_spread_total_tracked_chemicals")})]})})]})})}e.s(["MarketSpreadStatsSection",()=>p],728404)},960261,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(861745),l=e.i(948148);e.i(79951);var i=e.i(76209),n=e.i(614326);e.i(527967);var s=e.i(830167),o=e.i(659544),c=e.i(134962),d=e.i(329078),u=e.i(450020),m=e.i(902312),h=e.i(620620),p=e.i(723178),g=e.i(338843),v=e.i(200853),x=e.i(718631),b=e.i(770002),f=e.i(389616);let w="contact-us-form-select mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-input-height)] w-full rounded-[var(--contact-us-form-input-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] text-start text-[var(--contact-us-form-input-text-color)] focus:border-[color:var(--contact-us-form-input-focus-border)] outline-none flex items-center appearance-none pe-[var(--contact-us-form-select-padding-right)]",y="mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-input-height)] w-full rounded-[var(--contact-us-form-input-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] text-start text-[var(--contact-us-form-input-text-color)] placeholder:text-[var(--contact-us-form-input-placeholder-color)] focu
155s:border-[color:var(--contact-us-form-input-focus-border)] outline-none",j="block text-start text-[var(--contact-us-form-label-color)] font-[var(--contact-us-form-label-weight)] leading-[var(--contact-us-form-label-line-height)] text-[length:var(--contact-us-form-label-size)]",N=new Set(["request-for-quotation","become-our-supplier"]),_=new Set(["00N0a00000DJgXK"]);function k({htmlFor:e,label:a,required:r}){return a.trim()?(0,t.jsxs)("label",{htmlFor:e,className:j,children:[a,r?(0,t.jsx)("span",{className:"text-red-500",children:"*"}):null]}):null}function C({parsedEmbed:e,recaptchaSiteKey:C,prefill:S=f.EMPTY_CONTACT_FORM_PREFILL}){let L=e.forms,[I,z]=(0,a.useState)(L[0]?.key??""),[A,q]=(0,a.useState)(!1),E=(0,m.useHasAuthSession)(),$=(0,r.useLocale)(),P=(0,l.useTranslations)(),T=(0,i.usePathname)(),{formRef:M,showSuccess:O,captchaError:F,handleSubmit:R,handleIframeLoad:B,dismissSuccess:D}=(0,p.useSalesforceIframeFormSubmit)(C),H=(0,a.useMemo)(()=>L.find(e=>e.key===I)??L[0],[I,L]),{selectedCountry:U,handleUserCountrySelect:G,resetUserSelection:W}=(0,h.useSalesforceCountrySync)((0,u.resolveInitialCountryIso)(H?.visibleFields??[],S));if(!H)return null;let V=`${T}${window.location.search}`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{name:"sf_contact_multi_iframe",title:"form submission target",className:"hidden",onLoad:B}),(0,t.jsx)("form",{ref:M,action:H.action,method:H.method,target:"sf_contact_multi_iframe",onSubmit:R,onReset:W,className:"overflow-visible [border-width:var(--contact-us-form-border-width)] border-[color:var(--contact-us-form-border-color)] rounded-[var(--contact-us-form-radius)] py-[var(--contact-us-form-padding-y-mobile)] px-[var(--contact-us-form-padding-x-mobile)] md:p-[var(--contact-us-form-padding-desktop)]",children:(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--contact-us-form-field-gap)]",children:[H.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"contact-us-inquiry-type",className:j,children:[P("contact_help_question"),(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{id:"contact-us-inquiry-type",value:H.key,required:!0,className:w,onChange:e=>{var t,a;(a=t=e.target.value,N.has(a)&&!E)?q(!0):(W(),z(t))},children:L.map(e=>(0,t.jsx)("option",{value:e.key,children:(0,g.localizeContactFormLabel)(e.key,e.label,P)},e.key))}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--contact-us-form-select-arrow-right)] flex items-center",children:(0,t.jsx)(s.ArrowIcon,{className:"h-[var(--contact-us-form-select-arrow-size)] w-[var(--contact-us-form-select-arrow-size)] rotate-90 text-[var(--contact-us-form-select-arrow-color)]"})})]})]}),(0,f.withPersonalPrefillGate)(H.visibleFields).map(({field:e,allowPersonalPrefill:a},r)=>(function(e,a,r,l,i,n,o,d,m){if("heading"===e.type)return(0,t.jsx)("h3",{className:"m-0 text-start text-[length:var(--contact-us-form-label-size)] font-[var(--contact-us-form-label-weight)] leading-[var(--contact-us-form-label-line-height)] text-[var(--contact-us-form-label-color)] pt-2",children:(0,g.localizeContactText)(e.text,m)},a);let h=(0,u.resolveFieldPrefillValue)({name:e.name,id:e.id,label:e.label,options:"select"===e.type?e.options:void 0,prefill:l,allowPersonalPrefill:i}),p=(0,g.localizeContactText)(e.label,m);if("select"===e.type){let r=(0,u.isCountryDialCodeField)(e.options),l=r?(0,u.getFullCountryDialCodeOptions)():e.options;return(0,t.jsxs)("div",{children:[(0,t.jsx)(k,{htmlFor:e.id,label:p,required:e.required}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{name:e.name,id:e.id,required:e.required,defaultValue:h,onChange:r?e=>o((0,u.isoCountryForDialCodeOption)(e.target.value)):void 0,className:w,children:[(0,t.jsx)(b.SalesforceSelectPlaceholderOption,{}),l.map(e=>(0,t.jsx)("option",{value:e.value,children:(0,g.localizeContactOption)(e,d,m,"isoCountry"in e&&"string"==typeof e.isoCountry?e.isoCountry:void 0)},e.value))]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--contact-us-form-select-arrow-right)] flex items-center",children:(0,t.jsx)(s.ArrowIcon,{className:"h-[var(--contact-us-form-select-arrow-size)] w-[var(--contact-us-form-select-arrow-size)] rotate-90 text-[var(--contact-us-form-select-arrow-color)]"})})]})]},a)}return"textarea"===e.type?(0,t.jsxs)("div",{children:[(0,t.jsx)(k,{htmlFor:e.id,label:p,required:e.required}),(0,t.jsx)("textarea",{id:e.id,name:e.name,rows:e.rows,required:e.required,placeholder:p||"",className:"mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-textarea-height)] w-full rounded-[var(--contact-us-form-textarea-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] py-3 text-start text-[var(--contact-us-form-input-text-color)] placeholder:text-[var(--contact-us-form-input-placeholder-color)] focu
155s:border-[color:var(--contact-us-form-input-focus-border)] outline-none"})]},a):"phone"!==e.name&&"mobile"!==e.name||e.required?!function(e,t){if("request-for-quotation"!==e||"input"!==t.type)return!1;let a=t.label.replace(/\s+/g," ").trim().toLowerCase();return"product name"===a||"product"===a||a.startsWith("product name")||_.has(t.name)}(r,e)?(0,t.jsxs)("div",{children:[(0,t.jsx)(k,{htmlFor:e.id,label:p,required:e.required}),(0,t.jsx)("input",{type:e.inputType,id:e.id,name:e.name,maxLength:e.maxLength,required:e.required,placeholder:p||"",defaultValue:h,className:y})]},a):(0,t.jsxs)("div",{className:"relative overflow-visible",children:[(0,t.jsx)(k,{htmlFor:e.id,label:p,required:e.required}),(0,t.jsx)(c.ProductNameAutocompleteInput,{id:e.id,name:e.name,required:e.required,maxLength:e.maxLength,placeholder:p||"",className:y,listClassName:"contact-us-product-suggestions absolute start-0 top-full z-[30] mt-1 max-h-[220px] w-full overflow-y-auto py-1",itemClassName:"contact-us-product-suggestion block w-full text-start transition-colors",activeItem
155ClassName:"is-active"})]},a):(0,t.jsx)(x.PhoneInputWithDialCode,{name:e.name,id:e.id,label:p||void 0,defaultValue:h,country:n},a)})(e,`${H.key}-${e.type}-${r}`,H.key,S,a,U,G,$,P)),C?(0,t.jsx)(d.RecaptchaWidget,{siteKey:C,eager:!0}):null,(0,t.jsxs)("div",{className:"contact-us-form-actions cursor-pointer mt-[var(--contact-us-form-submit-margin-top)] flex items-center gap-3 justify-end",children:[F?(0,t.jsx)("p",{className:"text-start text-[length:var(--contact-us-form-label-size)] font-[var(--contact-us-form-label-weight)] text-[var(--contact-us-form-error-color)]",children:F}):null,(0,t.jsx)(o.Button,{variant:"primary",type:"submit",className:"px-10",children:P("submit")})]})]})},H.key),(0,t.jsx)(n.default,{isOpen:A,onClose:()=>q(!1),returnPathAfterAuth:V}),(0,t.jsx)(v.ContactFormSuccessModal,{isOpen:O,onClose:D})]})}e.s(["SalesforceContactMultiEmbedForm",()=>C])},803273,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303),l=e.i(861745),i=e.i(647898);function n({siteKey:e}){let n=(0,l.useLocale)(),s=(0,i.toRecaptchaHl)(n),o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(!1),[u,m]=(0,a.useState)(1),[h,p]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(d.current||h)return;let e=()=>{d.current||(d.current=!0,p(!0))},t=()=>window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0;if(t()>=100)return void e();let a=()=>{100>t()||(e(),window.removeEventListener("scroll",a))};return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[h]),(0,a.useEffect)(()=>{let e=()=>{m(Math.min(1,(o.current?.offsetWidth??304)/304))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(!h)return;let t=c.current;if(t)return(0,i.bindExplicitRecaptcha)(t,e,{hl:s})},[h,e,s]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(r.default,{id:`recaptcha-api-${s}`,src:(0,i.recaptchaExplicitSrc)(s),strategy:"afterInteractive"}),(0,t.jsx)("div",{ref:o,className:"w-full overflow-hidden",style:{height:`${78*u}px`},children:(0,t.jsx)("div",{ref:c,className:"g-recaptcha origin-top-left rtl:origin-top-right",style:{transform:`scale(${u})`}},s)})]})}e.s(["RecaptchaWidget",()=>n])},142416,e=>{e.v({banner:"BannerSectionOne-module__HP8oCW__banner",quantityGroup:"BannerSectionOne-module__HP8oCW__quantityGroup",rfqBanner:"BannerSectionOne-module__HP8oCW__rfqBanner",rfqDescription:"BannerSectionOne-module__HP8oCW__rfqDescription",rfqField:"BannerSectionOne-module__HP8oCW__rfqField",rfqFieldStretch:"BannerSectionOne-module__HP8oCW__rfqFieldStretch",rfqForm:"BannerSectionOne-module__HP8oCW__rfqForm",rfqFormArea:"BannerSectionOne-module__HP8oCW__rfqFormArea",rfqFormColActions:"BannerSectionOne-module__HP8oCW__rfqFormColActions",rfqFormColFields:"BannerSectionOne-module__HP8oCW__rfqFormColFields",rfqFormColMessage:"BannerSectionOne-module__HP8oCW__rfqFormColMessage",rfqFormMessage:"BannerSectionOne-module__HP8oCW__rfqFormMessage",rfqFormMessageError:"BannerSectionOne-module__HP8oCW__rfqFormMessageError",rfqFormMessageSuccess:"BannerSectionOne-module__HP8oCW__rfqFormMessageSuccess",rfqFormMessages:"BannerSectionOne-module__HP8oCW__rfqFormMessages",rfqHeader:"BannerSectionOne-module__HP8oCW__rfqHeader",rfqInput:"BannerSectionOne-module__HP8oCW__rfqInput",rfqLabel:"BannerSectionOne-module__HP8oCW__rfqLabel",rfqRecaptcha:"BannerSectionOne-module__HP8oCW__rfqRecaptcha",rfqSelect:"BannerSectionOne-module__HP8oCW__rfqSelect",rfqSubmit:"BannerSectionOne-module__HP8oCW__rfqSubmit",rfqTextarea:"BannerSectionOne-module__HP8oCW__rfqTextarea",rfqTextareaStretch:"BannerSectionOne-module__HP8oCW__rfqTextareaStretch",rfqTitle:"BannerSectionOne-module__HP8oCW__rfqTitle",uomSelectArrow:"BannerSectionOne-module__HP8oCW__uomSelectArrow",uomSelectArrowIcon:"BannerSectionOne-module__HP8oCW__uomSelectArrowIcon",uomSelectWrap:"BannerSectionOne-module__HP8oCW__uomSelectWrap"})},743475,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(716787);var r=e.i(659544);e.i(527967);var l=e.i(830167),i=e.i(203286),n=e.i(803273),s=e.i(647898),o=e.i(142416);function c({parsedEmbed:e,recaptchaSiteKey:c,productNamePlaceholder:d,quantityPlaceholder:u,emailPlaceholder:m,messagesPlaceholder:h,uomPlaceholder:p,uomAriaLabel:g,submitLabel:v,submitAriaLabel:x,successMessage:b,productNameLabel:f,quantityLabel:w,emailLabel:y,messageLabel:j}){let{emailInputRef:N}=(0,i.useAuthEmailPrefill)(),[_,k]=(0,a.useState)(!1),[C,S]=(0,a.useState)(null),L=(0,a.useRef)(!1),I=(0,a.useRef)(null);(0,a.useEffect)(()=>
155{if(!C||!c)return;let e=window.setInterval(()=>{let e=I.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&S(null)},400);return()=>window.clearInterval(e)},[C,c]);let z=e.visibleFields,A=z.find(e=>"product"===e.role),q=z.find(e=>"qty"===e.role),E=z.find(e=>"uom"===e.role),$=z.find(e=>"email"===e.role),P=z.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){L.current&&(L.current=!1,I.current?.reset(),(0,s.resetRecaptcha)(I.current),S(null),k(!0),setTimeout(()=>k(!1),4e3))}}),(0,t.jsxs)("form",{ref:I,className:o.default.rfqForm,action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(c){let t=I.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),L.current=!1,k(!1),S("Please complete reCAPTCHA.");return}S(null)}L.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("div",{className:o.default.rfqFormColFields,children:[A?(0,t.jsxs)("div",{className:o.default.rfqField,children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:A.id,children:f}),(0,t.jsx)("input",{type:"text",id:A.id,name:A.name,required:!0,placeholder:d,className:o.default.rfqInput})]}):null,E?(0,t.jsxs)("div",{className:o.default.rfqField,children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:q?.id??E.id,children:w}),(0,t.jsxs)("div",{className:o.default.quantityGroup,children:[q?(0,t.jsx)("input",{type:"text",id:q.id,name:q.name,required:!0,placeholder:u,className:o.default.rfqInput}):null,(0,t.jsxs)("div",{className:o.default.uomSelectWrap,children:[(0,t.jsxs)("select",{id:E.id,name:E.name,required:!0,defaultValue:"","aria-label":g,className:o.default.rfqSelect,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:p}),E.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)("span",{className:o.default.uomSelectArrow,"aria-hidden":!0,children:(0,t.jsx)(l.ArrowIcon,{className:o.default.uomSelectArrowIcon})})]})]})]}):null,$?(0,t.jsxs)("div",{className:o.default.rfqField,children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:$.id,children:y}),(0,t.jsx)("input",{ref:N,type:"email",id:$.id,name:$.name,maxLength:$.maxLength,required:!0,placeholder:m,className:o.default.rfqInput})]}):null]}),P?(0,t.jsx)("div",{className:o.default.rfqFormColMessage,children:(0,t.jsxs)("div",{className:`${o.default.rfqField} ${o.default.rfqFieldStretch}`,children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:P.id,children:j}),(0,t.jsx)("textarea",{id:P.id,name:P.name,rows:P.rows,placeholder:h,className:`${o.default.rfqTextarea} ${o.default.rfqTextareaStretch}`})]})}):null,(0,t.jsxs)("div",{className:o.default.rfqFormColActions,children:[c?(0,t.jsx)("div",{className:o.default.rfqRecaptcha,children:(0,t.jsx)(n.RecaptchaWidget,{siteKey:c})}):null,(0,t.jsx)(r.Button,{variant:"primary",type:"submit","aria-label":x,className:o.default.rfqSubmit,children:v})]}),(_||C)&&(0,t.jsx)("div",{className:o.default.rfqFormMessages,children:_?(0,t.jsx)("p",{className:`${o.default.rfqFormMessage} ${o.default.rfqFormMessageSuccess}`,children:b||"Thank you! We'll be in touch."}):C?(0,t.jsx)("p",{className:`${o.default.rfqFormMessage} ${o.default.rfqFormMessageError}`,children:C}):null})]})]})}e.s(["SalesforceEmbedForm",()=>c])},549255,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(527967);var l=e.i(18369),i=e.i(305119),i=i,n=e.i(456836),n=n,s=e.i(572111),s=s,o=e.i(235441);function c(e){let t="number"==typeof e?e:Number(e);return Number.isFinite(t)?t:void 0}function d(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(e)}function u(e){return e>=1e6?`${(e/1e6).toFixed(2)}M MT`:e>=1e3?`${(e/1e3).toFixed(1)}K MT`:`${e.toFixed(0)} MT`}function m(e){let t=e.toLocaleString("en-US",{maximumFractionDigits:1});return e>0?`+${t}%`:`${t}%`}function h({icon:e,accentVar:a,iconColorClassName:r,title:l,children:i}){return(0,t.jsxs)("article",{className:"flex min-h-[168px] flex-col gap-3 rounded-[var(--market-spread-trade-insights-card-radius)] bg-[var(--market-spread-trade-insights-card-bg)] p-[var(--market-spread-trade-insights-card-padding)] [box-shadow:var(--market-spread-trade-insights-card-shadow)] transition-shadow duration-300 ease-out hover:[box-shadow:var(--market-spread-trade-insights-card-hover-shadow)]",style:{borderTop:`3px solid var(${a})`},children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full",style:{backgroundColor:`color-mix(in srgb, var(${a}) 15%, transparent)`},children:(0,t.jsx)(e,{"aria-hidden":"true",className:`h-4.5 w-4.5 ${r}`})}),(0,t.jsx)("h3",{className:"text-[length:var(--market-spread-trade-insights-card-title-size)] font-[var(--font-weight-semibold)] text-[var(--market-spread-trade-insights-card-title-color)]",children:l})]}),i]})}function p({label:e}){let a=(0,r.useTranslations)();return(0,t.jsx)("p",{className:"text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-empty-color)]",children:e??a("market_spread_not_enough_data")})}function g({heading:e,subheading:g,initialData:v,labels:x}){var b;let f,w=(0,r.useTranslations)(),[y,j]=(0,a.useState)(v),[N,_]=(0,a.useState)(!1),{selectedYear:k}=(0,o.useMarketSpreadYear)();if((0,a.useEffect)(()=>
155{if(null===k||k===y?.year)return;let e=!1;return _(!0),fetch(`/api/trade/insights?year=${k}`).then(e=>e.ok?e.json():null).then(t=>{if(!e&&t?.success){var a;let e,r=(e=(a=t.data)&&"object"==typeof a?a:null)&&"number"==typeof e.year?{year:e.year,risingRoute:function(e){if(!e)return null;let t="string"==typeof e.origin?e.origin.trim():"",a="string"==typeof e.destination?e.destination.trim():"",r=c(e.growth_pct),l=c(e.current_volume_mt),i=c(e.previous_volume_mt);return t&&a&&void 0!==r&&void 0!==l&&void 0!==i?{origin:t,destination:a,growthPct:r,currentVolumeMt:l,previousVolumeMt:i,topProductName:"string"==typeof e.top_product?.display_name?e.top_product.display_name.trim():"",topProductHsCode:"string"==typeof e.top_product?.hs_code?e.top_product.hs_code.trim():""}:null}(e.rising_route??null),marketOpportunity:function(e){if(!e)return null;let t="string"==typeof e.display_name?e.display_name.trim():"",a=c(e.growth_pct),r=c(e.current_volume_mt),l=c(e.previous_volume_mt);return t&&void 0!==a&&void 0!==r&&void 0!==l?{displayName:t,hsCode:"string"==typeof e.hs_code?e.hs_code.trim():"",growthPct:a,currentVolumeMt:r,previousVolumeMt:l}:null}(e.market_opportunity??null),priceVariance:function(e){if(!e)return null;let t="string"==typeof e.chemical?e.chemical.trim():"",a="string"==typeof e.highest?.reporter_name?e.highest.reporter_name.trim():"",r=c(e.highest?.implied_price_usd_per_mt),l="string"==typeof e.lowest?.reporter_name?e.lowest.reporter_name.trim():"",i=c(e.lowest?.implied_price_usd_per_mt),n=c(e.spread_usd_per_mt);return t&&a&&void 0!==r&&l&&void 0!==i&&void 0!==n?{chemical:t,hsCode:"string"==typeof e.hs_code?e.hs_code.trim():"",highestCountry:a,highestPriceUsdPerMt:r,lowestCountry:l,lowestPriceUsdPerMt:i,spreadUsdPerMt:n}:null}(e.price_variance??null),topNetExporter:function(e){if(!e)return null;let t="string"==typeof e.reporter_name?e.reporter_name.trim():"",a=c(e.export_value_usd),r=c(e.import_value_usd),l=c(e.net_balance_usd);return t&&void 0!==a&&void 0!==r&&void 0!==l?{reporterName:t,exportValueUsd:a,importValueUsd:r,netBalanceUsd:l}:null}(e.top_net_exporter??null)}:null;r&&j(r)}}).catch(()=>{}).finally(()=>{e||_(!1)}),()=>{e=!0}},[k]),!y)return null;let{risingRoute:C,marketOpportunity:S,priceVariance:L,topNetExporter:I}=y;return(0,t.jsx)("section",{className:"bg-[var(--market-spread-trade-insights-bg-color)]",children:(0,t.jsxs)("div",{className:"layout-container w-full min-w-0 px-3 md:px-5",children:[(0,t.jsx)("h2",{className:"text-[length:var(--market-spread-trade-insights-heading-size-mobile)] leading-[var(--market-spread-trade-insights-heading-line-mobile)] font-[var(--market-spread-trade-insights-heading-weight)] text-[var(--market-spread-trade-insights-heading-color)] md:text-[length:var(--market-spread-trade-insights-heading-size-desktop)] md:leading-[var(--market-spread-trade-insights-heading-line-desktop)]",children:e}),g?(0,t.jsx)("p",{className:"mt-[var(--market-spread-trade-insights-header-gap)] max-w-[720px] text-[length:var(--market-spread-trade-insights-subheading-size)] leading-[var(--market-spread-trade-insights-subheading-line)] font-[var(--market-spread-trade-insights-subheading-weight)] text-[var(--market-spread-trade-insights-subheading-color)]",children:g}):null,(0,t.jsxs)("div",{className:`grid grid-cols-1 pt-[var(--market-spread-trade-insights-grid-padding-top)]
156          gap-[var(--market-spread-trade-insights-grid-gap-mobile)]
157          sm:grid-cols-2
158          xl:grid-cols-4
159          md:gap-[var(--market-spread-trade-insights-grid-gap-desktop)]
160          transition-opacity duration-200 ${N?"opacity-60":"opacity-100"}`,children:[(0,t.jsx)(h,{icon:l.UpArrowLongIcon,accentVar:"--market-spread-trade-insights-accent-rising",iconColorClassName:"text-[var(--market-spread-trade-insights-accent-rising)]",title:x?.risingRoute??w("market_spread_rising_route"),children:C?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("p",{className:"truncate text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-muted-color)]",children:[C.origin," → ",C.destination]}),(0,t.jsx)("p",{className:"text-[length:var(--market-spread-trade-insights-metric-size)] font-[var(--font-weight-bold)] text-[var(--market-spread-trade-insights-card-title-color)]",children:m(C.growthPct)}
160),(0,t.jsx)("p",{className:"text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-muted-color)]",children:w("market_spread_current_vs_previous",{current:u(C.currentVolumeMt),previous:u(C.previousVolumeMt)})}),C.topProductName?(0,t.jsx)("p",{className:"truncate text-[11px] text-[var(--market-spread-trade-insights-muted-color)]",children:w("market_spread_top_product",{name:C.topProductName})}):null]}):(0,t.jsx)(p,{label:x?.notEnoughData})}),(0,t.jsx)(h,{icon:i.default,accentVar:"--market-spread-trade-insights-accent-opportunity",iconColorClassName:"text-[var(--market-spread-trade-insights-accent-opportunity)]",title:x?.marketOpportunity??w("market_spread_market_opportunity"),children:S?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("p",{className:"truncate text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-muted-color)]",children:[S.displayName,S.hsCode?` \xb7 HS ${S.hsCode}`:""]}),(0,t.jsx)("p",{className:"text-[length:var(--market-spread-trade-insights-metric-size)] font-[var(--font-weight-bold)] text-[var(--market-spread-trade-insights-card-title-color)]",children:m(S.growthPct)}),(0,t.jsx)("p",{className:"text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-muted-color)]",children:w("market_spread_current_vs_previous",{current:u(S.currentVolumeMt),previous:u(S.previousVolumeMt)})})]}
160):(0,t.jsx)(p,{label:x?.notEnoughData})}),(0,t.jsx)(h,{icon:n.default,accentVar:"--market-spread-trade-insights-accent-price",iconColorClassName:"text-[var(--market-spread-trade-insights-accent-price)]",title:x?.priceVariance??w("market_spread_price_variance"),children:L?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"truncate text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-muted-color)]",children:L.chemical}),(0,t.jsx)("p",{className:"text-[length:var(--market-spread-trade-insights-metric-size)] font-[var(--font-weight-bold)] text-[var(--market-spread-trade-insights-card-title-color)]",children:w("market_spread_price_spread",{price:d(L.spreadUsdPerMt)})}),(0,t.jsx)("p",{className:"truncate text-[11px] text-[var(--market-spread-trade-insights-muted-color)]",children:w("market_spread_highest_price",{country:L.highestCountry,price:d(L.highestPriceUsdPerMt)})}),(0,t.jsx)("p",{className:"truncate text-[11px] text-[var(--market-spread-trade-insights-muted-color)]",children:w("market_spread_lowest_price",{country:L.lowestCountry,price:d(L.lowestPriceUsdPerMt)})})]}
160):(0,t.jsx)(p,{label:x?.notEnoughData})}),(0,t.jsx)(h,{icon:s.default,accentVar:"--market-spread-trade-insights-accent-exporter",iconColorClassName:"text-[var(--market-spread-trade-insights-accent-exporter)]",title:x?.topNetExporter??w("market_spread_top_net_exporter"),children:I?(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"truncate text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-muted-color)]",children:I.reporterName}),(0,t.jsx)("p",{className:"text-[length:var(--market-spread-trade-insights-metric-size)] font-[var(--font-weight-bold)] text-[var(--market-spread-trade-insights-card-title-color)]",children:(f=d(Math.abs(b=I.netBalanceUsd)),b>0?`+${f}`:b<0?`-${f}`:f)}),(0,t.jsx)("p",{className:"text-[length:var(--body-small-size)] text-[var(--market-spread-trade-insights-muted-color)]",children:w("market_spread_exports_imports_summary",{exports:d(I.exportValueUsd),imports:d(I.importValueUsd)})})]}):(0,t.jsx)(p,{label:x?.notEnoughData})})]})]})})}e.s(["MarketSpreadTradeInsightsSection",()=>g],549255)},63784,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(657688);e.i(716787);var i=e.i(659544);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(22584),c=e.i(902312),d=e.i(160741
160),u=e.i(578938),m=e.i(106446),h=e.i(416808),p=e.i(948148);let g="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]",v="h-[length:var(--header-two-mobile-chevron-left-size)] w-[length:var(--header-two-mobile-chevron-left-size)] shrink-0 text-[var(--header-two-mobile-nav-arrow-color)] rtl:rotate-180";function x({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}function b({href:e,children:a,onNavigate:r,target:l}){let i=e.startsWith("http")||"_blank"===l,s="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]";return i?(0,t.jsx)("a",{href:e,className:s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a}):(0,t.jsx)(n.Link,{href:e,className:s,onClick:r,children:a})}function f({open:e,panel:f,onClose:w,setPanel:y,utilityActions:j=[],logo:N,cmsCategoryLinks:_,cmsNav:k=[],fancy:C=!1}){let S=(0,p.useTranslations)(),L=(0,n.useRouter)(),I=(0,c.useHasAuthSession)(),[z,A]=(0,s.useState)([]),q=k.length>0,E=(0,s.useMemo)(()=>j.find(e=>!(0,d.isAuthUtilityHref)(e.href)&&"primary"===e.type),[j]),$=(0,s.useMemo)(()=>(function(e,t){let a=e,r=null;for(let e of t){if(!(r=a[e]??null))return null;a=r.children}return r})(k,z),[k,z]),P=0===z.length?k:$?.children??[],T=q&&z.length>0,M=_&&_.length>0?_:[],O=(0,s.useCallback)(()=>{T?A(e=>e.slice(0,-1)):"industry-list"===f?y("products"):"market-trends"===f?y("market"):"account"===f?y("main"):"main"!==f&&y("main")},[T,f,y]),F=(0,s.useCallback)(()=>{A([]),w()},[w]),R=(0,s.useCallback)(()=>{let e=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(u.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,u.clearAuthSession)(),F(),(0,u.isAuthRequiredCommunityRoute)(e)||L.replace(o.routes.homePage)},[F,L]),B="main"===f&&!T,D=I?(0,u.getAuthDisplayProfile)():null,H=I?(0,u.getAuthProfileFormPrefill)().avatarUrl:null;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-overlay)] bg-[var(--header-two-overlay)]","aria-hidden":!0,onClick:F}),(0,t.jsxs)("aside",{className:`fixed start-0 top-0 z-[var(--header-two-z-sidebar)] flex h-dvh w-[var(--header-two-sidebar-width)] max-w-full flex-col overflow-hidden bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-sidebar-shadow)] transition-transform ease-in-out [transition-duration:var(--header-two-sidebar-transition-duration)] ${e?"translate-x-0":"-translate-x-full rtl:translate-x-full"}`,"data-open":e?"true":"false","aria-modal":!0,role:"dialog","aria-label":S("menu"),children:[(0,t.jsxs)("div",{className:`flex shrink-0 items-center justify-between px-[var(--header-two-mobile-header-padding-x-mobile)] md:px-[var(--header-two-mobile-header-padding-x-desktop)] py-[var(--header-two-mobile-header-padding-y-mobile)] md:py-[var(--header-two-mobile-header-padding-y-desktop)] ${C?"bg-[var(--h1f-nav-drawer-header-bg)]":"bg-[var(--header-two-top-bg)]"}`,children:[(0,t.jsx)(n.Link,{href:N.href,onClick:F,children:(0,t.jsx)(l.default,{src:N.darkSrc??N.src,alt:N.alt,width:163,height:60,sizes:"163px",className:"h-[length:var(--header-two-mobile-logo-height)] w-auto object-contain",style:{width:"auto",height:"auto"}})}),(0,t.jsx)("button",{type:"button",className:"border-0 bg-transparent p-[var(--header-two-mobile-close-button-padding)]","aria-label":S("close_menu"),onClick:F,children:(0,t.jsx)(r.ClearIcon,{className:`w-6 h-6 ${C?"text-[var(--h1f-nav-drawer-header-text)]":"text-[var(--header-two-top-text-color)]"}`})})]}),"main"!==f||T?(0,t.jsx)("div",{children:(0,t.jsxs)("button",{type:"button",className:"flex items-center justify-between gap-[length:var(--header-two-mobile-back-gap)] pt-[var(--header-two-mobile-back-padding-top)] px-[var(--header-two-mobile-back-padding-x)] text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-link-outline-text)]",onClick:O,children:[(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mobile-chevron-right-size)] w-[length:var(--header-two-mobile-chevron-right-size)] shrink-0 rotate-180 rtl:rotate-0 text-[var(--header-two-link-outline-text)]"}),S("back")]})}):null,(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col justify-between px-[var(--header-two-mobile-shell-padding-x)] ${!B?"pb-[var(--header-two-mobile-shell-padding-y)] pt-0":"py-[var(--header-two-mobile-shell-padding-y)]"}`,children:[(0,t.jsxs)("div",{className:"min-h-0 overflow-y-auto",children:[I&&B&&D?(0,t.jsxs)("button",{type:"button",className:"mb-0 flex w-full items-center gap-[var(--header-two-mobile-profile-gap)] border-b border-[var(--header-two-main-border)] bg-transparent pb-[length:var(--header-two-mobile-nav-item-padding-y)] text-start",onClick:()=>y("account"),children:[(0,t.jsx)("span",{className:"relative flex h-[length:var(--header-two-mobile-profile-avatar-size)] w-[length:var(--header-two-mobile-profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-white",style:H?{backgroundImage:`url(${H})`}:void 0,children:H?null:function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(D)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-semibold)] leading-[length:var(--header-two-font-line-height-regular)] text-[var(--header-two-mobile-profile-name-color)]",children:D.name}),D.email?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-mobile-profile-email-color)]",children:D.email}):null]}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):null,"account"===f?(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.profile,onNavigate:F,children:[S("my_profile"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.leads,onNavigate:F,children:[S("my_leads"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.orders,onNavigate:F,children:[S("my_orders"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`${g} text-[var(--header-two-mobile-sign-out-color)]`,onClick:R,children:[(0,t.jsx)("span",{children:S("sign_out")}),(0,t.jsx)(x,{className:"h-[length:var(--header-two-mobile-sign-out-icon-size)] w-[length:var(--header-two-mobile-sign-out-icon-size)] shrink-0 text-[var(--header-two-mobile-sign-out-color)]"})]})})]}):null,q&&"account"!==f?(0,t.jsx)("ul",{children:P.map((e,r)=>{let l=e.children.length>0,i=!!e.href;return(0,t.jsx)("li",{children:l&&i?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} subcategories`,onClick:()=>A(e=>[...e,r]),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):l?(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>A(e=>[...e,r]),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):i?(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}):(0,t.jsx)("span",{className:g,children:e.label})},`${e.label}-${r}`)})}):null,"main"!==f||q?null:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("company"),children:[S("company"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("products"),className:g,children:[S("products"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("market"),className:g,children:[S("market_insights"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("learning"),className:g,children:[S("learning_center"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.COMMUNITY_HREF,onNavigate:F,children:S("community")})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.CAREER_HREF,onNavigate:F,children:S("career")})})]}),"company"!==f||q?null:(0,t.jsx)("ul",{children:m.COMPANY_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.id))}),"products"!==f||q?null:(0,t.jsx)("ul",{children:m.PRODUCT_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:"showChevron"in e&&e.showChevron?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(n.Link,{href:e.href,className:g,onClick:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} — subcategories`,onClick:()=>y("industry-list"),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.label))}),"industry-list"!==f||q?null:(0,t.jsx)("ul",{children:M.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_LEFT_LINKS.map(e=>"subPanel"in e&&"market-trends"===e.subPanel?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("market-trends"),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]})},e.label):(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market-trends"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_TRENDS_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"learning"!==f||q?null:(0,t.jsx)("ul",{children:m.LEARNING_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))})]}),B&&j.length>0?(0,t.jsx)("div",{className:`shrink-0 pt-[var(--header-two-mobile-footer-gap)] ${C?"md:hidden":""}`,children:I&&E?(0,t.jsx)(i.Button,{variant:"primary",href:E.href,title:E.label,target:E.openInNewTab?"_blank":void 0,rel:E.openInNewTab?"noopener noreferrer":void 0,className:"w-full",onClick:F,children:E.label}):(0,t.jsx)("div",{className:"flex gap-[var(--header-two-mobile-footer-gap)]",children:(0,t.jsx)(h.HeaderUtilityActions,{actions:j,variant:"mobile",onNavigate:F})})}):null]})]})]}):null}e.s(["HeaderOneMobileSidebars",()=>f])},495746,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(468894),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(76209),s=e.i(271645),o=e.i(822492),c=e.i(780020),d=e.i(948148),u=e.i(875120);let m="h1s-mega-heading text-[length:var(--header-two-font-size-mega-heading)] font-[var(--font-weight-semibold)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--brand-black)]",h="max-h-[length:var(--header-two-mega-list-max-height)]",p="h1s-mega-link text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--brand-black)]",g="h1s-mega-col-divider border-s border-[var(--header-two-main-border)] ps-[var(--header-two-mega-insights-padding-left)]";function v({href:e,className:a,children:r,target:l,"aria-current":n,...s}){return e.startsWith("http")||"_blank"===l?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer","aria-current":n,...s,children:r}):(0,t.jsx)(i.Link,{href:e,className:a,"aria-current":n,children:r})}function x({items:e}){let a=(0,d.useTranslations)();return 0===e.length?null:(0,t.jsxs)("div",{className:`mega-col col-right ${g}`,children:[(0,t.jsx)("h4",{className:m,children:a("top_market_insights")}),e.map(e=>(0,t.jsxs)("div",{className:"h1s-mega-insight-row flex items-center justify-between gap-[var(--header-two-mega-row-gap)] pt-[length:var(--header-two-mega-column-heading-margin-bottom)] pb-[var(--header-two-mega-row-padding-bottom)]",children:[(0,t.jsxs)("div",{className:"me-[var(--header-two-mega-body-margin-end)] min-w-0 flex-1",children:[(0,t.jsx)(v,{href:e.href,className:"m-0 block p-0 text-inherit no-underline",children:(0,t.jsx)("h6",{className:"h1s-mega-insight-title m-0 mb-[var(--header-two-mega-insight-title-margin-bottom)] text-[length:var(--header-two-mega-insight-title-size)] font-[var(--header-two-mega-insight-title-weight)] leading-[var(--header-two-mega-insight-title-line-height)] text-[var(--header-two-mega-insight-title-color)]",children:e.title})}),e.date?(0,t.jsxs)("p",{className:"m-0 flex items-center gap-[var(--header-two-mega-date-icon-gap)] text-[length:var(--header-two-mega-date-size)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-mega-date-line-height)] text-[var(--header-two-mega-date-color)]",children:[(0,t.jsx)(r.CalenderIconNew,{width:16,height:16,className:"h-[var(--header-two-mega-calendar-icon-size)] w-[var(--header-two-mega-calendar-icon-size)] shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:e.date})]}):null]}),e.imageSrc?(0,t.jsx)(l.default,{src:e.imageSrc,alt:e.imageAlt,className:"h1s-mega-insight-image h-[length:var(--header-two-mega-insight-image-height)] w-[length:var(--header-two-mega-insight-image-width)] shrink-0 object-cover",width:96,height:68,sizes:"96px"}):null]},e.id??e.href))]})}function b({openMega:e,onMegaChange:r,utilityActions:l=[],navItems:i,visible:d=!0,measureLayout:b=!1,onOverflowChange:f,standard:w=!1,leadingContent:y,trailingContent:j}){let N=!!i?.length,_=(0,s.useRef)(null),k=(0,s.useRef)(null),[C,S]=(0,s.use
160State)(null),L=(0,s.useCallback)(e=>{S(null),r(e)},[r]),I=(0,s.useCallback)(()=>{r(null)},[r]);(0,s.useEffect)(()=>{let e=e=>{_.current?.contains(e.target)||r(null)},t=e=>{"Escape"===e.key&&r(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,s.useLayoutEffect)(()=>{if(!b)return void f?.(!1);let e=k.current;if(!e)return;let t=()=>{let t=e.querySelector("nav"),a=t?.querySelector("ul");if(!t||!a)return void f?.(e.scrollWidth>e.clientWidth+1);let r=t.getBoundingClientRect(),l=a.querySelectorAll(":scope > li"),i=l.item(0)?.getBoundingClientRect(),n=l.item(l.length-1)?.getBoundingClientRect();f?.(e.scrollWidth>e.clientWidth+1||!!(i&&i.left<r.left-1)||!!(n&&n.right>r.right+1))};t();let a=new ResizeObserver(t);a.observe(e);let r=e.querySelector("nav");return r&&a.observe(r),()=>a.disconnect()},[b,i,l,f]);let z=(0,n.usePathname)(),A=(0,s.useMemo)(()=>{if(!i?.length)return new Set;let e=(0,o.findActiveCmsNavItemIndex)(z,i);return null===e?new Set:new Set([`cms-${e}`])},[i,z]),q=["hidden xl:block border-b border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)]",w?"h1s-main-nav":"",!d?"max-h-0 overflow-hidden border-b-0 opacity-0 pointer-events-none":""].filter(Boolean).join(" ");if(!b&&!d)return null;let E=w?" active":" active font-[var(--font-weight-semibold)] text-[var(--header-two-nav-text-active)]";return(0,t.jsxs)("div",{className:q,ref:_,onMouseLeave:I,"aria-hidden":!d||void 0,"data-luxe-main-nav":w?"true":void 0,children:[(0,t.jsxs)("div",{ref:k,className:"h1m-primary-row mx-auto flex max-w-[var(--layout-container-max)] items-center justify-between gap-[length:var(--header-two-nav-row-gap)] px-[length:var(--header-two-nav-row-padding-x)] py-[length:var(--header-two-nav-row-padding-y)]",children:[y?(0,t.jsx)("div",{className:"h1m-primary-leading shrink-0",onMouseEnter:I,children:y}):null,(0,t.jsx)("nav",{"aria-label":"Primary",className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-nowrap items-stretch gap-[length:var(--header-two-nav-list-gap-sm)] p-0 xl:gap-[length:var(--header-two-nav-list-gap-md)]",children:N?i.map((r,l)=>{let i=`cms-${l}`,n=A.has(i);return r.children.length>0?(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:()=>L(i),children:(0,t.jsxs)("button",{type:"button",className:`inline-flex cursor-pointer items-center gap-[length:var(--header-two-mega-button-gap)] truncate border-0 bg-transparent py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?E:""}`,"aria-expanded":e===i,"aria-controls":`mega-${i}`,"aria-current":n?"true":void 0,onFocus:()=>L(i),children:[r.label,(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mega-chevron-size)] w-[length:var(--header-two-mega-chevron-size)] shrink-0 rotate-90"})]})},i):(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:I,children:(0,t.jsx)(v,{href:r.href??"/",target:r.target,className:`inline-flex items-center truncate py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?E:""}`,"aria-current":n?"page":void 0,children:r.label})},i)}):null})}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-[length:var(--header-two-nav-actions-gap)]",onMouseEnter:I,children:j??(0,t.jsx)(u.HeaderUtilityActions,{actions:l})})]}),N?i.map((r,l)=>{var i;let n,s=`cms-${l}`;if(e!==s||0===r.children.length)return null;let o=C?r.children.find(e=>e.label===C)??null:null;return(0,t.jsx)("div",{className:"h1s-mega-panel absolute z-[var(--header-two-z-mega-panel)] m-0 box-border w-full border-t border-[var(--header-two-main-border)] bg-[var(--brand-white)] [box-shadow:var(--header-two-mega-shadow)]",id:`mega-${s}`,role:"region","aria-label":`${r.label} menu`,children:(0,t.jsxs)("div",{className:"h1s-mega-grid mega-grid mx-auto grid w-full max-w-[var(--layout-container-max)] box-border [grid-template-columns:var(--header-two-mega-grid-template-columns)] px-[var(--header-two-mega-grid-padding-x)] py-[var(--header-two-mega-grid-padding-y)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:m,children:r.label}),(0,t.jsx)("ul",{className:`m-0 list-none overflow-y-auto p-0 ${h}`,children:r.children.map(e=>{let r=e.children.length>0,l=C===e.label;return(0,t.jsx)("li",{className:`h1s-mega-list-item bg-transparent py-[length:var(--header-two-mega-list-item-padding-y)] px-[length:var(--header-two-mega-list-item-padding-x)]${l&&r?" active":""}`,onMouseEnter:()=>S(r?e.label:null),children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[length:var(--header-two-mega-sub-row-gap)]",children:[e.href?(0,t.jsx)(v,{href:e.href,target:e.target,className:`${p} min-w-0 flex-1`,children:e.label}):(0,t.jsx)("span",{className:`${p} min-w-0 flex-1`,children:e.label}),r&&(0,t.jsx)(a.ArrowIcon,{className:`h-[length:var(--header-two-mega-chevron-left-size)] w-[length:var(--header-two-mega-chevron-left-size)] shrink-0 rtl:rotate-180 ${l?"text-[var(--header-two-link-outline-text)]":"text-[var(--header-two-top-deep-color)]"}`,"aria-hidden":!0})]})},e.label)})})]}),(0,t.jsx)("div",{className:o?.children.length?`mega-col col-middle ${g}`:"mega-col col-middle",children:o?.children.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"h1s-mega-heading text-[length:var(--header-two-font-size-mega-heading)] font-[var(--font-weight-semibold)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--brand-black)]",children:o.label}),(0,t.jsx)("div",{className:`active overflow-y-auto ${h}`,children:o.children.map(e=>(0,t.jsx)(v,{href:e.href??"/",target:e.target,className:"h1s-mega-sublink block bg-transparent py-[length:var(--header-two-mega-sub-link-padding-y)] px-[length:var(--header-two-mega-sub-link-padding-x)]! text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mega-sub-link-color)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]",children:e.label},e.label))})]}):(0,t.jsx)("div",{"aria-hidden":!0})}),(0,t.jsx)(x,{items:(n=(i=r).marketInsightPosts)&&n.length>0?("Company"===i.label?n.slice(0,2):n).map(e=>({id:e.id,href:e.url,title:e.title,date:(0,c.formatMegaInsightDate)(e.publishedAt??""),imageSrc:e.thumbnailUrl??e.featuredImageUrl??"",imageAlt:e.title})):[]})]})},s)}):null]})}e.s(["HeaderOneMainNav",()=>b])},506258,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(468894),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(76209),s=e.i(271645),o=e.i(822492),c=e.i(780020),d=e.i(948148),u=e.i(56106);let m="h1s-mega-heading text-[length:var(--header-two-font-size-mega-heading)] font-[var(--font-weight-semibold)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--brand-black)]",h="max-h-[length:var(--header-two-mega-list-max-height)]",p="h1s-mega-link text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--brand-black)]",g="h1s-mega-col-divider border-s border-[var(--header-two-main-border)] ps-[var(--header-two-mega-insights-padding-left)]";function v({href:e,className:a,children:r,target:l,"aria-current":n,...s}){return e.startsWith("http")||"_blank"===l?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer","aria-current":n,...s,children:r}):(0,t.jsx)(i.Link,{href:e,className:a,"aria-current":n,children:r})}function x({items:e}){let a=(0,d.useTranslations)();return 0===e.length?null:(0,t.jsxs)("div",{className:`mega-col col-right ${g}`,children:[(0,t.jsx)("h4",{className:m,children:a("top_market_insights")}),e.map(e=>(0,t.jsxs)("div",{className:"h1s-mega-insight-row flex items-center justify-between gap-[var(--header-two-mega-row-gap)] pt-[length:var(--header-two-mega-column-heading-margin-bottom)] pb-[var(--header-two-mega-row-padding-bottom)]",children:[(0,t.jsxs)("div",{className:"me-[var(--header-two-mega-body-margin-end)] min-w-0 flex-1",children:[(0,t.jsx)(v,{href:e.href,className:"m-0 block p-0 text-inherit no-underline",children:(0,t.jsx)("h6",{className:"h1s-mega-insight-title m-0 mb-[var(--header-two-mega-insight-title-margin-bottom)] text-[length:var(--header-two-mega-insight-title-size)] font-[var(--header-two-mega-insight-title-weight)] leading-[var(--header-two-mega-insight-title-line-height)] text-[var(--header-two-mega-insight-title-color)]",children:e.title})}),e.date?(0,t.jsxs)("p",{className:"m-0 flex items-center gap-[var(--header-two-mega-date-icon-gap)] text-[length:var(--header-two-mega-date-size)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-mega-date-line-height)] text-[var(--header-two-mega-date-color)]",children:[(0,t.jsx)(r.CalenderIconNew,{width:16,height:16,className:"h-[var(--header-two-mega-calendar-icon-size)] w-[var(--header-two-mega-calendar-icon-size)] shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:e.date})]}):null]}),e.imageSrc?(0,t.jsx)(l.default,{src:e.imageSrc,alt:e.imageAlt,className:"h1s-mega-insight-image h-[length:var(--header-two-mega-insight-image-height)] w-[length:var(--header-two-mega-insight-image-width)] shrink-0 object-cover",width:96,height:68,sizes:"96px"}):null]},e.id??e.href))]})}function b({openMega:e,onMegaChange:r,utilityActions:l=[],navItems:i,visible:d=!0,measureLayout:b=!1,onOverflowChange:f,standard:w=!1,leadingContent:y,trailingContent:j}){let N=!!i?.length,_=(0,s.useRef)(null),k=(0,s.useRef)(null),[C,S]=(0,s.use
160State)(null),L=(0,s.useCallback)(e=>{S(null),r(e)},[r]),I=(0,s.useCallback)(()=>{r(null)},[r]);(0,s.useEffect)(()=>{let e=e=>{_.current?.contains(e.target)||r(null)},t=e=>{"Escape"===e.key&&r(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,s.useLayoutEffect)(()=>{if(!b)return void f?.(!1);let e=k.current;if(!e)return;let t=()=>{let t=e.querySelector("nav"),a=t?.querySelector("ul");if(!t||!a)return void f?.(e.scrollWidth>e.clientWidth+1);let r=t.getBoundingClientRect(),l=a.querySelectorAll(":scope > li"),i=l.item(0)?.getBoundingClientRect(),n=l.item(l.length-1)?.getBoundingClientRect();f?.(e.scrollWidth>e.clientWidth+1||!!(i&&i.left<r.left-1)||!!(n&&n.right>r.right+1))};t();let a=new ResizeObserver(t);a.observe(e);let r=e.querySelector("nav");return r&&a.observe(r),()=>a.disconnect()},[b,i,l,f]);let z=(0,n.usePathname)(),A=(0,s.useMemo)(()=>{if(!i?.length)return new Set;let e=(0,o.findActiveCmsNavItemIndex)(z,i);return null===e?new Set:new Set([`cms-${e}`])},[i,z]),q=["hidden xl:block border-b border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)]",w?"h1s-main-nav":"",!d?"max-h-0 overflow-hidden border-b-0 opacity-0 pointer-events-none":""].filter(Boolean).join(" ");if(!b&&!d)return null;let E=w?" active":" active font-[var(--font-weight-semibold)] text-[var(--header-two-nav-text-active)]";return(0,t.jsxs)("div",{className:q,ref:_,onMouseLeave:I,"aria-hidden":!d||void 0,"data-modern-main-nav":w?"true":void 0,children:[(0,t.jsxs)("div",{ref:k,className:"h1m-primary-row mx-auto flex max-w-[var(--layout-container-max)] items-center justify-between gap-[length:var(--header-two-nav-row-gap)] px-[length:var(--header-two-nav-row-padding-x)] py-[length:var(--header-two-nav-row-padding-y)]",children:[y?(0,t.jsx)("div",{className:"h1m-primary-leading shrink-0",onMouseEnter:I,children:y}):null,(0,t.jsx)("nav",{"aria-label":"Primary",className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-nowrap items-stretch gap-[length:var(--header-two-nav-list-gap-sm)] p-0 xl:gap-[length:var(--header-two-nav-list-gap-md)]",children:N?i.map((r,l)=>{let i=`cms-${l}`,n=A.has(i);return r.children.length>0?(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:()=>L(i),children:(0,t.jsxs)("button",{type:"button",className:`inline-flex cursor-pointer items-center gap-[length:var(--header-two-mega-button-gap)] truncate border-0 bg-transparent py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?E:""}`,"aria-expanded":e===i,"aria-controls":`mega-${i}`,"aria-current":n?"true":void 0,onFocus:()=>L(i),children:[r.label,(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mega-chevron-size)] w-[length:var(--header-two-mega-chevron-size)] shrink-0 rotate-90"})]})},i):(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:I,children:(0,t.jsx)(v,{href:r.href??"/",target:r.target,className:`inline-flex items-center truncate py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?E:""}`,"aria-current":n?"page":void 0,children:r.label})},i)}):null})}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-[length:var(--header-two-nav-actions-gap)]",onMouseEnter:I,children:j??(0,t.jsx)(u.HeaderUtilityActions,{actions:l})})]}),N?i.map((r,l)=>{var i;let n,s=`cms-${l}`;if(e!==s||0===r.children.length)return null;let o=C?r.children.find(e=>e.label===C)??null:null;return(0,t.jsx)("div",{className:"h1s-mega-panel absolute z-[var(--header-two-z-mega-panel)] m-0 box-border w-full border-t border-[var(--header-two-main-border)] bg-[var(--brand-white)] [box-shadow:var(--header-two-mega-shadow)]",id:`mega-${s}`,role:"region","aria-label":`${r.label} menu`,children:(0,t.jsxs)("div",{className:"h1s-mega-grid mega-grid mx-auto grid w-full max-w-[var(--layout-container-max)] box-border [grid-template-columns:var(--header-two-mega-grid-template-columns)] px-[var(--header-two-mega-grid-padding-x)] py-[var(--header-two-mega-grid-padding-y)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:m,children:r.label}),(0,t.jsx)("ul",{className:`m-0 list-none overflow-y-auto p-0 ${h}`,children:r.children.map(e=>{let r=e.children.length>0,l=C===e.label;return(0,t.jsx)("li",{className:`h1s-mega-list-item bg-transparent py-[length:var(--header-two-mega-list-item-padding-y)] px-[length:var(--header-two-mega-list-item-padding-x)]${l&&r?" active":""}`,onMouseEnter:()=>S(r?e.label:null),children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[length:var(--header-two-mega-sub-row-gap)]",children:[e.href?(0,t.jsx)(v,{href:e.href,target:e.target,className:`${p} min-w-0 flex-1`,children:e.label}):(0,t.jsx)("span",{className:`${p} min-w-0 flex-1`,children:e.label}),r&&(0,t.jsx)(a.ArrowIcon,{className:`h-[length:var(--header-two-mega-chevron-left-size)] w-[length:var(--header-two-mega-chevron-left-size)] shrink-0 rtl:rotate-180 ${l?"text-[var(--header-two-link-outline-text)]":"text-[var(--header-two-top-deep-color)]"}`,"aria-hidden":!0})]})},e.label)})})]}),(0,t.jsx)("div",{className:o?.children.length?`mega-col col-middle ${g}`:"mega-col col-middle",children:o?.children.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"h1s-mega-heading text-[length:var(--header-two-font-size-mega-heading)] font-[var(--font-weight-semibold)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--brand-black)]",children:o.label}),(0,t.jsx)("div",{className:`active overflow-y-auto ${h}`,children:o.children.map(e=>(0,t.jsx)(v,{href:e.href??"/",target:e.target,className:"h1s-mega-sublink block bg-transparent py-[length:var(--header-two-mega-sub-link-padding-y)] px-[length:var(--header-two-mega-sub-link-padding-x)]! text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mega-sub-link-color)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]",children:e.label},e.label))})]}):(0,t.jsx)("div",{"aria-hidden":!0})}),(0,t.jsx)(x,{items:(n=(i=r).marketInsightPosts)&&n.length>0?("Company"===i.label?n.slice(0,2):n).map(e=>({id:e.id,href:e.url,title:e.title,date:(0,c.formatMegaInsightDate)(e.publishedAt??""),imageSrc:e.thumbnailUrl??e.featuredImageUrl??"",imageAlt:e.title})):[]})]})},s)}):null]})}e.s(["HeaderOneMainNav",()=>b])},434593,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(468894),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(76209),s=e.i(271645),o=e.i(822492),c=e.i(780020),d=e.i(948148),u=e.i(416808);let m="mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--header-two-top-deep-color)]",h="max-h-[length:var(--header-two-mega-list-max-height)]",p="text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-top-deep-color)]",g="border-s border-[var(--header-two-main-border)] ps-[var(--header-two-mega-insights-padding-left)]";function v({href:e,className:a,children:r,target:l,"aria-current":n,...s}){return e.startsWith("http")||"_blank"===l?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer","aria-current":n,...s,children:r}):(0,t.jsx)(i.Link,{href:e,className:a,"aria-current":n,children:r})}function x({items:e}){let a=(0,d.useTranslations)();return 0===e.length?null:(0,t.jsxs)("div",{className:`mega-col col-right ${g}`,children:[(0,t.jsx)("h4",{className:m,children:a("top_market_insights")}),e.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[var(--header-two-mega-row-gap)] pb-[var(--header-two-mega-row-padding-bottom)]",children:[(0,t.jsxs)("div",{className:"me-[var(--header-two-mega-body-margin-end)] min-w-0 flex-1",children:[(0,t.jsx)(v,{href:e.href,className:"m-0 block p-0 text-inherit no-underline",children:(0,t.jsx)("h6",{className:"m-0 mb-[var(--header-two-mega-insight-title-margin-bottom)] text-[length:var(--header-two-mega-insight-title-size)] font-[var(--header-two-mega-insight-title-weight)] leading-[var(--header-two-mega-insight-title-line-height)] text-[var(--header-two-mega-insight-title-color)]",children:e.title})}),e.date?(0,t.jsxs)("p",{className:"m-0 flex items-center gap-[var(--header-two-mega-date-icon-gap)] text-[length:var(--header-two-mega-date-size)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-mega-date-line-height)] text-[var(--header-two-mega-date-color)]",children:[(0,t.jsx)(r.CalenderIconNew,{width:16,height:16,className:"h-[var(--header-two-mega-calendar-icon-size)] w-[var(--header-two-mega-calendar-icon-size)] shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:e.date})]}):null]}),e.imageSrc?(0,t.jsx)(l.default,{src:e.imageSrc,alt:e.imageAlt,className:"h-[length:var(--header-two-mega-insight-image-height)] w-[length:var(--header-two-mega-insight-image-width)] shrink-0 object-cover",width:96,height:68,sizes:"96px"}):null]},e.id??e.href))]})}function b({openMega:e,onMegaChange:r,utilityActions:l=[],productCategoryLinks:i,navItems:d,visible:b=!0,measureLayout:f=!1,onOverflowChange:w,fancy:y=!1,trailingContent:j}){let N=!!d?.length;i&&i.length;
160let _=(0,s.useRef)(null),k=(0,s.useRef)(null),[C,S]=(0,s.useState)("all"),[L,I]=(0,s.useState)("all"),[z,A]=(0,s.useState)(null),q=(0,s.useCallback)(e=>{N?A(null):("markets"===e&&S("all"),"products"===e&&I("all")),r(e)},[r,N]),E=(0,s.useCallback)(()=>{r(null)},[r]);(0,s.useEffect)(()=>{let e=e=>{_.current?.contains(e.target)||r(null)},t=e=>{"Escape"===e.key&&r(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,s.useLayoutEffect)(()=>{if(!f)return void w?.(!1);let e=k.current;if(!e)return;let t=()=>{w?.(e.scrollWidth>e.clientWidth+1)};t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[f,d,l,w]);let $=(0,n.usePathname)(),P=(0,s.useMemo)(()=>{if(!d?.length)return new Set;let e=(0,o.findActiveCmsNavItemIndex)($,d);return null===e?new Set:new Set([`cms-${e}`])},[d,$]),T=["hidden xl:block border-b border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)]",y?"h1f-main-nav":"",!b?"max-h-0 overflow-hidden border-b-0 opacity-0 pointer-events-none":""].filter(Boolean).join(" ");if(!f&&!b)return null;let M=" active font-[var(--font-weight-semibold)] text-[var(--header-two-nav-text-active)]";return(0,t.jsxs)("div",{className:T,ref:_,onMouseLeave:E,"aria-hidden":!b||void 0,"data-fancy-main-nav":y?"true":void 0,children:[(0,t.jsxs)("div",{ref:k,className:"mx-auto flex max-w-[var(--layout-container-max)] items-center justify-between gap-[length:var(--header-two-nav-row-gap)] px-[length:var(--header-two-nav-row-padding-x)] py-[length:var(--header-two-nav-row-padding-y)]",children:[(0,t.jsx)("nav",{"aria-label":"Primary",className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-nowrap items-stretch gap-[length:var(--header-two-nav-list-gap-sm)] p-0 xl:gap-[length:var(--header-two-nav-list-gap-md)]",children:N?d.map((r,l)=>{let i=`cms-${l}`,n=P.has(i);return r.children.length>0?(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:()=>q(i),children:(0,t.jsxs)("button",{type:"button",className:`inline-flex cursor-pointer items-center gap-[length:var(--header-two-mega-button-gap)] truncate border-0 bg-transparent py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?M:""}`,"aria-expanded":e===i,"aria-controls":`mega-${i}`,"aria-current":n?"true":void 0,onFocus:()=>q(i),children:[r.label,(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mega-chevron-size)] w-[length:var(--header-two-mega-chevron-size)] shrink-0 rotate-90"})]})},i):(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:E,children:(0,t.jsx)(v,{href:r.href??"/",target:r.target,className:`inline-flex items-center truncate py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?M:""}`,"aria-current":n?"page":void 0,children:r.label})},i)}):null})}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-[length:var(--header-two-nav-actions-gap)]",onMouseEnter:E,children:j??(0,t.jsx)(u.HeaderUtilityActions,{actions:l})})]}),N?d.map((r,l)=>{var i;let n,s=`cms-${l}`;if(e!==s||0===r.children.length)return null;let o=z?r.children.find(e=>e.label===z)??null:null;return(0,t.jsx)("div",{className:"absolute z-[var(--header-two-z-mega-panel)] m-0 box-border w-full border-t border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-mega-shadow)]",id:`mega-${s}`,role:"region","aria-label":`${r.label} menu`,children:(0,t.jsxs)("div",{className:"mega-grid mx-auto grid w-full max-w-[var(--layout-container-max)] box-border [grid-template-columns:var(--header-two-mega-grid-template-columns)] px-[var(--header-two-mega-grid-padding-x)] py-[var(--header-two-mega-grid-padding-y)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:m,children:r.label}),(0,t.jsx)("ul",{className:`m-0 list-none overflow-y-auto p-0 ${h}`,children:r.children.map(e=>{let r=e.children.length>0,l=z===e.label;return(0,t.jsx)("li",{className:`bg-transparent py-[length:var(--header-two-mega-list-item-padding-y)] px-[length:var(--header-two-mega-list-item-padding-x)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]${l&&r?" active bg-[var(--header-two-mega-list-item-hover-bg)]!":""}`,onMouseEnter:()=>A(r?e.label:null),children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[length:var(--header-two-mega-sub-row-gap)]",children:[e.href?(0,t.jsx)(v,{href:e.href,target:e.target,className:`${p} min-w-0 flex-1`,children:e.label}):(0,t.jsx)("span",{className:`${p} min-w-0 flex-1`,children:e.label}),r&&(0,t.jsx)(a.ArrowIcon,{className:`h-[length:var(--header-two-mega-chevron-left-size)] w-[length:var(--header-two-mega-chevron-left-size)] shrink-0 rtl:rotate-180 ${l?"text-[var(--header-two-link-outline-text)]":"text-[var(--header-two-top-deep-color)]"}`,"aria-hidden":!0})]})},e.label)})})]}),(0,t.jsx)("div",{className:o?.children.length?`mega-col col-middle ${g}`:"mega-col col-middle",children:o?.children.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-white",children:o.label}),(0,t.jsx)("div",{className:`active overflow-y-auto ${h}`,children:o.children.map(e=>(0,t.jsx)(v,{href:e.href??"/",target:e.target,className:"block bg-transparent py-[length:var(--header-two-mega-sub-link-padding-y)] px-[length:var(--header-two-mega-sub-link-padding-x)]! text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mega-sub-link-color)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]",children:e.label},e.label))})]}):(0,t.jsx)("div",{"aria-hidden":!0})}),(0,t.jsx)(x,{items:(n=(i=r).marketInsightPosts)&&n.length>0?("Company"===i.label?n.slice(0,2):n).map(e=>({id:e.id,href:e.url,title:e.title,date:(0,c.formatMegaInsightDate)(e.publishedAt??""),imageSrc:e.thumbnailUrl??e.featuredImageUrl??"",imageAlt:e.title})):[]})]})},s)}):null]})}e.s(["HeaderOneMainNav",()=>b])},104894,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(468894),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(76209),s=e.i(271645),o=e.i(822492),c=e.i(780020),d=e.i(948148),u=e.i(285216);let m="mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--header-two-top-deep-color)]",h="max-h-[length:var(--header-two-mega-list-max-height)]",p="text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-top-deep-color)]",g="border-s border-[var(--header-two-main-border)] ps-[var(--header-two-mega-insights-padding-left)]";function v({href:e,className:a,children:r,target:l,"aria-current":n,...s}){return e.startsWith("http")||"_blank"===l?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer","aria-current":n,...s,children:r}):(0,t.jsx)(i.Link,{href:e,className:a,"aria-current":n,children:r})}function x({items:e}){let a=(0,d.useTranslations)();return 0===e.length?null:(0,t.jsxs)("div",{className:`mega-col col-right ${g}`,children:[(0,t.jsx)("h4",{className:m,children:a("top_market_insights")}),e.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[var(--header-two-mega-row-gap)] pb-[var(--header-two-mega-row-padding-bottom)]",children:[(0,t.jsxs)("div",{className:"me-[var(--header-two-mega-body-margin-end)] min-w-0 flex-1",children:[(0,t.jsx)(v,{href:e.href,className:"m-0 block p-0 text-inherit no-underline",children:(0,t.jsx)("h6",{className:"m-0 mb-[var(--header-two-mega-insight-title-margin-bottom)] text-[length:var(--header-two-mega-insight-title-size)] font-[var(--header-two-mega-insight-title-weight)] leading-[var(--header-two-mega-insight-title-line-height)] text-[var(--header-two-mega-insight-title-color)]",children:e.title})}),e.date?(0,t.jsxs)("p",{className:"m-0 flex items-center gap-[var(--header-two-mega-date-icon-gap)] text-[length:var(--header-two-mega-date-size)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-mega-date-line-height)] text-[var(--header-two-mega-date-color)]",children:[(0,t.jsx)(r.CalenderIconNew,{width:16,height:16,className:"h-[var(--header-two-mega-calendar-icon-size)] w-[var(--header-two-mega-calendar-icon-size)] shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:e.date})]}):null]}),e.imageSrc?(0,t.jsx)(l.default,{src:e.imageSrc,alt:e.imageAlt,className:"h-[length:var(--header-two-mega-insight-image-height)] w-[length:var(--header-two-mega-insight-image-width)] shrink-0 object-cover",width:96,height:68,sizes:"96px"}):null]},e.id??e.href))]})}function b({openMega:e,onMegaChange:r,utilityActions:l=[],productCategoryLinks:i,navItems:d,visible:b=!0,measureLayout:f=!1,onOverflowChange:w,premium:y=!1,trailingContent:j}){let N=!!d?.length;i&&i.length;
160let _=(0,s.useRef)(null),k=(0,s.useRef)(null),[C,S]=(0,s.useState)("all"),[L,I]=(0,s.useState)("all"),[z,A]=(0,s.useState)(null),q=(0,s.useCallback)(e=>{N?A(null):("markets"===e&&S("all"),"products"===e&&I("all")),r(e)},[r,N]),E=(0,s.useCallback)(()=>{r(null)},[r]);(0,s.useEffect)(()=>{let e=e=>{_.current?.contains(e.target)||r(null)},t=e=>{"Escape"===e.key&&r(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,s.useLayoutEffect)(()=>{if(!f)return void w?.(!1);let e=k.current;if(!e)return;let t=()=>{w?.(e.scrollWidth>e.clientWidth+1)};t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[f,d,l,w]);let $=(0,n.usePathname)(),P=(0,s.useMemo)(()=>{if(!d?.length)return new Set;let e=(0,o.findActiveCmsNavItemIndex)($,d);return null===e?new Set:new Set([`cms-${e}`])},[d,$]),T=["hidden xl:block border-b border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)]",y?"h1p-main-nav":"",!b?"max-h-0 overflow-hidden border-b-0 opacity-0 pointer-events-none":""].filter(Boolean).join(" ");if(!f&&!b)return null;let M=" active font-[var(--font-weight-semibold)] text-[var(--header-two-nav-text-active)]";return(0,t.jsxs)("div",{className:T,ref:_,onMouseLeave:E,"aria-hidden":!b||void 0,"data-premium-main-nav":y?"true":void 0,children:[(0,t.jsxs)("div",{ref:k,className:"layout-container px-3 md:px-5 flex max-w-[var(--layout-container-max)] items-center justify-between gap-[length:var(--header-two-nav-row-gap)] px-[length:var(--header-two-nav-row-padding-x)] py-[length:var(--header-two-nav-row-padding-y)]",children:[(0,t.jsx)("nav",{"aria-label":"Primary",className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-nowrap items-stretch gap-[length:var(--header-two-nav-list-gap-sm)] p-0 xl:gap-[length:var(--header-two-nav-list-gap-md)]",children:N?d.map((r,l)=>{let i=`cms-${l}`,n=P.has(i);return r.children.length>0?(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:()=>q(i),children:(0,t.jsxs)("button",{type:"button",className:`inline-flex cursor-pointer items-center gap-[length:var(--header-two-mega-button-gap)] truncate border-0 bg-transparent py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?M:""}`,"aria-expanded":e===i,"aria-controls":`mega-${i}`,"aria-current":n?"true":void 0,onFocus:()=>q(i),children:[r.label,(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mega-chevron-size)] w-[length:var(--header-two-mega-chevron-size)] shrink-0 rotate-90"})]})},i):(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:E,children:(0,t.jsx)(v,{href:r.href??"/",target:r.target,className:`inline-flex items-center truncate py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?M:""}`,"aria-current":n?"page":void 0,children:r.label})},i)}):null})}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-[length:var(--header-two-nav-actions-gap)]",onMouseEnter:E,children:j??(0,t.jsx)(u.HeaderUtilityActions,{actions:l})})]}),N?d.map((r,l)=>{var i;let n,s=`cms-${l}`;if(e!==s||0===r.children.length)return null;let o=z?r.children.find(e=>e.label===z)??null:null;return(0,t.jsx)("div",{className:"absolute z-[var(--header-two-z-mega-panel)] m-0 box-border w-full border-t border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-mega-shadow)]",id:`mega-${s}`,role:"region","aria-label":`${r.label} menu`,children:(0,t.jsxs)("div",{className:"mega-grid mx-auto grid w-full max-w-[var(--layout-container-max)] box-border [grid-template-columns:var(--header-two-mega-grid-template-columns)] px-[var(--header-two-mega-grid-padding-x)] py-[var(--header-two-mega-grid-padding-y)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:m,children:r.label}),(0,t.jsx)("ul",{className:`m-0 list-none overflow-y-auto p-0 ${h}`,children:r.children.map(e=>{let r=e.children.length>0,l=z===e.label;return(0,t.jsx)("li",{className:`bg-transparent py-[length:var(--header-two-mega-list-item-padding-y)] px-[length:var(--header-two-mega-list-item-padding-x)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]${l&&r?" active bg-[var(--header-two-mega-list-item-hover-bg)]!":""}`,onMouseEnter:()=>A(r?e.label:null),children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[length:var(--header-two-mega-sub-row-gap)]",children:[e.href?(0,t.jsx)(v,{href:e.href,target:e.target,className:`${p} min-w-0 flex-1`,children:e.label}):(0,t.jsx)("span",{className:`${p} min-w-0 flex-1`,children:e.label}),r&&(0,t.jsx)(a.ArrowIcon,{className:`h-[length:var(--header-two-mega-chevron-left-size)] w-[length:var(--header-two-mega-chevron-left-size)] shrink-0 rtl:rotate-180 ${l?"text-[var(--header-two-link-outline-text)]":"text-[var(--header-two-top-deep-color)]"}`,"aria-hidden":!0})]})},e.label)})})]}),(0,t.jsx)("div",{className:o?.children.length?`mega-col col-middle ${g}`:"mega-col col-middle",children:o?.children.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-white",children:o.label}),(0,t.jsx)("div",{className:`active overflow-y-auto ${h}`,children:o.children.map(e=>(0,t.jsx)(v,{href:e.href??"/",target:e.target,className:"block bg-transparent py-[length:var(--header-two-mega-sub-link-padding-y)] px-[length:var(--header-two-mega-sub-link-padding-x)]! text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mega-sub-link-color)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]",children:e.label},e.label))})]}):(0,t.jsx)("div",{"aria-hidden":!0})}),(0,t.jsx)(x,{items:(n=(i=r).marketInsightPosts)&&n.length>0?("Company"===i.label?n.slice(0,2):n).map(e=>({id:e.id,href:e.url,title:e.title,date:(0,c.formatMegaInsightDate)(e.publishedAt??""),imageSrc:e.thumbnailUrl??e.featuredImageUrl??"",imageAlt:e.title})):[]})]})},s)}):null]})}e.s(["HeaderOneMainNav",()=>b])},321393,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(468894),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(76209),s=e.i(271645),o=e.i(822492),c=e.i(780020),d=e.i(948148),u=e.i(495067);let m="mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--header-two-top-deep-color)]",h="max-h-[length:var(--header-two-mega-list-max-height)]",p="text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-top-deep-color)]",g="border-s border-[var(--header-two-main-border)] ps-[var(--header-two-mega-insights-padding-left)]";function v({href:e,className:a,children:r,target:l,"aria-current":n,...s}){return e.startsWith("http")||"_blank"===l?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"nofollow noopener noreferrer","aria-current":n,...s,children:r}):(0,t.jsx)(i.Link,{href:e,className:a,"aria-current":n,children:r})}function x({items:e}){let a=(0,d.useTranslations)();return 0===e.length?null:(0,t.jsxs)("div",{className:`mega-col col-right ${g}`,children:[(0,t.jsx)("h4",{className:m,children:a("top_market_insights")}),e.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[var(--header-two-mega-row-gap)] pb-[var(--header-two-mega-row-padding-bottom)]",children:[(0,t.jsxs)("div",{className:"me-[var(--header-two-mega-body-margin-end)] min-w-0 flex-1",children:[(0,t.jsx)(v,{href:e.href,className:"m-0 block p-0 text-inherit no-underline",children:(0,t.jsx)("h6",{className:"m-0 mb-[var(--header-two-mega-insight-title-margin-bottom)] text-[length:var(--header-two-mega-insight-title-size)] font-[var(--header-two-mega-insight-title-weight)] leading-[var(--header-two-mega-insight-title-line-height)] text-[var(--header-two-mega-insight-title-color)]",children:e.title})}),e.date?(0,t.jsxs)("p",{className:"m-0 flex items-center gap-[var(--header-two-mega-date-icon-gap)] text-[length:var(--header-two-mega-date-size)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-mega-date-line-height)] text-[var(--header-two-mega-date-color)]",children:[(0,t.jsx)(r.CalenderIconNew,{width:16,height:16,className:"h-[var(--header-two-mega-calendar-icon-size)] w-[var(--header-two-mega-calendar-icon-size)] shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:e.date})]}):null]}),e.imageSrc?(0,t.jsx)(l.default,{src:e.imageSrc,alt:e.imageAlt,className:"h-[length:var(--header-two-mega-insight-image-height)] w-[length:var(--header-two-mega-insight-image-width)] shrink-0 object-cover",width:96,height:68,sizes:"96px"}):null]},e.id??e.href))]})}function b({openMega:e,onMegaChange:r,utilityActions:l=[],productCategoryLinks:i,navItems:d,visible:b=!0,measureLayout:f=!1,onOverflowChange:w}){let y=!!d?.length;i&&i.length;
160let j=(0,s.useRef)(null),N=(0,s.useRef)(null),[_,k]=(0,s.useState)("all"),[C,S]=(0,s.useState)("all"),[L,I]=(0,s.useState)(null),z=(0,s.useCallback)(e=>{y?I(null):("markets"===e&&k("all"),"products"===e&&S("all")),r(e)},[r,y]),A=(0,s.useCallback)(()=>{r(null)},[r]);(0,s.useEffect)(()=>{let e=e=>{j.current?.contains(e.target)||r(null)},t=e=>{"Escape"===e.key&&r(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,s.useLayoutEffect)(()=>{if(!f)return void w?.(!1);let e=N.current;if(!e)return;let t=()=>{w?.(e.scrollWidth>e.clientWidth+1)};t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[f,d,l,w]);let q=(0,n.usePathname)(),E=(0,s.useMemo)(()=>{if(!d?.length)return new Set;let e=(0,o.findActiveCmsNavItemIndex)(q,d);return null===e?new Set:new Set([`cms-${e}`])},[d,q]),$=["hidden xl:block border-b border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)]",!b?"max-h-0 overflow-hidden border-b-0 opacity-0 pointer-events-none":""].filter(Boolean).join(" ");if(!f&&!b)return null;let P=" active font-[var(--font-weight-semibold)] text-[var(--header-two-nav-text-active)]";return(0,t.jsxs)("div",{className:$,ref:j,onMouseLeave:A,"aria-hidden":!b||void 0,children:[(0,t.jsxs)("div",{ref:N,className:"mx-auto flex max-w-[var(--layout-container-max)] items-center justify-between gap-[length:var(--header-two-nav-row-gap)] px-[length:var(--header-two-nav-row-padding-x)] py-[length:var(--header-two-nav-row-padding-y)]",children:[(0,t.jsx)("nav",{"aria-label":"Primary",className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-nowrap items-stretch gap-[length:var(--header-two-nav-list-gap-sm)] p-0 xl:gap-[length:var(--header-two-nav-list-gap-md)]",children:y?d.map((r,l)=>{let i=`cms-${l}`,n=E.has(i);return r.children.length>0?(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:()=>z(i),children:(0,t.jsxs)("button",{type:"button",className:`inline-flex cursor-pointer items-center gap-[length:var(--header-two-mega-button-gap)] truncate border-0 bg-transparent py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?P:""}`,"aria-expanded":e===i,"aria-controls":`mega-${i}`,"aria-current":n?"true":void 0,onFocus:()=>z(i),children:[r.label,(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mega-chevron-size)] w-[length:var(--header-two-mega-chevron-size)] shrink-0 rotate-90"})]})},i):(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:A,children:(0,t.jsx)(v,{href:r.href??"/",target:r.target,className:`inline-flex items-center truncate py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?P:""}`,"aria-current":n?"page":void 0,children:r.label})},i)}):null})}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-[length:var(--header-two-nav-actions-gap)]",onMouseEnter:A,children:(0,t.jsx)(u.HeaderUtilityActions,{actions:l})})]}),y?d.map((r,l)=>{var i;let n,s=`cms-${l}`;if(e!==s||0===r.children.length)return null;let o=L?r.children.find(e=>e.label===L)??null:null;return(0,t.jsx)("div",{className:"absolute z-[var(--header-two-z-mega-panel)] m-0 box-border w-full border-t border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-mega-shadow)]",id:`mega-${s}`,role:"region","aria-label":`${r.label} menu`,children:(0,t.jsxs)("div",{className:"mega-grid mx-auto grid w-full max-w-[var(--layout-container-max)] box-border [grid-template-columns:var(--header-two-mega-grid-template-columns)] px-[var(--header-two-mega-grid-padding-x)] py-[var(--header-two-mega-grid-padding-y)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:m,children:r.label}),(0,t.jsx)("ul",{className:`m-0 list-none overflow-y-auto p-0 ${h}`,children:r.children.map(e=>{let r=e.children.length>0,l=L===e.label;return(0,t.jsx)("li",{className:`bg-transparent py-[length:var(--header-two-mega-list-item-padding-y)] px-[length:var(--header-two-mega-list-item-padding-x)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]${l&&r?" active bg-[var(--header-two-mega-list-item-hover-bg)]!":""}`,onMouseEnter:()=>I(r?e.label:null),children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[length:var(--header-two-mega-sub-row-gap)]",children:[e.href?(0,t.jsx)(v,{href:e.href,target:e.target,className:`${p} min-w-0 flex-1`,children:e.label}):(0,t.jsx)("span",{className:`${p} min-w-0 flex-1`,children:e.label}),r&&(0,t.jsx)(a.ArrowIcon,{className:`h-[length:var(--header-two-mega-chevron-left-size)] w-[length:var(--header-two-mega-chevron-left-size)] shrink-0 rtl:rotate-180 ${l?"text-[var(--header-two-link-outline-text)]":"text-[var(--header-two-top-deep-color)]"}`,"aria-hidden":!0})]})},e.label)})})]}),(0,t.jsx)("div",{className:o?.children.length?`mega-col col-middle ${g}`:"mega-col col-middle",children:o?.children.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-white",children:o.label}),(0,t.jsx)("div",{className:`active overflow-y-auto ${h}`,children:o.children.map(e=>(0,t.jsx)(v,{href:e.href??"/",target:e.target,className:"block bg-transparent py-[length:var(--header-two-mega-sub-link-padding-y)] px-[length:var(--header-two-mega-sub-link-padding-x)]! text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mega-sub-link-color)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]",children:e.label},e.label))})]}):(0,t.jsx)("div",{"aria-hidden":!0})}),(0,t.jsx)(x,{items:(n=(i=r).marketInsightPosts)&&n.length>0?("Company"===i.label?n.slice(0,2):n).map(e=>({id:e.id,href:e.url,title:e.title,date:(0,c.formatMegaInsightDate)(e.publishedAt??""),imageSrc:e.thumbnailUrl??e.featuredImageUrl??"",imageAlt:e.title})):[]})]})},s)}):null]})}e.s(["HeaderOneMainNav",()=>b])},934070,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303),l=e.i(861745),i=e.i(647898);function n({siteKey:e}){let n=(0,l.useLocale)(),s=(0,i.toRecaptchaHl)(n),o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(!1),[u,m]=(0,a.useState)(1),[h,p]=(0,a.useState)(!1);return(0,a.useEffect)(()=>
160{if(d.current||h)return;let e=()=>{d.current||(d.current=!0,p(!0))},t=()=>window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0;if(t()>=100)return void e();let a=()=>{100>t()||(e(),window.removeEventListener("scroll",a))};return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[h]),(0,a.useEffect)(()=>{let e=()=>{m(Math.min(1,(o.current?.offsetWidth??304)/304))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(!h)return;let t=c.current;if(t)return(0,i.bindExplicitRecaptcha)(t,e,{hl:s})},[h,e,s]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(r.default,{id:`recaptcha-api-${s}`,src:(0,i.recaptchaExplicitSrc)(s),strategy:"afterInteractive"}),(0,t.jsx)("div",{ref:o,className:"w-full overflow-hidden",style:{height:`${78*u}px`},children:(0,t.jsx)("div",{ref:c,className:"g-recaptcha origin-top-left rtl:origin-top-right",style:{transform:`scale(${u})`}},s)})]})}e.s(["RecaptchaWidget",()=>n])},972154,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(527967);var l=e.i(830167);function i(e){let t=e.trim();if(!t)return null;let a=Number(t);return Number.isFinite(a)?a:null}function n({id:e,name:n,required:s,placeholder:o,ariaLabel:c,className:d}){let u=(0,r.useTranslations)(),m=(0,a.useRef)(null);function h(e){let t=Math.max(1,Math.floor(e));m.current&&(m.current.value=String(t))}return(0,a.useEffect)(()=>{let e=m.current?.form;if(e)return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t);function t(){m.current&&(m.current.value="")}},[]),(0,t.jsxs)("div",{className:"banner-one-qty-input relative min-w-0",children:[(0,t.jsx)("input",{ref:m,type:"text",inputMode:"numeric",pattern:"[0-9]*",id:e,name:n,required:s,placeholder:o,"aria-label":c,defaultValue:"",className:`banner-one-qty-field ${d}`,onChange:e=>{var t;!(""===(t=e.target.value)||/^\d+$/.test(t))&&m.current&&(m.current.value=t.replace(/\D/g,""))}}),(0,t.jsxs)("div",{className:"banner-one-qty-spinners absolute inset-y-0 end-[var(--banner-one-qty-spinner-inset-inline-end)] flex w-[var(--banner-one-qty-spinner-width)] flex-col justify-center gap-[var(--banner-one-qty-spinner-gap)]",children:[(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_increase"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){h((i(m.current?.value??"")??0)+1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] -rotate-90"})}),(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_decrease"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){let e=i(m.current?.value??"");null===e||e<=1||h(e-1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] rotate-90"})})]})]})}e.s(["QuantitySpinnerInput",()=>n])},124179,e=>{e.v({bannerPanel:"BannerSectionOne-module__ufaxcq__bannerPanel",bannerPanelImage:"BannerSectionOne-module__ufaxcq__bannerPanelImage",container:"BannerSectionOne-module__ufaxcq__container",layoutGrid:"BannerSectionOne-module__ufaxcq__layoutGrid",mainColumn:"BannerSectionOne-module__ufaxcq__mainColumn",rfqBanner:"BannerSectionOne-module__ufaxcq__rfqBanner",rfqCardHeader:"BannerSectionOne-module__ufaxcq__rfqCardHeader",rfqDescription:"BannerSectionOne-module__ufaxcq__rfqDescription",rfqField:"BannerSectionOne-module__ufaxcq__rfqField",rfqFieldEmail:"BannerSectionOne-module__ufaxcq__rfqFieldEmail",rfqFieldMessage:"BannerSectionOne-module__ufaxcq__rfqFieldMessage",rfqFieldProduct:"BannerSectionOne-module__ufaxcq__rfqFieldProduct",rfqFieldQty:"BannerSectionOne-module__ufaxcq__rfqFieldQty",rfqFieldRecaptcha:"BannerSectionOne-module__ufaxcq__rfqFieldRecaptcha",rfqFieldUom:"BannerSectionOne-module__ufaxcq__rfqFieldUom",rfqForm:"BannerSectionOne-module__ufaxcq__rfqForm",rfqFormArea:"BannerSectionOne-module__ufaxcq__rfqFormArea",rfqFormDivider:"BannerSectionOne-module__ufaxcq__rfqFormDivider",rfqFormMessage:"BannerSectionOne-module__ufaxcq__rfqFormMessage",rfqFormMessageError:"BannerSectionOne-module__ufaxcq__rfqFormMessageError",rfqFormMessageRow:"BannerSectionOne-module__ufaxcq__rfqFormMessageRow",rfqFormMessageSuccess:"BannerSectionOne-module__ufaxcq__rfqFormMessageSuccess",rfqFormNoCaptcha:"BannerSectionOne-module__ufaxcq__rfqFormNoCaptcha",rfqHeaderContent:"BannerSectionOne-module__ufaxcq__rfqHeaderContent",rfqHeaderImage:"BannerSectionOne-module__ufaxcq__rfqHeaderImage",rfqHeaderImageImg:"BannerSectionOne-module__ufaxcq__rfqHeaderImageImg",rfqInput:"BannerSectionOne-module__ufaxcq__rfqInput",rfqLabel:"BannerSectionOne-module__ufaxcq__rfqLabel",rfqRecaptcha:"BannerSectionOne-module__ufaxcq__rfqRecaptcha",rfqSelect:"BannerSectionOne-module__ufaxcq__rfqSelect",rfqSubmit:"BannerSectionOne-module__ufaxcq__rfqSubmit",rfqSubmitIcon:"BannerSectionOne-module__ufaxcq__rfqSubmitIcon",rfqSubmitRow:"BannerSectionOne-module__ufaxcq__rfqSubmitRow",rfqTextarea:"BannerSectionOne-module__ufaxcq__rfqTextarea",rfqTitle:"BannerSectionOne-module__ufaxcq__rfqTitle",section:"BannerSectionOne-module__ufaxcq__section",uomSelectArrow:"BannerSectionOne-module__ufaxcq__uomSelectArrow",uomSelectArrowIcon:"BannerSectionOne-module__ufaxcq__uomSelectArrowIcon",uomSelectWrap:"BannerSectionOne-module__ufaxcq__uomSelectWrap"})},592358,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(716787);var r=e.i(659544);e.i(527967);var l=e.i(830167),i=e.i(203286),n=e.i(134962),s=e.i(972154),o=e.i(934070),c=e.i(647898),d=e.i(124179);function u(e){let t=e.trim();return t?t.endsWith("*")?t:`${t} *`:"*"}function m({parsedEmbed:e,recaptchaSiteKey:m,productNamePlaceholder:h,quantityPlaceholder:p,quantityAriaLabel:g,emailPlaceholder:v,messagesPlaceholder:x,uomPlaceholder:b,uomAriaLabel:f,submitLabel:w,submitAriaLabel:y,successMessage:j,productNameLabel:N,quantityLabel:_,uomLabel:k,emailLabel:C,messageLabel:S}){let{emailInputRef:L}=(0,i.useAuthEmailPrefill)(),[I,z]=(0,a.useState)(!1),[A,q]=(0,a.useState)(null),E=(0,a.useRef)(!1),$=(0,a.useRef)(null);(0,a.useEffect)(()=>
160{if(!A||!m)return;let e=window.setInterval(()=>{let e=$.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&q(null)},400);return()=>window.clearInterval(e)},[A,m]);let P=e.visibleFields,T=P.find(e=>"product"===e.role),M=P.find(e=>"qty"===e.role),O=P.find(e=>"uom"===e.role),F=P.find(e=>"email"===e.role),R=P.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){E.current&&(E.current=!1,$.current?.reset(),(0,c.resetRecaptcha)($.current),q(null),z(!0),setTimeout(()=>z(!1),4e3))}}),(0,t.jsxs)("form",{ref:$,className:`${d.default.rfqForm}${m?"":` ${d.default.rfqFormNoCaptcha}`}`,action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(m){let t=$.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),E.current=!1,z(!1),q("Please complete reCAPTCHA.");return}q(null)}E.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),T?(0,t.jsxs)("div",{className:`${d.default.rfqField} ${d.default.rfqFieldProduct}`,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:T.id,children:N}),(0,t.jsx)(n.ProductNameAutocompleteInput,{id:T.id,name:T.name,required:!0,placeholder:u(h),className:d.default.rfqInput})]}):null,M?(0,t.jsxs)("div",{className:`${d.default.rfqField} ${d.default.rfqFieldQty}`,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:M.id,children:_}),(0,t.jsx)(s.QuantitySpinnerInput,{id:M.id,name:M.name,required:!0,placeholder:u(p),ariaLabel:g,className:d.default.rfqInput})]}):null,O?(0,t.jsxs)("div",{className:`${d.default.rfqField} ${d.default.rfqFieldUom}`,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:O.id,children:k}),(0,t.jsxs)("div",{className:d.default.uomSelectWrap,children:[(0,t.jsxs)("select",{id:O.id,name:O.name,required:!0,defaultValue:"","aria-label":f,className:d.default.rfqSelect,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:u(b)}),O.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)("span",{className:d.default.uomSelectArrow,"aria-hidden":!0,children:(0,t.jsx)(l.ArrowIcon,{className:d.default.uomSelectArrowIcon})})]})]}):null,F?(0,t.jsxs)("div",{className:`${d.default.rfqField} ${d.default.rfqFieldEmail}`,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:F.id,children:C}),(0,t.jsx)("input",{ref:L,type:"email",id:F.id,name:F.name,maxLength:F.maxLength,required:!0,placeholder:u(v),className:d.default.rfqInput})]}):null,R?(0,t.jsxs)("div",{className:`${d.default.rfqField} ${d.default.rfqFieldMessage}`,children:[(0,t.jsx)("label",{className:d.default.rfqLabel,htmlFor:R.id,children:S}),(0,t.jsx)("textarea",{id:R.id,name:R.name,rows:R.rows,placeholder:x,className:d.default.rfqTextarea})]}):null,m?(0,t.jsx)("div",{className:d.default.rfqFieldRecaptcha,children:(0,t.jsx)("div",{className:d.default.rfqRecaptcha,children:(0,t.jsx)(o.RecaptchaWidget,{siteKey:m})})}):null,(I||A)&&(0,t.jsx)("div",{className:d.default.rfqFormMessageRow,children:I?(0,t.jsx)("p",{className:`${d.default.rfqFormMessage} ${d.default.rfqFormMessageSuccess}`,children:j||"Thank you! We'll be in touch."}):A?(0,t.jsx)("p",{className:`${d.default.rfqFormMessage} ${d.default.rfqFormMessageError}`,children:A}):null}),(0,t.jsx)("div",{className:d.default.rfqSubmitRow,children:(0,t.jsxs)(r.Button,{variant:"primary",type:"submit","aria-label":y,className:d.default.rfqSubmit,children:[w,(0,t.jsx)(l.ArrowIcon,{className:d.default.rfqSubmitIcon})]})})]})]})}e.s(["SalesforceEmbedForm",()=>m],592358)},907277,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(468894),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(76209),s=e.i(271645),o=e.i(822492),c=e.i(780020),d=e.i(948148),u=e.i(77066);let m="mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--header-two-top-deep-color)]",h="max-h-[length:var(--header-two-mega-list-max-height)]",p="text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-top-deep-color)]",g="border-s border-[var(--header-two-main-border)] ps-[var(--header-two-mega-insights-padding-left)]";function v({href:e,className:a,children:r,target:l,"aria-current":n,...s}){return e.startsWith("http")||"_blank"===l?(0,t.jsx)("a",{href:e,className:a,target:"_blank",rel:"noopener noreferrer","aria-current":n,...s,children:r}):(0,t.jsx)(i.Link,{href:e,className:a,"aria-current":n,children:r})}function x({items:e}){let a=(0,d.useTranslations)();return 0===e.length?null:(0,t.jsxs)("div",{className:`mega-col col-right ${g}`,children:[(0,t.jsx)("h4",{className:m,children:a("top_market_insights")}),e.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[var(--header-two-mega-row-gap)] pb-[var(--header-two-mega-row-padding-bottom)]",children:[(0,t.jsxs)("div",{className:"me-[var(--header-two-mega-body-margin-end)] min-w-0 flex-1",children:[(0,t.jsx)(v,{href:e.href,className:"m-0 block p-0 text-inherit no-underline",children:(0,t.jsx)("h6",{className:"m-0 mb-[var(--header-two-mega-insight-title-margin-bottom)] text-[length:var(--header-two-mega-insight-title-size)] font-[var(--header-two-mega-insight-title-weight)] leading-[var(--header-two-mega-insight-title-line-height)] text-[var(--header-two-mega-insight-title-color)]",children:e.title})}),e.date?(0,t.jsxs)("p",{className:"m-0 flex items-center gap-[var(--header-two-mega-date-icon-gap)] text-[length:var(--header-two-mega-date-size)] font-[var(--header-two-font-weight-normal)] leading-[var(--header-two-mega-date-line-height)] text-[var(--header-two-mega-date-color)]",children:[(0,t.jsx)(r.CalenderIconNew,{width:16,height:16,className:"h-[var(--header-two-mega-calendar-icon-size)] w-[var(--header-two-mega-calendar-icon-size)] shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:e.date})]}):null]}),e.imageSrc?(0,t.jsx)(l.default,{src:e.imageSrc,alt:e.imageAlt,className:"h-[length:var(--header-two-mega-insight-image-height)] w-[length:var(--header-two-mega-insight-image-width)] shrink-0 object-cover",width:96,height:68,sizes:"96px"}):null]},e.id??e.href))]})}function b({openMega:e,onMegaChange:r,utilityActions:l=[],productCategoryLinks:i,navItems:d,visible:b=!0,measureLayout:f=!1,onOverflowChange:w,standard:y=!1,trailingContent:j}){let N=!!d?.length;i&&i.length;
160let _=(0,s.useRef)(null),k=(0,s.useRef)(null),[C,S]=(0,s.useState)("all"),[L,I]=(0,s.useState)("all"),[z,A]=(0,s.useState)(null),q=(0,s.useCallback)(e=>{N?A(null):("markets"===e&&S("all"),"products"===e&&I("all")),r(e)},[r,N]),E=(0,s.useCallback)(()=>{r(null)},[r]);(0,s.useEffect)(()=>{let e=e=>{_.current?.contains(e.target)||r(null)},t=e=>{"Escape"===e.key&&r(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,s.useLayoutEffect)(()=>{if(!f)return void w?.(!1);let e=k.current;if(!e)return;let t=()=>{w?.(e.scrollWidth>e.clientWidth+1)};t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[f,d,l,w]);let $=(0,n.usePathname)(),P=(0,s.useMemo)(()=>{if(!d?.length)return new Set;let e=(0,o.findActiveCmsNavItemIndex)($,d);return null===e?new Set:new Set([`cms-${e}`])},[d,$]),T=["hidden xl:block border-b border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)]",y?"h1s-main-nav":"",!b?"max-h-0 overflow-hidden border-b-0 opacity-0 pointer-events-none":""].filter(Boolean).join(" ");if(!f&&!b)return null;let M=y?" active":" active font-[var(--font-weight-semibold)] text-[var(--header-two-nav-text-active)]";return(0,t.jsxs)("div",{className:T,ref:_,onMouseLeave:E,"aria-hidden":!b||void 0,"data-standard-main-nav":y?"true":void 0,children:[(0,t.jsxs)("div",{ref:k,className:"mx-auto flex max-w-[var(--layout-container-max)] items-center justify-between gap-[length:var(--header-two-nav-row-gap)] px-[length:var(--header-two-nav-row-padding-x)] py-[length:var(--header-two-nav-row-padding-y)]",children:[(0,t.jsx)("nav",{"aria-label":"Primary",className:"min-h-0 min-w-0 flex-1 overflow-hidden",children:(0,t.jsx)("ul",{className:"m-0 flex list-none flex-nowrap items-stretch gap-[length:var(--header-two-nav-list-gap-sm)] p-0 xl:gap-[length:var(--header-two-nav-list-gap-md)]",children:N?d.map((r,l)=>{let i=`cms-${l}`,n=P.has(i);return r.children.length>0?(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:()=>q(i),children:(0,t.jsxs)("button",{type:"button",className:`inline-flex cursor-pointer items-center gap-[length:var(--header-two-mega-button-gap)] truncate border-0 bg-transparent py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?M:""}`,"aria-expanded":e===i,"aria-controls":`mega-${i}`,"aria-current":n?"true":void 0,onFocus:()=>q(i),children:[r.label,(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mega-chevron-size)] w-[length:var(--header-two-mega-chevron-size)] shrink-0 rotate-90"})]})},i):(0,t.jsx)("li",{className:n?"active":void 0,onMouseEnter:E,children:(0,t.jsx)(v,{href:r.href??"/",target:r.target,className:`inline-flex items-center truncate py-[length:var(--header-two-mega-button-padding-y)] text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-nav-text)]${n?M:""}`,"aria-current":n?"page":void 0,children:r.label})},i)}):null})}),(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-[length:var(--header-two-nav-actions-gap)]",onMouseEnter:E,children:j??(0,t.jsx)(u.HeaderUtilityActions,{actions:l})})]}),N?d.map((r,l)=>{var i;let n,s=`cms-${l}`;if(e!==s||0===r.children.length)return null;let o=z?r.children.find(e=>e.label===z)??null:null;return(0,t.jsx)("div",{className:"absolute z-[var(--header-two-z-mega-panel)] m-0 box-border w-full border-t border-[var(--header-two-main-border)] bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-mega-shadow)]",id:`mega-${s}`,role:"region","aria-label":`${r.label} menu`,children:(0,t.jsxs)("div",{className:"mega-grid mx-auto grid w-full max-w-[var(--layout-container-max)] box-border [grid-template-columns:var(--header-two-mega-grid-template-columns)] px-[var(--header-two-mega-grid-padding-x)] py-[var(--header-two-mega-grid-padding-y)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:m,children:r.label}),(0,t.jsx)("ul",{className:`m-0 list-none overflow-y-auto p-0 ${h}`,children:r.children.map(e=>{let r=e.children.length>0,l=z===e.label;return(0,t.jsx)("li",{className:`bg-transparent py-[length:var(--header-two-mega-list-item-padding-y)] px-[length:var(--header-two-mega-list-item-padding-x)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]${l&&r?" active bg-[var(--header-two-mega-list-item-hover-bg)]!":""}`,onMouseEnter:()=>A(r?e.label:null),children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[length:var(--header-two-mega-sub-row-gap)]",children:[e.href?(0,t.jsx)(v,{href:e.href,target:e.target,className:`${p} min-w-0 flex-1`,children:e.label}):(0,t.jsx)("span",{className:`${p} min-w-0 flex-1`,children:e.label}),r&&(0,t.jsx)(a.ArrowIcon,{className:`h-[length:var(--header-two-mega-chevron-left-size)] w-[length:var(--header-two-mega-chevron-left-size)] shrink-0 rtl:rotate-180 ${l?"text-[var(--header-two-link-outline-text)]":"text-[var(--header-two-top-deep-color)]"}`,"aria-hidden":!0})]})},e.label)})})]}),(0,t.jsx)("div",{className:o?.children.length?`mega-col col-middle ${g}`:"mega-col col-middle",children:o?.children.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:"mb-[length:var(--header-two-mega-column-heading-margin-bottom)] text-[length:var(--header-two-font-size-mega-heading)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-line-height-mega-heading)] text-[var(--brand-white)]",children:o.label}),(0,t.jsx)("div",{className:`active overflow-y-auto ${h}`,children:o.children.map(e=>(0,t.jsx)(v,{href:e.href??"/",target:e.target,className:"block bg-transparent py-[length:var(--header-two-mega-sub-link-padding-y)] px-[length:var(--header-two-mega-sub-link-padding-x)]! text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mega-sub-link-color)] hover:bg-[var(--header-two-mega-list-item-hover-bg)]",children:e.label},e.label))})]}):(0,t.jsx)("div",{"aria-hidden":!0})}),(0,t.jsx)(x,{items:(n=(i=r).marketInsightPosts)&&n.length>0?("Company"===i.label?n.slice(0,2):n).map(e=>({id:e.id,href:e.url,title:e.title,date:(0,c.formatMegaInsightDate)(e.publishedAt??""),imageSrc:e.thumbnailUrl??e.featuredImageUrl??"",imageAlt:e.title})):[]})]})},s)}):null]})}e.s(["HeaderOneMainNav",()=>b])},731055,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(657688);e.i(716787);
160var i=e.i(659544);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(22584),c=e.i(902312),d=e.i(160741),u=e.i(578938),m=e.i(189015),h=e.i(285216),p=e.i(948148);let g="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]",v="h-[length:var(--header-two-mobile-chevron-left-size)] w-[length:var(--header-two-mobile-chevron-left-size)] shrink-0 text-[var(--header-two-mobile-nav-arrow-color)] rtl:rotate-180";function x({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}function b({href:e,children:a,onNavigate:r,target:l}){let i=e.startsWith("http")||"_blank"===l,s="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]";return i?(0,t.jsx)("a",{href:e,className:s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a}):(0,t.jsx)(n.Link,{href:e,className:s,onClick:r,children:a})}function f({open:e,panel:f,onClose:w,setPanel:y,utilityActions:j=[],logo:N,cmsCategoryLinks:_,cmsNav:k=[],premium:C=!1}){let S=(0,p.useTranslations)(),L=(0,n.useRouter)(),I=(0,c.useHasAuthSession)(),[z,A]=(0,s.useState)([]),q=k.length>0,E=(0,s.useMemo)(()=>j.find(e=>!(0,d.isAuthUtilityHref)(e.href)&&"primary"===e.type),[j]),$=(0,s.useMemo)(()=>(function(e,t){let a=e,r=null;for(let e of t){if(!(r=a[e]??null))return null;a=r.children}return r})(k,z),[k,z]),P=0===z.length?k:$?.children??[],T=q&&z.length>0,M=_&&_.length>0?_:[],O=(0,s.useCallback)(()=>{T?A(e=>e.slice(0,-1)):"industry-list"===f?y("products"):"market-trends"===f?y("market"):"account"===f?y("main"):"main"!==f&&y("main")},[T,f,y]),F=(0,s.useCallback)(()=>{A([]),w()},[w]),R=(0,s.useCallback)(()=>{let e=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(u.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,u.clearAuthSession)(),F(),(0,u.isAuthRequiredCommunityRoute)(e)||L.replace(o.routes.homePage)},[F,L]),B="main"===f&&!T,D=I?(0,u.getAuthDisplayProfile)():null,H=I?(0,u.getAuthProfileFormPrefill)().avatarUrl:null;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-overlay)] bg-[var(--header-two-overlay)]","aria-hidden":!0,onClick:F}),(0,t.jsxs)("aside",{className:`fixed start-0 top-0 z-[var(--header-two-z-sidebar)] flex h-dvh w-[var(--header-two-sidebar-width)] max-w-full flex-col overflow-hidden bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-sidebar-shadow)] transition-transform ease-in-out [transition-duration:var(--header-two-sidebar-transition-duration)] ${e?"translate-x-0":"-translate-x-full rtl:translate-x-full"}`,"data-open":e?"true":"false","aria-modal":!0,role:"dialog","aria-label":S("menu"),children:[(0,t.jsxs)("div",{className:`flex shrink-0 items-center justify-between px-[var(--header-two-mobile-header-padding-x-mobile)] md:px-[var(--header-two-mobile-header-padding-x-desktop)] py-[var(--header-two-mobile-header-padding-y-mobile)] md:py-[var(--header-two-mobile-header-padding-y-desktop)] ${C?"border-b border-[color:var(--h1p-tier2-border)] bg-[var(--h1p-nav-drawer-header-bg)]":"bg-[var(--header-two-top-bg)]"}`,children:[(0,t.jsx)(n.Link,{href:N.href,onClick:F,children:(0,t.jsx)(l.default,{src:C?N.src:N.darkSrc??N.src,alt:N.alt,width:163,height:60,sizes:"163px",className:"h-[length:var(--header-two-mobile-logo-height)] w-auto object-contain",style:{width:"auto",height:"auto"}})}),(0,t.jsx)("button",{type:"button",className:"border-0 bg-transparent p-[var(--header-two-mobile-close-button-padding)]","aria-label":S("close_menu"),onClick:F,children:(0,t.jsx)(r.ClearIcon,{className:`w-6 h-6 ${C?"text-[var(--h1p-nav-drawer-header-text)]":"text-[var(--header-two-top-text-color)]"}`})})]}),"main"!==f||T?(0,t.jsx)("div",{children:(0,t.jsxs)("button",{type:"button",className:"flex items-center justify-between gap-[length:var(--header-two-mobile-back-gap)] pt-[var(--header-two-mobile-back-padding-top)] px-[var(--header-two-mobile-back-padding-x)] text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-link-outline-text)]",onClick:O,children:[(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mobile-chevron-right-size)] w-[length:var(--header-two-mobile-chevron-right-size)] shrink-0 rotate-180 rtl:rotate-0 text-[var(--header-two-link-outline-text)]"}),S("back")]})}):null,(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col justify-between px-[var(--header-two-mobile-shell-padding-x)] ${!B?"pb-[var(--header-two-mobile-shell-padding-y)] pt-0":"py-[var(--header-two-mobile-shell-padding-y)]"}`,children:[(0,t.jsxs)("div",{className:"min-h-0 overflow-y-auto",children:[I&&B&&D?(0,t.jsxs)("button",{type:"button",className:"mb-0 flex w-full items-center gap-[var(--header-two-mobile-profile-gap)] border-b border-[var(--header-two-main-border)] bg-transparent pb-[length:var(--header-two-mobile-nav-item-padding-y)] text-start",onClick:()=>y("account"),children:[(0,t.jsx)("span",{className:"relative flex h-[length:var(--header-two-mobile-profile-avatar-size)] w-[length:var(--header-two-mobile-profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-white",style:H?{backgroundImage:`url(${H})`}:void 0,children:H?null:function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(D)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-semibold)] leading-[length:var(--header-two-font-line-height-regular)] text-[var(--header-two-mobile-profile-name-color)]",children:D.name}),D.email?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-mobile-profile-email-color)]",children:D.email}):null]}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):null,"account"===f?(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.profile,onNavigate:F,children:[S("my_profile"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.leads,onNavigate:F,children:[S("my_leads"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.orders,onNavigate:F,children:[S("my_orders"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`${g} text-[var(--header-two-mobile-sign-out-color)]`,onClick:R,children:[(0,t.jsx)("span",{children:S("sign_out")}),(0,t.jsx)(x,{className:"h-[length:var(--header-two-mobile-sign-out-icon-size)] w-[length:var(--header-two-mobile-sign-out-icon-size)] shrink-0 text-[var(--header-two-mobile-sign-out-color)]"})]})})]}):null,q&&"account"!==f?(0,t.jsx)("ul",{children:P.map((e,r)=>{let l=e.children.length>0,i=!!e.href;return(0,t.jsx)("li",{children:l?(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>A(e=>[...e,r]),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):i?(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}):(0,t.jsx)("span",{className:g,children:e.label})},`${e.label}-${r}`)})}):null,"main"!==f||q?null:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("company"),children:[S("company"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("products"),className:g,children:[S("products"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("market"),className:g,children:[S("market_insights"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("learning"),className:g,children:[S("learning_center"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.COMMUNITY_HREF,onNavigate:F,children:S("community")})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.CAREER_HREF,onNavigate:F,children:S("career")})})]}),"company"!==f||q?null:(0,t.jsx)("ul",{children:m.COMPANY_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.id))}),"products"!==f||q?null:(0,t.jsx)("ul",{children:m.PRODUCT_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:"showChevron"in e&&e.showChevron?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(n.Link,{href:e.href,className:g,onClick:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} — subcategories`,onClick:()=>y("industry-list"),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.label))}),"industry-list"!==f||q?null:(0,t.jsx)("ul",{children:M.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_LEFT_LINKS.map(e=>"subPanel"in e&&"market-trends"===e.subPanel?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("market-trends"),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]})},e.label):(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market-trends"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_TRENDS_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"learning"!==f||q?null:(0,t.jsx)("ul",{children:m.LEARNING_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))})]}),B&&j.length>0?(0,t.jsx)("div",{className:`shrink-0 pt-[var(--header-two-mobile-footer-gap)] ${C?"md:hidden":""}`,children:I&&E?(0,t.jsx)(i.Button,{variant:"primary",href:E.href,title:E.label,target:E.openInNewTab?"_blank":void 0,rel:E.openInNewTab?"noopener noreferrer":void 0,className:"w-full",onClick:F,children:E.label}):(0,t.jsx)("div",{className:"flex gap-[var(--header-two-mobile-footer-gap)]",children:(0,t.jsx)(h.HeaderUtilityActions,{actions:j,variant:"mobile",onNavigate:F})})}):null]})]})]}):null}e.s(["HeaderOneMobileSidebars",()=>f])},82760,232660,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=a,l={x:0,y:0,width:0,height:0,unit:"px"},i=(e,t,a)=>Math.min(Math.max(e,t),a),n=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function s(e,t,a,r){let l=d(e,a,r);return e.width&&(l.height=l.width/t),e.height&&(l.width=l.height*t),l.y+l.height>r&&(l.height=r-l.y,l.width=l.height*t),l.x+l.width>a&&(l.width=a-l.x,l.height=l.width/t),"%"===e.unit?c(l,a,r):l}function o(e,t,a){let r=d(e,t,a);return r.x=(t-r.width)/2,r.y=(a-r.height)/2,"%"===e.unit?c(r,t,a):r}function c(e,t,a){return"%"===e.unit?{...l,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/a*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/a*100:0}}function d(e,t,a){return e.unit&&"px"!==e.unit?{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*a/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*a/100:0}:{...l,...e,unit:"px"}}function u(e,t,a,r,l,i=0,n=0,s=r,o=l){let c={...e},d=Math.min(i,r),m=Math.min(n,l),h=Math.min(s,r),p=Math.min(o,l);t&&(t>
1601?(m=(d=n?n*t:d)/t,h=s*t):(d=(m=i?i/t:m)*t,p=o/t)),c.y<0&&(c.height=Math.max(c.height+c.y,m),c.y=0),c.x<0&&(c.width=Math.max(c.width+c.x,d),c.x=0);let g=r-(c.x+c.width);g<0&&(c.x=Math.min(c.x,r-d),c.width+=g);let v=l-(c.y+c.height);if(v<0&&(c.y=Math.min(c.y,l-m),c.height+=v),c.width<d&&(("sw"===a||"nw"==a)&&(c.x-=d-c.width),c.width=d),c.height<m&&(("nw"===a||"ne"==a)&&(c.y-=m-c.height),c.height=m),c.width>h&&(("sw"===a||"nw"==a)&&(c.x-=h-c.width),c.width=h),c.height>p&&(("nw"===a||"ne"==a)&&(c.y-=p-c.height),c.height=p),t){let e=c.width/c.height;if(e<t){let e=Math.max(c.width/t,m);("nw"===a||"ne"==a)&&(c.y-=e-c.height),c.height=e}else if(e>t){let e=Math.max(c.height*t,d);("sw"===a||"nw"==a)&&(c.x-=e-c.width),c.width=e}}return c}var m={capture:!0,passive:!1},h=0,p=class e extends r.PureComponent{static xOrds=["e","w"];static yOrds=["n","s"];static xyOrds=["nw","ne","se","sw"];static nudgeStep=1;static nudgeStepMedium=10;static nudgeStepLarge=100;static defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};get document(){return document}docMoveBound=!1;mouseDownOnCrop=!1;dragStarted=!1;evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0};componentRef=(0,r.createRef)();mediaRef=(0,r.createRef)();resizeObserver;initChangeCalled=!1;instanceId=`rc-${h++}`;state={cropIsActive:!1,newCropIsBeingDrawn:!1};getBox(){let e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};let{x:t,y:a,width:r,height:l}=e.getBoundingClientRect();return{x:t,y:a,width:r,height:l}}componentDidUpdate(e){let{crop:t,onComplete:a}=this.props;if(a&&!e.crop&&t){let{width:e,height:r}=this.getBox();e&&r&&a(d(t,e,r),c(t,e,r))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect(),this.unbindDocMove()}bindDocMove(){this.docMoveBound||=(this.document.addEventListener("pointermove",this.onDocPointerMove,m),this.document.addEventListener("pointerup",this.onDocPointerDone,m),this.document.addEventListener("pointercancel",this.onDocPointerDone,m),!0)}unbindDocMove(){this.docMoveBound&&=(this.document.removeEventListener("pointermove",this.onDocPointerMove,m),this.document.removeEventListener("pointerup",this.onDocPointerDone,m),this.document.removeEventListener("pointercancel",this.onDocPointerDone,m),!1)}onCropPointerDown=e=>{let{crop:t,disabled:a}=this.props,r=this.getBox();if(!t)return;let l=d(t,r.width,r.height);if(a)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let i=e.target.dataset.ord,n=e.clientX,s=e.clientY,o=l.x,c=l.y;if(i){let t=e.clientX-r.x,a=e.clientY-r.y,d=0,u=0;"ne"===i||"e"==i?(d=t-(l.x+l.width),u=a-l.y,o=l.x,c=l.y+l.height):"se"===i||"s"===i?(d=t-(l.x+l.width),u=a-(l.y+l.height),o=l.x,c=l.y):"sw"===i||"w"==i?(d=t-l.x,u=a-(l.y+l.height),o=l.x+l.width,c=l.y):("nw"===i||"n"==i)&&(d=t-l.x,u=a-l.y,o=l.x+l.width,c=l.y+l.height),n=o+r.x+d,s=c+r.y+u}this.evData={startClientX:n,startClientY:s,startCropX:o,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!!i,ord:i},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})};onComponentPointerDown=e=>{let{crop:t,disabled:a,locked:r,keepSelection:l,onChange:i}=this.props,n=this.getBox();if(a||r||l&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});let s=e.clientX-n.x,o=e.clientY-n.y,u={unit:"px",x:s,y:o,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:s,startCropY:o,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,i(d(u,n.width,n.height),c(u,n.width,n.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})};onDocPointerMove=e=>{let t,{crop:a,disabled:r,onChange:l,onDragStart:i}=this.props,s=this.getBox();if(r||!a||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,i&&i(e));let{evData:o}=this;o.clientX=e.clientX,o.clientY=e.clientY,n(a,t=o.isResize?this.resizeCrop():this.dragCrop())||l(d(t,s.width,s.height),c(t,s.width,s.height))};onComponentKeyDown=t=>{let{crop:a,disabled:r,onChange:l,onComplete:n}=this.props;if(r)return;let s=t.key,o=!1;if(!a)return;let u=this.getBox(),m=this.makePixelCrop(u),h=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===s?(m.x-=h,o=!0):"ArrowRight"===s?(m.x+=h,o=!0):"ArrowUp"===s?(m.y-=h,o=!0):"ArrowDown"===s&&(m.y+=h,o=!0),o){t.cancelable&&t.preventDefault(),m.x=i(m.x,0,u.width-m.width),m.y=i(m.y,0,u.height-m.height);let e=d(m,u.width,u.height),a=c(m,u.width,u.height);l(e,a),n&&n(e,a)}};onHandlerKeyDown=(t,a)=>{var r,l;let i,{aspect:s=0,crop:o,disabled:m,minWidth:h=0,minHeight:p=0,maxWidth:g,maxHeight:v,onCh
160ange:x,onComplete:b}=this.props,f=this.getBox();if(m||!o||"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();let w=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,y=u((r=d(o,f.width,f.height),l=t.key,i={...r},"ArrowLeft"===l?"nw"===a?(i.x-=w,i.y-=w,i.width+=w,i.height+=w):"w"===a?(i.x-=w,i.width+=w):"sw"===a?(i.x-=w,i.width+=w,i.height+=w):"ne"===a?(i.y+=w,i.width-=w,i.height-=w):"e"===a?i.width-=w:"se"===a&&(i.width-=w,i.height-=w):"ArrowRight"===l&&("nw"===a?(i.x+=w,i.y+=w,i.width-=w,i.height-=w):"w"===a?(i.x+=w,i.width-=w):"sw"===a?(i.x+=w,i.width-=w,i.height-=w):"ne"===a?(i.y-=w,i.width+=w,i.height+=w):"e"===a?i.width+=w:"se"===a&&(i.width+=w,i.height+=w)),"ArrowUp"===l?"nw"===a?(i.x-=w,i.y-=w,i.width+=w,i.height+=w):"n"===a?(i.y-=w,i.height+=w):"ne"===a?(i.y-=w,i.width+=w,i.height+=w):"sw"===a?(i.x+=w,i.width-=w,i.height-=w):"s"===a?i.height-=w:"se"===a&&(i.width-=w,i.height-=w):"ArrowDown"===l&&("nw"===a?(i.x+=w,i.y+=w,i.width-=w,i.height-=w):"n"===a?(i.y+=w,i.height-=w):"ne"===a?(i.y+=w,i.width-=w,i.height-=w):"sw"===a?(i.x-=w,i.width+=w,i.height+=w):"s"===a?i.height+=w:"se"===a&&(i.width+=w,i.height+=w)),i),s,a,f.width,f.height,h,p,g,v);if(!n(o,y)){let e=c(y,f.width,f.height);x(y,e),b&&b(y,e)}};onDocPointerDone=e=>{let{crop:t,disabled:a,onComplete:r,onDragEnd:l}=this.props,i=this.getBox();this.unbindDocMove(),!(a||!t)&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,l&&l(e),r&&r(d(t,i.width,i.height),c(t,i.width,i.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))};onDragFocus=()=>{this.componentRef.current?.scrollTo(0,0)};getCropStyle(){let{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){let{evData:e}=this,t=this.getBox(),a=this.makePixelCrop(t),r=e.clientX-e.startClientX,l=e.clientY-e.startClientY;return a.x=i(e.startCropX+r,0,t.width-a.width),a.y=i(e.startCropY+l,0,t.height-a.height),a}getPointRegion(e,t,a,r){let{evData:l}=this,i=l.clientX-e.x,n=l.clientY-e.y,s;return s=r&&t?"nw"===t||"n"===t||"ne"===t:n<l.startCropY,(a&&t?"nw"===t||"w"===t||"sw"===t:i<l.startCropX)?s?"nw":"sw":s?"ne":"se"}resolveMinDimensions(e,t,a=0,r=0){let l=Math.min(a,e.width),i=Math.min(r,e.height);return t&&(l||i)?t>1?l?[l,l/t]:[i*t,i]:i?[i*t,i]:[l,l/t]:[l,i]}resizeCrop(){let{evData:t}=this,{aspect:a=0,maxWidth:r,maxHeight:l}=this.props,n=this.getBox(),[s,o]=this.resolveMinDimensions(n,a,this.props.minWidth,this.props.minHeight),c=this.makePixelCrop(n),d=this.getPointRegion(n,t.ord,s,o),m=t.ord||d,h=t.clientX-t.startClientX,p=t.clientY-t.startClientY;(s&&"nw"===m||"w"===m||"sw"===m)&&(h=Math.min(h,-s)),(o&&"nw"===m||"n"===m||"ne"===m)&&(p=Math.min(p,-o));let g={unit:"px",x:0,y:0,width:0,height:0};"ne"===d?(g.x=t.startCropX,g.width=h,a?g.height=g.width/a:g.height=Math.abs(p),g.y=t.startCropY-g.height):"se"===d?(g.x=t.startCropX,g.y=t.startCropY,g.width=h,a?g.height=g.width/a:g.height=p):"sw"===d?(g.x=t.startCropX+h,g.y=t.startCropY,g.width=Math.abs(h),a?g.height=g.width/a:g.height=p):"nw"===d&&(g.x=t.startCropX+h,g.width=Math.abs(h),a?(g.height=g.width/a,g.y=t.startCropY-g.height):(g.height=Math.abs(p),g.y=t.startCropY+p));let v=u(g,a,d,n.width,n.height,s,o,r,l);return a||e.xyOrds.indexOf(m)>-1?c=v:e.xOrds.indexOf(m)>-1?(c.x=v.x,c.width=v.width):e.yOrds.indexOf(m)>-1&&(c.y=v.y,c.height=v.height),c.x=i(c.x,0,n.width-c.width),c.y=i(c.y,0,n.height-c.height),c}renderCropSelection(){let{ariaLabels:t=e.defaultProps.ariaLabels,disabled:a,locked:l,renderSelectionAddon:i,ruleOfThirds:n,crop:s}=this.props,o=this.getCropStyle();if(s)return r.default.createElement("div",{style:o,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!a&&!l&&r.default.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},r.default.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),r.default.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),r.default.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),r.default.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),r.default.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),i&&r.default.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},i(this.state)),n&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),r.default.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return d({...l,...this.props.crop||{}},e.width,e.height)}render(){let{aspect:e,children:t,circularCrop:a,className:l,crop:i,disabled:n,locked:s,style:o,ruleOfThirds:c}=this.props,{cropIsActive:d,newCropIsBeingDrawn:u}=this.state,m=i?this.renderCropSelection():null,h=((...e)=>e.filter(e=>e&&"string"==typeof e).join(" "))("ReactCrop",l,d&&"ReactCrop--active",n&&"ReactCrop--disabled",s&&"ReactCrop--locked",u&&"ReactCrop--new-crop",i&&e&&"ReactCrop--fixed-aspect",i&&a&&"ReactCrop--circular-crop",i&&c&&"ReactCrop--rule-of-thirds",!this.dragStarted&&i&&!i.width&&!i.height&&"ReactCrop--invisible-crop",a&&"ReactCrop--no-animate");return r.default.createElement("div",{ref:this.componentRef,className:h,style:o},r.default.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),i?r.default.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},r.default.createElement("defs",null,r.default.createElement("mask",{id:`hole-${this.instanceId}`},r.default.createElement("rect",{width:"100%",height:"100%",fill:"white"}),a?r.default.createElement("ellipse",{cx:`${i.x+i.width/2}${i.unit}`,cy:`${i.y+i.height/2}${i.unit}`,rx:`${i.width/2}${i.unit}`,ry:`${i.height/2}${i.unit}`,fill:"black"}):r.default.createElement("rect",{x:`${i.x}${i.unit}`,y:`${i.y}${i.unit}`,width:`${i.width}${i.unit}`,height:`${i.height}${i.unit}`,fill:"black"}))),r.default.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,m)}},g=Math.PI/180;async function v(e,t,a,r=1,l=0){let i=t.getContext("2d");if(!i)throw Error("No 2d context");
160let n=e.naturalWidth/e.width,s=e.naturalHeight/e.height,o=window.devicePixelRatio;t.width=Math.floor(a.width*n*o),t.height=Math.floor(a.height*s*o),i.scale(o,o),i.imageSmoothingQuality="high";let c=a.x*n,d=a.y*s,u=e.naturalWidth/2,m=e.naturalHeight/2;i.save(),i.translate(-c,-d),i.translate(u,m),i.rotate(l*g),i.scale(r,r),i.translate(-u,-m),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore()}function x({imageSrc:e,onCropAreaChange:r,onImageRef:l}){let[i,n]=(0,a.useState)(),c=(0,a.useRef)(null),d=(0,a.useCallback)(e=>{let t=e.currentTarget;c.current=t,l(t);let{width:a,height:r}=t;n(o(s({unit:"%",width:80},1,a,r),a,r))},[l]),u=(0,a.useCallback)(e=>{e.width>0&&e.height>0&&r(e)},[r]);return(0,t.jsx)("div",{className:"profile-photo-cropper mx-auto w-full max-w-full",children:(0,t.jsx)(p,{crop:i,onChange:(e,t)=>n(t),onComplete:u,aspect:1,keepSelection:!0,className:"profile-photo-cropper__react-crop ReactCrop--no-animate",children:(0,t.jsx)("img",{ref:c,src:e,alt:"",onLoad:d,className:"profile-photo-cropper__image max-h-[220px] w-full object-contain"})})})}e.s(["centerCrop",()=>o,"cropToCanvas",()=>v,"default",()=>p,"makeAspectCrop",()=>s],232660),e.s(["ProfilePhotoCropper",()=>x],82760)},84753,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(527967);var l=e.i(830167);function i(e){let t=e.trim();if(!t)return null;let a=Number(t);return Number.isFinite(a)?a:null}function n({id:e,name:n,required:s,placeholder:o,ariaLabel:c,className:d}){let u=(0,r.useTranslations)(),m=(0,a.useRef)(null);function h(e){let t=Math.max(1,Math.floor(e));m.current&&(m.current.value=String(t))}return(0,a.useEffect)(()=>{let e=m.current?.form;if(e)return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t);function t(){m.current&&(m.current.value="")}},[]),(0,t.jsxs)("div",{className:"banner-one-qty-input relative min-w-0",children:[(0,t.jsx)("input",{ref:m,type:"text",inputMode:"numeric",pattern:"[0-9]*",id:e,name:n,required:s,placeholder:o,"aria-label":c,defaultValue:"",className:`banner-one-qty-field ${d}`,onChange:e=>{var t;!(""===(t=e.target.value)||/^\d+$/.test(t))&&m.current&&(m.current.value=t.replace(/\D/g,""))}}),(0,t.jsxs)("div",{className:"banner-one-qty-spinners absolute inset-y-0 end-[var(--banner-one-qty-spinner-inset-inline-end)] flex w-[var(--banner-one-qty-spinner-width)] flex-col justify-center gap-[var(--banner-one-qty-spinner-gap)]",children:[(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_increase"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){h((i(m.current?.value??"")??0)+1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] -rotate-90"})}),(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_decrease"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){let e=i(m.current?.value??"");null===e||e<=1||h(e-1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] rotate-90"})})]})]})}e.s(["QuantitySpinnerInput",()=>n])},786491,e=>{e.v({quantityGroup:"BannerSectionOne-module__cKwiYa__quantityGroup",rfqBanner:"BannerSectionOne-module__cKwiYa__rfqBanner",rfqDecorImage:"BannerSectionOne-module__cKwiYa__rfqDecorImage",rfqDecorImageImg:"BannerSectionOne-module__cKwiYa__rfqDecorImageImg",rfqDescription:"BannerSectionOne-module__cKwiYa__rfqDescription",rfqField:"BannerSectionOne-module__cKwiYa__rfqField",rfqFieldMessage:"BannerSectionOne-module__cKwiYa__rfqFieldMessage",rfqFormBody:"BannerSectionOne-module__cKwiYa__rfqFormBody",rfqFormColLeft:"BannerSectionOne-module__cKwiYa__rfqFormColLeft",rfqFormColRight:"BannerSectionOne-module__cKwiYa__rfqFormColRight",rfqFormFooter:"BannerSectionOne-module__cKwiYa__rfqFormFooter",rfqFormMessage:"BannerSectionOne-module__cKwiYa__rfqFormMessage",rfqFormMessageError:"BannerSectionOne-module__cKwiYa__rfqFormMessageError",rfqFormMessageSuccess:"BannerSectionOne-module__cKwiYa__rfqFormMessageSuccess",rfqIcon:"BannerSectionOne-module__cKwiYa__rfqIcon",rfqIconGlyph:"BannerSectionOne-module__cKwiYa__rfqIconGlyph",rfqInput:"BannerSectionOne-module__cKwiYa__rfqInput",rfqIntro:"BannerSectionOne-module__cKwiYa__rfqIntro",rfqIntroText:"BannerSectionOne-module__cKwiYa__rfqIntroText",rfqLabel:"BannerSectionOne-module__cKwiYa__rfqLabel",rfqRecaptcha:"BannerSectionOne-module__cKwiYa__rfqRecaptcha",rfqSelect:"BannerSectionOne-module__cKwiYa__rfqSelect",rfqSubmit:"BannerSectionOne-module__cKwiYa__rfqSubmit",rfqSubmitIcon:"BannerSectionOne-module__cKwiYa__rfqSubmitIcon",rfqTextarea:"BannerSectionOne-module__cKwiYa__rfqTextarea",rfqTitle:"BannerSectionOne-module__cKwiYa__rfqTitle",rfqTitleAccent:"BannerSectionOne-module__cKwiYa__rfqTitleAccent",uomSelectArrow:"BannerSectionOne-module__cKwiYa__uomSelectArrow",uomSelectArrowIcon:"BannerSectionOne-module__cKwiYa__uomSelectArrowIcon",uomSelectWrap:"BannerSectionOne-module__cKwiYa__uomSelectWrap"})},243990,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645);e.i(716787);var l=e.i(659544);e.i(527967);var i=e.i(830167),n=e.i(203286),s=e.i(134962),o=e.i(84753),c=e.i(956091),d=e.i(647898),u=e.i(786491);function m(e){let t=e.trim();return t?t.endsWith("*")?t:`${t} *`:"*"}function h({parsedEmbed:e,recaptchaSiteKey:h,productNamePlaceholder:p,quantityPlaceholder:g,quantityAriaLabel:v,emailPlaceholder:x,messagesPlaceholder:b,uomPlaceholder:f,uomAriaLabel:w,submitLabel:y,submitAriaLabel:j,successMessage:N,inquiryTitle:_,inquiryDescription:k,decorImageSrc:C,decorImageAlt:S,productNameLabel:L,quantityLabel:I,emailLabel:z,messageLabel:A}){let[q,E]=(0,r.useState)(!1),[$,P]=(0,r.useState)(null),T=(0,r.useRef)(!1),M=(0,r.useRef)(null),{emailInputRef:O}=(0,n.useAuthEmailPrefill)(),F=h?(0,t.jsx)("div",{className:u.default.rfqRecaptcha,children:(0,t.jsx)(c.RecaptchaWidget,{siteKey:h})}):null;(0,r.useEffect)(()=>
160{if(!$||!h)return;let e=window.setInterval(()=>{let e=M.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&P(null)},400);return()=>window.clearInterval(e)},[$,h]);let R=e.visibleFields,B=R.find(e=>"product"===e.role),D=R.find(e=>"qty"===e.role),H=R.find(e=>"uom"===e.role),U=R.find(e=>"email"===e.role),G=R.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){T.current&&(T.current=!1,M.current?.reset(),(0,d.resetRecaptcha)(M.current),P(null),E(!0),setTimeout(()=>E(!1),4e3))}}),(0,t.jsxs)("form",{ref:M,className:u.default.rfqBanner,action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(h){let t=M.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),T.current=!1,E(!1),P("Please complete reCAPTCHA.");return}P(null)}T.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("div",{className:u.default.rfqIntro,children:[(0,t.jsx)("span",{className:u.default.rfqIcon,"aria-hidden":!0,children:(0,t.jsx)("span",{className:u.default.rfqIconGlyph})}),(0,t.jsxs)("div",{className:u.default.rfqIntroText,children:[(0,t.jsx)("h2",{className:u.default.rfqTitle,children:_}),(0,t.jsx)("span",{className:u.default.rfqTitleAccent,"aria-hidden":!0}),(0,t.jsx)("p",{className:u.default.rfqDescription,children:k})]})]}),(0,t.jsxs)("div",{className:u.default.rfqFormBody,children:[(0,t.jsxs)("div",{className:u.default.rfqFormColLeft,children:[B?(0,t.jsxs)("div",{className:u.default.rfqField,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:B.id,children:L}),(0,t.jsx)(s.ProductNameAutocompleteInput,{id:B.id,name:B.name,required:!0,placeholder:m(p),className:u.default.rfqInput})]}):null,U?(0,t.jsxs)("div",{className:u.default.rfqField,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:U.id,children:z}),(0,t.jsx)("input",{ref:O,type:"email",id:U.id,name:U.name,maxLength:U.maxLength,required:!0,placeholder:m(x),className:u.default.rfqInput})]}):null,F]}),(0,t.jsxs)("div",{className:u.default.rfqFormColRight,children:[H?(0,t.jsxs)("div",{className:u.default.rfqField,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:D?.id??H.id,children:I}),(0,t.jsxs)("div",{className:u.default.quantityGroup,children:[D?(0,t.jsx)(o.QuantitySpinnerInput,{id:D.id,name:D.name,required:!0,placeholder:m(g),ariaLabel:v,className:u.default.rfqInput}):null,(0,t.jsxs)("div",{className:u.default.uomSelectWrap,children:[(0,t.jsxs)("select",{id:H.id,name:H.name,required:!0,defaultValue:"","aria-label":w,className:u.default.rfqSelect,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:m(f)}),H.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:a},e))]}),(0,t.jsx)("span",{className:u.default.uomSelectArrow,"aria-hidden":!0,children:(0,t.jsx)(i.ArrowIcon,{className:u.default.uomSelectArrowIcon})})]})]})]}):null,G?(0,t.jsxs)("div",{className:`${u.default.rfqField} ${u.default.rfqFieldMessage}`,children:[(0,t.jsx)("label",{className:u.default.rfqLabel,htmlFor:G.id,children:A}),(0,t.jsx)("textarea",{id:G.id,name:G.name,rows:G.rows,placeholder:b,className:u.default.rfqTextarea})]}):null,(0,t.jsxs)("div",{className:u.default.rfqFormFooter,children:[q?(0,t.jsx)("p",{className:`${u.default.rfqFormMessage} ${u.default.rfqFormMessageSuccess}`,children:N||"Thank you! We'll be in touch."}):$?(0,t.jsx)("p",{className:`${u.default.rfqFormMessage} ${u.default.rfqFormMessageError}`,children:$}):null,(0,t.jsxs)(l.Button,{variant:"primary",type:"submit","aria-label":j,className:u.default.rfqSubmit,children:[y,(0,t.jsx)(i.ArrowIcon,{className:u.default.rfqSubmitIcon})]})]})]})]}),(0,t.jsx)("div",{className:u.default.rfqDecorImage,"aria-hidden":!0,children:(0,t.jsx)(a.default,{src:C,alt:S,fill:!0,sizes:"(max-width: 1023px) 0px, 280px",className:u.default.rfqDecorImageImg})})]})]})}e.s(["SalesforceEmbedForm",()=>h],243990)},851858,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(3303),l=e.i(861745),i=e.i(647898);function n({siteKey:e}){let n=(0,l.useLocale)(),s=(0,i.toRecaptchaHl)(n),o=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(!1),[u,m]=(0,a.useState)(1),[h,p]=(0,a.useState)(!1);return(0,a.useEffect)(()=>
160{if(d.current||h)return;let e=()=>{d.current||(d.current=!0,p(!0))},t=()=>window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0;if(t()>=100)return void e();let a=()=>{100>t()||(e(),window.removeEventListener("scroll",a))};return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[h]),(0,a.useEffect)(()=>{let e=()=>{m(Math.min(1,(o.current?.offsetWidth??304)/304))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,a.useEffect)(()=>{if(!h)return;let t=c.current;if(t)return(0,i.bindExplicitRecaptcha)(t,e,{hl:s})},[h,e,s]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(r.default,{id:`recaptcha-api-${s}`,src:(0,i.recaptchaExplicitSrc)(s),strategy:"afterInteractive"}),(0,t.jsx)("div",{ref:o,className:"w-full overflow-hidden",style:{height:`${78*u}px`},children:(0,t.jsx)("div",{ref:c,className:"g-recaptcha origin-top-left rtl:origin-top-right",style:{transform:`scale(${u})`}},s)})]})}e.s(["RecaptchaWidget",()=>n])},713229,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(527967);var l=e.i(830167);function i(e){let t=e.trim();if(!t)return null;let a=Number(t);return Number.isFinite(a)?a:null}function n({id:e,name:n,required:s,placeholder:o,ariaLabel:c,className:d}){let u=(0,r.useTranslations)(),m=(0,a.useRef)(null);function h(e){let t=Math.max(1,Math.floor(e));m.current&&(m.current.value=String(t))}return(0,a.useEffect)(()=>{let e=m.current?.form;if(e)return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t);function t(){m.current&&(m.current.value="")}},[]),(0,t.jsxs)("div",{className:"banner-one-qty-input relative min-w-0",children:[(0,t.jsx)("input",{ref:m,type:"text",inputMode:"numeric",pattern:"[0-9]*",id:e,name:n,required:s,placeholder:o,"aria-label":c,defaultValue:"",className:`banner-one-qty-field ${d}`,onChange:e=>{var t;!(""===(t=e.target.value)||/^\d+$/.test(t))&&m.current&&(m.current.value=t.replace(/\D/g,""))}}),(0,t.jsxs)("div",{className:"banner-one-qty-spinners absolute inset-y-0 end-[var(--banner-one-qty-spinner-inset-inline-end)] flex w-[var(--banner-one-qty-spinner-width)] flex-col justify-center gap-[var(--banner-one-qty-spinner-gap)]",children:[(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_increase"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){h((i(m.current?.value??"")??0)+1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] -rotate-90"})}),(0,t.jsx)("button",{type:"button",tabIndex:-1,"aria-label":u("quantity_decrease"),className:"banner-one-qty-spinner-button flex h-[var(--banner-one-qty-spinner-button-size)] items-center justify-center border-0 bg-transparent p-0 text-[var(--banner-one-qty-spinner-color)]",onMouseDown:e=>e.preventDefault(),onClick:function(){let e=i(m.current?.value??"");null===e||e<=1||h(e-1)},children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--banner-one-qty-spinner-icon-size)] w-[var(--banner-one-qty-spinner-icon-size)] rotate-90"})})]})]})}e.s(["QuantitySpinnerInput",()=>n])},651902,e=>{e.v({banner:"BannerSectionOne-module__ierQoG__banner",quantityGroup:"BannerSectionOne-module__ierQoG__quantityGroup",rfqBanner:"BannerSectionOne-module__ierQoG__rfqBanner",rfqDescription:"BannerSectionOne-module__ierQoG__rfqDescription",rfqField:"BannerSectionOne-module__ierQoG__rfqField",rfqFieldEmail:"BannerSectionOne-module__ierQoG__rfqFieldEmail",rfqFieldMessage:"BannerSectionOne-module__ierQoG__rfqFieldMessage",rfqFieldProduct:"BannerSectionOne-module__ierQoG__rfqFieldProduct",rfqFieldQty:"BannerSectionOne-module__ierQoG__rfqFieldQty",rfqFormBody:"BannerSectionOne-module__ierQoG__rfqFormBody",rfqFormFooter:"BannerSectionOne-module__ierQoG__rfqFormFooter",rfqFormGrid:"BannerSectionOne-module__ierQoG__rfqFormGrid",rfqFormMessage:"BannerSectionOne-module__ierQoG__rfqFormMessage",rfqFormMessageError:"BannerSectionOne-module__ierQoG__rfqFormMessageError",rfqFormMessageSuccess:"BannerSectionOne-module__ierQoG__rfqFormMessageSuccess",rfqInput:"BannerSectionOne-module__ierQoG__rfqInput",rfqIntro:"BannerSectionOne-module__ierQoG__rfqIntro",rfqLabel:"BannerSectionOne-module__ierQoG__rfqLabel",rfqRecaptcha:"BannerSectionOne-module__ierQoG__rfqRecaptcha",rfqSelect:"BannerSectionOne-module__ierQoG__rfqSelect",rfqSubmit:"BannerSectionOne-module__ierQoG__rfqSubmit",rfqTextarea:"BannerSectionOne-module__ierQoG__rfqTextarea",rfqTitle:"BannerSectionOne-module__ierQoG__rfqTitle",rfqTitleLeaf:"BannerSectionOne-module__ierQoG__rfqTitleLeaf",rfqTitleRow:"BannerSectionOne-module__ierQoG__rfqTitleRow",uomSelectArrow:"BannerSectionOne-module__ierQoG__uomSelectArrow",uomSelectArrowIcon:"BannerSectionOne-module__ierQoG__uomSelectArrowIcon",uomSelectWrap:"BannerSectionOne-module__ierQoG__uomSelectWrap"})},101927,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(242405);e.i(716787);var l=e.i(659544);e.i(527967);var i=e.i(830167),n=e.i(203286),s=e.i(134962),o=e.i(713229),c=e.i(851858),d=e.i(647898),u=e.i(948148),m=e.i(651902);function h(e){let t=e.trim();return t?t.endsWith("*")?t:`${t} *`:"*"}function p({parsedEmbed:e,recaptchaSiteKey:p,productNamePlaceholder:g,quantityPlaceholder:v,quantityAriaLabel:x,emailPlaceholder:b,messagesPlaceholder:f,uomPlaceholder:w,uomAriaLabel:y,submitLabel:j,submitAriaLabel:N,successMessage:_,inquiryTitle:k,inquiryDescription:C,productNameLabel:S,quantityLabel:L,emailLabel:I,messageLabel:z}){let A=(0,u.useTranslations)(),{emailInputRef:q}=(0,n.useAuthEmailPrefill)(),[E,$]=(0,a.useState)(!1),[P,T]=(0,a.useState)(null),M=(0,a.useRef)(!1),O=(0,a.useRef)(null),F=(0,r.useMediaQuery)("(min-width: 1024px)"),R=p?(0,t.jsx)("div",{className:m.default.rfqRecaptcha,children:(0,t.jsx)(c.RecaptchaWidget,{siteKey:p})}):null;(0,a.useEffect)(()=>
160{if(!P||!p)return;let e=window.setInterval(()=>{let e=O.current?.querySelector('textarea[name="g-recaptcha-response"]');e?.value?.trim()&&T(null)},400);return()=>window.clearInterval(e)},[P,p]);let B=e.visibleFields,D=B.find(e=>"product"===e.role),H=B.find(e=>"qty"===e.role),U=B.find(e=>"uom"===e.role),G=B.find(e=>"email"===e.role),W=B.find(e=>"description"===e.role);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{loading:"lazy",name:"sf_iframe",title:"form submission target",className:"hidden",onLoad:function(){M.current&&(M.current=!1,O.current?.reset(),(0,d.resetRecaptcha)(O.current),T(null),$(!0),setTimeout(()=>$(!1),4e3))}}),(0,t.jsxs)("form",{ref:O,className:m.default.rfqBanner,action:e.action,method:"POST",target:"sf_iframe",onSubmit:function(e){if(p){let t=O.current?.querySelector('textarea[name="g-recaptcha-response"]');if(!t?.value?.trim()){e.preventDefault(),M.current=!1,$(!1),T("Please complete reCAPTCHA.");return}T(null)}M.current=!0},children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,t.jsxs)("div",{className:m.default.rfqIntro,children:[(0,t.jsxs)("div",{className:m.default.rfqTitleRow,children:[(0,t.jsx)("h2",{className:m.default.rfqTitle,children:k}),(0,t.jsx)("span",{className:m.default.rfqTitleLeaf,"aria-hidden":!0})]}),(0,t.jsx)("p",{className:m.default.rfqDescription,children:C}),F?R:null]}),(0,t.jsxs)("div",{className:m.default.rfqFormBody,children:[(0,t.jsxs)("div",{className:m.default.rfqFormGrid,children:[D?(0,t.jsxs)("div",{className:`${m.default.rfqField} ${m.default.rfqFieldProduct}`,children:[(0,t.jsx)("label",{className:m.default.rfqLabel,htmlFor:D.id,children:S}),(0,t.jsx)(s.ProductNameAutocompleteInput,{id:D.id,name:D.name,required:!0,placeholder:h(g),className:m.default.rfqInput})]}):null,U?(0,t.jsxs)("div",{className:`${m.default.rfqField} ${m.default.rfqFieldQty}`,children:[(0,t.jsx)("label",{className:m.default.rfqLabel,htmlFor:H?.id??U.id,children:L}),(0,t.jsxs)("div",{className:m.default.quantityGroup,children:[H?(0,t.jsx)(o.QuantitySpinnerInput,{id:H.id,name:H.name,required:!0,placeholder:h(v),ariaLabel:x,className:m.default.rfqInput}):null,(0,t.jsxs)("div",{className:m.default.uomSelectWrap,children:[(0,t.jsxs)("select",{id:U.id,name:U.name,required:!0,defaultValue:"","aria-label":y,className:m.default.rfqSelect,children:[(0,t.jsx)("option",{value:"",disabled:!0,hidden:!0,children:h(w)}),U.options.map(({value:e,label:a})=>(0,t.jsx)("option",{value:e,children:function(e){switch(e.trim().toLowerCase()){case"tonne":return A("unit_tonne");case"metric tonnes (mt)":return A("unit_metric_tonnes");case"litres":return A("unit_litres");default:return e}}(a)},e))]}),(0,t.jsx)("span",{className:m.default.uomSelectArrow,"aria-hidden":!0,children:(0,t.jsx)(i.ArrowIcon,{className:m.default.uomSelectArrowIcon})})]})]})]}):null,G?(0,t.jsxs)("div",{className:`${m.default.rfqField} ${m.default.rfqFieldEmail}`,children:[(0,t.jsx)("label",{className:m.default.rfqLabel,htmlFor:G.id,children:I}),(0,t.jsx)("input",{ref:q,type:"email",id:G.id,name:G.name,maxLength:G.maxLength,required:!0,placeholder:h(b),className:m.default.rfqInput})]}):null,W?(0,t.jsxs)("div",{className:`${m.default.rfqField} ${m.default.rfqFieldMessage}`,children:[(0,t.jsx)("label",{className:m.default.rfqLabel,htmlFor:W.id,children:z}),(0,t.jsx)("textarea",{id:W.id,name:W.name,rows:W.rows,placeholder:f,className:m.default.rfqTextarea})]}):null]}),F?null:R,(0,t.jsxs)("div",{className:m.default.rfqFormFooter,children:[E?(0,t.jsx)("p",{className:`${m.default.rfqFormMessage} ${m.default.rfqFormMessageSuccess}`,children:_||"Thank you! We'll be in touch."}):P?(0,t.jsx)("p",{className:`${m.default.rfqFormMessage} ${m.default.rfqFormMessageError}`,children:P}):null,(0,t.jsx)(l.Button,{variant:"primary",type:"submit","aria-label":N,className:m.default.rfqSubmit,children:j})]})]})]})]})}e.s(["SalesforceEmbedForm",()=>p],101927)},724960,e=>{"use strict";e.s(["ALL_PRODUCTS_LABEL_CLASS",0,"text-[var(--all-products-grid-label-color)] min-w-max text-[length:var(--all-products-grid-label-size-mobile)] leading-[var(--all-products-grid-label-lh-mobile)] md:text-[length:var(--all-products-grid-label-size-desktop)] md:leading-[var(--all-products-grid-label-lh-desktop)] font-[var(--all-products-grid-label-weight)]","FORM_FIELD_LABEL_CLASS",0,"mb-4 block text-start text-[var(--lc-cpi-control-label-color)] font-[var(--lc-cpi-control-label-weight)] text-[length:var(--lc-cpi-control-label-size-m)
160] leading-[var(--lc-cpi-control-label-lh-m)] md:text-[length:var(--lc-cpi-control-label-size-d)] md:leading-[var(--lc-cpi-control-label-lh-d)]"])},981743,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(71527),i=e.i(724960),n=e.i(271645),s=e.i(948148);let o="pointer-events-none absolute inset-y-0 end-0 flex items-center pe-[length:var(--all-products-grid-arrow-pr)]",c="h-[length:var(--all-products-grid-arrow-size)] w-[length:var(--all-products-grid-arrow-size)] rotate-90 text-[var(--all-products-grid-arrow-color)]";function d({className:e,showIndustryFilter:d=!0,showRegionFilter:u=!1,showSortFilter:m=!0,showSearch:h=!0,filterByLabel:p,regionLabel:g,sortByLabel:v,searchLabel:x,industryPlaceholder:b,searchPlaceholder:f,industryOptions:w,selectedIndustries:y=[],onIndustryChange:j,regionOptions:N,selectedRegion:_="",onRegionChange:k,sortOptions:C,selectedSort:S="desc",onSortChange:L,searchValue:I="",onSearchChange:z,onSearchSubmit:A,onSearchClear:q,badges:E,clearAllLabel:$,layout:P="inline",idPrefix:T}){let M=(0,s.useTranslations)(),O=(0,n.useMemo)(()=>[{label:M("article"),value:"article"},{label:M("market_insight"),value:"market-insight"}],[M]),F=(0,n.useMemo)(()=>[{label:M("all"),value:""},{label:M("global"),value:"global"}],[M]),R=(0,n.useMemo)(()=>[{label:M("newest_date"),value:"desc"},{label:M("oldest_date"),value:"asc"}],[M]),B=w??O,D=(0,n.useId)(),H=T?.trim()||D,U=`${H}-industry`,G=`${H}-sort`,W=`${H}-region`,V=`${U}-menu`,K=`${U}-search`,Y=(0,n.useRef)(null),[Q,Z]=(0,n.useState)(!1),[X,J]=(0,n.use
160State)(""),[ee,et]=(0,n.useState)(I),ea="function"==typeof z,er=ea?I:ee;(0,n.useEffect)(()=>{ea||queueMicrotask(()=>et(I))},[ea,I]);let el=(0,n.useMemo)(()=>E??y.map(e=>B.find(t=>t.value===e)?.label??e),[E,y,B]),ei=(0,n.useMemo)(()=>{let e=X.trim().toLowerCase();return e?B.filter(t=>t.label.toLowerCase().includes(e)):B},[X,B]),en=(0,n.useMemo)(()=>0===y.length?b??M("select_industry"):1===y.length?B.find(e=>e.value===y[0])?.label??y[0]:y.map(e=>B.find(t=>t.value===e)?.label??e).join(", "),[b,B,y,M]);function es(){j&&0!==y.length&&(J(""),j([]))}(0,n.useEffect)(()=>{if(!d||!Q)return;let e=e=>{Y.current&&e.target instanceof Node&&!Y.current.contains(e.target)&&(Z(!1),J(""))},t=e=>{"Escape"===e.key&&(Z(!1),J(""))};return window.addEventListener("pointerdown",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("pointerdown",e),window.removeEventListener("keydown",t)}},[Q,d]);let eo="stacked"===P,ec=eo?"filter-bar-field flex w-full min-w-0 flex-col gap-[var(--filter-bar-stacked-field-gap)] md:flex-1":"flex flex-row items-center gap-[length:var(--all-products-grid-control-row-gap)] w-full md:w-auto",ed=eo?"text-start text-[length:var(--filter-bar-label-size-mobile)] md:text-[length:var(--filter-bar-label-size-desktop)] font-[var(--filter-bar-label-weight)] leading-[var(--filter-bar-label-line-height-mobile)] md:leading-[var(--filter-bar-label-line-height-desktop)] text-[var(--filter-bar-label-color)]":i.ALL_PRODUCTS_LABEL_CLASS,eu=eo?"w-full min-w-0 appearance-none border-2 border-[var(--all-products-grid-select-border-color)] rounded-[length:var(--all-products-grid-select-radius)] bg-[var(--all-products-grid-select-bg)] px-[length:var(--all-products-grid-select-px-mobile)] py-[var(--filter-bar-control-padding-y-mobile)] md:px-[length:var(--all-products-grid-select-px-desktop)] md:py-[var(--filter-bar-control-padding-y-desktop)] outline-none cursor-pointer hover:border-[var(--all-products-grid-select-border-hover)] text-start md:max-w-none":"w-full appearance-none md:max-w-[length:var(--all-products-grid-select-max-w-desktop)] border-2 border-[var(--all-products-grid-select-border-color)] rounded-[length:var(--all-products-grid-select-radius)] bg-[var(--all-products-grid-select-bg)] px-[length:var(--all-products-grid-select-px-mobile)] py-[length:var(--all-products-grid-select-py-mobile)] md:px-[length:var(--all-products-grid-select-px-desktop)] md:py-[length:var(--all-products-grid-select-py-desktop)] outline-none cursor-pointer min-w-[length:var(--all-products-grid-select-min-w)] hover:border-[var(--all-products-grid-select-border-hover)] text-start",em=eo?"relative w-full min-w-0":"relative w-full md:w-auto";return(0,t.jsx)("section",{className:`filter-bar w-full mt-[var(--filter-bar-margin-top-mobile)] md:mt-[var(--filter-bar-margin-top-desktop)] ${eo?"filter-bar--stacked":""} ${e??""}`.trim(),children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:eo?"filter-bar-controls flex w-full flex-col gap-[var(--filter-bar-stacked-gap-mobile)] md:flex-row md:items-end md:justify-between md:gap-[var(--filter-bar-stacked-gap-desktop)]":"flex w-full flex-col gap-[length:var(--all-products-grid-controls-gap)] md:flex-row md:items-end md:justify-between",children:[d?(0,t.jsxs)("div",{className:`${ec} filter-bar-industry min-w-0`,children:[(0,t.jsx)("span",{id:`${U}-label`,className:ed,children:p??M("filter_by_colon")}),(0,t.jsxs)("div",{ref:Y,className:em,children:[(0,t.jsxs)("button",{type:"button","aria-haspopup":"menu","aria-expanded":Q,"aria-labelledby":`${U}-label`,"aria-controls":V,onClick:()=>{Z(e=>(e&&J(""),!e))},className:`${eu} relative text-[var(--all-products-grid-filter-select-text)] disabled:cursor-wait disabled:opacity-60`,children:[(0,t.jsx)("span",{className:"line-clamp-1 pe-8",children:en}),(0,t.jsx)("span",{className:o,children:(0,t.jsx)(a.ArrowIcon,{className:c,"aria-hidden":!0})})]}),Q?(0,t.jsxs)("div",{id:V,role:"menu",className:"absolute start-0 top-[calc(100%+8px)] z-50 w-full min-w-0 overflow-hidden rounded-[length:var(--all-products-grid-filter-menu-radius)] border border-[color:var(--all-products-grid-filter-menu
160-border)] bg-[color:var(--all-products-grid-filter-menu-bg)] shadow-[var(--all-products-grid-filter-menu-shadow)] md:min-w-[length:var(--all-products-grid-filter-menu-min-w)]",children:[(0,t.jsxs)("div",{className:"p-[length:var(--all-products-grid-filter-menu-p)]",children:[(0,t.jsxs)("label",{htmlFor:K,className:"sr-only",children:[M("search")," ",M("industry")]}),(0,t.jsx)("input",{id:K,type:"search",value:X,onChange:e=>J(e.target.value),placeholder:`${M("search")} ${M("industry")}`,className:"box-border w-full min-w-0 max-w-full appearance-none border-2 border-[var(--all-products-grid-select-border-color)] rounded-[length:var(--all-products-grid-select-radius)] bg-[var(--all-products-grid-select-bg)] px-[length:var(--all-products-grid-select-px-mobile)] py-[length:var(--all-products-grid-select-py-mobile)] outline-none text-[color:var(--all-products-grid-filter-search-color)] hover:border-[var(--all-products-grid-select-border-hover)]",autoComplete:"off",onPointerDown:e=>e.stopPropagation()})]}),(0,t.jsx)("div",{className:"max-h-[length:var(--all-products-grid-filter-menu-options-max-height)] overflow-y-auto px-[length:var(--all-products-grid-filter-menu-p)] pb-[length:var(--all-products-grid-filter-menu-p)]",children:(0,t.jsx)("div",{className:"flex flex-col gap-[length:var(--all-products-grid-filter-item-gap)]",children:0===ei.length?(0,t.jsx)("p",{className:"py-1 text-[length:var(--all-products-grid-filter-item-size-mobile)] text-[color:var(--all-products-grid-filter-item-color)]",children:M("no_data_found")}):ei.map(e=>(0,t.jsxs)("label",{className:"flex cursor-pointer items-center gap-[length:var(--all-products-grid-filter-item-gap)] text-[length:var(--all-products-grid-filter-item-size-mobile)] leading-[var(--all-products-grid-filter-item-lh-mobile)] text-[color:var(--all-products-grid-filter-item-color)] md:text-[length:var(--all-products-grid-filter-item-size-desktop)] md:leading-[var(--all-products-grid-filter-item-lh-desktop)]",children:[(0,t.jsx)("input",{type:"checkbox",checked:y.includes(e.value),onChange:()=>{var t;return t=e.value,void(!j||j(y.includes(t)?y.filter(e=>e!==t):[...y,t]))},className:"h-[length:var(--all-products-grid-filter-checkbox-size)] w-[length:var(--all-products-grid-filter-checkbox-size)]"}),e.label]},e.value))})}),y.length>0&&j?(0,t.jsx)("div",{className:"border-t border-[color:var(--all-products-grid-filter-menu-border)] px-[length:var(--all-products-grid-filter-menu-p)] py-[length:var(--all-products-grid-filter-menu-p)]",children:(0,t.jsx)("button",{type:"button",onClick:es,className:"text-[length:var(--all-products-grid-filter-item-size-mobile)] text-[color:var(--all-products-grid-filter-search-color)] hover:underline",children:$??M("clear_all")})}):null]}):null]})]}):null,u?(0,t.jsxs)("div",{className:ec,children:[(0,t.jsx)("label",{htmlFor:W,className:ed,children:g??M("region_colon")}),(0,t.jsxs)("div",{className:em,children:[(0,t.jsx)("select",{id:W,className:`${eu} text-[var(--all-products-grid-filter-select-text)]`,value:_,onChange:e=>k?.(e.target.value),children:(N??F).map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value||"all"))}),(0,t.jsx)("div",{className:o,children:(0,t.jsx)(a.ArrowIcon,{className:c,"aria-hidden":!0})})]})]}):null,m?(0,t.jsxs)("div",{className:ec,children:[(0,t.jsx)("label",{htmlFor:G,className:ed,children:v??M("sort_by_colon")}),(0,t.jsxs)("div",{className:em,children:[(0,t.jsx)("select",{id:G,className:`${eu} text-[var(--all-products-grid-sort-select-text)]`,value:S,onChange:e=>L?.(e.target.value),children:(C??R).map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,t.jsx)("div",{className:o,children:(0,t.jsx)(a.ArrowIcon,{className:c,"aria-hidden":!0})})]})]}):null,h?(0,t.jsxs)("div",{className:eo?"filter-bar-field flex w-full min-w-0 flex-col gap-[var(--filter-bar-stacked-field-gap)] md:flex-1":"flex w-full flex-col gap-[var(--filter-bar-field-gap-mobile)] md:w-auto md:gap-[var(--filter-bar-field-gap-desktop)]",children:[(0,t.jsx)("p",{className:ed,children:x??M("search_colon")}),(0,t.jsxs)("form",{className:"relative",onSubmit:function(e){e.preventDefault(),A?.(er)}
160,children:[(0,t.jsx)("input",{type:"text",value:er,onChange:e=>{let t=e.target.value;ea?z?.(t):et(t)},placeholder:f??M("keyword"),className:`w-full rounded-full border-2 border-[var(--filter-bar-control-border-color)] bg-[var(--filter-bar-control-bg)] px-[var(--filter-bar-control-padding-x-mobile)] py-[var(--filter-bar-control-padding-y-mobile)] text-start text-[var(--filter-bar-control-search-text-color)] placeholder:text-[var(--filter-bar-placeholder-color)] md:px-[var(--filter-bar-control-padding-x-desktop)] md:py-[var(--filter-bar-control-padding-y-desktop)] ${er?"pe-[var(--filter-bar-search-padding-right-with-clear)]":"pe-[var(--filter-bar-search-padding-right)]"}`}),(0,t.jsxs)("div",{className:"absolute end-[var(--filter-bar-search-icon-right)] top-1/2 flex -translate-y-1/2 items-center gap-[var(--filter-bar-search-icons-gap)]",children:[er?(0,t.jsx)("button",{type:"button",className:"inline-flex items-center justify-center text-[var(--filter-bar-clear-color)]",onClick:()=>{(q?.(),ea)?z?.(""):et("")},"aria-label":M("clear_search"),children:(0,t.jsx)(r.ClearIcon,{className:"h-[var(--filter-bar-clear-icon-size)] w-[var(--filter-bar-clear-icon-size)] text-[var(--filter-bar-clear-color)]"})}):null,(0,t.jsx)("button",{type:"submit",className:"inline-flex items-center justify-center text-[var(--filter-bar-search-icon-color)]","aria-label":M("search"),children:(0,t.jsx)(l.SearchIconNew,{className:"h-[var(--filter-bar-search-icon-size)] w-[var(--filter-bar-search-icon-size)] text-[var(--filter-bar-search-icon-color)]"})})]})]})]}):null]}),el.length>0?(0,t.jsxs)("div",{className:"filter-bar-badges my-[var(--filter-bar-badges-margin-y-mobile)] flex flex-wrap gap-[var(--filter-bar-badges-gap-mobile)] md:my-[var(--filter-bar-badges-margin-y-desktop)] md:gap-[var(--filter-bar-badges-gap-desktop)]",children:[el.map(e=>(0,t.jsx)("span",{className:"rounded-full bg-[var(--filter-bar-badge-bg)] px-[var(--filter-bar-badge-padding-x-mobile)] py-[var(--filter-bar-badge-padding-y-mobile)] text-start text-[length:var(--filter-bar-badge-size-mobile)] leading-[var(--filter-bar-badge-line-height-mobile)] text-[var(--filter-bar-badge-color)] md:px-[var(--filter-bar-badge-padding-x-desktop)] md:py-[var(--filter-bar-badge-padding-y-desktop)] md:text-[length:var(--filter-bar-badge-size-desktop)] md:leading-[var(--filter-bar-badge-line-height-desktop)]",children:e},e)),y.length>0&&j?(0,t.jsx)("button",{type:"button",onClick:es,className:"cursor-pointer font-semibold text-[var(--brand-secondary)] transition-colors",children:$??M("clear_all")}):null]}):null]})})}e.s(["FilterBar",()=>d])},233568,e=>{"use strict";e.i(981743),e.s([])},803553,e=>{"use strict";var t=e.i(194130);e.s(["CardEmptyStateIcon",()=>t.default])},244314,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(803553),r=e.i(179718),l=e.i(948148);let i={1:"grid grid-cols-1 gap-x-[var(--content-card-grid-gap-x)] gap-y-[var(--content-card-grid-gap-y)] md:grid-cols-3 mb-[var(--content-card-grid-margin-bottom)]"};function n({title:e,subtitle:n,content:s,columns:o,isLoading:c=!1,skeletonCount:d=o,variant:u="default",preferReadTimeMeta:m=!1}){let h=(0,l.useTranslations)(),p=c?Array.from({length:d},(e,t)=>({image:"",buttonText:"",title:`Loading blog ${t+1}`,categories:[],description:"Loading description",date:"",author:"",link:"#",readTime:""})):s,g=!c&&0===p.length;return(0,t.jsx)("section",{children:(0,t.jsxs)("div",{children:[(e||n)&&(0,t.jsxs)("header",{className:"mb-[var(--content-card-section-header-gap)] space-y-[var(--content-card-section-header-inner-gap)]",children:[n&&(0,t.jsx)("p",{className:"text-start text-[length:var(--content-card-section-subtitle-size)] font-[var(--content-card-section-subtitle-weight)] leading-[var(--content-card-section-subtitle-line-height)] text-[var(--content-card-section-subtitle-color)]",children:n}),e&&(0,t.jsx)("h2",{className:"text-start text-[length:var(--content-card-section-title-size-mobile)] font-[var(--content-card-section-title-weight)] leading-[var(--content-card-section-title-line-height-mobile)] text-[var(--content-card-section-title-color)] md:text-[length:var(--content-card-section-title-size-desktop)] md:leading-[var(--content-card-section-title-line-height-desktop)]",children:e})]}),g?(0,t.jsx)("div",{id:"articleResultWrapper",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-center",children:[(0,t.jsx)(a.CardEmptyStateIcon,{className:"h-38 w-38 mb-[var(--content-card-empty-state-description-margin-bottom)]"}),(0,t.jsx)("h6",{className:"text-[length:var(--content-card-empty-state-title-size-mobile)] md:text-[length:var(--content-card-empty-state-title-size-desktop)] font-[var(--content-card-empty-state-title-weight)] leading-[var(--content-card-empty-state-title-line-height)] text-[var(--content-card-empty-state-title-color)]",children:h("no_data_found")})]})}):(0,t.jsx)("div",{className:i[o],children:p.map(({image:e,buttonText:a,buttonHref:l,title:i,categories:n,description:s,date:o,author:d,link:h,readTime:p,requireAuth:g},v)=>(0,t.jsx)(r.ContentCard,{image:e,buttonText:a,buttonHref:l,title:i,categories:n,description:s,date:o,author:d,link:h,readTime:p,variant:u,preferReadTimeMeta:m,requireAuth:g,isLoading:c},`${i}-${v}`))})]})})}e.s(["ContentCardSectionComponent",()=>n])},232189,(e,t,a)=>{"use strict";
160t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,a)=>{"use strict";var r=e.r(232189);function l(){}function i(){}i.resetWarningCache=l,t.exports=function(){function e(e,t,a,l,i,n){if(n!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:l};return a.PropTypes=a,a}},745009,(e,t,a)=>{t.exports=e.r(865156)()},450020,e=>{"use strict";var t=e.i(794622),a=e.i(527395),r=e.i(389616);let l=null;function i(){return l||(l=(0,t.getCountries)().map(e=>{let r;try{r=(0,t.getCountryCallingCode)(e)}catch{return null}let l=a.default[e]??e;return{value:`${l} (+${r})`,label:l,isoCountry:e}}).filter(e=>null!==e).sort((e,t)=>e.label<t.label?-1:+(e.label>t.label)))}let n=/\(\+\d+\)\s*$/;function s(e){return e.length>0&&e.every(e=>n.test(e.label)||n.test(e.value))}function o(e){return i().find(t=>t.value===e||t.label===e||t.isoCountry===e)?.isoCountry}function c(e){let t=e.options&&s(e.options)?i():e.options;return(0,r.resolveContactFieldPrefillValue)({...e,options:t})}function d(e,t){for(let{field:a,allowPersonalPrefill:l}of(0,r.withPersonalPrefillGate)(e))if("select"===a.type&&s(a.options))return o(c({name:a.name,id:a.id,label:a.label,options:a.options,prefill:t,allowPersonalPrefill:l}))}e.s(["getFullCountryDialCodeOptions",()=>i,"isCountryDialCodeField",()=>s,"isoCountryForDialCodeOption",()=>o,"resolveFieldPrefillValue",()=>c,"resolveInitialCountryIso",()=>d])},620620,e=>{"use strict";var t=e.i(271645);function a(e){let[a,r]=(0,t.useState)(null);return{selectedCountry:a?a.country:e,handleUserCountrySelect:function(e){r({country:e})},resetUserSelection:function(){r(null)}}}e.s(["useSalesforceCountrySync",()=>a])},723178,e=>{"use strict";var t=e.i(271645),a=e.i(647898);function r(e){let[r,l]=(0,t.useState)(!1),[i,n]=(0,t.useState)(null),s=(0,t.useRef)(!1),o=(0,t.useRef)(null),c=(0,t.useRef)(null),d=e?.trim()||null;function u(){null!=c.current&&(window.clearTimeout(c.current),c.current=null)}return(0,t.useEffect)(()=>{if(!i||!d)return;let e=window.setInterval(()=>{(0,a.getRecaptchaResponse)(o.current)&&n(null)},400);return()=>window.clearInterval(e)},[i,d]),(0,t.useEffect)(()=>()=>u(),[]),{formRef:o,showSuccess:r,captchaError:i,handleSubmit:function(e){if(d){let t=e.currentTarget,r=(0,a.getRecaptchaResponse)(t);if(!r){e.preventDefault(),s.current=!1,n("Please complete reCAPTCHA.");return}(0,a.syncRecaptchaResponseToForm)(t,r),n(null)}s.current=!0},handleIframeLoad:function(){s.current&&(s.current=!1,o.current?.reset(),n(null),(0,a.resetRecaptcha)(o.current),u(),l(!0),c.current=window.setTimeout(()=>{l(!1)},8e3))},dismissSuccess:function(){u(),l(!1)}}}e.s(["useSalesforceIframeFormSubmit",()=>r])},770002,e=>{"use strict";var t=e.i(843476),a=e.i(948148);function r(){let e=(0,a.useTranslations)();return(0,t.jsx)("option",{value:"",children:e("select_an_option")})}e.s(["SalesforceSelectPlaceholderOption",()=>r])},876773,e=>{"use strict";var t=e.i(616767);e.s(["CheckIcon",()=>t.default])},200853,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(174080),l=e.i(948148);e.i(527967);var i=e.i(876773),n=e.i(811961),s=e.i(659544);function o({isOpen:e,onClose:o}){let c=(0,l.useTranslations)();return((0,a.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),!e||"u"<typeof document)?null:(0,r.createPortal)((0,t.jsxs)("div",{className:"pointer-events-none fixed inset-0 z-[1200] flex items-center justify-center px-4 py-8 sm:px-8",children:[(0,t.jsx)("button",{type:"button",className:"pointer-events-auto absolute inset-0 cursor-default bg-black/45","aria-label":c("close"),onClick:o}),(0,t.jsxs)("div",{className:"pointer-events-auto relative z-[1200] w-full max-w-[420px] rounded-[12px] border border-[#e5e7e9] bg-[var(--brand-white)] p-8 text-center shadow-[0_10px_40px_rgba(0,0,0,0.12)]",role:"dialog","aria-modal":"true","aria-labelledby":"
160contact-form-success-title",children:[(0,t.jsx)("button",{type:"button",className:"absolute right-4 top-4 p-1.5 text-[#9ca3af] transition-colors hover:bg-black/[0.04] hover:text-[var(--brand-neutral-text)]","aria-label":c("close"),onClick:o,children:(0,t.jsx)(n.CloseCrossIcon,{className:"h-5 w-5","aria-hidden":!0})}),(0,t.jsx)("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-[var(--color-success,#16a34a)]/10",children:(0,t.jsx)(i.CheckIcon,{className:"h-6 w-6 text-[var(--color-success,#16a34a)]","aria-hidden":!0})}),(0,t.jsx)("h3",{id:"contact-form-success-title",className:"m-0 text-lg font-semibold text-[var(--brand-neutral-text,#111827)]",children:c("contact_form_success_title")}),(0,t.jsx)("p",{className:"mt-2 text-sm text-[#6b7280]",children:c("contact_form_success_message")}),(0,t.jsx)(s.Button,{variant:"primary",type:"button",className:"mt-6 w-full",onClick:o,children:c("close")})]})]}),document.body)}e.s(["ContactFormSuccessModal",()=>o])},338843,e=>{"use strict";var t=e.i(527395),a=e.i(669059);let r={"how we can help you?":"contact_help_question","general inquiry":"general_inquiry","request for quotation":"contact_request_quotation","become our supplier":"contact_become_supplier",salutation:"salutation","first name":"first_name","last name":"last_name",company:"company","company name":"company_name",country:"country","country list":"country","agent country":"country","country code list":"dialing_code","agent country code list":"dialing_code","business email":"business_email",email:"email","phone number":"phone_number",phone:"phone",mobile:"mobile_number",message:"message","product name":"product_name",product:"product_name",quantity:"contact_quantity",uom:"contact_unit_of_measure",destination:"market_spread_destination","type of supplier":"contact_type_supplier","what product(s) do you want to sell?":"contact_products_to_sell","select your inquiry type":"contact_select_inquiry_type","select inquiry":"contact_select_inquiry","form type":"contact_select_inquiry","products info":"contact_products_info","end customer info":"contact_end_customer_info","agent info":"contact_agent_info",notes:"contact_notes",pod:"contact_port_of_discharge","incoterms/delivery term":"contact_delivery_term",incoterm:"contact_delivery_term","metric tonne (mt)":"contact_metric_tonne","kilogram (kg)":"contact_kilogram",litres:"contact_litres",tonne:"contact_tonne"},l={"general-inquiry":"general_inquiry","request-for-quotation":"contact_request_quotation","become-our-supplier":"contact_become_supplier"},i={"Mr.":"mr","Ms.":"ms","Mrs.":"mrs"},n=new Map(Object.entries(t.default).filter(([e])=>/^[A-Z]{2}$/.test(e)).map(([e,t])=>[t.toLowerCase(),e]));function s(e,t){let a=r[e.replace(/\s+/g," ").trim().toLowerCase()];return a?t(a):e}function o(e,t,a){let r=l[e];return r?a(r):s(t,a)}function c(e,t,r,l){let o=i[e.value];if(o)return r(o);let c=function(e,t,r){let l;if("en"===t)return e;let i=r??("uae"===(l=e.replace(/\s*\(\+\d+\)\s*$/,"").trim().toLowerCase())?"AE":"srilanka"===l?"LK":n.get(l)),s=a.default[t];if(!i||!s?.[i])return e;let o=/\s*\(\+\d+\)\s*$/.exec(e)?.[0]??"";return`${s[i]}${o}`}(e.label,t,l);return c!==e.label?c:s(e.label,r)}e.s(["localizeContactFormLabel",()=>o,"localizeContactOption",()=>c,"localizeContactText",()=>s])},11944,e=>{"use strict";var t=e.i(843476),a=e.i(861745),r=e.i(948148);e.i(527967);var l=e.i(830167),i=e.i(659544),n=e.i(329078),s=e.i(450020),o=e.i(620620),c=e.i(723178),d=e.i(389616),u=e.i(338843),m=e.i(200853),h=e.i(718631),p=e.i(770002);function g({htmlFor:e,label:a,required:r}){return a.trim()?(0,t.jsxs)("label",{htmlFor:e,className:"block text-start text-[var(--contact-us-form-label-color)] font-[var(--contact-us-form-label-weight)] leading-[var(--contact-us-form-label-line-height)] text-[length:var(--contact-us-form-label-size)]",children:[a,r?(0,t.jsx)("span",{className:"text-red-500",children:"*"}):null]}):null}function v({parsedEmbed:e,recaptchaSiteKey:v,prefill:x=d.EMPTY_CONTACT_FORM_PREFILL}){let b=(0,a.useLocale)(),f=(0,r.useTranslations)(),{formRef:w,showSuccess:y,captchaError:j,handleSubmit:N,handleIframeLoad:_,dismissSuccess:k}=(0,c.useSalesforceIframeFormSubmit)(v),{selectedCountry:C,handleUserCountrySelect:S,resetUserSelection:L}=(0,o.useSalesforceCountrySync)((0,s.resolveInitialCountryIso)(e.visibleFields,x));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{name:"sf_contact_agent_iframe",title:"form submission target",className:"hidden",onLoad:_}),(0,t.jsx)("form",{ref:w,action:e.action,method:e.method,target:"sf_contact_agent_iframe",onSubmit:N,onReset:L,className:"[border-width:var(--contact-us-form-border-width)] border-[color:var(--contact-us-form-border-color)] rounded-[var(--contact-us-form-radius)] py-[var(--contact-us-form-padding-y-mobile)] px-[var(--contact-us-form-padding-x-mobile)] md:p-[var(--contact-us-form-padding-desktop)]",children:(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--contact-us-form-field-gap)]",children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),(0,d.withPersonalPrefillGate)(e.visibleFields).map(({field:e,allowPersonalPrefill:a},r)=>(function(e,a,r,i,n,o,c,d){if("heading"===e.type)return(0,t.jsx)("h3",{className:"m-0 text-start text-[length:var(--contact-us-form-label-size)] font-[var(--contact-us-form-label-weight)] leading-[var(--contact-us-form-label-line-height)] text-[var(--contact-us-form-label-color)] pt-2",children:(0,u.localizeContactText)(e.text,d)},a);let m=(0,s.resolveFieldPrefillValue)({name:e.name,id:e.id,label:e.label,options:"select"===e.type?e.options:void 0,prefill:r,allowPersonalPrefill:i}),v=(0,u.localizeContactText)(e.label,d);if("select"===e.type){let r=(0,s.isCountryDialCodeField)(e.options),i=r?(0,s.getFullCountryDialCodeOptions)():e.options;return(0,t.jsxs)("div",{children:[(0,t.jsx)(g,{htmlFor:e.id,label:v,required:e.required}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{name:e.name,id:e.id,required:e.required,defaultValue:m,onChange:r?e=>o((0,s.isoCountryForDialCodeOption)(e.target.value)):void 0,className:"contact-us-form-select mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-input-height)] w-full rounded-[var(--contact-us-form-input-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] text-start text-[var(--contact-us-form-input-text-color)] focu
160s:border-[color:var(--contact-us-form-input-focus-border)] outline-none flex items-center appearance-none pe-[var(--contact-us-form-select-padding-right)]",children:[(0,t.jsx)(p.SalesforceSelectPlaceholderOption,{}),i.map(e=>(0,t.jsx)("option",{value:e.value,children:(0,u.localizeContactOption)(e,c,d,"isoCountry"in e&&"string"==typeof e.isoCountry?e.isoCountry:void 0)},e.value))]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--contact-us-form-select-arrow-right)] flex items-center",children:(0,t.jsx)(l.ArrowIcon,{className:"h-[var(--contact-us-form-select-arrow-size)] w-[var(--contact-us-form-select-arrow-size)] rotate-90 text-[var(--contact-us-form-select-arrow-color)]"})})]})]},a)}return"textarea"===e.type?(0,t.jsxs)("div",{children:[(0,t.jsx)(g,{htmlFor:e.id,label:v,required:e.required}),(0,t.jsx)("textarea",{id:e.id,name:e.name,rows:e.rows,required:e.required,placeholder:v||"",className:"mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-textarea-height)] w-full rounded-[var(--contact-us-form-textarea-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] py-3 text-start text-[var(--contact-us-form-input-text-color)] placeholder:text-[var(--contact-us-form-input-placeholder-color)] focus:border-[color:var(--contact-us-form-input-focus-border)] outline-none"})]},a):"phone"!==e.name&&"mobile"!==e.name||e.required?(0,t.jsxs)("div",{children:[(0,t.jsx)(g,{htmlFor:e.id,label:v,required:e.required}),(0,t.jsx)("input",{type:e.inputType,id:e.id,name:e.name,maxLength:e.maxLength,required:e.required,placeholder:v||"",defaultValue:m,className:"mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-input-height)] w-full rounded-[var(--contact-us-form-input-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] text-start text-[var(--contact-us-form-input-text-color)] placeholder:text-[var(--contact-us-form-input-placeholder-color)] focus:border-[color:var(--contact-us-form-input-focus-border)] outline-none"})]},a):(0,t.jsx)(h.PhoneInputWithDialCode,{name:e.name,id:e.id,label:v||void 0,defaultValue:m,country:n},a)})(e,`${e.type}-${r}`,x,a,C,S,b,f)),v?(0,t.jsx)(n.RecaptchaWidget,{siteKey:v,eager:!0}):null,(0,t.jsxs)("div",{className:"contact-us-form-actions cursor-pointer mt-[var(--contact-us-form-submit-margin-top)] flex items-center gap-3 justify-end",children:[j?(0,t.jsx)("p",{className:"text-start text-[length:var(--contact-us-form-label-size)] font-[var(--contact-us-form-label-weight)] text-[var(--contact-us-form-error-color)]",children:j}):null,(0,t.jsx)(i.Button,{variant:"primary",type:"submit",className:"px-10",children:f("submit")})]})]})}),(0,t.jsx)(m.ContactFormSuccessModal,{isOpen:y,onClose:k})]})}e.s(["SalesforceGenericEmbedForm",()=>v])},271137,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(657688);e.i(716787);var i=e.i(659544);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(22584),c=e.i(902312),d=e.i(425923),u=e.i(160741),m=e.i(578938),h=e.i(915248),p=e.i(495067),g=e.i(948148);let v="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]",x="h-[length:var(--header-two-mobile-chevron-left-size)] w-[length:var(--header-two-mobile-chevron-left-size)] shrink-0 text-[var(--header-two-mobile-nav-arrow-color)] rtl:rotate-180";function b({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}function f({href:e,children:a,onNavigate:r,target:l}){let i=e.startsWith("http")||"_blank"===l,s="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]";return i?(0,t.jsx)("a",{href:e,className:s,target:"_blank",rel:"nofollow noopener noreferrer",onClick:r,children:a}):(0,t.jsx)(n.Link,{href:e,className:s,onClick:r,children:a})}function w({open:e,panel:w,onClose:y,setPanel:j,utilityActions:N=[],logo:_,cmsCategoryLinks:k,cmsNav:C=[]}){let S=(0,g.useTranslations)(),L=(0,n.useRouter)(),I=(0,c.useHasAuthSession)(),z=(0,d.useAuthDisplayProfile)(),[A,q]=(0,s.use
160State)([]),E=C.length>0,$=(0,s.useMemo)(()=>N.find(e=>!(0,u.isAuthUtilityHref)(e.href)&&"primary"===e.type),[N]),P=(0,s.useMemo)(()=>(function(e,t){let a=e,r=null;for(let e of t){if(!(r=a[e]??null))return null;a=r.children}return r})(C,A),[C,A]),T=0===A.length?C:P?.children??[],M=E&&A.length>0,O=k&&k.length>0?k:[],F=(0,s.useCallback)(()=>{M?q(e=>e.slice(0,-1)):"industry-list"===w?j("products"):"market-trends"===w?j("market"):"account"===w?j("main"):"main"!==w&&j("main")},[M,w,j]),R=(0,s.useCallback)(()=>{q([]),y()},[y]),B=(0,s.useCallback)(()=>{let e=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(m.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,m.clearAuthSession)(),R(),(0,m.isAuthRequiredCommunityRoute)(e)||L.replace(o.routes.homePage)},[R,L]),D="main"===w&&!M,H=z.pictureUrl?.trim()||null;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-overlay)] bg-[var(--header-two-overlay)]","aria-hidden":!0,onClick:R}),(0,t.jsxs)("aside",{className:`fixed start-0 top-0 z-[var(--header-two-z-sidebar)] flex h-dvh w-[var(--header-two-sidebar-width)] max-w-full flex-col overflow-hidden bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-sidebar-shadow)] transition-transform ease-in-out [transition-duration:var(--header-two-sidebar-transition-duration)] ${e?"translate-x-0":"-translate-x-full rtl:translate-x-full"}`,"data-open":e?"true":"false","aria-modal":!0,role:"dialog","aria-label":"Mobile navigation",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between bg-[var(--header-two-top-bg)] px-[var(--header-two-mobile-header-padding-x-mobile)] md:px-[var(--header-two-mobile-header-padding-x-desktop)] py-[var(--header-two-mobile-header-padding-y-mobile)] md:py-[var(--header-two-mobile-header-padding-y-desktop)]",children:[(0,t.jsx)(n.Link,{href:_.href,onClick:R,children:(0,t.jsx)(l.default,{src:_.src,alt:_.alt,width:163,height:60,sizes:"163px",className:"h-[length:var(--header-two-mobile-logo-height)] w-auto object-contain",style:{width:"auto",height:"auto"}})}),(0,t.jsx)("button",{type:"button",className:"border-0 bg-transparent p-[var(--header-two-mobile-close-button-padding)]","aria-label":S("close_menu"),onClick:R,children:(0,t.jsx)(r.ClearIcon,{className:"text-[var(--header-two-top-text-color)] w-6 h-6"})})]}),"main"!==w||M?(0,t.jsx)("div",{children:(0,t.jsxs)("button",{type:"button",className:"flex items-center justify-between gap-[length:var(--header-two-mobile-back-gap)] pt-[var(--header-two-mobile-back-padding-top)] px-[var(--header-two-mobile-back-padding-x)] text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-link-outline-text)]",onClick:F,children:[(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mobile-chevron-right-size)] w-[length:var(--header-two-mobile-chevron-right-size)] shrink-0 rotate-180 rtl:rotate-0 text-[var(--header-two-link-outline-text)]"}),S("back")]})}):null,(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col justify-between px-[var(--header-two-mobile-shell-padding-x)] ${!D?"pb-[var(--header-two-mobile-shell-padding-y)] pt-0":"py-[var(--header-two-mobile-shell-padding-y)]"}`,children:[(0,t.jsxs)("div",{className:"min-h-0 overflow-y-auto",children:[I&&D?(0,t.jsxs)("button",{type:"button",className:"mb-0 flex w-full items-center gap-[var(--header-two-mobile-profile-gap)] border-b border-[var(--header-two-main-border)] bg-transparent pb-[length:var(--header-two-mobile-nav-item-padding-y)] text-start",onClick:()=>j("account"),children:[(0,t.jsx)("span",{className:"relative flex h-[length:var(--header-two-mobile-profile-avatar-size)] w-[length:var(--header-two-mobile-profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-white",style:H?{backgroundImage:`url(${H})`}:void 0,children:H?null:function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(z)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-semibold)] leading-[length:var(--header-two-font-line-height-regular)] text-[var(--header-two-mobile-profile-name-color)]",children:z.name}),z.role?.trim()?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] capitalize text-[var(--header-two-mobile-profile-email-color)]",children:(0,m.formatAuthRoleLabel)(z.role)}):null,z.email?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-mobile-profile-email-color)]",children:z.email}):null]}),(0,t.jsx)(a.ArrowIcon,{className:x})]}):null,"account"===w?(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)(f,{href:o.routes.auth.profile,onNavigate:R,children:[S("my_profile"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(f,{href:o.routes.auth.leads,onNavigate:R,children:[S("my_leads"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(f,{href:o.routes.auth.orders,onNavigate:R,children:[S("my_orders"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`${v} text-[var(--header-two-mobile-sign-out-color)]`,onClick:B,children:[(0,t.jsx)("span",{children:S("sign_out")}),(0,t.jsx)(b,{className:"h-[length:var(--header-two-mobile-sign-out-icon-size)] w-[length:var(--header-two-mobile-sign-out-icon-size)] shrink-0 text-[var(--header-two-mobile-sign-out-color)]"})]})})]}):null,E&&"account"!==w?(0,t.jsx)("ul",{children:T.map((e,r)=>{let l=e.children.length>0,i=!!e.href;return(0,t.jsx)("li",{children:l&&i?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(f,{href:e.href,target:e.target,onNavigate:R,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${v} flex justify-end items-center`,"aria-label":`${e.label} subcategories`,onClick:()=>q(e=>[...e,r]),children:(0,t.jsx)(a.ArrowIcon,{className:x})})]}):l?(0,t.jsxs)("button",{type:"button",className:v,onClick:()=>q(e=>[...e,r]),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:x})]}):i?(0,t.jsx)(f,{href:e.href,target:e.target,onNavigate:R,children:e.label}):(0,t.jsx)("span",{className:v,children:e.label})},`${e.label}-${r}`)})}):null,"main"!==w||E?null:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:v,onClick:()=>j("company"),children:[S("company"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>j("products"),className:v,children:[S("products"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>j("market"),className:v,children:[S("market_insights"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>j("learning"),className:v,children:[S("learning_center"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:h.COMMUNITY_HREF,onNavigate:R,children:S("community")})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:h.CAREER_HREF,onNavigate:R,children:S("career")})})]}),"company"!==w||E?null:(0,t.jsx)("ul",{children:h.COMPANY_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:R,children:e.label})},e.id))}),"products"!==w||E?null:(0,t.jsx)("ul",{children:h.PRODUCT_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:"showChevron"in e&&e.showChevron?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(n.Link,{href:e.href,className:v,onClick:R,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${v} flex justify-end items-center`,"aria-label":`${e.label} — subcategories`,onClick:()=>j("industry-list"),children:(0,t.jsx)(a.ArrowIcon,{className:x})})]}):(0,t.jsx)(f,{href:e.href,onNavigate:R,children:e.label})},e.label))}),"industry-list"!==w||E?null:(0,t.jsx)("ul",{children:O.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:R,children:e.label})},e.href))}),"market"!==w||E?null:(0,t.jsx)("ul",{children:h.MARKET_LEFT_LINKS.map(e=>"subPanel"in e&&"market-trends"===e.subPanel?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:v,onClick:()=>j("market-trends"),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:x})]})},e.label):(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:R,children:e.label})},e.href))}),"market-trends"!==w||E?null:(0,t.jsx)("ul",{children:h.MARKET_TRENDS_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:R,children:e.label})},e.href))}),"learning"!==w||E?null:(0,t.jsx)("ul",{children:h.LEARNING_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:R,children:e.label})},e.href))})]}),D&&N.length>0?(0,t.jsx)("div",{className:"shrink-0 pt-[var(--header-two-mobile-footer-gap)]",children:I&&$?(0,t.jsx)(i.Button,{variant:"primary",href:$.href,title:$.label,target:$.openInNewTab?"_blank":void 0,rel:$.openInNewTab?"nofollow noopener noreferrer":void 0,className:"w-full",onClick:R,children:$.label}):(0,t.jsx)("div",{className:"flex gap-[var(--header-two-mobile-footer-gap)]",children:(0,t.jsx)(p.HeaderUtilityActions,{actions:N,variant:"mobile",onNavigate:R})})}):null]})]})]}):null}e.s(["HeaderOneMobileSidebars",()=>w])},290435,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(657688);e.i(716787);
160var i=e.i(659544);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(22584),c=e.i(902312),d=e.i(160741),u=e.i(578938),m=e.i(679918),h=e.i(77066),p=e.i(948148);let g="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]",v="h-[length:var(--header-two-mobile-chevron-left-size)] w-[length:var(--header-two-mobile-chevron-left-size)] shrink-0 text-[var(--header-two-mobile-nav-arrow-color)] rtl:rotate-180";function x({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}function b({href:e,children:a,onNavigate:r,target:l}){let i=e.startsWith("http")||"_blank"===l,s="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]";return i?(0,t.jsx)("a",{href:e,className:s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a}):(0,t.jsx)(n.Link,{href:e,className:s,onClick:r,children:a})}function f({open:e,panel:f,onClose:w,setPanel:y,utilityActions:j=[],logo:N,cmsCategoryLinks:_,cmsNav:k=[],standard:C=!1}){let S=(0,p.useTranslations)(),L=(0,n.useRouter)(),I=(0,c.useHasAuthSession)(),[z,A]=(0,s.useState)([]),q=k.length>0,E=(0,s.useMemo)(()=>j.find(e=>!(0,d.isAuthUtilityHref)(e.href)&&"primary"===e.type),[j]),$=(0,s.useMemo)(()=>(function(e,t){let a=e,r=null;for(let e of t){if(!(r=a[e]??null))return null;a=r.children}return r})(k,z),[k,z]),P=0===z.length?k:$?.children??[],T=q&&z.length>0,M=_&&_.length>0?_:[],O=(0,s.useCallback)(()=>{T?A(e=>e.slice(0,-1)):"industry-list"===f?y("products"):"market-trends"===f?y("market"):"account"===f?y("main"):"main"!==f&&y("main")},[T,f,y]),F=(0,s.useCallback)(()=>{A([]),w()},[w]),R=(0,s.useCallback)(()=>{let e=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(u.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,u.clearAuthSession)(),F(),(0,u.isAuthRequiredCommunityRoute)(e)||L.replace(o.routes.homePage)},[F,L]),B="main"===f&&!T,D=I?(0,u.getAuthDisplayProfile)():null,H=I?(0,u.getAuthProfileFormPrefill)().avatarUrl:null;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-overlay)] bg-[var(--header-two-overlay)]","aria-hidden":!0,onClick:F}),(0,t.jsxs)("aside",{className:`${C?"h1s-mobile-drawer":""} fixed start-0 top-0 z-[var(--header-two-z-sidebar)] flex h-dvh w-[var(--header-two-sidebar-width)] max-w-full flex-col overflow-hidden bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-sidebar-shadow)] transition-transform ease-in-out [transition-duration:var(--header-two-sidebar-transition-duration)] ${e?"translate-x-0":"-translate-x-full rtl:translate-x-full"}`,"data-open":e?"true":"false","aria-modal":!0,role:"dialog","aria-label":S("menu"),children:[(0,t.jsxs)("div",{className:`flex shrink-0 items-center justify-between px-[var(--header-two-mobile-header-padding-x-mobile)] ${C?"xl:px-[var(--header-two-mobile-header-padding-x-desktop)]":"md:px-[var(--header-two-mobile-header-padding-x-desktop)]"} py-[var(--header-two-mobile-header-padding-y-mobile)] ${C?"xl:py-[var(--header-two-mobile-header-padding-y-desktop)]":"md:py-[var(--header-two-mobile-header-padding-y-desktop)]"} ${C?"bg-[var(--h1s-nav-drawer-header-bg)]":"bg-[var(--header-two-top-bg)]"}`,children:[(0,t.jsx)(n.Link,{href:N.href,onClick:F,children:(0,t.jsx)(l.default,{src:N.darkSrc??N.src,alt:N.alt,width:400,height:180,sizes:"240px",quality:100,unoptimized:!0,className:"h-[length:var(--header-two-mobile-logo-height)] w-auto max-w-[240px] object-contain"})}),(0,t.jsx)("button",{type:"button",className:"border-0 bg-transparent p-[var(--header-two-mobile-close-button-padding)]","aria-label":S("close_menu"),onClick:F,children:(0,t.jsx)(r.ClearIcon,{className:`w-6 h-6 ${C?"text-[var(--h1s-nav-drawer-header-text)]":"text-[var(--header-two-top-text-color)]"}`})})]}),"main"!==f||T?(0,t.jsx)("div",{children:(0,t.jsxs)("button",{type:"button",className:"flex items-center justify-between gap-[length:var(--header-two-mobile-back-gap)] pt-[var(--header-two-mobile-back-padding-top)] px-[var(--header-two-mobile-back-padding-x)] text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-link-outline-text)]",onClick:O,children:[(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mobile-chevron-right-size)] w-[length:var(--header-two-mobile-chevron-right-size)] shrink-0 rotate-180 rtl:rotate-0 text-[var(--header-two-link-outline-text)]"}),S("back")]})}):null,(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col justify-between px-[var(--header-two-mobile-shell-padding-x)] ${!B?"pb-[var(--header-two-mobile-shell-padding-y)] pt-0":"py-[var(--header-two-mobile-shell-padding-y)]"}`,children:[(0,t.jsxs)("div",{className:"min-h-0 overflow-y-auto",children:[I&&B&&D?(0,t.jsxs)("button",{type:"button",className:"mb-0 flex w-full items-center gap-[var(--header-two-mobile-profile-gap)] border-b border-[var(--header-two-main-border)] bg-transparent pb-[length:var(--header-two-mobile-nav-item-padding-y)] text-start",onClick:()=>y("account"),children:[(0,t.jsx)("span",{className:"relative flex h-[length:var(--header-two-mobile-profile-avatar-size)] w-[length:var(--header-two-mobile-profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--brand-white)]",style:H?{backgroundImage:`url(${H})`}:void 0,children:H?null:function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(D)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-semibold)] leading-[length:var(--header-two-font-line-height-regular)] text-[var(--header-two-mobile-profile-name-color)]",children:D.name}),D.email?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-mobile-profile-email-color)]",children:D.email}):null]}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):null,"account"===f?(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.profile,onNavigate:F,children:[S("my_profile"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.leads,onNavigate:F,children:[S("my_leads"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.orders,onNavigate:F,children:[S("my_orders"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`${g} text-[var(--header-two-mobile-sign-out-color)]`,onClick:R,children:[(0,t.jsx)("span",{children:S("sign_out")}),(0,t.jsx)(x,{className:"h-[length:var(--header-two-mobile-sign-out-icon-size)] w-[length:var(--header-two-mobile-sign-out-icon-size)] shrink-0 text-[var(--header-two-mobile-sign-out-color)]"})]})})]}):null,q&&"account"!==f?(0,t.jsx)("ul",{children:P.map((e,r)=>{let l=e.children.length>0,i=!!e.href;return(0,t.jsx)("li",{children:l&&i?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} subcategories`,onClick:()=>A(e=>[...e,r]),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):l?(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>A(e=>[...e,r]),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):i?(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}):(0,t.jsx)("span",{className:g,children:e.label})},`${e.label}-${r}`)})}):null,"main"!==f||q?null:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("company"),children:[S("company"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("products"),className:g,children:[S("products"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("market"),className:g,children:[S("market_insights"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("learning"),className:g,children:[S("learning_center"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.COMMUNITY_HREF,onNavigate:F,children:S("community")})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.CAREER_HREF,onNavigate:F,children:S("career")})})]}),"company"!==f||q?null:(0,t.jsx)("ul",{children:m.COMPANY_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.id))}),"products"!==f||q?null:(0,t.jsx)("ul",{children:m.PRODUCT_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:"showChevron"in e&&e.showChevron?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(n.Link,{href:e.href,className:g,onClick:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} — subcategories`,onClick:()=>y("industry-list"),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.label))}),"industry-list"!==f||q?null:(0,t.jsx)("ul",{children:M.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_LEFT_LINKS.map(e=>"subPanel"in e&&"market-trends"===e.subPanel?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("market-trends"),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]})},e.label):(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market-trends"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_TRENDS_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"learning"!==f||q?null:(0,t.jsx)("ul",{children:m.LEARNING_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))})]}),B&&j.length>0?(0,t.jsx)("div",{className:`${C?"h1s-mobile-drawer-footer":""} shrink-0 pt-[var(--header-two-mobile-footer-gap)] ${C?"xl:hidden":""}`,children:I&&E?(0,t.jsx)(i.Button,{variant:"primary",href:E.href,title:E.label,target:E.openInNewTab?"_blank":void 0,rel:E.openInNewTab?"noopener noreferrer":void 0,className:"w-full",onClick:F,children:E.label}):(0,t.jsx)("div",{className:"flex gap-[var(--header-two-mobile-footer-gap)]",children:(0,t.jsx)(h.HeaderUtilityActions,{actions:j,variant:"mobile",onNavigate:F})})}):null]})]})]}):null}e.s(["HeaderOneMobileSidebars",()=>f])},954275,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(657688);e.i(716787);
160var i=e.i(659544);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(22584),c=e.i(425923),d=e.i(902312),u=e.i(160741),m=e.i(578938),h=e.i(797100),p=e.i(875120),g=e.i(948148);let v="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]",x="h-[length:var(--header-two-mobile-chevron-left-size)] w-[length:var(--header-two-mobile-chevron-left-size)] shrink-0 text-[var(--header-two-mobile-nav-arrow-color)] rtl:rotate-180";function b({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}function f({href:e,children:a,onNavigate:r,target:l}){let i=e.startsWith("http")||"_blank"===l,s="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]";return i?(0,t.jsx)("a",{href:e,className:s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a}):(0,t.jsx)(n.Link,{href:e,className:s,onClick:r,children:a})}function w({open:e,panel:w,onClose:y,setPanel:j,utilityActions:N=[],logo:_,cmsCategoryLinks:k,cmsNav:C=[],standard:S=!1}){let L=(0,g.useTranslations)(),I=(0,n.useRouter)(),z=(0,d.useHasAuthSession)(),A=(0,c.useAuthDisplayProfile)(),[q,E]=(0,s.useState)([]),$=C.length>0,P=(0,s.useMemo)(()=>N.find(e=>!(0,u.isAuthUtilityHref)(e.href)&&"primary"===e.type),[N]),T=(0,s.useMemo)(()=>(function(e,t){let a=e,r=null;for(let e of t){if(!(r=a[e]??null))return null;a=r.children}return r})(C,q),[C,q]),M=0===q.length?C:T?.children??[],O=$&&q.length>0,F=k&&k.length>0?k:[],R=(0,s.useCallback)(()=>{O?E(e=>e.slice(0,-1)):"industry-list"===w?j("products"):"market-trends"===w?j("market"):"account"===w?j("main"):"main"!==w&&j("main")},[O,w,j]),B=(0,s.useCallback)(()=>{E([]),y()},[y]),D=(0,s.useCallback)(()=>{let e=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(m.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,m.clearAuthSession)(),B(),(0,m.isAuthRequiredCommunityRoute)(e)||I.replace(o.routes.homePage)},[B,I]),H="main"===w&&!O,U=A.pictureUrl?.trim()||null;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-overlay)] bg-[var(--header-two-overlay)]","aria-hidden":!0,onClick:B}),(0,t.jsxs)("aside",{className:`${S?"h1s-mobile-drawer":""} fixed start-0 top-0 z-[var(--header-two-z-sidebar)] flex h-dvh w-[var(--header-two-sidebar-width)] max-w-full flex-col overflow-hidden bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-sidebar-shadow)] transition-transform ease-in-out [transition-duration:var(--header-two-sidebar-transition-duration)] ${e?"translate-x-0":"-translate-x-full rtl:translate-x-full"}`,"data-open":e?"true":"false","aria-modal":!0,role:"dialog","aria-label":L("menu"),children:[(0,t.jsxs)("div",{className:`flex shrink-0 items-center justify-between px-[var(--header-two-mobile-header-padding-x-mobile)] ${S?"xl:px-[var(--header-two-mobile-header-padding-x-desktop)]":"md:px-[var(--header-two-mobile-header-padding-x-desktop)]"} py-[var(--header-two-mobile-header-padding-y-mobile)] ${S?"xl:py-[var(--header-two-mobile-header-padding-y-desktop)]":"md:py-[var(--header-two-mobile-header-padding-y-desktop)]"} ${S?"bg-[var(--h1s-nav-drawer-header-bg)]":"bg-[var(--header-two-top-bg)]"}`,children:[(0,t.jsx)(n.Link,{href:_.href,onClick:B,children:(0,t.jsx)(l.default,{src:_.darkSrc??_.src,alt:_.alt,width:163,height:60,sizes:"163px",className:"h-[length:var(--header-two-mobile-logo-height)] w-auto object-contain",style:{width:"auto",height:"auto"}})}),(0,t.jsx)("button",{type:"button",className:"border-0 bg-transparent p-[var(--header-two-mobile-close-button-padding)]","aria-label":L("close_menu"),onClick:B,children:(0,t.jsx)(r.ClearIcon,{className:`w-6 h-6 ${S?"text-[var(--h1s-nav-drawer-header-text)]":"text-[var(--header-two-top-text-color)]"}`})})]}),"main"!==w||O?(0,t.jsx)("div",{children:(0,t.jsxs)("button",{type:"button",className:"flex items-center justify-between gap-[length:var(--header-two-mobile-back-gap)] pt-[var(--header-two-mobile-back-padding-top)] px-[var(--header-two-mobile-back-padding-x)] text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-link-outline-text)]",onClick:R,children:[(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mobile-chevron-right-size)] w-[length:var(--header-two-mobile-chevron-right-size)] shrink-0 rotate-180 rtl:rotate-0 text-[var(--header-two-link-outline-text)]"}),L("back")]})}):null,(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col justify-between px-[var(--header-two-mobile-shell-padding-x)] ${!H?"pb-[var(--header-two-mobile-shell-padding-y)] pt-0":"py-[var(--header-two-mobile-shell-padding-y)]"}`,children:[(0,t.jsxs)("div",{className:"min-h-0 overflow-y-auto",children:[z&&H&&A?(0,t.jsxs)("button",{type:"button",className:"mb-0 flex w-full items-center gap-[var(--header-two-mobile-profile-gap)] border-b border-[var(--header-two-main-border)] bg-transparent pb-[length:var(--header-two-mobile-nav-item-padding-y)] text-start",onClick:()=>j("account"),children:[(0,t.jsx)("span",{className:"relative flex h-[length:var(--header-two-mobile-profile-avatar-size)] w-[length:var(--header-two-mobile-profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--brand-white)]",style:U?{backgroundImage:`url(${U})`}:void 0,children:U?null:function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(A)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-semibold)] leading-[length:var(--header-two-font-line-height-regular)] text-[var(--header-two-mobile-profile-name-color)]",children:A.name}),A.role?.trim()?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] capitalize text-[var(--header-two-mobile-profile-email-color)]",children:(0,m.formatAuthRoleLabel)(A.role)}):null,A.email?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-mobile-profile-email-color)]",children:A.email}):null]}),(0,t.jsx)(a.ArrowIcon,{className:x})]}):null,"account"===w?(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)(f,{href:o.routes.auth.profile,onNavigate:B,children:[L("my_profile"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(f,{href:o.routes.auth.leads,onNavigate:B,children:[L("my_leads"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(f,{href:o.routes.auth.orders,onNavigate:B,children:[L("my_orders"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`${v} text-[var(--header-two-mobile-sign-out-color)]`,onClick:D,children:[(0,t.jsx)("span",{children:L("sign_out")}),(0,t.jsx)(b,{className:"h-[length:var(--header-two-mobile-sign-out-icon-size)] w-[length:var(--header-two-mobile-sign-out-icon-size)] shrink-0 text-[var(--header-two-mobile-sign-out-color)]"})]})})]}):null,$&&"account"!==w?(0,t.jsx)("ul",{children:M.map((e,r)=>{let l=e.children.length>0,i=!!e.href;return(0,t.jsx)("li",{children:l&&i?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(f,{href:e.href,target:e.target,onNavigate:B,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${v} flex justify-end items-center`,"aria-label":`${e.label} subcategories`,onClick:()=>E(e=>[...e,r]),children:(0,t.jsx)(a.ArrowIcon,{className:x})})]}):l?(0,t.jsxs)("button",{type:"button",className:v,onClick:()=>E(e=>[...e,r]),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:x})]}):i?(0,t.jsx)(f,{href:e.href,target:e.target,onNavigate:B,children:e.label}):(0,t.jsx)("span",{className:v,children:e.label})},`${e.label}-${r}`)})}):null,"main"!==w||$?null:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:v,onClick:()=>j("company"),children:[L("company"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>j("products"),className:v,children:[L("products"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>j("market"),className:v,children:[L("market_insights"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>j("learning"),className:v,children:[L("learning_center"),(0,t.jsx)(a.ArrowIcon,{className:x})]})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:h.COMMUNITY_HREF,onNavigate:B,children:L("community")})}),(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:h.CAREER_HREF,onNavigate:B,children:L("career")})})]}),"company"!==w||$?null:(0,t.jsx)("ul",{children:h.COMPANY_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:B,children:e.label})},e.id))}),"products"!==w||$?null:(0,t.jsx)("ul",{children:h.PRODUCT_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:"showChevron"in e&&e.showChevron?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(n.Link,{href:e.href,className:v,onClick:B,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${v} flex justify-end items-center`,"aria-label":`${e.label} — subcategories`,onClick:()=>j("industry-list"),children:(0,t.jsx)(a.ArrowIcon,{className:x})})]}):(0,t.jsx)(f,{href:e.href,onNavigate:B,children:e.label})},e.label))}),"industry-list"!==w||$?null:(0,t.jsx)("ul",{children:F.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:B,children:e.label})},e.href))}),"market"!==w||$?null:(0,t.jsx)("ul",{children:h.MARKET_LEFT_LINKS.map(e=>"subPanel"in e&&"market-trends"===e.subPanel?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:v,onClick:()=>j("market-trends"),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:x})]})},e.label):(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:B,children:e.label})},e.href))}),"market-trends"!==w||$?null:(0,t.jsx)("ul",{children:h.MARKET_TRENDS_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:B,children:e.label})},e.href))}),"learning"!==w||$?null:(0,t.jsx)("ul",{children:h.LEARNING_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(f,{href:e.href,onNavigate:B,children:e.label})},e.href))})]}),H?(0,t.jsx)("div",{className:`${S?"h1s-mobile-drawer-footer":""} shrink-0 pt-[var(--header-two-mobile-footer-gap)] ${S?"xl:hidden":""}`,children:N.length>0&&z&&P?(0,t.jsx)(i.Button,{variant:"primary",href:P.href,title:P.label,target:P.openInNewTab?"_blank":void 0,rel:P.openInNewTab?"noopener noreferrer":void 0,className:"w-full",onClick:B,children:P.label}):N.length>0?(0,t.jsx)("div",{className:"flex gap-[var(--header-two-mobile-footer-gap)]",children:(0,t.jsx)(p.HeaderUtilityActions,{actions:N,variant:"mobile",onNavigate:B})}):null}):null]})]})]}):null}e.s(["HeaderOneMobileSidebars",()=>w])},245802,e=>{"use strict";var t=e.i(843476);e.i(79951);var a=e.i(902936),r=e.i(271645);e.i(527967);var l=e.i(10451),i=e.i(30700),n=e.i(809009),s=e.i(458123),o=e.i(578938),
160c=e.i(752140),d=e.i(22584),u=e.i(454133);function m(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:null}function h(e){let t=Number(e);return Number.isFinite(t)?t:0}function p(e){let t=m(e.question);return h(e.question_id??t?.id)}function g(e,t){return e.get(t)??{answers:0,votes:0,views:0,hasUserVoted:!1,hasDirectAnswers:!1,hasDirectVotes:!1,hasDirectViews:!1}}function v(e){if(!e)return"Unknown date";let t=new Date,a=new Date(e).getTime()-t.getTime(),r=Math.abs(a),l=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return r<36e5?l.format(Math.round(a/6e4),"minute"):r<864e5?l.format(Math.round(a/36e5),"hour"):l.format(Math.round(a/864e5),"day")}function x(e){return"string"==typeof e&&e.trim()?e:"number"==typeof e?`Vertical ${e}`:"General"}function b(e){let t=e.trim();return t?d.routes.community.detail(encodeURIComponent(t)):d.routes.community.list}function f(e,t){let a=e.get(t);if(a)return a;let r={answers:0,votes:0,views:0,hasUserVoted:!1,hasDirectAnswers:!1,hasDirectVotes:!1,hasDirectViews:!1};return e.set(t,r),r}function w(e,t){for(let a of t){let t=e[a];if(Array.isArray(t))return t}return[]}var y=e.i(948148),j=e.i(450063),N=e.i(231807),_=e.i(475711),k=e.i(785336);function C(){let e=(0,y.useTranslations)(),d=(0,_.useLayoutThemeId)(),C=(0,k.usesComponentTheme)(d,"premium"),{requireAuthForPost:S}=(0,j.useCommunityAuth)(),[L,I]=(0,r.useState)("questions"),[z,A]=(0,r.useState)({questions:[],answers:[],bookmarked:[]}),[q,E]=(0,r.useState)(N.readQuestionVoteMap),[$,P]=(0,r.useState)({questions:0,answers:0,bookmarks:0}),[T,M]=(0,r.useState)("idle"),[O,F]=(0,r.useState)(""),[R,B]=(0,r.useState)(""),D=(0,r.useCallback)(async()=>{if(!(0,o.getAuthToken)()?.trim()){console.warn("[COMMUNITY] Question history: no SSO token — cannot call user-by-email"),M("error"),F(e("sign_in_for_history")),A({questions:[],answers:[],bookmarked:[]}),P({questions:0,answers:0,bookmarks:0});return}let{email:t}=(0,o.getAuthDisplayProfile)();if(!t?.trim()){console.warn("[COMMUNITY] Question history: no email on profile or JWT — cannot call user-by-email"),M("error"),F(e("no_email_on_account")),A({questions:[],answers:[],bookmarked:[]}),P({questions:0,answers:0,bookmarks:0});return}M("loading"),F("");try{var a;let e,r,l,i,n,s,o,d,y,j,N;console.info("[COMMUNITY] Question history: fetching user-by-email",{email:t});let _=await (0,c.fetchCommunityUserByEmailClient)(t.trim()),k=(a=_.data??_,e={questions:[],answers:[],bookmarked:[]},r=m(a),l=m(r?.data)??r??{},i=m(l.data)??l,n=w(i,["questions","my_questions","asked_questions","myQuestions"]),s=w(i,["answers","my_answers","answered","myAnswers"]),o=w(i,["bookmarks","bookmarked","bookmarked_questions","bookmark_questions","bookmarkedQuestions"]),d=w(i,["views"]),y=function(e,t,a,r){let l=new Map;for(let t of e){let e=m(t);if(!e)continue;let a=h(e.id);if(!a)continue;let r=f(l,a);(void 0!==e.answers_count||void 0!==e.comments_count)&&(r.answers=h(e.answers_count??e.comments_count),r.hasDirectAnswers=!0),(void 0!==e.votes_count||void 0!==e.votes)&&(r.votes=h(e.votes_count??e.votes),r.hasDirectVotes=!0),(void 0!==e.views_count||void 0!==e.views)&&(r.views=h(e.views_count??e.views),r.hasDirectViews=!0)}for(let e of t){let t=m(e);if(!t)continue;let a=p(t);if(!a)continue;let r=f(l,a);r.hasDirectAnswers||(r.answers=Math.max(r.answers,0)+1)}for(let e of a){let t=m(e);if(!t)continue;let a=p(t);if(!a)continue;let r=f(l,a);r.hasDirectViews||(r.views=Math.max(r.views,0)+1)}for(let e of r){let t=m(e);if(!t||null!==t.answer_id&&void 0!==t.answer_id)continue;let a=p(t);if(!a)continue;let r=f(l,a);r.hasDirectVotes||(r.votes=Math.max(r.votes,0)+h(t.value||1)),r.hasUserVoted=!0}return l}(n,s,d,w(i,["votes"])),e.questions=n.map(e=>(function(e,t){let a=m(e);if(!a)return null;let r=Number(a.id??0),l=h(a.id),i=m(a.translation)??{},n=String(i.slug??a.slug??"").trim(),s=i.title??a.title,o="string"==typeof s&&s.trim()?s.trim():n?"Question":r?`Question #${r}`:"Untitled",c=i.body??a.body??a.description,d=(0,u.extractCommunityText)(c)||("string"==typeof a.excerpt?a.excerpt.trim():"")||"No description yet.",p=b(n),f=g(t,l);return{id:r,questionId:l,slug:n,questionTitle:o,hasUserVoted:f.hasUserVoted,href:p,heading:o,text:d,category:x(a.business_vertical_id??null),votes:f.votes,comments:f.answers,views:f.views,timeAgo:v("string"==typeof a.published_at?a.published_at:"string"==typeof a.created_at?a.created_at:null),viewHref:p}})(e,y)).filter(e=>null!==e),e.answers=s.map(e=>(function(e,t){let a=m(e);if(!a)return null;let r=Number(a.id??0),l=m(a.question)??{},i=p(a),n=m(l.translation)??{},s=String(l.slug??"").trim()||String(n.slug??"").trim()||String(a.question_slug??"").trim()||String(a.slug??"").trim(),o=m(a.translation)??{}
160,c=("string"==typeof l.title?l.title.trim():String(m(l.translation)?.title??"").trim())||"Answer",d=(0,u.extractCommunityText)(o.body??a.body)||"—",h=b(s),f=g(t,i);return{id:r||s.length,questionId:i,slug:s,questionTitle:c,hasUserVoted:f.hasUserVoted,href:h,heading:c,text:d,category:x(l.business_vertical_id??a.business_vertical_id??null),votes:f.votes,comments:f.answers,views:f.views,timeAgo:v("string"==typeof a.created_at?a.created_at:null),viewHref:h}})(e,y)).filter(e=>null!==e),e.bookmarked=o.map(e=>(function(e,t){let a=m(e);if(!a)return null;let r=m(a.question)??{},l=p(a),i=m(r.translation)??{},n=String(r.slug??i.slug??"").trim(),s="string"==typeof r.title&&r.title.trim()?r.title.trim():"Bookmarked question",o=Number(a.id??0),c=b(n),d=g(t,l),u="string"==typeof a.created_at?a.created_at:"string"==typeof a.updated_at?a.updated_at:null;return{id:o,questionId:l,slug:n,questionTitle:s,hasUserVoted:d.hasUserVoted,href:c,heading:s,text:"In your bookmarks.",category:"Bookmarked",votes:d.votes,comments:d.answers,views:d.views,timeAgo:v(u),viewHref:c}})(e,y)).filter(e=>null!==e),j={questions:e.questions.length,answers:e.answers.length,bookmarks:e.bookmarked.length},{cards:e,tabCounts:(N=m(i.counts))?{questions:Number.isFinite(Number(N.questions))?Number(N.questions):j.questions,answers:Number.isFinite(Number(N.answers))?Number(N.answers):j.answers,bookmarks:Number.isFinite(Number(N.bookmarks))?Number(N.bookmarks):j.bookmarks}:j});A(k.cards),E(e=>{let t={...e};for(let e of Object.values(k.cards))for(let a of e)a.slug&&a.hasUserVoted&&(t[a.slug]=1);return t}),P(k.tabCounts),M("ready"),console.info("[COMMUNITY] Question history: user-by-email loaded",{tabCounts:k.tabCounts,questionCards:k.cards.questions.length,answerCards:k.cards.answers.length,bookmarkCards:k.cards.bookmarked.length})}catch(t){console.error("[COMMUNITY] Question history: user-by-email failed",t),M("error"),F(t instanceof Error?t.message:e("unable_to_load_history")),A({questions:[],answers:[],bookmarked:[]}),P({questions:0,answers:0,bookmarks:0})}},[e]);(0,r.useEffect)(()=>{let e=requestAnimationFrame(()=>{D()});return()=>cancelAnimationFrame(e)},[D]);let H=[{key:"questions",title:e("my_questions"),count:$.questions,emptyMessage:e("empty_no_questions")},{key:"answers",title:e("my_answers"),count:$.answers,emptyMessage:e("empty_no_answers")},{key:"bookmarked",title:e("bookmarked"),count:$.bookmarks,emptyMessage:e("empty_no_bookmarks")}],U=H.find(e=>e.key===L),G=z[L],W=(0,r.useCallback)(e=>{A(t=>({questions:t.questions.map(t=>t.slug===e?{...t,votes:t.votes+1,hasUserVoted:!0}:t),answers:t.answers.map(t=>t.slug===e?{...t,votes:t.votes+1,hasUserVoted:!0}:t),bookmarked:t.bookmarked.map(t=>t.slug===e?{...t,votes:t.votes+1,hasUserVoted:!0}:t)}))},[]),V=(0,r.useCallback)(async(t,a)=>{if(t.preventDefault(),t.stopPropagation(),B(""),!a.slug||a.hasUserVoted||1===q[a.slug]||(0,N.isDuplicateQuestionVote)(a.slug,1))return;let r={v:1,action:"vote",payload:{target:"question",question_slug:a.slug,question_title:a.questionTitle||a.heading||e("question"),value:1}};try{if(!await S(r,"community:history-question-vote",async()=>{await (0,c.postCommunityVote)({question_slug:a.slug,question_title:a.questionTitle||a.heading||e("question"),value:1}),(0,N.setQuestionVote)(a.slug,1),E(e=>({...e,[a.slug]:1})),W(a.slug)}))return}catch(t){B(t instanceof Error?t.message:e("error_unable_to_submit_vote"))}},[W,S,e,q]);return(0,t.jsx)("section",{className:"question-history-section my-[var(--question-history-section-margin-y)]","data-premium-question-history":C?"":void 0,children:(0,t.jsxs)("div",{className:"question-history-container layout-container px-3 md:px-5",children:[(0,t.jsx)("h2",{className:'question-history-heading relative mb-[var(--question-history-heading-margin-bottom)] ps-[var(--question-history-heading-padding-left)] text-start text-[color:var(--question-history-heading-color)] text-[length:var(--question-history-heading-size-mobile)] md:text-[length:var(--question-history-heading-size)] leading-[var(--question-history-heading-line-height-mobile)] md:leading-[var(--question-history-heading-line-height)] font-[var(--question-history-heading-weight)] before:absolute before:bottom-0 before:start-0 before:top-0 before:w-[var(--question-history-heading-line-width)] before:rounded-[var(--question-history-heading-line-radius)] before:bg-[var(--question-history-heading-line-color)] before:content-[""]',children:e("questions_history")}),(0,t.jsx)("p",{className:"question-history-intro text-start max-md:text-[14px] max-md:leading-[25px]",children:e("questions_history_intro")}),"loading"===T?(0,t.jsx)("p",{className:"mt-6 text-start text-sm text-[var(--question-history-heading-color)]",children:e("loading_history")}
160):null,"error"===T&&O?(0,t.jsx)("p",{className:"mt-6 text-start text-sm text-[var(--brand-danger)]",role:"alert",children:O}):null,(0,t.jsx)("div",{className:"question-history-tabs mt-[var(--question-history-tabs-margin-top)]",children:(0,t.jsx)("div",{className:"question-history-tab-list mb-[var(--question-history-tabs-header-margin-bottom)] grid gap-[var(--question-history-tabs-mobile-gap)] overflow-hidden border-b-2 border-[var(--question-history-tabs-header-border-color)] md:block",children:H.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>I(e.key),className:`question-history-tab float-none md:float-start justify-self-start text-start bg-transparent border-x-0 border-t-0 border-b-2 border-transparent cursor-pointer outline-none transition-all duration-300 text-[length:var(--question-history-mobile-text-size)] md:text-[length:var(--question-history-tab-size)] leading-[var(--question-history-mobile-text-line-height)] md:leading-[var(--question-history-tab-line-height)] font-[var(--question-history-tab-weight)] p-[var(--question-history-tab-padding-mobile)] md:p-[var(--question-history-tab-padding)] hover:text-[color:var(--question-history-tab-active-color)] hover:border-b-2 hover:border-b-[color:var(--question-history-tab-active-border-color)] ${L===e.key?"text-[color:var(--question-history-tab-active-color)] border-b-2 border-b-[color:var(--question-history-tab-active-border-color)] question-history-tab--active":"text-[color:var(--question-history-tab-color)]"}`,children:[e.title," (",e.count,")"]},e.key))})}),(0,t.jsxs)("section",{className:"question-history-card-list grid grid-cols-1 gap-[var(--question-history-card-gap)]",children:[0===G.length&&"ready"===T?(0,t.jsx)("p",{className:"text-start",children:U?.emptyMessage}):null,G.map((r,o)=>{let c;return c=r.hasUserVoted||!!r.slug&&1===q[r.slug],(0,t.jsxs)("div",{className:"question-history-card border border-[var(--question-history-card-border-color)] p-[var(--question-history-card-padding)] transition-all duration-300 hover:border-[var(--question-history-card-border-hover-color)] hover:shadow-[var(--question-history-card-shadow-hover)]",children:[(0,t.jsxs)(a.Link,{href:r.href,className:"question-history-card-content",children:[(0,t.jsx)("h3",{className:"question-history-card-title m-0 text-start text-[color:var(--question-history-card-title-color)] text-[length:var(--question-history-card-title-size-mobile)] font-[var(--question-history-card-title-weight)] md:text-[length:var(--question-history-card-title-size)] md:leading-[var(--question-history-card-title-line-height)] leading-[var(--question-history-card-title-line-height-mobile)]",children:r.heading}),(0,t.jsx)("p",{className:"question-history-card-description mb-[var(--question-history-card-description-margin-bottom)] mt-[var(--question-history-card-description-margin-top)] text-start max-md:text-[14px] max-md:leading-[25px]",children:r.text})]}),(0,t.jsx)("span",{className:"question-history-card-pill inline-block w-max max-w-full overflow-hidden rounded-[100px] border border-[var(--question-history-card-pill-border-color)] px-3 py-1 text-center text-[length:var(--question-history-card-pill-size-mobile)] font-[var(--question-history-card-pill-weight)] leading-[25px] tracking-[var(--question-history-card-pill-letter-spacing)] text-[color:var(--question-history-card-pill-text-color)] md:text-[length:var(--question-history-card-pill-size)]",children:r.category}),(0,t.jsx)("hr",{className:"question-history-card-divider my-[var(--question-history-card-divider-margin-y)] h-[2px] border-none bg-[var(--question-history-card-divider-bg)]"}),(0,t.jsxs)("div",{className:"question-history-card-footer flex flex-col justify-between gap-3 md:flex-row md:items-center",children:[(0,t.jsxs)("div",{className:"question-history-card-stats flex items-center gap-[var(--question-history-card-stats-gap)]",children:[(0,t.jsxs)("button",{type:"button","aria-label":e("upvote_discussion"),className:`flex items-center gap-[var(--question-history-card-stat-item-gap)] border-0 bg-transparent p-0 ${c||!r.slug?"cursor-not-allowed opacity-60":"cursor-pointer"}`,disabled:c||!r.slug,onClick:e=>void V(e,r),children:[(0,t.jsx)(n.UpIconGrey,{}),(0,t.jsx)("span",{className:"text-[var(--question-history-card-stat-text-color)]",children:r.votes})]}),(0,t.jsxs)("div",{className:"flex items-center gap-[var(--question-history-card-stat-item-gap)]",children:[(0,t.jsx)(l.CommentGrey,{}),(0,t.jsx)("span",{className:"text-[var(--question-history-card-stat-text-color)]",children:r.comments})]}),(0,t.jsxs)("div",{className:"flex items-center gap-[var(--question-history-card-stat-item-gap)]",children:[(0,t.jsx)(s.ViewGrey,{}),(0,t.jsx)("span",{className:"text-[var(--question-history-card-stat-text-color)]",children:r.views})]}),"|",(0,t.jsx)("span",{className:"text-start text-[color:var(--question-history-card-stat-text-color)] text-[length:var(--question-history-card-time-size)]",children:r.timeAgo})]}),(0,t.jsxs)(a.Link,{href:r.viewHref,className:"question-history-card-view flex items-center gap-[var(--question-history-card-view-button-gap)] self-end font-[var(--question-history-card-view-button-weight)] text-[var(--question-history-card-view-button-color)] max-md:self-auto max-md:text-sm md:self-auto",children:[e("view_discussion"),(0,t.jsx)(i.RightIcon,{className:"text-[var(--brand-secondary)] rtl:rotate-180"})]})]})]},`${L}-${r.id}-${o}`)}),R?(0,t.jsx)("p",{className:"text-start text-sm text-[#f60000]",role:"alert",children:R}):null]})]})})}e.s(["QuestionHistory",()=>C],245802)},378798,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(657688);e.i(716787);
160var i=e.i(659544);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(22584),c=e.i(902312),d=e.i(160741),u=e.i(578938),m=e.i(37354),h=e.i(56106),p=e.i(948148);let g="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]",v="h-[length:var(--header-two-mobile-chevron-left-size)] w-[length:var(--header-two-mobile-chevron-left-size)] shrink-0 text-[var(--header-two-mobile-nav-arrow-color)] rtl:rotate-180";function x({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}function b({href:e,children:a,onNavigate:r,target:l}){let i=e.startsWith("http")||"_blank"===l,s="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]";return i?(0,t.jsx)("a",{href:e,className:s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a}):(0,t.jsx)(n.Link,{href:e,className:s,onClick:r,children:a})}function f({open:e,panel:f,onClose:w,setPanel:y,utilityActions:j=[],logo:N,cmsCategoryLinks:_,cmsNav:k=[],standard:C=!1}){let S=(0,p.useTranslations)(),L=(0,n.useRouter)(),I=(0,c.useHasAuthSession)(),[z,A]=(0,s.useState)([]),q=k.length>0,E=(0,s.useMemo)(()=>j.find(e=>!(0,d.isAuthUtilityHref)(e.href)&&"primary"===e.type),[j]),$=(0,s.useMemo)(()=>(function(e,t){let a=e,r=null;for(let e of t){if(!(r=a[e]??null))return null;a=r.children}return r})(k,z),[k,z]),P=0===z.length?k:$?.children??[],T=q&&z.length>0,M=_&&_.length>0?_:[],O=(0,s.useCallback)(()=>{T?A(e=>e.slice(0,-1)):"industry-list"===f?y("products"):"market-trends"===f?y("market"):"account"===f?y("main"):"main"!==f&&y("main")},[T,f,y]),F=(0,s.useCallback)(()=>{A([]),w()},[w]),R=(0,s.useCallback)(()=>{let e=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(u.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,u.clearAuthSession)(),F(),(0,u.isAuthRequiredCommunityRoute)(e)||L.replace(o.routes.homePage)},[F,L]),B="main"===f&&!T,D=I?(0,u.getAuthDisplayProfile)():null,H=I?(0,u.getAuthProfileFormPrefill)().avatarUrl:null;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-overlay)] bg-[var(--header-two-overlay)]","aria-hidden":!0,onClick:F}),(0,t.jsxs)("aside",{className:`${C?"h1s-mobile-drawer":""} fixed start-0 top-0 z-[var(--header-two-z-sidebar)] flex h-dvh w-[var(--header-two-sidebar-width)] max-w-full flex-col overflow-hidden bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-sidebar-shadow)] transition-transform ease-in-out [transition-duration:var(--header-two-sidebar-transition-duration)] ${e?"translate-x-0":"-translate-x-full rtl:translate-x-full"}`,"data-open":e?"true":"false","aria-modal":!0,role:"dialog","aria-label":S("menu"),children:[(0,t.jsxs)("div",{className:`flex shrink-0 items-center justify-between px-[var(--header-two-mobile-header-padding-x-mobile)] ${C?"xl:px-[var(--header-two-mobile-header-padding-x-desktop)]":"md:px-[var(--header-two-mobile-header-padding-x-desktop)]"} py-[var(--header-two-mobile-header-padding-y-mobile)] ${C?"xl:py-[var(--header-two-mobile-header-padding-y-desktop)]":"md:py-[var(--header-two-mobile-header-padding-y-desktop)]"} ${C?"bg-[var(--h1s-nav-drawer-header-bg)]":"bg-[var(--header-two-top-bg)]"}`,children:[(0,t.jsx)(n.Link,{href:N.href,onClick:F,children:(0,t.jsx)(l.default,{src:N.darkSrc??N.src,alt:N.alt,width:163,height:60,sizes:"163px",className:"h-[length:var(--header-two-mobile-logo-height)] w-auto object-contain",style:{width:"auto",height:"auto"}})}),(0,t.jsx)("button",{type:"button",className:"border-0 bg-transparent p-[var(--header-two-mobile-close-button-padding)]","aria-label":S("close_menu"),onClick:F,children:(0,t.jsx)(r.ClearIcon,{className:`w-6 h-6 ${C?"text-[var(--h1s-nav-drawer-header-text)]":"text-[var(--header-two-top-text-color)]"}`})})]}),"main"!==f||T?(0,t.jsx)("div",{children:(0,t.jsxs)("button",{type:"button",className:"flex items-center justify-between gap-[length:var(--header-two-mobile-back-gap)] pt-[var(--header-two-mobile-back-padding-top)] px-[var(--header-two-mobile-back-padding-x)] text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-link-outline-text)]",onClick:O,children:[(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mobile-chevron-right-size)] w-[length:var(--header-two-mobile-chevron-right-size)] shrink-0 rotate-180 rtl:rotate-0 text-[var(--header-two-link-outline-text)]"}),S("back")]})}):null,(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col justify-between px-[var(--header-two-mobile-shell-padding-x)] ${!B?"pb-[var(--header-two-mobile-shell-padding-y)] pt-0":"py-[var(--header-two-mobile-shell-padding-y)]"}`,children:[(0,t.jsxs)("div",{className:"min-h-0 overflow-y-auto",children:[I&&B&&D?(0,t.jsxs)("button",{type:"button",className:"mb-0 flex w-full items-center gap-[var(--header-two-mobile-profile-gap)] border-b border-[var(--header-two-main-border)] bg-transparent pb-[length:var(--header-two-mobile-nav-item-padding-y)] text-start",onClick:()=>y("account"),children:[(0,t.jsx)("span",{className:"relative flex h-[length:var(--header-two-mobile-profile-avatar-size)] w-[length:var(--header-two-mobile-profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--brand-white)]",style:H?{backgroundImage:`url(${H})`}:void 0,children:H?null:function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(D)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-semibold)] leading-[length:var(--header-two-font-line-height-regular)] text-[var(--header-two-mobile-profile-name-color)]",children:D.name}),D.email?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-mobile-profile-email-color)]",children:D.email}):null]}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):null,"account"===f?(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.profile,onNavigate:F,children:[S("my_profile"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.leads,onNavigate:F,children:[S("my_leads"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.orders,onNavigate:F,children:[S("my_orders"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`${g} text-[var(--header-two-mobile-sign-out-color)]`,onClick:R,children:[(0,t.jsx)("span",{children:S("sign_out")}),(0,t.jsx)(x,{className:"h-[length:var(--header-two-mobile-sign-out-icon-size)] w-[length:var(--header-two-mobile-sign-out-icon-size)] shrink-0 text-[var(--header-two-mobile-sign-out-color)]"})]})})]}):null,q&&"account"!==f?(0,t.jsx)("ul",{children:P.map((e,r)=>{let l=e.children.length>0,i=!!e.href;return(0,t.jsx)("li",{children:l&&i?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} subcategories`,onClick:()=>A(e=>[...e,r]),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):l?(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>A(e=>[...e,r]),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):i?(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}):(0,t.jsx)("span",{className:g,children:e.label})},`${e.label}-${r}`)})}):null,"main"!==f||q?null:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("company"),children:[S("company"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("products"),className:g,children:[S("products"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("market"),className:g,children:[S("market_insights"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("learning"),className:g,children:[S("learning_center"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.COMMUNITY_HREF,onNavigate:F,children:S("community")})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.CAREER_HREF,onNavigate:F,children:S("career")})})]}),"company"!==f||q?null:(0,t.jsx)("ul",{children:m.COMPANY_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.id))}),"products"!==f||q?null:(0,t.jsx)("ul",{children:m.PRODUCT_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:"showChevron"in e&&e.showChevron?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(n.Link,{href:e.href,className:g,onClick:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} — subcategories`,onClick:()=>y("industry-list"),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.label))}),"industry-list"!==f||q?null:(0,t.jsx)("ul",{children:M.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_LEFT_LINKS.map(e=>"subPanel"in e&&"market-trends"===e.subPanel?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("market-trends"),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]})},e.label):(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market-trends"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_TRENDS_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"learning"!==f||q?null:(0,t.jsx)("ul",{children:m.LEARNING_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))})]}),B?(0,t.jsx)("div",{className:`${C?"h1s-mobile-drawer-footer":""} shrink-0 pt-[var(--header-two-mobile-footer-gap)] ${C?"xl:hidden":""}`,children:j.length>0&&I&&E?(0,t.jsx)(i.Button,{variant:"primary",href:E.href,title:E.label,target:E.openInNewTab?"_blank":void 0,rel:E.openInNewTab?"noopener noreferrer":void 0,className:"w-full",onClick:F,children:E.label}):j.length>0?(0,t.jsx)("div",{className:"flex gap-[var(--header-two-mobile-footer-gap)]",children:(0,t.jsx)(h.HeaderUtilityActions,{actions:j,variant:"mobile",onNavigate:F})}):null}):null]})]})]}):null}e.s(["HeaderOneMobileSidebars",()=>f])},107693,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(657688);e.i(716787);
160var i=e.i(659544);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(22584),c=e.i(902312),d=e.i(160741),u=e.i(578938),m=e.i(189015);e.i(475584);var h=e.i(285216),p=e.i(948148);let g="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]",v="h-[length:var(--header-two-mobile-chevron-left-size)] w-[length:var(--header-two-mobile-chevron-left-size)] shrink-0 text-[var(--header-two-mobile-nav-arrow-color)] rtl:rotate-180";function x({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,t.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,t.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}function b({href:e,children:a,onNavigate:r,target:l}){let i=e.startsWith("http")||"_blank"===l,s="flex w-full items-center justify-between border-b border-[var(--header-two-main-border)] bg-transparent py-[length:var(--header-two-mobile-nav-item-padding-y)] text-start text-[length:var(--header-two-font-size-md-mobile)] leading-[length:var(--header-two-font-line-height-regular)] font-[var(--header-two-font-weight-medium)] text-[var(--header-two-mobile-nav-item-color)]";return i?(0,t.jsx)("a",{href:e,className:s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a}):(0,t.jsx)(n.Link,{href:e,className:s,onClick:r,children:a})}function f({open:e,panel:f,onClose:w,setPanel:y,utilityActions:j=[],logo:N,cmsCategoryLinks:_,cmsNav:k=[],standard:C=!1}){let S=(0,p.useTranslations)(),L=(0,n.useRouter)(),I=(0,c.useHasAuthSession)(),[z,A]=(0,s.useState)([]),q=k.length>0,E=(0,s.useMemo)(()=>j.find(e=>!(0,d.isAuthUtilityHref)(e.href)&&"primary"===e.type),[j]),$=(0,s.useMemo)(()=>(function(e,t){let a=e,r=null;for(let e of t){if(!(r=a[e]??null))return null;a=r.children}return r})(k,z),[k,z]),P=0===z.length?k:$?.children??[],T=q&&z.length>0,M=_&&_.length>0?_:[],O=(0,s.useCallback)(()=>{T?A(e=>e.slice(0,-1)):"industry-list"===f?y("products"):"market-trends"===f?y("market"):"account"===f?y("main"):"main"!==f&&y("main")},[T,f,y]),F=(0,s.useCallback)(()=>{A([]),w()},[w]),R=(0,s.useCallback)(()=>{let e=window.location.pathname.split("?")[0]||"";try{window.sessionStorage.setItem(u.AUTH_PENDING_LOGOUT_TOAST_KEY,"1")}catch{}(0,u.clearAuthSession)(),F(),(0,u.isAuthRequiredCommunityRoute)(e)||L.replace(o.routes.homePage)},[F,L]),B="main"===f&&!T,D=I?(0,u.getAuthDisplayProfile)():null,H=I?(0,u.getAuthProfileFormPrefill)().avatarUrl:null;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-overlay)] bg-[var(--header-two-overlay)]","aria-hidden":!0,onClick:F}),(0,t.jsxs)("aside",{className:`${C?"h1s-mobile-drawer":""} fixed start-0 top-0 z-[var(--header-two-z-sidebar)] flex h-dvh w-[var(--header-two-sidebar-width)] max-w-full flex-col overflow-hidden bg-[var(--header-two-main-bg)] [box-shadow:var(--header-two-sidebar-shadow)] transition-transform ease-in-out [transition-duration:var(--header-two-sidebar-transition-duration)] ${e?"translate-x-0":"-translate-x-full rtl:translate-x-full"}`,"data-open":e?"true":"false","aria-modal":!0,role:"dialog","aria-label":S("menu"),children:[(0,t.jsxs)("div",{className:`flex shrink-0 items-center justify-between px-[var(--header-two-mobile-header-padding-x-mobile)] ${C?"xl:px-[var(--header-two-mobile-header-padding-x-desktop)]":"md:px-[var(--header-two-mobile-header-padding-x-desktop)]"} py-[var(--header-two-mobile-header-padding-y-mobile)] ${C?"xl:py-[var(--header-two-mobile-header-padding-y-desktop)]":"md:py-[var(--header-two-mobile-header-padding-y-desktop)]"} ${C?"bg-[var(--h1s-nav-drawer-header-bg)]":"bg-[var(--header-two-top-bg)]"}`,children:[(0,t.jsx)(n.Link,{href:N.href,onClick:F,children:(0,t.jsx)(l.default,{src:N.darkSrc??N.src,alt:N.alt,width:163,height:60,sizes:"163px",className:"h-[length:var(--header-two-mobile-logo-height)] w-auto object-contain",style:{width:"auto",height:"auto"}})}),(0,t.jsx)("button",{type:"button",className:"border-0 bg-transparent p-[var(--header-two-mobile-close-button-padding)]","aria-label":S("close_menu"),onClick:F,children:(0,t.jsx)(r.ClearIcon,{className:`w-6 h-6 ${C?"text-[var(--h1s-nav-drawer-header-text)]":"text-[var(--header-two-top-text-color)]"}`})})]}),"main"!==f||T?(0,t.jsx)("div",{children:(0,t.jsxs)("button",{type:"button",className:"flex items-center justify-between gap-[length:var(--header-two-mobile-back-gap)] pt-[var(--header-two-mobile-back-padding-top)] px-[var(--header-two-mobile-back-padding-x)] text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-link-outline-text)]",onClick:O,children:[(0,t.jsx)(a.ArrowIcon,{className:"h-[length:var(--header-two-mobile-chevron-right-size)] w-[length:var(--header-two-mobile-chevron-right-size)] shrink-0 rotate-180 rtl:rotate-0 text-[var(--header-two-link-outline-text)]"}),S("back")]})}):null,(0,t.jsxs)("div",{className:`flex min-h-0 flex-1 flex-col justify-between px-[var(--header-two-mobile-shell-padding-x)] ${!B?"pb-[var(--header-two-mobile-shell-padding-y)] pt-0":"py-[var(--header-two-mobile-shell-padding-y)]"}`,children:[(0,t.jsxs)("div",{className:"min-h-0 overflow-y-auto",children:[I&&B&&D?(0,t.jsxs)("button",{type:"button",className:"mb-0 flex w-full items-center gap-[var(--header-two-mobile-profile-gap)] border-b border-[var(--header-two-main-border)] bg-transparent pb-[length:var(--header-two-mobile-nav-item-padding-y)] text-start",onClick:()=>y("account"),children:[(0,t.jsx)("span",{className:"relative flex h-[length:var(--header-two-mobile-profile-avatar-size)] w-[length:var(--header-two-mobile-profile-avatar-size)] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[var(--header-two-top-deep-color)] bg-cover bg-center text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-semibold)] text-[var(--brand-white)]",style:H?{backgroundImage:`url(${H})`}:void 0,children:H?null:function(e){let t=e.name?.trim();if(t)return t.charAt(0).toUpperCase();let a=e.email?.trim();return a?a.charAt(0).toUpperCase():"?"}(D)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-semibold)] leading-[length:var(--header-two-font-line-height-regular)] text-[var(--header-two-mobile-profile-name-color)]",children:D.name}),D.email?(0,t.jsx)("span",{className:"mt-[var(--gap-2)] block truncate text-[length:var(--header-two-mobile-profile-email-size)] leading-[length:var(--header-two-mobile-profile-email-line-height)] font-[var(--header-two-font-weight-normal)] text-[var(--header-two-mobile-profile-email-color)]",children:D.email}):null]}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):null,"account"===f?(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.profile,onNavigate:F,children:[S("my_profile"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.leads,onNavigate:F,children:[S("my_leads"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(b,{href:o.routes.auth.orders,onNavigate:F,children:[S("my_orders"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:`${g} text-[var(--header-two-mobile-sign-out-color)]`,onClick:R,children:[(0,t.jsx)("span",{children:S("sign_out")}),(0,t.jsx)(x,{className:"h-[length:var(--header-two-mobile-sign-out-icon-size)] w-[length:var(--header-two-mobile-sign-out-icon-size)] shrink-0 text-[var(--header-two-mobile-sign-out-color)]"})]})})]}):null,q&&"account"!==f?(0,t.jsx)("ul",{children:P.map((e,r)=>{let l=e.children.length>0,i=!!e.href;return(0,t.jsx)("li",{children:l&&i?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} subcategories`,onClick:()=>A(e=>[...e,r]),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):l?(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>A(e=>[...e,r]),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]}):i?(0,t.jsx)(b,{href:e.href,target:e.target,onNavigate:F,children:e.label}):(0,t.jsx)("span",{className:g,children:e.label})},`${e.label}-${r}`)})}):null,"main"!==f||q?null:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("company"),children:[S("company"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("products"),className:g,children:[S("products"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("market"),className:g,children:[S("market_insights"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>y("learning"),className:g,children:[S("learning_center"),(0,t.jsx)(a.ArrowIcon,{className:v})]})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.COMMUNITY_HREF,onNavigate:F,children:S("community")})}),(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:m.CAREER_HREF,onNavigate:F,children:S("career")})})]}),"company"!==f||q?null:(0,t.jsx)("ul",{children:m.COMPANY_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.id))}),"products"!==f||q?null:(0,t.jsx)("ul",{children:m.PRODUCT_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:"showChevron"in e&&e.showChevron?(0,t.jsxs)("div",{className:"flex items-stretch",children:[(0,t.jsx)(n.Link,{href:e.href,className:g,onClick:F,children:e.label}),(0,t.jsx)("button",{type:"button",className:`${g} flex justify-end items-center`,"aria-label":`${e.label} — subcategories`,onClick:()=>y("industry-list"),children:(0,t.jsx)(a.ArrowIcon,{className:v})})]}):(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.label))}),"industry-list"!==f||q?null:(0,t.jsx)("ul",{children:M.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_LEFT_LINKS.map(e=>"subPanel"in e&&"market-trends"===e.subPanel?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:g,onClick:()=>y("market-trends"),children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(a.ArrowIcon,{className:v})]})},e.label):(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"market-trends"!==f||q?null:(0,t.jsx)("ul",{children:m.MARKET_TRENDS_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))}),"learning"!==f||q?null:(0,t.jsx)("ul",{children:m.LEARNING_LEFT_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b,{href:e.href,onNavigate:F,children:e.label})},e.href))})]}),B&&j.length>0?(0,t.jsx)("div",{className:`${C?"h1s-mobile-drawer-footer":""} shrink-0 pt-[var(--header-two-mobile-footer-gap)] ${C?"xl:hidden":""}`,children:I&&E?(0,t.jsx)(i.Button,{variant:"primary",href:E.href,title:E.label,target:E.openInNewTab?"_blank":void 0,rel:E.openInNewTab?"noopener noreferrer":void 0,className:"w-full",onClick:F,children:E.label}):(0,t.jsx)("div",{className:"flex gap-[var(--header-two-mobile-footer-gap)]",children:(0,t.jsx)(h.HeaderUtilityActions,{actions:j,variant:"mobile",onNavigate:F})})}):null]})]})]}):null}e.s(["HeaderOneMobileSidebars",()=>f],107693)},484147,e=>{"use strict";var t=e.i(843476),a=e.i(22584);e.i(527967);var r=e.i(887300),l=e.i(337190),i=e.i(45698),n=e.i(71527),s=e.i(6
16057688);e.i(79951);var o=e.i(902936),c=e.i(76209),d=e.i(271645),u=e.i(948148),m=e.i(242405),h=e.i(915248);let p="header_one_recent_searches";function g(e){let t=new URLSearchParams({[h.HEADER_ONE_SEARCH.inputName]:e});return`${a.routes.searchResult.root}?${t.toString()}`}function v(e,t){let r=new URLSearchParams({[h.HEADER_ONE_SEARCH.inputName]:e??"",tab:t});return`${a.routes.searchResult.root}?${r.toString()}`}function x(e){let t=e.trim();return t?/^https?:\/\//i.test(t)||/^mailto:/i.test(t)||t.startsWith("/")?t:`/${t}`:a.routes.searchResult.root}function b(e,t,a){return`${e}-${a}-${String(t.id)}-${t.url}`}function f({logo:e,websiteName:f,showMenuButton:w=!0,onOpenMobileMenu:y,onOpenLanguage:j,onOpenGroupSites:N}){let _=(0,u.useTranslations)(),k=(0,c.usePathname)(),C=(0,m.useMediaQuery)("(min-width: 1024px)"),S=(0,d.useRef)(null),[L,I]=(0,d.useState)(""),[z,A]=(0,d.useState)(!1),[q,E]=(0,d.useState)([]),[$,P]=(0,d.useState)(null),[T,M]=(0,d.useState)([]),[O,F]=(0,d.useState)(!1),[R,B]=(0,d.useState)({}),D=(0,d.useCallback)(()=>{A(!1),I("")},[]),H=(0,d.useCallback)(e=>{let t=e.trim();t&&E(e=>{let a=[t,...e.filter(e=>e!==t)].slice(0,8);return window.localStorage.setItem(p,JSON.stringify(a)),a})},[]),U=(0,d.useCallback)(e=>{H(e),D()},[H,D]);(0,d.useEffect)(()=>{try{let e=window.localStorage.getItem(p);if(!e)return;let t=JSON.parse(e);if(!Array.isArray(t))return;let a=t.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean).slice(0,8);E(a)}catch{E([])}},[]),(0,d.useEffect)(()=>{D()},[k,D]),(0,d.useEffect)(()=>{function e(e){let t=e.target;!t||S.current?.contains(t)||D()}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[D]),(0,d.useEffect)(()=>{let e=L.trim();if(!e){P(null),M([]),F(!1),B({});return}let t=new AbortController,a=window.setTimeout(async()=>{F(!0);try{let[a,r]=await Promise.all([fetch(`/api/search?result_search=${encodeURIComponent(e)}`,{signal:t.signal}),fetch(`/api/search/suggestions?query=${encodeURIComponent(e)}&limit=4`,{signal:t.signal})]);if(a.ok){let e=await a.json();P(e.ok?e.data??null:null)}else P(null);if(r.ok){let e=await r.json();M(e.ok&&e.data?.items?.length?e.data.items:[])}else M([])}catch{P(null),M([])}finally{t.signal.aborted||F(!1)}},250);return()=>{t.abort(),window.clearTimeout(a)}},[L]);let G=L.trim(),W=G.length>0,V=!W,K=W?T.length?T.map((e,t)=>({id:`${e}-${t}`,title:e,url:x(g(e))})):$?.suggestions??[]:h.HEADER_ONE_POPULAR_SEARCH_TERMS.map((e,t)=>({id:`${e}-${t}`,title:e,url:x(g(e))})),Y=($?.categories??[]).map(e=>({...e,url:x(e.url)})),Q=($?.products??[]).map(e=>({...e,url:x(e.url)})),Z=($?.marketInsights??[]).map(e=>({...e,url:x(e.url)})),X=K.slice(0,4),J=Y.slice(0,4),ee=Z.slice(0,6),et=Q.slice(0,6),ea=z?"border-0":"border-[length:var(--header-two-search-border-width)] border-[color:var(--header-two-search-border-color)]",er=()=>(0,t.jsx)("div",{ref:S,className:"relative z-[var(--header-two-search-popular-z)] min-w-0 w-full flex-1",children:(0,t.jsxs)("form",{className:"relative w-full",action:a.routes.searchResult.result(L??""),method:"get",onSubmit:()=>{H(L),A(!1)},children:[(0,t.jsx)("input",{type:"hidden",name:h.HEADER_ONE_SEARCH.industryHiddenName}),(0,t.jsx)("input",{className:`w-full rounded-full bg-[var(--header-two-search-bg)] ${ea}
161              pt-[length:var(--header-two-search-padding-y)]
162              pe-[length:var(--header-two-search-padding-inline-end)]
163              pb-[length:var(--header-two-search-padding-y)]
164              ps-[length:var(--header-two-search-padding-inline-start)]
165              md:text-[length:var(--header-two-font-size-md)]
166              text-[length:var(--header-two-font-size-md-mobile)]
167              text-[var(--header-two-search-text)]
168              placeholder:font-[var(--header-two-font-weight-normal)]
169              placeholder:text-[var(--header-two-search-text-color)]
170              outline-none
171              [&::-webkit-search-cancel-button]:appearance-none
172              [&::-webkit-search-decoration]:appearance-none`,type:"search",id:"header-two-search",name:h.HEADER_ONE_SEARCH.inputName,autoComplete:"off",placeholder:_("header_search_placeholder"),value:L,onFocus:()=>A(!0),onChange:e=>{I(e.target.value),A(!0)},"aria-controls":z?"header-two-popular-search":void 0}),L?(0,t.jsx)("button",{type:"button",className:"absolute end-[length:var(--header-two-search-clear-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer border-0 bg-transparent p-[var(--header-two-top-hamburger-padding)]","aria-label":_("clear_search"),onClick:()=>{I(""),A(!0)},children:(0,t.jsx)(r.ClearIcon,{className:"text-[var(--header-two-search-clear-text-color)] w-6 h-6 shrink-0"})}):null,(0,t.jsx)("button",{className:"absolute end-[length:var(--header-two-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 bg-transparent p-[length:var(--header-two-search-icon-button-padding)]",type:"submit","aria-label":_("search"),children:(0,t.jsx)(n.SearchIconNew,{className:"text-[var(--header-two-top-color)] w-5 h-5 shrink-0"})}),z?(0,t.jsx)("div",{id:"header-two-popular-search",className:"header-search-suggest-panel absolute w-full mt-[length:var(--header-two-search-popular-mt)] rounded-[length:var(--header-two-search-popular-radius)] bg-[var(--header-two-search-popular-bg)] px-[length:var(--header-two-search-popular-padding-x)] py-[length:var(--header-two-search-popular-padding-y)] shadow-[var(--header-two-search-popular-shadow)]",role:"region","aria-label":_("search_suggestions"),children:V?(0,t.jsxs)("div",{children:[(0,t.jsx)("h6",{className:"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)] mb-1",children:_("recent_searches")}),(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:q.length>0?q.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{href:g(e),onClick:()=>U(e),className:"block cursor-pointer max-w-[380px] px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
172ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",children:e})},e)):(0,t.jsx)("li",{className:"rounded-md p-[length:var(--header-two-search-popular-item-padding)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)]",children:_("no_recent_searches")})})]}):(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-0 md:grid-cols-2 md:gap-6",children:[(0,t.jsxs)("div",{className:"min-w-0 h-auto md:max-h-[500px] overflow-y-auto md:border-r md:border-[var(--header-two-suggestions-divider-border)] md:pr-6 [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:"hidden md:block",children:[(0,t.jsx)("h6",{className:"mb-2 text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",children:_("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none p-0 pb-3",children:O?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)]",children:(0,t.jsx)("div",{className:"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]"})})},`skeleton-suggestion-${a}`)):X.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{href:e.url,onClick:()=>U(e.title),className:"block cursor-pointer px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",children:e.title})},b("suggestion-md",e,a)))})]}),(0,t.jsxs)("div",{className:"hidden md:block",children:[(0,t.jsxs)("div",{className:"mb-2 mt-3 flex items-center justify-between",children:[(0,t.jsx)("h6",{className:"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",children:_("market_insights")}),(0,t.jsx)(o.Link,{href:v(G,"marketInsight"),onClick:D,className:"text-[var(--header-two-search-popular-item-link-text-color)]",children:_("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-2 p-0",children:O?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)]",children:(0,t.jsx)("div",{className:"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]"})})},`skeleton-market-${a}`)):ee.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{href:e.url,onClick:()=>U(e.title),className:"line-clamp-2 px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
172ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",children:e.title})},b("market-md",e,a)))})]})]}),(0,t.jsxs)("div",{className:"min-w-0 max-h-[500px] overflow-y-auto [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:"md:hidden",children:[(0,t.jsx)("h6",{className:"mb-2 text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",children:_("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none p-0 pb-3",children:O?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)]",children:(0,t.jsx)("div",{className:"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]"})})},`skeleton-suggestion-${a}`)):X.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{href:e.url,onClick:()=>U(e.title),className:"block cursor-pointer px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",children:e.title})},b("suggestion-sm",e,a)))})]}),(0,t.jsxs)("div",{className:"border-t md:border-0 border-[var(--header-two-suggestions-divider-border)] pt-3 md:pt-0",children:[(0,t.jsx)("h6",{className:"mb-2 text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",children:_("categories")}),(0,t.jsx)("ul",{className:"m-0 list-none p-0 pb-3",children:O?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)]",children:(0,t.jsx)("div",{className:"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]"})})},`skeleton-category-${a}`)):J.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(o.Link,{href:e.url,onClick:()=>U(e.title),className:"flex items-center justify-between px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",children:[(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.title}),"number"==typeof e.count?(0,t.jsxs)("span",{className:"shrink-0",children:["(",e.count,")"]}):null]})},b("category",e,a)))})]}),(0,t.jsxs)("div",{className:"mb-2 mt-3 flex items-center justify-between border-t md:border-0 border-[var(--header-two-suggestions-divider-border)] pt-3 md:pt-0",children:[(0,t.jsx)("h6",{className:"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",children:_("all_products")}),(0,t.jsx)(o.Link,{href:v(G,"products"),onClick:D,className:"text-[var(--header-two-search-popular-item-link-text-color)]",children:_("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-2 p-0",children:O?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-start gap-3 px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)]",children:[(0,t.jsx)("div",{className:"h-12 w-12 shrink-0 animate-pulse rounded bg-[var(--header-two-suggestions-skeleton-bg)]"}),(0,t.jsx)("div",{className:"h-4 flex-1 animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]"})]})},`skeleton-product-${a}`)):et.map((e,a)=>
172{let r=b("product",e,a),l=function(e){for(let t of[e.image_url,e.image,e.thumbnail,e.raw?.image_url,e.raw?.image,e.raw?.thumbnail])if("string"==typeof t&&t.trim().length>0)return t;return null}(e),i=!l||R[r]?"":l;return(0,t.jsx)("li",{children:(0,t.jsxs)(o.Link,{href:e.url,onClick:()=>U(e.title),className:"flex items-start gap-3 px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",children:[i?(0,t.jsx)(s.default,{src:i,alt:e.title,width:148,height:148,className:"h-12 w-12 shrink-0 object-cover",loading:"lazy",onError:()=>B(e=>({...e,[r]:!0}))}):(0,t.jsx)("div",{className:"h-12 w-12 shrink-0 bg-[var(--our-top-products-one-card-border)]"}),(0,t.jsx)("span",{className:"line-clamp-2",children:e.title})]})},r)})}),(0,t.jsxs)("div",{className:"mt-3 border-t border-[var(--header-two-suggestions-divider-border)] pt-3 md:hidden",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h6",{className:"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",children:_("market_insights")}),(0,t.jsx)(o.Link,{href:v(G,"marketInsight"),onClick:D,className:"text-[var(--header-two-search-popular-item-link-text-color)]",children:_("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-2 p-0",children:O?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)]",children:(0,t.jsx)("div",{className:"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]"})})},`skeleton-market-mobile-${a}`)):ee.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{href:e.url,onClick:()=>U(e.title),className:"line-clamp-2 px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",children:e.title})},b("market-sm",e,a)))})]})]})]})}):null]})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"bg-[var(--header-two-top-bg)] text-[var(--header-two-top-text-color)]","data-testid":"header-two-top-bar",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[var(--layout-container-max)] items-center justify-between gap-[var(--header-two-top-row-gap)] py-[var(--header-two-top-inner-padding)] px-5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-[var(--header-two-top-row-gap)] md:max-w-[var(--header-two-top-brand-max-width-md)] lg:max-w-none lg:[flex:0_0_var(--header-two-top-brand-flex-lg)]",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-[var(--header-two-top-logo-cluster-gap)]",children:[(0,t.jsx)("button",{type:"button",className:`flex shrink-0 items-center justify-center rounded p-[var(--header-two-top-hamburger-padding)] text-[var(--header-two-top-text-color)] ${w?"":"hidden"}`,"aria-label":_("open_menu"),onClick:y,children:(0,t.jsx)(i.HamburgerIcon,{className:"text-[var(--header-two-top-text-color)]"})}),(0,t.jsx)(o.Link,{href:e.href,className:"only-logo inline-flex min-w-0 shrink","aria-label":f?`${f} - ${_("home")}`:void 0,children:(0,t.jsx)(s.default,{src:e.src,alt:e.alt,width:163,height:60,sizes:"(max-width: 768px) 140px, 163px",className:"h-[length:var(--header-two-logo-height-mobile)] w-auto max-w-[var(--header-two-logo-max-width-mobile)] object-contain md:h-[length:var(--header-two-logo-height-desktop)] lg:max-w-none",style:{width:"auto",height:"auto"}})})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-[var(--header-two-top-row-gap)] md:hidden",children:[(0,t.jsx)("button",{type:"button",className:"flex h-[length:var(--header-two-lang-button-size-mobile)] w-[length:var(--header-two-lang-button-size-mobile)] items-center justify-center rounded-full border border-[var(--header-two-top-text-color)] text-[var(--header-two-top-text-color)] md:h-[length:var(--header-two-lang-button-size-desktop)] md:w-[length:var(--header-two-lang-button-size-desktop)] cursor-pointer","aria-label":_("language"),onClick:j,children:(0,t.jsx)(l.GlobeIconNew,{})}),(0,t.jsx)("span",{className:"h-[length:var(--header-two-top-divider-height)] w-[length:var(--header-two-top-divider-width)] bg-[var(--header-two-top-text-color)] sm:block","aria-hidden":!0}),(0,t.jsx)("button",{type:"button",onClick:N,className:" text-[length:var(--header-two-font-size-md-mobile)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-font-line-height-large-mobile)] text-[var(--header-two-top-text-color)] cursor-pointer",children:_("group_sites")})]})]}),C?er():null,(0,t.jsxs)("div",{className:"hidden shrink-0 items-center justify-end gap-[var(--header-two-top-desktop-actions-gap)] md:flex md:min-w-[var(--header-two-top-desktop-actions-min-width)] lg:[flex:0_0_var(--header-two-top-brand-flex-lg)]",children:[(0,t.jsx)("button",{type:"button",className:"flex h-[length:var(--header-two-lang-button-size-mobile)] w-[length:var(--header-two-lang-button-size-mobile)] items-center justify-center rounded-full border border-[var(--header-two-top-text-color)] text-[var(--header-two-top-text-color)] md:h-[length:var(--header-two-lang-button-size-desktop)] md:w-[length:var(--header-two-lang-button-size-desktop)] cursor-pointer","aria-label":_("language"),onClick:j,children:(0,t.jsx)(l.GlobeIconNew,{})}),(0,t.jsx)("span",{className:"h-[length:var(--header-two-top-divider-height)] w-[length:var(--header-two-top-divider-width)] bg-[var(--header-two-top-text-color)] sm:block","aria-hidden":!0}),(0,t.jsx)("button",{type:"button",onClick:N,className:" text-[length:var(--header-two-font-size-md)] font-[var(--header-two-font-weight-medium)] leading-[var(--header-two-font-line-height-large)] text-[var(--header-two-top-text-color)] cursor-pointer",children:_("group_sites")})]})]})}),C?null:(0,t.jsx)("div",{className:"border-b border-[var(--header-two-search-row-border)] bg-[var(--header-two-search-row-bg)]","data-testid":"header-two-search-bar",children:(0,t.jsx)("div",{className:"mx-auto max-w-[var(--layout-container-max)] py-[var(--header-two-top-inner-padding)] px-5",children:er()})})]})}e.s(["HeaderOneTopBar",()=>f,"HeaderTwoTopBar",()=>f])},991283,e=>{"use strict";var t=e.i(843476),a=e.i(22584);e.i(527967);
172var r=e.i(887300),l=e.i(71527),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(948148),d=e.i(189015);let u="header_one_recent_searches";function m(e){let t=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e});return`${a.routes.searchResult.root}?${t.toString()}`}function h(e,t){let r=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e??"",tab:t});return`${a.routes.searchResult.root}?${r.toString()}`}function p(e){let t=e.trim();return t?/^https?:\/\//i.test(t)||/^mailto:/i.test(t)||t.startsWith("/")?t:`/${t}`:a.routes.searchResult.root}function g(e,t,a){return`${e}-${a}-${String(t.id)}-${t.url}`}function v({variant:e="default",inputId:v="header-two-search",className:x=""}){let b=(0,c.useTranslations)(),f=(0,s.usePathname)(),w=(0,o.useRef)(null),[y,j]=(0,o.useState)(""),[N,_]=(0,o.useState)(!1),[k,C]=(0,o.useState)([]),[S,L]=(0,o.useState)(null),[I,z]=(0,o.useState)([]),[A,q]=(0,o.useState)(!1),[E,$]=(0,o.useState)({}),P=(0,o.useCallback)(()=>{_(!1),j("")},[]),T=(0,o.useCallback)(e=>{let t=e.trim();t&&C(e=>{let a=[t,...e.filter(e=>e!==t)].slice(0,8);return window.localStorage.setItem(u,JSON.stringify(a)),a})},[]),M=(0,o.useCallback)(e=>{T(e),P()},[T,P]);(0,o.useEffect)(()=>{try{let e=window.localStorage.getItem(u);if(!e)return;let t=JSON.parse(e);if(!Array.isArray(t))return;let a=t.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean).slice(0,8);C(a)}catch{C([])}},[]),(0,o.useEffect)(()=>{P()},[f,P]),(0,o.useEffect)(()=>{function e(e){let t=e.target;!t||w.current?.contains(t)||P()}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[P]),(0,o.useEffect)(()=>{let e=y.trim();if(!e){L(null),z([]),q(!1),$({});return}let t=new AbortController,a=window.setTimeout(async()=>{q(!0);try{let[a,r]=await Promise.all([fetch(`/api/search?result_search=${encodeURIComponent(e)}`,{signal:t.signal}),fetch(`/api/search/suggestions?query=${encodeURIComponent(e)}&limit=4`,{signal:t.signal})]);if(a.ok){let e=await a.json();L(e.ok?e.data??null:null)}else L(null);if(r.ok){let e=await r.json();z(e.ok&&e.data?.items?.length?e.data.items:[])}else z([])}catch{L(null),z([])}finally{t.signal.aborted||q(!1)}},250);return()=>{t.abort(),window.clearTimeout(a)}},[y]);let O=y.trim(),F=O.length>0,R=F?I.length?I.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})):S?.suggestions??[]:d.HEADER_ONE_POPULAR_SEARCH_TERMS.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})),B=(S?.categories??[]).map(e=>({...e,url:p(e.url)})),D=(S?.products??[]).map(e=>({...e,url:p(e.url)})),H=(S?.marketInsights??[]).map(e=>({...e,url:p(e.url)})),U=R.slice(0,4),G=B.slice(0,4),W=H.slice(0,6),V=D.slice(0,6),K="premium"===e,Y=N?"border-0":K?"border border-[var(--h1p-input-border)]":"border-[length:var(--header-two-search-border-width)] border-[color:var(--header-two-search-border-color)]",Q=K?`w-full rounded-[var(--h1p-input-radius)] bg-[var(--h1p-input-bg)] ${Y}
173        py-2.5 ps-4 text-sm text-[var(--h1p-input-text)]
174        ${y?"pe-20 md:pe-22":"pe-12 md:pe-14"}
175        placeholder:text-[var(--h1p-input-placeholder)]
176        outline-none transition-[border-color,box-shadow]
177        focus:border-[var(--h1p-input-focus-ring)] focus:ring-2 focus:ring-[var(--h1p-input-focus-ring)]/20
178        md:py-3 md:text-base
179        [&::-webkit-search-cancel-button]:appearance-none
180        [&::-webkit-search-decoration]:appearance-none`:`w-full rounded-full bg-[var(--header-two-search-bg)] ${Y}
181        pt-[length:var(--header-two-search-padding-y)]
182        pe-[length:var(--header-two-search-padding-inline-end)]
183        pb-[length:var(--header-two-search-padding-y)]
184        ps-[length:var(--header-two-search-padding-inline-start)]
185        md:text-[length:var(--header-two-font-size-md)]
186        text-[length:var(--header-two-font-size-md-mobile)]
187        text-[var(--header-two-search-text)]
188        placeholder:font-[var(--header-two-font-weight-normal)]
189        placeholder:text-[var(--header-two-search-text-color)]
190        outline-none
191        [&::-webkit-search-cancel-button]:appearance-none
192        [&::-webkit-search-decoration]:appearance-none`,Z=K?"header-premium-popular-search":"header-two-popular-search",X=K?"text-xs font-semibold uppercase tracking-wide text-[var(--h1p-suggest-title-color)]":"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",J=K?`${X} mb-2`:`${X} mb-1 md:mb-2`,ee=K?"block cursor-pointer rounded-[var(--h1p-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1p-suggest-item-color)] transition-colors hover:bg-[var(--h1p-suggest-item-hover-bg)] hover:text-[var(--h1p-suggest-item-hover-color)]":"block cursor-pointer px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
192ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",et=K?"flex items-center justify-between gap-3 rounded-[var(--h1p-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1p-suggest-item-color)] transition-colors hover:bg-[var(--h1p-suggest-item-hover-bg)] hover:text-[var(--h1p-suggest-item-hover-color)]":"flex items-center justify-between px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",ea=K?"flex items-start gap-3 rounded-[var(--h1p-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1p-suggest-item-color)] transition-colors hover:bg-[var(--h1p-suggest-item-hover-bg)] hover:text-[var(--h1p-suggest-item-hover-color)]":"flex items-start gap-3 px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",er=K?"text-sm font-medium text-[var(--h1p-suggest-link-color)]":"text-[var(--header-two-search-popular-item-link-text-color)]",el=K?"border-[var(--h1p-suggest-divider)]":"border-[var(--header-two-suggestions-divider-border)]",ei=K?"h-4 w-full animate-pulse rounded bg-[var(--h1p-suggest-skeleton-bg)]":"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]",en=K?"h-12 w-12 shrink-0 animate-pulse rounded-[var(--h1p-suggest-thumb-radius)] bg-[var(--h1p-suggest-skeleton-bg)]":"h-12 w-12 shrink-0 animate-pulse rounded bg-[var(--header-two-suggestions-skeleton-bg)]",es=K?"h-12 w-12 shrink-0 rounded-[var(--h1p-suggest-thumb-radius)] border border-[var(--h1p-suggest-thumb-border)] object-cover":"h-12 w-12 shrink-0 object-cover",eo=K?"h-12 w-12 shrink-0 rounded-[var(--h1p-suggest-thumb-radius)] border border-[var(--h1p-suggest-thumb-border)] bg-[var(--h1p-suggest-thumb-placeholder)]":"h-12 w-12 shrink-0 bg-[var(--our-top-products-one-card-border)]",ec=K?"shrink-0 rounded-full bg-[var(--h1p-suggest-badge-bg)] px-2 py-0.5 text-xs font-semibold text-[var(--h1p-suggest-badge-text)]":"shrink-0";return(0,t.jsx)("div",{ref:w,className:`relative z-[var(--header-two-search-popular-z)] min-w-0 w-full flex-1 ${x}`,children:(0,t.jsxs)("form",{className:"relative w-full",action:a.routes.searchResult.result(y??""),method:"get",onSubmit:()=>{T(y),_(!1)},children:[(0,t.jsx)("input",{type:"hidden",name:d.HEADER_ONE_SEARCH.industryHiddenName}),(0,t.jsx)("input",{className:Q,type:"search",id:v,name:d.HEADER_ONE_SEARCH.inputName,autoComplete:"off",placeholder:b("header_search_placeholder"),value:y,onFocus:()=>_(!0),onChange:e=>{j(e.target.value),_(!0)},"aria-controls":N?Z:void 0}),y?(0,t.jsx)("button",{type:"button",className:K?"absolute end-10 top-1/2 -translate-y-1/2 border-0 bg-transparent p-1.5 text-[var(--h1p-input-placeholder)] hover:text-[var(--h1p-input-text)] md:end-11":"absolute end-[length:var(--header-two-search-clear-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer border-0 bg-transparent p-[var(--header-two-top-hamburger-padding)]","aria-label":b("clear_search"),onClick:()=>{j(""),_(!0)},children:(0,t.jsx)(r.ClearIcon,{className:K?"h-4 w-4 shrink-0":"text-[var(--header-two-search-clear-text-color)] w-6 h-6 shrink-0"})}):null,(0,t.jsx)("button",{className:K?"absolute end-2 top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 p-1.5 text-[var(--h1p-search-btn-text)] transition-colors hover:text-[var(--h1p-search-btn-hover)] md:end-3":"absolute end-[length:var(--header-two-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 bg-transparent p-[length:var(--header-two-search-icon-button-padding)]",type:"submit","aria-label":b("search"),children:(0,t.jsx)(l.SearchIconNew,{className:K?"h-5 w-5 shrink-0 text-[var(--h1p-search-btn-text)]":"text-[var(--header-two-top-color)] w-5 h-5 shrink-0"})}),N?(0,t.jsx)("div",{id:Z,className:`${K?"absolute w-full mt-2 rounded-[var(--h1p-suggest-radius)] border border-[var(--h1p-suggest-border)] border-t-[length:var(--h1p-suggest-accent-width)] border-t-[var(--h1p-suggest-accent)] bg-[var(--h1p-suggest-bg)] px-4 py-4 shadow-[var(--h1p-suggest-shadow)] md:px-5 md:py-5":"absolute w-full mt-[length:var(--header-two-search-popular-mt)] rounded-[length:var(--header-two-search-popular-radius)] bg-[var(--header-two-search-popular-bg)] px-[length:var(--header-two-search-popular-padding-x)] py-[length:var(--header-two-search-popular-padding-y)] shadow-[var(--header-two-search-popular-shadow)]"} header-search-suggest-panel`,role:"region","aria-label":b("search_suggestions"),children:F?(0,t.jsxs)("div",{className:K?"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-5":"grid grid-cols-1 gap-0 md:grid-cols-2 md:gap-6",children:[(0,t.jsxs)("div",{className:K?"min-w-0 h-auto md:max-h-[500px] overflow-y-auto md:border-e md:border-[var(--h1p-suggest-divider)] md:pe-5 [scrollbar-width:thin] [scrollbar-color:rgba(0,55,29,0.2)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/15 hover:[&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/25":"min-w-0 h-auto md:max-h-[500px] overflow-y-auto md:border-r md:border-[var(--header-two-suggestions-divider-border)] md:pr-6 [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:"hidden md:block",children:[(0,t.jsx)("h6",{className:J,children:b("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-suggestion-${a}`)):U.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ee,children:e.title})},g("suggestion-md",e,a)))})]}),(0,t.jsxs)("div",{className:"hidden md:block",children:[(0,t.jsxs)("div",{className:`mb-2 mt-3 flex items-center justify-between border-t pt-3 md:mt-4 ${el}`,children:[(0,t.jsx)("h6",{className:X,children:b("market_insights")}),(0,t.jsx)(n.Link,{href:h(O,"marketInsight"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-market-${a}`)):W.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:`${ee} line-clamp-2`,children:e.title})},g("market-md",e,a)))})]})]}),(0,t.jsxs)("div",{className:K?"min-w-0 max-h-[500px] overflow-y-auto [scrollbar-width:thin] [scrollbar-color:rgba(0,55,29,0.2)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/15 hover:[&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/25":"min-w-0 max-h-[500px] overflow-y-auto [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:"md:hidden",children:[(0,t.jsx)("h6",{className:J,children:b("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-suggestion-${a}`)):U.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ee,children:e.title})},g("suggestion-sm",e,a)))})]}),(0,t.jsxs)("div",{className:`border-t pt-3 md:border-0 md:pt-0 ${el}`,children:[(0,t.jsx)("h6",{className:J,children:b("categories")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-category-${a}`)):G.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>M(e.title),className:et,children:[(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.title}),"number"==typeof e.count?(0,t.jsx)("span",{className:ec,children:K?e.count:`(${e.count})`}):null]})},g("category",e,a)))})]}),(0,t.jsxs)("div",{className:`mb-2 mt-3 flex items-center justify-between border-t pt-3 md:mt-4 md:border-0 md:pt-0 ${el}`,children:[(0,t.jsx)("h6",{className:X,children:b("all_products")}),(0,t.jsx)(n.Link,{href:h(O,"productResult"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-start gap-3 px-3 py-2",children:[(0,t.jsx)("div",{className:en}),(0,t.jsx)("div",{className:`flex-1 ${ei}`})]})},`skeleton-product-${a}`)):V.map((e,a)=>{let r=g("product",e,a),l=function(e){let t=e.raw;if(!t)return null;for(let e of[t.image,t.image_url,t.thumbnail])if("string"==typeof e&&e.trim().length>0)return e;return null}(e),s=!l||E[r]?"":l;return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ea,children:[s?(0,t.jsx)(i.default,{src:s,alt:e.title,width:148,height:148,className:es,loading:"lazy",onError:()=>$(e=>({...e,[r]:!0}))}):(0,t.jsx)("div",{className:eo}),(0,t.jsx)("span",{className:"line-clamp-2",children:e.title})]})},r)})}),(0,t.jsxs)("div",{className:`mt-3 border-t pt-3 md:hidden ${el}`,children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h6",{className:X,children:b("market_insights")}),(0,t.jsx)(n.Link,{href:h(O,"marketInsight"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-market-mobile-${a}`)):W.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:`${ee} line-clamp-2`,children:e.title})},g("market-sm",e,a)))})]})]})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("h6",{className:J,children:b("recent_searches")}),k.length>0?K?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-2 p-0",children:k.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>M(e),className:"inline-flex max-w-full min-w-0 overflow-hidden text-ellipsis whitespace-nowrap rounded-full border border-[var(--h1p-suggest-chip-border)] bg-[var(--h1p-suggest-chip-bg)] px-3 py-1.5 text-sm font-medium text-[var(--h1p-suggest-item-color)] transition-colors hover:border-[var(--h1p-suggest-accent)] hover:bg-[var(--h1p-suggest-item-hover-bg)] hover:text-[var(--h1p-suggest-item-hover-color)]",children:e})},e))}):(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:k.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>M(e),className:`${ee} max-w-[380px]`,children:e})},e))}):(0,t.jsx)("p",{className:K?"rounded-[var(--h1p-suggest-item-radius)] bg-[var(--h1p-suggest-chip-bg)] px-3 py-2 text-sm text-[var(--h1p-suggest-item-color)]":"rounded-md p-[length:var(--header-two-search-popular-item-padding)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
192ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)]",children:b("no_recent_searches")})]})}):null]})})}e.s(["HeaderSearchField",()=>v])},764270,e=>{"use strict";e.i(991283),e.s([])},632429,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(337190),l=e.i(45698),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(861745),d=e.i(948148),u=e.i(24014),m=e.i(420268);e.i(764270);var h=e.i(991283);e.i(475584);var p=e.i(285216);function g({languages:e,activeLanguageCode:l,variant:n}){let h=(0,d.useTranslations)(),p=(0,c.useLocale)(),g=(0,s.usePathname)(),v=(0,o.useRef)(null),[x,b]=(0,o.useState)(!1),[f,w]=(0,o.useState)(null),y=(0,u.resolveActiveLocaleCode)(l)||p,j=(0,m.normalizeUiLocale)(y),N=e.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,m.normalizeUiLocale)(e.code)===j)??e[0],_=N?.name??h("language");(0,o.useEffect)(()=>{if(x)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){v.current?.contains(e.target)||b(!1)}function t(e){"Escape"===e.key&&b(!1)}},[x]);let k=async e=>{let t=e.trim();if(!t)return;let a=(0,m.normalizeUiLocale)(t);w(t),await (0,u.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{w(null),b(!1)},onError:()=>{w(null)},onApplied:()=>{b(!1),(0,u.resolveLocalizedPathForLanguage)(g,a,y).then(e=>{let t=window.location.search,a=window.location.hash;window.location.assign(`${e}${t}${a}`)})}}),w(null)};return(0,t.jsxs)("div",{className:"h1s-language-menu",ref:v,children:[(0,t.jsx)("button",{type:"button",className:`h1s-language-button${"icon"===n?" h1s-language-button--icon":""}`,"aria-label":h("language"),"aria-expanded":x,"aria-haspopup":"listbox",onClick:()=>b(e=>!e),children:"icon"===n?N?.flagSrc?(0,t.jsx)("span",{className:"h1s-language-flag",children:(0,t.jsx)(i.default,{src:N.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):(0,t.jsx)(r.GlobeIconNew,{className:"h-4 w-4"}):(0,t.jsxs)(t.Fragment,{children:[N?.flagSrc?(0,t.jsx)("span",{className:"h1s-language-flag",children:(0,t.jsx)(i.default,{src:N.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):(0,t.jsx)(r.GlobeIconNew,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:_}),(0,t.jsx)(a.ArrowIcon,{className:"h1s-language-chevron"})]})}),x?(0,t.jsx)("div",{className:"h1s-language-dropdown",role:"listbox","aria-label":h("language"),children:e.length>0?e.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,m.normalizeUiLocale)(a)===j,l=f?.toLowerCase()===a.toLowerCase();return(0,t.jsxs)("button",{type:"button",className:"h1s-language-option",disabled:l,"aria-selected":r,role:"option",onClick:()=>k(e.code),children:[e.flagSrc?(0,t.jsx)("span",{className:"h1s-language-flag",children:(0,t.jsx)(i.default,{src:e.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):null,(0,t.jsx)("span",{className:"h1s-language-option-name",children:e.name})]},e.code)}):(0,t.jsx)("p",{className:"h1s-language-empty",children:h("no_languages_available")})}):null]})}function v({logo:e,actions:a=[],languages:r=[],activeLanguageCode:s="",websiteName:o,showMenuButton:c=!0,onOpenNav:u,onOpenGroupSites:m}){let v=(0,d.useTranslations)(),x=e.darkSrc??e.src;return(0,t.jsx)("div",{className:" border-b-[length:var(--h1s-tier2-border-width)] border-b-[var(--h1s-tier2-border)] bg-[var(--h1s-tier2-bg)] shadow-[var(--h1s-tier2-shadow)] ","data-sleek-tier":"logo-search",children:(0,t.jsxs)("div",{className:"layout-container h1s-tier2-inner px-3 py-[var(--h1s-tier2-padding-y)] md:px-5",children:[(0,t.jsxs)("div",{className:"h1s-tier2-start",children:[c?(0,t.jsx)("button",{type:"button","aria-label":v("open_menu"),onClick:u,className:"h1s-menu-button",children:(0,t.jsx)(l.HamburgerIcon,{className:"h-5 w-5"})}):null,(0,t.jsx)(n.Link,{href:e.href,"aria-label":o?`${o} - ${v("home")}`:e.alt,className:"h1s-tier2-logo inline-flex min-w-0 shrink-0 items-center",children:(0,t.jsx)(i.default,{src:x,alt:e.alt,width:164,height:61,sizes:"(max-width: 1279px) 200px, 280px",priority:!0,className:"h-[var(--h1s-logo-h-mobile)] w-auto object-contain xl:h-[var(--h1s-logo-h-desktop)]"})})]}),(0,t.jsxs)("div",{className:"h1s-tier2-mobile-actions",children:[(0,t.jsx)(g,{languages:r,activeLanguageCode:s,variant:"icon"}),(0,t.jsx)("span",{className:"h1s-mobile-actions-divider","aria-hidden":!0}),(0,t.jsx)("button",{type:"button",onClick:m,className:"h1s-group-sites-button",children:v("group_sites")})]}),(0,t.jsx)("div",{className:"h1s-tier2-search",children:(0,t.jsx)(h.HeaderSearchField,{variant:"default",inputId:"header-standard-search",className:"h1s-search-field"})}),(0,t.jsxs)("div",{className:"h1s-tier2-actions",children:[(0,t.jsx)(g,{languages:r,activeLanguageCode:s,variant:"full"}),a.length>0?(0,t.jsx)("div",{className:"h1s-utility-actions",children:(0,t.jsx)(p.HeaderUtilityActions,{actions:a,variant:"desktop"})}):null]})]})})}e.s(["StandardLogoSearchBar",()=>v])},102728,e=>{"use strict";var t=e.i(843476),a=e.i(22584);e.i(527967);
192var r=e.i(887300),l=e.i(71527),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(948148),d=e.i(797100);let u="header_one_recent_searches";function m(e){let t=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e});return`${a.routes.searchResult.root}?${t.toString()}`}function h(e,t){let r=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e??"",tab:t});return`${a.routes.searchResult.root}?${r.toString()}`}function p(e){let t=e.trim();return t?/^https?:\/\//i.test(t)||/^mailto:/i.test(t)||t.startsWith("/")?t:`/${t}`:a.routes.searchResult.root}function g(e,t,a){return`${e}-${a}-${String(t.id)}-${t.url}`}function v(e){for(let t of[e.image,e.image_url,e.thumbnail,e.raw?.image,e.raw?.image_url,e.raw?.thumbnail])if("string"==typeof t&&t.trim().length>0)return t;return null}function x({text:e,query:a}){let r=a.trim();if(!r)return e;let l=e.toLowerCase().indexOf(r.toLowerCase());if(l<0)return e;let i=l+r.length;return(0,t.jsxs)(t.Fragment,{children:[e.slice(0,l),(0,t.jsx)("mark",{className:"h1m-search-match",children:e.slice(l,i)}),e.slice(i)]})}function b({item:e,itemKey:a,query:r,imageFailed:l,onSelect:s,onImageError:o}){var c;let d,u=v(e),m=u&&!l?u:"",h=(c=e.sub_type??e.raw?.sub_type,c?.trim()?c.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()):""),p="string"==typeof(d=e.excerpt??e.description??e.raw?.excerpt??e.raw?.description)?d.trim():"";return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>s(e.title),className:"h1m-suggest-insight-card",children:[(0,t.jsx)("span",{className:"h1m-suggest-insight-media",children:m?(0,t.jsx)(i.default,{src:m,alt:"",width:320,height:180,className:"h1m-suggest-insight-image",loading:"lazy",onError:()=>o(a)}):(0,t.jsx)("span",{className:"h1m-suggest-insight-placeholder","aria-hidden":!0})}),(0,t.jsxs)("span",{className:"h1m-suggest-insight-copy",children:[h?(0,t.jsx)("span",{className:"h1m-suggest-insight-type",children:h}):null,(0,t.jsx)("span",{className:"h1m-suggest-insight-title line-clamp-2",children:(0,t.jsx)(x,{text:e.title,query:r})}),p?(0,t.jsx)("span",{className:"h1m-suggest-insight-excerpt line-clamp-1",children:p}):null]})]})})}function f({variant:e="default",inputId:f="header-two-search",className:w="",autoFocus:y=!1}){let j=(0,c.useTranslations)(),N=(0,s.usePathname)(),_=(0,o.useRef)(null),k=(0,o.useRef)(null),[C,S]=(0,o.useState)(""),[L,I]=(0,o.useState)(!1),[z,A]=(0,o.useState)([]),[q,E]=(0,o.useState)(null),[$,P]=(0,o.useState)([]),[T,M]=(0,o.useState)(!1),[O,F]=(0,o.useState)({}),R=(0,o.useCallback)(()=>{I(!1),S("")},[]),B=(0,o.useCallback)(e=>{let t=e.trim();t&&A(e=>{let a=[t,...e.filter(e=>e!==t)].slice(0,8);return window.localStorage.setItem(u,JSON.stringify(a)),a})},[]),D=(0,o.useCallback)(e=>{B(e),R()},[B,R]);(0,o.useEffect)(()=>{try{let e=window.localStorage.getItem(u);if(!e)return;let t=JSON.parse(e);if(!Array.isArray(t))return;let a=t.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean).slice(0,8);A(a)}catch{A([])}},[]),(0,o.useEffect)(()=>{R()},[N,R]),(0,o.useEffect)(()=>{function e(e){let t=e.target;!t||_.current?.contains(t)||R()}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[R]),(0,o.useEffect)(()=>{let e=C.trim();if(!e){E(null),P([]),M(!1),F({});return}let t=new AbortController,a=window.setTimeout(async()=>{M(!0);try{let[a,r]=await Promise.all([fetch(`/api/search?result_search=${encodeURIComponent(e)}`,{signal:t.signal}),fetch(`/api/search/suggestions?query=${encodeURIComponent(e)}&limit=4`,{signal:t.signal})]);if(a.ok){let e=await a.json();E(e.ok?e.data??null:null)}else E(null);if(r.ok){let e=await r.json();P(e.ok&&e.data?.items?.length?e.data.items:[])}else P([])}catch{E(null),P([])}finally{t.signal.aborted||M(!1)}},250);return()=>{t.abort(),window.clearTimeout(a)}},[C]);let H=C.trim(),U=H.length>0,G=U?$.length?$.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})):q?.suggestions??[]:d.HEADER_ONE_POPULAR_SEARCH_TERMS.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})),W=(q?.categories??[]).map(e=>({...e,url:p(e.url)})),V=(q?.products??[]).map(e=>({...e,url:p(e.url)})),K=(q?.marketInsights??[]).map(e=>({...e,url:p(e.url)})),Y=G.slice(0,4),Q=W.slice(0,4),Z=K.slice(0,6),X=V.slice(0,6),J="standard"===e,ee=J?"border border-[var(--h1s-input-border)]":L?"border-0":"border-[length:var(--header-two-search-border-width)] border-[color:var(--header-two-search-border-color)]",et=J?`w-full min-h-[var(--h1s-input-min-height)] rounded-[var(--h1s-input-radius)] bg-[var(--h1s-input-bg)] ${ee}
193        py-[var(--h1s-input-padding-y)] ps-[var(--h1s-input-padding-start)] text-[length:var(--h1s-input-font-size)] font-[var(--font-weight-normal)] text-[var(--h1s-input-text)]
194        ${C?"pe-[var(--h1s-input-padding-end-with-clear)]":"pe-[var(--h1s-input-padding-end)]"}
195        placeholder:text-[var(--h1s-input-placeholder)] placeholder:font-[var(--font-weight-normal)]
196        outline-none transition-[border-color]
197        focus:border-[var(--h1s-input-focus-ring)] focus:ring-0
198        xl:text-[length:var(--h1s-input-font-size-desktop)]
199        [&::-webkit-search-cancel-button]:appearance-none
200        [&::-webkit-search-decoration]:appearance-none`:`w-full rounded-full bg-[var(--header-two-search-bg)] ${ee}
201        pt-[length:var(--header-two-search-padding-y)]
202        pe-[length:var(--header-two-search-padding-inline-end)]
203        pb-[length:var(--header-two-search-padding-y)]
204        ps-[length:var(--header-two-search-padding-inline-start)]
205        md:text-[length:var(--header-two-font-size-md)]
206        text-[length:var(--header-two-font-size-md-mobile)]
207        text-[var(--header-two-search-text)]
208        placeholder:font-[var(--header-two-font-weight-normal)]
209        placeholder:text-[var(--header-two-search-text-color)]
210        outline-none
211        [&::-webkit-search-cancel-button]:appearance-none
212        [&::-webkit-search-decoration]:appearance-none`,ea=J?"header-standard-popular-search":"header-two-popular-search",er=J?"text-xs font-semibold uppercase tracking-wide text-[var(--h1s-suggest-title-color)]":"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",el=J?`${er} mb-2`:`${er} mb-1 md:mb-2`,ei="h1m-suggest-text-link",en="h1m-suggest-view-all",es="h1m-suggest-skeleton-line",eo="h1m-suggest-desktop-only",ec=Y.length>0||Q.length>0||X.length>0||Z.length>0;return(0,t.jsx)("div",{ref:_,className:`relative z-[var(--header-two-search-popular-z)] min-w-0 w-full flex-1 ${w}`,onKeyDown:e=>{if("Escape"===e.key){R(),k.current?.focus();return}if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;let t=Array.from(_.current?.querySelectorAll(".h1m-search-dropdown a[href]")??[]).filter(e=>null!==e.offsetParent);if(0===t.length)return;if(e.target===k.current){e.preventDefault(),t["ArrowDown"===e.key?0:t.length-1]?.focus();return}let a=t.indexOf(e.target);if(a<0)return;e.preventDefault();let r="ArrowDown"===e.key?1:-1;t[(a+r+t.length)%t.length]?.focus()},children:(0,t.jsxs)("form",{className:"relative w-full",action:a.routes.searchResult.result(C??""),method:"get",onSubmit:()=>{B(C),I(!1)},children:[(0,t.jsx)("input",{type:"hidden",name:d.HEADER_ONE_SEARCH.industryHiddenName}),(0,t.jsx)("input",{ref:k,className:et,type:"search",id:f,name:d.HEADER_ONE_SEARCH.inputName,autoFocus:y,autoComplete:"off",placeholder:j("header_search_placeholder"),value:C,onFocus:()=>I(!0),onChange:e=>{S(e.target.value),I(!0)},role:"combobox","aria-autocomplete":"list","aria-expanded":L,"aria-busy":T,"aria-controls":L?ea:void 0}),C?(0,t.jsx)("button",{type:"button",className:J?"absolute end-[var(--h1s-search-clear-inset-end)] top-1/2 -translate-y-1/2 border-0 bg-transparent p-1 text-[var(--h1s-input-placeholder)] hover:text-[var(--h1s-input-text)]":"absolute end-[length:var(--header-two-search-clear-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer border-0 bg-transparent p-[var(--header-two-top-hamburger-padding)]","aria-label":j("clear_search"),onClick:()=>{S(""),I(!0)},children:(0,t.jsx)(r.ClearIcon,{className:J?"h-4 w-4 shrink-0":"text-[var(--header-two-search-clear-text-color)] w-6 h-6 shrink-0"})}):null,(0,t.jsx)("button",{className:J?"h1s-search-submit absolute end-[var(--h1s-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 p-0":"absolute end-[length:var(--header-two-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 bg-transparent p-[length:var(--header-two-search-icon-button-padding)]",type:"submit","aria-label":j("search"),children:(0,t.jsx)(l.SearchIconNew,{className:J?"h-[var(--h1s-search-submit-icon-size)] w-[var(--h1s-search-submit-icon-size)] shrink-0":"text-[var(--header-two-top-color)] w-5 h-5 shrink-0"})}),L?(0,t.jsx)("div",{id:ea,className:`${J?"h1m-search-dropdown absolute w-full mt-2 rounded-[var(--h1s-suggest-radius)] border border-[var(--h1s-suggest-border)] bg-[var(--h1s-suggest-bg)] shadow-[var(--h1s-suggest-shadow)]":"absolute w-full mt-[length:var(--header-two-search-popular-mt)] rounded-[length:var(--header-two-search-popular-radius)] bg-[var(--header-two-search-popular-bg)] px-[length:var(--header-two-search-popular-padding-x)] py-[length:var(--header-two-search-popular-padding-y)] shadow-[var(--header-two-search-popular-shadow)]"} header-search-suggest-panel`,role:"region","aria-label":j("search_suggestions"),children:U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1m-suggest-layout",children:[(0,t.jsxs)("div",{className:"h1m-suggest-layout-column h1m-suggest-layout-column--left",children:[T||Y.length>0?(0,t.jsxs)("section",{className:`${eo} h1m-suggest-suggestions`,children:[(0,t.jsx)("h6",{className:el,children:j("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:T?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-suggestion-${a}`)):Y.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:ei,children:[(0,t.jsx)(l.SearchIconNew,{"aria-hidden":!0}),(0,t.jsx)(x,{text:e.title,query:H})]})},g("suggestion-md",e,a)))})]}):null,T||Z.length>0?(0,t.jsxs)("section",{className:`${eo} h1m-suggest-market`,children:[(0,t.jsxs)("div",{className:"h1m-suggest-section-header",children:[(0,t.jsx)("h6",{className:er,children:j("market_insights")}
212),(0,t.jsx)(n.Link,{href:h(H,"marketInsight"),onClick:R,className:en,children:j("view_all_results")})]}),(0,t.jsx)("ul",{className:"h1m-suggest-insight-grid m-0 list-none p-0",children:T?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-market-${a}`)):Z.map((e,a)=>{let r=g("market-md",e,a);return(0,t.jsx)(b,{item:e,itemKey:r,query:H,imageFailed:!!O[r],onSelect:D,onImageError:e=>F(t=>({...t,[e]:!0}))},r)})})]}):null]}),(0,t.jsxs)("div",{className:"h1m-suggest-layout-column h1m-suggest-layout-column--right",children:[T||Y.length>0?(0,t.jsxs)("section",{className:"h1m-suggest-mobile-only h1m-suggest-suggestions",children:[(0,t.jsx)("h6",{className:el,children:j("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:T?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-suggestion-${a}`)):Y.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:ei,children:[(0,t.jsx)(l.SearchIconNew,{"aria-hidden":!0}),(0,t.jsx)(x,{text:e.title,query:H})]})},g("suggestion-sm",e,a)))})]}):null,T||Q.length>0?(0,t.jsxs)("section",{className:"h1m-suggest-categories",children:[(0,t.jsx)("h6",{className:el,children:j("categories")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:T?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-category-${a}`)):Q.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:"h1m-suggest-category-link",children:[(0,t.jsx)("span",{className:"min-w-0 truncate",children:(0,t.jsx)(x,{text:e.title,query:H})}),"number"==typeof e.count?(0,t.jsx)("span",{className:"h1m-suggest-count",children:J?e.count:`(${e.count})`}):null]})},g("category",e,a)))})]}):null,T||X.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1m-suggest-products-header",children:[(0,t.jsx)("h6",{className:er,children:j("all_products")}),(0,t.jsx)(n.Link,{href:h(H,"productResult"),onClick:R,className:en,children:j("view_all_results")})]}),(0,t.jsx)("ul",{className:"h1m-suggest-product-grid m-0 list-none p-0",children:T?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-start gap-3 px-3 py-2",children:[(0,t.jsx)("div",{className:"h1m-suggest-skeleton-thumb"}),(0,t.jsx)("div",{className:`flex-1 ${es}`})]})},`skeleton-product-${a}`)):X.map((e,a)=>{let r=g("product",e,a),l=v(e),s=[{label:"CAS",value:e.cas_number??e.raw?.cas_number},{label:"HS",value:e.hs_code??e.raw?.hs_code},{label:"SKU",value:e.sku??e.raw?.sku}].filter(e=>"string"==typeof e.value&&e.value.trim().length>0).slice(0,2),o=!l||O[r]?"":l;return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:"h1m-suggest-product-card",children:[o?(0,t.jsx)(i.default,{src:o,alt:e.title,width:148,height:148,className:"h1m-suggest-product-thumb",loading:"lazy",onError:()=>F(e=>({...e,[r]:!0}))}):(0,t.jsx)("div",{className:"h1m-suggest-product-thumb-placeholder"}),(0,t.jsxs)("span",{className:"h1m-suggest-product-copy",children:[(0,t.jsx)("span",{className:"h1m-suggest-product-title line-clamp-2",children:(0,t.jsx)(x,{text:e.title,query:H})}),s.length>0?(0,t.jsx)("span",{className:"h1m-suggest-product-meta",children:s.map(e=>(0,t.jsxs)("span",{children:[e.label,": ",e.value]},`${r}-${e.label}`))}):null]})]})},r)})})]}):null,T||Z.length>0?(0,t.jsxs)("section",{className:"h1m-suggest-market-mobile",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h6",{className:er,children:j("market_insights")}),(0,t.jsx)(n.Link,{href:h(H,"marketInsight"),onClick:R,className:en,children:j("view_all_results")})]}),(0,t.jsx)("ul",{className:"h1m-suggest-insight-grid m-0 list-none p-0",children:T?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-market-mobile-${a}`)):Z.map((e,a)=>{let r=g("market-sm",e,a);return(0,t.jsx)(b,{item:e,itemKey:r,query:H,imageFailed:!!O[r],onSelect:D,onImageError:e=>F(t=>({...t,[e]:!0}))},r)})})]}):null]})]}),T||ec?null:(0,t.jsx)("p",{className:"h1m-suggest-empty",children:j("no_product_results")}),!T&&ec?(0,t.jsx)("div",{className:"h1m-suggest-footer",children:(0,t.jsxs)(n.Link,{href:m(H),onClick:()=>D(H),className:"h1m-suggest-footer-link",children:[(0,t.jsx)("span",{children:j("view_all_results")}),(0,t.jsx)("span",{className:"h1m-suggest-footer-query",children:`"${H}"`})]})}):null]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("h6",{className:el,children:j("recent_searches")}),z.length>0?J?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-2 p-0",children:z.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>D(e),className:"inline-flex max-w-full min-w-0 overflow-hidden text-ellipsis whitespace-nowrap rounded-full border border-[var(--h1s-suggest-chip-border)] bg-[var(--h1s-suggest-chip-bg)] px-3 py-1.5 text-sm font-medium text-[var(--h1s-suggest-item-color)] transition-colors hover:border-[var(--h1s-suggest-accent)] hover:bg-[var(--h1s-suggest-item-hover-bg)] hover:text-[var(--h1s-suggest-item-hover-color)]",children:e})},e))}):(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:z.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>D(e),className:`${ei} max-w-[380px]`,children:e})},e))}):(0,t.jsx)("p",{className:J?"rounded-[var(--h1s-suggest-item-radius)] bg-[var(--h1s-suggest-chip-bg)] px-3 py-2 text-sm text-[var(--h1s-suggest-item-color)]":"rounded-md p-[length:var(--header-two-search-popular-item-padding)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
212ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)]",children:j("no_recent_searches")})]})}):null]})})}e.s(["HeaderSearchField",()=>f])},815958,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(887300),r=e.i(45698),l=e.i(71527),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(948148),c=e.i(102728),d=e.i(875120);function u({logo:e,websiteName:a}){let r=(0,o.useTranslations)();return(0,t.jsx)(n.Link,{href:e.href,className:"h1m-logo","aria-label":a?`${a} - ${r("home")}`:e.alt,children:(0,t.jsx)(i.default,{src:e.darkSrc??e.src,alt:e.alt,width:190,height:64,sizes:"(max-width: 1279px) 148px, 190px",priority:!0})})}function m({actions:e,onOpenSearch:a}){let r=(0,o.useTranslations)();return(0,t.jsxs)("div",{className:"h1m-actions",children:[(0,t.jsx)("button",{type:"button",className:"h1m-search-trigger","data-luxe-search-trigger":!0,onClick:a,"aria-label":r("search"),children:(0,t.jsx)(l.SearchIconNew,{"aria-hidden":!0})}),(0,t.jsx)(d.HeaderUtilityActions,{actions:e,variant:"desktop"})]})}function h({logo:e,websiteName:a,visibleAtDesktop:i,onOpenMenu:n,onOpenSearch:s}){let c=(0,o.useTranslations)();return(0,t.jsx)("div",{className:`h1m-mobile-bar${i?" h1m-mobile-bar--desktop-fallback":""}`,children:(0,t.jsxs)("div",{className:"layout-container h1m-mobile-inner",children:[(0,t.jsx)("button",{type:"button",className:"h1m-icon-button",onClick:n,"aria-label":c("open_menu"),children:(0,t.jsx)(r.HamburgerIcon,{"aria-hidden":!0})}),(0,t.jsx)(u,{logo:e,websiteName:a}),(0,t.jsx)("div",{className:"h1m-mobile-actions",children:(0,t.jsx)("button",{type:"button",className:"h1m-icon-button","data-luxe-search-trigger":!0,onClick:s,"aria-label":c("search"),children:(0,t.jsx)(l.SearchIconNew,{"aria-hidden":!0})})})]})})}function p({onClose:e}){let r=(0,o.useTranslations)(),l=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let t=t=>{!(t.target instanceof Element&&t.target.closest("[data-luxe-search-trigger]"))&&(l.current?.contains(t.target)||e())};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[e]),(0,t.jsx)("div",{ref:l,className:"h1m-search-panel",role:"dialog","aria-label":r("search"),onBlurCapture:()=>{window.setTimeout(()=>{let t=document.activeElement;!(t instanceof Element&&t.closest("[data-luxe-search-trigger]"))&&(l.current?.contains(t)||e())},0)},children:(0,t.jsxs)("div",{className:"layout-container h1m-search-panel-inner",children:[(0,t.jsx)(c.HeaderSearchField,{variant:"standard",inputId:"luxe-header-search",className:"h1m-search-field",autoFocus:!0}),(0,t.jsx)("button",{type:"button",className:"h1m-search-close",onClick:e,"aria-label":r("close_search"),children:(0,t.jsx)(a.ClearIcon,{"aria-hidden":!0})})]})})}e.s(["LuxeHeaderActions",()=>m,"LuxeLogo",()=>u,"LuxeMobileBar",()=>h,"LuxeSearchPanel",()=>p])},608119,e=>{"use strict";var t=e.i(843476),a=e.i(22584);e.i(527967);var r=e.i(887300),l=e.i(71527),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(948148),d=e.i(106446);let u="header_one_recent_searches";function m(e){let t=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e});return`${a.routes.searchResult.root}?${t.toString()}`}function h(e,t){let r=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e??"",tab:t});return`${a.routes.searchResult.root}?${r.toString()}`}function p(e){let t=e.trim();return t?/^https?:\/\//i.test(t)||/^mailto:/i.test(t)||t.startsWith("/")?t:`/${t}`:a.routes.searchResult.root}function g(e,t,a){return`${e}-${a}-${String(t.id)}-${t.url}`}function v({variant:e="default",inputId:v="header-two-search",className:x=""}){let b=(0,c.useTranslations)(),f=(0,s.usePathname)(),w=(0,o.useRef)(null),[y,j]=(0,o.useState)(""),[N,_]=(0,o.useState)(!1),[k,C]=(0,o.useState)([]),[S,L]=(0,o.useState)(null),[I,z]=(0,o.useState)([]),[A,q]=(0,o.useState)(!1),[E,$]=(0,o.useState)({}),P=(0,o.useCallback)(()=>{_(!1),j("")},[]),T=(0,o.useCallback)(e=>{let t=e.trim();t&&C(e=>{let a=[t,...e.filter(e=>e!==t)].slice(0,8);return window.localStorage.setItem(u,JSON.stringify(a)),a})},[]),M=(0,o.useCallback)(e=>{T(e),P()},[T,P]);(0,o.useEffect)(()=>{try{let e=window.localStorage.getItem(u);if(!e)return;let t=JSON.parse(e);if(!Array.isArray(t))return;let a=t.filter(e=>"string"==typeof e).map(e=>
212e.trim()).filter(Boolean).slice(0,8);C(a)}catch{C([])}},[]),(0,o.useEffect)(()=>{P()},[f,P]),(0,o.useEffect)(()=>{function e(e){let t=e.target;!t||w.current?.contains(t)||P()}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[P]),(0,o.useEffect)(()=>{let e=y.trim();if(!e){L(null),z([]),q(!1),$({});return}let t=new AbortController,a=window.setTimeout(async()=>{q(!0);try{let[a,r]=await Promise.all([fetch(`/api/search?result_search=${encodeURIComponent(e)}`,{signal:t.signal}),fetch(`/api/search/suggestions?query=${encodeURIComponent(e)}&limit=4`,{signal:t.signal})]);if(a.ok){let e=await a.json();L(e.ok?e.data??null:null)}else L(null);if(r.ok){let e=await r.json();z(e.ok&&e.data?.items?.length?e.data.items:[])}else z([])}catch{L(null),z([])}finally{t.signal.aborted||q(!1)}},250);return()=>{t.abort(),window.clearTimeout(a)}},[y]);let O=y.trim(),F=O.length>0,R=F?I.length?I.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})):S?.suggestions??[]:d.HEADER_ONE_POPULAR_SEARCH_TERMS.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})),B=(S?.categories??[]).map(e=>({...e,url:p(e.url)})),D=(S?.products??[]).map(e=>({...e,url:p(e.url)})),H=(S?.marketInsights??[]).map(e=>({...e,url:p(e.url)})),U=R.slice(0,4),G=B.slice(0,4),W=H.slice(0,6),V=D.slice(0,6),K="fancy"===e,Y=K?"border border-[var(--h1f-input-border)]":N?"border-0":"border-[length:var(--header-two-search-border-width)] border-[color:var(--header-two-search-border-color)]",Q=K?`w-full min-h-[var(--h1f-input-min-height)] rounded-[var(--h1f-input-radius)] bg-[var(--h1f-input-bg)] ${Y}
213        py-[var(--h1f-input-padding-y)] ps-[var(--h1f-input-padding-start)] text-[length:var(--h1f-input-font-size)] font-[var(--font-weight-normal)] text-[var(--h1f-input-text)]
214        ${y?"pe-[var(--h1f-input-padding-end-with-clear)]":"pe-[var(--h1f-input-padding-end)]"}
215        placeholder:text-[var(--h1f-input-placeholder)] placeholder:font-[var(--font-weight-normal)]
216        outline-none transition-[border-color]
217        focus:border-[var(--h1f-input-focus-ring)] focus:ring-0
218        md:text-[length:var(--h1f-input-font-size-desktop)]
219        [&::-webkit-search-cancel-button]:appearance-none
220        [&::-webkit-search-decoration]:appearance-none`:`w-full rounded-full bg-[var(--header-two-search-bg)] ${Y}
221        pt-[length:var(--header-two-search-padding-y)]
222        pe-[length:var(--header-two-search-padding-inline-end)]
223        pb-[length:var(--header-two-search-padding-y)]
224        ps-[length:var(--header-two-search-padding-inline-start)]
225        md:text-[length:var(--header-two-font-size-md)]
226        text-[length:var(--header-two-font-size-md-mobile)]
227        text-[var(--header-two-search-text)]
228        placeholder:font-[var(--header-two-font-weight-normal)]
229        placeholder:text-[var(--header-two-search-text-color)]
230        outline-none
231        [&::-webkit-search-cancel-button]:appearance-none
232        [&::-webkit-search-decoration]:appearance-none`,Z=K?"header-fancy-popular-search":"header-two-popular-search",X=K?"text-xs font-semibold uppercase tracking-wide text-[var(--h1f-suggest-title-color)]":"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",J=K?`${X} mb-2`:`${X} mb-1 md:mb-2`,ee=K?"block cursor-pointer rounded-[var(--h1f-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1f-suggest-item-color)] transition-colors hover:bg-[var(--h1f-suggest-item-hover-bg)] hover:text-[var(--h1f-suggest-item-hover-color)]":"block cursor-pointer px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",et=K?"flex items-center justify-between gap-3 rounded-[var(--h1f-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1f-suggest-item-color)] transition-colors hover:bg-[var(--h1f-suggest-item-hover-bg)] hover:text-[var(--h1f-suggest-item-hover-color)]":"flex items-center justify-between px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
232ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",ea=K?"flex items-start gap-3 rounded-[var(--h1f-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1f-suggest-item-color)] transition-colors hover:bg-[var(--h1f-suggest-item-hover-bg)] hover:text-[var(--h1f-suggest-item-hover-color)]":"flex items-start gap-3 px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",er=K?"text-sm font-medium text-[var(--h1f-suggest-link-color)] transition-colors hover:text-[var(--h1f-suggest-link-hover)]":"text-[var(--header-two-search-popular-item-link-text-color)]",el=K?"border-[var(--h1f-suggest-divider)]":"border-[var(--header-two-suggestions-divider-border)]",ei=K?"h-4 w-full animate-pulse rounded bg-[var(--h1f-suggest-skeleton-bg)]":"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]",en=K?"h-12 w-12 shrink-0 animate-pulse rounded-[var(--h1f-suggest-thumb-radius)] bg-[var(--h1f-suggest-skeleton-bg)]":"h-12 w-12 shrink-0 animate-pulse rounded bg-[var(--header-two-suggestions-skeleton-bg)]",es=K?"h-12 w-12 shrink-0 rounded-[var(--h1f-suggest-thumb-radius)] border border-[var(--h1f-suggest-thumb-border)] object-cover":"h-12 w-12 shrink-0 object-cover",eo=K?"h-12 w-12 shrink-0 rounded-[var(--h1f-suggest-thumb-radius)] border border-[var(--h1f-suggest-thumb-border)] bg-[var(--h1f-suggest-thumb-placeholder)]":"h-12 w-12 shrink-0 bg-[var(--our-top-products-one-card-border)]",ec=K?"shrink-0 rounded-full bg-[var(--h1f-suggest-badge-bg)] px-2 py-0.5 text-xs font-semibold text-[var(--h1f-suggest-badge-text)]":"shrink-0";return(0,t.jsx)("div",{ref:w,className:`relative z-[var(--header-two-search-popular-z)] min-w-0 w-full flex-1 ${x}`,children:(0,t.jsxs)("form",{className:"relative w-full",action:a.routes.searchResult.result(y??""),method:"get",onSubmit:()=>{T(y),_(!1)},children:[(0,t.jsx)("input",{type:"hidden",name:d.HEADER_ONE_SEARCH.industryHiddenName}),(0,t.jsx)("input",{className:Q,type:"search",id:v,name:d.HEADER_ONE_SEARCH.inputName,autoComplete:"off",placeholder:b("header_search_placeholder"),value:y,onFocus:()=>_(!0),onChange:e=>{j(e.target.value),_(!0)},"aria-controls":N?Z:void 0}),y?(0,t.jsx)("button",{type:"button",className:K?"absolute end-[var(--h1f-search-clear-inset-end)] top-1/2 -translate-y-1/2 border-0 bg-transparent p-1 text-[var(--h1f-input-placeholder)] hover:text-[var(--h1f-input-text)]":"absolute end-[length:var(--header-two-search-clear-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer border-0 bg-transparent p-[var(--header-two-top-hamburger-padding)]","aria-label":b("clear_search"),onClick:()=>{j(""),_(!0)},children:(0,t.jsx)(r.ClearIcon,{className:K?"h-4 w-4 shrink-0":"text-[var(--header-two-search-clear-text-color)] w-6 h-6 shrink-0"})}):null,(0,t.jsx)("button",{className:K?"absolute end-[var(--h1f-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 bg-transparent p-0 text-[var(--h1f-input-placeholder)] transition-colors hover:text-[var(--h1f-input-text)]":"absolute end-[length:var(--header-two-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 bg-transparent p-[length:var(--header-two-search-icon-button-padding)]",type:"submit","aria-label":b("search"),children:(0,t.jsx)(l.SearchIconNew,{className:K?"h-[var(--h1f-search-submit-icon-size)] w-[var(--h1f-search-submit-icon-size)] shrink-0":"text-[var(--header-two-top-color)] w-5 h-5 shrink-0"})}),N?(0,t.jsx)("div",{id:Z,className:`${K?"absolute w-full mt-2 rounded-[var(--h1f-suggest-radius)] border border-[var(--h1f-suggest-border)] border-t-[length:var(--h1f-suggest-accent-width)] border-t-[var(--h1f-suggest-accent)] bg-[var(--h1f-suggest-bg)] px-4 py-4 shadow-[var(--h1f-suggest-shadow)] md:px-5 md:py-5":"absolute w-full mt-[length:var(--header-two-search-popular-mt)] rounded-[length:var(--header-two-search-popular-radius)] bg-[var(--header-two-search-popular-bg)] px-[length:var(--header-two-search-popular-padding-x)] py-[length:var(--header-two-search-popular-padding-y)] shadow-[var(--header-two-search-popular-shadow)]"} header-search-suggest-panel`,role:"region","aria-label":b("search_suggestions"),children:F?(0,t.jsxs)("div",{className:K?"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-5":"grid grid-cols-1 gap-0 md:grid-cols-2 md:gap-6",children:[(0,t.jsxs)("div",{className:K?"min-w-0 h-auto md:max-h-[500px] overflow-y-auto md:border-e md:border-[var(--h1f-suggest-divider)] md:pe-5 [scrollbar-width:thin] [scrollbar-color:rgba(0,55,29,0.2)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/15 hover:[&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/25":"min-w-0 h-auto md:max-h-[500px] overflow-y-auto md:border-r md:border-[var(--header-two-suggestions-divider-border)] md:pr-6 [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:"hidden md:block",children:[(0,t.jsx)("h6",{className:J,children:b("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-suggestion-${a}`)):U.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ee,children:e.title})},g("suggestion-md",e,a)))})]}),(0,t.jsxs)("div",{className:"hidden md:block",children:[(0,t.jsxs)("div",{className:`mb-2 mt-3 flex items-center justify-between border-t pt-3 md:mt-4 ${el}`,children:[(0,t.jsx)("h6",{className:X,children:b("market_insights")}),(0,t.jsx)(n.Link,{href:h(O,"marketInsight"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-market-${a}`)):W.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:`${ee} line-clamp-2`,children:e.title})},g("market-md",e,a)))})]})]}),(0,t.jsxs)("div",{className:K?"min-w-0 max-h-[500px] overflow-y-auto [scrollbar-width:thin] [scrollbar-color:rgba(0,55,29,0.2)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/15 hover:[&::-webkit-scrollbar-thumb]:bg-[var(--brand-primary)]/25":"min-w-0 max-h-[500px] overflow-y-auto [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:"md:hidden",children:[(0,t.jsx)("h6",{className:J,children:b("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-suggestion-${a}`)):U.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ee,children:e.title})},g("suggestion-sm",e,a)))})]}),(0,t.jsxs)("div",{className:`border-t pt-3 md:border-0 md:pt-0 ${el}`,children:[(0,t.jsx)("h6",{className:J,children:b("categories")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-category-${a}`)):G.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>M(e.title),className:et,children:[(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.title}),"number"==typeof e.count?(0,t.jsx)("span",{className:ec,children:K?e.count:`(${e.count})`}):null]})},g("category",e,a)))})]}),(0,t.jsxs)("div",{className:`mb-2 mt-3 flex items-center justify-between border-t pt-3 md:mt-4 md:border-0 md:pt-0 ${el}`,children:[(0,t.jsx)("h6",{className:X,children:b("all_products")}),(0,t.jsx)(n.Link,{href:h(O,"productResult"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-start gap-3 px-3 py-2",children:[(0,t.jsx)("div",{className:en}),(0,t.jsx)("div",{className:`flex-1 ${ei}`})]})},`skeleton-product-${a}`)):V.map((e,a)=>{let r=g("product",e,a),l=function(e){let t=e.raw;if(!t)return null;for(let e of[t.image,t.image_url,t.thumbnail])if("string"==typeof e&&e.trim().length>0)return e;return null}(e),s=!l||E[r]?"":l;return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ea,children:[s?(0,t.jsx)(i.default,{src:s,alt:e.title,width:148,height:148,className:es,loading:"lazy",onError:()=>$(e=>({...e,[r]:!0}))}):(0,t.jsx)("div",{className:eo}),(0,t.jsx)("span",{className:"line-clamp-2",children:e.title})]})},r)})}),(0,t.jsxs)("div",{className:`mt-3 border-t pt-3 md:hidden ${el}`,children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h6",{className:X,children:b("market_insights")}),(0,t.jsx)(n.Link,{href:h(O,"marketInsight"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-market-mobile-${a}`)):W.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:`${ee} line-clamp-2`,children:e.title})},g("market-sm",e,a)))})]})]})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("h6",{className:J,children:b("recent_searches")}),k.length>0?K?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-2 p-0",children:k.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>M(e),className:"inline-flex max-w-full min-w-0 overflow-hidden text-ellipsis whitespace-nowrap rounded-full border border-[var(--h1f-suggest-chip-border)] bg-[var(--h1f-suggest-chip-bg)] px-3 py-1.5 text-sm font-medium text-[var(--h1f-suggest-item-color)] transition-colors hover:border-[var(--h1f-suggest-accent)] hover:bg-[var(--h1f-suggest-item-hover-bg)] hover:text-[var(--h1f-suggest-item-hover-color)]",children:e})},e))}):(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:k.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>M(e),className:`${ee} max-w-[380px]`,children:e})},e))}):(0,t.jsx)("p",{className:K?"rounded-[var(--h1f-suggest-item-radius)] bg-[var(--h1f-suggest-chip-bg)] px-3 py-2 text-sm text-[var(--h1f-suggest-item-color)]":"rounded-md p-[length:var(--header-two-search-popular-item-padding)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
232ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)]",children:b("no_recent_searches")})]})}):null]})})}e.s(["HeaderSearchField",()=>v])},224907,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(337190),l=e.i(45698),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(861745),d=e.i(948148),u=e.i(24014),m=e.i(420268),h=e.i(608119),p=e.i(416808);function g({languages:e,activeLanguageCode:l,variant:n}){let h=(0,d.useTranslations)(),p=(0,c.useLocale)(),g=(0,s.usePathname)(),v=(0,o.useRef)(null),[x,b]=(0,o.useState)(!1),[f,w]=(0,o.useState)(null),y=(0,u.resolveActiveLocaleCode)(l)||p,j=(0,m.normalizeUiLocale)(y),N=e.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,m.normalizeUiLocale)(e.code)===j)??e[0],_=N?.name??h("language");(0,o.useEffect)(()=>{if(x)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){v.current?.contains(e.target)||b(!1)}function t(e){"Escape"===e.key&&b(!1)}},[x]);let k=async e=>{let t=e.trim();if(!t)return;let a=(0,m.normalizeUiLocale)(t);w(t),await (0,u.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{w(null),b(!1)},onError:()=>{w(null)},onApplied:()=>{b(!1),(0,u.resolveLocalizedPathForLanguage)(g,a,y).then(e=>{let t=window.location.search,a=window.location.hash;window.location.assign(`${e}${t}${a}`)})}}),w(null)};return(0,t.jsxs)("div",{className:"h1f-language-menu",ref:v,children:[(0,t.jsx)("button",{type:"button",className:`h1f-language-button${"icon"===n?" h1f-language-button--icon":""}`,"aria-label":h("language"),"aria-expanded":x,"aria-haspopup":"listbox",onClick:()=>b(e=>!e),children:"icon"===n?N?.flagSrc?(0,t.jsx)("span",{className:"h1f-language-flag",children:(0,t.jsx)(i.default,{src:N.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):(0,t.jsx)(r.GlobeIconNew,{className:"h-4 w-4"}):(0,t.jsxs)(t.Fragment,{children:[N?.flagSrc?(0,t.jsx)("span",{className:"h1f-language-flag",children:(0,t.jsx)(i.default,{src:N.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):(0,t.jsx)(r.GlobeIconNew,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:_}),(0,t.jsx)(a.ArrowIcon,{className:"h1f-language-chevron"})]})}),x?(0,t.jsx)("div",{className:"h1f-language-dropdown",role:"listbox","aria-label":h("language"),children:e.length>0?e.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,m.normalizeUiLocale)(a)===j,l=f?.toLowerCase()===a.toLowerCase();return(0,t.jsxs)("button",{type:"button",className:"h1f-language-option",disabled:l,"aria-selected":r,role:"option",onClick:()=>k(e.code),children:[e.flagSrc?(0,t.jsx)("span",{className:"h1f-language-flag",children:(0,t.jsx)(i.default,{src:e.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):null,(0,t.jsx)("span",{className:"h1f-language-option-name",children:e.name})]},e.code)}):(0,t.jsx)("p",{className:"h1f-language-empty",children:h("no_languages_available")})}):null]})}function v({logo:e,actions:a=[],languages:r=[],activeLanguageCode:s="",websiteName:o,showMenuButton:c=!0,onOpenNav:u,onOpenGroupSites:m}){let v=(0,d.useTranslations)(),x=e.darkSrc??e.src;return(0,t.jsx)("div",{className:" border-b-[length:var(--h1f-tier2-border-width)] border-b-[var(--h1f-tier2-border)] bg-[var(--h1f-tier2-bg)] shadow-[var(--h1f-tier2-shadow)] ","data-fancy-tier":"logo-search",children:(0,t.jsxs)("div",{className:"layout-container h1f-tier2-inner px-3 py-[var(--h1f-tier2-padding-y)] md:px-5",children:[(0,t.jsxs)("div",{className:"h1f-tier2-start",children:[c?(0,t.jsx)("button",{type:"button","aria-label":v("open_menu"),onClick:u,className:"flex h-[var(--h1f-icon-button-size)] w-[var(--h1f-icon-button-size)] shrink-0 cursor-pointer items-center justify-center rounded-[var(--h1f-control-radius)] border border-[var(--h1f-control-border)] bg-transparent text-[var(--h1f-input-text)]",children:(0,t.jsx)(l.HamburgerIcon,{className:"h-5 w-5"})}):null,(0,t.jsx)(n.Link,{href:e.href,"aria-label":o?`${o} - ${v("home")}`:e.alt,className:"h1f-tier2-logo inline-flex min-w-0 shrink-0 items-center",children:(0,t.jsx)(i.default,{src:x,alt:e.alt,width:164,height:61,sizes:"(max-width: 1024px) 130px, 164px",priority:!0,className:"h-[var(--h1f-logo-h-mobile)] w-auto object-contain md:h-[var(--h1f-logo-h-desktop)]"})})]}),(0,t.jsxs)("div",{className:"h1f-tier2-mobile-actions",children:[(0,t.jsx)(g,{languages:r,activeLanguageCode:s,variant:"icon"}),(0,t.jsx)("span",{className:"h1f-mobile-actions-divider","aria-hidden":!0}),(0,t.jsx)("button",{type:"button",onClick:m,className:"h1f-group-sites-button",children:v("group_sites")})]}),(0,t.jsx)("div",{className:"h1f-tier2-search",children:(0,t.jsx)(h.HeaderSearchField,{variant:"fancy",inputId:"header-fancy-search",className:"h1f-search-field"})}),(0,t.jsxs)("div",{className:"h1f-tier2-actions",children:[(0,t.jsx)(g,{languages:r,activeLanguageCode:s,variant:"full"}),a.length>0?(0,t.jsx)("div",{className:"h1f-utility-actions",children:(0,t.jsx)(p.HeaderUtilityActions,{actions:a,variant:"desktop"})}):null]})]})})}e.s(["PremiumLogoSearchBar",()=>v])},967288,e=>{"use strict";var t=e.i(843476),a=e.i(22584);e.i(527967);
232var r=e.i(887300),l=e.i(71527),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(948148),d=e.i(679918);let u="header_one_recent_searches";function m(e){let t=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e});return`${a.routes.searchResult.root}?${t.toString()}`}function h(e,t){let r=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e??"",tab:t});return`${a.routes.searchResult.root}?${r.toString()}`}function p(e){let t=e.trim();return t?/^https?:\/\//i.test(t)||/^mailto:/i.test(t)||t.startsWith("/")?t:`/${t}`:a.routes.searchResult.root}function g(e,t,a){return`${e}-${a}-${String(t.id)}-${t.url}`}function v({variant:e="default",inputId:v="header-two-search",className:x=""}){let b=(0,c.useTranslations)(),f=(0,s.usePathname)(),w=(0,o.useRef)(null),[y,j]=(0,o.useState)(""),[N,_]=(0,o.useState)(!1),[k,C]=(0,o.useState)([]),[S,L]=(0,o.useState)(null),[I,z]=(0,o.useState)([]),[A,q]=(0,o.useState)(!1),[E,$]=(0,o.useState)({}),P=(0,o.useCallback)(()=>{_(!1),j("")},[]),T=(0,o.useCallback)(e=>{let t=e.trim();t&&C(e=>{let a=[t,...e.filter(e=>e!==t)].slice(0,8);return window.localStorage.setItem(u,JSON.stringify(a)),a})},[]),M=(0,o.useCallback)(e=>{T(e),P()},[T,P]);(0,o.useEffect)(()=>{try{let e=window.localStorage.getItem(u);if(!e)return;let t=JSON.parse(e);if(!Array.isArray(t))return;let a=t.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean).slice(0,8);C(a)}catch{C([])}},[]),(0,o.useEffect)(()=>{P()},[f,P]),(0,o.useEffect)(()=>{function e(e){let t=e.target;!t||w.current?.contains(t)||P()}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[P]),(0,o.useEffect)(()=>{let e=y.trim();if(!e){L(null),z([]),q(!1),$({});return}let t=new AbortController,a=window.setTimeout(async()=>{q(!0);try{let[a,r]=await Promise.all([fetch(`/api/search?result_search=${encodeURIComponent(e)}`,{signal:t.signal}),fetch(`/api/search/suggestions?query=${encodeURIComponent(e)}&limit=4`,{signal:t.signal})]);if(a.ok){let e=await a.json();L(e.ok?e.data??null:null)}else L(null);if(r.ok){let e=await r.json();z(e.ok&&e.data?.items?.length?e.data.items:[])}else z([])}catch{L(null),z([])}finally{t.signal.aborted||q(!1)}},250);return()=>{t.abort(),window.clearTimeout(a)}},[y]);let O=y.trim(),F=O.length>0,R=F?I.length?I.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})):S?.suggestions??[]:d.HEADER_ONE_POPULAR_SEARCH_TERMS.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})),B=(S?.categories??[]).map(e=>({...e,url:p(e.url)})),D=(S?.products??[]).map(e=>({...e,url:p(e.url)})),H=(S?.marketInsights??[]).map(e=>({...e,url:p(e.url)})),U=R.slice(0,4),G=B.slice(0,4),W=H.slice(0,6),V=D.slice(0,6),K="standard"===e,Y=K?"border border-[var(--h1s-input-border)]":N?"border-0":"border-[length:var(--header-two-search-border-width)] border-[color:var(--header-two-search-border-color)]",Q=K?`w-full min-h-[var(--h1s-input-min-height)] rounded-[var(--h1s-input-radius)] bg-[var(--h1s-input-bg)] ${Y}
233        py-[var(--h1s-input-padding-y)] ps-[var(--h1s-input-padding-start)] text-[length:var(--h1s-input-font-size)] font-[var(--font-weight-normal)] text-[var(--h1s-input-text)]
234        ${y?"pe-[var(--h1s-input-padding-end-with-clear)]":"pe-[var(--h1s-input-padding-end)]"}
235        placeholder:text-[var(--h1s-input-placeholder)] placeholder:font-[var(--font-weight-normal)]
236        outline-none transition-[border-color]
237        focus:border-[var(--h1s-input-focus-ring)] focus:ring-0
238        xl:text-[length:var(--h1s-input-font-size-desktop)]
239        [&::-webkit-search-cancel-button]:appearance-none
240        [&::-webkit-search-decoration]:appearance-none`:`w-full rounded-full bg-[var(--header-two-search-bg)] ${Y}
241        pt-[length:var(--header-two-search-padding-y)]
242        pe-[length:var(--header-two-search-padding-inline-end)]
243        pb-[length:var(--header-two-search-padding-y)]
244        ps-[length:var(--header-two-search-padding-inline-start)]
245        md:text-[length:var(--header-two-font-size-md)]
246        text-[length:var(--header-two-font-size-md-mobile)]
247        text-[var(--header-two-search-text)]
248        placeholder:font-[var(--header-two-font-weight-normal)]
249        placeholder:text-[var(--header-two-search-text-color)]
250        outline-none
251        [&::-webkit-search-cancel-button]:appearance-none
252        [&::-webkit-search-decoration]:appearance-none`,Z=K?"header-standard-popular-search":"header-two-popular-search",X=K?"text-xs font-semibold uppercase tracking-wide text-[var(--h1s-suggest-title-color)]":"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",J=K?`${X} mb-2`:`${X} mb-1 md:mb-2`,ee=K?"block cursor-pointer rounded-[var(--h1s-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1s-suggest-item-color)] transition-colors hover:bg-[var(--h1s-suggest-item-hover-bg)] hover:text-[var(--h1s-suggest-item-hover-color)]":"block cursor-pointer px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
252ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",et=K?"flex items-center justify-between gap-3 rounded-[var(--h1s-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1s-suggest-item-color)] transition-colors hover:bg-[var(--h1s-suggest-item-hover-bg)] hover:text-[var(--h1s-suggest-item-hover-color)]":"flex items-center justify-between px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",ea=K?"flex items-start gap-3 rounded-[var(--h1s-suggest-item-radius)] px-3 py-2 text-sm font-medium leading-snug text-[var(--h1s-suggest-item-color)] transition-colors hover:bg-[var(--h1s-suggest-item-hover-bg)] hover:text-[var(--h1s-suggest-item-hover-color)]":"flex items-start gap-3 px-[length:var(--header-two-search-popular-item-padding-x)] py-[length:var(--header-two-search-popular-item-padding-y)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-weight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)] transition-colors hover:text-[var(--header-two-search-popular-item-hover-color)] hover:bg-[var(--header-two-search-popular-item-hover-bg-color)]",er=K?"text-sm font-medium text-[var(--h1s-suggest-link-color)] transition-colors hover:text-[var(--h1s-suggest-link-hover)]":"text-[var(--header-two-search-popular-item-link-text-color)]",el=K?"border-[var(--h1s-suggest-divider)]":"border-[var(--header-two-suggestions-divider-border)]",ei=K?"h-4 w-full animate-pulse rounded bg-[var(--h1s-suggest-skeleton-bg)]":"h-4 w-full animate-pulse rounded-full bg-[var(--header-two-suggestions-skeleton-bg)]",en=K?"h-12 w-12 shrink-0 animate-pulse rounded-[var(--h1s-suggest-thumb-radius)] bg-[var(--h1s-suggest-skeleton-bg)]":"h-12 w-12 shrink-0 animate-pulse rounded bg-[var(--header-two-suggestions-skeleton-bg)]",es=K?"h-12 w-12 shrink-0 rounded-[var(--h1s-suggest-thumb-radius)] border border-[var(--h1s-suggest-thumb-border)] object-cover":"h-12 w-12 shrink-0 object-cover",eo=K?"h-12 w-12 shrink-0 rounded-[var(--h1s-suggest-thumb-radius)] border border-[var(--h1s-suggest-thumb-border)] bg-[var(--h1s-suggest-thumb-placeholder)]":"h-12 w-12 shrink-0 bg-[var(--our-top-products-one-card-border)]",ec=K?"shrink-0 rounded-full bg-[var(--h1s-suggest-badge-bg)] px-2 py-0.5 text-xs font-semibold text-[var(--h1s-suggest-badge-text)]":"shrink-0",ed=K?"hidden xl:block":"hidden md:block",eu=K?`border-t pt-3 xl:border-0 xl:pt-0 ${el}`:`border-t pt-3 md:border-0 md:pt-0 ${el}`,em=K?`mb-2 mt-3 flex items-center justify-between border-t pt-3 xl:mt-4 xl:border-0 xl:pt-0 ${el}`:`mb-2 mt-3 flex items-center justify-between border-t pt-3 md:mt-4 md:border-0 md:pt-0 ${el}`,eh=K?`mb-2 mt-3 flex items-center justify-between border-t pt-3 xl:mt-4 ${el}`:`mb-2 mt-3 flex items-center justify-between border-t pt-3 md:mt-4 ${el}`,ep=K?`mt-3 border-t pt-3 xl:hidden ${el}`:`mt-3 border-t pt-3 md:hidden ${el}`;return(0,t.jsx)("div",{ref:w,className:`relative z-[var(--header-two-search-popular-z)] min-w-0 
252w-full flex-1 ${x}`,children:(0,t.jsxs)("form",{className:"relative w-full",action:a.routes.searchResult.result(y??""),method:"get",onSubmit:()=>{T(y),_(!1)},children:[(0,t.jsx)("input",{type:"hidden",name:d.HEADER_ONE_SEARCH.industryHiddenName}),(0,t.jsx)("input",{className:Q,type:"search",id:v,name:d.HEADER_ONE_SEARCH.inputName,autoComplete:"off",placeholder:b("header_search_placeholder"),value:y,onFocus:()=>_(!0),onChange:e=>{j(e.target.value),_(!0)},"aria-controls":N?Z:void 0}),y?(0,t.jsx)("button",{type:"button",className:K?"absolute end-[var(--h1s-search-clear-inset-end)] top-1/2 -translate-y-1/2 border-0 bg-transparent p-1 text-[var(--h1s-input-placeholder)] hover:text-[var(--h1s-input-text)]":"absolute end-[length:var(--header-two-search-clear-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer border-0 bg-transparent p-[var(--header-two-top-hamburger-padding)]","aria-label":b("clear_search"),onClick:()=>{j(""),_(!0)},children:(0,t.jsx)(r.ClearIcon,{className:K?"h-4 w-4 shrink-0":"text-[var(--header-two-search-clear-text-color)] w-6 h-6 shrink-0"})}):null,(0,t.jsx)("button",{className:K?"h1s-search-submit absolute end-[var(--h1s-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 p-0":"absolute end-[length:var(--header-two-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 bg-transparent p-[length:var(--header-two-search-icon-button-padding)]",type:"submit","aria-label":b("search"),children:(0,t.jsx)(l.SearchIconNew,{className:K?"h-[var(--h1s-search-submit-icon-size)] w-[var(--h1s-search-submit-icon-size)] shrink-0":"text-[var(--header-two-top-color)] w-5 h-5 shrink-0"})}),N?(0,t.jsx)("div",{id:Z,className:`${K?"absolute w-full mt-2 rounded-[var(--h1s-suggest-radius)] border border-[var(--h1s-suggest-border)] border-t-[length:var(--h1s-suggest-accent-width)] border-t-[var(--h1s-suggest-accent)] bg-[var(--h1s-suggest-bg)] px-4 py-4 shadow-[var(--h1s-suggest-shadow)] xl:px-5 xl:py-5":"absolute w-full mt-[length:var(--header-two-search-popular-mt)] rounded-[length:var(--header-two-search-popular-radius)] bg-[var(--header-two-search-popular-bg)] px-[length:var(--header-two-search-popular-padding-x)] py-[length:var(--header-two-search-popular-padding-y)] shadow-[var(--header-two-search-popular-shadow)]"} header-search-suggest-panel`,role:"region","aria-label":b("search_suggestions"),children:F?(0,t.jsxs)("div",{className:K?"grid grid-cols-1 gap-4 xl:grid-cols-2 xl:gap-5":"grid grid-cols-1 gap-0 md:grid-cols-2 md:gap-6",children:[(0,t.jsxs)("div",{className:K?"h1s-suggest-scroll min-w-0 h-auto xl:max-h-[500px] overflow-y-auto xl:border-e xl:border-[var(--h1s-suggest-divider)] xl:pe-5":"min-w-0 h-auto md:max-h-[500px] overflow-y-auto md:border-r md:border-[var(--header-two-suggestions-divider-border)] md:pr-6 [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:ed,children:[(0,t.jsx)("h6",{className:J,children:b("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-suggestion-${a}`)):U.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ee,children:e.title})},g("suggestion-md",e,a)))})]}),(0,t.jsxs)("div",{className:ed,children:[(0,t.jsxs)("div",{className:eh,children:[(0,t.jsx)("h6",{className:X,children:b("market_insights")}),(0,t.jsx)(n.Link,{href:h(O,"marketInsight"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-market-${a}`)):W.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:`${ee} line-clamp-2`,children:e.title})},g("market-md",e,a)))})]})]}),(0,t.jsxs)("div",{className:K?"h1s-suggest-scroll min-w-0 max-h-[500px] overflow-y-auto":"min-w-0 max-h-[500px] overflow-y-auto [scrollbar-width:thin] [scrollbar-color:rgba(0,0,0,0.28)_transparent] [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-black/20 hover:[&::-webkit-scrollbar-thumb]:bg-black/35",children:[(0,t.jsxs)("div",{className:K?"xl:hidden":"md:hidden",children:[(0,t.jsx)("h6",{className:J,children:b("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-suggestion-${a}`)):U.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ee,children:e.title})},g("suggestion-sm",e,a)))})]}),(0,t.jsxs)("div",{className:eu,children:[(0,t.jsx)("h6",{className:J,children:b("categories")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:A?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-category-${a}`)):G.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>M(e.title),className:et,children:[(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.title}),"number"==typeof e.count?(0,t.jsx)("span",{className:ec,children:K?e.count:`(${e.count})`}):null]})},g("category",e,a)))})]}),(0,t.jsxs)("div",{className:em,children:[(0,t.jsx)("h6",{className:X,children:b("all_products")}),(0,t.jsx)(n.Link,{href:h(O,"productResult"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-start gap-3 px-3 py-2",children:[(0,t.jsx)("div",{className:en}),(0,t.jsx)("div",{className:`flex-1 ${ei}`})]})},`skeleton-product-${a}`)):V.map((e,a)=>{let r=g("product",e,a),l=function(e){let t=e.raw;if(!t)return null;for(let e of[t.image,t.image_url,t.thumbnail])if("string"==typeof e&&e.trim().length>0)return e;return null}(e),s=!l||E[r]?"":l;return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>M(e.title),className:ea,children:[s?(0,t.jsx)(i.default,{src:s,alt:e.title,width:148,height:148,className:es,loading:"lazy",onError:()=>$(e=>({...e,[r]:!0}))}):(0,t.jsx)("div",{className:eo}),(0,t.jsx)("span",{className:"line-clamp-2",children:e.title})]})},r)})}),(0,t.jsxs)("div",{className:ep,children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h6",{className:X,children:b("market_insights")}),(0,t.jsx)(n.Link,{href:h(O,"marketInsight"),onClick:P,className:er,children:b("view_all_results")})]}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0",children:A?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:ei})})},`skeleton-market-mobile-${a}`)):W.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:e.url,onClick:()=>M(e.title),className:`${ee} line-clamp-2`,children:e.title})},g("market-sm",e,a)))})]})]})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("h6",{className:J,children:b("recent_searches")}),k.length>0?K?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-2 p-0",children:k.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>M(e),className:"inline-flex max-w-full min-w-0 overflow-hidden text-ellipsis whitespace-nowrap rounded-full border border-[var(--h1s-suggest-chip-border)] bg-[var(--h1s-suggest-chip-bg)] px-3 py-1.5 text-sm font-medium text-[var(--h1s-suggest-item-color)] transition-colors hover:border-[var(--h1s-suggest-accent)] hover:bg-[var(--h1s-suggest-item-hover-bg)] hover:text-[var(--h1s-suggest-item-hover-color)]",children:e})},e))}):(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:k.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>M(e),className:`${ee} max-w-[380px]`,children:e})},e))}):(0,t.jsx)("p",{className:K?"rounded-[var(--h1s-suggest-item-radius)] bg-[var(--h1s-suggest-chip-bg)] px-3 py-2 text-sm text-[var(--h1s-suggest-item-color)]":"rounded-md p-[length:var(--header-two-search-popular-item-padding)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
252ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)]",children:b("no_recent_searches")})]})}):null]})})}e.s(["HeaderSearchField",()=>v])},641211,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(337190),l=e.i(45698),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(861745),d=e.i(948148),u=e.i(24014),m=e.i(420268),h=e.i(967288),p=e.i(77066);function g({languages:e,activeLanguageCode:l,variant:n}){let h=(0,d.useTranslations)(),p=(0,c.useLocale)(),g=(0,s.usePathname)(),v=(0,o.useRef)(null),[x,b]=(0,o.useState)(!1),[f,w]=(0,o.useState)(null),y=(0,u.resolveActiveLocaleCode)(l)||p,j=(0,m.normalizeUiLocale)(y),N=e.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,m.normalizeUiLocale)(e.code)===j)??e[0],_=N?.name??h("language");(0,o.useEffect)(()=>{if(x)return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)};function e(e){v.current?.contains(e.target)||b(!1)}function t(e){"Escape"===e.key&&b(!1)}},[x]);let k=async e=>{let t=e.trim();if(!t)return;let a=(0,m.normalizeUiLocale)(t);w(t),await (0,u.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{w(null),b(!1)},onError:()=>{w(null)},onApplied:()=>{b(!1),(0,u.resolveLocalizedPathForLanguage)(g,a,y).then(e=>{let t=window.location.search,a=window.location.hash;window.location.assign(`${e}${t}${a}`)})}}),w(null)};return(0,t.jsxs)("div",{className:"h1s-language-menu",ref:v,children:[(0,t.jsx)("button",{type:"button",className:`h1s-language-button${"icon"===n?" h1s-language-button--icon":""}`,"aria-label":h("language"),"aria-expanded":x,"aria-haspopup":"listbox",onClick:()=>b(e=>!e),children:"icon"===n?N?.flagSrc?(0,t.jsx)("span",{className:"h1s-language-flag",children:(0,t.jsx)(i.default,{src:N.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):(0,t.jsx)(r.GlobeIconNew,{className:"h-4 w-4"}):(0,t.jsxs)(t.Fragment,{children:[N?.flagSrc?(0,t.jsx)("span",{className:"h1s-language-flag",children:(0,t.jsx)(i.default,{src:N.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):(0,t.jsx)(r.GlobeIconNew,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:_}),(0,t.jsx)(a.ArrowIcon,{className:"h1s-language-chevron"})]})}),x?(0,t.jsx)("div",{className:"h1s-language-dropdown",role:"listbox","aria-label":h("language"),children:e.length>0?e.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,m.normalizeUiLocale)(a)===j,l=f?.toLowerCase()===a.toLowerCase();return(0,t.jsxs)("button",{type:"button",className:"h1s-language-option",disabled:l,"aria-selected":r,role:"option",onClick:()=>k(e.code),children:[e.flagSrc?(0,t.jsx)("span",{className:"h1s-language-flag",children:(0,t.jsx)(i.default,{src:e.flagSrc,alt:"",width:18,height:12,className:"h-full w-full object-cover"})}):null,(0,t.jsx)("span",{className:"h1s-language-option-name",children:e.name})]},e.code)}):(0,t.jsx)("p",{className:"h1s-language-empty",children:h("no_languages_available")})}):null]})}function v({logo:e,actions:a=[],languages:r=[],activeLanguageCode:s="",websiteName:o,showMenuButton:c=!0,onOpenNav:u,onOpenGroupSites:m}){let v=(0,d.useTranslations)(),x=e.darkSrc??e.src;return(0,t.jsx)("div",{className:" border-b-[length:var(--h1s-tier2-border-width)] border-b-[var(--h1s-tier2-border)] bg-[var(--h1s-tier2-bg)] shadow-[var(--h1s-tier2-shadow)] ","data-standard-tier":"logo-search",children:(0,t.jsxs)("div",{className:"layout-container h1s-tier2-inner px-3 py-[var(--h1s-tier2-padding-y)] xl:px-5",children:[(0,t.jsxs)("div",{className:"h1s-tier2-start",children:[c?(0,t.jsx)("button",{type:"button","aria-label":v("open_menu"),onClick:u,className:"h1s-menu-button",children:(0,t.jsx)(l.HamburgerIcon,{className:"h-5 w-5"})}):null,(0,t.jsx)(n.Link,{href:e.href,"aria-label":o?`${o} - ${v("home")}`:e.alt,className:"h1s-tier2-logo inline-flex min-w-0 shrink-0 items-center",children:(0,t.jsx)(i.default,{src:x,alt:e.alt,width:400,height:180,sizes:"(max-width: 767px) 220px, 280px",quality:100,unoptimized:!0,priority:!0,className:"h-[var(--h1s-logo-h-mobile)] w-auto max-w-full object-contain md:h-[var(--h1s-logo-h-desktop)]"})})]}),(0,t.jsxs)("div",{className:"h1s-tier2-mobile-actions",children:[(0,t.jsx)(g,{languages:r,activeLanguageCode:s,variant:"icon"}),(0,t.jsx)("span",{className:"h1s-mobile-actions-divider","aria-hidden":!0}),(0,t.jsx)("button",{type:"button",onClick:m,className:"h1s-group-sites-button",children:v("group_sites")})]}),(0,t.jsx)("div",{className:"h1s-tier2-search",children:(0,t.jsx)(h.HeaderSearchField,{variant:"standard",inputId:"header-standard-search",className:"h1s-search-field"})}),(0,t.jsxs)("div",{className:"h1s-tier2-actions",children:[(0,t.jsx)(g,{languages:r,activeLanguageCode:s,variant:"full"}),a.length>0?(0,t.jsx)("div",{className:"h1s-utility-actions",children:(0,t.jsx)(p.HeaderUtilityActions,{actions:a,variant:"desktop"})}):null]})]})})}e.s(["StandardLogoSearchBar",()=>v])},541679,e=>{"use strict";var t=e.i(843476),a=e.i(22584);e.i(527967);
252var r=e.i(887300),l=e.i(71527),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(76209),o=e.i(271645),c=e.i(948148),d=e.i(37354);let u="header_one_recent_searches";function m(e){let t=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e});return`${a.routes.searchResult.root}?${t.toString()}`}function h(e,t){let r=new URLSearchParams({[d.HEADER_ONE_SEARCH.inputName]:e??"",tab:t});return`${a.routes.searchResult.root}?${r.toString()}`}function p(e){let t=e.trim();return t?/^https?:\/\//i.test(t)||/^mailto:/i.test(t)||t.startsWith("/")?t:`/${t}`:a.routes.searchResult.root}function g(e,t,a){return`${e}-${a}-${String(t.id)}-${t.url}`}function v(e){for(let t of[e.image,e.image_url,e.thumbnail,e.raw?.image,e.raw?.image_url,e.raw?.thumbnail])if("string"==typeof t&&t.trim().length>0)return t;return null}function x({text:e,query:a}){let r=a.trim();if(!r)return e;let l=e.toLowerCase().indexOf(r.toLowerCase());if(l<0)return e;let i=l+r.length;return(0,t.jsxs)(t.Fragment,{children:[e.slice(0,l),(0,t.jsx)("mark",{className:"h1m-search-match",children:e.slice(l,i)}),e.slice(i)]})}function b({item:e,itemKey:a,query:r,imageFailed:l,onSelect:s,onImageError:o}){var c;let d,u=v(e),m=u&&!l?u:"",h=(c=e.sub_type??e.raw?.sub_type,c?.trim()?c.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()):""),p="string"==typeof(d=e.excerpt??e.description??e.raw?.excerpt??e.raw?.description)?d.trim():"";return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>s(e.title),className:"h1m-suggest-insight-card",children:[(0,t.jsx)("span",{className:"h1m-suggest-insight-media",children:m?(0,t.jsx)(i.default,{src:m,alt:"",width:320,height:180,className:"h1m-suggest-insight-image",loading:"lazy",onError:()=>o(a)}):(0,t.jsx)("span",{className:"h1m-suggest-insight-placeholder","aria-hidden":!0})}),(0,t.jsxs)("span",{className:"h1m-suggest-insight-copy",children:[h?(0,t.jsx)("span",{className:"h1m-suggest-insight-type",children:h}):null,(0,t.jsx)("span",{className:"h1m-suggest-insight-title line-clamp-2",children:(0,t.jsx)(x,{text:e.title,query:r})}),p?(0,t.jsx)("span",{className:"h1m-suggest-insight-excerpt line-clamp-1",children:p}):null]})]})})}function f({variant:e="default",inputId:f="header-two-search",className:w="",autoFocus:y=!1}){let j=(0,c.useTranslations)(),N=(0,s.usePathname)(),_=(0,o.useRef)(null),k=(0,o.useRef)(null),[C,S]=(0,o.useState)(""),[L,I]=(0,o.useState)(!1),[z,A]=(0,o.useState)([]),[q,E]=(0,o.useState)(null),[$,P]=(0,o.useState)([]),[T,M]=(0,o.useState)(!1),[O,F]=(0,o.useState)({}),R=(0,o.useCallback)(()=>{I(!1),S("")},[]),B=(0,o.useCallback)(e=>{let t=e.trim();t&&A(e=>{let a=[t,...e.filter(e=>e!==t)].slice(0,8);return window.localStorage.setItem(u,JSON.stringify(a)),a})},[]),D=(0,o.useCallback)(e=>{B(e),R()},[B,R]);(0,o.useEffect)(()=>{try{let e=window.localStorage.getItem(u);if(!e)return;let t=JSON.parse(e);if(!Array.isArray(t))return;let a=t.filter(e=>"string"==typeof e).map(e=>e.trim()).filter(Boolean).slice(0,8);A(a)}catch{A([])}},[]),(0,o.useEffect)(()=>{R()},[N,R]),(0,o.useEffect)(()=>{function e(e){let t=e.target;!t||_.current?.contains(t)||R()}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[R]),(0,o.useEffect)(()=>{let e=C.trim();if(!e){E(null),P([]),M(!1),F({});return}let t=new AbortController,a=window.setTimeout(async()=>{M(!0);try{let[a,r]=await Promise.all([fetch(`/api/search?result_search=${encodeURIComponent(e)}`,{signal:t.signal}),fetch(`/api/search/suggestions?query=${encodeURIComponent(e)}&limit=4`,{signal:t.signal})]);if(a.ok){let e=await a.json();E(e.ok?e.data??null:null)}else E(null);if(r.ok){let e=await r.json();P(e.ok&&e.data?.items?.length?e.data.items:[])}else P([])}catch{E(null),P([])}finally{t.signal.aborted||M(!1)}},250);return()=>{t.abort(),window.clearTimeout(a)}},[C]);let H=C.trim(),U=H.length>0,G=U?$.length?$.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})):q?.suggestions??[]:d.HEADER_ONE_POPULAR_SEARCH_TERMS.map((e,t)=>({id:`${e}-${t}`,title:e,url:p(m(e))})),W=(q?.categories??[]).map(e=>({...e,url:p(e.url)})),V=(q?.products??[]).map(e=>({...e,url:p(e.url)})),K=(q?.marketInsights??[]).map(e=>({...e,url:p(e.url)})),Y=G.slice(0,4),Q=W.slice(0,4),Z=K.slice(0,6),X=V.slice(0,6),J="standard"===e,ee=J?"border border-[var(--h1s-input-border)]":L?"border-0":"border-[length:var(--header-two-search-border-width)] border-[color:var(--header-two-search-border-color)]",et=J?`w-full min-h-[var(--h1s-input-min-height)] rounded-[var(--h1s-input-radius)] bg-[var(--h1s-input-bg)] ${ee}
253        py-[var(--h1s-input-padding-y)] ps-[var(--h1s-input-padding-start)] text-[length:var(--h1s-input-font-size)] font-[var(--font-weight-normal)] text-[var(--h1s-input-text)]
254        ${C?"pe-[var(--h1s-input-padding-end-with-clear)]":"pe-[var(--h1s-input-padding-end)]"}
255        placeholder:text-[var(--h1s-input-placeholder)] placeholder:font-[var(--font-weight-normal)]
256        outline-none transition-[border-color]
257        focus:border-[var(--h1s-input-focus-ring)] focus:ring-0
258        xl:text-[length:var(--h1s-input-font-size-desktop)]
259        [&::-webkit-search-cancel-button]:appearance-none
260        [&::-webkit-search-decoration]:appearance-none`:`w-full rounded-full bg-[var(--header-two-search-bg)] ${ee}
261        pt-[length:var(--header-two-search-padding-y)]
262        pe-[length:var(--header-two-search-padding-inline-end)]
263        pb-[length:var(--header-two-search-padding-y)]
264        ps-[length:var(--header-two-search-padding-inline-start)]
265        md:text-[length:var(--header-two-font-size-md)]
266        text-[length:var(--header-two-font-size-md-mobile)]
267        text-[var(--header-two-search-text)]
268        placeholder:font-[var(--header-two-font-weight-normal)]
269        placeholder:text-[var(--header-two-search-text-color)]
270        outline-none
271        [&::-webkit-search-cancel-button]:appearance-none
272        [&::-webkit-search-decoration]:appearance-none`,ea=J?"header-standard-popular-search":"header-two-popular-search",er=J?"text-xs font-semibold uppercase tracking-wide text-[var(--h1s-suggest-title-color)]":"text-[length:var(--header-two-search-popular-title-size-mobile)] md:text-[length:var(--header-two-search-popular-title-size-desktop)] font-[var(--header-two-search-popular-title-weight)] text-[var(--header-two-search-popular-title-color)]",el=J?`${er} mb-2`:`${er} mb-1 md:mb-2`,ei="h1m-suggest-text-link",en="h1m-suggest-view-all",es="h1m-suggest-skeleton-line",eo="h1m-suggest-desktop-only",ec=Y.length>0||Q.length>0||X.length>0||Z.length>0;return(0,t.jsx)("div",{ref:_,className:`relative z-[var(--header-two-search-popular-z)] min-w-0 w-full flex-1 ${w}`,onKeyDown:e=>{if("Escape"===e.key){R(),k.current?.focus();return}if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;let t=Array.from(_.current?.querySelectorAll(".h1m-search-dropdown a[href]")??[]).filter(e=>null!==e.offsetParent);if(0===t.length)return;if(e.target===k.current){e.preventDefault(),t["ArrowDown"===e.key?0:t.length-1]?.focus();return}let a=t.indexOf(e.target);if(a<0)return;e.preventDefault();let r="ArrowDown"===e.key?1:-1;t[(a+r+t.length)%t.length]?.focus()},children:(0,t.jsxs)("form",{className:"relative w-full",action:a.routes.searchResult.result(C??""),method:"get",onSubmit:()=>{B(C),I(!1)},children:[(0,t.jsx)("input",{type:"hidden",name:d.HEADER_ONE_SEARCH.industryHiddenName}),(0,t.jsx)("input",{ref:k,className:et,type:"search",id:f,name:d.HEADER_ONE_SEARCH.inputName,autoFocus:y,autoComplete:"off",placeholder:j("header_search_placeholder"),value:C,onFocus:()=>I(!0),onChange:e=>{S(e.target.value),I(!0)},role:"combobox","aria-autocomplete":"list","aria-expanded":L,"aria-busy":T,"aria-controls":L?ea:void 0}),C?(0,t.jsx)("button",{type:"button",className:J?"absolute end-[var(--h1s-search-clear-inset-end)] top-1/2 -translate-y-1/2 border-0 bg-transparent p-1 text-[var(--h1s-input-placeholder)] hover:text-[var(--h1s-input-text)]":"absolute end-[length:var(--header-two-search-clear-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer border-0 bg-transparent p-[var(--header-two-top-hamburger-padding)]","aria-label":j("clear_search"),onClick:()=>{S(""),I(!0)},children:(0,t.jsx)(r.ClearIcon,{className:J?"h-4 w-4 shrink-0":"text-[var(--header-two-search-clear-text-color)] w-6 h-6 shrink-0"})}):null,(0,t.jsx)("button",{className:J?"h1s-search-submit absolute end-[var(--h1s-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 p-0":"absolute end-[length:var(--header-two-search-submit-inset-end)] top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center border-0 bg-transparent p-[length:var(--header-two-search-icon-button-padding)]",type:"submit","aria-label":j("search"),children:(0,t.jsx)(l.SearchIconNew,{className:J?"h-[var(--h1s-search-submit-icon-size)] w-[var(--h1s-search-submit-icon-size)] shrink-0":"text-[var(--header-two-top-color)] w-5 h-5 shrink-0"})}),L?(0,t.jsx)("div",{id:ea,className:`${J?"h1m-search-dropdown absolute w-full mt-2 rounded-[var(--h1s-suggest-radius)] border border-[var(--h1s-suggest-border)] bg-[var(--h1s-suggest-bg)] shadow-[var(--h1s-suggest-shadow)]":"absolute w-full mt-[length:var(--header-two-search-popular-mt)] rounded-[length:var(--header-two-search-popular-radius)] bg-[var(--header-two-search-popular-bg)] px-[length:var(--header-two-search-popular-padding-x)] py-[length:var(--header-two-search-popular-padding-y)] shadow-[var(--header-two-search-popular-shadow)]"} header-search-suggest-panel`,role:"region","aria-label":j("search_suggestions"),children:U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1m-suggest-layout",children:[(0,t.jsxs)("div",{className:"h1m-suggest-layout-column h1m-suggest-layout-column--left",children:[T||Y.length>0?(0,t.jsxs)("section",{className:`${eo} h1m-suggest-suggestions`,children:[(0,t.jsx)("h6",{className:el,children:j("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:T?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-suggestion-${a}`)):Y.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:ei,children:[(0,t.jsx)(l.SearchIconNew,{"aria-hidden":!0}),(0,t.jsx)(x,{text:e.title,query:H})]})},g("suggestion-md",e,a)))})]}):null,T||Z.length>0?(0,t.jsxs)("section",{className:`${eo} h1m-suggest-market`,children:[(0,t.jsxs)("div",{className:"h1m-suggest-section-header",children:[(0,t.jsx)("h6",{className:er,children:j("market_insights")}
272),(0,t.jsx)(n.Link,{href:h(H,"marketInsight"),onClick:R,className:en,children:j("view_all_results")})]}),(0,t.jsx)("ul",{className:"h1m-suggest-insight-grid m-0 list-none p-0",children:T?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-market-${a}`)):Z.map((e,a)=>{let r=g("market-md",e,a);return(0,t.jsx)(b,{item:e,itemKey:r,query:H,imageFailed:!!O[r],onSelect:D,onImageError:e=>F(t=>({...t,[e]:!0}))},r)})})]}):null]}),(0,t.jsxs)("div",{className:"h1m-suggest-layout-column h1m-suggest-layout-column--right",children:[T||Y.length>0?(0,t.jsxs)("section",{className:"h1m-suggest-mobile-only h1m-suggest-suggestions",children:[(0,t.jsx)("h6",{className:el,children:j("suggestions")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:T?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-suggestion-${a}`)):Y.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:ei,children:[(0,t.jsx)(l.SearchIconNew,{"aria-hidden":!0}),(0,t.jsx)(x,{text:e.title,query:H})]})},g("suggestion-sm",e,a)))})]}):null,T||Q.length>0?(0,t.jsxs)("section",{className:"h1m-suggest-categories",children:[(0,t.jsx)("h6",{className:el,children:j("categories")}),(0,t.jsx)("ul",{className:"m-0 list-none space-y-0.5 p-0 pb-3",children:T?Array.from({length:4}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-category-${a}`)):Q.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:"h1m-suggest-category-link",children:[(0,t.jsx)("span",{className:"min-w-0 truncate",children:(0,t.jsx)(x,{text:e.title,query:H})}),"number"==typeof e.count?(0,t.jsx)("span",{className:"h1m-suggest-count",children:J?e.count:`(${e.count})`}):null]})},g("category",e,a)))})]}):null,T||X.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h1m-suggest-products-header",children:[(0,t.jsx)("h6",{className:er,children:j("all_products")}),(0,t.jsx)(n.Link,{href:h(H,"productResult"),onClick:R,className:en,children:j("view_all_results")})]}),(0,t.jsx)("ul",{className:"h1m-suggest-product-grid m-0 list-none p-0",children:T?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-start gap-3 px-3 py-2",children:[(0,t.jsx)("div",{className:"h1m-suggest-skeleton-thumb"}),(0,t.jsx)("div",{className:`flex-1 ${es}`})]})},`skeleton-product-${a}`)):X.map((e,a)=>{let r=g("product",e,a),l=v(e),s=[{label:"CAS",value:e.cas_number??e.raw?.cas_number},{label:"HS",value:e.hs_code??e.raw?.hs_code},{label:"SKU",value:e.sku??e.raw?.sku}].filter(e=>"string"==typeof e.value&&e.value.trim().length>0).slice(0,2),o=!l||O[r]?"":l;return(0,t.jsx)("li",{children:(0,t.jsxs)(n.Link,{href:e.url,onClick:()=>D(e.title),className:"h1m-suggest-product-card",children:[o?(0,t.jsx)(i.default,{src:o,alt:e.title,width:148,height:148,className:"h1m-suggest-product-thumb",loading:"lazy",onError:()=>F(e=>({...e,[r]:!0}))}):(0,t.jsx)("div",{className:"h1m-suggest-product-thumb-placeholder"}),(0,t.jsxs)("span",{className:"h1m-suggest-product-copy",children:[(0,t.jsx)("span",{className:"h1m-suggest-product-title line-clamp-2",children:(0,t.jsx)(x,{text:e.title,query:H})}),s.length>0?(0,t.jsx)("span",{className:"h1m-suggest-product-meta",children:s.map(e=>(0,t.jsxs)("span",{children:[e.label,": ",e.value]},`${r}-${e.label}`))}):null]})]})},r)})})]}):null,T||Z.length>0?(0,t.jsxs)("section",{className:"h1m-suggest-market-mobile",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,t.jsx)("h6",{className:er,children:j("market_insights")}),(0,t.jsx)(n.Link,{href:h(H,"marketInsight"),onClick:R,className:en,children:j("view_all_results")})]}),(0,t.jsx)("ul",{className:"h1m-suggest-insight-grid m-0 list-none p-0",children:T?Array.from({length:6}).map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)("div",{className:es})})},`skeleton-market-mobile-${a}`)):Z.map((e,a)=>{let r=g("market-sm",e,a);return(0,t.jsx)(b,{item:e,itemKey:r,query:H,imageFailed:!!O[r],onSelect:D,onImageError:e=>F(t=>({...t,[e]:!0}))},r)})})]}):null]})]}),T||ec?null:(0,t.jsx)("p",{className:"h1m-suggest-empty",children:j("no_product_results")}),!T&&ec?(0,t.jsx)("div",{className:"h1m-suggest-footer",children:(0,t.jsxs)(n.Link,{href:m(H),onClick:()=>D(H),className:"h1m-suggest-footer-link",children:[(0,t.jsx)("span",{children:j("view_all_results")}),(0,t.jsx)("span",{className:"h1m-suggest-footer-query",children:`"${H}"`})]})}):null]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("h6",{className:el,children:j("recent_searches")}),z.length>0?J?(0,t.jsx)("ul",{className:"m-0 flex list-none flex-wrap gap-2 p-0",children:z.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>D(e),className:"inline-flex max-w-full min-w-0 overflow-hidden text-ellipsis whitespace-nowrap rounded-full border border-[var(--h1s-suggest-chip-border)] bg-[var(--h1s-suggest-chip-bg)] px-3 py-1.5 text-sm font-medium text-[var(--h1s-suggest-item-color)] transition-colors hover:border-[var(--h1s-suggest-accent)] hover:bg-[var(--h1s-suggest-item-hover-bg)] hover:text-[var(--h1s-suggest-item-hover-color)]",children:e})},e))}):(0,t.jsx)("ul",{className:"m-0 list-none p-0",children:z.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.Link,{href:m(e),onClick:()=>D(e),className:`${ei} max-w-[380px]`,children:e})},e))}):(0,t.jsx)("p",{className:J?"rounded-[var(--h1s-suggest-item-radius)] bg-[var(--h1s-suggest-chip-bg)] px-3 py-2 text-sm text-[var(--h1s-suggest-item-color)]":"rounded-md p-[length:var(--header-two-search-popular-item-padding)] text-[length:var(--header-two-search-popular-item-font-size-mobile)] md:text-[length:var(--header-two-search-popular-item-font-size-desktop)] font-[var(--header-two-search-popular-item-font-we
272ight)] leading-[var(--header-two-search-popular-item-font-line-height-mobile)] md:leading-[var(--header-two-search-popular-item-font-line-height-desktop)] text-[var(--header-two-search-popular-item-color)]",children:j("no_recent_searches")})]})}):null]})})}e.s(["HeaderSearchField",()=>f])},470152,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(887300),l=e.i(419037),i=e.i(45698),n=e.i(71527),s=e.i(657688);e.i(79951);var o=e.i(902936),c=e.i(76209),d=e.i(271645),u=e.i(861745),m=e.i(948148),h=e.i(24014),p=e.i(420268),g=e.i(541679),v=e.i(56106);function x({languages:e,activeLanguageCode:r,compact:i=!1}){let n=(0,m.useTranslations)(),o=(0,u.useLocale)(),g=(0,c.usePathname)(),v=(0,d.useRef)(null),[x,b]=(0,d.useState)(!1),[f,w]=(0,d.useState)(null),y=(0,h.resolveActiveLocaleCode)(r)||o,j=(0,p.normalizeUiLocale)(y),N=e.find(e=>e.code.trim().toLowerCase()===y.trim().toLowerCase()||(0,p.normalizeUiLocale)(e.code)===j)??e[0];(0,d.useEffect)(()=>{if(!x)return;let e=e=>{v.current?.contains(e.target)||b(!1)},t=e=>{"Escape"===e.key&&b(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[x]);let _=async e=>{let t=e.trim();t&&(w(t),await (0,h.setPreferredLocaleAfterVerify)(t,{currentCode:y,onSame:()=>{w(null),b(!1)},onError:()=>w(null),onApplied:()=>{b(!1);let e=(0,p.normalizeUiLocale)(t);(0,h.resolveLocalizedPathForLanguage)(g,e,y).then(e=>{window.location.assign(`${e}${window.location.search}${window.location.hash}`)})}}),w(null))};return(0,t.jsxs)("div",{className:"h1m-language",ref:v,children:[(0,t.jsxs)("button",{type:"button",className:`h1m-language-trigger${i?" h1m-language-trigger--compact":""}`,"aria-label":n("language"),"aria-expanded":x,"aria-haspopup":"listbox",onClick:()=>b(e=>!e),children:[N?.flagSrc?(0,t.jsx)("span",{className:"h1m-language-flag",children:(0,t.jsx)(s.default,{src:N.flagSrc,alt:"",width:18,height:12})}):(0,t.jsx)(l.GlobeIcon,{className:"h-4 w-4","aria-hidden":!0}),i?null:(0,t.jsx)("span",{children:N?.name??n("language")}),(0,t.jsx)(a.ArrowIcon,{className:"h1m-chevron","aria-hidden":!0})]}),x?(0,t.jsx)("div",{className:"h1m-language-menu",role:"listbox","aria-label":n("language"),children:e.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===y.toLowerCase()||(0,p.normalizeUiLocale)(a)===j;return(0,t.jsxs)("button",{type:"button",className:"h1m-language-option",disabled:f?.toLowerCase()===a.toLowerCase(),"aria-selected":r,role:"option",onClick:()=>_(e.code),children:[e.flagSrc?(0,t.jsx)("span",{className:"h1m-language-flag",children:(0,t.jsx)(s.default,{src:e.flagSrc,alt:"",width:18,height:12})}):null,(0,t.jsx)("span",{children:e.name})]},e.code)})}):null]})}function b({announcement:e,languages:a,activeLanguageCode:r,onOpenGroupSites:i}){let n=(0,m.useTranslations)(),s=(0,d.useRef)(null),[o,c]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{if(!o)return;let e=e=>{s.current?.contains(e.target)||c(!1)},t=e=>{"Escape"===e.key&&c(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[o]),(0,t.jsx)("div",{className:"h1m-utility-bar",children:(0,t.jsxs)("div",{className:"layout-container h1m-utility-inner",children:[e?(0,t.jsxs)("div",{className:"h1m-announcement-shell",ref:s,children:[(0,t.jsx)("button",{type:"button",className:"h1m-announcement",title:e,"aria-expanded":o,"aria-controls":"h1m-announcement-full-text",onClick:()=>c(e=>!e),children:e}),o?(0,t.jsx)("div",{id:"h1m-announcement-full-text",className:"h1m-announcement-popover",role:"tooltip",children:e}):null]}):null,(0,t.jsxs)("div",{className:"h1m-utility-nav",children:[(0,t.jsxs)("button",{type:"button",className:"h1m-group-sites-trigger",onClick:i,children:[(0,t.jsx)(l.GlobeIcon,{className:"h-4 w-4","aria-hidden":!0}),(0,t.jsx)("span",{children:n("group_sites")})]}),a.length>0?(0,t.jsx)(x,{languages:a,activeLanguageCode:r}):null]})]})})}function f({logo:e,websiteName:a}){let r=(0,m.useTranslations)();return(0,t.jsx)(o.Link,{href:e.href,className:"h1m-logo","aria-label":a?`${a} - ${r("home")}`:e.alt,children:(0,t.jsx)(s.default,{src:e.darkSrc??e.src,alt:e.alt,width:190,height:64,sizes:"(max-width: 1279px) 148px, 190px",priority:!0})})}function w({actions:e,onOpenSearch:a}){let r=(0,m.useTranslations)();return(0,t.jsxs)("div",{className:"h1m-actions",children:[(0,t.jsx)("button",{type:"button",className:"h1m-search-trigger","data-modern-search-trigger":!0,onClick:a,"aria-label":r("search"),children:(0,t.jsx)(n.SearchIconNew,{"aria-hidden":!0})}),(0,t.jsx)(v.HeaderUtilityActions,{actions:e,variant:"desktop"})]})}
272function y({logo:e,websiteName:a,visibleAtDesktop:r,onOpenMenu:l,onOpenSearch:s}){let o=(0,m.useTranslations)();return(0,t.jsx)("div",{className:`h1m-mobile-bar${r?" h1m-mobile-bar--desktop-fallback":""}`,children:(0,t.jsxs)("div",{className:"layout-container h1m-mobile-inner",children:[(0,t.jsx)("button",{type:"button",className:"h1m-icon-button",onClick:l,"aria-label":o("open_menu"),children:(0,t.jsx)(i.HamburgerIcon,{"aria-hidden":!0})}),(0,t.jsx)(f,{logo:e,websiteName:a}),(0,t.jsx)("div",{className:"h1m-mobile-actions",children:(0,t.jsx)("button",{type:"button",className:"h1m-icon-button","data-modern-search-trigger":!0,onClick:s,"aria-label":o("search"),children:(0,t.jsx)(n.SearchIconNew,{"aria-hidden":!0})})})]})})}function j({onClose:e}){let a=(0,m.useTranslations)(),l=(0,d.useRef)(null);return(0,d.useEffect)(()=>{let t=t=>{!(t.target instanceof Element&&t.target.closest("[data-modern-search-trigger]"))&&(l.current?.contains(t.target)||e())};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[e]),(0,t.jsx)("div",{ref:l,className:"h1m-search-panel",role:"dialog","aria-label":a("search"),onBlurCapture:()=>{window.setTimeout(()=>{let t=document.activeElement;!(t instanceof Element&&t.closest("[data-modern-search-trigger]"))&&(l.current?.contains(t)||e())},0)},children:(0,t.jsxs)("div",{className:"layout-container h1m-search-panel-inner",children:[(0,t.jsx)(g.HeaderSearchField,{variant:"standard",inputId:"modern-header-search",className:"h1m-search-field",autoFocus:!0}),(0,t.jsx)("button",{type:"button",className:"h1m-search-close",onClick:e,"aria-label":a("close_search"),children:(0,t.jsx)(r.ClearIcon,{"aria-hidden":!0})})]})})}e.s(["ModernHeaderActions",()=>w,"ModernLogo",()=>f,"ModernMobileBar",()=>y,"ModernSearchPanel",()=>j,"ModernUtilityBar",()=>b])},20648,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(527967);var r=e.i(830167),l=e.i(271645);function i({isOpen:e,onClose:i}){let[n,s]=(0,l.useState)(""),[o,c]=(0,l.useState)(""),[d,u]=(0,l.useState)(""),[m,h]=(0,l.useState)(""),[p,g]=(0,l.useState)(""),[v,x]=(0,l.useState)(""),[b,f]=(0,l.useState)(""),[w,y]=(0,l.useState)(""),[j,N]=(0,l.useState)(""),[_,k]=(0,l.useState)([{language:"",spoken:"",written:""}]),[C,S]=(0,l.useState)([{positionTitle:"",employerName:"",startDate:"",endDate:"",currentlyWorkHere:!1,responsibilities:"",city:"",country:""}]),[L,I]=(0,l.useState)([{institute:"",major:"",degree:"",startDate:"",endDate:"",present:!1,city:"",country:"",gpa:"",scale:""}]),[z,A]=(0,l.useState)(""),[q,E]=(0,l.useState)({}),$=(0,l.useRef)(null);if(!e)return null;let P="mt-[var(--vacancy-application-fields-gap)] h-[40px] w-full rounded-[var(--vacancy-application-input-radius)] [border-width:var(--vacancy-application-input-border-width)] border-[var(--vacancy-application-input-border)] bg-transparent px-[var(--vacancy-application-input-padding-x)] py-[var(--vacancy-application-input-padding-y)] text-start text-[16px] placeholder:text-[var(--vacancy-application-input-placeholder)] outline-none focus:border-[var(--vacancy-application-input-focus-border)]",T=e=>`mt-[var(--vacancy-application-fields-gap)] h-[40px] w-full rounded-[var(--vacancy-application-input-radius)] [border-width:var(--vacancy-application-input-border-width)] border-[var(--vacancy-application-input-border)] bg-transparent text-start text-[16px] placeholder:text-[var(--vacancy-application-input-placeholder)] outline-none focus:border-[var(--vacancy-application-input-focus-border)] appearance-none p-[6px] ${e?"text-[var(--vacancy-application-label-color)]":"text-[var(--vacancy-application-input-placeholder)]"}`;return(0,t.jsxs)("div",{className:"fixed inset-0 z-[101] m-2 overflow-x-hidden overflow-y-auto",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0,onClick:i}),(0,t.jsxs)("div",{className:"relative z-[101] mx-auto my-4 w-full max-w-[800px] rounded-[20px] bg-[var(--vacancy-application-modal-bg)]",role:"dialog","aria-modal":!0,"aria-labelledby":"job-application-title",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-[var(--gap-10)] px-4 py-4",children:[(0,t.jsx)("h3",{id:"job-application-title",className:"text-[32px] leading-[1.5] font-bold text-[var(--vacancy-application-modal-title-color)] md:text-[44px]",children:"Application Details"}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":"Close",className:"shrink-0 cursor-pointer rounded-md p-1",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14})})]}),(0,t.jsxs)("div",{className:"px-4 py-4",children:[(0,t.jsx)("p",{className:"text-start text-[18px] leading-[32px] font-normal text-[var(--vacancy-listing-meta-value-color)]",children:"Filling an application implies acceptance of the General conditions. No data will be retained until you submit your application. Fields with an asterix are mandatory."}),(0,t.jsxs)("ul",{className:"mt-4 m-0 flex justify-between p-0",children:[(0,t.jsx)("li",{className:"relative inline-block w-[20%] list-none text-center text-[var(--vacancy-application-steps-text-color)] before:relative before:z-[2] before:mx-auto before:mb-[3px] before:block before:h-[40px] before:w-[40p
272x] before:rounded-full before:border-2 before:border-[var(--vacancy-application-steps-circle-border)] before:bg-[var(--vacancy-application-steps-circle-bg)] before:bg-[url('/careers/job-application-form-check.png')] before:bg-[length:60%] before:bg-center before:bg-no-repeat before:content-[''] after:absolute after:top-[15px] after:start-[-135%] after:z-0 after:h-[10px] after:w-[180%] after:bg-[var(--vacancy-application-steps-line-bg)] after:content-[''] first:after:content-none",children:"Registration"}),(0,t.jsx)("li",{className:"relative inline-block w-[20%] list-none text-center text-[var(--vacancy-application-steps-text-color)] before:relative before:z-[2] before:mx-auto before:mb-[3px] before:block before:h-[40px] before:w-[40px] before:rounded-full before:border-2 before:border-[var(--vacancy-application-steps-circle-border)] before:bg-[var(--vacancy-application-steps-circle-bg)] before:bg-[url('/careers/job-application-form-check.png')] before:bg-[length:60%] before:bg-center before:bg-no-repeat before:content-[''] after:absolute after:top-[15px] after:start-[-135%] after:z-0 after:h-[10px] after:w-[180%] after:bg-[var(--vacancy-application-steps-line-bg)] after:content-[''] first:after:content-none",children:"File Upload"}),(0,t.jsx)("li",{className:"relative inline-block w-[20%] list-none text-center text-[var(--vacancy-application-steps-text-color)] before:relative before:z-[2] before:mx-auto before:mb-[3px] before:block before:h-[40px] before:w-[40px] before:rounded-full before:border-2 before:border-[var(--vacancy-application-steps-circle-border)] before:bg-[var(--vacancy-application-steps-circle-bg)] before:bg-[url('/careers/job-application-form-check.png')] before:bg-[length:60%] before:bg-center before:bg-no-repeat before:content-[''] after:absolute after:top-[15px] after:start-[-135%] after:z-0 after:h-[10px] after:w-[180%] after:bg-[var(--vacancy-application-steps-line-bg)] after:content-[''] first:after:content-none",children:"T & C"})]}),(0,t.jsxs)("form",{className:"m-2 mt-[var(--vacancy-application-about-margin-top)]",onSubmit:e=>e.preventDefault(),children:[(0,t.jsx)("h4",{className:"mb-[8px] text-[26px] font-[var(--vacancy-application-about-title-weight)] text-[var(--vacancy-application-about-title-color)] md:text-[length:var(--vacancy-application-about-title-size)]",children:"About Me"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--vacancy-application-fields-gap)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Profile picture",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>$.current?.click(),className:"w-full mt-[var(--vacancy-application-fields-gap)] flex h-[150px] max-w-[100px] cursor-pointer flex-col items-center justify-center rounded-[var(--vacancy-application-profile-box-radius)] border border-[var(--vacancy-application-profile-box-border)] text-center text-[var(--vacancy-application-profile-box-color)]",children:z?(0,t.jsx)(a.default,{src:z,alt:"Profile preview",width:100,height:150,className:"h-full w-full rounded-[var(--vacancy-application-profile-box-radius)] object-cover",unoptimized:!0}):(0,t.jsx)("span",{className:"text-[32px] leading-none",children:"+"})}),(0,t.jsx)("input",{ref:$,type:"file",accept:"image/*",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&(A(URL.createObjectURL(t)),E(e=>({...e,profilePicture:""})),e.target.value="")}}),q.profilePicture?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.profilePicture}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Full Name",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:n,placeholder:"Enter full name",onChange:e=>{s(e.target.value),E(e=>({...e,fullName:""}))},className:P}),q.fullName?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.fullName}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Gender",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:o,onChange:e=>{c(e.target.value),E(e=>({...e,gender:""}))},className:T(o),children:[(0,t.jsx)("option",{value:"",children:"Select Gender"}),(0,t.jsx)("option",{value:"male",children:"Male"}),(0,t.jsx)("option",{value:"female",children:"Female"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]}),q.gender?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.gender}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Date of Birth",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{type:"date",placeholder:"Select date of birth",value:d,onChange:e=>{u(e.target.value),E(e=>({...e,dateOfBirth:""}))},className:P}),q.dateOfBirth?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.dateOfBirth}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Email",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{type:"email",placeholder:"Enter email",value:m,onChange:e=>{h(e.target.value),E(e=>({...e,email:""}))},className:P}),q.email?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.email}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Phone Number",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:p,placeholder:"Enter phone number",onChange:e=>{g(e.target.value),E(e=>({...e,phoneNumber:""}))},className:P}),q.phoneNumber?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.phoneNumber}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Current Address",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:v,placeholder:"Enter current address",onChange:e=>{x(e.target.value),E(e=>({...e,currentAddress:""}))},className:P}),q.currentAddress?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.currentAddress}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["City",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:b,placeholder:"Enter city",onChange:e=>{f(e.target.value),E(e=>({...e,city:""}))},className:P}),q.city?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.city}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Country",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:w,onChange:e=>{y(e.target.value),E(e=>({...e,country:""}))},className:T(w),children:[(0,t.jsx)("option",{value:"",children:"Select Country"}),(0,t.jsx)("option",{value:"indonesia",children:"Indonesia"}),(0,t.jsx)("option",{value:"sri-lanka",children:"Sri Lanka"}),(0,t.jsx)("option",{value:"india",children:"India"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]}),q.country?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.country}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Province",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:j,placeholder:"Enter province",onChange:e=>{N(e.target.value),E(e=>({...e,province:""}))},className:P}),q.province?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q.province}):null]}),_.map((e,a)=>(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[10px] md:grid-cols-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Language",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:e.language,onChange:e=>{let t=e.target.value;
272k(e=>e.map((e,r)=>r===a?{...e,language:t}:e)),E(e=>({...e,[`language_${a}`]:""}))},className:T(e.language),children:[(0,t.jsx)("option",{value:"",children:"Select Language"}),(0,t.jsx)("option",{value:"english",children:"English"}),(0,t.jsx)("option",{value:"bahasa",children:"Bahasa"}),(0,t.jsx)("option",{value:"hindi",children:"Hindi"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]}),q[`language_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`language_${a}`]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Spoken",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:e.spoken,onChange:e=>{let t=e.target.value;k(e=>e.map((e,r)=>r===a?{...e,spoken:t}:e)),E(e=>({...e,[`spoken_${a}`]:""}))},className:T(e.spoken),children:[(0,t.jsx)("option",{value:"",children:"Select Spoken Level"}),(0,t.jsx)("option",{value:"basic",children:"Basic"}),(0,t.jsx)("option",{value:"intermediate",children:"Intermediate"}),(0,t.jsx)("option",{value:"fluent",children:"Fluent"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]}),q[`spoken_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`spoken_${a}`]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Written",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative mt-[var(--vacancy-application-fields-gap)]",children:[(0,t.jsxs)("select",{value:e.written,onChange:e=>{let t=e.target.value;k(e=>e.map((e,r)=>r===a?{...e,written:t}:e)),E(e=>({...e,[`written_${a}`]:""}))},className:T(e.written),children:[(0,t.jsx)("option",{value:"",children:"Select Written Level"}),(0,t.jsx)("option",{value:"basic",children:"Basic"}),(0,t.jsx)("option",{value:"intermediate",children:"Intermediate"}),(0,t.jsx)("option",{value:"fluent",children:"Fluent"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]}),q[`written_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`written_${a}`]}):null]})]},`language-row-${a}`)),(0,t.jsxs)("div",{className:"flex items-center gap-[10px]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>k(e=>[...e,{language:"",spoken:"",written:""}]),className:"cursor-pointer rounded-[20px] border border-transparent bg-[var(--vacancy-application-add-remove-bg)] px-[0.75rem] py-[0.375rem] text-[1rem] leading-[1.5] font-normal text-[var(--vacancy-application-add-remove-color)] transition-colors hover:border-[var(--vacancy-application-add-remove-hover-border)] hover:bg-[var(--vacancy-application-add-remove-hover-bg)] hover:text-[var(--vacancy-application-add-remove-hover-color)]",children:"+ Add New"}),_.length>1?(0,t.jsx)("button",{type:"button",onClick:()=>k(e=>e.slice(0,e.length-1)),className:"cursor-pointer rounded-[20px] border border-transparent bg-[var(--vacancy-application-add-remove-bg)] px-[0.75rem] py-[0.375rem] text-[1rem] leading-[1.5] font-normal text-[var(--vacancy-application-add-remove-color)] transition-colors hover:border-[var(--vacancy-application-add-remove-hover-border)] hover:bg-[var(--vacancy-application-add-remove-hover-bg)] hover:text-[var(--vacancy-application-add-remove-hover-color)]",children:"- Remove"}):null]}),(0,t.jsxs)("div",{className:"mt-[var(--vacancy-application-about-margin-top)]",children:[(0,t.jsx)("h4",{className:"mb-[8px] text-[26px] font-[var(--vacancy-application-about-title-weight)] text-[var(--vacancy-application-about-title-color)] md:text-[length:var(--vacancy-application-about-title-size)]",children:"Education"}),L.map((e,a)=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--vacancy-application-fields-gap)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Institute/University",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:e.institute,placeholder:"Enter institute/university",onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,institute:t}:e)),E(e=>({...e,[`education_institute_${a}`]:""}))},className:P}),q[`education_institute_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_institute_${a}`]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Major",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:e.major,placeholder:"Enter major",onCh
272ange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,major:t}:e)),E(e=>({...e,[`education_major_${a}`]:""}))},className:P}),q[`education_major_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_major_${a}`]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Degree",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:e.degree,onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,degree:t}:e)),E(e=>({...e,[`education_degree_${a}`]:""}))},className:T(e.degree),children:[(0,t.jsx)("option",{value:"",children:"Select Degree"}),(0,t.jsx)("option",{value:"bachelor",children:"Bachelor"}),(0,t.jsx)("option",{value:"master",children:"Master"}),(0,t.jsx)("option",{value:"doctorate",children:"Doctorate"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]}),q[`education_degree_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_degree_${a}`]}):null]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[10px] md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Start Date",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{type:"date",value:e.startDate,onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,startDate:t}:e)),E(e=>({...e,[`education_startDate_${a}`]:""}))},className:P}),q[`education_startDate_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_startDate_${a}`]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["End Date",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{type:"date",value:e.endDate,disabled:e.present,onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,endDate:t}:e)),E(e=>({...e,[`education_endDate_${a}`]:""}))},className:`${P} disabled:bg-[#e9ecef] disabled:opacity-100`}),q[`education_endDate_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_endDate_${a}`]}):null]})]}),(0,t.jsx)("div",{children:(0,t.jsxs)("label",{className:"inline-flex items-center gap-2 text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:[(0,t.jsx)("input",{type:"checkbox",checked:e.present,className:"h-[20px] w-[20px]",onChange:e=>{let t=e.target.checked;I(e=>e.map((e,r)=>r===a?{...e,present:t,endDate:t?"":e.endDate}:e)),t&&E(e=>({...e,[`education_endDate_${a}`]:""}))}}),"Present"]})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["City",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:e.city,placeholder:"Enter city",onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,city:t}:e)),E(e=>({...e,[`education_city_${a}`]:""}))},className:P}),q[`education_city_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_city_${a}`]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["Country",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:e.country,onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,country:t}:e)),E(e=>({...e,[`education_country_${a}`]:""}))},className:T(e.country),children:[(0,t.jsx)("option",{value:"",children:"Select Country"}),(0,t.jsx)("option",{value:"indonesia",children:"Indonesia"}),(0,t.jsx)("option",{value:"sri-lanka",children:"Sri Lanka"}),(0,t.jsx)("option",{value:"india",children:"India"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]}),q[`education_country_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_country_${a}`]}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:["GPA",(0,t.jsx)("span",{className:"text-[var(--vacancy-application-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"mt-[var(--vacancy-application-fields-gap)] grid grid-cols-[1fr_auto_1fr] items-center gap-[10px]",children:[(0,t.jsx)("input",{value:e.gpa,placeholder:"GPA",onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,gpa:t}:e)),E(e=>({...e,[`education_gpa_${a}`]:""}))},className:"h-[40px] w-full rounded-[var(--vacancy-application-input-radius)] [border-width:var(--vacancy-application-input-border-width)] border-[var(--vacancy-application-input-border)] bg-transparent px-[var(--vacancy-application-input-padding-x)] py-[var(--vacancy-application-input-padding-y)] text-[16px] placeholder:text-[var(--vacancy-application-input-placeholder)] outline-none focus:border-[var(--vacancy-application-input-focus-border)]"}),(0,t.jsx)("span",{className:"text-[var(--vacancy-application-label-color)]",children:"of"}),(0,t.jsx)("input",{value:e.scale,placeholder:"Scale",onChange:e=>{let t=e.target.value;I(e=>e.map((e,r)=>r===a?{...e,scale:t}:e)),E(e=>({...e,[`education_scale_${a}`]:""}))},className:"h-[40px] w-full rounded-[var(--vacancy-application-input-radius)] [border-width:var(--vacancy-application-input-border-width)] border-[var(--vacancy-application-input-border)] bg-transparent px-[var(--vacancy-application-input-padding-x)] py-[var(--vacancy-application-input-padding-y)] text-[16px] placeholder:text-[var(--vacancy-application-input-placeholder)] outline-none focus:border-[var(--vacancy-application-input-focus-border)]"})]}),q[`education_gpa_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_gpa_${a}`]}):null,q[`education_scale_${a}`]?(0,t.jsx)("p",{className:"mt-2 text-red-500",children:q[`education_scale_${a}`]}):null]})]}),(0,t.jsx)("hr",{className:"my-4 h-px border-0 bg-current opacity-25"})]},`education-row-${a}`)),(0,t.jsxs)("div",{className:"mt-[var(--vacancy-application-fields-gap)] flex items-center gap-[10px]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>I(e=>[...e,{institute:"",major:"",degree:"",startDate:"",endDate:"",present:!1,city:"",country:"",gpa:"",scale:""}]),className:"cursor-pointer rounded-[20px] border border-transparent bg-[var(--vacancy-application-add-remove-bg)] px-[0.75rem] py-[0.375rem] text-[1rem] leading-[1.5] font-normal text-[var(--vacancy-application-add-remove-color)] transition-colors hover:border-[var(--vacancy-application-add-remove-hover-border)] hover:bg-[var(--vacancy-application-add-remove-hover-bg)] hover:text-[var(--vacancy-application-add-remove-hover-color)]",children:"+ Add New"}),L.length>1?(0,t.jsx)("button",{type:"button",onClick:()=>I(e=>e.slice(0,e.length-1)),className:"cursor-pointer rounded-[20px] border border-transparent bg-[var(--vacancy-application-add-remove-bg)] px-[0.75rem] py-[0.375rem] text-[1rem] leading-[1.5] font-normal text-[var(--vacancy-application-add-remove-color)] transition-colors hover:border-[var(--vacancy-application-add-remove-hover-border)] hover:bg-[var(--vacancy-application-add-remove-hover-bg)] hover:text-[var(--vacancy-application-add-remove-hover-color)]",children:"- Remove"}):null]})]}),(0,t.jsxs)("div",{className:"mt-[var(--vacancy-application-about-margin-top)]",children:[(0,t.jsx)("h4",{className:"mb-[8px] text-[26px] font-[var(--vacancy-application-about-title-weight)] text-[var(--vacancy-application-about-title-color)] md:text-[length:var(--vacancy-application-about-title-size)]",children:"Experience"}),C.map((e,a)=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--vacancy-application-fields-gap)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:"Position Title"}),(0,t.jsx)("input",{value:e.positionTitle,placeholder:"Enter position title",onCh
272ange:e=>{let t=e.target.value;S(e=>e.map((e,r)=>r===a?{...e,positionTitle:t}:e))},className:P})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:"Employer Name"}),(0,t.jsx)("input",{value:e.employerName,placeholder:"Enter employer name",onChange:e=>{let t=e.target.value;S(e=>e.map((e,r)=>r===a?{...e,employerName:t}:e))},className:P})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[10px] md:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:"Start Date"}),(0,t.jsx)("input",{type:"date",value:e.startDate,onChange:e=>{let t=e.target.value;S(e=>e.map((e,r)=>r===a?{...e,startDate:t}:e))},className:P})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:"End Date"}),(0,t.jsx)("input",{type:"date",value:e.endDate,disabled:e.currentlyWorkHere,onChange:e=>{let t=e.target.value;S(e=>e.map((e,r)=>r===a?{...e,endDate:t}:e))},className:`${P} disabled:bg-[#e9ecef] disabled:opacity-100`})]})]}),(0,t.jsx)("div",{children:(0,t.jsxs)("label",{className:"inline-flex items-center gap-2 text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:[(0,t.jsx)("input",{type:"checkbox",checked:e.currentlyWorkHere,className:"h-[20px] w-[20px]",onChange:e=>{let t=e.target.checked;S(e=>e.map((e,r)=>r===a?{...e,currentlyWorkHere:t,endDate:t?"":e.endDate}:e))}}),"Currently Work Here"]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:"Responsibilities"}),(0,t.jsx)("textarea",{value:e.responsibilities,placeholder:"Enter responsibilities",onChange:e=>{let t=e.target.value;S(e=>e.map((e,r)=>r===a?{...e,responsibilities:t}:e))},className:"mt-[var(--vacancy-application-fields-gap)] h-[80px] w-full rounded-[20px] [border-width:var(--vacancy-application-input-border-width)] border-[var(--vacancy-application-input-border)] bg-transparent px-[var(--vacancy-application-input-padding-x)] py-[var(--vacancy-application-input-padding-y)] text-[16px] placeholder:text-[var(--vacancy-application-input-placeholder)] outline-none focus:border-[var(--vacancy-application-input-focus-border)]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:"City"}),(0,t.jsx)("input",{value:e.city,placeholder:"Enter city",onChange:e=>{let t=e.target.value;S(e=>e.map((e,r)=>r===a?{...e,city:t}:e))},className:P})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[length:var(--vacancy-application-label-size)] font-[var(--vacancy-application-label-weight)] text-[var(--vacancy-application-label-color)]",children:"Country"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:e.country,onChange:e=>{let t=e.target.value;S(e=>e.map((e,r)=>r===a?{...e,country:t}:e))},className:T(e.country),children:[(0,t.jsx)("option",{value:"",children:"Select Country"}),(0,t.jsx)("option",{value:"indonesia",children:"Indonesia"}),(0,t.jsx)("option",{value:"sri-lanka",children:"Sri Lanka"}),(0,t.jsx)("option",{value:"india",children:"India"})]}),(0,t.jsx)(r.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--vacancy-filter-select-icon-color)]"})]})]})]}),(0,t.jsx)("hr",{className:"my-4 h-px border-0 bg-current opacity-25"})]},`experience-row-${a}`)),(0,t.jsxs)("div",{className:"mt-[var(--vacancy-application-fields-gap)] flex items-center gap-[10px]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>S(e=>[...e,{positionTitle:"",employerName:"",startDate:"",endDate:"",currentlyWorkHere:!1,responsibilities:"",city:"",country:""}]),className:"cursor-pointer rounded-[20px] border border-transparent bg-[var(--vacancy-application-add-remove-bg)] px-[0.75rem] py-[0.375rem] text-[1rem] leading-[1.5] font-normal text-[var(--vacancy-application-add-remove-color)] transition-colors hover:border-[var(--vacancy-application-add-remove-hover-border)] hover:bg-[var(--vacancy-application-add-remove-hover-bg)] hover:text-[var(--vacancy-application-add-remove-hover-color)]",children:"+ Add New"}),C.length>1?(0,t.jsx)("button",{type:"button",onClick:()=>S(e=>e.slice(0,e.length-1)),className:"cursor-pointer rounded-[20px] border border-transparent bg-[var(--vacancy-application-add-remove-bg)] px-[0.75rem] py-[0.375rem] text-[1rem] leading-[1.5] font-normal text-[var(--vacancy-application-add-remove-color)] transition-colors hover:border-[var(--vacancy-application-add-remove-hover-border)] hover:bg-[var(--vacancy-application-add-remove-hover-bg)] hover:text-[var(--vacancy-application-add-remove-hover-color)]",children:"- Remove"}):null]})]}),(0,t.jsx)("div",{className:"mt-4 flex justify-end",children:(0,t.jsx)("button",{type:"button",onClick:()=>{let e={};return z||(e.profilePicture="Fill the Profile picture field."),n.trim()||(e.fullName="Fill the Full Name field."),o.trim()||(e.gender="Fill the Gender field."),d.trim()||(e.dateOfBirth="Fill the Date of Birth field."),m.trim()||(e.email="Fill the Email field."),p.trim()||(e.phoneNumber="Fill the Phone Number field."),v.trim()||(e.currentAddress="Fill the Current Address field."),b.trim()||(e.city="Fill the City f
272ield."),w.trim()||(e.country="Fill the Country field."),j.trim()||(e.province="Fill the Province field."),_.forEach((t,a)=>{t.language.trim()||(e[`language_${a}`]="Fill the Language field."),t.spoken.trim()||(e[`spoken_${a}`]="Fill the Spoken field."),t.written.trim()||(e[`written_${a}`]="Fill the Written field.")}),L.forEach((t,a)=>{t.institute.trim()||(e[`education_institute_${a}`]="Fill the Institute/University field."),t.major.trim()||(e[`education_major_${a}`]="Fill the Major field."),t.degree.trim()||(e[`education_degree_${a}`]="Fill the Degree field."),t.startDate.trim()||(e[`education_startDate_${a}`]="Fill the Start Date field."),t.present||t.endDate.trim()||(e[`education_endDate_${a}`]="Fill the End Date field."),t.city.trim()||(e[`education_city_${a}`]="Fill the City field."),t.country.trim()||(e[`education_country_${a}`]="Fill the Country field."),t.gpa.trim()||(e[`education_gpa_${a}`]="Fill the GPA field."),t.scale.trim()||(e[`education_scale_${a}`]="Fill the Scale field.")}),E(e),0===Object.keys(e).length},className:"inline-block w-[110px] cursor-pointer rounded-[20px] border border-transparent bg-[var(--vacancy-application-button-bg)] px-[0.75rem] py-[0.375rem] text-center text-[1rem] leading-[1.5] font-normal text-[var(--vacancy-application-button-color)] no-underline",children:"Next step"})})]})]})]})]})]})}e.s(["JobApplicationForm",()=>i])},554236,e=>{"use strict";var t=e.i(843476);e.i(79951);var a=e.i(902936),r=e.i(948148);function l({heading:e,questions:l,emptyMessage:i}){let n=(0,r.useTranslations)(),s=i??n("no_entries_yet");return(0,t.jsxs)("aside",{className:"discussion-related md:col-span-1 md:sticky md:top-8 self-start",children:[(0,t.jsx)("h2",{className:'discussion-related-heading mb-[var(--community-col-one-title-margin-bottom-desktop)] ps-[var(--community-col-one-line-heading-padding-left-desktop)]  before:absolute before:bottom-0 before:start-0 before:top-0  before:w-[var(--community-col-one-line-title-width)]  before:rounded-[var(--community-col-one-line-title-round)] before:bg-[var(--community-col-one-line-title-color)]  before:content-[""] relative text-start text-[18px] md:text-[length:var(--community-col-one-title-size-desktop)] md:leading-[var(--community-col-one-title-line-height-desktop)] font-[var(--community-col-one-title-weight-mobile)] text-[var(--community-col-one-title-color)] ',children:e}),(0,t.jsx)("div",{className:"discussion-related-list",children:0===l.length?(0,t.jsx)("p",{className:"py-4 text-start text-sm text-[var(--community-popular-answer-color)] max-md:text-sm",children:s}):l.map(e=>(0,t.jsx)("div",{className:"discussion-related-item border-b border-[var(--brand-border-color)] py-4",children:(0,t.jsxs)(a.Link,{href:e.link,children:[(0,t.jsx)("h3",{className:"m-0 mb-[var(--community-popular-question-question-margin-bottom)] text-start text-[length:var(--community-popular-question-size-mobile)] leading-[var(--community-popular-question-line-height-mobile)] md:text-[length:var(--community-popular-question-size-desktop)] md:leading-[var(--community-popular-question-line-height-desktop)] font-[var(--community-popular-question-weight)] text-[var(--community-popular-question-color)]",children:e.title}),(0,t.jsxs)("p",{className:"text-start text-[var(--community-popular-answer-size)] text-[var(--community-popular-answer-color)] leading-[var(--community-popular-answer-line-height)] max-md:text-sm",children:[e.answerCount," ",1===e.answerCount?n("answer_singular"):n("answers_plural")]})]})},e.id))})]})}e.s(["CommuntiyDisscussionQuestions",()=>l])},337049,e=>{"use strict";var t=e.i(843476),a=e.i(22584),r=e.i(271645);let l=/(@[^\s@]+(?:\s+[^\s@]+)*)/g;function i(e){let t="string"==typeof e?.customer?.name?e.customer.name.trim():"";if(t)return t;let a="string"==typeof e?.user?.name?e.user.name.trim():"";return a||"Community Member"}function n(e){let t=e.trim();return t?`@${t} `:""}function s(e){let a=e.trim();return a?a.split(l).map((e,a)=>e?e.startsWith("@")?(0,t.jsx)("span",{className:"font-[var(--font-weight-semibold)] text-[color:var(--view-discussion-reply-color)]",children:e},`mention-${a}`):(0,t.jsx)(r.Fragment,{children:e},`text-${a}`):null):null}function o(e){let t=e.slug?.trim();return t?a.routes.community.detail(t):a.routes.community.list}e.s(["buildCommunityReplyPrefix",()=>n,"getCommunityAuthorName",()=>i,"getCommunityQuestionDetailPath",()=>o,"renderCommunityAnswerBody",()=>s])},454133,e=>{"use strict";function t(e){if(!e||"object"!=typeof e)return[];let a=[];return"string"==typeof e.text&&a.push(e.text),Array.isArray(e.content)&&a.push(...e.content.flatMap(t)),a}function a(e){if(!e)return"";if("object"==typeof e)return t(e).join(" ").replace(/\s+/g," ").trim();if("string"!=typeof e)return"";let a=e.trim();if(!a)return"";try{let e=JSON.parse(a),r=t(e).join(" ").replace(/\s+/g," ").trim();if(r)return r}catch{}return a.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim()}e.s(["extractCommunityText",()=>a])},35135,e=>{"use strict";var t=e.i(843476),a=e.i(861745),r=e.i(271645);function l({dateString:e,unknownLabel:l="—",className:i,mode:n="relative"}){let s,o=(0,a.useLocale)(),[c,d]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{d(!0)},[]),!e)return(0,t.jsx)("span",{className:i,children:l});let u=c&&"relative"===n?function(e,t){let a=new Date,r=new Date(e);if(Number.isNaN(r.getTime()))return"—";let l=r.getTime()-a.getTime(),i=Math.abs(l),n=new Intl.RelativeTimeFormat(t,{numeric:"auto"});return i<36e5?n.format(Math.round(l/6e4),"minute"):i<864e5?n.format(Math.round(l/36e5),"hour"):n.format(Math.round(l/864e5),"day")}(e,o):Number.isNaN((s=new Date(e)).getTime())?"—":new Intl.DateTimeFormat(o,{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"}).format(s);return(0,t.jsx)("span",{className:i,suppressHydrationWarning:!0,children:u})}e.s(["ClientRelativeTime",()=>l])},949758,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(811961),l=e.i(271645),i=e.i(948148);function n({isOpen:e,onClose:n,onSubmit:s}){let o=(0,i.useTranslations)(),[c,d]=(0,l.useState)(""),[u,m]=(0,l.useState)(""),[h,p]=(0,l.useState)(!1);(0,l.useEffect)(()=>
272{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]);let g=async e=>{e.preventDefault();let t=c.trim();if(!t)return void m(o("report_details_required"));p(!0),m("");try{let e=await s(t);if(!1===e)return;d(""),n()}catch(e){m(e instanceof Error?e.message:o("unable_to_submit_report"))}finally{p(!1)}};return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--discussion-report-z-backdrop)] bg-[var(--discussion-report-backdrop-bg)]",onClick:n,"aria-hidden":!0}),(0,t.jsxs)("div",{className:"fixed left-1/2 top-1/2 z-[var(--discussion-report-z-dialog)] w-[var(--discussion-report-dialog-width)] max-w-[var(--discussion-report-dialog-max-width)] max-h-[90vh] overflow-y-auto -translate-x-1/2 -translate-y-1/2 bg-[var(--discussion-report-dialog-bg)] p-[var(--discussion-report-dialog-padding)] rounded-[var(--discussion-report-dialog-radius)] shadow-[var(--discussion-report-dialog-shadow)]",role:"dialog","aria-modal":!0,"aria-labelledby":"discussion-report-modal-title",children:[(0,t.jsxs)("div",{className:"flex flex-row flex-wrap items-center justify-between",children:[(0,t.jsx)("h2",{id:"discussion-report-modal-title",className:"text-start text-[color:var(--discussion-report-title-color)] text-[length:var(--discussion-report-title-size-mobile)] md:text-[length:var(--discussion-report-title-size)] leading-[var(--discussion-report-title-line-height-mobile)] md:leading-[var(--discussion-report-title-line-height)] font-[var(--discussion-report-title-weight)]",children:o("report_inappropriate_content")}),(0,t.jsx)("button",{type:"button","aria-label":o("close_report_modal"),onClick:n,className:"cursor-pointer rounded-md p-1 text-[var(--discussion-report-close-color)] hover:text-[var(--discussion-report-close-hover-color)]",children:(0,t.jsx)(r.CloseCrossIcon,{className:"h-6 w-6"})})]}),(0,t.jsx)("p",{className:"mt-3 text-start text-[color:var(--discussion-report-description-color)] text-[length:var(--discussion-report-mobile-text-size)] md:text-[length:var(--discussion-report-label-size)] leading-[var(--discussion-report-mobile-text-line-height)] md:leading-[var(--discussion-report-label-line-height)]",children:o("report_content_description")}),(0,t.jsxs)("form",{className:"mt-[var(--discussion-report-form-margin-top)]",onSubmit:g,children:[(0,t.jsxs)("label",{htmlFor:"discussion-report-reason",className:"text-start text-[color:var(--discussion-report-label-color)] text-[length:var(--discussion-report-mobile-text-size)] md:text-[length:var(--discussion-report-label-size)] font-[var(--discussion-report-label-weight)] leading-[var(--discussion-report-mobile-text-line-height)] md:leading-[var(--discussion-report-label-line-height)]",children:[o("reason")," ",(0,t.jsx)("span",{className:"text-[#f60000]",children:"*"})]}),(0,t.jsx)("textarea",{id:"discussion-report-reason",value:c,onChange:e=>{d(e.target.value),m("")},placeholder:o("report_reason_placeholder"),className:"box-border inline-block w-full h-[200px] bg-[var(--discussion-report-textarea-bg)] border-2 border-[var(--discussion-report-textarea-border-color)] rounded-[20px] text-start text-[color:var(--discussion-report-textarea-color)] text-[length:var(--discussion-report-textarea-size)] mt-2 mb-[14px] py-[5.5px] px-5 md:py-[10.5px] md:px-[25px]"}),u?(0,t.jsx)("p",{className:"mb-3 text-start text-sm text-[#f60000]",children:u}):null,(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)(a.Button,{type:"submit",variant:"primary",className:"w-auto",disabled:h,children:h?o("submitting"):o("submit")})})]})]})]}):null}e.s(["DiscussionReportModal",()=>n])},584725,e=>{"use strict";var t=e.i(843476),a=e.i(659544);e.i(527967);var r=e.i(811961),l=e.i(402090),i=e.i(271645),n=e.i(948148);function s({isOpen:e,onClose:s,shareUrl:o}){let c=(0,n.useTranslations)(),[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(""),p=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),(0,i.useEffect)(()=>{!e&&(u(!1),h(""),p.current&&(clearTimeout(p.current),p.current=null))},[e]),(0,i.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]);let g=async()=>
272{if(o.trim())try{await navigator.clipboard.writeText(o),u(!0),h(""),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(!1),p.current=null},2e3)}catch{u(!1),h(c("unable_to_copy_link"))}};return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--discussion-share-z-backdrop)] bg-[var(--discussion-share-backdrop-bg)]",onClick:s,"aria-hidden":!0}),(0,t.jsxs)("div",{className:"fixed left-1/2 top-1/2 z-[var(--discussion-share-z-dialog)] w-[var(--discussion-share-dialog-width)] max-w-[var(--discussion-share-dialog-max-width)] -translate-x-1/2 -translate-y-1/2 bg-[var(--discussion-share-dialog-bg)] p-[var(--discussion-share-dialog-padding)] rounded-[var(--discussion-share-dialog-radius)] shadow-[var(--discussion-share-dialog-shadow)]",role:"dialog","aria-modal":!0,"aria-labelledby":"discussion-share-modal-title",children:[(0,t.jsxs)("div",{className:"relative mb-6 flex items-center justify-center",children:[(0,t.jsx)("h2",{id:"discussion-share-modal-title",className:"m-0 text-center text-[color:var(--discussion-share-title-color)] text-[length:var(--discussion-share-title-size-mobile)] md:text-[length:var(--discussion-share-title-size)] leading-[var(--discussion-share-title-line-height-mobile)] md:leading-[var(--discussion-share-title-line-height)] font-[var(--discussion-share-title-weight)]",children:c("share_this_content")}),(0,t.jsx)("button",{type:"button","aria-label":c("close_share_modal"),onClick:s,className:"absolute end-0 top-1/2 -translate-y-1/2 cursor-pointer rounded-md p-1 text-[var(--discussion-share-close-color)] hover:text-[var(--discussion-share-close-hover-color)]",children:(0,t.jsx)(r.CloseCrossIcon,{className:"h-6 w-6"})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-stretch",children:[(0,t.jsx)("input",{type:"text",readOnly:!0,value:o,"aria-label":c("share_this_content"),className:"min-w-0 flex-1 truncate rounded-[10px] border border-[color:var(--discussion-share-input-border-color)] bg-[var(--discussion-share-input-bg)] px-4 py-3 text-start text-[color:var(--discussion-share-input-text-color)] text-[length:var(--body-small-size)] md:text-[length:var(--body-regular-size)]"}),(0,t.jsxs)(a.Button,{type:"button",variant:"primary",onClick:()=>void g(),className:"inline-flex w-auto shrink-0 items-center justify-center gap-2 !shadow-none",children:[d?(0,t.jsx)("svg",{className:"h-5 w-5 shrink-0",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,t.jsx)(l.CopyLinkButtonIcon,{className:"h-5 w-5 shrink-0","aria-hidden":!0}),d?c("copied"):c("copy_link")]})]}),m?(0,t.jsx)("p",{className:"mt-3 text-start text-sm text-[#f60000]",role:"alert",children:m}):null]})]}):null}e.s(["DiscussionShareModal",()=>s])},993694,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(326977),r=r,l=e.i(811033),l=l,i=e.i(876773),n=e.i(43857),s=e.i(379106),s=s,o=e.i(989948),o=o,c=e.i(805820),d=e.i(18369),u=e.i(659544);e.i(79951);var m=e.i(902936),h=e.i(271645),p=e.i(554236),g=e.i(949758),v=e.i(584725),x=e.i(752140),b=e.i(337049),f=e.i(454133),w=e.i(578938),y=e.i(450063),j=e.i(231807),N=e.i(22584),_=e.i(35135),k=e.i(948148),C=e.i(475711),S=e.i(785336);function L(e){return`border-0 bg-transparent p-0 text-[var(--view-discussion-vote-up-color)] ${e?"cursor-not-allowed opacity-60":"cursor-pointer"}`}let I="community:bookmarked-question-slugs-v1",z="community:bookmark-ui-dismissed-slugs-v1";function A(){let e=(0,w.getAuthUserProfile)()?.email?.trim().toLowerCase();if(e)return e;let t=(0,w.getAuthToken)()?.trim();return t?`t:${t.slice(0,32)}`:""}function q(){try{let e=window.localStorage.getItem(I);if(!e?.trim())return{};let t=JSON.parse(e);if(!t||"object"!=typeof t||Array.isArray(t))return{};let a={};for(let[e,r]of Object.entries(t))Array.isArray(r)&&(a[e]=r.filter(e=>"string"==typeof e));return a}catch{return{}}}function E(){try{let e=window.localStorage.getItem(z);if(!e?.trim())return{};let t=JSON.parse(e);if(!t||"object"!=typeof t||Array.isArray(t))return{};let a={};for(let[e,r]of Object.entries(t))Array.isArray(r)&&(a[e]=r.filter(e=>"string"==typeof e));return a}catch{return{}}}function $(e,t){let a,r,l=!!(a=A())&&(q()[a]??[]).includes(e),i=!!(r=A())&&(E()[r]??[]).includes(e);return(t||l)&&!i}e.s(["default",0,({question:e,relatedQuestions:P=[]})=>{var T;let M=(0,m.useRouter)(),O=(0,k.useTranslations)(),F=(0,C.useLayoutThemeId)(),R=(0,S.usesComponentTheme)(F,"premium"),{requireAuthForPost:B,openCommunitySsoModal:D}=(0,y.useCommunityAuth)(),H=e.translation.title,U=(0,h.useMemo)(()=>{let t=H.trim();if(t)return t;let a=e.slug?.trim();return a||"Question"},[H,e.slug]),G=(0,h.useMemo)(()=>`${window.location.origin}/community/question/${encodeURIComponent(e.slug)}`,[e.slug]),[W,V]=(0,h.useState)("most-recently"),[K,Y]=(0,h.useState)(null),[Q,Z]=(0,h.useState)(!1),[X,J]=(0,h.useState)(0),[ee,et]=(0,h.useState)(""),[ea,er]=(0,h.useState)(null),[el,ei]=(0,h.useState)(""),[en,es]=(0,h.useState)(!1),[eo,ec]=(0,h.useState)(e.votes_count),[ed,eu]=(0,h.useState)(()=>$(e.slug,e.user_bookmarked)),[em,eh]=(0,h.useState)(""),[ep,eg]=(0,h.useState)(!1),[ev,ex]=(0,h.useState)(""),[eb,ef]=(0,h.useState)(()=>(0,j.getQuestionVote)(e.slug)),[ew,ey]=(0,h.useState)(()=>Object.fromEntries(e.answers.map(e=>[e.id,e.votes_count]))),[ej,eN]=(0,h.useState)(j.readAnswerVoteMap),e_=(0,h.useRef)(null),ek=(0,h.useRef)(null);(0,h.useEffect)(()=>{(0,w.getAuthToken)()?.trim()&&(0,x.postCommunityView)({question_slug:e.slug,question_title:U}).catch(()=>{})},[e.slug,U]),(0,h.useEffect)(()=>{eu($(e.slug,e.user_bookmarked))},[e.slug,e.user_bookmarked]),(0,h.useEffect)(()=>{let t=()=>{eu($(e.slug,e.user_bookmarked)),ef((0,j.getQuestionVote)(e.slug)),eN((0,j.readAnswerVoteMap)())};return window.addEventListener(w.AUTH_SESSION_CHANGED_EVENT,t),()=>window.removeEventListener(w.AUTH_SESSION_CHANGED_EVENT,t)},[e.slug,e.user_bookmarked]);let eC=P.map(e=>({id:e.id,title:e.translation.title,link:e.slug?N.routes.community.detail(e.slug):N.routes.community.list,answerCount:e.answers_count??0})),eS=[...e.answers].sort((e,t)=>
272"most-voted"===W?t.votes_count-e.votes_count:new Date(t.created_at).getTime()-new Date(e.created_at).getTime()),eL=e.answers.find(e=>e.is_official)??[...e.answers].filter(e=>e.is_accepted).sort((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime())[0],eI=Math.max(0,e.answers_count-!!eL),ez=e=>{let t=`${window.location.origin}${window.location.pathname}${window.location.search}`||G;t&&(ex(void 0!==e?`${t}#answer-${e}`:t),eg(!0))},eA=async(t,a=1)=>{eh("");let r=a>0?1:-1;if(0===t&&(0,j.isDuplicateQuestionVote)(e.slug,r)||t>0&&(0,j.isDuplicateAnswerVote)(t,r))return;let l=t>0?{v:1,action:"vote",payload:{target:"answer",question_slug:e.slug,question_title:U,answer_id:t,value:a}}:{v:1,action:"vote",payload:{target:"question",question_slug:e.slug,question_title:U,value:a}};try{if(!await B(l,`community:vote(answer=${t},value=${a})`,async()=>{t>0?await (0,x.postCommunityVote)({question_slug:e.slug,question_title:U,answer_id:t,value:a}):await (0,x.postCommunityVote)({question_slug:e.slug,question_title:U,value:a}),t?((0,j.setAnswerVote)(t,r),eN(e=>({...e,[String(t)]:r})),ey(r=>({...r,[t]:(r[t]??e.answers.find(e=>e.id===t)?.votes_count??0)+a}))):((0,j.setQuestionVote)(e.slug,r),ef(r),ec(e=>e+a)),M.refresh()}))return}catch(e){eh(e instanceof Error?e.message:O("error_unable_to_submit_vote"))}},eq=async()=>{eh("");let t={v:1,action:"bookmark",payload:{question_slug:e.slug}};try{if(!await B(t,"community:bookmark",async()=>{let t=await (0,x.postCommunityBookmark)({question_slug:e.slug}),a=(0,x.parseCommunityBookmarkToggle)(t.data)??!ed;!function(e,t){let a=A();if(!a)return;let r={...E()},l=new Set(r[a]??[]);t?l.add(e):l.delete(e),r[a]=[...l];try{window.localStorage.setItem(z,JSON.stringify(r))}catch{}}(e.slug,!1),function(e,t){let a=A();if(!a)return;let r={...q()},l=new Set(r[a]??[]);t?l.add(e):l.delete(e),r[a]=[...l];try{window.localStorage.setItem(I,JSON.stringify(r))}catch{}}(e.slug,a),eu(a),M.refresh()}))return}catch(e){eh(e instanceof Error?e.message:O("error_unable_to_update_bookmark"))}},eE=async t=>{t.preventDefault();let a=ee.trim();if(!a)return void ei(O("error_answer_required"));ei("");let r={v:1,action:"answer",payload:{slug:e.slug,body:a,status:"pending"}};try{if(!await B(r,"community:answer",async()=>{es(!0);try{await (0,x.postCommunityAnswer)(e.slug,{body:a,status:"pending"}),et(""),er(null),M.refresh()}finally{es(!1)}}))return}catch(e){ei(e instanceof Error?e.message:O("error_unable_to_post_answer")),es(!1)}},e$=(e=0)=>{(Y(null),(0,w.getAuthToken)()?.trim())?(J(e),Z(!0)):D()},eP=async t=>{let a=X>0?{v:1,action:"report",payload:{kind:"answer",answer_id:X,reason:"misinformation",details:t}}:{v:1,action:"report",payload:{kind:"question",question_slug:e.slug,reason:"spam",details:t,status:"reviewed"}};return!!await B(a,"community:report",async()=>{X>0?await (0,x.postCommunityReport)({mode:"answer",answer_id:X,reason:"misinformation",details:t}):await (0,x.postCommunityReport)({mode:"question",question_slug:e.slug,reason:"spam",details:t,status:"reviewed"}),M.refresh()})||(console.info("[COMMUNITY] Report submit deferred — SSO required; closing report dialog"),Z(!1),!1)};return(0,t.jsx)("div",{className:"discussion-detail pt-[var(--view-discussion-padding-y-mobile)] pb-[var(--view-discussion-padding-y-mobile)] md:pt-[var(--view-discussion-padding-top-desktop)] md:pb-[var(--view-discussion-padding-bottom-desktop)]","data-premium-discussion":R?"":void 0,children:(0,t.jsx)("div",{className:"discussion-detail-container layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"discussion-detail-grid grid grid-cols-1 md:grid-cols-3 md:gap-[var(--view-discussion-grid-gap-desktop)]",children:[(0,t.jsxs)("div",{className:"discussion-detail-main md:col-span-2",children:[(0,t.jsxs)("div",{className:"discussion-detail-question-card border border-[var(--view-discussion-card-border-color)] flex gap-[var(--view-discussion-card-gap)] p-[var(--view-discussion-card-padding)] mb-[var(--view-discussion-card-margin-bottom)]",children:[(0,t.jsxs)("div",{className:"discussion-detail-question-vote flex flex-col items-center",children:[(0,t.jsx)("button",{type:"button","aria-label":O("upvote_discussion"),className:L(1===eb),disabled:1===eb,onClick:()=>void eA(0,1),children:(0,t.jsx)(d.UpArrowLongIcon,{className:"w-6 h-6"})}),(0,t.jsx)("span",{className:"text-[color:var(--view-discussion-vote-count-color)] text-[length:var(--view-discussion-vote-count-size-mobile)] md:text-[length:var(--view-discussion-vote-count-size)] leading-[var(--view-discussion-vote-count-line-height)] font-[var(--view-discussion-vote-count-weight)]",children:eo}),(0,t.jsx)("button",{type:"button","aria-label":O("downvote_discussion"),className:L(-1===eb),disabled:-1===eb,onClick:()=>void eA(0,-1),children:(0,t.jsx)(n.DownArrowLongIcon,{className:"w-6 h-6"})})]}),(0,t.jsxs)("div",{className:"discussion-detail-question-content flex-1",children:[(0,t.jsx)("h3",{className:"discussion-detail-question-title mb-8 text-start text-[color:var(--view-discussion-title-color)] text-[length:var(--view-discussion-title-size-mobile)] md:text-[length:var(--view-discussion-title-size)] leading-[var(--view-discussion-title-line-height-mobile)] md:leading-[var(--view-discussion-title-line-height)] font-[var(--view-discussion-title-weight)]",children:H}),(0,t.jsxs)("div",{className:"discussion-detail-author flex items-center gap-[var(--view-discussion-author-row-gap)]",children:[(0,t.jsx)("button",{type:"button","aria-label":"Discussion author avatar",className:"discussion-detail-avatar flex items-center justify-center bg-[var(--view-discussion-author-avatar-bg)] bg-[url('/community/username.png')] bg-center bg-cover border-none rounded-full text-[var(--view-discussion-author-avatar-text-color)] text-[40px] font-[var(--view-discussion-author-time-weight)] h-[50px] w-[50px] overflow-hidden p-[var(--view-discussion-author-avatar-padding)] object-cover"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{className:"m-0 text-start text-[color:var(--view-discussion-author-name-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-author-name-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[var(--view-discussion-author-name-line-height)] font-[var(--view-discussion-author-name-weight)]",children:(0,b.getCommunityAuthorName)(e)}),(0,t.jsxs)("p",{className:"text-start text-[color:var(--view-discussion-author-time-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-author-name-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[var(--view-discussion-author-name-line-height)]",children:[O("asked_prefix")," ",(0,t.jsx)(_.ClientRelativeTime,{dateString:e.published_at})]})]})]}),(0,t.jsx)("div",{className:"discussion-detail-industry flex items-center flex-wrap gap-[var(--view-discussion-industry-row-gap)] mt-5 mb-2.5",children:(0,t.jsx)("span",{className:"discussion-detail-industry-pill inline-block overflow-hidden border border-[var(--view-discussion-industry-pill-border-color)] rounded-[100px] text-[color:var(--view-discussion-industry-pill-text-color)] font-[var(--view-discussion-industry-pill-weight)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[25px] max-w-full py-1 px-3 text-center w-max text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-industry-pill-size)] tracking-[var(--view-discussion-industry-pill-letter-spacing)]",children:"string"==typeof(T=e.business_vertical_id)&&T.trim()?T:"number"==typeof T?String(T):"—"})}),(0,t.jsx)("p",{className:"discussion-detail-question-body text-start max-md:text-[14px] max-md:leading-[25px]",children:(0,f.extractCommunityText)(e.translation.body)||O("no_details_available")}),(0,t.jsxs)("div",{className:"discussion-detail-actions flex flex-wrap gap-[var(--view-discussion-actions-row-gap)] mt-[30px]",children:[(0,t.jsxs)("button",{type:"button","aria-pressed":ed,"aria-label":ed?O("remove_bookmark"):O("bookmark_this_question"),className:"discussion-detail-action flex items-center bg-[var(--brand-neutral-surface-4)] hover:bg-[var(--brand-neutral-surface-2)] border border-[var(--view-discussion-action-border-color)] rounded-[10px] cursor-pointer gap-[var(--view-discussion-action-content-gap)] py-[5px] px-[15px] md:py-3",onClick:()=>void eq(),children:[ed?(0,t.jsx)(l.default,{className:"w-6 h-6 text-[color:var(--view-discussion-action-text-color)]"}):(0,t.jsx)(r.default,{className:"w-6 h-6 text-[color:var(--view-discussion-action-text-color)]"}),(0,t.jsx)("span",{className:"text-[color:var(--view-discussion-action-text-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-action-label-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[var(--view-discussion-action-label-line-height)]",children:O("bookmark")})]}),(0,t.jsxs)("button",{type:"button",className:"discussion-detail-action flex items-center bg-[var(--brand-neutral-surface-4)] hover:bg-[var(--brand-neutral-surface-2)] border border-[var(--view-discussion-action-border-color)] rounded-[10px] cursor-pointer gap-[var(--view-discussion-action-content-gap)] py-[5px] px-[15px] md:py-3",onClick:()=>ez(),children:[(0,t.jsx)(c.ShareIcon,{className:"w-6 h-6 text-[var(--view-discussion-action-text-color)]"}),(0,t.jsx)("span",{className:"text-[color:var(--view-discussion-action-text-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-action-label-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[var(--view-discussion-action-label-line-height)]",children:O("share")})]}),(0,t.jsxs)("button",{type:"button",className:"discussion-detail-action flex items-center bg-[var(--brand-neutral-surface-4)] hover:bg-[var(--brand-neutral-surface-2)] border border-[var(--view-discussion-action-border-color)] rounded-[10px] cursor-pointer gap-[var(--view-discussion-action-content-gap)] py-[5px] px-[15px] md:py-3",onClick:()=>e$(),children:[(0,t.jsx)(o.default,{className:"w-6 h-6 text-[var(--view-discussion-action-text-color)]"}),(0,t.jsx)("span",{className:"text-[color:var(--view-discussion-action-text-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-action-label-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[var(--view-discussion-action-label-line-height)]",children:O("report")})]})]}),em?(0,t.jsx)("p",{className:"mt-3 text-start text-sm text-[var(--brand-danger)]",children:em}):null]})]}),eL?(0,t.jsxs)("section",{className:"discussion-detail-official hidden",children:[(0,t.jsxs)("div",{className:"discussion-detail-official-heading",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:(0,t.jsx)(i.CheckIcon,{})}),O("official_answer")]}),(0,t.jsxs)("div",{className:"discussion-detail-official-author",children:[(0,t.jsx)("button",{type:"button","aria-label":"Official answer author avatar",className:"discussion-detail-avatar flex items-center justify-center bg-[var(--view-discussion-author-avatar-bg)] bg-[url('/community/username-2.png')] bg-center bg-cover border-none rounded-full overflow-hidden p-[var(--view-discussion-author-avatar-padding)] object-cover"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:(0,b.getCommunityAuthorName)(eL)}),(0,t.jsx)("p",{children:(0,t.jsx)(_.ClientRelativeTime,{dateString:eL.created_at})})]})]}),(0,t.jsx)("p",{className:"discussion-detail-official-body",children:(0,b.renderCommunityAnswerBody)((0,f.extractCommunityText)(eL.translation.body)||"")||O("no_details_available")}),(0,t.jsxs)("div",{className:"discussion-detail-official-helpful",children:[(0,t.jsx)("span",{children:O("was_this_helpful")}),(0,t.jsxs)("button",{type:"button",disabled:(ej[String(eL.id)]??(0,j.getAnswerVote)(eL.id))===1,onClick:()=>void eA(eL.id,1),children:[(0,t.jsx)(d.UpArrowLongIcon,{"aria-hidden":"true"}),O("yes")]}),(0,t.jsxs)("button",{type:"button",disabled:(ej[String(eL.id)]??(0,j.getAnswerVote)(eL.id))===-1,onClick:()=>void eA(eL.id,-1),children:[(0,t.jsx)(n.DownArrowLongIcon,{"aria-hidden":"true"}),O("no")]})]})]}):null,(0,t.jsxs)("div",{className:"discussion-detail-answers-card border border-[var(--view-discussion-card-border-color)] p-[var(--view-discussion-card-padding)]",children:[(0,t.jsxs)("div",{className:"discussion-detail-answers-header flex items-center justify-between gap-[var(--view-discussion-answers-top-gap)]",children:[(0,t.jsxs)("h3",{className:"m-0 shrink-0 text-start text-[color:var(--view-discussion-answers-title-color)] text-[length:var(--view-discussion-title-size-mobile)] md:text-[length:var(--view-discussion-answers-title-size)] leading-[var(--view-discussion-title-line-height-mobile)] md:leading-[var(--view-discussion-answers-title-line-height)] font-[var(--view-discussion-answers-title-weight)]",children:[(0,t.jsx)("span",{className:"discussion-detail-answer-count-standard",children:e.answers_count}),(0,t.jsx)("span",{className:"discussion-detail-answer-count-premium hidden",children:eI}
272)," ",O("community_answers")]}),(0,t.jsxs)("div",{className:"flex min-w-0 shrink items-center",children:[(0,t.jsx)("label",{htmlFor:"community-answer-sort",className:"whitespace-nowrap text-start text-[color:var(--view-discussion-sort-label-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-sort-label-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-normal font-[var(--view-discussion-sort-label-weight)] pe-[13px] w-max",children:O("sort_by_colon")}),(0,t.jsxs)("div",{className:"relative w-[min(100%,160px)] sm:w-[200px] md:w-[240px]",children:[(0,t.jsxs)("select",{id:"community-answer-sort",className:"discussion-detail-sort w-full appearance-none rounded-[var(--view-discussion-sort-select-radius)] border-2 border-[color:var(--view-discussion-sort-select-border)] bg-[var(--view-discussion-sort-select-bg)] px-6 pe-[var(--view-discussion-sort-select-pr)] py-2 text-start text-[var(--view-discussion-sort-select-text)] text-[length:var(--view-discussion-sort-select-size)] leading-[var(--view-discussion-sort-select-line-height)] focus:border-[color:var(--view-discussion-sort-select-border-focus)] focus:outline-none",value:W,onChange:e=>V(e.target.value),children:[(0,t.jsx)("option",{value:"most-recently",children:O("sort_most_recently")}),(0,t.jsx)("option",{value:"most-voted",children:O("sort_most_voted")}),(0,t.jsx)("option",{value:"most-replied",children:O("sort_most_replied")})]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute end-6 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--view-discussion-sort-icon-color)]","aria-hidden":"true"})]})]})]}),(0,t.jsx)("hr",{className:"discussion-detail-divider bg-[var(--view-discussion-divider-bg)] border-none h-[2px] my-[var(--view-discussion-divider-margin-y)]"}),0===eS.length?(0,t.jsx)("p",{className:"text-start max-md:text-[14px] max-md:leading-[25px]",children:O("no_answers_yet")}):eS.map(e=>{let a=ej[String(e.id)]??(0,j.getAnswerVote)(e.id);return(0,t.jsxs)("div",{className:`discussion-detail-answer flex gap-[var(--view-discussion-answer-row-gap)] mb-6 ${e.id===eL?.id?"discussion-detail-answer--official":""}`,children:[(0,t.jsxs)("div",{className:"discussion-detail-answer-vote flex flex-col items-center",children:[(0,t.jsx)("button",{type:"button","aria-label":O("upvote_answer"),className:L(1===a),disabled:1===a,onClick:()=>void eA(e.id,1),children:(0,t.jsx)(d.UpArrowLongIcon,{className:"w-6 h-6"})}),(0,t.jsx)("span",{className:"text-[color:var(--view-discussion-vote-count-color)] text-[length:var(--view-discussion-vote-count-size-mobile)] md:text-[length:var(--view-discussion-vote-count-size)] leading-[var(--view-discussion-vote-count-line-height)] font-[var(--view-discussion-vote-count-weight)]",children:ew[e.id]??e.votes_count}),(0,t.jsx)("button",{type:"button","aria-label":O("downvote_answer"),className:L(-1===a),disabled:-1===a,onClick:()=>void eA(e.id,-1),children:(0,t.jsx)(n.DownArrowLongIcon,{className:"w-6 h-6"})})]}),(0,t.jsxs)("div",{className:"discussion-detail-answer-content flex-1",children:[(0,t.jsxs)("div",{className:"discussion-detail-answer-author flex items-center gap-[var(--view-discussion-author-row-gap)] mb-[15px]",children:[(0,t.jsx)("button",{type:"button","aria-label":"Answer author avatar",className:"discussion-detail-avatar flex items-center justify-center bg-[var(--view-discussion-author-avatar-bg)] bg-[url('/community/username-2.png')] bg-center bg-cover border-none rounded-full text-[var(--view-discussion-author-avatar-text-color)] text-[40px] font-[var(--view-discussion-author-time-weight)] h-[50px] w-[50px] overflow-hidden p-[var(--view-discussion-author-avatar-padding)] object-cover"}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{className:"m-0 text-start text-[color:var(--view-discussion-author-name-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-author-name-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[var(--view-discussion-author-name-line-height)] font-[var(--view-discussion-author-name-weight)]",children:(0,b.getCommunityAuthorName)(e)}),(0,t.jsxs)("p",{className:"text-start text-[color:var(--view-discussion-author-time-color)] text-[length:var(--view-discussion-author-name-size-mobile)] md:text-[length:var(--view-discussion-author-name-size)] leading-[var(--view-discussion-author-name-line-height-mobile)] md:leading-[var(--view-discussion-author-name-line-height)]",children:[O("answered_prefix")," ",(0,t.jsx)(_.ClientRelativeTime,{dateString:e.created_at})]})]})]}),(0,t.jsx)("p",{className:"text-start max-md:text-[14px] max-md:leading-[25px]",children:(0,b.renderCommunityAnswerBody)((0,f.extractCommunityText)(e.translation.body)||"")||O("no_details_available")}),(0,t.jsx)("button",{type:"button",className:"mt-3 border-0 bg-transparent p-0 text-start text-[color:var(--view-discussion-reply-color)] text-[length:var(--view-discussion-reply-size)] font-[var(--view-discussion-reply-weight)] cursor-pointer",onClick:()=>{let t,a;return t=(0,b.getCommunityAuthorName)(e),a=(0,b.buildCommunityReplyPrefix)(t),void(Y(null),er(t),et(a),ei(""),e_.current?.scrollIntoView({behavior:"smooth",block:"nearest"}),requestAnimationFrame(()=>{ek.current?.focus(),ek.current?.setSelectionRange(a.length,a.length)}))},children:O("reply")})]}),(0,t.jsxs)("div",{className:"discussion-detail-answer-menu relative",children:[(0,t.jsx)("button",{type:"button","aria-label":"Answer menu",className:"cursor-pointer text-[var(--view-discussion-answer-menu-color)]",onClick:()=>Y(t=>t===e.id?null:e.id),children:(0,t.jsx)(s.default,{className:"w-6 h-6"})}),(0,t.jsxs)("div",{className:`discussion-detail-answer-popover absolute end-0 top-[30px] z-10 w-[150px] overflow-hidden rounded-[10px] bg-[var(--brand-white)] shadow-[var(--btn-shadow-soft)] ${K===e.id?"block":"hidden"}`,children:[(0,t.jsxs)("button",{type:"button",className:"w-full border-none cursor-pointer px-[15px] py-3 text-start flex gap-[10px] items-center",onClick:()=>{Y(null),ez(e.id)},children:[(0,t.jsx)(c.ShareIcon,{className:"w-6 h-6 text-[var(--view-discussion-action-text-color)]"}),(0,t.jsx)("span",{className:"text-[color:var(--view-discussion-action-text-color)] text-[length:var(--view-discussion-action-label-size)] leading-[var(--view-discussion-action-label-line-height)]",children:O("share")})]}),(0,t.jsxs)("button",{type:"button",className:"w-full border-none cursor-pointer px-[15px] py-3 text-start flex gap-[10px] items-center",onClick:()=>e$(e.id),children:[(0,t.jsx)(o.default,{className:"w-6 h-6 text-[var(--view-discussion-action-text-color)]"}),(0,t.jsx)("span",{className:"text-[color:var(--view-discussion-action-text-color)] text-[length:var(--view-discussion-action-label-size)] leading-[var(--view-discussion-action-label-line-height)]",children:O("report")})]})]})]})]},e.id)}),(0,t.jsx)("hr",{className:"discussion-detail-divider bg-[var(--view-discussion-div
272ider-bg)] border-none h-[2px] my-[var(--view-discussion-divider-margin-y)]"}),(0,t.jsxs)("form",{className:"discussion-detail-answer-form",ref:e_,onSubmit:eE,children:[(0,t.jsx)("h4",{className:"text-start text-[color:var(--view-discussion-answers-title-color)] text-[length:var(--view-discussion-title-size-mobile)] md:text-[length:var(--view-discussion-answers-title-size)] leading-[var(--view-discussion-title-line-height-mobile)] md:leading-[var(--view-discussion-answers-title-line-height)] font-[var(--view-discussion-answers-title-weight)]",children:O("your_answer")}),ea?(0,t.jsx)("p",{className:"mb-[var(--view-discussion-replying-margin-bottom)] mt-2 text-start text-[color:var(--view-discussion-replying-text-color)] text-[length:var(--view-discussion-replying-text-size)] leading-[var(--view-discussion-replying-text-line-height)] font-[var(--view-discussion-replying-text-weight)]",children:O("replying_to",{username:`@${ea}`})}):null,(0,t.jsx)("textarea",{ref:ek,value:ee,onChange:e=>{et(e.target.value),ei("");let t=ea?(0,b.buildCommunityReplyPrefix)(ea):"";ea&&!e.target.value.startsWith(t)&&er(null)},placeholder:O("answer_placeholder"),className:"discussion-detail-answer-textarea box-border inline-block w-full h-[200px] bg-[var(--brand-neutral-surface-4)] border border-[var(--view-discussion-answer-form-border-color)] rounded-[10px] text-start text-[color:var(--view-discussion-answer-form-text-color)] text-[length:var(--view-discussion-answer-form-text-size)] mt-2 mb-[28px] py-[5.5px] px-5 md:py-[10.5px] md:px-[25px]"}),el?(0,t.jsx)("p",{className:"mb-3 text-start text-sm text-[var(--brand-danger)]",children:el}):null,(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)(u.Button,{type:"submit",variant:"primary",className:"w-auto",disabled:en,children:en?O("posting"):O("post_answer")})})]})]}),(0,t.jsx)(g.DiscussionReportModal,{isOpen:Q,onClose:()=>Z(!1),onSubmit:eP}),(0,t.jsx)(v.DiscussionShareModal,{isOpen:ep,onClose:()=>eg(!1),shareUrl:ev})]}),(0,t.jsx)(p.CommuntiyDisscussionQuestions,{heading:O("related_questions"),questions:eC,emptyMessage:O("no_related_questions")})]})})})}],993694)},610980,e=>{"use strict";e.i(764270);var t=e.i(991283);e.s(["HeaderSearchField",()=>t.HeaderSearchField])},296465,e=>{"use strict";e.i(592042);var t=e.i(863975);e.s(["PageBannerButton",()=>t.PageBannerButton])},575147,e=>{"use strict";e.i(475584);var t=e.i(285216);e.s(["HeaderUtilityActions",()=>t.HeaderUtilityActions])},119526,e=>{"use strict";var t=e.i(843476),a=e.i(657688);function r({onMenuToggle:e}){return(0,t.jsxs)("button",{type:"button","aria-label":"Menu",className:"flex h-10 w-10 shrink-0 items-center justify-center",onClick:e,children:[(0,t.jsx)(a.default,{src:"/hamburgerMenu.svg",alt:"",width:24,height:24,className:"lg:hidden"}),(0,t.jsx)(a.default,{src:"/hamburgerMenu.svg",alt:"",width:30,height:20,className:"hidden lg:inline-block"})]})}e.s(["HeaderHamburger",()=>r])},679005,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);function l({src:e,alt:l,href:i}){return(0,t.jsx)(r.Link,{href:i,className:"relative h-[46px] w-[125px] shrink-0 md:h-[61px] md:w-[164px]",children:(0,t.jsx)(a.default,{src:e,alt:l,fill:!0,className:"object-contain object-left",sizes:"(max-width: 768px) 125px, 164px"})})}e.s(["HeaderLogo",()=>l])},706981,e=>{"use strict";var t=e.i(843476),a=e.i(657688);function r({onSearchOpen:e}){return(0,t.jsx)("button",{type:"button","aria-label":"Search",className:"flex h-[45px] w-[45px] shrink-0 items-center justify-center rounded-full bg-[var(--header-search-btn-bg)] md:h-[50px] md:w-[50px]",onClick:e,children:(0,t.jsx)(a.default,{src:"/search.svg",alt:"",width:20,height:20})})}e.s(["HeaderSearchButton",()=>r])},118431,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(160741);function l({actions:e}){return(0,t.jsx)(t.Fragment,{children:e.map((e,l)=>(0,t.jsx)(a.Button,{variant:e.type,href:e.href,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"nofollow noopener noreferrer":void 0,className:(0,r.isAuthUtilityHref)(e.href)?"hidden lg:inline-flex":"hidden md:inline-flex",children:e.label},`${e.href}-${e.label}-${l}`))})}e.s(["HeaderActions",()=>l])},80323,e=>{"use strict";var t=e.i(843476),a=e.i(770703);let r=(0,a.default)(()=>e.A(500376).then(e=>e.AuthSessionFlash),{loadableGenerated:{modules:[889825]}}),l=(0,a.default)(()=>e.A(552180).then(e=>e.FloatingActions),{loadableGenerated:{modules:[361728]}});function i(){return(0,t.jsx)(r,{})}function n(){return(0,t.jsx)(l,{})}e.s(["LayoutShellAuthFlash",()=>i,"LayoutShellFloatingActions",()=>n])},175696,e=>{"use strict";var t=e.i(861745),a=e.i(843476);function r({locale:e,...r}){if(!e)throw Error(void 0);return(0,a.jsx)(t.IntlProvider,{locale:e,...r})}e.s(["default",()=>r])},579673,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),l=e.i(593763);e.s(["default",0,({cards:e,className:i=""})=>{let n=(0,r.useTranslations)();return e&&0!==e.length?(0,t.jsx)("section",{"data-premium-community-cards":!0,className:i.trim(),children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[(0,t.jsx)("h2",{className:"cc-p-heading",children:n("our_
272community")}),(0,t.jsx)("div",{className:"cc-p-grid",children:e.map(e=>{let r=a.default.isValidElement(e.iconSrc)?a.default.cloneElement(e.iconSrc,{className:"cc-p-card__icon-svg"}):e.iconSrc,i="gradient"===e.bgType;return(0,t.jsxs)("div",{className:"cc-p-card",children:[(0,t.jsx)("span",{className:"cc-p-card__icon","aria-hidden":"true",children:r}),(0,t.jsx)("h3",{className:"cc-p-card__title",children:e.title}),(0,t.jsx)(l.CardCta,{card:e,className:`cc-p-card__cta ${i?"cc-p-card__cta--solid":"cc-p-card__cta--outline"}`})]},e.id)})})]})}):null}])},859719,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);function l({nav:e,openIndex:l,onOpenIndexChange:i}){return(0,t.jsx)("nav",{className:"hidden lg:flex lg:items-center lg:gap-[var(--header-nav-gap)] lg:ms-[30px]","aria-label":"Main",children:e.map((e,n)=>(0,t.jsx)("div",{className:"relative",onMouseEnter:()=>e.children&&i(n),onMouseLeave:()=>i(null),children:e.children?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("a",{type:"button",className:"text-[length:var(--header-link-size)] flex items-center gap-[var(--header-link-icon-gap)] hover:opacity-90 text-[var(--header-link-color)] uppercase lg:py-3 font-[var(--header-link-weight)] leading-[var(--header-link-line)] tracking-[var(--header-link-tracking)]","aria-expanded":l===n,"aria-haspopup":"true",onClick:()=>i(l===n?null:n),children:[e.label,(0,t.jsx)(a.default,{src:"/dropdown-icon.svg",alt:"",width:12,height:12,className:`shrink-0 ${l===n?"rotate-180":""}`})]}),l===n&&(0,t.jsx)("ul",{className:"rounded-lg absolute start-0 top-7 z-20 mt-1 min-w-[180px] py-2 bg-[var(--header-dropdown-bg)] shadow-[var(--header-dropdown-shadow)] transition-default",role:"menu",children:e.children.map(e=>(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.Link,{href:e.href,className:"block px-4 py-2 hover:bg-[var(--header-dropdown-item-hover)] font-[var(--header-dropdown-item-weight)] text-[var(--header-dropdown-item-color)] transition-default",role:"menuitem",children:e.label})},e.href))})]}):(0,t.jsx)(r.Link,{href:e.href,className:"text-[length:var(--header-link-size)] hover:opacity-90 text-[var(--header-link-color)] uppercase font-[var(--header-link-weight)] leading-[var(--header-link-line)] tracking-[var(--header-link-tracking)]",children:e.label})},e.href))})}e.s(["HeaderNav",()=>l])},730672,e=>{"use strict";var t=e.i(843476);e.i(79951);var a=e.i(902936),r=e.i(450063),l=e.i(902312),i=e.i(22584);e.i(527967);var n=e.i(155095),n=n;let s="btn btn-primary cards-p-cta";function o({card:e}){let n=(0,r.useOptionalCommunityAuth)(),o=(0,l.useHasAuthSession)(),c=e.buttonLink||"/",d=!!(e.requireAuthToNavigate&&!o);return d&&n?(0,t.jsx)("button",{type:"button",className:`${s} cursor-pointer`,onClick:t=>{t.preventDefault(),t.stopPropagation(),console.info("[COMMUNITY] Gated card CTA — opening SSO modal (no navigation)",{title:e.title,returnPath:c}),n.openCommunitySsoModal(c)},children:e.buttonText}):d&&!n?(0,t.jsx)(a.Link,{prefetch:!1,className:s,href:i.routes.auth.login,children:e.buttonText}):(0,t.jsx)(a.Link,{prefetch:!1,className:s,href:c,children:e.buttonText})}function c({cards:e,className:a=""}){return e&&0!==e.length?(0,t.jsx)("div",{"data-premium-cards":!0,className:`layout-container px-3 md:px-5 ${a}`.trim(),children:(0,t.jsx)("div",{className:"cards-p-grid",children:e.map(e=>(0,t.jsxs)("article",{className:"cards-p-card",children:[(0,t.jsx)("div",{className:"cards-p-blur","aria-hidden":!0,children:(0,t.jsx)(n.default,{})}),(0,t.jsxs)("div",{className:"cards-p-body",children:[e.iconSrc?(0,t.jsx)("div",{className:"cards-p-icon",children:e.iconSrc}):null,(0,t.jsx)("h4",{className:"cards-p-title",children:e.title}),(0,t.jsx)("span",{className:"cards-p-underline","aria-hidden":!0}),(0,t.jsx)("div",{className:"cards-p-footer",children:(0,t.jsx)(o,{card:e})})]})]},e.id))})}):null}e.s(["CardsSection",()=>c,"default",0,c],730672)},859120,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(527967);var r=e.i(624149),r=r,l=e.i(795808),l=l;function i({heading:e,items:n,idPrefix:s="faq-accordion"}={}){let o=s.trim()||"faq-accordion",[c,d]=(0,a.useState)(0),u=(0,a.useMemo)(()=>Array.isArray(n)?n.filter(e=>"string"==typeof e?.question&&""!==e.question.trim()&&"string"==typeof e?.answer&&""!==e.answer.trim()).map(e=>({question:e.question.trim(),answer:e.answer.trim()})):[],[n]);return u.length?(0,t.jsx)("section",{"data-premium-faq":!0,children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[e?(0,t.jsx)("h2",{className:"faq-p-heading",children:e}):null,(0,t.jsx)("div",{className:"faq-p-list",children:u.map((e,a)=>{let i=c===a,n=`${o}-btn-${a}`,s=`${o}-panel-${a}`,u=/^\d+[\.\)]\s*/.test(e.question)?e.question:`${a+1}. ${e.question}`;return(0,t.jsxs)("article",{className:["faq-p-card",i?"is-open":""].filter(
272Boolean).join(" "),children:[(0,t.jsxs)("button",{type:"button",className:"faq-p-trigger","aria-expanded":i,"aria-controls":s,id:n,onClick:()=>d(e=>e===a?null:a),children:[(0,t.jsx)("span",{className:"faq-p-question",children:u}),i?(0,t.jsx)(r.default,{className:"faq-p-icon","aria-hidden":!0}):(0,t.jsx)(l.default,{className:"faq-p-icon","aria-hidden":!0})]}),(0,t.jsx)("div",{id:s,role:"region","aria-labelledby":n,hidden:!i,className:"faq-p-panel",children:(0,t.jsx)("div",{className:"faq-p-answer",children:"string"==typeof e.answer?(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e.answer}}):e.answer})})]},`${e.question}-${a}`)})})]})}):null}e.s(["FaqAccordionSection",()=>i,"default",0,i],859120)},830987,e=>{"use strict";var t=e.i(843476),a=e.i(770703),r=e.i(271645);e.i(527967);var l=e.i(419037),i=e.i(242405),n=e.i(101252),s=e.i(948148),o=e.i(434593),c=e.i(224907);let d=(0,a.default)(()=>e.A(907166).then(e=>e.HeaderOneMobileSidebars),{loadableGenerated:{modules:[152268]},ssr:!1}),u=(0,a.default)(()=>e.A(571446).then(e=>e.WebsiteExplorePanel),{loadableGenerated:{modules:[266112]},ssr:!1});function m({headerConfig:e}){let a=(0,s.useTranslations)(),{logo:m,nav:h,explore:p,languages:g,activeLanguageCode:v,actions:x,websiteName:b}=e,f=(0,r.useMemo)(()=>h.length>0?(0,n.flattenCategoryLinksFromNav)(h):void 0,[h]),[w,y]=(0,r.useState)(null),[j,N]=(0,r.useState)(!1),[_,k]=(0,r.useState)("main"),[C,S]=(0,r.useState)(!1),[L,I]=(0,r.useState)(!1),z=(0,i.useMediaQuery)("(min-width: 1280px)"),A=z&&!L,q=j&&!A,E=(0,r.useCallback)(e=>{I(e)},[]);return(0,r.useEffect)(()=>{let e=q||C;return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[q,C]),(0,t.jsxs)("header",{className:"sticky top-0 z-[var(--header-two-z-sticky)]","data-fancy-header":!0,children:[(0,t.jsx)(c.PremiumLogoSearchBar,{logo:m,actions:x,languages:g,activeLanguageCode:v,websiteName:b,showMenuButton:!A,onOpenNav:()=>{k("main"),N(!0),y(null)},onOpenGroupSites:()=>S(!0)}),(0,t.jsx)(o.HeaderOneMainNav,{openMega:w,onMegaChange:y,productCategoryLinks:f,navItems:e.cmsNav,visible:A,measureLayout:z,onOverflowChange:E,fancy:!0,trailingContent:(0,t.jsxs)("button",{type:"button",onClick:()=>S(!0),className:"h1f-marketplace-trigger",children:[(0,t.jsx)(l.GlobeIcon,{className:"h1f-marketplace-icon","aria-hidden":!0}),(0,t.jsx)("span",{className:"h1f-marketplace-copy",children:a("group_sites")})]})}),q?(0,t.jsx)(d,{open:q,panel:_,onClose:()=>{N(!1),k("main")},setPanel:k,utilityActions:x,logo:m,cmsCategoryLinks:f,cmsNav:e.cmsNav,fancy:!0}):null,C?(0,t.jsx)(u,{isOpen:C,onClose:()=>S(!1),exploreCategories:p}):null]})}e.s(["HeaderOne",()=>m])},206320,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(235994),a=a,r=e.i(657688);e.i(79951);var l=e.i(902936);function i(){return(0,t.jsx)("section",{className:"w-full h-[950px] bg-[url('/careers/bn-career.webp')] bg-center bg-no-repeat bg-cover flex items-center justify-center",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-[var(--caree-home-banner-cols-gap)] items-center",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"mb-2 text-start text-4xl leading-[var(--caree-home-banner-heading-line-height-mobile)] font-[var(--caree-home-banner-heading-weight)] text-[color:var(--caree-home-banner-heading-color)] md:text-[length:var(--caree-home-banner-heading-size-desktop)] md:leading-[var(--caree-home-banner-heading-line-height-desktop)] md:font-[var(--caree-home-banner-heading-weight-desktop)]",children:"Where Talent Meets Opportunity"}),(0,t.jsx)("p",{className:"text-start text-[color:var(--caree-home-banner-heading-color)] text-[length:var(--caree-home-banner-text-size)]",children:"Collaborating with us not only enhances personal skills but also broadens and elevates promising career opportunities"}),(0,t.jsx)(l.Link,{href:"/vacancy",className:"inline-flex items-center justify-center p-[10px] bg-[color:var(--caree-home-banner-cta-bg)] border border-[color:var(--caree-home-banner-cta-border)] rounded-[100px] w-[220px] text-center my-[var(--section-padding-30)] text-[color:var(--caree-home-banner-heading-color)]",children:"See Job Vacancies"})]}),(0,t.jsx)("div",{children:(0,t.jsx)(r.default,{src:"/careers/career-home-banner-inner.png",alt:"Careers banner visual",width:1e3,height:1e3,className:"w-full h-auto"})})]}),(0,t.jsx)("div",{className:"pt-[var(--caree-home-banner-button-section-padding)] pb-[var(--caree-home-banner-button-section-padding)] flex justify-center",children:(0,t.jsxs)("button",{type:"button","aria-label":"Scroll to next careers section",className:"inline-flex flex-col items-center justify-center cursor-pointer",onClick:e=>{let t=e.currentTarget.closest("section"),a=t?.nextElementSibling;a?a.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollBy({top:window.innerHeight,behavior:"smooth"})},children:[(0,t.jsx)("span",{className:"bg-[var(--caree-home-banner-scroll-chip-bg)] w-[35px] h-[50px] border border-[var(--caree-home-banner-scroll-chip-border)] rounded-[100px] flex items-center justify-center",children:(0,t.jsx)(a.default,{className:"size-4 text-[var(--caree-home-banner-scroll-icon-color)]"})}),(0,t.jsx)("span",{className:"mt-2 text-[color:var(--caree-home-banner-heading-color)] text-[length:var(--caree-home-banner-scroll-text-size)]",children:"Scroll down"})]})})]})})}e.s(["CareersHomeBanner",()=>i],206320)},334570,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(659544);e.i(527967);
272var l=e.i(30700),i=e.i(657688);function n({heading:e,body:n,cta_label:s,cta_url:o,bg_image_url:c,subtitle:d,buttonText:u,buttonHref:m,backgroundImage:h}){let p=s??u??null,g=(0,a.normalizeCmsImage)(c??h??"","");return(0,t.jsx)("section",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:" relative overflow-hidden mb-[var(--feedback-one-margin-bottom-desktop)]! px-[var(--feedback-one-padding-x-mobile)] py-[var(--feedback-one-padding-y-mobile)] md:p-[var(--feedback-one-padding-desktop)] layout-container px-5 ",children:[g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{src:g,alt:"",fill:!0,sizes:"(max-width: 768px) 100vw, 1200px",quality:65,loading:"lazy",className:"absolute inset-0 z-0 object-cover object-center","aria-hidden":!0}),(0,t.jsx)("div",{className:`
273                absolute
274                inset-0
275                w-full
276                h-full
277                pointer-events-none
278                z-[1]
279              `,style:{backgroundImage:"var(--feedback-one-overlay-gradient)"},"aria-hidden":!0})]}):null,(0,t.jsxs)("div",{className:`
280            relative z-10
281            flex
282            flex-col
283            gap-[var(--feedback-one-gap-main)]
284          `,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:`
285                text-start
286                font-[var(--feedback-one-heading-weight-mobile)]
287                text-[length:var(--feedback-one-heading-size-mobile)]
288                leading-[var(--feedback-one-heading-line-mobile)]
289                md:font-[var(--feedback-one-heading-weight-desktop)]
290                md:text-[length:var(--feedback-one-heading-size-desktop)]
291                md:leading-[var(--feedback-one-heading-line-desktop)]
292                text-[var(--feedback-one-heading-color)]
293              `,children:e}),(0,t.jsx)("p",{className:" mt-[10px] text-start text-[var(--feedback-one-text-color)] font-[var(--feedback-one-text-weight-mobile)] text-[length:var(--feedback-one-text-size-mobile)] leading-[var(--feedback-one-text-line-mobile)] md:font-[var(--feedback-one-text-weight-desktop)] md:text-[length:var(--feedback-one-text-size-desktop)] md:leading-[var(--feedback-one-text-line-desktop)] ",children:n??d??""})]}),p&&(0,t.jsxs)(r.Button,{className:"inline-flex max-w-max items-center justify-center gap-2 leading-none",variant:"outlined",href:o??m??"#",children:[p,(0,t.jsx)(l.RightIcon,{className:"block shrink-0 rtl:rotate-180","aria-hidden":!0})]})]})]})})}e.s(["FeedbackSectionOne",()=>n])},866381,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148),n=e.i(863975),s=e.i(477798),o=e.i(114994);function c(e){return e?.trim()?(0,r.stripHtml)(e):""}function d({title:e,backgroundImage:r,heading:d,subheading:u,button_1_text:m,button_1_link:h,button_1_type:p,button_1_show_arrow:g,button_2_text:v,button_2_link:x,button_2_type:b,button_2_show_arrow:f,height:w,show_overlay:y,text_align:j,showOverlay:N=!0,background_image:_,background_image_url:k,background_image_upload:C,bg_image_url:S,bg_image_upload:L,background_alt:I}){let z=(0,i.useTranslations)(),A=c(d)||c(e),q=c(u),E=k?.trim()||S?.trim()||C?.trim()||L?.trim()||_?.trim()||r||"",$=(0,a.normalizeCmsImage)(E,""),P=(0,o.resolvePageBannerHeight)(w),T=(0,o.resolvePageBannerOverlay)(y,N),M=(0,o.pageBannerAlignClasses)((0,o.resolvePageBannerTextAlign)(j)),O=[(0,s.resolvePageBannerButton)({text:m,link:h,type:p,show_arrow:g}),(0,s.resolvePageBannerButton)({text:v,link:x,type:b,show_arrow:f})].filter(e=>null!==e),F=!!(A||q),R=F?"":I?.trim()||z("page_banner");return(0,t.jsxs)("section",{className:"page-banner--premium relative flex items-center overflow-hidden",style:{minHeight:P},"aria-label":F?void 0:z("page_banner"),children:[$?(0,t.jsx)(l.default,{src:$,alt:R,fill:!0,priority:!0,fetchPriority:"high",sizes:"100vw",quality:65,className:"object-cover object-center","aria-hidden":!!F||void 0}):null,T?(0,t.jsx)("div",{className:"absolute inset-0 z-[1]",style:{background:"var(--page-banner-overlay-bg)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`flex flex-col gap-7 md:max-w-[55%] ${M.column} ${M.block}`,children:[A?(0,t.jsx)("h1",{className:`text-[var(--brand-white)] text-[length:var(--page-banner-title-size-mobile)] leading-[var(--page-banner-title-line-mobile)] font-[var(--page-banner-title-weight-mobile)] md:text-[length:var(--page-banner-title-size-desktop)] md:leading-[var(--page-banner-title-line-desktop)] md:font-[var(--page-banner-title-weight-desktop)] ${M.text}`,children:A}):null,q?(0,t.jsx)("p",{className:`body-regular text-[var(--page-banner-title-color)] md:body-large !font-normal ${M.text}`,children:q}):null,O.length>0?(0,t.jsx)("div",{className:`flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${M.buttons}`,children:O.map((e,a)=>(0,t.jsx)(n.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>d,"PageBannerSectionClassic",()=>d])},601256,e=>{"use strict";var t=e.i(843476),a=e.i(770703),r=e.i(271645),l=e.i(242405),i=e.i(101252),n=e.i(506258),s=e.i(470152);let o=(0,a.default)(()=>e.A(952312).then(e=>e.HeaderOneMobileSidebars),{loadableGenerated:{modules:[562537]},ssr:!1}),c=(0,a.default)(()=>e.A(388973).then(e=>
293e.WebsiteExplorePanel),{loadableGenerated:{modules:[512548]},ssr:!1});function d({headerConfig:e}){let{logo:a,nav:d,explore:u,languages:m,activeLanguageCode:h,actions:p,websiteName:g,announcement:v}=e,x=(0,r.useMemo)(()=>d.length>0?(0,i.flattenCategoryLinksFromNav)(d):void 0,[d]),[b,f]=(0,r.useState)(null),[w,y]=(0,r.useState)(!1),[j,N]=(0,r.useState)("main"),[_,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1),[L,I]=(0,r.useState)(!1),z=(0,l.useMediaQuery)("(min-width: 1280px)"),A=z&&!L,q=w&&!A,E=(0,r.useCallback)(e=>{I(e)},[]);(0,r.useEffect)(()=>{let e=q||C;return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[q,C]),(0,r.useEffect)(()=>{if(!_)return;let e=e=>{"Escape"===e.key&&k(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[_]);let $=()=>{y(!1),f(null),k(e=>!e)};return(0,t.jsxs)("header",{className:"sticky top-0 z-[var(--header-two-z-sticky)]","data-modern-header":!0,children:[(0,t.jsx)(s.ModernUtilityBar,{announcement:v,languages:m,activeLanguageCode:h,onOpenGroupSites:()=>{y(!1),k(!1),f(null),S(!0)}}),(0,t.jsx)(s.ModernMobileBar,{logo:a,websiteName:g,visibleAtDesktop:!A,onOpenMenu:()=>{k(!1),N("main"),y(!0),f(null)},onOpenSearch:$}),(0,t.jsx)(n.HeaderOneMainNav,{openMega:b,onMegaChange:f,navItems:e.cmsNav,visible:A,measureLayout:z,onOverflowChange:E,standard:!0,leadingContent:(0,t.jsx)(s.ModernLogo,{logo:a,websiteName:g}),trailingContent:(0,t.jsx)(s.ModernHeaderActions,{actions:p,onOpenSearch:$})}),_?(0,t.jsx)(s.ModernSearchPanel,{onClose:()=>k(!1)}):null,q?(0,t.jsx)(o,{open:q,panel:j,onClose:()=>{y(!1),N("main")},setPanel:N,utilityActions:p,logo:a,cmsCategoryLinks:x,cmsNav:e.cmsNav,standard:!0}):null,C?(0,t.jsx)(c,{isOpen:C,onClose:()=>S(!1),exploreCategories:u}):null]})}e.s(["HeaderOne",()=>d])},230576,e=>{"use strict";var t=e.i(843476),a=e.i(770703),r=e.i(271645);e.i(527967);var l=e.i(337190),i=e.i(242405),n=e.i(101252),s=e.i(948148),o=e.i(104894),c=e.i(125013);let d=(0,a.default)(()=>e.A(435772).then(e=>e.HeaderOneMobileSidebars),{loadableGenerated:{modules:[691400]},ssr:!1}),u=(0,a.default)(()=>e.A(245262).then(e=>e.WebsiteExploreSidebar),{loadableGenerated:{modules:[354950]},ssr:!1}),m=(0,a.default)(()=>e.A(428960).then(e=>e.WebsiteExploreModal),{loadableGenerated:{modules:[497645]},ssr:!1});function h({headerConfig:e}){let a=(0,s.useTranslations)(),{logo:h,nav:p,explore:g,languages:v,activeLanguageCode:x,actions:b,websiteName:f}=e,w=(0,r.useMemo)(()=>p.length>0?(0,n.flattenCategoryLinksFromNav)(p):void 0,[p]),[y,j]=(0,r.useState)(null),[N,_]=(0,r.useState)(!1),[k,C]=(0,r.useState)("main"),[S,L]=(0,r.useState)(!1),[I,z]=(0,r.useState)(!1),A=(0,i.useMediaQuery)("(min-width: 1280px)"),q=A&&!I,E=N&&!q,$=(0,r.useCallback)(e=>{z(e)},[]);return(0,r.useEffect)(()=>{let e=E||S;return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[E,S]),(0,t.jsxs)("header",{className:"sticky top-0 z-[var(--header-two-z-sticky)]","data-premium-header":!0,children:[(0,t.jsx)(c.PremiumLogoSearchBar,{logo:h,actions:b,languages:v,activeLanguageCode:x,websiteName:f,showMenuButton:!q,onOpenNav:()=>{C("main"),_(!0),j(null)}}),(0,t.jsx)(o.HeaderOneMainNav,{openMega:y,onMegaChange:j,productCategoryLinks:w,navItems:e.cmsNav,visible:q,measureLayout:A,onOverflowChange:$,premium:!0,trailingContent:(0,t.jsxs)("button",{type:"button",onClick:()=>L(!0),className:"h1p-marketplace-trigger",children:[(0,t.jsx)(l.GlobeIconNew,{className:"h1p-marketplace-icon"}),(0,t.jsx)("span",{className:"h1p-marketplace-copy",children:a("group_sites")})]})}),E?(0,t.jsx)(d,{open:E,panel:k,onClose:()=>{_(!1),C("main")},setPanel:C,utilityActions:b,logo:h,cmsCategoryLinks:w,cmsNav:e.cmsNav,premium:!0}):null,S?q?(0,t.jsx)(u,{isOpen:S,onClose:()=>L(!1),exploreCategories:g}):(0,t.jsx)(m,{isOpen:S,onClose:()=>L(!1),exploreCategories:g,allBreakpoints:!0}):null]})}e.s(["HeaderOne",()=>h])},462178,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(659544);e.i(527967);var l=e.i(30700),i=e.i(657688);function n({heading:e,body:n,cta_label:s,cta_url:o,bg_image_url:c,subtitle:d,buttonText:u,buttonHref:m,backgroundImage:h,variant:p="default"}){let g=n??d??"",v=s??u??null,x=(0,a.normalizeCmsImage)(c??h??"",""),b="customer-support"===p;return(0,t.jsx)("section",{className:"feedback-one--premium layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:" relative overflow-hidden rounded-[var(--feedback-one-premium-banner-radius)] bg-[var(--feedback-one-premium-banner-bg)] min-h-[var(--feedback-one-premium-banner-min-height-mobile)] md:min-
293h-[var(--feedback-one-premium-banner-min-height)] mb-10 ",children:[x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{src:x,alt:"",fill:!0,sizes:"(max-width: 768px) 100vw, 1200px",quality:70,loading:"lazy",className:["absolute inset-0 z-0 object-cover object-center",b?"rounded-[30px]":""].filter(Boolean).join(" "),"aria-hidden":!0}),b?null:(0,t.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:"var(--feedback-one-premium-overlay)"},"aria-hidden":!0})]}):null,(0,t.jsx)("div",{className:"relative z-10 flex min-h-[inherit] items-center justify-start px-4 py-10 md:px-10 md:py-14",children:(0,t.jsxs)("div",{className:["w-full text-start",b?"md:max-w-[30%]":"max-w-[var(--feedback-one-premium-content-max-width)]"].filter(Boolean).join(" "),children:[e?(0,t.jsx)("h2",{className:" text-start text-[var(--feedback-one-premium-heading-color)] font-[var(--feedback-one-heading-weight-mobile)] text-[length:var(--feedback-one-heading-size-mobile)] leading-[var(--feedback-one-heading-line-mobile)] md:font-[var(--feedback-one-heading-weight-desktop)] md:text-[length:var(--feedback-one-heading-size-desktop)] md:leading-[var(--feedback-one-heading-line-desktop)] ",children:e}):null,g?(0,t.jsx)("p",{className:" mt-3 text-start text-[var(--feedback-one-premium-text-color)] font-[var(--feedback-one-text-weight-mobile)] text-[length:var(--feedback-one-text-size-mobile)] leading-[var(--feedback-one-text-line-mobile)] md:font-[var(--feedback-one-text-weight-desktop)] md:text-[length:var(--feedback-one-text-size-desktop)] md:leading-[var(--feedback-one-text-line-desktop)] ",children:g}):null,v?(0,t.jsxs)(r.Button,{className:"mt-7 inline-flex max-w-max items-center justify-center gap-2 leading-none",variant:"outlined",href:o??m??"#",children:[v,(0,t.jsx)(l.RightIcon,{className:"block h-5 w-5 shrink-0 rtl:rotate-180","aria-hidden":!0})]}):null]})})]})})}e.s(["FeedbackSectionOne",()=>n])},870546,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(716787);var l=e.i(659544);function i({heading:e,subheading:i,subtitle:n,backgroundImage:s,buttonLabel:o,emailPlaceholder:c}){let d=(0,r.useTranslations)(),u=e?.trim()??"",m=i?.trim()??"",h=n?.trim()??"",p=s?.trim()??"",g=o?.trim()??"",v=c?.trim()??"",[x,b]=(0,a.useState)(""),[f,w]=(0,a.useState)(!1),[y,j]=(0,a.useState)(null),N=async e=>{e.preventDefault(),j(null),w(!0);try{let e=await fetch("/api/v1/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x.trim()})}),t=await e.json().catch(()=>({})),a="string"==typeof t.message?t.message.trim():"";a||(422===e.status?a=d("error_email_required"):503===e.status&&(a=d("error_newsletter_api_unreachable"))),e.ok?(j({ok:!0,text:a}),b("")):j({ok:!1,text:a})}catch{j({ok:!1,text:d("error_newsletter_api_unreachable")})}finally{w(!1)}};return(0,t.jsx)("section",{className:"sfs-luxe","data-luxe-subscription":!0,children:(0,t.jsx)("div",{className:"sfs-luxe__shell layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"sfs-luxe__banner",children:[p?(0,t.jsx)("div",{className:"sfs-luxe__bg",style:{backgroundImage:`url(${p})`},"aria-hidden":!0}):null,(0,t.jsxs)("div",{className:"sfs-luxe__content",children:[(0,t.jsxs)("div",{className:"sfs-luxe__copy",children:[u?(0,t.jsx)("h2",{className:"sfs-luxe__heading",children:u}):null,m?(0,t.jsx)("p",{className:"sfs-luxe__subheading",children:m}):null]}),(0,t.jsxs)("div",{className:"sfs-luxe__form-wrap",children:[(0,t.jsxs)("form",{onSubmit:N,className:"sfs-luxe__form",children:[(0,t.jsx)("input",{type:"email",name:"email",value:x,onChange:e=>b(e.target.value),placeholder:v||void 0,disabled:f,required:!0,className:"sfs-luxe__input"}),g?(0,t.jsx)(l.Button,{variant:"primary",type:"submit",disabled:f,className:"sfs-luxe__submit",children:f?"...":g}):null]}),y?(0,t.jsx)("p",{role:"status",className:`sfs-luxe__feedback ${y.ok?"sfs-luxe__feedback--ok":"sfs-luxe__feedback--error"}`,children:y.text}):null,h?(0,t.jsx)("p",{className:"sfs-luxe__privacy",children:h}):null]})]})]})})})}e.s(["SubscriptionFormSection",()=>i])},696653,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);let l=({className:e})=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12 15.991C12.2509 15.991 12.5018 15.8952 12.6931 15.704L18.7128 9.68426C19.0957 9.30133 19.0957 8.68048 18.7128 8.2977C18.33 7.91493 17.7093 7.91493 17.3263 8.2977L12 13.6243L6.67371 8.29789C6.29078 7.91511 5.67011 7.91511 5.28737 8.29789C4.90425 8.68066 4.90425 9.30152 5.28737 9.68445L11.307 15.7042C11.4983 15.8954 11.7492 15.991 12 15.991Z",fill:"currentColor"})});function i({items:e,title:i,description:n,icon:s,variant:o="split",idPrefix:c}){let d=(0,r.useTranslations)(),u=(0,a.useId)(),m=(c?.trim()||u).replace(/:+/g,"-"),[h,p]=(0,a.useState)(null),g="centered"===o,v=(0,a.useMemo)(()=>e??[],[e]);if(!v.length)return null;let x=(0,t.jsx)("div",{className:"pac-p-list",children:v.map((e,a)=>{let r,i=h===a,n=`${m}-popular-faq-btn-${a}`,s=`${m}-popular-faq-panel-${a}`;return(0,t.jsxs)("div",{className:["pac-p-item",i?"is-open":""].filter(
293Boolean).join(" "),children:[(0,t.jsxs)("button",{type:"button",className:"pac-p-trigger","aria-expanded":i,"aria-controls":s,id:n,onClick:()=>p(e=>e===a?null:a),children:[(0,t.jsx)("span",{className:"pac-p-question",children:e.question}),(0,t.jsx)(l,{className:["pac-p-chevron",i?"is-open":""].filter(Boolean).join(" ")})]}),(0,t.jsx)("div",{id:s,role:"region","aria-labelledby":n,hidden:!i,className:"pac-p-panel",children:(0,t.jsx)("div",{className:"pac-p-answer",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:(r=(e.answer??"").trim())?/<\s*[a-z][\s\S]*>/i.test(r)?r:r.replace(/\n/g,"<br />"):""}})})})]},e.question)})});return(0,t.jsx)("section",{"data-premium-pac":!0,"data-pac-variant":o,className:"pac-p-section",children:(0,t.jsx)("div",{className:"layout-container px-3 md:px-5",children:g?(0,t.jsxs)("div",{className:"pac-p-centered",children:[(0,t.jsxs)("div",{className:"pac-p-intro",children:[s?(0,t.jsx)("div",{className:"pac-p-icon",children:s}):null,(0,t.jsx)("h2",{className:"pac-p-title",children:i??d("most_popular_questions")}),n?(0,t.jsx)("p",{className:"pac-p-description",children:n}):null]}),x]}):(0,t.jsx)("div",{className:"pac-p-shell",children:(0,t.jsxs)("div",{className:"pac-p-grid",children:[(0,t.jsxs)("div",{className:"pac-p-intro",children:[s?(0,t.jsx)("div",{className:"pac-p-icon",children:s}):null,(0,t.jsx)("h2",{className:"pac-p-title",children:i??d("most_popular_questions")}),(0,t.jsx)("span",{className:"pac-p-underline","aria-hidden":!0}),(0,t.jsx)("p",{className:"pac-p-description",children:n??d("customer_support_popular_questions_description")})]}),x]})})})})}e.s(["PopularAccordionCustomer",()=>i,"default",0,i])},497442,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(659544);e.i(527967);var l=e.i(30700),i=e.i(657688);function n({heading:e,body:n,cta_label:s,cta_url:o,bg_image_url:c,subtitle:d,buttonText:u,buttonHref:m,backgroundImage:h}){let p=s??u??null,g=(0,a.normalizeCmsImage)(c??h??"","");return(0,t.jsx)("section",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:" relative overflow-hidden mb-[var(--feedback-one-margin-bottom-desktop)]! px-[var(--feedback-one-padding-x-mobile)] py-[var(--feedback-one-padding-y-mobile)] md:p-[var(--feedback-one-padding-desktop)] layout-container px-5 ",children:[g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{src:g,alt:"",fill:!0,sizes:"(max-width: 768px) 100vw, 1200px",quality:65,loading:"lazy",className:"absolute inset-0 z-0 object-cover object-center","aria-hidden":!0}),(0,t.jsx)("div",{className:`
294                absolute
295                inset-0
296                w-full
297                h-full
298                pointer-events-none
299                z-[1]
300              `,style:{backgroundImage:"var(--feedback-one-overlay-gradient)"},"aria-hidden":!0})]}):null,(0,t.jsxs)("div",{className:`
301            relative z-10
302            flex
303            flex-col
304            gap-[var(--feedback-one-gap-main)]
305          `,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:`
306                text-start
307                font-[var(--feedback-one-heading-weight-mobile)]
308                text-[length:var(--feedback-one-heading-size-mobile)]
309                leading-[var(--feedback-one-heading-line-mobile)]
310                md:font-[var(--feedback-one-heading-weight-desktop)]
311                md:text-[length:var(--feedback-one-heading-size-desktop)]
312                md:leading-[var(--feedback-one-heading-line-desktop)]
313                text-[var(--feedback-one-heading-color)]
314              `,children:e}),(0,t.jsx)("p",{className:" mt-[10px] text-start text-[var(--feedback-one-text-color)] font-[var(--feedback-one-text-weight-mobile)] text-[length:var(--feedback-one-text-size-mobile)] leading-[var(--feedback-one-text-line-mobile)] md:font-[var(--feedback-one-text-weight-desktop)] md:text-[length:var(--feedback-one-text-size-desktop)] md:leading-[var(--feedback-one-text-line-desktop)] ",children:n??d??""})]}),p&&(0,t.jsxs)(r.Button,{className:"inline-flex max-w-max items-center justify-center gap-2 leading-none",variant:"outlined",href:o??m??"#",children:[p,(0,t.jsx)(l.RightIcon,{className:"block shrink-0 rtl:rotate-180","aria-hidden":!0})]})]})]})})}e.s(["FeedbackSectionOne",()=>n])},813246,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645),l=e.i(948148);function i({isOpen:e,onClose:i}){let n=(0,l.useTranslations)(),[s,o]=(0,r.useState)("");return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/40","aria-hidden":!0,onClick:i}),(0,t.jsx)("div",{className:"absolute left-0 right-0 top-full z-[61] flex justify-center px-5 sm:px-6",children:(0,t.jsxs)("div",{className:"bg-[color:var(--header-search-card-bg)] w-full lg:max-w-[60%] rounded-[8px] border-[color:var(--header-search-card-border)] lg:rounded-[30px] pt-3 px-5 pb-5 lg:px-7 lg:py-6",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("p",{className:"pe-8 text-[length:var(--header-search-text-size)] text-[var(--header-search-label-color)] lg:text-[length:var(--header-search-text-size)]",children:n("search")}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":n("close_search"),className:"absolute end-0 top-0 flex h-6 w-6 items-center justify-center",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:13,height:13})})]}),(0,t.jsxs)("form",{className:"flex flex-col gap-[var(--header-search-form-gap)] lg:flex-row lg:items-center pt-1 lg:pt-3",onSubmit:e=>{e.preventDefault()},children:[(0,t.jsx)("label",{htmlFor:"header-search-input",className:"sr-only",children:n("search")}),(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)("input",{id:"header-search-input",value:s,onChange:e=>o(e.target.value),placeholder:n("header_search_placeholder"),className:"w-full rounded-[25px] bg-[var(--header-search-input-bg-mobile)] py-[9px] ps-5 pe-12 text-[length:var(--header-search-text-size)] text-[var(--header-search-input-color)] lg:rounded-[30px] lg:bg-[var(--header-search-input-bg-desktop)] lg:px-10 lg:py-[14px]"}),(0,t.jsx)("button",{type:"submit",className:"absolute end-3 top-1/2 inline-flex h-[30px] w-[30px] -translate-y-1/2 items-center justify-center rounded-full bg-[var(--header-search-icon-bg)] lg:hidden","aria-label":n("run_search"),children:(0,t.jsx)(a.default,{src:"/search.svg",alt:"",width:14,height:14})})]}),(0,t.jsx)("button",{type:"submit",className:"hidden shrink-0 rounded-[40px] bg-[var(--header-search-desktop-btn-bg)] px-[50px] py-[15px] text-sm font-[var(--header-search-desktop-btn-weight)] tracking-[0.5px] text-[var(--header-search-desktop-btn-color)] shadow-md lg:inline-flex hover:bg-[var(--header-search-desktop-btn-hover)] transition",children:n("search")})]})]})})]}):null}e.s(["SearchOverlay",()=>i])},792678,e=>{"use strict";var t=e.i(843476),a=e.i(770703),r=e.i(271645);e.i(527967);var l=e.i(419037),i=e.i(242405),n=e.i(101252),s=e.i(948148),o=e.i(907277),c=e.i(641211);let d=(0,a.default)(()=>e.A(160299).then(e=>e.HeaderOneMobileSidebars),{loadableGenerated:{modules:[36585]},ssr:!1}),u=(0,a.default)(()=>e.A(115825).then(e=>
314e.WebsiteExplorePanel),{loadableGenerated:{modules:[396922]},ssr:!1});function m({headerConfig:e}){let a=(0,s.useTranslations)(),{logo:m,nav:h,explore:p,languages:g,activeLanguageCode:v,actions:x,websiteName:b}=e,f=(0,r.useMemo)(()=>h.length>0?(0,n.flattenCategoryLinksFromNav)(h):void 0,[h]),[w,y]=(0,r.useState)(null),[j,N]=(0,r.useState)(!1),[_,k]=(0,r.useState)("main"),[C,S]=(0,r.useState)(!1),[L,I]=(0,r.useState)(!1),z=(0,i.useMediaQuery)("(min-width: 1280px)"),A=z&&!L,q=j&&!A,E=(0,r.useCallback)(e=>{I(e)},[]);return(0,r.useEffect)(()=>{let e=q||C;return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[q,C]),(0,t.jsxs)("header",{className:"sticky top-0 z-[var(--header-two-z-sticky)]","data-standard-header":!0,children:[(0,t.jsx)(c.StandardLogoSearchBar,{logo:m,actions:x,languages:g,activeLanguageCode:v,websiteName:b,showMenuButton:!A,onOpenNav:()=>{k("main"),N(!0),y(null)},onOpenGroupSites:()=>S(!0)}),(0,t.jsx)(o.HeaderOneMainNav,{openMega:w,onMegaChange:y,productCategoryLinks:f,navItems:e.cmsNav,visible:A,measureLayout:z,onOverflowChange:E,standard:!0,trailingContent:(0,t.jsxs)("button",{type:"button",onClick:()=>S(!0),className:"h1s-nav-trailing-trigger",children:[(0,t.jsx)(l.GlobeIcon,{className:"h1s-nav-trailing-icon","aria-hidden":!0}),(0,t.jsx)("span",{className:"h1s-nav-trailing-copy",children:a("group_sites")})]})}),q?(0,t.jsx)(d,{open:q,panel:_,onClose:()=>{N(!1),k("main")},setPanel:k,utilityActions:x,logo:m,cmsCategoryLinks:f,cmsNav:e.cmsNav,standard:!0}):null,C?(0,t.jsx)(u,{isOpen:C,onClose:()=>S(!1),exploreCategories:p}):null]})}e.s(["HeaderOne",()=>m])},377449,e=>{"use strict";var t=e.i(843476),a=e.i(770703),r=e.i(271645),l=e.i(242405),i=e.i(101252),n=e.i(495746),s=e.i(25153),o=e.i(815958);let c=(0,a.default)(()=>e.A(473186).then(e=>e.HeaderOneMobileSidebars),{loadableGenerated:{modules:[727304]},ssr:!1}),d=(0,a.default)(()=>e.A(782818).then(e=>e.WebsiteExplorePanel),{loadableGenerated:{modules:[168369]},ssr:!1});function u({headerConfig:e}){let{logo:a,nav:u,actions:m,websiteName:h,languages:p,activeLanguageCode:g,explore:v}=e,x=(0,r.useMemo)(()=>u.length>0?(0,i.flattenCategoryLinksFromNav)(u):void 0,[u]),[b,f]=(0,r.useState)(null),[w,y]=(0,r.useState)(!1),[j,N]=(0,r.useState)("main"),[_,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1),[L,I]=(0,r.useState)(!1),z=(0,l.useMediaQuery)("(min-width: 1280px)"),A=z&&!L,q=!A,E=w&&!A,[$,P]=(0,r.useState)(A);$!==A&&(P(A),A&&(y(!1),N("main"),f(null)));let T=(0,r.useCallback)(e=>{I(e)},[]);(0,r.useEffect)(()=>(document.body.style.overflow=E||_?"hidden":"",()=>{document.body.style.overflow=""}),[E,_]),(0,r.useEffect)(()=>{if(!C)return;let e=e=>{"Escape"===e.key&&S(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[C]);let M=()=>{y(!1),f(null),S(e=>!e)};return(0,t.jsxs)("header",{className:"sticky top-0 z-[var(--header-two-z-sticky)]","data-luxe-header":!0,children:[(0,t.jsx)(s.LuxeUtilityBar,{languages:p,activeLanguageCode:g,onOpenGroupSites:()=>{S(!1),y(!1),f(null),k(!0)}}),(0,t.jsx)(o.LuxeMobileBar,{logo:a,websiteName:h,visibleAtDesktop:q,onOpenMenu:()=>{S(!1),N("main"),y(!0),f(null)},onOpenSearch:M}),(0,t.jsx)(n.HeaderOneMainNav,{openMega:b,onMegaChange:f,navItems:e.cmsNav,visible:A,measureLayout:z,onOverflowChange:T,standard:!0,leadingContent:(0,t.jsx)(o.LuxeLogo,{logo:a,websiteName:h}),trailingContent:(0,t.jsx)(o.LuxeHeaderActions,{actions:m,onOpenSearch:M})}),C?(0,t.jsx)(o.LuxeSearchPanel,{onClose:()=>S(!1)}):null,E?(0,t.jsx)(c,{open:E,panel:j,onClose:()=>{y(!1),N("main")},setPanel:N,utilityActions:m,logo:a,cmsCategoryLinks:x,cmsNav:e.cmsNav,standard:!0}):null,_?(0,t.jsx)(d,{isOpen:_,onClose:()=>k(!1),exploreCategories:v}):null]})}e.s(["HeaderOne",()=>u])},79283,e=>{"use strict";var t=e.i(843476),a=e.i(770703),r=e.i(271645),l=e.i(242405),i=e.i(101252),n=e.i(321393),s=e.i(484147);let o=(0,a.default)(()=>e.A(485431).then(e=>e.HeaderOneMobileSidebars),{loadableGenerated:{modules:[318494]},ssr:!1}),c=(0,a.default)(()=>e.A(290246).then(e=>e.LanguageModal),{loadableGenerated:{modules:[388978]},ssr:!1}),d=(0,a.default)(()=>e.A(392481).then(e=>e.WebsiteExploreModal),{loadableGenerated:{modules:[965333]},ssr:!1});function u({headerConfig:e}){let{logo:a,nav:u,explore:m,languages:h,activeLanguageCode:p,actions:g,websiteName:v}=e,x=(0,r.useMemo)(()=>u.length>0?(0,i.flattenCategoryLinksFromNav)(u):void 0,[u]),[b,f]=(0,r.useState)(null),[w,y]=(0,r.useState)(!1),[j,N]=(0,r.useState)("main"),[_,k]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1),[L,I]=(0,r.useState)(!1),z=(0,l.useMediaQuery)("(min-width: 1280px)"),A=z&&!L,q=!A,E=(0,r.useCallback)(e=>{I(e)},[]);return(0,r.useEffect)(()=>{let e=w||_||C;return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[w,_,C]),(0,r.useEffect)(()=>{z||I(!1)},[z]),(0,r.useEffect)(()=>{A&&(y(!1),N("main"),f(null))},[A]),(0,t.jsxs)("header",{className:"sticky top-0 z-[var(--header-two-z-sticky)]",children:[(0,t.jsx)(s.HeaderTwoTopBar,{logo:a,websiteName:v,showMenuButton:q,onOpenMobileMenu:()=>{N("main"),y(!0),f(null)},onOpenLanguage:()=>k(!0),onOpenGroupSites:()=>S(!0)}),(0,t.jsx)("div",{className:A?"header-one-nav-slot":void 0,children:(0,t.jsx)(n.HeaderOneMainNav,{openMega:b,onMegaChange:f,utilityActions:g,productCategoryLinks:x,navItems:e.cmsNav,visible:A,measureLayout:z,onOverflowChange:E})}),w?(0,t.jsx)(o,{open:w,panel:j,onClose:()=>{y(!1),N("main")},setPanel:N,utilityActions:g,logo:a,cmsCategoryLinks:x,cmsNav:e.cmsNav}):null,_?(0,t.jsx)(c,{isOpen:_,onClose:()=>k(!1),languages:h,activeLanguageCode:p,allBreakpoints:!0}):null,C?(0,t.jsx)(d,{isOpen:C,onClose:()=>S(!1),exploreCategories:m,allBreakpoints:!0}):null]})}e.s(["HeaderOne",()=>u])},548693,e=>{"use strict";var t=e.i(843476),a=e.i(770703),r=e.i(271645);e.i(527967);var l=e.i(419037),i=e.i(242405),n=e.i(101252),s=e.i(948148),o=e.i(591621),c=e.i(632429);let d=(0,a.default)(()=>e.A(298967).then(e=>e.HeaderOneMobileSidebars),{loadableGenerated:{modules:[732853]},ssr:!1}),u=(0,a.default)(()=>e.A(548308).then(e=>
314e.WebsiteExplorePanel),{loadableGenerated:{modules:[860640]},ssr:!1});function m({headerConfig:e}){let a=(0,s.useTranslations)(),{logo:m,nav:h,explore:p,languages:g,activeLanguageCode:v,actions:x,websiteName:b}=e,f=(0,r.useMemo)(()=>h.length>0?(0,n.flattenCategoryLinksFromNav)(h):void 0,[h]),[w,y]=(0,r.useState)(null),[j,N]=(0,r.useState)(!1),[_,k]=(0,r.useState)("main"),[C,S]=(0,r.useState)(!1),[L,I]=(0,r.useState)(!1),z=(0,i.useMediaQuery)("(min-width: 1280px)"),A=z&&!L,q=j&&!A,E=(0,r.useCallback)(e=>{I(e)},[]);return(0,r.useEffect)(()=>{let e=q||C;return document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}},[q,C]),(0,t.jsxs)("header",{className:"sticky top-0 z-[var(--header-two-z-sticky)]","data-sleek-header":!0,children:[(0,t.jsx)(c.StandardLogoSearchBar,{logo:m,actions:x,languages:g,activeLanguageCode:v,websiteName:b,showMenuButton:!A,onOpenNav:()=>{k("main"),N(!0),y(null)},onOpenGroupSites:()=>S(!0)}),(0,t.jsx)(o.HeaderOneMainNav,{openMega:w,onMegaChange:y,navItems:e.cmsNav,visible:A,measureLayout:z,onOverflowChange:E,standard:!0,trailingContent:(0,t.jsxs)("button",{type:"button",onClick:()=>S(!0),className:"h1s-nav-trailing-trigger",children:[(0,t.jsx)(l.GlobeIcon,{className:"h1s-nav-trailing-icon","aria-hidden":!0}),(0,t.jsx)("span",{className:"h1s-nav-trailing-copy",children:a("group_sites")})]})}),q?(0,t.jsx)(d,{open:q,panel:_,onClose:()=>{N(!1),k("main")},setPanel:k,utilityActions:x,logo:m,cmsCategoryLinks:f,cmsNav:e.cmsNav,standard:!0}):null,C?(0,t.jsx)(u,{isOpen:C,onClose:()=>S(!1),exploreCategories:p}):null]})}e.s(["HeaderOne",()=>m])},955537,e=>{e.v({card:"AuthSsoSplitSection-module__ZcCBiG__card",description:"AuthSsoSplitSection-module__ZcCBiG__description",footer:"AuthSsoSplitSection-module__ZcCBiG__footer",footerLine:"AuthSsoSplitSection-module__ZcCBiG__footerLine",footerLink:"AuthSsoSplitSection-module__ZcCBiG__footerLink",molecularNetwork:"AuthSsoSplitSection-module__ZcCBiG__molecularNetwork",page:"AuthSsoSplitSection-module__ZcCBiG__page",providerButton:"AuthSsoSplitSection-module__ZcCBiG__providerButton",providerIcon:"AuthSsoSplitSection-module__ZcCBiG__providerIcon",providerIconSlot:"AuthSsoSplitSection-module__ZcCBiG__providerIconSlot",providerLabel:"AuthSsoSplitSection-module__ZcCBiG__providerLabel",providerList:"AuthSsoSplitSection-module__ZcCBiG__providerList",title:"AuthSsoSplitSection-module__ZcCBiG__title"})},776415,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(79951);var r=e.i(902936);e.i(527967);var l=e.i(237407),i=e.i(707029),n=e.i(28987),s=e.i(44512),o=e.i(147872),c=e.i(703039),c=c,d=e.i(956061),u=e.i(578938),m=e.i(955537);function h({id:e}){let a="google"===e?n.GoogleLogoIcon:"microsoft"===e?o.MicroSoftLogoIcon:"apple"===e?l.AppleLogoIcon:"linkedin"===e?s.LinkedinLogoIcon:i.FacebookLogoIcon;return(0,t.jsx)(a,{className:m.default.providerIcon,"aria-hidden":"true"})}function p(e){if("compact"===e.variant)return(0,t.jsx)(d.AuthSsoSplitSection,{...e});let{title:l,description:i,providers:n,footerLines:s,returnPathAfterAuth:o}=e;return(0,t.jsxs)("section",{className:m.default.page,"data-premium-auth-page":!0,children:[(0,t.jsx)(c.default,{className:m.default.molecularNetwork,"aria-hidden":"true",focusable:"false"}),(0,t.jsxs)("div",{className:m.default.card,children:[(0,t.jsx)("h1",{className:m.default.title,children:l}),(0,t.jsx)("p",{className:m.default.description,children:i}),(0,t.jsx)("div",{className:m.default.providerList,children:n.map(e=>(0,t.jsxs)("button",{type:"button",className:m.default.providerButton,"data-provider":e.id,"aria-label":`${e.label} Button`,onClick:()=>(function(e,t){("google"===e||"apple"===e||"microsoft"===e)&&(0,u.initiateSocialLogin)(e,{returnPath:t?.trim()||(0,u.peekAuthReturnPath)()||void 0})})(e.id,o),children:[(0,t.jsx)("span",{className:m.default.providerIconSlot,"aria-hidden":"true",children:(0,t.jsx)(h,{id:e.id})}),(0,t.jsx)("span",{className:m.default.providerLabel,children:e.label})]},e.id))}),(0,t.jsx)("div",{className:m.default.footer,children:s.map((e,l)=>(0,t.jsxs)("p",{className:m.default.footerLine,children:[e.prefix," ",e.links.map((e,l)=>(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(r.Link,{href:e.href,className:m.default.footerLink,children:e.label}),e.suffix?` ${e.suffix} `:null]},`${e.href}-${l}`))]},`${e.prefix}-${l}`))})]})]})}e.s(["AuthSsoSplitSection",()=>p],776415)},681379,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148),n=e.i(401640);function s(e){let t=e.text?.trim()??"";return t?{text:t,link:e.link?.trim()??"",variant:"outlined"===(e.type?.trim().toLowerCase()??"")?"outlined":"primary",showArrow:!0===e.show_arrow||1===e.show_arrow}:null}function o(e){if("number"==typeof e){if(!Number.isFinite(e))return;return`${Math.min(100,Math.max(1,e))}%`}let t=e?.trim();if(t){if(/^\d+(?:\.\d+)?$/.test(t)){let e=Number(t);return`${Math.min(100,Math.max(1,e))}%`}if(/^\d+(?:\.\d+)?(?:%|px|rem|em|vw|ch)$/i.test(t))return t}}function c(e){return e?.trim()?(0,r.stripHtml)(e):""}function d({title:e,backgroundImage:r,heading:d,subheading:u,button_1_text:m,button_1_link:h,button_1_type:p,button_1_show_arrow:g,button_2_text:v,button_2_link:x,button_2_type:b,button_2_show_arrow:f,height:w,content_width_mobile:y,content_width_tablet:j,content_width_desktop:N,show_overlay:_,text_align:k,showOverlay:C=!0,background_image:S,background_image_url:L,background_image_upload:I,bg_image_url:z,bg_image_upload:A,background_alt:q}){var E;let $,P,T=(0,i.useTranslations)(),M=c(d)||c(e),O=c(u),F=L?.trim()||z?.trim()||I?.trim()||A?.trim()||S?.trim()||r||"",R=(0,a.normalizeCmsImage)(F,""),B="number"!=typeof($="string"==typeof w?Number(w):w)||Number.isNaN($)?300:Math.min(700,Math.max(300,Math.round($))),D=o(y),H=o(j),U=o(N),G={...D?{"--page-banner-content-width-mobile":D}:{},...H?{"--page-banner-content-width-tablet":H}:{},...U?{"--page-banner-content-width-desktop":U}:{}},W=!1!==_&&0!==_&&(!0===_||1===_||!1!==C),V={text:E="text-center"===(P=k?.trim().toLowerCase()??"")||"center"===P?"text-center":"text-end"===P||"end"===P?"text-end":"text-start",column:"text-center"===E?"items-center":"text-end"===E?"items-end":"items-start",buttons:"text-center"===E?"justify-center":"text-end"===E?"justify-end":"justify-start",block:"text-center"===E?"mx-auto":"text-end"===E?"ms-auto":"",divi
314der:"text-center"===E?"self-center":"text-end"===E?"self-end":"self-start"},K=[s({text:m,link:h,type:p,show_arrow:g}),s({text:v,link:x,type:b,show_arrow:f})].filter(e=>null!==e),Y=!!(M||O),Q=Y?"":q?.trim()||T("page_banner");return(0,t.jsxs)("section",{className:"page-banner-classic relative flex items-center overflow-hidden","data-modern-page-banner":!0,style:{minHeight:B,"--page-banner-classic-min-height":`${B}px`},"aria-label":Y?void 0:T("page_banner"),children:[R?(0,t.jsx)(l.default,{src:R,alt:Q,fill:!0,priority:!0,fetchPriority:"high",sizes:"100vw",quality:65,className:"z-0 object-cover object-center","aria-hidden":!!Y||void 0}):null,W?(0,t.jsx)("div",{className:"absolute inset-0 z-[1]",style:{background:"var(--page-banner-overlay-bg)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"page-banner-classic-inner relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`page-banner-classic-content ${V.column} ${V.block}`,style:G,children:[(0,t.jsxs)("div",{className:`page-banner-classic-stack ${V.column}`,children:[M?(0,t.jsx)("h1",{className:`m-0 text-[var(--brand-primary-deep)] text-[length:var(--page-banner-title-size-mobile)] leading-[var(--page-banner-title-line-mobile)] font-[var(--page-banner-title-weight-mobile)] md:text-[length:var(--page-banner-title-size-desktop)] md:leading-[var(--page-banner-title-line-desktop)] md:font-[var(--page-banner-title-weight-desktop)] ${V.text}`,children:M}):null,O?(0,t.jsx)("p",{className:`m-0 body-regular md:body-regular !font-normal text-[var(--brand-black)] ${V.text}`,children:O}):null]}),K.length>0?(0,t.jsx)("div",{className:`page-banner-classic-cta flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${V.buttons}`,children:K.map((e,a)=>(0,t.jsx)(n.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>d,"PageBannerSectionClassic",()=>d],681379)},640853,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148),n=e.i(28249);function s(e){let t=e.text?.trim()??"";return t?{text:t,link:e.link?.trim()??"",variant:"outlined"===(e.type?.trim().toLowerCase()??"")?"outlined":"primary",showArrow:!0===e.show_arrow||1===e.show_arrow}:null}function o(e){return e?.trim()?(0,r.stripHtml)(e):""}function c({title:e,backgroundImage:r,heading:c,subheading:d,button_1_text:u,button_1_link:m,button_1_type:h,button_1_show_arrow:p,button_2_text:g,button_2_link:v,button_2_type:x,button_2_show_arrow:b,height:f,show_overlay:w,text_align:y,showOverlay:j=!0,background_image:N,background_image_url:_,background_image_upload:k,bg_image_url:C,bg_image_upload:S,background_alt:L}){var I;let z,A,q=(0,i.useTranslations)(),E=o(c)||o(e),$=o(d),P=_?.trim()||C?.trim()||k?.trim()||S?.trim()||N?.trim()||r||"",T=(0,a.normalizeCmsImage)(P,""),M="number"!=typeof(z="string"==typeof f?Number(f):f)||Number.isNaN(z)?300:Math.min(700,Math.max(300,Math.round(z))),O=!1!==w&&0!==w&&(!0===w||1===w||!1!==j),F={text:I="text-center"===(A=y?.trim().toLowerCase()??"")||"center"===A?"text-center":"text-end"===A||"end"===A?"text-end":"text-start",column:"text-center"===I?"items-center":"text-end"===I?"items-end":"items-start",buttons:"text-center"===I?"justify-center":"text-end"===I?"justify-end":"justify-start",block:"text-center"===I?"mx-auto":"text-end"===I?"ms-auto":""},R=[s({text:u,link:m,type:h,show_arrow:p}),s({text:g,link:v,type:x,show_arrow:b})].filter(e=>null!==e),B=!!(E||$),D=B?"":L?.trim()||q("page_banner");return(0,t.jsxs)("section",{className:"relative flex items-center overflow-hidden",style:{minHeight:M},"aria-label":B?void 0:q("page_banner"),children:[T?(0,t.jsx)(l.default,{src:T,alt:D,fill:!0,priority:!0,fetchPriority:"high",sizes:"100vw",quality:65,className:"object-cover object-center","aria-hidden":!!B||void 0}):null,O?(0,t.jsx)("div",{className:"absolute inset-0 z-[1]",style:{background:"var(--page-banner-overlay-bg)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`flex flex-col gap-7 md:max-w-[70%] ${F.column} ${F.block}`,children:[E?(0,t.jsx)("h1",{className:`text-[var(--page-banner-title-color)] text-[length:var(--page-banner-title-size-mobile)] leading-[var(--page-banner-title-line-mobile)] font-[var(--page-banner-title-weight-mobile)] md:text-[length:var(--page-banner-title-size-desktop)] md:leading-[var(--page-banner-title-line-desktop)] md:font-[var(--page-banner-title-weight-desktop)] ${F.text}`,children:E}):null,$?(0,t.jsx)("p",{className:`body-regular text-[var(--page-banner-title-color)] md:body-large !font-normal md:max-w-[65%] ${F.text}`,children:$}):null,R.length>0?(0,t.jsx)("div",{className:`flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${F.buttons}`,children:R.map((e,a)=>(0,t.jsx)(n.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>c,"PageBannerSectionClassic",()=>c],640853)},625039,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148),n=e.i(290365);function s(e){let t=e.text?.trim()??"";return t?{text:t,link:e.link?.trim()??"",variant:"outlined"===(e.type?.trim().toLowerCase()??"")?"outlined":"primary",showArrow:!0===e.show_arrow||1===e.show_arrow}:null}function o(e){return e?.trim()?(0,r.stripHtml)(e):""}function c({title:e,backgroundImage:r,heading:c,subheading:d,button_1_text:u,button_1_link:m,button_1_type:h,button_1_show_arrow:p,button_2_text:g,button_2_link:v,button_2_type:x,button_2_show_arrow:b,height:f,show_overlay:w,text_align:y,showOverlay:j=!0,background_image:N,background_image_url:_,background_image_upload:k,bg_image_url:C,bg_image_upload:S,background_alt:L}
314){var I;let z,A,q=(0,i.useTranslations)(),E=o(c)||o(e),$=o(d),P=_?.trim()||C?.trim()||k?.trim()||S?.trim()||N?.trim()||r||"",T=(0,a.normalizeCmsImage)(P,""),M="number"!=typeof(z="string"==typeof f?Number(f):f)||Number.isNaN(z)?300:Math.min(700,Math.max(300,Math.round(z))),O=!1!==w&&0!==w&&(!0===w||1===w||!1!==j),F={text:I="text-center"===(A=y?.trim().toLowerCase()??"")||"center"===A?"text-center":"text-end"===A||"end"===A?"text-end":"text-start",column:"text-center"===I?"items-center":"text-end"===I?"items-end":"items-start",buttons:"text-center"===I?"justify-center":"text-end"===I?"justify-end":"justify-start",block:"text-center"===I?"mx-auto":"text-end"===I?"ms-auto":"",divider:"text-center"===I?"self-center":"text-end"===I?"self-end":"self-start"},R=[s({text:u,link:m,type:h,show_arrow:p}),s({text:g,link:v,type:x,show_arrow:b})].filter(e=>null!==e),B=!!(E||$),D=B?"":L?.trim()||q("page_banner");return(0,t.jsxs)("section",{className:"page-banner-classic relative flex items-center overflow-hidden border-b border-[var(--brand-primary)]",style:{minHeight:M,"--page-banner-classic-min-height":`${M}px`},"aria-label":B?void 0:q("page_banner"),children:[T?(0,t.jsx)(l.default,{src:T,alt:D,fill:!0,priority:!0,fetchPriority:"high",sizes:"100vw",quality:65,className:"z-0 object-cover object-center","aria-hidden":!!B||void 0}):null,O?(0,t.jsx)("div",{className:"absolute inset-0 z-[1]",style:{background:"var(--page-banner-overlay-bg)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"page-banner-classic-inner relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`page-banner-classic-content md:w-[40%] md:max-w-[40%] ${F.column} ${F.block}`,children:[(0,t.jsxs)("div",{className:`page-banner-classic-stack ${F.column}`,children:[E?(0,t.jsx)("h1",{className:`m-0 text-[var(--page-banner-title-color)] text-[length:var(--page-banner-title-size-mobile)] leading-[var(--page-banner-title-line-mobile)] font-[var(--page-banner-title-weight-mobile)] md:text-[length:var(--page-banner-title-size-desktop)] md:leading-[var(--page-banner-title-line-desktop)] md:font-[var(--page-banner-title-weight-desktop)] ${F.text}`,children:function(e){let a=e.trim().split(/\s+/).filter(Boolean);if(0===a.length)return null;if(a.length<=3)return(0,t.jsx)("span",{className:"page-banner-classic-title-accent",children:e});let r=a.slice(0,3).join(" "),l=a.slice(3).join(" ");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"page-banner-classic-title-accent",children:r}),` ${l}`]})}(E)}):null,$?(0,t.jsx)("p",{className:`m-0 body-regular md:body-large !font-normal ${F.text}`,children:$}):null]}),R.length>0?(0,t.jsx)("div",{className:`page-banner-classic-cta flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${F.buttons}`,children:R.map((e,a)=>(0,t.jsx)(n.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>c,"PageBannerSectionClassic",()=>c],625039)},293803,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(716787);var l=e.i(659544);function i({heading:e,subheading:i,subtitle:n,backgroundImage:s,buttonLabel:o,emailPlaceholder:c}){let d=(0,r.useTranslations)(),u=e?.trim()??"",m=i?.trim()??"",h=n?.trim()??"",p=s?.trim()??"",g=o?.trim()??"",v=c?.trim()??"",[x,b]=(0,a.useState)(""),[f,w]=(0,a.useState)(!1),[y,j]=(0,a.useState)(null),N=async e=>{e.preventDefault(),j(null),w(!0);try{let e=await fetch("/api/v1/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x.trim()})}),t=await e.json().catch(()=>({})),a="string"==typeof t.message?t.message.trim():"";a||(422===e.status?a=d("error_email_required"):503===e.status&&(a=d("error_newsletter_api_unreachable"))),e.ok?(j({ok:!0,text:a}),b("")):j({ok:!1,text:a})}catch{j({ok:!1,text:d("error_newsletter_api_unreachable")})}finally{w(!1)}};return(0,t.jsxs)("section",{className:" relative pt-(--subscription-form-padding-top-mobile) pb-(--subscription-form-padding-bottom-mobile) md:pt-(--subscription-form-padding-top-desktop) md:pb-(--subscription-form-padding-bottom-desktop) ",style:{backgroundColor:"var(--subscription-form-bg-color)"},children:[p?(0,t.jsx)("div",{className:" absolute inset-0 h-full bg-cover bg-left bg-no-repeat rtl:bg-right ",style:{backgroundImage:`url(${p})`}}):null,(0,t.jsx)("div",{className:`
315          relative
316          px-3
317          layout-container
318          grid grid-cols-1 md:grid-cols-2
319        `,children:(0,t.jsxs)("div",{className:" flex flex-col w-full gap-(--subscription-form-gap-inner-mobile) md:gap-(--subscription-form-gap-inner-desktop) ",children:[u?(0,t.jsx)("h2",{className:" text-start text-(--subscription-form-heading-color) font-(--subscription-form-heading-weight-mobile) text-(length:--subscription-form-heading-size-mobile) leading-(--subscription-form-heading-line-mobile) md:font-(--subscription-form-heading-weight-desktop) md:text-(length:--subscription-form-heading-size-desktop) md:leading-(--subscription-form-heading-line-desktop) ",children:u}):null,m?(0,t.jsx)("p",{className:" text-start text-(--subscription-form-subtitle-color) text-(length:--subscription-form-subtitle-size-mobile) leading-(--subscription-form-subtitle-line-mobile) font-(--subscription-form-subtitle-weight-mobile) md:text-(length:--subscription-form-subtitle-size-desktop) md:leading-(--subscription-form-subtitle-line-desktop) md:font-(--subscription-form-subtitle-weight-desktop) ",children:m}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-(--subscription-form-gap-mobile) md:gap-(--subscription-form-gap-desktop)",children:[(0,t.jsxs)("form",{onSubmit:N,className:" flex gap-(--subscription-form-inner-gap-mobile) md:gap-(--subscription-form-inner-gap-desktop) ",children:[(0,t.jsx)("input",{type:"email",name:"email",value:x,onChange:e=>b(e.target.value),placeholder:v||void 0,disabled:f,required:!0,className:" w-full px-(--subscription-form-input-padding-x-mobile) py-(--subscription-form-input-padding-y-mobile) md:px-(--subscription-form-input-padding-x-desktop) md:py-(--subscription-form-input-padding-y-desktop) border-2 border-(--subscription-form-input-border-color) rounded-full bg-(--subscription-form-input-bg) text-(--subscription-form-input-text-color) text-start text-(length:--subscription-form-input-text-size-mobile) md:text-(length:--subscription-form-input-text-size-desktop) leading-(--subscription-form-input-text-line-mobile) md:leading-(--subscription-form-input-text-line-desktop) font-(--subscription-form-input-text-weight-mobile) md:font-(--subscription-form-input-text-weight-desktop) placeholder:text-(--subscription-form-input-placeholder-color) placeholder:[font-size:var(--subscription-form-input-placeholder-size-mobile)] md:placeholder:[font-size:var(--subscription-form-input-placeholder-size-desktop)] placeholder:font-(--subscription-form-input-weight-mobile) md:placeholder:font-(--subscription-form-input-weight-desktop) placeholder:[font-weight:var(--subscription-form-input-placeholder-weight-mobile)] md:placeholder:[font-weight:var(--subscription-form-input-placeholder-weight-desktop)] disabled:opacity-60 "}),g?(0,t.jsx)(l.Button,{variant:"primary",type:"submit",disabled:f,className:"inline-flex text-center justify-center",children:f?"...":g}):null]}),y?(0,t.jsx)("p",{role:"status",className:`
320                text-start
321                text-(length:--subscription-form-subtitle-size-mobile)
322                leading-(--subscription-form-subtitle-line-mobile)
323                font-(--subscription-form-subtitle-weight-mobile)
324                md:text-(length:--subscription-form-subtitle-size-desktop)
325                md:leading-(--subscription-form-subtitle-line-desktop)
326                md:font-(--subscription-form-subtitle-weight-desktop)
327                ${y.ok?"text-(--subscription-form-heading-color)":"text-red-600"}
328              `,children:y.text}):null,h?(0,t.jsx)("p",{className:" text-start text-(--subscription-form-subtitle-color) text-(length:--subscription-form-subtitle-size-mobile) leading-(--subscription-form-subtitle-line-mobile) font-(--subscription-form-subtitle-weight-mobile) md:text-(length:--subscription-form-subtitle-size-desktop) md:leading-(--subscription-form-subtitle-line-desktop) md:font-(--subscription-form-subtitle-weight-desktop) ",children:h}):null]})]})})]})}e.s(["SubscriptionFormSection",()=>i])},255922,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148),l=e.i(632423);function i(e){return[...e].sort((e,t)=>
328e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"}))}async function n(e){try{let t=await fetch(`/api/technical-details?page=${e}`,{cache:"no-store"});if(!t.ok)return null;let a=await t.json();return{data:a.data??[],meta:a.meta}}catch{return null}}function s({docs:e,label:a,downloadLabel:r}){let i=e?.find(e=>e.url?.trim())??null;return(0,t.jsxs)("div",{className:"tl-dl-wrap",children:[(0,t.jsx)("span",{className:"tl-dl-mobile-label",children:a}),(0,t.jsx)("div",{className:"tl-dl-cell",children:i?(0,t.jsx)("span",{title:i.display_name||a,children:(0,t.jsx)(l.AuthGatedDocLink,{href:i.url,className:"tl-dl-chip",children:r})}):(0,t.jsx)("span",{className:"tl-dl-chip tl-dl-chip--empty","aria-hidden":!0,children:(0,t.jsx)("span",{className:"text-sm",children:"—"})})})]})}function o({initialData:e,initialMeta:l}){let o=(0,r.useTranslations)(),[c,d]=(0,a.useState)(()=>i(e)),[u,m]=(0,a.useState)(l),[h,p]=(0,a.useTransition)(),g=u.current_page,v=u.last_page;function x(e){e<1||e>v||e===g||p(async()=>{let t=await n(e);t&&(d(i(t.data)),m(t.meta),window.scrollTo({top:0,behavior:"smooth"}))})}let b=Array.from({length:v},(e,t)=>t+1);return(0,t.jsx)("section",{"data-premium-tl":!0,className:"pt-[var(--technical-library-padding-top-mobile)] pb-[var(--technical-library-padding-bottom-mobile)] md:pt-[var(--technical-library-padding-top-desktop)] md:pb-[var(--technical-library-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[(0,t.jsx)("h1",{className:"tl-page-title",children:o("technical_library")}),(0,t.jsxs)("div",{className:`tl-panel transition-opacity duration-200 ${h?"opacity-50":"opacity-100"}`,children:[(0,t.jsxs)("div",{className:"tl-colbar","aria-hidden":"true",children:[(0,t.jsx)("span",{children:o("product_name")}),(0,t.jsx)("span",{children:o("tds")}),(0,t.jsx)("span",{children:o("msds")})]}),0===c.length?(0,t.jsx)("p",{className:"tl-empty",children:o("no_documents_available")}):(0,t.jsx)("ul",{className:"tl-rows",children:c.map(e=>(0,t.jsx)("li",{className:"tl-row",children:(0,t.jsxs)("div",{className:"tl-row-inner",children:[(0,t.jsx)("p",{className:"tl-row-name",children:e.name}),(0,t.jsx)(s,{docs:e.documents.tds,label:o("tds"),downloadLabel:o("download_tds")}),(0,t.jsx)(s,{docs:e.documents.msds,label:o("msds"),downloadLabel:o("download_msds")})]})},e.sku))}),v>1&&(0,t.jsx)("div",{className:"tl-panel-footer",children:(0,t.jsxs)("ul",{className:"tl-pagination",children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:"tl-page-btn",onClick:()=>x(g-1),"aria-disabled":g<=1,"aria-label":o("previous_page"),children:[(0,t.jsx)("span",{className:"rtl:hidden","aria-hidden":!0,children:"«"}),(0,t.jsx)("span",{className:"hidden rtl:inline","aria-hidden":!0,children:"»"})]})}),b.map(e=>(0,t.jsx)("li",{children:e===g?(0,t.jsx)("span",{className:"tl-page-btn","data-active":!0,"aria-current":"page",children:e}):(0,t.jsx)("button",{type:"button",className:"tl-page-btn",onClick:()=>x(e),children:e})},e)),(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:"tl-page-btn",onClick:()=>x(g+1),"aria-disabled":g>=v,"aria-label":o("next_page"),children:[(0,t.jsx)("span",{className:"rtl:hidden","aria-hidden":!0,children:"»"}),(0,t.jsx)("span",{className:"hidden rtl:inline","aria-hidden":!0,children:"«"})]})})]})})]})]})})}e.s(["TechnicalLibrarySection",()=>o])},669770,e=>{"use strict";var t=e.i(843476);e.i(750254);var a=e.i(997741),r=e.i(42596);e.i(716787);var l=e.i(659544);e.i(527967);var i=e.i(830167),n=e.i(861745),s=e.i(948148),o=e.i(271645),c=e.i(579053),d=e.i(186301),u=e.i(980401);function m(e,t){return[t.mobile?`cps--${e}-mobile`:"",t.tablet?`cps--${e}-tablet`:"",t.desktop?`cps--${e}-desktop`:""].filter(Boolean)}function h(e){return e.desktop||e.tablet||e.mobile}function p(e){let{instanceId:p,source:g,items:v,slidesPerView:x,carouselInfinite:b,carouselIndicators:f,carouselControls:w}=e,y=(0,s.useTranslations)(),j=(0,n.useLocale)(),N=(0,o.useId)(),_=(0,o.useMemo)(()=>{let e;return(e=p?.trim())?e.replace(/[^a-zA-Z0-9_-]/g,"-"):N.replace(/:/g,"")},[p,N]),k=`cps-prev-${_}`,C=`cps-next-${_}`,S=`cps-dots-${_}`,{effectiveControls:L,effectiveIndicators:I}=(0,o.useMemo)(()=>{var e;let t,a,r;return e=v.length,t={mobile:e>x.mobile,tablet:e>x.tablet,desktop:e>x.desktop},a={mobile:w.mobile&&t.mobile,tablet:w.tablet&&t.tablet,desktop:w.desktop&&t.desktop},r={mobile:f.mobile&&t.mobile,tablet:f.tablet&&t.tablet,desktop:f.desktop&&t.desktop},{canSlide:t,effectiveControls:a,effectiveIndicators:r}},[v.length,x,w,f]),z=(0,o.useMemo)(()=>h(L),[L]),A=(0,o.useMemo)(()=>h(I),[I]);if(0===v.length)return null;let q=Math.max(x.desktop,x.tablet,x.mobile),E=b&&v.length>q,$=[...m("controls",L),...m("indicators",I)].join(" ");return(0,t.jsxs)("div",{className:`cps ${$}`.trim(),children:[(0,t.jsxs)("div",{className:"cps__viewport",children:[z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Button,{type:"button",variant:"primary","aria-label":y("previous"),className:`${k}
328 cps__arrow cps__arrow--prev !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(i.ArrowIcon,{className:"h-3.5 w-4 rotate-180"})}),(0,t.jsx)(l.Button,{type:"button",variant:"primary","aria-label":y("next"),className:`${C} cps__arrow cps__arrow--next !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(i.ArrowIcon,{className:"h-3.5 w-4"})})]}):null,(0,t.jsx)(u.Swiper,{modules:[c.Navigation,d.Pagination],loop:E,watchOverflow:!0,centerInsufficientSlides:!0,slidesPerView:x.mobile,spaceBetween:16,navigation:!!z&&{prevEl:`.${k}`,nextEl:`.${C}`},pagination:!!A&&{clickable:!0,el:`.${S}`},breakpoints:{0:{slidesPerView:x.mobile,spaceBetween:16},768:{slidesPerView:x.tablet,spaceBetween:16},1024:{slidesPerView:x.desktop,spaceBetween:24}},className:"cps__swiper",children:"product"===g?v.map(e=>(0,t.jsx)(u.SwiperSlide,{children:(0,t.jsx)(r.ProductTileOne,{title:e.title,imageSrc:e.imageSrc,href:e.href,originLabel:y("origin"),casLabel:y("cas_number"),hsLabel:y("hs_code"),inquireLabel:y("inquire_now"),originValue:e.originValue,casValue:e.casValue,hsValue:e.hsValue})},String(e.id))):v.map(e=>{let r;return(0,t.jsx)(u.SwiperSlide,{children:(0,t.jsx)(a.CategoryOverviewCard,{image:e.image,name:e.name,counts:(r=e.productCount,`${new Intl.NumberFormat(j).format(r)} ${y("products")}`),href:e.href})},String(e.id))})})]}),A?(0,t.jsx)("div",{className:`cps__indicators ${S} !relative !bottom-auto !left-auto !right-auto !top-auto !w-auto [&_.swiper-pagination-bullet]:!m-0`}):null]})}e.s(["CategoryProductSliderSection",()=>p],669770)},865497,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148),n=e.i(399821);function s(e){let t=e.text?.trim()??"";return t?{text:t,link:e.link?.trim()??"",variant:"outlined"===(e.type?.trim().toLowerCase()??"")?"outlined":"primary",showArrow:!0===e.show_arrow||1===e.show_arrow}:null}function o(e){return e?.trim()?(0,r.stripHtml)(e):""}function c({title:e,backgroundImage:r,heading:c,subheading:d,button_1_text:u,button_1_link:m,button_1_type:h,button_1_show_arrow:p,button_2_text:g,button_2_link:v,button_2_type:x,button_2_show_arrow:b,height:f,show_overlay:w,text_align:y,showOverlay:j=!0,background_image:N,background_image_url:_,background_image_upload:k,bg_image_url:C,bg_image_upload:S,background_alt:L}){var I;let z,A,q=(0,i.useTranslations)(),E=o(c)||o(e),$=o(d),P=_?.trim()||C?.trim()||k?.trim()||S?.trim()||N?.trim()||r||"",T=(0,a.normalizeCmsImage)(P,""),M="number"!=typeof(z="string"==typeof f?Number(f):f)||Number.isNaN(z)?300:Math.min(700,Math.max(300,Math.round(z))),O=!1!==w&&0!==w&&(!0===w||1===w||!1!==j),F={text:I="text-center"===(A=y?.trim().toLowerCase()??"")||"center"===A?"text-center":"text-end"===A||"end"===A?"text-end":"text-start",column:"text-center"===I?"items-center":"text-end"===I?"items-end":"items-start",buttons:"text-center"===I?"justify-center":"text-end"===I?"justify-end":"justify-start",block:"text-center"===I?"mx-auto":"text-end"===I?"ms-auto":"",divider:"text-center"===I?"self-center":"text-end"===I?"self-end":"self-start"},R=[s({text:u,link:m,type:h,show_arrow:p}),s({text:g,link:v,type:x,show_arrow:b})].filter(e=>null!==e),B=!!(E||$),D=B?"":L?.trim()||q("page_banner");return(0,t.jsxs)("section",{className:"page-banner-fancy relative flex items-center overflow-hidden border-b border-[var(--brand-secondary)]",style:{minHeight:M,"--page-banner-fancy-min-height":`${M}px`},"aria-label":B?void 0:q("page_banner"),children:[T?(0,t.jsx)(l.default,{src:T,alt:D,fill:!0,priority:!0,fetchPriority:"high",sizes:"100vw",quality:65,className:"z-0 object-cover object-center","aria-hidden":!!B||void 0}):null,O?(0,t.jsx)("div",{className:"absolute inset-0 z-[1]",style:{background:"var(--page-banner-overlay-bg)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"page-banner-fancy-inner relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`page-banner-fancy-content md:max-w-[50%] ${F.column} ${F.block}`,children:[(0,t.jsxs)("div",{className:`page-banner-fancy-stack ${F.column}`,children:[E?(0,t.jsx)("h1",{className:`m-0 text-[var(--page-banner-title-color)] text-[length:var(--page-banner-title-size-mobile)] leading-[var(--page-banner-title-line-mobile)] font-[var(--page-banner-title-weight-mobile)] md:text-[length:var(--page-banner-title-size-desktop)] md:leading-[var(--page-banner-title-line-desktop)] md:font-[var(--page-banner-title-weight-desktop)] ${F.text}
328`,children:function(e){let a=e.trim().split(/\s+/).filter(Boolean);if(0===a.length)return null;if(a.length<=3)return(0,t.jsx)("span",{className:"page-banner-fancy-title-accent",children:e});let r=a.slice(0,3).join(" "),l=a.slice(3).join(" ");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"page-banner-fancy-title-accent",children:r}),` ${l}`]})}(E)}):null,E?(0,t.jsx)("hr",{className:`page-banner-fancy-divider ${F.divider}`,"aria-hidden":!0}):null,$?(0,t.jsx)("p",{className:`page-banner-fancy-body m-0 body-small md:body-regular !font-normal md:max-w-[55%] text-gray-600 ${F.text}`,children:$}):null]}),R.length>0?(0,t.jsx)("div",{className:`page-banner-fancy-cta flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${F.buttons}`,children:R.map((e,a)=>(0,t.jsx)(n.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>c,"PageBannerSectionClassic",()=>c],865497)},378083,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645),i=e.i(664401),n=e.i(176100),s=e.i(948148);e.i(527967);var o=e.i(419037);function c({isOpen:e,onClose:c,config:d}){let[u,m]=(0,l.useState)(null),[h,p]=(0,l.useState)(!1),[g,v]=(0,l.useState)(!1),x=(0,s.useTranslations)(),{nav:b,actions:f}=d;return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 lg:hidden","aria-hidden":!0,onClick:c}),(0,t.jsxs)("div",{className:"fixed bottom-0 left-0 right-0 z-50 max-h-[90vh] overflow-y-auto rounded-t-[30px] bg-[var(--header-drawer-bg)] lg:hidden p-5 pb-10",role:"dialog","aria-label":"Menu",children:[(0,t.jsx)("div",{className:"flex justify-center pb-5",children:(0,t.jsx)("div",{className:"h-1 w-12 rounded-full bg-[var(--header-drawer-surface-color)]/30"})}),(0,t.jsx)("nav",{"aria-label":"Mobile",children:b.map((e,l)=>(0,t.jsxs)("div",{children:[e.children&&e.children.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("a",{type:"button",onClick:()=>m(u===l?null:l),className:"body-small text-[var(--header-drawer-link-color)] tracking-[var(--header-link-tracking)] flex w-full items-center justify-between py-5","aria-expanded":u===l,children:[(0,t.jsx)("span",{className:"uppercase",children:e.label}),(0,t.jsx)("span",{className:`transition-transform ${u===l?"rotate-180":""}`,children:(0,t.jsx)(a.default,{src:"/dropdown-icon.svg",alt:"",width:12,height:7,className:"shrink-0"})})]}),u===l&&(0,t.jsx)("ul",{className:"bg-[var(--header-drawer-children-bg)]",children:e.children.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:e.href,style:{fontWeight:"var(--header-drawer-child-weight)"},className:"body-small text-[var(--header-drawer-link-color)] tracking-[var(--header-link-tracking)] block border-t border-[var(--header-drawer-border-color)]/15 py-5 pl-5 text-[var(--header-drawer-link-color)]",onClick:c,children:e.label})},e.href))})]}):(0,t.jsx)(r.Link,{href:e.href,className:"body-small text-[var(--header-drawer-link-color)] tracking-[var(--header-link-tracking)] flex w-full items-center justify-between py-5 uppercase",onClick:c,children:e.label}),(0,t.jsx)("div",{className:"h-px bg-[var(--header-drawer-surface-color)]/15"})]},e.href))}),(0,t.jsxs)("div",{className:"pt-7",children:[(0,t.jsxs)("div",{className:"flex gap-[var(--header-drawer-bottom-gap)]",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"body-small text-[var(--header-drawer-link-color)] flex flex-1 items-center gap-[var(--header-drawer-btn-gap)] py-2 border-b border-[var(--header-drawer-border-color)]/15 text-left",children:[(0,t.jsx)(o.GlobeIcon,{className:"w-6 h-6 text-[var(--header-drawer-link-color)]"}),(0,t.jsx)("span",{children:x("select_language")})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>v(!0),className:"body-small text-[var(--header-drawer-link-color)] flex flex-1 items-center gap-[var(--header-drawer-btn-gap)] py-2 border-b border-[var(--header-drawer-border-color)]/15",children:[(0,t.jsx)(o.GlobeIcon,{className:"w-6 h-6 text-[var(--header-drawer-link-color)]"}),(0,t.jsx)("span",{children:x("select_a_website")})]})]}),f.map((e,a)=>(0,t.jsx)(r.Link,{href:e.href,className:`${"primary"===e.type?"btn btn-primary":"btn btn-outlined"} mt-7 flex w-full items-center justify-center`,style:{padding:"12px 24px"},target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"nofollow noopener noreferrer":void 0,onClick:c,children:e.label},`${e.href}-${e.label}-${a}`))]})]}),(0,t.jsx)(i.LanguageModal,{isOpen:h,onClose:()=>p(!1),languages:d.languages,activeLanguageCode:d.activeLanguageCode}),(0,t.jsx)(n.WebsiteExploreModal,{isOpen:g,onClose:()=>v(!1),exploreCategories:d.explore})]}):null}e.s(["MobileHamburgerDrawer",()=>c])},317245,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(716787);var l=e.i(659544);function i({heading:e,subheading:i,subtitle:n,backgroundImage:s,buttonLabel:o,emailPlaceholder:c}){let d=(0,r.useTranslations)(),u=e?.trim()??"",m=i?.trim()??"",h=n?.trim()??"",p=s?.trim()??"",g=o?.trim()??"",v=c?.trim()??"",[x,b]=(0,a.useState)(""),[f,w]=(0,a.useState)(!1),[y,j]=(0,a.useState)(null),N=async e=>{e.preventDefault(),j(null),w(!0);try{let e=await fetch("/api/v1/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x.trim()})}
328),t=await e.json().catch(()=>({})),a="string"==typeof t.message?t.message.trim():"";a||(422===e.status?a=d("error_email_required"):503===e.status&&(a=d("error_newsletter_api_unreachable"))),e.ok?(j({ok:!0,text:a}),b("")):j({ok:!1,text:a})}catch{j({ok:!1,text:d("error_newsletter_api_unreachable")})}finally{w(!1)}};return(0,t.jsxs)("section",{className:" relative pt-(--subscription-form-padding-top-mobile) pb-(--subscription-form-padding-bottom-mobile) md:pt-(--subscription-form-padding-top-desktop) md:pb-(--subscription-form-padding-bottom-desktop) ",style:{backgroundColor:"var(--subscription-form-bg-color)"},children:[p?(0,t.jsx)("div",{className:" absolute inset-0 h-full bg-cover bg-left bg-no-repeat rtl:bg-right ",style:{backgroundImage:`url(${p})`}}):null,(0,t.jsx)("div",{className:`
329          relative
330          px-3
331          layout-container
332          grid grid-cols-1 md:grid-cols-3
333        `,children:(0,t.jsxs)("div",{className:" flex flex-col w-full gap-(--subscription-form-gap-inner-mobile) md:gap-(--subscription-form-gap-inner-desktop) ",children:[u?(0,t.jsx)("h2",{className:" text-start text-(--subscription-form-heading-color) font-(--subscription-form-heading-weight-mobile) text-(length:--subscription-form-heading-size-mobile) leading-(--subscription-form-heading-line-mobile) md:font-(--subscription-form-heading-weight-desktop) md:text-(length:--subscription-form-heading-size-desktop) md:leading-(--subscription-form-heading-line-desktop) ",children:u}):null,m?(0,t.jsx)("p",{className:" text-start text-(--subscription-form-subtitle-color) text-(length:--subscription-form-subtitle-size-mobile) leading-(--subscription-form-subtitle-line-mobile) font-(--subscription-form-subtitle-weight-mobile) md:text-(length:--subscription-form-subtitle-size-desktop) md:leading-(--subscription-form-subtitle-line-desktop) md:font-(--subscription-form-subtitle-weight-desktop) ",children:m}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-(--subscription-form-gap-mobile) md:gap-(--subscription-form-gap-desktop)",children:[(0,t.jsxs)("form",{onSubmit:N,className:" flex gap-(--subscription-form-inner-gap-mobile) md:gap-(--subscription-form-inner-gap-desktop) ",children:[(0,t.jsx)("input",{type:"email",name:"email",value:x,onChange:e=>b(e.target.value),placeholder:v||void 0,disabled:f,required:!0,className:" w-full px-(--subscription-form-input-padding-x-mobile) py-(--subscription-form-input-padding-y-mobile) md:px-(--subscription-form-input-padding-x-desktop) md:py-(--subscription-form-input-padding-y-desktop) border-2 border-(--subscription-form-input-border-color) rounded-[8px] bg-(--subscription-form-input-bg) text-(--subscription-form-input-text-color) text-start text-(length:--subscription-form-input-text-size-mobile) md:text-(length:--subscription-form-input-text-size-desktop) leading-(--subscription-form-input-text-line-mobile) md:leading-(--subscription-form-input-text-line-desktop) font-(--subscription-form-input-text-weight-mobile) md:font-(--subscription-form-input-text-weight-desktop) placeholder:text-(--subscription-form-input-placeholder-color) placeholder:[font-size:var(--subscription-form-input-placeholder-size-mobile)] md:placeholder:[font-size:var(--subscription-form-input-placeholder-size-desktop)] placeholder:font-(--subscription-form-input-weight-mobile) md:placeholder:font-(--subscription-form-input-weight-desktop) placeholder:[font-weight:var(--subscription-form-input-placeholder-weight-mobile)] md:placeholder:[font-weight:var(--subscription-form-input-placeholder-weight-desktop)] disabled:opacity-60 "}),g?(0,t.jsx)(l.Button,{variant:"primary",type:"submit",disabled:f,className:"inline-flex text-center justify-center",children:f?"...":g}):null]}),y?(0,t.jsx)("p",{role:"status",className:`
334                text-start
335                text-(length:--subscription-form-subtitle-size-mobile)
336                leading-(--subscription-form-subtitle-line-mobile)
337                font-(--subscription-form-subtitle-weight-mobile)
338                md:text-(length:--subscription-form-subtitle-size-desktop)
339                md:leading-(--subscription-form-subtitle-line-desktop)
340                md:font-(--subscription-form-subtitle-weight-desktop)
341                ${y.ok?"text-(--subscription-form-heading-color)":"text-red-600"}
342              `,children:y.text}):null,h?(0,t.jsx)("p",{className:" text-start text-(--subscription-form-subtitle-color) text-(length:--subscription-form-subtitle-size-mobile) leading-(--subscription-form-subtitle-line-mobile) font-(--subscription-form-subtitle-weight-mobile) md:text-(length:--subscription-form-subtitle-size-desktop) md:leading-(--subscription-form-subtitle-line-desktop) md:font-(--subscription-form-subtitle-weight-desktop) ",children:h}):null]})]})})]})}e.s(["SubscriptionFormSection",()=>i])},301090,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(872225),l=e.i(579053),i=e.i(980401),n=e.i(948148);e.i(527967);var s=e.i(830167);e.i(79951);var o=e.i(902936),c=e.i(22584),d=e.i(344888);function u(e,t,a){if(!t||!a||!e||e.destroyed||!e.params)return;let r=e.params.navigation;if(!r||"boolean"==typeof r)return;r.prevEl=t,r.nextEl=a;let{navigation:l}=e;if(l){try{l.destroy()}catch{}
342l.init(),l.update()}}function m({heading:e,title:m,cas_label:h,hs_label:p,labels:g,product_url_prefix:v,products:x=[]}){let b=(0,n.useTranslations)(),f=g?.origin_label||b("origin"),w=g?.cas_label||h||b("cas_number"),y=g?.hs_label||p||b("hs_code"),j=g?.inquire_label||b("inquire_now"),N=v||"/",_=(0,a.useRef)(null),k=(0,a.useRef)(null),[C,S]=(0,a.useState)(null),L=x.length>5;return((0,a.useEffect)(()=>{C&&!C.destroyed&&u(C,_.current,k.current)},[C]),0===x.length)?null:(0,t.jsx)("section",{className:"otp-luxe","data-luxe-top-products":!0,children:(0,t.jsxs)("div",{className:"otp-luxe__container layout-container px-3 md:px-5",children:[(0,t.jsxs)("div",{className:"otp-luxe__header",children:[(0,t.jsx)("h2",{className:"otp-luxe__title",children:e||m||""}),(0,t.jsxs)("div",{className:"otp-luxe__header-actions",children:[(0,t.jsx)(o.Link,{href:c.routes.products.list,className:"otp-luxe__view-all",children:b("all_products")}),L?(0,t.jsxs)("div",{className:"otp-luxe__nav-group",children:[(0,t.jsx)("button",{ref:_,type:"button","aria-label":b("previous_slide"),className:"otp-luxe__nav otp-luxe__nav--prev",children:(0,t.jsx)(s.ArrowIcon,{className:"otp-luxe__nav-icon rotate-180 rtl:rotate-0"})}),(0,t.jsx)("button",{ref:k,type:"button","aria-label":b("next_slide"),className:"otp-luxe__nav otp-luxe__nav--next",children:(0,t.jsx)(s.ArrowIcon,{className:"otp-luxe__nav-icon rtl:rotate-180"})})]}):null]})]}),(0,t.jsx)("div",{className:"otp-luxe__carousel",children:(0,t.jsx)(i.Swiper,{modules:[l.Navigation,r.Autoplay],loop:L,rewind:!1,loopAddBlankSlides:!1,speed:400,slidesPerGroup:1,slidesPerView:1.15,spaceBetween:14,watchOverflow:!0,navigation:!!L&&{},autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},onBeforeInit:L?e=>{let{navigation:t}=e.params;t&&"boolean"!=typeof t&&(t.prevEl=_.current,t.nextEl=k.current)}:void 0,onSwiper:L?e=>{S(e),queueMicrotask(()=>{e.destroyed||u(e,_.current,k.current)})}:void 0,onResize:L?e=>{u(e,_.current,k.current)}:void 0,breakpoints:{480:{slidesPerView:1.4,spaceBetween:14},640:{slidesPerView:2.2,spaceBetween:16},768:{slidesPerView:3,spaceBetween:16},1024:{slidesPerView:4,spaceBetween:18},1280:{slidesPerView:5,spaceBetween:20}},className:"otp-luxe__swiper",children:x.map((e,a)=>{let r=e.title||e.name||"",l=e.image_url||void 0,n=e.url_key?`${N.replace(/\/$/,"")}/${e.url_key.replace(/^\//,"")}`:N,s=e.cas||"",o=e.hs_code||"",c=e.origin||"";return(0,t.jsx)(i.SwiperSlide,{className:"otp-luxe__slide",children:(0,t.jsx)(d.ProductTileOne,{title:r,imageSrc:l,href:n,originLabel:f,casLabel:w,hsLabel:y,inquireLabel:j,originValue:c,casValue:s,hsValue:o})},`${e.id??e.url_key??a}`)})},L?"loop":"linear")})]})})}e.s(["OurTopProductsSectionOne",()=>m])},689992,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);let l=({className:e})=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12 15.991C12.2509 15.991 12.5018 15.8952 12.6931 15.704L18.7128 9.68426C19.0957 9.30133 19.0957 8.68048 18.7128 8.2977C18.33 7.91493 17.7093 7.91493 17.3263 8.2977L12 13.6243L6.67371 8.29789C6.29078 7.91511 5.67011 7.91511 5.28737 8.29789C4.90425 8.68066 4.90425 9.30152 5.28737 9.68445L11.307 15.7042C11.4983 15.8954 11.7492 15.991 12 15.991Z",fill:"currentColor"})});e.s(["default",0,({items:e,title:i,description:n,icon:s,idPrefix:o})=>{let c=(0,r.useTranslations)(),d=(0,a.useId)(),u=(o?.trim()||d).replace(/:+/g,"-"),[m,h]=(0,a.useState)(null),p=(0,a.useMemo)(()=>e??[],[e]);return p.length?(0,t.jsx)("section",{className:"mb-[var(--popular-accordion-customer-margin-bottom-mobile)] mt-[var(--popular-accordion-customer-margin-top-desktop)] md:mb-[var(--popular-accordion-customer-margin-bottom-desktop)]",children:(0,t.jsx)("div",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--popular-accordion-customer-gap-mobile)] md:grid-cols-[2.2fr_3fr] md:gap-[var(--popular-accordion-customer-gap-desktop)]",children:[(0,t.jsxs)("div",{className:"self-start md:sticky md:top-[200px]",children:[s||null,(0,t.jsx)("h2",{className:"mb-[var(--popular-accordion-customer-title-margin-bottom)] text-start text-[length:var(--popular-accordion-customer-title-size-mobile)] leading-[var(--popular-accordion-customer-title-line-height-mobile)] md:text-[length:var(--popular-accordion-customer-title-size-desktop)] md:leading-[var(--popular-accordion-customer-title-line-height-desktop)] font-[var(--popular-accordion-customer-title-weight)] text-[var(--popular-accordion-customer-title-color)]",children:i??c("most_popular_questions")}),(0,t.jsx)("p",{className:"text-start text-[var(--popular-accordion-customer-description-color)] text-[length:var(--popular-accordion-customer-description-size)] leading-[var(--popular-accordion-customer-description-line-height)] font-normal",children:n??c("customer_support_popular_questions_description")})]}),(0,t.jsx)("div",{className:"flex flex-col gap-[var(--popular-accordion-customer-faq-items-gap)] md:ps-[var(--popular-accordion-customer-faq-pad
342ding-start-desktop)]",children:p.map((e,a)=>{let r,i=m===a,n=`${u}-popular-faq-btn-${a}`,s=`${u}-popular-faq-panel-${a}`;return(0,t.jsxs)("div",{className:i?"bg-[var(--popular-accordion-customer-faq-open-bg)]":"",children:[(0,t.jsxs)("button",{type:"button",className:["accordion flex w-full items-center justify-between gap-4 p-[var(--popular-accordion-customer-faq-header-padding-mobile)] text-start md:py-[var(--popular-accordion-customer-faq-header-padding-y-desktop)] md:px-[var(--popular-accordion-customer-faq-header-padding-x-desktop)]",i?"[box-shadow:var(--popular-accordion-customer-faq-open-shadow)]":"[box-shadow:var(--popular-accordion-customer-faq-closed-shadow)]"].join(" "),"aria-expanded":i,"aria-controls":s,id:n,onClick:()=>h(e=>e===a?null:a),children:[(0,t.jsx)("b",{className:"text-start text-[color:var(--popular-accordion-customer-faq-question-color)] text-[length:var(--popular-accordion-customer-faq-question-size-mobile)] leading-[var(--popular-accordion-customer-faq-question-line-height-mobile)] md:text-[length:var(--popular-accordion-customer-faq-question-size-desktop)] md:leading-[var(--popular-accordion-customer-faq-question-line-height-desktop)] font-[var(--popular-accordion-customer-faq-question-weight)]",children:e.question}),(0,t.jsx)(l,{className:["shrink-0 text-[color:var(--popular-accordion-customer-faq-icon-color)] transition-transform duration-200 ease-out",i?"rotate-180":"rotate-0"].join(" ")})]}),(0,t.jsx)("div",{id:s,role:"region","aria-labelledby":n,hidden:!i,className:"panel p-[var(--popular-accordion-customer-faq-content-padding-mobile)] md:pt-0 md:px-[var(--popular-accordion-customer-faq-content-padding-x-desktop)] md:pb-[var(--popular-accordion-customer-faq-content-padding-bottom-desktop)]",children:(0,t.jsx)("div",{className:"text-start text-[color:var(--popular-accordion-customer-faq-answer-color)] text-[length:var(--popular-accordion-customer-faq-answer-size-mobile)] leading-[var(--popular-accordion-customer-faq-answer-line-height-mobile)] md:text-[length:var(--popular-accordion-customer-faq-answer-size-desktop)] md:leading-[var(--popular-accordion-customer-faq-answer-line-height-desktop)] font-[var(--popular-accordion-customer-faq-answer-weight)]",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:(r=(e.answer??"").trim())?/<\s*[a-z][\s\S]*>/i.test(r)?r:r.replace(/\n/g,"<br />"):""}})})})]},e.question)})})]})})}):null}])},800114,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148);e.i(79951);var n=e.i(76209);e.i(592042);var s=e.i(863975),o=e.i(477798),c=e.i(114994);function d(e){return e?.trim()?(0,r.stripHtml)(e):""}function u({title:e,backgroundImage:r,heading:u,subheading:m,button_1_text:h,button_1_link:p,button_1_type:g,button_1_show_arrow:v,button_2_text:x,button_2_link:b,button_2_type:f,button_2_show_arrow:w,height:y,show_overlay:j,text_align:N,showOverlay:_=!0,background_image:k,background_image_url:C,background_image_upload:S,bg_image_url:L,bg_image_upload:I,background_alt:z}){let A,q=(0,i.useTranslations)(),E="/"===((0,n.usePathname)().split("?")[0].replace(/\/+$/,"")||"/"),$=d(u)||d(e),P=d(m),T=P?function(e){let t=e.trim(),a=t.match(/^((?:[^.!?]+[.!?]\s*){3})(.+)$/);if(!a)return{tagline:null,body:t};let r=a[1].trim(),l=a[2].trim();return!l||r.length>120?{tagline:null,body:t}:{tagline:r,body:l}}(P):null,M=C?.trim()||L?.trim()||S?.trim()||I?.trim()||k?.trim()||r||"",O=(0,a.normalizeCmsImage)(M,""),F=(0,c.resolvePageBannerHeight)(y),R=(0,c.resolvePageBannerOverlay)("string"==typeof j?null:j,_),B=(0,c.pageBannerAlignClasses)((0,c.resolvePageBannerTextAlign)(N)),D=[(0,o.resolvePageBannerButton)({text:h,link:p,type:g,show_arrow:v}),(0,o.resolvePageBannerButton)({text:x,link:b,type:f,show_arrow:w})].filter(e=>null!==e),H=!!($||P),U=H?"":z?.trim()||q("page_banner"),G={"--page-banner-home-min-height":`${F}px`};return(0,t.jsxs)("section",{className:`page-banner-sleek${E?" page-banner-sleek--home":""} relative flex items-center overflow-hidden`,style:E?G:{minHeight:F},"aria-label":H?void 0:q("page_banner"),children:[O?(0,t.jsx)(l.default,{src:O,alt:U,fill:!0,priority:!0,fetchPriority:"high",sizes:"100vw",quality:65,className:E?"page-banner-sleek__image object-cover":"object-cover object-center","aria-hidden":!!H||void 0}):null,R?(0,t.jsx)("div",{className:"absolute inset-0 z-[1]",style:{background:"var(--page-banner-overlay-bg)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`flex flex-col gap-7 md:max-w-[70%] ${B.column} ${B.block}`,children:[$?(0,t.jsx)("h1",{className:`text-[var(--page-banner-title-color)] text-[length:var(--page-banner-title-size-mobile)] leading-[var(--page-banner-title-line-mobile)] font-[var(--page-banner-title-weight-mobile)] md:text-[length:var(--page-banner-title-size-desktop)] md:leading-[var(--page-banner-title-line-desktop)] md:font-[var(--page-banner-title-weight-desktop)] ${B.text}
342`,children:E?0===(A=$.trim().split(/\s+/).filter(Boolean)).length?null:A.length<=2?(0,t.jsx)("span",{className:"page-banner-title-accent",children:$}):(0,t.jsxs)(t.Fragment,{children:[A.slice(0,-2).join(" ")," ",(0,t.jsx)("span",{className:"page-banner-title-accent",children:A.slice(-2).join(" ")})]}):$}):null,T?.tagline?(0,t.jsx)("p",{className:`body-regular text-[var(--page-banner-subheading-color)] md:body-large !font-semibold md:max-w-[65%] ${B.text}`,children:T.tagline}):null,T?.body?(0,t.jsx)("p",{className:`body-regular text-[var(--page-banner-body-color)] md:body-large !font-normal md:max-w-[65%] ${B.text}`,children:T.body}):null,D.length>0?(0,t.jsx)("div",{className:`flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${B.buttons}`,children:D.map((e,a)=>(0,t.jsx)(s.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>u,"PageBannerSectionClassic",()=>u],800114)},284315,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(948148);e.i(716787);var l=e.i(659544);function i({heading:e,subheading:i,subtitle:n,backgroundImage:s,buttonLabel:o,emailPlaceholder:c}){let d=(0,r.useTranslations)(),u=e?.trim()??"",m=i?.trim()??"",h=n?.trim()??"",p=s?.trim()??"",g=o?.trim()??"",v=c?.trim()??"",[x,b]=(0,a.useState)(""),[f,w]=(0,a.useState)(!1),[y,j]=(0,a.useState)(null),N=async e=>{e.preventDefault(),j(null),w(!0);try{let e=await fetch("/api/v1/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x.trim()})}),t=await e.json().catch(()=>({})),a="string"==typeof t.message?t.message.trim():"";a||(422===e.status?a=d("error_email_required"):503===e.status&&(a=d("error_newsletter_api_unreachable"))),e.ok?(j({ok:!0,text:a}),b("")):j({ok:!1,text:a})}catch{j({ok:!1,text:d("error_newsletter_api_unreachable")})}finally{w(!1)}};return(0,t.jsxs)("section",{className:" relative pt-(--subscription-form-padding-top-mobile) pb-(--subscription-form-padding-bottom-mobile) md:pt-(--subscription-form-padding-top-desktop) md:pb-(--subscription-form-padding-bottom-desktop) ",style:{backgroundColor:"var(--subscription-form-bg-color)"},children:[p?(0,t.jsx)("div",{className:" absolute inset-0 h-full bg-cover bg-left bg-no-repeat rtl:bg-right ",style:{backgroundImage:`url(${p})`}}):null,(0,t.jsxs)("div",{className:`
343          relative
344          px-3 md:px-5
345          layout-container
346          grid grid-cols-1 md:grid-cols-2 md:items-center
347          gap-(--subscription-form-gap-inner-mobile)
348          md:gap-(--subscription-form-gap-inner-desktop)
349        `,children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2 md:gap-3",children:[u?(0,t.jsx)("h2",{className:" text-start text-(--subscription-form-heading-color) font-(--subscription-form-heading-weight-mobile) text-(length:--subscription-form-heading-size-mobile) leading-(--subscription-form-heading-line-mobile) md:font-(--subscription-form-heading-weight-desktop) md:text-(length:--subscription-form-heading-size-desktop) md:leading-(--subscription-form-heading-line-desktop) ",children:u}):null,m?(0,t.jsx)("p",{className:" text-start text-(--subscription-form-subtitle-color) text-(length:--subscription-form-subtitle-size-mobile) leading-(--subscription-form-subtitle-line-mobile) font-(--subscription-form-subtitle-weight-mobile) md:text-(length:--subscription-form-subtitle-size-desktop) md:leading-(--subscription-form-subtitle-line-desktop) md:font-(--subscription-form-subtitle-weight-desktop) ",children:m}):null]}),(0,t.jsxs)("div",{className:" flex w-full flex-col gap-(--subscription-form-gap-mobile) md:gap-(--subscription-form-gap-desktop) ",children:[(0,t.jsxs)("form",{onSubmit:N,className:" flex flex-col lg:flex-row gap-(--subscription-form-inner-gap-mobile) md:gap-(--subscription-form-inner-gap-desktop) ",children:[(0,t.jsx)("input",{type:"email",name:"email",value:x,onChange:e=>b(e.target.value),placeholder:v||void 0,disabled:f,required:!0,className:" min-w-0 w-full lg:flex-1 px-(--subscription-form-input-padding-x-mobile) py-(--subscription-form-input-padding-y-mobile) md:px-(--subscription-form-input-padding-x-desktop) md:py-(--subscription-form-input-padding-y-desktop) border-2 border-(--subscription-form-input-border-color) rounded-[8px] bg-(--subscription-form-input-bg) text-(--subscription-form-input-text-color) text-start text-(length:--subscription-form-input-text-size-mobile) md:text-(length:--subscription-form-input-text-size-desktop) leading-(--subscription-form-input-text-line-mobile) md:leading-(--subscription-form-input-text-line-desktop) font-(--subscription-form-input-text-weight-mobile) md:font-(--subscription-form-input-text-weight-desktop) placeholder:text-(--subscription-form-input-placeholder-color) placeholder:[font-size:var(--subscription-form-input-placeholder-size-mobile)] md:placeholder:[font-size:var(--subscription-form-input-placeholder-size-desktop)] placeholder:font-(--subscription-form-input-weight-mobile) md:placeholder:font-(--subscription-form-input-weight-desktop) placeholder:[font-weight:var(--subscription-form-input-placeholder-weight-mobile)] md:placeholder:[font-weight:var(--subscription-form-input-placeholder-weight-desktop)] disabled:opacity-60 "}),g?(0,t.jsx)(l.Button,{variant:"primary",type:"submit",disabled:f,className:"inline-flex w-full min-w-[180px] max-w-full shrink-0 justify-center text-center whitespace-normal lg:w-auto lg:max-w-[50%]",children:f?"...":g}):null]}),y?(0,t.jsx)("p",{role:"status",className:`
350                text-start
351                text-(length:--subscription-form-subtitle-size-mobile)
352                leading-(--subscription-form-subtitle-line-mobile)
353                font-(--subscription-form-subtitle-weight-mobile)
354                md:text-(length:--subscription-form-subtitle-size-desktop)
355                md:leading-(--subscription-form-subtitle-line-desktop)
356                md:font-(--subscription-form-subtitle-weight-desktop)
357                ${y.ok?"text-(--subscription-form-heading-color)":"text-red-600"}
358              `,children:y.text}):null,h?(0,t.jsx)("p",{className:" text-start text-(--subscription-form-subtitle-color) text-(length:--subscription-form-subtitle-size-mobile) leading-(--subscription-form-subtitle-line-mobile) font-(--subscription-form-subtitle-weight-mobile) md:text-(length:--subscription-form-subtitle-size-desktop) md:leading-(--subscription-form-subtitle-line-desktop) md:font-(--subscription-form-subtitle-weight-desktop) ",children:h}):null]})]})]})}e.s(["SubscriptionFormSection",()=>i])},942477,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(872225),l=e.i(579053),i=e.i(980401),n=e.i(948148);e.i(527967);var s=e.i(830167);e.i(79951);var o=e.i(902936),c=e.i(22584),d=e.i(411971);function u(e,t,a){if(!t||!a||!e||e.destroyed||!e.params)return;let r=e.params.navigation;if(!r||"boolean"==typeof r)return;r.prevEl=t,r.nextEl=a;let{navigation:l}=e;if(l){try{l.destroy()}catch{}
358l.init(),l.update()}}function m({heading:e,title:m,cas_label:h,hs_label:p,labels:g,product_url_prefix:v,products:x=[]}){let b=(0,n.useTranslations)(),f=g?.origin_label||b("origin"),w=g?.cas_label||h||b("cas_number"),y=g?.hs_label||p||b("hs_code"),j=g?.inquire_label||b("inquire_now"),N=v||"/",_=(0,a.useRef)(null),k=(0,a.useRef)(null),[C,S]=(0,a.useState)(null),L=x.length>5;return((0,a.useEffect)(()=>{C&&!C.destroyed&&u(C,_.current,k.current)},[C]),0===x.length)?null:(0,t.jsx)("section",{className:"otp-sleek",children:(0,t.jsxs)("div",{className:"otp-sleek__container layout-container px-3 md:px-5",children:[(0,t.jsxs)("div",{className:"otp-sleek__header",children:[(0,t.jsx)("h2",{className:"otp-sleek__title",children:e||m||""}),(0,t.jsxs)(o.Link,{href:c.routes.products.list,className:"otp-sleek__view-all",children:[b("all_products"),(0,t.jsx)(s.ArrowIcon,{className:"otp-sleek__view-all-icon rtl:rotate-180","aria-hidden":!0})]})]}),(0,t.jsxs)("div",{className:"otp-sleek__carousel",children:[L?(0,t.jsx)("button",{ref:_,type:"button","aria-label":b("previous_slide"),className:"otp-sleek__nav otp-sleek__nav--prev",children:(0,t.jsx)(s.ArrowIcon,{className:"otp-sleek__nav-icon rotate-180 rtl:rotate-0"})}):null,(0,t.jsx)(i.Swiper,{modules:[l.Navigation,r.Autoplay],loop:L,rewind:!1,loopAddBlankSlides:!1,speed:400,slidesPerGroup:1,slidesPerView:1,spaceBetween:16,watchOverflow:!0,navigation:!!L&&{},autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},onBeforeInit:L?e=>{let{navigation:t}=e.params;t&&"boolean"!=typeof t&&(t.prevEl=_.current,t.nextEl=k.current)}:void 0,onSwiper:L?e=>{S(e),queueMicrotask(()=>{e.destroyed||u(e,_.current,k.current)})}:void 0,onResize:L?e=>{u(e,_.current,k.current)}:void 0,breakpoints:{640:{slidesPerView:2,spaceBetween:16},1024:{slidesPerView:5,spaceBetween:20}},className:"otp-sleek__swiper",children:x.map((e,a)=>{let r=e.title||e.name||"",l=e.image_url||void 0,n=e.url_key?`${N.replace(/\/$/,"")}/${e.url_key.replace(/^\//,"")}`:N,s=e.cas||"",o=e.hs_code||"",c=e.origin||"";return(0,t.jsx)(i.SwiperSlide,{className:"otp-sleek__slide",children:(0,t.jsx)(d.ProductTileOne,{title:r,imageSrc:l,href:n,originLabel:f,casLabel:w,hsLabel:y,inquireLabel:j,originValue:c,casValue:s,hsValue:o})},`${e.id??e.url_key??a}`)})},L?"loop":"linear"),L?(0,t.jsx)("button",{ref:k,type:"button","aria-label":b("next_slide"),className:"otp-sleek__nav otp-sleek__nav--next",children:(0,t.jsx)(s.ArrowIcon,{className:"otp-sleek__nav-icon rtl:rotate-180"})}):null]})]})})}e.s(["OurTopProductsSectionOne",()=>m])},590014,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(659544);e.i(527967);var l=e.i(739293),l=l,i=e.i(657688);function n({headingPrefix:e,headingHighlight:n,subtitle:s,buttonText:o,buttonHref:c,backgroundImage:d,newsletterForm:u=!1,feedbackVariant:m="default"}){let h=(0,a.normalizeCmsImage)(d??"",""),p={default:"",newsLetter:"md:flex-row items-center md:gap-[var(--newsLetter-gap-main-desktop)]"},g={default:"",newsLetter:"h-[480px] md:h-full"},v={default:`
359        font-[var(--feedback-heading-weight-mobile)]
360        text-[length:var(--feedback-heading-size-mobile)]
361        leading-[var(--feedback-heading-line-mobile)]
362        md:font-[var(--feedback-heading-weight-desktop)]
363        md:text-[length:var(--feedback-heading-size-desktop)]
364        md:leading-[var(--feedback-heading-line-desktop)]
365      `,newsLetter:`
366        font-[var(--newsLetter-heading-weight-mobile)]
367        text-[length:var(--newsLetter-heading-size-mobile)]
368        leading-[var(--newsLetter-heading-line-mobile)]
369        md:font-[var(--newsLetter-heading-weight-desktop)]
370        md:text-[length:var(--newsLetter-heading-size-desktop)]
371        md:leading-[var(--newsLetter-heading-line-desktop)]
372      `};return(0,t.jsxs)("section",{className:" relative pt-[var(--feedback-padding-top-mobile)] pb-[var(--feedback-padding-bottom-mobile)] md:pt-[var(--feedback-padding-top-desktop)] md:pb-[var(--feedback-padding-bottom-desktop)] text-center md:text-start ",style:{backgroundColor:"var(--feedback-bg-color)"},children:[h?(0,t.jsx)(i.default,{src:h,alt:"",fill:!0,sizes:"(max-width: 768px) 100vw, 1200px",quality:65,loading:"lazy",className:`absolute inset-0 z-0 object-cover object-left rtl:object-right ${g[m]||g.default}`,"aria-hidden":!0}):null,(0,t.jsxs)("div",{className:`
373          relative
374          px-5
375          layout-container
376          flex
377          flex-col
378          gap-[var(--feedback-gap-main-mobile)]
379          md:gap-[var(--feedback-gap-main-desktop)]
380          ${p[m]||p.default}
381        `,children:[(0,t.jsxs)("div",{className:" flex flex-col w-full gap-[var(--feedback-gap-inner-mobile)] md:gap-[var(--feedback-gap-inner-desktop)] ",children:[(0,t.jsxs)("h2",{className:`
382              ${v[m]||v.default}
383            `,children:[e&&(0,t.jsx)("span",{className:"text-[var(--feedback-heading-prefix-color)]",children:e}),n&&(0,t.jsx)("span",{className:" block text-[var(--feedback-heading-highlight-color)]  text-[length:var(--feedback-highlight-size-mobile)] leading-[var(--feedback-highlight-line-mobile)]  md:text-[length:var(--feedback-highlight-size-desktop)] md:leading-[var(--feedback-highlight-line-desktop)]  md:ms-[var(--feedback-highlight-offset-desktop)]  drop-shadow-[0_4px_4px_var(--feedback-highlight-shadow-color)] ",children:n})]}),(0,t.jsx)("p",{className:" text-[var(--feedback-text-color)]  font-[var(--feedback-text-weight-mobile)] text-[length:var(--feedback-text-size-mobile)] leading-[var(--feedback-text-line-mobile)]  md:font-[var(--feedback-text-weight-desktop)] md:text-[length:var(--feedback-text-size-desktop)] md:leading-[var(--feedback-text-line-desktop)] ",children:s})]}),o&&(0,t.jsx)(r.Button,{className:"max-w-[285px] mx-auto md:mx-0",variant:"outlined",href:c,children:o}),u&&(0,t.jsx)("div",{className:" rounded-[var(--newsLetter-form-card-radius)] bg-[var(--newsLetter-form-card-bg)] p-[var(--newsLetter-form-padding-mobile)] md:p-[var(--newsLetter-form-padding-desktop)] shadow-[var(--newsLetter-form-card-shadow)] ",children:(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--newsLetter-form-card-gap)]",children:[(0,t.jsx)("h2",{className:" text-[length:var(--newsLetter-form-heading-size-mobile)] md:text-[length:var(--newsLetter-form-heading-size-desktop)] leading-[var(--newsLetter-form-text-line-mobile)] md:leading-[var(--newsLetter-form-text-line-desktop)] font-[var(--newsLetter-form-text-weight-mobile)] md:font-[var(--newsLetter-form-text-weight-desktop)] text-[var(--newsLetter-form-text-color)] text-start ",children:"Enter your email address here"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"email",placeholder:"Your email address",className:"w-full px-[var(--newsLetter-form-input-padding-x)] py-[var(--newsLetter-form-input-padding-y)] border-2 border-[var(--newsLetter-form-input-border-color)] rounded-full bg-[var(--newsLetter-form-input-bg)] placeholder:[color:var(--newsLetter-form-input-placeholder-color)] placeholder:[font-size:var(--newsLetter-form-input-placeholder-size-mobile)] md:placeholder:[font-size:var(--newsLetter-form-input-placeholder-size-desktop)] placeholder:[font-weight:var(--newsLetter-form-input-weight-mobile)] md:placeholder:[font-weight:var(--newsLetter-form-input-weight-desktop)] "}),(0,t.jsx)("div",{className:"absolute inset-y-0 end-0 flex items-center pe-[var(--newsLetter-form-input-icon-padding-right)] pointer-events-none",children:(0,t.jsx)(l.default,{className:"w-5 h-5 text-[var(--newsLetter-form-input-icon-color)]"})})]}),(0,t.jsx)("div",{className:"flex w-full",children:(0,t.jsx)(r.Button,{href:"#",variant:"primary",className:"inline-flex w-full text-center justify-center",children:"Subscribe Now"})}),(0,t.jsx)("p",{className:" text-center text-[var(--newsLetter-form-subtitle-color)] text-[length:var(--newsLetter-form-subtitle-size-mobile)] leading-[var(--newsLetter-form-subtitle-line-mobile)] font-[var(--newsLetter-form-subtitle-weight-mobile)] md:text-[length:var(--newsLetter-form-subtitle-size-desktop)] md:leading-[var(--newsLetter-form-subtitle-line-desktop)] md:font-[var(--newsLetter-form-subtitle-weight-desktop)] ",children:"We're committed to your privacy. Tradeasia uses the information you provide to us to contact you about our relevant content, products, and services. For more information, check out our privacy policy."})]})})]})]})}e.s(["FeedbackSection",()=>n],590014)},254443,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148),n=e.i(584653);function s(e){let t=e.text?.trim()??"";return t?{text:t,link:e.link?.trim()??"",variant:"outlined"===(e.type?.trim().toLowerCase()??"")?"outlined":"primary",showArrow:!0===e.show_arrow||1===e.show_arrow}:null}let o=new Set(["a","an","and","for","from","in","of","on","or","the","to","with"]);function c(e){return e?.trim()?(0,r.stripHtml)(e):""}function d({title:e,backgroundImage:r,heading:d,subheading:u,button_1_text:m,button_1_link:h,button_1_type:p,button_1_show_arrow:g,button_2_text:v,button_2_link:x,button_2_type:b,button_2_show_arrow:f,height:w,show_overlay:y,showOverlay:j,text_align:N,background_image:_,background_image_url:k,background_image_upload:C,bg_image_url:S,bg_image_upload:L,background_alt:I}){var z;let A,q,E=(0,i.useTranslations)(),$=c(d)||c(e),P=c(u),T=k?.trim()||S?.trim()||C?.trim()||L?.trim()||_?.trim()||r||"",M=(0,a.normalizeCmsImage)(T,""),O="number"!=typeof(A="string"==typeof w?Number(w):w)||Number.isNaN(A)?480:Math.min(700,Math.max(300,Math.round(A))),F=!1!==y&&0!==y&&(!0===y||1===y||!1!==j),R={text:z="text-center"===(q=N?.trim().toLowerCase()??"")||"center"===q?"text-center":"text-end"===q||"end"===q?"text-end":"text-start",column:"text-center"===z?"items-center":"text-end"===z?"items-end":"items-start",buttons:"text-center"===z?"justify-center":"text-end"===z?"justify-end":"justify-start",block:"text-center"===z?"mx-auto":"text-end"===z?"ms-auto":"",divi
383der:"text-center"===z?"self-center":"text-end"===z?"self-end":"self-start"},B=[s({text:m,link:h,type:p,show_arrow:g}),s({text:v,link:x,type:b,show_arrow:f})].filter(e=>null!==e),D=!!($||P),H=D?"":I?.trim()||E("page_banner");return(0,t.jsxs)("section",{className:"page-banner-luxe relative flex items-stretch overflow-hidden max-lg:min-h-0 lg:overflow-hidden","data-luxe-page-banner":!0,style:{"--page-banner-luxe-min-height":`${O}px`},"aria-label":D?void 0:E("page_banner"),children:[(0,t.jsx)("div",{className:"page-banner-luxe-media","aria-hidden":!!D||void 0,children:M?(0,t.jsx)(l.default,{src:M,alt:H,fill:!0,priority:!0,fetchPriority:"high",sizes:"(max-width: 767px) 100vw, 55vw",quality:75,className:"object-cover object-center"}):(0,t.jsx)("div",{className:"page-banner-luxe-media-fallback"})}),F?(0,t.jsx)("div",{className:"page-banner-luxe-panel","aria-hidden":!0,children:(0,t.jsx)("svg",{className:"page-banner-luxe-curve",viewBox:"0 0 100 100",preserveAspectRatio:"none","aria-hidden":!0,children:(0,t.jsx)("path",{className:"page-banner-luxe-curve-fill",d:"M0 0 H50 A 42 100 0 0 0 54 100 H0 Z"})})}):null,(0,t.jsx)("div",{className:"page-banner-luxe-inner relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`page-banner-luxe-content ${R.column} ${R.block}`,children:[(0,t.jsxs)("div",{className:`page-banner-luxe-stack ${R.column}`,children:[$?(0,t.jsx)("h1",{className:`page-banner-luxe-title m-0 ${R.text}`,children:function(e){let a=e.trim().split(/\s+/).filter(Boolean);if(0===a.length)return null;if(1===a.length)return(0,t.jsx)("span",{className:"page-banner-luxe-title-accent",children:e});let r=-1,l=-1;for(let e=0;e<a.length;e+=1){let t=(a[e]??"").replace(/[^a-zA-Z0-9-]/g,"").toLowerCase();if(!t||o.has(t))continue;let i=t.length+2*(e>0&&e<a.length-1);i>l&&(l=i,r=e)}return r<0?e:(0,t.jsx)(t.Fragment,{children:a.map((e,a)=>{let l=0===a?"":" ";return a===r?(0,t.jsxs)("span",{children:[l,(0,t.jsx)("span",{className:"page-banner-luxe-title-accent",children:e})]},`title-word-${a}`):(0,t.jsxs)("span",{children:[l,e]},`title-word-${a}`)})})}($)}):null,P?(0,t.jsx)("p",{className:`page-banner-luxe-subheading m-0 ${R.text}`,children:P}):null]}),B.length>0?(0,t.jsx)("div",{className:`page-banner-luxe-cta flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${R.buttons}`,children:B.map((e,a)=>(0,t.jsx)(n.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>d,"PageBannerSectionClassic",()=>d],254443)},769529,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(872225),l=e.i(579053),i=e.i(186301),n=e.i(980401),s=e.i(948148);e.i(527967);var o=e.i(830167),c=e.i(770275);function d(e,t){if(!t||!e||e.destroyed||!e.params)return;let a=e.params.pagination;if(!a||"boolean"==typeof a)return;a.el=t;let{pagination:r}=e;if(r){try{r.destroy()}catch{}r.init(),r.render(),r.update()}}function u(e,t,a){if(!t||!a||!e||e.destroyed||!e.params)return;let r=e.params.navigation;if(!r||"boolean"==typeof r)return;r.prevEl=t,r.nextEl=a;let{navigation:l}=e;if(l){try{l.destroy()}catch{}l.init(),l.update()}}function m({heading:e,title:m,cas_label:h,hs_label:p,labels:g,product_url_prefix:v,products:x=[]}){let b=(0,s.useTranslations)(),f=e||m||"",w=f===b("related_products")?b("you_may_also_like"):f,y=g?.origin_label||b("origin"),j=g?.cas_label||h||b("cas_number"),N=g?.hs_label||p||b("hs_code"),_=g?.inquire_label||b("inquire_now"),k=v||"/",C=x.length>4,S=(0,a.useRef)(null),L=(0,a.useRef)(null),I=(0,a.useRef)(null),[z,A]=(0,a.useState)(null),q=(0,a.useCallback)(()=>{z&&!z.destroyed&&0!==x.length&&d(z,S.current)},[z,x.length]);return((0,a.useEffect)(()=>{q()},[q]),(0,a.useEffect)(()=>{z&&!z.destroyed&&u(z,L.current,I.current)},[z]),0===x.length)?null:(0,t.jsx)("section",{className:"otp-premium-related bg-[var(--our-top-products-one-section-bg)] pt-[var(--our-top-products-one-padding-top-mobile)] pb-[var(--our-top-products-one-padding-bottom-mobile)] lg:bg-[var(--our-top-products-one-section-bg)] lg:pt-[var(--our-top-products-one-padding-top-desktop)] lg:pb-[var(--our-top-products-one-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5 flex w-full flex-col",children:[(0,t.jsx)("div",{className:"order-1 mb-[var(--our-top-products-one-header-margin-bottom-mobile)] flex gap-[var(--our-top-products-one-header-gap)] items-center justify-between lg:mb-[var(--our-top-products-one-header-margin-bottom-desktop)]",children:(0,t.jsx)("h2",{className:"text-start text-[length:var(--our-top-products-one-title-size-mobile)] leading-[var(--our-top-products-one-title-line-mobile)] font-[var(--our-top-products-one-title-weight-mobile)] text-[var(--our-top-products-one-title-color)] lg:text-[length:var(--our-top-products-one-title-size-desktop)] lg:leading-[var(--our-top-products-one-title-line-desktop)] lg:font-[var(--our-top-products-one-title-weight-desktop)]",children:w})}),(0,t.jsx)("div",{ref:S,role:"presentation",className:"order-3 !relative !bottom-auto !left-auto !right-auto !top-auto z-10 !mx-auto mt-[var(--our-top-products-one-pagination-mt-mobile)] flex min-h-[length:var(--our-top-products-one-pagination-bullet-size)] flex-row flex-wrap items-center justify-center gap-x-[var(--our-top-products-one-pagination-bullet-gap
383)] gap-y-[var(--gap-8)] lg:mt-[var(--our-top-products-one-pagination-mt-desktop)] [--swiper-pagination-bullet-height:var(--our-top-products-one-pagination-bullet-size)] [--swiper-pagination-bullet-horizontal-gap:var(--our-top-products-one-pagination-bullet-gap)] [--swiper-pagination-bullet-inactive-color:var(--our-top-products-one-pagination-bullet-inactive)] [--swiper-pagination-bullet-inactive-opacity:1] [--swiper-pagination-bullet-size:var(--our-top-products-one-pagination-bullet-size)] [--swiper-pagination-bullet-width:var(--our-top-products-one-pagination-bullet-size)] [--swiper-pagination-color:var(--our-top-products-one-pagination-bullet-active)] [&_.swiper-pagination-bullet]:!m-0 [&_.swiper-pagination-bullet]:box-border [&_.swiper-pagination-bullet]:inline-flex [&_.swiper-pagination-bullet]:!size-[length:var(--our-top-products-one-pagination-bullet-size)] [&_.swiper-pagination-bullet]:shrink-0 [&_.swiper-pagination-bullet]:cursor-pointer [&_.swiper-pagination-bullet]:!rounded-none [&_.swiper-pagination-bullet]:border-0 [&_.swiper-pagination-bullet]:!bg-[var(--our-top-products-one-pagination-bullet-inactive)] [&_.swiper-pagination-bullet]:!p-0 [&_.swiper-pagination-bullet]:!opacity-100 [&_.swiper-pagination-bullet]:transition-colors [&_.swiper-pagination-bullet]:duration-200 [&_.swiper-pagination-bullet-active]:!bg-[var(--our-top-products-one-pagination-bullet-active)]"}),(0,t.jsxs)("div",{className:"otp-premium-related-carousel order-2",children:[(0,t.jsx)("button",{ref:L,type:"button","aria-label":b("previous_slide"),className:"otp-premium-related-nav is-prev flex cursor-pointer size-[length:var(--our-top-products-one-nav-btn-size-mobile)] md:size-[length:var(--our-top-products-one-nav-btn-size-desktop)] shrink-0 items-center justify-center rounded-full border-2 border-[var(--our-top-products-one-nav-border-color)] bg-[var(--our-top-products-one-nav-bg)] transition-[background-color,border-color,transform,opacity] duration-[var(--our-top-products-one-nav-hover-duration)] ease-out hover:scale-[1.04] hover:border-[var(--our-top-products-one-nav-hover-border)] hover:bg-[var(--our-top-products-one-nav-hover-bg)] hover:[&_svg]:text-[var(--our-top-products-one-nav-icon-hover-fill)] [&.swiper-button-disabled]:pointer-events-none [&.swiper-button-disabled]:opacity-40 [&_svg]:text-[var(--our-top-products-one-nav-icon-fill)] [&_svg]:transition-colors [&_svg]:duration-[var(--our-top-products-one-nav-hover-duration)]",children:(0,t.jsx)(o.ArrowIcon,{className:"h-3.5 w-4 rotate-180 rtl:rotate-0"})}),(0,t.jsx)(n.Swiper,{modules:[l.Navigation,i.Pagination,r.Autoplay],loop:C,rewind:!C,loopAddBlankSlides:!1,speed:400,slidesPerGroup:1,slidesPerView:1,spaceBetween:16,watchOverflow:!0,centerInsufficientSlides:!0,navigation:{},pagination:{clickable:!0},autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},onBeforeInit:e=>{let{navigation:t}=e.params;t&&"boolean"!=typeof t&&(t.prevEl=L.current,t.nextEl=I.current)},onSwiper:e=>{A(e),queueMicrotask(()=>{e.destroyed||(d(e,S.current),u(e,L.current,I.current))})},onResize:e=>{d(e,S.current),u(e,L.current,I.current)},breakpoints:{640:{slidesPerView:3,slidesPerGroup:1,spaceBetween:18},1024:{slidesPerView:4,slidesPerGroup:1,spaceBetween:24}},className:"w-full min-h-0 min-w-0 overflow-hidden [&_.swiper-slide]:!h-auto [&_.swiper-slide]:min-h-0 [&_.swiper-wrapper]:!items-stretch [&_.swiper-wrapper]:py-[length:var(--our-top-products-one-card-hover-lift)]",children:x.map((e,a)=>{let r=e.title||e.name||"",l=e.image_url||void 0,i=e.url_key?`${k.replace(/\/$/,"")}/${e.url_key.replace(/^\//,"")}`:k,s=e.cas||"",o=e.hs_code||"",d=e.origin||"";return(0,t.jsx)(n.SwiperSlide,{className:"!box-border",children:(0,t.jsx)(c.InheritedProductTileOne,{title:r,imageSrc:l,href:i,originLabel:y,casLabel:j,hsLabel:N,inquireLabel:_,originValue:d,casValue:s,hsValue:o})},`${e.id??e.url_key??a}`)})},C?"loop":"rewind"),(0,t.jsx)("button",{ref:I,type:"button","aria-label":b("next_slide"),className:"otp-premium-related-nav is-next flex cursor-pointer size-[length:var(--our-top-products-one-nav-btn-size-mobile)] md:size-[length:var(--our-top-products-one-nav-btn-size-desktop)] shrink-0 items-center justify-center rounded-full border-2 border-[var(--our-top-products-one-nav-border-color)] bg-[var(--our-top-products-one-nav-bg)
383] transition-[background-color,border-color,transform,opacity] duration-[var(--our-top-products-one-nav-hover-duration)] ease-out hover:scale-[1.04] hover:border-[var(--our-top-products-one-nav-hover-border)] hover:bg-[var(--our-top-products-one-nav-hover-bg)] hover:[&_svg]:text-[var(--our-top-products-one-nav-icon-hover-fill)] [&.swiper-button-disabled]:pointer-events-none [&.swiper-button-disabled]:opacity-40 [&_svg]:text-[var(--our-top-products-one-nav-icon-fill)] [&_svg]:transition-colors [&_svg]:duration-[var(--our-top-products-one-nav-hover-duration)]",children:(0,t.jsx)(o.ArrowIcon,{className:"h-3.5 w-4 rtl:rotate-180"})})]})]})})}e.s(["OurTopProductsSectionOne",()=>m])},792646,e=>{"use strict";var t=e.i(843476),a=e.i(187387);e.i(716787);var r=e.i(659544);e.i(527967);var l=e.i(830167),i=e.i(301630);e.i(79951);var n=e.i(902936),s=e.i(861745),o=e.i(948148),c=e.i(657688),d=e.i(271645),u=e.i(579053),m=e.i(186301),h=e.i(980401);function p(e,t){return[t.mobile?`cps--${e}-mobile`:"",t.tablet?`cps--${e}-tablet`:"",t.desktop?`cps--${e}-desktop`:""].filter(Boolean)}function g(e){return e.desktop||e.tablet||e.mobile}function v({item:e,counts:a,toneIndex:r}){let l=(0,i.normalizeCmsImage)(e.image?.trim()??"",""),s=e.name?.trim()??"",o=`cps-fancy-tile--tone-${r%6+1}`,d=(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsx)("div",{className:"cps-fancy-tile__media","aria-hidden":!0,children:(0,t.jsx)(c.default,{src:l,alt:"",fill:!0,sizes:"(max-width: 767px) 100vw, (max-width: 1023px) 50vw, 33vw"})}):null,(0,t.jsx)("div",{className:"cps-fancy-tile__overlay","aria-hidden":!0}),(0,t.jsxs)("div",{className:"cps-fancy-tile__body",children:[(0,t.jsx)("div",{className:"cps-fancy-tile__icon","aria-hidden":!l,children:l?(0,t.jsx)("div",{className:"cps-fancy-tile__icon-inner",children:(0,t.jsx)(c.default,{src:l,alt:"",fill:!0,sizes:"56px"})}):null}),(0,t.jsxs)("div",{className:"cps-fancy-tile__copy",children:[s?(0,t.jsx)("h3",{className:"cps-fancy-tile__name font-semibold",children:s}):null,a?(0,t.jsx)("p",{className:"cps-fancy-tile__counts",children:a}):null]})]})]});return e.href?(0,t.jsx)(n.Link,{href:e.href,className:`cps-fancy-tile ${o}`,"aria-label":s||void 0,children:d}):(0,t.jsx)("article",{className:`cps-fancy-tile ${o}`,children:d})}function x(e){let{instanceId:i,source:n,items:c,slidesPerView:x,carouselInfinite:b,carouselIndicators:f,carouselControls:w}=e,y=(0,o.useTranslations)(),j=(0,s.useLocale)(),N=(0,d.useId)(),_=(0,d.useMemo)(()=>{let e;return(e=i?.trim())?e.replace(/[^a-zA-Z0-9_-]/g,"-"):N.replace(/:/g,"")},[i,N]),k=`cps-prev-${_}`,C=`cps-next-${_}`,S=`cps-dots-${_}`,{effectiveControls:L,effectiveIndicators:I}=(0,d.useMemo)(()=>{var e;let t,a,r;return e=c.length,t={mobile:e>x.mobile,tablet:e>x.tablet,desktop:e>x.desktop},a={mobile:w.mobile&&t.mobile,tablet:w.tablet&&t.tablet,desktop:w.desktop&&t.desktop},r={mobile:f.mobile&&t.mobile,tablet:f.tablet&&t.tablet,desktop:f.desktop&&t.desktop},{canSlide:t,effectiveControls:a,effectiveIndicators:r}},[c.length,x,w,f]),z=(0,d.useMemo)(()=>g(L),[L]),A=(0,d.useMemo)(()=>g(I),[I]);if(0===c.length)return null;if("product"!==n){let e=function(e,t){if(0===e.length)return[];let a=[];for(let t=0;t<e.length;t+=3)a.push(e.slice(t,t+3));return a}(c,0);return(0,t.jsx)("div",{"data-cps-fancy":"true",children:(0,t.jsx)("div",{className:"cps-fancy-grid",children:e.map((e,a)=>(0,t.jsx)("div",{className:"cps-fancy-grid__row","data-cols":e.length,style:{"--cps-fancy-row-cols":e.length},children:e.map((e,r)=>{let l;return(0,t.jsx)(v,{item:e,counts:(l=e.productCount,`${new Intl.NumberFormat(j).format(l)} ${y("products")}`),toneIndex:3*a+r},String(e.id))})},`cps-fancy-row-${a}`))})})}let q=Math.max(x.desktop,x.tablet,x.mobile),E=b&&c.length>q,$=[...p("controls",L),...p("indicators",I)].join(" ");return(0,t.jsxs)("div",{className:`cps ${$}`.trim(),children:[(0,t.jsxs)("div",{className:"cps__viewport",children:[z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{type:"button",variant:"outlined","aria-label":y("previous"),className:`${k} cps__arrow cps__arrow--prev disabled:cursor-not-allowed`,children:(0,t.jsx)(l.ArrowIcon,{className:"h-3.5 w-4 rotate-180"})}),(0,t.jsx)(r.Button,{type:"button",variant:"outlined","aria-label":y("next"),className:`${C} cps__arrow cps__arrow--next disabled:cursor-not-allowed`,children:(0,t.jsx)(l.ArrowIcon,{className:"h-3.5 w-4"})})]}):null,(0,t.jsx)(h.Swiper,{modules:[u.Navigation,m.Pagination],loop:E,watchOverflow:!0,centerInsufficientSlides:!0,slidesPerView:x.mobile,spaceBetween:16,navigation:!!z&&{prevEl:`.${k}`,nextEl:`.${C}`},pagination:!!A&&{clickable:!0,el:`.${S}`},breakpoints:{0:{slidesPerView:x.mobile,spaceBetween:16},768:{slidesPerView:x.tablet,spaceBetween:16},1024:{slidesPerView:x.desktop,spaceBetween:24}},className:"cps__swiper",children:c.map(e=>(0,t.jsx)(h.SwiperSlide,{children:(0,t.jsx)(a.ProductTileOne,{title:e.title,imageSrc:e.imageSrc,href:e.href,originLabel:y("origin"),casLabel:y("cas_number"),hsLabel:y("hs_code"),inquireLabel:y("inquire_now"),originValue:e.originValue,casValue:e.casValue,hsValue:e.hsValue})},String(e.id)))})]}),A?(0,t.jsx)("div",{className:`cps__indicators ${S} !relative !bottom-auto !left-auto !right-auto !top-auto !w-auto [&_.swiper-pagination-bullet]:!m-0`}):null]})}e.s(["CategoryProductSliderSection",()=>x],792646)},963181,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(24014),l=e.i(861745),i=e.i(948148);e.i(79951);var n=e.i(76209),s=e.i(420268),o=e.i(657688);function c({isOpen:e,onClose:c,languages:d=[],activeLanguageCode:u,allBreakpoints:m=!1}){let h=(0,i.useTranslations)(),p=(0,l.useLocale)(),g=(0,n.usePathname)(),[v,x]=(0,a.useState)(null),[b,f]=(0,a.useState)(null);if(!e)return null;let w=(0,r.resolveActiveLocaleCode)(u)||p,y=(0,s.normalizeUiLocale)(w),j=async e=>{f(null);let t=e.trim();if(!t)return;let a=(0,s.normalizeUiLocale)(t);x(t),await (0,r.setPreferredLocaleAfterVerify)(t,{currentCode:w,onSame:c,onError:e=>{f(h(e.messageKey)),x(null)},onApplied:()=>{c(),(0,r.resolveLocalizedPathForLanguage)(g,a,w).then(e=>{let t=window.location.search,a=window.location.hash;window.location.assign(`${e}${t}${a}`)})}}),x(null)};return(0,t.jsxs)("div",{className:m?void 0:"lg:hidden",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[var(--header-two-z-config-modal-backdrop)] bg-[var(--header-two-modal-lang-backdrop-bg)]","aria-hidden":!0,onClick:c}),(0,t.jsxs)("div",{className:"fixed left-1/2 top-1/2  z-[var(--header-two-z-config-modal-dialog)] w-full max-w-[var(--header-two-modal-lang-dialog-max-width-mobile)] md:max-w-[var(--header-two-modal-lang-dialog-max-width-desktop)] -translate-x-1/2 -translate-y-1/2 roun
383ded-0 bg-[var(--header-two-modal-lang-dialog-bg)] px-[length:var(--header-two-modal-lang-dialog-padding-x-mobile)] md:px-[length:var(--header-two-modal-lang-dialog-padding-x-desktop)] py-[length:var(--header-two-modal-lang-dialog-padding-y-mobile)] md:py-[length:var(--header-two-modal-lang-dialog-padding-y-desktop)] shadow-[var(--header-two-modal-lang-dialog-shadow)]",role:"dialog","aria-labelledby":"language-modal-title","aria-modal":!0,children:[(0,t.jsxs)("div",{className:"flex items-center  justify-between gap-[length:var(--header-two-modal-lang-header-gap)] px-0 md:px-4 pb-[length:var(--header-two-modal-lang-header-padding-bottom-mobile)] md:pb-[length:var(--header-two-modal-lang-header-padding-bottom-desktop)]",children:[(0,t.jsx)("h2",{id:"language-modal-title",className:"min-w-0 flex-1 text-start text-[length:var(--header-two-modal-lang-heading-font-size-mobile)] font-[var(--header-two-modal-lang-heading-font-weight)] leading-[var(--header-two-modal-lang-heading-line-height)] text-[var(--header-two-modal-lang-heading-color)] md:text-[length:var(--header-two-modal-lang-heading-font-size-desktop)]",children:h("choose_your_language")}),(0,t.jsx)("button",{type:"button",onClick:c,"aria-label":h("close"),className:"shrink-0 rounded-md p-1 text-[var(--header-two-modal-lang-close-color)] transition-colors hover:text-[var(--header-two-modal-lang-close-hover-color)]",children:(0,t.jsx)(o.default,{src:"/close.svg",alt:"",width:14,height:14,className:"h-[length:var(--header-two-modal-lang-close-icon-size)] w-[length:var(--header-two-modal-lang-close-icon-size)] opacity-70 hover:opacity-100"})})]}),b?(0,t.jsx)("p",{className:"mb-[length:var(--header-two-modal-lang-header-padding-bottom)] text-sm text-[var(--brand-danger,#b91c1c)]",role:"alert",children:b}):null,(0,t.jsx)("div",{className:"md:max-h-[var(--header-two-modal-lang-list-max-height)] overflow-y-auto [scrollbar-gutter:stable]",children:0===d.length?(0,t.jsx)("p",{className:"px-0 text-start text-sm text-[var(--header-two-modal-lang-label-color)] md:px-4",children:h("no_languages_available")}):(0,t.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 gap-[length:var(--header-two-modal-lang-grid-gap)] px-0 md:px-4",children:d.map(e=>{let a=e.code.trim(),r=a.toLowerCase()===w.toLowerCase()||(0,s.normalizeUiLocale)(a)===y,l=v?.toLowerCase()===e.code.trim().toLowerCase();return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",disabled:l,"aria-current":r?"true":void 0,"aria-pressed":r?"true":void 0,className:["flex w-full items-center gap-[length:var(--header-two-modal-lang-item-gap)] rounded-[length:var(--header-two-modal-lang-item-radius)] border-2 bg-[var(--header-two-modal-lang-item-bg)] px-[length:var(--header-two-modal-lang-item-padding-x-mobile)] py-[length:var(--header-two-modal-lang-item-padding-y)] text-start transition-colors ring-offset-1 md:px-[length:var(--header-two-modal-lang-item-padding-x-desktop)]",r?"border-[var(--header-two-top-color-secondary)]":"border-[color:var(--header-two-modal-lang-item-border)] hover:border-[var(--header-two-top-color-secondary)] focus-visible:border-[var(--header-two-top-color-secondary)] focus-visible:outline-none"].join(" "),onClick:()=>j(e.code),children:[(0,t.jsx)("span",{className:"relative h-[length:var(--header-two-modal-lang-flag-box-height)] w-[length:var(--header-two-modal-lang-flag-box-width)] shrink-0 overflow-hidden rounded-0",children:(0,t.jsx)(o.default,{src:e.flagSrc??"/flag.svg",alt:"",width:32,height:24,className:"h-full w-full object-cover"})}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-start text-[length:var(--header-two-modal-lang-label-font-size)] font-[var(--header-two-modal-lang-label-font-weight)] text-[var(--header-two-modal-lang-label-color)]",children:e.name}),r?(0,t.jsx)("span",{className:"ms-auto h-2.5 w-2.5 shrink-0 rounded-full bg-[var(--header-two-top-color-secondary)]","aria-hidden":"true"}):null]})},e.code)})})})]})]})}e.s(["LanguageModal",()=>c])},548764,e=>{"use strict";var t=e.i(843476),a=e.i(301630);e.i(79951);var r=e.i(902936),l=e.i(657688);function i(e){return"string"==typeof e?e.trim():""}function n({image:e,name:n,counts:s,href:o}){let c=(0,a.normalizeCmsImage)(i(e),""),d=i(n),u=i(s);if(!c&&!d)return null;let m=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"coc-standard__media",children:c?(0,t.jsx)("span",{className:"coc-standard__image-frame",children:(0,t.jsx)(l.default,{src:c,alt:"",fill:!0,sizes:"(max-width: 767px) 128px, (max-width: 1023px) 144px, 160px",quality:100,className:"coc-standard__image","aria-hidden":!0})}):(0,t.jsx)("span",{className:"coc-standard__placeholder","aria-hidden":!0})}),d?(0,t.jsx)("h3",{className:"coc-standard__title",children:d}):null,u?(0,t.jsx)("span",{className:"coc-standard__overlay","aria-hidden":!0,
383children:(0,t.jsx)("span",{className:"coc-standard__overlay-count",children:u})}):null]});return o?(0,t.jsx)(r.Link,{href:o,className:u?"coc-standard coc-standard--has-count":"coc-standard","aria-label":d?u?`${d}, ${u}`:d:void 0,children:m}):(0,t.jsx)("article",{className:u?"coc-standard coc-standard--has-count":"coc-standard",children:m})}var s=e.i(700483);e.i(716787);var o=e.i(659544);e.i(527967);var c=e.i(830167),d=e.i(861745),u=e.i(948148),m=e.i(271645),h=e.i(579053),p=e.i(186301),g=e.i(980401);function v(e,t){return[t.mobile?`cps--${e}-mobile`:"",t.tablet?`cps--${e}-tablet`:"",t.desktop?`cps--${e}-desktop`:""].filter(Boolean)}function x(e){return e.desktop||e.tablet||e.mobile}function b(e){let{instanceId:a,source:r,items:l,slidesPerView:i,carouselInfinite:b,carouselIndicators:f,carouselControls:w}=e,y=(0,u.useTranslations)(),j=(0,d.useLocale)(),N=(0,m.useId)(),_=(0,m.useMemo)(()=>{let e;return(e=a?.trim())?e.replace(/[^a-zA-Z0-9_-]/g,"-"):N.replace(/:/g,"")},[a,N]),k=`cps-prev-${_}`,C=`cps-next-${_}`,S=`cps-dots-${_}`,{effectiveControls:L,effectiveIndicators:I}=(0,m.useMemo)(()=>{var e;let t,a,r;return e=l.length,t={mobile:e>i.mobile,tablet:e>i.tablet,desktop:e>i.desktop},a={mobile:w.mobile&&t.mobile,tablet:w.tablet&&t.tablet,desktop:w.desktop&&t.desktop},r={mobile:f.mobile&&t.mobile,tablet:f.tablet&&t.tablet,desktop:f.desktop&&t.desktop},{canSlide:t,effectiveControls:a,effectiveIndicators:r}},[l.length,i,w,f]),z=(0,m.useMemo)(()=>x(L),[L]),A=(0,m.useMemo)(()=>x(I),[I]);if(0===l.length)return null;let q=Math.max(i.desktop,i.tablet,i.mobile),E=b&&l.length>q,$=[...v("controls",L),...v("indicators",I)].join(" ");return(0,t.jsxs)("div",{className:`cps cps-standard ${$}`.trim(),children:[(0,t.jsxs)("div",{className:"cps__viewport",children:[z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{type:"button",variant:"primary","aria-label":y("previous"),className:`${k} cps__arrow cps__arrow--prev cps-standard__arrow`,children:(0,t.jsx)(c.ArrowIcon,{className:"cps-standard__arrow-icon"})}),(0,t.jsx)(o.Button,{type:"button",variant:"primary","aria-label":y("next"),className:`${C} cps__arrow cps__arrow--next cps-standard__arrow`,children:(0,t.jsx)(c.ArrowIcon,{className:"cps-standard__arrow-icon"})})]}):null,(0,t.jsx)(g.Swiper,{modules:[h.Navigation,p.Pagination],loop:E,watchOverflow:!0,centerInsufficientSlides:!0,slidesPerView:i.mobile,spaceBetween:16,navigation:!!z&&{prevEl:`.${k}`,nextEl:`.${C}`},pagination:!!A&&{clickable:!0,el:`.${S}`},breakpoints:{0:{slidesPerView:i.mobile,spaceBetween:16},768:{slidesPerView:i.tablet,spaceBetween:16},1024:{slidesPerView:i.desktop,spaceBetween:24}},className:"cps__swiper",children:"product"===r?l.map(e=>(0,t.jsx)(g.SwiperSlide,{children:(0,t.jsx)(s.ProductTileOne,{title:e.title,imageSrc:e.imageSrc,href:e.href,originLabel:y("origin"),casLabel:y("cas_number"),hsLabel:y("hs_code"),inquireLabel:y("inquire_now"),originValue:e.originValue,casValue:e.casValue,hsValue:e.hsValue})},String(e.id))):l.map(e=>{let a;return(0,t.jsx)(g.SwiperSlide,{children:(0,t.jsx)(n,{image:e.image,name:e.name,counts:e.productCount>0?(a=e.productCount,`${new Intl.NumberFormat(j).format(a)} ${y("products")}`):void 0,href:e.href})},String(e.id))})})]}),A?(0,t.jsx)("div",{className:`cps__indicators ${S} !relative !bottom-auto !left-auto !right-auto !top-auto !w-auto [&_.swiper-pagination-bullet]:!m-0`}):null]})}e.s(["CategoryProductSliderSection",()=>b],548764)},39286,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(455331),a=a,r=e.i(271645),l=e.i(948148),i=e.i(632423);function n(e){return[...e].sort((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"}))}async function s(e){try{let t=await fetch(`/api/technical-details?page=${e}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!t.ok)return null;let a=await t.json();return{data:a.data??[],meta:a.meta}}catch{return null}}function o({docs:e,label:r}){let l=e?.find(e=>e.url?.trim())??null;return l?(0,t.jsx)("td",{"data-label":r,className:"text-center px-[length:var(--technical-library-cell-px-mobile)] py-[length:var(--technical-library-cell-py)] md:px-[length:var(--technical-library-cell-px-desktop)]",children:(0,t.jsxs)(i.AuthGatedDocLink,{href:l.url,className:"inline-flex appearance-none items-center justify-center border-0 bg-transparent p-0 leading-none text-[color:var(--technical-library-download-icon-color)] cursor-pointer",children:[(0,t.jsx)("span",{className:"sr-only",children:l.display_name||r}),(0,t.jsx)(a.default,{className:"h-[18px] w-[18px] md:h-[22px] md:w-[22px]","aria-hidden":!0})]})}):(0,t.jsx)("td",{"data-label":r,className:"text-center px-[length:var(--technical-library-cell-px-mobile)] py-[length:var(--technical-library-cell-py)] md:px-[length:var(--technical-library-cell-px-desktop)] text-[color:var(--technical-library-td-color)] text-[length:var(--technical-library-td-size-mobile)]",children:(0,t.jsx)("span",{className:"text-gray-300",children:"—"})})}function c({initialData:e,initialMeta:a}){let i=(0,l.useTranslations)(),[c,d]=(0,r.useState)(()=>n(e)),[u,m]=(0,r.useState)(a),[h,p]=(0,r.useTransition)(),g=u.current_page,v=u.last_page;function x(e){e<1||e>v||e===g||p(async()=>{let t=await s(e);t&&(d(n(t.data)),m(t.meta),window.scrollTo({top:0,behavior:"smooth"}))})}let b=Array.from({length:v},(e,t)=>t+1);return(0,t.jsx)("section",{className:"pt-[var(--technical-library-padding-top-mobile)] pb-[var(--technical-library-padding-bottom-mobile)] md:pt-[var(--technical-library-padding-top-desktop)] md:pb-[var(--technical-library-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[(0,t.jsx)("h1",{className:"text-[length:var(--technical-library-heading-size-mobile)] font-[var(--technical-library-heading-weight)] leading-[var(--technical-library-heading-line-mobile)] text-[var(--technical-library-heading-color)] md:text-[length:var(--technical-library-heading-size-desktop)] md:leading-[var(--technical-library-heading-line-desktop)] text-center mb-10",children:i("technical_library")}),(0,t.jsx)("div",{className:`w-full overflow-x-auto border border-[color:var(--technical-library-table-border)] transition-opacity duration-200 ${h?"opacity-50":"opacity-100"}`,children:(0,t.jsxs)("table",{className:"w-full table-fixed border-collapse",children:[(0,t.jsxs)("colgroup",{children:[(0,t.jsx)("col",{className:"w-1/2 md:w-1/3"}),(0,t.jsx)("col",{className:"w-1/4 md:w-1/3"}),(0,t.jsx)("col",{className:"w-1/4 md:w-1/3"})]}),(0,t.jsx)("thead",{className:"bg-[color:var(--technical-library-thead-bg)]",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",className:"text-start px-[length:var(--technical-library-cell-px-mobile)] py-[length:var(--technical-library-cell-py)] md:px-[length:var(--technical-library-cell-px-desktop)] text-[color:var(--technical-library-th-color)] text-[length:var(--technical-library-th-size-mobile)] leading-[var(--technical-library-th-lh-mobile)] font-[var(--technical-library-th-weight)] md:text-[length:var(--technical-library-th-size-desktop)] md:leading-[var(--technical-library-th-lh-desktop)]",children:i("product_name")}
383),(0,t.jsx)("th",{scope:"col",className:"text-center px-[length:var(--technical-library-cell-px-mobile)] py-[length:var(--technical-library-cell-py)] md:px-[length:var(--technical-library-cell-px-desktop)] text-[color:var(--technical-library-th-color)] text-[length:var(--technical-library-th-size-mobile)] leading-[var(--technical-library-th-lh-mobile)] font-[var(--technical-library-th-weight)] md:text-[length:var(--technical-library-th-size-desktop)] md:leading-[var(--technical-library-th-lh-desktop)]",children:i("tds")}),(0,t.jsx)("th",{scope:"col",className:"text-center px-[length:var(--technical-library-cell-px-mobile)] py-[length:var(--technical-library-cell-py)] md:px-[length:var(--technical-library-cell-px-desktop)] text-[color:var(--technical-library-th-color)] text-[length:var(--technical-library-th-size-mobile)] leading-[var(--technical-library-th-lh-mobile)] font-[var(--technical-library-th-weight)] md:text-[length:var(--technical-library-th-size-desktop)] md:leading-[var(--technical-library-th-lh-desktop)]",children:i("msds")})]})}),(0,t.jsx)("tbody",{children:0===c.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:3,className:"text-center py-8 text-[color:var(--technical-library-td-color)] text-[length:var(--technical-library-td-size-mobile)] md:text-[length:var(--technical-library-td-size-desktop)]",children:i("no_documents_available")})}):c.map(e=>(0,t.jsxs)("tr",{className:"border-t border-[color:var(--technical-library-table-border)]",children:[(0,t.jsx)("td",{"data-label":i("product_name"),className:"px-[length:var(--technical-library-cell-px-mobile)] py-[length:var(--technical-library-cell-py)] md:px-[length:var(--technical-library-cell-px-desktop)] text-[color:var(--technical-library-td-color)] text-[length:var(--technical-library-td-size-mobile)] leading-[var(--technical-library-td-lh-mobile)] font-[var(--technical-library-td-weight)] md:text-[length:var(--technical-library-td-size-desktop)] md:leading-[var(--technical-library-td-lh-desktop)]",children:e.name}),(0,t.jsx)(o,{docs:e.documents.tds,label:i("tds")}),(0,t.jsx)(o,{docs:e.documents.msds,label:i("msds")})]},e.sku))})]})}),v>1&&(0,t.jsx)("div",{className:"mt-[length:var(--technical-library-pagination-mt)]",children:(0,t.jsxs)("ul",{className:"technical-library-pagination pagination",children:[(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:"#",rel:"prev",className:g<=1?"is-disabled":void 0,onClick:e=>{e.preventDefault(),x(g-1)},"aria-disabled":g<=1,"aria-label":i("previous_page"),children:[(0,t.jsx)("span",{className:"rtl:hidden","aria-hidden":!0,children:"«"}),(0,t.jsx)("span",{className:"hidden rtl:inline","aria-hidden":!0,children:"»"})]})}),b.map(e=>(0,t.jsx)("li",{className:e===g?"active":void 0,children:e===g?(0,t.jsx)("span",{children:e}):(0,t.jsx)("a",{href:"#",onClick:t=>{t.preventDefault(),x(e)},children:e})},e)),(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:"#",rel:"next",className:g>=v?"is-disabled":void 0,onClick:e=>{e.preventDefault(),x(g+1)},"aria-disabled":g>=v,"aria-label":i("next_page"),children:[(0,t.jsx)("span",{className:"rtl:hidden","aria-hidden":!0,children:"»"}),(0,t.jsx)("span",{className:"hidden rtl:inline","aria-hidden":!0,children:"«"})]})})]})})]})})}e.s(["TechnicalLibrarySection",()=>c],39286)},274258,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(872225),l=e.i(579053),i=e.i(186301),n=e.i(980401);e.i(79951);var s=e.i(902936),o=e.i(948148),c=e.i(657688);function d(e){return"imageSrc"in e&&"string"==typeof e.imageSrc}function u({direction:e}){return(0,t.jsx)("svg",{className:["h-4 w-4","prev"===e?"rotate-180 rtl:rotate-0":"rtl:rotate-180"].filter(Boolean).join(" "),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M15.9902 12C15.9902 12.2509 15.8944 12.5018 15.7032 12.6931L9.68341 18.7128C9.30048 19.0957 8.67962 19.0957 8.29685 18.7128C7.91407 18.33 7.91407 17.7093 8.29685 17.3263L13.6235 12L8.29703 6.67371C7.91426 6.29078 7.91426 5.67011 8.29703 5.28737C8.67981 4.90425 9.30066 4.90425 9.6836 5.28737L15.7033 11.307C15.8946 11.4983 15.9902 11.7492 15.9902 12Z",fill:"currentColor"})})}function m({intro:e,heading:m,slides:h=[],autoplay:p=0,interval:g=5e3,show_dots:v=1,show_arrows:x=1}){let b=(0,o.useTranslations)(),f=(0,a.useId)().replace(/[^a-z0-9]/gi,"");if(!h||0===h.length)return null;let w=1===p,y=1===v,j=1===x,N=`sc-carousel-prev-${f}`,_=`sc-carousel-next-${f}`,k=`sc-carousel-dots-${f}`;return(0,t.jsx)("section",{"data-premium-supply-chain-carousel":!0,className:" pt-[var(--supply-chain-carousel-padding-top-mobile)] pb-[var(--supply-chain-carousel-padding-bottom-mobile)] md:pt-[var(--supply-chain-carousel-padding-top-desktop)] md:pb-[var(--supply-chain-carousel-padding-bottom-desktop)] ",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[m?(0,t.jsx)("h2",{className:" mb-4 text-center text-[var(--sc-carousel-premium-title-color)] text-[length:var(--supply-chain-carousel-title-size-desktop)] font-[var(--supply-chain-carousel-title-weight)] ",children:m}):null,e?(0,t.jsx)("p",{className:" p-line mx-auto mb-8 max-w-[var(--supply-chain-carousel-intro-max-width)] text-center text-[var(--supply-chain-carousel-intro-color)] text-[length:var(--supply-chain-carousel-intro-size-mobile)] leading-[var(--supply-chain-carousel-intro-lh-mobile)] font-[var(--supply-chain-carousel-intro-weight)] md:text-[length:var(--supply-chain-carousel-intro-size-desktop)] md:leading-[var(--supply-chain-carousel-intro-lh-desktop)] ",children:e}):null,(0,t.jsxs)("div",{className:"relative",children:[j?(0,t.jsx)("button",{type:"button",className:`
384                ${N} absolute start-0 top-1/2 z-20 flex
385                h-[var(--supply-chain-carousel-nav-size)]
386                w-[var(--supply-chain-carousel-nav-size)]
387                -translate-x-1/2 -translate-y-1/2 items-center justify-center
388                rounded-full border border-[color:var(--sc-carousel-premium-nav-border)]
389                bg-[var(--sc-carousel-premium-nav-bg)]
390                text-[var(--sc-carousel-premium-nav-color)]
391                shadow-sm md:start-2 md:translate-x-0
392                rtl:translate-x-1/2 md:rtl:translate-x-0
393              `,"aria-label":b("previous"),children:(0,t.jsx)(u,{direction:"prev"})}):null,j?(0,t.jsx)("button",{type:"button",className:`
394                ${_} absolute end-0 top-1/2 z-20 flex
395                h-[var(--supply-chain-carousel-nav-size)]
396                w-[var(--supply-chain-carousel-nav-size)]
397                translate-x-1/2 -translate-y-1/2 items-center justify-center
398                rounded-full border border-[color:var(--sc-carousel-premium-nav-border)]
399                bg-[var(--sc-carousel-premium-nav-bg)]
400                text-[var(--sc-carousel-premium-nav-color)]
401                shadow-sm md:end-2 md:translate-x-0
402                rtl:-translate-x-1/2 md:rtl:translate-x-0
403              `,"aria-label":b("next"),children:(0,t.jsx)(u,{direction:"next"})}):null,(0,t.jsx)(n.Swiper,{modules:[l.Navigation,i.Pagination,r.Autoplay],spaceBetween:0,slidesPerView:1,loop:w,autoplay:!!w&&{delay:g,disableOnInteraction:!1},navigation:!!j&&{prevEl:`.${N}`,nextEl:`.${_}`},pagination:!!y&&{clickable:!0,el:`.${k}`},className:"supply-chain-carousel",children:h.map((e,a)=>{let r=d(e)?e.imageSrc||null:e.image_url?.trim()||null,l=d(e)?e.title||null:e.title?.trim()||null,i=d(e)?e.description||null:e.description?.trim()||null,o=d(e)?null:e,u=o?.button_url?.trim()&&o?.button_label?.trim(),m=o?.video_url?.trim(),h=o?.image_alt?.trim()||l||b("slide_video");return(0,t.jsx)(n.SwiperSlide,{children:(0,t.jsxs)("div",{className:" grid min-h-[var(--sc-carousel-premium-slide-min-height)] grid-cols-1 overflow-hidden rounded-[var(--sc-carousel-premium-card-radius)] bg-[var(--sc-carousel-premium-card-bg)] md:grid-cols-2 ",children:[(0,t.jsxs)("div",{className:" order-2 flex flex-col justify-center gap-4 p-[var(--sc-carousel-premium-card-padding)] md:order-1 md:p-8 lg:p-10 ",children:[l?(0,t.jsx)("h4",{className:" text-start text-[var(--sc-carousel-premium-title-color)] text-[length:var(--supply-chain-carousel-title-size-mobile)] leading-[var(--supply-chain-carousel-title-lh-mobile)] font-[var(--supply-chain-carousel-title-weight)] md:text-[length:var(--supply-chain-carousel-title-size-desktop)] md:leading-[var(--supply-chain-carousel-title-lh-desktop)] ",children:l}):null,i?(0,t.jsx)("p",{className:" text-start text-[var(--sc-carousel-premium-desc-color)] text-[length:var(--supply-chain-carousel-desc-size-mobile)] leading-[var(--supply-chain-carousel-desc-lh-mobile)] font-[var(--supply-chain-carousel-desc-weight)] md:text-[length:var(--supply-chain-carousel-desc-size-desktop)] md:leading-[var(--supply-chain-carousel-desc-lh-desktop)] ",children:i}):null,u?(0,t.jsx)(s.Link,{href:o.button_url,className:"btn btn-primary mt-2 w-fit",children:o.button_label}):null]}),(0,t.jsx)("div",{className:"relative order-1 min-h-[220px] p-4 md:order-2 md:min-h-0 md:p-5",children:m?(0,t.jsx)("iframe",{loading:"lazy",src:o.video_url,className:" h-full min-h-[220px] w-full rounded-[var(--sc-carousel-premium-image-radius)] ",allow:"autoplay; fullscreen",title:l??b("slide_video")}):r?(0,t.jsx)("div",{className:"relative h-full min-h-[220px] w-full overflow-hidden rounded-[var(--sc-carousel-premium-image-radius)]",children:(0,t.jsx)(c.default,{src:r,alt:h,fill:!0,sizes:"(max-width: 768px) 100vw, 50vw",quality:80,className:"object-cover"})}):(0,t.jsx)("div",{className:" h-full min-h-[220px] w-full rounded-[var(--sc-carousel-premium-image-radius)] bg-[color-mix(in_srgb,var(--brand-secondary)_10%,white)] ","aria-hidden":!0})})]})},a)})}),y?(0,t.jsx)("div",{className:`
404                supply-chain-carousel-dots ${k}
405                mt-5 flex items-center justify-center
406                gap-[var(--supply-chain-carousel-dot-gap)]
407              `}):null]})]})})}e.s(["SupplyChainSolutionsCarouselSection",()=>m])},791737,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544),r=e.i(657688),l=e.i(579053),i=e.i(186301),n=e.i(980401);e.i(527967);var s=e.i(830167),o=e.i(876773),c=e.i(984371),c=c;let d=[{id:1,name:"Citric Acid Anhydrous",casNumber:"88-92-9",hsCode:"2918.14.00",image:"/CategoryImage.png",checkIcon:o.
407CheckIcon,fileIcon:c.default},{id:2,name:"Citric Acid 1",casNumber:"99-92-9",hsCode:"2918.14.00",image:"/BannerImage.png",checkIcon:o.CheckIcon,fileIcon:c.default},{id:3,name:"Citric Acid 2",casNumber:"77-92-9",hsCode:"2918.14.00",image:"/CategoryImage.png",checkIcon:o.CheckIcon,fileIcon:c.default},{id:4,name:"Citric Acid 3",casNumber:"66-92-9",hsCode:"2918.14.00",image:"/BannerImage.png",checkIcon:o.CheckIcon,fileIcon:c.default},{id:5,name:"Citric Acid 4",casNumber:"44-92-9",hsCode:"2918.14.00",image:"/CategoryImage.png",checkIcon:o.CheckIcon,fileIcon:c.default},{id:6,name:"Citric Acid 5",casNumber:"66-92-9",hsCode:"2918.14.00",image:"/BannerImage.png",checkIcon:o.CheckIcon,fileIcon:c.default}];function u({title:e,subtitle:o}){return(0,t.jsxs)("section",{className:"relative flex justify-center overflow-hidden bg-[var(--our-top-products-bg-mobile)] md:bg-[var(--our-top-products-bg-desktop)] pt-[var(--our-top-products-padding-top-mobile)] pb-[var(--our-top-products-padding-bottom-mobile)] md:pt-[var(--our-top-products-padding-top-desktop)] md:pb-[var(--our-top-products-padding-bottom-desktop)] text-center",children:[(0,t.jsx)(r.default,{src:"/DecoratorImage.svg",alt:"",width:551,height:543,className:"pointer-events-none absolute end-[-80px] top-0 hidden md:block w-[551px] h-[543px] opacity-70 rounded-tl-[199px]"}),(0,t.jsx)(r.default,{src:"/DecoratorImage.svg",alt:"",width:551,height:543,className:"pointer-events-none absolute start-[-80px] bottom-0  hidden md:block w-[551px] h-[543px] opacity-70 rounded-tl-[192px] -rotate-180"}),(0,t.jsxs)("div",{className:"w-full md:px-[var(--our-top-products-slider-padding-x-desktop)] flex flex-col items-center relative justify-center md:justify-end md:flex-row z-10 md:gap-[var(--our-top-products-gap-main-desktop)]",children:[(0,t.jsx)("div",{className:" absolute w-[calc(100%_-_280px)] h-full md:bg-[var(--our-top-products-slider-bg)] md:rounded-2xl",children:" "}),(0,t.jsxs)("div",{className:"flex flex-col w-full md:w-[545px] z-50 items-center justify-center bg-[var(--our-top-products-title-bg-mobile)]/90 md:p-6 md:py-[var(--our-top-products-title-py-desktop)] rounded-none md:rounded-3xl",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--our-top-products-gap-inner)] text-center px-[var(--our-top-products-content-padding-mobile)] md:px-0 pb-[var(--our-top-products-content-padding-mobile)] md:pb-[var(--our-top-products-content-pb-desktop)]",children:[(0,t.jsx)("h1",{className:" text-[length:var(--our-top-products-heading-size-mobile)] leading-[var(--our-top-products-heading-line-mobile)] font-[var(--our-top-products-heading-weight-mobile)] md:text-[length:var(--our-top-products-heading-size-desktop)] md:leading-[var(--our-top-products-heading-line-desktop)] md:font-[var(--our-top-products-heading-weight-desktop)] text-[var(--our-top-products-heading-color)] ",children:e}),o&&(0,t.jsx)("p",{className:" body-large font-[var(--our-top-products-text-weight-mobile)]! leading-[var(--our-top-products-text-line-mobile)]! md:font-[var(--our-top-products-text-weight-desktop)]! md:leading-[var(--our-top-products-text-line-desktop)]! text-[var(--our-top-products-text-color)] ",children:o})]}),(0,t.jsxs)("div",{className:"absolute md:relative bottom-[-80px] md:bottom-0 grid grid-cols-[1fr_auto_1fr] items-center w-full max-w-[320px] px-4 gap-[var(--our-top-products-pagination-gap)]",children:[(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)(a.Button,{variant:"outlined",className:"products-swiper-prev inline-flex items-center justify-center [&.swiper-button-disabled]:opacity-30 h-[50px] w-[50px]",children:(0,t.jsx)(s.ArrowIcon,{className:"w-4 h-3 rotate-180 rtl:rotate-0"})})}),(0,t.jsx)("div",{className:"flex products-swiper-pagination items-center justify-center gap-[var(--our-top-products-pagination-gap)] [&_.swiper-pagination-bullet-active]:!w-[40px] [&_.swiper-pagination-bullet-active]:!rounded-[20px] [&_.swiper-pagination-bullet-active]:!bg-[var(--our-top-products-pagination-bullet-color)] [&_.swiper-pagination-bullet]:!bg-[var(--our-top-products-pagination-bullet-color)]"}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(a.Button,{variant:"outlined",className:"products-swiper-next inline-flex items-center justify-center [&.swiper-button-disabled]:opacity-30 h-[50px] w-[50px]",children:(0,t.jsx)(s.ArrowIcon,{className:"w-4 h-3 rtl:rotate-180"})})})]})]}),(0,t.jsx)(n.Swiper,{modules:[l.Navigation,i.Pagination],spaceBetween:110,slidesPerView:1,slidesPerGroup:1,speed:0,allowTouchMove:!1,loop:!1,navigation:{prevEl:".products-swiper-prev",nextEl:".products-swiper-next"},pagination:{clickable:!0,el:".products-swiper-pagination",renderBullet:(e,t)=>`<span class="${t} h-[6px] w-[6px] rounded-[10px] bg-[var(--our-top-products-pagination-bullet-color)] cursor-pointer transition-all duration-300"></span>`},breakpoints:{320:{slidesPerView:1,spaceBetween:20},768:{slidesPerView:3,spaceBetween:30}},className:"industries-swiper w-full p-[var(--our-top-products-slider-padding-mobile)]! md:p-0! py-0! md:pe-[var(--our-top-products-slider-padding-right-desktop)]! md:py-[var(--our-top-products-slider-padding-desktop)]!",children:d.map(e=>(0,t.jsx)(n.SwiperSlide,{className:"!h-auto",children:(0,t.jsx)("div",{className:"rounded-xl overflow-hidden h-full flex flex-col border-3 border-transparent hover:border-[var(--our-top-products-card-border-hover)] hover:shadow-[var(--our-top-products-card-shadow-hover)] hover:shadow-[var(--our-top-products-card-shadow-strong-hover)] transition-all duration-800 ease-in-out",children:(0,t.jsxs)("div",{className:"relative w-full h-[var(--our-top-products-card-height)] bg-[var(--our-top-products-card-bg)]",children:[(0,t.jsx)(r.default,{src:e.image,alt:e.name,width:280,height:280,className:"w-full h-[var(--our-top-products-card-image-height)] object-cover"}),(0,t.jsxs)("div",{className:"absolute w-full bottom-0 rounded-t-2xl bg-[var(--our-top-products-card-overlay)] z-50! p-[var(--our-top-products-card-padding)] flex flex-col gap-[var(--our-top-products-card-gap)] flex-1",children:[(0,t.jsx)("h3",{className:"text-start body-large text-[var(--our-top-products-card-title-color)] line-clamp-2",children:e.name}),(0,t.jsxs)("div",{className:"space-y-[var(--our-top-products-card-detail
407s-gap)] flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[var(--our-top-products-card-detail-row-gap)]",children:[(0,t.jsx)("div",{className:"bg-[var(--our-top-products-icon-bg)] rounded-lg flex-shrink-0 w-8 h-8 flex items-center justify-center",children:(0,t.jsx)(e.checkIcon,{className:"w-4 h-4 text-[var(--our-top-products-icon-color)]"})}),(0,t.jsxs)("p",{className:"body-caption text-start text-[var(--our-top-products-card-text-color)]",children:[(0,t.jsx)("label",{children:"CAS NUMBER:"})," ",e.casNumber]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-[var(--our-top-products-card-detail-row-gap)]",children:[(0,t.jsx)("div",{className:"bg-[var(--our-top-products-icon-bg)] rounded-lg flex-shrink-0 w-8 h-8 flex items-center justify-center",children:(0,t.jsx)(e.fileIcon,{className:"w-4 h-4 text-[var(--our-top-products-icon-color)]"})}),(0,t.jsxs)("p",{className:"body-caption text-start text-[var(--our-top-products-card-text-color)]",children:[(0,t.jsx)("label",{children:"HS CODE:"})," ",e.hsCode]})]})]}),(0,t.jsx)(a.Button,{variant:"outlined",href:"#",className:"w-full mt-auto",children:"INQUIRE NOW"})]})]})})},e.id))})]})]})}e.s(["OurTopProductsSection",()=>u],791737)},65637,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r=({className:e})=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M12 15.991C12.2509 15.991 12.5018 15.8952 12.6931 15.704L18.7128 9.68426C19.0957 9.30133 19.0957 8.68048 18.7128 8.2977C18.33 7.91493 17.7093 7.91493 17.3263 8.2977L12 13.6243L6.67371 8.29789C6.29078 7.91511 5.67011 7.91511 5.28737 8.29789C4.90425 8.68066 4.90425 9.30152 5.28737 9.68445L11.307 15.7042C11.4983 15.8954 11.7492 15.991 12 15.991Z",fill:"currentColor"})});function l({heading:e,items:i}={}){let n=(0,a.useId)(),[s,o]=(0,a.useState)(null),c=(0,a.useMemo)(()=>[{question:"How can potential customers get started with Chemtradeasia?",answer:(0,t.jsxs)("p",{children:["Potential customers can get started by visiting our website at"," ",(0,t.jsx)("a",{href:"https://www.chemtradeasia.com/",target:"_blank",rel:"nofollow noopener noreferrer",children:"chemtradeasia.com"})," ","and contacting our team to discuss their specific chemical trading needs. Our team will evaluate requirements and propose customized solutions to help achieve business objectives in the chemical market."]})},{question:"Does Chemtradeasia provide market insights and analysis?",answer:(0,t.jsx)("p",{children:"Yes, Chemtradeasia leverages its industry experience and market position to provide valuable market intelligence, pricing trends, and industry analysis to help customers make informed decisions about their chemical procurement and trading strategies. Subscribe to our newsletter for the latest global market insights, pricing trends, and industry updates."})},{question:"How can I become a supplier or establish a partnership with Chemtradeasia?",answer:(0,t.jsx)("p",{children:"We welcome inquiries from qualified chemical manufacturers and suppliers interested in partnership opportunities. Please contact our procurement team with information about your company, product portfolio, certifications, and manufacturing capabilities. We evaluate potential partners based on quality standards, reliability, and market demand for their products."})},{question:"What logistics and delivery capabilities do you offer?",answer:(0,t.jsx)("p",{children:"We provide end-to-end logistics coordination for chemical shipments, including packaging and labeling support, documentation, dispatch planning, and delivery scheduling. Where temporary storage is required, our team can help arrange suitable storage solutions through qualified logistics partners while ensuring proper handling conditions and safety protocols throughout the supply chain."})},{question:"How do you ensure product quality and safety compliance?",answer:(0,t.jsx)("p",{children:"We maintain strict quality control standards and work only with certified suppliers and manufacturers. All products come with proper documentation including Certificates of Analysis, Safety Data Sheets, and Compliance Certifications. We ensure all chemicals meet relevant industry standards and regulatory requirements for safe handling and use."})},{question:"What are your minimum order quantities and delivery timeframes?",answer:(0,t.jsx)("p",{children:"Minimum order quantities vary depending on the specific chemical and packaging requirements. Delivery timeframes depend on product availability, location, and logistics requirements. We work with customers to accommodate both small-scale and large-volume orders, and our team will provide specific MOQ and delivery information during the quotation process."})},{question:"What types of chemicals do you distribute?",answer:(0,t.jsx)("p",{children:"We distribute a wide range of industrial and specialty chemicals across various categories including basic chemicals, specialty chemicals, petrochemicals, polymers, additives, and raw materials. Our portfolio covers chemicals used in manufacturing, pharmaceuticals, food processing, water treatment, construction, and other industrial applications."})},{question:"How can I contact Tradeasia representatives?",answer:(0,t.jsx)("p",{children:"You can use the 'Live Chat' feature on our website or email us at [email protected] for further inquiries."})},{question:"Can I become a partner?",answer:(0,t.jsx)("p",{children:"Yes, we welcome partnerships. Contact us via [email protected] or [email protected] to explore collaboration opportunities."})},{question:"How do I place an order to palm oleochemcials?",answer:(0,t.jsx)("p",{children:"To make an inquiry or offer to our palm division, please email us at [email protected]."})},{question:"What services does Tradeasia offer?",answer:(0,t.jsx)("p",{children:"Tradeasia provides an e-commerce platform for chemical trading, including product inquiries, support, and detailed information."})},{question:"How can I access product specifications?",answer:(0,t.jsx)("p",{children:"You can download the Technical Data Sheets (TDS) and Material Safety Data Sheets (MSDS) for each product directly from our website"})},{question:"What is the origin of your products?",answer:(0,t.jsx)("p",{children:"We source our products from countries like Indonesia, Malaysia, Argentina, Brazil, China, India, Japan, and the USA. We continuously broaden our supply chain to offer high-quality chemicals from multiple regions, prioritizing the origin of products to ensure they meet the highest standards of quality and reliability."})},{question:"Where are Tradeasia's offices located?",answer:(0,t.jsx)("p",{children:"Our main office is in Singapore, with additional branches in Indonesia, China, India, Vietnam, Dubai, Myanmar, Sri Lanka, South Korea, and the Philippines. This global reach allows us to provide support in local languages and time zones."})}],[]),d=(0,a.useMemo)(()=>
407{if(!Array.isArray(i))return c;let e=i.filter(e=>"string"==typeof e?.question&&""!==e.question.trim()&&"string"==typeof e?.answer&&""!==e.answer.trim()).map(e=>({question:e.question.trim(),answer:e.answer.trim()}));return e.length>0?e:c},[i,c]);return(0,t.jsx)("section",{className:"section-qa pt-[var(--lc-faq-pt-m)] pb-[var(--lc-faq-pb-m)] md:pt-[var(--lc-faq-pt-d)] md:pb-[var(--lc-faq-pb-d)]",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[e?(0,t.jsx)("h2",{className:"mb-6 text-start text-[color:var(--lc-faq-question-color)] text-[length:var(--lc-faq-question-size-d)] leading-[var(--lc-faq-question-lh-d)] font-[var(--lc-faq-question-weight)]",children:e}):null,d.map((e,a)=>{let l=s===a,i=`${n}-faq-btn-${a}`,c=`${n}-faq-panel-${a}`;return(0,t.jsxs)("div",{children:[(0,t.jsx)("hr",{className:"my-2 border-[color:var(--lc-faq-divider)]"}),(0,t.jsxs)("button",{type:"button",className:"accordion w-full flex items-center justify-between gap-4 p-[var(--lc-faq-row-p)] text-start","aria-label":"FAQ Button","aria-expanded":l,"aria-controls":c,id:i,onClick:()=>o(e=>e===a?null:a),children:[(0,t.jsx)("b",{className:"text-start text-[color:var(--lc-faq-question-color)] text-[length:var(--lc-faq-question-size-m)] leading-[var(--lc-faq-question-lh-m)] md:text-[length:var(--lc-faq-question-size-d)] md:leading-[var(--lc-faq-question-lh-d)] font-[var(--lc-faq-question-weight)]",children:e.question}),(0,t.jsx)(r,{className:["shrink-0 text-[color:var(--lc-faq-icon-color)] transition-transform duration-200 ease-out",l?"rotate-180":"rotate-0"].join(" ")})]}),(0,t.jsx)("div",{id:c,role:"region","aria-labelledby":i,hidden:!l,className:"panel px-[var(--lc-faq-panel-px)]",children:(0,t.jsx)("div",{className:"text-start text-[color:var(--lc-faq-answer-color)] text-[length:var(--lc-faq-answer-size-m)] leading-[var(--lc-faq-answer-lh-m)] md:text-[length:var(--lc-faq-answer-size-d)] md:leading-[var(--lc-faq-answer-lh-d)] font-[var(--lc-faq-answer-weight)]",children:"string"==typeof e.answer?(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e.answer}}):e.answer})})]},e.question)}),(0,t.jsx)("hr",{className:"my-[var(--lc-faq-hr-my)] border-[color:var(--lc-faq-divider)]"})]})})}e.s(["FaqAccordionSection",()=>l])},491103,e=>{"use strict";var t=e.i(843476),a=e.i(724960),r=e.i(271645),l=e.i(948148);e.i(527967);var i=e.i(830167),n=e.i(887300),s=e.i(71527);let o="lc-glossary-filter",c="lc-glossary-search";function d(e){let t=[];for(let a of e){let e=a.alphabet_label?.trim()||"";for(let r of a.items??[])t.push({...r,alphabet_label:e,group_sort_order:a.sort_order})}return t}function u({groups:e,introHtml:u}){let m=(0,l.useTranslations)(),h=(0,r.useMemo)(()=>[...e].sort((e,t)=>e.sort_order-t.sort_order).map(e=>e.alphabet_label?.trim()).filter(e=>!!e),[e]),[p,g]=(0,r.useState)(""),[v,x]=(0,r.useState)(""),b=(0,r.useMemo)(()=>{let t=v.trim().toLowerCase(),a=d(e).filter(e=>{let a=""===p||e.alphabet_label===p,r=e.description.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim(),l=0===t.length||e.title.toLowerCase().includes(t)||r.toLowerCase().includes(t);return a&&l}),r=new Map;for(let e of a){let{alphabet_label:t,group_sort_order:a,...l}=e,i=r.get(t)??[];i.push(l),r.set(t,i)}return[...e].sort((e,t)=>e.sort_order-t.sort_order).map(e=>{let t=e.alphabet_label?.trim()||"",a=r.get(t)??[];return{alphabet_label:t,group_sort_order:e.sort_order,items:a}}).filter(e=>e.items.length>0)},[e,v,p]),f=d(e).length>0,w=f&&0===b.length&&(""!==p||""!==v.trim());return(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5 pt-[var(--lc-glossary-padding-top-mobile)] pb-[var(--lc-glossary-padding-bottom-mobile)] md:pt-[var(--lc-glossary-padding-top-desktop)] md:pb-[var(--lc-glossary-padding-bottom-desktop)]",children:[u?(0,t.jsx)("div",{className:"mb-7 text-start text-[color:var(--lc-glossary-body-color)] text-[length:var(--lc-glossary-body-size-mobile)] leading-[var(--lc-glossary-body-lh-mobile)] md:text-[length:var(--lc-glossary-body-size-desktop)] md:leading-[var(--lc-glossary-body-lh-desktop)] font-[var(--lc-glossary-body-weight)]",dangerouslySetInnerHTML:{__html:u}}):null,(0,t.jsx)("div",{className:"sticky z-30 bg-white top-[var(--lc-glossary-controls-sticky-top-mobile)] md:top-[var(--lc-glossary-controls-sticky-top-desktop)]",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-12 md:gap-6 pt-5 pb-5",children:[(0,t.jsxs)("div",{className:"md:col-span-4",children:[(0,t.jsx)("label",{htmlFor:o,className:a.FORM_FIELD_LABEL_CLASS,children:m("filter_by_colon")}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:o,className:" w-full rounded-[var(--lc-cpi-control-radius)] border-2 border-[color:var(--lc-cpi-control-border)] bg-[var(--lc-cpi-control-bg)] appearance-none px-5 pe-[var(--lc-cpi-select-pr)] py-[6px] md:px-6 md:pe-[var(--lc-cpi-select-pr)] md:py-2 text-start text-[var(--lc-cpi-control-text)] text-[length:var(--lc-cpi-control-size-m)
407] leading-[var(--lc-cpi-control-lh-m)] md:text-[length:var(--lc-cpi-control-size-d)] md:leading-[var(--lc-cpi-control-lh-d)] focus:border-[color:var(--lc-glossary-control-border-focus)] focus:outline-none ",value:p,onChange:e=>g(e.target.value),children:[(0,t.jsx)("option",{value:"",children:m("all")}),h.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(i.ArrowIcon,{className:"pointer-events-none absolute end-6 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--lc-cpi-select-icon-color)]","aria-hidden":"true"})]})]}),(0,t.jsxs)("div",{className:"md:col-span-4 md:col-start-9",children:[(0,t.jsx)("label",{htmlFor:c,className:a.FORM_FIELD_LABEL_CLASS,children:m("search_colon")}),(0,t.jsxs)("div",{className:"relative z-20",children:[(0,t.jsx)("input",{id:c,value:v,onChange:e=>x(e.target.value),placeholder:m("keyword"),className:" w-full rounded-[var(--lc-cpi-control-radius)] border-2 border-[color:var(--lc-cpi-control-border)] bg-[var(--lc-cpi-control-bg)] px-5 pe-14 py-[6px] text-start md:py-2 text-[var(--lc-cpi-control-text)] text-[length:var(--lc-cpi-control-size-m)] leading-[var(--lc-cpi-control-lh-m)] md:text-[length:var(--lc-cpi-control-size-d)] md:leading-[var(--lc-cpi-control-lh-d)] focus:border-[color:var(--lc-glossary-control-border-focus)] focus:outline-none "}),v.length>0?(0,t.jsx)("button",{type:"button",onClick:()=>x(""),className:"absolute end-6 top-1/2 -translate-y-1/2","aria-label":m("clear_keyword"),children:(0,t.jsx)(n.ClearIcon,{className:"h-5 w-5 text-[#B9C0C5]"})}):(0,t.jsx)("button",{type:"button",className:"absolute end-6 top-1/2 -translate-y-1/2","aria-label":m("search"),children:(0,t.jsx)(s.SearchIconNew,{className:"h-5 w-5 text-[var(--lc-cpi-search-icon-color)]"})})]})]})]})}),(0,t.jsx)("div",{className:"mt-7",children:f?w?(0,t.jsx)("p",{className:"text-start text-[color:var(--lc-glossary-body-color)] text-[length:var(--lc-glossary-body-size-mobile)] md:text-[length:var(--lc-glossary-body-size-desktop)]",children:m("no_glossary_matches")}):(0,t.jsx)("div",{className:"glos-item",children:b.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:`alphabet-${e.alphabet_label}`,className:"text-start text-[color:var(--lc-glossary-letter-color)] text-[length:var(--lc-glossary-letter-size-mobile)] leading-[var(--lc-glossary-letter-lh-mobile)] md:text-[length:var(--lc-glossary-letter-size-desktop)] md:leading-[var(--lc-glossary-letter-lh-desktop)] font-[var(--lc-glossary-letter-weight)] mt-5",children:e.alphabet_label}),e.items.map(a=>(0,t.jsxs)("div",{className:"glos-dets py-4 px-5 border-b border-[var(--lc-glossary-divider)] hover:bg-[var(--brand-neutral-surface-5)]",children:[(0,t.jsx)("h3",{className:"m-0 text-start text-[color:var(--lc-glossary-term-color)] text-[length:var(--lc-glossary-term-size-mobile)] leading-[var(--lc-glossary-term-lh-mobile)] md:text-[length:var(--lc-glossary-term-size-desktop)] md:leading-[var(--lc-glossary-term-lh-desktop)] font-[var(--lc-glossary-term-weight)]",children:a.title}),(0,t.jsx)("div",{className:"text-start text-[color:var(--lc-glossary-desc-color)] text-[length:var(--lc-glossary-desc-size-mobile)] leading-[var(--lc-glossary-desc-lh-mobile)] md:text-[length:var(--lc-glossary-desc-size-desktop)] md:leading-[var(--lc-glossary-desc-lh-desktop)] font-[var(--lc-glossary-desc-weight)]",dangerouslySetInnerHTML:{__html:a.description}})]},`${e.alphabet_label}-${e.group_sort_order}-${a.sort_order}-${a.title}`))]},`${e.alphabet_label}-${e.group_sort_order}`))}):(0,t.jsx)("p",{className:"text-start text-[color:var(--lc-glossary-body-color)] text-[length:var(--lc-glossary-body-size-mobile)] md:text-[length:var(--lc-glossary-body-size-desktop)]",children:m("no_glossary_entries")})})]})}e.s(["GlossarySection",()=>u])},704101,e=>{"use strict";var t=e.i(843476),a=e.i(301630);e.i(79951);var r=e.i(902936),l=e.i(657688);function i(e){return"string"==typeof e?e.trim():""}function n({image:e,name:n,counts:s,href:o}){let c=(0,a.normalizeCmsImage)(i(e),""),d=i(n),u=i(s),m=/^(other|others)$/i.test(d);if(!c&&!d&&!u)return null;let h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"coc-modern__media",children:c?(0,t.jsx)(l.default,{src:c,alt:"",fill:!0,sizes:"(max-width: 767px) 45vw, (max-width: 1023px) 30vw, 280px",className:"coc-modern__image","aria-hidden":!0}):m?(0,t.jsxs)("svg",{className:"coc-modern__other-icon",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"6",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"15",y:"3",width:"6",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"3",y:"15",width:"6",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"15",y:"15",width:"6",height:"6",rx:"1.5"})]}):(0,t.jsx)("span",{className:"coc-modern__placeholder","aria-hidden":!0})}),d?(0,t.jsx)("h3",{className:"coc-modern__title",children:d}
407):null,u?(0,t.jsx)("p",{className:"coc-modern__count",children:u}):null]});return o?(0,t.jsx)(r.Link,{href:o,className:"coc-modern","aria-label":d?u?`${d}, ${u}`:d:void 0,children:h}):(0,t.jsx)("article",{className:"coc-modern",children:h})}var s=e.i(645214);e.i(716787);var o=e.i(659544),c=e.i(22584);e.i(527967);var d=e.i(830167),u=e.i(861745),m=e.i(948148),h=e.i(271645),p=e.i(478088),g=e.i(579053),v=e.i(186301),x=e.i(980401);function b(e,t){return[t.mobile?`cps--${e}-mobile`:"",t.tablet?`cps--${e}-tablet`:"",t.desktop?`cps--${e}-desktop`:""].filter(Boolean)}function f(e){return e.desktop||e.tablet||e.mobile}function w(e){let{instanceId:a,source:l,items:i,slidesPerView:w,carouselInfinite:y,carouselIndicators:j,carouselControls:N}=e,_=(0,m.useTranslations)(),k=(0,u.useLocale)(),C=(0,h.useId)(),S=(0,h.useMemo)(()=>{let e;return(e=a?.trim())?e.replace(/[^a-zA-Z0-9_-]/g,"-"):C.replace(/:/g,"")},[a,C]),L=`cps-prev-${S}`,I=`cps-next-${S}`,z=`cps-dots-${S}`,{effectiveControls:A,effectiveIndicators:q}=(0,h.useMemo)(()=>{var e;let t,a,r;return e=i.length,t={mobile:e>w.mobile,tablet:e>w.tablet,desktop:e>w.desktop},a={mobile:N.mobile&&t.mobile,tablet:N.tablet&&t.tablet,desktop:N.desktop&&t.desktop},r={mobile:j.mobile&&t.mobile,tablet:j.tablet&&t.tablet,desktop:j.desktop&&t.desktop},{canSlide:t,effectiveControls:a,effectiveIndicators:r}},[i.length,w,N,j]),E=(0,h.useMemo)(()=>f(A),[A]),$=(0,h.useMemo)(()=>f(q),[q]);if(0===i.length)return null;let P=Math.max(w.desktop,w.tablet,w.mobile),T=y&&i.length>P,M=[...b("controls",A),...b("indicators",q)].join(" ");return(0,t.jsxs)("div",{className:`cps cps-modern ${"product"===l?"cps-modern--products":"cps-modern--categories"} ${M}`.trim(),children:["product"===l?(0,t.jsxs)("div",{className:"cps-modern__product-header",children:[(0,t.jsx)("h2",{className:"cps-modern__product-title",children:_("popular_feed_ingredients")}),(0,t.jsxs)(r.Link,{href:c.routes.products.list,className:"cps-modern__product-view-more",children:[_("view_more"),(0,t.jsx)(d.ArrowIcon,{className:"cps-modern__product-view-more-icon rtl:rotate-180","aria-hidden":!0})]})]}):null,(0,t.jsxs)("div",{className:"cps__viewport",children:[E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{type:"button",variant:"primary","aria-label":_("previous"),className:`${L} cps__arrow cps__arrow--prev !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(d.ArrowIcon,{className:"h-3.5 w-4 rotate-180"})}),(0,t.jsx)(o.Button,{type:"button",variant:"primary","aria-label":_("next"),className:`${I} cps__arrow cps__arrow--next !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(d.ArrowIcon,{className:"h-3.5 w-4"})})]}):null,(0,t.jsx)(x.Swiper,{modules:[p.Grid,g.Navigation,v.Pagination],loop:T,watchOverflow:!0,centerInsufficientSlides:!0,slidesPerView:w.mobile,spaceBetween:16,navigation:!!E&&{prevEl:`.${L}`,nextEl:`.${I}`},pagination:!!$&&{clickable:!0,el:`.${z}`},breakpoints:{0:{slidesPerView:"product"===l?w.mobile:3.25,spaceBetween:"product"===l?16:8,grid:{rows:1}},768:{slidesPerView:"product"===l?2:5,spaceBetween:"product"===l?16:8,grid:{rows:"product"===l?2:1,fill:"row"}},1024:{slidesPerView:"product"===l?3:9,spaceBetween:"product"===l?16:8,grid:{rows:"product"===l?2:1,fill:"row"}}},className:"cps__swiper",children:"product"===l?i.map(e=>(0,t.jsx)(x.SwiperSlide,{children:(0,t.jsx)(s.ProductTileOne,{presentation:"category-slider",title:e.title,imageSrc:e.imageSrc,href:e.href,originLabel:_("origin"),casLabel:_("cas_number"),hsLabel:_("hs_code"),inquireLabel:_("inquire_now"),originValue:e.originValue,casValue:e.casValue,hsValue:e.hsValue})},String(e.id))):i.map(e=>{let a;return(0,t.jsx)(x.SwiperSlide,{children:(0,t.jsx)(n,{image:e.image,name:e.name,counts:e.productCount>0?(a=e.productCount,`${new Intl.NumberFormat(k).format(a)}+ ${_("products")}`):void 0,href:e.href})},String(e.id))})})]}),$?(0,t.jsx)("div",{className:`cps__indicators ${z} !relative !bottom-auto !left-auto !right-auto !top-auto !w-auto [&_.swiper-pagination-bullet]:!m-0`}):null]})}e.s(["CategoryProductSliderSection",()=>w],704101)},730618,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(715010),l=e.i(657688),i=e.i(948148),n=e.i(768669);function s(e){let t=e.text?.trim()??"";return t?{text:t,link:e.link?.trim()??"",variant:"outlined"===(e.type?.trim().toLowerCase()??"")?"outlined":"primary",showArrow:!0===e.show_arrow||1===e.show_arrow}:null}function o(e){if("number"==typeof e){if(!Number.isFinite(e))return;return`${Math.min(100,Math.max(1,e))}%`}let t=e?.trim();if(t){if(/^\d+(?:\.\d+)?$/.test(t)){let e=Number(t);return`${Math.min(100,Math.max(1,e))}%`}if(/^\d+(?:\.\d+)?(?:%|px|rem|em|vw|ch)$/i.test(t))return t}}function c(e){return e?.trim()?(0,r.stripHtml)(e):""}function d({title:e,backgroundImage:r,heading:d,subheading:u,button_1_text:m,button_1_link:h,button_1_type:p,button_1_show_arrow:g,button_2_text:v,button_2_link:x,button_2_type:b,button_2_show_arrow:f,height:w,content_width_mobile:y,content_width_tablet:j,content_width_desktop:N,isHomePage:_=!1,show_overlay:k,text_align:C,showOverlay:S=!0,background_image:L,background_image_url:I,background_image_upload:z,bg_image_url:A,bg_image_upload:q,background_alt:E}){var $;let P,T=(0,i.useTranslations)(),M=c(d)||c(e),O=c(u),F=I?.trim()||A?.trim()||z?.trim()||q?.trim()||L?.trim()||r||"",R=(0,a.normalizeCmsImage)(F,""),B=function(e,t=300){let a="string"==typeof e?e.trim()?Number(e):void 0:e;
407return"number"!=typeof a||Number.isNaN(a)?t:Math.min(700,Math.max(300,Math.round(a)))}(w,_?500:300),D=o(y),H=o(j),U=o(N),G={...D?{"--page-banner-content-width-mobile":D}:{},...H?{"--page-banner-content-width-tablet":H}:{},...U?{"--page-banner-content-width-desktop":U}:{}},W=!1!==k&&0!==k&&(!0===k||1===k||!1!==S),V={text:$="text-center"===(P=C?.trim().toLowerCase()??"")||"center"===P?"text-center":"text-end"===P||"end"===P?"text-end":"text-start",column:"text-center"===$?"items-center":"text-end"===$?"items-end":"items-start",buttons:"text-center"===$?"justify-center":"text-end"===$?"justify-end":"justify-start",block:"text-center"===$?"mx-auto":"text-end"===$?"ms-auto":""},K=[s({text:m,link:h,type:p,show_arrow:g}),s({text:v,link:x,type:b,show_arrow:f})].filter(e=>null!==e),Y=!!(M||O),Q=Y?"":E?.trim()||T("page_banner");return(0,t.jsxs)("section",{className:"relative flex items-center overflow-hidden py-[var(--page-banner-padding-block)]",style:{minHeight:B},"aria-label":Y?void 0:T("page_banner"),children:[R?(0,t.jsx)(l.default,{src:R,alt:Q,fill:!0,priority:!0,fetchPriority:"high",sizes:"100vw",quality:65,className:"object-cover object-center","aria-hidden":!!Y||void 0}):null,W?(0,t.jsx)("div",{className:"absolute inset-0 z-[1]",style:{background:"var(--page-banner-overlay-bg)"},"aria-hidden":!0}):null,(0,t.jsx)("div",{className:"relative z-10 w-full layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:`page-banner-standard-content flex flex-col gap-7 ${V.column} ${V.block}`,style:G,children:[M?(0,t.jsx)("h1",{className:`text-[var(--page-banner-title-color)] text-[length:var(--page-banner-title-size-mobile)] leading-[var(--page-banner-title-line-mobile)] font-[var(--page-banner-title-weight-mobile)] md:text-[length:var(--page-banner-title-size-desktop)] md:leading-[var(--page-banner-title-line-desktop)] md:font-[var(--page-banner-title-weight-desktop)] ${_?"":"page-banner-standard-title--inner"} ${V.text}`,children:function(e){let a=e.trim().split(/\s+/).filter(Boolean);if(0===a.length)return null;if(a.length<=2)return(0,t.jsx)("span",{className:"page-banner-standard-title-accent",children:e});let r=a.slice(0,2).join(" "),l=a.slice(2).join(" ");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"page-banner-standard-title-accent",children:r})," ",(0,t.jsx)("span",{className:"page-banner-standard-title-rest",children:l})]})}(M)}):null,O?(0,t.jsx)("p",{className:`body-regular text-[var(--brand-neutral-text)] md:body-medium !font-normal md:max-w-[85%] ${V.text}`,children:O}):null,K.length>0?(0,t.jsx)("div",{className:`flex flex-row flex-wrap items-center gap-[var(--page-banner-cta-gap)] ${V.buttons}`,children:K.map((e,a)=>(0,t.jsx)(n.PageBannerButton,{button:e},`page-banner-cta-${a}`))}):null]})})]})}e.s(["PageBannerSection",()=>d,"PageBannerSectionClassic",()=>d],730618)},270675,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(872225),l=e.i(579053),i=e.i(186301),n=e.i(980401),s=e.i(948148);e.i(527967);var o=e.i(830167);e.i(149797);var c=e.i(967224);function d(e,t){if(!t||!e||e.destroyed||!e.params)return;let a=e.params.pagination;if(!a||"boolean"==typeof a)return;a.el=t;let{pagination:r}=e;if(r){try{r.destroy()}catch{}r.init(),r.render(),r.update()}}function u({heading:e,title:u,cas_label:m,hs_label:h,labels:p,inquiry_url:g,product_url_prefix:v,products:x=[]}){let b=(0,s.useTranslations)(),f=p?.origin_label||b("origin"),w=p?.cas_label||m||b("cas_number"),y=p?.hs_label||h||b("hs_code"),j=p?.inquire_label||b("inquire_now"),N=v||"/",_=(0,a.useRef)(null),k=(0,a.useRef)(null),C=(0,a.useRef)(null),[S,L]=(0,a.useState)(null),I=(0,a.useCallback)(()=>{S&&!S.destroyed&&0!==x.length&&d(S,_.current)},[S,x.length]);return((0,a.useEffect)(()=>{0===x.length?L(null):I()},[x.length,I]),(0,a.useEffect)(()=>
407{S&&!S.destroyed&&(S.navigation?.init(),S.navigation?.update())},[S]),0===x.length)?null:(0,t.jsx)("section",{className:"bg-[var(--our-top-products-one-section-bg)] pt-[var(--our-top-products-one-padding-top-mobile)] pb-[var(--our-top-products-one-padding-bottom-mobile)] lg:bg-[var(--our-top-products-one-section-bg)] lg:pt-[var(--our-top-products-one-padding-top-desktop)] lg:pb-[var(--our-top-products-one-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[length:var(--layout-container-max)] flex-col px-[var(--our-top-products-one-container-px-mobile)] lg:px-[var(--our-top-products-one-container-px-desktop)]",children:[(0,t.jsxs)("div",{className:"order-1 mb-[var(--our-top-products-one-header-margin-bottom-mobile)] flex gap-[var(--our-top-products-one-header-gap)] items-center justify-between lg:mb-[var(--our-top-products-one-header-margin-bottom-desktop)]",children:[(0,t.jsx)("h2",{className:"text-start text-[length:var(--our-top-products-one-title-size-mobile)] leading-[var(--our-top-products-one-title-line-mobile)] font-[var(--our-top-products-one-title-weight-mobile)] text-[var(--our-top-products-one-title-color)] lg:text-[length:var(--our-top-products-one-title-size-desktop)] lg:leading-[var(--our-top-products-one-title-line-desktop)] lg:font-[var(--our-top-products-one-title-weight-desktop)]",children:e||u||""}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-[var(--our-top-products-one-nav-btn-gap)] justify-end",children:[(0,t.jsx)("button",{ref:k,type:"button","aria-label":b("previous_slide"),className:"flex cursor-pointer size-[length:var(--our-top-products-one-nav-btn-size-mobile)] md:size-[length:var(--our-top-products-one-nav-btn-size-desktop)] shrink-0 items-center justify-center rounded-full border-2 border-[var(--our-top-products-one-nav-border-color)] bg-[var(--our-top-products-one-nav-bg)] transition-[background-color,border-color,transform,opacity] duration-[var(--our-top-products-one-nav-hover-duration)] ease-out hover:scale-[1.04] hover:border-[var(--our-top-products-one-nav-hover-border)] hover:bg-[var(--our-top-products-one-nav-hover-bg)] hover:[&_svg]:text-[var(--our-top-products-one-nav-icon-hover-fill)] [&.swiper-button-disabled]:pointer-events-none [&.swiper-button-disabled]:opacity-40 [&_svg]:text-[var(--our-top-products-one-nav-icon-fill)] [&_svg]:transition-colors [&_svg]:duration-[var(--our-top-products-one-nav-hover-duration)]",children:(0,t.jsx)(o.ArrowIcon,{className:"h-3.5 w-4 rotate-180 rtl:rotate-0"})}),(0,t.jsx)("button",{ref:C,type:"button","aria-label":b("next_slide"),className:"flex cursor-pointer size-[length:var(--our-top-products-one-nav-btn-size-mobile)] md:size-[length:var(--our-top-products-one-nav-btn-size-desktop)] shrink-0 items-center justify-center rounded-full border-2 border-[var(--our-top-products-one-nav-border-color)] bg-[var(--our-top-products-one-nav-bg)] transition-[background-color,border-color,transform,opacity] duration-[var(--our-top-products-one-nav-hover-duration)] ease-out hover:scale-[1.04] hover:border-[var(--our-top-products-one-nav-hover-border)] hover:bg-[var(--our-top-products-one-nav-hover-bg)] hover:[&_svg]:text-[var(--our-top-products-one-nav-icon-hover-fill)] [&.swiper-button-disabled]:pointer-events-none [&.swiper-button-disabled]:opacity-40 [&_svg]:text-[var(--our-top-products-one-nav-icon-fill)] [&_svg]:transition-colors [&_svg]:duration-[var(--our-top-products-one-nav-hover-duration)]",children:(0,t.jsx)(o.ArrowIcon,{className:"h-3.5 w-4 rtl:rotate-180"})})]})]}),(0,t.jsx)("div",{ref:_,role:"presentation",className:"order-3 !relative !bottom-auto !left-auto !right-auto !top-auto z-10 mt-[var(--our-top-products-one-pagination-mt-mobile)] flex min-h-[length:var(--our-top-products-one-pagination-bullet-size)] w-full flex-row flex-wrap items-center justify-center gap-x-[var(--our-top-products-one-pagination-bullet-gap)] gap-y-[var(--gap-8)] lg:mt-[var(--our-top-products-one-pagination-mt-desktop)] [--swiper-pagination-bullet-height:var(--our-top-products-one-pagination-bullet-size)] [--swiper-pagination-bullet-horizontal-gap:var(--our-top-products-one-pagination-bullet-gap
407)] [--swiper-pagination-bullet-inactive-color:var(--our-top-products-one-pagination-bullet-inactive)] [--swiper-pagination-bullet-inactive-opacity:1] [--swiper-pagination-bullet-size:var(--our-top-products-one-pagination-bullet-size)] [--swiper-pagination-bullet-width:var(--our-top-products-one-pagination-bullet-size)] [--swiper-pagination-color:var(--our-top-products-one-pagination-bullet-active)] [&_.swiper-pagination-bullet]:!m-0 [&_.swiper-pagination-bullet]:box-border [&_.swiper-pagination-bullet]:inline-flex [&_.swiper-pagination-bullet]:!size-[length:var(--our-top-products-one-pagination-bullet-size)] [&_.swiper-pagination-bullet]:shrink-0 [&_.swiper-pagination-bullet]:cursor-pointer [&_.swiper-pagination-bullet]:!rounded-full [&_.swiper-pagination-bullet]:border-0 [&_.swiper-pagination-bullet]:!bg-[var(--our-top-products-one-pagination-bullet-inactive)] [&_.swiper-pagination-bullet]:!p-0 [&_.swiper-pagination-bullet]:!opacity-100 [&_.swiper-pagination-bullet]:transition-colors [&_.swiper-pagination-bullet]:duration-200 [&_.swiper-pagination-bullet-active]:!bg-[var(--our-top-products-one-pagination-bullet-active)]"}),(0,t.jsx)(n.Swiper,{modules:[l.Navigation,i.Pagination,r.Autoplay],loop:!1,rewind:!0,loopAddBlankSlides:!1,speed:400,slidesPerGroup:1,slidesPerView:1,spaceBetween:16,watchOverflow:!0,centerInsufficientSlides:!0,navigation:{},pagination:{clickable:!0},autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},onBeforeInit:e=>{let{navigation:t}=e.params;t&&"boolean"!=typeof t&&(t.prevEl=k.current,t.nextEl=C.current)},onSwiper:e=>{L(e),queueMicrotask(()=>{e.destroyed||(d(e,_.current),e.navigation?.init(),e.navigation?.update(
407))})},onResize:e=>{d(e,_.current),e.navigation?.update()},breakpoints:{640:{slidesPerView:2,slidesPerGroup:2,spaceBetween:16},1024:{slidesPerView:4,slidesPerGroup:4,spaceBetween:24}},className:"order-2 w-full min-h-0 min-w-0 overflow-hidden [&_.swiper-slide]:!h-auto [&_.swiper-slide]:min-h-0 [&_.swiper-wrapper]:!items-stretch [&_.swiper-wrapper]:py-[length:var(--our-top-products-one-card-hover-lift)]",children:x.map((e,a)=>{let r=e.title||e.name||"",l=e.image_url||void 0,i=e.url_key?`${N.replace(/\/$/,"")}/${e.url_key.replace(/^\//,"")}`:N,s=e.cas||"",o=e.hs_code||"",d=e.origin||"";return(0,t.jsx)(n.SwiperSlide,{className:"!box-border",children:(0,t.jsx)(c.ProductTileOne,{title:r,imageSrc:l,href:i,originLabel:f,casLabel:w,hsLabel:y,inquireLabel:j,originValue:d,casValue:s,hsValue:o})},`${e.id??e.url_key??a}`)})})]})})}e.s(["OurTopProductsSectionOne",()=>u])},602551,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(872225),l=e.i(579053),i=e.i(186301),n=e.i(980401);e.i(79951);var s=e.i(902936),o=e.i(948148);function c(e){return"imageSrc"in e&&"string"==typeof e.imageSrc}let d={left:"text-start items-start",center:"text-center items-center",right:"text-end items-end"};function u({direction:e}){return(0,t.jsx)("svg",{className:["h-4 w-4","prev"===e?"rotate-180 rtl:rotate-0":"rtl:rotate-180"].filter(Boolean).join(" "),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M15.9902 12C15.9902 12.2509 15.8944 12.5018 15.7032 12.6931L9.68341 18.7128C9.30048 19.0957 8.67962 19.0957 8.29685 18.7128C7.91407 18.33 7.91407 17.7093 8.29685 17.3263L13.6235 12L8.29703 6.67371C7.91426 6.29078 7.91426 5.67011 8.29703 5.28737C8.67981 4.90425 9.30066 4.90425 9.6836 5.28737L15.7033 11.307C15.8946 11.4983 15.9902 11.7492 15.9902 12Z",fill:"currentColor"})})}function m({intro:e,heading:m,slides:h=[],autoplay:p=0,interval:g=5e3,show_dots:v=1,show_arrows:x=1,content_alignment:b="center"}){let f=(0,o.useTranslations)(),w=(0,a.useId)().replace(/[^a-z0-9]/gi,"");if(!h||0===h.length)return null;let y=1===p,j=1===v,N=1===x,_=d[b]??d.center,k=`sc-carousel-prev-${w}`,C=`sc-carousel-next-${w}`,S=`sc-carousel-dots-${w}`;return(0,t.jsx)("section",{className:"pt-[var(--supply-chain-carousel-padding-top-mobile)] pb-[var(--supply-chain-carousel-padding-bottom-mobile)] md:pt-[var(--supply-chain-carousel-padding-top-desktop)] md:pb-[var(--supply-chain-carousel-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[m?(0,t.jsx)("h2",{className:"mb-6 text-center text-[var(--supply-chain-carousel-intro-color)] text-[length:var(--supply-chain-carousel-intro-size-desktop)] font-[var(--supply-chain-carousel-intro-weight)]",children:m}):null,e?(0,t.jsx)("p",{className:"p-line mx-auto max-w-[var(--supply-chain-carousel-intro-max-width)] text-center text-[var(--supply-chain-carousel-intro-color)] text-[length:var(--supply-chain-carousel-intro-size-mobile)] leading-[var(--supply-chain-carousel-intro-lh-mobile)] md:text-[length:var(--supply-chain-carousel-intro-size-desktop)] md:leading-[var(--supply-chain-carousel-intro-lh-desktop)] font-[var(--supply-chain-carousel-intro-weight)]",children:e}):null,(0,t.jsx)("div",{className:"more-details mt-10",children:(0,t.jsxs)("div",{className:"relative",children:[N?(0,t.jsx)("button",{type:"button",className:`btn btn-outlined ${k} absolute start-3 md:start-4 top-1/2 -translate-y-1/2 z-20 !p-0 h-[var(--supply-chain-carousel-nav-size)] w-[var(--supply-chain-carousel-nav-size)] !rounded-full flex items-center justify-center`,"aria-label":f("previous"),children:(0,t.jsx)(u,{direction:"prev"})}):null,N?(0,t.jsx)("button",{type:"button",className:`btn btn-outlined ${C} absolute end-3 md:end-4 top-1/2 -translate-y-1/2 z-20 !p-0 h-[var(--supply-chain-carousel-nav-size)] w-[var(--supply-chain-carousel-nav-size)] !rounded-full flex items-center justify-center`,"aria-label":f("next"),children:(0,t.jsx)(u,{direction:"next"})}):null,(0,t.jsx)(n.Swiper,{modules:[l.Navigation,i.Pagination,r.Autoplay],spaceBetween:0,slidesPerView:1,loop:y,autoplay:!!y&&{delay:g,disableOnInteraction:!1},navigation:!!N&&{prevEl:`.${k}`,nextEl:`.${C}`},pagination:!!j&&{clickable:!0,el:`.${S}`},className:"supply-chain-carousel",children:h.map((e,a)=>{let r=c(e)?e.imageSrc||null:e.image_url?.trim()||null,l=c(e)?e.title||null:e.title?.trim()||null,i=c(e)?e.description||null:e.description?.trim()||null,o=c(e)?null:e,d=o?.button_url?.trim()&&o?.button_label?.trim(),u=o?.video_url?.trim();return(0,t.jsx)(n.SwiperSlide,{children:(0,t.jsxs)("div",{className:"img-mores relative overflow-hidden rounded-[var(--supply-chain-carousel-slide-radius)] h-[var(--supply-chain-carousel-slide-height-mobile)] md:h-[var(--supply-chain-carousel-slide-height-desktop)] bg-cover bg-center",style:r?{backgroundImage:`url('${r}')`}:void 0,"aria-label":l??void 0,children:[u?(0,t.jsx)("iframe",{loading:"lazy",src:o.video_url,className:"absolute inset-0 w-full h-full",allow:"autoplay; fullscreen",title:l??f("slide_video")}):null,(0,t.jsx)("div",{className:"shadow-img-dets absolute inset-0 bg-[var(--supply-chain-carousel-slide-shadow)]"}),l||i||d?(0,t.jsx)("div",{className:"desc-mores content-center absolute inset-0 flex items-center justify-center",children:(0,t.jsxs)("div",{className:`desc px-5 md:px-10 max-w-[var(--supply-chain-carousel-desc-max-width)] flex flex-col gap-5 ${_}`,children:[l?(0,t.jsx)("h4",{className:"text-[var(--supply-chain-carousel-title-color)] text-[length:var(--supply-chain-carousel-title-size-mobile)] leading-[var(--supply-chain-carousel-title-lh-mobile)] md:text-[length:var(--supply-chain-carousel-title-size-desktop)] md:leading-[var(--supply-chain-carousel-title-lh-desktop)] font-[var(--supply-chain-carousel-title-weight)]",children:l}):null,i?(0,t.jsx)("p",{className:"text-[var(--supply-chain-carousel-desc-color)] text-[length:var(--supply-chain-carousel-desc-size-mobile)] leading-[var(--supply-chain-carousel-desc-lh-mobile)] md:text-[length:var(--supply-chain-carousel-desc-size-desktop)] md:leading-[var(--supply-chain-carousel-desc-lh-desktop)] font-[var(--supply-chain-carousel-desc-weight)]",children:i}):null,d?(0,t.jsx)(s.Link,{href:o.button_url,className:"btn btn-primary w-fit",children:o.button_label}):null]})}):null]})},a)})}),j?(0,t.jsx)("div",{className:`supply-chain-carousel-dots ${S} absolute inset-x-0 bottom-7 z-20 flex items-center justify-center gap-[var(--supply-chain-carousel-dot-gap)]`}):null]})})]})})}e.s(["SupplyChainSolutionsCarouselSection",()=>m])},617299,e=>{"use strict";var t=e.i(843476),a=e.i(940333);e.i(716787);var r=e.i(659544);e.i(527967);var l=e.i(830167),i=e.i(301630);e.i(79951);var n=e.i(902936),s=e.i(861745),o=e.i(948148),c=e.i(657688),d=e.i(271645),u=e.i(579053),m=e.i(186301),h=e.i(980401);function p(e,t){return[t.mobile?`cps--${e}-mobile`:"",t.tablet?`cps--${e}-tablet`:"",t.desktop?`cps--${e}
407-desktop`:""].filter(Boolean)}function g(e){return e.desktop||e.tablet||e.mobile}function v({item:e,counts:a,toneIndex:r}){let l=(0,i.normalizeCmsImage)(e.image?.trim()??"",""),s=e.name?.trim()??"",o=`ctc-classic--tone-${r%3+1}`,d=(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsx)("div",{className:"ctc-classic__media","aria-hidden":!0,children:(0,t.jsx)(c.default,{src:l,alt:"",fill:!0,sizes:"(max-width: 767px) 100vw, (max-width: 1023px) 50vw, 33vw",className:"ctc-classic__bg-image"})}):null,l?(0,t.jsx)("div",{className:"ctc-classic__overlay","aria-hidden":!0}):null,(0,t.jsx)("div",{className:"ctc-classic__body",children:(0,t.jsxs)("div",{className:"ctc-classic__copy",children:[s?(0,t.jsx)("h3",{className:"ctc-classic__name",children:s}):null,a?(0,t.jsxs)("p",{className:"ctc-classic__counts",children:[a,(0,t.jsx)("span",{className:"ctc-classic__counts-arrow","aria-hidden":!0,children:"→"})]}):null]})})]});return e.href?(0,t.jsx)(n.Link,{href:e.href,className:`ctc-classic ${o}`,"aria-label":s||void 0,children:d}):(0,t.jsx)("article",{className:`ctc-classic ${o}`,children:d})}function x(e){let{instanceId:i,source:n,items:c,slidesPerView:x,carouselInfinite:b,carouselIndicators:f,carouselControls:w}=e,y=(0,o.useTranslations)(),j=(0,s.useLocale)(),N=(0,d.useId)(),_=(0,d.useMemo)(()=>{let e;return(e=i?.trim())?e.replace(/[^a-zA-Z0-9_-]/g,"-"):N.replace(/:/g,"")},[i,N]),k=`cps-prev-${_}`,C=`cps-next-${_}`,S=`cps-dots-${_}`,{effectiveControls:L,effectiveIndicators:I}=(0,d.useMemo)(()=>{var e;let t,a,r;return e=c.length,t={mobile:e>x.mobile,tablet:e>x.tablet,desktop:e>x.desktop},a={mobile:w.mobile&&t.mobile,tablet:w.tablet&&t.tablet,desktop:w.desktop&&t.desktop},r={mobile:f.mobile&&t.mobile,tablet:f.tablet&&t.tablet,desktop:f.desktop&&t.desktop},{canSlide:t,effectiveControls:a,effectiveIndicators:r}},[c.length,x,w,f]),z=(0,d.useMemo)(()=>g(L),[L]),A=(0,d.useMemo)(()=>g(I),[I]);if(0===c.length)return null;if("product"!==n){let e=function(e,t){if(0===e.length)return[];let a=[];for(let t=0;t<e.length;t+=3)a.push(e.slice(t,t+3));return a}(c,0);return(0,t.jsx)("div",{className:"ctc-root",children:(0,t.jsx)("div",{className:"ctc-grid",children:e.map((e,a)=>(0,t.jsx)("div",{className:"ctc-grid__row","data-cols":e.length,style:{"--ctc-grid-row-cols":e.length},children:e.map((e,r)=>{let l;return(0,t.jsx)(v,{item:e,counts:(l=e.productCount,`${new Intl.NumberFormat(j).format(l)} ${y("products")}`),toneIndex:3*a+r},String(e.id))})},`ctc-row-${a}`))})})}let q=Math.max(x.desktop,x.tablet,x.mobile),E=b&&c.length>q,$=[...p("controls",L),...p("indicators",I)].join(" ");return(0,t.jsxs)("div",{className:`cps ctc-root ${$}`.trim(),children:[(0,t.jsxs)("div",{className:"cps__viewport",children:[z?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{type:"button",variant:"primary","aria-label":y("previous"),className:`${k} cps__arrow cps__arrow--prev !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(l.ArrowIcon,{className:"h-3.5 w-4 rotate-180"})}),(0,t.jsx)(r.Button,{type:"button",variant:"primary","aria-label":y("next"),className:`${C} cps__arrow cps__arrow--next !rounded-[50%] !p-0 disabled:cursor-not-allowed disabled:opacity-30`,children:(0,t.jsx)(l.ArrowIcon,{className:"h-3.5 w-4"})})]}):null,(0,t.jsx)(h.Swiper,{modules:[u.Navigation,m.Pagination],loop:E,watchOverflow:!0,centerInsufficientSlides:!0,slidesPerView:x.mobile,spaceBetween:16,navigation:!!z&&{prevEl:`.${k}`,nextEl:`.${C}`},pagination:!!A&&{clickable:!0,el:`.${S}`},breakpoints:{0:{slidesPerView:x.mobile,spaceBetween:16},768:{slidesPerView:x.tablet,spaceBetween:16},1024:{slidesPerView:x.desktop,spaceBetween:24}},className:"cps__swiper",children:c.map(e=>(0,t.jsx)(h.SwiperSlide,{children:(0,t.jsx)(a.ProductTileOne,{title:e.title,imageSrc:e.imageSrc,href:e.href,originLabel:y("origin"),casLabel:y("cas_number"),hsLabel:y("hs_code"),inquireLabel:y("inquire_now"),originValue:e.originValue,casValue:e.casValue,hsValue:e.hsValue})},String(e.id)))})]}),A?(0,t.jsx)("div",{className:`cps__indicators ${S} !relative !bottom-auto !left-auto !right-auto !top-auto !w-auto [&_.swiper-pagination-bullet]:!m-0`}):null]})}e.s(["CategoryProductSliderSection",()=>x],617299)}
407,449547,e=>{e.v({blogContent:"IndustryUpdateSectionOne-module__V99MLa__blogContent",blogImage:"IndustryUpdateSectionOne-module__V99MLa__blogImage",blogItem:"IndustryUpdateSectionOne-module__V99MLa__blogItem",blogLink:"IndustryUpdateSectionOne-module__V99MLa__blogLink",blogList:"IndustryUpdateSectionOne-module__V99MLa__blogList",blogMeta:"IndustryUpdateSectionOne-module__V99MLa__blogMeta",blogPanel:"IndustryUpdateSectionOne-module__V99MLa__blogPanel",blogThumb:"IndustryUpdateSectionOne-module__V99MLa__blogThumb",blogTitle:"IndustryUpdateSectionOne-module__V99MLa__blogTitle",dateBadge:"IndustryUpdateSectionOne-module__V99MLa__dateBadge",dateBadgeDay:"IndustryUpdateSectionOne-module__V99MLa__dateBadgeDay",dateBadgeMonth:"IndustryUpdateSectionOne-module__V99MLa__dateBadgeMonth",eventContent:"IndustryUpdateSectionOne-module__V99MLa__eventContent",eventItem:"IndustryUpdateSectionOne-module__V99MLa__eventItem",eventLink:"IndustryUpdateSectionOne-module__V99MLa__eventLink",eventList:"IndustryUpdateSectionOne-module__V99MLa__eventList",eventLocation:"IndustryUpdateSectionOne-module__V99MLa__eventLocation",eventTitle:"IndustryUpdateSectionOne-module__V99MLa__eventTitle",eventsPanel:"IndustryUpdateSectionOne-module__V99MLa__eventsPanel",grid:"IndustryUpdateSectionOne-module__V99MLa__grid",mainHeading:"IndustryUpdateSectionOne-module__V99MLa__mainHeading",panel:"IndustryUpdateSectionOne-module__V99MLa__panel",panelHeader:"IndustryUpdateSectionOne-module__V99MLa__panelHeader",panelLink:"IndustryUpdateSectionOne-module__V99MLa__panelLink",panelLinkButton:"IndustryUpdateSectionOne-module__V99MLa__panelLinkButton",panelLinkIcon:"IndustryUpdateSectionOne-module__V99MLa__panelLinkIcon",panelTitle:"IndustryUpdateSectionOne-module__V99MLa__panelTitle",section:"IndustryUpdateSectionOne-module__V99MLa__section"})},145478,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(924455),l=e.i(657688);e.i(79951);var i=e.i(902936);e.i(527967);var n=e.i(830167),s=e.i(948148),o=e.i(449547);function c({href:e,label:a}){return(0,t.jsxs)(i.Link,{href:e,className:o.default.panelLink,children:[a,(0,t.jsx)(n.ArrowIcon,{className:`${o.default.panelLinkIcon} rtl:rotate-180`,"aria-hidden":"true"})]})}function d({label:e}){return(0,t.jsxs)("button",{type:"button",className:o.default.panelLinkButton,children:[e,(0,t.jsx)(n.ArrowIcon,{className:`${o.default.panelLinkIcon} rtl:rotate-180`,"aria-hidden":"true"})]})}function u({heading:e,events:n,blog_posts:u,blog_heading:m,events_heading:h,blog_view_more_url:p,blog_view_more_label:g,events_view_more_url:v,events_view_more_label:x}){let b=(0,s.useTranslations)(),f=n??[],w=u??[],y=f.length>0,j=w.length>0;return y||j||e?(0,t.jsx)("section",{className:o.default.section,children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[e?(0,t.jsx)("h2",{className:o.default.mainHeading,children:e}):null,(0,t.jsxs)("div",{className:o.default.grid,children:[y?(0,t.jsxs)("div",{className:`${o.default.panel} ${o.default.eventsPanel}`,children:[(0,t.jsxs)("div",{className:o.default.panelHeader,children:[h?(0,t.jsx)("h3",{className:o.default.panelTitle,children:h}):(0,t.jsx)("span",{"aria-hidden":!0}),v?(0,t.jsx)(c,{href:v,label:x||b("view_more")}):(0,t.jsx)(d,{label:x||b("view_more")})]}),(0,t.jsx)("ul",{className:o.default.eventList,children:f.map((e,a)=>{let r=e.title?.trim()??"",l=function(e){if(!e)return"";try{let t=new Date(e);if(isNaN(t.getTime()))return e;return t.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"})}catch{return e}}(e.event_date),{dayLabel:n,monthYearLabel:s}=function(e){if(!e)return{dayLabel:"",monthYearLabel:""};try{let t=e.split(/\s*(?:-|–|to)\s*/i).map(e=>e.trim()).filter(Boolean),a=new Date(t[0]??e);if(isNaN(a.getTime()))return{dayLabel:e,monthYearLabel:""};let r=String(a.getUTCDate());if(t.length>1){let e=new Date(t[t.length-1]??"");isNaN(e.getTime())||e.getUTCDate()===a.getUTCDate()||(r=`${a.getUTCDate()}-${e.getUTCDate()}`)}let l=a.toLocaleDateString("en-GB",{month:"short",year:"numeric",timeZone:"UTC"}).toUpperCase();return{dayLabel:r,monthYearLabel:l}}catch{return{dayLabel:"",monthYearLabel:""}}}(e.event_date),c=e.event_location?.trim()??"",d=e.event_url?.trim()??null,u=d&&"javascript:void(0)"!==d?d:null,m=(0,t.jsxs)(t.Fragment,{children:[n||s||l?(0,t.jsxs)("div",{className:o.default.dateBadge,children:[n?(0,t.jsx)("span",{className:o.default.dateBadgeDay,children:n}
407):null,s?(0,t.jsx)("span",{className:o.default.dateBadgeMonth,children:s}):l?(0,t.jsx)("span",{className:o.default.dateBadgeMonth,children:l}):null]}):null,(0,t.jsxs)("div",{className:o.default.eventContent,children:[r?(0,t.jsx)("h4",{className:o.default.eventTitle,children:r}):null,c?(0,t.jsx)("p",{className:o.default.eventLocation,children:c}):null]})]});return(0,t.jsx)("li",{className:o.default.eventItem,children:u?(0,t.jsx)(i.Link,{href:u,target:"_blank",rel:"nofollow noopener noreferrer",className:o.default.eventLink,children:m}):(0,t.jsx)("div",{className:o.default.eventLink,children:m})},`event-${a}`)})})]}):null,j?(0,t.jsxs)("div",{className:`${o.default.panel} ${o.default.blogPanel}`,children:[(0,t.jsxs)("div",{className:o.default.panelHeader,children:[m?(0,t.jsx)("h3",{className:o.default.panelTitle,children:m}):(0,t.jsx)("span",{"aria-hidden":!0}),p?(0,t.jsx)(c,{href:p,label:g||b("view_more")}):(0,t.jsx)(d,{label:g||b("view_more")})]}),(0,t.jsx)("ul",{className:o.default.blogList,children:w.map((e,n)=>{let s=e.title?.trim()??"",c=(0,a.normalizeCmsImage)(e.thumbnail_image),d=function(e){if(!e)return"";try{let t=new Date(e);if(isNaN(t.getTime()))return e;return t.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"})}catch{return e}}(e.published_at),u=e.post_url?.trim()??null,m=u?(0,r.normalizeMarketInsightPostHref)(u):null,h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:o.default.blogThumb,children:c?(0,t.jsx)(l.default,{src:c,alt:s||b("blog_thumbnail"),fill:!0,sizes:"(max-width: 768px) 104px, 120px",quality:100,className:o.default.blogImage}):null}),(0,t.jsxs)("div",{className:o.default.blogContent,children:[d?(0,t.jsx)("p",{className:o.default.blogMeta,children:d}):null,s?(0,t.jsx)("h4",{className:o.default.blogTitle,children:s}):null]})]});return(0,t.jsx)("li",{className:o.default.blogItem,children:m?(0,t.jsx)(i.Link,{href:m,className:o.default.blogLink,children:h}):(0,t.jsx)("div",{className:o.default.blogLink,children:h})},`post-${n}`)})})]}):null]})]})}):null}e.s(["IndustryUpdateSectionOne",()=>u,"IndustryUpdatesSectionOne",()=>u])},208963,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(10451),l=e.i(809009),i=e.i(458123),n=e.i(657688);e.i(79951);var s=e.i(902936),o=e.i(271645),c=e.i(752140),d=e.i(231807),u=e.i(337049),m=e.i(454133),h=e.i(450063),p=e.i(22584),g=e.i(35135),v=e.i(158760),x=e.i(948148),b=e.i(535477);let f=new Set(["oleochemicals"]);function w(e){return"string"==typeof e&&e.trim()?e:"number"==typeof e?String(e):"—"}function y(e,t){return t?e.toLowerCase()===t.toLowerCase():"all"===e}e.s(["default",0,({discussions:e,featuredQuestions:j,listLoadError:N})=>{let _=(0,s.useRouter)(),k=(0,x.useTranslations)(),{requireAuthForPost:C}=(0,h.useCommunityAuth)(),S=(0,v.useStorefrontConfig)(),L=S?.meta?.websiteName?.trim()??"",I=S?.meta?.isIndustryWebsite??!!L,[z,A]=(0,o.useState)("most-recently"),[q,E]=(0,o.useState)(()=>L||"all"),[$,P]=(0,o.useState)(()=>Object.fromEntries(e.map(e=>[e.slug,e.votes_count]))),[T,M]=(0,o.useState)(d.readQuestionVoteMap),[O,F]=(0,o.useState)(""),R=(0,o.useMemo)(()=>{if(I)return L?[L]:["all"];let t=Array.from(new Set(e.map(e=>w(e.business_vertical_id)).filter(e=>"—"!==e&&!f.has(e.trim().toLowerCase())))).filter(e=>!L||e.toLowerCase()!==L.toLowerCase());return L?[L,...t]:["all",...t]},[e,I,L]),B=y(q,L)?L||k("all_industries"):q,D=(0,o.useMemo)(()=>[...y(q,L)?e:e.filter(e=>w(e.business_vertical_id).toLowerCase()===q.toLowerCase())].sort((e,t)=>"most-voted"===z?($[t.slug]??t.votes_count)-($[e.slug]??e.votes_count):"most-commented"===z?t.answers_count-e.answers_count:new Date(t.published_at??0).getTime()-new Date(e.published_at??0).getTime()),[e,q,z,$,L]),H=j.map(e=>({id:e.id,title:e.translation.title,link:e.slug?p.routes.community.detail(e.slug):p.routes.community.list,answerCount:e.answers_count??0})),U=e=>{let t=(0,u.getCommunityQuestionDetailPath)(e);t!==p.routes.community.list&&_.push(t)},G=async(e,t)=>{if(e.preventDefault(),e.stopPropagation(),F(""),(0,d.isDuplicateQuestionVote)(t.slug,1))return;let a=t.translation.title?.trim()||t.slug?.trim()||k("question"),r={v:1,action:"vote",payload:{target:"question",question_slug:t.slug,question_title:a,value:1}};try{if(!await C(r,"community:list-question-vote",async()=>{await (0,c.postCommunityVote)({question_slug:t.slug,question_title:a,value:1}),(0,d.setQuestionVote)(t.slug,1),M(e=>({...e,[t.slug]:1})),P(e=>({...e,[t.slug]:(e[t.slug]??t.votes_count)+1}))}
407))return}catch(e){F(e instanceof Error?e.message:k("error_unable_to_submit_vote"))}};return(0,t.jsx)("section",{"data-premium-community-discussions":!0,children:(0,t.jsx)("div",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"cd-p-layout",children:[(0,t.jsx)(b.CommunityPopularQuestions,{heading:k("featured_questions"),questions:H,emptyMessage:k("no_featured_questions")}),(0,t.jsxs)("div",{className:"cd-p-main",children:[(0,t.jsxs)("div",{className:"cd-p-toolbar",children:[(0,t.jsx)("h2",{className:"cd-p-toolbar__title",children:k("all_discussions")}),(0,t.jsxs)("div",{className:"cd-p-controls",children:[(0,t.jsxs)("div",{className:"cd-p-control",children:[(0,t.jsx)("label",{className:"cd-p-control__label",htmlFor:"community-filter-vertical",children:k("filter_by_colon")}),(0,t.jsxs)("div",{className:"cd-p-select",children:[(0,t.jsx)("select",{id:"community-filter-vertical",className:"cd-p-select__input",disabled:I,"aria-disabled":I,value:q,onChange:e=>E(e.target.value),children:R.map(e=>(0,t.jsx)("option",{value:e,children:"all"===e?k("all_industries"):e},e))}),(0,t.jsx)(a.ArrowIcon,{className:"cd-p-select__chevron","aria-hidden":"true"})]})]}),(0,t.jsxs)("div",{className:"cd-p-control",children:[(0,t.jsx)("label",{className:"cd-p-control__label",htmlFor:"community-sort",children:k("sort_by_colon")}),(0,t.jsxs)("div",{className:"cd-p-select",children:[(0,t.jsxs)("select",{id:"community-sort",className:"cd-p-select__input",value:z,onChange:e=>A(e.target.value),"aria-label":k("sort_by"),children:[(0,t.jsx)("option",{value:"most-recently",children:k("sort_most_recently")}),(0,t.jsx)("option",{value:"most-voted",children:k("sort_most_voted")}),(0,t.jsx)("option",{value:"most-commented",children:k("sort_most_commented")})]}),(0,t.jsx)(a.ArrowIcon,{className:"cd-p-select__chevron","aria-hidden":"true"})]})]})]})]}),N?(0,t.jsx)("p",{className:"cd-p-error",role:"alert",children:N}):null,(0,t.jsx)("div",{className:"cd-p-list",children:D.map(e=>{let a=(0,u.getCommunityAuthorName)(e),s=e.translation.title?.trim()||k("view_discussion"),o=1===(T[e.slug]??(0,d.getQuestionVote)(e.slug));return(0,t.jsxs)("article",{role:"link",tabIndex:0,"aria-label":k("open_discussion",{title:s}),onClick:()=>U(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),U(e))},className:"cd-p-card",children:[(0,t.jsx)("span",{className:"cd-p-card__region",children:B}),(0,t.jsxs)("div",{className:"cd-p-card__author",children:[(0,t.jsx)("span",{className:"cd-p-card__avatar",children:(0,t.jsx)(n.default,{src:"/community/username.png",alt:a,width:40,height:40})}),(0,t.jsx)("span",{className:"cd-p-card__author-name",children:a}),(0,t.jsx)("span",{className:"cd-p-divider","aria-hidden":"true"}),(0,t.jsx)(g.ClientRelativeTime,{dateString:e.published_at,mode:"absolute",unknownLabel:k("unknown_date"),className:"cd-p-card__date"})]}),(0,t.jsx)("h3",{className:"cd-p-card__title",children:e.translation.title}),(0,t.jsx)("p",{className:"cd-p-card__excerpt",children:(0,m.extractCommunityText)(e.translation.body)||k("no_details_available")}),(0,t.jsx)("span",{className:"cd-p-card__tag",children:w(e.business_vertical_id)}),(0,t.jsx)("hr",{className:"cd-p-card__rule"}),(0,t.jsxs)("div",{className:"cd-p-card__footer",children:[(0,t.jsxs)("div",{className:"cd-p-stats",children:[(0,t.jsxs)("button",{type:"button","aria-label":k("open_discussion",{title:s}),className:"cd-p-stat",onClick:t=>{t.stopPropagation(),U(e)},children:[(0,t.jsx)(r.CommentGrey,{}),(0,t.jsx)("span",{children:e.answers_count})]}),(0,t.jsx)("span",{className:"cd-p-divider","aria-hidden":"true"}),(0,t.jsxs)("button",{type:"button","aria-label":k("upvote_discussion"),className:`cd-p-stat ${o?"cd-p-stat--done":""}`,disabled:o,onClick:t=>void G(t,e),children:[(0,t.jsx)(l.UpIconGrey,{}),(0,t.jsx)("span",{children:$[e.slug]??e.votes_count})]}),(0,t.jsx)("span",{className:"cd-p-divider","aria-hidden":"true"}),(0,t.jsxs)("span",{className:"cd-p-stat cd-p-stat--static",children:[(0,t.jsx)(i.ViewGrey,{}),(0,t.jsx)("span",{children:e.views_count})]})]}),(0,t.jsx)("span",{className:"cd-p-card__cta","aria-hidden":"true",children:k("view_discussion")})]})]},e.id)})}),O?(0,t.jsx)("p",{className:"cd-p-error",children:O}):null,0!==D.length||N?null:(0,t.jsx)("p",{className:"cd-p-empty",children:k("no_questions_foun
407d")})]})]})})})}])},830543,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(659544),l=e.i(329078),i=e.i(723178),n=e.i(620620),s=e.i(450020),o=e.i(200853),c=e.i(718631),d=e.i(770002);function u(e,t){return e.find(e=>e.role===t)}let m="mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-input-height)] w-full rounded-[var(--contact-us-form-input-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] text-start text-[var(--contact-us-form-input-text-color)] placeholder:text-[var(--contact-us-form-input-placeholder-color)] focus:border-[color:var(--contact-us-form-input-focus-border)] outline-none",h="contact-us-form-select mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-input-height)] w-full rounded-[var(--contact-us-form-input-radius)] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] text-start text-[var(--contact-us-form-input-text-color)] focus:border-[color:var(--contact-us-form-input-focus-border)] outline-none flex items-center appearance-none pe-[var(--contact-us-form-select-padding-right)]",p="block text-start text-[var(--contact-us-form-label-color)] font-[var(--contact-us-form-label-weight)] leading-[var(--contact-us-form-label-line-height)] text-[length:var(--contact-us-form-label-size)]";function g({parsedEmbed:e,recaptchaSiteKey:g}){let{formRef:v,showSuccess:x,captchaError:b,handleSubmit:f,handleIframeLoad:w,dismissSuccess:y}=(0,i.useSalesforceIframeFormSubmit)(g),{selectedCountry:j,handleUserCountrySelect:N,resetUserSelection:_}=(0,n.useSalesforceCountrySync)(),k=e.visibleFields,C=u(k,"helpReason"),S=u(k,"salutation"),L=u(k,"firstName"),I=u(k,"lastName"),z=u(k,"company"),A=u(k,"countryCode"),q=u(k,"email"),E=u(k,"phone"),$=u(k,"message");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("iframe",{name:"sf_contact_iframe",title:"form submission target",className:"hidden",onLoad:w}),(0,t.jsx)("form",{ref:v,action:e.action,method:e.method,target:"sf_contact_iframe",onSubmit:f,onReset:_,className:"[border-width:var(--contact-us-form-border-width)] border-[color:var(--contact-us-form-border-color)] rounded-[var(--contact-us-form-radius)] py-[var(--contact-us-form-padding-y-mobile)] px-[var(--contact-us-form-padding-x-mobile)] md:p-[var(--contact-us-form-padding-desktop)]",children:(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--contact-us-form-field-gap)]",children:[e.hiddenFields.map(e=>(0,t.jsx)("input",{type:"hidden",name:e.name,value:e.value},e.name)),C&&(0,t.jsxs)("div",{children:[C.label&&(0,t.jsxs)("label",{className:p,children:[C.label,(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{name:C.name,id:C.id,required:!0,defaultValue:"",className:h,children:[(0,t.jsx)(d.SalesforceSelectPlaceholderOption,{}),C.options.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--contact-us-form-select-arrow-right)] flex items-center",children:(0,t.jsx)(a.ArrowIcon,{className:"h-[var(--contact-us-form-select-arrow-size)] w-[var(--contact-us-form-select-arrow-size)] rotate-90 text-[var(--contact-us-form-select-arrow-color)]"})})]})]}),(S||L||I)&&(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--contact-us-form-field-gap)] md:grid-cols-3",children:[S&&(0,t.jsxs)("div",{children:[S.label&&(0,t.jsxs)("label",{className:p,children:[S.label,(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{name:S.name,id:S.id,required:!0,defaultValue:"",className:h,children:[(0,t.jsx)(d.SalesforceSelectPlaceholderOption,{}),S.options.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--contact-us-form-select-arrow-right)] flex items-center",children:(0,t.jsx)(a.ArrowIcon,{className:"h-[var(--contact-us-form-select-arrow-size)] w-[var(--contact-us-form-select-arrow-size)] rotate-90 text-[var(--contact-us-form-select-arrow-color)]"})})]})]}),L&&(0,t.jsxs)("div",{children:[L.label&&(0,t.jsxs)("label",{className:p,children:[L.label,(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:L.id,name:L.name,maxLength:L.maxLength,required:!0,placeholder:L.label||"",className:m})]}),I&&(0,t.jsxs)("div",{children:[I.label&&(0,t.jsxs)("label",{className:p,children:[I.label,(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:I.id,name:I.name,maxLength:I.maxLength,required:!0,placeholder:I.label||"",className:m})]})]}),z&&(0,t.jsxs)("div",{children:[z.label&&(0,t.jsxs)("label",{className:p,children:[z.label,(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:z.id,name:z.name,maxLength:z.maxLength,required:!0,placeholder:z.label||"",className:m})]}),A&&(0,t.jsxs)("div",{children:[A.label&&(0,t.jsxs)("label",{className:p,children:[A.label,(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{name:A.name,id:A.id,required:!0,defaultValue:"",className:h,onChange:e=>N((0,s.isoCountryForDialCodeOption)(e.target.value)),children:[(0,t.jsx)(d.SalesforceSelectPlaceholderOption,{}),A.options.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label.replace(/\s*\(\+\d+\)\s
407*$/,"")},e.value))]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--contact-us-form-select-arrow-right)] flex items-center",children:(0,t.jsx)(a.ArrowIcon,{className:"h-[var(--contact-us-form-select-arrow-size)] w-[var(--contact-us-form-select-arrow-size)] rotate-90 text-[var(--contact-us-form-select-arrow-color)]"})})]})]}),(q||E)&&(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--contact-us-form-field-gap)] md:grid-cols-2",children:[q&&(0,t.jsxs)("div",{children:[q.label&&(0,t.jsxs)("label",{className:p,children:[q.label,(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"email",id:q.id,name:q.name,maxLength:q.maxLength,required:!0,placeholder:q.label||"",className:m})]}),E&&(0,t.jsx)(c.PhoneInputWithDialCode,{name:E.name,id:E.id,label:E.label||void 0,country:j})]}),$&&(0,t.jsxs)("div",{children:[$.label&&(0,t.jsx)("label",{className:p,children:$.label}),(0,t.jsx)("textarea",{id:$.id,name:$.name,rows:$.rows,placeholder:"Enter your message or question here",className:"mt-[var(--contact-us-form-input-margin-top)] h-[var(--contact-us-form-textarea-height)] w-full rounded-[24px] [border-width:var(--contact-us-form-input-border-width)] border-[color:var(--contact-us-form-input-border-color)] px-[var(--contact-us-form-input-padding-x)] py-3 text-start text-[var(--contact-us-form-input-text-color)] placeholder:text-[var(--contact-us-form-input-placeholder-color)] focus:border-[color:var(--contact-us-form-input-focus-border)] outline-none"})]}),g?(0,t.jsx)(l.RecaptchaWidget,{siteKey:g,eager:!0}):null,(0,t.jsxs)("div",{className:"cursor-pointer mt-[var(--contact-us-form-submit-margin-top)] flex items-center gap-3 justify-end",children:[b?(0,t.jsx)("p",{className:"text-start text-[length:var(--contact-us-form-label-size)] font-[var(--contact-us-form-label-weight)] text-[var(--contact-us-form-error-color)]",children:b}):null,(0,t.jsx)(r.Button,{variant:"primary",type:"submit",className:"px-10",children:"Submit"})]})]})}),(0,t.jsx)(o.ContactFormSuccessModal,{isOpen:x,onClose:y})]})}e.s(["SalesforceContactEmbedForm",()=>g])},575686,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(21403);e.i(233568);var l=e.i(981743);e.i(149797);var i=e.i(967224);e.i(716787);var n=e.i(659544),s=e.i(924455);e.i(79951);var o=e.i(902936),c=e.i(948148);function d(e){return e.image_url?.trim()||e.image?.trim()||e.thumbnail?.trim()||e.raw?.image_url?.trim()||e.raw?.image?.trim()||e.raw?.thumbnail?.trim()||""}function u(e,t){let a=[...Array.isArray(e)?e:[]].sort((e,t)=>e.title.localeCompare(t.title,void 0,{sensitivity:"base"}));return"desc"===t?a.reverse():a}async function m(e,t){let a=new URLSearchParams({result_search:e,scope:"page"});t.length>0&&a.set("industry",t.join(","));try{let e=await fetch(`/api/search?${a.toString()}`);if(!e.ok)return null;let t=await e.json();return t.ok&&t.data?t.data:null}catch{return null}}function h({query:e,initialActiveTab:h,initialIndustryIds:p,industryOptions:g,products:v,productCount:x,marketInsightCards:b,marketInsightCount:f}){let w=(0,c.useTranslations)(),y=(0,o.useRouter)(),[,j]=(0,a.useTransition)(),[N,_]=(0,a.useState)(h),[k,C]=(0,a.useState)(p),[S,L]=(0,a.useState)("asc"),[I,z]=(0,a.useState)(v),[A,q]=(0,a.useState)(Array.isArray(b)?b:[]),[E,$]=(0,a.useState)(x),[P,T]=(0,a.useState)(f),[M,O]=(0,a.useState)(6),[F,R]=(0,a.useState)(6),[B,D]=(0,a.useState)(!1),H=(0,a.useRef)(0),U=(0,a.useMemo)(()=>[{label:w("ascending"),value:"asc"},{label:w("descending"),value:"desc"}],[w]),G=(0,a.useCallback)(t=>{let a=new URLSearchParams;e&&a.set("result_search",e),t.length>0&&a.set("industry",t.join(",")),"marketInsight"===N&&a.set("tab","marketinsight");let r=a.toString();y.replace(r?`/search-result?${r}`:"/search-result",{scroll:!1})},[N,e,y]),W=(0,a.useCallback)(async t=>{if(!e.trim())return;let a=++H.current;D(!0),C(t),G(t);let r=await m(e,t);if(a===H.current){if(r){var l;z(Array.isArray(r.products)?r.products:[]),$(r.totals?.products??0),q((l=r.marketInsights,(Array.isArray(l)?l:[]).map(e=>({id:String(e.id),image:d(e),label:e.sub_type?.replace(/[_-]/g," ")||w("market_insights"),title:e.title,categories:[],description:(e.excerpt??e.description??w("market_insight_fallback_description")).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim(),date:"",author:"",link:(0,s.resolveSearchMarketInsightHref)(e),linkIsDocument:(0,s.isNewsletterMarketInsightPost)(e.raw??{}),readTime:w("one_min_read")})))),T(r.totals?.marketInsights??0)}O(6),R(6),D(!1)}},[e,G,w]);(0,a.useEffect)(()=>{z(v),$(x),q(Array.isArray(b)?b:[]),T(f),C(p)},[p,b,f,x,v]);let V=(0,a.useMemo)(()=>u(I,S),[I,S]),K=(0,a.useMemo)(()=>u(A,S),[A,S]);(0,a.useEffect)(()=>{queueMicrotask(()=>{O(6),R(6)})},[N,k,S]);let Y=(0,a.useMemo)(()=>V.slice(0,M),[V,M]),Q=(0,a.useMemo)(()=>K.slice(0,F),[K,F]),Z=M<V.length,X=F<K.length,J=[{key:"products",label:`${w("products")} (${E})`},{key:"marketInsight",label:`${w("market_insights")} (${P})`}];return(0,t.jsxs)("section",{className:"layout-container min-w-0 overflow-x-hidden px-3",children:[(0,t.jsx)("div",{className:"py-[40px]",children:(0,t.jsxs)("h1",{className:"search-result-heading text-2xl font-semibold text-[var(--brand-black)]",children:[w("search_results_for"),' "',(0,t.jsx)("span",{className:"search-result-heading__query text-secondary italic",title:e,children:e}),'"']})}),(0,t.jsx)("div",{className:"mt-[var(--search-result-tab-nav-margin-top-mobile)] mb-[var(--search-result-tab-nav-margin-bottom-mobile)] flex w-full flex-row gap-x-[var(--search-result-tab-nav-gap-x-mobile)] gap-y-[var(--search-result-tab-nav-gap-y-mobile)] overflow-x-auto border-b-2 border-[var(--search-result-tab-nav-border-color)] md:mb-[var(--search-result-tab-nav-margin-bottom-desktop)] md:gap-x-[var(--search-result-tab-nav-gap-x-desktop)] md:gap-y-[var(--search-result-tab-nav-gap-y-desktop)] md:overflow-visible",children:J.map(a=>{let r=N===a.key;return(0,t.jsx)("button",{type:"button",onClick:()=>{_(a.key),j(()=>{let t=new URLSearchParams;e&&t.set("result_search",e),k.length>0&&t.set("industry",k.join(",")),"marketInsight"===a.key&&t.set("tab","marketinsight");let r=t.toString();y.replace(r?`/search-result?${r}`:"/search-result",{scroll:!1})})},className:`shrink-0 whitespace-nowrap border-b [border-bottom-width:var(--search-result-tab-indicator-height)] px-[var(--search-result-tab-trigger-padding-x-mobile)] py-[var(--search-result-tab-trigger-padding-y-mobile)] text-left text-[length:var(--search-result-tab-trigger-font-size-mobile)] font-[var(--search-result-tab-trigger-font-we
407ight-mobile)] leading-[var(--search-result-tab-trigger-line-height-mobile)] transition-colors md:px-[var(--search-result-tab-trigger-padding-x-desktop)] md:py-[var(--search-result-tab-trigger-padding-y-desktop)] md:text-[length:var(--search-result-tab-trigger-font-size-desktop)] md:font-[var(--search-result-tab-trigger-font-weight-desktop)] md:leading-[var(--search-result-tab-trigger-line-height-desktop)] ${r?"border-b-[var(--search-result-tab-indicator-color)] text-[var(--search-result-tab-trigger-color-active)]":"border-b-transparent text-[var(--search-result-tab-trigger-color)] hover:border-b-[var(--search-result-tab-indicator-color)] hover:text-[var(--search-result-tab-trigger-color-active)]"}`,children:a.label},a.key)})}),(0,t.jsx)("div",{className:"mb-[60px]",children:(0,t.jsx)(l.FilterBar,{showIndustryFilter:!0,showRegionFilter:!1,showSortFilter:!0,showSearch:!1,industryPlaceholder:w("select_industry"),industryOptions:g,selectedIndustries:k,onIndustryChange:e=>{W(e)},sortOptions:U,selectedSort:S,onSortChange:e=>L("desc"===e?"desc":"asc")})}),"products"===N?(0,t.jsxs)("div",{className:"my-[40px]",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-4",children:B?(0,t.jsx)("p",{className:"text-[var(--brand-neutral-text)]",children:w("loading")}):V.length>0?Y.map((e,a)=>{let r;return(0,t.jsx)(i.ProductTileOne,{title:e.title,imageSrc:d(e),href:(r=e.url.trim())?/^https?:\/\//i.test(r)||/^mailto:/i.test(r)||r.startsWith("/")?r:`/${r}`:"/search-result",originLabel:w("origin"),casLabel:w("cas_number"),hsLabel:w("hs_code"),inquireLabel:w("inquire_now"),originValue:void 0,casValue:e.cas_number??"",hsValue:e.hs_code??""},`${e.id}-${e.url}-${a}`)}):(0,t.jsx)("p",{className:"text-[var(--brand-neutral-text)]",children:w("no_product_results")})}),Z?(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsx)(n.Button,{variant:"outlined",type:"button",onClick:()=>O(e=>e+6),children:w("load_more")})}):null]}):(0,t.jsxs)("div",{className:"my-[40px]",children:[(0,t.jsx)(r.BlogCardSectionComponent,{columns:1,blogs:Q,variant:"search-result"}),X?(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsx)(n.Button,{variant:"primary",type:"button",onClick:()=>R(e=>e+6),children:w("load_more")})}):null]})]})}e.s(["SearchResultContent",()=>h])},782932,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936),l=e.i(271645);e.i(527967);var i=e.i(830167),n=e.i(752140),s=e.i(450063),o=e.i(158760),c=e.i(22584),d=e.i(948148);let u={subject:"",body:""};function m(){let e=(0,r.useRouter)(),{requireAuthForPost:m}=(0,s.useCommunityAuth)(),h=(0,o.useStorefrontConfig)(),p=h?.meta?.websiteName?.trim()??"",g=(0,d.useTranslations)(),[v,x]=(0,l.useState)(u),[b,f]=(0,l.useState)({}),[w,y]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!1),[_,k]=(0,l.useState)(null),[C,S]=(0,l.useState)(!1),[L,I]=(0,l.useState)(""),z=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(j)return z.current=setTimeout(()=>{N(!1),_?e.push(c.routes.community.detail(_)):e.push(c.routes.community.list)},2500),()=>{z.current&&(clearTimeout(z.current),z.current=null)}},[j,_,e]);let A=e=>t=>{let a=t.target.value;x(t=>({...t,[e]:a})),f(t=>({...t,[e]:void 0})),I("")},q=async e=>{let t;if(e.preventDefault(),t={},v.subject.trim()||(t.subject=g("error_subject_required")),p.trim()||(t.industry=g("error_industry_required")),v.body.trim()||(t.body=g("error_body_required")),f(t),0!==Object.keys(t).length)return;let a=v.subject.trim(),r=v.body.trim();I("");try{if(!await m({v:1,action:"question",payload:{title:a,body:r}},"community:create-question",async()=>{S(!0);try{let e=await (0,n.postCommunityQuestion)({title:a,body:r}),t=(0,n.extractCreatedQuestionSlug)(e);x(u),k(t),N(!0)}finally{S(!1)}}))return}catch(e){I(e instanceof Error?e.message:g("error_unable_to_post_question")),S(!1)}},E="text-start text-[length:var(--create-question-label-size-mobile)] leading-[var(--create-question-label-line-height-mobile)] text-[var(--create-question-label-color)] font-[var(--create-question-label-weight)] md:text-[length:var(--create-question-label-size)] md:leading-[var(--create-question-label-line-height)]",$="mt-[var(--create-question-error-margin-top)] text-start text-[length:var(--create-question-error-size)] text-[var(--create-question-error-color)]";return(0,t.jsxs)("div",{className:"create-question--premium",children:[(0,t.jsx)("div",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"create-question-premium-card",children:[(0,t.jsx)("h2",{className:"mb-[var(--create-question-title-margin-bottom)] text-start text-[length:var(--create-question-title-size-mobile)] text-[var(--create-question-title-color)] leading-[var(--create-question-title-line-height-mobile)] font-[var(--create-question-title-weight)] md:text-[length:var(--create-question-title-size)] md:leading-[var(--create-question-title-line-height)]",children:g("create_question")}),(0,t.jsxs)("form",{onSubmit:q,className:"grid grid-cols-1 gap-[var(--create-question-field-gap)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:E,htmlFor:"premium-question-subject",children:[g("subject"),(0,t.jsx)("span",{className:"text-[var(--create-question-required-color)]",children:"*"})]}),(0,t.jsx)("input",{id:"premium-question-subject",value:v.subject,onChange:A("subject"),placeholder:g("enter_subject"),className:"mt-[var(--create-question-input-margin-top)] h-[var(--create-question-input-height)] w-full rounded-[var(--create-question-input-radius)] [border-width:var(--create-question-input-border-width)] border-[color:var(--create-question-input-border-color)] px-[var(--create-question-input-padding-x)] text-start text-[var(--create-question-input-text-color)] placeholder:text-[var(--create-question-input-placeholder-color)] focu
407s:border-[color:var(--create-question-input-focus-border)] outline-none"}),b.subject?(0,t.jsx)("p",{className:$,children:b.subject}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:E,htmlFor:"premium-question-industry",children:[g("industry_label"),(0,t.jsx)("span",{className:"text-[var(--create-question-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{id:"premium-question-industry",value:p,onChange:()=>void 0,disabled:!0,className:"mt-[var(--create-question-input-margin-top)] h-[var(--create-question-input-height)] w-full appearance-none rounded-[var(--create-question-input-radius)] [border-width:var(--create-question-input-border-width)] border-[color:var(--create-question-input-border-color)] px-[var(--create-question-input-padding-x)] pe-[var(--create-question-select-padding-right)] text-start text-[var(--create-question-input-text-color)] disabled:text-[var(--create-question-input-disabled-text-color)] disabled:opacity-100",children:p?(0,t.jsx)("option",{value:p,children:p}):(0,t.jsx)("option",{value:"",children:g("select_industry")})}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--create-question-select-arrow-right)] mt-[var(--create-question-input-margin-top)] flex items-center",children:(0,t.jsx)(i.ArrowIcon,{className:"h-[var(--create-question-select-arrow-size)] w-[var(--create-question-select-arrow-size)] rotate-90 text-[var(--create-question-input-text-color)]"})})]}),b.industry?(0,t.jsx)("p",{className:$,children:b.industry}):null,p?(0,t.jsx)("div",{className:"mt-[var(--create-question-industry-tag-margin-top)]",children:(0,t.jsx)("span",{className:"flex w-max items-center gap-[var(--create-question-industry-tag-gap)] rounded-[var(--create-question-industry-tag-radius)] bg-[var(--create-question-industry-tag-bg)] px-[var(--create-question-industry-tag-padding-x)] py-[var(--create-question-industry-tag-padding-y)] text-center text-[length:var(--create-question-industry-tag-size)] leading-[var(--create-question-industry-tag-line-height-mobile)] text-[var(--create-question-industry-tag-color)] font-[var(--create-question-industry-tag-weight)] md:leading-[var(--create-question-industry-tag-line-height)]",children:p})}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:E,htmlFor:"premium-question-body",children:[g("body_label"),(0,t.jsx)("span",{className:"text-[var(--create-question-required-color)]",children:"*"})]}),(0,t.jsx)("textarea",{id:"premium-question-body",value:v.body,onChange:A("body"),placeholder:g("write_your_body"),rows:5,className:"create-question-premium-body mt-[var(--create-question-input-margin-top)]"}),b.body?(0,t.jsx)("p",{className:$,children:b.body}):null]}),(0,t.jsxs)("div",{className:"mt-[var(--create-question-actions-margin-top)] flex items-center justify-end gap-[var(--create-question-actions-gap)]",children:[L?(0,t.jsx)("p",{className:`me-auto ${$} mt-0`,children:L}):null,(0,t.jsx)("button",{type:"button",onClick:()=>y(!0),disabled:C,className:"create-question-premium-btn create-question-premium-btn--outlined",children:g("preview")}),(0,t.jsx)("button",{type:"submit",disabled:C,className:"create-question-premium-btn create-question-premium-btn--primary",children:C?g("posting"):g("post_now")})]})]})]})}),w?(0,t.jsxs)("div",{className:"fixed inset-0 z-[101] flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0,onClick:()=>y(!1)}),(0,t.jsxs)("div",{className:"relative z-[101] w-[80%] max-w-[500px] rounded-[var(--create-question-premium-card-radius)] bg-[var(--brand-white)] p-[30px] shadow-[var(--create-question-modal-shadow)]",children:[(0,t.jsxs)("div",{className:"mb-[20px] flex items-center justify-between gap-[10px]",children:[(0,t.jsx)("h3",{className:"text-start text-[length:var(--create-question-preview-title-size)] leading-[var(--create-question-preview-title-line-height)] text-[var(--create-question-preview-title-color)] font-[var(--create-question-preview-title-weight)]",children:g("question_preview")}),(0,t.jsx)("button",{type:"button",onClick:()=>y(!1),"aria-label":g("close"),className:"shrink-0 cursor-pointer rounded-md p-1",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14})})]}),(0,t.jsx)("h4",{className:"text-start text-[length:var(--create-question-preview-subject-size)] leading-[var(--create-question-preview-subject-line-height)] text-[var(--create-question-preview-subject-color)] font-[var(--create-question-preview-subject-weight)]",children:v.subject.trim()||g("untitled_question")}),(0,t.jsx)("p",{className:"text-start text-[length:var(--create-question-preview-body-size)] leading-[29px] text-[var(--create-question-preview-body-color)] font-[var(--create-question-preview-body-weight)]",children:v.body.trim()||g("no_content_to_preview")})]})]}):null,j?(0,t.jsxs)("div",{className:"fixed inset-0 z-[101] flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative z-[101] w-[80%] max-w-[500px] rounded-[var(--create-question-premium-card-radius)] bg-[var(--brand-white)] px-8 py-10 text-center shadow-[var(--create-question-modal-shadow)] md:px-12 md:py-12",role:"status","aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)("div",{className:"mx-auto mb-6 flex h-[4.5rem] w-[4.5rem] items-center justify-center rounded-full md:h-20 md:w-20",style:{backgroundColor:"#d1fae5"}
407,"aria-hidden":!0,children:(0,t.jsx)("svg",{className:"h-9 w-9 md:h-10 md:w-10",style:{color:"#047857"},viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("p",{className:"m-0 text-[length:var(--create-question-success-text-size)] leading-[var(--create-question-preview-title-line-height)] text-[var(--create-question-success-text-color)] font-[var(--create-question-success-text-weight)]",children:g("question_posted_success")})]})]}):null]})}e.s(["default",()=>m])},87038,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(21403);e.i(233568);var l=e.i(981743),i=e.i(770275);e.i(716787);var n=e.i(659544),s=e.i(924455);e.i(79951);var o=e.i(902936),c=e.i(948148);function d(e){return e.image_url?.trim()||e.image?.trim()||e.thumbnail?.trim()||e.raw?.image_url?.trim()||e.raw?.image?.trim()||e.raw?.thumbnail?.trim()||""}function u(e,t){let a=[...Array.isArray(e)?e:[]].sort((e,t)=>e.title.localeCompare(t.title,void 0,{sensitivity:"base"}));return"desc"===t?a.reverse():a}async function m(e,t){let a=new URLSearchParams({result_search:e,scope:"page"});t.length>0&&a.set("industry",t.join(","));try{let e=await fetch(`/api/search?${a.toString()}`);if(!e.ok)return null;let t=await e.json();return t.ok&&t.data?t.data:null}catch{return null}}function h({query:e,initialActiveTab:h,initialIndustryIds:p,industryOptions:g,products:v,productCount:x,marketInsightCards:b,marketInsightCount:f}){let w=(0,c.useTranslations)(),y=(0,o.useRouter)(),[,j]=(0,a.useTransition)(),[N,_]=(0,a.useState)(h),[k,C]=(0,a.useState)(p),[S,L]=(0,a.useState)("asc"),[I,z]=(0,a.useState)(v),[A,q]=(0,a.useState)(Array.isArray(b)?b:[]),[E,$]=(0,a.useState)(x),[P,T]=(0,a.useState)(f),[M,O]=(0,a.useState)(6),[F,R]=(0,a.useState)(6),[B,D]=(0,a.useState)(!1),H=(0,a.useRef)(0),U=(0,a.useMemo)(()=>[{label:w("ascending"),value:"asc"},{label:w("descending"),value:"desc"}],[w]),G=(0,a.useCallback)(t=>{let a=new URLSearchParams;e&&a.set("result_search",e),t.length>0&&a.set("industry",t.join(",")),"marketInsight"===N&&a.set("tab","marketinsight");let r=a.toString();y.replace(r?`/search-result?${r}`:"/search-result",{scroll:!1})},[N,e,y]),W=(0,a.useCallback)(async t=>{if(!e.trim())return;let a=++H.current;D(!0),C(t),G(t);let r=await m(e,t);if(a===H.current){if(r){var l;z(Array.isArray(r.products)?r.products:[]),$(r.totals?.products??0),q((l=r.marketInsights,(Array.isArray(l)?l:[]).map(e=>({id:String(e.id),image:d(e),label:e.sub_type?.replace(/[_-]/g," ")||w("market_insights"),title:e.title,categories:[],description:(e.excerpt??e.description??w("market_insight_fallback_description")).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim(),date:"",author:"",link:(0,s.resolveSearchMarketInsightHref)(e),readTime:w("one_min_read")})))),T(r.totals?.marketInsights??0)}O(6),R(6),D(!1)}},[e,G,w]);(0,a.useEffect)(()=>{z(v),$(x),q(Array.isArray(b)?b:[]),T(f),C(p)},[p,b,f,x,v]);let V=(0,a.useMemo)(()=>u(I,S),[I,S]),K=(0,a.useMemo)(()=>u(A,S),[A,S]);(0,a.useEffect)(()=>{queueMicrotask(()=>{O(6),R(6)})},[N,k,S]);let Y=(0,a.useMemo)(()=>V.slice(0,M),[V,M]),Q=(0,a.useMemo)(()=>K.slice(0,F),[K,F]),Z=M<V.length,X=F<K.length,J=[{key:"products",label:`${w("products")} (${E})`},{key:"marketInsight",label:`${w("market_insights")} (${P})`}];return(0,t.jsxs)("section",{className:"layout-container min-w-0 overflow-x-hidden px-3",children:[(0,t.jsx)("div",{className:"py-[40px]",children:(0,t.jsxs)("h1",{className:"search-result-heading text-2xl font-semibold text-[var(--brand-black)]",children:[w("search_results_for"),' "',(0,t.jsx)("span",{className:"search-result-heading__query text-secondary italic",title:e,children:e}),'"']})}),(0,t.jsx)("div",{className:"mt-[var(--search-result-tab-nav-margin-top-mobile)] mb-[var(--search-result-tab-nav-margin-bottom-mobile)] flex w-full flex-row gap-x-[var(--search-result-tab-nav-gap-x-mobile)] gap-y-[var(--search-result-tab-nav-gap-y-mobile)] overflow-x-auto border-b-2 border-[var(--search-result-tab-nav-border-color)] md:mb-[var(--search-result-tab-nav-margin-bottom-desktop)] md:gap-x-[var(--search-result-tab-nav-gap-x-desktop)] md:gap-y-[var(--search-result-tab-nav-gap-y-desktop)] md:overflow-visible",children:J.map(a=>{let r=N===a.key;return(0,t.jsx)("button",{type:"button",onClick:()=>{_(a.key),j(()=>{let t=new URLSearchParams;e&&t.set("result_search",e),k.length>0&&t.set("industry",k.join(",")),"marketInsight"===a.key&&t.set("tab","marketinsight");let r=t.toString();y.replace(r?`/search-result?${r}`:"/search-result",{scroll:!1})})},className:`shrink-0 whitespace-nowrap border-b [border-bottom-width:var(--search-result-tab-indicator-height)] px-[var(--search-result-tab-trigger-padding-x-mobile)] py-[var(--search-result-tab-trigger-padding-y-mobile)] text-left text-[length:var(--search-result-tab-trigger-font-size-mobile)] font-[var(--search-result-tab-trigger-font-we
407ight-mobile)] leading-[var(--search-result-tab-trigger-line-height-mobile)] transition-colors md:px-[var(--search-result-tab-trigger-padding-x-desktop)] md:py-[var(--search-result-tab-trigger-padding-y-desktop)] md:text-[length:var(--search-result-tab-trigger-font-size-desktop)] md:font-[var(--search-result-tab-trigger-font-weight-desktop)] md:leading-[var(--search-result-tab-trigger-line-height-desktop)] ${r?"border-b-[var(--search-result-tab-indicator-color)] text-[var(--search-result-tab-trigger-color-active)]":"border-b-transparent text-[var(--search-result-tab-trigger-color)] hover:border-b-[var(--search-result-tab-indicator-color)] hover:text-[var(--search-result-tab-trigger-color-active)]"}`,children:a.label},a.key)})}),(0,t.jsx)("div",{className:"mb-[60px]",children:(0,t.jsx)(l.FilterBar,{showIndustryFilter:!0,showRegionFilter:!1,showSortFilter:!0,showSearch:!1,industryPlaceholder:w("select_industry"),industryOptions:g,selectedIndustries:k,onIndustryChange:e=>{W(e)},sortOptions:U,selectedSort:S,onSortChange:e=>L("desc"===e?"desc":"asc")})}),"products"===N?(0,t.jsxs)("div",{className:"my-[40px]",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-4",children:B?(0,t.jsx)("p",{className:"text-[var(--brand-neutral-text)]",children:w("loading")}):V.length>0?Y.map((e,a)=>{let r;return(0,t.jsx)(i.InheritedProductTileOne,{title:e.title,imageSrc:d(e),href:(r=e.url.trim())?/^https?:\/\//i.test(r)||/^mailto:/i.test(r)||r.startsWith("/")?r:`/${r}`:"/search-result",originLabel:w("origin"),casLabel:w("cas_number"),hsLabel:w("hs_code"),inquireLabel:w("inquire_now"),originValue:void 0,casValue:e.cas_number??"",hsValue:e.hs_code??""},`${e.id}-${e.url}-${a}`)}):(0,t.jsx)("p",{className:"text-[var(--brand-neutral-text)]",children:w("no_product_results")})}),Z?(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsx)(n.Button,{variant:"primary",type:"button",onClick:()=>O(e=>e+6),children:w("load_more")})}):null]}):(0,t.jsxs)("div",{className:"my-[40px]",children:[(0,t.jsx)(r.BlogCardSectionComponent,{columns:1,blogs:Q,variant:"search-result"}),X?(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsx)(n.Button,{variant:"primary",type:"button",onClick:()=>R(e=>e+6),children:w("load_more")})}):null]})]})}e.s(["SearchResultContent",()=>h])},600828,e=>{"use strict";var t=e.i(843476),a=e.i(724960),r=e.i(271645),l=e.i(948148);e.i(527967);var i=e.i(830167),n=e.i(887300),s=e.i(71527);let o="lc-glossary-filter",c="lc-glossary-search";function d(e,t,a){let r=a.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return`glossary-term-${e}-${t}-${r}`}function u(e,t,a){let r=a.trim().toLowerCase();if(!r)return null;for(let a of t?e.filter(e=>e.alphabet_label===t):e)for(let e of a.items??[]){let t=e.description.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim().toLowerCase();if(e.title.toLowerCase().includes(r)||t.includes(r))return{letter:a.alphabet_label,sortOrder:e.sort_order,title:e.title}}return null}function m(e){document.getElementById(e)?.scrollIntoView({behavior:"smooth",block:"start"})}let h=`
408  w-full
409  rounded-[var(--lc-cpi-control-radius)]
410  border border-[color:var(--lc-cpi-control-border)]
411  bg-[var(--lc-cpi-control-bg)]
412  px-4
413  py-2.5
414  text-start
415  text-[var(--lc-cpi-control-text)]
416  text-[length:var(--lc-cpi-control-size-m)]
417  leading-[var(--lc-cpi-control-lh-m)]
418  md:text-[length:var(--lc-cpi-control-size-d)]
419  md:leading-[var(--lc-cpi-control-lh-d)]
420  focus:border-[color:var(--lc-glossary-control-border-focus)]
421  focus:outline-none
422`;function p({groups:e,heading:p,title:g,introHtml:v}){let x=(0,l.useTranslations)(),b=p?.trim()||x("glossary"),f=g?.trim()||"",w=(0,r.useMemo)(()=>[...e].sort((e,t)=>e.sort_order-t.sort_order).map(e=>e.alphabet_label?.trim()).filter(e=>!!e),[e]),[y,j]=(0,r.useState)(""),[N,_]=(0,r.useState)(""),[k,C]=(0,r.useState)(!1),S=(0,r.useRef)(!0),L=(0,r.useRef)(null),I=(0,r.useMemo)(()=>[...e].sort((e,t)=>e.sort_order-t.sort_order).map(e=>({alphabet_label:e.alphabet_label?.trim()||"",group_sort_order:e.sort_order,items:e.items??[]})).filter(e=>!!e.alphabet_label&&e.items.length>0),[e]),z=(0,r.useMemo)(()=>u(I,y,N),[I,y,N]),A=z?.title||f,q=(e,t)=>
422{let a=u(I,e,t);a?m(d(a.letter,a.sortOrder,a.title)):e?m(`alphabet-${e}`):document.getElementById("lc-glossary-list")?.scrollIntoView({behavior:"smooth",block:"start"})},E=e=>{j(e),window.requestAnimationFrame(()=>{q(e,N)})};(0,r.useEffect)(()=>{if(S.current){S.current=!1;return}let e=N.trim();if(!e)return;let t=window.setTimeout(()=>{q(y,e)},250);return()=>window.clearTimeout(t)},[N,y,I]),(0,r.useEffect)(()=>{if(!k)return;let e=e=>{L.current?.contains(e.target)||C(!1)},t=e=>{"Escape"===e.key&&C(!1)};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[k]);let $=I.length>0;return(0,t.jsx)("section",{className:"lc-glossary-section--premium",children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5 pt-[var(--lc-glossary-padding-top-mobile)] pb-[var(--lc-glossary-padding-bottom-mobile)] md:pt-[var(--lc-glossary-padding-top-desktop)] md:pb-[var(--lc-glossary-padding-bottom-desktop)]",children:[(0,t.jsx)("h2",{className:"lc-glossary-heading",children:b}),v?(0,t.jsx)("div",{className:"lc-glossary-intro mt-4 mb-8 text-[color:var(--lc-glossary-body-color)] text-[length:var(--lc-glossary-body-size-mobile)] leading-[var(--lc-glossary-body-lh-mobile)] md:text-[length:var(--lc-glossary-body-size-desktop)] md:leading-[var(--lc-glossary-body-lh-desktop)] font-[var(--lc-glossary-body-weight)]",dangerouslySetInnerHTML:{__html:v}}):(0,t.jsx)("div",{className:"mb-8"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-8",children:[(0,t.jsx)("aside",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky z-20 top-[var(--lc-glossary-controls-sticky-top-mobile)] md:top-[var(--lc-glossary-controls-sticky-top-desktop)]",children:(0,t.jsxs)("div",{className:"lc-glossary-sidebar flex flex-col gap-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:o,className:a.FORM_FIELD_LABEL_CLASS,children:x("filter_by_colon")}),(0,t.jsxs)("div",{className:"lc-glossary-filter relative",ref:L,children:[(0,t.jsx)("button",{type:"button",id:o,className:`${h} cursor-pointer pe-10`,"aria-haspopup":"listbox","aria-expanded":k,"aria-controls":`${o}-menu`,"aria-label":`${x("filter_by_colon")} ${y||x("all")}`,onClick:()=>C(e=>!e),children:y||x("all")}),(0,t.jsx)(i.ArrowIcon,{className:`pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 text-[var(--lc-cpi-select-icon-color)] ${k?"-rotate-90":"rotate-90"}`,"aria-hidden":"true"}),k?(0,t.jsxs)("ul",{id:`${o}-menu`,className:"lc-glossary-filter__menu",role:"listbox","aria-labelledby":o,children:[(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",role:"option","aria-selected":""===y,className:`lc-glossary-filter__option${""===y?" is-active":""}`,onClick:()=>{E(""),C(!1)},children:x("all")})}),w.map(e=>(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",role:"option","aria-selected":y===e,className:`lc-glossary-filter__option${y===e?" is-active":""}`,onClick:()=>{E(e),C(!1)},children:e})},e))]}):null]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:c,className:a.FORM_FIELD_LABEL_CLASS,children:x("search_colon")}),(0,t.jsxs)("div",{className:"relative z-20",children:[(0,t.jsx)("input",{id:c,value:N,onChange:e=>_(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),q(y,N))},placeholder:x("keyword"),className:`${h} pe-11`}),N.length>0?(0,t.jsx)("button",{type:"button",onClick:()=>_(""),className:"absolute end-4 top-1/2 -translate-y-1/2","aria-label":x("clear_keyword"),children:(0,t.jsx)(n.ClearIcon,{className:"h-5 w-5 text-[#B9C0C5]"})}):(0,t.jsx)("span",{className:"pointer-events-none absolute end-4 top-1/2 -translate-y-1/2","aria-hidden":!0,children:(0,t.jsx)(s.SearchIconNew,{className:"h-5 w-5 text-[var(--lc-cpi-search-icon-color)]"})})]})]})]})})}),(0,t.jsxs)("div",{className:"min-w-0 lg:col-span-9",children:[A?(0,t.jsx)("h3",{className:"lc-glossary-content-title",children:A}):null,$?(0,t.jsx)("div",{id:"lc-glossary-list",className:"lc-glossary-card-grid",children:I.map(e=>(0,t.jsxs)("article",{className:"lc-glossary-card",children:[(0,t.jsx)("h4",{id:`alphabet-${e.alphabet_label}`,className:"lc-glossary-card__letter",children:e.alphabet_label}),(0,t.jsx)("ul",{className:"lc-glossary-card__list",children:e.items.map(a=>(0,t.jsxs)("li",{id:d(e.alphabet_label,a.sort_order,a.title),className:"lc-glossary-card__term",children:[(0,t.jsx)("h5",{className:"lc-glossary-card__term-title",children:a.title}),(0,t.jsx)("div",{className:"lc-glossary-card__term-desc",dangerouslySetInnerHTML:{__html:a.description}})]},`${e.alphabet_label}-${e.group_sort_order}-${a.sort_order}-${a.title}`))})]},`${e.alphabet_label}-${e.group_sort_order}`))}):(0,t.jsx)("p",{className:"text-start text-[color:var(--lc-glossary-body-color)] text-[length:var(--lc-glossary-body-size-mobile)] md:text-[length:var(--lc-glossary-body-size-desktop)]",children:x("no_glossary_entries")})]})]})]})})}e.s(["GlossarySection",()=>p])},542193,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(244314),l=e.i(982281);e.i(233568);var i=e.i(981743);e.i(716787);
422var n=e.i(659544),s=e.i(948148),o=e.i(22584);function c(e){return e.trim().toLowerCase()}function d({title:e,subtitle:d,content:u=l.baseContent,showRegionFilter:m=!0,showSortFilter:h=!0,showSearch:p=!0,variant:g="default",tradeTabs:v,viewMoreLabel:x,filterByLabel:b,sortByLabel:f,searchPlaceholder:w,centerHeading:y=!1,filterIdPrefix:j,showTitleUnderline:N=!0}){let _=(0,s.useTranslations)(),k="newsletter"===g,C="product-specific-insights"===g,S="market-insights-load-more"===g,L="market-insights-view-more"===g,I=k||C||S||L,z=y||!I,A=S||L?"product-specific-insights":g,[q,E]=(0,a.useState)([]),[$,P]=(0,a.useState)(""),[T,M]=(0,a.useState)("asc"),[O,F]=(0,a.useState)(""),[R,B]=(0,a.useState)(6),D=(0,a.useMemo)(()=>[{label:_("ascending"),value:"asc"},{label:_("descending"),value:"desc"}],[_]),H=(0,a.useMemo)(()=>{let e=new Set;for(let t of u)for(let a of t.categories??[]){let t=c(a);t&&e.add(t)}return Array.from(e).map(e=>({value:e,label:e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}))},[u]),U=(0,a.useMemo)(()=>{let e=O.trim().toLowerCase(),t=u.filter(t=>{let a=(t.categories??[]).map(c),r=0===q.length||a.some(e=>q.includes(e)),l=`${t.title} ${t.description} ${(t.categories??[]).join(" ")}`.toLowerCase(),i=0===e.length||l.includes(e),n=!$||"all"===$||l.includes($.toLowerCase());return r&&i&&n});return[...t].sort((e,t)=>{let a=e.title.localeCompare(t.title,void 0,{sensitivity:"base"});return"asc"===T?a:-a})},[u,O,q,$,T]),G=U.length>6,W=(0,a.useMemo)(()=>G?U.slice(0,R):U,[U,G,R]),V=G&&R<U.length,K=(0,a.useMemo)(()=>[{key:"applications-and-buyers",label:_("applications_and_buyers"),href:o.routes.marketInsights.applicationsAndBuyers},{key:"supply-chain",label:_("supply_chain"),href:o.routes.marketInsights.supplyChain},{key:"regulatory-and-compliance",label:_("regulatory_and_compliance"),href:o.routes.marketInsights.regulatoryAndCompliance}],[_]),Y=v??[],Q=L&&Y.length>0,[Z,X]=(0,a.useState)(Q?Y[0].key:K[0].key);(0,a.useEffect)(()=>{let e=Q?Y.map(e=>e.key):K.map(e=>e.key);0!==e.length&&(e.includes(Z)||X(e[0]??K[0].key))},[Q,Y,K,Z]);let J=(0,a.useMemo)(()=>{let e=u.filter(e=>e.link.includes("/applications-and-buyers")).slice(0,3),t=u.filter(e=>e.link.includes("/supply-chain")).slice(0,3),a=u.filter(e=>e.link.includes("/regulatory-and-compliance")).slice(0,3),r=u.slice(0,3),l=u.slice(3,6),i=u.slice(6,9);return{"applications-and-buyers":e.length>0?e:r,"supply-chain":t.length>0?t:l.length>0?l:r,"regulatory-and-compliance":a.length>0?a:i.length>0?i:r}},[u]),ee=Y.find(e=>e.key===Z)??Y[0],et=K.find(e=>e.key===Z)??K[0],ea=Q?ee?.content??[]:J[Z]??[],er=Q?Y.map(e=>({key:e.key,label:e.label})):K.map(e=>({key:e.key,label:e.label})),el=Q?ee?.viewMoreHref?.trim()??"":et.href,ei=(Q?ee?.viewMoreLabel?.trim():"")||x?.trim()||_("view_more"),en=L&&!!el;return(0,a.useEffect)(()=>{queueMicrotask(()=>B(6))},[O,q,$,T]),(0,t.jsx)("section",{className:" bg-[var(--market-insight-content-bg-color)] relative pt-[var(--market-insight-content-padding-top-mobile)] md:pt-[var(--market-insight-content-padding-top-desktop)] pb-[var(--market-insight-content-padding-bottom-mobile)] md:pb-[var(--market-insight-content-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:`layout-container px-3 flex flex-col gap-4 justify-center ${z?"items-center":"items-start"}`,children:[(0,t.jsxs)("div",{className:`mb-[var(--market-insight-content-heading-margin-bottom)] ${z?"flex flex-col items-center":"flex items-stretch gap-3"}`,children:[!z&&(0,t.jsx)("span",{"aria-hidden":"true",className:"w-[var(--market-insight-content-heading-accent-width)] h-[var(--market-insight-content-heading-accent-height)] rounded-[var(--market-insight-content-heading-accent-radius)] bg-[var(--market-insight-content-heading-accent-color)]"}),(0,t.jsx)("h2",{className:`${z?"text-center":"text-start"} text-[length:var(--market-insight-content-heading-font-size-mobile)] md:text-[length:var(--market-insight-content-heading-font-size-desktop)] leading-[var(--market-insight-content-heading-line-height-mobile)] md:leading-[var(--market-insight-content-heading-line-height-desktop)] font-[var(--market-insight-content-heading-font-we
422ight-mobile)] md:font-[var(--market-insight-content-heading-font-weight-desktop)] text-[var(--market-insight-content-heading-color)]`,children:e}),z&&N&&(0,t.jsx)("span",{"aria-hidden":"true",className:"h-[var(--market-insight-content-heading-underline-height)] w-[var(--market-insight-content-heading-underline-width)] rounded-[var(--market-insight-content-heading-accent-radius)] bg-[var(--market-insight-content-heading-accent-color)]"})]}),d&&(0,t.jsx)("p",{className:`${z?"text-center md:px-[var(--market-insight-content-subtitle-padding-x-desktop)]":"text-start"} text-[length:var(--market-insight-content-subtitle-font-size-mobile)] md:text-[length:var(--market-insight-content-subtitle-font-size-desktop)] leading-[var(--market-insight-content-subtitle-line-height-mobile)] md:leading-[var(--market-insight-content-subtitle-line-height-desktop)] font-[var(--market-insight-content-subtitle-font-weight-mobile)] md:font-[var(--market-insight-content-subtitle-font-weight-desktop)] text-[var(--market-insight-content-subtitle-color)]`,children:d}),L?(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"mt-[var(--market-insight-content-tab-nav-margin-top-mobile)] mb-[var(--market-insight-content-tab-nav-margin-bottom-mobile)] flex w-full flex-col gap-x-[var(--market-insight-content-tab-nav-gap-x-mobile)] gap-y-[var(--market-insight-content-tab-nav-gap-y-mobile)] border-b-2 border-[var(--market-insight-content-tab-nav-border-color)] md:mb-[var(--market-insight-content-tab-nav-margin-bottom-desktop)] md:flex-row md:gap-x-[var(--market-insight-content-tab-nav-gap-x-desktop)] md:gap-y-[var(--market-insight-content-tab-nav-gap-y-desktop)]",children:er.map(e=>{let a=Z===e.key;return(0,t.jsx)("button",{type:"button",onClick:()=>X(e.key),className:`border-b [border-bottom-width:var(--market-insight-content-tab-indicator-height)] px-[var(--market-insight-content-tab-trigger-padding-x-mobile)] py-[var(--market-insight-content-tab-trigger-padding-y-mobile)] text-start text-[length:var(--market-insight-content-tab-trigger-font-size-mobile)] font-[var(--market-insight-content-tab-trigger-font-we
422ight-mobile)] leading-[var(--market-insight-content-tab-trigger-line-height-mobile)] transition-colors md:px-[var(--market-insight-content-tab-trigger-padding-x-desktop)] md:py-[var(--market-insight-content-tab-trigger-padding-y-desktop)] md:text-[length:var(--market-insight-content-tab-trigger-font-size-desktop)] md:font-[var(--market-insight-content-tab-trigger-font-weight-desktop)] md:leading-[var(--market-insight-content-tab-trigger-line-height-desktop)] ${a?"border-b-[var(--market-insight-content-tab-indicator-color)] text-[var(--market-insight-content-tab-trigger-color-active)]":"border-b-transparent text-[var(--market-insight-content-tab-trigger-color)] hover:border-b-[var(--market-insight-content-tab-indicator-color)] hover:text-[var(--market-insight-content-tab-trigger-color-active)]"}`,children:e.label},e.key)})}),(0,t.jsx)(r.ContentCardSectionComponent,{columns:1,content:ea,variant:A}),en?(0,t.jsx)("div",{className:"mt-[var(--market-insight-content-load-more-margin-top)] w-full text-center",children:(0,t.jsx)(n.Button,{variant:"primary",href:el,className:"inline-flex items-center justify-center",children:ei})}):null]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.FilterBar,{layout:"stacked",showIndustryFilter:!1,showRegionFilter:m,showSortFilter:h,showSearch:p,filterByLabel:b,sortByLabel:f,searchPlaceholder:w,badges:[],industryOptions:H,selectedIndustries:q,onIndustryChange:E,selectedRegion:$,onRegionChange:P,sortOptions:D,selectedSort:T,onSortChange:M,searchValue:O,onSearchChange:F,onSearchSubmit:F,onSearchClear:()=>F(""),idPrefix:j??"mic-explore-filters"}),(0,t.jsx)("div",{className:I?"w-full":"",children:(0,t.jsx)(r.ContentCardSectionComponent,{columns:1,content:W,variant:A})})]}),V&&(0,t.jsx)("div",{className:"mt-[var(--market-insight-content-load-more-margin-top)] w-full text-center",children:(0,t.jsx)(n.Button,{variant:"primary",type:"button",onClick:()=>{B(e=>Math.min(e+6,U.length))},className:"inline-flex items-center justify-center",children:_("load_more")})})]})})}e.s(["MarketInsightContentSection",()=>d])},428365,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645);e.i(527967);var l=e.i(419037),i=e.i(24014),n=e.i(948148);e.i(79951);var s=e.i(76209),o=e.i(420268);function c({isOpen:e,onClose:c,config:d,siteDomain:u="chemtradeasia.com"}){let{explore:m,languages:h,activeLanguageCode:p}=d,[g,v]=(0,r.useState)(!0),[x,b]=(0,r.useState)(!0),[f,w]=(0,r.useState)(null),[y,j]=(0,r.useState)(null),[N,_]=(0,r.useState)(null),k=(0,n.useTranslations)(),C=(0,s.usePathname)(),S=m.find(e=>e.label===f),L=S?.children??[];return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-40 bg-black/70 lg:block","aria-hidden":!0,onClick:c}),(0,t.jsxs)("aside",{className:"fixed end-0 top-0 z-50 flex h-full w-full max-w-[288px] flex-col bg-[var(--header-panel-bg)] shadow-xl",role:"dialog","aria-label":"Menu",children:[(0,t.jsx)("div",{className:"flex justify-end p-3 bg-[var(--header-panel-section-bg)]",children:(0,t.jsx)("button",{type:"button",onClick:c,"aria-label":k("close_menu"),className:"flex h-5 w-5 items-center justify-center",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:13,height:13})})}),(0,t.jsxs)("section",{children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between px-3 py-3 bg-[var(--header-panel-section-bg)]",onClick:()=>v(!g),"aria-expanded":g,children:[(0,t.jsxs)("span",{className:"flex items-center gap-[var(--header-panel-header-gap)]",children:[(0,t.jsx)(l.GlobeIcon,{className:"w-6 h-6 text-[var(--header-panel-text-color)]"}),(0,t.jsx)("span",{className:"body-small text-[var(--header-panel-text-color)]",children:k("select_language")})]}),(0,t.jsx)("span",{className:`transition-transform p-[var(--header-panel-toggle-padding)] ${g?"rotate-180":""}`,children:(0,t.jsx)(a.default,{src:"/dropdown-icon.svg",alt:"",width:12,height:7,className:"invert"})})]}),g&&(0,t.jsxs)("ul",{className:"max-h-[200px] overflow-y-auto px-5 pb-4",children:[y?(0,t.jsx)("li",{className:"body-caption text-[var(--brand-danger,#b91c1c)] py-2",role:"alert",children:y}):null,0===h.length?(0,t.jsx)("li",{className:"body-caption text-[var(--header-panel-muted-color)] py-2",children:k("no_languages_available")}):h.map(e=>{let r=e.code.toLowerCase()===p.toLowerCase(),l=N===e.code;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",disabled:l||null!==N,"aria-current":r?"true":void 0,"aria-busy":l,className:`body-caption flex w-full items-center gap-[var(--header-panel-lang-gap)] py-2 disabled:opacity-50 ${r?"font-semibold text-[var(--header-panel-text-color)]":"text-[var(--header-panel-text-color)] hover:text-[var(--header-panel-muted-color)]"}`,onClick:async()=>
422{if(j(null),e.code.toLowerCase()===p.toLowerCase())return void c();_(e.code);let t=(0,o.normalizeUiLocale)(e.code);try{await (0,i.setPreferredLocaleAfterVerify)(e.code,{currentCode:p,onSame:c,onError:e=>j(k(e.messageKey)),onApplied:()=>{c(),(0,i.resolveLocalizedPathForLanguage)(C,t,p).then(e=>{let t=window.location.search,a=window.location.hash;window.location.assign(`${e}${t}${a}`)})}})}finally{_(null)}},children:[(0,t.jsx)(a.default,{src:e.flagSrc??"/flag.svg",alt:"",width:28,height:20,className:"h-6 w-8 shrink-0 rounded object-cover"}),e.name]})},e.code)})]})]}),(0,t.jsxs)("section",{children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between px-3 py-3 bg-[var(--header-panel-section-bg)]",onClick:()=>b(!x),"aria-expanded":x,children:[(0,t.jsxs)("span",{className:"flex items-center gap-[var(--header-panel-header-gap)]",children:[(0,t.jsx)(l.GlobeIcon,{className:"w-6 h-6 text-[var(--header-panel-text-color)]"}),(0,t.jsx)("span",{className:"body-small text-[var(--header-panel-text-color)]",children:k("select_a_website_to_explore")})]}),(0,t.jsx)("span",{className:`transition-transform p-[var(--header-panel-toggle-padding)] ${x?"rotate-180":""}`,children:(0,t.jsx)(a.default,{src:"/dropdown-icon.svg",alt:"",width:12,height:7,className:"invert"})})]}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("ul",{className:"px-5 py-6",children:m.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>w(e.label),style:{fontSize:"var(--header-panel-item-size)"},className:"body-caption text-[var(--header-panel-text-color)] flex w-full items-center justify-between py-4 hover:text-[var(--header-panel-muted-color)]",children:[e.label,(0,t.jsx)(a.default,{src:"/dropdown-icon.svg",alt:"",width:12,height:7,className:"invert rotate-[-90deg] rtl:rotate-90"})]})},e.label))}),(0,t.jsx)("div",{className:"h-px bg-[var(--header-panel-muted-color)] mx-3"})]})]}),(0,t.jsx)("div",{className:"mt-auto p-3 bg-[var(--header-panel-section-bg)]",children:(0,t.jsx)("p",{className:"body-caption text-[var(--header-panel-muted-color)]",children:(0,t.jsx)("span",{className:"font-[var(--header-panel-domain-weight)]",children:u})})})]}),f&&(0,t.jsxs)("aside",{className:"fixed end-0 top-0 z-[60] flex h-full w-full max-w-[288px] flex-col bg-[var(--header-panel-bg)] shadow-xl",role:"dialog","aria-label":f,children:[(0,t.jsxs)("div",{className:"flex items-center gap-[var(--header-panel-header-gap)] p-3 bg-[var(--header-panel-section-bg)]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>w(null),"aria-label":k("back"),className:"flex h-8 w-8 shrink-0 items-center justify-center",children:(0,t.jsx)(a.default,{src:"/dropdown-icon.svg",alt:"",width:12,height:7,className:"invert rotate-90 rtl:-rotate-90"})}),(0,t.jsx)("span",{className:"body-small text-[var(--header-panel-text-color)]",children:f})]}),(0,t.jsx)("ul",{className:"flex-1 overflow-y-auto px-5 py-4",children:L.map(e=>(0,t.jsx)("li",{className:"py-3",children:(0,t.jsxs)("a",{href:e.href??"#",className:"body-caption text-[var(--header-panel-text-color)] flex items-center gap-[var(--header-panel-item-gap)] hover:text-[var(--header-panel-muted-color)]",children:[e.flagSrc?(0,t.jsx)(a.default,{src:e.flagSrc,alt:"",width:28,height:20,className:"h-6 w-8 shrink-0 rounded object-cover"}):e.flagEmoji?(0,t.jsx)("span",{className:"flex h-6 w-8 shrink-0 items-center justify-center rounded bg-[var(--header-modal-flag-bg)] text-sm",children:e.flagEmoji}):null,e.label]})},e.label))}),(0,t.jsx)("div",{className:"mt-auto p-3 bg-[var(--header-panel-section-bg)]",children:(0,t.jsx)("p",{className:"body-caption text-[var(--header-panel-muted-color)]",children:(0,t.jsx)("span",{className:"font-[var(--header-panel-domain-weight)]",children:u})})})]})]}):null}e.s(["DesktopHamburgerDrawer",()=>c])},877012,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(924455),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(271645);e.i(527967);var s=e.i(830167),o=e.i(948148),c=e.i(186301),d=e.i(980401);function u(e){if(!e)return"";try{let t=new Date(e);if(isNaN(t.getTime()))return e;return t.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"})}catch{return e}}let m="inline-flex h-[var(--industry-updates-one-events-nav-btn-size)] w-[var(--industry-updates-one-events-nav-btn-size)] shrink-0 cursor-pointer items-center justify-center rounded-full border-0 bg-[var(--industry-updates-one-events-nav-btn-bg)] p-0 shadow-[var(--industry-updates-one-events-nav-btn-shadow)] text-[var(--industry-updates-one-events-nav-btn-icon-color)] transition-opacity disabled:pointer-events-none disabled:opacity-35";function h({heading:e,events:h,blog_posts:p,blog_heading:g,events_heading:v,blog_view_more_url:x,blog_view_more_label:b,events_view_more_url:f,events_view_more_label:w}){let y=(0,o.useTranslations)(),j=h??[],N=p??[],_=(0,n.useRef)(null),[k,C]=(0,n.use
422State)(0),S=Math.max(0,j.length-1),L=(0,n.useCallback)(()=>{_.current?.slidePrev()},[]),I=(0,n.useCallback)(()=>{_.current?.slideNext()},[]),z=j.length>0,A=N.length>0;return z||A||e?(0,t.jsx)("section",{className:" bg-[var(--industry-updates-one-bg)] pt-[var(--industry-updates-one-padding-top-mobile)] pb-[var(--industry-updates-one-padding-bottom-mobile)] md:pt-[var(--industry-updates-one-padding-top-desktop)] md:pb-[var(--industry-updates-one-padding-bottom-desktop)] ",children:(0,t.jsxs)("div",{className:"layout-container md:px-5 px-3",children:[e?(0,t.jsx)("div",{className:"text-center mb-12 md:mb-16",children:(0,t.jsx)("h2",{className:" text-[length:var(--industry-updates-one-heading-size-mobile)] leading-[var(--industry-updates-one-heading-line-mobile)] font-[var(--industry-updates-one-heading-weight-mobile)] text-[var(--industry-updates-one-heading-color)] md:text-[length:var(--industry-updates-one-heading-size-desktop)] md:leading-[var(--industry-updates-one-heading-line-desktop)] md:font-[var(--industry-updates-one-heading-weight-desktop)] ",children:e})}):null,z?(0,t.jsxs)("div",{className:"mb-16 md:mb-20",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 mb-8",children:[v?(0,t.jsx)("h3",{className:" text-2xl md:text-3xl font-bold text-[var(--btn-primary-bg)] uppercase tracking-wide ",children:v}):null,f?(0,t.jsx)(i.Link,{href:f,className:"text-base md:text-lg font-semibold text-[var(--btn-primary-bg)] hover:text-[var(--btn-primary-bg)]/70 underline decoration-2 underline-offset-2 whitespace-nowrap flex-shrink-0 transition-colors",children:w||y("view_more")}):null]}),(0,t.jsxs)("div",{className:" relative w-full [&_.swiper]:overflow-visible [&_.swiper-pagination]:!bottom-0 [&_.swiper-pagination]:!start-1/2 [&_.swiper-pagination]:!end-auto [&_.swiper-pagination]:!-translate-x-1/2 rtl:[&_.swiper-pagination]:!translate-x-1/2 [&_.swiper-pagination]:!flex [&_.swiper-pagination]:!items-center [&_.swiper-pagination]:!justify-center [&_.swiper-pagination]:!gap-2 [&_.swiper-pagination]:!mt-6 [&_.swiper-pagination-bullet]:!m-0 [&_.swiper-pagination-bullet]:h-2.5 [&_.swiper-pagination-bullet]:w-2.5 [&_.swiper-pagination-bullet]:rounded-full [&_.swiper-pagination-bullet]:!bg-gray-400 [&_.swiper-pagination-bullet-active]:!bg-[var(--btn-primary-bg)] ",children:[(0,t.jsx)(d.Swiper,{modules:[c.Pagination],spaceBetween:24,slidesPerView:1,speed:400,allowTouchMove:!0,loop:!1,pagination:{clickable:!0},onSwiper:e=>{_.current=e},onSlideChange:e=>{C(e.activeIndex)},className:"w-full",children:j.map((e,r)=>{let n=e.title?.trim()??"",s=(0,a.normalizeCmsImage)(e.image_url),o=u(e.event_date),c=e.event_location?.trim()??"",m=e.event_url?.trim()??null,h=m&&"javascript:void(0)"!==m?m:null,p=(0,t.jsxs)("div",{className:" relative w-full h-72 md:h-[28rem] rounded-xl overflow-hidden shadow-2xl hover:shadow-3xl transition-all duration-300 hover:scale-[1.02] group ",children:[s?(0,t.jsx)(l.default,{src:s,alt:n,fill:!0,sizes:"(max-width: 768px) 100vw, 100vw",className:"absolute inset-0 h-full w-full object-cover group-hover:scale-110 transition-transform duration-500"}):null,(0,t.jsx)("div",{className:" absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent "}),(0,t.jsxs)("div",{className:" absolute inset-0 flex flex-col justify-end p-6 md:p-10 text-white ",children:[n?(0,t.jsx)("h3",{className:" text-xl md:text-3xl font-bold mb-6 line-clamp-2 leading-tight ",children:n}):null,(0,t.jsxs)("div",{className:"space-y-4",children:[o?(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:" w-1 h-1 rounded-full bg-[var(--btn-primary-bg)] "}),(0,t.jsx)("span",{className:"text-sm md:text-base font-medium",children:o})]}):null,c?(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:" w-1 h-1 rounded-full mt-1.5 bg-[var(--btn-primary-bg)] "}),(0,t.jsx)("span",{className:"text-sm md:text-base font-medium",children:c})]}):null]})]}),(0,t.jsx)("div",{className:" absolute top-4 right-4 z-20 px-3 py-1 rounded-full bg-[var(--btn-primary-bg)] text-white text-xs font-semibold uppercase tracking-wider ",children:"Event"})]});return(0,t.jsx)(d.SwiperSlide,{children:h?(0,t.jsx)(i.Link,{href:h,target:"_blank",rel:"noopener noreferrer",children:p}):p},`event-${r}`)})}),(0,t.jsxs)("div",{className:" absolute top-1/2 -translate-y-1/2 left-0 right-0 z-20 flex justify-between px-4 pointer-events-none ",children:[(0,t.jsx)("button",{type:"button","aria-label":y("previous_slide"),disabled:k<=0,onClick:L,className:`pointer-events-auto ${m}`,children:(0,t.jsx)(s.ArrowIcon,{className:"h-5 w-6 rotate-180 rtl:rotate-0"})}),(0,t.jsx)("button",{type:"button","aria-label":y("next_slide"),disabled:k>=S,onClick:I,className:`pointer-events-auto ${m}`,children:(0,t.jsx)(s.ArrowIcon,{className:"h-5 w-6 rtl:rotate-180"})})]})]})]}):null,A?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 mb-10",children:[g?(0,t.jsx)("h3",{className:" text-2xl md:text-3xl font-bold text-[var(--btn-primary-bg)] uppercase tracking-wide ",children:g}):null,x?(0,t.jsx)(i.Link,{href:x,className:"text-base md:text-lg font-semibold text-[var(--btn-primary-bg)] hover:text-[var(--btn-primary-bg)]/70 underline decoration-2 underline-offset-2 whitespace-nowrap flex-shrink-0 transition-colors",children:b||y("view_more")}):null]}),(0,t.jsx)("div",{className:" grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 md:gap-10 ",children:N.map((e,n)=>{let s=e.title?.trim()??"",o=(0,a.normalizeCmsImage)(e.thumbnail_image),c=u(e.published_at),d=e.post_url?.trim()??null,m=d?(0,r.normalizeMarketInsightPostHref)(d):null,h=(0,t.jsxs)("div",{className:" flex flex-col h-full rounded-xl overflow-hidden bg-white shadow-lg hover:shadow-2xl transition-all duration-300 hover:-translate-y-2 group border border-gray-100 ",children:[o?(0,t.jsx)("div",{className:" relative w-full h-52 bg-gray-200 overflow-hidden ",children:(0,t.jsx)(l.default,{src:o,alt:s||y("blog_thumbnail"),fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"absolute inset-0 h-full w-full object-cover group-hover:scale-110 transition-transform duration-500"})}):(0,t.jsx)("div",{className:"w-full h-52 bg-gradient-to-br from-orange-100 to-orange-50"}),(0,t.jsxs)("div",{className:"flex flex-col flex-1 p-6 md:p-7",children:[s?(0,t.jsx)("h4",{className:" text-base md:text-lg font-bold mb-4 line-clamp-2 text-gray-900 group-hover:text-[var(--btn-primary-bg)] transition-colors duration-300 ",children:s}):null,c?(0,t.jsxs)("div",{className:" flex items-center gap-2 mt-auto pt-4 border-t border-gray-200 text-xs md:text-sm text-gray-600 ",children:[(0,t.jsx)("div",{className:" w-1.5 h-1.5 rounded-full bg-[var(--btn-primary-bg)] "}),c]}):null]})]});return(0,t.jsx)("div",{children:m?(0,t.jsx)(i.Link,{href:m,className:"block h-full",children:h}):h},`post-${n}`)})})]}):null]})}):null}e.s(["IndustryUpdatesSectionOne",()=>h])},155021,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);e.i(527967);var l=e.i(830167),i=e.i(71527),n=e.i(724960),s=e.i(271645),o=e.i(948148);let c="lc-cpi-search",d=n.FORM_FIELD_LABEL_CLASS;function u({id:e,label:a,value:r,onChange:i,options:n,placeholder:s}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:e,className:d,children:a}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:e,className:" w-full appearance-none rounded-[var(--lc-cpi-control-radius)] border border-[color:var(--lc-cpi-control-border)] bg-[var(--lc-cpi-control-bg)] px-4 pe-10 py-2.5 text-start text-[var(--lc-cpi-control-text)] text-[length:var(--lc-cpi-control-size-m)
422] leading-[var(--lc-cpi-control-lh-m)] focus:border-[color:var(--lc-cpi-control-border-focus)] focus:outline-none md:text-[length:var(--lc-cpi-control-size-d)] md:leading-[var(--lc-cpi-control-lh-d)] ",value:r,defaultValue:void 0===r?"":void 0,onChange:i?e=>i(e.target.value):void 0,children:[s?(0,t.jsx)("option",{value:"",children:s}):null,n.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,t.jsx)(l.ArrowIcon,{className:"pointer-events-none absolute end-4 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--lc-cpi-select-icon-color)]","aria-hidden":"true"})]})]})}function m({title:e,description:l,items:n,categories:m,sortOptions:h,resultLabel:p,cta:g,enableLoadMore:v,loadMorePageSize:x=12,loadMoreLabel:b,initialSortValue:f,filterLabel:w,sortLabel:y,searchLabel:j,searchPlaceholder:N,casLabel:_}){let k=(0,o.useTranslations)(),C=h??[{value:"az",label:k("ascending_a_z")},{value:"za",label:k("descending_z_a")}],S="za"===f||"desc"===f?"za":C.some(e=>e.value===f)?f:"az",[L,I]=(0,s.useState)(S),[z,A]=(0,s.useState)(""),[q,E]=(0,s.useState)(""),$=w?.trim()?w.trim().endsWith(":")?w.trim():`${w.trim()} :`:k("filter_by_colon"),P=y?.trim()?y.trim().endsWith(":")?y.trim():`${y.trim()} :`:k("sort_by_colon"),T=j?.trim()?j.trim().endsWith(":")?j.trim():`${j.trim()} :`:k("search_colon"),M=N?.trim()||k("keyword"),O=_?.trim()||k("cas_number"),F=b?.trim()||k("load_more"),R=Math.max(1,Math.floor(x)),[B,D]=(0,s.useState)(R),H=(0,s.useMemo)(()=>{let e=q.trim().toLowerCase(),t=[...n.filter(t=>{if(0!==z.length&&t.categoryValue!==z)return!1;if(0===e.length)return!0;let a=t.title.toLowerCase(),r=(t.casNumber??"").toLowerCase();return a.includes(e)||r.includes(e)})],a="za"===L?-1:1;return t.sort((e,t)=>a*e.title.localeCompare(t.title)),t},[n,L,q,z]),U=(0,s.useMemo)(()=>!v||H.length<=3?H:H.slice(0,B),[v,H,B]),G=!!(v&&H.length>3&&B<H.length),W=!!(g&&H.length>0&&!G),V=q.trim().length>0||z.length>0,K=0===H.length;return(0,t.jsx)("section",{className:" lc-cpi-section--premium relative z-20 bg-[var(--lc-cpi-premium-section-bg)] ",children:(0,t.jsxs)("div",{className:"layout-container relative z-20 px-3 md:px-5",children:[(0,t.jsx)("h3",{className:" mb-4 text-center text-[var(--lc-cpi-title-color)] text-[length:var(--lc-cpi-title-size-m)] leading-[var(--lc-cpi-title-lh-m)] font-[var(--lc-cpi-title-weight)] md:text-[length:var(--lc-cpi-title-size-d)] md:leading-[var(--lc-cpi-title-lh-d)] ",children:e}),(0,t.jsx)("p",{className:" mx-auto max-w-[var(--lc-cpi-desc-max-w)] text-center text-[var(--lc-cpi-desc-color)] text-[length:var(--lc-cpi-desc-size-m)] leading-[var(--lc-cpi-desc-lh-m)] font-[var(--lc-cpi-desc-weight)] md:text-[length:var(--lc-cpi-desc-size-d)] md:leading-[var(--lc-cpi-desc-lh-d)] ",children:l}),(0,t.jsxs)("div",{className:"mt-8 grid grid-cols-1 gap-6 lg:grid-cols-12 lg:gap-8",children:[(0,t.jsx)("aside",{className:"lg:col-span-3",children:(0,t.jsxs)("div",{className:"lc-cpi-premium-sidebar flex flex-col gap-5",children:[(0,t.jsx)(u,{id:"lc-cpi-filter-category",label:$,value:z,onChange:e=>{D(R),A(e)},options:m??[],placeholder:k("select_category")}),(0,t.jsx)(u,{id:"lc-cpi-sort",label:P,value:L,onChange:e=>{D(R),I(e)},options:C}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:c,className:d,children:T}),(0,t.jsxs)("div",{className:"relative z-20",children:[(0,t.jsx)("input",{id:c,type:"text",placeholder:M,value:q,onChange:e=>{D(R),E(e.target.value)},className:" w-full rounded-[var(--lc-cpi-control-radius)] border border-[color:var(--lc-cpi-control-border)] bg-[var(--lc-cpi-control-bg)] px-4 pe-11 py-2.5 text-start text-[var(--lc-cpi-control-text)] text-[length:var(--lc-cpi-control-size-m)] leading-[var(--lc-cpi-control-lh-m)] focus:border-[color:var(--lc-cpi-control-border-focus)] focus:outline-none md:text-[length:var(--lc-cpi-control-size-d)] md:leading-[var(--lc-cpi-control-lh-d)] "}),q.trim().length>0?(0,t.jsx)("button",{type:"button",className:"absolute end-4 top-1/2 -translate-y-1/2","aria-label":k("clear_keyword"),onClick:()=>{D(R),E("")},children:"×"}):(0,t.jsx)("span",{className:"pointer-events-none absolute end-4 top-1/2 -translate-y-1/2","aria-hidden":!0,
422children:(0,t.jsx)(i.SearchIconNew,{className:"h-5 w-5 text-[var(--lc-cpi-search-icon-color)]"})})]})]})]})}),(0,t.jsx)("div",{className:"min-w-0 lg:col-span-9",children:K?(0,t.jsxs)("div",{className:"lc-cpi-premium-empty",role:"status","aria-live":"polite",children:[(0,t.jsx)("p",{children:k(V?"no_search_results":"no_products_found")}),V?(0,t.jsx)("button",{type:"button",className:"btn btn-primary",onClick:()=>{D(R),E(""),A("")},children:k(z?"reset_filters":"clear_search")}):null]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:" grid grid-cols-1 gap-[var(--lc-cpi-premium-gap)] sm:grid-cols-2 xl:grid-cols-3 ",children:U.map(e=>(0,t.jsx)(r.Link,{href:e.href,className:"no-underline",children:(0,t.jsxs)("div",{className:" flex h-full flex-col rounded-[var(--lc-cpi-premium-card-radius)] border border-[color:var(--lc-cpi-card-border)] bg-[var(--lc-cpi-card-bg)] p-[var(--lc-cpi-premium-card-padding)] transition-all duration-300 ease-out hover:translate-y-[var(--lc-cpi-card-hover-translate-y)] hover:shadow-[var(--lc-cpi-card-hover-shadow)] ",children:[(0,t.jsx)("div",{className:" mb-4 flex h-[var(--lc-cpi-premium-image-height)] items-center justify-center ",children:e.imageSrc?.trim()?(0,t.jsx)(a.default,{src:e.imageSrc,alt:e.imageAlt,width:160,height:120,sizes:"160px",quality:70,loading:"lazy",className:"max-h-full w-auto max-w-full object-contain"}):null}),(0,t.jsx)("h4",{className:" m-0 text-start text-[var(--lc-cpi-card-title-color)] font-[var(--lc-cpi-card-title-weight)] text-[length:var(--lc-cpi-card-title-size-m)] leading-[var(--lc-cpi-card-title-lh-m)] md:text-[length:var(--lc-cpi-card-title-size-d)] md:leading-[var(--lc-cpi-card-title-lh-d)] ",children:e.title}),e.casNumber?(0,t.jsxs)("p",{className:" mt-1 text-start text-[var(--lc-cpi-card-meta-color)] text-[length:var(--lc-cpi-card-meta-size-m)] leading-[var(--lc-cpi-card-meta-lh-m)] md:text-[length:var(--lc-cpi-card-meta-size-d)] md:leading-[var(--lc-cpi-card-meta-lh-d)] ",children:[O,":"," ",(0,t.jsx)("span",{className:"font-[var(--lc-cpi-card-meta-strong-weight)]",children:e.casNumber})]}):null]})},e.href))}),G?(0,t.jsx)("button",{type:"button",className:"btn btn-primary mx-auto mt-8 block w-max",onClick:()=>D(e=>Math.min(H.length,e+R)),children:F}):W&&g?(0,t.jsx)(r.Link,{href:g.href,className:"btn btn-primary mx-auto mt-8 block w-max",children:g.label}):null]})})]})]})})}e.s(["ComprehensiveProductInsightsSection",()=>m])},774887,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(948148),l=e.i(271645),i=e.i(503259),n=e.i(622989),s=e.i(399946);function o({swiper:e,extendParams:t,on:a}){let r,l;t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let o=null,c=new Date().getTime();function d(e){let t=o;0!==t.length&&(0,s.s)(t,e)}function u(e){(e=(0,s.m)(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function m(e){(e=(0,s.m)(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function h(e,t){(e=(0,s.m)(e)).forEach(e=>{e.setAttribute("role",t)})}function p(e,t){(e=(0,s.m)(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function g(e,t){(e=(0,s.m)(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function v(e){(e=(0,s.m)(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function x(e){(e=(0,s.m)(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function b(t){if(13!==t.keyCode&&32!==t.keyCode)return;let a=e.params.a11y,r=t.target;if(!(e.pagination&&e.pagination.el&&(r===e.pagination.el||e.pagination.el.contains(t.target)))||t.target.matches((0,n.c)(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){let t=(0,s.m)(e.navigation.prevEl);(0,s.m)(e.navigation.nextEl).includes(r)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?d(a.lastSlideMessage):d(a.nextSlideMessage)),t.includes(r)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?d(a.firstSlideMessage):d(a.prevSlideMessage))}e.pagination&&r.matches((0,n.c)(e.params.pagination.bulletClass))&&r.click()}}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function w(){return f()&&e.params.pagination.clickable}let y=(e,t,a)=>{var r;u(e),"BUTTON"!==e.tagName&&(h(e,"button"),e.addEventListener("keydown",b)),g(e,a),r=e,(r=(0,s.m)(r)).forEac
422h(e=>{e.setAttribute("aria-controls",t)})},j=t=>{l&&l!==t.target&&!l.contains(t.target)&&(r=!0),e.a11y.clicked=!0},N=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},_=e=>{c=new Date().getTime()},k=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-c<100)return;let a=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!a||!e.slides.includes(a))return;l=a;let i=e.virtual&&e.params.virtual.enabled,n=(i?parseInt(a.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(a))===e.activeIndex,s=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(a);n||s||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(a.getAttribute("data-swiper-slide-index"))),0):i?e.slideTo(e.getSlideIndexWhenGrid(parseInt(a.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(a)),0),r=!1)}))},C=()=>{let t=e.params.a11y;t.itemRoleDescriptionMessage&&p(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&h(e.slides,t.slideRole);let a=e.slides.length;t.slideLabelMessage&&e.slides.forEach((r,l)=>{let i=e.params.loop?parseInt(r.getAttribute("data-swiper-slide-index"),10):l;g(r,t.slideLabelMessage.replace(/\{\{index\}\}/,i+1).replace(/\{\{slidesLength\}\}/,a))})};a("beforeInit",()=>{(o=(0,s.c)("span",e.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),a("afterInit",()=>{e.params.a11y.enabled&&(()=>{var t,a;let r=e.params.a11y;e.el.append(o);let l=e.el;r.containerRoleDescriptionMessage&&p(l,r.containerRoleDescriptionMessage),r.containerMessage&&g(l,r.containerMessage),r.containerRole&&h(l,r.containerRole);let n=e.wrapperEl,c=r.id||n.getAttribute("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}(16)}`;if(t=n,(t=(0,s.m)(t)).forEach(e=>{e.setAttribute("id",c)}),r.wrapperLiveRegion){let t=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";a=n,(a=(0,s.m)(a)).forEach(e=>{e.setAttribute("aria-live",t)})}C();let{nextEl:d,prevEl:u}=e.navigation?e.navigation:{};d=(0,s.m)(d),u=(0,s.m)(u),d&&d.forEach(e=>y(e,c,r.nextSlideMessage)),u&&u.forEach(e=>y(e,c,r.prevSlideMessage)),w()&&(0,s.m)(e.pagination.el).forEach(e=>{e.addEventListener("keydown",b)}),(0,i.g)().addEventListener("visibilitychange",_),e.el.addEventListener("focus",k,!0),e.el.addEventListener("pointerdown",j,!0),e.el.addEventListener("pointerup",N,!0)})()}),a("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&C()}),a("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&function(){if(e.params.loop||e.params.rewind||!e.navigation)return;let{nextEl:t,prevEl:a}=e.navigation;a&&(e.isBeginning?(v(a),m(a)):(x(a),u(a))),t&&(e.isEnd?(v(t),m(t)):(x(t),u(t)))}()}),a("paginationUpdate",()=>{if(e.params.a11y.enabled){let t;t=e.params.a11y,f()&&e.pagination.bullets.forEach(a=>{e.params.pagination.clickable&&(u(a),e.params.pagination.renderBullet||(h(a,"button"),g(a,t.paginationBulletMessage.replace(/\{\{index\}\}/,(0,s.j)(a)+1)))),a.matches((0,n.c)(e.params.pagination.bulletActiveClass))?a.setAttribute("aria-current","true"):a.removeAttribute("aria-current")})}}),a("destroy",()=>{e.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:t,prevEl:a}=e.navigation?e.navigation:{};t=(0,s.m)(t),a=(0,s.m)(a),t&&t.forEach(e=>e.removeEventListener("keydown",b)),a&&a.forEach(e=>e.removeEventListener("keydown",b)),w()&&(0,s.m)(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",b)}),(0,i.g)().removeEventListener("visibilitychange",_),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",k,!0),e.el.removeEventListener("pointerdown",j,!0),e.el.removeEventListener("pointerup",N,!0))}()})}function c({swiper:e,extendParams:t,on:a,emit:r}){let l=(0,i.g)(),n=(0,i.a)();function o(t){if(!e.enabled)return;let{rtlTranslate:a}=e,i=t;i.originalEvent&&(i=i.originalEvent);
422let o=i.keyCode||i.charCode,c=e.params.keyboard.pageUpDown,d=c&&33===o,u=c&&34===o,m=37===o,h=39===o,p=38===o,g=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&g||u)||!e.allowSlidePrev&&(e.isHorizontal()&&m||e.isVertical()&&p||d))return!1;if(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||l.activeElement&&(l.activeElement.isContentEditable||l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(d||u||m||h||p||g)){let t=!1;if((0,s.d)(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===(0,s.d)(e.el,`.${e.params.slideActiveClass}`).length)return;let r=e.el,l=r.clientWidth,i=r.clientHeight,o=n.innerWidth,c=n.innerHeight,d=(0,s.f)(r);a&&(d.left-=r.scrollLeft);let u=[[d.left,d.top],[d.left+l,d.top],[d.left,d.top+i],[d.left+l,d.top+i]];for(let e=0;e<u.length;e+=1){let a=u[e];if(a[0]>=0&&a[0]<=o&&a[1]>=0&&a[1]<=c){if(0===a[0]&&0===a[1])continue;t=!0}}if(!t)return}let v=e.params.keyboard.speed;e.isHorizontal()?((d||u||m||h)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((u||h)&&!a||(d||m)&&a)&&e.slideNext(v),((d||m)&&!a||(u||h)&&a)&&e.slidePrev(v)):((d||u||p||g)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(u||g)&&e.slideNext(v),(d||p)&&e.slidePrev(v)),r("keyPress",o)}function c(){e.keyboard.enabled||(l.addEventListener("keydown",o),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(l.removeEventListener("keydown",o),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),a("init",()=>{e.params.keyboard.enabled&&c()}),a("destroy",()=>{e.keyboard.enabled&&d()}),Object.assign(e.keyboard,{enable:c,disable:d})}var d=e.i(980401),u=e.i(770275);function m(e){return e?.trim()??""}function h({heading:e,title:i,cas_label:n,hs_label:s,labels:h,product_url_prefix:p,products:g=[]}){let v=(0,r.useTranslations)(),x="modern-related-products-carousel",b=(0,l.useRef)(null),[f,w]=(0,l.useState)({isBeginning:!0,isEnd:g.length<=1,isLocked:g.length<=1}),y=(0,l.useCallback)(e=>{w({isBeginning:e.isBeginning,isEnd:e.isEnd,isLocked:e.isLocked})},[]);if(0===g.length)return null;let{sectionTitle:j,originLabel:N,casLabel:_,hsLabel:k,inquireLabel:C}=function({heading:e,title:t,casLabel:a,hsLabel:r,labels:l},i){let n=m(e)||m(t);return{sectionTitle:n===i("related_products")?i("you_may_also_like"):n,originLabel:m(l?.origin_label)||i("origin"),casLabel:m(l?.cas_label)||m(a)||i("cas_number"),hsLabel:m(l?.hs_label)||m(r)||i("hs_code"),inquireLabel:m(l?.inquire_label)||i("inquire_now")}}({heading:e,title:i,casLabel:n,hsLabel:s,labels:h},v),S=p?.trim()||"/products",L=f.isLocked||g.length<=1;return(0,t.jsx)("section",{className:"otp-modern","data-modern-related-products":!0,"aria-labelledby":`${x}-title`,children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[(0,t.jsxs)("div",{className:"otp-modern__header",children:[(0,t.jsxs)("div",{className:"otp-modern__heading-wrap",children:[(0,t.jsx)("span",{className:"otp-modern__accent","aria-hidden":!0}),(0,t.jsx)("h2",{id:`${x}-title`,className:"otp-modern__title",children:j})]}),(0,t.jsxs)("div",{className:"otp-modern__controls",hidden:L,children:[(0,t.jsx)("button",{type:"button",className:"otp-modern__nav","aria-label":v("previous_slide"),"aria-controls":x,disabled:f.isBeginning,onClick:()=>b.current?.slidePrev(),children:(0,t.jsx)(a.ArrowIcon,{className:"otp-modern__nav-icon otp-modern__nav-icon--previous","aria-hidden":!0})}),(0,t.jsx)("button",{type:"button",className:"otp-modern__nav","aria-label":v("next_slide"),"aria-controls":x,disabled:f.isEnd,onClick:()=>b.current?.slideNext(),children:(0,t.jsx)(a.ArrowIcon,{className:"otp-modern__nav-icon otp-modern__nav-icon--next","aria-hidden":!0})})]})]}),(0,t.jsx)(d.Swiper,{id:x,modules:[o,c],className:"otp-modern__swiper",slidesPerView:1,slidesPerGroup:1,spaceBetween:16,speed:360,loop:!1,rewind:!1,loopAddBlankSlides:!1,watchOverflow:!0,centerInsufficientSlides:!0,keyboard:{enabled:!0,onlyInViewport:!0},a11y:{enabled:!0,containerRoleDescriptionMessage:j},breakpoints:{640:{slidesPerView:2,spaceBetween:16},1024:{slidesPerView:3,spaceBetween:20},1280:{slidesPerView:5,spaceBetween:16}},onSwiper:e=>{b.current=e,y(e)},onSlideChange:y,onResize:y,onBreakpoint:y,onLock:y,onUnlock:y,children:g.map((e,a)=>{let r=e.title||e.name||"",l=e.url_key?`${S.replace(/\/$/,"")}/${e.url_key.replace(/^\//,"")}`:S;return(0,t.jsx)(d.SwiperSlide,{className:"otp-modern__slide",children:(0,t.jsx)(u.InheritedProductTileOne,{title:r,imageSrc:e.image_url||void 0,href:l,originLabel:N,casLabel:_,hsLabel:k,inquireLabel:C,originValue:e.origin||"",casValue:e.cas||"",hsValue:e.hs_code||""})},e.id??e.url_key??`${r}-${a}`)})})]})})}e.s(["OurTopProductsSectionOne",()=>h],774887)},548371,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(902312),l=e.i(578938),i=e.i(389616);function n(e,t){let a=RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*?)"|'([^']*?)'|([^\\s>/"]+))`,"i").exec(e);return a?(a[1]??a[2]??a[3]??"").trim():""}function s(e,t){return RegExp(`(?:^|\\s)${t}(?:\\s|$|=)`,"i").test(e)}function o(e){return e.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")}function c(e){return e.replace(/<!--[\s\S]*?-->/g,"")}function d(e){let t,a={},r=/<label([^>]*)>([\s\S]*?)<\/label>/gi;for(;null!==(t=r.exec(e));){let r=o(t[2].replace(/<[^>]*>/g,"").trim());if(!r)continue;let l=n(t[1],"for");
422if(l){a[l]=r;continue}let i=e.slice(t.index+t[0].length),s=/<(input|select|textarea)([^>]*)>/i.exec(i);if(!s)continue;let c=n(s[2],"id")||n(s[2],"name");c&&!a[c]&&(a[c]=r)}return a}function u(e){let t=e.lastIndexOf(">");return -1===t?"":e.slice(t+1).replace(/<br\s*\/?>/gi," ").replace(/<[^>]*>/g,"").trim()}function m(e){let t,a,{html:r,pos:l,id:i,name:n,labelMap:s,title:d}=e;return s[i]??s[n]??(t=c(r.slice(0,l)),((a=/<label[^>]*>([\s\S]*?)<\/label>\s*$/i.exec(t))?o(a[1].replace(/<[^>]*>/g,"").trim()):"")||d?.trim()||function(e,t){let a=c(e.slice(0,t)),r=u(a);if(r)return r;let l=a.search(/<br\s*\/?>\s*$/i);return -1===l?"":u(a.slice(0,l))}(r,l))}function h(e){let t,a=[],r=/<option([^>]*)>(.*?)<\/option>/gi;for(;null!==(t=r.exec(e));){let e=o(n(t[1],"value")),r=o(t[2].trim());""!==e&&"--None--"!==r&&"Select Country"!==r&&a.push({value:e,label:r})}return a}function p(e){if(!e?.trim())return null;let t=function(e){let t,a=c(e),r=/<form([^>]*)>([\s\S]*?)<\/form>/gi;for(;null!==(t=r.exec(a));)if(o(n(t[1],"action")))return{openTag:t[1],innerHtml:t[2]};return null}(e);if(!t)return null;let a=o(n(t.openTag,"action"));if(!a)return null;let r=(n(t.openTag,"method")||"POST").toUpperCase(),l=t.innerHtml,i=d(l),u=[],p=[],g=new Set,v=(e,t)=>{g.has(e)||"g-recaptcha-response"!==e&&(g.add(e),u.push({name:e,value:t}))};for(let e of function(e){let t,a=[],r=/<h3[^>]*>([\s\S]*?)<\/h3>/gi;for(;null!==(t=r.exec(e));){let e=o(t[1].replace(/<[^>]*>/g,"").trim());e&&a.push({index:t.index,kind:"h3",text:e})}let l=/<input([^>]*?)\/?>/gi;for(;null!==(t=l.exec(e));)a.push({index:t.index,kind:"input",attrs:t[1]});let i=/<select([^>]*)>([\s\S]*?)<\/select>/gi;for(;null!==(t=i.exec(e));)a.push({index:t.index,kind:"select",attrs:t[1],body:t[2]});let n=/<textarea([^>]*)>/gi;for(;null!==(t=n.exec(e));)a.push({index:t.index,kind:"textarea",attrs:t[1]});return a.sort((e,t)=>e.index-t.index)}(l)){if("h3"===e.kind){p.push({type:"heading",text:e.text});continue}if("input"===e.kind){let t=e.attrs,a=(n(t,"type")||"text").toLowerCase(),r=n(t,"name");if(!r||"submit"===r||"submit"===a)continue;if("hidden"===a||s(t,"hidden")){v(r,n(t,"value"));continue}if(g.has(r))continue;g.add(r);let c=n(t,"id")||r,d=m({html:l,pos:e.index,id:c,name:r,labelMap:i})||o(n(t,"placeholder")),u=parseInt(n(t,"maxlength")||"255",10)||void 0;p.push({type:"input",name:r,id:c,label:d,inputType:"email"===a?"email":"text",maxLength:u,required:s(t,"required")});continue}if("select"===e.kind){let t=n(e.attrs,"name");if(!t)continue;if(s(e.attrs,"hidden")){v(t,h(e.body)[0]?.value??"");continue}if(g.has(t))continue;g.add(t);let a=n(e.attrs,"id")||t,r=m({html:l,pos:e.index,id:a,name:t,labelMap:i,title:n(e.attrs,"title")});p.push({type:"select",name:t,id:a,label:r,options:h(e.body),required:s(e.attrs,"required")});continue}let t=n(e.attrs,"name");if(!t||s(e.attrs,"hidden")||g.has(t))continue;g.add(t);let a=n(e.attrs,"id")||t,r=parseInt(n(e.attrs,"rows")||"3",10)||3,c=m({html:l,pos:e.index,id:a,name:t,labelMap:i});p.push({type:"textarea",name:t,id:a,label:c,rows:r,required:s(e.attrs,"required")})}return 0===p.length?null:{action:a,method:r,hiddenFields:u,visibleFields:p}}var g=e.i(388578),v=e.i(3305),x=e.i(960261),b=e.i(11944);function f({formMode:e,formEmbedCode:u,agentEmbedCode:h,recaptchaSiteKey:f}){let w=(0,r.useHasAuthSession)(),[y,j]=(0,a.useState)(()=>({hasSession:w,role:w?(0,l.getAuthCustomerRole)()??null:null,ready:!w,prefill:i.EMPTY_CONTACT_FORM_PREFILL}));(0,a.useEffect)(()=>{if(!w)return void j({hasSession:!1,role:null,ready:!0,prefill:i.EMPTY_CONTACT_FORM_PREFILL});let e=!1;return(async()=>{let t=await (0,g.refreshCustomerSessionFromApi)();e||j({hasSession:!0,role:t.role||(0,l.getAuthCustomerRole)()||null,ready:!0,prefill:t.record?(0,i.profileFieldsToContactPrefill)((0,v.customerRecordToFormFields)(t.record,(0,l.getAuthProfileFormPrefill)())):(0,i.getContactFormPrefillFromAuth)()})})(),()=>{e=!0}},[w]);let N=!w||y.hasSession===w&&y.ready,_=w&&y.hasSession===w?y.role:null,k=w&&N?y.prefill:i.EMPTY_CONTACT_FORM_PREFILL,{embedCode:C,variant:S}=(0,a.useMemo)(()=>{var e;let t,a,r,i,n;return e={formEmbedCode:u,agentEmbedCode:h,isLoggedIn:w,customerRole:_},t=e.formEmbedCode?.trim()||null,a=e.agentEmbedCode?.trim()||null,r=e.customerRole??(0,l.getAuthCu
422stomerRole)(),e.isLoggedIn&&(i=r?.trim().toLowerCase())&&i.includes("agent")&&a&&(n=a?.trim())&&p(n)?{embedCode:a,variant:"agent"}:{embedCode:t,variant:"standard"}},[h,_,u,w]),L=(0,a.useMemo)(()=>"agent"===S&&C?p(C):null,[C,S]),I=(0,a.useMemo)(()=>"agent"!==S?function(e){let t;if(!e?.trim())return null;let a=c(e),r=[],l=/<form([^>]*)>([\s\S]*?)<\/form>/gi;for(;null!==(t=l.exec(a));){let e=function(e,t){let a=n(e,"data-contact-form");if(!a)return null;let r=o(n(e,"action"));if(!r)return null;let l=o(n(e,"data-contact-label")||a),i=(n(e,"method")||"POST").toUpperCase(),c=d(t),u=[],h=[],p=new Set,g=(e,t)=>{p.has(e)||"g-recaptcha-response"!==e&&(p.add(e),u.push({name:e,value:t}))};for(let e of function(e){let t,a=[],r=/<h3[^>]*>([\s\S]*?)<\/h3>/gi;for(;null!==(t=r.exec(e));){let e=o(t[1].replace(/<[^>]*>/g,"").trim());e&&a.push({index:t.index,kind:"h3",text:e})}let l=/<input([^>]*?)\/?>/gi;for(;null!==(t=l.exec(e));)a.push({index:t.index,kind:"input",attrs:t[1]});let i=/<select([^>]*)>([\s\S]*?)<\/select>/gi;for(;null!==(t=i.exec(e));)a.push({index:t.index,kind:"select",attrs:t[1],body:t[2]});let n=/<textarea([^>]*)>/gi;for(;null!==(t=n.exec(e));)a.push({index:t.index,kind:"textarea",attrs:t[1]});return a.sort((e,t)=>e.index-t.index)}(t)){if("h3"===e.kind){h.push({type:"heading",text:e.text});continue}if("input"===e.kind){let a=(n(e.attrs,"type")||"text").toLowerCase(),r=n(e.attrs,"name");if(!r||"submit"===r||"submit"===a)continue;if("hidden"===a||s(e.attrs,"hidden")){g(r,n(e.attrs,"value"));continue}if(p.has(r))continue;p.add(r);let l=n(e.attrs,"id")||r,i=m({html:t,pos:e.index,id:l,name:r,labelMap:c})||o(n(e.attrs,"placeholder")),d=parseInt(n(e.attrs,"maxlength")||"255",10)||void 0;h.push({type:"input",name:r,id:l,label:i,inputType:"email"===r||"email"===a?"email":"text",maxLength:d,required:s(e.attrs,"required")});continue}if("select"===e.kind){let r=n(e.attrs,"name");if(!r)continue;let i=function(e){let t,a=[],r=/<option([^>]*)>(.*?)<\/option>/gi;for(;null!==(t=r.exec(e));){let e=o(n(t[1],"value")),r=o(t[2].trim());""!==e&&"--None--"!==r&&"Select Country"!==r&&a.push({value:e,label:r})}return a}(e.body),d=function(e){let t,a=/<option([^>]*)>(.*?)<\/option>/gi,r="";for(;null!==(t=a.exec(e));){let e=o(n(t[1],"value")),a=o(t[2].trim());if(e&&"--None--"!==a&&"Select Country"!==a&&(r||=e,s(t[1],"selected")))return e}return r}(e.body);if(s(e.attrs,"hidden")){g(r,d);continue}if(p.has(r))continue;let u=n(e.attrs,"id")||r,v=n(e.attrs,"title"),x=m({html:t,pos:e.index,id:u,name:r,labelMap:c,title:v});if(function(e){let t=e.fieldLabel.trim().toLowerCase(),a=e.title.trim().toLowerCase(),r=e.formLabel.trim().toLowerCase(),l=e.formKey.replace(/-/g," ").toLowerCase();return 1===e.options.length&&[r,l].includes(e.options[0]?.value.trim().toLowerCase())&&(t.includes("how we can help")||a.includes("lead reason")||a.includes("case reason"))}({formKey:a,formLabel:l,fieldLabel:x,title:v,options:i})){g(r,d||i[0]?.value||l);continue}p.add(r),h.push({type:"select",name:r,id:u,label:x,options:i,required:s(e.attrs,"required")});continue}let r=n(e.attrs,"name");if(!r||s(e.attrs,"hidden")||p.has(r))continue;p.add(r);let i=n(e.attrs,"id")||r,d=parseInt(n(e.attrs,"rows")||"3",10)||3,u=m({html:t,pos:e.index,id:i,name:r,labelMap:c});h.push({type:"textarea",name:r,id:i,label:u,rows:d,required:s(e.attrs,"required")})}return 0===h.length?null:{key:a,label:l,action:r,method:i,hiddenFields:u,visibleFields:h}}(t[1],t[2]);e&&r.push(e)}return r.length>0?{forms:r}:null}(C??u):null,[C,u,S]);return"embed"!==e||w&&!N?null:"agent"===S&&L?(0,t.jsx)(b.SalesforceGenericEmbedForm,{parsedEmbed:L,recaptchaSiteKey:f,prefill:k}):I?(0,t.jsx)(x.SalesforceContactMultiEmbedForm,{parsedEmbed:I,recaptchaSiteKey:f,prefill:k}):null}e.s(["ContactUsRoleEmbedForm",()=>f],548371)},642664,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(527967);var r=e.i(803553),l=e.i(682432),i=e.i(948148);let n={1:"grid grid-cols-1 gap-x-[var(--content-card-grid-gap-x)] gap-y-[var(--content-card-grid-gap-y)] md:grid-cols-3 mb-[var(--content-card-grid-margin-bottom)]"};
422function s({title:e,subtitle:a,content:s,columns:o,isLoading:c=!1,skeletonCount:d=o}){let u=(0,i.useTranslations)(),m=c?Array.from({length:d},(e,t)=>({image:"",buttonText:"",title:`Loading blog ${t+1}`,categories:[],description:"Loading description",date:"",author:"",link:"#",readTime:""})):s,h=!c&&0===m.length;return(0,t.jsx)("section",{children:(0,t.jsxs)("div",{children:[(e||a)&&(0,t.jsxs)("header",{className:"mb-[var(--content-card-section-header-gap)] space-y-[var(--content-card-section-header-inner-gap)]",children:[a&&(0,t.jsx)("p",{className:"text-start text-[length:var(--content-card-section-subtitle-size)] font-[var(--content-card-section-subtitle-weight)] leading-[var(--content-card-section-subtitle-line-height)] text-[var(--content-card-section-subtitle-color)]",children:a}),e&&(0,t.jsx)("h2",{className:"text-start text-[length:var(--content-card-section-title-size-mobile)] font-[var(--content-card-section-title-weight)] leading-[var(--content-card-section-title-line-height-mobile)] text-[var(--content-card-section-title-color)] md:text-[length:var(--content-card-section-title-size-desktop)] md:leading-[var(--content-card-section-title-line-height-desktop)]",children:e})]}),h?(0,t.jsx)("div",{id:"articleResultWrapper",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-center",children:[(0,t.jsx)(r.CardEmptyStateIcon,{className:"mb-[var(--content-card-empty-state-description-margin-bottom)] h-38 w-38"}),(0,t.jsx)("h6",{className:"text-[length:var(--content-card-empty-state-title-size-mobile)] font-[var(--content-card-empty-state-title-weight)] leading-[var(--content-card-empty-state-title-line-height)] text-[var(--content-card-empty-state-title-color)] md:text-[length:var(--content-card-empty-state-title-size-desktop)]",children:u("no_data_found")})]})}):(0,t.jsx)("div",{className:n[o],children:m.map(({image:e,buttonText:a,buttonHref:r,title:i,categories:n,description:s,date:o,author:d,link:u,readTime:m,requireAuth:h},p)=>(0,t.jsx)(l.ContentCard,{image:e,buttonText:a,buttonHref:r,title:i,categories:n,description:s,date:o,author:d,link:u,readTime:m,requireAuth:h,isLoading:c},`${i}-${p}`))})]})})}var o=e.i(982281),c=e.i(78556);e.i(716787);var d=e.i(659544),u=e.i(22584);function m(e){return e.trim().toLowerCase()}function h(e){let t=Date.parse(e);return Number.isNaN(t)?0:t}function p({className:e="",title:r,subtitle:l,content:n=o.baseContent,showIndustryFilter:p=!0,showRegionFilter:g=!0,showSortFilter:v=!0,showSearch:x=!0,variant:b="default",tradeTabs:f,viewMoreLabel:w,filterByLabel:y,sortByLabel:j,searchPlaceholder:N,centerHeading:_=!1,filterIdPrefix:k,resultLabel:C,showTitleUnderline:S=!0}){let L=(0,i.useTranslations)(),I="market-insights-view-more"===b,z=_||!I,A="market-insights-load-more"===b||I?"product-specific-insights":b,[q,E]=(0,a.useState)([]),[$,P]=(0,a.useState)(""),[T,M]=(0,a.useState)("desc"),[O,F]=(0,a.useState)(""),[R,B]=(0,a.useState)(6),D=(0,a.useMemo)(()=>{let e=new Set;for(let t of n)for(let a of t.categories??[]){let t=m(a);t&&e.add(t)}return Array.from(e).map(e=>({value:e,label:e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}))},[n]),H=(0,a.useMemo)(()=>{let e=O.trim().toLowerCase(),t=n.filter(t=>{let a=(t.categories??[]).map(m),r=0===q.length||a.some(e=>q.includes(e)),l=`${t.title} ${t.description} ${(t.categories??[]).join(" ")}`.toLowerCase(),i=0===e.length||l.includes(e),n=!$||"all"===$||l.includes($.toLowerCase());return r&&i&&n});return[...t].sort((e,t)=>{let a=h(e.date),r=h(t.date);return"asc"===T?a-r:r-a})},[n,O,q,$,T]),U=H.length>6,G=(0,a.useMemo)(()=>U?H.slice(0,R):H,[H,U,R]),W=U&&R<H.length,V=!I&&W,K=(0,a.useMemo)(()=>{if(1===q.length){let e=D.find(e=>e.value===q[0]);if(e?.label)return e.label}return C?.trim()||void 0},[D,C,q]),Y=(0,a.useMemo)(()=>[{key:"applications-and-buyers",label:L("applications_and_buyers"),href:u.routes.marketInsights.applicationsAndBuyers},{key:"supply-chain",label:L("supply_chain"),href:u.routes.marketInsights.supplyChain},{key:"regulatory-and-compliance",label:L("regulatory_and_compliance"),href:u.routes.marketInsights.regulatoryAndCompliance}],[L]),Q=f??[],Z=I&&Q.length>0,[X,J]=(0,a.useState)(Z?Q[0].key:Y[0].key);(0,a.useEffect)(()=>{let e=Z?Q.map(e=>e.key):Y.map(e=>e.key);0!==e.length&&(e.includes(X)||J(e[0]??Y[0].key))},[Z,Q,Y,X]);let ee=(0,a.useMemo)(()=>{let e=n.filter(e=>e.link.includes("/applications-and-buyers")).slice(0,3),t=n.filter(e=>e.link.includes("/supply-chain")).slice(0,3),a=n.filter(e=>e.link.includes("/regulatory-and-compliance")).slice(0,3),r=n.slice(0,3),l=n.slice(3,6),i=n.slice(6,9);return{"applications-and-buyers":e.length>0?e:r,"supply-chain":t.length>0?t:l.length>0?l:r,"regulatory-and-compliance":a.length>0?a:i.length>0?i:r}},[n]),et=Q.find(e=>e.key===X)??Q[0],ea=Y.find(e=>e.key===X)??Y[0],er=Z?et?.content??[]:ee[X]??[],el=Z?Q.map(e=>({key:e.key,label:e.label})):Y.map(e=>({key:e.key,label:e.label})),ei=Z?et?.viewMoreHref?.trim()??"":ea.href,en=(Z?et?.viewMoreLabel?.trim():"")||w?.trim()||L("view_more"),es=I&&!!ei;(0,a.useEffect)(()=>{queueMicrotask(()=>B(6))},[O,q,$,T]);let eo=!I&&(p||g||v||x),ec=(0,t.jsx)(c.FilterBar,{layout:eo?"sidebar":"inline",className:eo?"mic-sidebar-filters mt-0 md:mt-0":void 0,showIndustryFilter:!1,showRegionFilter:g,showSortFilter:v,showSearch:x,filterByLabel:y,sortByLabel:j,searchPlaceholder:N,badges:[],industryOptions:D,selectedIndustries:q,onIndustryChange:E,selectedRegion:$,onRegionChange:P,selectedSort:T,onSortChange:M,searchValue:O,onSearchChange:F,onSearchSubmit:F,onSearchClear:()=>F(""),idPrefix:k??"mic-explore-filters"}),ed=(0,t.jsx)(s,{columns:1,content:G,variant:A});return(0,t.jsx)("section",{"data-premium-mic":!0,className:`relative ${e}`,children:(0,t.jsxs)("div",{className:`layout-container flex flex-col justify-center gap-4 px-3 md:px-5 ${z?"items-center":"items-start"}`,children:[r||l?z?(0,t.jsxs)("header",{className:"mic-premium-header",children:[r?(0,t.jsx)("h2",{className:"mic-premium-title",children:r}):null,S?(0,t.jsx)("span",{className:"mic-premium-underline","aria-hidden":!0}):null,l?(0,t.jsx)("p",{className:"mic-premium-subtitle",children:l}):null]}):(0,t.jsxs)("header",{className:"mic-trade-header",children:[(0,t.jsxs)("div",{className:"mic-trade-title-row",children:[(0,t.jsx)("span",{className:"mic-trade-accent","aria-hidden":!0}),r?(0,t.jsx)("h2",{className:"mic-trade-title",children:r}):null]}),l?(0,t.jsx)("p",{className:"mic-trade-subtitle",children:l}):null]}):null,I?(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"mic-tabstrip",role:"tablist",children:el.map(e=>
422{let a=X===e.key;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":a,"data-active":a?"":void 0,className:"mic-tabstrip-btn",onClick:()=>J(e.key),children:e.label},e.key)})}),(0,t.jsx)(s,{columns:1,content:er,variant:A}),es?(0,t.jsx)("div",{className:"mt-[var(--market-insight-content-load-more-margin-top,var(--gap-24))] w-full text-center",children:(0,t.jsx)(d.Button,{variant:"primary",href:ei,className:"inline-flex items-center justify-center px-8 py-3 md:px-10 md:py-4 text-base md:text-lg font-semibold",children:en})}):null]}):eo?(0,t.jsxs)("div",{className:"mic-explore-layout w-full",children:[(0,t.jsx)("aside",{className:"mic-explore-sidebar",children:ec}),(0,t.jsxs)("div",{className:"mic-explore-grid min-w-0",children:[K?(0,t.jsx)("div",{className:"mic-premium-result-label mb-4 text-start",children:K}):null,ed]})]}):(0,t.jsxs)("div",{className:"w-full",children:[K?(0,t.jsx)("div",{className:"mic-premium-result-label mb-4 text-start",children:K}):null,ed]}),V?(0,t.jsx)("div",{className:"mt-[var(--market-insight-content-load-more-margin-top)] w-full text-center",children:(0,t.jsx)(d.Button,{variant:"primary",type:"button",onClick:()=>{B(e=>Math.min(e+6,H.length))},className:"inline-flex items-center justify-center px-8 py-3 md:px-10 md:py-4 text-base md:text-lg font-semibold cursor-pointer",children:L("load_more")})}):null]})})}e.s(["MarketInsightContentSection",()=>p],642664)},386756,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(657688),l=e.i(948148),i=e.i(271645),n=e.i(137696);function s(e){return"string"==typeof e&&e.trim().length>0}function o(e){return e.trim().toLowerCase().replace(/[\s._-]+/g,"")}function c(e,t,a){let r=a.find(t=>t.id===e);if(r)return r.id;let l=o(e),i=o(t);for(let e of a)if([e.id,e.pinLabel,e.city,e.country].filter(s).map(o).some(e=>e===l||e===i))return e.id;return e}function d(e){let t=e.closest(".ol-premium-cards-scroll");if(!(t instanceof HTMLElement))return;let a=t.getBoundingClientRect(),r=e.getBoundingClientRect();r.top<a.top?t.scrollTo({top:t.scrollTop+(r.top-a.top),behavior:"smooth"}):r.bottom>a.bottom&&t.scrollTo({top:t.scrollTop+(r.bottom-a.bottom),behavior:"smooth"})}function u(e,t){let a="maps_url"in e&&"string"==typeof e.maps_url&&e.maps_url.trim()||e.mapUrl||"#",r="website_url"in e&&"string"==typeof e.website_url&&e.website_url.trim()||e.websiteUrl||"#",l=e.id?.trim()||`${e.city||"location"}-${t}`,i=e.pinLabel?.trim()||e.city||e.country||l;return{...e,id:l,pinLabel:i,mapUrl:a,websiteUrl:r}}function m(){return(0,t.jsxs)("svg",{className:"ol-premium-map-pin-icon",width:"22",height:"30",viewBox:"0 0 24 32","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M12 0C7.03 0 3 4.03 3 9c0 7.5 9 21 9 21s9-13.5 9-21c0-4.97-4.03-9-9-9z",fill:"var(--our-locations-pin-bg)"}),(0,t.jsx)("circle",{cx:"12",cy:"9",r:"3.75",fill:"var(--brand-white)"})]})}function h({pins:e,onPinClick:a,selectedLocationId:r,locations:l,isMobile:i=!1}){return(0,t.jsx)(t.Fragment,{children:e.map(e=>{let n=function(e,t){switch(e){case"left":return`${t?"end-[var(--our-locations-mobile-pin-label-left-offset)]":"end-[var(--our-locations-pin-label-side-offset)]"} top-1/2 -translate-y-1/2`;case"top":return"bottom-[calc(100%+var(--our-locations-pin-label-stack-offset))] start-1/2 -translate-x-1/2 rtl:translate-x-1/2";case"bottom":return"top-[calc(100%+var(--our-locations-pin-label-stack-offset))] start-1/2 -translate-x-1/2 rtl:translate-x-1/2";default:return`${t?"start-[var(--our-locations-mobile-pin-label-left-offset)]":"start-[var(--our-locations-pin-label-side-offset)]"} top-1/2 -translate-y-1/2`}}(e.labelPlacement,i),s=e.labelOffset.x||e.labelOffset.y?{transform:`translate(${e.labelOffset.x}px, ${e.labelOffset.y}px)`}:void 0,o=l?c(e.id,e.label,l):e.id,d=!!r&&r===o;return(0,t.jsxs)("button",{type:"button",className:`ol-premium-map-pin-btn absolute cursor-pointer${d?" ol-premium-map-pin-btn--active":""}`,style:{top:e.top,left:e.left},"aria-label":e.label,"aria-pressed":d,onClick:()=>a?.(e.id,e.label),children:[(0,t.jsx)(m,{}),(0,t.jsx)("span",{className:`absolute ${n}`,children:(0,t.jsx)("span",{style:s,className:"block px-[var(--our-locations-pin-label-px)] py-[var(--our-locations-pin-label-py)] text-[length:var(--our-locations-pin-label-size)] border-[length:var(--our-locations-pin-label-border-width)] whitespace-nowrap rounded-[var(--our-locations-pin-label-radius)] border-[var(--our-locations-pin-label-border-color)] bg-[var(--our-locations-pin-label-bg)] font-[var(--our-locations-pin-label-weight)] leading-[var(--our-locations-pin-label-line)] text-[var(--our-locations-pin-label-color)] shadow-[var(--our-locations-pin-label-shadow)]",children:e.label})})]},e.id)})})}function p({imageSrc:e,mapAlt:a,sizes:l,resolvedPins:i,hasPins:n,onMapPinClick:s,selectedLocationId:o,locations:c,isMobile:d=!1}){return(0,t.jsx)("div",{className:"ol-premium-map-frame relative mx-auto w-full max-w-full min-w-0 overflow-hidden bg-[var(--our-locations-map-bg)]",children:(0,t.jsxs)("div",{className:"ol-premium-map-aspect relative w-full overflow-visible",style:d?{aspectRatio:"16 / 10",minHeight:"220px"}:void 0,children:[(0,t.jsx)(r.default,{src:e,alt:a,fill:!0,sizes:l,className:"object-contain"}
422),n?(0,t.jsx)(h,{pins:i,onPinClick:s,selectedLocationId:o,locations:c,isMobile:d}):null]})})}function g({location:e,elementId:a="mobile-location-card"}){let r=e.mapUrl||"#",l=(0,n.resolveLocationAddressLines)(e);return(0,t.jsxs)("article",{id:a,className:"ol-premium-mobile-location-card ol-premium-mobile-location-card--active",children:[(0,t.jsx)("h6",{className:"ol-premium-mobile-location-card__title",children:[e.city,e.country].filter(s).join(", ")}),l.length>0?(0,t.jsx)("a",{href:r,target:"_blank",rel:"nofollow noopener noreferrer",className:"ol-premium-mobile-location-card__address",children:l.map((a,r)=>(0,t.jsx)("span",{className:"block",children:a},`${e.id}-mobile-address-${r}`))}):null,s(e.phone)?(0,t.jsx)("a",{href:`tel:${e.phone.replace(/\s+/g,"")}`,className:"ol-premium-mobile-location-card__contact",children:e.phone}):null,s(e.email)?(0,t.jsx)("a",{href:`mailto:${e.email}`,className:"ol-premium-mobile-location-card__contact ol-premium-mobile-location-card__contact--email",children:e.email}):null]})}function v({location:e,isActive:a,elementId:r}){let l=e.mapUrl||"#",i=(0,n.resolveLocationAddressLines)(e);return(0,t.jsxs)("article",{id:r??`location-card-${e.id}`,className:`ol-premium-card${a?" ol-premium-card--active":""}`,children:[(0,t.jsx)("h6",{className:"ol-premium-card-title",children:[e.city,e.country].filter(s).join(", ")}),i.length>0?(0,t.jsx)("a",{href:l,target:"_blank",rel:"nofollow noopener noreferrer",className:"ol-premium-card-address",children:i.map((a,r)=>(0,t.jsx)("span",{className:"block",children:a},`${e.id}-address-${r}`))}):null,s(e.phone)?(0,t.jsx)("a",{href:`tel:${e.phone.replace(/\s+/g,"")}`,className:"ol-premium-card-contact",children:e.phone}):null,s(e.email)?(0,t.jsx)("a",{href:`mailto:${e.email}`,className:"ol-premium-card-contact ol-premium-card-contact--email",children:e.email}):null]})}function x({title:e,heading:r,subTitle:s,map_image_url:o,map_image_upload:m,map_alt:h,pins:x,locations:b,showArticleCards:f=!0,enablePinScroll:w=!0,variant:y="default"}){let j=(0,l.useTranslations)(),N=o?.trim()||m?.trim()||"",_=r?.trim()||e?.trim()||"",k=j("our_locations_premium_description"),C=(0,i.useMemo)(()=>(Array.isArray(b)?b:[]).map(u),[b]),S=C.length>0,L=N.length>0,I=h?.trim()||"World map",z=(0,i.useMemo)(()=>{let e=(e,t,a,r,l)=>{let i=(0,n.resolvePinLabelOffset)(e,r);return{id:e,top:t,left:a,label:r,labelPlacement:l??(0,n.resolvePinLabelPlacement)(e,r),labelOffset:{x:i.x??0,y:i.y??0}}},t=Array.isArray(x)?x:[];return t.length>0?t.filter(e=>!!e&&"string"==typeof e.id&&Number.isFinite(Number(e.top))&&Number.isFinite(Number(e.left))).map(t=>{let a=t.label?.trim()||t.id;return e(t.id,`${Number(t.top)}%`,`${Number(t.left)}%`,a,t.labelPlacement)}):C.filter(e=>e.id&&e.pinTop&&e.pinLeft).map(t=>{let a=t.pinLabel||t.city||t.country||t.id;return e(t.id,t.pinTop,t.pinLeft,a)})},[x,C]),A=z.length>0,q=C[0]?.id??"",[E,$]=(0,i.useState)(q),P=(0,i.useMemo)(()=>S?C.some(e=>e.id===E)?E:C[0].id:"",[S,C,E]),T="text-[length:var(--our-locations-sub-title-size-mobile)] font-[var(--our-locations-sub-title-weight-mobile)] leading-[var(--our-locations-sub-title-line-mobile)] text-[var(--our-locations-sub-title-color)] md:text-[length:var(--our-locations-sub-title-size-desktop)] md:font-[var(--our-locations-sub-title-weight-desktop)] md:leading-[var(--our-locations-sub-title-line-desktop)]",M=(0,i.useCallback)((e,t)=>{let a=c(e,t,C);$(a),requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(!window.matchMedia("(min-width: 768px)").matches)return;let e=document.getElementById(`location-card-${a}`);e&&d(e)})})},[C]),O=(0,i.useCallback)(e=>{$(e),requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(!window.matchMedia("(min-width: 768px)").matches)return;let t=document.getElementById(`location-card-${e}`);t&&d(t)})})},[]),F=(0,i.useMemo)(()=>C.find(e=>e.id===P)??C[0],[C,P]),R=f&&w&&S?M:void 0;return _||L||S?(0,t.jsx)("section",{className:"bg-[var(--our-locations-section-bg)] pt-[var(--our-locations-padding-top-mobile)] pb-[var(--our-locations-padding-bottom-mobile)] md:pt-[var(--our-locations-padding-top-desktop)] md:pb-[var(--our-locations-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:"mx-auto layout-container px-3 md:px-5",children:[(0,t.jsxs)("div",{className:"ol-premium-mobile block md:hidden",children:[(0,t.jsxs)("div",{className:`text-center ${{default:"px-18 md:px-0 pb-4 md:pb-0",marketSpread:"px-3 md:px-0 pb-4"}[y]}`,children:[_?(0,t.jsx)("h2",{className:"ol-premium-heading",children:_}):null,(0,t.jsx)("p",{className:"ol-premium-description",children:k})]}),f&&S?(0,t.jsxs)("div",{className:"ol-premium-mobile-select ol-premium-filter relative",children:[(0,t.jsx)("select",{value:P,onChange:e=>O(e.target.value),className:"w-full appearance-none border border-[var(--our-locations-mobile-select-border-color)] bg-[var(--our-locations-mobile-select-bg)] ps-[var(--our-locations-mobile-select-px)] pe-[var(--our-locations-mobile-select-pr)] py-[var(--our-locations-mobile-select-py)] text-start text-[length:var(--our-locations-mobile-select-size)] font-[var(--our-locations-mobile-select-weight)] leading-[var(--our-locations-mobile-select-line)] text-[var(--our-locations-mobile-select-color)] outline-none",children:C.map(e=>(0,t.jsx)("option",{value:e.id,children:e.country},`premium-mobile-option-${e.id}`))}),(0,t.jsx)(a.ArrowIcon,{className:"absolute end-[var(--our-locations-mobile-select-arrow-right)] top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--our-locations-mobile-select-arrow-color)]"})]}):null,N?(0,t.jsx)("div",{className:"ol-premium-mobile-map mt-[var(--our-locations-mobile-map-margin-top)]",children:(0,t.jsx)(p,{imageSrc:N,mapAlt:I,sizes:"100vw",resolvedPins:z,hasPins:A,onMapPinClick:R,selectedLocationId:P,locations:C,isMobile:!0})}):null,f&&S&&F?(0,t.jsx)("div",{className:"ol-premium-mobile-card mt-[var(--our-locations-mobile-card-margin-top)]",children:(0,t.jsx)(g,{location:F})}
422):null,s?(0,t.jsx)("p",{className:`block ${T}`,children:s}):null]}),(0,t.jsx)("div",{"data-premium-our-locations":"true",className:"hidden md:block",children:(0,t.jsxs)("div",{className:"ol-premium-desktop",children:[(0,t.jsxs)("div",{className:"ol-premium-sidebar",children:[(0,t.jsxs)("div",{className:"ol-premium-sidebar-header",children:[(0,t.jsxs)("div",{className:"ol-premium-heading-wrap",children:[_?(0,t.jsx)("h2",{className:"ol-premium-heading",children:_}):null,(0,t.jsx)("p",{className:"ol-premium-description",children:k})]}),s?(0,t.jsx)("p",{className:`ol-premium-subtitle ${T}`,children:s}):null,f&&S?(0,t.jsxs)("div",{className:"ol-premium-filter relative",children:[(0,t.jsx)("select",{value:P,onChange:e=>O(e.target.value),className:"w-full appearance-none border border-[var(--our-locations-mobile-select-border-color)] bg-[var(--our-locations-mobile-select-bg)] ps-[var(--our-locations-mobile-select-px)] pe-[var(--our-locations-mobile-select-pr)] py-[var(--our-locations-mobile-select-py)] text-start text-[length:var(--our-locations-mobile-select-size)] font-[var(--our-locations-mobile-select-weight)] leading-[var(--our-locations-mobile-select-line)] text-[var(--our-locations-mobile-select-color)] outline-none",children:C.map(e=>(0,t.jsx)("option",{value:e.id,children:e.country},`premium-option-${e.id}`))}),(0,t.jsx)(a.ArrowIcon,{className:"absolute end-[var(--our-locations-mobile-select-arrow-right)] top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--our-locations-mobile-select-arrow-color)]"})]}):null]}),f&&S?(0,t.jsx)("div",{className:"ol-premium-cards-scroll",children:C.map(e=>(0,t.jsx)(v,{location:e,isActive:P===e.id},`premium-card-${e.id}`))}):null]}),(0,t.jsx)("div",{className:"ol-premium-map-column",children:(0,t.jsx)(p,{imageSrc:N,mapAlt:I,sizes:"(max-width: 1200px) 65vw, 780px",resolvedPins:z,hasPins:A,onMapPinClick:R,selectedLocationId:P,locations:C})})]})})]})}):null}e.s(["OurLocationsSection",()=>x])},16450,e=>{"use strict";var t=e.i(843476),a=e.i(301630),r=e.i(924455),l=e.i(657688);e.i(79951);var i=e.i(902936),n=e.i(271645);e.i(716787);var s=e.i(659544);e.i(527967);var o=e.i(830167),c=e.i(468894),d=e.i(46275),d=d,u=e.i(948148),m=e.i(186301),h=e.i(980401);function p(e){if(!e)return"";try{let t=new Date(e);if(isNaN(t.getTime()))return e;return t.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric",timeZone:"UTC"})}catch{return e}}let g="inline-flex mb-[var(--industry-updates-one-events-margin-bottom-desktop)] h-[var(--industry-updates-one-events-nav-btn-size)] w-[var(--industry-updates-one-events-nav-btn-size)] shrink-0 cursor-pointer items-center justify-center rounded-full border-0 bg-[var(--industry-updates-one-events-nav-btn-bg)] p-0 shadow-[var(--industry-updates-one-events-nav-btn-shadow)] text-[var(--industry-updates-one-events-nav-btn-icon-color)] transition-opacity disabled:pointer-events-none disabled:opacity-35";function v({heading:e,events:v,blog_posts:x,blog_heading:b,events_heading:f,blog_view_more_url:w,blog_view_more_label:y,events_view_more_url:j,events_view_more_label:N}){let _=(0,u.useTranslations)(),k=v??[],C=x??[],S=(0,n.useRef)(null),[L,I]=(0,n.useState)(0),z=Math.max(0,k.length-1),A=(0,n.useCallback)(()=>{S.current?.slidePrev()},[]),q=(0,n.useCallback)(()=>{S.current?.slideNext()},[]),E=k.length>0,$=C.length>0;return E||$||e?(0,t.jsx)("section",{className:" bg-[var(--industry-updates-one-bg)] pt-[var(--industry-updates-one-padding-top-mobile)] pb-[var(--industry-updates-one-padding-bottom-mobile)] md:pt-[var(--industry-updates-one-padding-top-desktop)] md:pb-[var(--industry-updates-one-padding-bottom-desktop)] ",children:(0,t.jsxs)("div",{className:"layout-container md:px-5 px-3",children:[e?(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("h2",{className:" text-[length:var(--industry-updates-one-heading-size-mobile)] leading-[var(--industry-updates-one-heading-line-mobile)] font-[var(--industry-updates-one-heading-weight-mobile)] text-[var(--industry-updates-one-heading-color)] md:text-[length:var(--industry-updates-one-heading-size-desktop)] md:leading-[var(--industry-updates-one-heading-line-desktop)] md:font-[var(--industry-updates-one-heading-weight-desktop)] mb-[var(--industry-updates-one-heading-gap-below)] ",children:e})}):null,(0,t.jsxs)("div",{className:" grid grid-cols-1 gap-[var(--industry-updates-one-grid-gap-mobile)] md:grid-cols-2 md:items-stretch md:gap-[var(--industry-updates-one-grid-gap-desktop)] ",children:[E?(0,t.jsx)("div",{className:"order-2 md:order-1 relative z-10 flex min-h-0 h-full flex-col",children:(0,t.jsxs)("div",{className:" flex h-full flex-col gap-[var(--industry-updates-one-events-gap-main-mobile)] bg-[var(--industry-updates-one-panel-bg)] p-[var(--industry-updates-one-panel-padding-mobile)] md:gap-[var(--industry-updates-one-events-gap-main-desktop)] md:p-[var(--industry-updates-one-panel-padding-desktop)] md:pb-[var(--industry-updates-one-panel-padding-bottom-desktop)]! ",children:[f?(0,t.jsx)("div",{className:"flex flex-col gap-[var(--industry-updates-one-events-gap-header)]",children:(0,t.jsx)("h2",{className:" text-start text-[length:var(--industry-updates-one-subsection-heading-size-mobile)] leading-[var(--industry-updates-one-subsection-heading-line-mobile)] font-[var(--industry-updates-one-subsection-heading-weight-mobile)] text-[var(--industry-updates-one-subsection-heading-color)] md:text-[length:var(--industry-updates-one-subsection-heading-size-desktop)] md:leading-[var(--industry-updates-one-subsection-heading-line-desktop)] md:font-[var(--industry-updates-one-subsection-heading-weight-desktop)] ",children:f})}):null,(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-[var(--industry-updates-one-events-card-gap)]",children:[(0,t.jsxs)("div",{className:" relative w-full [&_.swiper]:overflow-hidden [&_.swiper-pagination]:!bottom-4 [&_.swiper-pagination]:!start-1/2 [&_.swiper-pagination]:!end-auto [&_.swiper-pagination]:!w-auto [&_.swiper-pagination]:!-translate-x-1/2 rtl:[&_.swiper-pagination]:!translate-x-1/2 [&_.swiper-pagination]:!flex [&_.swiper-pagination]:!items-center [&_.swiper-pagination]:!justify-center [&_.swiper-pagination]:!gap-3 [&_.swiper-pagination-bullet]:!m-0 [&_.swiper-pagination-bullet]:h-2 [&_.swiper-pagination-bullet]:w-2 [&_.swiper-pagination-bullet]:rounded-full [&_.swiper-pagination-bullet]:!bg-transparent md:[&_.swiper-pagination-bullet]:!bg-[var(--brand-white)] [&_.swiper-pagination-bullet]:!opacity-100 [&_.swiper-pagination-bullet]:transition-all [&_.swiper-pagination-bullet]:!w-4 [&_.swiper-pagination-bullet]:!h-4 [&_.swiper-pagination-bullet]:!rounded-full [&_.swiper-pagination-bullet-active]:!w-4 [&_.swiper-pagination-bullet-active]:!h-4 [&_.swiper-pagination-bullet-active]:rounded-full [&_.swiper-pagination-bullet-active]:!bg-transparent md:[&_.swiper-pagination-bullet-active]:!bg-[var(--brand-secondary)] ",children:[(0,t.jsx)(h.Swiper,{modules:[m.Pagination],spaceBetween:0,slidesPerView:1,slidesPerGroup:1,speed:400,allowTouchMove:!0,loop:!1,pagination:{clickable:!0},onSwiper:e=>{S.current=e},onSlideChange:e=>{I(e.activeIndex)},className:"w-full",children:k.map((e,r)=>{let n=e.title?.trim()??"",s=(0,a.normalizeCmsImage)(e.image_url),o=p(e.event_date),u=e.event_location?.trim()??"",m=e.event_url?.trim()??null,g=m&&"javascript:void(0)"!==m?m:null,v=(0,t.jsxs)("div",{className:" relative w-full min-h-[var(--industry-updates-one-events-slide-min-height-mobile)] md:min-
422h-[var(--industry-updates-one-events-slide-min-height-desktop)] ",children:[s?(0,t.jsx)(l.default,{src:s,alt:n,fill:!0,sizes:"(max-width: 768px) 100vw, 50vw",className:"absolute inset-0 h-full w-full object-cover"}):null,(0,t.jsx)("div",{className:" pointer-events-none absolute inset-0 z-[1] bg-gradient-to-t from-black/80 via-black/35 to-transparent "}),(0,t.jsxs)("div",{className:" absolute inset-0 z-10 flex flex-col justify-end p-[var(--industry-updates-one-events-slide-padding)] text-start text-[var(--industry-updates-one-events-slide-text-color)] ",children:[n?(0,t.jsx)("h3",{className:" text-[length:var(--industry-updates-one-events-card-title-size-mobile)] font-[var(--industry-updates-one-events-card-title-weight-mobile)] leading-[var(--industry-updates-one-events-card-title-line-mobile)] tracking-wide text-[var(--industry-updates-one-events-slide-title-color)] md:text-[length:var(--industry-updates-one-events-card-title-size-desktop)] md:leading-[var(--industry-updates-one-events-card-title-line-desktop)] md:font-[var(--industry-updates-one-events-card-title-weight-desktop)] ",children:n}):null,(0,t.jsxs)("div",{className:"space-y-[var(--industry-updates-one-events-slide-row-gap)] pb-[var(--industry-updates-one-events-padding-bottom-mobile)] md:pb-[var(--industry-updates-one-events-padding-bottom-desktop)]",children:[o?(0,t.jsxs)("div",{className:"flex items-center gap-[var(--industry-updates-one-events-slide-row-gap)]",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center",children:(0,t.jsx)(c.CalenderIconNew,{className:"h-4 w-4 shrink-0 text-[var(--industry-updates-one-events-slide-text-color)]"})}),(0,t.jsx)("p",{className:" text-[length:var(--industry-updates-one-events-card-date-size-mobile)] font-[var(--industry-updates-one-events-card-date-weight-mobile)] leading-[var(--industry-updates-one-events-card-date-line-mobile)] md:text-[length:var(--industry-updates-one-events-card-date-size-desktop)] md:leading-[var(--industry-updates-one-events-card-date-line-desktop)] md:font-[var(--industry-updates-one-events-card-date-weight-desktop)] text-[var(--industry-updates-one-events-card-date-color)] ",children:o})]}):null,u?(0,t.jsxs)("div",{className:"flex items-start gap-[var(--industry-updates-one-events-slide-row-gap)]",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center",children:(0,t.jsx)(d.default,{className:"text-[var(--industry-updates-one-events-slide-text-color)]"})}),(0,t.jsx)("p",{className:" text-[length:var(--industry-updates-one-events-card-location-size-mobile)] font-[var(--industry-updates-one-events-card-location-weight-mobile)] leading-[var(--industry-updates-one-events-card-location-line-mobile)] md:text-[length:var(--industry-updates-one-events-card-location-size-desktop)] md:leading-[var(--industry-updates-one-events-card-location-line-desktop)] md:font-[var(--industry-updates-one-events-card-location-weight-desktop)] text-[var(--industry-updates-one-events-card-location-color)] ",children:u})]}):null]})]})]});return(0,t.jsx)(h.SwiperSlide,{children:g?(0,t.jsx)(i.Link,{href:g,target:"_blank",rel:"nofollow noopener noreferrer",children:v}):v},`event-${r}`)})}),(0,t.jsxs)("div",{className:" pointer-events-none absolute inset-0 z-20 flex items-center justify-between px-3 ",children:[(0,t.jsx)("button",{type:"button","aria-label":_("previous_slide"),disabled:L<=0,onClick:A,className:`pointer-events-auto ${g}`,children:(0,t.jsx)(o.ArrowIcon,{className:"h-3 w-4 rotate-180 rtl:rotate-0"})}),(0,t.jsx)("button",{type:"button","aria-label":_("next_slide"),disabled:L>=z,onClick:q,className:`pointer-events-auto ${g}`,children:(0,t.jsx)(o.ArrowIcon,{className:"h-3 w-4 rtl:rotate-180"})})]})]}),j?(0,t.jsx)(i.Link,{href:j,className:"btn btn-primary mx-auto mt-auto inline-flex items-center justify-center",children:N||_("view_more")}):(0,t.jsx)(s.Button,{variant:"primary",className:"mx-auto mt-auto inline-flex items-center justify-center",children:N||_("view_more")})]})]})}):null,$?(0,t.jsx)("div",{className:"order-1 md:order-2 flex min-h-0 h-full flex-col",children:(0,t.jsxs)("div",{className:" flex h-full flex-col gap-[var(--industry-updates-one-news-gap-main)] bg-[var(--industry-updates-one-panel-bg)] p-[var(--industry-updates-one-panel-padding-mobile)] lg:p-[var(--industry-updates-one-panel-padding-desktop)] md:pb-[var(--industry-updates-one-panel-padding-bottom-desktop)]! ",children:[b?(0,t.jsx)("div",{className:"flex flex-col gap-[var(--industry-updates-one-news-gap-header)]",children:(0,t.jsx)("h2",{className:" text-start text-[length:var(--industry-updates-one-subsection-heading-size-mobile)] leading-[var(--industry-updates-one-subsection-heading-line-mobile)] font-[var(--industry-updates-one-subsection-heading-weight-mobile)] text-[var(--industry-updates-one-subsection-heading-color)] md:text-[length:var(--industry-updates-one-subsection-heading-size-desktop)] md:leading-[var(--industry-updates-one-subsection-heading-line-desktop)] md:font-[var(--industry-updates-one-subsection-heading-weight-desktop)] ",children:b})}):null,(0,t.jsx)("div",{className:"grid flex-1 grid-cols-1 gap-[var(--industry-updates-one-news-article-gap-mobile)] md:gap-[var(--industry-updates-one-news-article-gap-desktop)]",children:C.map((e,n)=>{let s=e.title?.trim()??"",o=(0,a.normalizeCmsImage)(e.thumbnail_image),d=p(e.published_at),u=e.post_url?.trim()??null,m=u?(0,r.normalizeMarketInsightPostHref)(u):null,h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:" relative w-full max-h-full shrink-0 min-h-[var(--industry-updates-one-news-thumbnail-height-desktop)] h-[var(--industry-updates-one-news-thumbnail-height-mobile)] md:h-auto md:self-stretch md:w-[var(--industry-updates-one-news-thumbnail-width-md)] ",children:o?(0,t.jsx)(l.default,{src:o,alt:s||_("blog_thumbnail"),fill:!0,sizes:"(max-width: 768px) 100vw, 220px",className:"absolute inset-0 h-full w-full object-cover"}):null}),(0,t.jsxs)("div",{className:" flex min-w-0 flex-1 flex-col justify-center px-[var(--industry-updates-one-news-card-padding-x)] py-[var(--industry-updates-one-news-card-padding-y)] text-start ",children:[s?(0,t.jsx)("p",{className:" line-clamp-2 text-[length:var(--industry-updates-one-news-heading-size-mobile)] md:text-[length:var(--industry-updates-one-news-heading-size-desktop)] font-[var(--industry-updates-one-news-heading-weight)] leading-[var(--industry-updates-one-news-heading-line)] text-[var(--industry-updates-one-news-heading-color)] ",children:s}):null,d?(0,t.jsx)("div",{className:" flex items-center gap-[var(--industry-updates-one-news-footer-gap)] pt-[var(--industry-updates-one-news-footer-pt)] ",children:(0,t.jsxs)("span",{className:" flex items-center gap-2 text-[length:var(--industry-updates-one-news-date-size-mobile)] md:text-[length:var(--industry-updates-one-news-date-size-desktop)] font-[var(--industry-updates-one-news-date-weight)] leading-[var(--industry-updates-one-news-data-line)] text-[var(--industry-updates-one-news-date-color)] ",children:[(0,t.jsx)(c.CalenderIconNew,{className:"h-4 w-4 shrink-0 text-[var(--industry-updates-one-news-date-color)]"}),d]})}):null]})]});return(0,t.jsx)("div",{className:" flex flex-col md:flex-row overflow-hidden bg-[var(--industry-updates-one-news-card-bg)] ga
422p-[var(--industry-updates-one-news-card-gap-mobile)] md:gap-[var(--industry-updates-one-news-card-gap-desktop)] ",children:m?(0,t.jsx)(i.Link,{href:m,className:"flex flex-col md:flex-row w-full",children:h}):h},`post-${n}`)})}),w?(0,t.jsx)(i.Link,{href:w,className:"btn btn-primary mx-auto mt-auto inline-flex items-center justify-center",children:y||_("view_more")}):(0,t.jsx)(s.Button,{variant:"primary",className:"mx-auto mt-auto inline-flex items-center justify-center",children:y||_("view_more")})]})}):null]})]})}):null}e.s(["IndustryUpdateSectionOne",()=>v,"IndustryUpdatesSectionOne",()=>v],16450)},700128,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(10451),l=e.i(809009),i=e.i(458123),n=e.i(30700),s=e.i(657688);e.i(79951);var o=e.i(902936),c=e.i(271645),d=e.i(554236),u=e.i(752140),m=e.i(231807),h=e.i(337049),p=e.i(454133),g=e.i(450063),v=e.i(22584),x=e.i(35135),b=e.i(158760),f=e.i(861745),w=e.i(948148);let y=new Set(["oleochemicals"]);function j(e){return"string"==typeof e&&e.trim()?e:"number"==typeof e?String(e):"—"}function N(e,t){return t?e.toLowerCase()===t.toLowerCase():"all"===e}e.s(["default",0,({discussions:e,featuredQuestions:_,listLoadError:k})=>{let C=(0,o.useRouter)(),S=(0,w.useTranslations)();(0,f.useLocale)();let{requireAuthForPost:L}=(0,g.useCommunityAuth)(),I=(0,b.useStorefrontConfig)(),z=I?.meta?.websiteName?.trim()??"",A=I?.meta?.isIndustryWebsite??!!z,[q,E]=(0,c.useState)("most-recently"),[$,P]=(0,c.useState)(()=>z||"all"),[T,M]=(0,c.useState)(()=>Object.fromEntries(e.map(e=>[e.slug,e.votes_count]))),[O,F]=(0,c.useState)(m.readQuestionVoteMap),[R,B]=(0,c.useState)(""),D=(0,c.useMemo)(()=>{if(A)return z?[z]:["all"];let t=Array.from(new Set(e.map(e=>j(e.business_vertical_id)).filter(e=>"—"!==e&&!y.has(e.trim().toLowerCase())))).filter(e=>!z||e.toLowerCase()!==z.toLowerCase());return z?[z,...t]:["all",...t]},[e,A,z]),H=N($,z)?z||S("all_industries"):$,U=(0,c.useMemo)(()=>[...N($,z)?e:e.filter(e=>j(e.business_vertical_id).toLowerCase()===$.toLowerCase())].sort((e,t)=>"most-voted"===q?(T[t.slug]??t.votes_count)-(T[e.slug]??e.votes_count):"most-commented"===q?t.answers_count-e.answers_count:new Date(t.published_at??0).getTime()-new Date(e.published_at??0).getTime()),[e,$,q,T,z]),G=_.map(e=>({id:e.id,title:e.translation.title,link:e.slug?v.routes.community.detail(e.slug):v.routes.community.list,answerCount:e.answers_count??0})),W=e=>{let t=(0,h.getCommunityQuestionDetailPath)(e);t!==v.routes.community.list&&C.push(t)},V=async(e,t)=>{if(e.preventDefault(),e.stopPropagation(),B(""),(0,m.isDuplicateQuestionVote)(t.slug,1))return;let a=t.translation.title?.trim()||t.slug?.trim()||S("question"),r={v:1,action:"vote",payload:{target:"question",question_slug:t.slug,question_title:a,value:1}};try{if(!await L(r,"community:list-question-vote",async()=>{await (0,u.postCommunityVote)({question_slug:t.slug,question_title:a,value:1}),(0,m.setQuestionVote)(t.slug,1),F(e=>({...e,[t.slug]:1})),M(e=>({...e,[t.slug]:(e[t.slug]??t.votes_count)+1})),C.refresh()}))return}catch(e){B(e instanceof Error?e.message:S("error_unable_to_submit_vote"))}};return(0,t.jsx)("div",{className:"pt-[var(--community-discussion-padding-top-desktop)] md:pb-[var(--community-discussion-padding-bottom-desktop)]",children:(0,t.jsx)("div",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 md:gap-[var(--community-discussion-grid-gap-desktop)]",children:[(0,t.jsxs)("div",{className:"md:col-span-2",children:[(0,t.jsx)("h2",{className:'mb-[var(--community-col-one-title-margin-bottom-desktop)] ps-[var(--community-col-one-line-heading-padding-left-desktop)]  before:absolute before:bottom-0 before:start-0 before:top-0  before:w-[var(--community-col-one-line-title-width)]  before:rounded-[var(--community-col-one-line-title-round)] before:bg-[var(--community-col-one-line-title-color)]  before:content-[""] relative text-start text-[18px] md:text-[length:var(--community-col-one-title-size-desktop)] md:leading-[var(--community-col-one-title-line-height-desktop)] font-[var(--community-col-one-title-weight-mobile)] text-[var(--community-col-one-title-color)] ',children:S("all_discussions")}),k?(0,t.jsx)("p",{className:"mt-4 text-start text-sm text-[#f60000]",role:"alert",children:k}):null,(0,t.jsxs)("div",{className:"md:my-[var(--community-col-one-input-section-margin-desktop)]",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:" w-full mt-[var(--community-col-inputs-mobile-margin-top)] md:w-[33.3%] mt-0",children:[(0,t.jsx)("label",{htmlFor:"community-filter-vertical",className:"mb-4 block text-start text-[var(--community-control-label-color)] font-[var(--community-control-label-weight)] text-[length:var(--community-control-label-size-m)
422] leading-[var(--community-control-label-lh-m)] md:text-[length:var(--community-control-label-size-d)] md:leading-[var(--community-control-label-lh-d)]",children:S("filter_by_colon")}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{id:"community-filter-vertical",disabled:A,"aria-disabled":A,className:" w-full rounded-[var(--community-control-radius)] border-2 border-[color:var(--community-control-border)] bg-[var(--community-control-bg)] appearance-none px-5 pe-[var(--community-select-pr)] py-[6px] md:px-6 md:pe-[var(--community-select-pr)] md:py-2 text-start text-[var(--community-control-text)] text-[length:var(--community-control-size-m)] leading-[var(--community-control-lh-m)] md:text-[length:var(--community-control-size-d)] md:leading-[var(--community-control-lh-d)] leading-[var(--community-control-lh)] focus:border-[color:var(--community-control-border-focus)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 ",value:$,onChange:e=>P(e.target.value),children:D.map(e=>(0,t.jsx)("option",{value:e,children:"all"===e?S("all_industries"):e},e))}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute end-6 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--community-select-icon-color)]","aria-hidden":"true"})]})]}),(0,t.jsxs)("div",{className:"w-full mt-[var(--community-col-inputs-mobile-margin-top)] md:w-[33.3%] mt-0",children:[(0,t.jsx)("label",{htmlFor:"community-sort",className:"mb-4 block text-start text-[var(--community-control-label-color)] font-[var(--community-control-label-weight)] text-[length:var(--community-control-label-size-m)] leading-[var(--community-control-label-lh-m)] md:text-[length:var(--community-control-label-size-d)] md:leading-[var(--community-control-label-lh-d)]",children:S("sort_by_colon")}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:"community-sort",className:" w-full rounded-[var(--community-control-radius)] border-2 border-[color:var(--community-control-border)] bg-[var(--community-control-bg)] appearance-none px-5 pe-[var(--community-select-pr)] py-[6px] md:px-6 md:pe-[var(--community-select-pr)] md:py-2 text-start text-[var(--community-control-text)] text-[length:var(--community-control-size-m)] leading-[var(--community-control-lh-m)] md:text-[length:var(--community-control-size-d)] md:leading-[var(--community-control-lh-d)] leading-[var(--community-control-lh)] focus:border-[color:var(--community-control-border-focus)] focus:outline-none ",value:q,onChange:e=>E(e.target.value),"aria-label":S("sort_by"),children:[(0,t.jsx)("option",{value:"most-recently",children:S("sort_most_recently")}),(0,t.jsx)("option",{value:"most-voted",children:S("sort_most_voted")}),(0,t.jsx)("option",{value:"most-commented",children:S("sort_most_commented")})]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute end-6 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--community-select-icon-color)]","aria-hidden":"true"})]})]})]}),(0,t.jsx)("div",{className:"mt-[var(--community-col-industry-name-margin-top-desktop)]",children:(0,t.jsx)("span",{className:"text-start text-[var(--community-col-one-industry-name-text-color)] inline-block rounded-[50px]  bg-[var(--community-col-industry-name-bg)] text-[var(--community-col-industry-name-text-size)]  px-[var(--community-col-industry-name-padding-horizontal-mobile)] py-[var(--community-col-industry-name-padding-vertical-mobile)] md:px-[var(--community-col-industry-name-padding-horizontal)] md:py-[var(--community-col-industry-name-padding-vertical)]",children:H})})]}),U.map(e=>{let a,o=(0,h.getCommunityAuthorName)(e),c=e.translation.title?.trim()||S("view_discussion");return(0,t.jsxs)("article",{role:"link",tabIndex:0,"aria-label":S("open_discussion",{title:c}),onClick:()=>W(e),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),W(e))},className:"mt-[var(--community-discussion-card-margin-top-mobile)] border-[1px] solid border-[#e5e7e9] block cursor-pointer transition-shadow hover:shadow-[var(--community-discussion-card-shadow-hover)] hover:border-[var(--community-discussion-card-border-hover)] p-[var(--community-discussion-card-padding-desktop)] mb-[var(--community-discussion-card-margin-bottom)] md:mb-0",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-[var(--community-discussion-name-margin-bottom)]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[var(--community-discussion-name-gap)]",children:[(0,t.jsx)("div",{className:"relative rounded-[var(--community-discussion-avatar-border-radius)] overflow-hidden w-[var(--community-discussion-avatar-size)] h-[var(--community-discussion-avatar-size)] bg-[var(--community-discussion-avatar-bg)]",children:(0,t.jsx)(s.default,{src:"/community/username.png",alt:o,width:50,height:50,className:"object-cover"})}),(0,t.jsx)("p",{className:"m-0 text-start text-[var(--community-discussion-name-color)] text-[length:var(--community-discussion-name-size-mobile)] leading-[var(--community-discussion-name-line-height-mobile)] font-[var(--community-discussion-name-font-we
422ight)] md:text-[length:var(--community-discussion-name-size-desktop)] md:leading-[var(--community-discussion-name-line-height-desktop)]",children:o})]}),(0,t.jsx)(x.ClientRelativeTime,{dateString:e.published_at,unknownLabel:S("unknown_date"),className:"text-start text-[var(--community-discussion-time-color)] text-sm md:text-[var(--community-discussion-time-font-size)]"})]}),(0,t.jsx)("h3",{className:"m-0 text-start text-[length:var(--community-discussion-title-size-mobile)] leading-[var(--community-discussion-title-line-height-mobile)] font-[var(--community-discussion-title-font-weight)] mt-[var(--community-discussion-title-margin-top)] text-[var(--community-discussion-title-color)] md:text-[length:var(--community-discussion-title-size-desktop)] md:leading-[var(--community-discussion-title-line-height-desktop)]",children:e.translation.title}),(0,t.jsx)("p",{className:"text-start text-[var(--community-discussion-description-color)] font-[var(--community-discussion-description-font-weight)] mt-[var(--community-discussion-description-margin-top)]  mb-[var(--community-discussion-description-margin-bottom)] max-md:text-sm",children:(0,p.extractCommunityText)(e.translation.body)||S("no_details_available")}),(0,t.jsx)("span",{className:"mb-[var(--community-col-industry-margin-bottom-mobile)] md:mb-[var(--community-col-industry-name-margin-top-desktop)] text-start text-[var(--community-discussion-industry-name-color)]  inline-block rounded-[50px]  border border-[var(--community-discussion-industry-name-border-color)]  text-[var(--community-col-industry-name-text-size)]  px-[var(--community-col-industry-name-padding-horizontal-mobile)] py-[var(--community-col-industry-name-padding-vertical-mobile)] md:px-[var(--community-col-industry-name-padding-horizontal)] md:py-[var(--community-col-industry-name-padding-vertical)]",children:j(e.business_vertical_id)}),(0,t.jsx)("hr",{className:"my-[var(--community-discussion-divider-margin-y)] border-[var(--community-discussion-divider-bg)] border-[2px]"}),(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex items-center gap-[var(--community-discussion-stats-gap)]",children:[(a=1===(O[e.slug]??(0,m.getQuestionVote)(e.slug)),(0,t.jsxs)("button",{type:"button","aria-label":S("upvote_discussion"),className:`flex items-center gap-[var(--community-discussion-stat-item-gap)] border-0 bg-transparent p-0 ${a?"cursor-not-allowed opacity-60":"cursor-pointer"}`,disabled:a,onClick:t=>void V(t,e),children:[(0,t.jsx)(l.UpIconGrey,{}),(0,t.jsx)("span",{className:"text-[var(--community-discussion-stat-text-color)]",children:T[e.slug]??e.votes_count})]})),(0,t.jsxs)("button",{type:"button","aria-label":`${e.answers_count} answers — open discussion`,className:"flex items-center gap-[var(--community-discussion-stat-item-gap)] border-0 bg-transparent p-0 cursor-pointer",onClick:t=>{t.stopPropagation(),W(e)},children:[(0,t.jsx)(r.CommentGrey,{}),(0,t.jsx)("span",{className:"text-[var(--community-discussion-stat-text-color)]",children:e.answers_count})]}),(0,t.jsxs)("div",{className:"flex items-center gap-[var(--community-discussion-stat-item-gap)]",children:[(0,t.jsx)(i.ViewGrey,{}),(0,t.jsx)("span",{className:"text-[var(--community-discussion-stat-text-color)]",children:e.views_count})]})]}),(0,t.jsxs)("span",{className:"flex items-center gap-[var(--community-discussion-view-button-gap)] text-[var(--community-discussion-view-button-color)] font-[var(--community-discussion-view-button-font-weight)] max-md:text-sm","aria-hidden":"true",children:[S("view_discussion"),(0,t.jsx)(n.RightIcon,{className:"text-[var(--brand-secondary)] rtl:rotate-180"})]})]})]},e.id)}),R?(0,t.jsx)("p",{className:"text-start text-sm text-[#f60000]",children:R}):null,0===U.length?(0,t.jsx)("p",{className:"text-start text-sm text-[var(--community-discussion-time-color)]",children:S("no_questions_found")}):null]}),(0,t.jsx)(d.CommuntiyDisscussionQuestions,{heading:S("featured_questions"),questions:G,emptyMessage:S("no_featured_questions")})]})})})}])},686711,e=>{"use strict";var t=e.i(843476);e.i(527967);
422var a=e.i(830167),r=e.i(715489),r=r,l=e.i(20648),i=e.i(657688);e.i(79951);var n=e.i(902936),s=e.i(271645),o=e.i(948148);let c=[{id:"vacancy-1",title:"Supply Chain & Business Development",country:"sri-lanka",jobFunction:"marketing",jobType:"internship",seniorityLevel:"entry",location:"Sri Lanka"},{id:"vacancy-2",title:"Sales Marketing Executive",country:"indonesia",jobFunction:"marketing",jobType:"full-time",seniorityLevel:"entry",location:"Indonesia"}];function d(){let e=(0,o.useTranslations)(),[d,u]=(0,s.useState)(!1),[m,h]=(0,s.useState)(""),[p,g]=(0,s.useState)(""),[v,x]=(0,s.useState)(""),[b,f]=(0,s.useState)(""),[w,y]=(0,s.useState)(""),[j,N]=(0,s.useState)({searchText:"",country:"",jobFunction:"",jobType:"",seniorityLevel:""}),_=(0,s.useMemo)(()=>c.filter(e=>{let t=!j.searchText||e.title.toLowerCase().includes(j.searchText.toLowerCase().trim()),a=!j.country||e.country===j.country,r=!j.jobFunction||e.jobFunction===j.jobFunction,l=!j.jobType||e.jobType===j.jobType,i=!j.seniorityLevel||e.seniorityLevel===j.seniorityLevel;return t&&a&&r&&l&&i}),[j]);return(0,t.jsxs)("section",{className:"layout-container md:px-5 px-3",children:[(0,t.jsx)("div",{className:"py-[var(--vacancy-section-padding-y)]",children:(0,t.jsx)("div",{className:"border border-[var(--vacancy-filter-card-border-color)] bg-[var(--vacancy-filter-card-bg)] rounded-[var(--vacancy-filter-card-radius)] shadow-[var(--vacancy-filter-card-shadow)] p-[var(--vacancy-filter-card-padding)]",children:(0,t.jsx)("div",{className:"md:px-[var(--vacancy-filter-inner-padding-x-desktop)]",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-x-[var(--vacancy-filter-fields-col-gap)] gap-y-[var(--vacancy-filter-fields-row-gap)]",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",placeholder:e("search_jobs"),value:m,onChange:e=>h(e.target.value),className:"h-[var(--vacancy-filter-field-height)] rounded-[var(--vacancy-filter-field-radius)] border border-[var(--vacancy-filter-field-border-color)] bg-[var(--vacancy-filter-field-bg)] px-4 pe-12 text-start text-[16px] font-[600] placeholder:text-[16px] placeholder:font-[600] placeholder:text-[var(--vacancy-filter-field-placeholder-color)] focus:border-[var(--vacancy-filter-field-focus-border-color)] w-full outline-none"}),(0,t.jsx)(r.default,{className:"w-[22px] h-[22px] absolute end-4 top-1/2 -translate-y-1/2 text-[var(--vacancy-filter-search-icon-color)] pointer-events-none"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:p,onChange:e=>g(e.target.value),className:"h-[var(--vacancy-filter-field-height)] rounded-[var(--vacancy-filter-field-radius)] border border-[var(--vacancy-filter-field-border-color)] bg-[var(--vacancy-filter-field-bg)] px-4 pe-12 text-start text-[16px] font-[600] text-[var(--vacancy-filter-field-placeholder-color)] focus:border-[var(--vacancy-filter-field-focus-border-color)] w-full appearance-none outline-none",children:[(0,t.jsx)("option",{value:"",children:e("select_country")}),(0,t.jsx)("option",{value:"sri-lanka",children:e("sri_lanka")}),(0,t.jsx)("option",{value:"indonesia",children:e("indonesia")}),(0,t.jsx)("option",{value:"singapore",children:e("singapore")}),(0,t.jsx)("option",{value:"india",children:e("india")})]}),(0,t.jsx)(a.ArrowIcon,{className:"w-3 h-3 absolute end-4 top-1/2 -translate-y-1/2 text-[var(--vacancy-filter-select-icon-color)] pointer-events-none rotate-90"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:v,onChange:e=>x(e.target.value),className:"h-[var(--vacancy-filter-field-height)] rounded-[var(--vacancy-filter-field-radius)] border border-[var(--vacancy-filter-field-border-color)] bg-[var(--vacancy-filter-field-bg)] px-4 pe-12 text-start text-[16px] font-[600] text-[var(--vacancy-filter-field-placeholder-color)] focus:border-[var(--vacancy-filter-field-focus-border-color)] w-full appearance-none outline-none",children:[(0,t.jsx)("option",{value:"",children:e("select_job_function")}),(0,t.jsx)("option",{value:"marketing",children:e("marketing")}),(0,t.jsx)("option",{value:"software-developer",children:e("software_developer")})]}),(0,t.jsx)(a.ArrowIcon,{className:"w-3 h-3 absolute end-4 top-1/2 -translate-y-1/2 text-[var(--vacancy-filter-select-icon-color)] pointer-events-none rotate-90"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:b,onChange:e=>f(e.target.value),className:"h-[var(--vacancy-filter-field-height)] rounded-[var(--vacancy-filter-field-radius)] border border-[var(--vacancy-filter-field-border-color)] bg-[var(--vacancy-filter-field-bg)] px-4 pe-12 text-start text-[16px] font-[600] text-[var(--vacancy-filter-field-placeholder-color)] focu
422s:border-[var(--vacancy-filter-field-focus-border-color)] w-full appearance-none outline-none",children:[(0,t.jsx)("option",{value:"",children:e("select_job_type")}),(0,t.jsx)("option",{value:"internship",children:e("internship")}),(0,t.jsx)("option",{value:"full-time",children:e("full_time")}),(0,t.jsx)("option",{value:"part-time",children:e("part_time")})]}),(0,t.jsx)(a.ArrowIcon,{className:"w-3 h-3 absolute end-4 top-1/2 -translate-y-1/2 text-[var(--vacancy-filter-select-icon-color)] pointer-events-none rotate-90"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:w,onChange:e=>y(e.target.value),className:"h-[var(--vacancy-filter-field-height)] rounded-[var(--vacancy-filter-field-radius)] border border-[var(--vacancy-filter-field-border-color)] bg-[var(--vacancy-filter-field-bg)] px-4 pe-12 text-start text-[16px] font-[600] text-[var(--vacancy-filter-field-placeholder-color)] focus:border-[var(--vacancy-filter-field-focus-border-color)] w-full appearance-none outline-none",children:[(0,t.jsx)("option",{value:"",children:e("select_seniority_level")}),(0,t.jsx)("option",{value:"entry",children:e("entry")}),(0,t.jsx)("option",{value:"mid-level",children:e("mid_level")}),(0,t.jsx)("option",{value:"low",children:e("low")}),(0,t.jsx)("option",{value:"high",children:e("high")})]}),(0,t.jsx)(a.ArrowIcon,{className:"w-3 h-3 absolute end-4 top-1/2 -translate-y-1/2 text-[var(--vacancy-filter-select-icon-color)] pointer-events-none rotate-90"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-[var(--vacancy-filter-fields-row-gap)] md:gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{N({searchText:m,country:p,jobFunction:v,jobType:b,seniorityLevel:w})},className:"bg-[var(--vacancy-filter-action-bg)] rounded-[100px] p-[10px] w-full text-[var(--vacancy-filter-action-color)] my-0 md:my-[10px] border-none cursor-pointer",children:e("search")}),(0,t.jsx)("button",{type:"button",onClick:()=>{h(""),g(""),x(""),f(""),y(""),N({searchText:"",country:"",jobFunction:"",jobType:"",seniorityLevel:""})},className:"bg-[var(--vacancy-filter-action-bg)] rounded-[100px] p-[10px] w-full text-[var(--vacancy-filter-action-color)] my-0 md:my-[10px] border-none cursor-pointer",children:e("clear")})]})]})})})}),_.length>0?_.map(a=>(0,t.jsxs)("div",{className:"block bg-[var(--vacancy-listing-card-bg)] rounded-[var(--vacancy-listing-card-radius)] shadow-[var(--vacancy-listing-card-shadow)] p-[var(--vacancy-listing-card-padding)] mb-[var(--vacancy-listing-card-margin-bottom)] border-2 border-[var(--vacancy-listing-card-border-default)] transition-all duration-300 ease-in-out cursor-pointer hover:border-[var(--vacancy-listing-card-border-hover)]",children:[(0,t.jsx)("h3",{className:"text-start text-[color:var(--vacancy-listing-title-color)] text-[length:var(--vacancy-listing-title-size-mobile)] md:text-[length:var(--vacancy-listing-title-size)] font-[var(--vacancy-listing-title-weight)] mb-[var(--vacancy-listing-title-margin-bottom)]",children:a.title}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-[2.5fr_1fr] gap-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[var(--vacancy-listing-meta-grid-gap-mobile)] md:gap-[var(--vacancy-listing-meta-grid-gap)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-label-color)] text-[length:var(--vacancy-listing-meta-label-size)] leading-[var(--vacancy-listing-meta-label-line-height)] font-[var(--vacancy-listing-meta-label-weight)] mb-[var(--vacancy-listing-meta-label-margin-bottom)] whitespace-nowrap",children:e("seniority_level")}),(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-value-color)] text-[length:var(--vacancy-listing-meta-value-size)] font-[var(--vacancy-listing-meta-value-weight)]",children:"entry"===a.seniorityLevel?e("entry_level"):"mid-level"===a.seniorityLevel?e("mid_level"):a.seniorityLevel})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-label-color)] text-[length:var(--vacancy-listing-meta-label-size)] leading-[var(--vacancy-listing-meta-label-line-height)] font-[var(--vacancy-listing-meta-label-weight)] mb-[var(--vacancy-listing-meta-label-margin-bottom)] whitespace-nowrap",children:e("job_type")}),(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-value-color)] text-[length:var(--vacancy-listing-meta-value-size)] font-[var(--vacancy-listing-meta-value-we
422ight)]",children:"full-time"===a.jobType?e("full_time"):"part-time"===a.jobType?e("part_time"):"internship"===a.jobType?e("internship"):a.jobType})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-label-color)] text-[length:var(--vacancy-listing-meta-label-size)] leading-[var(--vacancy-listing-meta-label-line-height)] font-[var(--vacancy-listing-meta-label-weight)] mb-[var(--vacancy-listing-meta-label-margin-bottom)] whitespace-nowrap",children:e("location")}),(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-value-color)] text-[length:var(--vacancy-listing-meta-value-size)] font-[var(--vacancy-listing-meta-value-weight)]",children:a.location})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-label-color)] text-[length:var(--vacancy-listing-meta-label-size)] leading-[var(--vacancy-listing-meta-label-line-height)] font-[var(--vacancy-listing-meta-label-weight)] mb-[var(--vacancy-listing-meta-label-margin-bottom)] whitespace-nowrap",children:e("job_function")}),(0,t.jsx)("p",{className:"text-start text-[color:var(--vacancy-listing-meta-value-color)] text-[length:var(--vacancy-listing-meta-value-size)] font-[var(--vacancy-listing-meta-value-weight)]",children:"software-developer"===a.jobFunction?e("software_developer"):e("marketing")})]})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center justify-start md:justify-end gap-[var(--vacancy-listing-side-gap)]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>u(!0),className:"bg-[var(--vacancy-filter-action-bg)] rounded-[100px] py-[var(--vacancy-listing-apply-padding-y)] px-[var(--vacancy-listing-apply-padding-x)] w-auto text-[var(--vacancy-filter-action-color)] border-none cursor-pointer text-center whitespace-nowrap",children:e("apply_now")}),(0,t.jsx)(n.Link,{href:"/",className:"inline-flex",children:(0,t.jsx)(i.default,{src:"/careers/share-icon-vacancy.webp",alt:e("share_vacancy"),width:44,height:44,className:"w-11 h-11 object-contain"})})]})]})]},a.id)):(0,t.jsx)("div",{className:"block bg-[var(--vacancy-listing-card-bg)] rounded-[var(--vacancy-listing-card-radius)] shadow-[var(--vacancy-listing-card-shadow)] p-[var(--vacancy-listing-card-padding)] mb-[var(--vacancy-listing-card-margin-bottom)] border-2 border-[var(--vacancy-listing-card-border-default)]",children:(0,t.jsx)("p",{className:"text-center text-[length:var(--vacancy-listing-no-data-size)] text-[color:var(--vacancy-listing-no-data-color)]",children:e("no_data_found")})}),(0,t.jsx)(l.JobApplicationForm,{isOpen:d,onClose:()=>u(!1)})]})}e.s(["JobVacancies",()=>d],686711)},329580,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(527967);var r=e.i(830167);e.i(149797);var l=e.i(967224),i=e.i(724960),n=e.i(948148);let s="all-products-filter-label",o="all-products-sort",c="all-products-category-search",d="all-products-category-menu",u="all-products-heading",m="text-[color:var(--all-products-grid-products-heading-color)] text-[length:var(--all-products-grid-products-heading-size-mobile)] leading-[var(--all-products-grid-products-heading-lh-mobile)] md:text-[length:var(--all-products-grid-products-heading-size-desktop)] md:leading-[var(--all-products-grid-products-heading-lh-desktop)] font-[var(--all-products-grid-products-heading-weight)]";async function h(e,t,a,r){let l=new URLSearchParams({page:String(e)});void 0!==t&&l.set("category_id",String(t)),void 0!==a&&l.set("per_page",String(a));let i=r?`/api/industries/${encodeURIComponent(r)}/products`:"/api/products";try{let e=await fetch(`${i}?${l.toString()}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!e.ok)return null;return await e.json()}catch{return null}}function p(e){let t=new Set,a=[];for(let r of e)t.has(r.id)||(t.add(r.id),a.push(r));return a}async function g(e,t,a,r,l){let i=t>1;if(l){let e=await h(t,void 0,a,l);return e?.data?{products:i?p([...r,...e.data]):e.data,meta:e.meta,canLoadMore:e.meta.current_page<e.meta.last_page}:null}if(0===e.length){let e=await h(t,void 0,a);return e?.data?{products:i?p([...r,...e.data]):e.data,meta:e.meta,canLoadMore:e.meta.current_page<e.meta.last_page}:null}if(1===e.length){let l=await h(t,e[0].id,a);return l?.data?{products:i?p([...r,...l.data]):l.data,meta:l.meta,canLoadMore:l.meta.current_page<l.meta.last_page}:null}let n=(await Promise.all(e.map(e=>
422h(t,e.id,a)))).filter(e=>!!e?.data);if(0===n.length)return null;let s=p(n.flatMap(e=>e.data));return{products:i?p([...r,...s]):s,meta:{...n[0].meta,current_page:t},canLoadMore:n.some(e=>e.meta.current_page<e.meta.last_page)}}function v({initialProducts:e,initialMeta:h,categories:p,perPage:v,showFilter:x=!0,heading:b="Products",noPaddingTop:f=!1,industrySlug:w}){let y=(0,n.useTranslations)(),[j,N]=(0,a.useState)(e),[_,k]=(0,a.useState)(h),[C,S]=(0,a.useState)([]),[L,I]=(0,a.useState)("asc"),[z,A]=(0,a.useState)(!1),[q,E]=(0,a.useState)(""),[$,P]=(0,a.useState)(h.current_page<h.last_page),[T,M]=(0,a.useTransition)(),[O,F]=(0,a.useTransition)(),R=(0,a.useRef)(null),B=(0,a.useMemo)(()=>{let e="desc"===L?-1:1;return[...j].sort((t,a)=>e*t.name.localeCompare(a.name,void 0,{numeric:!0,sensitivity:"base"}))},[j,L]),D=(0,a.useMemo)(()=>{if(!x)return[];let e=q.trim().toLowerCase();return e?p.filter(t=>t.name.toLowerCase().includes(e)):p},[p,q,x]),H=(0,a.useMemo)(()=>0===C.length?y("select_category"):1===C.length?C[0].name:C.map(e=>e.name).join(", "),[C,y]);function U(e){F(async()=>{let t=await g(e,1,v,[],w);t&&(N(t.products),k(t.meta),P(t.canLoadMore))})}(0,a.useEffect)(()=>{if(!x||!z)return;let e=e=>{R.current&&e.target instanceof Node&&!R.current.contains(e.target)&&A(!1)},t=e=>{"Escape"===e.key&&A(!1)};return window.addEventListener("pointerdown",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("pointerdown",e),window.removeEventListener("keydown",t)}},[z,x]);let G=O||T,W=b??y("products");return(0,t.jsx)("section",{"aria-labelledby":u,className:`${f?"pt-0 md:pt-0":"pt-[length:var(--all-products-grid-pt-mobile)] md:pt-[length:var(--all-products-grid-pt-desktop)]"} pb-[length:var(--all-products-grid-pb-mobile)] md:pb-[length:var(--all-products-grid-pb-desktop)]`,children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[x?(0,t.jsx)("h2",{id:u,className:`sr-only ${m}`,children:W}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-[length:var(--all-products-grid-root-gap)]",children:[(0,t.jsxs)("div",{className:x?"flex flex-col gap-[length:var(--all-products-grid-controls-gap)] md:flex-row md:items-end md:justify-between w-full":"flex flex-col gap-[length:var(--all-products-grid-controls-gap)] md:flex-row md:items-center md:justify-between w-full",children:[x?null:(0,t.jsx)("h2",{id:u,className:`m-0 mb-5 md:mb-0 shrink-0 ${m}`,children:W}),x?(0,t.jsxs)("div",{className:"flex flex-row items-center gap-[length:var(--all-products-grid-control-row-gap)] w-full md:w-auto",children:[(0,t.jsx)("span",{id:s,className:i.ALL_PRODUCTS_LABEL_CLASS,children:y("filter_by_colon")}),(0,t.jsxs)("div",{ref:R,className:"relative w-full min-w-0 md:w-auto",children:[(0,t.jsxs)("button",{type:"button","aria-haspopup":"menu","aria-expanded":z,"aria-labelledby":s,"aria-controls":d,onClick:()=>A(e=>!e),disabled:O,className:"w-full appearance-none md:max-w-[length:var(--all-products-grid-select-max-w-desktop)] border-2 border-[var(--all-products-grid-select-border-color)] rounded-[length:var(--all-products-grid-select-radius)] bg-[var(--all-products-grid-select-bg)] px-[length:var(--all-products-grid-select-px-mobile)] py-[length:var(--all-products-grid-select-py-mobile)] md:px-[length:var(--all-products-grid-select-px-desktop)] md:py-[length:var(--all-products-grid-select-py-desktop)] outline-none cursor-pointer min-w-[length:var(--all-products-grid-select-min-w)] text-[var(--all-products-grid-filter-select-text)] hover:border-[var(--all-products-grid-select-border-hover)] text-start relative disabled:opacity-60 disabled:cursor-wait",children:[(0,t.jsx)("span",{className:"line-clamp-1 pe-8",children:H}),(0,t.jsx)("span",{className:"pointer-events-none absolute inset-y-0 end-0 flex items-center pe-[length:var(--all-products-grid-arrow-pr)]",children:(0,t.jsx)(r.ArrowIcon,{className:"h-[length:var(--all-products-grid-arrow-size)] w-[length:var(--all-products-grid-arrow-size)] rotate-90 text-[var(--all-products-grid-arrow-color)]","aria-hidden":!0})})]}),z?(0,t.jsxs)("div",{id:d,role:"menu",className:"absolute start-0 top-[calc(100%+8px)] z-50 w-full min-w-0 overflow-hidden rounded-[length:var(--all-products-grid-filter-menu
422-radius)] border border-[color:var(--all-products-grid-filter-menu-border)] bg-[color:var(--all-products-grid-filter-menu-bg)] shadow-[var(--all-products-grid-filter-menu-shadow)] md:min-w-[length:var(--all-products-grid-filter-menu-min-w)]",children:[(0,t.jsxs)("div",{className:"p-[length:var(--all-products-grid-filter-menu-p)]",children:[(0,t.jsx)("label",{htmlFor:c,className:"sr-only",children:y("search_category")}),(0,t.jsx)("input",{id:c,value:q,onChange:e=>E(e.target.value),placeholder:y("search_category"),className:"box-border w-full min-w-0 max-w-full appearance-none border-2 border-[var(--all-products-grid-select-border-color)] rounded-[length:var(--all-products-grid-select-radius)] bg-[var(--all-products-grid-select-bg)] px-[length:var(--all-products-grid-select-px-mobile)] py-[length:var(--all-products-grid-select-py-mobile)] outline-none text-[color:var(--all-products-grid-filter-search-color)] hover:border-[var(--all-products-grid-select-border-hover)]",onPointerDown:e=>e.stopPropagation()})]}),(0,t.jsx)("div",{className:"max-h-[length:var(--all-products-grid-filter-menu-options-max-height)] overflow-y-auto px-[length:var(--all-products-grid-filter-menu-p)] pb-[length:var(--all-products-grid-filter-menu-p)]",children:(0,t.jsx)("div",{className:"flex flex-col gap-[length:var(--all-products-grid-filter-item-gap)]",children:0===D.length?(0,t.jsx)("p",{className:"text-[length:var(--all-products-grid-filter-item-size-mobile)] text-[color:var(--all-products-grid-filter-item-color)] py-1",children:y("no_categories_found")}):D.map(e=>{let a=C.some(t=>t.id===e.id);return(0,t.jsxs)("label",{className:"flex items-center gap-[length:var(--all-products-grid-filter-item-gap)] text-[length:var(--all-products-grid-filter-item-size-mobile)] leading-[var(--all-products-grid-filter-item-lh-mobile)] md:text-[length:var(--all-products-grid-filter-item-size-desktop)] md:leading-[var(--all-products-grid-filter-item-lh-desktop)] text-[color:var(--all-products-grid-filter-item-color)] cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:a,onChange:()=>{let t;S(t=C.some(t=>t.id===e.id)?C.filter(t=>t.id!==e.id):[...C,e]),U(t)},className:"h-[length:var(--all-products-grid-filter-checkbox-size)] w-[length:var(--all-products-grid-filter-checkbox-size)]"}),e.name]},e.id)})})}),C.length>0?(0,t.jsx)("div",{className:"border-t border-[color:var(--all-products-grid-filter-menu-border)] px-[length:var(--all-products-grid-filter-menu-p)] py-[length:var(--all-products-grid-filter-menu-p)]",children:(0,t.jsx)("button",{type:"button",onClick:function(){S([]),E(""),U([])},className:"text-[length:var(--all-products-grid-filter-item-size-mobile)] text-[color:var(--all-products-grid-filter-search-color)] hover:underline",children:y("clear_all")})}):null]}):null]})]}):null,(0,t.jsxs)("div",{className:`flex flex-row items-center gap-[length:var(--all-products-grid-control-row-gap)] w-full md:w-auto ${x?"":"md:shrink-0"}`,children:[(0,t.jsx)("label",{htmlFor:o,className:i.ALL_PRODUCTS_LABEL_CLASS,children:y("sort_by_colon")}),(0,t.jsxs)("div",{className:"relative w-full md:w-auto",children:[(0,t.jsxs)("select",{id:o,value:L,onChange:e=>I("desc"===e.target.value?"desc":"asc"),className:"w-full appearance-none md:max-w-[length:var(--all-products-grid-select-max-w-desktop)] border-2 border-[var(--all-products-grid-select-border-color)] rounded-[length:var(--all-products-grid-select-radius)] bg-[var(--all-products-grid-select-bg)] px-[length:var(--all-products-grid-select-px-mobile)] py-[length:var(--all-products-grid-select-py-mobile)] md:px-[length:var(--all-products-grid-select-px-desktop)] md:py-[length:var(--all-products-grid-select-py-desktop)] outline-none cursor-pointer min-w-[length:var(--all-products-grid-select-min-w)] text-[var(--all-products-grid-sort-select-text)] hover:border-[var(--all-products-grid-select-border-hover)]",children:[(0,t.jsx)("option",{value:"asc",children:y("ascending")}),(0,t.jsx)("option",{value:"desc",children:y("descending")})]}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-0 flex items-center pe-[length:var(--all-products-grid-arrow-pr)]",children:(0,t.jsx)(r.ArrowIcon,{className:"h-[length:var(--all-products-grid-arrow-size)] w-[length:var(--all-products-grid-arrow-size)] rotate-90 text-[var(--all-products-grid-arrow-color)]","aria-hidden":!0})})]})]})]}),O?(0,t.jsx)("div",{"aria-live":"polite","aria-busy":"true",className:"grid grid-cols-1 gap-x-[length:var(--all-products-grid-gap-x)] gap-y-[length:var(--all-products-grid-gap-y)] sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Array.from({length:8}).map((e,a)=>(0,t.jsx)("div",{className:"animate-pulse rounded border border-[var(--our-top-products-one-card-border)] bg-[var(--our-top-products-one-card-bg)] aspect-[268/163]","aria-hidden":!0},a))}):0===B.length?(0,t.jsx)("div",{className:"flex justify-center py-12",children:(0,t.jsx)("p",{className:"text-[color:var(--all-products-grid-label-color)] text-[length:var(--all-products-grid-label-size-desktop)]",children:y("no_products_found")})}):(0,t.jsx)("ul",{"aria-live":"polite",className:"m-0 list-none grid grid-cols-1 gap-x-[length:var(--all-products-grid-gap-x)] gap-y-[length:var(--all-products-grid-gap-y)] p-0 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:B.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(l.ProductTileOne,{title:e.name,imageSrc:e.main_image?.url,href:`/products/${e.url_key}`,originLabel:y("origin"),casLabel:y("cas_number"),hsLabel:y("hs_code"),inquireLabel:y("inquire_now"),originValue:e.origin_countries.length>0?e.origin_countries.map(e=>e.name).join(", "):void 0,casValue:e.cas_number??"",hsValue:e.hs_code??""})},e.id))}),(0,t.jsx)("div",{className:"flex justify-center pt-[length:var(--all-products-grid-load-more-pt-mobile)] md:pt-[length:var(--all-products-grid-load-more-pt-desktop)]",children:$?(0,t.jsx)("button",{type:"button",className:"btn btn-primary",disabled:G,onClick:function(){let e=_.current_page+1;M(async()=>{let t=await g(C,e,v,j,w);t&&(N(t.products),k(t.meta),P(t.canLoadMore))})},children:T?y("loading"):y("load_more_products")}):null})]})]})})}e.s(["AllProductsGridSection",()=>v])},984753,e=>{"use strict";var t=e.i(843476);e.i(716787);var a=e.i(659544);e.i(527967);
422var r=e.i(830167),l=e.i(466745),l=l,i=e.i(892910),i=i,n=e.i(657688),s=e.i(271645),o=e.i(137696);function c(e){return e.trim().toLowerCase().replace(/[\s._-]+/g,"")}function d(e){let t=e.getBoundingClientRect(),a=window.scrollY+t.top+t.height/2,r=window.innerHeight/2;window.scrollTo({top:Math.max(0,a-r),behavior:"smooth"})}function u(e,t){let a="maps_url"in e&&"string"==typeof e.maps_url&&e.maps_url.trim()||e.mapUrl||"#",r="website_url"in e&&"string"==typeof e.website_url&&e.website_url.trim()||e.websiteUrl||"#",l=e.id?.trim()||`${e.city||"location"}-${t}`,i=e.pinLabel?.trim()||e.city||e.country||l;return{...e,id:l,pinLabel:i,mapUrl:a,websiteUrl:r}}function m({pins:e,isMobile:a=!1,onPinClick:r,enableBlinkingDots:l=!0}){let i=a?"h-1 w-1":"h-3 w-3",n=a?"px-[var(--gap-4)] text-[6px] border leading-loose":"px-[var(--our-locations-pin-label-px)] py-[var(--our-locations-pin-label-py)] text-[length:var(--our-locations-pin-label-size)] border-[length:var(--our-locations-pin-label-border-width)]";return(0,t.jsx)(t.Fragment,{children:e.map(e=>{let s=function(e,t){switch(e){case"left":return`${t?"end-[var(--our-locations-mobile-pin-label-left-offset)]":"end-[var(--our-locations-pin-label-side-offset)]"} top-1/2 -translate-y-1/2`;case"top":return"bottom-[calc(100%+var(--our-locations-pin-label-stack-offset))] start-1/2 -translate-x-1/2 rtl:translate-x-1/2";case"bottom":return"top-[calc(100%+var(--our-locations-pin-label-stack-offset))] start-1/2 -translate-x-1/2 rtl:translate-x-1/2";default:return`${t?"start-[var(--our-locations-mobile-pin-label-left-offset)]":"start-[var(--our-locations-pin-label-side-offset)]"} top-1/2 -translate-y-1/2`}}(e.labelPlacement,a),o=e.labelOffset.x||e.labelOffset.y?{transform:`translate(${e.labelOffset.x}px, ${e.labelOffset.y}px)`}:void 0;return(0,t.jsxs)("button",{type:"button",className:"absolute -translate-x-1/2 -translate-y-1/2 cursor-pointer",style:{top:e.top,left:e.left},"aria-label":e.label,onClick:()=>r?.(e.id,e.label),children:[l?(0,t.jsx)("span",{className:"absolute start-1/2 top-1/2 h-2 w-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-[var(--our-locations-pin-bg)] opacity-100 animate-ping [animation-duration:2s] rtl:translate-x-1/2 md:h-3.5 md:w-3.5"}):null,(0,t.jsx)("span",{className:`relative block ${i} rounded-full  bg-[var(--our-locations-pin-bg)]`}),(0,t.jsx)("span",{className:`absolute ${s}`,children:(0,t.jsx)("span",{style:o,className:`block ${n} whitespace-nowrap rounded-[var(--our-locations-pin-label-radius)] border-[var(--our-locations-pin-label-border-color)] bg-[var(--our-locations-pin-label-bg)] font-[var(--our-locations-pin-label-weight)] leading-[var(--our-locations-pin-label-line)] text-[var(--our-locations-pin-label-color)] shadow-[var(--our-locations-pin-label-shadow)]`,children:e.label})})]},e.id)})})}function h({label:e,value:a,href:r,isMobile:n=!1}){let s=n?"h-12 w-12 text-[var(--brand-primary)]":"w-12 h-12 text-[var(--brand-primary)]";return(0,t.jsxs)("div",{className:`flex items-start ${n?"gap-[var(--our-locations-mobile-contact-item-gap)]":"gap-[var(--our-locations-contact-item-gap)] mb-2"}`,children:[(0,t.jsx)("span",{className:`inline-flex shrink-0 items-center justify-center rounded-full ${n?"h-12.5 w-12.5 bg-[var(--our-locations-mobile-contact-badge-bg)] text-[var(--our-locations-mobile-contact-badge-color)]":"h-12.5 w-12.5 bg-[var(--our-locations-contact-badge-bg)] text-[var(--our-locations-contact-badge-color)]"}`,children:e.toLowerCase().includes("email")?(0,t.jsx)(l.default,{className:s}):(0,t.jsx)(i.default,{className:s})}),(0,t.jsxs)("div",{className:"text-start",children:[(0,t.jsx)("p",{className:n?"text-[length:var(--our-locations-mobile-contact-label-size)] font-[var(--our-locations-mobile-contact-label-weight)] leading-[var(--our-locations-mobile-contact-label-line)] text-[var(--our-locations-mobile-contact-label-color)]":"text-[length:var(--our-locations-contact-label-size)] font-[var(--our-locations-contact-label-weight)] leading-[var(--our-locations-contact-label-line)] text-[var(--our-locations-contact-label-color)]",children:e}),(0,t.jsx)("a",{href:r,className:`${n?"text-[length:var(--our-locations-mobile-contact-value-size)] font-[var(--our-locations-mobile-contact-value-we
422ight)] leading-[var(--our-locations-mobile-contact-value-line)] text-[var(--our-locations-mobile-contact-value-color)]":"text-[length:var(--our-locations-contact-value-size)] font-[var(--our-locations-contact-value-weight)] leading-[var(--our-locations-contact-value-line)] text-[var(--our-locations-contact-value-color)]"} ${e.includes("Email")?"break-all":""}`,children:a})]})]})}function p(e){return"string"==typeof e&&e.trim().length>0}function g({location:e,href:a,className:r}){let l=(0,o.resolveLocationAddressLines)(e);return 0===l.length?null:(0,t.jsx)("a",{href:a,target:"_blank",rel:"nofollow noopener noreferrer",className:r,children:l.map((a,r)=>(0,t.jsx)("span",{className:"block",children:a},`${e.id}-address-line-${r}`))})}function v({title:e,heading:l,subTitle:i,map_image_url:v,map_image_upload:x,map_alt:b,pins:f,locations:w,showArticleCards:y=!0,enablePinScroll:j=!0,enableBlinkingDots:N=!0,variant:_="default"}){let k=l?.trim()||e?.trim()||"",C=(0,s.useMemo)(()=>(Array.isArray(w)?w:[]).map(u),[w]),S=C.length>0,L=v?.trim()||x?.trim()||"",I=L.length>0,z=b?.trim()||"World map",A=(0,s.useMemo)(()=>{let e=(e,t,a,r,l)=>{let i=(0,o.resolvePinLabelOffset)(e,r);return{id:e,top:t,left:a,label:r,labelPlacement:l??(0,o.resolvePinLabelPlacement)(e,r),labelOffset:{x:i.x??0,y:i.y??0}}},t=Array.isArray(f)?f:[];return t.length>0?t.filter(e=>!!e&&"string"==typeof e.id&&Number.isFinite(Number(e.top))&&Number.isFinite(Number(e.left))).map(t=>{let a=t.label?.trim()||t.id;return e(t.id,`${Number(t.top)}%`,`${Number(t.left)}%`,a,t.labelPlacement)}):C.filter(e=>e.id&&e.pinTop&&e.pinLeft).map(t=>{let a=t.pinLabel||t.city||t.country||t.id;return e(t.id,t.pinTop,t.pinLeft,a)})},[f,C]),q=A.length>0,E=C[0]?.id??"",[$,P]=(0,s.useState)(E),T=(0,s.useCallback)((e,t)=>{let a=function(e,t,a){let r=a.find(t=>t.id===e);if(r)return r.id;let l=c(e),i=c(t);for(let e of a)if([e.id,e.pinLabel,e.city,e.country].filter(p).map(c).some(e=>e===l||e===i))return e.id;return e}(e,t,C);P(a),requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=window.matchMedia("(min-width: 768px)").matches?`location-card-${a}`:"mobile-location-card",t=document.getElementById(e);t&&d(t)})})},[C]),M=(0,s.useCallback)(e=>{P(e),requestAnimationFrame(()=>{requestAnimationFrame(()=>{let t=window.matchMedia("(min-width: 768px)").matches,a=document.getElementById(t?`location-card-${e}`:"mobile-location-card");a&&d(a)})})},[]),O=(0,s.useMemo)(()=>C.find(e=>e.id===$)??C[0],[C,$]);if(!k&&!I&&!S)return null;let F=O?`https://www.google.com/maps?q=${encodeURIComponent(`${O.city}, ${O.country}, ${O.address} ${O.addressLine2} ${O.addressLine3}`)}&output=embed`:"",R=O?.mapUrl||"#",B=y&&j&&S?T:void 0,D=e=>i?(0,t.jsx)("p",{className:`${e} text-[length:var(--our-locations-sub-title-size-mobile)] font-[var(--our-locations-sub-title-weight-mobile)] leading-[var(--our-locations-sub-title-line-mobile)] text-[var(--our-locations-sub-title-color)] md:text-[length:var(--our-locations-sub-title-size-desktop)] md:font-[var(--our-locations-sub-title-weight-desktop)] md:leading-[var(--our-locations-sub-title-line-desktop)]`,children:i}):null;return(0,t.jsx)("section",{className:"bg-[var(--our-locations-section-bg)] pt-[var(--our-locations-padding-top-mobile)] pb-[var(--our-locations-padding-bottom-mobile)] md:pt-[var(--our-locations-padding-top-desktop)] md:pb-[var(--our-locations-padding-bottom-desktop)]",children:(0,t.jsxs)("div",{className:"mx-auto layout-container px-3 md:px-5",children:[(0,t.jsx)("div",{className:`text-center ${{default:"px-18 md:px-0 pb-4 md:pb-0",marketSpread:"px-3 md:px-0 pb-4"}[_]}`,children:k?(0,t.jsx)("h2",{className:"text-[length:var(--our-locations-heading-size-mobile)] font-[var(--our-locations-heading-weight-mobile)] leading-[var(--our-locations-heading-line-mobile)] text-[var(--our-locations-heading-color)] md:text-[length:var(--our-locations-heading-size-desktop)] md:font-[var(--our-locations-heading-weight-desktop)] md:leading-[var(--our-locations-heading-line-desktop)]",children:k}):null}),I?(0,t.jsx)("div",{className:"hidden md:block relative mx-auto w-full overflow-visible bg-[var(--our-locations-map-bg)]",children:(0,t.jsxs)("div",{className:"relative aspect-[16/9] w-full overflow-visible",children:[(0,t.jsx)(n.default,{src:L,alt:z,fill:!0,sizes:"(max-width: 1200px) 100v
422w, 1200px",className:"object-contain"}),q?(0,t.jsx)(m,{pins:A,onPinClick:B,enableBlinkingDots:N}):null]})}):null,D("hidden md:block"),I?(0,t.jsxs)("div",{className:"block md:hidden mt-[var(--our-locations-mobile-map-margin-top)]",children:[(0,t.jsx)("div",{className:"relative mx-auto w-full overflow-visible bg-[var(--our-locations-map-bg)] md:px-[var(--our-locations-map-padding-x)]",children:(0,t.jsxs)("div",{className:"relative aspect-[16/9] w-full overflow-visible",children:[(0,t.jsx)(n.default,{src:L,alt:z,fill:!0,sizes:"100vw",className:"object-contain"}),q?(0,t.jsx)(m,{pins:A,isMobile:!0,onPinClick:B,enableBlinkingDots:N}):null]})}),y?(0,t.jsx)(t.Fragment,{children:S?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mt-[var(--our-locations-mobile-select-margin-top)] relative",children:[(0,t.jsx)("select",{value:$,onChange:e=>M(e.target.value),className:"w-full appearance-none border border-[var(--our-locations-mobile-select-border-color)] bg-[var(--our-locations-mobile-select-bg)] ps-[var(--our-locations-mobile-select-px)] pe-[var(--our-locations-mobile-select-pr)] py-[var(--our-locations-mobile-select-py)] text-start text-[length:var(--our-locations-mobile-select-size)] font-[var(--our-locations-mobile-select-weight)] leading-[var(--our-locations-mobile-select-line)] text-[var(--our-locations-mobile-select-color)] outline-none",children:C.map(e=>(0,t.jsx)("option",{value:e.id,children:e.country},`option-${e.id}`))}),(0,t.jsx)(r.ArrowIcon,{className:"absolute end-[var(--our-locations-mobile-select-arrow-right)] top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--our-locations-mobile-select-arrow-color)]"})]}),O?(0,t.jsxs)("article",{id:"mobile-location-card",className:"mt-[var(--our-locations-mobile-card-margin-top)] border-2 border-[var(--our-locations-mobile-card-border-color)] bg-[var(--our-locations-mobile-card-bg)] p-[var(--our-locations-mobile-card-padding)]",children:[(0,t.jsx)("h6",{className:"text-start text-[length:var(--our-locations-mobile-title-size)] font-[var(--our-locations-mobile-title-weight)] leading-[var(--our-locations-mobile-title-line)] text-[var(--our-locations-mobile-title-color)]",children:[O.city,O.country].filter(p).join(", ")}),(0,o.resolveLocationAddressLines)(O).length>0?(0,t.jsx)(g,{location:O,href:R,className:"mt-[var(--our-locations-mobile-address-margin-top)] block text-start text-[length:var(--our-locations-mobile-address-size)] font-[var(--our-locations-mobile-address-weight)] leading-[var(--our-locations-mobile-address-line)] text-[var(--our-locations-mobile-address-color)]"}):null,(0,t.jsxs)("div",{className:"mt-[var(--our-locations-mobile-contact-margin-top)] space-y-[var(--our-locations-mobile-contact-gap)]",children:[p(O.email)?(0,t.jsx)(h,{isMobile:!0,label:O.email_label||"Email",value:O.email,href:`mailto:${O.email}`}):null,p(O.phone)?(0,t.jsx)(h,{isMobile:!0,label:O.phone_label||"Phone Number",value:O.phone,href:`tel:${O.phone.replace(/\s+/g,"")}`}):null]}),F?(0,t.jsx)("div",{className:"mt-[var(--our-locations-mobile-embed-margin-top)] overflow-hidden",children:(0,t.jsx)("iframe",{src:F,width:"100%",height:"153",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:`${O.city} map`,className:"w-full border-0"})}):null,p(O.city)?(0,t.jsx)(a.Button,{variant:"primary",href:R,target:"_blank",rel:"nofollow noopener noreferrer",className:"mt-[var(--our-locations-mobile-cta-margin-top)] inline-flex w-full items-center justify-center px-[var(--our-locations-mobile-cta-px)] py-[var(--our-locations-mobile-cta-py)]",children:O.city}):null]}):null]}):null}):null,D("block md:hidden")]}):null,y?(0,t.jsx)("div",{className:"hidden md:grid grid-cols-1 gap-[var(--our-locations-cards-gap-mobile)] md:grid-cols-2 md:gap-[var(--our-locations-cards-gap-desktop)] xl:grid-cols-3 mt-[var(--our-locations-map-margin-top-mobile)] md:mt-[var(--our-locations-map-margin-top-desktop)]",children:C.map(e=>(0,t.jsxs)("article",{id:`location-card-${e.id}`,className:`overflow-hidden border border-[var(--our-locations-card-border-color)] bg-[var(--our-locations-card-bg)]${$===e.id?" ring-2 ring-[var(--brand-secondary)]":""}`,"aria-current":$===e.id?"true":void 0,children:[(0,t.jsx)("div",{className:"bg-[var(--our-locations-card-heading-bg)] px-[var(--our-locations-card-heading-px)] py-[var(--our-locations-card-heading-py)] text-center min-h-[var(--our-locations-card-address-min-height)] flex items-center justify-center",children:[e.city,e.country].some(p)?(0,t.jsx)("a",{href:e.websiteUrl,target:"_blank",rel:"nofollow noopener noreferrer",className:"text-[length:var(--our-locations-card-heading-size-mobile)] font-[var(--our-locations-card-heading-weight)] leading-[var(--our-locations-card-heading-line-mobile)] text-[var(--our-locations-card-heading-color)] md:text-[length:var(--our-locations-card-heading-size-desktop)] md:font-[var(--our-locations-card-heading-weight)] md:leading-[var(--our-locations-card-heading-line-desktop)]",children:[e.city,e.country].filter(p).join(", ")}):null}),(0,t.jsxs)("div",{className:"space-y-[var(--our-locations-card-content-gap)] px-[var(--our-locations-card-content-px)] py-[var(--our-locations-card-content-py)]",children:[(0,o.resolveLocationAddressLines)(e).length>0?(0,t.jsx)(g,{location:e,href:e.mapUrl||"#",className:"block text-start text-[length:var(--our-locations-card-address-size)] font-[var(--our-locations-card-address-weight)] leading-[var(--our-locations-card-address-line)] text-[var(--our-locations-card-address-color)]"}):null,(0,t.jsxs)("div",{className:"space-y-[var(--our-locations-contact-list-gap)]",children:[p(e.email)?(0,t.jsx)(h,{label:e.email_label||"Email Address",value:e.email,href:`mailto:${e.email}`}):null,p(e.phone)?(0,t.jsx)(h,{label:e.phone_label||"Phone Number",value:e.phone,href:`tel:${e.phone.replace(/\s+/g,"")}`}):null]})]})]},`card-${e.id}`))}):null]})})}e.s(["OurLocationsSection",()=>v],984753)},705673,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);
422var r=e.i(902936),l=e.i(271645),i=e.i(659544);e.i(527967);var n=e.i(830167),s=e.i(752140),o=e.i(450063),c=e.i(158760),d=e.i(22584),u=e.i(948148);let m={subject:"",industry:"",body:""};function h(){let e=(0,r.useRouter)(),{requireAuthForPost:h}=(0,o.useCommunityAuth)(),p=(0,c.useStorefrontConfig)(),g=p?.meta?.websiteName?.trim()??"",v=(0,u.useTranslations)(),[x,b]=(0,l.useState)(m),[f,w]=(0,l.useState)({}),[y,j]=(0,l.useState)(!1),[N,_]=(0,l.useState)(!1),[k,C]=(0,l.useState)(null),[S,L]=(0,l.useState)(!1),[I,z]=(0,l.useState)(""),A=(0,l.useRef)(null);(0,l.useEffect)(()=>{g&&b(e=>e.industry===g?e:{...e,industry:g})},[g]),(0,l.useEffect)(()=>{if(N)return A.current=setTimeout(()=>{_(!1),k?e.push(d.routes.community.detail(k)):e.push(d.routes.community.list)},2500),()=>{A.current&&(clearTimeout(A.current),A.current=null)}},[N,k,e]),(0,l.useEffect)(()=>()=>{A.current&&clearTimeout(A.current)},[]);let q=e=>t=>{let a=t.target.value;b(t=>({...t,[e]:a})),w(t=>({...t,[e]:void 0})),z("")},E=async t=>{let a;if(t.preventDefault(),a={},x.subject.trim()||(a.subject=v("error_subject_required")),x.industry.trim()||(a.industry=v("error_industry_required")),x.body.trim()||(a.body=v("error_body_required")),w(a),0!==Object.keys(a).length)return;let r=x.subject.trim(),l=x.body.trim();z("");try{if(!await h({v:1,action:"question",payload:{title:r,body:l}},"community:create-question",async()=>{L(!0);try{let t=await (0,s.postCommunityQuestion)({title:r,body:l}),a=(0,s.extractCreatedQuestionSlug)(t);b({subject:"",industry:g,body:""}),C(a),_(!0),e.refresh()}finally{L(!1)}}))return}catch(e){z(e instanceof Error?e.message:v("error_unable_to_post_question")),L(!1)}};return(0,t.jsxs)("div",{className:"py-[var(--create-question-section-padding)]",children:[(0,t.jsx)("div",{className:"layout-container px-3 md:px-5",children:(0,t.jsxs)("div",{className:"mx-auto max-w-full bg-[var(--create-question-form-bg)] p-[var(--create-question-card-padding-mobile)] md:max-w-[65%] md:py-[var(--create-question-card-padding-y)] md:px-[var(--create-question-card-padding-x)]",children:[(0,t.jsx)("h2",{className:"mb-[var(--create-question-title-margin-bottom)] text-start text-[length:var(--create-question-title-size-mobile)] text-[var(--create-question-title-color)] leading-[var(--create-question-title-line-height-mobile)] font-[var(--create-question-title-weight)] md:text-[length:var(--create-question-title-size)] md:leading-[var(--create-question-title-line-height)]",children:v("create_question")}),(0,t.jsxs)("form",{onSubmit:E,className:"grid grid-cols-1 gap-[var(--create-question-field-gap)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-start text-[length:var(--create-question-label-size-mobile)] leading-[var(--create-question-label-line-height-mobile)] text-[var(--create-question-label-color)] font-[var(--create-question-label-weight)] md:text-[length:var(--create-question-label-size)] md:leading-[var(--create-question-label-line-height)]",children:[v("subject"),(0,t.jsx)("span",{className:"text-[var(--create-question-required-color)]",children:"*"})]}),(0,t.jsx)("input",{value:x.subject,onChange:q("subject"),placeholder:v("enter_subject"),className:"mt-[var(--create-question-input-margin-top)] h-[var(--create-question-input-height)] w-full rounded-[var(--create-question-input-radius)] [border-width:var(--create-question-input-border-width)] border-[color:var(--create-question-input-border-color)] px-[var(--create-question-input-padding-x)] text-start text-[var(--create-question-input-text-color)] placeholder:text-[var(--create-question-input-placeholder-color)] focus:border-[color:var(--create-question-input-focus-border)] outline-none"}),f.subject?(0,t.jsx)("p",{className:"mt-[var(--create-question-error-margin-top)] text-start text-[length:var(--create-question-error-size)] text-[var(--create-question-error-color)]",children:f.subject}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-start text-[length:var(--create-question-label-size-mobile)] leading-[var(--create-question-label-line-height-mobile)] text-[var(--create-question-label-color)] font-[var(--create-question-label-weight)] md:text-[length:var(--create-question-label-size)] md:leading-[var(--create-question-label-line-height)]",children:[v("industry_label"),(0,t.jsx)("span",{className:"text-[var(--create-question-required-color)]",children:"*"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{value:x.industry||g,onChange:q("industry"),disabled:!0,className:"mt-[var(--create-question-input-margin-top)] h-[var(--create-question-input-height)] w-full appearance-none rounded-[var(--create-question-input-radius)] [border-width:var(--create-question-input-border-width)] border-[color:var(--create-question-input-border-color)] px-[var(--create-question-input-padding-x)] pe-[var(--create-question-select-padding-right)] text-start text-[var(--create-question-input-text-color)] disabled:text-[var(--create-question-input-disabled-text-color)] disabled:opacity-100",children:g?(0,t.jsx)("option",{value:g,children:g}):(0,t.jsx)("option",{value:"",children:v("select_industry")})}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 end-[var(--create-question-select-arrow-right)] mt-[var(--create-question-input-margin-top)] flex items-center",children:(0,t.jsx)(n.ArrowIcon,{className:"h-[var(--create-question-select-arrow-size)] w-[var(--create-question-select-arrow-size)] rotate-90 text-[var(--create-question-input-text-color)]"})})]}),f.industry?(0,t.jsx)("p",{className:"mt-[var(--create-question-error-margin-top)] text-start text-[length:var(--create-question-error-size)] text-[var(--create-question-error-color)]",children:f.industry}):null,g?(0,t.jsx)("div",{className:"mt-[var(--create-question-industry-tag-margin-top)]",children:(0,t.jsx)("span",{className:"flex w-max items-center gap-[var(--create-question-industry-tag-gap)] rounded-[var(--create-question-industry-tag-radius)] bg-[var(--create-question-industry-tag-bg)] px-[var(--create-question-industry-tag-padding-x)] py-[var(--create-question-industry-tag-padding-y)] text-center text-[length:var(--create-question-industry-tag-size)] leading-[var(--create-question-industry-tag-line-height-mobile)] text-[var(--create-question-industry-tag-color)] font-[var(--create-question-industry-tag-we
422ight)] md:leading-[var(--create-question-industry-tag-line-height)]",children:g})}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"text-start text-[length:var(--create-question-label-size-mobile)] leading-[var(--create-question-label-line-height-mobile)] text-[var(--create-question-label-color)] font-[var(--create-question-label-weight)] md:text-[length:var(--create-question-label-size)] md:leading-[var(--create-question-label-line-height)]",children:[v("body_label"),(0,t.jsx)("span",{className:"text-[var(--create-question-required-color)]",children:"*"})]}),(0,t.jsx)("textarea",{value:x.body,onChange:q("body"),placeholder:v("write_your_body"),rows:5,className:"mt-[var(--create-question-input-margin-top)] h-[200px] w-full rounded-none [border-width:var(--create-question-input-border-width)] border-[color:var(--create-question-input-border-color)] px-[var(--create-question-input-padding-x)] py-3 text-start text-[var(--create-question-input-text-color)] placeholder:text-[var(--create-question-input-placeholder-color)] focus:border-[color:var(--create-question-input-focus-border)] outline-none"}),f.body?(0,t.jsx)("p",{className:"mt-[var(--create-question-error-margin-top)] text-start text-[length:var(--create-question-error-size)] text-[var(--create-question-error-color)]",children:f.body}):null]}),(0,t.jsxs)("div",{className:"mt-[var(--create-question-actions-margin-top)] flex items-center justify-end gap-[var(--create-question-actions-gap)]",children:[I?(0,t.jsx)("p",{className:"me-auto text-start text-[length:var(--create-question-error-size)] text-[var(--create-question-error-color)]",children:I}):null,(0,t.jsx)(i.Button,{variant:"outlined",type:"button",onClick:()=>j(!0),disabled:S,children:v("preview")}),(0,t.jsx)(i.Button,{variant:"primary",type:"submit",disabled:S,children:S?v("posting"):v("post_now")})]})]})]})}),y?(0,t.jsxs)("div",{className:"fixed inset-0 z-[101] flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0,onClick:()=>j(!1)}),(0,t.jsxs)("div",{className:"relative z-[101] w-[80%] max-w-[500px] bg-[#fefefe] p-[30px] shadow-[var(--create-question-modal-shadow)]",children:[(0,t.jsxs)("div",{className:"mb-[20px] flex items-center justify-between gap-[10px]",children:[(0,t.jsx)("h3",{className:"text-start text-[length:var(--create-question-preview-title-size)] leading-[var(--create-question-preview-title-line-height)] text-[var(--create-question-preview-title-color)] font-[var(--create-question-preview-title-weight)]",children:v("question_preview")}),(0,t.jsx)("button",{type:"button",onClick:()=>j(!1),"aria-label":v("close"),className:"shrink-0 cursor-pointer rounded-md p-1",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14})})]}),(0,t.jsx)("h4",{className:"text-start text-[length:var(--create-question-preview-subject-size)] leading-[var(--create-question-preview-subject-line-height)] text-[var(--create-question-preview-subject-color)] font-[var(--create-question-preview-subject-weight)]",children:x.subject.trim()||v("untitled_question")}),(0,t.jsx)("p",{className:"text-start text-[length:var(--create-question-preview-body-size)] leading-[29px] text-[var(--create-question-preview-body-color)] font-[var(--create-question-preview-body-weight)]",children:x.body.trim()||v("no_content_to_preview")})]})]}):null,N?(0,t.jsxs)("div",{className:"fixed inset-0 z-[101] flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative z-[101] w-[80%] max-w-[500px] bg-[#fefefe] px-8 py-10 text-center shadow-[var(--create-question-modal-shadow)] md:px-12 md:py-12",role:"status","aria-live":"polite","aria-atomic":"true",children:[(0,t.jsx)("div",{className:"mx-auto mb-6 flex h-[4.5rem] w-[4.5rem] items-center justify-center rounded-full md:h-20 md:w-20",style:{backgroundColor:"#d1fae5"},"aria-hidden":!0,children:(0,t.jsx)("svg",{className:"h-9 w-9 md:h-10 md:w-10",style:{color:"#047857"}
422,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("p",{className:"m-0 text-[length:var(--create-question-success-text-size)] leading-[var(--create-question-preview-title-line-height)] text-[var(--create-question-success-text-color)] font-[var(--create-question-success-text-weight)]",children:v("question_posted_success")})]})]}):null]})}e.s(["default",()=>h])},639248,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(770275);async function l(e,t,a,r){let l=new URLSearchParams({page:String(e)});void 0!==t&&l.set("category_id",String(t)),void 0!==a&&l.set("per_page",String(a));let i=r?`/api/industries/${encodeURIComponent(r)}/products`:"/api/products";try{let e=await fetch(`${i}?${l.toString()}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!e.ok)return null;return await e.json()}catch{return null}}function i(e){let t=new Set,a=[];for(let r of e)t.has(r.id)||(t.add(r.id),a.push(r));return a}async function n(e){let t=await l(1,e,40);if(!t?.data)return[];let a=[...t.data];for(let r=2;r<=t.meta.last_page;r+=1){let t=await l(r,e,40);t?.data&&a.push(...t.data)}return a}async function s(e){return i((await Promise.all(e.map(e=>n(e.id)))).flat())}async function o({selectedCategories:e,page:t,perPage:a,existingProducts:r=[],industrySlug:n,mode:o="replace"}){let c="append"===o&&t>1;if(n){let e=await l(t,void 0,a,n);return e?.data?{products:c?i([...r,...e.data]):e.data,meta:e.meta,canLoadMore:e.meta.current_page<e.meta.last_page}:null}if(0===e.length){let e=await l(t,void 0,a);return e?.data?{products:c?i([...r,...e.data]):e.data,meta:e.meta,canLoadMore:e.meta.current_page<e.meta.last_page}:null}if(1===e.length){let n=await l(t,e[0].id,a);return n?.data?{products:c?i([...r,...n.data]):n.data,meta:n.meta,canLoadMore:n.meta.current_page<n.meta.last_page}:null}let d=a??20,u=await s(e),m=u.length,h=Math.max(1,Math.ceil(m/d));return{products:c?u.slice(0,t*d):u.slice((t-1)*d,t*d),meta:{current_page:t,last_page:Math.max(1,Math.ceil(m/d)),per_page:d,total:m,links:{first:null,last:null,prev:null,next:null}},canLoadMore:t<h}}var c=e.i(475711),d=e.i(948148),u=e.i(411491),m=e.i(857493),h=e.i(968251);let p="premium-all-products-heading";function g({initialProducts:e,initialMeta:l,categories:i,perPage:n,showFilter:s=!0,heading:g="Products",noPaddingTop:v=!1,industrySlug:x}){let b=(0,d.useTranslations)(),f="modern"===(0,c.useLayoutThemeId)(),[w,y]=(0,a.useState)(e),[j,N]=(0,a.useState)(l),[_,k]=(0,a.useState)([]),[C,S]=(0,a.useState)(new Set),[L,I]=(0,a.useState)("asc"),[z,A]=(0,a.useState)(""),[q,E]=(0,a.useState)(()=>n&&h.PER_PAGE_OPTIONS.includes(n)?n:h.PER_PAGE_OPTIONS.includes(l.per_page)?l.per_page:h.DEFAULT_PER_PAGE),[$,P]=(0,a.useState)(l.current_page<l.last_page),[T,M]=(0,a.useTransition)(),[O,F]=(0,a.useTransition)(),[R,B]=(0,a.useState)(!1),D=(0,a.useRef)(null),H=(0,a.useCallback)(()=>{D.current?.scrollIntoView({behavior:"smooth",block:"start"})},[]),U=(0,a.useMemo)(()=>{let e="desc"===L?-1:1;return[...w].sort((t,a)=>e*t.name.localeCompare(a.name,void 0,{numeric:!0,sensitivity:"base"}))},[w,L]),G=g??b("products"),W=O||T,V=Math.max(1,j.last_page),K=C.size;(0,a.useEffect)(()=>{if(!R)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>{"Escape"===e.key&&B(!1)};return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[R]);let Y=(0,a.useCallback)(()=>{B(!1)},[]),Q=(0,a.useCallback)((e,t,a,r,l=[],i=!1)=>{F(async()=>{let n=await o({selectedCategories:t,page:e,perPage:a,existingProducts:l,industrySlug:x,mode:r});n&&(y(n.products),N(n.meta),P(n.canLoadMore),i&&requestAnimationFrame(()=>H()))})},[x,H]),Z=e=>(0,t.jsx)(r.InheritedProductTileOne,{title:e.name,imageSrc:e.main_image?.url,href:`/products/${e.url_key}`,originLabel:b("origin"),casLabel:b("cas_number"),hsLabel:b("hs_code"),inquireLabel:b("inquire_now"),originValue:e.origin_countries.length>0?e.origin_countries.map(e=>e.name).join(", "):void 0,casValue:e.cas_number??"",hsValue:e.hs_code??""}),X={categories:i,filterQuery:z,onFilterQueryChange:A,draftCategoryIds:C,onDraftToggle:e=>{S(t=>{let a=new Set(t);return a.has(e.id)?a.delete(e.id):a.add(e.id),a})},onApply:()=>{let e=i.filter(e=>C.has(e.id));k(e),Q(1,e,q,"replace",[],!0),Y()},onReset:()=>{S(new Set),k([]),A(""),Q(1,[],q,"replace"),Y()},isFiltering:O,resultCount:j.total};return s?(0,t.jsxs)("section",{"data-premium-apg":!0,"data-modern-apg":f?"":void 0,"aria-labelledby":p,className:`${v?"pt-0 md:pt-0":"pt-[length:var(--all-products-grid-pt-mobile)] md:pt-[length:var(--all-products-grid-pt-desktop)]"} pb-[length:var(--all-products-grid-pb-mobile)] md:pb-[length:var(--all-products-grid-pb-desktop)]`,children:[(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[(0,t.jsx)("h2",{id:p,className:"sr-only",children:G}),(0,t.jsxs)("div",{className:"apg-catalog",children:[(0,t.jsx)("div",{className:"apg-sidebar--desktop",children:(0,t.jsx)(u.ProductFiltersSidebar,{...X})}),(0,t.jsxs)("div",{className:"apg-main",ref:D,children:[(0,t.jsx)(m.ProductCatalogToolbar,{total:j.total,sort:L,onSortChange:I,mobileFilterCount:K,onMobileFilterOpen:()=>B(!0),isMobileFilterOpen:R}),O?(0,t.jsx)("div",{"aria-live":"polite","aria-busy":"true",className:"apg-grid",children:Array.from({length:q}).map((e,a)=>(0,t.jsx)("div",{className:"apg-skeleton","aria-hidden":!0},a))}):0===U.length?(0,t.jsx)("p",{className:"apg-empty",children:b("no_products_found")}):(0,t.jsx)("ul",{"aria-live":"polite",className:"apg-grid",children:U.map(e=>(0,t.jsx)("li",{children:Z(e)},e.id))}),(0,t.jsx)(h.ProductCatalogPagination,{currentPage:j.current_page,totalPages:V,perPage:q,onPageChange:e=>{Q(e,_,q,"replace")},onPerPageChange:e=>{E(e),Q(1,_,e,"replace")},disabled:W})]})]})]}),R?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",className:"apg-filter-overlay","aria-label":b("close"),onClick:Y}),(0,t.jsx)("div",{className:"apg-filter-drawer",role:"dialog","aria-modal":"true","aria-label":b("filter_products"),children:(0,t.jsx)(u.ProductFiltersSidebar,{...X,onClose:Y,categorySearchId:"premium-all-products-category-search-mobile"})})]}):null]}):(0,t.jsx)("section",{"data-premium-apg-simple":!0,"aria-labelledby":p,className:`${v?"pt-0 md:pt-0":"pt-[length:var(--all-products-grid-pt-mobile)] md:pt-[length:var(--all-products-grid-pt-desktop)]"} pb-[length:var(--all-products-grid-pb-mobile)] md:pb-[length:var(--all-products-grid-pb-desktop)]`,children:(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5",children:[(0,t.jsx)("h2",{id:p,className:"m-0 mb-8 md:mb-10 text-[color:var(--all-products-grid-products-heading-color)] text-[length:var(--all-products-grid-products-heading-size-mobile)] leading-[var(--all-products-grid-products-heading-lh-mobile)] md:text-[length:var(--all-products-grid-products-heading-size-desktop)] md:leading-[var(--all-products-grid-products-heading-lh-desktop)] font-[var(--all-products-grid-products-heading-weight)]",children:G}),(0,t.jsx)(m.ProductCatalogToolbar,{total:j.total,sort:L,onSortChange:I}),O?(0,t.jsx)("div",{"aria-live":"polite","aria-busy":"true",className:"grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:Array.from({length:q}).map((e,a)=>(0,t.jsx)("div",{className:"apg-skeleton","aria-hidden":!0},a))}):0===U.length?(0,t.jsx)("p",{className:"apg-empty",children:b("no_products_found")}):(0,t.jsx)("ul",{"aria-live":"polite",className:"m-0 list-none grid grid-cols-1 gap-x-6 gap-y-8 p-0 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:U.map(e=>(0,t.jsx)("li",{children:Z(e)},e.id))}),(0,t.jsx)("div",{className:"apg-simple-load-more",children:$?(0,t.jsx)("button",{type:"button",className:"btn btn-primary",disabled:W,onClick:()=>{let e=j.current_page+1;M(async()=>{let t=await o({selectedCategories:_,page:e,perPage:n,existingProducts:w,industrySlug:x,mode:"append"});t&&(y(t.products),N(t.meta),P(t.canLoadMore))})},children:T?b("loading"):b("load_more_products")}):null})]})})}e.s(["AllProductsGridSection",()=>g],639248)},327396,e=>{"use strict";var t=e.i(843476),a=e.i(657688);e.i(79951);var r=e.i(902936);e.i(527967);var l=e.i(830167),i=e.i(71527),n=e.i(724960),s=e.i(271645),o=e.i(948148);let c="lc-cpi-filter-category",d="lc-cpi-sort",u="lc-cpi-search",m=n.FORM_FIELD_LABEL_CLASS;function h({variant:e="default",title:n,description:h,items:p,categories:g,sortOptions:v,resultLabel:x,centerHeading:b,leftBgImageSrc:f,rightBgImageSrc:w,cta:y,enableLoadMore:j,loadMorePageSize:N=1,loadMoreLabel:_,initialSortValue:k,filterLabel:C,sortLabel:S,searchLabel:L,searchPlaceholder:I,casLabel:z}){let A=(0,o.useTranslations)(),q="plain"===e,E=f?.trim()||"",$=w?.trim()||"",P=v??[{value:"az",label:A("ascending_a_z")},{value:"za",label:A("descending_z_a")}],T="za"===k||"desc"===k?"za":P.some(e=>
422e.value===k)?k:"az",[M,O]=(0,s.useState)(T),F=C?.trim()?C.trim().endsWith(":")?C.trim():`${C.trim()} :`:A("filter_by_colon"),R=S?.trim()?S.trim().endsWith(":")?S.trim():`${S.trim()} :`:A("sort_by_colon"),B=L?.trim()?L.trim().endsWith(":")?L.trim():`${L.trim()} :`:A("search_colon"),D=I?.trim()||A("keyword"),H=z?.trim()||A("cas_number"),U=_?.trim()||A("load_more"),[G,W]=(0,s.useState)(""),V=Math.max(1,Math.floor(N)),[K,Y]=(0,s.useState)(V),Q=(0,s.useMemo)(()=>{let e=G.trim().toLowerCase(),t=[...0===e.length?p:p.filter(t=>{let a=t.title.toLowerCase(),r=(t.casNumber??"").toLowerCase();return a.includes(e)||r.includes(e)})],a="za"===M?-1:1;return t.sort((e,t)=>a*e.title.localeCompare(t.title)),t},[p,M,G]),Z=(0,s.useMemo)(()=>j?Q.slice(0,K):Q,[j,Q,K]),X=!!(j&&K<Q.length),J=G.trim().length>0,ee=0===Q.length;return(0,t.jsxs)("section",{className:["relative z-20",q?null:"mt-[var(--lc-cpi-mt)] bg-[var(--lc-cpi-bg)] bg-[length:var(--lc-cpi-bg-size)] bg-[position:var(--lc-cpi-bg-position)] bg-no-repeat","pt-[var(--lc-cpi-pt-m)] pb-[var(--lc-cpi-pb-m)] md:pt-[var(--lc-cpi-pt-d)] md:pb-[var(--lc-cpi-pb-d)]"].filter(Boolean).join(" "),children:[!q&&E?(0,t.jsx)(a.default,{src:E,alt:"",width:350,height:268,sizes:"(max-width: 768px) 160px, 350px",loading:"lazy",className:"pointer-events-none absolute start-0 bottom-0 w-[var(--lc-cpi-bg-side-w-mobile)] md:w-[var(--lc-cpi-bg-side-w-desktop)] h-auto z-10","aria-hidden":!0}):null,!q&&$?(0,t.jsx)(a.default,{src:$,alt:"",width:350,height:268,sizes:"(max-width: 768px) 160px, 350px",loading:"lazy",className:"pointer-events-none absolute end-0 top-0 w-[var(--lc-cpi-bg-side-w-mobile)] md:w-[var(--lc-cpi-bg-side-w-desktop)] h-auto z-10","aria-hidden":!0}):null,(0,t.jsxs)("div",{className:"layout-container px-3 md:px-5 relative z-20",children:[(0,t.jsx)("h3",{className:["mb-7",b?"text-center":"text-start","text-[var(--lc-cpi-title-color)] text-[length:var(--lc-cpi-title-size-m)] leading-[var(--lc-cpi-title-lh-m)] font-[var(--lc-cpi-title-weight)] md:text-[length:var(--lc-cpi-title-size-d)] md:leading-[var(--lc-cpi-title-lh-d)]"].filter(Boolean).join(" "),children:n}),(0,t.jsx)("p",{className:["max-w-[var(--lc-cpi-desc-max-w)]",b?"mx-auto text-center":"text-start","text-[var(--lc-cpi-desc-color)] text-[length:var(--lc-cpi-desc-size-m)] leading-[var(--lc-cpi-desc-lh-m)] md:text-[length:var(--lc-cpi-desc-size-d)] md:leading-[var(--lc-cpi-desc-lh-d)] font-[var(--lc-cpi-desc-weight)]"].filter(
422Boolean).join(" "),children:h}),(0,t.jsxs)("div",{className:"mt-[50px] mb-10",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-12 md:gap-6",children:[(0,t.jsx)("div",{className:"md:col-span-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:c,className:m,children:F}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:c,className:" w-full rounded-[var(--lc-cpi-control-radius)] border-2 border-[color:var(--lc-cpi-control-border)] bg-[var(--lc-cpi-control-bg)] appearance-none px-5 pe-[var(--lc-cpi-select-pr)] py-[6px] md:px-6 md:pe-[var(--lc-cpi-select-pr)] md:py-2 text-start text-[var(--lc-cpi-control-text)] text-[length:var(--lc-cpi-control-size-m)] leading-[var(--lc-cpi-control-lh-m)] md:text-[length:var(--lc-cpi-control-size-d)] md:leading-[var(--lc-cpi-control-lh-d)] leading-[var(--lc-cpi-control-lh)] focus:border-[color:var(--lc-cpi-control-border-focus)] focus:outline-none ",defaultValue:"",children:[(0,t.jsx)("option",{value:"",children:A("select_category")}),g?.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,t.jsx)(l.ArrowIcon,{className:"pointer-events-none absolute end-6 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--lc-cpi-select-icon-color)]","aria-hidden":"true"})]})]})}),(0,t.jsx)("div",{className:"md:col-span-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:d,className:m,children:R}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{id:d,className:" w-full rounded-[var(--lc-cpi-control-radius)] border-2 border-[color:var(--lc-cpi-control-border)] bg-[var(--lc-cpi-control-bg)] appearance-none px-5 pe-[var(--lc-cpi-select-pr)] py-[6px] md:px-6 md:pe-[var(--lc-cpi-select-pr)] md:py-2 text-start text-[var(--lc-cpi-control-text)] text-[length:var(--lc-cpi-control-size-m)] leading-[var(--lc-cpi-control-lh-m)] md:text-[length:var(--lc-cpi-control-size-d)] md:leading-[var(--lc-cpi-control-lh-d)] leading-[var(--lc-cpi-control-lh)] focus:border-[color:var(--lc-cpi-control-border-focus)] focus:outline-none ",value:M,onChange:e=>{Y(V),O(e.target.value)},children:P.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,t.jsx)(l.ArrowIcon,{className:"pointer-events-none absolute end-6 top-1/2 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--lc-cpi-select-icon-color)]","aria-hidden":"true"})]})]})}),(0,t.jsx)("div",{className:"md:col-span-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:u,className:m,children:B}),(0,t.jsxs)("div",{className:"relative z-20",children:[(0,t.jsx)("input",{id:u,type:"text",placeholder:D,value:G,onChange:e=>{Y(V),W(e.target.value)},className:" w-full rounded-[var(--lc-cpi-control-radius)] border-2 border-[color:var(--lc-cpi-control-border)] bg-[var(--lc-cpi-control-bg)] px-5 pe-14 py-[6px] md:px-6 md:pe-14 md:py-2 text-start text-[var(--lc-cpi-control-text)] text-[length:var(--lc-cpi-control-size-m)] leading-[var(--lc-cpi-control-lh-m)] md:text-[length:var(--lc-cpi-control-size-d)] md:leading-[var(--lc-cpi-control-lh-d)] leading-[var(--lc-cpi-control-lh)] focus:border-[color:var(--lc-cpi-control-border-focus)] focus:outline-none "}),G.trim().length>0?(0,t.jsx)("button",{type:"button",className:"absolute end-6 top-1/2 -translate-y-1/2","aria-label":A("clear_keyword"),onClick:()=>{Y(V),W("")},children:"×"}):(0,t.jsx)("button",{type:"button",className:"absolute end-6 top-1/2 -translate-y-1/2","aria-label":A("search"),tabIndex:-1,children:(0,t.jsx)(i.SearchIconNew,{className:"h-5 w-5 text-[var(--lc-cpi-search-icon-color)]"})})]})]})})]}),x?(0,t.jsx)("div",{className:"mt-5 text-start text-[var(--lc-cpi-result-color)] text-[length:var(--lc-cpi-result-size)] px-5 py-[10px]",children:(0,t.jsx)("span",{className:"px-5 py-[10px]",children:x})}):null]}),ee?(0,t.jsxs)("div",{className:"py-10 text-start",role:"status","aria-live":"polite",children:[(0,t.jsx)("p",{className:" text-[var(--lc-cpi-desc-color)] text-[length:var(--lc-cpi-desc-size-m)] leading-[var(--lc-cpi-desc-lh-m)] md:text-[length:var(--lc-cpi-desc-size-d)] md:leading-[var(--lc-cpi-desc-lh-d)] ",children:A(J?"no_search_results":"no_products_found")}),J?(0,t.jsx)("button",{type:"button",className:"btn btn-primary mt-4",onClick:()=>{Y(V),W("")},children:A("clear_search")}):null]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid grid-cols-1 gap-5 md:gap-6 md:grid-cols-2 lg:grid-cols-3",children:Z.map(e=>{let i;return(0,t.jsx)(r.Link,{href:e.href,className:"no-underline",children:(0,t.jsx)("div",{className:" relative z-20 bg-[var(--lc-cpi-card-bg)] border border-[color:var(--lc-cpi-card-border)] transition-all duration-300 ease-out hover:translate-y-[var(--lc-cpi-card-hover-translate-y)] hover:shadow-[var(--lc-cpi-card-hover-shadow)] px-4 py-4 md:px-7 md:py-6 ",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 min-w-0",children:[(i=e.imageSrc?.trim()||"")?(0,t.jsx)(a.default,{src:i,alt:e.imageAlt,width:60,height:60,sizes:"60px",quality:70,loading:"lazy",className:"h-15 w-15 object-cover"}):null,(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h4",{className:"m-0 truncate text-start text-[var(--lc-cpi-card-title-color)] font-[var(--lc-cpi-card-title-weight)] text-[length:var(--lc-cpi-card-title-size-m)
422] leading-[var(--lc-cpi-card-title-lh-m)] md:text-[length:var(--lc-cpi-card-title-size-d)] md:leading-[var(--lc-cpi-card-title-lh-d)]",children:e.title}),e.casNumber?(0,t.jsxs)("p",{className:"text-start text-[var(--lc-cpi-card-meta-color)] text-[length:var(--lc-cpi-card-meta-size-m)] leading-[var(--lc-cpi-card-meta-lh-m)] md:text-[length:var(--lc-cpi-card-meta-size-d)] md:leading-[var(--lc-cpi-card-meta-lh-d)]",children:[H," :"," ",(0,t.jsx)("span",{className:"font-[var(--lc-cpi-card-meta-strong-weight)]",children:e.casNumber})]}):null]})]}),(0,t.jsx)(l.ArrowIcon,{className:"h-3 w-3 text-[var(--lc-cpi-card-arrow-color)] shrink-0 rtl:rotate-180"})]})})},e.href)})}),X?(0,t.jsx)("button",{type:"button",className:"btn btn-primary w-max mx-auto block mt-5",onClick:()=>Y(e=>Math.min(Q.length,e+V)),children:U}):y?(0,t.jsx)(r.Link,{href:y.href,className:"btn btn-primary w-max mx-auto block mt-5",children:y.label}):null]})]})]})}e.s(["ComprehensiveProductInsightsSection",()=>h])},753899,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645),l=e.i(212090),i=e.i(659544),n=e.i(578938),s=e.i(902312),o=e.i(22584),c=e.i(388578),d=e.i(3305),u=e.i(232660);async function m(e,t,a="image/jpeg"){let r=document.createElement("canvas");return await (0,u.cropToCanvas)(e,r,t),new Promise((e,t)=>{r.toBlob(a=>{a?e(a):t(Error("Unable to crop image."))},a,"image/jpeg"===a?.92:void 0)})}var h=e.i(82760),p=e.i(948148);let g="mt-[var(--profile-page-label-input-gap)] h-[50px] w-full rounded-[var(--profile-page-input-radius)] [border-width:var(--profile-page-input-border-width)] border-[color:var(--profile-page-input-border-color)] px-[var(--profile-page-input-padding-x)] text-start text-[var(--profile-page-input-text-color)] placeholder:text-[var(--profile-page-input-placeholder-color)] focus:border-[color:var(--profile-page-input-focus-border)] outline-none disabled:cursor-not-allowed disabled:bg-[#f4f3ee] disabled:text-[var(--brand-neutral-text)]",v="block text-start text-[length:var(--profile-page-label-size-mobile)] text-[var(--profile-page-label-color)] font-[var(--profile-page-label-weight)] md:text-[length:var(--profile-page-label-size)]";function x(){return{firstName:"",lastName:"",email:"",companyName:"",country:"",dialingCode:"",mobileNumber:""}}function b(){console.warn("[PROFILE] SSO session expired — redirecting home"),window.location.replace(o.routes.homePage)}function f({allowCustomerSsoTokenOverride:e=!1}){let o=(0,s.useHasAuthSession)(),u=(0,p.useTranslations)(),[f,w]=(0,r.useState)(!1),[y,j]=(0,r.useState)(!1),[N,_]=(0,r.useState)(null),[k,C]=(0,r.useState)(""),[S,L]=(0,r.useState)(""),[I,z]=(0,r.useState)(""),[A,q]=(0,r.useState)(""),[E,$]=(0,r.useState)(""),[P,T]=(0,r.useState)(""),[M,O]=(0,r.useState)(""),[F,R]=(0,r.useState)(""),[B,D]=(0,r.useState)(!0),[H,U]=(0,r.useState)(!1),[G,W]=(0,r.useState)(null),[V,K]=(0,r.useState)(!1),[Y,Q]=(0,r.useState)(""),[Z,X]=(0,r.useState)({}),[J,ee]=(0,r.useState)(x),[et,ea]=(0,r.useState)(null),[er,el]=(0,r.useState)("image/jpeg"),[ei,en]=(0,r.useState)(""),[es,eo]=(0,r.useState)(null),[ec,ed]=(0,r.useState)(!1),eu=(0,r.useRef)(null),[em,eh]=(0,r.useState)(!1),[ep,eg]=(0,r.useState)(null),ev=(0,r.useRef)(null),ex=(0,r.useRef)(null),eb=(0,r.useRef)(!1),ef=(0,r.useRef)(!1),ew=(0,r.useCallback)((e,t)=>{(0,n.storeAuthCustomerProfile)((0,n.storedCustomerProfileFromRecord)(e));let a={name:[t.firstName,t.lastName].filter(Boolean).join(" ").trim()||u("account_flow_account"),email:t.email},r=(0,n.getAuthUserProfile)();(0,n.storeAuthUserProfile)(a);let l=(0,n.getAuthCustomerRole)(),i=e.role?.trim()||"";(r?.name!==a.name||r?.email!==a.email||l!==i)&&(0,n.emitAuthSessionChanged)()},[u]),ey=(0,r.useMemo)(()=>({setFirstName:C,setLastName:L,setEmailAddress:z,setCompanyName:q,setCountry:$,setDialingCode:T,setMobileNumber:O}),[]),ej=(0,r.useCallback)((e,t,a)=>{ey.setFirstName(e.firstName),ey.setLastName(e.lastName),ey.setEmailAddress(e.email),ey.setCompanyName(e.companyName),ey.setCountry(e.country),ey.setDialingCode(e.dialingCode),ey.setMobileNumber(e.mobileNumber),_(t),R(a?.trim()||""),ee(e),X({}),W(null)},[ey]),eN=(0,r.useCallback)(()=>{let e=(0,n.getAuthProfileFormPrefill)();ej((0,d.customerRecordToFormFields)(null,e),e.avatarUrl,(0,n.getAuthCu
422stomerRole)()??"")},[ej]),e_=(0,r.useCallback)(()=>e||o&&!!(0,n.getAuthToken)(),[e,o]),ek=(0,r.useCallback)(async t=>{if(!e_()){D(!1),ef.current=!1;return}if(!eb.current&&(!ef.current||t?.force)){eb.current=!0,D(!0);try{let e=await (0,c.fetchCustomerProfileClient)(),t=(0,d.extractCustomerProfileRecord)(e)??(0,d.extractCustomerProfileRecord)(e.data),a=(0,d.resolveCustomerProfileRole)(e)||(0,d.resolveCustomerProfileRole)(e.data),r=(0,d.customerRecordToFormFields)(t),l=t?.picture??null;ej(r,l,a),ef.current=!0,(t||a)&&ew({...t??{},...a?{role:a}:{}},r)}catch(t){if(t instanceof c.CustomerProfileRequestError&&401===t.status)return void(e?eN():b());console.warn("[PROFILE] Unable to load customer profile; using SSO prefill",t),eN()}finally{eb.current=!1,D(!1)}}},[e,ej,e_,ew,eN,u]);(0,r.useEffect)(()=>{let e=(0,n.getAuthCustomerRole)()??"";e&&R(e)},[]),(0,r.useEffect)(()=>{if(!e_()){D(!1),ef.current=!1;return}ek();let e=e=>{e.key!==n.AUTH_TOKEN_STORAGE_KEY||(ef.current=!1,e_()&&ek({force:!0}))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[e_,ek]),(0,r.useEffect)(()=>()=>{ex.current&&(clearTimeout(ex.current),ex.current=null)},[]);let eC=async t=>{var a,r;if(t.preventDefault(),W(null),X({}),!e_())return void W(u("sign_in_to_save_profile"));let l={firstName:(a={firstName:k,lastName:S,emailAddress:I,companyName:A,country:E,dialingCode:P,mobileNumber:M}).firstName,lastName:a.lastName,email:a.emailAddress,companyName:a.companyName,country:a.country,dialingCo
422de:a.dialingCode,mobileNumber:a.mobileNumber},i=(0,d.validateProfileFormFields)(l);if((0,d.hasProfileFieldErrors)(i))return void X(i);let s=(0,d.buildCustomerProfileUpdatePayload)(l,J);if(0===Object.keys(s).length)return void W(u("no_changes_to_save"));U(!0);try{let e=await (0,c.updateCustomerProfileClient)(s),t=(0,d.extractCustomerProfileRecord)(e)??(0,d.extractCustomerProfileRecord)(e.data)??(0,d.formFieldsToCustomerRecord)(l),a=(0,d.resolveCustomerProfileRole)(e)||(0,d.resolveCustomerProfileRole)(e.data),i={...t??{},...a?{role:a}:{}},o=(0,d.customerRecordToFormFields)(i,{...(0,n.getAuthProfileFormPrefill)(),email:l.email});ej(o,i?.picture??N,a),ef.current=!0,ew(i,o),r=(0,c.resolveProfileSuccessMessage)(e.message),ex.current&&clearTimeout(ex.current),Q(r),K(!0),ex.current=setTimeout(()=>{K(!1),Q(""),ex.current=null},3200)}catch(t){if(t instanceof c.CustomerProfileRequestError&&401===t.status)return void(e?W(u("unable_to_save_profile")):b());console.error("[PROFILE] Unable to save customer profile",t),W(u("unable_to_save_profile"))}finally{U(!1)}},eS=(0,r.useCallback)(()=>{et?.startsWith("blob:")&&URL.revokeObjectURL(et)},[et]),eL=(0,r.useCallback)(()=>{eS(),ea(null),el("image/jpeg"),en(""),eo(null),ed(!1),eu.current=null,eg(null),eh(!1)},[eS]),eI=()=>{w(!1),eL()},ez=e=>{let t=["image/jpeg","image/png"].includes(e.type),a=e.size<=2097152;t?a?(eS(),eg(null),el(e.type),en(e.name),ea(URL.createObjectURL(e)),eo(null)):eg(u("upload_file_too_large")):eg(u("upload_invalid_file_type"))},eA=async()=>{if(!et||!es||!eu.current)return void eg(u("profile_photo_crop_required"));ed(!0),eg(null);try{let e=await m(eu.current,es,er);if(e.size>2097152)return void eg(u("upload_file_too_large"));let t="image/png"===er?"png":"jpg",a=new File([e],ei.replace(/\.(jpe?g|png)$/i,"")+`-cropped.${t}`,{type:er}),r=URL.createObjectURL(a);N?.startsWith("blob:")&&URL.revokeObjectURL(N),_(r);let l=(0,n.getAuthCustomerProfile)();l&&(0,n.storeAuthCustomerProfile)({...l,picture:r}),eI()}catch(e){console.error("[PROFILE] Unable to crop profile photo",e),eg(u("profile_photo_crop_failed"))}finally{ed(!1)}},eq=k.trim().charAt(0).toUpperCase()||I.trim().charAt(0).toUpperCase()||"A",eE=F?(0,n.formatAuthRoleLabel)(F):"";return(0,t.jsxs)(t.Fragment,{children:[V?(0,t.jsx)("div",{className:"pointer-events-none fixed inset-0 z-[20000] flex items-center justify-center bg-transparent p-4",role:"status","aria-live":"polite","aria-atomic":"true",children:(0,t.jsxs)("div",{className:"pointer-events-auto w-full max-w-[440px] rounded-lg bg-white px-8 py-10 text-center shadow-[0_20px_50px_rgba(0,0,0,0.18)] md:px-12 md:py-12",children:[(0,t.jsx)("div",{className:"mx-auto mb-6 flex h-[4.5rem] w-[4.5rem] items-center justify-center rounded-full md:h-20 md:w-20",style:{backgroundColor:"#d1fae5"},"aria-hidden":!0,children:(0,t.jsx)("svg",{className:"h-9 w-9 md:h-10 md:w-10",style:{color:"#047857"},viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("h2",{className:"m-0 text-[length:1.25rem] font-bold leading-tight text-[#065f46] md:text-[length:1.5rem]",children:u("profile_updated")}),(0,t.jsx)("p",{className:"mt-4 mb-0 text-[length:0.9375rem] leading-relaxed text-neutral-600 md:text-[length:1rem]",children:Y})]})}):null,(0,t.jsxs)("div",{className:l.accountCardClass,children:[(0,t.jsx)("h1",{className:"mb-[var(--gap-24)] text-start align-middle text-[22px] text-[var(--profile-page-title-color)] leading-[40px] font-[var(--profile-page-title-weight)] md:text-[length:var(--heading-3-size)] md:leading-[180%]",children:u("my_profile")}),(0,t.jsx)("h5",{className:"mb-[var(--profile-page-photo-title-margin-bottom)] text-start align-middle text-[length:var(--profile-page-photo-title-size)] text-[var(--profile-page-photo-title-color)] leading-[180%] font-[var(--profile-page-photo-title-weight)]",children:u("profile_photo")}),(0,t.jsxs)("div",{className:"mb-[var(--profile-page-form-gap)] flex flex-col gap-[var(--profile-page-photo-row-gap)] md:flex-row md:items-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("button",{type:"button",className:"flex h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-full border-0 bg-[#f4f3ee] bg-center bg-cover p-[15p
422x] object-cover text-[40px] text-[var(--brand-neutral-text)] font-normal","aria-label":u("profile_photo_preview"),style:N?{backgroundImage:`url(${N})`}:void 0,children:N?"":eq})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-[15px] text-start text-[16px] text-[var(--brand-neutral-text)] leading-[180%] tracking-[0] font-normal",children:u("profile_photo_requirements")}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-[15px] md:flex-row md:items-center",children:[(0,t.jsx)(i.Button,{variant:"primary",type:"button",onClick:()=>w(!0),children:u("change_photo")}),N?(0,t.jsx)(i.Button,{variant:"outlined",type:"button",onClick:()=>j(!0),children:u("remove_photo")}):null]})]})]}),(0,t.jsxs)("div",{className:"mb-[var(--profile-page-form-gap)] border-b border-[var(--header-two-main-border)] pb-[var(--profile-page-form-gap)]",children:[(0,t.jsx)("p",{className:v,children:u("account_role")}),(0,t.jsx)("p",{className:"mt-[var(--profile-page-label-input-gap)] text-start text-[length:var(--body-regular-size)] font-[var(--font-weight-medium)] capitalize text-[var(--brand-neutral-text)]",children:B&&!eE?u("loading_profile"):eE||"—"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{className:"mb-[var(--profile-page-contact-title-margin-bottom)] text-start align-middle text-[18px] text-[var(--profile-page-contact-title-color)] leading-[32px] font-[var(--profile-page-contact-title-weight)] md:text-[length:var(--profile-page-contact-title-size)] md:leading-[180%]",children:u("contact_information")}),B?(0,t.jsx)("p",{className:"mb-4 text-start text-[14px] text-[var(--brand-neutral-text)]",children:u("loading_profile")}):null,G?(0,t.jsx)("p",{className:"mb-4 rounded-md border border-[#fecaca] bg-[#fef2f2] px-4 py-3 text-start text-[14px] text-[#b91c1c]",children:G}):null,(0,t.jsxs)("form",{className:"grid grid-cols-1 gap-[var(--profile-page-contact-form-gap)]",onSubmit:eC,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"firstName",className:v,children:u("first_name")}),(0,t.jsx)("input",{id:"firstName",name:"firstName",type:"text",placeholder:u("first_name"),value:k,onChange:e=>C(e.target.value),autoComplete:"given-name",disabled:B||H,className:g})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"lastName",className:v,children:u("last_name")}),(0,t.jsx)("input",{id:"lastName",name:"lastName",type:"text",placeholder:u("last_name"),value:S,onChange:e=>L(e.target.value),autoComplete:"family-name",disabled:B||H,className:g})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"emailAddress",className:v,children:u("email_address")}),(0,t.jsx)("input",{id:"emailAddress",name:"emailAddress",type:"email",placeholder:u("email_address"),value:I,readOnly:!0,autoComplete:"email",disabled:B||H,className:g,"aria-describedby":"emailAddressHint"}),(0,t.jsx)("p",{id:"emailAddressHint",className:"mt-2 text-start text-[13px] text-[var(--brand-neutral-text)]",children:u("email_managed_by_provider")})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"companyName",className:v,children:u("company_name")}),(0,t.jsx)("input",{id:"companyName",name:"companyName",type:"text",placeholder:u("company_name"),value:A,onChange:e=>q(e.target.value),autoComplete:"organization",disabled:B||H,className:g})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"country",className:v,children:u("country")}),(0,t.jsx)("input",{id:"country",name:"country",type:"text",placeholder:u("country"),value:E,onChange:e=>$(e.target.value),autoComplete:"country-name",disabled:B||H,className:g})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"dialingCode",className:v,children:u("dialing_code")}
422),(0,t.jsx)("input",{id:"dialingCode",name:"dialingCode",type:"text",placeholder:"+65",value:P,onChange:e=>T(e.target.value),autoComplete:"tel-country-code",disabled:B||H,className:g,"aria-invalid":!!Z.dialingCode}),Z.dialingCode?(0,t.jsx)("p",{className:"mt-2 text-start text-[14px] text-[#b91c1c]",children:Z.dialingCode}):null]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"mobileNumber",className:v,children:u("mobile_number")}),(0,t.jsx)("input",{id:"mobileNumber",name:"mobileNumber",type:"tel",inputMode:"numeric",placeholder:u("mobile_number"),value:M,onChange:e=>O(e.target.value),autoComplete:"tel-national",disabled:B||H,className:g,"aria-invalid":!!Z.mobileNumber}),Z.mobileNumber?(0,t.jsx)("p",{className:"mt-2 text-start text-[14px] text-[#b91c1c]",children:Z.mobileNumber}):null]}),(0,t.jsx)("div",{className:"mt-[30px] mb-[20px]",children:(0,t.jsx)(i.Button,{variant:"primary",type:"submit",className:"w-full",disabled:B||H,children:H?u("saving"):u("save_changes")})})]})]})]}),f?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0,onClick:eI}),(0,t.jsxs)("div",{className:"fixed left-1/2 top-1/2 z-[101] w-[80%] md:w-[35%] -translate-x-1/2 -translate-y-1/2 bg-[#fff] pt-[30px] pb-[25px] text-center shadow-[0_6px_30px_0_rgba(0,0,0,.051)]",role:"dialog","aria-labelledby":"upload-profile-picture-title","aria-modal":!0,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between px-[30px]",children:[(0,t.jsx)("h2",{id:"upload-profile-picture-title",className:"mb-0 text-start text-[18px] leading-[32px] text-[#00371d] font-semibold md:text-[24px] md:leading-[36px]",children:u("upload_profile_picture")}),(0,t.jsx)("button",{type:"button",onClick:eI,"aria-label":u("close"),className:"shrink-0 rounded-md p-1",children:(0,t.jsx)(a.default,{src:"/close.svg",alt:"",width:14,height:14})})]}),(0,t.jsx)("hr",{className:"mt-[20px] h-[1px] border-0 bg-[#e5e7e9]"}),(0,t.jsxs)("div",{className:`mx-[30px] my-[20px] border-2 border-dashed p-[20px] text-center ${em?"border-[#046a38] bg-[#f8fbf9]":"border-[#d7d7d7]"}`,onDragOver:e=>{e.preventDefault(),eh(!0)},onDragLeave:()=>eh(!1),onDrop:e=>{e.preventDefault(),eh(!1);let t=e.dataTransfer.files?.[0];t&&ez(t)},children:[et?(0,t.jsx)(h.ProfilePhotoCropper,{imageSrc:et,onCropAreaChange:eo,onImageRef:e=>{eu.current=e}}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mb-[15px] text-center text-[16px] text-[var(--brand-neutral-text)]",children:u("drag_and_drop_files")}),(0,t.jsx)("p",{className:"mb-[15px] text-center text-[16px] text-[var(--brand-neutral-text)]",children:u("or")}),(0,t.jsx)(i.Button,{variant:"primary",type:"button",className:"mb-[15px]",onClick:()=>ev.current?.click(),children:u("choose_file")})]}),(0,t.jsx)("input",{ref:ev,type:"file",accept:".jpg,.jpeg,.png,image/jpeg,image/png",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&(ez(t),e.target.value="")}}),et?(0,t.jsx)(i.Button,{variant:"outlined",type:"button",className:"mt-[12px]",onClick:()=>ev.current?.click(),children:u("choose_file")}):null,ep?(0,t.jsx)("p",{className:"mt-[12px] text-center text-[14px] text-[#b91c1c]",children:ep}):null]}),(0,t.jsxs)("div",{className:"mx-[30px] mt-0 mb-0 flex flex-col gap-[15px] md:flex-row md:justify-end",children:[(0,t.jsx)(i.Button,{variant:"outlined",type:"button",className:"w-full md:w-auto",onClick:eI,disabled:ec,children:u("cancel")}),(0,t.jsx)(i.Button,{variant:"primary",type:"button",className:"w-full md:w-auto",onClick:()=>void eA(),disabled:!et||!es||ec,children:ec?u("saving"):u("save_image")})]})]})]}):null,y?(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[100] bg-black/50","aria-hidden":!0,onClick:()=>j(!1)}),(0,t.jsx)("div",{className:"fixed left-1/2 top-1/2 z-[101] w-[80%] md:w-[35%] -translate-x-1/2 -translate-y-1/2 bg-[#fff] pt-[30px] pb-[25px] text-center shadow-[0_6px_30px_0_rgba(0,0,0,.051)]",role:"dialog","aria-labelledby":"remove-profile-picture-title","aria-modal":!0,children:(0,t.jsxs)("div",{className:"px-[30px]",children:[(0,t.jsx)(a.default,{src:"/profile/profile-remove-icon.png",alt:"",width:85,height:85,className:"mx-auto mb-[30px] h-[85px] w-[85px]"}),(0,t.jsx)("h2",{id:"remove-profile-picture-title",className:"mb-[10px] text-[18px] leading-[32px] text-[#00371d] font-semibold md:text-[24px] md:leading-[36px]",children:u("remove_photo_confirm_title")}),(0,t.jsx)("p",{className:"mb-[15px] text-[14px] text-[var(--brand-neutral-text)] leading-[180%] md:text-[16
422px]",children:u("remove_photo_confirm_body")}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-[20px] md:flex-row md:justify-center",children:[(0,t.jsx)(i.Button,{variant:"outlined",type:"button",className:"w-full md:flex-1",onClick:()=>j(!1),children:u("cancel")}),(0,t.jsx)(i.Button,{variant:"primary",type:"button",className:"w-full md:flex-1",onClick:()=>{N?.startsWith("blob:")&&URL.revokeObjectURL(N),_(null);let e=(0,n.getAuthCustomerProfile)();e&&(0,n.storeAuthCustomerProfile)({...e,picture:""}),j(!1)},children:u("remove_photo")})]})]})})]}):null]})}e.s(["default",()=>f],753899)},948228,e=>{"use strict";var t=e.i(843476);e.i(527967);var a=e.i(830167),r=e.i(657688),l=e.i(271645);let i=["Bangladesh","Indonesia","India","Singapore","Sri Lanka"],n=["Male","Female","Other"],s=["Bachelor's","Doctorate","Associate's","Master's"],o=["English","Bengali","Hindi","Indonesian","Mandarin"],c=["Basic","Intermediate","Advanced","Fluent","Native"],d="w-full rounded-[var(--career-profile-input-radius)] border border-[var(--career-profile-input-border-color)] bg-[var(--career-profile-input-bg)] px-4 text-start text-[var(--career-profile-input-text-color)] outline-none focus:border-[var(--career-profile-input-focus-border-color)]",u=`h-[var(--career-profile-input-height)] ${d}`,m=`h-[var(--career-profile-input-height)] appearance-none pe-10 ${d}`,h="block w-full h-[calc(1.5em+0.75rem+2px)] rounded-[0.25rem] border border-[#ced4da] bg-white bg-clip-padding p-0 text-start text-[1rem] font-normal leading-[1.5] text-[#495057] transition-[border-color,box-shadow] duration-150 ease-in-out file:me-3 file:h-full file:rounded-[0.25rem] file:border-0 file:bg-[#E9ECEF] file:px-[0.75rem] file:py-0 file:text-[1rem] file:font-normal file:leading-[1.5] file:text-[#495057]",p="mb-[0.5rem] text-start text-[var(--career-profile-label-color)]",g="cursor-pointer rounded-[20px] border border-[var(--career-profile-save-bg)] bg-[var(--career-profile-save-bg)] px-3 py-1.5 text-[1rem] leading-[1.5] text-[var(--career-profile-save-color)]",v="cursor-pointer rounded-[20px] border border-[var(--career-profile-cancel-color)] bg-white px-3 py-1.5 text-[1rem] leading-[1.5] text-[var(--career-profile-cancel-color)] hover:bg-[var(--career-profile-cancel-hover-bg)] hover:text-[var(--career-profile-cancel-hover-color)]",x="cursor-pointer rounded-[20px] border border-transparent bg-[var(--career-profile-education-action-bg)] px-3 py-1.5 text-[1rem] leading-[1.5] text-[var(--career-profile-education-action-text-color)] hover:bg-[var(--career-profile-education-action-hover-bg)]",b="rounded-[20px] border border-[rgba(0,0,0,0.125)] bg-white",f="w-full rounded-t-[20px] bg-cover bg-center px-[40px] py-[33px]",w="px-[var(--career-profile-card-body-padding-x)] py-[var(--career-profile-card-body-padding-y)]",y="flex flex-col gap-[var(--career-profile-form-row-gap)] md:px-[var(--career-profile-card-content-padding-x-desktop)]",j="flex justify-end gap-[var(--career-profile-actions-gap)]",N="flex items-center gap-[var(--career-profile-checkbox-gap)] text-start text-[var(--career-profile-label-color)]",_="h-[var(--career-profile-checkbox-size)] w-[var(--career-profile-checkbox-size)] rounded-[var(--career-profile-checkbox-radius)] border border-[var(--career-profile-checkbox-border-color)]",k=()=>(0,t.jsx)("span",{className:"text-[var(--brand-danger)]",children:"*"}),C=()=>({id:`${Date.now()}-${Math.random().toString(36).slice(2)}`,institute:"",major:"",degree:"",startDate:"",endDate:"",present:!1,city:"",country:"",gpa:"",scale:""}),S=()=>({id:`${Date.now()}-${Math.random().toString(36).slice(2)}`,positionTitle:"",employer:"",startDate:"",endDate:"",currentlyWorkHere:!1,responsibilities:"",city:"",country:""}),L=()=>({id:`${Date.now()}-${Math.random().toString(36).slice(2)}`,language:"",spoken:"",written:""});function I(){let[e,I]=(0,l.useState)(""),[z,A]=(0,l.useState)({fullName:"",gender:"",dateOfBirth:"",emailAddress:"",phoneNumber:"",currentAddress:"",city:"",province:"",country:""}),[q,E]=(0,l.useState)([C()]),[$,P]=(0,l.useState)([S()]),[T,M]=(0,l.useState)({skill:""}),[O,F]=(0,l.useState)([L()]),[R,B]=(0,l.useState)({cvOrResume:"",coverLetter:"",otherFile:""}),[D,H]=(0,l.useState)({expectedMonthlySalary:"",preferredWorkLocation:"",workInAnyLocation:!1,otherInformation:""}),U=(0,l.useMemo)(()=>q.length>1,[q.length]),G=(0,l.useMemo)(()=>$.length>1,[$.length]),W=(0,l.useMemo)(()=>O.length>1,[O.length]),V=(e,t,a)=>{E(r=>r.map(r=>r.id===e?{...r,[t]:a}:r))},K=()=>{E(e=>[...e,C()])},Y=(e,t)=>
422{A(a=>({...a,[e]:t}))},Q=(e,t,a)=>{P(r=>r.map(r=>r.id===e?{...r,[t]:a}:r))},Z=()=>{P(e=>[...e,S()])},X=(e,t,a)=>{F(r=>r.map(r=>r.id===e?{...r,[t]:a}:r))},J=()=>{F(e=>[...e,L()])},ee=(e,t)=>{B(a=>({...a,[e]:t}))},et=(e,t)=>{H(a=>({...a,[e]:t}))};return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault()},className:"flex flex-col gap-[var(--career-profile-cards-gap)]",children:[(0,t.jsxs)("section",{id:"about-me",className:b,children:[(0,t.jsx)("header",{className:f,style:{backgroundImage:"url('/careers/bg-close-profile-cards.webp')"},children:(0,t.jsx)("h2",{className:"mb-0 text-start text-[length:var(--career-profile-card-title-size-mobile)] md:text-[length:var(--career-profile-card-title-size)] text-white",children:"About Me"})}),(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("div",{className:y,children:[(0,t.jsx)("label",{htmlFor:"profile-image-input",className:"flex h-[var(--career-profile-dropzone-height)] max-w-[var(--career-profile-dropzone-width)] cursor-pointer flex-col items-center justify-center rounded-[var(--career-profile-dropzone-radius)] border border-[var(--career-profile-dropzone-border-color)] text-center text-[var(--career-profile-dropzone-color)]",children:e?(0,t.jsx)(r.default,{src:e,alt:"Profile preview",width:100,height:150,className:"h-full w-full rounded-[var(--career-profile-dropzone-radius)] object-cover"}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("span",{className:"leading-none",children:"+"})})}),(0,t.jsx)("input",{id:"profile-image-input",name:"profileImage",type:"file",accept:"image/*",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&I(URL.createObjectURL(t))}}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"fullName",className:p,children:["Full Name",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"fullName",name:"fullName",type:"text",placeholder:"Enter full name",className:u,value:z.fullName,onChange:e=>Y("fullName",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"gender",className:p,children:["Gender",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:"gender",name:"gender",className:m,value:z.gender,onChange:e=>Y("gender",e.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Gender"}),n.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"dateOfBirth",className:p,children:["Date of Birth",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"dateOfBirth",name:"dateOfBirth",type:"date",placeholder:"Select date of birth",className:u,value:z.dateOfBirth,onChange:e=>Y("dateOfBirth",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"emailAddress",className:p,children:["Email Address",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"emailAddress",name:"emailAddress",type:"email",placeholder:"Enter email address",className:u,value:z.emailAddress,onChange:e=>Y("emailAddress",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"phoneNumber",className:p,children:["Phone Number",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"phoneNumber",name:"phoneNumber",type:"tel",placeholder:"Enter phone number",className:u,value:z.phoneNumber,onChange:e=>Y("phoneNumber",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"currentAddress",className:p,children:["Current Address",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"currentAddress",name:"currentAddress",type:"text",placeholder:"Enter current address",className:u,value:z.currentAddress,onChange:e=>Y("currentAddress",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"aboutCity",className:p,children:["City",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"aboutCity",name:"aboutCity",type:"text",placeholder:"Enter city",className:u,value:z.city,onChange:e=>Y("city",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"province",className:p,children:["Province",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"province",name:"province",type:"text",placeholder:"Enter province",className:u,value:z.province,onChange:e=>Y("province",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"aboutCountry",className:p,children:["Country",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:"aboutCountry",name:"aboutCountry",className:m,value:z.country,onChange:e=>Y("country",e.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Country"}),i.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]}),(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("button",{type:"button",className:v,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:g,children:"Save"})]})]})})]}),(0,t.jsxs)("section",{id:"education-me",className:b,children:[(0,t.jsx)("header",{className:f,style:{backgroundImage:"url('/careers/bg-close-profile-cards.webp')"},children:(0,t.jsx)("h2",{className:"mb-0 text-start text-[length:var(--career-profile-card-title-size-mobile)] md:text-[length:var(--career-profile-card-title-size)] text-white",children:"Education"})}),(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("div",{className:y,children:[q.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--career-profile-form-row-gap)] rounded-[var(--career-profile-item-radius)] p-[var(--career-profile-item-padding)]",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-institute-${e.id}`,className:p,children:["Institute/University",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`education-institute-${e.id}`,name:`education-institute-${e.id}`,type:"text",placeholder:"Enter institute or university",className:u,value:e.institute,onChange:t=>V(e.id,"institute",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-major-${e.id}`,className:p,children:["Major",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`education-major-${e.id}`,name:`education-major-${e.id}`,type:"text",placeholder:"Enter major",className:u,value:e.major,onChange:t=>V(e.id,"major",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-degree-${e.id}`,className:p,children:["Degree",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:`education-degree-${e.id}`,name:`education-degree-${e.id}`,className:m,value:e.degree,onChange:t=>V(e.id,"degree",t.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Degree"}),s.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--career-profile-dual-field-gap)] md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-startDate-${e.id}`,className:p,children:["Start Date",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`education-startDate-${e.id}`,name:`education-startDate-${e.id}`,type:"date",placeholder:"Select start date",className:u,value:e.startDate,onChange:t=>V(e.id,"startDate",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-endDate-${e.id}`,className:p,children:["End Date",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`education-endDate-${e.id}`,name:`education-endDate-${e.id}`,type:"date",placeholder:"Select end date",className:`${u} disabled:cursor-not-allowed disabled:opacity-60`,disabled:e.present,value:e.endDate,onChange:t=>V(e.id,"endDate",t.target.value)})]})]}
422),(0,t.jsxs)("label",{htmlFor:`education-present-${e.id}`,className:N,children:[(0,t.jsx)("input",{id:`education-present-${e.id}`,name:`education-present-${e.id}`,type:"checkbox",className:_,checked:e.present,onChange:t=>{let a=t.target.checked;V(e.id,"present",a),a&&V(e.id,"endDate","")}}),"Present"]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-city-${e.id}`,className:p,children:["City",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`education-city-${e.id}`,name:`education-city-${e.id}`,type:"text",placeholder:"Enter city",className:u,value:e.city,onChange:t=>V(e.id,"city",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-country-${e.id}`,className:p,children:["Country",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:`education-country-${e.id}`,name:`education-country-${e.id}`,className:m,value:e.country,onChange:t=>V(e.id,"country",t.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Country"}),i.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`education-gpa-${e.id}`,className:p,children:["GPA",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--career-profile-dual-field-gap)] md:grid md:grid-cols-[1fr_auto_1fr] md:items-center",children:[(0,t.jsx)("input",{id:`education-gpa-${e.id}`,name:`education-gpa-${e.id}`,type:"text",placeholder:"GPA",className:u,value:e.gpa,onChange:t=>V(e.id,"gpa",t.target.value)}),(0,t.jsx)("span",{className:"self-center text-[var(--career-profile-label-color)] md:self-auto",children:"of"}),(0,t.jsx)("input",{id:`education-scale-${e.id}`,name:`education-scale-${e.id}`,type:"text",placeholder:"Scale",className:u,value:e.scale,onChange:t=>V(e.id,"scale",t.target.value)})]})]}),(0,t.jsxs)("div",{className:"flex gap-[var(--career-profile-actions-gap)]",children:[(0,t.jsx)("button",{type:"button",className:x,onClick:K,children:"+ Add New"}),U&&(0,t.jsx)("button",{type:"button",className:x,onClick:()=>{var t;return t=e.id,void E(e=>e.length>1?e.filter(e=>e.id!==t):e)},children:"- Remove"})]})]},e.id)),(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("button",{type:"button",className:v,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:g,children:"Save"})]})]})})]}),(0,t.jsxs)("section",{id:"experience-me",className:b,children:[(0,t.jsx)("header",{className:f,style:{backgroundImage:"url('/careers/bg-close-profile-cards.webp')"},children:(0,t.jsx)("h2",{className:"mb-0 text-start text-[length:var(--career-profile-card-title-size-mobile)] md:text-[length:var(--career-profile-card-title-size)] text-white",children:"Experience"})}),(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("div",{className:y,children:[$.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--career-profile-form-row-gap)] rounded-[var(--career-profile-item-radius)] p-[var(--career-profile-item-padding)]",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`experience-positionTitle-${e.id}`,className:p,children:["Position Title",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`experience-positionTitle-${e.id}`,name:`experience-positionTitle-${e.id}`,type:"text",placeholder:"Enter position title",className:u,value:e.positionTitle,onChange:t=>Q(e.id,"positionTitle",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`experience-employer-${e.id}`,className:p,children:["Employer",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`experience-employer-${e.id}`,name:`experience-employer-${e.id}`,type:"text",placeholder:"Enter employer",className:u,value:e.employer,onChange:t=>Q(e.id,"employer",t.target.value)})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--career-profile-dual-field-gap)] md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`experience-startDate-${e.id}`,className:p,children:["Start Date",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`experience-startDate-${e.id}`,name:`experience-startDate-${e.id}`,type:"date",placeholder:"Select start date",className:u,value:e.startDate,onChange:t=>Q(e.id,"startDate",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`experience-endDate-${e.id}`,className:p,children:["End Date",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`experience-endDate-${e.id}`,name:`experience-endDate-${e.id}`,type:"date",placeholder:"Select end date",className:`${u} disabled:cursor-not-allowed disabled:opacity-60`,disabled:e.currentlyWorkHere,value:e.endDate,onChange:t=>Q(e.id,"endDate",t.target.value)})]})]}),(0,t.jsxs)("label",{htmlFor:`experience-currentlyWorkHere-${e.id}`,className:N,children:[(0,t.jsx)("input",{id:`experience-currentlyWorkHere-${e.id}`,name:`experience-currentlyWorkHere-${e.id}`,type:"checkbox",className:_,checked:e.currentlyWorkHere,onChange:t=>{let a=t.target.checked;Q(e.id,"currentlyWorkHere",a),a&&Q(e.id,"endDate","")}}),"Currently work here"]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{htmlFor:`experience-responsibilities-${e.id}`,className:p,children:"Responsibilities"}),(0,t.jsx)("textarea",{id:`experience-responsibilities-${e.id}`,name:`experience-responsibilities-${e.id}`,placeholder:"Enter responsibilities",className:`${d} h-[var(--career-profile-textarea-height)] py-2`,value:e.responsibilities,onChange:t=>Q(e.id,"responsibilities",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`experience-city-${e.id}`,className:p,children:["City",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:`experience-city-${e.id}`,name:`experience-city-${e.id}`,type:"text",placeholder:"Enter city",className:u,value:e.city,onChange:t=>Q(e.id,"city",t.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`experience-country-${e.id}`,className:p,children:["Country",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:`experience-country-${e.id}`,name:`experience-country-${e.id}`,className:m,value:e.country,onChange:t=>Q(e.id,"country",t.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Country"}),i.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]}),(0,t.jsxs)("div",{className:"flex gap-[var(--career-profile-actions-gap)]",children:[(0,t.jsx)("button",{type:"button",className:x,onClick:Z,children:"+ add new"}),G&&(0,t.jsx)("button",{type:"button",className:x,onClick:()=>{var t;return t=e.id,void P(e=>e.length>1?e.filter(e=>e.id!==t):e)},children:"- remove"})]})]},e.id)),(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("button",{type:"button",className:v,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:g,children:"Save"})]})]})})]}),(0,t.jsxs)("section",{id:"skills-me",className:b,children:[(0,t.jsx)("header",{className:f,style:{backgroundImage:"url('/careers/bg-close-profile-cards.webp')"},children:(0,t.jsx)("h2",{className:"mb-0 text-start text-[length:var(--career-profile-card-title-size-mobile)] md:text-[length:var(--career-profile-card-title-size)] text-white",children:"Skills"})}),(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("div",{className:y,children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{htmlFor:"skill",className:p,children:"Skill"}),(0,t.jsx)("input",{id:"skill",name:"skill",type:"text",placeholder:"Enter skill",className:u,value:T.skill,onChange:e=>{var t;return t=e.target.value,void M(e=>({...e,skill:t}))}})]}),(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("button",{type:"button",className:v,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:g,children:"Save"})]})]})})]}),(0,t.jsxs)("section",{id:"languages-me",className:b,children:[(0,t.jsx)("header",{className:f,style:{backgroundImage:"url('/careers/bg-close-profile-cards.webp')"},children:(0,t.jsx)("h2",{className:"mb-0 text-start text-[length:var(--career-profile-card-title-size-mobile)] md:text-[length:var(--career-profile-card-title-size)] text-white",children:"Languages"})}),(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("div",{className:y,children:[O.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--career-profile-form-row-gap)] p-[var(--career-profile-item-padding)]",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-[var(--career-profile-dual-field-gap)] md:grid-cols-3",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`language-language-${e.id}`,className:p,children:["Language",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:`language-language-${e.id}`,name:`language-language-${e.id}`,className:m,value:e.language,onChange:t=>X(e.id,"language",t.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Language"}),o.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`language-spoken-${e.id}`,className:p,children:["Spoken",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:`language-spoken-${e.id}`,name:`language-spoken-${e.id}`,className:m,value:e.spoken,onChange:t=>X(e.id,"spoken",t.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Spoken"}),c.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:`language-written-${e.id}`,className:p,children:["Written",(0,t.jsx)(k,{})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{id:`language-written-${e.id}`,name:`language-written-${e.id}`,className:m,value:e.written,onChange:t=>X(e.id,"written",t.target.value),children:[(0,t.jsx)("option",{value:"",children:"Select Written"}),c.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(a.ArrowIcon,{className:"pointer-events-none absolute top-1/2 end-4 h-3 w-3 -translate-y-1/2 rotate-90 text-[var(--brand-primary)]"})]})]})]}),(0,t.jsxs)("div",{className:"flex gap-[var(--career-profile-actions-gap)]",children:[(0,t.jsx)("button",{type:"button",className:x,onClick:J,children:"+ add new"}),W&&(0,t.jsx)("button",{type:"button",className:x,onClick:()=>{var t;return t=e.id,void F(e=>e.length>1?e.filter(e=>e.id!==t):e)},children:"- remove"})]})]},e.id)),(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("button",{type:"button",className:v,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:g,children:"Save"})]})]})})]}),(0,t.jsxs)("section",{id:"update-cv-or-resume-me",className:b,children:[(0,t.jsx)("header",{className:f,style:{backgroundImage:"url('/careers/bg-close-profile-cards.webp')"},children:(0,t.jsx)("h2",{className:"mb-0 text-[length:var(--career-profile-card-title-size-mobile)] md:text-[length:var(--career-profile-card-title-size)] text-white",children:"Upload Document"})}),(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("div",{className:y,children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"cvOrResume",className:p,children:["CV or Resume",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{name:"cvOrResume",id:"cvOrResume",type:"file",accept:"application/pdf",className:h,onChange:e=>ee("cvOrResume",e.target.files?.[0]?.name??"")}),R.cvOrResume&&(0,t.jsx)("span",{className:"mt-[var(--career-profile-helper-text-margin-top)] text-[length:var(--career-profile-helper-text-size)] text-[var(--career-profile-secondary-text-color)]",children:R.cvOrResume})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{htmlFor:"coverLetter",className:p,children:"Cover Letter"}
422),(0,t.jsx)("input",{name:"coverLetter",id:"coverLetter",type:"file",accept:"application/pdf",className:h,onChange:e=>ee("coverLetter",e.target.files?.[0]?.name??"")}),R.coverLetter&&(0,t.jsx)("span",{className:"mt-[var(--career-profile-helper-text-margin-top)] text-[length:var(--career-profile-helper-text-size)] text-[var(--career-profile-secondary-text-color)]",children:R.coverLetter})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{htmlFor:"otherFile",className:p,children:"Other File"}),(0,t.jsx)("input",{name:"otherFile",id:"otherFile",type:"file",accept:"application/pdf",className:h,onChange:e=>ee("otherFile",e.target.files?.[0]?.name??"")}),R.otherFile&&(0,t.jsx)("span",{className:"mt-[var(--career-profile-helper-text-margin-top)] text-[length:var(--career-profile-helper-text-size)] text-[var(--career-profile-secondary-text-color)]",children:R.otherFile})]}),(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("button",{type:"button",className:v,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:g,children:"Save"})]})]})})]}),(0,t.jsxs)("section",{id:"additional-information-me",className:b,children:[(0,t.jsx)("header",{className:f,style:{backgroundImage:"url('/careers/bg-close-profile-cards.webp')"},children:(0,t.jsx)("h2",{className:"mb-0 text-[length:var(--career-profile-card-title-size-mobile)] md:text-[length:var(--career-profile-card-title-size)] text-white",children:"Additional Information"})}),(0,t.jsx)("div",{className:w,children:(0,t.jsxs)("div",{className:y,children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("label",{htmlFor:"expectedMonthlySalary",className:p,children:["Expected Monthly Salary",(0,t.jsx)(k,{})]}),(0,t.jsx)("input",{id:"expectedMonthlySalary",name:"expectedMonthlySalary",type:"text",placeholder:"Enter expected monthly salary",className:u,value:D.expectedMonthlySalary,onChange:e=>et("expectedMonthlySalary",e.target.value)})]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{htmlFor:"preferredWorkLocation",className:p,children:"Preferred Work Location"}),(0,t.jsx)("input",{id:"preferredWorkLocation",name:"preferredWorkLocation",type:"text",placeholder:"Enter preferred work location",className:u,value:D.preferredWorkLocation,onChange:e=>et("preferredWorkLocation",e.target.value)})]}),(0,t.jsxs)("label",{htmlFor:"workInAnyLocation",className:N,children:[(0,t.jsx)("input",{id:"workInAnyLocation",name:"workInAnyLocation",type:"checkbox",className:_,checked:D.workInAnyLocation,onChange:e=>et("workInAnyLocation",e.target.checked)}),"I want to work in any location"]}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("label",{htmlFor:"otherInformation",className:p,children:"Other Information"}),(0,t.jsx)("textarea",{id:"otherInformation",name:"otherInformation",placeholder:"Enter other information",className:`${d} h-[var(--career-profile-textarea-height)] py-2`,value:D.otherInformation,onChange:e=>et("otherInformation",e.target.value)})]}),(0,t.jsxs)("div",{className:j,children:[(0,t.jsx)("button",{type:"button",className:v,children:"Cancel"}),(0,t.jsx)("button",{type:"submit",className:g,children:"Save"})]})]})})]})]})}e.s(["CareerProfileForm",()=>I])},500376,e=>{e.v(t=>Promise.all(["static/chunks/afbf5dbd61d0ff06.js"].map(t=>e.l(t))).then(()=>t(889825)))},552180,e=>{e.v(t=>Promise.all(["static/chunks/b51e9e6d703a0ed4.js"].map(t=>e.l(t))).then(()=>t(361728)))},338676,e=>{e.v(t=>Promise.all(["static/chunks/bee87ca522ea99ed.js"].map(t=>e.l(t))).then(()=>t(495925)))},741267,e=>{e.v(t=>Promise.all(["static/chunks/153282551927955f.js"].map(t=>e.l(t))).then(()=>t(449970)))},794750,e=>{e.v(t=>Promise.all(["static/chunks/186cb310cfbe2b88.js"].map(t=>e.l(t))).then(()=>t(655799)))},269631,e=>{e.v(t=>Promise.all(["static/chunks/89966e9b6a348e81.js"].map(t=>e.l(t))).then(()=>t(266145)))},116186,e=>{e.v(t=>Promise.all(["static/chunks/7df8b1a0fb232f94.js"].map(t=>e.l(t))).then(()=>t(857495)))},904776,e=>{e.v(t=>Promise.all(["static/chunks/998fba940a9f885e.js"].map(t=>e.l(t))).then(()=>t(108673)))},533355,e=>{e.v(t=>Promise.all(["static/chunks/09d68ccd06d236ed.js"].map(t=>e.l(t))).then(()=>t(361414)))},938205,e=>{e.v(t=>Promise.all(["static/chunks/b8e178ac9d54a287.js"].map(t=>e.l(t))).then(()=>t(288802)))},776586,e=>{e.v(t=>Promise.all(["static/chunks/84579baf75db80c4.js"].map(t=>e.l(t))).then(()=>t(885726)))},465895,e=>{e.v(t=>Promise.all(["static/chunks/ebef3eba9ecc99dc.js"].map(t=>e.l(t))).then(()=>t(172342)))},986832,e=>{e.v(t=>Promise.all(["static/chunks/cdd90e42ae0d375c.js"].map(t=>e.l(t))).then(()=>t(820817)))},129038,e=>{e.v(t=>Promise.all(["static/chunks/d5d16910139aa720.js"].map(t=>e.l(t))).then(()=>t(149654)))},589091,e=>{e.v(t=>Promise.all(["static/chunks/0728badffd2e6762.js"].map(t=>e.l(t))).then(()=>t(290513)))},238473,e=>{e.v(t=>Promise.all(["static/chunks/0596e8826b59ef0f.js"].map(t=>e.l(t))).then(()=>t(739890)))},5955,e=>{e.v(t=>Promise.all(["static/chunks/07bc7760762a982d.js"].map(t=>e.l(t))).then(()=>t(666985)))},422982,e=>{e.v(t=>Promise.all(["static/chunks/a858e9b1a9b13b5f.js"].map(t=>e.l(t))).then(()=>t(940216)))},784528,e=>{e.v(t=>Promise.all(["static/chunks/626989c6438352f8.js"].map(t=>e.l(t))).then(()=>t(312082)))},790449,e=>{e.v(t=>Promise.all(["static/chunks/5ae5d96fcb5852a1.js"].map(t=>e.l(t))).then(()=>t(933868)))},799259,e=>{e.v(t=>Promise.all(["static/chunks/c6ed0a60404aaa6d.js"].map(t=>e.l(t))).then(()=>t(573252)))},460576,e=>{e.v(t=>Promise.all(["static/chunks/f0280bb715e1cb06.js"].map(t=>e.l(t))).then(()=>t(69190)))},768814,e=>{e.v(t=>Promise.all(["static/chunks/8e811efacaaff9de.js"].map(t=>e.l(t))).then(()=>t(163269)))},656924,e=>{e.v(t=>Promise.all(["static/chunks/5dcf202286993769.js"].map(t=>e.l(t))).then(()=>t(673717)))},485431,e=>{e.v(t=>Promise.all(["static/chunks/ddece731e73f1bbb.js"].map(t=>e.l(t))).then(()=>t(318494)))},290246,e=>{e.v(t=>Promise.all(["static/chunks/6cd79a9f11b59529.js"].map(t=>e.l(t))).then(()=>t(388978)))},392481,e=>{e.v(t=>Promise.all(["static/chunks/17cb163f6a184901.js"].map(t=>e.l(t))).then(()=>t(965333)))},907166,e=>{e.v(t=>Promise.all(["static/chunks/1669d76f8b4d062f.js"].map(t=>e.l(t))).then(()=>t(152268)))},571446,e=>{e.v(t=>Promise.all(["static/chunks/e09b02870ed0163a.js"].map(t=>e.l(t))).then(()=>t(266112)))},473186,e=>{e.v(t=>Promise.all(["static/chunks/60bcb321acd0ef2c.js"].map(t=>e.l(t))).then(()=>t(727304)))}
422,782818,e=>{e.v(t=>Promise.all(["static/chunks/fbd9b01c51a27fff.js"].map(t=>e.l(t))).then(()=>t(168369)))},952312,e=>{e.v(t=>Promise.all(["static/chunks/5a5dc01e1c8d2db0.js"].map(t=>e.l(t))).then(()=>t(562537)))},388973,e=>{e.v(t=>Promise.all(["static/chunks/75eec3a7a30d7a91.js"].map(t=>e.l(t))).then(()=>t(512548)))},349423,e=>{e.v(e=>Promise.resolve().then(()=>e(967224)))},660877,e=>{e.v(e=>Promise.resolve().then(()=>e(940333)))},700095,e=>{e.v(e=>Promise.resolve().then(()=>e(187387)))},842225,e=>{e.v(e=>Promise.resolve().then(()=>e(344888)))},887867,e=>{e.v(e=>Promise.resolve().then(()=>e(645214)))},626465,e=>{e.v(e=>Promise.resolve().then(()=>e(42596)))},617335,e=>{e.v(e=>Promise.resolve().then(()=>e(411971)))},535805,e=>{e.v(e=>Promise.resolve().then(()=>e(700483)))},435772,e=>{e.v(t=>Promise.all(["static/chunks/fecf177bc1fbcaf3.js"].map(t=>e.l(t))).then(()=>t(691400)))},245262,e=>{e.v(t=>Promise.all(["static/chunks/d727fa6bf653ed7e.js"].map(t=>e.l(t))).then(()=>t(354950)))},428960,e=>{e.v(t=>Promise.all(["static/chunks/55474c34f6b1e47b.js"].map(t=>e.l(t))).then(()=>t(497645)))},298967,e=>{e.v(t=>Promise.all(["static/chunks/e9ec77e8719f33e7.js"].map(t=>e.l(t))).then(()=>t(732853)))},548308,e=>{e.v(t=>Promise.all(["static/chunks/14ffd07a61840609.js"].map(t=>e.l(t))).then(()=>t(860640)))},160299,e=>{e.v(t=>Promise.all(["static/chunks/4e3bd12e6a4370da.js"].map(t=>e.l(t))).then(()=>t(36585)))},115825,e=>{e.v(t=>Promise.all(["static/chunks/4b6ddce18e7f9a48.js"].map(t=>e.l(t))).then(()=>t(396922)))}]);

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.