PageSourceSearch

https://skat.dk/_next/static/chunks/3396.b33fdce6a3861dff.js

js skat.dk collected 2026-10-01 08:46:50 UTC 17,860 bytes, 14 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3396],{46702:function(e,n){var i,t,o;console.info(`
2IFRAME-RESIZER
3
4Iframe-Resizer 5 is now available via the following two packages:
5
6 * @iframe-resizer/parent
7 * @iframe-resizer/child
8
9Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery.
10
11Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.
12
13Please see https://iframe-resizer.com/upgrade for more details.
14`),function(r){if("undefined"!=typeof window){var a,s,c=0,d=!1,u=!1,l=7,f="[iFrameSizer]",m=f.length,g=null,h=window.requestAnimationFrame,p=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),w={},b=null,y=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){M("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),v={};void 0!==window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each(function(n,i){L(i,e)}).end()}):R("","Unable to bind to jQuery, it is not fully loaded.")),t=[],void 0!==(o="function"==typeof(i=U)?i.apply(n,t):i)&&(e.exports=o),window.iFrameResize=window.iFrameResize||U()}function z(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function I(e,n,i){e.addEventListener(n,i,!1)}function x(e,n,i){e.removeEventListener(n,i,!1)}function F(e){return w[e]?w[e].log:d}function k(e,n){O("log",e,n,F(e))}function R(e,n){O("info",e,n,F(e))}function M(e,n){O("warn",e,n,!0)}function O(e,n,i,t){if(!0===t&&"object"==typeof window.console){var o;console[e](f+"["+(o="Host page: "+n,window.top!==window.self&&(o=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+n:"Nested host page: "+n),o)+"]",i)}}function T(e){function n(){i("Height"),i("Width"),H(function(){S(T),N(C),E(C,"onResized",T)},T,"init")}function i(e){var n=Number(w[C]["max"+e]),i=Number(w[C]["min"+e]),t=e.toLowerCase(),o=Number(T[t]);k(C,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,k(C,"Set "+t+" to min value")),o>n&&(o=n,k(C,"Set "+t+" to max value")),T[t]=""+o}function t(e){return O.slice(O.indexOf(":")+l+e)}function o(e,n){var i;i=function(){var i,t;_("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(t=T.iframe.getBoundingClientRect()).height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-i.top,10),offsetLeft:parseInt(t.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},v[n]||(v[n]=setTimeout(function(){v[n]=null,i()},32))}function r(e){var n=e.getBoundingClientRect();return P(C),{x:Math.floor(Number(n.left)+Number(g.x)),y:Math.floor(Number(n.top)+Number(g.y))}}function a(e){var n=e?r(T.iframe):{x:0,y:0},i={x:Number(T.width)+n.x,y:Number(T.height)+n.y};k(C,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(g=i,s(),k(C,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):M(C,"Unable to scroll to requested position, window.parentIFrame not found")}function s(){!1===E(C,"onScroll",g)?g=null:N(C)}function c(e){var n,i={};if(0===Number(T.width)&&0===Number(T.height)){var o=t(9).split(":");i={x:o[1],y:o[0]}}else i={x:T.width,y:T.height};n={iframe:T.iframe,screenX:Number(i.x),screenY:Number(i.y),type:T.type},E(C,e,n)}
14var d,u,h,p,b,y,z,F,O=e.data,T={},C=null;"[iFrameResizerChild]Ready"===O?!function(){for(var e in w)_("iFrame requested init",A(e),w[e].iframe,e)}():f===(""+O).slice(0,m)&&O.slice(m).split(":")[0]in w?(u=(d=O.slice(m).split(":"))[1]?parseInt(d[1],10):0,p=getComputedStyle(h=w[d[0]]&&w[d[0]].iframe),w[C=(T={iframe:h,id:d[0],height:u+("border-box"!==p.boxSizing?0:(p.paddingTop?parseInt(p.paddingTop,10):0)+(p.paddingBottom?parseInt(p.paddingBottom,10):0))+("border-box"!==p.boxSizing?0:(p.borderTopWidth?parseInt(p.borderTopWidth,10):0)+(p.borderBottomWidth?parseInt(p.borderBottomWidth,10):0)),width:d[2],type:d[3]}).id]&&(w[C].loaded=!0),(b=T.type in{true:1,false:1,undefined:1})&&k(C,"Ignoring init message from meta parent page"),!b&&(z=!0,w[y=C]||(z=!1,M(T.type+" No settings for "+y+". Message was: "+O)),z)&&(k(C,"Received: "+O),F=!0,null===T.iframe&&(M(C,"IFrame ("+T.id+") not found"),F=!1),F&&function(){var n,i=e.origin,t=w[C]&&w[C].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(k(C,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(n=w[C]&&w[C].remoteHost,k(C,"Checking connection is from: "+n),i===n)))throw Error("Unexpected message received from: "+i+" for "+T.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){var e,i,d,u,l,f,m,h,p;switch(w[C]&&w[C].firstRun&&w[C]&&(w[C].firstRun=!1),T.type){case"close":W(T.iframe);break;case"message":e=t(6),k(C,"onMessage passed: {iframe: "+T.iframe.id+", message: "+e+"}"),u="onMessage",l={iframe:T.iframe,message:JSON.parse(e)},E(C,u,l),k(C,"--");break;case"mouseenter":c("onMouseEnter");break;case"mouseleave":c("onMouseLeave");break;case"autoResize":w[C].autoResize=JSON.parse(t(9));break;case"scrollTo":a(!1);break;case"scrollToOffset":a(!0);break;case"pageInfo":o(w[C]&&w[C].iframe,C),function(){function e(e,t){function r(){w[i]?o(w[i].iframe,i):n()}["scroll","resize"].forEach(function(n){k(i,e+n+" listener for sendPageInfo"),t(window,n,r)})}function n(){e("Remove ",x)}var i=C;e("Add ",I),w[i]&&(w[i].stopPageInfo=n)}();break;case"pageInfoStop":w[C]&&w[C].stopPageInfo&&(w[C].stopPageInfo(),delete w[C].stopPageInfo);break;case"inPageLink":h=decodeURIComponent(m=t(9).split("#")[1]||""),(p=document.getElementById(h)||document.getElementsByName(h)[0])?(f=r(p),k(C,"Moving to in page link (#"+m+") at x: "+f.x+" y: "+f.y),g={x:f.x,y:f.y},s(),k(C,"--")):window.top===window.self?k(C,"In page link #"+m+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(m):k(C,"In page link #"+m+" not found and window.parentIFrame not found");break;case"reset":j(T);break;case"init":n(),i="onInit",d=T.iframe,E(C,i,d);break;default:0===Number(T.width)&&0===Number(T.height)?M("Unsupported message received ("+T.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}}())):R(C,"Ignored: "+O)}function E(e,n,i){var t=null,o=null;if(w[e]){if("function"==typeof(t=w[e][n]))o=t(i);else throw TypeError(n+" on iFrame["+e+"] is not a function")}return o}function C(e){var n=e.id;delete w[n]}function W(e){var n=e.id;if(!1===E(n,"onClose",n)){k(n,"Close iframe cancelled by onClose event");return}k(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){M(e)}E(n,"onClosed",n),k(n,"--"),C(e),s&&(s.disconnect(),s=null)}function P(e){null===g&&k(e,"Get page position: "+(g={x:void 0===window.pageXOffset?document.documentElement.scrollLeft:window.pageXOffset,y:r===window.pageYOffset?document.documentElement.scrollTop:window.pageYOffset}).x+","+g.y)}function N(e){null!==g&&(window.scrollTo(g.x,g.y),k(e,"Set page position: "+g.x+","+g.y),g=null)}function j(e){k(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),P(e.id),H(function(){S(e),_("reset","reset",e.iframe,e.id)},e,"reset")}function S(e){function n(n){(function(n){if(!e.id){k("undefined","messageData id not set");return}e.iframe.style[n]=e[n]+"px",k(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")})(n),u||"0"!==e[n]||(u=!0,k(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(w).forEac
14h(function(e){!function(e){function n(n){return"0px"===(w[e]&&w[e].iframe.style[n])}w[e]&&null!==w[e].iframe.offsetParent&&(n("height")||n("width"))&&_("Visibility change","resize",w[e].iframe,e)}(e)})}var n,i=z();i&&(n=document.querySelector("body"),new i(function(n){k("window","Mutation observed: "+n[0].target+" "+n[0].type),B(e,16)}).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}var i=e.iframe.id;w[i]&&(w[i].sizeHeight&&n("height"),w[i].sizeWidth&&n("width"))}function H(e,n,i){i!==n.type&&h&&!window.jasmine?(k(n.id,"Requesting animation frame"),h(e)):e()}function _(e,n,i,t,o){var r=!1;w[t=t||i.id]&&(function(){if(i&&"contentWindow"in i&&null!==i.contentWindow){var o;o=w[t]&&w[t].targetOrigin,k(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+o),i.contentWindow.postMessage(f+n,o)}else M(t,"["+e+"] IFrame("+t+") not found")}(),o&&w[t]&&w[t].warningTimeout&&(w[t].msgTimeout=setTimeout(function(){!w[t]||w[t].loaded||r||(r=!0,M(t,"IFrame has not responded within "+w[t].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},w[t].warningTimeout)))}function A(e){return e+":"+w[e].bodyMarginV1+":"+w[e].sizeWidth+":"+w[e].log+":"+w[e].interval+":"+w[e].enablePublicMethods+":"+w[e].autoResize+":"+w[e].bodyMargin+":"+w[e].heightCalculationMethod+":"+w[e].bodyBackground+":"+w[e].bodyPadding+":"+w[e].tolerance+":"+w[e].inPageLinks+":"+w[e].resizeFrom+":"+w[e].widthCalculationMethod+":"+w[e].mouseEvents}function L(e,n){function i(e){var n=e.split("Callback");if(2===n.length){var i="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[i]=this[e],delete this[e],M(a,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var t,o,a=function(i){if("string"!=typeof i)throw TypeError("Invaild id for iFrame. Expected String");if(""===i){var t;e.id=(t=n&&n.id||y.id+c++,null!==document.getElementById(t)&&(t+=c++),i=t),d=(n||{}).log,k(i,"Added missing iframe ID: "+i+" ("+e.src+")")}return i}(e.id);a in w&&"iFrameResizer"in e?M(a,"Ignored iFrame, already setup."):(function(n){if(n=n||{},w[a]=Object.create(null),w[a].iframe=e,w[a].firstRun=!0,w[a].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw TypeError("Options is not an object")}(n),Object.keys(n).forEach(i,n),function(e){for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&(w[a][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:y[n])}(n),w[a]){var t;w[a].targetOrigin=!0===w[a].checkOrigin?""===(t=w[a].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*"}}(n),function(){switch(k(a,"IFrame scrolling "+(w[a]&&w[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(w[a]&&w[a].scrolling)?"hidden":"auto",w[a]&&w[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=w[a]?w[a].scrolling:"no"}}(),function(){function n(n){var i=w[a][n];1/0!==i&&0!==i&&(e.style[n]="number"==typeof i?i+"px":i,k(a,"Set "+n+" = "+e.style[n]))}function i(e){if(w[a]["min"+e]>w[a]["max"+e])throw Error("Value for min"+e+" can not be greater than max"+e)}i("Height"),i("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),("number"==typeof(w[a]&&w[a].bodyMargin)||"0"===(w[a]&&w[a].bodyMargin))&&(w[a].bodyMarginV1=w[a].bodyMargin,w[a].bodyMargin=""+w[a].bodyMargin+"px"),t=A(a),(o=z())&&(s=function(n){if(!e.parentNode)return null;var i=new n(function(n){n.forEach(function(n){Array.prototype.slice.call(n.removedNodes).forEach(function(n){n===e&&W(e)})})});return i.observe(e.parentNode,{childList:!0}),i}(o)),I(e,"load",function(){var n,i;_("iFrame.onload",t,e,r,!0),n=w[a]&&w[a].firstRun,i=w[a]&&w[a].heightCalculationMethod in p,!n&&i&&j({iframe:e,height:0,width:0,type:"init"})}),_("init",t,e,r,!0),w[a]&&(w[a].iframe.iFrameResizer={close:W.bind(null,w[a].iframe),removeListeners:C.bind(null,w[a].iframe),resize:_.bind(null,"Window resize","resize",w[a].iframe),moveToAnchor:function(e){_("Move to anchor","moveToAnchor:"+e,w[a].iframe,a)},sendMessage:function(e){_("Send Message","message:"+(e=JSON.stringify(e)),w[a].iframe,a)}}))}function B(e,n){null===b&&(b=setTimeout(function(){b=null,e()},n))}
14function q(){"hidden"!==document.visibilityState&&(k("document","Trigger event: Visibility change"),B(function(){V("Tab Visible","resize")},16))}function V(e,n){Object.keys(w).forEach(function(i){w[i]&&"parent"===w[i].resizeFrom&&w[i].autoResize&&!w[i].firstRun&&_(e,n,w[i].iframe,i)})}function U(){var e;function n(n,i){i&&(function(){if(i.tagName){if("IFRAME"!==i.tagName.toUpperCase())throw TypeError("Expected <IFRAME> tag, found <"+i.tagName+">")}else throw TypeError("Object is not a valid DOM element")}(),L(i,n),e.push(i))}return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!h;e+=1)h=window[n[e]+"RequestAnimationFrame"];h?h=h.bind(window):k("setup","RequestAnimationFrame not supported")}(),I(window,"message",T),I(window,"resize",function(){var e;k("window","Trigger event: "+(e="resize")),B(function(){V("Window "+e,"resize")},16)}),I(document,"visibilitychange",q),I(document,"-webkit-visibilitychange",q),function(i,t){switch(e=[],i&&i.enablePublicMethods&&M("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof t){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(t||"iframe"),n.bind(r,i));break;case"object":n(i,t);break;default:throw TypeError("Unexpected data type ("+typeof t+")")}return e}}}()},63396:function(e,n,i){"use strict";i.r(n),i.d(n,{IFrameFeature:function(){return z}});var t=i(85893),o=i(94184),r=i.n(o),a=i(75237),s=i(85025),c=i.n(s),d=i(46702),u=i.n(d),l=i(45697),f=i.n(l),m=i(67294),g=i(42473),h=i.n(g);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}function w(e,n){if(null==e)return{};var i={};for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if(n.indexOf(t)>=0)continue;i[t]=e[t]}return i}var b=["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onResized"],y=["title","forwardRef"],v=function(e){var n=e.title,i=e.forwardRef,t=w(e,y),o=(t.autoResize,t.bodyBackground,t.bodyMargin,t.bodyPadding,t.checkOrigin,t.inPageLinks,t.heightCalculationMethod,t.interval,t.log,t.maxHeight,t.maxWidth,t.minHeight,t.minWidth,t.resizeFrom,t.scrolling,t.sizeHeight,t.sizeWidth,t.warningTimeout,t.tolerance,t.widthCalculationMethod,t.onClosed,t.onInit,t.onMessage,t.onResized,w(t,b)),r=(0,m.useRef)(null),a=function(){var e;return h()(!(null!=r&&r.current),"[iframeSizerReact]["+(null==r||null==(e=r.current)?void 0:e.id)+"] Close event ignored, to remove the iframe update your React component"),!(null!=r&&r.current)};return(0,m.useEffect)(function(){var e=r.current;return u()(p({},t,{onClose:a}),e),function(){var n;return null==e||null==(n=e.iFrameResizer)?void 0:n.removeListeners()}},[]),(0,m.useImperativeHandle)(i,function(){return{getIframeElement:function(){return r.current},resize:function(){return r.current.iFrameResizer.resize()},moveToAnchor:function(e){return r.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,n){r.current.iFrameResizer.sendMessage(e,n)}}}),m.createElement("iframe",p({title:void 0===n?"iframe":n},o,{ref:r}))};v.propTypes={title:f().string};let z=e=>{var n,i;let{content:o,settings:s}=e,{url:d}=null!==(n=null==o?void 0:o.properties)&&void 0!==n?n:{},{removePadding:u}=null!==(i=null==s?void 0:s.properties)&&void 0!==i?i:{};return d?(0,t.jsx)(a.E,{...s,children:(0,t.jsx)(v,{className:r()(c().IFrame,{[c().IFrame___removePadding]:u}),src:d,style:{width:"1px",minWidth:"100%"}})}):(0,t.jsx)(t.Fragment,{})}},85025:function(e){e.exports={IFrame:"IFrame_IFrame__oee_c",IFrame___removePadding:"IFrame_IFrame___removePadding__CusSz"}},92703:function(e,n,i){"use strict";var t=i(50414);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,n,i,o,r,a){if(a!==t){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
14:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:o};return i.PropTypes=i,i}},45697:function(e,n,i){e.exports=i(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},42473:function(e){"use strict";e.exports=function(){}}}]);

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.