PageSourceSearch

https://forbes.ua/static/build/pub/js/5312.ac4e7f6932.js

js forbes.ua collected 2026-10-01 08:35:38 UTC 12,565 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5312],{11693:function(t,a,e){e.r(a),e.d(a,{default:function(){return s}});var i=e(60512),n={name:"GoogleRecaptcha",props:{action:{type:String,required:!1,default:"validate_grecaptcha"},id:{type:String,required:!1,default:"grecaptcha_container"},inline:{type:Boolean,required:!1,default:!1},invisible:{type:Boolean,required:!1,default:!1},value:{type:String,default:""}},data:()=>({mode:"v3",v2Visible:!1,showRules:!0,token:"",instance:null,manager:null,initPromise:null}),async mounted(){await this.$nextTick(),await this.initManager()},beforeDestroy(){this.manager&&this.id&&this.manager.destroyById(this.id)},methods:{syncInstanceOptions(t){return t?(t.action=this.action,t.inline=this.inline,t.invisible=this.invisible,t):null},async initManager(){if(this.initPromise)await this.initPromise;else{this.initPromise=this.doInitManager();try{await this.initPromise}finally{this.initPromise=null}}},async doInitManager(){const t=await(0,i.A)("google-recaptcha-manager");this.manager=t,this.instance||(t.hasById(this.id)?this.instance=t.getById(this.id):this.instance=await t.initialize(this.$el,{captchaId:this.id,action:this.action,inline:this.inline,invisible:this.invisible,onTokenChange:t=>{this.token=t,this.$emit("input",t)},onVersionChange:t=>{this.mode=t,this.$emit("version-change",t)},onV2Success:t=>{this.$emit("v2-success",t)},onUiUpdate:t=>{this.mode=t.mode,this.v2Visible=t.v2Visible,this.showRules=t.showRules}}))},async getInstance(){var t;return this.instance||await this.initManager(),this.syncInstanceOptions(this.instance||(null===(t=this.manager)||void 0===t?void 0:t.getById(this.id)))},async execute(){const t=await this.getInstance();if(!t)return null;if("v2"===t.mode)return t.token||"";const a=await t.execute();return a&&(this.$emit("input",a),this.$emit("version-change","v3")),a},async showV2(){const t=await this.getInstance();null==t||t.showV2()},async revealV2(){const t=await this.getInstance();null==t||t.revealV2()},async refreshV2(){const t=await this.getInstance();null==t||t.refreshV2()},async reset(){const t=await this.getInstance();await(null==t?void 0:t.reset())}}},s=(0,e(67658).A)(n,function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"с-captcha__block",class:{"с-captcha__block--v2":t.v2Visible}},[t.showRules?e("div",[e("div",{staticClass:"с-captcha__rules"},[t._v("\n            "+t._s(t.$t("Цей сайт захищено reCAPTCHA, до нього застосовуються"))+"\n            "),e("a",{attrs:{href:"https://policies.google.com/privacy",target:"_blank"}},[t._v(t._s(t.$t("Політика конфіденційності")))]),t._v(" "+t._s(t.$t("та"))+" \n            "),e("a",{attrs:{href:"https://policies.google.com/terms",target:"_blank"}},[t._v(t._s(t.$t("Умови використання")))]),t._v(" Google.\n        ")])]):t._e()])},[],!1,null,null,null).exports},13853:function(t,a,e){var i=e(22224);a.A={data:()=>({lockedCount:0}),computed:{locked:t=>t.$data.lockedCount>0},methods:{lock(...t){if(++this.$data.lockedCount,!t.length)return;const a=(0,i.flattenDeep)(t).map(t=>(0,i.isFunction)(t)?t():t),e=1===a.length?a[0]:Promise.all(a);return e.then(()=>this.unlock(),()=>this.unlock()),e},unlock(){--this.$data.lockedCount}}}},25312:function(t,a,e){e.r(a),e.d(a,{default:function(){return u}});var i=e(13853),n=e(98262),s=e(11693),r=e(50747),c=e(17803),o=e(60512),l=e(56906),h={components:{GoogleReCaptcha:s.default},mixins:[i.A,r.A],form:"email-subscribe",props:{payload:{type:Object,required:!0}},data:()=>({isSent:!1,emailListFromPaywall:null}),async mounted(){this.resetForm();const t=await(0,n.N)();this.$data.emailListFromPaywall=await t.emailLists.get({id:this.$props.payload.email_list_id})},methods:{async onSubmit(t){await this.requestCaptchaAndSubmit(async({token:a,version:e})=>{const i=await(0,n.N)(),s=await this.lock((0,c.lQ)(i,{emailListId:this.$props.payload.email_list_id,email:t.data.email||"email",captcha:{token:a,version:e}}));s.errors?(t.fillErrors(s.errors),await this.handleSubscribeCaptchaErrors(s.errors)):(this.resetForm(),await this.refreshCaptchaAfterSuccess(),this.isSent=!0,(0,o.A)().waitFor(["ee"]).then(({ee:t})=>{t.emit(new l.A("footer",this.$data.emailListFromPaywall))}))})},resetForm(){this.$thisForm().reset()}}},d=(0,e(67658).A)(h,function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"c-footer-subscribe__inner"},[e("span",{staticClass:"c-footer-subscribe__text",domProps:{innerHTML:t._s(t.$t("Підпишіться на&nbsp;<b>email розсилку</b>, щоб не&nbsp;пропустити нічого важливого"))}}),t._v(" "),t.isSent?e("span",{staticClass:"c-footer-subscribe__text"},[t._v("\n        "+t._s(t.$t("Дякуємо за підписку"))+"\n    ")]):e("v-form",{ref:"form",attrs:{clearable:!1,name:"email-subscribe"},on:{submit:t.onSubmit},scopedSlots:t._u([{key:"default",fn:function(a){var i=a.$form,n=a.submit;return[e("form",{staticClass:"c-footer-subscribe__form",attrs:{disabled:i.processing},on:{submit:function(t){return t.preventDefault(),n.apply(null,arguments)}}},[e("div",{staticClass:"form-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.data.email,expression:"$form.data.email"}],staticClass:"form-control",attrs:{id:"subscriptionEmail",placeholder:"Email",disabled:t.locked},domProps:{value:i.data.email},on:{input:function(a){a.target.composing||t.$set(i.data,"email",a.target.value)}}}),t._v(" "),e("div",{staticClass:"invalid-feedback"},[t._v("\n                    "+t._s(i.formatErrors("email"))+"\n                ")]),t._v(" "),e("v-button",{staticClass:"btn btn-primary",attrs:{type:"submit",size:"",color:"",disabled:i.processing||!i||!i.data.email||i.data.email.length<3}},[e("span",{staticClass:"d-none d-xl-inline"},[t._v("\n                        "+t._s(t.locked?t.$t("Надсилання…"):t.$t("Підписатися"))+"\n                    ")]),t._v(" "),e("span",{staticClass:"d-xl-none"},[e("v-svg",{attrs:{icon:"arrow"}})],1)])],1),t._v(" "),e("div",{staticClass:"form-col form-col--full"},[e("div",{staticClass:"invalid-feedback"},[t._v("\n                    "+t._s(i.formatErrors("captcha.token"))+"\n                ")]),t._v(" "),e("google-re-captcha",{ref:"captcha",attrs:{id:"inl-footer-"+t.payload.email_list_id+"-grecaptcha_container",inline:"",invisible:"",action:"email_subscribe"}})],1)])]}}],null,!1,3000635775)})],1)},[],!1,null,null,null),u=d.exports},50747:function(t,a,e){var i=e(60512),n=e(95391),s=e(11008);a.A={props:{captchaAction:{type:String,default:"email_subscribe"},captchaId:{type:String,default:null},captchaDisabled:{type:Boolean,default:!1}},data:()=>({captchaManagerId:null,pendingCaptchaSubmit:null,lastCaptchaSubmit:null,captchaConsumerActive:!0,captchaTokenReadyBound:!1,captchaTokenReadyHandler:null}),async mounted(){this.captchaDisabled||(await this.$nextTick(),await this.initCaptchaManagerConsumer())},beforeDestroy(){this.captchaConsumerActive=!1,this.pendingCaptchaSubmit=null,this.lastCaptchaSubmit=null,this.unbindCaptchaTokenReady(),this.captchaManagerId&&!this.$refs.captcha&&(0,i.A)("google-recaptcha-manager").then(t=>{t.hasById(this.captchaManagerId)&&t.destroyById(this.captchaManagerId)})}
1,methods:{resolveCaptchaManagerId(){var t,a,e,i;return this.captchaManagerId?this.captchaManagerId:this.captchaId?this.captchaId:null!==(t=this.$refs.captcha)&&void 0!==t&&null!==(a=t.instance)&&void 0!==a&&a.captchaId?this.$refs.captcha.instance.captchaId:null!==(e=this.$refs.captcha)&&void 0!==e&&null!==(i=e.$props)&&void 0!==i&&i.id?this.$refs.captcha.$props.id:`captcha-${(0,n.A)()}`},getCaptchaHostElement(){var t;return(null===(t=this.$refs.captcha)||void 0===t?void 0:t.$el)||this.$refs.captchaContainer||null},unbindCaptchaTokenReady(){if(!this.captchaTokenReadyBound||!this.captchaTokenReadyHandler)return this.captchaTokenReadyBound=!1,void(this.captchaTokenReadyHandler=null);const t=this.captchaTokenReadyHandler;this.captchaTokenReadyBound=!1,this.captchaTokenReadyHandler=null,(0,i.A)("ee").then(a=>{a.off(s.A,t)})},async bindCaptchaTokenReady(t){if(this.captchaTokenReadyBound)return;const a=t=>{if(!this.captchaConsumerActive||t.captchaId!==this.captchaManagerId)return;const a=this.pendingCaptchaSubmit||("v2"===t.version?this.lastCaptchaSubmit:null);a&&(this.pendingCaptchaSubmit=null,a({token:t.token,version:t.version}))};t.on(s.A,a),this.captchaTokenReadyHandler=a,this.captchaTokenReadyBound=!0},async initCaptchaManagerConsumer(){if(this.captchaDisabled)return!1;let t=this.getCaptchaHostElement();if(t||(await this.$nextTick(),t=this.getCaptchaHostElement()),!t)return!1;const{"google-recaptcha-manager":a,ee:e}=await(0,i.A)().waitFor(["google-recaptcha-manager","ee"]);if(this.$refs.captcha){var n,s;this.$refs.captcha.instance||await this.$refs.captcha.initManager();const t=(null===(n=this.$refs.captcha.instance)||void 0===n?void 0:n.captchaId)||(null===(s=this.$refs.captcha.$props)||void 0===s?void 0:s.id);t&&(this.captchaManagerId=t)}this.captchaManagerId||(this.captchaManagerId=this.resolveCaptchaManagerId());const r=this.captchaManagerId;return a.hasById(r)||this.$refs.captcha||await a.initialize(t,{captchaId:r,action:this.captchaAction,inline:!0,invisible:!0}),await this.bindCaptchaTokenReady(e),a.hasById(r)},async requestCaptchaAndSubmit(t){if(this.captchaDisabled)return void(await t({token:null,version:null}));const{"google-recaptcha-manager":a}=await(0,i.A)().waitFor(["google-recaptcha-manager"]);await this.initCaptchaManagerConsumer();const e=this.captchaManagerId||this.resolveCaptchaManagerId();if(!a.hasById(e))return;this.lastCaptchaSubmit=t,this.pendingCaptchaSubmit=t;const n=await a.requestToken(e);null!=n&&n.token&&this.pendingCaptchaSubmit===t&&(this.pendingCaptchaSubmit=null,await t({token:n.token,version:n.version}))},async handleSubscribeCaptchaErrors(t){const{"google-recaptcha-manager":a}=await(0,i.A)().waitFor(["google-recaptcha-manager"]);await this.initCaptchaManagerConsumer();const e=this.captchaManagerId||this.resolveCaptchaManagerId(),n=a.handleErrors(e,t);return this.lastCaptchaSubmit&&(null!=n&&n.requiresV2||null!=n&&n.refreshedV2)&&(this.pendingCaptchaSubmit=this.lastCaptchaSubmit),n},async refreshCaptchaAfterSuccess(){const{"google-recaptcha-manager":t}=await(0,i.A)().waitFor(["google-recaptcha-manager"]),a=this.captchaManagerId||this.resolveCaptchaManagerId(),e=t.getById(a);this.pendingCaptchaSubmit=null,this.lastCaptchaSubmit=null,e&&"v2"!==e.version&&await e.execute()}}}},67658:function(t,a,e){function i(t,a,e,i,n,s,r,c){var o,l="function"==typeof t?t.options:t;if(a&&(l.render=a,l.staticRenderFns=e,l._compiled=!0),i&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),r?(o=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=o):n&&(o=c?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(l.functional){l._injectStyles=o;var h=l.render;l.render=function(t,a){return o.call(a),h(t,a)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,o):[o]}return{exports:t,options:l}}e.d(a,{A:function(){return i}})},95391:function(t,a,e){var i;e.d(a,{A:function(){return d}});var n=new Uint8Array(16);function s(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(n)}
vendor: 752 bytes, line 1
1var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var c=function(t){return"string"==typeof t&&r.test(t)},o=[],l=0;l<256;++l)o.push((l+256).toString(16).substr(1));var h=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(o[t[a+0]]+o[t[a+1]]+o[t[a+2]]+o[t[a+3]]+"-"+o[t[a+4]]+o[t[a+5]]+"-"+o[t[a+6]]+o[t[a+7]]+"-"+o[t[a+8]]+o[t[a+9]]+"-"+o[t[a+10]]+o[t[a+11]]+o[t[a+12]]+o[t[a+13]]+o[t[a+14]]+o[t[a+15]]).toLowerCase();if(!c(e))throw TypeError("Stringified UUID is invalid");return e};var d=function(t,a,e){var i=(t=t||{}).random||(t.rng||s)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,a){e=e||0;for(var n=0;n<16;++n)a[e+n]=i[n];return a}return h(i)}}}]);

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.