1(self.webpackChunkntfy=self.webpackChunkntfy||[]).push([[6985],{6985:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return v}});var r=n(9335),o=n(9780),i=n(4279),c=n.n(i),a=n(7370),u=n.n(a),s=n(3817),l=n.n(s);function f(t){try{return document.execCommand(t)}catch(t){return!1}}var d=t=>{const e=l()(t);return f("cut"),e};const p=(t,e)=>{const n=function(t){const e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";let r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top=`${r}px`,n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);const r=l()(n);return f("copy"),n.remove(),r};var y=(t,e={container:document.body})=>{let n="";return"string"==typeof t?n=p(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(t?.type)?n=p(t.value,e):(n=l()(t),f("copy")),n};function h(t,e){const n=`data-clipboard-${t}`;if(e.hasAttribute(n))return e.getAttribute(n)}class m extends(c()){constructor(t,e){super(),this.resolveOptions(e),this.listenClick(t)}resolveOptions(t={}){this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"==typeof t.container?t.container:document.body}listenClick(t){this.listener=u()(t,"click",(t=>this.onClick(t)))}onClick(t){const e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=((t={})=>{const{action:e="copy",container:n,target:r,text:o}=t;if("copy"!==e&&"cut"!==e)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!=typeof r||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===e&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===e&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?y(o,{container:n}):r?"cut"===e?d(r):y(r,{container:n}):void 0})({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection(){e&&e.focus(),window.getSelection().removeAllRanges()}})}defaultAction(t){return h("action",t)}defaultTarget(t){const e=h("target",t);if(e)return document.querySelector(e)}static copy(t,e={container:document.body}){return y(t,e)}static cut(t){return d(t)}static isSupported(t=["copy","cut"]){const e="string"==typeof t?[t]:t;let n=!!document.queryCommandSupported;return e.forEach((t=>{n=n&&!!document.queryCommandSupported(t)})),n}defaultText(t){return h("text",t)}destroy(){this.listener.destroy()}}var g=m;function v(t){var e=new g(".copy-btn");e.on("success",(function(t){(new o.Z).attach().then((function(){r.default.notification({message:"Kod zostaÅ skopiowany do schowka!",status:"primary",pos:"top-right",timeout:3e3})}))})),e.on("error",(function(t){console.error("Action:",t.action),console.error("Trigger:",t.trigger)}))}},2828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},9438:function(t,e,n){var r=n(2828);function o(t,e,n,r,o){var c=i.apply(this,arguments);return t.addEventListener(n,c,o),{destroy:function(){t.removeEventListener(n,c,o)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}t.exports=function(t,e,n,r,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,n,r,i)})))}}
vendor: 1,529 bytes, line 1
1,4879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},7370:function(t,e,n){var r=n(4879),o=n(9438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(r.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(r.string(t))return function(t,e,n){return o(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},3817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}
vendor: 806 bytes, line 1
1else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),o=document.createRange();o.selectNodeContents(t),r.removeAllRanges(),r.addRange(o),e=r.toString()}return e}},4279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function o(){r.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,c=r.length;i<c;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}}]);
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.