PageSourceSearch

https://domni.pl/Assets/js/5280.js?v=9eb137468cf309a2dde3

js domni.pl collected 2026-10-02 10:54:48 UTC 8,916 bytes, 19 lines download raw bytes

vendor: 4,895 bytes, lines 1-19
1(self.webpackChunkdomni=self.webpackChunkdomni||[]).push([[662,4978,5280,5424,8281,8757],{3358:function(e,t){var r;
2/*!
3  Copyright (c) 2017 Jed Watson.
4  Licensed under the MIT License (MIT), see
5  http://jedwatson.github.io/classnames
6*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var u=o.apply(null,r);u&&e.push(u)}else if("object"===i)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},3865:function(e){"use strict";
7/*
8object-assign
9(c) Sindre Sorhus
10@license MIT
11*/var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,u,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var c in i=Object(arguments[a]))r.call(i,c)&&(l[c]=i[c]);if(t){u=t(i);for(var s=0;s<u.length;s++)n.call(i,u[s])&&(l[u[s]]=i[u[s]])}}return l}},1808:function(e,t,r){"use strict";
12/** @license React v16.5.2
13 * react.production.min.js
14 *
15 * Copyright (c) Facebook, Inc. and its affiliates.
16 *
17 * This source code is licensed under the MIT license found in the
18 * LICENSE file in the root directory of this source tree.
19 */var n=r(3865),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,u=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,a=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112;o&&Symbol.for("react.placeholder");var h="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,r="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=0;n<t;n++)r+="&args[]="+encodeURIComponent(arguments[n+1]);!function(e,t,r,n,o,i,u,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[r,n,o,i,u,l],c=0;(e=Error(t.replace(/%s/g,function(){return a[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",r)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function m(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}function g(){}function k(e,t,r){this.props=e,this.context=t,this.refs=b,this.updater=r||v}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var S=k.prototype=new g;S.constructor=k,n(S,m.prototype),S.isPureReactComponent=!0;var O={current:null,currentDispatcher:null},_=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var n=void 0,o={},u=null,l=null;if(null!=t)for(n in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(u=""+t.key),t)_.call(t,n)&&!j.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(1===a)o.children=r;else if(1<a){for(var c=Array(a),s=0;s<a;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===o[n]&&(o[n]=a[n]);return{$$typeof:i,type:e,key:u,ref:l,props:o,_owner:O.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g,P=[];function $(e,t,r,n){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function E(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function T(e,t,r,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case u:l=!0}}
19if(l)return r(n,e,""===t?"."+U(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var c=t+U(o=e[a],a);l+=T(o,c,r,n)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=h&&e[h]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),a=0;!(o=e.next()).done;)l+=T(o=o.value,c=t+U(o,a++),r,n);else"object"===o&&y("31","[object Object]"===(r=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":r,"");return l}function R(e,t,r){return null==e?0:T(e,"",t,r)}function U(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?q(e,n,r,function(e){return e}):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(C,"$&/")+"/")+r)),n.push(e))}function q(e,t,r,n,o){var i="";null!=r&&(i=(""+r).replace(C,"$&/")+"/"),R(e,I,t=$(t,i,n,o)),E(t)}function N(e,t){var r=O.currentDispatcher;return null===r&&y("277"),r.readContext(e,t)}var B={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return q(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;R(e,A,t=$(null,null,t,r)),E(t)},count:function(e){return R(e,function(){return null},null)},toArray:function(e){var t=[];return q(e,t,null,function(e){return e}),t},only:function(e){return x(e)||y("143"),e}},createRef:function(){return{current:null}},Component:m,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,Provider:null,Consumer:null,unstable_read:null}).Provider={$$typeof:s,_context:e},e.Consumer=e,e.unstable_read=N.bind(null,e),e},forwardRef:function(e){return{$$typeof:d,render:e}},Fragment:l,StrictMode:a,unstable_AsyncMode:p,unstable_Profiler:c,createElement:w,cloneElement:function(e,t,r){null==e&&y("267",e);var o=void 0,u=n({},e.props),l=e.key,a=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(a=t.ref,c=O.current),void 0!==t.key&&(l=""+t.key);var s=void 0;for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)_.call(t,o)&&!j.hasOwnProperty(o)&&(u[o]=void 0===t[o]&&void 0!==s?s[o]:t[o])}if(1===(o=arguments.length-2))u.children=r;else if(1<o){s=Array(o);for(var f=0;f<o;f++)s[f]=arguments[f+2];u.children=s}return{$$typeof:i,type:e.type,key:l,ref:a,props:u,_owner:c}},createFactory:function(e){var t=w.bind(null,e);return t.type=e,t},isValidElement:x,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:O,assign:n}},F={default:B},M=F&&B||F;e.exports=M.default||M},8281:function(e,t,r){"use strict";e.exports=r(1808)},5280:function(e,t,r){"use strict";r.r(t);var n=r(8281),o=r.n(n),i=r(6501),u=r(2443),l=r(3358),a=r.n(l);const c={user:1,cms:2,brand:3,tag:4};class s extends o().Component{constructor(e){super(e),this.itemText=e.itemText||i.observe,this.itemTextOff=e.itemTextOff||i.unobserve,this.state={loading:!1,observed:u.default.getObserved(e.itemId)},this.handleClick=this.handleClick.bind(this),this.checkUserSelfButton=this.checkUserSelfButton.bind(this)}handleClick(e){if(!this.state.loading){this.setState({loading:!0});let e=this.state.observed?"unobserve":"observe";u.default[e]({id:this.props.itemId,type:c[this.props.itemType]}).then(t=>{t&&t.ok?this.setState({loading:!1,observed:"observe"===e}):this.setState({loading:!1})}).catch(e=>{this.setState({loading:!1})})}}checkUserSelfButton(){return u.default.checkIfThisUserIsLogged(this.props.itemId)}render(){if(this.checkUserSelfButton())return null;const e=a()(this.props.className,{"is-active":this.state.observed,working:this.state.loading});return o().createElement("button",{onClick:this.handleClick,className:e,disabled:this.state.loading},this.state.observed?this.itemTextOff:this.itemText)}}t.default=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.