PageSourceSearch

https://writinghabit.app/_next/static/chunks/app/pricing/page-4269df14cc0877d8.js

js writinghabit.app collected 2026-09-24 13:55:28 UTC 14,953 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6907],{11835:(e,r,t)=>{"use strict";t.d(r,{WK:()=>d,sE:()=>a,JD:()=>p,Vx:()=>u,xe:()=>s,Ed:()=>x,ac:()=>f,VV:()=>v,wW:()=>o,BB:()=>i});var n=t(67455);n.Dc.now(),n.Dc.now();let i=["backlog","under-review","planned","in-progress","complete"],o={backlog:"Backlog","under-review":"Under review",planned:"Planned","in-progress":"In progress",complete:"Complete"};function l(e){var r;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"words";return(null!=(r=e.teams)?r:[]).map(r=>{let n=r.participantIds.map(r=>(function(e,r){let t=e[r];return(null==t?void 0:t.id)?t:void 0})(e,r)).filter(e=>!!e);return{team:r,participants:n,total:n.reduce((e,r)=>{var n;return e+("netWords"===t&&null!=(n=r.netWords)?n:r.words)},0)}})}function s(e){var r;let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"words",i=[...l(e,n)].sort((e,r)=>r.total-e.total),o=new Set((null==(r=e.winningTeamIds)?void 0:r.length)?e.winningTeamIds:(function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"words",t=l(e,r);if(0===t.length)return[];let n=Math.max(...t.map(e=>{let{total:r}=e;return r}));return t.filter(e=>{let{total:r}=e;return r===n})})(e,n).map(e=>{let{team:r}=e;return r.id})),s=0;return i.map((e,r)=>(t!==e.total&&(s=r+1,t=e.total),{...e,place:s,isWinner:o.has(e.team.id)}))}let a=["universal","fantasy","progression","mystery","thriller","horror","romance","scifi","historical","literary","ya","western"],d={universal:{id:"universal",label:"Any genre",slug:"universal",blurb:"Shapes that work anywhere. The genre lists are these in costume.",order:0},fantasy:{id:"fantasy",label:"Fantasy",slug:"fantasy",blurb:"Courts, borders, bargains, and magic with a bill attached.",order:1},progression:{id:"progression",label:"LitRPG/Progression",slug:"progression",blurb:"Rankings, rivals, training, and power arriving faster than control.",order:2},mystery:{id:"mystery",label:"Mystery",slug:"mystery",blurb:"Second bodies, second interviews, and theories that won't hold.",order:3},thriller:{id:"thriller",label:"Thriller",slug:"thriller",blurb:"Compromised drops, quiet handlers, and escapes that were permitted.",order:4},horror:{id:"horror",label:"Horror",slug:"horror",blurb:"Rules that stop working, and daylight scenes worse than the night ones.",order:5},romance:{id:"romance",label:"Romance",slug:"romance",blurb:"Proximity, interruption, and small evidence that someone was paying attention.",order:6},scifi:{id:"scifi",label:"Science fiction",slug:"scifi",blurb:"Delays, votes, and technology working exactly as designed.",order:7},historical:{id:"historical",label:"Historical",slug:"historical",blurb:"Seasons, letters, laws changing overnight, and debts that outlive people.",order:8},literary:{id:"literary",label:"Literary",slug:"literary",blurb:"Houses cleared, jobs ending, friendships drifting without rupture.",order:9},ya:{id:"ya",label:"Young Adult",slug:"ya",blurb:"Applications, fractures, and no longer being the best at your thing.",order:10}
1,western:{id:"western",label:"Western",slug:"western",blurb:"Water rights, weather, and hospitality extended to the wrong person.",order:11}},h="jmgpho-20";function c(e){let r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!e||!t)return e;try{r=new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(e)?e:"https://".concat(e))}catch(r){return e}let n=r.hostname.toLowerCase();return/(^|\.)amazon\.[a-z.]+$/.test(n)&&r.searchParams.get("tag")!==t?(r.searchParams.set("tag",t),r.toString()):e}function u(e,r){return c("https://www.amazon.com/dp/".concat(e),null!=r?r:h)}let m=e=>(e||"").toLowerCase().replace(/[^a-z0-9]/g,""),b=new WeakMap;function p(e,r){let{byKey:t,byTitle:n}=function(e){let r=b.get(e);if(r)return r;let t={byKey:new Map,byTitle:new Map};for(let r of e){r.id&&!t.byKey.has(r.id)&&t.byKey.set(r.id,r),r.asin&&!t.byKey.has(r.asin)&&t.byKey.set(r.asin,r);let e=m(r.title);e&&!t.byTitle.has(e)&&t.byTitle.set(e,r)}return b.set(e,t),t}(e);if(r.bookId){let e=t.get(r.bookId);if(e)return e}if(r.asin){let e=t.get(r.asin);if(e)return e}if(!r.title)return;let i=n.get(m(r.title));if(i){if(r.author&&i.author){let e=m(r.author),t=m(i.author);if(e!==t&&!e.includes(t)&&!t.includes(e))return}return i}}function x(e,r,t){let n=e.asin||(null==r?void 0:r.asin);if(n)return u(n,t);let i=e.title||(null==r?void 0:r.title);if(i){let n=[i,e.author||(null==r?void 0:r.author)].filter(Boolean).join(" ");return c("https://www.amazon.com/s?k=".concat(encodeURIComponent(n)),null!=t?t:h)}return""}function f(e,r){var t;return r.asin||(null==(t=p(e,r))?void 0:t.asin)}function v(e,r){let t=p(e,r);if(null==t?void 0:t.customCoverUrl)return t.customCoverUrl;let n=r.asin||(null==t?void 0:t.asin);if(n)return"https://images-na.ssl-images-amazon.com/images/P/".concat(n,".01.L.jpg");return r.coverImage||""}},46986:(e,r,t)=>{"use strict";t.d(r,{default:()=>E});var n=t(54568),i=t(7620),o=t(10828),l=t(45642),s=t(92126),a=t(8042),d=t(91284),h=t(25318),c=t(47226),u=t(51622),m=t(92622),b=t(30558),p=t(64889),x=t(48801),f=t(49452),v=t(23172),g=t(31352),y=t(4933),j=t(19688),P=t(5299),w=t(8202),k=t(4773),A=t(39106),S=t(53041),C=t(93035),W=t(71774),z=t(64529),I=t(77011);let F="https://studio.writinghabit.app";function B(e){let{size:r=4}=e;return(0,n.jsx)(d.default,{p:1,component:"a",href:"#not-enforced",title:"What's this?",sx:{display:"inline-flex"},children:(0,n.jsx)(d.default,{sx:{display:"block",borderRadius:"50%",width:r,height:r,bgcolor:C.A[600],flexShrink:1}})})}function L(e){let{feature:r,anchorEl:t,onClose:i}=e,o="dark"===(0,W.default)().palette.mode?r.mediaUrlDark:r.mediaUrlLight;return(0,n.jsx)(h.Ay,{id:"mouse-over-popover",sx:{pointerEvents:"none",ml:1},open:!!t,anchorEl:t,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},onClose:i,disableRestoreFocus:!0,children:(0,n.jsxs)(d.default,{p:2,sx:{maxWidth:400},children:[(0,n.jsx)(c.default,{sx:{fontWeight:"bold"},children:r.title}),(0,n.jsx)(c.default,{variant:"body2",mb:1,children:r.description}),o?o.includes(".jpg")||o.includes(".jpeg")||o.includes(".png")||o.includes(".PNG")?(0,n.jsx)("img",{src:o,alt:r.title,width:"100%",style:{display:"block"}}):(0,n.jsx)("video",{src:o,controls:!0,autoPlay:!0,loop:!0,muted:!0,width:"100%",height:"auto"}):null]})})}function M(e){let{option:r,billingPeriod:t}=e,i=1===r.level?"https://firebasestorage.googleapis.com/v0/b/writinghabit-2459c.appspot.com/o/images%2Fwebsite%2Fwh-sub-hobbyist.png?alt=media&token=2e8781f3-e0ab-4016-b765-8f2c6861ae76":2===r.level?"https://firebasestorage.googleapis.com/v0/b/writinghabit-2459c.appspot.com/o/images%2Fwebsite%2Fwh-sub-pro.png?alt=media&token=bfbb65b1-f3bc-4363-8825-d787e2198089":"https://firebasestorage.googleapis.com/v0/b/writinghabit-2459c.appspot.com/o/images%2Fwebsite%2Fwh-sub-free.png?alt=media&token=f6c04dc7-43b6-47d3-8139-8f204639ae99",o=0===r.level?void 0:"".concat(F,"/create-account?level=").concat(r.level,"&billing=").concat(t);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.default,{display:"flex",mb:2,children:[(0,n.jsx)(u.default,{variant:"rounded",src:i,sx:{width:64,height:64,mr:1},alt:"".concat(r.name," image")}),(0,n.jsxs)(d.default,{children:[(0,n.jsx)(c.default,{variant:"h4",mt:-.5,children:r.name}),(0,n.jsx)(c.default,{variant:"body2",children:r.description||""}),(0,n.jsxs)(d.default,{sx:{fontSize:"1.55rem",fontWeight:"bold"},children:["$","monthly"===t?r.cost.toFixed(2):(r.cost/12).toFixed(2),(0,n.jsx)(c.default,{color:"text.secondary",component:"span",sx:{fontWeight:"normal",fontSize:16},children:"/mo."})]}),(0,n.jsx)(c.default,{color:"text.secondary",sx:{fontWeight:"normal",fontSize:".8rem",mt:-.5}
1,children:r.cost?"yearly"===t?"$".concat(r.cost," billed yearly"):"Billed monthly":"Billed never"})]})]}),r.level>0?(0,n.jsx)(m.default,{component:"a",href:o,target:"_blank",variant:"contained",color:2===r.level?"primary":"inherit",fullWidth:!0,children:"Subscribe"}):(0,n.jsx)(m.default,{disabled:!0,variant:"outlined",fullWidth:!0,children:"Ad supported"})]})}function R(e){let{feature:r,rowIndex:t,rowLastIndex:l,mobile:s,subOptionIndex:a,levels:h}=e,[u,m]=(0,i.useState)(null),x=r.limited||!1,f=r.limits||null;return(0,n.jsxs)(b.A,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,n.jsx)(p.A,{component:"th",scope:"row",sx:{border:"none",pl:s?0:void 0},children:(0,n.jsxs)(d.default,{display:"flex",alignItems:"center",component:"div",children:[(0,n.jsx)(c.default,{variant:"body2",component:"span",sx:{borderBottom:"1px dashed",borderColor:"background.secondary"},onMouseEnter:e=>m(e.currentTarget),onMouseLeave:()=>m(null),children:r.title}),r.description&&(0,n.jsx)(L,{feature:r,anchorEl:u,onClose:()=>m(null)}),!r.enforced&&(0,n.jsx)(B,{})]})}),h.map((e,i)=>{let d=(e=>{if(x){var t;return null!=(t=null==f?void 0:f[s?a:e])?t:"-"}return r.subLevelReq<=e?"check":"-"})(e);return(0,n.jsx)(p.A,{align:"center",sx:{mx:1,p:0,px:1,bgcolor:"background.secondary",borderColor:"divider",borderRadius:0===t&&t===l?"8px":0===t?"8px 8px 0 0":t===l?"0 0 8px 8px":0},children:x?(0,n.jsx)(c.default,{variant:"body2",noWrap:!0,sx:{fontWeight:"bold"},color:"-"===String(d)?"text.secondary":void 0,children:String(d)}):"check"===d?(0,n.jsx)(o.A,{sx:{color:"text.primary"}}):"—"},i)})]})}function E(e){let{sections:r}=e,[t,o]=(0,i.useState)("yearly"),[h,u]=(0,i.useState)(0),C=(0,x.A)("(max-width:1060px)"),W=(0,i.useMemo)(()=>(0,z.r3)({isProd:"true"===I.env.NEXT_PUBLIC_IS_PROD,interval:"monthly"===t?"month":"year"}),[t]),L=C?W.filter(e=>e.level===h).map(e=>e.level):W.map(e=>e.level),E=h>=W.length-1;return(0,n.jsxs)(d.default,{py:4,px:2,children:[(0,n.jsxs)(d.default,{mb:C?4:8,mt:C?-2.5:void 0,display:"flex",flexDirection:"column",justifyContent:"center",children:[(0,n.jsx)(d.default,{mx:"auto",display:"flex",mb:1,children:(0,n.jsxs)(f.A,{color:"primary",value:t,exclusive:!0,onChange:(e,r)=>r&&o(r),"aria-label":"BillingPeriod",children:[(0,n.jsx)(v.A,{value:"monthly",children:"Monthly Billing"}),(0,n.jsxs)(v.A,{value:"yearly",sx:{position:"relative"},children:["Yearly Billing"," ",(0,n.jsx)(g.default,{size:"small",label:"15% off",color:"yearly"===t?"secondary":"default",sx:{position:"absolute",right:-20,top:-15}})]})]})}),(0,n.jsxs)(d.default,{mx:"auto",display:"flex",alignItems:"center",color:"primary.main",fontSize:".85rem",gap:1,children:[(0,n.jsx)(l.A,{fontSize:"small"}),(0,n.jsx)(y.default,{href:"".concat(F,"/store"),underline:"hover",children:"Checkout Gift Codes too!"})]})]}),(0,n.jsx)(j.A,{in:!0,timeout:250,children:(0,n.jsxs)(d.default,{children:[C&&(0,n.jsx)(d.default,{mb:4,sx:{position:"sticky",top:16,zIndex:200,flexShrink:1,px:1,py:2},component:P.default,children:(0,n.jsxs)(d.default,{sx:{position:"relative"},display:"flex",children:[(0,n.jsx)(m.default,{color:"inherit",sx:{minWidth:"auto",pr:2,ml:-1},disabled:0===h,onClick:()=>u(e=>Math.max(0,e-1)),children:(0,n.jsx)(s.A,{})}),(0,n.jsx)(d.default,{flexGrow:1,children:(0,n.jsx)(M,{option:W[h],billingPeriod:t})}),(0,n.jsx)(m.default,{color:"inherit",sx:{minWidth:"auto",pl:2,mr:-1},disabled:E,onClick:()=>u(e=>Math.min(W.length-1,e+1)),children:(0,n.jsx)(a.A,{})})]})}),(0,n.jsx)(w.A,{children:(0,n.jsxs)(k.A,{sx:{minWidth:C?void 0:650,borderSpacing:C?"4px 0":"16px 0",borderCollapse:"separate"},"aria-label":"Pricing comparison table",children:[!C&&(0,n.jsx)(A.A,{children:(0,n.jsxs)(b.A,{children:[(0,n.jsx)(p.A,{width:260,sx:{border:"none"}}),W.map((e,r)=>(0,n.jsx)(p.A,{sx:{verticalAlign:"top",px:0,border:"none"},children:(0,n.jsx)(M,{option:e,billingPeriod:t})},r))]})}),(0,n.jsx)(S.A,{children:r.map(e=>(0,n.jsxs)(i.Fragment,{children:[e.title&&(0,n.jsx)(b.A,{children:(0,n.jsx)(p.A,{component:"th",scope:"row",colSpan:5,sx:{fontWeight:"bold",textTransform:"uppercase",color:"primary.main",border:"none",pt:6,pl:C?0:void 0},children:e.title})}),e.features.map((r,t)=>(0,n.jsx)(R,{feature:r,rowIndex:t,rowLastIndex:e.features.length-1,mobile:C,subOptionIndex:h,levels:L},r.id))]},e.id))}),!C&&(0,n.jsx)(A.A,{children:(0,n.jsxs)(b.A,{sx:{pt:1},children:[(0,n.jsx)(p.A,{width:260,sx:{border:"none"}}),W.map((e,r)=>(0,n.jsx)(p.A,{sx:{verticalAlign:"top",px:0,pt:5,border:"none"},children:(0,n.jsx)(M,{option:e,billingPeriod:t})},r))]})})]})}),(0,n.jsxs)(d.default,{display:"flex",alignItems:"center",justifyContent:"center",my:4,id:"not-enforced",children:[(0,n.jsx)(B,{size:6}),(0,n.jsx)(c.default,{color:"text.secondary",sx:{fontStyle:"italic",fontSize:".75rem"},children:"Indicates a paid feature that is currently available to all tiers for testing and feedback purposes."})]})]})})]})}}
1,77495:(e,r,t)=>{Promise.resolve().then(t.bind(t,46986)),Promise.resolve().then(t.bind(t,91284)),Promise.resolve().then(t.bind(t,31352)),Promise.resolve().then(t.bind(t,35706)),Promise.resolve().then(t.bind(t,4933)),Promise.resolve().then(t.bind(t,47301)),Promise.resolve().then(t.bind(t,68613)),Promise.resolve().then(t.bind(t,79746)),Promise.resolve().then(t.bind(t,31379)),Promise.resolve().then(t.bind(t,71774)),Promise.resolve().then(t.bind(t,58448)),Promise.resolve().then(t.bind(t,47226)),Promise.resolve().then(t.bind(t,67076)),Promise.resolve().then(t.bind(t,15608)),Promise.resolve().then(t.bind(t,21238)),Promise.resolve().then(t.bind(t,94590)),Promise.resolve().then(t.bind(t,13174)),Promise.resolve().then(t.bind(t,32421)),Promise.resolve().then(t.bind(t,68758)),Promise.resolve().then(t.bind(t,39969)),Promise.resolve().then(t.bind(t,68356)),Promise.resolve().then(t.bind(t,35845)),Promise.resolve().then(t.bind(t,68530)),Promise.resolve().then(t.bind(t,32406)),Promise.resolve().then(t.bind(t,22105)),Promise.resolve().then(t.bind(t,31374)),Promise.resolve().then(t.bind(t,81580)),Promise.resolve().then(t.bind(t,50850)),Promise.resolve().then(t.bind(t,76310)),Promise.resolve().then(t.bind(t,28340)),Promise.resolve().then(t.bind(t,53754)),Promise.resolve().then(t.bind(t,25944)),Promise.resolve().then(t.bind(t,40767)),Promise.resolve().then(t.bind(t,12277)),Promise.resolve().then(t.bind(t,71917)),Promise.resolve().then(t.bind(t,60844)),Promise.resolve().then(t.bind(t,52031)),Promise.resolve().then(t.bind(t,58670)),Promise.resolve().then(t.bind(t,63194)),Promise.resolve().then(t.bind(t,57394)),Promise.resolve().then(t.bind(t,95151)),Promise.resolve().then(t.bind(t,32379)),Promise.resolve().then(t.bind(t,29291)),Promise.resolve().then(t.bind(t,19593)),Promise.resolve().then(t.bind(t,56930)),Promise.resolve().then(t.bind(t,13209)),Promise.resolve().then(t.bind(t,77499)),Promise.resolve().then(t.bind(t,7758)),Promise.resolve().then(t.bind(t,41604)),Promise.resolve().then(t.bind(t,74313)),Promise.resolve().then(t.bind(t,85781)),Promise.resolve().then(t.bind(t,14519)),Promise.resolve().then(t.bind(t,53)),Promise.resolve().then(t.bind(t,2598)),Promise.resolve().then(t.bind(t,35890)),Promise.resolve().then(t.bind(t,65680))}},e=>{e.O(0,[7453,6105,7796,2432,2622,8070,4304,5318,1352,4246,7011,9746,38,4529,587,18,7358],()=>e(e.s=77495)),_N_E=e.O()}]);

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.