PageSourceSearch

https://www.spleis.no/public/giveaway-GiveawayBanner.js?v=cf771e0b4ad89849edcd

js spleis.no collected 2026-09-24 09:43:02 UTC 4,065 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1144],{51264:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});var r=n(74848),l=n(96540),a=c(n(79923)),o=c(n(43179)),i=c(n(53419)),u=n(94892),s=c(n(91234)),d=n(20777);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){var e=(0,u.useProject)().profile.giveaway,t=e.introText,n=e.logoUrl,c=e.logoAlt,f=(0,l.useRef)(),v=function(){var e;null==f||null===(e=f.current)||void 0===e||e.open()};return(0,r.jsxs)("div",{className:s.default.banner,children:[!!n&&(0,r.jsx)("div",{className:s.default.logoContainer,onClick:v,children:(0,r.jsx)(o.default,{src:n,alt:c,className:s.default.logo})}),(0,r.jsxs)("div",{className:s.default.infoContainer,onClick:v,children:[(0,r.jsx)(d.Heading5,{noMargin:!0,className:s.default.header,children:"Bli med i trekningen!"}),(0,r.jsx)("div",{className:s.default.introText,children:t}),(0,r.jsx)(a.default,{className:s.default.bannerButton,onClick:v,children:"Meld deg p\xe5"})]}),(0,r.jsx)(i.default,{modalRef:f})]})}},53419:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});var r=n(74848),l=n(96540),a=n(69733),o=n(54928),i=j(n(48716)),u=n(84605),s=n(94892),d=n(15242),c=n(34584),f=j(n(63402)),v=n(80721),h=n(20777),m=n(30362);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function j(e){return e&&e.__esModule?e:{default:e}}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,l=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=l){var a=[],o=!0,i=!1;try{for(l=l.call(e);!(o=(n=l.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=function(e){var t,n,g=e.modalRef,j=(0,s.useProject)(),p=(0,a.useSelector)(function(e){return(0,d.getPublishedRewardsForProject)(e,j.id)}),y=(null==p?void 0:p.length)>0,b=x((0,l.useState)(!1),2),_=b[0],A=b[1],S=x((0,l.useState)({}),2),k=S[0],N=S[1],C=x((0,l.useState)(),2),L=C[0],O=C[1],w=(0,o.useNavigate)(),B=null==j?void 0:null===(n=j.profile)||void 0===n?void 0:null===(t=n.giveaway)||void 0===t?void 0:t.receiptText,E=function(){var e;A(!1),N({}),null==g||null===(e=g.current)||void 0===e||e.close()},M=_?(0,r.jsxs)("div",{className:f.default.modalFinished,children:[(0,r.jsx)(h.Heading2,{children:"Du er med!"}),(0,r.jsx)("p",{className:f.default.finishedText,children:B}),(0,r.jsxs)("div",{className:f.default.buttons,children:[(0,r.jsx)(i.default,{onClick:function(){(0,u.trackEvent)("giveaway","close"),E()},disabled:L,children:"Lukk"}),(0,r.jsx)(m.ActionButton,{onClick:function(){(0,u.trackEvent)("giveaway","support"),w("/project/".concat(j.id,"/").concat(y?"rewards":"payment"))},children:"St\xf8tt spleisen"})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Heading2,{children:"Bli med i trekningen!"}),(0,r.jsx)(c.GiveawayForm,{setSuccess:A,error:k,setError:N,loading:L,setLoading:O,close:E})]});return(0,r.jsxs)(v.Modal,{ref:g,children:[_&&(0,r.jsx)("div",{className:f.default.modalSuccessHeader}),(0,r.jsx)(v.ModalBlock,{children:M})]})}},91234:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});let r={banner:"PkzpL",logoContainer:"HxEVY",logo:"AkZKL",header:"pWLWB",infoContainer:"hVeS9",introText:"eQFzK",bannerButton:"f3s7I"}}}]);
2//# sourceMappingURL=giveaway-GiveawayBanner.js.map?v=cf771e0b4ad89849edcd

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.