PageSourceSearch

https://www.vectorstock.com/cache/v2/js/vector-similar-set.d4543a02dbe5cbc955a2.min.js

js vectorstock.com collected 2026-09-27 20:54:59 UTC 5,829 bytes, 2 lines download raw bytes

1/*! For license information please see vector-similar-set.d4543a02dbe5cbc955a2.min.js.LICENSE.txt */
2"use strict";(self.webpackChunkVectorStockWebsite=self.webpackChunkVectorStockWebsite||[]).push([[5021],{67192(t,e,r){r.r(e),r.d(e,{default:()=>g});var n=r(16919),o=r(9914),i=r(24793),a=r(7546),c=r(20154),u=r(35379),s=r(20307),l=r(22451),f=r(9828),p=r(40627);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function y(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof c?n:c,s=Object.create(u.prototype);return v(s,"_invoke",function(r,n,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,c=0,u=t,p.n=r,a}};function h(r,n){for(c=r,u=n,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],h=p.p,y=i[2];r>3?(o=y===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(c=0,p.v=n,p.n=i[1]):h<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,p.n=y,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,y){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,y),c=l,u=y;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),h(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:r.call(n,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(v(e={},n,function(){return this}),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,v(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,v(f,"constructor",s),v(s,"constructor",u),u.displayName="GeneratorFunction",v(s,o,"GeneratorFunction"),v(f),v(f,o,"Generator"),v(f,n,function(){return this}),v(f,"toString",function(){return"[object Generator]"}),(y=function(){return{w:i,m:p}})()}function v(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}v=function(t,e,r,n){function i(e,r){v(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},v(t,e,r,n)}function d(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function m(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}var g=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.apiService=n.apiService,this.pageState=s.B,e&&(this.container=e,this.mosaic=e.querySelector(".mosaic"),this.button=e.querySelector('button[data-action="more"]'),this.mosaic&&this.button)){this.buttonRef=new o.$(this.button),this.type=e.getAttribute("data-similar");var r="mobile"===this.pageState.getProperty("layoutType");this.mosaicLayout=new c.D(this.mosaic,{trimLastRow:!0},{previewMode:r?u.X.SIMPLE_RESULTS_MODE:"",loadingMode:"appearance"===this.type?"none":"lazy"}),this.expanded=!1,this._initTranslations()}},e=[{key:"_initTranslations",value:(r=y().m(function t(){var e,r=this;return y().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,p.translations.readyAll().catch(function(){return null});case 1:this.gt=p.translations.gAt("paths"),this.t=p.translations.pAt("similar"),"theme"===this.type&&(null==(e=this.container.querySelector("h2 .links"))||e.addEventListener("click",function(t){var e,r,n,o,i=null===(e=t.target)||void 0===e||null===(r=e.closest)||void 0===r?void 0:r.call(e,"a");if(i instanceof HTMLAnchorElement){var a=null===(n=i.textContent)||void 0===n||null===(o=n.trim)||void 0===o?void 0:o.call(n);a&&f.D.trackSearch({search_term:a,search_type:"keyword",search_source:"vector_similar_theme"})}})),this.button.addEventListener("click",function(){return r._expand()});case 2:return t.a(2)}},t,this)}),h=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){d(i,n,o,a,c,"next",t)}function c(t){d(i,n,o,a,c,"throw",t)}a(void 0)})},function(){return h.apply(this,arguments)})},{key:"_expand",value:function(){var t=this;if(this.button){var e=this.pageState.getProperty("id");if(a.H.trackVectorEvent(e,"similar"),this.expanded){var r=a.H.populateHTMLTemplate(this.gt("similar"),{id:e});a.H.goToURL(r)}
2else{this.buttonRef.setLoading(this.t("".concat(this.type,".more.loading"))),this.expanded=!0;var n=this.mosaicLayout.getValues().map(function(t){return t.id});this.apiService.post(l.Routes.API.VECTOR.SIMILAR(e,this.type),{exclude:n},!1).then(function(e){t.mosaicLayout.append(e.data),"appearance"===t.type?t.buttonRef.setState({labelText:t.t("".concat(t.type,".more.full")),iconHTML:a.H.generateSVGIcon("global","arrow-right"),disabled:!1}):t.button.remove()}).catch(function(r){t.expanded=!1,t.buttonRef.revert(),i.A.log("Vector Page","Could not load similar vectors",{vector:e,similar:t.type,error:r})})}}}}],e&&b(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,h}()}}]);

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.