PageSourceSearch

https://ntfy.cz/wp-content/themes/ntfy/dist/9712-1491d791d4c302bf6569.js

js ntfy.cz collected 2026-10-06 13:23:41 UTC 8,496 bytes, 2 lines download raw bytes

1/*! For license information please see 9712-1491d791d4c302bf6569.js.LICENSE.txt */
2(self.webpackChunkntfy=self.webpackChunkntfy||[]).push([[9712],{342:function(e,t,n){"use strict";n.r(t);var r=n(9669),a=n.n(r),i=n(129),s=n.n(i),o=n(2315),l=n.n(o),u=n(9335);t.default=function(e){var t=e.querySelector("textarea"),n=e.querySelector("form");t.dataset.placeholder=t.value,t.addEventListener("focusin",(function(){t.classList.contains("dirt")||(t.value="")})),t.addEventListener("focusout",(function(){""!=t.value?t.classList.add("dirt"):(t.classList.remove("dirt"),t.value=t.dataset.placeholder)}));var r=l()({element:document.querySelector("#rater"),max:5,starSize:48,rateCallback:function(t,n){this.setRating(t),e.querySelector('[name="rate"]').value=t,n()}});n.addEventListener("submit",(function(t){t.preventDefault();var n={action:"ntfy_add_rate",rate:e.querySelector('[name="rate"]').value,content:e.querySelector('[name="content"]').classList.contains("dirt")?e.querySelector('[name="content"]').value:null};a().post("/wp-admin/admin-ajax.php",s().stringify(n)).then((function(t){var n=document.getElementById("modal-eco-opinions");t.data.success?(n.querySelector("h4").innerText="Opinia dodana",n.querySelector("p").innerText=t.data.data,e.querySelector('[name="content"]').value=e.querySelector('[name="content"]').dataset.placeholder,e.querySelector('[name="content"]').classList.remove("dirt"),e.querySelector('[name="rate"]').value="",r.clear()):(n.querySelector("h4").innerText="Wystąpił błąd",n.querySelector("p").innerText=t.data.data.join("\n")),u.default.modal(n).show()}))}))}},2315:function(e){e.exports=function e(t,n,r){function a(s,o){if(!n[s]){if(!t[s]){if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return a(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i=void 0,s=0;s<r.length;s++)a(r[s]);return a}({1:[function(e,t,n){"use strict";e("./style.css"),t.exports=function(e){var t=!0;if(void 0===e.element||null===e.element)throw new Error("element required");if(void 0!==e.showToolTip&&(t=!!e.showToolTip),void 0!==e.step&&(e.step<=0||e.step>1))throw new Error("step must be a number between 0 and 1");var n,r=e.element,a=e.reverse,i=e.max||5,s=e.starSize||16,o=e.step||1,l=e.onHover,u=e.onLeave,c=null;r.classList.add("star-rating");var d=document.createElement("div");d.classList.add("star-value"),a&&d.classList.add("rtl"),d.style.backgroundSize=s+"px",r.appendChild(d),r.style.width=s*i+"px",r.style.height=s+"px",r.style.backgroundSize=s+"px";var v,f,g,m=e.rateCallback,p=!!e.readOnly,y=!1,h=e.isBusyText;if(v=void 0!==e.disableText?e.disableText:"{rating}/{maxRating}",g=void 0!==e.ratingText?e.ratingText:"{rating}/{maxRating}",e.rating)E(e.rating);else{var b=r.dataset.rating;b&&E(+b)}function w(e){x(e,!1)}function x(e,n){if(!0!==p&&!0!==y){var s,u=r.offsetWidth,d=r.getBoundingClientRect();if((s=a?(u-(n?e.changedTouches[0].pageX-d.left:e.pageX-window.scrollX-d.left))/(u/100):(n?e.changedTouches[0].pageX-d.left:e.offsetX)/u*100)<101){if(1===o)f=Math.ceil(s/100*i);else for(var v=s/100*i,m=0;;m+=o)if(m>=v){f=m;break}if(f>i&&(f=i),r.querySelector(".star-value").style.width=f/i*100+"%",t){var h=g.replace("{rating}",f);h=h.replace("{maxRating}",i),r.setAttribute("title",h)}"function"==typeof l&&l(f,c)}}}function L(e){c?(r.querySelector(".star-value").style.width=c/i*100+"%",r.setAttribute("data-rating",c)):(r.querySelector(".star-value").style.width="0%",r.removeAttribute("data-rating")),"function"==typeof u&&u(f,c)}function I(e){!0!==p&&!0!==y&&void 0!==m&&(y=!0,n=f,void 0===h?r.removeAttribute("title"):r.setAttribute("title",h),r.classList.add("is-busy"),m.call(this,n,(function(){!1===p&&r.removeAttribute("title"),y=!1,r.classList.remove("is-busy")})))}function A(){if(p=!0,r.classList.add("disabled"),t&&v){var e=v.replace("{rating}",c||0);e=e.replace("{maxRating}",i),r.setAttribute("title",e)}else r.removeAttribute("title")}function E(e){if(void 0===e)throw new Error("Value not set.");if(null===e)throw new Error("Value cannot be null.");if("number"!=typeof e)throw new Error("Value must be a number.");if(e<0||e>i)throw new Error("Value too high. Please set a rating of "+i+" or below.");c=e,r.querySelector(".star-value").style.width=e/i*100+"%",r.setAttribute("data-rating",e)}c||(r.querySelector(".star-value").style.width="0px"),p&&A(),r.addEventListener("mousemove",w),r.addEventListener("mouseleave",L);var M={setRating:E,getRating:function(){return c},disable:A,enable:function(){p=!1,r.removeAttribute("title"),r.classList.remove("disabled")},clear:function(){c=null,r.querySelector(".star-value").style.width="0px",r.removeAttribute("title")},dispose:function(){r.removeEventListener("mousemove",w),r.removeEventListener("mouseleave",L),r.removeEventListener("click",I),r.removeEventListener("touchmove",S,!1),r.removeEventListener("touchstart",N,!1),r.removeEventListener("touchend",T,!1),r.removeEventListener("touchcancel",z,!1)}
2,get element(){return r}};function S(e){e.preventDefault(),x(e,!0)}function N(e){e.preventDefault(),x(e,!0)}function T(e){e.preventDefault(),x(e,!0),I.call(M)}function z(e){e.preventDefault(),L()}return r.addEventListener("click",I.bind(M)),r.addEventListener("touchmove",S,!1),r.addEventListener("touchstart",N,!1),r.addEventListener("touchend",T,!1),r.addEventListener("touchcancel",z,!1),M}},{"./style.css":2}],2:[function(e,t,n){var r=".star-rating {\n  width: 0;\n  position: relative;\n  display: inline-block;\n  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDguOSIgaGVpZ2h0PSIxMDMuNiIgdmlld0JveD0iMCAwIDEwOC45IDEwMy42Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2UzZTZlNjt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPnN0YXJfMDwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiIGRhdGEtbmFtZT0iTGF5ZXIgMiI+PGcgaWQ9IkxheWVyXzEtMiIgZGF0YS1uYW1lPSJMYXllciAxIj48cG9seWdvbiBjbGFzcz0iY2xzLTEiIHBvaW50cz0iMTA4LjkgMzkuNiA3MS4zIDM0LjEgNTQuNCAwIDM3LjYgMzQuMSAwIDM5LjYgMjcuMiA2Ni4xIDIwLjggMTAzLjYgNTQuNCA4NS45IDg4LjEgMTAzLjYgODEuNyA2Ni4xIDEwOC45IDM5LjYiLz48L2c+PC9nPjwvc3ZnPg0K);\n  background-position: 0 0;\n  background-repeat: repeat-x;\n  cursor: pointer;\n}\n.star-rating .star-value {\n  position: absolute;\n  height: 100%;\n  width: 100%;\n  background: url('data:image/svg+xml;base64,PHN2Zw0KCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwOC45IiBoZWlnaHQ9IjEwMy42IiB2aWV3Qm94PSIwIDAgMTA4LjkgMTAzLjYiPg0KCTxkZWZzPg0KCQk8c3R5bGU+LmNscy0xe2ZpbGw6I2YxYzk0Nzt9PC9zdHlsZT4NCgk8L2RlZnM+DQoJPHRpdGxlPnN0YXIxPC90aXRsZT4NCgk8ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj4NCgkJPGcgaWQ9IkxheWVyXzEtMiIgZGF0YS1uYW1lPSJMYXllciAxIj4NCgkJCTxwb2x5Z29uIGNsYXNzPSJjbHMtMSIgcG9pbnRzPSI1NC40IDAgNzEuMyAzNC4xIDEwOC45IDM5LjYgODEuNyA2Ni4xIDg4LjEgMTAzLjYgNTQuNCA4NS45IDIwLjggMTAzLjYgMjcuMiA2Ni4xIDAgMzkuNiAzNy42IDM0LjEgNTQuNCAwIi8+DQoJCTwvZz4NCgk8L2c+DQo8L3N2Zz4NCg==');\n  background-repeat: repeat-x;\n}\n.star-rating.disabled {\n  cursor: default;\n}\n.star-rating.is-busy {\n  cursor: wait;\n}\n.star-rating .star-value.rtl {\n  -moz-transform: scaleX(-1);\n  -o-transform: scaleX(-1);\n  -webkit-transform: scaleX(-1);\n  transform: scaleX(-1);\n  filter: FlipH;\n  -ms-filter: \"FlipH\";\n  right: 0;\n  left: auto;\n}\n";e("browserify-css").createStyle(r,{href:"lib\\style.css"},{insertAt:"bottom"}),t.exports=r},{"browserify-css":3}],3:[function(e,t,n){"use strict";var r=[],a=function(e,t){var n=document.head||document.getElementsByTagName("head")[0],a=r[r.length-1];if((t=t||{}).insertAt=t.insertAt||"bottom","top"===t.insertAt)a?a.nextSibling?n.insertBefore(e,a.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),r.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}};t.exports={createLink:function(e,t){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("link");for(var a in r.href=e,r.rel="stylesheet",t)if(t.hasOwnProperty(a)){var i=t[a];r.setAttribute("data-"+a,i)}n.appendChild(r)},createStyle:function(e,t,n){n=n||{};var r=document.createElement("style");for(var i in r.type="text/css",t)if(t.hasOwnProperty(i)){var s=t[i];r.setAttribute("data-"+i,s)}r.sheet?(r.innerHTML=e,r.sheet.cssText=e,a(r,{insertAt:n.insertAt})):r.styleSheet?(a(r,{insertAt:n.insertAt}),r.styleSheet.cssText=e):(r.appendChild(document.createTextNode(e)),a(r,{insertAt:n.insertAt}))}}},{}]},{},[1])(1)},4654:function(){}}]);

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.