PageSourceSearch

https://www.beautyplus.com/_next/static/chunks/pages/ai-clothes-changer-803f185e67d28381.js

js beautyplus.com collected 2026-10-01 12:31:51 UTC 15,747 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="063c824d-b9c4-4163-9745-c2be2fd6089c",e._sentryDebugIdIdentifier="sentry-dbid-063c824d-b9c4-4163-9745-c2be2fd6089c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6760,7306,7744],{28008:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-clothes-changer",function(){return a(67792)}])},31310:(e,t,a)=>{"use strict";function r(){!function(e){for(var t=new Set(e),a=[],r=0;r<sessionStorage.length;r++){var o=sessionStorage.key(r);t.has(o)||a.push(o)}a.forEach(function(e){return sessionStorage.removeItem(e)})}(["product_enter_reported"])}a.d(t,{G:()=>r})},34178:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>i,Qq:()=>c,bP:()=>l});var r=a(72087),o=a(50148),n=function(e,t,a){if(void 0===t)return void sessionStorage.removeItem(e);var r=(null!=a?a:{}).serializer,o=void 0===r?JSON.stringify:r;sessionStorage.setItem(e,o(t))},s=function(e,t,a){var r=sessionStorage.getItem(e);if(null===r)return n(e,t,a),t;var o=null!=a?a:{},s=o.validator,i=o.parser,c=void 0===i?JSON.parse:i;try{var l=c(r);if(s&&!s(l))return console.error("stored value is illegal:",e,l),sessionStorage.removeItem(e),t;return l}catch(a){return console.error("parse sessionStorage failed:","key:",e,"value:",r),console.error(a),t}};function i(e,t,a){var i=(0,r._)((0,o.useState)(function(){return s(e,"function"==typeof t?t():t,a)}),2),c=i[0],l=i[1];return[c,(0,o.useCallback)(function(t){l(function(r){var o="function"==typeof t?t(r):t;return n(e,o,a),o})},[e,a])]}var c=function(e){var t=new Map;return JSON.parse(e).forEach(function(e){var a=(0,r._)(e,2),o=a[0],n=a[1];t.set(o,n)}),t},l=function(e){return JSON.stringify(Array.from(e.entries()))}},44221:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(17844),o=a(5640);a(50148);var n=a(49343),s=a(24540),i=function(e){var t=e.landingComponents,a=e.prefix,n=e.moduleName,s=e.adjustLink,i=e.type,c=e.uploadId,l=e.onUpload,A=e.report;return(0,o.jsx)(o.Fragment,{children:t.map(function(e,t){var d=e.Component,u="string"==typeof d?d:d.displayName||d.name,m=e.useGetProps({prefix:a,moduleName:n,adjustLink:s,type:i,uploadId:c,onUpload:l,report:A});return(0,o.jsx)(d,(0,r._)({},m),u||t)})})};let c=function(e){var t=e.landingComponents,a=e.prefix,r=e.moduleName,c=e.type,l=void 0===c?"":c,A=e.uploadId,d=e.onUpload,u=e.adjustLink,m=(0,s.e)().report,p=u||n.Cp[r];return(0,o.jsx)(i,{landingComponents:t,prefix:a,moduleName:r,adjustLink:p,type:l,uploadId:A,onUpload:d,report:m},l||r)}},47911:(e,t,a)=>{"use strict";a.d(t,{O:()=>i});var r=a(72087),o=a(5640),n=a(50148),s=a(42801),i=function(e){var t=e.children,a=e.className,i=(0,r._)((0,n.useState)(!1),2),c=i[0],l=i[1];return((0,n.useEffect)(function(){var e=function(){l(window.innerWidth<811)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),c)?(0,o.jsx)(o.Fragment,{children:t}):(0,o.jsx)("div",{className:(0,s.cn)("md:mt-4 md:flex md:flex-row md:items-start md:justify-between md:gap-10",a),children:t})}},48958:(e,t,a)=>{"use strict";a.d(t,{o8:()=>s,q4:()=>n});var r=a(83846),o=a(3958),n=(0,r._)({},o.i0.AiClothesChanger,"ai-clothes-changer"),s=(0,r._)({},o.i0.AiClothesChanger,"ai.clothes.changer");(0,r._)({},o.i0.AiClothesChanger,"ai-clothes-changer")},51182:(e,t,a)=>{"use strict";a.d(t,{Fd:()=>p,RU:()=>d,Sd:()=>u,X$:()=>s,b0:()=>A,i5:()=>f,kO:()=>c,mR:()=>r,o8:()=>m,ob:()=>l,r_:()=>o,wV:()=>i,y6:()=>n});var r={labelKey:"acc.btn.coustom"},o={Outfit:"outfit",Upload:"upload",Custom:"custom"},n="custom_upload",s="bp_acc_upload_tab_new_badge_used",i="bp-acc-upload-new-badge-used",c=100,l=10,A=55,d="ai_clothes_changer_cache_key",u="ai_clothes_changer_selected_style_id_list_map",m=1024,p=2048,f=200},56288:(e,t,a)=>{"use strict";a.d(t,{QN:()=>v,pl:()=>c,tO:()=>y,v2:()=>_});var r=a(72087),o=a(5640),n=a(50148),s=a(34178),i=a(51182),c=function(e){return e[e.Brush=0]="Brush",e[e.Erase=1]="Erase",e}({}),l=(0,n.createContext)(null),A="acc_tab",d="acc_result_mode",u="acc_uploaded_outfit_url",m="acc_brush_size",p="acc_brush_type",f="acc_prompt_text",g="acc_prompt_tag_ids",x="acc_history_curs
1or",h="acc_history_stack",y="acc_report_id";function _(e){var t=e.children,a=(0,r._)((0,n.useState)(!1),2),c=a[0],_=a[1],v=(0,r._)((0,n.useState)(!1),2),b=v[0],N=v[1],j=(0,r._)((0,n.useState)(!1),2),C=j[0],w=j[1],I=(0,r._)((0,s.Ay)(A,""),2),E=I[0],Q=I[1],S=(0,r._)((0,s.Ay)(d,i.r_.Outfit),2),D=S[0],k=S[1],B=(0,r._)((0,s.Ay)(i.Sd,{}),2),U=B[0],R=B[1],M=(0,r._)((0,s.Ay)(u,""),2),P=M[0],F=M[1],L=(0,r._)((0,s.Ay)(m,i.b0),2),T=L[0],z=L[1],G=(0,r._)((0,s.Ay)(p,0),2),O=G[0],H=G[1],Y=(0,r._)((0,s.Ay)(f,""),2),X=Y[0],J=Y[1],K=(0,r._)((0,s.Ay)(g,[]),2),V=K[0],q=K[1],W=(0,r._)((0,n.useState)(100),2),Z=W[0],$=W[1],ee=(0,n.useRef)(null),et=(0,r._)((0,s.Ay)(x,-1),2),ea=et[0],er=et[1],eo=(0,r._)((0,s.Ay)(h,[]),2),en=eo[0],es=eo[1],ei=(0,r._)((0,s.Ay)(y,""),2),ec=ei[0],el=ei[1],eA=(0,n.useCallback)(function(){[A,d,u,"acc_trendy_id","acc_classic_id",m,p,f,g,x,h].forEach(function(e){sessionStorage.removeItem(e)})},[]),ed=(0,n.useMemo)(function(){return{uploading:c,setUploading:_,comparing:b,setComparing:N,enableDrag:C,setDragEnabled:w,curTab:E,setCurTab:Q,resultMode:D,setResultMode:k,selectedStyleIdMap:U,setSelectedStyleIdMap:R,uploadedOutfitUrl:P,setUploadedOutfitUrl:F,brushSize:T,setBrushSize:z,brushType:O,setBrushType:H,promptText:X,setPromptText:J,selectedPromptTagIds:V,setSelectedPromptTagIds:q,scale:Z,setScale:$,historyCursor:ea,setHistoryCursor:er,historyStack:en,setHistoryStack:es,stageRef:ee,reportId:ec,setReportId:el,clear:eA}},[c,b,C,E,Q,D,k,U,R,P,F,T,z,O,H,X,J,V,q,Z,ea,er,en,es,ec,el,eA]);return(0,o.jsx)(l.Provider,{value:ed,children:t})}var v=function(){var e=(0,n.useContext)(l);if(!e)throw Error("useMyContext must be used within a MyContext.Provider");return e}},67792:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>u,default:()=>m});var r=a(5640),o=a(71297),n=a(45163),s=a(66853),i=a(37569),c=a(45349),l=a(50206),A=a(21741),d=function(){return(0,r.jsx)("div",{className:"mb-[2rem] mt-[var(--g-header-height)]",children:(0,r.jsx)(o.L,{report:s.k1,$tl:i.t,logger:A.v})})};d.getMeta=function(){return(0,r.jsx)(c.A,{meta:{title:"",description:""},canonicalPath:l.pd.ACC,children:(0,n.aq)({prefix:"ai.clothes.changer",nested:!0})})};var u=!0;let m=d},68225:(e,t,a)=>{"use strict";a.d(t,{Cf:()=>g,Es:()=>h,HM:()=>p,L3:()=>y,LC:()=>f,ZJ:()=>m,c7:()=>x,lG:()=>d,rr:()=>_,zM:()=>u});var r=a(17844),o=a(93629),n=a(17459),s=a(5640),i=a(50148),c=a(81048),l=a(62480),A=a(42801),d=c.bL,u=c.l9,m=c.ZL,p=c.bm,f=i.forwardRef(function(e,t){var a=e.className,o=(0,n._)(e,["className"]);return(0,s.jsx)(c.hJ,(0,r._)({ref:t,className:(0,A.cn)("fixed z-50 backdrop-blur-[7.5px] cinset-0  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a)},o))});f.displayName=c.hJ.displayName;var g=i.forwardRef(function(e,t){var a=e.className,i=e.children,d=e.closeIcon,u=void 0===d||d,p=e.modal,g=void 0===p||p,x=e.maskClassName,h=(0,n._)(e,["className","children","closeIcon","modal","maskClassName"]);return(0,s.jsxs)(m,{children:[g?"boolean"==typeof g?(0,s.jsx)(f,{className:x}):g:null,(0,s.jsxs)(c.UC,(0,o._)((0,r._)({ref:t,className:(0,A.cn)("fixed left-[50%] top-[50%] z-50 grid translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[10px] bg-[var(--c-bg-dialog-content)] p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] mobile:w-[326px]",a)},h),{children:[i,u?(0,s.jsxs)(c.bm,{className:"close-icon absolute right-4 top-4 roun
1ded-sm text-[var(--normal-text-color)] opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent",children:["boolean"!=typeof u?u:(0,s.jsx)(l.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]}):null]}))]})});g.displayName=c.UC.displayName;var x=function(e){var t=e.className,a=(0,n._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({className:(0,A.cn)("flex flex-col space-y-1.5 text-center mobile:text-left",t)},a))};x.displayName="DialogHeader";var h=function(e){var t=e.className,a=(0,n._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({className:(0,A.cn)("flex flex-row space-x-2 mobile:flex-col-reverse mobile:justify-end mobile:space-x-0",t)},a))};h.displayName="DialogFooter";var y=i.forwardRef(function(e,t){var a=e.className,o=(0,n._)(e,["className"]);return(0,s.jsx)(c.hE,(0,r._)({ref:t,className:(0,A.cn)("text-lg font-semibold leading-none tracking-tight",a)},"string"!=typeof o.children&&o.children?{asChild:!0,className:void 0}:{},o))});y.displayName=c.hE.displayName;var _=i.forwardRef(function(e,t){var a=e.className,o=(0,n._)(e,["className"]);return(0,s.jsx)(c.VY,(0,r._)({ref:t,className:(0,A.cn)("text-sm text-muted-foreground",a)},o))});_.displayName=c.VY.displayName},71297:(e,t,a)=>{"use strict";a.d(t,{L:()=>B});var r=a(29935),o=a(82643),n=a(5640),s=a(49377),i=a(50148);a(42686);var c=a(3958),l=a(57598),A=a(10452),d=a(20036),u=a(51182),m=a(7570),p=a(49343),f=a(80403),g=a(44221),x=a(74829);let h=function(e){var t=e.moduleName,a=e.prefix,r=e.adjustLink,o=e.type,s=o&&x.By[o]||x.NS;return(0,n.jsx)(g.A,{landingComponents:s,prefix:a,moduleName:t,adjustLink:r,type:o||""})},y=function(e){var t=e.moduleName,a=e.prefix,r=e.adjustLink,o=e.type;return(0,n.jsx)(h,{moduleName:t,prefix:a,adjustLink:r,type:o})},_={src:"/_next/static/media/acc-cover-as.a5c55ad7.jpg",height:808,width:1180,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAFAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAH/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//aAAwDAQACEAMQAAAAgNP/xAAbEAACAQUAAAAAAAAAAAAAAAACAwAEBTNSYf/aAAgBAQABPwBFuVtjrGAPBn//xAAVEQEBAAAAAAAAAAAAAAAAAAABAP/aAAgBAgEBPwBAv//EABgRAQADAQAAAAAAAAAAAAAAAAEAAjJR/9oACAEDAQE/AHFHoz//2Q==",blurWidth:8,blurHeight:5},v={src:"/_next/static/media/acc-cover-en.c24f8216.jpg",height:808,width:1180,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/2wBDAQoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/v/wgARCAAFAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//aAAwDAQACEAMQAAAAqiS//8QAHRAAAQIHAAAAAAAAAAAAAAAAAgEDAAQRFCEyQf/aAAgBAQABPwAJIRskR53D5huvax//xAAWEQEBAQAAAAAAAAAAAAAAAAABADH/2gAIAQIBAT8ANb//xAAWEQEBAQAAAAAAAAAAAAAAAAABADH/2gAIAQMBAT8AcL//2Q==",blurWidth:8,blurHeight:5};var b=a(47911),N=a(24540),j=a(35030),C=a(78214),w=a.n(C),I=a(17546),E=a(73618),Q=a(31310),S=a(48958),D=a(56288),k=function(e){var t,a=e.moduleName,g=void 0===a?c.i0.AiClothesChanger:a,x=e.prefix,h=e.path,C=e.type,k=(0,s.useRouter)(),B=k.locale,U=(0,j.W)().$tl,R=(0,N.e)().report,M=(0,i.useRef)(""),P=(0,i.useRef)(null),F=(0,i.useMemo)(function(){return m.ML.indexOf(B)>-1?"asia":"west"},[B]),L=x||S.o8[g],T=h||S.q4[g],z=C&&p.z_[C]||p.Cp[g],G=(0,i.useMemo)(function(){var e=U("".concat(L,".intro.image"));return e!=="".concat(L,".intro.image")?e:"asia"===F?_:v},[F,U,L]);return(0,i.useEffect)(function(){if(k.isReady){var e=new URL(window.location.href);M.current=e.searchParams.get("rp")||(0,I.Ug)(),R("edit_func_enter",{edit_func:c.MY[g],ref:e.searchParams.get("from_page")})}},[k.isReady,g,R]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.A,{moduleName:g,path:T,translateKey:L}),(0,n.jsxs)("div",{className:w().root,children:[(0,n.jsxs)("div",{className:"".concat(w().main," !max-w-[1200px]"),children:[(0,n.jsx)(E.A,{}),(0,n.jsxs)("section",{className:"flex flex-col items-start gap-5 px-3 pb-20 pt-5 md:gap-4 md:px-0",children:[(0,n.jsx)("h1",{className:"font-PoppinsBold m-auto text-center text-[26px] font-bold leading-[1.2] md:text-[42px] mobile:order-2",dangerouslySetInnerHTML:{__html:U("".concat(L,".intro.h1"))}}),(0,n.jsx)("p",{className:"inline-block w-full text-center text-sm font-light text-[var(--normal-second-text-color)] md:text-base md:leading-normal mobile:order-4",children:U("".concat(L,".intro.content"))}),(0,n.jsxs)(b.O,{className:"mt-3 w-full md:mt-4",children:[(0,n.jsx)("div",{ref:P,className:"relative flex h-[480px] w-[680px] flex-col justify-center overflow-hidden rounded-xl mobile:order-1 mobile:h-0 mobile:w-full mobile:pb-[68%]",children:(0,n.jsx)("div",{className:"absolute inset-0",children:(0,n.jsx)(d.A,{src:G,alt:U("".concat(L,".img.alt.1")),loading:"eager",fetchPriority:"high",className:"absolute inset-0 h-full w-full object-cover"})})}),(0,n.jsx)("div",{className:"flex w-full flex-col justify-between md:w-[480px] md:gap-6 mobile:order-3",children:(0,n.jsx)(l.Z,{variant:"landing",id:"rmbg-upload",uploadDesc:U("img.rbg.upload.title"),formatDesc:"",btnText:U("".concat(L,".calltoaction1.button.try")),toolEnumVal:g,needNsfw:!0,compressRatio:[u.o8,u.o8],onUrl:(t=(0,r._)(function(e,t){var a;return(0,o.YH)(this,function(r){return(0,Q.G)(),sessionStorage.setItem(u.RU,JSON.stringify({originURL:e,reportId:t})),sessionStorage.setItem(D.tO,JSON.stringify(t)),a="/".concat(T,"/result").concat(C?"?type=".concat(C):""),[2,k.push(a)]})}),function(e,a){return t.apply(this,arguments)})})})]})]})]}),(0,n.jsx)(y,{moduleName:g,prefix:L,adjustLink:z,type:C}),(0,n.jsx)(A.Sz,{title:U("".concat(L,".og.title")),description:U("".concat(L,".description")),cover:U("".concat(L,".img.url")),fromTab:c.MY[g],report:R})]})]})},B=(0,a(80272).A)(function(e){var t=e.moduleName,a=void 0===t?c.i0.AiClothesChanger:t,r=e.prefix,o=e.path,s=e.type;return(0,n.jsx)(k,{moduleName:a,prefix:r,path:o,type:s})})},80403:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(5640),o=a(92658),n=a.n(o),s=a(49377),i=a(50148),c=a(35030),l=a(3958),A=a(48958);let d=function(e){var t=e.indexAbility,a=e.moduleName,o=e.path,d=e.translateKey,u=(0,s.useRouter)(),m=l.tq.bplus,p=u.locale,f=(0,c.W)().$tl,g=(0,i.useMemo)(function(){return A.o8[a]},[a]),x=d||g,h=o||A.q4[a];return(0,r.jsxs)(n(),{children:[(0,r.jsx)("title",{children:f("".concat(x,".title"))}),(0,r.jsx)("meta",{name:"description",content:f("".concat(x,".description"))}),(0,r.jsx)("meta",{name:"keywords",content:f("".concat(x,".kw"))}),(0,r.jsx)("meta",{property:"og:title",content:f("".concat(x,".og.title"))}),(0,r.jsx)("meta",{property:"og:description",content:f("".concat(x,".og.description"))}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:url",content:"https://".concat(m,"/").concat("en"===p?"":"".concat(p,"/")).concat(h)}),(0,r.jsx)("meta",{property:"og:image",content:f("".concat(x,".img.url"))}),(0,r.jsx)("meta",{property:"og:image:alt",content:f("".concat(x,".og.img.alt"))}),(0,r.jsx)("meta",{property:"twitter:title",content:f("".concat(x,".twitter.title"))}),(0,r.jsx)("meta",{property:"twitter:image",content:f("".concat(x,".img.url"))}),(0,r.jsx)("meta",{property:"twitter:description",content:f("".concat(x,".twitter.description"))}),(0,r.jsx)("meta",{name:"robots",content:void 0===t||t?"index":"noindex"})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[3349,7569,5149,9632,2801,7179,7381,7241,5065,6003,2803,6332,8096,4548,1448,9343,2236,492,8239,5033,6220,3277,64,3590,4809,4221,6646,3739,4829,7598,452,636,6593,8792],()=>t(28008)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.