PageSourceSearch

https://www.vectorstock.com/cache/v2/js/9628.a3ef7443fed241853dab.min.js

js vectorstock.com collected 2026-09-27 20:56:13 UTC 11,538 bytes, 2 lines download raw bytes

1/*! For license information please see 9628.a3ef7443fed241853dab.min.js.LICENSE.txt */
2"use strict";(self.webpackChunkVectorStockWebsite=self.webpackChunkVectorStockWebsite||[]).push([[9628],{79628(e,t,n){n.d(t,{A:()=>g});var i=n(84242),o=n(90413),l=n(24793),r=n(86834),a=n(53405),c=n(40627),u=n(7546);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function d(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function l(n,i,o,l){var c=i&&i.prototype instanceof a?i:a,u=Object.create(c.prototype);return v(u,"_invoke",function(n,i,o){var l,a,c,u=0,s=o||[],d=!1,v={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return l=t,a=0,c=e,v.n=n,r}};function h(n,i){for(a=n,c=i,t=0;!d&&u&&!o&&t<s.length;t++){var o,l=s[t],h=v.p,f=l[2];n>3?(o=f===i)&&(c=l[(a=l[4])?5:(a=3,3)],l[4]=l[5]=e):l[0]<=h&&((o=n<2&&h<l[1])?(a=0,v.v=i,v.n=l[1]):h<f&&(o=n<3||l[0]>i||i>f)&&(l[4]=n,l[5]=i,v.n=f,a=0))}if(o||n>1)return r;throw d=!0,i}return function(o,s,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&h(s,f),a=s,c=f;(t=a<2?e:c)||!d;){l||(a?a<3?(a>1&&(v.n=-1),h(a,c)):v.n=c:v.v=c);try{if(u=2,l){if(a||(o="next"),t=l[o]){if(!(t=t.call(l,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=l.return)&&t.call(l),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);l=e}else if((t=(d=v.n<0)?c:n.call(i,v))!==r)break}catch(t){l=e,a=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,l),!0),u}var r={};function a(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][i]?t(t([][i]())):(v(t={},i,function(){return this}),t),h=u.prototype=a.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,v(e,o,"GeneratorFunction")),e.prototype=Object.create(h),e}return c.prototype=u,v(h,"constructor",u),v(u,"constructor",c),c.displayName="GeneratorFunction",v(u,o,"GeneratorFunction"),v(h),v(h,o,"Generator"),v(h,i,function(){return this}),v(h,"toString",function(){return"[object Generator]"}),(d=function(){return{w:l,m:f}})()}function v(e,t,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}v=function(e,t,n,i){function l(t,n){v(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(l("next",0),l("throw",1),l("return",2))},v(e,t,n,i)}function h(e,t,n,i,o,l,r){try{var a=e[l](r),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(i,o)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p(i.key),i)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}var g=function(){return e=function e(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.profile,l=void 0===o?null:o,r=i.isDevelopment,a=void 0!==r&&r,c=i.contextLabel,u=void 0===c?"Vector Page":c,s=i.isCleared,d=void 0===s?function(){return!1}:s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.profile=l,this.isDevelopment=a,this.contextLabel=u,this.isCleared=d,this.usePaddleBilling=!(null===(t=this.profile)||void 0===t||null===(n=t.usePaddleBilling)||void 0===n||!n.call(t)),this.paddle=this._createPaddleService(),this.checkoutOpen=!1,this.invoice=null,this.validating=!1,this.activePurchase=null},t=[{key:"_createPaddleService",value:function(){var e,t,n=this,i=this.usePaddleBilling?r.h:a.q,o={isDevelopment:this.isDevelopment,contextLabel:this.contextLabel,eventCallback:function(e){return n._handlePaddleEvent(e)}};return this.usePaddleBilling&&(o.checkoutSettings={displayMode:"overlay",theme:"light",variant:null!==(e=this.profile)&&void 0!==e&&null!==(t=e.isLoggedIn)&&void 0!==t&&t.call(e)?"one-page":"multi-page"}),new i(o)}},{key:"_handlePaddleEvent",value:function(e){this.usePaddleBilling&&"checkout.completed"===(null==e?void 0:e.name)?this._handleBilling
2CheckoutCompleted(e):this.usePaddleBilling&&"checkout.closed"===(null==e?void 0:e.name)?this._handleBillingCheckoutClosed():this.usePaddleBilling&&"checkout.error"===(null==e?void 0:e.name)?this._handleBillingCheckoutError(e):"Checkout.Error"===(null==e?void 0:e.event)&&this._handleClassicCheckoutError(e)}},{key:"_buildInvoiceOrder",value:function(e){var t={method:{type:"pay-per-image"},vector:e.vectorID,license:e.selection.license,overlay:!0};return e.selection.customization&&(t.customization=!0),t}},{key:"_handleBillingCheckoutCompleted",value:function(e){var t,n;if(this.checkoutOpen&&!this.validating){var i=null===(t=this.invoice)||void 0===t?void 0:t.id,o=null===(n=this.invoice)||void 0===n?void 0:n.token;if(!i||!o){var r;l.A.log("".concat(this.contextLabel,": Aside"),"Paddle Billing missing invoice id/token",{invoice:this.invoice,event:e});var a=this.activePurchase;return this._reset(),void(null==a||null===(r=a.onEnable)||void 0===r||r.call(a))}this.validating=!0,this._validateOrder(i,o)}}},{key:"_handleBillingCheckoutClosed",value:function(){var e;if(this.checkoutOpen&&!this.validating){var t=this.activePurchase;this._reset(),null==t||null===(e=t.onEnable)||void 0===e||e.call(t)}}},{key:"_handleBillingCheckoutError",value:function(e){var t;l.A.log("".concat(this.contextLabel,": Aside"),"Paddle Billing checkout.error",{event:e});var n=this.activePurchase;this._reset(),null==n||null===(t=n.onEnable)||void 0===t||t.call(n),this._showFailedPrompt()}},{key:"_handleClassicCheckoutError",value:function(e){var t,n,i,o,r,a,c,u,s=null!==(t=null==e||null===(n=e.eventData)||void 0===n?void 0:n.checkout)&&void 0!==t?t:null,d=this._parsePassthrough(null==s?void 0:s.passthrough);l.A.log("".concat(this.contextLabel,": Aside"),"Paddle Checkout.Error",{event:null==e?void 0:e.eventData,checkout:{id:null!==(i=null==s?void 0:s.id)&&void 0!==i?i:null,created_at:null!==(o=null==s?void 0:s.created_at)&&void 0!==o?o:null,completed:null!==(r=null==s?void 0:s.completed)&&void 0!==r?r:null},passthrough:{invoice_id:null!==(a=null==d?void 0:d.invoice_id)&&void 0!==a?a:null,type:null!==(c=null==d?void 0:d.type)&&void 0!==c?c:null,user_id:null!==(u=null==d?void 0:d.user_id)&&void 0!==u?u:null},error:new Error(e.event)}),this._showFailedPrompt()}},{key:"_parsePassthrough",value:function(e){if(!e)return null;try{return"string"==typeof e?JSON.parse(e):e}catch(t){return{raw:String(e)}}}},{key:"_validateOrder",value:function(e,t){var n,o,r=this,a=this.activePurchase;if(a){var c={guest:!(null!==(n=this.profile)&&void 0!==n&&null!==(o=n.isLoggedIn)&&void 0!==o&&o.call(n)),product:{id:a.vectorID,title:a.vectorTitle,license:a.selection.license,customization:a.selection.customization}},u=new i.z;this.paddle.validateOrder(e,t,{onMaxAttempts:function(){null==u||u.updateStatus("delayed")}}).then(function(e){var t;u.updateStatus("confirmed",c,e),null===(t=a.onSuccess)||void 0===t||t.call(a,e)}).catch(function(t){l.A.log(r.contextLabel,"Paddle purchase validation failed",{vector:a.vectorID,orderID:e,error:t}),r._showDownloadErrorPrompt()}).finally(function(){var e;r._reset(),null===(e=a.onEnable)||void 0===e||e.call(a)})}}},{key:"_openClassicCheckout",value:function(e){var t=this;window.Paddle.Checkout.open({override:e.url,allowQuantity:!1,successCallback:function(n){t.validating=!0;try{var i,o=t._parsePassthrough(null==n||null===(i=n.checkout)||void 0===i?void 0:i.passthrough),r=null==o?void 0:o.invoice_id;if(!r)throw new Error("Missing invoice_id in passthrough");t._validateOrder(r,e.token)}catch(e){var a,c;l.A.log(t.contextLabel,"Failed to parse Paddle passthrough",{vector:null===(a=t.activePurchase)||void 0===a?void 0:a.vectorID,data:n,error:e}),t.validating=!1;var u=t.activePurchase;t._reset(),null==u||null===(c=u.onEnable)||void 0===c||c.call(u)}},closeCallback:function(){var e;if(!t.validating){var n=t.activePurchase;t._reset(),null==n||null===(e=n.onEnable)||void 0===e||e.call(n)}},errorCallback:function(e){var n,i,o;l.A.log(t.contextLabel,"Paddle error thrown",{vector:null===(n=t.activePurchase)||void 0===n?void 0:n.vectorID,selection:null===(i=t.activePurchase)||void 0===i?void 0:i.selection,error:e}),t.validating=!1;var r=t.activePurchase;t._reset(),null==r||null===(o=r.onEnable)||void 0===o||o.call(r)}})}},{key:"_handleGuestPurchased",value:function(e){var t=this.activePurchase;return!(!t||"GUEST_PURCHASED"!==(null==e?void 0:e.code)||(this._attemptGuestPurchasedDownload(t),0))}},{key:"_attemptGuestPurchasedDownload",value:(n=d().m(function e(t){var n,i,o;return d().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,u.H.attemptVectorDownload(t.vectorID,t.selection.filetype);case 1:i=e.v,null===(n=t.onSuccess)||void 0===n||n.call(t,i),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.p=3,this._reset(),null===(o=t.onEnable)||void 0===o||o.call(t),e.f(3);case 4:return e.a(2)}},e,this,[[0,2,3,4]])}),s=function(){var e=this,t=arguments;return new Promise(function(i,o){var l=n.apply(e,t);function r(e){h(l,i,o,r,a,"next",e)}function a(e){h(l,i,o,r,a,"throw",e)}r(void 0)})},function(e){return s.apply(this,arguments)})},{key:"_fallbackToCheckout",value:function(){var e,t=this.activePurchase;this._reset(),null==t||null===(e=t.onFallbackToCheckout)||void 0===e||e.call(t)}},{key:"_showFailedPrompt",value:function(){o.PromptModule.alert(c.translations.g("warnings.purchase.error.title","Payment failed"),c.translations.g("warnings.purchase.error.description","Please try again in a moment."))}},{key:"_showDownloadErrorPrompt",value:function(){o.PromptModule.alert(c.translations.g("warnings.download.error.title","Something went wrong"),c.translations.g("warnings.download.error.description","Please try again in a moment."))}},{key:"_reset",value:function(){this.checkoutOpen=!1,this.invoice=null,this.validating=!1,this.activePurchase=null}},{key:"start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.vectorID,i=t.vectorTitle,o=t.selection,l=t.onDisable,r=void 0===l?function(){}:l,a=t.onEnable,c=void 0===a?function(){}:a,u=t.onSuccess,s=void 0===u?function(){}:u,d=t.onFallbackToCheckout,v=void 0===d?function(){}:d;n&&o?(this.activePurchase={vectorID:n,vectorTitle:i,selection:o,onDisable:r,onEnable:c,onSuccess:s,onFallbackToCheckout:v},this.validating=!1,r(),this.paddle.ensureLoaded().then(function(){return e.paddle.createDirectInvoice(e._buildInvoiceOrder(e.activePurchase))}
2).then(function(t){if(!e.isCleared()){if(e.usePaddleBilling){if(null==t||!t.provider||null==t||!t.id||null==t||!t.token)throw new Error("Missing Paddle Billing provider/id/token in invoice response");return e.checkoutOpen=!0,e.invoice=t,void e.paddle.openCheckout(t)}if(null==t||!t.url||null==t||!t.token)throw new Error("Missing Paddle URL or token in invoice response");e._openClassicCheckout(t)}}).catch(function(t){e.isCleared()||e._handleGuestPurchased(t)||e._fallbackToCheckout()})):v()}},{key:"destroy",value:function(){var e,t;null===(e=this.paddle)||void 0===e||null===(t=e.destroy)||void 0===t||t.call(e),this.paddle=null,this._reset()}}],t&&f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,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.