PageSourceSearch

https://www.pictech.ai/picts/js/6542-ba9b2930b5360a3888da.js

js pictech.ai collected 2026-10-05 12:26:51 UTC 33,679 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfabritor_web=self.webpackChunkfabritor_web||[]).push([[6542],{79728:function(e,t,i){i.r(t);var a=i(3349),l=i(44820),n=i(74848),r=i(30892),o=i(97582),h=i(80178),c=i(85893),s=i(67294),m=i(40290),d=i(41720),u=i(93460),p=i(48534),g=i(7806),v=i(18129),y=i(23224),x=i(80455),w=i(69835),f=i(91724),b=i(72313),Z=i(48697),S=i(45379),_=i(85050),z=i(81065),k=i(90384),T=i(47699),C=i(45078),B=i(20991),P=i(87418),I=i(22318),X=i(79379),D=i(24819),E=i(52641),F=i(25564),M=i(96599),O=i(1957),R=i(31428),L=i(93317),A=i(73872),N=i(40737),G=i(83135),H=i(37822),j=i(59117),W=i(85464),U=i(4959),q=i(82457),K=i(74926),J=i(18166),V=i(19413),Q=i(85006),Y=i(74331),$=m.Z.Content,ee=d.Z.Dragger,et=u.Z.Text;[{label:"\u5E38\u7528\u6807\u51C6\u5BF8\u7167",options:[{label:"\u4E00\u5BF8",value:"1-inch",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u4E8C\u5BF8",value:"2-inch",width:413,height:626,physicalSize:"35\xd753mm"},{label:"\u5C0F\u4E00\u5BF8 (\u5B66\u7C4D/\u9A7E\u9A76\u8BC1)",value:"small-1-inch",width:260,height:378,physicalSize:"22\xd732mm"},{label:"\u5C0F\u4E8C\u5BF8 (\u62A4\u7167/\u7B7E\u8BC1)",value:"small-2-inch",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u5927\u4E00\u5BF8 (\u4E2D\u56FD\u62A4\u7167)",value:"large-1-inch",width:390,height:567,physicalSize:"33\xd748mm"}]},{label:"\u56FD\u5185\u8BC1\u4EF6\u4E0E\u6750\u6599",options:[{label:"\u4E2D\u56FD\u62A4\u7167",value:"doc-passport-cn",width:390,height:567,physicalSize:"33\xd748mm"},{label:"\u8EAB\u4EFD\u8BC1\u56DE\u6267\u7167\u7247",value:"doc-id-receipt",width:358,height:441,physicalSize:"32\xd726mm"},{label:"\u6E2F\u6FB3\u901A\u884C\u8BC1",value:"doc-hk-macau-pass",width:390,height:567,physicalSize:"33\xd748mm"},{label:"\u53F0\u6E7E\u901A\u884C\u8BC1",value:"doc-taiwan-pass",width:390,height:567,physicalSize:"33\xd748mm"},{label:"\u7535\u5B50\u9A7E\u9A76\u8BC1",value:"cert-driver",width:260,height:378,physicalSize:"22\xd732mm"},{label:"\u793E\u4FDD\u5361",value:"cert-social",width:358,height:441,physicalSize:"26\xd732mm"},{label:"\u5C45\u4F4F\u8BC1",value:"doc-residence-permit",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u7ED3\u5A5A\u767B\u8BB0\u7167 (\u7EA2\u5E95)",value:"doc-marriage",width:472,height:709,physicalSize:"40\xd760mm"}]},{label:"\u5347\u5B66\u4E0E\u8BED\u8A00\u8003\u8BD5",options:[{label:"\u5B66\u4FE1\u7F51/\u56FE\u50CF\u91C7\u96C6",value:"collection-graduate",width:480,height:640,physicalSize:"41\xd754mm"},{label:"\u7814\u7A76\u751F\u8003\u8BD5 (\u8003\u7814)",value:"exam-graduate",width:390,height:567,physicalSize:"33\xd748mm"},{label:"\u82F1\u8BED\u56DB\u516D\u7EA7 (CET)",value:"exam-cet",width:240,height:320,physicalSize:"20\xd727mm"},{label:"\u6258\u798F (TOEFL)",value:"exam-toefl",width:600,height:600,physicalSize:"51\xd751mm"},{label:"\u96C5\u601D (IELTS)",value:"exam-ielts",width:413,height:531,physicalSize:"35\xd745mm"},{label:"GRE / GMAT",value:"exam-gre-gmat",width:600,height:600,physicalSize:"51\xd751mm"},{label:"\u666E\u901A\u8BDD\u6C34\u5E73\u6D4B\u8BD5",value:"exam-mandarin-test",width:295,height:413,physicalSize:"25\xd735mm"}]},{label:"\u804C\u4E1A\u4E0E\u8D44\u683C\u8003\u8BD5",options:[{label:"\u56FD\u5BB6\u516C\u52A1\u5458",value:"exam-civil",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u6559\u5E08\u8D44\u683C\u8BC1",value:"exam-teacher",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u6CE8\u518C\u4F1A\u8BA1\u5E08 (CPA)",value:"exam-cpa",width:178,height:220,physicalSize:"15\xd719mm"},{label:"\u521D/\u4E2D\u7EA7\u4F1A\u8BA1\u804C\u79F0",value:"exam-accountant",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u6CD5\u5F8B\u804C\u4E1A\u8D44\u683C",value:"exam-lawyer",width:413,height:626,physicalSize:"35\xd753mm"},{label:"\u6267\u4E1A\u533B\u5E08/\u62A4\u58EB",value:"exam-medical",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u8BA1\u7B97\u673A\u7B49\u7EA7 (NCRE)",value:"exam-ncre",width:192,height:144,physicalSize:"16\xd712mm"},{label:"\u94F6\u884C/\u8BC1\u5238/\u57FA\u91D1\u4ECE\u4E1A",value:"exam-finance",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u4E00\u7EA7/\u4E8C\u7EA7\u5EFA\u9020\u5E08",value:"exam-constructor",width:295,height:413,physicalSize:"25\xd735mm"}]},{label:"\u56FD\u9645\u7B7E\u8BC1 (\u4E9A\u6D32)",options:[{label:"\u65E5\u672C\u7B7E\u8BC1",value:"visa-japan",width:531,height:531,physicalSize:"45\xd745mm"},{label:"\u97E9\u56FD\u7B7E\u8BC1",value:"visa-korea",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u6CF0\u56FD\u7B7E\u8BC1",value:"visa-thailand",width:472,height:709,physicalSize:"40\xd760mm"},{label:"\u9A6C\u6765\u897F\u4E9A\u7B7E\u8BC1",value:"visa-malaysia",width:413,height:591,physicalSize:"35\xd750mm"},{label:"\u65B0\u52A0\u5761\u7B7E\u8BC1",value:"visa-singapore",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u8D8A\u5357\u7B7E\u8BC1",value:"visa-vietnam",width:472,height:709,physicalSize:"40\xd760mm"},{label:"\u5370\u5EA6\u7B7E\u8BC1",value:"visa-india",width:591,height:591,physicalSize:"50\xd750mm"}]},{label:"\u56FD\u9645\u7B7E\u8BC1 (\u6B27\u7F8E\u6FB3)",options:[{label:"\u7F8E\u56FD\u7B7E\u8BC1",value:"visa-usa",width:600,height:600,physicalSize:"51\xd751mm"},{label:"\u52A0\u62FF\u5927\u7B7E\u8BC1",value:"visa-canada",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u7533\u6839\u7B7E\u8BC1 (\u6B27\u6D32\u591A\u56FD)",value:"visa-schengen",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u82F1\u56FD\u7B7E\u8BC1",value:"visa-uk",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u6FB3\u5927\u5229\u4E9A\u7B7E\u8BC1",value:"visa-australia",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u65B0\u897F\u5170\u7B7E\u8BC1",value:"visa-newzealand",width:413,height:531,physicalSize:"35\xd745mm"},{label:"\u4FC4\u7F57\u65AF\u7B7E\u8BC1",value:"visa-russia",width:413,height:531,physicalSize:"35\xd745mm"}]},{label:"\u5176\u4ED6\u7528\u9014",options:[{label:"\u4E2A\u4EBA\u7B80\u5386\u7167\u7247",value:"other-cv",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u793E\u56E2/\u5B66\u751F\u8BC1",value:"other-student-id",width:295,height:413,physicalSize:"25\xd735mm"},{label:"\u9886\u82F1(LinkedIn)\u5934\u50CF",value:"other-linkedin",width:400,height:400,physicalSize:"N/A"}]}].flatMap(function(e){return e.options}
1),[{label:"\u5E38\u7528\u89C4\u683C",options:[{label:"6\u5BF8\u7167\u7247\u7EB8 (152mm x 102mm)",value:"6-inch",width_mm:152,height_mm:102},{label:"A4 \u6253\u5370\u7EB8 (210mm x 297mm)",value:"a4",width_mm:210,height_mm:297}]},{label:"\u6807\u51C6\u7167\u7247\u7EB8",options:[{label:"5\u5BF8\u7167\u7247\u7EB8 (127mm x 89mm)",value:"5-inch",width_mm:127,height_mm:89},{label:"7\u5BF8\u7167\u7247\u7EB8 (178mm x 127mm)",value:"7-inch",width_mm:178,height_mm:127},{label:"8\u5BF8\u7167\u7247\u7EB8 (203mm x 152mm)",value:"8-inch",width_mm:203,height_mm:152},{label:"10\u5BF8\u7167\u7247\u7EB8 (254mm x 203mm)",value:"10-inch",width_mm:254,height_mm:203},{label:"12\u5BF8\u7167\u7247\u7EB8 (305mm x 254mm)",value:"12-inch",width_mm:305,height_mm:254}]},{label:"\u56FD\u9645\u6807\u51C6\u7EB8\u5F20 (ISO)",options:[{label:"A6 \u6253\u5370\u7EB8 (105mm x 148mm)",value:"a6",width_mm:105,height_mm:148},{label:"A5 \u6253\u5370\u7EB8 (148mm x 210mm)",value:"a5",width_mm:148,height_mm:210},{label:"A3 \u6253\u5370\u7EB8 (297mm x 420mm)",value:"a3",width_mm:297,height_mm:420},{label:"B5 \u6253\u5370\u7EB8 (176mm x 250mm)",value:"b5",width_mm:176,height_mm:250},{label:"B4 \u6253\u5370\u7EB8 (250mm x 353mm)",value:"b4",width_mm:250,height_mm:353}]},{label:"\u5317\u7F8E\u6807\u51C6\u7EB8\u5F20 (ANSI)",options:[{label:"\u7F8E\u56FD\u4FE1\u7EB8 Letter (216mm x 279mm)",value:"letter",width_mm:216,height_mm:279},{label:"\u6CD5\u5F8B\u7EB8 Legal (216mm x 356mm)",value:"legal",width_mm:216,height_mm:356},{label:"\u5C0F\u578B\u62A5\u7EB8 Tabloid (279mm x 432mm)",value:"tabloid",width_mm:279,height_mm:432}]},{label:"\u7279\u6B8A/\u65B9\u5F62\u683C\u5F0F",options:[{label:"\u94B1\u5305/\u5361\u7247\u5C3A\u5BF8 (64mm x 89mm)",value:"wallet",width_mm:64,height_mm:89},{label:"\u65B9\u5F62 4x4\u5BF8 (102mm x 102mm)",value:"square-4",width_mm:102,height_mm:102},{label:"\u65B9\u5F62 5x5\u5BF8 (127mm x 127mm)",value:"square-5",width_mm:127,height_mm:127},{label:"\u65B9\u5F62 8x8\u5BF8 (203mm x 203mm)",value:"square-8",width_mm:203,height_mm:203}]}].flatMap(function(e){return e.options});var ei={CATEGORIES:[{key:"common",options:["1-inch","2-inch","small-1-inch","small-2-inch","large-1-inch"]},{key:"domestic",options:["doc-passport-cn","doc-id-receipt","doc-hk-macau-pass","doc-taiwan-pass","cert-driver","cert-social","doc-residence-permit","doc-marriage"]},{key:"exams",options:["collection-graduate","exam-graduate","exam-cet","exam-toefl","exam-ielts","exam-gre-gmat","exam-mandarin-test"]},{key:"professional",options:["exam-civil","exam-teacher","exam-cpa","exam-accountant","exam-lawyer","exam-medical","exam-ncre","exam-finance","exam-constructor"]},{key:"visaAsia",options:["visa-japan","visa-korea","visa-thailand","visa-malaysia","visa-singapore","visa-vietnam","visa-india"]},{key:"visaGlobal",options:["visa-usa","visa-canada","visa-schengen","visa-uk","visa-australia","visa-newzealand","visa-russia"]},{key:"other",options:["other-cv","other-student-id","other-linkedin"]}],OPTIONS:[{value:"1-inch",width:295,height:413,physicalSize:"25\xd735mm"},{value:"2-inch",width:413,height:626,physicalSize:"35\xd753mm"},{value:"small-1-inch",width:260,height:378,physicalSize:"22\xd732mm"},{value:"small-2-inch",width:413,height:531,physicalSize:"35\xd745mm"},{value:"large-1-inch",width:390,height:567,physicalSize:"33\xd748mm"},{value:"doc-passport-cn",width:390,height:567,physicalSize:"33\xd748mm"},{value:"doc-id-receipt",width:358,height:441,physicalSize:"32\xd726mm"},{value:"doc-hk-macau-pass",width:390,height:567,physicalSize:"33\xd748mm"},{value:"doc-taiwan-pass",width:390,height:567,physicalSize:"33\xd748mm"},{value:"cert-driver",width:260,height:378,physicalSize:"22\xd732mm"},{value:"cert-social",width:358,height:441,physicalSize:"26\xd732mm"},{value:"doc-residence-permit",width:295,height:413,physicalSize:"25\xd735mm"},{value:"doc-marriage",width:472,height:709,physicalSize:"40\xd760mm"},{value:"collection-graduate",width:480,height:640,physicalSize:"41\xd754mm"},{value:"exam-graduate",width:390,height:567,physicalSize:"33\xd748mm"},{value:"exam-cet",width:240,height:320,physicalSize:"20\xd727mm"},{value:"exam-toefl",width:600,height:600,physicalSize:"51\xd751mm"},{value:"exam-ielts",width:413,height:531,physicalSize:"35\xd745mm"},{value:"exam-gre-gmat",width:600,height:600,physicalSize:"51\xd751mm"},{value:"exam-mandarin-test",width:295,height:413,physicalSize:"25\xd735mm"},{value:"exam-civil",width:295,height:413,physicalSize:"25\xd735mm"},{value:"exam-teacher",width:295,height:413,physicalSize:"25\xd735mm"}
1,{value:"exam-cpa",width:178,height:220,physicalSize:"15\xd719mm"},{value:"exam-accountant",width:295,height:413,physicalSize:"25\xd735mm"},{value:"exam-lawyer",width:413,height:626,physicalSize:"35\xd753mm"},{value:"exam-medical",width:295,height:413,physicalSize:"25\xd735mm"},{value:"exam-ncre",width:192,height:144,physicalSize:"16\xd712mm"},{value:"exam-finance",width:295,height:413,physicalSize:"25\xd735mm"},{value:"exam-constructor",width:295,height:413,physicalSize:"25\xd735mm"},{value:"visa-japan",width:531,height:531,physicalSize:"45\xd745mm"},{value:"visa-korea",width:413,height:531,physicalSize:"35\xd745mm"},{value:"visa-thailand",width:472,height:709,physicalSize:"40\xd760mm"},{value:"visa-malaysia",width:413,height:591,physicalSize:"35\xd750mm"},{value:"visa-singapore",width:413,height:531,physicalSize:"35\xd745mm"},{value:"visa-vietnam",width:472,height:709,physicalSize:"40\xd760mm"},{value:"visa-india",width:591,height:591,physicalSize:"50\xd750mm"},{value:"visa-usa",width:600,height:600,physicalSize:"51\xd751mm"},{value:"visa-canada",width:413,height:531,physicalSize:"35\xd745mm"},{value:"visa-schengen",width:413,height:531,physicalSize:"35\xd745mm"},{value:"visa-uk",width:413,height:531,physicalSize:"35\xd745mm"},{value:"visa-australia",width:413,height:531,physicalSize:"35\xd745mm"},{value:"visa-newzealand",width:413,height:531,physicalSize:"35\xd745mm"},{value:"visa-russia",width:413,height:531,physicalSize:"35\xd745mm"},{value:"other-cv",width:295,height:413,physicalSize:"25\xd735mm"},{value:"other-student-id",width:295,height:413,physicalSize:"25\xd735mm"},{value:"other-linkedin",width:400,height:400,physicalSize:"N/A"}]},ea=["#a4d6ff","#438EDB","#007bff","#003A70","#ff0000","#D83838","#c2185b","#FFFFFF","#F0F0F0","#cccccc"],el={GROUPS:[{key:"common",options:["6-inch","a4"]},{key:"photo",options:["5-inch","7-inch","8-inch","10-inch","12-inch"]},{key:"iso",options:["a6","a5","a3","b5","b4"]},{key:"ansi",options:["letter","legal","tabloid"]},{key:"special",options:["wallet","square-4","square-5","square-8"]}],OPTIONS:[{value:"6-inch",width_mm:152,height_mm:102},{value:"a4",width_mm:210,height_mm:297},{value:"5-inch",width_mm:127,height_mm:89},{value:"7-inch",width_mm:178,height_mm:127},{value:"8-inch",width_mm:203,height_mm:152},{value:"10-inch",width_mm:254,height_mm:203},{value:"12-inch",width_mm:305,height_mm:254},{value:"a6",width_mm:105,height_mm:148},{value:"a5",width_mm:148,height_mm:210},{value:"a3",width_mm:297,height_mm:420},{value:"b5",width_mm:176,height_mm:250},{value:"b4",width_mm:250,height_mm:353},{value:"letter",width_mm:216,height_mm:279},{value:"legal",width_mm:216,height_mm:356},{value:"tabloid",width_mm:279,height_mm:432},{value:"wallet",width_mm:64,height_mm:89},{value:"square-4",width_mm:102,height_mm:102},{value:"square-5",width_mm:127,height_mm:127},{value:"square-8",width_mm:203,height_mm:203}]};t.default=function(){var e,t,i,d,u=(0,Q.$G)("idPhotoMobileTool").t,en=(0,s.useMemo)(function(){return ei.OPTIONS.map(function(e){return(0,n._)((0,l._)({},e),{label:u("sizeOptions.".concat(e.value))})})},[u]),er=(0,s.useMemo)(function(){return ei.CATEGORIES.map(function(e){return{label:u("sizeCategories.".concat(e.key)),options:e.options.map(function(e){return en.find(function(t){return t.value===e})})}})},[u,en]),eo=(0,s.useMemo)(function(){return ea.map(function(e){return{value:e,label:u("presetColors.".concat(e))}})},[u]),eh=(0,s.useMemo)(function(){return el.OPTIONS.map(function(e){return(0,n._)((0,l._)({},e),{label:u("paperOptions.".concat(e.value))})})},[u]),ec=(0,s.useMemo)(function(){return el.GROUPS.map(function(e){return{label:u("paperGroups.".concat(e.key)),options:e.options.map(function(e){return eh.find(function(t){return t.value===e})})}})},[u,eh]),es=p.Z.useToken().token,em=(0,s.useRef)(null),ed=(0,r._)((0,s.use
1State)(null),2),eu=ed[0],ep=ed[1],eg=(0,r._)((0,s.useState)(null),2),ev=eg[0],ey=eg[1],ex=(0,r._)((0,s.useState)(null),2),ew=ex[0],ef=ex[1],eb=(0,r._)((0,s.useState)("id_photo_task.png"),2),eZ=eb[0],eS=eb[1],e_=(0,r._)((0,s.useState)(!1),2),ez=e_[0],ek=e_[1],eT=(0,r._)((0,s.useState)(u("messages.submitting")),2),eC=eT[0],eB=eT[1],eP=(0,r._)((0,s.useState)("1-inch"),2),eI=eP[0],eX=eP[1],eD=(0,r._)((0,s.useState)(295),2),eE=eD[0],eF=eD[1],eM=(0,r._)((0,s.useState)(413),2),eO=eM[0],eR=eM[1],eL=(0,r._)((0,s.useState)("#438EDB"),2),eA=eL[0],eN=eL[1],eG=(0,r._)((0,s.useState)("#66ccff"),2),eH=eG[0],ej=eG[1],eW=(0,r._)((0,s.useState)(!0),2),eU=eW[0],eq=eW[1],eK=(0,r._)((0,s.useState)(15),2),eJ=eK[0],eV=eK[1],eQ=(0,r._)((0,s.useState)(10),2),eY=eQ[0],e$=eQ[1],e0=(0,r._)((0,s.useState)(10),2),e1=e0[0],e2=e0[1],e5=(0,r._)((0,s.useState)(6),2),e3=e5[0],e4=e5[1],e7=(0,r._)((0,s.useState)(2),2),e6=e7[0],e8=e7[1],e9=(0,r._)((0,s.useState)(!1),2),te=e9[0],tt=e9[1],ti=(0,r._)((0,s.useState)(u("watermarkTab.cardTitle")),2),ta=ti[0],tl=ti[1],tn=(0,r._)((0,s.use
1State)("#808080"),2),tr=tn[0],to=tn[1],th=(0,r._)((0,s.useState)(!1),2),tc=th[0],ts=th[1],tm=(0,r._)((0,s.useState)(null),2),td=tm[0],tu=tm[1],tp=(0,J.Z)(),tg=tp.userIsLogin,tv=tp.setUserIsLogin,ty=(0,r._)((0,s.useState)(!1),2),tx=ty[0],tw=ty[1],tf=(0,r._)((0,s.useState)(er[0].label),2),tb=tf[0],tZ=tf[1],tS=(0,r._)((0,s.useState)(!1),2),t_=tS[0],tz=tS[1],tk=(0,r._)((0,s.useState)(eh[0].value),2),tT=tk[0],tC=tk[1],tB=(0,r._)((0,s.useState)(!1),2),tP=tB[0],tI=tB[1],tX=(0,r._)((0,s.useState)(null),2),tD=tX[0],tE=tX[1];(0,s.useEffect)(function(){tv(!!localStorage.getItem("pictech_login_ruser"))},[tv]);var tF=(e=(0,a._)(function(){var e,t,i,a,l,n,r,c,s,m,d,p;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(!tg)return v.Z.confirm({title:u("loginModal.confirmTitle"),icon:(0,h.tZ)(L.Z,{}),content:u("loginModal.confirmContent"),okText:u("loginModal.confirmOk"),cancelText:u("loginModal.confirmCancel"),centered:!0,onOk:function(){ts(!0)}}),[2];if(!eu)return g.ZP.error(u("messages.errorNoImage")),[2];if(ek(!0),eB(u("messages.submitting")),"custom"===eI?(e=null!=eE?eE:0,t=null!=eO?eO:0):(i=en.find(function(e){return e.value===eI}))&&(e=i.width,t=i.height),!e||!t)return g.ZP.error(u("messages.errorSize")),ek(!1),[2];if(!(a="custom-color"===eA?"string"==typeof eH?eH:eH.toHexString():eA))return g.ZP.error(u("messages.errorBgColor")),ek(!1),[2];l="string"==typeof tr?tr:tr.toHexString(),n={sizeType:eI,width:e,height:t,bgColor:a,watermarkSwitch:te,watermarkText:ta,watermarkColor:l,beautyOn:eU,whiteningStrength:eJ,saturationFactor:eY,brightnessFactor:e1,contrastFactor:e3,sharpenStrength:e6},o.label=1;case 1:return o.trys.push([1,4,,5]),[4,(0,q.tQ)({sourceInfo:eu,nameInfo:eZ,taskType:60,paramInfo:JSON.stringify(n),otherInfo:""})];case 2:if(!(null===(c=s=o.sent())||void 0===c?void 0:null===(r=c.data)||void 0===r?void 0:r.taskId))throw Error(null===(m=s)||void 0===m?void 0:m.errorMessage);return d=s.data.taskId,eB(u("messages.generating")),[4,tM(d)];case 3:return o.sent(),[3,5];case 4:return console.error("error:",p=o.sent()),g.ZP.error(p.message||u("errors.generalError")),ek(!1),[3,5];case 5:return[2]}})}),function(){return e.apply(this,arguments)}),tM=function(e){return new Promise(function(t,i){var l,n=Date.now(),r=(l=(0,a._)(function(){var a,l,h,c,s,m,d,p,v,y;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(Date.now()-n>6e4)return clearTimeout(em.current),em.current=null,[2,i(Error(u("errors.timeout")))];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,q.Tf)({taskId:e})];case 2:if(null===(l=h=o.sent())||void 0===l?void 0:null===(a=l.data)||void 0===a?void 0:a.taskInfo){if(s=(c=h.data.taskInfo).status,m=c.destInfo,d=c.otherInfo,20===s){if(clearTimeout(em.current),em.current=null,ey(m||null),p=null,d)try{v=JSON.parse(d),Array.isArray(v)&&v.length>0&&(p=Y._n+"/pictech/platform/images/"+v[0])}catch(e){console.error("\u89E3\u6790 otherInfo \u5931\u8D25:",e)}ef(p),"custom"===eI?tu({label:u("sizeTab.customSizeLabel"),width:eE||0,height:eO||0}):tu(en.find(function(e){return e.value===eI})||null),ek(!1),g.ZP.success(u("messages.generateSuccess")),t()}else 30===s||40===s?(clearTimeout(em.current),em.current=null,i(Error(u("errors.faceError")))):em.current=setTimeout(r,2e3)}return[3,4];case 3:return y=o.sent(),clearTimeout(em.current),em.current=null,i(y),[3,4];case 4:return[2]}})}),function(){return l.apply(this,arguments)});r()})},tO=(t=(0,a._)(function(e,t){var i,a,l,n;return(0,o.__generator)(this,function(r){switch(r.label){case 0:if(!e)return g.ZP.error(u("messages.errorDownloadInvalid")),[2];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,fetch(e)];case 2:return[4,r.sent().blob()];case 3:return i=r.sent(),a=window.URL.createObjectURL(i),(l=document.createElement("a")).href=a,n=e.startsWith("data:image/png")?"png":e.split(".").pop()||"png",l.download="pictech-idphoto-".concat(t,"-").concat(Date.now(),".").concat(n),document.body.appendChild(l),l.click(),document.body.removeChild(l),window.URL.revokeObjectURL(a),[3,5];case 4:return r.sent(),g.ZP.error(u("messages.errorDownloadFallback")),window.open(e,"_blank"),[3,5];case 5:return[2]}})}),function(e,i){return t.apply(this,arguments)}),tR=(i=(0,a._)(function(){var e,t,i,a,l,n,h,c,s,m,d,p,v,y,x,w,f,b,Z,S,_,z,k,T,C,B,P;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(!ev)return g.ZP.error(u("messages.errorTypesetNoImage")),[2];e=ew||ev,t=ev,tI(!0),tE(null),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,Promise.all([(i=function(e){return new Promise(function(t,i){var a=document.createElement("img");a.crossOrigin="anonymous",a.onload=function(){return t(a)},a.onerror=function(t){console.error("Image load failed::",e,t),i(Error("Image load failed:: ".concat(e)))},a.src=e})})(e),i(t)])];case 2:if(l=(a=r._.apply(void 0,[o.sent(),2]))[0],h=(n=a[1]).naturalWi
1dth,c=n.naturalHeight,!(s=eh.find(function(e){return e.value===tT})))throw Error(u("errors.paperInfoError"));if(d=(m=function(e){return Math.round(e/25.4*300)})(s.width_mm),p=m(s.height_mm),(v=document.createElement("canvas")).width=d,v.height=p,!(y=v.getContext("2d")))throw Error(u("errors.canvasError"));for(y.fillStyle="#FFFFFF",y.fillRect(0,0,d,p),x=m(5),w=m(2),Z=(b=Math.floor(((f=d-2*x)+w)/(h+w)))*h,S=b>1?(f-Z)/(b-1):0,k=(z=Math.floor(((_=p-2*x)+w)/(c+w)))*c,T=z>1?(_-k)/(z-1):0,C=x,B=x;B+c<=p-x+1;){for(;C+h<=d-x+1;)y.drawImage(l,C,B,h,c),C+=h+S;C=x,B+=c+T}return tE(v.toDataURL("image/png")),g.ZP.success(u("messages.typesetGenerateSuccess")),[3,5];case 3:return console.error("\u6392\u7248\u7167\u751F\u6210\u5931\u8D25:",P=o.sent()),g.ZP.error(P.message||u("messages.typesetGenerateFailed")),[3,5];case 4:return tI(!1),[7];case 5:return[2]}})}),function(){return i.apply(this,arguments)});return((0,a._)(function(){var e,t,i,a,l,n,h,c,s,m,d,u,p,v,y,x,w,f;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(!ev)return g.ZP.error("\u8BF7\u5148\u751F\u6210\u8BC1\u4EF6\u7167\uFF01"),[2];e=ew||ev,t=ev,tI(!0),tE(null),o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,Promise.all([(i=function(e){return new Promise(function(t,i){var a=document.createElement("img");a.crossOrigin="anonymous",a.onload=function(){return t(a)},a.onerror=function(e){return i(e)},a.src=e})})(e),i(t)])];case 2:if(l=(a=r._.apply(void 0,[o.sent(),2]))[0],h=(n=a[1]).naturalWidth,c=n.naturalHeight,!(s=eh.find(function(e){return e.value===tT})))throw Error("\u672A\u627E\u5230\u7EB8\u5F20\u4FE1\u606F");if(d=(m=function(e){return Math.round(e/25.4*300)})(s.width_mm),u=m(s.height_mm),(p=document.createElement("canvas")).width=d,p.height=u,!(v=p.getContext("2d")))throw Error("\u65E0\u6CD5\u83B7\u53D6 Canvas \u4E0A\u4E0B\u6587");for(v.fillStyle="#FFFFFF",v.fillRect(0,0,d,u),y=m(5),x=m(2),w=y,f=y;f+c<=u-y;){for(w=y;w+h<=d-y;)v.drawImage(l,w,f,h,c),w+=h+x;f+=c+x}return tE(p.toDataURL("image/png")),g.ZP.success("\u6392\u7248\u7167\u751F\u6210\u6210\u529F\uFF01"),[3,5];case 3:return console.error("\u6392\u7248\u7167\u751F\u6210\u5931\u8D25:",o.sent()),g.ZP.error("\u6392\u7248\u7167\u751F\u6210\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002"),[3,5];case 4:return tI(!1),[7];case 5:return[2]}})}),eu)?(0,h.BX)(m.Z,{style:{minHeight:"100vh",background:es.colorBgLayout},children:[(0,h.tZ)(K.Z,{activeMenuKey:"idphoto"}),(0,h.tZ)($,{style:{padding:"16px 16px 150px 16px"},children:(0,h.tZ)(I.Z,{spinning:ez,tip:eC,children:(0,h.BX)(b.Z,{direction:"vertical",size:"large",style:{width:"100%"},children:[(0,h.tZ)(C.Z,{size:"small",title:u("results.cardTitle"),children:(0,h.tZ)(X.Z,{width:"100%",src:eu,style:{aspectRatio:"3/4",objectFit:"cover"}})}),(0,h.tZ)(C.Z,{size:"small",title:td?u("results.cardTitleGenerated",{label:td.label}):u("results.cardTitle"),children:ev||ew?(0,h.BX)(c.Fragment,{children:[(0,h.BX)(D.Z,{children:[ev&&(0,h.BX)("div",{children:[(0,h.tZ)(X.Z,{width:"100%",src:ev}),(0,h.tZ)(et,{type:"secondary",style:{textAlign:"center",display:"block",marginTop:8},children:u("results.standardVersion")})]},"std-result"),ew&&(0,h.BX)("div",{children:[(0,h.tZ)(X.Z,{width:"100%",src:ew}),(0,h.tZ)(et,{type:"secondary",style:{textAlign:"center",display:"block",marginTop:8},children:u("results.hdVersion")})]},"hd-result")]}),ev&&ew&&(0,h.BX)(E.Z,{justify:"center",align:"center",gap:"small",style:{marginTop:"12px",padding:"6px 8px",background:es.colorInfoBg,borderRadius:es.borderRadius,border:"1px solid ".concat(es.colorInfoBorder)},children:[(0,h.tZ)(G.Z,{style:{color:es.colorInfoText}}),(0,h.tZ)(et,{style:{color:es.colorInfoText,fontSize:13},children:u("results.swipeHint")})]})]}):(0,h.tZ)("div",{style:{aspectRatio:"3/4",display:"flex",alignItems:"center",justifyContent:"center",background:es.colorBgContainer},children:(0,h.tZ)(F.ZP,{icon:(0,h.tZ)(H.Z,{}),title:u("results.pendingTitle")})})})]})})}),(0,h.BX)("div",{style:{position:"fixed",bottom:0,left:0,right:0,background:es.colorBgContainer,padding:"12px 16px",boxShadow:"0 -2px 8px rgba(0, 0, 0, 0.08)",zIndex:10},children:[(0,h.BX)(E.Z,{justify:"space-between",align:"center",gap:"small",children:[(0,h.tZ)(w.ZP,{icon:(0,h.tZ)(j.Z,{}),onClick:function(){return tw(!0)},children:u("actions.configure")}),(0,h.tZ)(w.ZP,{type:"primary",onClick:tF,loading:ez,style:{flex:1},children:ev?u("actions.regenerate"):u("actions.generate")}),(0,h.tZ)(w.ZP,{icon:(0,h.tZ)(G.Z,{}),onClick:function(){ep(null),ey(null),ef(null),tu(null),em.current&&(clearTimeout(em.current),em.current=null)},danger:!0,children:u("actions.replaceImage")})]}),ev&&(0,h.BX)(M.Z,{gutter:[8,8],style:{marginTop:"12px"},children:[(0,h.tZ)(O.Z,{span:12,children:(0,h.tZ)(w.ZP,{type:"primary",ghost:!0,icon:(0,h.tZ)(L.Z,{}),onClick:function(){y.ZP.info({message:u("messages.desktopWatermarkNoticeTitle"),description:u("messages.desktopWatermarkNoticeDesc"),placement:"top",duration:5})},block:!0,style:{borderColor:es.colorSuccess,color:es.colorSuccess},children:u("actions.removeWatermark")})}),(0,h.tZ)(O.Z,{span:12,children:(0,h.tZ)(w.ZP,{icon:(0,h.tZ)(W.Z,{}),onClick:function(){return tz(!0)},block:!0,type:"dashed",children:u("actions.goToTypeset")})}),(0,h.tZ)(O.Z,{span:12,children:(0,h.tZ)(w.ZP,{icon:(0,h.tZ)(U.Z,{}),onClick:function(){return tO(ev,"std")},block:!0,children:u("actions.downloadStandard")})}),(0,h.tZ)(O.Z,{span:12,children:(0,h.tZ)(w.ZP,{icon:(0,h.tZ)(U.Z,{}),onClick:function(){return tO(ew,"hd")},disabled:!ew,block:!0,children:u("actions.downloadHD")})})]})]}),(0,h.tZ)(x.Z,{title:u("configDrawer.title"),placement:"bottom",onClose:function(){return tw(!1)},open:tx,height:"85%",destroyOnClose:!0,extra:(0,h.tZ)(w.ZP,{type:"primary",onClick:function(){return tw(!1)},children:u("configDrawer.finishButton")}),children:(0,h.BX)(f.Z,{defaultActiveKey:"1",tabPosition:"top",centered:!0,children:[(0,h.tZ)(f.Z.TabPane,{tab:u("configDrawer.tabs.size"),children:(0,h.BX)(b.Z,{direction:"vertical",style:{width:"100%"},children:[(0,h.tZ)("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:er.map(function(e){return(0,h.tZ)(w.ZP,{size:"small",type:tb===e.label?"primary":"default",onClick:function(){return tZ(e.label)},children:e.label},e.label)})}),(0,h.tZ)(Z.Z,{style:{margin:"12px 0"}}),(0,h.tZ)("div",{style:{maxHeight:"300px",overflowY:"auto"},children:(0,h.tZ)(b.Z,{direction:"vertical",style:{width:"100%"},children:((null===(d=er.find(function(e){return e.label===tb}))||void 0===d?void 0:d.options)||[]).map(function(e){return(0,h.BX)("div",{onClick:function(){return eX(e.value)},style:{padding:"8px 12px",border:"1px solid ".concat(eI===e.value?es.colorPrimary:es.colorBorder),borderRadius:es.borderRadius,background:eI===e.value?es.colorPrimaryBg:"transparent"},children:[(0,h.tZ)(et,{strong:!0,children:e.label}),(0,h.tZ)("br",{}),(0,h.tZ)(et,{type:"secondary",style:{fontSize:"12px"},children:"".concat(e.width,"\xd7").concat(e.height,"px | ").concat(e.physicalSize)})]},e.value)})})}),(0,h.tZ)(Z.Z,{style:{margin:"12px 0"}}),(0,h.BX)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,h.tZ)(et,{children:u("configDrawer.sizeTab.customSizeLabel")}),(0,h.tZ)(S.Z,{size:"small",checked:"custom"===eI,onChange:function(e){return eX(e?"custom"
1:"1-inch")}})]}),"custom"===eI&&(0,h.BX)(b.Z,{style:{marginTop:12,width:"100%"},align:"start",children:[(0,h.tZ)(_.Z,{addonBefore:u("configDrawer.sizeTab.customWidth"),value:eE,onChange:function(e){return eF(e)},min:50,max:2e3,style:{flex:1}}),(0,h.tZ)(_.Z,{addonBefore:u("configDrawer.sizeTab.customHeight"),value:eO,onChange:function(e){return eR(e)},min:50,max:2e3,style:{flex:1}})]})]})},"1"),(0,h.BX)(f.Z.TabPane,{tab:u("configDrawer.tabs.background"),children:[(0,h.BX)(z.ZP.Group,{value:eA,onChange:function(e){return eN(e.target.value)},style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:[eo.map(function(e){return(0,h.BX)(z.ZP,{value:e.value,style:{padding:0,lineHeight:1},children:[" ",(0,h.tZ)(k.Z,{title:e.label,children:(0,h.tZ)("div",{style:{width:40,height:40,background:e.value,borderRadius:es.borderRadius,border:eA===e.value?"2px solid ".concat(es.colorPrimary):"1px solid ".concat(es.colorBorder)}})})," "]},e.value)}),(0,h.BX)(z.ZP,{value:"custom-color",style:{padding:0,lineHeight:1},children:[" ",(0,h.tZ)(k.Z,{title:u("configDrawer.backgroundTab.customColorTooltip"),children:(0,h.tZ)("div",{style:{width:40,height:40,borderRadius:es.borderRadius,border:"1px dashed ".concat(es.colorBorder),borderColor:"custom-color"===eA?es.colorPrimary:es.colorBorder,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,h.tZ)(A.Z,{})})})," "]})]}),"custom-color"===eA&&(0,h.tZ)("div",{style:{marginTop:16},children:(0,h.tZ)(T.Z,{value:eH,onChange:ej,format:"hex",showText:!0,style:{width:"100%"}})})]},"2"),(0,h.BX)(f.Z.TabPane,{tab:u("configDrawer.tabs.beautyWatermark"),children:[(0,h.tZ)(C.Z,{title:u("configDrawer.beautyTab.cardTitle"),size:"small",extra:(0,h.tZ)(S.Z,{size:"small",checked:eU,onChange:eq}),children:eU&&(0,h.BX)("div",{style:{padding:"8px 4px 0"},children:[(0,h.BX)("div",{children:[(0,h.tZ)(et,{type:"secondary",children:u("configDrawer.beautyTab.whitening")}),(0,h.tZ)(B.Z,{value:eJ,onChange:eV,min:0,max:15})]}),(0,h.BX)("div",{children:[(0,h.tZ)(et,{type:"secondary",children:u("configDrawer.beautyTab.saturation")}),(0,h.tZ)(B.Z,{value:eY,onChange:e$,min:0,max:30})]}),(0,h.BX)("div",{children:[(0,h.tZ)(et,{type:"secondary",children:u("configDrawer.beautyTab.brightness")}),(0,h.tZ)(B.Z,{value:e1,onChange:e2,min:0,max:20})]}),(0,h.BX)("div",{children:[(0,h.tZ)(et,{type:"secondary",children:u("configDrawer.beautyTab.contrast")}),(0,h.tZ)(B.Z,{value:e3,onChange:e4,min:0,max:30})]}),(0,h.BX)("div",{children:[(0,h.tZ)(et,{type:"secondary",children:u("configDrawer.beautyTab.sharpen")}),(0,h.tZ)(B.Z,{value:e6,onChange:e8,min:0,max:5})]})]})}),(0,h.tZ)(C.Z,{title:u("configDrawer.watermarkTab.cardTitle"),size:"small",style:{marginTop:16},extra:(0,h.tZ)(S.Z,{size:"small",checked:te,onChange:tt}),children:te&&(0,h.BX)(b.Z,{direction:"vertical",style:{width:"100%",marginTop:"8px"},children:[(0,h.tZ)(P.Z,{addonBefore:u("configDrawer.watermarkTab.contentLabel"),value:ta,onChange:function(e){return tl(e.target.value)}}),(0,h.tZ)(T.Z,{value:tr,onChange:to,format:"hex",showText:!0,style:{width:"100%"}})]})})]},"3")]})}),(0,h.tZ)(v.Z,{title:u("typesetModal.title"),open:t_,onCancel:function(){return tz(!1)},width:"95%",footer:[(0,h.BX)(w.ZP,{onClick:function(){return tz(!1)},children:[" ",u("typesetModal.backButton")," "]},"back"),(0,h.BX)(w.ZP,{type:"primary",icon:(0,h.tZ)(U.Z,{}),disabled:!tD,onClick:function(){return tO(tD,"typeset")},children:[" ",u("typesetModal.downloadButton")," "]},"download")],children:(0,h.BX)(b.Z,{direction:"vertical",style:{width:"100%"},children:[(0,h.BX)(b.Z,{direction:"vertical",style:{width:"100%"},children:[(0,h.tZ)(et,{children:u("typesetModal.paperSizeLabel")}),(0,h.tZ)(R.Z,{style:{width:"100%"},value:tT,onChange:function(e){return tC(e)},children:ec.map(function(e){return(0,h.tZ)(R.Z.OptGroup,{label:e.label,children:e.options.map(function(e){return(0,h.tZ)(R.Z.Option,{value:e.value,children:e.label},e.value)})},e.label)})}),(0,h.tZ)(w.ZP,{type:"primary",onClick:tR,loading:tP,block:!0,children:tP?u("typesetModal.generatingButton"):u("typesetModal.generateButton")})]}),(0,h.tZ)(Z.Z,{}),(0,h.tZ)("div",{style:{background:"#f0f2f5",padding:"10px",minHeight:200,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,h.tZ)(I.Z,{spinning:tP,tip:u("messages.typesetGenerating"),children:tD?(0,h.tZ)(X.Z,{src:tD,style:{maxWidth:"100%",maxHeight:"40vh",border:"1px solid ".concat(es.colorBorder)}}):(0,h.tZ)(F.ZP,{icon:(0,h.tZ)(W.Z,{}),title:u("typesetModal.previewTitle")})})})]})}),(0,h.tZ)(v.Z,{title:u("loginModal.title"),open:tc,onCancel:function(){return ts(!1)},footer:null,destroyOnClose:!0,children:(0,h.tZ)(V.Z,{onLoginSuccess:function(){tv(!0),ts(!1),g.ZP.success(u("messages.loginSuccess"))}})})]}):(0,h.BX)(m.Z,{style:{minHeight:"100vh",background:es.colorBgLayout}
1,children:[(0,h.tZ)(K.Z,{activeMenuKey:"idphoto"}),(0,h.tZ)($,{style:{padding:"16px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",flexGrow:1},children:(0,h.tZ)(I.Z,{spinning:ez,tip:eC,children:(0,h.BX)(ee,{name:"file",multiple:!1,beforeUpload:function(e){if(!(e.type.startsWith("image/")&&!e.type.includes("svg")))return g.ZP.error(u("messages.unsupportedFormat")),!1;eB(u("messages.parsing")),ek(!0),ey(null),ef(null),eS(e.name);var t=new FileReader;return t.readAsDataURL(e),t.onload=function(){ep(t.result),ek(!1),g.ZP.success(u("messages.uploadSuccess"))},t.onerror=function(){g.ZP.error(u("messages.readFailed")),ek(!1)},!1},showUploadList:!1,style:{padding:"40px",background:es.colorBgContainer,width:"calc(100vw - 32px)",maxWidth:"500px"},accept:"image/*",children:[(0,h.tZ)("p",{className:"ant-upload-drag-icon",children:(0,h.tZ)(N.Z,{})}),(0,h.tZ)("p",{className:"ant-upload-text",children:u("upload.dragText")}),(0,h.tZ)("p",{className:"ant-upload-hint",style:{padding:"0 16px"},children:u("upload.hint")})]})})})]})}}}]);

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.