"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[871],{74209:function(e,t){t.Z={src:"/_next/static/media/fapis_logo_white.8e6a71f7.png",height:330,width:660,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAQAAAAZxLZ7AAAASElEQVR42g3BoQ2DAAAEwBetbdK0qg2jMAAGCwqLJkEiECyAJoQR2PACd9H7iIdovSQ2P5NBbTcq49BZ741TZYm/t8Ls6ylyAXObKLe6rtPFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},72233:function(e,t,n){n.r(t);var r=n(43212),i=n(77953),a=n(77011),u=n(46618),s=n(33713),l=n(42194);function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function c(){let e=o(["\n              transform: rotate(180deg);\n            "]);return c=function(){return e},e}function d(){let e=o(["\n          left: 5px;\n        "]);return d=function(){return e},e}function f(){let e=o(["\n          right: 7px;\n        "]);return f=function(){return e},e}let g={back:"ChevronLeft",forward:"ChevronLeft",close:"Close",home:"Home"},I={back:"left",forward:"right",close:"right",home:"right"};t.default=function(e){var t;let{variety:n,children:a,onClick:o,hasPreventDefaultRouter:d,direction:f,color:I,...m}=e,p=null!==(t=u.O9[I])&&void 0!==t?t:I;return(0,r.tZ)(h,{...m,onClick:e=>{if(null==o||o(e),!d)switch(n){case"home":(0,l.l7)(s.F.main);break;case"close":case"back":(0,l.P0)()}},variety:n,direction:f,children:n?(0,r.tZ)(u.JO,{name:g[n],css:(0,i.css)("color:",null!=p?p:u.O9.mainBlack,";","forward"===n&&(0,i.css)(c()))}):a})};let h=(0,a.Z)("button",{target:"e15jque80"})("all:unset;position:absolute;top:50%;transform:translateY(-50%);",e=>{let{variety:t,direction:n}=e;return"left"===I[t]||"left"===n?(0,i.css)(d()):(0,i.css)(f())},"  display:flex;justify-content:center;align-items:center;width:40px;height:40px;cursor:pointer;")},39880:function(e,t,n){n.r(t),n.d(t,{LAYOUT_HEADER_HEIGHT_PX:function(){return h},default:function(){return m}});var r=n(43212),i=n(91987),a=n(77953),u=n(77011),s=n(46618),l=n(23269),o=n(72233),c=n(83627),d=n(33247),f=function(e){let{children:t,...n}=e;return(0,r.tZ)(g,{...n,children:t})};let g=(0,u.Z)("p",{target:"e730zr10"})("margin:0;display:flex;justify-content:center;align-items:center;height:100%;",(0,d.Z)("16B"),";color:",s.O9.mainBlack,";");function I(){var e,t;let n=(e=["\n      border-bottom: "," solid ",";\n    "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return I=function(){return n},n}let h=48;var m=Object.assign((0,i.forwardRef)(function(e,t){let{children:n,title:i,variety:a="box",...u}=e;return(0,r.BX)(b,{ref:t,variety:a,...u,children:[!!i&&(0,r.tZ)(f,{children:i}),n]})}),{Logo:function(){return(0,r.tZ)("div",{css:(0,a.css)("display:flex;align-items:center;justify-content:center;height:100%;width:100%;"),children:(0,r.tZ)(c.Z,{width:60,height:30,action:"reset"})})},Title:f,Button:o.default});let{color:p,height:A}=l.DIVIDER_BY_VARIETY.line,b=(0,u.Z)("header",{target:"ecuwpjr0"})("position:sticky;top:0;width:100%;min-height:",h,"px;max-height:",h,"px;height:100%;z-index:10;background-color:",s.O9.white,";touch-action:none;",s.BC.tablet,"{width:400px;}",e=>{let{variety:t}=e;return"box"===t&&(0,a.css)(I(),A,p)})},57168:function(e,t,n){var r=n(43212),i=n(91987),a=n(77011),u=n(46618),s=n(39880);t.Z=Object.assign((0,i.forwardRef)(function(e,t){let{children:n,top:i,bottom:a,...u}=e;return(0,r.BX)(l,{ref:t,...u,children:[i,n,a]})}),{Header:s.default});let l=(0,a.Z)("div",{target:"e69wat10"})("position:relative;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;",u.BC.tablet,"{width:400px;left:calc(50% - 200px);}",u.IV,";")},83627:function(e,t,n){var r=n(43212),i=n(17589),a=n.n(i),u=n(15023),s=n(96106),l=n(33713),o=n(42194),c=n(48309);t.Z=function(e){let{action:t,onClick:n,...i}=e,d=(0,u.useRouter)();return(0,s.hD)()?(0,r.tZ)(c.Z,{...i,onClick:e=>{null==n||n(e),d.pathname!==l.F.main&&("push"===t?(0,o.qP)(l.F.main):(0,o.qB)(l.F.main))}}):(0,r.tZ)(a(),{href:l.F.main,replace:"reset"===t,children:(0,r.tZ)(c.Z,{...i})})}},48309:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(43212),i=n(3921),a=n.n(i),u=n(74209),s={src:"/_next/static/media/new_fapis_logo.0d15ac13.png",height:654,width:1290,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAQAAAAZxLZ7AAAAQ0lEQVR42gXAMQpAUBgA4G/gAFKvGFzFLKNyAOUGZDXY7AZyCCf8xSwFWTAqAo/GZtV7LVpuk9Nl8Okc1EqVXZKH8APgdQ3xdXPWdwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},l=function(e){let{onClick:t,width:n,height:i,color:l="mainBlack",className:o,...c}=e;return(0,r.tZ)(a(),{className:o,onClick:t,src:"mainBlack"===l?s:u.Z,alt:"패피스 로고",height:i,width:n,priority:!0,...c})}},85583:function(e,t,n){n.d(t,{Z:function(){return u}});let r=(0,n(67275).ky)(["A01","A02","A03","B01","B02","B03","C01","C02"]),i={A01:["a130","a140","a150","a160","a170","a175","a180","a185","a190","a195","a200","a220","a230","a240","a260","e100","e120","e130","ea130","ea140","ea150","ea160","ea190","ea200","ea220","ea230","ea240"],A02:["a100","a110","a120","ea100","ea110","ea120"],A03:["a250"],B01:["b130","b140","b150","b160","b170","b180","b190"],B02:["b110","b120"],B03:["b100"],C01:["c100","c110","c120","c130","c140","c150","c160","c170"],C02:["c200"]};class a{static isValidCode(e){return!!r[e]}static getCodeByRepairCategoryCode(e){let t=Object.entries(i).find(t=>{let[,n]=t;return n.includes(e)});return t?t[0]:null}static hasBundleItemCode(e){return this.BUNDLE_ITEM_CODE_LIST.includes(e)}static getCodeListByItemCode(e){return this.hasBundleItemCode(e)?this.BUNDLE_CODE_BY_ITEM_CODE[e]:[]}}a.BUNDLE_CODE_BY_ITEM_CODE={a:["A01","A02","A03"],b:["B01","B02","B03"],c:["C01","C02"],e:["A01","A02"]},a.BUNDLE_ITEM_CODE_LIST=Object.keys(a.BUNDLE_CODE_BY_ITEM_CODE);var u=a},50559:function(e,t,n){n.d(t,{R:function(){return a},r:function(){return i}});var r=n(67275);let i=["고야드","골든구스","구찌","꼼데가르송","나이키","노스페이스","뉴발란스","디올","로로 피아나","루이비통","메종 마르지엘라","메종 키츠네","몽클레어","무스 너클","미우미우","발렌시아가","발렌티노","버버리","보테가 베네타","생로랑","샤넬","셀린느","스톤아일랜드","아더에러","알렉산더 맥퀸","에르메스","우영미","질 스튜어트","캐나다 구스","캐나다구스","코치","톰 브라운","파라점퍼스","페라가모","펜디","폴 스미스","폴로","프라다","롤렉스","오메가","태그호이어","해밀턴","까르띠에"],a=(0,r.ky)(i)},50276:function(e,t,n){n.d(t,{Pi:function(){return s},md:function(){return u},RS:function(){return r.R},q9:function(){return i.q9},ar:function(){return i.ar},BW:function(){return i.BW},Wj:function(){return i.Wj},IM:function(){return i.IM},XN:function(){return c},zA:function(){return a},_Q:function(){return l},Uj:function(){return o}});var r=n(50559),i=n(75978);let a={beforeRequest:"견적 접수 전",temporary:"견적 요청 전",onRequest:"견적 요청 완료",arrivedPartially:"견적 도착",arrivedAll:"견적 모두 도착",waitingForDeposit:"입금 대기 중",waitingForExtraDeposit:"추가 결제 입금 대기 중",payed:"결제 완료",inProgress:"작업 중",sentBackToCustomer:"발송 완료",needExtraPayment:"추가결제 대기 중",reviewed:"리뷰 작성 완료",refunded:"환불 완료",matchFailedImpossible:"매칭실패 - 작업 불가",matchFailedTimeout:"매칭실패 - 결제 시간초과"},u=[a.beforeRequest,a.onRequest],s=[a.arrivedAll,a.matchFailedImpossible,a.matchFailedTimeout],l=[a.arrivedPartially,a.arrivedAll],o=[a.payed,a.inProgress,a.needExtraPayment,a.waitingForExtraDeposit];a.sentBackToCustomer,a.reviewed,a.refunded,a.matchFailedImpossible,a.matchFailedTimeout;let c={NORMAL:"n",SELECTED_STORE:"ss",REWORK:"rw",ZERO:"z"}},75978:function(e,t,n){n.d(t,{BW:function(){return i},IM:function(){return s},Wj:function(){return u},ar:function(){return l},ng:function(){return o},q9:function(){return a}});var r=n(67275);let i=(0,r.ky)(["전체","가방/핸드백","신발","의류","지갑/벨트","패션 잡화","시계","주얼리"]),a={[i["전체"]]:"",[i["가방/핸드백"]]:"a",[i["신발"]]:"b",[i["의류"]]:"c",[i["지갑/벨트"]]:"e",[i["패션 잡화"]]:"f",[i["시계"]]:"g",[i["주얼리"]]:"j"},u=(0,r.ER)(a),s=i,l={[a["가방/핸드백"]]:"\uD83D\uDC5C",[a.신발]:"\uD83D\uDC5F",[a["지갑/벨트"]]:"\uD83D\uDC5B",[a["의류"]]:"\uD83E\uDDE5",[a["시계"]]:"⌚",[a["주얼리"]]:"\uD83D\uDC8D"};i["가방/핸드백"],l[a["가방/핸드백"]],i["신발"],l[a["신발"]],i["지갑/벨트"],l[a["지갑/벨트"]],i["의류"],l[a["의류"]],i["시계"],l[a["시계"]];let o=["ja","jb","jc","jd"]},18956:function(e,t,n){var r=n(67275),i=n(75978);class a{static isOverMonthAfterDeliveryDate(e){return Math.floor((Date.now()-Date.parse(e))/r.lp.days)>=30}static getItemTypeByCode(e){return i.Wj[e]}static getItemCodeByType(e){return i.q9[e]}static getIsWatchItem(e){return e===i.IM.시계}static getIsJewelryItem(e){return e===i.IM.주얼리}static isValidRequestItemType(e){return this.REQUEST_ITEM_TYPE_OPTION.some(t=>t===e)}static getIsTechnicalItemType(e){return this.getIsWatchItem(e)||this.getIsJewelryItem(e)}static getIsTechnicalItemCode(e){let t=this.getItemTypeByCode(e);return this.getIsTechnicalItemType(t)}static getIsValidItemCode(e){return Object.keys(i.Wj).includes(e)}static getIsClothesLaundryRequest(e){let{item:t,request_bundle:n}=e;return"의류"===t&&n.includes("C02")}static getRepairCategoryChoiceList(e){let{repair_category_choice1:t,repair_category_choice2:n,repair_category_choice3:i}=e;return Object.values((0,r.u3)({repair_category_choice1:t,repair_category_choice2:n,repair_category_choice3:i}))}static getIsValidSubItemCode(e){let{itemCode:t,subItemCode:n}=e;if(!t||!n||!this.getIsValidItemCode(t))return!1;let r=i.ng.find(e=>e===n);return!!r&&r[0]===t}}a.REQUEST_ITEM_TYPE_OPTION=["가방/핸드백","시계","신발","의류","주얼리","지갑/벨트"],t.Z=a},17250:function(e,t,n){n.d(t,{$e:function(){return d},Ct:function(){return f},DR:function(){return c},Ie:function(){return a},S3:function(){return s},YT:function(){return l},b0:function(){return o},tZ:function(){return u}});var r=n(67275),i=n(50276);let a=(0,r.ky)(["b2b","item","subItem","bundle","brand","multiBrand","image","category","complete","login","send","product"]),u="repair",s="watch",l="reform",o="laundary",c="jewelry",d=[u,s,l,o,c],f={[i.IM.시계]:s}},86518:function(e,t,n){n.d(t,{EK:function(){return a},Lr:function(){return i},V4:function(){return u}});var r=n(17250);let i=r.Ie.item,a=[r.Ie.b2b,r.Ie.item,r.Ie.bundle,r.Ie.brand,r.Ie.multiBrand,r.Ie.category,r.Ie.image,r.Ie.login,r.Ie.send,r.Ie.complete],u=new Map([[r.Ie.b2b,{progress:0,previousStep:null,nextStep:r.Ie.category,save:!1}],[r.Ie.item,{progress:0,previousStep:null,nextStep:r.Ie.bundle,save:!1}],[r.Ie.bundle,{progress:25,previousStep:r.Ie.item,nextStep:r.Ie.brand,save:!1}],[r.Ie.brand,{progress:50,previousStep:r.Ie.bundle,nextStep:r.Ie.category,save:!1}],[r.Ie.multiBrand,{progress:50,previousStep:r.Ie.bundle,nextStep:r.Ie.category,save:!1}],[r.Ie.category,{progress:75,previousStep:r.Ie.brand,nextStep:r.Ie.image,save:!0}],[r.Ie.image,{progress:95,previousStep:r.Ie.category,nextStep:r.Ie.complete,save:!1}],[r.Ie.login,{progress:100,previousStep:null,nextStep:r.Ie.send,save:!1}],[r.Ie.send,{progress:100,previousStep:null,nextStep:r.Ie.complete,save:!1}],[r.Ie.complete,{progress:100,previousStep:null,nextStep:null,save:!1}]])},6183:function(e,t,n){var r=n(67275),i=n(86518),a=n(17250);class u{static isValidItem(e){return!!e}static isValidBrand(e){return!!(null==e?void 0:e.trim())}static isValidBundleList(e){return!!(null==e?void 0:e.length)}static isValidComment(e){return!!(null==e?void 0:e.trim())}static isValidImage(e){let{overall_image:t,detail_image:n}=e;return!!(null==t?void 0:t.length)&&!!(null==n?void 0:n.length)}static isValidMultiBrandImage(e){let{overall_image:t}=e;return!!(null==t?void 0:t.length)}static isValidRequest(e){let{item:t,brand:n,detail_image:r,overall_image:i,bundle:a,comment:u}=e;return this.isValidItem(t)&&this.isValidBrand(n)&&this.isValidBundleList(a)&&this.isValidComment(u)&&this.isValidImage({overall_image:i,detail_image:r})}static isValidImageMultiRequest(e){let{item:t,brand:n,overall_image:r,bundle:i}=e;return this.isValidItem(t)&&this.isValidBrand(n)&&this.isValidBundleList(i)&&this.isValidMultiBrandImage({overall_image:r})}static isValidRequestStep(e){return!!(0,r.ky)(i.EK)[e]}static getBrands(e){let t=(null==e?void 0:e.split(u.BRAND_JOINER))||[],n=[];return t.forEach(e=>{let t=e.trim();t&&n.push(t)}),n}static isMultiBrand(e){return u.getBrands(e).length>1}static getShortenKoBrands(e){let t=u.getBrands(e),n=t[0],r=t.length-1,i=n;return r>0&&(i+=" 외 ".concat(r,"건")),i}static getDetailKoBrands(e){if(!this.isMultiBrand(e))return e;let t=this.getBrands(e),n={};t.forEach(e=>{n[e]=++n[e]||1});let r="";return Object.keys(n).forEach((e,t)=>{t>0&&(r+=", "),r+="".concat(e," ").concat(n[e],"개")}),r}static getTempRequestStep(e,t){let n=i.EK.findIndex(t=>!this.VALIDATION_BY_STEP[t](e));if(-1===n)return t;let r=i.EK.findIndex(e=>e===t);return i.EK[Math.max(Math.min(n,r),0)]}}u.BRAND_JOINER=",",u.VALIDATION_BY_STEP={[a.Ie.item]:e=>{let{item:t}=e;return u.isValidItem(t)},[a.Ie.bundle]:e=>{let{bundle:t}=e;return u.isValidBundleList(t)},[a.Ie.brand]:e=>{let{brand:t}=e;return u.isValidBrand(t)},[a.Ie.multiBrand]:e=>{let{brand:t}=e;return u.isValidBrand(t)},[a.Ie.category]:e=>{let{comment:t}=e;return u.isValidComment(t)},[a.Ie.image]:e=>{let{overall_image:t,detail_image:n,brand:r}=e;return u.isMultiBrand(r)?u.isValidMultiBrandImage({overall_image:t}):u.isValidImage({overall_image:t,detail_image:n})},[a.Ie.login]:()=>!0,[a.Ie.send]:()=>!0,[a.Ie.complete]:()=>!0,[a.Ie.b2b]:()=>!0},t.Z=u}}]);