\r\n\t\t\t\t
\r\n\t\t\t\t\tVent venligst
\r\n\t\t\t\t:
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{dictionary?.Title}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t}\r\n\t\t\r\n\t);\r\n};\r\n\r\nTerms.propTypes = {\r\n\tsetView: PropTypes.func,\r\n\thistory: PropTypes.shape({\r\n\t\tpush: PropTypes.func.isRequired,\r\n\t\tgoBack: PropTypes.func\r\n\t})\r\n};\r\n\r\nexport default withRouter(Terms);\r\n","import React, { useContext } from 'react';\r\nimport { withRouter } from 'react-router-dom';\r\nimport PropTypes from 'prop-types';\r\nimport Dictionary from 'app/popup/context/Dictionary';\r\nimport { Button } from 'molecules';\r\nimport {\r\n Heading, Paragraph, Icon, Link, PhrasePrimary\r\n} from 'atoms';\r\n\r\nconst Limits = () => {\r\n const context = useContext(Dictionary);\r\n\r\n const dictionary = context?.limits;\r\n\r\n const clickHandle = () => {\r\n window?.TC?.gaEvent('redirect', 'limits', 'user_redirect_to_limits');\r\n window.location.href = dictionary?.CtaLink;\r\n };\r\n\r\n return (\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n {dictionary?.Title}\r\n \r\n \r\n \r\n \r\n
\r\n \r\n
{dictionary?.ManchetText}\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nLimits.propTypes = {\r\n setView: PropTypes.func,\r\n history: PropTypes.shape({\r\n push: PropTypes.func.isRequired,\r\n goBack: PropTypes.func\r\n })\r\n};\r\n\r\nexport default withRouter(Limits);\r\n","import React, { useState, useEffect } from 'react';\r\nimport {\r\n\tSwitch, Route, withRouter, useLocation\r\n} from 'react-router-dom';\r\nimport { SwitchTransition, CSSTransition } from 'react-transition-group';\r\nimport routes from 'app/popup/routes';\r\nimport { Provider } from 'react-redux';\r\nimport { PersistGate } from 'redux-persist/integration/react';\r\nimport PropTypes from 'prop-types';\r\nimport {\r\n\tMarketing,\r\n\tMarketingSuccess,\r\n\tTerms,\r\n Limits,\r\n\tGeneralError\r\n} from 'app/popup/Views';\r\nimport { store, persistor } from 'app/shared/store';\r\nimport { Modal } from 'organisms';\r\n\r\nconst PopupApp = (props) => {\r\n\tconst [isModalOpen, setModalVisibility] = useState(null);\r\n\tconst { pathname } = props.location;\r\n\tconst location = useLocation();\r\n\tconst closeTitle = 'Luk';\r\n\tconst currentRoute = Object.values(routes).filter((route) => {\r\n\t\tif (route.url.indexOf(':') > -1) {\r\n\t\t\tconst tempRoute = route.url.substring(0, route.url.indexOf(':'));\r\n\t\t\tconst isPartOfRoute = pathname.indexOf(tempRoute);\r\n\t\t\tif (isPartOfRoute === 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn route.url === pathname;\r\n\t})[0];\r\n\tconst { tracking } = currentRoute || {};\r\n\r\n\tuseEffect(() => {\r\n\t\ttry {\r\n\t\t\tif (currentRoute) {\r\n\t\t\t\tconst pathArray = pathname.split('/');\r\n\t\t\t\tlet name = pathArray[pathArray.length - 1];\r\n\t\t\t\tlet triggerModal = true;\r\n\r\n\t\t\t\tif (!name.length) {\r\n\t\t\t\t\tname = 'forside';\r\n\t\t\t\t\ttriggerModal = false;\r\n\t\t\t\t}\r\n\t\t\t\twindow?.TC?.pushVirtualPage(name, `/virtualPath${pathname}`);\r\n\t\t\t\tsetModalVisibility(triggerModal);\r\n\t\t\t}\r\n\t\t} catch (error) {\r\n\t\t\tconsole.error('Could not get route', pathname);\r\n\t\t}\r\n\t}, [location]);\r\n\r\n\tconst toggleModal = (isModalVisible) => {\r\n\t\tsetModalVisibility(isModalVisible);\r\n\r\n\t\tif (isModalVisible) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\twindow.location.href = window.location.pathname; // Link to current page\r\n\t};\r\n\r\n\tconst trackingEvent = () => {\r\n\t\tif (tracking) {\r\n\t\t\twindow?.TC?.gaEvent(tracking.action, tracking.category, tracking.label);\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nPopupApp.propTypes = {\r\n\tlocation: PropTypes.shape({\r\n\t\tpathname: PropTypes.string\r\n\t}),\r\n\tmodelId: PropTypes.string,\r\n\tappBaseRoute: PropTypes.string\r\n};\r\n\r\nexport default withRouter(PopupApp);\r\n","import React from 'react';\r\n\r\nexport default React.createContext({});\r\n"],"names":["ErrorMessage","_ref","dictionary","clickHandle","ButtonText","linkTarget","React","className","Icon","iconId","Heading","Title","Paragraph","ManchetText","Button","onClick","PhrasePrimary","HelpText","Link","target","href","HelpTextLink","window","location","pathname","HelpTextLinkText","propTypes","PropTypes","isRequired","GeneralError","props","context","useContext","Dictionary","generalerror","history","goBack","CtaText","setView","push","withRouter","ErrorCategory","fetchPopupActions","postMarketingAnswer","createAsyncThunk","async","ignore_","thunkAPI","marketing","AcceptMarketing","getState","formData","FormData","append","ApiRequest","method","data","err","Error","viewedMarketing","Marketing","heroContent","setHeroContent","useState","heroMedia","setHeroMedia","dispatch","useDispatch","isLoading","setIsLoading","hasViewed","setViewed","register","handleSubmit","errors","clearErrors","useForm","mode","reValidateMode","useEffect","isMounted","header","HeroTitle","abstract","HeroSecondaryTitle","manchet","HeroManchetText","length","primaryColors","HeroTitlePrimaryColor","ctaText","HeroCtaText","ctaUrl","HeroCtaLink","backgroundImage","HeroBackgroundImageUrl","origin","leftImage","HeroLeftImageUrl","rightImage","HeroRightImageUrl","then","unwrapResult","res","status","sessionStorage","setItem","catch","error","statusText","unwrapErrorStatusText","TC","gaEvent","finally","Hero","content","media","name","onSubmit","update","empty","routes","marketingSuccess","url","generalError","onError","Label","ref","required","type","onChange","dangerouslySetInnerHTML","__html","PhraseValidation","ValidationDictionary","AlternativeText","MarketingSuccess","marketingconfirmed","allowHtml","CtaLink","approveTerms","Terms","terms","undefined","loginSuccessUrl","URLSearchParams","search","get","PlainButton","clear","Limits","limits","PopupApp","isModalOpen","setModalVisibility","useLocation","currentRoute","Object","values","filter","route","indexOf","tempRoute","substring","tracking","pathArray","split","triggerModal","pushVirtualPage","console","Provider","store","PersistGate","loading","persistor","Modal","closeTitle","toggleModal","isModalVisible","trackingEvent","action","category","label","SwitchTransition","CSSTransition","key","classNames","timeout","Switch","Route","exact","path","component","referer","modelId","appBaseRoute"],"sourceRoot":""}