PageSourceSearch

https://www.authorclimb.com/_next/static/chunks/8705.52ee1008f50a8d07.js

js authorclimb.com collected 2026-10-02 01:24:51 UTC 12,861 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="984b4423-640a-4043-b484-2ff69529a6d2",e._sentryDebugIdIdentifier="sentry-dbid-984b4423-640a-4043-b484-2ff69529a6d2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8705],{8705:function(e,a,t){t.r(a),t.d(a,{PrintRoyaltyCalculator:function(){return f}});var s=t(57437),l=t(94099),r=t(2265),n=t(26815),i=t(53647),c=t(95186),d=t(9323),o=t(50703),m=t(74354),x=t(94636);function u(e,a){return Math.round(Math.ceil(e/a)*a*100)/100}function p(e){return Math.round(100*e)/100}var h=t(94508);let b=[{value:"bw-standard",label:"Black & white — standard paper",formats:["paperback","hardcover"]},{value:"bw-premium",label:"Black & white — premium paper",formats:["paperback","hardcover"]},{value:"color-standard",label:"Color — standard (paperback only)",formats:["paperback"]},{value:"color-premium",label:"Color — premium",formats:["paperback","hardcover"]}];function f(){let[e,a]=(0,r.useState)("US"),[t,f]=(0,r.useState)("paperback"),[g,v]=(0,r.useState)("bw-standard"),[j,y]=(0,r.useState)("6 x 9 in"),[k,N]=(0,r.useState)(280),[w,P]=(0,r.useState)(14.99),C=x.Yl[e],F=b.filter(e=>e.formats.includes(t)),M=F.find(e=>e.value===g)?g:F[0].value,A=(0,r.useMemo)(()=>(function(e){let a,t;let s=x.Yl[e.marketplace],l=function(e){let a=x.PM[e.marketplace];if(!a)return null;let t=a[e.format];if(!t)return null;let s=t[e.interior];if(!s)return null;let l=Math.max(e.pages,0);return l<=s.minPagesForPerPage?s.fixed:s.fixed+(l-s.minPagesForPerPage)*s.perPage}(e);if(null==l)return{currency:s.currency,printingCost:0,rateApplied:.6,royalty:0,royaltyAt60:0,royalty60Threshold:0,expandedRoyalty:null,amazonFee:0,minListPrice:0,expandedMinListPrice:null,breakEvenAcos:null,warning:"Printing cost data isn't available for ".concat(s.label," with ").concat(e.format," / ").concat(e.interior,". Try the US or UK marketplace, or a different interior type.")};let r=p(l),n=Math.max(e.listPrice,0),i=x.pe[e.marketplace],c=n>=i?.6:.5,d=Math.max(p(c*n-r),0),o=Math.max(p(.6*n-r),0);a=r/.5<=i?u(r/.5,.01):r<=.6*i?u(i,.01):u(r/.6,.01);let m=x.gZ.has(e.marketplace),h=m?Math.max(p(.4*n-r),0):null,b=m?u(r/.4,.01):null,f=Math.max(p(n-d-r),0);return n>0&&n<a&&(t="List price is below the KDP minimum (".concat(s.currencySymbol).concat(a.toFixed(2),") for this book. Royalty shown as 0.")),{currency:s.currency,printingCost:r,rateApplied:c,royalty:d,royaltyAt60:o,royalty60Threshold:i,expandedRoyalty:h,amazonFee:f,minListPrice:a,expandedMinListPrice:b,breakEvenAcos:n>0?d/n:null,warning:t}})({marketplace:e,format:t,interior:M,trim:j,pages:k,listPrice:w}),[e,t,M,j,k,w]),S=e=>(0,h.Hy)(e,C.currency,C.locale),_="JP"===e?{min:200,max:5e3,step:50}:{min:2.99,max:39.99,step:.5};return(0,s.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[1.05fr_1fr]",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-line bg-surface p-6 space-y-5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-ink",children:"Book format"}),(0,s.jsx)(d.X,{value:t,onChange:e=>f(e),options:[{value:"paperback",label:"Paperback"},{value:"hardcover",label:"Hardcover"}],ariaLabel:"Book format"})]}),(0,s.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(n._,{htmlFor:"interior",className:"text-ink",children:"Interior type"}),(0,s.jsxs)(i.Ph,{value:M,onValueChange:e=>v(e),children:[(0,s.jsx)(i.i4,{id:"interior",className:"border-line bg-surface",children:(0,s.jsx)(i.ki,{})}),(0,s.jsx)(i.Bw,{children:F.map(e=>(0,s.jsx)(i.Ql,{value:e.value,children:e.label},e.value))})]})]}),(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(n._,{htmlFor:"trim",className:"text-ink",children:"Trim size"}),(0,s.jsxs)(i.Ph,{value:j,onValueChange:e=>y(e),children:[(0,s.jsx)(i.i4,{id:"trim",className:"border-line bg-surface",children:(0,s.jsx)(i.ki,{})}),(0,s.jsx)(i.Bw,{children:x.pg.map(e=>(0,s.jsx)(i.Ql,{value:e,children:e},e))})]})]})]}),(0,s.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(n._,{htmlFor:"marketplace",className:"text-ink",children:"Marketplace"}),(0,s.jsxs)(i.Ph,{value:e,onValueChange:e=>a(e),children:[(0,s.jsx)(i.i4,{id:"marketplace",className:"border-line bg-surface",children:(0,s.jsx)(i.ki,{})}),(0,s.jsx)(i.Bw,{children:x._L.map(e=>(0,s.jsx)(i.Ql,{value:e,children:x.Yl[e].label},e))})]})]}),(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(n._,{htmlFor:"pages",className:"text-ink",children:"Page count"}),(0,s.jsx)(c.I,{id:"pages",type:"number",min:24,value:k,onChange:e=>N(parseInt(e.target.value,10)||0),className:"border-line bg-surface"})]})]}),(0,s.jsx)(o.q,{label:"List price (".concat(C.currencySymbol,")"),value:w,onChange:P,min:_.min,max:_.max,step:_.step,prefix:C.currencySymbol,helpText:"Drag the slider to scrub through different list prices."}),A.warning&&(0,s.jsx)("div",{className:"rounded-md border border-gold/40 bg-gold/10 px-3 py-2 text-xs text-ink",children:A.warning})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-line bg-panel p-6",children:[(0,s.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold uppercase tracking-wide text-ink-soft",children:"Your Royalty"}),(0,s.jsxs)("span",{className:"text-[10px] uppercase tracking-wide font-bold px-2 py-0.5 rounded-full ".concat(.6===A.rateApplied?"bg-gold/15 text-gold-deep":"border border-line bg-surface text-ink-soft"),children:[Math.round(100*A.rateApplied),"% rate"]})]}),(0,s.jsxs)("div",{className:"mt-1 font-display text-4xl tabular-nums text-gold",children:[S(A.royalty),(0,s.jsxs)("span",{className:"ml-2 align-middle font-hanken text-sm font-medium text-ink-soft",children:["per book sold on ",C.domain]})]}),.5===A.rateApplied&&A.royalty60Threshold>0&&(0,s.jsxs)("div",{className:"mt-3 rounded-md border border-gold/30 bg-gold/10 px-3 py-2 text-xs text-ink",children:[(0,s.jsx)("strong",{children:"Unlock 60% royalty:"})," raise list to"," ",S(A.royalty60Threshold),"+ to earn"," ",(0,s.jsx)("strong",{className:"tabular-nums",children:S(Math.max(.6*A.royalty60Threshold-A.printingCost,0))})," ","per sale."]}),(0,s.jsxs)("div",{className:"mt-5 grid grid-cols-2 gap-3 text-sm",children:[(0,s.jsxs)("div",{className:"rounded-md bg-surface p-3 border border-line",children:[(0,s.jsx)("div",{className:"text-xs uppercase tracking-wide text-ink-soft",children:"Printing cost"}),(0,s.jsx)("div",{className:"mt-0.5 font-semibold text-ink tabular-nums",children:S(A.printingCost)})]}),(0,s.jsxs)("div",{className:"rounded-md bg-surface p-3 border border-line",children:[(0,s.jsx)("div",{className:"text-xs uppercase tracking-wide text-ink-soft",children:"Amazon's fee"}),(0,s.jsx)("div",{className:"mt-0.5 font-semibold text-ink tabular-nums",children:S(A.amazonFee)})]}),(0,s.jsxs)("div",{className:"rounded-md bg-surface p-3 border border-line",children:[(0,s.jsx)("div",{className:"text-xs uppercase tracking-wide text-ink-soft",children:"Expanded distribution"}),null==A.expandedRoyalty?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-0.5 font-semibold text-ink",children:"Not offered"}),(0,s.jsx)("div",{className:"mt-0.5 text-[10px] text-ink-soft",children:"In this marketplace"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-0.5 font-semibold text-ink tabular-nums",children:S(A.expandedRoyalty)}),(0,s.jsx)("div",{className:"mt-0.5 text-[10px] text-ink-soft",children:"40% \xd7 list − printing"})]})]}),(0,s.jsxs)("div",{className:"rounded-md bg-surface p-3 border border-line",children:[(0,s.jsx)("div",{className:"text-xs uppercase tracking-wide text-ink-soft",children:"Minimum list price"}),(0,s.jsx)("div",{className:"mt-0.5 font-semibold text-ink tabular-nums",children:S(A.minListPrice)}),(0,s.jsx)("div",{className:"mt-0.5 text-[10px] text-ink-soft",children:"KDP-enforced floor"})]})]}),(0,s.jsxs)("div",{className:"mt-5 rounded-md bg-ink p-3 text-sm",children:[(0,s.jsx)("div",{className:"text-xs uppercase tracking-wide text-gold",children:"Break-Even ACOS"}),(0,s.jsx)("div",{className:"mt-0.5 font-semibold text-gold tabular-nums",children:null==A.breakEvenAcos?"—":"".concat((100*A.breakEvenAcos).toFixed(1),"%")}),(0,s.jsx)("p",{className:"mt-1 text-[11px] text-ink-invsoft",children:"If your Amazon Ads ACOS stays under this, every sale is profitable."})]}),(0,s.jsx)("div",{className:"mt-6 border-t border-line pt-5",children:(0,s.jsx)(m.H,{centerLabel:"List price",centerValue:S(w),segments:[{label:"Your royalty",value:A.royalty,color:"#f59e0b"},{label:"Amazon's fee",value:A.amazonFee,color:"#57503f"},{label:"Printing cost",value:A.printingCost,color:"#e8e2d6"}]})})]}),(0,s.jsx)("div",{className:"lg:col-span-2 mt-2",children:(0,s.jsx)(l.K,{toolSlug:"print-royalty-calculator",data:{marketplace:e,format:t,interior:g,trim:j,pages:k,listPrice:w},defaultLabel:"My print royalty estimate"})})]})}},74354:function(e,a,t){t.d(a,{H:function(){return c}});var s=t(57437),l=t(14296),r=t(86810),n=t(10062),i=t(20407);function c(e){let{segments:a,centerLabel:t,centerValue:c,size:d=220}=e,o=a.map(e=>({name:e.label,value:Math.max(e.value,0),color:e.color})),m=o.reduce((e,a)=>e+a.value,0);return(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"relative",style:{width:d,height:d},children:[(0,s.jsx)(l.h,{width:"100%",height:"100%",children:(0,s.jsx)(r.u,{children:(0,s.jsx)(n.by,{data:m>0?o:[{name:"empty",value:1,color:"#e8e2d6"}],dataKey:"value",innerRadius:.32*d,outerRadius:.45*d,startAngle:90,endAngle:-270,stroke:"none",children:(m>0?o:[{name:"empty",value:1,color:"#e8e2d6"}]).map((e,a)=>(0,s.jsx)(i.b,{fill:e.color},a))})})}),(0,s.jsxs)("div",{className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center",children:[t&&(0,s.jsx)("div",{className:"text-xs text-ink-soft",children:t}),c&&(0,s.jsx)("div",{className:"text-lg font-bold text-ink",children:c})]})]}),(0,s.jsx)("ul",{className:"mt-4 w-full space-y-1.5 text-sm",children:a.map((e,a)=>{var t;return(0,s.jsxs)("li",{className:"flex items-center justify-between gap-3",children:[(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"inline-block h-2.5 w-2.5 rounded-sm",style:{backgroundColor:e.color},"aria-hidden":!0}),(0,s.jsx)("span",{className:"text-ink",children:e.label})]}),(0,s.jsx)("span",{className:"font-semibold text-ink tabular-nums",children:(t=e.value,new Intl.NumberFormat("en-US",{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}).format(t))})]},a)})})]})}},9323:function(e,a,t){t.d(a,{X:function(){return l}});var s=t(57437);function l(e){let{options:a,value:t,onChange:l,ariaLabel:r}=e;return(0,s.jsx)("div",{role:"radiogroup","aria-label":r,className:"inline-flex flex-wrap rounded-full bg-panel p-1 text-sm",children:a.map(e=>{let a=e.value===t;return(0,s.jsx)("button",{type:"button",role:"radio","aria-checked":a,onClick:()=>l(e.value),className:a?"whitespace-nowrap rounded-full bg-ink text-paper px-4 py-1.5 font-semibold shadow-sm transition":"whitespace-nowrap rounded-full text-ink-soft px-4 py-1.5 font-medium hover:text-ink transition",children:e.label},e.value)})})}},50703:function(e,a,t){t.d(a,{q:function(){return r}});var s=t(57437),l=t(95186);function r(e){let{label:a,value:t,onChange:r,min:n,max:i,step:c,prefix:d,suffix:o,helpText:m,id:x}=e,u=null!=x?x:"slider-".concat(a.toLowerCase().replace(/\s+/g,"-"));return(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-end justify-between gap-3",children:[(0,s.jsx)("label",{htmlFor:u,className:"text-sm font-medium text-ink",children:a}),(0,s.jsxs)("div",{className:"flex items-center gap-1 text-sm",children:[d&&(0,s.jsx)("span",{className:"text-ink-soft",children:d}),(0,s.jsx)(l.I,{id:u,type:"number",value:Number.isFinite(t)?t:"",min:n,step:c,onChange:e=>{let a=parseFloat(e.target.value);r(Number.isFinite(a)?a:0)},className:"h-8 w-24 text-right border-line bg-surface"}),o&&(0,s.jsx)("span",{className:"text-ink-soft",children:o})]})]}),(0,s.jsx)("input",{type:"range",min:n,max:i,step:c,value:Math.min(Math.max(t,n),i),onChange:e=>r(parseFloat(e.target.value)),className:"w-full accent-[#f59e0b] cursor-pointer","aria-label":a}),(0,s.jsxs)("div",{className:"flex justify-between text-[10px] uppercase tracking-wide text-ink-soft",children:[(0,s.jsxs)("span",{children:[d,n]}),(0,s.jsxs)("span",{children:[d,i]})]}),m&&(0,s.jsx)("p",{className:"text-xs text-ink-soft",children:m})]})}}}]);

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.