PageSourceSearch

https://www.jackmassa.com/_next/static/chunks/pages/directsaleeboo…/edit-5efffa502c75bcfa.js

js jackmassa.com collected 2026-10-10 02:28:43 UTC 9,180 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2266],{80211:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/directsaleebooks/[directSaleEbookId]/edit",function(){return i(36223)}])},36223:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return X}});var t=i(52676),o=i(68266),a=i(8934),r=i(2639),d=i(3813),l=i.n(d),s=i(25572),c=i.n(s),u=i(58754),b=i(75271),p=i(55907),k=i(52832),h=i(80338),m=i(41913),f=i(28083),I=i(26791),x=i(61009),g=i(63828),j=i(31647),S=i(9963),E=i(77576),y=i(68887),v=i(52612),$=i(55665),Z=i(64843),P=i(48018),B=i(39893),D=i(24488),F=i(1276),O=i(78277),N=i(75951),_=i(51487),T=i(76913),C=i(14489),w=i(90790);function L(){let e=(0,C._)(["\n  mutation AddDirectSaleEbookBookFile(\n    $directSaleEbookId: ID!\n    $extensionType: String!\n    $unconfirmedS3ObjectKey: String!\n  ) {\n    addDirectSaleEbookBookFile(\n      directSaleEbookId: $directSaleEbookId\n      extensionType: $extensionType\n      unconfirmedS3ObjectKey: $unconfirmedS3ObjectKey\n    ) {\n      id\n      hasPdf\n      hasEpub\n      hasMobi\n      epubFileName\n      mobiFileName\n      pdfFileName\n    }\n  }\n"]);return L=function(){return e},e}var M=(0,w.Ps)(L());function K(){let e=(0,C._)(["\n  mutation EditDirectSaleEbook(\n    $directSaleEbookId: ID!\n    $title: String!\n    $headline: String!\n    $subheader: String!\n    $tags: [String!]!\n    $description: String!\n    $paymentPlatformIntegrationId: ID\n    $productId: String\n    $universalBookLinkId: ID\n    $upsellDirectSaleEbookId: ID\n    $upsellText: String\n    $facebookPixelId: String\n  ) {\n    editDirectSaleEbook(\n      directSaleEbookId: $directSaleEbookId\n      title: $title\n      headline: $headline\n      subheader: $subheader\n      tags: $tags\n      description: $description\n      paymentPlatformIntegrationId: $paymentPlatformIntegrationId\n      productId: $productId\n      universalBookLinkId: $universalBookLinkId\n      upsellDirectSaleEbookId: $upsellDirectSaleEbookId\n      upsellText: $upsellText\n      facebookPixelId: $facebookPixelId\n    ) {\n      id\n      databaseId\n      title\n      headline\n      subheader\n      description\n      bookCoverLink\n      isAvailable\n      tags\n      facebookPixelId\n      productId\n      universalBookLink {\n        id\n        databaseId\n        title\n      }\n      authorProfile {\n        id\n        databaseId\n        penName\n      }\n      paymentPlatformIntegration {\n        id\n        databaseId\n        identifier\n        provider\n      }\n      upsellDirectSaleEbook {\n        id\n        databaseId\n        title\n      }\n      upsellText\n    }\n  }\n"]);return K=function(){return e},e}var z=(0,w.Ps)(K());function U(){let e=(0,C._)(["\n  mutation UpdateDirectSaleEbookBookCover(\n    $directSaleEbookId: ID!\n    $unconfirmedS3ObjectKey: String!\n  ) {\n    updateDirectSaleEbookBookCover(\n      directSaleEbookId: $directSaleEbookId\n      unconfirmedS3ObjectKey: $unconfirmedS3ObjectKey\n    ) {\n      id\n      bookCoverLink\n    }\n  }\n"]);return U=function(){return e},e}var H=(0,w.Ps)(U());function W(){let e=(0,C._)(["\n  query DirectSaleEbookEdit($id: ID!) {\n    node(id: $id) {\n      ... on DirectSaleEbook {\n        id\n        title\n        tags\n        headline\n        subheader\n        description\n        bookCoverLink\n        hasEpub\n        hasMobi\n        hasPdf\n        epubFileName\n        mobiFileName\n        pdfFileName\n        facebookPixelId\n        universalBookLink {\n          id\n          databaseId\n          title\n        }\n        upsellDirectSaleEbook {\n          id\n          databaseId\n          title\n        }\n        upsellText\n        authorProfile {\n          id\n          databaseId\n          penName\n        }\n        paymentPlatformIntegration {\n          id\n          databaseId\n          identifier\n          provider\n        }\n        productId\n      }\n    }\n  }\n"]);return W=function(){return e},e}var q=(0,w.Ps)(W()),A=i(67391),X=(0,_.Z)(function(){let{directSaleEbookId:e,justCreated:n}=(0,u.useRouter)().query,[i,d]=(0,b.useState)(!1),[s,_]=(0,b.useState)(0),[C,w]=(0,b.useState)("true"===n),{loading:L,error:K,data:U}=(0,o.a)(q,{variables:{id:(0,T.Q)("DirectSaleEbook",e)}}),[W,{loading:X}]=(0,a.D)(z);if(K)return"Error! ".concat(K.message);if(L)return(0,t.jsx)(k.Z,{active:!0,children:(0,t.jsx)(h.Z,{children:"Loading"})});let{title:G,bookCoverLink:Q,authorProfile:R,productId:Y,paymentPlatformIntegration:J,hasEpub:V,hasMobi:ee,hasPdf:en,epubFileName:ei,mobiFileName:et,pdfFileName:eo,headline:ea,subheader:er,tags:ed,description:el,facebookPixelId:es,universalBookLink:ec,upsellDirectSaleEbook:eu,upsellText:eb}=U.node;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l(),{children:(0,t.jsxs)("title",{children:['Edit "',G,'"']})}),(0,t.jsxs)(m.Z,{size:"tiny",open:C,onClose:()=>w(!1),children:[(0,t.jsx)(f.Z,{size:"huge",children:"Congratulations!"}),(0,t.jsx)(I.Z,{children:(0,t.jsxs)(x.Z,{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,t.jsx)("p",{style:{fontSize:"2rem"},children:"Your landing page is up!"}),(0,t.jsxs)(g.Z,{size:"huge",primary:!0,as:"a",target:"_blank",rel:"noopener noreferrer",href:"/directsaleebooks/".concat(e),children:[(0,t.jsx)(j.Z,{name:"external"}),"Check it out"]})]})}),(0,t.jsxs)(S.Z,{children:[(0,t.jsxs)(g.Z,{onClick:()=>w(!1),children:[(0,t.jsx)(j.Z,{name:"pencil"}),"Back to editing"]}),(0,t.jsx)(c(),{passHref:!0,href:"/dashboard/directsaleebooks",legacyBehavior:!0,children:(0,t.jsxs)(g.Z,{as:"a",children:[(0,t.jsx)(j.Z,{name:"dashboard"}),"Go to the dashboard"]})})]})]}),(0,t.jsx)("div",{style:{padding:"0 20px",marginBottom:"1rem",width:"100%"},children:(0,t.jsxs)(E.Z,{children:[(0,t.jsx)(y.Z,{}),(0,t.jsx)(v.Z,{children:(0,t.jsx)(c(),{href:"/dashboard",children:"Home"})}),(0,t.jsx)(y.Z,{}),(0,t.jsx)(v.Z,{children:(0,t.jsx)(c(),{href:"/dashboard/directsaleebooks",children:"My Direct Sale Ebooks"})}),(0,t.jsx)(y.Z,{}),(0,t.jsx)(v.Z,{active:!0,children:G.length>25?"".concat(G.substring(0,25),"..."):G})]})}),(0,t.jsxs)("div",{style:{maxWidth:"600px",margin:"0 auto",padding:"0 20px",width:"100%"},children:[(0,t.jsx)(O.Z,{bookIdObject:{directSaleEbookId:e},imageLink:Q,updateImageMutation:H,offScreenCanvasWidth:400,offScreenCanvasHeight:600,formWidth:200,formHeight:300,modalWidth:300,modalHe
1ight:450}),(0,t.jsx)(N.Z,{text:"".concat("https://storyoriginapp.com","/directsaleebooks/").concat(e),label:"Direct Sale Ebook Landing Page Link"}),(0,t.jsx)(D.Z,{isCreateForm:!1,readOnly:!i,onEdit:()=>d(!0),directSaleEbookId:e,title:G,headline:ea,subheader:er,tags:ed,description:el,authorProfile:R,authorProfileId:R.databaseId,paymentPlatformIntegrationId:null==J?void 0:J.databaseId,paymentPlatformIntegrationProvider:null==J?void 0:J.provider,productId:Y,universalBookLinkId:ec?ec.databaseId:null,upsellDirectSaleEbookId:eu?eu.databaseId:null,upsellText:eb,facebookPixelId:es,loading:X,onCancel:()=>{_(e=>e+1),d(!1)},onSave:async n=>{let{title:i,headline:t,subheader:o,tags:a,description:l,paymentPlatformIntegrationId:s,productId:c,universalBookLinkId:u,upsellDirectSaleEbookId:b,upsellText:k,facebookPixelId:h}=n,[m]=await (0,r.Z)(W({variables:{directSaleEbookId:e,title:i,headline:t,subheader:o,tags:a,description:l,paymentPlatformIntegrationId:s,productId:c,universalBookLinkId:u||null,upsellDirectSaleEbookId:b||null,upsellText:k,facebookPixelId:h||null},refetchQueries:[{query:A.Z}]}));if(m){m.errors.map(e=>{let{message:n}=e;return(0,p.Am)(n,{position:"top-center",className:"ui negative message"})});return}_(e=>e+1),d(!1)}},s),(0,t.jsxs)($.Z,{children:[(0,t.jsx)(Z.Z,{children:"Book Files"}),(0,t.jsxs)("p",{style:{fontSize:"1.2rem"},children:[(0,t.jsx)("b",{children:"Note:"})," The inputs below display the original file names, but when a reader downloads a file, it will be renamed on their end to"," ",(0,t.jsx)("em",{children:"".concat(G," - ").concat(R.penName).replace(/–/g,"-").replace(/—/g,"-").replace(/[^\w\s.\-()]/g,"_")})]}),(0,t.jsxs)(P.Z,{size:"large",children:[(0,t.jsx)(F.Z,{name:"epubBookFiledS3ObjectKey",label:"EPUB Book File",fileName:ei,bookIdObject:{directSaleEbookId:e},acceptableMimeTypes:["application/epub+zip"],extensionType:"epub",hasUpload:V,addBookFileMutation:M}),(0,t.jsx)(F.Z,{name:"mobiBookFiledS3ObjectKey",label:"MOBI Book File",fileName:et,bookIdObject:{directSaleEbookId:e},acceptableMimeTypes:["application/x-mobipocket-ebook","application/octet-stream"],extensionType:"mobi",hasUpload:ee,addBookFileMutation:M}),(0,t.jsx)(F.Z,{name:"pdfBookFileS3ObjectKey",label:"PDF Book File",fileName:eo,bookIdObject:{directSaleEbookId:e},acceptableMimeTypes:["application/pdf"],extensionType:"pdf",hasUpload:en,addBookFileMutation:M})]}),(0,t.jsx)(B.Z,{children:(0,t.jsxs)("a",{target:"_blank",rel:"noopener noreferrer",href:"/convert",children:["Generate compressed EPUB or MOBI from DOCX, EPUB, or MOBI ",(0,t.jsx)(j.Z,{name:"external"})]})})]})]})]})})}},function(e){e.O(0,[9029,8018,1913,4754,2403,718,2876,9221,1610,3276,2e3,7852,5978,6287,4015,484,2780,2888,9774,179],function(){return e(e.s=80211)}),_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.