PageSourceSearch

https://withgoods.net/_next/static/chunks/pages/creator/[creatorDraftId]/designer/[goodId]-93fb0eac46b4fcc3.js

js withgoods.net collected 2026-10-08 12:19:47 UTC 4,481 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6493],{64810:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creator/[creatorDraftId]/designer/[goodId]",function(){return a(86461)}])},86461:function(e,t,a){"use strict";a.r(t);var o=a(52676),s=a(71675),i=a(50880),n=a(32574),r=a(31610),l=a(68228),d=a(19551),c=a(52588),g=a(76837),u=a(39717),x=a(75271),m=a(22519),h=a(7527),f=a(5644),p=a(50923),b=a.n(p);t.default=()=>{var e,t;let[a,p]=(0,x.useState)(f.designer.stage.width),[y,_]=(0,x.useState)(f.designer.stage.height),v=(0,u.useRouter)();v.query.creatorDraftId;let[w,j]=(0,x.useState)(null),[I,k]=(0,x.useState)(!1),[N,z]=(0,x.useState)(!0),[G,S]=(0,x.useState)(null),[E,T]=(0,x.useState)(null),deserializeTextLayers=e=>e?e.map(e=>({...e,x:e.x*a/100,y:e.y*y/100,scale:e.scale/100,fontFamily:e.font_family,fill:e.color,type:"text",zIndex:e.z_index,letterSpacing:e.letter_spacing,lineHeight:e.line_height,text:e.value})):[],deserializeImageLayers=e=>e?e.map(e=>({...e,x:e.x*a/100,y:e.y*y/100,scale:e.scale/100,type:"image",zIndex:e.z_index,image:e.image_path})):[],getBaseGoodBlog=async e=>{k(!0);let t=s.Z.getCurrentToken(),a=e.manufacture_blog_id;a?await (0,r.Rl)(Number(a),t,"").then(e=>{T(e.data.blog),k(!1)}):k(!1)};(0,x.useEffect)(()=>{let e=v.query.goodId;if(e){let getGood=async()=>{k(!0);let t=s.Z.getCurrentToken();await (0,n.dA)(Number(e),t,"&scope=deep").then(e=>{j(e.data.good),S(e.data.good.BaseGood),k(!1),getBaseGoodBlog(e.data.good.BaseGood);let t=deserializeImageLayers(e.data.good.GoodFaces[0].DesignerImages),a=deserializeTextLayers(e.data.good.GoodFaces[0].DesignerTexts);t.forEach(e=>{"Arial"==e.fontFamily&&(e.fontFamily="쿠키런체")}),a.forEach(e=>{}),saveLayers(t,a)})};getGood()}},[v.query.goodId]),b().decode((null==E?void 0:E.blog_html)||"");let[L,Z]=(0,x.useState)([]),saveLayers=(e,t)=>{let a=e.map(e=>({...e,image:e.image_path,type:"image"})),o=t.map(e=>({...e,type:"text",text:e.value,fill:e.color}));Z(a.concat(o))},B=(()=>{let[e,t]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{let checkMobile=()=>{t(window.innerWidth<768)};return checkMobile(),window.addEventListener("resize",checkMobile),()=>window.removeEventListener("resize",checkMobile)},[]),e})(),getImagePath=e=>e?"".concat("https://cdn.withgoods.net","/").concat(e):"/img/300.png";return(0,o.jsxs)(i.Z,{header:"designer",footer:!B,children:[I&&(0,o.jsx)(l.Z,{sx:{color:"#000",zIndex:9999},open:I,children:(0,o.jsx)(d.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:300,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:"5px",border:"1px solid #fff",outline:"none"},children:(0,o.jsxs)("div",{className:"flex items-center justify-center flex-col py-8",children:[(0,o.jsx)(c.Z,{color:"inherit",sx:{zIndex:9999}}),(0,o.jsx)("p",{className:"text-md text-center font-normal mt-4",children:"로딩중"})]})})}),(0,o.jsx)(h.Z,{noTerms:!0,initTexts:deserializeTextLayers(null==w?void 0:null===(e=w.GoodFaces[0])||void 0===e?void 0:e.DesignerTexts),initImages:deserializeImageLayers(null==w?void 0:null===(t=w.GoodFaces[0])||void 0===t?void 0:t.DesignerImages),initBaseGood:G,initGood:w,toolBar:"editCreatorDraft"}),(0,o.jsx)(g.Z,{open:!!N&&!I&&!!G,children:(0,o.jsxs)(d.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:800,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:0,border:"1px solid #fff",outline:"none"},children:[(0,o.jsxs)("div",{className:"blog-modal-header flex items-center justify-between",children:[(0,o.jsx)("p",{className:"text-md text-center font-normal",children:"제작 유의사항"}),(0,o.jsx)("button",{onClick:()=>z(!1),children:(0,o.jsx)(m.Z,{})})]}),(0,o.jsx)("div",{className:"blog-modal-content max-h-[500px] overflow-y-auto",children:B?(0,o.jsx)("div",{className:"text-sm text-center font-normal",children:(0,o.jsx)("img",{src:getImagePath(null==G?void 0:G.disclaimer_mobile_image_path),alt:"제작 유의사항"})}):(0,o.jsx)("img",{src:getImagePath(null==G?void 0:G.disclaimer_desktop_image_path),alt:"제작 유의사항"})}),(0,o.jsx)("div",{className:"flex items-center justify-center mt-4",children:(0,o.jsx)("button",{className:"delete-draft-btn bg-white border border-blue-900 text-blue-900 px-4 py-2 w-[200px]",onClick:()=>z(!1),children:"확인"})})]})})]})}}},function(e){e.O(0,[3060,5082,3337,9155,8619,9678,5282,9652,1625,5990,5397,6721,923,2502,8273,948,880,4762,7527,9774,2888,179],function(){return e(e.s=64810)}),_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.