PageSourceSearch

https://www.jibjab.com/packs/js/useSaveMakeAndGo-C9fruA2G.js

js jibjab.com collected 2026-10-02 02:33:58 UTC 1,387 bytes, 1 lines download raw bytes

1import{u as y,a as E,z as T,b as U,A as C,B as b,k as j,U as o,T as w,f as l,g as d,C as P}from"../index-Cd7uS7_0.js";import{u as L}from"./useFmvr-CE9LIN0V.js";const V=(m,t,k=null)=>{const{saveMake:g,loadMake:p}=y(),{ensureCurrentUser:v}=E(),{addErrorNotification:A}=T(),{createFmvr:M}=L(),{push:i}=U(),{setStatus:h}=C(null,{labelFunction:k,crossPage:!0}),S=(s,n)=>{const c=l.makeViewPath(t?.id,d.id(s)),u=l.makePreviewPath(t?.id,d.id(s)),e=l.signUpPath();if(o.isAnonymous(n)&&w.isStraightUp(t))return h(P.fulfilled),p(s.id),i({pathname:e,state:{referrer:"inFlow"}});if(o.isAnonymous(n)){const r=d.isDraft(s)?u:e;return r===e&&h(P.fulfilled),i({pathname:r,state:{referrer:"inFlow"}})}if(o.isPaid(n))return i({pathname:c,state:{referrer:"inFlow"}});const a=d.isDraft(s)?u:c;return i({pathname:a,state:{referrer:"inFlow"}})},F=s=>!(o.isAnonymous(s)||!o.isPaid(s)&&w.premium(t));return{saveMakeAndGo:async({roles:s,templateId:n,makeThumb:c,shareThumb:u})=>{try{const e=await v(),a=await g({roles:s,templateId:n,templateGroup:t,makeThumb:c,shareThumb:u});m(e,a),F(e)&&M(a,t),await S(a,e)}catch(e){let a="Oops! Something went wrong!",r="UseSaveMakeAndGo.js: Make Creation Error: ";Array.isArray(e)?e.forEach(f=>{r+=f,(f.includes("too few castings")||f.includes("head: can't be blank"))&&(a="This card needs more people! Cast another face!")}):r+=e,b(r),A(a),j.logError(r)}}}};export{V as u};

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.