PageSourceSearch

https://www.polylabs.co/_next/static/chunks/pages/assets/[slug]-4e3d038b9ac00d6c.js

js polylabs.co collected 2026-10-04 10:03:05 UTC 6,606 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[408],{1017:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/assets/[slug]",function(){return a(2685)}])},7425:function(e,s,a){"use strict";var t,r;a.d(s,{q$:function(){return n}}),function(e){e.TexturesMaterials="TexturesMaterials",e.Models="Models",e.EngineTools="EngineTools"}(t||(t={})),function(e){e.UnityAssetStore="UnityAssetStore",e.UnrealMarketplace="UnrealMarketplace",e.Cubebrush="Cubebrush",e.Cgtrader="Cgtrader"}(r||(r={}));var n=function(e){var s,a={};return null===(s=e.storeLinks)||void 0===s||s.forEach((function(e){e.marketplaceType===r.UnityAssetStore?a.unity=e:e.marketplaceType===r.Cgtrader?a.cgTrader=e:e.marketplaceType===r.Cubebrush&&(a.cubebrush=e)})),a}},2685:function(e,s,a){"use strict";a.r(s),a.d(s,{__N_SSG:function(){return h},default:function(){return v}});var t=a(5893),r=a(7425),n=a(9486),o=a.n(n),i=a(1664),c=a.n(i),l=a(2337),u=a.n(l),m=a(7294);function g(e,s){(null==s||s>e.length)&&(s=e.length);for(var a=0,t=new Array(s);a<s;a++)t[a]=e[a];return t}function _(e,s){return function(e){if(Array.isArray(e))return e}(e)||function(e,s){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,r,n=[],o=!0,i=!1;try{for(a=a.call(e);!(o=(t=a.next()).done)&&(n.push(t.value),!s||n.length!==s);o=!0);}catch(c){i=!0,r=c}finally{try{o||null==a.return||a.return()}finally{if(i)throw r}}return n}}(e,s)||function(e,s){if(!e)return;if("string"===typeof e)return g(e,s);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(a);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return g(e,s)}(e,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(e){var s=_(m.useState(0),2),a=s[0],r=s[1];if(!e.images||0===e.images.length)return(0,t.jsx)("div",{});var n,o=e.images[a],i=(null!==(n=e.display)&&void 0!==n?n:e.images.length>16)?"number":"buttons",c=e.images.length>1;return(0,t.jsxs)("div",{className:u().carouselContainer,style:{backgroundImage:"url(".concat(o,")")},children:[(0,t.jsx)("div",{className:u().carouselButtons,children:c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{className:u().carouselArrow,onClick:function(){var s=a-1;console.log(s);var t=s<0?e.images.length-1:s;r(t)},children:(0,t.jsx)("img",{src:"/icons/chevron_left.svg",alt:"Carousel Left",className:u().arrowIcon})}),(0,t.jsx)("button",{className:u().carouselArrow,onClick:function(){var s=a+1,t=s>=e.images.length?0:s;r(t)},children:(0,t.jsx)("img",{src:"/icons/chevron_right.svg",alt:"Carousel Right",className:u().arrowIcon})})]})}),(0,t.jsxs)("div",{className:u().carouselFooter,children:[c&&"buttons"===i&&e.images.map((function(s,n){return(0,t.jsx)("div",{onClick:function(){!function(s){var a=Math.max(0,Math.min(s,e.images.length));r(a)}(n)},className:"\n                  ".concat(u().carouselFooterButton," \n                  ").concat(n===a?u().carouselFooterButtonActive:"","\n                "),children:"\xa0"},n)})),c&&"number"===i&&(0,t.jsxs)("div",{className:u().carouselFooterNumber,children:[a+1," /  ",e.images.length]})]})]})},h=!0,v=function(e){var s=e.asset,a=e.images,n=(0,r.q$)(s),i=a.map((function(e){return e.url}));return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:o().assetContainer,children:(0,t.jsxs)("div",{className:o().assetContent,children:[(0,t.jsxs)("div",{className:o().metaRow,children:[(0,t.jsxs)("div",{className:o().assetMeta,children:[(0,t.jsx)("h1",{children:s.title}),(0,t.jsxs)("span",{className:o().assetVersion,children:["Version ",s.version]}),s.documentationUrl&&(0,t.jsx)(c(),{href:s.documentationUrl,passHref:!0,children:(0,t.jsx)("a",{target:"_blank",className:o().docsButton,children:"Documentation"})}),(0,t.jsx)("span",{className:o().assetPrice,children:0===s.priceUSD?"Free":"$".concat(s.priceUSD)}),(0,t.jsx)("span",{className:o().availableText,children:"Available at:"}),(0,t.jsxs)("div",{className:o().marketplaces,children:[n.unity&&(0,t.jsx)(c(),{href:n.unity.url,passHref:!0,children:(0,t.jsx)("a",{target:"_blank",className:o().assetMarketplace,children:(0,t.jsx)("img",{src:"/icons/asset-card/unity_cube.svg",alt:"Unity Asset Store",className:o().marketLogo,width:30,height:30})})}),n.cubebrush&&(0,t.jsx)(c(),{href:n.cubebrush.url,passHref:!0,children:(0,t.jsx)("a",{target:"_blank",className:o().assetMarketplace,children:(0,t.jsx)("img",{src:"/icons/asset-card/cubebrush.svg",alt:"Cubebrush",className:o().marketLogo,width:30,height:30})})}),n.cgTrader&&(0,t.jsx)(c(),{href:n.cgTrader.url,passHref:!0,children:(0,t.jsx)("a",{target:"_blank",className:o().assetMarketplace,children:(0,t.jsx)("img",{src:"/icons/asset-card/cgtrader.svg",alt:"CGTrader",className:o().marketLogo,width:105,height:30})})})]})]}),(0,t.jsx)("div",{className:o().assetPreview,children:(0,t.jsx)("img",{src:s.previewImage,alt:"",className:o().previewImage})})]}),(0,t.jsx)("div",{className:o().assetRow,children:(0,t.jsxs)("div",{className:o().assetDescription,children:[(0,t.jsx)("h2",{children:"About This Asset:"}),(0,t.jsx)("pre",{children:s.description})]})}),(0,t.jsx)("div",{className:"".concat(o().assetRow," ").concat(o().assetCarousel),children:(0,t.jsx)(d,{images:i})})]})})})}},2337:function(e){e.exports={carouselContainer:"imageCarousel_carouselContainer__4WI4a",carouselButtons:"imageCarousel_carouselButtons__PuwvJ",carouselArrow:"imageCarousel_carouselArrow__rXajn",arrowIcon:"imageCarousel_arrowIcon__Nnuk_",carouselFooter:"imageCarousel_carouselFooter__qdqTS",carouselFooterButton:"imageCarousel_carouselFooterButton__gjViO",carouselFooterButtonActive:"imageCarousel_carouselFooterButtonActive___dOUI"}},9486:function(e){e.exports={assetContainer:"AssetPage_assetContainer__D08_U",assetContent:"AssetPage_assetContent__bIXaR",assetRow:"AssetPage_assetRow__QvBp9",metaRow:"AssetPage_metaRow__H46Wj",assetPreview:"AssetPage_assetPreview__q_Ksm",previewImage:"AssetPage_previewImage__bIPFr",availableText:"AssetPage_availableText__o57KD",assetVersion:"AssetPage_assetVersion__Umcyq",assetPrice:"AssetPage_assetPrice__puELy",assetMeta:"AssetPage_assetMeta__lJ2tW",assetMarketplace:"AssetPage_assetMarketplace__TERiu",docsButton:"AssetPage_docsButton__zJ5P7",assetDescription:"AssetPage_assetDescription__iUPtp",assetCarousel:"AssetPage_assetCarousel__pzkpT"}}},function(e){e.O(0,[774,888,179],(function(){return s=1017,e(e.s=s);var s}));var s=e.O();_N_E=s}]);

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.