PageSourceSearch

https://nettbank.cultura.no/dist/js/4226.b91264b54fc94fa2ef22.js

js cultura.no collected 2026-10-02 03:40:31 UTC 3,909 bytes, 2 lines download raw bytes

1"use strict";(window.webpackChunksdc_neos=window.webpackChunksdc_neos||[]).push([[4226],{14226:(e,n,t)=>{t.r(n),t.d(n,{default:()=>w});var i=t(67294),r=t(88767),o=t(2344);function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=t(28968),c=t(14578),u=t(80449),s=t(57709),d=t(11054),g=t(69189),f=t(78977),v=t(86730),p=t(56996);function m(e,n,t,i,r,o,l){try{var a=e[o](l),c=a.value}catch(e){return void t(e)}a.done?n(c):Promise.resolve(c).then(i,r)}var y=t(35666),b=function(e){var n,t,b,h,w=e.image,_=e.ongoingDueDiligenceDefaultFlow,D=e.ongoingDueDiligenceUrl,O=e.ongoingDueDiligenceSkipped,k=e.flows,E=e.indicators,P=(0,c.Z)(),S=(b={refetchOnMount:"always"},h=(0,o.h_)(),(0,r.useQuery)(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.forEach(function(n){l(e,n,t[n])})}return e}({},function(e){var n={queryFn:function(){return function(e){return e.getOngoingDueDiligenceStatus()}(e)},queryKey:["ongoingDueDiligenceStatus"]};return n}(h),b))),j=S.data,x=S.isLoading,N=S.error,T=new URL(window.location.href).searchParams.get("flowType"),Z=null==j?void 0:j.statuses.find(function(e){return e.type===T}),C=null!==(n=k.find(function(e){return e.type===T}))&&void 0!==n?n:k.find(function(e){return e.type===_}),M=(0,s.f)(),L=(0,i.useMemo)(function(){var e,n,t=null!==(n=null==C?void 0:C.bodyText)&&void 0!==n?n:"",i=null==Z||null===(e=Z.indicators)||void 0===e?void 0:e.map(function(e){var n=e.indicator_country,t=e.indicator_type,i=M.countries.find(function(e){return e.value===n}),r=E.find(function(e){return e.value===t});return'<li aria-role="listitem"><strong>'.concat((0,f.Z)((null==r?void 0:r.label)||"",{country:(null==i?void 0:i.label)||""}),"</strong></li>")});return"<p>".concat(t,"</p>\n<ul>").concat(i?null==i?void 0:i.join("\n"):"","</ul>")},[null==C?void 0:C.bodyText,null==Z?void 0:Z.indicators,M.countries,E]);return N&&P.dismissable(N),i.createElement("div",{className:"ongoing-due-diligence"},i.createElement(g.Z,{shadow:!0,className:"ongoing-due-diligence__container"},i.createElement("div",{className:"ongoing-due-diligence__top"},w&&i.createElement("img",{loading:"lazy",className:"ongoing-due-diligence__image",src:w.url,alt:w.alt}),x?i.createElement(d.Z,{fillHeight:!0}):i.createElement("div",{className:"ongoing-due-diligence__content"},i.createElement("h2",{className:"ongoing-due-diligence__headline"},null==C?void 0:C.headerTitle),i.createElement("div",{dangerouslySetInnerHTML:{__html:L}}))),i.createElement("div",{className:"ongoing-due-diligence__bottom"},Z&&Z.remainingSkips>0&&i.createElement(a.Z,{type:"button",color:"white",fullWidth:!0,disabled:x,large:!0,onClick:(t=y.mark(function e(){return y.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,v.g)({url:p.vc.sitecore.endpoints.ongoingDueDiligenceSkipped,method:"POST",params:{flowType:T}});case 3:(0,u.uX)(O),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),P.dismissable(e.t0);case 9:case"end":return e.stop()}},e,null,[[0,6]])}),function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function l(e){m(o,i,r,l,a,"next",e)}function a(e){m(o,i,r,l,a,"throw",e)}l(void 0)})})},M.global.skip),i.createElement(a.Z,{type:"button",color:"default",fullWidth:!0,large:!0,disabled:x,onClick:function(){return(0,u.uX)(D)}},M.global.start))))};function h(){return h=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},h.apply(this,arguments)}const w=function(e){return i.createElement(b,h({},e.contextModel))}}}]);
2//# sourceMappingURL=4226.b91264b54fc94fa2ef22.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.