PageSourceSearch

https://capa.ai/_next/static/chunks/pages/factory/[factoryId]/[factorySlug]-1fbd7468fb6588b7.js

js capa.ai collected 2026-09-25 18:32:46 UTC 136,108 bytes, 1 lines download raw bytes

1(self.webpackChunkcapa=self.webpackChunkcapa||[]).push([[3571],{61614:function(e){"use strict";var t=function(e){return(e.charCodeAt(0)-44032)%28},n=function(e){var t=e.length;if(1===t)return 17;if(2===t||t>=8&&t<=11)return 1;if(t>=3&&t<=7)return 4;if(t>=12&&t<=15||t>=20&&t<=23)return 0;if(t>=16&&t<=19)return 21;throw Error("It's too large.")},l=function(e){return[21,8,0,16,0,0,1,8,8,0][e]},r=function(e){return/ck/i.test(e)?1:/.n/i.test(e)?4:/ne/i.test(e)?4:/.l/i.test(e)?8:/le/i.test(e)?8:/.m/i.test(e)?16:/ob/i.test(e)?17:/.p/i.test(e)?17:/et/i.test(e)?19:/ng/i.test(e)?21:0},a=function(e){switch(e.toLowerCase()){case"l":case"r":return 8;case"m":return 16;case"n":return 4;default:return 0}},i=function e(i){if(!i)return 0;var s=i.replace(/\([^)]*\)$/,""),o=s[s.length-1];return/[가-힣]/.test(o)?t(o):/[1-9]0+$/.test(s)?n(/0+$/.exec(s)[0]):/\d/.test(o)?l(o):/[a-z]{2}$/i.test(s)?r(s.slice(s.length-2,s.length)):/(?:^|[^a-z])[a-z]$/i.test(s)?a(o):/(^|[^a-z])[a-z][^a-z]?$/i.test(s)?a(s[s.length-2]):e(s.slice(0,s.length-1))};e.exports={_codeForHangul:t,_codeForZeros:n,_codeForDigit:l,_codeForEnglish:r,_codeForEnglishInitial:a,code:i,hasJongseong:function(e){return 0!==i(e)}}},55381:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(81779);t.default=function(e){return e.replace(/(\S+(?:\([^)]*\))?)#\{([^}]+)\}/g,function(e,t,n){return t+(0,l.get)(n.trim())(t)})}},1052:function(e,t,n){"use strict";t.dd=void 0;var l,r=(l=n(55381))&&l.__esModule?l:{default:l},a=n(25192);t.dd=r.default,a.getJosaPicker,a.makeJosaify},81779:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=t.makeJosaPicker=void 0;var l=n(61614),r={},a=function(e,t,n){r[e]=n,t&&(r[t]=n)},i=function(e,t){return function(n){return(0,l.hasJongseong)(n)?e.replace(/\?$/,""):t}},s=function(e,t,n){a(e,t,n||i(e,t))};s("은","는"),s("이","가"),s("을","를"),s("과","와"),s("이었","였"),s("이어","여"),s("이에요","예요"),s("아","야"),s("이?",""),s("으로","로",function(e){return 8===(0,l.code)(e)?"로":i("으로","로")(e)}),t.makeJosaPicker=i,t.get=function(e){var t=r[e];if(!t)throw Error("Cannot handle this josa: "+e);return t}},25192:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeJosaify=t.getJosaPicker=void 0;var l=n(81779),r=l.get;t.getJosaPicker=r,t.makeJosaify=function(e){return function(t){return t+(0,l.get)(e)(t)}}},35421:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/factory/[factoryId]/[factorySlug]",function(){return n(12014)}])},21786:function(e,t,n){"use strict";n.d(t,{IJ:function(){return a},Tg:function(){return i},_l:function(){return s}});var l=n(55988),r=n(67769);let a=e=>({hasBillingKey:e.some(e=>1===e.methodType||2===e.methodType),hasUsableCard:e.some(e=>"TOSS"===e.pgProvider&&!e.isInvalid),hasUsableMainCard:e.some(e=>1===e.methodType&&"TOSS"===e.pgProvider&&!e.isInvalid),hasAnyCard:e.length>0}),i=()=>{var e;let{data:t}=(0,l.MuF)({refetchOnMount:!0,staleTime:3e4,suspense:!0});return a(null!==(e=null==t?void 0:t.result)&&void 0!==e?e:[])},s=e=>{let{defaultStep:t}=e,{hasBillingKey:n}=i(),[l,a]=(0,r.useState)(n?t:1);return{step:l,setStep:a,hasBillingKey:n}}},82233:function(e,t,n){"use strict";var l=n(80121),r=n(1856),a=n(6277);n(67769);var i=n(32087);t.Z=e=>{let{label:t,size:n="m",rootClassName:s,fontClassName:o,onClick:c}=e,d=t.slice(0,3),u=(0,i.EQ)({size:n}).returnType().with({size:"xxs"},()=>"text-xs").with({size:"xs"},()=>"text-xs").with({size:"s"},()=>"text-xs").with({size:"m"},()=>"text-xs").with({size:"l"},()=>"text-m").with({size:"xl"},()=>"title-xs").otherwise(()=>"title-xs");return(0,l.jsxs)("div",{onClick:c,className:(0,a.Z)("relative flex flex-col items-center justify-center border border-borderPrimary rounded-100",{"hover:cursor-pointer hover:border-borderAccent":!!c,"CdsAvatar--size-xxs":"xxs"===n,"CdsAvatar--size-xs":"xs"===n,"CdsAvatar--size-s":"s"===n,"CdsAvatar--size-m":"m"===n,"CdsAvatar--size-l":"l"===n,"CdsAvatar--size-xl":"xl"===n},s),children:[(0,l.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M85.2868 87H33.9152C31.9202 87 30.1745 85.5 30.1745 83.5V11C30.1745 9 31.9202 7.5 33.9152 7.5H85.2868C87.2818 7.5 89.0274 9 89.0274 11V83.5C88.778 85.5 87.2818 87 85.2868 87Z",fill:"url(#paint0_linear_4817_97018)"}),(0,l.jsx)("mask",{id:"mask0_4817_97018",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"30",y:"7",width:"60",height:"80",children:(0,l.jsx)("path",{d:"M85.2868 87H33.9152C31.9202 87 30.1745 85.5 30.1745 83.5V11C30.1745 9 31.9202 7.5 33.9152 7.5H85.2868C87.2818 7.5 89.0274 9 89.0274 11V83.5C88.778 85.5 87.2818 87 85.2868 87Z",fill:"white"})}),(0,l.jsx)("g",{mask:"url(#mask0_4817_97018)",children:(0,l.jsx)("path",{opacity:"0.15",d:"M80.5486 89.5L36.9077 90C34.9127 90 33.167 88.25 33.167 86.25L32.6683 16.75C32.6683 14.75 34.4139 13 36.4089 13L69.8254 12.75L83.7905 27.5L84.2892 85.75C84.2892 87.75 82.5436 89.5 80.5486 89.5Z",fill:"url(#paint1_linear_4817_97018)"})}),(0,l.jsx)("path",{d:"M75.3116 89.5L28.4288 90C26.4338 90 24.6882 88.25 24.6882 86.25L24.1894 15.25C24.1894 13.25 25.935 11.5 27.9301 11.5L63.8403 11.25L78.8029 26.25L79.3016 85.75C79.0522 87.75 77.3066 89.5 75.3116 89.5Z",fill:"url(#paint2_linear_4817_97018)"}),(0,l.jsx)("path",{opacity:"0.18",d:"M65.0872 25.5L78.5536 26V35.75L74.3142 32.5L65.0872 25.5Z",fill:"url(#paint3_linear_4817_97018)"}
1),(0,l.jsx)("path",{d:"M78.5536 26.25H67.581C65.586 26.25 63.8404 24.5 63.8404 22.5V11L78.5536 26.25Z",fill:"#B5B5B5"}),(0,l.jsx)("path",{d:"M52.8679 68H15.212C13.217 68 11.4713 66.25 11.4713 64.25V49.25C11.4713 47.25 13.217 45.5 15.212 45.5H52.8679C54.8629 45.5 56.6085 47.25 56.6085 49.25V64.25C56.6085 66.25 54.8629 68 52.8679 68Z",fill:"#767676"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_4817_97018",x1:"83.6701",y1:"47.3053",x2:"38.4309",y2:"47.3053",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#7C7C7C"}),(0,l.jsx)("stop",{offset:"0.1607",stopColor:"#8B8B8B"}),(0,l.jsx)("stop",{offset:"0.4676",stopColor:"#A2A2A2"}),(0,l.jsx)("stop",{offset:"0.7548",stopColor:"#B1B1B1"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#B5B5B5"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_4817_97018",x1:"58.4053",y1:"22.3583",x2:"58.3829",y2:"81.7949",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#161616"}),(0,l.jsx)("stop",{offset:"0.2438",stopColor:"#1A1A1A",stopOpacity:"0.7562"}),(0,l.jsx)("stop",{offset:"0.5138",stopColor:"#282828",stopOpacity:"0.4862"}),(0,l.jsx)("stop",{offset:"0.7952",stopColor:"#3E3E3E",stopOpacity:"0.2048"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#535353",stopOpacity:"0"})]}),(0,l.jsxs)("linearGradient",{id:"paint2_linear_4817_97018",x1:"28.3998",y1:"24.3668",x2:"69.9359",y2:"82.2861",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:"0.1474",stopColor:"#F5F5F5"}),(0,l.jsx)("stop",{offset:"0.3736",stopColor:"#EDEDED"}),(0,l.jsx)("stop",{offset:"0.5634",stopColor:"#E2E2E2"}),(0,l.jsx)("stop",{offset:"0.8435",stopColor:"#E0E0E0"}),(0,l.jsx)("stop",{offset:"0.9443",stopColor:"#D9D9D9"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#D1D1D1"})]}),(0,l.jsxs)("linearGradient",{id:"paint3_linear_4817_97018",x1:"65.187",y1:"30.6925",x2:"78.6369",y2:"30.6429",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#161616"}),(0,l.jsx)("stop",{offset:"0.2438",stopColor:"#1A1A1A",stopOpacity:"0.7562"}),(0,l.jsx)("stop",{offset:"0.5138",stopColor:"#282828",stopOpacity:"0.4862"}),(0,l.jsx)("stop",{offset:"0.7952",stopColor:"#3E3E3E",stopOpacity:"0.2048"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#535353",stopOpacity:"0"})]})]})]}),(0,l.jsx)(r.Z,{as:"p",className:(0,a.Z)("absolute tracking-wide top-1/2 left-1/2 translate-x-[-90%] translate-y-[-30%]",{"text-[10px] transform scale-[0.8]":"s"===n,"translate-x-[-100%]":"ZIP"===t},o),variant:u,color:"white",fontWeight:"bold",children:d})]})}},98171:function(e,t,n){"use strict";var l=n(80121),r=n(1856),a=n(27585),i=n(66372),s=n(6277),o=n(37333),c=n.n(o);n(67769);let d={활동제한:"#EF4343","인증 파트너":"#07A007",산업단지기업:"#FF7639",INNOBIZ:"#005ACE",마켓판매자:"#004EA5",대출가능:"#7B2FF4"};t.Z=e=>{let{badgeList:t,center:n}=e,o=(0,a.Z)("mobile");return t&&0!==t.length?(0,l.jsx)("div",{className:(0,s.Z)("w-full flex flex-wrap gap-x-6 gap-y-2",{"justify-center":n}),children:null==t?void 0:t.map(e=>{let t="https://capa.ai/static"+(e.s3ImageUrl?(0,i.r)(e.s3ImageUrl):"/default.png");return(0,l.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,l.jsx)(c(),{src:t,alt:e.badgeName,width:o?14:16,height:o?14:16,style:{objectFit:"cover"}}),(0,l.jsx)(r.Z,{variant:o?"text-l":"text-xl",fontWeight:"medium",style:{color:d[e.badgeName]},children:e.badgeName})]},e.badgeName)})}):null}},3350:function(e,t,n){"use strict";var l=n(80121),r=n(17522),a=n(66258),i=n(87668),s=n(6277),o=n(67769);let c=e=>{if(!e)return;let t=e.toLowerCase();return[".pptx",".pdf",".hwp",".zip",".rar"].find(e=>t.includes(e))};t.Z=e=>{let{fileId:t,referenceFileS3Id:n,fileS3Id:d,className:u,size:x,fallbackRender:m,onClick:p}=e,[h,f]=(0,o.useState)(!1),g=(0,r.pT)(d)?d:n,v=(0,a.nr)(g),b=t?(0,a.km)({fileId:t,fileS3Id:g,type:a.DJ.DRAWING_THUMBNAIL}):(0,a.km)({fileS3Id:!h&&v?v:g,type:a.DJ.NORMAL});if(!b.length)return m("EMP");let j=c(n||d);return j?m(j.slice(1).toUpperCase()):(0,l.jsx)(i.Z,{variant:"rect",onClick:p,className:(0,s.Z)(u,{"cursor-pointer hover:border-borderAccent":!!p}
1),src:b,size:x,loading:"lazy",onImgError:t||!v||h?void 0:()=>f(!0)})}},4583:function(e,t,n){"use strict";n.d(t,{LQ:function(){return r},lF:function(){return a}});var l=n(80121),r=()=>(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M14 3H2C1.73478 3 1.48043 3.10536 1.29289 3.29289C1.10536 3.48043 1 3.73478 1 4V12C1 12.2652 1.10536 12.5196 1.29289 12.7071C1.48043 12.8946 1.73478 13 2 13H14C14.2652 13 14.5196 12.8946 14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12V4C15 3.73478 14.8946 3.48043 14.7071 3.29289C14.5196 3.10536 14.2652 3 14 3ZM12.9 4L8 7.39L3.1 4H12.9ZM2 12V4.455L7.715 8.41C7.7987 8.46806 7.89813 8.49918 8 8.49918C8.10187 8.49918 8.2013 8.46806 8.285 8.41L14 4.455V12H2Z",fill:"#343A40"})});n(21037);let a={KaKao:()=>(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"24",height:"24",rx:"12",fill:"#FEE500"}),(0,l.jsx)("path",{d:"M11.9883 7.125C13.0159 7.125 13.9663 7.325 14.8396 7.72499C15.7129 8.12498 16.4032 8.6689 16.9107 9.35672C17.4181 10.0445 17.6719 10.7948 17.6719 11.6075C17.6719 12.4201 17.4181 13.1715 16.9107 13.8614C16.4032 14.5513 15.7139 15.0963 14.8428 15.4963C13.9716 15.8963 13.0201 16.0963 11.9883 16.0963C11.6627 16.0963 11.3265 16.073 10.9797 16.0264C9.47421 17.0719 8.67286 17.601 8.57559 17.6137C8.52907 17.6306 8.48466 17.6285 8.44237 17.6074C8.42545 17.5947 8.41277 17.5777 8.40431 17.5566C8.39585 17.5354 8.39163 17.5164 8.39163 17.4994V17.474C8.41702 17.3089 8.60941 16.6211 8.96887 15.4106C8.1527 15.0042 7.50463 14.4656 7.02465 13.7947C6.54468 13.1239 6.30469 12.3948 6.30469 11.6075C6.30469 10.7948 6.55842 10.0445 7.06588 9.35672C7.57335 8.6689 8.26371 8.12498 9.13697 7.72499C10.0102 7.325 10.9607 7.125 11.9883 7.125Z",fill:"#191600"})]}),Naver:()=>(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#03CF5D"}),(0,l.jsx)("path",{d:"M14.1366 12.4225L9.6878 6H6V18H9.86341V11.5775L14.3122 18H18V6H14.1366V12.4225Z",fill:"white"})]}),Facebook:()=>(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_2889_3329)",children:[(0,l.jsx)("path",{d:"M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.38825 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9165 4.6875 14.6576 4.6875C15.9705 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.3399 7.875 13.875 8.79998 13.875 9.74897V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z",fill:"#1877F2"}),(0,l.jsx)("path",{d:"M16.6711 15.4688L17.2031 12H13.875V9.74897C13.875 8.79998 14.3399 7.875 15.8306 7.875H17.3438V4.92188C17.3438 4.92188 15.9705 4.6875 14.6576 4.6875C11.9165 4.6875 10.125 6.34875 10.125 9.35625V12H7.07812V15.4688H10.125V23.8542C10.7359 23.9501 11.3621 24 12 24C12.6379 24 13.264 23.9501 13.875 23.8542V15.4688H16.6711Z",fill:"white"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_2889_3329",children:(0,l.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}},82177:function(e,t,n){"use strict";n.d(t,{Z:function(){return er}});var l=n(80121),r=n(92807),a=n(21178),i=n(63141),s=n(71744),o=n(67769),c=n(42748),d=n(96804),u=e=>{var t;let{children:n}=e,{data:r}=(0,c.Z)();return(0,s.useRouter)().pathname,null==r||null===(t=r.result)||void 0===t||t.userId,(0,l.jsxs)(l.Fragment,{children:[n,(0,l.jsx)(d.Mu,{})]})},x=n(39899),m=n(55988),p=n(75998),h=n(76562),f=n(69738),g=()=>{let e=(0,f.useQueryClient)(),{reAuthroziedSocketHandler:t,closeConnectionHandler:n,instance:l}=(0,h.useWebSocket)(),{mutateAsync:r}=(0,p.Z)(),a=(0,s.useRouter)();(0,o.useEffect)(()=>{if(!l)return;let t=async()=>{var t,n;let l=await e.fetchQuery({queryFn:()=>(0,m.BNP)()});if((null===(t=l.result)||void 0===t?void 0:t.isBlockUser)||(null===(n=l.result)||void 0===n?void 0:n.isBlockPartner))return window.dispatchEvent(new CustomEvent("authorized",{detail:"USER_BLOCK"})),e.clear();
1await r(),e.invalidateQueries({queryKey:(0,m.Z2Q)()})};return l.socket.on("UPDATED_USER_INFO",t),l.socket.on("UPDATED_USER_INFO_FROM_BO",t),()=>{l.socket.off("UPDATED_USER_INFO",t),l.socket.off("UPDATED_USER_INFO_FROM_BO",t)}},[l,r]),(0,o.useEffect)(()=>{let l=l=>{var r;(null===(r=l.detail)||void 0===r?void 0:r.message)==="EXPIRED_TOKEN"&&(e.invalidateQueries({queryKey:["useGetUser"]}),t(l.detail.accessToken)),"MIGRATION_USER"===l.detail&&(n(),a.push({pathname:"/account/setting"})),"INVALID_TOKEN"!==l.detail||(n(),e.clear(),(0,x.qz)(),"/"===window.location.pathname&&"signin"===new URLSearchParams(window.location.search).get("popup")||a.replace({pathname:"/",query:{popup:"signin"}})),"USER_BLOCK"===l.detail&&(n(),e.clear(),(0,x.qz)(),a.replace("/"))};return window.addEventListener("authorized",l),()=>{window.removeEventListener("authorized",l)}},[e,a])},v=n(36253),b=n(33125),j=e=>{var t,n;let{children:r}=e,a=(0,b.Y6)()||[];return(0,l.jsxs)(l.Fragment,{children:[a.length>0&&(0,l.jsx)("div",{className:"fixed w-screen h-screen top-0 bottom-0 right-0 left-0 bg-[rgba(0,0,0,0.4)] z-[10000] flex justify-center items-center",children:(0,l.jsx)(v.Z,{size:(null===(t=a[a.length-1].options)||void 0===t?void 0:t.size)||24,color:(null===(n=a[a.length-1].options)||void 0===n?void 0:n.color)||"bgAccent"})}),r]})},w=n(81765),y=n(64232),C=n(31035),N=n(66520);let Z=e=>{let{children:t}=e,n=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let e=(0,N.Z)(e=>{n.current=window.document.documentElement.scrollTop},100);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,o.useEffect)(()=>{let e=null,t=null,n=0,l=n=>{e=window.document.documentElement.scrollTop,t=n.changedTouches[0]},r=l=>{let r=l.changedTouches[0];if(0===Number(e)&&t&&(null==t?void 0:t.screenY)-r.screenY<0){let e=t.screenY;n=r.screenY-e>100?r.screenY-e:0}},a=e=>{n>=80&&window.document.documentElement.scrollTop<=0?window.location.reload():n=0};return window.addEventListener("touchstart",l),window.addEventListener("touchmove",r),window.addEventListener("touchend",a),()=>{window.removeEventListener("touchstart",l),window.removeEventListener("touchmove",r),window.removeEventListener("touchend",a)}},[]),(0,l.jsx)(l.Fragment,{children:t})};var k=e=>{var t;let{children:n}=e,r=(0,o.useRef)((null===(t=navigator)||void 0===t?void 0:t.standalone)||window.matchMedia("(display-mode: standalone)").matches?"pwa":"browser").current;return(0,l.jsx)(l.Fragment,{children:"pwa"===r?(0,l.jsx)(Z,{children:n}):n})};let S={apiKey:"AIzaSyApIOCOmW5rBadVaDYS_Huko5BmJ4s46r4",authDomain:"capa-35c95.firebaseapp.com",projectId:"capa-35c95",storageBucket:"capa-35c95.appspot.com",messagingSenderId:"880405801204",appId:"1:880405801204:web:4f01ef1271aa281c3796a1"};var E=e=>{let{children:t}=e,n=(0,o.useRef)((0,y.initializeApp)(S)).current,{data:r,getFCMToken:a,deleteFCMToken:i,mutate:s}=(0,C.Z)(),c=(0,o.useRef)(a),d=(0,o.useRef)(i),u=(0,o.useRef)(null==r?void 0:r.token),x=(0,o.useRef)(s);return(0,o.useEffect)(()=>{c.current=a,d.current=i,u.current=null==r?void 0:r.token,x.current=s}),(0,o.useEffect)(()=>{if("serviceWorker"in navigator)try{(async()=>{await navigator.serviceWorker.register("/firebase-messaging-sw.js")})()}catch(e){}},[]),(0,o.useEffect)(()=>{(async()=>{let e=await (0,w.isSupported)();if(e){let t=(0,w.getMessaging)(n),l=window.Notification.permission;"granted"!==l&&s({app:n,permission:l,messaging:t,isSupport:e}),"granted"===l&&s({app:n,permission:l,token:await (0,w.getToken)(t,{vapidKey:"BLLx5ruB-ExnhWesg1z1WAZ6kiv8-_XhSdMZ_Dr7aURyUnvSOkDT7Yz3woqBl9PhqFIh3cWd0_vcIzDV-eTiKNs"}),messaging:t,isSupport:e})}})()},[s,n]),(0,o.useEffect)(()=>{var e;let t=navigator.userAgent.toLocaleLowerCase();t.includes("android")&&(t.includes("webview")||t.includes("wv"))||void 0===(null===(e=navigator.permissions)||void 0===e?void 0:e.query)||navigator.permissions.query({name:"notifications"}).then(e=>{e.onchange=async e=>{let{state:t}=e.currentTarget;"prompt"===t&&await d.current("default"),"granted"===t&&x.current({permission:"granted"}),"denied"===t&&u.current&&x.current({permission:"denied",token:void 0}),"denied"!==t||u.current||x.current({permission:"denied",token:void 0})}})},[]),(0,l.jsx)(k,{children:t})},I=e=>{let{children:t}=e;return(0,l.jsx)(l.Fragment,{children:t})},L=n(24710),A=n(95382),B=n(82733),_=n(53179),R=n(21786),F=n(32854),z=n(44672),M=n(1856);let T="CARD_REREGISTER_MODAL_DO_NOT_OPEN_AGAIN",D=()=>{let e=new Date().getDate(),t=new Date(new Date().setDate(e+1)),[n,l,r]=[t.getFullYear(),t.getMonth()+1,t.getDate()];(0,A.qQ)(T,"".concat(n,"-").concat(l,"-").concat(r))},P=()=>{let e=(0,A.cF)(T);return!!e&&new Date(e).getTime()>
1new Date().getTime()};var q=()=>{let{closeModal:e}=(0,L.Z)(),t=(0,s.useRouter)();return(0,l.jsxs)(z.Z,{open:!0,onClose:e,className:"w-full max-w-[480px]",children:[(0,l.jsx)(z.Z.Header,{children:"구독 플랜 정기 결제 등록"}),(0,l.jsxs)(z.Z.Contents,{className:"flex flex-col gap-8 px-16 mobile:px-24",children:[(0,l.jsx)(M.Z,{variant:"text-xl",color:"textSecondary",children:"결제 시스템 변경으로, 기존에 등록하신 카드 정보가 더 이상 사용되지 않습니다."}),(0,l.jsx)(M.Z,{variant:"text-xl",color:"textSecondary",children:"이용 중이신 구독 플랜을 끊김 없이 사용하시려면 카드를 다시 등록해 주세요. 카드를 재등록하지 않으면 다음 결제일에 구독이 정상적으로 갱신되지 않을 수 있습니다."})]}),(0,l.jsxs)(z.Z.Buttons,{className:"flex flex-col items-center gap-12",children:[(0,l.jsx)(F.Z,{fullWidth:!0,size:{desktop:"lg",mobile:"m"},onClick:()=>{e(),t.push("/account/partner-plan?openPayment=1")},children:"결제 수단 재등록"}),(0,l.jsx)(F.Z,{variant:"text",color:"tertiary",onClick:()=>{D(),e()},children:"오늘 하루 보지 않기"})]})]})};let O="CARD_REREGISTER_MODAL_SHOWN_SESSION";var V=()=>{var e;let{openModal:t}=(0,L.Z)(),n=(0,_.P)(),{data:r}=(0,m.pgb)(),a=null==r?void 0:null===(e=r.result)||void 0===e?void 0:e.partnerId,{data:i}=(0,B.Z)(),{data:s}=(0,m.MuF)({enabled:!!a,suspense:!1,refetchOnMount:!0,staleTime:3e4}),c=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{var e,r;if(c.current||n||!a||!i||!s||!((null!==(e=i.planId)&&void 0!==e?e:1)!==1||i.isFree))return;let{hasUsableMainCard:o}=(0,R.IJ)(null!==(r=s.result)&&void 0!==r?r:[]);!(o||P())&&((0,A.G)(O)||(c.current=!0,(0,A.t_)(O,"1"),t((0,l.jsx)(q,{}))))},[a,i,s,t,n]),null},H=n(33337),W=n(9264);let U=e=>"TERMS_REVISION_NOTICE_20260901_V3_DISMISSED_".concat(e),$=e=>!!(0,A.cF)(U(e)),Q=Date.UTC(2026,7,31,15,0,0),K=()=>Date.now()<Q,Y=e=>{let{children:t}=e;return(0,l.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none","aria-hidden":!0,children:[(0,l.jsx)("rect",{x:"0.5",y:"0.5",width:"39",height:"39",rx:"7.5",fill:"#F4F9FF"}),(0,l.jsx)("rect",{x:"0.5",y:"0.5",width:"39",height:"39",rx:"7.5",stroke:"#2B83FF"}),t]})},J=[{tile:(0,l.jsx)(()=>(0,l.jsx)(Y,{children:(0,l.jsx)("path",{d:"M27.5 13.75C27.8315 13.75 28.1494 13.8818 28.3838 14.1162C28.6182 14.3506 28.75 14.6685 28.75 15V18.125C28.75 18.2908 28.6846 18.4502 28.5674 18.5674C28.4502 18.6846 28.2908 18.75 28.125 18.75C27.7935 18.75 27.4756 18.8818 27.2412 19.1162C27.0068 19.3506 26.875 19.6685 26.875 20C26.875 20.3315 27.0068 20.6494 27.2412 20.8838C27.4756 21.1182 27.7935 21.25 28.125 21.25C28.2908 21.25 28.4502 21.3154 28.5674 21.4326C28.6846 21.5498 28.75 21.7092 28.75 21.875V25C28.75 25.3315 28.6182 25.6494 28.3838 25.8838C28.1494 26.1182 27.8315 26.25 27.5 26.25H12.5C12.1685 26.25 11.8506 26.1182 11.6162 25.8838C11.3818 25.6494 11.25 25.3315 11.25 25V21.875C11.25 21.7092 11.3154 21.5498 11.4326 21.4326C11.5498 21.3154 11.7092 21.25 11.875 21.25C12.2065 21.25 12.5244 21.1182 12.7588 20.8838C12.9932 20.6494 13.125 20.3315 13.125 20C13.125 19.6685 12.9932 19.3506 12.7588 19.1162C12.5244 18.8818 12.2065 18.75 11.875 18.75C11.7092 18.75 11.5498 18.6846 11.4326 18.5674C11.3154 18.4502 11.25 18.2908 11.25 18.125V15C11.25 14.6685 11.3818 14.3506 11.6162 14.1162C11.8506 13.8818 12.1685 13.75 12.5 13.75H27.5ZM12.5 15V17.5811C13.0349 17.7209 13.5087 18.0341 13.8467 18.4717C14.1847 18.9093 14.3682 19.447 14.3682 20C14.3682 20.553 14.1847 21.0907 13.8467 21.5283C13.5087 21.9659 13.0349 22.2791 12.5 22.4189V25H21.875V23.125H23.125V25H27.5V22.4189C26.9651 22.2791 26.4913 21.9659 26.1533 21.5283C25.8153 21.0907 25.6318 20.553 25.6318 20C25.6318 19.447 25.8153 18.9093 26.1533 18.4717C26.4913 18.0341 26.9651 17.7209 27.5 17.5811V15H23.125V16.875H21.875V15H12.5ZM23.125 18.125V21.875H21.875V18.125H23.125Z",fill:"#2B83FF"})}),{}),lead:"구독 파트너 혜택이 강화돼요",bullets:["프로젝트가 구독 입찰과 자유 입찰로 나뉘어요","정부과제 등 일부 프로젝트는 구독 파트너만 참여할 수 있어요","무료 회원의 월 5회 입찰권이 종료돼요"]},{tile:(0,l.jsx)(()=>(0,l.jsx)(Y,{children:(0,l.jsx)("path",{d:"M28.75 27.5H11.25V26.25H28.75V27.5ZM28.75 25H11.25V23.75H28.75V25ZM27.5 12.5C27.8313 12.5008 28.1486 12.6329 28.3828 12.8672C28.6171 13.1014 28.7492 13.4187 28.75 13.75V21.25C28.7496 21.5814 28.6181 21.8995 28.3838 22.1338C28.1495 22.3681 27.8314 22.4996 27.5 22.5H12.5C12.1687 22.4992 11.8514 22.3671 11.6172 22.1328C11.3829 21.8986 11.2508 21.5813 11.25 21.25V13.75C11.2508 13.4187 11.3829 13.1014 11.6172 12.8672C11.8514 12.6329 12.1687 12.5008 12.5 12.5H27.5ZM12.5 21.25H27.5V13.75H12.5V21.25ZM19.5127 15.0479C19.9975 14.9515 20.5004 15.0013 20.957 15.1904C21.4137 15.3797 21.8045 15.7003 22.0791 16.1113C22.3536 16.5224 22.5 17.0057 22.5 17.5C22.4993 18.1628 22.2353 18.7979 21.7666 19.2666C21.2979 19.7353 20.6628 19.9993 20 20C19.5057 20 19.0224 19.8536 18.6113 19.5791C18.2003 19.3045 17.8797 18.9137 17.6904 18.457C17.5013 18.0004 17.4515 17.4975 17.5479 17.0127C17.6443 16.5277 17.8828 16.0821 18.2324 15.7324C18.5821 15.3828 19.0277 15.1443 19.5127 15.0479ZM15 16.25C15.3315 16.25 15.6494 16.3818 15.8838 16.6162C16.1182 16.8506 16.25 17.1685 16.25 17.5C16.25 17.7472 16.1764 17.9888 16.0391 18.1943C15.9017 18.3999 15.7069 18.5607 15.4785 18.6553C15.2501 18.7499 14.9983 18.7738 14.7559 18.7256C14.5135 18.6773 14.2909 18.5585 14.1162 18.3838C13.9415 18.2091 13.8227 17.9865 13.7744 17.7441C13.7262 17.5017 13.7501 17.2499 13.8447 17.0215C13.9393 16.7931 14.1001 16.5983 14.3057 16.4609C14.5112 16.3236 14.7528 16.25 15 16.25ZM20 16.25C19.7528 16.25 19.5112 16.3236 19.3057 16.4609C19.1001 16.5983 18.9393 16.7931 18.8447 17.0215C18.7
1501 17.2499 18.7262 17.5017 18.7744 17.7441C18.8227 17.9865 18.9415 18.2091 19.1162 18.3838C19.2909 18.5585 19.5135 18.6773 19.7559 18.7256C19.9983 18.7738 20.2501 18.7499 20.4785 18.6553C20.7069 18.5607 20.9017 18.3999 21.0391 18.1943C21.1764 17.9888 21.25 17.7472 21.25 17.5C21.2497 17.1686 21.1181 16.8506 20.8838 16.6162C20.6494 16.3819 20.3314 16.2503 20 16.25ZM25 16.25C25.3315 16.25 25.6494 16.3818 25.8838 16.6162C26.1182 16.8506 26.25 17.1685 26.25 17.5C26.25 17.7472 26.1764 17.9888 26.0391 18.1943C25.9017 18.3999 25.7069 18.5607 25.4785 18.6553C25.2501 18.7499 24.9983 18.7738 24.7559 18.7256C24.5135 18.6773 24.2909 18.5585 24.1162 18.3838C23.9415 18.2091 23.8227 17.9865 23.7744 17.7441C23.7262 17.5017 23.7501 17.2499 23.8447 17.0215C23.9393 16.7931 24.1001 16.5983 24.3057 16.4609C24.5112 16.3236 24.7528 16.25 25 16.25Z",fill:"#2B83FF"})}),{}),lead:"지속 가능한 운영을 위한 정책이 적용돼요",bullets:["플랫폼 거래 수수료가 신설돼요","구독 플랜에 따라 수수료가 차등 적용돼요","보다 균형적인 구독제 운영을 위해 구독 플랜의 입찰 혜택이 일부 조정돼요"]},{tile:(0,l.jsx)(()=>(0,l.jsxs)(Y,{children:[(0,l.jsx)("path",{d:"M20.471 16.0128C20.8573 17.3006 21.8648 18.3081 23.1525 18.6945L25.9041 19.5203C26.3792 19.6629 26.3791 20.3356 25.904 20.4782L23.1529 21.3035C21.865 21.6898 20.8573 22.6975 20.4709 23.9854L19.6456 26.7366C19.5031 27.2117 18.8304 27.2117 18.6878 26.7366L17.862 23.985C17.4756 22.6973 16.4681 21.6899 15.1803 21.3035L12.4294 20.4782C11.9543 20.3356 11.9543 19.6629 12.4293 19.5204L15.1808 18.6945C16.4683 18.3081 17.4755 17.3008 17.862 16.0133L18.6878 13.2619C18.8304 12.7868 19.5031 12.7869 19.6456 13.2619L20.471 16.0128Z",fill:"#2B83FF"}),(0,l.jsx)("path",{d:"M25.3049 11.8508C25.5947 12.8166 26.3502 13.5722 27.316 13.8621L27.6947 13.9757C27.8848 14.0327 27.8848 14.3018 27.6947 14.3588L27.3163 14.4724C26.3504 14.7621 25.5946 15.5179 25.3049 16.4838L25.1914 16.8622C25.1344 17.0522 24.8653 17.0523 24.8082 16.8622L24.6946 16.4835C24.4047 15.5177 23.6491 14.7621 22.6833 14.4724L22.3049 14.3588C22.1148 14.3018 22.1148 14.0328 22.3048 13.9757L22.6836 13.862C23.6492 13.5722 24.4047 12.8167 24.6945 11.8511L24.8082 11.4723C24.8653 11.2823 25.1343 11.2823 25.1914 11.4723L25.3049 11.8508Z",fill:"#2B83FF"})]}),{}),lead:"AI 기술로 성장을 지원해요",bullets:["AI\xb7IT 기반 서비스를 구독 파트너에게 순차적으로 제공해요","파트너의 업무 효율과 수주 경쟁력 강화를 지속적으로 지원해요"]}];var G=e=>{let{userId:t}=e,{closeModal:n}=(0,L.Z)();return(0,l.jsxs)(z.Z,{open:!0,onClose:n,hiddenClose:!0,className:"w-full max-w-[440px] !rounded-[16px] !p-0 overflow-hidden",children:[(0,l.jsxs)(z.Z.Contents,{className:"!p-0",children:[(0,l.jsxs)("div",{className:"relative bg-cover bg-center px-24 pb-24 pt-32 max-mobile:px-16",style:{backgroundImage:"linear-gradient(90deg, rgba(0, 53, 131, 0.97) 0%, rgba(33, 92, 173, 0.86) 55%, rgba(43, 131, 255, 0.58) 100%), url('/assets/terms-notice-header.jpg')"},children:[(0,l.jsx)("button",{type:"button","aria-label":"닫기",onClick:()=>n(),className:"absolute right-12 top-20 flex h-28 w-28 items-center justify-center text-white",children:(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,l.jsx)("path",{d:"M1 1L15 15M15 1L1 15",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}),(0,l.jsx)("span",{className:"inline-block rounded-full bg-white/[0.18] px-12 py-4 text-[12px] font-bold leading-[1.2] text-white",children:"파트너 서비스 개편"}),(0,l.jsxs)("h2",{className:"mt-12 text-[20px] font-bold leading-[1.6] tracking-[-0.015em] text-white",children:["더 나은 제조 생태계 구축을 위해",(0,l.jsx)("br",{}),"구독 서비스가 새롭게 개편됩니다."]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-8 px-24 pb-12 pt-20 max-mobile:px-16",children:[(0,l.jsx)("ul",{className:"flex flex-col",children:J.map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-12 py-8",children:[(0,l.jsx)("span",{className:"flex-none",children:e.tile}),(0,l.jsxs)("div",{className:"flex flex-1 flex-col gap-4",children:[(0,l.jsx)("span",{className:"text-[16px] font-bold leading-[1.3] tracking-[-0.019em] text-textAccent",children:e.lead}),(0,l.jsx)("ul",{className:"flex flex-col gap-4",children:e.bullets.map(e=>(0,l.jsxs)("li",{className:"flex gap-4 text-[13px] leading-[1.6] tracking-[-0.023em] text-textSecondary",children:[(0,l.jsx)("span",{"aria-hidden":!0,
1className:"flex-none",children:"•"}),(0,l.jsx)("span",{className:"flex-1",children:e})]},e))})]})]},e.lead))}),(0,l.jsxs)("div",{className:"flex flex-col gap-10 pt-8",children:[(0,l.jsx)("div",{className:"py-8",children:(0,l.jsx)("div",{className:"h-px w-full bg-borderBasic"})}),(0,l.jsxs)("p",{className:"text-[12px] leading-[1.6] text-textSecondary",children:["2026년 8월 31일까지 거부 의사를 표시하지 않으시면 개정 약관에 동의하신 것으로 간주돼요."," ",(0,l.jsx)("a",{href:"/terms#service",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"약관 전문 보기"})]})]})]})]}),(0,l.jsxs)(z.Z.Buttons,{className:"flex-col items-center",children:[(0,l.jsx)(F.Z,{fullWidth:!0,size:{desktop:"lg",mobile:"m"},onClick:()=>{n(),window.location.href="https://capa.ai/knowledge/post/capa-august-2026-update-bidding-subscription"},children:"자세히 보기"}),(0,l.jsx)(F.Z,{variant:"text",onClick:()=>{(0,A.qQ)(U(t),new Date().toISOString()),n()},children:"다시 보지 않기"})]})]})},X=()=>{let{openModal:e}=(0,L.Z)(),{data:t}=(0,m.pgb)(),n=null==t?void 0:t.result,{data:r}=(0,B.Z)(),{data:a}=(0,m.MuF)({enabled:!!(null==n?void 0:n.partnerId),suspense:!1,refetchOnMount:!0,staleTime:3e4}),i=(0,o.useRef)(!1),s=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{var t,o;if(i.current||s.current||(0,H.lU)()||!(null==n?void 0:n.userId)||!n.partnerId||!n.isPartnerActivate||!K()||$(n.userId)||!r||!a||!1===a.success)return;let c=(null!==(t=r.planId)&&void 0!==t?t:W.k)!==W.k||!!r.isFree,{hasUsableMainCard:d}=(0,R.IJ)(null!==(o=a.result)&&void 0!==o?o:[]);if((0,A.G)(O)||c&&!d&&!P()){s.current=!0;return}i.current=!0,e((0,l.jsx)(G,{userId:n.userId}))},[n,r,a,e]),null},ee=n(44685);let et=e=>{let{children:t}=e;return g(),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Z,{children:(0,l.jsx)(r.Z,{children:t})}),(0,l.jsx)(V,{}),(0,l.jsx)(X,{}),!1]})},en=e=>{let{children:t}=e,n=(0,s.useRouter)(),r="/project"===n.pathname||n.pathname.startsWith("/project/");return(0,l.jsxs)(l.Fragment,{children:[t,!r&&!n.pathname.includes("/knowledge")&&!n.pathname.includes("/alchemist")&&!n.pathname.includes("/mail")&&!n.pathname.includes("rfq-clipboard")&&"file-viewer"!==n.query.v&&"clipboard"!==n.query.v&&!(0,H.cn)()&&(0,l.jsx)(d.$_,{})]})},el=e=>{var t,n,r;let{children:a,auth:i}=e,{data:s}=(0,m.pgb)(),{loggedOut:c}=(0,ee.aC)(),x=null==s?void 0:null===(t=s.result)||void 0===t?void 0:t.userId,p=!!((null==s?void 0:null===(n=s.result)||void 0===n?void 0:n.isBlockPartner)||(null==s?void 0:null===(r=s.result)||void 0===r?void 0:r.isBlockUser));return(0,o.useEffect)(()=>{p&&c()},[p]),(0,l.jsx)(E,{children:(0,l.jsx)(h.WebSocketProvider,{userId:x,children:(0,l.jsxs)(et,{children:[(0,l.jsx)(en,{children:(0,l.jsx)(u,{children:(0,l.jsx)(j,{children:(0,l.jsxs)(I,{children:[a,(0,l.jsx)(d.uz,{userId:x})]})})})}),(0,l.jsx)(d.LJ,{})]})})})};var er=function(e){return t=>e&&e.provider?(0,l.jsx)(i.wI,{children:(0,l.jsx)(e.provider,{children:(0,l.jsx)(el,{auth:null==e?void 0:e.auth,children:t})})}):(0,l.jsx)(i.wI,{children:(0,l.jsx)(el,{auth:null==e?void 0:e.auth,children:t})})}},98822:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var l=n(80121),r=n(87668),a=n(32854),i=n(82742),s=n(82379),o=n(1856),c=n(33532),d=n(24710),u=n(66258),x=n(13078);function m(e){return e>=1e3?"999+":e}var p=n(56636),h=n(98125),f=n(28269),g=n(22060),v=n(93198),b=n(3229),j=n(15176),w=n(44685),y=n(29372),C=n(5930),N=n(88744);let Z=(0,N.Z)(()=>{window.dispatchEvent(new CustomEvent(C.Z.PARTNER_LIST_REFRESH))},500);(0,N.Z)(()=>{window.dispatchEvent(new CustomEvent(C.Z.REQUEST_LIST_REFRESH))},500);var k=n(6277),S=n(67769),E=n(47156),I=n(71744),L=n(37130),A=n.n(L),B=n(98171),_=n(23783);let R=(0,S.forwardRef)((e,t)=>{let{partner:n,isFetched:C}=e,{partnerId:N,partnerName:L="",services:R,profileFileS3Id:F,address:z,employees:M,introduction:T,avgReviewScore:D=0,totalReviewCnt:P=0,totalDealCnt:q=0,userRedealCnt:O=0,activeDay:V=0,isTaxBill:H,hasCertificate:W,isLiked:U,isBlocked:$,isTest:Q,slug:K,badgeList:Y}=n||{},J=(0,I.useRouter)(),{pushQuery:G}=(0,y.Z)(),{openModal:X,closeModal:ee}=(0,d.Z)(),{isLoggedIn:et}=(0,w.aC)(),en=()=>{N&&X((0,l.jsx)(b.Z,{partnerName:L,partnerId:N,likedPartnerId:n.likedPartnerId,parentIds:n.parentIds,isBlocked:$,onClose:ee,onSubmit:()=>{Z()},onLikeSuccess:()=>{X((0,l.jsx)(j.Z,{partnerId:N,partnerName:L,onClose:ee}))}}))},el=()=>
1{X((0,l.jsx)(v.Z,{shareLink:"".concat("https://capa.ai","/partner/").concat(N,"/").concat(K)}))},er=(0,S.useRef)(null),ea=async()=>{await J.prefetch("/partner/".concat(N,"/").concat(K))};return C?(0,l.jsxs)("div",{onMouseEnter:ea,onClick:e=>{e.stopPropagation(),J.push("/partner/".concat(N,"/").concat(K))},ref:(0,c.Z)(t,er),className:(0,k.Z)("flex gap-20 p-20 rounded-300 border-[0.7px] border-borderSecondary w-full h-fit shadow-200 bg-bgPrimary","max-mobile:flex-col max-mobile:gap-0 max-mobile:w-full max-mobile:max-h-fit max-mobile:h-fit max-mobile:min-h-353 max-mobile:p-0","cursor-pointer"),children:[(0,l.jsx)(r.Z,{size:"l",src:(0,u.km)({fileS3Id:F}),className:"block max-mobile:hidden"}),(0,l.jsxs)("div",{className:(0,k.Z)("relative flex flex-col gap-20 justify-between w-full min-w-0 h-fit","max-mobile:p-16 max-mobile:gap-16 max-mobile:max-h-fit max-mobile:h-fit max-mobile:items-start"),children:[(0,l.jsxs)("div",{className:"max-mobile:w-full max-mobile:flex max-mobile:gap-10",children:[(0,l.jsx)(r.Z,{src:(0,u.km)({fileS3Id:F}),className:"hidden max-mobile:block"}),(0,l.jsxs)("div",{className:"w-full flex flex-col gap-4 max-mobile:gap-2 max-mobile:h-fit max-mobile:min-w-0",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,l.jsxs)("div",{className:"flex items-center min-w-0 gap-8 max-mobile:flex-col max-mobile:gap-2 max-mobile:items-start",children:[(0,l.jsxs)("div",{className:"flex items-center gap-4 overflow-hidden max-w-full",children:[Q&&(0,l.jsx)(o.Z,{className:"px-8 py-4 bg-bgNegative rounded-300",as:"span",color:"white",fontWeight:"bold",variant:"text-xs",children:"TEST"}),N&&K?(0,l.jsx)(A(),{href:"/partner/".concat(N,"/").concat(K),prefetch:!1,className:"truncate min-w-0",onClick:e=>e.stopPropagation(),children:(0,l.jsx)(o.Z,{as:"span",variant:"text-xl",fontWeight:"bold",className:"truncate",children:L})}):(0,l.jsx)(o.Z,{variant:"text-xl",fontWeight:"bold",className:"truncate",children:L})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(f.Z,{className:"mr-2 text-textAccent min-w-16 min-h-16 max-mobile:max-w-14 max-mobile:max-h-14"}),D&&(0,l.jsxs)(o.Z,{variant:{desktop:"text-xl",mobile:"text-l"},color:"textSecondary",className:"whitespace-nowrap",children:[(0,x.Z)(D)," (",P,")"]})]})]}),(0,l.jsx)(a.Z,{size:"s",color:$?"black":U?"outlineBlue":"primary",className:(0,k.Z)({"bg-bglightAccent":U}),startIcon:$?(0,l.jsx)(g.Z,{size:16}):U?(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM5.76367 5.63477L3 6.05469L5 8.10547L4.52734 11L7 9.63477L9.47266 11L9 8.10547L11 6.05762L8.23633 5.63477L7 3L5.76367 5.63477Z",fill:"#2B83FF"})}):(0,l.jsx)(p.Z,{size:16}),onClick:e=>{if(e.stopPropagation(),!et)return G("popup","signin");en()},children:$?"차단 파트너":U?"내 공급망":"공급망 추가"})]}),(0,l.jsx)(B.Z,{badgeList:Y}),(0,l.jsxs)("div",{className:"flex flex-wrap w-full gap-x-12 max-mobile:max-w-full gap-y-2 max-w-[calc(100%_-_100px)]",children:[(0,l.jsx)("div",{className:"flex-shrink-0 w-full max-mobile:max-w-full max-mobile:line-clamp-2 line-clamp-3",children:null==R?void 0:R.map((e,t)=>(0,l.jsxs)(o.Z,{variant:"text-l",fontWeight:"regular",color:"textPrimary",className:(0,k.Z)("inline-block",{"mr-4":R.length-1!==t}),children:[e,R.length-1!==t&&" \xb7 "]},"service-".concat(t)))}),(0,l.jsxs)(o.Z,{variant:"text-l",fontWeight:"regular",color:"textSecondary",className:"block",children:[z," ",null!=M&&void 0!==_.x[M]&&" \xb7 ".concat(_.x[M])]})]})]})]}),(0,l.jsxs)("div",{className:"w-full flex flex-col gap-16",children:[T&&(0,l.jsx)(o.Z,{variant:"text-l",fontWeight:"regular",color:"textSecondary",className:"break-all line-clamp-2 max-w-[calc(100%_-_100px)] max-mobile:max-w-full",children:T}),(0,l.jsxs)("div",{className:"w-full flex flex-wrap gap-8",children:[q>0&&(0,l.jsx)(i.Z,{label:"누적거래 ".concat(m(q),"건"),color:"blue",variant:"tinted",size:"s"}),O>0&&(0,l.jsx)(i.Z,{label:"재거래 고객 ".concat(m(O),"명"),color:"blue",variant:"tinted",size:"s"}),V>0&&(0,l.jsx)(i.Z,{label:"".concat(m(V),"일째 활동중"),color:"blue",variant:"tinted",size:"s"}),H&&(0,l.jsx)(i.Z,{label:"세금계산서 발행 가능",color:"blue",variant:"tinted",size:"s"}),W&&(0,l.jsx)(i.Z,{label:"인증서",color:"blue",variant:"outlined",size:"s"})]})]}),(0,l.jsx)(s.Z,{variant:"single",size:"lg",rounded:!0,className:"absolute bottom-0 right-0 max-mobile:static",onClick:e=>{if(e.stopPropagation(),!et)return G("popup","signin");el()},children:(0,l.jsx)(h.Z,{})})]})]}):(0,l.jsx)(E.Z,{})});var F=R;R.displayName="SwiperSlide"},47156:function(e,t,n){"use strict";var l=n(80121),r=n(67769),a=n(87668),i=n(82379),s=n(95232),o=n(12067),c=n(98125),d=n(28269),u=n(6277);let x=(0,r.forwardRef)((e,t)=>(0,l.jsxs)("div",{ref:t,className:(0,u.Z)("flex gap-20 p-20 rounded-300 border-[0.7
1px] border-borderSecondary w-full max-h-249 shadow-200 bg-bgPrimary","max-mobile:flex-col max-mobile:gap-0 max-mobile:w-full max-mobile:max-h-fit max-mobile:h-fit max-mobile:min-h-353 max-mobile:p-0","cursor-pointer"),children:[(0,l.jsx)(a.Z,{size:"l",className:"block max-mobile:hidden"}),(0,l.jsx)("div",{className:(0,u.Z)("relative flex flex-col justify-between w-full min-w-0 max-h-209","max-mobile:p-16  max-mobile:max-h-fit max-mobile:h-fit max-mobile:items-start"),children:(0,l.jsxs)("div",{className:"max-mobile:w-full max-mobile:flex max-mobile:gap-10",children:[(0,l.jsx)(a.Z,{className:"hidden max-mobile:block"}),(0,l.jsxs)("div",{className:"w-full mb-16 max-mobile:h-fit max-mobile:min-w-0",children:[(0,l.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,l.jsxs)("div",{className:"flex items-center min-w-0 gap-8 max-mobile:flex-col max-mobile:gap-3 max-mobile:items-start",children:[(0,l.jsx)(s.Z,{width:160,height:24}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(d.Z,{className:"mr-2 text-textAccent min-w-16 min-h-16 [&>path]:text-bgSecondary"}),(0,l.jsx)(s.Z,{width:40,height:24})]})]}),(0,l.jsxs)("div",{className:"flex gap-4",children:[(0,l.jsx)(i.Z,{variant:"single",size:"lg",rounded:!0,children:(0,l.jsx)(c.Z,{})}),(0,l.jsx)(i.Z,{variant:"toggle",size:"lg",rounded:!0,children:(0,l.jsx)(o.Z,{})})]})]}),(0,l.jsxs)("div",{className:"flex flex-wrap w-full gap-x-12 max-mobile:max-w-full gap-y-2 max-w-[calc(100%_-_100px)]",children:[(0,l.jsx)("div",{className:"flex-shrink-0 w-full max-mobile:max-w-full max-mobile:line-clamp-2 line-clamp-3",children:(0,l.jsx)(s.Z,{width:320,height:24})}),(0,l.jsx)(s.Z,{width:240,height:24})]}),(0,l.jsx)(s.Z,{height:24,className:"mt-8 max-w-400 w-full"})]})]})})]}));t.Z=x,x.displayName="SwiperSlide"},23783:function(e,t,n){"use strict";n.d(t,{r:function(){return r},x:function(){return l}});let l={0:"10명 미만",10:"10명 - 20명",20:"20명 - 30명",30:"30명 - 50명",50:"50명 - 100명",100:"100명 - 200명",200:"200명 - 300명",300:"300명 - 500명",500:"500명 - 1000명",1e3:"1000명 - 10000명",1e4:"10000명 이상"},r=e=>{let t=Object.keys(l).map(Number).sort((e,t)=>e-t).findLast(t=>e>=t);return l[null!=t?t:0]}},80407:function(e,t,n){"use strict";var l=n(80121),r=n(1856),a=n(24145),i=n(83997),s=n(62256);t.Z=e=>{let{certifications:t=[],id:n="certifications",title:o="인증",right:c}=e,d=(null!=t?t:[]).filter(e=>!!(null==e?void 0:e.name));return 0===d.length?null:(0,l.jsx)(i.Z,{id:n,title:o,right:c,subtitle:"공개 명단과 사업자번호를 대조해 확인한 인증입니다.",children:(0,l.jsx)("ul",{className:"grid gap-x-40 gap-y-20 grid-cols-2 max-mobile:grid-cols-1",children:d.map(e=>{var t;let n=(0,s.m9)(e.baseDate);return(0,l.jsxs)("li",{className:"flex items-start gap-12",children:[(0,l.jsx)("span",{className:"flex items-center justify-center w-40 h-40 min-w-40 rounded-full bg-bglightAccent",children:(0,l.jsx)(a.Z,{size:20,className:"text-blue500"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 min-w-0",children:[(0,l.jsx)(r.Z,{variant:"text-xl",fontWeight:"bold",children:e.name}),(0,l.jsxs)(r.Z,{variant:"text-l",color:"textSecondary",children:[null!==(t=s.hq[e.name])&&void 0!==t?t:"공개 명단",n?" \xb7 ".concat(n," 기준"):""]})]})]},e.name)})})})}},82625:function(e,t,n){"use strict";var l=n(80121),r=n(32854),a=n(82742),i=n(1856),s=n(80573),o=n(25037),c=n(11591),d=n(6277),u=n(67769),x=n(83997),m=n(62256);let p=e=>/^\d{13}$/.test(e)?"".concat(e.slice(0,2),"-").concat(e.slice(2,6),"-").concat(e.slice(6)):e,h=e=>e&&/^\d{4}-\d{2}-\d{2}/.test(e)?e.slice(0,10).replace(/-/g,"."):"",f=e=>{if(!e)return null;let t="등록"===e;return(0,l.jsx)(a.Z,{size:"s",variant:t?"tinted":"outlined",color:t?"blue":"gray",label:e})};t.Z=e=>{let{patents:t=[],totalCnt:n=0,registeredCnt:a=0,recent5yCnt:g=0,isPartial:v=!1,id:b="patents",title:j="특허\xb7실용신안",right:w}=e,[y,C]=(0,u.useState)(!1),N=(null!=t?t:[]).filter(e=>!!(null==e?void 0:e.inventionName));if(n<=0&&0===N.length)return null;let Z="".concat(b,"-list"),k=Math.max(n,N.length),S=[!v&&a>
10?"등록 ".concat(a.toLocaleString(),"ê±´"):"",!v&&g>0?"최근 5년 출원 ".concat(g.toLocaleString(),"ê±´"):"","전체 ".concat(k.toLocaleString(),"ê±´")].filter(Boolean).join(" \xb7 "),E=0===N.length?"목록은 준비 중":v?"출원인별 최근 ".concat(N.length.toLocaleString(),"ê±´ 표시"):N.length<k?"최근 출원 ".concat(N.length,"ê±´ 표시"):"";return(0,l.jsxs)(x.Z,{id:b,title:j,right:w,subtitle:"".concat(S," \xb7 KIPRIS 특허정보 기준").concat(E?" \xb7 ".concat(E):""),children:[0===N.length&&(0,l.jsx)(i.Z,{variant:"text-l",color:"textSecondary",children:"KIPRIS 에서 확인된 특허\xb7실용신안 건수입니다. 개별 목록은 ê³§ 제공됩니다."}),(0,l.jsx)("ul",{id:Z,className:"flex flex-col",children:N.map((e,t)=>(0,l.jsxs)("li",{className:(0,d.Z)("flex flex-col gap-4 py-12 border-b border-borderBasic last:border-b-0",{hidden:!y&&t>=5}),children:[(0,l.jsxs)("div",{className:"flex items-center gap-8 flex-wrap",children:[(0,l.jsxs)("a",{href:(0,m.Pc)(e.applicationNumber),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-4 hover:underline min-w-0","aria-label":"".concat(e.inventionName," KIPRIS 원문 보기"),children:[(0,l.jsx)(i.Z,{variant:"text-xl",className:"break-all",children:e.inventionName}),(0,l.jsx)(c.Z,{size:14,className:"text-textSecondary min-w-[14px]"})]}),f(e.registrationStatus)]}),(0,l.jsx)(i.Z,{variant:"text-l",color:"textSecondary",children:[e.applicationDate?"출원 ".concat(h(e.applicationDate)):"","출원번호 ".concat(p(e.applicationNumber)),e.registrationDate?"등록 ".concat(h(e.registrationDate)):""].filter(Boolean).join(" \xb7 ")})]},"".concat(e.applicationNumber,"-").concat(t)))}),N.length>5&&(0,l.jsx)("div",{className:"flex w-full justify-center",children:(0,l.jsx)(r.Z,{variant:"text",color:"tertiary",startIcon:y?(0,l.jsx)(o.Z,{size:16}):(0,l.jsx)(s.Z,{size:16}),"aria-expanded":y,"aria-controls":Z,onClick:()=>C(e=>!e),children:y?"접기":"더보기 (".concat(N.length-5,"ê±´)")})})]})}},83997:function(e,t,n){"use strict";var l=n(80121),r=n(1856),a=n(6277);t.Z=e=>{let{id:t,title:n,subtitle:i,right:s,className:o,children:c}=e;return(0,l.jsxs)("section",{id:t,className:(0,a.Z)(["w-full","flex","flex-col","gap-20","p-24","bg-bgPrimary","rounded-[12px]","shadow-200","scroll-mt-[120px]"],["max-mobile:rounded-none","max-mobile:px-16"],o),children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-12 max-mobile:flex-col max-mobile:gap-8",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(r.Z,{as:"h2",variant:"title-xs",fontWeight:"bold",children:n}),i&&(0,l.jsx)(r.Z,{variant:"text-l",color:"textSecondary",children:i})]}),s]}),c]})}},62256:function(e,t,n){"use strict";n.d(t,{$H:function(){return d},$n:function(){return z},Ap:function(){return y},Dm:function(){return L},Pc:function(){return c},YP:function(){return E},ZQ:function(){return I},_l:function(){return S},di:function(){return x},fW:function(){return o},hq:function(){return a},lX:function(){return p},m9:function(){return N},rt:function(){return A},t1:function(){return F}});var l=n(23783),r=n(13492);let a={이노비즈:"이노비즈협회 공개 명단 \xb7 기술혁신형 중소기업",메인비즈:"메인비즈협회 공개 명단 \xb7 경영혁신형 중소기업",벤처기업:"벤처확인기관 공개 명단 \xb7 벤처기업확인",뿌리기업:"국가뿌리산업진흥센터 공개 명단 \xb7 뿌리기업 확인"},i=e=>(null!=e?e:"").replace(/\s+/g," ").trim(),s=e=>{let t=new Set;return(null!=e?e:[]).map(i).filter(e=>!(!e||t.has(e))&&(t.add(e),!0))},o=e=>{var t;return{...e,factoryName:i(e.factoryName),factoryStreetAddress:i(e.factoryStreetAddress),region:i(e.region),ntsStatus:i(e.ntsStatus),industrialComplex:i(e.industrialComplex),complexName:i(e.complexName),homepageUrl:i(e.homepageUrl),industries:s(e.industries),products:s(e.products),ingredients:s(e.ingredients),categories:s(e.categories),certifications:(null!==(t=e.certifications)&&void 0!==t?t:[]).map(e=>({...e,name:i(null==e?void 0:e.name)})).filter(e=>!!e.name)}},c=e=>"https://doi.org/10.8080/".concat(e),d="[email protected]",u=[["서울특별시","서울"],["부산광역시","부산"],["대구광역시","대구"],["인천광역시","인천"],["광주광역시","광주"],["대전광역시","대전"],["울산광역시","울산"],["세종특별자치시","세종"],["경기도","경기"],["강원특별자치도","강원"],["강원도","강원"],["충청북도","충북"],["충청남도","충남"],["전북특별자치도","전북"],["전라북도","전북"],["전라남도","전남"],["경상북도","경북"],["경상남도","경남"],["제주특별자치도","제주"],["제주도","제주"]],x=(e,t)=>{var n,l,r;
1let a=(null!=e?e:"").trim().split(/\s+/).filter(Boolean),i=null!==(l=a[0])&&void 0!==l?l:"";return[null!==(r=null===(n=u.find(e=>{let[t]=e;return i.startsWith(t)}))||void 0===n?void 0:n[1])&&void 0!==r?r:(null!=t?t:"").trim(),a[1]&&/(시|군|구)$/.test(a[1])?a[1]:""].filter(Boolean).join(" ")},m=(e,t,n)=>{let l=e.trim().replace(/[)\]'"”’]+$/,"").slice(-1),r=l.charCodeAt(0);if(Number.isNaN(r)||r<44032||r>55203){var a;if(/[0-9]$/.test(l))return"013678".includes(l)?t:n;let r=(null!==(a=e.trim().match(/[A-Za-z]+$/))&&void 0!==a?a:[""])[0];return r&&r===r.toUpperCase()?/[LMNR]$/.test(r)?t:n:/[bcgklmnpt]$/i.test(l)?t:n}return(r-44032)%28==0?n:t},p=e=>{let t=e.indexOf("-");return t>0&&e.slice(0,t).includes("/")?e.slice(t+1).trim():e.trim()},h="완제품/위탁생산-",f={"절삭(CNC)":"CNC가공","금형 제작/사출":"금형\xb7사출","전자회로(PCB)":"PCB제작","소성가공(미지정)":"소성가공","제품 디자인":"제품설계","디자인/설계":"제품설계","원스톱 제품개발":"제품개발"},g=e=>e.replace(/\s+\/\s+/g,"\xb7"),v=e=>s((null!=e?e:[]).map(i).filter(e=>e&&!e.startsWith(h)).map(e=>{var t;let n=e.split("-")[0].trim();return null!==(t=f[n])&&void 0!==t?t:n})),b=e=>s((null!=e?e:[]).map(i).filter(e=>e.startsWith(h)).map(e=>g(p(e)))),j=e=>i(e).replace(/업$/,"").replace(/\s*제조$/,"").trim(),w=(e,t)=>{let n=j(t);return s(e).filter(e=>!n||e!==n)},y=e=>{let t=i(e);return!t||/\s/.test(t)?"":/^https?:\/\/[a-z0-9-]+(\.[a-z0-9-]+)*\.[a-z]{2,}(:\d+)?([/?#]\S*)?$/i.test(t)?t:/^[a-z0-9-]+(\.[a-z0-9-]+)*\.[a-z]{2,}(:\d+)?([/?#]\S*)?$/i.test(t)?"http://".concat(t):""},C=(e,t)=>{let n=e.slice(0,t).join(", ");return e.length>t?"".concat(n," 등"):n},N=e=>e&&/^\d{4}-\d{2}/.test(e)?e.slice(0,7):"",Z=e=>e&&/^\d{4}/.test(e)?e.slice(0,4):"",k=e=>{if(!e.npsSubscriberCnt||e.npsSubscriberCnt<=0)return"";let t=N(e.npsSnapshotDate);return"국민연금 가입자 ".concat(e.npsSubscriberCnt.toLocaleString(),"명").concat(t?" (".concat(t," 기준)"):"")},S=e=>k(e)||(e.workerTotalCnt&&e.workerTotalCnt>0?"종업원 ".concat((0,l.r)(e.workerTotalCnt)):""),E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=Z(e.factoryRegDate);if(!n)return"";let l=t.getFullYear()-Number(n);return l>=1?"".concat(n,"년 공장등록 \xb7 ").concat(l,"년차"):"".concat(n,"년 공장등록")},I=e=>{var t;if(!1!==e.isOperating)return"";let n=(null!==(t=e.ntsStatus)&&void 0!==t?t:"").replace(/자$/,"")||"휴\xb7폐업 또는 미등록",l=e.ntsEndDate?" (".concat(e.ntsEndDate.replace(/-/g,"."),")"):"",r=e.ntsCheckedDate?" \xb7 ".concat(e.ntsCheckedDate.replace(/-/g,".")," 조회"):"";return"국세청 사업자등록 상태 조회 결과 ".concat(n).concat(l).concat(r)},L=e=>{var t;let n=["공장등록 정보(산업단지 입주기업 DB)"];e.npsSubscriberCnt&&n.push("국민연금 사업장 정보"),(null===(t=e.certifications)||void 0===t?void 0:t.length)&&n.push("공개 인증 명단"),e.patentTotalCnt&&n.push("KIPRIS 특허정보"),e.ntsStatus&&n.push("국세청 사업자 상태");let l=N(e.infoBaseDate);return"출처: ".concat(n.join(" \xb7 ")).concat(l?" \xb7 ".concat(l," 기준"):"")},A=e=>B(o(e)),B=e=>{var t,n,l,r,a,i,s,o,c;let d=null!==(t=e.factoryName)&&void 0!==t?t:"";if(!d)return"";let u=[],h=x(e.factoryStreetAddress,e.region),f=(null!==(n=e.industries)&&void 0!==n?n:[]).filter(Boolean)[0],v=f?"".concat(f.replace(/업$/,"")," 기업"):"제조 기업";u.push(h?"".concat(d).concat(m(d,"은","는")," ").concat(h,"에 있는 ").concat(v,"입니다."):"".concat(d).concat(m(d,"은","는")," ").concat(v,"입니다."));let b=w(e.products,f);if(b.length){let e=C(b,3);u.push("".concat(e).concat(m(e,"을","를")," 생산합니다."))}let j=(null!==(l=e.categories)&&void 0!==l?l:[]).filter(Boolean).map(e=>g(p(e)));j.length&&u.push("주요 제조 공정은 ".concat(C(j,3),"입니다."));let y=(null!==(r=e.ingredients)&&void 0!==r?r:[]).filter(Boolean);y.length&&u.push("주원자재는 ".concat(C(y,3),"입니다."));let N=(null!==(a=e.complexName)&&void 0!==a?a:"").trim(),k=(null!==(i=e.industrialComplex)&&void 0!==i?i:"").trim();N?u.push("".concat(N).concat(k&&!N.includes(k)?"(".concat(k,")"):"","에 입주해 있습니다.")):k&&u.push("".concat(k," 입주 기업입니다."));let E=Z(e.factoryRegDate),L=S(e);E&&L?u.push("".concat(E,"년에 공장을 등록했으며, ").concat(L," 규모입니다.")):E?u.push("".concat(E,"년에 공장을 등록했습니다.")):L&&u.push("".concat(L," 규모입니다."));let A=(null!==(s=e.certifications)&&void 0!==s?s:[]).map(e=>
1e.name).filter(Boolean);if(A.length&&u.push("".concat(A.join(" \xb7 ")," 인증 기업입니다.")),e.patentTotalCnt&&e.patentTotalCnt>0){let t=e.patentIsPartial?0:null!==(o=e.patentRegisteredCnt)&&void 0!==o?o:0,n=e.patentIsPartial?0:null!==(c=e.patentRecent5yCnt)&&void 0!==c?c:0,l=[t?"등록 ".concat(t,"건"):"",n?"최근 5년 출원 ".concat(n,"건"):""].filter(Boolean).join(", ");u.push("KIPRIS 기준 특허\xb7실용신안 ".concat(e.patentTotalCnt.toLocaleString(),"건").concat(l?"(".concat(l,")"):"","을 보유하고 있습니다."))}return!1===e.isOperating&&u.push("".concat(I(e),"입니다.")),u.join(" ")},_=(e,t)=>e.length>t?"".concat(e.slice(0,t-1).trimEnd(),"…"):e,R=function(e){var t,n,r,a;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:110,o=x(e.factoryStreetAddress,e.region),c=(null!==(t=e.industries)&&void 0!==t?t:[]).filter(Boolean)[0],d=c?/제조업$/.test(c)?"".concat(c.replace(/업$/,""),"기업"):"".concat(c.replace(/업$/,"")," 기업"):"제조기업",u=[],m=(e,t)=>{if(!t.length)return;let n=t.slice(0,3);u.push(n.map((t,l)=>"".concat(e,": ").concat(n.slice(0,n.length-l).join("\xb7"))))};!1===e.isOperating&&u.push([I(e)]);let p=[];if(e.patentTotalCnt&&e.patentTotalCnt>0){let t=e.patentIsPartial?0:null!==(n=e.patentRegisteredCnt)&&void 0!==n?n:0;p.push("특허 ".concat(e.patentTotalCnt.toLocaleString(),"건").concat(t?"(등록 ".concat(t.toLocaleString(),")"):""))}let h=(null!==(r=e.certifications)&&void 0!==r?r:[]).map(e=>e.name).filter(Boolean);h.length&&p.push("".concat(h.join("\xb7")," 인증")),p.length&&u.push([p.join(", ")]),m("생산품",w(e.products,c)),m("공정",v(e.categories));let f=(null!==(a=e.complexName)&&void 0!==a?a:"").trim();if(f&&u.push(["".concat(f," 입주")]),e.npsSubscriberCnt&&e.npsSubscriberCnt>0){let t=N(e.npsSnapshotDate);u.push(["국민연금 가입자 ".concat(e.npsSubscriberCnt.toLocaleString(),"명").concat(t?"(".concat(t,")"):"")])}else e.workerTotalCnt&&e.workerTotalCnt>0&&u.push(["종업원 ".concat((0,l.r)(e.workerTotalCnt))]);m("원자재",s(e.ingredients));let g="".concat(_([o,d].filter(Boolean).join(" "),i-1),".");for(let e of u){let t=e.map(e=>"".concat(g," ").concat(e,".")).find(e=>e.length<=i);t&&(g=t)}return g},F=function(e){var t,n;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=o(e),a=null!==(t=r.factoryName)&&void 0!==t?t:"",i=x(r.factoryStreetAddress,r.region),s=v(r.categories),c=(null!==(n=r.industries)&&void 0!==n?n:[]).filter(Boolean)[0],d=b(r.categories)[0],u=s.length?"".concat(s.slice(0,2).join("\xb7")," 업체"):c?"".concat(c.replace(/업$/,""),"업체"):d?"".concat(d," 업체"):"제조업체",m=[a?"".concat(a," (").concat(l.getFullYear(),")"):"",[i,u].filter(Boolean).join(" ")].filter(Boolean).join(" | ");return{title:"".concat(m," - 캐파(CAPA)"),description:R(r)}},z=(e,t)=>{var n;let l=o(e),a=(0,r.Rm)(l.factoryStreetAddress),c=a.region||i(l.region),{locality:d,street:u}=a,x=(null!==(n=l.industries)&&void 0!==n?n:[]).filter(Boolean)[0],m=s([...v(l.categories),...w(l.products,x).slice(0,3)]),p=y(l.homepageUrl);return{"@context":"https://schema.org","@type":"Organization","@id":"".concat(t,"#org"),name:l.factoryName,url:t,description:R(l),...c||d||u?{address:{"@type":"PostalAddress",addressCountry:"KR",...c?{addressRegion:c}:{},...d?{addressLocality:d}:{},...u?{streetAddress:u}:{}}}:{},...m.length?{knowsAbout:m}:{},...l.npsSubscriberCnt&&l.npsSubscriberCnt>0?{numberOfEmployees:{"@type":"QuantitativeValue",value:l.npsSubscriberCnt}}:{},...p?{sameAs:[p]}:{}}}},93198:function(e,t,n){"use strict";var l=n(80121),r=n(44672),a=n(1856),i=n(32854),s=n(24710),o=n(44871),c=n(4583);t.Z=e=>{let{shareLink:t}=e,{createSnackbar:n}=(0,o.Z)(),{closeModal:d}=(0,s.Z)(),u=async e=>{switch(e){case"facebook":window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(t));return;case"band":window.open("http://band.us/plugin/share?body="+encodeURIComponent(t));return;case"kakao":if(void 0===window.Kakao)return n("kakao module not fnounded");window.Kakao.Share.sendScrap({requestUrl:t});return;default:{if(!navigator.clipboard)return n("URL 복사를 지원하지 않습니다");let e=navigator.clipboard;
1return await e.writeText(t),n("링크가 복사되었습니다")}}};return(0,l.jsxs)(r.Z,{className:"w-440",open:!0,onClose:d,hiddenClose:!0,children:[(0,l.jsx)(r.Z.Header,{className:"h-73 p-24 max-mobile:px-16",children:(0,l.jsx)(a.Z,{variant:"title-s",fontWeight:"bold",children:"공유하기"})}),(0,l.jsxs)(r.Z.Contents,{className:"h-150 px-24 flex flex-col gap-[10px] max-mobile:px-16",children:[(0,l.jsx)(a.Z,{variant:"text-xl",children:"회사 프로필을 SNS에서 손쉽게 공유해보세요."}),(0,l.jsxs)("div",{className:"flex justify-center items-center bg-bgSecondary rounded-[8px] h-114 gap-32",children:[(0,l.jsxs)("div",{tabIndex:0,className:"w-74 h-82 flex flex-col items-center justify-center gap-8 cursor-pointer hover:bg-bgTertiary rounded-[8px]",onClick:()=>u("kakao"),children:[(0,l.jsx)(c.lF.KaKao,{}),(0,l.jsx)(a.Z,{variant:"text-l",fontWeight:"regular",children:"카카오"})]}),(0,l.jsxs)("div",{tabIndex:0,className:"w-74 h-82 flex flex-col items-center justify-center gap-8 cursor-pointer hover:bg-bgTertiary rounded-[8px]",onClick:()=>u("band"),children:[(0,l.jsx)(c.lF.Naver,{}),(0,l.jsx)(a.Z,{variant:"text-l",fontWeight:"regular",children:"네이버 밴드"})]}),(0,l.jsxs)("div",{className:"w-74 h-82 flex flex-col items-center justify-center gap-8 cursor-pointer hover:bg-bgTertiary rounded-[8px]",tabIndex:0,onClick:()=>u("facebook"),children:[(0,l.jsx)(c.lF.Facebook,{}),(0,l.jsx)(a.Z,{variant:"text-l",fontWeight:"regular",children:"페이스북"})]})]})]}),(0,l.jsxs)(r.Z.Buttons,{className:"w-full p-24 max-mobile:px-16",children:[(0,l.jsx)(i.Z,{size:"lg",fullWidth:!0,color:"tertiary",onClick:()=>d(),children:"취소"}),(0,l.jsx)(i.Z,{size:"lg",fullWidth:!0,onClick:()=>u("default"),children:"URL 복사하기"})]})]})}},40406:function(e,t,n){"use strict";n.d(t,{X:function(){return f}});var l=n(80121),r=n(32854),a=n(26318),i=n(44672),s=n(1856),o=n(24710),c=n(44871),d=n(67769),u=n(69738),x=n(3166),m=n(55988),p=n(44685);let h=["#B0634A","#D6615F","#EF4343","#FF543A","#FF7639","#FFA300","#2AF094","#23C123","#76E832","#BAF059","#FFEA82","#FFCE00","#85EDC2","#93EAF3","#90D3FC","#2B83FF","#9BB7FF","#B09CFF","#868E96","#CDBBBE","#D2A1A8","#FF89B0","#D961FB","#944DFF"];var f=e=>{let{defaultGroupType:t,onSuccess:n}=e,{closeModal:f}=(0,o.Z)(),{createSnackbar:g}=(0,c.Z)(),v=(0,u.useQueryClient)(),{data:b}=(0,m.pgb)(),{contextmenu:j}=(0,p.av)(),w=t||j.groupType||(j.isMyRfq?"ORDER":"CONTRACT"),y="PARTNER"===w,[C,N]=(0,d.useState)(""),[Z,k]=(0,d.useState)("#868E96"),{mutateAsync:S}=(0,u.useMutation)(x.fr.createFolder),E=async()=>{var e;if(!C.trim()){g("폴더 이름을 입력해주세요");return}if(!(null==b?void 0:null===(e=b.result)||void 0===e?void 0:e.userId)&&!y){g("사용자 정보를 불러올 수 없습니다");return}if(!w){g("그룹 타입을 확인할 수 없습니다");return}try{y?(await S({folderName:C.trim(),folderType:"PARTNER",parentId:void 0,color:Z})).success?(await v.invalidateQueries((0,m.VVZ)()),g("그룹이 생성되었습니다"),f(),null==n||n()):g("그룹 생성에 실패했습니다"):(await S({userId:b.result.userId,folderName:C.trim(),folderType:"PROJECT",parentId:void 0,color:Z,groupType:w})).success?(await v.invalidateQueries((0,m.pAY)()),g("그룹이 생성되었습니다"),f(),null==n||n()):g("그룹 생성에 실패했습니다")}catch(e){g("그룹 생성에 실패했습니다")}},I=()=>{f()};return(0,l.jsxs)(i.Z,{hiddenClose:!0,open:!0,onClose:I,children:[(0,l.jsx)(i.Z.Header,{children:(0,l.jsx)(s.Z,{variant:"title-s",fontWeight:"bold",children:"새 리스트 만들기"})}),(0,l.jsxs)(i.Z.Contents,{className:"px-24 pb-16 max-mobile:px-16",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)(s.Z,{variant:"text-xl",children:["리스트 이름 ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsx)(a.Z,{placeholder:"리스트 이름을 입력해 주세요",value:C,fullWidth:!0,onChange:e=>N(e.target.value),maxLength:30}),(0,l.jsx)("div",{className:"flex justify-end",children:(0,l.jsxs)(s.Z,{variant:"text-s",color:"textTertiary",children:[C.length,"/30"]})})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(s.Z,{variant:"text-xl",children:"리스트 색상"}),(0,l.jsx)("div",{className:"grid grid-cols-6 items-center justify-items-center",children:h.map(e=>{let t=Z===e;return(0,l.jsx)("div",{onClick:()=>k(e),className:"w-32 h-32 m-10 rounded-full transition-all relative cursor-pointer",style:{backgroundColor:e,boxShadow:t?"0 0 0 2px white, 0 0 0 4px ".concat(e):void 0},children:t&&(0,l.jsx)("svg",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M13.3332 4L5.99984 11.3333L2.6665 8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},e)})})]})]}),(0,l.jsxs)(i.Z.Buttons,{children:[(0,l.jsx)(r.Z,{fullWidth:!0,color:"tertiary",onClick:I,children:"닫기"}),(0,l.jsx)(r.Z,{fullWidth:!0,onClick:E,children:"만들기"})]})]})}},3229:function(e,t,n){"use strict";var l=n(80121),r=n(22197),a=n(67769),i=n(32854),s=n(21767),o=n(44672),c=n(1856),d=n(27585),u=n(24710),x=n(44871),m=n(56636),p=n(93910),h=n(22060),f=n(80339),g=n(21037),v=n(69738),b=n(3166),j=n(55988),w=n(40406),y=n(28969),C=n(71744);let N=e=>{var t,n,Z;let{partnerName:k,partnerId:S,likedPartnerId:E,parentIds:I,isBlocked:L=!1,onSubmit:A,onLikeSuccess:B,onClose:_}=e,{openModal:R,closeModal:F}=(0,u.Z)(),{createSnackbar:z}=(0,x.Z)(),M=(0,v.useQueryClient)(),T=(0,d.Z)("mobile"),D=(0,C.useRouter)(),P=(e,t)=>{if(!t){z(e);return}z((0,l.jsxs)("div",{className:"!w-full flex justify-between items-center gap-8",children:[(0,l.jsx)(c.Z,{variant:"text-m",color:"textWhite",children:e}),(0,l.jsx)(i.Z,{variant:"text",size:"s",onClick:()=>D.push("/project?folderId=".concat(t,"&v=liked-partner-list")),children:(0,l.jsx)(c.Z,{variant:"text-m",color:"blue400",children:"바로가기"})})]}))},[q,O]=(0,a.useState)(new Set),[V,H]=(0,a.useState)(L),{data:W}=(0,j.jeM)({folderId:void 0},{staleTime:0,refetchOnMount:!0}),U=[...null!==(Z=null==W?void 0:null===(t=W.result)||void 0===t?void 0:t.folderList)&&void 0!==Z?Z:[]].sort((e,t)=>
1(t.isDefault?1:0)-(e.isDefault?1:0)).map(e=>({id:e.id,name:e.folderName||"",color:e.folderColor||"#FFCE00",isDefault:e.isDefault})),$=null===(n=U.find(e=>e.isDefault))||void 0===n?void 0:n.id,{mutateAsync:Q}=(0,v.useMutation)(b.fr.updateTargetLocation),{mutateAsync:K}=(0,v.useMutation)(b.fr.updatePartnerLike),{mutateAsync:Y}=(0,v.useMutation)(b.fr.updateUserBlock);(0,a.useEffect)(()=>{L?(O(new Set),H(!0)):(E?I&&I.length>0?O(new Set(I)):$?O(new Set([$])):O(new Set):O(new Set),H(!1))},[I,L,E,$]),(0,a.useEffect)(()=>()=>{O(new Set),H(!1)},[]);let J=e=>{O(t=>{let n=new Set(t);return n.has(e)?n.delete(e):(n.add(e),H(!1)),n})},G=()=>{H(e=>{let t=!e;return t&&O(new Set),t})},X=async()=>{try{if(!V&&0===q.size){if(!(await Y({partnerId:S})).success){z("차단 해제에 실패했습니다",{color:"error"});return}z("차단이 해제되었습니다"),_(),null==A||A(),M.refetchQueries({predicate:e=>"useSelectPartnerSeenOrBlockedList"===e.queryKey[0]}),M.refetchQueries({predicate:e=>"selectPartnerList"===e.queryKey[0]});return}if(!V&&q.size>0){let t=Array.from(q),n=await K({partnerId:S,parentIds:t});if(!n.success){var e;let t=y.m["찜 실패"];switch(null===(e=n.exception)||void 0===e?void 0:e.error){case"2004":t="선택한 리스트가 존재하지 않습니다";break;case"2005":t="선택한 항목이 리스트가 아닙니다";break;case"2006":t="다른 사용자의 리스트는 사용할 수 없습니다";break;case"2029":t=y.m["소속회사 찜 시도"];break;case"2031":t=y.m["탈퇴한 회사 찜"]}z(t,{color:"error"});return}let l="차단이 해제되고 찜 목록에 추가되었습니다",a=U.find(e=>t.includes(e.id));if(1===t.length){let e=null==a?void 0:a.name;l=e?"차단이 해제되고 ".concat(e,"에 추가되었습니다"):"차단이 해제되고 찜 목록에 추가되었습니다"}else t.length>1&&(l="차단이 해제되고 ".concat(t.length,"개 리스트에 추가되었습니다"));(0,r.L9)("supply_chain_add",{partner_id:String(S)}),P(l,null==a?void 0:a.id),_(),null==A||A(),M.invalidateQueries((0,j.VVZ)()),M.refetchQueries({predicate:e=>"useSelectPartnerSeenOrBlockedList"===e.queryKey[0]}),M.refetchQueries({predicate:e=>"selectPartnerList"===e.queryKey[0]});return}_()}catch(e){z("처리 중 오류가 발생했습니다",{color:"error"})}},ee=async()=>{try{var e,t,n,l;if(V&&E){let t=await Y({partnerId:S});if(!t.success){let n="차단 처리에 실패했습니다";switch(null===(e=t.exception)||void 0===e?void 0:e.error){case"2028":n="거래중인 파트너는 차단할 수 없습니다";break;case"2030":n="내 회사는 차단이 불가능합니다"}z(n,{color:"error"});return}z("차단되었습니다"),_(),null==A||A(),M.invalidateQueries((0,j.VVZ)()),M.refetchQueries({predicate:e=>"useSelectPartnerSeenOrBlockedList"===e.queryKey[0]}),M.refetchQueries({predicate:e=>"selectPartnerList"===e.queryKey[0]});return}if(E){if(0===q.size){if(!(await K({partnerId:S})).success){z("리스트 변경에 실패했습니다",{color:"error"});return}M.invalidateQueries((0,j.VVZ)()),M.refetchQueries({predicate:e=>"selectPartnerList"===e.queryKey[0]}),z("리스트에서 제거되었습니다"),_(),null==A||A();return}let e=Array.from(q),n=await Q({targetId:E,parentIds:e,folderType:"PARTNER"});if(!n.success){let e="리스트 변경에 실패했습니다";switch(null===(t=n.exception)||void 0===t?void 0:t.error){case"2004":e="선택한 리스트가 존재하지 않습니다";break;case"2005":e="선택한 항목이 리스트가 아닙니다";break;case"2006":e="다른 사용자의 리스트는 사용할 수 없습니다"}z(e,{color:"error"});return}M.invalidateQueries((0,j.VVZ)()),M.refetchQueries({predicate:e=>"selectPartnerList"===e.queryKey[0]}),z("리스트가 변경되었습니다"),_(),null==A||A();return}if(V&&!E){let e=await Y({partnerId:S});if(!e.success){let t="차단 처리에 실패했습니다";switch(null===(n=e.exception)||void 0===n?void 0:n.error){case"2028":t="거래중인 파트너는 차단할 수 없습니다";break;case"2030":t="내 회사는 차단이 불가능합니다"}z(t,{color:"error"});return}z("차단되었습니다"),_(),null==A||A(),M.refetchQueries({predicate:e=>"useSelectPartnerSeenOrBlockedList"===e.queryKey[0]}),M.refetchQueries({predicate:e=>"selectPartnerList"===e.queryKey[0]});return}if(!E){let e=Array.from(q),t=await K({partnerId:S,parentIds:e.length>0?e:void 0});if(!t.success){let e=y.m["찜 실패"];switch(null===(l=t.exception)||void 0===l?void 0:l.error){case"2004":e="선택한 리스트가 존재하지 않습니다";break;case"2005":e="선택한 항목이 리스트가 아닙니다";break;case"2006":e="다른 사용자의 리스트는 사용할 수 없습니다";break;case"2029":e=y.m["소속회사 찜 시도"];break;case"2031":e=y.m["탈퇴한 회사 찜"]}z(e,{color:"error"});return}M.invalidateQueries((0,j.VVZ)()),M.refetchQueries({predicate:e=>"selectPartnerList"===e.queryKey[0]});let n="찜 목록에 추가되었습니다",a=U.find(t=>e.includes(t.id));if(1===e.length){let e=null==a?void 0:a.name;n=e?"".concat(e,"에 추가되었습니다"):"찜 목록에 추가되었습니다"}else e.length>1&&(n="".concat(e.length,"개 리스트에 추가되었습니다"));(0,r.L9)("supply_chain_add",{partner_id:String(S)}),_(),null==A||A(),B?B({partnerId:S,partnerName:k}):P(n,null==a?void 0:a.id);return}_()}catch(e){z("처리 중 오류가 발생했습니다",{color:"error"})}},et=async()=>{L?await X():await ee()},en=!!E;return(0,l.jsxs)(o.Z,{hiddenClose:!0,zIndex:1302,open:!0,onClose:_,className:"h-fit",children:[(0,l.jsx)(o.Z.Header,{children:k?(0,l.jsx)(c.Z,{variant:"title-s",fontWeight:"bold",className:"truncate",children:k}):(0,l.jsx)(c.Z,{variant:"title-s",fontWeight:"bold",children:en?"그룹 설정":"해당 찜 파트너의 폴더를 선택하세요"})}),(0,l.jsxs)(o.Z.Contents,{className:"flex flex-col h-full",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-8 px-24 max-mobile:px-16",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(c.Z,{variant:"text-xl",children:"공급망 리스트"}),(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(f.Z,{size:16,color:g.O9.textAccent,className:"flex-shrink-0"}),(0,l.jsx)(c.Z,{variant:"text-m",color:"textAccent",children:"공급망에 저장한 파트너들에게만 선별적으로 견적을 요청할 수 있습니다."})]})]}),(0,l.jsx)(i.Z,{onClick:()=>{_(),R((0,l.jsx)(w.X,{defaultGroupType:"PARTNER",onSuccess:()=>{F(),setTimeout(()=>{R((0,l.jsx)(N,{partnerName:k,partnerId:S,likedPartnerId:E,parentIds:I,isBlocked:L,onSubmit:A,onLikeSuccess:B,onClose:F}))},100)}}))},color:"outlineBlue",fullWidth:!0,className:"gap-8",startIcon:(0,l.jsx)(m.Z,{size:20}),children:(0,l.jsx)(c.Z,{variant:"text-l",fontWeight:"medium",color:"textAccent",children:"새 리스트 만들기"})})]}),(0,l.jsx)("div",{className:"px-24 pb-8 max-mobile:px-16 mt-8 overflow-y-auto max-h-[260px]",children:U.map(e=>{let t=q.has(e.id);return(0,l.jsxs)("div",{onClick:()=>J(e.id),className:"flex items-center justify-between py-12 border-b border-borderBasic cursor-pointer transition-colors",children:[(0,l.jsxs)("div",{className:"flex items-center gap-8",children:[(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM5.76367 5.63477L3 6.05469L5 8.10547L4.52734 11L7 9.63477L9.47266 11L9 8.10547L11 6.05762L8.23633 5.63477L7 3L5.76367 5.63477Z",fill:e.isDefault?"#2B83FF":e.color||"#FFCE00"})}),(0,l.jsx)(c.Z,{variant:T?"text-xl":"title-xs",children:e.name})]}),(0,l.jsx)(s.Z,{size:T?18:24,checked:t,onChange:()=>J(e.id),onClick:e=>e.stopPropagation()})]},e.id)})}),(0,l.jsxs)("div",{className:"flex flex-col gap-8 px-24 max-mobile:px-16 mt-24",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(c.Z,{variant:"text-xl",children:"차단 리스트"}),(0,l.jsxs)("div",{className:"flex items-center gap-4 ",children:[(0,l.jsx)(p.Z,{size:16,color:g.O9.bgNegative,className:"flex-shrink-0"}),(0,l.jsx)(c.Z,{variant:"text-m",color:"textNegative",children:"파트너를 차단하면 채팅 및 견적서, 발주서 발행이 제한됩니다."})]})]}),(0,l.jsxs)("div",{onClick:G,className:"flex items-center justify-between py-12 cursor-pointer transition-colors",children:[(0,l.jsxs)("div",{className:"flex items-center gap-8",children:[(0,l.jsx)("div",{className:"w-24 h-24 flex items-center justify-center",children:(0,l.jsx)(h.Z,{size:24,color:g.O9.bgNegative})}),(0,l.jsx)(c.Z,{variant:T?"text-xl":"title-xs",children:"차단 파트너"})]}),(0,l.jsx)(s.Z,{size:T?18:24,checked:V,onChange:G,onClick:e=>e.stopPropagation()})]})]})]}),(0,l.jsxs)(o.Z.Buttons,{children:[(0,l.jsx)(i.Z,{fullWidth:!0,color:"tertiary",onClick:_,children:"닫기"}),(0,l.jsx)(i.Z,{fullWidth:!0,onClick:et,children:"저장"})]})]})};t.Z=N},15176:function(e,t,n){"use strict";var l=n(80121),r=n(22197),a=n(32854),i=n(44672),s=n(1856),o=n(71744),c=n(67769);t.Z=e=>{let{partnerId:t,partnerName:n,onClose:d}=e,u=(0,o.useRouter)();return(0,c.useEffect)(()=>{(0,r.L9)("supply_chain_rfq_invite_shown",{partner_id:String(t)})},[t]),(0,l.jsxs)(i.Z,{hiddenClose:!0,zIndex:1302,open:!0,onClose:d,className:"h-fit",children:[(0,l.jsx)(i.Z.Header,{children:(0,l.jsx)(s.Z,{variant:"title-s",fontWeight:"bold",children:"공급망 견적요청"})}),(0,l.jsx)(i.Z.Contents,{className:"px-24 max-mobile:px-16",children:(0,l.jsx)(s.Z,{variant:"text-xl",color:"textPrimary",className:"whitespace-pre-line",children:"방금 등록한 ".concat(n?"".concat(n," "):"파트너","에게\n바로 공급망 견적요청을 보낼까요?")})}),(0,l.jsxs)(i.Z.Buttons,{children:[(0,l.jsx)(a.Z,{fullWidth:!0,color:"tertiary",onClick:d,children:"나중에"}),(0,l.jsx)(a.Z,{fullWidth:!0,color:"primary",onClick:()=>{(0,r.L9)("supply_chain_rfq_invite_clicked",{partner_id:String(t)}),d(),u.push("/rfq?requestType=2&selectedPartnerId=".concat(t)).then(()=>{window.setTimeout(()=>window.scrollTo({top:0}),150)})},children:"공급망 견적요청"})]})]})}},51104:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var l=n(80121),r=n(93711),a=n.n(r),i=e=>{let{title:t,description:n,image:r,url:i,siteHost:s,isMakeSite:o,jsonLd:c}=e,d=s||(o?"https://make.capa.ai":void 0),u=o?"assets/make/make-og.png":r||"og/og_main.png",x=d||"https://capa.ai/static",m=/^https?:\/\//i.test(null!=i?i:"")?i:"".concat(d||"https://capa.ai","/").concat(i||""),p=()=>
1{if(!(u&&u.indexOf("http")>=0))return"".concat(x,"/").concat(u);{let e=new URL(u);return e.searchParams.set("og","true"),e.toString()}};return(0,l.jsxs)(a(),{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:n}),void 0!==i&&(0,l.jsx)("link",{rel:"canonical",href:m}),(0,l.jsx)("meta",{property:"og:type",content:"website"}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:n}),(0,l.jsx)("meta",{property:"og:image",content:p()}),(0,l.jsx)("meta",{property:"og:url",content:m}),(0,l.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,l.jsx)("meta",{property:"og:image:height",content:"630"}),c&&(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(c).replace(/</g,"\\u003c")}}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:n}),(0,l.jsx)("meta",{name:"twitter:image",content:p()})]})}},28969:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var l=n(1052);let r={"탈퇴한 회사 찜":"탈퇴한 파트너는 찜할 수 없습니다",차단해제성공:e=>(0,l.dd)("".concat(e,"#{을} 차단해제했습니다")),차단해제실패:"파트너 차단해제를 실패했습니다","찜 성공":e=>(0,l.dd)("".concat(e,"#{을} 찜했습니다")),"찜 해제":e=>(0,l.dd)("".concat(e,"#{을} 찜 해제했습니다")),"찜 실패":"파트너 찜을 실패했습니다","찜 해제실패":"파트너 찜 해제에 실패했습니다","소속회사 찜 시도":"본인 회사는 찜할 수 없습니다","차단된 파트너 찜 시도":"차단된 파트너는 찜할 수 없습니다.","견적요청 권한 없음":"견적 요청 권한이 없습니다","프로필 편집 권한 없음":"프로필 편집 권한이 없습니다","업로드 실패":e=>"".concat(e," 업로드에 실패했습니다"),"삭제 실패":e=>"".concat(e," 삭제에 실패했습니다"),"장바구니 담기 성공":"장바구니에 제품이 담겼습니다","장바구니 담기 실패":"장바구니 담기에 실패했습니다. 잠시 후 다시 시도해 주세요","장바구니 빼기 실패":"상품 삭제에 실패했습니다. 잠시 후 다시 시도해 주세요","장바구니 옵션 변경 성공":"상품 옵션이 수정됐습니다","장바구니 변경 실패":"상품 옵션 변경에 실패했습니다. 잠시 후 다시 시도해 주세요"}},66372:function(e,t,n){"use strict";n.d(t,{T:function(){return l},r:function(){return r}});let l=e=>e?"/services/"+encodeURIComponent(e.split("/")[2].normalize("NFD")):"",r=e=>e?"/badges/"+encodeURIComponent(e.split("/")[2].normalize("NFD")):""},31035:function(e,t,n){"use strict";var l=n(69738),r=n(67769),a=n(81765),i=n(55988);t.Z=()=>{let e=(0,l.useQueryClient)(),{data:t}=(0,l.useQuery)(["useWebPush"],{queryFn:()=>null,initialData:null,staleTime:1/0,cacheTime:1/0}),{mutateAsync:n}=(0,i.wgT)(),{permission:s,messaging:o,token:c}=t||{},d=(0,r.useCallback)(t=>{e.setQueryData(["useWebPush"],e=>({...e,...t}))},[e]),u=(0,r.useCallback)(async()=>{try{if(o){let e=c;return c||(e=await (0,a.getToken)(o,{vapidKey:"BLLx5ruB-ExnhWesg1z1WAZ6kiv8-_XhSdMZ_Dr7aURyUnvSOkDT7Yz3woqBl9PhqFIh3cWd0_vcIzDV-eTiKNs"}),await n({token:e})),d({token:e,permission:"granted"}),e}}catch(e){return null}},[o,c,n,d]),x=(0,r.useCallback)(async e=>{if(o){try{await (0,a.deleteToken)(o)}catch(e){}d({token:void 0,permission:e})}},[o,d]),m=(0,r.useCallback)(async()=>"default"===s?await window.Notification.requestPermission():("granted"===s&&o&&!c&&await u(),s),[u,c,s,o]);return{data:t,mutate:d,getFCMToken:u,deleteFCMToken:x,requestPermission:m}}},12014:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return eS},default:function(){return eE}});var l,r,a,i=n(80121),s=n(82177),o=n(51104),c=n(96804),d=n(93711),u=n.n(d),x=n(67769),m=n.n(x),p=n(32854),h=n(82742),f=n(1856),g=n(27585),v=n(24710),b=n(44808);let j=m().forwardRef(function(e,t){let{children:n,size:i=16,...s}=e;return m().createElement(b.I,{width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"
1currentColor",...s},l||(l=m().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),r||(r=m().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),a||(a=m().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),n)});var w=n(98171),y=n(44685),C=n(6277),N=n(37333),Z=n.n(N),k=n(80407),S=n(83997),E=n(62256),I=e=>{var t,n,l,r,a,s,o;let{factory:c}=e,d=[c.complexName,c.industrialComplex].filter(Boolean).filter((e,t,n)=>n.indexOf(e)===t).join(" \xb7 "),u=(null!==(n=c.industries)&&void 0!==n?n:[]).filter(Boolean).join(", "),x=(null!==(l=c.products)&&void 0!==l?l:[]).filter(Boolean).join(", "),m=(null!==(r=c.ingredients)&&void 0!==r?r:[]).filter(Boolean).join(", "),p=(null!==(a=c.categories)&&void 0!==a?a:[]).filter(Boolean).map(E.lX).join(", "),h=(null!==(s=c.homepageUrl)&&void 0!==s?s:"").trim(),f=(0,E.Ap)(h),g=[{label:"업력",value:(0,E.YP)(c)},{label:"회사 규모",value:(0,E._l)(c)},{label:"산업단지",value:d},{label:"회사 주소",value:null!==(o=null===(t=c.factoryStreetAddress)||void 0===t?void 0:t.trim())&&void 0!==o?o:""},{label:"업종",value:u},{label:"생산품",value:x},{label:"주원자재",value:m},{label:"제조 공정",value:p},{label:"홈페이지",value:f?(0,i.jsx)("a",{href:f,target:"_blank",rel:"noopener noreferrer nofollow",className:"text-textAccent hover:underline break-all",children:h}):""}].filter(e=>!!e.value);return 0===g.length?null:(0,i.jsx)(S.Z,{id:"intro",title:"기업 정보",children:(0,i.jsx)("dl",{className:"w-full flex flex-col gap-16",children:g.map(e=>(0,i.jsx)(L,{label:e.label,value:e.value},e.label))})})};let L=e=>{let{label:t,value:n}=e,l=(0,g.Z)("mobile");return(0,i.jsxs)("div",{className:"flex gap-20 max-mobile:flex-col max-mobile:gap-4",children:[(0,i.jsx)("dt",{className:"w-140 min-w-140 max-mobile:w-full",children:(0,i.jsx)(f.Z,{variant:l?"text-l":"text-xl",color:"textSecondary",children:t})}),(0,i.jsx)("dd",{className:"min-w-0",children:(0,i.jsx)(f.Z,{variant:"text-xl",className:"whitespace-pre-line",children:n})})]})};var A=n(82625),B=n(58559),_=n(98822),R=n(55988),F=n(37130),z=n.n(F),M=e=>{var t,n,l,r,a,s,o,c;let{factory:d}=e,u=!1!==d.isOperating&&(null!==(r=null===(t=d.categoryIds)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0,{data:x}=(0,R.wRW)({factoryId:d.factoryId},{enabled:u}),m=null==x?void 0:x.result,p=null!==(a=null==m?void 0:m.partnerList)&&void 0!==a?a:[];if(!u||0===p.length)return null;let h=(0,E.di)(d.factoryStreetAddress,d.region),g=(null==m?void 0:m.areaCode)&&h?"".concat(h.split(" ")[0]," 지역"):"전국",v=(null!==(s=d.categories)&&void 0!==s?s:[]).filter(Boolean).map(E.lX).slice(0,3).join(", "),b=new URLSearchParams({st:String(null!==(c=null!==(o=null==m?void 0:null===(n=m.serviceTypeIds)||void 0===n?void 0:n[0])&&void 0!==o?o:null===(l=d.categoryIds)||void 0===l?void 0:l[0])&&void 0!==c?c:""),...(null==m?void 0:m.areaCode)?{rc:m.areaCode}:{},page:"1"}).toString();return(0,i.jsx)(S.Z,{id:"related-partners",title:"같은 지역\xb7같은 공정의 캐파 파트너",subtitle:"".concat(g).concat(v?" \xb7 ".concat(v):""," \xb7 캐파에서 바로 견적을 받을 수 있는 파트너입니다."),right:(0,i.jsxs)(z(),{href:"/partners?".concat(b),className:"inline-flex items-center gap-4 whitespace-nowrap text-textAccent hover:underline",children:[(0,i.jsx)(f.Z,{variant:"text-l",color:"textAccent",children:"파트너 더 찾기"}),(0,i.jsx)(B.Z,{size:14})]}),children:(0,i.jsx)("div",{className:"flex flex-col gap-16",children:p.map(e=>(0,i.jsx)(_.Z,{partner:e,isFetched:!0},e.partnerId))})})},T=n(57246),D=n(25051),P=n(36412),q=n(310),O=n(26318),V=n(44672),H=n(81023),W=n(11023),U=n(11819),$=n(83755),Q=n(5945),K=n(41668);let Y=[{term:"수집 항목",desc:"이름, 회사명(선택), 이메일, 연락처(선택), 요청 내용(품목\xb7수량\xb7희망 납기)"},{term:"수집\xb7이용 목적",desc:"요청 내용을 해당 공장에 이메일로 전달하고 공장의 회신을 요청자에게 연결, 접수 확인 안내, 요청 이력 관리(중복\xb7남용 방지)"},{term:"보유\xb7이용 기간",desc:"접수일로부터 1년. 요청자가 삭제를 요청하면 지체 없이 삭제"},{term:"제공",desc:"입력한 이름\xb7회사명\xb7이메일\xb7연락처\xb7요청 내용은 요청한 공장(캐파 미가입 기업)에 이메일로 전달됩니다"}
1],J={guestName:"",companyName:"",email:"",phone:"",content:"",quantity:"",dueDate:"",consent:!1,website:""},G=[{key:"guestName",label:"이름",required:!0,message:"이름을 입력해 주세요",maxLength:50,placeholder:"담당자 이름",autoComplete:"name"},{key:"companyName",label:"회사명",required:!1,message:"",maxLength:100,placeholder:"회사명(선택)",autoComplete:"organization"},{key:"email",label:"회신 받을 이메일",required:!0,message:"이메일을 입력해 주세요",maxLength:200,placeholder:"[email protected]",autoComplete:"email",inputMode:"email"},{key:"phone",label:"연락처",required:!1,message:"",maxLength:20,placeholder:"010-0000-0000 (선택)",autoComplete:"tel",inputMode:"tel"},{key:"content",label:"무엇을 만들고 싶으신가요?",required:!0,message:"요청 내용을 ".concat(10,"자 이상 입력해 주세요"),maxLength:2e3,placeholder:"예: 알루미늄 6061 브라켓 100개, 두께 5mm, 아노다이징 마감. 도면은 회신 주시면 보내드리겠습니다.",multiline:!0},{key:"quantity",label:"수량",required:!1,message:"",maxLength:50,placeholder:"예: 100개 (선택)"},{key:"dueDate",label:"희망 납기",required:!1,message:"",maxLength:50,placeholder:"예: 2주 이내 (선택)"}],X=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/,ee=e=>X.test(e.trim()),et=e=>e.trim(),en=e=>et(e)||void 0,el=(e,t)=>({guestName:et(e.guestName),companyName:en(e.companyName),email:et(e.email).toLowerCase(),phone:en(e.phone),content:et(e.content),quantity:en(e.quantity),dueDate:en(e.dueDate),consent:e.consent,consentVersion:t,website:e.website||void 0});var er=e=>{let{factoryId:t,factoryName:n}=e,l=(0,g.Z)("mobile"),{closeModal:r}=(0,v.Z)(),a=(0,K.useForm)({defaultValues:J,mode:"onSubmit",reValidateMode:"onChange"}),{handleSubmit:s,register:o}=a;ea(a);let[c,d]=(0,x.useState)(null),[u,m]=(0,x.useState)(null),h=(0,x.useRef)(!1),[b,w]=(0,x.useState)(!1),y=s(async e=>{if(!h.current){h.current=!0,w(!0),m(null);try{var n,l;let r=await $.ZP.create(t,el(e,$.nT));if(r.success&&r.result){d(r.result.result);return}let a=(null===(n=r.exception)||void 0===n?void 0:n.statusCode)===429||(null===(l=r.exception)||void 0===l?void 0:l.error)===$.j3;m(a?"rate":"server")}finally{h.current=!1,w(!1)}}},()=>m(null)),C=()=>r();return(0,i.jsxs)(V.Z,{className:"min-w-568 max-w-568 max-mobile:min-w-full",fullScreen:l,open:!0,onClose:C,hiddenClose:!0,children:[(0,i.jsxs)(V.Z.Header,{className:"border-b border-borderBasic",hiddenClose:!0,children:[n,"에 견적 요청하기"]}),(0,i.jsx)(V.Z.Contents,{className:"p-24 flex flex-col gap-16 max-mobile:p-16 max-h-[70vh] overflow-y-auto max-mobile:max-h-none",children:c?(0,i.jsx)(eo,{result:c,factoryName:n}):(0,i.jsxs)("form",{id:"factory-guest-rfq-form",noValidate:!0,onSubmit:e=>{e.preventDefault(),y()},className:"relative flex flex-col gap-16",children:[(0,i.jsx)(f.Z,{variant:"text-l",color:"textSecondary",children:"간단히 적어 주시면 공장 담당자에게 이메일로 전달합니다. 공장의 답장은 아래 이메일로 바로 도착합니다."}),G.map(e=>(0,i.jsx)(ei,{def:e,form:a},e.key)),(0,i.jsx)(es,{form:a}),(0,i.jsxs)("div",{"aria-hidden":"true",className:"absolute top-0 -left-[9999px] w-1 h-1 overflow-hidden opacity-0",children:[(0,i.jsx)("label",{htmlFor:"factory-guest-rfq-website",children:"웹사이트"}),(0,i.jsx)("input",{id:"factory-guest-rfq-website",type:"text",tabIndex:-1,autoComplete:"off",...o("website")})]}),u&&(0,i.jsxs)("div",{role:"alert",className:"flex items-start gap-8 p-12 rounded-[8px] bg-bgSecondary",children:[(0,i.jsx)(j,{size:18,className:"text-textNegative min-w-[18px] mt-2"}),(0,i.jsx)(f.Z,{variant:"text-l",color:"textSecondary",children:"rate"===u?"요청이 너무 잦습니다. 잠시 후 다시 시도해 주세요.":"전송에 실패했습니다. 잠시 후 다시 시도해 주세요."})]})]})}),(0,i.jsx)(V.Z.Buttons,{className:"max-mobile:px-16 max-mobile:py-20",children:c?(0,i.jsx)(p.Z,{fullWidth:!0,size:"m",onClick:C,children:"확인"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{fullWidth:!0,size:"m",color:"tertiary",onClick:C,children:"취소"}),(0,i.jsx)(p.Z,{fullWidth:!0,size:"m",loading:b,disabled:b,onClick:()=>y(),children:"견적 요청 보내기"})]})})]})};let ea=e=>{let{data:t}=(0,y.Xj)(),n=null==t?void 0:t.result,l=(0,x.useRef)(!1);(0,x.useEffect)(()=>{var t;if(!(null==n?void 0:n.userId)||l.current)return;l.current=!0;let{getValues:r,setValue:a}=e,i=(e,t)=>{t&&!r(e)&&a(e,t)};i("guestName",n.userName),i("companyName",n.partnerName||n.organizationName||n.groupName),i("email",n.email),i("phone",(0,Q.NL)(null!==(t=n.cellphone)&&void 0!==t?t:""))},[null==n?void 0:n.userId])},ei=e=>{let{def:t,form:n}=e,l="factory-guest-rfq-".concat(t.key),{field:r,fieldState:{error:a}}=(0,K.useController)({control:n.control,name:t.key,rules:{validate:{...t.required?{required:e=>e.trim().length>0||t.message}:{},..."content"===t.key?{minLength:e=>e.trim().length>=10||t.message}:{},..."email"===t.key?{format:e=>ee(e)||"이메일 형식을 확인해 주세요"}:{},..."phone"===t.key?{format:e=>0===(0,Q.ck)(e).length||(0,Q.OU)(e)||"연락처를 정확히 입력해 주세요"}:{},maxLength:e=>e.trim().length<=t.maxLength||"".concat(t.maxLength,"자 이내로 입력해 주세요")}}}),s=e=>r.onChange((0,Q.NL)(e));return(0,i.jsxs)("div",{children:[(0,i.jsx)(q.Z,{htmlFor:l,required:t.required,
1className:"block mb-6 text-l font-semibold text-textPrimary whitespace-normal",children:t.label}),t.multiline?(0,i.jsx)(H.Z,{...r,id:l,placeholder:t.placeholder,maxLength:t.maxLength,className:"h-120 max-mobile:h-110",fullWidth:!0,error:!!a,"aria-required":t.required,"aria-invalid":!!a}):(0,i.jsx)(O.Z,{...r,onChange:e=>"phone"===t.key?s(e.target.value):r.onChange(e),id:l,type:"email"===t.inputMode?"email":"text",inputMode:t.inputMode,autoComplete:t.autoComplete,fullWidth:!0,className:"h-44",error:!!a,placeholder:t.placeholder,maxLength:t.maxLength,"aria-required":t.required,"aria-invalid":!!a}),(null==a?void 0:a.message)&&(0,i.jsx)(P.Z,{error:!0,className:"mt-6 text-[12px] leading-[1.6] whitespace-normal",children:a.message})]})},es=e=>{let{form:t}=e,[n,l]=(0,x.useState)(!1),{field:r,fieldState:{error:a}}=(0,K.useController)({control:t.control,name:"consent",rules:{validate:e=>!0===e||"개인정보 수집\xb7이용에 동의해 주세요"}});return(0,i.jsxs)("div",{className:"p-14 border rounded-[12px] ".concat(a?"border-red500":"border-gray400"),children:[(0,i.jsxs)("button",{type:"button",role:"checkbox","aria-checked":!0===r.value,"aria-required":!0,"aria-invalid":!!a,onClick:()=>r.onChange(!r.value),onBlur:r.onBlur,className:"flex items-start w-full gap-8 text-left rounded-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue500",children:[(0,i.jsx)("span",{className:"shrink-0 mt-2","aria-hidden":"true",children:!0===r.value?(0,i.jsx)(W.Z,{size:20,className:"text-blue500"}):(0,i.jsx)(U.Z,{size:20,className:"text-gray500"})}),(0,i.jsxs)("span",{className:"text-l font-semibold text-textPrimary",children:["개인정보 수집\xb7이용 동의 ",(0,i.jsx)("span",{className:"text-red500",children:"(필수)"})]})]}),(0,i.jsxs)("div",{className:"mt-4 pl-28 text-m text-textSecondary max-mobile:text-s",children:[(0,i.jsxs)("p",{children:["견적 요청을 공장에 전달하고 회신을 연결하기 위해 이름\xb7회사명\xb7이메일\xb7연락처\xb7요청 내용을 수집합니다. 접수일로부터 1년 보관합니다."," ",(0,i.jsx)("button",{type:"button","aria-expanded":n,onClick:()=>l(e=>!e),className:"font-semibold text-blue500 hover:underline",children:n?"접기":"자세히 보기"})]}),(0,i.jsx)(T.Z,{expand:n,children:(0,i.jsxs)(D.Z,{className:"pt-8",children:[(0,i.jsx)("dl",{className:"flex flex-col gap-4 text-s",children:Y.map(e=>{let{term:t,desc:n}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)("dt",{className:"font-semibold text-textPrimary",children:t}),(0,i.jsx)("dd",{children:n})]},t)})}),(0,i.jsx)("p",{className:"mt-6 text-s",children:"동의를 거부할 수 있으나, 거부 시 견적 요청을 보낼 수 없습니다."})]})})]}),(null==a?void 0:a.message)&&(0,i.jsx)(P.Z,{error:!0,className:"mt-6 text-[12px] leading-[1.6] whitespace-normal",children:a.message})]})},eo=e=>{let{result:t,factoryName:n}=e,l="SENT"===t||"QUARANTINED"===t,r="RATE_LIMITED"===t;return(0,i.jsxs)("div",{className:"flex flex-col gap-12",children:[(0,i.jsxs)("div",{className:"flex items-start gap-10",children:[l?(0,i.jsx)(W.Z,{size:22,className:"text-blue500 min-w-[22px]"}):(0,i.jsx)(j,{size:22,className:"text-textNegative min-w-[22px]"}),(0,i.jsx)(f.Z,{variant:"text-xl",fontWeight:"bold",children:l?"".concat(n,"에 견적 요청을 전달했습니다"):r?"지금은 더 보낼 수 없습니다":"".concat(n,"에는 지금 메일을 보낼 수 없습니다")})]}),(0,i.jsx)(f.Z,{variant:"text-l",color:"textSecondary",children:l?"입력한 이메일로 접수 확인 메일을 보냈습니다. 공장이 답장하면 그 메일 주소로 바로 도착합니다. 공장은 캐파 회원이 아니라 답변 여부와 시점은 공장에 달려 있습니다.":r?"같은 요청을 24시간 안에 여러 번 보낼 수 없습니다. 내일 다시 시도하거나 캐파 파트너에게 견적을 요청해 주세요.":'공장의 연락처가 없거나 메일 수신을 거부한 상태입니다. 아래 "같은 지역\xb7같은 공정의 캐파 파트너"에 견적을 요청해 보세요.'}),(0,i.jsxs)(f.Z,{variant:"text-l",color:"textSecondary",children:["여러 공장에서 빠르게 견적을 받고 싶다면"," ",(0,i.jsx)(z(),{href:"/signup",className:"text-textAccent hover:underline",children:"캐파에 가입"}),"해 견적요청서를 올려 보세요."]})]})};var ec=n(44871),ed=n(28879),eu=n.n(ed),ex=n(8099),em=()=>{let{closeModal:e}=(0,v.Z)();return(0,i.jsxs)(V.Z,{className:"w-343",open:!0,onClose:e,children:[(0,i.jsx)(V.Z.Header,{className:"px-16 ",hiddenClose:!0,children:"견적 요청서 발송 완료"}),(0,i.jsx)(V.Z.Contents,{className:"px-16",children:(0,i.jsxs)(f.Z,{variant:"text-xl",color:"textPrimary",children:["요청서가 성공적으로 전송되었습니다.",(0,i.jsx)("br",{}),"공장에서 요청서를 확인한 뒤, 입찰을 진행할 수 있습니다."]})}),(0,i.jsx)(V.Z.Buttons,{className:"px-16 ",children:(0,i.jsx)(p.Z,{fullWidth:!0,size:"m",onClick:()=>e(),children:"확인"})})]})},ep=n(71744),eh=n(3350),ef=n(82233);let eg=e=>{let{companyName:t}=e;return'\n<!DOCTYPE html>\n<html lang="ko">\n\n  <head>\n      <meta charset="UTF-8"/>\n      <title>메세지 도착</title>\n  </head>\n\n  <body>\n      <table border="0" style="max-width: 920px; padding:24px; margin: 0 auto; color: #343A40;">\n          <tr style="height: 20px">\n              <td style="padding: 0" colspan="2">\n                  <div id="header">\n                      <img id="logo_primary" src="https://mcusercontent.com/aa9c2a71564675cfe7d54e145/images/cd75f0cc-33ab-db85-f84d-44207e193449.png" style="width: 120px; height: 32px" alt="CAPA"/>\n                  </div>\n              </td>\n          </tr>\n          <tr style="height: 40px"></tr>\n          <tr>\n              <td colspan="2">\n                  <div style="\n                          font-size: 16px;\n                          line-height: 160%;\n                          ">\n                      안녕하세요, '.concat(t,' 담당자님.<br><br>\n                      B2B 제조 플랫폼 <b style="color: #2B83FF">캐파(CAPA)</b>입니다.<br>\n                      캐파는 국내 50,000개 이상의 제조 수요 기업이 등록되어 있는 플랫폼으로,<br>\n                      부품 제조, 제품 개발, 위탁생산 등 다양한 제조 발주가 매일 등록되고 있습니다.<br><br>\n                      캐파를 이용 중인 발주처가 ').concat(t,'의 생산 가능 품목과 정보를 보고 직접 견적 요청서를 보냈습니다.<br><br>\n                      아래 첨부된 요청서를 확인하신 후, 프로젝트에 입찰하실 수 있습니다.<br>\n                  </div>\n              </td>\n          </tr>\n          <tr>\n              <td>\n                  <div style="padding:34px 0px;">\n                      --RFQ--\n                  </div>\n              </td>\n          <tr>\n          <tr>\n              <td colspan="2">\n                  <div style="font-size: 16px; line-height: 160%;">\n                      해당 프로젝트에 견적을 제출하시려면, 버튼을 통해 견적 요청서를 확인 후 캐파에 가입해주세요.<br>\n                      <b>가입은 무료이며, 간편하게 가입 후\xa0고객에게 견적 발송등 서비스를 이용가능합니다.</b><br><br>\n                      <a href="https://blog.capa.ai/post/%ea%b8%b0%ec%97%85%ed%9a%8c%ec%9b%90-%ec%99%84%ec%a0%84%ed%9e%88-%eb%8b%ac%eb%9d%bc%ec%a7%84-%ec%ba%90%ed%8c%8c-%eb%a7%a4%eb%89%b4%ec%96%bc" style="color: #2B83FF; text-decoration:underline cursor: pointer">캐파 서비스 사용 안내 보러가기 ></a>\n                  </div>\n              </td>\n          </tr>\n          <tr style="height: 54px"></tr>\n          <tr>\n              <td colspan="2">\n                  <div style="font-size: 16px; line-height: 160%;">\n                      <b style="color: #2B83FF">CAPA는 이런 플랫폼입니다.</b><br>\n                      ✅ 제조 의뢰 기업과 공급 기업을 직접 연결<br>\n                      ✅ 검증된 제조기업만 참여하는 안전한 거래 환경<br>\n                      ✅ 등록비/수수료 부담 없이 거래 성사 시에만 수수료 발생<br>\n                      ✅ 모든 서비스 온라인으로 간편하게 이용 가능<br><br>\n\n                      ').concat(t,'의 생산 역량에 딱 맞는 발주처와<br>\n                      지금 바로 연결되어 보세요!\n                  </div>\n              </td>\n          </tr>\n          <tr style="height: 54px"></tr>\n          <tr style="height: 1px">\n              <td colspan="2">\n                  <div style="border-top: 1px solid #dee2e6"></div>\n              </td>\n          </tr>\n          <tr style="height: 24px"></tr>\n          <tr>\n              <td colspan="2">\n                  <div style="font-size: 16px; line-height: 160%;">\n                      감사합니다.<br>\n                      <b>CAPA 팀 드림</b><br><br>\n\n                      문의<br>
1\n                      서비스 운영팀<br>\n                      010-4669-6322<br>\n                      [email protected]<br>\n                  </div>\n              </td>\n          </tr>\n          <tr style="height: 54px"></tr>\n          <tr style="height: 1px">\n              <td colspan="2">\n                  <div style="border-top: 1px solid #dee2e6"></div>\n              </td>\n          </tr>\n          <tr style="height: 74px"></tr>\n          <tr>\n              <td style="padding: 0" colspan="2">\n                  <div id="header" style="float: left; margin-top: 10px">\n                      <img id="logo_secondary" src="https://mcusercontent.com/aa9c2a71564675cfe7d54e145/images/0433e375-f56c-5e71-9b0d-04b3474b8abd.png" style="width: 120px; height: 32px; cursor: pointer" alt="CAPA"/>\n                  </div>\n                  <div style="float: right">\n                      <a href="https://www.facebook.com/capakr" style="\n                                      width: 45px;\n                                      height: 45px;\n                                      margin: 0 12px 0 12px;\n                                      text-decoration: none;\n                                      ">\n                          <img src="https://mcusercontent.com/aa9c2a71564675cfe7d54e145/images/6c2c1a9e-37f9-9787-32fa-daba8ef5f413.png" alt="facebook" style="width: 48px; height: 48px"/>\n                      </a>\n                      <a href="https://www.linkedin.com/company/ateamventures-capa/mycompany/" style="width: 45px; height: 45px; text-decoration: none">\n                          <img src="https://mcusercontent.com/aa9c2a71564675cfe7d54e145/images/466f9169-a7bf-2fd5-2a4d-02fcac9abf27.png" alt="facebook" style="width: 48px; height: 48px"/>\n                      </a>\n                  </div>\n              </td>\n          </tr>\n          <tr style="height: 24px"></tr>\n          <tr style="height: 40px">\n              <td colspan="2">\n                  <div>\n                      <p style="\n                          font-size: 14px;\n                          color: #adb5bd;\n                          margin: 0;\n                          line-height: 160%;\n                          ">\n                          본 메일은 발신 전용으로 문의사항은 캐파 사이트 내 채널톡을 이용해주세요.<br/>\n                          영업시간 : 평일 오전 10시 - 오후 6시 (점심시간 1-2시)<br/>\n                          주소 : 서울 중구 명동길 14, 6층 <br>\n                          <br>\n                          메일 받기를 원하지 않는 경우 “수신 거부" 버튼을 눌러주세요. <a href=').concat("https://capa.ai","/rfq-mail/").concat("${rfqFactoryUid}",' style="color: #2B83FF; text-decoration:underline cursor: pointer">수신 거부</a>\n                      </p>\n                  </div>\n              </td>\n          </tr>\n      </table>\n  </body>\n</html>\n  ')},ev=e=>(null==e?void 0:e.sort((e,t)=>e.rfqId-t.rfqId).map((e,t)=>{var n;let l=eu()(e.rfqCreateDate).format("YYYY.MM.DD HH:mm"),r=eb(e.fileS3Id),a="".concat("https://content.capa.ai","/").concat(e.fileS3Id),i=e.hasMassProductionPlan?"양산 계획이 있습니다.":"양산 계획이 없습니다.",s=e.dueDate?"".concat(eu()(e.dueDate).format("YYYY.MM.DD")," 까지 납기"):"협의가능",o=e.estimatedBudget?"".concat(Number(e.estimatedBudget).toLocaleString()," 원"):"비공개",c=e.isQuotationRequired?"견적을 보낸 파트너만 채팅 가능":"견적서 없이 채팅 가능",d=e.isAllowCall?"전화상담 허용":"전화상담 거부",u=e.hasLoanPlan?"대출 결제 계획이 있습니다.":"대출 결제 계획이 없습니다.",x="".concat("https://capa.ai","/factory-rfq-read?mailUid=").concat("${uuid".concat(t+1,"}"),"&nextPath=@").concat("https://capa.ai","/customer-requests?rfqId=").concat(e.rfqId,"@"),m=e.subServices?'<tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">가공방식</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">'.concat(null===(n=e.subServices)||void 0===n?void 0:n.join(", "),"</td>\n          </tr>"):"";return'\n      <div style="max-width: 100%; margin: 20px auto; padding: 20px 16px; border: 1px solid #e5e5e5; border-radius: 8px;">\n          <table style="width: 100%; border-collapse: collapse; margin-bottom: 16px;">\n              <tr>\n                <td style="padding: 0;">\n                '.concat(r?'\n        <div style="width: 90px; height: 90px; padding: 0; max-width: 90px; aspect-ratio: 1; border-radius: 8px; border: 1px solid #DEE2E6;; overflow: hidden">\n          <img src="'.concat(a,'" alt="rfq" style="width: 100%; height: 100%; object-fit: cover;" />\n        </div>'):"",'\n                </td>\n                <td style="vertical-align: middle; padding: 0;  padding-left: ').concat(r?"13px":"0",'; width: 100%; max-width: 0;">\n                  <div style="width: 100%;">\n                    <h1 style="font-size: 20px; color: #343A40; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">').concat(e.projectName,'</h1>\n                      <p style="color: #868E96; font-size: 14px; margin: 2px 0 0 0;">').concat(l,' 작성됨</p>\n                  </div>\n                </td>\n              </tr>\n          </table>\n      \n          <div style="border-top: 1px solid #DEE2E6; margin: 16px 0px;"></div>\n  \n          <table style="width: 100%; border-collapse: collapse; margin: 16px 0px; line-height: 160%;">\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">제조서비스</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(e.serviceName,"</td>\n              </tr>\n                    ").concat(m,'\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">총 수량</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(e.totalCnt,'개</td>\n              </tr>\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">양산계획</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(i,'</td>\n              </tr>\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">희망납기일</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(s,'</td>\n              </tr>\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">
1제품용도</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(e.useName,'</td>\n              </tr>\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">추정예산</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(o,'</td>\n              </tr>\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">위치</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(e.address,'</td>\n              </tr>\n              <tr style="vertical-align: top; margin-bottom: 2px;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">상담유형</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(c," / ").concat(d,'</td>\n              </tr>\n              <tr style="vertical-align: top;">\n                  <td style="color: #868E96; font-size: 14px; width: 95px; padding: 0;">대출결제 여부</td>\n                  <td style="padding: 0; padding-left: 8px; color: #343A40; font-size: 14px;">').concat(u,'</td>\n              </tr>\n          </table>\n  \n          <div style="text-align: center; padding-top: 16px;">\n              <a href=').concat(x,' style="display: inline-block; background-color: #EAF3FF; border-radius: 8px;  color: #2B83FF; padding: 12px 24px; text-decoration: none; font-size: 14px;">RFQ 자세히 보기 및 입찰하기 ></a>\n          </div>\n      </div>')})).join(""),eb=e=>{if(!e)return;let t=e.toLowerCase();return[".jpg",".jpeg",".png"].find(e=>t.includes(e))},ej=e=>{let{companyName:t,selectedRfq:n}=e,l=(0,x.useMemo)(()=>eg({companyName:t}),[t]),r=(0,x.useMemo)(()=>(null==n?void 0:n.length)?ev(n):"",[n]);return{mailText:(0,x.useMemo)(()=>(null==n?void 0:n.length)?l.replace("--RFQ--",r):"",[l,r])}};var ew=e=>{var t,n,l,r,a;let{factoryName:s}=e,o=(0,g.Z)("mobile"),{openModal:c,closeModal:d}=(0,v.Z)(),{createSnackbar:u}=(0,ec.Z)(),{query:m}=(0,ep.useRouter)(),h=parseInt(m.factoryId),[b,j]=(0,x.useState)([]),{mailText:w}=ej({companyName:s,selectedRfq:b||[]}),{data:y,isLoading:N}=(0,R.JMN)(),{data:Z}=(0,R.pgb)(),k=null!==(r=null==y?void 0:y.result)&&void 0!==r?r:[],S=null!==(a=null==Z?void 0:null===(t=Z.result)||void 0===t?void 0:t.partnerName)&&void 0!==a?a:null==Z?void 0:null===(n=Z.result)||void 0===n?void 0:n.userName,E=null==Z?void 0:null===(l=Z.result)||void 0===l?void 0:l.email,{mutateAsync:I}=(0,R.txE)(),L=e=>{j(t=>t.some(t=>t.rfqId===e.rfqId)?t.filter(t=>t.rfqId!==e.rfqId):t.length<3?[...t,e]:t)},A=async()=>{let{success:e}=await I({factoryId:h,rfqIds:b.map(e=>e.rfqId),subject:"".concat(S," 님이 귀사에 견적 요청서를 보냈습니다. 요청서를 확인해보세요."),template:null==w?void 0:w.replace(/\n/g,""),senderEmail:E});e?(d(!0),c((0,i.jsx)(em,{}))):u("견적 요청 메일 발송에 실패했습니다. 잠시 후 다시 시도해주세요.",{color:"error"})};return(0,i.jsxs)(V.Z,{className:"min-w-568 max-mobile:min-w-full",fullScreen:!!o,open:!0,onClose:d,hiddenClose:!0,children:[(0,i.jsx)(V.Z.Header,{className:"border-b border-borderBasic",hiddenClose:!0,children:"견적요청서 선택"}),(0,i.jsxs)(V.Z.Contents,{className:"p-24 flex flex-col gap-10 max-mobile:p-16",children:[(0,i.jsx)(f.Z,{variant:"text-xl",children:"아래 목록에서 원하는 요청서를 선택하면, 해당 공장으로 견적 요청 메일이 발송됩니다."}),(0,i.jsxs)(f.Z,{variant:"text-xl",children:["메일에 첨부할 보낼"," ",(0,i.jsx)("span",{className:"font-bold",children:"견적 요청서를 선택해주세요."})," (최대 3개)"]}),(0,i.jsx)("div",{className:"w-full min-h-472 flex flex-col gap-8",children:N||0===k.length?(0,i.jsxs)("div",{className:"flex flex-col gap-16 justify-center items-center h-482",children:[(0,i.jsx)(f.Z,{variant:"text-l",color:"textSecondary",children:N?"요청서를 불러오는 중입니다.":"등록된 견적 요청서가 없습니다."}),!N&&(0,i.jsx)(p.Z,{size:"s",color:"outlineBlue",onClick:()=>{d(),c((0,i.jsx)(er,{factoryId:h,factoryName:s}))},children:"요청서 없이 간단히 견적 요청하기"})]}):k.map(e=>{var t,n;let l=b.some(t=>t.rfqId===e.rfqId),r=!b.some(t=>t.rfqId===e.rfqId)&&b.length>=3,a=null===(t=e.subServices)||void 0===t?void 0:t.filter(Boolean),s=(null==a?void 0:a.length)?"(".concat(null===(n=a[0])||void 0===n?void 0:n.trim()).concat(a.length>1?" 외 ".concat(a.length-1,"개"):"",")"):null;return(0,i.jsxs)("div",{className:(0,C.Z)("p-8 pr-16 flex flex-row gap-16 border-[0.7
1px] rounded-[12px] shadow-200 cursor-pointer hover:border-borderAccent",{"border-borderBasic":!l,"!border-borderAccent bg-bglightAccent":l,"shadow-border shadow-borderAccent":l,"!bg-[#F1F3F5] hover:border-borderBasic":r}),onClick:()=>L(e),children:[(0,i.jsx)("div",{className:"relative min-w-72 max-w-72 h-72",children:(0,i.jsx)(eh.Z,{fileS3Id:e.fileS3Id,className:"absolute w-72 h-72 !rounded-200",referenceFileS3Id:e.fileS3Id,fallbackRender:e=>(0,i.jsx)(ef.Z,{fontClassName:"!text-[16px]",rootClassName:"!w-72 !h-72 !rounded-200",label:e})})}),(0,i.jsxs)("div",{className:"w-full flex justify-between items-center relative",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-3 justify-center overflow-hidden pr-28",children:[(0,i.jsx)(f.Z,{variant:"text-l",fontWeight:"bold",color:r?"textDisabled":"textPrimary",className:"line-clamp-1",children:e.projectName}),(0,i.jsxs)(f.Z,{variant:"text-l",color:r?"textDisabled":"textPrimary",children:[e.serviceName," ",s]})]}),(0,i.jsx)("div",{className:"w-full h-full min-w-fit flex justify-end items-end absolute top-0 right-0",children:(0,i.jsxs)("div",{className:"flex flex-col gap-6 items-end",children:[l&&(0,i.jsx)(ex.Z,{size:20,className:"text-textAccent font-bold"}),(0,i.jsxs)(f.Z,{variant:"text-l",color:r?"textDisabled":"textSecondary",children:[eu()(e.rfqCreateDate).format("YYYY.MM.DD")," 작성"]})]})})]})]},e.rfqId)})})]}),(0,i.jsxs)(V.Z.Buttons,{className:"max-mobile:px-16 max-mobile:py-20",children:[(0,i.jsx)(p.Z,{fullWidth:!0,size:"m",color:"tertiary",onClick:()=>d(),children:"취소"}),(0,i.jsx)(p.Z,{fullWidth:!0,size:"m",onClick:A,disabled:0===b.length,children:"확인"})]})]})},ey=e=>{var t,n,l,r;let{factoryInfo:a}=e,s=(0,g.Z)("mobile"),{isLoggedIn:o}=(0,y.aC)(),{openModal:c}=(0,v.Z)();if(!a)return null;let d=(0,E.fW)(a),u=null!==(n=d.factoryName)&&void 0!==n?n:"",x=!1!==d.isOperating,m=!!(d.industrialComplex||d.complexName),b=(null!==(l=d.certifications)&&void 0!==l?l:[]).filter(e=>!!(null==e?void 0:e.name)),N=(0,E.rt)(d),L="".concat("https://capa.ai","/factory/").concat(d.factoryId,"/").concat(null!==(r=d.slug)&&void 0!==r?r:""),B="mailto:".concat(E.$H,"?subject=").concat(encodeURIComponent("[공장 페이지 정보수정요청] ".concat(u," (ID ").concat(d.factoryId,")")),"&body=").concat(encodeURIComponent("페이지: ".concat(L,"\n회사명: ").concat(u,"\n\n요청 내용(수정할 항목과 올바른 값, 또는 삭제 요청 사유):\n\n\n※ 회사 관계자임을 확인할 수 있는 정보(사업자등록증 등)를 함께 보내 주시면 빠르게 처리됩니다."))),_=!1!==d.hasContactEmail;return(0,i.jsx)("div",{className:"w-full bg-bgSecondary",children:(0,i.jsxs)("div",{className:(0,C.Z)("w-full min-w-[1200px] max-w-[1440px] bg-bgSecondary px-32 py-40 flex flex-col gap-20 mx-auto","max-mobile:min-w-0 max-mobile:px-0 max-mobile:py-8 max-mobile:gap-8"),children:[(0,i.jsxs)("div",{className:"flex flex-col w-full bg-bgPrimary rounded-[12px] shadow-200 max-mobile:rounded-[0px]",children:[(0,i.jsx)("div",{className:"w-full h-130 bg-bgTertiary rounded-t-[12px] max-mobile:rounded-t-[0px]",children:(0,i.jsx)(Z(),{src:"".concat("https://capa.ai/static","/factory/default_bg.png"),alt:"default_bg",height:130,width:1440,className:"object-cover rounded-t-[12px] min-h-[130px] max-h-[130px] max-mobile:rounded-t-[0px]"})}),(0,i.jsx)("div",{className:"flex flex-col relative w-full p-24 max-mobile:px-16",children:(0,i.jsxs)("div",{className:" w-full flex gap-40 max-mobile:flex-col max-mobile:gap-20 ",children:[(0,i.jsxs)("div",{className:"flex flex-col w-full gap-8 max-mobile:items-center max-mobile:text-center",children:[(0,i.jsxs)("div",{className:"flex gap-10 items-center flex-wrap max-mobile:flex-col max-mobile:gap-4",children:[(0,i.jsx)(f.Z,{as:"h1",variant:"title-s",fontWeight:"bold",className:"min-w-fit",children:u}),(0,i.jsx)(w.Z,{badgeList:m?[{badgeName:"산업단지기업",s3ImageUrl:"/badges/산업단지기업.png"}]:[],center:s})]}),b.length>0&&(0,i.jsx)("div",{className:"flex flex-wrap gap-6 max-mobile:justify-center",children:b.map(e=>(0,i.jsx)(h.Z,{size:"s",variant:"tinted",color:"blue",label:e.name},e.name))}),(0,i.jsx)(f.Z,{variant:"text-xl",fontWeight:"regular",className:"line-clamp-2",children:null===(t=d.products)||void 0===t?void 0:t.filter(Boolean).join(", ")})]}),(0,i.jsxs)("div",{className:"flex flex-col items-end justify-end gap-8 shrink-0 max-mobile:items-center",children:[(0,i.jsxs)("div",{className:"flex gap-8 max-mobile:flex-col max-mobile:w-full",children:[x&&_&&(0,i.jsx)(p.Z,{size:"m",className:"min-w-[160px] max-mobile:w-full",onClick:()=>{c(o?(0,i.jsx)(ew,{factoryName:u}):(0,i.jsx)(er,{factoryId:d.factoryId,factoryName:u}))},children:"견적 요청하기"}),(0,i.jsx)("a",{href:B,className:"CdsButton medium CdsButton--variant-box CdsButton--color-outlineGray max-mobile:w-full",children:(0,i.jsx)("span",{className:"CdsButton__text truncate",children:"정보수정요청"})})]}),x&&!_&&(0,i.jsx)(f.Z,{variant:"text-m",color:"textSecondary",className:"max-mobile:text-center",children:"연락처가 등록되지 않은 공장입니다. 아래 추천 파트너에 견적을 요청해 보세요."})]})]})})]}),!x&&(0,i.jsxs)("div",{role:"status",className:"flex items-start gap-12 p-16 rounded-[12px] bg-bgPrimary border border-borderBasic shadow-200 max-mobile:rounded-none",children:[(0,i.jsx)(j,{size:20,className:"text-textNegative min-w-[20px]"}),(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(f.Z,{variant:"text-xl",fontWeight:"bold",children:"현재 운영하지 않는 사업자로 확인되었습니다"}),(0,i.jsxs)(f.Z,{variant:"text-l",color:"textSecondary",children:[(0,E.ZQ)(d),". 견적요청 메일은 보낼 수 없습니다. 정보가 다르면 수정\xb7삭제를 요청해 주세요."]})]})]}),N&&(0,i.jsx)(S.Z,{id:"companyIntro",title:"기업 소개",subtitle:"공개된 공장 정보를 바탕으로 자동 작성한 소개입니다.",children:(0,i.jsx)(f.Z,{as:"p",variant:"text-xl",className:"whitespace-pre-line break-keep",children:N})}),(0,i.jsx)(I,{factory:d}),(0,i.jsx)(k.Z,{certifications:b}),(0,i.jsx)(A.Z,{patents:d.patents,totalCnt:d.patentTotalCnt,registeredCnt:d.patentRegisteredCnt,recent5yCnt:d.patentRecent5yCnt,isPartial:d.patentIsPartial}),(0,i.jsx)(M,{factory:d}
1),(0,i.jsxs)("div",{"data-nosnippet":"",className:"flex flex-col gap-4 px-8 max-mobile:px-16",children:[(0,i.jsx)(f.Z,{as:"p",variant:"text-s",color:"textSecondary",children:"공개된 기업 정보를 바탕으로 기업 프로필 화면을 제공하였습니다. 잘못된 정보는 ‘정보수정요청’을 주시면 빠르게 수정하도록 하겠습니다. 본 정보는 무단으로 수집 및 배포할 수 없습니다."}),(0,i.jsx)(f.Z,{as:"p",variant:"text-s",color:"textSecondary",children:(0,E.Dm)(d)})]})]})})},eC=e=>{var t;let{factoryId:n}=e,{data:l,isLoading:r}=(0,R.ob$)({factoryId:n}),a=null==l?void 0:l.result;if(r||!a)return(0,i.jsx)(i.Fragment,{});let s=(0,E.fW)(a),d=(0,E.t1)(s),x="factory/".concat(n,"/").concat(null!==(t=s.slug)&&void 0!==t?t:""),m=(0,E.$n)(s,"".concat("https://capa.ai","/").concat(x));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{title:d.title,description:d.description,url:x,jsonLd:!1===s.isOperating?null:m}),!1===s.isOperating&&(0,i.jsx)(u(),{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, follow"})}),(0,i.jsx)(c.rJ,{}),(0,i.jsx)("div",{className:"w-full h-65 max-mobile:h-56"}),(0,i.jsx)(ey,{factoryInfo:s})]})},eN=n(64698);let eZ=n.n(eN)()(()=>n.e(5958).then(n.bind(n,15958)),{loadableGenerated:{webpack:()=>[15958]}}),ek=e=>{let{factoryId:t,rateLimited:n,isLoggedIn:l}=e;return n?(0,i.jsx)(eZ,{...n,isLoggedIn:l}):(0,i.jsx)(eC,{factoryId:t})};var eS=!0,eE=ek;ek.getLayout=(0,s.Z)()},83755:function(e,t,n){"use strict";n.d(t,{j3:function(){return r},nT:function(){return a}});var l=n(84027);let r="0122",a="factory-guest-rfq-v1";t.ZP={create:(e,t)=>(0,l.v_)("/partners/factories/".concat(e,"/guest-rfq"),t),reject:e=>(0,l.gz)("/partners/factories/guest-rfq/".concat(e,"/reject"),{})}},5930:function(e,t){"use strict";var n,l;(l=n||(n={})).REQUEST_LIST_REFRESH="request-list-refresh",l.PARTNER_LIST_REFRESH="partner-list-refresh",t.Z=n},5945:function(e,t,n){"use strict";n.d(t,{NL:function(){return r},OU:function(){return a},ck:function(){return l}});let l=e=>e.replace(/[^0-9]/g,""),r=e=>{let t=l(e).slice(0,11);if(!t)return"";if(t.startsWith("1")){let e=t.slice(0,4),n=t.slice(4,8);return n?"".concat(e,"-").concat(n):e}let n=t.startsWith("02")?2:3,r=t.slice(0,n),a=t.slice(n);if(!a)return r;let i=2===n?10:11,s=t.length>=i?4:3,o=a.slice(0,s),c=a.slice(s);return c?"".concat(r,"-").concat(o,"-").concat(c):"".concat(r,"-").concat(o)},a=e=>{let t=l(e).length;return t>=8&&t<=11}},13492:function(e,t,n){"use strict";n.d(t,{$e:function(){return v},Rm:function(){return d},nk:function(){return b},rt:function(){return j}});let l={1:"3D프린팅",2:"판금가공",3:"CNC가공",4:"주조",5:"금형\xb7사출",6:"제품설계",7:"PCB제작",8:"제품개발",9:"제관",10:"프레스",11:"표면처리",71:"커팅",81:"소성가공",82:"용접",83:"열처리",141:"OEM"},r=[3,1,2,71,8,5,7,6,10,82,4,9,11,83,81,141],a=e=>{let t=r.indexOf(e);return -1===t?Number.MAX_SAFE_INTEGER:t},i=e=>e in l,s=e=>{let t=(null!=e?e:"").replace(/\r/g,"").trim();return t&&"-"!==t&&"--"!==t?t:""},o=e=>{let t=s(e);return t?t.replace(/^서울(특별시|시)$/,"서울").replace(/^(부산|대구|인천|광주|대전|울산)(광역시|시)$/,"$1").replace(/^세종(특별자치시|시)$/,"세종").replace(/^경기도$/,"경기").replace(/^강원(특별자치도|도)$/,"강원").replace(/^충청북도$/,"충북").replace(/^충청남도$/,"충남").replace(/^전라북도$/,"전북").replace(/^전북특별자치도$/,"전북").replace(/^전라남도$/,"전남").replace(/^경상북도$/,"경북").replace(/^경상남도$/,"경남").replace(/^제주(특별자치도|도)$/,"제주"):""},c=e=>{var t,n;let l=s(e);if(!l)return{sido:"",sigungu:"",label:""};let r=l.split(/\s+/),a=o(null!==(t=r[0])&&void 0!==t?t:""),i=s(null!==(n=r[1])&&void 0!==n?n:""),c=/(시|군|구)$/.test(i)?i:"",d=[a,c].filter(Boolean).join(" ");return{sido:a,sigungu:c,label:d}},d=e=>{let t=s(e);if(!t)return{region:"",locality:"",street:""};let{sido:n,sigungu:l}=c(t);if(!l)return{region:n,locality:"",street:t};let r=t.split(/\s+/),a=s(r[2]),i=/시$/.test(l)&&/[가-힣]구$/.test(a);return{region:n,locality:i?"".concat(l," ").concat(a):l,street:r.slice(i?3:2).join(" ")}},u=e=>{let t=s(e);if(!/^\d{4}$/.test(t))return"";let n=Number(t);return n>=1900&&n<=new Date().getFullYear()?t:""},x=function(e){var t,n,r,s;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,c=[],d=e=>{!(c.length>=o)&&i(e)&&(c.includes(e)||c.push(e))};return(null!==(r=null==e?void 0:null===(t=e.services)||void 0===t?void 0:t.contractCategories)&&void 0!==r?r:[]).forEac
1h(e=>d(null==e?void 0:e.serviceTypeId)),(null!==(s=null==e?void 0:null===(n=e.services)||void 0===n?void 0:n.partsManufacturing)&&void 0!==s?s:[]).map(e=>null==e?void 0:e.serviceTypeId).filter(i).sort((e,t)=>a(e)-a(t)).forEach(d),c.map(e=>l[e]).filter(Boolean)},m=[{pattern:/iso\s*[-_]?\s*9001|품질\s*경영\s*시스템/i,name:"ISO9001"},{pattern:/iso\s*[-_]?\s*14001|환경\s*경영\s*시스템/i,name:"ISO14001"},{pattern:/iso\s*[-_]?\s*45001|안전\s*보건\s*경영\s*시스템/i,name:"ISO45001"},{pattern:/iatf\s*[-_]?\s*16949/i,name:"IATF16949"},{pattern:/iso\s*[-_]?\s*13485/i,name:"ISO13485"}],p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=null!=e?e:[];if(!n.length)return"";let l=[...m.filter(e=>{let{pattern:t}=e;return n.some(e=>t.test(s(null==e?void 0:e.licenseName)))}).map(e=>{let{name:t}=e;return t}),...t].slice(0,2);return l.length?n.length>l.length?"".concat(l.join("\xb7")," 등 인증 ").concat(n.length,"건"):"".concat(l.join("\xb7")," 인증"):"인증 ".concat(n.length,"건")},h=(e,t)=>{var n;let l=null!=e?e:[],r=(null!==(n=null==t?void 0:t.certifications)&&void 0!==n?n:[]).map(e=>s(null==e?void 0:e.name)).filter(Boolean).filter(e=>!l.some(t=>s(null==t?void 0:t.licenseName).includes(e))).map(e=>({licenseName:e}));return[...l,...r]},f=["장비","장비명","설비","기타","없음"],g=e=>{var t,n,l;let r=null!=e?e:[];if(!r.length)return"";let a=s(null===(t=r[0])||void 0===t?void 0:t.equipmentName).replace(/\s+/g," "),i=a.length>=2&&a.length<=12&&/[가-힣A-Za-z]/.test(a)&&!f.includes(a)&&(null!==(n=a.match(/\(/g))&&void 0!==n?n:[]).length===(null!==(l=a.match(/\)/g))&&void 0!==l?l:[]).length;return 1===r.length?i?"".concat(a," 보유"):"장비 1종 보유":i?"".concat(a," 등 장비 ").concat(r.length,"종 보유"):"장비 ".concat(r.length,"종 보유")},v=e=>{var t,n;let l;let r=s(null==e?void 0:null===(t=e.intro)||void 0===t?void 0:t.partnerName)||"캐파",{label:a}=c(null==e?void 0:null===(n=e.intro)||void 0===n?void 0:n.address),i=x(e);return l=i.length&&a?"".concat(a," ").concat(i.join("\xb7")):i.length?"".concat(i.join("\xb7")," 전문"):a?"".concat(a," 제조 파트너"):"제조 파트너","".concat(r," (").concat(new Date().getFullYear(),") | ").concat(l," | ").concat("캐파(CAPA)")},b=(e,t)=>{var n,l,r,a,i,o,d,u;let m=s(null==e?void 0:null===(n=e.intro)||void 0===n?void 0:n.partnerName),{label:f}=c(null==e?void 0:null===(l=e.intro)||void 0===l?void 0:l.address),v=x(e),b=s(null==e?void 0:null===(r=e.intro)||void 0===r?void 0:r.industryName),j=null==e?void 0:e.statistics,w=(v.length?[f,"".concat(v.join("\xb7")," 전문"),m]:[f&&"".concat(f," 소재"),m]).filter(Boolean).join(" "),y=[];!v.length&&b&&y.push(b),(null==j?void 0:j.totalReviewCnt)&&y.push("리뷰 ".concat(j.totalReviewCnt,"건 평점 ").concat(Number(null!==(i=j.avgReviewScore)&&void 0!==i?i:0).toFixed(2))),(null==j?void 0:j.totalDealCnt)&&y.push("누적 거래 ".concat(j.totalDealCnt,"건"));let C=p(h(null==e?void 0:e.certifications,t),(null!==(o=null==t?void 0:t.certifications)&&void 0!==o?o:[]).map(e=>s(null==e?void 0:e.name)).filter(Boolean));C&&y.push(C);let N=Math.max(null!==(d=null==e?void 0:null===(a=e.patents)||void 0===a?void 0:a.length)&&void 0!==d?d:0,null!==(u=null==t?void 0:t.patentTotalCnt)&&void 0!==u?u:0);N&&y.push("특허 ".concat(N,"건"));let Z=g(null==e?void 0:e.equipments);return Z&&y.push(Z),(null==j?void 0:j.isTaxBill)&&y.push("세금계산서 발행"),[w?"".concat(w,"."):"",y.length?"".concat(y.join(", "),"."):"","캐파에서 도면 올리고 무료로 견적 받아보세요."].filter(Boolean).join(" ").replace(/\s+/g," ").trim()},j=(e,t,n,l)=>{var r,a,i,o;let c=s(null==e?void 0:null===(r=e.intro)||void 0===r?void 0:r.partnerName);if(!c)return null;let m=null==e?void 0:e.intro,p=null==e?void 0:e.statistics,h=d(null==m?void 0:m.address),f={"@context":"https://schema.org","@type":"LocalBusiness","@id":"".concat(t,"#business"),name:c,url:t};if(n&&/^https?:\/\//i.test(n)&&(f.image=n),h.region||h.locality){let e={"@type":"PostalAddress",addressCountry:"KR"};h.region&&(e.addressRegion=h.region),h.locality&&(e.addressLocality=h.locality),f.address=e}let g=x(e,5);g.length&&(f.makesOffer=g.map(e=>({"@type":"Offer",itemOffered:{"@type":"Service",name:e}})));let v=Number(null!==(a=null==p?void 0:p.totalReviewCnt)&&void 0!==a?a:0),b=Number(null!==(i=null==p?void 0:p.avgReviewScore)&&void 0!==i?i:0);v>0&&b>0&&(f.aggregateRating={"@type":"AggregateRating",ratingValue:Number(b.toFixed(2)),reviewCount:v,bestRating:5,worstRating:1});let j=u(null==m?void 0:m.foundedIn);j&&(f.foundingDate=j);let w=(null!==(o=null==l?void 0:l.certifications)&&void 0!==o?o:[]).map(e=>
1s(null==e?void 0:e.name)).filter(Boolean);return w.length&&(f.hasCredential=w.map(e=>({"@type":"EducationalOccupationalCredential",name:e,credentialCategory:"certification"}))),f}},92807:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var l=n(76204),r=n(67769),a=n(79313),i=e=>{let{children:t}=e,n=(0,r.useRef)([]),i=(0,r.useRef)([]),s=(0,r.useRef)(()=>{n.current.length>0&&(document.body.style.overflow="hidden")}),o=(0,r.useRef)(()=>{0===n.current.length&&document.body.style.removeProperty("overflow")}),c=(0,r.useRef)(e=>{if(u.current(e)){var t;null===(t=e.ref)||void 0===t||t.focus()}}),d=(0,r.useRef)((e,t)=>{let l=n.current.indexOf(e);if(-1!==l)return l;l=n.current.length,n.current.push(e);let r=i.current.findIndex(e=>e.el===t);return -1!==r?i.current[r].modals.push(e):(i.current.push({modals:[e],el:t}),s.current()),l}),u=(0,r.useRef)(e=>n.current.length>0&&n.current[n.current.length-1].el===e.el),x=(0,r.useRef)(e=>{let t=n.current.findIndex(t=>t.el===e.el);if(-1===t)return t;let l=i.current.findIndex(t=>-1!==t.modals.findIndex(t=>t.el===e.el)),r=i.current[l];i.current.splice(l,1),n.current.splice(t,1),r.el.remove(),o.current()});return(0,l.jsx)(a.Z.Provider,{value:{focus:c.current,remove:x.current,add:d.current,isTopModal:u.current,preventScroll:s.current,releaseScroll:o.current},children:t})},s=n(99736),o=e=>{let{children:t}=e,{modals:n}=(0,s.Z)();return(0,l.jsxs)(i,{children:[t,n.map((e,t)=>(0,l.jsx)(r.Fragment,{children:e},t))]})}},21178:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var l,r,a=n(76204),i=n(67769),s=n.n(i),o=n(31034),c=n(80339),d=n(44808);let u=s().forwardRef(function(e,t){let{children:n,size:a=16,...i}=e;return s().createElement(d.I,{width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...i},l||(l=s().createElement("path",{fill:"none",d:"M14.875,8h2.25V19h-2.25ZM16,25a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,25Z","data-icon-path":"inner-path"})),r||(r=s().createElement("path",{d:"M30.8508,15.4487,23.8867,3.5322A1.0687,1.0687,0,0,0,22.9643,3H9.0357a1.0687,1.0687,0,0,0-.9224.5322L1.1492,15.4487a1.0933,1.0933,0,0,0,0,1.1026L8.1133,28.4678A1.0687,1.0687,0,0,0,9.0357,29H22.9643a1.0687,1.0687,0,0,0,.9224-.5322l6.9641-11.9165A1.0933,1.0933,0,0,0,30.8508,15.4487ZM14.875,8h2.25V19h-2.25ZM16,25a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,25Z"})),n)});var x=n(6277),m=n(33532);let p=(0,i.forwardRef)((e,t)=>{let{collapsed:n,color:l,position:r,children:s,handleCollapsed:o,duration:c=3e3,...d}=e,u=(0,i.useRef)(0),[p,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!n){let e=t.current;e&&(u.current=requestAnimationFrame(()=>{switch(e.style.marginBottom="8px",e.style.opacity="1",e.style.maxHeight="100%",r){case"bottom-left":e.style.transform="translateX(0)";break;case"bottom-right":e.style.transform="translateX(-100%)";break;case"top-center":case"bottom-center":e.style.transform="translateY(0%)"}}))}if(n){let e=t.current;e&&(u.current=requestAnimationFrame(()=>{switch(e.style.opacity="0",e.style.maxHeight="100%",r){case"bottom-left":e.style.transform="translateX(-100%)";break;case"bottom-right":e.style.transform="translateX(0%)";break;case"top-center":e.style.transform="translateY(-100%)";break;case"bottom-center":e.style.transform="translateY(100%)"}}))}},[n,t,r]),(0,i.useEffect)(()=>{let e;return!t.current||n||p||(e=setTimeout(()=>{o()},c)),()=>{clearTimeout(e)}},[n,c,t,p,o]),(0,i.useEffect)(()=>()=>{cancelAnimationFrame(u.current)},[]);let f=(0,i.useCallback)(()=>{h(e=>!e)},[]);return(0,a.jsx)("div",{...d,ref:(0,m.Z)(t),className:(0,x.Z)("min-w-343 flex justify-center","transition-all duration-300 ease-in opacity-0 select-none","py-[11.5
1px] px-[12px] rounded-200","flex gap-8",{"bg-gray900":"default"===l,"bg-red200":"error"===l,"bg-blue200":"info"===l}),onClick:o,onMouseEnter:f,onMouseLeave:f,children:s})}),h=()=>(0,a.jsx)("svg",{className:"text-textWhite",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.43754 15.625H9.25004V14.375H6.43754C5.54603 14.3763 4.68892 14.031 4.04734 13.412C3.40576 12.793 3.02997 11.9488 2.99938 11.0578C2.96879 10.1668 3.28579 9.29879 3.8834 8.63722C4.48101 7.97566 5.31241 7.57235 6.20192 7.51251L6.72461 7.4772L6.78086 6.95626C6.91973 5.68489 7.54058 4.51509 8.51566 3.68751C9.49074 2.85994 10.7459 2.43753 12.0229 2.50718C13.3 2.57683 14.5018 3.13325 15.3811 4.06197C16.2603 4.99069 16.7503 6.22108 16.75 7.50001H18C17.9995 5.94473 17.4191 4.44551 16.3723 3.29529C15.3254 2.14508 13.8873 1.4265 12.3389 1.27995C10.7906 1.13341 9.24319 1.56944 7.99913 2.50283C6.75507 3.43623 5.90372 4.79994 5.61142 6.32751C4.45845 6.53345 3.42443 7.16375 2.7131 8.09422C2.00178 9.02468 1.66474 10.1878 1.7684 11.3544C1.87206 12.5211 2.4089 13.6065 3.27314 14.397C4.13737 15.1875 5.26633 15.6256 6.43754 15.625ZM19.25 10H11.75V11.25H19.25V10ZM11.75 13.125H19.25V14.375H11.75V13.125ZM11.75 16.25H19.25V17.5H11.75V16.25Z",fill:"white"})}),f=(0,i.forwardRef)((e,t)=>{let{id:n,icon:l,color:r,message:s,duration:o,position:d,onRemove:m}=e,f=(0,i.useRef)(null),g=(0,i.useRef)(null),[v,b]=(0,i.useState)(!0),j=(0,i.useCallback)(()=>f.current=setTimeout(()=>{b(e=>!e)},125),[]),w=(0,i.useCallback)(e=>{"transform"===e.propertyName&&v&&m(n)},[m,n,v]);return(0,i.useEffect)(()=>{f.current=j()},[j]),(0,i.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]),(0,a.jsxs)(p,{duration:o,ref:g,collapsed:v,position:d,color:r,handleCollapsed:j,onTransitionEnd:w,children:[l&&"default"===r&&(0,a.jsx)(h,{}),l&&"error"===r&&(0,a.jsx)(u,{size:20,className:"text-bgNegative"}),l&&"info"===r&&(0,a.jsx)(c.Z,{size:20,className:"text-textAccent"}),(0,a.jsx)("span",{className:(0,x.Z)("text-m font-medium",{"text-white":"default"===r,"text-textNegative":"error"===r,"text-textAccent":"info"===r}),children:s})]})});var g=(0,i.memo)(f),v=n(44871),b=n(96343),j=()=>{let e=(0,i.useRef)(null),t=(0,i.useRef)(null),{deleteSnackbar:n}=(0,v.Z)(),{snackbars:l,position:r}=(0,b.Z)();return((0,i.useEffect)(()=>{l.length>0&&(t.current=requestAnimationFrame(()=>{e.current&&(e.current.style.height="auto",e.current.style.willChange="height, max-height, transform",e.current.style.maxHeight="100%")})),0===l.length&&t.current&&cancelAnimationFrame(t.current)},[l]),0===l.length)?null:(0,a.jsx)("div",{ref:e,style:{maxHeight:0},className:(0,x.Z)("flex-col-reverse","transition-all duration-[700ms] ease-linear ","fixed z-[2000] max-w-[343px]",{"bottom-[20px] left-[20px]":"bottom-left"===r,"bottom-[20px] right-[20px]":"bottom-right"===r,"bottom-[20px] left-[50%] translate-x-[-50%]":"bottom-center"===r,"left-[50%] top-[30px] translate-x-[-50%] flex-col":"top-center"===r}),children:null==l?void 0:l.map((e,t)=>{var l,a;return(0,i.createElement)(g,{...e,key:e.id,duration:3e3,position:r,color:null===(l=e.options)||void 0===l?void 0:l.color,icon:null===(a=e.options)||void 0===a?void 0:a.icon,onRemove:n})})})},w=e=>{let{children:t,duration:n=3e3,max:l=3}=e,[r,s]=(0,i.useState)(null),{snackbars:c}=(0,b.Z)();return(0,i.useEffect)(()=>{setTimeout(()=>{s(document.body)},0)},[t]),(0,i.useEffect)(()=>{0===c.length?s(null):s(document.body)},[c]),(0,a.jsxs)(a.Fragment,{children:[t,(0,a.jsx)(o.Z,{container:r,children:(0,a.jsx)(j,{})})]})}},56636:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var l,r,a=n(67769),i=n.n(a),s=n(44808);let o=i().forwardRef(function(e,t){let{children:n,size:a=16,...o}=e;return i().createElement(s.I,{width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},l||(l=i().createElement("path",{d:"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14 S23.7,2,16,2z"})),r||(r=i().createElement("path",{d:"M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z"})),n)})},58559:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var l,r,a,i,s=n(67769),o=n.n(s),c=n(44808);let d=o().forwardRef(function(e,t){let{children:n,size:s=16,...d}=e;return 16===s||"16"===s||"16px"===s?o().createElement(c.I,{width:s,height:s,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...d},l||(l=o().createElement("path",{d:"M9.3 3.7L13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),n):20===s||"20"===s||"20px"===s?o().createElement(c.I,{width:s,height:s,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...d},r||(r=o().createElement("path",{d:"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),n):24===s||"24"===s||"24px"===s?o().createElement(c.I,{width:s,height:s,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor",...d},a||(a=o().createElement("path",{d:"M14 4L12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),n):o().createElement(c.I,{width:s,height:s,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...d},i||(i=o().createElement("path",{d:"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),n)})},22060:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l,r=n(67769),a=n.n(r),i=n(44808);let s=a().forwardRef(function(e,t){let{children:n,size:r=16,...s}=e;return a().createElement(i.I,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},l||(l=a().createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),n)})},12067:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l,r=n(67769),a=n.n(r),i=n(44808);let s=a().forwardRef(function(e,t){let{children:n,size:r=16,...s}=e;return a().createElement(i.I,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},l||(l=a().createElement("path",{d:"M22.45,6a5.47,5.47,0,0,1,3.91,1.64,5.7,5.7,0,0,1,0,8L16,26.13,5.64,15.64a5.7,5.7,0,0,1,0-8,5.48,5.48,0,0,1,7.82,0L16,10.24l2.53-2.58A5.44,5.44,0,0,1,22.45,6m0-2a7.47,7.47,0,0,0-5.34,2.24L16,7.36,14.89,6.24a7.49,7.49,0,0,0-10.68,0,7.72,7.72,0,0,0,0,10.82L16,29,27.79,17.06a7.72,7.72,0,0,0,0-10.82A7.49,7.49,0,0,0,22.45,4Z"})),n)})},11591:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var l,r,a,i,s=n(67769),o=n.n(s),c=n(44808);let d=o().forwardRef(function(e,t){let{children:n,size:s=16,...d}=e;return 16===s||"16"===s||"16px"===s?o().createElement(c.I,{width:s,height:s,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...d},l||(l=o().createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),r||(r=o().createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n):o().createElement(c.I,{width:s,height:s,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...d},a||(a=o().createElement("path",{d:"M26,28H6a2.0027,2.0027,0,0,1-2-2V6A2.0027,2.0027,0,0,1,6,4H16V6H6V26H26V16h2V26A2.0027,2.0027,0,0,1,26,28Z"})),i||(i=o().createElement("path",{d:"M20 2L20 4 26.586 4 18 12.586 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"})),n)})},98125:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l,r=n(67769),a=n.n(r),i=n(44808);let s=a().forwardRef(function(e,t){let{children:n,size:r=16,...s}=e;return a().createElement(i.I,{width:r,height:r,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...s},l||(l=a().createElement("path",{d:"M23,20a5,5,0,0,0-3.89,1.89L11.8,17.32a4.46,4.46,0,0,0,0-2.64l7.31-4.57A5,5,0,1,0,18,7a4.79,4.79,0,0,0,.2,1.32l-7.31,4.57a5,5,0,1,0,0,6.22l7.31,4.57A4.79,4.79,0,0,0,18,25a5,5,0,1,0,5-5ZM23,4a3,3,0,1,1-3,3A3,3,0,0,1,23,4ZM7,19a3,3,0,1,1,3-3A3,3,0,0,1,7,19Zm16,9a3,3,0,1,1,3-3A3,3,0,0,1,23,28Z"})),n)})},28269:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var l,r,a=n(67769),i=n.n(a),s=n(44808);let o=i().forwardRef(function(e,t){let{children:n,size:a=16,...o}=e;return 16===a||"16"===a||"16px"===a?i().createElement(s.I,{width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},l||(l=i().createElement("path",{d:"M8,1L5.7,5.6L0.6,6.3l3.7,3.6L3.5,15L8,12.6l4.6,2.4l-0.9-5.1l3.7-3.6l-5.1-0.7L8,1z"})),n):i().createElement(s.I,{width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},r||(r=i().createElement("path",{d:"M16,2l-4.55,9.22L1.28,12.69l7.36,7.18L6.9,30,16,25.22,25.1,30,23.36,19.87l7.36-7.17L20.55,11.22Z"})),n)})},13078:function(e,t,n){"use strict";function l(e){if(Number.isInteger(e))return"".concat(e,".0");let t=e.toFixed(2);return"0"===t[3]?t.slice(0,3):t}n.d(t,{Z:function(){return l}})}},function(e){var t=[];e(23627),e.f&&e.f.consumes&&(e.f.consumes(2888,t),e.f.consumes(3571,t)),_N_E=Promise.all(t).then(function(){var t=function(t){return e(e.s=t)};return e.O(0,[2888,179],function(){return t(23627),t(35421)}),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.