PageSourceSearch

https://assets.cgtrader.com/packs/js/64555-c0f94735e6385c13c3c1.js

js cgtrader.com collected 2026-10-01 08:34:19 UTC 11,604 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkcgtrader=globalThis.webpackChunkcgtrader||[]).push([[17167,64555],{64555(o,r,e){e.d(r,{A:()=>d});var t=e(25015),i=e(96540),l=e(5556),n=e(62621),a=e(21188),c=e(84831),g=e(17167),y={primary:{type:{primary:{enabled:{color:"brand-primary",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"brand-primary",weight:"120"}},secondary:{enabled:{color:"brand-primary",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"brand-primary",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"brand-primary",weight:"10",fontColor:{color:"brand-primary",weight:"100"},iconColor:{color:"brand-primary",weight:"40"}},hovered:{color:"brand-primary",weight:"20",fontColor:{color:"brand-primary",weight:"100"}}}}},"primary-24":{type:{primary:{enabled:{color:"brand-primary",weight:"24",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"brand-primary",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},secondary:{enabled:{color:"brand-primary",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"brand-primary",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"brand-primary",weight:"10",fontColor:{color:"brand-primary",weight:"100"},iconColor:{color:"brand-primary",weight:"40"}},hovered:{color:"brand-primary",weight:"20",fontColor:{color:"brand-primary",weight:"100"}}}}},grey:{type:{primary:{enabled:{color:"grey",weight:"60",iconColor:{color:"white",weight:"40"}},hovered:{color:"grey",weight:"100",fontColor:{color:"white",weight:"100"}}},secondary:{enabled:{color:"grey",weight:"8",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"grey",weight:"16",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"grey",weight:"8",fontColor:{color:"grey",weight:"80"},iconColor:{color:"grey",weight:"40"}},hovered:{color:"grey",weight:"16",fontColor:{color:"grey",weight:"100"}}}}},info:{type:{primary:{enabled:{color:"utility-info",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"utility-info",weight:"120"}},secondary:{enabled:{color:"utility-info",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"utility-info",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"utility-info",weight:"10",fontColor:{color:"utility-info",weight:"100"},iconColor:{color:"utility-info",weight:"40"}},hovered:{color:"utility-info",weight:"20",fontColor:{color:"utility-info",weight:"120"}}}}},positive:{type:{primary:{enabled:{color:"utility-positive",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"utility-positive",weight:"120"}},secondary:{enabled:{color:"utility-positive",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"utility-positive",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"utility-positive",weight:"10",fontColor:{color:"utility-positive",weight:"100"},iconColor:{color:"utility-positive",weight:"40"}},hovered:{color:"utility-positive",weight:"20",fontColor:{color:"utility-positive",weight:"120"}}}}},attention:{type:{primary:{enabled:{color:"utility-attention",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"utility-attention",weight:"120"}},secondary:{enabled:{color:"utility-attention",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"utility-attention",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"utility-attention",weight:"10",fontColor:{color:"utility-attention",weight:"100"},iconColor:{color:"utility-attention",weight:"40"}},hovered:{color:"utility-attention",weight:"20",fontColor:{color:"utility-attention",weight:"120"}}}}},warning:{type:{primary:{enabled:{color:"utility-danger",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"utility-danger",weight:"120"}},secondary:{enabled:{color:"utility-danger",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"utility-danger",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"utility-danger",weight:"10",fontColor:{color:"utility-danger",weight:"100"},iconColor:{color:"utility-danger",weight:"40"}},hovered:{color:"utility-danger",weight:"20",fontColor:{color:"utility-danger",weight:"120"}}}}},"extra-pink":{type:{primary:{enabled:{color:"extra-pink",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"extra-pink",weight:"120"}},secondary:{enabled:{color:"extra-pink",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"extra-pink",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"extra-pink",weight:"10",fontColor:{color:"extra-pink",weight:"100"},iconColor:{color:"extra-pink",weight:"40"}},hovered:{color:"extra-pink",weight:"20",fontColor:{color:"extra-pink",weight:"120"}}}}},"extra-purple":{type:{primary:{enabled:{color:"extra-purple",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"extra-purple",weight:"120"}},secondary:{enabled:{color:"extra-purple",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"extra-purple",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"extra-purple",weight:"10",fontColor:{color:"extra-purple",weight:"100"},iconColor:{color:"extra-purple",weight:"40"}},hovered:{color:"extra-purple",weight:"20",fontColor:{color:"extra-purple",weight:"120"}}}}},"extra-indigo":{type:{primary:{enabled:{color:"extra-indigo",weight:"100",iconColor:{color:"white",weight:"40"}},hovered:{color:"extra-indigo",weight:"120"}},secondary:{enabled:{color:"extra-indigo",weight:"20",fontColor:"typography-primary",iconColor:{color:"grey",weight:"60"}},hovered:{color:"extra-indigo",weight:"40",fontColor:"typography-primary",iconColor:"typography-primary"}},ghost:{enabled:{color:"extra-indigo",weight:"10",fontColor:{color:"extra-indigo",weight:"100"},iconColor:{color:"extra-indigo",weight:"40"}},hovered:{color:"extra-indigo",weight:"20",fontColor:{color:"extra-indigo",weight:"120"}}}}}},h=["color","type","leadIcon","trailIcon","small","hasBorder","className","onDeleteClick","onTagClick","children","id","backColor","href"],p=Object.keys(y);function d(o){var r=o.color,e=void 0===r?"grey":r,l=o.type,d=void 0===l?"primary":l,w=o.leadIcon,u=void 0===w?null:w,s=o.trailIcon,C=void 0===s?null:s,m=o.small,v=void 0!==m&&m,f=o.hasBorder,b=void 0!==f&&f,x=o.className,k=void 0===x?"":x,O=o.onDeleteClick,E=void 0===O?null:O,L=o.onTagClick,T=void 0===L?null:L,N=o.children,I=void 0===N?null:N,M=o.id,A=void 0===M?null:M,B=o.backColor,D=void 0===B?"":B,_=o.href,P=void 0===_?"":_,S=(0,t.$i)(o,h),z=(0,i.useState)("enabled"),F=(0,t.zC)(z,2),j=F[0],W=F[1],Y=(0,i.useState)("enabled"),Z=(0,t.zC)(Y,2),$=Z[0],q=Z[1];if(!I&&!u&&!C)return null;
1var G=function(o){if(!o)return"";if("string"===typeof o)return o;var r=o.color,e=o.weight;return e?"".concat(r,"-").concat(e):r};function H(o){return o.preventDefault(),o.stopPropagation(),E()}var J=function(o){switch(o.type){case"mouseenter":return T&&W("hovered");case"mouseleave":return W("enabled")}},K=function(o){switch(o.type){case"mouseenter":return q("hovered");case"mouseleave":return q("enabled")}},Q=function(){return i.createElement(i.Fragment,null,!!u&&u,!!I&&i.createElement(i.Fragment,null,i.createElement("span",{className:"cgt-tag__text"},I),!!C&&C),!!E&&i.createElement(n.A,{svgComponent:g.default,className:(0,a.A)(V,"cgt-tag--remove"),onClick:H,onMouseEnter:K,onMouseLeave:K}))},R=D?(0,c.v0)(D):function(o,r){if((!p.includes(o)||"extra"===o.substr(0,5)&&"0"===o.charAt(-1))&&!D)return(0,c.v0)("brand-primary-100");var e=G(y[o].type[r][j]);return(0,c.v0)(e)}(e,d),U=p.includes(e)?function(o,r){var e=y[o].type[r][j].fontColor;return(0,c.wy)(G(e)||"white-100")}(e,d):(0,c.wy)(e),V=p.includes(e)?function(o,r){var e=y[o].type[r][$].iconColor;return(0,c.wy)(G(e))}(e,d):U,X=b||"secondary"===d,oo=(0,a.A)("cgt-tag",R,U,X&&"cgt-tag--border",!!v&&"cgt-tag--small",T&&"cgt-tag--clickable",k),ro=(0,t.T1)({className:oo,onClick:T,onMouseEnter:J,onMouseLeave:J,id:A},S);return P?i.createElement("a",(0,t._P)({href:P},ro),Q()):i.createElement("div",ro,Q())}d.propTypes={children:(0,l.oneOfType)([l.string,l.number,l.node]),className:l.string,color:l.string,hasBorder:l.bool,leadIcon:l.node,onDeleteClick:l.func,onTagClick:l.func,small:l.bool,trailIcon:l.node,type:(0,l.oneOf)(["primary","secondary","ghost"]),id:l.string,backColor:l.string,href:l.string}},17167(o,r,e){e.r(r),e.d(r,{default:()=>n});var t=e(25015),i=e(96540),l=e(5556);function n(o){return i.createElement("svg",(0,t._P)({},o,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),i.createElement("path",{d:"M18.3002 5.70997C17.9102 5.31997 17.2802 5.31997 16.8902 5.70997L12.0002 10.59L7.11022 5.69997C6.72022 5.30997 6.09021 5.30997 5.70021 5.69997C5.31021 6.08997 5.31021 6.71997 5.70021 7.10997L10.5902 12L5.70021 16.89C5.31021 17.28 5.31021 17.91 5.70021 18.3C6.09021 18.69 6.72022 18.69 7.11022 18.3L12.0002 13.41L16.8902 18.3C17.2802 18.69 17.9102 18.69 18.3002 18.3C18.6902 17.91 18.6902 17.28 18.3002 16.89L13.4102 12L18.3002 7.10997C18.6802 6.72997 18.6802 6.08997 18.3002 5.70997Z",className:"fillable"}))}n.propTypes={className:l.string,height:l.string,width:l.string}},84831(o,r,e){e.d(r,{MY:()=>h,v0:()=>d,wy:()=>p});var t=e(25015),i=function(o,r){return r.map(function(r){return"".concat(o,"-").concat(r)})},l=function(o,r){return[o].concat((0,t.Og)(i(o,r)))},n=[].concat((0,t.Og)(i("brand-primary",[10,12,16,20,24,32,40,60,80,100,120,140])),(0,t.Og)(i("brand-secondary",[10,20,40,60,80,100,120])),(0,t.Og)(i("utility-info",[10,12,20,40,60,80,100,120])),(0,t.Og)(i("utility-positive",[10,12,20,40,60,80,100,120])),(0,t.Og)(i("utility-attention",[10,12,20,40,60,80,100,120])),(0,t.Og)(i("utility-danger",[10,20,40,60,80,100,120])),["cgdream-16","misc-primary-12","cgtrader-16"],(0,t.Og)(l("extra-pink",[10,20,40,60,80,100,120])),(0,t.Og)(l("extra-purple",[10,20,40,60,80,100,120])),(0,t.Og)(l("extra-violet",[10,20,40,60,80,100,120])),(0,t.Og)(l("extra-indigo",[10,20,40,60,80,100,120])),(0,t.Og)(i("white",[0,20,40,60,80,100])),(0,t.Og)(i("grey",[2,4,6,8,10,12,16,24,32,40,50,60,70,80,90,100,120,125,140])),["typography-primary","typography-secondary","typography-disabled","typography-light","typography-secondary-light","typography-link","typography-link-hover","typography-back-link","typography-back-link-hover"]),a=new Set(n),c="legacy-";function g(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return o.startsWith(c)?o.slice(7):o}function y(){var o=g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");return a.has(o)}function h(){var o=g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");return o?y(o)?"".concat(c).concat(o):o:""}function p(){var o=g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");return o?y(o)?"cgt-legacy-color-".concat(o):"cgt-color-".concat(o):""}function d(){var o=g(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");return o?y(o)?"cgt-legacy-back-color-".concat(o):"cgt-back-color-".concat(o):""}}}]);
2//# sourceMappingURL=64555-c0f94735e6385c13c3c1.js.map

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.