PageSourceSearch

https://prom.ua/cloud-cgi/static/catalog-ui/js/build/portal-portable/1218_1606fdcb0cdd3c8757d1.js

js prom.ua collected 2026-09-24 08:40:11 UTC 9,188 bytes, 2 lines download raw bytes

vendor: 4,385 bytes, lines 1-2
1/*! For license information please see 1218_1606fdcb0cdd3c8757d1.js.LICENSE.txt */
2"use strict";(self["__LOADABLE_LOADED_CHUNKS__"]=self["__LOADABLE_LOADED_CHUNKS__"]||[]).push([[1218],{83369:function(e,t,r){r.r(t),r.d(t,{CheckIsSiteOnPortalPage:function(){return F}});var n=r(53459),o=r(57991),i=r(45714),a=r(33538),c=r(888),u=r(96339),s=r(60192),l=r(47908),f=r(29049),S=r(1645),p=r(75851),y=r(31434),b=r(26521),_=r(41881),m=r(96147);function d(e){return d="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},d(e)}function h(){var e,t,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,S={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,c=0,u=e,S.n=r,a}};function p(r,n){for(c=r,u=n,t=0;!f&&s&&!o&&t<l.length;t++){var o,i=l[t],p=S.p,y=i[2];r>3?(o=y===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(c=0,S.v=n,S.n=i[1]):p<y&&(o=r<3||i[0]>n||n>y)&&(i[4]=r,i[5]=n,S.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&&p(l,y),c=l,u=y;(t=c<2?e:u)||!f;){i||(c?c<3?(c>1&&(S.n=-1),p(c,u)):S.n=u:S.v=u);try{if(s=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(f=S.n<0)?u:r.call(n,S))!==a)break}catch(t){i=e,c=1,u=t}finally{s=1}}return{value:t,done:f}}}(r,o,i),!0),s}var a={};function c(){}function u(){}function s(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(v(t={},n,function(){return this}),t),f=s.prototype=c.prototype=Object.create(l);function S(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,v(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}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]"}),(h=function(){return{w:i,m:S}})()}function v(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}v=function(e,t,r,n){function i(t,r){v(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},v(e,t,r,n)}function g(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function E(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){g(i,n,o,a,c,"next",e)}function c(e){g(i,n,o,a,c,"throw",e)}a(void 0)})}}function O(e,t){return w(e)||C(e,t)||j(e,t)||T()}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"==typeof e)return x(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(s)throw o}}return c}}function w(e){if(Array.isArray(e))return e}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?M(Object(r),!0).forEach(function(t){A(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function A(e,t,r){return(t=R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e){var t=I(e,"string");return"symbol"==d(t)?t:t+""}function I(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var B="/company_domain_check/check_is_site_on_portal_rest",P=function(e){return e["SUBMIT_START"]="SUBMIT_START",e["SET_DOMAIN_FOR_CHECK"]="SET_DOMAIN_FOR_CHECK",e["SUBMIT_SUCCESS_SET_ERROR"]="SUBMIT_SUCCESS_SET_ERROR",e["SUBMIT_SUCCESS_SET_MESSAGE"]="SUBMIT_SUCCESS_SET_MESSAGE",e}(P||{}),k={isLoading:!1,errorMessage:"",domainForCheck:"",message:""};function D(e,t){switch(t.type){case P.SUBMIT_START:return U(U({},e),{},{isLoading:!0,errorMessage:"",message:""});case P.SET_DOMAIN_FOR_CHECK:return U(U({},e),{},{domainForCheck:t.value});case P.SUBMIT_SUCCESS_SET_ERROR:return U(U({},e),{},{isLoading:!1,errorMessage:t.value});case P.SUBMIT_SUCCESS_SET_MESSAGE:return U(U({},e),{},{isLoading:!1,message:t.value});default:throw new Error}}var F=function(){var e=O((0,n.useReducer)(D,k),2),t=e[0],r=e[1],d=(0,a.D6)(),v=d.domain,g=d.isUaprom,T=d.country,j=A(A(A({},b.E.UA,"\u041f\u0440\u043e\u043c\u043e\u043c"),b.E.KZ,"\u0421\u0430\u0442\u0443"),b.E.MD,"\u041f\u0440\u043e\u043c\u043e\u043c")[T],x=(0,n.useCallback)(function(){var e=E(h().m(function e(n){var i,a;return h().w(function(e){for(;1;)switch(e.p=e.n){case 0:return n.preventDefault(),r({type:P.SUBMIT_START}),a={mode:"cors"},e.p=1,e.n=2,o.my.POST(B,{url:t.domainForCheck},a);case 2:i=e.v,e.n=4;break;case 3:e.p=3,e.v,i={status:"error",message:"\u0423\u043f\u0441.. \u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a"};case 4:"ok"===i.status&&r({type:P.SUBMIT_SUCCESS_SET_MESSAGE,value:i.message}),"validation_error"===i.status&&r({type:P.SUBMIT_SUCCESS_SET_ERROR,value:i.error}),"error"===i.status&&r({type:P.SUBMIT_SUCCESS_SET_ERROR,value:i.message});case 5:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),[t.domainForCheck]),C="\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0430\u0439\u0442\u0430 \u043a \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 ".concat(v),w="\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u0447\u0430\u0435\u0442 \u043b\u0438 \u043f\u0440\u043e\u0434\u0430\u0432\u0435\u0446 \u0441 ".concat(j,". \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438 \u0443\u0437\u043d\u0430\u0439\u0442\u0435 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043b\u0438 \u0441\u0430\u0439\u0442 \u043a \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435 ").concat(v,"."),M="\u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0434\u0430\u0432\u0435\u0446 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u0447\u0430\u0435\u0442 \u0441 \u041f\u0440\u043e\u043c\u043e\u043c?";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(i.m,{children:[(0,m.jsx)("title",{children:C}),(0,m.jsx)("meta",{name:"description",content:w})]}),(0,m.jsx)(_.Q,{title:C,description:w}),(0,m.jsx)(y.I,{action:"help:check_is_site_on_portal",pageType:p.L.checkIsSiteOnPortal}),(0,m.jsx)(S.l,{}),(0,m.jsx)(c.n.Section,{children:(0,m.jsx)(u.Box,{"box-background":"white","box-round":"m@large","box-margin":"l none",children:(0,m.jsxs)(u.Box,{"box-padding":"l",children:[(0,m.jsx)(u.Box,{"box-margin-bottom":"s",children:(0,m.jsx)(f.Text,{"text-as":"h1","text-size":"h3","text-align":"center",children:g()?M:C})}),(0,m.jsxs)("form",{onSubmit:x,children:[(0,m.jsx)(u.Box,{"box-margin-bottom":"l",children:(0,m.jsx)(l.F,{type:"search",autoF
2ocus:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u0430\u0439\u0442",value:t.domainForCheck,onChange:function(e){return r({type:P.SET_DOMAIN_FOR_CHECK,value:e.target.value})},error:t.errorMessage})}),(0,m.jsx)(s.Button,{type:"submit","button-width":"1-1","button-theme":"violet",loading:t.isLoading,disabled:t.isLoading,children:"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c"})]}),t.message?(0,m.jsx)(u.Box,{"box-margin-top":"l",children:(0,m.jsx)(f.Text,{"text-align":"center","text-size":"h5",children:t.message})}):null]})})})]})}}}]);

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.