"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3351],{34438:function(e,t,r){r.d(t,{tI:function(){return i},Pl:function(){return l},Xu:function(){return s}});var n=r(46835);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params,r=void 0===t?{}:t;return(0,n.Z)({url:"".concat("https://www.linquip.com/api-java","/equipment/feedback/questions"),params:r})}function l(e){var t=e.id,r=e.data;return(0,n.Z)({method:"put",url:"".concat("https://www.linquip.com/api-java","/equipment/feedback"),params:{equipment_id:t},data:r})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accessToken;return(0,n.Z)({url:"".concat("https://www.linquip.com/api-java","/equipment/feedback/unrated"),accessToken:t})}},49584:function(e,t,r){r.d(t,{Z:function(){return u}});var n=r(92809),i=r(91164),l=(r(67294),r(94184)),s=r.n(l),o=r(85893),a=["title","error","loading","className","style","children","titleClassName","titleStyle"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t ./LargeHorizontalCompanyCard"]}}),f=(0,l.default)((function(){return r.e(4247).then(r.bind(r,74247))}),{loadableGenerated:{webpack:function(){return[74247]},modules:["../components/rare/Cards/CCompanyCard/index.tsx -> ./LargeVerticalCompanyCard"]}}),p=(0,l.default)((function(){return Promise.all([r.e(6721),r.e(4384),r.e(5742)]).then(r.bind(r,87713))}),{loadableGenerated:{webpack:function(){return[87713]},modules:["../components/rare/Cards/CCompanyCard/index.tsx -> ./SmallHorizontalCompanyCard"]}}),h=(0,l.default)((function(){return r.e(8646).then(r.bind(r,38646))}),{loadableGenerated:{webpack:function(){return[38646]},modules:["../components/rare/Cards/CCompanyCard/index.tsx -> ./MediumVerticalCompanyCard"]}}),v=(0,l.default)((function(){return r.e(528).then(r.bind(r,90528))}),{loadableGenerated:{webpack:function(){return[90528]},modules:["../components/rare/Cards/CCompanyCard/index.tsx -> ./SmallVerticalCompanyCard"]}}),b=(0,l.default)((function(){return r.e(6798).then(r.bind(r,96798))}),{loadableGenerated:{webpack:function(){return[96798]},modules:["../components/rare/Cards/CCompanyCard/index.tsx -> ./SimpleCompanyCard"]}});t.Z=function(e){var t=e.direction,r=e.size,n=(0,i.Z)(e,c),l=n.url||(0,o.W5)(o.Up.company.show,[n.item.id,(0,s.Z)(n.item.name)]);if("simple"==r)return(0,a.jsx)(b,u(u({},n),{},{url:l}));if("horizontal"==t){if("large"==r)return(0,a.jsx)(m,u(u({},n),{},{url:l}));if("small"==r)return(0,a.jsx)(p,u(u({},n),{},{url:l}))}if("vertical"==t){if("large"==r)return(0,a.jsx)(f,u(u({},n),{},{url:l}));if("medium"==r)return(0,a.jsx)(h,u(u({},n),{},{url:l}));if("small"==r)return(0,a.jsx)(v,u(u({},n),{},{url:l}))}return null}},3351:function(e,t,r){r.d(t,{Z:function(){return ve}});var n=r(305),i=r(67294),l=r(94184),s=r.n(l),o=r(27776),a=r(50626),c=r(67718),d=r(85893),u=function(e){var t=e.link,r=e.category,n=e.className;return(0,d.jsx)("div",{className:s()(n,"p-3 w-full h-auto"),children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)(c.Z,{as:t.as,href:t.href,children:(0,d.jsx)("a",{className:"w-full",children:(0,d.jsx)(o.Z,{src:r.image,alt:r.name,defaultSVG:a.Z,className:"object-contain w-full mb-4 md:mb-0",style:{height:150},sizes:{sm:{width:80,height:80},md:{width:180,height:100}}})})}),(0,d.jsx)("p",{className:"text-base font-bold text-black",children:r.name}),(0,d.jsx)("div",{className:"mt-2",children:(0,d.jsx)(c.Z,{as:t.as,href:t.href,children:(0,d.jsx)("a",{className:"inline-block w-full pb-2 text-sm font-bold truncate text-secondary ...",children:"See Details"})})})]})})},m=r(92809),f=r(1548),p=r(13128),h=r(99901);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:[],l=(0,i.useState)(!0),s=l[0],o=l[1],a=(0,i.useState)(!1),c=a[0],d=a[1],u=(0,i.useState)(null),m=u[0],f=u[1];if(!Array.isArray(n))throw Error("deps should be an Array");(0,i.useEffect)((function(){r||p()}),n);var p=(0,i.useCallback)((function(){return o(!0),e(t).then(f).catch((function(){return d(!0)})).finally((function(){o(!1)}))}),n);return{loading:s,error:c,data:m,call:p}}(N.Xu,{},f===w.W.Company),h=p.error,v=p.data,b=p.call;if(!m.rate_multiple_modal)return null;if(h||null===v||void 0===v||null===(t=v.data)||void 0===t||!t.length)return null;var Z=v.data,C=Z[0];if(!C)return null;var S=function(){u(!1),b()};return(0,d.jsxs)(y.Z,{error:h,className:s()("pt-4 cursor-pointer",r),style:n,onClick:function(){return u(!0)},children:[c&&(0,d.jsx)(O.Z,{onCancel:S,onFinish:S}),(0,d.jsx)("div",{className:"mb-2 heading-5",children:(0,x.c)(C)}),(0,d.jsx)("div",{children:(0,d.jsx)(o.Z,{style:{maxWidth:"100%",maxHeight:"148px"},src:C.image,defaultSVG:a.Z,alt:"".concat(C.name," ").concat(C.model),sizes:{sm:{width:224,height:148},md:{width:224,height:148}},className:"object-contain w-full"})}),(null===Z||void 0===Z?void 0:Z.length)>1&&(0,d.jsxs)("div",{className:"my-2 heading-5",children:["and ",(null===Z||void 0===Z?void 0:Z.length)-1," more devices"]}),(0,d.jsx)("div",{children:"Evaluate and write a review on devices that are on your list of skills or in your projects."}),(0,d.jsx)("div",{className:"mt-4 text-base text-secondary",children:"Start Evaluation"})]})},C=r(48204),S=r(17749),k=r(12927),D=r(52142),E=r(80818),z=r(90431);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t=1?(0,d.jsx)("div",{className:"w-full mb-6",style:{width:"100%",marginBottom:24},children:(0,d.jsx)(o.Z,{src:(null===(e=v.attachments[0])||void 0===e||null===(t=e.attachedEntity)||void 0===t?void 0:t.image)||(null===(r=v.attachments[0])||void 0===r?void 0:r.url),alt:(null===(n=v.attachments[0])||void 0===n||null===(i=n.attachedEntity)||void 0===i?void 0:i.name)||"",sizes:{lg:{width:270,height:170},sm:{width:180,height:120}},className:s()("w-full object-contain",g&&"border-white border-2")})}):null}(),!P&&(0,d.jsx)("span",{className:s()("w-full mt-4 text-base text-left",g?"text-secondary-light":"text-secondary"),children:"See Details"})]})}))},CCompanyCard:L.Z,CDeviceForSaleCard:se,CCompanyServiceCard:de,CCompanyPromotionCard:function(e){var t,r=e.company,n=e.noLocation,l=void 0!==n&&n,o=e.noPadding,a=void 0!==o&&o,c=e.className,u=void 0===c?"":c,m=e.style,f=void 0===m?{}:m,p=e.onClick,h=void 0===p?function(){}:p,v=i.useRef(!1),b=(0,te.R)([]),j=(0,K.Z)(b,3),y=j[0],x=j[2];return(0,i.useEffect)((function(){x&&!v.current&&((0,Y.Jk)("company_view",{company_id:r.id,company_name:r.name,position:"sidebar"}),v.current=!0)}),[r,x]),(0,d.jsxs)("div",{ref:y,style:f,className:s()("relative w-full inline-grid grid-cols-1 text-left text-black",!a&&"p-4",u),onClick:function(e){(0,Y.Jk)("company_view",{company_id:r.id,company_name:r.name,position:"sidebar"}),h(e)},children:[(0,d.jsxs)(ue.i,{user:r,className:"block",children:[(0,d.jsxs)("div",{className:"flex justify-between w-full",children:[(0,d.jsx)(me.Z.General,{user:r,className:"w-16 h-16 mb-2 border border-gray"}),(0,d.jsx)(Q.Z,{className:"h-full"})]}),(0,d.jsx)("p",{className:"mb-2",children:(0,d.jsx)(C.Z,{className:"heading-4 ",children:r.name})})]}),!l&&(0,d.jsx)("p",{className:"h-4 mb-2",children:(0,d.jsx)(C.Z,{className:"text-2",children:r.location})}),(0,d.jsx)("ul",{className:"flex flex-col justify-start w-full text-left border-b border-gray-dark",children:!(null===r||void 0===r||null===(t=r.highlight)||void 0===t||!t.length)&&r.highlight.map((function(e,t){return t<5?(0,d.jsxs)("div",{className:s()("flex flex-row items-center justify-start mb-2",4===t&&"mb-4"),children:[(0,d.jsx)("span",{className:"w-2 h-2 mr-2 rounded-full bg-primary"}),(0,d.jsx)("span",{className:"w-full text-2",children:e},e)]},e):null}))}),(0,d.jsx)(ue.i,{user:r,className:"block w-full mt-4 text-sm text-left text-secondary",children:"See more information"})]})},CAdCard:he}},17749:function(e,t,r){r.d(t,{Z:function(){return E}});var n,i=r(92809),l=r(67294),s=r(92145),o=r(30266),a=r(809),c=r.n(a),d=r(94184),u=r.n(d),m=r(52142),f=r(1562),p=r(80818),h=r(35635),v=r(73134),b=r(79078),j=r(9669),y=r.n(j),x=function(e){var t=e.id,r=e.type;return y()({url:"".concat("https://www.linquip.com/api-java","/social/follow/").concat(r,"/").concat(t),method:"put"})},g=function(e){var t=e.id,r=e.type;return y()({url:"".concat("https://www.linquip.com/api-java","/social/unfollow/").concat(r,"/").concat(t),method:"put"})},w=r(85893);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var P=v.E.actions.setFollowingsCount,N={tiny:"w-6 h-6",small:"px-2 py-1 text-xs font-bold",medium:"h-8 px-2 py-2 font-bold"},Z={true:{light:"bg-primary text-white border-primary",dark:"bg-white text-black border-white"},false:{light:"bg-white border-primary",dark:"border-white text-white border-white"}},C={true:"opacity-75",false:"opacity-1"},S=(n={},(0,i.Z)(n,m.Z.EXPERT,"text-2xl icon lfi-follow-user"),(0,i.Z)(n,m.Z.COMPANY,"text-2xl icon lfi-follow-company"),n),k=function(e){var t=e.id,r=e.type,n=void 0===r?"expert":r,a=e.defaultIsFollowed,d=e.updateCountState,m=e.size,v=void 0===m?"medium":m,j=e.darkMode,y=e.style,k=void 0===y?{}:y,D=e.className,E=(0,s.I0)(),z=(0,s.v9)(b.w.profileType),_=(0,s.v9)(b.w.userSocial).followingsCount,A=(0,h.I)().openModal,G=(0,l.useState)(!1),I=G[0],q=G[1],T=(0,l.useState)(a),R=T[0],M=T[1];function V(){return(V=(0,o.Z)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),z){e.next=6;break}(0,p.Kz)("Website Signup Popup","Open","Follow"),A({name:"loginToDoMore"}),e.next=17;break;case 6:if(!R){e.next=13;break}return q(!0),M(!1),e.next=11,L();case 11:e.next=17;break;case 13:return q(!0),M(!0),e.next=17,F();case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(){return W.apply(this,arguments)}function W(){return(W=(0,o.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===d||void 0===d||d((function(e){return e+1})),q(!0),x({id:t,type:n}).then((function(){E(P(_+1))})).catch((function(e){var t,r,n,i,l,s;null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&null!==(r=t.data)&&void 0!==r&&r.message&&f.A.error(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.message,{toastId:"follow-".concat((null===e||void 0===e||null===(l=e.response)||void 0===l||null===(s=l.data)||void 0===s?void 0:s.code)||"")});null===d||void 0===d||d((function(e){return e-1}))})).finally((function(){q(!1)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(){return B.apply(this,arguments)}function B(){return(B=(0,o.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===d||void 0===d||d((function(e){return e-1})),q(!0),g({id:t,type:n}).then((function(){E(P(_-1))})).catch((function(e){var t,r,n,i,l,s;null!==e&&void 0!==e&&null!==(t=e.response)&&void 0!==t&&null!==(r=t.data)&&void 0!==r&&r.message&&f.A.error(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.message,{toastId:"follow-".concat((null===e||void 0===e||null===(l=e.response)||void 0===l||null===(s=l.data)||void 0===s?void 0:s.code)||"")});null===d||void 0===d||d((function(e){return e+1}))})).finally((function(){q(!1)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,l.useEffect)((function(){M(a)}),[a]);var H=u()("text-center border rounded-sm flex cursor-pointer justify-center items-center",N[v],C[I?"true":"false"],Z[R?"true":"false"][j?"dark":"light"],D),U="medium"===v?function(e){for(var t=1;t0&&0===w&&(0,y.jsx)("div",{className:"mt-4 text-center",children:(0,y.jsx)(L,{onClick:function(){if(f>0){var e=s[f-1].id;p(f-1),O(),N(e)}}})})]})};var H=function(e){var t=e.onCancel,r=e.onFinish,n=(0,s.Z)().isMobile,a=(0,o.S)(),c=(0,i.v9)(M.w.profileType);return a.rate_multiple_modal&&"Company"!==c?(0,y.jsx)(l.Z,{style:{top:n?0:20},title:(0,y.jsx)("div",{className:"text-base text-center",children:"Provide your professional review for the added devices."}),visible:!0,onCancel:t,footer:null,width:796,children:(0,y.jsx)(I.Provider,{children:(0,y.jsx)(B,{onFinish:r,onCancel:t})})}):null}},52142:function(e,t){t.Z={EXPERT:"expert",COMPANY:"company"}},52371:function(e,t,r){r.d(t,{c:function(){return n}});var n=function(e){var t=e.name,r=e.model,n=e.device_title;return n||(t&&r?t===r?t:"".concat(t," ").concat(r):t||(r||null))}}}]);