PageSourceSearch

https://apm-web.amoremall.com/_next/static/chunks/pages/my/page/info/beautyProfile-83305b0d52df6262.js

js amoremall.com collected 2026-10-02 06:50:46 UTC 85,632 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4169],{43576:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my/page/info/beautyProfile",function(){return t(91722)}])},91722:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return Oe},default:function(){return Le}});var i,a=t(98788),o=t(22970),r=t(52322),l=t(2784),s=t(64157),c=t(27455),u=t(99216),d=t(8446),p=t(70338),m=t(5621),f=t(92198),h=function(){var e=(0,a.Z)((function(e){return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return[4,e.apiGW.get("/commune/profile/integration")];case 1:return[2,n.sent().data]}}))}));return function(n){return e.apply(this,arguments)}}(),v=function(){var e=(0,a.Z)((function(e){return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return[4,e.apiGW({url:"/commune/profile/integration/skin",method:"delete"})];case 1:return[2,n.sent().data]}}))}));return function(n){return e.apply(this,arguments)}}(),g=function(){var e=(0,a.Z)((function(e,n){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return[4,e.apiGW({url:"/commune/profile/integration",method:"post",data:n,headers:{"Content-Type":"multipart/form-data"}})];case 1:return[2,t.sent().data]}}))}));return function(n,t){return e.apply(this,arguments)}}(),C=function(){var e=(0,a.Z)((function(e,n){var t,i,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e.apiCommunity({url:"profile/detail",method:"post",params:{},data:n})];case 1:return(null===(i=o.sent())||void 0===i?void 0:i.data)&&"SUC_PROC_0000"===(null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.code)?[2,null===i||void 0===i?void 0:i.data]:(d.Z.error(null,"error code: ".concat(i.data.code," message: ").concat(i.data.message)),[3,3]);case 2:return a=o.sent(),d.Z.error(a,"fetchGetBeautyFeedProfile API \uc5d0\ub7ec"),[3,3];case 3:return[2]}}
1))}));return function(n,t){return e.apply(this,arguments)}}(),N=function(){var e=(0,a.Z)((function(e,n){var t,i;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.apiCommunity({url:"/profile/custNickNameDuplicateCheck",method:"post",params:{},data:{custNknmNm:n}})];case 1:return[2,null===(t=a.sent())||void 0===t?void 0:t.data];case 2:return i=a.sent(),d.Z.error(i,"fetchCheckBeautyFeedNicknameDuplicate API \uc5d0\ub7ec"),[3,3];case 3:return[2]}}))}));return function(n,t){return e.apply(this,arguments)}}(),x=function(){var e=(0,a.Z)((function(e,n){var t,i;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.apiCommunity({url:"/profile/custProfileModify",method:"post",data:n,headers:{"Content-Type":"multipart/form-data"}})];case 1:return[2,null===(t=a.sent())||void 0===t?void 0:t.data];case 2:return i=a.sent(),d.Z.error(i,"fetchSaveBeautyFeedProfile API \uc5d0\ub7ec"),[3,3];case 3:return[2]}}))}));return function(n,t){return e.apply(this,arguments)}}(),_={fetchGetBeautyProfile:h,fetchPostBeautyProfile:g,fetchDeleteBeautyProfile:v,fetchGetBeautyFeedProfile:C,fetchCheckBeautyFeedNicknameDuplicate:N,fetchSaveBeautyFeedProfile:x},b=t(70865),A=t(96670),k=t(24793),j=t(96738);!function(e){e.BIS_V1="/bpm/bis/v1",e.BCM_V2="/bpm/bcm/v2"}(i||(i={}));var y=function(){var e=(0,a.Z)((function(e,n){var t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return[4,(0,k.$j)(e.btCustIdNo,j.YM.NEXT_PUBLIC_BPM_API_AES_KEY)];case 1:return t=a.sent(),[2,n.apiGW.post("".concat(i.BIS_V1,"/skin-note/mission/beauty-profile-save"),(0,A.Z)((0,b.Z)({},e),{btCustIdNo:t})).then((function(e){return{data:e.data}})).catch((function(e){return{error:e}}))]}}))}));return function(n,t){return e.apply(this,arguments)}}(),I=function(){var e=(0,a.Z)((function(e,n){var t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return[4,(0,k.$j)(e.btCustIdNo,j.YM.NEXT_PUBLIC_BPM_API_AES_KEY)];case 1:return t=a.sent(),[2,n.apiGW.get("".concat(i.BIS_V1,"/skin-note/record/rst/profile"),{params:(0,A.Z)((0,b.Z)({},e),{btCustIdNo:t})}).then((function(e){return{data:e.data}}))]}}))}));return function(n,t){return e.apply(this,arguments)}}(),T=function(){var e=(0,a.Z)((function(e,n){return(0,o.__generator)(this,(function(t){return[2,n.apiGW.get("".concat(i.BCM_V2,"/getTerm"),{params:e})]}))}));return function(n,t){return e.apply(this,arguments)}}(),w=function(){var e=(0,a.Z)((function(e,n){var t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return[4,(0,k.$j)(null===e||void 0===e?void 0:e.btpCustIdntNo,j.YM.NEXT_PUBLIC_BPM_API_AES_KEY)];case 1:return t=a.sent(),[2,n.apiGW.get("".concat(i.BCM_V2,"/getTermAgreeYn"),{params:{encBtpCustIdntNo:t,applClCd:null===e||void 0===e?void 0:e.applClCd,btpCustIdntNoClCd:null===e||void 0===e?void 0:e.btpCustIdntNoClCd,btpTncNos:null===e||void 0===e?void 0:e.btpTncNos}}).then((function(e){var n,t;return null===(n=e.data)||void 0===n||null===(t=n.response)||void 0===t?void 0:t.termNContitionV2InfoAgrRes}))]}}))}));return function(n,t){return e.apply(this,arguments)}}(),S=function(){var e=(0,a.Z)((function(e,n){var t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return[4,(0,k.$j)(null===e||void 0===e?void 0:e.btpCustIdntNo,j.YM.NEXT_PUBLIC_BPM_API_AES_KEY)];case 1:return t=a.sent(),[2,n.apiGW.get("".concat(i.BCM_V2,"/getTermAgreeYn"),{params:{encBtpCustIdntNo:t,applClCd:null===e||void 0===e?void 0:e.applClCd,btpCustIdntNoClCd:null===e||void 0===e?void 0:e.btpCustIdntNoClCd,btpTncNos:null===e||void 0===e?void 0:e.btpTncNos}})]}}))}));return function(n,t){return e.apply(this,arguments)}}(),P=function(){var e=(0,a.Z)((function(e,n){var t;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return[4,(0,k.$j)(null===e||void 0===e?void 0:e.btpCustIdntNo,j.YM.NEXT_PUBLIC_BPM_API_AES_KEY)];case 1:return t=a.sent(),[2,n.apiGW.post("".concat(i.BCM_V2,"/saveTermAgreeYn"),{encBtpCustIdntNo:t,applClCd:null===e||void 0===e?void 0:e.applClCd,btpCustIdntNoClCd:null===e||void 0===e?void 0:e.btpCustIdntNoClCd,btpTncNo:null===e||void 0===e?void 0:e.btpTncNo,tncAgrYn:null===e||void 0===e?void 0:e.tncAgrYn,btpArexNo:null===e||void 0===e?void 0:e.btpArexNo}).then((function(e){return{data:e.data}})).catch((function(e){return{error:e}}))]}}))}));return function(n,t){return e.apply(this,arguments)}}(),E={fetchRequestSkinNotePoint:y,fetchGetSkinNoteResult:I,fetchGetTerm:T,fetchGetSkinNoteTermAgree:w,fetchGetTermAgreeYn:S,fetchSaveTermAgreeYn:P},O=t(14625),L=t(61305),B=t(39537),R=t(43698),M=t(76635),F=t.n(M),D=t(72779),V=t.n(D),Y=t(19329),Z=t(34739);function U(e){var n=e.children;return(0,r.jsxs)("section",{className:"page__skin-note__article",children:[(0,r.jsx)("h2",{className:"page__skin-note__title",children:"\uc2a4\ud0a8\ub178\ud2b8 \uc57d\uad00 \ub3d9\uc758 \uad00\ub9ac"}),(0,r.jsx)("p",{className:"page__skin-note__desc",children:"\uc2a4\ud0a8\ub178\ud2b8 \uc774\uc6a9 \uc57d\uad00\uc744 \ud655\uc778\ud558\uac70\ub098 \ucca0\ud68c\ud560 \uc218 \uc788\uc5b4\uc694."}),(0,r.jsx)("ul",{className:"module-terms",children:n}),(0,r.jsx)("p",{className:"txtTip sm",children:"*\ub3d9\uc758 \ucca0\ud68c \uc2dc \uc2a4\ud0a8\ub178\ud2b8 \uae30\ub85d \ub0b4\uc5ed\uc774 \ubaa8\ub450 \uc0ad\uc81c\ub429\ub2c8\ub2e4."})]})}var G=t(48065),H={PERSONAL:{serviceName:"\uc2a4\ud0a8\ub178\ud2b8 \ud53c\ubd80 \uae30\ub85d \uc11c\ube44\uc2a4",recordName:"\uc2a4\ud0a8\ub178\ud2b8 \ucd94\uac00 \ud56d\ubaa9 \uae30\ub85d \ub0b4\uc5ed"},SENSITIVE:{serviceName:"\uc2a4\ud0a8\ub178\ud2b8 AI \ud53c\ubd80 \uc9c4\ub2e8 \uc11c\ube44\uc2a4",recordName:"\uc2a4\ud0a8\ub178\ud2b8 \uc9c4\ub2e8 \uae30\ub85d \ub0b4\uc5ed"}};
1function W(e){var n=e.isOpenModal,t=e.setOpenModal,i=e.isSensitiveInfoAgree,a=e.onConfirmButtonClick,o=i?H.SENSITIVE:H.PERSONAL;return(0,r.jsx)(G.ZP,{isOpen:n,setIsOpen:t,clickConfirm:function(){a()},webViewFuncArgs:{pageName:"beautyProfile.termAgree.withdrawModal",isShowPageComponent:{header:!1,actionBar:!1}},children:(0,r.jsx)("div",{className:"paraGroup",children:(0,r.jsxs)("p",{className:"popPara",children:["\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9\uc744 \ucca0\ud68c\ud558\uc2dc\uba74",(0,r.jsx)("br",{}),o.serviceName,"\ub97c \uc774\uc6a9\ud558\uc2e4 \uc218 \uc5c6\uc73c\uba70,",(0,r.jsx)("br",{}),o.recordName,"\uc774 \ubaa8\ub450 \uc0ad\uc81c\ub429\ub2c8\ub2e4.",(0,r.jsx)("br",{}),"(\uc801\ub9bd\ub41c \ub2e4\uc774\uc544\ub3c4 \ud68c\uc218\ub418\uba70 \ubcf5\uc6d0 \ubd88\uac00)"]})})})}var X=t(87394);function Q(e){var n=e.personalInformationAgreeYn,t=e.togglePersonalInformationAgreeYn,i=e.initSensitiveInfoTermHtml,a=(0,X.Z)(l.useState(!1),2),o=a[0],s=a[1],c=(0,X.Z)(l.useState(!1),2),u=c[0],d=c[1];return(0,r.jsxs)("div",{className:"sensitive",children:[(0,r.jsxs)("div",{className:V()("accordion",{active:o}),children:[(0,r.jsxs)("div",{className:"accordionHead",children:[(0,r.jsxs)("div",{className:"checkbox",children:[(0,r.jsx)("input",{checked:"Y"===n,onChange:function(){t(),s(!0)},type:"checkbox",name:"chkAgree",id:"chkPersonalAgree","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\uac1c\uc778\uc815\ubcf4\uc218\uc9d1\ubc0f\uc774\uc6a9\ub3d9\uc758_".concat("Y"===n?"\uccb4\ud06c":"\uc5b8\uccb4\ud06c")}),(0,r.jsxs)("label",{htmlFor:"chkPersonalAgree",children:[(0,r.jsx)("span",{className:"icoCheckbox"}),(0,r.jsx)("span",{className:"text",children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758 (\ud504\ub85c\ud544)"})]})]}),(0,r.jsx)("button",{type:"button",onClick:function(){return s(!o)},className:"accHandle",children:(0,r.jsx)("span",{className:"blind",children:"\uac1c\uc778 \uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758 \ubcf4\uae30"})})]}),(0,r.jsxs)("div",{className:V()("accordionBody",{active:o}),children:[(0,r.jsx)("p",{className:"txt",children:"(\uc8fc) \uc544\ubaa8\ub808\ud37c\uc2dc\ud53d\uc740 \ubdf0\ud2f0\ud53c\ub4dc \uc11c\ube44\uc2a4 \uc81c\uacf5\uc744 \uc704\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc774 \uac1c\uc778\uc815\ubcf4\ub97c \uc218\uc9d1 \ubc0f \uc774\uc6a9\ud569\ub2c8\ub2e4."}),(0,r.jsxs)("table",{className:"horiTable small",children:[(0,r.jsx)("caption",{children:"\ubbfc\uac10 \uc815\ubcf4 \ud14c\uc774\ube14"}),(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{}),(0,r.jsx)("col",{})]}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\uc218\uc9d1\ud56d\ubaa9"}),(0,r.jsx)("td",{children:"\ub2c9\ub124\uc784, \ud504\ub85c\ud544\uc0ac\uc9c4"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\uc218\uc9d1 \ubc0f \uc774\uc6a9\ubaa9\uc801"}),(0,r.jsx)("td",{children:"\ucee4\ubba4\ub2c8\ud2f0\uc758 \ud504\ub85c\ud544 \uc815\ubcf4, \ub9ac\ubdf0 \uc791\uc131\uc790 \uc815\ubcf4, \ub77c\uc774\ube0c \uc11c\ube44\uc2a4 \ucc44\ud305 \ub0b4 \uc0ac\uc6a9\uc790 \uc815\ubcf4\uc5d0 \ud65c\uc6a9"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\ubcf4\uc720 \ubc0f \uc774\uc6a9\uae30\uac04"}),(0,r.jsx)("td",{children:(0,r.jsx)("strong",{className:"txtEmphasis",children:"\uc11c\ube44\uc2a4 \uc774\uc6a9 \ucca0\ud68c \uc2dc \ub610\ub294 \ud68c\uc6d0 \ud0c8\ud1f4 \uc2dc\uae4c\uc9c0"})})]})]})]}),(0,r.jsx)("p",{className:"subTxt",children:"*\uace0\uac1d\ub2d8\uaed8\uc11c\ub294 \uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758\uc5d0 \uac70\ubd80\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\ub9cc, \uac70\ubd80\ud558\ub294 \uacbd\uc6b0 \uc124\uc815\ud558\uc2e0 \ud504\ub85c\ud544 \uc815\ubcf4\ub85c \ud65c\ub3d9\ud558\uc2e4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4."}),(0,r.jsx)("p",{className:"subTxt",children:"*\ub3d9\uc758 \ucca0\ud68c\ub97c \uc6d0\ud558\uc2dc\uba74 \uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758 \ud56d\ubaa9\uc744 \ubbf8\uccb4\ud06c\ud55c \ud6c4 \uc800\uc7a5 \ubc84\ud2bc\uc744 \ub20c\ub7ec\uc8fc\uc138\uc694."})]})]}),(0,r.jsxs)("div",{className:V()("accordion",{active:u}),children:[(0,r.jsxs)("div",{className:"accordionHead",children:[(0,r.jsx)("p",{children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \uc548\ub0b4 (\ub0b4 \ud53c\ubd80 \ub9de\ucda4)"}),(0,r.jsx)("button",{type:"button",onClick:function(){return d(!u)},className:"accHandle",children:(0,r.jsx)("span",{className:"blind",children:" \ubbfc\uac10 \uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758 \ubcf4\uae30 "})})]}),(0,r.jsx)("div",{className:V()("accordionBody",{active:u}),children:!!i&&(0,j.gb)(i)})]})]})}
1var K=t(42838),z=t(21997),$=t(21551),q=t(28638),J=t(21325);function ee(e){var n=e.isOpen,t=e.setOpen,i=e.onBackButtonClick,a=e.onUploadButtonClick,o=e.children;return(0,r.jsx)(J.Z,{isOpen:n,setIsOpen:t,customBtnNode:(0,r.jsx)("button",{onClick:a,type:"button",className:"module-header__btn module-header__btn--text-blue","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544_\ucd2c\uc601\uc568\ubc94","ap-click-data":"\ucd2c\uc601\uc568\ubc94_\ub4f1\ub85d",children:"\ub4f1\ub85d"}),beforeLayer:i,webViewFuncArgs:{pageName:"layer_beautyProfile.camera.crop",isShowPageComponent:{header:!0,actionBar:!1}},showBeforeBtn:!0,showCloseBtn:!1,showCustomBtn:!0,children:o})}function ne(e){var n=e.isOpen,t=e.setOpen,i=e.children;return(0,r.jsx)(J.Z,{isOpen:n,setIsOpen:t,title:"\uae30\ubcf8 \uc774\ubbf8\uc9c0 \uc120\ud0dd",webViewFuncArgs:{pageName:"layer_beautyProfile.default_image_select",isShowPageComponent:{header:!0,actionBar:!0}},children:(0,r.jsx)("article",{className:"beautyProfile__select",children:i})})}function te(e){var n=e.editLayerStatus,t=e.imageUrl,i=e.imageUrlOrigin,a=e.setImageUrl,o=e.imageFile,l=e.setImageFile,s=e.setRemoveProfileImageYn,c=ie({imageUrl:t,setImageUrl:a,imageUrlOrigin:i,imageFile:o,setImageFile:l,setRemoveProfileImageYn:s}),u=c.imageUpload,d=c.imageCrop,p=c.defaultImage;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.ZP,{isOpen:n.isOpenEditLayer,setIsOpen:n.setOpenEditLayer,isShowCloseLayerBtn:!1,webViewFuncArgs:{pageName:"layer_beautyProfile.edit",actionBarShow:!0},actionBtnType:"none",children:(0,r.jsxs)("ul",{className:"selectOptions feed-more__buttons",children:[(0,r.jsx)("li",{children:(0,r.jsxs)("label",{className:"btnContained","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\ucd2c\uc601/\uc568\ubc94\uc120\ud0dd",children:[(0,r.jsx)("input",{onMouseDown:u.checkPermissionInput,onClick:u.clearFileInput,onChange:function(e){return u.changeImageInput(e,(function(){d.openCropLayer(),n.closeEditLayer()}))},ref:u.fileInputRef,type:"file",accept:ae.ALLOW_FORMAT.EXT.map((function(e){return"image/".concat(e)})).join(","),className:"blind",style:{display:"none"}}),"\ucd2c\uc601/\uc568\ubc94\uc5d0\uc11c \uc120\ud0dd"]})}),(0,r.jsx)("li",{children:(0,r.jsx)("button",{type:"button",onClick:function(){n.closeEditLayer(),p.openDefaultSelectLayer()},className:"btnOutlined","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\uae30\ubcf8\uc774\ubbf8\uc9c0\uc120\ud0dd",children:"\uae30\ubcf8 \uc774\ubbf8\uc9c0\uc5d0\uc11c \uc120\ud0dd"})}),Boolean(t)&&(0,r.jsx)("li",{children:(0,r.jsx)("button",{type:"button",onClick:function(){a(""),l(null),s("Y"),n.closeEditLayer()},className:"btnOutlined","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\ud3b8\uc9d1_\uc774\ubbf8\uc9c0\uc81c\uac70",children:"\uc774\ubbf8\uc9c0 \uc81c\uac70"})})]})}),(0,r.jsxs)(ee,{isOpen:d.isOpenCropLayer,setOpen:d.setOpenCropLayer,onBackButtonClick:function(){var e;a(i),(null===u||void 0===u||null===(e=u.fileInputRef)||void 0===e?void 0:e.current)&&(u.fileInputRef.current.value=""),d.closeCropLayer(),(0,m.um)("commonEvent",{"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544_\ucd2c\uc601\uc568\ubc94","ap-click-data":"\ucd2c\uc601\uc568\ubc94_\ucde8\uc18c"})},onUploadButtonClick:u.uploadFileInput,children:[(0,r.jsxs)("article",{className:"beautyProfile__regist beautyProfile__regist--center",children:[(0,r.jsx)($.Z,{onInitialized:function(e){return d.setCropper(e)},src:t,style:{height:500,width:"100%"},preview:".img-preview",zoomOnWheel:!1,zoomTo:.5,initialAspectRatio:1,aspectRatio:1,viewMode:1,minCropBoxHeight:10,minCropBoxWidth:10,background:!1,checkOrientation:!1,autoCropArea:1,responsive:!0,guides:!0}),(0,r.jsxs)("div",{className:"beautyProfile__registScale",children:[(0,r.jsx)("button",{type:"button",onClick:function(){return d.zoomOutCropper()},className:"beautyProfile__registScaleBtn beautyProfile__registScaleBtn--down",children:"\ucd95\uc18c"}),(0,r.jsx)("input",{onChange:function(e){return d.slideCropperZoomRatio(Number(e.target.value))},value:d.cropperZoomRatio,type:"range",min:"0",max:"2",step:"0.1",className:"beautyProfile__registScaleIpt"}),(0,r.jsx)("button",{type:"button",onClick:function(){return d.zoomInCropper()},className:"beautyProfile__registScaleBtn beautyProfile__registScaleBtn--up",children:"\ud655\ub3
100"})]})]}),(0,r.jsx)("div",{className:"beautyProfile__registDim"})]}),(0,r.jsx)(ne,{isOpen:p.isOpenDefaultSelectLayer,setOpen:p.setOpenDefaultSelectLayer,children:ae.DEFAULT_IMAGES.map((function(e,n){return(0,r.jsx)("button",{type:"button",onClick:function(){p.selectDefaultImage(e),p.closeDefaultSelectLayer()},className:V()("beautyProfile__selectItem",{on:0===n}),"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544_\uae30\ubcf8\uc774\ubbf8\uc9c0","ap-click-data":n+1,children:(0,r.jsx)(z.ZP,{src:e,alt:"\uae30\ubcf8\uc774\ubbf8\uc9c0 ".concat(n+1)})},e)}))})]})}var ie=function(e){e.imageUrl;var n=e.setImageUrl,t=e.imageUrlOrigin,i=e.imageFile,r=e.setImageFile,m=e.setRemoveProfileImageYn,f=(0,s.I0)(),h=[(0,s.v9)(c.lE),(0,s.v9)(c.oR)],v=h[0],g=h[1],C=(0,l.useRef)(null),N=(0,l.useState)(),x=N[0],_=N[1],b=(0,l.useState)(0),A=b[0],k=b[1],j=(0,l.useState)(!1),y=j[0],I=j[1],T=function(){return I(!1)},w=function(){var e=(0,a.Z)((function(e){var n,t,i,a,r,l,s,c,p,m;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:c={file:null===(n=e.target.files)||void 0===n?void 0:n[0],size:null===(t=e.target.files)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.size,ext:(null===(s=null===(a=e.target.files)||void 0===a||null===(r=a[0])||void 0===r||null===(l=r.name)||void 0===l?void 0:l.split("."))||void 0===s?void 0:s.slice(-1)[0].toLowerCase())||""},o.label=1;case 1:if(o.trys.push([1,3,,4]),!c.file)throw new Error("inputImage.file is not exist");return ae.ALLOW_FORMAT.EXT.includes(c.ext)?Number(c.size)>ae.ALLOW_FORMAT.SIZE?(p=(0,q.VA)(ae.ALLOW_FORMAT.SIZE),(0,K.Z)(p,Error)||f(u.Q.showToastMessage("".concat(p.value).concat(p.unit.toLowerCase()," \uc774\ud558\uc758 \uc774\ubbf8\uc9c0\ub9cc \ub4f1\ub85d\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4."))),[2,!1]):[4,S(c.file)]:(f(u.Q.showToastMessage("".concat(ae.ALLOW_FORMAT.EXT.join(".").toUpperCase()," \ud615\uc2dd\uc758 \ud30c\uc77c\ub9cc \ub4f1\ub85d\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4."))),[2,!1]);case 2:return[2,{inputImageBase64:o.sent(),inputImageFile:c.file}];case 3:return m=o.sent(),d.Z.error(m,"beautyProfile.ProfileImageEditLayer.convertFileInput"),f(u.Q.showToastMessage("\uc774\ubbf8\uc9c0 \ucca8\ubd80\uc5d0 \uc2e4\ud328\ud588\uc2b5\ub2c8\ub2e4.<br/>\uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc774\uc6a9\ud574\uc8fc\uc138\uc694.")),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),S=function(e){return void 0===e?(d.Z.error(null,""),!1):new Promise((function(n,t){var i=new FileReader;i.readAsDataURL(e),i.onload=function(e){return e.target&&n(e.target.result)},i.onerror=function(e){return t(e)}}))},P=function(e){for(var n=e.base64Image,t=e.fileName,i=(0,X.Z)(n.includes(",")?n.split(","):["data:image/png;base64",n],2),a=i[0],o=i[1],r=a.match(/:(.*?);/),l=r?r[1]:"image/png",s=atob(o),c=s.length,u=new Uint8Array(c),d=0;d<c;d++)u[d]=s.charCodeAt(d);return new File([u],t,{type:l})},E=function(e){var n=e.inputRatio,t=Number(n.toFixed(1)),i=A+t;if(void 0===x)return!1;if(i>ae.ZOOM.RANGE_MAX)return k(ae.ZOOM.RANGE_MAX),x.zoom(t),!1;if(i<ae.ZOOM.RANGE_MIN)return k(ae.ZOOM.RANGE_MIN),x.zoom(t),!1;k(i);for(var a=0;a<Math.abs(t/.1);a++)x.zoom(t>0?.1:-.1)},O=(0,l.useState)(!1),L=O[0],B=O[1];return{imageUpload:{fileInputRef:C,checkPermissionInput:function(e){var n=function(){return(0,p.FF)(p.sx.REQUEST_CAMERA_PERMISSION)()},t=function(){var e;return null===(e=C.current)||void 0===e?void 0:e.click()};if(v){(0,p.FF)(p.sx.CHECK_CAMERA_PERMISSION)();var i=function(i){var a=i.detail;"Y"===(0,X.Z)(Array.isArray(a)?a:[],1)[0]?t():(e.preventDefault(),n())};return(0,p.X$)(p.sx.CHECK_CAMERA_PERMISSION_RESULT,i),function(){return(0,p.Ot)(p.sx.CHECK_CAMERA_PERMISSION_RESULT,i)}}if(g){n();var a=function(n){var i=n.detail;"Y"===(0,X.Z)(Array.isArray(i)?i:[],1)[0]?t():e.preventDefault()};return(0,p.X$)(p.sx.CAMERA_PERMISSION_CHOICE_RESULT,a),function(){return(0,p.Ot)(p.sx.CAMERA_PERMISSION_CHOICE_RESULT,a)}}t()},convertFileInput:w,changeImageInput:function(e,t){w(e).then((function(e){e?(n(e.inputImageBase64),r(e.inputImageFile),null===t||void 0===t||t()):d.Z.error(null,"BeautyProfile.ProfileImageEditLayer.image is not exist")}))},uploadFileInput:function(){f(u.Q.showDialog({type:"confirm",children:"\ud504\ub85c\ud544 \uc0ac\uc9c4\uc73c\ub85c \ub4f1\ub85d\ud560\uae4c\uc694?",confirmBtn:{label:"\ud655\uc778",onClick:function(){e(),T()}},cancelBtn:{label:"\ucde8\uc18c",onClick:function(){a(),T()}},webViewFuncArgs:{pageName:"layer_beautyProfile.crop",actionBar:!1}}));var e=function(){var e=null===x||void 0===x?void 0:x.getCroppedCanvas().toDataURL();n(e),r(P({base64Image:e,fileName:i.name||""})),m("N")},a=function(){n(t)}},clearFileInput:function(e){e.currentTarget&&(e.currentTarget.value="")}},imageCrop:{cropper:x,setCropper:_,cropperZoomRatio:A,slideCropperZoomRatio:function(e){E({inputRatio:Number(e)-A}),k(e)},zoomInCropper:function(e){e||(e=.1),E({inputRatio:e})},zoomOutCropper:function(e){e||(e=-.1),E({inputRatio:e})},isOpenCropLayer:y,setOpenCropLayer:I,openCropLayer:function(){k(0),I(!0)},closeCropLayer:T},defaultImage:{isOpenDefaultSelectLayer:L,setOpenDefaultSelectLayer:B,openDefaultSelectLayer:function(){return B(!0)},closeDefaultSelectLayer:function(){return B(!1)},selectDefaultImage:function(e){(function(e){return new Promise((function(n){var t=new XMLHttpRequest;t.onload=function(){var e=new FileReader;e.readAsDataURL(t.response),e.onloadend=function(){n(e.result)}},t.open("GET",e),t.responseType="blob",t.send()}))})(e).then((function(t){n(e),r(P({base64Image:t,fileName:"\uae30\ubcf8\uc774\ubbf8\uc9c0.png"})),m("N")}))}}}},ae={DEFAULT_IMAGES:["".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_1.png"),"".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_2.png"),"".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_3.png"),"".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_4.png"),"".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_5.png"),"".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_6.png"),"".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_7.png"),"".concat("https://apm-web.amoremall.com","/public/resource/community/png/img/profile-default_8.png")],ALLOW_FORMAT:{EXT:["jpg","jpeg","gif","png"],SIZE:10*Math.pow(1024,2)},ZOOM:{RANGE_MIN:0,RANGE_MAX:2}},oe=t(50930);
1function re(e){var n=e.isOpenLayer,t=e.setOpenLayer;return(0,r.jsx)(Z.ZP,{isOpen:n,setIsOpen:t,title:"\ud53c\ubd80\ud1a4 \uc548\ub0b4",webViewFuncArgs:{pageName:"layer_beautyProfile.skinTone.ToolTip",actionBarShow:!0},children:(0,r.jsx)("div",{className:"shadeInfoWrap",children:le.map((function(e,n){return(0,r.jsxs)("div",{className:V()("shadeInfo",{shadeCool:0===n,shadeWarm:1===n}),children:[(0,r.jsx)("h3",{className:"tit",children:e.title}),(0,r.jsx)("ul",{className:"infoTextList",children:e.list.map((function(e){return(0,r.jsx)("li",{children:e},e)}))})]},e.title)}))})})}var le=[{title:"\ucfe8\ud1a4",list:["\ud53c\ubd80\uc5d0 \ubd89\uc740\uae30\uac00 \ub9ce\uc74c","\ube14\ub799 \ud5e4\uc5b4\uac00 \uc798 \uc5b4\uc6b8\ub9b0\ub2e4","\ud551\ud06c \ub9bd\uc774 \uc798 \uc5b4\uc6b8\ub9b0\ub2e4","\uc2e4\ubc84 \uc561\uc138\uc11c\ub9ac\uac00 \uc798 \uc5b4\uc6b8\ub9b0\ub2e4","\uc190\ubaa9\uc5d0 \ud30c\ub780\uc0c9 \ud608\uad00\uc774 \ub9ce\ub2e4"]},{title:"\uc6dc\ud1a4",list:["\ud53c\ubd80\uc5d0 \ub178\ub780\uae30\uac00 \ub9ce\uc74c","\ube0c\ub77c\uc6b4 \ud5e4\uc5b4\uac00 \uc798 \uc5b4\uc6b8\ub9b0\ub2e4","\uc624\ub80c\uc9c0 \ub9bd\uc774 \uc798 \uc5b4\uc6b8\ub9b0\ub2e4","\uace8\ub4dc \uc561\uc138\uc11c\ub9ac\uac00 \uc798 \uc5b4\uc6b8\ub9b0\ub2e4","\uc190\ubaa9\uc5d0 \ucd08\ub85d\uc0c9 \ud608\uad00\uc774 \ub9ce\ub2e4"]}];function se(e){var n=e.isOpenModal,t=e.setOpenModal,i=e.onClickConfirm,a=e.onClickCancel,o=e.onClickOverlay;return(0,r.jsx)(G.ZP,{title:"\uc544\uc9c1 \uc2a4\ud0a8\ub178\ud2b8\ub97c <br/>\uae30\ub85d\ud558\uc9c0 \uc54a\uc73c\uc168\ub124\uc694!",confirmBtn:"\ub124 \ud560\ub798\uc694!",cancelBtn:"\ub2e4\uc74c\uc5d0\uc694",isOpen:n,setIsOpen:t,clickConfirm:i,clickCancel:a,clickOverlay:o,webViewFuncArgs:{pageName:"layer_skinNote.notYetRecord",isShowPageComponent:{header:!1,actionBar:!1}},confirmGtmTag:{apClickArea:"\ubdf0\ud2f0\ud504\ub85c\ud544",apClickName:"\ubdf0\ud2f0\ud504\ub85c\ud544_[\ud31d\uc5c5]\uc2a4\ud0a8\ub178\ud2b8\uc548\ub0b4_\uae30\ub85d\ud558\uae30"},children:(0,r.jsxs)(r.Fragment,{children:["\ub0b4 \ud53c\ubd80\ub97c \uc815\ud655\ud788 \uc9c4\ub2e8\ud558\uace0 \ub9de\ucda4 \ud544\ud130\ub97c",(0,r.jsx)("br",{}),"\uc0ac\uc6a9\ud558\ub824\uba74 \uc2a4\ud0a8\ub178\ud2b8\ub97c \uae30\ub85d\ud574\ubcf4\uc138\uc694."]})})}var ce=t(4960),ue=t(48554);function de(e){var n=e.isOpenModal,t=e.setOpenModal,i=e.onClickConfirm,a=e.onClickOverlay;return(0,r.jsx)(G.ZP,{title:"\uc2a4\ud0a8\ub178\ud2b8\ub780?",confirmBtn:"\uc2a4\ud0a8\ub178\ud2b8 \uae30\ub85d\ud558\uae30",onlyConfirmBtn:!0,isOpen:n,setIsOpen:t,clickConfirm:i,clickOverlay:a,webViewFuncArgs:{pageName:"layer_skinNote.toolTip",isShowPageComponent:{header:!1,actionBar:!1}},confirmGtmTag:{apClickArea:"\ubdf0\ud2f0\ud504\ub85c\ud544",apClickName:"\ubdf0\ud2f0\ud504\ub85c\ud544_[\ud31d\uc5c5]\uc2a4\ud0a8\ub178\ud2b8\ub780_\uc2a4\ud0a8\ub178\ud2b8\uae30\ub85d\ud558\uae30"},children:(0,r.jsx)("p",{className:"wordKeepAll",children:"\uc2a4\ud0a8\ub178\ud2b8\ub294 \ub9e4\uc77c \ub098\uc758 \ud53c\ubd80\uc640 \ub77c\uc774\ud504\uc2a4\ud0c0\uc77c\uc744 \uae30\ub85d\ud558\uace0 \ud53c\ubd80 \ubcc0\ud654\ub97c \ud655\uc778\ud560 \uc218 \uc788\ub294 \uc544\ubaa8\ub808\ud37c\uc2dc\ud53d\uc758 \ubdf0\ud2f0 \ub8e8\ud2f4 \uc11c\ube44\uc2a4\uc785\ub2c8\ub2e4."})})}function pe(e){var n=e.memberAddAttrs,t=e.setMemberAddAttrs,i=e.memberAddAttrsDivRef,a=e.isCheckRecentResult,o=e.setCheckRecentResult,l=e.onClickDelete,s=e.isDeletePending,c=me({memberAddAttrs:n,setMemberAddAttrs:t,isCheckRecentResult:a,setCheckRecentResult:o}),u=fe();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"page__skin-note__title",children:"\ub0b4 \ud53c\ubd80 \ub9de\ucda4 \uc124\uc815"}),(0,r.jsxs)("div",{className:"page__skin-note__flex-box",children:[(0,r.jsx)("p",{className:"page__skin-note__desc",children:"\ud53c\ubd80 \uc815\ubcf4\ub97c \uc124\uc815\ud558\uace0 \ub9de\ucda4 \ubdf0\ud2f0 \uc11c\ube44\uc2a4\ub97c \uacbd\ud5d8\ud574 \ubcf4\uc138\uc694."}),(0,r.jsx)("button",{type:"button",className:"btnRound on",onClick:l,disabled:s,children:(0,r.jsx)("span",{className:"text",children:"\uc0ad\uc81c"})})]}),(0,r.jsxs)("div",{className:"importResult",ref:i,children:[(0,r.jsxs)("span",{className:"checkbox",children:[(0,r.jsx)("input",{onChange:a?c.unCheckRecentResult:c.checkRecentResult,checked:a,type:"checkbox",name:"chkResult",id:"chkResult","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc2a4\ud0a8\ub178\ud2b8\ucd5c\uadfc\uacb0\uacfc\uac00\uc838\uc624\uae30"}),(0,r.jsxs)("label",{htmlFor:"chkResult",children:[(0,r.jsx)("span",{className:"icoCheckbox"}),(0,r.jsx)("span",{className:"text",children:"\uc2a4\ud0a8\ub178\ud2b8 \ucd5c\uadfc \uacb0\uacfc \uac00\uc838\uc624\uae30"})]})]}),(0,r.jsx)("button",{onClick:c.openToolTip,type:"button",className:"info_circle","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc2a4\ud0a8\ub178\ud2b8\ucd5c\uadfc\uacb0\uacfc\uac00\uc838\uc624\uae30\uc548\ub0b4",children:(0,r.jsx)("i",{className:"atom-icon ic_info_circle_fill_s16",children:"\uc2a4\ud0a8\ub178\ud2b8 \uc11c\ube44\uc2a4 \uc548\ub0b4"})})]}),he.FILTERS.map((function(e){return(0,r.jsxs)("div",{className:"choiceType",children:[(0,r.jsxs)("div",{className:"page__skin-note__titleBox",children:[(0,r.jsx)("h3",{className:"title",children:e.title}),"TA"===e.attrCode&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"info",children:(0,r.jsx)("button",{onClick:u.openToolTip,type:"button",className:"info_circle","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\ud53c\ubd80\ud1a4\uc548\ub0b4",children:(0,r.jsx)("i",{className:"atom-icon ic_info_circle_fill_s16",children:"info"})})}),(0,r.jsx)("span",{className:"desc--etc",children:"\uc120\ud0dd\ud56d\ubaa9"})]})]}),(0,r.jsx)("ul",{className:"choiceOption",children:e.list.map((function(i){var a;return(0,r.jsx)("li",{children:(0,r.jsxs)("span",{className:"radio",children:[(0,r.jsx)("input",{onChange:function(e){return t((0,oe.Z)(n.filter((function(n){return void 0!==n&&n.attrCode!==e.target.name}))).concat([{attrCode:e.target.name,attrValueCode:e.target.id}]))},checked:Boolean(null===(a=null===n||void 0===n?void 0:n.filter((function(e){return e.attrValueCode===i.attrValueCode})))||void 0===a?void 0:a.length),name:e.attrCode,id:i.attrValueCode,type:"radio","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_".concat(e.title,"\uc120\ud0dd"),"ap-click-data":i.text}),(0,r.jsx)("label",{htmlFor:i.attrValueCode,children:(0,r.jsx)("span",{className:"text",children:i.text})})]})},i.attrValueCode)}))})]},e.attrCode)})),(0,r.jsx)(se,{isOpenModal:c.isOpenNotYetRecord,setOpenModal:c.setOpenNotYetRecord,onClickConfirm:c.goSkinNotePost,onClickCancel:c.undoCheck,onClickOverlay:c.closeNotYetRecord}),(0,r.jsx)(de,{isOpenModal:c.isOpenToolTip,setOpenModal:c.setOpenToolTip,onClickConfirm:c.goSkinNotePost,onClickOverlay:c.closeToolTip}),(0,r.jsx)(re,{isOpenLayer:u.isOpenToolTip,setOpenLayer:u.setOpenToolTip})]})}var me=function(e){var n=e.memberAddAttrs,t=e.setMemberAddAttrs,i=e.setCheckRecentResult,r=(0,O.Z)(),c=(0,s.v9)((function(e){return e.auth.newMemberInfo})),u=function(){return i(!0)},d=function(){return i(!1)},m=function(){var e=(0,a.Z)((function(){var e,i,a,l;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,E.fetchGetSkinNoteResult({btArExpNo:7,btCustIdNo:c.incsNo,btCustIdNoClassifiCode:"01"},r)];case 1:if("0000"===(null===(e=o.sent().data)||void 0===e?void 0:e.code)){if(null===(i=null===e||void 0===e?void 0:e.data).skinType&&null===i.skinConcern)return N(),[2,!1];t((0,oe.Z)(n.filter((function(e){return"TA"===e.attrCode}))).concat([he.TYPE_VALUES[null===i||void 0===i||null===(a=i.skinType)||void 0===a?void 0:a.code],he.CONCERN_VALUES[null===i||void 0===i||null===(l=i.skinConcern)||void 0===l?void 0:l.code]])),u()}return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,a.Z)((function(){var e,i,a,l;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,ue.G8)(null===c||void 0===c?void 0:c.memberSn,r)];case 1:return i=o.sent(),a=null===(e=n.filter((function(e){return"TA"===e.attrCode})))||void 0===e?void 0:e[0],l=(0,oe.Z)(i.data.filter((function(e){return void 0!==e&&"TA"!==e.memberAddAttrCode})).map((function(e){return{attrCode:e.memberAddAttrCode,attrValueCode:e.memberAddAttrValCode}}))),t(a?(0,oe.Z)(l).concat([a]):(0,oe.Z)(l)),d(),[2]}}))}));return function(){return e.apply(this,arguments)}}(),v=(0,l.useState)(!1),g=v[0],C=v[1],N=function(){return C(!0)},x=(0,l.useState)(!1),_=x[0],b=x[1];return{doCheck:u,undoCheck:d,checkRecentResult:m,unCheckRecentResult:h,isOpenNotYetRecord:g,setOpenNotYetRecord:C,openNotYetRecord:N,closeNotYetRecord:function(){C(!1),(0,ce.aZ)(!1)},goSkinNotePost:function(){window.location.href="".concat(f.ZK,"/kr/ko/skinnote/amt/notes/post/skin?ref=beautyprofile")},isOpenToolTip:_,setOpenToolTip:b,openToolTip:function(){return b(!0)},closeToolTip:function(){b(!1),(0,ce.aZ)(!1),(0,p.FF)(p.sx.CHANGE_WEB_STATUS,"","showDimmed","N")()}}},fe=function(){var e=(0,l.useState)(!1),n=e[0],t=e[1];return{isOpenToolTip:n,setOpenToolTip:t,openToolTip:function(){return t(!0)},closeToolTip:function(){return t(!1)}}},he={FILTERS:[{title:"\ud53c\ubd80\ud0c0\uc785",attrCode:"CA",list:[{attrValueCode:"CA_0004",text:"\ubcf5\ud569\uc131"},{attrValueCode:"CA_0001",text:"\uac74\uc131"},{attrValueCode:"CA_0008",text:"\uadf9\uac74\uc131"},{attrValueCode:"CA_0003",text:"\uc9c0\uc131"},{attrValueCode:"CA_0009",text:"\uc218\ubd84\ubd80\uc871\uc9c0\uc131"},{attrValueCode:"CA_0002",text:"\uc911\uc131"}]},{title:"\ud53c\ubd80\uace0\ubbfc",attrCode:"DA",list:[{attrValueCode:"DA_0010",text:"\ubbfc\uac10\uc131"},{attrValueCode:"DA_0005",text:"\ud2b8\ub7ec\ube14"},{attrValueCode:"DA_0016",text:"\ud0c4\ub825\uc5c6\uc74c"},{attrValueCode:"DA_0019",text:"\uc8fc\ub984"},{attrValueCode:"DA_0018",text:"\uce59\uce59\ud568"},{attrValueCode:"DA_0017",text:"\uac74\uc870\ud568"},{attrValueCode:"DA_0020",text:"\ubaa8\uacf5"},{attrValueCode:"DA_0021",text:"\uace0\ubbfc\uc5c6\uc74c"}]},{title:"\ud53c\ubd80\ud1a4",attrCode:"TA",list:[{attrValueCode:"TA_0001",text:"\ucfe8\ud1a4"},{attrValueCode:"TA_0002",text:"\uc6dc\ud1a4"}]}],TYPE_VALUES:{1002:{attrCode:"CA",attrValueCode:"CA_0004"},1003:{attrCode:"CA",attrValueCode:"CA_0001"},1001:{attrCode:"CA",attrValueCode:"CA_0008"},1005:{attrCode:"CA",attrValueCode:"CA_0003"},1004:{attrCode:"CA",attrValueCode:"CA_0009"},1006:{attrCode:"CA",attrValueCode:"CA_0002"}},CONCERN_VALUES:{1001:{attrCode:"DA",attrValueCode:"DA_0010"},1002:{attrCode:"DA",attrValueCode:"DA_0005"},1003:{attrCode:"DA",attrValueCode:"DA_0016"},1004:{attrCode:"DA",attrValueCode:"DA_0019"},1005:{attrCode:"DA",attrValueCode:"DA_0018"},1006:{attrCode:"DA",attrValueCode:"DA_0017"},1007:{attrCode:"DA",attrValueCode:"DA_0020"}}},ve=t(5632),ge=t(51589),Ce=t(95276);var Ne=function(e){var n=e.type,t=e.setOpenChangeLayer,i=e.setFinderType,a=e.title,o=e.desc,l=e.colorCode,c=(0,s.I0)(),u="LIP"===n,d=function(){i(n),t(!0)};return(0,r.jsxs)("div",{className:"colorWrap",children:[(0,r.jsx)("h3",{className:"tit",children:a}),(0,r.jsxs)("div",{className:"colorBox",children:[(0,r.jsxs)("div",{className:V()("info",{on:l}),children:[(0,r.jsx)("a",{className:"colorChipWrap",onClick:function(e){e.preventDefault(),d()},"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_".concat(u?"\ub9bd":"\uc250\uc774\ub4dc","MYcolor").concat(l?"\ubcc0\uacbd":"\ub4f1\ub85d"),children:l&&(0,r.jsx)("div",{className:"colorChip",style:{backgroundColor:l}})}),(0,r.jsx)("p",{className:"name",children:o})]}),(0,r.jsxs)("button",{className:"linkText",onClick:d,"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_".concat(u?"\ub9bd":"\uc250\uc774\ub4dc","MYcolor").concat(l?"\ubcc0\uacbd":"\ub4f1\ub85d"),children:[(0,r.jsx)("i",{className:V()("icon",{icoColorChange:l,icoColorPlus:!l})}),l?"\uceec\ub7ec \ubcc0\uacbd":"\uceec\ub7ec \ub4f1\ub85d"]}),l&&(0,r.jsx)("button",{className:"btnIr close",onClick:function(){return c(ge.m.deleteMyColor(n))},"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_".concat(u?"\ub9bd":"\uc250\uc774\ub4dc","MYcolor\uc0ad\uc81c"),children:"\uc0ad\uc81c"})]})]})},xe=t(85950),_e=t(93937);var be,Ae=function(e){var n=e.text,t=e.imageUrl,i=void 0===t?null:t,a=e.rgbVal,o=void 0===a?null:a,l=e.onClick,s="LIP"===e.type;return(0,r.jsxs)("button",{className:V()("setMyFavoriteItem",{selected:i||o}),onClick:l,"ap-click-area":"[\ud31d\uc5c5]\uc0c1\ud488 \uac80\uc0c9\ud574\uc11c MY color \ub4f1\ub85d","ap-click-name":"[\ud31d\uc5c5]\uc0c1\ud488 \uac80\uc0c9\ud574\uc11c MY color \ub4f1\ub85d_".concat(s?"\ub9bd":"\uc250\uc774\ub4dc"," ").concat(n," \uc120\ud0dd"),children:[(0,r.jsxs)("div",{className:"img",children:[i&&(0,r.jsx)("img",{src:i,alt:n}),o&&(0,r.jsx)("span",{className:"colorChip",style:{backgroundColor:o}})]}),(0,r.jsxs)("span",{className:"text",children:[n," \uc120\ud0dd"]})]})}
1,ke=t(46697),je=t(26373);!function(e){e.brand="brand",e.prod="prod",e.option="option"}(be||(be={}));var ye={brand:{text:"\ube0c\ub79c\ub4dc",msgText:"\ube0c\ub79c\ub4dc\ub97c"},prod:{text:"\uc81c\ud488",msgText:"\uc81c\ud488\uc744"},option:{text:"\ud638\uc218",msgText:"\ud638\uc218\ub97c"}},Ie={LIP:"CTG002002",SHADE:"CTG002001"};var Te=function(e){var n,t,i,c,d,p,m=e.type,f=(e.isOpen,e.setIsOpen),h=(0,s.I0)(),v=(0,O.Z)(),g=(0,s.v9)(_e.Dt),C=(0,l.useState)(!1),N=C[0],x=C[1],_=(0,l.useState)(null),A=_[0],k=_[1],j=(0,l.useState)(null),y=j[0],I=j[1],T=(0,l.useState)(null),w=T[0],S=T[1],P=(0,l.useState)(null),E=P[0],L=P[1],B=(0,l.useState)(null),R=B[0],M=B[1],F=(0,l.useState)(null),D=F[0],V=F[1],Y=(0,l.useState)(null),U=Y[0],G=Y[1],H=(0,l.useState)(null),W=H[0],X=H[1],Q=function(){var e=(0,a.Z)((function(){var e,n;return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return m?(h(u.Q.showLoading()),e=Ie[m],[4,(0,xe.vG)(e,v)]):[2,!1];case 1:return n=t.sent(),h(u.Q.hideLoading()),(null===n||void 0===n?void 0:n.length)&&S(n),k(be.brand),I(D),x(!0),[2]}}))}));return function(){return e.apply(this,arguments)}}(),K=function(){var e=(0,a.Z)((function(e){var n,t;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:return m?e?(h(u.Q.showLoading()),n=Ie[m],[4,(0,xe.BP)({displayMenuId:n,brandSn:null===e||void 0===e?void 0:e.brandSn},v)]):(h(u.Q.showToastMessage("\ube0c\ub79c\ub4dc\ub97c \uba3c\uc800 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694")),[2,!1]):[2,!1];case 1:return t=i.sent(),h(u.Q.hideLoading()),(null===t||void 0===t?void 0:t.length)&&L(t),k(be.prod),I(U),x(!0),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),z=function(e){if(!e)return h(u.Q.showToastMessage("".concat(D?"\uc81c\ud488\uc744":"\ube0c\ub79c\ub4dc\ub97c"," \uba3c\uc800 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694"))),!1;var n;M(null!==(n=null===e||void 0===e?void 0:e.products)&&void 0!==n?n:null),k(be.o
1ption),I(W),x(!0)},$=function(){S(null),L(null),M(null),V(null),G(null),X(null)},q=function(){if(!(null===W||void 0===W?void 0:W.rgbVal))return!1;h(ge.m.saveMyColor((0,b.Z)({userIncsNo:null===g||void 0===g?void 0:g.incsNo,onToastMessageClose:function(){f(!1)}},"LIP"===m?{lipColor:W.rgbVal}:{shadeColor:W.rgbVal})))},ee=function(){if(D&&W&&U)return!1;I(D),G(null),X(null)},ne=function(){if(D&&W&&U)return!1;I(U),X(null)},te="LIP"===m?"\ub9bd":"\uc250\uc774\ub4dc";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(J.Z,{isOpen:!0,setIsOpen:f,closeLayer:$,clickCancel:$,clickConfirm:q,webViewFuncArgs:{pageName:"BeautyProfileMyColor products",isShowPageComponent:{header:!0,actionBar:!0}},customActionBar:(null===W||void 0===W?void 0:W.rgbVal)&&(0,r.jsxs)("div",{className:"actionBar",children:[(0,r.jsx)(ke.ZP,{variant:"contained",title:(null===W||void 0===W?void 0:W.rgbVal)&&"\ucd08\uae30\ud654",onClick:$,gtmTag:{apClickArea:"[\ud31d\uc5c5]\uc0c1\ud488 \uac80\uc0c9\ud574\uc11c MY color \ub4f1\ub85d",apClickName:"[\ud31d\uc5c5]\uc0c1\ud488 \uac80\uc0c9\ud574\uc11c MY color \ub4f1\ub85d_".concat(te," \uacb0\uacfc \ucd08\uae30\ud654")}}),(0,r.jsx)(ke.ZP,{variant:"contained",title:(null===W||void 0===W?void 0:W.rgbVal)&&"MY Color \ub4f1\ub85d",onClick:q,gtmTag:{apClickArea:"[\ud31d\uc5c5]\uc0c1\ud488 \uac80\uc0c9\ud574\uc11c MY color \ub4f1\ub85d",apClickName:"[\ud31d\uc5c5]\uc0c1\ud488 \uac80\uc0c9\ud574\uc11c MY color \ub4f1\ub85d_".concat(te," \uacb0\uacfc MY color \ub4f1\ub85d")}})]}),children:[(0,r.jsxs)("div",{className:"setMyFavoriteHead",children:[(0,r.jsxs)("h2",{className:"head large",children:["\uc990\uaca8 \ucc3e\ub294 \uc0c1\ud488\uc744 \uac80\uc0c9\ud558\uc5ec",(0,r.jsx)("br",{}),"MY Color\ub85c \ub4f1\ub85d\ud574\ubcf4\uc138\uc694!"]}),(0,r.jsx)("p",{className:"txtTip md",children:"\ube0c\ub79c\ub4dc > \uc81c\ud488 > \uc635\uc158 \uc21c\uc73c\ub85c \uc120\ud0dd\ud574\uc8fc\uc138\uc694."})]}),(0,r.jsxs)("div",{className:"setMyFavoriteArea",children:[(0,r.jsx)(Ae,{text:"\ube0c\ub79c\ub4dc",imageUrl:null!==(i=null===D||void 0===D?void 0:D.logoUrl)&&void 0!==i?i:null,type:m,onClick:function(){ee(),Q()}}),(0,r.jsx)(Ae,{text:"\uc81c\ud488",imageUrl:null!==(c=null===U||void 0===U||null===(n=U.onlineProdImages)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.imgUrl)&&void 0!==c?c:null,type:m,onClick:function(){ne(),K(D)}}),(0,r.jsx)(Ae,{text:"\ud638\uc218",rgbVal:null!==(d=null===W||void 0===W?void 0:W.rgbVal)&&void 0!==d?d:null,type:m,onClick:function(){I(W),z(U)}})]}),D&&(null===W||void 0===W?void 0:W.rgbVal)&&(0,r.jsx)("div",{className:"setMyFavoriteInfo",children:(0,r.jsxs)("strong",{children:["[",D.brandName,"] ",(null===U||void 0===U?void 0:U.onlineProdName)||""," ",W.prodName]})})]}),(0,r.jsxs)(Z.ZP,{isOpen:N,setIsOpen:x,titleAlign:"left",title:"".concat(null===A?"":ye[A].text," \uc120\ud0dd"),actionBtnType:"actionBar",confirmBtn:A===be.option?"\uc120\ud0dd \uc644\ub8cc":"\ub2e4\uc74c",cancelBtn:"brand"===A?void 0:"\uc774\uc804",webViewFuncArgs:{pageName:"BeautyProfileMyColor ".concat(A),actionBarShow:!1},clickConfirm:function(){if(!y){var e=null===A?"":ye[A].msgText;return h(u.Q.showToastMessage("".concat(e," \uc120\ud0dd\ud574\uc8fc\uc138\uc694."))),!1}if(A===be.brand){var n=y;if(V(n),n.brandSn!==(null===D||void 0===D?void 0:D.brandSn)&&(I(null),L(null),G(null),M(null),X(null)),!n)return h(u.Q.showToastMessage("\uc81c\ud488\uc744 \uc120\ud0dd\ud574 \uc8fc\uc138\uc694")),!1;K(n)}if(A===be.prod){var t,i=y;if(G(i),i.onlineProdSn!==(null===U||void 0===U?void 0:U.onlineProdSn))M(null!==(t=i.products)&&void 0!==t?t:null),I(null),X(null);if(!i)return h(u.Q.showToastMessage("\ud638\uc218\ub97c \uc120\ud0dd\ud574 \uc8fc\uc138\uc694")),!1;z(i)}A===be.option&&(X(y),k(null),x(!1),I(null))},clickCancel:function(){A===be.prod&&(ee(),Q()),A===be.option&&(ne(),K(D))},closeLayer:function(){I(null)},children:["brand"===A&&((null===w||void 0===w?void 0:w.length)?(0,r.jsx)("div",{className:"selectBrand",children:null===w||void 0===w?void 0:w.map((function(e){return(0,r.jsxs)("div",{className:"radio option",children:[(0,r.jsx)("input",{type:"radio",name:"brand",id:"brandId".concat(e.brandSn),checked:e.brandSn===(null===y||void 0===y?void 0:y.brandSn),onChange:function(){return I(e)}}),(0,r.jsxs)("label",{htmlFor:"brandId".concat(e.brandSn),children:[(0,r.jsx)("div",{className:"img",children:(0,r.jsx)("img",{src:e.logoUrl,alt:""})}),(0,r.jsx)("div",{className:"text",children:e.brandName})]})]},"selectBrandKey".concat(e.brandSn))}))}):(0,r.jsx)(je.Z,{emptyText:"\uc8c4\uc1a1\ud569\ub2c8\ub2e4.\n \ud604\uc7ac \uceec\ub7ec \ub4f1\ub85d\uc774 \uac00\ub2a5\ud55c \ube0c\ub79c\ub4dc\uac00 \uc5c6\uc2b5\ub2c8\ub2e4."})),"prod"===A&&((null===E||void 0===E?void 0:E.length)?(0,r.jsx)("div",{className:"selThumbProdList",children:null===E||void 0===E?void 0:E.map((function(e,n){var t,i;return(0,r.jsxs)("div",{className:"radio middle",children:[(0,r.jsx)("input",{type:"radio",name:"prod",id:e.onlineProdSn,checked:e.onlineProdSn===(null===y||void 0===y?void 0:y.onlineProdSn),onChange:function(){return I(e)}}),(0,r.jsxs)("label",{htmlFor:e.onlineProdSn,children:[(0,r.jsx)("i",{className:"icoRadio"}),(0,r.jsxs)("div",{className:"thumbProdCard",children:[(0,r.jsx)("div",{className:"thumbArea",children:(0,r.jsx)("div",{className:"thumb",children:(0,r.jsx)("img",{src:null!==(p=null===(t=e.onlineProdImages)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.imgUrl)&&void 0!==p?p:"",alt:""})})}),(0,r.jsx)("div",{className:"prodInfo",children:(0,r.jsx)("div",{className:"desc",children:(0,r.jsx)("p",{className:"name",children:e.onlineProdName})})})]})]})]},"selectProdKey".concat(n))}))}):(0,r.jsx)(je.Z,{emptyText:"\uc8c4\uc1a1\ud569\ub2c8\ub2e4.\n \ud604\uc7ac \uceec\ub7ec \ub4f1\ub85d\uc774 \uac00\ub2a5\ud55c \uc81c\ud488\uc774 \uc5c6\uc2b5\ub2c8\ub2e4."})),A===be.option&&(0,r.jsx)("div",{className:"selThumbProdList",children:null===R||void 0===R?void 0:R.filter((function(e){return(null===e||void 0===e?void 0:e.rgbVal)&&""!==e.rgbVal})).map((function(e,n){return(0,r.jsxs)("div",{className:"radio middle",children:[(0,r.jsx)("input",{type:"radio",name:be.option,id:null===e||void 0===e?void 0:e.skuCode,checked:e.skuCode===(null===y||void 0===y?void 0:y.skuCode),onChange:function(){return I(e)}}),(0,r.jsxs)("label",{htmlFor:null===e||void 0===e?void 0:e.skuCode,children:[(0,r.jsx)("i",{className:"icoRadio"}),(0,r.jsxs)("div",{className:"thumbProdCard",children:[(0,r.jsx)("div",{className:"thumbArea",children:(0,r.jsx)("span",{className:"colorChip",style:{backgroundColor:null===e||void 0===e?void 0:e.rgbVal}}
1)}),(0,r.jsx)("div",{className:"prodInfo",children:(0,r.jsx)("div",{className:"desc",children:(0,r.jsx)("p",{className:"name line1",children:null===e||void 0===e?void 0:e.prodName})})})]})]})]},"selectOptionKey".concat(n))}))})]})]})};var we=function(){var e,n,t=(0,ve.useRouter)(),i=(0,s.I0)(),a=(0,s.v9)(Ce.nW),o=(0,l.useState)(null),c=o[0],u=o[1],d=(0,l.useState)(!1),p=d[0],m=d[1];return(0,l.useEffect)((function(){i(ge.m.getMyColor())}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"page__skin-note__title",children:"MY Color \ub4f1\ub85d"}),(0,r.jsx)("p",{className:"page__skin-note__desc",children:"\uc990\uaca8\uc4f0\ub294 \uceec\ub7ec\ub97c \ub4f1\ub85d\ud558\uace0 \ub098\ub9cc\uc758 \uceec\ub7ec \ud314\ub808\ud2b8\ub97c \ud655\uc778\ud574 \ubcf4\uc138\uc694."}),(0,r.jsxs)("div",{className:"myColor",children:[(0,r.jsx)(Ne,{type:"LIP",setOpenChangeLayer:m,setFinderType:u,title:"\ub9bd \uceec\ub7ec",desc:"MY LIP",colorCode:null!==(e=null===a||void 0===a?void 0:a.lipHxCode)&&void 0!==e?e:null}),(0,r.jsx)(Ne,{type:"SHADE",setOpenChangeLayer:m,setFinderType:u,title:"\uc250\uc774\ub4dc \uceec\ub7ec",desc:"MY SHADE",colorCode:null!==(n=null===a||void 0===a?void 0:a.shadeHxCode)&&void 0!==n?n:null})]}),((null===a||void 0===a?void 0:a.lipHxCode)||(null===a||void 0===a?void 0:a.shadeHxCode))&&(0,r.jsxs)("div",{className:"myColorProduct",children:[(0,r.jsxs)("p",{className:"tit",children:["\ub4f1\ub85d\ud558\uc2e0",(0,r.jsx)("span",{children:" MY Color"}),"\uc640",(0,r.jsx)("br",{}),"\ube44\uc2b7\ud55c \uceec\ub7ec \uc0c1\ud488\ub4e4\uc744 \ucd94\ucc9c \ub4dc\ub824\uc694."]}),(0,r.jsxs)("button",{className:"btnMoreLarge",onClick:function(e){e.preventDefault(),t.push("/display/palette")},"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uceec\ub7ec\ud314\ub808\ud2b8\ubc14\ub85c\uac00\uae30",children:["\uceec\ub7ec \ud314\ub808\ud2b8 \ubc14\ub85c\uac00\uae30",(0,r.jsx)("span",{className:"icon icoMoreArr"})]})]}),p&&(0,r.jsx)(Te,{type:c,isOpen:p,setIsOpen:m})]})};function Se(e){var n=e.onClickCancelButton,t=(0,l.useState)(!1),i=t[0],a=t[1];return(0,r.jsx)("li",{className:"module-terms__item",children:(0,r.jsxs)("div",{className:V()("accordion",{active:i}),children:[(0,r.jsxs)("div",{className:"accordionHead",children:[(0,r.jsx)("h3",{className:"accordionHead__title",children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9"}),(0,r.jsx)("p",{className:"accordionHead__sub-tit",children:"(\uc0dd\ud65c \ud328\ud134, \uc0dd\ub9ac \uad00\ub828 \uc815\ubcf4)"}),(0,r.jsx)("button",{type:"button",className:"accHandle",onClick:function(){return a((function(e){return!e}))},children:(0,r.jsx)("span",{className:"blind",children:" \uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9\ub3d9\uc758 \ubcf4\uae30"})})]}),(0,r.jsxs)("div",{className:"accordionBody active",children:[(0,r.jsx)("p",{className:"txt",children:"(\uc8fc)\uc544\ubaa8\ub808\ud37c\uc2dc\ud53d\uc740 \uc2a4\ud0a8\ub178\ud2b8 \ud53c\ubd80 \uae30\ub85d \uc11c\ube44\uc2a4 \uc81c\uacf5\uc744 \uc704\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc774 \uac1c\uc778\uc815\ubcf4\ub97c \uc218\uc9d1 \ubc0f \uc774\uc6a9\ud569\ub2c8\ub2e4."}),(0,r.jsxs)("table",{className:"horiTable small",children:[(0,r.jsx)("caption",{children:"\uac1c\uc778 \uc815\ubcf4 \ud14c\uc774\ube14"}),(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{}),(0,r.jsx)("col",{})]}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\uc218\uc9d1\ud56d\ubaa9"}),(0,r.jsx)("td",{children:"\uc0dd\ud65c \ud328\ud134, \uc0dd\ub9ac \uad00\ub828 \uc815\ubcf4"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\uc218\uc9d1 \ubc0f \uc774\uc6a9\ubaa9\uc801"}),(0,r.jsx)("td",{children:"\ud53c\ubd80 \ubd84\uc11d \ubc0f \ub9de\ucda4\ud615 \uc11c\ube44\uc2a4 \uc81c\uacf5\uc744 \uc704\ud55c \uae30\ucd08 \uc815\ubcf4 \ud655\uc778"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\ubcf4\uc720 \ubc0f \uc774\uc6a9\uae30\uac04"}),(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{className:"txtEmphasis",children:["\ud68c\uc6d0\uc740 \ub3d9\uc758 \ucca0\ud68c \ub610\ub294 \ud68c\uc6d0 \ud0c8\ud1f4 \uc2dc\uae4c\uc9c0",(0,r.jsx)("br",{}),"\ube44\ud68c\uc6d0\uc740 \uc11c\ube44\uc2a4 \uc774\uc6a9 \uc885\ub8cc\uae4c\uc9c0"]})})]})]})]}),(0,r.jsx)("button",{type:"button",className:"button button__Outline",onClick:n,children:"\ucca0\ud68c\ud558\uae30"})]})]})})}function Pe(e){var n=e.onClickCancelButton,t=(0,l.useState)(!1),i=t[0],a=t[1];return(0,r.jsx)("li",{className:"module-terms__item",children:(0,r.jsxs)("div",{className:V()("accordion",{active:i}),children:[(0,r.jsxs)("div",{className:"accordionHead",children:[(0,r.jsx)("h3",{className:"accordionHead__title",children:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9"}),(0,r.jsx)("p",{className:"accordionHead__sub-tit",children:"(\ud53c\ubd80 \ubb38\uc9c4, \ud53c\ubd80 \ud0c0\uc785, \ud53c\ubd80 \uace0\ubbfc, \uc0ac\uc9c4)"}),(0,r.jsx)("button",{type:"button",className:"accHandle",onClick:function(){return a((function(e){return!e}))},children:(0,r.jsx)("span",{className:"blind",children:" \uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9\ub3d9\uc758 \ubcf4\uae30"})})]}),(0,r.jsxs)("div",{className:"accordionBody active",children:[(0,r.jsx)("p",{className:"txt",children:"(\uc8fc)\uc544\ubaa8\ub808\ud37c\uc2dc\ud53d\uc740 \uc2a4\ud0a8\ub178\ud2b8 AI \ud53c\ubd80 \uc9c4\ub2e8 \uc11c\ube44\uc2a4 \uc81c\uacf5\uc744 \uc704\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc774 \uac1c\uc778\uc815\ubcf4\ub97c \uc218\uc9d1 \ubc0f \uc774\uc6a9\ud569\ub2c8\ub2e4."}),(0,r.jsxs)("table",{className:"horiTable small",children:[(0,r.jsx)("caption",{children:"\ubbfc\uac10 \uc815\ubcf4 \ud14c\uc774\ube14"}),(0,r.jsxs)("colgroup",{children:[(0,r.jsx)("col",{}),(0,r.jsx)("col",{})]}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\uc218\uc9d1\ud56d\ubaa9"}),(0,r.jsx)("td",{children:"\ud53c\ubd80 \ubb38\uc9c4, \ud53c\ubd80 \ud0c0\uc785, \ud53c\ubd80 \uace0\ubbfc, \uc0ac\uc9c4"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\uc218\uc9d1 \ubc0f \uc774\uc6a9\ubaa9\uc801"}),(0,r.jsx)("td",{children:"\ud53c\ubd80 \ubd84\uc11d \ubc0f \ub9de\ucda4\ud615 \uc11c\ube44\uc2a4 \uc81c\uacf5\uc744 \uc704\ud55c \uae30\ucd08 \uc815\ubcf4 \ud655\uc778"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",children:"\ubcf4\uc720 \ubc0f \uc774\uc6a9\uae30\uac04"}),(0,r.jsx)("td",{children:(0,r.jsxs)("strong",{className:"txtEmphasis",children:["\ud68c\uc6d0\uc740 \ub3d9\uc758 \ucca0\ud68c \ub610\ub294 \ud68c\uc6d0 \ud0c8\ud1f4 \uc2dc\uae4c\uc9c0",(0,r.jsx)("br",{}),"\ube44\ud68c\uc6d0\uc740 \uc11c\ube44\uc2a4 \uc774\uc6a9 \uc885\ub8cc\uae4c\uc9c0"]})})]})]})]}),(0,r.jsx)("button",{type:"button",className:"button button__Outline",onClick:n,children:"\ucca0\ud68c\ud558\uae30"})]})]})})}var Ee={TYPE:"4",TEXT:"\ubbfc\uac10"},Oe=!0;function Le(e){var n,t,i,a,o,l=e.beautyProfileInitData,u=e.pageLayoutStatus,d=(0,s.v9)(c.Uw),p=(0,s.v9)((function(e){var n;return null===(n=e.auth)||void 0===n?void 0:n.newMemberInfo}));Be({isInitDataFail:void 0===l}),Re();var m=Me({initImageUrl:null===l||void 0===l||null===(n=l.ccsProfile)||void 0===n?void 0:n.profileImageUrl}),f=Fe({initNickName:null===l||void 0===l||null===(t=l.ccsProfile)||void 0===t?void 0:t.nickName}),h=De({initIntroduceText:null===l||void 0===l||null===(i=l.ccsProfile)||void 0===i?void 0:i.introduceText}),v=Ve({initMemberAddAttrs:null===l||void 0===l?void 0:l.memberAddAttrs}),g=Ye({initPersonalInformationAgreeYn:null===l||void 0===l?void 0:l.personalInformationAgreeYn}),C=Ze({imageUrl:m.imageUrl,imageFile:m.imageFile,setImageUrl:m.setImageUrl,setImageUrlOrigin:m.setImageUrlOrigin,removeProfileImageYn:m.removeProfileImageYn,nickName:f.nickName,nickNameOrigin:f.nickNameOrigin,setNickNameOrigin:f.setNickNameOrigin,nickNameDivRef:f.nickNameDivRef,nickNameValidity:f.nickNameValidity,changeNickName:f.changeNickName,introduceText:h.introduceText,changeIntroduceText:h.changeIntroduceText,initSensitiveInfoAgreeYn:null===l||void 0===l?void 0:l.sensitiveInfoAgreeYn,memberAddAttrs:v.memberAddAttrs,setMemberAddAttrs:v.setMemberAddAttrs,memberAddAttrsDivRef:v.memberAddAttrsDivRef,isCheckRecentResult:v.isCheckRecentResult,setCheckRecentResult:v.setCheckRecentResult,initPersonalInformationAgreeYn:null===l||void 0===l?void 0:l.personalInformationAgreeYn,personalInformationAgreeYn:g.personalInformationAgreeYn,setPersonalInformationAgreeYn:g.setPersonalInformationAgreeYn}),N=Ue();return(0,r.jsx)(Y.Z,{showHeader:u?u.showHeader:!d,showActionBar:u?u.showActionBar:!d,showFooter:!0,children:(0,r.jsxs)("section",{className:"page__skin-note",children:[(0,r.jsx)("h1",{className:"blind",children:"\ubdf0\ud2f0\ud504\ub85c\ud544 \uad00\ub9ac"}),(0,r.jsxs)("section",{className:"page__skin-note__article",children:[(0,r.jsx)("h2",{className:"blind",children:"\ubdf0\ud2f0\ud53c\ub4dc \ud504\ub85c\ud544 \uc124\uc815"}),(0,r.jsxs)("div",{className:"module-profile module-profile--vert
1ical",children:[(0,r.jsxs)("div",{className:"module-profile__img",children:[Boolean(m.imageUrl)&&(0,r.jsx)("img",{src:m.imageUrl,alt:m.imageUrl}),(0,r.jsx)("label",{onClick:m.openEditLayer,className:"module-profile--button--edit","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\uc0ac\uc9c4\ubcc0\uacbd",children:(0,r.jsx)("span",{className:"blind",children:"\ud504\ub85c\ud544 \uc774\ubbf8\uc9c0 \ubcc0\uacbd"})})]}),(0,r.jsx)(te,{editLayerStatus:{isOpenEditLayer:m.isOpenEditLayer,setOpenEditLayer:m.setOpenEditLayer,openEditLayer:m.openEditLayer,closeEditLayer:m.closeEditLayer},imageUrl:m.imageUrl,imageUrlOrigin:m.imageUrlOrigin,setImageUrl:m.setImageUrl,imageFile:m.imageFile,setImageFile:m.setImageFile,setRemoveProfileImageYn:m.setRemoveProfileImageYn})]}),(0,r.jsxs)("div",{className:"page__skin-note__titleBox",ref:f.nickNameDivRef,children:[(0,r.jsx)("h3",{className:"title",children:"\ub2c9\ub124\uc784"}),(0,r.jsxs)("div",{className:"info",children:[(0,r.jsx)("button",{onClick:f.openToolTip,type:"button",className:"info_circle","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\ub2c9\ub124\uc784\uc124\uba85\ubcf4\uae30",children:(0,r.jsx)("i",{className:"atom-icon ic_info_circle_fill_s16",children:"\ub2c9\ub124\uc784 \uc124\uc815 \uc548\ub0b4"})}),(0,r.jsx)(Z.ZP,{isOpen:f.isOpenToolTip,setIsOpen:f.setOpenToolTip,clickConfirm:f.closeToolTip,webViewFuncArgs:{pageName:"layer_",actionBarShow:!0},title:"\ubdf0\ud2f0\ud53c\ub4dc \ub2c9\ub124\uc784 \uc124\uc815",isShowCloseLayerBtn:!0,confirmBtn:"\ud655\uc778",actionBtnType:"actionBar",confirmGtmTag:{apClickArea:"\ubdf0\ud2f0\ud504\ub85c\ud544",apClickName:"\ubdf0\ud2f0\ud504\ub85c\ud544_\ub2c9\ub124\uc784\uc124\uc815\uc548\ub0b4\ubc14\ud140\uc2dc\ud2b8",apClickData:"\ud655\uc778"},cancelGtmTag:{apClickArea:"\ubdf0\ud2f0\ud504\ub85c\ud544",apClickName:"\ubdf0\ud2f0\ud504\ub85c\ud544_\ub2c9\ub124\uc784\uc124\uc815\uc548\ub0b4\ubc14\ud140\uc2dc\ud2b8",apClickData:"\ub2eb\uae30"},children:(0,r.jsxs)("p",{className:"popPara reviewer-ranking__info wordKeepAll",children:["\ud55c/\uc601\ubb38, \uc22b\uc790, \ubc11\uc904 \ud3ec\ud568 \ucd5c\uc18c 2\uc790\ubd80\ud130 \ucd5c\ub300 20\uc790\uae4c\uc9c0 \uc785\ub825 \uac00\ub2a5\ud569\ub2c8\ub2e4.",(0,r.jsx)("br",{}),"\u203b 1\uc77c 1\ud68c \ubcc0\uacbd\uac00\ub2a5"]})})]})]}),(0,r.jsxs)("div",{className:"formGrid",children:[(0,r.jsx)("div",{className:"formControl",children:(0,r.jsxs)("div",{className:"inputBase",children:[(0,r.jsx)("input",{onChange:function(e){return f.changeNickName({inputNickName:e.target.value})},value:f.nickName,ref:f.nickNameInputRef,type:"text",className:"inp",title:"\ub2c9\ub124\uc784\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.",placeholder:"\ub2c9\ub124\uc784\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.",maxLength:Ge.VALID_ALLOW_LENGTH.MAX,"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\ub2c9\ub124\uc784\ud544\ub4dc\uc120\ud0dd"}),(0,r.jsx)("div",{className:"inpFrame","aria-hidden":"true"})]})}),(0,r.jsx)("div",{className:"formControl formButton",children:(0,r.jsx)("button",{onClick:function(){var e;return f.validateNickName({inputNickName:(null===(e=f.nickNameInputRef.current)||void 0===e?void 0:e.value)||""})},disabled:f.isNickNameEmpty,type:"button",className:"btnContained colorSecondary","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\ub2c9\ub124\uc784\uc911\ubcf5\ud655\uc778",children:"\uc911\ubcf5\ud655\uc778"})})]}
1),f.nickNameValidity.hasValid&&(0,r.jsx)("p",{className:V()("inpHelper",{txtPointGreen:f.nickNameValidity.isSuccess,txtPointRed:!f.nickNameValidity.isSuccess}),children:f.nickNameValidity.validText}),(0,r.jsxs)("div",{className:"page__skin-note__titleBox",children:[(0,r.jsx)("h3",{className:"title",children:"\uc18c\uac1c"}),(0,r.jsx)("span",{className:"desc--etc",children:"\uc120\ud0dd\ud56d\ubaa9"})]}),(0,r.jsxs)("div",{className:"inputBase directionCol",children:[(0,r.jsx)("textarea",{onChange:function(e){return h.changeIntroduceText({inputIntroduceText:e.target.value})},value:h.introduceText,placeholder:"\ub098\ub97c \ud45c\ud604\ud560 \uc218 \uc788\ub294 \uc18c\uac1c\uae00\uc744 \uc791\uc131\ud574\uc8fc\uc138\uc694.",className:"inp",title:"\ud504\ub85c\ud544 \uc18c\uac1c \ucd5c\ub300 \ubc31\uc790\uae4c\uc9c0 \uc785\ub825",cols:30,rows:3,"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\uc18c\uac1c\ud544\ub4dc\uc120\ud0dd"}),(0,r.jsx)("div",{className:"inpAdornment positionEnd",children:(0,r.jsxs)("div",{className:"count",children:[(0,r.jsx)("em",{className:"txtPointBlue",children:(null===(a=h.introduceText)||void 0===a?void 0:a.length)||0}),"\xa0/100"]})}),(0,r.jsx)("div",{className:"inpFrame"})]}),(0,r.jsx)(pe,{memberAddAttrs:v.memberAddAttrs,setMemberAddAttrs:v.setMemberAddAttrs,memberAddAttrsDivRef:v.memberAddAttrsDivRef,isCheckRecentResult:v.isCheckRecentResult,setCheckRecentResult:v.setCheckRecentResult,onClickDelete:C.onClickMemberAddAttrsDelete,isDeletePending:C.isDeletePending}),(0,r.jsx)(we,{}),(0,r.jsx)(Q,{personalInformationAgreeYn:g.personalInformationAgreeYn,togglePersonalInformationAgreeYn:g.togglePersonalInformationAgreeYn,initSensitiveInfoTermHtml:null===l||void 0===l?void 0:l.sensitiveInfoTermHtml}),(0,r.jsx)("button",{onClick:C.saveBeautyProfile,disabled:C.isSavePending,type:"submit",className:"btnContained submit","ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_[\ubc84\ud2bc]\ud1b5\ud569\uc800\uc7a5",children:"\uc800\uc7a5"})]}),(null===(o=N.list)||void 0===o?void 0:o.length)>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U,{children:N.list.map((function(e){var n=e.btpTncNo;return n===Ee.TYPE?(0,r.jsx)(Pe,{onClickCancelButton:function(){return N.openModal(n)}},n):(0,r.jsx)(Se,{onClickCancelButton:function(){return N.openModal(n)}},n)}))}),(0,r.jsx)(W,{isOpenModal:N.isOpenModal,setOpenModal:N.setOpenModal,isSe
1nsitiveInfoAgree:N.selectedBtpTncNo===Ee.TYPE,onConfirmButtonClick:function(){return N.withdrawTermAgree({btpTncNo:[Number(N.selectedBtpTncNo)],btpCustIdntNo:null===p||void 0===p?void 0:p.incsNo,btpArexNo:"7",tncAgrYn:"N",applClCd:"AMT",btpCustIdntNoClCd:"01"})}})]})]})})}var Be=function(e){var n=e.isInitDataFail,t=(0,s.I0)(),i=[(0,s.v9)(c.Uw),(0,s.v9)(c.oR)],a=i[0],o=i[1];n&&t(u.Q.showDialog({type:"alert",text:"\uc815\uc0c1 \ucc98\ub9ac\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.<br/>\uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",confirmBtn:{onClick:function(){a?document.referrer.trim()?history.back():o?window.apmall.closeWebview():window.location.href="apmall://closeWebview":window.history.back()}}}))},Re=function(){var e=(0,s.v9)(c.Uw);(0,l.useEffect)((function(){e&&((0,p.FF)(p.sx.CHANGE_WEB_STATUS,"beautyProfile","showHeader","Y")(),(0,p.FF)(p.sx.CHANGE_WEB_STATUS,"beautyProfile","showActionBar","Y")())}),[])},Me=function(e){var n=e.initImageUrl,t=(0,l.useState)(n),i=t[0],a=t[1],o=(0,l.useState)(n),r=o[0],s=o[1],c=(0,l.useState)("N"),u=c[0],d=c[1];(0,l.useEffect)((function(){a(n),s(n)}),[n]);var p=(0,l.useState)(null),m=p[0],f=p[1],h=(0,l.useState)(!1),v=h[0],g=h[1];return{imageUrl:i,setImageUrl:a,imageUrlOrigin:r,setImageUrlOrigin:s,imageFile:m,setImageFile:f,removeProfileImageYn:u,setRemoveProfileImageYn:d,isOpenEditLayer:v,setOpenEditLayer:g,openEditLayer:function(){return g(!0)},closeEditLayer:function(){return g(!1)}}},Fe=function(e){var n=e.initNickName,t=(0,s.I0)(),i=(0,O.Z)(),r=(0,l.useState)(""),c=r[0],d=r[1],p=(0,l.useState)(""),m=p[0],f=p[1],h=(0,l.useState)(!1),v=h[0],g=h[1],C=(0,l.useState)(!n),N=C[0],x=C[1],b=(0,l.useRef)(null),A=(0,l.useRef)(null),k=(0,l.useState)({hasValid:!1,isSuccess:!1,validText:""}),j=k[0],y=k[1],I=function(){return g(!0)};(0,l.useEffect)((function(){d(n),f(n)}),[n]);var T=function(){var e=(0,a.Z)((function(e){var n,t,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return(n=e.inputNickName)===m?(y({hasValid:!0,isSuccess:!0,validText:Ge.VALID_RESULT.SUCCESS.TEXT}),[2,!0]):(t=F().chain(n).toArray().size().value())<Ge.VALID_ALLOW_LENGTH.MIN||t>Ge.VALID_ALLOW_LENGTH.MAX?(I(),[2,!1]):[4,_.fetchCheckBeautyFeedNicknameDuplicate(i,n)];case 1:return(a=o.sent()).code===Ge.VALID_RESULT.SUCCESS.CODE?(y({hasValid:!0,isSuccess:!0,validText:Ge.VALID_RESULT.SUCCESS.TEXT}),[2,!0]):a.code===Ge.VALID_RESULT.FAIL.DUPLICATE.CODE?(y({hasValid:!0,isSuccess:!1,validText:Ge.VALID_RESULT.FAIL.DUPLICATE.TEXT}),[2,!1]):a.code===Ge.VALID_RESULT.FAIL.PERSONAL_INFO_INCLUDE.CODE?(y({hasValid:!0,isSuccess:!1,validText:Ge.VALID_RESULT.FAIL.PERSONAL_INFO_INCLUDE.TEXT}),[2,!1]):[2]}}))}));return function(n){return e.apply(this,arguments)}}();return{nickName:c,nickNameOrigin:m,setNickNameOrigin:f,nickNameDivRef:b,nickNameInputRef:A,isOpenToolTip:v,setOpenToolTip:g,isNickNameEmpty:N,setIsNickNameEmpty:x,openToolTip:I,closeToolTip:function(){return g(!1)},validateNickName:T,changeNickName:function(e){var n=e.inputNickName;return y({hasValid:!1,isSuccess:!1,validText:""}),n.split("").map((function(e){if(!Ge.VALID_ALLOW_PATTERN.test(e))return setTimeout((function(){t(u.Q.showDialog({type:"alert",text:"\ud55c\uae00,\uc601\ubb38,\uc22b\uc790\ub9cc \uc785\ub825 \uac00\ub2a5\ud569\ub2c8\ub2e4.",confirmBtn:{label:"\ud655\uc778",onClick:function(){var t;null===(t=A.current)||void 0===t||t.focus(),d(n.replaceAll(e,""))}},webViewFuncArgs:{pageName:"beautyProfile",actionBar:!1}}))}),200),!1})),!(F().chain(n).toArray().size().value()>Ge.VALID_ALLOW_LENGTH.MAX)&&(x(!n),d(n),!0)},nickNameValidity:j}},De=function(e){var n=e.initIntroduceText,t=(0,l.useState)(""),i=t[0],a=t[1];(0,l.useEffect)((function(){a(n||"")}),[n]);return{introduceText:i,changeIntroduceText:function(e){var n=e.inputIntroduceText;if(!n)return a(""),!1;var t=n.replace(/\n+/g,"\n");return F().chain(t).toArray().size().value()<=He.VALID_ALLOW_LENGTH.MAX?(a(t),!0):void 0}}},Ve=function(e){var n=e.initMemberAddAttrs,t=(0,l.useState)([]),i=t[0],a=t[1],o=(0,l.useRef)(null),r=(0,l.useState)(!1),s=r[0],c=r[1];return(0,l.useEffect)((function(){a(n)}),[]),{memberAddAttrs:i,setMemberAddAttrs:a,memberAddAttrsDivRef:o,isCheckRecentResult:s,setCheckRecentResult:c}},Ye=function(e){var n=e.initPersonalInformationAgreeYn,t=(0,l.useState)(null!==n&&void 0!==n?n:null),i=t[0],a=t[1],o=(0,l.useState)(!1),r=o[0],s=o[1];return(0,l.useEffect)((function(){a(n)}),[n]),{personalInformationAgreeYn:i,setPersonalInformationAgreeYn:a,togglePersonalInformationAgreeYn:function(){a("Y"===i?"N":"Y")},isOpenWithdrawModal:r,setOpenWithdrawModal:s}},Ze=function(e){var n=e.imageFile,t=e.imageUrl,i=e.setImageUrl,u=e.setImageUrlOrigin,p=e.removeProfileImageYn,h=e.nickName,v=e.nickNameOrigin,g=e.setNickNameOrigin,C=e.nickNameDivRef,N=e.nickNameValidity,x=e.changeNickName,b=e.introduceText,A=e.changeIntroduceText,k=e.initSensitiveInfoAgreeYn,j=e.memberAddAttrs,y=e.setMemberAddAttrs,I=e.memberAddAttrsDivRef,T=e.setCheckRecentResult,w=e.personalInformationAgreeYn,S=e.setPersonalInformationAgreeYn,P=e.initPersonalInformationAgreeYn,E=(0,L.Z)(),M=function(e,n){setTimeout((function(){E.toast(e)}),n)},F=(0,O.Z)(),D=(0,B.Z)(),V=(0,s.v9)(c.Uw),Y=(0,l.useState)(null!==k&&void 0!==k?k:null),Z=Y[0],U=Y[1],G=(0,l.useState)(null!==P&&void 0!==P?P:null),H=G[0],W=G[1],X=(0,l.useState)(null!==k&&void 0!==k?k:null),Q=X[0],K=X[1],z=(0,l.useState)(!1),$=z[0],q=z[1],J=(0,l.useState)(!1),ee=J[0],ne=J[1],te=function(){var e=(0,a.Z)((function(){var e,n,t;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:if(null===Q||"N"===Q)return M("\uc0ad\uc81c\ud560 \ub0b4\uc6a9\uc774 \uc5c6\uc2b5\ub2c8\ub2e4",0),[2];ne(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,_.fetchDeleteBeautyProfile(F)];case 2:return(e=i.sent())&&"INTGPROFILE_440"!==e.code?("INTGPROFILE_202"!==e.code&&"INTGPROFILE_203"!==e.code||(n=(0,R.Z)(new Date,"yyyy-MM-dd HH:mm:ss"),M("\ub0b4\ud53c\ubd80 \ub9de\ucda4 \uc124\uc815 \uc0ad\uc81c \uc644\ub8cc<br/>\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ucca0\ud68c(\ub0b4 \ud53c\ubd80 \ub9de\ucda4)<br/>[".concat(n,"]"),0),y([]),U("N"),K("N")),[3,5]):(d.Z.error(new Error(null===e||void 0===e?void 0:e.code),"beautyProfile.fetchDeleteBeautyProfile API error CCS \uc5f0\ub3d9 \uc77c\uc2dc \uc2e4\ud328(INTGPROFILE_440)"),M("\uc0ad\uc81c \uc911 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.<br/>\uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.",0),[2]);case 3:return t=i.sent(),d.Z.error(t,"beautyProfile.fetchDeleteBeautyProfile API error"),[3,5];case 4:return ne(!1),[7];case 5:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),ie=function(){var e=(0,a.Z)((function(){var e,t,i,a,r;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e=new FormData,n&&e.append("file",n),t=null===Z?j.length>0?"Y":void 0:Z,i=function(){if(null!==H||"N"!==w)return w}(),e.append("json",new Blob([JSON.stringify({ccsProfile:{nickName:h,introduceText:b},personalInformationAgreeYn:i,memberAddAttrs:j,sensitiveInfoAgreeYn:j.length>0?"Y":t,removeProfileImageYn:p})],{type:"application/json"})),[4,_.fetchPostBeautyProfile(F,e)];case 1:if(!(a=o.sent())||"INTGPROFILE_440"===(null===a||void 0===a?void 0:a.code))throw new Error("INTGPROFILE_440");return[2,a];case 2:return r=o.sent(),d.Z.error(r,"beautyProfile._submitBeautyProfile API error"),E.toast("\uc815\uc0c1\uc801\uc73c\ub85c \uc800\uc7a5\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.<br/>\uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694."),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),ae=function(e){var n=e.onSuccess;E.confirm((0,r.jsx)("div",{className:"paraGroup",children:(0,r.jsx)(Qe,{})}),{cancelButton:{label:"\ucde8\uc18c",onClick:function(){(0,m.um)("commonEvent",{"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\uc774\uc6a9\ub3d9\uc758\ud574\uc81c\ud31d\uc5c5_\ucde8\uc18c"})}},confirmButton:{label:"\ud655\uc778",onClick:function(){n(),(0,m.um)("commonEvent",{"ap-click-area":"\ubdf0\ud2f0\ud504\ub85c\ud544","ap-click-name":"\ubdf0\ud2f0\ud504\ub85c\ud544_\uc0ac\uc6a9\uc790\ud504\ub85c\ud544","ap-click-data":"\uc774\uc6a9\ub3d9\uc758\ud574\uc81c\ud31d\uc5c5_\ud655\uc778"})}},webViewFuncArgs:{pageName:"dialog.beautyProfile.withdraw.confirm",actionBar:!1}})},oe=function(){var e=(0,a.Z)((function(){var e,n,t,a,r,l,s,c;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,_.fetchGetBeautyProfile(F)];case 1:return(l=o.sent())?(i(null===l||void 0===l||null===(e=l.ccsProfile)||void 0===e?void 0:e.profileImageUrl),u(null===l||void 0===l||null===(n=l.ccsProfile)||void 0===n?void 0:n.profileImageUrl),x({inputNickName:null===l||void 0===l||null===(t=l.ccsProfile)||void 0===t?void 0:t.nickName}),g(null===l||void 0===l||null===(a=l.ccsProfile)||void 0===a?void 0:a.nickName),A({inputIntroduceText:null===l||void 0===l||null===(r=l.ccsProfile)||void 0===r?void 0:r.introduceText}),y(null===l||void 0===l?void 0:l.memberAddAttrs),"N"===(null===l||void 0===l?void 0:l.sensitiveInfoAgreeYn)&&T(!1),S(null===l||void 0===l?void 0:l.personalInformationAgreeYn),U(null===l||void 0===l?void 0:l.sensitiveInfoAgreeYn),W(null!==(s=null===l||void 0===l?void 0:l.personalInformationAgreeYn)&&void 0!==s?s:null),K(null!==(c=null===l||void 0===l?void 0:l.sensitiveInfoAgreeYn)&&void 0!==c?c:null),[2]):(d.Z.error(null,"beautyProfile._reFetchBeautyProfile API error",{msg:"API response is null"}),[2,!1])}}))}));return function(){return e.apply(this,arguments)}}(),re=function(){var e=(0,a.Z)((function(){var e,n,t,i,a,r,l;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:q(!0),o.label=1;case 1:return o.trys.push([1,,5,6]),[4,ie()];case 2:return"INTGPROFILE_441"===(null===(e=o.sent())||void 0===e?void 0:e.code)?(E.toast("\ub2c9\ub124\uc784\uc740 \uc77c 1\ud68c\ub9cc \ubcc0\uacbd \uac00\ub2a5\ud569\ub2c8\ub2e4."),[2,!1]):"INTGPROFILE_200"!==(null===e||void 0===e?void 0:e.code)&&"INTGPROFILE_201"!==(null===e||void 0===e?void 0:e.code)?[3,4]:(E.toast("INTGPROFILE_200"===(null===e||void 0===e?void 0:e.code)?"\uc800\uc7a5\ub418\uc5c8\uc2b5\ub2c8\ub2e4.":"\ub2c9\ub124\uc784\uc740 \uc77c 1\ud68c\ub9cc \ubcc0\uacbd \uac00\ub2a5\ud569\ub2c8\ub2e4.<br/>\uadf8 \ubc16\uc758 \ud56d\ubaa9\uc740 \uc800\uc7a5\ub418\uc5c8\uc2b5\ub2c8\ub2e4."),n=(0,R.Z)(new Date,"yyyy-MM-dd HH:mm:ss"),t=e.personalInformationAgreeYn,i=e.sensitiveInfoAgreeYn,r=null!==i&&void 0!==i&&i!==Q,(a=null!==t&&void 0!==t&&t!==H)&&r?(l="N"===t&&"N"===i,"Y"===t&&"Y"===i?M("".concat(We.agree,"<br/>").concat(Xe.agree,"<br/>[").concat(n,"]"),1600):l?M("\ud504\ub85c\ud544, \ub0b4\ud53c\ubd80\ub9de\ucda4 \uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ucca0\ud68c<br/>[".concat(n,"]"),1600):(M("Y"===t?"".concat(We.agree,"<br/>[").concat(n,"]"):"".concat(We.withdraw,"<br/>[").concat(n,"]"),1600),"Y"===i&&M("".concat(Xe.agree,"<br/>[").concat(n,"]"),2400))):a?M("Y"===t?"".concat(We.agree,"<br/>[").concat(n,"]"):"".concat(We.withdraw,"<br/>[").concat(n,"]"),1600):r&&"Y"===i&&M("".concat(Xe.agree,"<br/>[").concat(n,"]"),1600),V&&D.goTo(B.K.ReloadBeautyProfile,decode
1URIComponent("".concat(f.ZK,"/kr/ko/community/profile/home"))),[4,oe()]);case 3:o.sent(),o.label=4;case 4:return[3,6];case 5:return q(!1),[7];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return{saveBeautyProfile:function(){!function(e){var n=e.onSuccess,i=20,a=-25,o=[{condition:0===h.trim().length&&0===t.trim().length,onFail:function(){var e,n,t;E.toast("\ub2c9\ub124\uc784 \ubc0f \uc0ac\uc9c4\uc744 \ub4f1\ub85d\ud574\uc8fc\uc138\uc694."),window.scrollTo({top:((null===(n=null===(e=C.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.top)||0)+window.scrollY-(((null===(t=document.querySelector("header"))||void 0===t?void 0:t.offsetHeight)||0)+i)})}},{condition:0!==h.length&&h!==v&&!(N.hasValid&&N.isSuccess),onFail:function(){var e,n,t;E.toast("\ub2c9\ub124\uc784 \uc911\ubcf5\uc744 \ud655\uc778\ud574\uc8fc\uc138\uc694."),window.scrollTo({top:((null===(n=null===(e=C.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.top)||0)+window.scrollY-(((null===(t=document.querySelector("header"))||void 0===t?void 0:t.offsetHeight)||0)+i)})}},{condition:"Y"===Z&&0===(null===j||void 0===j?void 0:j.length),onFail:function(){var e,n,t;E.toast("\ub0b4 \ud53c\ubd80 \ub9de\ucda4 \uc124\uc815\uc744 \uc704\ud574 \ud53c\ubd80\ud0c0\uc785\uc774\ub098 \ud53c\ubd80\uace0\ubbfc\uc744 \uc120\ud0dd\ud574\uc8fc\uc138\uc694."),window.scrollTo({top:((null===(n=null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect())||void 0===n?void 0:n.top)||0)+window.scrollY-(((null===(t=document.querySelector("header"))||void 0===t?void 0:t.offsetHeight)||0)+a)})}}],r=o.some((function(e){if(e.condition)return e.onFail(),!0}));r||"N"!==w&&null!==w?r||n():ae({onSuccess:n})}({onSuccess:re})},onClickMemberAddAttrsDelete:te,isSavePending:$,isDeletePending:ee}},Ue=function(){var e=(0,s.I0)(),n=(0,O.Z)(),t=(0,s.v9)((function(e){var n;return null===(n=e.auth)||void 0===n?void 0:n.newMemberInfo})),i=(0,l.useState)([]),r=i[0],c=i[1];(0,l.useEffect)((function(){try{E.fetchGetSkinNoteTermAgree({btpCustIdntNo:null===t||void 0===t?void 0:t.incsNo,applClCd:"AMT",btpCustIdntNoClCd:"01",btpTncNos:"4,5"},n).then((function(e){c(null===e||void 0===e?void 0:e.filter((function(e){return"Y"===e.tncAgrYn})))}))}catch(e){d.Z.error(e,"fetchGetSkinNoteTermAgree API error")}}),[]);var p=(0,l.useState)(Ee.TYPE),m=p[0],f=p[1],h=function(){var t=(0,a.Z)((function(t){var i,a,l,s,d,p;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return i=t.btpTncNo,a=t.btpCustIdntNo,l=t.btpArexNo,s=t.tncAgrYn,d=t.applClCd,p=t.btpCustIdntNoClCd,[4,E.fetchSaveTermAgreeYn({btpTncNo:i,btpCustIdntNo:a,btpArexNo:l,tncAgrYn:s,applClCd:d,btpCustIdntNoClCd:p},n).then((function(n){c(r.filter((function(e){return e.btpTncNo!==m}))),e(u.Q.showToastMessage("\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ucca0\ud68c \uc644\ub8cc<br />[".concat((0,R.Z)(new Date,"yyyy-MM-dd HH:mm:ss"),"]")))}))];case 1:return o.sent(),[2]}}))}));return function(e){return t.apply(this,arguments)}}(),v=(0,l.useState)(!1),g=v[0],C=v[1];return{list:r,selectedBtpTncNo:m,withdrawTermAgree:h,openModal:function(e){f(e),C(!0)},isOpenModal:g,setOpenModal:C}},Ge={VALID_ALLOW_LENGTH:{MIN:2,MAX:20},VALID_ALLOW_PATTERN:/[0-9a-zA-Z\u3131-\u314e\uac00-\ud7a3\u314f-\u3163\u318D\u119E\u11A2\u2022\u2025\u00B7\uFE55\u4E10\u3163\u3161\u1100-\u1112_]/,VALID_RESULT:{SUCCESS:{TEXT:"\uc0ac\uc6a9 \uac00\ub2a5\ud55c \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4.",CODE:"SUC_PROC_0000"},FAIL:{DUPLICATE:{TEXT:"\uc774\ubbf8 \uc0ac\uc6a9 \uc911\uc778 \ub2c9\ub124\uc784\uc785\ub2c8\ub2e4. \ub2e4\ub978 \ub2c9\ub124\uc784\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694.",CODE:"CUST_PROFILE_0004"},PERSONAL_INFO_INCLUDE:{TEXT:"\uac1c\uc778\uc815\ubcf4\uac00 \ud3ec\ud568\ub41c \ub2c9\ub124\uc784\uc740 \uc124\uc815\ud560 \uc218 \uc5c6\uc5b4\uc694.",CODE:"CUST_PROFILE_0008"}}}},He={VALID_ALLOW_LENGTH:{MAX:100}},We={agree:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758(\ud504\ub85c\ud544)",withdraw:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ucca0\ud68c(\ud504\ub85c\ud544)"},Xe={agree:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ub3d9\uc758(\ub0b4 \ud53c\ubd80 \ub9de\ucda4)",withdraw:"\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9 \ucca0\ud68c(\ub0b4 \ud53c\ubd80 \ub9de\ucda4)"};function Qe(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"popPara wordKeepAll",children:["\uac1c\uc778\uc815\ubcf4 \uc218\uc9d1 \ubc0f \uc774\uc6a9(\ud504\ub85c\ud544)\uc5d0 \ub3d9\uc758\ud558\uc9c0 \uc54a\ub294 \uacbd\uc6b0 ",(0,r.jsx)("br",{}),"\ud504\ub85c\ud544 \uc815\ubcf4\ub97c \uc0ac\uc6a9\ud558\uc2e4 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4."]}),(0,r.jsxs)("p",{className:"popPara wordKeepAll",children:["\uae30\uc874 \ub3d9\uc758\ub97c \ucca0\ud68c\ud558\ub294 \uacbd\uc6b0 ",(0,r.jsx)("br",{}),"\uc800\uc7a5\ub41c \ud504\ub85c\ud544 \uc774\ubbf8\uc9c0, \ub2c9\ub124\uc784, \uc18c\uac1c\uae00\uc774 ",(0,r.jsx)("br",{}),"\ubaa8\ub450 \uc0ad\uc81c\ub429\ub2c8\ub2e4."]})]})}},66954:function(e,n,t){"use strict";var i=t(52322),a=(t(2784),t(68602)),o=t(72779),r=t.n(o);n.Z=function(e){var n=e.message,t=void 0===n?"":n,o=e.showAlert,l=void 0!==o&&o,s=e.className,c=void 0===s?"":s;return(0,i.jsx)(i.Fragment,{children:l&&(0,i.jsx)("div",{className:r()("popNotice",c),children:(0,i.jsx)("div",{className:"text",children:(0,a.ZP)(t)})})})}},26373:function(e,n,t){"use strict";var i=t(52322),a=(t(2784),t(72779)),o=t.n(a);n.Z=function(e){var n=e.emptyText,t=void 0===n?"\uc120\ud0dd\ud558\uc2e0 \uc870\uac74\uc758 \uc0c1\ud488\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.":n,a=e.classNameProps;return(0,i.jsx)("div",{className:o()("nodataImg",a),children:(0,i.jsx)("p",{className:"text",style:{whiteSpace:"pre"},children:t})})}},21325:function(e,n,t){"use strict";var i=t(52322),a=t(2784),o=t(72779),r=t.n(o),l=t(70338),s=t(46697),c=t(66954),u=t(54502),d=t(57522),p=t(96738);n.Z=function(e){var n,t,o=e.isOpen,m=e.setIsOpen,f=e.isShowHeader,h=void 0===f||f,v=e.isShowPopupBg,g=void 0!==v&&v,C=e.title,N=e.headerGtmTag,x=e.customActionBtnGtmTag,_=e.children,b=e.openLayer,A=e.closeLayer,k=e.beforeLayer,j=e.confirmBtn,y=e.clickConfirm,I=e.isConfirmActive,T=void 0===I||I,w=e.isStyleConfirmActive,S=void 0===w||w,P=e.showBeforeBtn,E=e.cancelBtn,O=e.clickCancel,L=e.showCloseBtn,B=void 0===L||L,R=e.clickClose,M=e.preventAutoClose,F=void 0!==M&&M,D=e.showCustomBtn,V=void 0!==D&&D,Y=e.customBtnNode,Z=(e.clickCustomBtn,e.customActionBar),U=e.customActionBtn,G=e.customBtnClickConfirm,H=e.isIframe,W=void 0!==H&&H,X=e.sectionClasses,Q=e.classes,K=e.headerClasses,z=void 0===K?[]:K,$=e.contentsClasses,q=e.fullPageLayerClasses,J=void 0===q?["fixedFullPageLayer"]:q,ee=e.webViewFuncArgs,ne=void 0===ee?{pageName:"",isShowPageComponent:{header:!0,actionBar:!0}}:ee,te=e.apClickArea,ie=e.apClickConfirm,ae=e.apClickCancel,oe=e.containerId,re=e.containerClasses,le=e.bubbleAlert,se=void 0===le?{message:"",showAlert:!1}:le,ce=e.usePortal,ue=void 0!==ce&&ce,de=(0,a.useState)(void 0),pe=de[0],me=de[1];return(0,a.useEffect)((function(){var e,n=null===(e=document.getElementsByTagName("body"))||void 0===e?void 0:e[0],t=null===n||void 0===n?void 0:n.classList,i=null===n||void 0===n?void 0:n.style;if(!n.classList.contains("fixedFullPageLayer")){if(o){!function(){if(null===b||void 0===b||b(),(0,p.B)())if(window.isTargetPageLayoutStatusVersion()){var e=window.pageLayoutStatusMatchedPageData(),n=(null===e||void 0===e?void 0:e.pageName)||"",t="layer_".concat(n);(0,l.FF)(l.sx.CHANGE_WEB_STATUS,t,"showHeader","N")(),(0,l.FF)(l.sx.CHANGE_WEB_STATUS,t,"showActionBar","N")()}else{var i,a;(null===(i=ne.isShowPageComponent)||void 0===i?void 0:i.header)&&(0,l.FF)(l.sx.CHANGE_WEB_STATUS,ne.pageName,"showHeader","N")(),(null===(a=ne.isShowPageComponent)||void 0===a?void 0:a.actionBar)&&(0,l.FF)(l.sx.CHANGE_WEB_STATUS,ne.pageName,"showActionBar","N")()}}();var a=window.pageYOffset;me(a),n&&(null===J||void 0===J||J.map((function(e){t.add(e)})),i.top="-".concat(a,"px"))}else pe&&window.scrollTo(0,pe),me(void 0),n&&(i.top="0");return o?function(){!function(){var e,n,t;null===A||void 0===A||A(),m(!1),(0,p.B)()&&(window.isTargetPageLayoutStatusVersion()?null===(e=window.applyPageLayoutStatusInterface)||void 0===e||e.call(window):((null===(n=ne.isShowPageComponent)||void 0===n?void 0:n.header)&&(0,l.FF)(l.sx.CHANGE_WEB_STATUS,ne.pageName,"showHeader","Y")(),(null===(t=ne.isShowPageComponent)||void 0===t?void 0:t.actionBar)&&!window.location.pathname.includes("kr/ko/store")&&(0,l.FF)(l.sx.CHANGE_WEB_STATUS,ne.pageName,"showActionBar","Y")()))}(),n&&(null===J||void 0===J||J.map((function(e){t.remove(e)})))}:void 0}}),[o]),(0,i.jsx)(d.h_,{targetID:d.LJ.FullPageLayer,enabled:ue,children:(0,i.jsxs)("section",{className:r()("modalPopupWrap",X,{open:o}),children:[g&&(0,i.jsx)("div",{className:"popupBg"}),(0,i.jsx)("div",{className:r()("popupWrap fullLayer",Q,{iframe:W}),children:(0,i.jsx)("div",{className:r()("popupcontainerBox",re),children:(0,i.jsxs)("div",{className:"popupInner",children:[h&&(0,i.jsx)("div",{className:r()({popupHead:!0,"is-fixed":z.includes("fixed")}),children:(0,i.jsxs)("div",{className:r()("module-header-layer",{"is-noLine":z.includes("noLine"),"is-clear":z.includes("clear"),static:z.includes("static")}),children:[P&&k&&(0,i.jsx)("div",{className:"module-header--left",children:(0,i.jsx)("button",{type:"button",className:"btnIr back",onClick:k,children:"\ub4a4\ub85c"})}),Boolean(C)&&(0,i.jsx)("h2",{className:"module-header__title",children:C}),(0,i.jsxs)("div",{className:"module-header--right",children:[B&&(0,i.jsx)(u.Z,{classes:"module-header__btn--close",onClick:function(){R&&R(),!F&&m(!1)},title:"\ub808\uc774\uc5b4 \ub2eb\uae30",apClickArea:null===N||void 0===N||null===(n=N.closeIcon)||void 0===n?void 0:n.apClickArea,apClickName:null===N||void 0===N||null===(t=N.closeIcon)||void 0===t?void 0:t.apClickName}),!B&&V&&Y]})]})}),(0,i.jsx)("div",{id:oe,className:r()("popupContents",$),children:_}),Z,(j||E)&&(0,i.jsx)("div",{className:r()("actionBar",{"is-disabled":!T,"style-disabled":!S}),children:(0,i.jsxs)("div",{className:"action",children:[(0,i.jsx)(c.Z,{message:null===se||void 0===se?void 0:se.message,showAlert:null===se||void 0===se?void 0:se.showAlert}),E&&(0,i.jsx)(s.ZP,{variant:"contained",color:"secondary",title:E,onClick:function(){O&&O()},gtmTag:{apClickArea:te,apClickName:ae}}),j&&(0,i.jsx)(s.ZP,{variant:"contained",color:"primary",title:j,onClick:function(){y&&y()},disabled:!T,gtmTag:{apClickArea:te,apClickName:ie}})]})}),U&&(0,i.jsx)("div",{className:"pageAction gray",children:(0,i.jsx)(s.ZP,{title:U,onClick:G,gtmTag:x})})]})})})]})})}},61305:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(2784),a=t(64157),o=t(99216);function r(){var e=(0,a.I0)(),n=(0,i.useCallback)((function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.button,a=t.toastClassName,r=t.keepToastVisible,l=void 0!==r&&r,s=t.shouldShowOnTop,c=void 0!==s&&s;return e(o.Q.showToastMessage({message:n,button:i,toastClassName:a,keepToastVisible:l,shouldShowOnTop:c}))}),[e]),t=(0,i.useCallback)((function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.title,r=t.containerBoxClassName,l=t.modalPopupWrapClassName,s=t.confirmButton,c=t.webViewFuncArgs,u=t.callCloseModalWhenOverlayClicked;
1e(o.Q.showDialog({type:"alert",title:a,containerBoxClassName:r,modalPopupWrapClassName:l,children:"string"===typeof n?(0,i.createElement)("span",{style:{whiteSpace:"pre-wrap"},children:n}):n,confirmBtn:s,webViewFuncArgs:c,callCloseModalWhenOverlayClicked:u}))}),[e]),r=(0,i.useCallback)((function(){e(o.Q.hideDialog())}),[e]),l=(0,i.useCallback)((function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.title,r=t.modalPopupWrapClassName,l=t.confirmButton,s=t.cancelButton,c=t.buttonAlign,u=void 0===c?"horizontal":c,d=t.webViewFuncArgs,p=t.callCloseModalWhenOverlayClicked;e(o.Q.showDialog({type:"confirm",title:a,children:"string"===typeof n?(0,i.createElement)("span",{style:{whiteSpace:"pre-wrap"},children:n}):n,confirmBtn:l,cancelBtn:s,alignBtn:u,webViewFuncArgs:d,modalPopupWrapClassName:r,callCloseModalWhenOverlayClicked:p}))}),[e]);return(0,i.useMemo)((function(){return{toast:n,alert:t,confirm:l,hide:r}}),[n,t,l,r])}},28638:function(e,n,t){"use strict";t.d(n,{VA:function(){return f},td:function(){return m}});var i="byte",a="bytes",o="KB",r="MB",l="GB",s="TB",c="PB",u=[a,o,r,l,s,c,"EB","ZB","YB"],d=1024,p=function(e){return Boolean(e)&&u.includes(e)};function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.decimals,a=void 0===t?2:t,o=n.format,r=void 0===o?"{value}{unit}":o,l=n.unit;if(isNaN(e))return"NaN";var s=p(l)?u.indexOf(l):Math.floor(Math.log(e)/Math.log(d)),c=parseFloat((e/Math.pow(d,s)).toFixed(a));return 1===e&&0===s?r.replace("{value}",e.toString()).replace("{unit}",i):r.replace("{value}",c.toString()).replace("{unit}",u[s])}function f(e){var n=Number(e),t=0,u="";return isNaN(n)?new Error("formatByteUnit function : first argument is not number"):(n<=0?(t=0,u=a):1===n?(t=n,u=i):n<Math.pow(1024,2)?(t=n/1024,u=o):n<Math.pow(1024,3)?(t=n/Math.pow(1024,2),u=r):n<Math.pow(1024,4)?(t=n/Math.pow(1024,3),u=l):n<Math.pow(1024,5)?(t=n/Math.pow(1024,4),u=s):n<Math.pow(1024,6)&&(t=n/Math.pow(1024,5),u=c),{value:t,unit:u})}}},function(e){e.O(0,[9097,1423,1327,949,423,9159,1551,8065,4739,5129,7790,9329,9774,2888,179],(function(){return n=43576,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.