PageSourceSearch

https://antyweb.pl/_aw/74b1d53.js

js antyweb.pl collected 2026-09-24 08:27:56 UTC 11,748 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{345:function(t,e,r){var n=r(39),c=r(18),o="["+r(350)+"]",l=RegExp("^"+o+o+"*"),d=RegExp(o+o+"*$"),f=function(t){return function(e){var r=c(n(e));return 1&t&&(r=r.replace(l,"")),2&t&&(r=r.replace(d,"")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},350:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},356:function(t,e,r){"use strict";var n=r(2),c=r(14),o=r(43),l=r(33),d=r(18),f=r(8),v=r(379),h=r(159),m=r(380),x=r(381),y=r(93),w=r(382),O=[],k=O.sort,j=f((function(){O.sort(void 0)})),_=f((function(){O.sort(null)})),C=h("sort"),F=!f((function(){if(y)return y<70;if(!(m&&m>3)){if(x)return!0;if(w)return w<603;var code,t,e,r,n="";for(code=65;code<76;code++){switch(t=String.fromCharCode(code),code){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(r=0;r<47;r++)O.push({k:t+r,v:e})}for(O.sort((function(a,b){return b.v-a.v})),r=0;r<O.length;r++)t=O[r].k.charAt(0),n.charAt(n.length-1)!==t&&(n+=t);return"DGBEFHACIJK"!==n}}));n({target:"Array",proto:!0,forced:j||!_||!C||!F},{sort:function(t){void 0!==t&&c(t);var e=o(this);if(F)return void 0===t?k.call(e):k.call(e,t);var r,n,f=[],h=l(e.length);for(n=0;n<h;n++)n in e&&f.push(e[n]);for(f=v(f,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:d(e)>d(r)?1:-1}}(t)),r=f.length,n=0;n<r;)e[n]=f[n++];for(;n<h;)delete e[n++];return e}})},363:function(t,e,r){"use strict";var n=r(6),c=(r(36),r(58),r(356),r(88),r(89),r(51),r(12),r(116),r(160),r(52),r(23)),o=r(11);e.a=function(){var t=Object(o.o)().$axios,e=function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(r){var n,o,l,d,f,v,h,m,x,y,w,O,k,j,_,C,F,body,S,z,M,R,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.query,o=r.start,l=void 0===o?0:o,d=r.size,f=void 0===d?20:d,v=r.includeFields,h=void 0===v?["*"]:v,m=r.excludeFields,x=void 0===m?[]:m,y=r.sort,w=void 0===y?"date":y,O=r.sortOrder,k=void 0===O?"desc":O,j=r.type,_=void 0===j?null:j,C=r.index,F=void 0===C?"post":C,c.elasticsearch.indexes.includes(F)||(F=c.elasticsearch.defaultIndex),F=F||c.elasticsearch.defaultIndex,_&&(n=n.filter("term","type",_)),body=n.size(f).from(l).sort(w,k).build(),S=JSON.stringify(body),z={},"*"!==(null==h?void 0:h[0])&&(z._source_includes=h),(null==x?void 0:x.length)&&(z._source_excludes=x),M=Object.entries(z).map((function(i){return[i[0],encodeURIComponent(i[1])].join("=")})).join("&"),e.next=12,t.post("/collection/".concat(F,"/_search?").concat(M),S);case 12:return R=e.sent,data=R.data,e.abrupt("return",data);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{decorateResults:function(data){var t=data.hits;return{total:t.total,hits:t.hits.map((function(t){return t._source}))}},quickSearchByQuery:e}}},379:function(t,e){var r=Math.floor,n=function(t,e){var l=t.length,d=r(l/2);return l<8?c(t,e):o(n(t.slice(0,d),e),n(t.slice(d),e),e)},c=function(t,e){for(var element,r,n=t.length,i=1;i<n;){for(r=i,element=t[i];r&&e(t[r-1],element)>0;)t[r]=t[--r];r!==i++&&(t[r]=element)}return t},o=function(t,e,r){for(var n=t.length,c=e.length,o=0,l=0,d=[];o<n||l<c;)o<n&&l<c?d.push(r(t[o],e[l])<=0?t[o++]:e[l++]):d.push(o<n?t[o++]:e[l++]);return d};t.exports=n},380:function(t,e,r){var n=r(73).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},381:function(t,e,r){var n=r(73);t.exports=/MSIE|Trident/.test(n)},382:function(t,e,r){var n=r(73).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},425:function(t,e,r){t.exports={}},426:function(t,e,r){t.exports={}},478:function(t,e,r){"use strict";var n=r(6),c=(r(36),r(11)),o=r(23),l=r(383),d=r.n(l),f=r(363),v=Object(c.l)({});e.a=function(){var t=Object(f.a)().quickSearchByQuery,e=function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(n){var c,l,f,h,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=m.length>1&&void 0!==m[1]?m[1]:0,l=m.length>2&&void 0!==m[2]?m[2]:4,r(),f=o.entities.post.searchableFields,h=d()().query("multi_match","fields",f,{query:n,operator:"and"}),e.next=7,t({query:h,start:c,size:l,type:"post"});case 7:v.value=e.sent;case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),r=function(){v.value={}};return{results:v,clearSearch:r,search:e}}},479:function(t,e,r){"use strict";r(425)},480:function(t,e,r){"use strict";r(426)},487:function(t,e,r){"use strict";var n=r(11),c=(r(338),Object(n.b)({props:{size:{type:Number,default:40}},setup:function(t){return{spinnerStyle:Object(n.a)((function(){return{height:"".concat(t.size,"px"),width:"".concat(t.size,"px")}})),innerStyle:Object(n.a)((function(){return{height:"".concat(.8*t.size,"px"),width:"".concat(.8*t.size,"px"),borderWidth:"".concat(Math.round(.075*t.size),"px")}}))}}})),o=(r(479),r(87)),l=Object(o.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"spinner",style:t.spinnerStyle},[r("div",{staticClass:"spinner__inner",style:t.innerStyle})])}),[],!1,null,"7c718a42",null).exports,d=Object(n.b)({components:{Spinner:l},props:{loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup:function(t){return{isDisabled:Object(n.a)((function(){return t.disabled||t.loading}))}}}),f=(r(480),Object(o.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("button",{staticClass:"search-button absolute right-0 top-0 md:mt-3 md:mr-3 flex items-center justify-center",attrs:{type:"submit",disabled:t.isDisabled}},[t.loading?r("Spinner",{attrs:{size:40}}):r("svg",{staticClass:"h-4 w-4 md:h-6 md:w-6",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 18"}},[r("path",{attrs:{fill:"#FFF","fill-rule":"evenodd",stroke:"#FFF","stroke-width":".5",d:"M7.666 1c3.681 0 6.666 2.934 6.666 6.552a6.458 6.458 0 01-1.523 4.17L17 15.841 15.822 17l-4.228-4.154a6.713 6.713 0 01-3.928 1.258C3.984 14.104 1 11.171 1 7.552 1 3.934 3.984 1 7.666 1zm0 1.638c-2.761 0-5 2.2-5 4.914 0 2.714 2.239 4.914 5 4.914.978 0 1.91-.275 2.71-.783l.235-.16.511-.366.402-.479a4.836 4.836 0 001.134-2.86l.007-.266c0-2.714-2.238-4.914-5-4.914z"}})])],1)}),[],!1,null,"7196cd67",null));e.a=f.exports},579:function(t,e,r){t.exports={}},794:function(t,e,r){"use strict";r(579)},817:function(t,e,r){"use strict";r.r(e);var n=r(24),c=r(6),o=(r(36),r(21),r(118),r(37),r(41),r(28),r(51),r(12),r(56),r(42),r(57),r(11)),l=r(359),d=r(478),f=r(548),v=r(342),h=Object(o.b)({props:{post:{type:Object,required:!0}},setup:function(t){return{route:Object(o.a)((function(){return Object(v.a)(t.post)}))}}}),m=r(87),x=Object(m.a)(h,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("NuxtLink",{staticClass:"mb-6 md:mb-0 text-base md:text-lg font-bold text-white leading-6 tracking-base",attrs:{to:t.route},domProps:{textContent:t._s(t.post.title)}})}),[],!1,null,null,null).exports,y=r(487),w=r(66);function O(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function k(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
1i%2?O(Object(source),!0).forEach((function(e){Object(n.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):O(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var j=Object(o.b)({components:{SearchResultItem:x,SearchButton:y.a},setup:function(t,e){var r=e.emit,n=Object(l.a)(),v=Object(d.a)(),h=v.search,m=v.results,x=Object(w.a)().sendScreenView,y=Object(o.l)(""),O=Object(o.l)(!1),j=Object(o.a)((function(){return"/search?q=".concat(y.value)})),_=function(){var t=Object(c.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(y.value){t.next=2;break}return t.abrupt("return");case 2:return O.value=!0,t.next=5,h(y.value);case 5:window._gaq.push(["_trackEvent","search",y.value]),O.value=!1;case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(o.t)((function(){return n.isVisible.value}),(function(t){t&&x("search"),Object(f.a)(t)}));var C=Object(o.a)((function(){return m.value.hits?m.value.hits.slice(0,4):[]}));return k(k({},n),{},{results:m,items:C,route:j,query:y,isLoading:O,handleSearch:_,handleLinkClick:function(){n.hide(),r("hide")}})}}),_=j,C=(r(794),Object(m.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"md:mr-6 md:ml-auto"},[t.$device.isMobile?t._e():r("button",{attrs:{type:"button","aria-label":"search"},on:{click:t.toggle}},[r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"}},[r("path",{attrs:{fill:"#FFF","fill-rule":"evenodd",stroke:"#FFF","stroke-width":".5",d:"M7.666 1c3.681 0 6.666 2.934 6.666 6.552a6.458 6.458 0 01-1.523 4.17L17 15.841 15.822 17l-4.228-4.154a6.713 6.713 0 01-3.928 1.258C3.984 14.104 1 11.171 1 7.552 1 3.934 3.984 1 7.666 1zm0 1.638c-2.761 0-5 2.2-5 4.914 0 2.714 2.239 4.914 5 4.914.978 0 1.91-.275 2.71-.783l.235-.16.511-.366.402-.479a4.836 4.836 0 001.134-2.86l.007-.266c0-2.714-2.238-4.914-5-4.914z"}})])]),t._v(" "),t.isVisible||t.$device.isMobile?r("div",{class:{"search fixed inset-0 z-50 flex flex-col items-center justify-center":!t.$device.isMobile}},[t.$device.isMobile?t._e():r("div",{staticClass:"container absolute top-0 text-right mt-3"},[r("button",{staticClass:"search__close",attrs:{type:"button","aria-label":"close"},on:{click:function(e){return e.preventDefault(),t.hide.apply(null,arguments)}}},[r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"16",height:"16",viewBox:"0 0 16 16"}},[r("defs",[r("path",{attrs:{id:"a",d:"M0 0h16v16H0z"}})]),t._v(" "),r("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[r("mask",{attrs:{id:"b",fill:"#fff"}},[r("use",{attrs:{"xlink:href":"#a"}})]),t._v(" "),r("path",{attrs:{stroke:"#FFF","stroke-width":"2",d:"M16 8.5H0",transform:"rotate(-45 8 8.5)"}}),t._v(" "),r("path",{attrs:{stroke:"#FFF","stroke-width":"2",d:"M16 8.5H0",transform:"rotate(45 8 8.5)"}})])])])]),t._v(" "),r("div",{class:{container:!t.$device.isMobile}},[r("form",{staticClass:"relative",on:{submit:function(e){return e.preventDefault(),t.handleSearch.apply(null,arguments)}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"search-input font-semibold tracking-tighter",attrs:{type:"text",placeholder:"Wpisz szukaną frazę..."},domProps:{value:t.query},on:{input:function(e){e.target.composing||(t.query=e.target.value)}}}),t._v(" "),r("SearchButton",{staticClass:"search__button",attrs:{loading:t.isLoading,disabled:!t.query}}),t._v(" "),t.results&&Array.isArray(t.results.hits)?r("div",{staticClass:"search-results pt-8 md:pt-12"},[r("strong",{staticClass:"text-grey-400 text-xs font-bold uppercase tracking-wider leading-normal"},[t._v("Artukuły ("+t._s(t.results.total)+")")]),t._v(" "),r("div",{staticClass:"search-results__grid pt-6 md:py-8"},t._l(t.items,(function(e){return r("SearchResultItem",{key:e.id,attrs:{post:e},nativeOn:{click:function(e){return t.handleLinkClick.apply(null,arguments)}}})})),1),t._v(" "),r("NuxtLink",{staticClass:"underline text-primary text-sm tacking-wide",attrs:{to:t.route},nativeOn:{click:function(e){return t.handleLinkClick.apply(null,arguments)}}},[t._v("\n            Pokaż wszystkie\n          ")])],1):t._e()],1)])]):t._e()])}),[],!1,null,"5de71545",null));e.default=C.exports}}]);

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.