PageSourceSearch

https://instytutlema.pl/static/build/7263.94a1c964c17200b5f671.js

js instytutlema.pl collected 2026-10-02 13:04:02 UTC 5,080 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunksitebuilder_client=globalThis.webpackChunksitebuilder_client||[]).push([[7263],{130665:(t,e,a)=>{a.d(e,{A:()=>i});const i=(0,a(626953).A)(function(t,e,a){return t+(a?"-":"")+e.toLowerCase()})},236144:(t,e,a)=>{a.r(e),a.d(e,{CustomhtmlhiddenParams:()=>s});var i=a(610790);class s extends i.X{constructor(){super(...arguments),this.htmlCode="",this.cssCode="",this.parsedCssCode="",this.selectorProps={}}}},301551:(t,e,a)=>{a.r(e),a.d(e,{CustomhtmlParams:()=>p});var i=a(610790);class s extends i.X{}var r=a(184877),n=a(566401),d=a(130665),o=a(858706),m=a(236144),c=function(t,e,a,i){var s,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,a,i);else for(var d=t.length-1;d>=0;d--)(s=t[d])&&(n=(r<3?s(n):r>3?s(e,a,n):s(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n},l=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const h=/{{#id}}/g,g=/\w+(?=\.)/,u=/(?<=\.)\w+/;class p extends s{constructor(){super(...arguments),this.hiddenParams=new m.CustomhtmlhiddenParams,this.iframe=!1,this.lazyLoading=!0,this.jsCode="",this.integrationParams=[],this.customName="",this.externalScripts=[]}static getIntegrationParamErrors(t){var e;const a={};return null===(e=t.integrationParams)||void 0===e||e.forEach(t=>{p.isIntegrationParamValid(t)||(a[t.name]=t.errorMessage)}),a}static hasInvalidIntegrationParams(t){return!(0,n.A)(p.getIntegrationParamErrors(t))}static isIntegrationParamValid(t){if(!p.isIntegrationParamFilled(t))return!t.required;let e;try{e=new RegExp(t.validationRegexp)}catch(e){return t.value.toString().includes(t.validationRegexp)}return!!t.value.toString().match(e)}static isIntegrationParamFilled(t){return t.type===o.D.BOOLEAN?void 0!==t.value&&null!==t.value:!!t.value}static getJSCodeWithParams(t,e){if(!t.integrationParams)return t.jsCode;if(p.hasInvalidIntegrationParams(t))return"";return`(() => {${t.integrationParams.reduce((t,e)=>`${t}const ${e.name} = ${JSON.stringify(e)};\n`,"")}\n        const widgetElement = document.getElementById('${e}-${(0,d.A)(t.customName)}');\n        const widgetId = '${e}-${(0,d.A)(t.customName)}';\n        ${t.jsCode}})()`}static getHTMLCodeWithContainer(t,e){const a=(0,d.A)(t.customName),i=`id="${e}-${a}" class="${a} embed_code"`;if(p.hasInvalidIntegrationParams(t))return`<div ${i}></div>`;const s=t.integrationParams.map(t=>t.name).join("|"),r=new RegExp(`{{\\s*(${s})\\.\\w+\\s*}}`,"g"),n=t.hiddenParams.htmlCode.match(r);let o=s&&n?n.reduce((e,a)=>{const i=a.match(g)[0],s=a.match(u)[0];return e.replace(a,`${t.integrationParams.find(t=>t.name===i)[s]}`)},t.hiddenParams.htmlCode):t.hiddenParams.htmlCode;return o=o.replace(h,`${e}-${a}`),`<div ${i}>${o}</div>`}static parseScripts(t,e){if(p.hasInvalidIntegrationParams(t))return"";let a="";return(0,n.A)(t.jsCode)||(a=`<script type="text/javascript">${p.getJSCodeWithParams(t,e)}<\/script>`),t.externalScripts.forEach(t=>a+=`\n<script type="text/javascript" src="${t}"><\/script>`),a}}c([(0,r.Q$)(1),l("design:type",String)],p.prototype,"customName",void 0)},457263:(t,e,a)=>{a.r(e),a.d(e,{default:()=>o});var i=a(301551),s=a(906561),r=a(566401),n=a(130665),d=a(105656);a(775808);class o extends d.w{checkWidgetParams(){this.widgetParams=Object.assign(Object.assign({},this.defaultWidgetParams),this.widgetParams)}constructor(t,e,a){super(t,e,a),this.defaultWidgetParams=new i.CustomhtmlParams}init(){this.importCodeToTheComponent()}onSettingsChange(){this.checkWidgetParams()}importCodeToTheComponent(){this.widgetParams.iframe||(this.addStyles(),this.unhideWidget(),i.CustomhtmlParams.hasInvalidIntegrationParams(this.widgetParams)||(this.addJsScript(),this.widgetParams.externalScripts.forEach(t=>this.addJsScript(t))))}unhideWidget(){var t,e;bowweConfig.viewMode===s.Q.PREVIEW&&(null===(e=null===(t=this.$widgetElement)||void 0===t?void 0:t[0])||void 0===e||e.classList.add("visible"))}getStyles(){var t;return`<style type="text/css" id="${(0,n.A)(this.widgetParams.customName)}">${null===(t=this.widgetParams.hiddenParams)||void 0===t?void 0:t.parsedCssCode}</style>`}addStyles(){bowweConfig.viewMode!==s.Q.VIEW&&document.head.insertAdjacentHTML("beforeend",this.get
1Styles())}addJsScript(t){const e=document.createElement("script");if(e.type="text/javascript",(0,r.A)(t)?e.innerHTML=i.CustomhtmlParams.getJSCodeWithParams(this.widgetParams,this.widgetId):e.src=t,this.widgetParams.iframe)this.$widgetElement.find(`#${this.widgetId}Iframe`).contents().find("body").append(e);else{const t=this.$widgetElement.find(".embed_placeholder");t.length?t.append(e):this.$widgetElement.append(e)}}}},858706:(t,e,a)=>{a.d(e,{D:()=>s});var i=a(624537);class s extends i.l{static getClassName(){return"EnumIntegrationParamType"}}s.STRING="string",s.NUMBER="number",s.ENUM="enum",s.BOOLEAN="boolean",s.URL="url",s.EMAIL="email",s.TEXTAREA="textarea",s.IMAGE="image"}}]);
2//# sourceMappingURL=https://bowwe.preprod/static/build/7263.94a1c964c17200b5f671.js.map

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.