PageSourceSearch

https://klimatanpassning.se/sitevision/system-resource/e030055c917…a11826de040a433286273/js/archive-plugins.js

js klimatanpassning.se collected 2026-10-02 05:50:52 UTC 9,184 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_sv_portlet=self.webpackChunk_sv_portlet||[]).push([[1727],{1681:(t,e,r)=>{var n=r(9165),a=r(8464),o=r(5452),i=function(t){return function(e,r,i){var c,s=n(e),l=o(s),d=a(i,l);if(t&&r!=r){for(;l>d;)if((c=s[d++])!=c)return!0}else for(;l>d;d++)if((t||d in s)&&s[d]===r)return t||d||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},2482:(t,e,r)=>{var n=r(162),a=r(9327),o=TypeError,i=Object.getOwnPropertyDescriptor,c=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(a(t)&&!i(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},5997:(t,e,r)=>{var n=r(1524),a=r(7711),o=r(9746),i=r(3536);t.exports=function(t,e,r){for(var c=a(e),s=i.f,l=o.f,d=0;d<c.length;d++){var u=c[d];n(t,u)||r&&n(r,u)||s(t,u,l(e,u))}}},6036:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},6177:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8972:(t,e,r)=>{var n=r(3083),a=r(9746).f,o=r(6785),i=r(7461),c=r(725),s=r(5997),l=r(1689);t.exports=function(t,e){var r,d,u,f,p,g=t.target,v=t.global,h=t.stat;if(r=v?n:h?n[g]||c(g,{}):(n[g]||{}).prototype)for(d in e){if(f=e[d],u=t.dontCallGetSet?(p=a(r,d))&&p.value:r[d],!l(v?d:g+(h?".":"#")+d,t.forced)&&void 0!==u){if(typeof f==typeof u)continue;s(f,u)}(t.sham||u&&u.sham)&&o(f,"sham",!0),i(r,d,f,t)}}},3435:(t,e,r)=>{var n=r(4335),a=r(7470),o=r(2083),i=Object,c=n("".split);t.exports=a((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?c(t,""):i(t)}:i},9327:(t,e,r)=>{var n=r(2083);t.exports=Array.isArray||function(t){return"Array"===n(t)}},1689:(t,e,r)=>{var n=r(7470),a=r(3957),o=/#|\.prototype\./,i=function(t,e){var r=s[c(t)];return r===d||r!==l&&(a(e)?n(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",d=i.POLYFILL="P";t.exports=i},5452:(t,e,r)=>{var n=r(8213);t.exports=function(t){return n(t.length)}},7881:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},9746:(t,e,r)=>{var n=r(162),a=r(697),o=r(1158),i=r(287),c=r(9165),s=r(8476),l=r(1524),d=r(4070),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=c(t),e=s(e),d)try{return u(t,e)}catch(t){}if(l(t,e))return i(!a(o.f,t,e),t[e])}},7456:(t,e,r)=>{var n=r(1082),a=r(6177).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},6429:(t,e)=>{e.f=Object.getOwnPropertySymbols},1082:(t,e,r)=>{var n=r(4335),a=r(1524),o=r(9165),i=r(1681).indexOf,c=r(4064),s=n([].push);t.exports=function(t,e){var r,n=o(t),l=0,d=[];for(r in n)!a(c,r)&&a(n,r)&&s(d,r);for(;e.length>l;)a(n,r=e[l++])&&(~i(d,r)||s(d,r));return d}},1158:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!r.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7711:(t,e,r)=>{var n=r(727),a=r(4335),o=r(7456),i=r(6429),c=r(5151),s=a([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(c(t)),r=i.f;return r?s(e,r(t)):e}},8464:(t,e,r)=>{var n=r(1715),a=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?a(r+e,0):o(r,e)}},9165:(t,e,r)=>{var n=r(3435),a=r(5860);t.exports=function(t){return n(a(t))}},1715:(t,e,r)=>{var n=r(7881);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8213:(t,e,r)=>{var n=r(1715),a=Math.min;t.exports=function(t){return t>0?a(n(t),9007199254740991):0}},356:(t,e,r)=>{var n=r(8972),a=r(2556),o=r(5452),i=r(2482),c=r(6036);n({target:"Array",proto:!0,arity:1,forced:r(7470)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=a(this),r=o(e),n=arguments.length;c(r+n);for(var s=0;s<n;s++)e[r]=arguments[s],r++;return i(e,r),r}})},992:(t,e,r)=>{var n=r(7809),a=r.n(n),o=r(6751),i=r.n(o),c=r(6237);a()(".sv-archive-portlet").on("click",".sv-create-article-entry",(function(){const t=a()(this),e=t.data("archive-id"),r=t.data("template-id"),n=t.parent(),i=a()("<div>").addClass("sv-loading-icon").text(o.i18n.getText("portlet.archive.archive","creatingArticle"));return n.empty().append(i),o.Ajax.doPost({url:(0,c.L9)({objectId:e,contextNodeId:e,modelHandler:"article"}),data:{template:r,portletType:"archive"},success:function(t){window.location.href=`/edit/${t.nodeId}`}}),!1})),a()(".sv-archive-portlet").length&&i().Events.trigger(i().Events.types.updateLikables),a()(".sv-archive-portlet").on("click","[data-fn-comment]",(t=>{const e=a()(t.currentTarget);return Promise.all([r.e(4489),r.e(6301),r.e(2527),r.e(1727)]).then(r.bind(r,1337)).then((({initComment:t})=>{t(e)})),!1}))},7787:(t,e,r)=>{r.r(e);r(992)},1337:(t,e,r)=>{r.r(e),r.d(e,{initComment:()=>u});var n=r(7809),a=r.n(n),o=r(6751),i=r.n(o),c=r(6237),s=r(5143);const l={triggers:{"@":{source:(0,c.xb)(i().PageContext.pageId,"userIdentitySearch",i().PageContext.pageId),searchKey:"term",allowWhiteSpace:!0,maxWhiteSpace:2,parse:t=>t.hits}},minLength:2,replacer:t=>`${t.trigger}{"value":"${t.name}","id":"${t.id}"}`},d=o.KeyUtil.KEY,u=t=>{const e=t.closest("[data-fn-commentlike-container]"),r=`#${t.attr("data-comment-container")}`,n=e.find("[data-fn-comments-input]");if(e.data("sv-fn-initialized")){const t=a()(r);return void(t.is(":hidden")?t.fadeIn("fast",(()=>{n.trigger("focus")})):t.fadeOut("fast"))}e.data("sv-fn-initialized","true");const i=e.find("[data-fn-comments-input-size]").attr("data-initial-size"),c=e.find("[data-fn-comments-submit]"),u=e.find("[data-fn-comments-form]"),f=a()("<img>").attr("src",s).css({"vertical-align":"middle",display:"none"});n.triggeredInput(l).elastic(),n.on("keydown",(function(t){if(o.KeyUtil.getKeyCodeFromEvent(t)===d.RETURN&&t.ctrlKey)return c.trigger("focus"),u.trigger("submit"),!1})),n.on("keyup",(function(t){const e=a()(t.currentTarget),r=e.val(),n=i-r.length,o=e.parent().find("[data-fn-comments-input-size]");n<0?o.addClass("sv-character-limit-exceeded"):o.removeClass("sv-character-limit-exceeded"),o.text(n),""!==e.val().trim()&&n>=0&&!this.activeConnection?c.removeClass("disabled").prop("disabled",!1):c.addClass("disabled").attr("disabled","disabled")})),u.on("submit",(function(r){let s;
1if(!r.isPropagationStopped()&&!r.isDefaultPrevented()){if(r.preventDefault(),this.activeConnection)return!1;const l=n.val().trim().length,d=n.triggeredInput("getRichContent");if(l>0&&l<=i){c.addClass("disabled").attr("disabled","disabled"),this.activeConnection=!0;const r=u.attr("action");let i="thank";return o.Ajax.doPost({url:r,data:{comment:d}}).then((()=>{const t=e.find("[data-fn-comment-count]"),r=parseInt(t.text(),10)+1;t.text(r)})).catch((()=>{i="error"})).always((()=>{f.hide(),clearTimeout(s);const e=`#${t.attr("data-comment-container")}`;a()(e).hide(),a()(`${e}_${i}`).show(),setTimeout((()=>{a()(`${e}_${i}`).fadeOut("fast")}),5e3),n.val(""),this.activeConnection=!1})),f.appendTo(n.parent()),s=setTimeout((()=>{f.show()}),400),!1}}return!1})),a()(r).fadeIn("fast",(()=>{n.trigger("focus")}))};r(444),r(6301),r(693)},6237:(t,e,r)=>{r.d(e,{CD:()=>g,L9:()=>u,NE:()=>f,U4:()=>p,oE:()=>v,px:()=>l,t4:()=>m,xb:()=>d});var n=r(6751),a=r.n(n),o=r(7809),i=r.n(o),c=r(1097),s=r.n(c);const l=function(t){var e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(window.location.href);return e?e[1]:null},d=function(t,e,r){var n="/modelobjectapi/1/"+a().PageContext.pageId+"/"+t+"/"+e;return r&&(n+="/"+r),n}
1,u=function(t){var e=t.modelHandler,r=t.objectId,n=t.operationObjectId,o=t.contextNodeId||a().PageContext.pageId;"string"==typeof t&&(e=t),r||(r=a().PageContext.pageId);var i="/edit-api/1/"+o+"/"+r+"/"+e;return n&&(i+="/"+n),i},f=function(t,e,r){return`/${a().PageContext.pageId}/${t}.${r?"json":"htm"}?state=${e}`},p=function(t,e){var r=l("identity"),n=l("group"),o=l("tag");return"/portletresource/"+a().PageContext.pageId+"/"+t+"?state="+e+(r?"&identity="+r:"")+(n?"&group="+n:"")+(o?"&tag="+o:"")},g=function(t,e){var r=i()(t);i().each(r,(function(){var t=i()(this),r=t.attr("id"),o=n.ObjectUtil.getObjectId(r);v(t,"/"+a().PageContext.pageId+"/"+o+".htm"+(e||""))}))},v=function(t,e,r){let n;n="string"==typeof t?i()(t):t,i().get(e,(function(e){n.fadeOut("fast",(function(){n.html(e),n.fadeIn(),"function"==typeof r&&r.call(this,t)}))}))};var h={};const m=function(t,e){var r,a=t.attr("id");if(a){if(a=a.replace(".","_"),!h[a+e]){if(0===(r=t.find("script.sv-tmpl-"+e)).length)return void n.Log.warn("portletUtil","Could not find template with name "+e+" for portlet "+a);h[a+e]=s().template(r.html())}return h[a+e]}n.Log.warn("portletUtil","Tried to get template from invalid element")};a().PortletUtil={getModelObjectUri:d,getEditApiUri:u,getPortletUri:f,getPortletResourceUri:p,reloadPortletsByType:g,doGetWithFade:v,doGet:function(t,e,r){i().get(e,(function(e){i()(t).html(e),"function"==typeof r&&r.call(this,t)}))},getTemplate:m,parseRequestParameters:l}}}]);
2//# sourceMappingURL=archive-plugins.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.