'use strict'; const autoHeightHtml0 = `

Tags are great for describing the essence of your story in a single word or phrase, but stories are rarely about a single thing. If I pen a story about moving across the country to start a new job in a car with my husband, two cats, a dog, and a tarantula, I wouldn't only tag the piece with "moving". I’d also use the tags "pets", "marriage", "career change", and "travel tips".

`; const autoHeightHtml1 = `Tags are great for describing the essence of your story in a single word or phrase, but stories are rarely about a single thing. If I pen a story about moving across the country to start a new job in a car with my husband, two cats, a dog, and a tarantula, I wouldn’t only tag the piece with "moving".`; const style0 = ` p { font-family: sans-serif; padding: 50px; box-sizing: border-box; } `; const style1 = ` p { font-size: 12px !important; box-sizing: border-box; } `; const inlineBodyStyle = ` body { display: inline-block; } `; //https://medium.com/@elhardoum/opening-external-links-in-browser-in-react-native-webview-18fe6a66312a const autoDetectLinkScript = ` !function(){ function isUrl(str){ return str.startsWith('http'); } var e=function(e,n,t){if(n=n.replace(/^on/g,""),"addEventListener"in window)e.addEventListener(n,t,!1);else if("attachEvent"in window)e.attachEvent("on"+n,t);else{var o=e["on"+n];e["on"+n]=o?function(e){o(e),t(e)}:t}return e},n=document.querySelectorAll("a[href]");if(n)for(var t in n)n.hasOwnProperty(t)&&e(n[t],"onclick",function(e){!isUrl(this.href)||(e.preventDefault(),window.postMessage(JSON.stringify({url:this.href})))}) }(); `; const autoHeightScript = ` var styleElement = document.createElement('style'); styleElement.innerHTML = '${style1 .replace(/\'/g, "\\'") .replace(/\n/g, '\\n')}'; document.head.appendChild(styleElement); document.body.style.background = 'cornflowerblue'; `; const autoWidthHtml0 = `

hey

`; const autoWidthHtml1 = `

easy

`; const autoWidthScript = ` var styleElement = document.createElement('style'); styleElement.innerHTML = '${style1 .replace(/\'/g, "\\'") .replace(/\n/g, '\\n')}'; document.head.appendChild(styleElement); `; export { autoHeightHtml0, autoHeightHtml1, style0, autoHeightScript, autoWidthHtml0, autoWidthHtml1, autoWidthScript, inlineBodyStyle, autoDetectLinkScript };