PageSourceSearch

https://www.siniat.pl/etex/js/assets/js/2435.8da23fa0960861eaf98f.mjs

js siniat.pl collected 2026-10-07 23:23:25 UTC 4,167 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunkwebpack=self.webpackChunkwebpack||[]).push([[2435],{82435:function(t,e,i){i.r(e),i.d(e,{Tooltip:function(){return p}});var s=i(68687),n=i(91759),a=i(41181),o=i(43322);class p extends s.oi{static get properties(){return{placement:{type:String,attribute:"placement"},appendTo:{type:String,attribute:"append-to"},trigger:{type:String,attribute:"trigger"},theme:{type:String,attribute:"theming"},maxWidth:{type:Number,attribute:"max-width"},offsetX:{type:Number,attribute:"offset-x"},offsetY:{type:Number,attribute:"offset-y"},webId:{type:String,attribute:"webid"},interactive:{type:Boolean,attribute:"interactive"},options:{type:Object,attribute:"options",reflect:!0},destroy:{type:Boolean,attribute:"destroy",reflect:!0},disable:{type:Boolean,attribute:"disable",reflect:!0},ZIndex:{type:Number,attribute:"z-index"},hideIcon:{type:Boolean,attribute:"hide-icon"},tippyInstance:{type:Object,attribute:!1},defaultOptions:{type:Object,attribute:!1},extraOptions:{type:Object,attribute:!1}}}constructor(){super()}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}createRenderRoot(){return this}render(){return s.dy`
2            <slot name="trigger" aria-expanded="false"></slot>
3            <slot name="content" aria-hidden="true"></slot>
4        `}firstUpdated(){super.firstUpdated(),this._setDefaultSettings(),this.tippyInstance||this._buildTippy()}updated(t){super.firstUpdated(t),t.forEach(((t,e)=>{const i=this[e];if(t!=i)switch(e){case"destroy":this._destroyInstance(i);break;case"disable":this._toggleInactive(i);break;default:this._updateOptions(e,i)}}))}_setDefaultSettings(){"parent"===this.appendTo?this.appendTo:document.querySelector(`#${this.appendTo}`)||document.body;this.defaultOptions={delay:[300,0],allowHTML:!0,animation:"scale",zIndex:this.ZIndex||100,offset:this.offsetX||this.offsetY?[this.offsetX??0,this.offsetY??0]:s.Ld,popperOptions:{strategy:"fixed",modifiers:{preventOverflow:{boundariesElement:"window"}}},content:()=>this.querySelector('[slot="content"]')?.innerHTML||""},"parent"===this.appendTo?this.defaultOptions.appendTo=this.appendTo:"this"===this.appendTo?this.defaultOptions.appendTo=()=>this:this.defaultOptions.appendTo=()=>document.querySelector(`#${this.appendTo}`)||document.body}_setCloseButton(){if((0,n.MG)(this.trigger)||-1==this.trigger.indexOf("click"))return;let t=this.tippyInstance.popper;if(!t||this.hideIcon)return;const e=`<button type="button" class="a-btn a-btn--icon tippy-close js-close" aria-label="Close tooltip"> \n            ${(0,o.QP)(a.aX.Close,"u-icon-micro")}\n        </button>`;t.firstChild.classList.add("has-close"),t.firstChild.insertAdjacentHTML("beforeend",e),t.querySelector(".js-close").addEventListener("keydown",(()=>{this.tippyInstance.hide()})),t.querySelector(".js-close").addEventListener("click",(()=>{this.tippyInstance.hide()}))}_setExtraOptions(){let t={};(0,n.MG)(this.placement)||(t.placement=this.placement),(0,n.MG)(this.trigger)||(t.trigger=this.trigger,-1!=this.trigger.indexOf("click")&&(t.interactive=!0)),(0,n.MG)(this.theme)||(t.theme=this.theme),this.maxWidth&&(t.maxWidth=this.maxWidth?this.maxWidth:"none"),this.interactive&&(t.interactive=!0),this.options&&(t={...t,...this.options}),this.extraOptions=t}_updateOptions(t,e){(this.tippyInstance||this.extraOptions)&&(e?this.extraOptions[t]="object"==typeof e?{...this.extraOptions[t],key:e}:e:delete this.extraOptions[t],this.tippyInstance.setProps(this.extraOptions))}_toggleInactive(t){this.tippyInstance&&(t&&this.tippyInstance.disable(),t||this.tippyInstance.state.isEnabled||this.tippyInstance.enable())}_destroyInstance(t){this.tippyInstance&&"true"==t&&this.tippyInstance.destroy()}async _buildTippy(){Promise.all([Promise.resolve().then(i.bind(i,71378)),i.e(9477).then(i.bind(i,79477)),i.e(3230).then(i.bind(i,93230))]).then((([t])=>{"light"==this.theme&&i.e(5613).then(i.bind(i,25613)),this.defaultOptions&&t.default.setDefaultProps(this.defaultOptions),this._setExtraOptions(),this.tippyInstance=t.default(this,this.extraOptions),this._toggleInactive(this.disable),this._setCloseButton()}))}}customElements.define("wc-tooltip",p)}}]);

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.