PageSourceSearch

https://leotron.com/wp-content/themes/leotron/assets/javascripts/chunks/svg-sprite.chunk.js

js leotron.com collected 2026-10-06 15:23:52 UTC 5,938 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkleotron=self.webpackChunkleotron||[]).push([[55],{2314:function(t,e,n){n.r(e),n.d(e,{default:function(){return p}});var i=n(3029),r=n(9530),o=n(388),s=n(3954),u=n(5501),c=n(3662);function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(a())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&(0,c.A)(r,n.prototype),r}(t,arguments,(0,s.A)(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,c.A)(n,t)},l(t)}n(3792),n(7495),n(5440),n(2953);function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}let h=function(t){function e(){var t,n,r,u;return(0,i.A)(this,e),n=this,r=e,r=(0,s.A)(r),(t=(0,o.A)(n,f()?Reflect.construct(r,u||[],(0,s.A)(n).constructor):r.apply(n,u))).defaults={prefix:"sn-icn-",class:"",viewBox:window.SN.SPRITE_VIEWBOX[t.icon]||window.SN.SPRITE_VIEWBOX._},t}return(0,u.A)(e,t),(0,r.A)(e,[{key:"init",value:function(){this.icon&&(this.getAttribute("class")||this.setAttribute("class",""),this.classList.add("sn_sprite"),this.classList.add(this.getIconClass(this.icon)),this.defaults.class&&this.classList.add(this.defaults.class),this.removeAttribute("alt"),this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.use=document.createElementNS("http://www.w3.org/2000/svg","use"),this.setIconAttributes(),this.svg.appendChild(this.use),this.appendChild(this.svg))}},{key:"getIconId",value:function(t){return"#".concat(this.defaults.prefix).concat(t)}},{key:"getIconClass",value:function(t){return"__".concat(t.replace("-","_"))}},{key:"getIcon",value:function(){return this.getAttribute("icon")}},{key:"needsSize",value:function(){return this.hasAttribute("sized")}},{key:"setIconAttributes",value:function(t){this.svg.setAttribute("viewBox",this.viewBox),this.getAttribute("preserveAspectRatio")&&this.svg.setAttribute("preserveAspectRatio",this.getAttribute("preserveAspectRatio"));const e=this.getAttribute("aria-label")||this.getAttribute("title");if(e?(this.svg.setAttribute("role","img"),this.svg.setAttribute("aria-label",e),this.svg.removeAttribute("aria-hidden")):(this.svg.setAttribute("aria-hidden","true"),this.svg.removeAttribute("role"),this.svg.removeAttribute("aria-label")),this.use.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",this.getIconId(null!=t?t:this.icon)),this.needsSize()){const[,,t,e]=this.viewBox.split(" ");this.svg.setAttribute("width",t),this.svg.setAttribute("height",e)}}},{key:"connectedCallback",value:function(){this.querySelector("svg")||(this.icon=this.getIcon(),this.viewBox=this.getAttribute("viewBox")||this.defaults.viewBox,this.alt=this.getAttribute("alt")||"",this.init())}},{key:"attributeChangedCallback",value:function(t,e,n){if(this.svg&&"icon"==t&&n){let t=this.icon;this.icon=n,this.classList.remove(this.getIconClass(t)),this.classList.add(this.getIconClass(this.icon)),this.setIconAttributes(this.icon)}}}],[{key:"observedAttributes",get:function(){return["icon"]}}])}(l(HTMLElement));var p=(0,r.A)(function t(){(0,i.A)(this,t),window.customElements.define("svg-sprite",h)})},3029:function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{A:function(){return i}})},9530:function(t,e,n){n.d(e,{A:function(){return s}});var i=n(2284);function r(t){var e=function(t,e){if("object"!=(0,i.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==(0,i.A)(e)?e:e+""}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},3954:function(t,e,n){function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}n.d(e,{A:function(){return i}})},5501:function(t,e,n){n.d(e,{A:function(){return r}});var i=n(3662);function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,i.A)(t,e)}},388:function(t,e,n){n.d(e,{A:function(){return r}});var i=n(2284);function r(t,e){if(e&&("object"==(0,i.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}},3662:function(t,e,n){function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}n.d(e,{A:function(){return i}})},2284:function(t,e,n){function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{A:function(){return i}})}}]);

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.