1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4034],{19912:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var l=r(95155),s=r(58681),a=r.n(s),n=r(2821);let c=e=>{let{invertColors:t,variant:r="primary",...s}=e;return(0,l.jsx)("button",{...s,className:(0,n.A)(a().button,t&&a().inverted,"primary"===r&&a().primary,"secondary"===r&&a().secondary,s.className)})}},29040:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var l=r(31162),s=r(71493),a=r(97022),n=r(68162);let c={metadataUserRestrictions:1,metadataTabs:1,metadataRestrictedTabs:1},i=async(e,t)=>{let{languageCode:r,accessKey:i,withMetadata:o,content:u}=t;return(await l.A.get("/rest/v3/ProductInfo/".concat(e),{cache:!1,baseURL:a.S?n.iB:"",timeout:(0,s.n)(10),params:{LanguageCode:r.replace("-","_"),...o&&c,AccessKey:i,content:u}})).data}},58681:e=>{e.exports={button:"styles_button__DNJ4N",primary:"styles_primary__OrxC6",inverted:"styles_inverted___6Lhm",secondary:"styles_secondary__RBxYH"}},64034:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>el});var l,s=r(95155),a=r(86462),n=r(95957),c=r(50149),i=r(12115);let o=(0,i.createContext)(void 0),u=e=>{let{children:t}=e,[r,l]=(0,i.useState)(!1),[a,n]=(0,i.useState)(null),c=(0,i.useCallback)(e=>{n(e),l(!0)},[]),u=(0,i.useCallback)(()=>{l(!1),n(null)},[]);return(0,s.jsxs)(o.Provider,{value:{isOpen:r,openModal:c,closeModal:u},children:[t,r&&a]})};var d=r(64823),h=r(41139),x=r(12147),m=r(90659),_=r(26217);let p={..._.c,formatDistance:(e,t,r)=>"lessThanXMinutes"===e&&1===t?"a few seconds ago":_.c.formatDistance(e,t,r)},j=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";if(null==e&&null==t)return 0;if(null==e)return 1;if(null==t)return -1;let l=e-t;return"asc"===r?l:-l};var f=r(20423);let b=e=>null!=e&&(0,f.k)(e)?Number(e):null,v=(e,t)=>{let r=e.countryId-t.countryId;if(0!==r)return r;let l=t.value-e.value;return 0!==l?l:j(b(e.price),b(t.price),"asc")};var y=r(83955),g=r.n(y);let N=e=>{let{header:t,children:r,className:l}=e;
1return(0,s.jsxs)("table",{className:[g().table,l].filter(Boolean).join(" "),children:[(0,s.jsx)("thead",{children:t}),(0,s.jsx)("tbody",{children:r})]})};function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}let I=function(e){return i.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),l||(l=i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"m120.255 177.219 20.007 2.541a12.94 12.94 0 0 0 12.924-6.12 36.58 36.58 0 0 1 36.295-17.918l8.748 1.118a12.8 12.8 0 0 0 11.7-4.86l7.709-10a21.06 21.06 0 0 0 .629-24.942l-16.621-23.972a72.35 72.35 0 0 0-22.764-21.078 82 82 0 0 1-7.812-5.195l-29.258-22a241 241 0 0 0-55.518 41.5 238.18 238.18 0 0 0-68.652 141.512 43.825 43.825 0 0 1 46 21.033 34.5 34.5 0 0 0 6.147 7.725l17.417 16.394a21.2 21.2 0 0 0 8.912 4.991l2.033.556a40.47 40.47 0 0 1 28.224 28.106l9.338 33.69a27.8 27.8 0 0 0 4.71 9.484l28.294 37.1a40.9 40.9 0 0 1 7.793 18.011l7.69 46.139a1.85 1.85 0 0 0 .559 1.128 1.53 1.53 0 0 0 1.6.241 8 8 0 0 0 4.889-6.672 51.6 51.6 0 0 1 11.959-28.339l8.2-9.859a12.1 12.1 0 0 0 2.275-4.2L222.1 376a45.5 45.5 0 0 1 15.853-22.8l25.058-19.242a3.97 3.97 0 0 0 1.573-2.417 3.5 3.5 0 0 0-.8-2.894L247.1 309.019a62 62 0 0 1-3.1-3.961l-12.752-17.775c-6.456-9-16.269-14.205-26.25-13.956a11.37 11.37 0 0 1-6.16-1.62l-26.066-15.64a20.34 20.34 0 0 0-19.975-.485l-13.733 7.357a32.11 32.11 0 0 1-42.129-11.081L83.6 230.8a34 34 0 0 1 .576-37.267 37.63 37.63 0 0 1 36.079-16.314"}),i.createElement("path",{d:"M477.336 328.807a36.13 36.13 0 0 0-31.689 21.677l-1.518 3.339A37.27 37.27 0 0 1 409.805 376h-25.266a16.424 16.424 0 0 1-16.6-14.833l-.955-9.86a35.88 35.88 0 0 0-16.284-26.815 19.2 19.2 0 0 1-8.7-16.371V298a24.62 24.62 0 0 1 8.166-18.594l42.939-38.125a37.53 37.53 0 0 0 11.045-38.911 38.35 38.35 0 0 0-31.994-26.919l-4.357-.537a26.28 26.28 0 0 1-16.586-8.788 16.99 16.99 0 0 1-2.041-19.587l9.067-15.5A315.4 315.4 0 0 1 397.967 77.2l6.83-9.531a240.49 240.49 0 0 0-253.088-27.946L177.075 58.8a72 72 0 0 0 6.857 4.56 82.4 82.4 0 0 1 25.931 24.011l16.622 23.97a31.02 31.02 0 0 1-.927 36.745l-7.709 10a22.83 22.83 0 0 1-20.885 8.674l-8.748-1.119a26.58 26.58 0 0 0-26.386 13.027A22.9 22.9 0 0 1 139 189.68l-20.01-2.541a27.67 27.67 0 0 0-26.54 12 24 24 0 0 0-.407 26.308l13.341 21.064a22.07 22.07 0 0 0 28.957 7.617l13.733-7.358a30.39 30.39 0 0 1 29.842.725l26.066 15.639a1.3 1.3 0 0 0 .755.2c13.29-.35 26.246 6.427 34.637 18.124l12.751 17.775a52 52 0 0 0 2.59 3.313L271.4 322.17a13.57 13.57 0 0 1 3.056 10.949 13.85 13.85 0 0 1-5.357 8.769l-25.057 19.242a35.54 35.54 0 0 0-12.386 17.818l-8.423 27.326a22.1 22.1 0 0 1-4.141 7.648l-8.2 9.86a41.65 41.65 0 0 0-9.689 22.852 17.99 17.99 0 0 1-10.979 14.987 11.5 11.5 0 0 1-4.453.9 11.535 11.535 0 0 1-11.437-9.844l-7.69-46.138a30.9 30.9 0 0 0-5.88-13.59l-28.294-37.1a37.8 37.8 0 0 1-6.4-12.878l-9.338-33.69a30.42 30.42 0 0 0-21.219-21.13l-2.033-.555a31.2 31.2 0 0 1-13.134-7.357l-17.411-16.393a44.5 44.5 0 0 1-7.929-9.966 33.825 33.825 0 0 0-35.693-16.218l-2.665.526Q16 247.035 16 256a240 240 0 0 0 409.706 169.706 238.9 238.9 0 0 0 59.194-97.242c-.543.049-1.085.078-1.62.1Z"}),i.createElement("path",{d:"m412.528 74.049-6.609 9.223a5 5 0 0 1-.382.47 305.4 305.4 0 0 0-38.665 52.346l-9.038 15.455a7.06 7.06 0 0 0 .911 8 16.3 16.3 0 0 0 10.291 5.449l4.369.537a48.39 48.39 0 0 1 40.37 33.943 47.53 47.53 0 0 1-13.94 49.307L356.787 286.9A14.62 14.62 0 0 0 352 298v10.119a9.14 9.14 0 0 0 4.123 7.908 45.6 45.6 0 0 1 20.7 34.164l1.01 9.98a6.51 6.51 0 0 0 6.7 5.827h25.266a27.27 27.27 0 0 0 25.168-16.2l1.518-3.219a46.13 46.13 0 0 1 40.392-27.707l5.938-.27c.474-.022.959-.057 1.443-.105l3.642-.366A241.3 241.3 0 0 0 496 256a238.43 238.43 0 0 0-70.294-169.706q-6.396-6.394-13.178-12.245"}))))};var C=r(77824),E=r(2821);let k=e=>{let{code:t,className:r,...l}=e;return(0,s.jsx)("span",{className:(0,E.A)("fi","fi-".concat(t),r),...l})},A=e=>{let{code:t,title:r,...l}=e;return t.toLowerCase()===C.T1.toLowerCase()?(0,s.jsx)(I,{className:"w-8 rounded-full text-primary ".concat(l.className),style:{boxShadow:"0px 0px 10px 5px rgb(0 0 0 / 0.1)"}}):(0,s.jsx)(k,{title:r,code:t.toLowerCase().replace("_","-"),style:{boxShadow:"0px 0px 10px 5px rgb(0 0 0 / 0.1)"},className:"h-6 w-8 rounded-md bg-cover ".concat(l.className)})};var L=r(81954);let S=e=>{let{countryId:t}=e,r=(0,L.o)().findById(t);return r?(0,s.jsx)(A,{code:r.code,className:"cursor-pointer",title:r.native}):null},O=e=>{let{rows:t}=e,r=(0,d.W)(),l=[...t].sort(v);return(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsx)(N,{header:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r("txt_country")}),(0,s.jsx)("th",{children:r("lang_distributor_name")}
1),(0,s.jsx)("th",{children:(0,s.jsxs)("div",{className:"flex items-center",children:[r("lang_stock_indication"),(0,s.jsx)(x.Tooltip,{title:r("product_distributors_stock_tooltip"),children:(0,s.jsx)(h.kF,{className:"mx-1"})})]})}),(0,s.jsx)("th",{children:(0,s.jsxs)("div",{className:"flex items-center",children:[r("product_distributors_price"),(0,s.jsx)(x.Tooltip,{title:r("product_distributors_price_tooltip"),children:(0,s.jsx)(h.kF,{className:"mx-1"})})]})}),(0,s.jsx)("th",{children:r("lang_update")})]}),children:l.map((e,t)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)(S,{countryId:e.countryId})}),(0,s.jsx)("td",{children:e.name}),(0,s.jsx)("td",{children:e.value||"not disclosed"}),(0,s.jsx)("td",{children:((e,t)=>e&&t?"".concat(e," ").concat(t):"not disclosed")(e.price,e.currency)}),(0,s.jsx)("td",{children:(e=>{if(null==e)return"";let t=new Date(e);return isNaN(t.getTime())?"":(0,m.m)(t,{addSuffix:!0,locale:p})})(e.updatedDate)})]},"".concat(e.countryId,"-").concat(e.name,"-").concat(t)))})})},R=e=>{let{rows:t}=e,r=(0,d.W)(),l=(e=>{let t=Object.entries(e.reduce((e,t)=>{var r;let l=null!=(r=e[t.countryId])?r:[];return e[t.countryId]=[...l,t],e},{})).reduce((e,t)=>{let[r,l]=t;return e[Number(r)]=l.length,e},{});return Object.entries(t).map(e=>{let[t,r]=e;return{countryId:Number(t),distributorsCount:r}}).sort((e,r)=>((e,t,r)=>{var l,s;let a=(null!=(l=r[t])?l:0)-(null!=(s=r[e])?s:0);return 0!==a?a:e-t})(e.countryId,r.countryId,t))})(t);return(0,s.jsx)(N,{header:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:r("txt_country")}),(0,s.jsx)("th",{children:r("lang_distributor_name")})]}),children:l.map(e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{width:"15%",children:(0,s.jsx)(S,{countryId:e.countryId})}),(0,s.jsxs)("td",{children:[e.distributorsCount," distributor(s)"]})]},e.countryId))})};var T=r(52977),D=r(31162),M=r(50361),B=r(19912),P=r(92353);function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}let q=function(e){return i.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 367.805 367.805"},e),i.createElement("path",{d:"M183.903.001c101.566 0 183.902 82.336 183.902 183.902s-82.336 183.902-183.902 183.902S.001 285.469.001 183.903C-.288 82.625 81.579.29 182.856.001z",style:{fill:"transparent"}}),i.createElement("path",{d:"M285.78 133.225 155.168 263.837l-73.143-72.62 29.78-29.257 43.363 42.841 100.833-100.833z",style:{fill:"currentcolor"}}))};function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}let U=function(e){return i.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fill:"
1currentColor",viewBox:"0 0 50 50"},e),i.createElement("circle",{cx:25,cy:25,r:25,style:{fill:"currentColor"}}),i.createElement("path",{d:"m16 34 9-9 9-9M16 16l9 9 9 9",style:{fill:"none",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeMiterlimit:10}}))},F=e=>(0,s.jsx)(P.a,{isOpen:e.isOpen,onClose:e.onClose,children:(0,s.jsxs)("div",{className:"m-auto flex max-w-sm flex-col gap-2 text-center",children:[(0,s.jsx)("div",{className:"flex flex-col gap-2",children:e.children}),(0,s.jsx)(B.$,{type:"button",className:"m-auto my-2 w-full md:w-44",onClick:e.onClose,children:"ok"})]})}),z=e=>{let{text:t,...r}=e,l=(0,d.W)();return(0,s.jsxs)(F,{isOpen:!0,...r,children:[(0,s.jsx)(q,{width:30,className:"m-auto text-success"}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t||l("lang_full_request_success")}})]})},H=e=>{let{text:t,...r}=e,l=(0,d.W)();return(0,s.jsxs)(F,{isOpen:!0,...r,children:[(0,s.jsx)(U,{width:30,className:"m-auto text-danger"}),(0,s.jsx)("div",{className:"[&>a]:text-primary",dangerouslySetInnerHTML:{__html:t||l("request_error")}})]})};var K=r(8816);let Y=e=>{let{children:t}=e,{handleRequestClick:r}=(()=>{let e=(0,K.e)(),t=(0,M.f)(),{openModal:r,closeModal:l}=(()=>{let e=(0,i.useContext)(o);if(!e)throw Error("useModal must be used within a ModalProvider");return e})(),{trigger:a}=(0,T.A)("distributors-import-request",()=>D.A.post("/rest/v3/RequestIceImport",{ProductId:e},{params:{AccessKey:t}}).then(()=>void 0),{onSuccess:()=>{r((0,s.jsx)(z,{onClose:l}))},onError:()=>{r((0,s.jsx)(H,{onClose:l}))}});return{handleRequestClick:e=>{e.preventDefault(),a()}}})();return(0,s.jsx)("a",{className:"cursor-pointer",rel:"nofollow",onClick:r,children:t})};var V=r(88552),$=r(89101),J=r(46512),Q=r(64343),X=r(29040),Z=r(70334);let ee=async(e,t)=>{var r;return(null!=(r=(await (0,X.o)(e,{...t,content:[Z.B.DISTRIBUTORS]})).Data.Distributors)?r:[]).map(e=>({countryId:e.CountryID,name:e.Name,value:e.Stock,updatedDate:e.Updated,price:e.Price,currency:e.Currency}))};var et=r(31432),er=r(95936);let el=()=>{let{data:e,isLoading:t}=(()=>{let e=(0,M.f)(),t=(0,K.e)(),r=(0,Q.x)();return(0,J.Ay)("distributors-".concat(t),()=>ee(t,{accessKey:e,languageCode:r}),{fallbackData:[]})})(),r=(0,d.W)(),l=(0,er.A)(),i=(0,a.a)(),{isSponsor:o,isFullUser:h}=(0,et.B)();return t?(0,s.jsx)($.b,{}):(0,s.jsx)(u,{children:(0,s.jsxs)("div",{className:"my-3 w-full",children:[(0,s.jsxs)(V.G,{children:[(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("h3",{className:"text-xl font-bold",children:r("product_distributors_general_title")}),(0,s.jsx)("p",{children:r("product_distributors_general")})]}),i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(Y,{children:r("product_distributors_request_feed")}),(0,s.jsx)(n.A,{html:r("product_distributors_request_feed_desc")})]}),(0,s.jsxs)("div",{className:"my-4",children:[(0,s.jsx)("h4",{className:"text-base font-bold",children:r("product_distributors_share_catalog_title")}),(0,s.jsx)("p",{children:l("product_distributors_share_catalog",{__share_btn__:(0,s.jsx)(Y,{children:r("product_distributors_share_catalog_button")})})})]}),!h&&(0,s.jsx)("div",{className:"my-4",children:l("product_distributors_open_upgrade",{__btn__:(0,s.jsx)(c.default,{href:"/myIcecat#upgradeSubscription",children:r("product_distributors_open_upgrade_button")})})})]}):(0,s.jsxs)("div",{className:"my-4",children:[(0,s.jsx)("p",{className:"mb-3",children:l("product_distributors_guest",{__login__:(0,s.jsx)(c.default,{href:"/authorization",children:r("product_distributors_guest_login")}),__register__:(0,s.jsx)(c.default,{href:"/registration",children:r("product_distributors_guest_register")})})}),(0,s.jsx)(n.A,{className:"mb-3 [&_ul]:list-disc [&_ul]:pl-4",html:r("product_distributors_guest_list")})]})]}),i&&(h||o)?(0,s.jsx)(O,{rows:e}):(0,s.jsx)(R,{rows:e})]})})}},70334:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var l=function(e){return e.GENERAL="GeneralInfo",e.GALLERY="Gallery",e.DESCRIPTION_SUMMARY="SummaryDescription",e.MANUALS="Manuals",e.GENERATED_BULLET_POINTS="GeneratedBulletPoints",e.DISTRIBUTORS="Distributors",e.RELATIONS="Relations",e.REVIEWS="Reviews",e.LINK="ProductLink",e}({})},81954:(e,t,r)=>{"use strict";r.d(t,{o:()=>s});var l=r(87801);let s=()=>(0,l.P)().countries},83955:e=>{e.exports={table:"DataTable_table__BlWun"}},88552:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});var l=r(95155);let s=e=>{let{children:t}=e;return(0,l.jsx)("div",{className:"link-rich-text",children:t})}},95936:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var l=r(64823),s=r(12115);let a=e=>e.startsWith("__")&&e.endsWith("__");var n=r(95155);function c(){let e=(0,l.W)();return(0,s.useCallback)((t,r)=>((e,t)=>{let r=Object.keys(t||{}).filter(a);return r.length?r.reduce((e,r)=>{let l=null==t?void 0:t[r];return void 0===l?e:e.flatMap(e=>"string"!=typeof e?[e]:((e,t,r)=>{let l=e.split(t);return 1===l.length?[e]:l.flatMap((e,t)=>t===l.length-1?[e]:[e,r])})(e,r,l))},[e]).map((e,t)=>"string"==typeof e?e:(0,n.jsx)(s.Fragment,{children:e},"".concat(t))):e})(e(t),r),[e])}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.