{"version":3,"sources":["webpack://@podlove/subscribe-button/webpack/runtime/chunk loaded","webpack://@podlove/subscribe-button/../packages/utils/dom.js","webpack://@podlove/subscribe-button/../packages/utils/sandbox.js","webpack://@podlove/subscribe-button/../packages/button/actions/types.js","webpack://@podlove/subscribe-button/../packages/button/actions/lifecycle.js","webpack://@podlove/subscribe-button/./src/embed/config.js","webpack://@podlove/subscribe-button/./src/embed/sandbox.js","webpack://@podlove/subscribe-button/../packages/button/state/config.js","webpack://@podlove/subscribe-button/../packages/button/state/view.js","webpack://@podlove/subscribe-button/../packages/utils/predicates.js","webpack://@podlove/subscribe-button/../packages/utils/helper.js","webpack://@podlove/subscribe-button/../packages/button/state/theme.js","webpack://@podlove/subscribe-button/../packages/button/state/finish.js","webpack://@podlove/subscribe-button/../packages/button/config/index.js","webpack://@podlove/subscribe-button/../packages/button/state/runtime.js","webpack://@podlove/subscribe-button/./src/store/selectors.js","webpack://@podlove/subscribe-button/./src/embed/overlay.js","webpack://@podlove/subscribe-button/./embed.js","webpack://@podlove/subscribe-button/./src/embed/embed.mustache","webpack://@podlove/subscribe-button/webpack/bootstrap","webpack://@podlove/subscribe-button/webpack/runtime/amd define","webpack://@podlove/subscribe-button/webpack/runtime/compat get default export","webpack://@podlove/subscribe-button/webpack/runtime/define property getters","webpack://@podlove/subscribe-button/webpack/runtime/global","webpack://@podlove/subscribe-button/webpack/runtime/harmony module decorator","webpack://@podlove/subscribe-button/webpack/runtime/hasOwnProperty shorthand","webpack://@podlove/subscribe-button/webpack/runtime/make namespace object","webpack://@podlove/subscribe-button/webpack/runtime/runtimeId","webpack://@podlove/subscribe-button/webpack/runtime/jsonp chunk loading","webpack://@podlove/subscribe-button/webpack/startup"],"names":["deferred","findNode","selector","head","document","querySelectorAll","appendNode","curry","node","child","appendChild","setStyles","tag","value","attributes","attr","Object","keys","map","attribute","join","attrs","el","forEach","property","style","removeStyles","removeProperty","getClasses","compose","filter","identity","className","split","setAttributes","classes","uniq","concat","indexOf","setAttribute","iframe","element","cb","MutationObserver","observe","childList","window","addEventListener","seamless","scrolling","frameborder","height","createElement","sandboxWindow","prop","sandboxDocument","inject","anchor","frame","setFrameSize","width","offsetWidth","content","sandbox","Promise","resolve","sdbxWindow","doc","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","open","write","close","onLoad","readyState","setTimeout","then","type","name","INIT","SHOW_LIST","SHOW_OVERLAY","HIDE_OVERLAY","SHOW_FINISH_CARD","SET_RUNTIME","SET_LANGUAGE","SET_VERSION","init","createAction","request","url","fetch","res","json","input","additional","config","Error","mergeDeepRight","entry","reference","propOr","BASE","buttonDom","embedButtonDom","version","VERSION","base","styles","STYLES","scripts","SCRIPTS","resizer","iframeResizerContentWindow","fullWidth","subscribeButton","iframeResizer","checkOrigin","log","sizeWidth","sizeHeight","maxHeight","innerHeight","handleActions","state","payload","size","color","format","headless","cover","finish","list","overlay","p1","p2","p","selectors","isUndefinedOrNull","x","undefined","isNil","createObject","specification","f","scope","context","reduce","result","key","startsWith","q","str","endsWith","stripl","slice","length","stripr","theme","juxt","toUpper","tail","TOKENS","brand","brandDark","brandDarkest","brandLightest","shadeDark","shadeBase","contrast","alt","tokens","FONTS","ci","family","src","weight","regular","bold","normalizeFont","path","extractFonts","getTokens","extractTokens","INITIAL_STATE","fonts","themeColors","_","themeFonts","fontRegular","fontBold","fontCi","icon","install","title","link","os","rss","runtime","language","browser","locale","platform","configSlice","slices","view","feed","fontString","font","themeSelectors","viewSelectors","overlayStyles","finishSelectors","runtimeSelectors","position","top","left","store","subscribe","getState","select","button","parseConfig","dispatch","overlayStyle","H","module","exports","T","Template","code","c","i","t","this","b","v","s","rs","d","pop","fl","partials","subs","render","apply","arguments","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","id","loaded","__webpack_modules__","call","m","amdD","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","r","n","getter","__esModule","a","definition","o","defineProperty","enumerable","get","g","globalThis","Function","e","hmd","create","children","set","obj","prototype","hasOwnProperty","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"mappings":"sJAAIA,E,uJCGSC,G,QAAW,SAACC,GAAD,MACF,iBAAbA,GAAwBC,OAAKC,SAASC,iBAAiBH,IAAaA,IAGhEI,GAAaC,QAAM,SAACC,EAAMC,GAGrC,OAFAD,EAAKE,YAAYD,GAEVA,KAUIE,IAPMJ,QAAM,SAACK,GAAgC,IAA3BC,EAA2B,uDAAnB,GAAIC,EAAe,uCACpDC,EAAOC,OAAOC,KAAKH,GAAc,IAClCI,KAAI,SAACC,GAAD,iBAAmBA,EAAnB,aAAiCL,EAAWK,GAA5C,QACJC,KAAK,IACR,iBAAWR,GAAX,OAAiBG,EAAjB,YAAyBF,EAAzB,aAAmCD,EAAnC,SAGuBL,QAAM,SAACc,EAAOC,GAKrC,OAJAN,OAAOC,KAAKI,GAAOE,SAAQ,SAACC,GAC1BF,EAAGG,MAAMD,GAAYH,EAAMG,MAGtBF,MAGII,GAAenB,QAAM,SAACc,EAAOC,IACtCD,GAAS,IAAIE,SAAQ,SAACR,GACtBO,EAAGG,MAAME,eAAeZ,SAIfa,GAAaC,QAAQC,OAAOC,MAAW,SAACT,GAAD,OAAQA,EAAGU,UAAUC,MAAM,QA0ClEC,IAtCa3B,QAAM,WAAsB,IAArB4B,EAAqB,uDAAX,GAAIb,EAAO,uCAGpD,OAFAA,EAAGU,WAAYH,QAAQT,OAAK,KAAMgB,KAAMC,OAAOF,GAAUP,EAA1CC,CAAsDP,GAE9DA,MAGoBf,QAAM,WAAsB,IAArB4B,EAAqB,uDAAX,GAAIb,EAAO,uCAOvD,OANAA,EAAGU,WAAYH,QACbT,OAAK,MACLU,QAAO,SAACE,GAAD,QAAiBG,EAAQG,QAAQN,MACxCJ,EAHaC,CAIbP,GAEKA,MAyBoBf,QAAM,SAACc,EAAOC,GAKzC,OAJAN,OAAOC,KAAKI,GAAOE,SAAQ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B,CAACC,EAA4BC,KACvD,IAGI7C,EAAU0C,GAHTjC,EAAUqC,EAAajG,GAAWgG,EAGhB9D,EAAI,EAC3B,IAAIiB,KAAY8C,EACZ/C,EAAoByB,EAAEsB,EAAa9C,KACrCD,EAAoBO,EAAEN,GAAY8C,EAAY9C,IAGhD,GAAGnD,EAAS,IAAIlD,EAASkD,EAAQkD,GAEjC,IADG6C,GAA4BA,EAA2BC,GACrD9D,EAAI0B,EAAStG,OAAQ4E,IACzB2D,EAAUjC,EAAS1B,GAChBgB,EAAoByB,EAAEiB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBhC,EAAS1B,IAAM,EAEhC,OAAOgB,EAAoBS,EAAE7G,IAG1BoJ,EAAqBC,KAA4C,sCAAIA,KAA4C,uCAAK,GAC1HD,EAAmBhR,QAAQ4Q,EAAqBM,KAAK,KAAM,IAC3DF,EAAmBG,KAAOP,EAAqBM,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,K,GC3CvF,IAAII,EAAsBpD,EAAoBS,OAAErH,EAAW,CAAC,MAAM,IAAO4G,EAAoB,QAC7FoD,EAAsBpD,EAAoBS,EAAE2C,I","file":"embed.js","sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","import { curry, compose, uniq, concat, join, filter, identity, head } from 'ramda'\nimport DOMPurify from 'dompurify'\n\nexport const findNode = (selector) =>\n typeof selector === 'string' ? head(document.querySelectorAll(selector)) : selector\n\nexport const createNode = (tag) => document.createElement(tag)\nexport const appendNode = curry((node, child) => {\n node.appendChild(child)\n\n return child\n})\n\nexport const tag = curry((tag, value = '', attributes) => {\n let attr = Object.keys(attributes || {})\n .map((attribute) => ` ${attribute}=\"${attributes[attribute]}\"`)\n .join('')\n return `<${tag}${attr}>${value}${tag}>`\n})\n\nexport const setStyles = curry((attrs, el) => {\n Object.keys(attrs).forEach((property) => {\n el.style[property] = attrs[property]\n })\n\n return el\n})\n\nexport const removeStyles = curry((attrs, el) => {\n ;(attrs || []).forEach((attr) => {\n el.style.removeProperty(attr)\n })\n})\n\nexport const getClasses = compose(filter(identity), (el) => el.className.split(' '))\n\nexport const hasOverflow = (el) => el.scrollWidth > el.clientWidth\n\nexport const addClasses = curry((classes = [], el) => {\n el.className = compose(join(' '), uniq, concat(classes), getClasses)(el)\n\n return el\n})\n\nexport const removeClasses = curry((classes = [], el) => {\n el.className = compose(\n join(' '),\n filter((className) => !~classes.indexOf(className)),\n getClasses\n )(el)\n\n return el\n})\n\nexport const sanitize = (input) => {\n if (!input || typeof window === 'undefined') {\n return input\n }\n\n const purify = DOMPurify(window)\n\n // Adds target=\"_blank\" to parsed links\n purify.addHook('afterSanitizeElements', (node) => {\n if (node.tagName === 'A') {\n node.setAttribute('target', '_blank')\n }\n\n return node\n })\n\n return purify.sanitize(input, {\n ALLOWED_TAGS: ['b', 'i', 'em', 'strong', 'a', 'br', 'p', 'ul', 'li', 'ol', 'br'],\n ALLOWED_ATTR: ['href', 'target']\n })\n}\n\nexport const setAttributes = curry((attrs, el) => {\n Object.keys(attrs).forEach((property) => {\n el.setAttribute(property, attrs[property])\n })\n\n return el\n})\n\nexport const resizeObserver = curry((element, cb) => {\n const observer = new MutationObserver(cb)\n\n observer.observe(element, { childList: true })\n window.addEventListener('resize', cb)\n})\n","import { compose, curry, prop } from 'ramda'\nimport { createNode, appendNode, setAttributes, setStyles } from './dom'\n\nconst iframe = compose(\n setAttributes({\n 'min-width': '100%',\n seamless: '',\n scrolling: 'no',\n frameborder: '0'\n }),\n setStyles({\n height: 'auto'\n }),\n createNode\n)\n\nconst createFrame = () => new Promise((resolve) => resolve(iframe('iframe')))\n\nexport const sandboxWindow = prop('contentWindow')\nexport const sandboxDocument = compose(prop('document'), sandboxWindow)\n\nexport const resize = curry((anchor, frame) => {\n const setFrameSize = () => setAttributes({ width: anchor.offsetWidth }, frame)\n\n setFrameSize()\n\n // Reset the width on window load\n window.addEventListener('load', setFrameSize)\n\n // Reset the width on viewport resize\n window.addEventListener('resize', setFrameSize)\n\n return frame\n})\n\nconst inject = curry(\n (content, sandbox) =>\n new Promise((resolve) => {\n const sdbxWindow = sandboxWindow(sandbox)\n const doc = sandboxDocument(sandbox)\n\n // transfer global window functions to sandbox\n if (window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) {\n sdbxWindow.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ =\n window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__\n }\n\n const onLoad = () => {\n if (doc.readyState === 'complete') {\n return resolve(sandbox)\n }\n\n return setTimeout(onLoad, 150)\n }\n\n doc.open()\n doc.write(content)\n doc.close()\n\n onLoad()\n })\n)\n\nexport const sandbox = curry((anchor, content) =>\n createFrame().then(appendNode(anchor)).then(inject(content))\n)\n","export const PREFIX = `BUTTON`\n\nconst type = (name) => `${PREFIX}_${name}`\n\nexport const INIT = type('INIT')\n\nexport const SHOW_LIST = type('SHOW_LIST')\nexport const HIDE_LIST = type('HIDE_LIST')\n\nexport const SHOW_OVERLAY = type('SHOW_OVERLAY')\nexport const HIDE_OVERLAY = type('HIDE_OVERLAY')\n\nexport const SHOW_FINISH_CARD = type('SHOW_FINISH_CARD')\nexport const HIDE_FINISH_CARD = type('HIDE_FINISH_CARD')\n\nexport const SET_RUNTIME = type('SET_RUNTIME')\nexport const SET_LANGUAGE = type('SET_LANGUAGE')\nexport const SET_VERSION = type('SET_VERSION')\n","import { createAction } from 'redux-actions'\nimport { INIT } from './types'\n\nexport const init = createAction(INIT)\n","/* eslint-disable no-console */\nimport { mergeDeepRight } from 'ramda'\n\nconst request = async (url) => fetch(url).then((res) => res.json())\n\nexport default async (input = {}, additional = {}) => {\n let config\n\n try {\n config = typeof input === 'string' ? await request(input) : input\n } catch (err) {\n throw new Error(`Couldn't parse configuration \"${input}\"`)\n }\n\n return mergeDeepRight(config, additional)\n}\n","/* global BASE, STYLES, SCRIPTS, MODE, VERSION */\nimport { propOr } from 'ramda'\nimport { sandbox } from '@podlove/utils/sandbox'\nimport { iframeResizer } from 'iframe-resizer'\n\n// eslint-disable-next-line\nimport iframeResizerContentWindow from 'raw-loader!iframe-resizer/js/iframeResizer.contentWindow.min.js'\nimport embedButtonDom from './embed.mustache'\n\nexport default async (config, entry) => {\n const reference = MODE === 'cdn' ? BASE : propOr(BASE, 'base', config)\n\n const buttonDom = embedButtonDom({\n version: VERSION,\n base: reference,\n styles: STYLES,\n scripts: SCRIPTS,\n resizer: iframeResizerContentWindow\n })\n\n const subscribeButton = await sandbox(entry, buttonDom, { fullWidth: false })\n\n iframeResizer(\n {\n checkOrigin: false,\n log: false,\n sizeWidth: true,\n sizeHeight: true,\n maxHeight: window.innerHeight - 20\n },\n subscribeButton\n )\n\n return subscribeButton\n}\n","import { handleActions } from 'redux-actions'\nimport { prop } from 'ramda'\nimport { INIT } from '@podlove/button-actions/types'\n\nexport const INIT_STATE = {\n size: 'big',\n color: '#c90bd6',\n format: 'cover',\n style: 'filled',\n headless: true,\n cover: null\n}\n\nexport const reducer = handleActions(\n { [INIT]: (state, { payload }) => ({ ...state, ...payload }) },\n INIT_STATE\n)\n\nexport const color = prop('color')\nexport const cover = prop('cover')\nexport const format = prop('format')\nexport const size = prop('size')\nexport const style = prop('style')\nexport const headless = prop('headless')\n","import { prop } from 'ramda'\nimport { handleActions } from 'redux-actions'\n\nimport {\n SHOW_OVERLAY,\n HIDE_OVERLAY,\n SHOW_LIST,\n SHOW_FINISH_CARD\n} from '@podlove/button-actions/types'\n\nexport const INITIAL_STATE = {\n overlay: false,\n finish: false,\n list: true\n}\n\nexport const reducer = handleActions(\n {\n [SHOW_LIST]: (state) => ({ ...state, finish: false, list: true }),\n [SHOW_OVERLAY]: (state) => ({ ...state, overlay: true }),\n [HIDE_OVERLAY]: (state) => ({ ...state, overlay: false, finish: false, list: true }),\n [SHOW_FINISH_CARD]: (state) => ({ ...state, list: false, finish: true })\n },\n INITIAL_STATE\n)\n\nexport const selectors = {\n overlay: prop('overlay'),\n finish: prop('finish'),\n list: prop('list')\n}\n","import { isNil } from 'ramda'\n\nexport const or = (p1, p2) => (x) => p1(x) || p2(x)\nexport const and = (p1, p2) => (x) => p1(x) && p2(x)\nexport const not = (p) => (x) => !p(x)\nexport const isUndefined = (x) => x === undefined\n\nexport const isUndefinedOrNull = or(isUndefined, isNil)\nexport const isDefinedAndNotNull = not(isUndefinedOrNull)\n","import { curry, map, compose, join, toUpper, juxt, head, tail, identity } from 'ramda'\nimport { isUndefinedOrNull } from './predicates'\n\n/**\n * Collection of functional helpers\n */\n\nexport const inAnimationFrame =\n (func) =>\n (...args) =>\n window.requestAnimationFrame(() => func.apply(null, args))\n\nexport const asyncAnimation =\n (func) =>\n (...args) =>\n new Promise((resolve) => {\n window.requestAnimationFrame(resolve(func.apply(null, args)))\n })\n\nexport const callWith =\n (...args) =>\n (func) =>\n func.apply(null, args)\n\n// Math helpers\nexport const toInt = (input = 0) => (isNaN(parseInt(input, 10)) ? 0 : parseInt(input, 10))\nexport const toFloat = (input = 0) => (isNaN(parseFloat(input)) ? 0 : parseFloat(input))\n\n// Functional Helper\nexport const fallbackTo = (fallback) => (value) => isUndefinedOrNull(value) ? fallback : value\nexport const createObject = curry((specification, value) => map((f) => f(value), specification))\nexport const scope = curry((selectors = {}, context = identity) =>\n Object.keys(selectors).reduce(\n (result, key) => ({\n ...result,\n [key]: compose(selectors[key], context)\n }),\n {}\n )\n)\nexport const startsWith = curry((q, str) => str.startsWith(q))\nexport const endsWith = curry((q, str) => str.endsWith(q))\nexport const stripl = curry((q, str) => (startsWith(q, str) ? str.slice(q.length) : str))\nexport const stripr = curry((q, str) =>\n endsWith(q, str) ? str.slice(0, str.length - q.length) : str\n)\nexport const strip = curry((q, str) => stripl(q, stripr(q, str)))\nexport const capitalize = compose(join(''), juxt([compose(toUpper, head), tail]))\n","import { prop, compose, propOr, path } from 'ramda'\nimport { handleActions } from 'redux-actions'\nimport { createObject } from '@podlove/utils/helper'\nimport { INIT } from '@podlove/button-actions/types'\n\nconst theme = propOr({}, 'theme')\n\nconst TOKENS = {\n brand: '#E64415',\n brandDark: '#235973',\n brandDarkest: '#1A3A4A',\n brandLightest: '#E9F1F5',\n shadeDark: '#807E7C',\n shadeBase: '#807E7C',\n contrast: '#000',\n alt: '#fff'\n}\n\nexport const tokens = {\n brand: propOr(TOKENS.brand, 'brand'),\n brandDark: propOr(TOKENS.brandDark, 'brandDark'),\n brandDarkest: propOr(TOKENS.brandDarkest, 'brandDarkest'),\n brandLightest: propOr(TOKENS.brandLightest, 'brandLightest'),\n shadeDark: propOr(TOKENS.shadeDark, 'shadeDark'),\n shadeBase: propOr(TOKENS.shadeBase, 'shadeBase'),\n contrast: propOr(TOKENS.contrast, 'contrast'),\n alt: propOr(TOKENS.alt, 'alt')\n}\n\nexport const FONTS = {\n ci: {\n name: 'ci',\n family: [\n '-apple-system',\n 'BlinkMacSystemFont',\n 'Segoe UI',\n 'Roboto',\n 'Helvetica',\n 'Arial',\n 'sans-serif',\n 'Apple Color Emoji',\n 'Segoe UI Emoji\", \"Segoe UI Symbol'\n ],\n src: [],\n weight: 800\n },\n regular: {\n name: 'regular',\n family: [\n '-apple-system',\n 'BlinkMacSystemFont',\n 'Segoe UI',\n 'Roboto',\n 'Helvetica',\n 'Arial',\n 'sans-serif',\n 'Apple Color Emoji',\n 'Segoe UI Emoji\", \"Segoe UI Symbol'\n ],\n src: [],\n weight: 300\n },\n bold: {\n name: 'bold',\n family: [\n '-apple-system',\n 'BlinkMacSystemFont',\n 'Segoe UI',\n 'Roboto',\n 'Helvetica',\n 'Arial',\n 'sans-serif',\n 'Apple Color Emoji',\n 'Segoe UI Emoji\", \"Segoe UI Symbol'\n ],\n src: [],\n weight: 700\n }\n}\n\nconst normalizeFont = (type) =>\n createObject({\n family: propOr(path([type, 'family'], FONTS), 'family'),\n weight: propOr(path([type, 'weight'], FONTS), 'weight'),\n name: propOr(path([type, 'name'], FONTS), 'name'),\n src: propOr([], 'src')\n })\n\nconst extractFonts = createObject({\n regular: compose(\n normalizeFont('regular'),\n propOr(FONTS.regular, 'regular'),\n propOr({}, 'fonts'),\n theme\n ),\n bold: compose(normalizeFont('bold'), propOr(FONTS.bold, 'bold'), propOr({}, 'fonts'), theme),\n ci: compose(normalizeFont('ci'), propOr(FONTS.ci, 'ci'), propOr({}, 'fonts'), theme)\n})\n\nconst getTokens = propOr({}, 'tokens')\n\nconst extractTokens = createObject({\n brand: compose(tokens.brand, getTokens, theme),\n brandDark: compose(tokens.brandDark, getTokens, theme),\n brandDarkest: compose(tokens.brandDarkest, getTokens, theme),\n brandLightest: compose(tokens.brandLightest, getTokens, theme),\n shadeDark: compose(tokens.shadeDark, getTokens, theme),\n shadeBase: compose(tokens.shadeBase, getTokens, theme),\n contrast: compose(tokens.contrast, getTokens, theme),\n alt: compose(tokens.alt, getTokens, theme)\n})\n\nexport const INITIAL_STATE = {\n tokens: TOKENS,\n fonts: FONTS\n}\n\nexport const reducer = handleActions(\n {\n [INIT]: (_, { payload }) => ({\n tokens: extractTokens(payload),\n fonts: extractFonts(payload)\n })\n },\n INITIAL_STATE\n)\n\nconst themeColors = propOr({}, 'tokens')\nconst themeFonts = propOr({}, 'fonts')\n\nexport const selectors = {\n brand: compose(prop('brand'), themeColors),\n brandDark: compose(prop('brandDark'), themeColors),\n brandDarkest: compose(prop('brandDarkest'), themeColors),\n brandLightest: compose(prop('brandLightest'), themeColors),\n shadeDark: compose(prop('shadeDark'), themeColors),\n shadeBase: compose(prop('shadeBase'), themeColors),\n contrast: compose(prop('contrast'), themeColors),\n alt: compose(prop('alt'), themeColors),\n fontRegular: compose(prop('regular'), themeFonts),\n fontBold: compose(prop('bold'), themeFonts),\n fontCi: compose(prop('ci'), themeFonts)\n}\n","import { prop } from 'ramda'\nimport { handleActions } from 'redux-actions'\n\nimport { HIDE_OVERLAY, SHOW_FINISH_CARD } from '@podlove/button-actions/types'\n\nexport const INITIAL_STATE = {\n icon: null,\n install: null,\n title: null,\n link: null,\n os: null,\n rss: null,\n type: null\n}\n\nexport const reducer = handleActions(\n {\n [SHOW_FINISH_CARD]: (_, { payload }) => payload,\n [HIDE_OVERLAY]: () => INITIAL_STATE\n },\n INITIAL_STATE\n)\n\nexport const selectors = {\n overlay: prop('install'),\n finish: prop('title'),\n icon: prop('icon'),\n link: prop('link'),\n os: prop('os'),\n rss: prop('rss'),\n type: prop('type'),\n install: prop('install')\n}\n","import { compose, prop, propOr } from 'ramda'\n\nexport const feed = prop('feed')\nexport const clients = propOr([], 'clients')\nexport const theme = propOr({}, 'theme')\n\nexport const runtime = propOr({}, 'runtime')\n\nexport const language = compose(prop('language'), runtime)\n","import { handleActions } from 'redux-actions'\nimport { propOr, prop } from 'ramda'\nimport { language } from '@podlove/button-config'\n\nimport { INIT, SET_LANGUAGE, SET_RUNTIME, SET_VERSION } from '@podlove/button-actions/types'\n\nexport const INITIAL_STATE = {\n language: 'en',\n browser: null,\n locale: null,\n platform: null,\n version: null\n}\n\nexport const reducer = handleActions(\n {\n [SET_LANGUAGE]: (state, { payload }) => ({\n ...state,\n language: payload\n }),\n [SET_RUNTIME]: (state, { payload }) => ({\n ...state,\n browser: propOr(null, 'browser', payload),\n locale: propOr(null, 'locale', payload),\n platform: propOr(null, 'platform', payload),\n language: propOr(null, 'language', payload)\n }),\n [SET_VERSION]: (state, { payload }) => ({\n ...state,\n version: payload\n }),\n [INIT]: (state, { payload }) => ({\n ...state,\n language: language(payload) || state.language\n })\n },\n INITIAL_STATE\n)\n\nexport const selectors = {\n language: prop('language'),\n platform: prop('platform'),\n locale: prop('locale'),\n version: prop('version')\n}\n","import * as config from '@podlove/button-state/config'\nimport { selectors as viewSelectors } from '@podlove/button-state/view'\nimport { selectors as themeSelectors } from '@podlove/button-state/theme'\nimport { selectors as finishSelectors } from '@podlove/button-state/finish'\nimport { selectors as runtimeSelectors } from '@podlove/button-state/runtime'\nimport { propOr, compose } from 'ramda'\nimport { scope } from '@podlove/utils/helper'\n\nexport const configSlice = propOr({}, 'config')\nexport const metadataSlice = propOr({}, 'metadata')\nexport const viewSlice = propOr({}, 'view')\nexport const clients = propOr([], 'clients')\n\nexport const slices = {\n config: propOr({}, 'config'),\n theme: propOr({}, 'theme'),\n view: propOr({}, 'view'),\n finish: propOr({}, 'finish'),\n feed: propOr({}, 'feed'),\n runtime: propOr({}, 'runtime')\n}\n\nexport const selectColor = compose(config.color, configSlice)\nexport const selectCover = compose(config.cover, configSlice)\nexport const selectFormat = compose(config.format, configSlice)\nexport const selectSize = compose(config.size, configSlice)\nexport const selectStyle = compose(config.style, configSlice)\n\nexport const headless = compose(config.headless, configSlice)\n\nconst fontString = ({ weight = 300, family = [] } = {}) => ({\n 'font-family': family.map((font) => `\"${font}\"`).join(', '),\n 'font-weight': weight\n})\n\nexport const theme = {\n ...scope(themeSelectors, slices.theme),\n fonts: compose(\n (state) => [\n themeSelectors.fontRegular(state),\n themeSelectors.fontBold(state),\n themeSelectors.fontCi(state)\n ],\n slices.theme\n ),\n fontRegular: compose(fontString, themeSelectors.fontRegular, slices.theme),\n fontBold: compose(fontString, themeSelectors.fontBold, slices.theme),\n fontCi: compose(fontString, themeSelectors.fontCi, slices.theme)\n}\n\nexport const view = scope(viewSelectors, slices.view)\n\nexport const finish = scope(finishSelectors, slices.finish)\n\nexport const runtime = scope(runtimeSelectors, slices.runtime)\n\nexport const feed = slices.feed\n","import { setStyles, removeStyles } from '@podlove/utils/dom'\nimport * as select from 'store/selectors'\n\nconst overlayStyles = {\n position: 'fixed',\n width: '100%',\n height: '100%',\n top: 0,\n left: 0\n}\n\nexport default (store, entry) => {\n store.subscribe(() => {\n const state = store.getState()\n if (select.view.overlay(state)) {\n setStyles(overlayStyles, entry)\n } else {\n removeStyles(Object.keys(overlayStyles), entry)\n }\n })\n}\n","import { prop } from 'ramda'\nimport { findNode } from '@podlove/utils/dom'\nimport { sandboxWindow } from '@podlove/utils/sandbox'\n\nimport { init } from '@podlove/button-actions/lifecycle'\nimport parseConfig from './src/embed/config'\nimport sandbox from './src/embed/sandbox'\nimport overlayStyle from './src/embed/overlay'\n\nasync function embed(selector, button, additional) {\n const config = await parseConfig(button, additional)\n const entry = findNode(selector)\n const subscribeButton = await sandbox(config, entry)\n\n const store = prop('PSB_STORE', sandboxWindow(subscribeButton))\n\n store.dispatch(init(config))\n overlayStyle(store, entry)\n\n return store\n}\n\nif (typeof window['podloveSubscribeButton'] === 'undefined') {\n window['podloveSubscribeButton'] = embed\n}\n","var H = require(\"hogan.js\");\nmodule.exports = function() { var T = new H.Template({code: function (c,p,i) { var t=this;t.b(i=i||\"\");t.b(\"
\");if(t.s(t.f(\"styles\",c,p,1),c,p,0,160,214,\"{{ }}\")){t.rs(c,p,function(c,p,t){t.b(\" \");});c.pop();}t.b(\" \");if(t.s(t.f(\"scripts\",c,p,1),c,p,0,238,307,\"{{ }}\")){t.rs(c,p,function(c,p,t){t.b(\" \");});c.pop();}t.b(\" \");return t.fl(); },partials: {}, subs: { }}, \" {{#styles}} {{/styles}} {{#scripts}} {{/scripts}} \", H);return T.render.apply(T, arguments); };","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.amdD = function () {\n\tthrow new Error('define cannot be used indirect');\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = 991;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t991: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tfor(moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) var result = runtime(__webpack_require__);\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_podlove_subscribe_button\"] = self[\"webpackChunk_podlove_subscribe_button\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [736], () => (__webpack_require__(4555)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"sourceRoot":""}