LinuxConfig/LarkShell/PC_Gadget/7195161935556460547/app/cli_9cb844403dbb9108/2.16.2010/common.js

1 line
2.7 MiB
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

define("common.js",(function(e,t,a,r,i,n,o,s,c,l,d,u,p,m,h,b,g,v,j,O,f,M,_,y){(tt.webpackJsonp=tt.webpackJsonp||[]).push([[1],[,,function(e,t,a){"use strict";a.d(t,"curLang",(function(){return c})),a.d(t,"curStarlingLang",(function(){return l})),a.d(t,"t",(function(){return u})),a.d(t,"getCurLang",(function(){return m})),a.d(t,"getCurStarlingLang",(function(){return h})),a.d(t,"getCurApiLang",(function(){return b})),a.d(t,"getCurCode",(function(){return g})),a.d(t,"getCurTimeZone",(function(){return v})),a.d(t,"feelGoodLang",(function(){return j}));var r=a(123),i=a(568),n=(a(732),a(501)),o=a(20),s=a(807);a.o(s,"LANG")&&a.d(t,"LANG",(function(){return s.LANG})),a.o(s,"LANG_CODE")&&a.d(t,"LANG_CODE",(function(){return s.LANG_CODE})),a.o(s,"SimpleLangEnum")&&a.d(t,"SimpleLangEnum",(function(){return s.SimpleLangEnum})),a.o(s,"StarlingLangEnum")&&a.d(t,"StarlingLangEnum",(function(){return s.StarlingLangEnum})),a.o(s,"getApiLanguage")&&a.d(t,"getApiLanguage",(function(){return s.getApiLanguage})),a.o(s,"getCurrentLanguage")&&a.d(t,"getCurrentLanguage",(function(){return s.getCurrentLanguage})),a.o(s,"getLanguageInfo")&&a.d(t,"getLanguageInfo",(function(){return s.getLanguageInfo})),a.o(s,"getSimpleCurrentLanguage")&&a.d(t,"getSimpleCurrentLanguage",(function(){return s.getSimpleCurrentLanguage})),a.d(t,"LANG",(function(){return r.b})),a.d(t,"LANG_CODE",(function(){return r.c})),a.d(t,"SimpleLangEnum",(function(){return r.d})),a.d(t,"StarlingLangEnum",(function(){return r.e})),a.d(t,"getApiLanguage",(function(){return i.a})),a.d(t,"getCurrentLanguage",(function(){return i.b})),a.d(t,"getLanguageInfo",(function(){return i.c})),a.d(t,"getSimpleCurrentLanguage",(function(){return i.d}));var c=Object(i.d)(),l=r.b[c]||r.b.en,d=(r.a[c]||r.a.en,e=>e===r.e.zh?a(1035).default:e===r.e.en?a(806).default:e===r.e.ja?a(1036).default:a(806).default);function u(e,t,a){try{var i=Object(n.a)(d(h()),e,null),s=null===i?Object(n.a)(d(r.g),e,null):i,c=null===s?"string"==typeof t?t:e:s,l="string"==typeof c?c:"";return function(e){return e.replace(/\{\{[\w ]+\}\}/g,"").replace(/\{[\w ]+\}/g,"")}("object"==typeof a&&a?p(l,a):"object"==typeof t&&t?p(l,t):l)}catch(e){return Object(o.d)("translationFailed",{template:"key",message:e.message}),""}}function p(e,t){var a=null,r=e;for(var i in t){var n=["{{".concat(i,"}}"),"{".concat(i,"}")];for(var o of n)for(;r.includes(o)&&r!==a;){var s=t[i];a=r,r=r.replace(o,"string"==typeof s?s:"number"==typeof s?"".concat(s):"")}}return r}var m=()=>c,h=()=>r.b[c]||r.b.en,b=()=>r.a[c]||r.a.en,g=()=>r.c[c]||r.c.en,v=()=>r.f[c]||r.f.en,j=r.h[l]||r.h["en-US"]},,,,,,,,function(e,t,a){"use strict";var r=a(222),i={info:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];r.a.addInfoLog(e,...a)},warn:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];r.a.addWarnLog(e,...a)},error:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];r.a.addErrorLog(e,...a)}};t.a=i},,function(e,t,a){"use strict";a.d(t,"a",(function(){return O})),a.d(t,"b",(function(){return _}));var r=a(28),i=a(39),n=a(20),o=Promise.race([new Promise((e=>{})),new Promise((e=>setTimeout(e,3e3)))]),s=null,c=()=>(s||(s=a(1034).default),s),l=r.i&&!i.c;if(i.c){var d,u=c();if(!(null==u||null===(d=u.types)||void 0===d?void 0:d.LaunchComplete))throw Error("注意,监测到 Tea 版本有了比较大的变动tea.types.LaunchComplete 不存在了,这很可能对 Tea 上报产生影响,请处理")}var p=!1,m=!1,h=!1,b=!1;if(l){var g={app_id:r.u?3578:1604,report_channel:r.u?"va":"cn",disable_storage:!1,max_batch_event:10};r.u||(g.channel_domain="https://mcs-bd.feishu.cn");var v=()=>{c().init(g),m=!0,Object(n.b)(f),setTimeout((()=>{f()}),5e3)};i.e?(h=!0,b=!0,v()):o.then((()=>{tt.__approvalInfo.shouldColdStartToTrusteeshipPage?setTimeout((()=>{c().init(g),m=!0,f()}),5e3):v()}))}var j=[];function O(e){l&&(m?Object(n.b)((()=>{c().config(e)})):e&&j.push(e))}function f(){if(!p&&(p=!0,l)){var e,t=c();b||(j.forEach((e=>{t.config(e)})),b=!0),h||(M.forEach((e=>{t.event(e.event,e.params)})),M.length=0,h=!0);var a=null==t||null===(e=t.types)||void 0===e?void 0:e.LaunchComplete;a&&t.emit(a),t.send()}}var M=[];function _(e,t){l&&(m?c().event(e,t):M.push({event:e,params:t}))}},function(e,t,a){"use strict";var r,i,n;a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n})),function(e){e.ADDRESS="address",e.AMOUNT_INPUT="amount",e.APPROVALER="al",e.ATTACHMENT="attachment",e.ATTACHMENT_V2="attachmentV2",e.CALCULATION_FORMULA="formula",e.CCER="cc",e.CONTACT="contact",e.DATE_INTERVAL="dateInterval",e.DATE_RANGE="dateRange",e.DATE_TIME="date",e.DEPARTMENT="department",e.DESC="text",e.DETAIL="fieldList",e.IMAGE="image",e.LEAVE_GROUP="leaveGroup",e.LEAVE_GROUP_V2="leaveGroupV2",e.MULTI_SELECT="checkbox",e.MULTI_SELECT_V2="checkboxV2",e.NUMBER_INPUT="number",e.CLOUD_DOC="document",e.CLOUD_DOC_BLOCK="documentBlock",e.OUT_GROUP="outGroup",e.RELATIVE_APPROVAL="connect",e.REMEDY_GROUP="remedyGroup",e.REMEDY_GROUP_V2="remedyGroupV2",e.SHIFT_GROUP="shiftGroup",e.SINGLE_INPUT="input",e.SINGLE_SELECT="radio",e.SINGLE_SELECT_V2="radioV2",e.TEXTAREA="textarea",e.TRIP_GROUP="tripGroup",e.WORK_GROUP="workGroup",e.WORK_GROUP_V2="workGroupV2",e.SIGN_GROUP="signGroup",e.JOB_ADJUST_GROUP="apaascorehrJobAdjustGroup",e.ON_BOARDING_GROUP="apaascorehrOnboardingGroup",e.REGULARATE_GROUP="apaascorehrRegularateGroup",e.OFF_BOARDING_GROUP="apaascorehrOffboardingGroup",e.RECEIVING_ACCOUNT="account",e.TELEPHONE="telephone",e.INSTEAD_SUBMIT="insteadSubmit",e.SERIAL_NUMBER="serialNumber",e.TEXT="text"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.EDIT=1]="EDIT",e[e.MODIFY=2]="MODIFY",e[e.BOTH=3]="BOTH"}(i||(i={})),function(e){e.CURRENT_VALUE="CURRENT_VALUE",e.OPTIONAL="OPTIONAL",e.NULL=""}(n||(n={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return p})),a.d(t,"d",(function(){return g})),a.d(t,"c",(function(){return v})),a.d(t,"b",(function(){return O}));var r=a(5),i=a(280),n=a(25),o=a(10),s=a(443),c=Symbol("CTX_ID"),l=Symbol("LAST_CTX"),d=Symbol("LAST_INNER_CTX"),u=Symbol("COMPONENT_ID_SET"),p={[c]:"ROOT",userStore:n.d};function m(e){return e[c]}var h=new Map([[m(p),p]]),b=new s.b({maxSize:64});function g(e){var t=h.get(e)||b.get(e);return t||o.a.warn("ctx is not exists",e),t}function v(e,t,a){if(t[l]===e&&t[d]&&m(t[d]))return m(t[d]);delete t[l],delete t[d];var n=Object(i.a)(),o=Object(r.a)(Object(r.a)(Object(r.a)({},e),t),{},{[c]:n});t[l]=e,t[d]=o,h.set(n,o);var s=a[u];return s||(a[u]=s=new Set),s.add(n),n}function j(e){var t=h.get(e);t&&(h.delete(e),b.set(e,t))}function O(e){var t=e[u];if(t)for(var a of t)j(a)}},,function(e,t,a){"use strict";var r=a(194);a.d(t,"g",(function(){return r.h})),a.d(t,"e",(function(){return r.d})),a.d(t,"b",(function(){return r.b})),a.d(t,"f",(function(){return r.f}));var i=a(214);a.d(t,"c",(function(){return i.b}));var n=a(389);a.d(t,"d",(function(){return n.c})),a.d(t,"a",(function(){return n.b}))},function(e,t,a){"use strict";var r,i,n,o,s,c,l,d;a.d(t,"f",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return n})),a.d(t,"e",(function(){return s})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return d})),function(e){e.ApprovalEnterInterface="approval_enter_interface",e.ApprovalListConditionChange="approval_list_condition_change",e.ApprovalClickCard="approval_click_card",e.ApprovalInitList="approval_init_list",e.ApprovalNavClick="approval_nav_click",e.ApprovalListFilterProcessStatus="approval_filter_process_status",e.ApprovalListSetAllRead="approval_set_all_read",e.ApprovalListFilterTime="approval_filter_time",e.ApprovalHeaderRefreshClick="approval_header_refresh_click",e.ApprovalHeaderCollapse="approval_header_collapse",e.ApprovalClick="approval_click",e.ApprovalCreateApproval="approval_create_approval",e.ApprovalDetailComment="approval_detail_Comment",e.ApprovalDetailCustomerService="approval_detail_customer_service",e.ApprovalDetailRefresh="approval_detail_refresh",e.ApprovalDetailOpenBrowser="approval_detail_open_browser",e.ApprovalDetailCopy="approval_detail_copy",e.ApprovalDetailRegulation="approval_detail_regulation",e.ApprovalCreateRecentlyClick="approval_create_recently",e.ApprovalDrawerViewDetail="approval_drawer_view_detail",e.ApprovalSearchClick="approval_search_click",e.ApprovalSearchNoneResult="approval_search_none_result",e.ApprovalInitListByTask="approval_init_list_by_task",e.ApprovalConvertUrl="approval_convert_url",e.ApprovalUserConfig="approval_user_config",e.ApprovalDoneSystem="approval_done_system",e.ApprovalUploadFile="approval_upload_file",e.ApprovalLeaderConfirmRemainTime="approval_leader_confirm_remain",e.ApprovalLeaderConfirmInfo="approval_leader_confirm_info",e.FgVersion="pc_fg_version",e.ApprovalConnectDrawer="approval_connect_drawer",e.ApprovalConnectCard="approval_connect_card",e.ApprovalListCountConflict="approval_list_count_conflict",e.ApprovalPcInitBadge="approval_pc_init_badge",e.ApprovalInitiatedClick="approval_initiated_click",e.ApprovalInitiatedClickDuration="approval_initiated_click_duration",e.ApprovalRouterParamError="approval_pc_router_param_error",e.ApprovalError="approval_error",e.ApprovalButtonClick="approval_button_click",e.ApprovalAwaitQueueStop="approval_await_queue_stop",e.ApprovalReportCacheHit="approval_iframe_report_cache_hit",e.ApprovalDetailSwitchTTI="approval_detail_switch_tti",e.ApprovalCreateTabClick="approval_create_tab_click",e.ApprovalCreatePv="approval_create_pv",e.ApprovalCreateSearchClick="approval_create_search_click",e.ApprovalCreateSearchResult="approval_create_search_result",e.ApprovalCreateNoneSearchResult="approval_search_none_result_submit",e.ApprovalCreateScene="approval_create_scene",e.ApprovalIsFgKeyEnable="approval_is_fg_key_enable",e.APProvalWidgetTypeCollect="approval_widget_type_collect",e.CloudDocsAddClick="mp_cloud_docs_add_click",e.CloudDocsRemoveClick="mp_cloud_docs_remove_click",e.CloudDocsPickUp="mp_cloud_docs_pick_up",e.CloudDocsOpenUp="mp_cloud_docs_open_up",e.CloudDocsWidgetUse="mp_cloud_docs_widget_use",e.CloudDocsBlockWidgetUse="mp_cloud_docs_block_widget_use",e.CloudDocsAddSourceDoc="mp_cloud_docs_add_source_doc",e.CloudDocsAddCopyDoc="mp_cloud_docs_add_copy_doc",e.CloudDocsCopyLink="mp_cloud_docs_copy_link",e.ApprovalCreateApprovalClick="pc_create_approval_btn_click",e.ApprovalEfficiencyPC="approval_efficiency_pc",e.ApprovalEfficiencyPCClick="approval_efficiency_pc_click",e.CommentDelete="comment_delete",e.CommentAtPerson="comment_at_person",e.ApprovalLeaveGroupSubmit="approval_leave_group_submit",e.SearchViewSubsApproval="view_subs_approval",e.SearchViewSubsSearchRange="view_subs_search_range",e.SearchViewSubsLeaderAction="leader_action",e.ApprovalTripGroupSubmit="approval_trip_group_submit",e.ApprovalCreateInstanceIncludeFormAccountPvUv="approval_create_instance_include_form_account_pv_uv",e.ApprovalCardAvatarClick="card_click_submit",e.mpGuideGoEditApprovalPvUv="mp_guide_go_edit_approval_pv_uv",e.ApprovalFinishAll="approval_finish_all",e.ApprovalFinishToEfficiency="approval_finish_to_efficiency",e.ApprovalFormUseInsteadSubmit="approval_form_use_instead_submit",e.ApprovalFormNoUseInsteadSubmit="approval_form_no_use_instead_submit",e.ApprovalDataExportTabClick="approval_data_export_tab_click",e.EnterDataManagement="enter_data_management",e.ApprovalDetailFormStatus="web_approval_detail_form_status",e.ApprovalDetailOperation="approval_detail_operation"}(r||(r={})),function(e){e.Sort="sort"}(i||(i={})),function(e){e[e.todo=0]="todo",e[e.done=1]="done",e[e.cc=2]="cc",e[e.create=3]="create",e[e.ceoTodo=4]="ceoTodo",e[e.ceoDone=5]="ceoDone"}(n||(n={})),function(e){e[e.new=0]="new",e[e.wait=1]="wait"}(o||(o={})),function(e){e.Detail="detail",e.Setting="settings_entry",e.Admin="admin-click",e.ApprovalID="approvalId",e.Search="search"}(s||(s={})),function(e){e[e.Yes=0]="Yes",e[e.No=1]="No"}(c||(c={})),function(e){e.Success="success",e.Failure="failure"}(l||(l={})),function(e){e[e.Yes=0]="Yes",e[e.No=1]="No"}(d||(d={}))},function(e,t,a){"use strict";a.d(t,"k",(function(){return r})),a.d(t,"d",(function(){return s})),a.d(t,"n",(function(){return c})),a.d(t,"f",(function(){return n})),a.d(t,"m",(function(){return o})),a.d(t,"g",(function(){return u})),a.d(t,"e",(function(){return l})),a.d(t,"t",(function(){return m})),a.d(t,"s",(function(){return h})),a.d(t,"v",(function(){return p})),a.d(t,"o",(function(){return f})),a.d(t,"i",(function(){return M})),a.d(t,"l",(function(){return _})),a.d(t,"a",(function(){return y})),a.d(t,"c",(function(){return D})),a.d(t,"b",(function(){return N})),a.d(t,"r",(function(){return g})),a.d(t,"q",(function(){return j})),a.d(t,"h",(function(){return A})),a.d(t,"p",(function(){return T})),a.d(t,"j",(function(){return I})),a.d(t,"u",(function(){return C})),a.d(t,"w",(function(){return x})),a.d(t,"x",(function(){return S}));var r,i=a(57);!function(e){e.DOC="DOC",e.DOCX="DOCX",e.PDF="PDF",e.PPT="PPT",e.PPTX="PPTX",e.XLS="XLS",e.XLSX="XLSX"}(r||(r={}));var n,o,s="_APPROVAL_TYPE_DELIMITER_",c=Symbol("NIL");(function(e){e[e.Unknown=0]="Unknown",e[e.DAY=1]="DAY",e[e.HALF_DAY=2]="HALF_DAY",e[e.HOUR=3]="HOUR"})(n||(n={})),function(e){e[e.DAY=1]="DAY",e[e.HALF_DAY=2]="HALF_DAY",e[e.HOUR=3]="HOUR",e[e.HALF_HOUR=4]="HALF_HOUR",e[e.MINUTE=5]="MINUTE"}(o||(o={}));var l,d,u={[n.DAY]:i.a.DATE,[n.HALF_DAY]:i.a.DATE_HALF,[n.HOUR]:i.a.DATE_AND_TIME};(function(e){e[e.NO_RULE=0]="NO_RULE",e[e.MANUAL=1]="MANUAL",e[e.LENGTH_OF_SERVICE=2]="LENGTH_OF_SERVICE",e[e.FIXED=3]="FIXED",e[e.BreastFeeding=8]="BreastFeeding"})(l||(l={})),function(e){e[e.WORKDAY=1]="WORKDAY",e[e.DAY=2]="DAY",e[e.MANUAL=3]="MANUAL"}(d||(d={}));var p,m=["ABCDE","FGHIJ","KLMNO","PQRST","UVWXYZ"],h="ABCDEFGHIJKLMNOPQRSTUVWXYZ#";!function(e){e[e.UPLOADING=0]="UPLOADING",e[e.UPLOADED=1]="UPLOADED",e[e.FAILED=2]="FAILED"}(p||(p={}));var b,g,v,j,O,f={BugVersion:"3.34.0",AvailableVersion:"3.36.0"},M=1,_="https://internal-api-approval.feishu.cn".replace("internal-api-approval","www"),y="".concat(_,"/approval/admin/approvalList"),D="".concat(_,"/approval/admin/approvalList?from=approval_mp_pc"),N={["ka31"]:"https://oa.work.sany.com.cn/approval/admin/approvalList",["kastaging"]:"https://oa.ka.statusfeishu.cn/approval/admin/approvalList",["crc"]:"https://www.crc.feishu.cn/approval/admin/approvalList",["mi"]:"https://www.mi.feishu.cn/approval/admin/approvalList",["kami"]:"https://oa.f.mioffice.cn/approval/admin/approvalList",["kap"]:"https://oa.fs.fei-shu.cn/approval/admin/approvalList",["kacrc"]:"https://oa.rwork.crc.com.cn/approval/admin/approvalList"};(function(e){e[e.ALL=0]="ALL",e[e.UNREAD=1]="UNREAD",e[e.READ=2]="READ"})(b||(b={})),function(e){e.Index="/pc-pages/index/index",e.TestDetail="/pc-pages/test-detail/index",e.CreateForm="/pc/pages/create-form/index",e.Setting="/pc-pages/setting/index",e.Approved="/pc/pages/approved/index",e.CC2Me="/pc/pages/cc-2-me/index",e.Requested="/pc/pages/requested/index",e.Delegation="/pc-pages/delegation/index",e.ProcessAnalysis="/pc-pages/process-analysis/index",e.AutoApproval="/pc-pages/auto-approval/index"}(g||(g={})),function(e){e.Mock="mock",e.Staging="staging",e.Boe="boe",e.Pre="pre",e.Online="online",e.Preoversea="preoversea",e.Oversea="oversea",e.PreForm="pre_form"}(v||(v={})),function(e){e.Local="local",e.Boe="boe",e.Pre="pre",e.Online="online",e.Oversea="oversea",e.PreOversea="preoversea"}(j||(j={})),function(e){e.OA="oa",e.Feishu="feishu"}(O||(O={}));var A={[v.Mock]:j.Boe,[v.Staging]:j.Boe,[v.Boe]:j.Boe,[v.Pre]:j.Pre,[v.Online]:j.Online,[v.Preoversea]:j.PreOversea,[v.Oversea]:j.Oversea,[v.PreForm]:j.Pre},T={[j.Oversea]:"https://oa.bytedance.com",[j.PreOversea]:"https://oa-pre.bytedance.com",[j.Online]:"https://oa.bytedance.com",[j.Pre]:"https://oa-pre.bytedance.com",[j.Boe]:"https://oa-boe.bytedance.net",[j.Local]:"http://localhost:8080"},I={[j.Oversea]:"https://www.larksuite.com",[j.PreOversea]:"https://www.larksuite-pre.com",[j.Online]:"https://www.feishu.cn",[j.Pre]:"https://www.feishu-pre.cn",[j.Boe]:"https://oa.feishu-boe.cn",[j.Local]:"http://localhost:8080"},C="https://bytedance.feishu.cn/docs/doccnwK36NDkLDgFEBQ6UcFnYxf",x="use_lark_session",S="1"},,function(e,t,a){"use strict";a.d(t,"i",(function(){return Ue})),a.d(t,"e",(function(){return Be})),a.d(t,"b",(function(){return Ge})),a.d(t,"g",(function(){return He})),a.d(t,"f",(function(){return qe})),a.d(t,"a",(function(){return Je})),a.d(t,"h",(function(){return at})),a.d(t,"c",(function(){return rt}));var r=a(5),i=a(6);function n(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t="azxcvbnmsdfghjklqwertyuiop0123456789",a="",r=0;r<e;r++){var i=Math.floor(36*Math.random());a+=t.charAt(i)}return a}function o(e){return e?"".concat(e,"-").concat(n()):n()}var s,c,l=o(o("1"));class d{constructor(e){Object(i.a)(this,"traceId",void 0),Object(i.a)(this,"biz_trace_id",void 0),Object(i.a)(this,"generateSpan",(()=>new d(this))),this.traceId=e?o(e.traceId):l,this.biz_trace_id=this.traceId}}!function(e){e[e.trace=1]="trace",e[e.normal=2]="normal",e[e.warn=3]="warn",e[e.error=4]="error",e[e.fatal=5]="fatal"}(s||(s={}));!function(e){e[e.trace=1]="trace",e[e.normal=2]="normal",e[e.warn=3]="warn",e[e.error=4]="error",e[e.fatal=5]="fatal"}(c||(c={}));var u="approval.cardlist",p="approval.detail",m="approval.operate",h="approval.submit",b="approval.login",g="approval.file",v="approval.ws",j="approval.common",O="approval.iframe",f="approval.print",M="approval.doc",_="approval.clipboard",y="approval.jssdk",D="approval.form",N="ea.common",A="approval.session",T="approval.internalNetWork",I="approval.badge",C="approval.storage",x="approval.task",S="approval.applink",w="approval.feelGood",L="approval.efficiency",E="approval.taskcenter",k="approval.card_format",z="approval.signature",R="approval.comment",P="approval.ttApis",U="approval.msgIframe",B="approval.cross_tenant_approval",F="approval.scene_track",Y="approval.third_party_create_page",Q="approval.old_widget",G="approval.network",W={storageManagerGet:{domain:"".concat(C,".jssdk"),code:1e4,level:c.trace,message:"jssdk_storage_manager_get success"},storageManagerGetSync:{domain:"".concat(C,".jssdk"),code:10001,level:c.trace,message:"jssdk_storage_manager_get_sync success"},storageManagerSet:{domain:"".concat(C,".jssdk"),code:10002,level:c.trace,message:"jssdk_storage_manager_set success"},storageManagerRemove:{domain:"".concat(C,".jssdk"),code:10004,level:c.trace,message:"jssdk_storage_manager_remove success"},storageManagerRemoveSync:{domain:"".concat(C,".jssdk"),code:12005,level:c.trace,message:"jssdk_storage_manager_remove_sync success"},storageManagerClear:{domain:"".concat(C,".jssdk"),code:12006,level:c.trace,message:"jssdk_storage_manager_clear success"},storageManagerClearSync:{domain:"".concat(C,".jssdk"),code:12007,level:c.trace,message:"jssdk_storage_manager_clear_sync success"},storageManagerStorageInfo:{domain:"".concat(C,".jssdk"),code:12008,level:c.trace,message:"jssdk_storage_manager_storage_info success"},storageManagerInit:{domain:"".concat(C,".jssdk"),code:12009,level:c.trace,message:"jssdk_storage_manager_init success"},storageManagerAddWhiteKey:{domain:"".concat(C,".jssdk"),code:12010,level:c.trace,message:"jssdk_storage_manager_add_white_key success"}},V={taskMangerAdd:{domain:"".concat(x,".jssdk"),code:11e3,level:c.trace,message:"jssdk_task_manager_add"},taskMangerExecuteNext:{domain:"".concat(x,".jssdk"),code:11001,level:c.trace,message:"jssdk_task_manager_execute_next"},taskMangerExecuteTask:{domain:"".concat(x,".jssdk"),code:11002,level:c.trace,message:"jssdk_task_manager_execute_task"},taskMangerRemove:{domain:"".concat(x,".jssdk"),code:11003,level:c.trace,message:"jssdk_task_manager_remove"}},H={sessionError:{domain:"".concat(A,".bussiness"),code:1e4,level:c.warn,message:"is_session_error"},sessionLogin:{domain:"".concat(A,".bussiness"),code:10001,level:c.normal,message:"session_login"}},Z={sendFirstRequest:{domain:"".concat(N,".request"),code:1e4,level:c.normal,message:"wait_request_start"}},q={translationFailed:{domain:"translationFailed",code:1e4,level:c.normal,message:"translation_failed"},userInfoUpdate:{domain:"userInfoUpdate",code:1e4,level:c.normal,message:"user_info_update"},loginLobsterStart:{domain:"".concat(b,".request"),code:1e4,level:c.normal,message:"login_lobster_start"},loginTTloginStart:{domain:"".concat(b,".jssdk"),code:10001,level:c.normal,message:"login_ttlogin_start"},loginCodeFromLocalstorage:{domain:"".concat(b,".bussiness"),code:10002,level:c.normal,message:"login_code_from_localstorage"},loginSuccess:{domain:"".concat(b,".bussiness"),code:10003,level:c.normal,message:"login_success"},loginError:{domain:"".concat(b,".bussiness"),code:10004,level:c.warn,message:"login_error"},loginChain:{domain:"".concat(b,".bussiness"),code:10005,level:c.warn,message:"login_lobster_login_chain"},loginGetUserInfoSuccess:{domain:"".concat(b,".bussiness"),code:10006,level:c.normal,message:"login_get_user_info_success"}},K={cardlistLoad:{domain:"".concat(u,".bussiness"),code:1e4,level:c.normal,message:"cardlist_load"},cardlistTypeLoad:{domain:"".concat(u,".bussiness"),code:10001,level:c.normal,message:"cardlist_type_load"},cardlistScrollToBottom:{domain:"".concat(u,".bussiness"),code:10002,level:c.normal,message:"cardlist_scroll_to_bottom"},cardlistFilterByType:{domain:"".concat(u,".bussiness"),code:10003,level:c.normal,message:"cardlist_filter_by_type"},cardlistFilterByKeyword:{domain:"".concat(u,".bussiness"),code:10004,level:c.normal,message:"cardlist_filter_by_keyword"},cardlistSortByTime:{domain:"".concat(u,".bussiness"),code:10005,level:c.normal,message:"cardlist_sort_by_time"},cardlistSortByRead:{domain:"".concat(u,".bussiness"),code:10006,level:c.normal,message:"cardlist_sort_by_read"},cardlistSortByStatus:{domain:"".concat(u,".bussiness"),code:10007,level:c.normal,message:"cardlist_sort_by_status"},cardlistQuickAgree:{domain:"".concat(u,".bussiness"),code:10008,level:c.normal,message:"cardlist_quick_agree"},cardlistQuickReject:{domain:"".concat(u,".bussiness"),code:10009,level:c.normal,message:"cardlist_quick_reject"},cardlistLoadFinish:{domain:"".concat(u,".bussiness"),code:10010,level:c.normal,message:"cardlist_load_finish"},cardlistTypeLoadFinish:{domain:"".concat(u,".bussiness"),code:10011,level:c.normal,message:"cardlist_type_load_finish"},cardlistTypeLoadFeStart:{domain:"".concat(u,".bussiness"),code:10012,level:c.normal,message:"cardlist_type_load_fe_start"},cardlistTypeLoadFeEnd:{domain:"".concat(u,".bussiness"),code:10013,level:c.normal,message:"cardlist_type_load_fe_end"},cardlistLoadFeStart:{domain:"".concat(u,".bussiness"),code:10014,level:c.normal,message:"cardlist_load_fe_start"},cardlistLoadFeEnd:{domain:"".concat(u,".bussiness"),code:10015,level:c.normal,message:"cardlist_load_fe_end"},cardListRequestError:{domain:"".concat(u,".bussiness"),code:10016,level:c.error,message:"cardlist_request_error"},cardListAddCard:{domain:"".concat(u,".bussiness"),code:10017,level:c.normal,message:"cardlist_add_card"},cardListDeleteCard:{domain:"".concat(u,".bussiness"),code:10018,level:c.normal,message:"cardlist_delete_card"},cardListNextCard:{domain:"".concat(u,".bussiness"),code:10019,level:c.normal,message:"cardlist_next_card"},cardListNextMenu:{domain:"".concat(u,".bussiness"),code:10020,level:c.normal,message:"cardlist_next_menu"},cardListClickCard:{domain:"".concat(u,".bussiness"),code:10021,level:c.normal,message:"cardlist_click_card"},cardListCountConflict:{domain:"".concat(u,".bussiness"),code:10022,level:c.error,message:"cardlist_count_conflict"},cardListRequestIgnore:{domain:"".concat(u,".bussiness"),code:10023,level:c.warn,message:"cardlist_request_ignore"},cardListRefreshStart:{domain:"".concat(u,".bussiness"),code:10024,level:c.normal,message:"cardlist_refresh_start"},cardlistQuickActionSuccess:{domain:"".concat(u,".bussiness"),code:10025,level:c.normal,message:"cardlist_quick_action_success"},cardlistQuickActionFail:{domain:"".concat(u,".bussiness"),code:10026,level:c.warn,message:"cardlist_quick_action_fail"},cardlistSenselessRefresh:{domain:"".concat(u,".bussiness"),code:10027,level:c.normal,message:"cardlist_senseless_refresh"},cardListAddIgnore:{domain:"".concat(u,".bussiness"),code:10028,level:c.warn,message:"cardlist_add_ignore"},cardListRenderInfo:{domain:"".concat(u,".bussiness"),code:10029,level:c.normal,message:"cardlist_render_info"},cardlistInconsistent:{domain:"".concat(u,".bussiness"),code:10030,level:c.error,message:"cardlist_inconsistent"},cardlistConsistent:{domain:"".concat(u,".bussiness"),code:10031,level:c.normal,message:"cardlist_consistent"},cardlistInconsistentCardAndGroupBadge:{domain:"".concat(u,".bussiness"),code:10032,level:c.warn,message:"cardlist_inconsistent_card_and_group_badge"},cardlistInconsistentCardAndMenu:{domain:"".concat(u,".bussiness"),code:10033,level:c.warn,message:"cardlist_inconsistent_card_and_menu"},cardlistInconsistentSubMenuAndAllMenuItem:{domain:"".concat(u,".bussiness"),code:10034,level:c.warn,message:"cardlist_inconsistent_sub_menu_and_all_menu_item"},cardlistInconsistentMenuAndBadge:{domain:"".concat(u,".bussiness"),code:10035,level:c.warn,message:"cardlist_inconsistent_menu_and_badge"},cardlistTaskNoPermission:{domain:"".concat(u,".bussiness"),code:10036,level:c.warn,message:"cardlist_task_no_permission"},cardlistCreateStore:{domain:"".concat(u,".bussiness"),code:10037,level:c.trace,message:"cardlist_create_store"},cardlistCreateContext:{domain:"".concat(u,".bussiness"),code:10038,level:c.trace,message:"cardlist_create_context"},cardlistDiscardContext:{domain:"".concat(u,".bussiness"),code:10039,level:c.warn,message:"cardlist_discard_context"},cardlistCoerceStart:{domain:"".concat(u,".bussiness"),code:10040,level:c.normal,message:"cardlist_coerce_start"},cardListMenuData:{domain:"".concat(u,".bussiness"),code:10041,level:c.normal,message:"cardlist_menu_data"},cardlistGetHeadHeight:{domain:"".concat(u,".bussiness"),code:10042,level:c.normal,message:"cardlist_get_custom_head_height"},cardlistDeleteIgnore:{domain:"".concat(u,".bussiness"),code:10043,level:c.normal,message:"cardlist_delete_ignore"},cardlistUpdateCard:{domain:"".concat(u,".bussiness"),code:10044,level:c.normal,message:"cardlist_update_card"},cardlistNextMenuIgnore:{domain:"".concat(u,".bussiness"),code:10045,level:c.normal,message:"cardlist_next_menu_ignore"},cardlistReadCopy:{domain:"".concat(u,".bussiness"),code:10046,level:c.normal,message:"cardlist_next_read_copy"}},J={detailInto:{domain:"".concat(p,".bussiness"),code:1e4,level:c.normal,message:"detail_into"},detailLeave:{domain:"".concat(p,".bussiness"),code:10001,level:c.normal,message:"detail_leave"},detailDataFromStorage:{domain:"".concat(p,".bussiness"),code:10002,level:c.normal,message:"detail_data_from_storage"},detailViewHistory:{domain:"".concat(p,".bussiness"),code:10003,level:c.normal,message:"detail_view_history"},detailLoadFinish:{domain:"".concat(p,".bussiness"),code:10004,level:c.normal,message:"detail_load_finish"},detailLoadFeStart:{domain:"".concat(p,".bussiness"),code:10005,level:c.normal,message:"detail_load_fe_start"},detailLoadFeEnd:{domain:"".concat(p,".bussiness"),code:10006,level:c.normal,message:"detail_load_fe_end"},detailPrintApproval:{domain:"".concat(p,".bussiness"),code:10007,level:c.normal,message:"detail_print_approval"},detailOnFinish:{domain:"".concat(p,".bussiness"),code:10008,level:c.normal,message:"detail_on_finish"},detailHandleAction:{domain:"".concat(p,".bussiness"),code:10009,level:c.normal,message:"detail_handle_action"},detailDevtoolsCommit:{domain:"".concat(p,".bussiness"),code:10010,level:c.normal,message:"detail_devtools_commit"},detailDevtoolsMsg:{domain:"".concat(p,".bussiness"),code:10011,level:c.normal,message:"detail_devtools_msg"},detailTaskError:{domain:"".concat(p,".bussiness"),code:10020,level:c.error,message:"detail_task_error"},detailAtAction:{domain:"".concat(p,".bussiness"),code:10030,level:c.normal,message:"detail_at_action"},detailLoadFailed:{domain:"".concat(p,".bussiness"),code:10031,level:c.error,message:"detail_load_failed"},detailFetchCommentFailed:{domain:"".concat(p,".bussiness"),code:10032,level:c.error,message:"detail_fetch_comment_failed"},MGetDetailPrefetch:{domain:"".concat(p,".bussiness"),code:10033,level:c.normal,message:"m_get_detail_prefetch"}},X={invokeTTprint:{domain:"".concat(m,".jssdk"),code:1e4,level:c.normal,message:"operate_invoke_ttprint"},invokeTTprintSuccess:{domain:"".concat(m,".jssdk"),code:10001,level:c.normal,message:"operate_invoke_ttprint_success"},invokeTTprintFail:{domain:"".concat(m,".jssdk"),code:10002,level:c.warn,message:"operate_invoke_ttprint_fail"},operateAgree:{domain:"".concat(m,".bussiness"),code:1e4,level:c.normal,message:"operate_agree"},operateReject:{domain:"".concat(m,".bussiness"),code:10001,level:c.normal,message:"operate_reject"},operateTransfer:{domain:"".concat(m,".bussiness"),code:10002,level:c.normal,message:"operate_transfer"},operateComment:{domain:"".concat(m,".bussiness"),code:10003,level:c.normal,message:"operate_comment"},operateCc:{domain:"".concat(m,".bussiness"),code:10004,level:c.normal,message:"operate_cc"},operateAddDeleteApproval:{domain:"".concat(m,".bussiness"),code:10005,level:c.normal,message:"operate_add_delete_approval"},operateRollback:{domain:"".concat(m,".bussiness"),code:10006,level:c.normal,message:"operate_rollback"},operatePrint:{domain:"".concat(m,".bussiness"),code:10007,level:c.normal,message:"operate_print"},operateMeet:{domain:"".concat(m,".bussiness"),code:10008,level:c.normal,message:"operate_meet"},operateWithdraw:{domain:"".concat(m,".bussiness"),code:10009,level:c.normal,message:"operate_withdraw"},operateSubmitAgain:{domain:"".concat(m,".bussiness"),code:10010,level:c.normal,message:"operate_submit_again"},operateUploadImage:{domain:"".concat(m,".bussiness"),code:10011,level:c.normal,message:"operate_upload_image"},operateUploadAttachment:{domain:"".concat(m,".bussiness"),code:10012,level:c.normal,message:"operate_upload_attachment"},operateOk:{domain:"".concat(m,".bussiness"),code:10013,level:c.normal,message:"operate_ok"},operateDataFromStorage:{domain:"".concat(m,".bussiness"),code:10014,level:c.normal,message:"operate_data_from_storage"},operateReminder:{domain:"".concat(m,".bussiness"),code:10015,level:c.normal,message:"operate_reminder"},operateShare:{domain:"".concat(m,".bussiness"),code:10016,level:c.normal,message:"operate_share"},operateSuccess:{domain:"".concat(m,".bussiness"),code:10017,level:c.normal,message:"operate_success"},operateFail:{domain:"".concat(m,".bussiness"),code:10018,level:c.warn,message:"operate_fail"},operateResubmit:{domain:"".concat(m,".bussiness"),code:10019,level:c.normal,message:"operate_resubmit"},operateModify:{domain:"".concat(m,".bussiness"),code:10020,level:c.normal,message:"operate_modify"},operateBatchProcess:{domain:"".concat(m,".bussiness"),code:10021,level:c.normal,message:"operate_batch_process"},operateAllowResubmit:{domain:"".concat(m,".bussiness"),code:10022,level:c.normal,message:"operate_allow_resubmit"},operateAgreeFail:{domain:"".concat(m,".bussiness"),code:10023,level:c.warn,message:"operate_agree_fail"},operateRejectFail:{domain:"".concat(m,".bussiness"),code:10024,level:c.warn,message:"operate_reject_fail"},operateDownload:{domain:"".concat(m,".bussiness"),code:10025,level:c.normal,message:"operate_download"},operateDownloadFail:{domain:"".concat(m,".bussiness"),code:10026,level:c.warn,message:"operate_download_fail"}},$={submitDefinitionSearch:{domain:"".concat(h,".bussiness"),code:10002,level:c.normal,message:"submit_definition_search"},submitDefinitionClick:{domain:"".concat(h,".bussiness"),code:10003,level:c.normal,message:"submit_definition_click"},submitFormValidate:{domain:"".concat(h,".bussiness"),code:10007,level:c.normal,message:"submit_form_validate"},submitFormValidateSuccess:{domain:"".concat(h,".bussiness"),code:10008,level:c.normal,message:"submit_form_validate_success"},submitFormValidateError:{domain:"".concat(h,".bussiness"),code:10009,level:c.normal,message:"submit_form_validate_error"},submitFormSubmit:{domain:"".concat(h,".bussiness"),code:10010,level:c.normal,message:"submit_form_submit"},submitFormLoadFinish:{domain:"".concat(h,".bussiness"),code:10011,level:c.normal,message:"submit_form_load_finish"},submitFormSuccess:{domain:"".concat(h,".bussiness"),code:10012,level:c.normal,message:"submit_form_success"},submitFormError:{domain:"".concat(h,".bussiness"),code:10013,level:c.warn,message:"submit_form_error"},submitFormLoadFeStart:{domain:"".concat(h,".bussiness"),code:10014,level:c.normal,message:"submit_form_load_fe_start"},submitFormLoadFeEnd:{domain:"".concat(h,".bussiness"),code:10015,level:c.normal,message:"submit_form_load_fe_end"},submitFormStart:{domain:"".concat(h,".bussiness"),code:10016,level:c.normal,message:"submit_form_start"},refreshAuthentication:{domain:"".concat(h,".bussiness"),code:10017,level:c.normal,message:"refresh_authentication"},submitPreviewSuccess:{domain:"".concat(h,".bussiness"),code:10018,level:c.normal,message:"submit_preview_success"},submitPreviewFail:{domain:"".concat(h,".bussiness"),code:10019,level:c.warn,message:"submit_preview_fail"},submitFormBeforeRequest:{domain:"".concat(h,".bussiness"),code:10020,level:c.normal,message:"submit_form_before_request"},submitFormFail:{domain:"".concat(h,".bussiness"),code:10021,level:c.normal,message:"submit_form_before_request"},signGroupSignatoryError:{domain:"".concat(h,".bussiness"),code:10022,level:c.warn,message:"sign_group_signatory_error"},submitFormLoadFailed:{domain:"".concat(h,".bussiness"),code:10023,level:c.error,message:"submit_form_load_failed"},submitFormItemEmpty:{domain:"".concat(h,".bussiness"),code:10024,level:c.warn,message:"submit_form_item_empty"},submitForAddrSearch:{domain:"".concat(h,".bussiness"),code:10025,level:c.warn,message:"submit_address_search"},submitClickTimeGap:{domain:"".concat(h,".bussiness"),code:10026,level:c.warn,message:"submit_click_time_gap"},submitWithoutApprover:{domain:"".concat(h,".bussiness"),code:10027,level:c.error,message:"submit_without_approver"},restoreApproverAndCcCache:{domain:"".concat(h,".bussiness"),code:10028,level:c.normal,message:"restore_approver_and_cc_cache"}},ee={createFormWithOldWidgetLoaded:{domain:"".concat(Q,".bussiness"),code:10001,level:c.normal,message:"create_form_loaded"},createFormWithOldWidgetSubmit:{domain:"".concat(Q,".bussiness"),code:10002,level:c.normal,message:"create_form_submit"},createFormWithOldWidgetSubmitSuccess:{domain:"".concat(Q,".bussiness"),code:10003,level:c.normal,message:"create_form_submit_success"}},te={submitLeaveLoadStart:{domain:"".concat(h,".bussiness"),code:10026,level:c.normal,message:"submit_leave_load_start"},submitLeaveLoadDone:{domain:"".concat(h,".bussiness"),code:10027,level:c.normal,message:"submit_leave_load_done"},submitLeaveLoadError:{domain:"".concat(h,".bussiness"),code:10028,level:c.error,message:"submit_leave_load_error"},submitLeaveGreyStart:{domain:"".concat(h,".bussiness"),code:10029,level:c.normal,message:"submit_leave_grey_start"},submitLeaveGreyDone:{domain:"".concat(h,".bussiness"),code:10030,level:c.normal,message:"submit_leave_grey_done"},submitLeaveGreyError:{domain:"".concat(h,".bussiness"),code:10031,level:c.error,message:"submit_leave_grey_error"},submitLeaveBalanceStart:{domain:"".concat(h,".bussiness"),code:10032,level:c.normal,message:"submit_leave_balance_start"},submitLeaveBalanceDone:{domain:"".concat(h,".bussiness"),code:10033,level:c.normal,message:"submit_leave_balance_done"},submitLeaveBalanceError:{domain:"".concat(h,".bussiness"),code:10034,level:c.error,message:"submit_leave_balance_error"},submitLeaveSealStart:{domain:"".concat(h,".bussiness"),code:10035,level:c.normal,message:"submit_leave_seal_start"},submitLeaveSealDone:{domain:"".concat(h,".bussiness"),code:10036,level:c.normal,message:"submit_leave_seal_done"},submitLeaveSealError:{domain:"".concat(h,".bussiness"),code:10037,level:c.error,message:"submit_leave_seal_error"},submitLeaveBalanceConflictStart:{domain:"".concat(h,".bussiness"),code:10038,level:c.normal,message:"submit_leave_balance_conflict_start"},submitLeaveBalanceConflictDone:{domain:"".concat(h,".bussiness"),code:10039,level:c.normal,message:"submit_leave_balance_conflict_done"},submitLeaveBalanceConflictError:{domain:"".concat(h,".bussiness"),code:10040,level:c.error,message:"submit_leave_balance_conflict_error"},submitLeaveCalculateStart:{domain:"".concat(h,".bussiness"),code:10041,level:c.normal,message:"submit_leave_calculate_start"},submitLeaveCalculateDone:{domain:"".concat(h,".bussiness"),code:10042,level:c.normal,message:"submit_leave_calculate_done"},submitLeaveCalculateError:{domain:"".concat(h,".bussiness"),code:10043,level:c.error,message:"submit_leave_calculate_error"},submitLeaveViewDuration:{domain:"".concat(h,".bussiness"),code:10044,level:c.normal,message:"submit_leave_view_duration"},submitLeaveFormValidateStart:{domain:"".concat(h,".bussiness"),code:10045,level:c.normal,message:"submit_leave_form_validate_start"},submitLeaveFormValidateDone:{domain:"".concat(h,".bussiness"),code:10046,level:c.normal,message:"submit_leave_form_validate_done"},submitLeaveFormValidateError:{domain:"".concat(h,".bussiness"),code:10047,level:c.error,message:"submit_leave_form_validate_error"}},ae={detailLeaveLoadStart:{domain:"".concat(p,".bussiness"),code:10012,level:c.normal,message:"detail_leave_load_start"},detailLeaveLoadDone:{domain:"".concat(p,".bussiness"),code:10013,level:c.normal,message:"detail_leave_load_done"},detailLeaveLoadError:{domain:"".concat(p,".bussiness"),code:10014,level:c.error,message:"detail_leave_load_error"},detailLeaveGreyStart:{domain:"".concat(p,".bussiness"),code:10015,level:c.normal,message:"detail_leave_grey_start"},detailLeaveGreyDone:{domain:"".concat(p,".bussiness"),code:10016,level:c.normal,message:"detail_leave_grey_done"},detailLeaveGreyError:{domain:"".concat(p,".bussiness"),code:10017,level:c.error,message:"detail_leave_grey_error"},detailLeaveDetailStart:{domain:"".concat(p,".bussiness"),code:10018,level:c.normal,message:"detail_leave_detial_start"},detailLeaveDetailDone:{domain:"".concat(p,".bussiness"),code:10019,level:c.normal,message:"detail_leave_detial_done"},detailLeaveDetailError:{domain:"".concat(p,".bussiness"),code:10020,level:c.error,message:"detail_leave_detial_error"},detailLeaveSealStart:{domain:"".concat(p,".bussiness"),code:10021,level:c.normal,message:"detail_leave_seal_start"},detailLeaveSealDone:{domain:"".concat(p,".bussiness"),code:10022,level:c.normal,message:"detail_leave_seal_done"},detailLeaveSealError:{domain:"".concat(p,".bussiness"),code:10023,level:c.error,message:"detail_leave_seal_error"},detailLeaveBalanceStart:{domain:"".concat(p,".bussiness"),code:10024,level:c.normal,message:"detail_leave_balance_start"},detailLeaveBalanceDone:{domain:"".concat(p,".bussiness"),code:10025,level:c.normal,message:"detail_leave_balance_done"},detailLeaveBalanceError:{domain:"".concat(p,".bussiness"),code:10026,level:c.error,message:"detail_leave_balance_error"}},re={fileBizUploadImg:{domain:"".concat(g,".bussiness"),code:1e4,level:c.normal,message:"file_biz_upload_img"},fileBizUploadAtt:{domain:"".concat(g,".bussiness"),code:10001,level:c.normal,message:"file_biz_upload_att"},fileTTupload:{domain:"".concat(g,".bussiness"),code:10002,level:c.normal,message:"file_ttupload"},fileBizDownload:{domain:"".concat(g,".bussiness"),code:10003,level:c.normal,message:"file_biz_download"},fileTTdownloadfile:{domain:"".concat(g,".bussiness"),code:10004,level:c.normal,message:"file_ttdownloadfile"},fileTTrenamefile:{domain:"".concat(g,".bussiness"),code:10005,level:c.normal,message:"file_ttrenamefile"},fileTTsavefiles:{domain:"".concat(g,".bussiness"),code:10006,level:c.normal,message:"file_ttsavefiles"},fileBizPreview:{domain:"".concat(g,".bussiness"),code:10007,level:c.normal,message:"file_biz_preview"},fileTTopendoc:{domain:"".concat(g,".bussiness"),code:10008,level:c.normal,message:"file_ttopendoc"},fileUploadImgSuccess:{domain:"".concat(g,".bussiness"),code:10009,level:c.normal,message:"file_upload_img_success"},fileUploadImgFail:{domain:"".concat(g,".bussiness"),code:10010,level:c.error,message:"file_upload_img_fail"},fileUploadAttSuccess:{domain:"".concat(g,".bussiness"),code:10011,level:c.normal,message:"file_upload_att_success"},fileUploadAttFail:{domain:"".concat(g,".bussiness"),code:10012,level:c.error,message:"file_upload_att_fail"},fileDownloadFail:{domain:"".concat(g,".bussiness"),code:10013,level:c.error,message:"file_download_fail"},filePreviewFail:{domain:"".concat(g,".bussiness"),code:10014,level:c.error,message:"file_preview_fail"},fileTTrenamefileSuccess:{domain:"".concat(g,".bussiness"),code:10015,level:c.normal,message:"file_ttrenamefile_success"},fileTTrenamefileFail:{domain:"".concat(g,".bussiness"),code:10016,level:c.error,message:"file_ttrenamefile_fail"},fileTTsavefilesSuccess:{domain:"".concat(g,".bussiness"),code:100017,level:c.normal,message:"file_ttsavefiles_success"},fileTTsavefilesFail:{domain:"".concat(g,".bussiness"),code:100018,level:c.error,message:"file_ttsavefiles_fail"},fileTTuploadAndRetrySuccess:{domain:"".concat(g,".bussiness"),code:10019,level:c.normal,message:"file_ttupload_and_retry_success"},fileTTuploadAndRetryFail:{domain:"".concat(g,".bussiness"),code:10020,level:c.error,message:"file_ttupload_and_retry_fail"},fileTTuploadSuccess:{domain:"".concat(g,".bussiness"),code:10021,level:c.normal,message:"file_ttupload_success"},fileTTuploadFail:{domain:"".concat(g,".bussiness"),code:10022,level:c.error,message:"file_ttupload_fail"},fileAbortUploadTaskSuccess:{domain:"".concat(g,".bussiness"),code:10023,level:c.normal,message:"file_abort_upload_task_success"},fileAbortUploadTaskFail:{domain:"".concat(g,".bussiness"),code:10024,level:c.error,message:"file_abort_upload_task_fail"},fileTTFilePicker:{domain:"".concat(g,".bussiness"),code:10025,level:c.normal,message:"file_tt_file_picker"},fileSupportDrive:{domain:"".concat(g,".bussiness"),code:10026,level:c.normal,message:"file_support_drive"},fileDriveFgEnable:{domain:"".concat(g,".bussiness"),code:10027,level:c.normal,message:"file_drive_fg_enable"},fileSaveFileFail:{domain:"".concat(g,".bussiness"),code:10028,level:c.error,message:"file_save_file_fail"}},ie={wsConnect:{domain:"".concat(v,".jssdk"),code:1e4,level:c.normal,message:"ws_connect"},wsOnOpen:{domain:"".concat(v,".jssdk"),code:10001,level:c.normal,message:"ws_on_open"},wsOnClose:{domain:"".concat(v,".jssdk"),code:10002,level:c.normal,message:"ws_on_close"},wsOnError:{domain:"".concat(v,".jssdk"),code:10003,level:c.error,message:"ws_on_error"},wsOnMsg:{domain:"".concat(v,".jssdk"),code:10004,level:c.normal,message:"ws_on_msg"},wsOnSuccess:{domain:"".concat(g,".jssdk"),code:10005,level:c.normal,message:"ws_on_success"},wsToken:{domain:"".concat(v,".bussiness"),code:1e4,level:c.normal,message:"ws_token"},wsTokenStorage:{domain:"".concat(v,".bussiness"),code:10001,level:c.normal,message:"ws_token_storage"},wsFlush:{domain:"".concat(v,".bussiness"),code:10002,level:c.normal,message:"ws_flush"},wsPingSuccess:{domain:"".concat(v,".bussiness"),code:10003,level:c.normal,message:"ws_ping_success"},wsPingFail:{domain:"".concat(v,".bussiness"),code:10004,level:c.error,message:"ws_ping_fail"},wsRetry:{domain:"".concat(v,".bussiness"),code:10005,level:c.normal,message:"ws_retry"},wsIgnore:{domain:"".concat(v,".bussiness"),code:10006,level:c.normal,message:"ws_ignore"},wsTodoAdd:{domain:"".concat(v,".bussiness"),code:10007,level:c.normal,message:"ws_todo_add"},wsTodoRemove:{domain:"".concat(v,".bussiness"),code:10008,level:c.normal,message:"ws_todo_remove"},wsCopyAdd:{domain:"".concat(v,".bussiness"),code:10009,level:c.normal,message:"ws_copy_add"},wsCopyRemove:{domain:"".concat(v,".bussiness"),code:10010,level:c.normal,message:"ws_copy_remove"},wsCopyRead:{domain:"".concat(v,".bussiness"),code:10011,level:c.normal,message:"ws_copy_read"},wsSubmitAdd:{domain:"".concat(v,".bussiness"),code:10012,level:c.normal,message:"ws_submit_add"},wsSubmitUpdate:{domain:"".concat(v,".bussiness"),code:10013,level:c.normal,message:"ws_submit_update"},wsCompleteAdd:{domain:"".concat(v,".bussiness"),code:10014,level:c.normal,message:"ws_complete_add"},wsCompleteRemove:{domain:"".concat(v,".bussiness"),code:10015,level:c.normal,message:"ws_complete_remove"},wsTodoRemoveIgnore:{domain:"".concat(v,".bussiness"),code:10016,level:c.normal,message:"ws_todo_remove_ignore"},wsCompleteRemoveForLocal:{domain:"".concat(v,".bussiness"),code:10017,level:c.normal,message:"ws_complete_remove_local"},wsNetworkChange:{domain:"".concat(v,".bussiness"),code:10018,level:c.normal,message:"ws_network_change"},wsExpired:{domain:"".concat(v,".jssdk"),code:10019,level:c.normal,message:"ws_expired"}},ne={commonReqSuccess:{domain:"".concat(j,".request"),code:1e4,level:c.normal,message:"common_req_success"},commonReqError:{domain:"".concat(j,".request"),code:10001,level:c.error,message:"common_req_error"},commonReqTimeout:{domain:"".concat(j,".request"),code:10002,level:c.error,message:"common_req_timeout"},commonReqStart:{domain:"".concat(j,".request"),code:10003,level:c.normal,message:"common_req_start"},commonReqSymbolLog:{domain:"".concat(j,".request"),code:10004,level:c.normal,message:"common_req_symbol_log"},commonReqSymbolAbort:{domain:"".concat(j,".request"),code:10005,level:c.normal,message:"common_req_symbol_abort"},commonReqSymbolClear:{domain:"".concat(j,".request"),code:10006,level:c.normal,message:"common_req_symbol_clear"},commonReqUnknownError:{domain:"".concat(j,".request"),code:10050,level:c.error,message:"common_req_unknown_error"},commonNetClose:{domain:"".concat(j,".jssdk"),code:1e4,level:c.normal,message:"common_net_close"},commonNetOpen:{domain:"".concat(j,".jssdk"),code:10001,level:c.normal,message:"common_net_open"},commonOpenSettingSuccess:{domain:"".concat(j,".jssdk"),code:10002,level:c.trace,message:"common_open_setting_success"},commonOpenSettingError:{domain:"".concat(j,".jssdk"),code:10003,level:c.warn,message:"common_open_setting_error"},commonLoadingTimeout:{domain:"".concat(j,".bussiness"),code:1e4,level:c.warn,message:"common_loading_timeout"},commonShowToast:{domain:"".concat(j,".bussiness"),code:10001,level:c.warn,message:"common_show_toast"},commonMainStart:{domain:"".concat(j,".bussiness"),code:10002,level:c.normal,message:"common_main_start"},commonMainRenderEnd:{domain:"".concat(j,".bussiness"),code:10003,level:c.normal,message:"common_main_render_end"},commonOnError:{domain:"".concat(j,".bussiness"),code:10004,level:c.error,message:"common_on_error"},commonApiInput:{domain:"".concat(j,".bussiness"),code:10005,level:c.normal,message:"common_api_input"},commonAppShow:{domain:"".concat(j,".bussiness"),code:10006,level:c.normal,message:"common_app_show"},commonAppHide:{domain:"".concat(j,".bussiness"),code:10007,level:c.normal,message:"common_app_hide"},commonPageShow:{domain:"".concat(j,".bussiness"),code:10008,level:c.normal,message:"common_page_show"},commonPageHide:{domain:"".concat(j,".bussiness"),code:10009,level:c.normal,message:"common_page_hide"},commonOnLaunch:{domain:"".concat(j,".bussiness"),code:10010,level:c.normal,message:"common_on_launch"},commonOnShow:{domain:"".concat(j,".bussiness"),code:10011,level:c.normal,message:"common_on_show"},commonLog:{domain:"".concat(j,".bussiness"),code:10012,level:c.normal,message:"common_log"},commonUseRouterError:{domain:"".concat(j,".bussiness"),code:10013,level:c.error,message:"common_use_router_error"},commonAppLaunch:{domain:"".concat(j,".bussiness"),code:10014,level:c.normal,message:"common_app_launch"},commonEnterPage:{domain:"".concat(j,".bussiness"),code:10015,level:c.normal,message:"common_enter_page"},commonLeavePage:{domain:"".concat(j,".bussiness"),code:10016,level:c.normal,message:"common_leave_page"},commonOnAppRoute:{domain:"".concat(j,".bussiness"),code:10017,level:c.normal,message:"common_on_app_route"},prefetchResult:{code:10037,domain:"".concat(j,".bussiness"),level:c.normal,message:"common_prefetch_result"},firstFetch:{code:10038,domain:"".concat(j,".bussiness"),level:c.normal,message:"common_first_fetch"},commonOpenSchemaError:{domain:"".concat(j,".bussiness"),code:10042,level:c.warn,message:"open_schema_url_error"},commonOperatingTimeReport:{domain:"".concat(j,".bussiness"),code:10043,level:c.normal,message:"operating_time_report"},launchSystemInfo:{domain:"".concat(j,".bussiness"),code:10044,level:c.normal,message:"launch_system_info"},commonErrorBoundary:{domain:"".concat(j,".bussiness"),code:10045,level:c.warn,message:"common_error_boundary"},setUserScalableSuccess:{domain:"".concat(j,".bussiness"),code:10046,level:c.normal,message:"set_user_scalable_success"},setUserScalableFailed:{domain:"".concat(j,".bussiness"),code:10047,level:c.warn,message:"set_user_scalable_failed"}},oe={iframeSwitchRouter:{domain:"".concat(O,".bussiness"),code:1e4,level:c.normal,message:"iframe_switch_router"},iframeReportCacheHit:{domain:"".concat(O,".bussiness"),code:10001,level:c.normal,message:"iframe_report_cache_hit"},iframeSendPreload:{domain:"".concat(O,".bussiness"),code:10002,level:c.normal,message:"iframe_send_preload"},iframeOnPreload:{domain:"".concat(O,".bussiness"),code:10003,level:c.normal,message:"iframe_on_preload"},iframeOnSwitch:{domain:"".concat(O,".bussiness"),code:10004,level:c.normal,message:"iframe_on_switch"},iframeLoadingTimeout:{domain:"".concat(O,".bussiness"),code:10005,level:c.warn,message:"iframe_loading_timeout"},iframeReportApproval:{domain:"".concat(O,".bussiness"),code:10006,level:c.normal,message:"iframe_report_approval"},iframeReportAction:{domain:"".concat(O,".bussiness"),code:10007,level:c.normal,message:"iframe_report_action"},iframeOfflineAssetsError:{domain:"".concat(O,".bussiness"),code:10008,level:c.error,message:"iframe_offline_assets_error"},iframeComponentReady:{domain:"".concat(O,".component"),code:10009,level:c.normal,message:"iframe_component_ready"},iframeLoadSuccess:{domain:"".concat(O,".component"),code:10010,level:c.normal,message:"iframe_load_success"},iframeLoadFail:{domain:"".concat(O,".component"),code:10011,level:c.error,message:"iframe_load_fail"},iframeWebPageLoadSuccess:{domain:"".concat(O,".component"),code:10012,level:c.normal,message:"iframe_web_page_load_success"},iframeWebPageLoadFail:{domain:"".concat(O,".component"),code:10013,level:c.error,message:"iframe_web_page_load_fail"},iframeHandleError:{domain:"".concat(O,".component"),code:10014,level:c.error,message:"iframe_handle_error"}},se={printInputParams:{domain:"".concat(f,".bussiness"),code:1e4,level:c.normal,message:"print_input_params"},printFormatWidgets:{domain:"".concat(f,".bussiness"),code:10001,level:c.normal,message:"print_format_widgets"}},ce={formPunchCheck:{domain:"".concat(D,".bussiness"),code:1e4,level:c.error,message:"form_punch_check"},addressChangeCountryWhenLoadProvince:{domain:"".concat(D,".bussiness"),code:10001,level:c.trace,message:"address_change_country_when_load_province"},leaveGroupTypeChange:{domain:"".concat(D,".bussiness"),code:10002,level:c.normal,message:"leave_group_type_change"},dateSelectClick:{domain:"".concat(D,".bussiness"),code:10003,level:c.normal,message:"data_select_click"},formComponentAttached:{domain:"".concat(D,".bussiness"),code:10004,level:c.normal,message:"form_component_attached"}},le={cloudDocOpenSuccess:{domain:"".concat(M,".bussiness"),code:1e4,level:c.trace,message:"cloud_doc_open_success"},cloudDocOpenError:{domain:"".concat(M,".bussiness"),code:10001,level:c.error,message:"cloud_doc_open_error"},cloudDocOpenTimeout:{code:10002,level:c.error,domain:"".concat(M,".bussiness"),message:"cloud_doc_open_timeout"},refreshTokenError:{code:10003,level:c.error,domain:"".concat(M,".bussiness"),message:"cloud_doc_refresh_token_error"},refreshTokenLogin:{code:10004,level:c.warn,domain:"".concat(M,".bussiness"),message:"cloud_doc_refresh_token_login"},cloudDocOpenStart:{domain:"".concat(M,".bussiness"),code:10005,level:c.normal,message:"cloud_doc_open_start"},cloudDocPreviewError:{domain:"".concat(M,".bussiness"),code:10006,level:c.error,message:"cloud_doc_preview_error"},cloudDocHeightBeats:{domain:"".concat(M,".bussiness"),code:10007,level:c.warn,message:"cloud_doc_height_beats"},cloudDocTitleEmpty:{domain:"".concat(M,".bussiness"),code:10008,level:c.warn,message:"cloud_doc_title_empty"},cloudDocCancelFail:{domain:"".concat(M,".bussiness"),code:10009,level:c.warn,message:"cloud_doc_cancel_fail"},cloudDocOpenFail:{domain:"".concat(M,".bussiness"),code:10010,level:c.warn,message:"cloud_doc_open_fail"}},de={clipboardSuccess:{domain:"".concat(_,".bussiness"),code:1e4,level:c.trace,message:"clipboard_success"},clipboardError:{domain:"".concat(_,".bussiness"),code:10001,level:c.warn,message:"clipboard_error"}},ue={jsSdkGetStorage:{domain:"".concat(y,".jssdk"),code:1e4,level:c.normal,message:"jssdk_get_storage"},jsSdkSetStorage:{domain:"".concat(y,".jssdk"),code:10001,level:c.normal,message:"jssdk_set_storage"},jsSdkRemoveStorage:{domain:"".concat(y,".jssdk"),code:10002,level:c.normal,message:"jssdk_remove_storage"},jsSdkStorageSize:{domain:"".concat(y,".jssdk"),code:10003,level:c.normal,message:"jssdk_storage_size"},jsSdkTTITaskError:{domain:"".concat(y,".jssdk"),code:10004,level:c.error,message:"jssdk_tti_task_error"},jsSdkLaunchTraceReport:{domain:"".concat(y,".jssdk"),code:10005,level:c.normal,message:"jssdk_launch_trace_report"},pageStatus:{domain:"".concat(y,".jssdk"),code:10006,level:c.normal,message:"jssdk_page_status"},detailPreHitStatus:{domain:"".concat(y,".jssdk"),code:10007,level:c.normal,message:"jssdk_detail_pre_hit_status"},performanceFormLoadTTi:{domain:"".concat(T,".bussiness"),code:10008,level:c.normal,message:"performance_form_load_tti"},performancePageLoadTTi:{domain:"".concat(j,".bussiness"),code:10009,level:c.normal,message:"performance_page_load_tti"},performanceApprovalFormNum:{domain:"".concat(T,".bussiness"),code:10010,level:c.normal,message:"performance_approval_form_num"},performanceSingleApprovalNum:{domain:"".concat(j,".bussiness"),code:10011,level:c.normal,message:"performance_single_approval_num"}},pe={internalStartPolling:{domain:"".concat(T,".bussiness"),code:1e4,level:c.normal,message:"internal_start_polling"},internalStopPolling:{domain:"".concat(T,".bussiness"),code:10001,level:c.normal,message:"internal_stop_polling"},internalReStartPolling:{domain:"".concat(T,".bussiness"),code:10002,level:c.normal,message:"internal_re_start_polling"}},me={badgeInitConfig:{domain:"".concat(I,".bussiness"),code:1e4,level:c.normal,message:"badge_init_config"},badgeAuthSetting:{domain:"".concat(I,".bussiness"),code:10001,level:c.normal,message:"badge_auth_setting"},badgeAuthorize:{domain:"".concat(I,".bussiness"),code:10002,level:c.normal,message:"badge_authorize"},badgeFail:{domain:"".concat(I,".bussiness"),code:10003,level:c.error,message:"badge_fail"},badgeUpdate:{domain:"".concat(I,".bussiness"),code:10004,level:c.normal,message:"badge_update"},badgeMatched:{domain:"".concat(I,".bussiness"),code:10005,level:c.normal,message:"badge_matched"},badgeUnmatched:{domain:"".concat(I,".bussiness"),code:10006,level:c.error,message:"badge_unmatched"},badgeReport:{domain:"".concat(I,".bussiness"),code:10007,level:c.normal,message:"badge_report"}},he={definitionNameStr:{domain:"".concat(S,".bussiness"),code:10010,level:c.normal,message:"definition_name_str"},definitionNameRet:{domain:"".concat(S,".bussiness"),code:10011,level:c.normal,message:"definition_name_ret"},definitionNameError:{domain:"".concat(S,".bussiness"),code:10019,level:c.error,message:"definition_name_error"}},be={accountDecryptBankBranchError:{domain:"".concat(S,".bussiness"),code:1e4,level:c.error,message:"account_decrypt_bank_branch_error"},accountDecryptBankAreaError:{domain:"".concat(S,".bussiness"),code:10001,level:c.error,message:"account_decrypt_bank_area_error"},accountParseBankNameError:{domain:"".concat(S,".bussiness"),code:10002,level:c.error,message:"account_parse_bank_name_error"}},ge={feelGoodInitSuccess:{domain:"".concat(w,".bussiness"),code:1e4,level:c.normal,message:"feel_good_init_success"},feelGoodIniFail:{domain:"".concat(w,".bussiness"),code:10001,level:c.error,message:"feel_good_init_fail"}},ve={efficiencyLoadFail:{domain:"".concat(L,".bussiness"),code:1e4,level:c.error,message:"efficiency_load_fail"}},je={taskCenterClearCache:{domain:"".concat(E,".bussiness"),code:1e4,level:c.normal,message:"task_center_clear_cache"},taskCenterPollingStopped:{domain:"".concat(E,".bussiness"),code:10001,level:c.normal,message:"task_center_polling_stopped"},taskCenterStartPulling:{domain:"".concat(E,".bussiness"),code:10002,level:c.normal,message:"task_center_start_pulling"},taskCenterStopPulling:{domain:"".concat(E,".bussiness"),code:10003,level:c.normal,message:"task_center_stop_pulling"},taskCenterCatchError:{domain:"".concat(E,".bussiness"),code:10004,level:c.error,message:"task_center_catch_error"},taskCenterOutOfSync:{domain:"".concat(E,".bussiness"),code:10005,level:c.normal,message:"task_center_out_of_sync"},taskCenterUpdateChange:{domain:"".concat(E,".bussiness"),code:10006,level:c.normal,message:"task_center_update_change"},taskCenterRequestAbort:{domain:"".concat(E,".bussiness"),code:10007,level:c.warn,message:"task_center_request_abort"}},Oe={cardParseLangValue:{domain:"".concat(k,".bussiness"),code:1e4,level:c.warn,message:"card_parse_lang_value"},cardParseUnknownValue:{domain:"".concat(k,".bussiness"),code:10001,level:c.warn,message:"card_parse_unknown_value"}},fe={signatureParams:{domain:"".concat(z,".bussiness"),code:1e4,level:c.normal,message:"signature_params"},initSignature:{domain:"".concat(z,".bussiness"),code:10001,level:c.normal,message:"init_signature"}},Me={commentAndExit:{domain:"".concat(R,".bussiness"),code:1e4,level:c.normal,message:"comment_and_exit"}},_e={openSchemaComplete:{domain:"".concat(P,".bussiness"),code:1e4,level:c.normal,message:"open_schema_complete"},openSchemaSuccess:{domain:"".concat(P,".bussiness"),code:10001,level:c.normal,message:"open_schema_success"},openSchemaFail:{domain:"".concat(P,".bussiness"),code:10002,level:c.warn,message:"open_schema_fail"},showToastComplete:{domain:"".concat(P,".bussiness"),code:10003,level:c.normal,message:"show_toast_complete"},showToastSuccess:{domain:"".concat(P,".bussiness"),code:10004,level:c.normal,message:"show_toast_succcess"},showToastFail:{domain:"".concat(P,".bussiness"),code:10005,level:c.warn,message:"show_toast_fail"},chooseContactComplete:{domain:"".concat(P,".bussiness"),code:10006,level:c.normal,message:"choose_contact_complete"},chooseContactSuccess:{domain:"".concat(P,".bussiness"),code:10007,level:c.normal,message:"choose_contact_success"},chooseContactFail:{domain:"".concat(P,".bussiness"),code:10008,level:c.warn,message:"choose_contact_fail"},getLaunchOptionsSyncComplete:{domain:"".concat(P,".bussiness"),code:10009,level:c.normal,message:"get_launch_options_sync_complete"},getLaunchOptionsSyncSuccess:{domain:"".concat(P,".bussiness"),code:10010,level:c.normal,message:"get_launch_options_sync_success"},getLaunchOptionsSyncFail:{domain:"".concat(P,".bussiness"),code:10011,level:c.warn,message:"get_launch_options_sync_fail"},enterChatComplete:{domain:"".concat(P,".bussiness"),code:10012,level:c.normal,message:"enter_chat_complete"},enterChatSuccess:{domain:"".concat(P,".bussiness"),code:10013,level:c.normal,message:"enter_chat_success"},enterChatFail:{domain:"".concat(P,".bussiness"),code:10014,level:c.warn,message:"enter_chat_fail"}},ye={channelReady:{domain:"".concat(U,".bussiness"),code:10001,level:c.normal,message:"channel_ready"},channelError:{domain:"".concat(U,".bussiness"),code:10002,level:c.error,message:"channel_error"},iframeLoad:{domain:"".concat(U,".bussiness"),code:10003,level:c.normal,message:"iframe_load"},iframeError:{domain:"".concat(U,".bussiness"),code:10004,level:c.error,message:"iframe_error"},messagerLogger:{domain:"".concat(U,".bussiness"),code:10005,level:c.normal,message:"messager_logger"},messagerTrace:{domain:"".concat(U,".bussiness"),code:10006,level:c.normal,message:"messager_trace"},messagerError:{domain:"".concat(U,".bussiness"),code:10007,level:c.error,message:"messager_error"}},De={addPreviewHasExternalFail:{domain:"".concat(B,".bussiness"),code:10001,level:c.warn,message:"cross_tenant_approval add preview hasExternal fail"}},Ne={sceneTrack:{domain:F,code:10009,level:c.normal,message:"scene_track"}},Ae={thirdPartyCreatePageLoadSuccess:{domain:Y,code:10010,level:c.normal,message:"third_party_create_page_load_success"},thirdPartyCreatePageLoadFail:{domain:Y,code:10011,level:c.error,message:"third_party_create_page_load_fail"}},Te={networkQualityChange:{domain:G,code:1e4,level:c.normal,message:"network_quality_change"}},Ie={updateBatchImportSheetMetaFailed:{domain:G,code:1e4,level:c.normal,message:"update_batch_import_sheet_meta_failed"}},Ce=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},q),K),J),X),$),te),ae),re),ie),ne),oe),se),le),de),ue),ce),Z),H),pe),W),V),me),he),be),ge),ve),je),Oe),fe),Me),_e),ye),De),Ne),Ae),ee),Te),Ie),xe=a(44),Se=a(10),we=a(67),Le=a(196),Ee=a(316);function ke(e,t){Object(Ee.a)()&&performance.mark(e,t)}var ze=a(217),Re=new class{constructor(e){var{uniqueGuaranteedTTI:t=!1,config:a={}}=e;if(Object(i.a)(this,"rootTrace",void 0),Object(i.a)(this,"_uniqueGuaranteedTTI",!1),Object(i.a)(this,"_isReportedTTI",!1),Object(i.a)(this,"_opManager",void 0),Object(i.a)(this,"_config",void 0),!tt)throw new Error("OPMonitor 需要在小程序环境中运行");this._config=a,this._uniqueGuaranteedTTI=t,this._opManager=tt.opmonitor?tt.opmonitor():null;var r=tt.getTraceInfo?tt.getTraceInfo():null;this.rootTrace=r||new d}getTrace(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e&&"function"==typeof e.generateSpan){var t=e.generateSpan();return t.biz_trace_id=t.traceId,t}var a=this.rootTrace;return a.biz_trace_id=a.traceId,a}reportTTI(e,t){var{_uniqueGuaranteedTTI:a,_isReportedTTI:r}=this;if((!a||!r)&&tt.reportAnalytics&&getCurrentPages){var i=getCurrentPages(),n=i[i.length-1];this._isReportedTTI=!0,tt.reportAnalytics("mp_page_tti",{timestamp:t||Date.now(),page_path:n?n.__route__:"",tags:e})}}opmonitiorReport(e,t,a){var{_opManager:r,_config:i}=this;a&&a.traceId&&(t.biz_trace_id=a.traceId);var n="string"==typeof e?i[e]:e;null==r||r.report("op_biz_event",n,t,a)}config(e){this._config=Object.assign(this._config,e)}setUniqueGuaranteedTTI(e){this._uniqueGuaranteedTTI=e}}({uniqueGuaranteedTTI:!0,config:Ce}),Pe=Re.getTrace();function Ue(){Pe=Re.getTrace()}function Be(){return Re.getTrace(Pe)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Be(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"info";Object(Ee.a)()&&Se.a[r]("opmonitiorReport: ".concat(e),t,a),Re.opmonitiorReport(e,t,a)}var Ye=!1,Qe=[];function Ge(e){Ye?e({status:Ye?"success":"fail"}):Qe.push(e)}function We(){for(var e of Qe)try{e({status:Ye?"success":"fail"})}catch(e){Se.a.info("jsSdkTTITaskError",e),Fe("jsSdkTTITaskError",Object(xe.a)(e))}Qe=[]}var Ve=0;function He(){Ve++,Se.a.info("noticeOpmonitorRouter",Ve),Ve>1&&We()}var Ze=!1;function qe(){Ze=!0,Se.a.info("noticeOpmonitorBack"),We()}var Ke={tags:[]};function Je(e){Ke=Object.assign(Ke,e)}function Xe(e,t){var a,r=t.useCacheTag&&(Ke.tags||t.defaultTags)||[];return a=Array.isArray(e)?e:[e],r.push(...a),r.join(",")}function $e(e){return e.timestamp?e.timestamp:e.useCacheTime?Ke.timestamp:void 0}function et(e){var{tags:t,timestamp:a,notDoTask:r}=e;ke("end-tti"),function(e,t,a){Object(Ee.a)()&&performance.measure(e,t,a)}("tti","start-tti","end-tti"),Object(we.a)("tti"),Re.reportTTI(t||"",a),Se.a.warn("上报tti成功了",t),!r&&We()}function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(ze.b)(e,t),Ye)We();else{var a=t.notDoTask||!1;if(Se.a.warn("准备上报tti",Ve),Ze||Ve>1)!a&&We();else{Ye=!0;var r=Xe(e,t),i={timestamp:$e(t),tags:r,notDoTask:a},n=t.type||"taro";"native"===n?et(i):"taro"===n&&(ke("start-tti"),Object(we.a)("before-reporttti"),Object(Le.d)().nextTick((()=>{et(i)})))}}}var rt=e=>function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return Fe(t,Object(r.a)(Object(r.a)({},a),{},{scope:e}),i,n)};t.d=Fe},function(e,t,a){"use strict";a.d(t,"k",(function(){return r})),a.d(t,"g",(function(){return A})),a.d(t,"f",(function(){return T})),a.d(t,"j",(function(){return N})),a.d(t,"h",(function(){return E})),a.d(t,"m",(function(){return k})),a.d(t,"d",(function(){return z})),a.d(t,"l",(function(){return I})),a.d(t,"i",(function(){return C})),a.d(t,"c",(function(){return x})),a.d(t,"e",(function(){return S})),a.d(t,"b",(function(){return w})),a.d(t,"a",(function(){return L}));var r,i=a(2),n=a(657),o=a.n(n),s=a(888),c=a.n(s),l=a(889),d=a.n(l),u=a(890),p=a.n(u),m=a(891),h=a.n(m),b=a(892),g=a.n(b),v=a(893),j=a.n(v),O=a(894),f=a.n(O),M=a(658),_=a.n(M),y=a(895),D=a.n(y);!function(e){e[e.CURRENT=-9999]="CURRENT",e[e.PREVIEW=-9998]="PREVIEW",e[e.ROLLBACK=-9997]="ROLLBACK",e[e.ADD_APPROVER=998]="ADD_APPROVER",e[e.DELETE_APPROVER=997]="DELETE_APPROVER",e[e.SEEK_ADVICE=996]="SEEK_ADVICE",e[e.CREATE=-1]="CREATE",e[e.DELETE=9999]="DELETE",e[e.CLEAR=9998]="CLEAR",e[e.TERMINATED=103]="TERMINATED",e[e.AGREE=1]="AGREE",e[e.REJECT=2]="REJECT",e[e.REDIRECT=3]="REDIRECT",e[e.WITHDRAW=4]="WITHDRAW",e[e.AUTO_PASS=6]="AUTO_PASS",e[e.CC=7]="CC",e[e.ICC=8]="ICC",e[e.COMMENT=9]="COMMENT",e[e.RED=-4444]="RED",e[e.CREATE_WITHDRAW=-5555]="CREATE_WITHDRAW",e[e.CREATE_MODIFY=-5554]="CREATE_MODIFY"}(r||(r={}));var N,A={[r.CREATE]:Object(i.t)("timeline.start_approval"),[r.AGREE]:Object(i.t)("timeline.pass"),[r.REJECT]:Object(i.t)("Detail.Rejected"),[r.ADD_APPROVER]:Object(i.t)("Detail.AddApprover"),[r.DELETE_APPROVER]:Object(i.t)("Detail.MinusApprover"),[r.CC]:Object(i.t)("timeline.cc_desc"),[r.CURRENT]:Object(i.t)("Detail.UnderReview"),[r.ROLLBACK]:Object(i.t)("Rollback.Rollback"),[r.WITHDRAW]:Object(i.t)("Detail.Recalled"),[r.AUTO_PASS]:Object(i.t)("Detail.Agreed"),[r.REDIRECT]:Object(i.t)("timeline.redirect_desc"),[r.DELETE]:Object(i.t)("Detail.Deleted"),[r.PREVIEW]:"",[r.CREATE_WITHDRAW]:Object(i.t)("Detail_SubmittedCanceling"),[r.COMMENT]:Object(i.t)("timeline.comment_desc"),[r.CREATE_MODIFY]:Object(i.t)("SubmitModify"),[r.TERMINATED]:Object(i.t)("approval-web_ExpiredNClosed_Desc")},T={[r.CREATE]:Object(i.t)("timeline.start_approval"),[r.AGREE]:Object(i.t)("timeline.pass"),[r.REJECT]:Object(i.t)("Detail.Rejected"),[r.ADD_APPROVER]:Object(i.t)("Detail.AddApprover"),[r.DELETE_APPROVER]:Object(i.t)("Detail.MinusApprover"),[r.CC]:Object(i.t)("Detail.Notify"),[r.CURRENT]:Object(i.t)("Detail.UnderReview"),[r.ROLLBACK]:Object(i.t)("Rollback.Rollback"),[r.WITHDRAW]:Object(i.t)("Detail.Recalled"),[r.AUTO_PASS]:Object(i.t)("Detail.Agreed"),[r.REDIRECT]:Object(i.t)("Detail.Redirected"),[r.DELETE]:Object(i.t)("Detail.Deleted"),[r.PREVIEW]:"",[r.CREATE_WITHDRAW]:Object(i.t)("Detail_SubmittedCanceling"),[r.COMMENT]:Object(i.t)("Detail.Comment"),[r.CREATE_MODIFY]:Object(i.t)("SubmitModify"),[r.TERMINATED]:Object(i.t)("list.approval_terminated")};!function(e){e[e.SINGLE_SIGN=0]="SINGLE_SIGN",e[e.OR_SIGN=1]="OR_SIGN",e[e.AND_SIGN=2]="AND_SIGN",e[e.SEQUENTIAL_SIGN=3]="SEQUENTIAL_SIGN",e[e.CC_START=4]="CC_START",e[e.CC_END=5]="CC_END",e[e.AUTO_PASS=6]="AUTO_PASS",e[e.AUTO_REJECT=7]="AUTO_REJECT",e[e.AUTO_ICC_PASS=8]="AUTO_ICC_PASS",e[e.EMPTY=9]="EMPTY",e[e.BREAK_POINT=10]="BREAK_POINT",e[e.START=66]="START",e[e.END=99]="END"}(N||(N={}));var I,C,x,S,w,L,E={[N.AND_SIGN]:Object(i.t)("Detail.AndSignHint"),[N.OR_SIGN]:Object(i.t)("Detail.OrSignHint")},k={[N.AND_SIGN]:Object(i.t)("Detail.AndSubmitHint"),[N.OR_SIGN]:Object(i.t)("Detail.OrSubmitHint")},z={CC:f.a,SYSTEM_AVATAR:"https://lf3-ea.bytetos.com/obj/cdn-static-resource/ee/approval-web/image/system.png",SYSTEM_AUTO_PASS_AVATAR:g(),SYSTEM_AUTO_REJECT_AVATAR:j(),IMAGE_MUTIMEMEBER:o(),IMAGE_ADMIN:c(),IMAGE_ADMIN_V2:d(),IMAGE_FLOW_END:p(),IMAGE_LINK:h(),IMAGE_DETAIL_APPROVER:_.a,IMAGE_DETAIL_TRANSACTOR:D.a};(function(e){e.BG_TEXT="hasBgText",e.MEMBER_LIST="memberList",e.NO_BG_TEXT="noBgText",e.COMMENT="comment",e.SIGNATURE="signature",e.CUSTOM_ELEMENT="customElement",e.SECOND_APPROVAL="secondApproval"})(I||(I={})),function(e){e[e.AUTO_PASS=1]="AUTO_PASS",e[e.LEAVE_JOB_REDIRECT=2]="LEAVE_JOB_REDIRECT",e[e.LEAVE_JOB_TL=3]="LEAVE_JOB_TL",e[e.LEAVE_JOB_ADMIN=4]="LEAVE_JOB_ADMIN",e[e.IS_STARTER_AUTO_PASS=5]="IS_STARTER_AUTO_PASS",e[e.IS_STARTER_REDIRECT_LEADER=6]="IS_STARTER_REDIRECT_LEADER",e[e.IS_STARTER_REDIRECT_ADMIN=7]="IS_STARTER_REDIRECT_ADMIN",e[e.IS_STARTER_REDIRECT_ADMIN_DISMISS=8]="IS_STARTER_REDIRECT_ADMIN_DISMISS",e[e.IS_STARTER_REDIRECT_LEADER_DISMISS=9]="IS_STARTER_REDIRECT_LEADER_DISMISS",e[e.FREE_CC=12]="FREE_CC",e[e.AUTO_APPROVAL=10]="AUTO_APPROVAL"}(C||(C={})),function(e){e[e.BEFORE=1]="BEFORE",e[e.AFTER=2]="AFTER",e[e.AND=3]="AND",e[e.DELETE=4]="DELETE",e[e.ROLLBACK=5]="ROLLBACK",e[e.ALL_ROLLBACK=6]="ALL_ROLLBACK",e[e.SEEK_ADVICE=7]="SEEK_ADVICE"}(x||(x={})),x.BEFORE,Object(i.t)("BeforeSigning"),x.AFTER,Object(i.t)("AfterSigning"),x.AND,Object(i.t)("CurrentSigning"),x.DELETE,Object(i.t)("PC.DelApproverCheckTitle"),x.ROLLBACK,Object(i.t)("Rollback.Rollback"),x.ALL_ROLLBACK,Object(i.t)("PC.Rollback_All"),x.SEEK_ADVICE,Object(i.t)("approval-mp_AskForOpinions_Tag"),function(e){e[e.AGREE=0]="AGREE",e[e.REJECT=1]="REJECT",e[e.PENDING=2]="PENDING",e[e.WITHDRAW=3]="WITHDRAW",e[e.DELETED=4]="DELETED",e[e.CLEARED=9]="CLEARED",e[e.TERMINATED=103]="TERMINATED"}(S||(S={})),function(e){e[e.Normal=0]="Normal",e[e.Agent=1]="Agent",e[e.Delegate=2]="Delegate"}(w||(w={})),function(e){e[e.Normal=0]="Normal",e[e.Agent=1]="Agent",e[e.Consign=2]="Consign",e[e.Manager=3]="Manager",e[e.InsteadSubmitter=4]="InsteadSubmitter"}(L||(L={}))},function(e,t,a){"use strict";var r,i,n,o;a.d(t,"a",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"e",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"g",(function(){return l})),a.d(t,"f",(function(){return d})),a.d(t,"b",(function(){return s})),a(198),function(e){e.Todo="todo",e.Done="done",e.Initiated="create",e.CarbonCopy="cc",e.Read="read",e.CeoTodo="ceoTodo",e.CeoDone="ceoDone",e.Shared="shared"}(r||(r={})),function(e){e.ReadListData="readListData",e.UnreadListData="unreadListData",e.ListData="listData"}(i||(i={})),function(e){e.FeiShu="feishu",e.OA="oa",e.external="external"}(n||(n={})),function(e){e.NoReadTop="noReadTop",e.NoReadBottom="noReadBottom",e.ReadError="readError",e.ReadBottomLoading="readBottomLoading",e.ReadTopLoading="readTopLoading",e.NoUnreadTop="noUnreadTop",e.NoUnreadBottom="noUnreadBottom",e.UnreadError="unreadError",e.UnreadBottomLoading="unreadBottomLoading",e.UnreadTopLoading="unreadTopLoading"}(o||(o={}));var s,c={"pc/pages/approved/index":r.Done,"pc/pages/cc-2-me/index":r.CarbonCopy,"pc/pages/requested/index":r.Initiated,"pc/pages/in-process/index":r.Todo},l=e=>{var t;return null!==(t=c[e])&&void 0!==t?t:r.Todo},d=["pc/pages/approved/index","pc/pages/cc-2-me/index","pc/pages/requested/index","pc/pages/in-process/index","pc-pages/index/index"];!function(e){e[e.ByFilter=1]="ByFilter",e[e.ByTask=2]="ByTask"}(s||(s={}))},function(e,t,a){"use strict";a.d(t,"c",(function(){return m})),a.d(t,"a",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"h",(function(){return n})),a.d(t,"f",(function(){return o})),a.d(t,"i",(function(){return s})),a.d(t,"e",(function(){return c})),a.d(t,"b",(function(){return u})),a.d(t,"g",(function(){return p}));var r,i,n,o,s,c,l,d,u,p,m="/api/v2/ListTask";(function(e){e[e.Forward=1]="Forward",e[e.Backward=2]="Backward"})(r||(r={})),function(e){e[e.Asc=1]="Asc",e[e.Desc=2]="Desc"}(i||(i={})),function(e){e[e.Todo=1]="Todo",e[e.Done=2]="Done",e[e.Unread=17]="Unread",e[e.Read=18]="Read",e[e.Processing=33]="Processing",e[e.Withdrawn=34]="Withdrawn",e[e.Deleted=255]="Deleted"}(n||(n={})),function(e){e[e.Running=1]="Running",e[e.Approved=2]="Approved",e[e.Rejected=3]="Rejected",e[e.Canceled=4]="Canceled",e[e.Terminated=5]="Terminated",e[e.Deleted=255]="Deleted",e[e.None=0]="None",e[e.AllStatus=100]="AllStatus",e[e.TaskTimeover=-1]="TaskTimeover",e[e.TimeoverClose=7]="TimeoverClose"}(o||(o={})),function(e){e[e.TodoApproval=1]="TodoApproval",e[e.DoneApproval=2]="DoneApproval",e[e.InitiatedApproval=3]="InitiatedApproval",e[e.UnreadNotice=17]="UnreadNotice",e[e.ReadNotice=18]="ReadNotice",e[e.Shared=33]="Shared",e[e.Frozen=254]="Frozen",e[e.Deleted=255]="Deleted"}(s||(s={})),function(e){e[e.Notice=1]="Notice"}(c||(c={})),function(e){e[e.Unknown=0]="Unknown",e[e.Man=1]="Man",e[e.Woman=2]="Woman"}(l||(l={})),function(e){e[e.Unknown=0]="Unknown",e[e.FullTime=1]="FullTime",e[e.Internship=2]="Internship",e[e.Outsourcing=3]="Outsourcing",e[e.Labor=4]="Labor",e[e.Consultant=5]="Consultant"}(d||(d={})),function(e){e[e.Normal=1]="Normal",e[e.Sidebar=2]="Sidebar",e[e.Browser=3]="Browser",e[e.Trusteeship=4]="Trusteeship"}(u||(u={})),function(e){e[e.Approve=1]="Approve",e[e.Notice=2]="Notice"}(p||(p={}))},function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return l}));var r=a(3),i=a(25),n=a(168),o=a(252),s={globalStore:i.d,indexStore:n.b,intranetStore:o.a},c=Object(r.createContext)(s),l=()=>Object(r.useContext)(c);t.a=c},function(e,t,a){"use strict";(function(e){a.d(t,"c",(function(){return G})),a.d(t,"a",(function(){return W})),a.d(t,"b",(function(){return he}));var r,i,n,o,s,c,l,d,u,p,m,h,b,g,v,j,O,f,M,_,y,D,N,A,T,I,C,x,S,w,L,E,k,z,R,P,U,B,F,Y,Q,G,W,V=a(5),H=a(9),Z=a(11),q=a(6),K=a(7),J=(a(56),a(54)),X=a(4),$=a(28),ee=a(75),te=a(840),ae=a(16),re=a(20),ie=a(50),ne=a(10),oe=a(516),se=a(331),ce=a(12),le=a(439),de=a(44),ue=a(196),pe=a(231),me=Object(re.c)("pc:src/stores/global.ts");(function(e){e.Done="done",e.Failed="failed",e.Pending="pending"})(G||(G={})),function(e){e[e.SuperManager=1]="SuperManager",e[e.ProcessManager=2]="ProcessManager",e[e.SubManager=3]="SubManager",e[e.GeneralUser=4]="GeneralUser"}(W||(W={}));var he=(r=class{constructor(){var e=this;Object(Z.a)(this,"userAttributes",i,this),Object(Z.a)(this,"changeUserAttributes",n,this),Object(Z.a)(this,"isFetchingUserAttributes",o,this),Object(Z.a)(this,"changeIsFetchingUserAttributes",s,this),Object(Z.a)(this,"defaultStatus",c,this),Object(Z.a)(this,"pagePath",l,this),Object(Z.a)(this,"changeDefaultStatus",d,this),Object(Z.a)(this,"setPagePath",u,this),Object(Z.a)(this,"getUserAttributes",p,this),Object(Z.a)(this,"setUserAttribute",m,this),Object(Z.a)(this,"currentUser",h,this),Object(Z.a)(this,"hasEmptyList",b,this),Object(Z.a)(this,"showBlank",g,this),Object(Z.a)(this,"userConfig",v,this),Object(Z.a)(this,"_hasSubordinates",j,this),Object(q.a)(this,"isReportDriveFgStatus",!1),Object(q.a)(this,"updateHasSubordinates",Object(H.a)((function*(){try{var{data:{HasSubOrdinate:t}}=yield ae.c.usersearchUsers({query:"",offset:0,pageSize:50,filterType:le.a.SubordinateAndNotLeft});e.setHasSubordinates(t)}catch(t){me("commonOnError",{msg:Object(de.a)(t),location:"src/pages/list-search/hooks/use-has-subordinates.ts",method:"checkHasSubordinates"}),e.setHasSubordinates(!1)}}))),Object(Z.a)(this,"setHasSubordinates",O,this),Object(Z.a)(this,"loginStatus",f,this),Object(Z.a)(this,"departmentList",M,this),Object(Z.a)(this,"userAccessToken",_,this),Object(q.a)(this,"isRunwork",!1),Object(q.a)(this,"mockLocation",null),Object(q.a)(this,"scene",0),Object(q.a)(this,"isCurrentTenant",(e=>!e||this.currentUser.tenantId===String(e))),Object(q.a)(this,"parseViewOtherTaskConfig",(()=>{var e,t,{[J.FG_VIEW_OTHER_TASKS]:a}=null!==(e=null===(t=this.userConfig)||void 0===t?void 0:t.config)&&void 0!==e?e:{},r={};try{r=JSON.parse((null==a?void 0:a.Value)||"{}")}catch(e){me("commonOnError",{msg:"fail to parse viewOtherTasksConfig: ".concat(JSON.stringify(e))})}return r[this.currentUser.userId]||{}})),Object(q.a)(this,"getManagerTypeFromUserInfo",(e=>{var{isTenantManager:t,isAdminManager:a,isProcessManager:r,isSubAdmin:i}=e||{};return t||a?W.SuperManager:r?W.ProcessManager:i?W.SubManager:W.GeneralUser})),Object(q.a)(this,"updateTeaConfigManagerType",(()=>{setTimeout((()=>{var e=this.getManagerTypeFromUserInfo(this.currentUser);Object(ce.a)({manager_type:e,evtParams:{manager_type:e}})}),1e3)})),Object(Z.a)(this,"setCurrentUser",y,this),Object(Z.a)(this,"setUserConfig",D,this),Object(Z.a)(this,"isLeader",N,this),Object(Z.a)(this,"appManagers",A,this),Object(Z.a)(this,"setIsLeader",T,this),Object(q.a)(this,"fetchUserDepartmentInfo",Object(X.k)(this._fetchUserDepartmentInfo)),Object(Z.a)(this,"setDepartmentInfo",I,this),Object(Z.a)(this,"handleCountTask",C,this),Object(Z.a)(this,"closeBlank",x,this),Object(Z.a)(this,"printPreviewModalVisible",S,this),Object(Z.a)(this,"customPrintIsvAuthorized",w,this),Object(Z.a)(this,"customPrintIsvInstalled",L,this),Object(Z.a)(this,"showCustomPrintGetAuthorizedModal",E,this),Object(Z.a)(this,"allowCustomPrintType",k,this),Object(Z.a)(this,"udLikeModalVisible",z,this),Object(Z.a)(this,"udLikeModalProps",R,this),Object(Z.a)(this,"openUDLikeModal",P,this),Object(Z.a)(this,"closeUDLikeModal",U,this),Object(q.a)(this,"getAuthorizedModalPromise",null),Object(Z.a)(this,"isSupportCustom",B,this),Object(Z.a)(this,"printHtml",F,this),Object(Z.a)(this,"isForeground",Y,this),Object(Z.a)(this,"setIsForeground",Q,this),ne.a.info("GlobalStore init"),Object(X.r)((()=>this.currentUser),(e=>Object(re.b)((()=>Object(se.a)(e)))))}static initializeUser(){return ie.a.getSync("user_info")||{userId:"",name:"",avatarUrl:"",tenantId:"",encryptedTenantId:"",encryptedUserId:"",isTenantManager:!1,isProcessManager:!1,isAdminManager:!1,isSubAdmin:!1,ugcApprovalId:"",ugcSwitch:oe.a.Close,hasExternalApproval:!1,openID:""}}get hasSubordinates(){return this.isSearchSubApproval&&this._hasSubordinates}get showUgcCreatorBtn(){var{ugcApprovalId:e,ugcSwitch:t}=this.currentUser;return Boolean(e&&t===oe.a.Open)}get FGConfig(){var e,t;return null!==(e=null===(t=this.userConfig)||void 0===t?void 0:t.config)&&void 0!==e?e:{}}get useTable(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_DETAIL_TABLE])||void 0===t?void 0:t.Enable)}get fixedDocSize(){var e,t,{Enable:a=!1,Value:r}=null!==(e=null===(t=this.FGConfig)||void 0===t?void 0:t[J.FG_FIXED_DOC_SIZE])&&void 0!==e?e:{},i=r?JSON.parse(r):{};return a&&i}get isNewCreateApproval(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_CREATE_APPROVAL])||void 0===t?void 0:t.Enable)}get isEnableUgcApproval(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_UGC_APPROVAL])||void 0===t?void 0:t.Enable)}get isAdminEfficiency(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ADMIN_EFFICIENCY])||void 0===t?void 0:t.Enable)}get isHiddenSource(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_DISPLAY_SOURCE])||void 0===t?void 0:t.Enable)}get enableCustomDevtools(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_CUSTOM_DEVTOOL])||void 0===t?void 0:t.Enable)}get enableQuicklyApproval(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_QUICKLY_APPROVAL])||void 0===t?void 0:t.Enable)}get isDelegationVisible(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_DELEGATION])||void 0===t?void 0:t.Enable)}get useSecondApproval(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_SECOND_APPROVAL])||void 0===t?void 0:t.Enable)}get isSearchSubApproval(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_SEARCH_SUB_APPROVAL])||void 0===t?void 0:t.Enable)}get isTripAddressV2(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_TRIP_ADDRESS_V2])||void 0===t?void 0:t.Enable)}get enableDocxSelect(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_DOCX])||void 0===t?void 0:t.Enable)}get enableStarterEditDoc(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_STARTER_EDIT_DOC])||void 0===t?void 0:t.Enable)}get enableAtFormEdit(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT])||void 0===t?void 0:t.Enable)}get enableAtFormEditP1(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT_P1])||void 0===t?void 0:t.Enable)}get enableAtFormEditTelephone(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT_TELEPHONE])||void 0===t?void 0:t.Enable)}get enableSelectExternalDataSearch(){var e,t;return Boolean((null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_SELECT_EXTERNAL_DATA_SEARCH])||void 0===t?void 0:t.Enable)||this.isBytedance)}get enableAtFormEditAddress(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT_ADDRESS])||void 0===t?void 0:t.Enable)}get enableAtFormEditP2(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT_P2])||void 0===t?void 0:t.Enable)}get enableAtFormEditWidgetGroups(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT_WIDGET_GROUPS])||void 0===t?void 0:t.Enable)}get enableAtFormEditFieldList(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT_FIELD_LIST])||void 0===t?void 0:t.Enable)}get enableAtFormEditFieldListMini(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_AT_FORM_EDIT_FIELD_LIST_MINI])||void 0===t?void 0:t.Enable)}get enhancedApprovalList(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENHANCED_APPROVAL_LIST])||void 0===t?void 0:t.Enable)}get enableTableBatchImport(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_TABLE_BATCH_IMPORT])||void 0===t?void 0:t.Enable)}get enableCheckCreatePrepareApi(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_CHECK_CREATE_PREPARE_API])||void 0===t?void 0:t.Enable)}get isSidebarDetailWhiteBg(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.SIDEBAR_DETAIL_WHITE_BG])||void 0===t?void 0:t.Enable)}get showDataExport(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_DATA_EXPORT])||void 0===t?void 0:t.Enable)}get showBitable(){var e,t,a,r;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_BITABLE])||void 0===t?void 0:t.Enable)||Boolean(null===(a=this.FGConfig)||void 0===a||null===(r=a[J.FG_BITABLE_CONNECTOR])||void 0===r?void 0:r.Enable)}get enableThirdPartyCreatePage(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_THIRD_PARTY_CREATE_PAGE])||void 0===t?void 0:t.Enable)}get fgBatchApprovalNext(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_BATCH_APPROVAL_NEXT])||void 0===t?void 0:t.Enable)}get fgGlobalBatchApproval(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_GLOBAL_BATCH_APPROVAL])||void 0===t?void 0:t.Enable)}get fgShowApprovalName(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_SHOW_APPROVAL_NAME])||void 0===t?void 0:t.Enable)}get fgDefinitionShare(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_DEFINITION_SHARE])||void 0===t?void 0:t.Enable)}get enableShowCrossTenant(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_COLLABORATION_TENANT_APPROVAL])||void 0===t?void 0:t.Enable)||this.isBytedance||this.isOnlineTestTenant}get enableChooseCrossTenant(){return Boolean(this.chooseCrossTenantConfig)||this.isBytedance||this.isOnlineTestTenant}get chooseCrossTenantConfig(){var e;if(this.isBytedance||this.isOnlineTestTenant)return{externalContact:!1,enableExternalSearch:!0,showRelatedOrganizations:!0,excludeOuterContact:!0};var{Enable:t,Value:a}=(null===(e=this.FGConfig)||void 0===e?void 0:e[J.FG_ENABLE_CHOOSE_CROSS_TENANT])||{};return t&&a?Object(ue.c)(a,{}).mp:void 0}get fgIsOpenSealAccount(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_OPEN_SEAL_ACCOUNT])||void 0===t?void 0:t.Enable)}get fgShowDetailOptionBtn(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_SHOW_DETAIL_OPTION_BTN])||void 0===t?void 0:t.Enable)}get fgUseCommentConfirm(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_USE_COMMENT_CONFIRM])||void 0===t?void 0:t.Enable)}get enableUserSelectCache(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_USER_SELECT_CACHE])||void 0===t?void 0:t.Enable)}get fgUseUncontrolledTextarea(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_USE_UNCONTROLLED_TEXTAREA])||void 0===t?void 0:t.Enable)}get fgEnablePCTeamEfficiencyProcessDiagnoseModule(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_PC_TEAM_EFFICIENCY_2])||void 0===t?void 0:t.Enable)}get enableGroupTimeCheck(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_GROUP_TIME_CHECK])||void 0===t?void 0:t.Enable)}get complexityThreshold(){var e,t=null===(e=this.FGConfig)||void 0===e?void 0:e[J.FG_COMPLEXITY_THRESHOLD];if(null!=t&&t.Enable)return t.Value}get enableAutoApprovalSetting(){var e,t;return this.isBytedance&&Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_AUTO_APPROVAL_SETTING])||void 0===t?void 0:t.Enable)}get enableDrive(){var e,t,a=Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_ENABLE_DRIVE])||void 0===t?void 0:t.Enable);return this.isReportDriveFgStatus||(me("fileDriveFgEnable",{isFgEnable:a}),this.isReportDriveFgStatus=!0),a&&Object(ee.g)()}get enableCurrencyApi(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_USE_CURRENCY_API])||void 0===t?void 0:t.Enable)}get isCustomizePrintEnable(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_CUSTOMIZE_PRINT])||void 0===t?void 0:t.Enable)}get fgLeaveGroupTimeZone(){var e,t;return Boolean(null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_LEAVE_GROUP_TIME_ZONE])||void 0===t?void 0:t.Enable)}get AppCenterToWindow(){return 1512===this.scene}get canShareDefinition(){return this.fgDefinitionShare}get inWindow(){return 1512===this.scene}get inWorkbench(){return 1001===this.scene}get inMainTab(){return"maintab"===$.g||te.a.includes(this.scene)}get isBytedance(){var{tenantId:e}=this.currentUser;return"1"===e||$.q&&"6722684931643801868"===e}get isOnlineTestTenant(){var{tenantId:e}=this.currentUser;return"6839667095471439873"===e}get isManager(){if(!this.currentUser||!this.currentUser.userId)return!1;var{isTenantManager:e,isAdminManager:t,isSubAdmin:a,isProcessManager:r}=this.currentUser;return e||t||a||r}get isYm(){var e,t,{[J.FG_VIEW_OTHER_TASKS]:a}=null!==(e=null===(t=this.userConfig)||void 0===t?void 0:t.config)&&void 0!==e?e:{};return Boolean(null==a?void 0:a.Enable)}get enableProcessAnalysis(){var e,t,{[J.FG_PROCESS_ANALYSIS]:a}=null!==(e=null===(t=this.userConfig)||void 0===t?void 0:t.config)&&void 0!==e?e:{};return Boolean(null==a?void 0:a.Enable)}get ceoUserId(){var{userId:e}=this.parseViewOtherTaskConfig();return e}get ceoEmployeeId(){var{employeeId:e}=this.parseViewOtherTaskConfig();return e}get ceoIsTest(){var{isTest:e}=this.parseViewOtherTaskConfig();return e}get userForActingAs(){return this.parseViewOtherTaskConfig()}get pullChangeInterval(){var e,t;return Number((null===(e=this.FGConfig)||void 0===e||null===(t=e[J.FG_PULL_CHANGE_INTERVAL])||void 0===t?void 0:t.Value)||3e3)}setData(e,t){this[e]=t}setAppManagers(e){this.appManagers=e}get fgNewSearchAPi(){var e,t,{[J.FG_NEW_SEARCH_API_KEY]:a}=null!==(e=null===(t=this.userConfig)||void 0===t?void 0:t.config)&&void 0!==e?e:{};return Boolean(null==a?void 0:a.Enable)}*_fetchUserDepartmentInfo(){var e=yield ae.c.useruserDepartmentInfo();this.setDepartmentInfo(e.data)}getDepartmentByDepartmentId(e){return this.departmentList&&0!==this.departmentList.length?this.departmentList.find((t=>t.departmentId===e)):null}isGTEGrayVersion(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;if(!this.userConfig)throw new Error("userConfig is null. login first");var{userConfig:{version:t}}=this;return null!=t&&t>=e}get userGuideVisibleKey(){var t,a,{BUILD_ENV:r="boe",ONBOARDING:i=0}=null!==(t=null===(a=e)||void 0===a?void 0:{GIT_SHORT:"03ea7a3",GIT_LONG:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",GIT_BRANCH:"release_train_2023-09-21_212295",GIT_MESSAGE:"Merge branch 'update-version/20230926' into 'release_train_2023-09-21_212295'\n\nfeat: [ticket] 托管火车占位 (train id 212295) [skipped]\n\nSee merge request ea/approval!4094",NODE_ENV:"production",BUILD_ENV:"online",BUILD_BASE_COMMIT_HASH:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",BUILD_BRANCH:"release_train_2023-09-21_212295",BUILD_VERSION:"1.0.0.1782"})&&void 0!==t?t:{};return"".concat(r,"_v").concat(i,"_user_guide_showed")}login(){ne.a.info("断网login")}setPrintModalVisible(e){this.printPreviewModalVisible=e}setCustomPrintIsvAuthorized(e){this.customPrintIsvAuthorized=e}setCustomPrintIsvInstalled(e){this.customPrintIsvInstalled=e}setAllowCustomPrintType(e){this.allowCustomPrintType=e}setShowCustomPrintGetAuthorizedModal(e){this.showCustomPrintGetAuthorizedModal=e}setIsSupportCustom(e){this.isSupportCustom=e}setPrintHtmlString(e){this.printHtml=e||null}},i=Object(K.a)(r.prototype,"userAttributes",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),n=Object(K.a)(r.prototype,"changeUserAttributes",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.userAttributes=e}}}),o=Object(K.a)(r.prototype,"isFetchingUserAttributes",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),s=Object(K.a)(r.prototype,"changeIsFetchingUserAttributes",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isFetchingUserAttributes=e}}}),c=Object(K.a)(r.prototype,"defaultStatus",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=Object(K.a)(r.prototype,"pagePath",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=Object(K.a)(r.prototype,"changeDefaultStatus",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{"pc/pages/create-form/index"===this.pagePath?this.defaultStatus=!0:this.defaultStatus=e}}}),u=Object(K.a)(r.prototype,"setPagePath",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.pagePath=e}}}),p=Object(K.a)(r.prototype,"getUserAttributes",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Object(H.a)((function*(){return!e.isFetchingUserAttributes||Object.keys(e.userAttributes).length||(e.changeIsFetchingUserAttributes(!0),yield ae.c.approvalattributesuserget().then((t=>{var{data:{data:a}}=t;e.changeUserAttributes(a),ne.a.info("======== getUserAttributes success",Object(V.a)({},e.userAttributes))})).catch((e=>{ne.a.error("======== getUserAttributes error",e)})).finally((()=>{e.changeIsFetchingUserAttributes(!1)}))),e.userAttributes}))}}),m=Object(K.a)(r.prototype,"setUserAttribute",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(H.a)((function*(t){yield ae.c.approvalattributesuserset(t).finally((()=>{e.changeUserAttributes(e.userAttributes=Object(V.a)(Object(V.a)({},e.userAttributes),t.data||{}))}))}));return function(e){return t.apply(this,arguments)}}()}}),h=Object(K.a)(r.prototype,"currentUser",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return he.initializeUser()}}),b=Object(K.a)(r.prototype,"hasEmptyList",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=Object(K.a)(r.prototype,"showBlank",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Boolean(ie.a.getSync("hasEmptyList"))}}),v=Object(K.a)(r.prototype,"userConfig",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ie.a.getSync("user_config")||{}}}),j=Object(K.a)(r.prototype,"_hasSubordinates",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(K.a)(r.prototype,"hasSubordinates",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"hasSubordinates"),r.prototype),O=Object(K.a)(r.prototype,"setHasSubordinates",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this._hasSubordinates=e}}}),Object(K.a)(r.prototype,"showUgcCreatorBtn",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"showUgcCreatorBtn"),r.prototype),Object(K.a)(r.prototype,"FGConfig",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"FGConfig"),r.prototype),Object(K.a)(r.prototype,"useTable",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"useTable"),r.prototype),Object(K.a)(r.prototype,"fixedDocSize",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fixedDocSize"),r.prototype),Object(K.a)(r.prototype,"isNewCreateApproval",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isNewCreateApproval"),r.prototype),Object(K.a)(r.prototype,"isEnableUgcApproval",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isEnableUgcApproval"),r.prototype),Object(K.a)(r.prototype,"isAdminEfficiency",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isAdminEfficiency"),r.prototype),Object(K.a)(r.prototype,"isHiddenSource",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isHiddenSource"),r.prototype),Object(K.a)(r.prototype,"enableCustomDevtools",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableCustomDevtools"),r.prototype),Object(K.a)(r.prototype,"enableQuicklyApproval",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableQuicklyApproval"),r.prototype),Object(K.a)(r.prototype,"isDelegationVisible",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isDelegationVisible"),r.prototype),Object(K.a)(r.prototype,"useSecondApproval",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"useSecondApproval"),r.prototype),Object(K.a)(r.prototype,"isSearchSubApproval",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isSearchSubApproval"),r.prototype),Object(K.a)(r.prototype,"isTripAddressV2",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isTripAddressV2"),r.prototype),Object(K.a)(r.prototype,"enableDocxSelect",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableDocxSelect"),r.prototype),Object(K.a)(r.prototype,"enableStarterEditDoc",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableStarterEditDoc"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEdit",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEdit"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEditP1",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEditP1"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEditTelephone",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEditTelephone"),r.prototype),Object(K.a)(r.prototype,"enableSelectExternalDataSearch",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableSelectExternalDataSearch"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEditAddress",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEditAddress"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEditP2",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEditP2"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEditWidgetGroups",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEditWidgetGroups"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEditFieldList",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEditFieldList"),r.prototype),Object(K.a)(r.prototype,"enableAtFormEditFieldListMini",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAtFormEditFieldListMini"),r.prototype),Object(K.a)(r.prototype,"enhancedApprovalList",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enhancedApprovalList"),r.prototype),Object(K.a)(r.prototype,"enableTableBatchImport",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableTableBatchImport"),r.prototype),Object(K.a)(r.prototype,"enableCheckCreatePrepareApi",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableCheckCreatePrepareApi"),r.prototype),Object(K.a)(r.prototype,"isSidebarDetailWhiteBg",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isSidebarDetailWhiteBg"),r.prototype),Object(K.a)(r.prototype,"showDataExport",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"showDataExport"),r.prototype),Object(K.a)(r.prototype,"showBitable",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"showBitable"),r.prototype),Object(K.a)(r.prototype,"enableThirdPartyCreatePage",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableThirdPartyCreatePage"),r.prototype),Object(K.a)(r.prototype,"fgGlobalBatchApproval",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgGlobalBatchApproval"),r.prototype),Object(K.a)(r.prototype,"fgShowApprovalName",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgShowApprovalName"),r.prototype),Object(K.a)(r.prototype,"fgDefinitionShare",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgDefinitionShare"),r.prototype),Object(K.a)(r.prototype,"enableShowCrossTenant",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableShowCrossTenant"),r.prototype),Object(K.a)(r.prototype,"enableChooseCrossTenant",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableChooseCrossTenant"),r.prototype),Object(K.a)(r.prototype,"chooseCrossTenantConfig",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"chooseCrossTenantConfig"),r.prototype),Object(K.a)(r.prototype,"fgIsOpenSealAccount",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgIsOpenSealAccount"),r.prototype),Object(K.a)(r.prototype,"fgShowDetailOptionBtn",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgShowDetailOptionBtn"),r.prototype),Object(K.a)(r.prototype,"fgUseCommentConfirm",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgUseCommentConfirm"),r.prototype),Object(K.a)(r.prototype,"enableUserSelectCache",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableUserSelectCache"),r.prototype),Object(K.a)(r.prototype,"fgUseUncontrolledTextarea",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgUseUncontrolledTextarea"),r.prototype),Object(K.a)(r.prototype,"enableGroupTimeCheck",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableGroupTimeCheck"),r.prototype),Object(K.a)(r.prototype,"complexityThreshold",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"complexityThreshold"),r.prototype),Object(K.a)(r.prototype,"enableAutoApprovalSetting",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableAutoApprovalSetting"),r.prototype),Object(K.a)(r.prototype,"enableDrive",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableDrive"),r.prototype),Object(K.a)(r.prototype,"enableCurrencyApi",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableCurrencyApi"),r.prototype),Object(K.a)(r.prototype,"isCustomizePrintEnable",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isCustomizePrintEnable"),r.prototype),Object(K.a)(r.prototype,"fgLeaveGroupTimeZone",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"fgLeaveGroupTimeZone"),r.prototype),f=Object(K.a)(r.prototype,"loginStatus",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return G.Pending}}),M=Object(K.a)(r.prototype,"departmentList",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=Object(K.a)(r.prototype,"userAccessToken",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(K.a)(r.prototype,"inWindow",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"inWindow"),r.prototype),Object(K.a)(r.prototype,"inWorkbench",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"inWorkbench"),r.prototype),Object(K.a)(r.prototype,"inMainTab",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"inMainTab"),r.prototype),Object(K.a)(r.prototype,"isBytedance",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isBytedance"),r.prototype),Object(K.a)(r.prototype,"isOnlineTestTenant",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isOnlineTestTenant"),r.prototype),Object(K.a)(r.prototype,"isManager",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isManager"),r.prototype),Object(K.a)(r.prototype,"isYm",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"isYm"),r.prototype),Object(K.a)(r.prototype,"enableProcessAnalysis",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"enableProcessAnalysis"),r.prototype),Object(K.a)(r.prototype,"ceoUserId",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"ceoUserId"),r.prototype),Object(K.a)(r.prototype,"ceoEmployeeId",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"ceoEmployeeId"),r.prototype),Object(K.a)(r.prototype,"ceoIsTest",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"ceoIsTest"),r.prototype),Object(K.a)(r.prototype,"userForActingAs",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"userForActingAs"),r.prototype),Object(K.a)(r.prototype,"pullChangeInterval",[X.h],Object.getOwnPropertyDescriptor(r.prototype,"pullChangeInterval"),r.prototype),Object(K.a)(r.prototype,"setData",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setData"),r.prototype),y=Object(K.a)(r.prototype,"setCurrentUser",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.currentUser=e,this.updateTeaConfigManagerType()}}}),D=Object(K.a)(r.prototype,"setUserConfig",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.userConfig=e}}}),N=Object(K.a)(r.prototype,"isLeader",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),A=Object(K.a)(r.prototype,"appManagers",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(K.a)(r.prototype,"setAppManagers",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setAppManagers"),r.prototype),T=Object(K.a)(r.prototype,"setIsLeader",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.isLeader=t?1:0}}}),I=Object(K.a)(r.prototype,"setDepartmentInfo",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{e&&(this.departmentList=e.departmentList.map((t=>({departmentId:String(t.departmentId),parentDepartmentId:String(t.parentDepartmentId),leaderUserId:String(t.leaderUserId),tenantId:String(t.tenantId),name:t.name,isMainDepartment:String(e.mainDepartmentId)===String(t.departmentId)}))))}}}),C=Object(K.a)(r.prototype,"handleCountTask",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{if(e&&e.BaseResp&&("number"!=typeof e.BaseResp.StatusCode||0===e.BaseResp.StatusCode)){var t=e.Pipelines.reduce(((e,t)=>e+t.Counts.length),0);this.hasEmptyList=0===t,ie.a.set("hasEmptyList",this.hasEmptyList)}}}}),x=Object(K.a)(r.prototype,"closeBlank",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showBlank=!1}}}),S=Object(K.a)(r.prototype,"printPreviewModalVisible",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(K.a)(r.prototype,"setPrintModalVisible",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setPrintModalVisible"),r.prototype),w=Object(K.a)(r.prototype,"customPrintIsvAuthorized",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(K.a)(r.prototype,"setCustomPrintIsvAuthorized",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setCustomPrintIsvAuthorized"),r.prototype),L=Object(K.a)(r.prototype,"customPrintIsvInstalled",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(K.a)(r.prototype,"setCustomPrintIsvInstalled",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setCustomPrintIsvInstalled"),r.prototype),E=Object(K.a)(r.prototype,"showCustomPrintGetAuthorizedModal",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=Object(K.a)(r.prototype,"allowCustomPrintType",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return pe.a.UNKNOWN}}),Object(K.a)(r.prototype,"setAllowCustomPrintType",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setAllowCustomPrintType"),r.prototype),Object(K.a)(r.prototype,"setShowCustomPrintGetAuthorizedModal",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setShowCustomPrintGetAuthorizedModal"),r.prototype),z=Object(K.a)(r.prototype,"udLikeModalVisible",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),R=Object(K.a)(r.prototype,"udLikeModalProps",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=Object(K.a)(r.prototype,"openUDLikeModal",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.udLikeModalProps=e,this.udLikeModalVisible=!0}}}),U=Object(K.a)(r.prototype,"closeUDLikeModal",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.udLikeModalVisible=!1,this.udLikeModalProps=null}}}),B=Object(K.a)(r.prototype,"isSupportCustom",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(K.a)(r.prototype,"setIsSupportCustom",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setIsSupportCustom"),r.prototype),F=Object(K.a)(r.prototype,"printHtml",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(K.a)(r.prototype,"setPrintHtmlString",[X.f],Object.getOwnPropertyDescriptor(r.prototype,"setPrintHtmlString"),r.prototype),Y=Object(K.a)(r.prototype,"isForeground",[X.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Q=Object(K.a)(r.prototype,"setIsForeground",[X.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isForeground=e}}}),r);t.d=new he}).call(this,a(425))},function(e,t,a){"use strict";a.d(t,"a",(function(){return C})),a.d(t,"m",(function(){return x})),a.d(t,"q",(function(){return S})),a.d(t,"p",(function(){return w})),a.d(t,"k",(function(){return L})),a.d(t,"i",(function(){return E})),a.d(t,"d",(function(){return k})),a.d(t,"o",(function(){return z})),a.d(t,"j",(function(){return P})),a.d(t,"b",(function(){return Y})),a.d(t,"e",(function(){return Q})),a.d(t,"g",(function(){return G})),a.d(t,"l",(function(){return W})),a.d(t,"f",(function(){return V})),a.d(t,"n",(function(){return H})),a.d(t,"u",(function(){return Z})),a.d(t,"t",(function(){return q})),a.d(t,"r",(function(){return K})),a.d(t,"c",(function(){return J})),a.d(t,"s",(function(){return X})),a.d(t,"h",(function(){return $}));var r,i=a(9),n=a(19),o=a.n(n),s=a(31),c=a.n(s),l=a(423),d=a(387),u=a(314),p=a(97),m=a(1465),h=a(853),b=a.n(h),g=a(47),v=a(57),j=a(33),O=a(443),f=a(2),M=a(12),_=a(10);!function(e){e.FgVersion="mp_fg_version",e.ApprovalInitBadge="approval_mb_init_badge",e.ApprovalWidgetTypeCollect="approval_widget_type_collect",e.ApprovalFirstFetch="approval_first_fetch",e.ApprovalFirstCache="approval_first_cache",e.ApprovalFormSubmitSerialNumberWidget="approval_form_submit_serial_number_widget"}(r||(r={}));var y=(e,t)=>t.startsWith("http://")||t.startsWith("https://")?t:"".concat(e).concat(t),D=a(13),N=a(24),A=a(446),T=a(20),I=Object(T.c)("pc: src/components/configurable-form/utils/util.ts"),C=1e3;function x(e,t){if(Object(l.a)(e))return String(e);if(Object(d.a)(e)){var a=e.trim();return a.length!==e.length&&I("commonLog",{message:"num value has empty char",originValue:e,trimValue:a,source:t}),a}return""}function S(e){return e.split(g.h)[0]}function w(e){return e.split(g.h)[1]||""}function L(e){return e.join(g.h)}function E(e){return e.map((e=>Array.from(e).filter((e=>","!==e)).join(""))).join(",")}function k(e,t){if(!e)return"";switch(t){case v.a.DATE:return e.format("YYYY-MM-DD");case v.a.DATE_AND_TIME:return e.format("YYYY-MM-DD HH:mm");case v.a.DATE_HALF:return"".concat(e.format("YYYY-MM-DD")," ").concat(Object(f.t)(v.c[e.hour()?v.b.AFTERNOON:v.b.MORNING]));default:return""}}function z(e,t,a){return e?{value:Number(e),text:t,timezoneOffset:a||new Date(Number(e)).getTimezoneOffset()}:null}var R=new O.b;function P(e){return U.apply(this,arguments)}function U(){return U=Object(i.a)((function*(e){var t=R.get(e);if(t)return t;var{data:a}=yield Object(j.l)(o.a.request({url:y("http://lf3-ea.bytetos.com",e)}));return R.set(e,a),a})),U.apply(this,arguments)}var B=864e5,F=B/2;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0,r=e.filter((e=>e.start&&e.end)).sort(((e,t)=>e.start-t.start)).map((e=>({start:e.start,end:e.end+(t?F:B)})));if(r.length){var i=r.reduce(((e,t)=>{if(e.length){var a=e.pop();if(a){var{start:r,end:i}=a,{start:n,end:o}=t;i>=n?e.push({start:Math.min(r,n),end:Math.max(i,o)}):e.push(a,t)}}else e.push(t);return e}),[]),n=i.reduce(((e,t)=>e+t.end-t.start),0);a=n/B}return a}function Q(e){return[c()(e[0]).valueOf(),c()(e[1]).valueOf()]}function G(e){var t=e.split(",").join("");return e.endsWith(".")&&(t=e.slice(0,-1)),t}function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,a=Number(G(e)).toFixed(t);return b.a.toMoney(a,{outSymbol:!1})}function V(e,t){var a;if("number"!=typeof Number(e))return Object(f.t)("approvalForm.fillNumber");var r=null===(a=e.split(".")[1])||void 0===a?void 0:a.length;return(void 0===r?0:r)<=t?null:Object(f.t)("form_widget_editor.amount.unit_options.max_support_warning",{n:t})}function H(e){var t=new RegExp("(.*)[\\(\\](.*)[\\)\\]$");if(t.test(e)){var[,a="",r=""]=t.exec(e)||[];return{label:a,unit:r}}return{label:e,unit:""}}function Z(e,t,a){var r=Object(u.a)(e),i=r.findIndex((e=>e.id===t[0])),n=t.map((e=>r.find((t=>t.id===e)))),o=n.every((e=>null==e?void 0:e.data.printable)),s=n.every((e=>null==e?void 0:e.data.isRestored));if(!o||!s)return r;n[2]&&Object(p.a)(n[2].data.value)&&(n[2].data.value=n[2].data.value.text,n[2].data.type=D.c.NUMBER_INPUT);var c={type:D.c.DATE_INTERVAL,id:"",data:{name:"DateInterval",printable:!0,isRestored:!0,children:n}},l=r.filter((e=>!t.includes(e.id))),d=l.findIndex((e=>e.id===a));return l.splice(a?d+1:i,0,c),l}var q=e=>{var t,a;e.widgets.find((e=>e.type===D.c.SERIAL_NUMBER))&&Object(M.b)(r.ApprovalFormSubmitSerialNumberWidget,{definition_id:null===(t=e.definitionInfo)||void 0===t?void 0:t.approvalId,definition_name:null===(a=e.definitionInfo)||void 0===a?void 0:a.approvalName,platform:"pc"})},K=e=>{var t=e=>e.filter((e=>{var t;return e.type===D.c.DETAIL||e.type===D.c.TELEPHONE&&(null===(t=e.data.value)||void 0===t?void 0:t.nationalNumber)})).map((e=>e.type===D.c.DETAIL?t(e.data.groups[0].widgets):e.data.availableType));try{var a=Object(m.a)(t(e)),r=[...new Set(a)].join(",");if(!r)return;Object(M.b)("approval_phone_widget",{platform:"pc",phone_type:r})}catch(e){_.a.error("tracePhoneType error",e)}},J=(e,t)=>{var a;return!(!e.data.externalDataLinkage||e.data.externalDataSearchable||!e.data.writable||(null===N.b||void 0===N.b||null===(a=N.b.indexStore)||void 0===a||!a.isTodoNav)&&t.instanceInfo)},X=e=>{try{var t=!1,a=0;e.forEach((e=>{var{type:r,data:i}=e;r===D.c.RELATIVE_APPROVAL?(a+=i.value.instanceIds.length,t||(t=i.instances.some((e=>{var t;return Boolean(null===(t=i.relativeFormIds[e.definitionID])||void 0===t?void 0:t.length)})))):r===D.c.DETAIL&&i.groups.forEach((e=>{e.widgets.forEach((e=>{e.type===D.c.RELATIVE_APPROVAL&&(a+=e.data.value.instanceIds.length)}))}))})),A.a.submit({amount:a,isSenior:t})}catch(e){_.a.error("trace relative-approval error",e)}},$=(e,t)=>{var a=e.some((e=>e.type===t));return a||e.forEach((e=>{var{data:r}=e;e.type===D.c.DETAIL&&(null==r||r.groups.forEach((e=>{e.widgets.some((e=>e.type===t))&&(a=!0)})))})),a}},,function(e,t,a){"use strict";a.d(t,"d",(function(){return s})),a.d(t,"j",(function(){return c})),a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return d})),a.d(t,"l",(function(){return u})),a.d(t,"e",(function(){return p})),a.d(t,"p",(function(){return m})),a.d(t,"r",(function(){return h})),a.d(t,"m",(function(){return b})),a.d(t,"q",(function(){return g})),a.d(t,"u",(function(){return v})),a.d(t,"o",(function(){return j})),a.d(t,"i",(function(){return O})),a.d(t,"t",(function(){return f})),a.d(t,"s",(function(){return M})),a.d(t,"f",(function(){return _})),a.d(t,"g",(function(){return y})),a.d(t,"h",(function(){return D})),a.d(t,"n",(function(){return N})),a.d(t,"v",(function(){return A})),a.d(t,"w",(function(){return T})),a.d(t,"k",(function(){return I})),a.d(t,"b",(function(){return C}));var r="pre",i="online",n="preoversea",o="oversea",s="pc",c="online",l="online",d="production",u="https://internal-api-approval.feishu.cn",p="cli_9cb844403dbb9108",m=l===i,h=l===i||l===o,b=new RegExp("".concat("boe"),"gi").test(l),g=l===r||l===n||"pre_form"===l,v=l===o||l===n,j="ka"==={GIT_SHORT:"03ea7a3",GIT_LONG:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",GIT_BRANCH:"release_train_2023-09-21_212295",GIT_MESSAGE:"Merge branch 'update-version/20230926' into 'release_train_2023-09-21_212295'\n\nfeat: [ticket] 托管火车占位 (train id 212295) [skipped]\n\nSee merge request ea/approval!4094",NODE_ENV:"production",BUILD_ENV:"online",BUILD_BASE_COMMIT_HASH:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",BUILD_BRANCH:"release_train_2023-09-21_212295",BUILD_VERSION:"1.0.0.1782"}.KA_ENV,O=[r,i,n,o].includes(l),f=[r,i,n,o].includes("online"),M=["mock","staging"].includes(l),_=v?"larksuite.com":"feishu.cn",y="pc",D="mobile"===y,N="development"===d,A="https://accounts.feishu.cn",T="119",I={appId:p,host:u,env:c,basePath:"/approval/web"},C=v?"lark":"feishu"},function(e,t,a){"use strict";var r,i,n,o,s,c,l,d,u,p,m,h,b,g,v,j,O;a.d(t,"g",(function(){return r})),a.d(t,"a",(function(){return n})),a.d(t,"i",(function(){return o})),a.d(t,"c",(function(){return s})),a.d(t,"m",(function(){return c})),a.d(t,"o",(function(){return d})),a.d(t,"h",(function(){return u})),a.d(t,"n",(function(){return p})),a.d(t,"e",(function(){return m})),a.d(t,"d",(function(){return h})),a.d(t,"l",(function(){return b})),a.d(t,"f",(function(){return g})),a.d(t,"b",(function(){return v})),a.d(t,"k",(function(){return j})),a.d(t,"j",(function(){return O})),function(e){e.CURRENT_VALUE="CURRENT_VALUE",e.OPTIONAL="OPTIONAL",e.NULL=""}(r||(r={})),function(e){e.form="FORM",e.list="LIST"}(i||(i={})),function(e){e[e.All=0]="All",e[e.Roles=1]="Roles",e[e.Users=2]="Users"}(n||(n={})),function(e){e.ALL="ALL",e.RELATED="RELATED"}(o||(o={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.ATTENDANCE=1]="ATTENDANCE"}(s||(s={})),function(e){e[e.SpecifyRollback=0]="SpecifyRollback",e[e.ContinuousRollback=1]="ContinuousRollback"}(c||(c={})),function(e){e[e.SINGLE_SIGN=0]="SINGLE_SIGN",e[e.OR_SIGN=1]="OR_SIGN",e[e.AND_SIGN=2]="AND_SIGN",e[e.SEQUENTIAL_SIGN=3]="SEQUENTIAL_SIGN",e[e.CC_START=4]="CC_START",e[e.CC_END=5]="CC_END",e[e.AUTO_PASS=6]="AUTO_PASS",e[e.AUTO_REJECT=7]="AUTO_REJECT",e[e.AUTO_ICC_PASS=8]="AUTO_ICC_PASS",e[e.EMPTY=9]="EMPTY",e[e.BREAK_POINT=10]="BREAK_POINT"}(l||(l={})),function(e){e[e.Normal=0]="Normal",e[e.Or=1]="Or",e[e.And=2]="And"}(d||(d={})),function(e){e.IMG="image",e.ATTACH="attachment",e.DRIVE_ATTACH="drive_attachment"}(u||(u={})),function(e){e[e.BEFORE=1]="BEFORE",e[e.AFTER=2]="AFTER",e[e.AND=3]="AND",e[e.NG_ROLLBACK=5]="NG_ROLLBACK",e[e.FORWARD=10]="FORWARD",e[e.NG_INSTEAD_CREATE_ROLLBACK=13]="NG_INSTEAD_CREATE_ROLLBACK"}(p||(p={})),function(e){e.AND="AND",e.COMPARE="COMPARE",e.OR="OR"}(m||(m={})),function(e){e.EGT="egt",e.ELT="elt",e.EQ="eq",e.GT="gt",e.IS="is",e.LT="lt",e.NOT="not"}(h||(h={})),function(e){e[e.IS_FREE=1]="IS_FREE",e[e.IS_NOT_FREE=0]="IS_NOT_FREE"}(b||(b={})),function(e){e.NORMAL="normal",e.RAPID="rapid"}(g||(g={})),function(e){e[e.FREE_APPROVER=0]="FREE_APPROVER",e[e.FREE_CCER=1]="FREE_CCER",e[e.FLOW_NODE_APPROVER=2]="FLOW_NODE_APPROVER",e[e.FLOW_NODE_CCER=3]="FLOW_NODE_CCER"}(v||(v={})),function(e){e[e.START=1]="START",e[e.END=2]="END",e[e.APPROVAL=3]="APPROVAL",e[e.DATEWAY=4]="DATEWAY",e[e.CC=5]="CC",e[e.TRANSACT=6]="TRANSACT"}(j||(j={})),function(e){e.SetOptions="SetOptions"}(O||(O={}))},function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"e",(function(){return i})),a.d(t,"c",(function(){return f})),a.d(t,"d",(function(){return A})),a.d(t,"a",(function(){return T}));var r,i,n=a(78),o=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="add-approver-wrapper" transform="translate(-479.000000, -26.000000)">\n <g id="add-approver" transform="translate(478.000000, 25.000000)">\n <g id="add-approver-group">\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M7.33333333,1.66666667 C7.51742825,1.66666667 7.66666667,1.81590508 7.66666667,2 L7.66666667,2.66666667 C7.66666667,2.85076158 7.51742825,3 7.33333333,3 L3,3 L3,13 L13,13 L13,8.66666667 C13,8.48257175 13.1492384,8.33333333 13.3333333,8.33333333 L14,8.33333333 C14.1840949,8.33333333 14.3333333,8.48257175 14.3333333,8.66666667 L14.3333333,14 C14.3333333,14.1840949 14.1840949,14.3333333 14,14.3333333 L2,14.3333333 C1.81590508,14.3333333 1.66666667,14.1840949 1.66666667,14 L1.66666667,2 C1.66666667,1.81590508 1.81590508,1.66666667 2,1.66666667 L7.33333333,1.66666667 Z M11.6666667,1.66666667 C11.8507616,1.66666667 12,1.81590508 12,2 L12,3.99966667 L14,4 C14.1840949,4 14.3333333,4.14923842 14.3333333,4.33333333 L14.3333333,5 C14.3333333,5.18409492 14.1840949,5.33333333 14,5.33333333 L11.9996667,5.333 L12,7.33333333 C12,7.51742825 11.8507616,7.66666667 11.6666667,7.66666667 L11,7.66666667 C10.8159051,7.66666667 10.6666667,7.51742825 10.6666667,7.33333333 L10.6663333,5.333 L8.66666667,5.33333333 C8.48257175,5.33333333 8.33333333,5.18409492 8.33333333,5 L8.33333333,4.33333333 C8.33333333,4.14923842 8.48257175,4 8.66666667,4 L10.6666667,3.99966667 L10.6666667,2 C10.6666667,1.81590508 10.8159051,1.66666667 11,1.66666667 L11.6666667,1.66666667 Z" id="add" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),s=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="comment-wrapper" transform="translate(-592.000000, -26.000000)">\n <g id="comment" transform="translate(591.000000, 25.000000)">\n <g>\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M14,1.66666667 C14.3681898,1.66666667 14.6666667,1.9651435 14.6666667,2.33333333 L14.6666667,11.6666667 C14.6666667,12.0348565 14.3681898,12.3333333 14,12.3333333 L10.6666667,12.3333333 L8.47140452,14.5285955 C8.21105499,14.788945 7.78894501,14.788945 7.52859548,14.5285955 L5.33333333,12.3333333 L2,12.3333333 C1.63181017,12.3333333 1.33333333,12.0348565 1.33333333,11.6666667 L1.33333333,2.33333333 C1.33333333,1.9651435 1.63181017,1.66666667 2,1.66666667 L14,1.66666667 Z M13.3333333,3 L2.66666667,3 L2.66666667,11 L5.88561808,11 L8,13.1143819 L10.1143819,11 L13.3333333,11 L13.3333333,3 Z M8.33333333,7.66666667 L8.33333333,9 L4.33333333,9 L4.33333333,7.66666667 L8.33333333,7.66666667 Z M11,5 L11,6.33333333 L4.33333333,6.33333333 L4.33333333,5 L11,5 Z" id="Combined-Shape" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),c=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="del-approver-wrapper" transform="translate(-438.000000, -26.000000)">\n <g id="del-approver" transform="translate(437.000000, 25.000000)">\n <g id="del-approver-group">\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M7.33333333,1.66666667 C7.51742825,1.66666667 7.66666667,1.81590508 7.66666667,2 L7.66666667,2.66666667 C7.66666667,2.85076158 7.51742825,3 7.33333333,3 L3,3 L3,13 L13,13 L13,8.66666667 C13,8.48257175 13.1492384,8.33333333 13.3333333,8.33333333 L14,8.33333333 C14.1840949,8.33333333 14.3333333,8.48257175 14.3333333,8.66666667 L14.3333333,14 C14.3333333,14.1840949 14.1840949,14.3333333 14,14.3333333 L2,14.3333333 C1.81590508,14.3333333 1.66666667,14.1840949 1.66666667,14 L1.66666667,2 C1.66666667,1.81590508 1.81590508,1.66666667 2,1.66666667 L7.33333333,1.66666667 Z M14,4 C14.1840949,4 14.3333333,4.14923842 14.3333333,4.33333333 L14.3333333,5 C14.3333333,5.18409492 14.1840949,5.33333333 14,5.33333333 L8.66666667,5.33333333 C8.48257175,5.33333333 8.33333333,5.18409492 8.33333333,5 L8.33333333,4.33333333 C8.33333333,4.14923842 8.48257175,4 8.66666667,4 L14,4 Z" id="del" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),l=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="more-wrapper" transform="translate(-155.000000, -26.000000)">\n <g id="more" transform="translate(154.000000, 25.000000)">\n <g>\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M6.66666667,8.66666667 C7.0348565,8.66666667 7.33333333,8.9651435 7.33333333,9.33333333 L7.33333333,13.6666667 C7.33333333,14.0348565 7.0348565,14.3333333 6.66666667,14.3333333 L2.33333333,14.3333333 C1.9651435,14.3333333 1.66666667,14.0348565 1.66666667,13.6666667 L1.66666667,9.33333333 C1.66666667,8.9651435 1.9651435,8.66666667 2.33333333,8.66666667 L6.66666667,8.66666667 Z M13.6666667,8.66666667 C14.0348565,8.66666667 14.3333333,8.9651435 14.3333333,9.33333333 L14.3333333,13.6666667 C14.3333333,14.0348565 14.0348565,14.3333333 13.6666667,14.3333333 L9.33333333,14.3333333 C8.9651435,14.3333333 8.66666667,14.0348565 8.66666667,13.6666667 L8.66666667,9.33333333 C8.66666667,8.9651435 8.9651435,8.66666667 9.33333333,8.66666667 L13.6666667,8.66666667 Z M6,10 L3,10 L3,13 L6,13 L6,10 Z M13,10 L10,10 L10,13 L13,13 L13,10 Z M6.66666667,1.66666667 C7.0348565,1.66666667 7.33333333,1.9651435 7.33333333,2.33333333 L7.33333333,6.66666667 C7.33333333,7.0348565 7.0348565,7.33333333 6.66666667,7.33333333 L2.33333333,7.33333333 C1.9651435,7.33333333 1.66666667,7.0348565 1.66666667,6.66666667 L1.66666667,2.33333333 C1.66666667,1.9651435 1.9651435,1.66666667 2.33333333,1.66666667 L6.66666667,1.66666667 Z M13.6666667,1.66666667 C14.0348565,1.66666667 14.3333333,1.9651435 14.3333333,2.33333333 L14.3333333,6.66666667 C14.3333333,7.0348565 14.0348565,7.33333333 13.6666667,7.33333333 L9.33333333,7.33333333 C8.9651435,7.33333333 8.66666667,7.0348565 8.66666667,6.66666667 L8.66666667,2.33333333 C8.66666667,1.9651435 8.9651435,1.66666667 9.33333333,1.66666667 L13.6666667,1.66666667 Z M6,3 L3,3 L3,6 L6,6 L6,3 Z M13,3 L10,3 L10,6 L13,6 L13,3 Z" id="Combined-Shape" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),d=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="13px" viewBox="0 0 14 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="recall-wrapper" transform="translate(-330.000000, -26.000000)">\n <g id="recall" transform="translate(329.000000, 25.000000)">\n <g id="icon_recall">\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M3.91911977,4.66666667 L10.3333333,4.66666667 C12.9106622,4.66666667 15,6.7560045 15,9.33333333 C15,11.9106622 12.9106622,14 10.3333333,14 L7.4238669,14 C7.23977198,14 7.09053357,13.8507616 7.09053357,13.6666667 L7.09053357,13.0132944 C7.09053357,12.8291995 7.23977198,12.679961 7.4238669,12.679961 L10.1767759,12.679961 C11.4654403,12.679961 13.5101092,11.3462175 13.5101092,9.33333333 C13.5101092,7.32044914 11.4654403,6 10.1767759,6 L3.91911977,6 L5.84517797,7.9260582 C5.97535273,8.05623296 5.97535273,8.26728795 5.84517797,8.39746272 L5.37377345,8.86886724 C5.24359868,8.999042 5.03254369,8.999042 4.90236893,8.86886724 L1.83823954,5.80473785 C1.70806478,5.67456309 1.6429774,5.50394821 1.6429774,5.33333333 C1.6429774,5.16271845 1.70806478,4.99210358 1.83823954,4.86192881 L4.90236893,1.79779943 C5.03254369,1.66762466 5.24359868,1.66762466 5.37377345,1.79779943 L5.84517797,2.26920395 C5.97535273,2.39937871 5.97535273,2.61043371 5.84517797,2.74060847 L3.91911977,4.66666667 Z" id="withdraw" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),u=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="13px" height="16px" viewBox="0 0 13 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="remind-wrapper" transform="translate(-252.000000, -25.000000)">\n <g id="remind" transform="translate(250.000000, 25.000000)">\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M9,2.78359202 L4.26963462,7.93022578 L7.65924881,8.57558845 L7.65924881,12.9738231 L12.1373774,7.58087105 L9,7.09680018 L9,2.78359202 Z M10.3333333,5.95341169 L13.5036802,6.44256946 C13.6229803,6.46097647 13.7350443,6.51142961 13.827913,6.58854475 C14.1111771,6.82375786 14.1501301,7.24406668 13.914917,7.52733077 L7.50547715,15.2461359 C7.37882003,15.3986674 7.19084433,15.4869115 6.99258214,15.4869115 C6.62439231,15.4869115 6.32591548,15.1884347 6.32591548,14.8202449 L6.32591548,9.67901443 L2.84346109,9.01597552 C2.72149049,8.99275304 2.6084286,8.9359303 2.51701405,8.85190952 C2.24593268,8.60275366 2.22815854,8.18101806 2.47731439,7.90993668 L9.17583042,0.6219566 C9.30207796,0.484599374 9.48010448,0.406426522 9.66666667,0.406426522 C10.0348565,0.406426522 10.3333333,0.704903356 10.3333333,1.07309319 L10.3333333,5.95341169 Z" id="Combined-Shape" fill="#646A73" fill-rule="evenodd" transform="translate(8.185093, 7.946669) rotate(-360.000000) translate(-8.185093, -7.946669) "></path>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),p=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="rollback-wrapper" transform="translate(-291.000000, -26.000000)" fill="#646A73">\n <g id="rollback" transform="translate(290.000000, 25.000000)">\n <path d="M9.15183084,9.56402891 C9.15183084,9.64880701 9.12105945,9.7307035 9.06523268,9.79450552 C8.93794396,9.93997834 8.71682705,9.95471947 8.57135423,9.82743075 L6.78619485,8.2654163 C6.77450108,8.25518425 6.76350167,8.24418484 6.75326962,8.23249107 C6.6259809,8.08701825 6.64072203,7.86590133 6.78619485,7.73861261 L8.57135423,6.17659816 C8.63515625,6.12077139 8.71705274,6.09 8.80183084,6.09 C8.9951305,6.09 9.15183084,6.24670034 9.15183084,6.44 L9.15166667,7.33266667 L13.3333333,7.33333333 C13.8856181,7.33333333 14.3333333,7.78104858 14.3333333,8.33333333 L14.3333333,14 C14.3333333,14.1840949 14.1840949,14.3333333 14,14.3333333 L2,14.3333333 C1.81590508,14.3333333 1.66666667,14.1840949 1.66666667,14 L1.66666667,2 C1.66666667,1.81590508 1.81590508,1.66666667 2,1.66666667 L14,1.66666667 C14.1840949,1.66666667 14.3333333,1.81590508 14.3333333,2 L14.3333333,4.66666667 C14.3333333,5.0348565 14.0348565,5.33333333 13.6666667,5.33333333 C13.2984768,5.33333333 13,5.0348565 13,4.66666667 L13,3 L3,3 L3,13 L13,13 L13,8.66666667 L9.15166667,8.66666667 L9.15183084,9.56402891 Z" id="back"></path>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),m=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="15px" viewBox="0 0 14 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="transfer-wrapper" transform="translate(-206.000000, -25.000000)">\n <g id="transfer" transform="translate(205.000000, 25.000000)">\n <g id="icon_com_forward_line">\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M8.33333333,3 L8.33333333,0.930653198 C8.33333333,0.860639617 8.36185354,0.79349361 8.41261982,0.743986532 C8.51833514,0.640893378 8.68973354,0.640893378 8.79544886,0.743986532 L13.2144036,5.05333333 C13.3729766,5.20797306 13.3729766,5.4586936 13.2144036,5.61333333 L8.79544886,9.92268014 C8.74468258,9.97218721 8.67582872,10 8.60403434,10 C8.4545303,10 8.33333333,9.8818092 8.33333333,9.73601347 L8.33333333,7.29208845 L7.80472328,7.29208845 C5.75270915,7.29208845 4.19810674,7.96813022 3.25478642,9.18422799 C3.18972896,9.26809796 3.11253021,9.37950726 3.02319019,9.51845591 C2.99629318,9.56028826 2.95212011,9.58792346 2.90273683,9.59381297 C2.81133613,9.60471353 2.72840458,9.53945527 2.71750573,9.44805437 C2.68361302,9.16386553 2.66666667,8.93373213 2.66666667,8.75765419 C2.66666667,5.57778958 5.20371975,3 8.33333333,3 Z M9.66666667,3.45597405 L9.66666667,4.33333333 L8.33333333,4.33333333 C6.72390765,4.33333333 5.24264368,5.23616077 4.5686026,6.66833207 C5.51197302,6.26699602 6.60236489,6.00469605 7.80472328,6.00469605 L9.66666667,6.00469605 L9.66666667,7.21069262 L11.5917765,5.33333333 L9.66666667,3.45597405 Z M5.66666667,11 L14.3333333,11 C14.5174282,11 14.6666667,11.1492384 14.6666667,11.3333333 L14.6666667,12 C14.6666667,12.1840949 14.5174282,12.3333333 14.3333333,12.3333333 L5.66666667,12.3333333 C5.48257175,12.3333333 5.33333333,12.1840949 5.33333333,12 L5.33333333,11.3333333 C5.33333333,11.1492384 5.48257175,11 5.66666667,11 Z M1.66666667,13.6666667 L14.3333333,13.6666667 C14.5174282,13.6666667 14.6666667,13.8159051 14.6666667,14 L14.6666667,14.6666667 C14.6666667,14.8507616 14.5174282,15 14.3333333,15 L1.66666667,15 C1.48257175,15 1.33333333,14.8507616 1.33333333,14.6666667 L1.33333333,14 C1.33333333,13.8159051 1.48257175,13.6666667 1.66666667,13.6666667 Z" id="trans" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),h=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="16px" height="14px" viewBox="0 0 16 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="resubmit-wrapper" transform="translate(-535.000000, -26.000000)">\n <g id="resubmit" transform="translate(535.000000, 25.000000)">\n <g id="icon_repeat">\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M8.66666667,13 L5.66666667,13 C2.90524292,13 0.666666667,10.7614237 0.666666667,8 C0.666666667,6.02351319 1.81348234,4.31487954 3.47799698,3.50321575 L4.14705936,4.66206579 C2.88040504,5.23964374 2,6.51700706 2,8 C2,10.0250441 3.64162258,11.6666667 5.66666667,11.6666667 L8.66666667,11.6666667 L8.66666667,10.7713189 C8.66666667,10.5780192 8.823367,10.4213189 9.01666667,10.4213189 C9.10144477,10.4213189 9.18334126,10.4520903 9.24714328,10.507917 L11.0323027,12.0699315 C11.1777755,12.1972202 11.1925166,12.4183371 11.0652279,12.5638099 C11.0549958,12.5755037 11.0439964,12.5865031 11.0323027,12.5967352 L9.24714328,14.1587496 C9.10167046,14.2860383 8.88055354,14.2712972 8.75326482,14.1258244 C8.69743805,14.0620224 8.66666667,13.9801259 8.66666667,13.8953478 L8.66666667,13 Z M7.33333333,4.33333333 L7.33333333,5.22868112 C7.33333333,5.31345922 7.30256195,5.39535571 7.24673518,5.45915773 C7.11944646,5.60463055 6.89832954,5.61937168 6.75285672,5.49208296 L4.96769734,3.93006851 C4.95600357,3.91983646 4.94500416,3.90883705 4.93477211,3.89714328 C4.8074834,3.75167046 4.82222452,3.53055354 4.96769734,3.40326482 L6.75285672,1.84125037 C6.81665874,1.7854236 6.89855523,1.75465221 6.98333333,1.75465221 C7.176633,1.75465221 7.33333333,1.91135255 7.33333333,2.10465221 L7.33333333,3 L10.3333333,3 C13.0947571,3 15.3333333,5.23857625 15.3333333,8 C15.3333333,9.96209959 14.2031527,11.6602313 12.5582694,12.4789171 L11.889702,11.3209244 C13.1365971,10.7355485 14,9.46860351 14,8 C14,5.97495592 12.3583774,4.33333333 10.3333333,4.33333333 L7.33333333,4.33333333 Z" id="re" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),b=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="chat-wrapper" transform="translate(-649.000000, -26.000000)">\n <g id="chat" transform="translate(648.000000, 25.000000)">\n <g id="icon_chat_line">\n <rect id="Rectangle" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>\n <path d="M8,1 C11.8659932,1 15,4.13400675 15,8 C15,11.8659932 11.8659932,15 8,15 L1.66666667,15 C1.29847683,15 1,14.7015232 1,14.3333333 L1,8 C1,4.13400675 4.13400675,1 8,1 Z M2.33333333,13.6666667 L8,13.6666667 C11.1296136,13.6666667 13.6666667,11.1296136 13.6666667,8 C13.6666667,4.87038642 11.1296136,2.33333333 8,2.33333333 C4.87038642,2.33333333 2.33333333,4.87038642 2.33333333,8 L2.33333333,13.6666667 Z M5,9 L8.33333333,9 C8.51742825,9 8.66666667,9.14923842 8.66666667,9.33333333 L8.66666667,10 C8.66666667,10.1840949 8.51742825,10.3333333 8.33333333,10.3333333 L5,10.3333333 C4.81590508,10.3333333 4.66666667,10.1840949 4.66666667,10 L4.66666667,9.33333333 C4.66666667,9.14923842 4.81590508,9 5,9 Z M5,6.33333333 L11,6.33333333 C11.1840949,6.33333333 11.3333333,6.48257175 11.3333333,6.66666667 L11.3333333,7.33333333 C11.3333333,7.51742825 11.1840949,7.66666667 11,7.66666667 L5,7.66666667 C4.81590508,7.66666667 4.66666667,7.51742825 4.66666667,7.33333333 L4.66666667,6.66666667 C4.66666667,6.48257175 4.81590508,6.33333333 5,6.33333333 Z" id="go-chat" fill="#646A73"></path>\n </g>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),g=new n.c('<?xml version="1.0" encoding="UTF-8"?>\n <svg width="14px" height="13px" viewBox="0 0 14 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 63.1 (92452) - https://sketch.com --\x3e\n <title>icon / app / line</title>\n <desc>Created with Sketch.</desc>\n <g id="pc" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="cc-wrapper" transform="translate(-390.000000, -27.000000)" fill="#646A73">\n <g id="cc" transform="translate(389.000000, 25.000000)">\n <path d="M9.66666667,2 C9.85076158,2 10,2.14923842 10,2.33333333 L9.99966667,4.33333333 L14,4.33333333 C14.1840949,4.33333333 14.3333333,4.48257175 14.3333333,4.66666667 L14.3333333,14 C14.3333333,14.1840949 14.1840949,14.3333333 14,14.3333333 L4.66666667,14.3333333 C4.48257175,14.3333333 4.33333333,14.1840949 4.33333333,14 L4.33333333,11.6666667 C4.33333333,11.4825718 4.48257175,11.3333333 4.66666667,11.3333333 L5.33333333,11.3333333 C5.51742825,11.3333333 5.66666667,11.4825718 5.66666667,11.6666667 L5.66666667,13 L13,13 L13,5.66666667 L5.66666667,5.66666667 L5.66666667,7 C5.66666667,7.18409492 5.51742825,7.33333333 5.33333333,7.33333333 L4.66666667,7.33333333 C4.48257175,7.33333333 4.33333333,7.18409492 4.33333333,7 L4.33333333,4.66666667 C4.33333333,4.48257175 4.48257175,4.33333333 4.66666667,4.33333333 L8.66633333,4.33333333 L8.66666667,3.33333333 L3,3.33333333 L3,8.66666667 L8.66633333,8.66666667 L8.66666667,7.833657 C8.66666667,7.64956208 8.81590508,7.46699033 9,7.46699033 C9.07655693,7.46699033 9.15078064,7.5266761 9.21019754,7.57495233 L11.0149276,9.07462867 C11.1578062,9.19071756 11.1795236,9.40065223 11.0634347,9.54353088 C11.0489769,9.5613251 11.0327218,9.5775802 11.0149276,9.592038 L9.21019754,11.0917143 C9.0673189,11.2078032 8.85738423,11.186086 8.74129533,11.0432073 C8.6930191,10.9837904 8.66666667,10.9095666 8.66666667,10.8330097 L8.66633333,10 L2,10 C1.81590508,10 1.66666667,9.85076158 1.66666667,9.66666667 L1.66666667,2.33333333 C1.66666667,2.14923842 1.81590508,2 2,2 L9.66666667,2 Z" id="cc-icon"></path>\n </g>\n </g>\n </g>\n </svg>',"#646A73"),v=a(525),j=a(2);(function(e){e.ADD_APPROVER="ADD_APPROVER",e.AGREE="AGREE",e.CC="CC",e.CHAT="CHAT",e.COMMENT="COMMENT",e.DELETE_APPROVER="DELETE_APPROVER",e.MORE="MORE",e.REJECT="REJECT",e.REMINDER="REMINDER",e.ROLLBACK="ROLLBACK",e.SUBMIT_AGAIN="SUBMIT_AGAIN",e.TRANSFER="TRANSFER",e.TRANSFER_PICKER="TRANSFER_PICKER",e.WITHDRAW="WITHDRAW",e.RESUBMIT="RESUBMIT",e.MODIFY="MODIFY",e.THIRD_PART="THIRD_PART",e.APPROVE="APPROVE",e.BATCH_OPERATE="BATCH_OPERATE",e.SUBMIT="SUBMIT",e.SAVE_EDIT="SAVE_EDIT"})(r||(r={})),function(e){e[e.AGREE=0]="AGREE",e[e.REJECT=1]="REJECT",e[e.TRANSFER=2]="TRANSFER",e[e.WITHDRAW=3]="WITHDRAW",e[e.SUBMIT=0]="SUBMIT",e[e.SAVE_EDIT=6]="SAVE_EDIT"}(i||(i={}));var O,f={AGREE:(e,t)=>Object(j.t)("PC.AgreeCheckTitle",{person:e,type:t}),REJECT:(e,t)=>Object(j.t)("PC.RejectCheckTitle",{person:e,type:t}),RESUBMIT:(e,t)=>Object(j.t)("Rollback.SubmitCheckTitle",{person:e,type:t}),WITHDRAW:Object(j.t)("PC.WithdrawCheckTitle"),SUBMIT:e=>Object(j.t)("Detail.SubmitCheckTitle",{type:e})};!function(e){e[e.ADD_APPROVER=o.toDataUrl()]="ADD_APPROVER",e[e.CC=g.toDataUrl()]="CC",e[e.CHAT=b.toDataUrl()]="CHAT",e[e.COMMENT=s.toDataUrl()]="COMMENT",e[e.ROLLBACK=p.toDataUrl()]="ROLLBACK",e[e.REMINDER=u.toDataUrl()]="REMINDER",e[e.WITHDRAW=d.toDataUrl()]="WITHDRAW",e[e.DELETE_APPROVER=c.toDataUrl()]="DELETE_APPROVER",e[e.TRANSFER=m.toDataUrl()]="TRANSFER",e[e.MORE=l.toDataUrl()]="MORE",e[e.SUBMIT_AGAIN=h.toDataUrl()]="SUBMIT_AGAIN",e[e.RESUBMIT=h.toDataUrl()]="RESUBMIT"}(O||(O={}));var M,_=v.a;!function(e){e[e.ADD_APPROVER=o.toDataUrl(_)]="ADD_APPROVER",e[e.CC=g.toDataUrl(_)]="CC",e[e.CHAT=b.toDataUrl(_)]="CHAT",e[e.COMMENT=s.toDataUrl(_)]="COMMENT",e[e.ROLLBACK=p.toDataUrl(_)]="ROLLBACK",e[e.REMINDER=u.toDataUrl(_)]="REMINDER",e[e.WITHDRAW=d.toDataUrl(_)]="WITHDRAW",e[e.DELETE_APPROVER=c.toDataUrl(_)]="DELETE_APPROVER",e[e.TRANSFER=m.toDataUrl(_)]="TRANSFER",e[e.MORE=l.toDataUrl(_)]="MORE",e[e.SUBMIT_AGAIN=h.toDataUrl(_)]="SUBMIT_AGAIN",e[e.RESUBMIT=h.toDataUrl(_)]="RESUBMIT"}(M||(M={}));var y,D=v.b;!function(e){e[e.ADD_APPROVER=o.toDataUrl(D)]="ADD_APPROVER",e[e.CC=g.toDataUrl(D)]="CC",e[e.CHAT=b.toDataUrl(D)]="CHAT",e[e.COMMENT=s.toDataUrl(D)]="COMMENT",e[e.ROLLBACK=p.toDataUrl(D)]="ROLLBACK",e[e.REMINDER=u.toDataUrl(D)]="REMINDER",e[e.WITHDRAW=d.toDataUrl(D)]="WITHDRAW",e[e.DELETE_APPROVER=c.toDataUrl(D)]="DELETE_APPROVER",e[e.TRANSFER=m.toDataUrl(D)]="TRANSFER",e[e.MORE=l.toDataUrl(D)]="MORE",e[e.SUBMIT_AGAIN=h.toDataUrl(D)]="SUBMIT_AGAIN",e[e.RESUBMIT=h.toDataUrl(D)]="RESUBMIT"}(y||(y={}));var N,A={[r.AGREE]:()=>Object(j.t)("Detail.AgreeButton"),[r.REJECT]:()=>Object(j.t)("Detail.RejectButton"),[r.ADD_APPROVER]:()=>Object(j.t)("Detail.AddTaskButton"),[r.DELETE_APPROVER]:()=>Object(j.t)("Detail.RemoveTaskButton"),[r.COMMENT]:()=>Object(j.t)("Detail.Comment"),[r.CHAT]:e=>{var{isInChat:t}=e;return t?Object(j.t)("DiscussionGroup.NewEnterGroup"):Object(j.t)("DiscussionGroup.NewCreateGroup")},[r.MORE]:()=>Object(j.t)("PC.More"),[r.CC]:()=>Object(j.t)("Detail.FreeCCButton"),[r.REMINDER]:()=>Object(j.t)("Detail.RemindButton"),[r.ROLLBACK]:()=>Object(j.t)("Rollback.RollbackButton"),[r.TRANSFER]:()=>Object(j.t)("Detail.RedirectButton"),[r.MODIFY]:()=>Object(j.t)("ModifyTag"),[r.WITHDRAW]:()=>Object(j.t)("Detail.RecallButton"),[r.SUBMIT_AGAIN]:()=>Object(j.t)("Detail.ReSubmit"),[r.RESUBMIT]:()=>Object(j.t)("Rollback.RollbackSubmitAgain"),[r.SUBMIT]:()=>Object(j.t)("Detail.Submit"),[r.SAVE_EDIT]:()=>Object(j.t)("Detail.SaveModify"),[r.BATCH_OPERATE]:()=>Object(j.t)("BatchOperate.BatchProcess")};!function(e){e[e.CHAT=1]="CHAT",e[e.REMINDER=2]="REMINDER",e[e.TRANSFER=3]="TRANSFER",e[e.CC=4]="CC",e[e.COMMENT=5]="COMMENT",e[e.ADD_APPROVER=6]="ADD_APPROVER",e[e.DELETE_APPROVER=7]="DELETE_APPROVER",e[e.ROLLBACK=8]="ROLLBACK",e[e.WITHDRAW=9]="WITHDRAW",e[e.SUBMIT_AGAIN=10]="SUBMIT_AGAIN"}(N||(N={}));var T={AGREE:Object(j.t)("PC.NextAgreed"),REJECT:Object(j.t)("PC.NextRejected"),WITHDRAW:Object(j.t)("PC.NextWithdrawn")}},,function(e,t,a){"use strict";a.d(t,"g",(function(){return b})),a.d(t,"i",(function(){return g})),a.d(t,"d",(function(){return v})),a.d(t,"e",(function(){return j})),a.d(t,"p",(function(){return O})),a.d(t,"m",(function(){return f})),a.d(t,"l",(function(){return M})),a.d(t,"o",(function(){return _})),a.d(t,"k",(function(){return y})),a.d(t,"n",(function(){return D})),a.d(t,"j",(function(){return N})),a.d(t,"c",(function(){return A})),a.d(t,"h",(function(){return T})),a.d(t,"f",(function(){return I})),a.d(t,"a",(function(){return x})),a.d(t,"b",(function(){return S}));var r=a(9),i=a(19),n=a.n(i),o=a(31),s=a.n(o),c=a(2),l=a(35),d=a(16),u=a(36),p=a(14),m=a(17),h=a(12),b=()=>{var e=n.a.getCurrentPages();if(e&&e.length){var t=e[e.length-1];if("pc-pages/create-form/index"===t.__route__&&t.options.instanceId)return!0}return!1},g=()=>Object(c.t)("Apaascorehr_NoFormItemValue"),v=(e,t)=>e.findIndex((e=>e.id===t)),j=(e,t)=>e[v(e,t)],O=e=>{e&&l.b.showToast({title:Object(c.t)("Apaascorehr_VerifyNetworkError"),icon:"error",duration:3e3})},f=(e,t)=>{var a=t?[t].map((e=>e)):[],{innerCtxId:r}=e.data;(e.data.value=a,r)&&Object(p.d)(r).departmentSelectStore.setSelectedValueData(a)},M=(e,t)=>{!t&&e.data.validationError&&(e.data.validationError=null),e.data.value=t?s()(t):void 0,e.data.text=t?s()(t).format("YYYY-MM-DD"):""},_=(e,t)=>{e.data.value=t?{value:"".concat(t.id),text:"".concat(t.name)}:void 0},y=(e,t)=>{e.data.users=t?[t].map((e=>({id:e.id,name:e.name,avatarUrl:e.avatarUrl,tenantId:e.tenantId}))):[]},D=(e,t)=>{e.data.options=t?t.map((e=>({value:"".concat(e.id),text:"".concat(e.name)}))):[]},N=(e,t)=>{var a=j(e,t);a&&(a.data.placeholder=a.data.originPlaceholder)},A=(e,t)=>{var a=j(e,t);a&&(a.data.placeholder="")},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label",a={};return e.forEach((e=>{var r=e[t];a[r]=e})),a},I=(e,t,a)=>{!0===e.data.printable&&a&&t.push({label:e.data.name,value:g()})},C={AppInactive:Object(c.t)("Apaascorehr_AppInactive")},x={valid:"valid",invalid:"invalid",error:"error"},S=function(){var e=Object(r.a)((function*(){try{var{data:e}=yield d.c.personnelGetPersonnelAppStatus();if(e)if("AppActive"!==e.AppStatus){var t=C.AppInactive;if((yield Object(u.p)({confirmText:Object(c.t)("Apaascorehr_AlreadyKnown"),content:t,showCancel:!1})).confirm)return x.invalid}else if("AppActive"===e.AppStatus)return x.valid;return x.invalid}catch(e){return Object(h.b)(m.f.ApprovalError,{location:"in function checkAppStatusInValid at src/components/configurable-form/components/widgets/job-adjust-group/common/index.ts",message:JSON.stringify(e)}),x.error}}));return function(){return e.apply(this,arguments)}}()},function(e,t,a){"use strict";a.d(t,"o",(function(){return j})),a.d(t,"s",(function(){return O})),a.d(t,"b",(function(){return f})),a.d(t,"l",(function(){return M})),a.d(t,"g",(function(){return y})),a.d(t,"u",(function(){return D})),a.d(t,"q",(function(){return N})),a.d(t,"t",(function(){return A})),a.d(t,"w",(function(){return T})),a.d(t,"p",(function(){return I})),a.d(t,"e",(function(){return C})),a.d(t,"m",(function(){return x})),a.d(t,"a",(function(){return S})),a.d(t,"c",(function(){return w})),a.d(t,"v",(function(){return k})),a.d(t,"n",(function(){return z})),a.d(t,"j",(function(){return R})),a.d(t,"d",(function(){return P})),a.d(t,"k",(function(){return U})),a.d(t,"i",(function(){return B})),a.d(t,"h",(function(){return F})),a.d(t,"r",(function(){return Y})),a.d(t,"f",(function(){return Q}));var r=a(9),i=a(5),n=a(204),o=a(2),s=a(19),c=a.n(s),l=a(423),d=a(387),u=a(802),p=a(17),m=a(10),h=a(12),b=a(176),g=a(214),v=a(28),j=e=>{try{return JSON.parse(e)}catch(t){return e}},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((t=>setTimeout(t,e)))};function f(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;try{return Object(n.b)(e,t)?1:-1}catch(e){Object(h.b)(p.f.ApprovalError,{location:"in function cmpVersions at src/utils/common.ts",message:JSON.stringify(e)})}return a}function M(e){return _.apply(this,arguments)}function _(){return _=Object(r.a)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return c.a.showLoading(Object(i.a)({title:Object(o.t)("Loading")},t)),yield e}finally{c.a.hideLoading()}})),_.apply(this,arguments)}function y(e){return function(e){return Object.keys(e).filter((t=>{var a=e[t];return t===a||Object(l.a)(a)||Object(d.a)(a)&&Object(u.a)(e[a])}))}(e).map((t=>e[t]))}function D(e,t){for(var a of t)e.delete(a);return e}function N(e){return e}function A(e,t){var a=new Set,r="string"==typeof t?new RegExp(t,"gm"):t;if(!Object(d.a)(e))return a;for(var i=r.exec(e),n=0;null!==i;){var o=e.slice(n,i.index),s=i[0];a.add([o,s]),n=r.lastIndex,i=r.exec(e)}return a.add([e.slice(n)]),a}var T=/https?:\/\/[-\w+&@#/%?=~|!:,.;]+[-\w+&@#/%=~|]/gm;function I(e,t){var a=(t-e)/36e5;return a=Math.round(10*a)/10}var C=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));return e?t.split("-")[0]:t},x=()=>{},S=(e,t)=>{var a="".concat(t,"x").concat(t);return e?e.replace(/~(noop|\d+x\d+)/,"~".concat(a)).replace(/image_size=\d+x\d+/,"image_size=".concat(a)):e},w=(e,t)=>{var a=null;return function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];a&&(clearTimeout(a),a=null),a=setTimeout((()=>e.call(this,...i)),t)}},L=e=>e<10?"0".concat(e):"".concat(e),E=e=>{var t=new Date(e),a=t.getFullYear(),r=t.getMonth()+1,i=L(r),n=t.getDate(),s=L(n),c=t.getHours(),l=L(c),d=t.getMinutes(),u=L(d),p=t.getSeconds(),m=L(p),h="AM",b=Object(o.t)("AM"),g=new Date(a,r-1,n,12,0,0).getTime();return t.getTime()-g>=0&&(b=Object(o.t)("PM"),h="PM"),{YYYY:a,M:r,MM:i,D:n,DD:s,h:c,hh:l,m:d,mm:u,s:p,ss:m,noon:b,a:h}},k=(e,t,a)=>{if(!e||"number"!=typeof e)return a||"---- --:--";if("rough"===t)return Object(b.d)(e);var r=new Date(e),{YYYY:i,MM:n,DD:o,hh:s,mm:c,noon:l,ss:d}=E(e);if("standard"===t)return i===(new Date).getFullYear()?"".concat(n,"-").concat(o," ").concat(s,":").concat(c):"".concat(i,"-").concat(n,"-").concat(o," ").concat(s,":").concat(c);switch(t){case"MM-DD hh:mm":return"".concat(n,"-").concat(o," ").concat(s,":").concat(c);case"YYYY-MM-DD hh:mm":case"YYYY-MM-DD hh:h/2":return"".concat(i,"-").concat(n,"-").concat(o," ").concat(s,":").concat(c);case"YYYY-MM-DD hh:mm:ss":return"".concat(i,"-").concat(n,"-").concat(o," ").concat(s,":").concat(c,":").concat(d);case"MM-DD noon":return"".concat(n,"-").concat(o," ").concat(l);case"YYYY-MM-DD":return"".concat(i,"-").concat(n,"-").concat(o);case"YYYY.MM.DD":return"".concat(i,".").concat(n,".").concat(o);case"YYYY-MM-DD noon":return"".concat(i,"-").concat(n,"-").concat(o," ").concat(l);case"hh:mm|MM-DD":return(e=>(new Date).toDateString()===e.toDateString())(r)?"".concat(s,":").concat(c):"".concat(n,"-").concat(o);case"hh:mm":case"HH:mm":return"".concat(s,":").concat(c);case"YYYY-MM-DD|MM-DD":return(e=>(new Date).getFullYear()===e.getFullYear())(r)?"".concat(n,"-").concat(o):"".concat(i,"-").concat(n,"-").concat(o);default:return m.a.warn("[Time util] Invalid format type: ".concat(t)),"".concat(n,"-").concat(o," ").concat(s,":").concat(c)}},z=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=e.split("?")[0],r=a.split("/"),i=r[r.length-1];t&&(i=i.replace(/,/g,""));var n=i.split(".");n=n.slice(0,-1).join(".");var o=i.split("."),s=o.slice(0,-1).join("."),c=o[o.length-1];return s.length||(i="file",c=""),{path:e,fileName:i,suffix:c,fileNameWithoutSuffix:n}},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image";return"".concat(e,"~").concat(t,"x0.").concat(a)};function P(e){return e.replace(/\t|\n|\v|\r|\f|\\n|\\r/g," ")}var U=e=>{var t;return!(null!=e&&e.text||null!=e&&null!==(t=e.files)&&void 0!==t&&t.length)};function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(null==e||!e.length)return[];var a=[],r=0,i=Number.MIN_SAFE_INTEGER;return e.forEach((e=>{i=Math.max(i,e),(r+=1)%t==0&&(a.push(i),r=0,i=Number.MIN_SAFE_INTEGER)})),i!==Number.MIN_SAFE_INTEGER&&a.push(i),a}var F=(()=>{var e="";return()=>(e||(e=C()),e)})(),Y=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c.a.eventCenter.trigger("global-tooltip",{id:F(),visible:e})},Q=function(){var e=Object(r.a)((function*(e,t){try{var{data:{base64Result:a}}=yield g.b.qrCodeGenerate({content:"https://applink.".concat(v.f,"/client/mini_program/open?appId=").concat(v.e,"&path=").concat(encodeURIComponent(e)).concat(t?"&".concat(t):"")});return"data:image/png;base64,".concat(a)}catch(e){return Object(h.b)(p.f.ApprovalError,{location:"in function generateQrCode at src/utils/common.ts",message:JSON.stringify(e)}),""}}));return function(t,a){return e.apply(this,arguments)}}()},,function(e,t,a){"use strict";a.d(t,"a",(function(){return m})),a.d(t,"c",(function(){return h}));var r,i=a(20),n=a(12),o=a(842),s=a(9),c=a(5),l=a(6),d=a(17),u=a(10),p=a(280);!function(e){e.Send="send",e.Reply="reply",e.Notify="notify"}(r||(r={}));class m{constructor(){var e,t,a=this;Object(l.a)(this,"manager",null===(e=(t=tt).createMessageManager)||void 0===e?void 0:e.call(t)),Object(l.a)(this,"channel",void 0),Object(l.a)(this,"messages",new Map),Object(l.a)(this,"handlers",new Map),Object(l.a)(this,"setChannel",(e=>{this.channel=e})),Object(l.a)(this,"getChannel",(()=>this.channel)),Object(l.a)(this,"pack",(e=>{var t,a;return Object(c.a)(Object(c.a)({},null!=e?e:{}),{},{id:null!==(t=null==e?void 0:e.id)&&void 0!==t?t:Object(p.a)(),type:null!==(a=null==e?void 0:e.type)&&void 0!==a?a:r.Send,data:null==e?void 0:e.data})})),Object(l.a)(this,"transfer",((e,t)=>{var a=Object(p.a)(),{channel:r}=this;return new Promise(((i,n)=>{var o;this.messages.set(a,Object(c.a)({id:a,channel:r,resolve:i,reject:n},e)),this.transferMessage(this.messages.get(a)),Object(s.a)((function*(){(yield null==t?void 0:t.resolved)&&i(e)}))(),Object(s.a)((function*(){(yield null==t?void 0:t.rejected)&&n(e)}))(),setTimeout((()=>{n(Object.assign(e,{data:"[MessageServer] Timeout with ${msg.id}!"}))}),null!==(o=null==t?void 0:t.timeout)&&void 0!==o?o:5e3)}))})),Object(l.a)(this,"send",((e,t)=>this.transfer(Object(c.a)(Object(c.a)({},null!=e?e:{}),{},{type:r.Send}),t))),Object(l.a)(this,"reply",((e,t)=>this.transfer(Object(c.a)(Object(c.a)({},null!=e?e:{}),{},{type:r.Reply}),Object(c.a)(Object(c.a)({},null!=t?t:{}),{},{resolved:!0})))),Object(l.a)(this,"notify",((e,t)=>this.transfer(Object(c.a)(Object(c.a)({},null!=e?e:{}),{},{type:r.Notify}),Object(c.a)(Object(c.a)({},null!=t?t:{}),{},{resolved:!0})))),Object(l.a)(this,"listenSendMessage",(e=>{null!=e&&e.id&&r.Send===(null==e?void 0:e.type)&&Object(s.a)((function*(){var t;if(null!=e&&e.handler&&a.handlers.get(null==e?void 0:e.handler)){var i=yield null===(t=a.handlers.get(null==e?void 0:e.handler))||void 0===t?void 0:t(e);r.Send===(null==e?void 0:e.type)&&a.reply(a.pack(Object(c.a)(Object(c.a)({},null!=e?e:{}),{},{data:i})))}}))()})),Object(l.a)(this,"listenReplyMessage",(e=>{var t,a;if(null!=e&&e.id&&r.Reply===(null==e?void 0:e.type))return null===(t=this.messages.get(null==e?void 0:e.id))||void 0===t||null===(a=t.resolve)||void 0===a?void 0:a.call(t,e)})),Object(l.a)(this,"listenNotifyMessage",(e=>{var t;null!=e&&e.id&&r.Notify===(null==e?void 0:e.type)&&null!=e&&e.handler&&(null===(t=this.handlers.get(null==e?void 0:e.handler))||void 0===t||t(e))})),Object(l.a)(this,"transferMessage",(e=>{try{this.manager.transferMessage({channel:this.channel,data:e})}catch(t){Object(n.b)(d.f.ApprovalError,{location:"in function transferMessage at src/services/native/message.ts",message:JSON.stringify(t)}),u.a.error("[mp-pc] Failed to transferMessage!",this.channel,e)}})),Object(l.a)(this,"onTransferMessage",(e=>{var t;null===(t=this.manager)||void 0===t||t.onTransferMessage(e)})),Object(l.a)(this,"offTransferMessage",(e=>{var t;null===(t=this.manager)||void 0===t||t.offTransferMessage(e)}))}listen(){var e=e=>{u.a.error("[mp-pc] onTransferMessage",e);var{channel:t,data:a}=e;if(t===this.channel)switch(null==a?void 0:a.type){case r.Send:return this.listenSendMessage(a);case r.Reply:return this.listenReplyMessage(a);case r.Notify:return this.listenNotifyMessage(a)}};return this.onTransferMessage(e),()=>{this.messages.forEach((e=>{var t;return null==e||null===(t=e.reject)||void 0===t?void 0:t.call(e)})),this.offTransferMessage(e)}}}var h=new m,b=Object(i.c)("pc:src/services/native/index.ts"),g=Object(o.a)({reporterInstance:{logger:n.b,monitor:e=>{b("commonOnError",{msg:JSON.stringify(e)})}},apiConfigs:{onAppRoute:{logger:!1,sync:!0},showToast:{},hideToast:{},showLoading:{},hideLoading:{}}});t.b=g},function(e,t,a){"use strict";a.d(t,"i",(function(){return T})),a.d(t,"c",(function(){return I})),a.d(t,"f",(function(){return C})),a.d(t,"s",(function(){return x})),a.d(t,"n",(function(){return S})),a.d(t,"d",(function(){return w})),a.d(t,"l",(function(){return L})),a.d(t,"m",(function(){return E})),a.d(t,"a",(function(){return k})),a.d(t,"o",(function(){return z})),a.d(t,"q",(function(){return Y})),a.d(t,"g",(function(){return G})),a.d(t,"b",(function(){return W})),a.d(t,"e",(function(){return V})),a.d(t,"k",(function(){return H})),a.d(t,"j",(function(){return Z})),a.d(t,"p",(function(){return q})),a.d(t,"r",(function(){return K})),a.d(t,"h",(function(){return J}));var r=a(9),i=a(5),n=a(19),o=a.n(n),s=a(2),c=a(423),l=(a(124),a(20)),d=a(403),u=a(17),p=a(16),m=a(35),h=a(39),b=a(10),g=a(12),v=a(76),j=a(33),O=a(44),f=a(241),M=a(155),_=a(717),y=Object(l.c)("pc:src/utils/native.ts"),{version:D}=h.h,N={};function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((a,r)=>{e(Object(i.a)(Object(i.a)({},t),{},{success(e){a(e)},fail(e){b.a.error("promisifyNativeApi fail",e),r(e)}}))}))}function T(e){return Object(j.b)(D,e)>=0}function I(e){return A(tt.chooseContact,e)}function C(e){return A(tt.filePicker,e)}function x(e,t){var a;y("fileTTupload");var r=Object(v.f)(e,(e=>{a=e.abort,"function"==typeof t&&(t(0),e.onProgressUpdate((e=>{var{progress:a}=e;t(.9*a)})))}));return"function"==typeof t&&(r.then((()=>{t(100)})),r.catch((()=>{t(0)}))),{taskPromise:r,abort:a}}function S(e){return new Promise(((t,a)=>{var r=e.name,{url:n}=e,c=N[e.url];if(c)return o.a.openDocument({filePath:c}),void t(c);r=Object(_.a)(r),e.filePath="ttfile://temp/".concat(r),y("fileTTopendoc"),o.a.showLoading({title:Object(s.t)("Loading"),mask:!0}),o.a.downloadFile(Object(i.a)(Object(i.a)({},e),{},{success:e=>{var{tempFilePath:a}=e;N[n]=a,o.a.openDocument({filePath:a}),t(a)},fail:e=>{a(e)},complete:()=>{o.a.hideLoading()}}))}))}function w(e,t){return new Promise(((a,r)=>{var n=function(){var e=/[\\/:*?"<>|]/gi;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replaceAll(e,"")}(e.name);T("3.9.99")&&(e.filePath="ttfile://temp/".concat(n)),y("fileTTdownloadfile"),o.a.showLoading({title:Object(s.t)("Loading"),mask:!0});var c=tt.downloadFile(Object(i.a)(Object(i.a)({},e),{},{success:e=>{if(e.filePath=e.tempFilePath,T("3.7.0")&&!T("5.10.0")){var t="ttfile://temp/".concat(n);e.tempFilePath!==t&&(function(e,t){new Promise((a=>{y("fileTTrenamefile",{oldPath:e,newPath:t}),tt.getFileSystemManager().rename({oldPath:e,newPath:t,success:()=>a(!0),fail:()=>a(!1)})}))}(e.tempFilePath,t),e.tempFilePath=t)}y("fileTTsavefiles",e),T("3.9.99")?tt.saveFileAs(e):o.a.saveFile(e),a()},fail:e=>{y("commonOnError",{message:"downloadAndPreviewFile failed",location:"src/utils/native.ts",errorMsg:Object(O.a)(e)}),r(e)},complete:()=>{o.a.hideLoading()}}));t&&c.onProgressUpdate((e=>{var{progress:a}=e;t(Math.min(a,100))}))}))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;return Object(d.a)(e,t,a)}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;return Object(d.a)(e,t,a)}var k=Boolean(tt.print)&&T("3.5.0");function z(e){return R.apply(this,arguments)}function R(){return R=Object(r.a)((function*(e){var t=yield Object(v.e)(e);y("invokeTTprint"),tt.print({url:t,success(e){y("invokeTTprintSuccess",{res:JSON.stringify(e,Object.getOwnPropertyNames(e))})},fail(e){y("invokeTTprintFail",{res:JSON.stringify(e,Object.getOwnPropertyNames(e))})}});try{b.a.info("打印页面 dataURL:",t),Object(g.b)("pc_mp_info",{info:"打印页面 dataURL",payload:t})}catch(e){Object(g.b)(u.f.ApprovalError,{location:"in function printHTML at src/utils/native.ts",message:JSON.stringify(e)}),b.a.error("上报打印日志失败",e)}})),R.apply(this,arguments)}var P=Boolean(tt.enterProfile)&&T("3.5.999");function U(e,t,a,r){if(e&&P){var i=()=>{if(t&&t.detail){var{x:a,y:r}=t.detail;Object(c.a)(a)&&Object(c.a)(r)&&tt.enterProfile({openid:e,top:r,left:a})}};a&&r?o.a.createSelectorQuery().in(a).select(r).boundingClientRect((t=>{t?tt.enterProfile({openid:e,top:(t.top+t.bottom)/2,left:(t.left+t.right)/2}):i()})).exec():i()}}function B(e){return F.apply(this,arguments)}function F(){return F=Object(r.a)((function*(e){if(!e)return"";var t=f.a.get(e);if(t)return t;var a=yield Object(M.a)({api:p.c,params:{userIds:[e]},cacheOpenId:!0});a.data||b.a.error("native utils queryUser error");var{openId:r}=a.data.userList[0];return r})),F.apply(this,arguments)}function Y(e,t,a,r){return Q.apply(this,arguments)}function Q(){return Q=Object(r.a)((function*(e,t,a,r){var i=yield B(e);i&&U(i,t,a,r)})),Q.apply(this,arguments)}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return A(tt.getChatInfo,{openChatId:e,chatType:t}).then((e=>{if(e.res&&0===e.res.code)return e.res.data;throw new Error(e.errMsg)}))}function W(e){return A(tt.chooseChat,e)}function V(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return A(tt.enterChat,{openChatId:e,needBadge:t}).then((e=>{b.a.info("chatRes",e)}))}function H(e,t){tt.onChatBadgeChange({openChatId:e,onChange:t})}function Z(e,t){return A(tt.offChatBadgeChange,{openChatId:e,onChange:t})}function q(e){var t={confirmText:Object(s.t)("ModalConfirmText"),cancelText:Object(s.t)("popup.Off")};return A(tt.showModal,Object(i.a)(Object(i.a)({},t),e))}var K=e=>{var{icon:t,title:a}=e,r=t||"success";"PC"===(null===h.h||void 0===h.h?void 0:h.h.model)||(r="none"),m.b.showToast({icon:r,title:a})},J=()=>new Promise(((e,t)=>{tt.login({success(a){a.code&&e(a),t(a)},fail(e){t(e)}})}))},,function(e,t,a){"use strict";a.d(t,"c",(function(){return f})),a.d(t,"b",(function(){return M})),a.d(t,"e",(function(){return y})),a.d(t,"d",(function(){return N})),a.d(t,"i",(function(){return T})),a.d(t,"a",(function(){return S})),a.d(t,"h",(function(){return L})),a.d(t,"f",(function(){return k})),a.d(t,"g",(function(){return R})),a.d(t,"j",(function(){return U}));var r=a(5),i=a(9),n=a(802),o=a(1433),s=a(84),c=a(31),l=a.n(c),d=a(4),u=a(16),p=a(10),m=a(2),h=a(394),b=a(18),g=a(26),v=a(103),j=a(20),O=Object(j.c)("mobile:src/components/configurable-form/utils/validators.ts");function f(e){return Object(n.a)(e)||Object(o.a)(e)||""===e||(Object(s.a)(e)||Object(d.n)(e))&&!e.length?Object(m.t)("PC.ValidateNoEmpty"):null}function M(e,t,a,r,i,n){if("dateInterval"===r){if(!e&&!t&&a)return Object(m.t)("PC.Error_IntervalEmptyStartAndEnd",{startTime:i,endTime:n});if(!e&&t)return Object(m.t)("PC.Error_IntervalEmptyStart",{startTime:i});if(e&&!t&&a)return Object(m.t)("PC.Error_IntervalEmptyEnd",{startTime:i,endTime:n});if(e&&t&&e>t)return Object(m.t)("LeaveGroup.DateRangeInvalid",{startTime:i,endTime:n});if(e&&t&&!a)return Object(m.t)("PC.ValidateNoEmpty")}return e&&t&&e>t?Object(m.t)("LeaveGroup.DateRangeInvalid",{startTime:i,endTime:n}):null}function _(e){var{startDateTime:t,endDateTime:a}=e;return t&&a&&(e.startTime=l()(t).valueOf(),e.endTime=l()(a).valueOf()),e}function y(e,t,a,r){return D.apply(this,arguments)}function D(){return D=Object(i.a)((function*(e,t,a,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=yield Object(v.e)(u.c,{definitionId:e,startTime:Number(t),endTime:Number(a),startDateTime:l()(Number(t)).format("YYYY-MM-DD HH:mm:ss"),endDateTime:l()(Number(a)).format("YYYY-MM-DD HH:mm:ss"),time_offset:l()(Number(t)).utcOffset()},void 0,i);n||p.a.error("validator: leaveBalanceConflict failed");var o=n;if(o.attendanceExist)return Object(m.t)("PC.ValidateLeaveConflict");if(r===b.f.HOUR){var s=[];if(o.conflictApprovals&&o.conflictApprovals.length)for(var c of o.conflictApprovals){var{startTime:d,endTime:h}=_(c);if(d&&h&&!(h<d)){d=Math.max(Number(d),Number(t)),h=Math.min(Number(h),Number(a));var g=l()(d).format("MM-DD HH:mm"),j=l()(h).format("MM-DD HH:mm");d>=h?s.push("".concat(l()(d).format("MM-DD"))):s.push("".concat(g," ~ ").concat(j))}}return 0===s.length?null:s.join(" ")+Object(m.t)("PC.ValidateLeaveConflict")}var O=[];if(o.conflictApprovals&&o.conflictApprovals.length){for(var f of o.conflictApprovals){var{startTime:M,endTime:y}=_(f);if(M&&y&&!(y<M))for(var D=M;D<=y;D+=864e5)D<=a&&D>=t&&O.push(D)}var N=[];for(var A of Array.from(new Set(O)).sort(((e,t)=>e-t))){var T=l()(A).format("MM-DD");N.length&&N[N.length-1]===T||N.push(T)}return 0===N.length?null:N.join(" ")+Object(m.t)("PC.ValidateLeaveConflict")}return null})),D.apply(this,arguments)}function N(e,t,a,r,i){return A.apply(this,arguments)}function A(){return A=Object(i.a)((function*(e,t,a,r,i){var n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=yield Object(v.i)(u.c,{definitionId:e,startTime:Number(t),endTime:Number(a),startDateTime:l()(Number(t)).format("YYYY-MM-DD HH:mm:ss"),endDateTime:l()(Number(a)).format("YYYY-MM-DD HH:mm:ss")},void 0,n);o||p.a.error("validator BalanceLeaveQuotaCalApi failed");var s=o;return s.leaveDetail&&s.leaveDetail.length&&s.leaveDetail.forEach(((e,t)=>{s.leaveDetail[t].range=Object(g.e)([e.rangeDateTime[0],e.rangeDateTime[1]])})),(null!==s.leaveQuota||void 0!==s.leaveQuota)&&r<s.leaveQuota?i===b.f.HOUR?Object(m.t)(n?"LeaveGroup.NoBalanceQuotaInRange":"LeaveGroup.NoBalanceQuotaInDuration",{count:s.leaveQuota}):Object(m.t)(n?"LeaveGroup.NoBalanceQuotaInRange":"LeaveGroup.NoDayBalanceQuotaInDuration",{count:s.leaveQuota}):null})),A.apply(this,arguments)}function T(e,t,a,r,i,n){return I.apply(this,arguments)}function I(){return I=Object(i.a)((function*(e,t,a,r,i,n){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=s&&-s||l()(Number(t)).utcOffset(),d=yield Object(v.e)(u.c,{definitionId:e,startTime:Number(t),endTime:Number(a),startDateTime:l()(Number(t)).utcOffset(c).format("YYYY-MM-DD HH:mm:ss"),endDateTime:l()(Number(a)).utcOffset(c).format("YYYY-MM-DD HH:mm:ss"),originInstanceId:i,imitateUserId:n,time_offset:c},void 0,o);if(d||p.a.error("validator: leaveBalanceConflict failed"),n&&d.conflictExist)return[!0,d];if(d.conflictApprovals&&d.conflictApprovals.length){var h=x(d.conflictApprovals,{isBreastFeeding:!1}),b=h.map((e=>{var{start:t,end:a}=e;return t===a?t:"".concat(t," ").concat(Object(m.t)("ApprovalEfficiency.To")," ").concat(a)})).join(" ; ");return[b,d]}return[null,d]})),I.apply(this,arguments)}var C={[b.m.DAY]:"YYYY-MM-DD",[b.m.HALF_DAY]:"YYYY-MM-DD HH:mm",[b.m.HOUR]:"YYYY-MM-DD HH:mm",[b.m.HALF_HOUR]:"YYYY-MM-DD HH:mm",[b.m.MINUTE]:"YYYY-MM-DD HH:mm"},x=(e,t)=>{var{isBreastFeeding:a=!1}=t;return e.map((e=>{var{startTime:t,endTime:r,balanceUnit:i=b.m.DAY}=e,n=C[a?b.m.DAY:i];return{start:l()(t).format(n),end:l()(r).format(n)}}))};function S(e,t,a,r,i){return w.apply(this,arguments)}function w(){return w=Object(i.a)((function*(e,t,a,i,n){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t&&a){var s=[l()(t),l()(a)],c={definitionId:e,startTime:Number(s[0]),endTime:Number(s[1]),startDateTime:s[0].format("YYYY-MM-DD HH:mm:ss"),endDateTime:s[1].format("YYYY-MM-DD HH:mm:ss"),time_offset:l()(Number(s[0])).utcOffset()};i&&(c.imitateUserId=i),o&&n&&(c.originInstanceId=n);var d=yield Object(v.e)(u.c,c,void 0,o);d||console.error("validator: leaveBalanceConflict failed");var p={calcError:!1,calcWarning:""};if(!d.attendanceExist)return Object(r.a)(Object(r.a)({},p),{},{calcError:!0});var{conflictApprovals:h}=d;if(null==h||!h.length)return p;var b=x(h,{isBreastFeeding:!0}),g=b.map((e=>{var{start:t,end:a}=e;return t===a?t:"".concat(t," ").concat(Object(m.t)("ApprovalEfficiency.To")," ").concat(a)}));return g.length?Object(r.a)(Object(r.a)({},p),{},{calcWarning:g.join(" ; ")}):p}})),w.apply(this,arguments)}function L(e,t){return E.apply(this,arguments)}function E(){return E=Object(i.a)((function*(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{startTime:r,endTime:i,definitionId:n,durationLeft:o,balanceUnit:s,originInstanceId:c,imitateUserId:d,timezoneOffset:h}=e,j=h&&-h||l()(Number(r)).utcOffset(),O=yield Object(v.i)(u.c,{definitionId:n,startTime:Number(r),endTime:Number(i),startDateTime:l()(Number(r)).utcOffset(j).format("YYYY-MM-DD HH:mm:ss"),endDateTime:l()(Number(i)).utcOffset(j).format("YYYY-MM-DD HH:mm:ss"),originInstanceId:c,imitateUserId:d,time_offset:j},void 0,a);if(O||p.a.error("validator BalanceLeaveQuotaCalApi failed"),O.isBalanceEnough)return[null,O];O.leaveDetail&&O.leaveDetail.length&&O.leaveDetail.forEach(((e,t)=>{O.leaveDetail[t].range=Object(g.e)([e.rangeDateTime[0],e.rangeDateTime[1]])}));var f=()=>t.insteadSubmitManager.currentSubmitterIsNotCurrentUser?[Object(m.t)("LeaveGroup.NoDayBalanceQuotaInDurationDefault"),O]:s===b.f.HOUR?[Object(m.t)(a?"LeaveGroup.NoBalanceQuotaInRange":"LeaveGroup.NoBalanceQuotaInDuration",{count:O.leaveQuota}),O]:[Object(m.t)(a?"LeaveGroup.NoBalanceQuotaInRange":"LeaveGroup.NoDayBalanceQuotaInDuration",{count:O.leaveQuota}),O];return void 0!==O.isBalanceEnough?O.isBalanceEnough?[null,O]:f():(null!==O.leaveQuota||void 0!==O.leaveQuota)&&o&&o<O.leaveQuota?f():[null,O]})),E.apply(this,arguments)}function k(e,t,a,r){return z.apply(this,arguments)}function z(){return z=Object(i.a)((function*(e,t,a,r){var i={leave_id:e,start_time:l()(Number(t)).format("YYYY-MM-DD HH:mm:ss"),end_time:l()(Number(a)).format("YYYY-MM-DD HH:mm:ss"),time_offset:l()(Number(t)).utcOffset(),form:{custom_item_list:[]},decrease_quota:Number(r||"0")};O("submitLeaveFormValidateStart",{params:i});try{var{data:n}=yield u.c.validateLeaveApplyForm(i);return n.apply_hit_texts&&n.apply_hit_texts.length>0?n.apply_hit_texts[0].hit_text:null}catch(e){O("submitLeaveFormValidateError",{err:e,params:i})}})),z.apply(this,arguments)}function R(e,t,a,r,i,n,o){return P.apply(this,arguments)}function P(){return P=Object(i.a)((function*(e,t,a,r,i,n,o){var s={leave_id:e,start_time:l()(Number(t)).format("YYYY-MM-DD HH:mm:ss"),end_time:l()(Number(a)).format("YYYY-MM-DD HH:mm:ss"),origin_instance_id:r,imitate_user_id:i,time_offset:l()(Number(t)).utcOffset(),form:n,decrease_quota:Number(o||"0")};O("submitLeaveFormValidateStart",{params:s});try{var{data:c}=yield u.c.validateLeaveApplyForm(s);return O("submitLeaveFormValidateDone",{params:s,data:c}),c.apply_hit_texts&&c.apply_hit_texts.length>0?c.apply_hit_texts[0].hit_text:null}catch(e){O("submitLeaveFormValidateError",{err:e,params:s})}})),P.apply(this,arguments)}var U=(e,t)=>e?null:Object(m.t)("Telephone.NoEmpty",{type:h.a[t]})},function(e,t,a){"use strict";a.d(t,"h",(function(){return n})),a.d(t,"e",(function(){return p})),a.d(t,"c",(function(){return m})),a.d(t,"d",(function(){return h})),a.d(t,"b",(function(){return g})),a.d(t,"g",(function(){return v})),a.d(t,"f",(function(){return O})),a.d(t,"a",(function(){return f}));var r=a(28),i="devtools",n=tt.getSystemInfoSync();!function(){var e=tt.getSystemInfoSync,t=tt.getSystemInfo;tt.getSystemInfoSync=()=>n,tt.getSystemInfo=e=>{e.success(n)};var a=null,r=tt.getNetworkType;tt.getNetworkType=e=>{null===a&&(a=new Promise(((e,t)=>{r({fail:e=>{a=null,t(e)},success:t=>{e(t)}})}))),a.then((t=>{try{var a;null===(a=e.success)||void 0===a||a.call(e,t)}catch(e){setTimeout((()=>{throw e}),0)}})).catch((t=>{var a;null===(a=e.fail)||void 0===a||a.call(e,t)}))},setTimeout((()=>{tt.getNetworkType=r,tt.getSystemInfoSync=e,tt.getSystemInfo=t}),5e3)}();var o,{platform:s,brand:c,model:l,screenHeight:d,safeArea:u}=n,p=l.toLowerCase()===r.d||c===r.d,m=s===i||c===i||l===i,h="ios"===s||/ios/i.test(s),{language:b}=(l.includes("iPad"),n);function g(){return b||"en_US"}function v(){}if(!p&&h){var{bottom:j=0}=u;/iphone x/i.test(l),/iPhone11/i.test(l)}function O(e){o=p?e?"appCenter":"sideBar":h?"ios":"android"}function f(){return o}},function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return O}));var r,i=a(5),n=a(9),o=a(37),s=a(3),c=a(8),l=a.n(c),d=a(1),u=a(69),p=a(285),m=a(72),h=a(65),b=(a(1165),a(0)),g=["position","fixed","text","delay","leaveDelay","className","textClass","textStyle","children","normal","textCenter","maxWidth","arrow","disabled","textWrap","wordWrap","arrowStyle","arrowClass","defaultVisible","beforeEnter","onMouseEnter","onMouseLeave","customFixedPosition","transferSelector"],v="approval-tooltip",j=Object(u.h)(v);!function(e){e.TOP="top",e.Right="right",e.Bottom="bottom",e.BottomLeft="bottom-left",e.Left="left"}(r||(r={}));var O=e=>{var{position:t=r.TOP,fixed:a=!1,text:c="",delay:u=0,leaveDelay:O=0,className:f,textClass:M,textStyle:_,children:y,normal:D=!1,textCenter:N=!0,maxWidth:A,arrow:T,disabled:I,textWrap:C,wordWrap:x,arrowStyle:S,arrowClass:w,defaultVisible:L=!1,beforeEnter:E,onMouseEnter:k,onMouseLeave:z,customFixedPosition:R,transferSelector:P}=e,U=Object(o.a)(e,g),B=Object(s.useMemo)((()=>"tooltip_".concat(Object(m.c)())),[]),[F,Y]=Object(s.useState)(L),[Q,G]=Object(s.useState)({}),[W,V]=Object(s.useState)(!1),[H,Z]=Object(p.a)({beforeEnter:E,onEnter:e=>{V(!0),null==k||k(e),a&&X(),u<=0&&O<=0||Y(!0)},onLeave:e=>{null==z||z(e),a&&$(),u<=0&&O<=0||Y(!1)},delay:u,leaveDelay:O}),q=l()(v,{["".concat(j(),"--hover")]:F,["".concat(j(),"--active")]:u<=0},f),K=l()(j("tips"),{[j("tips--normal")]:D,[j("tips--".concat(t))]:t,[j("no_animation")]:t!==r.Bottom,[j("isinit")]:!W,center:N,"max-width":A,disabled:I,"no-wrap":!C&&!x,wrap:C&&!x,"word-wrap":x},M),J=l()("iconfont",j("tips--arrow"),{[j("tips--arrow--".concat(t))]:t},"icon-arrow",w),X=function(){var e=Object(n.a)((function*(){var e=yield Object(h.a)("#".concat(B)),a=yield Object(n.a)((function*(){if(!P||!e)return e;var t=yield Object(h.a)(P);return t?Object(i.a)(Object(i.a)({},e),{},{top:e.top-t.top,left:e.left-t.left,right:t.right-e.right,bottom:t.bottom-e.bottom}):e}))();if(a){var r={position:"fixed",zIndex:11};switch(t){case"top":r.top="".concat(a.top-10,"px"),r.left="".concat(a.left+a.width/2,"px");break;case"bottom":case"bottom-left":r.top="".concat(a.bottom-10,"px"),r.left="".concat(a.left+a.width/2,"px");break;case"left":r.left="".concat(a.left-10,"px"),r.top="".concat(a.top+a.height/2,"px");break;case"right":r.right="".concat(a.right-10,"px"),r.top="".concat(a.top+a.height/2,"px")}G(r)}}));return function(){return e.apply(this,arguments)}}(),$=()=>{G({})};return Object(b.jsxs)(d.r,Object(i.a)(Object(i.a)({className:q},U),{},{onMouseEnter:H,onMouseLeave:Z,id:B,children:[y,Object(b.jsxs)(d.r,{className:K,style:Object(i.a)(Object(i.a)(Object(i.a)({},Q),_),{},{wordBreak:"break-word"}),children:[T&&Object(b.jsx)(d.r,{className:J,style:S}),c]})]}))};t.c=O},function(e,t,a){"use strict";a.d(t,"a",(function(){return G}));var r,i=a(6),n=a(3),o=a.n(n),s=a(1),c=a(445),l=a(13),d=a(14),u=a(20),p=a(9),m=a(1466),h=a(31),b=a.n(h),g=a(153),v=a(16),j=a(2),O=a(10),f=a(144),M=a(26),_=a(24),y=a(109),D=a(589),N=a(36),A=a(8),T=a.n(A),I=a(152),C=a.n(I),x=a(207),S=a.n(x);!function(e){e[e.CREATE=0]="CREATE",e[e.EDIT=1]="EDIT",e[e.MODIFY=2]="MODIFY"}(r||(r={}));var w=a(661),L=(a(1317),a(0)),E="edit-history-modal",k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(E,"__").concat(e):E},z={[r.CREATE]:Object(j.t)("Submit"),[r.EDIT]:Object(j.t)("Edit"),[r.MODIFY]:Object(j.t)("ModifyTag")},R={[l.a.NONE]:"",[l.a.BOTH]:Object(j.t)("Detail_HistoryAndModifyLink"),[l.a.EDIT]:Object(j.t)("Detail.HistoryLink"),[l.a.MODIFY]:Object(j.t)("Detail_ModifyLink")};class P extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"state",{error:null,loading:!1,visible:!1,historyList:[]}),Object(i.a)(this,"handleSimpleModalClose",(()=>{this.setState({visible:!1})}))}componentWillUnmount(){Object(d.b)(this)}UNSAFE_componentWillMount(){var{myRef:e}=this.props;e(this)}show(){this.loadHistory().catch((e=>{var t;O.a.error("getFormHistory failed"),this.setState({error:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"getFormHistory failed"})})),this.setState({visible:!0})}getNodeType(e,t,a){return 0===t&&"null"!==a.infos[0].content?r.CREATE:e===D.b.MODIFY?r.MODIFY:r.EDIT}loadHistory(){var e=this;return Object(p.a)((function*(){var t,{widget:a,ctxId:r}=e.props,i=Object(d.d)(r),{configurableFormStore:n,userStore:o}=i,{instanceInfo:s}=n;if(s){var c=[];for(var l of n.genWidgetDescendants(a)){var{data:{visible:u,readable:p,isRestored:h}}=l;u&&p&&h&&c.push(Object(M.q)(l.id))}var{indexStore:g}=_.b;e.setState({error:null,loading:!0});var j=yield v.c.instancegetFormHistory({widgetId:Object(m.a)(c),instanceId:s.instanceId,shareCode:s.shareCode},{query:g.searchStore.isSubSearch?{subordinateID:null===(t=g.currentActive)||void 0===t?void 0:t.AssigneeID}:{}});e.setState({loading:!1});var{data:y}=j;if(null==y||!y.infos)throw new Error("Failed to get form edit history!");e.setState({historyList:y.infos.filter((e=>{var{content:t}=e;return"null"!==t})).map(((t,r)=>{var{userName:s,createTime:c,content:l,modifyType:u,userAvatarUrl:p,userId:m}=t,h=new f.c({userStore:o,useEditorIfWritable:!1});for(var g of(h.manualInitWithRestore([n.getOldField(a.id)],JSON.parse(l)),h.genAllWidgetsWithChildren()))g?(g.data.writable=!1,g.data.hasHistory=!1):O.a.warn("${prefixClass}: has undefined widget");return{changeTime:b()(c).format("YYYY-MM-DD HH:mm:ss"),ctxId:Object(d.c)(i,{configurableFormStore:h},e),userName:s,nodeType:e.getNodeType(u,r,y),avatarUrl:p,userId:m}}))})}}))()}renderHistoryList(){var{historyList:e}=this.state;return e.map((e=>{var{userName:t,avatarUrl:a,changeTime:i,ctxId:n,nodeType:o,userId:c}=e;return Object(L.jsxs)(s.r,{className:k("record"),children:[Object(L.jsx)(s.r,{className:"left-line"}),Object(L.jsx)(s.r,{className:"left-point"}),Object(L.jsxs)(s.r,{className:"item-title",children:[Object(L.jsxs)(s.r,{className:"item-title-left",children:[Object(L.jsxs)(s.r,{className:"user-info",onClick:e=>{Object(N.q)(c,e)},children:[Object(L.jsx)(s.g,{src:a,className:"user-avatar"}),Object(L.jsx)(s.p,{className:"user-info-name",children:t})]}),Object(L.jsx)(s.p,{className:"item-title-left-time",children:i})]}),Object(L.jsx)(s.r,{className:"status-tag ".concat(r[o].toLowerCase()),children:z[o]})]}),Object(L.jsx)(w.a,{ctxId:n})]},i)}))}renderHistoryContent(){var{error:e,loading:t}=this.state;return e?Object(L.jsx)(s.r,{className:k("error"),children:Object(L.jsx)(s.g,{className:k("loading-image"),src:S.a})}):t?Object(L.jsx)(s.r,{className:k("loading"),children:Object(L.jsx)(s.g,{className:k("loading-image"),src:C.a})}):this.renderHistoryList()}render(){var{ctxId:e,widget:t}=this.props;if(!e)return null;var{visible:a}=this.state;return Object(L.jsx)(g.a,{visible:a,onMaskClick:this.handleSimpleModalClose,children:Object(L.jsxs)(s.r,{className:k(),children:[Object(L.jsxs)(s.r,{className:k("header"),children:[Object(L.jsx)(s.r,{className:k("header-title"),children:R[t.data.historyType]}),Object(L.jsx)(s.r,{className:k("header-close"),onClick:this.handleSimpleModalClose,children:Object(L.jsx)(s.r,{className:T()("header-icon","iconfont","icon-icon-close")})})]}),Object(L.jsx)(s.n,{className:"".concat(k("history")),"scroll-y":!0,"scroll-with-animation":!0,children:this.renderHistoryContent()})]})})}}var U=o.a.memo((e=>{var{onChange:t}=e,a=Object(y.b)(t),{indexStore:{detailModuleStore:r}}=Object(_.c)(),{activeWidgetIDsForEditHistory:i}=r,o=Object(y.b)(r);return Object(n.useEffect)((()=>{var e,t;null!=i&&i.length&&(null===(e=a.current)||void 0===e||e.call(a,i),null===(t=o.current)||void 0===t||t.setActiveWidgetIDForEditHistory([]))}),[i,o,a]),null})),B=a(12),F=a(787),Y=a.n(F),Q=Object(u.c)("pc:src/components/configurable-form/components/edit-history/edit-history-button/index.tsx");class G extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"modal",void 0),Object(i.a)(this,"handleModalRef",(e=>{this.modal=e})),Object(i.a)(this,"handleTextClick",(()=>{var e,{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(d.d)(a);t.data.historyType===l.a.EDIT&&Object(B.b)("edit_button_track",{click_time:(new Date).valueOf(),instance_id:null===(e=r.instanceInfo)||void 0===e?void 0:e.instanceId}),Q("detailViewHistory"),this.modal.show()}))}render(){var{widget:e,ctxId:t}=this.props;if(Object(c.a)("pc-pages/create-form/index"),!t)return null;var{configurableFormStore:a}=Object(d.d)(t);return null!=a&&a.instanceInfo?Object(L.jsxs)(s.r,{className:Y.a["edit-history-button"],children:[Object(L.jsx)(s.p,{className:Y.a.text,onClick:this.handleTextClick,children:R[e.data.historyType]}),Object(L.jsx)(P,{ctxId:t,widget:e,myRef:this.handleModalRef},e.id),Object(L.jsx)(U,{onChange:t=>{null!=t&&t.includes(e.id)&&this.modal.show()}})]}):null}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));var r=a(5),i=a(37),n=a(6),o=a(3),s=a(1),c=a(8),l=a.n(c),d=a(72),u=(a(1162),a(0)),p=["isSingleLine","className","hightlightStyle","breakWord"];class m extends o.Component{constructor(){super(...arguments),Object(n.a)(this,"state",{result:[]})}shouldComponentUpdate(e){var{content:t,keyword:a}=e,{content:r,keyword:i}=this.props;return r!==t||i!==a}UNSAFE_componentWillMount(){var{keyword:e="",content:t=""}=this.props;this.calcResult(String(t),e)}UNSAFE_componentWillReceiveProps(e){var{keyword:t="",content:a}=e;this.props.keyword===t&&this.props.content===a||this.calcResult(String(a),t)}calcResult(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e=Object(d.f)(e),0!==t.length){var a=Object(d.a)(e,t);this.setState({result:a})}else this.setState({result:[{text:e,isHighlight:!1}]})}render(){var{result:e}=this.state,t=this.props,{isSingleLine:a,className:n,hightlightStyle:o,breakWord:c}=t,d=Object(i.a)(t,p),m=l()("highlight-wrap",c&&"highlight-wrap__break-word",a&&"highlight-wrap-single",n);return Object(u.jsx)(s.r,Object(r.a)(Object(r.a)({className:m},d),{},{children:e.map(((e,t)=>Object(u.jsx)(s.p,{className:e.isHighlight?"highlight-text":"",selectable:!0,style:o,children:e.text},t)))}))}}},,function(e,t,a){"use strict";function r(e){return e?JSON.stringify(e,Object.getOwnPropertyNames(e)):""}a.d(t,"a",(function(){return r}))},function(e,t,a){"use strict";a.d(t,"l",(function(){return s})),a.d(t,"i",(function(){return r})),a.d(t,"j",(function(){return l})),a.d(t,"a",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"c",(function(){return d})),a.d(t,"k",(function(){return m})),a.d(t,"f",(function(){return p})),a.d(t,"g",(function(){return v})),a.d(t,"b",(function(){return j})),a.d(t,"d",(function(){return O})),a.d(t,"h",(function(){return h}));var r,i=a(2),n=a(23),o=!a(28).u,s=[Object(i.t)("list.time_all"),Object(i.t)("list.time_days"),Object(i.t)("list.time_week"),Object(i.t)("list.time_month"),Object(i.t)("list.time_custome")];!function(e){e[e.All=0]="All",e[e.Day=1]="Day",e[e.Week=2]="Week",e[e.Month=3]="Month",e[e.Custome=4]="Custome"}(r||(r={}));var c,l=o?[Object(i.t)("list.approval_all_status"),Object(i.t)("list.approval_pending"),Object(i.t)("list.approval_agreed"),Object(i.t)("list.approval_reject"),Object(i.t)("list.approval_canceled"),Object(i.t)("list.approval_delete"),Object(i.t)("list.approval_terminated"),Object(i.t)("list.approval_timeover")]:[Object(i.t)("list.approval_all_status"),Object(i.t)("list.approval_pending"),Object(i.t)("list.approval_agreed"),Object(i.t)("list.approval_reject"),Object(i.t)("list.approval_canceled"),Object(i.t)("list.approval_delete"),Object(i.t)("list.approval_terminated")];!function(e){e[e.All=0]="All",e[e.Running=1]="Running",e[e.Approved=2]="Approved",e[e.Rejected=3]="Rejected",e[e.Canceled=4]="Canceled",e[e.Deleted=5]="Deleted",e[e.Terminated=6]="Terminated",e[e.TaskTimeover=7]="TaskTimeover"}(c||(c={}));var d,u={[c.All]:c.All,[c.Running]:n.f.Running,[c.Approved]:n.f.Approved,[c.Rejected]:n.f.Rejected,[c.Canceled]:n.f.Canceled,[c.Deleted]:n.f.Deleted,[c.Terminated]:n.f.Terminated,[c.TaskTimeover]:n.f.Running};!function(e){e[e.Desc=0]="Desc",e[e.Asc=1]="Asc"}(d||(d={}));var p,m=[Object(i.t)("list.approval_unread"),Object(i.t)("list.approval_only_unread")];!function(e){e[e.ALL=0]="ALL",e[e.UNREAD=1]="UNREAD",e[e.READ=2]="READ"}(p||(p={})),Object(i.t)("ReviewedList_SortType_Desc"),Object(i.t)("ReviewedList_SortType_Asc");var h,b=[Object(i.t)("list.filter_reach_fisrst"),Object(i.t)("list.filter_waiter_first")],g=[Object(i.t)("list.filter_new_handle"),Object(i.t)("list.filter_early_handle")],v={todo:b,done:g,cc:[Object(i.t)("list.filter_reach_fisrst"),Object(i.t)("list.filter_waiter_first")],shared:b,create:[Object(i.t)("list.filtet_new_create"),Object(i.t)("list.filter_early_create")],ceoTodo:b,ceoDone:g},j="display_count",O="modified_instance_id";!function(e){e.Create="create",e.Index="index",e.Efficiency="efficiency",e.DataExport="dataexport"}(h||(h={})),Object(i.t)("SubmitRequest"),h.Create,Object(i.t)("header.tabs_index"),h.Index},,function(e,t,a){"use strict";var r,i,n;a.d(t,"k",(function(){return i})),a.d(t,"d",(function(){return n})),a.d(t,"h",(function(){return h})),a.d(t,"e",(function(){return o})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return u})),a.d(t,"b",(function(){return p})),a.d(t,"g",(function(){return m})),a.d(t,"i",(function(){return b})),a.d(t,"j",(function(){return g})),a.d(t,"f",(function(){return v})),function(e){e[e.FREE=1]="FREE",e[e.NORMAL=2]="NORMAL"}(r||(r={})),function(e){e.LEAVE="leave",e.REST="rest"}(i||(i={})),function(e){e[e.APPROVED=0]="APPROVED",e[e.REJECTED=1]="REJECTED",e[e.IN_PROCESS=2]="IN_PROCESS",e[e.WITHDRAW=3]="WITHDRAW",e[e.DELETED=4]="DELETED",e[e.MODIFY_APPROVED=5]="MODIFY_APPROVED",e[e.MODIFY_WITHDRAW=6]="MODIFY_WITHDRAW",e[e.MODIFY_REJECT=7]="MODIFY_REJECT",e[e.MODIFY_IN_PROCESS=8]="MODIFY_IN_PROCESS",e[e.CLEARED=9]="CLEARED",e[e.CRC_COMPLETED=101]="CRC_COMPLETED",e[e.CRC_NULL=102]="CRC_NULL",e[e.TERMINATED=103]="TERMINATED"}(n||(n={}));var o,s,c,l,d,u,p,m,h="|";(function(e){e[e.REQUESTER=0]="REQUESTER",e[e.APPROVER=1]="APPROVER",e[e.CCER=2]="CCER",e[e.OTHER=3]="OTHER"})(o||(o={})),function(e){e[e.InstanceAgreed=0]="InstanceAgreed",e[e.InstanceRejected=1]="InstanceRejected",e[e.InstancePending=2]="InstancePending",e[e.InstanceRecalled=3]="InstanceRecalled",e[e.InstanceDeleted=4]="InstanceDeleted",e[e.InstanceCompleted=101]="InstanceCompleted"}(s||(s={})),function(e){e[e.Pending=0]="Pending",e[e.Agreed=1]="Agreed",e[e.Rejected=2]="Rejected",e[e.Redirected=3]="Redirected",e[e.Repeated=6]="Repeated"}(c||(c={})),function(e){e[e.PENDING=0]="PENDING",e[e.APPROVED=1]="APPROVED",e[e.CC=2]="CC",e[e.INITIATED=3]="INITIATED"}(l||(l={})),function(e){e[e.IN_PROCESS=0]="IN_PROCESS",e[e.APPROVED=1]="APPROVED",e[e.REJECTED=2]="REJECTED",e[e.REDIRECTED=3]="REDIRECTED",e[e.NONE=4]="NONE",e[e.AUTO_AGREED=6]="AUTO_AGREED",e[e.CRC_PROCESSED=101]="CRC_PROCESSED"}(d||(d={})),function(e){e.LARK="lark",e.OA="oa"}(u||(u={})),function(e){e.APPROVED="searchcompleteList",e.CC="searchcopyList",e.INITIATED="searchinitList",e.PENDING="searchactiveList",e.RELATIVE="searchcompleteListByConnectWidget"}(p||(p={})),function(e){e[e.AllOW_MODIFY=0]="AllOW_MODIFY",e[e.HAS_OTHER_GROUP=1]="HAS_OTHER_GROUP",e[e.FORBID_MODIFY=2]="FORBID_MODIFY",e[e.MODIFY_EXPIRED=3]="MODIFY_EXPIRED",e[e.NO_BUTTON=4]="NO_BUTTON"}(m||(m={}));var b=13,g=1,v={BRANCH:"BRANCH",START:"START",END:"END",NORMAL:"NORMAL",APPROVAL:"APPROVAL",CONDITION:"CONDITION",ROUTE:"ROUTE",HLINE:"HLINE"}},function(e,t,a){"use strict";a(3);var r=a(1),i=a(8),n=a.n(i),o=(a(1176),a(0));t.a=e=>{var{required:t,children:a,subTitle:i}=e;return Object(o.jsxs)(r.r,{className:"form-item-title-wrapper",children:[Object(o.jsx)(r.r,{className:n()("form-item-title",{required:t}),children:a}),i&&Object(o.jsx)(r.p,{className:"form-item-subtitle",children:i})]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"e",(function(){return D})),a.d(t,"c",(function(){return A})),a.d(t,"b",(function(){return T})),a.d(t,"d",(function(){return L}));var r,i=a(5),n=a(9),o=a(4),s=a(157),c=a(16),l=a(33),d=a(2),u=a(20),p=a(103),m=a(18),h=a(13),b=a(38),g=a(116),v=a(26),j=a(574),O=a(232),f=a(35),M=a(58),_=a(25),y=Object(u.c)("pc:src/components/configurable-form/components/widgets/leave-group-v2/index.ts");!function(e){e.Type="widgetLeaveGroupType",e.StartTime="widgetLeaveGroupStartTime",e.EndTime="widgetLeaveGroupEndTime",e.Duration="widgetLeaveGroupInterval",e.Reason="widgetLeaveGroupReason",e.Unit="widgetLeaveGroupUnit",e.AttendanceUnit="widgetLeaveGroupAttendanceUnit",e.TimeOfArrivingLate="widgetLeaveGroupFeedingArrivingLate",e.TimeOfOffLeaveEarly="widgetLeaveGroupFeedingOffLeaveEarly",e.TimeOfDailyBreaks="widgetLeaveGroupFeedingRestDaily",e.Certification="widgetLeaveCertification",e.PregnancyCheckUp="widgetLeavePregnancyCheckUp",e.InfantNum="widgetLeaveInfantNum",e.DifficultLabour="widgetLeaveDifficultLabour",e.PremaritalCheckUp="widgetLeavePremaritalCheckUp",e.PregnancyAge="widgetLeavePregnancyAge",e.RelationType="widgetLeaveFamilyRelationType",e.TimeZoneType="widgetLeaveTimeZoneType"}(r||(r={}));var D={[r.PregnancyCheckUp]:M.a.PrepregnancyCheck,[r.InfantNum]:M.a.FetusesNumber,[r.DifficultLabour]:M.a.Dystocia,[r.PremaritalCheckUp]:M.a.PrenuptialExamination,[r.PregnancyAge]:M.a.PregnancyMonth,[r.RelationType]:M.a.RelativeKind},N={[M.a.PrepregnancyCheck]:r.PregnancyCheckUp,[M.a.FetusesNumber]:r.InfantNum,[M.a.Dystocia]:r.DifficultLabour,[M.a.PrenuptialExamination]:r.PremaritalCheckUp,[M.a.PregnancyMonth]:r.PregnancyAge,[M.a.RelativeKind]:r.RelationType},A=e=>e.every((e=>Boolean(e))),T=e=>t=>t.id===e,I=e=>[r.Type,r.StartTime,r.EndTime,r.Duration,r.TimeOfArrivingLate,r.TimeOfOffLeaveEarly,r.TimeOfDailyBreaks,r.Certification,r.TimeZoneType].map((t=>e.find(T(t)))),C=Object(o.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[a,i]=[r.Unit,r.Duration].map((t=>e.find((e=>e.id===t))));if(null!=a&&a.data.value){var n="".concat(Object(d.t)("Brackets",{innerText:t?Object(d.t)("LeaveGroup.BalanceUnitDay"):(null==a?void 0:a.data.value.text)||""}));null!=i&&i.data.name&&!i.data.name.includes(n)&&(i.data.name+=n)}}));function x(){return x=Object(n.a)((function*(e,t){var{instanceInfo:a}=t;if(a){var{instanceId:r,instanceIdList:n}=a,s={instanceId:n&&n.length?n[0]:r,shareCode:a.shareCode},d=yield Object(O.a)();y("detailLeaveDetailStart",{params:s,isLeaveRefactorGray:d});var u=yield Object(p.k)(c.c,s,void 0,d);y("detailLeaveDetailDone",{data:u,isLeaveRefactorGray:d}),u.leaveDetail&&u.leaveDetail.length&&(u.leaveDetail=u.leaveDetail.map((e=>Object(i.a)(Object(i.a)({},e),{},{range:Object(v.e)([e.rangeDateTime[0],e.rangeDateTime[1]])})))),yield Object(l.s)(),e=t.getWidget(e.id);var{data:{children:h,ext:b={}}}=e;Object(o.s)((()=>{var t=(null==b?void 0:b.widgetLeaveRuleType)===m.e.BreastFeeding;C(h,t),e.data.schedules=u.schedules,e.data.leaveDetail=u.leaveDetail,e.data.leaveQuota=u.leaveQuota,e.data.isLeaveRefactorGray=d}))}})),x.apply(this,arguments)}var S=Object(s.a)(Object(o.k)((function*(e,t){var{data:{children:[a,r,n,o],isLeaveRefactorGray:s}}=e,{instanceId:c,modify:l}=(null==t?void 0:t.params)||{},u=t.insteadSubmitManager.currentSubmitterIsNotCurrentUser;if(a.data.value){var p,m,{leaveT:h}=a.data.value;if(h)if(void 0===s&&(y("detailLeaveGreyStart",Object(i.a)({instanceId:c},null==a||null===(p=a.data)||void 0===p?void 0:p.value)),s=yield Object(O.a)(),y("detailLeaveGreyDone",Object(i.a)({instanceId:c},null==a||null===(m=a.data)||void 0===m?void 0:m.value))),s&&(r.data.value&&(r.data.validationError=null),n.data.value&&(n.data.validationError=null)),r.data.value&&n.data.value){if(n.data.validationError=Object(b.b)(r.data.value,n.data.value,null,"",r.data.name,n.data.name),n.data.validationError)return;var[g,v]=yield Object(b.i)(a.data.value.value,r.data.value,n.data.value,h.balanceUnit,l?c:void 0,u?t.insteadSubmitManager.currentSubmitterId:void 0,s,r.data.timezoneOffset);if(o.data.validationError=null!=v&&v.attendanceExist?"":Object(d.t)("LeaveGroup.CurrentNoWork","当前无班次,不需要请假"),o.data.validationError)return;o.data.validationWarning=g?u?Object(d.t)("LeaveGroup.CurrentHasLeave","当前时间段已存在请假记录"):Object(d.t)("LeaveGroup.ConflictStartEnd","{{timeRange}} 已请假,为避免浪费假期,建议重新选择请假时间",{timeRange:g}):"";var j={title:Object(d.t)("LeaveGroup.CurrentHasLeave","当前时间段已存在请假记录"),content:u?"":Object(d.t)("LeaveGroup.ConflictTimeRange","{{timeRange}} 已请假,继续请假会导致重复扣除假期额度,确定提交吗",{timeRange:g}),cancelText:Object(d.t)("LeaveGroup.BackToModify","返回修改"),confirmText:Object(d.t)("LeaveGroup.ConfirmSubmit","确认提交")};if(t.updateValidationPrompts(o.id,g?j:null),o.data.validationError)return;if(o.data.value&&0===Number(o.data.value.value))return void(o.data.validationError=Object(d.t)("PC.Error_NoZero"));var[f]=yield Object(b.h)({definitionId:a.data.value.value,startTime:r.data.value,endTime:n.data.value,durationLeft:h.balanceQuota,balanceUnit:h.balanceUnit,originInstanceId:l?c:void 0,imitateUserId:t.insteadSubmitManager.currentSubmitterId,timezoneOffset:r.data.timezoneOffset},t,s);h.balanceUsed&&(o.data.validationError=f)}}})),100),w=e=>{try{return"string"==typeof e.ext?JSON.parse(e.ext||"{}"):Object(i.a)({},e.ext)}catch(e){k("Failed to parse the 'ext' property in form definition of LeaveGroupV2",JSON.stringify(e,Object.getOwnPropertyNames(e)))}return{}},L={type:h.c.LEAVE_GROUP_V2,inputFormat(e,t){Object(g.a)(e,t);var{id:a}=e,r={id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,historyType:h.a.NONE,validationWarning:"",widgetDefaultValue:"",enableDefaultValue:!1,leaveDetail:[],schedules:[],required:Boolean(e.required),placeholder:e.placeholder||"",isNeedCertificate:!1,certificateHint:"",ext:w(e),children:t.widgetsInputFormat(e.value)}};return function(e,t){x.apply(this,arguments)}(r,t),r},outputFormat(e,t){z(e)&&E(e,e.data.isLeaveRefactorGray),console.log("bolt widget.data.children",e.data.children);var a={id:Object(v.q)(e.id),type:e.type,value:e.data.children.some((e=>e.data.required))&&!e.data.visible?null:t.widgetsOutputFormat(e.data.children),ext:e.data.ext,displayCondStatus:e.data.visible};return console.log("bolt ret",a),a},restoreFormat:Object(o.f)(((e,t,a)=>{var i;return e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.ext=w(t),a.widgetsRestoreFormat(t.value),(null===(i=e.data.ext)||void 0===i?void 0:i.widgetLeaveRuleType)===m.e.BreastFeeding&&e.data.children.forEach((e=>{e.id===r.Reason&&(e.data.visible=!1)})),e})),restoreWithDraftFormat:Object(o.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e))),printFormat(e,t){var{children:a,ext:i={}}=e.data,n=(null==i?void 0:i.widgetLeaveRuleType)===m.e.BreastFeeding;C(a,n);var o=Object(v.u)(a,[r.StartTime,r.EndTime,r.Duration],r.Reason);if(n){var s=I(a).filter((e=>Boolean(e))),c=[r.PregnancyCheckUp,r.InfantNum,r.DifficultLabour,r.PremaritalCheckUp,r.PregnancyAge,r.RelationType].map((e=>a.find(T(e))));for(var l of c)l&&l.data.required&&s.push(l);return t.widgetsPrintFormat(s)}var d=t.widgetsPrintFormat(o.filter((e=>![r.AttendanceUnit,r.Unit].includes(e.id))).filter((e=>!!_.d.fgLeaveGroupTimeZone||e.id!==r.TimeZoneType)));return d},reset(e,t,a){if(L.genChildren)for(var{id:r}of L.genChildren(e))a.resetWidgetData(r)},*genChildren(e){yield*e.data.children},onSomeWidgetChange(e,t,a){e.id!==t&&e.data.children.every((e=>e.id!==t))||"widgetLeaveGroupReason"===t&&e.data.children[4].data.value||("widgetLeaveGroupInterval"===t&&a.handleWidgetChange(e.id,!0),z(e)?R(e,a,!0):S(e,a))},validate:Object(o.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;var{data:{children:i}}=e,n=z(e);if(n){var o=[r.TimeOfArrivingLate,r.TimeOfOffLeaveEarly,r.TimeOfDailyBreaks,r.Certification].map((e=>i.find(T(e))));if(o.forEach((e=>{e&&(e.data.required=n)})),!(yield R(e,t,a)))return!1;if(e.data.isLeaveRefactorGray){var s,c,{data:{children:u,children:[p,m,h,g]}}=e;if(!p.data.value)return!1;var{leaveT:v}=p.data.value,j=(null!=v&&v.isLeaveRefactorGray&&null!==(s=null===(c=v.customForm)||void 0===c?void 0:c.custom_item_list)&&void 0!==s?s:[]).map((e=>{var t,a=u.find((t=>t.id===N[e.input_type]));if(!a)return null;var r=null===(t=a.data.value)||void 0===t?void 0:t.value;return r?{input_type:e.input_type,user_input:r}:null})).filter((e=>null!==e)),{instanceId:O,modify:M}=(null==t?void 0:t.params)||{},_=t.insteadSubmitManager.currentSubmitterIsNotCurrentUser;if(!a&&p.data.value&&m.data.value&&h.data.value){var y,D,A=yield Object(b.g)(p.data.value.value,m.data.value,h.data.value,M?O:void 0,_?t.insteadSubmitManager.currentSubmitterId:void 0,{custom_item_list:j},null==g||null===(y=g.data)||void 0===y||null===(D=y.value)||void 0===D?void 0:D.value);if(A)return f.b.showToast({title:A,icon:"error"}),!1}}return!0}if(a){yield Object(l.s)(1e3);var I=!0;for(var C of e.data.children){if(C.data.required&&C.data.visible&&!(I=!Object(b.c)(C.data.value||C.data.uploadImageList)))return I;if(C.data.validationError)return!1;if("widgetLeaveGroupInterval"===C.id&&(!C.data.value||0===Number(C.data.value.value)))return!1}return I}for(var x of(yield S(e,t),e.data.children))if(x.data.validationError)return!1;if(t.validateAllCount)for(var w of e.data.children)if(w.data.required&&w.data.visible&&(w.data.validationError=w.data.validationError||Object(b.c)(w.data.value||w.data.uploadImageList)),"radioV2"===w.type&&"widgetLeaveGroupInterval"===w.id){var L=w.data.value;L&&"string"!=typeof L&&0===Number(L.value)&&(w.data.validationError=Object(d.t)("PC.Error_NoZero"))}for(var E of e.data.children)if(E.data.validationError)return!1;if(e.data.isLeaveRefactorGray){var k,P,{data:{children:U,children:[B,F,Y,Q]}}=e;if(!B.data.value)return!1;var{leaveT:G}=B.data.value,W=(null!=G&&G.isLeaveRefactorGray&&null!==(k=null===(P=G.customForm)||void 0===P?void 0:P.custom_item_list)&&void 0!==k?k:[]).map((e=>{var t,a=U.find((t=>t.id===N[e.input_type]));if(!a)return null;var r=null===(t=a.data.value)||void 0===t?void 0:t.value;return r?{input_type:e.input_type,user_input:r}:null})).filter((e=>null!==e)),{instanceId:V,modify:H}=(null==t?void 0:t.params)||{},Z=t.insteadSubmitManager.currentSubmitterIsNotCurrentUser;if(!a&&B.data.value&&F.data.value&&Y.data.value){var q,K,J=yield Object(b.g)(B.data.value.value,F.data.value,Y.data.value,H?V:void 0,Z?t.insteadSubmitManager.currentSubmitterId:void 0,{custom_item_list:W},null==Q||null===(q=Q.data)||void 0===q||null===(K=q.value)||void 0===K?void 0:K.value);if(J)return f.b.showToast({title:J,icon:"error"}),!1}}return!0})),onSubmitterChange(e,t,a){a.resetWidgetData(t.id)}},E=Object(o.f)(((e,t)=>{var{data:{children:a}}=e,i=z(e);a.forEach((e=>{e&&(e.data.visible=!i)})),I(a).forEach((e=>{e&&(e.data.visible=i)}));var n=e.data.children.find((e=>e.id===r.Unit));if(n&&(n.data.visible=i),t){var o=[r.PregnancyCheckUp,r.InfantNum,r.DifficultLabour,r.PremaritalCheckUp,r.PregnancyAge,r.RelationType,r.TimeZoneType].map((e=>a.find(T(e))));for(var s of o)s&&(s.data.visible=i)}})),k=(e,t)=>{y("commonOnError",{file:"src/components/configurable-form/components/widgets/leave-group-v2/index.ts",message:e,error:t})},z=e=>{var t,a,i=e.data.children.find(T(r.Type));return m.e.BreastFeeding===(null==i||null===(t=i.data.value)||void 0===t||null===(a=t.leaveT)||void 0===a?void 0:a.balanceOfferRuleType)},R=Object(s.a)(Object(o.k)((function*(e,t){var a,i,n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{data:{children:s,isLeaveRefactorGray:c}}=e,[l,u,p,m,h,g,v,f]=I(s),M=e=>(k("[".concat(R.name,"] Some widget(s) is null! ").concat(JSON.stringify(e))),!1),_=(e,t)=>{o||(t.data.validationError=e)};if(null==l||null===(a=l.data.value)||void 0===a||!a.leaveT)return l?(_(Object(d.t)("PC.Error_NoZero"),l),!1):M({LeaveType:l});var{leaveT:y}=l.data.value;if(null==u||!u.data.value)return u?(_(Object(d.t)("PC.Error_NoZero"),u),!1):M({StartTime:u});if(null==p||!p.data.value)return p?(_(Object(d.t)("PC.Error_NoZero"),p),!1):M({EndTime:p});if(p.data.validationError=Object(b.b)(u.data.value,p.data.value,null,"",u.data.name,p.data.name),!p.data.validationError){if(null==m||!m.data.value||0===Number(null==m?void 0:m.data.value.value))return m?(_(Object(d.t)("PC.Error_NoZero"),m),!1):M({Duration:m});var{instanceId:D,modify:N}=t.params||{},A=t.insteadSubmitManager.currentSubmitterIsNotCurrentUser;void 0===c&&(c=yield Object(O.a)());var[C,x]=yield Object(b.h)({definitionId:l.data.value.value,startTime:u.data.value,endTime:p.data.value,durationLeft:y.balanceQuota,balanceUnit:y.balanceUnit,originInstanceId:N?D:void 0,timezoneOffset:u.data.timezoneOffset},t,c);m.data.validationError=C;var{isNeedCertificate:S,certificateHint:w}=null!=x?x:{};if(e.data.isNeedCertificate=null!=S&&S,e.data.certificateHint=null!=w?w:"",f&&(f.data.required=S,f.data.visible=S,S||(f.data.uploadImageList=[])),m.data.validationError)return!1;var{calcError:L=!1,calcWarning:E=""}=yield Object(b.a)(l.data.value.value,u.data.value,p.data.value,t.insteadSubmitManager.currentSubmitterId,N?D:void 0,c);if(m.data.validationError=L?Object(d.t)("LeaveGroup.CurrentNoWork","当前无班次,不需要请假"):"",m.data.validationError)return!1;m.data.validationWarning=E?A?Object(d.t)("LeaveGroup.CurrentHasLeave","当前时间段已存在请假记录"):Object(d.t)("LeaveGroup.ConflictStartEnd","{{timeRange}} 已请假,为避免浪费假期,建议重新选择请假时间",{timeRange:E}):"";var z={title:Object(d.t)("LeaveGroup.CurrentHasLeave","当前时间段已存在请假记录"),content:A?"":Object(d.t)("LeaveGroup.ConflictTimeRange","{{timeRange}} 已请假,继续请假会导致重复扣除假期额度,确定提交吗",{timeRange:E}),cancelText:Object(d.t)("LeaveGroup.BackToModify","返回修改"),confirmText:Object(d.t)("LeaveGroup.ConfirmSubmit","确认提交")};if(t.updateValidationPrompts(m.id,E?z:null),null==h||null===(i=h.data.value)||void 0===i||!i.value)return h?(_(Object(d.t)("PC.Error_NoZero"),h),!1):M({TimeOfArrivingLate:h});if(null==g||null===(n=g.data.value)||void 0===n||!n.value)return g?(_(Object(d.t)("PC.Error_NoZero"),g),!1):M({TimeOfOffLeaveEarly:g});if(null==v||!v.data.value||0===Number(null==v?void 0:v.data.value))return v?(_(Object(d.t)("PC.Error_NoZero"),v),!1):M({TimeOfDailyBreaks:v});if(c){var P=[r.PregnancyCheckUp,r.InfantNum,r.DifficultLabour,r.PremaritalCheckUp,r.PregnancyAge,r.RelationType].map((e=>s.find(T(e)))),U=!1;for(var B of P)if(B){var F=B.data.required?Object(b.c)(B.data.value):null;_(F,B),F&&(U=!0)}if(U)return!1}return!e.data.isNeedCertificate||!!f&&(f.data.writable=!0,yield j.a.validate(f,t,o))}})))},function(e,t,a){"use strict";var r=a(9),i=a(5),n=a(6),o=a(20),s=a(72),c=a(44),l=Object(o.c)("shared:src/services/task/index.ts"),d={add:"taskMangerAdd",remove:"taskMangerRemove",executeNext:"taskMangerExecuteNext",executeTask:"taskMangerExecuteTask"};var u=new class{constructor(){var e=this;Object(n.a)(this,"taskMap",new Map),Object(n.a)(this,"list",[]),Object(n.a)(this,"suspend",!0),Object(n.a)(this,"executing",!1),Object(n.a)(this,"setSuspend",(e=>{e!==this.suspend&&(this.suspend=e,this.executeTask())})),Object(n.a)(this,"add",(t=>{var{key:a=Object(s.c)(),task:i,onError:n}=t,o=function(){var t=Object(r.a)((function*(){e.taskMap.delete(a);try{yield i()}catch(t){n?(e.reportTrace("add",{message:Object(c.a)(t)}),n(t)):e.reportError(t,"add")}}));return function(){return t.apply(this,arguments)}}();this.taskMap.has(a)||this.list.push(a),this.taskMap.set(a,o),this.executeTask(),this.reportTrace("add",{key:a})})),Object(n.a)(this,"remove",(e=>{this.taskMap.has(e)?(this.removeTask(e),this.taskMap.delete(e),this.reportTrace("remove")):this.reportError("remove key does not exists","remove")})),Object(n.a)(this,"executeTask",Object(r.a)((function*(){if(!e.suspend&&!e.executing){for(e.executing=!0;e.list.length&&!e.suspend;)yield e.executeNext();e.executing=!1,e.reportTrace("executeTask",{rest_task:e.list.length})}}))),Object(n.a)(this,"removeTask",(e=>{var t=this.list.indexOf(e);t>=0&&this.list.splice(t,1)})),Object(n.a)(this,"executeNext",Object(r.a)((function*(){var t=Date.now();e.reportTrace("executeNext",{message:"start execute task"});var a=e.list.shift(),r=e.taskMap.get(a);yield r(),e.reportTrace("executeNext",{message:"end execute task",cost_time:Date.now()-t})}))),Object(n.a)(this,"reportError",((e,t,a)=>{"string"!=typeof e&&(e=Object(c.a)(e)),l("commonOnError",Object(i.a)({message:e,location:"src/utils/task-manager.ts TaskManager.".concat(t)},a))})),Object(n.a)(this,"reportTrace",((e,t)=>{l(d[e],t)}))}get pendingList(){return this.list.slice()}get isExecuting(){return this.executing}get isSuspend(){return this.suspend}};Object(o.b)((()=>{u.setSuspend(!1)}));var p=u,m=a(39),h=m.e?"pc":"mobile";function b(e,t){return"boolean"==typeof t?t?"".concat(h,"_").concat(Object(m.b)(),"_").concat(e):e:"".concat(h,"_").concat(t,"_data_").concat(e,"_").concat(Object(m.b)())}var g=Object(o.c)("shared:src/services/storage/index.ts"),v={init:"storageManagerInit",get:"storageManagerGet",getSync:"storageManagerGetSync",set:"storageManagerSet",remove:"storageManagerRemove",removeSync:"storageManagerRemoveSync",clear:"storageManagerClear",clearSync:"storageManagerClearSync",storageInfo:"storageManagerStorageInfo",addWhiteKey:"storageManagerAddWhiteKey"};t.a=new class{constructor(){var e=this;Object(n.a)(this,"moduleName","storage-manager"),Object(n.a)(this,"storage",new Map),Object(n.a)(this,"whiteKeys",new Set),Object(n.a)(this,"checkAndClear",(()=>{var e=this.getRestSize()<1024;return e&&this.syncAndClear(),e})),Object(n.a)(this,"syncAndClear",(()=>{this.syncWhiteKeyStorage("pull"),this.syncClear(),this.syncWhiteKeyStorage("push")})),Object(n.a)(this,"getStorageInfo",(()=>{try{var e=tt.getStorageInfoSync();return this.reportTrace("storageInfo",{has_value:e?1:0}),e}catch(e){return void this.reportError(e,"storageInfo")}})),Object(n.a)(this,"genTaskKey",(function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(e.moduleName,"_").concat(t,"_").concat(a)})),Object(n.a)(this,"reportTrace",((e,t)=>{g(v[e],t)})),Object(n.a)(this,"reportError",((e,t,a)=>{"string"!=typeof e&&(e=Object(c.a)(e)),g("commonOnError",Object(i.a)({message:e,location:"src/utils/storage-manager.ts StorageManager.".concat(t)},a))})),Object(n.a)(this,"syncStorage",((e,t)=>{if("pull"===t){if(!this.storage.has(e)){var a=this.syncGet(e);void 0!==a&&this.storage.set(e,a)}}else this.storage.has(e)&&this.syncSet(e,this.storage.get(e))})),Object(n.a)(this,"syncWhiteKeyStorage",(e=>{this.whiteKeys.forEach((t=>this.syncStorage(t,e)))})),Object(n.a)(this,"get",function(){var t=Object(r.a)((function*(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t=b(t,a),e.storage.has(t)){var r=e.storage.get(t);return e.reportTrace("get",{key:t,has_value:1}),r}var i=yield e.asyncGet(t);return e.storage.set(t,i),i}));return function(e){return t.apply(this,arguments)}}()),Object(n.a)(this,"getSync",(function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){t=b(t,a);var r=e.storage.get(t);if(void 0!==r)return e.reportTrace("getSync",{key:t,has_value:1}),r;var i=e.syncGet(t);return void 0!==i&&e.storage.set(t,i),i}e.reportError("key is empty!","getSync")})),Object(n.a)(this,"set",(function(t,a){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;if(!t)return e.reportError("key is empty!","set"),null==n?void 0:n(!1);t=b(t,i),e.storage.set(t,a);var o=e.genTaskKey("set",t),s=function(){var i=Object(r.a)((function*(){if(yield e.asyncSet(t,a))return null==n?void 0:n(!0);if(e.checkAndClear()){var r=yield e.asyncSet(t,a);return null==n?void 0:n(r)}null==n||n(!1)}));return function(){return i.apply(this,arguments)}}();p.add({key:o,task:s})})),Object(n.a)(this,"remove",(function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(t=b(t,a),e.storage.delete(t),e.asyncRemove(t)):(e.reportError("key is empty!","remove"),Promise.resolve())})),Object(n.a)(this,"removeSync",(function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?(t=b(t,a),e.storage.delete(t),e.syncRemove(t)):e.reportError("key is empty!","removeSync")})),Object(n.a)(this,"clear",(()=>(this.storage.clear(),this.asyncClear()))),Object(n.a)(this,"clearSync",(()=>{this.storage.clear(),this.syncClear()})),Object(n.a)(this,"syncGet",(e=>{try{var t=tt.getStorageSync(e);return this.reportTrace("getSync",{key:e,has_value:void 0===t?0:1}),t}catch(t){this.reportError(t,"getSync",{key:e})}})),Object(n.a)(this,"asyncGet",(e=>new Promise(((t,a)=>{tt.getStorage({key:e,success:a=>{var{data:r}=null!=a?a:{};this.reportTrace("get",{key:e,has_value:void 0===r?0:1}),t(r)},fail:t=>{this.reportError(t,"get",{key:e}),a(t)}})})))),Object(n.a)(this,"asyncSet",((e,t)=>new Promise((a=>{tt.setStorage({key:e,data:t,success:()=>{this.reportTrace("set",{key:e}),a(!0)},fail:t=>{this.reportError(t,"set",{key:e}),a(!1)}})})))),Object(n.a)(this,"syncSet",((e,t)=>{try{return tt.setStorageSync(e,t),this.reportTrace("set",{key:e}),!0}catch(t){return this.reportError(t,"set",{key:e}),!1}})),Object(n.a)(this,"syncRemove",(e=>{try{tt.removeStorageSync(e),this.reportTrace("removeSync",{key:e})}catch(e){this.reportError(e,"removeSync")}})),Object(n.a)(this,"asyncRemove",(e=>new Promise((t=>{tt.removeStorage({key:e,success:()=>{this.reportTrace("remove",{key:e})},fail:e=>{this.reportError(e,"remove")},complete:t})})))),Object(n.a)(this,"asyncClear",(()=>new Promise((e=>{tt.clearStorage({success:()=>{this.reportTrace("clear")},fail:e=>{this.reportError(e,"clear")},complete:e})})))),Object(n.a)(this,"syncClear",(()=>{try{tt.clearStorageSync(),this.reportTrace("clearSync")}catch(e){this.reportError(e,"clearSync")}}));var t=Date.now();setTimeout((()=>{this.reportTrace("init",{reportTimestamp:t})}),5e3),Object(o.b)((()=>{m.d&&this.checkAndClear()}))}getRestSize(){var e=this.getStorageInfo();return e?e.limitSize-e.currentSize:0}addWhiteKey(e){Array.isArray(e)?e.forEach((e=>this.whiteKeys.add(e))):this.whiteKeys.add(e),this.reportTrace("addWhiteKey",{key:e})}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(55),i={UserInfo:{user_id:"",user_name:"",web_id:"",app_id:""},EnvInfo:{token:"",survey_type:r.j.Embedded,client_env:r.d.NativeWebview,device:r.i.Mobile,language:"zh_CN",sdk_version:"@ad/feelgood-mini-sdk v0.0.10",url:""},TaskConfig:{},Labels:{do_not_show_again:"不再显示",please_enter:"请输入",submit_success:"提交成功",submit_btn:"提交"},FormValue:{},Channel:r.c.CN}},function(e,t,a){e.exports={"card-content":"index-module__card-content___2_Lgo",enhanced:"index-module__enhanced___35BSl","flip-out":"index-module__flip-out___329tN","quick-card-border":"index-module__quick-card-border___1bsfP","card-wrapper":"index-module__card-wrapper___1j65O","is-active":"index-module__is-active___3wMeX","quick-modal":"index-module__quick-modal___1-wFS","action-wrapper":"index-module__action-wrapper___3WbB6","cc-read":"index-module__cc-read___2sUOt",readed:"index-module__readed___Ml14A","combina-label":"index-module__combina-label___38RTI","name-wrapper":"index-module__name-wrapper___GJMHy","depart-wrapper":"index-module__depart-wrapper___3Xrbe","create-user":"index-module__create-user___5anGJ","field-wrapper":"index-module__field-wrapper___IC92h","external-wrapper":"index-module__external-wrapper___2Ra8I","time-wrapper":"index-module__time-wrapper___tyChn","tag-label":"index-module__tag-label___3Qqi1","right-wrapper":"index-module__right-wrapper___3SFDe","header-wrapper":"index-module__header-wrapper___3bir8","checkbox-wrapper":"index-module__checkbox-wrapper___3ZQQ_",content:"index-module__content___bEl0n","batch-mode":"index-module__batch-mode___2pSvb","combina-wrapper":"index-module__combina-wrapper___3zK8S","red-dot":"index-module__red-dot___3cBno","defineimg-wrapper":"index-module__defineimg-wrapper___3vIaJ","definition-image":"index-module__definition-image___2eGE7","users-label":"index-module__users-label___19GM3","creater-wrapper":"index-module__creater-wrapper___2rluN","custom-title":"index-module__custom-title___IoOaK","highlight-wrap-single":"index-module__highlight-wrap-single___2ZNy6","left-wrapper":"index-module__left-wrapper___3TVRo",definename:"index-module__definename___3kX9n","custom-title-definename":"index-module__custom-title-definename___17VJk","status-label-wrapper":"index-module__status-label-wrapper___QPVzb","status-wrapper":"index-module__status-wrapper___2g_nI","approval-wrapper":"index-module__approval-wrapper___OKAqD","refuse-wrapper":"index-module__refuse-wrapper___21ya7","agree-wrapper":"index-module__agree-wrapper___3ix8b","external-tag":"index-module__external-tag___35nyY","important-cc-tag":"index-module__important-cc-tag___2Ce7I","user-wrapper":"index-module__user-wrapper___2ciJt","avatar-wrapper":"index-module__avatar-wrapper___2LK27","avatar-default":"index-module__avatar-default___2u9TO","single-field-wrapper":"index-module__single-field-wrapper___3lHyo","right-wrapper-content":"index-module__right-wrapper-content___VbV4I","foot-content":"index-module__foot-content___SNx1M","subordinate-wrapper":"index-module__subordinate-wrapper___T0v57","subordinate-normal-text":"index-module__subordinate-normal-text___1u3dl","vertical-line":"index-module__vertical-line___PYR80","agent-wrapper":"index-module__agent-wrapper___2I91Q","todo-wrapper":"index-module__todo-wrapper___23UIj","reminder-wrapper":"index-module__reminder-wrapper___1uuGE","content-wrapper":"index-module__content-wrapper___3wpK8","action-btn":"index-module__action-btn___2OjoQ"}},function(e,t,a){"use strict";var r,i,n,o;a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"e",(function(){return s})),function(e){e.Shown="shown",e.Closed="closed",e.Submitted="submitted"}(r||(r={})),function(e){e.Dialog_Closed="FG_Dialog_Closed",e.CMD_Dialog_Close="FG_CMD_Dialog_Close",e.KeyboardShow="FG_KeyboardShow",e.KeyboardHide="FG_KeyboardHide",e.CMD_Dialog_Show="FG_CMD_Dialog_Show",e.CMD_Question_Validate="FG_CMD_Question_Validate"}(i||(i={})),function(e){e.Form_SingleQuestionValueChange="ValueChange",e.ScrollToQuestion="ScrollToQuestion"}(n||(n={})),function(e){e.KeyboardStatusChanged="keyboardstatuschanged",e.onWindowResize="onWindowResize"}(o||(o={}));var s=new class{constructor(){!function(e,t,a){t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}(this,"events",{})}addListener(e,t){var a=this.events[e];Array.isArray(a)?a.push(t):this.events[e]=[t]}trigger(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var i=this.events[e];Array.isArray(i)&&i.forEach((e=>{e(...a)}))}removeListener(e,t){var a=this.events[e];Array.isArray(a)&&(this.events[e]=a.filter((e=>e!==t)))}toggle(){}removeAllListeners(e){this.events[e]=null}}},function(e,t,a){"use strict";a.r(t),a.d(t,"OFFLINE_ASSETS_PATH",(function(){return s})),a.d(t,"FG_VERSION_KEY",(function(){return c})),a.d(t,"FG_CREATE_APPROVAL",(function(){return l})),a.d(t,"FG_NEW_SEARCH_API_KEY",(function(){return d})),a.d(t,"FG_VIEW_OTHER_TASKS",(function(){return u})),a.d(t,"FG_CUSTOM_DEVTOOL",(function(){return p})),a.d(t,"FG_DELEGATION",(function(){return m})),a.d(t,"FG_UGC_APPROVAL",(function(){return h})),a.d(t,"FG_ADMIN_EFFICIENCY",(function(){return b})),a.d(t,"FG_DISPLAY_SOURCE",(function(){return g})),a.d(t,"FG_QUICKLY_APPROVAL",(function(){return v})),a.d(t,"FG_SECOND_APPROVAL",(function(){return j})),a.d(t,"FG_COMMENT_AT_PERSON",(function(){return O})),a.d(t,"FG_ENABLE_NORMAL_TRUSTEESHIP",(function(){return f})),a.d(t,"FG_SEARCH_SUB_APPROVAL",(function(){return M})),a.d(t,"FG_TRIP_ADDRESS_V2",(function(){return _})),a.d(t,"FG_ENABLE_DOCX",(function(){return y})),a.d(t,"SIDEBAR_DETAIL_WHITE_BG",(function(){return D})),a.d(t,"FG_DETAIL_TABLE",(function(){return N})),a.d(t,"FG_BATCH_APPROVAL_NEXT",(function(){return A})),a.d(t,"FG_FIXED_DOC_SIZE",(function(){return T})),a.d(t,"FG_DATA_EXPORT",(function(){return I})),a.d(t,"FG_BITABLE",(function(){return C})),a.d(t,"FG_STARTER_EDIT_DOC",(function(){return x})),a.d(t,"FG_SHOW_APPROVAL_NAME",(function(){return S})),a.d(t,"FG_DEFINITION_SHARE",(function(){return w})),a.d(t,"FG_PROCESS_ANALYSIS",(function(){return L})),a.d(t,"FG_PULL_CHANGE_INTERVAL",(function(){return E})),a.d(t,"FG_COLLABORATION_TENANT_APPROVAL",(function(){return k})),a.d(t,"FG_ENABLE_CHOOSE_CROSS_TENANT",(function(){return z})),a.d(t,"FG_OPEN_SEAL_ACCOUNT",(function(){return R})),a.d(t,"FG_SHOW_DETAIL_OPTION_BTN",(function(){return P})),a.d(t,"FG_AT_FORM_EDIT",(function(){return U})),a.d(t,"FG_AT_FORM_EDIT_P1",(function(){return B})),a.d(t,"FG_AT_FORM_EDIT_P2",(function(){return F})),a.d(t,"FG_AT_FORM_EDIT_TELEPHONE",(function(){return Y})),a.d(t,"FG_SELECT_EXTERNAL_DATA_SEARCH",(function(){return Q})),a.d(t,"FG_AT_FORM_EDIT_ADDRESS",(function(){return G})),a.d(t,"FG_AT_FORM_EDIT_WIDGET_GROUPS",(function(){return W})),a.d(t,"FG_AT_FORM_EDIT_FIELD_LIST",(function(){return V})),a.d(t,"FG_AT_FORM_EDIT_FIELD_LIST_MINI",(function(){return H})),a.d(t,"FG_USE_COMMENT_CONFIRM",(function(){return Z})),a.d(t,"FG_ENABLE_DRIVE",(function(){return q})),a.d(t,"FG_ENABLE_AT_DRIVE_EDIT",(function(){return K})),a.d(t,"FG_CUSTOMIZE_PRINT",(function(){return J})),a.d(t,"FG_USE_TYPOGRAPHY_PRINT",(function(){return X})),a.d(t,"FG_ENABLE_USER_SELECT_CACHE",(function(){return $})),a.d(t,"FG_USE_UNCONTROLLED_TEXTAREA",(function(){return ee})),a.d(t,"FG_ENABLE_GROUP_TIME_CHECK",(function(){return te})),a.d(t,"FG_COMPLEXITY_THRESHOLD",(function(){return ae})),a.d(t,"FG_USE_CURRENCY_API",(function(){return re})),a.d(t,"FG_ENABLE_CHECK_CREATE_PREPARE_API",(function(){return ie})),a.d(t,"FG_ENHANCED_APPROVAL_LIST",(function(){return ne})),a.d(t,"FG_ENABLE_TABLE_BATCH_IMPORT",(function(){return oe})),a.d(t,"FG_GLOBAL_BATCH_APPROVAL",(function(){return se})),a.d(t,"FG_BITABLE_CONNECTOR",(function(){return ce})),a.d(t,"FG_LEAVE_GROUP_TIME_ZONE",(function(){return le})),a.d(t,"FG_ENABLE_THIRD_PARTY_CREATE_PAGE",(function(){return de})),a.d(t,"FG_PC_TEAM_EFFICIENCY_2",(function(){return ue})),a.d(t,"FG_ENABLE_AUTO_APPROVAL_SETTING",(function(){return pe})),a.d(t,"PresetFeatureGatingKeys",(function(){return me})),a.d(t,"UserGroupingRequst",(function(){return he}));var r=a(5),{trusteeshipConfig:i,setIsPc:n,setAtVersion:o}=a(989);n(),o();var s="offline-assets/",c="approval.web.pc_version",l="approval.web.pc_create_approval",d="approval.web.new_search_api",u="approval.web.view_other_tasks",p="approval.web.customdevtool",m="approval.web.delegation",h="approval.web.ugc_approval",b="approval.web.efficiency",g="approval.web.display_source",v="approval.web.quickly_approval",j="approval.web.second_approval",O="approval.web.comment_at_person",f="approval.web.enable_normal_trusteeship",M="approval.web.search_sub_approval",_="approval.web.trip_address_v2",y="approval.web.enable_docx",D="approval.web.sidebar_detail_white_bg",N="approval.web.field_list_widget_table_type",A="approval.batch_approval.next",T="approval.web.fixed_doc_size",I="approval.web.data_export",C="approval.web.bitable",x="approval.web.starter_edit_doc",S="approval.web.show_approval_node_name",w="approval.web.definition_share",L="approval.web.process_analysis",E="approval.web.pull_change_interval",k="approval.web.collaboration_tenant_approval",z="approval.web.enable_choose_cross_tenant",R="automation.attendance.seal_account",P="approval.web.no_permission_show_optional_btn",U="approval.web.at_form_edit",B="approval.web.at_form_edit_p1",F="approval.web.at_form_edit_p2",Y="approval.web.at_form_edit_telephone",Q="approval.web.enable_external_data_v2",G="approval.web.at_form_edit_address",W="approval.web.at_form_edit_widget_groups",V="approval.web.at_form_edit_field_list",H="approval.web.at_form_edit_field_list_mini",Z="approval.web.use_comment_confirm",q="approval.web.enable_drive",K="approval.web.enable_at_drive_edit",J="approval.web.customize_print",X="approval.web.use_typography_print",$="approval.web.enable_user_select_cache",ee="approval.web.use_uncontrolled_textarea",te="approval.web.enable_group_time_check",ae="approval.web.complexity_threshold",re="approval.web.new_currency_api",ie="approval.web.enable.check_create_prepare_api",ne="approval.web.enable_enhanced_approval_list",oe="approval.web.enable_table_batch_import",se="approval.global_batch_approval",ce="approval.web.bitable_connector",le="approval.web.leave_group_time_zone",de="approval.web.enable_third_party_create_page",ue="approval.web.pc_efficiency_dashboard_2",pe="approval.web.auto_approval_setting",me=[c,l,d,u,p,m,h,b,g,v,j,O,f,M,_,y,D,N,A,T,I,C,S,x,w,L,E,k,R,P,z,U,B,F,Y,G,W,Z,q,K,V,H,J,X,$,ee,te,re,ne,oe,ie,ce,Q,le,se,pe,de,ue,ae],he=[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:me}},{UserDepartmentInfoApi:{}},{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:60,StartGroupID:"",StartDefinitionID:""}},{IsLeaderEfficiency:{}},{CountTask:{Filter:{},AllowDistinctOnly:[2,3,18]}},{MGetTenantManager:{ManagerTypes:[1]}}];function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.push("host_url","approval_language"),{method:"POST",header:{"content-type":"application/json","X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredHeaderKeys:["content-type"],requiredStorageKeys:e}}}var ge=Object(r.a)(Object(r.a)({},be()),{},{data:{Requests:[{ListTask:{Direction:1,Filter:{DefinitionKeys:[],EndTimestamp:"",Querystring:"",StartTimestamp:"",Topic:1},NextPageToken:"",Order:2,PageSize:30}},{CountTask:{AllowDistinctOnly:[2,3,18],Filter:{}}},{GetLastCursor:{}}]}}),ve=Object(r.a)(Object(r.a)({},be()),{},{data:{Requests:he}}),je=Object(r.a)(Object(r.a)({},be()),{},{data:{Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{IgnoreGroupIDs:[],QueryString:"",Reverse:!1,Status:[0]},PageSize:80,StartDefinitionID:"",StartGroupID:""}}]}});var Oe=Object(r.a)(Object(r.a)({},be()),{},{data:{approvalId:"${id}"}});var fe={"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":Object(r.a)(Object(r.a)({},be()),{},{data:{Requests:[{UserInfoApi:{}},{UserConfigApi:{FeatureGatingKeys:["approval.web.efficiency_diagnosis","approval.web.mobile_version","approval.web.new_search_api","approval.web.mobile_create_approval","approval.web.view_other_tasks"]}}]}})};t.default={pages:["pc-pages/team-efficiency/index","pc-pages/index/index","pc-pages/create-form/index","pc-pages/setting/index","pc-pages/delegation/index","pc-pages/process-analysis/index","pc-pages/error/index","pc-pages/auto-approval/index","test-pages/document-trusteeshop-demo/index","pc/pages/approved/index","pc/pages/cc-2-me/index","pc/pages/requested/index","pc/pages/create-form/index","pc/pages/in-process/index","pc/pages/create/index","pc/pages/efficiency/index","pc/pages/data-export/index"],window:{backgroundTextStyle:"light",navigationBarBackgroundColor:"#fff",navigationBarTitleText:"Approval",navigationBarTextStyle:"black"},ext:{defaultPages:{sidebarMode:"pages/approval-list/index",PCMode:"pc-pages/index/index"}},offlineAssetsPath:s,prefetchRules:Object(r.a)(Object(r.a)(Object(r.a)({},function(){var e={};for(var t of["pc-pages/index/index","pc/pages/in-process/index","pc/pages/home/index","pc/pages/requested/index","pc/pages/cc-2-me/index","pc/pages/approved/index"])e[t]={"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[ge,ve,je],"${host_url}/approval/web/api/v2/GetTask?locale=${approval_language}":Object(r.a)(Object(r.a)({},be()),{},{data:{ID:"${id}"}}),"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":Object(r.a)(Object(r.a)({},be()),{},{data:{FetchLatest:!0,Topic:1,parentId:"",shareCode:""}})};return e}()),function(){var e={};for(var t of["pc-pages/create-form/index","pc/pages/create-form/index"])e[t]={"${host_url}/approval/web/api/instance/createPrepare?locale=${approval_language}":[Oe],"${host_url}/approval/web/api/v2/Grouping?locale=${approval_language}":[ve]};return e}()),{},{"package-detail-at/detail-at/index":Object(r.a)({},i),"pages/detail/index":Object(r.a)(Object(r.a)({},fe),{},{"${host_url}/approval/web/api/instance/detail?locale=${approval_language}":[Object(r.a)(Object(r.a)({},be()),{},{data:{instanceId:"${instanceId}",shareCode:"${shareCode}"}}),Object(r.a)(Object(r.a)({},be()),{},{data:{instanceId:"${instanceId}"}})]},i)})}},function(e,t,a){"use strict";(function(e,r,i,n){var o,s,c,l,d,u,p,m,h,b,g,v,j,O,f,M,_,y,D,N,A,T,I,C,x,S,w,L,E,k,z,R,P,U,B,F,Y,Q,G,W,V,H,Z,q,K,J;a.d(t,"a",(function(){return P})),a.d(t,"b",(function(){return T})),a.d(t,"c",(function(){return y})),a.d(t,"d",(function(){return l})),a.d(t,"e",(function(){return E})),a.d(t,"f",(function(){return u})),a.d(t,"g",(function(){return J})),a.d(t,"h",(function(){return re})),a.d(t,"i",(function(){return c})),a.d(t,"j",(function(){return C})),a.d(t,"k",(function(){return _})),a.d(t,"l",(function(){return z})),a.d(t,"m",(function(){return fe})),a.d(t,"n",(function(){return ve})),a.d(t,"o",(function(){return je})),a.d(t,"p",(function(){return Oe})),a.d(t,"q",(function(){return ge})),a.d(t,"r",(function(){return _e})),function(e){e.formValueChange="formValueChange",e.submit="submit",e.submitStarted="submit-started",e.submitCompleted="submit-completed",e.expanded="expanded",e.shown="shown",e.close="close",e.hidden="hidden",e.cancel="cancel",e.error="error",e.refuse="refuse",e.openSurveyLink="open-survey-link",e.destroy="destroy",e.ready="ready",e.screenshotselecting="screenshotselecting",e.screenshotclosed="screenshotclosed",e.progress="progress"}(o||(o={})),function(e){e.destroy="destroy",e.open="open"}(s||(s={})),function(e){e.Desktop="desktop",e.Mobile="mobile",e.Tablet="tablet",e.Auto="auto"}(c||(c={})),function(e){e[e.Web=1]="Web",e[e.NativeWebview=2]="NativeWebview",e[e.Electron=3]="Electron"}(l||(l={})),function(e){e.PlatformEnv="platform-env",e.SurveyType="survey-type",e.I18nLabels="i18n-labels",e.RootDispatch="root-dispatch",e.IsPreview="is-preview",e.FormStyleSettings="form-style-settings",e.Theme="theme",e.ScreenshotType="ScreenshotType"}(d||(d={})),function(e){e[e.PlainText=10]="PlainText",e[e.ShortAnswer=1]="ShortAnswer",e[e.SingleSelect=2]="SingleSelect",e[e.MultiSelect=3]="MultiSelect",e[e.Rating=4]="Rating",e[e.Scale=5]="Scale",e[e.TrueOrFalse=6]="TrueOrFalse",e[e.MatrixSelect=7]="MatrixSelect"}(u||(u={})),function(e){e.Direct="direct",e.Expandable="expandable"}(p||(p={})),function(e){e[e.Page=0]="Page",e[e.Btn=1]="Btn"}(m||(m={})),function(e){e.Dialog="dialog",e.Popover="popover"}(h||(h={})),function(e){e.DesktopNormal="desktop-normal",e.DesktopCenter="desktop-center",e.MobileCenter="mobile-center",e.MobileBottom="mobile-bottom",e.MobileBottomPopover="mobile-bottom-popover"}(b||(b={})),function(e){e[e.Circle=1]="Circle",e[e.Square=2]="Square",e[e.QueationnaireWithWords=3]="QueationnaireWithWords",e[e.Queationnaire=4]="Queationnaire",e[e.Note=5]="Note",e[e.EnvelopeWithAwards=6]="EnvelopeWithAwards",e[e.OneColSquare=7]="OneColSquare"}(g||(g={})),function(e){e.Left="left",e.Right="right",e.Center="center",e.Top="top",e.Bottom="bottom",e.Middle="middle"}(v||(v={})),function(e){e.Entry="athena-survey-entry",e.EntryInner="athena-survey-entry__inner",e.EntryExpanded="athena-survey-entry__expanded",e.EntryMsgIcon="athena-survey-entry__icon--msg",e.EntryCloseIcon="athena-survey-entry__icon--close",e.EntryLabel="athena-survey-entry__label",e.Widget="athena-survey-widget",e.Form="athena-form",e.WidgetHasBanner="athena-has-banner",e.WidgetBanner="athena-widget-banner",e.WidgetMask="athena-widget-mask",e.WidgetFirstExpand="athena-widget-first-expand",e.WidgetHasMaxHeight="athena-has-max-height",e.WidgetIsNps="athena-survey-nps",e.WidgetIsRating="athena-survey-rating"}(j||(j={})),function(e){e.Emoji="emoji",e.Star="star",e.Number="number",e.Select="select"}(O||(O={})),function(e){e.Thumb="thumb",e.Face="face",e.Text="text"}(f||(f={})),function(e){e.Normal="normal",e.Tag="tag"}(M||(M={})),function(e){e.TaskShow="survey_show_cnt",e.TaskExpand="survey_expand_cnt"}(_||(_={})),function(e){e.CN="cn",e.VA="va",e.SG="sg",e.IN="in"}(y||(y={})),y.CN,y.SG,y.VA,y.IN,y.CN,y.SG,y.VA,y.IN,function(e){e.zhCN="zh_CN",e.zhHK="zh_HK",e.jaJP="ja_JP",e.koKR="ko_KR"}(D||(D={})),function(e){e.LTR="ltr",e.RTL="rtl"}(N||(N={})),(()=>{if(void 0===e)return D.zhCN;var t=(e.languages?e.languages[0]:e.language)||"";"zh"===t&&(t=D.zhCN),(t=t.replace("-","_"))||D.zhCN})(),function(e){e[e.No=0]="No",e[e.Yes=1]="Yes"}(A||(A={})),function(e){e[e.DoNotShowAgain=0]="DoNotShowAgain",e[e.IDontKnow=1]="IDontKnow",e[e.Customize=2]="Customize"}(T||(T={})),function(e){e[e.SystemDefault=0]="SystemDefault",e[e.Custom=1]="Custom"}(I||(I={})),function(e){e[e.Embedded=100]="Embedded",e[e.StandAlone=200]="StandAlone",e[e.StandAloneWithEntry=201]="StandAloneWithEntry"}(C||(C={})),function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.Deleted=3]="Deleted"}(x||(x={})),function(e){e.PV="page_view",e.TimeOnPage="exposure_duration",e.SessionTimeOnPage="session_exposure_duration",e.ElementExposureDuration="btn_exposure_duration",e.ElementShowCnt="btn_show_cnt",e.ElementHoverCnt="btn_hover_cnt",e.ElementClickCnt="btn_click_cnt"}(S||(S={})),function(e){e[e.Or=0]="Or",e[e.And=1]="And"}(w||(w={})),function(e){e[e.Greater=0]="Greater",e[e.Equal=1]="Equal",e[e.Smaller=2]="Smaller",e[e.GreaterOrEqual=3]="GreaterOrEqual",e[e.SmallerOrEqual=4]="SmallerOrEqual",e[e.Contain=5]="Contain",e[e.NotContain=6]="NotContain"}(L||(L={})),function(e){e[e.None=0]="None",e[e.All=1]="All",e[e.Selected=2]="Selected"}(E||(E={})),function(e){e.Default="default",e.Verbose="verbose"}(k||(k={})),function(e){e[e.Feelgood=1]="Feelgood",e[e.TikTok=2]="TikTok",e[e.Lark=3]="Lark",e[e.Baike=4]="Baike",e[e.Aweme=5]="Aweme",e[e.Aweme2=6]="Aweme2",e[e.AILab=7]="AILab",e[e.People=8]="People"}(z||(z={})),function(e){e[e.ThankyouPanel=0]="ThankyouPanel",e[e.ToastMsg=1]="ToastMsg"}(R||(R={})),function(e){e[e.OnlyThankyouMessage=0]="OnlyThankyouMessage",e[e.ThankyouAndRedirectBtn=1]="ThankyouAndRedirectBtn",e[e.ThankyouAndAutoRedirect=2]="ThankyouAndAutoRedirect",e[e.None=3]="None"}(P||(P={})),function(e){e[e.No=0]="No",e[e.Yes=1]="Yes"}(U||(U={})),function(e){e[e.Disbale=0]="Disbale",e[e.Enable=1]="Enable"}(B||(B={})),function(e){e[e.DontLock=0]="DontLock",e[e.DontLockForm=1]="DontLockForm",e[e.LockWholePage=2]="LockWholePage"}(F||(F={})),function(e){e.ReportVersion="x-feelgood-api-version",e.ReportId="x-fg-report-id",e.TeaId="x-fg-tea-id",e.SlardarWebId="x-fg-slardar-id",e.DeviceId="x-fg-device-id",e.LoginSystem="x-fg-login-system"}(Y||(Y={})),function(e){e.None="0",e.BytedanceSSO="1"}(Q||(Q={})),function(e){e[e.Real=1]="Real",e[e.Virtual=2]="Virtual",e[e.Thankyou=3]="Thankyou"}(G||(G={})),function(e){e[e.Post=1]="Post",e[e.InstantShowCoupon=11]="InstantShowCoupon"}(W||(W={})),function(e){e.Displaying="displaying",e.Drawing="drawing",e.Result="result"}(V||(V={})),function(e){e.Twinkle="twinkle",e.Still="still",e.Disabled="disabled"}(H||(H={})),function(e){e[e.Thankyou=0]="Thankyou",e[e.Win=1]="Win",e[e.DuplicateDraw=2]="DuplicateDraw"}(Z||(Z={})),function(e){e[e.Success=1]="Success",e[e.DuplicateRegister=2]="DuplicateRegister",e[e.UncompleteInfo=3]="UncompleteInfo",e[e.WrongCaptcha=4]="WrongCaptcha",e[e.NoLeft=5]="NoLeft",e[e.FailAndRetry=6]="FailAndRetry"}(q||(q={})),function(e){e.Question="route-question",e.SuccessPage="route-success",e.LuckydrawRegister="route-luckydraw-register",e.LuckydrawResult="route-luckydraw-result"}(K||(K={})),function(e){e[e.None=0]="None",e[e.Phone=1]="Phone",e[e.Email=2]="Email"}(J||(J={}));var X,$,ee,te,ae,re={Phone:/^\d{11}$/,Email:/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i};function ie(e,t){return e(t={exports:{}},t.exports),t.exports}!function(e){e[e.EveryTrue=0]="EveryTrue",e[e.AnyTrue=1]="AnyTrue",e[e.EveryFalse=2]="EveryFalse",e[e.AnyFalse=3]="AnyFalse"}(X||(X={})),function(e){e.Info="info",e.Success="success",e.Loading="loading"}($||($={})),function(e){e[e.OnlySelected=1]="OnlySelected",e[e.FromLowestToSelected=2]="FromLowestToSelected"}(ee||(ee={})),function(e){e[e.Center=1]="Center",e[e.Normal=2]="Normal",e[e.Hidden=3]="Hidden"}(te||(te={})),function(e){e[e.Normal=1]="Normal",e[e.Tick=2]="Tick"}(ae||(ae={}));for(var ne=ie((function(e,t){e.exports={polyfill:function(){var e=r,t=i;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var a,n=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||l,scrollIntoView:n.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,c=(a=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(a)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==d(arguments[0])?g.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(d(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==d(arguments[0])){var e=arguments[0].left,t=arguments[0].top;g.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==d(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==d(arguments[0])){var a=h(this),r=a.getBoundingClientRect(),i=this.getBoundingClientRect();a!==t.body?(g.call(this,a,a.scrollLeft+i.left-r.left,a.scrollTop+i.top-r.top),"fixed"!==e.getComputedStyle(a).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(e,t){this.scrollLeft=e,this.scrollTop=t}function d(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+c<e.scrollHeight:"X"===t?e.clientWidth+c<e.scrollWidth:void 0}function p(t,a){var r=e.getComputedStyle(t,null)["overflow"+a];return"auto"===r||"scroll"===r}function m(e){var t=u(e,"Y")&&p(e,"Y"),a=u(e,"X")&&p(e,"X");return t||a}function h(e){for(;e!==t.body&&!1===m(e);)e=e.parentNode||e.host;return e}function b(t){var a,r,i,n,o=(s()-t.startTime)/468;n=o=o>1?1:o,a=.5*(1-Math.cos(Math.PI*n)),r=t.startX+(t.x-t.startX)*a,i=t.startY+(t.y-t.startY)*a,t.method.call(t.scrollable,r,i),r===t.x&&i===t.y||e.requestAnimationFrame(b.bind(e,t))}function g(a,r,i){var n,c,d,u,p=s();a===t.body?(n=e,c=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,u=o.scroll):(n=a,c=a.scrollLeft,d=a.scrollTop,u=l),b({scrollable:n,method:u,startTime:p,startX:c,startY:d,x:r,y:i})}}}})),oe=(ne.polyfill,k.Default),se=(y.CN,!1),ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"info";return function(t){!se||"debug"!==e||k.Verbose}},le={enable:()=>{se=!0},error:ce("error"),warn:ce("warn"),info:ce("info"),debug:ce("debug")},de=(ie((function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof r.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var a=new Uint8Array(16);e.exports=function(){return t(a),a}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}})),[]),ue=0;ue<256;++ue)de[ue]=(ue+256).toString(16).substr(1);y.CN,"".concat("https://lf1-cdn-tos.bytescm.com","/obj/cc-static/"),y.SG,y.VA,y.IN;var pe={[y.CN]:"".concat("https://lf1-cdn-tos.bytescm.com","/obj/feelgood/"),[y.SG]:"https://sf-tk-sg.ibytedtos.com/obj/feelgood-sg/",[y.VA]:"https://sf-tk-sg.ibytedtos.com/obj/feelgood-sg/",[y.IN]:"https://sf16-va.tiktokcdn-in.com/obj/cc-static-i18n-useast2a/"},me=(e,t)=>(pe[t]||le.warn("Invalid channel for static files: ".concat(t)),"".concat(pe[t]).concat(e));var he=e=>JSON.stringify(e);function be(e){var t=new Map;return function(){for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];var n=he(r);if(!t.has(n)){var o=e(...r);t.set(n,o)}return t.get(n)}}z.TikTok,z.Lark,z.Aweme,z.Feelgood,z.Baike,z.AILab,z.Aweme2,z.People,new Set,new Set,Promise.resolve(),new Set,new Set;var ge=be((e=>{for(var t=Array.from(e.entries()).filter((e=>{var[,t]=e;return!t.pin})).map((e=>{var[t]=e;return t})),a=[...e],r=t.length-1;r>0;r-=1){var i=Math.floor(Math.random()*(r+1)),n=t[r],o=t[i];[a[n],a[o]]=[a[o],a[n]]}return a})),ve=(e,t)=>e?Object.keys(e).reduce(((a,r)=>{var{val:i,type:n="",screen_shot_url:o,screen_shot_xpath:s}=e[r]||{};if(null==i)return a;var c=function(e,t){if(!Array.isArray(e))return null;for(var a=e.length-1;a>=0;a-=1){var r=e[a];if(t(r,a))return r}return null}(t,(e=>e.id===r||!!Array.isArray(e.sub_questions)&&e.sub_questions.some((e=>e.id===r)))),l=c&&c.parent_question_id?{[c.parent_question_id]:{type:u.MatrixSelect,val:{}},[r]:{type:n,val:i,screen_shot_url:o,screen_shot_xpath:s,parent_question_id:c.parent_question_id}}:{[r]:{type:n,screen_shot_url:o,screen_shot_xpath:s,val:i}};if("object"!=typeof i||Array.isArray(i))return Object.assign(Object.assign({},a),l);var{associations:d}=i;if(d){var p=Object.assign({},i);return delete p.associations,Object.assign(Object.assign(Object.assign({},a),{[r]:{type:n,val:p}}),ve(d,t))}return n===u.MatrixSelect?((e=>e&&"object"==typeof e?Object.keys(e).map((t=>e[t])):[])(i).forEach((e=>{e.parent_question_id=r})),Object.assign(Object.assign(Object.assign({},a),i),{[r]:{type:u.MatrixSelect,val:{}}})):Object.assign(Object.assign({},a),l)}),{}):{},je=e=>{var t={};return Object.entries(JSON.parse(JSON.stringify(e))).forEach((e=>{var[a,r]=e,i=Array.isArray(r.val)?r.val:[r.val];t[a]=i.map((e=>e.id?e.id:void 0!==e.rate?e.rate:e)).map((e=>e.toString()))})),t},Oe=e=>e.map((e=>{var t=[e];return Array.isArray(e.sub_questions)&&(t=t.concat(e.sub_questions)),t})).flat();function fe(e,t,a,r){var i={};a.forEach(((e,t)=>{i[e]=t}));var n=Object.keys(e).sort(((e,t)=>i[e]-i[t])),o=Object.assign({},t);return n.filter((t=>{var a=function(e,t){var{relationType:a,questions:r}=e,i=Object.keys(r).map((e=>{var a=t[e]||[];return function(e,t){var{relationType:a,answers:r}=e;switch(a){case X.EveryTrue:return r.every((e=>t.includes(e)));case X.AnyTrue:return r.some((e=>t.includes(e)));case X.EveryFalse:return t.length>0&&r.every((e=>!t.includes(e)));case X.AnyFalse:default:return t.length>0&&r.some((e=>!t.includes(e)))}}(r[e],a)}));switch(a){case X.EveryTrue:return i.every((e=>!!e));case X.AnyTrue:return i.some((e=>!!e));case X.EveryFalse:return i.every((e=>!e));case X.AnyFalse:default:return i.some((e=>!e))}}(e[t],o);return a||delete o[t],r(t,!a,o),!a}))}be((e=>{!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e){var t=i.createElement("style");t.type="text/css",t.appendChild(i.createTextNode(e)),i.head.appendChild(t)}}("\n @font-face {\n font-family: DIN-Alternate-Bold;\n src: url('".concat(me("DIN-Alternate-Bold.ttf",e),"') format('truetype');\n }\n @font-face {\n font-family: ClarityMono-SemiBold;\n src: url('").concat(me("ClarityMono-SemiBold.otf",e),"') format('opentype');\n }\n @font-face {\n font-family: ProximaNova-Regular;\n src: url('").concat(me("ProximaNova-Regular.otf",e),"') format('opentype');\n }\n @font-face {\n font-family: ProximaNova-Semibold;\n src: url('").concat(me("ProximaNova-Semibold.otf",e),"') format('opentype');\n }\n @font-face {\n font-family: ProximaNova-Bold;\n src: url('").concat(me("ProximaNova-Bold.otf",e),"') format('opentype');\n }\n "))}));var Me,_e=(e,t)=>{var a={},r={},i=[];t.reduce(((e,t)=>e.concat([...t.sub_questions||[],t])),[]).forEach((e=>{[u.Rating,u.Scale,u.TrueOrFalse].includes(e.type)&&i.push(e.key),a[e.key]=e.id,e.options&&e.options.forEach((e=>{r[e.key]=e.id}))}));var n={};return Object.keys(e).forEach((t=>{var o=e[t],s={relationType:"number"==typeof o.relationType?o.relationType:o.relation_type,questions:{}};Object.keys(o.questions).forEach((e=>{var t=o.questions[e],n=i.includes(e),c=t.answers.slice();s.questions[a[e]]={answers:n?c:c.map((e=>r[e])),relationType:"number"==typeof t.relationType?t.relationType:t.relation_type}}));var c=a[t];n[c]=s})),n};!function(e){e[e.None=0]="None",e[e.CaptureOnly=1]="CaptureOnly",e[e.FinderOnly=2]="FinderOnly",e[e.ClipboardOnly=4]="ClipboardOnly",e[e.CaptureAndFinder=3]="CaptureAndFinder",e[e.CaptuerAndClipboard=5]="CaptuerAndClipboard",e[e.FinderAndClipboard=6]="FinderAndClipboard",e[e.All=7]="All"}(Me||(Me={}))}).call(this,a(43).navigator,a(43).window,a(43).document,a(43).requestAnimationFrame)},,function(e,t,a){"use strict";var r,i,n;a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n})),function(e){e[e.MORNING=0]="MORNING",e[e.AFTERNOON=1]="AFTERNOON"}(r||(r={})),function(e){e[e["formSelectDate.am"]=0]="formSelectDate.am",e[e["formSelectDate.pm"]=1]="formSelectDate.pm"}(i||(i={})),function(e){e.DATE="YYYY-MM-DD",e.DATE_AND_TIME="YYYY-MM-DD hh:mm",e.DATE_HALF="YYYY-MM-DD a"}(n||(n={}))},function(e,t,a){"use strict";a.d(t,"e",(function(){return b})),a.d(t,"d",(function(){return r})),a.d(t,"i",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"h",(function(){return c})),a.d(t,"f",(function(){return l})),a.d(t,"j",(function(){return m})),a.d(t,"g",(function(){return h}));var r,i,n,o,s,c,l,d,u,p,m,h,b={queryUserLeaveList:{path:"/api/work/leave/user/user_account/list"},calLeaveQuota:{path:"/api/work/leave/quota/calculate"},validateLeaveApplyForm:{path:"/api/work/leave/form/validate"},validateGrayTenant:{path:"/api/work/leave/gray_tenant/validate"},getApprovalDetailByInstanceId:{path:"/api/work/leave/approval/get"},listLeaveDefinitionSmallRoutine:{path:"/api/work/leave/definition/small_routine/list"},overtimeConflictAndDurationCal:{path:"/api/work/overtime/cal_duration_conflict"},queryAssociatedOvertimeRule:{path:"/api/work/overtime/query_associated_work"},validateOvertimeApplyForm:{path:"/api/work/overtime/apply/validate"},validateOvertimeApplyFormV2:{path:"/api/work/overtime/v2/apply/validate"},getOvertimeApprovalInfoByInstanceId:{path:"/api/work/overtime/approval/get"}};(function(e){e[e.Day=1]="Day",e[e.HalfDay=2]="HalfDay",e[e.Hour=3]="Hour",e[e.HalfHour=4]="HalfHour",e[e.Minute=5]="Minute"})(r||(r={})),function(e){e[e.CommonLeave=1]="CommonLeave",e[e.AnnualLeave=2]="AnnualLeave",e[e.WorkLeave=3]="WorkLeave",e[e.LactationLeave=4]="LactationLeave"}(i||(i={})),function(e){e[e.ALL=0]="ALL",e[e.WorkPlace=1001]="WorkPlace",e[e.NativePlace=1002]="NativePlace",e[e.WorkYear=1003]="WorkYear",e[e.CompanyYear=1004]="CompanyYear",e[e.PrepregnancyCheck=11]="PrepregnancyCheck",e[e.FetusesNumber=12]="FetusesNumber",e[e.Dystocia=13]="Dystocia",e[e.PregnancyMonth=14]="PregnancyMonth",e[e.PrenuptialExamination=21]="PrenuptialExamination",e[e.RelativeKind=31]="RelativeKind"}(n||(n={})),function(e){e[e.Allow=0]="Allow",e[e.Disable=1]="Disable",e[e.Limited=2]="Limited"}(o||(o={})),function(e){e[e.Workday=1]="Workday",e[e.Offday=2]="Offday",e[e.Holiday=3]="Holiday",e[e.Custom=4]="Custom"}(s||(s={})),function(e){e[e.NoLimit=1]="NoLimit",e[e.BeforeLeaveStart=2]="BeforeLeaveStart",e[e.AfterLeaveEnd=3]="AfterLeaveEnd"}(c||(c={})),function(e){e[e.Unknown=0]="Unknown",e[e.Day=1]="Day",e[e.Hour=3]="Hour",e[e.Minute=5]="Minute"}(l||(l={})),function(e){e[e.OnlyClockIn=0]="OnlyClockIn",e[e.OnlyApproval=1]="OnlyApproval",e[e.ClockInAndApproval=2]="ClockInAndApproval"}(d||(d={})),function(e){e[e.OnlyRecord=0]="OnlyRecord",e[e.CompensatoryLeave=1]="CompensatoryLeave",e[e.Pay=2]="Pay",e[e.Custom=3]="Custom"}(u||(u={})),function(e){e[e.WorkDay=1]="WorkDay",e[e.RestDay=2]="RestDay",e[e.SpecialDay=3]="SpecialDay"}(p||(p={})),function(e){e[e.Day=1]="Day",e[e.Week=2]="Week",e[e.Month=3]="Month"}(m||(m={})),function(e){e[e.ProhibitOvertime=1]="ProhibitOvertime",e[e.IgnoreOvertime=2]="IgnoreOvertime",e[e.TransferLeave=3]="TransferLeave",e[e.ReceiveReminder=4]="ReceiveReminder"}(h||(h={}))},,function(e,t,a){"use strict";a(3);var r=a(1),i=a(8),n=a.n(i),o=(a(1177),a(0));t.a=e=>{var{text:t}=e;return Object(o.jsx)(r.r,{className:n()("form-item-error",{has:Boolean(t)}),children:t||""})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"g",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"i",(function(){return o})),a.d(t,"k",(function(){return s})),a.d(t,"b",(function(){return p})),a.d(t,"f",(function(){return m})),a.d(t,"h",(function(){return h})),a.d(t,"l",(function(){return b})),a.d(t,"d",(function(){return u})),a.d(t,"e",(function(){return j})),a.d(t,"j",(function(){return v}));var r,i,n,o,s,c,l=a(57),d=a(2);(function(e){e[e.SPECIAL=2]="SPECIAL",e[e.NOMARL=1]="NOMARL"})(r||(r={})),function(e){e[e.SET=1]="SET",e[e.NOSET=0]="NOSET"}(i||(i={})),function(e){e[e.ALLOW=1]="ALLOW",e[e.DISALLOW=0]="DISALLOW"}(n||(n={})),function(e){e[e.DAY=1]="DAY",e[e.HALFDAY=2]="HALFDAY",e[e.HOUR=3]="HOUR",e[e.HALFHOUR=4]="HALFHOUR",e[e.MINUTE=5]="MINUTE"}(o||(o={})),function(e){e[e.NEITHER=0]="NEITHER",e[e.LEAVE=1]="LEAVE",e[e.PAY=2]="PAY",e[e.EITHER=3]="EITHER"}(s||(s={})),function(e){e.LEAVE="LEAVE",e.NONE="NONE",e.PAY="PAY"}(c||(c={})),o.DAY,o.HOUR,o.MINUTE;var u,p={[o.HOUR]:l.a.DATE_AND_TIME,[o.HALFHOUR]:l.a.DATE_AND_TIME,[o.MINUTE]:l.a.DATE_AND_TIME,[o.DAY]:l.a.DATE,[o.HALFDAY]:l.a.DATE_HALF},m={[s.PAY]:c.PAY,[s.LEAVE]:c.LEAVE,[s.NEITHER]:c.NONE},h={[o.DAY]:{value:"DAY",text:Object(d.t)("WorkGroup_Unit_Day")},[o.HALFDAY]:{value:"DAY",text:Object(d.t)("WorkGroup_Unit_Day")},[o.HOUR]:{value:"HOUR",text:Object(d.t)("WorkGroup_Unit_Hour")},[o.HALFHOUR]:{value:"HOUR",text:Object(d.t)("WorkGroup_Unit_Hour")},[o.MINUTE]:{value:"MINUTE",text:Object(d.t)("WorkGroup_Unit_Minute")}},b=["widgetWorkGroupUnit","widgetWorkGroupDetail","widgetWorkGroupRule"];!function(e){e[e.NOATTENDANCEEXIST=20010]="NOATTENDANCEEXIST",e[e.UNSETWORKRULE=20012]="UNSETWORKRULE"}(u||(u={}));var g,v,j={[u.NOATTENDANCEEXIST]:"WorkGroup.NoAttendanceExist",[u.UNSETWORKRULE]:"WorkGroup.UnsetWorkRule"};(function(e){e.canWorkErr="WorkGroup.",e.conflictErr="WorkGroup.Conflict",e.needApprovalErr="WorkGroup."})(g||(g={})),function(e){e.Parent="widgetWorkGroup",e.Type="widgetWorkGroupType",e.StartTime="widgetWorkGroupStartTime",e.EndTime="widgetWorkGroupEndTime",e.Interval="widgetWorkGroupInterval",e.Reason="widgetWorkGroupReason",e.Unit="widgetWorkGroupUnit",e.Rule="widgetWorkGroupRule",e.Detail="widgetWorkGroupDetail",e.DetailType="widgetWorkGroupDetailType",e.DetailStartTime="widgetWorkGroupDetailStartTime",e.DetailEndTime="widgetWorkGroupDetailEndTime",e.DetailInterval="widgetWorkGroupDetailInterval",e.DetailCategory="widgetWorkGroupDetailCategory",e.Option="widgetWorkOption"}(v||(v={}))},function(e,t,a){e.exports={"approver-selector-wrap":"index-module__approver-selector-wrap___1j0Z6","approver-selector":"index-module__approver-selector___309BD",grow:"index-module__grow___SMulL",header:"index-module__header___3dwOa",title:"index-module__title___3lXMo",tip:"index-module__tip___2CA19",content:"index-module__content___wyZL6",separator:"index-module__separator___3BARI","left-panel":"index-module__left-panel___1S_2v","right-panel":"index-module__right-panel___3_yxh","search-container":"index-module__search-container___dX9ku",search:"index-module__search___EB0JN","approval-selector-clear":"index-module__approval-selector-clear___2fk0t","approval-selector-search":"index-module__approval-selector-search___KkGLA",input:"index-module__input___3kJYE","breadcrumbs-container":"index-module__breadcrumbs-container___3yAid",breadcrumb:"index-module__breadcrumb___3S6iQ","entity-item":"index-module__entity-item___bjKlF",entityItemDisabled:"index-module__entityItemDisabled___1QIKA","entity-check":"index-module__entity-check___1j7cJ",avatar:"index-module__avatar___2OIQK",arrow:"index-module__arrow___syQkH",entityItemName:"index-module__entityItemName___26uBg",entityText:"index-module__entityText___3TXrc",role:"index-module__role___2Uvvx",entityItemSearch:"index-module__entityItemSearch___hK8_-","no-department":"index-module__no-department___QYtYJ","department-name":"index-module__department-name___3nWKz","entity-list-check-all":"index-module__entity-list-check-all___3W6Tk","entity-list":"index-module__entity-list___142Pc",empty:"index-module__empty___2wMfU",loading:"index-module__loading___2-y7-",manager:"index-module__manager___1kIrh","chosen-overview":"index-module__chosen-overview___14qLS",clear:"index-module__clear___2CLdQ",clearDisabled:"index-module__clearDisabled___nylnL","chosen-list":"index-module__chosen-list___1qH3M","chosen-item":"index-module__chosen-item___tK8B-",chosenItemAvatar:"index-module__chosenItemAvatar___1HOpJ",delete:"index-module__delete___24y7E",chosenItemName:"index-module__chosenItemName___aM4Fh",chosenText:"index-module__chosenText___111V1",footer:"index-module__footer___awjKW",button:"index-module__button___3TjPZ",cancel:"index-module__cancel___1uKCD"}},function(e,t,a){"use strict";(function(e){a.d(t,"b",(function(){return d})),a.d(t,"a",(function(){return u})),a.d(t,"d",(function(){return p})),a.d(t,"c",(function(){return m}));var r=a(804),i=a(340),n=a(543),o=function(){return o=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},s=function(e,t,a){if(a||2===arguments.length)for(var r,i=0,n=t.length;i<n;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},c=function(){var t,a,r,i,n,o=function(e){return/messager|\*/gi.test(e)};return!!(o(null!==(t=null===tt||void 0===tt?void 0:tt.DEBUG)&&void 0!==t?t:"")||o(null!==(r=null===(a=e)||void 0===a?void 0:a.DEBUG)&&void 0!==r?r:"")||o(null!==(i=null==l?void 0:l.DEBUG)&&void 0!==i?i:"")||o(null!==(n=null==l?void 0:l.getItem("DEBUG"))&&void 0!==n?n:""))},d=["log","info","debug","warn","error"].reduce((function(e,t){var a;return o(o({},e),((a={})[t]=function(){for(var e,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];null===(e=i.a.logger)||void 0===e||e.call.apply(e,s([i.a,t],r,!1)),!c()&&["debug","log","info","warn"].includes(t)||null===(a=console[t])||void 0===a||a.call.apply(a,s([console],r,!1))},a))}),{}),u=function(e,t){var a,r;console.log("@approval/messager captureException",e,t),null===(a=i.a.captureException)||void 0===a||a.call(i.a,e,t),null===(r=n.a.captureException)||void 0===r||r.call(n.a,e,t)},p=function(e,t){var a,r;try{console.log("@approval/messager trace",e,t),null===(a=i.a.trace)||void 0===a||a.call(i.a,e,t),null===(r=n.a.sendEvent)||void 0===r||r.call(n.a,{name:"@approval/messager:".concat(e),categories:{content:"@approval/messager:".concat(e),data:JSON.stringify(t)}})}catch(e){u(e,{content:"trace_error"})}},m=Object(r.a)((function(e,t,a){var r;try{console.log("@approval/messager serverTrace",e,JSON.stringify(t)),null===(r=i.a.serverTrace)||void 0===r||r.call(i.a,e,t)}catch(e){u(e,{content:"server_trace_error"})}finally{null==a||a()}}),5,{leading:!0,trailing:!1})}).call(this,a(43).window)},,function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));var r=a(19),i=a.n(r);function n(e){return new Promise((t=>{var a=i.a.createSelectorQuery();if(!a)return t({});a.select(e).boundingClientRect((e=>t(e))).exec()}))}function o(e){return new Promise((t=>{var a=i.a.createSelectorQuery();if(!a)return t([]);a.selectAll(e).boundingClientRect().exec((e=>{var[a]=e;return t(a)}))}))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var r=a(6),i=a(3),n=a(1),o=a(8),s=a.n(o),c=(a(1211),a(0));class l extends i.PureComponent{render(){var{hidden:e,style:t}=this.props;return Object(c.jsx)(n.r,{className:s()("approval-hidden-wrap",{hidden:e}),style:t,children:this.props.children})}}Object(r.a)(l,"defaultProps",{hidden:!1,style:""})},function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return d})),a.d(t,"c",(function(){return u})),a.d(t,"b",(function(){return p})),a.d(t,"a",(function(){return m}));var r=a(5),i=a(39),n={lifeCycle:{},customize:{}},o=!1,s=(new Date).getTime();function c(){return(new Date).getTime()-s}function l(e){var t;o||n.lifeCycle[e]||("reoportTTi"===e&&null!==(t=n.customize.tti)&&void 0!==t&&t.time?n.lifeCycle[e]=n.customize.tti.time:n.lifeCycle[e]=c())}function d(e,t){n.launchParams=e,n.launchDate=t(s,"YYYY-MM-DD"),n.launchTime=t(s,"YYYY-MM-DD hh:mm:ss"),n.launchStamp=s}function u(e){o||(l("reoportTTi"),o=!0,n.ttiStatus="success"===e?1:0)}function p(){return n.platform=Object(i.a)(),n}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o||n.customize[e]||(n.customize[e]=Object(r.a)({time:c()},t))}l("start")},function(e,t,a){"use strict";var r=a(3),i=a(8),n=a.n(i),o=a(1),s=(a(1172),a(0));t.a=e=>{var{suffix:t,extra:a,value:i,placeholder:c,align:l="left",onClick:d,className:u,customStyle:p,children:m,active:h,disabled:b,noBorder:g,error:v,formatter:j,autoheight:O}=e,f=Object(r.useMemo)((()=>j&&i?null==j?void 0:j(i):i),[i,j]);return Object(s.jsxs)(o.r,{className:n()("cell-fake-input","cell-fake-input--".concat(l),{"cell-fake-input--active":h,"cell-fake-input--disabled":b,"cell-fake-input--error":v,"cell-fake-input--noBorder":g,"cell-fake-input--autoheight":O},u),style:p,onClick:e=>{b||null==d||d(e)},children:[Object(s.jsxs)(o.r,{className:n()("cell-fake-input__content",{"cell-fake-input--disabled":b}),children:[i||m?Object(s.jsx)(o.r,{className:"cell-fake-input__value",children:f||m}):Object(s.jsx)(o.r,{className:"cell-fake-input__placeholder",children:c}),t&&Object(s.jsx)(o.r,{className:"cell-fake-input__suffix",children:t})]}),a&&Object(s.jsx)(o.r,{className:"cell-fake-input__extra",children:a}),v&&Object(s.jsx)(o.r,{className:"cell-fake-input__error",children:v})]})}},function(e,t,a){"use strict";a.d(t,"h",(function(){return r})),a.d(t,"a",(function(){return b})),a.d(t,"g",(function(){return M})),a.d(t,"d",(function(){return _.a})),a.d(t,"e",(function(){return Q})),a.d(t,"c",(function(){return he})),a.d(t,"f",(function(){return De})),a.d(t,"b",(function(){return Le}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?"".concat(e,"__").concat(t):e}},i=a(5),n=a(37),o=a(3),s=a.n(o),c=a(8),l=a.n(c),d=a(1),u=a(124),p=(a(1057),a(0)),m=["className","children","type","shape","size","color","danger","info","gray","radius","filled","selected","bordered","shadowed","loading","ghost","disabled","icon","onClick"],h="w-button",b=Object(o.forwardRef)(((e,t)=>{var a,{className:r,children:o,type:s="default",shape:c="rectangle",size:b="medium",color:g="gray",danger:v=!1,info:j=!1,gray:O=!1,radius:f="small",filled:M=!1,selected:_=!1,bordered:y=!0,shadowed:D=!1,loading:N=!1,ghost:A=!1,disabled:T=!1,icon:I,onClick:C=u.a}=e,x=Object(n.a)(e,m),S=null!==(a={"extra-large":"xl",large:"lg",medium:"md",small:"sm","extra-small":"xs"}[b])&&void 0!==a?a:"md",w=l()(h,{["".concat(h,"--ghost")]:A,["".concat(h,"--shadowed")]:D,["".concat(h,"--loading")]:N&&!T,["".concat(h,"--disabled")]:T,["".concat(h,"--").concat(s)]:s,["".concat(h,"--filled")]:M,["".concat(h,"--selected")]:_,["".concat(h,"--outlined")]:!M,["".concat(h,"--radius-").concat(f)]:f,["".concat(h,"--rectangle")]:"rectangle"===c&&!["text","link"].includes(s),["".concat(h,"--square")]:"square"===c&&!["text","link"].includes(s),["".concat(h,"--round")]:"rounded"===c&&!["text","link"].includes(s),["".concat(h,"--circle")]:"circle"===c&&!["text","link"].includes(s),["".concat(h,"--noborder")]:!y||["text","link"].includes(s),["".concat(h,"--").concat(S)]:b,["".concat(h,"--danger")]:v,["".concat(h,"--info")]:j,["".concat(h,"--gray")]:O,["".concat(h,"--").concat(g)]:"none"!==g&&g},r);return Object(p.jsxs)(d.b,Object(i.a)(Object(i.a)({className:w,disabled:T,onClick:C},x),{},{children:[I&&o?Object(p.jsx)(d.r,{className:"".concat(h,"__icon-inline"),children:I}):I,o]}))})),g=a(10),v=a(24),j=a(849),O=a.n(j),f=["customStyle","customClassName"];function M(e){var t=t=>{var{customStyle:a,customClassName:r}=t,s=Object(n.a)(t,f),{globalStore:{inMainTab:c,inWindow:u}}=Object(o.useContext)(v.a),m=Object(o.useMemo)((()=>({minHeight:"".concat(c?68:u?52:36,"px"),paddingTop:"".concat(u?16:0,"px"),paddingRight:"".concat(c?94:134,"px")})),[c,u]),[h,b]=Object(o.useState)(m);return Object(o.useEffect)((()=>{tt.getSystemInfo({success:e=>{var{windowWidth:t,navigationBarSafeArea:a}=e;if(a){var{top:r,bottom:n,width:o}=a,s="".concat(n,"px"),c="".concat(r,"px"),l="".concat(t-o,"px");s===m.minHeight&&c===m.paddingTop&&l===m.paddingRight||b(Object(i.a)(Object(i.a)({},m),{},{minHeight:s,paddingTop:c,paddingRight:l}))}},fail:()=>{g.a.error("[src/components/navigation-bar/index.tsx] 获取系统信息失败")}})}),[m]),Object(p.jsx)(d.r,{style:Object(i.a)(Object(i.a)({},h),a),className:l()(O.a.navigation,r),children:Object(p.jsx)(e,Object(i.a)({},s))})};return t.displayName=(e=>e.displayName||e.name||"Component")(e),t}var _=a(110),y=a(9),D=a(109),N=a(117),A=a(2),T=a(152),I=a.n(T),C=a(243),x=a.n(C),S=a(207),w=a.n(S),L=["className","scrollY","onScroll","onScrollToLower","onScrollToUpper","onRetry","lowerable","upperable","lowerLoading","upperLoading","loading","empty","error","count","children"],E=r("scroll"),k=a(208),z=a.n(k),R=["className","isError","loading","noMore","children"],P=r("to-upper"),U=e=>{var{className:t,isError:a=!1,loading:r=!1,noMore:o=!1,children:s}=e,c=Object(n.a)(e,R);return Object(p.jsx)(d.r,Object(i.a)(Object(i.a)({className:l()(P(),t)},c),{},{children:a?null:r?Object(p.jsx)(d.r,{className:l()(P("loading")),children:Object(p.jsx)(d.g,{className:P("loading-icon"),src:z.a})}):o?Object(p.jsx)(d.r,{className:l()(P("no-more")),children:Object(A.t)("list.approval_no_more")}):s}))},B=["className","isError","loading","noMore","children"],F=r("to-lower"),Y=e=>{var{className:t,isError:a=!1,loading:r=!1,noMore:o=!1,children:s}=e,c=Object(n.a)(e,B);return Object(p.jsx)(d.r,Object(i.a)(Object(i.a)({className:l()(F(),t)},c),{},{children:a?null:r?Object(p.jsx)(d.r,{className:l()(F("loading")),children:Object(p.jsx)(d.g,{className:F("loading-icon"),src:z.a})}):o?Object(p.jsx)(d.r,{className:l()(F("no-more")),children:Object(A.t)("list.approval_no_more")}):s}))},Q=(a(1058),e=>{var{className:t,scrollY:a=!0,onScroll:r,onScrollToLower:s,onScrollToUpper:c,onRetry:u,lowerable:m=!0,upperable:h=!0,lowerLoading:b=!1,upperLoading:g=!1,loading:v,empty:j,error:O,count:f,children:M}=e,_=Object(n.a)(e,L),[T,C]=Object(D.a)(Boolean(g)),[S,k]=Object(D.a)(Boolean(b)),z=Object(o.useCallback)((e=>{null==r||r(e)}),[r]),R=function(){var e=Object(y.a)((function*(e){if(h){if(!g)return null==c?void 0:c(e);C(!0),yield null==c?void 0:c(e),C(!1)}}));return function(t){return e.apply(this,arguments)}}(),P=function(){var e=Object(y.a)((function*(e){if(m){if(!b)return null==s?void 0:s(e);k(!0),yield null==s?void 0:s(e),k(!1)}}));return function(t){return e.apply(this,arguments)}}(),B=e=>{null==u||u()},F=Object(N.c)(f)||f>7,Q=l()(E(),{["".concat(E(),"--scroll-y")]:a},t);return Object(p.jsx)(d.r,{className:Q,children:(()=>{var e=e=>"boolean"!=typeof e;return v?e(v)?v:Object(p.jsx)(d.r,{className:E("loading"),children:Object(p.jsx)(d.g,{className:E("loading-image"),src:I.a})}):j?e(j)?j:Object(p.jsxs)(d.r,{className:E("empty"),children:[Object(p.jsx)(d.g,{className:E("empty-image"),src:x.a}),Object(p.jsxs)(d.r,{className:E("empty-desc"),children:[Object(p.jsx)(d.r,{className:E("empty-desc--title"),children:Object(A.t)("Scroll.NoApprovals","暂无审批")}),Object(A.t)("approval-mp_CheckOtherTabs_Desc")]})]}):O?e(O)?O:Object(p.jsxs)(d.r,{className:E("error"),children:[Object(p.jsx)(d.g,{className:E("error-image"),src:w.a}),Object(p.jsxs)(d.r,{className:E("error-tips"),children:[Object(p.jsx)(d.r,{children:Object(A.t)("Scroll.FailedToLoad","加载失败")}),Object(p.jsx)(d.r,{onClick:B,className:E("error-tips--emphasis"),children:Object(A.t)("list.get_list_again","重新加载")})]})]}):Object(p.jsxs)(d.n,Object(i.a)(Object(i.a)({className:E("inner"),scrollY:a,enableFlex:!0,onScroll:z,onScrollToLower:P,onScrollToUpper:R},_),{},{children:[h?T?Object(N.a)(g)?Object(p.jsx)(U,{loading:!0}):g:null:Object(p.jsx)(U,{noMore:F}),M,m?S?Object(N.a)(b)?Object(p.jsx)(Y,{loading:!0}):b:null:Object(p.jsx)(Y,{noMore:F})]}))})()})});Q.ToUpper=U,Q.ToLower=Y;var G=r("drawer"),W=Object(o.forwardRef)(((e,t)=>{var{visible:a=!1,onClose:r,style:i,className:n,header:s,footer:c,children:u}=e,[m,h]=Object(D.a)(a);Object(o.useImperativeHandle)(t,(()=>({open(){h(!0)},close(){h(!1)}})));var b=()=>{m&&(Object(N.b)(r)?null==r||r():h(!1))};if(!m)return null;var g=l()(G(),n);return Object(p.jsxs)(d.r,{className:g,style:i,children:[Object(p.jsx)(d.r,{className:l()(G("mask"),n),onClick:b}),Object(p.jsx)(_.a.Panel,{className:l()(G("container"),n),children:s||c?Object(p.jsxs)(o.Fragment,{children:[Object(p.jsx)(_.a.Header,{children:s}),Object(p.jsx)(_.a.Container,{children:u}),Object(p.jsx)(_.a.Footer,{children:c})]}):u})]})}));W.displayName="Drawer";var V=a(19),H=a.n(V),Z=a(18),q=a(850),K=a.n(q),J=a(851),X=a.n(J),$=a(412),ee=a.n($),te=["className","onClick","children"],ae=["className","children"],re=["onClick"],ie=["onClick"],ne=e=>{e.stopPropagation(),getCurrentPages().length>1?H.a.navigateBack():H.a.reLaunch({url:Z.r.Index})},oe=e=>{var{className:t,onClick:a,children:r}=e,o=Object(n.a)(e,te);return Object(p.jsx)(d.r,Object(i.a)(Object(i.a)({className:l()(ee.a.action,t),onClick:null!=a?a:ne},o),{},{children:r}))};oe.Group=e=>{var{className:t,children:a}=e,r=Object(n.a)(e,ae);return Object(p.jsx)(d.r,Object(i.a)(Object(i.a)({className:l()(ee.a.group,t)},r),{},{children:a}))};var se=e=>{var{onClick:t}=e,a=Object(n.a)(e,re);return Object(p.jsx)(oe,Object(i.a)(Object(i.a)({onClick:null!=t?t:u.a},a),{},{children:Object(p.jsx)(d.g,{src:K.a,className:l()(ee.a.icon,ee.a.back)})}))},ce=e=>{var{onClick:t}=e,a=Object(n.a)(e,ie);return Object(p.jsx)(oe,Object(i.a)(Object(i.a)({onClick:null!=t?t:u.a},a),{},{children:Object(p.jsx)(d.g,{src:X.a,className:l()(ee.a.icon,ee.a.close)})}))},le=a(613),de=a(65),ue=r("drawer-header"),pe=M((e=>{var{style:t,className:a,left:r,right:n,title:s,children:c,back:u,home:m,close:h,onBack:b,onClose:g}=e,v=e=>"object"==typeof e?e:{},j=Object(o.useRef)(null);return Object(p.jsxs)(d.r,{style:t,className:l()(ue(),a),children:[[r,u,m,h].some((e=>Boolean(e)))?Object(p.jsxs)(d.r,{className:ue("left"),children:[Object(p.jsxs)(oe.Group,{children:[u&&Object(p.jsx)(se,Object(i.a)({onClick:b},v(u))),h&&Object(p.jsx)(ce,Object(i.a)({onClick:g},v(h)))]}),r]}):null,Boolean(s||c)?Object(p.jsx)(d.r,{className:ue("center"),onMouseEnter:function(){var e=Object(y.a)((function*(e){var t,a;null!==(t=null===(a=j.current)||void 0===a?void 0:a.getIsEllipsis())&&void 0!==t&&t&&((e,t)=>{Object(de.a)("#".concat(e.currentTarget.id)).then((e=>{e&&H.a.eventCenter.trigger("global-tooltip",{id:"drawer-title-tooltip",visible:!0,position:"bottom",parentElementPosition:e,text:t,wordWrap:!0,maxWidth:0})}))})(e,null!=s?s:c)}));return function(t){return e.apply(this,arguments)}}(),onMouseLeave:()=>{var e,t;null!==(e=null===(t=j.current)||void 0===t?void 0:t.getIsEllipsis())&&void 0!==e&&e&&H.a.eventCenter.trigger("global-tooltip",{id:"drawer-title-tooltip",visible:!1})},children:Object(p.jsx)(le.a,{ellipsisLine:1,ref:j,enableEllipsis:!0,children:null!=s?s:c})}):null,Boolean(n)?Object(p.jsx)(d.r,{className:ue("right"),children:n}):null]})})),me=a(483),he=(a(1059),W);he.Header=pe,he.History=me.a;var be=a(615);function ge(e){var t=[];return s.a.Children.forEach(e,(e=>{if(null!=e){if(Array.isArray(e))return t.push(...ge(e));if(Object(be.isFragment)(e)){if(!e.props)return;var{props:{children:a=[]}}=e;return t.push(...ge(a))}t.push(e)}})),t}var ve=["className","activeKey","onChange","children"],je="tabs",Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(je,"__").concat(e):je},fe=["children"],Me=e=>{var{children:t}=e,a=Object(n.a)(e,fe);return Object(p.jsx)(d.r,Object(i.a)(Object(i.a)({},a),{},{children:t}))};Me.displayName="TabPane";var _e="TABPANE_ID";function ye(e){var t;return null==e||null===(t=e.type)||void 0===t?void 0:t[_e]}Object.assign(Me,{[_e]:!0}),a(1061);var De=e=>{var{className:t,activeKey:a,onChange:r,children:o}=e,s=Object(n.a)(e,ve),c=ge(o).filter(ye).map(((e,t)=>{var{key:a}=e;return Object.assign(e,{key:null!=a?a:t,index:t})})),[u]=c,[m,h]=Object(D.a)(a,null!=a?a:null==u?void 0:u.key);return Object(p.jsxs)(d.r,Object(i.a)(Object(i.a)({className:l()(Oe(),t)},s),{},{children:[Object(p.jsx)(d.r,{className:Oe("bar"),children:c.map((e=>(e=>{if(null==e||!e.props)return null;var{key:t,props:a}=e,{tab:i}=a,n=l()(Oe("tab"),{[Oe("tab--active")]:String(t)===String(m)});return Object(p.jsx)(d.r,{className:n,onClick:()=>{h(t),null==r||r(t)},children:i})})(e)))}),Object(p.jsx)(d.r,{className:Oe("panel"),children:c.map((e=>(e=>{var{key:t}=e,a=l()(Oe("pane"),{[Oe("pane--inactive")]:String(m)!==String(t)});return Object(p.jsx)(d.r,{className:a,children:e})})(e)))})]}))};De.Pane=Me;var Ne,Ae,Te,Ie=a(616),Ce=a.n(Ie),xe=a(183),Se=(a(1062),["disabled","checked","indeterminate","shape","icon","size","onChange","className","children","value","mode","inputStyle","contentStyle"]),we=r("checkbox");(function(e){e.Circle="circle",e.Radio="radio",e.Square="square"})(Ne||(Ne={})),function(e){e.Small="small",e.Normal="normal"}(Ae||(Ae={})),function(e){e.Classic="classic",e.LarkFive="lark5_0"}(Te||(Te={}));var Le=e=>{var{disabled:t,checked:a,indeterminate:r=null,shape:o=Ne.Circle,icon:s,size:c=Ae.Normal,onChange:u,className:m,children:h,value:b,mode:g=Te.Classic,inputStyle:v,contentStyle:j}=e,O=Object(n.a)(e,Se),[f,M]=Object(D.a)(a,null!=a&&a,{isControlled:g===Te.LarkFive}),_=l()(we(),m,{box:g===Te.LarkFive}),y=l()(we("input"),{[we("input--disabled")]:t,[we("input--checked")]:f,[we("input-half-checked")]:r,[we("input--".concat(o))]:o,[we("input--".concat(c))]:c},{disabled:t&&g===Te.LarkFive},m),N=l()(we("content"),{disabled:t});return Object(p.jsxs)(d.r,Object(i.a)(Object(i.a)({className:_},O),{},{children:[Object(p.jsx)(d.r,{className:y,style:v,onClick:e=>{t||M((e=>!e),(t=>{var a={value:b,checked:t};null==u||u(Object.assign(e,{detail:a}))}))},children:f||r?[Ne.Circle,Ne.Square].includes(o)?r?Object(p.jsx)(xe.a,{size:"16px",customStyle:{backgroundColor:"#3370FF",color:"#fff"},name:"indeterminate_outlined"}):Object(p.jsx)(d.g,{className:we("input-icon"),src:Ce.a}):Ne.Radio===o?Object(p.jsx)(d.r,{className:we("input-radio")}):null:null}),Object(p.jsx)(d.r,{className:N,style:j,children:h})]}))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"f",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return l}));var r=a(2),i={applicant:"apaascorehrApplicant",position:"apaascorehrPosition",onboardingDate:"apaascorehrOnboardingDate",offboardingDate:"apaascorehrOffboardingDate",offboardingReason:"apaascorehrOffboardingReason",offboardingReason_remark:"apaascorehrOffboardingReasonRemark",offboardingType:"apaascorehrOffboardingType"},n=e=>{var t=[],a=[];for(var r of e)r.readonly&&a.push(r.id),!1===r.visible&&t.push(r.id);return a.push(i.position,i.onboardingDate),[t,a]},o={UserNotExist:Object(r.t)("Apaascorehr_UserNotFound"),EmployeeStatusNotAllowResignation:Object(r.t)("Apaascorehr_EmployeeStatusNotAllowResignation")},s={defaultValue:{currentDepartment:void 0,onboardingDate:void 0},formItemDataSource:{reasonForDeparture:void 0,reasonType:void 0},cleanData:!0},c={voluntaryId:"apaascorehr__voluntary",voluntaryVer2Id:"1",voluntaryList:["apaascorehr__healthOrFamilyIssues","apaascorehr__lackOfCareerDevelopment","apaascorehr__unsatisfactoryCompensationAndBenefits","apaascorehr__excessiveWorkload","apaascorehr__nonRenewalOfEmploymentContract","apaascorehr__other"],involuntaryList:["apaascorehr__unsatisfactoryPerformance","apaascorehr__corporateRestructuringAndPositionOptimization","apaascorehr__violationOfCompanyRegulations","apaascorehr__violationOfLawsAndDiscipline","apaascorehr__otherofinvoluntary"],involuntaryId:"apaascorehr__involuntary",involuntaryVer2Id:"2",otherVer2Id:"3"},l=e=>e.id===i.position&&void 0===e.data.value[0]||e.id===i.onboardingDate&&null===e.data.value},function(e,t,a){e.exports={docWrapper:"document-module__docWrapper___ECo1m",head:"document-module__head___1aQR_",sticky:"document-module__sticky___2LEys",static:"document-module__static___1OP7u",occlusion:"document-module__occlusion___1L9tG",show:"document-module__show___1ZBZm",hidden:"document-module__hidden___27UVb",titleWrapper:"document-module__titleWrapper___2fWu3",over_verify:"document-module__over_verify___1TPL0",icon:"document-module__icon___19VxF",title:"document-module__title___32fzn",title_icon:"document-module__title_icon___qNkju",title_val:"document-module__title_val___1gFcr",tooltip:"document-module__tooltip___GFleq",value:"document-module__value___q0RbP",statusTip:"document-module__statusTip___fJB4x",icons:"document-module__icons___bbEGZ",enhanced:"document-module__enhanced___1Wv_j",arrow:"document-module__arrow___2pPSb",line:"document-module__line___2QM3o",link:"document-module__link___2BQyr",delete:"document-module__delete___1sGI_",btnEnhance:"document-module__btnEnhance___3n6-d",content:"document-module__content___28YNJ",border:"document-module__border___15x14",left:"document-module__left___2G-cL",right:"document-module__right___-L7f5",bottom:"document-module__bottom___17ekK",update:"document-module__update___2Go-u",updateremind:"document-module__updateremind___V2IbD",imagewrapper:"document-module__imagewrapper___LIsJq",image:"document-module__image___3NAa1",text:"document-module__text___3JJCQ",jump:"document-module__jump___I7G9d",gripper:"document-module__gripper___1jpts",showDoc:"document-module__showDoc___3lr7c",error:"document-module__error___pbEZH",hiddenDoc:"document-module__hiddenDoc___3ZQ9n","btn-wrapper":"document-module__btn-wrapper___2t-VN","download-btn":"document-module__download-btn___122-Y"}},function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"g",(function(){return o})),a.d(t,"f",(function(){return s})),a.d(t,"a",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"b",(function(){return d}));var r=a(241);function i(e){var t=!1;return function(){if(!t){t=!0;for(var a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];e.apply(this,r)}}}var n=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));return e?t.split("-")[0]:t},o=e=>new Promise((t=>setTimeout(t,e)));function s(e){return"string"==typeof e?e.replace(/\u2028/g,"\n").replace(/\ufffc/g,""):e}var c=(e,t)=>{if(e=String(e),0===t.length)return[{text:e,isHighlight:!1}];var a=[],r=Array.isArray(t)?t.sort(((e,t)=>t.length-e.length)).map((e=>e.replace(/[.[*?+^$|()/]|\]|\\/g,"\\$&"))).join("|"):t.replace(/[.[*?+^$|()/]|\]|\\/g,"\\$&");try{for(var i=new RegExp(r,"gmi"),n=0,o=0,s=0,c=null;null!==(c=i.exec(e));)o=c.index,a.push({isHighlight:!1,text:e.slice(0===n?0:s,o)}),s=i.lastIndex,a.push({isHighlight:!0,text:e.slice(o,s)}),n+=1;a.push({isHighlight:!1,text:e.slice(s)})}catch(t){a.push({isHighlight:!1,text:e})}return a};function l(e){return e.openId||r.a.get(String(e.userId))}function d(e,t){return 0===t.length||0===e.length?e:e.filter((e=>!t.find((t=>t.userId===e.userId))))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"c",(function(){return u})),a.d(t,"b",(function(){return p})),a.d(t,"d",(function(){return m})),a.d(t,"e",(function(){return h}));var r=a(4),i=a(16),n=a(2),o=a(17),s=a(12),c=a(32),l=a(501),d={applicant:"apaascorehrApplicant",onboardingDate:"apaascorehrOnboardingDate",originManager:"apaascorehrOriginManager",originDepartment:"apaascorehrOriginDepartment",originJob:"apaascorehrOriginJob",originJobLevel:"apaascorehrOriginJobLevel",adjustedInformation:"apaascorehrAdjustedInformation",adjustedManager:"apaascorehrAdjustedManager",adjustedDepartment:"apaascorehrAdjustedDepartment",adjustedJob:"apaascorehrAdjustedJob",adjustedJobLevel:"apaascorehrAdjustedJobLevel",effectTime:"apaascorehrEffectTime"},u=e=>{var t=[],a=[];for(var r of e)r.readonly&&a.push(r.id),!1===r.visible&&t.push(r.id);return a.push(d.onboardingDate,d.originDepartment,d.originJob,d.originJobLevel,d.originManager),[t,a]},p={defaultValue:{currentDepartment:void 0,currentJob:void 0,currentJobLevel:void 0,currentManager:void 0,onboardingDate:void 0},formItemDataSource:{reasonForDeparture:void 0,reasonType:void 0},cleanData:!0},m=e=>e.id===d.originManager&&void 0===e.data.users[0]||e.id===d.originDepartment&&void 0===e.data.value[0]||e.id===d.originJob&&null===e.data.value||e.id===d.originJobLevel&&(null===e.data.value||""===Object(l.a)(e.data.value,"value")&&""===Object(l.a)(e.data.value,"text"))||e.id===d.onboardingDate&&null===e.data.value;var h=Object(r.k)((function*(e){var t={UserNotExist:Object(n.t)("Apaascorehr_UserNotFound")};try{var a=Object(c.e)(e,d.applicant),r=a.data.users[0].id,l=yield i.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_transfer_applicant",applicantUserID:r});if(a)return a.data.validationError=l.data.isOK?null:t[l.data.status],Object(c.p)("SystemError"===l.data.status),l.data.isOK?c.a.valid:"SystemError"===l.data.status?c.a.error:c.a.invalid}catch(e){return Object(s.b)(o.f.ApprovalError,{location:"in function verifyApplicant at src/components/configurable-form/components/widgets/job-adjust-group/util.ts",message:JSON.stringify(e)}),c.a.error}}))},function(e,t,a){"use strict";var r;a.d(t,"a",(function(){return r})),function(e){e[e.PERSON=0]="PERSON",e[e.GROUP=1]="GROUP"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"g",(function(){return M})),a.d(t,"h",(function(){return C})),a.d(t,"b",(function(){return x})),a.d(t,"f",(function(){return S})),a.d(t,"d",(function(){return w})),a.d(t,"e",(function(){return L})),a.d(t,"i",(function(){return E})),a.d(t,"j",(function(){return R})),a.d(t,"c",(function(){return P}));var r,i=a(9),n=a(5),o=a(37),s=a(28),c=a(2),l=a(10),d=a(72),u=a(39),p=a(204),m=a(20),h=["fileSize","fileName"],b=["fileSize"];!function(e){e.Approval="approval",e.Drive="drive"}(r||(r={}));var g="approval",v=s.u?"internal-api-drive-stream.larksuite.com":"internal-api-drive-stream.feishu.cn",j=s.u?"internal-api.larksuite.com":"internal-api.feishu.cn",O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/[\\/:*?"<>|]/gi;return e.replaceAll(t,"")},f=!1,M=()=>{var e=s.u?"5.24.0":"5.23.0",t=Object(p.a)(e),a=tt.uploadFileToCloud,r=Boolean(t&&a);return f||(Object(m.d)("fileSupportDrive",{isSupportDrive:r,isVersionSupport:t,isUploadFileToCloud:Boolean(a)}),f=!0),r};function _(e){return M()?e:()=>{tt.showModal({content:Object(c.t)("common.please_update_greater_or_equal",{version:"5.23.0"}),showCancel:!1,confirmText:Object(c.t)("CreateList.CustomCreate.Popover.OkText")})}}function y(e,t){var a,r={},i=0,n=e>20971520?1:5,o=500,s=()=>{a&&(clearInterval(a),a=null),a=setInterval((()=>{t(i+=n),90===i?(a&&clearInterval(a),n=1,o=2e4,s()):99===i&&a&&clearInterval(a)}),o),r.timer=a};return s(),r}var D=0,N=[],A=new Map,T=new Map,I=e=>{var t=T.get(e);t?(t[1]("TASK_ABORT"),T.delete(e)):(l.a.info("do-task"),(()=>{for(D--,l.a.info("uploadingTaskCount",D);N.length>0;){var e=N.shift(),t=T.get(e);if(t)return t[0](),void T.delete(e)}})())},C=()=>{D=0,T.clear(),N=[],l.a.info("[drive] init uploadTask")},x=()=>{N.forEach((e=>{if(T.has(e)){var t=T.get(e);null==t||t[1]("TASK_ABORT")}})),A.forEach((e=>{e.abort()})),D=0,T.clear(),A.clear(),N=[],l.a.info("[drive] destroy uploadTask")},S=e=>new Promise(((t,a)=>{var r="https://".concat(j,"/space/api/box/file/info/");tt.request({url:r,header:{"content-type":"application/json"},method:"POST",data:Object(n.a)({},e),success:e=>{var a;t(null==e||null===(a=e.data)||void 0===a?void 0:a.data)},fail:e=>{a(e)}})}));var w=e=>{var{file_token:t,mount_node_token:a="0"}=e;return"https://".concat(v,"/space/api/box/stream/download/all/").concat(t,"?mount_node_token=").concat(a)},L=e=>{var{isDrive:t,isImage:a=!1,url:r,file_token:i,mount_node_token:n}=e;return t?w({file_token:i,mount_node_token:n}):((e,t)=>{var a=function(e){var t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=e.split("?")[0].split("/"),r=a[a.length-1];t&&(r=r.replace(/,/g,""));var i=r.split("."),n=i.length>1?i.slice(0,-1).join("."):i[0],o=r.split("."),s=o.slice(0,-1).join("."),c=o[o.length-1];return s.length||(r="file",c=""),{path:e,fileName:r,suffix:c,fileNameWithoutSuffix:n}}(e).suffix;return t?"~0x0.".concat(t):"~0x0.image"}(e);return t?e+a:e})(r,a)},E=e=>e===r.Drive,k=function(e){return(t,a)=>{var{fileSize:r}=t,i=Object(o.a)(t,b),n={};return n.taskPromise=e(i,(e=>{var t;null===(t=e.onProgress)||void 0===t||t.call(e,r,a),n.abort=null==e?void 0:e.abort})),n}}(function(){var e=Object(i.a)((function*(e,t){var a={};return new Promise(((r,o)=>{try{Object(i.a)((function*(){var i,s,c=!0,u=Object(d.c)(),p={abort(){l.a.info("[drive] task abort"),a.timer&&clearInterval(a.timer),c&&I(u),c=!1,o(new Error("TASK_ABORT")),A.delete(u)},onProgress(e,t){i=e,s=t}};null==t||t(p),D>2&&(yield(e=>new Promise(((t,a)=>{T.set(e,[t,a]),N.push(e)})))(u)),A.set(u,p),D++,s&&i&&(a=y(i,s)),tt.uploadFileToCloud(Object(n.a)(Object(n.a)({},e),{},{mountPoint:g,success(t){var a;null===(a=s)||void 0===a||a(99.99),setTimeout((()=>{var e;null===(e=s)||void 0===e||e(100),r(t)}),200),l.a.info("[drive] upload file success",e,t),Object(m.d)("fileUploadAttSuccess",{message:"[drive] upload file success",options:e,result:t})},fail(t){var a;null===(a=s)||void 0===a||a(0),o(t),l.a.info("[drive] upload file fail",e,t),Object(m.d)("fileUploadAttFail",{message:"[drive] upload file fail",options:e,error:t})},complete(){a.timer&&clearInterval(a.timer),c&&I(u),c=!1,A.delete(u)}}))}))()}catch(e){o(e),a.timer&&clearInterval(a.timer),Object(m.d)("commonOnError",{message:"[drive] upload fail",error:e})}}))}));return function(t,a){return e.apply(this,arguments)}}()),z=function(e){return(t,a)=>{var{fileSize:r,fileName:i}=t,s=Object(o.a)(t,h),c={},l={};return c.taskPromise=e(Object(n.a)(Object(n.a)({},s),{},{filePath:"ttfile://temp/".concat(O(i))}),(e=>{a&&(l=y(r,a)),c.abort=()=>{null==e||e.abort(),l.timer&&clearInterval(l.timer)}})),c.taskPromise.then((()=>{null==a||a(99),setTimeout((()=>{null==a||a(100)}),200),l.timer&&clearInterval(l.timer)})),c.taskPromise.catch((()=>{null==a||a(0),l.timer&&clearInterval(l.timer)})),c}}(((e,t)=>new Promise(((a,r)=>{try{tt.showLoading({title:Object(c.t)("Loading")});var i=tt.downloadFileFromCloud(Object(n.a)(Object(n.a)({},e),{},{mountPoint:g,success(t){l.a.info("[drive] download file success",e,t);var{tempFilePath:i}=t,o={success:()=>{a(t)},fail:e=>{r(e),Object(m.d)("fileSaveFileFail",{err:e})}};u.e?tt.saveFileAs(Object(n.a)({filePath:i.replace("ttfile:/temp","ttfile://temp")},o)):tt.saveFile(Object(n.a)({tempFilePath:i.replace("ttfile:/temp","ttfile://temp")},o))},fail(t){l.a.error("[drive] download file fail",e,t),r(t),Object(m.d)("fileDownloadFail",{message:"[drive] download file fail",options:e,error:t})},complete(){tt.hideLoading(),l.a.info("[drive] download finish")}}));null==t||t(i)}catch(e){r(e),tt.hideLoading()}}))));var R=_(k),P=_(z);_((function(e){return new Promise(((t,a)=>{tt.openFileFromCloud(Object(n.a)(Object(n.a)({},e),{},{mountPoint:g,success(a){l.a.info("[drive] open file success",e),t(a)},fail(t){l.a.error("[drive] open file fail",e,t),a(t),Object(m.d)("filePreviewFail",{message:"[drive] preview file fail",options:e,error:t})}}))}))}))},function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"a",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"c",(function(){return d})),a.d(t,"b",(function(){return u})),a.d(t,"f",(function(){return m}));var r=a(370),i=a(10),n=a(214),o=a(717);function s(e){return new Promise(((t,a)=>{var r=new Blob([e],{type:"text/html"});try{i.a.info("打印页面 Blob:\n",r)}catch(e){i.a.error("上报打印日志失败")}var n=new FileReader;n.onload=e=>{if(2===e.target.readyState){var r=e.target.result;t(r)}else a(new Error("str2DataUrl reader onload failed"))},n.readAsDataURL(r)}))}function c(e){var t;return(null===(t=Object(r.a)(e.split(".")))||void 0===t?void 0:t.toLowerCase())||""}function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=e.split("?")[0],r=a.split("/"),i=r[r.length-1];t&&(i=i.replace(/,/g,""));var n=i.split(".");n=n.slice(0,-1).join(".");var o=i.split("."),s=o.slice(0,-1).join("."),c=o[o.length-1];return s.length||(i="file",c=""),{path:e,fileName:i,suffix:c,fileNameWithoutSuffix:n}}function d(e){var t=l(e).suffix;return t?"~0x0.".concat(t):"~0x0.image"}function u(e){return Object(r.a)(e.split("/"))||""}var p=(()=>{var e=null;return()=>(e||(e=n.d.login(!0)).finally((()=>{e=null})),e)})();function m(e,t){return Object(o.b)({options:e,onTaskChange:t,login:p})}},,function(e,t,a){"use strict";a.d(t,"d",(function(){return U})),a.d(t,"b",(function(){return F})),a.d(t,"a",(function(){return B})),a.d(t,"c",(function(){return Y}));var r=a(6),i=a(387),n=a(18),o=a(10),s=a(856),c=a.n(s),l=a(857),d=a.n(l),u=a(858),p=a.n(u),m=a(859),h=a.n(m),b=a(860),g=a.n(b),v=a(861),j=a.n(v),O=a(862),f=a.n(O),M=a(863),_=a.n(M),y=a(864),D=a.n(y),N=a(865),A=a.n(N),T=a(866),I=a.n(T),C=a(867),x=a.n(C),S=a(868),w=a.n(S),L=a(869),E=a.n(L),k=a(870),z=a.n(k),R=a(871),P=a.n(R);function U(e){switch(e){case n.k.DOC:case n.k.DOCX:return c.a;case n.k.XLS:case n.k.XLSX:return p.a;case n.k.PPT:case n.k.PPTX:return d.a;case n.k.PDF:return h.a;default:return""}}var B,F={code:j.a,doc:D.a,excel:f.a,music:g.a,notype:x.a,pdf:A.a,pic:_.a,ppt:I.a,vedio:w.a,word:E.a,zip:z.a,email:P.a};!function(e){e.aac="music",e.aif="music",e.amr="music",e.apk="code",e.arj="zip",e.au="music",e.avi="vedio",e.bmp="pic",e.dll="code",e.dmg="code",e.doc="word",e.docx="word",e.exe="code",e.flac="music",e.flash="vedio",e.gif="pic",e.gz="zip",e.hlp="doc",e.html="doc",e.image="pic",e.int="code",e.jpeg="pic",e.jpg="pic",e.mmf="music",e.mov="vedio",e.mp3="music",e.mp4="vedio",e.mpg="vedio",e.pdf="pdf",e.pic="pic",e.png="pic",e.ppt="ppt",e.pptx="ppt",e.ram="music",e.rar="zip",e.rtf="doc",e.swf="vedio",e.sys="code",e.tif="pic",e.txt="doc",e.wav="music",e.wma="music",e.wps="doc",e.xls="excel",e.xlsx="excel",e.z="zip",e.zip="zip",e.eml="email"}(B||(B={}));class Y{constructor(e,t){Object(r.a)(this,"img",void 0),Object(r.a)(this,"slots",void 0),this.img=e.startsWith("data:")?atob(e.split(",")[1]):e,this.slots=Object(i.a)(t)?{default:t}:t}toDataUrl(e){e||(e=this.slots.default),Object(i.a)(e)&&(e={default:e});var t=this.img;for(var a of Object.keys(e))t=t.replace(RegExp(this.slots[a],"g"),e[a]);return"undefined"==typeof btoa?(o.a.error("btoa 不存在,转换失败"),""):"data:image/svg+xml;base64,".concat(btoa(t))}}},function(e,t,a){"use strict";a.d(t,"j",(function(){return m})),a.d(t,"i",(function(){return h})),a.d(t,"g",(function(){return b})),a.d(t,"m",(function(){return g})),a.d(t,"b",(function(){return v})),a.d(t,"n",(function(){return j})),a.d(t,"a",(function(){return O})),a.d(t,"d",(function(){return f})),a.d(t,"q",(function(){return M})),a.d(t,"l",(function(){return _})),a.d(t,"h",(function(){return D})),a.d(t,"k",(function(){return N})),a.d(t,"f",(function(){return A})),a.d(t,"e",(function(){return T})),a.d(t,"o",(function(){return I})),a.d(t,"p",(function(){return C})),a.d(t,"c",(function(){return x}));var r=a(5),i=a(23),n=a(22),o=a(2),s=a(20),c=a(184),l=a(176),d=a(45),u=a(198),p=Object(s.c)("pc:src/stores/index/utils.ts"),m=e=>{switch(e){case i.i.TodoApproval:return Object(o.t)("Approval.Todo");case i.i.DoneApproval:return Object(o.t)("Approval.Done");case i.i.InitiatedApproval:return Object(o.t)("ListCreated");default:return Object(o.t)("ListCC")}},h=e=>{var{key:t,isYm:a=!1,ceoIsTest:r=!1,isSubSearch:i}=e;switch(t){case n.a.Todo:return i?Object(o.t)("Approval.Todo"):a?Object(o.t)("Approval.MyTodo"):Object(o.t)("Approval.Todo");case n.a.Done:return i?Object(o.t)("Approval.Done"):a?Object(o.t)("Approval.MyDone"):Object(o.t)("Approval.Done");case n.a.Initiated:return i?Object(o.t)("ListCreated"):a?Object(o.t)("Approval.MySubmitted"):Object(o.t)("ListCreated");case n.a.CeoTodo:return r?Object(o.t)("Approval.TaTodo"):Object(o.t)("Approval.CeoTodo");case n.a.CeoDone:return r?Object(o.t)("Approval.TaDone"):Object(o.t)("Approval.CeoDone");case n.a.Shared:return Object(o.t)("Menu.Other");default:return i?Object(o.t)("Detail.FreeCCButton"):a?Object(o.t)("Approval.CopyMe"):Object(o.t)("ListCC")}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case i.i.TodoApproval:return t?n.a.CeoTodo:n.a.Todo;case i.i.DoneApproval:return t?n.a.CeoDone:n.a.Done;case i.i.InitiatedApproval:return n.a.Initiated;case i.i.UnreadNotice:return n.a.CarbonCopy;case i.i.ReadNotice:return n.a.Read;case i.i.Shared:return n.a.Shared;default:throw new Error("没有处理的Topic类型")}},g=[{Count:0,Counts:[],DisplayCount:0,Topic:1},{Count:0,Counts:[],DisplayCount:0,Topic:2},{Count:0,Counts:[],DisplayCount:0,Topic:17},{Count:0,Counts:[],DisplayCount:0,Topic:3}],v=[{Count:0,Counts:[],DisplayCount:0,Topic:1},{Count:0,Counts:[],DisplayCount:0,Topic:2}],j=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map((e=>({key:b(e.Topic,t),title:"",displayCount:Number(e.DisplayCount),showCount:e.Topic===i.i.TodoApproval||e.Topic===i.i.UnreadNotice,children:[]})))},O={[i.i.TodoApproval]:0,[i.i.DoneApproval]:1,[i.i.UnreadNotice]:2,[i.i.InitiatedApproval]:3},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case i.i.TodoApproval:return t?n.a.CeoTodo:n.a.Todo;case i.i.DoneApproval:return t?n.a.CeoDone:n.a.Done;case i.i.ReadNotice:case i.i.UnreadNotice:return n.a.CarbonCopy;case i.i.InitiatedApproval:return n.a.Initiated;case i.i.Shared:case i.i.Frozen:return n.a.Shared;default:throw new Error("Notfound")}},M=(e,t,a,r,i)=>{"pc-pages/index/index"===Object(l.b)()&&i===d.h.Index&&p("cardListCountConflict",{topic:e,list_count:t,title:a,scene:r})},_=e=>({[i.i.InitiatedApproval]:c.b.Submission,[i.i.Shared]:c.b.Shared}[e]||e),y=e=>({[c.b.Submission]:i.i.InitiatedApproval}[e]||e),D=(e,t)=>{var a,i=e,n=t?e.Count:void 0;return n&&(n.Users=e.Users,n.Departments=e.Departments,n.Pipelines=e.Count.Pipelines.filter((e=>e.Topic!==c.b.PredictedTodoApproval)).map((e=>Object(r.a)(Object(r.a)({},e),{},{Topic:y(e.Topic)})))),[i,n,(null==e||null===(a=e.Count)||void 0===a?void 0:a.SubOrdinateCount)||0]},N=(e,t,a)=>(e.Counts.forEach((e=>{var i=t.children.find((t=>t.title===e.Name));if(i)e.DefinitionKeys.forEach((e=>{i.keys.add(e)})),a&&i.add(Number(e.DisplayCount),u.f);else{var n=Object(u.d)(Object(r.a)(Object(r.a)({},e),{},{DisplayCount:a?e.DisplayCount:0}));t.children.push(n)}a&&(t.displayCount+=Number(e.DisplayCount))})),{readMenu:t}),A=e=>e.map((e=>{var t=0;return e.children.forEach((e=>{t+=e.displayCount})),Object(r.a)(Object(r.a)({},e),{},{displayCount:t})})),T=e=>{var{Attributes:t,isReaded:a=!1}=e;if(a)return 0;var r=t.find((e=>"display_count"===e.Key));return r?Number(r.Value):1},I={[n.a.Todo]:[c.b.TodoApproval],[n.a.Done]:[c.b.DoneApproval],[n.a.CarbonCopy]:[c.b.UnreadNotice,c.b.ReadNotice],[n.a.Initiated]:[c.b.Submission]},C={[c.b.TodoApproval]:n.a.Todo,[c.b.DoneApproval]:n.a.Done,[c.b.UnreadNotice]:n.a.CarbonCopy,[c.b.ReadNotice]:n.a.CarbonCopy,[c.b.Submission]:n.a.Initiated},x=e=>{var{url:t,title:a,initiator:r,summaries:n}=e;return{ID:"",System:"external",Topic:i.i.Shared,AssigneeID:"",InitiatorIDs:[],Timestamp:"",NanoUnix:Date.now(),DefinitionKey:"",DefinitionName:a,DefinitionAvatarURL:"",SourceName:"",TaskID:"",TaskUniqueID:"",TaskNodeID:"",TaskNodeName:"",TaskCreateTimestamp:"",TaskEndTimestamp:"",TaskUpdateTimestamp:"",TaskCategory:i.g.Notice,TaskStatus:i.h.Processing,ProcessID:"__hijack__",ProcessUniqueID:"",ProcessRootDefinitionKey:"",ProcessRootDefinitionName:"",ProcessDefinitionKey:"",ProcessDefinitionName:"",ProcessDefinitionID:"",ProcessStatus:i.f.Running,ProcessCreateTimestamp:"",ProcessUpdateTimestamp:"",DisplayMethod:i.b.Sidebar,SupportBatchRead:!1,IntranetAccess:!1,URLs:{pc:t},Title:"",DisplayFields:n.map((e=>({Key:"",Value:e}))),Attributes:[],RelatedUserIDs:[],NextPageToken:"",Percentile:"",initiator:r}}},function(e,t,a){"use strict";var r;a.d(t,"a",(function(){return r})),function(e){e.AREA="Area",e.CITY="City",e.COUNTRY="Country",e.PROVINCE="Province"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"i",(function(){return l})),a.d(t,"h",(function(){return d})),a.d(t,"g",(function(){return u})),a.d(t,"f",(function(){return m})),a.d(t,"a",(function(){return h})),a.d(t,"d",(function(){return b})),a.d(t,"b",(function(){return g})),a.d(t,"e",(function(){return v})),a.d(t,"c",(function(){return j}));var r=a(5),i=a(10),n=a(28),o=a(17),s=a(12);function c(e){return t=>new Promise(((a,i)=>e(Object(r.a)(Object(r.a)({},t),{},{success:e=>a(e),fail:e=>i(e)}))))}var l=c(tt.showToast),d=c(tt.setClipboardData),u=c(tt.openSchema),p=(c(tt.print),!1),m=c((e=>{p=!0,tt.openDrawerSidebar(e)})),h=c((e=>{p=!1,tt.closeDrawerSidebar(e)}));function b(){return p}var g={_detail:null,start(e){try{var t;this._detail={openTime:(null===(t=performance)||void 0===t?void 0:t.now())||(new Date).getTime(),detail:e}}catch(e){Object(s.b)(o.f.ApprovalError,{location:"in function detailTTI.start at src/pc-pages/index/components/detail-module/utils.tsx",message:JSON.stringify(e)}),i.a.error(e)}},end(e){try{var t;if(null!==(t=this._detail)&&void 0!==t&&t.openTime){var a,r,n,c,l,d=(null===(a=performance)||void 0===a?void 0:a.now())||(new Date).getTime();Object(s.b)(o.f.ApprovalDetailSwitchTTI,{value:d-(null===(r=this._detail)||void 0===r?void 0:r.openTime),type:null===(n=this._detail)||void 0===n||null===(c=n.detail)||void 0===c?void 0:c.type,iframe_type:(null==e?void 0:e.type)||"",child_biz:null==e?void 0:e.childBiz,people_biz:null==e?void 0:e.peopleBiz,open_time:"".concat(null===(l=this._detail)||void 0===l?void 0:l.openTime)})}}catch(e){Object(s.b)(o.f.ApprovalError,{location:"in function detailTTI.end at src/pc-pages/index/components/detail-module/utils.tsx",message:JSON.stringify(e)}),i.a.error(e)}this._detail=null}},v=n.m?["https://oa-boe.bytedance.net","https://sf-unpkg-src.bytedance.net"]:n.q?["https://oa-pre.bytedance.com","https://oa-pre.bytedance.net"]:["https://oa.bytedance.com","https://oa.bytedance.net"],j=(e,t,a)=>{try{var r,n=new URL(e?null===(r=e.webviewInfo)||void 0===r?void 0:r.url:v[0]);return n.searchParams.set("FA_REFRESH",String(t)),n.searchParams.set("FA_ENV","iframe-webview"),a&&n.searchParams.set("approval_user_id",a),n.toString()}catch(e){return Object(s.b)(o.f.ApprovalError,{location:"in function getIframeSrc at src/pc-pages/index/components/detail-module/utils.tsx",message:JSON.stringify(e)}),i.a.error("非法的的 URL",e),v[0]}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),a(3);var r=a(42),i=a(1),n=a(538),o=a.n(n),s=a(8),c=a.n(s),l=a(14),d=a(0);function u(e){var{title:t,children:a,ctxId:n,contentClass:s}=e,u="";if(n){var{configurableFormStore:p}=Object(l.d)(n);u=p?p.keyword:""}return Object(d.jsxs)(i.r,{className:o.a.relative_form_item,children:[t&&Object(d.jsx)(i.r,{className:o.a.title,children:Object(d.jsx)(r.a,{content:t,keyword:u,style:{cursor:"pointer"}})}),Object(d.jsx)(i.r,{className:c()(o.a.content,o.a.no_padding,s),children:a})]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return O}));var r,i,n,o,s,c=a(9),l=a(5),d=a(11),u=a(6),p=a(7),m=(a(56),a(4)),h=a(918),b=a(2),g=a(157),v=a(92),j=a(10);!function(e){e[e.PUBLIC=2]="PUBLIC",e[e.PERSONAL=1]="PERSONAL"}(s||(s={}));var O={["".concat(s.PERSONAL)]:Object(b.t)("form.account.personalAccount"),["".concat(s.PUBLIC)]:Object(b.t)("form.account.publicAccount")},f={AccountType:{value:s.PERSONAL,initialValue:s.PERSONAL,dirty:!1,touched:!1,type:"number",required:!0,message:Object(b.t)("Validation.PleaseSelect",{name:Object(b.t)("form.account.accountType")})},AccountName:{value:"",initialValue:"",dirty:!1,touched:!1,type:"string",required:!0,message:Object(b.t)("form.account.accountNamePlaceholder")},AccountNumber:{value:"",initialValue:"",dirty:!1,touched:!1,type:"string",required:!0,message:Object(b.t)("form.account.accountNumberPlaceholder")},BankName:{value:null,initialValue:null,dirty:!1,touched:!1,type:"string",required:!0,message:Object(b.t)("Validation.PleaseSelect",{name:Object(b.t)("form.account.bank")})},BankArea:{value:null,initialValue:null,dirty:!1,touched:!1,type:"string",required:!1,message:Object(b.t)("Validation.PleaseSelect",{name:Object(b.t)("form.account.bankLocation")})},BankBranch:{value:null,initialValue:null,dirty:!1,touched:!1,type:"string",required:!1,message:Object(b.t)("Validation.PleaseSelect",{name:Object(b.t)("form.account.subBank")})},BankIcon:{value:"",initialValue:"",type:"string",dirty:!1,touched:!1,required:!1},Remark:{value:"",initialValue:"",type:"string",dirty:!1,touched:!1,required:!1}},M=(Object(b.t)("form.account.personalAccount"),s.PERSONAL,Object(b.t)("form.account.publicAccount"),s.PUBLIC,r=class{constructor(){Object(d.a)(this,"formFields",i,this),Object(u.a)(this,"accountDisplayText",""),Object(d.a)(this,"validateResult",n,this),Object(u.a)(this,"displayFormat",(()=>{var e=this.formFields.BankName&&this.formFields.BankName.value?this.formFields.BankName.value[v.c.bankName]:"";return"".concat(this.formFields.AccountName.value,"/").concat(e).concat(this.formFields.AccountNumber.value?"(".concat(this.formFields.AccountNumber.value.slice(-4),")"):"")})),Object(d.a)(this,"autoValidate",o,this)}setFieldValue(e,t){this.formFields[e]&&(this.formFields[e]=Object(l.a)(Object(l.a)({},this.formFields[e]),{},{value:t,touched:!0}),this.autoValidate())}setFieldsValue(e){Object.keys(e).forEach((t=>{var a=t;this.formFields[a]&&(this.formFields[a]=Object(l.a)(Object(l.a)({},this.formFields[a]),{},{value:e[a],dirty:!1}))})),this.accountDisplayText=this.displayFormat()}getFieldValue(e){return this.formFields[e]?this.formFields[e].value:""}reset(){this.formFields={AccountName:Object(l.a)(Object(l.a)({},this.formFields.AccountName),{},{value:"",touched:!1,dirty:!1}),AccountType:Object(l.a)(Object(l.a)({},this.formFields.AccountType),{},{value:s.PERSONAL,touched:!1,dirty:!1}),AccountNumber:Object(l.a)(Object(l.a)({},this.formFields.AccountNumber),{},{value:"",touched:!1,dirty:!1}),BankName:Object(l.a)(Object(l.a)({},this.formFields.BankName),{},{value:null,touched:!1,dirty:!1}),BankArea:Object(l.a)(Object(l.a)({},this.formFields.BankArea),{},{value:null,touched:!1,dirty:!1}),BankBranch:Object(l.a)(Object(l.a)({},this.formFields.BankBranch),{},{value:null,touched:!1,dirty:!1}),BankIcon:Object(l.a)(Object(l.a)({},this.formFields.BankIcon),{},{value:"",touched:!1,dirty:!1}),Remark:Object(l.a)(Object(l.a)({},this.formFields.Remark),{},{value:"",touched:!1,dirty:!1})}}outputFormValue(){var e={AccountType:this.formFields.AccountType.value,AccountName:this.formFields.AccountName.value,AccountNumber:this.formFields.AccountNumber.value,Remark:this.formFields.Remark.value};if(this.formFields.BankName.value){var t=this.formFields.BankName.value;e.BankName=JSON.stringify({bankCode:t.bankCode,bankNameEn:t.bankNameEn||"",bankNameZh:t.bankNameZh||""}),e.BankIcon=t.iconURL||""}else e.BankName="",e.BankIcon="";if(this.formFields.BankArea.value){var a=this.formFields.BankArea.value||[];e.BankArea=JSON.stringify(a.map((e=>({code:e.code,name:e.name,geoname_id:e.geoname_id,asci_name:e.asci_name,level:e.level}))))}else e.BankArea="";if(this.formFields.BankBranch.value){var r=this.formFields.BankBranch.value;e.BankBranch=JSON.stringify({bankBranchCode:r.bankBranchCode,bankBranchNameEn:r.bankBranchNameEn,bankBranchNameFr:r.bankBranchNameFr,bankBranchNameJp:r.bankBranchNameJp,bankBranchNameZh:r.bankBranchNameZh,bankCode:r.bankCode,bkId:r.bkId,city:r.city,code:r.code,countryCode:r.countryCode,language:r.language,level:r.level,name:r.name,province:r.province})}else e.BankBranch="";return e}resetValidateResult(){this.validateResult={errors:[],fields:{}}}setDirty(){Object.keys(this.formFields).forEach((e=>{this.formFields[e].dirty=this.formFields[e].touched}))}validate(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise(((t,a)=>{new h.a(this.formFields).validate(this.outputFormValue()).then((()=>{Object(m.s)((()=>{this.setDirty()})),t(!0)})).catch((t=>{var{errors:r,fields:i}=t;Object(m.s)((()=>{this.setDirty(),e&&this.setAllDirty(),e&&(this.validateResult={errors:r,fields:i})})),a({errors:r,fields:i})}))}))}setAllDirty(){Object.keys(this.formFields).forEach((e=>{this.formFields[e].dirty=!0,this.formFields[e].touched=!0}))}resetDirty(){Object.keys(this.formFields).forEach((e=>{this.formFields[e].dirty=!1}))}get isDirty(){return Object.keys(this.formFields).map((e=>this.formFields[e].dirty)).some((e=>Boolean(e)))}get getBankCode(){var e=this.getFieldValue("BankName");return e?e.bankCode:""}get getCity(){var e,t=this.getFieldValue("BankArea");return t.length>0&&(null===(e=t.slice(-1)[0])||void 0===e?void 0:e.name)||""}getCityBankBranchList(e){var t=this;return Object(c.a)((function*(){try{var a=yield e.bankBranchList({BankCode:t.getBankCode,City:t.getCity.replace("市",""),Limit:100});return Object(m.s)((()=>{(t.formFields.BankArea.dirty||t.formFields.BankName.dirty)&&(t.formFields.BankBranch.value=null)})),a.data.bankBranchList}catch(e){return console.error("get city bank branch fail",e),[]}}))()}initForm(e,t){t.getBankAccountById({AccountID:e}).then((e=>{Object(m.s)((()=>{var t=Object(v.d)(e.data.Account);this.setFieldsValue(t)}))})).catch((e=>{console.error("get bank account by id fail",e)}))}get disableBankBranch(){return!(this.getFieldValue("BankName")&&this.getFieldValue("BankArea"))}addAccount(e){return new Promise(((t,a)=>{e.addBankAccount(this.outputFormValue()).then((e=>{j.a.info("add bank account success",e),t(e)})).catch((e=>{a(e)}))}))}updateAccount(e,t){return new Promise(((a,r)=>{e.editBankAccount({Account:Object(l.a)({AccountID:t},this.outputFormValue())}).then((e=>{a(e)})).catch((e=>{r(e)}))}))}},i=Object(p.a)(r.prototype,"formFields",[m.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return f}}),n=Object(p.a)(r.prototype,"validateResult",[m.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{errors:[],fields:{}}}}),Object(p.a)(r.prototype,"setFieldValue",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"setFieldValue"),r.prototype),Object(p.a)(r.prototype,"setFieldsValue",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"setFieldsValue"),r.prototype),Object(p.a)(r.prototype,"reset",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"reset"),r.prototype),Object(p.a)(r.prototype,"resetValidateResult",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"resetValidateResult"),r.prototype),Object(p.a)(r.prototype,"setDirty",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"setDirty"),r.prototype),Object(p.a)(r.prototype,"validate",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"validate"),r.prototype),Object(p.a)(r.prototype,"setAllDirty",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"setAllDirty"),r.prototype),o=Object(p.a)(r.prototype,"autoValidate",[m.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Object(g.a)((()=>{this.validate(!1).then((()=>{this.resetValidateResult()})).catch((e=>{Object(m.s)((()=>{this.validateResult=e}))}))}),50)}}),Object(p.a)(r.prototype,"resetDirty",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"resetDirty"),r.prototype),Object(p.a)(r.prototype,"getCityBankBranchList",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"getCityBankBranchList"),r.prototype),Object(p.a)(r.prototype,"initForm",[m.f],Object.getOwnPropertyDescriptor(r.prototype,"initForm"),r.prototype),Object(p.a)(r.prototype,"disableBankBranch",[m.h],Object.getOwnPropertyDescriptor(r.prototype,"disableBankBranch"),r.prototype),r),_=new M;Object(m.r)((()=>({type:_.formFields.AccountType.value})),(e=>{var{type:t}=e;t===s.PERSONAL?(_.formFields.AccountName.message=Object(b.t)("form.account.accountNamePlaceholder"),_.formFields.AccountNumber.message=Object(b.t)("form.account.accountNumberPlaceholder")):(_.formFields.AccountName.message=Object(b.t)("form.account.acccountNamePublicPlaceholder"),_.formFields.AccountNumber.message=Object(b.t)("form.account.acccountNumberPublicPlaceholder"))})),Object(m.r)((()=>({BankName:_.formFields.BankName,BankArea:_.formFields.BankArea})),(e=>{var{BankName:t,BankArea:a}=e;(t.dirty||a.dirty)&&(_.formFields.BankBranch.value=null)})),Object(m.r)((()=>_.formFields.AccountType.value),(e=>{e===s.PUBLIC?_.formFields.BankArea.required=!0:e===s.PERSONAL&&(_.formFields.BankArea.required=!1)})),t.c=_},,,function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return s}));var r=a(39),i=a(182),n="undefined"!=typeof lynx,o=(()=>{if(n)return!1;var{appName:e}=r.h;return"Feishu"===e})(),s=(()=>{if(n)return SystemInfo.platform===i.b.Android;var{platform:e}=r.h;return e===i.c.Android})()},function(e,t,a){e.exports={"approval-multi-select":"index-module__approval-multi-select___jpuoU","fake-input-wrapper":"index-module__fake-input-wrapper___1vyiW",error:"index-module__error___3AjQS","fake-input-placeholder":"index-module__fake-input-placeholder___WFKUn","fake-input-width-wrapper":"index-module__fake-input-width-wrapper___2fPGx","input-inner-wrapper":"index-module__input-inner-wrapper___2Qswh","value-wrapper":"index-module__value-wrapper___Ja6aX","len-wrapper":"index-module__len-wrapper___21vtx","item-value":"index-module__item-value___2GkTu","value-avatar":"index-module__value-avatar___otfuk","value-name":"index-module__value-name___21XaL","value-delete-icon":"index-module__value-delete-icon___1lnG1",icon:"index-module__icon___2YFks","close-icon":"index-module__close-icon___3VykU",mask:"index-module__mask___2sisd",items:"index-module__items___24Kzr","items-empty":"index-module__items-empty___1gfHq",center:"index-module__center___2-DN3","loading-icon":"index-module__loading-icon___22X-j","empty-text":"index-module__empty-text___1QqS1","item-selected-avatar":"index-module__item-selected-avatar___3-MTB","items-all-wrapper":"index-module__items-all-wrapper___26n7R","items-all":"index-module__items-all___1dfvh","item-all-text":"index-module__item-all-text___1xtsH","item-selected":"index-module__item-selected___IbhHM","items-all-num":"index-module__items-all-num___FBfzl","item-selected-icon":"index-module__item-selected-icon___26sPy","item-selected-name":"index-module__item-selected-name___1mtgO","item-user-name":"index-module__item-user-name___1r8ul","item-depart":"index-module__item-depart___3rvaT",item:"index-module__item___2ftCC","item-wrapper":"index-module__item-wrapper___3LKJi",active:"index-module__active___2SrQl"}},,function(e,t,a){"use strict";a(3);var r=a(8),i=a.n(r),n=a(1),o=(a(1187),a(0));t.a=e=>{var{color:t,size:a,name:r,onClick:s,className:c}=e;return Object(o.jsx)(n.r,{onClick:e=>{null==s||s(e)},className:i()("ud-like-icon","iconfont","icon-".concat(r),c),style:{color:t,fontSize:a}})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(3);function i(e){var t=Object(r.useRef)(null);return t.current=e,Object(r.useCallback)((function(){for(var e,a=arguments.length,r=new Array(a),i=0;i<a;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)}),[t])}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var r=a(6),i=a(20),n=a(50),o=a(113),s=a(138),c=Object(i.c)("pc:src/components/approval-detail/modals/editor-cache.ts");class l extends Map{constructor(e){var{maxSize:t,initMap:a}=e;super(a),Object(r.a)(this,"maxSize",50),this.maxSize=t||50}set(e,t){var{maxSize:a}=this,r=this.size;return r+1>a&&Array.from(this.keys()).slice(0,r+1-a).forEach((e=>{this.delete(e)})),super.set(e,t),this}}var d=new class extends l{constructor(e){var{maxSize:t,key:a}=e;super({maxSize:t,initMap:n.a.getSync(a)||[]}),Object(r.a)(this,"key",""),this.key=a}isOverTime(e){return Date.now()-e>864e5}getKey(e,t){return"".concat(e,"_").concat(t)}saveStorage(){n.a.set(this.key,Array.from(this.entries()))}getVal(e){var t=this.get(e);return t?this.isOverTime(t.time)?(this.delete(e),Object(o.c)()):(c("operateDataFromStorage"),Object(s.c)(t.data)):Object(o.c)()}setVal(e,t){return this.set(e,{data:Object(s.a)(t),time:Date.now()}),this.saveStorage(),this}delete(e){var t=super.delete(e);return t&&this.saveStorage(),t}}({maxSize:30,key:"comment_editor_cache"})},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return g})),a.d(t,"d",(function(){return O})),a.d(t,"e",(function(){return f})),a.d(t,"i",(function(){return M})),a.d(t,"f",(function(){return _})),a.d(t,"j",(function(){return y})),a.d(t,"g",(function(){return D})),a.d(t,"k",(function(){return N})),a.d(t,"l",(function(){return A})),a.d(t,"m",(function(){return T})),a.d(t,"b",(function(){return I})),a.d(t,"h",(function(){return C}));var r,i=a(5),n=a(9),o=a(985),s=a(738),c=a(83),l=a(2),d=a(20),u=a(12),p=a(238),m=a(3),h=a.n(m);!function(e){e.PC="0",e.MOBILE="1"}(r||(r={}));var b=Object(l.getCurrentLanguage)(),g={bankName:b===l.LANG.zh?"bankNameZh":"bankNameEn",bankBranch:b===l.LANG.zh?"name":"bankBranchNameEn"},v=e=>e[g.bankName]||e.bankNameZh,j=e=>e[g.bankBranch]||e.name,O=e=>{var t=Object(o.a)(e.AccountID+e.CreateTime+e.UpdateTime).toString();if(e.AccountNumber=s.dec(e.AccountNumber,t),e.BankBranch)try{var a=s.dec(e.BankBranch,t);e.BankBranch=a?JSON.parse(a):""}catch(t){e.BankBranch="",Object(d.d)("accountDecryptBankBranchError",t)}if(e.BankArea)try{var r=s.dec(e.BankArea,t);e.BankArea=r?JSON.parse(r):[]}catch(t){e.BankArea=[],Object(d.d)("accountDecryptBankAreaError",t)}if(e.BankName)try{var i=JSON.parse(e.BankName);i.iconURL=e.BankIcon,e.BankName=i}catch(t){e.BankName="",Object(d.d)("accountParseBankNameError",t)}return e},f=e=>{var t=e.slice(0,4);for(e=e.slice(4);""!==e;)t="".concat(t," ").concat(e.slice(0,4)),e=e.slice(4);return t},M=e=>{if(!A(e))return null;var t={};return e.filter((e=>e)).forEach((e=>{switch(e.id){case"widgetAccountSelect":e.value&&"object"==typeof e.value&&e.value.value&&(t.AccountID=e.value.value);break;case"widgetAccountType":e.value&&"object"==typeof e.value&&(t.AccountType=e.value.value);break;case"widgetAccountName":t.AccountName=e.value||"";break;case"widgetAccountNumber":t.AccountNumber=e.value||"";break;case"widgetAccountBankName":try{e.value&&"object"==typeof e.value&&e.value.text?t.BankName=JSON.parse(e.value.text):t.BankName=null}catch(e){console.error(e)}break;case"widgetAccountBankArea":try{e.value&&"object"==typeof e.value&&e.value.text?t.BankArea=JSON.parse(e.value.text):t.BankArea=null}catch(e){console.error(e)}break;case"widgetAccountBankBranch":try{e.value&&"object"==typeof e.value&&e.value.text?t.BankBranch=JSON.parse(e.value.text):t.BankBranch=null}catch(e){console.error(e)}break;case"widgetAccountRemark":t.Remark=e.value||""}})),t},_=e=>[{id:"widgetAccountSelect",type:"radioV2",value:{value:e.AccountID,text:e.AccountID}},{id:"widgetAccountType",type:"radioV2",value:{value:e.AccountType,text:e.AccountType}},{id:"widgetAccountName",type:"input",value:e.AccountName},{id:"widgetAccountNumber",type:"number",value:e.AccountNumber},{id:"widgetAccountBankName",type:"radioV2",value:{value:e.BankName?e.BankName.bankCode:"",text:JSON.stringify(e.BankName)}},{id:"widgetAccountBankArea",type:"radioV2",value:{value:e.BankArea?e.BankArea.map((e=>e.geoname_id)).join(","):"",text:JSON.stringify(e.BankArea)}},{id:"widgetAccountBankBranch",type:"radioV2",value:{value:e.BankBranch?e.BankBranch.bkId:"",text:JSON.stringify(e.BankBranch)}},{id:"widgetAccountRemark",type:"textarea",value:e.Remark}],y=e=>{var t=[];return e.forEach((e=>{if(e)switch(e.id){case"widgetAccountType":e.value&&"object"==typeof e.value&&e.value.value&&t.push({title:Object(l.t)("form.account.accountType"),text:c.b[e.value.value],order:1});break;case"widgetAccountName":e.value&&"string"==typeof e.value&&t.push({title:Object(l.t)("form.account.accountName"),text:e.value,order:2});break;case"widgetAccountNumber":e.value&&"string"==typeof e.value&&t.push({title:Object(l.t)("form.account.accountNumber"),text:f(e.value),order:3});break;case"widgetAccountBankName":if(e.value&&"object"==typeof e.value&&e.value.text){var a=JSON.parse(e.value.text);t.push({title:Object(l.t)("form.account.bank"),text:v(a),order:4})}break;case"widgetAccountBankArea":if(e.value&&"object"==typeof e.value&&e.value.text){var r=JSON.parse(e.value.text)||[];if(r&&Array.isArray(r)&&r.length>0){var i=r[0].geoname_id;t.push({title:Object(l.t)("form.account.bankLocation"),text:r.slice(i===p.a?1:0).map((e=>e.name)).join("/"),order:5})}}break;case"widgetAccountBankBranch":if(e.value&&"object"==typeof e.value&&e.value.text){var n=JSON.parse(e.value.text)||{};n&&j(n)&&t.push({title:Object(l.t)("form.account.subBank"),text:j(n),order:6})}break;case"widgetAccountRemark":var o=e.value||"";o&&"string"==typeof o&&t.push({title:Object(l.t)("form.account.remark"),text:o,order:7})}})),t.sort(((e,t)=>e.order-t.order)),t},D=(e,t)=>{var a=((e,t)=>{for(var a=[],r=-1;-1!==(r=e.indexOf(t,r+1));)a.push(r);return a})(e.toLowerCase(),t),r=e.split(""),i=Array(t.length-1).fill("");return a.forEach((a=>{r.splice(a,t.length,{value:"".concat(e.slice(a,a+t.length))},...i)})),r},N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],a=[],r=(e=e.filter((e=>Boolean(e)))).find((e=>"widgetAccountName"===e.id)),i=e.find((e=>"widgetAccountType"===e.id)),n=e.find((e=>"widgetAccountBankName"===e.id)),o=e.find((e=>"widgetAccountNumber"===e.id)),s=e.find((e=>"widgetAccountBankArea"===e.id)),l=e.find((e=>"widgetAccountBankBranch"===e.id)),d=e.find((e=>"widgetAccountRemark"===e.id));i&&i.value&&"object"==typeof i.value&&t.push(c.b[i.value.value]),r&&r.value&&t.push(r.value);var u=[];if(n&&n.value&&"object"==typeof n.value&&n.value.text){var m=JSON.parse(n.value.text);u.push(v(m))}if(o&&o.value&&"string"==typeof o.value&&u.push(f(o.value)),t.push(u.join(" ")),s&&s.value&&"object"==typeof s.value&&s.value.text){var h=JSON.parse(s.value.text)||[];h&&Array.isArray(h)&&h.length>0&&a.push(h.slice(h[0].geoname_id===p.a?1:0).map((e=>e.name)).join("/"))}if(l&&l.value&&"object"==typeof l.value&&l.value.text){var b=JSON.parse(l.value.text)||{};j(b)&&a.push(j(b))}return[t.join("/"),a.join("/"),d?d.value:""].filter((e=>Boolean(e)))},A=e=>{if(!e||!Array.isArray(e))return!1;if(e&&Array.isArray(e)&&e.length>0){var t=e.find((e=>"widgetAccountSelect"===e.id));if(t&&t.value&&t.value.value)return!0}return!1},T=function(){var e=Object(n.a)((function*(e,t){var a=c.a.PUBLIC;if(e&&e.value&&Array.isArray(e.value)){var r=e.value.find((e=>"widgetAccountType"===e.id));r&&r.value&&"object"==typeof r.value&&(a=r.value.value)}Object(u.b)("approval_create_instance_include_form_account_pv_uv",{current_platform:t,account_type:a})}));return function(t,a){return e.apply(this,arguments)}}(),I=(e,t)=>h.a.Children.map(e,(e=>{if(h.a.isValidElement(e)){return h.a.cloneElement(e,Object(i.a)(Object(i.a)({},t),{},{onChange:a=>{var{onChange:r}=e.props,{onChange:i}=t;r&&r(a),i&&i(a)}}))}return e})),C=e=>{var t={widgetAccountName:"",widgetAccountNumber:"",widgetAccountBankName:""};return e.forEach((e=>{if(e)switch(e.id){case"widgetAccountName":e.value&&"string"==typeof e.value&&(t.widgetAccountName=e.value);break;case"widgetAccountNumber":e.value&&"string"==typeof e.value&&(t.widgetAccountNumber=f(e.value));break;case"widgetAccountBankName":if(e.value&&"object"==typeof e.value&&e.value.text){var a=JSON.parse(e.value.text);t.widgetAccountBankName=v(a)}}})),Object.values(t).filter((e=>e)).join("/")}},function(e,t,a){"use strict";a.d(t,"e",(function(){return v})),a.d(t,"b",(function(){return j})),a.d(t,"f",(function(){return O})),a.d(t,"a",(function(){return f})),a.d(t,"c",(function(){return M})),a.d(t,"d",(function(){return _}));var r=a(423),i=a(387),n=a(802),o=(a(4),a(31)),s=a.n(o),c=a(2),l=a(36),d=a(844),u=a.n(d),p=a(17),m=a(39),h=a(10),b=a(12),g=a(594);function v(e){return new Promise((t=>setTimeout(t,e||0)))}function j(e){return function(e){return Object.keys(e).filter((t=>{var a=e[t];return t===a||Object(r.a)(a)||Object(i.a)(a)&&Object(n.a)(e[a])}))}(e).map((t=>e[t]))}function O(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function f(e){var t=s()(e),a=s()().year();return t.year()<a?t.format("YYYY-MM-DD HH:mm"):t.format("MM-DD HH:mm")}function M(){return Object(c.getCurStarlingLang)()===c.LANG.zh}function _(e){if(!e)return h.a.error("更新失败获取fg配置信息失败"),void Object(b.b)(p.f.FgVersion,{status_info:"更新失败获取fg配置信息失败"});if(!m.h||!m.h.gadgetVersion)return h.a.error("获取小程序版本信息失败",m.h),void Object(b.b)(p.f.FgVersion,{status_info:"获取小程序版本信息失败"});var t=u()(m.h.gadgetVersion,e.Value);Object(b.b)(p.f.FgVersion,{status_info:"更新判断",fg_enable:Object(g.a)(e.Enable),fg_value:e.Value,gadget_version:m.h.gadgetVersion,satisfies:t}),e.Enable&&t?(()=>{var e=tt.getUpdateManager(),t=0;e.onCheckForUpdate(),e.onUpdateReady((()=>{Object(l.r)({title:Object(c.t)("update_version_text"),icon:"info"}),v(1500).then((()=>{e.applyUpdate()}))})),e.onUpdateFailed((()=>{t>3||v(15e3*t).then((()=>{e.triggerCheckUpdate(),t++}))}))})():(h.a.info("不需要更新"),h.a.info("fgConfig",e),h.a.info("systemInfo",m.h))}},function(e,t,a){"use strict";var r,i;a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return n})),function(e){e.Create="create",e.History="history",e.Detail="detail"}(r||(r={})),function(e){e.Create="create",e.History="history"}(i||(i={}));var n=(e,t)=>{var a=Object.entries(null!=t?t:{}).filter((e=>{var[t,a]=e;return Boolean(a)})).map((e=>{var[t,a]=e;return"".concat(t,"=").concat(a)})).join("&");return a?"".concat(e,"?").concat(a):e}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"d",(function(){return c}));var r=a(2),i={applicant:"apaascorehrApplicant",position:"apaascorehrPosition",onboardingDate:"apaascorehrOnboardingDate",probationPeriod:"apaascorehrProbationPeriod",regularateDate:"apaascorehrRegularateDate"},n=e=>{var t=[],a=[];for(var r of e)r.readonly&&a.push(r.id),!1===r.visible&&t.push(r.id);return a.push(i.position,i.onboardingDate,i.probationPeriod),[t,a]},o={UserNotExist:Object(r.t)("Apaascorehr_UserNotFound"),BeingConversion:Object(r.t)("Apaascorehr_UserConversionApplying"),HasConversion:Object(r.t)("Apaascorehr_UserConversionApplyed")},s={defaultValue:{conversionDate:void 0,probationPeriodMonths:void 0,currentDepartment:void 0,onboardingDate:void 0},cleanData:!0},c=e=>e.id===i.position&&void 0===e.data.value[0]||e.id===i.probationPeriod&&""===e.data.value||e.id===i.onboardingDate&&null===e.data.value},function(e,t,a){"use strict";a.d(t,"d",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return o}));var r,i,n=a(57);(function(e){e.DAY="DAY",e.HALFDAY="HALFDAY",e.HOUR="HOUR"})(r||(r={})),function(e){e[e.HIDDEN=0]="HIDDEN",e[e.SHOW=1]="SHOW"}(i||(i={}));var o,s={[r.HOUR]:n.a.DATE_AND_TIME,[r.DAY]:n.a.DATE,[r.HALFDAY]:n.a.DATE_HALF};!function(e){e.StartTime="widgetOutGroupStartTime",e.EndTime="widgetOutGroupEndTime",e.Duration="widgetOutGroupInterval",e.Reason="widgetOutGroupReason",e.Unit="widgetOutGroupUnit",e.Image="widgetOutGroupImage",e.Type="widgetOutGroupType"}(o||(o={}))},,function(e,t,a){"use strict";a.d(t,"c",(function(){return m})),a.d(t,"b",(function(){return b})),a.d(t,"a",(function(){return v}));var r,i,n=a(5),o=a(9),s=a(20),c=a(44);(function(e){e[e.Self=0]="Self",e[e.SelfAndAllCollaborations=1]="SelfAndAllCollaborations",e[e.SelfAndSomeCollaborations=2]="SelfAndSomeCollaborations"})(r||(r={})),function(e){e[e.DefaultType=0]="DefaultType",e[e.InstanceID=1]="InstanceID",e[e.CollaborationTenantID=2]="CollaborationTenantID"}(i||(i={}));var l=a(10),d=a(2),u=a(12),p=Object(s.c)("shared:src/utils/collaboration/index.ts");function m(e,t){var a;return(null===(a=function(e,t){if(null!=t&&t.enableShowCrossTenant){var a=String(e.tenantId||e.tenant_id||e.TenantId||""),r=e.tenantName||e.tenant_name||e.TenantName||"";return a&&!t.isCurrentTenant(a)?{tenantId:a,tenantName:r}:void 0}}(e,t))||void 0===a?void 0:a.tenantName)||""}function h(e,t){return!e.enableChooseCrossTenant||t.isPreview||t.disableCrossTenant?{}:e.chooseCrossTenantConfig||{}}function b(e){var{globalStore:t,instanceId:a,tenantId:n,isPreview:o,disableCrossTenant:s,isSupportCrossTenant:c=!0,isNotFeiShu:l=!1}=e||{};return!t.enableShowCrossTenant&&!t.enableChooseCrossTenant||l||o||s||!c?{}:a?{b2bParam:{searchType:r.SelfAndSomeCollaborations,specifiedIDType:i.InstanceID,specifiedID:a}}:n?t.isCurrentTenant(n)?{}:{b2bParam:{searchType:r.SelfAndSomeCollaborations,specifiedIDType:i.CollaborationTenantID,specifiedID:n}}:{b2bParam:{searchType:r.SelfAndAllCollaborations}}}var g=function(){var e=Object(o.a)((function*(e){return new Promise(((t,a)=>{tt.chooseContact(Object(n.a)(Object(n.a)({},e),{},{success:t,fail:a}))}))}));return function(t){return e.apply(this,arguments)}}();function v(e){return j.apply(this,arguments)}function j(){return j=Object(o.a)((function*(e){var{option:t,globalStore:a,queryUsers:r,showToast:i,from:o}=e;try{var s=h(a,t),{data:m}=yield g(Object(n.a)(Object(n.a)({},s),t)),v={func:"chooseContact",usersCount:(null==m?void 0:m.length)||0};if(Object(u.b)("approval_mp_choose_data",v),p("chooseContactSuccess",v),!m||!m.length)return{invalidUsers:[],validUsers:[]};var{data:{userList:j}}=yield r(Object(n.a)({openIds:m.map((e=>e.openId))},b({globalStore:a,instanceId:t.instanceId,isPreview:t.isPreview,disableCrossTenant:t.disableCrossTenant}))),O=(null==j?void 0:j.map((e=>Object(n.a)(Object(n.a)({},e),{},{id:String(e.userId)}))))||[];l.a.info("chooseContact userList",j);var f=[],M=[];return O.forEach((e=>{-1===e.status?f.push(e):M.push(e)})),f.length&&(i&&tt.showToast({title:Object(d.t)(t.instanceId?"approval-mp_OutsideRequestOwner_Toast":"ChooseExternalContactDeniedHint",{staff_names:f.map((e=>e.name)).join("、")}),icon:"pc"===o?"error":"none",duration:3e3}),l.a.info("chooseContact invalidUsers",f)),l.a.info("chooseContact validUsers",M),{invalidUsers:f,validUsers:M}}catch(e){throw p("commonOnError",{message:"collaboration chooseContact fail",errorMsg:Object(c.a)(e)}),l.a.error("collaboration chooseContact fail",e),e}})),j.apply(this,arguments)}},function(e,t,a){"use strict";var r=a(1),i=(a(3),a(8)),n=a.n(i),o=a(89),s=(a(1200),a(0));t.a=e=>{var{disabled:t,loading:a=!1,size:i="medium",type:c="outlined",shape:l="square",color:d="default",icon:u,children:p,onClick:m,className:h,openType:b,dataProps:g}=e;return Object(s.jsxs)(r.b,{"data-props":g,openType:b,onClick:e=>{t||a||null==m||m(e)},disabled:t,hoverClass:"ud-like-button--press",className:n()("ud-like-button","ud-like-button--".concat(i),"ud-like-button--".concat(l),"ud-like-button--".concat(c),"ud-like-button--".concat(d),{"ud-like-button--focus":!t&&!a,"ud-like-button--loading":!t&&a,"ud-like-button--disabled":t},h),children:[a?Object(s.jsx)(o.a,{className:"ud-like-button__icon ud-like-button__loading-icon",name:"loading"}):u?Object(s.jsx)(o.a,{className:n()("ud-like-button__icon",{"ud-like-button__icon--disabled":t}),name:u}):null,p]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return f}));var r,i,n,o,s,c,l,d,u=a(9),p=a(11),m=a(6),h=a(7),b=(a(56),a(4)),g=a(19),v=a.n(g),j=a(12),O=a(323),f=(d=class e{constructor(){Object(m.a)(this,"history",null),Object(p.a)(this,"queue",i,this),Object(p.a)(this,"cursor",n,this),Object(p.a)(this,"title",o,this),Object(p.a)(this,"visible",s,this),Object(p.a)(this,"useBeforeClose",c,this),Object(p.a)(this,"beforeClose",l,this)}static use(){var t=v.a.getCurrentPages().slice().pop(),{__webviewId__:a}=null!=t?t:{};return Object(j.b)("approval_drawer_use",{currentPageRoute:a}),a||O.a.approvalRuntimeErrorProjectVerify({type:"is_empty_current_page_route",func:"src/stores/drawer.ts static use",data:Object.prototype.toString.call(t)}),a&&!e.stores.has(a)&&e.stores.set(a,new e),e.stores.get(a)}static delete(){var t=v.a.getCurrentPages().slice().pop(),{__webviewId__:a}=null!=t?t:{};a||O.a.approvalRuntimeErrorProjectVerify({type:"is_empty_current_page_route",func:"src/stores/drawer.ts static delete",data:Object.prototype.toString.call(t)}),a&&e.stores.has(a)&&e.stores.delete(a)}static reset(){e.stores.forEach((e=>e.reset()))}static clear(){e.stores=new Map}consume(){var{queue:e,history:t}=this;if(t)for(;null!=e&&e.length;){var a=e.shift();if(!a)break;t.open(...a)}}setCursor(e){this.cursor=e}setTitle(e){this.title=e}setVisible(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.visible=e}open(){for(var e,t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];var[i,,n]=a,{current:o,bottom:s,routes:c}=null!==(e=this.history)&&void 0!==e?e:{};Object(j.b)("approval_drawer_open",{route:i,payload:n,history:{current:o,bottom:s,routes:c}}),this.history?this.history.open(...a):this.queue.push(a),this.visible=!0}setUseBeforeClose(e){this.useBeforeClose=e}AddBeforeClose(e){this.beforeClose=e}close(){var e=this;return Object(u.a)((function*(){(!e.useBeforeClose||e.beforeClose&&(yield e.beforeClose()))&&Object(b.s)((()=>{e.visible=!1}))}))()}reset(){this.visible=!1,this.history=null,this.cursor=0,this.queue=[],this.title=null}},Object(m.a)(d,"stores",new Map),r=d,i=Object(h.a)(r.prototype,"queue",[b.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(h.a)(r.prototype,"consume",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"consume"),r.prototype),n=Object(h.a)(r.prototype,"cursor",[b.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Object(h.a)(r.prototype,"setCursor",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"setCursor"),r.prototype),o=Object(h.a)(r.prototype,"title",[b.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(h.a)(r.prototype,"setTitle",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"setTitle"),r.prototype),s=Object(h.a)(r.prototype,"visible",[b.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(h.a)(r.prototype,"setVisible",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"setVisible"),r.prototype),Object(h.a)(r.prototype,"open",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"open"),r.prototype),c=Object(h.a)(r.prototype,"useBeforeClose",[b.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Object(h.a)(r.prototype,"setUseBeforeClose",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"setUseBeforeClose"),r.prototype),l=Object(h.a)(r.prototype,"beforeClose",[b.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>!0}}),Object(h.a)(r.prototype,"AddBeforeClose",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"AddBeforeClose"),r.prototype),Object(h.a)(r.prototype,"close",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"close"),r.prototype),Object(h.a)(r.prototype,"reset",[b.f],Object.getOwnPropertyDescriptor(r.prototype,"reset"),r.prototype),r)},function(e,t,a){e.exports={"devtools-wrapper":"index-module__devtools-wrapper___OlT5q","devtools-section":"index-module__devtools-section___yf5HI","devtools-switcher":"index-module__devtools-switcher___1Ma-3","devtools-btn":"index-module__devtools-btn___Legmu","devtools-container":"index-module__devtools-container___2mluD","detail-item":"index-module__detail-item___1rJwf","item-info":"index-module__item-info___1RcCD","item-id":"index-module__item-id___2zC4b","item-type":"index-module__item-type___DPX7m","item-url":"index-module__item-url___18r-3","url-text":"index-module__url-text___2Lgfn"}},,function(e,t,a){"use strict";a.d(t,"d",(function(){return u})),a.d(t,"k",(function(){return g})),a.d(t,"h",(function(){return M})),a.d(t,"l",(function(){return _})),a.d(t,"b",(function(){return y})),a.d(t,"j",(function(){return D})),a.d(t,"i",(function(){return A})),a.d(t,"e",(function(){return I})),a.d(t,"f",(function(){return x})),a.d(t,"g",(function(){return L})),a.d(t,"c",(function(){return k})),a.d(t,"a",(function(){return R}));var r,i,n,o,s=a(5),c=a(9),l=a(58),d=a(2);function u(){return-(new Date).getTimezoneOffset()}function p(e){return{day:e.day,restTime:e.rest_time,workingTime:e.working_time}}function m(e){var t;return{balanceUnit:null!==(t=O[e.unit])&&void 0!==t?t:1,quota:e.quota,range:e.time,rangeDateTime:e.date_time}}function h(e){var t;return{balanceUnit:null!==(t=O[e.unit])&&void 0!==t?t:1,quota:e.quota,range:e.range,rangeDateTime:e.range_date_time}}function b(e){return{balanceUnit:e.balance_unit,endDateTime:e.end_date_time,endTime:e.end_time,instanceId:e.instance_id,startDateTime:e.start_date_time,startTime:e.start_time,instance:{approvalName:e.instance.approval_name,content:e.instance.content,createTime:e.instance.create_time,instanceId:e.instance.instance_id,instanceStatus:e.instance.instance_status}}}function g(e,t,a){return v.apply(this,arguments)}function v(){return v=Object(c.a)((function*(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r){var{data:i}=yield e.getApprovalDetailByInstanceId({instance_id:t.instanceId,time_offset:u()},a);return{leaveDetail:i.leave_detail.map(m),leaveQuota:i.leave_quota,schedules:i.schedules.map(p)}}var{data:n}=yield e.leavebalancedetail(t,a);return n})),v.apply(this,arguments)}(function(e){e[e.NO_RULE=0]="NO_RULE",e[e.BreastFeeding=8]="BreastFeeding"})(r||(r={})),function(e){e[e.WORKDAY=1]="WORKDAY",e[e.DAY=2]="DAY",e[e.MANUAL=3]="MANUAL"}(i||(i={})),function(e){e[e.Unknown=0]="Unknown",e[e.DAY=1]="DAY",e[e.HALF_DAY=2]="HALF_DAY",e[e.HOUR=3]="HOUR"}(n||(n={})),function(e){e[e.DAY=1]="DAY",e[e.HALF_DAY=2]="HALF_DAY",e[e.HOUR=3]="HOUR",e[e.HALF_HOUR=4]="HALF_HOUR",e[e.MINUTE=5]="MINUTE"}(o||(o={}));var j={[l.d.Day]:n.DAY,[l.d.HalfDay]:n.HALF_DAY,[l.d.Hour]:n.HOUR,[l.d.HalfHour]:n.HOUR,[l.d.Minute]:n.HOUR},O={[l.d.Hour]:1,[l.d.HalfHour]:1,[l.d.Day]:2,[l.d.HalfDay]:2,[l.d.Minute]:5},f={[l.d.Day]:o.DAY,[l.d.HalfDay]:o.HALF_DAY,[l.d.Hour]:o.HOUR,[l.d.HalfHour]:o.HALF_HOUR,[l.d.Minute]:o.MINUTE};function M(e){return e===i.MANUAL||e instanceof Array&&(null==e?void 0:e.includes(l.b.Custom))}function _(e){return e===i.WORKDAY||e instanceof Array&&e&&(!e.includes(l.b.Holiday)||!e.includes(l.b.Offday))}function y(e){if(e===i.WORKDAY)return Object(d.t)("LeaveGroup_Exclude_Hint");if(e instanceof Array&&e){var t=!e.includes(l.b.Holiday),a=!e.includes(l.b.Offday);return t&&a?Object(d.t)("LeaveGroup_Exclude_Hint"):t?Object(d.t)("LeaveGroup_Exclude_Hint_Holiday"):a?Object(d.t)("LeaveGroup_Exclude_Hint_Weekend"):""}return""}function D(e,t,a){return N.apply(this,arguments)}function N(){return N=Object(c.a)((function*(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(i){var{data:o}=yield e.queryUserLeaveList({imitate_user_id:t.imitateUserId,time_offset:u()},a);return o.leave_info_list.map((e=>{var{leave_id:t,leave_name:a,balance_used:i,leave_unit:o,balance_unit:s,quota:c,template_type:d,custom_form:u,select_hit:p,leave_time_cal_rule:m}=e;return{isLeaveRefactorGray:!0,id:t,leaveName:a,balanceUsed:i,leaveUnit:f[o],balanceUnit:d===l.i.LactationLeave?n.DAY:j[s],balanceQuota:c,balanceOfferRuleType:d===l.i.LactationLeave?r.BreastFeeding:r.NO_RULE,templateType:d,customForm:u,selectHit:p,leaveTimeCalRule:m}}))}var{data:s}=yield e.leavebalancecurrentuser(t,a);return s.balanceList})),N.apply(this,arguments)}function A(e,t,a){return T.apply(this,arguments)}function T(){return T=Object(c.a)((function*(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r){var i,n,{data:o}=yield e.calLeaveQuota({leave_id:t.definitionId,start_time:t.startDateTime,end_time:t.endDateTime,origin_instance_id:t.originInstanceId,imitate_user_id:t.imitateUserId,time_offset:null!==(i=t.time_offset)&&void 0!==i?i:u()},a);return{isBalanceEnough:null!==(n=o.is_balance_enough)&&void 0!==n&&n,schedules:o.schedules.map(p),leaveQuota:o.leave_quota,leaveDetail:o.leave_detail.map(h),certificateHint:o.certificate_hint,isNeedCertificate:o.is_need_certificate}}t.time_offset=void 0;var{data:s}=yield e.leavebalancecalculate(t,a);return s})),T.apply(this,arguments)}function I(e,t,a){return C.apply(this,arguments)}function C(){return C=Object(c.a)((function*(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r){var i,n,o,{data:s}=yield e.calLeaveQuota({leave_id:t.definitionId,start_time:t.startDateTime,end_time:t.endDateTime,origin_instance_id:t.originInstanceId,imitate_user_id:t.imitateUserId,time_offset:null!==(i=t.time_offset)&&void 0!==i?i:u()},a);return{conflictApprovals:s.conflict_approvals.map(b),conflictExist:null!==(n=s.is_conflict)&&void 0!==n&&n,attendanceExist:null!==(o=s.attendance_exist)&&void 0!==o&&o}}t.time_offset=void 0;var{data:c}=yield e.instanceleaveBalanceConflict(t,a);return c})),C.apply(this,arguments)}function x(e,t,a){return S.apply(this,arguments)}function S(){return S=Object(c.a)((function*(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r){var{data:i}=yield e.queryAssociatedOvertimeRule({imitate_user_id:t.imitateUserId},a);return{ruleVersionId:i.rule.rule_version_id,hoursPerDay:8,workUnit:i.rule.overtime_unit,apply_time_limit_conf:[i.rule.apply_time_limit_conf].filter((e=>void 0!==e)).filter((e=>[l.h.BeforeLeaveStart,l.h.AfterLeaveEnd].includes(e.type)))}}var{data:n}=yield e.instancequeryWorkRule(t,a);return Object(s.a)(Object(s.a)({},n),{},{apply_time_limit_conf:[]})})),S.apply(this,arguments)}function w(e){return{approvalRule:e.approval_rule,canWork:e.can_overtime,isConflicted:e.is_conflicted,leaveDefId:e.leave_def_id,leaveRadio:e.leave_radio,longestDuration:e.longest_duration,needApproval:e.need_approval,type:e.settlement_type,category:e.sub_type}}function L(e,t,a){return E.apply(this,arguments)}function E(){return E=Object(c.a)((function*(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r){var{data:i}=yield e.overtimeConflictAndDurationCal({rule_version_id:t.ruleVersionId,end_time:t.endTime,start_time:t.startTime,time_offset:u(),multi_imitate_users:t.multi_imitate_users},a),n={};for(var o of null!==(s=i.detail_list)&&void 0!==s?s:[]){var s;n[o.date]=w(o)}return{totalDuration:i.total_duration,detail:n,apply_time_hit_text:i.over_time_apply_hit_text_list,overtime_unit:i.overtime_unit}}var{data:c}=yield e.instanceworkConflict(t,a);return c})),E.apply(this,arguments)}function k(e,t,a){return z.apply(this,arguments)}function z(){return z=Object(c.a)((function*(e,t,a){var{data:r}=yield e.getOvertimeApprovalInfoByInstanceId(t,a);return r})),z.apply(this,arguments)}function R(e){var{balance:t,end_date_time:a,is_exceed:r,process_type:i,start_date_time:n,time_cycle_type:o,total_duration:s,unit:c,user_name:u}=e,{isSelf:p=!1,isPC:m=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)return"";var h=new Date(n),b={[l.j.Day]:n,[l.j.Week]:Object(d.t)("WorkGroup.FromDateToDate",{from:n,to:a}),[l.j.Month]:Object(d.t)("WorkGroup.MonthFormat").replace("YYYY","".concat(h.getFullYear())).replace("MM","".concat(h.getMonth()+1))}[o],g={[l.f.Day]:Object(d.t)("WorkGroup_Unit_Day"),[l.f.Hour]:Object(d.t)("WorkGroup_Unit_Hour"),[l.f.Minute]:Object(d.t)("WorkGroup_Unit_Minute"),[l.f.Unknown]:""}[c],v={[l.j.Day]:Object(d.t)("WorkGroup.DailyMaxOvertime"),[l.j.Week]:Object(d.t)("WorkGroup.WeeklyMaxOvertime"),[l.j.Month]:Object(d.t)("WorkGroup.MonthlyMaxOvertime")}[o],j={[l.g.ProhibitOvertime]:Object(d.t)(m?"WorkGroup.OvertimeExceedMax.ProhibitOvertimeShort":"WorkGroup.OvertimeExceedMax.ProhibitOvertime",{remaining:"".concat(t),unit:g}),[l.g.IgnoreOvertime]:Object(d.t)("WorkGroup.OvertimeExceedMax.IgnoreOvertime"),[l.g.ReceiveReminder]:Object(d.t)("WorkGroup.OvertimeExceedMax.ReceiveReminder"),[l.g.TransferLeave]:Object(d.t)("WorkGroup.OvertimeExceedMax.TransferLeave")}[i];return Object(d.t)(p?"WorkGroup.OvertimeExceedMax.You":"WorkGroup.OvertimeExceedMax.Other",{name:p?"":u,range:b,total:"".concat(s),unit:g,max:v,action:j})}},function(e,t,a){"use strict";var r,i,n;a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n})),function(e){e.remedyDate="widgetRemedyGroupV2RemedyDate",e.clockTime="widgetRemedyGroupV2ClockTime",e.remedyTime="widgetRemedyGroupV2RemedyTime",e.reason="widgetRemedyGroupV2Reason"}(r||(r={})),function(e){e.remedyDate="widgetRemedyGroupV2BatchRemedyDate",e.clockTime="widgetRemedyGroupV2BatchClockTime",e.remedyTime="widgetRemedyGroupV2BatchRemedyTime"}(i||(i={})),function(e){e.detail="widgetRemedyGroupV2BatchDetail",e.reason="widgetRemedyGroupV2Reason"}(n||(n={}))},,function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var r=a(55),i=a(51),n={theme:r.l.Aweme,themeClass:""},o=function(){var e=i.a.TaskConfig;if(e){var t=e.common_config.theme;this.setData({theme:t});var a="";switch(t){case r.l.People:a="theme-people";break;case r.l.TikTok:a="theme-tiktok"}this.setData({themeClass:a})}}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return v}));var r=a(5),i=a(37),n=a(6),o=a(3),s=a(1),c=a(8),l=a.n(c),d=a(157),u=a(803),p=a(746),m=a(124),h=(a(1175),a(0)),b=["hasError","disabled","focus","isNoBorder","placeholderStyle","className"],g=["type","placeholder","style","disabled","maxLength","hasError","focus","isNoBorder"];class v extends o.Component{constructor(){super(...arguments),Object(n.a)(this,"innerValue",""),Object(n.a)(this,"lastRenderValue",null),Object(n.a)(this,"handleInput",Object(d.a)((e=>{this.innerValue=e.detail.value,this.props.onInput&&this.props.onInput(e)}),this.props.debounceDelay))}shouldComponentUpdate(e){return!Object(u.a)(Object(p.a)(this.props,g),Object(p.a)(e,g))||!(!this.props.isControlled||(e.value||"")===this.innerValue)}render(){var e=this.props,{hasError:t,disabled:a,focus:n=!1,isNoBorder:o=!1,placeholderStyle:c="color: #ccc",className:d}=e,u=Object(i.a)(e,b),{value:p=""}=this.props;return this.lastRenderValue===p&&(p+=" ",setTimeout((()=>this.forceUpdate()),0)),this.innerValue=this.lastRenderValue=p,Object(h.jsx)(s.h,Object(r.a)({focus:n,className:l()("approval-input",{error:t,noborder:o,disabled:a},d),value:p,disabled:a,onInput:this.handleInput,placeholderStyle:c},u))}}Object(n.a)(v,"defaultProps",{maxlength:4096,onInput:m.a,onConfirm:m.a,isControlled:!0,hasError:!1,isNoBorder:!1,onBlur:m.a,debounceDelay:99})},function(e,t,a){"use strict";a.d(t,"d",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return s.a})),a.d(t,"a",(function(){return c.a})),a.d(t,"e",(function(){return l.a}));var r=a(3),i=a(117),n=(e,t)=>{var[,a]=Object(r.useState)(0),n=()=>a(Math.random()),o=Object(r.useRef)(e),s=Object(r.useCallback)((function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=o.current;o.current=Object(i.b)(e)?e(a):e,t&&n()}),[]),c=Object(r.useCallback)((e=>{var t;return Object(i.b)(e)&&null!==(t=e(o.current))&&void 0!==t?t:o.current}),[]);return Object(r.useLayoutEffect)((()=>{void 0!==t&&s(t)}),[t,s]),[c,s,n]},o=e=>{var t=Object(r.useRef)(e);return t.current=e,t},s=a(570),c=a(429),l=a(571)},function(e,t,a){"use strict";a.d(t,"a",(function(){return N}));var r=a(5),i=a(37),n=a(3),o=a.n(n),s=a(1),c=a(8),l=a.n(c),d=a(411),u=a.n(d),p=a(0),m=["className","children"],h=["className","children"],b=["className","children"],g=["className","children"],v=["className","children"],j=["className","children"],O=o.a.memo((e=>{var{className:t,children:a}=e,n=Object(i.a)(e,m);return Object(p.jsx)(s.r,Object(r.a)(Object(r.a)({className:l()(u.a.layout,t)},n),{},{children:a}))})),f=o.a.memo((e=>{var{className:t,children:a}=e,n=Object(i.a)(e,h);return Object(p.jsx)(s.r,Object(r.a)(Object(r.a)({className:l()(u.a.header,t)},n),{},{children:a}))})),M=o.a.memo((e=>{var{className:t,children:a}=e,n=Object(i.a)(e,b);return Object(p.jsx)(s.r,Object(r.a)(Object(r.a)({className:l()(u.a.panel,t)},n),{},{children:a}))})),_=o.a.memo((e=>{var{className:t,children:a}=e,n=Object(i.a)(e,g);return Object(p.jsx)(s.r,Object(r.a)(Object(r.a)({className:l()(u.a.container,t)},n),{},{children:a}))})),y=o.a.memo((e=>{var{className:t,children:a}=e,n=Object(i.a)(e,v);return Object(p.jsx)(s.r,Object(r.a)(Object(r.a)({className:l()(u.a.footer,t)},n),{},{children:a}))})),D=o.a.memo((e=>{var{className:t,children:a}=e,n=Object(i.a)(e,j);return Object(p.jsx)(s.r,Object(r.a)(Object(r.a)({className:l()(u.a.sidebar,t)},n),{},{children:a}))})),N=O;N.Container=_,N.Footer=y,N.Header=f,N.Panel=M,N.Sidebar=D},function(e,t,a){e.exports={"signature-wrapper":"index-module__signature-wrapper___3R-kG",title:"index-module__title___3dGgs",left:"index-module__left___1GX_P",right:"index-module__right___1TIYB",label:"index-module__label___38sB3",isRequire:"index-module__isRequire___1djby","icon-pen":"index-module__icon-pen___1KIZu","re-signature":"index-module__re-signature___srond","not-finished":"index-module__not-finished___3_qyj","content-wrapper":"index-module__content-wrapper___ruhl3","signature-img":"index-module__signature-img___1YnoM",content:"index-module__content___9ebxB","qr-code-wrapper":"index-module__qr-code-wrapper___mQUtj",img:"index-module__img___3IQ0G",mask:"index-module__mask___2-868","mask-inner-wrapper":"index-module__mask-inner-wrapper___35cEO",word:"index-module__word___1ZlWc",tip:"index-module__tip___2mRgO","form-wrapper":"index-module__form-wrapper___veymH","form-item":"index-module__form-item___3O9Z5","check-box":"index-module__check-box___2dg-b"}},function(e,t,a){e.exports={button_gap:"actions-module__button_gap___3wFaL",action:"actions-module__action___3_1xW",edit_btn:"actions-module__edit_btn___2I_rG",icon:"actions-module__icon___3tzci",tooltip:"actions-module__tooltip___1Io4k",label:"actions-module__label___25p_Y",divider:"actions-module__divider___1kb1v",share:"actions-module__share___3OKTh"}},function(e,t,a){"use strict";a.d(t,"b",(function(){return f})),a.d(t,"e",(function(){return _})),a.d(t,"d",(function(){return y})),a.d(t,"g",(function(){return D})),a.d(t,"c",(function(){return N})),a.d(t,"a",(function(){return A})),a.d(t,"f",(function(){return T}));var r=a(29),i=a(489),n=a.n(i),o=a(491),s=a.n(o),c=a(306),l=a.n(c),d=a(635),u=a.n(d),p=a(490),m=a.n(p),h=a(492),b=a.n(h),g=a(272),v=a.n(g),j=a(636),O=a.n(j),f=50<<20,M={doc:n.a,docx:n.a,ppt:m.a,pptx:m.a,xls:s.a,xlsx:s.a,pdf:u.a,mp4:l.a,mov:l.a,rmvb:l.a,avi:l.a,zip:b.a,rar:b.a,jpg:v.a,jpeg:v.a,png:v.a,bmp:v.a};function _(e){var{type:t,url:a,extension:i}=e;return t===r.h.IMG?"".concat(a,"~120x0.image"):M[i]||O.a}function y(e){var{type:t,url:a,extension:i}=e;return t===r.h.IMG?"".concat(a,"~0x0.").concat(i):a}function D(e){var t;return!(e.text&&e.text.replace(/\s/g,"").length||e.files.length||null!==(t=e.reminders)&&void 0!==t&&t.length)}function N(){return{text:"",files:[],reminders:[]}}var A=["app"],T=e=>{var{text:t,reminders:a}=e;return t.length+a.reduce(((e,t)=>t.name.length+1+e),0)}},function(e,t,a){"use strict";a.d(t,"g",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"k",(function(){return n})),a.d(t,"h",(function(){return o})),a.d(t,"f",(function(){return s})),a.d(t,"b",(function(){return c})),a.d(t,"i",(function(){return l})),a.d(t,"a",(function(){return d})),a.d(t,"d",(function(){return u})),a.d(t,"j",(function(){return p})),a.d(t,"e",(function(){return m}));var r="current_page",i="collapse",n="todosort",o="donesort",s="createsort",c="ccsort",l={todo:n,create:s,cc:c,done:o,ceoDone:"ceoDoneSort",ceoTodo:"ceoTodoSort",shared:"sharedsort"},d="cache_instance_id",u="CREATE_LIST_CACHE",p="sort_memory_key",m="CREATE_LIST_CONFIRM_MODAL_ALREADY_SHOW"},,function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(522),i=a(84),n=(e,t)=>{if(t.isRollbackToStart){var{id:a,value:n}=e,o=[a];if(Object(r.a)(n)?Object.values(n).forEach((e=>{Object(i.a)(e)&&e.forEach((e=>o.push(e.id)))})):Object(i.a)(n)&&n.forEach((e=>o.push(e.id))),t.writableWidgetIdSet)for(var s of t.writableWidgetIdSet)s.startsWith(a)&&o.push(s);t.deleteWidgetsToWritableSet(o)}}},function(e,t,a){"use strict";a.d(t,"d",(function(){return i}));var r=a(569);a.d(t,"a",(function(){return r.a})),a.d(t,"b",(function(){return r.b})),a.d(t,"c",(function(){return r.c}));var i={GIT_SHORT:"03ea7a3",GIT_LONG:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",GIT_BRANCH:"release_train_2023-09-21_212295",GIT_MESSAGE:"Merge branch 'update-version/20230926' into 'release_train_2023-09-21_212295'\n\nfeat: [ticket] 托管火车占位 (train id 212295) [skipped]\n\nSee merge request ea/approval!4094",NODE_ENV:"production",BUILD_ENV:"online",BUILD_BASE_COMMIT_HASH:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",BUILD_BRANCH:"release_train_2023-09-21_212295",BUILD_VERSION:"1.0.0.1782"}},function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return c}));var r=a(122),i=a.n(r),n=a(26);function o(e){return Number.isNaN(Number(e))&&""===e?"":new i.a(Number(e)).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")}function s(e){return Number(e.toPrecision(12))}function c(e,t){var a=Object(n.g)(e);if(Number.isNaN(Number(a))&&""===e)return"";var{keepDecimalPlaces:r=2,isThousandSeparator:o=!0}=t,s=a;return s=new i.a(Number(s)).toFixed(r),o&&(s=function(e){if(Number.isNaN(Number(e))&&""===e)return"";var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}(s)),s}},function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));var r,i,n="VerifyExpiration",o="/api/signature/verifyExpiration";(function(e){e[e.NOT_START=0]="NOT_START",e[e.DOING=1]="DOING",e[e.EXPIRED=2]="EXPIRED",e[e.DONE=3]="DONE"})(r||(r={})),function(e){e[e.PC=1]="PC",e[e.MOBILE=2]="MOBILE"}(i||(i={}))},function(e,t,a){e.exports={"iframe-wrapper":"index-module__iframe-wrapper___3QR7y",loading:"index-module__loading___sLVik","iframe-headbar":"index-module__iframe-headbar___M3jHg","iframe-headbar-content":"index-module__iframe-headbar-content___2eZb_","iframe-headbar-title":"index-module__iframe-headbar-title___1M_kx","split-signal":"index-module__split-signal___12jT2","why-received":"index-module__why-received___1omUS","iframe-headbar-btns":"index-module__iframe-headbar-btns___1KsPs",icon:"index-module__icon___e0fGd","icon-image":"index-module__icon-image___xgzEM",split:"index-module__split___9Htjv",iframe:"index-module__iframe____Vjcc","bubble-mask":"index-module__bubble-mask___2T6YZ","comment-bubble":"index-module__comment-bubble___3vROh",text:"index-module__text___34kTB",close:"index-module__close___37NWa","sub-detail-wrapper":"index-module__sub-detail-wrapper___1eJsq"}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var r=a(6),i=a(3),n=a(1),o=a(8),s=a.n(o),c=a(124),l=(a(1215),a(0));class d extends i.PureComponent{constructor(){super(...arguments),Object(r.a)(this,"onClick",(e=>{var{onClick:t,loading:a,disabled:r}=this.props;!t||a||r||t(e)}))}render(){var{type:e,style:t,disabled:a,loading:r}=this.props;return Object(l.jsx)(n.b,{className:s()("approval-button",e),loading:r,style:t,disabled:a,onClick:this.onClick,children:this.props.children})}}Object(r.a)(d,"defaultProps",{loading:!1,type:"default",style:"",disabled:!1,onClick:c.a})},,function(e,t,a){"use strict";var r,i;a.d(t,"e",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"f",(function(){return o})),a.d(t,"h",(function(){return d})),a.d(t,"g",(function(){return u})),a.d(t,"i",(function(){return p})),function(e){e.en="en-US",e.ja="ja-JP",e.zh="zh"}(r||(r={})),function(e){e.zh="zh",e.en="en",e.ja="ja"}(i||(i={}));var n,o,s={zh:"zh-CN",en:"en",ja:"ja-JP"},c={zh:"zh-CN",en:"en-US",ja:"ja-JP"},l={en:r.en,ja:r.ja,zh:r.zh};(function(e){e.zh="zh_CN",e.en="en_US",e.ja="ja_JP"})(n||(n={})),function(e){e.zh="zh_cn",e.en="en_us",e.ja="ja_jp"}(o||(o={}));var d={[r.zh]:n.zh,[r.en]:n.en,[r.ja]:n.ja},u=l.en,p=[i.en,i.zh,i.ja];new Set(Object.values(i))},,function(e,t,a){e.exports={"header-close":"index-module__header-close___2D8m-","header-icon":"index-module__header-icon___11YcN","cloud-doc-modal":"index-module__cloud-doc-modal___VRN1q",content:"index-module__content___CecXz","error-tip":"index-module__error-tip___Ww7pf","search-content":"index-module__search-content___31jOM","list-item":"index-module__list-item___ULWBK",checked:"index-module__checked___16VCZ","navigate-icon":"index-module__navigate-icon___3MKLd",radio:"index-module__radio___PqUGz","doc-icon":"index-module__doc-icon___1fmmG","doc-info":"index-module__doc-info___19iSs","doc-title":"index-module__doc-title___hDZSQ","doc-owner":"index-module__doc-owner___3NG1m",tip:"index-module__tip___1CtRt",ownerName:"index-module__ownerName___2oKYp","footer-wrap":"index-module__footer-wrap___ZYWpt","copy-tip":"index-module__copy-tip___2W5k8"}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return d}));var r=a(2),i=a(785),n=a.n(i),o=a(915),s=a.n(o),c={NO_RESULT:1,ROOT:2,COLLABORATION_TENANT:3,DEPARTMENT:4},l={ROOT:"ROOT",ORGANIZATION_ROOT:"ORGANIZATION_ROOT",COLLABORATION_ROOT:"COLLABORATION_ROOT"},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?[{id:l.ORGANIZATION_ROOT,text:Object(r.t)("Department_Organization","组织架构"),icon:n.a},{id:l.COLLABORATION_ROOT,text:Object(r.t)("CollaborationTenant","关联组织"),icon:s.a}]:[{id:l.ORGANIZATION_ROOT,text:Object(r.t)("Department_Organization","组织架构"),icon:n.a}]};l.ROOT,Object(r.t)("Contact","联系人"),l.ORGANIZATION_ROOT,Object(r.t)("Department_Organization","组织架构"),l.COLLABORATION_ROOT,Object(r.t)("CollaborationTenant","关联组织")},function(e,t,a){e.exports={field:"index-module__field___TXR3q",title:"index-module__title___23Szl",description:"index-module__description___-zJ8k",caption:"index-module__caption___1wnYi",tips:"index-module__tips___7mcRz",value:"index-module__value___1Kjqo",block:"index-module__block___1r32P",group:"index-module__group___2JwW4","widget-background":"index-module__widget-background___1kF53","leave-group-v2-editor":"index-module__leave-group-v2-editor___3UhjU","sub-widget-editor":"index-module__sub-widget-editor___20W13","exclude-work-days":"index-module__exclude-work-days___bWLDf","view-leave-detail-btn":"index-module__view-leave-detail-btn___2BK2W","view-leave-detail-btn-text":"index-module__view-leave-detail-btn-text___xsdqd"}},function(e,t,a){e.exports={wrap:"index-module__wrap___34u7s",relative:"index-module__relative___2NQg3",main_wrap:"index-module__main_wrap___Oi-Rp",clear:"index-module__clear___clKtF",icon:"index-module__icon___1e6Bh",display_text:"index-module__display_text___14wt4",placeholder:"index-module__placeholder___2MGqo",fake_input_wrap:"index-module__fake_input_wrap___3lTHY",fake_input:"index-module__fake_input___3FJqI",search_input:"index-module__search_input___1qXN5",hidden:"index-module__hidden___3jZE_",is_search:"index-module__is_search___3WmAZ",disabled:"index-module__disabled___34ATN",modal_main_wrap:"index-module__modal_main_wrap___zBKA7",scroll_wrap:"index-module__scroll_wrap___1yfa-",empty_wrap:"index-module__empty_wrap___2oawV",default_item_wrap:"index-module__default_item_wrap___1aXkr",inner:"index-module__inner___1uGBy",checked:"index-module__checked___3TLXP",no_more_data:"index-module__no_more_data___3uiIU",highlight_wrap:"index-module__highlight_wrap___PKPpO",highlight_color:"index-module__highlight_color___vNZeX"}},function(e,t,a){e.exports={main_wrap:"index-module__main_wrap___1Dsal",clear:"index-module__clear___bglxr",icon:"index-module__icon___Tquec",display_text:"index-module__display_text___3DZa3",placeholder:"index-module__placeholder___J_acE",fake_input_wrap:"index-module__fake_input_wrap___34JLA",search_input:"index-module__search_input___1FvPA",hidden:"index-module__hidden___2XlgX",is_search:"index-module__is_search___1q-xB",wrap:"index-module__wrap___VIXJK",custom_modal:"index-module__custom_modal___3dMKO",modal_main_wrap:"index-module__modal_main_wrap___15foO",region_wrap:"index-module__region_wrap___2sE-0",item_wrap:"index-module__item_wrap___1cIpa",title:"index-module__title___12cKt",icon_right:"index-module__icon_right___1Tg-Y",active:"index-module__active___1rAEo",search_result_wrap:"index-module__search_result_wrap___3saE7",search_item_wrap:"index-module__search_item_wrap___2VKbK",search_item_inner:"index-module__search_item_inner___35isn",text_wrap:"index-module__text_wrap___1XGdY",highlight:"index-module__highlight___3UZcB",overlay:"index-module__overlay___1COwL"}},function(e,t,a){e.exports={main_wrap:"index-module__main_wrap___IZBig",title_wrap:"index-module__title_wrap___1alz-",title:"index-module__title___1e8qp",close_icon:"index-module__close_icon___3e2XL",content:"index-module__content___aLg2C",radio_wrap:"index-module__radio_wrap___1MRUx",radio:"index-module__radio___1cUrU",row:"index-module__row___1Zhm8",item:"index-module__item___2ya6k",footer_wrap:"index-module__footer_wrap___11-o9",right:"index-module__right___1-Ran",custom_btn:"index-module__custom_btn___3ONS2",bank_item_wrap:"index-module__bank_item_wrap___36lK3",inner:"index-module__inner___-gyAl",image:"index-module__image___3r4kJ",name:"index-module__name___2hns0",highlight_color:"index-module__highlight_color___3DuSa",checked:"index-module__checked___2Icec",test:"index-module__test___1zRyx",custom_bg:"index-module__custom_bg___2oL2Q"}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"e",(function(){return u.b})),a.d(t,"d",(function(){return u.a})),a.d(t,"b",(function(){return p.b})),a.d(t,"c",(function(){return E})),a.d(t,"f",(function(){return F}));var r,i=a(5),n=a(1),o=a(15),s=a(3),c=a(528),l=a(0),d=Object(o.a)((function(){var{style:e,zIndex:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=[...c.a.registry];return a.sort(((e,t)=>e.zIndex-t.zIndex)),Object(l.jsx)(n.r,{style:Object(i.a)({position:"absolute",zIndex:t||1},e),children:a.map((e=>e.view))})})),u=a(260),p=a(350),m=a(9),h=a(74),b=a(90),g=a(16),v=a(2),j=a(378),O=a(36),f=a(1486),M=a(25),_=a(299),y={51:Object(v.t)("Role_Requester"),52:Object(v.t)("Role_Approver"),53:Object(v.t)("Role_CC"),55:Object(v.t)("Role_SubmitterDelgate"),56:Object(v.t)("timeline.node.handler")},D={51:"color: #0c296e;background: #E1EAFF;",52:"color: #0c296e;background: #E1EAFF;",53:"color: #0c296e;background: #E1EAFF;",55:"color: #0c296e;background: #E1EAFF;",56:"color: #0c296e;background: #E1EAFF;"},N=a(783),A=a.n(N),T=a(470);!function(e){e[e.STARTER=0]="STARTER",e[e.TODO=1]="TODO",e[e.DONE=2]="DONE",e[e.PREVIEW_TODO=3]="PREVIEW_TODO"}(r||(r={}));var I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a={noPermission:10004,networkError:-1},r={[a.noPermission]:t,[a.networkError]:Object(v.t)("network_error")};return r[e]||Object(v.t)("api.requestFailed")},C=a(24),x=a(98),S=a(22),w=e=>({type:h.a.PERSON,id:e.id,title:e.name,avatarUrl:e.iconLink,subTitle:e.departmentName,children:null,tagName:y[Number(e.type)],tagStyle:D[Number(e.type)],disabled:e.type===j.b.INVALID_USER||e.id===M.d.currentUser.userId,tenantId:String(e.tenantId||""),tenantName:e.tenantName}),L=e=>{var{instanceId:t,chatName:a,parentShareCode:o,chatFor:c,actAs:d,optionalPeopleList:u}=e,[h,M]=Object(s.useState)([]),[y,D]=Object(s.useState)(""),[N,L,E]=Object(_.a)(!0),{globalStore:k,indexStore:{detailModuleStore:z}}=Object(s.useContext)(C.a),R={cancel:Object(b.a)((()=>{var t;null===(t=e.onCancel)||void 0===t||t.call(e)})),submit:Object(b.a)(Object(m.a)((function*(){if(E.current){L(!1),tt.showLoading({title:Object(v.t)("HostingActions_CreateChat_ConfirmLoadingText")});var t=h.map((e=>e.id));try{var r,i=yield g.c.chatchatEnter({procInstId:e.instanceId,userIds:t,name:a,shareCode:o},{query:d?{act_as:d}:{},disableFeedback:!0});tt.hideLoading(),setTimeout((()=>{L(!0)}),1e3),i?(tt.showToast({title:Object(v.t)("HostingActions_CreateChat_Success"),duration:3e3}),void 0!==i.data.openChatId&&(null===(r=e.onSubmit)||void 0===r||r.call(e,i.data),Object(O.e)(i.data.openChatId))):tt.showToast({title:Object(v.t)("DiscussionGroup.CreateFailed"),duration:3e3})}catch(e){console.error(e),setTimeout((()=>{tt.hideLoading(),tt.showToast({title:I(e.code,e.message),icon:"error",duration:3e3}),L(!0)}),1e3)}}}))),onChange:Object(b.a)((e=>{var{checkedList:t}=e;M(t)})),onSearchChange:Object(b.a)((e=>{D(e)}))},P=Object(s.useMemo)(Object(m.a)((function*(){if(u)return{data:{entityList:u}};var e=yield g.c.instanceuserSearch({instanceId:t,shareCode:o},{query:d?{act_as:d}:{}});return{data:{entityList:e.data.entityList.map((t=>Object(i.a)(Object(i.a)({},t),{},{approverType:e.data.userApproverType[t.id]})))}}})),[t]),{loading:U,value:B,error:F}=Object(f.a)(Object(m.a)((function*(){return P})),[P]);Object(s.useEffect)((()=>{if(B){var e=B.data.entityList.filter((e=>{var{id:t,type:a,approverType:i}=e;return t===k.currentUser.userId||a===j.b.ApprovalStarter||!(a!==j.b.ApprovalApprover||void 0===i||![r.STARTER,r.DONE,r.TODO].includes(i))||a===j.b.Handler&&i===r.DONE||a===j.b.SubmitterDelegate})).map(w);M(e)}}),[B]);var{loading:Y,value:Q,error:G}=Object(f.a)(Object(m.a)((function*(){if(y){var e,a,r=(null===(e=z.active)||void 0===e||null===(a=e.listCard)||void 0===a?void 0:a.System)!==S.e.FeiShu;return g.c.usersearchUsers(Object(i.a)({query:y,offset:0,pageSize:20},Object(x.b)({globalStore:k,instanceId:t,isNotFeiShu:r})),{query:d?{act_as:d}:{}})}return P})),[y,P,k,t]);G&&console.error(G);var W=Object(s.useMemo)((()=>null==Q?void 0:Q.data.entityList.map((e=>(null==B?void 0:B.data.entityList.find((t=>{var{id:a}=t;return e.id===a})))||e)).map(w)),[Q,B]),V=Object(l.jsx)(n.r,{className:A.a.desc,children:"related-person"===c?Object(v.t)("create_group_tips"):Object(v.t)("HostingActions_CreateChat_DescArea")}),H=Object(s.useMemo)((()=>Object(l.jsx)(T.a,{disabled:!N||0===h.length,onClick:R.submit})),[N,h]);return Object(l.jsx)(n.r,{className:A.a.wrap,children:Object(l.jsx)(p.a,{title:Object(v.t)("HostingActions_CreateChat_ModalTitle"),descArea:V,sendBtnArea:H,candidateList:W,candidateListLoading:Y,checkedList:h,onCancel:R.cancel,onChange:R.onChange,onSearchChange:R.onSearchChange,selectorHeight:"370px"})})},E=Object(u.b)((e=>t=>Object(l.jsx)(L,Object(i.a)(Object(i.a)({},t),{},{onSubmit:function(){for(var a,r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];null===(a=t.onSubmit)||void 0===a||a.call(t,...i),e.close()},onCancel:()=>{var a;null===(a=t.onCancel)||void 0===a||a.call(t),e.close()}})))),k={51:Object(v.t)("Role_Requester"),52:Object(v.t)("Role_Approver"),53:Object(v.t)("Role_CC"),55:Object(v.t)("Role_SubmitterDelgate"),56:Object(v.t)("timeline.node.handler")},z={51:"color: #245BDB;background: #E1EAFF;",52:"color: #245BDB;background: #E1EAFF;",53:"color: #245BDB;background: #E1EAFF;",55:"color: #245BDB;background: #E1EAFF;",56:"color: #245BDB;background: #E1EAFF;"},R=a(541),P=a.n(R),U=e=>({type:h.a.PERSON,id:e.id,title:e.name,avatarUrl:e.iconLink,subTitle:e.departmentName,children:null,tagName:k[Number(e.type)],tagStyle:z[Number(e.type)]}),B=e=>{var{instanceId:t,optionalPeopleList:a,parentShareCode:r,actAs:o}=e,[c,d]=Object(s.useState)([]),[u,h]=Object(s.useState)(""),[j,O]=Object(s.useState)(""),[M,y,D]=Object(_.a)(!0),N={cancel:Object(b.a)((()=>{var t;null===(t=e.onCancel)||void 0===t||t.call(e)})),submit:Object(b.a)(Object(m.a)((function*(){if(D.current){var t=c.map((e=>e.id));if(t.length){y(!1),tt.showLoading({title:Object(v.t)("BoltModal_ShareToRelated_SubmitLoadingText")});try{var a,r=yield g.c.instanceshare({userIds:t,instanceId:e.instanceId,chatIds:[],comment:u,shareCode:e.parentShareCode},{query:o?{act_as:o}:{},disableFeedback:!0});null===(a=e.onSubmit)||void 0===a||a.call(e),setTimeout((()=>{y(!0)}),1e3),r?(tt.hideLoading(),tt.showToast({title:Object(v.t)("BoltModal_ShareToRelated_Success"),duration:3e3})):tt.showToast({title:Object(v.t)("api.requestFailed"),duration:3e3})}catch(e){console.error(e),setTimeout((()=>{tt.hideLoading(),tt.showToast({title:I(e.code,e.message),icon:"error",duration:3e3}),y(!0)}),1e3)}}}}))),onChange:Object(b.a)((e=>{var{checkedList:t}=e;d(t)})),onInput:Object(b.a)((e=>{h(e.detail.value)})),onSearchChange:Object(b.a)((e=>{O(e)}))},A=Object(s.useMemo)(Object(m.a)((function*(){if(a)return{data:{entityList:a}};var e=yield g.c.instanceuserSearch({instanceId:t,shareCode:r},{query:o?{act_as:o}:{}});return{data:{entityList:e.data.entityList.map((t=>Object(i.a)(Object(i.a)({},t),{},{approverType:e.data.userApproverType[t.id]})))}}})),[t]),{loading:C,value:x,error:S}=Object(f.a)(Object(m.a)((function*(){return A})),[A]),{loading:w,value:L,error:E}=Object(f.a)(Object(m.a)((function*(){return j?g.c.usersearchUsers({query:j,offset:0,pageSize:20},{query:o?{act_as:o}:{}}):A})),[j,A]);E&&console.error(E);var k=Object(s.useMemo)((()=>null==L?void 0:L.data.entityList.map((e=>(null==x?void 0:x.data.entityList.find((t=>{var{id:a}=t;return e.id===a})))||e)).map(U).filter((e=>null==x?void 0:x.data.entityList.find((t=>{var{id:a}=t;return e.id===a}))))),[L]),z=Object(l.jsx)(n.r,{className:P.a.desc,children:Object(v.t)("BoltModal_ShareToRelated_DescArea")}),R=Object(l.jsx)(n.r,{className:P.a["input-parent"],children:Object(l.jsx)(n.h,{className:P.a.input,value:u,onInput:N.onInput,placeholder:Object(v.t)("BoltModal_ShareToRelated_ExtraArea_InputPlaceholder"),maxlength:4096})}),B=Object(l.jsx)(T.a,{disabled:!M||0===c.length||c.length>10,onClick:N.submit});return Object(l.jsx)(n.r,{className:P.a.wrap,children:Object(l.jsx)(p.a,{title:Object(v.t)("BoltModal_ShareToRelated_Title"),descArea:z,extArea:R,candidateList:k,candidateListLoading:w,checkedList:c,sendBtnArea:B,onCancel:N.cancel,onChange:N.onChange,onSearchChange:N.onSearchChange,selectorHeight:"370px"})})},F=Object(u.b)((e=>t=>Object(l.jsx)(B,Object(i.a)(Object(i.a)({},t),{},{onSubmit:()=>{var a;null===(a=t.onSubmit)||void 0===a||a.call(t),e.close()},onCancel:()=>{var a;null===(a=t.onCancel)||void 0===a||a.call(t),e.close()}}))));a(577)},,function(e,t,a){e.exports={item:"index-module__item___3UAH_",thumb:"index-module__thumb___26EyP",content:"index-module__content___2xDFS",ext:"index-module__ext___3305E",status:"index-module__status___2i8nO","status-bar":"index-module__status-bar___2rjZ8","status-bar-process":"index-module__status-bar-process___3Cohd",methods:"index-module__methods___t3bru",tooltip:"index-module__tooltip___39vk3","tooltip-wrapper":"index-module__tooltip-wrapper___20QBN","tooltip-icon":"index-module__tooltip-icon___31SDk","tooltip-error":"index-module__tooltip-error___34pP-",error:"index-module__error___2xU23"}},function(e,t,a){e.exports={"contact-editor":"index-module__contact-editor___3wufp","contact-editor__children":"index-module__contact-editor__children___3Vwqp","contact-editor-placeholder":"index-module__contact-editor-placeholder___3fWnH","contact-editor-text":"index-module__contact-editor-text___1XW0Z","users-add":"index-module__users-add___1POOt","users-add-error":"index-module__users-add-error___3AJl9","contact-disabled":"index-module__contact-disabled___DoOnZ","users-add-disabled":"index-module__users-add-disabled___2BZ14","users-item-delete":"index-module__users-item-delete___vGiAe","users-item":"index-module__users-item___2dOaQ","users-item-avatar":"index-module__users-item-avatar___2WdNi","users-item-name":"index-module__users-item-name___4_4Bo",selector_mask:"index-module__selector_mask___1anBZ",selector_wrap:"index-module__selector_wrap___bblh7",header:"index-module__header___2jyJ5",title:"index-module__title___2kxDh",close:"index-module__close___36_QL",icon:"index-module__icon___jKhms",content:"index-module__content___2TG3l",footer:"index-module__footer____XYhM",btn:"index-module__btn___1Ywi0",choose_other:"index-module__choose_other___1frTq",empty_result_wrap:"index-module__empty_result_wrap___2MHob",image:"index-module__image___-efKV",text:"index-module__text___2FY0f",title_wrap:"index-module__title_wrap___GQGcz"}},,function(e,t,a){"use strict";a.d(t,"d",(function(){return l})),a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return g})),a.d(t,"c",(function(){return v}));var r=a(5),i=a(18),n=a(76),o=a(280),s=a(113);function c(e,t){var a={};return t.forEach((t=>{void 0!==e[t]&&(a[t]=e[t])})),a}function l(e){var t=g(e);return t.text||t.files.length?JSON.stringify(t):""}function d(e){return e.map((e=>{var{url:t,size:a,name:r,type:i}=e;return{url:t,fileSize:a,title:r,type:i}}))}function u(e){return e.map((e=>{var{url:t,fileSize:a,title:r,type:c}=e,l=Object(n.a)(r);return{url:t,name:r,size:Number(a),type:c,id:Object(o.a)(),status:i.v.UPLOADED,extension:l,thumbUrl:Object(s.e)({type:c,url:t,extension:Object(n.a)(r)}),previewUrl:Object(s.d)({type:c,url:t,extension:l})}}))}function p(e,t){if(!t||0===t.length)return e;var a=[...t],r=e;return e.length?a.reverse().forEach((e=>{r="".concat(r.substring(0,e.offset)," @").concat(e.name," ").concat(r.substring(e.offset))})):r=a.map((e=>" @".concat(e.name," "))).join(""),r}function m(e,t){if(!t||0===t.length)return e;var a=e;return t.sort(((e,t)=>t.offset-e.offset)).forEach((e=>{a="".concat(a.substring(0,e.offset-1)).concat(a.substring(e.offset+e.name.length+1+1))})),a}function h(e){if(!e||0===e.length)return e;var t=0;return e.map((e=>{var a=Object(r.a)(Object(r.a)({},e),{},{offset:e.offset+t+1});return t+=e.name.length+1+2,a}))}function b(e){if(!e||0===e.length)return e;var t=0;return e.sort(((e,t)=>e.offset-t.offset)).map((e=>{var a=Object(r.a)(Object(r.a)({},e),{},{offset:e.offset-t-1});return t+=e.name.length+1+2,a}))}function g(e){var{text:t,files:a,reminders:i=[]}=e,n=c(e,["signatureKey","signatureUrl","isReuseSignature"]);return Object(r.a)({text:p(t,i),atInfoList:h(i),files:d(a)},n)}function v(e){var{text:t="",files:a=[],atInfoList:i=[]}=e,n=c(e,["signatureKey","signatureUrl","isReuseSignature"]);return Object(r.a)({text:m(t,i),reminders:b(i),files:u(a)},n)}},function(e,t,a){"use strict";var r,i,n,o;a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return n})),function(e){e.create="create",e.detail="detail"}(r||(r={})),function(e){e[e.Readable=1]="Readable",e[e.Writeable=2]="Writeable"}(i||(i={})),function(e){e.FEISHU="feishu",e.FEISHU_BOE="feishu_boe"}(n||(n={})),function(e){e[e.DELETED=1002]="DELETED",e[e.TOKEN_ERROR=95006]="TOKEN_ERROR"}(o||(o={}))},function(e,t,a){"use strict";var r,i;(function(e){e.None="",e.Default="default",e.Debug="debug"})(r||(r={})),function(e){e.ERROR="error",e.WARN="warn",e.INFO="info",e.DEBUG="debug"}(i||(i={}));var n={[i.ERROR]:"color: red",[i.WARN]:"color: orange",DEFAULT:""},o=r.Debug,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"info";return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(-1!==[r.Default,r.Debug].indexOf(o)){var s=e;if(e===i.DEBUG){if(o!==r.Debug)return;s=i.INFO}console[s]("%c[".concat(e,"]").concat(t),n[e]||n.DEFAULT,a)}}};t.a={enable:e=>{e=e||""},error:s(i.ERROR),warn:s(i.WARN),info:s(i.INFO),debug:s(i.DEBUG)}},function(e,t,a){"use strict";var r;a.d(t,"a",(function(){return r})),function(e){e.ADDRESS="address",e.ADDRESS_V2="address_v2",e.AMOUNT_INPUT="amount",e.APPROVALER="al",e.ATTACHMENT="attachment",e.ATTACHMENT_V2="attachmentV2",e.CALCULATION_FORMULA="formula",e.CCER="cc",e.CONTACT="contact",e.DATE_INTERVAL="dateInterval",e.DATE_RANGE="dateRange",e.DATE_TIME="date",e.DEPARTMENT="department",e.DESC="text",e.DETAIL="fieldList",e.IMAGE="image",e.LEAVE_GROUP="leaveGroup",e.LEAVE_GROUP_V2="leaveGroupV2",e.MULTI_SELECT="checkbox",e.MULTI_SELECT_V2="checkboxV2",e.NUMBER_INPUT="number",e.CLOUD_DOC="document",e.CLOUD_DOC_BLOCK="documentBlock",e.OUT_GROUP="outGroup",e.RELATIVE_APPROVAL="connect",e.REMEDY_GROUP="remedyGroup",e.REMEDY_GROUP_V2="remedyGroupV2",e.SHIFT_GROUP="shiftGroup",e.SINGLE_INPUT="input",e.SINGLE_SELECT="radio",e.SINGLE_SELECT_V2="radioV2",e.TEXTAREA="textarea",e.TRIP_GROUP="tripGroup",e.WORK_GROUP="workGroup",e.WORK_GROUP_V2="workGroupV2",e.SIGN_GROUP="signGroup",e.JOB_ADJUST_GROUP="apaascorehrJobAdjustGroup",e.ON_BOARDING_GROUP="apaascorehrOnboardingGroup",e.REGULARATE_GROUP="apaascorehrRegularateGroup",e.OFF_BOARDING_GROUP="apaascorehrOffboardingGroup"}(r||(r={}))},function(e,t,a){e.exports={title:"index-module__title___a5kXF","empty-title":"index-module__empty-title___y1xzN","card-body":"index-module__card-body___1hCBS","card-body_on-search":"index-module__card-body_on-search___3pSB8","card-body_left":"index-module__card-body_left___1tXO3","card-body_left-menu":"index-module__card-body_left-menu___2xNHY","card-body_left-empty-box-bottom":"index-module__card-body_left-empty-box-bottom___3AZtk","card-body_right":"index-module__card-body_right___2H6rn","card-body_right-group":"index-module__card-body_right-group___krjWc","showed-all-tip":"index-module__showed-all-tip___2iVTh","empty-block":"index-module__empty-block___19lm-","empty-with-ugc-entry":"index-module__empty-with-ugc-entry___2_0X0","ugc-entry-row":"index-module__ugc-entry-row___3mIqf","ugc-entry":"index-module__ugc-entry___3PfHC"}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return xr})),a.d(t,"b",(function(){return Lr})),a.d(t,"c",(function(){return Er}));var r={};a.r(r),a.d(r,"cloudDocConfig",(function(){return j})),a.d(r,"cloudDocBlockConfig",(function(){return O})),a.d(r,"singleInputConfig",(function(){return _})),a.d(r,"departmentConfig",(function(){return S})),a.d(r,"amountInputConfig",(function(){return Q})),a.d(r,"calculationFormulaConfig",(function(){return G.a})),a.d(r,"numberInputConfig",(function(){return V})),a.d(r,"textareaConfig",(function(){return H})),a.d(r,"approvalerConfig",(function(){return Z})),a.d(r,"ccerConfig",(function(){return q})),a.d(r,"contactConfig",(function(){return K.c})),a.d(r,"detailConfig",(function(){return J.c})),a.d(r,"imageConfig",(function(){return X.a})),a.d(r,"attachmentConfig",(function(){return re})),a.d(r,"attachmentV2Config",(function(){return oe})),a.d(r,"dateTimeConfig",(function(){return me})),a.d(r,"dateIntervalConfig",(function(){return ge})),a.d(r,"singleSelectConfig",(function(){return ve})),a.d(r,"singleSelectV2Config",(function(){return fe})),a.d(r,"multiSelectConfig",(function(){return Me})),a.d(r,"multiSelectV2Config",(function(){return ye})),a.d(r,"addressConfig",(function(){return De.b})),a.d(r,"leaveGroupConfig",(function(){return Ce})),a.d(r,"leaveGroupV2Config",(function(){return je.d})),a.d(r,"relativeApprovalConfig",(function(){return xe.c})),a.d(r,"workGroupV2Config",(function(){return at})),a.d(r,"workGroupConfig",(function(){return it})),a.d(r,"tripGroupConfig",(function(){return nt.b})),a.d(r,"shiftGroupConfig",(function(){return ct})),a.d(r,"descConfig",(function(){return lt})),a.d(r,"dateRangeConfig",(function(){return dt})),a.d(r,"remedyGroupConfig",(function(){return ut})),a.d(r,"remedyGroupV2Config",(function(){return pt.b})),a.d(r,"outGroupConfig",(function(){return yt})),a.d(r,"JobAdjustGroupConfig",(function(){return Ct})),a.d(r,"OnBoardingGroupConfig",(function(){return wt})),a.d(r,"RegularateGroupConfig",(function(){return zt})),a.d(r,"OffBoardingGroupConfig",(function(){return Bt})),a.d(r,"signGroupConfig",(function(){return Zt})),a.d(r,"receivingAccountConfig",(function(){return Xt})),a.d(r,"telephoneConfig",(function(){return aa})),a.d(r,"insteadSubmitConfig",(function(){return ra})),a.d(r,"serialNumberConfig",(function(){return ia}));var i=a(9),n=a(11),o=a(5),s=a(6),c=a(7),l=(a(56),a(4)),d=a(804),u=a(124),p=a(314),m=a(854),h=a(16),b=a(13),g=a(2),v=a(139),j={type:b.c.CLOUD_DOC,inputFormat(e,t){var a,r,i,n,o,s="pc/pages/create-form/index"===(null===(a=getCurrentPages)||void 0===a||null===(r=a())||void 0===r||null===(i=r[(null===(n=getCurrentPages)||void 0===n||null===(o=n())||void 0===o?void 0:o.length)-1])||void 0===i?void 0:i.__route__),{id:c,type:l,name:d,required:u}=e;return{id:c,type:l,data:{name:d||"",visible:s||t.isRollbackToStart,readable:t.isWidgetReadable(c),writable:t.isWidgetWritable(c),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,enableDefaultValue:!1,widgetDefaultValue:"",option:e.value,required:Boolean(u),title:"",token:"",type:"",url:"",emptyTitle:"",deleted:!1,from:v.a.create,isRollbackToStart:t.isRollbackToStart,validationWarning:null,historyType:b.a.NONE}}},outputFormat(e){var{id:t,type:a,data:r}=e,{token:i,title:n,option:o,deleted:s,type:c}=r;return e.data.required||n&&!s?{id:t,type:a,option:o,value:{title:s?"":n,token:s?"":i,type:c},displayCondStatus:e.data.visible}:null},restoreFormat:Object(l.f)(function(){var e=Object(i.a)((function*(e,t,a){var r,i,n,o,s,{edited:c,printable:d,value:u}=t,{title:p,token:m,type:b,emptyTitle:g,url:j}=u,{resubmitInstanceId:O,isInRelativeApproval:f}=a,M="pc/pages/create-form/index"===(null===(r=getCurrentPages)||void 0===r||null===(i=r())||void 0===i||null===(n=i[(null===(o=getCurrentPages)||void 0===o||null===(s=o())||void 0===s?void 0:s.length)-1])||void 0===n?void 0:n.__route__),_=!1;if(O&&M&&!f){var y,D,N=yield h.c.getDocument({DocsToken:m,DocsType:b});_=null==N||null===(y=N.data)||void 0===y||null===(D=y.Entity)||void 0===D?void 0:D.IsOwner}return Object(l.s)((()=>{e.data.hasHistory=c,e.data.printable=Boolean(d),e.data.title=p,e.data.emptyTitle=g,e.data.url=j,e.data.token=m,e.data.type=b,e.data.deleted=!1,e.data.from=v.a.detail,O&&!f&&(_||(e.data.title="",e.data.token=""),e.data.from=v.a.create),m&&(e.data.visible=!0)})),e}));return function(t,a,r){return e.apply(this,arguments)}}()),restoreWithDraftFormat:Object(l.f)(((e,t)=>(console.log("[cloud-doc] restoreWithDraftFormat",Object(o.a)({},e.data),Object(o.a)({},t.data)),e.data.title=t.data.title,e.data.token=t.data.token,e.data.type=t.data.type,e.data.emptyTitle=t.data.emptyTitle,e.data.deleted=!1,e.data.from=v.a.create,e))),printFormat(e){var{name:t,title:a}=e.data;return{label:t,value:a}},validate:Object(l.f)(((e,t,a)=>{var{title:r,token:i,deleted:n,required:o}=e.data;if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var s="";return n?s=Object(g.t)("widgets.cloudDoc.edit.deleted","文档被删除,请重新添加"):o&&!i&&(s=Object(g.t)("widgets.cloudDoc.edit.should_choose_docs","请先添加云文档")),!o||(a||(e.data.validationError=s),Boolean(r&&i)&&!n)})),writableValidate(e){var{title:t,type:a,token:r}=e.data;return Boolean(t&&r&&a)}},O={type:b.c.CLOUD_DOC_BLOCK,inputFormat(e,t){var{id:a,type:r,name:i,required:n}=e;return{id:a,type:r,data:{name:i||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,option:e.value,required:Boolean(n),title:"",token:"",isRollbackToStart:t.isRollbackToStart,from:v.a.detail,validationWarning:null,historyType:b.a.NONE}}},outputFormat(e){var{id:t,type:a,data:r}=e,{token:i,title:n,option:o,type:s,url:c,block:l}=r;return e.data.required?{id:t,type:a,option:o,value:{block:l,title:n,token:i,url:c,type:s},displayCondStatus:e.data.visible}:null},restoreFormat:Object(l.f)(((e,t,a)=>{var{edited:r,printable:i,value:n}=t,{token:o,type:s,block:c,url:l,title:d}=n;return e.data.hasHistory=r,e.data.printable=Boolean(i),e.data.title=d,e.data.token=o,e.data.type=s,e.data.block=c,e.data.url=l,e})),restoreWithDraftFormat:Object(l.f)(((e,t)=>e)),printFormat(e){var{name:t,title:a}=e.data;return{label:t,value:a}},validate:Object(l.f)(((e,t)=>(e.data.validationError=null,e.data.visible&&e.data.writable,!0)))},f=a(38),M=a(26),_={type:b.c.SINGLE_INPUT,inputFormat(e,t){var{id:a}=e,r=t.isWidgetWritable(a),i="";return e.enableDefaultValue&&r&&!t.isRollbackToStart&&(i=e.widgetDefaultValue),{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:r,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,enableDefaultValue:e.enableDefaultValue,widgetDefaultValue:e.widgetDefaultValue,required:Boolean(e.required),placeholder:e.placeholder||"",value:i}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value||null,displayCondStatus:e.data.visible},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value||"",e))),restoreWithCopyFormat:Object(l.f)(((e,t)=>(e.data.readable&&e.data.writable&&(e.data.value=t.data.value||""),e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=t.data.value||"",e))),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0})),reset(e){e.data.value=""},restoreDefaultData(e){var{data:t}=e;t.writable&&!t.value&&t.enableDefaultValue&&t.widgetDefaultValue&&(e.data.value=t.widgetDefaultValue)}},y=a(29),D=a(25),N=a(14),A=a(199),T=a(325),I=a(98);function C(e){try{return JSON.parse(e.widgetDefaultValue).map((e=>({name:e.name,id:e.id,path:e.path,tenant_id:e.tenant_id,tenant_name:e.tenant_name})))}catch(e){return[]}}function x(e,t){try{var a=JSON.parse(e.widgetDefaultValue);for(var r of a)if(r.id===t)return[{name:r.name,id:r.id,path:r.path,tenant_id:r.tenant_id,tenant_name:r.tenant_name}]}catch(e){}return[]}var S={type:b.c.DEPARTMENT,inputFormat(e,t){var{id:a}=e,r=[],i=t.isWidgetWritable(a);if(e.enableDefaultValue&&i&&!t.isRollbackToStart)if(e.defaultValueType===y.g.CURRENT_VALUE){var n=t.userDepartmentManager.userDepartmentList.length>1;if("pc/pages/create-form/index"===D.d.pagePath){var o=t.userDepartmentManager.widgetDepartmentId;o?r=x(e,o):n||(r=C(e))}else{var s=t.applyDepartment;e.widgetDefaultValue&&s&&(r=[{name:s.text,id:s.value,path:s.path,tenant_id:s.tenant_id,tenant_name:s.tenant_name}])}}else r=C(e);return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:i,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,enableDefaultValue:e.enableDefaultValue,widgetDefaultValue:e.widgetDefaultValue,defaultValueType:e.defaultValueType,isMuti:e.option&&e.option.multi||!1,displayPath:e.option&&e.option.displayPath||!1,required:Boolean(e.required),placeholder:e.placeholder||"",value:r,disabled:Boolean(e.option&&e.option.disabled)}}},outputFormat(e){if(!e.data.required&&Object(f.c)(e.data.value))return null;var t=e.data.value.map((e=>({id:"".concat(e.id),text:e.name,path:e.path||[],tenant_id:e.tenant_id,tenant_name:e.tenant_name})));return{id:"".concat(Object(M.q)(e.id)),type:e.type,value:t,displayCondStatus:e.data.visible}},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value?t.value.map((e=>({id:"".concat(e.id),name:e.text,path:e.path||[],tenant_id:e.tenant_id,tenant_name:e.tenant_name}))):[],e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var a;return e.data.value=(null===(a=t.data.value)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,path:e.path||[],tenant_id:e.tenant_id,tenant_name:e.tenant_name}))))||[],e})),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0})),printFormat(e){var{name:t,value:a,displayPath:r}=e.data,i=a.map((e=>{var{path:t,name:a}=e,i=r?"".concat((t||[]).join("/")):a,n=Object(I.c)(e,D.d);return n&&i?"".concat(n,"/").concat(i):i})).join("; ");return{label:t,value:i}},onSomeWidgetChange(e,t,a){if(e.data.visible&&e.data.writable&&t===A.a&&e.id!==t){var r=a.getWidget(t),i=null==r?void 0:r.data.value;if(e.data.enableDefaultValue&&e.data.defaultValueType===y.g.CURRENT_VALUE&&i&&Object(T.d)(e)){var n=x(e.data,i.value);if(e.data.value=n,a.handleWidgetChange(e.id),!e.data.innerCtxId)return;var{departmentSelectStore:o,departmentObserver:s}=Object(N.d)(e.data.innerCtxId);s.departmentValueChanged||o.setSelectedValueData(n)}}},reset(e){e.data.value=[]},restoreDefaultData(e,t,a){var{data:r}=e;if(r.writable&&r.enableDefaultValue&&0===r.value.length)if(r.defaultValueType===y.g.CURRENT_VALUE){var i=a.userDepartmentManager.userDepartmentList.length>1;if("pc/pages/create-form/index"===D.d.pagePath){var n=a.userDepartmentManager.widgetDepartmentId;n?e.data.value=x(t,n):i||(e.data.value=C(e.data))}else{var o=a.applyDepartment;r.widgetDefaultValue&&o&&(console.log("==restoreDefaultData===021"),e.data.value=[{name:o.text,id:o.value,path:o.path,tenant_id:o.tenant_id,tenant_name:o.tenant_name}])}}else e.data.value=C(t)},onSubmitterChange(e,t,a){var{data:{defaultValueType:r,enableDefaultValue:i}}=t;e&&i&&r===y.g.CURRENT_VALUE?(a.resetWidgetData(t.id),h.c.useruserDepartmentInfo({imitateUserId:e}).then((e=>{t.data.widgetDefaultValue=JSON.stringify(e.data.departmentList.map((e=>({id:e.departmentId,name:e.name,tenant_id:e.tenantId,tenant_name:e.tenantName})))),a.restoreWidgetWithDefaultData(t.id),a.handleWidgetChange(t.id)}))):e&&!i&&(a.resetWidgetData(t.id),a.handleWidgetChange(t.id))}},w=a(161),L=a(122),E=a.n(L),k={less:"SMB.Form.Scope.AllInput.Less",more:"SMB.Form.Scope.AllInput.More",between:"SMB.Form.Scope.Value.Input.Between"};function z(e,t){return Object(g.t)(k[e],{maxValue:null===t.maxValue?null:t.maxValue.toString(),minValue:null===t.minValue?null:t.minValue.toString()})}function R(e,t,a,r){if(e){var i=new E.a(e),n={maxValue:t,minValue:a};if(t&&a){if(1===i.comparedTo(t)||-1===i.comparedTo(a))return r.validationError=z("between",n),!1}else if(t){if(1===i.comparedTo(t))return r.validationError=z("more",n),!1}else if(a&&-1===i.comparedTo(a))return r.validationError=z("less",n),!1}return!0}var P=a(93),U=a(118),B=a(10),F=a(180),Y="pc: src/components/configurable-form/components/widgets/number-input/index.ts",Q={type:b.c.AMOUNT_INPUT,inputFormat(e,t){var a,{id:r}=e,{isCapital:i=!1,isThousandSeparator:n=!0,keepDecimalPlaces:o=2,maxValue:s="",minValue:c="",currencyRange:l}=e.option||{},d={id:r,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(r),writable:t.isWidgetWritable(r),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",value:"",unit:e.value,isCapital:i,isThousandSeparator:n,keepDecimalPlaces:o,maxValue:s?new E.a(s):null,minValue:c?new E.a(c):null,currencyRange:l?l.filter((e=>""!==e)):e.value?[e.value]:[]}};return l?(d.data.currencyRange=l.filter((e=>""!==e)),d.data.unit||(d.data.unit=(null===(a=d.data.currencyRange)||void 0===a?void 0:a[0])||e.value)):d.data.currencyRange=e.value?[e.value]:[],d},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value?{value:Object(M.m)(e.data.value,"".concat(Y," outputFormat")),currency:e.data.unit}:null,displayCondStatus:e.data.visible},printFormat(e){var{name:t,value:a,unit:r,isCapital:i,isThousandSeparator:n,keepDecimalPlaces:o}=e.data,s=Object(U.a)(a,{isThousandSeparator:n,keepDecimalPlaces:o}),c=F.a.getCurrencyUnit(r.toUpperCase()),l=Object(P.c)()&&i?Object(M.l)(a,o):"";return{label:t,value:"".concat(s).concat(c&&" ".concat(c)).concat(l&&" ".concat(l))}},restoreFormat:Object(l.f)(((e,t)=>{var a;return e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.value=Object(M.m)(t.value.value,"".concat(Y," restoreFormat")),e.data.printable=t.printable,e.data.unit=null===(a=t.value)||void 0===a?void 0:a.text,e})),restoreWithCopyFormat:Object(l.f)(((e,t)=>(e.data.readable&&e.data.writable&&(e.data.value=Object(M.m)(t.data.value||"","".concat(Y," restoreWithCopyFormat")),e.data.unit=t.data.unit),e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=Object(M.m)(t.data.value||"","".concat(Y," restoreWithDraftFormat")),e.data.unit=t.data.unit,e))),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(Number.isNaN(Number(e.data.value)))return e.data.validationError=Object(g.t)("approvalForm.fillNumber"),!1;var{value:r,keepDecimalPlaces:i,maxValue:n,minValue:o}=e.data,s=Object(M.f)(r,i);if(e.data.validationError=s,s)return!1;if(!R(r,n,o,e.data))return!1;if(e.data.required){var c=Object(f.c)(e.data.value);return a||(e.data.validationError=c),!c}return!0})),checkConditionCompare:(e,t)=>Object(w.d)(e.data.value,t)},G=a(514),W="pc: src/components/configurable-form/components/widgets/number-input/index.ts",V={type:b.c.NUMBER_INPUT,inputFormat(e,t){var{id:a}=e,r=e.value||{};return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,disabled:!1,required:Boolean(e.required),placeholder:e.placeholder||"",maxValue:r.maxValue?new E.a(r.maxValue):null,minValue:r.minValue?new E.a(r.minValue):null,value:""}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value?Object(M.m)(e.data.value,"".concat(W," outputFormat")):null,displayCondStatus:e.data.visible},printFormat(e){var{name:t,value:a}=e.data,{label:r,unit:i}=Object(M.n)(t);return{label:r,value:"".concat(a," ").concat(i)}},restoreFormat:Object(l.f)(((e,t)=>(e.data.value=Object(M.m)(t.value,"".concat(W," restoreFormat")),e.data.hasHistory=t.edited,e.data.printable=t.printable,e))),restoreWithCopyFormat:Object(l.f)(((e,t)=>(e.data.readable&&e.data.writable&&(e.data.value=Object(M.m)(t.data.value,"".concat(W," restoreWithCopyFormat"))),e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=Object(M.m)(t.data.value,"".concat(W," restoreWithDraftFormat")),e))),validate:Object(l.f)(((e,t,a)=>{var{value:r,maxValue:i,minValue:n}=e.data;if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(Number.isNaN(Number(e.data.value)))return e.data.validationError=Object(g.t)("approvalForm.fillNumber"),!1;if(!R(r,i,n,e.data))return!1;if(e.data.required){var o=Object(f.c)(e.data.value);return a||(e.data.validationError=o),!o}return!0})),checkConditionCompare:(e,t)=>Object(w.d)(e.data.value,t)},H={type:b.c.TEXTAREA,inputFormat(e,t){var{id:a}=e,r=t.isWidgetWritable(a),{value:i}=e;return!i&&e.enableDefaultValue&&r&&!t.isRollbackToStart&&(i=e.widgetDefaultValue),{id:a,type:e.type,data:{name:e.name||"",visible:!1!==e.visible,readable:t.isWidgetReadable(a),writable:r,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,enableDefaultValue:e.enableDefaultValue,widgetDefaultValue:e.widgetDefaultValue,required:Boolean(e.required),value:i,placeholder:e.placeholder||""}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value||null,displayCondStatus:e.data.visible},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value||"",e))),restoreWithCopyFormat:Object(l.f)(((e,t)=>(e.data.readable&&e.data.writable&&(e.data.value=t.data.value||""),e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=t.data.value||"",e))),printFormat(e){var{name:t,value:a}=e.data;return{label:t,value:a}},validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0})),reset(e){e.data.value=""},restoreDefaultData(e){var{data:t}=e;t.writable&&!t.value&&t.enableDefaultValue&&t.widgetDefaultValue&&(e.data.value=t.widgetDefaultValue)}},Z={type:b.c.APPROVALER,inputFormat(e){var{id:t}=e;return{id:t,type:e.type,data:{name:e.name||"",visible:!0,readable:!0,writable:!0,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),users:[]}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.users)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.users.map((e=>e.id)),displayCondStatus:e.data.visible},restoreFormat:Object(l.f)(((e,t)=>(""!==t.name&&(e.data.name=t.name||""),e.data.hasHistory=t.edited,e.data.users=t.value.userList||[],e.data.printable=t.printable,e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var a;return e.data.users=(null===(a=t.data.users)||void 0===a?void 0:a.map((e=>Object(o.a)({},e))))||[],e})),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.users);return a||(e.data.validationError=r),!r}return!0}))},q={type:b.c.CCER,inputFormat(e){var{id:t}=e;return{id:t,type:e.type,data:{name:e.name||"",visible:!0,readable:!0,writable:!0,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),users:[]}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.users)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.users.map((e=>e.id)),displayCondStatus:e.data.visible},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.users=t.value.userList||[],e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var a;return e.data.users=(null===(a=t.data.users)||void 0===a?void 0:a.map((e=>Object(o.a)({},e))))||[],e})),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0}))},K=a(239),J=a(454),X=a(574),$=a(280),ee=a(18),te=a(76),ae=a(78),re={type:b.c.ATTACHMENT,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),uploadAttachmentList:[]}}},outputFormat(e){var{id:t,type:a,data:{required:r,uploadAttachmentList:i}}=e;return!r&&Object(f.c)(i)?null:{id:Object(M.q)(t),type:a,value:i.length?{key:i.map((e=>e.key)).join(","),fileName:Object(M.i)(i.map((e=>e.name))),fileSize:i.map((e=>e.size)).join(","),url:"",text:"".concat(i.length,"个图片")}:null,displayCondStatus:e.data.visible}},restoreFormat:Object(l.f)(((e,t)=>{if(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,!t.value)return e;var a=t.value.fileName.split(","),r=t.value.fileSize.split(","),i=t.value.key.split(","),n=t.value.url.split(",");e.data.uploadAttachmentList=[];for(var o=0;o<i.length;o++){var s=a[o],c=Object(te.a)(s),l=ee.k[c.toUpperCase()];e.data.uploadAttachmentList.push({id:Object($.a)(),status:ee.v.UPLOADED,key:i[o],url:n[o],thumbUrl:Object(ae.d)(l),name:s,extension:c,size:r[o],waitUploadPromise:Promise.resolve()})}return e})),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var a;return e.data.uploadAttachmentList=(null===(a=t.data.uploadAttachmentList)||void 0===a?void 0:a.filter((e=>e.url)).map((e=>Object(o.a)(Object(o.a)({},e),{},{id:Object($.a)(),waitUploadPromise:Promise.resolve()}))))||[],e})),printFormat(e){var{name:t,uploadAttachmentList:a}=e.data;return{label:t,value:Object(g.t)("Print.AttachmentCount",{count:a.length})}},writableValidate:e=>!Object(f.c)(e.data.uploadAttachmentV2List),validate:Object(l.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(yield Promise.all(e.data.uploadAttachmentList.map((e=>e.waitUploadPromise))),e.data.required){var r=Object(f.c)(e.data.uploadAttachmentList);return a||(e.data.validationError=r),!r}return!0}))},ie=a(75),ne=["png","pic","gif","jpg","jpeg","bmp"],oe={type:b.c.ATTACHMENT_V2,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),uploadAttachmentV2List:[]}}},outputFormat(e){var{id:t,type:a,data:{required:r,uploadAttachmentV2List:i}}=e;if(!r&&Object(f.c)(i))return null;var n=i.filter((e=>e.status===ee.v.UPLOADED));return{id:Object(M.q)(t),type:a,value:n.length?{text:"".concat(n.length,"个附件"),value:n.map((e=>{var t=e.name.split("."),a=t[t.length-1].toLowerCase(),r=ne.includes(a)?"image":"attachment";return e.mountServer===ie.a.Drive&&(r="drive_".concat(r)),{type:r,fileName:e.name,fileSize:e.size,key:e.key,url:""}}))}:null,displayCondStatus:e.data.visible}},restoreFormat:Object(l.f)(((e,t)=>{if(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.uploadAttachmentV2List=[],!t.value)return e;for(var a=0;a<(null===(r=t.value)||void 0===r?void 0:r.value.length);a++){var r,i,n=t.value.value[a],o=t.value.value[a].fileName,s=Object(te.a)(o),c=ae.a[s];c||(c="notype"),e.data.uploadAttachmentV2List.push({id:Object($.a)(),status:ee.v.UPLOADED,key:n.key,url:n.url,type:n.type,thumbUrl:ae.b[c],name:o,extension:s,percent:100,size:n.fileSize,waitUploadPromise:Promise.resolve(),mountServer:null!==(i=n.type)&&void 0!==i&&i.includes("drive")?ie.a.Drive:ie.a.Approval})}return e})),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var a;return e.data.uploadAttachmentV2List=(null===(a=t.data.uploadAttachmentV2List)||void 0===a?void 0:a.filter((e=>(e.url||e.mountServer===ie.a.Drive)&&e.status===ee.v.UPLOADED)).map((e=>Object(o.a)(Object(o.a)({},e),{},{id:Object($.a)(),waitUploadPromise:Promise.resolve()}))))||[],e})),printFormat(e){var{name:t,uploadAttachmentV2List:a}=e.data;return{label:t,value:Object(g.t)("Print.AttachmentCount",{count:a.length})}},writableValidate:e=>!Object(f.c)(e.data.uploadAttachmentV2List),validate:Object(l.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.uploadAttachmentV2List.some((e=>e.status===ee.v.UPLOADING)))return a||(e.data.validationError=Object(g.t)("approvalForm.WaitForUploading")),!1;if(e.data.uploadAttachmentV2List.some((e=>e.status===ee.v.FAILED))?t.updateValidationPrompts(Lr.uploadFileFailed,{content:Object(g.t)("approval-mp_FailedProceed_Desc"),cancelText:Object(g.t)("LeaveGroup.BackToModify","返回修改"),confirmText:Object(g.t)("LeaveGroup.ConfirmSubmit","确认提交")}):t.updateValidationPrompts(Lr.uploadFileFailed,null),e.data.required){var r=Object(f.c)(e.data.uploadAttachmentV2List.filter((e=>e.status===ee.v.UPLOADED)));return a||(e.data.validationError=r),!r}return!0}))},se=a(31),ce=a.n(se),le=a(926),de=a.n(le),ue=a(254),pe={"YYYY-MM-DD":"YYYY-MM-DD","YYYY-MM-DD hh:mm":"YYYY-MM-DD HH:mm","YYYY-MM-DD hh":"YYYY-MM-DD HH","YYYY-MM-DD hh:h/2":"YYYY-MM-DD HH:H/2","YYYY-MM-DD a":"YYYY-MM-DD A"};ce.a.extend(de.a);var me={type:b.c.DATE_TIME,inputFormat(e,t){var{id:a}=e,r=e.value;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,subtype:r,isHalfHour:!1,required:Boolean(e.required),placeholder:e.placeholder||"",value:null,text:Object(M.d)(null,r),timezoneOffset:(new Date).getTimezoneOffset(),showText:"",disabled:Boolean(e.option&&e.option.disabled)}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:Object(M.o)(e.data.value,e.data.text,e.data.timezoneOffset),displayCondStatus:e.data.visible},printFormat(e){var{name:t,text:a,showText:r}=e.data;return{label:t,value:r||a}},restoreFormat:Object(l.f)(((e,t)=>{if(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=null,e.data.text="",t.value.value){e.data.timezoneOffset=t.value.timezoneOffset;var a=-t.value.timezoneOffset||0,r=ce()(t.value.value).utcOffset(a);e.data.value=ce()(t.value.value),e.data.text=t.value.text,e.data.showText=t.option&&t.option.dateFormat?Object(ue.c)(r,g.curStarlingLang,pe[t.option.dateFormat]||"YYYY-MM-DD",!1):t.value.text}return e})),restoreWithDraftFormat:Object(l.f)(((e,t)=>(t.data.value&&(e.data.value=ce()(t.data.value),e.data.text=t.data.text,e.data.showText=t.data.showText,e.data.timezoneOffset=t.data.timezoneOffset,e.data.isHalfHour=t.data.isHalfHour,e.data.subtype=t.data.subtype),e))),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0}))},he=a(57),be={[he.a.DATE]:"DateIntervalUnit_Day",[he.a.DATE_AND_TIME]:"DateIntervalUnit_Hour",[he.a.DATE_HALF]:"DateIntervalUnit_Day"};var ge={type:b.c.DATE_INTERVAL,inputFormat(e,t){var{id:a}=e,r=t.isWidgetReadable(a),i=t.isWidgetWritable(a),n=t.widgetsInputFormat([e.value.start,e.value.end,e.value.interval]);for(var o of n)o.data.readable=r,o.data.writable=i;var s=Object.values(e.value).map((e=>e.id));r&&t.addWidgetsToReadableSet(s),i&&t.addWidgetsToWritableSet(s),function(e){if(e[0].data.subtype){var t="".concat(Object(g.t)("Brackets",{innerText:Object(g.t)(be[e[0].data.subtype])}));e[2].data.name&&!e[2].data.name.includes(t)&&(e[2].data.name+=t)}e[2].data.placeholder=Object(g.t)("Common_AutoCalculate")}(n);var c={id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:r,writable:i,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),children:n,option:e.option}};return c.data.children[2].data.disabled=Boolean(c.data.option&&!c.data.option.intervalAllowModify),c},outputFormat(e,t){if(!e.data.visible&&!e.data.required)return null;var a=null,r=t.widgetsOutputFormat(e.data.children);if(r.length>1)a={start:r[0],end:r[1],interval:r[2]||{value:0}};else if(!e.data.required)return null;return{id:Object(M.q)(e.id),type:e.type,value:a,displayCondStatus:e.data.visible}},printFormat(e){var t,a,{children:[r,i,n]}=e.data;if(!(r.data.value&&i.data.value&&n.data.value))return{label:"",value:""};var o="";if(Boolean(null===(t=n.data)||void 0===t?void 0:t.value)&&Boolean(null===(a=n.data)||void 0===a?void 0:a.name)){var s=new RegExp("(.*)[\\(\\](.*)[\\)\\]");o=n.data.name.replace(s,((e,t,a)=>"".concat(t," ").concat(n.data.value," ").concat(a)))}return[{label:"".concat(r.data.name,"-").concat(i.data.name),value:"".concat(r.data.showText||r.data.text," ").concat(Object(g.t)("PC.DateTo")," ").concat(i.data.showText||i.data.text,"&nbsp&nbsp&nbsp&nbsp").concat(o),isDefaultFullLine:!0}]},restoreFormat:Object(l.f)(((e,t,a)=>{var r,i=Object(M.p)(e.id);return i&&(t.value.start.id=Object(M.k)([Object(M.q)(t.value.start.id),i]),t.value.end.id=Object(M.k)([Object(M.q)(t.value.end.id),i]),t.value.interval.id=Object(M.k)([Object(M.q)(t.value.interval.id),i])),e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,a.widgetsRestoreFormat([t.value.start,t.value.end,t.value.interval]),!a.resubmitInstanceId||null!==(r=e.data.option)&&void 0!==r&&r.intervalAllowModify||a.handleWidgetChange(t.value.start.id),e})),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>{var[r,i,n]=t.data.children,o=Object(M.p)(e.id);return o&&(r.id=Object(M.k)([Object(M.q)(r.id),o]),i.id=Object(M.k)([Object(M.q)(i.id),o]),n.id=Object(M.k)([Object(M.q)(n.id),o])),a.widgetsRestoreWithDraftFormat([r,i,n]),e})),restoreWithCopyFormat:Object(l.f)(((e,t,a)=>(e.data.readable&&e.data.writable&&a.widgetsRestoreWithCopyFormat(e.data.children,t.data.children),e))),writableValidate(e){var[t,a,r]=e.data.children;return Boolean(t.data.value&&a.data.value&&r.data.value)},validate:Object(l.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;var[r,i,n]=e.data.children;if(!(yield t.validateWidgets([r.id,i.id,n.id],{silent:a})))return!1;var o=Object(f.b)(r.data.value,i.data.value,n.data.value,"dateInterval",r.data.name,i.data.name);return a||(i.data.validationError=o),!o})),*genChildren(e){yield*e.data.children},onSomeWidgetChange(e,t,a){var[r,i,n]=e.data.children;if(r&&r.data&&i&&i.data&&n&&n.data){var o=r.data.value,s=i.data.value;if(n&&n.id===t&&a.handleWidgetChange(e.id),o&&s&&(t===r.id||t===i.id)){var{subtype:c}=r.data,l=c===he.a.DATE?"day":"hour",d=s.diff(o,l,!0);c===he.a.DATE_HALF&&(d=(d=Number(d)/12)?(d+1)/2:.5),c===he.a.DATE&&(d=d?d+1:1);var u=Number(d.toFixed(0));["hour","halfDay"].includes(l)&&(u=Number(d.toFixed(1))),n.data.value=Number(d)<0?"0":"".concat(u);var p=a.previewListManager.isConditionWidget(e.id);a.handleWidgetChange(e.id,!p),r.id!==t&&i.id!==t&&n.id!==t||o&&s&&ge.validate(e,a)}}},checkConditionCompare:(e,t)=>Object(w.d)(e.data.children[2].data.value,t),reset(e,t,a){for(var{id:r}of e.data.children)a.resetWidgetData(r)}},ve={type:b.c.SINGLE_SELECT,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!1!==e.visible,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",options:e.value,value:e.defaultValue||null}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value||null,displayCondStatus:e.data.visible},printFormat(e){var{name:t,value:a}=e.data;return{label:t,value:a?a.text:""}},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value||null,e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.options=Object(p.a)(t.data.options)||[],e.data.value=t.data.value?Object(o.a)({},t.data.value):null,e))),restoreWithCopyFormat:Object(l.f)(((e,t)=>(e.data.visible=t.data.visible,e.data.options=Object(p.a)(t.data.options)||[],e.data.value=t.data.value?Object(o.a)({},t.data.value):null,e))),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0})),checkConditionCompare:(e,t)=>{var{data:{value:a}}=e;return Object(w.a)(a?a.value:"",t)},reset(e){e.data.value=null},onSubmitterChange(e,t,a){var{id:r}=t;if(r===A.a){a.resetWidgetData(r),t.data.options=a.userDepartmentManager.userDepartmentList.map((e=>({value:e.departmentId,text:e.name})));var i=a.userDepartmentManager.userDepartmentList.find((e=>e.isMainDepartment));i&&(t.data.value={value:i.departmentId,text:i.name})}}},je=a(49),Oe=a(61),fe={type:b.c.SINGLE_SELECT_V2,inputFormat(e,t,a){var r,i,n,{id:o}=e,s=null,c=!1,l=t.isWidgetWritable(o);if(!e.isLinkageChild&&!s&&e.enableDefaultValue&&l&&!t.isRollbackToStart)for(var d of e.value)if(d.value===e.widgetDefaultValue){s=d,c=!0;break}return c&&e.isLinkageParent&&setTimeout((()=>{var e=a?"".concat(o,"|").concat(a):o;t.handleWidgetLinkage([e],!0)}),100),{id:o,type:e.type,data:{name:e.name||"",visible:!1!==e.visible,readable:t.isWidgetReadable(o),writable:l,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,enableDefaultValue:e.enableDefaultValue,widgetDefaultValue:e.widgetDefaultValue,useExternalData:e.useExternalData,externalDataLinkage:e.externalDataLinkage,linkageConfigs:e.linkageConfigs,externalDataSearchable:e.externalDataSearchable&&D.d.enableSelectExternalDataSearch,isReset:!1,required:Boolean(e.required),placeholder:e.placeholder||"",options:e.value,value:s,disabled:Boolean(null===(r=e.option)||void 0===r?void 0:r.disabled),allowClear:!(null!==(i=e.option)&&void 0!==i&&i.notAllowClear),isInGroup:null===(n=e.option)||void 0===n?void 0:n.isInGroup,isLinkageChild:e.isLinkageChild,isLinkageParent:e.isLinkageParent,linkageError:e.linkageError,relativeLinkageIdList:e.relativeLinkageIdList,linkageLoading:e.linkageLoading,linkageParentNameList:e.linkageParentNameList}}},outputFormat(e){if(!e.data.required&&Object(f.c)(e.data.value))return{id:Object(M.q)(e.id),type:e.type,value:null,displayCondStatus:e.data.visible};var t=e.id===je.a.Unit||"string"==typeof e.id&&(e.id.includes(Oe.j.DetailInterval)||e.id.includes(Oe.j.DetailCategory))||e.data.visible?e.data.value:null;return{id:Object(M.q)(e.id),type:e.type,value:t,displayCondStatus:e.data.visible}},printFormat(e,t){var{id:a}=e,{name:r,value:i}=e.data;if(a===je.a.Type){var{leaveTypes:n}=t,o=n.find((e=>i&&e.id===i.value));return{label:r,value:o?o.leaveName:i?i.text:""}}return{label:r,value:i?i.text:""}},restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,Object(M.c)(e,a)&&(e.data.options=t.value?[Object(o.a)({},t.value)]:[]),e.data.value=t.value||null,e))),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>{if(e.data.externalDataLinkage)return e.data.value=Object(p.a)(t.data.value),e.data.options=Object(p.a)(t.data.options),e;var r=e.data.isLinkageChild||t.data.value&&e.data.options.find((e=>{var a;return e.value===(null===(a=t.data.value)||void 0===a?void 0:a.value)}));return r?e.data.value=Object(o.a)({},t.data.value):e.data.isInGroup?(e.data.value=Object(o.a)({},t.data.value),e.data.options=t.data.options.slice(0),e.data.visible=t.data.visible,e.timeItem=t.timeItem):e.data.value=null,e})),afterRestore:Object(l.f)(((e,t)=>{e.data.isLinkageParent&&t.handleWidgetLinkage([e.id],!0)})),validate:Object(l.f)(((e,t,a)=>{if(e.data.isReset&&e.data.validationError)return!1;if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){e.data.validationError=null;var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0})),checkConditionCompare:(e,t)=>{var{data:{value:a}}=e,{id:r}=e;return"widgetWorkGroupUnit"===r?Object(w.d)(a?a.value:"HOUR",t):"widgetLeaveGroupInterval"===r||"widgetOutGroupInterval"===r?Object(w.d)(a?a.value:"0",t):"widgetOutGroupUnit"===r?t.data===(a?a.value:"HOUR"):(e.data.visible||(a=null),Object(w.b)(a?a.value:"",t))},onSomeWidgetChange(e,t,a){var{data:{externalDataLinkage:r,value:i,linkageConfigs:n,externalDataSearchable:o},id:s}=e;if(e.data.writable){var c=!s.includes(".")&&o&&D.d.enableSelectExternalDataSearch;if(r&&!c){var l=n.find((e=>{if(e.linkageWidgetID.includes(".")){var[,a]=e.linkageWidgetID.split("."),r=s.split("|")[1];return"".concat(a,"|").concat(r)===t}return e.linkageWidgetID===t}));if(!l)return;i?(e.data.options=[],a.resetWidgetData(s),a.setValidationError(s),a.handleWidgetChange(s,!0)):e.data.options=[],a.getSelectOptionsAsync(e.id)}}},reset(e){e.data.value=null},restoreDefaultData(e){var{data:t}=e;if(t.writable&&t.enableDefaultValue&&!t.value)for(var a of t.options)if(a.value===t.widgetDefaultValue){e.data.value=a;break}},setOptions(e,t,a,r){a&&Array.isArray(a)&&e.data.writable&&(e.data.options=a,r||(e.data.value=null,t.handleWidgetChange(e.id)))},setLinkageState(e,t,a,r){e.data.writable&&(e.data.linkageLoading=a,e.data.linkageError=r,r&&(e.data.options=[],null!==e.data.value&&(e.data.value=null,t.handleWidgetChange(e.id))))}},Me={type:b.c.MULTI_SELECT,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",options:e.value,value:[]}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value.length?{value:e.data.value.map((e=>e.value)).join(","),text:e.data.value.map((e=>e.text)).join(",")}:null,displayCondStatus:e.data.visible},printFormat(e){var{name:t,value:a}=e.data;return{label:t,value:a.map((e=>e.text)).join("; ")}},restoreFormat:Object(l.f)(((e,t)=>{e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=[];for(var a=t.value.value.split(","),r=t.value.text.split(","),i=0;i<a.length;i++)e.data.value.push({value:a[i],text:r[i]});return e})),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var a;return e.data.options=Object(p.a)(t.data.options)||[],e.data.value=(null===(a=t.data.value)||void 0===a?void 0:a.map((e=>Object(o.a)({},e))))||[],e})),validate:Object(l.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0})),checkConditionCompare:(e,t)=>{var{data:{value:a}}=e;return Object(w.c)(a.map((e=>e.value)),t)}},_e=a(84),ye={type:b.c.MULTI_SELECT_V2,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!1!==e.visible,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,useExternalData:e.useExternalData,externalDataLinkage:e.externalDataLinkage,linkageConfigs:e.linkageConfigs,isReset:!1,externalDataSearchable:e.externalDataSearchable&&D.d.enableSelectExternalDataSearch,required:Boolean(e.required),placeholder:e.placeholder||"",options:e.value,value:[]}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value,displayCondStatus:e.data.visible},printFormat(e){var{name:t,value:a}=e.data;return{label:t,value:a.map((e=>e.text)).join("; ")}},restoreFormat:Object(l.f)(((e,t,a)=>{for(var r of(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,Object(M.c)(e,a)&&(e.data.options=Object(_e.a)(t.value)?t.value:[]),Object(_e.a)(t.value)?t.value:[t.value]))if(r){var{text:i="",value:n=""}=r;e.data.value.push({text:i,value:n})}return e})),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var a,r;if(e.data.externalDataLinkage)return e.data.value=Object(p.a)(t.data.value),e.data.options=Object(p.a)(t.data.options),e;var i=null===(a=t.data.value)||void 0===a?void 0:a.every((t=>{var a;return null===(a=e.data.options)||void 0===a?void 0:a.find((e=>e.value===t.value))}));return e.data.value=i?null===(r=t.data.value)||void 0===r?void 0:r.map((e=>Object(o.a)({},e))):[],e})),validate:Object(l.f)(((e,t,a)=>{if(e.data.isReset&&e.data.validationError)return!1;if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(f.c)(e.data.value);return a||(e.data.validationError=r),!r}return!0})),onSomeWidgetChange(e,t,a){var{data:{externalDataLinkage:r,value:i,linkageConfigs:n,externalDataSearchable:o},id:s}=e;if(e.data.writable){var c=!s.includes(".")&&o&&D.d.enableSelectExternalDataSearch;if(r&&!c){var l=n.find((e=>{if(e.linkageWidgetID.includes(".")){var[,a]=e.linkageWidgetID.split("."),r=s.split("|")[1];return"".concat(a,"|").concat(r)===t}return e.linkageWidgetID===t}));if(!l)return;if(!i.length)return void(e.data.options=[]);e.data.options=[],a.resetWidgetData(s),a.setValidationError(s),a.handleWidgetChange(s,!0)}}},checkConditionCompare:(e,t)=>{var{data:{value:a}}=e;return Object(w.c)(a.map((e=>e.value)),t)}},De=a(211),Ne=a(157),Ae=a(116),Te=a(35),Ie=Object(Ne.a)(Object(l.k)((function*(e){var{data:{children:[t,a,r,i],isLeaveRefactorGray:n}}=e;if(t.data.value){var{leaveT:o}=t.data.value;if(o&&a.data.value&&r.data.value){if(r.data.validationError=Object(f.b)(a.data.value,r.data.value,null,"",a.data.name,r.data.name),r.data.validationError)return;if(i.data.validationError=yield Object(f.e)(t.data.value.value,a.data.value,r.data.value,o.balanceUnit,n),i.data.validationError)return;var s;o.balanceUsed&&(i.data.validationError=yield Object(f.d)(t.data.value.value,a.data.value,r.data.value,null!==(s=o.balanceQuota)&&void 0!==s?s:0,o.balanceUnit,n)),i.data.value&&0===Number(i.data.value.value)&&(i.data.validationError=Object(g.t)("PC.Error_NoZero"))}}})),100),Ce={type:b.c.LEAVE_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",children:t.widgetsInputFormat(e.value),isLeaveRefactorGray:!1}}},outputFormat:(e,t)=>({id:Object(M.q)(e.id),type:e.type,value:e.data.children.some((e=>e.data.required))&&!e.data.visible?null:t.widgetsOutputFormat(e.data.children),displayCondStatus:e.data.visible}),restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,a.widgetsRestoreFormat(t.value),e))),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e))),printFormat(e,t){var{children:a}=e.data;return t.widgetsPrintFormat(a)},*genChildren(e){yield*e.data.children},onSomeWidgetChange(e,t,a){e.id!==t&&e.data.children.every((e=>e.id!==t))||("widgetLeaveGroupInterval"===t&&a.handleWidgetChange(e.id,!0),Ie(e))},reset(e,t,a){if(Ce.genChildren)for(var{id:r}of Ce.genChildren(e))a.resetWidgetData(r)},validate:Object(l.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;for(var r of e.data.children)r.data.required&&(r.data.validationError=null);if(yield Ie(e),a){var i=!0;for(var n of e.data.children){if(n.data.required&&!(i=!Object(f.c)(n.data.value)))return i;if(n.data.validationError)return!1;if("widgetLeaveGroupInterval"===n.id&&(!n.data.value||0===Number(n.data.value.value)))return!1}return i}if(t.validateAllCount)for(var o of e.data.children)if(o.data.required&&(o.data.validationError=o.data.validationError||Object(f.c)(o.data.value)),"radio"===o.type){var s=o.data.value;s&&"string"!=typeof s&&0===Number(s.value)&&(o.data.validationError=Object(g.t)("PC.Error_NoZero"))}for(var c of e.data.children)if(c.data.validationError)return!1;if(e.data.isLeaveRefactorGray){var{data:{children:[l,d,u,p]}}=e;if(!a&&l.data.value&&d.data.value&&u.data.value){var m,h,b=yield Object(f.f)(l.data.value.value,d.data.value,u.data.value,null==p||null===(m=p.data)||void 0===m||null===(h=m.value)||void 0===h?void 0:h.value);if(b)return Te.b.showToast({title:b,icon:"error"}),!1}}return!0}))},xe=a(430),Se=a(17),we=a(12),Le=a(33);function Ee(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],{groups:i}=t.data,n=e.data.children[5].data,o=n.value?n.value.text:"";if(!i.length)return[];var s=i.map((e=>{var{widgets:t}=e,i=t[0].data,n=t[1].data,s=t[3].data,c=(n.value||new Date,!a&&i.value?i.value.text:{placeholder:i.placeholder,range:i.options.map((e=>e.text))||[],value:i.value?0:void 0}),l=ce()(n.text).format("YYYY-MM-DD"),d=i.value&&"NONE"!==i.value.value?"".concat(Object(g.t)("Print.CountAs",{workType:i.value.text})):"",u=!a&&s.value?"0"===s.value.value?"0":"".concat(s.value.text).concat(o).concat(d):{placeholder:s.placeholder,range:s.options.map((e=>e.value)),value:r?0:void 0,disabled:r};return{workTime:l,Interval:u,Type:c}}));return s}var ke=(e,t)=>{for(var a=Object.keys(t),r=[],i=[],n=[],o=function(o){var s=a[o];e.addGroup({isAutoEmit:!0,isAutoRun:!1});var{isConflicted:c,canWork:l,needApproval:d,category:u}=t[s],p=e.groups[o].widgets.find((e=>e.id.includes("widgetWorkGroupDetailCategory")))||null;if(!p)return"break";var m=p.data.options.find((e=>e.value==="".concat(u))),h=m?m.text:"";l||!h||r.includes(h)||r.push(h),d||!h||i.includes(h)||i.push(h),c&&0===n.length&&n.push(h)},s=0;s<a.length;s++){if("break"===o(s))break}return r.length>0?Object(g.t)("WorkGroup.NoPermissionRequest",{type:"".concat(r.join(Object(g.t)("Split")||","))}):i.length>0?Object(g.t)("WorkGroup.NoNeedApproval",{type:"".concat(i.join(Object(g.t)("Split")||","))}):n.length>0?Object(g.t)("WorkGroup.OvertimeConflict"):""},ze=(e,t,a)=>{var r=t;return a===Oe.i.DAY?r=t.add(1,"day"):a===Oe.i.HALFDAY&&(r=t.add(12,"hour")),{startTimeValue:e,endTimeValue:r}},Re=e=>{if(e[5].data.value&&e[3].data.name){var t=Object(g.t)("Brackets",{innerText:""}).substring(0,1),a=e[3].data.name.lastIndexOf(t),r=a>=0?e[3].data.name.substring(0,a):e[3].data.name,i="".concat(Object(g.t)("Brackets",{innerText:e[5].data.value.text}));e[3].data.name="".concat(r).concat(i)}},Pe=(e,t)=>{var{data:{children:a,option:r}}=e,{isSetRule:i}=r,n=a[5].data,o=t;t===Oe.i.HALFDAY&&(o=Oe.i.DAY),t===Oe.i.HALFHOUR&&(o=Oe.i.HOUR),n.value=Oe.h[o],i===Oe.g.SET&&Re(a),e.rule.workUnit=t},Ue=Object(l.f)((function(e,t){var a,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0;n&&Pe(e,n);var{rule:{workUnit:s},data:{children:c,option:l}}=e,d=c[7].data;if(null!==(a=i[0])&&void 0!==a&&a.hit_text)return e.detail=[],e.data.conflictErr=i[0].hit_text,void(d.groups=[]);var u=c[1].data,p=c[2].data;if(u.value&&p.value){var{startTimeValue:m,endTimeValue:h}=ze(u.value,p.value,r?Oe.i.MINUTE:s),b=Object.keys(t),g={leaveRadio:{},leaveDefId:{}},v=!1,j=ke(d,t);if(j)e.detail=[],e.data.conflictErr=j,d.groups=[];else{for(var O=function(a){var i=b[a],{longestDuration:n,type:u,category:p,leaveRadio:j,leaveDefId:O,approvalRule:f}=t[i];v=f===Oe.a.SPECIAL,g.leaveRadio=Object(o.a)(Object(o.a)({},g.leaveRadio),{[i]:j}),g.leaveDefId=Object(o.a)(Object(o.a)({},g.leaveDefId),{[i]:"".concat(O)});var M=d.groups[a].widgets,_=M[0].data,y=M[1].data,D=M[2].data,N=M[3].data,A=M[4].data;l.isSetRule===Oe.g.SET?u!==Oe.k.EITHER?(_.options=_.options?_.options.filter((e=>e.value===Oe.f["".concat(u)])):[],_.value=_.options&&_.options.find((e=>e.value===Oe.f["".concat(u)]))||null):_.options=_.options?_.options.filter((e=>e.value!==Oe.f[Oe.k.NEITHER])):[]:_.visible=!1,y.value=ce()(i).isAfter(m)?ce()(i):m,y.text=ce()(y.value).format("YYYY-MM-DD HH:mm");var T=ce()(i).add(1,"day");D.value=T.isBefore(h)?T:h,D.text=ce()(D.value).format("YYYY-MM-DD HH:mm");var I,C=s===Oe.i.HALFDAY||s===Oe.i.HALFHOUR?2*Number(n):Number(n),x=r?[{text:"".concat(n),value:"".concat(n)}]:Array.from(Array(C+1),((e,t)=>({text:s===Oe.i.HALFDAY||s===Oe.i.HALFHOUR?"".concat(t/2):"".concat(t),value:s===Oe.i.HALFDAY||s===Oe.i.HALFHOUR?"".concat(t/2):"".concat(t)})));N.options=x,A.value=A.options.find((e=>e.value==="".concat(p)))||null,e.data.option=Object(o.a)(Object(o.a)({},l),g),e.detail=Ee(e,c[7],!0,r),r&&(N.value=null!==(I=N.options[0])&&void 0!==I?I:null)},f=0;f<b.length;f++)O(f);if(r){var M=0;e.detail.forEach((e=>{var t="string"!=typeof e.Interval?Number(e.Interval.range[0]):0;M+=t})),M=Math.round(100*M)/100,c[3].data.value="".concat(M)}}e.data.isSpecialRule=v}})),Be=a(232),Fe=a(103),Ye=a(58),Qe=a(169),Ge=a(145),We=Object(l.f)(((e,t)=>{var{data:{children:a,isLeaveRefactorGray:r}}=e,i=a[1].data,n=a[2].data,o=a[3].data,s=a[6].data;e.rule=t,Pe(e,t.workUnit),s.value="".concat(t.ruleVersionId)||"0",i.subtype=r?he.a.DATE_AND_TIME:Oe.b[t.workUnit]||he.a.DATE,n.subtype=r?he.a.DATE_AND_TIME:Oe.b[t.workUnit]||he.a.DATE,o.disabled=!0})),Ve=Object(l.f)(((e,t)=>{e.ruleErr=t}));function He(e){return Ze.apply(this,arguments)}function Ze(){return Ze=Object(i.a)((function*(e){var t=yield Object(Be.a)();return e.data.isLeaveRefactorGray=t,t})),Ze.apply(this,arguments)}var qe=Object(l.k)((function*(e){if(yield He(e)){var{children:t,option:{isSetRule:a}}=e.data;if(a===Oe.g.SET&&t[5].data.value){var r="".concat(Object(g.t)("Brackets",{innerText:t[5].data.value.text}));t[3].data.name="".concat(Object(g.t)("WorkGroup.TotalWorkTime")).concat(r)}e.detail=Ee(e,t[7],!1,!0)}}));function Ke(){return Ke=Object(i.a)((function*(e,t){var{instanceInfo:a}=t;if(a){var{instanceId:r,instanceIdList:i}=a,n=i&&i.length?i[0]:r;if(yield Object(Be.a)()){var{exceed_detail:o}=yield Object(Fe.c)(h.c,{instance_id:n},void 0),s=Object(Fe.a)(o);s&&(yield Object(Le.s)(),e=t.getWidget(e.id),Object(l.s)((()=>{e.data.workHint=s})))}}})),Ke.apply(this,arguments)}function Je(e,t){return Xe.apply(this,arguments)}function Xe(){return Xe=Object(i.a)((function*(e,t){var{instanceInfo:a}=t;if(!a){var{data:r}=e,{option:{isSetRule:i,allowInsteadMultiUser:n}}=r;yield Object(Le.s)();var o=(e=t.getWidget(e.id)).rule;if(i===Oe.g.SET)try{var s,c,l,d,u,p,m,b=yield He(e),v=null===(s=e)||void 0===s||null===(c=s.data)||void 0===c||null===(l=c.children)||void 0===l?void 0:l[8];o=yield Object(Fe.f)(h.c,{imitateUserId:n===Oe.c.ALLOW?null!==(d=null==v||null===(u=v.data)||void 0===u||null===(p=u.users)||void 0===p||null===(m=p[0])||void 0===m?void 0:m.id)&&void 0!==d?d:t.options.userStore.currentUser.userId:t.insteadSubmitManager.currentSubmitterId},void 0,b)}catch(t){var{code:j}=t;if(j===Oe.d.UNSETWORKRULE){var O=Oe.e[j];return Te.b.showToast({title:Object(g.t)(O)||O,icon:"error",duration:2e3}),We(e,o),Ve(e,O),!0}return We(e,o),Object(we.b)(Se.f.ApprovalError,{location:"in function preGetWorkRule at src/components/configurable-form/components/widgets/work-group-v2/index.ts",message:JSON.stringify(t)}),!1}else o.workUnit=Oe.i.HOUR,o.ruleVersionId="0",yield He(e);We(e,o)}})),Xe.apply(this,arguments)}function $e(){return $e=Object(i.a)((function*(e,t,a){var r,{data:i}=t,{isLeaveRefactorGray:n}=i;try{r=yield Object(Fe.g)(h.c,e,void 0,n)}catch(e){var{code:o}=e;if(Object(we.b)(Se.f.ApprovalError,{location:"in function calcWorkConflict at src/components/configurable-form/components/widgets/work-group-v2/index.ts",message:JSON.stringify(e)}),0!==o)return t.data.workConflictPromise=Promise.resolve(),a.handleWidgetChange(t.id),o===Oe.d.NOATTENDANCEEXIST&&(t.data.conflictErr=Object(g.t)(Oe.e[o]),!0)}var{detail:s,overtime_unit:c,apply_time_hit_text:l=[]}=r;Ue(t,s,n,l,c),a.handleWidgetChange(t.id)})),$e.apply(this,arguments)}function et(){return et=Object(i.a)((function*(e,t,a){var r,i,n,o,s;yield Object(Qe.b)([t.format("YYYYMMDD")],(null===(r=e.data.option)||void 0===r?void 0:r.allowInsteadMultiUser)===Oe.c.ALLOW?null!==(i=null===(n=e.data.children[8])||void 0===n||null===(o=n.data)||void 0===o||null===(s=o.users)||void 0===s?void 0:s.map((e=>e.id)))&&void 0!==i?i:[a.options.userStore.currentUser.userId]:[a.insteadSubmitManager.currentSubmitterId],Ge.a.Overtime)})),et.apply(this,arguments)}var tt=Object(l.k)((function*(e,t){var a,r,i,n,o=e.data.children[1].data,s=e.data.children[2].data,c=null!==(a=null===(r=e.data.children[8])||void 0===r||null===(i=r.data)||void 0===i||null===(n=i.users)||void 0===n?void 0:n.map((e=>e.id)))&&void 0!==a?a:[t.options.userStore.currentUser.userId];if(e.data.isLeaveRefactorGray){var l,d,u,{data:p}=yield h.c.validateOvertimeApplyFormV2({rule_version_id:e.rule.ruleVersionId||"0",time_range:o.value&&s.value?[{start_time:o.value.format("YYYY-MM-DD HH:mm"),end_time:s.value.format("YYYY-MM-DD HH:mm"),start_stamp:o.value.unix(),end_stamp:s.value.unix()}]:void 0,multi_imitate_users:e.data.option.allowInsteadMultiUser===Oe.c.ALLOW?c:[t.insteadSubmitManager.currentSubmitterId?t.insteadSubmitManager.currentSubmitterId:t.options.userStore.currentUser.userId],time_offset:Object(Fe.d)()});if(null!==(l=p.multi_imitate_invalid_users)&&void 0!==l&&l.length){var m,b,v,j,O,f=null==p||null===(m=p.multi_imitate_invalid_users)||void 0===m?void 0:m.some((e=>!e.is_in_manage_scope)),M=null!==(b=null===(v=e.data.children[8])||void 0===v||null===(j=v.data)||void 0===j?void 0:j.users)&&void 0!==b?b:[];return e.data.usersValidateError=!0,e.data.usersValidateData=p.multi_imitate_invalid_users,e.data.userValidateHintText=f?Object(g.t)("WorkGroup.OvertimeManagementRange"):Object(g.t)("WorkGroup.OvertimeRuleDifferent",{name:null==M||null===(O=M[0])||void 0===O?void 0:O.name}),!1}if(null!==(d=p.over_time_apply_hit_text_list)&&void 0!==d&&null!==(u=d[0])&&void 0!==u&&u.hit_text)return Te.b.showToast({title:p.over_time_apply_hit_text_list[0].hit_text,icon:"error"}),!1;var _=Object(Fe.a)(p.exceed_detail,{isSelf:!t.insteadSubmitManager.currentSubmitterIsNotCurrentUser&&e.data.option.allowInsteadMultiUser!==Oe.c.ALLOW,isPC:!0});if(_)return Te.b.showToast({title:_,icon:"error"}),!1}return!0})),at={type:b.c.WORK_GROUP_V2,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a,type:r,name:i,value:n=[],option:o}=e,s=t.isWidgetReadable(a),c=t.isWidgetWritable(a),l=[],d=[];(function e(t,a,r){var i=t.id;a&&i&&l.push(i),r&&i&&d.push(i),t.value&&Array.isArray(t.value)&&t.value.forEach((t=>{e(t,a,r)}))})(e,s,c),t.isRollbackToStart||(t.addWidgetsToReadableSet(l),t.addWidgetsToWritableSet(d));var u={id:a,type:r,data:{name:i||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,option:o,children:t.widgetsInputFormat(n)},rule:{ruleVersionId:"0",workUnit:1,category:3,hoursPerDay:24},detail:[]},p=u.data.children[8];if((null==o?void 0:o.allowInsteadMultiUser)===Oe.c.ALLOW&&p){var{currentUser:m}=t.options.userStore;p.data.users=[{name:m.name,id:m.userId,avatarUrl:m.avatarUrl,tenantId:m.tenantId}]}return Je(u,t),function(e,t){Ke.apply(this,arguments)}(u,t),u},*genChildren(e){yield*e.data.children},outputFormat(e,t){var a,r=e.data.option;if(r.hoursPerDay=e.rule.hoursPerDay,r.isSetRule===Oe.g.NOSET){var i=e.data.children[0].data;if(i.value){var n=i.value.value.split("#")[0];if(n&&n.startsWith("-")&&(n="0"),r.leaveDefId){var o=Object.keys(r.leaveDefId);for(var s of o)r.leaveDefId[s]=n}}}var c={id:Object(M.q)(e.id),type:b.c.WORK_GROUP,value:e.data.visible?t.widgetsOutputFormat(e.data.children):null,displayCondStatus:e.data.visible,option:r};return c.option.isSetRule===Oe.g.SET&&c.value&&(c.value[0].value=null,c.value[0].displayCondStatus=!1),c.option.allowInsteadMultiUser!==Oe.c.ALLOW&&null!==(a=c.value)&&void 0!==a&&a[8]&&(c.value[8].value=null,c.value[8].displayCondStatus=!1),c},validate:Object(l.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;var r,[i,n,o,s,c,l,d]=e.data.children,u=[i.id,n.id,o.id,c.id,l.id,d.id],p=n.data,m=o.data;if(e.ruleErr)return Te.b.showToast({title:Object(g.t)(e.ruleErr)||e.ruleErr,icon:"error",duration:2e3}),!1;if(p.value&&m.value){var h=p.value.add(7,"day"),b=function(e,t,a){if(!e.data.isLeaveRefactorGray)return"";for(var{type:r,num:i="0"}of null!==(n=null===(o=e.rule)||void 0===o?void 0:o.apply_time_limit_conf)&&void 0!==n?n:[]){var n,o,s=Number(i);if(r===Ye.h.BeforeLeaveStart&&t.startOf("day").valueOf()<ce()().add(s,"day").startOf("day").valueOf())return 0===s?Object(g.t)("WorkGroup.BeforeLeaveStartToday"):Object(g.t)("WorkGroup.BeforeLeaveStart",{num:s});if(r===Ye.h.AfterLeaveEnd&&a.local().startOf("day").valueOf()<ce()().subtract(s,"day").startOf("day").valueOf())return 0===s?Object(g.t)("WorkGroup.AfterLeaveEndToday"):Object(g.t)("WorkGroup.AfterLeaveEnd",{num:s})}return""}(e,p.value,m.value),v="";if(p.value.isAfter(m.value))v=Object(g.t)("LeaveGroup.DateRangeInvalid",{startTime:p.name,endTime:m.name});else if(m.value.isAfter(h))v=Object(g.t)("WorkGroup.exceedSevenDays");else if(b)v=b;else if(yield e.data.workConflictPromise,yield Object(Le.s)(100),e.data.conflictErr)v=e.data.conflictErr;else if(0===e.detail.length)return e.data.conflictErr=Object(g.t)("WorkGroup.Conflict"),!1;if(v)return Te.b.showToast({title:v,icon:"error",duration:2e3}),!1}if(e.data.option.isSetRule===Oe.g.SET&&u.shift(),(yield t.validateWidgets(u,{silent:a}))||(r=!0),r)return!1;var j=function(e,t,a){var r=!0;for(var i of e){if("string"!=typeof i.Interval){var n=i.Interval;if(void 0===n.value){n.showError=!a,r=!1;break}}if(t===Oe.g.SET&&"string"!=typeof i.Type){var o=i.Type;if(void 0===o.value){o.showError=!a,r=!1;break}}}return!r}(e.detail,e.data.option.isSetRule,a);return!j&&(a||"0"!==s.data.value?!!a||(yield tt(e,t)):(s.data.validationError=e.data.isLeaveRefactorGray?Object(g.t)("WorkGroup.CannotSubmitWork"):Object(g.t)("WorkGroup.NoZeroDuration"),!1))})),restoreFormat:Object(l.f)(((e,t,a)=>{if(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,a.widgetsRestoreFormat(t.value),a.resubmitInstanceId)e.data.children[1].data.value=null,e.data.children[2].data.value=null,e.data.children[7].data.groups=[],e.data.children[3].data.value="",e.detail=[],We(e,e.rule);else{var{children:r,option:{isSetRule:i}}=e.data;i===Oe.g.SET&&Re(r),e.detail=Ee(e,r[7],!1),qe(e)}return e})),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e.data.children[1].data.value=null,e.data.children[2].data.value=null,e.data.children[3].data.value="",e.data.children[7].data.groups=[],e.detail=[],We(e,e.rule),e))),reset(e,t,a){for(var{id:r}of at.genChildren(e))a.resetWidgetData(r);We(e,e.rule),e.detail=[]},onSomeWidgetChange:Object(l.k)((function*(e,t,a){var{data:{option:r,children:i,isLeaveRefactorGray:n}}=e;"widgetWorkGroupInterval"===t&&a.handleWidgetChange(e.id,!0);var o=!1;r.allowInsteadMultiUser===Oe.c.ALLOW&&"widgetWorkGroupOvertimeWorkers"===t&&(e.detail=[],e.data.conflictErr="",i[7].data.groups=[],tt(e,a),yield Je(e,a),o=!0);var s=i[1],c=i[2],l=s.data.value,d=c.data.value,u=i[7].data,p=i[3].data,m=i.find((e=>"widgetWorkGroupOvertimeWorkers"===e.id));if(l&&(t===s.id||o)&&function(e,t,a){et.apply(this,arguments)}(e,l,a),!l||!d||t!==s.id&&t!==c.id&&!o)return null;u.groups=[],e.detail=[],e.data.conflictErr="",p.value="";var h=l.add(7,"day");if(!e.ruleErr&&(l.isBefore(d)||l.isSame(d))&&(d.isBefore(h)||d.isSame(h))){var{startTimeValue:b,endTimeValue:g}=ze(l,d,n?Oe.i.MINUTE:e.rule.workUnit);e.data.workConflictPromise=function(e,t,a){return $e.apply(this,arguments)}({ruleVersionId:e.rule.ruleVersionId||"0",startTime:b.format("YYYY-MM-DD HH:mm"),endTime:g.format("YYYY-MM-DD HH:mm"),imitateUserId:a.insteadSubmitManager.currentSubmitterId,multi_imitate_users:m?m.data.users.map((e=>e.id)):[a.insteadSubmitManager.currentSubmitterId]},e,a)}})),printFormat(e,t){var{children:a,option:{isSetRule:r}}=e.data;r===Oe.g.SET&&Re(a);var i=Object(M.u)(a,[Oe.j.StartTime,Oe.j.EndTime,Oe.j.Interval],Oe.j.Reason),n=i.filter(((e,t)=>(r!==Oe.g.SET||0!==t)&&!Oe.l.includes(e.id))),o=t.widgetsPrintFormat(n),s=i.find((e=>e.id===Oe.j.Detail)),c=Ee(e,s,!1,e.data.isLeaveRefactorGray);for(var l of c){var{workTime:d,Interval:u}=l;"string"==typeof u&&o.push({label:d,value:u})}return o},onSubmitterChange(e,t,a){a.resetWidgetData(t.id),setTimeout((()=>{Je(t,a)}),100)}},rt=["widgetWorkGroupUnit","widgetWorkGroupDetail","widgetWorkGroupRule"],it={type:b.c.WORK_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a,type:r,name:i,value:n=[],option:o={}}=e,s=t.isWidgetReadable(a),c=t.isWidgetWritable(a),l=[],d=[],u=n.filter((e=>!rt.includes(e.id)));return function e(t,a,r){var i=t.id;a&&i&&l.push(i),r&&i&&d.push(i),t.value&&Array.isArray(t.value)&&t.value.forEach((t=>{e(t,a,r)}))}(e,s,c),t.isRollbackToStart||(t.addWidgetsToReadableSet(l),t.addWidgetsToWritableSet(d)),{id:a,type:r,data:{name:i||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,option:o,children:t.widgetsInputFormat(u)}}},*genChildren(e){yield*e.data.children},outputFormat:(e,t)=>({id:Object(M.q)(e.id),type:e.type,value:e.data.visible?t.widgetsOutputFormat(e.data.children):null,displayCondStatus:e.data.visible}),validate:Object(l.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;var r,[i,n,o,s,c]=e.data.children;(yield t.validateWidgets([i.id,n.id,o.id,s.id,c.id],{silent:a}))||(r=!0);var l=Object(f.b)(n.data.value,o.data.value,s.data.value,"dateInterval",n.data.name,o.data.name);return!r&&!l})),restoreFormat:(e,t,a)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,a.widgetsRestoreFormat(t.value),e),restoreWithDraftFormat:(e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e),reset(e,t,a){for(var{id:r}of it.genChildren(e))a.resetWidgetData(r)},onSomeWidgetChange:Object(l.k)((function*(e,t,a){var r=e.data.children[1],i=e.data.children[2],n=r.data.value,o=i.data.value,s=e.data.children[3];if(!n||!o||t!==r.id&&t!==i.id)return null;var c=Object(Le.p)(n.valueOf(),o.valueOf());if(s.data.value=Number(c)<0?"0":"".concat(c),a.handleWidgetChange(e.id,!0),r.data.value&&i.data.value){yield Object(Le.s)(100);var l=Object(f.b)(r.data.value,i.data.value,s.data.value,"dateInterval",r.data.name,i.data.name);s.data.validationError=l}})),printFormat:(e,t)=>t.widgetsPrintFormat(e.data.children),onSubmitterChange(e,t,a){a.resetWidgetData(t.id)}},nt=a(573),ot=a(97),st=e=>{var{value:t,text:a,timezoneOffset:r}=e;return null===t?null:{value:t,text:a,timezoneOffset:r}},ct={type:b.c.SHIFT_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a,type:r,name:i,value:n}=e,o=n.map((e=>{var{id:t,name:a,type:r,placeholder:i,value:n,required:o}=e;return{id:t,name:a,type:r,placeholder:i,subtype:n,required:o,value:null,validationError:null}}));return{id:a,type:r,data:{name:i||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,value:o}}},outputFormat(e){var t=e.data.value.map((e=>{var{id:t,type:a,value:r}=e;return{id:Object(M.q)(t),type:a,value:"date"===a&&r?st(r):r}}));return{id:Object(M.q)(e.id),type:e.type,value:e.data.value.some((e=>e.required))&&!e.data.visible?null:t,displayCondStatus:e.data.visible}},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value||"",e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=Object(p.a)(t.data.value),e))),printFormat(e){var{value:t}=e.data,a=t.map((e=>{var{name:t,value:a}=e;return{label:t,value:Object(ot.a)(a)?a.text:a}}));return a},validate:Object(l.f)(((e,t,a)=>{if(!e.data.visible||!e.data.writable)return!0;var{value:r}=e.data;if(t.validateAllCount&&r.forEach((e=>{e.required&&(e.validationError=Object(f.c)(e.value))})),a){var i=!0;for(var n of r)n.validationError&&(i=!1),n.validationError=null;return i}for(var o of r)if(o.validationError)return!1;return!0}))},lt={type:b.c.DESC,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetReadable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),value:e.value||"",displayCondStatus:e.displayCondStatus}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value||null,displayCondStatus:e.data.visible},printFormat(e){var{data:{value:t},isInConnect:a}=e;return a?{label:Object(g.t)("DetailTable.IntroTitle","说明"),value:t,isDefaultFullLine:!0}:{label:t,isBlock:!0,isDesc:!0}},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.value=t.value||"",e.data.displayCondStatus=t.displayCondStatus,e.data.printable=t.printable,e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=t.data.value||"",e.data.displayCondStatus=t.data.displayCondStatus,e))),validate:()=>!0},dt={type:b.c.DATE_RANGE,inputFormat(e,t){var{id:a}=e,r=t.isWidgetReadable(a),i=t.isWidgetWritable(a),n=t.widgetsInputFormat(e.value);for(var o of n)o.data.readable=r,o.data.writable=i;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:r,writable:i,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),children:n}}},outputFormat(e,t){if(!e.data.visible&&!e.data.required)return null;var a=null,r=t.widgetsOutputFormat(e.data.children);if(r.length>1)a=r;else if(!e.data.required)return null;return{id:Object(M.q)(e.id),type:e.type,value:a,displayCondStatus:e.data.visible}},restoreFormat:Object(l.f)(((e,t,a)=>{var r=Object(M.p)(e.id);if(r)for(var i of t.value)i.id=Object(M.k)([Object(M.q)(t.value.start.id),r]);return e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,a.widgetsRestoreFormat(t.value),e})),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>{var r=Object(M.p)(e.id);if(r)for(var i of t.data.children)i.id=Object(M.k)([Object(M.q)(i.id),r]);return a.widgetsRestoreWithDraftFormat(t.data.children),e})),printFormat(e){var{children:[t,a]}=e.data;return{label:"".concat(t.data.name,"-").concat(a.data.name),value:"".concat(t.data.text," ").concat(Object(g.t)("PC.DateTo")," ").concat(a.data.text)}},validate:Object(l.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;var[r,i]=e.data.children;if(!i.data.validationError&&!(yield t.validateWidgets([r.id,i.id],{silent:a})))return!1;var n=Object(f.b)(r.data.value,i.data.value,null,"",r.data.name,i.data.name);return a||(i.data.validationError=n),!n})),*genChildren(e){yield*e.data.children},onSomeWidgetChange(e,t,a){var[r,i]=e.data.children;r.id!==t&&i.id!==t||dt.validate(e,a)},reset(e,t,a){for(var{id:r}of e.data.children)a.resetWidgetData(r)}},ut={type:b.c.REMEDY_GROUP,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:!0,writable:!1,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",value:[]}}},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value||[],e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=Object(p.a)(t.data.value)||[],e))),printFormat(e){var{value:t}=e.data,a=t.map((e=>{var{name:t,value:a}=e;return{label:t,value:Object(ot.a)(a)?a.text:a}}));return a},validate:()=>!0},pt=a(576),mt=a(96),ht=(e,t,a)=>{var r=a===mt.d.DAY?"day":"hour",i=t.diff(e,r,!0);a===mt.d.HALFDAY&&(i=Number(i)/12);var n=Number(i)<0?"0":"".concat(i),o=Number(n),s=Number(n),c=0,l=1;a===mt.d.HOUR?(s=0!==o?2*o:o+1,c=0!==o?.5:0,l=.5):a===mt.d.HALFDAY?(s=2*(o=0===o?.5:(o+1)/2),c=.5,l=.5):(s=o=0===o?1:o+1,c=1,l=1);var d=Array.from(Array(Math.floor(s)),((e,t)=>{var a=c+l*t;return{text:"".concat(a),value:"".concat(a)}}));return{options:d,maxDuration:o}};function bt(){return bt=Object(i.a)((function*(e,t,a){var r=e.data.children[2];t===r.id&&r.data.value&&(yield Object(Qe.b)([r.data.value.format("YYYYMMDD")],[a.insteadSubmitManager.currentSubmitterId],Ge.a.Out))})),bt.apply(this,arguments)}var gt=Object(l.k)((function*(e,t,a){var r=e.data.children[0],i=e.data.children[2],n=e.data.children[3],o=i.data.value,s=n.data.value,c=e.data.children[4],{isSetType:l,defaultUnit:d,unitMap:u}=e.data.option;if(!o||!s||t!==i.id&&t!==n.id&&t!==r.id)return null;var{value:p}=e.data.children[0].data,m=l===mt.b.SHOW&&p?u[p.value]:d,{options:h,maxDuration:b}=ht(o,s,m);if(c.data.options=h,c.data.value={text:"".concat(b),value:"".concat(b)},i.data.value&&n.data.value){a.handleWidgetChange(c.id),yield Object(Le.s)(100);var v=Object(f.b)(i.data.value,n.data.value,c.data.value.value,"dateInterval",i.data.name,n.data.name);!v&&c.data.value&&"0"===c.data.value.value&&(v=Object(g.t)("OutGroup_NoZeroDuratioin")),c.data.validationError=v}})),vt=e=>{var{option:t,children:a=[]}=e.data;if(!a.length||!a[4])return"";var r=a[4].data,i=a[0].data,n=a[1].data;r.originalName=void 0===r.originalName?r.name:r.originalName;var{unitMap:o,defaultUnit:s,isSetType:c}=t,l=i.value,d=c===mt.b.SHOW&&l?o[l.value]:s,u=d===mt.d.HALFDAY?mt.d.DAY:d,p=(n.options||[]).find((e=>e&&u===e.value)),{originalName:m}=r;return p?"".concat(m).concat(Object(g.t)("Brackets",{innerText:p.text})):m},jt=a(395),Ot=a(318);function ft(e,t){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(i.a)((function*(e,t){yield Object(Le.s)(),e=t.getWidget(e.id);var{data:{children:a,option:r}}=e;Object(l.s)((()=>{var i,n=a[1].data,o=a[2].data,s=a[3].data,c=a[4].data;o.isHalfHour=!0,s.isHalfHour=!0;var{defaultUnit:l}=r;t.isRollbackToStart&&null!==(i=n.value)&&void 0!==i&&i.value?l=n.value.value:r.defaultUnit===mt.d.HALFDAY&&(l=mt.d.DAY);var d=n.options||[];n.value=d.find((e=>e&&e.value===l))||null;var u=vt(e);c.name=u,0===r.isSetType&&(o.subtype=mt.c[r.defaultUnit],s.subtype=mt.c[r.defaultUnit])}))})),Mt.apply(this,arguments)}var _t=function(){var e=Object(i.a)((function*(e){if(e.data.writable){var t=(e=>{var t=(new Date).getTimezoneOffset(),a=e.data.children.find((e=>e.id===mt.a.StartTime)),r=e.data.children.find((e=>e.id===mt.a.EndTime));return null!=a&&a.data.value&&null!=r&&r.data.value?[{startTime:{value:a.data.value.valueOf(),text:a.data.text,timezoneOffset:t},endTime:{value:r.data.value.valueOf(),text:r.data.text,timezoneOffset:t}}].filter((e=>{var t,a;return(null===(t=e.startTime)||void 0===t?void 0:t.value)&&(null===(a=e.endTime)||void 0===a?void 0:a.value)})):[]})(e);if(null!=t&&t.length){var a=yield Object(jt.c)(t,Ot.b.Out,h.c.apiWidgetGroupTimeCheck);e.data.notConfilct=a}else e.data.notConfilct=!1}}));return function(t){return e.apply(this,arguments)}}(),yt={type:b.c.OUT_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a,type:r,name:i,value:n=[],option:o={}}=e,s=t.isWidgetReadable(a),c=t.isWidgetWritable(a),l=[],d=[];(function e(t,a,r){var i=t.id;a&&i&&l.push(i),r&&i&&d.push(i),t.value&&Array.isArray(t.value)&&t.value.forEach((t=>{e(t,a,r)}))})(e,s,c),t.isRollbackToStart||(t.addWidgetsToReadableSet(l),t.addWidgetsToWritableSet(d));var u={id:a,type:r,data:{name:i||"",visible:!0,printable:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,option:o,children:t.widgetsInputFormat(n)}};return ft(u,t),u},*genChildren(e){yield*e.data.children},outputFormat(e,t){var a={id:Object(M.q)(e.id),type:e.type,value:e.data.visible?t.widgetsOutputFormat(e.data.children):null,displayCondStatus:e.data.visible};return e.data.option&&0===e.data.option.isSetType&&a.value&&a.value[0]&&(a.value[0].value=null,a.value[0].displayCondStatus=!1),a},validate:Object(l.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;var[r,i,n,o,s,c,l]=e.data.children,d=[r.id,i.id,n.id,o.id,s.id,c.id,l.id];d.splice(1,1),e.data.option.isSetType===mt.b.HIDDEN&&d.shift();var u=!1;(yield t.validateWidgets(d,{silent:a}))||(u=!0);var p=Object(f.b)(n.data.value,o.data.value,s.data.value&&s.data.value.value,"dateInterval",n.data.name,o.data.name);if(s.data.validationError=p,!p&&s.data.value&&"0"===s.data.value.value){var m=Object(g.t)("OutGroup_NoZeroDuratioin");a||(p=m),s.data.validationError=m}return!u&&!p})),restoreFormat(e,t,a){e.data.name=t.name||"",e.data.hasHistory=t.edited,a.widgetsRestoreFormat(t.value);var{data:{children:r,option:i}}=e,{isSetType:n,unitMap:o,defaultUnit:s}=i,c=r[0].data.value,l=r[2].data,d=r[3].data,u=r[4].data,p=r[1].data.value;if(l.value&&d.value&&p&&p.value){var m=s;n===mt.b.SHOW&&c&&c.value&&(m=o[c.value]||p.value);var{options:h}=ht(l.value,d.value,m);u.options=h}if(p&&p.value){var b=r[2].data.subtype;b=n===mt.b.SHOW&&c&&c.value?mt.c[o[c.value]||p.value]:mt.c[i.defaultUnit],l.subtype=b,d.subtype=b}var g=vt(e);return u.name=g,e},onRestoredFormat:(e,t,a)=>{_t(e)},restoreWithDraftFormat:Object(l.f)(((e,t,a)=>{a.widgetsRestoreWithDraftFormat(t.data.children);var r=vt(e);return e.data.children[4].data.name=r,e})),onRestoredWithDraftFormat:(e,t,a)=>{_t(e)},reset(e,t,a){for(var{id:r}of yt.genChildren(e))a.resetWidgetData(r);ft(e,a)},onSomeWidgetChange:Object(l.f)(((e,t,a)=>{var r=e.data.children[0];if(D.d.enableGroupTimeCheck&&[mt.a.StartTime,mt.a.EndTime].includes(t)){var i=!0,{isRestored:n}=e.data,{resubmitInstanceId:o,useDraft:s}=a;!o&&!s||n||(i=!1),i&&_t(e),a.handleWidgetChange(e.id,!0)}else if("widgetOutGroupInterval"===t)return a.handleWidgetChange(e.id,!0);if(t===r.id){(e=>{var{unitMap:t}=e.data.option,a=e.data.children[0],{value:r}=a.data;if(r){var{value:i}=r,n=t[i],o=mt.c[n],s=e.data.children[1],c=e.data.children[2],l=e.data.children[3],d=e.data.children[4],u=s.data.prev;n&&u!==n&&(c.data.value=null,l.data.value=null,d.data.value=null,d.data.options=[]);var p=n===mt.d.HALFDAY?mt.d.DAY:n,m=(s.data.options||[]).find((e=>e&&e.value===p))||null;s.data.value=m,s.data.prev=n,c.data.subtype=o,l.data.subtype=o}})(e);var c=e.data.children[4].data,l=vt(e);c.name=l}(function(e,t,a){bt.apply(this,arguments)})(e,t,a),gt(e,t,a)})),printFormat(e,t){var{children:a,option:{isSetType:r}}=e.data,i=a[4].data,n=vt(e);i.name=n;var o=Object(M.u)(a,[mt.a.StartTime,mt.a.EndTime,mt.a.Duration],mt.a.Reason).filter(((e,t)=>(r!==mt.b.HIDDEN||0!==t)&&1!==t));return t.widgetsPrintFormat(o)}},Dt=a(32),Nt=a(73),At=e=>{var{children:t}=e.data,a=t[Object(Dt.d)(t,Nt.a.effectTime)],r=a.data.value;if(r){var i=ce()(ce()().format("YYYY-MM-DD")).unix(),n=ce()(r.format("YYYY-MM-DD")).unix();n&&(a.data.validationError=i>n?Object(g.t)("Apaascorehr_EffectDateNotEarlierThanToday"):null)}},Tt={UserNotExist:Object(g.t)("Apaascorehr_UserNotFound"),ManagerIsSelf:Object(g.t)("Apaascorehr_UnexpectedAdjustedManager"),ManagerIsSubordinates:Object(g.t)("Apaascorehr_UnexpectedAdjustedManager")},It=Object(l.k)((function*(e,t){var a=Object(Dt.e)(e,Nt.a.applicant),r=Object(Dt.e)(e,Nt.a.adjustedManager);if(a&&r){var i=a.data.users[0]||{},n=r.data.users[0];if(n&&i)try{var{data:o}=yield h.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_manager",applicantUserID:i.id,managerUserID:n.id});if(r.data.validationError=o.isOK?null:Tt[o.status],Object(Dt.p)("SystemError"===o.status),!o.isOK)return!0}catch(e){if(Object(we.b)(Se.f.ApprovalError,{location:"in function managerRingCheck at src/components/configurable-form/components/widgets/job-adjust-group/index.ts",message:JSON.stringify(e)}),t)return!0}}})),Ct={type:b.c.JOB_ADJUST_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);for(var{id:a}=e,r=t.widgetsInputFormat(e.value),[i,n]=Object(Nt.c)(e.option.itemConfig),o=0;o<r.length;o++){var s=r[o],c=i.includes(s.id),l=n.includes(s.id);s.data.visible=!c,s.data.disabled=l;var d=s.id;[Nt.a.originDepartment,Nt.a.originManager].includes(d)&&(s.data.originPlaceholder=s.data.placeholder,s.data.placeholder=""),[Nt.a.originJob,Nt.a.originJobLevel,Nt.a.onboardingDate].includes(d)&&(s.data.originPlaceholder=s.data.placeholder)}return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",value:"",children:r}}},*genChildren(e){yield*e.data.children},outputFormat:(e,t)=>({id:Object(M.q)(e.id),type:e.type,value:e.data.visible?t.widgetsOutputFormat(e.data.children):null,displayCondStatus:e.data.visible}),onSomeWidgetChange:Object(l.k)((function*(e,t){if(t===Nt.a.adjustedManager){yield It(e.data.children,!1);var a=Object(Dt.e)(e.data.children,Nt.a.adjustedManager);a&&void 0===a.data.users[0]&&a.data.validationError&&(a.data.validationError=null)}t===Nt.a.effectTime&&At(e)})),restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.printable=t.printable,a.widgetsRestoreFormat(t.value.filter((e=>null!==e))),e.data.visible=t.displayCondStatus,e))),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e))),printFormat(e,t){for(var a=t.widgetsPrintFormat(e.data.children),r=Object(Dt.h)(a),i=e.data.children,n=[],o=0;o<i.length;o++){var s=i[o],c=r[s.data.name],l=Object(Nt.d)(s);s.id===Nt.a.adjustedInformation?n.push({isBlock:!0,label:s.data.value,value:s.data.value}):l?Object(Dt.f)(s,n,l):c&&n.push(c)}return n},validate:Object(l.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var r=e.data.children;if(a)for(var i of r)if(i.data.required){var n="contact"===i.type?i.data.users:i.data.value;if(i.data.validationError||Object(f.c)(n))return!1}if(t.validateAllCount){for(var o of r)if(o.data.required&&!a)if(o.id===Nt.a.applicant){var s=Object(f.c)(o.data.users)?Object(g.t)("Apaascorehr_PleaseChooseApplicant"):null;o.data.validationError=o.data.validationError||s}else{var c="contact"===o.type?o.data.users:o.data.value;o.data.validationError=o.data.validationError||Object(f.c)(c)}if((yield Object(Dt.b)())!==Dt.a.valid)return!1;if((yield Object(Nt.e)(e.data.children))!==Dt.a.valid)return!1;if(!0===(yield It(e.data.children,!0)))return!1;for(var l of(At(e),r))if(l.data.validationError)return!1}return!0}))},xt=a(201),St=Object(l.k)((function*(e,t){var a=xt.c.test(t||"");if(e.data.validationError=a?null:Object(g.t)("Apaascorehr_InvalidPhoneNumber"),a)try{var{data:r}=yield h.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_phone",phone:t});if(e.data.validationError=r.isOK?null:Object(xt.d)(r.status,r.employeeStatus),Object(Dt.p)("SystemError"===r.status),!r.isOK)return!0}catch(e){return Object(we.b)(Se.f.ApprovalError,{location:"in function validateNumber at src/components/configurable-form/components/widgets/on-boarding-group/index.ts",message:JSON.stringify(e)}),!0}})),wt={type:b.c.ON_BOARDING_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a}=e,r=t.widgetsInputFormat(e.value),[i,n]=Object(xt.b)(e.option.itemConfig);for(var o of r){var s=i.includes(o.id),c=n.includes(o.id);o.data.visible=!s,o.data.disabled=c}return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",value:"",children:r}}},*genChildren(e){yield*e.data.children},outputFormat:(e,t)=>({id:Object(M.q)(e.id),type:e.type,value:e.data.visible?t.widgetsOutputFormat(e.data.children):null,displayCondStatus:e.data.visible}),restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.printable=t.printable,a.widgetsRestoreFormat(t.value.filter((e=>null!==e))),e))),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e))),printFormat(e,t){var{children:a}=e.data;return t.widgetsPrintFormat(a)},validate:Object(l.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var r=e.data.children;if(a)for(var i of r)if(i.data.required){var n="contact"===i.type?i.data.users:i.data.value;if(i.data.validationError||Object(f.c)(n))return!1}if(t.validateAllCount){for(var o of r)if(o.data.required&&!a){var s="contact"===o.type?o.data.users:o.data.value;o.data.validationError=o.data.validationError||Object(f.c)(s)}if((yield Object(Dt.b)())!==Dt.a.valid)return!1;var c=Object(Dt.e)(r,xt.a.phoneNumber),l=c.data.value;if(!0===(yield St(c,l)))return!1;for(var d of r)if(d.data.validationError)return!1}return!0}))},Lt=a(95),Et=(e,t)=>{var a=e.data.value,r=t.data.value;if(r&&a){var i=a.isBefore(r,"day")||a.isSame(r,"day");t.data.validationError=i?null:Object(g.t)("Apaascorehr_RegularateDateNotEarlierThanOnboardingDate")}},kt=Object(l.k)((function*(e){var t=e.getWidget(Lt.a.applicant),a=t.data.users[0];if(a)try{var r=yield h.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_conversion_employee_status",applicantUserID:a.id},{useOutData:!0});if(t.data.validationError=r.data.isOK?null:Lt.e[r.data.status],Object(Dt.p)("SystemError"===r.data.status),!r.data.isOK)return!0}catch(e){return Object(we.b)(Se.f.ApprovalError,{location:"in function verifyApplicant at src/components/configurable-form/components/widgets/regularate-group/index.ts",message:JSON.stringify(e)}),!0}})),zt={type:b.c.REGULARATE_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a}=e,r=t.widgetsInputFormat(e.value),[i,n]=Object(Lt.c)(e.option.itemConfig);for(var o of r){var s=i.includes(o.id),c=n.includes(o.id);o.data.visible=!s,o.data.disabled=c;var l=o.id;[Lt.a.position].includes(l)&&(o.data.originPlaceholder=o.data.placeholder,o.data.placeholder=""),[Lt.a.onboardingDate,Lt.a.probationPeriod].includes(l)&&(o.data.originPlaceholder=o.data.placeholder)}return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",value:"",children:r}}},*genChildren(e){yield*e.data.children},outputFormat:(e,t)=>({id:Object(M.q)(e.id),type:e.type,value:e.data.visible?t.widgetsOutputFormat(e.data.children):null,displayCondStatus:e.data.visible}),onSomeWidgetChange:Object(l.k)((function*(e,t,a){if(t===Lt.a.regularateDate){var r=a.getWidget(Lt.a.onboardingDate),i=a.getWidget(Lt.a.regularateDate);Et(r,i)}})),restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.printable=t.printable,a.widgetsRestoreFormat(t.value.filter((e=>null!==e))),e))),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e))),printFormat(e,t){var a=t.widgetsPrintFormat(e.data.children),r=Object(Dt.h)(a),i=e.data.children,n=[];for(var o of i){var s=r[o.data.name],c=Object(Lt.d)(o);c?Object(Dt.f)(o,n,c):s&&n.push(s)}return n},validate:Object(l.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var r=e.data.children;if(a)for(var i of r)if(i.data.required){var n="contact"===i.type?i.data.users:i.data.value;if(i.data.validationError||Object(f.c)(n))return!1}if(t.validateAllCount){for(var o of r)if(o.data.required&&!a)if(o.id===Lt.a.applicant){var s=Object(f.c)(o.data.users)?Object(g.t)("Apaascorehr_PleaseChooseApplicant"):null;o.data.validationError=o.data.validationError||s}else{var c="contact"===o.type?o.data.users:o.data.value;o.data.validationError=o.data.validationError||Object(f.c)(c)}if((yield Object(Dt.b)())!==Dt.a.valid)return!1;var l=t.getWidget(Lt.a.onboardingDate),d=t.getWidget(Lt.a.regularateDate);for(var u of(Et(l,d),yield kt(t),r))if(u.data.validationError)return!1}return!0}))},Rt=a(70),Pt=(e,t)=>{var a=e.data.value,r=t.data.value;if(r&&a){var i=r.isAfter(a,"day")||r.isSame(a,"day");t.data.validationError=i?null:Object(g.t)("Apaascorehr_OffboardingDateNotEarlierThanOnboardingDate")}},Ut=Object(l.k)((function*(e){var t=e.getWidget(Rt.a.applicant),a=t.data.users[0];if(a)try{var r=yield h.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_resignation_employee_status",applicantUserID:a.id},{useOutData:!0});if(t.data.validationError=r.data.isOK?null:Rt.f[r.data.status],Object(Dt.p)("SystemError"===r.data.status),!r.data.isOK)return!0}catch(e){return Object(we.b)(Se.f.ApprovalError,{location:"in function verifyApplicant at src/components/configurable-form/components/widgets/off-boarding-group/index.ts",message:JSON.stringify(e)}),!0}})),Bt={type:b.c.OFF_BOARDING_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);for(var{id:a}=e,r=t.widgetsInputFormat(e.value),[i,n]=Object(Rt.c)(e.option.itemConfig),o=0;o<r.length;o++){var s=r[o],c=i.includes(s.id),l=n.includes(s.id);s.data.visible=!c,s.data.disabled=l;var d=s.id;[Rt.a.position,Rt.a.onboardingDate].includes(d)&&(s.data.originPlaceholder=s.data.placeholder,s.data.placeholder="")}return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",value:"",children:r}}},*genChildren(e){yield*e.data.children},outputFormat:(e,t)=>({id:Object(M.q)(e.id),type:e.type,value:e.data.visible?t.widgetsOutputFormat(e.data.children.map((e=>e.id===Rt.a.offboardingType?Object(o.a)(Object(o.a)({},e),{},{data:Object(o.a)(Object(o.a)({},e.data),{},{visible:!0})}):e))):null,displayCondStatus:e.data.visible}),onSomeWidgetChange:Object(l.k)((function*(e,t,a){if(t===Rt.a.offboardingDate){var r=a.getWidget(Rt.a.onboardingDate),i=a.getWidget(Rt.a.offboardingDate);Pt(r,i)}if(t===Rt.a.offboardingType){var n=a.getWidget(Rt.a.offboardingType),o=a.getWidget(Rt.a.offboardingReason),s=o.data.isVer2Api?Rt.e.voluntaryVer2Id:Rt.e.voluntaryId,c=o.data.isVer2Api?Rt.e.involuntaryVer2Id:Rt.e.involuntaryId;if(n.data.value){var l="".concat(n.data.value.value);l===s?(Object(Dt.o)(o,void 0),Object(Dt.n)(o,o.data.originList.filter(o.data.isVer2Api?e=>e.type===s:e=>Rt.e.voluntaryList.includes(e.id)))):l===c?(Object(Dt.o)(o,void 0),Object(Dt.n)(o,o.data.originList.filter(o.data.isVer2Api?e=>e.type===c:e=>Rt.e.involuntaryList.includes(e.id)))):l===Rt.e.otherVer2Id&&o.data.isVer2Api&&(Object(Dt.o)(o,void 0),Object(Dt.n)(o,o.data.originList.filter((e=>e.type===Rt.e.otherVer2Id))))}else Object(Dt.o)(o,void 0),Object(Dt.n)(o,[])}})),restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.printable=t.printable,a.widgetsRestoreFormat(t.value.filter((e=>null!==e))),e))),restoreWithDraftFormat:Object(l.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e))),printFormat(e,t){for(var a=t.widgetsPrintFormat(e.data.children),r=Object(Dt.h)(a),i=e.data.children,n=[],o=0;o<i.length;o++){var s=i[o],c=r[s.data.name],l=Object(Rt.d)(s);l?Object(Dt.f)(s,n,l):c&&n.push(c)}return n},validate:Object(l.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var r=e.data.children;if(a)for(var i of r)if(i.data.required){var n="contact"===i.type?i.data.users:i.data.value;if(i.data.validationError||Object(f.c)(n))return!1}if(t.validateAllCount){for(var o of r)if(o.data.required&&!a)if(o.id===Rt.a.applicant){var s=Object(f.c)(o.data.users)?Object(g.t)("Apaascorehr_PleaseChooseApplicant"):null;o.data.validationError=o.data.validationError||s}else{var c="contact"===o.type?o.data.users:o.data.value;o.data.validationError=o.data.validationError||Object(f.c)(c)}if((yield Object(Dt.b)())!==Dt.a.valid)return!1;var l=t.getWidget(Rt.a.onboardingDate),d=t.getWidget(Rt.a.offboardingDate);if(Pt(l,d),!0===(yield Ut(t)))return!1;for(var u of r)if(u.data.validationError)return!1}return!0}))},Ft=a(20),Yt=Object(Ft.c)("shared:src/logic/widgets/sign-group/utils.ts"),Qt={"widgetSignGroupSubjectType-1":1,"widgetSignGroupSubjectType-2":2,"widgetSignGroupAutoSign-false":3,"widgetSignGroupAutoSign-true":4,widgetSignGroupSignatureCode:5,widgetSignGroupPersonalName:6,widgetSignGroupPhone:7,widgetSignGroupCompanyName:8},Gt=["13678","145","2678","678","67"],Wt=(e,t)=>{if(0===e.length)return!1;var a=!0;return e.forEach((e=>{if(a){var r=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e.filter((e=>e.displayCondStatus&&e.value)).map((e=>["widgetSignGroupSubjectType","widgetSignGroupAutoSign"].includes(e.id)?Qt["".concat(e.id,"-").concat(e.value.value)]:Qt[e.id])):e.filter((e=>e.data.visible&&e.data.value)).map((e=>["widgetSignGroupSubjectType","widgetSignGroupAutoSign"].includes(e._id)?Qt["".concat(e._id,"-").concat(e.data.value.value)]:Qt[e._id]))}(e.value,t).sort(((e,t)=>e-t)).join("");(a=Gt.includes(r))||Yt("signGroupSignatoryError",{signatoryValue:r})}})),a};function Vt(e){return e.join("_")}function Ht(e,t){function a(e){return Object(o.a)(Object(o.a)({},e),{},{expressions:e.expressions.map((e=>Object(o.a)(Object(o.a)({},e),{},{sourceWidget:Object(o.a)(Object(o.a)({},e.sourceWidget),{},{id:Vt([e.sourceWidget.id,t])})}))),conditions:e.conditions.map((e=>a(e)))})}var r=JSON.parse(e).map((e=>Object(o.a)(Object(o.a)({},e),{},{targetWidget:Object(o.a)(Object(o.a)({},e.targetWidget),{},{id:Vt([e.targetWidget.id,t])}),showCondition:a(e.showCondition)})));return JSON.stringify(r)}var Zt={type:b.c.SIGN_GROUP,inputFormat(e,t){Object(Ae.a)(e,t);var{id:a,type:r,name:i,value:n,option:s}=e,{widgetSignGroupSignatoryList:c,widgetSignGroupPresetWidgetList:l}=n,d=t.isWidgetReadable(a),u=t.isWidgetWritable(a),p=[],m=[];function h(e,t,a){var r=e.id;t&&r&&p.push(r),a&&r&&m.push(r),e.value&&Array.isArray(e.value)&&e.value.forEach((e=>{h(e,t,a)}))}return c.forEach((e=>{e.value.map((t=>Object(o.a)(Object(o.a)({},t),{},{id:Vt([t.id,e.id])}))).forEach((e=>{h(e,d,u)}))})),l.forEach((e=>{h(e,d,u)})),t.isRollbackToStart||(t.addWidgetsToReadableSet(p),t.addWidgetsToWritableSet(m)),{id:a,type:r,data:{name:i||"",visible:!0,option:s,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,value:{widgetSignGroupSignatoryList:c.map((e=>{var a=e.value.map((t=>Object(o.a)(Object(o.a)({},t),{},{id:Vt([t.id,e.id]),_id:t.id})));return Object(o.a)(Object(o.a)({},e),{},{displayCondition:e.displayCondition&&Ht(e.displayCondition,e.id),value:a.map((e=>Object(o.a)(Object(o.a)(Object(o.a)({},e),t.widgetInputFormat(e)),{},{_id:e._id})))})})),widgetSignGroupPresetWidgetList:t.widgetsInputFormat(l)}}}},*genChildren(e){var{widgetSignGroupSignatoryList:t,widgetSignGroupPresetWidgetList:a}=e.data.value,r=[];t.forEach((e=>{e.value.forEach((e=>{r.push(e)}))})),a.forEach((e=>{r.push(e)})),yield*r},outputFormat(e,t){var{widgetSignGroupSignatoryList:a,widgetSignGroupPresetWidgetList:r}=e.data.value;return{id:e.id,type:e.type,option:e.data.option,value:{widgetSignGroupSignatoryList:a.map((e=>({id:e.id,type:e.type,displayCondStatus:e.displayCondStatus,value:e.value.map((e=>Object(o.a)(Object(o.a)({},t.widgetOutputFormat(e)),{},{displayCondStatus:Boolean(e.data.value),type:e.type,id:e._id})))}))),widgetSignGroupPresetWidgetList:t.widgetsOutputFormat(r)},displayCondStatus:e.data.visible}},restoreFormat:Object(l.f)(((e,t)=>{if(t){var{widgetSignGroupSignatoryList:a,widgetSignGroupPresetWidgetList:r}=t.value;e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value.widgetSignGroupSignatoryList.forEach(((e,t)=>{var r=a[t];null==e||e.value.forEach(((e,t)=>{var a=r&&r.value[t];e.data.value=a&&a.value||null}))})),e.data.value.widgetSignGroupPresetWidgetList.forEach((e=>{e.data.value=Kt(r,e.id)}))}return e})),restoreWithDraftFormat:Object(l.f)(((e,t)=>{var{widgetSignGroupSignatoryList:a,widgetSignGroupPresetWidgetList:r}=t.data.value;return e.data.value.widgetSignGroupSignatoryList.forEach(((e,t)=>{var r=a[t];null==e||e.value.forEach(((e,t)=>{var a=r&&r.value[t];e.data.value=a&&a.data.value||null}))})),e.data.value.widgetSignGroupPresetWidgetList.forEach((e=>{e.data.value=Kt(r,e.id)})),e})),printFormat(e){var{value:t}=e.data,a=[];return["widgetSignGroupPresetWidgetList","widgetSignGroupSignatoryList"].forEach((e=>{qt(t[e],a)})),a},validate:Object(l.f)(function(){var e=Object(i.a)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var{widgetSignGroupSignatoryList:r,widgetSignGroupPresetWidgetList:i}=e.data.value,n=[];return r.forEach((e=>{e.value.forEach((e=>{n.push(e.id)}))})),i.forEach((e=>{n.push(e.id)})),!!(yield t.validateWidgets(n,{silent:a}))&&(((e,t)=>{if(0===e.length)return!0;var a=!0,r=new Map;return e.forEach((e=>{if(a){var i=t?e.data.name:e.name,n=t?e.data.value:e.value;r.has(i)?a=r.get(i)===n:r.set(i,n)}})),B.a.info("checkPresetWidgetValidate",a,r),a})(i,!0)?!!Wt(r):(a||Object(l.s)((()=>{e.data.validationError=Object(g.t)("SignGroup_SameNameValueError","控件名称相同,不允许存在值不相同,请重新填写")})),!1))}));return function(t,a,r){return e.apply(this,arguments)}}())},qt=(e,t)=>{Array.isArray(e)&&e.forEach((e=>{if(Array.isArray(e.value)&&!e.data)t.push({label:e.name,isBlock:!0}),qt(e.value,t);else if(e.data){var a,r,i=e.data?e.data.value:e.value;((null==e||null===(a=e.data)||void 0===a?void 0:a.name)||(null==e?void 0:e.name))&&i&&t.push({label:(null==e||null===(r=e.data)||void 0===r?void 0:r.name)||(null==e?void 0:e.name),value:Object(ot.a)(i)?i.text:i})}}))},Kt=(e,t)=>{var a=e.find((e=>e.id===t));return(null==a?void 0:a.value)||null},Jt=a(92),Xt={type:b.c.RECEIVING_ACCOUNT,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,useExternalData:e.useExternalData,externalDataLinkage:e.externalDataLinkage,linkageConfigs:e.linkageConfigs,isReset:!1,required:Boolean(e.required),placeholder:e.placeholder||"",options:e.value,value:null,disabled:Boolean(e.option&&e.option.disabled)}}},outputFormat:e=>!e.data.required&&Object(f.c)(e.data.value)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value||"",displayCondStatus:e.data.visible},printFormat(e){var{name:t,value:a}=e.data;return{label:t,value:a?Object(Jt.k)(a):""}},restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value||"",e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=t.data.value?t.data.value:"",e))),validate:Object(l.f)(((e,t,a)=>{if(e.data.isReset&&e.data.validationError)return!1;if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required&&(e.data.validationError=null,!Object(Jt.l)(e.data.value))){var r=Object(g.t)("PC.ValidateNoEmpty");return a||(e.data.validationError=r),!r}return!0})),onOptionDelete(e,t,a){var{value:r=[]}=e.data;Array.isArray(r)&&r.find((e=>"widgetAccountSelect"===e.id&&e.value&&e.value.value===a))&&t.resetWidgetData(e.id)},reset(e,t,a){e.data.value=""}},$t=a(394),ea=a(28),ta=e=>({countryCode:e||(ea.u?"+1":"+86"),nationalNumber:""}),aa={type:b.c.TELEPHONE,inputFormat(e,t){var a,r,i,{id:n}=e,o=null!==(a=e.widgetHistoryRecords)&&void 0!==a?a:[],s=o.length?o[0].countryCode:"";return{id:n,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(n),writable:t.isWidgetWritable(n),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,useExternalData:e.useExternalData,externalDataLinkage:e.externalDataLinkage,linkageConfigs:e.linkageConfigs,isReset:!1,required:Boolean(e.required),placeholder:e.placeholder||"",options:e.option,value:ta(s),disabled:Boolean(e.option&&e.option.disabled),historyNumbers:o,availableType:null!==(r=null===(i=e.option)||void 0===i?void 0:i.availableType)&&void 0!==r?r:""}}},outputFormat(e){var{nationalNumber:t}=e.data.value;return!e.data.required&&Object(f.j)(t,e.data.availableType)?null:{id:Object(M.q)(e.id),type:e.type,value:e.data.value,displayCondStatus:e.data.visible}},printFormat(e){var{name:t,value:a}=e.data;return{label:t,value:"".concat(a.countryCode," ").concat(a.nationalNumber)}},restoreFormat:Object(l.f)(((e,t,a)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value?t.value:{},e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=t.data.value?t.data.value:ta(),e))),restoreWithCopyFormat:Object(l.f)(((e,t)=>(e.data.visible=t.data.visible,e.data.value=t.data.value?Object(o.a)({},t.data.value):ta(),e))),validate:Object(l.f)(((e,t,a)=>{if(e.data.isReset&&e.data.validationError)return!1;if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var{countryCode:r,nationalNumber:i}=e.data.value;if(i){var n=Object($t.c)({countryCode:r,phoneNumber:i,type:e.data.availableType});if(n)return e.data.validationError=n,e.data.validationToastError=Object(g.t)("Telephone.Invalid",{type:e.data.name}),!1}if(e.data.required){e.data.validationError=null;var{nationalNumber:o}=e.data.value,s=Object(f.j)(o,e.data.availableType);return a||(e.data.validationError=s,s&&(e.data.validationToastError=Object(g.t)("Telephone.NoEmpty",{type:e.data.name}))),!s}return!0}))},ra={type:b.c.INSTEAD_SUBMIT,inputFormat(e,t){var{id:a,value:r}=e,{currentUser:i}=t.options.userStore,n={id:i.userId,name:i.name,avatarUrl:i.avatarUrl};return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:!0,writable:!0,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,placeholder:e.placeholder,defaultValue:n,validationWarning:null,required:!0,disabled:!1,value:r&&Array.isArray(r)?r:[n],historyType:b.a.NONE,enableDefaultValue:!1,widgetDefaultValue:""}}},outputFormat(e){var{type:t,data:{visible:a,value:r=[]}}=e;return{id:Object(M.q)(e.id),type:t,value:r,displayCondStatus:a}},restoreFormat:Object(l.k)((function*(e,t){var{value:a}=t;return a&&Array.isArray(a)&&a.length>0&&(e.data.value=t.value),e})),restoreWithDraftFormat:Object(l.k)((function*(e,t){return e.data.value=Object(p.a)(t.data.value)||[],e})),printFormat(e){var{name:t,value:a}=e.data;return{label:t,value:a.map((e=>e.name)).join("; ")}},validate:Object(l.k)((function*(e){var{data:{value:t}}=e;return t&&Array.isArray(t)&&t.length>0})),reset(e,t){e.data=t,e.data.value=[e.data.defaultValue]}},ia={type:b.c.SERIAL_NUMBER,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),value:"",displayCondStatus:e.displayCondStatus,options:e.option}}},outputFormat:e=>({id:Object(M.q)(e.id),type:e.type,value:e.data.value||null,displayCondStatus:e.data.visible}),printFormat(e){var{name:t,value:a,visible:r}=e.data;return r?{label:t,value:a}:{label:""}},restoreFormat:Object(l.f)(((e,t)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.value=t.value||"",e.data.displayCondStatus=t.displayCondStatus,e.data.printable=t.printable,e))),restoreWithDraftFormat:Object(l.f)(((e,t)=>(e.data.value=t.data.value||"",e.data.displayCondStatus=t.data.displayCondStatus,e))),validate:()=>!0},na=new Map(Object.values(r).map((e=>[e.type,e])));function oa(e,t){var a=e;e!==b.c.WORK_GROUP||!t||0!==t.isSetRule&&1!==t.isSetRule||(a=b.c.WORK_GROUP_V2);var r=na.get(a);if(!r)throw new Error("getWidgetConfig invalid type: ".concat(e));return r}var sa=a(24),ca=a(443),la=a(36),da=a(50),ua=a(47),pa=a(172),ma=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=0,a=0;a<e.length;a++)t+=/[^\x00-\xff]$/.test(e[a])?2:1;return t},ha=a(648),ba=e=>{var{detailOrApprovalDefine:t,form:a,from:r,source:i,isPreviewScene:n=!1,isRollbackToStart:o}=e;if(a){var s=a.fields||[],c=s.map((e=>e.type));if(Object(we.b)(Se.f.APProvalWidgetTypeCollect,{widget_types:c.join(","),from:r,source:i,is_preview_scene:Number(n)}),c.includes(b.c.CLOUD_DOC)){var l=null==t?void 0:t.instanceStatus;l>=0&&(l=ha.a[l]),Object(we.b)(Se.f.CloudDocsWidgetUse,{approval_status:l||void 0,user_type:"create"===i||o?"initiator":"approver"})}"create"===r&&"create"===i&&s.forEach((e=>{var{type:t}=e;if(t===b.c.AMOUNT_INPUT){var{option:{currencyRange:a}}=e;Object(we.b)("data_detail_form_contains_amount",{type:"amount"}),Object(we.b)("data_detail_form_contains_currency",{choose:Number((null==a?void 0:a.length)>1)})}else Object(we.b)("data_detail_form_contains_amount",{type:"other"}),t===b.c.DETAIL&&e.value.forEach((t=>{var{type:a}=t;if(a===b.c.AMOUNT_INPUT){var{option:{currencyRange:r}}=e;Object(we.b)("data_detail_form_contains_amount",{type:"amount"}),Object(we.b)("data_detail_form_contains_currency",{choose:Number((null==r?void 0:r.length)>1)})}else Object(we.b)("data_detail_form_contains_amount",{type:"other"})}))}))}},ga=a(321),va=a(44),ja=a(679),Oa=a(330);class fa extends class{constructor(e){Object(s.a)(this,"conditionKey",void 0),Object(s.a)(this,"configurableFormStore",void 0),Object(s.a)(this,"widgetConditionMap",new Map),Object(s.a)(this,"widgetAutorunDisposerMap",new Map),Object(s.a)(this,"idSetMapUnderDetailWidget",new Map),Object(s.a)(this,"allIdSetMapUnderDetailWidget",new Map),Object.defineProperty(this,"configurableFormStore",{configurable:!1,enumerable:!1,writable:!1,value:e})}initialize(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[]",t=arguments.length>1?arguments[1]:void 0;for(var a of(this.widgetConditionMap.clear(),this.widgetAutorunDisposerMap.values()))a();this.widgetAutorunDisposerMap.clear(),this.idSetMapUnderDetailWidget.clear();var r=JSON.parse(e);if(Array.isArray(t)){var i=new Map(t.map(((e,t)=>[e.id,t])));r.sort(((e,t)=>{if(e.targetWidget.child||t.targetWidget.child)return 0;var a=i.get(e.targetWidget.id),r=i.get(t.targetWidget.id);return void 0!==a&&void 0!==r?a-r:0}))}for(var n of r){var{id:o}=n.targetWidget,s=!1;if(n.targetWidget.child){s=!0;var c=this.idSetMapUnderDetailWidget.get(o);c||this.idSetMapUnderDetailWidget.set(o,c=new Set),c.add(o=n.targetWidget.child.id)}this.widgetConditionMap.set(o,this.initializeServerCondition(n[this.conditionKey])),s||this.autorunCondition(o)}t&&Array.isArray(t)&&t.map((e=>{e.type===b.c.DETAIL&&this.allIdSetMapUnderDetailWidget.set(e.id,new Set(e.value.map((e=>e.id))))}))}initializeServerCondition(e){return{type:e.conditional,data:[...e.conditions.map((e=>this.initializeServerCondition(e))),...e.expressions.map((e=>this.initializeServerExpression(e)))]}}initializeServerExpression(e){return{type:y.e.COMPARE,data:{id:e.sourceWidget.child?e.sourceWidget.child.id:e.sourceWidget.id,type:e.compareType,data:e.standardValue}}}isInSameDetail(e,t){for(var a of(e=e.split("|")[0],t=t.split("|")[0],this.allIdSetMapUnderDetailWidget.keys())){var r=this.allIdSetMapUnderDetailWidget.get(a);if(r&&r.has(e)&&r.has(t))return!0}return!1}isInTableDetail(e){for(var t of(e=e.split("|")[0],this.allIdSetMapUnderDetailWidget.keys())){var a,r,i,n=this.allIdSetMapUnderDetailWidget.get(t),o=void 0;try{o=this.configurableFormStore.getWidget(t)}catch(e){B.a.warn("get widget fail",e)}if(n&&n.has(e)&&o&&null!==(a=o)&&void 0!==a&&a.data.visible&&null!==(r=o)&&void 0!==r&&r.data.writable&&"FORM"===(null===(i=o)||void 0===i?void 0:i.data.inputType))return!0}return!1}autorunDetailGroup(e,t){var a=this.idSetMapUnderDetailWidget.get(e);if(a)for(var r of a)this.autorunCondition(Object(M.k)([r,t]))}stopWidgetAutorun(e){var t=this.widgetAutorunDisposerMap.get(e);t&&(t(),this.widgetAutorunDisposerMap.delete(e))}stopAllWidgetsAutorun(){for(var e of this.widgetAutorunDisposerMap.keys())this.stopWidgetAutorun(e)}checkWidgetCondition(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=Object(M.q)(e),r=Object(M.p)(e),i=this.widgetConditionMap.get(a);return!i||this.checkCondition(i,(e=>r?Object(M.k)([e,r]):e),t)}checkCondition(e,t,a){switch(e.type){case y.e.AND:return e.data.every((e=>this.checkCondition(e,t,a)));case y.e.OR:return e.data.some((e=>this.checkCondition(e,t,a)));case y.e.COMPARE:var r,i=e.data,n=t(i.id);try{r=this.configurableFormStore.getWidget(n)}catch(e){r=this.configurableFormStore.getWidget(i.id)}if(!r)throw new Error("conditionManager: widget is undefined");if(a)return r.data.readable;var{checkConditionCompare:o}=oa(r.type);return o?o(r,i,this.configurableFormStore):(B.a.error("checkConditionCompare invalid",r,e),!1)}}}{constructor(){super(...arguments),Object(s.a)(this,"conditionKey","showCondition")}autorunCondition(e){var t=this.configurableFormStore.getWidget(e);if(t&&(null!=t&&t.data.writable||this.isInTableDetail(e)||t.type===Oa.f)&&(t.type!==Oa.d||this.checkWidgetCondition(e,!0))){var a=this.widgetAutorunDisposerMap.get(e);a&&a(),this.widgetAutorunDisposerMap.set(e,Object(l.g)((()=>{var a=this.checkWidgetCondition(e);t.data.visible!==a&&Object(l.s)((()=>{var e;null!=t&&t.data.writable?(a?this.configurableFormStore.restoreWidgetWithDefaultData(t.id):this.configurableFormStore.resetWidgetData(t.id),t.type===Oa.c&&(null===(e=t.data)||void 0===e||e.children.forEach((e=>e.data.visible=a))),t.data.visible=a,this.configurableFormStore.handleWidgetChange(t.id,!0)):t.data.visible=a}))})))}}}var Ma,_a,ya,Da,Na,Aa,Ta,Ia,Ca=a(37),xa=a(445),Sa=a(303),wa=a(328),La=a(155),Ea=a(241),ka=a(72),za=a(104),Ra=["userAvatarUrl","userId","userName"],Pa=Object(Ft.c)("pc:src/stores/configurable-form-store/preview-list-manager.ts"),Ua=e=>e.map((e=>{var{name:t,userId:a}=e;return{name:t,userId:a}})),Ba=(Ma=class{constructor(e){Object(s.a)(this,"configurableFormStore",void 0),Object(s.a)(this,"nodeIdSet",new Set),Object(s.a)(this,"approvalDefinitionId",""),Object(s.a)(this,"conditionWidgetIdList",[]),Object(n.a)(this,"lockedLoading",_a,this),Object(n.a)(this,"isErrorFromApi",ya,this),Object(s.a)(this,"cacheUserIds",[]),Object(n.a)(this,"flowListData",Da,this),Object(s.a)(this,"fetchPreviewList",Object(l.k)(this._fetchPreviewList)),Object(s.a)(this,"hasExternalUser",(()=>{var e,{enableChooseCrossTenant:t,isCurrentTenant:a}=sa.b.globalStore;if(t)return null!==(e=this.flowListData)&&void 0!==e&&e.length?this.flowListData.some((e=>{var{approverList:t,endCcs:r}=e;return Boolean(null==t?void 0:t.some((e=>{var{tenantId:t}=e;return!a(t)})))||Boolean(null==r?void 0:r.some((e=>{var{tenantId:t}=e;return!a(t)})))})):(Pa("commonOnError",{message:"流程为空,获取是否有外部用户信息失败"}),B.a.error("hasExternalUser => 流程为空,获取是否有外部用户信息失败"),!1)})),Object(s.a)(this,"getApproverIdsAndCcIds",(e=>{var t,a=[],r=[],{enableChooseCrossTenant:i}=sa.b.globalStore;return null!==(t=this.flowListData)&&void 0!==t&&t.length&&i&&e&&this.flowListData.forEach((e=>{var{approverList:t,endCcs:i}=e;a.push(...(null==t?void 0:t.map((e=>{var{userId:t}=e;return t})))||[]),r.push(...(null==i?void 0:i.map((e=>{var{userId:t}=e;return t})))||[])})),{approverIds:a,ccIds:r}})),Object(s.a)(this,"init",Object(l.k)(this._init)),Object(s.a)(this,"addCacheApproverListAndEndCcs",((e,t)=>{var a,{nodeId:r,hasCcTypeFree:i,isApproverTypeFree:n,userSelectCache:o={approverList:[],endCcs:[]},originNodeType:s,blockedCcEnable:c=!1,endCcs:l=[]}=e;if(Object(wa.d)(s,c)){var{approverList:d=[]}=o;o.approverList=[],o.endCcs=d}var u={id:r,name:"",type:y.b.FLOW_NODE_APPROVER,users:[],ccers:[]};n&&null!=o&&o.approverList&&(u.users=o.approverList.map(this.convertApproverToUser)),i&&null!=o&&o.endCcs&&(u.ccers=Object(ka.b)(o.endCcs,l).map(this.convertApproverToUser)),(u.users.length||null!==(a=u.ccers)&&void 0!==a&&a.length)&&(this.configurableFormStore.approverManager.addConfig(u),t.push({nodeId:r,approverList:Ua(u.users),ccList:Ua(u.ccers||[])}))})),Object(s.a)(this,"convertApproverToUser",(e=>{var{userAvatarUrl:t,userId:a,userName:r}=e,i=Object(Ca.a)(e,Ra);return this.cacheUserIds.push(a),Object(o.a)({avatarUrl:t,name:r,userId:String(a),id:String(a)},i)})),Object(s.a)(this,"checkNeedRefresh",Object(l.k)(this._checkNeedRefresh)),Object(s.a)(this,"debounceRefresh",null),Object(n.a)(this,"initPreview",Na,this),Object(s.a)(this,"doRefresh",Object(l.k)(this._doRefresh)),Object.defineProperty(this,"configurableFormStore",{configurable:!1,enumerable:!1,writable:!1,value:e})}*_fetchPreviewList(){var e,t,a,r,{configurableFormStore:i}=this;null!=i&&null!==(e=i.instanceInfo)&&void 0!==e&&e.approvalDefinitionId&&(this.approvalDefinitionId="".concat(i.instanceInfo.approvalDefinitionId));var n=null==i||null===(t=i.instanceInfo)||void 0===t?void 0:t.taskId,o=null==i||null===(a=i.instanceInfo)||void 0===a?void 0:a.instanceId,s=Boolean(null==i||null===(r=i.params)||void 0===r?void 0:r.modify),{approvalDefinitionId:c}=this;if((!o||n)&&c){var l=i.getOutputParams(),d=s?null==i?void 0:i.versionId:void 0,u={approvalDefinitionId:c,taskId:n,instanceId:o,versionId:d};try{var p,{data:m}=yield h.c.instancecreatePreview({approvalDefinitionId:c,approverIds:[],form:null==l?void 0:l.form,taskId:n,instanceId:o,departmentId:i.userDepartmentManager.departmentId,versionId:d,imitateUserId:null==l?void 0:l.imitateUserId});return this.resetError(),null!=m&&null!==(p=m.previewNodes)&&void 0!==p&&p.length||Pa("commonOnError",{message:"fetch preview success, but previewNodes is empty !!",hasData:Boolean(m),hasPreviewNodes:Boolean(null==m?void 0:m.previewNodes),params:u}),m}catch(e){var b=Object(va.a)(e);Object(we.b)("pc_mp_createpreview",{error_message:b,params:u}),Pa("submitPreviewFail",{message:"fetch createPreview fail",errorMsg:b,params:u}),this.setError()}}}setError(){this.isErrorFromApi=!0,this.lockedLoading=!1}resetError(){this.isErrorFromApi=!1,this.lockedLoading=!1}*_init(e){var{aid:t,conditionWidgetIdList:a}=e,{configurableFormStore:r}=this;if(this.approvalDefinitionId=t,this.setConditionWidgetIdList(a),yield r.validateAll(!0))try{this.lockedLoading=!0,this.isErrorFromApi=!1;var i=yield this.fetchPreviewList();if(this.lockedLoading=!1,!i)return;var{previewNodes:n}=i;this.setFlowListData(n)}catch(e){this.isErrorFromApi=!0,this.lockedLoading=!1,B.a.error("preview list manager, _init fail",e),Pa("commonOnError",{message:"_init fail",errorMsg:Object(va.a)(e)})}}setFlowListData(e){this.flowListData=e;var t=new Set,{enableUserSelectCache:a}=sa.b.globalStore,r=[];if(e&&e.length>0){for(var i of e)t.add(i.nodeId),a&&this.addCacheApproverListAndEndCcs(i,r);this.nodeIdSet=t}var n,o,{cacheUserIds:s,configurableFormStore:c,approvalDefinitionId:l}=this,d=s.filter((e=>!Ea.a.get(String(e))));d.length&&Object(La.a)({api:h.c,params:{userIds:d},cacheOpenId:!0}),r.length&&(Pa("restoreApproverAndCcCache",{approvalDefinitionId:l,approvalDefinitionName:null===(n=c.definitionInfo)||void 0===n?void 0:n.approvalName,nodeCacheUsers:r}),Object(we.b)("restore_approver_and_cc_cache",{approval_id:l,approval_name:null===(o=c.definitionInfo)||void 0===o?void 0:o.approvalName,node_cache_users:JSON.stringify(r)}))}idNodeInNodeSet(e){return this.nodeIdSet.has(e)}setConditionWidgetIdList(e){var{configurableFormStore:t}=this;if(!e)return null;this.conditionWidgetIdList=e.map((e=>e.replace("_summary",""))).filter(t.isWidgetWritable.bind(t))}get validateFreeApproval(){var{configurableFormStore:e,flowListData:t}=this;if(e.processType===y.l.IS_FREE)return!0;if(!t||!t.filter)return!0;if(!t.length)return!1;var a=t.filter((e=>e.isApproverTypeFree)).every((t=>{var a=e.approverManager.configMap[t.nodeId];return!(!a||!a.users||0===a.users.length)}));return a}validateFlowError(){var{configurableFormStore:e}=this;return!(e&&e.nodeList.length>0&&this.isErrorFromApi&&(this.init({aid:this.approvalDefinitionId,conditionWidgetIdList:this.conditionWidgetIdList}),1))}get getFirstEmptyFreeNodeName(){var e,{configurableFormStore:t,flowListData:a}=this,r=a.filter((e=>e.isApproverTypeFree)).filter((e=>{var a=t.approverManager.configMap[e.nodeId];return!a||!a||!a.users||0===a.users.length}));return null===(e=r[0])||void 0===e?void 0:e.nodeName}isConditionWidget(e){var{conditionWidgetIdList:t}=this;return Boolean(t.length)&&t.some((t=>e.includes(t)))}isMandatoryRefresh(e){return e.some((e=>e.includes(za.b.detail)))}*_checkNeedRefresh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{configurableFormStore:t,flowListData:a}=this;return t.processType!==y.l.IS_FREE&&t.category!==y.f.RAPID&&(yield Object(Le.s)(0),(yield t.validateAll(!0))?!!this.isMandatoryRefresh(e)||e.some((e=>{var r;if(e===Sa.a)return!0;e.includes("|")&&(e=e.split("|")[0]);var i=this.isConditionWidget(e),n=Object(xa.a)("pc-pages/create-form/index"),o=e===A.a;return!(!(Object(f.c)(a)||i||o)||!n&&!t.writableWidgetIdSet||!n&&0===(null===(r=t.writableWidgetIdSet)||void 0===r?void 0:r.size))})):(this.setFlowListData([]),!1))}refreshBatch(){var e=arguments,t=this;return Object(i.a)((function*(){var a=e.length>0&&void 0!==e[0]?e[0]:[];0!==a.length&&((yield t.checkNeedRefresh(a))&&t.doRefresh())}))()}setPreviewStatus(e){this.initPreview=e,this.debounceRefresh=Object(Ne.a)((()=>{this.initPreview=!0,this.doRefresh()}),500)}refresh(e){var t=this;return Object(i.a)((function*(){(yield t.checkNeedRefresh([e]))&&(t.initPreview?t.doRefresh():t.debounceRefresh())}))()}*_doRefresh(){try{this.lockedLoading=!0,this.isErrorFromApi=!1;var e=yield this.fetchPreviewList();if(this.lockedLoading=!1,!e)return;var{previewNodes:t}=e;this.setFlowListData(t),Pa("submitPreviewSuccess")}catch(e){this.isErrorFromApi=!0,this.lockedLoading=!1,B.a.error(e),Pa("submitPreviewFail",{errorMsg:Object(va.a)(e)}),Object(we.b)(Se.f.ApprovalError,{location:"in function refresh at src/stores/configurable-form-store/preview-list-manager.ts",message:JSON.stringify(e)})}}clear(){}},_a=Object(c.a)(Ma.prototype,"lockedLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ya=Object(c.a)(Ma.prototype,"isErrorFromApi",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Da=Object(c.a)(Ma.prototype,"flowListData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(Ma.prototype,"setError",[l.f],Object.getOwnPropertyDescriptor(Ma.prototype,"setError"),Ma.prototype),Object(c.a)(Ma.prototype,"resetError",[l.f],Object.getOwnPropertyDescriptor(Ma.prototype,"resetError"),Ma.prototype),Object(c.a)(Ma.prototype,"setFlowListData",[l.f],Object.getOwnPropertyDescriptor(Ma.prototype,"setFlowListData"),Ma.prototype),Object(c.a)(Ma.prototype,"setConditionWidgetIdList",[l.f],Object.getOwnPropertyDescriptor(Ma.prototype,"setConditionWidgetIdList"),Ma.prototype),Na=Object(c.a)(Ma.prototype,"initPreview",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Object(c.a)(Ma.prototype,"setPreviewStatus",[l.f],Object.getOwnPropertyDescriptor(Ma.prototype,"setPreviewStatus"),Ma.prototype),Object(c.a)(Ma.prototype,"clear",[l.f],Object.getOwnPropertyDescriptor(Ma.prototype,"clear"),Ma.prototype),Ma),Fa=["avatarUrl","name","userId"],Ya=["avatarUrl","name","userId"],Qa="FREE_APPROVER_ID",Ga="FREE_CCER_ID",Wa=(Aa=class{constructor(){Object(n.a)(this,"configs",Ta,this),Object(n.a)(this,"configMap",Ia,this)}get freeApproverConfig(){return this.configMap[Qa]}get freeCcerConfig(){return this.configMap[Ga]}get flowNodeConfigs(){return this.configs.filter((e=>e.type===y.b.FLOW_NODE_APPROVER))}clearConfigs(){this.configs=[],this.configMap={}}addConfig(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r=t.map((e=>Object(o.a)({users:[]},e)));for(var i of r)this.configMap[i.id]=i;this.configs.push(...r)}getFreeApproverIds(){var{freeApproverConfig:e}=this;return null==e?void 0:e.users.map((e=>e.userId))}getFreeCcerIds(){var{freeCcerConfig:e}=this;return null==e?void 0:e.users.map((e=>e.userId))}generateFakeFreeWidgets(e,t){return[{id:e||Qa,type:b.c.APPROVALER,name:Object(g.t)("approvalForm.Approvers"),required:!0},{id:t||Ga,type:b.c.CCER,name:Object(g.t)("approvalForm.CCTo"),required:!1}]}getFlowNodeIds(){var e={};for(var t of this.flowNodeConfigs)e[t.id]=t.users.map((e=>e.id));return e}getCcNodeIds(){var e={};for(var t of this.configs)e[t.id]=t.ccers?t.ccers.map((e=>e.id)):[];return e}restoreNodeApprovers(e){var t=this;return Object(i.a)((function*(){if(e){var a=function*(a){var r,i=[];if(null!==(r=e[a])&&void 0!==r&&r.length)try{var n=yield Object(La.a)({api:h.c,params:{userIds:e[a]},cacheOpenId:!0});i=n.data.userList}catch(e){Object(we.b)(Se.f.ApprovalError,{location:"in function restoreNodeApprovers at src/stores/configurable-form-store/approver-manager.ts",message:JSON.stringify(e)}),B.a.error("restoreNodeApprovers queryUser api error")}Object(l.s)((()=>{var e=i.map((e=>{var{avatarUrl:t,name:a,userId:r}=e,i=Object(Ca.a)(e,Fa);return Object(o.a)({avatarUrl:t,name:a,userId:String(r),id:String(r)},i)}));t.addConfig({id:a,name:"",type:y.b.FLOW_NODE_APPROVER,users:e})}))};for(var r of Object.keys(e))yield*a(r)}}))()}restoreNodeCcers(e){var t=this;return Object(i.a)((function*(){if(e){var a=function*(a){var r,i=[];if(null!==(r=e[a])&&void 0!==r&&r.length)try{var n=yield Object(La.a)({api:h.c,params:{userIds:e[a]},cacheOpenId:!0});i=n.data.userList}catch(e){Object(we.b)(Se.f.ApprovalError,{location:"in function restoreNodeCcers at src/stores/configurable-form-store/approver-manager.ts",message:JSON.stringify(e)}),B.a.error("restoreNodeCcers userqueryUsers failed")}Object(l.s)((()=>{var e=i.map((e=>{var{avatarUrl:t,name:a,userId:r}=e,i=Object(Ca.a)(e,Ya);return Object(o.a)({avatarUrl:t,name:a,userId:String(r),id:String(r)},i)})),r=t.configMap[a];t.addConfig(Object(o.a)(Object(o.a)({},r),{},{ccers:e}))}))};for(var r of Object.keys(e))yield*a(r)}}))()}},Ta=Object(c.a)(Aa.prototype,"configs",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ia=Object(c.a)(Aa.prototype,"configMap",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Object(c.a)(Aa.prototype,"clearConfigs",[l.f],Object.getOwnPropertyDescriptor(Aa.prototype,"clearConfigs"),Aa.prototype),Object(c.a)(Aa.prototype,"addConfig",[l.f],Object.getOwnPropertyDescriptor(Aa.prototype,"addConfig"),Aa.prototype),Aa),Va=a(680),Ha=a(67),Za=a(682),qa=new Map;class Ka{constructor(e){Object(s.a)(this,"configurableFormStore",void 0),Object(s.a)(this,"parentWidgetMap",new Map),Object(s.a)(this,"linkageDataMap",new Map),Object(s.a)(this,"childWidgetMap",new Map),Object(s.a)(this,"widgetNameMap",new Map),Object.defineProperty(this,"configurableFormStore",{configurable:!1,enumerable:!1,writable:!1,value:e})}getLinkageDataByChildId(e){var{parentWidgetIds:t=[],linkageIds:a=[]}=this.childWidgetMap.get(e)||{};return{linkageParentNameList:Array.from(new Set(t)).map((e=>this.widgetNameMap.get(e.split(".").pop()||""))).filter(Boolean)||[],relativeLinkageIdList:Array.from(new Set(a))}}initLinkage(e,t){if(e.forEach((e=>{this.widgetNameMap.set(e.id,e.name),"fieldList"===e.type&&e.value.forEach((e=>{this.widgetNameMap.set(e.id,e.name)}))})),t){var a,r={};try{r=JSON.parse(t)}catch(e){Object(we.b)("approval_parse_relation_data_error",{location:"in function handleInitQuerySuccess at src/pages/approval-form/page-parts/handle-linkage.js",message:JSON.stringify(e)}),B.a.error("parse失败源数据有问题")}Array.isArray(null===(a=r)||void 0===a?void 0:a.groups)&&r.groups.forEach((e=>{this.linkageDataMap.set(e.id,{parentWidgetIds:e.parentWidgetIDs,childWidgetIds:e.childrenWidgetIDs});var t=[];e.parentWidgetIDs.forEach((a=>{var r=a.split(".").pop();r&&t.push(r),r&&this.parentWidgetMap.has(r)?this.parentWidgetMap.set(r,[...this.parentWidgetMap.get(r)||[],e.id]):r&&this.parentWidgetMap.set(r,[e.id])})),e.childrenWidgetIDs.forEach((t=>{var a=t.split(".").pop();if(a){var r=this.childWidgetMap.get(a)||{parentWidgetIds:[],linkageIds:[]};this.childWidgetMap.set(a,{parentWidgetIds:[...r.parentWidgetIds,...e.parentWidgetIDs],linkageIds:[...r.linkageIds,e.id]})}}))}))}return e.forEach((e=>{if(this.parentWidgetMap.has(e.id)&&(e.isLinkageParent=!0),this.checkIsLinkageChildById(e.id)&&"radioV2"===e.type){e.isLinkageChild=!0,e.value=[];var{linkageParentNameList:t=[],relativeLinkageIdList:a=[]}=this.getLinkageDataByChildId(e.id);e.linkageParentNameList=t,e.relativeLinkageIdList=a}"fieldList"===e.type&&e.value.forEach((e=>{if(this.parentWidgetMap.has(e.id)&&(e.isLinkageParent=!0),this.checkIsLinkageChildById(e.id)&&"radioV2"===e.type){e.isLinkageChild=!0,e.value=[];var{linkageParentNameList:t,relativeLinkageIdList:a}=this.getLinkageDataByChildId(e.id);e.linkageParentNameList=t,e.relativeLinkageIdList=a}}))})),e}resolveLinkageExpectValue(e){if(null!=e&&e.type){if("local"===e.type)return e.value;return e}return e}handleLinkageAction(e,t,a,r){var i,{updateDetailGroupId:n}=a,{type:o,widgetID:s}=e,c=null!==(i=t.find((e=>e.Locale===Object(g.getApiLanguage)().toLowerCase().replace("-","_"))))&&void 0!==i?i:t.find((e=>e.IsDefault));if(o===y.j.SetOptions)if(e.value){var d=this.resolveLinkageExpectValue(e.value).map((e=>({text:c.Texts[e.text],value:e.value}))),u=s.split(".").pop(),p=s!==u;Object(l.s)((()=>{var e=e=>{var t,a=oa(e.type,e.data.option);null==a||null===(t=a.setOptions)||void 0===t||t.call(a,e,this.configurableFormStore,d,r)};if(p)if(n){var t=this.configurableFormStore.getWidget("".concat(u,"|").concat(n));t&&e(t)}else{this.configurableFormStore.getAllSameWidgetInDetail(u).forEach(e);var a,i=this.configurableFormStore.getWidgetParentIfExist(u);i&&i.type===b.c.DETAIL&&(null===(a=i.data)||void 0===a||a.handleLinkageAction(u,y.j.SetOptions,d))}else{var o=this.configurableFormStore.getWidget(u);o&&e(o)}}))}}setWidgetLoadingAndError(e,t,a,r){e.forEach((e=>{var i=e.split(".").pop(),n=e!==i;i&&Object(l.s)((()=>{var e=e=>{var r,i=oa(e.type,e.data.option);null==i||null===(r=i.setLinkageState)||void 0===r||r.call(i,e,this.configurableFormStore,t,a)};if(n)if(r){var o=this.configurableFormStore.getWidget("".concat(i,"|").concat(r));o&&e(o)}else{this.configurableFormStore.getAllSameWidgetInDetail(i).forEach((t=>{e(t)}));var s,c=this.configurableFormStore.getWidgetParentIfExist(i);c&&c.type===b.c.DETAIL&&(null===(s=c.data)||void 0===s||s.handleLinkageState(i,t,a))}else{var l=this.configurableFormStore.getWidget(i);l&&e(l)}}))}))}handleLinkageRetry(e,t){var a=this;return Object(i.a)((function*(){var[r,i]=t.split("|"),{parentWidgetIds:n=[]}=a.childWidgetMap.get(r)||{},o=a.configurableFormStore.widgetsOutputFormat();if(n.some((e=>e.includes(".")))){var s,c="",l=-1,d=a.configurableFormStore.getWidgetParentIfExist(t);d&&(c=d.id||"",l=null===(s=d.data.groups)||void 0===s?void 0:s.findIndex((e=>e.id===i))),o.forEach((e=>{"fieldList"===e.type&&Array.isArray(e.value)&&c&&e.id===c&&l>-1&&(e.value=e.value.splice(l,1))})),a.postLinkageRequest(e,o,i)}else a.postLinkageRequest(e,o)}))()}postLinkageRequest(e,t,a,r){var n=this;return Object(i.a)((function*(){var i=[],o=Object(ka.c)(!0),s=[];e.forEach((e=>{var t;i.push(...(null===(t=n.linkageDataMap.get(e))||void 0===t?void 0:t.childWidgetIds)||[]);var r="".concat(o,"-").concat(e);qa.set(a?"".concat(e,"-").concat(a):e,r),s.push({RequestKey:r,GroupID:e})}));try{n.setWidgetLoadingAndError(i,!0,!1,a);var c=yield h.c.instanceWidgetMGetActions({VersionID:n.configurableFormStore.versionId,InstanceID:n.configurableFormStore.currentInstanceId,Requests:s,ValuesJSON:JSON.stringify(t)});n.setWidgetLoadingAndError(i,!1,!1,a);var{I18nResources:d,Responses:u}=c.data;u.forEach((e=>{try{var{ActionJSON:t,RequestKey:o,GroupID:s}=e;if(qa.get(a?"".concat(s,"-").concat(a):s)!==o)return;var c=JSON.parse(t);Array.isArray(c)?c.forEach((e=>{Array.isArray(e)&&e.forEach((e=>{n.handleLinkageAction(e,d,{updateDetailGroupId:a},r)}))})):i.forEach((e=>{var t=e.split(".").pop();if(e!==t&&a){var r=n.configurableFormStore.getWidget("".concat(t,"|").concat(a));if(r){var i=oa(r.type);Object(l.s)((()=>{var e;r.data.value=null,null===(e=i.setOptions)||void 0===e||e.call(i,r,n.configurableFormStore,[]),n.configurableFormStore.handleWidgetChange(r.id)}))}}}))}catch(e){Object(we.b)("approval_linkage_error",{location:"in function initLinkageListener at src/pages/approval-form/page-parts/handle-linkage.js",message:JSON.stringify(e)}),B.a.error("初始化控件联动失败",e)}}))}catch(e){n.setWidgetLoadingAndError(i,!1,!0,a),Object(we.b)("approval_api_error_mgetactions",{location:"in function initLinkageListener at src/pages/approval-form/page-parts/handle-linkage.js",message:JSON.stringify(e)}),B.a.error("mgetactions 请求失败",e)}}))()}handleFieldLinkage(e,t){var a=this;return Object(i.a)((function*(){var r,i,n=[],o="";if(e.forEach((e=>{console.log("handleFieldLinkagehandleFieldLinkage");var[t,s]=e.split("|");if(a.parentWidgetMap.has(t)){if(s){r=s;var c,l=a.configurableFormStore.getWidgetParentIfExist(e);l&&(o=l.id||"",i=null===(c=l.data.groups)||void 0===c?void 0:c.findIndex((e=>e.id===s)))}n.push(...a.parentWidgetMap.get(t)||[])}})),(n=Array.from(new Set(n))).length>0){var s=a.configurableFormStore.widgetsOutputFormat();s.forEach((e=>{"fieldList"===e.type&&Array.isArray(e.value)&&o&&e.id===o&&i>-1&&(e.value=e.value.splice(i,1))})),a.postLinkageRequest(n,s,r,t)}}))()}checkIsLinkageChildById(e){return this.childWidgetMap.has(e.split("|")[0])}}var Ja,Xa,$a,er,tr,ar,rr,ir,nr,or,sr,cr,lr,dr,ur,pr,mr,hr,br,gr,vr,jr,Or,fr,Mr,_r,yr,Dr,Nr,Ar=a(408),Tr=a(376),Ir=Object(Ft.c)("pc:src/stores/configurable-form-store/index.ts"),Cr=e=>{if(!e)return null;try{return"string"==typeof e?JSON.parse(e):e}catch(t){return Ir("commonOnError",{location:"in function getComment at src/stores/configurable-form-store/index.ts",message:Object(va.a)(t)}),{text:e,files:[]}}},xr="draft";var Sr=new ca.a((e=>{var{id:t,parentId:a,shareCode:r,instanceCode:i,subordinateID:n}=e,{indexStore:{detailModuleStore:o}}=sa.b,s=[],c=o.mockedApprovalInstance,l=n?{subordinateID:n}:{};return c?s.push(Promise.resolve(c)):(Object(Ha.a)("start-get-detail-data"),s.push(Object(Va.a)({instanceId:t,instanceCode:i,parentId:a,shareCode:r},{query:l,errHandler:e=>e===ga.a.NoPermission}).then((e=>(Object(Ha.a)("end-get-detail-data"),e))))),Promise.all(s)}),{storagePrefix:"fetchInstanceCache"});function wr(e){return{label:e.data.name,value:e.data.value}}var Lr={uploadFileFailed:"upload_file_failed"},Er=(Ja=l.f.bound,Xa=class{setApplyData(e){for(var t of e)"userDepartment"===t.id&&(this.applyDepartment=t.value)}setParams(e){try{this.params=Object(o.a)(Object(o.a)({},e),{},{groupOptions:JSON.parse(e.groupOptions||"{}")})}catch(e){Ir("commonOnError",{location:"in function setParams at src/stores/configurable-form-store/index.ts",message:Object(va.a)(e)})}}get queryPath(){var e,{indexStore:t}=sa.b;return{query:t.searchStore.isSubSearch?{subordinateID:null===(e=t.currentActive)||void 0===e?void 0:e.AssigneeID}:{}}}onApproverSelectorVisibleChange(e){this.approverSelectorProps.visible=e}showApproverSelector(e){return this.chooseApproverResolver?Promise.resolve(e.chosenUsers):(this.approverSelectorProps=Object(o.a)(Object(o.a)(Object(o.a)({},this.approverSelectorProps),e),{},{visible:!0}),new Promise((e=>{this.chooseApproverResolver=e})))}get keyword(){return sa.b.indexStore.searchKey}constructor(e){var t=this,{userStore:a,useEditorIfWritable:r=!0,useDraft:o=!1,canSaveDraft:c=!1}=e;Object(s.a)(this,"options",void 0),Object(s.a)(this,"GetExternalDataMap",new Map),Object(n.a)(this,"definitionInfo",$a,this),Object(n.a)(this,"instanceInfo",er,this),Object(s.a)(this,"isRollbackToStart",!1),Object(n.a)(this,"currentNodeApproverList",tr,this),Object(n.a)(this,"nodeList",ar,this),Object(n.a)(this,"applyDepartment",rr,this),Object(n.a)(this,"params",ir,this),Object(s.a)(this,"leaveTypes",[]),Object(n.a)(this,"changeParams",nr,this),Object(n.a)(this,"approverSelectorProps",or,this),Object(n.a)(this,"resubmitTraceData",sr,this),Object(s.a)(this,"chooseApproverResolver",null),Object(s.a)(this,"readableWidgetIdSet",null),Object(s.a)(this,"writableWidgetIdSet",null),Object(s.a)(this,"validateAllCount",0),Object(s.a)(this,"widgetNotSupportCrossTenant",null),Object(s.a)(this,"processType",y.l.IS_NOT_FREE),Object(s.a)(this,"category",y.f.NORMAL),Object(s.a)(this,"rapidDefinitionNodeId",""),Object(s.a)(this,"rapidDefApproversWidgetId",""),Object(s.a)(this,"rapidDefCcsWidgetId",""),Object(s.a)(this,"currentInstanceId",""),Object(s.a)(this,"currentInstanceCode",""),Object(n.a)(this,"widgets",cr,this),Object(n.a)(this,"scrollTop",lr,this),Object(s.a)(this,"changeScrollTop",Object(d.a)(Object(l.f)((e=>{this.scrollTop=e})),16)),Object(n.a)(this,"approvalNodeDTOList",dr,this),Object(s.a)(this,"idWidgetMap",new Map),Object(s.a)(this,"listenChangingWidgetIdSet",new Set),Object(s.a)(this,"listenAfterRestoreWidgetIdSet",new Set),Object(s.a)(this,"listenInsteadSubmitWidgetIdSet",new Set),Object(s.a)(this,"listenOptionDeleteWidgetIdSet",new Set),Object(s.a)(this,"idOldFieldMap",new Map),Object(s.a)(this,"idResetDataMap",new Map),Object(s.a)(this,"displayConditionManager",new fa(this)),Object(s.a)(this,"oaTAsk",void 0),Object(n.a)(this,"instanceLoading",ur,this),Object(n.a)(this,"maskLoading",pr,this),Object(s.a)(this,"fetchInstanceError",void 0),Object(s.a)(this,"parentId",void 0),Object(n.a)(this,"chatGroupInfo",mr,this),Object(n.a)(this,"getChatGroupInfoError",hr,this),Object(s.a)(this,"hasManualChangeForm",!1),Object(s.a)(this,"versionId",""),Object(s.a)(this,"approverManager",new Wa),Object(s.a)(this,"previewListManager",new Ba(this)),Object(s.a)(this,"fieldLinkageManager",new Ka(this)),Object(s.a)(this,"userDepartmentManager",new A.b(this,null)),Object(s.a)(this,"insteadSubmitManager",new Sa.b(this,null)),Object(n.a)(this,"isSubmitted",br,this),Object(s.a)(this,"resubmitInstanceId",""),Object(n.a)(this,"originalProcessMap",gr,this),Object(s.a)(this,"hasLeaderHintShown",!1),Object(n.a)(this,"isLeaderHintVisible",vr,this),Object(s.a)(this,"leaderHintResolver",u.a),Object(s.a)(this,"optionSearchQuery",""),Object(n.a)(this,"unValidExtraWidgetName",jr,this),Object(s.a)(this,"useDraft",!1),Object(s.a)(this,"canSaveDraft",!1),Object(s.a)(this,"isInRelativeApproval",!1),Object(s.a)(this,"innerDefinitions",void 0),Object(s.a)(this,"innerInstances",void 0),Object(n.a)(this,"widgetRelationString",Or,this),Object(s.a)(this,"refreshSelectOptionsAsync",Object(l.k)(this._refreshSelectOptionsAsync)),Object(s.a)(this,"getSelectOptionsAsync",Object(l.k)(this._getSelectOptionsAsync)),Object(s.a)(this,"formatParamsValue",(e=>{var t,a,r="",{data:i}=e;if(!i.visible)return"";var n=oa(e.type,e.data.option);switch(e.type){case b.c.SINGLE_SELECT:case b.c.SINGLE_SELECT_V2:r=null!==(t=null===(a=i.value)||void 0===a?void 0:a.text)&&void 0!==t?t:"";break;case b.c.MULTI_SELECT:case b.c.MULTI_SELECT_V2:r=i.value.map((e=>{var{text:t}=e;return t})).join(",");break;case b.c.DATE_TIME:if(n.outputFormat){var o=n.outputFormat(e,this);o&&(r="".concat(o.value.value))}break;case b.c.DATE_INTERVAL:if(n.outputFormat){var s=n.outputFormat(e,this);if(s){var{start:c,end:l}=s.value;r="".concat(c.value.value,",").concat(l.value.value)}}break;default:r=i.value}return r})),Object(s.a)(this,"formatLinkageConfigParams",((e,t)=>{var a={};return e.map((e=>{var r,i,{key:n,linkageWidgetID:o}=e;if(o.includes(".")){var[,s]=o.split("."),c=t.split("|")[1];i=this.getWidget("".concat(s,"|").concat(c))}else i=this.getWidget(o);a[n]=this.formatParamsValue(i),(null===(r=i)||void 0===r?void 0:r.type)===b.c.AMOUNT_INPUT&&(a["".concat(n,"_Currency")]=i.data.unit)})),a})),Object(n.a)(this,"showLeaderHintDialog",fr,this),Object(n.a)(this,"closeLeaderHintDialog",Mr,this),Object(s.a)(this,"handleRemoveSignGroupConditionManager",(()=>0)),Object(s.a)(this,"handleAddSignGroupConditionManager",(()=>{var e=this.widgets.find((e=>e.type===b.c.SIGN_GROUP)),t=[];e&&(null==e||e.data.value.widgetSignGroupSignatoryList.forEach((e=>{if(e&&e.displayCondition){var a=new fa(this);t.push(a),a.initialize(e.displayCondition)}}))),this.handleRemoveSignGroupConditionManager=()=>{t.forEach((e=>e.stopAllWidgetsAutorun()))}})),Object(s.a)(this,"validateMessage",""),Object(s.a)(this,"setValidateMessage",(e=>{this.validateMessage=e})),Object(s.a)(this,"validateOnlySubmitMessage",""),Object(s.a)(this,"setValidateOnlySubmitMessage",(e=>{this.validateOnlySubmitMessage=e})),Object(s.a)(this,"validateWidgets",function(){var e=Object(i.a)((function*(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{parallel:r=!0,silent:i=!1}=a;if(i){if(r)return new Promise((a=>{Promise.all(e.map((e=>t.validateWidget(e,i).then((e=>(!e&&a(e),e)))))).then((e=>{a(e.every(Le.q))}))}));var n=[];for(var o of e){var s=yield t.validateWidget(o,i);if(n.push(s),!s)break}return n.every(Le.q)}if(r)return(yield Promise.all(e.map((e=>t.validateWidget(e,i))))).every(Le.q);var c=[];for(var l of e)c.push(yield t.validateWidget(l,i));return c.every(Le.q)}));return function(t){return e.apply(this,arguments)}}()),Object(n.a)(this,"validationPrompts",_r,this),Object(s.a)(this,"debounceSaveDraft",Object(Le.c)(this.saveDraft,300)),Object(s.a)(this,"fetchForm",Object(l.k)(this._fetchForm)),Object(s.a)(this,"fetchInstance",Object(l.k)(this._fetchInstance)),Object(n.a)(this,"attendanceSeal",yr,this),Object(s.a)(this,"formaDepartmentListStr",(e=>{var t="";if(e.length>2)for(var a=e[0],r=e.slice(1),i=r.length-1;i>=0;i--){var n="".concat(e[0],"/").concat(r.slice(i).join("/")),o=ma(n);if(t=0===i?"".concat(a,"/").concat(r.slice(i).join("/")):"".concat(a,"/.../").concat(r.slice(i).join("/")),o>=86)break}else t+=e.join("/");return t})),Object(s.a)(this,"fetchOriginalInstance",Object(l.k)(this._fetchOriginalInstance)),Object(s.a)(this,"fetchChatGroupInfo",Object(l.k)(this._fetchChatGroupInfo)),Object(s.a)(this,"fetchNodeHistory",Object(l.k)(this._fetchNodeHistory)),Object(s.a)(this,"fetchCurrentNodeApproverList",Object(l.k)(this._fetchCurrentNodeApproverList)),Object(n.a)(this,"showBatchingMask",Dr,this),Object(n.a)(this,"setShowBatchingMask",Nr,this),Object(s.a)(this,"batchImportSourceInfo",void 0),this.options={userStore:a,useEditorIfWritable:r},this.userDepartmentManager=new A.b(this,a),this.insteadSubmitManager=new Sa.b(this,a),this.useDraft=o,this.canSaveDraft=c}getWidgetParentIfExist(e){for(var t of this.idWidgetMap.keys()){var a=this.getWidget(t);if((null==a?void 0:a.type)===b.c.DETAIL){var r;if(null===(r=a.data.groups)||void 0===r||!r.length)return null;for(var i of a.data.groups[0].widgets){var n=i.id.split("|").shift(),o=e.split("|").shift();if(n&&n===o)return a}}}return null}getAllSameWidgetInDetail(e){var t=e.split("|")[0],a=[];return this.idWidgetMap.forEach(((e,r)=>{r.split("|")[0]===t&&a.push(e)})),a}*_refreshSelectOptionsAsync(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pageToken:""},r=this.getWidget(e),i={widgetId:e,params:{},versionId:this.versionId};a.pageToken&&(i.pageToken=a.pageToken),this.currentInstanceId&&(i.instanceId=this.currentInstanceId),t&&(i.query=t);try{var n="RQ_".concat((new Date).getTime(),"_").concat(Math.floor(1e6*Math.random()));this.GetExternalDataMap.set(e,n);var o=yield h.c.getExtraStringDataWithParams(i);if(n!==this.GetExternalDataMap.get(e))return;if(a.pageToken?(console.log("result => append"),r.data.options=r.data.options.concat(o.data.options)):(console.log("result => replace"),r.data.options=o.data.options),t)return{hasMore:o.data.hasMore,pageToken:o.data.nextPageToken}}catch(e){if(console.error(e),t)throw e}}*_getSelectOptionsAsync(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{pageToken:""},i=this.getWidget(e),{data:{linkageConfigs:n}}=i,{isValid:o,name:s}=yield this.checkValidForLinkageConfigs(n,e);if(!o)throw this.unValidExtraWidgetName=s,new Error("noValid");try{var c,l=this.getWidgetParentIfExist(e),d=e;l&&(d="".concat(l.id,".").concat(e.split("|").shift()));var u={widgetId:d,params:{}},p=this.resubmitInstanceId||this.currentInstanceId,{versionId:m}=this;p&&(u.instanceId=p),m&&(u.versionId=m),a&&(u.query=a),r.pageToken&&(u.pageToken=r.pageToken),console.log("_getSelectOptionsAsync requestParams =>",u),u.params=this.formatLinkageConfigParams(n,e);var g="RQ_".concat((new Date).getTime(),"_").concat(Math.floor(1e6*Math.random()));this.GetExternalDataMap.set(e,g);var v=yield h.c.getExtraStringDataWithParams(u);if(this.GetExternalDataMap.get(e)!==g)return;if(console.log("result => ",v),r.pageToken?(console.log("result => append"),i.data.options=i.data.options.concat(v.data.options)):(console.log("result => replace"),i.data.options=v.data.options),1!==(null===(c=v.data.options)||void 0===c?void 0:c.length)||(null==i?void 0:i.type)!==b.c.SINGLE_SELECT_V2||t||(i.data.value=v.data.options[0],i.data.validationError=null,this.handleWidgetChange(i.id,!0)),a)return{hasMore:v.data.hasMore,pageToken:v.data.nextPageToken}}catch(e){if(console.error(e),16009===e.code&&(i.data.options=[]),a)throw e}}resetOptionsExtraNameAndLoading(){this.unValidExtraWidgetName=""}checkValidForLinkageConfigs(e,t){var a=this;return Object(i.a)((function*(){var r={isValid:!0,name:""};for(var{linkageWidgetID:i}of e){var n=void 0;if(i.includes(".")){var[,o]=i.split("."),s=t.split("|")[1];n=a.getWidget("".concat(o,"|").concat(s))}else n=a.getWidget(i);if(!(yield a.validateWidget(n.id))){if(r.isValid=!1,r.name=n.data.name,n.type===b.c.DATE_INTERVAL){var[c,l]=n.data.children;r.name="".concat(c.data.name,"-").concat(l.data.name)}return r}}return r}))()}getWidget(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this.idWidgetMap.get(e);if(!a&&t)throw new Error("getWidget invalid id: ".concat(e));return a}*genAllWidgetsWithChildren(){for(var e of this.idWidgetMap.keys())yield this.getWidget(e)}clearWidgets(){this.hasManualChangeForm=!1,this.validateAllCount=0,this.widgets=[],this.displayConditionManager.stopAllWidgetsAutorun(),this.handleRemoveSignGroupConditionManager(),this.idWidgetMap=new Map,this.listenChangingWidgetIdSet=new Set,this.listenAfterRestoreWidgetIdSet=new Set,this.listenOptionDeleteWidgetIdSet=new Set,this.listenInsteadSubmitWidgetIdSet=new Set,this.idOldFieldMap=new Map,this.idResetDataMap=new Map,this.approverManager.clearConfigs(),this.previewListManager.clear()}clearAll(){this.clearWidgets(),this.instanceInfo=null,this.attendanceSeal={isSeal:!1,tooltip:""}}*genWidgetDescendants(e){yield e;var t=oa(e.type,e.data.option);if(t.genChildren)for(var a of t.genChildren(e))yield*this.genWidgetDescendants(a)}*genAllWidgetDescendants(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.widgets;for(var t of e)yield*this.genWidgetDescendants(t)}addWidgetDescendantsToMap(e){for(var t of this.genWidgetDescendants(e)){this.idWidgetMap.set(t.id,t);var a=t.id.split(".").pop()||t.id;this.idWidgetMap.set(a,t),oa(t.type,t.data.option).onSomeWidgetChange&&this.listenChangingWidgetIdSet.add(a),oa(t.type,t.data.option).onOptionDelete&&this.listenOptionDeleteWidgetIdSet.add(a),oa(t.type,t.data.option).onSubmitterChange&&this.listenInsteadSubmitWidgetIdSet.add(a),oa(t.type,t.data.option).afterRestore&&this.listenAfterRestoreWidgetIdSet.add(a),this.idResetDataMap.set(a,Object(l.u)(t.data))}}addAllWidgetDescendantsToMap(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.widgets;for(var t of e)this.addWidgetDescendantsToMap(t)}removeWidgetDescendantsToMap(e){for(var t of this.genWidgetDescendants(e))this.idWidgetMap.delete(t.id),this.listenChangingWidgetIdSet.delete(t.id),this.listenAfterRestoreWidgetIdSet.delete(t.id),this.listenInsteadSubmitWidgetIdSet.delete(t.id),this.idResetDataMap.delete(t.id),this.displayConditionManager.stopWidgetAutorun(t.id)}removeAllWidgetDescendantsToMap(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.widgets;for(var t of e)this.removeWidgetDescendantsToMap(t)}widgetInputFormat(e,t,a){var r=Object(p.a)(e),i=oa(e.type,e.option).inputFormat(e,this,t);return this.idOldFieldMap.set(i.id,r),a?Object(Tr.c)(i,a):i}widgetsInputFormat(e,t,a){return e.map(((e,r)=>this.widgetInputFormat(e,t,null==a?void 0:a[r])))}handleWidgetLinkage(e,t){this.fieldLinkageManager.handleFieldLinkage(e,t)}handleWidgetChange(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||(this.hasManualChangeForm=!0),this.validateChangedWrongWidget(e),this.notifySomeWidgetChange(e),t||this.previewListManager.refresh(e),this.handleWidgetLinkage([e],t),this.debounceSaveDraft()}handleWidgetBatchChange(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var a of(t||(this.hasManualChangeForm=!0),e))this.validateChangedWrongWidget(a),this.notifySomeWidgetChange(a,t);t||this.previewListManager.refreshBatch(e),this.handleWidgetLinkage(e,t),this.debounceSaveDraft()}setValidationError(e){var t=this.getWidget(e);t.data.isReset=!0,t.data.validationError=Object(g.t)("PC.SelectUpdated")}validateChangedWrongWidget(e){var t=this.getWidget(e);t&&t.data.validationError&&this.validateWidget(e)}notifySomeWidgetChange(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var a of this.listenChangingWidgetIdSet){var r=this.getWidget(a);if(!r)return;var i=oa(r.type,r.data.option),n=[b.c.SINGLE_SELECT_V2,b.c.MULTI_SELECT_V2,b.c.CALCULATION_FORMULA].includes(r.type);if(t&&!this.hasManualChangeForm&&n)return;i.onSomeWidgetChange&&i.onSomeWidgetChange(r,e,this)}}notifySomeOptionDelete(e,t){for(var a of this.listenOptionDeleteWidgetIdSet){var r=this.getWidget(a);if(r&&r.type===e){var i=oa(r.type,r.data.option);i.onOptionDelete&&i.onOptionDelete(r,this,t)}}}validateWidget(e){var t=arguments,a=this;return Object(i.a)((function*(){var r=t.length>1&&void 0!==t[1]&&t[1],i=a.getWidget(e);if(!i)return!1;var n=yield oa(i.type,i.data.option).validate(i,a,r);return!i.data.visible||(n||r||(Object(we.b)("pc_mp_widget_validate_error",{type:i.type,widget_location:0}),B.a.info("validateWidget not pass",e,Object(l.u)(i),a),a.validateMessage||(i.data.validationToastError?a.setValidateMessage(i.data.validationToastError):i.data.validationError===Object(g.t)("PC.ValidateNoEmpty")&&a.setValidateMessage(Object(g.t)("approval-mp_ThisaRequiredField_Toast",{WidgetName:i.data.name})))),D.d.enableGroupTimeCheck&&Object(jt.b)(i)&&a.setValidateOnlySubmitMessage(jt.a[i.type]),n)}))()}updateValidationPrompts(e,t){this.validationPrompts[e]=t}get isHasWritableAndRequiredAndNoValue(){var e=!1;for(var t of this.writableWidgetIdSet||[]){var a=this.getWidget(t,!1);if(a&&a.data&&a.data.required){var r=oa(a.type,a.data.option);e=r.writableValidate?!r.writableValidate(a):!a.data.value}}return e&&this.writableWidgetIdSet&&this.writableWidgetIdSet.size>0}validateAll(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e||(this.validateAllCount++,this.validateMessage=""),this.validateWidgets(this.widgets.map((e=>e.id)),{silent:e})}widgetRestoreFormat(e){var t;if(e){if(!function(e){return"userDepartment"===e}(e.id)){var a=this.getWidget(e.id);if(a){var r=oa(a.type,a.data.option);r.restoreFormat(a,e,this),a.data.readable=!0,a.data.isRestored=!0,e.modified&&(a.data.hasHistory=e.edited||e.modified),a.data.historyType=this.getWidgetChangeType(e.edited,e.modified),this.resubmitInstanceId&&[b.c.AMOUNT_INPUT,b.c.NUMBER_INPUT,b.c.CALCULATION_FORMULA,b.c.DATE_INTERVAL,"widgetLeaveGroupInterval","widgetWorkGroupInterval","widgetTripGroupInterval","widgetOutGroupInterval"].includes(a.type)&&this.handleWidgetChange(a.id,!0),null===(t=r.onRestoredFormat)||void 0===t||t.call(r,a,e,this)}}}else B.a.error("widgetsRestoreFormat invalid fieldData",e)}restoreHandlerForRapidCategory(e){var{nodeApprovers:t,nodeCcs:a}=e;t&&this.queryApproverByIdAndRestore(this.rapidDefinitionNodeId,t,{id:this.rapidDefApproversWidgetId,type:b.c.APPROVALER,name:Object(g.t)("approvalForm.Approvers")}),a&&this.queryApproverByIdAndRestore(this.rapidDefinitionNodeId,a,{id:this.rapidDefCcsWidgetId,type:b.c.CCER,name:Object(g.t)("approvalForm.CCTo")})}queryApproversByIds(e){for(var t of Object.keys(e))this.queryApproverByIdAndRestore(t,e)}queryApproverByIdAndRestore(e,t,a){var r=this;return Object(i.a)((function*(){var i=t[e];if(i&&i.length){var n=yield Object(La.a)({api:h.c,params:{userIds:i},cacheOpenId:!0});n.data||B.a.error("no data returned from queryUser api");var s=n.data;s.userList=s.userList.map((e=>Object(o.a)(Object(o.a)({},e),{},{id:e.userId})));var c={id:e,type:b.c.APPROVALER,name:"",value:s,displayCondStatus:!0,edited:!1,printable:!1};a&&(c=Object(o.a)(Object(o.a)({},c),a)),r.widgetRestoreFormat(c)}}))()}restoreNodeApprovers(e){e&&this.queryApproversByIds(e)}saveDraft(){var e,t;if(this.canSaveDraft&&this.hasManualChangeForm){var a=(null===(e=this.definitionInfo)||void 0===e?void 0:e.approvalId)||"",r=(null===(t=this.definitionInfo)||void 0===t?void 0:t.approvalName)||"";if(a){var i={approvalId:a,approvalName:r,versionId:this.versionId,widgets:this.widgets};da.a.set(xr,i)}}}widgetRestoreWithDraftFormat(e){var t,a=this.getWidget(e.id);if(a){var r=oa(a.type,a.data.option);r.restoreWithDraftFormat(a,e,this),a.data.readable=!0,a.data.isRestored=!0,a.isUseDraft=!0,null===(t=r.onRestoredWithDraftFormat)||void 0===t||t.call(r,a,e,this)}}widgetRestoreWithCopy(e,t){var a=this.getWidget(t.id);if(a){var r=oa(a.type,a.data.option);r.restoreWithCopyFormat?r.restoreWithCopyFormat(e,t,this):r.restoreWithDraftFormat(e,t,this),e.data.validationError=t.data.validationError}}widgetsRestoreWithCopyFormat(e,t){t.forEach(((t,a)=>{try{this.widgetRestoreWithCopy(e[a],t)}catch(e){Ir("commonOnError",{location:"in function widgetsRestoreWithCopyFormat at src/stores/configurable-form-store/index.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e)),draftWidgetType:t.type}),B.a.error("widgetsRestoreWithCopyFormat failed",e)}}))}widgetsRestoreWithDraftFormat(e){for(var t of e)try{this.widgetRestoreWithDraftFormat(t)}catch(e){Ir("commonOnError",{location:"in function widgetsRestoreWithDraftFormat at src/stores/configurable-form-store/index.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e)),draftWidgetType:t.type}),B.a.error("widgetRestoreWithDraftFormat failed",e)}this.triggerAfterRestore()}triggerAfterRestore(){for(var e of this.listenAfterRestoreWidgetIdSet){var t=this.getWidget(e);if(!t)return;var a=oa(t.type,t.data.option);a.afterRestore&&a.afterRestore(t,this)}}widgetsRestoreFormat(e){if(e){for(var t of e)try{this.widgetRestoreFormat(t)}catch(e){Ir("commonOnError",{location:"in function widgetsRestoreFormat at src/stores/configurable-form-store/index.ts",message:Object(va.a)(e)}),B.a.error("widgetRestoreFormat failed",e)}this.triggerAfterRestore()}else B.a.error("widgetsRestoreFormat invalid fieldDatas",e)}widgetsPrintFormat(e){var t=e.map((e=>{if(!e.data.isRestored)return{printable:!1,printData:{label:""}};var t=oa(e.type,e.data.option).printFormat||wr;return{printable:e.data.printable,printData:t(e,this)}}));return Object(m.a)(t.filter((e=>e.printable)).map((e=>e.printData)))}widgetsPrintFormatToForm(e){var t,a=e.map((e=>{var t=oa(e.type,e.data.option).printFormat||wr;return{printable:e.data.printable,printData:e.data.isRestored?t(e,this):{label:"",value:Object(g.t)("Apaascorehr_NoFormItemValue")}}})),r=Object(m.a)(a.filter((e=>e.printable)).map((e=>e.printData)));return{label:null===(t=r.find((e=>Boolean(e.label))))||void 0===t?void 0:t.label,value:r.map((e=>e.value))}}widgetBeforeInitFinish(e){var{beforeInitFinish:t}=oa(e.type,e.data.option);t&&t(e,this)}widgetsBeforeInitFinish(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.widgets;for(var t of e)this.widgetBeforeInitFinish(t)}widgetInit(e){var{init:t}=oa(e.type,e.data.option);t&&t(e,this)}initWidgetsInDetail(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(var t of e)this.widgetInit(t)}widgetOutputFormat(e){var{outputFormat:t}=oa(e.type,e.data.option);return t?t(e,this):null}widgetsOutputFormat(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.widgets).map((e=>this.widgetOutputFormat(e))).filter((e=>null!==e))}resetWidgetData(e){var t=this.getWidget(e),a=Object(p.a)(this.idResetDataMap.get(e));if(Ir("commonLog",{function:"resetWidgetData",data:a,id:e,name:null==t?void 0:t.type}),t){var{reset:r}=oa(t.type,t.data.option);r?r(t,a,this):t.data=a}}restoreWidgetWithDefaultData(e){var t=this.getWidget(e);if(t){var{restoreDefaultData:a}=oa(t.type,t.data.option),r=e.split("|")[0],i=this.getOldField(r);null==a||a(t,i,this)}}initWidgetsPermission(e){this.readableWidgetIdSet=this.writableWidgetIdSet=null,e&&(e.readable&&e.readable.length&&(this.readableWidgetIdSet=new Set([...e.readable,...e.writable])),this.writableWidgetIdSet=new Set(e.writable))}addWidgetsToReadableSet(e){e.length&&this.readableWidgetIdSet&&e.forEach((e=>{this.readableWidgetIdSet.add(e)}))}addWidgetsToWritableSet(e){e.length&&this.writableWidgetIdSet&&e.forEach((e=>{this.writableWidgetIdSet.add(e)}))}deleteWidgetsToReadableSet(e){e.length&&this.readableWidgetIdSet&&e.forEach((e=>{this.readableWidgetIdSet.delete(e)}))}deleteWidgetsToWritableSet(e){e.length&&this.writableWidgetIdSet&&e.forEach((e=>{this.writableWidgetIdSet.delete(e)}))}isWidgetReadable(e){return!this.readableWidgetIdSet||this.readableWidgetIdSet.has(Object(M.q)(e))}isWidgetWritable(e){return!this.writableWidgetIdSet||this.writableWidgetIdSet.has(Object(M.q)(e))}getOldField(e){return this.idOldFieldMap.get(e)}*_fetchForm(e,t,a){var r,i=new ja.a("fetch_form");i.mark("start");var n=Date.now(),{approverManager:o,params:s}=this;this.clearWidgets(),i.measureAndMark("requestStart","start");var c=yield h.c.instancecreatePrepare({approvalId:e,approvalCode:a,instanceId:t||void 0,modifying:(null==s?void 0:s.modify)||void 0},{usePrefetchCache:!0,fetchCacheKey:h.a.CreateForm,errHandler:e=>!![pa.b.STOPED_ENABLE_USE,pa.b.NO_AUTH,pa.b.DELETED,pa.b.NO_VISIBLE_AUTH,pa.b.NO_ACCESS_PERMISSION].includes(e)});c.data||(B.a.error("createPrepare error"),!t||null!=s&&s.modify||Object(we.b)("click_resubmit",{loading_failure_user_define:1}));var l=c.data,d=l.approvalId.toString();Ir("submitFormLoadFeStart",{definitionId:d,approvalCode:a}),i.measureAndMark("requestEnd","start"),this.resubmitInstanceId=t,this.widgetNotSupportCrossTenant=l.widgetNotSupportB2b,this.definitionInfo={approvalId:l.approvalId.toString(),approvalCode:l.approvalCode.toString(),approvalName:l.approvalName,description:l.approvalDescription,allowInsteadCreate:l.allowInsteadCreate},this.processType=l.processType,this.category=l.category,this.innerDefinitions=l.innerDefinitions||{},this.innerInstances=l.innerInstances||{};var u=JSON.parse(l.privilegeList||"[]").filter((e=>{var{id:t}=e;return t.includes("START")}))[0];this.versionId=String(l.versionId),this.initWidgetsPermission(u?u.field:void 0),this.userDepartmentManager.initializeVisible(),this.readableWidgetIdSet?this.addWidgetsToWritableSet(Array.from(this.readableWidgetIdSet)):this.writableWidgetIdSet=null;var p=JSON.parse(l.form);ba({detailOrApprovalDefine:l,form:p,from:"create",source:"create",isRollbackToStart:!1}),l.nodeList&&l.nodeList.length>0&&(this.nodeList=l.nodeList,o.addConfig(...l.nodeList.filter((e=>e.needApprover)).map((e=>{var t=1===e.nodeType?Object(g.t)("Detail.OrSign"):Object(g.t)("Detail.AndSign");return{id:e.nodeId,type:y.b.FLOW_NODE_APPROVER,name:"".concat(e.viewName,"(").concat(t,")")}})))),this.clearWidgets();var m=this.userDepartmentManager.generateFakeWidget;m&&this.addWidgetDescendantsToMap(this.widgetInputFormat(m));var v=l.category===y.f.RAPID,j=l.processType===y.l.IS_FREE?this.approverManager.generateFakeFreeWidgets():[];if(v){var O=l.nodeList[0]?l.nodeList[0].nodeId:"";this.rapidDefinitionNodeId=O,this.rapidDefApproversWidgetId="".concat(O,"_approvers"),this.rapidDefCcsWidgetId="".concat(O,"_ccs"),j=this.approverManager.generateFakeFreeWidgets(this.rapidDefApproversWidgetId,this.rapidDefCcsWidgetId)}m&&(p.fields=[m,...p.fields]),p.fields=[...p.fields,...j];var f=l&&l.content&&l.creator.userId!==this.options.userStore.currentUser.userId;if(this.definitionInfo.allowInsteadCreate||f){var _=f?[{id:l.creator.userId,name:l.creator.userName,avatarUrl:l.creator.userAvatarUrl}]:void 0,D=this.insteadSubmitManager.generateFakeWidget(_);p.fields=[D,...p.fields]}if(p.fields=this.fieldLinkageManager.initLinkage(p.fields,p.widgetRelation),this.widgetRelationString=p.widgetRelation,this.widgets=this.widgetsInputFormat(p.fields),this.addAllWidgetDescendantsToMap(),this.displayConditionManager.initialize(p.displayCondition,p.fields),this.handleAddSignGroupConditionManager(),this.useDraft){var N=da.a.getSync(xr);N&&(N.versionId===this.versionId?this.widgetsRestoreWithDraftFormat(N.widgets):(da.a.removeSync(xr),Object(la.p)({title:Object(g.t)("DefaultModalTitle"),content:Object(g.t)("ApprovalForm.UnableToFill"),showCancel:!1})))}if(t){if(l.content){var{departmentId:A}=l;l.creator.userId===this.options.userStore.currentUser.userId?yield this.options.userStore.fetchUserDepartmentInfo():yield this.userDepartmentManager.updateImitateDepartmentList(l.creator.userId);var T=this.userDepartmentManager.userDepartmentList.find((e=>e.departmentId===A));if(T){var{name:I}=T;this.userDepartmentManager.resetWhenResubmit({departmentId:A,departmentName:I})}var C=JSON.parse(l.content);if(this.definitionInfo.allowInsteadCreate){var x={id:l.creator.userId,name:l.creator.userName,avatarUrl:l.creator.userAvatarUrl};C=[this.insteadSubmitManager.generateFakeWidget([x])].concat(C)}this.widgetsRestoreFormat(C),v&&this.restoreHandlerForRapidCategory(l),yield o.restoreNodeApprovers(l.nodeApprovers),yield o.restoreNodeCcers(l.nodeCcs)}else this.notifyNotFilled();(null==s||!s.modify)&&this.initResubmitTraceData(t,l,Date.now()-n)}this.widgetsBeforeInitFinish(),Object(M.h)(this.widgets,b.c.AMOUNT_INPUT)&&F.a.getCurrencyList(),this.previewListManager.init({aid:d,conditionWidgetIdList:null!==(r=l.conditionWidgetIdList)&&void 0!==r?r:[]}),this.userDepartmentManager.initializeValue(),Ir("submitFormLoadFeEnd",{definitionId:d,approvalCode:a}),i.measureAndMark("end","start"),Ir("commonOperatingTimeReport",i.getReportData())}notifyNotFilled(){return Object(i.a)((function*(){yield Object(Le.s)(500),Te.b.showToast({title:Object(g.t)("ApprovalForm.UnableToFill"),icon:"info",duration:3e3})}))()}setInstanceLoading(){this.instanceLoading=!0}*_fetchInstance(e){var{id:t="",parentId:a=this.parentId||"",instanceCode:r="",shareCode:i="",ignoreCache:n=!0,instanceLoading:o=!0}=e;Object(Ha.a)("fetchInstance"),this.instanceLoading=o,this.fetchInstanceError=null,this.currentInstanceId=t||r,this.currentInstanceCode=r||t,Ir("detailInto");var{indexStore:s}=sa.b;try{var c;yield Sr.getByCallback(this.fetchInstanceCb.bind(this),{id:r?"":t,instanceCode:r||t,parentId:a,shareCode:i,subordinateID:s.searchStore.isSubSearch?null===(c=s.currentActive)||void 0===c?void 0:c.AssigneeID:void 0},!1,n),yield Object(Le.s)(500),this.maskLoading=!1,this.instanceInfo&&!i&&(this.fetchCurrentNodeApproverList(this.instanceInfo.instanceId,this.instanceInfo.taskId),this.fetchNodeHistory(this.instanceInfo.instanceId))}catch(e){Ir("detailLoadFailed",{error:Object(va.a)(e),allWidgetTypes:Object(Ar.a)(this.widgets)}),B.a.error("fetchInstanceError",e),this.fetchInstanceError=e,this.instanceLoading=!1}if(this.instanceInfo&&!i)try{var l={instanceId:this.instanceInfo.instanceId,shareCode:i};this.parentId&&(l.parentId=this.parentId);var d=yield h.c.instancecommentList(l,this.queryPath);d.data||B.a.error("commentList api error");var u=d.data;this.instanceInfo&&(this.instanceInfo.commentList=u.commentList)}catch(e){Ir("detailFetchCommentFailed",{error:Object(va.a)(e)}),B.a.error("fetchCommentError",e)}}fetchInstanceCb(e,t){var a=this;return Object(i.a)((function*(){var r,{indexStore:{detailModuleStore:i}}=sa.b,n=null!==(r=i.mockedApprovalInstance)&&void 0!==r?r:e;try{var o,s,c,{isCache:l}=t;n.data||n[0].data||B.a.error("InstanceDetail api error");var d=(null==n||null===(o=n.data)||void 0===o?void 0:o.detail)||(null===(s=n[0])||void 0===s||null===(c=s.data)||void 0===c?void 0:c.detail),{instanceIdList:u,instanceId:p,InstanceCode:m,instanceStatus:g,originalStatus:v,modifyInstanceList:j,originalModifyStatus:O,currentTask:f,allowCustomPrint:_=!1,allowCustomPrintType:y,widgetNotSupportB2b:D}=d;sa.b.globalStore.fgBatchApprovalNext&&a.setShowBatchingMask(33===f.taskStatus),sa.b.globalStore.setAllowCustomPrintType(y),Object(Za.a)(_,y),a.widgetNotSupportCrossTenant=D;var N=null==u?void 0:u.includes(a.currentInstanceId),A=p===a.currentInstanceId&&a.currentInstanceId,T=m===a.currentInstanceCode&&a.currentInstanceCode;if(!(N||A||T||i.mockedApprovalInstance))return;if(Ir("detailLoadFeStart",{instanceId:p}),d.newComments?d.newComments.forEach((e=>{e.content=Cr(e.content)})):d.commentList&&(d.newComments=[]),d.timeline.forEach((e=>{e.newComment&&(e.newComment.content=Cr(e.newComment.content))})),d.eventList.forEach((e=>{var t,a;e.newComment&&(e.newComment.content=Cr(e.newComment.content)),null===(t=e.adviseDoneUserList)||void 0===t||t.forEach((e=>{e.newComment&&(e.newComment.content=Cr(e.newComment.content))})),null===(a=e.advisePendingUserList)||void 0===a||a.forEach((e=>{e.newComment&&(e.newComment.content=Cr(e.newComment.content))}))})),d.newRevertReason&&(d.newRevertReason.content=Cr(d.newRevertReason.content)),d.modifyReason){var I=d.modifyReason;try{I.hasOwnProperty("content")&&(d.modifyReason=JSON.parse(I.content))}catch(e){console.error("modifyReason parse fail",I.content),d.modifyReason=null}}u&&u.length>0&&void 0===v&&(d.instanceIdList=u.filter((e=>e!==p)),d.instanceIdList.length>0&&(g===ua.d.REJECTED||g===ua.d.WITHDRAW?(d.originalStatus=g,d.instanceStatus=ua.d.APPROVED):g===ua.d.APPROVED&&(d.originalStatus=ua.d.APPROVED,d.instanceStatus=ua.d.WITHDRAW))),null!=j&&j.length&&void 0===O&&(g!==ua.d.MODIFY_APPROVED&&g!==ua.d.MODIFY_WITHDRAW&&g!==ua.d.MODIFY_REJECT&&g!==ua.d.MODIFY_IN_PROCESS||(d.instanceStatus=ua.d.APPROVED,d.originalModifyStatus=g)),a.processType=d.processType,a.definitionInfo={approvalId:String(d.approvalDefinitionId),approvalName:d.approvalName,approvalCode:""},a.instanceInfo=d,a.checkAttendandeSeal(),a.innerDefinitions=a.instanceInfo.innerDefinitions,a.innerInstances=a.instanceInfo.innerInstances,a.isRollbackToStart=a.verifyIsRollbackToStart(a.instanceInfo),ba({detailOrApprovalDefine:d,form:JSON.parse((null==d?void 0:d.form)||""),from:"create",source:"detail",isRollbackToStart:a.isRollbackToStart}),a.previewListManager.setFlowListData(d.previewNodes),a.instanceInfo.chatId?a.fetchChatGroupInfo(a.instanceInfo.instanceId,l):a.chatGroupInfo=null,a.currentNodeApproverList=[],a.initWidgetsPermission(d.fieldPrivilege&&JSON.parse(d.fieldPrivilege)),a.previewListManager.setConditionWidgetIdList(d.conditionWidgetIdList||[]);var C=JSON.parse(d.form),x=JSON.parse(d.content);console.log("fakeLogTime instance content length",d.content.length),a.setApplyData(x),a.instanceInfo.creatorDepartmentPathStr=a.formaDepartmentListStr(a.instanceInfo.creatorDepartmentList.slice()),a.clearWidgets(),a.parentId||(a.maskLoading=!0),C.fields=a.fieldLinkageManager.initLinkage(C.fields,C.widgetRelation),a.widgets=a.widgetsInputFormat(C.fields),a.addAllWidgetDescendantsToMap(),a.displayConditionManager.initialize(C.displayCondition,C.fields),a.handleAddSignGroupConditionManager(),a.widgetsRestoreFormat(x),a.widgetsBeforeInitFinish(),Object(M.h)(a.widgets,b.c.AMOUNT_INPUT)&&F.a.getCurrencyList(),Object(M.h)(a.widgets,b.c.RELATIVE_APPROVAL)&&h.c.MGetDetail({Requests:[{Symbol:{TaskID:a.instanceInfo.taskId,InstanceID:a.instanceInfo.instanceId,ShareCode:a.instanceInfo.shareCode},Fields:[1,2,3],Mode:3}]}),Object(Ft.h)(["pc_detail_feishu_".concat(sa.b.indexStore.detailByTask?"task":"list"),"feishu"]),Ir("detailLoadFinish",{instanceId:p}),Ir("detailLoadFeEnd",{instanceId:p})}finally{a.instanceLoading=!1}}))()}checkAttendandeSeal(){var e=this;return Object(i.a)((function*(){if(e.attendanceSeal={isSeal:!1,tooltip:""},e.instanceInfo){var{instanceStatus:t}=e.instanceInfo;try{t!==ua.d.IN_PROCESS&&(e.attendanceSeal=yield Object(Qe.a)(e.instanceInfo))}catch(e){}}}))()}verifyIsRollbackToStart(e){if(!e||!e.currentTask)return!1;var{currentTask:{genType:t,nodeId:a}}=e;return a===ua.f.START}isWidgetSupportCrossTenant(e){return!this.widgetNotSupportCrossTenant||!this.widgetNotSupportCrossTenant[e]}*_fetchOriginalInstance(e){var t=yield h.c.instanceinstanceProcess({instanceId:e,parentId:this.parentId,shareCode:this.instanceInfo.shareCode},this.queryPath);t.data||B.a.error("instanceProcess error");var a=this.formatInstanceProcessRes(t.data);return this.originalProcessMap.set(e,{instanceInfo:a}),a}formatInstanceProcessRes(e){try{var t,a,r,i;if(null===(t=e.newComments)||void 0===t||t.forEach((e=>{e.content=Cr(e.content)})),null===(a=e.timeline)||void 0===a||a.forEach((e=>{e.newComment&&(e.newComment.content=Cr(e.newComment.content))})),null===(r=e.eventList)||void 0===r||r.forEach((e=>{var t,a;e.newComment&&(e.newComment.content=Cr(e.newComment.content)),null===(t=e.adviseDoneUserList)||void 0===t||t.forEach((e=>{e.newComment&&(e.newComment.content=Cr(e.newComment.content))})),null===(a=e.advisePendingUserList)||void 0===a||a.forEach((e=>{e.newComment&&(e.newComment.content=Cr(e.newComment.content))}))})),null!==(i=e.newRevertReason)&&void 0!==i&&i.content&&(e.newRevertReason.content=Cr(e.newRevertReason.content)),e.modifyReason){var n=e.modifyReason;n.content&&(e.modifyReason=JSON.parse(n.content))}return e}catch(t){return Ir("commonOnError",{location:"in function formatInstanceProcessRes at src/stores/configurable-form-store/index.ts",message:Object(va.a)(t)}),console.error("parse instance process err",Object(va.a)(t)),e}}*_fetchChatGroupInfo(e,t){try{if(this.parentId)return;var a=yield h.c.chatgetChat({instanceId:e},this.queryPath);a.data||B.a.error("getChat error"),this.chatGroupInfo=a.data,this.getChatGroupInfoError=!1}catch(e){this.chatGroupInfo=null,this.getChatGroupInfoError=!0,Ir("commonOnError",{location:"in function fetchChatGroupInfo at src/stores/configurable-form-store/index.ts",message:Object(va.a)(e)})}}*_fetchNodeHistory(e){if(e){if(!this.parentId)try{var t=yield h.c.instancehistoryApprovalNodeWithStartApi({instanceId:e},this.queryPath);t.data||B.a.error("historyApprovalNode error"),this.approvalNodeDTOList=t.data.approvalNodeDTOList,t.data.insteadCreator&&this.approvalNodeDTOList.forEach((e=>{"START"===e.nodeId&&(e.insteadCreator=t.data.insteadCreator)}))}catch(e){this.approvalNodeDTOList=[],Ir("commonOnError",{location:"in function fetchNodeHistory at src/stores/configurable-form-store/index.ts",message:Object(va.a)(e)})}}else this.approvalNodeDTOList=[]}*_fetchCurrentNodeApproverList(e,t){if(e)if(t){if(this.parentId)return;try{var a=yield h.c.instancegetApproverList({instanceId:e,taskId:t},this.queryPath);a.data||B.a.error("getApproverList error"),this.currentNodeApproverList=a.data.approverUserList}catch(e){this.currentNodeApproverList=[],Ir("commonOnError",{location:"in function fetchCurrentNodeApproverList at src/stores/configurable-form-store/index.ts",message:Object(va.a)(e)})}}else this.currentNodeApproverList=[];else this.currentNodeApproverList=[]}editCreatorDepartmentList(e){if(e&&e.length>0){var t=e.find((e=>"userDepartment"===e.id));t&&t.value&&t.value.text&&this.instanceInfo&&(this.instanceInfo.creatorDepartmentList=[t.value.text])}}manualInitWithRestore(e,t){this.clearWidgets(),this.initWidgetsPermission(void 0);var a=null==t?void 0:t.find((e=>e.type===b.c.LEAVE_GROUP_V2));a?(a.value=a.value.filter((e=>e.value)),this.widgets=this.widgetsInputFormat(t||[])):this.widgets=this.widgetsInputFormat(e),this.addAllWidgetDescendantsToMap(),t&&this.widgetsRestoreFormat(t),this.displayConditionManager.initialize(),this.widgetsBeforeInitFinish()}getOutputParams(){var{options:{userStore:e}}=this;if(!this.definitionInfo)return null;var t,a,{approverManager:r,rapidDefApproversWidgetId:i,rapidDefCcsWidgetId:n,rapidDefinitionNodeId:o,instanceInfo:s}=this,c={},l={},d=this.category===y.f.RAPID;if(!d&&e.isGTEGrayVersion(8)){t=r.getFreeApproverIds(),a=r.getFreeCcerIds();var u=r.getFlowNodeIds();for(var p in u)this.previewListManager.idNodeInNodeSet(p)&&(c[p]=u[p]);Ir("submitFormBeforeRequest",{step:"自选审批节点nodeApprovers处理",nodeApprovers:c,instanceId:null==s?void 0:s.instanceId,taskId:null==s?void 0:s.taskId})}d&&this.rapidDefinitionNodeId&&(c[o]=[],l[o]=[],Ir("submitFormBeforeRequest",{step:"极速审批流程nodeApprovers处理",nodeApprovers:c,instanceId:null==s?void 0:s.instanceId,taskId:null==s?void 0:s.taskId}));var m="";l=this.approverManager.getCcNodeIds();var h=[...this.widgetsOutputFormat().filter((e=>{switch(e.id){case Qa:return t=e.value,!1;case Ga:return a=e.value,!1;case i:return c[o]=e.value,!1;case n:return l[o]=e.value,!1}return d||e.type!==b.c.APPROVALER?!(!d&&e.type===b.c.CCER&&(l[e.id]=e.value,1)):(c[e.id]=e.value,!1)})).filter((e=>Boolean(e.value)||!e.displayCondStatus)).filter((e=>{if(e.id===Sa.a){var{value:t}=e;t&&Array.isArray(t)&&t.length>0&&(m=t[0].id)}return!(e.id===A.a||e.id===Sa.a)}))],g=this.previewListManager.hasExternalUser(),{approverIds:v,ccIds:j}=this.previewListManager.getApproverIdsAndCcIds(g);return B.a.info("hasExternalUser hasExternal",g),{approvalDefinitionId:this.definitionInfo.approvalId,approverIds:g?Array.from(new Set((t||[]).concat(v))):t,ccIds:g?Array.from(new Set((a||[]).concat(j))):a,versionId:this.versionId,form:JSON.stringify(h),nodeApprovers:c,nodeCcs:l,departmentId:this.userDepartmentManager.departmentId,imitateUserId:m,hasExternal:g}}setParentId(e){this.parentId=e}createChatgroup(e){return h.c.chatchatEnter({procInstId:e},this.queryPath)}addChatter(e){return h.c.chatchatEnter({procInstId:e},this.queryPath)}outputForPrint(){var e=Object(l.u)(this.widgets);return Ir("printFormatWidgets",e),this.widgetsPrintFormat(this.widgets).filter((e=>{var{label:t,value:a,isBlock:r,isBlankLine:i}=e;return!!(r&&t||i)||!(null==a||""===a)}))}getWidgetChangeType(e,t){return e&&t?b.a.BOTH:e?b.a.EDIT:t?b.a.MODIFY:b.a.NONE}addFakeDepartmentWidget(){if(!this.getWidget(A.a,!1)){var e=this.userDepartmentManager.generateFakeWidget,t=this.widgetInputFormat(e);this.widgets.splice(1,0,t),this.addWidgetDescendantsToMap(this.widgets[1])}}removeFakeDepartmentWidget(){var e=this.getWidget(A.a,!1);if(e){var t=this.widgets.findIndex((e=>e.id===A.a));t>-1&&this.widgets.splice(t,1),this.removeWidgetDescendantsToMap(e)}}notifyOnInsteadSubmitChange(e){for(var t of this.listenInsteadSubmitWidgetIdSet){var a=this.getWidget(t);if(!a)return;var r=oa(a.type,a.data.option);r.onSubmitterChange&&r.onSubmitterChange(e,a,this)}}checkInsteadSubmitPermission(){var e=this;return Object(i.a)((function*(){if(e.insteadSubmitManager.currentSubmitterIsNotCurrentUser)try{var t,a=yield h.c.checkSubmitPermission({imitateUserId:e.insteadSubmitManager.currentSubmitterId,approvalDefinitionId:null===(t=e.definitionInfo)||void 0===t?void 0:t.approvalId});return a&&a.data&&a.data.allowSubmit}catch(e){return!1}return!0}))()}getInsteadSubmitUserName(){var e=this.widgetsOutputFormat().find((e=>e.id===Sa.a));if(e){var{value:t}=e;if(t&&Array.isArray(t)&&t.length>0)return t[0].name}return""}initResubmitTraceData(e,t,a){var{approvalId:r,approvalIsChange:i,changeCount:n,changeWidgetType:o=[]}=t;this.resubmitTraceData={approvalId:r,instanceId:e,approvalIsChange:i?1:0,changeCount:n,fetchTime:a,changeWidgetType:o.join(",")}}getWidgetType(){var e=new Set;return this.idWidgetMap.forEach((t=>{e.add(t.type)})),Array.from(e).join(",")}},$a=Object(c.a)(Xa.prototype,"definitionInfo",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),er=Object(c.a)(Xa.prototype,"instanceInfo",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),tr=Object(c.a)(Xa.prototype,"currentNodeApproverList",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ar=Object(c.a)(Xa.prototype,"nodeList",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),rr=Object(c.a)(Xa.prototype,"applyDepartment",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(c.a)(Xa.prototype,"setApplyData",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"setApplyData"),Xa.prototype),ir=Object(c.a)(Xa.prototype,"params",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Object(c.a)(Xa.prototype,"setParams",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"setParams"),Xa.prototype),Object(c.a)(Xa.prototype,"queryPath",[l.h],Object.getOwnPropertyDescriptor(Xa.prototype,"queryPath"),Xa.prototype),nr=Object(c.a)(Xa.prototype,"changeParams",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.params=Object(o.a)(Object(o.a)({},this.params),e)}}}),or=Object(c.a)(Xa.prototype,"approverSelectorProps",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{limitType:y.a.All,chosenUsers:[],multiple:!0,visible:!1,nodeId:"0",onSelect:e=>{this.chooseApproverResolver&&(this.chooseApproverResolver(e),this.chooseApproverResolver=null)}}}}),sr=Object(c.a)(Xa.prototype,"resubmitTraceData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{approvalId:"",instanceId:"",approvalIsChange:0,changeCount:0,changeWidgetType:"",fetchTime:0}}}),Object(c.a)(Xa.prototype,"onApproverSelectorVisibleChange",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"onApproverSelectorVisibleChange"),Xa.prototype),Object(c.a)(Xa.prototype,"showApproverSelector",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"showApproverSelector"),Xa.prototype),cr=Object(c.a)(Xa.prototype,"widgets",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),lr=Object(c.a)(Xa.prototype,"scrollTop",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dr=Object(c.a)(Xa.prototype,"approvalNodeDTOList",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ur=Object(c.a)(Xa.prototype,"instanceLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pr=Object(c.a)(Xa.prototype,"maskLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mr=Object(c.a)(Xa.prototype,"chatGroupInfo",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hr=Object(c.a)(Xa.prototype,"getChatGroupInfoError",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),br=Object(c.a)(Xa.prototype,"isSubmitted",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),gr=Object(c.a)(Xa.prototype,"originalProcessMap",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),vr=Object(c.a)(Xa.prototype,"isLeaderHintVisible",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jr=Object(c.a)(Xa.prototype,"unValidExtraWidgetName",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Or=Object(c.a)(Xa.prototype,"widgetRelationString",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(c.a)(Xa.prototype,"resetOptionsExtraNameAndLoading",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"resetOptionsExtraNameAndLoading"),Xa.prototype),fr=Object(c.a)(Xa.prototype,"showLeaderHintDialog",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>new Promise((e=>{this.isLeaderHintVisible=!0,this.leaderHintResolver=e}))}}),Mr=Object(c.a)(Xa.prototype,"closeLeaderHintDialog",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.isLeaderHintVisible=!1,this.leaderHintResolver(),this.leaderHintResolver=u.a}}}),Object(c.a)(Xa.prototype,"clearWidgets",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"clearWidgets"),Xa.prototype),Object(c.a)(Xa.prototype,"clearAll",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"clearAll"),Xa.prototype),Object(c.a)(Xa.prototype,"setValidationError",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"setValidationError"),Xa.prototype),_r=Object(c.a)(Xa.prototype,"validationPrompts",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Object(c.a)(Xa.prototype,"updateValidationPrompts",[Ja],Object.getOwnPropertyDescriptor(Xa.prototype,"updateValidationPrompts"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetRestoreFormat",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetRestoreFormat"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetRestoreWithDraftFormat",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetRestoreWithDraftFormat"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetRestoreWithCopy",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetRestoreWithCopy"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetsRestoreWithCopyFormat",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetsRestoreWithCopyFormat"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetsRestoreWithDraftFormat",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetsRestoreWithDraftFormat"),Xa.prototype),Object(c.a)(Xa.prototype,"triggerAfterRestore",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"triggerAfterRestore"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetsRestoreFormat",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetsRestoreFormat"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetsPrintFormat",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetsPrintFormat"),Xa.prototype),Object(c.a)(Xa.prototype,"widgetsPrintFormatToForm",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"widgetsPrintFormatToForm"),Xa.prototype),Object(c.a)(Xa.prototype,"resetWidgetData",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"resetWidgetData"),Xa.prototype),Object(c.a)(Xa.prototype,"restoreWidgetWithDefaultData",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"restoreWidgetWithDefaultData"),Xa.prototype),Object(c.a)(Xa.prototype,"addWidgetsToReadableSet",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"addWidgetsToReadableSet"),Xa.prototype),Object(c.a)(Xa.prototype,"addWidgetsToWritableSet",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"addWidgetsToWritableSet"),Xa.prototype),Object(c.a)(Xa.prototype,"deleteWidgetsToReadableSet",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"deleteWidgetsToReadableSet"),Xa.prototype),Object(c.a)(Xa.prototype,"deleteWidgetsToWritableSet",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"deleteWidgetsToWritableSet"),Xa.prototype),Object(c.a)(Xa.prototype,"setInstanceLoading",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"setInstanceLoading"),Xa.prototype),Object(c.a)(Xa.prototype,"fetchInstanceCb",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"fetchInstanceCb"),Xa.prototype),yr=Object(c.a)(Xa.prototype,"attendanceSeal",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{isSeal:!1,tooltip:""}}}),Object(c.a)(Xa.prototype,"checkAttendandeSeal",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"checkAttendandeSeal"),Xa.prototype),Object(c.a)(Xa.prototype,"manualInitWithRestore",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"manualInitWithRestore"),Xa.prototype),Dr=Object(c.a)(Xa.prototype,"showBatchingMask",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Nr=Object(c.a)(Xa.prototype,"setShowBatchingMask",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.showBatchingMask=e}}}),Object(c.a)(Xa.prototype,"addFakeDepartmentWidget",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"addFakeDepartmentWidget"),Xa.prototype),Object(c.a)(Xa.prototype,"removeFakeDepartmentWidget",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"removeFakeDepartmentWidget"),Xa.prototype),Object(c.a)(Xa.prototype,"notifyOnInsteadSubmitChange",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"notifyOnInsteadSubmitChange"),Xa.prototype),Object(c.a)(Xa.prototype,"checkInsteadSubmitPermission",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"checkInsteadSubmitPermission"),Xa.prototype),Object(c.a)(Xa.prototype,"initResubmitTraceData",[l.f],Object.getOwnPropertyDescriptor(Xa.prototype,"initResubmitTraceData"),Xa.prototype),Xa)},function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return r}));var r,i="/api/rulemanager/seal_rule/check_user_in_seal_rule_ban_operation";!function(e){e[e.Remedy=1]="Remedy",e[e.Leave=2]="Leave",e[e.Trip=3]="Trip",e[e.Out=4]="Out",e[e.Overtime=5]="Overtime",e[e.UpdateClockInResult=6]="UpdateClockInResult",e[e.UpdateShiftArrange=7]="UpdateShiftArrange",e[e.SwapShift=8]="SwapShift"}(r||(r={}))},,function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(6);var i=new class{constructor(){var e,t;Object(r.a)(this,"manager",null===(e=(t=tt).createMessageManager)||void 0===e?void 0:e.call(t)),Object(r.a)(this,"channelMap",new Map),Object(r.a)(this,"setChannel",((e,t)=>{console.debug(">>> message-bus setChannel",e,t),this.channelMap.set(e,t)})),Object(r.a)(this,"getChannel",(e=>this.channelMap.get(e))),Object(r.a)(this,"transferMessage",((e,t)=>{this.manager.transferMessage({channel:t,data:e})})),Object(r.a)(this,"onTransferMessage",(e=>{var t;null===(t=this.manager)||void 0===t||t.onTransferMessage(e)})),Object(r.a)(this,"offTransferMessage",(e=>{var t;null===(t=this.manager)||void 0===t||t.offTransferMessage(e)})),Object(r.a)(this,"dispose",(()=>{this.channelMap.clear()})),Object(r.a)(this,"hasChannel",(e=>{for(var t of this.channelMap.values())if(e===t)return!0;return!1}))}}},function(e,t,a){e.exports={"text-ellipsis":"index-module__text-ellipsis___1m42s",skeleton:"index-module__skeleton___1uszI","skeleton-loading":"index-module__skeleton-loading___2IuBR","flow-card":"index-module__flow-card___2M8iW","flow-card-empty":"index-module__flow-card-empty___xcGVz",icon:"index-module__icon___1chCe",right:"index-module__right___1EZBJ",share:"index-module__share___1jxMl",disabled_share:"index-module__disabled_share___3Evmr",image:"index-module__image___2ZV_f","empty-image":"index-module__empty-image___2AA_X",name:"index-module__name___3DQnV","empty-name":"index-module__empty-name___1HjHY",container:"index-module__container___1vGHa","empty-share":"index-module__empty-share___1_rqw","hover-title":"index-module__hover-title___IW3Bf","hover-content":"index-module__hover-content___2_Sjr"}},,,,function(e,t,a){e.exports=a.p+"assets/illustration/loading.gif"},function(e,t,a){"use strict";a(3);var r=a(1),i=a(124),n=a(8),o=a.n(n),s=(a(1167),a(0));t.a=e=>{var{visible:t=!1,onMaskClick:a=i.a,children:n,showMask:c=!0,zIndex:l=99,style:d}=e;return Object(s.jsxs)(r.r,{className:o()("approval-modal",{visible:t}),style:{zIndex:l},children:[c&&Object(s.jsx)(r.r,{className:"mask",onClick:a,style:d}),n]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return M}));var r=a(9),i=a(1),n=a(3),o=a.n(n),s=a(65),c=a(10),l=a(778),d=a.n(l),u=a(0),p=1,m=()=>(p+1===Number.MAX_SAFE_INTEGER&&(p=1),p++),h="text-real-width",b=e=>"".concat(h,"-").concat(e),g=e=>"#".concat(h,"-").concat(e),v=new Map,j=new Map,O=function(){var e=Object(r.a)((function*(e,t,a){var r=yield Object(s.a)(g(e));if(a&&j.has(e)){var i=j.get(e);return(null==r?void 0:r.width)<i}var n=yield Object(s.a)(g(t));return a&&j.set(e,null==n?void 0:n.width),(null==r?void 0:r.width)<(null==n?void 0:n.width)}));return function(t,a,r){return e.apply(this,arguments)}}(),f=function(){var e=Object(r.a)((function*(e,t,a,r){var i=yield O(e,t,r);r&&v.set(e,i),a(i)}));return function(t,a,r,i){return e.apply(this,arguments)}}(),M=o.a.forwardRef(((e,t)=>{var{text:a,id:o,customStyle:s}=e,l=Object(n.useMemo)((()=>o||m()),[o]),p=Object(n.useMemo)((()=>m()),[]);return Object(n.useImperativeHandle)(t,(()=>({isTextEllipsis:function(){var e=Object(r.a)((function*(e){var{cache:t=!0,resize:a}=null!=e?e:{};if(!a&&t&&v.has(l))return c.a.info("isTextEllipsis 命中缓存",l),v.get(l);var r=yield O(l,p,t);return t&&(!a&&v.has(l)&&c.a.info("isTextEllipsis ID重复",l),v.set(l,r)),r}));return function(t){return e.apply(this,arguments)}}(),delayQuery:e=>{var{delay:t=0,onDelayQuery:a,cache:r=!0,resize:i}=null!=e?e:{};if(a&&"function"==typeof a){if(!i&&r&&v.has(l))return c.a.info("delayQuery 命中缓存",l),a(v.get(l));r&&!i&&v.has(l)&&c.a.info("delayQuery ID 重复",l),t<=0?f(l,p,a,r):setTimeout((()=>{f(l,p,a,r)}),t)}}})),[l,p]),Object(u.jsxs)(i.r,{className:d.a["text-ellipsis"],style:s,children:[Object(u.jsx)(i.r,{id:b(l),className:d.a.text,children:a}),Object(u.jsx)(i.r,{id:b(p),className:"text-real-width",children:a})]})}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(9),i=a(241);function n(e){return o.apply(this,arguments)}function o(){return o=Object(r.a)((function*(e){var{api:t,params:a,option:r,cacheOpenId:n=!0}=e;console.log("before userqueryUsers");var o=yield t.userqueryUsers(a,r);if(console.log("after userqueryUsers result",o),n&&o.data){var{userList:s=[]}=o.data;s.forEach((e=>i.a.set(String(e.userId),e.openId)))}return o})),o.apply(this,arguments)}},function(e,t,a){"use strict";var r=a(9),i=a(17),n=a(16),o=a(39),s=a(19),c=a.n(s),l=a(10),d=a(12),u=a(155),p=a(241),m=function(e,t){if(!o.e)return tt.enterProfile({openid:e});c.a.createSelectorQuery().select(t).boundingClientRect((a=>{if(!a)throw new Error("[src/utils/open-profile.ts] Can't find the element with selecotr ".concat(t));var{top:r,bottom:i,left:n,right:o}=a;tt.enterProfile({openid:e,top:(Number(r)+Number(i))/2,left:(Number(n)+Number(o))/2})})).exec()},h=function(){var e=Object(r.a)((function*(e){var{userId:t,openId:a,selector:r=""}=e;if(t||a){if(a)return m(a,r);var o=p.a.get(t);if(o)return m(o,r);try{var s=yield Object(u.a)({api:n.c,params:{userIds:[t]},cacheOpenId:!0}),{userList:c}=s.data;if(c.length){var h=c[0].openId;h&&m(h,r)}}catch(e){l.a.error("[src/utils/open-profile.ts]",e),Object(d.b)(i.f.ApprovalError,{location:"in function openProfile at src/utils/open-profile.ts",message:JSON.stringify(e)})}}}));return function(t){return e.apply(this,arguments)}}();t.a=h},,function(e,t,a){e.exports={"ud-like-modal":"index-module__ud-like-modal___9RNK6","ud-like-modal--new-ud-style":"index-module__ud-like-modal--new-ud-style___1b9N1","ud-like-close_icon":"index-module__ud-like-close_icon___3sTcl","ud-like-close_icon--new-ud-style":"index-module__ud-like-close_icon--new-ud-style___1qWF4","ud-like-modal__title":"index-module__ud-like-modal__title___1jsuf","ud-like-modal__title__icon":"index-module__ud-like-modal__title__icon___QeYYl","ud-like-modal__title__icon-warning":"index-module__ud-like-modal__title__icon-warning___jLIQl","ud-like-modal__title__icon--new-ud-style":"index-module__ud-like-modal__title__icon--new-ud-style___2Ll7O","ud-like-modal__title__content":"index-module__ud-like-modal__title__content___17AZO","ud-like-modal__header":"index-module__ud-like-modal__header___2Dn2e","ud-like-modal__body":"index-module__ud-like-modal__body___2fl9d","ud-like-modal__body--new-ud-style":"index-module__ud-like-modal__body--new-ud-style___2Ne99","ud-like-modal__footer":"index-module__ud-like-modal__footer___3zdm9","ud-like-modal__footer__buttons":"index-module__ud-like-modal__footer__buttons___3CxCK","ud-like-modal__button":"index-module__ud-like-modal__button___16vLT","loading-wrap":"index-module__loading-wrap___25ag2"}},,,function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return d})),a.d(t,"c",(function(){return u}));var r=a(387),i=a(423),n=a(84),o=a(33),s=a(29);function c(e,t){return function(e,t){var{type:a,data:n}=t;if(!Object(r.a)(n)&&!Object(i.a)(n))return!1;var o=Number(n);switch(a){case s.d.EGT:return e>=o;case s.d.ELT:return e<=o;case s.d.EQ:return e===o;case s.d.GT:return e>o;case s.d.LT:return e<o;default:return!0}}(e?Number(e):NaN,t)}function l(e,t){var{type:a,data:r}=t;switch(a){case s.d.IS:return e==="".concat(r);case s.d.NOT:return e!=="".concat(r);default:return!0}}function d(e,t){return function(e){switch(e){case s.d.EGT:case s.d.ELT:case s.d.EQ:case s.d.GT:case s.d.LT:return!0;default:return!1}}(t.type)?c(e,t):l(e,t)}function u(e,t){var{type:a,data:r}=t;if(!Object(n.a)(r))return!1;var i=new Set(e),c=new Set(r);switch(a){case s.d.IS:return!Object(o.u)(c,i).size;case s.d.NOT:return i.size===Object(o.u)(i,c).size;default:return!0}}},function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return d}));var r=a(36),i=a(1),n=(a(3),a(780)),o=a.n(n),s=a(0),c=e=>{var{userId:t,userName:a,children:n,customStyle:c}=e;return Object(s.jsx)(i.r,{className:o.a.userName,style:c,onClick:e=>{Object(r.q)(t,e)},children:null!=a?a:n},t)},l=(e,t,a)=>Object(s.jsx)(c,{userId:e,customStyle:a,children:t}),d=(e,t,a)=>e?Object(s.jsx)(c,{userId:e,children:Object(s.jsx)(i.r,{className:o.a.cardUserNav,style:a,children:t})}):""},function(e,t,a){"use strict";a.d(t,"b",(function(){return C})),a.d(t,"c",(function(){return x})),a.d(t,"a",(function(){return S}));var r,i,n,o,s,c=a(5),l=a(9),d=a(17),u=a(2),p=a(1),m=a(3),h=a(20),b=a(599),g=a.n(b),v=a(25),j=a(252),O=a(10),f=a(12),M=a(296),_=a(206),y=a(726),D=a(81),N=a(790),A=a.n(N),T=a(0),I=null===(r=(i=tt).createMessageManager)||void 0===r?void 0:r.call(i);null==I||I.onTransferMessage((e=>{var t,a,r,{channel:i,data:c}=e;i===(null===(t=o)||void 0===t?void 0:t.channel)&&(_.a.commitMsg("drawer",c),Object(y.a)(c,{active:n,onFinished:null===(a=s)||void 0===a?void 0:a.onFinished,onPreventAutoNext:null===(r=s)||void 0===r?void 0:r.onPreventAutoNext}).then((e=>{null==I||I.transferMessage({channel:i,data:e})})).catch((e=>{null==I||I.transferMessage({channel:i,data:e})})))}));var C=function(){var e=Object(l.a)((function*(e,t){return!e.intranetAccess||j.a.isInternalNetWork||j.a.isRunning||(yield j.a.startPolling()),e.intranetAccess&&!j.a.isInternalNetWork?Promise.resolve():Promise.resolve().then((()=>{if("browser"===e.type&&Object(D.g)({schema:e.browserInfo.url,external:!0}),"drawer-miniapp"===e.type)return Object(D.f)({type:"app",width:"sidebar-semi"===e.appInfo.mode?350:500,appInfo:e.appInfo}).then((e=>{var{channel:t}=e;return{type:"drawer-miniapp",channel:t}}));if("drawer-webview"===e.type){var{title:t}=e.webviewInfo,a=t||(e.sourceName?Object(u.t)("PC.BarTitle",{Source:e.sourceName}):"");return Object(D.f)({type:"webview",webviewInfo:Object(c.a)(Object(c.a)({},e.webviewInfo),{},{title:v.d.isHiddenSource?Object(u.t)("PC.BarTitle",{Source:"OA"}):a}),offset:56}).then((e=>{var{channel:t}=e;return{type:"drawer-webview",channel:t}}))}})).then((a=>{n=e,o=a,t&&(s=t)}))}));return function(t,a){return e.apply(this,arguments)}}(),x=()=>Object(D.a)({}).then((()=>{n=null,o=null,s=null})),S=e=>{var{data:t}=e;return Object(m.useEffect)((()=>{Object(h.h)("pc_detail_drawer")}),[]),Object(T.jsxs)(M.a,{imgSrc:g.a,children:[Object(T.jsx)(p.r,{className:A.a["drawer-hint"],children:"browser"===t.type?Object(u.t)("PC.DetailBrowserHint"):Object(u.t)("PC.DetailDrawerHint")}),Object(T.jsx)(p.r,{className:A.a["drawer-button"],onClick:()=>{try{var e,a,r,i,n,o;Object(f.b)(d.f.ApprovalDrawerViewDetail,{TaskStatus:null===(e=t.listCard)||void 0===e?void 0:e.TaskStatus,ProcessStatus:null===(a=t.listCard)||void 0===a?void 0:a.ProcessStatus,SourceName:null===(r=t.listCard)||void 0===r?void 0:r.SourceName,ID:null===(i=t.listCard)||void 0===i?void 0:i.ID,ProcessID:null===(n=t.listCard)||void 0===n?void 0:n.ProcessID,TaskId:null===(o=t.listCard)||void 0===o?void 0:o.TaskID})}catch(e){Object(f.b)(d.f.ApprovalError,{location:"in function onClick at src/pc-pages/index/components/detail-module/drawer-sidebar/index.tsx",message:JSON.stringify(e)}),O.a.error(e)}C(t)},children:"browser"===t.type?Object(u.t)("PC.OpenDetailBrowser"):Object(u.t)("PC.OpenDetailDrawer")})]})}},function(e,t,a){"use strict";var r=a(1),i=(a(3),a(8)),n=a.n(i),o=a(26),s=(a(1183),a(0));t.a=function(e){var{value:t="",highlight:a=!1,keepDecimalPlaces:i=2,size:c="medium",oneLine:l=!1}=e;if(!t)return null;var d=Object(o.l)(t,i);if("NaN"===d)return null;if(!a)return Object(s.jsx)(r.r,{className:n()("approval-capital-wrapper","approval-capital--".concat(c),{"approval-capital--oneline":l}),children:d});var u=d.split("");return Object(s.jsx)(r.r,{className:n()("approval-capital-wrapper","approval-capital--".concat(c),{"approval-capital--oneline":l}),children:u.map((e=>["亿","拾","佰","仟","万"].includes(e)?Object(s.jsx)(r.p,{className:"approval-capital-highlight",children:e}):Object(s.jsx)(r.p,{children:e})))})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return s}));var r=a(9),i=a(12),n=a(10),o={addAttachment:()=>Object(r.a)((function*(){Object(i.b)("approval_submit_attachment")}))(),uploadAttachment:e=>Object(r.a)((function*(){Object(i.b)("approval_submit_attachment_succeed",e),n.a.info("attachment-upload",e)}))(),submitAttachment:e=>Object(r.a)((function*(){Object(i.b)("approval_submit_attachment_count",e),n.a.info("attachment-submit",e)}))(),downloadAttachment(e){Object(i.b)("approval_download_attachment",e),n.a.info("attachment-download",e)}};function s(e){if(e)try{return Math.floor(Number(e)/1024/1024*100)/100}catch(e){n.a.info("size transformError",e)}return 0}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return o}));var r,i=a(6),n=a(12);!function(e){e[e.SYS_LAUNCH=0]="SYS_LAUNCH",e[e.LOGIN=1]="LOGIN",e[e.LOGIN_TT=2]="LOGIN_TT",e[e.LOGIN_API=3]="LOGIN_API",e[e.LOGIN_USER_INFO=4]="LOGIN_USER_INFO",e.PrintClickToShowModal="print_to_show_modal",e.GeneratePrintHtml="generate_print_html",e.FetchDetail="fetch_detail",e.FetchFlow="fetch_flow"}(r||(r={}));var o=new class{constructor(){Object(i.a)(this,"m",new Map),this.time(r.SYS_LAUNCH)}time(e){this.m.set(e,Number(new Date))}timeLog(e){var t=this.m.get(e);return void 0===t?-1:Number(new Date)-t}timeEnd(e,t){var a=this.timeLog(e);return this.m.delete(e),t&&Object(n.b)(t,{spend_time:a,label:e}),a}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return se}));var r=a(9),i=a(37),n=a(5),o=a(6),s=a(3),c=a.n(s),l=a(157),d=a(280),u=a(8),p=a.n(u),m=a(29),h=a(76),b=a(36),g=a(18),v=a(244),j=a(181),O=a(649),f=a.n(O),M=a(78),_=a(20),y=a(12),D=a(2),N=a(1),A=a(19),T=a.n(A),I=a(10),C=a(17),x=a(634),S=a.n(x),w=(a(1322),a(0));class L extends s.Component{getSizeStr(e){var t=1048576;return e>=t?"".concat((e/t).toFixed(1),"MB"):"".concat((e/1024).toFixed(1),"KB")}previewAndDownload(e){var t=this;return Object(r.a)((function*(){var{type:a,previewUrl:r,url:i,name:n}=e,{files:o=[]}=t.props;if(a===m.h.IMG)T.a.previewImage({urls:o.filter((e=>e.type===m.h.IMG)).map((e=>e.previewUrl)),current:r});else try{Object(b.d)({url:i,name:n})}catch(e){T.a.showToast({title:Object(D.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),Object(y.b)(C.f.ApprovalError,{location:"in function previewAndDownload at src/components/approval-detail/modals/components/editor/file-list/index.tsx",message:JSON.stringify(e)})}}))()}render(){var{files:e=[],onDelete:t,rightLastNoMargin:a=!0}=this.props;return Object(w.jsx)(N.r,{className:"editor-file-list-container",children:e.map(((e,r)=>{var i=e.status===g.v.UPLOADING?"scale(.5)":"none";return Object(w.jsxs)(N.r,{className:p()("item",a&&"no-margin-right"),children:[Object(w.jsx)(N.r,{className:"image-container",onClick:()=>{this.previewAndDownload(e)},children:e.type===m.h.IMG?Object(w.jsx)(N.g,{src:e.thumbUrl,mode:"aspectFill",style:{width:"80px",height:"80px",transform:i}}):Object(w.jsxs)(N.a,{children:[Object(w.jsx)(N.g,{src:e.thumbUrl,mode:"aspectFill",style:{width:"80px",height:"40px",transform:i}}),Object(w.jsxs)(N.r,{className:"attachment-info",children:[Object(w.jsx)(N.r,{className:"name",children:e.name}),Object(w.jsx)(N.r,{className:"size",children:this.getSizeStr(e.size)})]})]})}),Object(w.jsx)(N.r,{className:"delete",onClick:()=>{t(e.id)},children:Object(w.jsx)(N.g,{src:S.a,style:{width:"8px",height:"8px"}})})]},r)}))})}}var E=a(16),k=a(218),z=a(933),R=a.n(z),P=a(28),U=a(356),B=a(119),F=a(111),Y=a.n(F),Q=a(153),G=a(934),W=a.n(G),V=a(935),H=a.n(V),Z=a(237);function q(e){var{tip:t,qrCodeUrl:a,tipColor:r,onClick:i,canClickScaleQrcode:n,InnerComponent:o}=e,[c,l]=Object(s.useState)(!1);return Object(w.jsxs)(N.r,{className:Y.a.content,children:[Object(w.jsxs)(N.r,{className:Y.a["qr-code-wrapper"],onClick:e=>{i&&i(e)},children:[Object(w.jsx)(N.g,{src:a,className:Y.a.img,onClick:()=>{l(!c)}}),o]}),Object(w.jsx)(N.p,{className:Y.a.tip,style:{color:r},children:t}),n&&Object(w.jsx)(Q.a,{visible:c,showMask:!0,onMaskClick:()=>{l(!c)},children:Object(w.jsx)(N.g,{src:a,style:{width:"180px",height:"180px",zIndex:999999}})})]})}var K={[B.b.NOT_START]:{render(e){var{qrCodeUrl:t}=e;return Object(w.jsx)(q,{qrCodeUrl:t,tip:Object(D.t)("Signature_scan",{BRAND_DISPLAY_NAME:Object(D.t)(P.b)}),canClickScaleQrcode:!0})}},[B.b.DOING]:{render(e){var{qrCodeUrl:t}=e;return Object(w.jsx)(q,{qrCodeUrl:t,tip:Object(D.t)("Signature_use_on_phone"),InnerComponent:Object(w.jsx)(N.r,{className:Y.a.mask,children:Object(w.jsxs)(N.r,{className:Y.a["mask-inner-wrapper"],children:[Object(w.jsx)(N.g,{className:Y.a.img,src:H.a}),Object(w.jsx)(N.p,{className:Y.a.word,children:Object(D.t)("Signature_scan_success")})]})})})}},[B.b.EXPIRED]:{render(e,t){var{qrCodeUrl:a}=e,{onClick:r}=t;return Object(w.jsx)(q,{qrCodeUrl:a,tip:Object(D.t)("Signature_scan_error"),tipColor:"#F76964",onClick:r,InnerComponent:Object(w.jsx)(N.r,{className:Y.a.mask,children:Object(w.jsxs)(N.r,{className:Y.a["mask-inner-wrapper"],children:[Object(w.jsx)(N.g,{className:Y.a.img,src:W.a}),Object(w.jsx)(N.p,{className:Y.a.word,children:Object(D.t)("Signature_click_refresh")})]})})})}},[B.b.DONE]:{render(e){var{signatureUrl:t}=e,a=t;if(P.u){var r=Object(h.c)(t);a="".concat(t).concat("img"===Object(Z.b)(t)?r:"")}return Object(w.jsx)(N.g,{className:Y.a["signature-img"],src:a,mode:"aspectFit"})}}},J=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=K[e];return r&&r.render(t,a)};var X=Object(D.getCurrentLanguage)(),$=D.LANG.zh===X,ee=new class{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(o.a)(this,"timer",null),Object(o.a)(this,"duration",void 0),Object(o.a)(this,"immediately",void 0),this.duration=e,this.immediately=t}startPolling(e){this.timer||(this.immediately&&e(),this.timer=setInterval((()=>{e()}),this.duration))}stopPolling(){this.timer&&(clearInterval(this.timer),this.timer=null)}}(3e3),te=e=>{var{isLoop:t=!1,defaultValue:a,taskId:r,showReuse:i=!0,onChange:n}=e,{isReuseSignature:o,signatureUrl:c,signatureKey:l}=a,[d,u]=Object(s.useState)(o),[m,h]=(e=>{var{defaultValue:t,isReuseSignatureForFirstInto:a,signatureData:r}=e,{signatureUrl:i,isReuseSignature:n}=t,o=B.b.NOT_START;return i&&(a||n)&&(o=B.b.DONE),i&&!r.signatureUrl&&(o=B.b.DONE),Object(s.useState)(o)})(e),[b,g]=Object(s.useState)(""),[v,j]=Object(s.useState)(""),[O,f]=Object(s.useState)(c),[M,_]=Object(s.useState)(l);function y(){var e=encodeURIComponent("pages/signature-board/index?from=".concat(B.a.PC));return E.c.GenerateQrCode({taskId:r,applink:"https://".concat(Object(U.a)(),"/client/mini_program/open?appId=").concat(P.e,"&path=").concat(e)}).then((e=>{var t,a;return g(null===(t=e.data)||void 0===t?void 0:t.base64Result),j(null===(a=e.data)||void 0===a?void 0:a.qrCodeId),h(B.b.NOT_START),e})).catch((e=>{console.error("requestVerifyExpiration error",e)}))}function A(){return E.c.VerifyExpiration({taskId:r,qrCodeId:v,from:B.a.PC}).then((e=>{var t,a,r,i,n;return(null===(t=e.data)||void 0===t?void 0:t.status)===B.b.DONE&&(f(null===(i=e.data)||void 0===i?void 0:i.signatureUrl),_(null===(n=e.data)||void 0===n?void 0:n.signatureKey)),(null===(a=e.data)||void 0===a?void 0:a.status)===B.b.EXPIRED&&ee.stopPolling(),h(null===(r=e.data)||void 0===r?void 0:r.status),e})).catch((e=>{console.error("requestVerifyExpiration error",e),ee.stopPolling()}))}function I(){T.a.showModal({title:"",content:Object(D.t)("Signature_confirm_re_sign"),confirmText:Object(D.t)("ModalConfirmText"),cancelText:Object(D.t)("ModalCancelText"),success:e=>{e.confirm&&y().then((()=>{T.a.nextTick((()=>{ee.startPolling(A),j(""),_(""),f(""),n({signatureKey:"",signatureUrl:""})}))}))}})}Object(s.useEffect)((()=>(m===B.b.NOT_START&&y(),()=>{ee.stopPolling()})),[]),Object(s.useEffect)((()=>{m===B.b.NOT_START&&t&&v&&ee.startPolling(A),m===B.b.DONE&&(ee.stopPolling(),n({signatureKey:M,signatureUrl:O,isReuseSignature:d}))}),[v,m,t]);var C={};return $||(C={width:"100%"}),Object(w.jsxs)(N.r,{className:Y.a["signature-wrapper"],children:[Object(w.jsxs)(N.r,{className:Y.a.title,children:[Object(w.jsxs)(N.r,{className:Y.a.left,children:[Object(w.jsx)(N.r,{className:Y.a.label,children:Object(D.t)("Signature_title")}),Object(w.jsx)(N.r,{className:Y.a.isRequire,children:"*"})]}),m===B.b.DONE&&Object(w.jsxs)(N.r,{className:Y.a.right,onClick:()=>I(),children:[Object(w.jsx)(N.g,{src:R.a,className:Y.a["icon-pen"]}),Object(w.jsx)(N.p,{className:Y.a["re-signature"],children:Object(D.t)("Signature_rewrite")})]})]}),Object(w.jsx)(N.r,{className:p()({[Y.a["content-wrapper"]]:!0,[Y.a["not-finished"]]:m!==B.b.DONE}),style:C,children:J(m,{qrCodeUrl:b,signatureUrl:O},{onClick:()=>{m===B.b.EXPIRED&&y()}})}),i?Object(w.jsx)(N.r,{className:Y.a["form-wrapper"],children:Object(w.jsxs)(N.r,{className:Y.a["form-item"],children:[Object(w.jsx)(k.a,{className:Y.a["check-box"],style:{display:"flex"},value:"".concat(Number(d)),checked:d,onChange:()=>(u(!d),void n({isReuseSignature:!d})),color:"blue",size:"small",type:"square"}),Object(w.jsx)(N.p,{className:Y.a.word,children:Object(D.t)("Signature_agree")})]})}):null]})},ae=a(25),re=a(113),ie=(a(1323),a(14)),ne=["files","reminders"],oe=Object(_.c)("pc:src/components/approval-detail/modals/components/editor/index.tsx");class se extends s.Component{constructor(e){super(e),Object(o.a)(this,"SVGImages",{image:new M.c('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.666656 15.3334C0.666656 16.438 1.56209 17.3334 2.66666 17.3334H15.3333C16.4379 17.3334 17.3333 16.438 17.3333 15.3334V2.66675C17.3333 1.56218 16.4379 0.666748 15.3333 0.666748H2.66666C1.56209 0.666748 0.666656 1.56218 0.666656 2.66675V15.3334ZM2.33332 15.6667H15.6667V2.33342H2.33332V15.6667ZM6.49999 4.00008H3.99999V6.50008H6.49999V4.00008ZM12.6343 8.28243C13.1383 7.77846 14 8.1354 14 8.84812V13.4001C14 13.7315 13.7314 14.0001 13.4 14.0001H8.36519C8.33064 14.0001 8.29721 13.9974 8.265 13.9922L4.73026 13.9837C4.19641 13.9825 3.92995 13.337 4.30743 12.9595L6.82599 10.4409C7.13841 10.1285 7.64494 10.1285 7.95736 10.4409L9.21658 11.7002L12.6343 8.28243Z" fill="#3370FF"/></svg>',"#3370FF"),attach:new M.c('<svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.3213 5.98246L7.17103 11.1327C6.20857 12.0951 6.20857 13.6556 7.17103 14.6181C8.13349 15.5805 9.69395 15.5805 10.6564 14.6181L16.5146 8.75992C18.1141 7.16043 18.1141 4.56715 16.5146 2.96766C14.9151 1.36817 12.3218 1.36817 10.7223 2.96766L4.63229 9.05768C2.43559 11.2544 2.43559 14.8159 4.63229 17.0126C6.82899 19.2093 10.3905 19.2093 12.5872 17.0126L17.0101 12.5898C17.3355 12.2644 17.3355 11.7367 17.0101 11.4113C16.6846 11.0858 16.157 11.0858 15.8316 11.4113L11.4087 15.8341C9.8629 17.3799 7.35663 17.3799 5.8108 15.8341C4.26497 14.2883 4.26498 11.782 5.8108 10.2362L11.9008 4.14617C12.8494 3.19756 14.3874 3.19756 15.3361 4.14617C16.2847 5.09479 16.2847 6.63279 15.3361 7.58141L9.4779 13.4396C9.16632 13.7511 8.66113 13.7511 8.34954 13.4396C8.03795 13.128 8.03795 12.6228 8.34954 12.3112L13.4998 7.16097C13.8252 6.83553 13.8252 6.30789 13.4998 5.98246C13.1743 5.65702 12.6467 5.65702 12.3213 5.98246Z" fill="#3370FF"/></svg>',"#3370FF")}),Object(o.a)(this,"errorInfo",""),Object(o.a)(this,"showUploadHint",Object(l.a)((()=>{this.errorInfo&&(tt.showToast({title:this.errorInfo,icon:"error",duration:3e3}),this.errorInfo="")}),100));var{files:t=[],text:a="",reminders:r=[]}=e.defaultValue||{};this.state={uploadFiles:[...t],content:{text:a,reminders:r}}}render(){var{uploadFiles:e,content:t}=this.state,{taskId:a,textHeight:r,placeholder:i,maxLength:o,isNeedReason:s=!0,signatureData:c={},textareaStyle:l,placeholderStyle:d,defaultValue:u,enableReminder:p,isInModal:m=!0,showReuse:h=!0}=this.props,{signatureConfig:{requireSignature:b}={requireSignature:!1},isReuseSignature:v}=c,j=Object(n.a)(Object(n.a)({},c),u);return Object(w.jsxs)(N.r,{className:"editor-container",children:[s?ae.d.fgUseUncontrolledTextarea?Object(w.jsx)(le,{textHeight:r,placeholder:i,maxLength:o,textareaStyle:l,placeholderStyle:d,enableReminder:p,initContent:t,onChange:e=>this.onChange(e)}):Object(w.jsx)(ce,{textHeight:r,placeholder:i,maxLength:o,textareaStyle:l,placeholderStyle:d,enableReminder:p,initContent:t,onChange:e=>this.onChange(e)}):Object(w.jsx)(N.r,{}),this.renderUploadButton(),e&&e.length>0&&Object(w.jsx)(N.r,{className:"file-list",children:Object(w.jsx)(L,{files:e,onDelete:t=>{this.removeImage(t),this.setState({uploadFiles:e}),this.onChange({files:e})},rightLastNoMargin:m})}),e.some((e=>e.status===g.v.UPLOADING))&&Object(w.jsx)(N.r,{className:"mask"}),b&&Object(w.jsx)(te,{isLoop:!0,defaultValue:j,signatureData:c,taskId:a,isReuseSignatureForFirstInto:v,onChange:e=>{this.onChange(e)},showReuse:h})]})}getFileLen(){var{uploadFiles:e}=this.state;return{uploadedImgLen:e.reduce(((e,t)=>t.type===m.h.IMG?e+1:0),0),uploadedAttachmentLen:e.reduce(((e,t)=>t.type===m.h.ATTACH?e+1:0),0)}}renderUploadButton(){var{isNeedAttachment:e=!0,isInModal:t=!0,maxImgLen:a=1/0,maxAttachLen:r=1/0}=this.props,{SVGImages:{image:i,attach:n}}=this;if(!t)return this.renderUploadButtonNoBorder();var o="17px",s="20px",{uploadedImgLen:c,uploadedAttachmentLen:l}=this.getFileLen(),d=a-c,u=r-l;return e?Object(w.jsxs)(N.r,{className:"operations",children:[Object(w.jsxs)(N.r,{onClick:()=>{d&&this.handleUploadFile(m.h.IMG,d)},className:"operation upload-image ".concat(d?"":"disabled"),children:[Object(w.jsx)(N.g,{className:"normal",src:i.toDataUrl(d?"#646a73":"#bbbfc4"),style:{width:o,height:o}}),Object(w.jsx)(N.g,{className:"hover",src:i.toDataUrl("#3370FF"),style:{width:o,height:o}})]}),Object(w.jsxs)(N.r,{className:"operation ".concat(u?"":"disabled"),onClick:()=>{u&&this.handleUploadFile(m.h.ATTACH,u)},children:[Object(w.jsx)(N.g,{className:"normal",src:n.toDataUrl(u?"#646a73":"#bbbfc4"),style:{width:s,height:s}}),Object(w.jsx)(N.g,{className:"hover",src:n.toDataUrl("#3370FF"),style:{width:s,height:s}})]})]}):Object(w.jsx)(N.r,{})}renderUploadButtonNoBorder(){return Object(w.jsxs)(N.r,{className:"no-border-button-container",children:[Object(w.jsxs)(N.r,{className:"upload-button",onClick:()=>{this.handleUploadFile(m.h.IMG)},children:[Object(w.jsx)(N.r,{className:p()("iconfont","icon-image")}),Object(w.jsx)("text",{children:Object(D.t)("ApprovalForm.UploadImage")})]}),Object(w.jsxs)(N.r,{className:"upload-button",onClick:()=>{this.handleUploadFile(m.h.ATTACH)},children:[Object(w.jsx)(N.r,{className:p()("iconfont","icon-attachment")}),Object(w.jsx)("text",{children:Object(D.t)("ApprovalForm.UploadAttachment")})]})]})}onChange(e){var{files:t,reminders:a}=e,r=Object(i.a)(e,ne),{onChange:o,defaultValue:s}=this.props,{text:c,reminders:l,files:d}=s||{};a||r.text||this.setState({content:{text:c,reminders:l||[]}}),o(Object(n.a)({text:c,files:t?[...t]:[...d],reminders:a?[...a]:l?[...l]:[]},r))}chooseFile(e,t){return Object(r.a)((function*(){if(e===m.h.IMG){var a=yield new Promise(((e,a)=>{tt.chooseImage(Object(n.a)(Object(n.a)({},t),{},{success:t=>e(t),fail:e=>a(e)}))}));return a.tempFiles.map((e=>{var{path:t,size:a}=e;return{path:t,size:a}}))}return(yield Object(b.f)(t)).list}))()}handleUploadFile(e){var t=arguments,a=this;return Object(r.a)((function*(){var r=t.length>1&&void 0!==t[1]?t[1]:9,{uploadFiles:i}=a.state;oe(e===m.h.IMG?"operateUploadImage":"operateUploadAttachment");try{var n=e===m.h.IMG?{sourceType:["album"],count:r}:{maxNum:r},o=(yield a.chooseFile(e,n)).filter((t=>{var{size:r}=t;return!(!r||r>re.b&&(a.errorInfo=e===m.h.IMG?Object(D.t)("formImage.OversizeHintNew"):Object(D.t)("formAttachment.OversizeHint"),1))})).map((t=>{var{path:r,size:i,name:n}=t,o=Object(d.a)(),s=n||Object(h.b)(r).slice(44),c=Object(h.a)(s);return re.a.includes(c)?(a.errorInfo=Object(D.t)("formAttachment.nonsupportFormatHint"),null):{id:o,status:g.v.UPLOADING,url:r,thumbUrl:f.a,previewUrl:r,name:s,extension:c,size:i,type:e}})).filter((e=>Boolean(e)));o.length?(i.push(...o),T.a.showLoading({title:Object(D.t)("ApprovalForm.Uploading"),mask:!0,fail:()=>{},success:()=>{}}),o.forEach((e=>{a.upload(e).finally((()=>{i.every((e=>e.status===g.v.UPLOADED))&&(T.a.hideLoading(),a.showUploadHint(),a.onChange({files:i}))}))})),a.setState({uploadFiles:i})):a.showUploadHint()}catch(e){Object(y.b)(C.f.ApprovalError,{location:"in function handleUploadFile at src/components/approval-detail/modals/components/editor/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),I.a.error(e)}}))()}upload(e){var t=this;return Object(r.a)((function*(){var{id:a,type:r,extension:i}=e,{uploadFiles:n}=t.state,{ctxId:o,instanceId:s}=t.props,c=n.find((e=>e.id===a));if(c){try{var l,d,u=Object(ie.d)(o),p=s||(null==u||null===(l=u.configurableFormStore)||void 0===l||null===(d=l.instanceInfo)||void 0===d?void 0:d.instanceId)||"",b=yield Object(h.f)({url:Object(v.a)().UPLOAD,filePath:c.url,name:c.name,formData:{type:r,suffix:".".concat(Object(h.a)(c.name)),instanceId:p}});if(I.a.info("uploadResult",b),200!==b.statusCode)throw new Error("invalid statusCode: ".concat(b.statusCode));var O=JSON.parse(b.data);if(10118===O.code)throw new j.a(Object(D.t)("formImage.OversizeHint"));if(0!==O.code)throw Error("invalid code: ".concat(O.code));c.previewUrl=Object(re.d)({type:r,url:O.data.url,extension:i}),c.url=O.data.url,c.thumbUrl=Object(re.e)({extension:i,url:O.data.url,type:r}),c.name=O.data.fileName||c.name,c.size=Number(O.data.fileSize),c.status=g.v.UPLOADED,oe(r===m.h.IMG?"fileUploadImgSuccess":"fileUploadAttSuccess"),I.a.info("uploadFile",c)}catch(e){I.a.error("image upload failed",e);var f=JSON.stringify(e,Object.getOwnPropertyNames(e));oe(r===m.h.IMG?"fileUploadImgFail":"fileUploadAttFail",{error:f}),e instanceof j.a?t.errorInfo=e.message:t.errorInfo=r===m.h.IMG?Object(D.t)("PicUploadFailedHint"):Object(D.t)("AttachmentUploadFailedHint"),t.removeImage(c.id),oe(r===m.h.IMG?"fileBizUploadImg":"fileBizUploadAtt",{error:f}),Object(y.b)(C.f.ApprovalUploadFile,{error:f})}I.a.info("uploadFiles",n),t.setState({uploadFiles:n})}else I.a.error("uploadImage invalid id",a)}))()}removeImage(e){var{uploadFiles:t}=this.state,a=t.findIndex((t=>t.id===e));-1!==a&&t.splice(a,1)}}Object(o.a)(se,"defaultProps",{maxImgLen:30,maxAttachLen:30,maxLength:1e4});var ce=c.a.memo((e=>{var{enableReminder:t,textareaStyle:a,textHeight:r,placeholder:i,placeholderStyle:o,maxLength:c,initContent:l,onChange:d}=e,[u,p]=Object(s.useState)({text:"",reminders:[]});Object(s.useEffect)((()=>{p(l)}),[l]);return Object(w.jsx)(N.a,{children:t&&Object(b.i)("3.12.0")?Object(w.jsx)(N.r,{className:"fake-textarea",style:Object(n.a)({minHeight:r||"120px",borderColor:"#3370FF"},a),children:Object(w.jsx)(N.f,{style:{display:"block",fontSize:"14px",lineHeight:"20px",height:r?"calc(".concat(r," - 16)"):"104px",overflow:"auto"},focus:!0,enableRemind:!0,placeholder:i||"",placeholderStyle:"font-size: 14px; line-height: 20px;",showReminderAvatar:!1,data:u,onInput:e=>{Object(re.f)(e.detail)>c||d(e.detail)}})}):Object(w.jsx)(N.r,{style:Object(n.a)({height:r||"120px",overflow:"hidden"},a),children:Object(w.jsx)(N.q,{value:u.text,onInput:e=>{var{detail:{value:t}}=e;c&&c>0&&t.length>c&&(t=t.slice(0,c)),p({text:t,reminders:[]}),d({text:t,reminders:[]})},style:{width:"100%",height:r||"120px",fontSize:"14px",lineHeight:"20px",borderRadius:"6px"},placeholder:i||"",placeholderStyle:o,maxlength:c&&c>0?c:1/0})})})})),le=c.a.memo((e=>{var{enableReminder:t,textareaStyle:a,textHeight:r,placeholder:i,placeholderStyle:o,maxLength:s,initContent:c,onChange:l}=e;return Object(w.jsx)(N.a,{children:t&&Object(b.i)("3.12.0")?Object(w.jsx)(N.r,{className:"fake-textarea",style:Object(n.a)({minHeight:r||"120px",borderColor:"#3370FF"},a),children:Object(w.jsx)(N.f,{style:{display:"block",fontSize:"14px",lineHeight:"20px",height:r?"calc(".concat(r," - 16)"):"104px",overflow:"auto"},focus:!0,enableRemind:!0,placeholder:i||"",placeholderStyle:"font-size: 14px; line-height: 20px;",showReminderAvatar:!1,data:c,onInput:e=>{Object(re.f)(e.detail)>s||l(e.detail)}})}):Object(w.jsx)(N.r,{style:Object(n.a)({height:r||"120px",overflow:"hidden"},a),children:Object(w.jsx)(N.q,{value:c.text,onInput:e=>{var{detail:{value:t}}=e;s&&s>0&&t.length>s&&(t=t.slice(0,s)),l({text:t,reminders:[]})},style:{width:"100%",height:r||"120px",fontSize:"14px",lineHeight:"20px",borderRadius:"6px"},placeholder:i||"",placeholderStyle:o,maxlength:s&&s>0?s:1/0})})})}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return gi}));var r,i=a(5),n=a(9),o=a(11),s=a(6),c=a(7),l=(a(56),a(4)),d=a(598),u=a(304),p=a(45),m=a(23),h=a(10),b=a(18),g=a(114),v=a(94),j=a(17),O=a(67),f=a(690),M=new(a.n(f).a),[_,y]=(e=>[t=>(M.on(e,t),{off:()=>{M.off(e,t)}}),t=>{M.emit(e,t)}])("sidebarToggleCollapse"),D={onSidebarToggleCollapse:_,emitSidebarToggleCollapse:y},N=a(36),A=a(50),T=a(2),I=a(20),C=a(12),x=a(579),S=a(16),w=a(269),L=a(537),E=a(198),k=a(176),z=a(591),R=a(22),P=a(314),U=a(1474),B=a(803);!function(e){e.ADD_APPROVER="ADD_APPROVER",e.AGREE="AGREE",e.CC="CC",e.CHAT="CHAT",e.COMMENT="COMMENT",e.DELETE_APPROVER="DELETE_APPROVER",e.MORE="MORE",e.REJECT="REJECT",e.REMINDER="REMINDER",e.ROLLBACK="ROLLBACK",e.SUBMIT_AGAIN="SUBMIT_AGAIN",e.TRANSFER="TRANSFER",e.TRANSFER_PICKER="TRANSFER_PICKER",e.WITHDRAW="WITHDRAW",e.RESUBMIT="RESUBMIT",e.MODIFY="MODIFY",e.THIRD_PART="THIRD_PART",e.APPROVE="APPROVE"}(r||(r={}));var F,Y,Q,G,W,V,H,Z,q,K,J,X,$,ee,te,ae,re,ie,ne,oe,se,ce,le,de,ue,pe,me,he,be,ge,ve,je,Oe,fe,Me,_e,ye,De,Ne,Ae,Te,Ie,Ce,xe,Se,we,Le,Ee,ke,ze,Re,Pe,Ue,Be,Fe,Ye,Qe,Ge,We,Ve,He,Ze,qe,Ke,Je,Xe,$e,et,at,rt,it,nt,ot,st,ct,lt,dt,ut,pt,mt,ht,bt,gt,vt,jt,Ot,ft,Mt,_t,yt,Dt,Nt,At,Tt,It,Ct,xt,St,wt,Lt,Et,kt,zt,Rt,Pt,Ut,Bt,Ft,Yt,Qt,Gt,Wt,Vt,Ht,Zt,qt,Kt,Jt,Xt,$t,ea,ta,aa,ra,ia,na,oa,sa,ca,la,da,ua=a(31),pa=a.n(ua),ma=a(1473),ha=a(93),ba=a(19),ga=a.n(ba),va=a(25),ja=a(252),Oa=a(44),fa=a(24),Ma=a(28),_a=Ma.m?"6804388464128497007":"5804388464128497007",ya=e=>!!e&&_a===e,Da=e=>e.length&&e.every((e=>{var{ProcessDefinitionKey:t}=e;return ya(t)})),Na=a(330),Aa=Object(I.c)("pc:src/stores/index/base-store.ts"),Ta=(Math.min(30,20),2),Ia=e=>{e.some((e=>e.IntranetAccess))&&ja.a.startPolling()},Ca=(F=class{get queue(){return this.upStore.indexStore.queue}getRenderedTaskIds(e){var t,a;return e&&null!==(t=null===(a=this.listData)||void 0===a?void 0:a.map((e=>{var{TaskID:t}=e;return t})))&&void 0!==t?t:[]}setDirection(e){this.direction="top"===e?m.a.Backward:m.a.Forward}updateCurrentCard(e){this.listData=this.listData.map((t=>t.ID===e.ID?Object(i.a)(Object(i.a)({},t),{},{isNew:!1}):t))}updateCcCurrentCard(e){var t=e.type===m.i.UnreadNotice?R.d.UnreadListData:R.d.ReadListData;this[t]=this[t].map((t=>e.current.ID===t.ID?Object(i.a)(Object(i.a)({},t),{},{isReaded:!0,isNew:!1}):t))}setTimeRange(e,t){this.timeRange={StartTimestamp:e,EndTimestamp:t}}setProcessStatusIndex(e){this.processStatusIndex=e}setOrder(e){this.order=e}setSocketFinishID(e){this.socketFinishCard=e}resetFilters(){this.setSocketFinishID(null),this.setTimeRange("",""),this.setActiveDetailItem(null),this.setDefinitionKeys([]),this.setProcessStatusIndex(p.a.All),this.setReadStatus(p.f.ALL),this.setTimeType(p.i.All),this.upStore.indexStore.setOrtOrders(),this.setData("noUnreadTop",!0),this.setData("noUnreadBottom",!1),this.setData("noReadTop",!0),this.setData("noReadBottom",!1),this.setNodataTop(!0),this.setNodataBottom(!1),this.setListRendered(!1)}resetData(){this.listData=[],this.unreadListData=[],this.readListData=[]}setTimeType(e){this.timeType=e;var t=pa()(),a=t.unix();switch(e){case p.i.All:this.setTimeRange("","");break;case p.i.Day:this.setTimeRange(t.subtract(1,"day").unix(),a);break;case p.i.Week:this.setTimeRange(t.subtract(7,"day").unix(),a);break;case p.i.Month:this.setTimeRange(t.subtract(30,"day").unix(),a);case p.i.Custome:}}get unreadCount(){return this.unreadListData.length}get readCount(){return this.readListData.length}get selectedMarkKeys(){return this.definitionKeys.filter((e=>e.includes("feishu"))).map((e=>{var t;return null===(t=e.split(":"))||void 0===t?void 0:t[1]})).filter((e=>Boolean(e)))}get showReadToast(){return Boolean(this.definitionKeys.length)&&!this.selectedMarkKeys.length&&this.upStore.indexStore.menuStore.unReadCount>0}*_setAllRead(){try{var{data:e}=yield this.fetchRead({all:!0,procInstIDs:[],searchKey:this.upStore.indexStore.searchKey,instanceIds:[],approvalIds:this.selectedMarkKeys});Object(ba.showLoading)({title:Object(T.t)("Loading")}),yield Object(ha.e)(2e3),Object(ba.hideLoading)(),(null==e?void 0:e.unsupportBatchReadCount)>0&&Object(N.r)({icon:"warning",title:Object(T.t)("list.mark_unsupport_count",{count:null==e?void 0:e.unsupportBatchReadCount})}),yield this.fetchCcList({})}catch(e){this.fetchCcList({}),h.a.error("markallread:error",e),Aa("commonOnError",{location:"in function setAllRead at src/stores/index/base-store.ts",message:Object(Oa.a)(e)})}}*_fetchReadCard(e){try{return yield S.c.ccread(e)}catch(e){h.a.error("markread:error",e)}}get uniqueDefinitionKeys(){return new Set(this.definitionKeys)}setDefinitionKeys(e){this.definitionKeys=e}setReadStatus(e){this.readStatus=e}setListError(e){this.listError=e}setTopTip(e){this.topTip=e}setListData(e){this.updateTaskCache(e),this.listData=e}setTopLoading(e){this.topLoading=e}setBottomLoading(e){this.bottomLoading=e}getToken(e,t){var a=this[e].find(((e,a)=>a===t));return(null==a?void 0:a.NextPageToken)||""}setNodataTop(e){this.isNodataTop=e}setNodataBottom(e){this.isNodataBottom=e}get useNewSearchApi(){return this.upStore.indexStore.inSearchMode&&va.d.fgNewSearchAPi}*_getListData(e){var{loadMore:t=!1,includeCount:a=!1,batchSelectedAll:r}=e;try{var n,o,s,c;if(this.setListError(!1),this.topLoading||this.bottomLoading)return;var l=this.direction===m.a.Forward;if(l&&this.isNodataBottom&&t)return void Aa("cardListRequestIgnore",{isForward:l,type:"bottomNoData",loadMore:t});if(!l&&this.isNodataTop&&t)return void Aa("cardListRequestIgnore",{isForward:l,type:"topNoData",loadMore:t});t?Aa("cardlistScrollToBottom"):(this.setNodataBottom(!1),this.setNodataTop(!0),this.setListRendered(!1),this.setActiveDetailItem(null),this.setSocketFinishID(null),this.upStore.setListData([])),Aa("cardlistLoad"),l?this.setBottomLoading(!0):this.setTopLoading(!0);var d,u,h,b={topic:this.upStore.topic,queryString:this.upStore.indexStore.searchKey,processStatus:this.processStatusIndex?p.e[this.processStatusIndex]:void 0,definitionKeys:this.definitionKeys,start:this.timeRange.StartTimestamp,end:this.timeRange.EndTimestamp,direction:this.direction,order:Ta-this.order,pageSize:30,nextPageToken:t?this.useNewSearchApi?this.searchCursor:this.getToken(R.d.ListData,l?this[R.d.ListData].length-1:0):"",isTaskTimeover:this.processStatusIndex===p.a.TaskTimeover||void 0},{ceoUserId:g}=va.d,v=va.d.isYm&&[R.a.CeoTodo,R.a.CeoDone].includes(this.upStore.storeType);if(Aa("cardlistLoadFeStart"),this.upStore.indexStore.searchStore.setData("searchLoading",!t),this.useNewSearchApi){var j,f,M,_=yield this.upStore.indexStore.apiService.searchBasicQuery(b,Object(i.a)({},this.upStore.indexStore.searchStore.getSubStaffParams(this.getRenderedTaskIds(t))),va.d.isYm&&g?g:"");u=_.me.countTask,h=null===(j=_.other)||void 0===j?void 0:j.countTask,d=v?null===(f=_.other)||void 0===f?void 0:f.listTask:_.me.listTask,this.searchCursor=v?(null===(M=_.other)||void 0===M?void 0:M.nextCursor)||"":_.me.nextCursor}else{Object(O.a)("start-get-list-data");var y=yield this.upStore.indexStore.apiService.getList(b,{actAs:g,actAsListTask:v,includeCount:a,getLastCursor:a,usePrefetchCache:!0});Object(O.a)("end-get-list-data"),d=y.listTask,u=y.countTask,h=y.otherCountTask;var D=y.getLastCursor;if(D){var{Cursor:N,PullIntervalInMs:A}=D;this.setLastCursor(N,A,!t)}}this.updateCountTaskData(u),this.upStore.indexStore.updateCeoMenu(h),this.updateTaskCache(null===(n=d)||void 0===n?void 0:n.Tasks),Aa("cardlistLoadFeEnd");var T=this.formatTasksInfo((null===(o=d)||void 0===o?void 0:o.Tasks)||[]);if(this.reportCardInfo(T),!this.listRendered&&this.setListRendered(!0),this.topLoading&&this.setTopLoading(!1),this.bottomLoading&&this.setBottomLoading(!1),"function"==typeof this.upStore.getListCallback)try{this.upStore.getListCallback(T)}catch(e){Aa("commonOnError",{location:"in function getListData at src/stores/index/base-store.ts",message:JSON.stringify(e)})}if(this.upStore.indexStore.addUserData(null===(s=d)||void 0===s?void 0:s.Users),this.upStore.indexStore.addDepartmentData(null===(c=d)||void 0===c?void 0:c.Departments),t)this.listData=l?Object(ma.a)(this.listData,T):Object(ma.a)(T,this.listData);else{this.upStore.setListData(T),this.setScrollTop(0);var x=this.listData.find(((e,t)=>0===t));this.setActiveDetailItem(x||null),Object(O.a)("setActiveDetailItem"),this.upStore.indexStore.setActiveDetailCount(!1),x&&b.queryString&&Object(C.b)("approval_search_result_click",{click_search_card:1,search_version:va.d.fgNewSearchAPi?"new":"old"})}r&&r(T),Aa("cardlistLoadFinish"),Object(O.a)("list-data-ready"),fa.b.indexStore.detailByTask||Object(I.h)(["pc_home","list"],{notDoTask:!0}),Object(I.a)({timestamp:Date.now()});var S=!T.length;l?this.setNodataBottom(S):this.setNodataTop(S),this.upStore.indexStore.searchStore.setData("searchLoading",!1)}catch(e){var w=Object(Oa.a)(e);Aa("cardListRequestError",{error:w}),this.setTopLoading(!1),this.setBottomLoading(!1),this.setListError(!0),this.setNodataTop(!0),this.setNodataBottom(!1),this.setListRendered(!0),this.setActiveDetailItem(null),a&&(this.upStore.indexStore.menuStore.hasResponseError=!0),this.upStore.indexStore.searchStore.setData("searchLoading",!1)}}*_fetchTask(){try{this.setNodataTop(!1),this.setNodataBottom(!1),this.setDirection("top"),yield this.getListData({loadMore:!0}),this.setDirection("bottom"),yield this.getListData({loadMore:!0,includeCount:!0})}catch(e){Aa("commonOnError",{location:"in function getTask at src/stores/index/base-store.ts",message:Object(Oa.a)(e)}),this.setBottomLoading(!1),this.setListError(!0),this.setNodataTop(!1),this.setNodataBottom(!1),this.setListRendered(!0),this.setActiveDetailItem(null),this.setDirection("bottom"),this.getListData({includeCount:!0})}}*_fetchCcTask(){var e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.i.UnreadNotice)===m.i.UnreadNotice,a=t?R.c.NoUnreadTop:R.c.NoReadTop,r=t?R.d.UnreadListData:R.d.ReadListData,i=t?R.d.ReadListData:R.d.UnreadListData;try{this.setData(a,!1),yield this.filterCcList({loadMore:!0,listType:r,direction:m.a.Backward}),yield this.filterCcList({loadMore:!0,listType:r,direction:m.a.Forward}),this[i]=[],yield this.filterCcList({loadMore:!0,listType:i,direction:m.a.Forward,forceCount:!0})}catch(e){Aa("commonOnError",{location:"in function getCcTask at src/stores/index/base-store.ts",message:Object(Oa.a)(e)}),this.setData(a,!0),this.fetchList({})}finally{this.setListRendered(!0)}}setActiveDetailItem(e){this.activeDetailItem=e,this.listActiveItem=e}setDetailItem(e){this.activeDetailItem=e}setListActiveItem(e){this.listActiveItem=e}setScrollTop(e){this.bottomLoading||this.topLoading||(this.scrollTop=e<=0?0:e)}setListRendered(e){this.listRendered=e}setData(e,t){this[e]=t}get isLoading(){return this.topLoading||this.bottomLoading||this.unreadBottomLoading||this.unreadTopLoading||this.readBottomLoading||this.readTopLoading}setReadError(e){this.isReadError=e}setCcListData(e,t){this[e]=t}*_filterCcList(e){var{loadMore:t=!1,listType:a,direction:r=m.a.Forward,forceCount:n=!1}=e,o=r===m.a.Forward,s=a===R.d.UnreadListData,c=s?o?R.c.UnreadBottomLoading:R.c.UnreadTopLoading:o?R.c.ReadBottomLoading:R.c.ReadTopLoading,l=s?o?R.c.NoUnreadBottom:R.c.NoUnreadTop:o?R.c.NoReadBottom:R.c.NoReadTop,d=s?R.c.UnreadError:R.c.ReadError;try{var u,p,h,b,g,v,j,O;this.setData(d,!1),t?Aa("cardlistScrollToBottom"):(this[a]=[],this.setScrollTop(0),this.setActiveDetailItem(null)),this.setData(c,!0),Aa("cardlistLoad"),Aa("cardlistLoadFeStart");var f={topic:s?m.i.UnreadNotice:m.i.ReadNotice,queryString:this.upStore.indexStore.searchKey,definitionKeys:this.definitionKeys,order:Ta-this.order,direction:r,pageSize:20,start:this.timeRange.StartTimestamp,end:this.timeRange.EndTimestamp,nextPageToken:this.getNextCursorForCopyList(t,a,r)},{ceoUserId:M,isYm:_}=va.d,y=!t||n;if(this.useNewSearchApi){var D,N=yield this.upStore.indexStore.apiService.searchBasicQuery(f,Object(i.a)({},this.upStore.indexStore.searchStore.getSubStaffParams(this.getRenderedTaskIds(t))),_&&M?M:"");v=N.me.listTask,j=y?N.me.countTask:void 0,O=null===(D=N.other)||void 0===D?void 0:D.countTask,s?this.unreadSearchCursor=N.me.nextCursor:this.readSearchCursor=N.me.nextCursor}else{var A=yield this.upStore.indexStore.apiService.getList(f,{includeCount:y,actAs:_&&M?M:"",getLastCursor:y});v=A.listTask,j=A.countTask,O=A.otherCountTask;var{getLastCursor:T}=A;if(T){var{Cursor:I,PullIntervalInMs:C}=T;this.setLastCursor(I,C,!t)}}this.updateCountTaskData(j),this.upStore.indexStore.updateCeoMenu(O),this.updateTaskCache(null===(u=v)||void 0===u?void 0:u.Tasks),this.setData(c,!1),Aa("cardlistLoadFeEnd"),this.upStore.indexStore.addUserData(null===(p=v)||void 0===p?void 0:p.Users),this.upStore.indexStore.addDepartmentData(null===(h=v)||void 0===h?void 0:h.Departments);var x=(null===(b=v)||void 0===b?void 0:b.Tasks)||[];this[a]=o?Object(ma.a)(this[a],x):Object(ma.a)(x,this[a]),Aa("cardlistLoadFinish"),null!==(g=v)&&void 0!==g&&g.Tasks.length?this.setData(l,!1):this.setData(l,!0),this.upStore.indexStore.searchStore.setData("searchLoading",!1)}catch(e){this.upStore.indexStore.searchStore.setData("searchLoading",!1),Aa("cardListRequestError",{location:"in function filterCcList at src/stores/index/base-store.ts",error:Object(Oa.a)(e)}),this.setData(c,!1),this.setData(d,!0),this[a]=[],this.setListRendered(!0),this.setActiveDetailItem(null),n&&(this.upStore.indexStore.menuStore.hasResponseError=!0)}}fetchList(e){var{loadMore:t=!1,includeCount:a=!0}=e;this.queue.push((()=>this.upStore.storeType===R.a.CarbonCopy?this.readStatus===p.f.UNREAD?this.fetchUnreadList({loadMore:t}):this.fetchCcList({loadMore:t}):this.getListData({loadMore:t,includeCount:a})))}*_fetchUnreadList(e){var{loadMore:t=!1}=e;try{t||this.setListRendered(!1),yield this.filterCcList({loadMore:t,listType:R.d.UnreadListData})}catch(e){h.a.error("error:fetchUnreadList",e)}finally{this.setListRendered(!0)}}get isListEmpty(){return this.upStore.storeType===R.a.CarbonCopy?this.readStatus===p.f.UNREAD?!this.unreadListData.length:!this.unreadListData.length&&!this.readListData.length:!this.listData.length}*_fetchCcList(e){var{loadMore:t=!1}=e;try{if(t||this.setListRendered(!1),this.setData("noReadTop",!0),this.setData("noUnreadTop",!0),this.upStore.indexStore.searchStore.setData("searchLoading",!0),yield this.filterCcList({loadMore:t,listType:R.d.UnreadListData}),yield this.filterCcList({loadMore:t,listType:R.d.ReadListData}),this.setListRendered(!0),this.upStore.indexStore.searchStore.setData("searchLoading",!1),!t&&0===this.unreadCount){var a=this.readListData.find(((e,t)=>0===t));this.setActiveDetailItem(a||null),this.upStore.indexStore.setActiveDetailCount(!1)}}catch(e){this.upStore.indexStore.searchStore.setData("searchLoading",!1),this.setListRendered(!0),h.a.error("error:fetchCcList",e),Aa("commonOnError",{location:"in function fetchCcList at src/stores/index/base-store.ts",message:Object(Oa.a)(e)})}}constructor(e){var t=this;Object(o.a)(this,"countTaskData",Y,this),Object(o.a)(this,"direction",Q,this),Object(o.a)(this,"timeRange",G,this),Object(o.a)(this,"processStatusIndex",W,this),Object(o.a)(this,"order",V,this),Object(s.a)(this,"socketFinishCard",void 0),Object(o.a)(this,"timeType",H,this),Object(s.a)(this,"setAllRead",Object(l.k)(this._setAllRead)),Object(s.a)(this,"fetchRead",Object(l.k)(this._fetchReadCard)),Object(o.a)(this,"definitionKeys",Z,this),Object(s.a)(this,"areDefinitionKeysEqual",(e=>{if(e.length!==this.definitionKeys.length)return!1;for(var t of e)if(!this.uniqueDefinitionKeys.has(t))return!1;return!0})),Object(o.a)(this,"readStatus",q,this),Object(o.a)(this,"listError",K,this),Object(o.a)(this,"topTip",J,this),Object(o.a)(this,"listData",X,this),Object(o.a)(this,"topLoading",$,this),Object(o.a)(this,"bottomLoading",ee,this),Object(o.a)(this,"isNodataTop",te,this),Object(o.a)(this,"isNodataBottom",ae,this),Object(s.a)(this,"getListData",Object(l.k)(this._getListData)),Object(o.a)(this,"updateCountTaskData",re,this),Object(s.a)(this,"searchCursor",""),Object(s.a)(this,"formatTasksInfo",(e=>this.upStore.topic===m.i.TodoApproval&&va.d.fgBatchApprovalNext?e.map((e=>this.formatTaskInfo(e))):e)),Object(s.a)(this,"formatTaskInfo",(e=>{if(va.d.fgBatchApprovalNext){var t,a,n,o,s,c,l,d,u,p,{Attributes:m,ProcessDefinitionKey:h,DefinitionKey:b,System:g}=e,v=null===(t=m.find((e=>"task_gen_type"===e.Key)))||void 0===t?void 0:t.Value,j="true"===(null===(a=m.find((e=>{var{Key:t}=e;return"is_start_user"===t})))||void 0===a?void 0:a.Value),O="6"===(null===(n=m.find((e=>{var{Key:t}=e;return"node_origin_type"===t})))||void 0===n?void 0:n.Value),f="true"===(null===(o=m.find((e=>{var{Key:t}=e;return"require_user_input"===t})))||void 0===o?void 0:o.Value),M="true"===(null===(s=m.find((e=>{var{Key:t}=e;return"blocked_cc_enable"===t})))||void 0===s?void 0:s.Value),_=Number(v)===Na.e,y=ya(h),D=Boolean(j),N="1"===(null===(c=m.find((e=>{var{Key:t}=e;return"previous_operate_type"===t})))||void 0===c?void 0:c.Value),A=(null===(l=this.countTaskData)||void 0===l||null===(d=l.Definitions)||void 0===d?void 0:d[b])||(null===(u=this.countTaskData)||void 0===u||null===(p=u.Definitions)||void 0===p?void 0:p["".concat(g,":").concat(b)]),T=Boolean(null==A?void 0:A.AllowBatchOperate),I=!0;if("feishu"!==g){var C,x,S=Boolean(JSON.parse((null===(C=m.find((e=>{var{Key:t}=e;return"action_configs"===t})))||void 0===C?void 0:C.Value)||"[]").some((e=>{var{action_type:t}=e;return"APPROVE"===t})));!Ma.m&&!Ma.q||S||(S="oa"===g&&Boolean(JSON.parse((null===(x=m.find((e=>{var{Key:t}=e;return"action_configs"===t})))||void 0===x?void 0:x.Value)||"[]").some((e=>{var{action_type:t}=e;return["general",r.APPROVE].includes(t)})))),I=S}return Object(i.a)(Object(i.a)({},e),{},{isRollbackToStart:D,isRejectTask:N,isDocBlockApproval:y,isHandling:O,requireUserInput:f,allowBatchOperate:T,extenalCanQuickApproval:I,isAdvisePending:_,batchOperateCheckDisabled:y||D||N||O||f||!T||M||_||!I})}return e})),Object(s.a)(this,"reportCardInfo",(e=>{this.upStore.topic===m.i.TodoApproval&&va.d.isBytedance&&setTimeout((()=>{var t=e.map((e=>{var{TaskID:t,ID:a,Attributes:r,ProcessID:i}=e,n=r.find((e=>"percentile"===e.Key));return{event:"approval_card_efficiency",params:{task_id:t,id:a,process_id:i,with_warning:n?1:0,detail_data:null==n?void 0:n.Value}}}));0!==t.length&&Object(C.b)(t)}),3e3)})),Object(s.a)(this,"getTask",Object(l.k)(this._fetchTask)),Object(s.a)(this,"getCcTask",Object(l.k)(this._fetchCcTask)),Object(o.a)(this,"activeDetailItem",ie,this),Object(o.a)(this,"listActiveItem",ne,this),Object(o.a)(this,"scrollTop",oe,this),Object(o.a)(this,"listRendered",se,this),Object(o.a)(this,"noUnreadBottom",ce,this),Object(o.a)(this,"noUnreadTop",le,this),Object(o.a)(this,"noReadTop",de,this),Object(o.a)(this,"noReadBottom",ue,this),Object(o.a)(this,"readTopLoading",pe,this),Object(o.a)(this,"unreadTopLoading",me,this),Object(o.a)(this,"readBottomLoading",he,this),Object(o.a)(this,"unreadBottomLoading",be,this),Object(o.a)(this,"unreadError",ge,this),Object(o.a)(this,"readError",ve,this),Object(s.a)(this,"unreadSearchCursor",""),Object(s.a)(this,"readSearchCursor",""),Object(o.a)(this,"isReadError",je,this),Object(o.a)(this,"readListData",Oe,this),Object(o.a)(this,"unreadListData",fe,this),Object(s.a)(this,"getNextCursorForCopyList",((e,t,a)=>{if(!e)return"";var r=t===R.d.UnreadListData;if(this.useNewSearchApi)return r?this.unreadSearchCursor:this.readSearchCursor;var i=a===m.a.Forward;return this.getToken(t,i?this[t].length-1:0)})),Object(s.a)(this,"filterCcList",Object(l.k)(this._filterCcList)),Object(s.a)(this,"setLastCursor",(function(e,a){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t.upStore.indexStore.taskUpdater.setCursor(e,Math.max(a,va.d.pullChangeInterval)),r&&(Aa("taskCenterClearCache"),t.upStore.indexStore.taskCache.clear())})),Object(s.a)(this,"updateTaskCache",(e=>{void 0!==e&&e.forEach((e=>{this.upStore.indexStore.taskCache.set(e.ID,e)}))})),Object(s.a)(this,"fetchUnreadList",Object(l.k)(this._fetchUnreadList)),Object(s.a)(this,"fetchCcList",Object(l.k)(this._fetchCcList)),Object(s.a)(this,"upStore",void 0),Object(s.a)(this,"initializeReaction",(()=>{Object(l.r)((()=>this.listData),Ia),Object(l.r)((()=>this.unreadListData),Ia),Object(l.r)((()=>this.readListData),Ia)})),this.upStore=e,this.initializeReaction()}},Y=Object(c.a)(F.prototype,"countTaskData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Q=Object(c.a)(F.prototype,"direction",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.a.Forward}}),Object(c.a)(F.prototype,"setDirection",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setDirection"),F.prototype),G=Object(c.a)(F.prototype,"timeRange",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{StartTimestamp:"",EndTimestamp:""}}}),Object(c.a)(F.prototype,"updateCurrentCard",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"updateCurrentCard"),F.prototype),Object(c.a)(F.prototype,"updateCcCurrentCard",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"updateCcCurrentCard"),F.prototype),Object(c.a)(F.prototype,"setTimeRange",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setTimeRange"),F.prototype),W=Object(c.a)(F.prototype,"processStatusIndex",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.a.All}}),Object(c.a)(F.prototype,"setProcessStatusIndex",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setProcessStatusIndex"),F.prototype),V=Object(c.a)(F.prototype,"order",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.c.Desc}}),Object(c.a)(F.prototype,"setOrder",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setOrder"),F.prototype),Object(c.a)(F.prototype,"resetFilters",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"resetFilters"),F.prototype),Object(c.a)(F.prototype,"resetData",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"resetData"),F.prototype),H=Object(c.a)(F.prototype,"timeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.i.All}}),Object(c.a)(F.prototype,"setTimeType",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setTimeType"),F.prototype),Object(c.a)(F.prototype,"unreadCount",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"unreadCount"),F.prototype),Object(c.a)(F.prototype,"readCount",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"readCount"),F.prototype),Object(c.a)(F.prototype,"selectedMarkKeys",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"selectedMarkKeys"),F.prototype),Object(c.a)(F.prototype,"showReadToast",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"showReadToast"),F.prototype),Z=Object(c.a)(F.prototype,"definitionKeys",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(F.prototype,"uniqueDefinitionKeys",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"uniqueDefinitionKeys"),F.prototype),Object(c.a)(F.prototype,"setDefinitionKeys",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setDefinitionKeys"),F.prototype),q=Object(c.a)(F.prototype,"readStatus",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return p.f.ALL}}),Object(c.a)(F.prototype,"setReadStatus",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setReadStatus"),F.prototype),K=Object(c.a)(F.prototype,"listError",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(F.prototype,"setListError",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setListError"),F.prototype),J=Object(c.a)(F.prototype,"topTip",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Object(c.a)(F.prototype,"setTopTip",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setTopTip"),F.prototype),X=Object(c.a)(F.prototype,"listData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(F.prototype,"setListData",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setListData"),F.prototype),$=Object(c.a)(F.prototype,"topLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(F.prototype,"setTopLoading",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setTopLoading"),F.prototype),ee=Object(c.a)(F.prototype,"bottomLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(F.prototype,"setBottomLoading",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setBottomLoading"),F.prototype),te=Object(c.a)(F.prototype,"isNodataTop",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Object(c.a)(F.prototype,"setNodataTop",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setNodataTop"),F.prototype),ae=Object(c.a)(F.prototype,"isNodataBottom",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(F.prototype,"setNodataBottom",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setNodataBottom"),F.prototype),re=Object(c.a)(F.prototype,"updateCountTaskData",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{e&&(this.upStore.indexStore.updateMenu(e),this.countTaskData=JSON.parse(JSON.stringify(e)))}}}),Object(c.a)(F.prototype,"useNewSearchApi",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"useNewSearchApi"),F.prototype),ie=Object(c.a)(F.prototype,"activeDetailItem",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(c.a)(F.prototype,"setActiveDetailItem",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setActiveDetailItem"),F.prototype),Object(c.a)(F.prototype,"setDetailItem",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setDetailItem"),F.prototype),ne=Object(c.a)(F.prototype,"listActiveItem",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(c.a)(F.prototype,"setListActiveItem",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setListActiveItem"),F.prototype),oe=Object(c.a)(F.prototype,"scrollTop",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Object(c.a)(F.prototype,"setScrollTop",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setScrollTop"),F.prototype),se=Object(c.a)(F.prototype,"listRendered",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(F.prototype,"setListRendered",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setListRendered"),F.prototype),ce=Object(c.a)(F.prototype,"noUnreadBottom",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le=Object(c.a)(F.prototype,"noUnreadTop",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),de=Object(c.a)(F.prototype,"noReadTop",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ue=Object(c.a)(F.prototype,"noReadBottom",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pe=Object(c.a)(F.prototype,"readTopLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),me=Object(c.a)(F.prototype,"unreadTopLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),he=Object(c.a)(F.prototype,"readBottomLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),be=Object(c.a)(F.prototype,"unreadBottomLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ge=Object(c.a)(F.prototype,"unreadError",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ve=Object(c.a)(F.prototype,"readError",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(F.prototype,"setData",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setData"),F.prototype),Object(c.a)(F.prototype,"isLoading",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"isLoading"),F.prototype),je=Object(c.a)(F.prototype,"isReadError",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(F.prototype,"setReadError",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setReadError"),F.prototype),Oe=Object(c.a)(F.prototype,"readListData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),fe=Object(c.a)(F.prototype,"unreadListData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(F.prototype,"setCcListData",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"setCcListData"),F.prototype),Object(c.a)(F.prototype,"fetchList",[l.f],Object.getOwnPropertyDescriptor(F.prototype,"fetchList"),F.prototype),Object(c.a)(F.prototype,"isListEmpty",[l.h],Object.getOwnPropertyDescriptor(F.prototype,"isListEmpty"),F.prototype),F),xa=Ca,Sa=a(33),wa=Object(I.c)("pc:src/stores/index/list-store.ts"),La=(Me=class{get menuStore(){return this.indexStore.menuStore}get isLoaded(){return this.baseStore.isNodataBottom&&this.baseStore.isNodataTop}get canUpdateMenuCount(){return this.topic===m.i.TodoApproval}constructor(e){var t=this;Object(s.a)(this,"indexStore",void 0),Object(s.a)(this,"baseStore",void 0),Object(o.a)(this,"storeType",_e,this),Object(o.a)(this,"topic",ye,this),Object(s.a)(this,"shouldSetNextCard",(()=>!1)),Object(s.a)(this,"shouldSetNextMenu",(()=>!1)),Object(s.a)(this,"beforeTaskRemove",(e=>{h.a.info("approval-store: beforeTaskRemove",e)})),Object(s.a)(this,"getListCallback",void 0),Object(s.a)(this,"updateMenuCount",void 0),Object(s.a)(this,"updateReadedCard",void 0),Object(s.a)(this,"menuMatchFilter",void 0),Object(s.a)(this,"handleTask",function(){var e=Object(n.a)((function*(e){t.baseStore.setNodataTop(!1),t.baseStore.setNodataBottom(!1),t.setListData([e]),yield t.baseStore.getTask()}));return function(t){return e.apply(this,arguments)}}()),this.indexStore=e,this.baseStore=new xa(this)}resetData(){this.baseStore.resetFilters(),this.baseStore.resetData()}setListData(e){this.baseStore.setListData(e)}getTargetList(e){switch(e){case m.i.UnreadNotice:return this.baseStore.unreadListData;case m.i.ReadNotice:return this.baseStore.readListData;default:return this.baseStore.listData}}get pristine(){return!this.baseStore.listRendered}get size(){return this.baseStore.listData.length}matchFilter(e){if(this.indexStore.inSearchMode)return!1;if(this.baseStore.definitionKeys.length>0&&!this.baseStore.definitionKeys.includes(e.DefinitionKey)&&this.menuStore.selectedKey!==e.DefinitionName)return!1;var{processStatusIndex:t}=this.baseStore;return(t===p.a.All||p.e[t]===e.ProcessStatus)&&this.checkIfInLoadRange(e)}checkIfInLoadRange(e){var{Topic:t}=e,a=this.getTargetList(t),r=0,i=1/0,{StartTimestamp:n,EndTimestamp:o}=this.baseStore.timeRange;if(n||o){r=Number(n);var s=[p.i.Day,p.i.Month,p.i.Week].includes(this.baseStore.timeType),c=this.baseStore.order===p.c.Desc&&this.getNoMoreAtTop(t)||this.baseStore.order===p.c.Asc&&this.getNoMoreAtBottom(t);i=s&&c?1/0:Number(o)}else this.baseStore.order===p.c.Desc?(r=this.getNoMoreAtBottom(t)?0:Number(a[a.length-1].Timestamp),i=this.getNoMoreAtTop(t)?1/0:Number(a[0].Timestamp)):(r=this.getNoMoreAtTop(t)?0:Number(a[0].Timestamp),i=this.getNoMoreAtBottom(t)?1/0:Number(a[a.length-1].Timestamp));return e.Timestamp>=r&&e.Timestamp<=i}getNoMoreAtTop(e){switch(e){case m.i.UnreadNotice:return this.baseStore.noUnreadTop;case m.i.ReadNotice:return this.baseStore.noReadTop;default:return this.baseStore.isNodataTop}}getNoMoreAtBottom(e){switch(e){case m.i.UnreadNotice:return this.baseStore.noUnreadBottom;case m.i.ReadNotice:return this.baseStore.noReadBottom;default:return this.baseStore.isNodataBottom}}addTask(e){if(!this.pristine)if(this.matchFilter(e)){this.getTargetList(e.Topic).find((t=>t.ID===e.ID))?wa("cardListAddIgnore",{reason:"already in list"}):(e.isNew=!0,e.isFlipOut=!0,this.insertTask(e),this.setActive(e))}else wa("cardListAddIgnore",{reason:"do not match filter"})}setActive(e){1===this.baseStore.listData.length&&(this.indexStore.setActiveDetailCount(!1),this.baseStore.setActiveDetailItem(e))}insertTask(e){var t=-1;-1===(t=this.baseStore.order===p.c.Desc?this.baseStore.listData.findIndex((t=>e.Timestamp>=t.Timestamp)):this.baseStore.listData.findIndex((t=>e.Timestamp<t.Timestamp)))&&(t=this.baseStore.listData.length),wa("cardListAddCard",{message:e,info:"卡片插入在列表位置是".concat(t)}),this.baseStore.listData.splice(t,0,e)}updateTask(e){var t,a,r=this.getTargetList(e.Topic),n=r.findIndex((t=>t.ID===e.ID));if(-1!==n){wa("cardlistUpdateCard",{id:e.ID});var{NextPageToken:o}=r[n],s=Object(i.a)(Object(i.a)(Object(i.a)({},r[n]),e),{},{NextPageToken:o});e.ID===(null===(t=this.baseStore.activeDetailItem)||void 0===t?void 0:t.ID)&&s.DisplayMethod!==(null===(a=this.baseStore.activeDetailItem)||void 0===a?void 0:a.DisplayMethod)&&this.baseStore.setDetailItem(s),r[n]=s}}removeTask(e){var t=this;return Object(n.a)((function*(){var a,r,i=t.baseStore.listData.findIndex((t=>t.ID===e.ID));if(-1!==i){var n,o=t.baseStore.listData[i];if(t.indexStore.preventId===e.ID&&(null===(a=t.indexStore.currentSelected.activeDetail)||void 0===a?void 0:a.ID)===o.ID)return wa("cardlistDeleteIgnore",{message:e,info:"自动下一条被阻止"}),void t.baseStore.setSocketFinishID(o);t.shouldSetNextCard()&&(null===(r=t.baseStore.activeDetailItem)||void 0===r?void 0:r.ID)===o.ID&&(n=t.setNextCard(o)),o.isFlipOut=!0,o.isNew=!1,t.setActive(o),t.beforeTaskRemove(o),yield Object(Sa.s)(200),Object(l.s)((()=>{t.baseStore.listData.splice(i,1)})),wa("cardListDeleteCard",{message:o,info:"卡片已经删除"});var{length:s}=t.baseStore.listData;0===s?(t.indexStore.setActiveDetailCount(!1),t.baseStore.setActiveDetailItem(null)):s<30&&t.baseStore.fetchList({loadMore:!0,includeCount:!1}),"function"==typeof n&&setTimeout(n,0)}}))()}setNextCard(e){var t=this.baseStore.listData.findIndex((t=>t.ID===e.ID))+1,a=this.baseStore.listData.find(((e,a)=>a===t));if(this.indexStore.setActiveDetailCount(!1),this.baseStore.setActiveDetailItem(null),a&&(this.baseStore.setActiveDetailItem(a),wa("cardListNextMenu",{message:"定位到单据",info:"定位到单据"})),this.baseStore.listData.length>1&&(null==a||!a.ID)){var r=this.baseStore.listData.find(((e,t)=>0===t));null!=r&&r.ID&&(this.baseStore.setActiveDetailItem(r),wa("cardListNextMenu",{message:"定位到单据First",info:"定位到单据First"}))}if(this.shouldSetNextMenu()&&(null==a||!a.ID)&&1===this.baseStore.listData.length)return h.a.info("cardlist-开始处理自动下一分类",t),this.setNextMenu()}setNextMenu(){var e=Object(P.a)(Object(l.u)(this.indexStore.menuStore.selectedSubMenu)),t=Object(P.a)(Object(l.u)(this.indexStore.menuStore.selectedKey));if(h.a.info("action-跳转下一个分类 current",e,t),e===R.a.Todo){if(Object(U.a)(this.baseStore.definitionKeys))return h.a.info("action-跳转下一个分类 一级导航-不做处理"),void wa("cardlistNextMenuIgnore",{message:{next:"一级导航-不做处理"},info:"跳转下一个分类"});var a=Object(l.u)(this.indexStore.menuStore.displayedMenuItems.find((e=>e.key===R.a.Todo))),r=null==a?void 0:a.children.findIndex((e=>Object(B.a)(e.title,t)));if(void 0===r||r<0)return()=>{wa("cardListNextMenu",{message:{next:"二级导航存在-currentIndex找不到 定位到待办"},info:"跳转下一个分类"}),this.indexStore.menuStore.setSelectedKey(R.a.Todo,R.a.Todo,[],!0)};var i=null==a?void 0:a.children.find(((e,t)=>r+1===t));return null!=i&&i.title?()=>{wa("cardListNextMenu",{message:{next:"二级导航存在-".concat(null==i?void 0:i.definitionKeys.toString())},info:"跳转下一个分类"}),this.indexStore.menuStore.setSelectedKey(i.title,R.a.Todo,i.definitionKeys,!1)}:()=>{this.indexStore.menuStore.setSelectedKey(R.a.Todo,R.a.Todo,[],!0)}}wa("cardlistNextMenuIgnore",{message:{next:"一级导航-非待办导航不处理"},info:"跳转下一个分类"})}},_e=Object(c.a)(Me.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Object(c.a)(Me.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(c.a)(Me.prototype,"size",[l.h],Object.getOwnPropertyDescriptor(Me.prototype,"size"),Me.prototype),Object(c.a)(Me.prototype,"addTask",[l.f],Object.getOwnPropertyDescriptor(Me.prototype,"addTask"),Me.prototype),Object(c.a)(Me.prototype,"insertTask",[l.f],Object.getOwnPropertyDescriptor(Me.prototype,"insertTask"),Me.prototype),Object(c.a)(Me.prototype,"updateTask",[l.f],Object.getOwnPropertyDescriptor(Me.prototype,"updateTask"),Me.prototype),Object(c.a)(Me.prototype,"removeTask",[l.f],Object.getOwnPropertyDescriptor(Me.prototype,"removeTask"),Me.prototype),Me),Ea=(De=class extends La{constructor(){super(...arguments),Object(o.a)(this,"storeType",Ne,this),Object(o.a)(this,"topic",Ae,this),Object(s.a)(this,"getListCallback",(e=>{this.indexStore.tryTransferPreloadMessage(e)})),Object(s.a)(this,"shouldSetNextCard",(()=>!0))}},Ne=Object(c.a)(De.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.Done}}),Ae=Object(c.a)(De.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return z.b.DoneApproval}}),De),ka=Ea,za=a(369),Ra=a(588),Pa=a(256),Ua=a(495),Ba=a(321),Fa=a(219),Ya=a(100),Qa=a(79),Ga=a(745),Wa=Object(I.c)("pc:src/stores/index/todo-store.ts"),Va=(Te=class extends La{get isGlobalBatchMode(){return va.d.fgGlobalBatchApproval&&this.menuStore.selectedKey===R.a.Todo&&this.isBatchMode}get allDefinitionKeysInTodo(){var e,t,a,r;return(null===(e=this.baseStore.countTaskData)||void 0===e||null===(t=e.Pipelines)||void 0===t||null===(a=t.find((e=>e.Topic===m.i.TodoApproval)))||void 0===a||null===(r=a.Counts)||void 0===r?void 0:r.reduce(((e,t)=>e.concat(t.DefinitionKeys)),new Array))||[]}get hasCalcTasks(){var e,t,a;return Boolean(null===(e=this.calculateAsyncOperationTask)||void 0===e||null===(t=e.Response)||void 0===t||null===(a=t.Tasks)||void 0===a?void 0:a.length)}get nextBatchOperateTasks(){var e,t=(null===(e=this.calculateAsyncOperationTask)||void 0===e?void 0:e.Response.Tasks)||[];return(t.length?t:this.baseStore.listData).filter((e=>this.nextBatchSelectedSet.has(e.ID))).slice(0,Ua.a)}failWithOnlyRequiredComment(e){var t=this;return Object(n.a)((function*(){yield t.baseStore.getListData({loadMore:!1,includeCount:!0});var a=new Set(e.FailTasks.map((e=>{var{TaskID:t}=e;return t})));Object(l.s)((()=>{t.baseStore.listData=t.baseStore.listData.map((e=>a.has(e.TaskID)?Object(i.a)(Object(i.a)({},e),{},{batchOperateSelected:!0}):e))}))}))()}get nextBatchOperateSwitchInfo(){var e,t,{selectedSubMenu:a,selectedKey:r}=this.menuStore,{definitionKeys:i}=this.baseStore,{countTaskData:n}=this.baseStore,o=(null==n?void 0:n.Definitions)||{},s=(null==n?void 0:n.Users)||{},c=i.map((e=>o[e])).find((e=>{var t;return!(null!=e&&e.AllowBatchOperate)&&(null==e||null===(t=e.ManagerUserIDs)||void 0===t?void 0:t.length)})),l=Da(i.map((e=>({ProcessDefinitionKey:e.split(":")[1]})))),d=s[(null==c||null===(e=c.ManagerUserIDs)||void 0===e?void 0:e[0])||""]||(null===(t=va.d.appManagers)||void 0===t?void 0:t[0]),u=i.every((e=>{var t;return null===(t=o[e])||void 0===t?void 0:t.AllowBatchOperate})),p=i.some((e=>{var t;return null===(t=o[e])||void 0===t?void 0:t.AllowBatchOperate})),m=a===R.a.Todo&&r!==R.a.Todo,h="",b="",g="",v=!1;if(l)h=Object(T.t)("BatchOperate.NotSupportBatch"),m=!1;else if(u)h=Object(T.t)("BatchOperate.BatchOperate");else if(p)h=Object(T.t)("BatchOperate.SupportPart");else if(d){[b,g]=Object(T.t)("BatchOperate.NotAllowed",{name:"@@@"}).split("@@@"),v=!0,m=!1}else h=Object(T.t)("BatchOperate.Unsupported"),m=!1;return{show:m,disabled:!p,tooltip:h,tooltipFrontAdmin:b,tooltipBehindAdmin:g,admin:d,isAdminTooltip:v}}get globalBatchOperateSwitchInfo(){var e,t,a,r,i,n,{selectedSubMenu:o,selectedKey:s}=this.menuStore,{countTaskData:c}=this.baseStore,l=(null==c?void 0:c.Definitions)||{},d=(null==c?void 0:c.Users)||{},u=null===(e=this.allDefinitionKeysInTodo)||void 0===e?void 0:e.map((e=>l[e])).find((e=>{var t;return!(null!=e&&e.AllowBatchOperate)&&(null==e||null===(t=e.ManagerUserIDs)||void 0===t?void 0:t.length)})),p=Da(null===(t=this.allDefinitionKeysInTodo)||void 0===t?void 0:t.map((e=>({ProcessDefinitionKey:e.split(":")[1]})))),m=d[(null==u||null===(a=u.ManagerUserIDs)||void 0===a?void 0:a[0])||""]||(null===(r=va.d.appManagers)||void 0===r?void 0:r[0]),h=null===(i=this.allDefinitionKeysInTodo)||void 0===i?void 0:i.every((e=>{var t;return null===(t=l[e])||void 0===t?void 0:t.AllowBatchOperate})),b=null===(n=this.allDefinitionKeysInTodo)||void 0===n?void 0:n.some((e=>{var t;return null===(t=l[e])||void 0===t?void 0:t.AllowBatchOperate})),g=o===R.a.Todo&&s===R.a.Todo&&b&&""===this.baseStore.upStore.indexStore.searchKey,v="",j="",O="",f=!1;if(p)v=Object(T.t)("BatchOperate.NotSupportBatch"),g=!1;else if(h)v=Object(T.t)("BatchOperate.BatchOperate");else if(b)v=Object(T.t)("BatchOperate.SupportPart");else if(m){[j,O]=Object(T.t)("BatchOperate.NotAllowed",{name:"@@@"}).split("@@@"),f=!0,g=!1}else v=Object(T.t)("BatchOperate.Unsupported"),g=!1;return{show:g,disabled:!b,hasAllowedBatchApprovalKey:b,tooltip:v,tooltipFrontAdmin:j,tooltipBehindAdmin:O,admin:m,isAdminTooltip:f}}get isNextBatchAllSelected(){if(this.nextBatchSelectedSet.size){var e;if(this.hasCalcTasks)return Boolean(null===(e=this.calculateAsyncOperationTask)||void 0===e?void 0:e.Response.Tasks.every((e=>this.nextBatchSelectedSet.has(e.ID))));var t=this.baseStore.listData.filter((e=>{var t;return!("2"===(null==e||null===(t=e.Attributes.find((e=>"b2b_flag"===e.Key)))||void 0===t?void 0:t.Value))&&!e.batchOperateCheckDisabled}));if(t.length)return t.every((e=>this.nextBatchSelectedSet.has(e.ID)))}return!1}get batchOperateType(){return this.isBatchAllSelected||!this.batchSelectedCountInList?R.b.ByFilter:R.b.ByTask}get multipleFailDefinitions(){var e;return(null===(e=Object(Ga.a)(this.failTasks,"ProcessDefinitionKey"))||void 0===e?void 0:e.length)>1}get nextBatchOperateType(){return this.isNextBatchAllSelected&&this.hasCalcTasks?R.b.ByFilter:R.b.ByTask}get batchSelectedCountInList(){return this.baseStore.listData.filter((e=>e.batchOperateSelected)).length}get batchCountOfCurrentSubmenu(){var e,t;return(null===(e=this.menuStore.displayedMenuItems.find((e=>e.key===R.a.Todo)))||void 0===e||null===(t=e.children.find((e=>e.title===this.menuStore.selectedKey)))||void 0===t?void 0:t.displayCount)||0}get batchAgreeButtonInfo(){var e;return e=this.batchOperateType===R.b.ByTask?this.batchSelectedCountInList:this.baseStore.timeRange.StartTimestamp||this.baseStore.timeRange.EndTimestamp?this.baseStore.listData.length<30?this.baseStore.listData.length:"n":Math.min(this.batchCountOfCurrentSubmenu,300),{name:this.batchOperateType===R.b.ByFilter?this.batchCountOfCurrentSubmenu>300?Object(T.t)("BatchOperate.AgreeAllWithCount",{count:300}):Object(T.t)("BatchOperate.AgreeAll"):Object(T.t)("Detail.AgreeButton"),count:e}}get nextBatchAgreeButtonInfo(){var e=Math.min(this.nextBatchSelectedSet.size,Ua.a);return{name:Object(T.t)("Detail.AgreeButton"),count:e,evenMore:e>=Ua.a,disabled:!e,indeterminate:Boolean(e)&&!this.isNextBatchAllSelected,selectAllDisabled:!this.baseStore.listData.length}}get nextBatchAgreeOptions(){var e,t,a,i;return this.nextBatchOperateType===R.b.ByFilter?{requireComment:Boolean(null===(e=this.calculateAsyncOperationTask)||void 0===e?void 0:e.RequireComment),requireSignature:Boolean(null===(t=this.calculateAsyncOperationTask)||void 0===t?void 0:t.RequireSignature),isNeedComment:Boolean(null===(a=this.calculateAsyncOperationTask)||void 0===a?void 0:a.NeedComment),isNeedAttachment:Boolean(null===(i=this.calculateAsyncOperationTask)||void 0===i?void 0:i.NeedAttachment)}:{isNeedComment:this.nextBatchOperateTasks.some((e=>{var{Attributes:t,System:a}=e;return a===R.e.FeiShu||t.some((e=>{var{Key:t,Value:a}=e;return"action_configs"===t&&JSON.parse(a||"[]").some((e=>e.actionType===r.APPROVE&&e.isNeedReason))}))})),isNeedAttachment:this.nextBatchOperateTasks.some((e=>{var{Attributes:t,System:a}=e;return a===R.e.FeiShu||t.some((e=>{var{Key:t,Value:a}=e;return"action_configs"===t&&JSON.parse(a||"[]").some((e=>e.actionType===r.APPROVE&&e.isNeedAttachment))}))})),requireComment:Boolean(this.nextBatchOperateTasks.some((e=>{var{Attributes:t}=e;return t.some((e=>{var{Key:t,Value:a}=e;return"require_approval_comment"===t&&"true"===a}))}))),requireSignature:Boolean(this.nextBatchOperateTasks.some((e=>{var{Attributes:t}=e;return t.some((e=>{var{Key:t,Value:a}=e;return"require_signature"===t&&"true"===a}))})))}}constructor(e){var t;super(e),t=this,Object(o.a)(this,"batchOperateProcessing",Ie,this),Object(o.a)(this,"scrollTopBeforeGlobalBatchMode",Ce,this),Object(o.a)(this,"batchOperateModalVisible",xe,this),Object(o.a)(this,"udLikeModalVisible",Se,this),Object(o.a)(this,"udLikeModalProps",we,this),Object(o.a)(this,"batchOperateModalTitle",Le,this),Object(o.a)(this,"batchOperateModalPlaceholder",Ee,this),Object(s.a)(this,"OperationID",""),Object(s.a)(this,"latestOperationAction",void 0),Object(s.a)(this,"latestComment",void 0),Object(s.a)(this,"batchCountOfCurrentSubmenuBeforeRequest",void 0),Object(s.a)(this,"retryBatchOperate",function(){var e=Object(n.a)((function*(e){t.batchCountOfCurrentSubmenuBeforeRequest=t.batchCountOfCurrentSubmenu;var a=yield S.c.batchOperate({OperationType:za.a.ByTask,AsyncOperationTasks:e.map((e=>({TaskID:e,InstanceID:"",System:""}))),AsyncOperationFilter:{Filter:{},Order:2-t.baseStore.order},OperationAction:t.latestOperationAction,Comment:Object(Sa.k)(t.latestComment)?"":JSON.stringify(t.latestComment),CommentVersion:1});t.OperationID=a.data.OperationID,t.startPollingBatchOperate()}));return function(t){return e.apply(this,arguments)}}()),Object(o.a)(this,"submitBatchOperate",ke,this),Object(o.a)(this,"currentBatchTasks",ze,this),Object(o.a)(this,"nextSubmitBatchOperate",Re,this),Object(s.a)(this,"pollBatchOperateInterval",void 0),Object(s.a)(this,"cancelBatchOperateTimeout",void 0),Object(s.a)(this,"stopBatchOperateTimeout",void 0),Object(s.a)(this,"showDefaultFailedModal",((e,t)=>{ga.a.showModal({title:Object(T.t)("BatchOperate.OperateFailedTitle"),content:Object(T.t)("BatchOperate.ServerBusyFailed"),confirmText:Object(T.t)("Modal_Button_Text"),showCancel:!1,success:()=>{Object(C.b)("approval_batch_deal",{batch_num:e||this.batchAgreeButtonInfo.count,batch_result:"close"}),null==t||t()}})})),Object(s.a)(this,"doneOperationIDSet",new Set),Object(o.a)(this,"startPollingBatchOperate",Pe,this),Object(o.a)(this,"batchRate",Ue,this),Object(o.a)(this,"batchStatus",Be,this),Object(o.a)(this,"nextStartPollingBatchOperate",Fe,this),Object(o.a)(this,"batchFailModalVisible",Ye,this),Object(o.a)(this,"failTasks",Qe,this),Object(o.a)(this,"failStatistics",Ge,this),Object(o.a)(this,"batchOperationKey",We,this),Object(o.a)(this,"batchFailName",Ve,this),Object(o.a)(this,"batchFailTotalCount",He,this),Object(o.a)(this,"handleBatchFail",Ze,this),Object(o.a)(this,"handleBatchFailConfirm",qe,this),Object(o.a)(this,"handleBatchFailCancel",Ke,this),Object(o.a)(this,"openBatchOperateModal",Je,this),Object(o.a)(this,"openUDLikeModal",Xe,this),Object(o.a)(this,"closeBatchOperateModal",$e,this),Object(o.a)(this,"closeUDLikeModal",et,this),Object(o.a)(this,"isBatchAllSelected",at,this),Object(o.a)(this,"quicklyModalVisible",rt,this),Object(o.a)(this,"setQuicklyModalVisible",it,this),Object(o.a)(this,"batchSelectAll",nt,this),Object(o.a)(this,"batchDeselectAll",ot,this),Object(o.a)(this,"nextBatchSelectedSet",st,this),Object(o.a)(this,"addNextBatchSelectedByTasks",ct,this),Object(o.a)(this,"addNextBatchSelected",lt,this),Object(o.a)(this,"delNextBatchSelected",dt,this),Object(o.a)(this,"nextBatchSelectAll",ut,this),Object(o.a)(this,"nextBatchDeselectAll",pt,this),Object(o.a)(this,"changeBatchOperateSelectedOf",mt,this),Object(o.a)(this,"changeNextBatchOperateSelectedOf",ht,this),Object(o.a)(this,"batchSelectCurrentCard",bt,this),Object(s.a)(this,"getCardInfoWithBatchInfo",(e=>Object(i.a)(Object(i.a)({},e),{},{batchOperateSelected:this.isBatchAllSelected}))),Object(o.a)(this,"isBatchMode",gt,this),Object(o.a)(this,"calculateAsyncOperationTask",vt,this),Object(s.a)(this,"filterTask",(e=>{var t,{Attributes:a}=e,r="true"===(null===(t=a.find((e=>{var{Key:t}=e;return"blocked_cc_enable"===t})))||void 0===t?void 0:t.Value);return!r})),Object(o.a)(this,"nextOpenBatchMode",jt,this),Object(o.a)(this,"globalOpenBatchMode",Ot,this),Object(o.a)(this,"fetchGlobalBatchModeTasks",ft,this),Object(o.a)(this,"closeBatchMode",Mt,this),Object(o.a)(this,"nextCloseBatchMode",_t,this),Object(o.a)(this,"storeType",yt,this),Object(o.a)(this,"topic",Dt,this),Object(s.a)(this,"getListCallback",(e=>{this.indexStore.tryTransferPreloadMessage(e)})),Object(s.a)(this,"shouldSetNextCard",(()=>!0)),Object(s.a)(this,"shouldSetNextMenu",(()=>!0)),Object(s.a)(this,"menuMatchFilter",(e=>!(this.baseStore.definitionKeys.length>0)||this.baseStore.definitionKeys.includes(e.DefinitionKey)||this.menuStore.selectedKey===e.DefinitionName)),Object(o.a)(this,"beforeTaskRemove",Nt,this),Object(o.a)(this,"updateMenuCount",At,this),Object(s.a)(this,"reportListAndCountConflict",(()=>{var e=this.menuStore.menuItems.find((e=>e.key===this.storeType));if(e){var t=e.children.find((e=>this.baseStore.definitionKeys.includes(e.key)||this.menuStore.selectedKey===e.title)),a=new Map;this.baseStore.listData.forEach((e=>{var t=a.get(e.DefinitionName);t?a.set(e.DefinitionName,t+Object(Qa.e)(e)):a.set(e.DefinitionName,Object(Qa.e)(e))}));var r=t?[t]:e.children;for(var i of r){var n=a.get(i.title)||0;n!==i.displayCount&&(Object(Qa.q)(this.topic,n,i.title,"fetch-list",this.indexStore.tabKey),h.a.info("列表与菜单计数不一致",{topic:this.topic,title:i.title,countFromList:n,displayCount:i.displayCount}))}}})),tt.onNetworkStatusChange((e=>{var{isConnected:t}=e;Wa("wsNetworkChange",{isConnected:t}),t&&"pending"===this.batchStatus&&setTimeout((()=>{this.indexStore.taskUpdater.stopPolling("networkConnected_batchStatusPending"),Pa.a.startPolling(S.c.v2MGetAsyncOperation)}),10)})),Object(l.r)((()=>({loadOver:this.isLoaded,timeRange:this.baseStore.timeRange})),(e=>{this.canUpdateMenuCount&&this.reportListAndCountConflict()}))}get canUpdateMenuCount(){if(!this.isLoaded)return!1;if(this.indexStore.inSearchMode)return!1;var{StartTimestamp:e,EndTimestamp:t}=this.baseStore.timeRange;return!e&&!t}},Ie=Object(c.a)(Te.prototype,"batchOperateProcessing",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ce=Object(c.a)(Te.prototype,"scrollTopBeforeGlobalBatchMode",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),xe=Object(c.a)(Te.prototype,"batchOperateModalVisible",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Se=Object(c.a)(Te.prototype,"udLikeModalVisible",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),we=Object(c.a)(Te.prototype,"udLikeModalProps",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Le=Object(c.a)(Te.prototype,"batchOperateModalTitle",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ee=Object(c.a)(Te.prototype,"batchOperateModalPlaceholder",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ke=Object(c.a)(Te.prototype,"submitBatchOperate",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(n.a)((function*(t,a){e.latestOperationAction=t,e.latestComment=a;var r=e.batchOperateType===R.b.ByTask?e.baseStore.listData.filter((e=>e.batchOperateSelected)).map((e=>({InstanceID:e.ProcessID,TaskID:e.TaskID,System:e.System}))):[],i=e.batchOperateType===R.b.ByFilter?{Topic:e.topic,Querystring:e.indexStore.searchKey,StartTimestamp:e.baseStore.timeRange.StartTimestamp,EndTimestamp:e.baseStore.timeRange.EndTimestamp,DefinitionKeys:e.baseStore.definitionKeys}:{};e.batchCountOfCurrentSubmenuBeforeRequest=e.batchCountOfCurrentSubmenu;var n=yield S.c.batchOperate({OperationType:e.batchOperateType,AsyncOperationTasks:r,AsyncOperationFilter:{Filter:i,Order:2-e.baseStore.order},OperationAction:t,Comment:Object(Sa.k)(a)?"":JSON.stringify(a),CommentVersion:1});e.OperationID=n.data.OperationID,e.closeBatchOperateModal(),e.startPollingBatchOperate()}));return function(e,a){return t.apply(this,arguments)}}()}}),ze=Object(c.a)(Te.prototype,"currentBatchTasks",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(Te.prototype,"isGlobalBatchMode",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"isGlobalBatchMode"),Te.prototype),Object(c.a)(Te.prototype,"allDefinitionKeysInTodo",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"allDefinitionKeysInTodo"),Te.prototype),Object(c.a)(Te.prototype,"hasCalcTasks",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"hasCalcTasks"),Te.prototype),Object(c.a)(Te.prototype,"nextBatchOperateTasks",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"nextBatchOperateTasks"),Te.prototype),Re=Object(c.a)(Te.prototype,"nextSubmitBatchOperate",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(n.a)((function*(t,a){try{a||tt.showLoading({title:Object(T.t)("ApprovalList_Shortcut_Submittig"),mask:!0}),e.currentBatchTasks=e.nextBatchOperateTasks.slice();var{requireSignature:r}=e.nextBatchAgreeOptions,i=yield S.c.v2SubmitAsyncOperationPath({Tasks:e.currentBatchTasks.map((e=>({ProcessID:e.ProcessID,ProcessUniqueID:e.ProcessUniqueID||"",ProcessDefinitionKey:e.ProcessDefinitionKey||"",TaskID:e.TaskID,TaskUniqueID:e.TaskUniqueID||"",System:e.System}))),CommonParams:{OperationAction:t,Comment:Object(Sa.k)(a)?"":JSON.stringify(a),CommentVersion:1,SignatureKey:r?(null==a?void 0:a.signatureKey)||"":void 0,SignatureURL:r?(null==a?void 0:a.signatureUrl)||"":void 0,IsReuseSignature:r?(null==a?void 0:a.isReuseSignature)||!1:void 0}});Fa.a.batchConfirm(e.currentBatchTasks.length),e.OperationID=i.data.OperationKey,Object(l.s)((()=>{e.batchStatus="pending"})),e.closeBatchOperateModal(),e.closeBatchMode(),e.nextStartPollingBatchOperate(),e.menuStore.setSelectedKey(R.a.Todo,R.a.Todo,[])}catch(t){t.code===Ba.a.HasBatchOperation?(tt.showToast({title:Object(T.t)("BatchOperate.WaitingCurrentBatchTask"),icon:"warning",duration:3e3}),e.closeBatchOperateModal(),e.closeBatchMode(),e.nextStartPollingBatchOperate()):tt.showToast({title:Object(T.t)("ApprovalList_Shortcut_Failed"),icon:"error",duration:2e3}),Wa("commonOnError",{error:Object(Oa.a)(t)})}finally{tt.hideLoading(),e.setQuicklyModalVisible(!1)}}));return function(e,a){return t.apply(this,arguments)}}()}}),Pe=Object(c.a)(Te.prototype,"startPollingBatchOperate",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return()=>{this.stopBatchOperateTimeout=setTimeout((()=>{ga.a.hideLoading(),clearInterval(this.pollBatchOperateInterval),Object(l.s)((()=>{this.batchOperateProcessing=!1})),this.showDefaultFailedModal(void 0,(()=>{this.baseStore.getListData({loadMore:!1,includeCount:!0})}))}),6e4),ga.a.showLoading({title:Object(T.t)("BatchOperate.Loading")}),this.batchOperateProcessing=!0,this.indexStore.taskUpdater.stopPolling("startPollingBatchOperate"),this.pollBatchOperateInterval=setInterval(Object(n.a)((function*(){var t=(yield S.c.pollBatchOperate(void 0)).data.Operations.find((t=>t.OperationID===e.OperationID));if((null==t?void 0:t.Status)===Ra.b.SyncFinish&&!e.doneOperationIDSet.has(e.OperationID)){if(e.doneOperationIDSet.add(e.OperationID),clearInterval(e.pollBatchOperateInterval),clearTimeout(e.cancelBatchOperateTimeout),clearTimeout(e.stopBatchOperateTimeout),0===t.FailCount)Object(C.b)("approval_batch_deal",{batch_num:t.SuccessCount,batch_result:"success"}),ga.a.showToast({title:Object(T.t)("BatchOperate.Success"),icon:"success",duration:2e3}),e.closeBatchMode();else if(t.FailTasks.some((e=>10300===e.Code)))ga.a.showModal({title:Object(T.t)("BatchOperate.OperateFailedTitle"),content:Object(T.t)("BatchOperate.SomeFailed"),confirmText:Object(T.t)("BatchOperate.Retry"),cancelText:Object(T.t)("ModalCancelText"),success:a=>{var{confirm:r,cancel:i}=a;r?(Object(C.b)("approval_batch_deal",{batch_num:t.SuccessCount+t.FailCount,batch_result:"again"}),e.retryBatchOperate(t.FailTasks.map((e=>{var{TaskID:t}=e;return t})))):i&&Object(C.b)("approval_batch_deal",{batch_num:t.SuccessCount+t.FailCount,batch_result:"close"})}});else if(t.FailTasks.some((e=>10150===e.Code))){var a;ga.a.showModal({title:Object(T.t)("BatchOperate.OperateFailedTitle"),content:Object(T.t)("BatchOperate.SignatureFailInfo",{name:(null===(a=e.menuStore)||void 0===a?void 0:a.selectedKey)||""}),confirmText:Object(T.t)("Modal_Button_Text"),showCancel:!1,success:()=>{Object(C.b)("approval_batch_deal",{batch_num:t.SuccessCount+t.FailCount,batch_result:"close"}),e.closeBatchMode()}})}else t.FailTasks.some((e=>10160===e.Code))?ga.a.showModal({title:Object(T.t)("BatchOperate.OperateFailedTitle"),content:Object(T.t)("BatchOperate.HandlerFailInfo"),confirmText:Object(T.t)("Modal_Button_Text"),showCancel:!1,success:()=>{Object(C.b)("approval_batch_deal",{batch_num:t.SuccessCount+t.FailCount,batch_result:"close"}),e.closeBatchMode()}}):t.FailTasks.some((e=>10125===e.Code))?ga.a.showModal({title:Object(T.t)("BatchOperate.OperateFailedTitle"),content:Object(T.t)("BatchOperate.EditableFailed",{name:e.menuStore.selectedKey}),confirmText:Object(T.t)("Modal_Button_Text"),showCancel:!1,success:()=>{Object(C.b)("approval_batch_deal",{batch_num:t.SuccessCount+t.FailCount,batch_result:"close"}),e.closeBatchMode()}}):t.FailTasks.some((e=>10126===e.Code))?e.openUDLikeModal({type:"warning",showCancel:!1,confirmText:Object(T.t)("DefaultModalConfirm"),title:Object(T.t)("PatchNeedComment"),onConfirm:e.closeUDLikeModal}):e.showDefaultFailedModal();t.SuccessCount>=e.batchCountOfCurrentSubmenuBeforeRequest?(yield Object(Sa.s)(2e3),h.a.warn("批量处理完毕,大刷前需清空异步队列"),Object(C.b)(j.f.ApprovalAwaitQueueStop,{reason:"批量处理完毕,大刷前需清空异步队列"}),e.indexStore.queue.stop(),e.closeBatchMode(),e.menuStore.setSelectedKey(R.a.Todo,R.a.Todo,[])):t.SuccessCount&&(yield Object(Sa.s)(2e3),t.FailTasks.every((e=>10126===e.Code))?yield e.failWithOnlyRequiredComment(t):e.baseStore.getListData({loadMore:!1,includeCount:!0})),ga.a.hideLoading(),Object(l.s)((()=>{e.batchOperateProcessing=!1,e.indexStore.taskUpdater.startPolling()}))}})),500),this.cancelBatchOperateTimeout=setTimeout((()=>{S.c.cancelBatchOperate({OperationID:this.OperationID})}),3e4)}}}),Ue=Object(c.a)(Te.prototype,"batchRate",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Be=Object(c.a)(Te.prototype,"batchStatus",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=Object(c.a)(Te.prototype,"nextStartPollingBatchOperate",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=!1,r=[],i=()=>{h.a.info("[batch] cancelListener"),r.forEach((e=>e()))},n=Pa.a.listen("start",(()=>{t||(e.batchRate=0,e.batchStatus="pending",e.indexStore.taskUpdater.stopPolling("nextStartPollingBatchOperate_start"),a=!0)}));r.push(n);var o=Pa.a.listen("progress",(t=>{var{rate:r}=t;Object(l.s)((()=>{e.batchRate=r,e.batchStatus="pending",a||(e.indexStore.taskUpdater.stopPolling("nextStartPollingBatchOperate_progress"),a=!0)}))}));r.push(o);var s=Pa.a.listen("failed",(t=>{var{status:a}=t;i(),h.a.info("[batch approval] failed",a),Object(l.s)((()=>{e.batchStatus=void 0,e.batchRate=0}))}));r.push(s);var c=Pa.a.listen("end",(t=>{i(),Object(l.s)((()=>{var{status:a}=t;e.batchStatus=a,"success"===a?(Fa.a.batchDoneRefesh(),e.menuStore.refreshCurrentMenu(),ga.a.showToast({title:Object(T.t)("BatchOperate.Success"),icon:"success",duration:2e3})):"fail"===a&&e.handleBatchFail(t),setTimeout((()=>{S.c.v2CancelAsyncOperationNotification({OperationKey:e.batchOperationKey})}),2e3)})),setTimeout((()=>{Object(l.s)((()=>{e.batchStatus=void 0,e.batchRate=0}))}),2e3)}));r.push(c),Pa.a.startPolling(S.c.v2MGetAsyncOperation)}}}),Ye=Object(c.a)(Te.prototype,"batchFailModalVisible",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=Object(c.a)(Te.prototype,"failTasks",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ge=Object(c.a)(Te.prototype,"failStatistics",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=Object(c.a)(Te.prototype,"batchOperationKey",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ve=Object(c.a)(Te.prototype,"batchFailName",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),He=Object(c.a)(Te.prototype,"batchFailTotalCount",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ze=Object(c.a)(Te.prototype,"handleBatchFail",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{failTasks:t=[],failStatistics:a=[],OperationKey:r,name:i,totalCount:n}=e;this.failTasks=t,this.failStatistics=a,this.batchOperationKey=r,this.batchFailModalVisible=!0,this.batchFailName=i,this.batchFailTotalCount=n}}}),qe=Object(c.a)(Te.prototype,"handleBatchFailConfirm",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var e;this.batchFailModalVisible=!1,this.multipleFailDefinitions||this.menuStore.setApplinkDefinitionName(null===(e=this.currentBatchTasks[0])||void 0===e?void 0:e.DefinitionName),this.menuStore.setSelectedKey(R.a.Todo,R.a.Todo,[]),Fa.a.batchDoneRefesh()}}}),Ke=Object(c.a)(Te.prototype,"handleBatchFailCancel",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.batchFailModalVisible=!1,this.menuStore.refreshCurrentMenu(),Fa.a.batchDoneRefesh()}}}),Object(c.a)(Te.prototype,"failWithOnlyRequiredComment",[l.f],Object.getOwnPropertyDescriptor(Te.prototype,"failWithOnlyRequiredComment"),Te.prototype),Je=Object(c.a)(Te.prototype,"openBatchOperateModal",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{this.batchOperateModalTitle=e,this.batchOperateModalPlaceholder=t,this.batchOperateModalVisible=!0}}}),Xe=Object(c.a)(Te.prototype,"openUDLikeModal",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.udLikeModalProps=e,this.udLikeModalVisible=!0}}}),$e=Object(c.a)(Te.prototype,"closeBatchOperateModal",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.batchOperateModalVisible=!1}}}),et=Object(c.a)(Te.prototype,"closeUDLikeModal",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.udLikeModalVisible=!1,this.udLikeModalProps=null}}}),Object(c.a)(Te.prototype,"nextBatchOperateSwitchInfo",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"nextBatchOperateSwitchInfo"),Te.prototype),Object(c.a)(Te.prototype,"globalBatchOperateSwitchInfo",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"globalBatchOperateSwitchInfo"),Te.prototype),at=Object(c.a)(Te.prototype,"isBatchAllSelected",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(Te.prototype,"isNextBatchAllSelected",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"isNextBatchAllSelected"),Te.prototype),rt=Object(c.a)(Te.prototype,"quicklyModalVisible",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),it=Object(c.a)(Te.prototype,"setQuicklyModalVisible",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>this.quicklyModalVisible=e}}),Object(c.a)(Te.prototype,"batchOperateType",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"batchOperateType"),Te.prototype),Object(c.a)(Te.prototype,"multipleFailDefinitions",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"multipleFailDefinitions"),Te.prototype),Object(c.a)(Te.prototype,"nextBatchOperateType",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"nextBatchOperateType"),Te.prototype),Object(c.a)(Te.prototype,"batchSelectedCountInList",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"batchSelectedCountInList"),Te.prototype),Object(c.a)(Te.prototype,"batchCountOfCurrentSubmenu",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"batchCountOfCurrentSubmenu"),Te.prototype),Object(c.a)(Te.prototype,"batchAgreeButtonInfo",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"batchAgreeButtonInfo"),Te.prototype),Object(c.a)(Te.prototype,"nextBatchAgreeButtonInfo",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"nextBatchAgreeButtonInfo"),Te.prototype),Object(c.a)(Te.prototype,"nextBatchAgreeOptions",[l.h],Object.getOwnPropertyDescriptor(Te.prototype,"nextBatchAgreeOptions"),Te.prototype),nt=Object(c.a)(Te.prototype,"batchSelectAll",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.isBatchAllSelected=!0,this.baseStore.listData=this.baseStore.listData.map((e=>Object(i.a)(Object(i.a)({},e),{},{batchOperateSelected:!0})))}}}),ot=Object(c.a)(Te.prototype,"batchDeselectAll",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.isBatchAllSelected=!1,this.baseStore.listData=this.baseStore.listData.map((e=>Object(i.a)(Object(i.a)({},e),{},{batchOperateSelected:!1})))}}}),st=Object(c.a)(Te.prototype,"nextBatchSelectedSet",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Set}}),ct=Object(c.a)(Te.prototype,"addNextBatchSelectedByTasks",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{e.forEach((e=>{e.batchOperateCheckDisabled||this.nextBatchSelectedSet.add(e.ID)}))}}}),lt=Object(c.a)(Te.prototype,"addNextBatchSelected",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>this.nextBatchSelectedSet.add(e)}}),dt=Object(c.a)(Te.prototype,"delNextBatchSelected",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>this.nextBatchSelectedSet.delete(e)}}),ut=Object(c.a)(Te.prototype,"nextBatchSelectAll",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var e,t,a;null!==(e=this.calculateAsyncOperationTask)&&void 0!==e&&null!==(t=e.Response)&&void 0!==t&&null!==(a=t.Tasks)&&void 0!==a&&a.length?this.calculateAsyncOperationTask.Response.Tasks.forEach((e=>{this.nextBatchSelectedSet.add(e.ID)})):this.baseStore.listData.filter((e=>!e.batchOperateCheckDisabled)).forEach((e=>this.nextBatchSelectedSet.add(e.ID)))}}}),pt=Object(c.a)(Te.prototype,"nextBatchDeselectAll",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.nextBatchSelectedSet=new Set}}}),mt=Object(c.a)(Te.prototype,"changeBatchOperateSelectedOf",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var t=this.baseStore.listData.findIndex((t=>t.ID===e.ID));if(t>=0){var a=e.batchOperateSelected;a&&(this.isBatchAllSelected=!1),this.baseStore.listData.splice(t,1,Object(i.a)(Object(i.a)({},e),{},{batchOperateSelected:!a}))}}}}),ht=Object(c.a)(Te.prototype,"changeNextBatchOperateSelectedOf",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.nextBatchSelectedSet.has(e.ID)?this.delNextBatchSelected(e.ID):this.addNextBatchSelected(e.ID)}}}),bt=Object(c.a)(Te.prototype,"batchSelectCurrentCard",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var e=this.baseStore.listData.findIndex((e=>{var t;return e.ID===(null===(t=this.baseStore.listActiveItem)||void 0===t?void 0:t.ID)}));if(e>=0){var t=this.baseStore.listData[e];this.baseStore.listData.splice(e,1,Object(i.a)(Object(i.a)({},t),{},{batchOperateSelected:!0}))}}}}),gt=Object(c.a)(Te.prototype,"isBatchMode",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vt=Object(c.a)(Te.prototype,"calculateAsyncOperationTask",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jt=Object(c.a)(Te.prototype,"nextOpenBatchMode",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Object(n.a)((function*(){var{showTip:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("pending"!==e.batchStatus){var a;va.d.enableQuicklyApproval&&(null===(a=Ya.a.use())||void 0===a||a.close()),e.nextBatchDeselectAll(),e.calculateAsyncOperationTask=void 0,e.isBatchMode=!0,e.indexStore.taskUpdater.stopPolling("nextOpenBatchMode"),t&&e.baseStore.setTopTip(Object(T.t)("BatchOperate.BatchOpened",{name:e.menuStore.selectedKey}));try{var r=yield S.c.v2CalculateAsyncOperationTask({Request:{Filter:{Topic:e.baseStore.upStore.topic,Querystring:e.baseStore.upStore.indexStore.searchKey,StartTimestamp:e.baseStore.timeRange.StartTimestamp,EndTimestamp:e.baseStore.timeRange.EndTimestamp,DefinitionKeys:e.baseStore.definitionKeys},PageSize:1e3,Direction:e.baseStore.direction,Order:Ta-e.baseStore.order,NextPageToken:""}}),i=e.isNextBatchAllSelected;Object(l.s)((()=>{var t,a,n;e.calculateAsyncOperationTask=r.data,null!==(t=e.calculateAsyncOperationTask)&&void 0!==t&&null!==(a=t.Response)&&void 0!==a&&null!==(n=a.Tasks)&&void 0!==n&&n.length&&(e.calculateAsyncOperationTask.Response.Tasks=e.calculateAsyncOperationTask.Response.Tasks.filter(e.filterTask)),i&&e.nextBatchSelectAll()}))}catch(e){h.a.error("nextOpenBatchMode",e)}}else tt.showToast({title:Object(T.t)("BatchOperate.WaitingCurrentBatchTask"),icon:"warning",duration:3e3})}))}}),Ot=Object(c.a)(Te.prototype,"globalOpenBatchMode",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Object(n.a)((function*(){var{showTip:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("pending"!==e.batchStatus){var a;va.d.enableQuicklyApproval&&(null===(a=Ya.a.use())||void 0===a||a.close()),e.scrollTopBeforeGlobalBatchMode=e.baseStore.scrollTop,e.baseStore.setScrollTop(0),e.calculateAsyncOperationTask=void 0,e.isBatchMode=!0,e.indexStore.taskUpdater.stopPolling("globalOpenBatchMode"),t&&e.baseStore.setTopTip(Object(T.t)("BatchOperate.BatchOpened",{name:e.menuStore.selectedKey}));try{yield e.fetchGlobalBatchModeTasks()}catch(e){h.a.error("globalOpenBatchMode",e)}}else tt.showToast({title:Object(T.t)("BatchOperate.WaitingCurrentBatchTask"),icon:"warning",duration:3e3})}))}}),ft=Object(c.a)(Te.prototype,"fetchGlobalBatchModeTasks",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Object(n.a)((function*(){try{e.baseStore.listRendered=!1;var t=yield S.c.v2CalculateAsyncOperationTask({Request:{Filter:{Topic:m.i.TodoApproval,StartTimestamp:e.baseStore.timeRange.StartTimestamp,EndTimestamp:e.baseStore.timeRange.EndTimestamp,DefinitionKeys:e.allDefinitionKeysInTodo},PageSize:1e3,Direction:e.baseStore.direction,Order:Ta-e.baseStore.order,NextPageToken:""}});Object(l.s)((()=>{var a,r,i;e.calculateAsyncOperationTask=t.data,null!==(a=e.calculateAsyncOperationTask)&&void 0!==a&&null!==(r=a.Response)&&void 0!==r&&null!==(i=r.Tasks)&&void 0!==i&&i.length&&(e.calculateAsyncOperationTask.Response.Tasks=e.calculateAsyncOperationTask.Response.Tasks.filter(e.filterTask)),e.baseStore.listRendered=!0}))}catch(t){e.baseStore.setListRendered(!0),h.a.error("fetchGlobalBatchModeTasks",t)}}))}}),Mt=Object(c.a)(Te.prototype,"closeBatchMode",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.nextCloseBatchMode()}}}),_t=Object(c.a)(Te.prototype,"nextCloseBatchMode",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.menuStore.selectedSubMenu===R.a.Todo&&this.menuStore.selectedKey===R.a.Todo&&this.baseStore.setScrollTop(this.scrollTopBeforeGlobalBatchMode),this.isBatchMode=!1,this.nextBatchDeselectAll(),this.calculateAsyncOperationTask=void 0,this.baseStore.setTopTip(""),"pending"!==this.batchStatus&&this.indexStore.taskUpdater.startPolling()}}}),yt=Object(c.a)(Te.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.Todo}}),Dt=Object(c.a)(Te.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.i.TodoApproval}}),Nt=Object(c.a)(Te.prototype,"beforeTaskRemove",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{if(!(this.baseStore.listData.length>1)){var t=this.menuStore.displayedMenuItems.find((e=>e.key===this.storeType));if(t){var a=t.children.find((t=>t.title===e.DefinitionName||t.definitionKeys.includes(e.DefinitionKey)));a&&(a.disabled=!0)}}}}}),At=Object(c.a)(Te.prototype,"updateMenuCount",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(Wa("cardlistCoerceStart",{state:{topic:this.topic,DefinitionKeys:this.baseStore.definitionKeys,selectedKey:this.menuStore.selectedKey,isLoaded:this.isLoaded,inSearchMode:this.indexStore.inSearchMode,timeRange:this.baseStore.timeRange}}),this.canUpdateMenuCount){var e,t=this.menuStore.menuItems.find((e=>e.key===this.storeType));if(t)if(this.baseStore.definitionKeys.length>0&&!(e=t.children.find((e=>this.baseStore.definitionKeys.includes(e.key)||this.menuStore.selectedKey===e.title))))h.a.info("taskCenter: 按照名称或DefinitionKey搜索不到对应分类");else{var a=new Map;this.baseStore.listData.forEach((e=>{var t=a.get(e.DefinitionName);t?a.set(e.DefinitionName,t+Object(Qa.e)(e)):a.set(e.DefinitionName,Object(Qa.e)(e))}));var r=e?[e]:t.children;for(var i of r){var n=a.get(i.title)||0;n!==i.displayCount&&i.set(n)}t.children=t.children.filter((e=>e.displayCount>0))}}}}}),Te),Ha=Va,Za=Object(I.c)("pc:src/stores/index/cc-store.ts"),qa=(Tt=class extends La{constructor(){var e;super(...arguments),e=this,Object(o.a)(this,"storeType",It,this),Object(o.a)(this,"topic",Ct,this),Object(o.a)(this,"readedCard",xt,this),Object(o.a)(this,"readedCardId",St,this),Object(o.a)(this,"setReadedCard",wt,this),Object(s.a)(this,"updateReadedCard",(e=>{var t=this.indexStore.taskCache.get(this.readedCardId)||this.readedCard;t&&t.ID!==e.ID?(this.indexStore.taskUpdater.triggerUpdate(t.ID,t,Object(i.a)(Object(i.a)({},t),{},{Topic:m.i.ReadNotice})),this.setReadedCard(e)):this.setReadedCard(e)})),Object(s.a)(this,"handleTask",function(){var t=Object(n.a)((function*(t){var{Topic:a}=t,r=a===m.i.UnreadNotice?R.d.UnreadListData:R.d.ReadListData;a===m.i.UnreadNotice&&(t=Object(i.a)(Object(i.a)({},t),{},{isReaded:!0})),e.baseStore.setCcListData(r,[t]),yield e.baseStore.getCcTask(a)}));return function(e){return t.apply(this,arguments)}}())}addTask(e){var t;this.pristine||this.matchFilter(e)&&(null===(t=this.baseStore.activeDetailItem)||void 0===t?void 0:t.ID)!==e.ID&&(e.isFlipOut=!0,e.isNew=!0,this.addCcListData(e))}addCcListData(e){Za("cardListAddCard",{message:e,info:"新增抄送列表数据"});var t=this.getTargetList(e.Topic);if(e.Topic===m.i.UnreadNotice)this.baseStore.order===p.c.Desc?t.unshift(e):t.push(e);else{var a=-1;-1===(a=this.baseStore.order===p.c.Desc?t.findIndex((t=>e.Timestamp>=t.Timestamp)):t.findIndex((t=>e.Timestamp<t.Timestamp)))&&(a=t.length),Za("cardListAddCard",{message:e,info:"已读卡片插入在列表位置是".concat(a)}),t.splice(a,0,e)}}removeTask(e){var t=this;return Object(n.a)((function*(){var{Topic:a}=e,r=a===m.i.UnreadNotice,i=r?t.baseStore.unreadListData:t.baseStore.readListData,n=i.findIndex((t=>t.ID===e.ID));if(-1!==n){var o,s=i[n];r?(s.isReaded=!0,Za("cardlistReadCopy",{id:s.ID}),(null===(o=t.baseStore.activeDetailItem)||void 0===o?void 0:o.ID)!==e.ID?(s.isFlipOut=!0,s.isNew=!1,yield Object(Sa.s)(200),Object(l.s)((()=>{r?t.baseStore.unreadListData.splice(n,1):t.baseStore.readListData.splice(n,1)})),Za("cardListDeleteCard",{message:s,info:"卡片已经删除"})):(t.setReadedCard(e),t.indexStore.taskCache.set(e.ID,e))):(s.isFlipOut=!0,s.isNew=!1,yield Object(Sa.s)(200),Object(l.s)((()=>{i.splice(n,1)})),Za("cardListDeleteCard",{message:s,info:"卡片已经删除"}))}}))()}},It=Object(c.a)(Tt.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.CarbonCopy}}),Ct=Object(c.a)(Tt.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.i.UnreadNotice}}),xt=Object(c.a)(Tt.prototype,"readedCard",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),St=Object(c.a)(Tt.prototype,"readedCardId",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Object(c.a)(Tt.prototype,"setReadedCard",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.readedCard=e,this.readedCardId=e.ID}}}),Object(c.a)(Tt.prototype,"addCcListData",[l.f],Object.getOwnPropertyDescriptor(Tt.prototype,"addCcListData"),Tt.prototype),Object(c.a)(Tt.prototype,"removeTask",[l.f],Object.getOwnPropertyDescriptor(Tt.prototype,"removeTask"),Tt.prototype),Tt),Ka=qa,Ja=a(308),Xa=a(224),$a=(Lt=class{constructor(e){var t=this;Object(s.a)(this,"indexStore",void 0),Object(o.a)(this,"qrCodePersonalUrl",Et,this),Object(o.a)(this,"qrCodeTeamUrl",kt,this),Object(o.a)(this,"activeTab",zt,this),Object(s.a)(this,"getQrCodeUrl",Object(n.a)((function*(){try{yield t.getQrCodePersonalUrl(),yield t.getQrCodeTeamUrl()}catch(e){Object(C.b)(j.f.ApprovalError,{location:"in function getQrCodeUrl",message:JSON.stringify(e)}),h.a.error("function getQrCodeUrl error",e)}}))),Object(s.a)(this,"getQrCodeTeamUrl",Object(n.a)((function*(){try{if(t.qrCodeTeamUrl)return;var e=yield Object(Ja.d)(!0);t.setData("qrCodeTeamUrl",e)}catch(e){Object(C.b)(j.f.ApprovalError,{location:"in function getQrCodeTeamUrl",message:JSON.stringify(e)}),h.a.error("function getQrCodeTeamUrl error",e)}}))),Object(s.a)(this,"getQrCodePersonalUrl",Object(n.a)((function*(){try{if(t.qrCodePersonalUrl)return;var e=yield Object(Ja.d)();t.setData("qrCodePersonalUrl",e)}catch(e){Object(C.b)(j.f.ApprovalError,{location:"in function getQrCodePersonalUrl",message:JSON.stringify(e)}),h.a.error("function getQrCodePersonalUrl error",e)}}))),this.indexStore=e}setData(e,t){this[e]=t}},Object(c.a)(Lt.prototype,"setData",[l.f],Object.getOwnPropertyDescriptor(Lt.prototype,"setData"),Lt.prototype),Et=Object(c.a)(Lt.prototype,"qrCodePersonalUrl",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),kt=Object(c.a)(Lt.prototype,"qrCodeTeamUrl",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),zt=Object(c.a)(Lt.prototype,"activeTab",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Xa.a.Process}}),Lt),er=$a,tr=(Rt=class extends La{constructor(){super(...arguments),Object(o.a)(this,"storeType",Pt,this),Object(o.a)(this,"topic",Ut,this)}},Pt=Object(c.a)(Rt.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.Initiated}}),Ut=Object(c.a)(Rt.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.i.InitiatedApproval}}),Rt),ar=tr,rr=a(157),ir=a(374),nr=a(225),or=a(323),sr=Object(I.c)("pc:src/stores/index/create-approval-store.ts");!function(e){e.top="top",e.down="down",e.jump="jump",e.up="up"}(da||(da={}));var cr,lr,dr,ur,pr,mr,hr,br,gr,vr,jr,Or,fr,Mr,_r,yr,Dr,Nr,Ar,Tr,Ir,Cr,xr,Sr,wr,Lr,Er,kr,zr,Rr,Pr,Ur,Br,Fr,Yr,Qr,Gr,Wr,Vr,Hr,Zr,qr=80,Kr=(Bt=l.q.shallow,Ft=l.q.shallow,Yt=l.q.shallow,Qt=l.q.shallow,Gt=class{constructor(){var e=this;Object(o.a)(this,"activeTab",Wt,this),Object(o.a)(this,"setActiveTab",Vt,this),Object(o.a)(this,"recentDefinitions",Ht,this),Object(o.a)(this,"approvalCategoryList",Zt,this),Object(o.a)(this,"showDefinitions",qt,this),Object(o.a)(this,"toTop",Kt,this),Object(o.a)(this,"toBottom",Jt,this),Object(o.a)(this,"contentScrollTop",Xt,this),Object(o.a)(this,"isFetching",$t,this),Object(o.a)(this,"isLoadingMore",ea,this),Object(o.a)(this,"hasInitialed",ta,this),Object(o.a)(this,"activeIsInvisible",aa,this),Object(o.a)(this,"setActiveIsInvisible",ra,this),Object(o.a)(this,"isThirdPartyCreatePage",ia,this),Object(o.a)(this,"createPageUrlForPC",na,this),Object(s.a)(this,"getInitData",Object(n.a)((function*(){var t=e.getCacheData();return S.c.v2Grouping({Requests:[{ListScene:{ViewerType:1}},{ListCreatorDefinition:{Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:qr,StartGroupID:"",StartDefinitionID:""}}]},{usePrefetchCache:!0,fetchCacheKey:S.a.CreateList,showError:!0}).then((t=>{if(t.data.Responses.length){var[a={},r={}]=t.data.Responses,{ListScene:i}=a,{ListCreatorDefinition:n}=r;e.formateInitData(n,i)}else e.setToBottom(!0)})).finally((()=>{e.setHasInitialed(!0)})),t}))),Object(s.a)(this,"mergeApprovals2Group",((e,t,a,r)=>{var{Definitions:n}=t,o={},s=[...a];null==n||n.forEach((e=>{var{GroupID:t,Name:a}=e;e.Name=Object(Sa.d)(a),o[t]&&o[t].length?o[t].push(e):o[t]=[e]}));var c=r.map((t=>Object(i.a)(Object(i.a)({},t),{},{Name:Object(Sa.d)(t.Name),reverse:Boolean(o[t.ID]&&e===da.up),list:o[t.ID]||[]}))),l=-1,d=-1;if(c.forEach(((e,t)=>{var a=s.findIndex((t=>t.ID===e.ID));a>-1&&(l=t,d=a)})),l>-1){var u=c[l];c.splice(l,1),s[d].list=e===da.down?[...s[d].list,...u.list]:[...u.list,...s[d].list]}return e===da.down?s.concat(c):c.concat(s)})),Object(s.a)(this,"getLoadGroupList",(function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qr,i=a.findIndex((e=>e.ID===t.ID));if(i<0)return[];var n=r-(t.Count-(t.list?t.list.length:0));if(e===da.down){for(var o=i+1;n>0&&o<a.length;)n-=a[o].Count,o++;return a.slice(i,o)}if(e===da.up){var s=i;if(n<0)return a.slice(s,i+1);for(;n>0&&s>0;)n-=a[--s].Count;return a.slice(s,i+1)}return[]})),Object(s.a)(this,"fetchInitList",Object(n.a)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return S.c.listCreatorDefinition({Filter:{QueryString:e,Reverse:!1,Status:[0],IgnoreGroupIDs:[],IgnoreRecentlyUse:!0},PageSize:qr,StartGroupID:"",StartDefinitionID:""},{showError:!0}).then((e=>e.data))}))),Object(s.a)(this,"loadTop",(()=>{if(!this.isLoadingMore&&!this.toTop){var t=this.getListParams(da.up);this.fetchData(t).then(function(){var t=Object(n.a)((function*(t){if(t){var{HasMore:a}=t,r=e.showDefinitions[0];r.originalListCount=(null==r?void 0:r.list.length)||0;var i=e.mergeApprovals2Group(da.up,t,e.showDefinitions,e.getLoadGroupList(da.up,r,e.approvalCategoryList)),n=e.getScrollTop(e.showDefinitions,i,r);e.setToTop(!a),e.setShowDefinitions(i),e.setContentScrollTop(n),e.setLoadingMore(!1),h.a.info("up",i,n)}}));return function(e){return t.apply(this,arguments)}}())}})),Object(s.a)(this,"loadBottom",(()=>{var e=this.showDefinitions[this.showDefinitions.length-1];if(!this.isLoadingMore&&!this.toBottom){var t=this.getListParams(da.down);this.fetchData(t).then((t=>{if(t){var{HasMore:a}=t,r=this.mergeApprovals2Group(da.down,t,this.showDefinitions,this.getLoadGroupList(da.down,e,this.approvalCategoryList));this.setToBottom(!a),this.setShowDefinitions(r),this.setLoadingMore(!1),h.a.info("down",r)}}))}})),Object(s.a)(this,"loadJump",((e,t)=>{var{index:a}=e;this.setShowDefinitions([]),this.setToTop(!0),this.setToBottom(!1);var r=this.getListParams(da.up,a),n=this.approvalCategoryList[a],o=[];this.fetchData(Object(i.a)(Object(i.a)({},r),{},{PageSize:40})).then((e=>{if(e){var{HasMore:t}=e;o=this.mergeApprovals2Group(da.up,e,o,this.getLoadGroupList(da.up,Object(i.a)(Object(i.a)({},n),{},{list:[]}),this.approvalCategoryList,40)),this.setToTop(!t),h.a.info("up",o)}})).then((()=>{var e=o[o.length-1].index,t=this.getListParams(da.down,e);return this.fetchData(Object(i.a)({},t))})).then((e=>{if(e){var{HasMore:a}=e;o=this.mergeApprovals2Group(da.down,e,o,this.getLoadGroupList(da.down,Object(i.a)(Object(i.a)({},n),{},{list:[]}),this.approvalCategoryList)),this.setShowDefinitions(o),this.setToBottom(!a),this.setLoadingMore(!1),h.a.info("down",o),ga.a.nextTick((()=>{t&&t()}))}}))})),Object(s.a)(this,"handleSearch",(e=>{this.setSearchKey(e),this.fetchSearch(e.trim())})),Object(s.a)(this,"fetchSearch",Object(rr.a)((e=>{this.setShowDefinitions([]),this.setApprovalCategoryList([]),this.setToTop(!0),this.setToBottom(!1),this.setFetching(!0),this.fetchInitList(e).then((t=>{var{Definitions:a,ValuedGroups:r,HasMore:n}=t,o=r.map(((e,t)=>Object(i.a)(Object(i.a)({},e),{},{Name:Object(Sa.d)(e.Name),index:t}))),s=Object(i.a)(Object(i.a)({},o[0]),{},{list:[]}),c=this.mergeApprovals2Group(da.down,t,[],this.getLoadGroupList(da.down,s,o));this.setApprovalCategoryList(o),this.setShowDefinitions(c),this.setToBottom(!n);var l=Boolean(a.length);Object(C.b)(j.f.ApprovalCreateSearchResult,{isNew:1,hasResult:Number(l)}),l||n||Object(C.b)(j.f.ApprovalCreateNoneSearchResult,{keyword:e})})).finally((()=>{this.setFetching(!1)}))}),300)),Object(o.a)(this,"isInputting",oa,this),Object(o.a)(this,"setIsInputting",sa,this),Object(o.a)(this,"searchKey",ca,this),Object(o.a)(this,"sceneList",la,this),Object(s.a)(this,"updateSceneList",(e=>{var t=e.slice(0,8).map(this.formateScene);return Object(B.a)(e,this.sceneList)||this.setSceneList(t),t})),Object(s.a)(this,"formateScene",(e=>{var{ID:t,Name:a,IconURL:r,Approvals:i}=e,n=null==i?void 0:i.slice(0,5).map((e=>{var{isExternal:t,external:a,id:r,approvalName:i,iconUrl:n,description:o}=e;return{Name:Object(Sa.d)(i),Description:o,IsExternal:t,ID:String(r),IconURL:n,CreateURLs:a?{PC:null==a?void 0:a.createLinkPc,Mobile:null==a?void 0:a.createLinkMobile}:void 0}}));return{id:t,sceneName:Object(Sa.d)(a),iconUrl:r,list:n}})),Object(s.a)(this,"getCacheData",(()=>{var e,{recentList:t=[],sceneList:a=[],categoryList:r=[],showDefinitions:i=[]}=null!==(e=A.a.getSync(g.d))&&void 0!==e?e:{};if(r.length)return this.setSceneList(a),this.setRecentDefinitions(t),this.setApprovalCategoryList(r),this.setShowDefinitions(i),this.setHasInitialed(!0),ga.a.nextTick((()=>{Object(I.h)("pc_create_list")})),Date.now()})),Object(s.a)(this,"setCacheData",(e=>{A.a.set(g.d,e)})),Object(s.a)(this,"resetData",(()=>{this.setActiveTab(0),this.setSearchKey(""),this.setToTop(!0),this.getInitData()})),Object(s.a)(this,"updateRecentlyUse",Object(n.a)((function*(){return S.c.listCreatorDefinition({Filter:{QueryString:"",Reverse:!1,Status:[0],IgnoreGroupIDs:[]},PageSize:0,StartGroupID:"",StartDefinitionID:""}).then((t=>{var{RecentlyUseDefinitions:a=[]}=t.data,r=a.map((e=>Object(i.a)(Object(i.a)({},e),{},{Name:Object(Sa.d)(e.Name)})));e.setRecentDefinitions(r)}))})))}setRecentDefinitions(e){this.recentDefinitions=e}setApprovalCategoryList(e){this.approvalCategoryList=e}setShowDefinitions(e){this.showDefinitions=e}setToTop(e){this.toTop=e}setToBottom(e){this.toBottom=e}setContentScrollTop(e){this.contentScrollTop=e}setFetching(e){this.isFetching=e}setLoadingMore(e){this.isLoadingMore=e}setHasInitialed(e){this.hasInitialed=e}setIsThirdPartyCreatePage(e){this.isThirdPartyCreatePage=e}setCreatePageUrlForPC(e){this.createPageUrlForPC=e}formateInitData(e,t){var a={};if(t){var r,n,o=this.updateSceneList(t.Scenes||[]);a.sceneList=o,this.setSceneList(o),null!==(r=t.InitiationPageURL)&&void 0!==r&&r.Judge&&(this.setIsThirdPartyCreatePage(!0),this.setCreatePageUrlForPC(null===(n=t.InitiationPageURL)||void 0===n?void 0:n.WebImageURL))}if(e){var{ValuedGroups:s=[],RecentlyUseDefinitions:c=[],HasMore:l=!1}=e,d=s.map(((e,t)=>Object(i.a)(Object(i.a)({},e),{},{Name:Object(Sa.d)(e.Name),index:t}))),u=Object(i.a)(Object(i.a)({},d[0]),{},{list:[]}),p=this.mergeApprovals2Group(da.down,e,[],this.getLoadGroupList(da.down,u,d)),m=c.map((e=>Object(i.a)(Object(i.a)({},e),{},{Name:Object(Sa.d)(e.Name)})));this.setRecentDefinitions(m),this.setShowDefinitions(p),this.setApprovalCategoryList(d),this.setToBottom(!l),a.recentList=m,a.categoryList=d,a.showDefinitions=p}this.setCacheData(a)}getListParams(e,t){var a="",r="";if(void 0!==t){var i,n=this.approvalCategoryList[t];n||or.a.approvalRuntimeErrorProjectVerify({type:"is_curGroup_undefined",func:"src/stores/index/create-approval-store.ts getListParams",data:JSON.stringify({curGroup:n,index:t,len:this.approvalCategoryList.length})}),a=null!==(i=null==n?void 0:n.ID)&&void 0!==i?i:"",r=""}else if(this.showDefinitions.length)if("down"===e){var o,s=this.showDefinitions[this.showDefinitions.length-1];a=s.ID,r=null===(o=s.list[s.list.length-1])||void 0===o?void 0:o.ID}else if("up"===e){var c,l=this.showDefinitions[0];a=l.ID,r=null===(c=l.list[0])||void 0===c?void 0:c.ID}return{Filter:{QueryString:this.searchKey,Reverse:"up"===e,Status:[0],IgnoreGroupIDs:[]},PageSize:qr,StartGroupID:a,StartDefinitionID:r}}fetchData(e){return this.setLoadingMore(!0),S.c.listCreatorDefinition(e).then((e=>e.data)).catch((()=>(this.setLoadingMore(!1),null)))}getScrollTop(e,t,a){var r=0;return t.forEach((t=>{var i=e.find((e=>e.ID===t.ID));if(i){if(i.ID===a.ID){var n=Math.ceil(t.list.length/3)-Math.ceil(a.originalListCount/3);r+=ir.b*n+ir.a*(n-1)}}else{var o=Math.ceil(t.list.length/3);r+=ir.b*o+ir.a*(o-1),t.Count===t.list.length&&(r+=ir.c)}})),r}get shouldScrollY(){return this.hasInitialed&&this.searchStatus===nr.d.notInSearch&&!this.isLoadingMore}setSearchKey(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";sr("submitDefinitionSearch"),this.searchKey=e}get searchStatus(){return this.searchKey||this.isInputting?this.isFetching?nr.d.isSearching:this.approvalCategoryList.length?nr.d.hasResult:this.searchKey?nr.d.noResult:nr.d.initSearch:nr.d.notInSearch}get noDefinitions(){return this.hasInitialed&&!this.recentDefinitions.length&&!this.sceneList.length&&!this.searchKey&&!this.approvalCategoryList.length&&!this.isFetching&&this.toBottom}setSceneList(e){this.sceneList=e}},Wt=Object(c.a)(Gt.prototype,"activeTab",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Vt=Object(c.a)(Gt.prototype,"setActiveTab",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.activeTab=e}}}),Ht=Object(c.a)(Gt.prototype,"recentDefinitions",[Bt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(Gt.prototype,"setRecentDefinitions",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setRecentDefinitions"),Gt.prototype),Zt=Object(c.a)(Gt.prototype,"approvalCategoryList",[Ft],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(Gt.prototype,"setApprovalCategoryList",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setApprovalCategoryList"),Gt.prototype),qt=Object(c.a)(Gt.prototype,"showDefinitions",[Yt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(Gt.prototype,"setShowDefinitions",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setShowDefinitions"),Gt.prototype),Kt=Object(c.a)(Gt.prototype,"toTop",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Object(c.a)(Gt.prototype,"setToTop",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setToTop"),Gt.prototype),Jt=Object(c.a)(Gt.prototype,"toBottom",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(Gt.prototype,"setToBottom",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setToBottom"),Gt.prototype),Xt=Object(c.a)(Gt.prototype,"contentScrollTop",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Object(c.a)(Gt.prototype,"setContentScrollTop",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setContentScrollTop"),Gt.prototype),$t=Object(c.a)(Gt.prototype,"isFetching",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(Gt.prototype,"setFetching",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setFetching"),Gt.prototype),ea=Object(c.a)(Gt.prototype,"isLoadingMore",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(Gt.prototype,"setLoadingMore",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setLoadingMore"),Gt.prototype),ta=Object(c.a)(Gt.prototype,"hasInitialed",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(Gt.prototype,"setHasInitialed",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setHasInitialed"),Gt.prototype),aa=Object(c.a)(Gt.prototype,"activeIsInvisible",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ra=Object(c.a)(Gt.prototype,"setActiveIsInvisible",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.activeIsInvisible=e}}}),ia=Object(c.a)(Gt.prototype,"isThirdPartyCreatePage",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(Gt.prototype,"setIsThirdPartyCreatePage",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setIsThirdPartyCreatePage"),Gt.prototype),na=Object(c.a)(Gt.prototype,"createPageUrlForPC",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Object(c.a)(Gt.prototype,"setCreatePageUrlForPC",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setCreatePageUrlForPC"),Gt.prototype),oa=Object(c.a)(Gt.prototype,"isInputting",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sa=Object(c.a)(Gt.prototype,"setIsInputting",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isInputting=e}}}),Object(c.a)(Gt.prototype,"shouldScrollY",[l.h],Object.getOwnPropertyDescriptor(Gt.prototype,"shouldScrollY"),Gt.prototype),ca=Object(c.a)(Gt.prototype,"searchKey",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Object(c.a)(Gt.prototype,"setSearchKey",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setSearchKey"),Gt.prototype),Object(c.a)(Gt.prototype,"searchStatus",[l.h],Object.getOwnPropertyDescriptor(Gt.prototype,"searchStatus"),Gt.prototype),Object(c.a)(Gt.prototype,"noDefinitions",[l.h],Object.getOwnPropertyDescriptor(Gt.prototype,"noDefinitions"),Gt.prototype),la=Object(c.a)(Gt.prototype,"sceneList",[Qt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(Gt.prototype,"setSceneList",[l.f],Object.getOwnPropertyDescriptor(Gt.prototype,"setSceneList"),Gt.prototype),Gt),Jr=Kr,Xr=(cr=class extends La{constructor(){super(...arguments),Object(o.a)(this,"storeType",lr,this),Object(o.a)(this,"topic",dr,this),Object(s.a)(this,"getListCallback",(e=>{this.indexStore.tryTransferPreloadMessage(e)})),Object(s.a)(this,"handleTask",(()=>Promise.resolve()))}},lr=Object(c.a)(cr.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.CeoTodo}}),dr=Object(c.a)(cr.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.i.TodoApproval}}),cr),$r=(ur=class extends La{constructor(){super(...arguments),Object(o.a)(this,"storeType",pr,this),Object(o.a)(this,"topic",mr,this),Object(s.a)(this,"getListCallback",(e=>{this.indexStore.tryTransferPreloadMessage(e)})),Object(s.a)(this,"handleTask",(()=>Promise.resolve()))}},pr=Object(c.a)(ur.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.CeoDone}}),mr=Object(c.a)(ur.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.i.DoneApproval}}),ur),ei=(hr=class extends La{constructor(e){var t;super(e),t=this,Object(o.a)(this,"storeType",br,this),Object(o.a)(this,"topic",gr,this),Object(s.a)(this,"listData",[]),Object(s.a)(this,"handleTask",function(){var e=Object(n.a)((function*(e){t.setListData([e]),yield t.baseStore.getListData({includeCount:!0,loadMore:!0})}));return function(t){return e.apply(this,arguments)}}()),Object(l.r)((()=>this.indexStore.inSearchMode),(e=>{this.baseStore.setListData(e?[]:this.listData)}))}setListData(e){0!==e.length&&(this.baseStore.setListData(e),this.listData=e)}},br=Object(c.a)(hr.prototype,"storeType",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.Shared}}),gr=Object(c.a)(hr.prototype,"topic",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return m.i.Shared}}),hr),ti=Object(I.c)("pc:src/stores/index/menu-store.ts"),ai=(vr=class extends E.a{setApplinkDefinitionName(e){this.applinkDefinitionName=e}clearApplinkDefinitionName(){this.applinkDefinitionName=void 0}constructor(e){var t;super(e),t=this,Object(s.a)(this,"applinkDefinitionName",void 0),Object(s.a)(this,"hasResponseError",!1),Object(s.a)(this,"indexStore",void 0),Object(o.a)(this,"menuItems",jr,this),Object(o.a)(this,"ceoMenuItems",Or,this),Object(o.a)(this,"selectedSubMenu",fr,this),Object(o.a)(this,"selectedKey",Mr,this),Object(o.a)(this,"menuOpenState",_r,this),Object(o.a)(this,"setMenuOpenState",yr,this),Object(o.a)(this,"refreshCurrentMenu",Dr,this),Object(o.a)(this,"updateCeoMenu",Nr,this),Object(s.a)(this,"createMenuDataFromResponse",(function(e,a){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.indexStore.inSearchMode,o=e.Pipelines,s=Object(Qa.n)(a,i);if(o.forEach((e=>{e.Topic===m.i.ReadNotice&&(r=e);var t=Qa.a[e.Topic];if(void 0!==t&&s[t]){var a=e.Topic===m.i.TodoApproval||e.Topic===m.i.UnreadNotice||n,o=e.Counts.map((e=>Object(E.d)(e,a)));s[t]={key:Object(Qa.g)(e.Topic,i),title:"",displayCount:0,showCount:a,children:o,evenMore:e.EvenMore}}})),r&&s.find((e=>e.key===R.a.CarbonCopy))){var c=s[Qa.a[m.i.UnreadNotice]],{readMenu:l}=Object(Qa.k)(r,c,n);s[Qa.a[m.i.UnreadNotice]]=l}return s})),this.indexStore=e,Object(l.r)((()=>this.selectedSubMenu),(e=>{this.setMenuOpenState({[e]:!0})})),Object(l.r)((()=>this.indexStore.todoStore.size),(()=>{this.indexStore.todoStore.updateMenuCount()}))}get displayedMenuItems(){if(this.indexStore.inSearchMode)return this.indexStore.searchStore.showLoading?[]:Object(Qa.f)(this.menuItems);var e=this.indexStore.fromImStore.baseStore.listData;if(0===e.length)return Object(Qa.f)(this.menuItems);var t=Object(E.c)(e[0]);return[...Object(Qa.f)(this.menuItems),{key:Object(Qa.g)(m.i.Shared),title:"",displayCount:1,showCount:!1,children:[t]}]}get displayedCeoMenuItems(){return this.indexStore.inSearchMode&&this.indexStore.searchStore.showLoading?[]:Object(Qa.f)(this.ceoMenuItems)}get todoCount(){var e=this.displayedMenuItems.find((e=>e.key===R.a.Todo));return(null==e?void 0:e.displayCount)||0}get unReadCount(){var e,t=this.menuItems.find((e=>e.key===R.a.CarbonCopy));return this.selectedSubMenu===R.a.CarbonCopy&&Object(U.a)(this.indexStore.getApprovalStore(this.selectedSubMenu).baseStore.definitionKeys)?(null==t?void 0:t.displayCount)||0:(null==t||null===(e=t.children.find((e=>Object(B.a)(null==e?void 0:e.definitionKeys,Object(l.u)(this.indexStore.getApprovalStore(this.selectedSubMenu).baseStore.definitionKeys)))))||void 0===e?void 0:e.displayCount)||0}setSelectedSubMenu(e){this.selectedSubMenu=e}setSelected(e){this.selectedKey=e}getTabData(e,t){var a=this.indexStore.getApprovalStore(e.subMenu).baseStore;a.setTimeType(p.i.All),a.setDefinitionKeys(e.defineKeys),a.setProcessStatusIndex(p.a.All);try{a.setActiveDetailItem(null),a.fetchList({includeCount:t})}catch(e){h.a.error("error:切换菜单错误",e),ti("commonOnError",{location:"in function getTabData at src/stores/index/menu-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),a.fetchList({includeCount:t})}}setSelectedKey(e,t,a){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];try{var{baseStore:n}=this.indexStore.getApprovalStore(t);if(n.isLoading&&!i)return;this.selectedSubMenu=t,this.selectedKey=e,t===R.a.Todo&&e!==R.a.Todo&&Fa.a.clickProcessName(e),this.getTabData({subMenu:t,defineKeys:Object(P.a)(Object(l.u)(a))},r)}catch(e){ti("commonOnError",{location:"in function setSelectedKey at src/stores/index/menu-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))})}}updateMenuItems(e){var t=this.createMenuDataFromResponse(e,Qa.m);if(this.menuItems=t,this.hasResponseError=!1,ti("cardListMenuData",Object(P.a)(t)),this.applinkDefinitionName){var{applinkDefinitionName:a,selectedSubMenu:r}=this,i=this.displayedMenuItems.find((e=>{var{key:t}=e;return t===r})),n=null==i?void 0:i.children.find((e=>{var{title:t}=e;return t===a}));n&&setTimeout((()=>{this.setSelectedKey(a,r,(null==n?void 0:n.definitionKeys)||[])}),0),this.clearApplinkDefinitionName()}}getMenuList(e){var t=Object(Qa.g)(e),a=this.menuItems.find((e=>e.key===t));return a?a.children:[]}},jr=Object(c.a)(vr.prototype,"menuItems",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Object(Qa.n)(Qa.m)}}),Or=Object(c.a)(vr.prototype,"ceoMenuItems",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Object(Qa.n)(Qa.b,!0)}}),Object(c.a)(vr.prototype,"displayedMenuItems",[l.h],Object.getOwnPropertyDescriptor(vr.prototype,"displayedMenuItems"),vr.prototype),Object(c.a)(vr.prototype,"displayedCeoMenuItems",[l.h],Object.getOwnPropertyDescriptor(vr.prototype,"displayedCeoMenuItems"),vr.prototype),Object(c.a)(vr.prototype,"todoCount",[l.h],Object.getOwnPropertyDescriptor(vr.prototype,"todoCount"),vr.prototype),Object(c.a)(vr.prototype,"unReadCount",[l.h],Object.getOwnPropertyDescriptor(vr.prototype,"unReadCount"),vr.prototype),fr=Object(c.a)(vr.prototype,"selectedSubMenu",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(c.a)(vr.prototype,"setSelectedSubMenu",[l.f],Object.getOwnPropertyDescriptor(vr.prototype,"setSelectedSubMenu"),vr.prototype),Mr=Object(c.a)(vr.prototype,"selectedKey",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return R.a.Todo}}),Object(c.a)(vr.prototype,"setSelected",[l.f],Object.getOwnPropertyDescriptor(vr.prototype,"setSelected"),vr.prototype),_r=Object(c.a)(vr.prototype,"menuOpenState",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{todo:!1,done:!1,create:!1,cc:!1,shared:!1,ceoDone:!1,ceoTodo:!1}}}),yr=Object(c.a)(vr.prototype,"setMenuOpenState",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.menuOpenState=Object(i.a)(Object(i.a)({},this.menuOpenState),e)}}}),Object(c.a)(vr.prototype,"getTabData",[l.f],Object.getOwnPropertyDescriptor(vr.prototype,"getTabData"),vr.prototype),Dr=Object(c.a)(vr.prototype,"refreshCurrentMenu",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{baseStore:e}=this.indexStore.getApprovalStore(this.selectedSubMenu);this.setSelectedKey(this.selectedKey,this.selectedSubMenu,e.definitionKeys)}}}),Object(c.a)(vr.prototype,"setSelectedKey",[l.f],Object.getOwnPropertyDescriptor(vr.prototype,"setSelectedKey"),vr.prototype),Object(c.a)(vr.prototype,"updateMenuItems",[l.f],Object.getOwnPropertyDescriptor(vr.prototype,"updateMenuItems"),vr.prototype),Nr=Object(c.a)(vr.prototype,"updateCeoMenu",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.ceoMenuItems=this.createMenuDataFromResponse(e,Qa.b,!0)}}}),vr),ri=(Ar=class{constructor(){Object(o.a)(this,"logger",Tr,this)}addLogger(e){this.logger.slice().length>20&&(this.logger=this.logger.slice(0,18)),this.logger=[e].concat(this.logger)}},Tr=Object(c.a)(Ar.prototype,"logger",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(c.a)(Ar.prototype,"addLogger",[l.f],Object.getOwnPropertyDescriptor(Ar.prototype,"addLogger"),Ar.prototype),Ar),ii=ri,ni=a(301),oi=(Ir=class{constructor(e){Object(s.a)(this,"indexStore",void 0),Object(o.a)(this,"staffModalVisible",Cr,this),Object(o.a)(this,"staffData",xr,this),Object(o.a)(this,"searchLoading",Sr,this),Object(o.a)(this,"shouldLoading",wr,this),Object(o.a)(this,"subOrdinateCount",Lr,this),Object(o.a)(this,"nextNav",Er,this),this.indexStore=e,Object(l.r)((()=>this.searchLoading),(e=>!e&&this.setData("shouldLoading",!1)))}get showLoading(){return this.searchLoading&&this.shouldLoading}get isSubSearch(){return Boolean(this.staffData.length)}setStaffData(e){this.staffData=e}get showCardFooterStaff(){return this.staffData.length>1||this.staffData.some((e=>e.id===ni.a))}setNextNav(e){this.nextNav=e}get isSearchAllSub(){return this.staffData.some((e=>e.id===ni.a))}getSubStaffParams(e){return this.isSubSearch?{WithSubOrdinate:!0,AllSubOrdinate:this.isSearchAllSub,SubOrdinateIDs:this.isSearchAllSub?[]:this.staffData.filter((e=>e.id!==ni.a)).map((e=>e.id)),FilterIDs:e}:{}}setData(e,t){this[e]=t}},Cr=Object(c.a)(Ir.prototype,"staffModalVisible",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xr=Object(c.a)(Ir.prototype,"staffData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Sr=Object(c.a)(Ir.prototype,"searchLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),wr=Object(c.a)(Ir.prototype,"shouldLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(Ir.prototype,"showLoading",[l.h],Object.getOwnPropertyDescriptor(Ir.prototype,"showLoading"),Ir.prototype),Object(c.a)(Ir.prototype,"isSubSearch",[l.h],Object.getOwnPropertyDescriptor(Ir.prototype,"isSubSearch"),Ir.prototype),Object(c.a)(Ir.prototype,"setStaffData",[l.f],Object.getOwnPropertyDescriptor(Ir.prototype,"setStaffData"),Ir.prototype),Object(c.a)(Ir.prototype,"showCardFooterStaff",[l.h],Object.getOwnPropertyDescriptor(Ir.prototype,"showCardFooterStaff"),Ir.prototype),Lr=Object(c.a)(Ir.prototype,"subOrdinateCount",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Er=Object(c.a)(Ir.prototype,"nextNav",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(c.a)(Ir.prototype,"setNextNav",[l.f],Object.getOwnPropertyDescriptor(Ir.prototype,"setNextNav"),Ir.prototype),Object(c.a)(Ir.prototype,"isSearchAllSub",[l.h],Object.getOwnPropertyDescriptor(Ir.prototype,"isSearchAllSub"),Ir.prototype),Object(c.a)(Ir.prototype,"setData",[l.f],Object.getOwnPropertyDescriptor(Ir.prototype,"setData"),Ir.prototype),Ir),si=oi,ci=a(322),li=function(){var e=Object(n.a)((function*(e){try{var t=yield Object(ci.d)({id:e.ID});if(t)return{type:"request",data:t}}catch(e){console.error(e)}return S.c.v2GetTask(e,{usePrefetchCache:!0,fetchCacheKey:S.a.BOTTask})}));return function(t){return e.apply(this,arguments)}}(),di=a(223),ui=a(517),pi=Object(ui.a)(),mi=Object(ui.a)();class hi{pullChanges(e){return Object(n.a)((function*(){var t=(yield S.c.v2Grouping({Requests:[{PullChanges:e}]},{ignoreWhenSuccessful:!0})).data.Responses[0].PullChanges;if(!t)throw new Error("PullChanges response is undefined");return Object(di.a)(t),t}))()}searchBasicQuery(e,t,a){return Object(n.a)((function*(){var{topic:r,queryString:n="",processStatus:o,order:s=m.d.Desc,pageSize:c=30,nextPageToken:l="",definitionKeys:d=[],start:u="",end:p="",isTaskTimeover:h}=e,b=Object(i.a)({Count:c,Cursor:l,DefinitionKeys:d,ProcessStatus:o?[o]:[],Query:n,Start:u,End:p,Topics:[Object(Qa.l)(r)],WithCount:!0,WithDetail:!0,WithExternal:!0,WithPercentile:!0,WithASC:s===m.d.Asc},t);h&&(b.Filter={OvertimeStages:[m.e.Notice]},b.ProcessStatus=[]);var g=[{SearchBasicQuery:b}];a&&g.push({SearchBasicQuery:Object(i.a)(Object(i.a)({},b),{},{Head:{Auth:{UserID:a}}})});var{data:{Responses:v}}=yield S.c.v2Grouping({Requests:g},{fetchSymbol:pi}),j=v[0].SearchBasicQuery,[O,f,M]=Object(Qa.h)(j,!0);Object(di.a)(O),Object(di.a)(f);var _={me:{listTask:O,countTask:f,subOrdinateCount:M,nextCursor:j.NextCursor}};if(a){var y=v[1].SearchBasicQuery,[D,N]=Object(Qa.h)(y,!0);Object(di.a)(D),Object(di.a)(N),_.other={listTask:D,countTask:N,nextCursor:y.NextCursor}}return _}))()}getList(e,t){return Object(n.a)((function*(){var a,r,{topic:i,queryString:n="",processStatus:o,order:s=m.d.Desc,pageSize:c=30,nextPageToken:l="",definitionKeys:d=[],start:u="",end:p="",direction:h=m.a.Forward,isTaskTimeover:b}=e,g={Topic:i,Querystring:n,StartTimestamp:u,EndTimestamp:p,DefinitionKeys:d,ProcessStatus:o};b&&(delete g.ProcessStatus,g.OvertimeStages=[m.e.Notice]);var v={Filter:g,PageSize:c,Direction:h,Order:s,NextPageToken:l},{actAs:j="",actAsListTask:O,includeCount:f,getLastCursor:M,usePrefetchCache:_}=t;j&&O&&(v.Head={Auth:{UserID:j}});var y=[];i!==m.i.Shared&&y.push({ListTask:v});var D=-1,N=-1;f&&(y.push({CountTask:{Filter:{},AllowDistinctOnly:[m.i.DoneApproval,m.i.InitiatedApproval,m.i.ReadNotice]}}),D=y.length-1,j&&(y.push({CountTask:{Filter:{},AllowDistinctOnly:[m.i.DoneApproval,m.i.InitiatedApproval,m.i.ReadNotice],Head:{Auth:{UserID:j}}}}),N=y.length-1)),M&&y.push({GetLastCursor:{}});var{data:{Responses:A}}=yield S.c.v2Grouping({Requests:y},{usePrefetchCache:_,fetchCacheKey:S.a.ListGroup,fetchSymbol:mi}),T=null===(a=A.find((e=>Boolean(e.ListTask))))||void 0===a?void 0:a.ListTask,I=f?A[D].CountTask:void 0,C=f&&j?A[N].CountTask:void 0,x=null===(r=A.find((e=>Boolean(e.GetLastCursor))))||void 0===r?void 0:r.GetLastCursor;return Object(di.a)(T),Object(di.a)(I),Object(di.a)(C),Object(di.a)(x),{listTask:T,countTask:I,otherCountTask:C,getLastCursor:x}}))()}}var bi=Object(I.c)("pc:src/stores/index/index-store.ts"),gi=(kr=class{constructor(){var e=this;Object(s.a)(this,"queue",new d.AwaitQueue),Object(s.a)(this,"debuggerStore",void 0),Object(s.a)(this,"todoStore",void 0),Object(s.a)(this,"doneStore",void 0),Object(s.a)(this,"ccStore",void 0),Object(s.a)(this,"createStore",void 0),Object(s.a)(this,"menuStore",void 0),Object(s.a)(this,"detailModuleStore",void 0),Object(s.a)(this,"createApprovalStore",void 0),Object(s.a)(this,"ceoTodoStore",void 0),Object(s.a)(this,"ceoDoneStore",void 0),Object(s.a)(this,"efficiencyStore",void 0),Object(s.a)(this,"fromImStore",void 0),Object(s.a)(this,"searchStore",void 0),Object(s.a)(this,"taskUpdater",void 0),Object(o.a)(this,"tabKey",zr,this),Object(o.a)(this,"detailByTask",Rr,this),Object(o.a)(this,"activeDetailCount",Pr,this),Object(o.a)(this,"onceTrigger",Ur,this),Object(o.a)(this,"searchKey",Br,this),Object(o.a)(this,"searchMode",Fr,this),Object(o.a)(this,"delaySearchMode",Yr,this),Object(o.a)(this,"preventCollapse",Qr,this),Object(o.a)(this,"isCollapse",Gr,this),Object(s.a)(this,"toggleCollapse",(()=>{var e=this.isCollapse;A.a.set(g.c,!e),Object(C.b)(j.f.ApprovalHeaderCollapse,{status:!e}),D.emitSidebarToggleCollapse({value:!e}),this.setCollapse(!e),!this.preventCollapse&&this.setPreventCollapse(!0)})),Object(s.a)(this,"handleCollapse",(e=>{A.a.set(g.c,e),Object(C.b)(j.f.ApprovalHeaderCollapse,{status:e}),D.emitSidebarToggleCollapse({value:e}),this.setCollapse(e)})),Object(s.a)(this,"preventId",""),Object(o.a)(this,"userData",Wr,this),Object(o.a)(this,"departmentData",Vr,this),Object(o.a)(this,"tabChanged",Hr,this),Object(o.a)(this,"setTabChanged",Zr,this),Object(s.a)(this,"removeTask",function(){var t=Object(n.a)((function*(t){var a=e.todoStore.baseStore.listData.find((e=>e.ID===t.ID));if(a)return e.taskUpdater.triggerUpdate(a.ID,a,Object(i.a)(Object(i.a)({},a),{},{Topic:m.i.DoneApproval}))}));return function(e){return t.apply(this,arguments)}}()),Object(s.a)(this,"deleteFinishCard",(()=>{if(this.isTodoNav){var{socketFinishCard:e,activeDetailItem:t}=this.todoStore.baseStore;null!=e&&e.ID&&(null==t?void 0:t.ID)!==(null==e?void 0:e.ID)&&this.queue.push((()=>{this.taskUpdater.triggerUpdate(e.ID,e,void 0),this.todoStore.baseStore.setSocketFinishID(null)}))}})),Object(s.a)(this,"handleAction",(e=>{var{action:t}=e;if(bi("detailHandleAction",{action:t,option:e}),"rollback"===t){var{activeDetail:a}=this.currentSelected;null!=a&&a.ID&&a.Topic===m.i.DoneApproval&&this.taskUpdater.triggerUpdate(a.ID,a,Object(i.a)(Object(i.a)({},a),{},{Topic:m.i.TodoApproval})),this.setActiveDetailCount(!1),this.todoStore.baseStore.setActiveDetailItem(null),this.handleTask(e.taskId,void 0,R.a.Todo)}})),Object(s.a)(this,"handleHijackTask",function(){var t=Object(n.a)((function*(t){var a=R.a.Shared,r=e.getApprovalStore(a),i=r.baseStore;e.menuStore.setSelectedSubMenu(a),e.menuStore.setSelected(a),i.setDefinitionKeys([]);var n=Object(Qa.c)(t);i.setDetailItem(n),e.setActiveDetailCount(!0),e.setOnceTrigger(!1),yield r.handleTask(n),i.setListActiveItem(n),e.setOnceTrigger(!0)}));return function(e){return t.apply(this,arguments)}}()),Object(s.a)(this,"getDetailItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{shareCode:a,commentId:r,replyId:n,blockCommentId:o,blockReplyId:s,forceTrusteeship:c,showBlockComment:l,authId:d,scene:u,fuzzyIdFromApplink:p}=t;if(!e)return null;if(e.DisplayMethod!==m.b.Trusteeship&&(e.System===R.e.OA||e.System===R.e.external))if(t.oaURL){Object(C.b)(j.f.ApprovalInitListByTask,{system:R.e.OA,oaURL:t.oaURL});var b=void 0!==t.extra;if(!b)return Object(i.a)(Object(i.a)({},e),{},{URLs:Object(i.a)(Object(i.a)({},e.URLs),{},{pc:t.oaURL}),DisplayMethod:m.b.Normal})}else if(t.oaParams)try{Object(C.b)(j.f.ApprovalInitListByTask,{system:R.e.OA,oaParams:t.oaParams});var{pc:g}=e.URLs,v=JSON.parse(t.oaParams),O=new URL(g);return Object.keys(v).forEach((e=>{O.searchParams.set(e,v[e])})),Object(i.a)(Object(i.a)({},e),{},{URLs:Object(i.a)(Object(i.a)({},e.URLs),{},{pc:O.toString()})})}catch(e){h.a.error(e),Object(C.b)(j.f.ApprovalInitListByTask,{system:R.e.OA,oaParams:t.oaParams,error:e})}return Object(i.a)(Object(i.a)({},e),{},{shareCode:a,commentId:r,replyId:n,blockCommentId:o,blockReplyId:s,forceTrusteeship:c,showBlockComment:l,authId:d,scene:u,fuzzyIdFromApplink:p})})),Object(s.a)(this,"getCurrentStore",(()=>this.getApprovalStore(this.currentNav))),Object(s.a)(this,"getApprovalStore",(e=>{switch(e){case R.a.Todo:return this.todoStore;case R.a.Done:return this.doneStore;case R.a.Initiated:return this.createStore;case R.a.CeoTodo:return this.ceoTodoStore;case R.a.CeoDone:return this.ceoDoneStore;case R.a.Shared:return this.fromImStore;default:return this.ccStore}})),Object(s.a)(this,"handlePrevent",(e=>{if(e){var{activeDetail:t}=this.currentSelected,a=(null==t?void 0:t.ID)||"";this.setPreventId(a)}else this.setPreventId("")})),Object(s.a)(this,"tryTransferPreloadMessage",(e=>{this.detailModuleStore.tryTransferPreloadMessage(e)})),Object(s.a)(this,"updateMenu",(e=>{e&&(L.a.markSyncedWithServer(),this.menuStore.updateMenuItems(e))})),Object(s.a)(this,"updateCeoMenu",(e=>{e&&this.menuStore.updateCeoMenu(e)})),Object(s.a)(this,"fetchCeoCount",Object(n.a)((function*(){var t=[{CountTask:{Filter:{Querystring:e.searchKey},AllowDistinctOnly:[m.i.DoneApproval,m.i.InitiatedApproval,m.i.ReadNotice],Head:{Auth:{UserID:va.d.ceoUserId}}}}],a=(yield S.c.v2Grouping({Requests:t})).data,[{CountTask:r}]=a.Responses;e.updateCeoMenu(r)}))),Object(s.a)(this,"startTaskUpdaterPolling",(()=>{"pc-pages/index/index"===Object(k.b)()&&this.tabKey===p.h.Index&&this.taskUpdater.startPolling()})),Object(s.a)(this,"stopTaskUpdaterPolling",(e=>{this.taskUpdater.stopPolling(e)})),Object(s.a)(this,"taskCache",new Map),Object(s.a)(this,"apiService",new hi),this.debuggerStore=new ii,this.todoStore=new Ha(this),this.doneStore=new ka(this),this.ccStore=new Ka(this),this.createStore=new ar(this),this.menuStore=new ai(this),this.searchStore=new si(this),this.detailModuleStore=new u.a(this),this.createApprovalStore=new Jr,this.efficiencyStore=new er(this),this.fromImStore=new ei(this),this.ceoTodoStore=new Xr(this),this.ceoDoneStore=new $r(this),this.taskUpdater=new E.b(this),Object(l.x)((()=>va.d.isYm&&Boolean(va.d.ceoUserId)),(()=>{this.fetchCeoCount()})),Object(l.r)((()=>this.menuStore.todoCount),(e=>{this.searchMode||this.searchKey||e<E.e&&L.a.updateBadge(e)})),Object(l.r)((()=>va.d.isForeground),(e=>{this.taskUpdater.setIsForeground(e)}))}setTabKey(e){this.tabKey=e}setDetailByTask(e){this.detailByTask=e}setActiveDetailCount(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.activeDetailCount+=1:this.activeDetailCount=0}setOnceTrigger(e){this.onceTrigger=e}setSearchMode(e){this.searchMode=e}setDelaySearchMode(e){this.delaySearchMode=e}setSearchKey(e){this.searchKey=e}clearSearchKey(){this.setSearchKey("")}get currentNav(){return this.menuStore.selectedSubMenu||R.a.Todo}get underCeoNav(){return[R.a.CeoTodo,R.a.CeoDone].includes(this.currentNav)}get sortOrders(){return{[g.k]:this.todoStore.baseStore.order,[g.h]:this.doneStore.baseStore.order,[g.b]:this.ccStore.baseStore.order,[g.f]:this.createStore.baseStore.order}}setOrtOrders(){var e=A.a.getSync(g.j);if(e){var{todosort:t=p.c.Desc,donesort:a=p.c.Desc,ccsort:r=p.c.Desc,createsort:i=p.c.Desc}=e;this.todoStore.baseStore.setOrder(t),this.doneStore.baseStore.setOrder(a),this.ccStore.baseStore.setOrder(r),this.createStore.baseStore.setOrder(i)}}get isTodoNav(){return this.currentNav===R.a.Todo}get likeTodoNav(){return[R.a.Todo,R.a.CeoTodo].includes(this.currentNav)}get likeDoneNav(){return[R.a.Done,R.a.CeoDone].includes(this.currentNav)}get isDoneNav(){return this.currentNav===R.a.Done}get currentSelected(){var e;return{activeDetail:null===(e=this.getCurrentStore().baseStore)||void 0===e?void 0:e.activeDetailItem,autoOpen:0!==this.activeDetailCount}}get isDataExportTab(){return this.tabKey===p.h.DataExport}get currentActive(){var e;return null===(e=this.getCurrentStore().baseStore)||void 0===e?void 0:e.listActiveItem}get isCcNav(){return this.currentNav===R.a.CarbonCopy}get isCreateNav(){return this.currentNav===R.a.Initiated}setPreventCollapse(e){this.preventCollapse=e}setCollapse(e){this.isCollapse=e}static initializeCollapse(){var e=A.a.getSync(g.c);if("boolean"==typeof e)return e;var{tenantId:t}=va.d.currentUser;return"1"===t}setPreventId(e){this.preventId=e}addUserData(e){e&&(this.userData=Object.assign(this.userData,e))}addDepartmentData(e){e&&(this.departmentData=Object.assign(this.departmentData,e))}onFinish(e){var t=this;return Object(n.a)((function*(){t.isTodoNav&&(t.setPreventId(""),bi("detailOnFinish",{detail:e}),Object(C.b)(j.f.ApprovalDoneSystem,{card_system:null==e?void 0:e.System,current_platform:"pc2.0",display_method:null==e?void 0:e.DisplayMethod,is_internal:va.d.isBytedance?"1":"0"}),yield t.queue.push((()=>t.removeTask(e))))}))()}refresh(){try{this.resetData(),this.menuStore.setSelectedKey(this.currentNav,this.currentNav,[]),tt.redirectTo({url:Object(v.c)(b.r.Index,{tabPage:this.tabKey||p.h.Index})})}catch(e){Object(C.b)(j.f.ApprovalError,{location:"in function refresh at src/stores/index/index-store.ts",message:JSON.stringify(e)})}}resetData(){try{this.todoStore.resetData(),this.doneStore.resetData(),this.ccStore.resetData(),this.createStore.resetData(),this.ceoTodoStore.resetData(),this.ceoDoneStore.resetData(),this.createApprovalStore.resetData()}catch(e){Object(C.b)(j.f.ApprovalError,{location:"in function resetData at src/stores/index/index-store.ts",message:JSON.stringify(e)})}}handleTask(e,t,a){var r=arguments,o=this;return Object(n.a)((function*(){var n=r.length>3&&void 0!==r[3]?r[3]:{},s=r.length>4?r[4]:void 0;try{if(s)return void o.handleHijackTask(s);var c={ID:e},{data:l}=yield li(c);Object(O.a)("task-data-ready"),Object(I.a)({tags:[l.Task.System,Object(x.a)(l.Task.Attributes)]});var d=l.Task.Topic,u=Object(Qa.d)(d),p=o.getApprovalStore(u),m=p.baseStore;Object(C.b)(j.f.ApprovalInitListByTask,{status_info:JSON.stringify(l),get_task_status:j.c.Success,query_data:JSON.stringify(c)}),o.menuStore.setSelectedSubMenu(u),o.menuStore.setSelected(u),m.setDefinitionKeys([]),o.addUserData(null==l?void 0:l.Users),o.addDepartmentData(null==l?void 0:l.Departments);var h=o.getDetailItem(l.Task,n);null!=h&&h.IntranetAccess&&!ja.a.isRunning&&(yield ja.a.startPolling()),m.setDetailItem(h),va.d.enableQuicklyApproval&&Object(w.d)(o.currentSelected,{isQuickApproval:!0}),o.setActiveDetailCount(Boolean(null==n?void 0:n.fromApplink)),o.setOnceTrigger(!1),yield p.handleTask((null==l?void 0:l.Task)&&Object(i.a)(Object(i.a)({},null==l?void 0:l.Task),{},{shareCode:n.shareCode,authId:n.authId,fuzzyIdFromApplink:n.fuzzyIdFromApplink})),m.setListActiveItem(h||(null==l?void 0:l.Task)||null),o.setOnceTrigger(!0)}catch(r){console.error(r),"1517"!==n.scene&&Object(N.r)({icon:"error",title:Object(T.t)("approval-mp_NoPermissionProcessed_ErrorMessage")}),bi("cardlistTaskNoPermission",{id:e}),Object(C.b)(j.f.ApprovalInitListByTask,{status_info:JSON.stringify(r),get_task_status:j.c.Failure,query_data:JSON.stringify({id:e,system:t})});var b=a||R.a.Todo;o.menuStore.setSelectedKey(b,b,[])}}))()}get inSearchMode(){return Boolean(this.searchKey||this.searchStore.isSubSearch)}get menu(){return this.menuStore}getList(e){switch(e){case m.i.TodoApproval:return this.todoStore;case m.i.DoneApproval:return this.doneStore;case m.i.InitiatedApproval:return this.createStore;case m.i.UnreadNotice:case m.i.ReadNotice:return this.ccStore;default:throw new Error("can not find approval list from task center")}}},zr=Object(c.a)(kr.prototype,"tabKey",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(c.a)(kr.prototype,"setTabKey",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setTabKey"),kr.prototype),Rr=Object(c.a)(kr.prototype,"detailByTask",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(kr.prototype,"setDetailByTask",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setDetailByTask"),kr.prototype),Pr=Object(c.a)(kr.prototype,"activeDetailCount",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Object(c.a)(kr.prototype,"setActiveDetailCount",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setActiveDetailCount"),kr.prototype),Ur=Object(c.a)(kr.prototype,"onceTrigger",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(kr.prototype,"setOnceTrigger",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setOnceTrigger"),kr.prototype),Br=Object(c.a)(kr.prototype,"searchKey",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Fr=Object(c.a)(kr.prototype,"searchMode",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(kr.prototype,"setSearchMode",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setSearchMode"),kr.prototype),Yr=Object(c.a)(kr.prototype,"delaySearchMode",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(kr.prototype,"setDelaySearchMode",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setDelaySearchMode"),kr.prototype),Object(c.a)(kr.prototype,"setSearchKey",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setSearchKey"),kr.prototype),Object(c.a)(kr.prototype,"clearSearchKey",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"clearSearchKey"),kr.prototype),Object(c.a)(kr.prototype,"currentNav",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"currentNav"),kr.prototype),Object(c.a)(kr.prototype,"sortOrders",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"sortOrders"),kr.prototype),Object(c.a)(kr.prototype,"setOrtOrders",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setOrtOrders"),kr.prototype),Object(c.a)(kr.prototype,"isTodoNav",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"isTodoNav"),kr.prototype),Object(c.a)(kr.prototype,"likeTodoNav",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"likeTodoNav"),kr.prototype),Object(c.a)(kr.prototype,"likeDoneNav",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"likeDoneNav"),kr.prototype),Object(c.a)(kr.prototype,"isDoneNav",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"isDoneNav"),kr.prototype),Object(c.a)(kr.prototype,"currentSelected",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"currentSelected"),kr.prototype),Object(c.a)(kr.prototype,"isDataExportTab",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"isDataExportTab"),kr.prototype),Object(c.a)(kr.prototype,"isCcNav",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"isCcNav"),kr.prototype),Object(c.a)(kr.prototype,"isCreateNav",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"isCreateNav"),kr.prototype),Qr=Object(c.a)(kr.prototype,"preventCollapse",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(kr.prototype,"setPreventCollapse",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setPreventCollapse"),kr.prototype),Gr=Object(c.a)(kr.prototype,"isCollapse",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return gi.initializeCollapse()}}),Object(c.a)(kr.prototype,"setCollapse",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"setCollapse"),kr.prototype),Wr=Object(c.a)(kr.prototype,"userData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Object(c.a)(kr.prototype,"addUserData",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"addUserData"),kr.prototype),Vr=Object(c.a)(kr.prototype,"departmentData",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Object(c.a)(kr.prototype,"addDepartmentData",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"addDepartmentData"),kr.prototype),Hr=Object(c.a)(kr.prototype,"tabChanged",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zr=Object(c.a)(kr.prototype,"setTabChanged",[l.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabChanged=!0}}}),Object(c.a)(kr.prototype,"onFinish",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"onFinish"),kr.prototype),Object(c.a)(kr.prototype,"refresh",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"refresh"),kr.prototype),Object(c.a)(kr.prototype,"resetData",[l.f],Object.getOwnPropertyDescriptor(kr.prototype,"resetData"),kr.prototype),Object(c.a)(kr.prototype,"inSearchMode",[l.h],Object.getOwnPropertyDescriptor(kr.prototype,"inSearchMode"),kr.prototype),kr);t.b=new gi},function(e,t,a){"use strict";a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return g})),a.d(t,"c",(function(){return j}));var r=a(9),i=a(31),n=a.n(i),o=a(16),s=a(2),c=a(25),l=a(145),d=a(20),u=a(141),p=Object(d.c)("mobile:src/utils/attendance.ts"),m=function(){var e=Object(r.a)((function*(e){var t={isSeal:!1};if(null===c.d||void 0===c.d||!c.d.fgIsOpenSealAccount)return t;try{var a,{content:r,creatorUserId:i,form:o}=e,s=JSON.parse(o||"{}"),[d,p,m]=function(){var e,t,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null==r||r.forEach((r=>{"widget0"!==(null==r?void 0:r.customId)&&"accept_user"!==(null==r?void 0:r.customId)||(e=r.id),"widget16431872942"!==(null==r?void 0:r.customId)&&"shift_time"!==(null==r?void 0:r.customId)||(t=r.id),"widget16431872943"!==(null==r?void 0:r.customId)&&"return_time"!==(null==r?void 0:r.customId)||(a=r.id)})),[e,t,a]}(null==s?void 0:s.fields),b=JSON.parse(r||""),g=new Set,v=[i];return b.forEach((e=>{if("widgetTripGroup"===e.id){var t;a=l.a.Trip,e.value.find((e=>"widgetTripGroupSchedule"===e.id)).value.forEach((e=>{var t,a,r,i=e.find((e=>"widgetTripGroupScheduleTime"===e.id)),o=n()(null==i||null===(t=i.value)||void 0===t||null===(a=t.start)||void 0===a||null===(r=a.value)||void 0===r?void 0:r.value).format("YYYYMMDD");g.add(Number(o))}));var r,i=e.value.find((e=>"widgetTripGroupPeer"===e.id));null!=i&&null!==(t=i.value)&&void 0!==t&&t.value&&(v=v.concat(null==i||null===(r=i.value)||void 0===r?void 0:r.value.split(",")))}if("widgetOutGroup"===e.id){var o;a=l.a.Out;var s=e.value.find((e=>"widgetOutGroupStartTime"===e.id)),c=n()(null==s||null===(o=s.value)||void 0===o?void 0:o.value).format("YYYYMMDD");g.add(Number(c))}if("widgetWorkGroup"===e.id){var h,b;a=l.a.Overtime;var j=e.value.find((e=>"widgetWorkGroupStartTime"===e.id)),O=n()(null==j||null===(h=j.value)||void 0===h?void 0:h.value).format("YYYYMMDD");g.add(Number(O));var f,M=e.value.find((e=>"widgetWorkGroupOvertimeWorkers"===e.id));null!=M&&null!==(b=M.value)&&void 0!==b&&b.value&&(v=null==M||null===(f=M.value)||void 0===f?void 0:f.value.split(","))}if("widgetLeaveGroupV2"===e.id){var _;a=l.a.Leave;var y=e.value.find((e=>"widgetLeaveGroupStartTime"===e.id)),D=n()(null==y||null===(_=y.value)||void 0===_?void 0:_.value).format("YYYYMMDD");g.add(Number(D))}if("widgetRemedyGroupV2"===e.id)if(console.log("??不知道要不要改逻辑加批量的"),a=l.a.Remedy,e.value[0].type===u.a.DETAIL){var N,A;null===(N=e.value[0])||void 0===N||null===(A=N.value)||void 0===A||A.forEach((e=>{var t,a=e.find((e=>"widgetRemedyGroupV2BatchRemedyDate"===e.id)),r=n()(null==a||null===(t=a.value)||void 0===t?void 0:t.value).format("YYYYMMDD");g.add(Number(r))}))}else{var T,I=e.value.find((e=>"widgetRemedyGroupV2RemedyDate"===e.id)),C=n()(null==I||null===(T=I.value)||void 0===T?void 0:T.value).format("YYYYMMDD");g.add(Number(C))}var x,S;if(e.id===d&&(a=l.a.SwapShift,!v.includes(null==e||null===(x=e.value)||void 0===x?void 0:x.value)&&v.push(null==e||null===(S=e.value)||void 0===S?void 0:S.value)),e.id===p){var w,L=null==e||null===(w=e.value)||void 0===w?void 0:w.value;if(!L)return;var E=n()(L).format("YYYYMMDD");g.add(Number(E))}if(e.id===m){var k,z=null==e||null===(k=e.value)||void 0===k?void 0:k.value;if(!z)return;var R=n()(z).format("YYYYMMDD");g.add(Number(R))}})),yield h(g,v,a)}catch(e){return t}}));return function(t){return e.apply(this,arguments)}}();function h(e,t,a){return b.apply(this,arguments)}function b(){return b=Object(r.a)((function*(e,t,a){var r={isSeal:!1};if(null===c.d||void 0===c.d||!c.d.fgIsOpenSealAccount)return r;try{if(!e.size&&!e.length)return r;var i=t.map((t=>({user_id:t,days:[...e].map((e=>Number(e))),ban_operation:a})));p("detailLeaveSealStart",{param:{check_param:i}});var{data:{check_result:l}}=yield o.c.sealRule({check_param:i});if(p("detailLeaveSealDone",{data:l}),!Array.isArray(l))return r;var d=l.find((e=>0!==e.SealDeadlineDate));if(!d)return r;var u=n()(String(d.SealDeadlineDate));return r={isSeal:!0,tooltip:Object(s.t)("submit_attendance_seal_check",{name:d.name,month:Number(u.get("month"))+1,day:Number(u.get("date"))})}}catch(e){return p("detailLeaveSealError",{err:e}),r}})),b.apply(this,arguments)}function g(e,t,a){return v.apply(this,arguments)}function v(){return v=Object(r.a)((function*(e,t,a){var{isSeal:r,tooltip:i}=yield h(e,t,a);return!r||!i||(tt.showToast({title:i,icon:"error",duration:3e3}),!1)})),v.apply(this,arguments)}var j=function(){var e=Object(r.a)((function*(e){var{isSeal:t,tooltip:a}=yield m(e);return!t||!a||(tt.showToast({title:a,icon:"error",duration:3e3}),!1)}));return function(t){return e.apply(this,arguments)}}()},,function(e,t,a){"use strict";a.d(t,"g",(function(){return r})),a.d(t,"i",(function(){return r})),a.d(t,"a",(function(){return r})),a.d(t,"h",(function(){return r})),a.d(t,"f",(function(){return r})),a.d(t,"j",(function(){return r})),a.d(t,"k",(function(){return r})),a.d(t,"e",(function(){return r})),a.d(t,"c",(function(){return r})),a.d(t,"d",(function(){return r})),a.d(t,"b",(function(){return r}));var r=()=>{}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r}));var r,i="/api/instance/createPrepare";!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.STOPED_ENABLE_USE=10030]="STOPED_ENABLE_USE",e[e.DELETED=10003]="DELETED",e[e.NO_AUTH=10004]="NO_AUTH",e[e.NO_VISIBLE_AUTH=10112]="NO_VISIBLE_AUTH",e[e.NO_ACCESS_PERMISSION=10111]="NO_ACCESS_PERMISSION"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return s}));var r=a(648),i=a(14),n=a(176),o=Object(n.c)("3.44.0"),s=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{configurableFormStore:n}=Object(i.d)(e),o=null===(t=n.instanceInfo)||void 0===t?void 0:t.instanceStatus,s={approval_status:o&&o>=0?r.a[o]:void 0,user_type:n.isRollbackToStart||!n.instanceInfo?"initiator":"approver",widget_type:a};return s}},function(e,t,a){e.exports={selector:"index-module__selector___n1r_y",selector__inner:"index-module__selector__inner___S0bwn","selector__search-bar":"index-module__selector__search-bar___mY6ec","selector__dropdown-bar":"index-module__selector__dropdown-bar___uh0f5",selector__dropdown:"index-module__selector__dropdown___2fiwf",selector__tabs:"index-module__selector__tabs___MOCfr",selector__pane:"index-module__selector__pane___3_ar5",selector__checkbox:"index-module__selector__checkbox___1FAtc","selector__approval-task":"index-module__selector__approval-task___3r4pg",selector__actions:"index-module__selector__actions___2KD8D","selector__actions-inner":"index-module__selector__actions-inner___8Q8ys","selector__actions-button":"index-module__selector__actions-button___28v2L","selector__actions-button--vice":"index-module__selector__actions-button--vice___3Sf79","selector__actions-button--main":"index-module__selector__actions-button--main___65p76","selector__actions-button--disable":"index-module__selector__actions-button--disable___2GNdL"}},,function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"d",(function(){return d})),a.d(t,"a",(function(){return u})),a(5),a(843),a(334),a(28);var r=a(2),i=(a(35),a(25),a(39)),n=a(204),o=(a(356),a(513));a.d(t,"b",(function(){return o.b}));var s=function(e){return!!i.h&&Boolean(i.h.version&&Object(n.b)(i.h.version,e))},c=6e4,l=60*c,d=(e,t)=>{t=t||Date.now();var a=new Date(e),i=new Date,n=a.getFullYear(),o=a.getMonth()+1,s=a.getDate(),d=a.getHours(),u=a.getMinutes(),p=String(o).padStart(2,"0"),m=String(s).padStart(2,"0"),h=String(d).padStart(2,"0"),b=String(u).padStart(2,"0"),g=i.getFullYear(),v=t-e,j=Math.floor(v/l),O=Math.floor(v%l/c),f=v%c/1e3;return n<g?"".concat(n,"-").concat(p,"-").concat(m," ").concat(h,":").concat(b):j>=24?"".concat(p,"-").concat(m," ").concat(h,":").concat(b):j>=1?Object(r.t)("HoursAgo",{hour:j}):O<=0&&f<60?Object(r.t)("JustNow"):Object(r.t)("MinutesAgo",{minute:O})},u=e=>{var t,a=!1,r=!0,i=[],n=(o,s,c)=>{if(r&&!a)return r=!1,a=!0,e(...t).then((e=>{n(e,s,c)})).catch((e=>{c(e)})).finally((()=>{a=!1}));o?(s(o),i.length&&(i.map((e=>e(o))),i=[])):i.push(s)};return function(){r=!0;for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return t=a,new Promise(((e,t)=>{n(void 0,e,t)}))}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var r=a(6),i=a(3),n=a(1),o=a(8),s=a.n(o),c=a(124),l=(a(1205),a(0));class d extends i.PureComponent{render(){var{value:e,placeholder:t,usingPlaceholder:a,isActive:r,hasError:i,onClick:o,disabled:c,noBorder:d,specialError:u,noPadding:p,className:m,textStyle:h}=this.props;return Object(l.jsxs)(n.r,{className:s()("approval-facke-input",{placeholder:a,active:r,error:i,disabled:c,noborder:d,placeholdererror:u,"no-padding":p},m),onClick:o,children:[Object(l.jsx)(n.r,{className:"text",style:h,children:a?t:e}),Object(l.jsx)(n.r,{className:"icon",children:this.props.renderTailIcon})]})}}Object(r.a)(d,"defaultProps",{value:"",placeholder:"",usingPlaceholder:!1,isActive:!1,hasError:!1,renderTailIcon:null,onClick:c.a,disabled:!1,noBorder:!1,noPadding:!1})},,function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var r=a(5),i=a(3),n=a.n(i),o=a(1),s=a(2),c=a(8),l=a.n(c),d=a(153),u=a(99),p=a(158),m=a.n(p),h=a(66),b=a(452),g=a(183),v=a(0),j={info:"icon-icon-info1",success:"icon-icon-info1",error:"icon-icon-info1",warning:"icon-icon-device-disabled"},O=n.a.memo((e=>{var t,{visible:a=!1,type:i="info",title:n,content:c,showCancel:p=!0,showConfirm:O=!0,cancelText:f,confirmText:M,onCancel:_,onConfirm:y,customFooter:D,cancelButtonProps:N,confirmButtonProps:A,loading:T,showClose:I,onClose:C,zIndex:x,newUdStyle:S=!1,newUdStyleIconColor:w="#3370FF"}=e,L=null!==(t=j[i])&&void 0!==t?t:j.info;return Object(v.jsx)(d.a,{visible:a,zIndex:x,children:Object(v.jsxs)(o.r,{className:l()(m.a["ud-like-modal"],S&&m.a["ud-like-modal--new-ud-style"]),children:[I&&!S&&Object(v.jsx)(o.r,{onClick:C,className:l()(m.a["ud-like-close_icon"],"iconfont","icon-reject")}),I&&S&&Object(v.jsx)(g.a,{name:"close_outlined",onClick:C,className:l()(m.a["ud-like-close_icon"],S&&m.a["ud-like-close_icon--new-ud-style"])}),Object(v.jsxs)(o.r,{className:m.a["ud-like-modal__header"],children:[n&&Object(v.jsxs)(o.r,{className:m.a["ud-like-modal__title"],children:[S?Object(v.jsx)(g.a,{name:"info-hollow_filled",color:w,className:l()(m.a["ud-like-modal__title__icon"],S&&m.a["ud-like-modal__title__icon--new-ud-style"]),size:24}):Object(v.jsx)(o.p,{className:l()("iconfont",L,m.a["ud-like-modal__title__icon"],m.a["ud-like-modal__title__icon-".concat(i)])}),Object(v.jsx)(o.r,{className:l()(m.a["ud-like-modal__title__content"],S&&m.a["ud-like-modal__title__content--new-ud-style"]),children:n})]}),c&&Object(v.jsx)(o.r,{className:l()(m.a["ud-like-modal__body"],S&&m.a["ud-like-modal__body--new-ud-style"]),children:c})]}),Object(v.jsx)(o.r,{className:m.a["ud-like-modal__footer"],children:D||Object(v.jsxs)(o.r,{className:m.a["ud-like-modal__footer__buttons"],children:[p&&Object(v.jsx)(u.a,Object(r.a)(Object(r.a)({},N),{},{className:l()(m.a["ud-like-modal__button"]),onClick:e=>null==_?void 0:_(e),children:null!=f?f:Object(s.t)("popup.Off")})),O&&Object(v.jsx)(u.a,Object(r.a)(Object(r.a)({color:"primary",type:"filled"},A),{},{className:l()(m.a["ud-like-modal__button"]),onClick:e=>null==y?void 0:y(e),children:null!=M?M:Object(s.t)("popup.Ok")}))]})}),Object(v.jsx)(h.a,{hidden:!T,children:Object(v.jsx)(o.r,{className:"loading-wrap",children:Object(v.jsx)(b.a,{})})})]})})}))},function(e,t,a){"use strict";var r,i,n,o=a(9),s=a(6),c=a(4),l=a(11),d=a(7),u=(a(56),a(2)),p=(r=class{constructor(){Object(l.a)(this,"currencyList",i,this),Object(l.a)(this,"setCurrencyList",n,this)}getCurrencyText(e){var t,a,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return"";var i=null!==(t=null===(a=this.currencyList.find((t=>t.value===e)))||void 0===a?void 0:a.name)&&void 0!==t?t:Object(u.t)("Currency_".concat(e.toUpperCase()));return r?Object(u.t)("Brackets",{innerText:i}):i}getCurrencyUnit(e){if(!e)return"";var t=this.getCurrencyText(e);return"".concat(e).concat(t?"-".concat(t):"")}},i=Object(d.a)(r.prototype,"currencyList",[c.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),n=Object(d.a)(r.prototype,"setCurrencyList",[c.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.currencyList=e.map((e=>({value:e.Code,name:e.Name,text:"".concat(e.Code,"-").concat(e.Name)})))}}}),r),m=[{value:"CNY",weight:{[u.LANG.zh]:1}},{value:"USD",weight:{[u.LANG.en]:1}},{value:"EUR",weight:{[u.LANG.en]:1}},{value:"GBP",weight:{[u.LANG.en]:1}},{value:"JPY",weight:{[u.LANG.ja]:1}},{value:"RUB"},{value:"CAD"},{value:"SGD"},{value:"AUD"},{value:"KRW"},{value:"INR"},{value:"TWD"},{value:"HKD"},{value:"THB"},{value:"IDR"},{value:"PHP"},{value:"MYR"},{value:"VND"},{value:"ILS"},{value:"SAR"},{value:"PKR"},{value:"SEK"},{value:"AFN"},{value:"ARS"},{value:"CHF"},{value:"CZK"},{value:"DKK"},{value:"EGP"},{value:"MOP"},{value:"MXN"},{value:"NZD"},{value:"MAD"},{value:"ZAR"},{value:"TRY"},{value:"COP"},{value:"NOK"},{value:"PLN"},{value:"AED"}],h=Object(u.getCurrentLanguage)(),b=()=>m.sort(((e,t)=>{var{weight:{[h]:a=0}={}}=e,{weight:{[h]:r=0}={}}=t;return r-a})).map((e=>Object.assign(e,{text:"".concat(e.value,"-").concat(Object(u.t)("Currency_".concat(e.value.toUpperCase())))}))),g=a(44),v=a(20),j=a(16),O=a(25),f=Object(v.c)("pc:src/components/configurable-form/components/widgets/amount-input/view-model.ts"),M=[];t.a=new class extends p{constructor(){var e;super(...arguments),e=this,Object(s.a)(this,"getCurrencyList",Object(o.a)((function*(){if(M.length)return e.setCurrencyList(M),!0;if(!O.d.enableCurrencyApi){var t=b();return Object(c.s)((()=>{e.currencyList=t})),!0}try{var a,r=yield j.c.currencyList();return!(null==r||null===(a=r.data)||void 0===a||!a.CurrencyList||(M=r.data.CurrencyList,e.setCurrencyList(r.data.CurrencyList),0))}catch(t){return Object(c.s)((()=>{e.currencyList=b()})),f("commonOnError",{location:"in function getCurrencyList at src/components/configurable-form/components/widgets/amount-input/view-model.ts",message:Object(g.a)(t)}),!1}})))}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));class r extends Error{}},function(e,t,a){"use strict";var r,i,n,o;a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return n})),a.d(t,"a",(function(){return o})),function(e){e.iOS="ios",e.Android="android"}(r||(r={})),function(e){e.iOS="iOS",e.Android="Android"}(i||(i={})),function(e){e.Toast="toast",e.Panel="panel"}(n||(n={})),function(e){e.Mask="mask",e.X="x",e.Submit="submit",e.Block="block",e.None="none"}(o||(o={}))},,function(e,t,a){"use strict";a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return i}));var r,i,n,o,s,c="/api/v2/search";(function(e){e[e.None=0]="None",e[e.Running=1]="Running",e[e.Approved=2]="Approved",e[e.Rejected=3]="Rejected",e[e.Canceled=4]="Canceled",e[e.Terminated=5]="Terminated",e[e.Deleted=255]="Deleted"})(r||(r={})),function(e){e[e.Unknown=0]="Unknown",e[e.TodoApproval=1]="TodoApproval",e[e.DoneApproval=2]="DoneApproval",e[e.PredictedTodoApproval=3]="PredictedTodoApproval",e[e.UnreadNotice=17]="UnreadNotice",e[e.ReadNotice=18]="ReadNotice",e[e.Submission=33]="Submission",e[e.Shared=45]="Shared",e[e.Frozen=254]="Frozen",e[e.Deleted=255]="Deleted"}(i||(i={})),function(e){e[e.Normal=1]="Normal",e[e.Sidebar=2]="Sidebar",e[e.Browser=3]="Browser"}(n||(n={})),function(e){e[e.Approve=1]="Approve",e[e.Notice=2]="Notice"}(o||(o={})),function(e){e[e.Todo=1]="Todo",e[e.Done=2]="Done",e[e.Unread=17]="Unread",e[e.Read=18]="Read",e[e.Processing=33]="Processing",e[e.Withdrawn=34]="Withdrawn",e[e.Deleted=255]="Deleted"}(s||(s={}))},function(e,t,a){e.exports={wrap:"index-module__wrap___1jw9P",main_wrap:"index-module__main_wrap___2aIWr",in_table:"index-module__in_table___1KYu1",fake_input:"index-module__fake_input___1Y-is",active:"index-module__active___3DGg9",no_border:"index-module__no_border___PwOZY",error:"index-module__error___qEzHq",input_wrap:"index-module__input_wrap___njYBK",clear:"index-module__clear___22L1U",icon:"index-module__icon___2qrT7",search_input:"index-module__search_input___dqNwA",hidden:"index-module__hidden___u-SSh",is_search:"index-module__is_search___xhD_A",disabled:"index-module__disabled___Ml7x0",modal_main_wrap:"index-module__modal_main_wrap___3T1U-",scroll_wrap:"index-module__scroll_wrap___1tHpE",empty_wrap:"index-module__empty_wrap___EX2cn",header_wrap:"index-module__header_wrap___1Rgke",footer_wrap:"index-module__footer_wrap___fxdAZ",default_item_wrap:"index-module__default_item_wrap___2k8M9",inner:"index-module__inner___Z4h8S",checked:"index-module__checked___3oBvZ",no_more_data:"index-module__no_more_data___nzLIB",mask:"index-module__mask___1jB3j",highlight_wrap:"index-module__highlight_wrap___2VQsA",highlight_color:"index-module__highlight_color___1BTiZ",text_style:"index-module__text_style___2w9rV",table_input:"index-module__table_input___2j-eI"}},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var r,i,n=a(6),o=a(3),s=a(1),c=a(15),l=a(124),d=a(121),u=a(153),p=a(2),m=a(66),h=a(452),b=a(453),g=a.n(b),v=(a(1216),a(0)),j="common-modal",O=Object(c.a)((i=class extends o.Component{constructor(){super(...arguments),Object(n.a)(this,"onWrapperClick",(e=>{var{loading:t}=this.props;if(e.target.id==="".concat(j,"-wrapper")){var{onCancel:a}=this.props;a&&!t&&a()}}))}render(){var{visible:e,title:t,width:a,height:r,showHeader:i,padding:n,type:o,loading:c,subTitle:l,tip:d}=this.props;return Object(v.jsx)(u.a,{visible:e,children:Object(v.jsx)(s.r,{id:"".concat(j,"-wrapper"),className:"".concat(j,"-wrapper"),onClick:this.onWrapperClick,children:Object(v.jsxs)(s.r,{className:j,children:[i&&Object(v.jsxs)(s.r,{className:"".concat(j,"-header two-lines"),children:[d&&Object(v.jsxs)(s.r,{className:"tip",children:[Object(v.jsx)(s.g,{className:"tip-icon",src:g.a}),d]}),Object(v.jsx)(s.r,{className:"".concat(j,"-title"),children:t}),l&&Object(v.jsx)(s.r,{className:"sub-title",children:l})]}),Object(v.jsx)(s.r,{className:"".concat(j,"-body"),children:this.props.children}),Object(v.jsx)(m.a,{hidden:"custom-footer"!==o,children:Object(v.jsx)(s.r,{className:"".concat(j,"-footer"),children:this.props.renderFooter})}),Object(v.jsx)(m.a,{hidden:"custom-footer"===o,children:Object(v.jsx)(s.r,{className:"".concat(j,"-footer"),children:this.renderButtonGroups()})}),Object(v.jsx)(m.a,{hidden:!c,children:Object(v.jsx)(s.r,{className:"loading-wrap",children:Object(v.jsx)(h.a,{})})})]})})})}renderButtonGroups(){var{okBtnDisabled:e,onOk:t,cancelBtnDisabled:a,onCancel:r,ctxId:i}=this.props;if(!i)return null;return Object(v.jsxs)(s.r,{className:"".concat(j,"-btn-group"),children:[Object(v.jsx)(d.a,{onClick:r,style:{width:"120px"},disabled:a,children:Object(p.t)("approval-mp_No_Button")}),Object(v.jsx)(d.a,{type:"primary",onClick:t,style:{width:"120px",marginLeft:"16px"},disabled:e,children:Object(p.t)("approval-mp_Yes_Button")})]})}},Object(n.a)(i,"defaultProps",{type:"default",visible:!1,title:"",onOk:l.a,onCancel:l.a,showHeader:!0}),r=i))||r},function(e,t,a){"use strict";a.d(t,"b",(function(){return M})),a.d(t,"a",(function(){return _}));var r=a(5),i=a(3),n=a.n(i),o=(a(19),a(1)),s=a(792),c=a(20),l=(a(18),a(692)),d=a(10),u=a(207),p=a.n(u),m=a(2),h=a(551),b=a.n(h),g=a(0),v=Object(c.c)("pc:src/components/error-boundary/index.tsx");function j(e){return JSON.stringify(e,Object.getOwnPropertyNames(e))}var O=n.a.memo((()=>{var e=Object(l.a)({shouldClearStorage:!0});return Object(g.jsx)(o.r,{className:b.a["error-boundary"],children:Object(g.jsxs)(o.r,{className:b.a["error-boundary__inner"],children:[Object(g.jsx)(o.g,{src:p.a}),Object(g.jsx)(o.p,{className:b.a["error-boundary__tips"],children:Object(m.t)("loadFailedClickRefresh")}),Object(g.jsx)(o.b,{className:b.a["error-boundary__button"],onClick:e,children:Object(m.t)("CreateList.Refresh")})]})})})),f={onError:(e,t)=>{d.a.error("[withPageErrorBoundary]",e,t);var a={error:j(e),info:j(t)};console.debug("[withPageErrorBoundary] opmonitiorReport",a),v("commonErrorBoundary",a)},fallback:Object(g.jsx)(O,{})};function M(e){return Object(s.withErrorBoundary)(e,f)}var _=e=>Object(g.jsx)(s.ErrorBoundary,Object(r.a)(Object(r.a)({},f),{},{children:e.children}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a(3);var r=a(1),i=a(2),n=a(936),o=a.n(n),s=(a(1324),a(0));function c(e){var{checked:t,onChange:a}=e;return Object(s.jsxs)(r.r,{className:"checkbox-container",onClick:()=>{a(!t)},children:[Object(s.jsxs)(r.r,{className:"box-wrapper",children:[Object(s.jsx)(r.r,{className:"unchecked",hidden:t}),Object(s.jsx)(r.r,{className:"checked",hidden:!t,children:Object(s.jsx)(r.g,{src:o.a,style:{width:"10px",height:"7px"}})})]}),Object(s.jsx)(r.r,{className:"children-wrapper",children:e.children})]})}var l=a(494);function d(e){var{inform:t,onCancel:a,onOk:n,onInformChange:o,disabledOk:d=!1,okText:u,showCheck:p}=e;return Object(s.jsxs)(r.r,{className:"footer-container",children:[Object(s.jsx)(r.r,{className:"checkbox-item",children:p&&Object(s.jsx)(c,{checked:t===l.a.CHECKED,onChange:e=>o&&o(e?l.a.CHECKED:l.a.UNCHECK),children:Object(s.jsx)(r.r,{className:"checkbox-text",children:Object(i.t)("Comment.NotifyOwner")})})}),Object(s.jsxs)(r.r,{className:"button-group",children:[Object(s.jsx)(r.r,{className:"cancel",onClick:()=>{a&&a()},children:Object(i.t)("Popup.Cancel")}),Object(s.jsx)(r.r,{className:"confirm ".concat(d?"disabled":""),onClick:()=>{!d&&(null==n||n())},children:u||Object(i.t)("Popup.Confirm")})]})]})}a(1325)},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var r,i=a(5),n=a(37),o=a(3),s=a(8),c=a.n(s),l=a(1),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.text;if(""===e)return e;if(t===r.text)return e;if(t===r.digit)return e.replace(/[^0-9]/g,"");if(t===r.number){var[a,...i]=e.replace(/[^0-9.-]/g,"").split(".");return i.length?"".concat(a,".").concat(i.join("")):"".concat(a)}return""},u=(a(1173),a(0)),p=["type","suffix","align","className","customWrapperStyle","height","minHeight","maxHeight","maxlength","focus","onInput","onFocus","onBlur","onChange","value","extra","readonly","noBorder","isUseFakeInput"];!function(e){e.text="text",e.digit="digit",e.number="number"}(r||(r={}));t.b=e=>{var{type:t=r.text,suffix:a,align:s="left",className:m,customWrapperStyle:h,height:b,minHeight:g,maxHeight:v=1/0,maxlength:j=-1,focus:O,onInput:f,onFocus:M,onBlur:_,onChange:y,value:D,extra:N,readonly:A,noBorder:T,isUseFakeInput:I}=e,C=Object(n.a)(e,p),{disabled:x,autoHeight:S}=C,[w,L]=Object(o.useState)(O),[E,k]=Object(o.useState)(1),[z,R]=Object(o.useState)(D||""),P=Object(o.useRef)(null);Object(o.useEffect)((()=>{D!==z&&R(D||"")}),[D]);var U=()=>{I&&(A||x)?P.current=setTimeout((()=>{L(!1),null==_||_(z),P.current&&(clearTimeout(P.current),P.current=null)}),100):(L(!1),null==_||_(z))};Object(o.useEffect)((()=>{R(z)}),[z]);return Object(u.jsxs)(l.r,{className:c()("cell-input","cell-input--".concat(s),{"cell-input--active":w,"cell-input--disabled":x,"cell-fake-input--noBorder":T},m),style:Object(i.a)({textAlign:s},h),onTouchStart:()=>{I&&(A||x)&&(P.current&&(clearTimeout(P.current),P.current=null),k((e=>e+1)))},children:[Object(u.jsxs)(l.r,{className:c()("cell-input__inner"),style:{minHeight:g||b,maxHeight:S?v||"":b},children:[Object(u.jsx)(l.q,Object(i.a)({value:"".concat(z),focus:O,maxlength:j,placeholderStyle:"color: ".concat(x?"#bbbfc4":"#8F959E","; text-align: ").concat(s,"; word-break: break-all; white-space: normal;"),className:"cell-input__textarea",autoHeight:S,style:{height:b||g},onFocus:()=>{L(!0),null==M||M()},onBlur:U,onInput:e=>{var{detail:{value:a}}=e;R(a);var r=d(a,t);setTimeout((()=>{y&&y(r),R(r)}),1)},disabled:A||x},C),"textarea"),(A||x)&&I?Object(u.jsx)(l.q,{style:{position:"absolute",opacity:0,pointerEvents:"none",width:"1px",height:"1px",transform:"scale(0.01)"},focus:!0,onBlur:U},E):null,a&&Object(u.jsx)(l.r,{className:"cell-input__suffix",children:a})]}),N&&Object(u.jsx)(l.r,{className:"cell-input__extra",children:N})]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return b})),a.d(t,"d",(function(){return m})),a.d(t,"b",(function(){return O})),a.d(t,"c",(function(){return D}));var r,i=a(5),n=a(37),o=a(3),s=a(1),c=a(8),l=a.n(c),d=a(2),u=(a(1163),a(0)),p=["status","size","type","className"];!function(e){e[e.Approved=0]="Approved",e[e.Rejected=1]="Rejected",e[e.Pending=2]="Pending",e[e.Recalled=3]="Recalled",e[e.Deleted=4]="Deleted",e[e.Modified=5]="Modified",e[e.Modifying=6]="Modifying",e[e.ModifyRejected=7]="ModifyRejected",e[e.ModifyRecalled=8]="ModifyRecalled",e[e.Cleared=9]="Cleared",e[e.Unused=100]="Unused",e[e.Completed=101]="Completed",e[e.Unknown=102]="Unknown",e[e.Terminated=103]="Terminated",e[e.Hidden=201]="Hidden"}(r||(r={}));var m,h,b={[r.Approved]:"InstanceAgreed",[r.Rejected]:"InstanceRejected",[r.Pending]:"InstancePending",[r.Recalled]:"InstanceRecalled",[r.Deleted]:"approval-mp_Deleted_Tag",[r.Completed]:"InstanceCompleted",[r.Modified]:"InstanceAgreed",[r.Modifying]:"InstanceAgreed",[r.ModifyRejected]:"InstanceAgreed",[r.ModifyRecalled]:"InstanceAgreed",[r.Cleared]:"approval-mp_Deleted_Tag",[r.Terminated]:"approval-mp_Terminated_Tag",[r.Unknown]:"",[r.Hidden]:""};!function(e){e[e.Pending=0]="Pending",e[e.Agreed=1]="Agreed",e[e.Rejected=2]="Rejected",e[e.Redirected=3]="Redirected",e[e.None=4]="None",e[e.Repeated=6]="Repeated",e[e.Advice=12]="Advice",e[e.Processed=101]="Processed",e[e.Terminated=103]="Terminated",e[e.Hidden=201]="Hidden"}(m||(m={})),m.Pending,m.Agreed,m.Rejected,m.Redirected,m.None,m.Repeated,m.Processed,m.Hidden,function(e){e[e.None=0]="None",e[e.Pending=1]="Pending",e[e.Approved=2]="Approved",e[e.Rejected=3]="Rejected",e[e.Cancel=4]="Cancel",e[e.Terminated=5]="Terminated",e[e.Delete=255]="Delete",e[e.TaskTimeover=-1]="TaskTimeover"}(h||(h={}));var g,v,j={[h.Approved]:"list.approval_agreed",[h.Rejected]:"list.approval_reject",[h.Pending]:"list.approval_pending",[h.Cancel]:"list.approval_canceled",[h.Delete]:"approval-mp_Deleted_Tag",[h.Terminated]:"list.approval_terminated",[h.None]:"",[h.TaskTimeover]:"list.approval_timeover"},O={[h.None]:r.Unknown,[h.Pending]:r.Pending,[h.Approved]:r.Approved,[h.Rejected]:r.Rejected,[h.Cancel]:r.Recalled,[h.Terminated]:r.Terminated,[h.Delete]:r.Deleted};r.Unknown,h.None,r.Pending,h.Pending,r.Approved,h.Approved,r.Rejected,h.Rejected,r.Recalled,h.Cancel,r.Terminated,h.Terminated,r.Completed,h.None,r.Deleted,h.Delete,function(e){e.Instance="instance",e.Process="process"}(g||(g={})),function(e){e.Large="large",e.Medium="medium",e.Small="small",e.ExtraSmall="extra-small"}(v||(v={}));var f="instance-status-tag",M=e=>(t,a,r)=>t===e&&r.includes(a),_=M(g.Instance),y=M(g.Process),D=e=>{var{status:t,size:a=v.Medium,type:c=g.Instance,className:m}=e,O=Object(n.a)(e,p),M=Number(t),D={[g.Instance]:b,[g.Process]:j}[c],N=Object(o.useMemo)((()=>({["".concat(f,"--pending")]:_(c,M,[r.Pending])||y(c,M,[h.Pending]),["".concat(f,"--positive")]:_(c,M,[r.Approved,r.Completed])||y(c,M,[h.Approved]),["".concat(f,"--neutral")]:_(c,M,[r.Unknown,r.Hidden])||y(c,M,[h.None]),["".concat(f,"--negative")]:_(c,M,[r.Rejected,r.Recalled])||y(c,M,[h.Rejected,h.Cancel,h.Delete,h.Terminated]),["".concat(f,"--deleted")]:_(c,M,[r.Cleared,r.Deleted,r.Terminated])||y(c,M,[h.Delete]),["".concat(f,"--remind")]:y(c,M,[h.TaskTimeover]),["".concat(f,"--hidden")]:_(c,M,[r.Unknown,r.Hidden])||y(c,M,[h.None])})),[c,M]),A=Object(o.useMemo)((()=>Object.values(N).every((e=>!e))),[N]),T=l()("".concat(f),N,{["".concat(f,"--").concat(a)]:Boolean(a),["".concat(f,"--neutral")]:A},m);return Object(u.jsx)(s.r,Object(i.a)(Object(i.a)({className:T},O),{},{children:Object(u.jsx)(s.p,{selectable:!0,children:Object(d.t)(D[M])})}))}},function(e,t,a){"use strict";var r=a(3),i=a(1),n=a(19),o=a(8),s=a.n(o),c=a(109),l=a(65),d=a(72),u=a(2),p=a(99),m=(a(1230),a(0));t.a=e=>{var{showCollapseButton:t=!0,collapsed:a=!0,lineHeight:o=22,lineClamp:h=3,thresholdLineClamp:b=0,onChange:g,className:v,content:j,children:O,isCustomControl:f}=e,M=Object(r.useMemo)((()=>"text-collapse_".concat(Object(d.c)())),[]),[_,y]=Object(r.useState)(f),[D,N]=Object(c.a)(a,!0,{onChange:g});Object(r.useEffect)((()=>{if((j||O)&&!f)return b<h?y(!1):void Object(n.nextTick)((()=>{Object(l.a)("#".concat(M)).then((e=>{e&&y(e.height>b*o)}))}))}),[M,j,b,o,h]);var A=Object(r.useMemo)((()=>D&&!1!==_&&b?h?{lineHeight:"".concat(o,"px"),maxHeight:"".concat(o*h,"px")}:void 0:{}),[D,h,o,_,b]);return Object(m.jsxs)(i.a,{children:[Object(m.jsx)(i.r,{className:s()("ud-like-text-collapse",v),style:A,children:j?Object(m.jsx)(i.p,{id:M,className:"ud-like-text-collapse__content",selectable:!0,style:{lineHeight:"".concat(o,"px")},children:j}):Object(m.jsx)(i.r,{id:M,children:O})}),!0===_&&t&&Object(m.jsxs)(p.a,{type:"text",color:"primary",onClick:()=>{N(!D)},children:[D?Object(u.t)("TextCollapse_unfold","展开"):Object(u.t)("TextCollapse_fold","收起"),Object(m.jsx)(i.r,{className:s()("iconfont","icon-arrow-".concat(D?"down-copy":"up"),"ud-like-text-collapse__icon")})]})]})}},function(e,t,a){"use strict";a.d(t,"e",(function(){return b})),a.d(t,"j",(function(){return f})),a.d(t,"h",(function(){return y})),a.d(t,"d",(function(){return N})),a.d(t,"b",(function(){return A})),a.d(t,"f",(function(){return T})),a.d(t,"g",(function(){return I})),a.d(t,"i",(function(){return C})),a.d(t,"c",(function(){return S})),a.d(t,"k",(function(){return w})),a.d(t,"a",(function(){return L})),a.d(t,"l",(function(){return E}));var r=a(5),i=a(2),n=a(10),o=a(314),s=a(67),c=a(20),l=a(44),d=Object(c.c)("shared:src/services/api/middlewares/log-middleware.ts");function u(e){return e&&e.originResponse?Object(r.a)(Object(r.a)({},e),{},{originResponse:Object(r.a)(Object(r.a)({},e.originResponse),{},{data:{}})}):e}function p(e){return JSON.stringify(e,Object.getOwnPropertyNames(e))}var m={success:"commonReqSuccess",error:"commonReqError",timeout:"commonReqTimeout"},h=function(e,t){var a,r,i,n,o,s,c,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",h=arguments.length>3?arguments[3]:void 0,{startAt:b,config:g,networkType:v}=null!=e?e:{},{path:j,originHost:O,basePath:f,host:M,query:_}=null!=g?g:{},y=Date.now()-b,{statusCode:D}=null!==(a=e.originResponse)&&void 0!==a?a:{},N={host:M,query:_,originHost:O,basePath:f,api:j,time:y,result:t,network_type:v,statusCode:D,error:h,request_id:null==g||null===(r=g.header)||void 0===r?void 0:r["X-Request-Id"],retried_login:null!=e&&e._retriedLogin?1:0,log_id:(null==e||null===(i=e.originResponse)||void 0===i||null===(n=i.header)||void 0===n?void 0:n["x-tt-logid"])||(null==e||null===(o=e.originResponse)||void 0===o?void 0:o.trace)||"",trace_host:null==e||null===(s=e.originResponse)||void 0===s||null===(c=s.header)||void 0===c?void 0:c["x-tt-trace-host"],ctx:p(u(e))};d(m[t],N,void 0,l)},b=()=>({before(e,t){var a,{networkType:i,data:n}=t;Object(s.a)("request-start-first"),t.config.ignoreWhenSuccessful||d("commonReqStart",(e=>{var t;return null!==(t=e.header)&&void 0!==t&&t.Cookie&&(e.hasCookie=!0,delete e.header.Cookie),e})(Object(r.a)(Object(r.a)({},Object(o.a)(t.config)),{},{network_type:i,payload:null!==(a=t.config)&&void 0!==a&&a.reportParams&&n?JSON.stringify(n):""})))},success(e,t){Object(s.a)("request-end-first",{success:1}),t.config.ignoreWhenSuccessful||((e=>{try{var t;if(null!==(t=e.config)&&void 0!==t&&t.usePrefetchCache){n.a.info("transform:",e.config.originHost,e.config.path),n.a.info("isPrefetch:",e.originResponse.isPrefetch);var a={log_id:e.originResponse.header["x-tt-logid"],domain:e.config.originHost.replace("https://",""),path:e.config.path,method:e.config.method,success:e.originResponse.isPrefetch};d("prefetchResult",a)}}catch(e){var r={message:Object(l.a)(e),location:"in function reportPrefetch"};d("commonOnError",r)}})(t),h(t,"success"))},error(e,t){Object(s.a)("request-end-first",{success:0}),h(t,"error","error",e)},timeout(e){h(e,"timeout","error")}}),g=a(317),v=a(72),j=a(50),O="",f=e=>{O=e},M=j.a.getSync("mobile_lob_session"),_={},y=e=>{_=e},D={},N=e=>D[e],A=e=>{D=Object(r.a)(Object(r.a)({},D),e),n.a.info("addExtraHeaders 当前extraHeaders 为",D)},T=e=>{D=Object.keys(D).reduce(((t,a)=>(e.includes(a)||(t[a]=D[a]),t)),{}),n.a.info("removeExtraHeaders 当前extraHeaders 为",D)},I=()=>({before(e,t){var a=Object(i.getCurApiLang)(),{originHost:n,basePath:o}=t.config;if(g.a.hostFromUrl?t.config.host="".concat(g.a.hostFromUrl).concat(o):t.config.host=O?"".concat(O).concat(o):"".concat(n).concat(o),t.config.header=Object(r.a)(Object(r.a)(Object(r.a)({},t.config.header),{},{"Content-Type":"application/json","X-Request-Id":Object(v.c)(),"Accept-Language":a,domain_alias:"approval"},_),{},{locale:a},D),"login"!==t.apiName){var s=M||"";s&&(t.config.header.Cookie=s)}return t}}),C=()=>({before(e,t){var a=t.config.query||{};return t.config.query=Object(r.a)(Object(r.a)({},a),{},{locale:Object(i.getCurApiLang)()}),t}}),x=new Map,S=()=>({before(e,t){if(t.config.usePrefetchCache){var a=t.config.fetchCacheKey||t.config.path;x.has(a)||(x.set(a,!0),t.config.$formatInput=e=>Object(r.a)(Object(r.a)({},e),{},{usePrefetchCache:!0}))}return t}}),w=()=>({before(e,t){if(t.startAt=(new Date).getTime(),"function"!=typeof tt.getNetworkType||t.config.ignoreWhenSuccessful)return t;tt.getNetworkType({success(e){var{networkType:a}=e;return t.networkType=a,t},fail:()=>t})}}),L=()=>({timeout(e){"function"==typeof e.abort&&e.abort()}}),E=()=>{var e=0;return{before(t,a){var{apiName:r,data:i}=a;if(e+=1,"v2Grouping"===r){var o=i.Requests.map((e=>Object.keys(e).join(""))).join("&");if(a.config.query.reqName=o,o.includes("PullChanges")&&(a.config.timeout=3e3,e>=5))throw n.a.warn("==请求达到并发最大限制==",e),new Error("limitRequestCount")}return a},success(){e-=1},error(){e-=1}}}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZD0ibTE2LDIybDgsLTEybC0xNiwwbDgsMTJ6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiM3NTc1NzUiLz4KPC9zdmc+"},function(e,t,a){"use strict";var r;function i(e){r=e}function n(){return r}a.d(t,"e",(function(){return i})),a.d(t,"d",(function(){return n})),a.d(t,"f",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){return l}));var o=new RegExp(/https:\/\/[\w.-]+\/(docs|docx)\/(\w+)/),s={docs:"doc",sheets:"sheet",base:"bitable",docx:"docx",file:"file",mindnotes:"mindnote",wiki:"wiki"};function c(e,t){try{return JSON.parse(e)}catch(e){return t||{}}}var l={"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina"}},function(e,t,a){"use strict";a.d(t,"b",(function(){return le})),a.d(t,"a",(function(){return Ye})),a.d(t,"c",(function(){return Qe.a}));var r=a(5),i=a(37),n=a(3),o=a(15),s=a(1),c=a(8),l=a.n(c),d=a(2),u=a(69),p=a(42),m=a(192),h=a(230),b=a(40),g=a(372),v=a(24),j=(a(1166),a(14)),O=a(47),f=a(9),M=a(33),_=a(65),y=a(19),D=a.n(y),N=a(1470),A=a(183),T=a(13),I=a(444),C=a(484),x=a(455),S=a(457),w=a(458),L=a(459),E=a(460),k=a(461),z=a(462),R=a(463),P=a(482),U=a(467),B=a(678),F=a(468),Y=a(469),Q=a(673),G=a(471),W=a(728),V=a(456),H=a(674),Z=a(0),q=Object(o.a)((e=>{var{widget:t,ctxId:a}=e;if(!t)return null;var{data:{visible:r,isRestored:i,readable:n}}=t;if(!r)return null;if(!i)return null;if(!n)return null;switch(t.type){case T.c.ADDRESS:return Object(Z.jsx)(U.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.AMOUNT_INPUT:return Object(Z.jsx)(k.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.ATTACHMENT_V2:return Object(Z.jsx)(R.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.CALCULATION_FORMULA:return Object(Z.jsx)(z.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.CONTACT:return Object(Z.jsx)(S.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.DATE_INTERVAL:return Object(Z.jsx)(V.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.DATE_TIME:return Object(Z.jsx)(x.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.DESC:return Object(Z.jsx)(B.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.IMAGE:return Object(Z.jsx)(C.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.MULTI_SELECT_V2:return Object(Z.jsx)(L.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.NUMBER_INPUT:return Object(Z.jsx)(E.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.RELATIVE_APPROVAL:return Object(Z.jsx)(P.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.CLOUD_DOC:return Object(Z.jsx)(W.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.SINGLE_INPUT:return Object(Z.jsx)(I.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.SINGLE_SELECT_V2:return Object(Z.jsx)(w.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.TEXTAREA:return Object(Z.jsx)(F.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.DEPARTMENT:return Object(Z.jsx)(Y.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.RECEIVING_ACCOUNT:return Object(Z.jsx)(Q.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.TELEPHONE:return Object(Z.jsx)(G.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);case T.c.SERIAL_NUMBER:return Object(Z.jsx)(H.a,{ctxId:a,widget:t,inRelativeForm:!0},t.id);default:return null}})),K=a(207),J=a.n(K),X=a(257),$=a.n(X),ee=a(446),te=3;function ae(e){var{instance:t,isLoading:a,isCrash:r,widgets:i,ctxId:o,parentId:c,isInDetailPage:u,defaultColumn:p=te,onCrashButtonClick:m=M.m}=e,[h,b]=Object(n.useState)(!0),[g,v]=Object(n.useState)(p),j="widget-id-".concat(c.replace(/\W+/g,""));Object(n.useEffect)((()=>{if(u){var e=function(){var e=Object(f.a)((function*(){var e=yield Object(_.a)(".".concat(j));if(e){var{width:t}=null!=e?e:{},a=2;t>=632?a=3:t<=416&&(a=1),v(a)}}));return function(){return e.apply(this,arguments)}}(),t=Object(M.c)(e,300);return setTimeout(e,0),D.a.onWindowResize(t),D.a.eventCenter.on("onDetailSizeChange",t),()=>{D.a.onWindowResize(t),D.a.eventCenter.off("onDetailSizeChange",t)}}}),[j]);var O=Object(n.useMemo)((()=>new Array(g).fill(0).map(((e,t)=>Object(Z.jsx)(s.r,{children:Object(Z.jsx)(N.a,{textWidth:["30%","100%","30%","100%"]})},t)))),[g]),y=Object(n.useMemo)((()=>Object(Z.jsxs)(s.r,{className:$.a.crash,children:[Object(Z.jsx)(s.g,{src:J.a,className:$.a.crash_image}),Object(Z.jsxs)(s.r,{children:[Object(Z.jsx)(s.p,{children:Object(d.t)("Scroll.FailedToLoad")}),Object(Z.jsx)(s.p,{className:$.a.crash_button,onClick:m,children:Object(d.t)("Signature_click_refresh")})]})]})),[]);return Object(Z.jsxs)(n.Fragment,{children:[Object(Z.jsx)(s.r,{className:l()(j,$.a.content,a&&$.a.skeleton,!h&&$.a.collapse,!r&&$.a["layout_".concat(g)]),children:a?O:r?y:i.map((e=>Object(Z.jsx)(q,{widget:e,ctxId:o},e.id)))}),!a&&!r&&Object(Z.jsx)(s.r,{className:$.a.expand,onClick:()=>{u&&ee.a.click({position:"more",instanceId:c,system:t.system}),b((e=>!e))},children:Object(Z.jsxs)(s.r,{className:$.a.expand_button,children:[h?Object(d.t)("TextCollapse_fold"):Object(d.t)("TextCollapse_unfold"),Object(Z.jsx)(A.a,{name:"down_outlined",className:l()($.a.icon,h&&$.a.expand_rotate)})]})})]})}var re,ie=a(664),ne=a(805),oe=["instance","className","onClick","deletable","onDelete","keywords","relativeFormIds","ctxId","isInDetailField","isInDetailPage","currentActive","currentNav","isEditorChecked"],se="connect-card",ce=Object(u.h)(se),le=Object(o.a)((e=>{var t,a,{instance:o,className:c,onClick:u,deletable:f=!1,onDelete:M,keywords:_="",relativeFormIds:y,ctxId:D,isInDetailField:N,isInDetailPage:A,currentActive:T,currentNav:I,isEditorChecked:C=!1}=e,x=Object(i.a)(e,oe),{createTime:S,instanceName:w,approvalStatus:L,instanceId:E,creatorUserId:k}=o,z=Object(n.useMemo)((()=>L===O.d.CLEARED),[L]),{configurableFormStore:R}=Object(j.d)(D),{loading:P,crash:U,enableRelativeForm:B,relativeFormWidgets:F,submitterName:Y,onRetry:Q}=Object(ie.b)({instanceId:o.instanceId,relativeFormIds:y,configurableFormStore:R,creatorUserId:k,isInDetailPage:A,isEditorChecked:C}),G=w.replace(/[\t\n\v\r\f]/gim," "),{globalStore:W}=Object(n.useContext)(v.a),V=W.enableShowCrossTenant&&("true"===(null===(t=o.Attributes)||void 0===t||null===(a=t.find((e=>"from_external_tenant"===e.Key)))||void 0===a?void 0:a.Value)||Boolean(o.b2bFlag));return Object(Z.jsx)(s.r,Object(r.a)(Object(r.a)({className:l()("connect-card-container",{"connect-card-container-advanced":B,disabled:z})},x),{},{children:Object(Z.jsxs)(b.c,{text:Object(d.t)("approval-mp_ThisDeleted_Desc"),fixed:!0,arrow:!0,style:{width:"100%",cursor:"not-allowed"},disabled:!z,children:[Object(Z.jsxs)(s.r,{className:l()(se,c),onClick:e=>{z||(A&&ee.a.click({position:"detail",instanceId:E,system:o.system}),null==u||u(e))},children:[Object(Z.jsxs)(s.r,{className:ce("content"),children:[Object(Z.jsx)(s.r,{className:ce("title"),children:Object(Z.jsx)(p.a,{className:ce("title-highlight"),content:G,keyword:_})}),Object(Z.jsx)(s.r,{className:ce("detail"),children:Object(Z.jsx)(s.r,{className:ce("time"),children:Object(d.t)("approval-mp_SubmitPersonTime_Desc","{{userName}}提交于 {{submitTime}}",{userName:Y||o.submitterName,submitTime:Object(g.d)(Number(S))})})})]}),Object(Z.jsxs)(s.r,{className:ce("status"),children:[Object(Z.jsx)(m.c,{size:"small",status:L}),V&&Object(Z.jsx)(h.a,{className:ce("external_tag"),size:"small"})]}),f&&Object(Z.jsx)(ne.a,{className:"connect-card__delete",type:"icon-secondary",icon:"delete-trash_outlined",size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation(),null==M||M(o)}})]}),B&&Object(Z.jsx)(ae,{instance:o,widgets:F,isLoading:P,isCrash:U,ctxId:D,parentId:E,isInDetailPage:A,onCrashButtonClick:Q})]})}))})),de=a(157),ue=a(209),pe=a(379),me=a(300),he=a(100),be=a(23),ge=a(168),ve=a(174),je=a.n(ve),Oe=a(1471),fe=a(745),Me=a(109),_e=a(12),ye=a(16),De=a(79),Ne=a(223),Ae=function(){var e=Object(f.a)((function*(e){var{topics:t,queryString:a="",processStatus:r,definitionKeys:i=[],order:n=be.d.Desc,direction:o=be.a.Forward,pageSize:s=30,nextPageToken:c=""}=e;if(a){var l={Count:s,Cursor:c,DefinitionKeys:i,ProcessStatus:r?[r]:[],Query:a,Start:"",End:"",Topics:t.map((e=>Object(De.l)(e))),WithCount:!0,WithDetail:!0,WithExternal:!0,WithPercentile:!0,WithASC:n===be.d.Asc};r===be.f.TaskTimeover&&(l.Filter={OvertimeStages:[be.e.Notice]},l.ProcessStatus=[]);var d=[{SearchBasicQuery:l}],{data:{Responses:[{SearchBasicQuery:u}]}}=yield ye.c.v2Grouping({Requests:d},{showError:!0});Object(Ne.a)(u);var[p,m]=Object(De.h)(u,!0);return{listTaskData:p,countTaskData:m,nextCursor:null==u?void 0:u.NextCursor}}var h,b=[{ListTask:{Filter:{Topics:t,Querystring:a,DefinitionKeys:i,ProcessStatus:r},PageSize:s,Direction:o,Order:n,NextPageToken:c}}];if(!c){var g={Filter:{Topics:t,DefinitionKeys:i,Querystring:a,StartTimestamp:"",EndTimestamp:"",ProcessStatus:r}};b.push({CountTask:g})}var v=yield ye.c.v2Grouping({Requests:b},{showError:!0}),{Responses:[{ListTask:j}]}=v.data,O=null===(h=v.data.Responses.find((e=>e.CountTask)))||void 0===h?void 0:h.CountTask;return Object(Ne.a)(j),Object(Ne.a)(O),{listTaskData:j,countTaskData:O}}));return function(t){return e.apply(this,arguments)}}(),Te=[{key:0,name:Object(d.t)("list.approval_all_status")},{key:be.f.Running,name:Object(d.t)("list.approval_pending")},{key:be.f.Approved,name:Object(d.t)("list.approval_agreed")},{key:be.f.Rejected,name:Object(d.t)("list.approval_reject")},{key:be.f.Canceled,name:Object(d.t)("list.approval_canceled")},{key:be.f.Deleted,name:Object(d.t)("list.approval_delete")},{key:be.f.Terminated,name:Object(d.t)("list.approval_terminated")}];!function(e){e.First="first",e.More="more",e.None="none"}(re||(re={}));var Ie=[be.i.TodoApproval,be.i.DoneApproval,be.i.UnreadNotice,be.i.InitiatedApproval],Ce=Ie.map((e=>({key:e,title:Object(De.j)(e),status:Object(De.g)(e)})));function xe(e){return be.i.UnreadNotice===e?[be.i.ReadNotice,be.i.UnreadNotice]:[e]}var Se=e=>{Ie.forEach((t=>{e[t]||(e[t]=[])}));var t=e[be.i.ReadNotice];return null!=t&&t.length&&e[be.i.UnreadNotice].push(...t),Object.keys(e).forEach((t=>{Array.isArray(e[t])||(e[t]=[]),e[t]=Object(fe.a)(e[t],"key"),e[t].unshift({key:"",name:Object(d.t)("ApprovalSearch.All")})})),e},we=Se({}),Le=e=>Object(r.a)(Object(r.a)({},e),{},{key:e.DefinitionKeys[0],name:e.Name,definitionKeys:e.DefinitionKeys});function Ee(e){var{widget:t}=e,{indexStore:a}=Object(v.c)(),{data:i}=t,{definitionIds:o,instances:s=[],allAssociateTicket:c=!0}=i,l=!c,[d,u]=Object(n.useState)(""),[p,h]=Object(n.useState)(""),[b,g]=Object(n.useState)(be.i.InitiatedApproval),[j,O]=Object(n.useState)(0),[f,M]=Object(n.useState)(0),[_,y]=Object(n.useState)(re.None),[D,N]=Object(n.useState)(!1),[A,T]=Object(n.useState)(!1),[I,C]=Object(n.useState)(null),[x,S]=Object(Me.d)({}),[w,L]=Object(Me.d)([]),[E,k]=Object(n.useState)([]),[z,R]=Object(Me.d)({}),[P,U]=Object(Me.d)({}),[B,F]=Object(Me.d)(we),[Y,Q]=Object(Me.d)({}),G=Object(n.useMemo)((()=>{var e,t,a,r=null===(e=B()[b])||void 0===e||null===(t=e[j])||void 0===t?void 0:t.definitionKeys;return null!=r&&r.length?r.slice():null!==(a=null==o?void 0:o.slice())&&void 0!==a?a:[]}),[j,b,o,B]);Object(n.useEffect)((()=>{var e=null==s?void 0:s.reduce(((e,t)=>(null!=t&&t.processId&&(e[t.processId]=t),e)),{});Q(null!=e?e:{})}),[Q,s]);var W=Object(n.useCallback)((()=>{O(0),M(0),F(we)}),[F]);Object(n.useEffect)((()=>{W()}),[b,W]);var V=Object(n.useCallback)((e=>{var t,a;if(!e.TaskID)return e;var i=Object(me.a)(e,null);return Object(r.a)(Object(r.a)(Object(r.a)({},e),i),{},{id:e.ID,checked:Boolean(Y()[e.ProcessID]),createTime:1e3*Number(e.Timestamp),creatorUserId:e.AssigneeID,instanceId:e.ProcessID,instanceName:e.DefinitionName,definitionID:e.ProcessDefinitionKey,definitionName:e.ProcessDefinitionName,iconUrl:e.DefinitionAvatarURL,submitterName:null!==(t=null===(a=z()[e.InitiatorIDs[0]])||void 0===a?void 0:a.Name)&&void 0!==t?t:"",approvalStatus:m.b[e.ProcessStatus],isEditorChecked:!0,definitionId:e.ProcessDefinitionID,widgetsDef:"",widgetDataInternals:[],b2bFlag:0})}),[Y,z]),H=Object(n.useCallback)((e=>{var t,a,r,i=e.slice(),n=null!==(t=P()[b])&&void 0!==t?t:[];return u(null!==(a=null===(r=i[i.length-1])||void 0===r?void 0:r.NextPageToken)&&void 0!==a?a:""),Object(Oe.a)(n,i,"id")}),[b,P]),Z=Object(n.useCallback)(((e,t,i)=>{var{Tasks:n=[],Users:o={},Departments:s={}}=e||{},c=n.map(V).filter((e=>{var t,a,r="2"===(null==e||null===(t=e.Attributes)||void 0===t||null===(a=t.find((e=>{var{Key:t}=e;return"b2b_flag"===t})))||void 0===a?void 0:a.Value),i=(null==e?void 0:e.Topic)===be.i.InitiatedApproval;return!(r&&!i)})),l=H(c);t&&u(t),L(c),S(o),U((e=>Object(r.a)(Object(r.a)({},e),{},{[b]:l}))),a.addUserData(o),a.addDepartmentData(s),R((e=>Object(r.a)(Object(r.a)({},e),o))),N(c.length<30),y(re.None),i()}),[H,b,V,L,U,S,R]),q=Object(n.useCallback)((e=>{if(void 0!==e){var{Pipelines:t=[]}=e||{},a=null==t?void 0:t.reduce(((e,t)=>{var{Counts:a}=t;return e[t.Topic]=function(e,t){var a,r=e;return t.length>0&&(r=null==e?void 0:e.filter((e=>e.DefinitionKeys.every((e=>t.some((t=>e.includes(t)))))))),null!==(a=r.map((e=>Le(e))))&&void 0!==a?a:[]}(a,G),e}),{});0===j&&F(Se(a))}}),[F,G,j]),K=Object(n.useCallback)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{k(Object(fe.a)(w(),"instanceId"))};C(null),N(!1),y((e=>re.None===e?re.First:e));var i=l?be.f.Approved:(null===(e=Te[f])||void 0===e?void 0:e.key)||void 0;return Ae(Object(r.a)({topics:xe(b),queryString:p,processStatus:i,definitionKeys:G,pageSize:30,order:2,direction:be.a.Forward},t)).then((e=>{var{listTaskData:t,countTaskData:r,nextCursor:i}=e;Z(t,i,a),q(r)}))}),[l,f,b,p,G,Z,q,w]),J=Object(n.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(re.More),K(Object(r.a)({nextPageToken:d},e),(()=>{k(Object(Oe.a)(E,w(),"instanceId"))}))}),[E,K,w,d]);return Object(n.useEffect)((()=>{K().catch((e=>{L([]),S({}),k([]),y(re.None),C(e),Object(_e.b)("approval_connect_error",e)}))}),[K,L,S]),Object(n.useEffect)((()=>{T(!E.length)}),[E]),{currentTopic:b,setCurrentTopic:g,queryString:p,setQueryString:h,approvalStatus:f,setApprovalStatus:M,approvalType:j,setApprovalType:O,reset:W,loading:_,noMore:D,empty:A,error:I,fetchTasks:K,loadMore:J,getUsers:x,getTasks:w,checklist:E,getUsersTable:z,getTasksTable:P,getTypesTable:B,getCheckedTable:Y,setCheckedTable:Q,normalizeTask:V}}var ke=a(715),ze=a(45),Re=a(22),Pe=["data","topic","searchKey","onClick"],Ue=Object(o.a)((e=>{var t,a,o,{data:s,topic:c,searchKey:l="",onClick:u}=e,p=Object(i.a)(e,Pe),{indexStore:m}=Object(n.useContext)(v.a),{userData:h,departmentData:b}=m,g=Object(De.g)(c),j=g===Re.a.CarbonCopy,O=g===Re.a.Initiated,f=g===Re.a.Todo,M=g===Re.a.Done,_=s.InitiatorIDs.find(((e,t)=>0===t))||"",y=null==h?void 0:h[_],D=null==y||null===(t=y.DepartmentIDs)||void 0===t?void 0:t.map((e=>{var t;return null==b||null===(t=b[e])||void 0===t?void 0:t.Name})).join(Object(d.t)("Split")),N=null===(a=s.Attributes)||void 0===a?void 0:a.find((e=>(null==e?void 0:e.Key)===ze.b)),A=null===(o=s.InitiatorIDs)||void 0===o?void 0:o.map((e=>null==h?void 0:h[e])),T=(null==A?void 0:A.length)>=3?(null==A?void 0:A.map((e=>null==e?void 0:e.Name)).join(Object(d.t)("Split")))+Object(d.t)("ApprovalList_PeopleEllipsis_plural",{count:(null==A?void 0:A.length)||0}):null==A?void 0:A.map((e=>null==e?void 0:e.Name)).join(Object(d.t)("Split")),I="".concat(s.DefinitionName).concat(Object(d.t)("Brackets",{innerText:(null==N?void 0:N.Value)||""}));return Object(Z.jsx)(ke.a,Object(r.a)({isCombinaCard:Boolean(null==N?void 0:N.Value),defineCombinaUser:T,displayCombinaTitle:I,topic:c,isTodoNav:f,isDoneNav:M,isCcNav:j,isCreateNav:O,isNew:!1,isActive:!1,onClick:()=>{null==u||u()},cardInfo:s,userData:y,departNames:D,searchKey:l,isRevoke:void 0},p),s.ID)})),Be="selector",Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(Be,"__").concat(e):Be},Ye=e=>{var{widget:t,onConfirm:a,onCancel:i}=e,{data:{allAssociateTicket:o=!0}}=t,c=!o,{currentTopic:p,setCurrentTopic:m,queryString:h,setQueryString:b,approvalType:g,setApprovalType:v,approvalStatus:j,setApprovalStatus:O,reset:f,loading:M,noMore:_,empty:y,error:D,fetchTasks:N,loadMore:A,checklist:T,getTypesTable:I,getCheckedTable:C,setCheckedTable:x,normalizeTask:S}=Ee(e),w=he.a.use();Object(n.useEffect)((()=>{w.setTitle(Object(d.t)("FormConnect.SelectConnectApprovals","请选择关联审批单"))}),[w]);var L=()=>{var e,t=null!==(e=I()[p])&&void 0!==e?e:[],a=be.i.TodoApproval!==p&&!c;return Object(Z.jsxs)(s.r,{className:je.a[Fe("dropdown-bar")],children:[Object(Z.jsx)(pe.a,{className:je.a[Fe("dropdown")],noBorder:!0,range:null==t?void 0:t.map((e=>{var{name:t}=e;return t})),placeholder:Object(d.t)("AddTask.PleaseSelect"),value:g,onChange:e=>{var{detail:{value:t}}=e;return v(Number(t))}}),a&&Object(Z.jsx)(pe.a,{className:je.a[Fe("dropdown")],noBorder:!0,range:Te.map((e=>{var{name:t}=e;return t})),placeholder:Object(d.t)("AddTask.PleaseSelect"),value:j,onChange:e=>{var{detail:{value:t}}=e;return O(Number(t))}})]})},E=e=>{var{detail:{value:t,checked:a}}=e,{instanceId:i}=t;x((e=>Object(r.a)(Object(r.a)({},e),{},{[i]:a?t:null})))},k=(e,t)=>{var{instanceId:a}=e,r=C();return Object(Z.jsx)(s.r,{className:je.a[Fe("checkbox")],children:Object(Z.jsx)(u.b,{onChange:E,value:e,size:"small",shape:"square",checked:Boolean(r[a]),children:Object(Z.jsx)(Ue,{className:je.a[Fe("approval-task")],topic:t,data:e,searchKey:h,onClick:()=>{(e=>{Object(Qe.a)(Object(me.a)(e,ge.b.currentSelected.activeDetail))})(e)}})},a)})},z=()=>{A()},R=()=>{N()},P=e=>{var{key:t,title:a}=e;return Object(Z.jsxs)(u.f.Pane,{tab:a,className:je.a[Fe("pane")],children:[L(),Object(Z.jsx)(u.e,{enableFlex:!0,loading:re.First===M,lowerLoading:re.More===M,lowerable:!_,count:T.length,onScrollToLower:z,onRetry:R,error:Boolean(D),empty:y,children:T.map((e=>k(e,t)))})]},t)},U=e=>{m(Number(e))},B=Object.values(C()).some((e=>Boolean(e)));return Object(Z.jsxs)(u.d.Panel,{className:je.a[Fe()],children:[Object(Z.jsxs)(u.d.Panel,{className:je.a[Fe("inner")],children:[Object(Z.jsx)(ue.a,{style:{borderRadius:4},value:h,wrapClass:je.a[Fe("search-bar")],placeholder:Object(d.t)("FormConnect.DefinitionSearchPlaceholder","搜索任务主题、申请人、编号、内容"),onClear:()=>{b(""),f()},onInput:Object(de.a)((e=>{var{detail:{value:t}}=e;f(),b(t)}),500)}),Object(Z.jsx)(u.f,{className:je.a[Fe("tabs")],activeKey:be.i.InitiatedApproval,onChange:U,children:Ce.map(P)})]}),Object(Z.jsx)(u.d.Footer,{className:je.a[Fe("actions")],children:Object(Z.jsxs)(u.d.Container,{className:je.a[Fe("actions-inner")],children:[Object(Z.jsx)(s.b,{disabled:!B,className:l()(je.a[Fe("actions-button")],je.a[Fe("actions-button--main")],{[je.a[Fe("actions-button--disable")]]:!B}),onClick:()=>{var e=Object.entries(C()).reduce(((e,t)=>{var[a,r]=t;return r&&e.push(S(r)),e}),[]);null==a||a(e)},children:Object(d.t)("SelectedConfirm","确认")}),Object(Z.jsx)(s.b,{className:l()(je.a[Fe("actions-button")],je.a[Fe("actions-button--vice")]),onClick:()=>{null==i||i()},children:Object(d.t)("SelectedCancel","取消")})]})})]})},Qe=a(578)},function(e,t,a){"use strict";a.d(t,"c",(function(){return v})),a.d(t,"d",(function(){return j})),a.d(t,"f",(function(){return O})),a.d(t,"e",(function(){return f})),a.d(t,"a",(function(){return M})),a.d(t,"b",(function(){return B}));var r,i,n,o,s,c,l,d=a(6),u=a(7),p=a(4),m=a(23),h=a(11),b=(a(56),r=class{get definitionKeys(){return[...this.keys]}constructor(e,t,a){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Object(h.a)(this,"title",i,this),Object(h.a)(this,"displayCount",n,this),Object(h.a)(this,"evenMore",o,this),Object(h.a)(this,"disabled",s,this),Object(h.a)(this,"showCount",c,this),Object(d.a)(this,"key",void 0),Object(d.a)(this,"keys",void 0),this.title=e,this.displayCount=t,this.keys=new Set(a),this.evenMore=l,this.showCount=r,this.key=a[0]}add(e,t){this.evenMore||(this.displayCount+=e,this.displayCount<=t||(this.displayCount=t,this.evenMore=!0))}set(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:99;this.displayCount=e,this.displayCount>t&&(this.displayCount=t,this.evenMore=!0)}},i=Object(u.a)(r.prototype,"title",[p.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=Object(u.a)(r.prototype,"displayCount",[p.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=Object(u.a)(r.prototype,"evenMore",[p.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=Object(u.a)(r.prototype,"disabled",[p.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=Object(u.a)(r.prototype,"showCount",[p.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),r),g=e=>{var{Attributes:t}=e,a=null==t?void 0:t.find((e=>"display_count"===e.Key));return a?Number(a.Value):1},v=e=>{var{DefinitionKey:t,DefinitionName:a}=e,r=g(e),i=e.Topic===m.i.TodoApproval||e.Topic===m.i.UnreadNotice;return new b(a,r,[t],i)},j=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],{DefinitionKeys:a,DisplayCount:r,Name:i,EvenMore:n}=e;return new b(i,Number(r),a,t,n)},O=99,f=99,M=(l=class{get showMoreThreshold(){return this.indexStore.inSearchMode?O:f}constructor(e){Object(d.a)(this,"onlyDistinctTopics",new Set([m.i.ReadNotice,m.i.DoneApproval,m.i.InitiatedApproval])),Object(d.a)(this,"indexStore",void 0),this.indexStore=e}remove(e){if(!this.onlyDistinctTopics.has(e.Topic)){var t=this.getMenuList(e.Topic),a=t.findIndex((t=>t.title===e.DefinitionName||t.keys.has(e.DefinitionKey)));if(-1!==a){var r=this.indexStore.getList(e.Topic);if(!r.canUpdateMenuCount||!r.menuMatchFilter(e)){var i=t[a];i.add(-1*g(e),this.showMoreThreshold),i.displayCount<=0&&t.splice(a,1)}}}}add(e){if(!this.indexStore.inSearchMode){var t=this.getMenuList(e.Topic),a=t.findIndex((t=>t.title===e.DefinitionName||t.keys.has(e.DefinitionKey)));if(-1!==a){var r=t[a];if(r.keys.add(e.DefinitionKey),!this.onlyDistinctTopics.has(e.Topic)){var i=this.indexStore.getList(e.Topic);i.canUpdateMenuCount&&i.menuMatchFilter(e)||r.add(g(e),this.showMoreThreshold)}}else t.unshift(v(e))}}update(e){var t=g(e);if(!(t<=1||this.indexStore.inSearchMode||this.onlyDistinctTopics.has(e.Topic))){var a=this.getMenuList(e.Topic),r=a.findIndex((t=>t.title===e.DefinitionName||t.keys.has(e.DefinitionKey)));if(-1!==r)a[r].set(t,this.showMoreThreshold)}}},Object(u.a)(l.prototype,"remove",[p.f],Object.getOwnPropertyDescriptor(l.prototype,"remove"),l.prototype),Object(u.a)(l.prototype,"add",[p.f],Object.getOwnPropertyDescriptor(l.prototype,"add"),l.prototype),Object(u.a)(l.prototype,"update",[p.f],Object.getOwnPropertyDescriptor(l.prototype,"update"),l.prototype),l),_=a(5),y=a(9),D=a(1490),N=a(1491),A=a(1458),T=a(1483),I=a(983),C=a(984),x=a(1459),S=a(1460),w=a(1492),L=a(1461),E=a(1462),k=a(1463),z=a(1464),R=a(10),P=a(20),U=Object(P.c)("shared:src/modules/task-center/task-updater.ts");class B{constructor(e){var t=this;Object(d.a)(this,"lastCursor",""),Object(d.a)(this,"intervalInMs",3e3),Object(d.a)(this,"taskCenter",void 0),Object(d.a)(this,"start$",new D.a),Object(d.a)(this,"stop$",new D.a),Object(d.a)(this,"refresh$",Object(N.a)().pipe(Object(A.a)((()=>{U("taskCenterOutOfSync"),this.taskCenter.refresh()})))),Object(d.a)(this,"update$",(e=>Object(N.a)(e).pipe(Object(A.a)((e=>{this.taskCenter.addUserData(e.Users),this.taskCenter.addDepartmentData(e.Departments)})),Object(T.a)((e=>Object(I.a)(e.Changes))),Object(T.a)((e=>{var{ID:t,Origin:a,Target:r,Cursor:i}=e;this.lastCursor=i;var{current:n,target:o}=this.getTaskChange(t,a,r);return U("taskCenterUpdateChange",{id:t,current:this.extractTaskForLog(n),target:this.extractTaskForLog(o),cursor:i}),this.triggerUpdate(t,n,o)}))))),Object(d.a)(this,"isPulling",!1),Object(d.a)(this,"isForeground",!0),Object(d.a)(this,"createPolling",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;return t.isPulling=!0,Object(C.a)(0,e).pipe(Object(x.a)((()=>t.taskCenter.apiService.pullChanges({Cursor:t.lastCursor}).catch((e=>{if("limitRequestCount"===e.message)return U("taskCenterRequestAbort"),R.a.warn("pullChanges abort"),{IsOutOfSync:!1,Changes:[],Users:{},Departments:{}};throw e})))),Object(S.a)(5),Object(x.a)((e=>Object(w.a)((()=>e.IsOutOfSync),t.refresh$,t.update$(e)))),Object(L.a)((e=>(U("taskCenterCatchError",e),E.a))),Object(k.a)(t.stop$),Object(z.a)((()=>{U("taskCenterPollingStopped"),t.isPulling=!1})))})),Object(d.a)(this,"setCursor",((e,t)=>{this.lastCursor=e,this.intervalInMs=Math.max(t,3e3),this.start$.next(this.intervalInMs)})),Object(d.a)(this,"startPolling",(()=>{!this.isPulling&&this.lastCursor&&this.isForeground&&this.start$.next(this.intervalInMs)})),Object(d.a)(this,"stopPolling",(e=>{U("taskCenterStopPulling",{reason:e}),this.stop$.next()})),Object(d.a)(this,"triggerUpdate",function(){var e=Object(y.a)((function*(e,a,r){yield t.updateTask(e,a,r),t.updateCount(a,r)}));return function(t,a,r){return e.apply(this,arguments)}}()),Object(d.a)(this,"setIsForeground",(e=>{this.isForeground=e})),Object(d.a)(this,"extractTaskForLog",(e=>{if(void 0!==e)return{Topic:e.Topic,DefinitionName:e.DefinitionName,DefinitionKey:e.DefinitionKey,System:e.System,DisplayMethod:e.DisplayMethod,ProcessStatus:e.ProcessStatus,NanoUnix:e.NanoUnix}})),Object(d.a)(this,"getTaskChange",((e,t,a)=>{var r=this.taskCenter.taskCache.get(e);return r&&t&&r.Topic!==t.Topic&&(null==t?void 0:t.Topic)===(null==a?void 0:a.Topic)?{current:r,target:Object(_.a)(Object(_.a)({},a),{},{Topic:r.Topic})}:{current:r||t,target:a}})),Object(d.a)(this,"updateTask",function(){var e=Object(y.a)((function*(e,a,r){if(t.taskCenter.taskCache.set(e,r),a&&r&&a.Topic===r.Topic){t.taskCenter.getList(r.Topic,r.DefinitionName).updateTask(r)}else{if(a){var i=t.taskCenter.getList(a.Topic,a.DefinitionName);yield i.removeTask(a)}if(r)t.taskCenter.getList(r.Topic,r.DefinitionName).addTask(r)}}));return function(t,a,r){return e.apply(this,arguments)}}()),Object(d.a)(this,"updateCount",((e,t)=>{e&&t&&e.Topic===t.Topic?this.taskCenter.menu.update(t):(e&&this.taskCenter.menu.remove(e),t&&this.taskCenter.menu.add(t))})),this.taskCenter=e,tt.onNetworkStatusChange((e=>{var{isConnected:t}=e;t?this.startPolling():this.stopPolling("network_unconnected")})),this.start$.pipe(Object(A.a)((()=>{U("taskCenterStartPulling")})),Object(x.a)((e=>this.createPolling(e)))).subscribe()}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return p})),a.d(t,"b",(function(){return m}));var r,i=a(6),n=a(7),o=a(4),s=a(2),c=a(13),l=a(16),d=a(10),u=a(303),p="applicant",m=(r=class{constructor(e,t){Object(i.a)(this,"configurableFormStore",void 0),Object(i.a)(this,"userStore",void 0),Object(i.a)(this,"imitateUserDepartmentList",[]),Object(i.a)(this,"updateImitateDepartmentList",Object(o.k)(this._updateImitateDepartmentList)),Object.defineProperty(this,"configurableFormStore",{configurable:!1,enumerable:!1,writable:!1,value:e}),Object.defineProperty(this,"userStore",{configurable:!1,enumerable:!1,writable:!1,value:t})}get userDepartmentList(){var e;return null!==(e=this.configurableFormStore.definitionInfo)&&void 0!==e&&e.allowInsteadCreate&&this.configurableFormStore.insteadSubmitManager.currentSubmitterIsNotCurrentUser?this.imitateUserDepartmentList:this.userStore.departmentList}get generateFakeWidget(){var{userDepartmentList:e}=this;if(e.length<=1)return null;var t=this.userDepartmentList.find((e=>e.isMainDepartment));return{id:p,name:Object(s.t)("UserDepartment"),type:c.c.SINGLE_SELECT,placeholder:Object(s.t)("UserDepartment"),displayCondStatus:!0,required:!0,value:this.userDepartmentList.map((e=>({value:e.departmentId,text:e.name}))),defaultValue:t?{text:t.name,value:t.departmentId}:null}}initializeVisible(){var{configurableFormStore:e,userDepartmentList:t}=this;t.length>1?(e.addWidgetsToReadableSet([p]),e.addWidgetsToWritableSet([p])):(e.deleteWidgetsToReadableSet([p]),e.deleteWidgetsToWritableSet([p]))}initializeValue(){var{userDepartmentList:e}=this;if(1===e.length){var{departmentId:t,name:a}=e[0];this.resetWhenResubmit({departmentId:t,departmentName:a})}}resetWhenResubmit(e){var{departmentId:t,departmentName:a}=e,r=this.configurableFormStore.getWidget(p,!1);r&&(r.data.value={value:t,text:a})}get departmentId(){var{userDepartmentList:e}=this,t=this.configurableFormStore.getWidget(p,!1);if(!t)return e[0]?e[0].departmentId:null;try{return t.data.value.value}catch(e){return null}}get widgetDepartmentId(){var e=this.configurableFormStore.getWidget(p,!1);if(e)try{return e.data.value.value}catch(e){return null}return null}*_updateImitateDepartmentList(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var a=yield l.c.useruserDepartmentInfo({imitateUserId:e});this.imitateUserDepartmentList=a.data.departmentList.map((e=>({departmentId:String(e.departmentId),parentDepartmentId:String(e.parentDepartmentId),leaderUserId:String(e.leaderUserId),tenantId:String(e.tenantId),name:e.name,isMainDepartment:String(e.departmentId)===String(a.data.mainDepartmentId)}))),this.initializeVisible(),this.imitateUserDepartmentList.length>1?this.configurableFormStore.addFakeDepartmentWidget():this.configurableFormStore.removeFakeDepartmentWidget(),t&&(this.configurableFormStore.notifyOnInsteadSubmitChange(e),setTimeout((()=>{this.configurableFormStore.previewListManager.refresh(u.a)}),100))}catch(e){d.a.error(e),Object(o.s)((()=>{this.imitateUserDepartmentList=[]}))}}},Object(n.a)(r.prototype,"initializeVisible",[o.f],Object.getOwnPropertyDescriptor(r.prototype,"initializeVisible"),r.prototype),Object(n.a)(r.prototype,"initializeValue",[o.f],Object.getOwnPropertyDescriptor(r.prototype,"initializeValue"),r.prototype),Object(n.a)(r.prototype,"resetWhenResubmit",[o.f],Object.getOwnPropertyDescriptor(r.prototype,"resetWhenResubmit"),r.prototype),r)},function(e,t,a){"use strict";var r=a(37),i=a(5),n=a(3),o=a(8),s=a.n(o),c=a(1),l=a(19),d=a(65),u=a(72),p=a(294),m=a(744),h=(a(1191),a(89)),b=(a(1192),a(0)),g=["text","onClick","closable","renderIcon"],v=e=>{var{type:t="option",size:a="medium",shape:r="rect",icon:n,renderIcon:o,text:l,closable:d,backgroundColor:u,color:p,onClick:m,onClose:g,className:v,customStyle:j,closeHoverColor:O}=e;return Object(b.jsxs)(c.r,{className:s()("ud-like-tag","option"===t?["ud-like-tag--".concat(a),"ud-like-tag--".concat(r)]:[],{"ud-like-tag--avatar":"avatar"===t,"ud-like-tag--option":"option"===t},v),style:Object(i.a)({backgroundColor:u,color:p},j),onClick:m,children:[o?Object(b.jsx)(c.r,{className:"ud-like-tag__icon",children:o}):n&&"avatar"!==t?Object(b.jsx)(h.a,{className:"ud-like-tag__icon",name:n}):null,l&&Object(b.jsx)(c.r,{className:"ud-like-tag__text",children:l}),d&&Object(b.jsx)(h.a,{className:s()("ud-like-tag__close",O&&"ud-like-tag__close-".concat(O)),name:"icon-close",onClick:e=>{e.stopPropagation(),null==g||g()}})]})};v.Group=e=>{var{className:t,customStyle:a,maxTagCount:o,onClickCollapseBtn:h,countTagProps:j,children:O}=e,f=Object(n.useMemo)((()=>"tag-group_".concat(Object(u.c)())),[]),[M,_]=Object(n.useState)((()=>o&&"responsive"!==o?o:9999)),[y,D]=Object(n.useState)(!1),N=O?O.length:0;Object(n.useEffect)((()=>{if(!o||"responsive"!==o)return D(!0),_(9999);Object(l.nextTick)((()=>{Promise.all([Object(d.a)("#".concat(f)),Object(d.b)("#".concat(f," > .ud-like-tag-group--hidden > .ud-like-tag"))]).then((e=>{var[t,a]=e;if(!t||!a||!a.length)return D(!0),void _(1);var r,i,n,o=a.pop(),s=(null==o?void 0:o.width)||0,c=t.right,d=0;a.length>1&&(d=(null===(r=a[1])||void 0===r?void 0:r.right)-(null===(i=a[0])||void 0===i?void 0:i.right)-(null===(n=a[1])||void 0===n?void 0:n.width));var u=a.findIndex(((e,t)=>e.right+(t<a.length-1?s+d:0)>c));_(u>0?u:N),Object(l.nextTick)((()=>{D(!0)}))}))}))}),[f,N,o]);var A=e=>{if(e<=0||!O||!N)return null;var t=O[0],{props:{text:a,onClick:n,closable:o,renderIcon:s}}=t,c=Object(r.a)(t.props,g);return Object(b.jsx)(v,Object(i.a)(Object(i.a)(Object(i.a)({className:"rest-count"},c),j),{},{text:"+".concat(e),onClick:()=>null==h?void 0:h(e)}))};return O&&0!==O.length?Object(b.jsxs)(c.r,{className:s()("ud-like-tag-group",t),id:f,style:a,children:[Object(b.jsx)(c.r,{className:"ud-like-tag-group--loading",children:Object(b.jsx)(m.a,{loading:!y})}),Object(b.jsxs)(c.r,{className:"ud-like-tag-group--hidden",children:[O,A(N)]}),Object(b.jsxs)(c.r,{className:s()("ud-like-tag-group--visible",{"ud-like-tag-group--nowrap":"responsive"===o},{"ud-like-tag-group--transparent":!y}),children:[O.slice(0,M>N?N:M),Object(b.jsx)(p.a,{zIndex:15,overlayPosition:"fixed",trigger:"hover",contentClass:"rest-tag-content",popoverStyle:{width:"fit-content",maxWidth:"300px"},content:O.slice(M),children:A(N-M)})]})]}):null},t.a=v},function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return s}));var r=a(2),i=/^.{0,20}$/,n={employeeName:"apaascorehrEmployeeName",phoneNumber:"apaascorehrPhoneNumber",onboardingDate:"apaascorehrOnboardingDate",employeeType:"apaascorehrEmployeeType",department:"apaascorehrDepartment",manager:"apaascorehrManager",position:"apaascorehrPosition",rank:"apaascorehrRank",contract_company:"apaascorehrContractCompany",workplace:"apaascorehrWorkplace"},o=e=>{var t=[],a=[];for(var r of e)r.readonly&&a.push(r.id),!1===r.visible&&t.push(r.id);return[t,a]},s=(e,t)=>"UserNotExist"===e?Object(r.t)("Apaascorehr_UserNotFound"):"PhoneIsExist"===e?Object(r.t)("Apaascorehr_AlreadyHavePhoneNumber",{status:t}):"PhoneIsInvalid"===e?Object(r.t)("Apaascorehr_InvalidPhoneNumber"):""},,,function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return o}));var r=a(39);function i(e,t){var a=/^\d+\.\d+\.\d+/.exec(e),r=/^\d+\.\d+\.\d+/.exec(t);if(!a||!r)return!1;if(a[0]===r[0])return!0;for(var i=a[0].split("."),n=r[0].split("."),o=!1,s=0;s<n.length;s++){var c=n[s],l=i[s];if(Number(l)>Number(c)){o=!0;break}if(Number(l)<Number(c))break}return o}var n=function(e){return!!r.h&&Boolean(r.h.version&&i(r.h.version,e))};function o(e){if(!e||!/^\d+\.\d+\.\d+/.exec(e))return 0;var t=e.split("."),a="";return t.forEach((e=>{var t=Number.isNaN(Number(e))?0:Number(e),r=String(Math.min(t,9999));a+=r.padStart(4,"0")})),Number(a)}},,function(e,t,a){"use strict";var r,i,n,o,s=a(5),c=a(11),l=(a(6),a(7)),d=(a(56),a(10)),u=a(4),p=a(20),m=a(28),h=Object(p.c)("pc:src/pc-pages/index/components/detail-module/devtools/devtools-store.ts"),b=(r=class{constructor(){Object(c.a)(this,"enable",i,this),Object(c.a)(this,"history",n,this),Object(c.a)(this,"msgHistory",o,this)}toggleEnable(){this.enable=!this.enable}commit(e){try{var{listCard:t}=e,a={};if(t){var r=["DisplayFields","Title"];for(var i of Object.keys(t))r.includes(i)||(a[i]=t[i])}h("detailDevtoolsCommit",Object(s.a)(Object(s.a)({},e),{},{listCard:Object(s.a)({},a)}))}catch(e){h("commonOnError",{location:"in function commit at src/pc-pages/index/components/detail-module/devtools/devtools-store.ts",msg:JSON.stringify(e,Object.getOwnPropertyNames(e))}),d.a.error(e)}m.r||(this.history=[e,...this.history.slice(0,2)])}commitMsg(e,t){try{h("detailDevtoolsMsg",t)}catch(e){h("commonOnError",{location:"in function commitMsg at src/pc-pages/index/components/detail-module/devtools/devtools-store.ts",msg:JSON.stringify(e,Object.getOwnPropertyNames(e))}),d.a.error(e)}m.r||(this.msgHistory=[Object(s.a)({from:e},t),...this.msgHistory.slice(0,11)])}},i=Object(l.a)(r.prototype,"enable",[u.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n=Object(l.a)(r.prototype,"history",[u.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),o=Object(l.a)(r.prototype,"msgHistory",[u.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(l.a)(r.prototype,"toggleEnable",[u.f],Object.getOwnPropertyDescriptor(r.prototype,"toggleEnable"),r.prototype),Object(l.a)(r.prototype,"commit",[u.f],Object.getOwnPropertyDescriptor(r.prototype,"commit"),r.prototype),Object(l.a)(r.prototype,"commitMsg",[u.f],Object.getOwnPropertyDescriptor(r.prototype,"commitMsg"),r.prototype),r);t.a=new b},function(e,t,a){e.exports=a.p+"assets/illustration/crash.png"},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDYzLjEgKDkyNDUyKSAtIGh0dHBzOi8vc2tldGNoLmNvbSAtLT4KICAgIDx0aXRsZT5sb2FkaW5nQD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a){"use strict";a.d(t,"a",(function(){return h}));var r=a(5),i=a(37),n=a(6),o=a(3),s=a(1),c=a(124),l=a(8),d=a.n(l),u=a(108),p=(a(1188),a(0)),m=["value","style","wrapStyle","wrapClass","placeholderStyle","onClear"];class h extends o.PureComponent{render(){var e=this.props,{value:t,style:a,wrapStyle:n,wrapClass:o,placeholderStyle:c,onClear:l}=e,h=Object(i.a)(e,m),b=d()("approval-search-input",o);return Object(p.jsxs)(s.r,{className:b,style:n,children:[Object(p.jsx)(s.r,{className:"iconfont icon-search approval-search-icon"}),Object(p.jsx)(u.a,Object(r.a)({type:"text",value:t,placeholderStyle:JSON.stringify(Object(r.a)({color:"#8F959E"},c)),style:Object(r.a)({height:"32px",padding:"0 24px",borderRadius:"20px",color:"#646A73",boxSizing:"border-box"},a)},h)),Object(p.jsx)(s.r,{className:d()("approval-clear-icon",{hidden:!t}),children:Object(p.jsx)(s.r,{className:"iconfont icon-icon_close_filled",onClick:l})})]})}}Object(n.a)(h,"defaultProps",{onInput:c.a,onConfirm:c.a})},function(e,t,a){"use strict";var r=a(1),i=(a(3),a(193)),n=(a(1231),a(0));t.a=e=>{var{text:t,maxWidth:a=240,children:o}=e;return Object(n.jsxs)(r.a,{children:[Object(n.jsx)(r.r,{className:"width-placeholder",style:{maxWidth:a},children:t}),Object(n.jsx)(r.r,{className:"table-cell-viewer",children:Object(n.jsx)(i.a,{thresholdLineClamp:5,children:o})})]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return O})),a.d(t,"c",(function(){return f})),a.d(t,"b",(function(){return _}));var r=a(5),i=a(9),n=a(4),o=a(35),s=a(2),c=a(16),l=a(13),d=a(26),u=a(33),p=a(314),m=a(280),h=a(24),b=a(80),g=a(220),v=a(47),j=a(445),O=" & ";function f(e,t,a){return M.apply(this,arguments)}function M(){return M=Object(i.a)((function*(e,t,a){var r=Object(j.a)("pc-pages/index/index");if(e.data.preLocating&&e.data.writable&&!r||a){yield Object(u.s)();var i=e.data.parentId;if(!t.resubmitInstanceId||i){var l=e.data.parentId&&!e.id.includes(v.h)?Object(d.k)([e.id,e.data.parentId]):e.id,p=t.getWidget(l);if(p&&!p.data.country){var m=yield c.c.locationlocate(),{data:h}=m;if(null==h||!h.country){if(e.data.parentId)return;o.b.showToast({title:Object(s.t)("formAddress.LocatingFailed"),icon:"error",duration:3e3})}Object(n.s)((()=>{p.data.country||h.country&&h.country.geoNameId&&h.country.name&&(p.data.country={id:Number(h.country.geoNameId),type:b.a.COUNTRY,name:h.country.name},h.subdivisions&&h.subdivisions[0]&&h.subdivisions[0].geoNameId&&h.subdivisions[0].name&&(p.data.province={id:Number(h.subdivisions[0].geoNameId),type:b.a.PROVINCE,name:h.subdivisions[0].name},h.city&&h.city.geoNameId&&h.city.name&&(p.data.city={id:Number(h.city.geoNameId),type:b.a.CITY,name:h.city.name},h.district&&h.district.geoNameId&&h.district.name&&(p.data.area={id:Number(h.district.geoNameId),type:b.a.AREA,name:h.district.name}))),t.handleWidgetChange(p.id))}))}}}})),M.apply(this,arguments)}var _={type:l.c.ADDRESS,inputFormat(e,t,a){var{id:r}=e,i={id:r,type:e.type,data:{parentId:a,name:e.name||"",visible:!1!==e.visible,readable:t.isWidgetReadable(r),writable:t.isWidgetWritable(r),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,selectIsEnabled:Boolean(e.value.enableSelect),selectIsRequired:Boolean(e.value.requiredSelect),selectPlaceholder:e.value.selectPlaceholder||"",isV2:Boolean(e.value.isV2),enableMultiDivisions:Boolean(e.value.enableMultiDivisions),value:[Object(g.a)()],country:null,province:null,city:null,area:null,detailIsEnabled:Boolean(e.value.enableDetailAddress),detailIsRequired:Boolean(e.value.requiredDetailAddress),detailPlaceholder:e.value.detailAddressPlaceholder||"",detail:"",preLocating:Boolean(e.value.preLocating),noProvince:!1,noCity:!1,noArea:!1,history:[],validationWarning:null,historyType:l.a.NONE}};return f(i,t),i},outputFormat(e){var{data:{selectIsEnabled:t,selectIsRequired:a,country:r,province:i,city:n,area:o,detailIsEnabled:s,detailIsRequired:c,detail:l,isV2:p,visible:m}}=e;if(!(t&&(a||r)||s&&(c||l)))return null;if(p){var h=Object(g.b)(e.data.value);return{id:Object(d.q)(e.id),type:e.type,value:{value:h,detailAddress:"",text:Object(g.c)(h)},displayCondStatus:e.data.visible}}var b=[r,i,n,o].filter((e=>Boolean(e))).map((e=>({geoNameId:e.id,level:e.type,name:e.name}))),v=l||"";return{id:Object(d.q)(e.id),type:e.type,value:m&&(b.length||v)?{value:b,detailAddress:v,text:[...b.map((e=>e.name)),v].filter(u.q).join("/")}:null,displayCondStatus:e.data.visible}},restoreFormat:Object(n.f)(((e,t)=>{var a,r,i;e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.displayCondStatus=t.displayCondStatus,e.data.detail=t.value.detailAddress||"",e.data.country=null,e.data.province=null,e.data.city=null,e.data.area=null,e.data.noProvince=1===(null===(a=t.value)||void 0===a||null===(r=a.multiDivisions)||void 0===r?void 0:r.length);var n={0:b.a.COUNTRY,1:b.a.PROVINCE,2:b.a.CITY,3:b.a.AREA};if(!t.value.divisions)return e;for(var[o,s]of t.value.divisions.entries())s.level=n[o];for(var c of t.value.divisions){var l={id:c.geoNameId,type:c.level,name:c.name};switch(l.type){case b.a.COUNTRY:e.data.country=l;break;case b.a.PROVINCE:e.data.province=l;break;case b.a.CITY:e.data.city=l;break;case b.a.AREA:e.data.area=l}}return h.b.globalStore.isTripAddressV2&&e.data.isV2&&null!==(i=t.value.multiDivisions)&&void 0!==i&&i.length&&(e.data.value=t.value.multiDivisions.slice(0,e.data.enableMultiDivisions?t.value.multiDivisions.length:1).map((e=>{var[t,a,r,i]=e,n=e=>e?{id:e.geoNameId,type:e.level,name:e.name}:void 0;return Object(g.a)({country:n(t),province:n(a),city:n(r),area:n(i)})}))),e})),restoreWithDraftFormat:Object(n.f)(((e,t)=>{var a;return e.data.country=Object(p.a)(t.data.country)||null,e.data.province=Object(p.a)(t.data.province)||null,e.data.city=Object(p.a)(t.data.city)||null,e.data.area=Object(p.a)(t.data.area)||null,e.data.detail=t.data.detail||"",e.data.noProvince=t.data.noProvince,h.b.globalStore.isTripAddressV2&&t.data.isV2&&(e.data.value=null===(a=t.data.value)||void 0===a?void 0:a.map((e=>Object(r.a)(Object(r.a)({},e),{},{id:Object(m.a)()})))),e})),printFormat(e){var{name:t,country:a,province:r,city:i,area:n,detail:o,isV2:s,value:c}=e.data,l=[a,r,i,n].filter((e=>Boolean(e))).map((e=>e.name)).join("/");return l.length||o?(l?l+=o?"/".concat(o):"":l=o||"",s&&(l=Object(g.c)(Object(g.b)(c))),{label:t,value:l}):{label:"",value:""}},writableValidate(e){var{selectIsEnabled:t,selectIsRequired:a,country:r,noProvince:i,province:n,detailIsEnabled:o,detailIsRequired:s,detail:c}=e.data;return!(t&&a&&(!r||!i&&!n)||o&&s&&!c)},validate:Object(n.f)(((e,t,a)=>{e.data.validationError=null;var r="";return!e.data.visible||!e.data.writable||(!e.data.validationError&&e.data.selectIsEnabled&&e.data.selectIsRequired&&(e.data.isV2?e.data.value.every((e=>!e.country))&&(r=Object(s.t)("PC.ValidateCountryAndProvinceNoEmpty")):e.data.country&&(e.data.noProvince||e.data.province)||(r=Object(s.t)("PC.ValidateCountryAndProvinceNoEmpty"))),!e.data.validationError&&e.data.detailIsEnabled&&e.data.detailIsRequired&&(e.data.detail||(r+="".concat(O).concat(Object(s.t)("PC.ValidateLocationDetailNoEmpty")))),a||(e.data.validationError=r,e.data.validationToastError=r),!r)})),reset:Object(n.k)((function*(e,t,a){e.data=t,yield f(e,a)}))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var r={sequence:{type:Number,value:0}}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return $})),a.d(t,"b",(function(){return ne})),a.d(t,"c",(function(){return oe})),a.d(t,"e",(function(){return se}));var r=a(37),i=a(9),n=a(6),o=a(5),s=a(28),c=a(10),l=a(12),d=a(2),u=a(39),p=a(72),m=a(204);var h,b=Object(p.e)((function(e){var t=u.h.gadgetVersion,a={log:!1,_staging_flag:0,tenant_id:e.encryptedTenantId,approval_mp_version:t,version_num:Object(m.c)(t),gadget_mode:"pc",sys_platform:"pc",SDKVersion:u.h.SDKVersion||"",app_version:u.h.version,approval_main_version:"2.0",process_env:JSON.stringify(s.k)};"1"!==e.tenantId||s.s||(a.channel_domain="https://internal-api-sg.larksuite.com/collect/event/app/v1"),Object(l.a)(a)})),g=a(187),v=a(1478),j=a(1487),O=a(1455),f=a(1456),M=a(1484),_=a(1488),y=a(1457),D=a(1485),N=a(17),A={crc:"https://internal-api-approval.crc.feishu.cn",mi:"https://internal-api-approval.mi.feishu.cn",kami:"https://internal-api-approval.f.mioffice.cn",kap:"https://internal-api-approval.fs.fei-shu.cn",ka31:"https://internal-api-approval.work.sany.com.cn",kastaging:"https://internal-api-approval.ka.statusfeishu.cn",kacrc:"https://internal-api-approval.rwork.crc.com.cn"},T=a(25),I=a(20),C=a(54),x=a(50),S=new Set([99991641,99991642,99991643]),w=a(44),L=a(93),E=a(194),k=a(250);!function(e){e[e.Frontend=1]="Frontend",e[e.Backend=3]="Backend",e[e.Timeout=4]="Timeout",e[e.Unknown=5]="Unknown"}(h||(h={}));var z=Object(I.c)("shared:src/services/api/middlewares/feedback.ts"),R=e=>{k.a.error(Object(d.t)(e))},P={10103:"InstanceDeletedHint",10112:"Resubmit.DefinitionInvisible",10115:"Popup.DuplicatedApproverHint",10116:"HasBeenProcessedHint",10117:"HasBeenProcessedHint",10118:"HasBeenProcessedHint",10121:"AddTask.DupApproverInCurrentNode",10122:"NoExternalStaff",10133:"WorkGroup.WorkConflict",10135:"Cancel_AlreadyAgreed",10136:"Cancel_isCanceling",10141:"ApprovalForm_UniqueIdConflict",10142:"NoExternalChat",10145:"Error.TransferDocument",10162:"approval-mp_NoDocsAccessApplyFirst_Toast",10023:"Error.SearchUserNotExist",10125:"Error.WidgetEmptyValue",10003:"Error.ApprovalNotExist",10004:"Error.ApprovalNoPermission",10030:"Error.ApprovalNotActive",10007:"Error.GetLarkUserByIdsNotExist",10008:"Error.GetLarkUserByIds",10010:"Error.GetLarkDepartmentInfoByIds",16001:"Error.InvalidUrl",16002:"Error.OuterDataSourceTimeOut",16003:"Error.ResponseFormat",16005:"Error.Decode",16006:"Error.UserRpc",16007:"Error.OuterDataIllegalForm",16008:"Error.InvalidWidgetType",16009:"Error.OuterDataResponse",16010:"Error.WidgetNotFount",16011:"Error.InvalidUrlOrToken"};class U{constructor(e){Object(n.a)(this,"customHandler",{}),Object(n.a)(this,"run",(e=>{var t,a;if(this.customHandler[e])return null===(t=(a=this.customHandler)[e])||void 0===t||t.call(a),!0;var r=P[e];return!!r&&(R(r),!0)})),this.customHandler=e}}var B=[],F=(e=>()=>{var t=new U(e);return{error(e,a){var{config:r,originResponse:i}=a,{statusCode:n,header:l}=i||{};if(403===n&&Boolean(l["x-delete-key-redirect"]))return z("commonReqError",{message:"delete key redirect"}),void(s.h?tt.redirectTo({url:"/pages/error/index"}):tt.redirectTo({url:"/pc-pages/error/index"}));var d=Object(o.a)(Object(o.a)({},e),{},{source:"feedback",path:null==r?void 0:r.path});c.a.error("errorMiddleware",d);var{code:u,type:p,message:m}=e||{};if(!B.includes(Number(u))&&!r.disableFeedback&&r.showError)if(p!==h.Timeout){if("function"!=typeof r.errHandler||!r.errHandler(u,m)){var b=(null==r?void 0:r.errorHandlers)||{};if("function"!=typeof b[u]){if(!t.run(u)&&10022!==Number(u)){var g;if(c.a.error("feedbackUnknownError",d),z("commonReqUnknownError",d),/in\s*background/.test((null===(g=e.data)||void 0===g?void 0:g.errMsg)||""))return;R("api.commonRequestFailed")}}else b[u](e)}}else R("api.commonRequestFailed")}}})({10112:()=>{tt.showModal({title:Object(d.t)("DefaultModalTitle"),content:Object(d.t)("Resubmit.DefinitionInvisible"),confirmText:Object(d.t)("NoAuthConfirm"),showCancel:!1,complete(){getCurrentPages().length>1?tt.navigateBack({delta:1}):setTimeout((()=>{tt.reLaunch({url:"/pc-pages/index/index"})}),500)}})}}),Y=F,Q=a(389),G=a(391),W=Object(G.a)(),V={originHost:W||"",host:W||"",timeout:3e4,login:!0,method:"POST",silent:!0,basePath:"/approval/web",useErrorToast:!1,api:((e,t)=>{var a=Object(o.a)({},e);return Object.entries(t).forEach((e=>{var[t,r]=e;a.hasOwnProperty(t)?a[t]=Object(o.a)(Object(o.a)({},a[t]),r):a[t]=r})),a})(Q.a,{login:{path:"/login",login:!1,returnOriginRes:!0},useruserInfo:{login:!1},userconfig:{nonStandardRes:!0},getChat:{reportParams:!0},instancegetFormHistory:{showError:!0,timeout:12e4},instanceleaveBalanceConflict:{showError:!0},v2CountTask:{reportParams:!0,showError:!0},v2Search:{showError:!0},batchOperate:{showError:!0},v2ApplyTaskAction:{showError:!0},instancedetail:{reportParams:!0,silent:!0,timeout:3e4},instanceoperate:{reportParams:!0,showError:!0},externalmessageoperate:{showError:!0},instancerevert:{showError:!0,timeout:12e4},ccreal:{showError:!0},addComment:{showError:!0},deleteComment:{showError:!0},chatchatEnter:{showError:!0},instanceshare:{reportParams:!0},usersearchUserDepartments:{showError:!0},userqueryUsersByDepartmentId:{showError:!0},listCreatorDefinition:{showError:!0},instancecreatePrepare:{reportParams:!0,showError:!0,timeout:12e4},instancecreate:{reportParams:!0,showError:!0,timeout:12e4},instanceinstanceProcess:{silent:!0,reportParams:!0,showError:!0},instancecreatePreview:{reportParams:!0,timeout:12e4},v2Grouping:{reportParams:!0,timeout:2e4},v2SubmitAsyncOperationPath:{timeout:3e4},v2CalculateAsyncOperationTask:{timeout:3e4}})},H=a(517),Z=["code","msg"],q=Object(G.a)(),K=Object(G.b)(),J=Object(I.c)("pc:src/utils/app.ts"),X=(e,t)=>{T.d.setCurrentUser({userId:String(e.userId),name:e.name,avatarUrl:e.avatarUrl,tenantId:String(e.tenantId),encryptedUserId:e.encryptedUserId,encryptedTenantId:e.encryptedTenantId,isTenantManager:e.isTenantManager,isProcessManager:e.isProcessManager,isAdminManager:e.isAdminManager,isSubAdmin:e.isSubAdmin,ugcApprovalId:e.ugcApprovalId,ugcSwitch:e.ugcSwitch,hasExternalApproval:e.hasExternalApproval,openID:e.openID}),b(e),!t&&x.a.set("user_info",e)},$=function(e){var t,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={enable_external_iframe:!0};T.d.setUserConfig(Object(o.a)(Object(o.a)({},e),s.m?r:{})),a&&x.a.set("user_config",e),Object(l.b)(N.f.ApprovalUserConfig,Object(o.a)({},e));var{[C.FG_VERSION_KEY]:i}=null!==(t=null==e?void 0:e.config)&&void 0!==t?t:{};Object(L.d)(i)},ee=(e,t)=>{var a="kacrc"===t||e&&"ka9lark"===e.sys_unit;T.d.setData("isRunwork",Boolean(a))};class te extends g.a{constructor(){super(...arguments),Object(n.a)(this,"afterGrouping",void 0),Object(n.a)(this,"beforeGrouping",void 0)}setBeforeGrouping(e){this.beforeGrouping=e}setAfterGrouping(e){this.afterGrouping=e}apply(){var e=this,t=this.innerApp,a=0;t.addMethod("setBeforeGrouping",this.setBeforeGrouping.bind(this)),t.addMethod("setAfterGrouping",this.setAfterGrouping.bind(this)),t.configHookMethod("getCacheEnvVariable",(()=>()=>x.a.getSync("mobile_env_config"))),t.configHookMethod("setCacheEnvVariable",(()=>e=>x.a.set("mobile_env_config",e))),t.configHookMethod("resolveHost",(e=>{e.hooks.resolveHost.tab("approval",((e,a)=>{if(c.a.info("host_url",q,"approval_language",Object(d.getCurApiLang)()),!s.p)return ee(e,a),q;var r="";if((e=>!!e&&!e.root_domain)(e)){var i=e.root_domain;r="string"==typeof i?i:""}else a&&(r=A[a]||"");return ee(t.envVariable,a),Object(E.j)(r),x.a.set("host_url",r||q),x.a.set("approval_language",Object(d.getCurApiLang)()),r}))})),t.configHookMethod("retryLogin",(e=>{e.hooks.isSessionError.tab("approval",(e=>!!S.has(e)&&(J("sessionError",{code:e,errorMsg:"session 错误,准备重试"}),t.configLogin({alwaysRequestLogin:!0}),!0)))})),t.configHookMethod("init",(t=>{t.hooks.beforeLogin.tab("approval",Object(i.a)((function*(){a=Date.now()}))),t.hooks.failLogin.tab("approval",Object(i.a)((function*(){T.d.setData("loginStatus",T.c.Failed),J("loginError",{duration:Date.now()-a})}))),t.hooks.afterLogin.tab("approval",Object(i.a)((function*(){var t;J("loginSuccess",{duration:Date.now()-a}),T.d.setData("loginStatus",T.c.Done),null===(t=e.beforeGrouping)||void 0===t||t.call(e),J("sendFirstRequest",{timestamp:Date.now()}),setTimeout((()=>{T.d.closeBlank()}),1500),ne.v2Grouping({Requests:C.UserGroupingRequst},{usePrefetchCache:!0,fetchCacheKey:Q.b.CommonInfoGroup}).then((t=>{var a,r,{data:{Responses:[{UserInfoApi:i},{UserConfigApi:n},{UserDepartmentInfoApi:o},{ListScene:s},{ListCreatorDefinition:c},{IsLeaderEfficiency:l},{CountTask:d},{MGetTenantManager:u}]}}=t;T.d.setAppManagers(((null==u||null===(a=u.Managers)||void 0===a?void 0:a[1])||[]).filter((e=>{var{Name:t,OpenID:a}=e;return t&&a}))),T.d.setIsLeader(null==l?void 0:l.isLeader),i&&X(i);var p={};if(null!=n&&n.jsonString){var{jsonString:m}=n;p=JSON.parse(m),$(p)}T.d.setDepartmentInfo(o),null===(r=e.afterGrouping)||void 0===r||r.call(e,{createApproval:{sceneList:null!=s?s:{},newDefinitionData:null!=c?c:{}}}),T.d.handleCountTask(d)})).catch((e=>{T.d.closeBlank(),Object(l.b)(N.f.ApprovalError,{message:Object(w.a)(e)}),c.a.error("api.v2Grouping error:",e)}));var r=x.a.getSync("user_info");if(null==r||!r.userId)return ne.useruserInfo().then((e=>{X(e.data);var{isSubAdmin:t,isTenantManager:a,isProcessManager:r,isAdminManager:i}=(null==e?void 0:e.data)||{};J("loginGetUserInfoSuccess",{isSubAdmin:t,isTenantManager:a,isProcessManager:r,isAdminManager:i})}));X(r,!0);var{isSubAdmin:i,isTenantManager:n,isProcessManager:o,isAdminManager:s}=r;J("loginGetUserInfoSuccess",{isSubAdmin:i,isTenantManager:n,isProcessManager:o,isAdminManager:s})})))}))}}var ae=[E.g,E.i,E.k,E.a,E.l,E.e,Y,H.b],{version:re}=u.h;Object(m.b)(re,"5.10.0")&&ae.splice(1,0,E.c);var ie=v.a.applyMiddlewares([new j.a,new O.a,new f.a({useKaChannel:!1}),new M.a({useTripartiteLogin:!1,alwaysRequestLogin:s.q}),new _.a({useLogin:!0}),new y.a({config:V},{transform:(e,t)=>{var{originResponse:a={header:{}}}=t,i=a.header["x-timestamp"]||0;if(t.config.returnOriginRes)return{code:e.code,message:e.msg||e.message,data:Object(o.a)(Object(o.a)({},t.originResponse),{},{$responseTimestamp:i})};if(t.config.nonStandardRes){var{code:n,msg:s}=e,c=Object(r.a)(e,Z);return{code:e.code,message:e.msg||e.message,data:Object(o.a)(Object(o.a)({},c),{},{$responseTimestamp:i})}}var l=e.data||{};return{code:e.code,message:e.msg||e.message,data:Object(o.a)(Object(o.a)({},l),{},{$responseTimestamp:i})}},retry:{times:3}},{beforeRequest:ae,afterRequest:[]}),new D.a,new te]);c.a.info("dynamicLoginHost",K),ie.configEnvs({isProd:s.r,appId:s.e,loginHost:K,suiteAppId:s.w,host:q,isVa:s.u});var ne=ie.getApi();function oe(e){var{beforeGrouping:t,afterGrouping:a}=e;ie.setAfterGrouping(a),ie.setBeforeGrouping(t)}var se=function(){var e=Object(i.a)((function*(){yield ie.init()}));return function(){return e.apply(this,arguments)}}();t.d=ie},function(e,t,a){"use strict";var r=a(5),i=a(37),n=a(3),o=a.n(n),s=a(1),c=a(24),l=a(10),d=e=>{var t=null,a=0;return function(){if(++a>=3){t&&(clearTimeout(t),t=null),a=0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.call(this,...i)}t||setTimeout((()=>{a=0,t=null}),800)}},u=a(702),p=a(206),m=a(15),h=a(222),b=a(403),g=a(522),v=a(84),j=(a(1342),a(0));function O(e){var t;return t=Object(g.a)(e)?function(e){return[{name:"div",attrs:{class:"logger-block object-rich"},children:[{name:"p",attrs:{class:"logger-block brackets object-brackets"},children:[{type:"text",text:"{"}]},{name:"span",attrs:{class:"logger-block key-value-wrapper"},children:Object.keys(e).map((t=>({name:"p",attrs:{class:"logger-block key-value-rich"},children:[{name:"span",attrs:{class:"logger-text key-rich"},children:[{type:"text",text:"".concat(t,": ")}]},{name:"span",attrs:{class:"logger-text value-rich"},children:O(JSON.stringify(e[t],null,2))}]})))},{name:"p",attrs:{class:"logger-block brackets object-brackets"},children:[{type:"text",text:"}"}]}]}]}(e):Object(v.a)(e)?function(e){return e.map((e=>({name:"div",attrs:{class:"logger-block array-rich"},children:O(e)})))}(e):function(e){return[{name:"span",attrs:{class:"logger-text simple-rich"},children:[{type:"text",text:String(e).slice(0,100)}]}]}(e),t}var f=["","info","warn","error"],M=e=>{var{msg:t,type:a}=e,r=(e=>{var t=[e.meta];return e.inputItems.length>0&&(t=t.concat(e.inputItems)),[{name:"div",attrs:{class:"rich-logger rich-".concat(e.type)},children:O(t)}]})(t);return 0!==a&&f[a]!==t.type?null:Object(j.jsxs)(s.r,{className:"__logger-broad-wrapper",children:[Object(j.jsxs)(s.r,{className:"log-time",children:["error"===t.type&&Object(j.jsx)(s.p,{className:"copy-btn",onClick:()=>function(e){console.log(e),Object(b.b)({data:JSON.stringify(e)}).then((()=>{Object(b.c)({title:"复制成功",icon:"success",duration:1500})})).catch((e=>{Object(b.c)({title:"复制失败: ".concat(JSON.stringify(e)),icon:"none",duration:1500})}))}(t),children:"复制"}),Object(j.jsx)(s.p,{className:"time",children:t.time})]}),Object(j.jsx)(s.m,{nodes:r,space:"ensp"})]})},_=a(227),y=a.n(_),D={},N={height:20},A=Object(m.a)((()=>{var{globalStore:{enableCustomDevtools:e}}=Object(n.useContext)(c.a),t=e,[a,r]=Object(n.useState)(0),[i,o]=Object(n.useState)(!0);return h.a.visible&&t?Object(j.jsxs)(s.r,{className:y.a["logger-broad"],style:i?N:D,onClick:e=>{e.stopPropagation()},children:[Object(j.jsx)(s.r,{className:y.a.dragger,onClick:()=>o(!i),children:"收起/展开"}),Object(j.jsxs)(s.r,{className:y.a.tab,children:[Object(j.jsxs)(s.r,{className:"".concat(y.a["tab-item"]," ").concat(y.a[0===a?"active":"normal"]),onClick:()=>r(0),children:["all(",h.a.logList.length,")"]}),Object(j.jsxs)(s.r,{className:"".concat(y.a["tab-item"]," ").concat(y.a[1===a?"active":"normal"]),onClick:()=>r(1),children:["info(",h.a.infoNum,")"]}),Object(j.jsxs)(s.r,{className:"".concat(y.a["tab-item"]," ").concat(y.a[2===a?"active":"normal"]),onClick:()=>r(2),children:["warn(",h.a.warnNum,")"]}),Object(j.jsxs)(s.r,{className:"".concat(y.a["tab-item"]," ").concat(y.a[3===a?"active":"normal"]),onClick:()=>r(3),children:["error(",h.a.errorNum,")"]})]}),Object(j.jsx)(s.r,{className:y.a["log-count"],children:Object(j.jsxs)(s.r,{children:["累计日志数:",h.a.logList.length]})}),Object(j.jsx)(s.n,{"scroll-y":!0,className:"".concat(y.a["scroll-view"]),children:Object(j.jsx)(s.r,{children:h.a.logList.reverse().map((e=>Object(j.jsx)(M,{msg:e,type:a},e.id)))})})]}):null})),T=a(277),I=a.n(T),C=a(19),x=a.n(C),S=a(8),w=a.n(S),L=a(12),E=a(2),k=a(18),z=a(36),R=a(114),P=a(50),U=a(40),B=a(692),F=a(234),Y=a(954),Q=a.n(Y),G=a(955),W=a.n(G),V=a(956),H=a.n(V),Z=a(957),q=a.n(Z),K=a(641),J=a.n(K),X=a(958),$=a.n(X),ee=a(20),te=a(112),ae=a.n(te),re=a(25),ie=a(17),ne=a(92),oe=a(99),se=["className","onClick"],ce=["className","onClick"],le=["className","onClick"],de=["className","onClick"],ue=["className","onClick"],pe=["className","onClick"],me={[E.SimpleLangEnum.zh]:800,[E.SimpleLangEnum.en]:965,[E.SimpleLangEnum.ja]:910},he=e=>{e.stopPropagation(),getCurrentPages().length>1?x.a.navigateBack():x.a.reLaunch({url:k.r.Index})},be=(e,t)=>{t.stopPropagation(),Object(ee.h)();var a=Object(F.a)();Object(z.m)(a,!0);var{isTenantManager:r,isProcessManager:i,isAdminManager:n,isSubAdmin:o,encryptedUserId:s}=e;Object(L.b)("pc_mp_right_top_go_admin",{user_id:s,is_tenant_manager:Number(r),is_process_manager:Number(i),is_admin_manager:Number(n),is_sub_admin:Number(o)}),Object(L.b)("mp_pc_click_to_admin",{type:"admin_button"})},ge=e=>{e.stopPropagation(),Object(ee.h)(),x.a.navigateTo({url:"/pc-pages/setting/index"}),P.a.set(R.g,"setting")},ve=e=>{var{globalStore:{isManager:t,currentUser:a}}=Object(n.useContext)(c.a),{className:l,onClick:d}=e,u=Object(i.a)(e,se),[p,m]=Object(n.useState)(!0),h=Object(n.useMemo)((()=>me[E.curLang]),[]),b=Object(n.useCallback)((()=>{setTimeout((()=>{(e=>{var t=!1;return()=>{if(!t){t=!0;var a=x.a.createSelectorQuery();a.select("#navigation-bar").fields({size:!0}),a.exec((a=>{if(null!=a&&a.length){var[r]=a,{width:i=0}=null!=r?r:{};t=!1,e(i)}}))}}})((e=>{e>0&&m(e>h)}))()}),0)}),[]);return Object(n.useEffect)((()=>(b(),tt.onWindowResize(b),()=>{tt.offWindowResize(b)})),[b]),t?Object(j.jsxs)(o.a.Fragment,{children:[Object(j.jsx)(U.c,{text:Object(E.t)("PC.NewApprovalAdmin"),delay:200,position:U.b.Bottom,arrow:!0,className:ae.a.button_gap,disabled:p,children:Object(j.jsxs)(s.r,Object(r.a)(Object(r.a)({className:w()(ae.a.action),onClick:null!=d?d:be.bind(null,a)},u),{},{children:[Object(j.jsx)(s.g,{src:H.a,className:w()(ae.a.icon,ae.a.admin)}),p&&Object(j.jsx)(s.r,{className:ae.a.label,children:Object(E.t)("PC.NewApprovalAdmin")})]}))}),Object(j.jsx)(s.r,{className:ae.a.divider})]}):null},je=e=>{var{globalStore:{currentUser:t,getManagerTypeFromUserInfo:a}}=Object(n.useContext)(c.a),{className:l,onClick:d}=e,u=Object(i.a)(e,ce),p=Object(n.useMemo)((()=>"editbtn".concat((new Date).getTime()).concat(Math.ceil(1e4*Math.random()))),[]),[m,h]=Object(n.useState)(0),b=a(t)!==re.a.GeneralUser;return Object(n.useEffect)((()=>{b&&x.a.nextTick((()=>{x.a.createSelectorQuery().select("#".concat(p)).boundingClientRect((e=>{var{windowWidth:t}=tt.getSystemInfoSync();h(2*(t-e.right+e.width/2-4))})).exec()}))}),[]),b?Object(j.jsxs)(o.a.Fragment,{children:[Object(j.jsx)(U.c,{arrow:!0,position:U.b.Bottom,text:Object(E.t)("guide.tooltip.editApproval"),textStyle:{maxWidth:"".concat(m,"px")},wordWrap:!0,className:ae.a.button_gap,children:Object(j.jsx)(s.r,Object(r.a)(Object(r.a)({className:w()(ae.a.action),onClick:e=>{Object(L.b)(ie.f.mpGuideGoEditApprovalPvUv,{platform:ne.a.PC,manager_type:a(t)}),d&&d(e)},id:p},u),{},{children:Object(j.jsxs)(s.r,{className:ae.a.edit_btn,children:[Object(j.jsx)(s.g,{src:q.a,className:w()(ae.a.icon,ae.a.edit)}),Object(j.jsx)(s.r,{className:ae.a.label,children:Object(E.t)("Edit")})]})}))}),Object(j.jsx)(s.r,{className:ae.a.divider})]}):null},Oe=e=>{var{className:t,onClick:a}=e,n=Object(i.a)(e,le),o=Object(B.a)({onRefresh:a&&(()=>a({}))});return Object(j.jsx)(U.c,{text:Object(E.t)("PC.NavigationBar.Refresh"),delay:200,position:U.b.Bottom,arrow:!0,className:ae.a.button_gap,children:Object(j.jsx)(s.r,Object(r.a)(Object(r.a)({className:w()(ae.a.action),onClick:o},n),{},{children:Object(j.jsx)(s.g,{src:J.a,className:w()(ae.a.icon,ae.a.refresh)})}))})},fe=e=>{var{className:t,onClick:a}=e,n=Object(i.a)(e,de);return Object(j.jsx)(U.c,{text:Object(E.t)("PC.NavigationBar.Setting"),delay:200,position:U.b.Bottom,arrow:!0,className:ae.a.button_gap,children:Object(j.jsx)(s.r,Object(r.a)(Object(r.a)({className:w()(ae.a.action),onClick:null!=a?a:ge},n),{},{children:Object(j.jsx)(s.g,{src:$.a,className:w()(ae.a.icon,ae.a.setting)})}))})},Me=e=>{var{className:t,onClick:a}=e,n=Object(i.a)(e,ue);return Object(j.jsx)(s.r,Object(r.a)(Object(r.a)({className:w()(ae.a.action),onClick:null!=a?a:he},n),{},{children:Object(j.jsx)(s.g,{src:Q.a,className:w()(ae.a.icon,ae.a.back)})}))},_e=()=>Object(j.jsx)(s.r,{className:w()(ae.a.share),children:Object(j.jsx)(U.a,{delay:0,text:Object(E.t)("approval-mp_Share_Tooltip"),textCenter:!1,maxWidth:!0,arrow:!0,textWrap:!0,onMouseEnter:e=>{e.stopPropagation()},onMouseLeave:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation()},position:U.b.Bottom,children:Object(j.jsx)(oe.a,{openType:"share",type:"icon",color:"default",icon:"icon_share_outlined"})})}),ye=e=>{var{className:t,onClick:a}=e,n=Object(i.a)(e,pe);return Object(j.jsx)(s.r,Object(r.a)(Object(r.a)({className:w()(ae.a.action),onClick:null!=a?a:he},n),{},{children:Object(j.jsx)(s.g,{src:W.a,className:w()(ae.a.icon,ae.a.home)})}))},De=["renderLeft","renderRight","left","right","title","children","shouldDelay","presets","customStyle"];t.a=e=>{var{renderLeft:t,renderRight:a,left:o,right:m,title:b,children:g,shouldDelay:v=!0,presets:O,customStyle:f}=e,M=Object(i.a)(e,De),_=e=>"object"==typeof e?e:{},y=Object(n.useMemo)((()=>Object(r.a)(Object(r.a)({},M),_(O))),[O,M]),{globalStore:{inMainTab:D,inWindow:N}}=Object(n.useContext)(c.a),T=Object(n.useMemo)((()=>({minHeight:"".concat(D?68:N?52:36,"px"),paddingTop:"".concat(N?16:0,"px"),paddingLeft:"12px",paddingRight:"".concat(D?94:134,"px"),cursor:"default"})),[D,N]),[C,x]=Object(n.useState)(T);Object(n.useEffect)((()=>{var e=e=>{var{windowWidth:t,navigationBarSafeArea:a}=e;if(a){var{top:i,bottom:n,width:o}=a,s="".concat(n,"px"),c="".concat(i,"px"),l="".concat(t-o,"px");s===T.minHeight&&c===T.paddingTop&&l===T.paddingRight||x(Object(r.a)(Object(r.a)({},T),{},{minHeight:s,paddingTop:c,paddingRight:l}))}},t=()=>{l.a.error("[src/components/navigation-bar/index.tsx] 获取系统信息失败")};v?setTimeout((()=>{tt.getSystemInfo({success:e,fail:t})}),200):tt.getSystemInfo({success:e,fail:t})}),[T,v]);var S=Object(n.useRef)(null),w=d((e=>{var t;e.stopPropagation(),null===(t=S.current)||void 0===t||t.toggle(),p.a.toggleEnable(),h.a.toggle()}));return Object(j.jsxs)(s.r,{style:C,className:I.a.navigation,onClick:w,id:"navigation-bar",children:[Object(j.jsxs)(s.r,{className:I.a.leftSide,style:f,children:[(null==y?void 0:y.back)&&Object(j.jsx)(Me,Object(r.a)({className:I.a.action},_(y.back))),(null==y?void 0:y.home)&&Object(j.jsx)(ye,Object(r.a)({className:I.a.action},_(y.home))),null!=o?o:null==t?void 0:t()]}),Object(j.jsx)(s.r,{className:I.a.title,children:null!=b?b:g}),Object(j.jsxs)(s.r,{className:I.a.rightSide,children:[null!=m?m:null==a?void 0:a(),(null==y?void 0:y.admin)&&Object(j.jsx)(ve,Object(r.a)({className:I.a.action},_(y.admin))),(null==y?void 0:y.edit)&&Object(j.jsx)(je,Object(r.a)({className:I.a.action},_(y.edit))),(null==y?void 0:y.share)&&Object(j.jsx)(_e,{}),(null==y?void 0:y.refresh)&&Object(j.jsx)(Oe,Object(r.a)({className:I.a.action},_(y.refresh))),(null==y?void 0:y.setting)&&Object(j.jsx)(fe,Object(r.a)({className:I.a.action},_(y.setting)))]}),Object(j.jsx)(u.a,{ref:S}),Object(j.jsx)(A,{})]})}},,function(e,t,a){"use strict";a.d(t,"e",(function(){return g})),a.d(t,"d",(function(){return v})),a.d(t,"c",(function(){return j})),a.d(t,"b",(function(){return _})),a.d(t,"a",(function(){return N}));var r,i,n,o,s,c=a(5),l=a(20),d=a(196),u=a(39),p=a(67),m=a(579),h=!1,b={};function g(e){i="appLaunch"===e.openType?1:0,function(e){o=e.path,"switchTab"===e.openType&&b[e.path]||"navigateBack"===e.openType?s=o:(n="appLaunch"===e.openType?p.f:(new Date).getTime(),"switchTab"===e.openType&&(b[e.path]=!0))}(e)}function v(e){r&&!r[e]&&(r[e]=(new Date).getTime()-r.startTime)}function j(e){if(e.listCard){var{listCard:t}=e;r={startTime:(new Date).getTime(),SourceName:Object(m.a)(t.Attributes),System:t.System||"",DisplayMethod:t.DisplayMethod}}else"package-detail-at/detail-at/index"===e.path&&(h=!0,r={startTime:(new Date).getTime(),SourceName:"",System:""})}function O(e,t){"native"===e?Object(l.b)(t):"taro"===e&&Object(d.d)().nextTick((()=>{Object(l.b)(t)}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a=e;if(Array.isArray(e)&&(a=e.join(",")),a.includes("detail")||a.includes("hosting")||a.includes("third-form")){var i=t.type||"taro",n=Object(u.a)();v("beforeTTI"),O(i,(function(){r&&("appCenter"===n?Object(l.d)("performanceFormLoadTTi",Object(c.a)({tti:(new Date).getTime()-r.startTime,tags:a,platform:n},r)):h&&(Object(l.d)("performanceFormLoadTTi",Object(c.a)({tti:(new Date).getTime()-r.startTime,tags:a,platform:n},r)),h=!1))}))}}function M(e){var t=e.type||"taro";o!==s&&(O(t,(function(){Object(l.d)("performancePageLoadTTi",{tti:(new Date).getTime()-n,url:o,isFirstTime:i,platform:Object(u.a)()})})),s=o)}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;f(e,t),M(t)}var y=0,D="approval_form_num";function N(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";Object(l.d)("performanceSingleApprovalNum",{type:e,system:t||"detail",sence:a||"appCenter",platform:Object(u.a)()}),y++,tt.setStorage({key:D,data:y})}setTimeout((()=>{tt.getStorage({key:D,success(e){(null==e?void 0:e.data)>0&&(Object(l.d)("performanceApprovalFormNum",{num:e.data,platform:Object(u.a)()}),tt.removeStorage({key:D}))}})}),3e3)},function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return p}));var r,i=a(6),n=a(3),o=a(8),s=a.n(o),c=a(1),l=a(616),d=a.n(l),u=(a(1268),a(0));!function(e){e.circle="circle",e.radio="radio",e.square="square"}(r||(r={}));class p extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"onCheckboxClick",(()=>{var{onChange:e,checked:t}=this.props;e(!t)}))}render(){var{disabled:e,checked:t,type:a="circle",iconUrl:i,circleStyle:n,size:o="normal",className:l}=this.props,p="approval-custom-checkbox",m=s()(p,{["".concat(p,"-disabled")]:e,["".concat(p,"-checked")]:t,["".concat(p,"-").concat(r.circle)]:a===r.circle,["".concat(p,"-").concat(r.radio)]:a===r.radio,["".concat(p,"-").concat(r.square)]:a===r.square,["".concat(p,"-small")]:"small"===o},l),h=a===r.circle||r.square;return Object(u.jsx)(c.r,{onClick:this.onCheckboxClick,className:m,style:t?{}:n,children:t&&h&&a!==r.radio&&Object(u.jsx)(c.g,{mode:"aspectFill",className:"approval-custom-checkbox-icon",src:i||d.a})})}}},function(e,t,a){"use strict";var r=a(9),i=a(12),n={clickProcessName:e=>Object(r.a)((function*(){Object(i.b)("click_process_name",{process_name:e})}))(),batchConnectAdmin:()=>Object(r.a)((function*(){Object(i.b)("batch_connect_admin")}))(),batchConnectAdminInlist:()=>Object(r.a)((function*(){Object(i.b)("batch_connect_admin_inlist")}))(),batchApproveAll:e=>Object(r.a)((function*(){Object(i.b)("batch_approve_all",{num:e})}))(),batchApproveInDetail:e=>Object(r.a)((function*(){Object(i.b)("batch_approve_in_detail",{process_name:e})}))(),batchDoneRefesh:()=>Object(r.a)((function*(){Object(i.b)("batch_done_refesh")}))(),batchConfirm:e=>Object(r.a)((function*(){Object(i.b)("batch_confirm",{num:e})}))()};t.a=n},function(e,t,a){"use strict";a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return d}));var r=a(5),i=a(18),n=a(33),o=a(2),s=a(280),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r.a)({id:Object(s.a)(),country:void 0,province:void 0,city:void 0,area:void 0,noProvince:!1,noCity:!1,noArea:!1,countryGroups:Array.from(i.s).map((e=>({letter:e,list:[]}))),provinceGroups:Array.from(i.s).map((e=>({letter:e,list:[]}))),cityGroups:Array.from(i.s).map((e=>({letter:e,list:[]}))),areaGroups:Array.from(i.s).map((e=>({letter:e,list:[]})))},e)};function l(e){return e.filter((e=>e.country)).map((e=>[e.country,e.province,e.city,e.area].filter(n.q).map((e=>({geoNameId:null==e?void 0:e.id,level:null==e?void 0:e.type,name:null==e?void 0:e.name})))))}function d(e){return e.map((e=>e.map((e=>{var{name:t}=e;return t})).join("/"))).join(o.curLang===o.SimpleLangEnum.en?",":"、")}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return u}));var r=a(20),i=Object(r.c)("shared:src/services/trace/page-status.ts"),n={page:"",status:"success"},o=!1,s=!1,c={Path:"pages/approval-list/index",Status:"cancel"};function l(){n.page===c.Path&&(n.status=c.Status),i("pageStatus",n)}function d(e){o?(!s&&l(),s=!1):o=!0,n=function(e){return{page:e,status:"cancel"}}(e)}function u(e,t){n.page===c.Path&&(c.Status=e),n.status=e,t&&(n.errorMsg=t),s||(l(),s=!0)}},function(e,t,a){"use strict";var r,i,n,o,s,c,l,d,u,p,m,h,b,g=a(5),v=a(11),j=a(6),O=a(7),f=(a(56),a(4)),M=a(316),_=a(28),y=a(39);function D(e){return"color: ".concat(e,";background: white;padding: 2px 10px 0px;border-radius: 8px")}var N=D("blue"),A=D("brown"),T=D("red"),I="color: yellowgreen;",C={info:"infoNum",warn:"warnNum",error:"errorNum"},x=(r=class{constructor(){var e=this;Object(j.a)(this,"maxLogListLength",256),Object(j.a)(this,"nextLogId",0),Object(j.a)(this,"enableLogBackdoor",!1),Object(j.a)(this,"setEnableLogBackdoor",(e=>{this.enableLogBackdoor=e})),Object(v.a)(this,"visible",i,this),Object(v.a)(this,"toggle",n,this),Object(v.a)(this,"logList",o,this),Object(v.a)(this,"infoNum",s,this),Object(v.a)(this,"warnNum",c,this),Object(v.a)(this,"errorNum",l,this),Object(v.a)(this,"searchAreaShow",d,this),Object(v.a)(this,"searchValue",u,this),Object(v.a)(this,"setSearchAreaShow",p,this),Object(v.a)(this,"clear",m,this),Object(v.a)(this,"handler",h,this),Object(v.a)(this,"addLog",b,this),Object(j.a)(this,"addInfoLog",(function(t){for(var a=!_.r||y.c||Object(M.a)(),r=y.c||y.e,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];a&&(r?console.log("%cINF%c ".concat(t),N,I,...n):console.log(t,...n)),e.addLog("info",{desc:"INF",meta:t,inputItems:n})})),Object(j.a)(this,"addWarnLog",(function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];console.warn("%cWRN%c ".concat(t),A,I,...r),e.addLog("warn",{desc:"WRN",meta:t,inputItems:r})})),Object(j.a)(this,"addErrorLog",(function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];console.error("%cERR%c ".concat(t),T,I,...r),e.addLog("error",{desc:"ERR",meta:t,inputItems:r})}))}},i=Object(O.a)(r.prototype,"visible",[f.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n=Object(O.a)(r.prototype,"toggle",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.visible=!this.visible}}}),o=Object(O.a)(r.prototype,"logList",[f.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),s=Object(O.a)(r.prototype,"infoNum",[f.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),c=Object(O.a)(r.prototype,"warnNum",[f.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),l=Object(O.a)(r.prototype,"errorNum",[f.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d=Object(O.a)(r.prototype,"searchAreaShow",[f.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),u=Object(O.a)(r.prototype,"searchValue",[f.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=Object(O.a)(r.prototype,"setSearchAreaShow",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.searchAreaShow=e}}}),m=Object(O.a)(r.prototype,"clear",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.logList=[],this.nextLogId=0,this.infoNum=0,this.warnNum=0,this.errorNum=0}}}),h=Object(O.a)(r.prototype,"handler",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{t&&this[C[t.type]]--,this[C[e]]++}}}),b=Object(O.a)(r.prototype,"addLog",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{if(this.enableLogBackdoor){var a;this.logList.length>=this.maxLogListLength&&(a=this.logList.shift()),this.handler(e,a);var r=new Date;this.logList.push(Object(g.a)(Object(g.a)({id:this.nextLogId++,type:e},t),{},{time:"".concat(r.getHours(),":").concat(r.getMinutes(),":").concat(r.getSeconds())}))}}}}),r);t.a=new x},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var r=e=>{if(e&&e.BaseResp&&"number"==typeof e.BaseResp.StatusCode&&0!==e.BaseResp.StatusCode)throw new Error("Grouping partial failed")}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return s})),a.d(t,"d",(function(){return n})),a.d(t,"e",(function(){return l}));var r,i=a(2);!function(e){e.Process="process_dashboard",e.Person="people_dashboard",e.Team="team_dashboard"}(r||(r={}));var n,o=5e3,s=3e4;!function(e){e.Zero="less_than_5",e.Five="less_than_30",e.Half="more_than_30"}(n||(n={}));var c=[{label:Object(i.t)("ApprovalEfficiency.Process"),value:r.Process},{label:Object(i.t)("ApprovalEfficiency.GroupEfficiency"),value:r.Team},{label:Object(i.t)("ApprovalEfficiency.Personal"),value:r.Person}],l=e=>e?c:c.filter((e=>e.value!==r.Team))},function(e,t,a){"use strict";a.d(t,"a",(function(){return ie})),a.d(t,"d",(function(){return W})),a.d(t,"b",(function(){return se})),a.d(t,"c",(function(){return ce}));var r=a(1),i=a(3),n=a.n(i),o=a(2),s=a(8),c=a.n(s),l=a(949),d=a.n(l),u=a(950),p=a.n(u),m=a(152),h=a.n(m),b=a(691),g=a(24),v=a(33),j=a(12),O=a(5),f=a(37),M=a(9),_=a(6),y=a(19),D=a.n(y),N=a(476);var A=a(157),T=a(10),I=a(374),C=a(0),x=["tabIdx","idPrefix","children"],S=n.a.memo((e=>{var{tabIdx:t,idPrefix:a="",children:i}=e,n=Object(f.a)(e,x);return Object(C.jsx)(r.r,Object(O.a)(Object(O.a)({id:"".concat(a).concat(t)},n),{},{children:i}))})),w=a(384),L=a.n(w),E=a(375),k=a(65),z=a(20),R=["className"],P=["className","scrollY"],U=["className"],B=["className","scrollY"],F=["className"],Y=(()=>{var e=0,t=()=>{e=0};return{next:()=>(e+1===Number.MIN_SAFE_INTEGER&&t(),e++),reset:t}})(),Q=6;class G extends i.Component{constructor(e){super(e),Object(_.a)(this,"tabBarItemPrefix",void 0),Object(_.a)(this,"tabBarScrollOffSet",void 0),Object(_.a)(this,"tabContentBaseCls",void 0),Object(_.a)(this,"tabContentIdPrefix",void 0),Object(_.a)(this,"tabContentTopId",void 0),Object(_.a)(this,"tabContentHeight",void 0),Object(_.a)(this,"passiveScrollTime",void 0),Object(_.a)(this,"getValidScrollOffset",(e=>{if(Number.isNaN(e))return Q;var t=Number.isInteger(e)?e:Math.floor(e);return t>=0&&t<=10?t:Q})),Object(_.a)(this,"handleVTabsChange",(e=>{this.scrollTabMap=this.getScrollTabMap(e,this.tabBarScrollOffSet)})),Object(_.a)(this,"queryContentHeight",(()=>new Promise((e=>{D.a.nextTick((()=>{D.a.createSelectorQuery().select(".".concat(L.a["v-tabs-content__scrollview"])).boundingClientRect((e=>{T.a.info("queryContentHeight",e),this.tabContentHeight=null==e?void 0:e.height})).exec()}))})))),Object(_.a)(this,"contentRecords",{}),Object(_.a)(this,"contentHeightRecords",{}),Object(_.a)(this,"calcContentRecords",(()=>{if(!this.props.contentList.length)return[];var e={},{contentList:t}=this.props;return t.reduce(((t,a)=>{var{index:r}=a,i=this.getGroupHeight(r-1);return e[r]=t+i,t+i}),0),e})),Object(_.a)(this,"handleUpdateContentRecords",(()=>{this.contentRecords=this.calcContentRecords(),this.tabContentHeight||this.queryContentHeight(),T.a.info("contentRecords :>> ",this.contentRecords)})),Object(_.a)(this,"scrollTabMap",void 0),Object(_.a)(this,"getScrollTabMap",((e,t)=>{var{length:a}=e,r={};if(!a)return r;var i=t-1,n=a-1;return e.forEach(((e,o)=>{if(o<t)r[e.index]=0;else{var s=o-i;r[e.index]=s>=a?n:s}})),T.a.info("getScrollTabMap initTabMap :>> ",r),r})),Object(_.a)(this,"handleScrollTab",(e=>{var t;T.a.info("this.scrollTabMap[activeTab] :>> ",this.scrollTabMap[e]),this.setState({currentView:null!==(t=this.scrollTabMap[e])&&void 0!==t?t:0})})),Object(_.a)(this,"getRealTab",(e=>Object(N.a)(e,this.tabBarItemPrefix))),Object(_.a)(this,"handleTabClick",(e=>{var{onTabClick:t}=this.props,a=this.getRealTab(e.currentTarget.id);T.a.info("handleTabClick :>> ",a),null==t||t(a)})),Object(_.a)(this,"preCancelScrollTimeout",null),Object(_.a)(this,"positiveScrollContent",(e=>{var{activeTab:t,withAnimation:a,isFirstShowRef:r}=e;this.passiveScrollTime=Date.now(),T.a.info("positiveScrollContent"),this.setState({activeTab:t,shouldForceScroll:!0,shouldScrollIntoView:!0,contentScrollAnimation:a},(()=>{D.a.nextTick((()=>{this.preCancelScrollTimeout&&clearTimeout(this.preCancelScrollTimeout),this.preCancelScrollTimeout=setTimeout((()=>{this.setState({shouldForceScroll:!1,shouldScrollIntoView:!1},(()=>{r.current?r.current=!1:this.shouldScrollToAllDef(t)}))}),300)}))}))})),Object(_.a)(this,"binarySearchChecker",((e,t)=>e>=t)),Object(_.a)(this,"getActiveContent",(e=>{this.handleUpdateContentRecords();var{contentRecords:t,binarySearchChecker:a}=this,r=Object.values(t),i=Object.keys(t),n=function(e){var{targetValue:t,values:a,checker:r,strictEqual:i}=e,{length:n}=a;if(!n)return 0;for(var o=0,s=n-1;o<s;){var c=o+s+1>>1;r(t,a[c])?o=c:s=c-1}return i&&a[o]!==t?-1:o}({targetValue:e,values:r,checker:a});return Number(i[n])})),Object(_.a)(this,"handleContentScroll",Object(A.a)((e=>{var{detail:{scrollTop:t}}=e;T.a.info("handleContentScroll scrollTop :>> ",t);var a=this.getActiveContent(t);T.a.info("handleContentScroll activeContent :>> ",a);var{activeTab:r}=this.state;if(T.a.info("preActiveTab :>> ",r),a!==r){var{onChange:i}=this.props;this.setState({activeTab:a,contentScrollAnimation:!1}),this.handleScrollTab(a),null==i||i(a)}}),200)),Object(_.a)(this,"onScroll",(e=>{0!==this.props.contentList.length&&(Date.now()-this.passiveScrollTime<600||this.handleContentScroll(e))})),Object(_.a)(this,"handleContentRender",(()=>{var{contentList:e,onContentRender:t}=this.props;return e.length?e.map(((e,a)=>Object(C.jsx)(I.d,{tabIdx:e.index,baseCls:this.tabContentBaseCls,idPrefix:this.tabContentIdPrefix,children:null==t?void 0:t(e,a)},e.ID))):Object(C.jsx)(r.r,{className:L.a["v-tabs-loading"],children:Object(C.jsx)(E.a,{src:h.a,text:Object(o.t)("Loading")})})})),Object(_.a)(this,"handleTabBarRender",(()=>{var{tabs:e,onTabBarRender:t}=this.props;if(!e.length)return null;var{activeTab:a}=this.state;return T.a.info("handleTabBarRender >>> activeTab",a,"tabs[activeTab]",e[a]),e.map(((e,r)=>Object(C.jsx)(S,{tabIdx:e.index,idPrefix:this.tabBarItemPrefix,onClick:this.handleTabClick,children:null==t?void 0:t(e,r,a===e.index)},e.ID)))}));var{tabs:t,tabBarScrollOffset:a=Q}=e;this.tabBarScrollOffSet=this.getValidScrollOffset(a),this.scrollTabMap=this.getScrollTabMap(t,this.tabBarScrollOffSet);var i=Y.next();this.tabBarItemPrefix="".concat("v-tab-bar-item__").concat(i,"__"),this.tabContentBaseCls="".concat(I.f).concat(i),this.tabContentIdPrefix="".concat(I.e).concat(i,"__"),this.tabContentTopId="".concat("v-tab-content__top__").concat(i),this.state={currentView:0,activeTab:0,shouldForceScroll:!1,shouldScrollIntoView:!1,contentScrollAnimation:!1}}componentDidMount(){y.eventCenter.on("afterLoadContent",(e=>{this.positiveScrollContent(e)})),y.eventCenter.on("beforeLoadContent",(e=>{var{activeTab:t,shouldScrollTab:a}=e;this.setState({activeTab:t}),a&&this.handleScrollTab(t)}))}componentDidUpdate(e){var{tabs:t}=e,{tabs:a,shouldQuery:r=!0}=this.props;r&&a!==t&&this.handleVTabsChange(a)}componentWillUnmount(){y.eventCenter.off("beforeLoadContent"),y.eventCenter.off("afterLoadContent")}getGroupHeight(e){var t=this.props.contentList.findIndex((t=>t.index===e));if(t<0)return 0;var{list:a=[],Count:r}=this.props.contentList[t];if(void 0!==this.contentHeightRecords[e]&&a.length===r)return this.contentHeightRecords[e];var i,n=Math.ceil(a.length/3);return i=I.c+I.b*n+I.a*(n-1),a.length===r&&(this.contentHeightRecords[e]=i),i}shouldScrollToAllDef(e){var t=this;return Object(M.a)((function*(){try{var a,r,i=D.a.getSystemInfoSync();(yield Object(k.a)("#".concat(t.tabContentIdPrefix).concat(e))).top>i.windowHeight&&(null===(a=(r=t.props).setActiveIsInvisible)||void 0===a||a.call(r,!0))}catch(e){Object(z.d)("commonOnError",{message:e,location:"pc create approval center:>> shouldScrollToAllDef"})}}))()}render(){var e=this.props,{tabs:t,rootProps:{className:a}={},tabBarProps:{className:i}={},tabBarScrollViewProps:{className:n,scrollY:o=!0}={},tabContentProps:{className:s}={},tabContentScrollViewProps:{className:l,scrollY:d=!0}={},tabBarTop:u,tabBarBottom:p,tabContentTop:m,tabContentBottom:h}=e,b=Object(f.a)(e.rootProps,F),g=Object(f.a)(e.tabBarProps,R),v=Object(f.a)(e.tabBarScrollViewProps,P),j=Object(f.a)(e.tabContentProps,U),M=Object(f.a)(e.tabContentScrollViewProps,B),{shouldForceScroll:_,currentView:y,activeTab:D,shouldScrollIntoView:N,contentScrollAnimation:A}=this.state;return t.length?Object(C.jsxs)(r.r,Object(O.a)(Object(O.a)({},b),{},{className:c()(L.a["v-tabs-root"],a),children:[Object(C.jsx)(r.r,Object(O.a)(Object(O.a)({},g),{},{className:c()(L.a["v-tabs-bar__wrp"],i),children:Object(C.jsxs)(r.n,Object(O.a)(Object(O.a)({scrollWithAnimation:!0,scrollY:_||o,scrollIntoView:"".concat(this.tabBarItemPrefix).concat(y),className:c()(L.a["v-tabs-bar__scrollview"],n)},v),{},{children:[u,this.handleTabBarRender(),p]}))})),Object(C.jsx)(r.r,Object(O.a)(Object(O.a)({className:c()(L.a["v-tabs-content__wrp"],s)},j),{},{children:Object(C.jsxs)(r.n,Object(O.a)(Object(O.a)({scrollWithAnimation:A,scrollY:_||d,className:c()(L.a["v-tabs-content__scrollview"],l),scrollIntoView:N?"".concat(this.tabContentIdPrefix).concat(D):"",upperThreshold:300,lowerThreshold:400,onScroll:this.onScroll},M),{},{children:[Object(C.jsx)(r.r,{id:this.tabContentTopId,children:m}),this.handleContentRender(),Object(C.jsx)(r.r,{children:h})]}))}))]})):null}}var W,V=a(496),H=a(420),Z=a.n(H),q=n.a.memo((e=>{var{title:t,hideTitle:a=!1,cards:n,searchKey:o,resizeId:s,onCardClick:l,shouldBottomShowTip:d}=e,u=Object(i.useCallback)((e=>{l(n[e],t,!1)}),[n,l,t]),p=Object(i.useMemo)((()=>null!=n&&n.length?n.map(((e,t)=>{var{ID:a,IconURL:r,Name:i,Description:n,IsExternal:c}=e;return Object(C.jsx)(V.b,{id:a,index:t,iconUrl:r,approvalName:i,description:n,searchKey:o,resizeId:s,isLeftShowTip:(t+1)%3==0,onClick:u,isExternal:c,shouldBottomShowTip:d},a)})):null),[n,u,s,o,d]);return Object(C.jsxs)(r.r,{className:c()(Z.a["flow-group"]),children:[!a&&Object(C.jsx)(r.r,{className:Z.a.title,children:t}),Object(C.jsx)(r.r,{className:Z.a.list,children:p})]})})),K=()=>Object(C.jsxs)(r.r,{className:c()(Z.a["flow-group"]),children:[Object(C.jsx)(r.r,{className:Z.a["empty-title"]}),Object(C.jsx)(r.r,{className:Z.a.list,children:Array.from(new Array(6),(()=>Object(C.jsx)(V.a,{})))})]}),J=a(42),X=a(507),$=a.n(X),ee=n.a.memo((e=>{var{groupName:t,isActive:a,searchKey:i}=e;return Object(C.jsx)(r.r,{className:c()($.a["left-menu-item"],{[$.a["current-item"]]:a}),children:Object(C.jsx)(r.r,{className:$.a.content,children:Object(C.jsx)(J.a,{content:t,keyword:i,isSingleLine:!0})})})})),te=()=>Object(C.jsx)(r.r,{className:$.a["left-menu-item-empty"],children:Object(C.jsx)(r.r,{className:$.a.item})}),ae=a(142),re=a.n(ae),ie="all-definition-card-body";!function(e){e[e.notInSearch=-1]="notInSearch",e[e.initSearch=0]="initSearch",e[e.isSearching=1]="isSearching",e[e.noResult=2]="noResult",e[e.hasResult=3]="hasResult"}(W||(W={}));var ne=Array.from(new Array(6),(()=>Object(C.jsx)(K,{}))),oe=Array.from(new Array(6),(()=>Object(C.jsx)(te,{}))),se=n.a.memo((e=>{var{shouldScroll:t,searchKey:a,searchStatus:n,categoryList:s,groups:l,resizeId:u,forceUpdateHeightId:m,onClick:O,tabContentTop:f,tabContentBottom:M,onScrollToLower:_,onScrollToUpper:y,contentScrollTop:D,onTabClick:N,onTabChange:A,isContainerActive:T,onUgcEntryClick:I=v.m,setActiveIsInvisible:x}=e,{shouldBottomShowTip:S}=Object(b.a)({isActive:T,targetId:"#".concat(ie),resizeId:u,forceUpdateId:m}),w=Object(i.useCallback)(((e,t,r)=>{var{Name:i}=e;return Object(C.jsx)(ee,{groupName:i,isActive:r,searchKey:a})}),[a]),L=Object(i.useCallback)((e=>{var{ID:t,Name:r,list:i,reverse:n,Count:o}=e;return Object(C.jsx)(q,{searchKey:a,title:r,hideTitle:n&&i.length<o,cards:i,resizeId:u,onCardClick:O,shouldBottomShowTip:S},t)}),[O,u,a,S]);return Object(C.jsxs)(r.a,{children:[Object(C.jsx)(r.r,{className:c()(re.a.title),children:Object(o.t)("CreateList.AllDefinition")}),Object(C.jsxs)(r.r,{id:ie,children:[(()=>{var{isEnableUgcApproval:e,showUgcCreatorBtn:t}=g.b.globalStore;switch(n){case W.noResult:return Object(C.jsx)(r.r,{className:re.a["card-body_on-search"],children:Object(C.jsx)(E.a,{src:d.a,text:e&&t?Object(C.jsxs)(r.r,{className:re.a["empty-with-ugc-entry"],children:[Object(C.jsx)(r.r,{children:Object(o.t)("CreateList.NoSearchResult")}),Object(C.jsxs)(r.r,{className:re.a["ugc-entry-row"],children:[Object(C.jsx)(r.p,{children:Object(o.t)("CreateList.CustomCreate.GoTo")}),Object(C.jsx)(r.p,{className:re.a["ugc-entry"],onClick:()=>{Object(j.b)("approval_no_search_result_ugc_entry_click"),I()},children:Object(o.t)("CreateList.CustomCreate.Process")})]})]}):Object(o.t)("CreateList.NoSearchResult")})});case W.initSearch:return Object(C.jsx)(r.r,{className:re.a["card-body_on-search"],children:Object(C.jsx)(E.a,{src:p.a,text:Object(o.t)("CreateList.DefinitionSearch")})});case W.isSearching:return Object(C.jsx)(r.r,{className:re.a["card-body_on-search"],children:Object(C.jsx)(E.a,{src:h.a,text:Object(o.t)("CreateList.DefinitionSearching")})});default:return null}})(),Object(C.jsx)(G,{forceScroll:!0,resizeId:u,tabs:s,contentList:l,rootProps:{className:re.a["card-body"],hidden:![W.hasResult,W.notInSearch].includes(n)},tabBarProps:{className:re.a["card-body_left"]},tabBarScrollViewProps:{scrollY:t,enhanced:!0,showScrollbar:!1,className:re.a["card-body_left-menu"]},onTabBarRender:w,tabBarBottom:Object(C.jsx)(r.r,{className:re.a["card-body_left-empty-box-bottom"]}),tabContentProps:{className:re.a["card-body_right"]},tabContentScrollViewProps:{className:re.a["card-body_right-group"],scrollY:t,enhanced:!0,showScrollbar:!1,scrollTop:D,onScrollToLower:_,onScrollToUpper:y},onTabClick:N,onContentRender:L,tabContentTop:f,tabContentBottom:M,onChange:A,setActiveIsInvisible:x})]})]})})),ce=()=>Object(C.jsxs)(r.a,{children:[Object(C.jsx)(r.r,{className:re.a["empty-title"]}),Object(C.jsx)(r.r,{children:Object(C.jsxs)(r.r,{className:re.a["card-body"],children:[Object(C.jsx)(r.r,{className:re.a["card-body_left"],children:Object(C.jsxs)(r.n,{scrollY:!1,enhanced:!0,showScrollbar:!1,className:re.a["card-body_left-menu"],children:[oe,Object(C.jsx)(r.r,{className:re.a["card-body_left-empty-box-bottom"]})]})}),Object(C.jsx)(r.r,{className:re.a["card-body_right"],children:Object(C.jsxs)(r.n,{scrollY:!1,enhanced:!0,showScrollbar:!1,className:re.a["card-body_right-group"],children:[ne,Object(C.jsx)(r.r,{className:re.a["empty-block"]})]})})]})})]})},function(e,t,a){e.exports={country_code_wrap:"index-module__country_code_wrap___-2VPa",scroll_view_wrap:"index-module__scroll_view_wrap___2MIwO",code_item_wrap:"index-module__code_item_wrap___1i74N",code_letter:"index-module__code_letter___15OU1",code_item:"index-module__code_item___1wpJO",image:"index-module__image___16oQf",name:"index-module__name___3V_bG",highlight_color:"index-module__highlight_color___GH1_P",letter_wrap:"index-module__letter_wrap___3UJnD",letter_item:"index-module__letter_item___3Z6SK",empty_result:"index-module__empty_result___3gXU-",load_fail:"index-module__load_fail___3hGh6",retry:"index-module__retry___HdYii",input_wrap:"index-module__input_wrap___ux3w4",clear:"index-module__clear___230d4",search_input:"index-module__search_input___3n0Vd",icon:"index-module__icon___3_w-J"}},function(e,t,a){e.exports={"rich-log":"index-module__rich-log___26i7a","logger-broad":"index-module__logger-broad___3Fhyk",dragger:"index-module__dragger___2iyH5","log-count":"index-module__log-count___3b8EC",tab:"index-module__tab___tBO85","tab-item":"index-module__tab-item___2ElAH",active:"index-module__active___3e3yZ","scroll-view":"index-module__scroll-view___2DzaV"}},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r=a(5),i=(a(3),a(617)),n=a(2),o=a(0),s=e=>{var t=e.style||{};return Object(o.jsx)(i.a,Object(r.a)(Object(r.a)({},e),{},{style:Object(r.a)({color:"#245BDB",backgroundColor:"rgba(51, 112, 255, 0.2)"},t),children:e.tagName||Object(n.t)("External_Tag","外部")}))}},function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return r}));var r,i="/api/approval/getPrintTemplateStatus";!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.PRINT_ASSISTANT=1]="PRINT_ASSISTANT",e[e.TYPOGRAPHY_PRINT=2]="TYPOGRAPHY_PRINT"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a(9),i=a(17),n=a(16),o=a(10),s=a(12);function c(){return l.apply(this,arguments)}function l(){return l=Object(r.a)((function*(){try{var{data:e}=yield n.c.validateGrayTenant();return(null==e?void 0:e.in_gray)||!1}catch(e){return o.a.error("validate leave gray tenant failed",e),Object(s.b)(i.f.ApprovalError,{location:"in function judgeLeaveRefactor at src/components/configurable-form/components/widgets/leave-group-v2/utils/judge-leave-refactor.ts",message:JSON.stringify(e)}),!1}})),l.apply(this,arguments)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(2);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=0,i=["IDENTITY",Math.random().toString().substr(2,16),a++,""].join("__"),n=e=>"".concat(i).concat(e),o=e=>e.replace(i,""),s=["","SPLITTER",Math.random().toString().substr(2,16),a++,""].join("__"),c=e=>"".concat(s).concat(n(e)).concat(s),l=Object.keys(t).reduce(((e,t)=>(e[t]=c(t),e)),{}),d=Object(r.t)(e,l);return d.split(s).map((e=>{var a;return null!==(a=t[o(e)])&&void 0!==a?a:e}))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return c}));var r=a(18),i=a(334),n=a(50),o=e=>s("approval_mp_pc",e),s=(e,t)=>{var a=r.a,o=n.a.getSync("pc:channel");if(o){var s=n.a.getSync("pc:ka:admin:domain");a=(s?"".concat(s,"/approval/admin/approvalList"):"")||r.b[o]||a}if(e&&(a="".concat(a,"?from=").concat(e)),!t)return a;var c=Object(i.stringify)(t);return"".concat(a,"&").concat(c)};function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"approvalList",t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"approval_portal_ugc",o="".concat(r.l,"/approval/admin/").concat(e,"?from=").concat(a),s=n.a.getSync("pc:channel");if(s){var c=n.a.getSync("pc:ka:admin:domain"),l=c?"".concat(c,"/approval/admin/").concat(e,"?from=").concat(a):"";o=l||r.b[s]||o}if(!t)return o;var d=Object(i.stringify)(t);return"".concat(o,"&").concat(d)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return o}));var r=a(55),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.c.CN;return t===r.c.CN?"aweme://lynxview_popup/?channel=feelgood_ad_survey&bundle=pages/dialog-task-card/template.js&use_bdx=1&dynamic=1&hide_nav_bar=1&allowClosed=0&mask_color=00000000&show_loading=1&show_error=1&FG_token=".concat(e):"aweme://lynxview_popup/?channel=feelgood_lynx&bundle=pages/dialog-task-card/template.js&use_bdx=1&dynamic=1&hide_nav_bar=1&allowClosed=0&mask_color=00000000&show_loading=1&show_error=1&FG_token=".concat(e)},n=e=>"FG_".concat(e,"_store"),o=(e,t)=>"FG_Event_".concat(e,"_Task_").concat(t)},,function(e,t,a){"use strict";a.d(t,"b",(function(){return d})),a.d(t,"c",(function(){return u})),a.d(t,"a",(function(){return p}));var r,i=a(9),n=a(2),o=a(35),s=a(10),c=a(12),l=a(36);!function(e){e[e.DOWNLOAD=1]="DOWNLOAD",e[e.PREVIEW=2]="PREVIEW"}(r||(r={}));var d=e=>"string"!=typeof e?"obj":e.split("/")[3],u=function(){var e=Object(i.a)((function*(e,t,a){try{if(!Object(l.i)("3.5.0"))return o.b.showToast({title:Object(n.t)("ApprovalForm.AttachmentNeedUpload"),icon:"error",duration:3e3});yield e()}catch(e){if(s.a.error("handleItemClick failed",e),e&&e.errMsg&&e.errMsg.includes("user canceled"))return;Object(c.b)("pc_mp_operate_error",{error_message:e}),null==t||t(e)}finally{null==a||a()}}));return function(t,a,r){return e.apply(this,arguments)}}(),p=e=>(e>1024&&1048576>e&&(e="".concat((Number(e)/1024).toFixed(2),"K")),e>1048576&&(e="".concat((Number(e)/1048576).toFixed(2),"M")),e)},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"d",(function(){return d}));var r=a(407),i=1814991,n=1819730,o=1821275,s=1668284,c=1861060,l=[i,n,o,s],d={[i]:r.b,[n]:r.c,[o]:r.d,[s]:r.e}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"d",(function(){return j})),a.d(t,"e",(function(){return O})),a.d(t,"c",(function(){return M}));var r,i,n=a(5),o=a(4),s=a(13),c=a(38),l=a(26),d=a(16),u=a(2),p=a(199),m=a(314),h=a(25),b=a(98),g=a(155);(function(e){e[e.employee=1]="employee",e[e.exEmployee=2]="exEmployee"})(r||(r={})),function(e){e.all="all",e.exEmployee="ex-employee",e.employee="employee"}(i||(i={}));var v=(e,t)=>({id:"".concat(t,"+>").concat(p.a),type:s.c.SINGLE_SELECT,data:{name:"".concat(Object(u.t)("UserDepartment")),visible:!1,readable:!0,writable:!0,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:!0,placeholder:"".concat(Object(u.t)("UserDepartment")),options:e.map((e=>({value:e.departmentId,text:e.name}))),value:null}}),j=Object(o.k)((function*(e){var t=yield d.c.useruserDepartmentInfo({imitateUserId:e}),{data:a}=t||{},{departmentList:r,mainDepartmentId:i}=a;return(null!=r?r:[]).map((e=>Object(n.a)(Object(n.a)({},e),{},{isMainDepartment:String(e.departmentId)===String(i)})))})),O=e=>e?{value:e.departmentId,text:e.name}:null,f=Object(o.k)((function*(e,t,a){var{data:{users:r,visible:i,multi:n,children:o}}=e;if(!n&&1===r.length&&null!=o&&o.length){var s=o[0],[c]=r,l=yield j(c.id),d=l.map((e=>O(e))),u=null;if(a){var{value:p}=a,m=l.find((e=>p.departmentId===e.departmentId));u=1===d.length?d[0]:O(m)}else 1===d.length&&(u=d[0]);var h=i&&d.length>1;Object.assign(s.data,{value:u,options:d,isRestored:Boolean(a),visible:h}),t.addWidgetDescendantsToMap(s)}return e})),M={type:s.c.CONTACT,inputFormat(e,t){var{id:a,value:r,name:i,enableDefaultValue:n,widgetDefaultValue:o,type:c,visible:l,placeholder:d,defaultValueType:u,required:p,option:m}=e,h=Boolean(r&&r.multi),b=v([],a),g=h||!b?[]:[b],j=t.isWidgetWritable(a),O=[];j&&n&&!t.isRollbackToStart&&(O=JSON.parse(o).map((e=>({name:e.name,id:e.user_id,avatarUrl:e.avatar_url,openId:e.open_id,tenantName:e.tenant_name,tenantId:e.tenant_id}))));return{id:a,type:c,data:{name:i||"",visible:!1!==l,readable:t.isWidgetReadable(a),writable:j,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,placeholder:d,enableDefaultValue:n,widgetDefaultValue:o,defaultValueType:u,validationWarning:null,historyType:s.a.NONE,required:Boolean(p),users:O,ignore:Boolean(r&&r.ignore),multi:h,range:null==r?void 0:r.range,disabled:Boolean(m&&m.disabled),children:g}}},outputFormat(e){var{type:t,data:{required:a,visible:r,users:i,children:n}}=e;if(!a&&Object(c.c)(i))return null;var[o]=n||[],s=o&&o.data&&o.data.value&&o.data.value.value||"";return{id:Object(l.q)(e.id),type:t,value:i.length?{value:i.map((e=>e.id)).join(","),text:i.map((e=>e.name)).join(","),avatarUrl:i.map((e=>e.avatarUrl)).join(","),tenantName:i.map((e=>e.tenantName)).join(","),tenantId:i.map((e=>e.tenantId)).join(","),departmentId:s}:null,displayCondStatus:r}},restoreFormat:Object(o.k)((function*(e,t,a){var r,i,{data:n,data:{users:o}}=e;n.name=t.name||"",n.hasHistory=t.edited,n.printable=t.printable,o.length=0;for(var{value:s}=t,c=s.value.split(","),l=s.text.split(","),d=s.avatarUrl.split(","),u=(null===(r=s.tenantId)||void 0===r?void 0:r.split(","))||[],p=(null===(i=s.tenantName)||void 0===i?void 0:i.split(","))||[],m=0;m<c.length;m++)o.push({id:c[m],name:l[m],avatarUrl:d[m],tenantId:u[m],tenantName:p[m],openId:s.openId||""});return yield f(e,a,t)})),restoreWithDraftFormat:Object(o.k)((function*(e,t){var a;return e.data.users=Object(m.a)(t.data.users)||[],null!==(a=t.data.children)&&void 0!==a&&a.length&&t.data.children.forEach(((t,a)=>{e.data.children&&(e.data.children[a].data=Object(m.a)(t.data))})),e})),printFormat(e){var{name:t,users:a}=e.data,r=a.map((e=>{var{name:t}=e,a=Object(b.c)(e,h.d);return a?"".concat(t," (").concat(a,")"):t})).join("; ");return{label:t,value:r}},writableValidate:e=>!Object(c.c)(e.data.users),validate:Object(o.k)((function*(e,t,a){var{data:r,data:{visible:i,writable:n,required:o,users:s,children:l}}=e;if(r.validationError=null,!(i&&n&&(o||null!=s&&s.length)))return!0;var d=Object(c.c)(s);if(a||(r.validationError=d),null==l||!l.length)return!d;var u=yield t.validateWidgets(null==l?void 0:l.map((e=>e.id)),{silent:a});return!d&&u})),*genChildren(e){yield*e.data.children},reset(e,t){e.data=t,e.data.users=[]},restoreDefaultData:Object(o.k)((function*(e,t,a){var{data:r}=e;if(r.writable&&r.enableDefaultValue&&0===r.users.length){var i=JSON.parse(r.widgetDefaultValue);e.data.users=i.map((e=>({name:e.name,id:e.user_id,avatarUrl:e.avatar_url,tenantName:e.tenant_name,tenantId:e.tenant_id,openId:e.open_id}))),yield f(e,a)}})),onSubmitterChange(e,t,a){var{data:{defaultValueType:r,enableDefaultValue:i}}=t;e&&i&&r===s.b.CURRENT_VALUE?(a.resetWidgetData(t.id),Object(g.a)({api:d.c,params:{userIds:[e]},cacheOpenId:!0}).then((e=>{t.data.widgetDefaultValue=JSON.stringify(e.data.userList.map((e=>({avatar_url:e.avatarUrl,name:e.name,open_id:e.openId,user_id:e.userId,tenant_name:e.tenantName,tenant_id:e.tenantId})))),a.restoreWidgetWithDefaultData(t.id),a.handleWidgetChange(t.id)}))):e&&!i&&(a.resetWidgetData(t.id),a.handleWidgetChange(t.id))}}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r,i=a(6);new Map,function(e){e.Detail="m-detail"}(r||(r={}));var n=new class{constructor(){Object(i.a)(this,"cacheMap",new Map)}set(e,t){this.cacheMap.set(e,t)}get(e){return console.log("cacheMap",this.cacheMap),this.cacheMap.get(e)}has(e){return this.cacheMap.has(e)}}},,function(e,t,a){e.exports=a.p+"assets/illustration/common.png"},function(e,t,a){"use strict";a.d(t,"a",(function(){return T}));var r=a(50),i="crc",n="mi",o="kap",s="kami",c="ka31",l="kastaging",d="kacrc",u="".concat("https://internal-api-approval.feishu.cn","/approval/web/api"),p="https://internal-api-approval.crc.feishu.cn/approval/web/api",m="https://internal-api-approval.mi.feishu.cn/approval/web/api",h="https://internal-api-approval.f.mioffice.cn/approval/web/api",b="https://internal-api-approval.fs.fei-shu.cn/approval/web/api",g="https://internal-api-approval.work.sany.com.cn/approval/web/api",v="https://internal-api-approval.ka.statusfeishu.cn/approval/web/api",j="https://internal-api-approval.rwork.crc.com.cn/approval/web/api",O={LOGIN:p.replace("/api","/login"),UPLOAD:"".concat(p,"/attachment/uploadFile")},f={LOGIN:m.replace("/api","/login"),UPLOAD:"".concat(m,"/attachment/uploadFile")},M={LOGIN:h.replace("/api","/login"),UPLOAD:"".concat(h,"/attachment/uploadFile")},_={LOGIN:b.replace("/api","/login"),UPLOAD:"".concat(b,"/attachment/uploadFile")},y={LOGIN:g.replace("/api","/login"),UPLOAD:"".concat(g,"/attachment/uploadFile")},D={LOGIN:v.replace("/api","/login"),UPLOAD:"".concat(v,"/attachment/uploadFile")},N={LOGIN:j.replace("/api","/login"),UPLOAD:"".concat(j,"/attachment/uploadFile")},A={LOGIN:u.replace("/api","/login"),UPLOAD:"".concat(u,"/attachment/uploadFile")};function T(){var e=r.a.getSync("pc:channel");return e===i?O:e===n?f:e===s?M:e===o?_:e===c?y:e===l?D:e===d?N:A}},function(e,t,a){"use strict";var r,i=a(5),n=a(3),o=a(8),s=a.n(o),c=a(1),l=a(69),d=(a(1219),a(19)),u=a.n(d),p=a(186),m=a(15),h=a(4),b=a(0),g=Object(l.h)("global-tooltip");!function(e){e.TOP="top",e.Right="right",e.Bottom="bottom",e.Left="left"}(r||(r={}));t.a=Object(m.a)((e=>{var{unid:t}=e,a=Object(p.d)((()=>({text:"",maxWidth:200,position:"top",textClass:"top",showArrow:!0,visible:!1,tooltipPosition:{},wordWrap:!1,textWrap:!1,arrowClass:""}))),o=e=>{var{id:i="",maxWidth:n=200,position:o,text:s,textClass:c,showArrow:l=!0,visible:d,parentElementPosition:u,wordWrap:p=!1,textWrap:m=!1,arrowClass:b}=e;if(!t||i===t)if(d){var{left:g,top:v,width:j,height:O,bottom:f,right:M}=u,{windowWidth:_,windowHeight:y}=tt.getSystemInfoSync(),D={};switch(o){case r.TOP:D={bottom:"".concat(y-f+O,"px"),left:"".concat(g+j/2,"px")};break;case r.Bottom:D={top:"".concat(v+O,"px"),left:"".concat(g+j/2,"px")};break;case r.Left:D={top:"".concat(v+O/2,"px"),right:"".concat(_-M+j,"px")};break;case r.Right:D={top:"".concat(v+O/2,"px"),left:"".concat(g+j,"px")};break;default:D={bottom:"".concat(y-f+O,"px"),left:"".concat(g+j/2,"px")}}Object(h.s)((()=>{a.text=s,a.textClass=c,a.showArrow=l,a.visible=d,a.tooltipPosition=D,a.position=o,a.wordWrap=p,a.textWrap=m,a.maxWidth=n,a.arrowClass=b}))}else Object(h.s)((()=>{a.visible=d}))};Object(n.useEffect)((()=>(u.a.eventCenter.on("global-tooltip",o),()=>{u.a.eventCenter.off("global-tooltip",o)})),[]);var l=s()(g("tips"),{[g("tips--".concat(a.position))]:a.position,"no-wrap":!a.textWrap&&!a.wordWrap,wrap:a.textWrap&&!a.wordWrap,"word-wrap":a.wordWrap},a.textClass),d=s()(g("tips--arrow"),{[g("tips--arrow--".concat(a.position))]:a.position},"iconfont","icon-arrow",a.arrowClass);return a.visible?Object(b.jsxs)(c.r,{className:l,style:Object(i.a)(Object(i.a)({},a.tooltipPosition),{},{maxWidth:a.maxWidth?"".concat(a.maxWidth,"px"):"unset"}),children:[a.showArrow&&Object(b.jsx)(c.r,{className:d}),a.text]}):null}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a(3),i=a(19),n=a(10),o=a(20),s=Object(o.c)("pc:src/pc-pages/index/hooks.ts");function c(){var e=Object(i.useRouter)();return Object(r.useMemo)((()=>(n.a.info("==== [useRouterOptions] ====",e,e&&e.params),e&&e.params?e.params||{}:(s("commonUseRouterError",{func:"useRouterOptions",message:JSON.stringify(e?e.params:null)}),{}))),[e])}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(94),i=(e,t,a,i)=>{var{id:n,instanceCode:o,instanceId:s,taskId:c,ccId:l,commentId:d,replyId:u,blockCommentId:p,blockReplyId:m,shareCode:h,source:b,system:g,oaParams:v,oaURL:j,dateType:O,startTime:f,efficiencyTab:M,forceTrusteeship:_,definitionName:y,showBlockComment:D,authId:N,showExportHistory:A,exportRecordId:T,exportParams:I,action:C,hijackTask:x,fromBot:S,botContentType:w}=e;return{reLaunch:()=>tt.reLaunch({url:Object(r.c)(t,{tabPage:a,currentNav:i,id:n,instanceId:s,instanceCode:o,shareCode:h,taskId:c,ccId:l,commentId:d,replyId:u,blockCommentId:p,blockReplyId:m,source:b,system:g,oaParams:v,oaURL:j,dateType:O,startTime:f,efficiencyTab:M,forceTrusteeship:_,definitionName:y,showBlockComment:"true"===D,authId:N,showExportHistory:A,exportRecordId:T,exportParams:I,action:C,hijackTask:x,fromBot:S,botContentType:w})})}}},,,function(e,t,a){"use strict";var r=a(39),i=e=>function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500,r=arguments.length>2?arguments[2]:void 0;tt.showToast({title:t,duration:a,forceToast:r,icon:e})},n={success:i(r.e?"success":"none"),error:i(r.e?"error":"none"),warn:i(r.e?"warning":"none")};t.a=n},function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var r=a(6),i=a(3),n=a(1),o=a(8),s=a.n(o),c=a(876),l=a.n(c),d=a(177),u=(a(1206),a(0));class p extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"state",{isActive:!1}),Object(r.a)(this,"handleChange",(e=>{var{onChange:t}=this.props;t(e),this.setState({isActive:!1})})),Object(r.a)(this,"handleCancel",(()=>{this.setState({isActive:!1})})),Object(r.a)(this,"handleInnerClick",(()=>{this.setState({isActive:!0})}))}render(){var{range:e,value:t,placeholder:a,disabled:r,noBorder:i,error:o,hasError:c}=this.props,{isActive:p}=this.state;return Object(u.jsx)(n.j,{className:"approval-select",mode:"selector",range:e,value:Math.max(0,t),disabled:r,onChange:this.handleChange,onCancel:this.handleCancel,children:Object(u.jsx)(d.a,{hasError:c,value:e[t],placeholder:a,usingPlaceholder:t<0,disabled:r,isActive:p,noBorder:i,specialError:o,renderTailIcon:Object(u.jsx)(n.g,{className:s()("dropdown-icon",{active:p}),src:r?"":l.a}),onClick:this.handleInnerClick})})}}Object(r.a)(p,"defaultProps",{value:-1,noBorder:!1,error:!1})},function(e,t,a){"use strict";var r,i,n,o=a(9),s=a(11),c=a(6),l=a(7),d=(a(56),a(4)),u=a(598),p=a(16),m=a(12),h=a(20),b=Object(h.c)("pc:src/stores/intranet.ts"),g="SUCCESS",v=(r=class{constructor(){var e=this;Object(c.a)(this,"queue",new u.AwaitQueue),Object(c.a)(this,"probeUrl",""),Object(c.a)(this,"timer",null),Object(c.a)(this,"abortTimer",null),Object(c.a)(this,"isPolling",!1),Object(s.a)(this,"isInternalNetWork",i,this),Object(s.a)(this,"checkIntranet",n,this),Object(c.a)(this,"handleCheckSuccess",(()=>{this.timer=setTimeout((()=>{this.check()}),6e4)})),Object(c.a)(this,"handleCheckFail",(()=>{this.setIsInternalNetWork(!1),this.isPolling&&this.queue.push((()=>this.delayCheck()))})),Object(c.a)(this,"delayCheck",Object(o.a)((function*(){yield new Promise((e=>setTimeout(e,3e4))),yield e.check()}))),Object(c.a)(this,"startPolling",Object(o.a)((function*(){b("internalStartPolling",{probeUrl:Boolean(e.probeUrl),timer:Boolean(e.timer),isPolling:e.isPolling}),e.isPolling||(e.isPolling=!0,yield e.check())}))),Object(c.a)(this,"stopPolling",(()=>{b("internalStopPolling",{probeUrl:Boolean(this.probeUrl),timer:Boolean(this.timer),isPolling:this.isPolling,queueSize:this.queue.size}),this.isPolling=!1,this.timer&&(clearTimeout(this.timer),this.timer=null),this.queue.stop()})),Object(c.a)(this,"check",Object(o.a)((function*(){try{if(e.probeUrl){var{data:t}=yield e.checkIntranet();e.setIsInternalNetWork(t===g)}else{var a=yield p.c.detectIntranet();if(a.data.needDetect){e.probeUrl=a.data.probeUrl;var{data:r}=yield e.checkIntranet();e.setIsInternalNetWork(r===g)}else e.setIsInternalNetWork(!0)}e.handleCheckSuccess()}catch(t){b("commonOnError",{message:JSON.stringify(t,Object.getOwnPropertyNames(t)),location:"in function check at src/stores/intranet.ts"}),e.handleCheckFail()}})))}get isRunning(){return this.isPolling}setIsInternalNetWork(e){this.isInternalNetWork=e}},i=Object(l.a)(r.prototype,"isInternalNetWork",[d.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(l.a)(r.prototype,"setIsInternalNetWork",[d.f],Object.getOwnPropertyDescriptor(r.prototype,"setIsInternalNetWork"),r.prototype),n=Object(l.a)(r.prototype,"checkIntranet",[d.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>new Promise(((e,t)=>{var{probeUrl:a}=this;if(a){var r=tt.request({url:a,header:{"content-type":"application/json"},success:t=>{Object(m.b)("internal_net_check",{message:JSON.stringify(t.data)}),e(t)},fail:e=>{Object(m.b)("internal_net_check",{message:JSON.stringify(e)}),t(e)},complete:()=>{this.abortTimer&&(clearTimeout(this.abortTimer),this.abortTimer=null)}});this.abortTimer=setTimeout((()=>{"function"==typeof(null==r?void 0:r.abort)&&r.abort(),t(new Error("timeout"))}),3e3)}}))}}),r);t.a=new v},,function(e,t,a){"use strict";a.d(t,"a",(function(){return m})),a.d(t,"c",(function(){return j})),a.d(t,"b",(function(){return O}));var r=a(5),i=a(31),n=a.n(i),o=(a(1207),a(878)),s=a.n(o),c=a(879),l=a.n(c),d=a(880),u=a.n(d),p=a(2);n.a.extend(u.a);var m,h={[p.StarlingLangEnum.zh]:{AM:"上午",PM:"下午",today:"今天",year:"年",month:"月",date:"日"},[p.StarlingLangEnum.ja]:{AM:"午前",PM:"午後",today:"今日",year:"年",month:"月",date:"日"},[p.StarlingLangEnum.en]:{AM:"AM",PM:"PM",today:"Today",year:"year",month:"month",date:"date"}};!function(e){e.YYYYMMDD="YYYY-MM-DD",e.YYYYMMDDA="YYYY-MM-DD A",e.YYYYMMDDHH="YYYY-MM-DD HH",e.YYYYMMDDHHH2="YYYY-MM-DD HH:H/2",e.YYYYMMDDHHmm="YYYY-MM-DD HH:mm"}(m||(m={}));var b={[p.StarlingLangEnum.zh]:{key:s.a,MMDDddd:"M月D日 ddd",MMDD:"M月D日",today_ddd:"today ddd",[m.YYYYMMDD]:"ll",[m.YYYYMMDDA]:"ll $1",[m.YYYYMMDDHH]:"ll HH:00",[m.YYYYMMDDHHH2]:"ll HH:$2",[m.YYYYMMDDHHmm]:"ll HH:mm"},[p.StarlingLangEnum.ja]:{key:l.a,MMDDddd:"M月D日 ddd",MMDD:"M月D日",today_ddd:"today ddd",[m.YYYYMMDD]:"ll",[m.YYYYMMDDA]:"ll $1",[m.YYYYMMDDHH]:"ll HH:00",[m.YYYYMMDDHHH2]:"ll HH:$2",[m.YYYYMMDDHHmm]:"ll HH:mm"},[p.StarlingLangEnum.en]:{key:"en",MMDDddd:"ddd MMM D",MMDD:"MMM D",today_ddd:"ddd today",[m.YYYYMMDD]:"ll",[m.YYYYMMDDA]:"$1 ll",[m.YYYYMMDDHH]:"ll HH:00",[m.YYYYMMDDHHH2]:"ll HH:$2",[m.YYYYMMDDHHmm]:"ll HH:mm"}},g=Object(r.a)(Object(r.a)({},b[p.StarlingLangEnum.en]),{},{[m.YYYYMMDD]:"YYYY-MM-DD",[m.YYYYMMDDA]:"YYYY-MM-DD $1",[m.YYYYMMDDHH]:"YYYY-MM-DD HH:00",[m.YYYYMMDDHHH2]:"YYYY-MM-DD HH:$2",[m.YYYYMMDDHHmm]:"YYYY-MM-DD HH:mm"}),v=function(e){return b[e]||Object(r.a)(Object(r.a)({},b[p.StarlingLangEnum.en]),{},{key:"default"})},j=(e,t,a,r)=>{var i=v(t);r&&(i=g);var o=i[a],s=n()(e),c=s.hour(),l=s.minute(),d=l<30?"00":"30",u=12===c&&l>=0||c>12?"PM":"AM";return s.locale(i.key).format(o).replace("$1",h[t][u]).replace("$2",d)},O=(e,t)=>n()().utcOffset(t).year(e.year()).month(e.month()).date(e.date()).hour(e.hour()).minute(e.minute()).second(0).millisecond(0)},function(e,t,a){"use strict";var r,i;a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i})),function(e){e[e.Square=1]="Square",e[e.Circle=2]="Circle"}(r||(r={})),function(e){e[e.None=0]="None",e[e.Tick=1]="Tick",e[e.Circle=2]="Circle"}(i||(i={}))},function(e,t,a){"use strict";var r,i,n=a(9),o=a(5),s=a(6),c=a(28),l=a(2),d=a(10),u=a(20),p=a(39),m=a(72),h=a(1480),b=a(513),g=Object(u.c)("shared:src/modules/batch-approval-module/utils/batch-fail-notice.ts"),v={10200:Object(l.t)("BatchOperate.FailReasonThirdError"),10125:Object(l.t)("BatchOperate.FailReasonRequireInput"),10300:Object(l.t)("BatchOperate.FailReasonTimeout")},j=[],O=!1,f=function(){var e=Object(n.a)((function*(e){var t;if(j.length&&!O){O=!0,e&&(yield Object(m.g)(500));var[{onOk:a,cancel:r,title:i,content:n,definitionName:o}]=j.splice(0,1),s=null===(t=Object(b.a)())||void 0===t?void 0:t.__route__,c=Object(l.getSimpleCurrentLanguage)();tt.showModal({title:i,content:n,confirmText:Object(l.t)("BatchOperate.DealNow"),cancelText:Object(l.t)("ModalCancelText"),success(e){if(O=!1,e.confirm){d.a.info("[batch approval] batchFailNotice confirm");var t=null==s?void 0:s.includes("pages/approval-list/index");if(t)a({definitionName:o});else{d.a.info("[batch approval] batchFailNotice outPath");var i="/pages/approval-list/index?selectIndex=0&definitionName=".concat(JSON.stringify({[c]:name}),"&from=").concat((null==s?void 0:s.split("/")[1])||"batch_operate_fail_notice");tt.navigateTo({url:i,success(){d.a.info("[batch approval] navigateTo list success",i,c),g("operateBatchProcess",{type:"success",func:"showFailModal showModal success navigateTo",data:{lng:c,url:i}})},fail(){d.a.info("[batch approval] navigateTo list fail",i,c),g("operateBatchProcess",{type:"error",func:"showFailModal showModal success navigateTo",data:{lng:c,url:i}})}})}g("operateBatchProcess",{type:"success",func:"showFailModal showModal success showModal",data:{lng:c,routePath:s,innerPath:t}})}else r();f(Boolean(j.length))},fail(){O=!1,f(Boolean(j.length)),d.a.error("[batch approval] batchFailNotice fail openmodal fail"),g("commonOnError",{type:"error",func:"showFailModal showModal fail",data:{lng:c,routePath:s}})}})}else O=!1}));return function(t){return e.apply(this,arguments)}}(),M=(e,t,a)=>{var r,{getFailCount:i,getTotalCount:n,getFailTasks:o,getGroupName:s}=e,c=i&&i>=n,d=Object(h.a)(o,"Code"),u=Object.getOwnPropertyNames(d).map((e=>({code:e,reason:v[Number(e)],count:d[e].length}))),p=c?Object(l.t)("BatchOperate.AllFail"):Object(l.t)("BatchOperate.PartFail");r=c&&1===u.length?"".concat(s?Object(l.t)("BatchOperate.AllFailContentSingle",{name:s,totalCount:n,reason:u[0].reason}):Object(l.t)("approval-mp_BatchFailReason_toast",{totalCount:n,reason:u[0].reason})):c||1!==u.length?s?"".concat(Object(l.t)("BatchOperate.FailContentMultiStart",{name:s,totalCount:n})).concat(u.map(((e,t)=>Object(l.t)("BatchOperate.FailContentMultiDetail",{seq:t+1,reason:e.reason,failCount:e.count}))).join("")):"".concat(Object(l.t)("approval-mp_BatchFailReasons_toast",{totalCount:n})).concat(u.map(((e,t)=>Object(l.t)("BatchOperate.FailContentMultiDetail",{seq:t+1,reason:e.reason,failCount:e.count}))).join("")):"".concat(s?Object(l.t)("BatchOperate.PartFailContentSingle",{name:s,failCount:i,totalCount:n,reason:u[0].reason}):Object(l.t)("approval-mp_BatchFailReasonNum_toast",{failCount:i,totalCount:n,reason:u[0].reason}));var m=Boolean(j.length);j.push({title:p,content:r,definitionName:s,cancel:a,onOk:t}),f(m)},_=a(495);(function(e){e.feishu="feishu",e.oa="oa",e.external="external"})(r||(r={})),function(e){e[e.Pending=1]="Pending",e[e.Success=2]="Success",e[e.Fail=3]="Fail"}(i||(i={}));var y=Object(u.c)("shared:src/modules/batch-approval-module/index.ts");t.a=new class{constructor(){Object(s.a)(this,"events",{}),Object(s.a)(this,"tasks",[]),Object(s.a)(this,"commonParams",{OperationAction:0,Comment:"",CommentVersion:1,IsReuseSignature:!1,SignatureKey:"",SignatureURL:""}),Object(s.a)(this,"requireSignature",!1),Object(s.a)(this,"requireComment",!1),Object(s.a)(this,"isNeedReason",!0),Object(s.a)(this,"isNeedAttachment",!0),Object(s.a)(this,"definitionKeys",[]),Object(s.a)(this,"isPolling",!1),Object(s.a)(this,"groupName",""),Object(s.a)(this,"rate",0),Object(s.a)(this,"totalCount",0),Object(s.a)(this,"failCount",0),Object(s.a)(this,"finishCount",0),Object(s.a)(this,"continuouslyFailCount",0),Object(s.a)(this,"continuouslyFailMaxCount",5),Object(s.a)(this,"failTasks",[]),Object(s.a)(this,"failStatistics",[]),Object(s.a)(this,"status",void 0),Object(s.a)(this,"OperationKey",""),Object(s.a)(this,"isForeground",!0),Object(s.a)(this,"pollingBatchOperateInterval",null),Object(s.a)(this,"pollId",0),Object(s.a)(this,"obstructOpenDetailForMobile",void 0)}get getGroupName(){return this.groupName}get getTotalCount(){return this.totalCount}get getFailCount(){return this.failCount}get getFailTasks(){return this.failTasks}get getOperationKey(){return this.OperationKey}listen(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),()=>{d.a.info("[batch approval] unlisten",e),this.unlisten(e,t)}}unlisten(e,t){this.events[e]&&(t?this.events[e]&&(this.events[e]=this.events[e].filter((e=>e!==t))):delete this.events[e])}emit(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d.a.info("[batch approval] emit",e,a,this.rate,this.events),null===(t=this.events[e])||void 0===t||t.forEach((e=>e(Object(o.a)({rate:this.rate,status:this.status,name:this.groupName,totalCount:this.totalCount,msg:"success"===this.status?"成功信息":"失败或进行中信息",failTasks:this.failTasks,failStatistics:this.failStatistics,OperationKey:this.OperationKey},a))))}clear(){this.pollId=0,this.status=void 0,this.groupName="",this.OperationKey="",this.finishCount=0,this.totalCount=0,this.failCount=0,this.failTasks=[]}resetParams(){this.commonParams={OperationAction:0,Comment:"",CommentVersion:1,IsReuseSignature:!1,SignatureKey:"",SignatureURL:""},this.tasks=[],this.isNeedReason=!0,this.isNeedAttachment=!0,this.requireComment=!1,this.requireSignature=!1,this.definitionKeys=[]}setIsForeground(e){this.isForeground=e}startPolling(e,t){var a=this;d.a.info("[batch approval] startPolling",this.isPolling,t),this.isPolling||(this.isPolling=!0,this.clear(),this.emit("start",{afterBatch:t}),this.pollingBatchOperateInterval=setInterval(Object(n.a)((function*(){(!a.isForeground||a.continuouslyFailCount>=a.continuouslyFailMaxCount)&&(a.clearPoll(),a.emit("failed"),y("operateBatchProcess",{type:"failed",func:"batchApprovalModule.startPolling",isMobile:c.h,inPC:p.e,msg:"pullBatchOperate status failed",data:JSON.stringify({finishCount:a.finishCount,failCount:a.failCount,totalCount:a.totalCount,continuouslyFailCount:a.continuouslyFailCount,continuouslyFailMaxCount:a.continuouslyFailMaxCount})}));try{var r=++a.pollId,n=yield e();a.continuouslyFailCount=0;var s=n.data.Operations[0];if(d.a.info("[batch approval] batch polling",null==s?void 0:s.PendingCount),s){var l,{FailCount:u=0,SuccessCount:m=0,PendingCount:h=0,FailTasks:b,Definitions:g=[],OperationKey:v,Status:j}=s;y("operateBatchProcess",{type:"info",func:"batchApprovalModule.startPolling",isMobile:c.h,inPC:p.e,msg:"pullBatchOperate status failed",data:JSON.stringify({PendingCount:h})});var O=u+m+h,f=O>0&&0===h&&j!==i.Pending,_=f&&u>0,D=m+u;if(a.groupName=1===g.length&&(null===(l=g[0])||void 0===l?void 0:l.Name)||"",a.pollId>r)return;a.totalCount=O,a.failCount=u,a.finishCount=D,a.failTasks=b,a.failStatistics=a.getFailStatistics(b),a.OperationKey=v,a.rate=Math.floor(D/O*100)/100,f?(d.a.info("[batch approval] finish",_),a.status=_?"fail":"success",a.clearPoll(),a.emit("end",{afterBatch:t}),!p.e&&_&&M(a,(()=>{d.a.info("[batch approval] emitAction archor"),a.emitAction("archor")}),(()=>{d.a.info("[batch approval] emitAction cancelFail"),a.emitAction("cancelFail")}))):(d.a.info("[batch approval] pending",Object(o.a)({},s)),a.status="pending",a.emit("progress",{afterBatch:t}))}else a.clearPoll(),a.status=void 0,a.emit("end",{afterBatch:t})}catch(e){a.continuouslyFailCount+=1,y("operateBatchProcess",{type:"error",func:"batchApprovalModule.startPolling",isMobile:c.h,inPC:p.e,msg:"pullBatchOperate status fail",data:JSON.stringify(e,Object.getOwnPropertyNames(e))}),d.a.error("[batch approval] pullBatchOperate fail",e)}})),4e3))}getFailStatistics(e){var t=new Map;e.forEach((e=>{var a=_.b[e.Code]||Object(l.t)("BatchOperate.FailReasonTimeout"),r=t.get(a);r?r.push(e):t.set(a,[e])}));var a=[];return t.forEach(((e,t)=>{a.push({reason:t,count:e.length})})),a.sort(((e,t)=>t.count-e.count)),a}clearPoll(){d.a.info("[batch approval] clearPoll"),this.pollingBatchOperateInterval&&clearInterval(this.pollingBatchOperateInterval),this.isPolling=!1,this.pollingBatchOperateInterval=null}obstructOpenDetail(e){return new Promise(((t,a)=>{e?tt.showModal({title:Object(l.t)("BatchOperate.DoNotRepeatOperate"),cancelText:Object(l.t)("ModalCancelText"),confirmText:Object(l.t)("BatchOperate.StillView"),showCancel:!0,success(e){e.confirm?t(void 0):a()},fail(){a(new Error("open detail sync Modal fail"))}}):t(void 0)}))}getAllowBatchOperate(e,t){var a;return null===(a=t[e])||void 0===a?void 0:a.AllowBatchOperate}setObstructOpenDetailForMobile(e){this.obstructOpenDetailForMobile=e}listenAction(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),()=>{this.unlistenAction(e,t)}}unlistenAction(e,t){this.events[e]&&(t?this.events[e]&&(this.events[e]=this.events[e].filter((e=>e!==t))):delete this.events[e])}emitAction(e,t){var a;null===(a=this.events[e])||void 0===a||a.forEach((e=>e(t||{definitionName:this.groupName})))}}},function(e,t,a){e.exports={content:"index-module__content___1QGmQ",layout_3:"index-module__layout_3___YfSOm",layout_2:"index-module__layout_2___3Ppg8",layout_1:"index-module__layout_1___OFYJf",skeleton:"index-module__skeleton___otXQo",collapse:"index-module__collapse___1ZnQg",expand:"index-module__expand___1EIj6",expand_button:"index-module__expand_button___2htxr",icon:"index-module__icon___2BSTO",expand_rotate:"index-module__expand_rotate___3Ly8v",crash:"index-module__crash___vooPg",crash_image:"index-module__crash_image___5-cqC",crash_button:"index-module__crash_button___FyjlK"}},function(e,t,a){e.exports={"approval-select-two":"index-module__approval-select-two___3HpZ0","select-filter":"index-module__select-filter___1_NED",active:"index-module__active___1Fg3T","select-icon":"index-module__select-icon___3MqXX","icon-arrow":"index-module__icon-arrow___3MkJm","image-wrapper":"index-module__image-wrapper___jz3b-","filter-icon":"index-module__filter-icon___Ga1Cr",reverse:"index-module__reverse___3uXbA"}},,function(e,t,a){"use strict";a.d(t,"b",(function(){return N})),a.d(t,"a",(function(){return A}));var r,i,n,o,s,c,l,d,u=a(5),p=a(11),m=a(6),h=a(7),b=(a(56),a(1)),g=a(4),v=a(3),j=a(667),O=a(540),f=a.n(O),M=a(0),_=0,y=(r=g.q.shallow,i=g.f.bound,n=g.f.bound,o=g.f.bound,s=class{constructor(e,t){Object(m.a)(this,"ContentComponent",void 0),Object(m.a)(this,"config",void 0),Object(p.a)(this,"data",c,this),Object(p.a)(this,"hidden",l,this),Object(p.a)(this,"zIndex",d,this),this.ContentComponent=e(this),this.config=t}open(e){this.hidden=!1,this.data=e||{},_+=1,this.zIndex=_}close(){this.hidden=!0}clean(){this.data=void 0}get view(){var e;return Object(M.jsx)(j.a,{hidden:this.hidden,onAnimationEnd:e=>{e&&this.clean()},children:Object(M.jsxs)(b.r,{className:f.a["modal-wrap"],children:[Object(M.jsx)(b.r,{className:f.a["modal-bg"],onClick:this.close}),Object(M.jsx)(b.r,{className:"drawer"===(null===(e=this.config)||void 0===e?void 0:e.mode)?f.a["drawer-content"]:f.a["modal-content"],children:this.data&&Object(M.jsx)(v.Fragment,{children:Object(M.jsx)(this.ContentComponent,Object(u.a)({},this.data))},_)})]})})}},c=Object(h.a)(s.prototype,"data",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=Object(h.a)(s.prototype,"hidden",[g.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d=Object(h.a)(s.prototype,"zIndex",[g.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Object(h.a)(s.prototype,"open",[i],Object.getOwnPropertyDescriptor(s.prototype,"open"),s.prototype),Object(h.a)(s.prototype,"close",[n],Object.getOwnPropertyDescriptor(s.prototype,"close"),s.prototype),Object(h.a)(s.prototype,"clean",[o],Object.getOwnPropertyDescriptor(s.prototype,"clean"),s.prototype),Object(h.a)(s.prototype,"view",[g.h],Object.getOwnPropertyDescriptor(s.prototype,"view"),s.prototype),s),D=a(528),N=e=>{var t=new y(e);return D.a.use(t),e=>{t.open(e)}},A=e=>{var t=new y(e,{mode:"drawer"});return D.a.use(t),e=>{t.open(e)}}},,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return y}));var r,i=a(3),n=a.n(i),o=a(1),s=a(36),c=a(16),l=a(2),d=(a(5),function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));return e?t.split("-")[0]:t}),u=(e,t,a)=>{var{flagKey:r}=a,{normalItemFormat:i,specItemFormat:n}=a;i||(i=e=>({text:e,id:d()})),n||(n=e=>({text:e,[r]:!0,id:d()}));var o=[],s=0;do{var c=t.exec(e);if(null===c){var l=e.slice(s);l&&o.push(i(l));break}var u=c[0],{index:p}=c,m=e.slice(s,p);m&&o.push(i(m)),o.push(n(u)),s=t.lastIndex}while(0!==t.lastIndex);return o};!function(e){e[e.text=0]="text",e[e.link=1]="link",e[e.reminder=2]="reminder"}(r||(r={}));var p=e=>{var t=new RegExp("(https?://|www)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]","gm");return u(e,t,{flagKey:"isLink",normalItemFormat:e=>({text:e,type:r.text}),specItemFormat:e=>({text:e,type:r.link})})},m=Object(l.getCurApiLang)().toLowerCase().replace("-","_"),h=e=>{var t;return"@".concat((null===(t=e.i18nName)||void 0===t?void 0:t[m])||e.name)},b=e=>{var{text:t,reminders:a=[],keyword:i=""}=e;if(!t)return[];var n=[];if(a&&a.length){var o=0,s=[];a.forEach((e=>{var a=t.slice(o,e.offset);s.push({text:a,type:r.text}),s.push({text:h(e),type:r.reminder,openId:e.id}),o=Number(e.offset)+e.name.length+1})),o<t.length&&s.push({text:t.slice(o,t.length),type:r.text}),s.forEach((e=>{if(e.type!==r.reminder){var t=p(e.text);n=n.concat(t)}else n.push(e)}))}else n=p(t);return i&&n.forEach((e=>{e.type===r.text&&(e.children=u(e.text,new RegExp(i,"gm"),{flagKey:"needHighlight",normalItemFormat:e=>({text:e,type:r.text}),specItemFormat:e=>({text:e,type:r.text,isKeyword:!0})}))})),n},g=a(12),v=a(42),j=a(777),O=a.n(j),f=a(0),M=e=>{var{link:t,className:a=""}=e,[r,n]=Object(i.useState)(t),[l,d]=Object(i.useState)();Object(i.useEffect)((()=>{(e=>{var{url:t,apiFetchDoc:a,apiFetchWiki:r}=e;return new Promise((e=>{var i=new RegExp(/https:\/\/[\w.-]+\/(wiki|docs|docx|sheets|base|mindnotes|file)\/(\w+)/,"gm").exec(t);if(i){var[n,o,s]=i;"wiki"!==o?a({DocsToken:s,DocsType:{docs:"doc",sheets:"sheet",base:"bitable",docx:"docx",file:"file",mindnotes:"mindnote"}[o]}).then((t=>{if(t.data.Entity.URL){var{Title:a,DocsType:r}=t.data.Entity;e([a,r])}else e([n])})).catch((()=>{e([n])})):r({WikiToken:s}).then((t=>{if(t.data.Node.URL){var{Title:a}=t.data.Node;e([a,o])}else e([n])})).catch((()=>{e([n])}))}else e([t])}))})({url:t,apiFetchDoc:c.c.getDocument,apiFetchWiki:c.c.getWikiNode}).then((e=>{var[t,a]=e;n(t),d(a)}))}),[t]);return Object(f.jsxs)(o.p,{className:"text-btn break-word ".concat(a),selectable:!0,onClick:()=>{var e=t.startsWith("www")?"http://".concat(t):t;Object(g.b)("click_link"),Object(s.l)(e)},children:[l&&Object(f.jsx)(o.p,{className:"".concat(O.a.docIcon," iconfont icon-file-link-").concat(l)}),r]})},_=e=>{var{name:t,openId:a,className:r=""}=e;return Object(f.jsx)(o.p,{className:"text-btn break-word ".concat(r),selectable:!0,onClick:e=>{tt.enterProfile({openid:a,top:e.detail.y,left:e.detail.x})},children:t})},y=n.a.memo((e=>{var{text:t,keyword:a="",withQuote:n=!1,reminders:s,className:c=""}=e,[l,d]=Object(i.useState)([]);if(Object(i.useEffect)((()=>{var e=b({text:t,reminders:s});d(e)}),[t,s]),!l.length)return null;var u=Object(f.jsx)(o.a,{children:null==l?void 0:l.map((e=>e.type===r.link?Object(f.jsx)(M,{link:e.text}):e.type===r.reminder?Object(f.jsx)(_,{name:e.text,openId:e.openId}):a?Object(f.jsx)(v.a,{content:e.text,keyword:a}):Object(f.jsx)(o.p,{selectable:!0,children:e.text})))});return Object(f.jsx)(o.p,{selectable:!0,className:"".concat(O.a.text," ").concat(c),children:n?Object(f.jsxs)(o.a,{children:["“",u,"”"]}):u})}))},,,function(e,t,a){"use strict";var r=a(9),i=a(37),n=a(3),o=a(1),s=a(19),c=a.n(s),l=a(154),d=a(285),u=a(65),p=a(0),m=["text","contentStyle","children","textEllipsisStyle","tooltipId","maxWidth"];t.a=e=>{var{text:t="",contentStyle:a,children:h,textEllipsisStyle:b,tooltipId:g,maxWidth:v}=e,j=Object(i.a)(e,m),O=Object(n.useRef)(null),f=Object(n.useRef)(!1),[M,_]=Object(n.useState)();Object(n.useEffect)((()=>()=>{f.current&&D()}),[]);var y=Object(n.useCallback)(Object(r.a)((function*(){if(O.current){var e=yield O.current.isTextEllipsis({cache:!0});_(e)}})),[]);Object(n.useEffect)((()=>{void 0===M&&t&&Object(s.nextTick)((()=>y()))}),[M,t]);var D=()=>{c.a.eventCenter.trigger("global-tooltip",{id:g,visible:!1}),f.current=!1},[N,A]=Object(d.a)({onEnter:e=>{M?(e=>{Object(u.a)("#".concat(e.currentTarget.id)).then((e=>{if(e){var{position:a="top",wordWrap:r=!0,textWrap:i=!0}=j;c.a.eventCenter.trigger("global-tooltip",{id:g,visible:!0,parentElementPosition:e,text:t,position:a,wordWrap:r,textWrap:i,maxWidth:v}),f.current=!0}}))})(e):D()},onLeave:D,delay:300});return Object(p.jsx)(o.r,{style:b,onMouseLeave:A,onMouseEnter:N,children:Object(p.jsx)(l.a,{ref:O,text:h||t,customStyle:a})})}},function(e,t,a){"use strict";a.d(t,"d",(function(){return b})),a.d(t,"c",(function(){return g})),a.d(t,"a",(function(){return j})),a.d(t,"b",(function(){return O})),a.d(t,"e",(function(){return M}));var r=a(9),i=a(5),n=a(300),o=a(578),s=a(24),c=a(20),l=a(16),d=a(330),u=a(2),p=a(30),m=a(12),h=Object(c.c)("pc:src/pc-pages/index/components/list/use-quick-approval.ts"),b=(e,t)=>{var{isQuickApproval:a=!0}=t,{globalStore:r}=s.b;r.enableQuicklyApproval&&Object(o.a)(Object(i.a)(Object(i.a)({},Object(n.a)(e.activeDetail,e.activeDetail)),{},{shouldShowSerialID:!1}),{isQuickApproval:a})},g=function(){var e=Object(r.a)((function*(e){try{var{ProcessID:t}=e;h("cardlistQuickAgree");var a=yield l.c.instancegetCurrentWritableWidgetId({instanceId:t}),{widgetIds:r}=a.data;return Boolean(null==r?void 0:r.length)}catch(e){return!0}}));return function(t){return e.apply(this,arguments)}}(),v={AGREE:(e,t)=>Object(u.t)("PC.AgreeCheckTitle",{person:e,type:t}),REJECT:(e,t)=>Object(u.t)("PC.RejectCheckTitle",{person:e,type:t})},j=(e,t)=>{var{ProcessID:a,DefinitionName:r}=e,{actionType:i,actionConfig:n,requireApprovalComment:o}=t;return{ctxId:"quickly",title:i===p.b.THIRD_PART?Object(u.t)("ApprovalList_Shortcut_Modal_Title",{actionName:null==n?void 0:n.actionName,approvalName:r}):v[i]("",r),actionType:i,hasReason:i!==p.b.THIRD_PART||(null==n?void 0:n.isNeedReason),instanceId:a,isReasonRequired:i===p.b.THIRD_PART&&(null==n?void 0:n.isReasonRequired),isThird:i===p.b.THIRD_PART,isNeedAttachment:i!==p.b.THIRD_PART||(null==n?void 0:n.isNeedAttachment),isReasonTextRequired:o}},O=function(){var e=Object(r.a)((function*(e){var{comment:t,cardInfo:a,buttonConfig:r}=e;if(r&&a){var{params:i,actionApi:n}=(e=>{var{cardInfo:t,buttonConfig:a,comment:r}=e,{ProcessID:i,TaskID:n,Attributes:o,System:s}=t,{actionType:c,actionConfig:u}=a,m=(e=>{var{text:t="",files:a=[]}=e||{text:"",files:[]};return""===t&&!a.length})(r)?"":JSON.stringify(r),h=null==o?void 0:o.find((e=>"action_context"===(null==e?void 0:e.Key)));switch(c){case p.b.AGREE:return{params:{instanceId:i,taskId:n,type:d.a,comment:m,commentVersion:1},actionApi:l.c.instanceoperate};case p.b.REJECT:return{params:{instanceId:i,taskId:n,type:d.b,comment:m,commentVersion:1},actionApi:l.c.instanceoperate};case p.b.THIRD_PART:return{params:{System:s,TaskID:n,ProcessID:i,ActionType:null==u?void 0:u.actionType,ActionContext:(null==h?void 0:h.Value)||"",Comment:m,CommentVersion:1},actionApi:l.c.v2ApplyTaskAction};default:return{}}})({comment:t,cardInfo:a,buttonConfig:r});if(n&&i)return n(i).then((()=>(tt.showToast({icon:"none",title:Object(u.t)("Popup.SuccessHint")}),s.b.indexStore.onFinish(a),r.requireApprovalComment&&Object(m.b)("comment_required",{isAtListPage:"true",isBatchApprove:"false",type:r.actionType.toLocaleLowerCase()}),!0))).catch((e=>{console.warn(e)}))}}));return function(t){return e.apply(this,arguments)}}(),f={[p.b.AGREE]:100,[p.b.APPROVE]:100,[p.b.THIRD_PART]:50,[p.b.REJECT]:10},M=e=>{try{return e.sort(((e,t)=>{var a,r;return(f[(null===(a=t.actionConfig)||void 0===a?void 0:a.actionType)||t.actionType]||f[t.actionType])-(f[(null===(r=e.actionConfig)||void 0===r?void 0:r.actionType)||e.actionType]||f[e.actionType])}))}catch(t){return e}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return A})),a.d(t,"c",(function(){return T})),a.d(t,"d",(function(){return I})),a.d(t,"b",(function(){return C}));var r,i=a(9),n=a(3),o=a(15),s=a(1),c=(a(1316),a(8)),l=a.n(c),d=a(35),u=a(166),p=a(12),m=a(10),h=a(18),b=a(683),g=a(28),v=a(20),j=a(54),O=a(25),f=a(2),M=Object(v.c)("pc:pc-pages/index/components/detail-module/print-preview-modal/index.tsx"),_=j.OFFLINE_ASSETS_PATH.replace(/\/$/,""),y=e=>{var t=new URLSearchParams(e);t.set("random",String(Math.random())),t.set("origin","mp-pc"),t.set("user",O.d.currentUser.encryptedUserId),t.set("lng",f.curLang),t.set("NODE_ENV",g.c),t.set("BUILD_ENV",g.a),t.set(h.w,h.x);var a=new URLSearchParams(e),r="/print-preview?".concat(a.toString(),"&").concat(t);try{return((e,t)=>{var a,r,i=null===(a=(r=tt).getAppDirSync)||void 0===a?void 0:a.call(r);if(!i)throw new Error("The return value of tt.getAppDirSync is empty!");var n=new URL("".concat(i,"/").concat(_,"/index.html?").concat(t));return n.hash="#".concat(e),n.toString()})(r,String(t))}catch(e){var i="[print-preview-modal/util/index.ts] Get iframe offline resource path failed, use the online path";return m.a.error(i,e),M("iframeOfflineAssetsError",{errMsg:i,error:JSON.stringify(e,Object.getOwnPropertyNames(e))}),(e=>{var t="development"===g.c?h.q.Local:Object(b.a)(g.a),a=new URL("/approval/web".concat(e),h.j[t]),r=String(a);return console.log("print-preview url",r),M("commonLog",{func:"getIframeSrc",url:r}),r})(r)}},D=a(0),N="print-modal",A="cli_9feb186350fe900e",T="cli_a3107974c3279013",I="cli_a490ddd5503d1013";!function(e){e.Default="default",e.Customize="customize"}(r||(r={}));var C=Object(o.a)((e=>{var{globalStore:t,globalStore:{printPreviewModalVisible:a,customPrintIsvAuthorized:r,isSupportCustom:o},detailModuleStore:c}=e,[h,b]=Object(n.useState)(!1),g=Object(n.useMemo)((()=>y({isAuthorized:String(r),isSupportCustom:String(o),instanceId:c.printInstanceId,tenantPaidType:c.tenantPaidType?String(c.tenantPaidType):"",allowCustomPrintType:t.allowCustomPrintType?String(t.allowCustomPrintType):""})),[r,o,c.printInstanceId,c.tenantPaidType,t.allowCustomPrintType]);Object(n.useEffect)((()=>{h&&t.printHtml&&d.c.notify({handler:"postPrintData",data:t.printHtml})}),[h,t.printHtml]),Object(n.useEffect)((()=>{c.customPrintPreviewUrl&&d.c.notify({handler:"printPreviewUrl",data:c.customPrintPreviewUrl})}),[c.customPrintPreviewUrl]);var v=Object(n.useCallback)((()=>{Object(p.b)("mp_print_preview_print_close",{print_mode:c.printMode}),b(!1),t.setPrintModalVisible(!1)}),[]);Object(n.useEffect)((()=>{a||(t.setPrintHtmlString(null),d.c.listen()())}),[a]);return Object(D.jsx)(s.a,{children:a?Object(D.jsxs)(s.a,{children:[Object(D.jsx)(s.r,{onClick:v,className:"".concat(N,"-mask")}),Object(D.jsxs)(s.r,{className:"".concat(N,"-modal"),children:[Object(D.jsx)(s.r,{className:"".concat(N,"-modal-header"),children:Object(D.jsx)(s.r,{onClick:v,className:l()("".concat(N,"-modal-close"),"iconfont","icon-reject")})}),Object(D.jsx)(s.r,{className:"".concat(N,"-modal-body"),children:Object(D.jsx)("native-iframe",{src:g,onLoad:e=>{var a;u.b.timeEnd(u.a.PrintClickToShowModal,"mp_print_spend_time");var r=null===(a=e.detail)||void 0===a?void 0:a.channel;M("commonLog",{msg:"[mp-pc] Iframe OnLoad",channel:r}),d.c.setChannel(r),d.c.handlers.set("retry",(()=>{console.log("retry instanceId",c.printInstanceId,d.c.handlers),null==c||c.printByInstanceId(c.printInstanceId)})),d.c.handlers.set("iframeRealLoaded",(()=>{m.a.info("iframe load"),b(!0)})),d.c.handlers.set("showAuthorizedModal",Object(i.a)((function*(){"confirm"===(yield c.waitAuthorizedModalOperateRes(t))&&d.c.notify({handler:"hasAuthorized",data:!0})}))),d.c.handlers.set("printModeChange",(e=>{c.printMode=e.data})),d.c.listen()}})})]})]}):null})}))},,function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wgARCABEAIgDAREAAhEBAxEB/8QAHQAAAQQDAQEAAAAAAAAAAAAAAAECAwUEBwgGCf/EA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LQSIPZ2f8UKAoCgKVOyVS4vxGb+IUBQoCkKWoQoUBQoCtUDYTtonluKI5oo7CVKKGI4cCsMy2So2QoX/2Q=="},function(e,t,a){e.exports={"detail-module-wrapper":"index-module__detail-module-wrapper___2blF_","sub-detail-wrapper":"index-module__sub-detail-wrapper___16oSn","detail-module":"index-module__detail-module___3gTgV","detail-entry":"index-module__detail-entry___wdwf_","detail-entry--bordered":"index-module__detail-entry--bordered___3NjyR","no-active-tip":"index-module__no-active-tip___1RhpN"}},function(e,t,a){e.exports={"widget-viewer":"index-module__widget-viewer___3RZol",title:"index-module__title___gZb-j",value:"index-module__value___3PqPl",block:"index-module__block___1WEnq","block--contrast":"index-module__block--contrast___37iw_","approval-hidden-wrap":"index-module__approval-hidden-wrap___1lnJw","table-cell-viewer":"index-module__table-cell-viewer___3G0VX","table-cell-viewer--number":"index-module__table-cell-viewer--number___39UCa","table-cell-editor--hidden":"index-module__table-cell-editor--hidden___3mvWr","leave-group-v2-viewer":"index-module__leave-group-v2-viewer___2Nvfv","leave-group-v2-viewer-view-detail":"index-module__leave-group-v2-viewer-view-detail___rSmBy"}},function(e,t,a){e.exports={base:"index-module__base___1CuSQ",mask:"index-module__mask___124LZ",main:"index-module__main___1CTc3",hidden:"index-module__hidden___3tUU6",content:"index-module__content___24lKT",iKnow:"index-module__iKnow___3D9Jt",arrow:"index-module__arrow___aAv0H"}},function(e,t,a){e.exports={"self-inspection":"self-inspection-module__self-inspection___9fe26","devtools-btn":"self-inspection-module__devtools-btn___3ubOh"}},function(e,t,a){e.exports={navigation:"index-module__navigation___2ja7U",leftSide:"index-module__leftSide___--aKM",rightSide:"index-module__rightSide___MkLwe",action:"index-module__action___2FLYB",title:"index-module__title___5BX0A",action1:"index-module__action1___Tz38P"}},,,,,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(3),i=e=>{var{onEnter:t,onLeave:a,beforeEnter:i,delay:n=200,leaveDelay:o=0}=e,s=Object(r.useRef)(null),c=Object(r.useRef)(null);return[e=>{c.current&&(clearTimeout(c.current),c.current=null),null==i||i(),n<0||(s.current=setTimeout((()=>null==t?void 0:t(e)),n))},e=>{s.current&&(clearTimeout(s.current),s.current=null),o<=0?null==a||a(e):c.current=setTimeout((()=>{null==a||a(e)}),o)}]}},function(e,t,a){"use strict";a.d(t,"a",(function(){return D}));var r,i=a(6),n=a(3),o=a(1),s=a(8),c=a.n(s),l=a(18),d=a(626),u=a.n(d),p=a(195),m=a.n(p),h=a(2),b=a(108),g=a(744),v=(a(1186),a(157)),j=a(804),O=a(268),f=a(33),M=a(65),_=a(72),y=a(0);!function(e){e.Top="top",e.Bottom="bottom"}(r||(r={}));class D extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"state",{isActive:!1,searchKey:"",isStateFocus:!1,key:1,loadIndex:50,dropdownPosition:r.Bottom,uniqId:Object(_.c)()}),Object(i.a)(this,"handleMaskClick",(()=>{this.setState({searchKey:"",isActive:!1,loadIndex:50}),this.setFocus(!1),this.updatekey()})),Object(i.a)(this,"handleFakeInputClick",(()=>{var{disabled:e=!1,onShowSelect:t}=this.props;e||(this.setState({isActive:!0}),this.setFocus(!0),null==t||t())})),Object(i.a)(this,"handleItemClick",(e=>{var{onChange:t,range:a,value:r,selectAgainClear:i=!0}=this.props,n=a.findIndex((t=>t===e));t(r===n&&i?-1:n),this.setState({searchKey:"",isActive:!1,loadIndex:50}),this.setFocus(!0),this.updatekey()})),Object(i.a)(this,"handleClear",(e=>{e.stopPropagation();var{onChange:t,onClear:a,onSearchClear:r}=this.props;null==a||a(),null==t||t(-1),this.setState({searchKey:"",isActive:!1,loadIndex:50}),null==r||r()})),Object(i.a)(this,"handleLoadMore",Object(v.a)((()=>{var{loadIndex:e}=this.state,{range:t,optionHasMore:a,optionsSizeMax:r,useSearch:i}=this.props;e>=t.length&&!i||(this.setState({loadIndex:e+50}),a&&!r&&setTimeout((()=>{var e,t;null===(e=this.props)||void 0===e||null===(t=e.onLoadMore)||void 0===t||t.call(e)}),400))}),200,{leading:!0})),Object(i.a)(this,"setFocus",(e=>{this.setState({isStateFocus:!e},(()=>setTimeout((()=>{this.setState({isStateFocus:e})}),0)))})),Object(i.a)(this,"onReload",(()=>{var e,t;null===(e=this.props)||void 0===e||null===(t=e.onLoadMore)||void 0===t||t.call(e)})),Object(i.a)(this,"updatekey",(()=>{var{key:e}=this.state;this.setState({key:e+1})})),Object(i.a)(this,"handleInputChange",Object(v.a)((e=>{var t,a,{value:r}=e.detail;this.setState({searchKey:r}),this.props.useSearch&&(null===(t=this.props)||void 0===t||null===(a=t.onSearch)||void 0===a||a.call(t,r))}),500))}componentDidUpdate(e,t){!t.isActive&&this.state.isActive&&this.props.autoChangePosition&&setTimeout((()=>{Promise.all([Object(M.a)(".approval-select-search.id-".concat(this.state.uniqId," .items")),Object(M.a)(".approval-select-search.id-".concat(this.state.uniqId))]).then((e=>{var[t,a]=e;if(t&&a){var i=tt.getSystemInfoSync();a.bottom+t.height+4>i.windowHeight?this.setState({dropdownPosition:r.Top}):this.setState({dropdownPosition:r.Bottom})}}))}),10)}componentWillUpdate(e,t){t.isActive||t.isActive===this.state.isActive||Object(j.a)((()=>{Object(f.r)(!1)}),300)()}renderFakeInput(){var{range:e=[],value:t=0,placeholder:a,vwidth:r=130,useVWidth:i=!0,placeholderStyle:n,disabled:s=!1,hasError:d,allowClear:u=!1,inGroup:p=!1,useSearch:h=!1}=this.props,{isActive:g,searchKey:v,isStateFocus:j}=this.state,O=(e[t]||"").split(l.d)[0],f=c()("fake-input-wrapper",{"fake-input-wrapper-disabled":s,"fake-input-wrapper-error":d}),M=r-12,_="string"==typeof t?t:e[t];return Object(y.jsxs)(o.r,{onClick:this.handleFakeInputClick,className:f,children:[g&&Object(y.jsx)(b.a,{value:g?v:e[t],placeholder:e[t]||a,placeholderStyle:n,onInput:this.handleInputChange,style:i?{border:"none",width:"".concat(M,"px")}:{border:"none"},focus:j,className:"fake-input-active-placeholder"}),!g&&e[t]&&Object(y.jsx)(o.p,{style:i?{width:"".concat(M,"px")}:{},className:"fake-input-value",children:e[t].includes(l.d)?O:e[t]}),!g&&!e[t]&&_&&Object(y.jsx)(o.p,{style:i?{width:"".concat(M,"px")}:{},className:"fake-input-value",children:_}),!g&&!e[t]&&!_&&h&&Object(y.jsx)(o.p,{style:i?{width:"".concat(M,"px")}:{},className:"fake-input-value fake-input-value-placeholder",children:a}),!g&&!e[t]&&!h&&Object(y.jsx)(o.p,{style:i?{width:"".concat(M,"px")}:{},className:"fake-input-value fake-input-value-placeholder",children:a}),u&&Object(y.jsx)(o.r,{className:c()("approval-clear-icon",{hidden:!e[t]}),onClick:e=>this.handleClear(e),children:Object(y.jsx)(o.r,{className:"iconfont icon-icon_close_filled"})}),p?Object(y.jsx)(o.r,{className:c()("iconfont icon-icon_down_outlined1 icon_down",g&&"active")}):Object(y.jsx)(o.g,{className:c()("icon",g&&"active"),src:m.a})]},this.state.key)}renderMask(){var{isActive:e}=this.state;return e&&Object(y.jsx)(o.r,{className:"mask",onClick:this.handleMaskClick})}renderOptionsEmpty(e){var{unValidExtraWidgetName:t,loading:a,notFoundContent:r,optionsError:i,parentNotFilled:n}=this.props,{searchKey:s}=this.state;return a?Object(y.jsx)(o.r,{className:"state",children:Object(y.jsx)(g.a,{loading:!0})}):0===e.length?i?Object(y.jsxs)(o.r,{className:"state left",children:[Object(h.t)("approval-web_UnableLoad_EmptyState"),Object(y.jsx)(o.p,{onClick:()=>{var e,t;return null===(e=(t=this.props).retry)||void 0===e?void 0:e.call(t)},className:"action",children:Object(h.t)("approval-mp_ClickRetry_Button")})]}):t&&!s?Object(y.jsx)(o.r,{className:"state left",children:Object(h.t)("PC.PleaseFilledFirst",{name:t})}):n&&!s?Object(y.jsx)(o.r,{className:"state left",children:Object(h.t)("form.account.pleaseSelectFirst",{name:n})}):0===e.length&&Object(y.jsx)(o.r,{className:c()("state","left"),children:r||Object(h.t)("approval-web_NoResultsFound_Desc")}):void 0}renderSearchState(e){var{loading:t,optionsError:a,optionHasMore:r,optionsSizeMax:i,unValidExtraWidgetName:n}=this.props,{searchKey:s}=this.state;return s&&n?Object(y.jsx)(o.r,{className:"state",children:Object(h.t)("PC.PleaseFilledFirst",{name:n})}):s||e.length?a?Object(y.jsxs)(o.r,{className:"state",children:[Object(h.t)("approval-web_UnableLoad_EmptyState"),Object(y.jsx)(o.p,{onClick:this.onReload,className:"action",children:Object(h.t)("approval-web_TryAgain_Desc")})]}):i?Object(y.jsxs)(o.r,{className:"state",children:["- ",Object(h.t)("approval-web_RefineSearch_Desc")," -"]}):t||r?Object(y.jsx)(o.r,{className:"state",children:Object(y.jsx)(g.a,{loading:!0})}):e.length?null:Object(y.jsx)(o.r,{className:c()("state","left"),children:Object(h.t)("approval-web_NoResultsFound_Desc")}):Object(y.jsx)(o.r,{className:c()("state","left"),children:Object(h.t)("approval-web_SearchBuilding_Placeholder")})}renderItems(){var{range:e,value:t,height:a="300px",useSearch:r,loading:i}=this.props,{isActive:n,searchKey:s,loadIndex:d}=this.state,p=e.slice(0,d);return n&&s&&(p=e.filter((e=>e.toLowerCase().includes(s.toLowerCase().trim()))).slice(0,d)),n&&Object(y.jsxs)(o.n,{className:c()("items",this.state.dropdownPosition),style:{maxHeight:a},scrollY:!0,lowerThreshold:100,onScrollToLower:this.handleLoadMore,children:[p.length>0&&!i&&p.map(((a,r)=>{var i=a===e[t],n=a.split(l.d)[0];return Object(y.jsxs)(o.r,{className:c()("item",{active:i}),onClick:()=>{this.handleItemClick(a)},children:[Object(y.jsx)(o.r,{className:"item-text",children:Object(y.jsx)(O.a,{tooltipId:Object(f.h)(),text:n,wordWrap:!1,maxWidth:320})}),Object(y.jsx)(o.g,{src:u.a,className:"item-selected-icon"})]},"".concat(a,"-").concat(r))})),r?this.renderSearchState(p):this.renderOptionsEmpty(p)]})}render(){return Object(y.jsxs)(o.r,{className:c()("approval-select-search",this.props.className,"id-".concat(this.state.uniqId)),children:[this.renderFakeInput(),this.renderMask(),this.renderItems()]})}}},function(e,t,a){"use strict";var r=a(6),i=a(3),n=a(1),o=a(31),s=a.n(o),c=a(124),l=a(33),d=a(2),u=a(57),p=a(251),m=a(327),h=a(644),b=a(645),g=a.n(b),v=(a(1209),a(0));class j extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"onReset",(()=>{var{onChange:e}=this.props;null==e||e(null)})),Object(r.a)(this,"handleDateChange",(e=>{var t=this.getNormalizeValue(this.props.value||s()()),a=s()(e.detail.value);console.log("====handleDateChange",a,t),this.onChange(t.year(a.year()).month(a.month()).date(a.date()))})),Object(r.a)(this,"handleTimeChange",(e=>{var t=this.getNormalizeValue(this.props.value||s()()),a=e.detail.value.split(":");this.onChange(t.hour(Number(a[0])).minute(Number(a[1])))})),Object(r.a)(this,"handleHalfDayChange",(e=>{var t=this.getNormalizeValue(this.props.value||s()());this.onChange(t.hour(12*Number(e.detail.value)))}))}onChange(e){var{onChange:t,isHalfHour:a}=this.props;a&&([0,30].includes(Number(e.minute()))||(e=e.minute(0))),t(e)}getNormalizeValue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.value,{type:t}=this.props;if(e)switch(t){case u.a.DATE:return e.hour(0).minute(0).second(0).millisecond(0);case u.a.DATE_AND_TIME:return e.second(0).millisecond(0);case u.a.DATE_HALF:return e.hour(e.hour()>=12?12:0).minute(0).second(0).millisecond(0)}return e}renderDate(){var{placeholder:e,hasError:t,disabled:a=!1}=this.props,r=this.getNormalizeValue();return Object(v.jsx)(n.r,{className:"date",children:Object(v.jsx)(m.a,{hasError:t,value:r,disabled:a,placeholder:e,onChange:this.handleDateChange})})}renderDateAndTime(){var{placeholder:e,isHalfHour:t,hasError:a,disabled:r=!1}=this.props,i=this.getNormalizeValue();return Object(v.jsxs)(n.r,{className:"date-and-time",children:[Object(v.jsx)(n.r,{className:"date-wrap",children:Object(v.jsx)(m.a,{value:i,placeholder:e,hasError:a,disabled:r,onChange:this.handleDateChange})}),Object(v.jsx)(n.r,{className:"time-wrap",children:Object(v.jsx)(h.a,{isHalfHour:t,value:i,disabled:r,hasError:a,placeholder:e,onChange:this.handleTimeChange})})]})}renderDateHalf(){var{placeholder:e,hasError:t,disabled:a=!1}=this.props,r=this.getNormalizeValue(),i=-1;return r&&(i=r.hour()?u.b.AFTERNOON:u.b.MORNING),Object(v.jsxs)(n.r,{className:"date-half",children:[Object(v.jsx)(n.r,{className:"date-wrap",children:Object(v.jsx)(m.a,{value:r,disabled:a,hasError:t,placeholder:e,onChange:this.handleDateChange})}),Object(v.jsx)(n.r,{className:"half-wrap",children:Object(v.jsx)(p.a,{placeholder:e,hasError:t,disabled:a,range:Object(l.g)(u.b).map((e=>Object(d.t)(u.c[e]))),value:i,onChange:this.handleHalfDayChange})})]})}render(){var{type:e,value:t}=this.props;return Object(v.jsxs)(n.r,{className:"approval-date-time",children:[e===u.a.DATE&&this.renderDate(),e===u.a.DATE_AND_TIME&&this.renderDateAndTime(),e===u.a.DATE_HALF&&this.renderDateHalf(),t&&Object(v.jsx)(n.g,{src:g.a,className:"approval-date-time__resetButton",onClick:this.onReset})]})}}Object(r.a)(j,"defaultProps",{type:u.a.DATE,placeholder:"",value:null,isHalfHour:!1,onChange:c.a}),t.a=j},function(e,t,a){"use strict";a.d(t,"a",(function(){return b})),a(3);var r=a(1),i=a(280),n=a(8),o=a.n(n),s=a(42),c=a(652),l=a.n(c),d=a(156),u=a(642),p=a(25),m=a(98),h=(a(1225),a(0)),b=e=>{var{itemInfo:t,keyword:a="",onClick:n,onDelete:c,deletable:b=!1,disable:g=!1,showProfile:v=!1,displayMode:j="user"}=e,{id:O,name:f,avatarUrl:M}=t,_=()=>{var e=Object(m.c)(t,p.d);return e?"user"===j?"".concat(f," (").concat(e,")"):"".concat(e,"/").concat(f):f},y="capsule-".concat(O,"-").concat(Object(i.a)()),D=()=>{v&&Object(d.a)({userId:t.id,openId:t.openId,selector:"#".concat(y)}),null==n||n(t)},N="user-capsule";return Object(h.jsxs)(r.r,{id:y,className:o()("".concat(N),{["".concat(N,"--disabled")]:g}),children:[Object(h.jsx)(r.g,{className:"".concat(N,"__avatar"),src:M,onClick:D}),Object(h.jsx)(r.r,{className:"".concat(N,"__name"),onClick:D,children:Object(h.jsx)(u.a,{text:_(),arrow:!0,textWrap:!0,textStyle:{maxWidth:240},children:Object(h.jsx)(s.a,{content:_(),keyword:a,style:{wordBreak:"keep-all",whiteSpace:"nowrap"}})})}),b&&Object(h.jsx)(r.g,{className:"".concat(N,"__delete"),src:l.a,onClick:()=>{null==c||c(t)}})]},O)};b.Group=e=>{var{itemList:t=[],children:a,keyword:i,error:n=!1,disable:s=!1,addable:c=!1,deletable:l=!1,showProfile:d,onDelete:u,onAdd:p,displayMode:m}=e,g="user-capsule-group";return Object(h.jsxs)(r.r,{className:o()("".concat(g),{["".concat(g,"--error")]:n,["".concat(g,"--disable")]:s}),children:[c&&Object(h.jsx)(r.r,{onClick:()=>{null==p||p()},className:"".concat(g,"__add"),children:"+"}),a||t.map(((e,t)=>Object(h.jsx)(b,{itemInfo:e,displayMode:m,disable:s,deletable:l,showProfile:d,keyword:i,onDelete:()=>null==u?void 0:u(e,t)},"user-capsule-".concat(e.id))))]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return F}));var r,i,n,o,s,c,l=a(5),d=a(9),u=a(11),p=a(6),m=a(7),h=(a(56),a(3)),b=a(1),g=a(15),v=a(4),j=a(8),O=a.n(j),f=a(124),M=a(48),_=a(60),y=a(288),D=a(98),N=a(16),A=a(14),T=a(12),I=a(17),C=a(10),x=a(68),S=a(89),w=a(200),L=a(523),E=a(156),k=a(25),z=a(41),R=a(239),P=a(290),U=(a(1287),a(44)),B=a(0),F=Object(g.a)((c=class extends h.Component{constructor(e){super(e),Object(p.a)(this,"state",{isSelectModalOpen:!1}),Object(u.a)(this,"userDepartmentList",n,this),Object(u.a)(this,"chosenIds",o,this),Object(p.a)(this,"updateUserDepartments",Object(v.k)(this._updateUserDepartments)),Object(u.a)(this,"handleAddBtnClick",s,this),Object(p.a)(this,"handleDeleteBtnClick",(e=>{this.removeUser(e)})),Object(p.a)(this,"getUserTagText",(e=>{var{name:t}=e,a=Object(D.c)(e,k.d);return a?"".concat(t," (").concat(a,")"):t})),this.onUsersChanged()}UNSAFE_componentWillReceiveProps(e){var{widget:{data:{users:t,enableDefaultValue:a}},inTable:r}=e;!r&&t.length&&a&&(this.onUsersChanged(),this.updateFakeWidgets())}render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!t)return null;if(a)return this.renderTableCell();var{data:{name:r,required:i,validationError:n,hasHistory:o,placeholder:s,disabled:c=!1}}=e,l=O()("widget-editor contact-editor",{"contact-disabled":c});return Object(B.jsxs)(b.r,{className:l,children:[Object(B.jsxs)(M.a,{required:i,children:[Object(B.jsx)(b.p,{className:"contact-editor-text",children:r}),Object(B.jsx)(b.p,{className:"contact-editor-placeholder",children:s}),o&&Object(B.jsx)(z.a,{ctxId:t,widget:e},e.id)]}),this.renderUsers(),Object(B.jsx)(_.a,{text:n}),this.renderChildren()]})}updateFakeWidgets(){var{userDepartmentList:e}=this;if(e.length){var{ctxId:t,widget:a}=this.props,{configurableFormStore:r}=Object(A.d)(t),{data:{visible:i,multi:n,children:o,users:s}}=a;if(!n&&null!=o&&o.length){var[c]=o,l=Object(R.e)(1===e.length?e[0]:e.find((e=>{var t;return e.departmentId===(null===(t=c.data.value)||void 0===t?void 0:t.value)}))||e.find((e=>e.isMainDepartment))),d=e.map((e=>Object(R.e)(e)));Object.assign(c.data,{value:l,options:d,visible:Boolean(i&&d.length>1&&s.length)}),r.addWidgetDescendantsToMap(c),r.handleWidgetChange(c.id)}}}*_updateUserDepartments(){var{widget:e,ctxId:t}=this.props,{data:{users:a,multi:r,children:i}}=e,{configurableFormStore:n}=Object(A.d)(t);if(!r&&null!=i&&i.length&&!a.length){var[o]=i;return Object.assign(o.data,{visible:!1,value:null}),void n.handleWidgetChange(o.id)}var[s]=a;1===a.length&&null!=s&&s.openId&&(this.userDepartmentList=yield Object(R.d)(s.id),this.updateFakeWidgets())}onUsersChanged(){var e=this;return Object(d.a)((function*(){var{ctxId:t,widget:a,onContactChange:r=f.a}=e.props,{configurableFormStore:i}=Object(A.d)(t),{data:{users:n}}=a;r(n),yield e.updateUserDepartments(),i.handleWidgetChange(a.id)}))()}renderChildren(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{data:{users:a,multi:r,children:i}}=e;if(r||null==i||!i.length)return null;var[n]=i,{data:{options:o=[]}}=n;return 1===a.length&&o.length>1?Object(B.jsx)(b.r,{className:"contact-editor__children",children:Object(B.jsx)(P.a,{ctxId:t,widget:n},n.id)}):null}renderUsers(){var{widget:e}=this.props,{data:{users:t,multi:a,disabled:r=!1}}=e;return Object(B.jsx)(y.a.Group,{deletable:!0,showProfile:!0,onDelete:(e,t)=>this.handleDeleteBtnClick(t),addable:t.length<1||a,onAdd:this.handleAddBtnClick,error:Boolean(e.data.validationError),disable:r,itemList:t})}getUsers(){var e=this;return Object(d.a)((function*(){var{widget:{data:{ignore:t,multi:a,users:r,range:i}},ctxId:n}=e.props,{configurableFormStore:o}=Object(A.d)(n);r.every((e=>e.openId))?e.chosenIds=r.map((e=>e.openId)):e.chosenIds=yield N.c.userqueryUsers({userIds:r.map((e=>e.id))}).then((e=>e.data.userList.map((e=>e.openId)))).catch((()=>[])),C.a.info("contact chosenIds",Object(v.u)(e.chosenIds)),C.a.info("contact disableCrossTenant",e.props.disableCrossTenant);try{var s,{validUsers:c}=yield Object(D.a)({option:Object(l.a)(Object(l.a)({ignore:t,multi:a,externalContact:!1,choosenIds:e.chosenIds},k.d.isBytedance?{exEmployeeFilterType:k.d.isBytedance&&null!=i&&i.length?null!=i&&i.includes(R.a.employee)&&null!=i&&i.includes(R.a.exEmployee)?R.b.all:(null==i?void 0:i[0])===R.a.exEmployee?R.b.exEmployee:R.b.employee:R.b.employee}:{}),{},{instanceId:null===(s=o.instanceInfo)||void 0===s?void 0:s.instanceId,disableCrossTenant:e.props.disableCrossTenant}),globalStore:k.d,queryUsers:N.c.userqueryUsers,showToast:!0,from:"pc"});return c.map((e=>Object(l.a)(Object(l.a)({},e),{},{id:String(e.userId),tenantId:String(e.tenantId)})))}catch(e){var d;return C.a.error("contact getUser failed",e),Object(T.b)(I.f.ApprovalError,{location:"in function getUsers at src/components/configurable-form/components/widgets/contact/editor/index.tsx",message:Object(U.a)(e)}),null!==(d=e.errMsg)&&void 0!==d&&d.includes("cancel")?null:[]}}))()}updateUsers(e){var{widget:t}=this.props,{data:a}=t,{multi:r}=a;e&&(e.length||r)&&(a.users=e.slice(0,a.multi?void 0:1),this.onUsersChanged())}removeUser(e){var{widget:t}=this.props,{data:{users:a}}=t;a.splice(e,1),this.onUsersChanged()}renderTableCell(){var e,{widget:t,ctxId:a}=this.props;if(!a)return null;var{id:r,data:{placeholder:i,users:n,validationError:o="",writable:s,multi:c}}=t,l="widget-id-".concat(r.replace(/\W+/g,"")),{length:d}=n,u=1===d?"100%":"".concat(190-8*String(d).length,"px"),p=1===d?"100%":"35px";return Object(B.jsxs)(b.a,{children:[Object(B.jsx)(x.a,{noBorder:!0,placeholder:i,disabled:!s,error:o||"",suffix:s&&Object(B.jsx)(S.a,{name:"fold",size:20,color:"#646A73"}),className:l,customStyle:{position:"absolute",top:0},onClick:()=>{this.handleAddBtnClick()},children:n.length?Object(B.jsx)(w.a.Group,{maxTagCount:"responsive",className:"cell-user-list",customStyle:{marginBottom:n.length?"-4px":""},countTagProps:{type:"option",shape:"round"},children:null===(e=n.slice(0,c?void 0:1))||void 0===e?void 0:e.map(((e,t)=>Object(B.jsx)(w.a,{backgroundColor:"rgba(31, 35, 41, 0.1)",type:"avatar",closable:s,onClose:()=>this.removeUser(t),renderIcon:Object(B.jsx)(L.a,{url:e.avatarUrl,size:40,userId:e.id,customSelector:".".concat(l)}),onClick:t=>{t.stopPropagation(),Object(E.a)({userId:null==e?void 0:e.id,openId:null==e?void 0:e.openId,selector:".".concat(l)})},text:this.getUserTagText(e),customStyle:{maxWidth:u,minWidth:p,width:"fit-content"}},e.id)))}):null}),Object(B.jsx)(x.a,{customStyle:{visibility:"hidden",pointerEvents:"none"},noBorder:!0,disabled:!s,placeholder:i,value:"",error:o||"",suffix:Object(B.jsx)(S.a,{name:"time_outlined",size:16,color:"#646A73"})})]})}},Object(p.a)(c,"defaultProps",{onContactChange:f.a}),i=c,n=Object(m.a)(i.prototype,"userDepartmentList",[v.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),o=Object(m.a)(i.prototype,"chosenIds",[v.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(m.a)(i.prototype,"updateFakeWidgets",[v.f],Object.getOwnPropertyDescriptor(i.prototype,"updateFakeWidgets"),i.prototype),Object(m.a)(i.prototype,"getUsers",[v.f],Object.getOwnPropertyDescriptor(i.prototype,"getUsers"),i.prototype),s=Object(m.a)(i.prototype,"handleAddBtnClick",[v.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Object(d.a)((function*(){var{widget:t}=e.props,{data:{disabled:a=!1}}=t;if(!a){var{isSelectModalOpen:r}=e.state;if(!r){e.setState({isSelectModalOpen:!0});var i=yield e.getUsers();e.updateUsers(i),e.setState({isSelectModalOpen:!1})}}}))}}),Object(m.a)(i.prototype,"updateUsers",[v.f],Object.getOwnPropertyDescriptor(i.prototype,"updateUsers"),i.prototype),Object(m.a)(i.prototype,"removeUser",[v.f],Object.getOwnPropertyDescriptor(i.prototype,"removeUser"),i.prototype),r=i))||r;t.b=F},function(e,t,a){"use strict";a.d(t,"a",(function(){return fi}));var r,i,n,o,s,c,l,d,u,p,m,h,b=a(3),g=a.n(b),v=a(15),j=a(13),O=a(66),f=a(14),M=a(698),_=a(5),y=a(713),D=a(139),N=a(0),A=e=>{var{widget:{data:{token:t,isRollbackToStart:a,from:r}}}=e;return r!==D.a.detail||t||a?Object(N.jsx)(y.a,Object(_.a)(Object(_.a)({type:r},e),{},{className:"widget-editor"})):null},T=a(729),I=e=>Object(N.jsx)(T.a,Object(_.a)({},e)),C=a(618),x=a(622),S=a(9),w=a(6),L=a(7),E=a(1),k=a(4),z=a(8),R=a.n(z),P=a(12),U=a(35),B=a(48),F=a(60),Y=a(36),Q=a(16),G=a(2),W=a(472),V=a.n(W),H=a(473),Z=a.n(H),q=a(156),K=a(10),J=a(17),X=a(20),$=a(44),ee=(a(1281),a(155)),te=Object(X.c)("pc:src/components/configurable-form/components/widgets/approvaler/editor/index.tsx"),ae=Object(v.a)((i=class extends b.Component{constructor(){var e;super(...arguments),e=this,Object(w.a)(this,"handleAddBtnClick",Object(S.a)((function*(){var{widget:{data:{users:t}}}=e.props,a=yield e.getUser();a&&e.setUser(a,t.length)}))),Object(w.a)(this,"handleDeleteBtnClick",(e=>{this.removeUser(e)})),Object(w.a)(this,"handleAvatarImgClick",((e,t)=>{var{widget:a}=this.props,{data:{users:{[e]:{id:r,openId:i}}}}=a;Object(q.a)({userId:r,openId:i,selector:".avatar-".concat(e)})}))}render(){var{widget:e}=this.props;if(!e)return null;var{data:{name:t,required:a,validationError:r}}=e;return Object(N.jsxs)(E.r,{className:"widget-editor approvaler-editor",children:[Object(N.jsx)(B.a,{required:a,children:t}),this.renderUsers(),Object(N.jsx)(F.a,{text:r})]})}renderUsers(){var{widget:{data:{users:e}}}=this.props;return Object(N.jsxs)(E.r,{className:"users",children:[e.map(((e,t)=>{var{id:a,name:r,avatarUrl:i}=e;return Object(N.jsxs)(E.r,{className:"item user",children:[Object(N.jsx)(E.g,{className:R()("avatar","avatar-".concat(t)),src:i,onClick:e=>this.handleAvatarImgClick(t,e)}),Object(N.jsx)(E.r,{className:"name",children:r}),Object(N.jsx)(E.g,{className:"delete-btn",src:Z.a,onClick:()=>this.handleDeleteBtnClick(t)}),Object(N.jsx)(E.r,{className:"iconfont icon-nextstep"})]},"".concat(a,"-").concat(t))})),Object(N.jsx)(E.r,{className:"item add-btn",onClick:this.handleAddBtnClick,children:Object(N.jsx)(E.g,{src:V.a})})]})}getUser(){return Object(S.a)((function*(){try{var e=yield Object(Y.c)({ignore:!1,multi:!1,externalContact:!1}),{data:[{openId:t}]}=e,a=yield Object(ee.a)({api:Q.c,params:{openIds:[t]},cacheOpenId:!0});if(!a.data)return K.a.error("approvaler editor queryUser failed",[t]),te("commonOnError",{message:"approvaler editor queryUser failed",originOpenIds:[t]}),null;var r=a.data,{userList:[i]}=r;return K.a.info("getUser user from api",i),Object(_.a)(Object(_.a)({},i),{},{id:String(i.userId),tenantId:String(i.tenantId||"")})}catch(e){K.a.error("approval getUser failed",e),Object(P.b)(J.f.ApprovalError,{location:"in function getUser at src/components/configurable-form/components/widgets/approvaler/editor/index.tsx",message:Object($.a)(e)}),te("commonOnError",{errorMsg:Object($.a)(e),method:"getUser",message:"get user fail"})}return null}))()}getUserIdByIndex(e){var{widget:{data:{users:t}}}=this.props;return e<0||t.length<=e?null:t[e].id}setUser(e,t){var{ctxId:a,widget:r}=this.props,{configurableFormStore:i}=Object(f.d)(a),{data:{users:n}}=r;e.id!==this.getUserIdByIndex(t-1)&&e.id!==this.getUserIdByIndex(t+1)?(K.a.info("setUser users",Object(k.u)(n),e),t>=n.length?n.push(e):n[t]=e,i.handleWidgetChange(r.id)):U.b.showToast({title:Object(G.t)("formApprovers.NotDuplicated"),icon:"info",duration:3e3})}removeUser(e){var{ctxId:t,widget:a}=this.props,{configurableFormStore:r}=Object(f.d)(t),{data:{users:i}}=a;i.splice(e,1),i.length&&this.getUserIdByIndex(e)===this.getUserIdByIndex(e-1)&&(i.splice(e,1),U.b.showToast({title:Object(G.t)("formApprovers.MergeSameApproverHint"),icon:"info",duration:3e3})),r.handleWidgetChange(a.id)}},Object(L.a)(i.prototype,"setUser",[k.f],Object.getOwnPropertyDescriptor(i.prototype,"setUser"),i.prototype),Object(L.a)(i.prototype,"removeUser",[k.f],Object.getOwnPropertyDescriptor(i.prototype,"removeUser"),i.prototype),r=i))||r,re=ae,ie=a(157),ne=a(25),oe=a(525),se=a(121),ce=a(40),le=a(99),de=a(179),ue=a(41),pe=a(650),me=a(19),he=a.n(me),be=a(72),ge=a(204),ve=a(65),je=a(180),Oe=a(651),fe=a(335),Me=a(183),_e=a(805),ye=a(744),De=a(325),Ne=(a(1282),a(532)),Ae=(a(1283),e=>{var{percentage:t=0,color:a}=e,r=t;return r<0&&(r=0),r>100&&(r=100),Object(N.jsxs)(E.r,{className:"progress-container",children:[Object(N.jsx)(E.r,{className:"progress-bar",children:Object(N.jsx)(E.r,{className:"progress-bar-status",style:{backgroundColor:a,width:"".concat(r,"%")}})}),Object(N.jsx)(E.r,{className:"progress-text",children:"".concat(r,"%")})]})}),Te=a(31),Ie=a.n(Te),Ce=a(376),xe=a(24),Se=Object(X.c)("pc:src/components/configurable-form/components/widgets/detail/table-editor/index.tsx"),we="",Le="",Ee=Object(v.a)((e=>{var t,a,r,{widget:i,ctxId:o,onDelete:s,onAdd:c,onCopy:l,isInDetailPage:d,hasFieldDeletePermission:u}=e,{data:{name:p,groups:m,hasHistory:h,required:v}}=i,O=Object(b.useMemo)((()=>"table-detail-editor-".concat(Object(be.c)())),[]),M=Object(b.useMemo)((()=>"table_".concat(Object(be.c)())),[]),[y,D]=Object(b.useState)(null),[A,T]=Object(b.useState)({visible:!1}),[I,C]=Object(b.useState)({left:0,top:0,width:0,height:0}),[x,w]=Object(b.useState)(""),[L,k]=Object(b.useState)(),z=(e,t,a)=>{Object(me.nextTick)(Object(S.a)((function*(){var r=yield Promise.all([Object(ve.a)("#".concat(O)),Object(ve.a)("#".concat(e.currentTarget.id))]).then((e=>{var[t,a]=e;return a&&t?Object(_.a)(Object(_.a)({},a),{},{left:a.left-t.left,top:a.top-t.top}):null}));if(r){var{top:i,left:n,width:o,height:s}=r;D({widget:t,widgetProps:a}),C({top:i-1,left:n,height:s-1,width:o+1})}})))},U=(e,t,a)=>{if(!t.data.disabled&&t.data.visible&&(t.data.writable||Ne.a.includes(t.type))){var r=t.data.writable?"editing":"showing";switch(t.type){case j.c.AMOUNT_INPUT:var i,{key:n}=W[a];(!n.split("+>")[1]||"unit"===n.split("+>")[1]&&(null===(i=t.data.currencyRange)||void 0===i?void 0:i.length)>1)&&z(e,t,{subCellType:n.split("+>")[1],columnIndex:a});break;case j.c.TEXTAREA:case j.c.SINGLE_INPUT:case j.c.SINGLE_SELECT:case j.c.SINGLE_SELECT_V2:case j.c.MULTI_SELECT_V2:if("showing"===r&&!t.data.value)break;var{key:o}=W[a];z(e,t,{subCellType:o.split("+>")[1],columnIndex:a,inTable:r});break;case j.c.DESC:case j.c.NUMBER_INPUT:case j.c.CALCULATION_FORMULA:var{key:s}=W[a];z(e,t,{subCellType:s.split("+>")[1],columnIndex:a});break;case j.c.DATE_TIME:var{key:c}=W[a];"halfday"===c.split("+>")[1]?z(e,t,{subCellType:c.split("+>")[1],columnIndex:a}):D({});break;case j.c.DEPARTMENT:case j.c.CONTACT:"showing"===r&&z(e,t,{inTable:r});break;case j.c.ADDRESS:var{key:l}=W[a],d=l.split("+>")[1];"detail"===d?z(e,t,{subCellType:d,inTable:r}):D({});break;case j.c.TELEPHONE:var{key:u}=W[a],p=u.split("+>")[1];"phoneNumber"===p?z(e,t,{subCellType:p}):D({});break;default:D(null)}}},[F,Y]=(e=>{var t=new Set,a=e=>{e.data.visible&&(e.data.writable||e.data.readable&&e.data.isRestored)&&t.add(e.id.split("|")[0])};return null==e||e.forEach((e=>{var t;null===(t=e.widgets)||void 0===t||t.forEach((e=>{var t;a(e),null===(t=e.data.children)||void 0===t||t.forEach((e=>a(e)))}))})),["cols:".concat([...t].map((e=>e)).join("/")," rows:").concat(e.map((e=>e.id)).join("/")),t.size]})(m),{columns:W,dataSource:V}=Object(b.useMemo)((()=>{if(Y<=0)return{columns:[],dataSource:[]};var{dataSource:e,columns:t}=Object(De.b)({groups:m,ctxId:o,isInDetailPage:d,onCellClick:U,onFinish:()=>D(null)});return t.length&&(t.unshift({key:"index",dataIndex:"index",width:33,height:1,title:"#",fixed:"left",align:"center",customCellStyle:{zIndex:9},render:(t,a,r)=>{var i=0;if(Fe){var n=e.find((e=>e.index===t));i=Object.keys(n).filter((e=>e.startsWith("widget"))).filter((e=>Boolean(n[e].data.validationError))).length}return i>0?Object(N.jsx)(ce.c,{arrow:!0,text:Object(G.t)("approval-mp_RowContainError_ErrorMessage",{num:i}),className:"batch-import-tooltip",position:"right",children:Object(N.jsx)(E.r,{className:R()("serial-column",i>0&&"invalid-row"),children:r+1})}):Object(N.jsx)(E.r,{className:"serial-column",children:r+1})}}),t.push({key:"operation",title:Object(G.t)("DetailTable.OperationColumnTitle","操作"),width:72,fixed:"right",customCellStyle:{zIndex:9},render:(t,a,r)=>Object(N.jsxs)(E.r,{className:"operation-column",children:[Object(N.jsx)(ce.c,{textStyle:{zIndex:100},delay:300,text:Object(G.t)("DetailTable.CopyBtnTip","复制本行"),fixed:!0,arrow:!0,children:Object(N.jsx)(le.a,{type:"icon",color:"default",icon:"copy_outlined",onClick:()=>l(r)})}),Object(N.jsx)(ce.c,{textStyle:{zIndex:100},delay:300,text:Object(G.t)("DetailTable.RemoveBtnTip","删除本行"),fixed:!0,arrow:!0,children:Object(N.jsx)(le.a,{disabled:1===e.length||!(u||m[r].isAddOrCopy),type:"icon",color:"default",icon:"icon_delete-trash_outlined1",onClick:()=>(e=>{T({visible:!0,title:Object(G.t)("DetailTable.RemoveRowConfirm",{index:e+1}),onConfirm:()=>{s(e),T({visible:!1})},onCancel:()=>T({visible:!1})})})(r)})})]})})),{columns:t,dataSource:e}}),[F,Y,m.length]),H=Object(b.useCallback)((()=>{var e=Object(De.a)(m,W);e>-1?Object(ve.b)(".".concat(M," .common-table__cell-item--header")).then((t=>{t&&t.length&&(e>1?(w(t[e-1].id),setTimeout((()=>w("")),1e3)):k((e=>0===e?1:0)))})):w("")}),[F,m,M]);Object(b.useEffect)((()=>{i.data.validationError&&H()}),[i.data.validationError]);var Z=Object(b.useMemo)((()=>!Object(ge.a)("5.12.0")||Boolean(y)),[y]),q=(null==y?void 0:y.widget)&&Object(N.jsx)(E.r,{className:"approval-detail-table-editor__editing-panel",style:Object(_.a)(Object(_.a)({},I),{},{width:I.width,minHeight:I.height,top:I.top,left:I.left}),children:Object(N.jsx)(fe.a,Object(_.a)({isEditing:!0,isShowing:"showing"===y.widgetProps.inTable,widget:y.widget,ctxId:o,height:I.height,onFinish:()=>D(null)},y.widgetProps))}),[K,J]=Object(b.useState)(!1),[X,$]=Object(b.useState)(!1),[ee,te]=Object(b.useState)(i.data.name),[ae,re]=Object(b.useState)(0),[ie,ne]=Object(b.useState)(!1),[oe,se]=Object(b.useState)(!1),[pe,Te]=Object(b.useState)(0),[Ee,ke]=Object(b.useState)({success:!0}),ze=he.a.getCurrentPages(),Re="";ze.length>0&&(Re=ze[ze.length-1].route);var{router:Pe}=Object(me.getCurrentInstance)(),{configurableFormStore:Ue}=Object(f.d)(o),{globalStore:Be}=Object(b.useContext)(xe.a),Fe=Object(b.useMemo)((()=>!(!Be.enableTableBatchImport||null!=Pe&&Pe.params.instanceId||!/create-form/.exec(Re))),[Be.enableTableBatchImport,null==Pe?void 0:Pe.params.instanceId,Re]),Ye=JSON.parse(Ue.widgetRelationString||"{}"),{batchImportButtonShouldDisable:Qe,batchImportButtonDisableReason:Ge}=Object(b.useMemo)((()=>{var e,t,a=!1,r=[];if(Ye.groups&&Ye.groups.length){var n=i.id.split("|")[0],o=[],s=new RegExp(n,"i");Ye.groups.forEach((e=>{e.childrenWidgetIDs.length&&o.push(...e.childrenWidgetIDs)})),o.some((e=>e.match(s)))&&(a=!0,r.includes("optionSelect")||r.push("optionSelect"))}var c=!0;return null===(e=i.data.groups)||void 0===e||null===(t=e[0])||void 0===t||t.widgets.forEach((e=>{Ue.displayConditionManager.widgetConditionMap.has(e.id.split("|")[0])&&(a=!0,r.includes("displayCondition")||r.push("displayCondition")),e.data.useExternalData&&(r.includes("outerDataSource")||r.push("outerDataSource"),a=!0),"radio"!==e.type&&"checkbox"!==e.type||(a=!0,r.includes("v1")||r.push("v1")),Object(Ce.d)(e.type)&&(c=!1)})),c&&(a=!0,r.includes("noEdit")||r.push("noEdit")),{batchImportButtonShouldDisable:a,batchImportButtonDisableReason:r}}),[Ye.groups,null===(t=Ye.groups)||void 0===t?void 0:t.length,null===(a=i.data.groups)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.widgets,Ue.displayConditionManager.widgetConditionMap,Ye]),We=Object(b.useMemo)((()=>{var e=Ie.a.unix(ae),t=e=>1===String(e).length?"0".concat(e):e,a=t(e.month()+1),r=t(e.date()),i=t(e.hour()),n=t(e.minute());return Object(G.t)("approval-mp_UnableToImportExcelLastModifiedTime_CardDesc",{mm:a,dd:r,HH:i,nn:n})}),[ae]),Ve=Object(b.useMemo)((()=>Ee.success?ie?Object(G.t)("approval-mp_BatchImporting_Title"):Object(G.t)("approval-mp_ConfirmToImport_CardTitle"):Object(G.t)("approval-mp_UnableToImportExcel_CardTitle")),[pe,ie,Ee.success]);Object(b.useEffect)((()=>{var e=he.a.createSelectorQuery();setTimeout((()=>{e.select("#sheet-cut-title").boundingClientRect().select("#sheet-title").boundingClientRect().exec((e=>{2===e.length&&(e[0].height<e[1].height?se(!0):se(!1))}))}),0)}),[ee,X]);var He=Object(b.useMemo)((()=>Object(N.jsxs)(E.r,{className:"batch-import-dialog-content",children:[Object(G.t)("approval-mp_EnsureEditingComplete_CardDesc"),Object(N.jsxs)(E.r,{className:"sheet-card",children:[Object(N.jsx)(Me.a,{name:"sheet-table_outlined",className:"sheet-card__sheet-icon",size:18,color:"#fff"}),Object(N.jsxs)(E.r,{className:"sheet-card__meta",children:[oe?Object(N.jsx)(ce.c,{arrow:!0,text:Object(N.jsx)(E.r,{className:"tooltip-wrap-content",children:ee}),children:Object(N.jsx)(E.r,{className:"sheet-card__meta__title",children:ee})}):Object(N.jsx)(E.r,{className:"sheet-card__meta__title",children:ee}),Object(N.jsxs)(E.r,{className:"sheet-card__meta__last-modified",children:[Object(G.t)("approval-mp_UnableToImportExcelLastModified_CardDesc"),We]})]}),Object(N.jsx)(ce.c,{arrow:!0,text:Object(G.t)("approval_message_ContinueEditingBrowser_CardDesc"),children:Object(N.jsx)(Me.a,{name:"window-new_outlined",className:"sheet-card__open-browser",size:16,color:"#646A73",onClick:()=>{tt.openSchema({schema:Le,external:!0})}})})]})]})),[ee,We,oe]),Ze=Object(b.useMemo)((()=>Object(N.jsx)(E.r,{className:"batch-import-dialog-content batch-import-dialog-content__progress",children:Ee.success?Object(N.jsx)(Ae,{percentage:pe,color:100===pe?"#34C724":"#3370FF"}):Object(N.jsx)(Ae,{percentage:pe,color:"#F54A45"})})),[pe,Ee.success]);Object(b.useEffect)((()=>(ie&&(n=setInterval((()=>{80===pe?(clearInterval(n),""===we?(ke({success:!1}),ne(!1)):i.data.handleDetailBatchImport(we,i,function(){var e=Object(S.a)((function*(e){var t=yield Object(Ce.e)(i,Ue.validateWidgets);Object(P.b)("lading_table_import_num",{row:e.successLength,column:e.importColumnNumber,fail_num:t}),ke({success:!0}),Te(100),setTimeout((()=>{$(!1),ne(!1)}),100),setTimeout(Object(S.a)((function*(){yield Ue.validateWidget(i.id,!1),0===t?tt.showToast({icon:"success",title:Object(G.t)("approval-mp_NumDataImported_Toast",{num:e.successLength})}):tt.showToast({icon:"error",title:Object(G.t)("approval-mp_DataContainError_ErrorMessage",{num:t})})})),500)}));return function(t){return e.apply(this,arguments)}}())):Te(pe+1)}),50)),()=>{clearInterval(n)})),[ie,pe,Ee.success]);var qe=()=>{$(!1),ne(!1),Te(0),ke({success:!0})};Object(me.useDidShow)(Object(S.a)((function*(){yield Ke()})));var Ke=Object(b.useCallback)(Object(S.a)((function*(){if(!i.data.importSourceInfo)return Se("updateBatchImportSheetMetaFailed",{reason:"[批量导入] 更新 meta 失败,因为 importSourceInfo 没存上"}),!1;try{var e=yield Q.c.getSheetMeta({token:i.data.importSourceInfo.token});return te(e.data.title||Object(G.t)("Doc_List_UntitledSheet")),re(Number(e.data.latest_modify_time)),!0}catch(e){return Se("updateBatchImportSheetMetaFailed",{reason:"[批量导入] 更新 meta 失败,有可能是接口报错,检查下接口怎么返回的"}),!1}})),[]),Je=function(){var e=Object(S.a)((function*(){Object(P.b)("lading_table_import_click",{click_type:"bulk_import"});var e=i.data.groups[0].widgets;J(!0);try{if(i.data.importSourceInfo){Le=i.data.importSourceInfo.url;var t=yield Ke();if(J(!1),!t)throw new Error("draft updateBatchImportSheetMeta api error");Te(0),$(!0)}else{if(i.data.groups[0].widgets.find((e=>"amount"===e.type)))if(!(yield je.a.getCurrencyList()))throw new Error("new submit getCurrencyList api error");var a=Object(Ce.b)(e);we="";var r=yield Q.c.createSheet({form:a,title:i.data.name});if(J(!1),r.code&&0!==r.code)throw new Error("new submit createSheet api error");if(i.data.saveBatchImportSource(i,r.data.url,r.data.token),Le=r.data.url,!(yield Ke()))throw new Error("new submit updateBatchImportSheetMeta api error");Te(0),tt.openSchema({schema:Le,external:!0,success:()=>{setTimeout((()=>{$(!0)}),1e3)}})}}catch(e){tt.showToast({icon:"error",title:Object(G.t)("api.requestFailed")}),J(!1)}}));return function(){return e.apply(this,arguments)}}(),Xe=Object(b.useMemo)((()=>Ge.includes("noEdit")?Object(G.t)("approval_document_trusteeship_multi-lingual_NoWidgetTypeForBatchImport_Tooltip"):Object(G.t)("approval-mp_UnableToImportDataConfiguring_Tooltip",{externalData:Ge.map((e=>"displayCondition"===e?Object(G.t)("approval-mp_Visibility_ICUcontent"):"optionSelect"===e?Object(G.t)("approval-mp_CascadingDropdown_ICUcontent"):"outerDataSource"===e?Object(G.t)("approval-mp_ExternalDataSource_ICUcontent"):"v1"===e?Object(G.t)("approval-mp_WidgetsFromV1_ICUcontent"):"")).join(Object(G.t)("approval-mp_Delimiter_Desc"))})),[Ge]);return 0===W.length?null:Object(N.jsxs)(E.a,{children:[Object(N.jsx)(Oe.a,{showCustomScrollbar:Z,"show-scroll-bar":!Z,scrollIntoView:x,scrollLeft:L,customScrollbarStyle:{bottom:"42px"},className:R()("approval-detail-table-editor",M,{"approval-detail-table-editor--active":Boolean(y)}),title:Object(N.jsxs)(B.a,{required:v,children:[p,h&&Object(N.jsx)(ue.a,{ctxId:o,widget:i},i.id),Fe?Qe?Object(N.jsxs)(g.a.Fragment,{children:[Object(N.jsxs)(_e.a,{className:"form-item-table-batch-import form-item-table-batch-import--disabled",type:"secondary",size:"small",disabled:!0,children:[Object(N.jsx)(Me.a,{name:"tab-fix_outlined"}),Object(N.jsx)(E.r,{style:{marginLeft:2},children:Object(G.t)("approval-mp_BatchImport_Button")})]}),Object(N.jsx)(ce.c,{arrow:!0,text:Object(N.jsx)(E.r,{className:"tooltip-wrap-content",children:Xe}),style:{position:"absolute",width:"80px",top:"-6px",right:"0"},children:Object(N.jsx)(E.r,{className:"form-item-table-batch-import__fake-tooltip-placeholder"})})]}):Object(N.jsxs)(_e.a,{className:"form-item-table-batch-import",type:"secondary",size:"small",disabled:K,onClick:Je,children:[K?Object(N.jsx)(ye.a,{loading:!0,iconSize:12}):Object(N.jsx)(Me.a,{name:"tab-fix_outlined"}),Object(N.jsx)(E.r,{style:{marginLeft:2},children:Object(G.t)("approval-mp_BatchImport_Button")})]}):null]}),footer:Object(N.jsx)(E.r,{className:"table-footer",children:Object(N.jsx)(le.a,{icon:"icon-add",type:"text",color:"primary",onClick:c,children:Object(G.t)("formFieldlist.add")})}),dataSource:V,columns:W,border:!0,children:Object(N.jsx)(E.r,{className:"approval-detail-table-editor__panel-wrap",id:O,children:q})}),Object(N.jsx)(de.a,Object(_.a)(Object(_.a)({},A),{},{type:"warning",confirmText:Object(G.t)("PC.DeleteBtn"),confirmButtonProps:{color:"danger"}})),Object(N.jsx)(de.a,{visible:X,title:Ve,zIndex:101,confirmText:Ee.success?Object(G.t)("approval-mp_DetailTableImport_CardButton"):Object(G.t)("approval-mp_UnableToImportExcel_CardButton"),content:ie||!Ee.success?Ze:He,onConfirm:Object(S.a)((function*(){if(we="",Ee.success){if(ne(!0),Object(P.b)("lading_table_import_click",{click_type:"import"}),i.data.importSourceInfo){var e=yield Q.c.importSheetData({token:i.data.importSourceInfo.token});we=e.data.form_data}}else Te(0),setTimeout((()=>{ne(!0),ke({success:!0})}),300)})),onCancel:qe,onClose:qe,newUdStyle:!0,newUdStyleIconColor:Ee.success?"#3370FF":"#E22E28",showCancel:!ie,showConfirm:!ie,showClose:!ie}),Fe&&Object(N.jsxs)(g.a.Fragment,{children:[Object(N.jsx)(E.r,{className:"sheet-card__measure-title sheet-card__measure-title--cut",id:"sheet-cut-title",children:ee}),Object(N.jsx)(E.r,{className:"sheet-card__measure-title",id:"sheet-title",children:ee})]})]})})),ke=Ee,ze=(a(1284),200),Re=Object(v.a)(o=class extends b.Component{constructor(){super(...arguments),Object(w.a)(this,"state",{deleteModalOption:{visible:!1}}),Object(w.a)(this,"checkHasFieldDeletePermission",(()=>{var{widget:e,isInDetailPage:t}=this.props,{data:{groups:a}}=e,r=!0;return(t||e.data.isRollBackToStart)&&a.length>0&&a[0].widgets&&(r=Boolean(a[0].widgets.every((e=>e.data.writable)))),r})),Object(w.a)(this,"handleAddBtnClick",(()=>{var{widget:e}=this.props;this.canDetailAdd?(ne.d.changeDefaultStatus(!0),e.data.addGroup({isAddOrCopy:!0}),ne.d.changeDefaultStatus(!1),this.reportDetailOperation("add")):tt.showToast({title:Object(G.t)("approval-admin_MaxLinesWhenWidgetUseExternal_Desc","明细内包含外部数据源,最多支持上传 200 条"),icon:"error"})})),Object(w.a)(this,"handleDeleteGroup",Object(ie.a)((e=>{var{widget:t}=this.props;t.data.removeGroup(e),this.reportDetailOperation("delete")}),50)),Object(w.a)(this,"handleDeleteBtnClick",(e=>{var{widget:t}=this.props,{data:{name:a}}=t;this.setState({deleteModalOption:{visible:!0,title:Object(G.t)("DetailWidget.DeleteConfirm",{groupName:"".concat(a,"(").concat(e+1,")")}),onConfirm:()=>{this.handleDeleteGroup(e),this.setState({deleteModalOption:{visible:!1}})},onCancel:()=>{this.setState({deleteModalOption:{visible:!1}})}}})})),Object(w.a)(this,"handleCopyBtnClick",Object(ie.a)((e=>{var{widget:t}=this.props;this.canDetailAdd?(t.data.copyGroup(e),this.reportDetailOperation("copy")):tt.showToast({title:Object(G.t)("approval-admin_MaxLinesWhenWidgetUseExternal_Desc","明细内包含外部数据源,最多支持上传 200 条"),icon:"error"})}),50)),Object(w.a)(this,"reportDetailOperation",(e=>{var t=this.checkHasFieldDeletePermission();Object(P.b)(J.f.ApprovalDetailOperation,{type:e,has_field_delete_permission:Number(t)})}))}componentDidMount(){var{widget:e,isInDetailPage:t}=this.props;ne.d.useTable&&t&&e&&Object(P.b)("submit_form_has_field_list",{input_type:e.data.inputType})}checkHaveWritableChild(){var{widget:{data:{groups:e}},ctxId:t}=this.props,{homeStore:a}=Object(f.d)(t);return!(e&&e[0]&&e[0].widgets&&e[0].widgets.some&&(!a||a.isAtPending))||e[0].widgets.some((e=>e.data.writable))}renderGroups(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],{ctxId:a,widget:r}=this.props,{data:{name:i,groups:n,hasHistory:o}}=r;return n.map(((s,c)=>Object(N.jsxs)(E.r,{className:"detail-group",children:[Object(N.jsxs)(E.r,{className:"g-title",children:[Object(N.jsxs)(E.r,{className:"g-name",children:["".concat(i).concat(n.length>1?"(".concat(c+1,")"):""),o&&Object(N.jsx)(ue.a,{ctxId:a,widget:r},r.id)]}),(e||t)&&Object(N.jsxs)(E.r,{className:"g-buttons",children:[e&&Object(N.jsx)(ce.c,{delay:300,text:Object(G.t)("PC.CopyBtn"),arrow:!0,children:Object(N.jsx)(le.a,{size:"small",type:"icon",color:"default",icon:"copy_outlined",onClick:()=>this.handleCopyBtnClick(c)})}),n.length>1&&(t||s.isAddOrCopy)&&Object(N.jsx)(ce.c,{style:{marginLeft:"8px"},delay:300,text:Object(G.t)("PC.DeleteBtn"),arrow:!0,children:Object(N.jsx)(le.a,{size:"small",type:"icon",color:"default",icon:"icon_delete-trash_outlined1",onClick:()=>this.handleDeleteBtnClick(c)})})]})]}),Object(N.jsx)(E.r,{className:"g-widgets",children:s.widgets.map((e=>Object(N.jsxs)(E.a,{children:[Object(N.jsx)(fi,{ctxId:a,widget:e,isInDetailField:!0},e.id),e.hint?Object(N.jsx)(E.r,{className:R()("hint-message",{error:e.isErrorHint}),children:e.hint}):null]},e.id)))})]},s.id)))}get canDetailAdd(){var{groups:e}=this.props.widget.data;return!(e.length>=ze&&e.some((e=>e.widgets.some((e=>e.data.useExternalData)))))}render(){var{widget:e,ctxId:t,isInDetailPage:a}=this.props,r=this.checkHaveWritableChild();if(!e||!r||!e.data.visible)return null;var{data:{inputType:i="LIST",groups:n,maxCount:o}}=e,s=!0,c=!0,l=this.checkHasFieldDeletePermission(),{isChildOfTripGroup:d}=Object(f.d)(t),{isChildOfRemedyGroup:u}=Object(f.d)(t);(d||u)&&(c=!1,l=!0,o&&n.length>=o&&(s=!1));var p="+ ".concat(Object(G.t)("formFieldlist.add"));return d?p=Object(G.t)("TripGroup.AddGroup"):u&&(p="+ ".concat(Object(G.t)("remedyGroupV2.addGroup"))),Object(N.jsxs)(E.r,{className:"widget-editor detail-editor",children:["FORM"===i&&ne.d.useTable?Object(N.jsx)(ke,{widget:e,ctxId:t,onAdd:this.handleAddBtnClick,onDelete:this.handleDeleteGroup,onCopy:this.handleCopyBtnClick,isInDetailPage:a,hasFieldDeletePermission:l}):Object(N.jsxs)(E.a,{children:[this.renderGroups(c,l),Object(N.jsx)(de.a,Object(_.a)(Object(_.a)({},this.state.deleteModalOption),{},{type:"warning",confirmText:Object(G.t)("PC.DeleteBtn"),confirmButtonProps:{color:"danger"}})),s&&Object(N.jsx)(se.a,{onClick:this.handleAddBtnClick,style:{color:oe.a,width:"100%"},children:p})]}),Object(N.jsx)(pe.a,{widget:e.data})]})}})||o,Pe=Re,Ue=a(449),Be=a(623),Fe=a(624),Ye=a(628),Qe=a(280),Ge=a(76),We=a(18),Ve=a(244),He=a(33),Ze=a(181),qe=a(78),Ke=(a(1285),Object(X.c)("pc:src/components/configurable-form/components/widgets/attachment/editor/index.tsx")),Je=!1,Xe=Object(v.a)((c=class extends b.Component{constructor(e){var t;super(e),t=this,Object(w.a)(this,"upload",Object(k.k)(this._upload)),Object(w.a)(this,"showUploadHint",Object(ie.a)((e=>{U.b.showToast({title:e,icon:"error",duration:3e3})}),100)),Object(w.a)(this,"handleAddBtnClick",void 0),Object(w.a)(this,"handleItemClick",function(){var e=Object(S.a)((function*(e){try{yield Object(Y.d)({url:e,name:""})}catch(e){if(K.a.error("handleItemClick failed",e),e&&e.errMsg&&e.errMsg.includes("user canceled"))return;t.showUploadHint(Object(G.t)("Detail.PreviewFileFailed")),Object(P.b)(J.f.ApprovalError,{location:"in function handleItemClick at src/components/configurable-form/components/widgets/attachment/editor/index.tsx",message:JSON.stringify(e)})}}));return function(t){return e.apply(this,arguments)}}()),Object(w.a)(this,"handleDeleteBtnClick",((e,t)=>{t.stopPropagation(),this.deleteAttachment(e)})),this.handleAddBtnClick=Object(k.k)(this._handleAddBtnClick).bind(this)}*_upload(e){var{widget:{data:{uploadAttachmentList:t}}}=this.props;yield Object(He.s)();var a=t.find((t=>t.id===e));if(a)try{var r=yield Object(Ge.f)({url:Object(Ve.a)().UPLOAD,filePath:a.url,name:a.name,formData:{type:"attachment",suffix:".".concat(a.extension.toLowerCase())}});if(200!==r.statusCode)throw new Error("invalid statusCode: ".concat(r.statusCode));var i=JSON.parse(r.data);if(10118===i.code)throw new Ze.a(Object(G.t)("formAttachment.OversizeHint"));if(0!==i.code)throw Error("invalid code: ".concat(i.code));a.key=i.data.key,a.url=i.data.url,a.name=i.data.fileName||a.name,a.size=i.data.fileSize,a.status=We.v.UPLOADED,Ke("fileUploadAttSuccess")}catch(e){K.a.error("attachment upload failed",e),e instanceof Ze.a?this.showUploadHint(e.message):this.showUploadHint(Object(G.t)("AttachmentUploadFailedHint")),this.deleteAttachment(a.id);var n=Object($.a)(e);Ke("fileUploadAttFail",{error:n}),Object(P.b)(J.f.ApprovalUploadFile,{error:n})}else K.a.error("uploadAttachment invalid id",e)}*_handleAddBtnClick(){var{widget:e,ctxId:t}=this.props,{data:{uploadAttachmentList:a}}=e,{configurableFormStore:r}=Object(f.d)(t),i=9-a.length;if(!(i<1||Je))try{Je=!0;var n=yield Object(Y.f)({maxNum:i});i=9-a.length,a.push(...n.list.slice(0,i).map((e=>{var{path:t,name:a,size:r}=e,i=Object(Qe.a)(),n=Object(Ge.a)(a),o=We.k[n.toUpperCase()];return o?{id:i,status:We.v.UPLOADING,key:"",url:t,thumbUrl:Object(qe.d)(o),name:a,extension:n,size:r,waitUploadPromise:this.upload(i)}:(this.showUploadHint(Object(G.t)("ApprovalForm.AttachmentUnpreviewable")),null)})).filter(He.q)),r.handleWidgetChange(e.id)}catch(e){K.a.error("handleAddBtnClick error",e),Object(P.b)(J.f.ApprovalError,{location:"in function handleAddBtnClick at src/components/configurable-form/components/widgets/attachment/editor/index.tsx",message:JSON.stringify(e)})}finally{Je=!1}}deleteAttachment(e){var{widget:{data:{uploadAttachmentList:t}}}=this.props,a=t.findIndex((t=>t.id===e));-1!==a&&t.splice(a,1)}renderAttachmentList(){var{widget:{data:{uploadAttachmentList:e}}}=this.props;return Object(N.jsxs)(E.r,{className:"attachment-list",children:[this.renderAddBtn(),e.map((e=>this.renderAttachment(e)))]})}renderAddBtn(){var{widget:{data:{uploadAttachmentList:e}}}=this.props;return Object(N.jsx)(E.r,{className:R()("item","add-btn",{enough:e.length>=9}),onClick:this.handleAddBtnClick,children:Object(N.jsx)(E.g,{src:V.a})},"item-add-btn")}renderAttachment(e){var{id:t,name:a,thumbUrl:r,url:i}=e;return Object(N.jsxs)(E.r,{className:"item attachment",onClick:()=>this.handleItemClick(i),children:[Object(N.jsx)(E.g,{className:"thumb",src:r}),Object(N.jsx)(E.r,{className:"name",children:a}),Object(N.jsx)(E.g,{className:"delete-btn",src:Z.a,onClick:e=>this.handleDeleteBtnClick(t,e)})]},"item-".concat(t))}render(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{name:a,required:r,validationError:i,hasHistory:n}}=e;return Object(N.jsxs)(E.r,{className:"widget-editor attachment-editor",children:[Object(N.jsxs)(B.a,{required:r,children:[a,n&&Object(N.jsx)(ue.a,{ctxId:t,widget:e},e.id)]}),this.renderAttachmentList(),Object(N.jsx)(F.a,{text:i})]})}},Object(L.a)(c.prototype,"deleteAttachment",[k.f],Object.getOwnPropertyDescriptor(c.prototype,"deleteAttachment"),c.prototype),s=c))||s,$e=Xe,et=a(638),at=a(643),rt=a(646),it=a(98),nt=(a(1286),Object(v.a)((d=class extends b.Component{constructor(){var e;super(...arguments),e=this,Object(w.a)(this,"handleAddBtnClick",Object(S.a)((function*(){e.addUsers(yield e.getUsers())}))),Object(w.a)(this,"handleDeleteBtnClick",(e=>{this.removeUser(e)})),Object(w.a)(this,"handleAvatarImgClick",((e,t)=>{var{widget:a}=this.props,{data:{users:{[e]:{id:r}}}}=a;Object(q.a)({userId:r,selector:".avatar-".concat(e)})}))}render(){var{widget:e}=this.props;if(!e)return null;var{data:{name:t,required:a,validationError:r}}=e;return Object(N.jsxs)(E.r,{className:"widget-editor ccer-editor",children:[Object(N.jsx)(B.a,{required:a,children:t}),this.renderUsers(),Object(N.jsx)(F.a,{text:r})]})}renderUsers(){var{widget:{data:{users:e}}}=this.props;return Object(N.jsxs)(E.r,{className:"users",children:[e.map(((e,t)=>{var{id:a,name:r,avatarUrl:i}=e;return Object(N.jsxs)(E.r,{className:"item user",children:[Object(N.jsx)(E.g,{className:R()("avatar","avatar-".concat(t)),src:i,onClick:e=>this.handleAvatarImgClick(t,e)}),Object(N.jsx)(E.r,{className:"name",children:r}),Object(N.jsx)(E.g,{className:"delete-btn",src:Z.a,onClick:()=>this.handleDeleteBtnClick(t)})]},"".concat(a,"-").concat(t))})),Object(N.jsx)(E.r,{className:"item add-btn",onClick:this.handleAddBtnClick,children:Object(N.jsx)(E.g,{src:V.a})})]})}getUsers(){var e=this;return Object(S.a)((function*(){try{var t,{ctxId:a}=e.props,{configurableFormStore:r}=Object(f.d)(a),{validUsers:i}=yield Object(it.a)({option:{ignore:!1,multi:!0,externalContact:!1,instanceId:null===(t=r.instanceInfo)||void 0===t?void 0:t.instanceId},globalStore:xe.b.globalStore,queryUsers:Q.c.userqueryUsers,showToast:!0,from:"pc"});return i.map((e=>Object(_.a)(Object(_.a)({},e),{},{id:String(e.userId),tenantId:String(e.tenantId)})))}catch(e){K.a.error("ccer getUser failed",e),Object(P.b)(J.f.ApprovalError,{location:"in function getUsers at src/components/configurable-form/components/widgets/ccer/editor/index.tsx",message:JSON.stringify(e)})}return[]}))()}addUsers(e){var{ctxId:t,widget:a}=this.props,{configurableFormStore:r}=Object(f.d)(t),{data:{users:i}}=a,n=function(e){-1===i.findIndex((t=>t.id===e.id))&&i.push(e)};for(var o of e)n(o);r.handleWidgetChange(a.id)}removeUser(e){var{ctxId:t,widget:a}=this.props,{configurableFormStore:r}=Object(f.d)(t),{data:{users:i}}=a;i.splice(e,1),r.handleWidgetChange(a.id)}},Object(L.a)(d.prototype,"addUsers",[k.f],Object.getOwnPropertyDescriptor(d.prototype,"addUsers"),d.prototype),Object(L.a)(d.prototype,"removeUser",[k.f],Object.getOwnPropertyDescriptor(d.prototype,"removeUser"),d.prototype),l=d))||l),ot=nt,st=a(289),ct=a(629),lt=a(630),dt=a(631),ut=a(633),pt=a(701),mt=a(11),ht=(a(56),a(251)),bt=a(287),gt=a(26),vt=(a(1294),a(103)),jt=a(232),Ot=a(58),ft=Object(X.c)("mobile:src/components/configurable-form/components/widgets/leave-group/editor/index.tsx"),Mt=Object(v.a)((p=class extends b.Component{constructor(e){super(e),Object(w.a)(this,"state",{leaveTypes:[],leaveTypeIndex:-1,durationIndex:-1,durationRange:[],maxDuration:0}),Object(w.a)(this,"isHalf",void 0),Object(w.a)(this,"onLeaveTypeChange",void 0),Object(w.a)(this,"changeDurationAfterTypeOrDate",Object(k.k)(this._changeDurationAfterTypeOrDate)),Object(w.a)(this,"handleDateTimeChange",Object(k.k)(this._handleDateTimeChange)),Object(mt.a)(this,"handleDateDurationChange",m,this),Object(w.a)(this,"loadDataWhenInit",Object(k.k)(this._loadDataWhenInit)),this.onLeaveTypeChange=Object(k.k)(this._onLeaveTypeChange).bind(this)}get leaveType(){return this.props.widget.data.children[0]}get leaveStart(){return this.props.widget.data.children[1]}get leaveEnd(){return this.props.widget.data.children[2]}get leaveDuration(){return this.props.widget.data.children[3]}getMaxDuration(e,t){var a,r,i=e[t],n=this.leaveStart.data.value,o=this.leaveEnd.data.value,s=100;if(!(n&&o&&o>=n))return{durationRange:[],maxDuration:0};if(i.balanceUnit===We.f.HOUR){var c=Math.max(1,(Number(o)-Number(n))/72e5+1);s=Math.min(s,c)}else{var l=this.isHalf?.5:1,d=Math.max(l,(Number(o)-Number(n))/864e5+l);s=Math.min(s,d)}return 0!==i.balanceQuota&&(s=Math.min(s,null!==(a=i.balanceQuota)&&void 0!==a?a:0)),r=i.balanceUnit===We.f.HOUR?Object.keys(Array.from(Array(Math.round(2*s)))).map((e=>String(.5*(Number(e)+1)))).slice(0,-1):this.isHalf?Object.keys(Array.from(Array(Math.round(2*s)))).map((e=>String(.5*(Number(e)+1)))):Object.keys(Array.from(Array(Math.round(s)))).map((e=>String(Number(e)+1))),{durationRange:r,maxDuration:Math.max(s,0)}}*_onLeaveTypeChange(e){var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),{leaveTypes:i}=this.state,n=Number(e.detail.value),o=i[n];if(o&&0===o.balanceQuota&&o.balanceUsed&&!o.isLeaveRefactorGray)U.b.showToast({title:Object(G.t)("PC.Error_LeaveNoBalance",{typeName:o.leaveName}),icon:"error",duration:3e3});else{o&&o.isLeaveRefactorGray&&o.selectHit&&[Ot.c.Disable,Ot.c.Limited].includes(o.selectHit.selected_type)&&U.b.showToast({title:o.selectHit.hit_text,icon:"error",duration:3e3}),this.leaveType.data.value={text:o.leaveName,value:"".concat(o.id),leaveT:o};var s=We.g[o.balanceUnit],c=t.data.children[1],l=t.data.children[2],{0:{id:d}}=t.data.children;o.balanceUnit!==We.f.HOUR&&(t.data.children[1].data.value=null,t.data.children[2].data.value=null),c.data.text=Object(gt.d)(c.data.value,s),l.data.text=Object(gt.d)(l.data.value,s),o.balanceUnit===We.f.DAY&&(c.data.value&&(c.data.value=c.data.value.hour(0)),l.data.value&&(l.data.value=l.data.value.hour(0))),this.isHalf=o.balanceUnit===We.f.HALF_DAY,yield this.changeDurationAfterTypeOrDate(n),r.handleWidgetChange(d)}}calcDurationFromBackend(e){var t=this;return Object(S.a)((function*(){var{widget:a}=t.props,{isLeaveRefactorGray:r}=a.data,i=t.leaveStart.data.value,n=t.leaveEnd.data.value;if(i&&n){var o=yield Object(vt.i)(Q.c,{definitionId:e,startTime:Number(i),endTime:Number(n),startDateTime:Ie()(Number(i)).format("YYYY-MM-DD HH:mm:ss"),endDateTime:Ie()(Number(n)).format("YYYY-MM-DD HH:mm:ss"),time_offset:Ie()(Number(i)).utcOffset()},void 0,r);return o.leaveDetail&&o.leaveDetail.length&&o.leaveDetail.forEach(((e,t)=>{o.leaveDetail[t].range=Object(gt.e)([e.rangeDateTime[0],e.rangeDateTime[1]])})),o}return{leaveQuota:0}}))()}*_changeDurationAfterTypeOrDate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.leaveTypeIndex,{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),{3:{id:i}}=t.data.children,{leaveTypes:n,durationIndex:o}=this.state,s=n[e],c=!Object(vt.h)(s.leaveTimeCalRule);if(c){var l=yield this.calcDurationFromBackend(s.id);this.leaveDuration.data.value={value:l.leaveQuota,text:l.leaveQuota},this.setState({leaveTypeIndex:e,durationIndex:0,maxDuration:l.leaveQuota,durationRange:[l.leaveQuota]},(()=>{r.handleWidgetChange(i)}))}else{var{durationRange:d,maxDuration:u}=this.getMaxDuration(n,e),p=c?d.length-1:o,m=-1===p?"":d[p];this.leaveDuration.data.value={value:m,text:m},this.setState({leaveTypeIndex:e,durationIndex:p,durationRange:d,maxDuration:u})}}*_handleDateTimeChange(e,t){var{widget:a,ctxId:r}=this.props,{configurableFormStore:i}=Object(f.d)(r),{leaveTypes:n,leaveTypeIndex:o}=this.state,s=n[o],c=We.g[s.balanceUnit],l="start"===t?this.leaveStart:this.leaveEnd;l.data.value=e,l.data.text=Object(gt.d)(e,c),yield this.changeDurationAfterTypeOrDate();var d=a.data.children.find((e=>"start"===t?"leave_group_start_time"===e.id:"leave_group_end_time"===e.id));d&&i.handleWidgetChange(d.id)}renderLeaveType(){var{widget:e,ctxId:t}=this.props,{data:{hasHistory:a,children:{0:{data:{required:r,name:i,placeholder:n,validationError:o}}}}}=e,{leaveTypes:s,leaveTypeIndex:c}=this.state,l=s.map((e=>e.balanceUsed?{[We.f.HOUR]:"".concat(e.leaveName).concat(Object(G.t)("LeaveGroup.Remind_Hour",{count:e.balanceQuota})),[We.f.HALF_DAY]:"".concat(e.leaveName).concat(Object(G.t)("LeaveGroup.Remind_Day",{count:e.balanceQuota})),[We.f.DAY]:"".concat(e.leaveName).concat(Object(G.t)("LeaveGroup.Remind_Day",{count:e.balanceQuota}))}[e.balanceUnit]:e.leaveName));return Object(N.jsxs)(E.r,{className:"sub-widget-editor",children:[Object(N.jsxs)(B.a,{required:r,children:[i,a&&Object(N.jsx)(ue.a,{ctxId:t,widget:e},e.id)]}),Object(N.jsx)(ht.a,{placeholder:n,range:l,value:c,onChange:this.onLeaveTypeChange}),Object(N.jsx)(F.a,{text:o})]})}renderDate(e){var{widget:t}=this.props,{leaveTypes:a,leaveTypeIndex:r}=this.state,{data:{required:i,name:n,placeholder:o,validationError:s,value:c}}=t.data.children["start"===e?1:2],l=a[r];this.isHalf=l.balanceUnit===We.f.HALF_DAY;var d=We.g[l.balanceUnit];return Object(N.jsxs)(E.r,{className:"sub-widget-editor",children:[Object(N.jsx)(B.a,{required:i,children:n}),Object(N.jsx)(bt.a,{type:d,placeholder:o,isHalfHour:l.balanceUnit===We.f.HOUR,value:c,onChange:t=>{this.handleDateTimeChange.bind(this)(t,e)}}),Object(N.jsx)(F.a,{text:s})]})}renderDateDuration(){var{widget:{data:{children:{3:{data:{required:e,name:t,placeholder:a,validationError:r}}}}}}=this.props,{leaveTypes:i,leaveTypeIndex:n,durationIndex:o,durationRange:s,maxDuration:c}=this.state,l=i[n],d=!Object(vt.h)(l.leaveTimeCalRule);return Object(N.jsxs)(E.r,{className:"sub-widget-editor",children:[Object(N.jsx)(B.a,{required:e,children:t}),Object(N.jsx)(ht.a,{disabled:d,placeholder:a,range:s,value:o,onChange:this.handleDateDurationChange}),Object(N.jsx)(F.a,{text:r})]})}*_loadDataWhenInit(e){var{widget:t,ctxId:a}=e,r=yield Object(jt.a)();t.data.isLeaveRefactorGray=r;var{configurableFormStore:i}=Object(f.d)(a),{3:{id:n}}=t.data.children;ft("detailLeaveBalanceStart",{isLeaveRefactorGray:r});var o=yield Object(vt.j)(Q.c,{},void 0,r);if(ft("detailLeaveBalanceDone",{isLeaveRefactorGray:r,balanceList:o}),this.setState({leaveTypes:o}),t){var{data:{value:s}}=this.leaveType;if(s){var c=o.findIndex((e=>"".concat(e.id)==="".concat(s.value)));c<0&&s.value&&U.b.showToast({title:Object(G.t)("LeaveGroup.NoBalanceDefinition",{typeName:s.text}),icon:"error",duration:3e3});var l=o[c];l&&0===l.balanceQuota&&l.balanceUsed&&!l.isLeaveRefactorGray?U.b.showToast({title:Object(G.t)("PC.Error_LeaveNoBalance",{typeName:s.text}),icon:"error",duration:3e3}):l&&l.isLeaveRefactorGray&&l.selectHit&&[Ot.c.Disable,Ot.c.Limited].includes(l.selectHit.selected_type)&&U.b.showToast({title:l.selectHit.hit_text,icon:"error",duration:3e3}),l&&l.leaveName&&(this.leaveType.data.value={text:l.leaveName,value:"".concat(l.id),leaveT:l}),this.leaveStart.data.value&&(this.leaveStart.data.value=null),this.leaveEnd.data.value&&(this.leaveEnd.data.value=null);var{durationRange:d,maxDuration:u}=this.getMaxDuration(o,c),{durationIndex:p}=this.state;this.leaveDuration.data.value&&(p=d.indexOf(this.leaveDuration.data.value.value)),this.setState({leaveTypeIndex:c,durationRange:d,maxDuration:u,durationIndex:p},(()=>{this.leaveType.data.value&&i.handleWidgetChange(n)}))}}}UNSAFE_componentWillMount(){this.loadDataWhenInit(this.props)}render(){var{widget:e}=this.props,{leaveTypeIndex:t}=this.state;return e?Object(N.jsxs)(E.r,{className:"leave-group-editor",children:[this.renderLeaveType(),-1!==t&&this.renderDate("start"),-1!==t&&this.renderDate("end"),-1!==t&&this.renderDateDuration()]}):null}},m=Object(L.a)(p.prototype,"handleDateDurationChange",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),{3:{id:i}}=t.data.children,{durationRange:n}=this.state,o=Number(e.detail.value);if(!(o<0||o>=n.length)){this.setState({durationIndex:o});var s=n[o];this.leaveDuration.data.value={value:s,text:s},r.handleWidgetChange(i)}}}}),u=p))||u,_t=Mt,yt=a(286),Dt=a(359),Nt=a(49),At=a(656),Tt=a(128),It=a.n(Tt),Ct=a(28),xt=a(108),St=a(545),wt=a.n(St),Lt={[j.c.DATE_TIME]:bt.a,[j.c.SINGLE_INPUT]:xt.a,[j.c.SINGLE_SELECT]:ht.a,[j.c.SINGLE_SELECT_V2]:ht.a};function Et(e){var t,{definition:a,fieldProps:r,widgetProps:i,children:n}=e,{name:o,required:s,error:c,caption:l,tips:d}=r,u=null!==(t=Lt[a.type])&&void 0!==t?t:n;return Object(N.jsxs)(E.r,{className:wt.a.field,children:[o&&Object(N.jsx)(B.a,{required:s,children:o}),l&&Object(N.jsx)(E.r,{style:wt.a.caption,children:l}),Object(N.jsx)(E.r,{className:wt.a["widget-background"],children:Object(N.jsx)(u,Object(_.a)({},i))}),d&&Object(N.jsx)(E.r,{style:wt.a.tips,children:d}),c&&Object(N.jsx)(F.a,{text:c})]})}var kt,zt,Rt,Pt,Ut,Bt,Ft=function(){var e=Object(S.a)((function*(){return h||(h=Q.c.approvalQueryTimeZone({locale:Object(G.getCurTimeZone)()}).then((e=>e.data.TimeZoneData)),h.catch((()=>{tt.showToast({title:Object(G.t)("LeaveGroup.fetchTimeZoneError"),icon:"error"}),h=null}))),h}));return function(){return e.apply(this,arguments)}}(),Yt=Object(X.c)("pc:src/components/configurable-form/components/widgets/leave-group-v2/editor/breast-feeding/holiday-period.tsx"),Qt=e=>{console.error(e),Yt("commonOnError",{message:e})},Gt=Object(v.a)((e=>{var{widget:t,onChange:a=(e=>console.debug(e))}=e,{data:{name:r,placeholder:i,value:n,required:o,validationError:s}}=t;return Object(N.jsx)(Et,{definition:t,fieldProps:{required:o,name:r,error:s},widgetProps:{type:We.g[We.f.DAY],isHalfHour:!1,placeholder:i,value:n,onChange:a}})})),Wt=Object(v.a)((e=>{var{widget:t,onChange:a=(e=>console.debug(e))}=e,{data:r}=t,[i,n]=Object(b.useState)([]),o=()=>{Ft().then((e=>{if(n(e.map((e=>({value:e.ID,text:e.Name})))),r.value)a(r.value);else{var t=(new Date).getTimezoneOffset(),i=e.find((e=>-e.UTCOffset===t));a({value:i.ID,text:i.Name})}}))};return Object(b.useEffect)((()=>{o()}),[]),Object(N.jsxs)(E.r,{className:It.a["sub-widget-editor"],children:[Object(N.jsx)(B.a,{required:r.required,children:r.name}),Object(N.jsx)(yt.a,{placeholder:r.placeholder,range:i.map((e=>e.text)),value:i.findIndex((e=>{var t;return e.value===(null===(t=r.value)||void 0===t?void 0:t.value)})),vwidth:600,onShowSelect:()=>{o()},onChange:e=>{a(i[e])}})]})})),Vt=Object(v.a)((e=>{var{widget:t,value:a,range:r,onChange:i=(e=>console.debug(e)),showExcludeWorkDaysTips:n=!1,excludeWorkDaysTipsText:o}=e,{data:{name:s,placeholder:c,required:l,validationError:d,validationWarning:u}}=t,p="".concat(s).concat(Object(G.t)("Brackets",{innerText:Object(G.t)("LeaveGroup.BalanceUnitDay")}));return Object(N.jsx)(E.r,{className:It.a["sub-widget-editor"],children:Object(N.jsx)(Et,{definition:t,fieldProps:{required:l,name:p,error:u||d,tips:n?o:void 0},widgetProps:{disabled:!0,placeholder:c,range:r,value:a,onChange:i}})})})),Ht=Object(v.a)((e=>{var{ctxId:t,LeaveType:a,widget:r,checkSeal:i}=e,{balanceQuota:n}=a,{children:o,schedules:s}=r.data,c=Object(b.useMemo)((()=>[o.find((e=>e.id===Nt.a.StartTime)),o.find((e=>e.id===Nt.a.EndTime)),o.find((e=>e.id===Nt.a.Duration)),o.find((e=>e.id===Nt.a.TimeZoneType))]),[o]),[l,d,u,p]=c,m=Boolean((null==l?void 0:l.data.value)&&(null==d?void 0:d.data.value)),h=!(null!=s&&s.length),v=m&&Object(vt.l)(a.leaveTimeCalRule)&&h&&!Ct.u,j=Object(k.f)((e=>{var{value:a,dateTimeWidget:n,isStartTime:o=!1}=e,{configurableFormStore:s}=Object(f.d)(t);n.data.text=Object(gt.d)(a,We.g[We.f.DAY]),n.data.value=a.hour(0),o&&i(r,s),s.handleWidgetChange(n.id)})),O=Object(k.f)((e=>{var{configurableFormStore:a}=Object(f.d)(t);p&&(p.data.value=e,Ft().then((t=>{var r=t.find((t=>t.ID===e.value));p.data.timezoneOffset=-r.UTCOffset,a.handleWidgetChange(p.id),null!=l&&l.data&&(l.data.timezoneOffset=-r.UTCOffset,a.handleWidgetChange(l.id)),null!=d&&d.data&&(d.data.timezoneOffset=-r.UTCOffset,a.handleWidgetChange(d.id))})))})),[M,_]=Object(b.useState)(0),[y,D]=Object(b.useState)(["0"]),A=Object(b.useCallback)((e=>Object(k.s)((()=>{var{configurableFormStore:a}=Object(f.d)(t);u?(u.data.value={value:e,text:e},a.handleWidgetChange(null==u?void 0:u.id)):Qt("Failed to execute updateDurationValue because the widget is null! ".concat(JSON.stringify({Duration:u})))}))),[t,u]),T=Object(k.f)((e=>{var t=Number(e.detail.value);_(t)}));return Object(b.useEffect)((()=>{var e,t,a,r,i=null!==(e=null==l||null===(t=l.data.value)||void 0===t?void 0:t.valueOf())&&void 0!==e?e:0,n=null!==(a=null==d||null===(r=d.data.value)||void 0===r?void 0:r.valueOf())&&void 0!==a?a:0;if(!i||!n||i>n)return D(["0"]);D([String((n-i)/864e5+1)])}),[null==l?void 0:l.data.value,null==d?void 0:d.data.value,n]),Object(b.useEffect)((()=>{M<0||M>=y.length||A(y[M])}),[y,M,A]),l&&d&&u?Object(N.jsx)(g.a.Fragment,{children:Object(N.jsxs)(E.r,{className:R()(It.a.field,It.a.group),children:[Object(N.jsx)(E.r,{className:It.a.title,children:Object(G.t)("LeaveGroup.HolidayPeriod","假期周期")}),Object(N.jsxs)(E.r,{className:R()(It.a.value,It.a.block),children:[Object(N.jsx)(Gt,{widget:l,onChange:e=>j({value:e,dateTimeWidget:l,isStartTime:!0})}),Object(N.jsx)(Gt,{widget:d,onChange:e=>j({value:e,dateTimeWidget:d})}),Object(N.jsx)(Vt,{widget:u,value:M,range:y,onChange:T,showExcludeWorkDaysTips:v,excludeWorkDaysTipsText:v?Object(vt.b)(a.leaveTimeCalRule):void 0}),ne.d.fgLeaveGroupTimeZone&&p&&Object(N.jsx)(Wt,{widget:p,onChange:O})]})]})}):(Qt("Failed to render HolidayPeriod widget because some widget(s) is null! ".concat(JSON.stringify({StartTime:l,EndTime:d,Duration:u}))),null)})),Zt=Object(X.c)("pc:src/components/configurable-form/components/widgets/leave-group-v2/editor/breast-feeding/holiday-period.tsx"),qt=e=>{console.error(e),Zt("commonOnError",{message:e})},Kt=Object(v.a)((e=>{var t,a,{widget:r,onChange:i=(e=>console.debug(e))}=e,{data:{name:n,placeholder:o,options:s,value:c,required:l,validationError:d}}=r,u=null!==(t=null==s?void 0:s.findIndex((e=>e.value===(null==c?void 0:c.value))))&&void 0!==t?t:0,p=null!==(a=null==s?void 0:s.map((e=>e.text)))&&void 0!==a?a:[];return Object(N.jsx)(Et,{definition:r,fieldProps:{required:l,name:n,error:d},widgetProps:{placeholder:o,range:p,value:u,onChange:i}})})),Jt=Object(v.a)((e=>{var{widget:t}=e,{data:{name:a,value:r,placeholder:i,required:n,validationError:o}}=t;return Object(N.jsx)(E.r,{className:It.a["sub-widget-editor"],children:Object(N.jsx)(Et,{definition:t,fieldProps:{required:n,name:a,error:o},widgetProps:{disabled:!0,placeholder:i,value:r}})})})),Xt=Object(v.a)((e=>{var t,a,r,i,{ctxId:n,widget:o}=e,{children:s}=o.data,c=Object(b.useMemo)((()=>{var e=s;return[e.find((e=>e.id===Nt.a.TimeOfArrivingLate)),e.find((e=>e.id===Nt.a.TimeOfOffLeaveEarly)),e.find((e=>e.id===Nt.a.TimeOfDailyBreaks))]}),[s]),[l,d,u]=c,p=Object(k.f)(((e,t)=>{var{configurableFormStore:a}=Object(f.d)(n),{options:r}=t.data,i=Number(e.detail.value);t.data.value={value:r[i].value,text:r[i].text},a.handleWidgetChange(null==t?void 0:t.id)})),m=(Number(null!==(t=null==l||null===(a=l.data.value)||void 0===a?void 0:a.value)&&void 0!==t?t:0)+Number(null!==(r=null==d||null===(i=d.data.value)||void 0===i?void 0:i.value)&&void 0!==r?r:0))/60;return Object(b.useEffect)((()=>{Object(k.s)((()=>{var{configurableFormStore:e}=Object(f.d)(n);u?(u.data.value=String(m),e.handleWidgetChange(null==u?void 0:u.id)):qt("Failed to execute updateDurationValue because the widget is null! ".concat(JSON.stringify({TimeOfDailyBreaks:u})))}))}),[n,m,u]),l&&d&&u?Object(N.jsxs)(E.r,{className:R()(It.a.field,It.a.group),children:[Object(N.jsx)(E.r,{className:It.a.title,children:Object(G.t)("LeaveGroup.DailyBreaksMethod"," 每日休息方式")}),Object(N.jsxs)(E.r,{className:R()(It.a.value,It.a.block),children:[Object(N.jsx)(Kt,{widget:l,onChange:e=>p(e,l)}),Object(N.jsx)(Kt,{widget:d,onChange:e=>p(e,d)}),Object(N.jsx)(Jt,{widget:u})]})]}):(qt("Failed to render HolidayPeriod widget because some widget(s) is null! ".concat(JSON.stringify({TimeOfArrivingLate:l,TimeOfOffLeaveEarly:d,TimeOfDailyBreaks:u}))),null)})),$t=Object(X.c)("pc:src/components/configurable-form/components/widgets/leave-group-v2/editor/breast-feeding/holiday-period.tsx"),ea=e=>{console.error(e),$t("commonOnError",{message:e})},ta=Object(v.a)((e=>{var{ctxId:t,widget:a}=e,{isNeedCertificate:r,certificateHint:i,children:n}=a.data,o=Object(b.useMemo)((()=>n.find((e=>e.id===Nt.a.Certification))),[n]);return Object(b.useEffect)((()=>{Object(k.s)((()=>{if(!o)return ea("Failed to update description widget because the widget is null! ".concat(JSON.stringify({Certification:o})));o.data.description=i}))}),[o,i]),o?r?Object(N.jsx)(Ue.a,{ctxId:t,widget:o}):null:(ea("Failed to render HolidayPeriod widget because some widget(s) is null! ".concat(JSON.stringify({Certification:o}))),null)})),aa=a(169),ra=a(145),ia=a(117),na=a(254),oa=Object(X.c)("pc:src/components/configurable-form/components/widgets/leave-group-v2/editor/index.tsx"),sa=(kt=k.f.bound,Object(v.a)((Rt=class extends b.Component{constructor(e){super(e),Object(w.a)(this,"state",{leaveTypes:[],leaveTypeIndex:-1,durationIndex:-1,durationRange:[],maxDuration:0,currentUserId:""}),Object(w.a)(this,"isHalf",void 0),Object(w.a)(this,"onLeaveTypeChange",Object(k.k)(this._onLeaveTypeChange)),Object(w.a)(this,"changeDurationAfterTypeOrDate",Object(k.k)(this._changeDurationAfterTypeOrDate)),Object(mt.a)(this,"handleReasonChange",Pt,this),Object(w.a)(this,"handleDateTimeChange",Object(k.k)(this._handleDateTimeChange)),Object(mt.a)(this,"handleDateDurationChange",Ut,this),Object(mt.a)(this,"handleTimezoneChange",Bt,this),Object(w.a)(this,"openLeaveDetailModal",(()=>{var e,{ctxId:t,widget:a}=this.props,{detailModalStore:r}=Object(f.d)(t),{leaveDetail:i,schedules:n,leaveQuota:o,children:s}=a.data,c=null===(e=s.find((e=>"widgetLeaveGroupAttendanceUnit"===e.id)))||void 0===e?void 0:e.data.value,l=Object(At.a)({leaveDetail:i,schedules:n,leaveQuota:o,leaveUnit:c});oa("submitLeaveViewDuration",{data:l}),r.leaveDetailModal(l)})),Object(w.a)(this,"loadDataWhenInit",Object(k.k)(this._loadDataWhenInit));var{ctxId:t}=e,{configurableFormStore:a}=Object(f.d)(t);this.state.currentUserId=a.options.userStore.currentUser.userId}get leaveType(){return this.props.widget.data.children.find((e=>"widgetLeaveGroupType"===e.id))}get leaveStart(){return this.props.widget.data.children.find((e=>"widgetLeaveGroupStartTime"===e.id))}get leaveEnd(){return this.props.widget.data.children.find((e=>"widgetLeaveGroupEndTime"===e.id))}get leaveDuration(){return this.props.widget.data.children.find((e=>"widgetLeaveGroupInterval"===e.id))}get leaveTimezone(){return this.props.widget.data.children.find((e=>"widgetLeaveTimeZoneType"===e.id))}getMaxDuration(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.leaveStart||!this.leaveEnd)return{durationRange:[],maxDuration:0};var r=e[t],i=this.leaveStart.data.value,n=this.leaveEnd.data.value,{isFromModify:o,isLeaveRefactorGray:s}=a;if(!(i&&n&&n>=i))return{durationRange:[],maxDuration:0};var c,l=1/0;if(r.balanceUnit===We.f.HOUR)if(r.leaveUnit===We.m.MINUTE){var d=Math.max(0,(Number(n)-Number(i))/6e4+0);l=Math.min(l,d),0===r.balanceQuota||o||s||void 0===r.balanceQuota||(l=Math.min(l,60*r.balanceQuota)),c=Object.keys(Array.from(Array(Math.round(l)))).map((e=>((Number(e)+1)/60).toFixed(2)))}else{c=[];var u=(Number(n)-Number(i))/36e5;l=Math.min(l,u),0===r.balanceQuota||o||s||void 0===r.balanceQuota||(l=Math.min(l,r.balanceQuota));for(var p=.5;p<=l;p+=.5)c.push(p)}else{var m=Object(ia.c)(this.isHalf)?r.leaveUnit===We.m.HALF_DAY:this.isHalf,h=m?.5:1,b=Math.max(h,(Number(n)-Number(i))/864e5+h);l=Math.min(l,b),0===r.balanceQuota||o||s||void 0===r.balanceQuota||(l=Math.min(l,r.balanceQuota)),c=m?Object.keys(Array.from(Array(Math.round(2*l)))).map((e=>String(.5*(Number(e)+1)))):Object.keys(Array.from(Array(Math.round(l)))).map((e=>String(Number(e)+1)))}return{durationRange:c,maxDuration:Math.max(l,0)}}calcAndShowLeaveTypeToast(e,t,a){var{ctxId:r}=this.props,{configurableFormStore:i}=Object(f.d)(r);t||i.insteadSubmitManager.currentSubmitterIsNotCurrentUser||(e&&0===e.balanceQuota&&e.balanceUsed&&!e.isLeaveRefactorGray?U.b.showToast({title:Object(G.t)("PC.Error_LeaveNoBalance",{typeName:a}),icon:"error",duration:3e3}):e&&e.isLeaveRefactorGray&&e.selectHit&&[Ot.c.Disable,Ot.c.Limited].includes(e.selectHit.selected_type)&&U.b.showToast({title:e.selectHit.hit_text,icon:"error",duration:3e3}))}*_onLeaveTypeChange(e){var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),{leaveTypes:i}=this.state,n=i[e],o=Boolean(r.params.modify);if(this.calcAndShowLeaveTypeToast(n,o,n.leaveName),oa("leaveGroupTypeChange",{leaveType:this.leaveType,obj:n,isFromModify:o}),this.leaveType){this.leaveType.data.value={text:n.leaveName,value:"".concat(n.id),leaveT:n};var s=We.g[n.balanceUnit],[c,l,d,u,p,m]=[Nt.a.Type,Nt.a.StartTime,Nt.a.EndTime,Nt.a.Unit,Nt.a.Duration,Nt.a.AttendanceUnit].map((e=>t.data.children.find((t=>t.id===e))));if(l&&d){if((n.balanceUnit!==We.f.HOUR||n.balanceOfferRuleType===We.e.BreastFeeding)&&l&&d&&(l.data.value=null,d.data.value=null,t.data.schedules=[],t.data.leaveDetail=[]),u){var{data:{options:h}}=u;u.data.value=(n.balanceUnit===We.f.HOUR?h.find((e=>"HOUR"===e.value)):h.find((e=>"DAY"===e.value)))||null}t.data.ext=Object(_.a)(Object(_.a)({},t.data.ext),{},{widgetLeaveRuleType:n.balanceOfferRuleType});var b=n.balanceOfferRuleType===We.e.BreastFeeding;if(b){var g=t.data.children.find((e=>e.id===Nt.a.Reason));null!=g&&g.data.value&&(g.data.value="")}if(t.data.isLeaveRefactorGray){var v,j,O=[Nt.a.PregnancyCheckUp,Nt.a.InfantNum,Nt.a.DifficultLabour,Nt.a.PremaritalCheckUp,Nt.a.PregnancyAge,Nt.a.RelationType].map((e=>t.data.children.find((t=>t.id===e)))),M=n.isLeaveRefactorGray&&null!==(v=null===(j=n.customForm)||void 0===j?void 0:j.custom_item_list)&&void 0!==v?v:[];O.forEach((e=>{if(e){var t=M.some((t=>t.input_type===Nt.e[e.id]));e.data.required=t,t||(e.data.value=null)}}))}var y=[Nt.a.TimeOfArrivingLate,Nt.a.TimeOfOffLeaveEarly,Nt.a.TimeOfDailyBreaks].map((e=>t.data.children.find(Object(Nt.b)(e))));y.forEach((e=>{e&&(e.data.required=b,b||(e.data.value=null))})),p&&(p.data.validationWarning="",p.data.validationError="");try{m?m.data.value=m.data.options[n.leaveUnit-1]:Object(P.b)(J.f.ApprovalError,{location:"in function onLeaveTypeChange at src/components/configurable-form/components/widgets/leave-group-v2/editor/index.tsx",message:"需要更新审批定义, 新增 widgetLeaveGroupAttendanceUnit 字段"})}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function onLeaveTypeChange at src/components/configurable-form/components/widgets/leave-group-v2/editor/index.tsx",message:JSON.stringify(e)})}l.data.text=Object(gt.d)(l.data.value,s),d.data.text=Object(gt.d)(d.data.value,s),n.balanceUnit===We.f.DAY&&(l.data.value&&(l.data.value=l.data.value.hour(0)),d.data.value&&(d.data.value=d.data.value.hour(0))),this.isHalf=n.leaveUnit===We.m.HALF_DAY,yield this.changeDurationAfterTypeOrDate(e),c&&r.handleWidgetChange(null==c?void 0:c.id)}}}calcDurationFromBackend(e){var t=this;return Object(S.a)((function*(){if(t.leaveStart&&t.leaveEnd){var{widget:a}=t.props,{isLeaveRefactorGray:r}=a.data,i=t.leaveStart.data.value,n=t.leaveEnd.data.value,o=t.leaveStart.data.timezoneOffset;if(r&&Number(n)<Number(i))return{leaveQuota:0};if(i&&n){console.log("bolt timeZone",o);var s=o&&-o||Ie()().utcOffset(),c={definitionId:e,startTime:Number(i),endTime:Number(n),startDateTime:Ie()(Number(i)).utcOffset(s).format("YYYY-MM-DD HH:mm:ss"),endDateTime:Ie()(Number(n)).utcOffset(s).format("YYYY-MM-DD HH:mm:ss"),imitateUserId:t.state.currentUserId,time_offset:s};oa("submitLeaveCalculateStart",{params:c});var l=yield Object(vt.i)(Q.c,c,void 0,r);return oa("submitLeaveCalculateDone",{params:c,data:l}),l.leaveDetail&&l.leaveDetail.length&&l.leaveDetail.forEach(((e,t)=>{l.leaveDetail[t].range=Object(gt.e)([e.rangeDateTime[0],e.rangeDateTime[1]])})),l}return{leaveQuota:0}}}))()}*_changeDurationAfterTypeOrDate(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.leaveTypeIndex,{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),i=t.data.children.find((e=>"widgetLeaveGroupInterval"===e.id)),{leaveTypes:n}=this.state,o=n[e];if(!Object(vt.h)(o.leaveTimeCalRule)&&this.leaveDuration){var s,c,l=yield this.calcDurationFromBackend(o.id),d=null!==(s=l.isNeedCertificate)&&void 0!==s&&s;t.data.isNeedCertificate=d,t.data.certificateHint=null!==(c=l.certificateHint)&&void 0!==c?c:"";var[u]=[Nt.a.Certification].map((e=>t.data.children.find(Object(Nt.b)(e))));u&&(u.data.required=d,u.data.visible=d,d||(u.data.uploadImageList=[])),t.data.schedules=l.schedules,t.data.leaveDetail=l.leaveDetail,t.data.leaveQuota=l.leaveQuota,this.leaveDuration.data.value={value:l.leaveQuota,text:l.leaveQuota},this.setState({leaveTypeIndex:e,durationIndex:0,maxDuration:l.leaveQuota,durationRange:[l.leaveQuota]},(()=>{i&&r.handleWidgetChange(i.id)}))}else{var{durationRange:p,maxDuration:m}=this.getMaxDuration(n,e,{isFromModify:Boolean(r.params.modify),isLeaveRefactorGray:t.data.isLeaveRefactorGray}),h=p.length-1,b=-1===h?"":p[h];this.leaveDuration&&(this.leaveDuration.data.value={value:b,text:b}),this.setState({leaveTypeIndex:e,durationIndex:h,durationRange:p,maxDuration:m})}}renderReason(){var e=this.props.widget.data.children.find((e=>"widgetLeaveGroupReason"===e.id)),{required:t,name:a,placeholder:r,validationError:i,value:n,visible:o}=(null==e?void 0:e.data)||{};return!1===o?null:Object(N.jsxs)(E.r,{className:It.a["sub-widget-editor"],children:[Object(N.jsx)(B.a,{required:t,children:a}),Object(N.jsx)(Dt.a,{placeholder:r,value:n,onInput:this.handleReasonChange}),Object(N.jsx)(F.a,{text:i})]})}checkSeal(e,t){return Object(S.a)((function*(){var a=e.data.children[1];if(a.data.value){oa("submitLeaveSealStart");try{var r=yield Object(aa.b)([a.data.value.format("YYYYMMDD")],[t.insteadSubmitManager.currentSubmitterId],ra.a.Leave);oa("submitLeaveSealDone",{notSeal:r})}catch(e){oa("submitLeaveSealError",{err:e})}}}))()}*_handleDateTimeChange(e,t){var a,{widget:r,ctxId:i}=this.props,{configurableFormStore:n}=Object(f.d)(i),o="start"===t?this.leaveStart:this.leaveEnd;if(o){var{leaveTypes:s,leaveTypeIndex:c}=this.state,l=s[c],d=We.g[l.balanceUnit];o.data.timezoneOffset=(null===(a=this.leaveTimezone)||void 0===a?void 0:a.data.timezoneOffset)||new Date(Number(e)).getTimezoneOffset(),o.data.value=e&&Object(na.b)(e,-Number(o.data.timezoneOffset)),o.data.text=Object(gt.d)(e,d),"start"===t&&this.checkSeal(r,n);var u=r.data.children.find((e=>"start"===t?"widgetLeaveGroupStartTime"===e.id:"widgetLeaveGroupEndTime"===e.id));yield this.changeDurationAfterTypeOrDate(),u&&n.handleWidgetChange(u.id)}}renderLeaveType(){var e,{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),i=Boolean(null==r||null===(e=r.params)||void 0===e?void 0:e.modify),{data:{hasHistory:n}}=t,o=t.data.children.find((e=>"widgetLeaveGroupType"===e.id));if(o){var{data:{required:s,name:c,placeholder:l,validationError:d}}=o,{leaveTypes:u,leaveTypeIndex:p}=this.state,m=u.map((e=>e.balanceUsed&&void 0!==e.balanceQuota?{[We.f.HOUR]:"".concat(e.leaveName).concat(Object(G.t)("LeaveGroup.Remind_Hour",{count:e.balanceQuota})),[We.f.HALF_DAY]:"".concat(e.leaveName).concat(Object(G.t)("LeaveGroup.Remind_Day",{count:e.balanceQuota})),[We.f.DAY]:"".concat(e.leaveName).concat(Object(G.t)("LeaveGroup.Remind_Day",{count:e.balanceQuota}))}[e.balanceUnit]:e.leaveName));return Object(N.jsxs)(E.r,{className:It.a["sub-widget-editor"],children:[Object(N.jsxs)(B.a,{required:s,children:[c,n&&Object(N.jsx)(ue.a,{ctxId:a,widget:t},t.id)]}),Object(N.jsx)(yt.a,{disabled:i,placeholder:l,range:m,value:p,vwidth:600,onChange:this.onLeaveTypeChange}),Object(N.jsx)(F.a,{text:d})]})}}renderDate(e){var{widget:t}=this.props,{leaveTypes:a,leaveTypeIndex:r}=this.state,{data:{required:i,name:n,placeholder:o,validationError:s,value:c}}=t.data.children["start"===e?1:2],l=a[r];this.isHalf=l.leaveUnit===We.m.HALF_DAY;var d=We.g[l.balanceUnit];return Object(N.jsxs)(E.r,{className:It.a["sub-widget-editor"],children:[Object(N.jsx)(B.a,{required:i,children:n}),Object(N.jsx)(bt.a,{type:d,isHalfHour:l.balanceUnit===We.f.HOUR&&l.leaveUnit!==We.m.MINUTE,placeholder:o,value:c,onChange:t=>{this.handleDateTimeChange.bind(this)(t,e)}}),Object(N.jsx)(F.a,{text:s})]})}renderDateDuration(){var{widget:e}=this.props,{schedules:t}=e.data,[a,r,i,n]=[Nt.a.StartTime,Nt.a.EndTime,Nt.a.Duration,Nt.a.Unit].map((t=>e.data.children.find((e=>e.id===t))));if(a&&r&&i&&n){var{value:o}=a.data,{value:s}=r.data,{options:c}=n.data,{required:l,name:d,placeholder:u,validationError:p,validationWarning:m}=i.data,{leaveTypes:h,leaveTypeIndex:b,durationIndex:g,durationRange:v}=this.state,j=h[b],O=!Object(vt.h)(j.leaveTimeCalRule),f=j.balanceUnit===We.f.HOUR?c.find((e=>"HOUR"===e.value)):c.find((e=>"DAY"===e.value)),M=null==f?void 0:f.text,_=o&&s,y=!t||0===t.length,D=_&&Object(vt.l)(j.leaveTimeCalRule)&&y&&!0;return Object(N.jsxs)(E.r,{className:It.a["sub-widget-editor"],children:[Object(N.jsxs)(B.a,{required:l,children:[d,Object(G.t)("Brackets",{innerText:M})]}),Object(N.jsx)(ht.a,{disabled:O,placeholder:u,range:v,value:g,onChange:this.handleDateDurationChange}),D&&Object(N.jsx)(E.r,{className:It.a["exclude-work-days"],children:Object(N.jsx)(E.p,{children:Object(vt.b)(j.leaveTimeCalRule)})}),(p||m)&&Object(N.jsx)(F.a,{text:p||m}),t&&t.length>0&&Object(N.jsxs)(E.r,{className:It.a["view-leave-detail-btn"],onClick:this.openLeaveDetailModal,children:[Object(N.jsx)(E.p,{className:It.a["view-leave-detail-btn-text"],children:Object(G.t)("LeaveGroup.LeaveDetail_Text")}),Object(N.jsx)(E.p,{children:" ".concat(Object(G.t)("LeaveGroup.LeaveDetail"))})]})]})}}renderTimezone(){if(this.leaveTimezone&&ne.d.fgLeaveGroupTimeZone)return Object(N.jsx)(Wt,{widget:this.leaveTimezone,onChange:this.handleTimezoneChange})}renderWidgetsForBeastFeeding(){var{leaveTypes:e,leaveTypeIndex:t}=this.state,a=e[t];return~t?Object(N.jsxs)(g.a.Fragment,{children:[Object(N.jsx)(Ht,Object(_.a)(Object(_.a)({},this.props),{},{LeaveType:a,checkSeal:this.checkSeal})),Object(N.jsx)(Xt,Object(_.a)(Object(_.a)({},this.props),{},{LeaveType:a})),this.renderCustomWidgets(),this.renderLeaveCertification()]}):null}renderLeaveCertification(){var{leaveTypes:e,leaveTypeIndex:t}=this.state,a=e[t];return Object(N.jsx)(ta,Object(_.a)(Object(_.a)({},this.props),{},{LeaveType:a}))}handleSingleSelectChange(e,t){var{ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),{options:i}=t.data,n=Number(e.detail.value);t.data.value={value:i[n].value,text:i[n].text},r.handleWidgetChange(null==t?void 0:t.id)}renderCustomWidgets(){var{leaveTypes:e,leaveTypeIndex:t}=this.state,{widget:a}=this.props,{isLeaveRefactorGray:r}=a.data;if(!r)return null;var i=e[t],n=[Nt.a.PregnancyCheckUp,Nt.a.InfantNum,Nt.a.DifficultLabour,Nt.a.PremaritalCheckUp,Nt.a.PregnancyAge,Nt.a.RelationType].filter((e=>{var t,a;return!!i.isLeaveRefactorGray&&(null!==(t=null===(a=i.customForm)||void 0===a?void 0:a.custom_item_list)&&void 0!==t?t:[]).some((t=>t.input_type===Nt.e[e]))})).map((e=>a.data.children.find((t=>t.id===e)))).filter((e=>void 0!==e));return Object(N.jsx)(E.a,{children:n.map((e=>Object(N.jsx)(Kt,{widget:e,onChange:t=>this.handleSingleSelectChange(t,e)},e.id)))})}*_loadDataWhenInit(){var e,{widget:t,ctxId:a}=this.props;oa("submitLeaveGreyStart");var r=yield Object(jt.a)();oa("submitLeaveGreyDone",{isLeaveRefactorGray:r}),t.data.isLeaveRefactorGray=r;var{configurableFormStore:i}=Object(f.d)(a),n=t.data.children.find((e=>"widgetLeaveGroupInterval"===e.id));oa("submitLeaveBalanceStart",{imitateUserId:this.state.currentUserId,isLeaveRefactorGray:r});var o=yield Object(vt.j)(Q.c,{imitateUserId:this.state.currentUserId},void 0,r);if(i.leaveTypes=o,oa("submitLeaveBalanceDone",{imitateUserId:this.state.currentUserId,isLeaveRefactorGray:r,leaveTypes:o}),i.insteadSubmitManager.currentSubmitterIsNotCurrentUser&&o.forEach((e=>{e&&void 0!==e.balanceQuota&&delete e.balanceQuota})),this.setState({leaveTypes:o}),t&&this.leaveType&&this.leaveDuration&&this.leaveEnd&&this.leaveStart&&n){var{data:{value:s}}=this.leaveType;if(s){var c=o.findIndex((e=>"".concat(e.id)==="".concat(s.value)));c<0&&s.value&&U.b.showToast({title:Object(G.t)("LeaveGroup.NoBalanceDefinition",{typeName:s.text}),icon:"error",duration:3e3});var l=o[c],d=Boolean(null===(e=i.params)||void 0===e?void 0:e.modify);this.calcAndShowLeaveTypeToast(l,d,s.text),l&&l.leaveName&&(this.leaveType.data.value={text:l.leaveName,value:"".concat(l.id),leaveT:l}),this.leaveStart.data.value&&!d&&(this.leaveStart.data.value=null),this.leaveEnd.data.value&&!d&&(this.leaveEnd.data.value=null);var{durationRange:u,maxDuration:p}=this.getMaxDuration(o,c,{isFromModify:Boolean(i.params.modify)}),{durationIndex:m}=this.state;if(this.leaveDuration.data.value){var h=this.leaveDuration.data.value.value;m=u.findIndex((e=>String(e)===String(h)))}var[b]=[Nt.a.Certification].map((e=>t.data.children.find(Object(Nt.b)(e))));b&&!d&&(b.data.uploadImageList=[]),this.setState({leaveTypeIndex:c,durationRange:u,maxDuration:p,durationIndex:m},(()=>{var e;null!==(e=this.leaveType)&&void 0!==e&&e.data.value&&i.handleWidgetChange(n.id)})),oa("submitLeaveLoadDone",{leaveTypeIndex:c,durationRange:u,maxDuration:p,durationIndex:m})}}}static getDerivedStateFromProps(e,t){var{ctxId:a,widget:r}=e,{configurableFormStore:i}=Object(f.d)(a),n=i.insteadSubmitManager.currentSubmitterId,o=r.data.children.find((e=>"widgetLeaveGroupType"===e.id)),s={};return n!==t.currentUserId&&(s.currentUserId=n),o&&o.data&&null===o.data.value&&(s.leaveTypeIndex=-1),"{}"===JSON.stringify(s)?null:s}componentDidUpdate(e,t){t.currentUserId!==this.state.currentUserId&&this.loadDataWhenInit()}componentDidMount(){oa("submitLeaveLoadStart"),this.loadDataWhenInit()}render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{configurableFormStore:a}=Object(f.d)(t);return K.a.info(a.insteadSubmitManager.currentSubmitterId),Object(N.jsxs)(E.r,{className:It.a["leave-group-v2-editor"],children:[this.renderLeaveType(),this.renderWidgetsWithoutLeaveType()]})}renderWidgetsWithoutLeaveType(){var{leaveTypes:e,leaveTypeIndex:t}=this.state,a=e[t];return~t?a.balanceOfferRuleType===We.e.BreastFeeding?this.renderWidgetsForBeastFeeding():Object(N.jsxs)(g.a.Fragment,{children:[this.renderDate("start"),this.renderDate("end"),this.renderDateDuration(),this.renderTimezone(),this.renderCustomWidgets(),this.renderReason(),this.renderLeaveCertification()]}):null}},Object(L.a)(Rt.prototype,"_onLeaveTypeChange",[kt],Object.getOwnPropertyDescriptor(Rt.prototype,"_onLeaveTypeChange"),Rt.prototype),Pt=Object(L.a)(Rt.prototype,"handleReasonChange",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),i=t.data.children.find((e=>"widgetLeaveGroupReason"===e.id));i&&(i.data.value=e.detail.value,r.handleWidgetChange(i.id))}}}),Ut=Object(L.a)(Rt.prototype,"handleDateDurationChange",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),i=t.data.children.find((e=>"widgetLeaveGroupInterval"===e.id));if(i&&this.leaveDuration){var{durationRange:n}=this.state,o=Number(e.detail.value);if(!(o<0||o>=n.length)){this.setState({durationIndex:o});var s=n[o];this.leaveDuration.data.value={value:s,text:s},r.handleWidgetChange(i.id)}}}}}),Bt=Object(L.a)(Rt.prototype,"handleTimezoneChange",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{ctxId:t}=this.props,{configurableFormStore:a}=Object(f.d)(t);this.leaveTimezone.data.value=e,Ft().then((t=>{Object(k.s)((()=>{var r,i,n=t.find((t=>t.ID===e.value));this.leaveTimezone.data.timezoneOffset=-n.UTCOffset,a.handleWidgetChange(this.leaveTimezone.id),null!==(r=this.leaveStart)&&void 0!==r&&r.data&&(this.leaveStart.data.timezoneOffset=-n.UTCOffset,this.leaveStart.data.value&&(this.leaveStart.data.value=Object(na.b)(this.leaveStart.data.value,Number(n.UTCOffset))),a.handleWidgetChange(this.leaveStart.id)),null!==(i=this.leaveEnd)&&void 0!==i&&i.data&&(this.leaveEnd.data.timezoneOffset=-n.UTCOffset,this.leaveEnd.data.value&&(this.leaveEnd.data.value=Object(na.b)(this.leaveEnd.data.value,Number(n.UTCOffset))),a.handleWidgetChange(this.leaveEnd.id)),this.changeDurationAfterTypeOrDate()}))}))}}}),Object(L.a)(Rt.prototype,"handleSingleSelectChange",[k.f],Object.getOwnPropertyDescriptor(Rt.prototype,"handleSingleSelectChange"),Rt.prototype),zt=Rt))||zt),ca=sa,la=a(711);a(1296);class da extends b.Component{constructor(){super(...arguments),Object(w.a)(this,"innerCtxId",void 0)}init(e){this.innerCtxId=Object(f.c)(Object(f.d)(e),{isChildOfWorkGroup:!0},this)}render(){var{widget:e}=this.props;if(!e)return null;var{data:{hasHistory:t,name:a}}=e,{children:r}=e.data;return Object(N.jsxs)(E.r,{className:"trip-group-editor",children:[t&&Object(N.jsx)(E.r,{className:"fake-title-wrap",children:Object(N.jsx)(E.r,{className:"fake-title-wrap-inner",children:Object(N.jsxs)(B.a,{required:!1,children:[Object(N.jsx)(E.p,{className:"fill-name",children:a}),Object(N.jsx)(ue.a,{ctxId:this.innerCtxId,widget:e},e.id)]})})}),r.map((e=>Object(N.jsx)(fi,{ctxId:this.innerCtxId,widget:e},e.id)))]})}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.init(e)}componentWillUnmount(){Object(f.b)(this)}}var ua=da;a(1297);class pa extends b.Component{constructor(){super(...arguments),Object(w.a)(this,"innerCtxId",void 0)}init(e){this.innerCtxId=Object(f.c)(Object(f.d)(e),{isChildOfTripGroup:!0},this)}render(){var{widget:e}=this.props;if(!e)return null;var{data:{hasHistory:t,name:a}}=e,{children:r}=e.data;return Object(N.jsxs)(E.r,{className:"trip-group-editor",children:[t&&Object(N.jsx)(E.r,{className:"fake-title-wrap",children:Object(N.jsx)(E.r,{className:"fake-title-wrap-inner",children:Object(N.jsxs)(B.a,{required:!1,children:[Object(N.jsx)(E.p,{className:"fill-name",children:a}),Object(N.jsx)(ue.a,{ctxId:this.innerCtxId,widget:e},e.id)]})})}),r.map((e=>Object(N.jsx)(fi,{ctxId:this.innerCtxId,widget:e},e.id)))]})}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.init(e)}componentWillUnmount(){Object(f.b)(this)}}var ma,ha,ba,ga,va,ja=pa;a(1298),function(e){e[e.SHIFT=0]="SHIFT",e[e.RETURN=1]="RETURN"}(va||(va={}));var Oa,fa,Ma,_a,ya,Da,Na,Aa,Ta,Ia,Ca,xa,Sa,wa,La,Ea,ka,za,Ra,Pa,Ua,Ba,Fa,Ya,Qa,Ga,Wa,Va,Ha,Za,qa,Ka,Ja,Xa,$a,er,tr,ar=Object(v.a)((ha=class extends b.Component{constructor(){super(...arguments),Object(mt.a)(this,"handleReason",ba,this),Object(mt.a)(this,"handleDateTimeChange",ga,this)}renderDate(e,t){var{name:a,required:r,placeholder:i,value:n,validationError:o}=e,{ctxId:s,widget:c}=this.props,{data:{hasHistory:l}}=c,d=We.g[We.f.DAY],u=n&&n.value?Ie()(n.value):null;return Object(N.jsxs)(E.r,{className:"item",children:[Object(N.jsxs)(B.a,{required:r,children:[a,l&&Object(N.jsx)(ue.a,{ctxId:s,widget:c},c.id)]}),Object(N.jsx)(bt.a,{type:d,placeholder:i,value:u,onChange:e=>this.handleDateTimeChange(e,t)}),Object(N.jsx)(F.a,{text:o})]})}renderReason(e){var{required:t,name:a,placeholder:r,value:i,validationError:n}=e;return Object(N.jsxs)(E.r,{className:"item",children:[Object(N.jsx)(B.a,{required:t,children:a}),Object(N.jsx)(Dt.a,{placeholder:r,value:i,onInput:this.handleReason}),Object(N.jsx)(F.a,{text:n})]})}render(){var{widget:e}=this.props;if(!e)return null;var[t,a,r]=e.data.value;return Object(N.jsxs)(E.r,{className:"shift-group-editor",children:[this.renderDate(t,va.SHIFT),this.renderDate(a,va.RETURN),this.renderReason(r)]})}},ba=Object(L.a)(ha.prototype,"handleReason",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),[,,i]=t.data.value;i.value=e.detail.value,r.validateWidget(t.id),r.handleWidgetChange(t.id)}}}),ga=Object(L.a)(ha.prototype,"handleDateTimeChange",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{var{widget:a,ctxId:r}=this.props,{configurableFormStore:i}=Object(f.d)(r),n=a.data.value[t];n.value=Object(_.a)(Object(_.a)({},Object(gt.o)(e,Object(gt.d)(e,n.subtype))),{},{day:e}),i.validateWidget(a.id),i.handleWidgetChange(a.id)}}}),ma=ha))||ma,rr=ar,ir=a(447),nr=a(675),or=a(714),sr=a(61),cr=(a(1300),Object(v.a)((fa=class extends b.Component{constructor(){var e;super(...arguments),e=this,Object(w.a)(this,"innerCtxId",void 0),Object(mt.a)(this,"selectOnChange",Ma,this),Object(mt.a)(this,"clearInvalidWorkers",_a,this),Object(mt.a)(this,"resetUsersValidateError",ya,this),Object(w.a)(this,"openWorkWorkersModal",Object(S.a)((function*(){var{ctxId:t,widget:a}=e.props,{detailModalStore:r}=Object(f.d)(t),{usersValidateData:i,userValidateHintText:n}=a.data,{result:o}=yield r.workWorkersModal({hintText:n,conflictList:i});"ok"===o&&e.clearInvalidWorkers(),e.resetUsersValidateError()})))}componentWillUnmount(){Object(f.b)(this)}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.init(e)}init(e){this.innerCtxId=Object(f.c)(Object(f.d)(e),{isChildOfWorkGroup:!0},this)}componentDidUpdate(e,t){var a,r,i,n,o,s,c,l;(null==t||null===(a=t.widget)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.usersValidateError)!==(null===(i=this.props)||void 0===i||null===(n=i.widget)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.usersValidateError)&&null!==(s=this.props)&&void 0!==s&&null!==(c=s.widget)&&void 0!==c&&null!==(l=c.data)&&void 0!==l&&l.usersValidateError&&this.openWorkWorkersModal()}render(){var{widget:e}=this.props;if(!e)return null;var{data:{children:t,hasHistory:a,option:{isSetRule:r,allowInsteadMultiUser:i},isSpecialRule:n,name:o,usersValidateError:s},detail:c}=e,l=t[5].data,d=[{title:Object(G.t)("WorkGroup.OvertimeDate"),dataIndex:"workTime",isEdit:!1},{title:"".concat(Object(G.t)("WorkGroup.Duration")).concat(Object(G.t)("Brackets",{innerText:l.value?l.value.text:""})),dataIndex:"Interval",isEdit:!0}];r===sr.g.SET&&d.push({title:Object(G.t)("WorkGroup.CalcMethod"),dataIndex:"Type",isEdit:!0});var u=[...t.slice(8,9),...t.slice(0,3)],p=t.slice(3,8),m=u.filter((e=>!("widgetWorkGroupType"===e.id&&r===sr.g.SET||"widgetWorkGroupOvertimeWorkers"===e.id&&i!==sr.c.ALLOW))),h=p.filter((e=>!(sr.l.includes(e.id)||(!t[1].data.value||!t[2].data.value||c.length<=0)&&"widgetWorkGroupInterval"===e.id)));return Object(N.jsxs)(E.r,{className:"work-group-editor",children:[a&&Object(N.jsx)(E.r,{className:"fake-title-wrap",children:Object(N.jsx)(E.r,{className:"fake-title-wrap-inner",children:Object(N.jsxs)(B.a,{required:!1,children:[Object(N.jsx)(E.p,{className:"fill-name",children:o}),Object(N.jsx)(ue.a,{ctxId:this.innerCtxId,widget:e},e.id)]})})}),m.map((e=>Object(N.jsx)(fi,{ctxId:this.innerCtxId,widget:e,disableCrossTenant:!0},e.id))),c.length>0&&Object(N.jsxs)(E.r,{children:[Object(N.jsx)(B.a,{required:!0,children:Object(N.jsx)(E.p,{children:Object(G.t)("WorkGroup.PerOvertimeDetail")})}),Object(N.jsx)(or.a,{dataSource:c,columns:d,onChange:this.selectOnChange})]}),h.map((e=>Object(N.jsxs)(E.r,{children:[Object(N.jsx)(fi,{ctxId:this.innerCtxId,widget:e},e.id),n&&"widgetWorkGroupInterval"===e.id&&Object(N.jsx)(E.r,{className:"work-duration-tip",children:Object(N.jsx)(E.p,{children:Object(G.t)("WorkGroup.WorkChangeTips")})})]},e.id)))]})}},Ma=Object(L.a)(fa.prototype,"selectOnChange",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t,a)=>{var{widget:r,ctxId:i}=this.props,{configurableFormStore:n}=Object(f.d)(i),{data:{children:o,isLeaveRefactorGray:s}}=r,c=o[7],l=o[3].data,d=c.data.groups[a].widgets.find((e=>e.id.includes(t)));if(d.data.value=d.data.options[e.detail.value]||null,"Interval"===t){var u=0;c.data.groups.forEach((e=>{var a=e.widgets.find((e=>e.id.includes(t)));u+=a.data.value?Number(a.data.value.value):0})),s&&(u=Math.round(100*u)/100),l.value="".concat(u)}var p=[].concat(Object(k.u)(r.detail));p[a][t].value=e.detail.value,r.detail=p,n.handleWidgetChange("Interval"===t?o[3].id:d.id)}}}),_a=Object(L.a)(fa.prototype,"clearInvalidWorkers",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e}=this.props,{usersValidateData:t}=e.data,a=e.data.children[8];if(a&&t){var r=new Set;t.forEach((e=>r.add(e.user_id))),a.data.users=a.data.users.filter((e=>!r.has(e.id)))}}}}),ya=Object(L.a)(fa.prototype,"resetUsersValidateError",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e}=this.props;e.data.usersValidateError=!1}}}),Oa=fa))||Oa),lr=cr,dr=a(96),ur=(a(1301),Object(v.a)(Da=class extends b.Component{constructor(){super(...arguments),Object(w.a)(this,"innerCtxId",void 0),Object(w.a)(this,"isWidgetVisible",((e,t)=>{var{data:{children:a,option:r}}=e,i=a[0].data,n=a[2].data,o=a[3].data,{isSetType:s}=r;if(1===t)return!1;if(s===dr.b.HIDDEN&&0===t)return!1;if(s===dr.b.SHOW&&!i.value){if(2===t)return!1;if(3===t)return!1}return!!(n.value&&o.value||4!==t)}))}render(){var{widget:e}=this.props;if(!e)return null;var{data:{children:t,hasHistory:a,name:r}}=e,i=t.filter(((t,a)=>this.isWidgetVisible(e,a)));return Object(N.jsxs)(E.r,{className:"out-group-editor",children:[a&&Object(N.jsx)(E.r,{className:"fake-title-wrap",children:Object(N.jsx)(E.r,{className:"fake-title-wrap-inner",children:Object(N.jsxs)(B.a,{required:!1,children:[Object(N.jsx)(E.p,{className:"fill-name",children:r}),Object(N.jsx)(ue.a,{ctxId:this.innerCtxId,widget:e},e.id)]})})}),i.map((e=>Object(N.jsx)(fi,{ctxId:this.innerCtxId,widget:e},e.id)))]})}init(e){this.innerCtxId=Object(f.c)(Object(f.d)(e),{isChildOfOutGroup:!0},this)}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.init(e)}componentWillUnmount(){Object(f.b)(this)}})||Da),pr=ur,mr=a(676),hr=a(32),br=a(73),gr=(a(1304),Object(v.a)((Aa=class extends b.Component{render(){var{widget:e}=this.props;if(!e||!e.data.writable)return null;var{data:{name:t,required:a,disabled:r=!1}}=e,i=R()("widget-editor contact-editor",{"contact-disabled":r});return Object(N.jsx)(O.a,{hidden:!e||!e.data.visible,children:Object(N.jsxs)(E.r,{className:i,children:[Object(N.jsx)(B.a,{required:a,children:Object(N.jsx)(E.p,{className:"contact-editor-text",children:t})}),Object(N.jsx)(E.r,{className:"no-value-top-placeholder"}),Object(N.jsx)(E.r,{className:"no-value-text",children:Object(G.t)("Apaascorehr_NoFormItemValue")})]})})}},Object(w.a)(Aa,"defaultProps",{ctxId:""}),Na=Aa))||Na),vr=(a(839),Object(v.a)((Ia=class extends b.Component{render(){var{widget:e}=this.props;if(!e||!e.data.writable)return null;var{value:t}=e.data;return Object(N.jsx)(O.a,{hidden:!e||!e.data.visible,children:Object(N.jsxs)(E.r,{className:"job-adjustment-group-desc",children:[Object(N.jsx)(E.r,{className:"top-block top-border"}),Object(N.jsx)(E.a,{children:Object(N.jsx)(E.p,{children:t})},"".concat(e.id)),Object(N.jsx)(E.r,{className:"block-bottom"})]})})}},Object(w.a)(Ia,"defaultProps",{ctxId:""}),Ta=Ia))||Ta),jr="ContactComp",Or="DescComp",fr="NoValue",Mr="Normal",_r=Object(v.a)((xa=class extends b.Component{constructor(){var e;super(...arguments),e=this,Object(w.a)(this,"setData",function(){var t=Object(S.a)((function*(t,a){var r=[];""!==a?r=(yield Object(ee.a)({api:Q.c,params:{openIds:[a]},cacheOpenId:!0})).data.userList.map((e=>Object(_.a)(Object(_.a)({},e),{},{userId:String(e.userId)}))):r=[{userId:"",name:"",avatarUrl:""}];t.defaultValue.currentManager={id:r[0].userId,name:r[0].name,avatarUrl:r[0].avatarUrl},e.setDefaultValue(t,!1),void 0===e.getApplicantInfo()[0]&&e.setDefaultValue(br.b,!0)}));return function(e,a){return t.apply(this,arguments)}}()),Object(mt.a)(this,"setDefaultValue",Sa,this)}componentDidMount(){var e=this;return Object(S.a)((function*(){e.initInfo(),Object(k.r)((()=>e.props.widget.data.visible),(t=>{t&&e.initInfo()}))}))()}initInfo(){var e=this;return Object(S.a)((function*(){if((yield Object(hr.b)())!==hr.a.invalid)if(Object(hr.g)())setTimeout(Object(S.a)((function*(){var t=e.getApplicantInfo()[0].id;yield e.fetchData(t)})),500);else{e.setApplicantData();var t=e.getUserInfo(),{userId:a}=t;yield e.fetchData(a)}}))()}setApplicantData(){var e=this.getUserInfo(),{widget:t}=this.props,a=t.data.children,r={id:e.userId,name:e.name,avatarUrl:e.avatarUrl},i=Object(hr.d)(a,br.a.applicant);-1!==i&&Object(hr.k)(a[i],r)}fetchData(e){var t=this;return Object(S.a)((function*(){var a,{widget:r}=t.props,i=r.data.children;yield Object(br.e)(i);try{a=yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"transfer",applicantUserID:e},{useOutData:!0})}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function fetchData at src/components/configurable-form/components/widgets/job-adjust-group/editor/index.tsx",message:JSON.stringify(e)})}var n=a&&a.data.transfer||{},o="{}"===JSON.stringify(n);if(!a||o){if((yield Object(Y.p)({confirmText:Object(G.t)("Apaascorehr_Reload"),content:Object(G.t)("Apaascorehr_FailToFetchInfoContent")})).confirm)try{var s=(yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"transfer",applicantUserID:e},{useOutData:!0})).data.transfer,c=s.defaultValue.currentManager.id;void 0===c&&(c=""),t.setData(s,c)}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function fetchData at src/components/configurable-form/components/widgets/job-adjust-group/editor/index.tsx",message:JSON.stringify(e)})}}else{var l=n.defaultValue.currentManager.id;void 0===l&&(l=""),t.setData(n,l)}}))()}getApplicantInfo(){var{widget:e}=this.props;return Object(hr.e)(e.data.children,br.a.applicant).data.users}getUserInfo(){var{ctxId:e}=this.props,{userStore:t}=Object(f.d)(e),{currentUser:a}=t;return a}setPlaceholder(e){var{ctxId:t,widget:a}=this.props;if(!t)return null;var r=a.data.children;e?(Object(hr.j)(r,br.a.originDepartment),Object(hr.j)(r,br.a.originManager),Object(hr.j)(r,br.a.originJob),Object(hr.j)(r,br.a.originJobLevel),Object(hr.j)(r,br.a.onboardingDate)):(Object(hr.c)(r,br.a.originDepartment),Object(hr.c)(r,br.a.originManager))}renderContactComp(e,t){var a=this;return e&&e.data.writable?Object(N.jsx)(O.a,{hidden:!e||!e.data.visible,children:Object(N.jsx)(st.a,{ctxId:t,widget:e,disableCrossTenant:!0,onContactChange:function(){var e=Object(S.a)((function*(e){if(0===e.length)a.cleanWidgetValidateError(br.a.applicant),a.setDefaultValue(br.b,!0),a.setPlaceholder(!0);else{var t=e[0].id;a.setPlaceholder(!1),yield a.fetchData(t)}}));return function(t){return e.apply(this,arguments)}}()},e.id)}):null}isNoValueComp(e){return!(e.id!==br.a.originDepartment||!e.data.visible||!e.data.isNoData)||!(e.id!==br.a.originManager||!e.data.visible||!e.data.isNoData)}returnCompType(e){return e.id===br.a.applicant?jr:e.id===br.a.adjustedInformation?Or:this.isNoValueComp(e)?fr:Mr}cleanWidgetValidateError(e){var{widget:t}=this.props,a=t.data.children,r=Object(hr.e)(a,e);r&&(r.data.validationError=null)}render(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{children:a}=e.data;return Object(N.jsx)(E.r,{className:"job-adjustment-group-editor",children:a.map(((e,a)=>{var r=this.returnCompType(e);return Object(N.jsxs)(E.r,{children:[r===jr?this.renderContactComp(e,t):Object(N.jsx)(E.r,{}),r===Or?Object(N.jsx)(vr,{widget:e},e.id):Object(N.jsx)(E.r,{}),r===fr?Object(N.jsx)(gr,{widget:e},e.id):Object(N.jsx)(E.r,{}),r===Mr?Object(N.jsx)(fi,{ctxId:t,widget:e,disableCrossTenant:!0},e.id):Object(N.jsx)(E.r,{})]},a)}))})}},Object(L.a)(xa.prototype,"setApplicantData",[k.f],Object.getOwnPropertyDescriptor(xa.prototype,"setApplicantData"),xa.prototype),Sa=Object(L.a)(xa.prototype,"setDefaultValue",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{widget:r,ctxId:i}=e.props,{applicant:n}=t.defaultValue,{currentDepartment:o}=t.defaultValue,{currentJob:s}=t.defaultValue,{currentJobLevel:c}=t.defaultValue,{onboardingDate:l}=t.defaultValue,{currentManager:d}=t.defaultValue,u=Boolean(t.cleanData),p=r.data.children,{configurableFormStore:m}=Object(f.d)(i),h=Object(hr.e)(p,br.a.applicant);h&&a&&Object(hr.k)(h,n);var b=Object(hr.e)(p,br.a.onboardingDate);b&&(l||(b.data.placeholder=Object(hr.i)()),Object(hr.l)(b,l));var g=Object(hr.e)(p,br.a.originManager);g&&(g.data.isNoData=!1,d&&""===d.id&&(d=void 0,g.data.isNoData=!0),Object(hr.k)(g,d),m.handleWidgetChange(br.a.originManager));var v=Object(hr.e)(p,br.a.originDepartment);v&&(v.data.isNoData=!1,("{}"===JSON.stringify(o)||o&&"0"===o.id)&&(o=void 0,v.data.isNoData=!0),Object(hr.m)(v,o));var j,O=Object(hr.e)(p,br.a.originJob);O&&("{}"!==JSON.stringify(s)&&""!==(null===(j=s)||void 0===j?void 0:j.id)||(O.data.placeholder=Object(hr.i)(),s=void 0),Object(hr.n)(O,s?[s]:s),Object(hr.o)(O,s));var M,_=Object(hr.e)(p,br.a.originJobLevel);_&&("{}"!==JSON.stringify(c)&&""!==(null===(M=c)||void 0===M?void 0:M.id)||(c=void 0,_.data.placeholder=Object(hr.i)()),Object(hr.n)(_,c?[c]:c),Object(hr.o)(_,c));var y=t.formItemDataSource.adjustedJob,D=t.formItemDataSource.adjustedJobLevel,N=Object(hr.e)(p,br.a.adjustedJob);N&&(u&&Object(hr.o)(N,void 0),Object(hr.n)(N,y));var A=Object(hr.e)(p,br.a.adjustedJobLevel);A&&(u&&Object(hr.o)(A,void 0),Object(hr.n)(A,D));var T=Object(hr.e)(p,br.a.adjustedDepartment);T&&u&&Object(hr.m)(T,void 0);var I=Object(hr.e)(p,br.a.adjustedManager);I&&u&&(I.data.validationError=null,Object(hr.k)(I,void 0));var C=Object(hr.e)(p,br.a.effectTime);C&&u&&Object(hr.l)(C,void 0),e.forceUpdate()}}}),Object(L.a)(xa.prototype,"setPlaceholder",[k.f],Object.getOwnPropertyDescriptor(xa.prototype,"setPlaceholder"),xa.prototype),Object(L.a)(xa.prototype,"cleanWidgetValidateError",[k.f],Object.getOwnPropertyDescriptor(xa.prototype,"cleanWidgetValidateError"),xa.prototype),Ca=xa))||Ca,yr=_r,Dr=a(201),Nr=a(124),Ar=(a(834),Object(v.a)((La=class extends b.Component{constructor(){super(...arguments),Object(mt.a)(this,"handleInput",Ea,this)}render(){var{widget:e,ctxId:t,onBlur:a=Nr.a}=this.props;if(!t)return null;var{data:{name:r,required:i,placeholder:n,value:o,validationError:s,hasHistory:c,disabled:l}}=e;return Object(N.jsxs)(E.r,{className:"widget-editor",children:[Object(N.jsxs)(B.a,{required:i,children:[r,c&&Object(N.jsx)(ue.a,{ctxId:t,widget:e},e.id)]}),Object(N.jsx)(xt.a,{placeholder:n,value:o,onBlur:a,onInput:this.handleInput,type:"text",maxlength:20,disabled:l,hasError:Boolean(s)}),Object(N.jsx)(F.a,{text:s})]})}},Ea=Object(L.a)(La.prototype,"handleInput",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{e.preventDefault();var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a),i=e.detail.value;t.data.value=i,r.handleWidgetChange(t.id)}}}),wa=La))||wa),Tr=Object(v.a)((za=class extends b.Component{constructor(){super(...arguments),Object(mt.a)(this,"setDataValue",Ra,this),Object(w.a)(this,"validateNumber",Object(k.k)(this._validateNumber))}componentDidMount(){var e=this;return Object(S.a)((function*(){if((yield Object(hr.b)())!==hr.a.invalid){var t,{ctxId:a}=e.props,{userStore:r}=Object(f.d)(a),{currentUser:{userId:i}}=r;try{t=yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"onboarding",applicantUserID:i},{useOutData:!0})}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function componentDidMount at src/components/configurable-form/components/widgets/on-boarding-group/editor/index.tsx",message:JSON.stringify(e)})}var n=t?t.data.onboarding:{},o="{}"===JSON.stringify(n);if(!t||o){if((yield Object(Y.p)({confirmText:Object(G.t)("Apaascorehr_Reload"),content:Object(G.t)("Apaascorehr_FailToFetchInfoContent")})).confirm)try{var s=yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"onboarding",applicantUserID:i},{useOutData:!0});e.setDataValue(s.data.onboarding)}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function componentDidMount at src/components/configurable-form/components/widgets/on-boarding-group/editor/index.tsx",message:JSON.stringify(e)})}}else e.setDataValue(n)}}))()}*_validateNumber(e,t){var a=Object(hr.e)(e,Dr.a.phoneNumber),r=Dr.c.test(t||"");if(a.data.validationError=r?null:Object(G.t)("Apaascorehr_InvalidPhoneNumber"),r)try{var{data:i}=yield Q.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_phone",phone:t});a.data.validationError=i.isOK?null:Object(Dr.d)(i.status,i.employeeStatus),Object(hr.p)("SystemError"===i.status)}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function validateNumber at src/components/configurable-form/components/widgets/on-boarding-group/editor/index.tsx",message:JSON.stringify(e)})}}renderNumberComp(e,t,a){return e&&e.data.writable?Object(N.jsx)(O.a,{hidden:!e||!e.data.visible,children:Object(N.jsx)(Ar,{ctxId:a,widget:e,onBlur:e=>{this.validateNumber(t,e.detail.value)}},e.id)}):null}render(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{children:a}=e.data;return Object(N.jsx)(E.r,{className:"on-boarding-group-editor",children:a.map((e=>e.id===Dr.a.phoneNumber?this.renderNumberComp(e,a,t):Object(N.jsx)(fi,{ctxId:t,widget:e,disableCrossTenant:!0},e.id)))})}},Ra=Object(L.a)(za.prototype,"setDataValue",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t}=this.props,a=e.formItemDataSource.companies,r=e.formItemDataSource.employeeTypes,i=e.formItemDataSource.jobs,n=e.formItemDataSource.jobLevels,o=e.formItemDataSource.workLocations,s=t.data.children,c=Object(hr.e)(s,Dr.a.contract_company);c&&Object(hr.n)(c,a);var l=Object(hr.e)(s,Dr.a.employeeType);l&&Object(hr.n)(l,r);var d=Object(hr.e)(s,Dr.a.position);d&&Object(hr.n)(d,i);var u=Object(hr.e)(s,Dr.a.rank);u&&Object(hr.n)(u,n);var p=Object(hr.e)(s,Dr.a.workplace);p&&Object(hr.n)(p,o),this.forceUpdate()}}}),ka=za))||ka,Ir=Tr,Cr=a(95),xr=(a(1305),{ContactComp:"ContactComp",NoValue:"NoValue",Normal:"Normal"}),Sr=Object(v.a)((Ua=class extends b.Component{constructor(){super(...arguments),Object(w.a)(this,"verifyApplicant",Object(k.k)(this._verifyApplicant)),Object(mt.a)(this,"setDefaultValue",Ba,this)}componentDidMount(){this.initInfo(),Object(k.r)((()=>this.props.widget.data.visible),(e=>{e&&this.initInfo()}))}initInfo(){var e=this;return Object(S.a)((function*(){if((yield Object(hr.b)())!==hr.a.invalid)if(Object(hr.g)())setTimeout(Object(S.a)((function*(){var t=e.getApplicantInfo()[0];yield e.fetchData({userId:t.id,name:t.name,avatarUrl:t.avatarUrl},!1)})),500);else{var t=e.getUserInfo();yield e.fetchData(t,!1)}}))()}getUserInfo(){var{ctxId:e}=this.props,{userStore:t}=Object(f.d)(e),{currentUser:a}=t;return a}fetchData(e,t){var a=this;return Object(S.a)((function*(){var r,{userId:i,avatarUrl:n,name:o}=e;a.verifyApplicant(i);try{r=yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"conversion",applicantUserID:i},{useOutData:!0})}catch(e){var{code:s}=e;K.a.error("转正控件组 getPersonnelApprovalFormData failed due to ".concat(s)),Object(P.b)(J.f.ApprovalError,{location:"in function fetchData at src/components/configurable-form/components/widgets/regularate-group/editor/index.tsx",message:JSON.stringify(e)})}var c=r?r.data.conversion:{},l="{}"===JSON.stringify(c);if(!r||l){if((yield Object(Y.p)({confirmText:Object(G.t)("Apaascorehr_Reload"),content:Object(G.t)("Apaascorehr_FailToFetchInfoContent")})).confirm)try{var d=((yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"conversion",applicantUserID:i},{useOutData:!0})).data||{}).conversion||{};a.setAndVerifyData(d,{userId:i,name:o,avatarUrl:n},t)}catch(e){var{code:u}=e;K.a.error("转正控件组 getPersonnelApprovalFormData failed again due to ".concat(u)),Object(P.b)(J.f.ApprovalError,{location:"in function fetchData at src/components/configurable-form/components/widgets/regularate-group/editor/index.tsx",message:JSON.stringify(e)})}}else a.setAndVerifyData(c,{userId:i,name:o,avatarUrl:n},t)}))()}setAndVerifyData(e,t,a){a?this.setDefaultValue(e,!0):(e.defaultValue.applicant={id:t.userId,name:t.name,avatarUrl:t.avatarUrl},this.setDefaultValue(e,!1)),void 0===this.getApplicantInfo()[0]&&this.setDefaultValue(Cr.b,!0)}*_verifyApplicant(e){var{widget:t}=this.props,a=t.data.children;try{var{data:r}=yield Q.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_conversion_employee_status",applicantUserID:e});Object(hr.e)(a,Cr.a.applicant).data.validationError=r.isOK?null:Cr.e[r.status],Object(hr.p)("SystemError"===r.status)}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function verifyApplicant at src/components/configurable-form/components/widgets/regularate-group/editor/index.tsx",message:JSON.stringify(e)})}}setPlaceholder(e){var{ctxId:t,widget:a}=this.props;if(!t)return null;var r=a.data.children;e?(Object(hr.j)(r,Cr.a.position),Object(hr.j)(r,Cr.a.onboardingDate),Object(hr.j)(r,Cr.a.probationPeriod)):Object(hr.c)(r,Cr.a.position)}renderContactComp(e,t){var a=this;return e&&e.data.writable?Object(N.jsx)(O.a,{hidden:!e||!e.data.visible,children:Object(N.jsx)(st.a,{ctxId:t,widget:e,disableCrossTenant:!0,onContactChange:function(){var e=Object(S.a)((function*(e){0===e.length?(a.cleanWidgetValidateError(Cr.a.applicant),a.setDefaultValue(Cr.b,!0),a.setPlaceholder(!0)):(a.setPlaceholder(!1),yield a.fetchData({userId:e[0].id,name:e[0].name,avatarUrl:e[0].avatarUrl},!1))}));return function(t){return e.apply(this,arguments)}}()},e.id)}):null}getApplicantInfo(){var{ctxId:e}=this.props,{configurableFormStore:t}=Object(f.d)(e);return t.getWidget(Cr.a.applicant).data.users}isNoValueComp(e){return!(e.id!==Cr.a.position||!e.data.visible||!e.data.isNoData)}returnCompType(e){return e.id===Cr.a.applicant?xr.ContactComp:this.isNoValueComp(e)?xr.NoValue:xr.Normal}cleanWidgetValidateError(e){var{widget:t}=this.props,a=t.data.children,r=Object(hr.e)(a,e);r&&(r.data.validationError=null)}render(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var a=e.data.children;return Object(N.jsx)(E.r,{className:"regularate-group-editor",children:a.map(((e,a)=>{var r=this.returnCompType(e);return Object(N.jsxs)(E.r,{children:[r===xr.ContactComp&&this.renderContactComp(e,t),r===xr.NoValue&&Object(N.jsx)(gr,{widget:e},e.id),r===xr.Normal&&Object(N.jsx)(fi,{ctxId:t,widget:e,disableCrossTenant:!0},e.id)]},a)}))})}},Object(L.a)(Ua.prototype,"fetchData",[k.f],Object.getOwnPropertyDescriptor(Ua.prototype,"fetchData"),Ua.prototype),Object(L.a)(Ua.prototype,"setAndVerifyData",[k.f],Object.getOwnPropertyDescriptor(Ua.prototype,"setAndVerifyData"),Ua.prototype),Ba=Object(L.a)(Ua.prototype,"setDefaultValue",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{var{widget:a}=this.props,{applicant:r}=e.defaultValue,{conversionDate:i}=e.defaultValue,{currentDepartment:n}=e.defaultValue,{onboardingDate:o}=e.defaultValue,{probationPeriodMonths:s}=e.defaultValue,c=Boolean(e.cleanData),l=a.data.children,d=Object(hr.e)(l,Cr.a.applicant);d&&!t&&Object(hr.k)(d,r);var u=Object(hr.e)(l,Cr.a.position);u&&(u.data.isNoData=!1,("{}"===JSON.stringify(n)||n&&"0"===n.id)&&(n=void 0,u.data.isNoData=!0),Object(hr.m)(u,n));var p=Object(hr.e)(l,Cr.a.onboardingDate);p&&(o||(p.data.placeholder=Object(hr.i)()),Object(hr.l)(p,o));var m=Object(hr.e)(l,Cr.a.regularateDate);m&&(c&&m.data.validationError&&(m.data.validationError=null),Object(hr.l)(m,i));var h=Object(hr.e)(l,Cr.a.probationPeriod);h&&(s||(h.data.placeholder=Object(hr.i)()),h.data.value=s?"".concat(s):"");var{ctxId:b}=this.props,{configurableFormStore:g}=Object(f.d)(b);g.handleWidgetChange(Cr.a.regularateDate),this.forceUpdate()}}}),Object(L.a)(Ua.prototype,"setPlaceholder",[k.f],Object.getOwnPropertyDescriptor(Ua.prototype,"setPlaceholder"),Ua.prototype),Object(L.a)(Ua.prototype,"cleanWidgetValidateError",[k.f],Object.getOwnPropertyDescriptor(Ua.prototype,"cleanWidgetValidateError"),Ua.prototype),Pa=Ua))||Pa,wr=Sr,Lr=a(70),Er=(a(1306),{ContactComp:"ContactComp",NoValue:"NoValue",Normal:"Normal"}),kr=Object(v.a)((Ya=class extends b.Component{constructor(){super(...arguments),Object(w.a)(this,"isVer2Api",!1),Object(w.a)(this,"verifyApplicant",Object(k.k)(this._verifyApplicant)),Object(mt.a)(this,"setDefaultValue",Qa,this)}componentDidMount(){var e=this;return Object(S.a)((function*(){e.initInfo(),Object(k.r)((()=>e.props.widget.data.visible),(t=>{t&&e.initInfo()}))}))()}initInfo(){var e=this;return Object(S.a)((function*(){if((yield Object(hr.b)())!==hr.a.invalid)if(Object(hr.g)()||e.props.widget.isUseDraft)setTimeout(Object(S.a)((function*(){var t=e.getApplicantInfo()[0];yield e.fetchData({userId:t.id,name:t.name,avatarUrl:t.avatarUrl,tenantId:t.tenantId})})),500);else{var t=e.getUserInfo();yield e.fetchData(t)}}))()}getUserInfo(){var{ctxId:e}=this.props,{userStore:t}=Object(f.d)(e),{currentUser:a}=t;return a}getCurrentUserId(){return this.getUserInfo().userId}fetchData(e){var t=this;return Object(S.a)((function*(){var a,r,i,n,o,s,{userId:c,avatarUrl:l,name:d,tenantId:u}=e,p=t.getCurrentUserId()===c;t.verifyApplicant(c);try{o=yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"resignation",applicantUserID:c},{useOutData:!0})}catch(e){s=e.code,K.a.error("离职控件组 getPersonnelApprovalFormData failed due to ".concat(s)),Object(P.b)(J.f.ApprovalError,{location:"in function fetchData at src/components/configurable-form/components/widgets/off-boarding-group/editor/index.tsx",message:JSON.stringify(e)})}t.isVer2Api="2"===(null===(a=o)||void 0===a?void 0:a.data._api_version);var m=null!==(r=null===(i=o)||void 0===i||null===(n=i.data)||void 0===n?void 0:n.resignation)&&void 0!==r?r:{},h="{}"===JSON.stringify(m);if(!o||h){if((yield Object(Y.p)({confirmText:Object(G.t)("Apaascorehr_Reload"),content:Object(G.t)("Apaascorehr_FailToFetchInfoContent")})).confirm)try{var b=((yield Q.c.personnelGetPersonnelApprovalFormData({reqType:"resignation",applicantUserID:c},{useOutData:!0})).data||{}).resignation||{};t.setAndVerifyData(b,{userId:c,name:d,avatarUrl:l,tenantId:u},p)}catch(e){var{code:g}=e;K.a.error("离职控件组 getPersonnelApprovalFormData failed again due to ".concat(g)),Object(P.b)(J.f.ApprovalError,{location:"in function fetchData at src/components/configurable-form/components/widgets/off-boarding-group/editor/index.tsx",message:JSON.stringify(e)})}}else t.setAndVerifyData(m,{userId:c,name:d,avatarUrl:l,tenantId:u},p)}))()}setAndVerifyData(e,t,a){e.defaultValue.applicant={id:t.userId,name:t.name,avatarUrl:t.avatarUrl,tenantId:t.tenantId},this.setDefaultValue(e,!1,a),void 0===this.getApplicantInfo()[0]&&this.setDefaultValue(Lr.b,!0)}*_verifyApplicant(e){var{widget:t}=this.props,a=t.data.children;try{var r=yield Q.c.personnelVerifyPersonnelApprovalFormData({reqType:"verify_resignation_employee_status",applicantUserID:e},{useOutData:!0}),i=Object(hr.e)(a,Lr.a.applicant);i&&(i.data.validationError=r.data.isOK?null:Lr.f[r.data.status],Object(hr.p)("SystemError"===r.data.status))}catch(e){Object(P.b)(J.f.ApprovalError,{location:"in function verifyApplicant at src/components/configurable-form/components/widgets/off-boarding-group/editor/index.tsx",message:JSON.stringify(e)})}}renderContactComp(e,t){return e&&e.data.writable?Object(N.jsx)(O.a,{hidden:!e||!e.data.visible,children:Object(N.jsx)(st.a,{ctxId:t,widget:e,disableCrossTenant:!0,onContactChange:e=>{0===e.length?(this.cleanWidgetValidateError(Lr.a.applicant),this.setDefaultValue(Lr.b,!0,!1),this.setPlaceholder(!0)):(this.setPlaceholder(!1),this.fetchData({userId:e[0].id,name:e[0].name,avatarUrl:e[0].avatarUrl,tenantId:e[0].tenantId}))}},e.id)}):null}getApplicantInfo(){var{ctxId:e}=this.props,{configurableFormStore:t}=Object(f.d)(e);return t.getWidget(Lr.a.applicant).data.users}setApplicantWidgetObject(e){var{ctxId:t}=this.props,{configurableFormStore:a}=Object(f.d)(t),r=a.getWidget(Lr.a.applicant);r!==Object(hr.e)(e,Lr.a.applicant)&&(e[Object(hr.d)(e,Lr.a.applicant)]=r)}setPlaceholder(e){var{ctxId:t,widget:a}=this.props;if(!t)return null;var r=a.data.children;e?(Object(hr.j)(r,Lr.a.position),Object(hr.j)(r,Lr.a.onboardingDate)):Object(hr.c)(r,Lr.a.position)}isNoValueComp(e){return!(e.id!==Lr.a.position||!e.data.visible||!e.data.isNoData)}returnCompType(e){return e.id===Lr.a.applicant?Er.ContactComp:this.isNoValueComp(e)?Er.NoValue:Er.Normal}cleanWidgetValidateError(e){var{widget:t}=this.props,a=t.data.children,r=Object(hr.e)(a,e);r&&r.data.validationError&&(r.data.validationError=null)}render(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{children:a}=e.data;return Object(N.jsx)(E.r,{className:"off-boarding-group-editor",children:a.map(((e,a)=>{var r=this.returnCompType(e);return Object(N.jsxs)(E.r,{children:[r===Er.ContactComp&&this.renderContactComp(e,t),r===Er.NoValue&&Object(N.jsx)(gr,{widget:e},e.id),r===Er.Normal&&Object(N.jsx)(fi,{ctxId:t,widget:e,disableCrossTenant:!0},e.id)]},a)}))})}get reasonVoluntaryId(){return this.isVer2Api?Lr.e.voluntaryVer2Id:Lr.e.voluntaryId}},Qa=Object(L.a)(Ya.prototype,"setDefaultValue",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t,a){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],{widget:i}=e.props,{applicant:n}=t.defaultValue,{currentDepartment:o}=t.defaultValue,{onboardingDate:s}=t.defaultValue,{reasonForDeparture:c}=t.formItemDataSource,{reasonType:l}=t.formItemDataSource,d=Boolean(t.cleanData),u=i.data.children;e.setApplicantWidgetObject(u);var p=Object(hr.e)(u,Lr.a.applicant);p&&!a&&Object(hr.k)(p,n);var m=Object(hr.e)(u,Lr.a.position);m&&(m.data.isNoData=!1,("{}"===JSON.stringify(o)||o&&"0"===o.id)&&(o=void 0,m.data.isNoData=!0),Object(hr.m)(m,o));var h=Object(hr.e)(u,Lr.a.onboardingDate);h&&(s||(h.data.placeholder=Object(hr.i)()),Object(hr.l)(h,s));var b=Object(hr.e)(u,Lr.a.offboardingType);if(b)if(Object(hr.n)(b,l),b.data.visible=!r,d)Object(hr.o)(b,void 0);else if(r){var g=l.filter((t=>t.id===e.reasonVoluntaryId))[0];Object(hr.o)(b,g)}var v=Object(hr.e)(u,Lr.a.offboardingReason);if(v){d&&Object(hr.o)(v,void 0);var j=b.data.value,O=!d&&j,f=O?c.filter(e.isVer2Api?e=>e.type===j.value:t=>j.value===e.reasonVoluntaryId?Lr.e.voluntaryList.includes(t.id):Lr.e.involuntaryList.includes(t.id)):void 0;Object(hr.n)(v,f),v.data.originList=c,v.data.isVer2Api=e.isVer2Api}var M=Object(hr.e)(u,Lr.a.offboardingDate);M&&d&&(M.data.validationError&&(M.data.validationError=null),Object(hr.l)(M,void 0));var _=Object(hr.e)(u,Lr.a.offboardingReason_remark);_&&d&&(_.data.value=""),e.forceUpdate()}}}),Object(L.a)(Ya.prototype,"setPlaceholder",[k.f],Object.getOwnPropertyDescriptor(Ya.prototype,"setPlaceholder"),Ya.prototype),Object(L.a)(Ya.prototype,"cleanWidgetValidateError",[k.f],Object.getOwnPropertyDescriptor(Ya.prototype,"cleanWidgetValidateError"),Ya.prototype),Fa=Ya))||Fa,zr=kr,Rr=(a(1307),Object(v.a)((Wa=class extends b.Component{constructor(){super(...arguments),Object(w.a)(this,"innerCtxId",void 0),Object(w.a)(this,"isWidgetVisible",((e,t)=>{try{return Boolean(e.data.children[t].data.visible)}catch(e){return Object(P.b)(J.f.ApprovalError,{location:"in function isWidgetVisible at src/components/configurable-form/components/widgets/remedy-group-v2/editor/index.tsx",message:JSON.stringify(e)}),!1}})),Object(w.a)(this,"getStore",(()=>{var{configurableFormStore:e}=Object(f.d)(this.innerCtxId);return e})),Object(mt.a)(this,"initRemedyDateValue",Va,this)}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.init(e)}componentDidMount(){this.initRemedyDateValue()}componentWillUnmount(){Object(f.b)(this);var{ctxId:e}=this.props,{configurableFormStore:t}=Object(f.d)(e);t.setParams({})}init(e){this.innerCtxId=Object(f.c)(Object(f.d)(e),{isChildOfRemedyGroup:!0},this)}render(){var{widget:e}=this.props;if(!e)return null;var{data:{children:t,hasHistory:a,name:r},messageData:i,messageError:n={}}=e,o=t.filter(((t,a)=>this.isWidgetVisible(e,a)));return Object(N.jsxs)(E.r,{className:"remedy-group-v2-editor",children:[a&&Object(N.jsx)(E.r,{className:"fake-title-wrap",children:Object(N.jsx)(E.r,{className:"fake-title-wrap-inner",children:Object(N.jsxs)(B.a,{required:!1,children:[Object(N.jsx)(E.p,{className:"fill-name",children:r}),Object(N.jsx)(ue.a,{ctxId:this.innerCtxId,widget:e},e.id)]})})}),o.map((e=>{var t=i[e.id],a=n[e.id];return Object(N.jsxs)(E.r,{children:[Object(N.jsx)(fi,{ctxId:this.innerCtxId,widget:e}),t?Object(N.jsx)(E.r,{className:R()("message",{error:a}),children:t}):null]},e.id)}))]})}},Va=Object(L.a)(Wa.prototype,"initRemedyDateValue",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e}=this.props,t=this.getStore(),[a]=e.data.children,{groupOptions:r={},canNotChangeRemedyDate:i}=t.params;if(i){var{day:n=""}=r;a.data.text=n,a.data.value=Ie()(n),t.handleWidgetChange(a.id)}}}}),Ga=Wa))||Ga),Pr=Rr,Ur=(a(1308),Object(v.a)(Ha=class extends b.Component{constructor(e){super(e)}render(){var{subgroup:e,ctxId:t}=this.props;return Object(N.jsxs)(E.r,{className:"signatory-view",children:[Object(N.jsx)(E.r,{className:"signatory-name",children:e.name}),e.value.map((e=>Object(N.jsx)(fi,{ctxId:t,widget:e},e.id)))]})}})||Ha),Br=Ur,Fr=(a(1309),Object(v.a)(Za=class extends b.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{widgetSignGroupSignatoryList:a,widgetSignGroupPresetWidgetList:r}=e.data.value,{validationError:i}=e.data;return Object(N.jsxs)(E.r,{className:"sign-group-editor",children:[Object(N.jsxs)(E.r,{className:"widget-name",children:[Object(N.jsx)(E.r,{className:"name-content",children:e.data.name}),Object(N.jsx)(E.r,{className:"preview-boilerplate",onClick:Object(S.a)((function*(){var{option:t}=e.data;if(t){var a=yield Q.c.letsignboilerplatestartpreview({accountCode:t.accountCode,boilerplateUniqueCode:t.boilerplateUniqueCode});a&&a.data?tt.openSchema({schema:a.data.url,external:!1}):Object(P.b)("sign_group_previewboilerplate_error",{res:a,params:{accountCode:t.accountCode,boilerplateUniqueCode:t.boilerplateUniqueCode},type:"editor"})}})),children:Object(G.t)("CreateApproval_FormGroup_SignGroupPreview")})]}),r.map((e=>Object(N.jsx)(fi,{ctxId:t,widget:e},e.id))),Object(N.jsx)(F.a,{text:i}),a.map((e=>Object(N.jsx)(Br,{ctxId:t,subgroup:e},e.id)))]})}})||Za),Yr=Fr,Qr=a(530),Gr=a(704),Wr=a(92),Vr=a(83),Hr=(qa=class{constructor(){Object(mt.a)(this,"accountList",Ka,this),Object(mt.a)(this,"originAccountList",Ja,this),Object(w.a)(this,"matchSearch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.toLowerCase().includes(t)}))}updateBankAccountList(){return new Promise(((e,t)=>{Q.c.bankAccountList().then((a=>{if(a.data&&a.data.Accounts){var r=a.data.Accounts.map((e=>Object(Wr.d)(e)));Object(k.s)((()=>{this.accountList=r,this.originAccountList=r})),e(r)}else t()})).catch((e=>{t(e)}))}))}searchAccount(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";t=t.toLowerCase();var a=JSON.parse(JSON.stringify(e)).filter((e=>this.matchSearch(e.AccountName,t)||this.matchSearch(e.AccountNumber,t)||this.matchSearch(e.Remark,t))).map((e=>(this.matchSearch(e.AccountName,t)&&(e.$AccountName=Object(Wr.g)(e.AccountName,t)),this.matchSearch(e.AccountNumber,t)&&(e.$AccountNumber=Object(Wr.g)(e.AccountNumber,t)),this.matchSearch(e.Remark,t)&&(e.$Remark=Object(Wr.g)(e.Remark,t)),e)));return a}},Ka=Object(L.a)(qa.prototype,"accountList",[k.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ja=Object(L.a)(qa.prototype,"originAccountList",[k.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(L.a)(qa.prototype,"updateBankAccountList",[k.f],Object.getOwnPropertyDescriptor(qa.prototype,"updateBankAccountList"),qa.prototype),qa),Zr=new Hr,qr=(a(1310),Object(v.a)(($a=class extends b.Component{constructor(e){super(e),Object(mt.a)(this,"handleSelectChange",er,this),Object(mt.a)(this,"onClear",tr,this),Object(w.a)(this,"switchEditAccountModalVisible",(e=>{var{editAccountVisible:t}=this.state;this.setState({currentAccountId:"",editAccountVisible:void 0!==e?e:!t})})),Object(w.a)(this,"editAccount",((e,t)=>{e.stopPropagation(),this.setState({currentAccountId:t.AccountID,editAccountVisible:!0})})),this.state={editAccountVisible:!1,currentAccountId:""}}componentDidMount(){Zr.updateBankAccountList()}onClose(e){e&&Zr.updateBankAccountList().then((t=>{if(t){var a=t.find((t=>t.AccountID===e));if(a)this.handleSelectChange(a);else{var{configurableFormStore:r}=Object(f.d)(this.props.ctxId);r.notifySomeOptionDelete(j.c.RECEIVING_ACCOUNT,e)}}})),this.switchEditAccountModalVisible(!1)}searchFunction(e){return new Promise(((t,a)=>{setTimeout((()=>{var a=Zr.searchAccount(Zr.originAccountList,e);t(a)}),10)}))}render(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{name:a,required:r,placeholder:i=Object(G.t)("Validation.PleaseSelectSth"),validationError:n,hasHistory:o,disabled:s,value:c}}=e,{accountList:l}=Zr,{editAccountVisible:d,currentAccountId:u}=this.state,p=Object(Wr.i)(c);return Object(N.jsxs)(g.a.Fragment,{children:[Object(N.jsxs)(E.r,{className:"widget-editor single-select-editor",children:[Object(N.jsxs)(B.a,{required:r,children:[a,o&&Object(N.jsx)(ue.a,{ctxId:t,widget:e},e.id)]}),Object(N.jsx)(Qr.a,{FooterContent:()=>Object(N.jsx)(E.r,{className:"receiving_account_add_wrap receiving_account_add_wrap_border",children:Object(N.jsx)(E.r,{className:"add_btn_wrap",children:Object(N.jsxs)(E.r,{className:"btn",onClick:()=>this.switchEditAccountModalVisible(),children:[Object(N.jsx)(E.r,{className:"iconfont icon-icon-add icon_add"}),Object(N.jsx)(E.r,{className:"text",children:Object(G.t)("form.account.add")})]})})}),RenderItem:e=>{var t,{data:a,checked:r,onClick:i}=e;return Object(N.jsx)(E.r,{className:"receiving_account_select_wrap",onClick:()=>i(a),children:Object(N.jsxs)(E.r,{className:"content",children:[Object(N.jsxs)(E.r,{className:"left",children:[Object(N.jsx)(E.g,{className:"icon",src:a.BankIcon}),Object(N.jsxs)(E.r,{className:"info_wrap",children:[Object(N.jsxs)(E.r,{className:"title_wrap",children:[Object(N.jsx)(E.r,{className:"name",children:a.AccountName}),Object(N.jsx)(E.r,{className:"account_type",children:Vr.b[a.AccountType]})]}),Object(N.jsxs)(E.r,{className:"info",children:[a.BankName[Wr.c.bankName]||(null===(t=a.BankName)||void 0===t?void 0:t.bankNameZh),"",a.AccountNumber.slice(-4),""]}),Boolean(a.Remark)&&Object(N.jsx)(E.r,{className:"remark",children:"".concat(Object(G.t)("form.account.remark"),": ").concat(a.Remark)})]})]}),Object(N.jsxs)(E.r,{className:"right",children:[Object(N.jsx)(_e.a,{className:"edit_btn",type:"text",size:"small",onClick:e=>this.editAccount(e,a),children:Object(G.t)("Detail_ModifyButton")}),Object(N.jsx)(E.r,{className:"iconfont icon-xiala_xuanzhong checked",style:{color:r?"":"rgba(0,0,0,0)"}})]})]})})},defaultOptions:l,onChange:e=>this.handleSelectChange(e),onClear:()=>this.onClear(),DisplayFormat:e=>{var{selected:t}=e,a=t.BankName?t.BankName[Wr.c.bankName]||t.BankName.bankNameZh:"",r=t.AccountName,i="/ ".concat(a," (").concat(t.AccountNumber.slice(-4),")");return Object(N.jsxs)(E.r,{className:"receiving_account_display_format",children:[Object(N.jsx)(E.r,{className:"name",children:r}),Object(N.jsxs)(E.r,{className:"other",children:[" ",i]})]})},keyOfValue:"AccountID",placeholder:i,disabled:s,defaultEmptyText:Object(G.t)("form.account.noAccount"),value:p,enableSearch:!0,searchFunction:this.searchFunction,hasError:Boolean(n)}),Object(N.jsx)(F.a,{text:n})]}),Object(N.jsx)(Gr.a,{visible:d,close:e=>this.onClose(e),currentAccountId:u})]})}},er=Object(L.a)($a.prototype,"handleSelectChange",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{if(e){var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a);t.data.value=Object(Wr.f)(e),r.handleWidgetChange(t.id)}else this.onClear()}}}),tr=Object(L.a)($a.prototype,"onClear",[k.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e,ctxId:t}=this.props,{configurableFormStore:a}=Object(f.d)(t);e.data.value="",a.handleWidgetChange(e.id)}}}),Xa=$a))||Xa),Kr=qr,Jr=a(703),Xr=a(288),$r=a(925),ei=a.n($r),ti=a(291),ai=a(136),ri=a.n(ai),ii=a(439),ni=a(74),oi=a(531),si=a(233),ci=a(162),li=a(360),di=a.n(li),ui=a(243),pi=a.n(ui),mi=a(152),hi=a.n(mi),bi=[],gi=Object(v.a)((e=>{var t,a,{widget:r,ctxId:i}=e,[n,o]=Object(b.useState)(!1),[s,c]=Object(b.useState)([]),[l,d]=Object(b.useState)(!1),[u,p]=Object(b.useState)([]),[m,h]=Object(b.useState)({checkedUserName:"",manager:{userId:"",userName:""},show:!1}),[v,j]=Object(b.useState)([ne.d.currentUser.userId]),O=Object(b.useRef)(!0),M=()=>{o(!1)},y=()=>{bi=[]},D=function(){var e=Object(S.a)((function*(e){try{if(!e)return c([]),y(),void d(!1);var t="choose".concat((new Date).getTime()).concat(Math.ceil(1e4*Math.random()));bi.push(t),d(!0);var a=yield Q.c.usersearchUsers({query:e,offset:0,pageSize:50,filterType:ii.a.OnlyNotLeft});if(bi.length>0&&bi[bi.length-1]===t){var r,i=((null==a||null===(r=a.data)||void 0===r?void 0:r.entityList)||[]).map((e=>Object(_.a)(Object(_.a)({},e),{},{type:ni.a.PERSON,title:e.name,avatarUrl:e.iconLink,children:null})));c(i.filter((e=>!v.includes(e.id)))),d(!1),y()}else(e=>{bi=bi.filter((t=>t!==e))})(t),0===bi.length&&d(!1)}catch(e){K.a.error(e),c([]),y(),d(!1)}}));return function(t){return e.apply(this,arguments)}}(),A=()=>{c([]),o(!0)};if(Object(b.useEffect)((()=>{var e;null!==(e=r.data.value)&&void 0!==e&&e[0]&&T.userDepartmentManager.updateImitateDepartmentList(r.data.value[0].id,!O.current),O.current=!1}),[null===(t=r.data.value)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.id]),!i)return null;var{configurableFormStore:T}=Object(f.d)(i),I=function(){var e=Object(S.a)((function*(e){var{checkedList:t=[]}=e;p(t)}));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=Object(S.a)((function*(e){e&&p([e])}));return function(t){return e.apply(this,arguments)}}(),x=function(){var t=Object(S.a)((function*(){var{widget:t}=e;if(1===u.length){var a=u[0],{allowSubmit:r,managers:i=[]}=yield(e=>new Promise((t=>{var a;Q.c.checkSubmitPermission({imitateUserId:e,approvalDefinitionId:null===(a=T.definitionInfo)||void 0===a?void 0:a.approvalId}).then((e=>{t(e.data)})).catch((e=>{K.a.error(e),t({allowSubmit:!1,managers:[]})}))})))(a.id);if(r){var{value:n}=t.data;(!n||n&&Array.isArray(n)&&n.length>0&&n[0].id!==a.id)&&(Object(k.s)((()=>{t.data.value=u.map((e=>({id:e.id,name:e.title,avatarUrl:e.avatarUrl})))})),T.userDepartmentManager.updateImitateDepartmentList(u[0].id)),M(),p([])}else j([...v,a.id]),h({checkedUserName:u[0].title,manager:i.length>0?i[0]:{userId:"",userName:""},show:!0})}}));return function(){return t.apply(this,arguments)}}(),{data:{name:w,required:L,validationError:z,hasHistory:P,disabled:U=!1,value:Y=[]}}=r,W=Boolean(Y.find((e=>e.id===T.options.userStore.currentUser.userId))),V=m.manager.userId?Object(si.a)("approvalForm.insteadSubmitter.chooseNoPermissionContent",{manager:Object(ci.b)(m.manager.userId,m.manager.userName)}):null,H=R()("widget-editor contact-editor"),Z=Boolean(T.params.modify),q=Object(N.jsxs)(E.r,{className:ri.a.empty_result_wrap,children:[Object(N.jsx)(E.g,{className:ri.a.image,src:di.a}),Object(N.jsx)(E.r,{className:ri.a.text,children:Object(G.t)("ApprovalSearch.NoDateTip")})]}),J=Object(N.jsxs)(E.r,{className:ri.a.empty_result_wrap,children:[Object(N.jsx)(E.g,{className:ri.a.image,src:pi.a}),Object(N.jsx)(E.r,{className:ri.a.text,children:Object(G.t)("approvalForm.insteadSubmitter.chooseUserTip")})]}),X=Object(N.jsxs)(E.r,{className:ri.a.empty_result_wrap,children:[Object(N.jsx)(E.g,{className:ri.a.image,src:hi.a}),Object(N.jsx)(E.r,{className:ri.a.text,children:Object(G.t)("Loading")})]});return Object(N.jsxs)(g.a.Fragment,{children:[Object(N.jsxs)(E.r,{className:H,children:[Object(N.jsx)(B.a,{required:L,children:Object(N.jsxs)(E.r,{className:ri.a.title_wrap,children:[Object(N.jsx)(E.p,{className:"contact-editor-text",children:w}),!Z&&W&&Object(N.jsx)(_e.a,{type:"link",className:ri.a.choose_other,onClick:A,children:Object(G.t)("approvalForm.insteadSubmit.chooseOther")}),!Z&&!W&&Object(N.jsx)(_e.a,{type:"link",className:ri.a.choose_other,onClick:()=>{Object(k.s)((()=>{r.data.value=[r.data.defaultValue],T.userDepartmentManager.updateImitateDepartmentList(r.data.defaultValue.id),T.insteadSubmitManager.setHasCanceledInsteadSubmit(!0)}))},children:Object(G.t)("approvalForm.insteadSubmit.cancel")}),P&&Object(N.jsx)(ue.a,{ctxId:i,widget:r},r.id)]})}),Object(N.jsx)(Xr.a.Group,{showProfile:!0,addable:0===Y.length,onAdd:A,error:Boolean(r.data.validationError),disable:U,itemList:Y,deletable:!1}),Object(N.jsx)(F.a,{text:z})]}),n&&Object(N.jsx)(E.r,{className:ri.a.selector_mask}),n&&Object(N.jsxs)(E.r,{className:ri.a.selector_wrap,children:[Object(N.jsxs)(E.r,{className:ri.a.header,children:[Object(N.jsx)(E.r,{className:ri.a.title,children:Object(G.t)("approvalForm.insteadSubmitter.chooseTitlePc","请选择代谁提交")}),Object(N.jsx)(E.r,{className:ri.a.close,onClick:M,children:Object(N.jsx)(E.g,{src:ei.a,className:ri.a.icon})})]}),Object(N.jsx)(E.r,{className:ri.a.content,children:Object(N.jsx)(ti.a,{selectorHeight:"276px",onSearchChange:D,checkedList:u,candidateList:s,onChange:I,maxChecked:1,candidateListLoading:l,onPersonCheckClick:C,renderEmpty:q,renderDefault:J,renderLoading:X})}),Object(N.jsxs)(E.r,{className:ri.a.footer,children:[Object(N.jsx)(_e.a,{className:ri.a.btn,onClick:M,children:Object(G.t)("ModalCancelText")}),Object(N.jsx)(_e.a,{className:ri.a.btn,type:"primary",onClick:x,disabled:0===u.length,children:Object(G.t)("ModalConfirmText")})]})]}),Object(N.jsx)(oi.a,{visible:m.show,title:Object(G.t)("approvalForm.insteadSubmitter.chooseNoPermission",{name:m.checkedUserName}),content:V,buttons:[{text:Object(G.t)("Popup.Confirm"),type:"primary",fn:()=>{h(Object(_.a)(Object(_.a)({},m),{},{show:!1})),p([]),c(s.filter((e=>!v.includes(e.id))))}}]})]})}));a(1312);class vi extends b.Component{render(){var e,{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(f.d)(a);if(!t)return null;var{data:{name:i}}=t;return Object(N.jsxs)(E.r,{className:"widget-editor",children:[Object(N.jsx)(B.a,{children:i}),Object(N.jsx)(E.r,{className:"serial-number-disable",children:null!==(e=r.params)&&void 0!==e&&e.modify?Object(G.t)("approval-mp_ModifiedSameSerial_Placeholder"):Object(G.t)("approval-mp_SysAutoGenerate_Placeholder")})]})}}var ji,Oi=vi,fi=Object(v.a)(ji=class extends b.Component{renderEditor(){var{widget:e,ctxId:t,isInDetailPage:a,currentNav:r,currentActive:i,isInDetailField:n,disableCrossTenant:o}=this.props;if(!e||!e.data.writable)return null;var{option:s={}}=e.data;switch(e.type){case j.c.ADDRESS:return Object(N.jsx)(pt.a,{ctxId:t,widget:e,isInDetailPage:a},e.id);case j.c.APPROVALER:return Object(N.jsx)(re,{ctxId:t,widget:e},e.id);case j.c.ATTACHMENT:return Object(N.jsx)($e,{ctxId:t,widget:e},e.id);case j.c.ATTACHMENT_V2:return Object(N.jsx)(et.a,{ctxId:t,widget:e},e.id);case j.c.CCER:return Object(N.jsx)(ot,{ctxId:t,widget:e},e.id);case j.c.CONTACT:return Object(N.jsx)(st.b,{ctxId:t,widget:e,disableCrossTenant:o},e.id);case j.c.DATE_INTERVAL:return Object(N.jsx)(rt.a,{ctxId:t,widget:e},e.id);case j.c.DATE_RANGE:return Object(N.jsx)(nr.a,{ctxId:t,widget:e},e.id);case j.c.DATE_TIME:return Object(N.jsx)(at.a,{ctxId:t,widget:e},e.id);case j.c.DESC:return Object(N.jsx)(ir.a,{ctxId:t,widget:e},e.id);case j.c.DETAIL:return Object(N.jsx)(Pe,{ctxId:t,widget:e,isInDetailPage:a},e.id);case j.c.IMAGE:return Object(N.jsx)(Ue.a,{ctxId:t,widget:e},e.id);case j.c.MULTI_SELECT:return Object(N.jsx)(dt.a,{ctxId:t,widget:e},e.id);case j.c.MULTI_SELECT_V2:return Object(N.jsx)(ut.a,{ctxId:t,widget:e},e.id);case j.c.SHIFT_GROUP:return Object(N.jsx)(rr,{ctxId:t,widget:e},e.id);case j.c.CLOUD_DOC:return Object(N.jsx)(A,{ctxId:t,widget:e},e.id);case j.c.CLOUD_DOC_BLOCK:return Object(N.jsx)(I,{ctxId:t,widget:e,currentActive:i,currentNav:r},e.id);case j.c.SINGLE_INPUT:return Object(N.jsx)(C.a,{ctxId:t,widget:e},e.id);case j.c.SINGLE_SELECT:return Object(N.jsx)(ct.a,{ctxId:t,widget:e},e.id);case j.c.SINGLE_SELECT_V2:return Object(N.jsx)(lt.a,{ctxId:t,widget:e},e.id);case j.c.TEXTAREA:return Object(N.jsx)(x.a,{ctxId:t,widget:e},e.id);case j.c.NUMBER_INPUT:return Object(N.jsx)(Be.a,{ctxId:t,widget:e},e.id);case j.c.AMOUNT_INPUT:return Object(N.jsx)(Fe.a,{ctxId:t,widget:e,isInDetailField:n},e.id);case j.c.CALCULATION_FORMULA:return Object(N.jsx)(Ye.a,{ctxId:t,widget:e,isInDetailField:n},e.id);case j.c.LEAVE_GROUP:return Object(N.jsx)(_t,{ctxId:t,widget:e},e.id);case j.c.LEAVE_GROUP_V2:return Object(N.jsx)(ca,{ctxId:t,widget:e},e.id);case j.c.RELATIVE_APPROVAL:return Object(N.jsx)(la.a,{ctxId:t,widget:e,isInDetailPage:a},e.id);case j.c.WORK_GROUP:return!s||1!==s.isSetRule&&0!==s.isSetRule?Object(N.jsx)(ua,{ctxId:t,widget:e},e.id):Object(N.jsx)(lr,{ctxId:t,widget:e},e.id);case j.c.TRIP_GROUP:return Object(N.jsx)(ja,{ctxId:t,widget:e},e.id);case j.c.OUT_GROUP:return Object(N.jsx)(pr,{ctxId:t,widget:e},e.id);case j.c.REMEDY_GROUP_V2:return Object(N.jsx)(Pr,{ctxId:t,widget:e},e.id);case j.c.DEPARTMENT:return Object(N.jsx)(mr.a,{ctxId:t,widget:e,disableCrossTenant:o},e.id);case j.c.JOB_ADJUST_GROUP:return Object(N.jsx)(yr,{ctxId:t,widget:e},e.id);case j.c.ON_BOARDING_GROUP:return Object(N.jsx)(Ir,{ctxId:t,widget:e},e.id);case j.c.REGULARATE_GROUP:return Object(N.jsx)(wr,{ctxId:t,widget:e},e.id);case j.c.OFF_BOARDING_GROUP:return Object(N.jsx)(zr,{ctxId:t,widget:e},e.id);case j.c.SIGN_GROUP:return Object(N.jsx)(Yr,{ctxId:t,widget:e},e.id);case j.c.RECEIVING_ACCOUNT:return Object(N.jsx)(Kr,{ctxId:t,widget:e},e.id);case j.c.TELEPHONE:return Object(N.jsx)(Jr.a,{ctxId:t,widget:e},e.id);case j.c.INSTEAD_SUBMIT:return Object(N.jsx)(gi,{ctxId:t,widget:e},e.id);case j.c.SERIAL_NUMBER:return Object(N.jsx)(Oi,{ctxId:t,widget:e},e.id)}return null}renderViewer(){var{widget:e,ctxId:t,currentActive:a,currentNav:r}=this.props;return t&&Object(f.d)(t).isChildOfWidgetViewerSwitcher&&e&&!e.data.writable&&e.data.readable?Object(N.jsx)(M.a,{ctxId:t,widget:e,currentActive:a,currentNav:r},e.id):null}render(){var{widget:e}=this.props;return Object(N.jsxs)(O.a,{hidden:!e||!e.data.visible,children:[this.renderEditor(),this.renderViewer()]})}})||ji},function(e,t,a){"use strict";a.d(t,"a",(function(){return I}));var r=a(6),i=a(3),n=a(1),o=a(218),s=a(108),c=a(2),l=a(8),d=a.n(l),u=a(909),p=a.n(u),m=a(10),h=a(66),b=a(74),g=(a(567),a(0)),v=-1;class j extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"state",{folded:!0}),Object(r.a)(this,"handleFold",(e=>{if(v!==e.timeStamp){v=e.timeStamp;var{folded:t}=this.state,{onFoldChange:a}=this.props;this.setState({folded:!t}),a&&(m.a.error("handleFold",this.props.data.id,!t),a(!t))}}))}render(){var{data:{id:e,title:t,showFoldButton:a}}=this.props,{folded:r}=this.state,i="candidate-selector-group-item",o=d()("".concat(i,"-fold-button"),{folded:r});return Object(g.jsxs)(n.r,{className:"".concat(i),children:[Object(g.jsxs)(n.r,{className:"".concat(i,"-header"),children:[Object(g.jsx)(h.a,{hidden:!a,children:Object(g.jsx)(n.r,{className:o,onClick:this.handleFold,children:Object(g.jsx)(n.g,{mode:"scaleToFill",src:p.a})})}),Object(g.jsx)(n.r,{className:"".concat(i,"-info"),children:Object(g.jsx)(n.r,{className:"".concat(i,"-title"),children:t})})]}),!r&&Object(g.jsx)(n.r,{className:"".concat(i,"-children"),children:this.props.renderChild})]},e)}}Object(r.a)(j,"defaultProps",{data:{type:b.a.GROUP,id:"",title:"",showFoldButton:!1}});var O=j,f=a(124),M=a(230);class _ extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"handleCheckboxChange",(()=>{var{checked:e,disabled:t=!1,onChange:a=f.a}=this.props;t||a(!e)}))}render(){var{data:{id:e,avatarUrl:t="",title:a,subTitle:r,tagName:i,tagStyle:s,tenantId:c,tenantName:l}={},checked:u,disabled:p=!1,enableCrossTenantApproval:m,currentTenantId:h,isCircle:b}=this.props,v=Boolean(m&&h&&c&&String(h)!==String(c)),j="".concat("candidate-selector","-person-item"),O=d()(j,{["".concat(j,"-disabled")]:p});return Object(g.jsxs)(n.r,{className:"".concat(O),onClick:this.handleCheckboxChange,children:[Object(g.jsx)(n.r,{className:"".concat(j,"-avatar"),children:Object(g.jsx)(n.g,{mode:"aspectFill",src:t})}),Object(g.jsxs)(n.r,{className:"".concat(j,"-info"),children:[Object(g.jsxs)(n.r,{className:"".concat(j,"-title"),children:[Object(g.jsx)(n.r,{className:"".concat(j,"-title-main"),children:a}),i&&s&&Object(g.jsx)(n.r,{style:s,className:"".concat(j,"-title-tag"),children:i}),v&&l&&Object(g.jsx)(M.a,{size:"extra-small",tagName:l,style:{maxWidth:"70px",marginLeft:"4px"},textStyle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}})]}),Object(g.jsx)(n.r,{className:"".concat(j,"-sub-title"),children:r})]}),Object(g.jsx)(n.r,{className:"".concat(j,"-right"),children:Object(g.jsx)(n.r,{className:"".concat(j,"-checkbox-wrapper"),children:Object(g.jsx)(o.a,{value:e,checked:u,disabled:p,onChange:f.a,type:b?"circle":"square"})})})]})}}Object(r.a)(_,"defaultProps",{data:{type:b.a.PERSON,id:"",title:"",avatarUrl:""}});var y=a(910),D=a.n(y);class N extends i.Component{render(){var{data:{avatarUrl:e="",title:t,subTitle:a,tagName:r,tagStyle:i,tenantId:o,tenantName:s},disabled:c,enableCrossTenantApproval:l,currentTenantId:u}=this.props,p="".concat("candidate-selector","-person-item"),m=d()(p,{["".concat(p,"-disabled")]:c}),h=Boolean(l&&u&&o&&String(u)!==String(o));return Object(g.jsxs)(n.r,{className:"".concat(m),children:[Object(g.jsx)(n.r,{className:"".concat(p,"-avatar"),children:Object(g.jsx)(n.g,{mode:"aspectFill",src:e})}),Object(g.jsxs)(n.r,{className:"".concat(p,"-info"),children:[Object(g.jsxs)(n.r,{className:"".concat(p,"-title"),children:[Object(g.jsx)(n.r,{className:"".concat(p,"-title-main"),children:t}),r&&i&&Object(g.jsx)(n.r,{style:i,className:"".concat(p,"-title-tag"),children:r}),h&&s&&Object(g.jsx)(M.a,{size:"extra-small",tagName:s,style:{maxWidth:"70px",marginLeft:"4px"},textStyle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}})]}),Object(g.jsx)(n.r,{className:"".concat(p,"-sub-title"),children:a})]}),Object(g.jsx)(n.r,{className:"".concat(p,"-right"),children:!c&&Object(g.jsx)(n.r,{className:"".concat(p,"-clear-btn"),onClick:()=>this.handleClearClick(),children:Object(g.jsx)(n.g,{src:D.a})})})]})}handleClearClick(){var{onClearClick:e=f.a}=this.props;e()}}Object(r.a)(N,"defaultProps",{data:{title:"",subTitle:"",avatarUrl:"",tagName:"",tagStyle:""},disabled:!1});var A=a(183),T="candidate-selector";class I extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"state",{searchContent:"",hasSearched:!1}),Object(r.a)(this,"handleGroupFoldChange",((e,t)=>{this.props.onFoldChange&&this.props.onFoldChange(e.id,t)})),Object(r.a)(this,"handleSearchInput",(e=>{var{value:t}=e.detail;this.setState({searchContent:t}),t||this.setState({hasSearched:!1}),this.props.onSearchChange&&this.props.onSearchChange(t)})),Object(r.a)(this,"clearSearchContent",(()=>{this.setState({searchContent:"",hasSearched:!1}),this.props.onSearchChange&&this.props.onSearchChange("")})),Object(r.a)(this,"handleCheckboxChange",((e,t)=>{var{checkedList:a,maxChecked:r=1/0,onPersonCheckClick:i}=this.props;if(i&&i(e),t){var n=[...a,e];if(n.length>r)return;this.props.onChange({checkedList:n})}else{var o=[...a],s=o.findIndex((t=>t.id===e.id));s>-1&&(o.splice(s,1),this.props.onChange({checkedList:o}))}})),Object(r.a)(this,"isSelectAllChecked",(()=>{var{candidateList:e,checkedList:t}=this.props;return function e(a){return a.every((a=>a.type===b.a.PERSON?t.some((e=>e.id===a.id)):a.type===b.a.GROUP&&e(a.children||[])))}(e||[])})),Object(r.a)(this,"handleSelectAll",(()=>{var{candidateList:e,maxChecked:t=1/0}=this.props;if(this.isSelectAllChecked())this.handleChange([]);else{var a=[];(function e(t,a){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;for(var i of t){if(a.length>=r)break;i.type===b.a.PERSON&&(i.disabled||a.push(i)),i.type===b.a.GROUP&&e(i.children||[],a)}})(e||[],a,t),this.handleChange(a)}})),Object(r.a)(this,"handleRemoveButtonClick",(e=>{var t=this.props.checkedList.slice(),a=t.findIndex((t=>t.id===e));a>-1&&(t.splice(a,1),this.handleChange(t))})),Object(r.a)(this,"handleChange",(e=>{this.props.onChange({checkedList:e})}))}static getDerivedStateFromProps(e){var t;return e&&e.candidateListLoading&&(t={hasSearched:!0}),t||null}render(){var{checkedList:e,candidateList:t,candidateListLoading:a,maxChecked:r=1/0,showSelectAll:i,showSearchBar:l,showSelectedCount:d,selectorHeight:u,localeString:{selectAllString:p=Object(c.t)("PC.SelectAll"),searchPlaceholder:m=Object(c.t)("PC.SearchPlaceHolder")}={},renderEmpty:b,renderDefault:v,renderLoading:j,enableCrossTenantApproval:O,currentTenantId:f}=this.props,{searchContent:M}=this.state,_=u?{height:u}:{};return Object(g.jsx)(n.r,{children:Object(g.jsx)(n.r,{className:"".concat(T),children:Object(g.jsxs)(n.r,{className:"".concat(T,"-selector"),style:_,children:[Object(g.jsxs)(n.r,{className:"".concat(T,"-candidate-part"),children:[l&&Object(g.jsxs)(n.r,{className:"".concat(T,"-search-bar"),children:[Object(g.jsx)(s.a,{className:"".concat(T,"-search-bar-input"),value:M,placeholder:m,onInput:this.handleSearchInput}),Boolean(M)&&Object(g.jsx)(A.a,{name:"close_filled",className:"".concat(T,"-search-bar-input-clear"),onClick:this.clearSearchContent})]}),Object(g.jsxs)(n.r,{className:"".concat(T,"-candidate-list"),children:[i&&Object(g.jsxs)(n.r,{className:"".concat(T,"-select-all"),children:[Object(g.jsx)(n.r,{className:"".concat(T,"-select-all-title"),children:p}),Object(g.jsx)(n.r,{className:"".concat(T,"-select-all-checkbox"),children:Object(g.jsx)(o.a,{value:"all",checked:this.isSelectAllChecked(),onChange:this.handleSelectAll})})]}),0===(null==t?void 0:t.length)&&Object(g.jsx)(n.r,{className:"".concat(T,"-no-result"),children:a?j||Object(c.t)("search_tips"):(this.state.hasSearched?b:v)||Object(c.t)("candidate_search_no-result")}),null==t?void 0:t.map((e=>this.renderRecur(e))),a&&0!==(null==t?void 0:t.length)&&Object(g.jsx)(n.r,{className:"".concat(T,"-loading")})]})]}),Object(g.jsxs)(n.r,{className:"".concat(T,"-checked-part"),children:[d&&Object(g.jsxs)(n.r,{className:"".concat(T,"-checked-total"),children:[Object(g.jsx)(h.a,{hidden:r===1/0,children:Object(g.jsx)(n.r,{children:1===e.length?Object(c.t)("approval-mp_SelectedMember_Desc",{num:"".concat(e.length," / ").concat(r)}):Object(c.t)("PC.Selected_Number_people",{number:"".concat(e.length," / ").concat(r)})})}),Object(g.jsx)(h.a,{hidden:r!==1/0,children:Object(g.jsx)(n.r,{children:1===e.length?Object(c.t)("approval-mp_SelectedMember_Desc",{num:"".concat(e.length)}):Object(c.t)("PC.Selected_Number_people",{number:"".concat(e.length)})})})]}),Object(g.jsx)(n.r,{className:"".concat(T,"-checked-list"),children:e.map((e=>Object(g.jsx)(N,{disabled:e.disabled,data:e,enableCrossTenantApproval:O,currentTenantId:f,onClearClick:()=>{this.handleRemoveButtonClick(e.id)}},e.id)))})]})]})})})}renderRecur(e){return Object(g.jsxs)(n.r,{children:[this.renderGroupItem(e),this.renderPersonItem(e)]})}renderGroupItem(e){return Object(g.jsx)(h.a,{hidden:e.type!==b.a.GROUP,children:Object(g.jsx)(n.r,{children:Object(g.jsx)(O,{data:e,onFoldChange:t=>this.handleGroupFoldChange(e,t),renderChild:Object(g.jsx)(n.r,{children:e.children&&e.children.map((e=>this.renderRecur(e)))})})},e.id)})}renderPersonItem(e){var{maxChecked:t}=this.props,{enableCrossTenantApproval:a,currentTenantId:r}=this.props;return Object(g.jsx)(h.a,{hidden:e.type!==b.a.PERSON,children:Object(g.jsx)(_,{data:e,checked:this.isChecked(e),disabled:e.disabled,isCircle:1===t,currentTenantId:r,enableCrossTenantApproval:a,onChange:t=>this.handleCheckboxChange(e,t)},e.id)})}isChecked(e){return e.children?0!==e.children.length&&e.children.every((e=>this.isChecked(e))):this.props.checkedList.some((t=>e.id===t.id))}}Object(r.a)(I,"defaultProps",{candidateListLoading:!1,maxChecked:1/0,showSelectAll:!1,showSearchBar:!0,showSelectedCount:!0,candidateLoading:!1,localeString:{selectAllString:Object(c.t)("PC.SelectAll"),searchPlaceholder:Object(c.t)("PC.SearchPlaceHolder")}})},,function(e,t,a){"use strict";var r=a(9),i=a(5),n=a(3),o=a.n(n),s=a(1),c=a(8),l=a.n(c),d=a(19),u=a.n(d),p=a(2),m=a(429),h=a(33),b=a(65),g=a(209),v=a(154),j=a(42),O=a(72),f=(a(1189),a(0)),M=e=>{var{overlay:t,overlayClassName:a,overlayStyle:o,disabled:c,trigger:d="click",showAction:u,hideAction:p,placement:h="bottomLeft",overlayOffset:g=4,overlayPosition:v="fixed",visible:j,defaultVisible:M,destroyOnHide:_=!1,dropdownMatchSelectWidth:y=!0,forceRender:D=!1,onVisibleChange:N,mouseLeaveDelay:A=100,mouseEnterDelay:T=100,children:I}=e,C=Object(n.useMemo)((()=>u||("hover"===d?"mouseEnter":d)),[u,d]),x=Object(n.useMemo)((()=>p||("hover"===d?"mouseLeave":d)),[p,d]),[S,w]=Object(m.a)(j,M,{onChange:e=>null==N?void 0:N(e)}),L=Object(n.useRef)(null),E=(e,t)=>{var a=function(){var e=Object(r.a)((function*(e){_&&!e&&F(!1),e&&(yield Y()),w(e)}));return function(t){return e.apply(this,arguments)}}();L.current&&(clearTimeout(L.current),L.current=null),"mouseLeave"===t?L.current=setTimeout(Object(r.a)((function*(){yield a(e),L.current&&(clearTimeout(L.current),L.current=null)})),A):"mouseEnter"===t?L.current=setTimeout(Object(r.a)((function*(){yield a(e),L.current&&(clearTimeout(L.current),L.current=null)})),T):a(e)},k=e=>{c||(C!==e||d===C?x!==e||d===x?d===e&&E(!S,e):E(!1,e):E(!0,e))},z="ud-like-dropdown",R=Object(n.useMemo)((()=>"dropdown-trigger-".concat(Object(O.c)())),[]),[P,U]=Object(n.useState)({}),[B,F]=Object(n.useState)(D),Y=Object(n.useCallback)((()=>{var e={position:v};if("absolute"===v){var t="0";return h.includes("top")&&(e.bottom="calc(".concat(g,"px + 100%)")),h.includes("bottom")&&(e.top="calc(".concat(g,"px + 100%)")),h.includes("Left")&&(e.left=0),h.includes("Right")&&(e.right=0),h.includes("Center")&&(e.left="50%",t="-50%"),e.transform="translate(".concat(t,", ").concat("0",")"),U(e),Promise.resolve()}return Object(b.a)("#".concat(R)).then((t=>{t&&(y&&(e.width="boolean"==typeof y?t.width:y),h.includes("top")&&(e.top=t.top-t.height+g),h.includes("bottom")&&(e.top=t.top+t.height+g),h.includes("Left")&&(e.left=t.left),h.includes("Right")&&(e.right=t.right),h.includes("Center")&&(e.left=t.left+t.width/2,e.transform="translateX(-50%)"),U(e))}))}),[h,g,v,R,y]);return Object(n.useEffect)((()=>{S&&Y()}),[Y,S]),Object(n.useEffect)((()=>{!B&&F(!0)}),[B]),Object(f.jsxs)(s.r,{className:z,children:[Object(f.jsx)(s.r,{id:R,className:"".concat(z,"__trigger"),onClick:()=>k("click"),onMouseEnter:()=>k("mouseEnter"),onMouseLeave:()=>k("mouseLeave"),children:I}),B&&Object(f.jsx)(s.r,{className:l()("".concat(z,"__overlay"),"".concat(z,"__overlay--").concat(S?"visible":"hidden"),a),onMouseEnter:()=>E(!0,"mouseEnter"),onMouseLeave:()=>k("mouseLeave"),style:Object(i.a)(Object(i.a)({width:y},P),o),children:t})]})},_=a(89),y=a(200),D=a(285),N=a(68),A=(a(1193),"ud-like-select"),T=o.a.memo((e=>{var{option:t,labelKey:a,keyword:i,onSelect:o,selectedIndex:c,active:p}=e,m=Object(n.useRef)(null),[h,g]=Object(n.useState)(),[O,M]=Object(n.useState)(-1!==c),y=Object(n.useCallback)(Object(r.a)((function*(){if(m.current){var e=yield m.current.isTextEllipsis({cache:!0});g(e)}})),[]);Object(n.useEffect)((()=>{M(-1!==c)}),[c]),Object(n.useEffect)((()=>{p&&void 0===h&&t[a]&&Object(d.nextTick)((()=>y()))}),[p,h,t,a]);var N=()=>{u.a.eventCenter.trigger("global-tooltip",{visible:!1})},[T,I]=Object(D.a)({onEnter:e=>{h?(e=>{Promise.all([Object(b.a)("#".concat(e.currentTarget.id))]).then((e=>{if(e&&p){var[r]=e;u.a.eventCenter.trigger("global-tooltip",{visible:!0,position:"top",parentElementPosition:r,text:t[a],maxWidth:320,wordWrap:!0,textWrap:!0})}}))})(e):N()},onLeave:N,delay:300});return Object(f.jsxs)(s.r,{className:l()("".concat(A,"__panel__menu__item"),{["".concat(A,"__panel__menu__item--selected")]:O}),onClick:()=>{u.a.eventCenter.trigger("global-tooltip",{visible:!1}),M(!O),o(t,c)},onMouseEnter:T,onMouseLeave:I,children:[Object(f.jsx)(v.a,{customStyle:{width:"100%"},ref:m,text:Object(f.jsx)(j.a,{content:t[a],keyword:i,isSingleLine:!0})}),Object(f.jsx)(_.a,{className:"".concat(A,"__panel__menu__item__icon"),name:"xiala_xuanzhong",size:24,color:"#3370ff"})]})}));t.a=e=>{var{mode:t="single",active:a,maxTagCount:r,showAllWhenActive:o=!1,searchable:c=!0,disabled:d,readonly:b,placeholder:v,value:j,defaultValue:O,onChange:D,onClose:I,tagRenderer:C,options:x,className:S,dropdownClassName:w,wrapperClassName:L,error:E,noBorder:k,labelKey:z="label",valueKey:R="value",triggerProps:P={},dropDownProps:U={},noOptionsContent:B,notFoundContent:F,onDropdownVisibleChange:Y,selectAgainClear:Q=!0}=e,[G,W]=Object(m.a)(j,O,{onChange:D,isControlled:!0}),[V,H]=Object(n.useState)(a),[Z,q]=Object(n.useState)(0),K=Object(n.useRef)(null),[J,X]=Object(n.useState)(50),$=()=>{d||b||V||(H(!0),q((e=>e+1)))},ee=()=>{K.current&&(clearTimeout(K.current),K.current=null),q((e=>e+1))};Object(n.useEffect)((()=>{void 0!==V&&(V||(null==I||I(),u.a.eventCenter.trigger("global-tooltip",{visible:!1})),null==Y||Y(Boolean(V)))}),[V]);var te="multiple"===t?Object(f.jsx)(N.a,Object(i.a)(Object(i.a)({disabled:d,placeholder:v,noBorder:k,active:V,error:E},P),{},{className:l()("".concat(A,"__trigger"),S,{"multiple-select-value":G.length}),suffix:Object(f.jsx)(_.a,{className:l()("".concat(A,"__trigger__icon"),{fold:!V}),name:"fold",size:20,color:"#646A73"}),onClick:$,children:G.length?Object(f.jsx)(y.a.Group,{maxTagCount:o&&V?void 0:r,children:null==G?void 0:G.map(((e,t)=>C?C(e):Object(f.jsx)(y.a,{text:e[z],closable:!d&&!b,closeHoverColor:"blue",backgroundColor:"rgba(31, 35, 41, 0.1)",onClose:()=>ne(t)},e[R])))}):null})):Object(f.jsx)(N.a,Object(i.a)(Object(i.a)({disabled:d,noBorder:k,error:E,active:V,placeholder:v},P),{},{className:l()("".concat(A,"__trigger"),S),value:null==G?void 0:G[z],suffix:Object(f.jsx)(_.a,{className:l()("".concat(A,"__trigger__icon"),{fold:!V}),name:"fold",size:20,color:"#646A73"}),onClick:$})),[ae,re]=Object(n.useState)(""),ie=(e,a)=>{"single"===t?(W(-1!==a?{}:e),H(!1)):-1!==a?ne(a):oe(e)},ne=e=>{G.splice(e,1),W([...G]),ee()},oe=e=>{W([...G,e]),ee()},se=e=>"single"===t?Q&&G[R]===e[R]?0:-1:G.findIndex((t=>t[R]===e[R])),ce=Object(n.useMemo)((()=>x.filter((e=>e[z].toLowerCase().indexOf(ae.toLowerCase())>-1)).slice(0,J)),[x,ae,z,J]),le=Object(f.jsx)(s.r,{className:"".concat(A,"__panel__menu__empty"),children:Object(p.t)("CellSelectSearch_NoResult","无结果")}),de=Object(f.jsx)(s.r,{className:"".concat(A,"__panel__menu__empty"),children:Object(p.t)("CellSelectSearch_NoOptions","无可选项")}),ue=ae?F||le:B||de,pe=Object(n.useMemo)((()=>"select-menu_".concat(Object(h.e)())),[]),me=Object(h.c)((e=>{(e=>{re(e),X(51)})(e.detail.value)}),100),he=Object(f.jsxs)(s.r,{className:"".concat(A,"__panel"),id:pe,children:[Object(f.jsx)(g.a,{wrapClass:l()("".concat(A,"__panel__search"),{["".concat(A,"__panel__search--hidden")]:!c}),isNoBorder:!0,style:{paddingRight:"16px"},placeholder:Object(p.t)("CellSelectSearch_Placeholder","请搜索"),value:ae,onClear:()=>{re(""),X(51),ee()},onInput:me,focus:!0,onBlur:()=>{K.current=setTimeout((()=>{H(!1),K.current&&(clearTimeout(K.current),K.current=null)}),300)}},Z),c&&Object(f.jsx)(s.r,{className:"".concat(A,"__panel__divide")}),Object(f.jsx)(s.n,{className:"".concat(A,"__panel__menu"),scrollY:!0,onScrollToLower:()=>{J>=x.length||X((e=>e+51))},children:ce.length?ce.map((e=>Object(f.jsx)(T,{active:V,labelKey:z,keyword:ae,option:e,onSelect:ie,selectedIndex:se(e)},e[R]))):ue})]});return Object(f.jsx)(s.r,{className:l()(A,L),children:Object(f.jsx)(M,Object(i.a)(Object(i.a)({disabled:d||b,overlayPosition:"absolute",overlay:he,overlayClassName:w,visible:V,onVisibleChange:e=>H(e)},U),{},{children:te}))})}},function(e,t,a){"use strict";var r,i=a(5),n=a(9),o=a(3),s=a(1),c=(a(1190),a(285)),l=a(8),d=a.n(l),u=a(69),p=a(65),m=a(72);!function(e){e.TOP="top",e.Right="right",e.Bottom="bottom",e.TopLeft="top-left",e.Left="left"}(r||(r={}));var h=a(0),b="ud-like-popover",g=Object(u.h)(b);t.a=e=>{var{children:t,content:a,title:l,trigger:u="click",position:v=r.TOP,onMouseEnter:j,delay:O=200,leaveDelay:f=250,beforeEnter:M,onMouseLeave:_,className:y,style:D,arrow:N=!0,arrowStyle:A,overlayPosition:T="absolute",overlayOffset:I=8,popoverContentClass:C,width:x=300,zIndex:S=100,maxHeight:w=320,contentClass:L,popoverStyle:E={},disabled:k,noPadding:z=!1}=e,[R,P]=Object(o.useState)(!1),[U,B]=Object(o.useState)(!0),F=Object(o.useRef)(v),Y=Object(o.useMemo)((()=>"dropdown-trigger-".concat(Object(m.c)())),[]),[Q,G]=Object(o.useState)({}),W=Object(o.useRef)(0),V=Object(o.useMemo)((()=>{if(k||!U)return!1;var e=!l||Array.isArray(l)&&!l.length;return!(!a||Array.isArray(a)&&!a.length)||!e}),[k,a,l,U]),[H,Z]=Object(c.a)({beforeEnter:M,onEnter:e=>{null==j||j(e),(e=>{W.current=e})((new Date).valueOf()),O<=0||R||P(!0)},onLeave:e=>{if(null==_||_(e),!(O<=0)){var t=W.current;setTimeout((()=>{f&&t===W.current&&P(!1)}),f)}},delay:O}),q="click"===u?{onClick:e=>{e.stopPropagation(),P(!R)}}:{onMouseEnter:H,onMouseLeave:Z};Object(o.useEffect)((()=>{var e={position:T};"fixed"===T&&Object(n.a)((function*(){B(!1);var t=yield Object(p.a)("#".concat(Y));if(t){var a=yield Object(p.a)("#".concat(Y," .").concat(g("popover-container")));if(a)switch(v){case r.TOP:var i=t.top<a.height+I+30,n=t.right+a.width/2>tt.getSystemInfoSync().windowWidth;F.current=n&&i?r.Left:i?r.Bottom:n?r.TopLeft:v;case r.TopLeft:}"top"===F.current&&(e.top=t.top-I,e.left=t.left+t.width/2,e.transform="translate(-50%, -100%)"),F.current===r.TopLeft&&(e.top=t.top-I,e.left=t.left+t.width/2,e.transform="translate(-90%, -100%)"),"left"===F.current&&(e.top=t.top+t.height/2,e.left=t.left-I,e.transform="translate(-100%, -50%)"),"bottom"===F.current&&(e.top=t.bottom+I,e.left=t.left+t.width/2,e.transform="translate(-50%, 0)",e.bottom="unset"),"right"===F.current&&(e.left=t.right+I,e.top=t.top+t.height/2,e.transform="translate(0, -50%)"),B(!0),G((()=>e))}}))()}),[T,Y,R]);var K=d()(b,{["".concat(b,"--visible")]:R,["".concat(b,"--active")]:O<=0},y),J=d()(g("popover"),g("popover--".concat(T)),C,{[g("popover--".concat(F.current))]:F.current}),X=d()(g("popover--arrow"),{[g("popover--arrow--".concat(F.current))]:F.current},"iconfont","icon-arrow-1");return Object(h.jsxs)(s.r,Object(i.a)(Object(i.a)({},q),{},{id:Y,style:D,className:K,children:[t,Object(h.jsxs)(s.r,{className:J,style:Object(i.a)(Object(i.a)(Object(i.a)({},Q),{},{width:"".concat(x,"px"),zIndex:S},E),{},{visibility:V?void 0:"hidden"}),children:[N&&Object(h.jsxs)(s.r,{className:X,style:A,children:[Object(h.jsx)(s.r,{className:g("arrow-mask")}),Object(h.jsx)(s.r,{})]}),Object(h.jsxs)(s.r,{className:g("popover-container"),style:{maxHeight:"".concat(w,"px"),padding:z?"0":void 0},children:[l&&Object(h.jsx)(s.r,{className:g("popover-title"),children:l}),a&&Object(h.jsx)(s.r,{className:d()(g("popover-content"),L),children:a})]})]})]}))}},,function(e,t,a){"use strict";var r=a(1),i=(a(3),a(440)),n=a.n(i),o=a(775),s=a.n(o),c=a(0);t.a=e=>{var{children:t,imgSrc:a=n.a}=e;return Object(c.jsxs)(r.r,{className:s.a["placeholder-wrapper"],children:[Object(c.jsx)(r.g,{className:s.a["placeholder-icon"],src:a}),t]})}},function(e,t,a){"use strict";a.d(t,"b",(function(){return y})),a.d(t,"c",(function(){return A})),a.d(t,"d",(function(){return T})),a.d(t,"a",(function(){return I}));var r=a(5),i=a(9),n=a(29),o=a(280),s=a(76),c=a(18),l=a(19),d=a.n(l),u=a(20),p=(a(10),a(36)),m=(a(244),a(521)),h=(a(181),a(2)),b=(a(636),a(17)),g=a(12),v=a(78),j=a(35),O=a(44),f=a(75),M=a(25),_=Object(u.c)("pc:src/utils/upload/index.ts"),y=e=>"word"===e||"ppt"===e||"pdf"===e||"excel"===e||"email"===e,D=function(){var e=Object(i.a)((function*(e,t){if(e===n.h.IMG){var a=yield new Promise(((e,a)=>{tt.chooseImage(Object(r.a)(Object(r.a)({},t),{},{success:t=>e(t),fail:e=>a(e)}))}));return a.tempFiles.map((e=>{var{path:t,size:a}=e;return{path:t,size:a}}))}return(yield Object(p.f)(t)).list}));return function(t,a){return e.apply(this,arguments)}}(),N=(e,t)=>{var{maxFileSize:a=50,maxImageSize:r=50,type:i=n.h.IMG}=t||{},l=!1,d=!1,u=e.map((e=>{var{path:t,size:u,name:p}=e,b=Object(o.a)(),g=p||Object(s.b)(t).slice(44),v=Object(s.a)(g),j=i===n.h.IMG&&u>1024*r*1024||i===n.h.ATTACH&&u>1024*a*1024,O=c.v.UPLOADING,f="";if(m.a.includes(v))O=c.v.FAILED,f=Object(h.t)("approval-mp_ThisFormatNotYet_Toast",{fileType:v}),tt.showToast({title:f,icon:"error",duration:3e3});else if(j){if(l=!0,O=c.v.FAILED,f=Object(h.t)("approval-mp_FileMax500_Desc",{size:a}),i===n.h.IMG)return}else 0===Number(u)&&(d=!0,O=c.v.FAILED,f=Object(h.t)("PC.Error_EmptyFile"));return{id:b,status:O,url:t,thumbUrl:t,previewUrl:t,name:g,extension:v,size:u,type:i,key:"",info:f,canBeRetried:O===c.v.UPLOADING}})).filter((e=>Boolean(e))),p=M.d.enableDrive&&!Object(f.g)();return l&&tt.showToast({title:i===n.h.IMG?Object(h.t)("approval-mp_ImageSize500_Toast",{size:r}):p?Object(h.t)("approval-mp_MaxSizeFiles_Toast",{APP_DISPLAY_NAME:Object(h.t)("feishu"),oldsize:a,newsize:500}):Object(h.t)("approval-mp_FileMax500_Tooltip",{size:a}),icon:"error",duration:3e3}),d&&tt.showToast({title:Object(h.t)("PC.Error_EmptyFile"),icon:"error",duration:3e3}),u},A=(e,t)=>{var{type:a,previewUrl:r,url:i,name:o}=e;if(console.log("files",t),a===n.h.IMG)d.a.previewImage({urls:(null==t?void 0:t.filter((e=>e.type===n.h.IMG)).map((e=>e.previewUrl)))||[i],current:r});else try{Object(p.d)({url:i,name:o})}catch(e){d.a.showToast({title:Object(h.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),Object(g.b)(b.f.ApprovalError,{location:"in function previewAndDownload at packages/approval-mp-pc/src/utils/upload/index.ts",message:JSON.stringify(e)})}},T=function(){var e=Object(i.a)((function*(e,t){var{url:a,name:i}=e;try{_("fileBizPreview");var n=Object(f.i)(e.mountServer),o="";if(n)o=(yield Object(f.f)({file_token:e.key,mount_node_token:t})).type;else o=Object(s.a)(a);var c=v.a[o],l="pic"===c,d=Object(f.e)({isDrive:n,isImage:l,url:a,file_token:e.key,mount_node_token:t});l?j.b.previewImage({urls:[d]}):y(c)?yield Object(p.n)({url:d,name:i}):(j.b.showToast({title:Object(h.t)("PC.Error_AttachmentNotSupport"),icon:"error",duration:3e3}),setTimeout((()=>{A(n?Object(r.a)(Object(r.a)({},e),{},{url:d}):e)}),3e3))}catch(e){j.b.showToast({title:Object(h.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),_("filePreviewFail",{error:Object(O.a)(e)})}}));return function(t,a){return e.apply(this,arguments)}}(),I=function(){var e=Object(i.a)((function*(e,t){var{maxCount:a=9,maxFileSize:r=50,maxImageSize:i=50,afterChooseFile:o,uploadedNum:s=0}=t||{};_(e===n.h.IMG?"operateUploadImage":"operateUploadAttachment");try{var c=a-s,l=e===n.h.IMG?{sourceType:["album"],count:a+1}:{maxNum:a+1},u=yield D(e,l);if(null==o||o(),u.length>c){var p=M.d.enableDrive&&!Object(f.g)();u=u.slice(0,c),d.a.showToast({title:e===n.h.IMG?Object(h.t)("approval-mp_ImageUploadLimit_Toast",{count:a}):p?Object(h.t)("approval-mp_MaxNumberFiles_Toast",{APP_DISPLAY_NAME:Object(h.t)("feishu"),oldcount:a,newcount:30}):Object(h.t)("approval-mp_AttachmentUploadLimit_Toast",{count:a}),icon:"error",duration:3e3})}return N(u,{type:e,maxFileSize:r,maxImageSize:i})}catch(e){return console.error("get file err",e),[]}}));return function(t,a){return e.ap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bC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(3),i=e=>{var[t,a]=Object(r.useState)(e),i=Object(r.useRef)(e),n=Object(r.useCallback)((e=>{i.current=e,a(e)}),[]);return[t,n,i]}},function(e,t,a){"use strict";a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return d}));var r=a(5),i=a(23),n=a(39),o=a(17),s=a(12);function c(e,t){var a,r,n,o,s,{URLs:c}=e;return{processId:e.ProcessID,processUniqueId:e.ProcessUniqueID,displayMethod:e.DisplayMethod,intranetAccess:e.IntranetAccess,sourceName:e.SourceName,system:e.System,topic:e.Topic,urls:{app:null!==(a=null==c?void 0:c.app)&&void 0!==a?a:"",mobile:null!==(r=null==c?void 0:c.mobile)&&void 0!==r?r:"",h5:null!==(n=null==c?void 0:c.h5)&&void 0!==n?n:"",pc:null!==(o=null==c?void 0:c.pc)&&void 0!==o?o:"",helpdesk:null!==(s=null==c?void 0:c.helpdesk)&&void 0!==s?s:""},listCard:t||void 0,isBatching:e.Topic===i.i.DoneApproval&&e.TaskStatus===i.h.Todo}}var l=e=>{var{urls:t}=e;try{if(null==t||!t.pc)return"";var a=new URL(null==t?void 0:t.pc);return a.searchParams.set("lang",Object(n.b)()),Object(s.b)(o.f.ApprovalConvertUrl,{url:null==t?void 0:t.pc,convert_status:"success"}),a.toString()}catch(e){return Object(s.b)(o.f.ApprovalConvertUrl,{url:JSON.stringify(t),convert_status:"false"}),""}},d=function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],{system:n,displayMethod:o,parentId:s,parentShareCode:c,processId:d,instanceId:u,intranetAccess:p,sourceName:m,urls:h}=e,b=null!=u?u:d,{searchKeyword:g}=t,v=Object(r.a)(Object(r.a)({},e),{},{id:b,parentId:s,parentShareCode:c,searchKeyword:g,intranetAccess:p,shouldHideHeader:a});return"feishu"!==n&&"external"!==n||o!==i.b.Normal||null!=h&&h.pc?o===i.b.Normal?Object(r.a)(Object(r.a)({},v),{},{type:"iframe-webview",webviewInfo:{url:l(e)},sourceName:m||"",helpdeskURL:(null==h?void 0:h.helpdesk)||""}):o===i.b.Browser?Object(r.a)(Object(r.a)({},v),{},{type:"browser",browserInfo:{url:l(e)}}):o===i.b.Trusteeship?Object(r.a)(Object(r.a)({},v),{},{type:"hosting-webview"}):Object(r.a)(Object(r.a)({},v),{},{type:"drawer-webview",webviewInfo:{url:l(e)},sourceName:m||""}):Object(r.a)(Object(r.a)({},v),{},{type:"default",helpdeskURL:(null==h?void 0:h.helpdesk)||""})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return D})),a.d(t,"c",(function(){return N})),a.d(t,"b",(function(){return A}));var r=a(9),i=a(6),n=a(3),o=a(1),s=a(314),c=a(745),l=a(8),d=a.n(l),u=a(791),p=a.n(u),m=a(2),h=a(108),b=a(16),g=a(499),v=a(36),j=a(208),O=a.n(j),f=a(87),M=a.n(f),_=a(0),y=Object(g.a)((e=>{var{query:t="",filterType:a=2}=e;return b.c.usersearchUsers({offset:0,pageSize:50,filterType:a,query:t})}),100),D="all",N=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{email:"",hasThreeSuccessiveLeaders:!1,iconLink:p.a,iconUrl:"",id:D,name:Object(m.t)("FilterSubordinatesPage.FilterAll","全部{{scope}}",{scope:e?Object(m.t)("ApprovalSearch.Staff","员工"):Object(m.t)("ApprovalSearch.Subordinate","下级")})}};class A extends n.Component{constructor(){var e;super(...arguments),e=this,Object(i.a)(this,"state",{isActive:!1,searchKey:"",isNoBorder:!0,isStateFocus:!1,range:[],loading:!1}),Object(i.a)(this,"deleteOne",(e=>{var{value:t,onChange:a}=this.props;a(t.filter((t=>t.id!==e.id))),this.setState({searchKey:""}),this.setNoBorder(!0),this.setFocus(!0)})),Object(i.a)(this,"handleInputChange",(e=>{var{value:t}=e.detail;this.setState({searchKey:t}),this.getUses({query:t})})),Object(i.a)(this,"handleFakeInputClick",(()=>{var{onShowSelect:e}=this.props;this.setFocus(!0),this.setState({isActive:!0,searchKey:""},(()=>{this.getUses({query:""})})),e&&e()})),Object(i.a)(this,"handleMaskClick",(()=>{this.setFocus(!1),this.setState({isActive:!1,searchKey:""})})),Object(i.a)(this,"setFocus",(e=>{this.setState({isStateFocus:!e},(()=>setTimeout((()=>{this.setState({isStateFocus:e})}),0)))})),Object(i.a)(this,"setNoBorder",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.setState({isNoBorder:!t},(()=>setTimeout((()=>{e.setState({isNoBorder:t})}),0)))})),Object(i.a)(this,"handleItemClick",(e=>{var{value:t,onChange:a,isYm:r=!1}=this.props,i=N(r),n=Object(s.a)(t).filter((e=>e.id!==i.id));t.some((t=>e.id===t.id))?this.deleteOne(e):(a(Object(c.a)(n.concat([e]),"id")),this.setNoBorder(!0),this.setFocus(!0))})),Object(i.a)(this,"handleSelectAll",(e=>{var{value:t,onChange:a}=this.props;t.some((t=>e.id===t.id))?this.deleteOne(e):(a([e]),this.setState({searchKey:""}),this.setNoBorder(!0),this.setFocus(!0))}))}componentDidMount(){this.setFocus(!1),this.setNoBorder(!0)}getUses(e){var t=this;return Object(r.a)((function*(){var{query:a="",filterType:r}=e;try{t.setState({loading:!0});var i=yield y({query:a,filterType:r});t.setState({loading:!1,range:i.data.entityList})}catch(e){t.setState({loading:!1})}}))()}renderMask(){var{isActive:e}=this.state;return e&&Object(_.jsx)(o.r,{className:M.a.mask,onClick:this.handleMaskClick})}renderOptionsEmpty(e){return!(null!=e&&e.length)&&Object(_.jsx)(o.r,{className:M.a["items-empty"],children:Object(_.jsx)(o.r,{className:M.a["empty-text"],children:Object(m.t)("ApprovalSearch.empty","没有找到相关结果")})})}renderLoading(){var{loading:e}=this.state;return e&&Object(_.jsx)(o.r,{className:d()(M.a["items-empty"],M.a.center),children:Object(_.jsx)(o.g,{className:M.a["loading-icon"],src:O.a})})}renderItems(){var{value:e,defaultValue:t,isYm:a=!1}=this.props,{isActive:r,searchKey:i,range:s,loading:l}=this.state,u=N(a),m=s.map((e=>e.id)),h=e.filter((e=>!m.includes(e.id)&&e.id!=u.id)),b=new Set(e.map((e=>e.id))),g=i?s:Object(c.a)([...t.filter((e=>e.id!=u.id)),...h,...s],"id"),j=b.has(u.id);return r&&Object(_.jsx)(o.r,{className:M.a.items,children:l?this.renderLoading():Object(_.jsxs)(n.Fragment,{children:[!i&&Boolean(g.length)&&Object(_.jsx)(o.r,{className:M.a["items-all-wrapper"],children:Object(_.jsxs)(o.r,{className:M.a["items-all"],onClick:()=>{this.handleSelectAll(u)},children:[Object(_.jsx)(o.r,{className:(M.a["items-all-icon"],""),children:Object(_.jsx)(o.g,{src:p.a,className:M.a["item-selected-avatar"]})}),Object(_.jsx)(o.r,{className:d()(M.a["item-all-text"],{[M.a["item-selected"]]:j}),children:u.name}),j&&Object(_.jsx)(o.r,{className:d()("iconfont icon-agree",M.a["item-selected-icon"])})]})}),null==g?void 0:g.map(((e,t)=>{var a=b.has(e.id);return Object(_.jsxs)(o.r,{className:d()(M.a.item,{active:a}),onClick:()=>this.handleItemClick(e),children:[Object(_.jsxs)(o.r,{className:M.a["item-wrapper"],children:[Object(_.jsx)(o.g,{onClick:t=>{t.stopPropagation(),Object(v.q)(e.id,t)},src:e.iconLink,className:M.a["item-selected-avatar"]}),Object(_.jsxs)(o.r,{className:d()(M.a["item-selected-name"],{[M.a["item-selected"]]:a}),children:[Object(_.jsx)(o.r,{className:M.a["item-user-name"],children:e.name}),Object(_.jsx)(o.r,{className:M.a["item-depart"],children:e.departmentName})]})]}),a&&Object(_.jsx)(o.r,{className:d()("iconfont icon-agree",M.a["item-selected-icon"])})]},"".concat(e.id,"-").concat(t))})),this.renderOptionsEmpty(g)]})})}renderValue(){var{value:e=[]}=this.props,{isActive:t}=this.state,a=t?1:2;if(Array.isArray(e)){var r=e.length;return Object(_.jsxs)(o.r,{className:d()(M.a["value-wrapper"],{[M.a.active]:t}),children:[e.slice(0,a).map((e=>Object(_.jsxs)(o.r,{className:d()(M.a["item-value"],{[M.a.active]:!t}),children:[Object(_.jsx)(o.g,{src:e.iconLink,className:M.a["value-avatar"]}),Object(_.jsx)(o.r,{className:M.a["value-name"],children:e.name}),Object(_.jsx)(o.r,{className:d()("iconfont icon-reject",M.a["value-delete-icon"]),onClick:t=>{t.stopPropagation(),this.deleteOne(e)}})]},e.id))),r>a&&Object(_.jsx)(o.r,{className:d()(M.a["len-wrapper"]),children:"+".concat(r-a)})]})}}renderFakeInput(){var{value:e=[],placeholder:t,hasError:a,onChange:r}=this.props,{isActive:i,searchKey:n,isNoBorder:s,isStateFocus:c}=this.state,l=c;return Object(_.jsxs)(o.r,{onClick:this.handleFakeInputClick,className:d()(M.a["fake-input-wrapper"],{[M.a.active]:i,[M.a.error]:a}),children:[Object(_.jsxs)(o.r,{className:d()(M.a["fake-input-width-wrapper"]),children:[this.renderValue(),!i&&!e.length&&Object(_.jsx)(h.a,{isNoBorder:s,placeholder:t,placeholderStyle:"color: #8f959e",style:{border:"none",width:"100%"}},"fake-input"),i&&Object(_.jsx)(o.r,{className:M.a["input-inner-wrapper"],children:Object(_.jsx)(h.a,{focus:l,isNoBorder:s,value:i?n:"",placeholder:e.length?"":t,onInput:this.handleInputChange,placeholderStyle:"color: #8f959e",style:{border:"none",width:"100%"}},"input")})]}),Boolean(e.length)&&Object(_.jsx)(o.r,{onClick:()=>{r([])},className:d()(M.a["close-icon"],"iconfont icon-icon_close_filled")}),Object(_.jsx)(o.r,{className:d()(M.a.icon,{"iconfont icon-arrow-down-copy":!i,"iconfont icon-arrow-up":i})})]})}render(){return Object(_.jsxs)(o.r,{className:M.a["approval-multi-select"],children:[this.renderFakeInput(),this.renderMask(),this.renderItems()]})}}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return s}));var r=a(6),i=a(13),n=a(2),o="insteadSubmit";class s{constructor(e,t){Object(r.a)(this,"configurableFormStore",void 0),Object(r.a)(this,"globalStore",void 0),Object(r.a)(this,"hasCanceledInsteadSubmit",!1),Object.defineProperty(this,"configurableFormStore",{configurable:!1,enumerable:!1,writable:!1,value:e}),Object.defineProperty(this,"globalStore",{configurable:!1,enumerable:!1,writable:!1,value:t})}setHasCanceledInsteadSubmit(e){this.hasCanceledInsteadSubmit=e}generateFakeWidget(e){return{id:o,name:Object(n.t)("approvalForm.insteadSubmit.label"),type:i.c.INSTEAD_SUBMIT,placeholder:Object(n.t)("Validation.PleaseSelect"),displayCondStatus:!0,required:!0,value:e||null,writable:!0}}get currentSubmitterIsNotCurrentUser(){return this.currentSubmitterId!==this.globalStore.currentUser.userId}get currentSubmitterId(){var e=this.configurableFormStore.getWidget(o,!1);if(!e)return this.globalStore.currentUser.userId;var{value:t}=e.data;try{return t&&Array.isArray(t)&&t.length>0?t[0].id:this.globalStore.currentUser.userId}catch(e){return this.globalStore.currentUser.userId}}}},function(e,t,a){"use strict";a.d(t,"b",(function(){return bt})),a.d(t,"a",(function(){return gt}));var r=a(11),i=a(9),n=a(6),o=a(7),s=(a(56),a(4)),c=a(206),l=a(81),d=a(163),u=a(176),p=a(23),m=a(519),h=a(22),b=a(16),g=a(1477),v=a(10),j=a(67),O=a(331),f=a(217),M=a(5),_=a(31),y=a.n(_),D=a(28),N=a(2),A=a(356),T=e=>String(e).padStart(2,"0"),I={en:"en",zh:"zh",ja:"ja"};var C={normalizedLang:""};function x(e){C.normalizedLang=function(){return I[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase().replace("-","_").split("_")[0]]||(v.a.error("[打印出错] 请传入合法的 lang (zh, zh-CN, en, en-US, ja, ja-JP)\n当前正使用默认语言"),I.en)}(e)}var S=e=>(new Date).toDateString()===e.toDateString(),w=e=>(new Date).getFullYear()===e.getFullYear(),L=e=>{var t=new Date(e),a=t.getFullYear(),r=t.getMonth()+1,i=T(r),n=t.getDate(),o=T(n),s=t.getHours(),c=T(s),l=t.getMinutes(),d=T(l),u="AM",p=Object(N.t)("AM"),m=new Date(a,r-1,n,12,0,0).getTime();return Math.abs(t.getTime()-m)>=0&&(u="PM",p=Object(N.t)("PM")),{YYYY:a,M:r,MM:i,D:n,DD:o,h:s,hh:c,m:l,mm:d,noon:p,a:u}};function E(e){return e=(e=e||"").toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&#34;")}function k(e){if(!e)return"";var t=new RegExp("↵","g");return e.replace(t,"\n").replace(/(\n[\s\t]*\r*\n)/g,"\n").replace(/^[\n\r]*|[\n\r]*$/g,"")}var z,R=e=>{var t=0;for(var a of e)t+=a.codePointAt(0)>=256?2:1;return t},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return R(e)*t/2};!function(e){e[e.Approved=0]="Approved",e[e.Rejected=1]="Rejected",e[e.Processing=2]="Processing",e[e.Revoked=3]="Revoked",e[e.Deleted=4]="Deleted",e[e.Completed=101]="Completed",e[e.Null=102]="Null",e[e.Terminated=103]="Terminated",e[e.Cleared=9]="Cleared"}(z||(z={}));var U=e=>{var{id:t}=e;return"https://".concat(Object(A.a)(),"/client/mini_program/open?appId=").concat(D.e,"&path=pages%2Fdetail%2Findex%3FinstanceId%3D").concat(t)},B=a(12),F=a(17),Y=e=>{var{title:t,totalCol:a=26,isNormal:r=!1,isDesc:i=!1}=e;return'\n <tr>\n <td\n colspan="'.concat(a,'"\n >\n <div style="').concat(i?"color: #646A73":"",'" class="partial-title ').concat(r?"partial-title-normal":"",'">\n ').concat(E(t),"\n </div>\n </td>\n </tr>\n ")},Q=e=>Array.isArray(e)?e.map((e=>E(e))):[E(e)],G=e=>{var t=Q(e.label),a=Q(e.value);return'\n <tr>\n <td colspan="5" class="with-bg-multi '.concat(e.isLabelDisableBg?"":"with-bg"," ").concat(e.isSummary?"partial-title-normal__summary":"",'">\n ').concat(t.map((e=>'<div class="td-content">'.concat(e,"</div>"))).join(""),'\n </td>\n <td colspan="21">\n ').concat(a.map((e=>'<div class="td-content">'.concat(e,"</div>"))).join(""),"\n ").concat(e.capitalValue?"<div>".concat(e.capitalValue,"</div>"):"","\n </td>\n </tr>\n ")},W=e=>{var{row:t,column:a,offset:r,formMatrix:i}=(e=>{var t=e.length,a=Math.ceil(t/5),r=Math.ceil(t/a),i=0,n=[];return e.forEach(((e,t)=>{var a=parseInt(String(t/r),10);n[a]?n[a].push(e):n[a]=[e]})),a>1&&(i=r-n[a-1].length),{row:a,column:r,offset:i,formMatrix:n}})(e),n=(i,n)=>i===t-1&&i*a+n+1===e.length&&r>0?r+1:1;return'\n <tr class="exclude">\n <td colspan="26" style="padding: 0px">\n <table frame="void">\n '.concat(i.map(((e,t)=>{var r=e[0].value;return'<tr>\n <td class="with-bg" style="width: 5%">#</td>\n '.concat(e.map(((e,r)=>{var i=Q(e.label),o=n(t,r);return'<td class="with-bg" colspan="'.concat(o,'" style="width: ').concat(o*(95/a),'%">').concat(i.map((e=>'<div class="td-content">'.concat(e,"</div>"))).join(""),"</td>")})).join(""),"\n </tr>\n ").concat(null==r?void 0:r.map(((r,i)=>'<tr>\n <td style="width: 5%">'.concat(i+1,"</td>\n ").concat(e.map(((e,r)=>{var o=Q(e.value[i]),s=n(t,r);return'<td colspan="'.concat(s,'" style="width: ').concat(s*(95/a),'%">\n ').concat(o.map((e=>'<div class="td-content">'.concat(e,"</div>"))).join(""),"\n </td>")})).join(""),"\n </tr>"))).join(""),"\n ")})).join(""),"\n </table>\n </td>\n </tr>")},V=e=>{var t=!0,a=0,r=[],i=()=>{t=!0,a=0},n=a=>{t||(e[a-1].isFullLine=!0,r.push(G(e[a-1])))};return e.forEach(((o,s)=>o.isDetailForm?(n(s),i(),r.push(W(o.value))):o.isBlankLine?(n(s),i(),r.push('<tr class="blank-line"><td colspan="26"></td></</tr>')):(o.isFullLine=(e=>{var{value:t,capitalValue:a,isBlock:r,isDefaultFullLine:i}=e;return!!(Array.isArray(t)&&t.length>1||a||r||i)||!!t&&P(t,10)>=152.5})(o)||s===e.length-1&&t,void(o.isFullLine?(n(s),o.isBlock?r.push(Y({title:o.label,isNormal:!0,isDesc:o.isDesc})):r.push(G(o)),i()):a?(i(),r.push((e=>"\n <tr>\n ".concat(e.map((e=>{var t=Q(e.label),a=E(e.value);return'\n <td colspan="5" class="'.concat(e.isLabelDisableBg?"":"with-bg",' with-bg-multi">\n ').concat(t.map((e=>'<div class="td-content">'.concat(e,"</div>"))).join(""),'\n </td>\n <td colspan="8"><div class="td-content">').concat(a,"</div></td>\n ")})).join(""),"\n </tr>\n "))([e[s-1],o]))):(t=!1,a++))))),r.join("")},H={[z.Approved]:{[I.zh]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#2EA121"/>\n <path d="M77.4813 122.355L66.651 105.351L36.0037 124.872L38.3502 128.556L65.0705 111.537L71.2077 121.172L50.0339 134.659L46.5011 129.112L42.6145 131.588L56.0235 152.64C58.2927 156.203 61.1277 156.901 64.569 154.709L86.9168 140.475C88.5252 139.337 89.5112 138.026 89.9156 136.516C90.1727 135.044 88.927 131.569 86.1637 126.158L81.625 127.342C84.0896 131.747 85.232 134.434 84.971 135.454C84.7136 136.301 84.1801 136.982 83.4514 137.447L63.2492 150.314C61.7108 151.294 60.4516 151.015 59.4717 149.476L52.3805 138.343L77.4813 122.355Z" fill="#2EA121"/>\n <path d="M77.4781 96.3495L76.4453 100.536C80.8964 101.001 84.556 101.744 87.4648 102.736L88.4754 98.3367C85.2722 97.4176 81.5978 96.7417 77.4781 96.3495ZM123.862 117.797L133.092 111.918L131.6 107.519C130.558 108.296 129.031 109.383 127.032 110.713C125.034 112.043 123.035 113.372 121.052 114.636C117.894 116.647 115.155 118.334 112.822 119.764C110.382 121.204 108.368 121.974 106.793 122.181C105.445 122.3 103.958 122.109 102.331 121.609C101.974 121.495 101.642 121.421 101.337 121.388L91.5893 106.085L82.5611 111.835L84.8303 115.398L90.2554 111.943L97.5529 123.4C96.4492 125.241 95.9425 128.466 96.0069 133.035L100.517 133.861C100.261 128.902 100.558 126.152 101.408 125.611C101.894 125.301 102.586 125.316 103.591 125.643C105.683 126.246 107.719 126.315 109.647 125.769C111.606 125.091 113.906 123.968 116.563 122.332C119.18 120.722 121.635 119.215 123.862 117.797ZM96.3061 89.9914L95.4314 93.6216C97.6586 93.455 99.7496 93.4321 101.653 93.4718L92.3413 99.4027L106.266 121.265L109.91 118.944L105.629 112.223L111.338 108.588L115.567 115.227L119.089 112.984L114.86 106.344L120.69 102.631L122.005 104.696C122.572 105.586 122.37 106.341 121.479 106.908L118.502 108.577L121.348 111.26L124.466 109.274C127.097 107.598 127.66 105.533 126.138 103.144L114.689 85.1686L106.552 90.3517C106.419 90.3223 106.312 90.3333 106.18 90.304C107.924 87.1446 109.351 83.8454 110.409 80.3256L108.682 77.613L86.4553 91.7698L88.4924 94.9681L96.3061 89.9914ZM102.671 89.9777C100.716 89.857 98.6658 89.8542 96.5085 89.8624L105.577 84.0863C104.79 86.0672 103.83 88.0445 102.671 89.9777ZM101.839 106.272L107.547 102.636L109.352 105.47L103.644 109.106L101.839 106.272ZM111.069 100.393L116.899 96.6795L118.704 99.5135L112.874 103.227L111.069 100.393ZM114.888 93.5217L109.058 97.2349L107.253 94.401L113.083 90.6877L114.888 93.5217ZM105.536 99.4783L99.8272 103.114L98.0221 100.28L103.731 96.6444L105.536 99.4783Z" fill="#2EA121"/>\n <path d="M117.801 70.6662L116.769 74.8524C121.179 75.3439 124.824 76.1523 127.733 77.1451L128.747 72.5724C125.503 71.6791 121.855 71.0437 117.801 70.6662ZM165.197 91.4691L173.78 86.0024L172.236 81.5227C171.275 82.2483 169.869 83.2576 167.978 84.5763C166.075 85.7883 164.238 87.0149 162.416 88.1753C159.097 90.2898 156.237 92.0544 153.823 93.5353C151.261 95.0531 149.192 95.9154 147.576 96.148C146.188 96.2921 144.62 96.1529 142.978 95.7191C142.621 95.6051 142.289 95.5317 141.943 95.5244L132.17 80.1805L122.98 86.034L125.301 89.6777L130.807 86.1707L138.079 97.5876C137.001 99.4692 136.479 102.761 136.555 107.436L141.065 108.263C140.772 103.157 141.084 100.34 141.934 99.7986C142.42 99.4891 143.193 99.452 144.198 99.7792C146.33 100.356 148.447 100.374 150.457 99.7767C152.415 99.0985 154.837 97.8974 157.615 96.1844C160.354 94.4972 162.89 92.9389 165.197 91.4691ZM160.542 86.7514C163.295 84.9979 163.835 82.7189 162.082 79.9659L151.252 62.9621L157 59.3004L154.602 55.5353L148.853 59.1969L144.882 52.9622L141.036 55.4119L145.007 61.6466L129.785 71.3424L132.183 75.1075L147.405 65.4118L157.643 81.4844C158.313 82.5371 158.107 83.4649 157.014 84.1611C155.354 85.2183 153.562 86.2462 151.637 87.2446L154.834 90.3873L160.542 86.7514ZM139.167 74.8138L137.357 78.5843C141.628 80.0184 145.233 81.4784 148.13 82.9903L149.841 78.8848C147.112 77.5496 143.559 76.1705 139.167 74.8138Z" fill="#2EA121"/>\n </svg>',[I.en]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#2EA121"/>\n <path d="M36.8069 131.708L42.2654 158.707L45.7877 156.463L44.2635 149.58L53.5853 143.643L59.1782 147.934L62.7308 145.671L40.572 129.31L36.8069 131.708ZM43.5249 146.209L40.8915 134.1L41.0129 134.023L50.8427 141.548L43.5249 146.209Z" fill="#2EA121"/>\n <path d="M62.1422 123.382C60.0167 124.736 58.8605 126.539 58.7538 128.784L57.5547 126.902L54.5487 128.816L68.3767 150.526L71.5952 148.476L66.2961 140.157C68.7318 141.166 70.8909 141.072 72.8342 139.834C75.0812 138.403 76.3504 136.442 76.5814 133.99C76.7986 131.717 76.1875 129.418 74.7176 127.11C73.1704 124.681 71.3254 123.124 69.1439 122.38C66.7635 121.591 64.4498 121.912 62.1422 123.382ZM63.3196 126.303C64.8985 125.297 66.4005 125.109 67.8945 125.779C69.1206 126.364 70.3056 127.487 71.408 129.218C72.5103 130.949 72.9969 132.517 72.9478 133.914C72.8462 135.43 72.0212 136.681 70.4423 137.687C69.2277 138.46 67.9466 138.593 66.6183 138.116C65.1106 137.625 63.8456 136.51 62.7819 134.84L62.6078 134.567C61.5828 132.958 61.0852 131.439 61.1343 130.042C61.1779 128.435 61.9228 127.192 63.3196 126.303Z" fill="#2EA121"/>\n <path d="M80.2894 111.824C78.1639 113.177 77.0078 114.981 76.901 117.226L75.7019 115.343L72.6959 117.258L86.5239 138.968L89.7425 136.918L84.4433 128.598C86.879 129.608 89.0381 129.513 90.9814 128.275C93.2284 126.844 94.4977 124.883 94.7286 122.431C94.9458 120.159 94.3347 117.859 92.8648 115.551C91.3176 113.122 89.4726 111.566 87.2911 110.821C84.9107 110.032 82.5971 110.354 80.2894 111.824ZM81.4668 114.744C83.0457 113.739 84.5477 113.55 86.0417 114.221C87.2678 114.805 88.4528 115.929 89.5552 117.659C90.6575 119.39 91.1441 120.958 91.095 122.355C90.9934 123.871 90.1684 125.122 88.5895 126.128C87.3749 126.902 86.0938 127.035 84.7656 126.558C83.2578 126.067 81.9928 124.952 80.9291 123.282L80.755 123.008C79.73 121.399 79.2324 119.881 79.2815 118.484C79.3251 116.877 80.0701 115.634 81.4668 114.744Z" fill="#2EA121"/>\n <path d="M97.8597 100.632C96.888 101.251 96.2119 102.066 95.87 103.138C95.5334 103.949 95.4234 104.916 95.5702 106.017L94.0617 103.649L90.8431 105.699L100.842 121.397L104.06 119.347L98.7613 111.027C97.891 109.661 97.5701 108.286 97.8484 106.914C98.1047 105.641 98.7338 104.685 99.7055 104.066C100.434 103.602 101.251 103.21 102.196 102.95L100.145 99.7314C99.4249 99.8062 98.6492 100.13 97.8597 100.632Z" fill="#2EA121"/>\n <path d="M109.096 93.4753C106.728 94.9838 105.318 96.9917 104.897 99.4796C104.456 101.937 105.015 104.356 106.542 106.754C108.051 109.123 110.006 110.652 112.37 111.28C114.833 111.931 117.268 111.532 119.637 110.024C122.005 108.515 123.396 106.477 123.848 103.97C124.277 101.562 123.719 99.1434 122.21 96.775C120.682 94.3762 118.696 92.8667 116.313 92.2078C113.881 91.5379 111.465 91.9668 109.096 93.4753ZM110.779 96.117C112.267 95.1693 113.788 95.0113 115.393 95.654C116.76 96.1919 117.956 97.2654 118.961 98.8444C119.948 100.393 120.395 101.9 120.324 103.397C120.209 105.092 119.442 106.434 117.954 107.382C116.466 108.33 114.926 108.457 113.371 107.826C112.004 107.288 110.858 106.225 109.852 104.646C108.846 103.067 108.349 101.549 108.439 100.083C108.505 98.3765 109.291 97.0646 110.779 96.117Z" fill="#2EA121"/>\n <path d="M118.588 88.0273L134.417 100.012L137.635 97.9622L133.467 78.5508L129.975 80.7748L133.473 94.9792L122.08 85.8032L118.588 88.0273Z" fill="#2EA121"/>\n <path d="M141.819 72.6331C139.511 74.103 138.162 76.0722 137.851 78.5324C137.46 81.001 138.03 83.3697 139.519 85.7078C141.163 88.2887 143.187 89.8589 145.612 90.4488C147.857 91.025 150.173 90.574 152.481 89.1042C154.576 87.7697 155.92 86.0601 156.532 84.0056C157.006 82.3377 156.912 80.648 156.348 78.9584L153.129 81.0084C153.284 82.1901 153.274 83.1786 152.998 83.9518C152.628 84.9128 151.891 85.7663 150.768 86.4818C149.493 87.2941 148.22 87.5072 146.988 87.1819C145.737 86.8262 144.588 85.8935 143.5 84.4526L155.403 76.8714C153.593 74.0973 151.563 72.3172 149.343 71.5119C146.885 70.6017 144.37 71.0086 141.819 72.6331ZM143.593 75.2168C146.143 73.5923 148.441 74.0497 150.485 76.589L142.013 81.9848C141.345 80.5328 141.162 79.2407 141.385 78.1168C141.65 76.9239 142.378 75.9904 143.593 75.2168Z" fill="#2EA121"/>\n <path d="M159.794 52.776L165.364 61.5208C162.909 60.4809 160.719 60.595 158.806 61.8134C156.559 63.2446 155.29 65.2054 155.059 67.6574C154.812 69.9492 155.453 72.2295 156.923 74.5372C158.451 76.936 160.315 78.5228 162.497 79.2674C164.847 80.0755 167.191 79.7349 169.498 78.2651C171.624 76.9113 172.761 75.0775 172.887 72.863L174.086 74.7456L177.092 72.831L163.012 50.726L159.794 52.776ZM161.198 63.9606C162.382 63.2063 163.644 63.0429 165.053 63.5117C166.5 64.0412 167.795 65.1369 168.878 66.8372L169.052 67.1105C170.058 68.6894 170.536 70.1775 170.506 71.605C170.413 73.2009 169.718 74.4547 168.321 75.3443C166.742 76.35 165.19 76.5274 163.746 75.868C162.49 75.3025 161.335 74.1599 160.233 72.4292C159.13 70.6984 158.613 69.1497 158.701 67.8133C158.764 66.2367 159.619 64.9662 161.198 63.9606Z" fill="#2EA121"/>\n </svg>\n ',[I.ja]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#2EA121"/>\n <path d="M48.7866 118.536L50.8173 121.724L66.475 111.751C65.4127 113.523 63.8835 115.891 61.923 118.833L64.0214 122.128L59.4516 125.038L61.4146 128.12L65.9844 125.21L67.6089 127.76L62.2952 131.145L64.2808 134.262L69.5945 130.878L71.219 133.428L64.63 137.625L66.6607 140.813L73.2497 136.616L75.303 139.84C75.8896 140.761 75.8641 141.425 75.2264 141.831C73.8803 142.688 72.5825 143.465 71.4038 144.116L74.2395 146.692L78.3488 144.075C80.4034 142.766 80.7667 140.991 79.3903 138.83L76.615 134.473L82.9206 130.457L80.8899 127.268L74.5844 131.285L72.9598 128.734L77.7421 125.688L75.7566 122.571L70.9743 125.617L69.3497 123.066L73.459 120.449L71.496 117.367L67.3867 119.984L66.2586 118.213C68.3446 114.843 70.1246 111.617 71.5407 108.525L69.51 105.336L48.7866 118.536ZM77.9164 110.638C78.1007 112.413 78.1368 114.033 78.0376 115.441C77.9669 116.034 77.8737 116.591 77.7805 117.148C76.5752 115.725 75.4665 114.141 74.406 112.476L71.3241 114.439C76.8972 123.189 83.8672 129.206 92.2212 132.55L93.083 128.665C88.3663 126.888 84.1614 124.039 80.4103 120.105C80.9669 118.555 81.3336 117.176 81.5457 115.945C81.7995 114.389 81.86 112.608 81.7626 110.579L77.9164 110.638ZM48.9138 130.306L50.9445 133.494L56.3999 130.02C59.9493 136.921 61.1309 143.389 60.0252 149.471L63.8558 150.716C65.3089 143.616 63.779 135.976 59.195 127.841L57.3449 124.936L48.9138 130.306Z" fill="#2EA121"/>\n <path d="M96.6509 93.9253C97.0836 96.6374 97.1716 99.1209 96.902 101.434L100.184 101.584C100.422 99.1422 100.314 96.4718 99.8623 93.5728L96.6509 93.9253ZM101.185 89.3943C104.112 95.9452 103.741 101.46 100.093 105.975L103.289 108.022C107.713 102.615 108.055 95.7245 104.267 87.4313L107.774 85.1976C109.398 87.7482 110.804 90.1893 112.038 92.4405C113.215 94.6787 113.264 96.241 112.198 97.0693C111.206 97.7011 110.076 98.2717 108.758 98.8617L111.549 101.367C112.312 101.08 113.208 100.609 114.27 99.9322C116.254 98.6687 116.968 96.8194 116.494 94.4326C115.997 92.0104 113.521 87.2633 109.031 80.2138L91.9918 91.0667L93.8871 94.0424L101.185 89.3943ZM103.992 110.612C105.617 114.257 106.801 117.836 107.518 121.463L111.27 121.413C110.518 117.808 109.157 113.795 107.21 109.409L103.992 110.612ZM112.747 101.45L110.584 104.073C112.597 105.28 114.721 106.816 116.989 108.657L118.927 105.68C116.91 104.077 114.819 102.67 112.747 101.45ZM120.175 98.9602L117.963 101.664C120.753 103.621 123.708 106.071 126.85 109.05L128.823 106.05C125.942 103.403 123.091 101.037 120.175 98.9602ZM123 114.888C124.133 114.166 124.803 113.341 125.031 112.449C125.263 111.405 124.537 109.328 122.832 106.181L119.353 107.052C120.556 109.175 121.146 110.492 121.168 111.075C121.181 111.565 120.975 111.945 120.515 112.238L117.504 114.156C116.689 114.675 116.006 114.463 115.442 113.577L110.23 105.394L107.148 107.357L112.789 116.213C114.346 118.657 116.233 119.198 118.43 117.799L123 114.888ZM80.6802 102.703L82.5756 105.679L93.4509 98.752L91.5556 95.7763L88.1903 97.9198C86.9786 96.7993 85.5222 95.6854 83.8466 94.462L81.2225 97.3783C82.5113 98.1508 83.7518 99.004 84.9666 99.9731L80.6802 102.703ZM85.3271 107.263L87.1096 110.061L95.7532 104.556L93.9708 101.757L85.3271 107.263ZM88.4634 112.187L90.2459 114.985L98.8895 109.48L97.107 106.681L88.4634 112.187ZM100.778 111.663L91.3905 117.642L99.2651 130.005L102.312 128.065L101.251 126.4L107.592 122.361L100.778 111.663ZM99.4686 123.602L96.1744 118.43L99.5398 116.286L102.834 121.458L99.4686 123.602Z" fill="#2EA121"/>\n <path d="M116.209 74.5962L115.302 78.4106C119.003 78.5927 122.07 79.0295 124.503 79.7211L125.329 75.8585C122.674 75.2089 119.63 74.8075 116.209 74.5962ZM121.299 83.0564L120.392 86.8707C124.09 87.2043 127.154 87.7925 129.654 88.5904L130.503 84.7632C127.793 83.9493 124.694 83.3836 121.299 83.0564ZM130.47 90.8095C131.76 95.9629 132.758 101.204 133.439 106.496L137.401 105.914C136.681 100.796 135.603 95.5072 134.167 90.0477L130.47 90.8095ZM124.561 72.4636L126.501 75.5101L129.937 73.3215C132.541 74.7507 135.144 75.6322 137.827 76.0145C136.099 78.4601 133.658 80.9608 130.599 83.5068L133.885 85.6959C137.376 82.5764 140.064 79.3701 141.902 76.1578C145.974 75.9049 150.338 74.4696 155.053 71.865L154.211 68.119C150.365 70.369 146.852 71.8103 143.647 72.4075C144.638 69.5853 145.058 66.7279 144.851 63.8224L148.606 61.4307L146.666 58.3842L137.207 64.4086C136.247 63.5263 135.342 62.8084 134.517 62.1387L131.442 64.8941C132.247 65.377 133.04 65.9178 133.842 66.5521L124.561 72.4636ZM133.196 71.2457L141.273 66.1013C141.274 68.2917 140.763 70.4599 139.749 72.699C137.327 72.6485 135.159 72.1372 133.196 71.2457ZM142.615 87.2064L152.463 80.9338L154.291 83.8032L144.089 90.3014C143.679 89.2676 143.176 88.2434 142.615 87.2064ZM145.089 93.7478L156.141 86.708L159.661 92.2343L162.92 90.1585L152.631 74.0049L149.372 76.0807L150.636 78.0644L140.823 84.3144L139.447 82.1535L136.188 84.2293L138.783 88.3032C141.197 92.0936 141.959 96.3389 141.162 101.029L145.192 101.649C145.61 98.9434 145.583 96.3213 145.089 93.7478Z" fill="#2EA121"/>\n </svg>'},[z.Rejected]:{[I.zh]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#D83931"/>\n <path d="M77.4813 122.355L66.6509 105.352L36.0036 124.872L38.3502 128.556L65.0704 111.537L71.2076 121.172L50.0338 134.659L46.5011 129.112L42.6145 131.588L56.0234 152.64C58.2927 156.203 61.1276 156.901 64.5689 154.709L86.9168 140.475C88.5251 139.337 89.5112 138.026 89.9155 136.516C90.1726 135.044 88.9269 131.569 86.1636 126.158L81.6249 127.342C84.0896 131.748 85.2319 134.435 84.9709 135.455C84.7136 136.301 84.18 136.983 83.4513 137.447L63.2492 150.314C61.7107 151.294 60.4515 151.015 59.4717 149.476L52.3804 138.343L77.4813 122.355Z" fill="#D83931"/>\n <path d="M124.573 101.58L115.264 86.9651L99.7178 96.8671L96.0046 91.0372L113.049 80.1811L110.702 76.497L89.7714 89.8286L111.974 124.686L133.674 110.865L131.327 107.181L113.514 118.527L109.027 111.482L124.573 101.58ZM102.013 100.47L113.875 92.9149L118.594 100.324L106.732 107.879L102.013 100.47ZM97.5749 105.118C96.5522 106.908 95.4374 108.642 94.3373 110.31L89.7731 103.144L94.3885 100.205L92.0419 96.5205L87.4266 99.4602L82.9655 92.4562L79.2813 94.8028L83.7424 101.807L78.3983 105.211L80.7449 108.895L86.089 105.491L91.5299 114.033C89.944 116.011 88.2808 117.867 86.4592 119.653L89.9063 122.921C91.312 121.286 92.6918 119.61 93.9796 117.879L99.9879 127.312C100.426 128.001 100.294 128.597 99.5652 129.061C98.4316 129.783 97.1802 130.41 95.822 131.047L98.993 134.149L103.001 131.596C105.309 130.127 105.735 128.205 104.239 125.857L96.7355 114.075C97.9018 112.422 98.9761 110.713 100.05 109.005L97.5749 105.118Z" fill="#D83931"/>\n <path d="M145.281 92.545C142.588 96.5368 139.122 100.566 134.842 104.658L137.674 108.032C141.645 104.08 144.964 100.088 147.576 96.1482L145.281 92.545ZM120.031 68.4493C121.547 73.6873 122.546 78.7415 123.045 83.5456C123.038 84.5175 122.821 85.3385 122.369 85.9683L125.518 88.8569C127.119 87.4389 128.679 86.0467 130.225 84.7207C130.624 89.1898 130.703 92.4405 130.446 94.539C130.284 95.268 129.949 95.9934 129.416 96.6747L132.62 99.4713C136.009 96.5726 139.251 93.085 142.427 88.9568L140.235 85.5155C138.344 88.086 136.338 90.3877 134.229 92.5274C134.478 88.2716 134.104 81.9655 133.095 73.5022L128.936 74.3875C129.238 76.4711 129.464 78.4332 129.718 80.2627L126.506 82.992C126.474 78.7436 125.81 73.5899 124.511 67.5308L120.031 68.4493ZM146.665 72.8267L150.61 79.021L146.116 81.8833L142.171 75.689L146.665 72.8267ZM154.011 76.8549L150.065 70.6607L154.681 67.721L158.626 73.9152L154.011 76.8549ZM150.034 65.7865C150.21 63.7395 150.18 61.3687 150.035 58.7291L148.23 55.8952L138.999 61.7745C138.837 60.626 138.715 59.4516 138.501 58.2221L134.327 59.7995C135.404 66.2268 135.34 71.8447 134.175 76.6273L138.236 77.9105L138.31 77.5792L150.017 95.9595C151.512 98.3076 153.501 98.7486 155.97 97.1756L168.885 88.9497C171.101 87.4247 171.98 85.499 171.493 83.305C171.201 81.9541 170.339 79.8855 169.013 77.0881L164.754 78.2642C166.147 81.0763 166.869 82.8357 166.946 83.583C167.006 84.5696 166.469 85.4239 165.427 86.2011L155.265 92.6735C154.172 93.3697 153.336 93.2191 152.718 92.2475L148.308 85.3245L164.462 75.0357L156.107 61.9185L150.034 65.7865ZM139.143 72.723C139.345 70.7166 139.403 68.5739 139.343 66.3356L146.023 62.0809C146.054 64.4517 145.955 66.6201 145.743 68.5198L139.143 72.723Z" fill="#D83931"/>\n </svg>',[I.en]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#D83931"/>\n <path d="M35.5823 133.763L49.3909 155.443L52.7006 153.335L46.9953 144.378L52.8556 140.645C54.1005 139.852 55.1965 139.496 56.2126 139.617C57.1984 139.757 58.1347 140.356 59.0297 141.493L61.0242 144.022C61.9193 145.159 62.8418 145.937 63.7835 146.276L67.3664 143.994C66.1348 143.669 65.0328 142.877 64.0604 141.618L61.4913 138.389C59.8946 136.418 58.0196 135.82 55.8056 136.632L55.7669 136.572C56.7577 135.514 57.2928 134.277 57.3723 132.86C57.4187 131.593 57.0842 130.397 56.3492 129.243C55.0341 127.179 53.3798 126.056 51.3475 125.813C49.434 125.624 47.3635 126.26 45.1773 127.652L35.5823 133.763ZM40.6906 134.479L46.5204 130.766C48.0386 129.799 49.3058 129.376 50.402 129.489C51.4181 129.61 52.3433 130.258 53.1169 131.473C53.8518 132.627 54.0483 133.739 53.7368 134.792C53.3948 135.863 52.5145 136.893 51.057 137.821L45.1967 141.554L40.6906 134.479Z" fill="#D83931"/>\n <path d="M66.491 121.887C64.1834 123.357 62.834 125.326 62.523 127.787C62.1319 130.255 62.7017 132.624 64.1908 134.962C65.8347 137.543 67.8592 139.113 70.2837 139.703C72.5287 140.279 74.845 139.828 77.1527 138.358C79.2478 137.024 80.5918 135.314 81.2039 133.26C81.6781 131.592 81.5836 129.902 81.0196 128.213L77.801 130.263C77.9561 131.444 77.9455 132.433 77.6697 133.206C77.3001 134.167 76.5632 135.021 75.4398 135.736C74.1645 136.548 72.8917 136.762 71.6601 136.436C70.4092 136.081 69.2602 135.148 68.1718 133.707L80.0745 126.126C78.2648 123.352 76.2347 121.572 74.0145 120.766C71.5568 119.856 69.0416 120.263 66.491 121.887ZM68.2647 124.471C70.8153 122.847 73.1127 123.304 75.1569 125.843L66.6853 131.239C66.0166 129.787 65.8338 128.495 66.057 127.371C66.3216 126.178 67.0501 125.245 68.2647 124.471Z" fill="#D83931"/>\n <path d="M75.6162 107.838C75.0089 108.225 74.6087 108.735 74.4544 109.431C74.2503 110.116 74.3666 110.768 74.7727 111.405C75.1595 112.013 75.7202 112.424 76.4464 112.559C77.1229 112.683 77.7745 112.567 78.3818 112.18C78.989 111.793 79.4002 111.232 79.6042 110.547C79.7586 109.852 79.6424 109.2 79.2362 108.562C78.8301 107.925 78.2888 107.544 77.6122 107.42C76.9164 107.266 76.2538 107.432 75.6162 107.838ZM78.0102 115.148L88.8985 132.243C89.7302 133.549 89.5484 134.603 88.3338 135.377L87.1192 136.151L88.8018 138.792L90.2896 137.845C93.4475 135.833 94.0898 133.29 92.1945 130.314L81.2288 113.098L78.0102 115.148Z" fill="#D83931"/>\n <path d="M91.9624 105.664C89.6547 107.134 88.3053 109.103 87.9943 111.563C87.6033 114.032 88.173 116.401 89.6622 118.739C91.3061 121.319 93.3306 122.89 95.755 123.48C98 124.056 100.316 123.605 102.624 122.135C104.719 120.8 106.063 119.091 106.675 117.036C107.149 115.368 107.055 113.679 106.491 111.989L103.272 114.039C103.427 115.221 103.417 116.209 103.141 116.983C102.771 117.944 102.035 118.797 100.911 119.513C99.6358 120.325 98.363 120.538 97.1315 120.213C95.8806 119.857 94.7316 118.924 93.6431 117.483L105.546 109.902C103.736 107.128 101.706 105.348 99.4858 104.543C97.0281 103.632 94.5129 104.039 91.9624 105.664ZM93.736 108.248C96.2866 106.623 98.584 107.08 100.628 109.62L92.1567 115.016C91.4879 113.564 91.3051 112.271 91.5283 111.148C91.7929 109.955 92.5215 109.021 93.736 108.248Z" fill="#D83931"/>\n <path d="M109.435 94.5347C107.006 96.0819 105.646 98.1008 105.324 100.611C105.016 102.941 105.616 105.291 107.124 107.659C108.671 110.088 110.547 111.625 112.819 112.312C115.161 113.04 117.516 112.65 119.915 111.122C121.919 109.845 123.23 108.285 123.806 106.509C124.363 104.703 124.177 102.602 123.207 100.275L120.019 102.306C121.224 104.867 120.661 106.933 118.263 108.461C116.866 109.35 115.505 109.492 114.188 108.965C112.79 108.446 111.536 107.282 110.415 105.521C109.293 103.76 108.768 102.131 108.938 100.656C109.059 99.1707 109.782 98.0274 111.118 97.1764C112.211 96.4802 113.246 96.1622 114.243 96.2529C115.221 96.3133 116.149 96.832 117.038 97.7593L120.226 95.7287C118.685 93.9788 116.967 93.0241 115.134 92.8261C113.339 92.6888 111.439 93.2583 109.435 94.5347Z" fill="#D83931"/>\n <path d="M121.191 80.5166L118.824 83.9027L121.202 87.6374L118.288 89.4941L119.989 92.1661L122.904 90.3095L128.706 99.4186C129.499 100.664 130.372 101.431 131.405 101.712C132.457 102.024 133.691 101.75 135.027 100.899L137.608 99.2549L135.906 96.5829L133.841 97.898C133.447 98.1494 133.096 98.202 132.798 98.1358C132.48 98.0393 132.196 97.7937 131.925 97.3686L126.123 88.2594L129.706 85.9773L128.004 83.3053L124.421 85.5874L121.191 80.5166Z" fill="#D83931"/>\n <path d="M136.975 76.9941C134.667 78.4639 133.318 80.4331 133.007 82.8934C132.615 85.3619 133.185 87.7307 134.674 90.0687C136.318 92.6497 138.343 94.2199 140.767 94.8098C143.012 95.3859 145.329 94.9349 147.636 93.4651C149.731 92.1306 151.075 90.421 151.687 88.3665C152.162 86.6986 152.067 85.0089 151.503 83.3193L148.285 85.3694C148.44 86.551 148.429 87.5395 148.153 88.3127C147.784 89.2737 147.047 90.1272 145.923 90.8428C144.648 91.655 143.375 91.8682 142.144 91.5429C140.893 91.1872 139.744 90.2544 138.655 88.8136L150.558 81.2324C148.748 78.4582 146.718 76.6781 144.498 75.8728C142.04 74.9626 139.525 75.3695 136.975 76.9941ZM138.748 79.5777C141.299 77.9532 143.596 78.4106 145.64 80.95L137.169 86.3458C136.5 84.8937 136.317 83.6016 136.541 82.4778C136.805 81.2849 137.534 80.3513 138.748 79.5777Z" fill="#D83931"/>\n <path d="M154.949 57.137L160.519 65.8818C158.064 64.8419 155.875 64.956 153.962 66.1744C151.715 67.6055 150.446 69.5664 150.215 72.0183C149.967 74.3101 150.609 76.5905 152.078 78.8982C153.606 81.2969 155.471 82.8838 157.652 83.6284C160.002 84.4364 162.346 84.0959 164.654 82.626C166.779 81.2722 167.916 79.4384 168.042 77.224L169.241 79.1066L172.247 77.1919L158.168 55.0869L154.949 57.137ZM156.354 68.3215C157.538 67.5673 158.8 67.4038 160.208 67.8726C161.655 68.4022 162.95 69.4978 164.033 71.1982L164.208 71.4715C165.213 73.0504 165.691 74.5384 165.662 75.9659C165.568 77.5618 164.873 78.8157 163.476 79.7053C161.897 80.711 160.346 80.8883 158.902 80.229C157.645 79.6635 156.49 78.5209 155.388 76.7901C154.286 75.0594 153.769 73.5106 153.857 72.1742C153.919 70.5976 154.775 69.3272 156.354 68.3215Z" fill="#D83931"/>\n </svg>\n ',[I.ja]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#D83931"/>\n <path d="M46.3381 125.324L48.3914 128.548L54.7324 124.509L57.9363 129.539L50.568 134.232L52.6438 137.491L58.7369 133.61C60.2312 140.726 60.7517 145.374 60.263 147.577C60.1535 147.796 59.9732 148.06 59.6996 148.334L62.3968 150.849C66.7375 147.188 70.6595 143.495 74.0919 139.815C75.123 140.652 76.2218 141.595 77.3432 142.574L79.4261 139.355C75.7526 136.168 72.0019 133.328 68.232 130.849L65.8527 133.759C67.5539 134.866 69.3455 136.115 71.2144 137.564C68.9379 140.01 66.5584 142.372 64.0532 144.615C63.9295 141.607 63.2642 137.2 62.0314 131.512L70.675 126.007L68.5991 122.748L61.3371 127.373L58.1331 122.343L64.4033 118.349L62.35 115.125L56.0799 119.119L53.0113 114.301L49.6105 116.467L52.6791 121.285L46.3381 125.324ZM87.9851 131.762C90.3231 130.273 90.7153 128.231 89.1133 125.716L74.9211 103.434L62.9475 111.06L82.2842 141.419L85.5787 139.32L68.2502 112.114L73.7055 108.64L85.4158 127.025C86.0025 127.946 85.8578 128.735 84.9368 129.322L82.1897 130.872L85.1157 133.59L87.9851 131.762Z" fill="#D83931"/>\n <path d="M79.1427 99.8982L81.2411 103.193L94.4899 94.754L112.179 122.527L115.545 120.383L103.09 100.829C107.036 100.457 112.177 100.32 118.49 100.381L118.569 96.0489C112.391 96.1995 106.464 96.5885 100.811 97.2512L97.8552 92.6105L112.946 82.9986L110.848 79.7041L79.1427 99.8982Z" fill="#D83931"/>\n <path d="M116.209 74.5963L115.302 78.4106C119.003 78.5927 122.07 79.0296 124.503 79.7211L125.329 75.8585C122.674 75.2089 119.63 74.8075 116.209 74.5963ZM121.299 83.0564L120.392 86.8708C124.09 87.2043 127.154 87.7925 129.654 88.5904L130.503 84.7632C127.793 83.9493 124.694 83.3836 121.299 83.0564ZM130.47 90.8095C131.76 95.963 132.758 101.204 133.44 106.496L137.402 105.914C136.681 100.796 135.603 95.5072 134.167 90.0478L130.47 90.8095ZM124.561 72.4636L126.501 75.5101L129.938 73.3215C132.541 74.7507 135.144 75.6323 137.827 76.0145C136.099 78.4601 133.658 80.9608 130.599 83.5069L133.885 85.696C137.376 82.5764 140.064 79.3701 141.902 76.1578C145.974 75.9049 150.338 74.4697 155.053 71.865L154.211 68.119C150.365 70.369 146.852 71.8103 143.647 72.4076C144.638 69.5853 145.059 66.7279 144.851 63.8224L148.606 61.4307L146.666 58.3842L137.207 64.4086C136.247 63.5263 135.342 62.8084 134.517 62.1387L131.442 64.8941C132.247 65.377 133.04 65.9178 133.842 66.5521L124.561 72.4636ZM133.197 71.2457L141.273 66.1013C141.274 68.2918 140.763 70.4599 139.749 72.6991C137.327 72.6485 135.159 72.1372 133.197 71.2457ZM142.616 87.2064L152.464 80.9339L154.291 83.8033L144.089 90.3014C143.679 89.2676 143.176 88.2434 142.616 87.2064ZM145.089 93.7478L156.141 86.7081L159.661 92.2343L162.92 90.1585L152.632 74.0049L149.372 76.0807L150.636 78.0645L140.823 84.3145L139.447 82.1536L136.188 84.2294L138.783 88.3032C141.197 92.0936 141.959 96.3389 141.162 101.029L145.192 101.649C145.61 98.9434 145.583 96.3214 145.089 93.7478Z" fill="#D83931"/>\n </svg>\n '},[z.Processing]:{[I.zh]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#3370FF"/>\n <path d="M55.724 140.823L63.8616 135.64L66.2597 139.405L58.1222 144.588L55.724 140.823ZM68.5031 142.927L73.6088 150.943L77.4145 148.519L72.3087 140.503L80.5677 135.242L81.8828 137.307L85.648 134.909L72.8579 114.828L60.8338 122.487L58.5903 118.965L54.7847 121.389L57.0281 124.911L45.1255 132.492L57.9929 152.694L61.758 150.296L60.3656 148.11L68.5031 142.927ZM70.0653 136.981L67.6672 133.216L75.9262 127.955L78.3243 131.72L70.0653 136.981ZM73.7859 124.595L65.5269 129.855L63.103 126.05L71.362 120.789L73.7859 124.595ZM59.2974 128.474L61.7213 132.279L53.5837 137.462L51.1598 133.657L59.2974 128.474ZM70.4312 104.139L55.0468 113.937C54.0009 113.01 52.966 112.19 52.0491 111.465L48.3726 114.717C49.2674 115.228 50.1475 115.806 51.0792 116.464L35.9377 126.109L40.9403 133.963L44.6649 131.59L41.9058 127.258L68.9499 110.033L71.5802 114.163L75.3048 111.79L70.4312 104.139Z" fill="#3370FF"/>\n <path d="M96.582 108.027C95.7578 109.234 94.8932 110.468 93.977 111.621L88.9486 103.726L92.6328 101.379L90.2862 97.6953L86.602 100.042L82.0378 92.876L78.3132 95.2483L82.8774 102.414L78.6264 105.122L80.973 108.806L85.224 106.098L91.0001 115.167C89.7049 116.618 88.358 117.988 86.9854 119.318L90.2226 122.435C91.2714 121.311 92.3348 120.122 93.3725 118.892L98.7876 127.394C99.4065 128.365 99.2301 129.161 98.299 129.754C97.3273 130.373 96.3041 130.91 95.1888 131.393L98.3967 134.643L101.878 132.425C104.388 130.826 104.833 128.665 103.131 125.993L96.2977 115.264C97.1477 114.097 98.0381 112.904 98.9027 111.67L96.582 108.027ZM100.755 102.694L105.937 99.3935L103.564 95.6688L98.3822 98.9695L91.0588 87.4717L87.2532 89.8956L106.928 120.786C107.65 121.919 107.573 123.05 106.712 124.11L109.953 127.054C113.111 123.791 115.786 120.664 117.912 117.66L114.981 114.576C113.962 116.192 112.744 117.765 111.353 119.334L100.755 102.694ZM128.606 115.06C130.185 114.054 131.035 112.887 131.248 111.613C131.49 110.206 130.278 107.052 127.636 102.19L123.432 103.274C125.529 106.833 126.601 109.053 126.609 109.958C126.671 110.772 126.351 111.431 125.623 111.895L123.963 112.952C123.072 113.52 122.317 113.317 121.698 112.346L111.255 95.9492C113.36 93.3566 115.435 90.2707 117.44 86.7173L113.227 85.0182C112.028 87.603 110.527 89.9818 108.831 92.1435L101.508 80.6457L97.702 83.0696L118.434 115.62C120.214 118.413 122.412 119.005 125.043 117.329L128.606 115.06Z" fill="#3370FF"/>\n <path d="M130.396 61.8476L134.857 68.8516L120.484 78.0058L132.939 97.5602L136.785 95.1105L135.315 92.8028L145.842 86.0983L154.48 99.6609L158.448 97.1338L149.809 83.5713L160.376 76.841L161.846 79.1486L165.692 76.6989L153.237 57.1445L138.824 66.3245L134.363 59.3206L130.396 61.8476ZM132.917 89.0377L126.729 79.3212L137.255 72.6167L143.444 82.3332L132.917 89.0377ZM147.411 79.8061L141.222 70.0897L151.789 63.3594L157.978 73.0759L147.411 79.8061Z" fill="#3370FF"/>\n </svg>',[I.en]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#3370FF"/>\n <path d="M24.6939 139.705L37.7354 160.18L40.8612 158.189L35.7834 150.217L41.0887 146.838C45.9924 143.715 47.1253 140.05 44.4585 135.863C41.8101 131.705 38.0574 131.193 33.1823 134.298L24.6939 139.705ZM29.5184 140.381L34.6229 137.13C36.1428 136.161 37.4438 135.736 38.5261 135.853C39.5718 135.912 40.5291 136.593 41.3327 137.854C42.1364 139.116 42.3481 140.271 42.0252 141.283C41.6736 142.313 40.7378 143.312 39.1892 144.299L34.0847 147.55L29.5184 140.381Z" fill="#3370FF"/>\n <path d="M53.3395 128.836C52.4218 129.421 51.7833 130.19 51.4603 131.202C51.1425 131.969 51.0386 132.882 51.1772 133.922L49.7525 131.685L46.7127 133.621L56.1559 148.447L59.1957 146.511L54.191 138.654C53.369 137.363 53.066 136.065 53.3289 134.769C53.5709 133.567 54.1651 132.664 55.0827 132.08C55.771 131.641 56.5427 131.271 57.4344 131.025L55.4983 127.985C54.8177 128.056 54.0851 128.361 53.3395 128.836Z" fill="#3370FF"/>\n <path d="M63.952 122.077C61.7152 123.501 60.3835 125.398 59.9854 127.747C59.5692 130.069 60.0968 132.353 61.5398 134.618C62.9645 136.855 64.8113 138.299 67.0437 138.892C69.37 139.507 71.6699 139.13 73.9067 137.706C76.1435 136.281 77.457 134.356 77.8837 131.988C78.2896 129.714 77.7619 127.43 76.3372 125.193C74.8942 122.928 73.0187 121.502 70.768 120.88C68.4704 120.247 66.1888 120.652 63.952 122.077ZM65.5411 124.572C66.9463 123.677 68.3831 123.527 69.8984 124.134C71.1894 124.642 72.3189 125.656 73.2687 127.148C74.2003 128.61 74.6233 130.034 74.5561 131.447C74.4472 133.048 73.7228 134.316 72.3176 135.211C70.9124 136.106 69.4574 136.226 67.989 135.63C66.698 135.122 65.6154 134.118 64.6656 132.627C63.7158 131.136 63.2458 129.702 63.3313 128.317C63.3933 126.706 64.1359 125.467 65.5411 124.572Z" fill="#3370FF"/>\n <path d="M80.8336 111.324C78.5395 112.786 77.2547 114.692 76.9505 117.063C76.6594 119.264 77.2261 121.483 78.6508 123.72C80.1121 126.014 81.8833 127.465 84.0296 128.114C86.2412 128.801 88.4654 128.433 90.7309 126.99C92.6236 125.784 93.8617 124.31 94.406 122.634C94.9321 120.928 94.7565 118.944 93.8403 116.746L90.8293 118.663C91.9672 121.083 91.436 123.034 89.1705 124.477C87.8514 125.317 86.5658 125.45 85.3218 124.953C84.0021 124.463 82.8178 123.363 81.7584 121.7C80.699 120.037 80.2029 118.498 80.364 117.106C80.4782 115.703 81.1609 114.623 82.4227 113.819C83.4551 113.162 84.4329 112.861 85.3743 112.947C86.2974 113.004 87.1738 113.494 88.0138 114.37L91.0249 112.452C89.5692 110.799 87.9468 109.898 86.2152 109.711C84.5202 109.581 82.7263 110.119 80.8336 111.324Z" fill="#3370FF"/>\n <path d="M96.509 101.34C94.3296 102.728 93.0552 104.588 92.7614 106.912C92.3921 109.243 92.9302 111.48 94.3366 113.688C95.8892 116.126 97.8012 117.609 100.091 118.166C102.211 118.71 104.399 118.284 106.578 116.896C108.557 115.636 109.826 114.021 110.405 112.081C110.852 110.506 110.763 108.91 110.23 107.314L107.191 109.25C107.337 110.366 107.327 111.3 107.067 112.03C106.718 112.938 106.022 113.744 104.961 114.419C103.756 115.187 102.554 115.388 101.391 115.081C100.21 114.745 99.1244 113.864 98.0964 112.503L109.338 105.343C107.629 102.723 105.711 101.042 103.615 100.281C101.293 99.4215 98.9179 99.8058 96.509 101.34ZM98.1841 103.78C100.593 102.246 102.763 102.678 104.693 105.076L96.6925 110.172C96.0609 108.801 95.8883 107.581 96.0991 106.519C96.349 105.393 97.0371 104.511 98.1841 103.78Z" fill="#3370FF"/>\n <path d="M111.95 91.5051C110.172 92.6375 108.947 93.9418 108.322 95.4285C107.678 96.8864 107.809 98.2945 108.668 99.6424C109.472 100.904 110.684 101.543 112.288 101.529C113.269 101.549 114.776 101.194 116.781 100.481C118.52 99.8574 119.706 99.5049 120.311 99.442C121.427 99.2956 122.251 99.5769 122.708 100.294C123.548 101.613 122.782 103.068 120.431 104.566C119.283 105.297 118.353 105.607 117.599 105.563C116.827 105.491 115.998 105.011 115.186 104.117L112.204 106.017C114.74 109.239 118.034 109.6 122.106 107.006C126.493 104.212 127.697 101.228 125.706 98.1021C124.866 96.783 123.606 96.1342 121.955 96.1374C120.823 96.1327 119.251 96.4489 117.304 97.125C115.575 97.702 114.417 98.0363 113.755 98.1357C112.714 98.2743 112.039 98.0998 111.71 97.5837C111.345 97.0101 111.311 96.3869 111.673 95.7531C111.949 95.1741 112.564 94.621 113.482 94.0365C114.514 93.3789 115.427 93.0396 116.162 93.0549C116.851 93.0598 117.542 93.3855 118.283 94.0424L121.237 92.161C118.901 89.2544 115.793 89.0575 111.95 91.5051Z" fill="#3370FF"/>\n <path d="M126.849 82.0156C125.071 83.1481 123.846 84.4524 123.221 85.939C122.577 87.397 122.708 88.8051 123.567 90.1529C124.37 91.4147 125.583 92.0531 127.187 92.0394C128.167 92.0599 129.674 91.7046 131.679 90.9919C133.418 90.3679 134.605 90.0154 135.21 89.9526C136.326 89.8061 137.15 90.0874 137.607 90.8043C138.447 92.1235 137.681 93.5789 135.329 95.0766C134.182 95.8073 133.251 96.1179 132.498 96.0739C131.726 96.0012 130.896 95.5217 130.085 94.6276L127.103 96.5272C129.639 99.7493 132.932 100.11 137.004 97.5167C141.392 94.7221 142.595 91.7385 140.605 88.6127C139.764 87.2935 138.505 86.6447 136.854 86.648C135.722 86.6432 134.15 86.9594 132.202 87.6356C130.474 88.2126 129.316 88.5468 128.654 88.6462C127.613 88.7848 126.938 88.6104 126.609 88.0942C126.244 87.5207 126.209 86.8974 126.572 86.2636C126.848 85.6846 127.463 85.1315 128.381 84.547C129.413 83.8895 130.326 83.5501 131.061 83.5655C131.749 83.5704 132.441 83.8961 133.181 84.5529L136.135 82.6716C133.8 79.765 130.692 79.568 126.849 82.0156Z" fill="#3370FF"/>\n <path d="M134.838 69.1468C134.236 69.5304 133.858 70.0129 133.713 70.6701C133.549 71.2987 133.658 71.914 134.042 72.5162C134.407 73.0898 134.937 73.4781 135.594 73.6239C136.233 73.741 136.848 73.6312 137.45 73.2476C138.024 72.8823 138.412 72.3528 138.576 71.7243C138.722 71.0671 138.641 70.4334 138.257 69.8312C137.874 69.229 137.363 68.8694 136.724 68.7523C136.066 68.6065 135.441 68.7632 134.838 69.1468ZM137.099 76.051L146.543 90.8771L149.582 88.9409L140.139 74.1149L137.099 76.051Z" fill="#3370FF"/>\n <path d="M151.512 66.3071C150.594 66.8916 149.872 67.5933 149.382 68.4697C148.874 69.3174 148.561 70.2824 148.463 71.3933L147.294 69.558L144.254 71.4941L153.697 86.3201L156.737 84.384L151.056 75.4654C150.404 74.1879 150.231 72.9676 150.481 71.841C150.71 70.8082 151.302 70.0283 152.162 69.4803C154.456 68.0191 156.436 68.532 158.043 71.0556L163.705 79.9455L166.745 78.0094L160.919 68.8614C158.325 64.7892 155.182 63.9691 151.512 66.3071Z" fill="#3370FF"/>\n <path d="M166.687 56.6415C164.679 57.9201 163.483 59.6495 163.145 61.8401C162.76 64.0202 163.29 66.1818 164.715 68.4186C166.14 70.6554 167.874 72.0498 169.995 72.594C172.086 73.1564 174.159 72.8035 176.167 71.5249C178.117 70.2829 179.078 68.5014 179.127 66.1728L180.588 68.4669C182.36 71.2486 181.964 73.4757 179.383 75.1196C178.179 75.8868 177.162 76.2523 176.398 76.2552C175.587 76.2477 174.841 75.836 174.121 75.0852L171.081 77.0214C172.409 78.4733 173.836 79.2576 175.437 79.3665C177.02 79.4467 178.853 78.8436 180.918 77.5285C185.506 74.606 186.331 70.775 183.335 66.072L174.513 52.2209L171.473 54.1571L172.734 56.1358C170.621 55.224 168.637 55.3995 166.687 56.6415ZM168.716 58.8155C170.007 57.9936 171.285 57.7844 172.615 58.2272C173.869 58.6778 175.027 59.6735 176.014 61.222C176.982 62.7419 177.376 64.1838 177.254 65.5112C177.056 66.8464 176.327 67.9158 175.036 68.7378C173.545 69.6876 172.155 69.8472 170.875 69.2923C169.771 68.826 168.754 67.8615 167.841 66.4277C166.836 64.8504 166.395 63.3981 166.592 62.0629C166.696 60.7069 167.426 59.6375 168.716 58.8155Z" fill="#3370FF"/>\n </svg>\n ',[I.ja]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#3370FF"/>\n <path d="M44.201 121.204L46.2768 124.463L49.5713 122.364C51.8606 127.678 53.09 132.97 53.2597 138.24L56.8134 139.911C56.8355 138.851 56.7996 137.778 56.7766 136.648L65.1701 149.826L68.0749 147.975L66.7663 145.921L69.6357 144.093L70.7187 145.794L73.6944 143.898L66.587 132.74L69.6766 133.759C69.9081 132.716 70.0816 131.659 70.2325 130.567L78.2876 143.214L81.4404 141.205L80.7409 140.107L94.8399 131.127L92.9446 128.151L86.8162 132.055L84.9434 129.115L89.6195 126.136L87.7918 123.267L83.1158 126.245L81.401 123.553L85.9354 120.665L84.1077 117.795L79.5734 120.684L77.9037 118.062L83.1111 114.745L81.261 111.841L76.2661 115.022C75.1801 114.021 73.8976 112.945 72.3832 111.818L70.0102 114.425C71.1122 115.217 72.2141 116.009 73.2904 116.917L70.1022 118.948C69.7985 116.751 69.3208 114.516 68.695 112.126L75.2485 107.952L77.7079 111.813L80.7898 109.85L76.4577 103.048L67.637 108.667C67.2403 107.575 66.8565 106.425 66.4147 105.262L62.9364 106.681C63.433 108.008 63.8942 109.358 64.3779 110.742L57.2221 115.3L61.983 122.775L65.0649 120.812L62.1768 116.277L65.365 114.247C67.004 120.573 67.2867 126.567 66.2711 132.244L61.5779 124.875L55.5912 128.688C54.9265 125.925 53.9944 123.132 52.795 120.311L57.3647 117.4L55.2889 114.141L44.201 121.204ZM78.8456 137.132L76.9729 134.191L81.7906 131.123L83.6634 134.063L78.8456 137.132ZM79.963 128.253L75.1453 131.322L73.4305 128.63L78.2482 125.561L79.963 128.253ZM76.4206 122.692L71.6028 125.76L70.5875 124.166C70.539 123.699 70.513 123.267 70.5 122.778L74.7509 120.07L76.4206 122.692ZM64.8258 142.874L57.6733 131.645L60.5427 129.817L67.6952 141.047L64.8258 142.874Z" fill="#3370FF"/>\n <path d="M96.6509 92.9255C97.0836 95.6376 97.1716 98.1212 96.9019 100.434L100.184 100.584C100.422 98.1424 100.314 95.472 99.8623 92.5731L96.6509 92.9255ZM101.185 88.3946C104.112 94.9454 103.741 100.46 100.093 104.975L103.289 107.022C107.713 101.615 108.055 94.7248 104.266 86.4316L107.774 84.1978C109.398 86.7484 110.804 89.1895 112.038 91.4407C113.215 93.679 113.264 95.2413 112.198 96.0696C111.206 96.7014 110.076 97.272 108.758 97.862L111.549 100.367C112.312 100.08 113.208 99.6093 114.27 98.9324C116.254 97.6689 116.968 95.8196 116.494 93.4329C115.997 91.0107 113.521 86.2636 109.031 79.214L91.9918 90.0669L93.8871 93.0426L101.185 88.3946ZM103.992 109.612C105.617 113.258 106.801 116.836 107.518 120.463L111.27 120.413C110.518 116.809 109.157 112.796 107.21 108.409L103.992 109.612ZM112.747 100.45L110.584 103.073C112.597 104.28 114.721 105.816 116.989 107.658L118.927 104.68C116.91 103.077 114.819 101.67 112.747 100.45ZM120.174 97.9604L117.963 100.664C120.753 102.621 123.708 105.072 126.85 108.05L128.823 105.05C125.942 102.403 123.091 100.037 120.174 97.9604ZM123 113.888C124.133 113.166 124.803 112.341 125.031 111.449C125.263 110.405 124.537 108.328 122.832 105.181L119.353 106.053C120.556 108.175 121.146 109.492 121.168 110.075C121.181 110.565 120.975 110.945 120.515 111.238L117.504 113.156C116.689 113.675 116.006 113.463 115.442 112.577L110.23 104.394L107.148 106.357L112.789 115.213C114.346 117.658 116.233 118.198 118.43 116.799L123 113.888ZM80.6802 101.703L82.5755 104.679L93.4509 97.7522L91.5556 94.7766L88.1902 96.9201C86.9786 95.7996 85.5221 94.6856 83.8466 93.4622L81.2225 96.3785C82.5113 97.1511 83.7518 98.0042 84.9666 98.9733L80.6802 101.703ZM85.3271 106.263L87.1096 109.061L95.7532 103.556L93.9707 100.757L85.3271 106.263ZM88.4634 111.187L90.2459 113.985L98.8895 108.48L97.107 105.681L88.4634 111.187ZM100.778 110.663L91.3905 116.643L99.2651 129.006L102.312 127.065L101.251 125.4L107.592 121.362L100.778 110.663ZM99.4686 122.602L96.1744 117.43L99.5397 115.286L102.834 120.458L99.4686 122.602Z" fill="#3370FF"/>\n <path d="M127.573 65.5613L131.477 71.6898L118.901 79.6997L129.799 96.8098L133.164 94.6663L131.878 92.6471L141.089 86.7806L148.647 98.6479L152.119 96.4367L144.56 84.5695L153.806 78.6805L155.092 80.6997L158.458 78.5562L147.56 61.4461L134.948 69.4786L131.045 63.3501L127.573 65.5613ZM129.78 89.3526L124.365 80.8507L133.575 74.9842L138.99 83.4862L129.78 89.3526ZM142.462 81.275L137.047 72.7731L146.293 66.8841L151.708 75.386L142.462 81.275Z" fill="#3370FF"/>\n </svg>\n '},[z.Revoked]:{[I.zh]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#D83931"/>\n <path d="M77.4813 122.355L66.651 105.351L36.0036 124.872L38.3502 128.556L65.0705 111.537L71.2076 121.172L50.0338 134.659L46.5011 129.112L42.6145 131.588L56.0235 152.64C58.2927 156.203 61.1277 156.901 64.5689 154.709L86.9168 140.475C88.5251 139.337 89.5112 138.026 89.9156 136.516C90.1727 135.044 88.9269 131.569 86.1637 126.158L81.6249 127.342C84.0896 131.747 85.2319 134.434 84.971 135.454C84.7136 136.301 84.1801 136.982 83.4513 137.447L63.2492 150.314C61.7107 151.294 60.4516 151.015 59.4717 149.476L52.3804 138.343L77.4813 122.355Z" fill="#D83931"/>\n <path d="M104.201 113.645L109.788 110.087L111.439 112.678L105.852 116.236L104.201 113.645ZM107.983 107.253L102.396 110.811L100.772 108.261L106.359 104.702L107.983 107.253ZM107.657 119.07L113.244 115.512L114.739 117.86C115.229 118.629 115.001 119.343 114.03 119.962L111.74 121.193L114.679 123.93L117.068 122.409C119.537 120.836 120.019 118.822 118.523 116.474L107.899 99.794L110.465 100.607C110.469 99.8077 110.446 98.9683 110.383 98.1548C113.459 101.375 116.504 104.101 119.454 106.32C120.067 110.141 119.98 113.668 119.168 116.86L123.122 118.78C123.85 115.813 124.062 112.661 123.759 109.326C126.731 111.133 129.555 112.35 132.287 112.886L132.421 108.362C129.45 107.807 126.283 106.409 122.947 104.209C121.656 98.43 118.911 92.1543 114.818 85.371L116.154 84.5201L113.859 80.9169L107.341 85.0685C106.571 83.0551 105.708 80.9865 104.743 78.7559L100.915 80.3405C103.634 85.9499 105.392 91.0332 106.175 95.6568C104.26 94.2586 102.315 92.993 100.261 91.9115L98.1559 94.5041C99.025 94.9749 99.905 95.5526 100.877 96.1854C99.4935 97.4082 97.9736 98.7746 96.3065 100.178C96.3204 98.2341 96.1907 96.1541 95.9468 93.8055L103.315 89.1124L101.097 85.6306L95.3891 89.2665C94.1075 88.1479 92.9437 87.1249 91.8573 86.2234L88.479 89.2288C89.5837 89.891 90.659 90.6858 91.7859 91.5615L86.1179 95.1716L88.3356 98.6533L92.3436 96.1005C92.5837 97.9963 92.7389 99.4909 92.7946 100.651C92.7657 102.035 92.4127 102.999 91.695 103.57L94.1148 106.297C98.5275 102.861 101.7 100.157 103.606 98.1465L104.799 99.0369L106.341 96.6323C106.481 97.5673 106.555 98.4877 106.603 99.3675L107.476 99.6653L95.4921 107.298L108.669 127.986L111.989 125.872L107.657 119.07ZM109.461 91.9703C109.239 91.0869 109.018 90.2034 108.745 89.239L111.66 87.3824C114.427 91.9941 116.494 96.3116 117.913 100.416C115.191 98.1086 112.374 95.2935 109.461 91.9703ZM100.859 132.79C103.288 131.243 103.666 129.067 101.964 126.395L94.7185 115.018C95.2997 113.965 95.8404 112.938 96.3701 111.804L93.8946 107.917C93.3649 109.051 92.85 110.119 92.2687 111.172L87.9108 104.33L90.4209 102.732L88.0743 99.0474L85.5643 100.646L81.0516 93.5612L77.3675 95.9078L81.8801 102.993L78.3174 105.262L80.664 108.946L84.2267 106.677L89.6934 115.26C88.6374 116.729 87.4894 118.143 86.2898 119.476L89.7369 122.744C90.5722 121.643 91.3963 120.435 92.2205 119.227L97.6872 127.81C98.3834 128.903 98.2991 129.754 97.4894 130.269C96.6797 130.785 95.7779 131.246 94.7841 131.651L97.863 134.698L100.859 132.79Z" fill="#D83931"/>\n <path d="M138.39 57.1543L145.326 68.0449L137.756 72.8669L154.44 99.0609L158.286 96.6112L152.767 87.9474L163.941 80.8303L165.927 83.9477C166.752 85.2432 166.705 86.2409 165.773 86.834L161.96 88.9781L165.319 92.0176L169.246 89.5163C171.918 87.8144 172.274 85.425 170.314 82.3481L156.622 60.8504L149.092 65.6467L142.155 54.7562L138.39 57.1543ZM148.358 81.0244L159.532 73.9073L161.878 77.5915L150.704 84.7085L148.358 81.0244ZM157.443 70.628L146.269 77.7451L143.923 74.0609L155.097 66.9438L157.443 70.628ZM133.985 62.1224L131.752 65.7642C134.326 66.8566 136.933 68.2692 139.665 70.0572L141.777 66.4928C139.096 64.7857 136.489 63.373 133.985 62.1224ZM148.262 52.4602C148.8 55.3609 149.041 58.5084 148.998 61.8365L153.147 61.4703C153.215 58.1828 152.99 54.969 152.414 51.921L148.262 52.4602ZM118.85 69.5429C120.789 74.9097 121.859 80.4314 121.927 86.0787L126.308 86.0769C126.278 84.9577 126.208 83.8644 126.152 82.7048L128.163 85.8626L130.309 84.4959L132.965 88.6659L127.702 92.0182L129.971 95.5809L135.234 92.2286L140.34 100.245C140.753 100.892 140.602 101.728 139.863 102.711L143.53 104.985C146.5 101.785 148.869 98.6251 150.654 95.4399L147.84 92.4518C146.784 94.5469 145.585 96.5059 144.297 98.2367L138.959 89.8563L144.222 86.504L141.953 82.9413L136.69 86.2936L134.034 82.1236L137.92 79.6481L135.729 76.2068L126.093 82.344C125.919 80.4629 125.668 78.4603 125.284 76.4283L133.503 71.1936L131.182 67.5499L124.259 71.9594C123.887 70.66 123.489 69.3202 123.065 67.9398L118.85 69.5429Z" fill="#D83931"/>\n </svg>\n ',[I.en]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#D83931"/>\n <path d="M37.5823 131.615L51.3909 153.294L54.7006 151.186L48.9953 142.229L54.8556 138.496C56.1005 137.703 57.1965 137.347 58.2126 137.468C59.1984 137.608 60.1347 138.207 61.0297 139.344L63.0242 141.873C63.9193 143.01 64.8418 143.788 65.7835 144.127L69.3664 141.845C68.1348 141.52 67.0328 140.728 66.0604 139.469L63.4913 136.24C61.8946 134.269 60.0196 133.671 57.8056 134.483L57.7669 134.423C58.7577 133.365 59.2928 132.128 59.3723 130.711C59.4187 129.444 59.0842 128.248 58.3492 127.095C57.0341 125.03 55.3798 123.907 53.3475 123.665C51.434 123.475 49.3635 124.111 47.1773 125.503L37.5823 131.615ZM42.6906 132.33L48.5204 128.617C50.0386 127.65 51.3058 127.227 52.402 127.34C53.4181 127.461 54.3433 128.109 55.1169 129.324C55.8518 130.478 56.0483 131.59 55.7368 132.643C55.3948 133.714 54.5145 134.744 53.057 135.673L47.1967 139.405L42.6906 132.33Z" fill="#D83931"/>\n <path d="M68.491 119.739C66.1834 121.208 64.834 123.178 64.523 125.638C64.1319 128.106 64.7017 130.475 66.1908 132.813C67.8347 135.394 69.8592 136.964 72.2837 137.554C74.5287 138.13 76.845 137.679 79.1527 136.21C81.2478 134.875 82.5918 133.165 83.2039 131.111C83.6781 129.443 83.5836 127.753 83.0196 126.064L79.801 128.114C79.9561 129.295 79.9455 130.284 79.6697 131.057C79.3001 132.018 78.5632 132.872 77.4398 133.587C76.1645 134.399 74.8917 134.613 73.6601 134.287C72.4092 133.932 71.2602 132.999 70.1718 131.558L82.0745 123.977C80.2648 121.203 78.2347 119.423 76.0145 118.617C73.5568 117.707 71.0416 118.114 68.491 119.739ZM70.2647 122.322C72.8153 120.698 75.1127 121.155 77.1569 123.694L68.6853 129.09C68.0166 127.638 67.8338 126.346 68.057 125.222C68.3216 124.029 69.0501 123.096 70.2647 122.322Z" fill="#D83931"/>\n <path d="M77.5811 114.546L93.4097 126.531L96.6283 124.481L92.4594 105.07L88.9676 107.294L92.4661 121.498L81.0729 112.322L77.5811 114.546Z" fill="#D83931"/>\n <path d="M101.389 98.7847C99.0206 100.293 97.6105 102.301 97.189 104.789C96.7483 107.247 97.307 109.665 98.8348 112.064C100.343 114.432 102.299 115.961 104.663 116.59C107.126 117.24 109.561 116.842 111.929 115.333C114.298 113.825 115.688 111.786 116.14 109.279C116.57 106.871 116.011 104.453 114.503 102.084C112.975 99.6857 110.989 98.1762 108.606 97.5172C106.173 96.8473 103.757 97.2762 101.389 98.7847ZM103.072 101.426C104.559 100.479 106.081 100.321 107.685 100.963C109.052 101.501 110.248 102.575 111.254 104.154C112.24 105.702 112.688 107.21 112.617 108.706C112.501 110.402 111.734 111.744 110.247 112.691C108.759 113.639 107.218 113.767 105.663 113.135C104.296 112.597 103.15 111.535 102.145 109.956C101.139 108.377 100.641 106.858 100.732 105.392C100.797 103.686 101.584 102.374 103.072 101.426Z" fill="#D83931"/>\n <path d="M108.47 85.8662L122.549 107.971L125.768 105.921L122.267 100.425L122.995 97.6142L133.207 101.183L137.337 98.5527L123.897 94.1377L126.731 83.2413L122.571 85.8909L119.889 96.6905L111.689 83.8162L108.47 85.8662Z" fill="#D83931"/>\n <path d="M135.535 77.036C133.227 78.5058 131.878 80.475 131.567 82.9353C131.176 85.4038 131.746 87.7726 133.235 90.1106C134.879 92.6916 136.903 94.2618 139.328 94.8517C141.573 95.4278 143.889 94.9768 146.197 93.507C148.292 92.1726 149.636 90.4629 150.248 88.4084C150.722 86.7405 150.627 85.0508 150.063 83.3613L146.845 85.4113C147 86.593 146.989 87.5814 146.714 88.3546C146.344 89.3156 145.607 90.1691 144.484 90.8847C143.208 91.697 141.936 91.9101 140.704 91.5848C139.453 91.2291 138.304 90.2963 137.216 88.8555L149.118 81.2743C147.309 78.5001 145.279 76.7201 143.058 75.9147C140.601 75.0046 138.085 75.4115 135.535 77.036ZM137.309 79.6197C139.859 77.9951 142.157 78.4525 144.201 80.9919L135.729 86.3877C135.06 84.9356 134.878 83.6435 135.101 82.5197C135.365 81.3268 136.094 80.3933 137.309 79.6197Z" fill="#D83931"/>\n <path d="M153.51 57.1789L159.08 65.9237C156.625 64.8838 154.435 64.9979 152.522 66.2163C150.275 67.6474 149.006 69.6083 148.775 72.0602C148.527 74.352 149.169 76.6324 150.639 78.9401C152.167 81.3388 154.031 82.9257 156.212 83.6703C158.562 84.4783 160.906 84.1378 163.214 82.6679C165.34 81.3141 166.476 79.4803 166.603 77.2659L167.802 79.1485L170.808 77.2338L156.728 55.1289L153.51 57.1789ZM154.914 68.3634C156.098 67.6092 157.36 67.4458 158.768 67.9146C160.215 68.4441 161.511 69.5397 162.594 71.2401L162.768 71.5134C163.774 73.0923 164.252 74.5803 164.222 76.0078C164.129 77.6038 163.433 78.8576 162.037 79.7472C160.458 80.7529 158.906 80.9302 157.462 80.2709C156.205 79.7054 155.051 78.5628 153.948 76.832C152.846 75.1013 152.329 73.5525 152.417 72.2161C152.48 70.6395 153.335 69.3691 154.914 68.3634Z" fill="#D83931"/>\n </svg>\n ',[I.ja]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#D83931"/>\n <path d="M74.6397 131.997C73.8412 132.854 73.0072 133.734 72.1379 134.636L60.1343 115.79L62.2952 114.414L63.5813 116.433L64.9983 115.531C69.114 120.976 73.9863 125.342 79.5797 128.651C79.6684 132.778 79.0483 136.808 77.6616 140.728L81.6338 141.883C82.8726 138.355 83.5089 134.664 83.6136 130.763C86.6712 132.201 90.0024 133.366 93.6428 134.234L94.2629 130.204C90.4454 129.449 86.8242 128.22 83.4347 126.495C82.8492 120.494 80.9203 114.103 77.6609 107.266L75.6979 104.184L61.8114 113.029L60.5704 111.081L43.4958 121.956L45.5039 125.109L48.0545 123.484L61.5021 144.597L58.7521 146.847L61.6652 149.622C65.0946 146.641 68.3372 143.68 71.4284 140.715L74.9032 146.17L78.1622 144.094L74.2588 137.966L76.7832 135.362L74.6397 131.997ZM68.0802 113.568L74.5983 109.416C76.9744 114.476 78.5033 119.378 79.2203 124.1C75.1057 121.392 71.4159 117.867 68.0802 113.568ZM69.3526 137.456C67.7716 138.961 66.1551 140.488 64.4807 142.003L61.1639 136.796L66.6902 133.276L69.3526 137.456ZM59.2461 133.784L56.2677 129.108L61.794 125.589L64.7723 130.265L59.2461 133.784ZM54.3273 126.062L51.349 121.386L56.8752 117.866L59.8535 122.542L54.3273 126.062Z" fill="#D83931"/>\n <path d="M97.054 86.349L103.078 95.8074L95.6392 100.546L110.238 123.465L113.638 121.299L108.9 113.86L120.484 106.482L122.154 109.103C122.83 110.166 122.638 111.036 121.61 111.69L117.823 113.953L120.784 116.648L124.716 114.144C127.267 112.519 127.685 110.361 125.993 107.704L113.989 88.858L106.479 93.6414L100.455 84.183L97.054 86.349ZM105.019 107.767L116.603 100.389L118.656 103.613L107.072 110.991L105.019 107.767ZM114.775 97.5196L103.192 104.898L101.116 101.639L112.7 94.2605L114.775 97.5196ZM91.2319 91.2026L89.2908 94.3312C91.8005 95.2225 94.3168 96.3586 96.9201 97.7878L98.7421 94.7848C96.1613 93.3911 93.6579 92.197 91.2319 91.2026ZM107.15 81.0138C107.561 83.6905 107.617 86.5928 107.341 89.7562L110.807 89.4906C111.128 86.3981 111.12 83.4152 110.713 80.5871L107.15 81.0138ZM95.7794 112.806C96.8446 118.153 97.5587 123.574 97.9797 129.082L101.977 128.478C101.482 123.166 100.665 117.661 99.4771 112.044L95.7794 112.806ZM81.5542 96.5699L80.6345 100.442C84.5098 100.663 87.6926 101.126 90.2409 101.843L91.1155 97.8996C88.2869 97.2114 85.1267 96.7843 81.5542 96.5699ZM85.8421 105.491L84.9224 109.363C88.6431 109.732 91.7422 110.298 94.1971 111.025L95.0362 107.104C92.3494 106.326 89.2729 105.796 85.8421 105.491Z" fill="#D83931"/>\n <path d="M116.209 74.5966L115.302 78.4109C119.004 78.593 122.07 79.0299 124.503 79.7214L125.329 75.8588C122.675 75.2092 119.63 74.8078 116.209 74.5966ZM121.299 83.0567L120.392 86.8711C124.09 87.2046 127.154 87.7928 129.654 88.5907L130.503 84.7635C127.793 83.9496 124.694 83.3839 121.299 83.0567ZM130.47 90.8098C131.76 95.9633 132.758 101.204 133.44 106.496L137.402 105.915C136.681 100.796 135.603 95.5075 134.168 90.0481L130.47 90.8098ZM124.561 72.4639L126.501 75.5105L129.938 73.3218C132.541 74.751 135.144 75.6326 137.828 76.0148C136.099 78.4604 133.658 80.9611 130.599 83.5072L133.886 85.6963C137.376 82.5767 140.065 79.3705 141.903 76.1581C145.974 75.9052 150.338 74.47 155.053 71.8653L154.211 68.1193C150.366 70.3693 146.852 71.8106 143.647 72.4079C144.638 69.5856 145.059 66.7282 144.851 63.8227L148.606 61.431L146.666 58.3845L137.208 64.4089C136.247 63.5267 135.342 62.8087 134.517 62.139L131.442 64.8944C132.247 65.3773 133.04 65.9181 133.842 66.5524L124.561 72.4639ZM133.197 71.246L141.274 66.1016C141.274 68.2921 140.763 70.4602 139.749 72.6994C137.327 72.6488 135.159 72.1375 133.197 71.246ZM142.616 87.2067L152.464 80.9342L154.291 83.8036L144.089 90.3017C143.68 89.2679 143.177 88.2437 142.616 87.2067ZM145.089 93.7481L156.142 86.7084L159.661 92.2346L162.92 90.1588L152.632 74.0052L149.373 76.081L150.636 78.0648L140.824 84.3148L139.447 82.1539L136.188 84.2297L138.783 88.3035C141.197 92.0939 141.959 96.3392 141.162 101.03L145.192 101.65C145.61 98.9438 145.583 96.3217 145.089 93.7481Z" fill="#D83931"/>\n </svg>\n '},[z.Deleted]:{[I.zh]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M77.481 122.355L66.6507 105.351L36.0033 124.872L38.3499 128.556L65.0702 111.537L71.2074 121.172L50.0336 134.659L46.5008 129.112L42.6142 131.588L56.0232 152.64C58.2924 156.203 61.1274 156.901 64.5687 154.709L86.9165 140.475C88.5249 139.337 89.5109 138.026 89.9153 136.516C90.1724 135.044 88.9267 131.569 86.1634 126.158L81.6247 127.342C84.0893 131.748 85.2317 134.435 84.9707 135.454C84.7133 136.301 84.1798 136.982 83.4511 137.447L63.2489 150.314C61.7105 151.294 60.4513 151.015 59.4714 149.476L52.3801 138.343L77.481 122.355Z" fill="#646A73"/>\n <path d="M101.929 85.3285L117.839 110.308L121.159 108.193L105.249 83.214L101.929 85.3285ZM129.114 114.964C131.624 113.365 132.017 111.123 130.238 108.33L109.428 75.658L105.946 77.8756L126.189 109.657C126.988 110.912 126.874 111.895 125.862 112.539C124.405 113.468 122.815 114.366 121.118 115.276L124.094 118.162L129.114 114.964ZM83.8723 114.073L86.1157 117.595L88.1805 116.28C91.9786 122.511 94.2965 128.206 95.1748 133.337L99.475 134.013C98.5449 128.174 95.8731 121.567 91.4193 114.217L94.1318 112.49L102.59 125.769C103.183 126.7 103.047 127.469 102.197 128.011C101.549 128.423 100.85 128.755 100.11 129.112L103.038 131.744L105.143 130.403C107.491 128.907 107.943 127.026 106.525 124.799L97.3706 110.427L99.7188 108.931L99.7446 108.972C103.624 115.151 106.265 120.639 107.711 125.41L111.904 126.096C110.473 120.634 107.478 114.233 102.917 106.894L105.589 105.192L114.124 118.593C114.692 119.483 114.611 120.161 113.963 120.573C113.356 120.96 112.657 121.292 111.917 121.649L114.804 124.306L116.909 122.965C119.096 121.573 119.492 119.783 118.126 117.638L108.868 103.103L110.731 101.917L108.487 98.3949L106.625 99.5811L97.3677 85.0468L88.218 90.8746L97.4754 105.409L95.1272 106.904L85.8699 92.3702L76.7202 98.1979L85.9775 112.732L83.8723 114.073ZM103.346 101.67L100.674 103.372L93.5051 92.1168L96.1771 90.4149L103.346 101.67ZM91.8884 108.967L89.2164 110.669L82.0477 99.4143L84.7198 97.7124L91.8884 108.967Z" fill="#646A73"/>\n <path d="M116.031 73.1593L138.981 109.191L142.746 106.793L122.092 74.3643L126.666 71.4505C127.864 75.2971 128.956 79.7806 129.956 84.8348C134.485 86.6737 137.633 88.9365 139.361 91.649C139.799 92.3373 139.947 92.9262 139.87 93.4306C139.7 93.8798 139.237 94.4028 138.438 95.0253C137.871 95.3863 137.132 95.7437 136.204 96.1637L139.975 99.2252C142.688 97.4975 144.255 95.7592 144.718 93.9845C144.931 92.7107 144.419 91.1021 143.207 89.1993C141.291 86.5494 138.014 84.0842 133.481 81.7925C132.463 76.9776 131.357 72.5604 130.192 68.4082L128.258 65.3718L116.031 73.1593ZM160.924 94.5891C163.272 93.0935 163.636 90.9839 161.986 88.3928L154.868 77.2189L163.613 71.649L161.241 67.9243L152.496 73.4942L150.021 69.6076L154.636 66.668L152.908 63.9555C154.609 64.1241 156.365 64.2007 158.257 64.1337L158.436 59.4103C151.905 59.7001 146.176 58.5686 141.183 56.001L137.459 58.3733C137.387 64.3373 136.042 70.0882 133.317 75.6372L137.566 77.4836C138.29 75.9408 138.923 74.3428 139.489 72.7301L141.114 75.2807L146.134 72.0831L148.61 75.9697L139.46 81.7975L141.832 85.5221L150.982 79.6944L157.48 89.8967C158.047 90.7873 157.992 91.5052 157.345 91.9178C156.211 92.6398 154.985 93.3067 153.694 93.9588L156.916 97.1419L160.924 94.5891ZM140.033 70.9039C140.952 67.7006 141.489 64.343 141.642 60.8308C144.727 62.2801 147.916 63.2654 151.288 63.7352L140.033 70.9039ZM160.917 76.4396L159.107 80.2102C163.139 82.2517 166.6 84.2015 169.436 86.1515L171.282 81.9023C168.561 80.221 165.111 78.378 160.917 76.4396ZM146.729 85.7042C147.305 90.0039 147.328 93.9724 146.745 97.702L151.387 97.932C151.842 94.0001 151.744 89.737 151.08 85.2091L146.729 85.7042Z" fill="#646A73"/>\n </svg>',[I.en]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M43.5823 127.019L57.3909 148.699L65.2248 143.709C68.7167 141.485 70.7395 138.831 71.3236 135.727C71.8552 132.742 71.0532 129.54 68.8872 126.139C66.7018 122.708 64.169 120.608 61.3082 119.869C58.2293 119.055 54.9688 119.766 51.4769 121.99L43.5823 127.019ZM48.6906 127.735L52.6682 125.201C55.401 123.461 57.8112 122.822 59.9181 123.315C61.9449 123.817 63.859 125.415 65.6382 128.208C67.3788 130.941 68.0176 133.351 67.6043 135.45C67.1606 137.568 65.5517 139.531 62.819 141.272L58.902 143.767L48.6906 127.735Z" fill="#646A73"/>\n <path d="M75.2323 114.671C72.9247 116.141 71.5753 118.11 71.2643 120.57C70.8732 123.039 71.443 125.407 72.9321 127.745C74.576 130.326 76.6005 131.896 79.025 132.486C81.27 133.063 83.5863 132.612 85.894 131.142C87.9891 129.807 89.3331 128.098 89.9452 126.043C90.4194 124.375 90.3249 122.685 89.7609 120.996L86.5423 123.046C86.6974 124.228 86.6868 125.216 86.411 125.989C86.0414 126.95 85.3045 127.804 84.1811 128.519C82.9058 129.332 81.633 129.545 80.4015 129.219C79.1505 128.864 78.0016 127.931 76.9131 126.49L88.8158 118.909C87.0062 116.135 84.976 114.355 82.7558 113.549C80.2981 112.639 77.7829 113.046 75.2323 114.671ZM77.006 117.254C79.5566 115.63 81.854 116.087 83.8982 118.627L75.4266 124.022C74.7579 122.57 74.5751 121.278 74.7983 120.154C75.0629 118.961 75.7914 118.028 77.006 117.254Z" fill="#646A73"/>\n <path d="M82.2761 101.776L96.3555 123.881L99.5741 121.831L85.4947 99.7259L82.2761 101.776Z" fill="#646A73"/>\n <path d="M99.9624 98.9193C97.6547 100.389 96.3053 102.358 95.9943 104.819C95.6033 107.287 96.173 109.656 97.6622 111.994C99.3061 114.575 101.331 116.145 103.755 116.735C106 117.311 108.316 116.86 110.624 115.39C112.719 114.056 114.063 112.346 114.675 110.292C115.149 108.624 115.055 106.934 114.491 105.245L111.272 107.295C111.427 108.476 111.417 109.465 111.141 110.238C110.771 111.199 110.035 112.052 108.911 112.768C107.636 113.58 106.363 113.793 105.131 113.468C103.881 113.112 102.732 112.18 101.643 110.739L113.546 103.158C111.736 100.383 109.706 98.6033 107.486 97.798C105.028 96.8878 102.513 97.2947 99.9624 98.9193ZM101.736 101.503C104.287 99.8784 106.584 100.336 108.628 102.875L100.157 108.271C99.4879 106.819 99.3051 105.527 99.5283 104.403C99.7929 103.21 100.521 102.277 101.736 101.503Z" fill="#646A73"/>\n <path d="M112.26 84.5562L109.892 87.9423L112.271 91.677L109.356 93.5337L111.058 96.2057L113.973 94.3491L119.775 103.458C120.568 104.703 121.441 105.47 122.473 105.752C123.525 106.063 124.76 105.789 126.096 104.938L128.677 103.294L126.975 100.622L124.91 101.938C124.515 102.189 124.164 102.242 123.866 102.175C123.549 102.079 123.264 101.833 122.993 101.408L117.191 92.299L120.774 90.0169L119.073 87.3449L115.49 89.627L112.26 84.5562Z" fill="#646A73"/>\n <path d="M128.043 81.0337C125.735 82.5035 124.386 84.4727 124.075 86.933C123.684 89.4015 124.254 91.7703 125.743 94.1083C127.387 96.6893 129.411 98.2595 131.836 98.8494C134.081 99.4255 136.397 98.9745 138.705 97.5047C140.8 96.1702 142.144 94.4606 142.756 92.4061C143.23 90.7382 143.136 89.0485 142.572 87.3589L139.353 89.409C139.508 90.5906 139.498 91.5791 139.222 92.3523C138.852 93.3133 138.115 94.1668 136.992 94.8824C135.717 95.6946 134.444 95.9078 133.212 95.5825C131.961 95.2268 130.812 94.294 129.724 92.8532L141.627 85.272C139.817 82.4978 137.787 80.7177 135.567 79.9124C133.109 79.0023 130.594 79.4092 128.043 81.0337ZM129.817 83.6173C132.367 81.9928 134.665 82.4502 136.709 84.9896L128.237 90.3854C127.569 88.9333 127.386 87.6412 127.609 86.5174C127.874 85.3245 128.602 84.3909 129.817 83.6173Z" fill="#646A73"/>\n <path d="M146.018 61.1766L151.588 69.9214C149.133 68.8815 146.943 68.9956 145.03 70.214C142.783 71.6451 141.514 73.606 141.283 76.0579C141.036 78.3497 141.677 80.6301 143.147 82.9378C144.675 85.3365 146.539 86.9234 148.721 87.668C151.071 88.476 153.415 88.1355 155.722 86.6656C157.848 85.3118 158.985 83.478 159.111 81.2636L160.31 83.1462L163.316 81.2315L149.236 59.1265L146.018 61.1766ZM147.422 72.3611C148.606 71.6069 149.868 71.4434 151.277 71.9122C152.724 72.4418 154.019 73.5374 155.102 75.2378L155.276 75.5111C156.282 77.09 156.76 78.578 156.73 80.0055C156.637 81.6014 155.942 82.8553 154.545 83.7449C152.966 84.7506 151.414 84.9279 149.97 84.2686C148.714 83.7031 147.559 82.5605 146.457 80.8297C145.354 79.099 144.837 77.5502 144.925 76.2138C144.988 74.6372 145.843 73.3668 147.422 72.3611Z" fill="#646A73"/>\n </svg>',[I.ja]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M49.9875 116.277L56.0796 125.842L49.5614 129.994L64.1824 152.949L67.5123 150.828L62.7063 143.283L72.4127 137.1L74.3757 140.182C74.9397 141.068 74.808 141.799 73.9578 142.341L70.7147 144.207L73.573 146.818L76.9384 144.675C79.2764 143.186 79.7137 141.214 78.1794 138.805L65.9276 119.57L59.3032 123.789L53.2112 114.224L49.9875 116.277ZM58.8029 137.154L68.5092 130.972L70.5851 134.231L60.8787 140.413L58.8029 137.154ZM66.7042 128.138L56.9978 134.32L54.9446 131.096L64.6509 124.914L66.7042 128.138ZM45.7758 120.454L43.883 123.502C46.2027 124.564 48.6095 125.919 51.0454 127.555L52.832 124.574C50.4187 122.974 48.0473 121.597 45.7758 120.454ZM58.857 111.674C59.3637 114.19 59.6451 116.898 59.6076 119.811L62.9222 119.542C62.9822 116.665 62.8071 113.889 62.3261 111.257L58.857 111.674ZM65.5601 110.94L79.3236 132.549L82.5473 130.496L68.7837 108.887L65.5601 110.94ZM90.6154 135.814C93.0952 134.235 93.5002 132.134 91.8756 129.584L73.78 101.173L70.4501 103.294L88.0042 130.854C88.7262 131.988 88.5559 132.893 87.5286 133.547C85.899 134.585 84.1181 135.62 82.2212 136.629L84.9829 139.402L90.6154 135.814Z" fill="#646A73"/>\n <path d="M79.5806 99.0221L99.6618 130.55L102.956 128.452L84.8832 100.077L88.8862 97.5269C89.9345 100.893 90.8896 104.816 91.7643 109.238C95.7271 110.847 98.4821 112.827 99.9938 115.201C100.377 115.803 100.506 116.318 100.439 116.76C100.291 117.153 99.8853 117.61 99.1865 118.155C98.6905 118.471 98.0432 118.783 97.2316 119.151L100.531 121.83C102.905 120.318 104.276 118.797 104.682 117.244C104.868 116.13 104.42 114.722 103.359 113.057C101.683 110.738 98.8154 108.581 94.8492 106.576C93.9584 102.363 92.9905 98.498 91.9711 94.8649L90.2788 92.208L79.5806 99.0221ZM118.862 117.773C120.916 116.465 121.235 114.619 119.79 112.351L113.563 102.574L121.215 97.7006L119.139 94.4415L111.487 99.3152L109.321 95.9144L113.36 93.3422L111.848 90.9688C113.336 91.1163 114.873 91.1834 116.528 91.1247L116.685 86.9918C110.97 87.2453 105.957 86.2552 101.589 84.0086L98.3295 86.0844C98.2672 91.3028 97.0902 96.3349 94.7053 101.19L98.4232 102.806C99.0573 101.456 99.6108 100.058 100.106 98.6465L101.528 100.878L105.92 98.0805L108.086 101.481L100.081 106.581L102.156 109.84L110.162 104.74L115.848 113.667C116.345 114.447 116.297 115.075 115.73 115.436C114.738 116.068 113.665 116.651 112.535 117.222L115.355 120.007L118.862 117.773ZM100.582 97.0486C101.387 94.2458 101.856 91.3078 101.99 88.2347C104.69 89.5028 107.48 90.3649 110.43 90.7761L100.582 97.0486ZM118.855 101.892L117.272 105.192C120.8 106.978 123.828 108.684 126.309 110.39L127.925 106.672C125.544 105.201 122.525 103.589 118.855 101.892ZM106.441 109.999C106.945 113.761 106.965 117.234 106.455 120.497L110.517 120.698C110.915 117.258 110.829 113.528 110.248 109.566L106.441 109.999Z" fill="#646A73"/>\n <path d="M116.209 74.5966L115.302 78.4109C119.004 78.593 122.07 79.0299 124.503 79.7214L125.329 75.8588C122.675 75.2092 119.63 74.8078 116.209 74.5966ZM121.299 83.0567L120.392 86.8711C124.09 87.2046 127.154 87.7928 129.654 88.5907L130.503 84.7635C127.793 83.9496 124.694 83.3839 121.299 83.0567ZM130.47 90.8098C131.76 95.9633 132.758 101.204 133.44 106.496L137.402 105.915C136.681 100.796 135.603 95.5075 134.168 90.0481L130.47 90.8098ZM124.561 72.4639L126.501 75.5105L129.938 73.3218C132.541 74.751 135.144 75.6326 137.828 76.0148C136.099 78.4604 133.658 80.9611 130.599 83.5072L133.886 85.6963C137.376 82.5767 140.065 79.3705 141.903 76.1581C145.974 75.9052 150.338 74.47 155.053 71.8653L154.211 68.1193C150.366 70.3693 146.852 71.8106 143.647 72.4079C144.638 69.5856 145.059 66.7282 144.851 63.8227L148.606 61.431L146.666 58.3845L137.208 64.4089C136.247 63.5267 135.342 62.8087 134.517 62.139L131.442 64.8944C132.247 65.3773 133.04 65.9181 133.842 66.5524L124.561 72.4639ZM133.197 71.246L141.274 66.1016C141.274 68.2921 140.763 70.4602 139.749 72.6994C137.327 72.6488 135.159 72.1375 133.197 71.246ZM142.616 87.2067L152.464 80.9342L154.291 83.8036L144.089 90.3017C143.68 89.2679 143.177 88.2437 142.616 87.2067ZM145.089 93.7481L156.142 86.7084L159.661 92.2346L162.92 90.1588L152.632 74.0052L149.373 76.081L150.636 78.0648L140.824 84.3148L139.447 82.1539L136.188 84.2297L138.783 88.3035C141.197 92.0939 141.959 96.3392 141.162 101.03L145.192 101.65C145.61 98.9438 145.583 96.3217 145.089 93.7481Z" fill="#646A73"/>\n </svg>'},[z.Terminated]:{[I.zh]:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 208" fill="none">\n <g clip-path="url(#clip0_1604_9231)">\n <rect width="208" height="208" fill="transparent"/>\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M77.2151 122.217L66.5319 105.12L35.7172 124.375L38.0319 128.079L64.8981 111.291L70.9519 120.98L49.6625 134.283L46.1777 128.706L42.2699 131.148L55.4967 152.315C57.7351 155.897 60.5639 156.62 64.024 154.458L86.4938 140.417C88.1119 139.293 89.1093 137.99 89.5267 136.484C89.7965 135.014 88.5808 131.529 85.8643 126.094L81.3155 127.239C83.7421 131.666 84.8612 134.362 84.5914 135.38C84.3268 136.224 83.7874 136.901 83.0547 137.359L62.7422 150.052C61.1954 151.018 59.9387 150.728 58.9721 149.181L51.9771 137.987L77.2151 122.217Z" fill="#646A73"/>\n <path d="M104.894 118.505C101.933 122.28 98.167 126.218 93.5468 130.237L96.6603 133.951C100.904 130.054 104.441 126.203 107.361 122.453L104.894 118.505ZM79.4971 94.0751C80.8195 99.3616 81.6179 104.353 81.943 109.131C81.9531 110.143 81.7037 110.922 81.2458 111.547L84.3695 114.463C86.2013 112.866 87.9772 111.36 89.7123 109.879C90.0324 114.377 90.0423 117.654 89.7267 119.775C89.518 120.528 89.177 121.251 88.7038 121.943L91.9089 124.808C94.8602 122.284 97.7505 119.12 100.59 115.421L98.4279 111.961C96.9013 114.047 95.3136 115.945 93.6497 117.72C93.9401 113.294 93.549 106.69 92.5831 97.8974L88.4159 98.7467C88.721 101.046 88.9752 103.265 89.2345 105.31C88.0438 106.394 86.8277 107.437 85.5454 108.464C85.617 104.231 85.0731 99.1941 83.9441 93.2207L79.4971 94.0751ZM108.838 106.248L108.66 110.492C113.27 109.083 117.961 108.076 122.825 107.527L122.907 103.4C118.404 103.893 113.728 104.834 108.838 106.248ZM107.983 115.839L107.794 120.428C114.923 118.068 122.204 116.405 129.653 115.373L129.678 110.885C122.779 111.801 115.564 113.479 107.983 115.839ZM93.6477 85.2894C95.199 90.4895 95.1782 95.7098 93.692 100.94L98.1184 102.589C98.5663 100.951 98.9226 99.2565 99.1721 97.5724C101.258 98.1933 103.415 98.6565 105.695 99.0434C104.158 103.287 101.751 107.225 98.606 110.888L102.656 113.111C106.096 108.924 108.599 104.417 110.192 99.629C114.563 100.011 119.056 99.8638 123.737 99.2028L123.585 94.4303C119.341 95.1575 115.255 95.5031 111.343 95.4009C112.147 91.6156 112.346 87.5859 111.99 83.3933L110.031 80.259L98.8372 87.2539C98.6084 85.9819 98.2473 84.6793 97.8607 83.3361L93.6477 85.2894ZM106.891 95.0698C104.316 94.7541 101.813 94.2807 99.437 93.558C99.4116 93.0644 99.3862 92.5709 99.4015 92.0519L107.909 86.7358C107.878 89.585 107.517 92.358 106.891 95.0698Z" fill="#646A73"/>\n <path d="M132.761 61.4712L152.754 93.4663L145.223 98.172L129.682 73.3004L125.774 75.7423L141.316 100.614L134.721 104.735L137.087 108.52L173.478 85.7803L171.113 81.9946L156.662 91.0244L147.022 75.5968L159.356 67.8896L157.015 64.1446L144.681 71.8518L136.669 59.0293L132.761 61.4712Z" fill="#646A73"/>\n </g>\n <defs>\n <clipPath id="clip0_1604_9231">\n <rect width="208" height="208" fill="transparent"/>\n </clipPath>\n </defs>\n </svg>',[I.en]:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 208" fill="none">\n <g clip-path="url(#clip0_1604_9235)">\n <rect width="208" height="208" fill="transparent"/>\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M25.4874 140.021L27.0644 142.544L33.5503 138.492L44.0809 155.344L47.0117 153.513L36.4812 136.66L42.9399 132.624L41.3629 130.1L25.4874 140.021Z" fill="#646A73"/>\n <path d="M52.4774 130.061C50.4149 131.349 49.2004 133.089 48.9051 135.274C48.5386 137.465 49.0268 139.575 50.3325 141.664C51.7739 143.971 53.5614 145.382 55.7118 145.925C57.7029 146.455 59.7653 146.072 61.8277 144.783C63.7002 143.613 64.9079 142.103 65.4677 140.282C65.9021 138.803 65.831 137.3 65.3427 135.794L62.4661 137.592C62.5949 138.643 62.5778 139.522 62.3268 140.207C61.9909 141.058 61.3294 141.811 60.3253 142.439C59.1855 143.151 58.0526 143.331 56.9604 143.032C55.8512 142.706 54.8371 141.868 53.8807 140.579L64.5186 133.932C62.9314 131.452 61.1405 129.855 59.1733 129.122C56.9957 128.294 54.7569 128.636 52.4774 130.061ZM54.0341 132.371C56.3136 130.946 58.3522 131.37 60.1497 133.643L52.5784 138.374C51.995 137.079 51.8425 135.929 52.0495 134.931C52.2938 133.873 52.9486 133.049 54.0341 132.371Z" fill="#646A73"/>\n <path d="M68.3651 120.133C67.4967 120.675 66.8895 121.395 66.5773 122.344C66.272 123.063 66.1668 123.921 66.2888 124.902L64.9661 122.785L62.0895 124.583L70.8565 138.613L73.7331 136.815L69.0868 129.379C68.3237 128.158 68.049 126.934 68.3069 125.716C68.5445 124.587 69.111 123.742 69.9794 123.199C70.6307 122.792 71.36 122.45 72.2013 122.226L70.4038 119.349C69.7627 119.41 69.0707 119.692 68.3651 120.133Z" fill="#646A73"/>\n <path d="M78.6793 113.688C77.2682 114.57 76.3556 116.008 76.0298 118.023L75.0632 116.476L72.1866 118.273L80.9536 132.303L83.8302 130.506L78.5564 122.066C77.9459 121.089 77.6916 120.078 77.8647 119.027C77.9666 117.982 78.506 117.154 79.4287 116.578C81.3283 115.391 82.9835 115.866 84.374 118.091L89.8004 126.775L92.677 124.978L87.2845 116.348C86.6402 115.317 86.3859 114.306 86.5555 113.37C86.7252 112.434 87.19 111.728 88.0041 111.219C89.0896 110.541 90.0564 110.277 90.884 110.514C91.6947 110.724 92.4646 111.413 93.1768 112.553L98.6201 121.264L101.497 119.467L95.7481 110.267C94.7646 108.693 93.4961 107.75 91.9799 107.377C90.4196 106.993 88.9373 107.278 87.499 108.177C86.5492 108.77 85.8639 109.425 85.4331 110.185C84.948 110.978 84.6595 112.026 84.578 113.285C82.7261 112.253 80.7418 112.399 78.6793 113.688Z" fill="#646A73"/>\n <path d="M94.5101 96.5131C93.9402 96.8692 93.5806 97.3203 93.4381 97.9376C93.2786 98.5278 93.3769 99.1078 93.733 99.6777C94.0722 100.22 94.5674 100.59 95.1847 100.733C95.7851 100.848 96.3651 100.75 96.935 100.394C97.4777 100.055 97.8475 99.5594 98.007 98.9692C98.1495 98.3519 98.0783 97.7549 97.7222 97.185C97.3661 96.6151 96.8879 96.2725 96.2875 96.1571C95.6702 96.0145 95.08 96.157 94.5101 96.5131ZM96.582 103.029L105.349 117.059L108.226 115.262L99.4585 101.232L96.582 103.029Z" fill="#646A73"/>\n <path d="M110.225 93.9759C109.357 94.5185 108.671 95.1731 108.203 95.9939C107.718 96.7876 107.416 97.6933 107.314 98.738L106.229 97.0012L103.352 98.7987L112.119 112.829L114.996 111.031L109.722 102.592C109.119 101.384 108.966 100.234 109.21 99.1757C109.434 98.2056 109.997 97.4764 110.812 96.9677C112.983 95.6111 114.841 96.1099 116.334 98.498L121.59 106.911L124.467 105.113L119.058 96.4563C116.65 92.6027 113.699 91.8053 110.225 93.9759Z" fill="#646A73"/>\n <path d="M125.074 84.6973C123.337 85.7826 122.112 86.9629 121.488 88.2585C120.735 89.7102 120.687 91.3248 121.339 93.0311L124.341 91.4948C124.012 90.606 124.063 89.7818 124.477 88.9949C124.816 88.3301 125.447 87.7094 126.342 87.1498C128.459 85.8271 130.128 86.1427 131.349 88.0966L131.705 88.6665L128.608 90.715C126.579 92.058 125.205 93.4826 124.574 95.0089C123.852 96.6302 123.991 98.2414 124.974 99.8154C125.703 100.982 126.731 101.661 128.084 101.834C129.356 102.058 130.734 101.726 132.199 100.81C133.447 100.03 134.38 99.1073 135.032 98.0966C135.591 97.1808 135.914 96.187 136.015 95.1423L137.253 97.1233L139.913 95.4615L134.317 86.5061C133.249 84.7964 132 83.7651 130.6 83.3953C128.978 82.9745 127.136 83.4085 125.074 84.6973ZM133.011 90.7561L133.519 91.5702C134.198 92.6557 134.313 93.8667 133.902 95.1421C133.492 96.4174 132.698 97.4417 131.477 98.2048C130.744 98.6626 130.028 98.8457 129.374 98.7643C128.692 98.6998 128.203 98.4012 127.864 97.8585C126.779 96.1217 127.505 94.385 130.103 92.6859L133.011 90.7561Z" fill="#646A73"/>\n <path d="M135.867 72.1795L133.737 75.1711L135.823 78.509L133.217 80.1369L134.71 82.525L137.315 80.8971L142.402 89.0384C143.097 90.151 143.867 90.8396 144.783 91.0975C145.716 91.3825 146.815 91.1486 148.009 90.4025L150.316 88.9611L148.823 86.573L146.978 87.7261C146.625 87.9465 146.313 87.9906 146.049 87.9295C145.767 87.8413 145.516 87.6208 145.279 87.2409L140.191 79.0996L143.394 77.0986L141.901 74.7105L138.699 76.7115L135.867 72.1795Z" fill="#646A73"/>\n <path d="M149.923 69.1696C147.861 70.4584 146.646 72.1983 146.351 74.3827C145.985 76.5739 146.473 78.6838 147.779 80.7734C149.22 83.0801 151.007 84.4913 153.158 85.0342C155.149 85.5636 157.211 85.1805 159.274 83.8917C161.146 82.7217 162.354 81.2123 162.914 79.3909C163.348 77.912 163.277 76.4093 162.789 74.9033L159.912 76.7007C160.041 77.7523 160.024 78.6308 159.773 79.316C159.437 80.1673 158.775 80.9203 157.771 81.5477C156.632 82.2599 155.499 82.4396 154.406 82.141C153.297 81.8152 152.283 80.9773 151.327 79.6883L161.965 73.041C160.377 70.5613 158.587 68.9635 156.619 68.2306C154.442 67.4028 152.203 67.7452 149.923 69.1696ZM151.48 71.4797C153.76 70.0552 155.798 70.4794 157.596 72.7522L150.024 77.4834C149.441 76.1876 149.289 75.0377 149.496 74.0404C149.74 72.9822 150.395 72.158 151.48 71.4797Z" fill="#646A73"/>\n <path d="M166.053 51.6573L170.936 59.4729C168.762 58.5298 166.815 58.6144 165.106 59.6827C163.097 60.9375 161.954 62.6708 161.73 64.8484C161.492 66.8836 162.045 68.9154 163.334 70.9779C164.674 73.1217 166.319 74.5465 168.252 75.2251C170.335 75.9614 172.421 75.6766 174.483 74.3879C176.383 73.2009 177.407 71.5796 177.536 69.6122L178.588 71.2948L181.274 69.616L168.929 49.8598L166.053 51.6573ZM167.215 61.6096C168.274 60.9482 169.396 60.8126 170.645 61.2401C171.927 61.7219 173.07 62.7057 174.019 64.2254L174.172 64.4697C175.054 65.8808 175.467 67.2071 175.43 68.4757C175.335 69.8936 174.707 71.0027 173.459 71.7827C172.048 72.6645 170.667 72.8102 169.388 72.2131C168.276 71.7008 167.258 70.6764 166.292 69.1295C165.325 67.5827 164.878 66.2021 164.966 65.0149C165.034 63.614 165.804 62.4913 167.215 61.6096Z" fill="#646A73"/>\n </g>\n <defs>\n <clipPath id="clip0_1604_9235">\n <rect width="208" height="208" fill="transparent"/>\n </clipPath>\n </defs>\n </svg>',[I.ja]:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 208 208" fill="none">\n <g clip-path="url(#clip0_1812_9245)">\n <rect width="208" height="208" fill="transparent"/>\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M35.8725 123.621L39.9062 130.076L26.6597 138.354L37.9216 156.376L41.4664 154.161L40.1374 152.035L49.839 145.972L57.6501 158.472L61.3068 156.187L53.4958 143.687L63.2348 137.602L64.5638 139.729L68.1087 137.513L56.8468 119.491L43.563 127.791L39.5293 121.336L35.8725 123.621ZM37.9689 148.564L32.373 139.609L42.0747 133.547L47.6706 142.502L37.9689 148.564ZM51.3274 140.217L45.7314 131.262L55.4704 125.176L61.0664 134.131L51.3274 140.217Z" fill="#646A73"/>\n <path d="M75.1222 99.6659L93.4489 128.995L86.5458 133.308L72.2995 110.509L68.7173 112.748L82.9637 135.547L76.9188 139.324L79.0872 142.794L112.446 121.949L110.278 118.479L97.0311 126.756L88.1942 112.614L99.5004 105.549L97.3552 102.117L86.0491 109.181L78.7044 97.4275L75.1222 99.6659Z" fill="#646A73"/>\n <path d="M98.5228 85.303L97.5383 89.2906C101.414 89.5148 104.623 90.0002 107.165 90.7467L108.065 86.7077C105.29 86.0032 102.105 85.5552 98.5228 85.303ZM103.778 94.2117L102.794 98.1993C106.665 98.5821 109.869 99.226 112.481 100.084L113.405 96.0829C110.574 95.2058 107.332 94.5851 103.778 94.2117ZM113.315 102.417C114.621 107.827 115.618 113.326 116.285 118.876L120.44 118.303C119.732 112.934 118.651 107.384 117.196 101.652L113.315 102.417ZM107.291 83.1444L109.297 86.3534L112.916 84.0917C115.63 85.6124 118.349 86.5595 121.157 86.9841C119.324 89.5305 116.744 92.1281 113.517 94.7676L116.94 97.0906C120.625 93.8541 123.47 90.5197 125.425 87.1711C129.692 86.943 134.277 85.4789 139.24 82.7929L138.391 78.8611C134.343 81.1834 130.649 82.6615 127.286 83.2582C128.35 80.3106 128.816 77.3211 128.625 74.2755L132.581 71.8039L130.575 68.5949L120.612 74.8204C119.614 73.8875 118.672 73.1272 117.814 72.4182L114.568 75.2769C115.407 75.79 116.233 76.3638 117.068 77.0355L107.291 83.1444ZM116.349 81.9466L124.857 76.6304C124.838 78.9251 124.282 81.1918 123.2 83.5283C120.663 83.4534 118.396 82.8982 116.349 81.9466ZM126.072 98.7518L136.445 92.2699L138.334 95.2923L127.587 102.007C127.168 100.921 126.65 99.8433 126.072 98.7518ZM128.604 105.627L140.246 98.3521L143.883 104.173L147.316 102.028L136.684 85.0127L133.251 87.1578L134.556 89.2474L124.22 95.7061L122.798 93.4299L119.365 95.575L122.047 99.8662C124.541 103.859 125.301 108.313 124.424 113.219L128.64 113.905C129.102 111.074 129.098 108.327 128.604 105.627Z" fill="#646A73"/>\n <path d="M163.425 56.7328C165.197 59.5687 166.661 62.078 167.818 64.2609C164.716 65.1094 161.904 66.0886 159.404 67.2357C158.257 63.9055 156.736 59.9783 154.867 55.4914L152.292 55.4398C148.994 57.9674 144.857 60.812 139.82 63.9598L142.012 67.4673C145.258 65.4388 148.709 63.0744 152.376 60.4723C153.639 63.574 154.702 66.4377 155.551 69.1243C154.931 69.46 154.371 69.8098 153.849 70.1362C150.341 72.328 148.116 74.9116 147.174 77.8871C146.208 80.8254 146.599 83.6937 148.348 86.4923C149.491 88.3207 151.006 89.5008 152.918 90.07C154.807 90.6019 156.696 90.3036 158.487 89.1844C162.219 86.8527 163.096 81.5312 161.194 73.1732C160.994 72.5202 160.83 71.8439 160.644 71.1303C163.256 69.9132 166.241 68.8781 169.636 68.0016L169.953 68.8411C170.97 71.6303 171.324 74.1069 170.969 76.1963C170.587 77.9919 169.523 80.1093 167.802 82.5857L172.153 84.0693C174.971 79.6108 175.988 75.3433 175.289 71.3182C175.032 70.0776 174.599 68.6364 173.951 67.0179C176.063 66.5797 178.358 66.1834 180.797 65.8525L180.373 61.6036C177.43 62.0417 174.693 62.5592 172.16 63.1559C170.892 60.6279 169.232 57.7221 167.226 54.5131L163.425 56.7328ZM156.74 73.1028C156.936 73.9143 157.146 74.6653 157.295 75.4022C158.507 81.0784 158.161 84.511 156.296 85.6769C155.624 86.0966 154.84 86.1711 154.02 85.8539C153.101 85.546 152.434 84.9769 151.968 84.2306C150.872 82.4769 150.606 80.7232 151.171 78.9696C151.754 76.9967 153.382 75.2013 155.994 73.5691L156.74 73.1028Z" fill="#646A73"/>\n </g>\n <defs>\n <clipPath id="clip0_1812_9245">\n <rect width="208" height="208" fill="transparent"/>\n </clipPath>\n </defs>\n </svg>'},[z.Cleared]:{[I.zh]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M77.481 122.355L66.6507 105.351L36.0033 124.872L38.3499 128.556L65.0702 111.537L71.2074 121.172L50.0336 134.659L46.5008 129.112L42.6142 131.588L56.0232 152.64C58.2924 156.203 61.1274 156.901 64.5687 154.709L86.9165 140.475C88.5249 139.337 89.5109 138.026 89.9153 136.516C90.1724 135.044 88.9267 131.569 86.1634 126.158L81.6247 127.342C84.0893 131.748 85.2317 134.435 84.9707 135.454C84.7133 136.301 84.1798 136.982 83.4511 137.447L63.2489 150.314C61.7105 151.294 60.4513 151.015 59.4714 149.476L52.3801 138.343L77.481 122.355Z" fill="#646A73"/>\n <path d="M101.929 85.3285L117.839 110.308L121.159 108.193L105.249 83.214L101.929 85.3285ZM129.114 114.964C131.624 113.365 132.017 111.123 130.238 108.33L109.428 75.658L105.946 77.8756L126.189 109.657C126.988 110.912 126.874 111.895 125.862 112.539C124.405 113.468 122.815 114.366 121.118 115.276L124.094 118.162L129.114 114.964ZM83.8723 114.073L86.1157 117.595L88.1805 116.28C91.9786 122.511 94.2965 128.206 95.1748 133.337L99.475 134.013C98.5449 128.174 95.8731 121.567 91.4193 114.217L94.1318 112.49L102.59 125.769C103.183 126.7 103.047 127.469 102.197 128.011C101.549 128.423 100.85 128.755 100.11 129.112L103.038 131.744L105.143 130.403C107.491 128.907 107.943 127.026 106.525 124.799L97.3706 110.427L99.7188 108.931L99.7446 108.972C103.624 115.151 106.265 120.639 107.711 125.41L111.904 126.096C110.473 120.634 107.478 114.233 102.917 106.894L105.589 105.192L114.124 118.593C114.692 119.483 114.611 120.161 113.963 120.573C113.356 120.96 112.657 121.292 111.917 121.649L114.804 124.306L116.909 122.965C119.096 121.573 119.492 119.783 118.126 117.638L108.868 103.103L110.731 101.917L108.487 98.3949L106.625 99.5811L97.3677 85.0468L88.218 90.8746L97.4754 105.409L95.1272 106.904L85.8699 92.3702L76.7202 98.1979L85.9775 112.732L83.8723 114.073ZM103.346 101.67L100.674 103.372L93.5051 92.1168L96.1771 90.4149L103.346 101.67ZM91.8884 108.967L89.2164 110.669L82.0477 99.4143L84.7198 97.7124L91.8884 108.967Z" fill="#646A73"/>\n <path d="M116.031 73.1593L138.981 109.191L142.746 106.793L122.092 74.3643L126.666 71.4505C127.864 75.2971 128.956 79.7806 129.956 84.8348C134.485 86.6737 137.633 88.9365 139.361 91.649C139.799 92.3373 139.947 92.9262 139.87 93.4306C139.7 93.8798 139.237 94.4028 138.438 95.0253C137.871 95.3863 137.132 95.7437 136.204 96.1637L139.975 99.2252C142.688 97.4975 144.255 95.7592 144.718 93.9845C144.931 92.7107 144.419 91.1021 143.207 89.1993C141.291 86.5494 138.014 84.0842 133.481 81.7925C132.463 76.9776 131.357 72.5604 130.192 68.4082L128.258 65.3718L116.031 73.1593ZM160.924 94.5891C163.272 93.0935 163.636 90.9839 161.986 88.3928L154.868 77.2189L163.613 71.649L161.241 67.9243L152.496 73.4942L150.021 69.6076L154.636 66.668L152.908 63.9555C154.609 64.1241 156.365 64.2007 158.257 64.1337L158.436 59.4103C151.905 59.7001 146.176 58.5686 141.183 56.001L137.459 58.3733C137.387 64.3373 136.042 70.0882 133.317 75.6372L137.566 77.4836C138.29 75.9408 138.923 74.3428 139.489 72.7301L141.114 75.2807L146.134 72.0831L148.61 75.9697L139.46 81.7975L141.832 85.5221L150.982 79.6944L157.48 89.8967C158.047 90.7873 157.992 91.5052 157.345 91.9178C156.211 92.6398 154.985 93.3067 153.694 93.9588L156.916 97.1419L160.924 94.5891ZM140.033 70.9039C140.952 67.7006 141.489 64.343 141.642 60.8308C144.727 62.2801 147.916 63.2654 151.288 63.7352L140.033 70.9039ZM160.917 76.4396L159.107 80.2102C163.139 82.2517 166.6 84.2015 169.436 86.1515L171.282 81.9023C168.561 80.221 165.111 78.378 160.917 76.4396ZM146.729 85.7042C147.305 90.0039 147.328 93.9724 146.745 97.702L151.387 97.932C151.842 94.0001 151.744 89.737 151.08 85.2091L146.729 85.7042Z" fill="#646A73"/>\n </svg>',[I.en]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M43.5823 127.019L57.3909 148.699L65.2248 143.709C68.7167 141.485 70.7395 138.831 71.3236 135.727C71.8552 132.742 71.0532 129.54 68.8872 126.139C66.7018 122.708 64.169 120.608 61.3082 119.869C58.2293 119.055 54.9688 119.766 51.4769 121.99L43.5823 127.019ZM48.6906 127.735L52.6682 125.201C55.401 123.461 57.8112 122.822 59.9181 123.315C61.9449 123.817 63.859 125.415 65.6382 128.208C67.3788 130.941 68.0176 133.351 67.6043 135.45C67.1606 137.568 65.5517 139.531 62.819 141.272L58.902 143.767L48.6906 127.735Z" fill="#646A73"/>\n <path d="M75.2323 114.671C72.9247 116.141 71.5753 118.11 71.2643 120.57C70.8732 123.039 71.443 125.407 72.9321 127.745C74.576 130.326 76.6005 131.896 79.025 132.486C81.27 133.063 83.5863 132.612 85.894 131.142C87.9891 129.807 89.3331 128.098 89.9452 126.043C90.4194 124.375 90.3249 122.685 89.7609 120.996L86.5423 123.046C86.6974 124.228 86.6868 125.216 86.411 125.989C86.0414 126.95 85.3045 127.804 84.1811 128.519C82.9058 129.332 81.633 129.545 80.4015 129.219C79.1505 128.864 78.0016 127.931 76.9131 126.49L88.8158 118.909C87.0062 116.135 84.976 114.355 82.7558 113.549C80.2981 112.639 77.7829 113.046 75.2323 114.671ZM77.006 117.254C79.5566 115.63 81.854 116.087 83.8982 118.627L75.4266 124.022C74.7579 122.57 74.5751 121.278 74.7983 120.154C75.0629 118.961 75.7914 118.028 77.006 117.254Z" fill="#646A73"/>\n <path d="M82.2761 101.776L96.3555 123.881L99.5741 121.831L85.4947 99.7259L82.2761 101.776Z" fill="#646A73"/>\n <path d="M99.9624 98.9193C97.6547 100.389 96.3053 102.358 95.9943 104.819C95.6033 107.287 96.173 109.656 97.6622 111.994C99.3061 114.575 101.331 116.145 103.755 116.735C106 117.311 108.316 116.86 110.624 115.39C112.719 114.056 114.063 112.346 114.675 110.292C115.149 108.624 115.055 106.934 114.491 105.245L111.272 107.295C111.427 108.476 111.417 109.465 111.141 110.238C110.771 111.199 110.035 112.052 108.911 112.768C107.636 113.58 106.363 113.793 105.131 113.468C103.881 113.112 102.732 112.18 101.643 110.739L113.546 103.158C111.736 100.383 109.706 98.6033 107.486 97.798C105.028 96.8878 102.513 97.2947 99.9624 98.9193ZM101.736 101.503C104.287 99.8784 106.584 100.336 108.628 102.875L100.157 108.271C99.4879 106.819 99.3051 105.527 99.5283 104.403C99.7929 103.21 100.521 102.277 101.736 101.503Z" fill="#646A73"/>\n <path d="M112.26 84.5562L109.892 87.9423L112.271 91.677L109.356 93.5337L111.058 96.2057L113.973 94.3491L119.775 103.458C120.568 104.703 121.441 105.47 122.473 105.752C123.525 106.063 124.76 105.789 126.096 104.938L128.677 103.294L126.975 100.622L124.91 101.938C124.515 102.189 124.164 102.242 123.866 102.175C123.549 102.079 123.264 101.833 122.993 101.408L117.191 92.299L120.774 90.0169L119.073 87.3449L115.49 89.627L112.26 84.5562Z" fill="#646A73"/>\n <path d="M128.043 81.0337C125.735 82.5035 124.386 84.4727 124.075 86.933C123.684 89.4015 124.254 91.7703 125.743 94.1083C127.387 96.6893 129.411 98.2595 131.836 98.8494C134.081 99.4255 136.397 98.9745 138.705 97.5047C140.8 96.1702 142.144 94.4606 142.756 92.4061C143.23 90.7382 143.136 89.0485 142.572 87.3589L139.353 89.409C139.508 90.5906 139.498 91.5791 139.222 92.3523C138.852 93.3133 138.115 94.1668 136.992 94.8824C135.717 95.6946 134.444 95.9078 133.212 95.5825C131.961 95.2268 130.812 94.294 129.724 92.8532L141.627 85.272C139.817 82.4978 137.787 80.7177 135.567 79.9124C133.109 79.0023 130.594 79.4092 128.043 81.0337ZM129.817 83.6173C132.367 81.9928 134.665 82.4502 136.709 84.9896L128.237 90.3854C127.569 88.9333 127.386 87.6412 127.609 86.5174C127.874 85.3245 128.602 84.3909 129.817 83.6173Z" fill="#646A73"/>\n <path d="M146.018 61.1766L151.588 69.9214C149.133 68.8815 146.943 68.9956 145.03 70.214C142.783 71.6451 141.514 73.606 141.283 76.0579C141.036 78.3497 141.677 80.6301 143.147 82.9378C144.675 85.3365 146.539 86.9234 148.721 87.668C151.071 88.476 153.415 88.1355 155.722 86.6656C157.848 85.3118 158.985 83.478 159.111 81.2636L160.31 83.1462L163.316 81.2315L149.236 59.1265L146.018 61.1766ZM147.422 72.3611C148.606 71.6069 149.868 71.4434 151.277 71.9122C152.724 72.4418 154.019 73.5374 155.102 75.2378L155.276 75.5111C156.282 77.09 156.76 78.578 156.73 80.0055C156.637 81.6014 155.942 82.8553 154.545 83.7449C152.966 84.7506 151.414 84.9279 149.97 84.2686C148.714 83.7031 147.559 82.5605 146.457 80.8297C145.354 79.099 144.837 77.5502 144.925 76.2138C144.988 74.6372 145.843 73.3668 147.422 72.3611Z" fill="#646A73"/>\n </svg>',[I.ja]:'<svg viewBox="0 0 208 208" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M202.916 76.4341L172.319 28.3868C169.635 24.2 164.094 22.9641 159.903 25.5871L8.61611 121.783C4.45073 124.456 3.24127 130.005 5.87563 134.192L36.4974 182.239C39.1821 186.426 44.7226 187.662 48.8881 185.013L200.175 88.8179C204.341 86.1696 205.575 80.6209 202.916 76.4341ZM196.883 83.6727L45.5955 179.868C44.2656 180.726 42.5027 180.322 41.6416 178.985L11.045 130.938C10.1839 129.601 10.579 127.836 11.9089 126.978L163.196 30.7828C164.526 29.9505 166.289 30.3288 167.125 31.6908L197.722 79.7381C198.582 81.0244 198.212 82.7899 196.883 83.6727ZM22.6933 106.851C21.897 79.1076 35.2421 51.6664 60.2602 35.7767C85.2782 19.8871 115.771 19.4331 140.607 31.8926L146.579 28.1093C139.24 23.9982 131.327 20.9968 123.016 19.1304C111.909 16.6335 100.611 16.3056 89.4475 18.1468C77.8817 20.0636 66.9546 24.2504 56.9926 30.6063C47.0307 36.9621 38.6109 45.0583 31.959 54.7182C25.532 64.025 21.0217 74.4163 18.5777 85.5139C16.7509 93.837 16.1322 102.261 16.7464 110.66L22.6933 106.851ZM185.565 102.614C186.386 130.358 173.041 157.799 148.048 173.689C123.03 189.604 92.5378 190.058 67.7272 177.598L61.7551 181.407C69.0941 185.493 77.0072 188.519 85.3181 190.386C96.4244 192.883 107.723 193.21 118.886 191.369C130.452 189.452 141.379 185.266 151.316 178.935C161.278 172.579 169.698 164.483 176.35 154.823C182.752 145.491 187.262 135.125 189.706 124.027C191.533 115.704 192.151 107.28 191.537 98.8813L185.565 102.614Z" fill="#646A73"/>\n <path d="M49.9875 116.277L56.0796 125.842L49.5614 129.994L64.1824 152.949L67.5123 150.828L62.7063 143.283L72.4127 137.1L74.3757 140.182C74.9397 141.068 74.808 141.799 73.9578 142.341L70.7147 144.207L73.573 146.818L76.9384 144.675C79.2764 143.186 79.7137 141.214 78.1794 138.805L65.9276 119.57L59.3032 123.789L53.2112 114.224L49.9875 116.277ZM58.8029 137.154L68.5092 130.972L70.5851 134.231L60.8787 140.413L58.8029 137.154ZM66.7042 128.138L56.9978 134.32L54.9446 131.096L64.6509 124.914L66.7042 128.138ZM45.7758 120.454L43.883 123.502C46.2027 124.564 48.6095 125.919 51.0454 127.555L52.832 124.574C50.4187 122.974 48.0473 121.597 45.7758 120.454ZM58.857 111.674C59.3637 114.19 59.6451 116.898 59.6076 119.811L62.9222 119.542C62.9822 116.665 62.8071 113.889 62.3261 111.257L58.857 111.674ZM65.5601 110.94L79.3236 132.549L82.5473 130.496L68.7837 108.887L65.5601 110.94ZM90.6154 135.814C93.0952 134.235 93.5002 132.134 91.8756 129.584L73.78 101.173L70.4501 103.294L88.0042 130.854C88.7262 131.988 88.5559 132.893 87.5286 133.547C85.899 134.585 84.1181 135.62 82.2212 136.629L84.9829 139.402L90.6154 135.814Z" fill="#646A73"/>\n <path d="M79.5806 99.0221L99.6618 130.55L102.956 128.452L84.8832 100.077L88.8862 97.5269C89.9345 100.893 90.8896 104.816 91.7643 109.238C95.7271 110.847 98.4821 112.827 99.9938 115.201C100.377 115.803 100.506 116.318 100.439 116.76C100.291 117.153 99.8853 117.61 99.1865 118.155C98.6905 118.471 98.0432 118.783 97.2316 119.151L100.531 121.83C102.905 120.318 104.276 118.797 104.682 117.244C104.868 116.13 104.42 114.722 103.359 113.057C101.683 110.738 98.8154 108.581 94.8492 106.576C93.9584 102.363 92.9905 98.498 91.9711 94.8649L90.2788 92.208L79.5806 99.0221ZM118.862 117.773C120.916 116.465 121.235 114.619 119.79 112.351L113.563 102.574L121.215 97.7006L119.139 94.4415L111.487 99.3152L109.321 95.9144L113.36 93.3422L111.848 90.9688C113.336 91.1163 114.873 91.1834 116.528 91.1247L116.685 86.9918C110.97 87.2453 105.957 86.2552 101.589 84.0086L98.3295 86.0844C98.2672 91.3028 97.0902 96.3349 94.7053 101.19L98.4232 102.806C99.0573 101.456 99.6108 100.058 100.106 98.6465L101.528 100.878L105.92 98.0805L108.086 101.481L100.081 106.581L102.156 109.84L110.162 104.74L115.848 113.667C116.345 114.447 116.297 115.075 115.73 115.436C114.738 116.068 113.665 116.651 112.535 117.222L115.355 120.007L118.862 117.773ZM100.582 97.0486C101.387 94.2458 101.856 91.3078 101.99 88.2347C104.69 89.5028 107.48 90.3649 110.43 90.7761L100.582 97.0486ZM118.855 101.892L117.272 105.192C120.8 106.978 123.828 108.684 126.309 110.39L127.925 106.672C125.544 105.201 122.525 103.589 118.855 101.892ZM106.441 109.999C106.945 113.761 106.965 117.234 106.455 120.497L110.517 120.698C110.915 117.258 110.829 113.528 110.248 109.566L106.441 109.999Z" fill="#646A73"/>\n <path d="M116.209 74.5966L115.302 78.4109C119.004 78.593 122.07 79.0299 124.503 79.7214L125.329 75.8588C122.675 75.2092 119.63 74.8078 116.209 74.5966ZM121.299 83.0567L120.392 86.8711C124.09 87.2046 127.154 87.7928 129.654 88.5907L130.503 84.7635C127.793 83.9496 124.694 83.3839 121.299 83.0567ZM130.47 90.8098C131.76 95.9633 132.758 101.204 133.44 106.496L137.402 105.915C136.681 100.796 135.603 95.5075 134.168 90.0481L130.47 90.8098ZM124.561 72.4639L126.501 75.5105L129.938 73.3218C132.541 74.751 135.144 75.6326 137.828 76.0148C136.099 78.4604 133.658 80.9611 130.599 83.5072L133.886 85.6963C137.376 82.5767 140.065 79.3705 141.903 76.1581C145.974 75.9052 150.338 74.47 155.053 71.8653L154.211 68.1193C150.366 70.3693 146.852 71.8106 143.647 72.4079C144.638 69.5856 145.059 66.7282 144.851 63.8227L148.606 61.431L146.666 58.3845L137.208 64.4089C136.247 63.5267 135.342 62.8087 134.517 62.139L131.442 64.8944C132.247 65.3773 133.04 65.9181 133.842 66.5524L124.561 72.4639ZM133.197 71.246L141.274 66.1016C141.274 68.2921 140.763 70.4602 139.749 72.6994C137.327 72.6488 135.159 72.1375 133.197 71.246ZM142.616 87.2067L152.464 80.9342L154.291 83.8036L144.089 90.3017C143.68 89.2679 143.177 88.2437 142.616 87.2067ZM145.089 93.7481L156.142 86.7084L159.661 92.2346L162.92 90.1588L152.632 74.0052L149.373 76.081L150.636 78.0648L140.824 84.3148L139.447 82.1539L136.188 84.2297L138.783 88.3035C141.197 92.0939 141.959 96.3392 141.162 101.03L145.192 101.65C145.61 98.9438 145.583 96.3217 145.089 93.7481Z" fill="#646A73"/>\n </svg>'}},Z=(e,t)=>{try{var a=(t||"zh").split("-").shift();return H[e][a]}catch(e){v.a.error("[src/pc/utils/print/types.ts]",e),Object(B.b)(F.f.ApprovalError,{location:"in function getStampUrl at src/utils/print/types.ts",message:JSON.stringify(e)})}return""},q=function(){var e=Object(i.a)((function*(e){var t,{SCALE_RATE:a,user:r}=e,{serialId:i,serialIdLabel:n}=e.instance,o=null===(t=e.userConfig)||void 0===t?void 0:t.has_watermark_and_qrcode,{approvalName:s,customTitle:c}=e.approval.meta,l="".concat(n,": ").concat(i),d={width:50*a,tips1:Object(N.t)("feishu_lark.Print.qrCodeTips3",{feishu:Object(N.t)(D.b)}),tips2:l},u="".concat(d.width,"px");return'\n <div class="approval-header" style="min-height: '.concat(u,'">\n ').concat(o?((e,t,a)=>{var{width:r,scaleRate:i}=a,n=P(e,14)<=495-r/i;return'<div class="approval-flexible-title" style="padding-left: '.concat(n?"".concat(r,"px"):0,"; padding-bottom: ").concat(n?0:"".concat(r,"px"),'">\n <text>').concat(E(e),"</text>\n ").concat(t?'<div class="approval-title-divider"></div><text>'.concat(E(t),"</text>"):"","\n </div>")})(s,c,Object(M.a)(Object(M.a)({},d),{},{scaleRate:a})):((e,t)=>'<div class="approval-title">\n <text>'.concat(E(e),"</text>\n ").concat(t?'<div class="approval-title-divider"></div><text>'.concat(E(t),"</text>"):"","\n </div>"))(s,c),"\n ").concat(o?yield K(d,e.instance):"".concat((e=>'\n <div class="approval-code">'.concat(E(e),"</div>\n "))(l)),'\n <div class="printer-info">\n <div>').concat(Object(N.t)("Print.print_user"),": ").concat(E(r.name),"</div>\n <div>").concat(Object(N.t)("Print.print_time"),": ").concat(function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"---- --:--";if(!e||"number"!=typeof e)return a;var r=new Date(e),{YYYY:i,MM:n,DD:o,h:s,hh:c,mm:l,noon:d}=L(e);switch(t){case"MM-DD hh:mm":return"".concat(n,"-").concat(o," ").concat(c,":").concat(l);case"YYYY-MM-DD hh:mm":return"".concat(i,"-").concat(n,"-").concat(o," ").concat(c,":").concat(l);case"MM-DD noon":return"".concat(n,"-").concat(o," ").concat(d);case"YYYY-MM-DD":return"".concat(i,"-").concat(n,"-").concat(o);case"YYYY.MM.DD":return"".concat(i,".").concat(n,".").concat(o);case"YYYY-MM-DD noon":return"".concat(i,"-").concat(n,"-").concat(o," ").concat(d);case"hh:mm|MM-DD":return S(r)?"".concat(c,":").concat(l):"".concat(n,"-").concat(o);case"hh:mm":return"".concat(c,":").concat(l);case"multi_rules":var u=(new Date).getTime()-e,p=3e4,m=36e5-p;if(u<=p)return Object(N.t)("JustNow");if(u<=m){var h=Math.ceil(u/60/1e3);return Object(N.t)("MinutesAgo",{minute:h})}if(u>m){if(S(r)){var b=(new Date).getHours()-s;return(new Date).getMinutes()>30&&(b+=1),Object(N.t)("HoursAgo",{hour:b})}return w(r)?"".concat(n,"-").concat(o," ").concat(c,":").concat(l):"".concat(i,"-").concat(n,"-").concat(o," ").concat(c,":").concat(l)}break;default:return v.a.warn("[Time util] Invalid format type: ".concat(t)),"".concat(n,"-").concat(o," ").concat(c,":").concat(l)}}(r.time,"YYYY-MM-DD hh:mm"),"</div>\n </div>\n </div>")}));return function(t){return e.apply(this,arguments)}}(),K=function(){var e=Object(i.a)((function*(e,t){var{data:{base64Result:a}}=yield b.c.qrCodeGenerate({content:U(t)}),{width:r,tips1:i,tips2:n}=e;return'<div class="qrcode">\n <img width="'.concat(r,'" height="').concat(r,'" src="data:image/png;base64,').concat(a,'" />\n <div class="tips">\n <div>').concat(i,"</div>\n <div>").concat(n,"</div>\n </div>\n </div>")}));return function(t,a){return e.apply(this,arguments)}}(),J={[z.Approved]:Object(N.t)("approval_print.Add_watermark.Approval_passed"),[z.Deleted]:Object(N.t)("approval-mp_Deleted_Tag"),[z.Terminated]:Object(N.t)("approval-mp_Terminated_Tag"),[z.Processing]:Object(N.t)("approval_print.Add_watermark.Approval_pending"),[z.Revoked]:Object(N.t)("approval_print.Add_watermark.Approval_revoked"),[z.Rejected]:Object(N.t)("approval_print.Add_watermark.Approval_rejected"),[z.Cleared]:Object(N.t)("approval-mp_Deleted_Tag")},X=a(29),$=e=>e?'<tr>\n <td colspan="5" class="with-bg">'.concat(Object(N.t)("Print.modifyReasonContent"),'</td>\n <td colspan="21"><div class="td-content">').concat(E(e),"</div></td>\n </tr>"):"",ee=(e,t)=>e||t?e&&!t?"<tr>".concat(te(e,21),"</tr>"):!e&&t?"<tr>".concat(ae(t,21),"</tr>"):"<tr>\n ".concat(te(e,8),"\n ").concat(ae(t,8),"\n </tr>"):"",te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return'<td colspan="5" class="with-bg">'.concat(Object(N.t)("ApprovalForm.UploadImage"),'</td>\n <td colspan="').concat(t,'">').concat(Object(N.t)("Print.PictureCount",{count:e}),"</td>")},ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return'<td colspan="5" class="with-bg">'.concat(Object(N.t)("ApprovalForm.UploadAttachment"),'</td>\n <td colspan="').concat(t,'">').concat(Object(N.t)("Print.AttachmentCount",{count:e}),"</td>")},re=e=>"\n ".concat(Y({title:Object(N.t)("Print.ApprovalContent")}),"\n ").concat((e=>{var t=e.data;return V(t)})(e.approval.form),"\n"),ie=a(21),ne=e=>{var t=oe(e);return e.map(((e,a)=>{var r=t.find((e=>e[0]===a));return"\n <tr>\n ".concat(se(e,r),"\n ").concat(ce(e),"\n ").concat(le(e),"\n </tr>")})).join("")},oe=e=>{if(!e.length)return[];for(var t=[],a=0,r=e[0].nodeKey,i=0;i<e.length;i++)e[i].nodeKey&&e[i].nodeKey!==r&&(t.push([a,i]),a=i,r=e[i].nodeKey);return t.push([a,e.length]),t.filter((e=>e[0]!==e[1]))},se=(e,t)=>null==t||!t.length||t[1]<t[0]?"":'\n <td colspan="5" rowspan="'.concat(t[1]-t[0],'" class="with-bg">\n <div class="td-content">').concat(E(e.nodeName),"</div>\n </td>"),ce=e=>{var{userName:t,operation:a,time:r,comment:i,signature:n}=e,{commentStr:o,fileStr:s}=i||{},c=Boolean(o)||Boolean(s)||Boolean(n);return"<td colspan=".concat(c?"10":"21",'><div class="td-content">').concat(E(t)," / ").concat(a," / ").concat(r||"-","</div>\n </td>")},le=e=>{var{commentStr:t,fileStr:a}=e.comment||{};if(!t&&!a&&!e.signature)return"";var r=[k(t),a].filter((e=>Boolean(e))).join(" / ");return'<td colspan="11">\n '.concat((e=>e?'<div class="td-content">'.concat(E(e),"</div>"):"")(r),"\n ").concat(de(e.signature),"\n </td>")},de=e=>null!=e&&e.img?'<img class="print-signature" src="'.concat(e.img,'"/>'):"",ue=e=>{var{SCALE_RATE:t}=e;return"\n <colgroup>\n ".concat('<col span="1" style="width: 10%;">'.repeat(10),"\n </colgroup>\n "),'\n <table style="table-layout: fixed;">\n '.concat((e=>{var{status:t,creator:a,creatorDepartment:r,createTime:i}=e.instance,n=[{label:Object(N.t)("Role_Requester"),value:a},{label:Object(N.t)("Print.approvalTime"),value:i},{label:Object(N.t)("UserDepartment"),value:r},{label:Object(N.t)("list.approval_status"),value:J[t]}];return"".concat(V(n))})(e),"\n ").concat((e=>{var t,a,r,i,n,{modifyReason:o}=e.approval;if(!(null!=o&&o.text||null!=o&&null!==(t=o.files)&&void 0!==t&&t.length))return"";var s=null===(a=o.files)||void 0===a||null===(r=a.filter((e=>e.type===X.h.IMG)))||void 0===r?void 0:r.length,c=null===(i=o.files)||void 0===i||null===(n=i.filter((e=>e.type===X.h.ATTACH)))||void 0===n?void 0:n.length;return"\n ".concat(Y({title:Object(N.t)("Detail_modifyReason")}),"\n ").concat($(o.text),"\n ").concat(ee(s,c),"\n ")})(e),"\n ").concat(re(e),"\n ").concat((e=>{var t,a;return null!==(t=e.approval)&&void 0!==t&&null!==(a=t.timeline)&&void 0!==a&&a.length?e.approval.timeline.map((e=>"\n ".concat(Y({title:e.title}),"\n ").concat(ne(e.data),"\n "))).join(""):""})(e),"\n </table>\n")},pe=function(){var e=Object(i.a)((function*(e){var t;e.SCALE_RATE=1.3;var{SCALE_RATE:a,lang:r,watermarkUrl:i}=e,n=e.user.name,o=Boolean(null===(t=e.userConfig)||void 0===t?void 0:t.has_watermark_and_qrcode),{status:s}=e.instance,c=(e=>{var{SCALE_RATE:t=1}=e;return"\n html, body {\n height: auto;\n }\n @page {\n margin: ".concat(46*t,"px ").concat(50*t,"px ").concat(46*t,"px ").concat(49*t,"px;\n }\n .page {\n position: relative;\n max-width: ",960,"px;\n width: 100%;\n box-sizing: border-box;\n margin: 0 auto;\n /*padding: 0 {16 * SCALE_RATE}px;*/\n page-break-after: always;\n }\n .hidden-watermark {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n pointer-events: none;\n }\n .stamp {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 99;\n width: ").concat(62*t,"px;\n height: ").concat(62*t,"px;\n }\n .stamp:first-child {\n width: ").concat(62*t,"px;\n height: ").concat(62*t,"px;\n }\n .approval-title,\n .approval-flexible-title {\n font-size: ").concat(14*t,"px;\n line-height: ").concat(22*t,"px;\n text-align: center;\n font-weight: 500;\n color: #1F2329;\n }\n .approval-title {\n padding-bottom: ").concat(24*t,"px;\n }\n .approval-title > text,\n .approval-flexible-title > text {\n word-break: break-word;\n }\n .approval-title-divider {\n display: inline-block;\n border-left: 1px solid rgba(31, 35, 41, 0.15);\n height: ").concat(14*t,"px;\n margin: 0 8px 3px 3px;\n vertical-align: middle;\n }\n .approval-code {\n position: absolute;\n bottom: 0;\n left: 0;\n font-size: ").concat(8*t,"px;\n line-height: ").concat(12*t,"px;\n color: #646A73;\n }\n .approval-content {\n position: relative;\n }\n table {\n border-collapse: collapse;\n width: 100%;\n font-size: ").concat(9*t,"px;\n }\n table td {\n box-sizing: border-box;\n padding: ").concat(2*t,"px ").concat(7*t,"px;\n font-size: ").concat(9*t,"px;\n line-height: ").concat(16*t,"px;\n border: 1px solid #2B2F36;\n word-break: break-word !important;\n text-align: left;\n vertical-align: top;\n }\n td.section-title {\n height: ").concat(50*t,"px;\n background: #f0f0f0;\n border-top-width: ").concat(3*t,"px;\n }\n .td-content {\n word-wrap: break-word;\n white-space: pre-wrap;\n display: flex;\n align-items: center;\n min-height: ").concat(17*t,"px;\n line-height: ").concat(16*t,"px;\n }\n .watermark {\n position: fixed;\n top: -5%;\n right: -5%;\n bottom: -5%;\n left: -5%;\n width: 120%;\n height: 120%;\n pointer-events: none;\n z-index: 100;\n display: flex;\n flex-wrap: wrap;\n opacity: 0.08;\n background: rgba(0, 0, 0, .07);\n }\n ul.watermark li {\n width: 20%;\n height: 20vh;\n line-height: 20%;\n text-align: center;\n vertical-align: middle;\n list-style: none;\n padding: 0px;\n margin: 0px;\n transform: rotate(-45deg);\n transform-origin: 50% 50%;\n }\n .approval-header {\n position: relative;\n font-weight: 500;\n margin-bottom: ").concat(8*t,"px;\n font-size: ").concat(8*t,"px;\n color: #646A73;\n line-height: ").concat(12*t,"px;\n page-break-inside:avoid;\n }\n .printer-info {\n position: absolute;\n right: 0;\n bottom: 0;\n }\n .printer-info > div {\n text-align: right;\n }\n .qrcode {\n position: absolute;\n bottom: 0;\n left: 0;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n\n font-style: normal;\n font-weight: normal;\n }\n .qrcode img {\n margin-right: ").concat(6*t,"px;\n }\n .qrcode .tips {\n text-align: left;\n color: #646A73;\n }\n .with-bg {\n background: #F2F3F5;\n -webkit-print-color-adjust: exact;\n }\n .with-bg-multi {\n vertical-align: initial;\n }\n .partial-title {\n text-align: center;\n font-weight: 500;\n font-size: ").concat(9*t,"px;\n min-height: ").concat(17*t,"px;\n line-height: ").concat(16*t,"px;\n }\n .partial-title-normal {\n font-weight: normal;\n text-align: left;\n }\n .partial-title-normal__summary {\n background: #FFF;\n }\n .partial-title-normal__summary > div {\n position: relative;\n padding-left: ").concat(4*t,"px;\n }\n .partial-title-normal__summary > div::before {\n content: '';\n position: absolute;\n display: block;\n height: ").concat(8*t,"px;\n left: 0;\n top: ").concat(8*t,"px;\n transform: translateY(-50%);\n border-left: 1px solid #000;\n }\n .print-signature {\n display: block;\n width: ").concat(72*t,"px;\n height: ").concat(36*t,"px;\n }\n .detail-form-container {\n display: grid;\n }\n .blank-line {\n height: ").concat(4*t,"px;\n border: 1px solid #DEE0E3;\n }\n ")})({SCALE_RATE:a}),l=c,d=(e=>{if(!e)return"";var t='<img src="'.concat(e,'" />').repeat(5);return'<div class="hidden-watermark">'.concat(t,"</div>")})(i),u='\n <div class="page">\n \x3c!--打印标题和状态印章--\x3e\n '.concat(d||"","\n ").concat(o?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:121,a="<li>".concat(E(e),"</li>").repeat(t);return'\n <ul class="watermark">'.concat(a,"</ul>\n ")}(n):"","\n ").concat(yield q(e),'\n <div class="approval-content">\n ').concat(o?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z.Deleted;return'\n <div class="stamp">'.concat(Z(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh"),"</div>\n ")}(s,r):"","\n ").concat(ue(e),"\n </div>\n </div>\n ");return{documentHead:l,documentBody:u}}));return function(t){return e.apply(this,arguments)}}();function me(e){var{lang:t}=e;return x(t),pe(e)}var he=a(144),be=a(328),ge=a(854),ve=a(524),je=a(98);var Oe=Object(s.k)((function*(e){var{instanceIdList:t,isAtPendingPage:a,configurableFormStore:r,modifyInstanceIdList:i=[],userStore:n,isHosting:o}=e;if(null!=i&&i.length)return yield function(e,t,a){return fe.apply(this,arguments)}(i,r,n);var s=Object(N.t)("Detail.Process"),c=[];if(t&&t.length){var l=t.length>1?"".concat(t.length):"";s="".concat(Object(N.t)("Detail_CanceledInstance")," ").concat(l);var d=t.map((e=>r.fetchOriginalInstance(e)));(yield Promise.all(d)).forEach(((e,t)=>{var a=0===t?Object(N.t)("Detail_OriginInstance"):"".concat(Object(N.t)("Detail_CanceledInstance")," ").concat(t);c.push({title:a,data:Ce(Object(be.c)(e,r,0===t),n)})}))}var u=c.length>0;return c.push({title:s,data:Ce(Object(be.b)(r,!1,a,"",!u),n,o)}),c}));function fe(){return fe=Object(i.a)((function*(e,t,a){var r=yield Promise.all(e.map((e=>t.fetchOriginalInstance(e))));return console.log("modify reason in print:",r.map((e=>e.modifyReason))),r.map(((e,i)=>{var n=0===i,o=r.length>2;return{title:n?Object(N.t)("Detail_OriginInstance"):o?"".concat(Object(N.t)("ModifyProcess")," ").concat(i):Object(N.t)("ModifyProcess"),data:Ce(Object(be.c)(e,t,n),a),modifyReason:e.modifyReason}}))})),fe.apply(this,arguments)}function Me(e){return y()(e).format("YYYY-MM-DD HH:mm")}function _e(e,t){var{status:a,oriTimeForSort:r,displayTime:i,nodeKey:n,nodeName:o,insteadCreator:s}=e,{mainTitle:c}=e,l=Object(je.c)(e,t);l&&(c+=" (".concat(l,")")),s&&(c+=" ".concat(Object(N.t)("approvalForm.instead",{name:s.userName})));var d={userName:c,time:Me(i||r),nodeKey:n,nodeName:o};return a&&(d.operation=ie.f[a],e.isHandleType&&(d.operation=a===ie.k.CURRENT?Object(N.t)("approval-mp_Processing_Tag"):Object(N.t)("approval-mp_Completed_Tag"))),d}function ye(e){return function(e){if(e&&e.hasOwnProperty("text")&&e.hasOwnProperty("files")){var t,a,r=e,i=null===(t=r.files)||void 0===t?void 0:t.filter((e=>e.type===X.h.IMG)).length,n=null===(a=r.files)||void 0===a?void 0:a.filter((e=>e.type===X.h.ATTACH)).length,o="".concat(i?"".concat(Object(N.t)("Print.ImageCount",{count:"".concat(i," ")})," "):"").concat(i&&n?Object(N.t)("Dayton"):"").concat(n?"".concat(Object(N.t)("Print.AttachCount",{count:"".concat(n," ")})," "):"").trim();return{commentStr:(null==r?void 0:r.text)||"",fileStr:o}}return null}(((e||[]).find((e=>e.type===ie.l.COMMENT))||{type:ie.l.COMMENT,data:null}).data)}function De(e,t){(e.status===ie.k.ICC||e.isCcNode)&&(e.mainTitle=Object(N.t)("Detail.System"));var a,r={};return r=_e(e),null!=t&&t.length&&(t.forEach((e=>{switch(e.type){case ie.l.COMMENT:r&&(r.comment=ye(t));break;case ie.l.MEMBER_LIST:a=e.data.map((e=>e.userName))}})),r.operation="".concat(Object(N.t)("Detail.CCToNPeople",{count:a.length})," ").concat(a.join(Object(N.t)("Dayton")))),r}var Ne=e=>{var t;return e.status===ie.k.COMMENT&&(null===(t=e.childrens)||void 0===t?void 0:t.every((e=>{var t,a;return Boolean(null===(t=e.ext)||void 0===t||null===(a=t.commentData)||void 0===a?void 0:a.isDelete)})))};function Ae(e){var t=((e||[]).find((e=>e.type===ie.l.SIGNATURE))||{type:ie.l.SIGNATURE,data:{}}).data;return{label:t.signatureLabel,img:t.signatureUrl}}function Te(e){return e.map((e=>{var{nodeName:t,userList:a=[]}=e;return t+Object(ve.b)(a)})).join("、")}function Ie(e){var[t]=e||[],{userList:a=[]}=t||{};return Object(ve.b)(a)}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.map((e=>{var{status:r,mainTitle:i,oriTimeForSort:n,childrens:o,rollbackInfos:s=[],isRejectTask:c}=e;switch(r){case ie.k.CREATE:var l=_e(e);return l.nodeName=Object(N.t)("Submit"),l;case ie.k.COMMENT:return Ne(e)?null:Object(M.a)(Object(M.a)({},_e(e,t)),{},{comment:ye(e.childrens||[])});case ie.k.CREATE_MODIFY:var d=_e(e);return o&&o.length&&(d.comment=ye(o)),d.nodeName=Object(N.t)("ModifyTag"),d;case ie.k.CREATE_WITHDRAW:var u=_e(e);return o&&o.length&&(u.comment=ye(o)),u.nodeName=Object(N.t)("Detail.Recalled"),u;case ie.k.AGREE:case ie.k.REJECT:var p=_e(e,t);return p.status=r,o&&o.length&&(p.comment=ye(o),p.signature=Ae(o)),p;case ie.k.AUTO_PASS:var m=_e(e);return e.nodeKey||(m.nodeKey="AUTO_PASS_".concat(1e3*Math.random()|0),m.nodeName=m.userName=Object(N.t)("Detail.System")),o&&o.length&&(m.operation=o[0].data),m.status=ie.k.AGREE,m;case ie.k.REDIRECT:var h=_e(e);return h.operation=e.descContent,o&&o.length&&(h.comment=ye(o)),h;case ie.k.CC:case ie.k.ICC:return De(e,o);case ie.k.ROLLBACK:return Object(M.a)(Object(M.a)({},_e(e)),{},{comment:ye(e.childrens||[]),status:r,operation:c?"".concat(Object(N.t)("approval-mp_RejectToSubmitter_Desc")," ").concat(Ie(s)):"".concat(Object(N.t)("approval-mp_SentBack_Desc")," ").concat(Te(s))});case ie.k.ADD_APPROVER:case ie.k.DELETE_APPROVER:var b=_e(e);return b.operation=e.descContent,b.comment=ye(o||[]),b;case ie.k.WITHDRAW:var g=_e(e);return g.status=r,g;case ie.k.DELETE:var v={userName:i,time:Me(n)};if(o&&o.length){var j=o.find((e=>e.type===ie.l.NO_BG_TEXT));v.operation=j?j.data:""}return v.operation=v.operation||e.descContent,v.status=r,v;case ie.k.TERMINATED:var O={userName:i,time:Me(n)};if(null!=o&&o.length){var f=o.find((e=>e.type===ie.l.NO_BG_TEXT));O.operation=f?f.data:""}return O.operation=O.operation||e.descContent,O.status=r,a&&(O.userName=Object(N.t)("Detail.System")),O;case ie.k.SEEK_ADVICE:var _=_e(e);return _.operation=e.descContent,_.comment=ye(o||[]),_;case ie.k.CURRENT:if(o&&o.length){var y={nodeName:e.nodeName,nodeKey:e.nodeKey,status:e.status},D=o.find((e=>e.type===ie.l.NO_BG_TEXT)),A=o.find((e=>e.type===ie.l.MEMBER_LIST));if(D&&y.nodeName&&(y.nodeName+=" (".concat(D.data,")")),A){var T=A.data;y.userName=T.map((e=>{var{userName:a}=e,r=Object(je.c)(e,t);return r?"".concat(a," (").concat(r,")"):a})).join(", "),y.operation=e.descContent}return y}}return null}));return Object(ge.a)(r.filter((e=>Boolean(e))))}var xe,Se,we,Le,Ee,ke,ze,Re,Pe,Ue,Be,Fe,Ye,Qe,Ge,We,Ve,He,Ze=a(25),qe=a(20),Ke=a(527),Je=a(166),Xe=Object(qe.c)("pc:src/components/approval-detail/utils/print.ts"),$e=function(){var e=Object(i.a)((function*(){try{var{data:{WatermarkURL:e}}=yield b.c.getHiddenWatermark({Color:"rgb(255,255,255)"});return"data:image/png;base64,".concat(e)}catch(e){return""}}));return function(){return e.apply(this,arguments)}}(),et=function(){var e=Object(i.a)((function*(e){var{id:t,parentId:a,shareCode:r,userStore:i=new Ze.b,configurableFormStore:n=new he.c({userStore:i}),isAtPendingPage:o=!1,subordinateID:s,isHosting:c}=e;Je.b.time(Je.a.FetchDetail);var[,l]=yield Promise.all([n.fetchInstance({id:t,parentId:a,shareCode:r,ignoreCache:!0,instanceLoading:!1,subordinateID:s}),$e()]);Je.b.timeEnd(Je.a.FetchDetail,"mp_print_spend_time"),Xe("printInputParams",{id:t,parentId:a,shareCode:r,isAtPendingPage:o,instanceInfo:Object(M.a)({},n.instanceInfo)});var{fetchInstanceError:d}=n;if(d)throw d;var{instanceInfo:u}=n;if(!u)return null;var{creatorDepartmentList:p,creatorUserName:m,createTime:h,serialId:b,instanceId:g,instanceName:v,instanceIdList:j,instanceStatus:O,modifyInstanceList:f,modifyReason:_,creatorTenantId:D,b2bFlag:A,creatorTenantName:T,customTitle:I}=u,C=n.outputForPrint();console.log("fakeLogTime widget num",C.length),Je.b.time(Je.a.FetchFlow);var x=yield Oe({instanceIdList:j,isAtPendingPage:o,configurableFormStore:n,modifyInstanceIdList:f,userStore:i,isHosting:c});console.log("fakeLogTime timeline flow",x.reduce(((e,t)=>{var a;return e+(null===(a=t.data)||void 0===a?void 0:a.length)||0}),0)),Je.b.timeEnd(Je.a.FetchFlow,"mp_print_spend_time");var{titleContent:S}=Object(Ke.a)(u,!1),w=i.enableShowCrossTenant,L=Object(je.c)({tenantId:D,tenantName:T},i),E=(L?"".concat(L,"/"):"")+p.join("/"),k=S+(w&&Boolean(A)?"(".concat(Object(N.t)("External_Tag"),")"):""),z=yield me({approval:{form:{data:C},timeline:x,meta:{approvalName:k,customTitle:I},modifyReason:_},instance:{id:g,name:v,status:O,serialId:b,serialIdLabel:Object(N.t)("Detail.SerialNumber"),creator:m,createTime:y()(h).format("YYYY-MM-DD"),creatorDepartment:E},user:{name:i.currentUser.name,time:Date.now()},userConfig:i.userConfig,lang:N.curStarlingLang,watermarkUrl:l});return z?Object(M.a)(Object(M.a)({timelineArr:x},z),{},{title:v}):null}));return function(t){return e.apply(this,arguments)}}(),at=a(24),rt=a(36),it=a(321),nt=a(19),ot=a.n(nt),st=a(390),ct=a(488),lt=a(39),dt=a(373),ut=a(54),pt=a(231),mt=a(682),ht=Object(qe.c)("pc:src/stores/index/detail-module-store.ts"),bt=Object(u.c)("3.44.0"),gt=(xe=s.f.bound,Se=class{setActiveWidgetIDForEditHistory(e){this.activeWidgetIDsForEditHistory=e}setPrintInstanceId(e){this.printInstanceId=e}setTenantPaidType(e){this.tenantPaidType=e}getPrintTemplateExist(e,t){var a=this;return Object(i.a)((function*(){try{if(at.b.globalStore.allowCustomPrintType===pt.a.TYPOGRAPHY_PRINT)return(yield b.c.getPrintTemplateStatus({ApprovalID:t})).data.Status===ct.b.Exist;var r=yield b.c.getCustomPrintStatus({BizType:ct.a.TemplateExist,BizID:e});return a.setTenantPaidType(r.data.TenantPaidType),r.data.status===ct.b.Exist}catch(e){return console.error("get print template status error"),!1}}))()}waitAuthorizedModalOperateRes(e){return Object(i.a)((function*(){try{e.setShowCustomPrintGetAuthorizedModal(!0);var t=yield new Promise((t=>{e.getAuthorizedModalPromise=t}));if("confirm"===t)return Object(B.b)("mp_print_user_agree"),e.setCustomPrintIsvAuthorized(!0),b.c.setIsvAuthorizedStatus({ClientID:Object(mt.b)(e.allowCustomPrintType),AuthorizedStatus:st.b.Authorized,type:1}),"confirm";if("cancel"===t)return Object(B.b)("mp_print_user_click_default"),"cancel";if("close"===t)return Object(B.b)("mp_print_user_permission_close"),"close"}catch(e){ht("commonOnError",{msg:JSON.stringify(e)})}return"close"}))()}showPrintAuthorizedModal(e,t,a){var r=this;return Object(i.a)((function*(){return null!=e&&e.allowCustomPrint&&a.customPrintIsvInstalled&&(yield r.getPrintTemplateExist(t,String(e.approvalDefinitionId)))?(a.setIsSupportCustom(!0),!!a.customPrintIsvAuthorized||"close"!==(yield r.waitAuthorizedModalOperateRes(a))):(at.b.globalStore.setIsSupportCustom(!1),!0)}))()}sendDataToPrint(e,t){var a=this;return Object(i.a)((function*(){var{definitionId:r,instanceId:i,processArr:n}=t||{};if(e)try{var o=yield b.c.sendInfoToPrintServer({ApprovalID:String(r||""),InstanceID:i||"",type:1,ApprovalProcesses:JSON.stringify(n)});a.setCustomPrintPreviewUrl(o.data.Url)}catch(e){console.error("post data err")}}))()}printByInstanceId(e){var t=arguments,a=this;return Object(i.a)((function*(){var r=t.length>1&&void 0!==t[1]&&t[1],i=t.length>2&&void 0!==t[2]?t[2]:at.b.globalStore,n=t.length>3&&void 0!==t[3]?t[3]:new he.c({userStore:i}),o=t.length>4&&void 0!==t[4]&&t[4],s=a.lastDebounceTime;if(a.lastDebounceTime=(new Date).valueOf(),!(s&&a.lastDebounceTime-s<1e3)){Object(B.b)("mp_print",{platform:"pc"}),a.printMode="default";try{var c,{indexStore:l,globalStore:d}=at.b,{widgets:p}=n,m=!n.instanceInfo,h=Object(u.c)("5.19.0")||"devtools"===lt.h.appName;if(a.setPrintInstanceId(e),!h)if(!(yield a.showUpdateAppModal(d)))return;var b=!((yield Object(dt.a)(ut.FG_CUSTOMIZE_PRINT))||(yield Object(dt.a)(ut.FG_USE_TYPOGRAPHY_PRINT)))||!h;if(!m){if(!(yield a.showPrintAuthorizedModal(n.instanceInfo,e,d)))return;b||d.setPrintModalVisible(!0)}Je.b.time(Je.a.GeneratePrintHtml),Je.b.time(Je.a.PrintClickToShowModal);var g=yield et({id:e,userStore:i,configurableFormStore:n,isAtPendingPage:l.isTodoNav,subordinateID:l.searchStore.isSubSearch?null===(c=l.currentSelected.activeDetail)||void 0===c?void 0:c.AssigneeID:void 0,isHosting:o}),{instanceInfo:j}=n;if(m){if(!(yield a.showPrintAuthorizedModal(n.instanceInfo,e,d)))return;b||d.setPrintModalVisible(!0)}if(Je.b.timeEnd(Je.a.GeneratePrintHtml,"mp_print_spend_time"),console.log("print timelineArr",null==g?void 0:g.timelineArr),b){if(null!=g&&g.documentBody&&null!=g&&g.documentHead){var O='<!DOCTYPE html>\n <html lang="zh">\n <head>\n '.concat(((e,t)=>'\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta http-equiv="X-UA-Compatible" content="ie=edge">\n <title>'.concat(e,"</title>\n <style>").concat(t,"</style>\n "))((null==j?void 0:j.instanceName)||"",g.documentHead),"\n </head>\n <body>\n ").concat(g.documentBody,"\n </body>\n </html>");console.log("use origin print. html string:\n",O),yield Object(rt.o)(O)}}else a.sendDataToPrint(d.isSupportCustom,{instanceId:e,definitionId:null==j?void 0:j.approvalDefinitionId,processArr:null==g?void 0:g.timelineArr}),d.setPrintHtmlString(g?{documentHead:g.documentHead,documentBody:g.documentBody,title:g.title}:null);var f=p.filter((e=>{var t;return Boolean(null===(t=e.data)||void 0===t?void 0:t.printable)})).map((e=>e.type));Object(B.b)("approval_print_widgets",{instance_id:e,instance_name:null==j?void 0:j.instanceName,widget_types:f.join(",")}),Object(B.b)("print_approval",{success:"true",page:"app_center"})}catch(e){v.a.info("[print] printByInstacneId",JSON.stringify(e,Object.getOwnPropertyNames(e))),Object(B.b)("print_approval",{success:"false",page:"app_center",error:JSON.stringify(e,Object.getOwnPropertyNames(e))}),r||(e.code===it.a.NoPermission?tt.showToast({title:Object(N.t)("Print_Instance_No_Permission"),icon:"error",duration:2e3}):tt.showToast({title:Object(N.t)("Detail.FailToPrint"),icon:"error",duration:3e3}))}}}))()}get isListEmpty(){return this.indexStore.getCurrentStore().baseStore.isListEmpty}setMockedApprovalInstance(e){this.mockedApprovalInstance=e}constructor(e){var t=this;Object(n.a)(this,"indexStore",void 0),Object(r.a)(this,"isShowCommentBtn",we,this),Object(r.a)(this,"setShowCommentBtn",Le,this),Object(r.a)(this,"isShowCommentGuide",Ee,this),Object(r.a)(this,"setShowCommentGuide",ke,this),Object(r.a)(this,"customPrintPreviewUrl",ze,this),Object(r.a)(this,"setCustomPrintPreviewUrl",Re,this),Object(r.a)(this,"isDetailFullWindow",Pe,this),Object(r.a)(this,"setDetailFullWindow",Ue,this),Object(r.a)(this,"active",Be,this),Object(r.a)(this,"setActive",Fe,this),Object(r.a)(this,"autoOpen",Ye,this),Object(r.a)(this,"setAutoOpen",Qe,this),Object(r.a)(this,"activeWidgetIDsForEditHistory",Ge,this),Object(n.a)(this,"printMode","default"),Object(r.a)(this,"printInstanceId",We,this),Object(r.a)(this,"tenantPaidType",Ve,this),Object(n.a)(this,"showUpdateAppModal",(e=>new Promise((t=>{e.openUDLikeModal({type:"warning",showCancel:!0,confirmText:Object(N.t)("approval-mp_OKGoUpdate_Button","去更新"),title:Object(N.t)("approval-mp_UpdateForLatestExp_Desc","建议更新飞书,体验新版打印"),content:Object(N.t)("approval-mp_CurrentVerOutdated_Desc","当前飞书版本过低,无法体验打印预览等功能,请更新飞书后尝试。"),cancelText:Object(N.t)("approval-mp_NotNowUpdate_Button","暂不更新"),onCancel:()=>{t(!0),e.closeUDLikeModal()},onConfirm:()=>{t(!1),e.closeUDLikeModal()}})})))),Object(n.a)(this,"lastDebounceTime",0),Object(r.a)(this,"mockedApprovalInstance",He,this),Object(n.a)(this,"memoryRead",new Set),Object(n.a)(this,"open",function(){var e=Object(i.a)((function*(e,a){if(Object(f.c)(e),e.listCard){var{System:r,TaskID:i,TaskUniqueID:n,DefinitionName:o,SourceName:s,ProcessID:u,Topic:m}=e.listCard;Object(O.b)({definition_name:null!=o?o:"",source_name:null!=s?s:"",system:r,app_mode:"app_center"});var g=r!==h.e.FeiShu,M=g?n:i;if(M&&!t.memoryRead.has(M)&&!t.indexStore.searchStore.isSubSearch){t.memoryRead.add(M),b.c.taskread({isExternal:g,taskId:M,sourceType:1})}if(u&&!t.memoryRead.has(u)&&m===p.i.UnreadNotice&&!t.indexStore.searchStore.isSubSearch){t.memoryRead.add(u);var _=t.indexStore.getCurrentStore();_.updateReadedCard(e.listCard),_.baseStore.fetchRead({all:!1,instanceIds:[u],procInstIDs:[],approvalIds:[],searchKey:""})}}c.a.commit(e),l.b.start(e);var y=a||t.isDetailFullWindow;if(t.setAutoOpen(y),!bt&&("drawer-miniapp"===e.type||"drawer-webview"===e.type||"iframe-webview"===e.type))return t.setActive(e);if(Object(j.a)("before-tryCloseDrawer"),Object(l.d)()&&(yield Object(d.c)().catch((e=>{v.a.info("close drawer error:",e)}))),Object(j.a)("end-tryCloseDrawer"),"drawer-miniapp"===e.type||"drawer-webview"===e.type||"browser"===e.type)if(y){var{onFinished:D,onPreventAutoNext:N,setDetailFullWindow:A}=t;A(!1),yield Object(d.b)(e,{onFinished:D,onPreventAutoNext:N}).catch((e=>{v.a.info("open drawer error:",e)})),setTimeout((()=>{t.setActive(e)}),1e3)}else t.setActive(e);else Object(j.a)("open-function"),t.setActive(e)}));return function(t,a){return e.apply(this,arguments)}}()),Object(n.a)(this,"reset",(()=>{this.setActive(null),Object(d.c)().catch((e=>{v.a.info("close drawer error:",e)}))})),Object(n.a)(this,"onFinished",(e=>{var t,a,{currentSelected:r}=this.indexStore;(null===(t=r.activeDetail)||void 0===t?void 0:t.ID)!==e&&(null===(a=r.activeDetail)||void 0===a?void 0:a.ProcessID)!==e||this.indexStore.onFinish(r.activeDetail)})),Object(n.a)(this,"handleAction",(e=>{this.indexStore.handleAction(e)})),Object(n.a)(this,"onPreventAutoNext",(e=>{var{value:t}=e;this.indexStore.handlePrevent(t)})),Object(n.a)(this,"tryTransferPreloadMessage",(e=>{m.a.transferPreloadData(e),g.b.notify({handler:"preload",data:e.filter((e=>{var{System:t}=e;return"feishu"===t}))})})),Object(n.a)(this,"resetData",(()=>{m.a.resetData()})),this.indexStore=e}},we=Object(o.a)(Se.prototype,"isShowCommentBtn",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Le=Object(o.a)(Se.prototype,"setShowCommentBtn",[s.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isShowCommentBtn=e}}}),Ee=Object(o.a)(Se.prototype,"isShowCommentGuide",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Object(o.a)(Se.prototype,"setShowCommentGuide",[s.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isShowCommentGuide=e}}}),ze=Object(o.a)(Se.prototype,"customPrintPreviewUrl",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=Object(o.a)(Se.prototype,"setCustomPrintPreviewUrl",[s.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.customPrintPreviewUrl=e}}}),Pe=Object(o.a)(Se.prototype,"isDetailFullWindow",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ue=Object(o.a)(Se.prototype,"setDetailFullWindow",[s.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.isDetailFullWindow=e,setTimeout((()=>{ot.a.eventCenter.trigger("onDetailSizeChange")}),200)}}}),Be=Object(o.a)(Se.prototype,"active",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=Object(o.a)(Se.prototype,"setActive",[s.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.active=e}}}),Ye=Object(o.a)(Se.prototype,"autoOpen",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=Object(o.a)(Se.prototype,"setAutoOpen",[s.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.autoOpen=e}}}),Ge=Object(o.a)(Se.prototype,"activeWidgetIDsForEditHistory",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(o.a)(Se.prototype,"setActiveWidgetIDForEditHistory",[xe],Object.getOwnPropertyDescriptor(Se.prototype,"setActiveWidgetIDForEditHistory"),Se.prototype),We=Object(o.a)(Se.prototype,"printInstanceId",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ve=Object(o.a)(Se.prototype,"tenantPaidType",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(o.a)(Se.prototype,"setPrintInstanceId",[s.f],Object.getOwnPropertyDescriptor(Se.prototype,"setPrintInstanceId"),Se.prototype),Object(o.a)(Se.prototype,"setTenantPaidType",[s.f],Object.getOwnPropertyDescriptor(Se.prototype,"setTenantPaidType"),Se.prototype),Object(o.a)(Se.prototype,"isListEmpty",[s.h],Object.getOwnPropertyDescriptor(Se.prototype,"isListEmpty"),Se.prototype),He=Object(o.a)(Se.prototype,"mockedApprovalInstance",[s.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(o.a)(Se.prototype,"setMockedApprovalInstance",[s.f],Object.getOwnPropertyDescriptor(Se.prototype,"setMockedApprovalInstance"),Se.prototype),Se)},function(e,t,a){"use strict";a.d(t,"b",(function(){return p})),a.d(t,"a",(function(){return h})),a.d(t,"c",(function(){return b}));var r,i=a(171),n=a(140),o=a(402);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){l(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function d(e,t,a,r,i,n,o){try{var s=e[n](o),c=s.value}catch(e){return void a(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function u(e){return function(){var t=this,a=arguments;return new Promise((function(r,i){var n=e.apply(t,a);function o(e){d(n,r,i,o,s,"next",e)}function s(e){d(n,r,i,o,s,"throw",e)}o(void 0)}))}}function p(e){return m.apply(this,arguments)}function m(){return m=u((function*(e){var{url:t,method:a,params:i={},body:s={}}=e;if(!t||"string"!=typeof t)return n.a.error("Invalid url: ".concat(t)),null;var l=yield Object(o.b)({url:t,method:a,header:{"Content-Type":"application/json","x-feelgood-api-version":"v2"},params:c({},i),body:c({},s)}),{code:d,data:u={response:{}}}=l;if(d===o.a.Success){var{response:{code:p,data:m,msg:h}}=u;return p===r.Success?m:(n.a.error("buzi request code error",{code:p,data:m,msg:h}),null)}return n.a.error("x.request code error",l),null})),m.apply(this,arguments)}!function(e){e[e.Success=0]="Success"}(r||(r={}));var h=function(){var e=u((function*(e){var{key:t}=e,a=yield Object(i.a)({key:t}),{code:r,data:s={data:null}}=a;return r===o.a.Success?s.data:(n.a.error("x.getStorageItem code error",a),null)}));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=u((function*(e){var{key:t,value:a}=e,r=yield Object(i.h)({key:t,data:a}),{code:s}=r;return s===o.a.Success||(n.a.error("x.setStorageItem code error",r),!1)}));return function(t){return e.apply(this,arguments)}}()},function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wgARCABEAIgDAREAAhEBAxEB/8QAHQABAAEFAQEBAAAAAAAAAAAAAwABBAUHCAYCCf/EABwBAAIDAQEBAQAAAAAAAAAAAAACAQMHBgQFCP/aAAwDAQACEAMQAAAA2N+6vyMqSyCoIgqjILWKoqTe+ecl5prBUmQVggas6+tlFrFUVBkPRfM9vr/i/U170nPJVLJGf+dYqFYKhWCBqLt61rFUZBaxVOt8e1DuXBNm5R13L+NdpyG0t897Q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B4bpNpe6G65aNyCCDbtI7FgWQMw4zHs+EYLBu54I/ppsSf8AO0hZeyjg+W4X3dmqJ1e7m4+HYO4UNbIo7I7LQtC0LQtCjQbDUKlGpCNCKWCsFYKwVgg0KMwNiEBFEVKNCjT/xAAzEQABAQQHBgQGAwAAAAAAAAABAgMEBREABhAgITFBBxJRcXKxIjA0UhMVMmGBwUBikf/aAAgBAwEBPwDyk053heh0OfIo9B3dUbyzp+zoBSLVXjUFZho8s/D7gZj8yy/P8DZeB8weD/Ud6LQhogpUJg5g0rDs7Yt95vDPCr2HI9J05HDlR5dnhzbKYt0lKhmDgbAb0he2Xeveekd7YzAIZHWO49IxGShgocj+jMUrDU+JQCbX62XuGnUNO1gmLs72y717z0jvcrZFHCHwVshuoby0qSlOpJBGXAam3S0X9l3r3npHexo0ZsUFbQgJGJJMgOZpWDaKyZTYQsbx95yHSNeZw50eXt5fW6mzdZUo5k43BZOyYu1AjDlCYmsPSt1LRMgo5Ag68AeNIxXSCQpiShoGq9EoIP8ApEwO/wBqRys8Ujyz8ZUkaIH0jnxP3N8UFMaTuAz8oWjI3E0Hkps//9k="},function(e,t,a){"use strict";var r,i;a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),function(e){e[e.MEMBER=3]="MEMBER",e[e.DEP=12]="DEP"}(r||(r={})),function(e){e[e.MEMBER=1]="MEMBER",e[e.DEP=0]="DEP"}(i||(i={}))},function(e,t,a){"use strict";a.d(t,"b",(function(){return u})),a.d(t,"c",(function(){return p})),a.d(t,"d",(function(){return m})),a.d(t,"a",(function(){return r})),a.d(t,"e",(function(){return b}));var r,i=a(9),n=a(28),o=a(17),s=a(16),c=a(12),l=a(3),d=a(176),u=Object(d.c)("3.44.0"),p=e=>"https://applink.".concat(n.f,"/client/mini_program/open?appId=").concat(n.e,"&path=pages%2Fapproval-efficiency%2Findex%3Ftab%3D").concat(e?"team":"person","%26from%3DqrCode");function m(e){return h.apply(this,arguments)}function h(){return h=Object(i.a)((function*(e){try{var{data:{base64Result:t}}=yield s.c.qrCodeGenerate({content:p(e)});return"data:image/png;base64,".concat(t)}catch(e){return Object(c.b)(o.f.ApprovalError,{location:"in function getQRCodeUrl at src/pc-pages/index/components/efficiency/util.ts",message:JSON.stringify(e)}),""}})),h.apply(this,arguments)}!function(e){e.managerNotFrame="managerNotFrame",e.managerFrame="managerFrame",e.notManager="notManager"}(r||(r={}));var b=(e,t)=>{var[a,i]=Object(l.useState)(r.notManager);return Object(l.useEffect)((()=>{i(e?t?r.managerFrame:r.managerNotFrame:r.notManager)}),[e,t]),{displayType:a,isManager:e,supportFrame:t}}},function(e,t,a){e.exports={devtools:"index-module__devtools___2x4OC",glow:"index-module__glow___ZUUvb",panel:"index-module__panel___1DpPC",sidebar:"index-module__sidebar___1yYN_",button:"index-module__button___Zfgwv",brand:"index-module__brand___3PWya",environment:"index-module__environment___322J8",menus:"index-module__menus___8yKBM",close:"index-module__close___16MzH"}},function(e,t,a){e.exports={wrap:"index-module__wrap___eVlzd",title:"index-module__title___tgsbz",selector:"index-module__selector___5nBne",methods:"index-module__methods___FEqTp","methods-right":"index-module__methods-right___ZXS6_","button-cancel":"index-module__button-cancel___3arNr","button-submit":"index-module__button-submit___29K7d",close:"index-module__close___3eO5g","close-icon":"index-module__close-icon___3cO6P"}},function(e,t,a){e.exports={"detail-headbar":"index-module__detail-headbar___2ghlh","detail-headbar-content":"index-module__detail-headbar-content___11x8P","split-signal":"index-module__split-signal___55DGn","why-received":"index-module__why-received___2Zc8g","detail-headbar-btns":"index-module__detail-headbar-btns___1l0-v",icon:"index-module__icon___354zZ","icon-image":"index-module__icon-image___AooNx",disabled:"index-module__disabled___uqizW","detail-headbar-regulation":"index-module__detail-headbar-regulation___1uDmV",split:"index-module__split___1j6O-"}},,,,,function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var r=!1;function i(e){r=e}function n(){return r}},function(e,t,a){"use strict";a.d(t,"b",(function(){return o}));var r=a(10),i={online:"https://internal-api-approval.feishu.cn",pre:"https://internal-api-approval.feishu-pre.cn"},n={hostFromUrl:"",ApplinkQueryEnv:""},o=e=>{var{query:t}=e;n.ApplinkQueryEnv=null==t?void 0:t.env,n.hostFromUrl=i[null==t?void 0:t.env],r.a.info("seda handleAppLaunchOptions",{option:e,onLaunchOptions:n})};t.a=n},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r}));var r,i="/api/widgetGroup/time/check";!function(e){e[e.Trip=5]="Trip",e[e.Out=7]="Out"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r=a(22),i=a(23),n=a(12),o=a(197),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(o.c)({processId:e,parentId:t.parentId,parentShareCode:t.parentShareCode,processUniqueId:"",displayMethod:t.displayMethod||i.b.Normal,intranetAccess:!1,sourceName:"",system:r.e.FeiShu,topic:i.i.TodoApproval,urls:{app:"",mobile:"",h5:"",pc:"",helpdesk:""}},t),Object(n.b)("openApprovalDetailByDrawer",{message:"Success to openApprovalDetailByDrawer!",instanceId:e,config:t})}},,function(e,t,a){"use strict";var r;a.d(t,"a",(function(){return r})),function(e){e[e.NoPermission=10022]="NoPermission",e[e.HasBatchOperation=10405]="HasBatchOperation",e[e.AtNoPermission=10004]="AtNoPermission"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return d})),a.d(t,"d",(function(){return u})),a.d(t,"a",(function(){return m}));var r,i=a(9),n=a(20),o=Object(n.c)("pc:src/utils/m-get-detail-prefetch.ts"),s=!1,c=!1;function l(){if(!s)return s=!0,r}function d(e){var{taskId:t,instanceId:a,shareCode:i,key:n}=e;o("MGetDetailPrefetch",{taskId:t,instanceId:a,shareCode:i,key:n,_taskId:void 0,_instanceId:void 0,_shareCode:void 0,_key:r,action:"get"})}function u(e){return p.apply(this,arguments)}function p(){return p=Object(i.a)((function*(e){var{id:t}=e;o("MGetDetailPrefetch",{id:t,taskUsed:c,_taskId:void 0,_instanceId:void 0,_shareCode:void 0,action:"getTask"})})),p.apply(this,arguments)}function m(e){return h.apply(this,arguments)}function h(){return h=Object(i.a)((function*(e){var{taskId:t,instanceId:a,shareCode:i,key:n}=e;o("MGetDetailPrefetch",{taskId:t,instanceId:a,shareCode:i,key:n,_taskId:void 0,_instanceId:void 0,_shareCode:void 0,_key:r,action:"getInstanceDetail"})})),h.apply(this,arguments)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(9),i=a(12),n={approvalRuntimeErrorProjectCollect:e=>Object(r.a)((function*(){Object(i.b)("approval_runtime_error_project_collect",e)}))(),approvalRuntimeErrorProjectVerify:e=>Object(r.a)((function*(){Object(i.b)("approval_runtime_error_project_verify",e)}))()}},,function(e,t,a){"use strict";a.d(t,"b",(function(){return V})),a.d(t,"c",(function(){return H})),a.d(t,"d",(function(){return Z})),a.d(t,"a",(function(){return q}));var r=a(5),i=(a(3),a(1)),n=a(8),o=a.n(n),s=a(2),c=a(57),l=a(13),d=a(38),u=a(335),p=a(15),m=a(444),h=a(484),b=a(455),g=a(456),v=a(457),j=a(653),O=a(458),f=a(654),M=a(459),_=a(460),y=a(461),D=a(462),N=a(655),A=a(463),T=a(482),I=a(467),C=a(678),x=a(666),S=a(468),w=a(469),L=a(471),E=a(677),k=a(0),z=Object(p.a)((e=>{var{widget:t,ctxId:a}=e;if(!t)return null;var{data:{visible:r,isRestored:i}}=t;if(!r)return null;if(!i)return Object(k.jsx)(E.a,{type:"viewer"});switch(t.type){case l.c.ADDRESS:return Object(k.jsx)(I.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.AMOUNT_INPUT:return Object(k.jsx)(y.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.ATTACHMENT:return Object(k.jsx)(N.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.ATTACHMENT_V2:return Object(k.jsx)(A.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.CALCULATION_FORMULA:return Object(k.jsx)(D.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.CONTACT:return Object(k.jsx)(v.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.DATE_INTERVAL:return Object(k.jsx)(g.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.DATE_RANGE:return Object(k.jsx)(x.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.DATE_TIME:return Object(k.jsx)(b.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.DESC:return Object(k.jsx)(C.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.IMAGE:return Object(k.jsx)(h.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.MULTI_SELECT:return Object(k.jsx)(f.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.MULTI_SELECT_V2:return Object(k.jsx)(M.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.NUMBER_INPUT:return Object(k.jsx)(_.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.RELATIVE_APPROVAL:return Object(k.jsx)(T.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.SINGLE_INPUT:return Object(k.jsx)(m.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.SINGLE_SELECT:return Object(k.jsx)(j.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.SINGLE_SELECT_V2:return Object(k.jsx)(O.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.TEXTAREA:return Object(k.jsx)(S.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.DEPARTMENT:return Object(k.jsx)(w.a,{ctxId:a,widget:t,inTable:!0},t.id);case l.c.TELEPHONE:return Object(k.jsx)(L.a,{ctxId:a,widget:t,inTable:!0},t.id);default:return null}})),R=z,P=a(532),U=a(211),B=a(40),F=a(183),Y=a(25),Q=a(75),G=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=Object(r.a)(Object(r.a)(Object(r.a)({},P.b[e.type]),t?{}:P.c[e.type]||{}),{},{key:"".concat(e.id.split("|")[0]),type:e.type,dataIndex:"".concat(e.id.split("|")[0]),title:Object(k.jsx)(i.r,{className:o()("column-title",{"column-title--required":t&&e.data.required}),children:e.data.name})});if(e.type===l.c.DESC&&(a.title=Object(k.jsx)(i.r,{className:o()("column-title"),children:"".concat(Object(s.t)("DetailTable.IntroTitle"))})),[l.c.CONTACT,l.c.DEPARTMENT].includes(e.type)){var{data:{multi:n,isMuti:c}}=e;a.width=(n||c)&&t?270:160}return a},W=e=>{var{name:t,required:a,info:r}=e;return Object(k.jsxs)(i.r,{className:o()("column-title-wrap",{"column-title--required":a}),children:[Object(k.jsx)(i.r,{className:o()("column-title"),style:{textAlign:"left",wordBreak:"break-word"},children:t}),r&&Object(k.jsx)(B.c,{arrow:!0,fixed:!0,text:r,style:{display:"flex"},children:Object(k.jsx)(F.a,{name:"info_outlined",customStyle:{margin:4}})})]})},V=e=>{var{groups:t,ctxId:a,onCellClick:n,onFinish:d,isInDetailPage:p=!1}=e,m=[],h=[],b=t.map(((e,t)=>{var a=[],r={key:e.id,index:t+1};return e.widgets.forEach((e=>{r[e.id.split("|")[0]]=e,a.push(e),e.data.children&&e.data.children.forEach((e=>{r[e.id.split("|")[0]]=e,a.push(e)}))})),h.push(r),a}));return console.log("==widgets",b),b.length?(b[0].forEach(((e,t)=>{if(b.some((e=>e[t].data.visible&&(e[t].data.writable||e[t].data.readable&&e[t].data.isRestored&&!Z(e[t]))))){var h=G(e);if(h.render=e=>Object(k.jsx)(u.a,{widget:e,ctxId:a,onFinish:d,isInDetailPage:p}),h.onCell=(e,t,a,r)=>({onClick:t=>{t.stopPropagation(),null==n||n(t,e,r)}}),[l.c.NUMBER_INPUT,l.c.AMOUNT_INPUT,l.c.CALCULATION_FORMULA].includes(e.type)&&(h.align="right"),e.type===l.c.ADDRESS){var{selectIsRequired:g,detailIsRequired:v,name:j}=e.data;return m.push(Object(r.a)(Object(r.a)({},h),{},{colSpan:2,title:Object(k.jsx)(i.r,{className:o()("column-title",{"column-title--required":g||v}),children:j}),dataIndex:"".concat(e.id.split("|")[0])})),void m.push(Object(r.a)(Object(r.a)({},h),{},{key:"".concat(h.key,"+>detail"),dataIndex:"".concat(e.id.split("|")[0]),render:e=>Object(k.jsx)(u.a,{widget:e,ctxId:a,subCellType:"detail",isInDetailPage:p})}))}if(e.type===l.c.AMOUNT_INPUT){var{required:O,name:f,currencyRange:M}=e.data,_=Object(r.a)(Object(r.a)({},h),{},{title:Object(k.jsx)(i.r,{className:o()("column-title",{"column-title--required":O}),style:{textAlign:"left",wordBreak:"break-word"},children:f}),dataIndex:"".concat(e.id.split("|")[0])});return M.length>0&&(_.colSpan=2),m.push(_),void(M.length>0&&m.push(Object(r.a)(Object(r.a)({},h),{},{width:144,maxWidth:191,key:"".concat(h.key,"+>unit"),dataIndex:"".concat(e.id.split("|")[0]),title:Object(k.jsx)(i.r,{className:"column-title"}),render:e=>Object(k.jsx)(u.a,{widget:e,ctxId:a,subCellType:"unit"})})))}if(e.type===l.c.TELEPHONE){var{required:y,name:D}=e.data;return m.push(Object(r.a)(Object(r.a)({},h),{},{width:112,colSpan:2,title:Object(k.jsx)(i.r,{className:o()("column-title",{"column-title--required":y}),children:D}),dataIndex:"".concat(e.id.split("|")[0])})),void m.push(Object(r.a)(Object(r.a)({},h),{},{width:140,key:"".concat(h.key,"+>phoneNumber"),dataIndex:"".concat(e.id.split("|")[0]),title:Object(k.jsx)(i.r,{className:"column-title"}),render:e=>Object(k.jsx)(u.a,{widget:e,ctxId:a,subCellType:"phoneNumber"})}))}if(e.type!==l.c.DATE_TIME){if(e.type!==l.c.DATE_INTERVAL)if(e.type!==l.c.ATTACHMENT_V2)if(e.type!==l.c.IMAGE)m.push(h);else{var{required:N,name:A}=e.data,[T,I]=Y.d.enableDrive?[20,50]:[9,50];m.push(Object(r.a)(Object(r.a)({},h),{},{width:212,title:W({required:N,name:A,info:Object(s.t)("approval-mp_Upload30Max_Desc",{count:T,size:I})})}))}else{var{required:C,name:x}=e.data,[S,w]=Y.d.enableDrive&&Object(Q.g)()?[30,500]:[9,50];m.push(Object(r.a)(Object(r.a)({},h),{},{title:W({required:C,name:x,info:Object(s.t)("approval-mp_Upload30Max_Desc",{count:S,size:w})})}))}}else if(m.push(Object(r.a)(Object(r.a)({},h),{},{colSpan:e.data.subtype!==c.a.DATE?2:1,key:"".concat(h.key,"+>date"),dataIndex:"".concat(e.id.split("|")[0]),render:e=>Object(k.jsx)(u.a,{widget:e,ctxId:a,subCellType:"date",onFinish:d,isInDetailPage:p})})),e.data.subtype!==c.a.DATE){var L=e.data.subtype===c.a.DATE_AND_TIME?"time":"halfday";m.push(Object(r.a)(Object(r.a)({},h),{},{key:"".concat(h.key,"+>").concat(L),dataIndex:"".concat(e.id.split("|")[0]),render:e=>Object(k.jsx)(u.a,{widget:e,ctxId:a,subCellType:L,onFinish:d,isInDetailPage:p})}))}}})),{columns:m,dataSource:h}):{columns:m,dataSource:h}},H=e=>{var{groups:t,ctxId:a}=e,r=[],n=[],s=t.map(((e,t)=>{var a=[],r={key:e.id,index:t+1};return e.widgets.forEach((e=>{r[e.id.split("|")[0]]=e,a.push(e),e.data.children&&e.data.children.forEach((e=>{r[e.id.split("|")[0]]=e}))})),n.push(r),a}));return console.log("==widgets",s[0]),s.length?(s[0].forEach(((e,t)=>{if(s.some((e=>e[t].data.visible&&e[t].data.readable&&e[t].data.isRestored&&!Z(e[t])))){var n=G(e,!1);if(n.render=e=>Object(k.jsx)(R,{widget:e,ctxId:a}),e.type===l.c.CONTACT){r.push(n);var c=s.some((e=>{var a,r,[i]=null!==(a=null===(r=e[t])||void 0===r?void 0:r.data.children)&&void 0!==a?a:[];return i&&i.data.options.length>1&&i.data.value}));if(!c)return;var[d]=e.data.children,u=G(d,!1);return u.render=e=>Object(k.jsx)(R,{widget:e,ctxId:a}),void r.push(u)}if(e.type===l.c.DATE_INTERVAL){var{children:p}=e.data,[m,h,b]=p;if(n.title=Object(k.jsx)(i.r,{className:o()("column-title"),children:"".concat(m.data.name,"-").concat(h.data.name)}),r.push(n),!b)return;var g=G(b,!1);return g.align="right",g.render=e=>Object(k.jsx)(R,{widget:e,ctxId:a}),void r.push(g)}r.push(n)}})),{columns:r,dataSource:n}):{columns:r,dataSource:n}},Z=e=>{if(!e)return!0;switch(e.type){case l.c.ADDRESS:var{isV2:t,value:a,country:r,province:i,city:n,area:o,detail:s}=e.data;return t?Boolean(Object(d.c)(a)):![r,i,n,o].filter((e=>Boolean(e))).length&&!s;case l.c.ATTACHMENT:var{uploadAttachmentList:c}=e.data;return Boolean(Object(d.c)(c));case l.c.ATTACHMENT_V2:var{uploadAttachmentV2List:u}=e.data;return Boolean(Object(d.c)(u));case l.c.IMAGE:var{uploadImageList:p}=e.data;return Boolean(Object(d.c)(p));case l.c.CONTACT:var{users:m}=e.data;return Boolean(Object(d.c)(null==m?void 0:m.filter((e=>e.id))));case l.c.RELATIVE_APPROVAL:var{instances:h}=e.data;return Boolean(Object(d.c)(h));case l.c.DATE_INTERVAL:case l.c.DATE_RANGE:var{children:b}=e.data,[g,v]=b;return!g.data.value&&!v.data.value;case l.c.DATE_TIME:var{value:j}=e.data;return!j;case l.c.NUMBER_INPUT:case l.c.AMOUNT_INPUT:var{value:O}=e.data;return Boolean(Object(d.c)(O));case l.c.TELEPHONE:var{value:{countryCode:f="",nationalNumber:M=""}}=e.data;return!f&&!M;default:return Boolean(Object(d.c)(e.data.value))}},q=(e,t)=>{var a=-1,r=function(e){var r=void 0;for(var i of e.widgets){var n;if(i.data.validationError){r=i;break}if(null!==(n=i.data.children)&&void 0!==n&&n.find((e=>e.data.validationError))){r=i.data.children.find((e=>e.data.validationError));break}}if(r){if(a=t.findIndex((e=>e.dataIndex&&e.dataIndex.includes(r.id.split("|")[0]))),r.type===l.c.ADDRESS){var[o,s]=r.data.validationError.split(U.a);!o&&s&&(a+=1)}return"break"}};for(var i of e){if("break"===r(i))break}return a}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));var r=a(6),i=a(3),n=a(1),o=a(124),s=a(877),c=a.n(s),l=a(2),d=a(254),u=a(177),p=(a(1208),a(0));class m extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"state",{isActive:!1}),Object(r.a)(this,"handleChange",(e=>{var{onChange:t}=this.props;t(e),this.setState({isActive:!1})})),Object(r.a)(this,"handleCancel",(e=>{var t,a;this.setState({isActive:!1}),null===(t=(a=this.props).onCancel)||void 0===t||t.call(a,e)})),Object(r.a)(this,"handleInnerClick",(()=>{var{disabled:e=!1}=this.props;e||this.setState({isActive:!0})}))}render(){var{value:e,placeholder:t,hasError:a,disabled:r=!1,renderTrigger:i,customStyle:o,popupContainer:s}=this.props,{isActive:m}=this.state,h="",b="";return e&&(h=e.format("YYYY-MM-DD"),b=Object(d.c)(e,l.curStarlingLang,d.a.YYYYMMDD,!1)),Object(p.jsx)(n.j,{className:"approval-date-select",mode:"date",disabled:r,value:h,onChange:this.handleChange,onCancel:this.handleCancel,style:o,"popup-container":s,children:i?i({showValue:b,onClick:()=>this.handleInnerClick(),active:m}):Object(p.jsx)(u.a,{hasError:a,value:b,placeholder:t,usingPlaceholder:!e,isActive:m,disabled:r,onClick:this.handleInnerClick,children:Object(p.jsx)(n.g,{className:"icon",src:c.a})})})}}Object(r.a)(m,"defaultProps",{value:null,placeholder:"",onChange:o.a,onCancel:o.a})},function(e,t,a){"use strict";a.d(t,"a",(function(){return P})),a.d(t,"d",(function(){return W})),a.d(t,"c",(function(){return X})),a.d(t,"b",(function(){return $}));var r=a(9),i=a(5),n=a(4),o=a(745),s=a(10),c=a(12),l=a(20),d=a(29),u=a(21),p=a(98),m=a(2),h=a(17),b=a(25),g=a(47),v=a(233),j=a(162),O=a(16),f=a(658),M=a.n(f),_=a(192),y=Object(l.c)("pc:src/components/flow-timeline/flow-timeline-utils.ts"),D=[{userId:"",mainTitle:Object(m.t)("PreviewNodes.ValidateIntegrity"),oriTimeForSort:33076373379379,descContent:"",status:u.k.RED,avatarUrl:u.d.IMAGE_LINK}],N=[{userId:"",mainTitle:Object(m.t)("PreviewNodes.Failed"),oriTimeForSort:33076373379379,descContent:"",status:u.k.RED,avatarUrl:u.d.IMAGE_LINK}],A=[{userId:"",mainTitle:Object(m.t)("PreviewNodes.NotEnd"),oriTimeForSort:Number.MAX_SAFE_INTEGER,descContent:"",status:u.k.RED,avatarUrl:u.d.IMAGE_LINK}];function T(e,t,a,r){var i=[x(e,a),Object(m.t)("FullStop","。"),Object(m.t)("Delegation.RelationTips.AmongPrefix","其中")];return t.forEach(((e,a)=>{var{agentUserList:n}=e;i.push(n.map((e=>{var{agentUserName:t}=e;return t})).join(Object(m.t)("Dayton","、")));var o=I(e,r);i.push(...o),a<t.length-1&&i.push(Object(m.t)("Comma",""))})),i}function I(e,t){var{consignUserId:a,consignUserName:r}=e;return t===d.k.TRANSACT?Object(v.a)("approval-mp_DelegatesOnBehalf_Desc",{delegate:Object(j.b)(a,r)}):Object(v.a)("Delegation.RelationTips.ForSomeone",{delegate:Object(j.b)(a,r)})}var C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((e=>{var{userType:t}=e;return u.b.Delegate!==t}))},x=(e,t)=>{var a,r;return t?null!==(a=u.m[e])&&void 0!==a?a:u.m[u.j.OR_SIGN]:null!==(r=u.h[e])&&void 0!==r?r:u.h[u.j.OR_SIGN]};function S(e,t,a){var{processType:r}=t;if(!e)return null;var{currentTask:o}=e,{nodeName:s}=o,{type:c,approverList:l,genType:p,signType:h,endCcs:b,createTime:v,comments:j=[],nodeId:O,consignAgentList:f,originNodeType:M}=o,y=C(l),D=M===d.k.TRANSACT;if(!(-1!==c&&0!==y.length))return null;s||(p!==d.n.BEFORE&&p!==d.n.AFTER&&p!==d.n.AND||(s=u.f[u.k.ADD_APPROVER]),p===d.n.FORWARD&&(s=u.f[u.k.REDIRECT]),D&&(s=Object(m.t)("Timeline.Handle"))),s||(s=Object(m.t)("ListTabText")),r===d.l.IS_FREE&&(s=Object(m.t)("ListTabText"));var N=null==f?void 0:f.length,A=!(y&&1===y.length&&y[0]&&y[0].userAvatarUrl),S=j&&Object(n.m)(j)&&j.length>0,w=v,L=[];if(N&&A&&L.push({type:u.l.CUSTOM_ELEMENT,data:T.bind(null,null!=h?h:d.o.Normal,null!=f?f:[],D,M)}),N&&!A&&L.push({type:u.l.CUSTOM_ELEMENT,data:()=>I(f[0],M)}),!N&&A&&p!==g.i&&L.push({type:u.l.NO_BG_TEXT,data:x(null!=h?h:d.o.Normal,D)}),S&&j.forEach((e=>{L.push({type:u.l.NO_BG_TEXT,data:e})})),y.every((e=>e.taskStatus===_.d.Advice)))return null;var E=y.filter((e=>e.taskStatus!==_.d.Advice));return L.push({type:u.l.MEMBER_LIST,data:E.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl})))}),b&&b.length>0&&(L.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("Detail.CCToNPeople",{count:b.length})}),L.push({type:u.l.MEMBER_LIST,data:b.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl}))),ext:{isShowAllExpand:a,isShowSomeExpand:!a,isAtFormPage:a}})),{userId:"",mainTitle:s,descContent:O===g.f.START?Object(m.t)("Rollback.RollbackSubmitAgain"):D?Object(m.t)("Detail.UnderHandler"):Object(m.t)("InstancePending"),status:u.k.CURRENT,oriTimeForSort:Number(w),avatarUrl:D?u.d.IMAGE_DETAIL_TRANSACTOR:u.d.IMAGE_DETAIL_APPROVER,nodeKey:O,nodeName:s,childrens:L,originNodeType:M}}function w(e,t){var{creatorUserAvatarUrl:a,creatorUserName:r,createTime:i,newRevertReason:n,modifyInstanceList:o,modifyReason:s,insteadCreator:c}=e,l=Boolean(null==o?void 0:o.length)||Boolean(s),d=()=>t?u.k.CREATE:l?u.k.CREATE_MODIFY:u.k.CREATE_WITHDRAW,p=n&&c&&!t||l&&c&&!t,m=p?c.userName:r,h=p?c.userId:e.creatorUserId,b=p?c.userAvatarUrl:a;return{userId:h,mainTitle:m,oriTimeForSort:Number(i),descContent:u.g[d()],status:d(),avatarUrl:b,childrens:t||!n||l?null:[{type:u.l.COMMENT,data:n.content}],insteadCreator:t?c:null}}function L(e,t){var{createTime:a,startCcs:r,creatorUserId:n}=e;return r&&r.length>0?{userId:n,mainTitle:Object(m.t)("PC.CcPerson"),descContent:Object(m.t)("Detail.CCToNPeople",{count:r.length}),status:u.k.CC,avatarUrl:u.d.CC,oriTimeForSort:Number(a)+1,isCcNode:!0,childrens:[{type:u.l.MEMBER_LIST,data:r.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl}))),ext:{isShowSomeExpand:!0,isAtFormPage:t}}]}:null}function E(e,t){var{timeline:a}=e,r=[];return a.forEach((e=>{var{type:a,completeTime:n,endCcs:o}=e;o&&o.length>0&&a!==u.k.CC&&a!==u.k.ICC&&r.push({userId:"",mainTitle:Object(m.t)("PC.CcPerson"),descContent:Object(m.t)("Detail.CCToNPeople",{count:o.length}),status:u.k.CC,avatarUrl:u.d.CC,oriTimeForSort:Number(n)+1,isCcNode:!0,childrens:[{type:u.l.MEMBER_LIST,data:o.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl}))),ext:{isShowSomeExpand:!0,isAtFormPage:t}}]})})),r}function k(e){var{instanceStatus:t,originalStatus:a,endTime:r,creatorUserId:i,creatorUserName:n,creatorUserAvatarUrl:o,endReason:s,cancelFromType:c,operateInfo:l,lastStatus:p}=e;if(t===u.e.CLEARED&&p===u.e.TERMINATED)return{userId:"",mainTitle:Object(m.t)("AdminName"),descContent:Object(m.t)("list.approval_terminated"),status:u.k.TERMINATED,avatarUrl:u.d.IMAGE_ADMIN_V2,oriTimeForSort:Number(r),childrens:[{type:u.l.NO_BG_TEXT,data:Object(m.t)("approval-web_ExpiredNClosed_Desc")}]};var h=t===u.e.WITHDRAW&&a!==u.e.AGREE,g=t===u.e.CLEARED&&p===u.e.WITHDRAW;if(h||a===u.e.WITHDRAW||g){var v=Boolean(null==s?void 0:s.content),j=null;if(v){var O={text:""};try{var f,_;O=JSON.parse((null==s?void 0:s.content)||"null"),j=c===d.c.ATTENDANCE?null===(f=O)||void 0===f?void 0:f.text:JSON.parse(null===(_=O)||void 0===_?void 0:_.text)}catch(e){y("commonOnError",{location:"in flow-timeline-utils.ts, withdram endReason parse error",message:JSON.stringify(e,Object.getOwnPropertyNames(e))})}}var D=l?l.operateUser.userId:i,N=l?l.operateUser.userName:n,A=l?l.operateUser.userAvatarUrl:o,T={userId:D,mainTitle:N,descContent:u.g[u.k.WITHDRAW],status:u.k.WITHDRAW,avatarUrl:A,oriTimeForSort:Number(r)};return b.d.enableStarterEditDoc&&v&&j&&"string"!=typeof j&&j.docName&&j.docLink?Object.assign(T,{docDescObj:j}):""!==j&&"string"==typeof j&&Object.assign(T,{attendanceRecalledReason:j,mainTitle:Object(m.t)("ListTabText","审批"),avatarUrl:M.a}),T}return null}function z(e){var{instanceStatus:t,endTime:a}=e;return t===u.e.DELETED?{userId:"",mainTitle:Object(m.t)("AdminName"),descContent:Object(m.t)("approval-mp_Deleted_Tag"),status:u.k.DELETE,avatarUrl:u.d.IMAGE_ADMIN_V2,oriTimeForSort:Number(a),childrens:[{type:u.l.NO_BG_TEXT,data:Object(m.t)("approval-mp_DeleteTerminate_Desc")}]}:t===g.d.TERMINATED?{userId:"",mainTitle:Object(m.t)("AdminName"),descContent:Object(m.t)("list.approval_terminated"),status:u.k.TERMINATED,avatarUrl:u.d.IMAGE_ADMIN_V2,oriTimeForSort:Number(a),childrens:[{type:u.l.NO_BG_TEXT,data:Object(m.t)("approval-web_ExpiredNClosed_Desc")}]}:null}function R(e){var{instanceStatus:t,modifyTime:a,operatorUser:r}=e;if(t===u.e.CLEARED){var i,n,o,s=null!==(i=null==r?void 0:r.userName)&&void 0!==i?i:Object(m.t)("AdminName"),c=null!==(n=null==r?void 0:r.userAvatarUrl)&&void 0!==n?n:u.d.IMAGE_ADMIN_V2;return{userId:null!==(o=null==r?void 0:r.userId)&&void 0!==o?o:"",mainTitle:s,descContent:Object(m.t)("approval-mp_Deleted_Tag"),status:u.k.DELETE,avatarUrl:c,oriTimeForSort:Number(a),childrens:[{type:u.l.NO_BG_TEXT,data:Object(m.t)("approval-mp_DeletedRequest_Desc")}]}}return null}function P(e){return U.apply(this,arguments)}function U(){return U=Object(r.a)((function*(e){try{var{validUsers:t}=yield Object(p.a)({option:Object(i.a)({ignore:!1,multi:!0,externalContact:!1},e),globalStore:b.d,queryUsers:O.c.userqueryUsers,showToast:!0,from:"pc"});return t.map((e=>Object(i.a)(Object(i.a)({},e),{},{id:e.id,name:e.name})))}catch(e){Object(c.b)(h.f.ApprovalError,{location:"in function chooseUsers at src/components/flow-timeline/flow-timeline-utils.tsx",message:JSON.stringify(e)}),s.a.error("time-line-utils getUser failed",e)}})),U.apply(this,arguments)}var B=function(){var e=Object(r.a)((function*(e,t,a){if(b.d.isBytedance&&!t.hasLeaderHintShown&&e.some((e=>e.hasThreeSuccessiveLeaders))){var{approvalId:r,approvalName:i}=t.definitionInfo||{};Object(c.b)(h.f.ApprovalLeaderConfirmInfo,{approval_id:r,approval_name:i,user_id:b.d.currentUser.encryptedUserId,node_id:a});var n=Date.now();yield t.showLeaderHintDialog();var o=Date.now()-n;Object(c.b)(h.f.ApprovalLeaderConfirmRemainTime,{value:o}),t.hasLeaderHintShown=!0}}));return function(t,a,r){return e.apply(this,arguments)}}();function F(e,t){return Y.apply(this,arguments)}function Y(){return Y=Object(r.a)((function*(e,t){var a=t.approverManager.configMap[e],r=a?a.users:[],i=a?a.ccers:[],n=d.a.All,s=!0,c=t.nodeList.find((t=>t.nodeId===e));if(c){var{approverChosenType:l=[n],approverChosenMulti:u=s}=c;n=l.length>0?l[0]:n,s=u}var p=yield t.showApproverSelector({limitType:n,multiple:s,chosenUsers:r,nodeId:e});B(p,t,e),t.approverManager.addConfig({id:e,name:"",ccers:i,type:d.b.FLOW_NODE_APPROVER,users:Object(o.a)(p,(e=>e.id))})})),Y.apply(this,arguments)}function Q(e,t){return G.apply(this,arguments)}function G(){return G=Object(r.a)((function*(e,t){var a=t.approverManager.configMap[e],r=(null==a?void 0:a.ccers)||[],n=yield t.showApproverSelector({limitType:d.a.All,multiple:!0,chosenUsers:r,nodeId:e});a?t.approverManager.addConfig(Object(i.a)(Object(i.a)({},a),{},{ccers:n})):t.approverManager.addConfig({id:e,name:"",users:[],type:d.b.FLOW_NODE_APPROVER,ccers:n})})),G.apply(this,arguments)}function W(e,t){return e===d.k.CC&&t}function V(e,t,a){return e=function(e,t){return e.map((e=>{var{originNodeType:t,approverList:a,blockedCcEnable:r}=e;return W(t,r)?Object(i.a)(Object(i.a)({},e),{},{approverList:[],endCcs:a,type:u.j.AUTO_ICC_PASS}):e})).filter((e=>{var{type:a,endCcs:r,onlyHaveCcTypeFree:i}=e;return!(a===u.j.AUTO_ICC_PASS&&r&&0===r.length&&i&&!t)}))}(e,a),e.map(((e,r)=>{var{approverList:s,consignAgentList:c,nodeName:l,type:p,signType:h,originNodeType:b,nodeId:g,endCcs:v,isApproverTypeFree:j,comments:O=[],ccComments:f=[],hasCcTypeFree:M}=e,_=C(s),y=_&&_.length>1,D=_&&1===_.length,N=null==c?void 0:c.length,A=b===d.k.TRANSACT,S=A?u.d.IMAGE_DETAIL_TRANSACTOR:u.d.IMAGE_DETAIL_APPROVER,w="",L="",E="",k="",z=u.k.PREVIEW,R=[],P=A?Object(m.t)("Timeline.Handle"):Object(m.t)("AppName");E=l||P,"START"===g&&(E=Object(m.t)("PreviewNodes.Start")),"END"===g&&(E=Object(m.t)("PreviewNodes.End")),D&&(w=S,L=_[0].userId),N&&y&&R.push({type:u.l.CUSTOM_ELEMENT,data:T.bind(null,null!=h?h:d.o.Normal,null!=c?c:[],A,b)}),N&&!y&&R.push({type:u.l.CUSTOM_ELEMENT,data:()=>I(c[0],b)}),!N&&y&&(w=S,R.push({type:u.l.NO_BG_TEXT,data:x(p,A)})),O&&Object(n.m)(O)&&O.length>0&&p!==u.j.AUTO_ICC_PASS&&(w=S,O.forEach((e=>{R.push({type:u.l.NO_BG_TEXT,data:e})}))),p===u.j.AUTO_PASS&&(w=u.d.SYSTEM_AUTO_PASS_AVATAR),p===u.j.AUTO_REJECT&&(w=u.d.SYSTEM_AUTO_REJECT_AVATAR,a&&(z=u.k.REJECT)),p===u.j.END&&(w=u.d.IMAGE_FLOW_END),p===u.j.AUTO_ICC_PASS&&(w=u.d.CC,E=l);var U=Date.now().valueOf()+31504464e6+r;if(j&&a&&p!==u.j.AUTO_ICC_PASS){var B=t.approverManager.configMap[g];R.push({type:u.l.MEMBER_LIST,data:B&&B.users?B.users.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.avatarUrl,userId:e.id,userName:e.name}))):[],ext:{isAtFormPage:a,isShowAddBtn:!0,isShowDelBtn:!0,isShowEmptyError:t.isSubmitted,addMemberFn:()=>F(g,t),deleteMemberFn:e=>function(e,t,a){var r=a.approverManager.configMap[e];if(r){var n=r.users.filter((e=>e.id!==t));a.approverManager.addConfig(Object(i.a)(Object(i.a)({},r),{},{users:n}))}}(g,e,t)}})}else(_&&_.length>0&&p!==u.j.START||!a&&_&&_.length>1)&&(w=S,R.push({type:u.l.MEMBER_LIST,data:_.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl})))}));var Y=p===u.j.AUTO_ICC_PASS&&v&&v.length>=0,G=p!==u.j.AUTO_ICC_PASS&&v&&v.length>0,W=(null==f?void 0:f.length)>0;if(Y||G||M||W){var V=v&&v.length>0?v.map((e=>({userName:e.userName,userId:e.userId,avatarUrl:e.userAvatarUrl,tenantId:e.tenantId,tenantName:e.tenantName}))):[],H=t.approverManager.configMap[g],Z=H&&H.ccers?H.ccers.map((e=>({userName:e.name,userId:e.id,avatarUrl:e.avatarUrl,tenantId:e.tenantId,tenantName:e.tenantName}))):[],q=Object(o.a)([...Z,...V],(e=>e.userId));if(Y?k=Object(m.t)("Detail.CCToNPeople",{count:q.length}):W||R.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("Detail.CCToNPeople",{count:q.length})}),(M||v&&v.length>0)&&R.push({type:u.l.MEMBER_LIST,data:q,ext:{isShowAddBtn:a&&M,fixedMembers:v.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl}))),addMemberFn:()=>Q(g,t),deleteMemberFn:e=>function(e,t,a){var r=a.approverManager.configMap[e];if(r){var n=r.ccers?r.ccers.filter((e=>e.id!==t)):[];a.approverManager.addConfig(Object(i.a)(Object(i.a)({},r),{},{ccers:n}))}}(g,e,t),isShowAllExpand:a&&q.length>0,isShowSomeExpand:!0,isAtFormPage:a}}),Y&&O.length>0){var K={type:u.l.BG_TEXT,data:O.toString(),ext:{isShowAllExpand:!1,isShowColon:!1,style:{backgroundColor:"#E1EAFF",padding:a?"8px":"12px",fontFamily:"PingFang SC"}}};M&&v&&0===v.length?0===q.length&&R.push(K):R.push(K)}W&&(k="",R.push({type:u.l.NO_BG_TEXT,data:f.toString(),ext:{isShowAllExpand:!1,isShowColon:!1}}))}return{userId:L,avatarUrl:w,mainTitle:E,descContent:k,oriTimeForSort:U,status:z,childrens:R,consignAgentList:c,originNodeType:b}}))}function H(e){var{type:t,userId:a="",userName:r,userAvatarUrl:n,agentUserId:o,agentUserName:s="",agentUserAvatarUrl:c,completeTime:l,reasonType:p,endCcs:h,accepterName:v,accepterId:j,accepterAvatarUrl:O,newComment:f,comment:M,nodeKey:_,nodeName:y,agentUserType:D,originNodeType:N,signatureUrl:A,isSecondApproval:T,isBatchOperate:I,tenantId:C,tenantName:x}=e,S=D===u.a.InsteadSubmitter,w=Number(o)&&!S,L=w?o:a,E=w?u.b.Agent:0,k=w?s:r,z=w?c:n,R=w?a:S?o:void 0,P=w?r:S?s:void 0,U=p===u.i.AUTO_PASS,B=!Number(L)&&t!==u.k.CREATE&&t!==u.k.DELETE&&t!==u.k.ICC,F=t===u.k.REDIRECT&&p===u.i.LEAVE_JOB_REDIRECT,Y=t===u.k.CC&&(p===u.i.LEAVE_JOB_ADMIN||p===u.i.LEAVE_JOB_TL),Q=t===u.k.AUTO_PASS&&p===u.i.IS_STARTER_AUTO_PASS,G=t===u.k.REDIRECT&&p===u.i.IS_STARTER_REDIRECT_ADMIN,W=t===u.k.REDIRECT&&p===u.i.IS_STARTER_REDIRECT_LEADER,V=t===u.k.AUTO_PASS&&p===u.i.IS_STARTER_REDIRECT_LEADER_DISMISS,H=t===u.k.AUTO_PASS&&p===u.i.IS_STARTER_REDIRECT_ADMIN_DISMISS,Z=B||U||F||Y||Q||G||W||V||H,q=D===u.a.Manager,K=Z?u.d.SYSTEM_AUTO_PASS_AVATAR:z,J="",X="",$="",ee=N===d.k.TRANSACT?Object(m.t)("timeline.node.handled"):Object(m.t)("timeline.pass");p===u.i.AUTO_PASS&&(J=Object(m.t)("Detail.NodeNoApprovers")),Y&&(p===u.i.LEAVE_JOB_TL&&(J="".concat(Object(m.t)("Detail.ApplicantQuitCCLeader",{approverName:k}))),p===u.i.LEAVE_JOB_ADMIN&&(J="".concat(Object(m.t)("Detail.ApplicantQuitCCAdmin",{approverName:k})))),F&&(J=Object(m.t)("Detail.ApproverQuitRedirect",{approverName:k})),t===u.k.REJECT&&(X=u.g[t],k||(K=u.d.SYSTEM_AUTO_REJECT_AVATAR));var te=[];return v&&t===u.k.REDIRECT&&(X=Object(m.t)("Detail.RedirectToSomeone",{name:v}),W&&(X=Object(m.t)("Detail_ApplicantIsStarterRedirectedLeader")),G&&(X=Object(m.t)("Detail_ApplicantIsStarterRedirectedAdmin"))),I&&te.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("BatchOperate.BatchProcess")}),t===u.k.AUTO_PASS&&(Q?te.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("Detail_ApplicantIsStarterAutoAgree")}):V?te.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("Detail_ApplicantIsStarterRedirectedLeaderDismiss")}):H?te.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("Detail_ApplicantIsStarterRedirectedAdminDismiss")}):p===u.i.AUTO_APPROVAL?te.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("approval-mp_AutoApproved_Desc","该用户设置了自动审批")}):te.push({type:u.l.NO_BG_TEXT,data:Object(m.t)("AgreeWhenRepeated")})),t===u.k.CC&&h&&h.length>0&&(X=q?"":u.g[u.k.CC],te.push({type:u.l.MEMBER_LIST,data:h.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl})))})),t===u.k.ICC&&h&&h.length>=0&&($=h.length>0?Object(m.t)("Detail.CCToNPeopleAlready",{count:h.length}):Object(m.t)("Detail.CCToNPeople",{count:h.length}),K=u.d.CC,0===h.length?X=M:te.push({type:u.l.MEMBER_LIST,data:h.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl}))),ext:{isNoDesc:!0}})),J&&te.push({type:u.l.BG_TEXT,data:J}),f&&f.content&&te.push({type:u.l.COMMENT,data:f.content}),A&&t===u.k.AGREE&&te.push({type:u.l.SIGNATURE,data:{signatureLabel:"".concat(Object(m.t)("Signature_title"),""),signatureUrl:A}}),_===g.f.START&&(X=Object(m.t)("Rollback.RollbackSubmitAgain")),T&&te.push({type:u.l.SECOND_APPROVAL,data:null}),t===u.k.ICC?{userId:L,mainTitle:$,descContent:X,status:t,oriTimeForSort:Number(l),avatarUrl:K,childrens:te,agentUserType:D,accepterName:v,accepterId:j,accepterAvatarUrl:O,nodeKey:_,nodeName:y,isHandleType:N===d.k.TRANSACT}:{userId:Z?"":L,userName:k,userType:E,consignUserId:R,consignUserName:P,mainTitle:Z?Object(m.t)("Detail.System"):k||"",descContent:q?X:X||ee,status:t,oriTimeForSort:Number(l),avatarUrl:K,childrens:te,agentUserType:D,accepterName:v,accepterId:j,accepterAvatarUrl:O,nodeKey:_,nodeName:y,originNodeType:N,showApprovalNodeName:b.d.fgShowApprovalName,TenantId:C,tenantName:x}}function Z(e){var{timeline:t}=e,a=t.filter((e=>{var{type:t,endCcs:a}=e;return!(t===u.k.ICC&&a&&0===a.length)}));return a.map(H)}function q(e){var t=[];return e.eventList.forEach((e=>{t.push(function(e){var{operatorId:t="",operatorName:a,operatorAvatar:r,agentUserId:n,agentUserName:o,agentUserAvatarUrl:s,createTime:c,involvedUserList:l,editType:d,newComment:p,signatureUrl:h,nodeId:v,nodeName:j,rollbackInfos:O,originOperateType:f}=e,M=Number(n),_=M?n:t,y=M?u.b.Agent:0,D=M?o:a,N=M?s:r,A=M?t:void 0,T=M?a:void 0,I=[],C={[u.c.AFTER]:u.k.ADD_APPROVER,[u.c.AND]:u.k.ADD_APPROVER,[u.c.BEFORE]:u.k.ADD_APPROVER,[u.c.DELETE]:u.k.DELETE_APPROVER,[u.c.ALL_ROLLBACK]:u.k.ROLLBACK,[u.c.ROLLBACK]:u.k.ROLLBACK,[u.c.SEEK_ADVICE]:u.k.SEEK_ADVICE},x=Number(d)<4,S=Number(d)===u.c.ROLLBACK||Number(d)===u.c.ALL_ROLLBACK,w=f===g.j,L="";if(S)L=w?Object(m.t)("approval-mp_RejectToSubmitter_Desc"):Object(m.t)("approval-mp_SentBack_Desc");else{var E=l.map((e=>e.userName)).join(Object(m.t)("Dayton"));L=d===u.c.SEEK_ADVICE?"".concat(Object(m.t)("approval-mp_AskForOpinions_Tag")).concat(Object(m.t)("Colon")).concat(E):Object(m.t)(x?"AddTask.DetailDesc":"RemoveTask.DetailDesc",{involvedUserList:E})}return p&&p.content&&I.push({type:u.l.COMMENT,data:p.content}),h&&x&&I.push({type:u.l.SIGNATURE,data:{signatureLabel:"".concat(Object(m.t)("Signature_title"),""),signatureUrl:h}}),Object(i.a)({userId:_,userType:y,userName:D,consignUserId:A,consignUserName:T,mainTitle:D,descContent:L,status:C[d],avatarUrl:N,oriTimeForSort:Number(c),childrens:I,nodeKey:v,nodeName:j,showApprovalNodeName:b.d.fgShowApprovalName},S?{rollbackInfos:O,isRejectTask:w}:{})}(e)),e.editType===u.c.SEEK_ADVICE&&t.push(...(e=>{var{adviseDoneUserList:t=[],advisePendingUserList:a=[],createTime:r}=e,n={userId:"",mainTitle:e.nodeName||"",descContent:Object(m.t)("approval-mp_Processing_Tag"),status:u.k.CURRENT,oriTimeForSort:Number(r)+t.length,avatarUrl:u.d.IMAGE_DETAIL_APPROVER,nodeKey:e.nodeId,nodeName:e.nodeName,childrens:[{type:u.l.MEMBER_LIST,data:a.map((e=>Object(i.a)(Object(i.a)({},e),{},{avatarUrl:e.userAvatarUrl})))}]},o=t.map(((e,t)=>{var{nodeId:a="",nodeName:i,newComment:n,userName:o,userAvatarUrl:s,completeTime:c}=e;return{nodeKey:a,nodeName:i,mainTitle:o,isHandleType:!0,descContent:Object(m.t)("approval-mp_Completed_Tag"),status:u.k.AGREE,avatarUrl:s,oriTimeForSort:Number(r)+t,displayTime:c,childrens:[{type:u.l.COMMENT,data:null==n?void 0:n.content}]}}));return o.concat(null!=a&&a.length?[n]:[])})(e))})),t}function K(e){var{newComments:t}=e;return(t||[]).map((e=>{var{commentator:t,createTime:a,content:r}=e;return{userId:t.UserId,avatarUrl:t.AvatarUrl,mainTitle:t.Name,tenantName:t.tenantName,TenantId:String(t.TenantId),oriTimeForSort:a,descContent:u.g[u.k.COMMENT],childrens:[{type:u.l.COMMENT,data:r,ext:{commentData:e}}],status:u.k.COMMENT}}))}function J(e,t,a){return[w(e,a),L(e,t),...Z(e),...E(e,t),...q(e),k(e),R(e),z(e),...K(e)].filter((e=>Boolean(e))).sort(((e,t)=>Number(e.oriTimeForSort)-Number(t.oriTimeForSort)))}function X(e,t,a){var r=J(e,!1,a),{previewNodes:i,currentTask:o}=e;if(null!=o&&o.nodeId&&(r=r.concat([S(e,t,!1)])),null!=i&&i.length){var s=V(i,t,!1);r=r.concat(s)}r=r.filter((e=>Boolean(e))).sort(((e,t)=>Number(e.oriTimeForSort)-Number(t.oriTimeForSort)));var{originalProcessMap:c}=t;return c&&Object(n.s)((()=>{c.set(e.instanceId,{instanceInfo:e,processData:r})})),r}function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(r){var{originalProcessMap:n}=e;if(null!=n&&n.has(r)){var{instanceInfo:o,processData:s}=n.get(r);return s||X(o,e,i)}}var{instanceInfo:c,previewListManager:l,processType:p,isHasWritableAndRequiredAndNoValue:m}=e,{flowListData:h,lockedLoading:b}=l,g=S(c,e,t),v=e.previewListManager&&e.previewListManager.isErrorFromApi&&p===d.l.IS_NOT_FREE;if(v)return N;var j=Boolean(h)&&h.length>0,O=Boolean(c);if(!O&&!j&&p===d.l.IS_NOT_FREE)return D;var f=[];if(O&&c&&(f=f.concat(J(c,t,i))),f=f.filter((e=>Boolean(e))).sort(((e,t)=>Number(e.oriTimeForSort)-Number(t.oriTimeForSort))),g&&(f=[...f,g]),j&&p===d.l.IS_NOT_FREE){var M=m&&a?[]:V(h,e,t);f=f.concat(M)}var _=f.find((e=>e.avatarUrl===u.d.IMAGE_FLOW_END));return _||b||c&&c.instanceStatus!==u.e.PENDING||p!==d.l.IS_NOT_FREE||(m&&a?f.push(D[0]):f.push(A[0])),f}},function(e,t,a){"use strict";a.d(t,"a",(function(){return S})),a.d(t,"b",(function(){return w}));var r,i,n,o,s,c,l,d,u,p,m,h,b,g,v,j=a(5),O=a(9),f=a(11),M=a(6),_=a(7),y=(a(56),a(4)),D=a(16),N=a(2),A=a(10),T=a(12),I=a(127),C=a(25),x=a(98),S={CONTACT:{id:I.b.ROOT,path:[],name:Object(N.t)("Contact"),hasChild:!1},ORGANIZATION:{id:I.b.ORGANIZATION_ROOT,path:[],name:Object(N.t)("Department_Organization"),hasChild:!1},COLLABORATION:{id:I.b.COLLABORATION_ROOT,path:[],name:Object(N.t)("CollaborationTenant"),hasChild:!1}},w=(r=class{constructor(){var e=this;Object(f.a)(this,"keyword",i,this),Object(f.a)(this,"params",n,this),Object(f.a)(this,"departmentLoading",o,this),Object(f.a)(this,"visibleEmpty",s,this),Object(f.a)(this,"instanceId",c,this),Object(f.a)(this,"breadcrumb",l,this),Object(f.a)(this,"depTreeData",d,this),Object(f.a)(this,"selectedDepData",u,this),Object(f.a)(this,"selectedValueData",p,this),Object(f.a)(this,"collaborationTenantList",m,this),Object(f.a)(this,"rootList",h,this),Object(f.a)(this,"renderType",b,this),Object(f.a)(this,"currentCollaborationTenant",g,this),Object(M.a)(this,"cacheRuntimeDepMap",new Map),Object(f.a)(this,"depTreeDataLoading",v,this),Object(M.a)(this,"BREADCRUMB_ELLIOSIS_NODE",{id:-1,name:"...",hasChild:!1}),Object(M.a)(this,"loadingSearched",Object(y.k)(this._loadingSearched)),Object(M.a)(this,"init",Object(y.k)(this._init)),Object(M.a)(this,"loadBreadcrumb",Object(y.k)(this._loadBreadcrumb)),Object(M.a)(this,"requestDepartmentChildrenById",Object(y.k)(this._requestDepartmentChildrenById)),Object(M.a)(this,"getCollaborationTenant",Object(O.a)((function*(){try{var t,{data:{collaboration_tenants:a}}=yield D.c.getCollaborationTenant(Object(j.a)({offset:0,page_size:50},e.instanceId?Object(x.b)({instanceId:e.instanceId,globalStore:C.d}):{}),{silent:!0}),r=null!==(t=null==a?void 0:a.map((e=>({id:"0",tenant_id:e.tenant_id,path:[e.tenant_name],name:e.tenant_name,icon:e.tenant_icon}))))&&void 0!==t?t:[];A.a.info("fetchCollaborationList update cache"),e.setCollaborationTenantList(r)}catch(t){A.a.warn("fetchCollaborationList fail",t),e.setCollaborationTenantList([])}})))}setVisibleEmpty(e){this.visibleEmpty=e}setKeyword(e){this.keyword=e}setParams(e){this.params=e}*_loadingSearched(){var{enableChooseCrossTenant:e}=C.d;e?this.setBreadcrumb([]):this.clearBreadcrumb();var t=this.keyword;try{this.departmentLoading=!0;var{data:a}=yield D.c.usersearchDepartments(Object(j.a)({offset:0,pageSize:50,query:t},Object(x.b)(Object(j.a)({instanceId:this.instanceId,globalStore:C.d},this.params))));if(Object(T.b)("add_department_search_keyword",{keyword:this.keyword}),this.keyword!==t)return;if(a.departmentList&&a.departmentList.length>=0){var r=a.departmentList.map((e=>({id:e.id,name:e.name,path:e.path||[e.name],hasChild:e.hasChild,tenant_id:e.tenantId,tenant_name:e.tenantName})));this.setDepTreeData(r),this.setRenderType(I.a.DEPARTMENT)}}catch(e){if(this.keyword!==t)return;A.a.error("department-store searchDepartments failed"),this.setDepTreeData([])}finally{this.departmentLoading=!1}}clearKeyword(){this.keyword=""}clearParams(){this.params={}}setBreadcrumb(e){this.breadcrumb=e}pushBreadcrumb(e){this.clearKeyword(),0===this.breadcrumb.length&&this.breadcrumb.push(S.ORGANIZATION),this.breadcrumb.push(e)}clearBreadcrumb(){this.breadcrumb=[S.ORGANIZATION]}jumpToBreadcrumb(e){this.breadcrumb.length>3?this.breadcrumb=this.breadcrumb.slice(0,e+1):0===e?this.clearBreadcrumb():this.breadcrumb=this.breadcrumb.slice(0,e+1)}setDepTreeData(e){this.depTreeData=e}clearDepTreeData(){this.depTreeData=[]}setSelectedDepData(e){this.selectedDepData=e}setSelectedValueData(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedDepData;this.selectedValueData=e}deleteSelectedValueData(e){this.selectedValueData=this.selectedValueData.filter((t=>t.id!==e))}appendSelectedDepData(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||this.clearSelectedDepData(),this.setSelectedDepData([...this.selectedDepData,e])}deleteSelectedDepData(e){this.setSelectedDepData(this.selectedDepData.filter((t=>"".concat(e.id)!=="".concat(t.id))))}clearSelectedDepData(){this.selectedDepData=[]}setRenderType(e){this.renderType=e}setCollaborationTenantList(e){this.collaborationTenantList=e}setRootList(e){this.rootList=e}setCurrentCollaborationTenant(e){this.currentCollaborationTenant=e}setInstanceId(e){this.instanceId=e}initRootList(){var e=this;return Object(O.a)((function*(){yield e.getCollaborationTenant();var t=Object(I.c)(Boolean(e.collaborationTenantList.length));e.setRootList(t)}))()}output(){return[]}*_init(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.departmentLoading=!0,t&&this.setSelectedDepData(this.selectedValueData),yield this.requestDepartmentChildrenById(),this.departmentLoading=!1,e?this.loadBreadcrumb(e):C.d.enableChooseCrossTenant?(this.initRootList(),this.setBreadcrumb([]),this.setRenderType(I.a.ROOT)):this.setBreadcrumb([S.ORGANIZATION])}*_loadBreadcrumb(e){var{data:t}=yield D.c.userqueryDepartmentParents({departmentId:e});if(t||A.a.error("department-store queryDepartmentParents failed"),t.departmentList&&t.departmentList.length>0){var a=[S.ORGANIZATION,...t.departmentList.reverse()];C.d.enableChooseCrossTenant&&a.unshift(S.CONTACT),this.setBreadcrumb(a),t.departmentList[t.departmentList.length-1]&&this.requestDepartmentChildrenById(t.departmentList[t.departmentList.length-1].id)}}getCacheIdFormLevel(e,t){return t&&"0"===e?"".concat(e,"-").concat(t):e}*_requestDepartmentChildrenById(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0",{cacheRuntimeDepMap:a,currentCollaborationTenant:r}=this,{tenant_id:i,name:n}=r,{enableChooseCrossTenant:o}=C.d,s=this.getCacheIdFormLevel(t,i);if(a.get(s))e=a.get(s);else try{this.departmentLoading=!0,e=(yield D.c.userquerySubDepartmentById(Object(j.a)({departmentId:t},o?Object(j.a)({offset:0,pageSize:50},Object(x.b)({tenantId:i,globalStore:C.d})):{}))).data,a.set(s,e)}catch(e){A.a.error("department-store querySubDepartmentById failed",e)}finally{this.departmentLoading=!1}if(e.departmentList&&e.departmentList.length>=0){var c=e.departmentList.map((e=>({id:e.id,name:e.name,path:e.path||[e.name],hasChild:e.hasChild,tenant_id:i,tenant_name:n})));this.setDepTreeData(c),this.setVisibleEmpty(0===e.departmentList.length)}}clearAll(){this.clearKeyword(),this.clearBreadcrumb(),this.clearDepTreeData(),this.clearSelectedDepData(),this.clearParams()}},i=Object(_.a)(r.prototype,"keyword",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),n=Object(_.a)(r.prototype,"params",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),o=Object(_.a)(r.prototype,"departmentLoading",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=Object(_.a)(r.prototype,"visibleEmpty",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(_.a)(r.prototype,"setVisibleEmpty",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setVisibleEmpty"),r.prototype),c=Object(_.a)(r.prototype,"instanceId",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),l=Object(_.a)(r.prototype,"breadcrumb",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),d=Object(_.a)(r.prototype,"depTreeData",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=Object(_.a)(r.prototype,"selectedDepData",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=Object(_.a)(r.prototype,"selectedValueData",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=Object(_.a)(r.prototype,"collaborationTenantList",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),h=Object(_.a)(r.prototype,"rootList",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Object(I.c)()}}),b=Object(_.a)(r.prototype,"renderType",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return I.a.ROOT}}),g=Object(_.a)(r.prototype,"currentCollaborationTenant",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),v=Object(_.a)(r.prototype,"depTreeDataLoading",[y.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(_.a)(r.prototype,"setKeyword",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setKeyword"),r.prototype),Object(_.a)(r.prototype,"setParams",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setParams"),r.prototype),Object(_.a)(r.prototype,"clearKeyword",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"clearKeyword"),r.prototype),Object(_.a)(r.prototype,"clearParams",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"clearParams"),r.prototype),Object(_.a)(r.prototype,"setBreadcrumb",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setBreadcrumb"),r.prototype),Object(_.a)(r.prototype,"pushBreadcrumb",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"pushBreadcrumb"),r.prototype),Object(_.a)(r.prototype,"clearBreadcrumb",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"clearBreadcrumb"),r.prototype),Object(_.a)(r.prototype,"jumpToBreadcrumb",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"jumpToBreadcrumb"),r.prototype),Object(_.a)(r.prototype,"setDepTreeData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setDepTreeData"),r.prototype),Object(_.a)(r.prototype,"clearDepTreeData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"clearDepTreeData"),r.prototype),Object(_.a)(r.prototype,"setSelectedDepData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setSelectedDepData"),r.prototype),Object(_.a)(r.prototype,"setSelectedValueData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setSelectedValueData"),r.prototype),Object(_.a)(r.prototype,"deleteSelectedValueData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"deleteSelectedValueData"),r.prototype),Object(_.a)(r.prototype,"appendSelectedDepData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"appendSelectedDepData"),r.prototype),Object(_.a)(r.prototype,"deleteSelectedDepData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"deleteSelectedDepData"),r.prototype),Object(_.a)(r.prototype,"clearSelectedDepData",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"clearSelectedDepData"),r.prototype),Object(_.a)(r.prototype,"setRenderType",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setRenderType"),r.prototype),Object(_.a)(r.prototype,"setCollaborationTenantList",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setCollaborationTenantList"),r.prototype),Object(_.a)(r.prototype,"setRootList",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setRootList"),r.prototype),Object(_.a)(r.prototype,"setCurrentCollaborationTenant",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setCurrentCollaborationTenant"),r.prototype),Object(_.a)(r.prototype,"setInstanceId",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"setInstanceId"),r.prototype),Object(_.a)(r.prototype,"initRootList",[y.f],Object.getOwnPropertyDescriptor(r.prototype,"initRootList"),r.prototype),r)},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"c",(function(){return c})),a.d(t,"f",(function(){return l}));var r,i=0,n=1,o=("".concat(1,"-").concat(1),"".concat(2,"-").concat(3),"".concat(3,"-").concat(7),"".concat(4,"-").concat(7),"".concat(12,"-").concat(7),"".concat(5,"-").concat(6),"".concat(7,"-").concat(3),"".concat(6,"-").concat(3),"".concat(8,"-").concat(6),"".concat(9,"-").concat(6),14),s="fieldList",c="dateInterval",l="serialNumber";!function(e){e.Agree="agree",e.Reject="reject",e.Thirdpart="3rd"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return E})),a.d(t,"b",(function(){return k})),a.d(t,"c",(function(){return z}));var r=a(182),i=a(53),n=a(235),o=a(51),s=a(55),c=a(332),l=a(171),d=a(86),u=a(140),p=a(305),m=a(39);function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach((function(t){g(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function v(e,t,a,r,i,n,o){try{var s=e[n](o),c=s.value}catch(e){return void a(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function j(e){return function(){var t=this,a=arguments;return new Promise((function(r,i){var n=e.apply(t,a);function o(e){v(n,r,i,o,s,"next",e)}function s(e){v(n,r,i,o,s,"throw",e)}o(void 0)}))}}var O=function(){var e=j((function*(e){var t=yield Object(p.a)({key:Object(n.c)(e)});return!(!t||!t.TaskConfig)}));return function(t){return e.apply(this,arguments)}}(),f={init(e){var{token:t,language:a,userInfo:r,channel:i=s.c.CN}=e;o.a.EnvInfo.token=t,o.a.EnvInfo.language=a,o.a.UserInfo=b(b({},o.a.UserInfo),r),o.a.Channel=i,d.c&&Object(l.f)({key:Object(n.c)(t)})},setLanguage(e){o.a.EnvInfo.language=e},setUserInfo(e){o.a.UserInfo=b(b({},o.a.UserInfo),e)},triggerEvent(e){var t=arguments;return j((function*(){var{page:a}=t.length>1&&void 0!==t[1]?t[1]:{page:""};if(d.c&&(yield O(o.a.EnvInfo.token)))return;var r=yield Object(c.b)(e);if(r&&Array.isArray(r.task_list)&&!(r.task_list.length<1)){var[n]=r.task_list,s=r.task_settings[n];if(s){var{language_config:l,common_config:{label_setting:u}}=s.survey_task;o.a.Labels=b(b({},l),u)}return i.e.trigger(i.b.CMD_Dialog_Show,{taskConfig:s.survey_task,page:a}),s.survey_task}}))()},triggerTask(e){var t=arguments;return j((function*(){var{page:a}=t.length>1&&void 0!==t[1]?t[1]:{page:""};if(d.c&&(yield O(o.a.EnvInfo.token)))return;var r=yield Object(c.a)(e);if(r){var{language_config:n,common_config:{label_setting:s}}=r;o.a.Labels=b(b({},n),s)}return i.e.trigger(i.b.CMD_Dialog_Show,{taskConfig:r,page:a}),r}))()},closeAllDialog(){i.e.trigger(i.b.CMD_Dialog_Close,{tap:r.a.None})},restoreFromStorage:e=>j((function*(){var t=yield Object(p.a)({key:Object(n.c)(e)});if(t){var{EnvInfo:a,UserInfo:r,Labels:i,TaskConfig:s,Channel:c}=t;return o.a.EnvInfo=b({},a),o.a.Labels=b({},i),o.a.UserInfo=b({},r),o.a.Channel=c,s&&(o.a.TaskConfig=b({},s)),!0}return!1}))(),openDialogCard:e=>j((function*(){var{token:t,taskConfig:a,lynxCompInstance:r,hooks:s={}}=e;if(t&&a&&(Object(l.b)({context:r}),!(yield O(o.a.EnvInfo.token)))){Object.entries(s).map((e=>{var[t,r]=e;if([i.a.Closed,i.a.Shown,i.a.Submitted].includes(t)&&r instanceof Function){var o=Object(n.b)(t,a.task_id);Object(l.j)({eventName:o,timestamp:Date.now()}),Object(l.c)(o,j((function*(){Object(l.k)({eventName:o}),r()})))}})),a&&(o.a.TaskConfig=a),yield Object(p.c)({key:Object(n.c)(t),value:o.a});var c=Object(n.a)(t,o.a.Channel);try{yield Object(l.d)({schema:c,replace:!1,useSysBrowser:!1})}catch(e){u.a.error("open schema: ".concat(c," error"),e)}}}))()};if(d.c);else{var{system:M,platform:_,version:y,appName:D,SDKVersion:N}=m.h;o.a.UserInfo=b(b({},o.a.UserInfo),{},{os_name:_,os_version:M,app_version:y,app_name:D,sdk_version:N})}var A=a(28),T=A.u?"sg":"cn",I=A.m?"31702427c41dccc99e35741704b9af6226814c88":"c29a8c1b35b89ef1cec1b3f7764090d775bd47e7",C=a(2),x=a(10),S=a(20),w=Object(S.c)("pc:src/utils/feel-good.ts"),L="pc src/utils/feel-good.ts";function E(e){if(e){var{name:t,encryptedUserId:a,encryptedTenantId:r,tenantId:i}=e,n={user_id:a,user_name:t,secret_id:a,encrypt_tenant_id:r,in_or_ex_user:"1"===i?"INTERNAL_USER":"EXTERNAL_USER"};f.init({token:I,language:C.feelGoodLang,channel:T,userInfo:n}),w("feelGoodInitSuccess",{language:C.feelGoodLang,channel:T,feelGoodUserInfo:n,location:L})}else w("feelGoodIniFail",{message:"user info is empty",location:L})}function k(e){f.setUserInfo(e),x.a.info("setFeelGoodUserInfo",e)}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return x.a.info("触发feel good事件",{event:e,page:t}),f.triggerEvent(e,{page:t})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return v})),a.d(t,"e",(function(){return O})),a.d(t,"d",(function(){return M})),a.d(t,"c",(function(){return y})),a.d(t,"b",(function(){return N}));var r=a(55),i=a(140),n=a(51),o="/athena/survey/platform/task/setting/",s="/athena/survey/platform/task/submit/",c="/athena/survey/platform/task/show/",l="/athena/survey/platform/action/report/",d=a(305);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){m(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function m(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function h(e,t,a,r,i,n,o){try{var s=e[n](o),c=s.value}catch(e){return void a(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function b(e){return function(){var t=this,a=arguments;return new Promise((function(r,i){var n=e.apply(t,a);function o(e){h(n,r,i,o,s,"next",e)}function s(e){h(n,r,i,o,s,"throw",e)}o(void 0)}))}}var g=e=>n.a.Channel===r.c.SG?"https://feelgood-api.tiktok.com"+e:"https://api.feelgood.cn"+e;function v(e){return j.apply(this,arguments)}function j(){return j=b((function*(e){if(e){var t=yield Object(d.b)({url:g(o),method:"POST",params:{language:n.a.EnvInfo.language},body:p(p({task_id:e},n.a.EnvInfo),{},{user:p({},n.a.UserInfo)})});if(t)return t.survey_task&&(t.survey_task.is_submitted=t.is_submitted||!1,t.survey_task.can_submit=t.can_submit||!1,n.a.TaskConfig=t.survey_task),t.survey_task;i.a.error("Failed to get task config",t||{})}else i.a.error("fetchTaskConfig with invalid taskId")})),j.apply(this,arguments)}function O(e){return f.apply(this,arguments)}function f(){return f=b((function*(e){return yield Object(d.b)({url:g(s),body:p(p({},e),{},{user:p({},n.a.UserInfo)},n.a.EnvInfo),method:"POST"})})),f.apply(this,arguments)}function M(){return _.apply(this,arguments)}function _(){return(_=b((function*(){return yield Object(d.b)({url:g(s),method:"POST",body:p(p(p({user:p({},n.a.UserInfo)},n.a.EnvInfo),n.a.TaskConfig),{},{do_not_show_again:!0,shown_questions:[],time_cost:0})})}))).apply(this,arguments)}function y(e,t){return D.apply(this,arguments)}function D(){return D=b((function*(e,t){var{task_id:a,task_version:r,report_id:i}=t;return yield Object(d.b)({url:g(c),method:"POST",body:p(p({type:e,task_id:a,task_version:r,report_id:i,cnt:1},n.a.EnvInfo),{},{user:p({},n.a.UserInfo)})})})),D.apply(this,arguments)}function N(e){return A.apply(this,arguments)}function A(){return A=b((function*(e){var t=yield Object(d.b)({url:g(l),method:"POST",body:p(p({},n.a.EnvInfo),{},{user:p({},n.a.UserInfo),events:[{cnt:1,type:e,is_custom:1}]})});if(t&&Array.isArray(t.task_list)&&t.task_list.length>0&&t.task_settings){var a=t.task_list[0],r=t.task_settings[a];n.a.TaskConfig=r.survey_task}return t})),A.apply(this,arguments)}},,,function(e,t,a){"use strict";var r=a(5),i=a(37),n=(a(3),a(15)),o=a(1),s=a(13),c=a(447),l=a(618),d=a(622),u=a(623),p=a(624),m=a(628),h=a(629),b=a(630),g=a(631),v=a(633),j=a(449),O=a(638),f=a(643),M=a(646),_=a(289),y=a(701),D=a(711),N=a(675),A=a(676),T=a(703),I=a(677),C=a(0),x=["isEditing","widget","ctxId","isInDetailPage"],S=Object(n.a)((e=>{var{isEditing:t=!1,widget:a,ctxId:n,isInDetailPage:S}=e,w=Object(i.a)(e,x);if(!a)return null;var{data:{visible:L,writable:E,isRestored:k}}=a;if(!L)return Object(C.jsx)(o.r,{className:"table-cell-editor--hidden"});if(!E&&!k)return Object(C.jsx)(I.a,{type:"editor",widgetType:a.type});var z=!t||"editing";switch(a.type){case s.c.ADDRESS:return Object(C.jsx)(y.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.ATTACHMENT_V2:return Object(C.jsx)(O.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.IMAGE:return Object(C.jsx)(j.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.CONTACT:return Object(C.jsx)(_.b,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.DATE_INTERVAL:return Object(C.jsx)(M.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.DATE_RANGE:return Object(C.jsx)(N.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.DATE_TIME:return Object(C.jsx)(f.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.DESC:return Object(C.jsx)(c.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.MULTI_SELECT:return Object(C.jsx)(g.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.MULTI_SELECT_V2:return Object(C.jsx)(v.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.SINGLE_INPUT:return Object(C.jsx)(l.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.SINGLE_SELECT:return Object(C.jsx)(h.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.SINGLE_SELECT_V2:return Object(C.jsx)(b.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.TEXTAREA:return Object(C.jsx)(d.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.NUMBER_INPUT:return Object(C.jsx)(u.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.AMOUNT_INPUT:return Object(C.jsx)(p.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.CALCULATION_FORMULA:return Object(C.jsx)(m.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.RELATIVE_APPROVAL:return Object(C.jsx)(D.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.DEPARTMENT:return Object(C.jsx)(A.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);case s.c.TELEPHONE:return Object(C.jsx)(T.a,Object(r.a)({ctxId:n,widget:a,inTable:z},w),a.id);default:return null}}));t.a=S},function(e,t,a){e.exports={"serial-id":"index-module__serial-id___28Su2","serial-id__inner":"index-module__serial-id__inner___3VUHz","serial-id__inner_prefix":"index-module__serial-id__inner_prefix___2wwKz","serial-id__inner_split":"index-module__serial-id__inner_split___Stqpo","serial-id__tooltip":"index-module__serial-id__tooltip___2HwUL",icon:"index-module__icon___2Opca",icon__image:"index-module__icon__image___14LR1"}},,function(e,t,a){e.exports={confirm:"confirm-module__confirm___1mml8",header:"confirm-module__header___36iQ1",title:"confirm-module__title___2Dvjj",icon:"confirm-module__icon___2wL7n",titleContent:"confirm-module__titleContent___32Yy9",body:"confirm-module__body___-GOgY",footer:"confirm-module__footer___1Jt8N",footerButtons:"confirm-module__footerButtons___uavM6"}},function(e,t,a){e.exports={main_wrap:"index-module__main_wrap___1AkYT",left:"index-module__left___3wsFW",icon:"index-module__icon___3IUDH",right:"index-module__right___3_uHq",title:"index-module__title___1djxa",content:"index-module__content___60a76",footer_wrap:"index-module__footer_wrap___svT-4",btn:"index-module__btn___2u4os"}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var r={},i=function(e){var t=e.logger,a=e.captureException,i=e.trace,n=e.serverTrace;t&&(r.logger=t),a&&(r.captureException=a),i&&(r.trace=i),n&&(r.serverTrace=n)}},,,,,,,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return g})),a.d(t,"b",(function(){return v}));var r=a(5),i=a(1),n=a(3),o=a(291),s=a(90),c=a(911),l=a.n(c),d=a(2),u=a(260),p=a(24),m=a(310),h=a.n(m),b=a(0),g=e=>{var t={cancel:Object(s.a)(null==e?void 0:e.onCancel),onChange:Object(s.a)(null==e?void 0:e.onCancel)},{globalStore:a}=Object(n.useContext)(p.a);return Object(b.jsxs)(i.r,{className:h.a.wrap,children:[Object(b.jsx)(i.r,{className:h.a.title,children:e.title}),e.descArea,Object(b.jsx)(i.r,{className:h.a.selector,children:Object(b.jsx)(o.a,Object(r.a)(Object(r.a)({},e),{},{candidateList:e.candidateList,checkedList:e.checkedList||[],candidateListLoading:e.candidateListLoading,maxChecked:e.maxChecked,showSelectAll:e.showSelectAll,showSearchBar:e.showSearchBar,showSelectedCount:e.showSelectedCount,onSearchChange:e.onSearchChange,onSearchPressEnter:e.onSearchPressEnter,onFoldChange:e.onFoldChange,onChange:e.onChange||t.onChange,selectorHeight:e.selectorHeight,localeString:e.localeString,enableCrossTenantApproval:a.enableShowCrossTenant,currentTenantId:a.currentUser.tenantId}))}),e.extArea,Object(b.jsxs)(i.r,{className:h.a.methods,children:[Object(b.jsx)(i.r,{className:h.a["methods-left"],children:e.methodsArea}),Object(b.jsxs)(i.r,{className:h.a["methods-right"],children:[Object(b.jsx)(i.r,{className:h.a["button-cancel"],onClick:t.cancel,children:Object(d.t)("ModalCancelText")}),e.sendBtnArea]})]}),Object(b.jsx)(i.r,{className:h.a.close,onClick:t.cancel,children:Object(b.jsx)(i.g,{className:h.a["close-icon"],src:l.a})})]})},v=Object(u.b)((e=>t=>{var a={cancel:Object(s.a)((()=>{e.close()}))};return Object(b.jsx)(g,Object(r.a)(Object(r.a)({},t),{},{onCancel:a.cancel}))}))},,,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n}));var r=a(28),i=()=>r.u?"applink.larksuite.com":"applink.feishu.cn",n=e=>/applink\.(feishu|larksuite)\.(com|cn)/.test(e)},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var r=a(6),i=a(3),n=a(1),o=a(8),s=a.n(o),c=a(157),l=a(803),d=a(746),u=a(124),p=(a(1181),a(0)),m=["placeholder","style","maxlength","hasError"];class h extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"innerValue",""),Object(r.a)(this,"lastRenderValue",null),Object(r.a)(this,"handleInput",Object(c.a)((e=>{this.innerValue=e.detail.value,this.props.onInput&&this.props.onInput(e)}),99))}shouldComponentUpdate(e){return!Object(l.a)(Object(d.a)(this.props,m),Object(d.a)(e,m))||!(!this.props.isControlled||(e.value||"")===this.innerValue)}render(){var{style:e,placeholder:t,maxlength:a,hasError:r,disabled:i=!1}=this.props,{value:o=""}=this.props;return this.lastRenderValue===o&&(o+=" ",setTimeout((()=>this.forceUpdate()),0)),this.innerValue=this.lastRenderValue=o,Object(p.jsx)(n.q,{className:s()("approval-textarea",{error:r},{disabled:i}),style:e,value:o,disabled:i,placeholder:t,maxlength:a,onInput:this.handleInput})}}Object(r.a)(h,"defaultProps",{maxlength:65536,onInput:u.a,isControlled:!0,hasError:!1,disabled:!1})},function(e,t,a){e.exports=a.p+"assets/illustration/search-no-result.png"},function(e,t,a){"use strict";var r=a(575);a.d(t,"a",(function(){return r.a}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var r,i,n=a(6),o=a(3),s=a(1),c=a(15),l=a(124),d=a(153),u=a(66),p=a(2),m=(a(1302),a(0)),h="standard-modal",b=Object(c.a)((i=class extends o.Component{constructor(){super(...arguments),Object(n.a)(this,"onWrapperClick",(e=>{if(e.target.id==="".concat(h,"-wrapper")){var{onCancel:t}=this.props;t&&t()}}))}render(){var{type:e,visible:t,title:a,width:r,height:i,showHeader:n,subTitle:o,renderFooter:c,onOk:l,onCancel:b,ctxId:g,bodyStyle:v,okText:j,cancelText:O}=this.props;return g?Object(m.jsx)(d.a,{visible:t,children:Object(m.jsx)(s.r,{id:"".concat(h,"-wrapper"),className:"".concat(h,"-wrapper"),onClick:this.onWrapperClick,children:Object(m.jsxs)(s.r,{className:h,style:{width:r,height:i},children:[n&&Object(m.jsxs)(s.r,{className:"".concat(h,"-header two-lines"),children:[Object(m.jsx)(s.r,{className:"".concat(h,"-title"),children:a}),o&&Object(m.jsx)(s.r,{className:"".concat(h,"-sub-title"),children:o})]}),Object(m.jsx)(s.r,{className:"".concat(h,"-body"),style:v,children:this.props.children}),Object(m.jsx)(u.a,{hidden:"default"===e,children:Object(m.jsx)(s.r,{className:"".concat(h,"-footer"),children:c})}),Object(m.jsx)(u.a,{hidden:"custom-footer"===e,children:Object(m.jsx)(s.r,{className:"".concat(h,"-footer"),children:Object(m.jsxs)(s.r,{className:"".concat(h,"-btn-group"),children:[Object(m.jsx)(s.r,{className:"".concat(h,"-btn-cancel"),onClick:b,children:O||Object(p.t)("popup.Off")}),Object(m.jsx)(s.r,{className:"".concat(h,"-btn-confirm"),onClick:l,children:j||Object(p.t)("ModalConfirmText")})]})})})]})})}):null}},Object(n.a)(i,"defaultProps",{type:"default",visible:!1,width:"350px",height:"auto",onOk:l.a,onCancel:l.a,showHeader:!0}),r=i))||r},,,,,,,function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n}));var r,i,n,o="/api/SubmitAsyncOperation";(function(e){e[e.TodoApproval=1]="TodoApproval",e[e.DoneApproval=2]="DoneApproval",e[e.InitiatedApproval=3]="InitiatedApproval",e[e.UnreadNotice=17]="UnreadNotice",e[e.ReadNotice=18]="ReadNotice",e[e.Frozen=254]="Frozen",e[e.Deleted=255]="Deleted"})(r||(r={})),function(e){e[e.ByFilter=1]="ByFilter",e[e.ByTask=2]="ByTask"}(i||(i={})),function(e){e[e.Approve=0]="Approve",e[e.Reject=1]="Reject",e[e.Depute=2]="Depute",e[e.Cancel=3]="Cancel",e[e.Modify=4]="Modify"}(n||(n={}))},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return s})),a.d(t,"d",(function(){return u})),a.d(t,"b",(function(){return p})),a.d(t,"e",(function(){return m}));var r=a(31),i=a.n(r),n=a(2),o=e=>{var t;t="number"==typeof e?i.a.unix(e):i()(e);var a=i()();return t.year()<a.year()?t.format("YYYY-MM-DD"):t.format("MM-DD HH:mm")},s=e=>(new Date).getTime()-e>=864e5,c=1e3,l=60*c,d=60*l,u=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t||Date.now();var r=new Date(e),i=new Date,o=r.getFullYear(),s=r.getMonth()+1,u=r.getDate(),p=r.getHours(),m=r.getMinutes(),h=String(s).padStart(2,"0"),b=String(u).padStart(2,"0"),g=String(p).padStart(2,"0"),v=String(m).padStart(2,"0"),j=i.getFullYear(),O=t-e,f=Math.floor(O/d),M=Math.floor(O%d/l),_=O%l/c;return o<j?"".concat(o,"-").concat(h,"-").concat(b," ").concat(g,":").concat(v):f>=24?"".concat(h,"-").concat(b," ").concat(g,":").concat(v):a?f>=1?Object(n.t)(f>1?"Card_HoursAgo":"Card_HourAgo",{hour:f}):M<=0&&_<60?Object(n.t)("JustNow"):Object(n.t)(M>1?"Card_MinutesAgo":"Card_MinuteAgo",{minute:M}):f>=1?Object(n.t)(f>1?"HoursAgo":"HourAgo",{hour:f}):M<=0&&_<60?Object(n.t)("JustNow"):Object(n.t)(M>1?"MinutesAgo":"MinuteAgo",{minute:M})},p=e=>{var t=(new Date).getTime()-Number(e),a=864e5,r="";if(t>=a){var i=Math.floor(t/a);r=Object(n.t)(i>1?"Card_DaysAgo":"Card_DayAgo",{day:i})}else r=u(Number(e),Date.now(),!0);return r},m=e=>({0:Object(n.t)("LeaveGroup.Sunday"),1:Object(n.t)("LeaveGroup.Monday"),2:Object(n.t)("LeaveGroup.Tuesday"),3:Object(n.t)("LeaveGroup.Wednesday"),4:Object(n.t)("LeaveGroup.Thursday"),5:Object(n.t)("LeaveGroup.Friday"),6:Object(n.t)("LeaveGroup.Saturday")}[new Date(e).getDay()])},function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var r=a(5),i=a(9),n=a(17),o=a(16),s=a(25),c=a(214),l=a(50),d=a(10),u=a(12),p=a(54);function m(){return h.apply(this,arguments)}function h(){return h=Object(i.a)((function*(){var e=yield o.c.userconfig({FeatureGatingKeys:p.PresetFeatureGatingKeys}),{data:t}=e;return Object(c.a)(t),d.a.info("refreshUserConfig userConfig",t),t})),h.apply(this,arguments)}var b={prefix:"approval.web.",silent:!1},g={string:e=>Object(r.a)(Object(r.a)({},b),{},{prefix:e}),boolean:e=>Object(r.a)(Object(r.a)({},b),{},{silent:e}),object:e=>Object(r.a)(Object(r.a)({},b),e)};function v(e,t){return j.apply(this,arguments)}function j(){return j=Object(i.a)((function*(e,t){var a,r,i=(null!==(a=g[typeof t])&&void 0!==a?a:()=>b)(t),{prefix:n,silent:o}=i,c=new RegExp("^".concat(n)).test(e)?e:"".concat(n).concat(e);if(!o&&!p.PresetFeatureGatingKeys.includes(c)){var u="[ERROR] 为方便接口聚合,请向 'PresetFeatureGatingKeys' 数组填充业务逻辑中依赖的 FG Key!";throw d.a.error(u),new Error(u)}if(null!==(r=s.d.FGConfig)&&void 0!==r&&r[c])return s.d.FGConfig[c];var h=yield m(),{config:{[c]:v}={}}=h||l.a.getSync("user_config");return v})),j.apply(this,arguments)}function O(){return f.apply(this,arguments)}function f(){return f=Object(i.a)((function*(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r=yield v(...t);return Object(u.b)(n.f.ApprovalIsFgKeyEnable,{args:t,config:r}),null==r?void 0:r.Enable})),f.apply(this,arguments)}},function(e,t,a){"use strict";a.d(t,"c",(function(){return p})),a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return h})),a.d(t,"f",(function(){return b})),a.d(t,"e",(function(){return g})),a.d(t,"d",(function(){return v}));var r=a(5),i=a(37),n=a(1),o=a(3),s=a.n(o),c=a(8),l=a.n(c),d=a(0),u=["tabIdx","baseCls","idPrefix","children","className"],p=52,m=8,h=64,b="v-tabs-content__item__",g="v-tabs-content__",v=s.a.memo((e=>{var{tabIdx:t,baseCls:a="",idPrefix:o,children:s,className:c}=e,p=Object(i.a)(e,u);return Object(d.jsx)(n.r,Object(r.a)(Object(r.a)({className:l()(a,c),id:"".concat(o).concat(t)},p),{},{children:s}))}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var r=a(1),i=a(3),n=a.n(i),o=a(121),s=a(8),c=a.n(s),l=a(549),d=a.n(l),u=a(0),p=n.a.memo((e=>{var{src:t="",text:a,btnText:i,onBtnClick:n,hidden:s,className:l,imageClassName:p,textClassName:m}=e;return Object(u.jsxs)(r.r,{className:c()(d.a["image-box"],{[d.a.hidden]:s},l),children:[Object(u.jsx)(r.g,{className:c()(d.a.image,p),src:t}),a&&Object(u.jsx)(r.r,{className:c()(d.a.text,m),children:a}),i&&Object(u.jsx)(o.a,{type:"primary",onClick:n,children:i})]})}))},function(e,t,a){"use strict";a.d(t,"d",(function(){return m})),a.d(t,"b",(function(){return g})),a.d(t,"a",(function(){return y})),a.d(t,"c",(function(){return D})),a.d(t,"e",(function(){return N}));var r=a(9),i=a(13),n=a(2),o=a(180),s=["input","textarea","amount","radioV2","checkboxV2","number","date","dateInterval","telephone"],c=a(31),l=a.n(c),d=a(314),u=a(220),p=a(26),m=e=>s.includes(e),h=e=>"amount"===e.type?Object(n.getCurLang)()===n.SimpleLangEnum.zh?e.data.currencyRange.map((e=>{var t;return(null===(t=o.a.currencyList.find((t=>t.value===e)))||void 0===t?void 0:t.text)||"币种转换出错"})):e.data.currencyRange.map((e=>e)):"text"===e.type?e.data.value:"radioV2"===e.type||"checkboxV2"===e.type?e.data.options.map((e=>e.text)):void 0,b=e=>"radioV2"===e?"radio":"checkboxV2"===e?"checkbox":e,g=e=>{var t=[];for(var a of e)"dateInterval"===a.type&&a.data.children&&3===a.data.children.length?(t.push({name:a.data.children[0].data.name,type:"date",required:a.data.required,subtype:a.data.children[0].data.subtype,parentType:"dateInterval"}),t.push({name:a.data.children[1].data.name,type:"date",required:a.data.required,subtype:a.data.children[1].data.subtype,parentType:"dateInterval"}),t.push({name:a.data.children[2].data.name,type:"timerange",required:a.data.required,parentType:"dateInterval"})):m(a.type)?t.push({name:a.data.name,type:b(a.type),required:a.data.required,subtype:"date"===a.type?a.data.subtype:void 0,value:h(a)}):t.push({name:a.type===i.c.DESC?Object(n.t)("DetailTable.IntroTitle"):a.data.name,type:a.type,required:a.data.required});return JSON.stringify(t)},v=e=>"YYYY-MM-DD A"===e.toUpperCase(),j=e=>"dateInterval"===e.type?v(e.data.children[0].data.subtype)?5:3:"amount"===e.type||"telephone"===e.type||"date"===e.type&&v(e.data.subtype)?2:1,O=(e,t)=>"string"!=typeof e?null:/^(?:\d{4}-\d{2}-\d{2}(?:\s+(?:\d{2}:\d{2}))?)$/.test(e)?t?l()(e).hour(12):l()(e):null,f=e=>"下午"===e||"PM"===e||"午後"===e,M=(e,t)=>{var a,r,i="";switch(t.type){case"text":i=t.data.value;break;case"formula":i=0;break;case"input":case"textarea":case"number":i=null===e[0]?"":String(e[0]);break;case"date":i=O(String(e[0]),v(t.data.subtype)&&f(e[1]));break;case"radioV2":i=null===e[0]?null:null!==(a=t.data.options.find((t=>t.text===e[0])))&&void 0!==a?a:null;break;case"checkboxV2":i=_(t.data.options,e[0]);break;case"amount":i={unit:null!==(r=t.data.currencyRange.find((t=>t===String(e[1]).split("-")[0])))&&void 0!==r?r:t.data.currencyRange[0],value:null===e[0]?"":String(e[0])};break;case"telephone":i={countryCode:/^.+?\+\d+$/.test(String(e[0]))?"+".concat(String(e[0]).split("+")[1]):"+86",nationalNumber:"string"==typeof e[1]?e[1]:""};break;case"dateInterval":i=[],v(t.data.children[0].data.subtype)?(i.push(O(e[0],f(e[1]))),i.push(O(e[2],f(e[3]))),i.push("")):(i.push(O(e[0],!1)),i.push(O(e[1],!1)),i.push(""));break;case"address":i=[Object(u.a)()];break;default:i=null}return i},_=(e,t)=>{if(null===t)return[];var a=String(t).split(","),r=[],i=function(t){var a=e.find((e=>t===e.text));if(!a||r.some((e=>e.text===a.text)))return{v:[]};r.push(a)};for(var n of a){var o=i(n);if("object"==typeof o)return o.v}return r},y=(e,t)=>{for(var a=JSON.parse(e).slice(0,100),r=t.data.groups[0].widgets.reduce(((e,t)=>e+j(t)),0),i=0,n=0,o=t.data.groups[0].widgets,s=0,c=[],l=0;l<a.length;l++)c[l]=[],a[l].shift(),a[l].length<r&&a[l].push(null);for(;i<a.length&&n<a[i].length&&s<o.length;){for(var d=o[s],u=j(d),p=[],m=0;m<u;m++)p.push(a[i][n+m]);c[i].push(M(p,d)),s++,(n+=u)===a[i].length&&s===o.length&&(n=0,i++,s=0)}return c},D=(e,t)=>{var a=Object(d.a)(e);switch(a.type){case"amount":a.data.unit=t.unit,a.data.value=t.value;break;case"date":a.data.value=t,a.data.text=Object(p.d)(t,a.data.subtype);break;case"dateInterval":a.data.children[0].data.value=t[0],a.data.children[0].data.text=Object(p.d)(t[0],a.data.children[0].data.subtype),a.data.children[1].data.value=t[1],a.data.children[1].data.text=Object(p.d)(t[1],a.data.children[1].data.subtype),a.data.children[2].data.value=t[2];break;case"telephone":a.data.value={countryCode:t.countryCode,nationalNumber:t.nationalNumber};break;case"formula":a.data.value="0";break;default:a.data.value=t}return a},N=function(){var e=Object(r.a)((function*(e,t){var a=0;return yield Promise.all(e.data.groups.map(function(){var e=Object(r.a)((function*(e){(yield t(e.widgets.map((e=>e.id))))||a++}));return function(t){return e.apply(this,arguments)}}())),a}));return function(t,a){return e.apply(this,arguments)}}()},,function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r}));var r,i="/api/instance/userSearch";!function(e){e[e.INVALID_USER=-1]="INVALID_USER",e[e.GROUP_CHAT=1]="GROUP_CHAT",e[e.EMAIL=2]="EMAIL",e[e.USER=3]="USER",e[e.BOT=4]="BOT",e[e.MESSAGE=5]="MESSAGE",e[e.EMAIL_MESSAGE=6]="EMAIL_MESSAGE",e[e.MEETING_ROOM=7]="MEETING_ROOM",e[e.SHARED_CALENDAR=8]="SHARED_CALENDAR",e[e.Thread=9]="Thread",e[e.Session=10]="Session",e[e.ChatBox=11]="ChatBox",e[e.DEPARTMENT=12]="DEPARTMENT",e[e.ONCALL=13]="ONCALL",e[e.ApprovalStarter=51]="ApprovalStarter",e[e.ApprovalApprover=52]="ApprovalApprover",e[e.ApprovalCcer=53]="ApprovalCcer",e[e.Role=54]="Role",e[e.SubmitterDelegate=55]="SubmitterDelegate",e[e.Handler=56]="Handler"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var r=a(6),i=a(3),n=a(1),o=a(124),s=a(8),c=a.n(s),l=a(177),d=a(258),u=a.n(d),p=a(0),m=["icon-icon_allmail_outlined","icon-icon_unread_outlined"];class h extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"state",{isActive:!1}),Object(r.a)(this,"handleChange",(e=>{var{onChange:t}=this.props;t(e),this.setState({isActive:!1})})),Object(r.a)(this,"handleCancel",(()=>{setTimeout((()=>{this.setState({isActive:!1})}),0)})),Object(r.a)(this,"handleInnerClick",(()=>{this.setState({isActive:!0})}))}render(){var{range:e,value:t,placeholder:a,disabled:r,noBorder:i,error:o,hasError:s,displayLabel:d,displayType:h,displayIcon:b,style:g,className:v,inSearchMode:j}=this.props,{isActive:O}=this.state;return Object(p.jsxs)(n.j,{className:c()(u.a["approval-select-two"],v),style:g,mode:"selector",range:e,value:Math.max(0,t),disabled:r,onChange:this.handleChange,onCancel:this.handleCancel,children:["displayLabel"===h&&Object(p.jsxs)(n.r,{className:c()(u.a["select-filter"],{[u.a.active]:O}),onClick:this.handleInnerClick,children:[Object(p.jsx)(l.a,{hasError:s,value:d||e[t],placeholder:a,usingPlaceholder:t<0,disabled:r,isActive:O,noBorder:i,specialError:o,noPadding:!0}),Object(p.jsx)(n.r,{className:u.a["select-icon"],children:Object(p.jsx)(n.r,{className:c()("iconfont","icon-icon_down_outlined1",u.a["icon-arrow"],{[u.a.active]:O})})})]}),"displayIcon"===h&&Object(p.jsx)(n.r,{className:c()(u.a["image-wrapper"],{[u.a.active]:O}),onClick:this.handleInnerClick,children:"filter"===b?Object(p.jsx)(n.r,{className:c()(u.a["filter-icon"],"iconfont",m[t])}):!j&&Object(p.jsx)(n.r,{className:c()(u.a["filter-icon"],"iconfont","icon-icon_sort-z-to-a_outlined",{[u.a.reverse]:1===t})})})]})}}Object(r.a)(h,"defaultProps",{value:-1,onChange:o.a,noBorder:!1,error:!1,displayLabel:"",displayIcon:"",displayType:"displayLabel",inSearchMode:!1})},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var r,i=a(5),n=a(37),o=(a(3),a(1)),s=a(0),c=["style","offsetX","offsetY","contentStyle","arrowStyle","arrowColor","arrowWidth","arrowHeight","direction"];!function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left"}(r||(r={}));var l={width:0,height:0,position:"absolute"};t.b=e=>{var{style:t,offsetX:a,offsetY:d,contentStyle:u={},arrowStyle:p={},arrowColor:m="#4e83fd",arrowWidth:h=16,arrowHeight:b=8,direction:g}=e,v=Object(n.a)(e,c),j=h/2,O={[r.Left]:{top:"".concat(-j,"px"),left:0,borderRight:"".concat(b,"px solid ").concat(m),borderTop:"".concat(j,"px solid transparent"),borderBottom:"".concat(j,"px solid transparent")},[r.Right]:{top:"".concat(-j,"px"),right:0,borderLeft:"".concat(b,"px solid ").concat(m),borderTop:"".concat(j,"px solid transparent"),borderBottom:"".concat(j,"px solid transparent")},[r.Top]:{left:"".concat(-j,"px"),top:0,borderBottom:"".concat(b,"px solid ").concat(m),borderLeft:"".concat(j,"px solid transparent"),borderRight:"".concat(j,"px solid transparent")},[r.Bottom]:{left:"".concat(-j,"px"),bottom:0,borderTop:"".concat(b,"px solid ").concat(m),borderLeft:"".concat(j,"px solid transparent"),borderRight:"".concat(j,"px solid transparent")}},f={[r.Left]:{left:"".concat(b,"px"),transform:"translate(".concat(a||"0",", ").concat(d||"-50%",")")},[r.Right]:{right:"".concat(b,"px"),transform:"translate(".concat(a||"0",", ").concat(d||"-50%",")")},[r.Top]:{top:"".concat(b,"px"),transform:"translate(".concat(a||"-50%",", ").concat(d||"0",")")},[r.Bottom]:{bottom:"".concat(b,"px"),transform:"translate(".concat(a||"-50%",", ").concat(d||"0",")")}};return Object(s.jsxs)(o.r,Object(i.a)(Object(i.a)({style:Object(i.a)(Object(i.a)({},{position:"absolute",width:0,height:0}),t)},v),{},{children:[Object(s.jsx)(o.r,{style:Object(i.a)(Object(i.a)(Object(i.a)({},l),O[g]),p)}),Object(s.jsx)(o.r,{style:Object(i.a)(Object(i.a)(Object(i.a)({},{width:"fit-content",height:"fit-content",position:"absolute"}),f[g]),u),children:e.children})]}))}},function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return b})),a(3);var r,i=a(1),n=a(599),o=a.n(n),s=a(152),c=a.n(s),l=a(207),d=a.n(l),u=a(743),p=a.n(u),m=a(0);!function(e){e.None="",e.Loading="loading",e.LoadingFailed="loading-failed",e.LowerVersionOfIframe="lower-version"}(r||(r={}));var h={[r.Loading]:c.a,[r.LoadingFailed]:d.a,[r.LowerVersionOfIframe]:o.a},b=e=>{var{type:t=r.Loading,title:a,children:n}=e,o=h[t];return r.None===t?null:Object(m.jsxs)(i.r,{className:p.a.placeholder,children:[Object(m.jsx)(i.g,{className:p.a.icon,src:o}),Object(m.jsx)(i.r,{className:p.a.tips,children:null!=a?a:n})]})}},function(e,t,a){e.exports={tag_group:"index-module__tag_group___2DT2y",tag:"index-module__tag___2SkBD",container:"index-module__container___1j7Ue",icon:"index-module__icon___1i85K",popover_content:"index-module__popover_content___1PvSk"}},function(e,t,a){e.exports={"detail-wrapper":"convert-old-module__detail-wrapper___2WEhA","detail-headbar-placeholder":"convert-old-module__detail-headbar-placeholder___3bbPo","detail-content":"convert-old-module__detail-content___pLCpl",loading:"convert-old-module__loading___htat_","detail-mask":"convert-old-module__detail-mask___sqQ3T","detail-mask-icon":"convert-old-module__detail-mask-icon___33Xda","detail-mask-text":"convert-old-module__detail-mask-text___2Umjy","detail-mask-button":"convert-old-module__detail-mask-button___1EH3t"}},function(e,t,a){e.exports={"v-tabs-root":"index-module__v-tabs-root___26QQq","v-tabs-bar__wrp":"index-module__v-tabs-bar__wrp___1oC2f","v-tabs-bar__scrollview":"index-module__v-tabs-bar__scrollview___1gEXW","v-tabs-content__wrp":"index-module__v-tabs-content__wrp___2kbKi","v-tabs-content__scrollview":"index-module__v-tabs-content__scrollview___3wrbc","v-tabs-content":"index-module__v-tabs-content___2bwrv","v-tabs-loading":"index-module__v-tabs-loading___-1RJq"}},,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return z})),a.d(t,"c",(function(){return L})),a.d(t,"b",(function(){return R}));var r,i=a(5),n=a(145),o=a(588),s=a(369);!function(e){e[e.GROUP_CHAT=1]="GROUP_CHAT",e[e.EMAIL=2]="EMAIL",e[e.USER=3]="USER",e[e.BOT=4]="BOT",e[e.MESSAGE=5]="MESSAGE",e[e.EMAIL_MESSAGE=6]="EMAIL_MESSAGE",e[e.MEETING_ROOM=7]="MEETING_ROOM",e[e.SHARED_CALENDAR=8]="SHARED_CALENDAR",e[e.Thread=9]="Thread",e[e.Session=10]="Session",e[e.ChatBox=11]="ChatBox",e[e.DEPARTMENT=12]="DEPARTMENT",e[e.ONCALL=13]="ONCALL",e[e.ApprovalStarter=51]="ApprovalStarter",e[e.ApprovalApprover=52]="ApprovalApprover",e[e.ApprovalCcer=53]="ApprovalCcer",e[e.Role=54]="Role"}(r||(r={}));var c,l=a(172),d=a(589),u="/api/instance/readcc",p=a(378),m=a(401),h=a(590),b="/api/search/listFilteringApproval";!function(e){e[e.GROUP_CHAT=1]="GROUP_CHAT",e[e.EMAIL=2]="EMAIL",e[e.USER=3]="USER",e[e.BOT=4]="BOT",e[e.MESSAGE=5]="MESSAGE",e[e.EMAIL_MESSAGE=6]="EMAIL_MESSAGE",e[e.MEETING_ROOM=7]="MEETING_ROOM",e[e.SHARED_CALENDAR=8]="SHARED_CALENDAR",e[e.Thread=9]="Thread",e[e.Session=10]="Session",e[e.ChatBox=11]="ChatBox",e[e.DEPARTMENT=12]="DEPARTMENT",e[e.ONCALL=13]="ONCALL",e[e.ApprovalStarter=51]="ApprovalStarter",e[e.ApprovalApprover=52]="ApprovalApprover",e[e.ApprovalCcer=53]="ApprovalCcer",e[e.Role=54]="Role"}(c||(c={}));var g;!function(e){e[e.GROUP_CHAT=1]="GROUP_CHAT",e[e.EMAIL=2]="EMAIL",e[e.USER=3]="USER",e[e.BOT=4]="BOT",e[e.MESSAGE=5]="MESSAGE",e[e.EMAIL_MESSAGE=6]="EMAIL_MESSAGE",e[e.MEETING_ROOM=7]="MEETING_ROOM",e[e.SHARED_CALENDAR=8]="SHARED_CALENDAR",e[e.Thread=9]="Thread",e[e.Session=10]="Session",e[e.ChatBox=11]="ChatBox",e[e.DEPARTMENT=12]="DEPARTMENT",e[e.ONCALL=13]="ONCALL",e[e.ApprovalStarter=51]="ApprovalStarter",e[e.ApprovalApprover=52]="ApprovalApprover",e[e.ApprovalCcer=53]="ApprovalCcer",e[e.Role=54]="Role",e[e.SubmitterDelegate=55]="SubmitterDelegate"}(g||(g={}));var v,j,O=a(439),f=a(516),M=a(591),_=a(23);(function(e){e[e.Todo=1]="Todo",e[e.Done=2]="Done",e[e.Unread=17]="Unread",e[e.Read=18]="Read",e[e.Processing=33]="Processing",e[e.Withdrawn=34]="Withdrawn",e[e.Deleted=255]="Deleted"})(v||(v={})),function(e){e[e.TodoApproval=1]="TodoApproval",e[e.DoneApproval=2]="DoneApproval",e[e.InitiatedApproval=3]="InitiatedApproval",e[e.UnreadNotice=17]="UnreadNotice",e[e.ReadNotice=18]="ReadNotice",e[e.Shared=33]="Shared",e[e.Frozen=254]="Frozen",e[e.Deleted=255]="Deleted"}(j||(j={}));var y,D=a(184),N=a(119);!function(e){e[e.TenantIcon=1]="TenantIcon"}(y||(y={}));var A;!function(e){e[e.SIZE_DEFAULT=0]="SIZE_DEFAULT",e[e.SIZE_96_96=1]="SIZE_96_96",e[e.SIZE_192_192=2]="SIZE_192_192",e[e.SIZE_288_288=3]="SIZE_288_288",e[e.SIZE_384_384=4]="SIZE_384_384"}(A||(A={}));var T,I=a(58),C=a(390),x=a(488);!function(e){e[e.Instance=1]="Instance",e[e.Definition=2]="Definition"}(T||(T={}));var S,w=a(318);!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAIL=10117]="FAIL"}(S||(S={}));var L,E=a(231),k=a(592),z=Object(i.a)(Object(i.a)({apiV2SearchSubordinateCount:{path:"/api/v2/search/subordinate/count"},apiWidgetGroupTimeCheck:{path:w.a},v2CancelAsyncOperationNotification:{path:"/api/v2/CancelAsyncOperationNotification"},searchDistrict:{path:"/api/search/district"},getExtraStringDataWithParams:{path:"/api/approval/getExtraStringDataWithParams"},syncBadgeCount:{path:"/api/UpdateTaskBadge"},batchOperate:{path:s.c},v2SubmitAsyncOperationPath:{path:"/api/v2/SubmitAsyncOperation"},cancelBatchOperate:{path:"/api/CancelAsyncOperation"},pollBatchOperate:{path:o.a},v2MGetAsyncOperation:{path:"/api/v2/MGetAsyncOperation"},addComment:{path:"/api/AddComment"},deleteComment:{path:"/api/instance/deleteComment"},deleteAppSettings:{path:"/api/DeleteAppSettings"},getAppSettings2:{path:"/api/GetAppSettings2"},getAppSettings2InMap:{path:"/api/GetAppSettings2InMap"},getBizSettings:{path:"/api/GetBizSettings"},getBizSettings2:{path:"/api/GetBizSettings2"},getBizSettings2InMap:{path:"/api/GetBizSettings2InMap"},getRemedyCountByInstanceID:{path:"/api/clock_in/approval/get_remedy_count"},getTenantSettings2:{path:"/api/GetTenantSettings2"},putAppSettings2:{path:"/api/PutAppSettings2"},putBizSettings:{path:"/api/PutBizSettings"},putBizSettings2:{path:"/api/PutBizSettings2"},putTenantSettings2:{path:"/api/PutTenantSettings2"},qrCodeGenerate:{path:"/api/QrCode/Generate"},approvalattributesuserget:{path:"/api/approval/attributes/user/get"},approvalattributesuserset:{path:"/api/approval/attributes/user/set"},approvaldefinitionMapPreview:{path:"/api/approval/definitionMapPreview"},approvaldefinitionPreview:{path:"/api/approval/definitionPreview"},approvalgetUserBotChatSettings:{path:"/api/approval/getUserBotChatSettings"},approvalqueryUserByNodeId:{path:"/api/approval/queryUserByNodeId"},attachmentuploadFile:{path:"/api/attachment/uploadFile"},brandquery:{path:"/api/brand/query"},ccread:{path:"/api/cc/read"},ccreal:{path:"/api/cc/real"},chataddChatter:{path:"/api/chat/addChatter"},chatchatEnter:{path:"/api/chat/chatEnter"},chatcreateChat:{path:"/api/chat/createChat"},chatgetChat:{path:"/api/chat/getChat"},computeformula:{path:"/api/compute/formula"},createSheet:{path:"/api/approval/field_list/create_sheet"},definitionaddRapidApproval:{path:"/api/definition/addRapidApproval"},definitionapprovalQueryList:{path:"/api/definition/approvalQueryList"},definitionbuildShareMessage:{path:"/api/definition/buildShareMessage"},definitiondeleteRapidApproval:{path:"/api/definition/deleteRapidApproval"},definitionlistFilteringApproval:{path:b},definitionqueryForCreator:{path:"/api/definition/queryForCreator"},definitionqueryRapidApprovalById:{path:"/api/definition/queryRapidApprovalById"},definitionrapidApprovalList:{path:"/api/definition/rapidApprovalList"},definitionshare:{path:"/api/definition/share"},definitionupdateRapidApproval:{path:"/api/definition/updateRapidApproval"},detectIntranet:{path:"/api/detectIntranet"},externalinstanceoperate:{path:"/api/external/instance/operate"},externalmessageactionConfig:{path:"/api/external/message/actionConfig"},externalmessageoperate:{path:"/api/external/message/operate"},getSheetMeta:{path:"/api/approval/field_list/get_sheet_meta"},importSheetData:{path:"/api/approval/field_list/get_sheet_data"},instanceaddComment:{path:"/api/instance/addComment"},instanceccread:{path:u},instancecommentList:{path:"/api/instance/commentList"},instancecreate:{path:"/api/instance/create"},instancemodify:{path:"/api/instance/modify"},instancecreatePrepare:{path:l.a},checkInstanceCreatePrepare:{path:"/api/instance/checkCreatePrepare"},instancecreatePreview:{path:"/api/instance/createPreview"},instanceWidgetMGetActions:{path:"/api/instance/widget/mGetActions"},instancedetail:{path:"/api/instance/detail"},MGetDetail:{path:"/api/v2/MGetDetail"},instancegetApproverList:{path:"/api/instance/getApproverList"},instancegetCurrentWritableWidgetId:{path:"/api/instance/getCurrentWritableWidgetId"},instancegetFormHistory:{path:d.a},instancehistoryApprovalNode:{path:"/api/instance/historyApprovalNode"},instancehistoryApprovalNodeWithStartApi:{path:"/api/instance/historyApprovalNodeWithStartApi"},instanceinstanceProcess:{path:"/api/instance/instanceProcess"},instanceleaveBalanceConflict:{path:"/api/instance/leaveBalanceConflict"},instanceoperate:{path:"/api/instance/operate"},instanceprint:{path:"/api/instance/print"},instancequeryWorkRule:{path:"/api/instance/queryWorkRule"},instancereadcc:{path:u},instancerevert:{path:"/api/instance/revert"},instanceshare:{path:"/api/instance/share"},instanceuserSearch:{path:p.a},instanceworkConflict:{path:"/api/instance/workConflict"},letsignboilerplatestartpreview:{path:"/api/letsign/boilerplate/start/preview"},leavebalancecalculate:{path:"/api/leave/balance/calculate"},leavebalanceconflict:{path:"/api/leave/balance/conflict"},leavebalancecurrentuser:{path:"/api/leave/balance/currentuser"},leavebalancedetail:{path:"/api/leave/balance/detail"},leavedefinitionList:{path:"/api/leave/definitionList"},locationdeleteRecentLocate:{path:"/api/location/deleteRecentLocate"},locationlistRecentLocate:{path:"/api/location/listRecentLocate"},locationlocate:{path:"/api/location/locate"},personnelGetPersonnelAppStatus:{path:"/api/personnel/GetPersonnelAppStatus"},personnelGetPersonnelApprovalFormData:{path:"/api/personnel/GetPersonnelApprovalFormData"},personnelVerifyPersonnelApprovalFormData:{path:"/api/personnel/VerifyPersonnelApprovalFormData"},remedypunchcheck:{path:m.a},remedyBatchClockCheck:{path:h.a},reportquery:{path:"/api/report/query"},searchactiveList:{path:"/api/search/activeList"},searchaggrApproval:{path:"/api/search/aggrApproval"},searchcompleteList:{path:"/api/search/completeList"},searchcompleteListByConnectWidget:{path:"/api/search/completeListByConnectWidget"},searchcopyList:{path:"/api/search/copyList"},searchinitList:{path:"/api/search/initList"},searchlist:{path:"/api/search/list"},searchlistFilteringApproval:{path:b},searchsearchApprovalInstance:{path:"/api/search/searchApprovalInstance"},settingsgetUserSettings:{path:"/api/settings/v3/getUserSettings"},taskread:{path:"/api/task/read"},settingsputUserSettings:{path:"/api/settings/v3/putUserSettings"},tenantpersonPayList:{path:"/api/tenant/personPayList"},urgentapproverList:{path:"/api/urgent/approverList"},urgentbatchCreate:{path:"/api/urgent/batchCreate"},userconfig:{path:"/api/user/config"},userqueryDepartmentParents:{path:"/api/user/queryDepartmentParents"},userqueryDepartments:{path:"/api/user/queryDepartments"},userqueryGroupByIds:{path:"/api/user/queryGroupByIds"},userqueryRoles:{path:"/api/user/queryRoles"},userquerySubDepartmentById:{path:"/api/user/querySubDepartmentById"},userqueryUsers:{path:"/api/user/queryUsers"},userqueryUsersByDepartmentId:{path:"/api/user/queryUsersByDepartmentId"},usersearchDepartments:{path:"/api/user/searchDepartments"},usersearchUserDepartments:{path:"/api/user/searchUserDepartments"},usersearchUsers:{path:O.b},useruserDepartmentInfo:{path:"/api/user/userDepartmentInfo"},useruserInfo:{path:f.b},v2CountTask:{path:"/api/v2/CountTask"},v2GetOAAccess:{path:"/api/v2/GetOAAccess"},v2GetTask:{path:M.a},v2ListRecentlyUse:{path:"/api/v2/ListRecentlyUse"},v2ListTask:{path:_.c},v2CalculateAsyncOperationTask:{path:"/api/v2/CalculateAsyncOperationTask"},v2MarkTask:{path:"/api/v2/MarkTask"},v2ReportRecentlyUse:{path:"/api/v2/ReportRecentlyUse"},wsflushEvent:{path:"/api/ws/flushEvent"},wstoken:{path:"/api/ws/token"},isLeader:{path:"/api/efficiency/isLeader"},v2Grouping:{path:"/api/v2/Grouping"},getConsignRecordCount:{path:"/api/ConsignRecordCount"},apiListScene:{path:"/api/ListScene"},getAndRefreshUserAccessToken:{path:"/api/GetAndRefreshUserAccessToken"},getSignature:{path:"/api/GetSignature"},getDocument:{path:"/api/GetDocument"},getWikiNode:{path:"/api/GetWikiNodeV2"},searchDocument:{path:"/api/SearchDocument"},copyDocument:{path:"/api/CopyDocument"},getDocumentSignature:{path:"/api/GetDocumentSignature"},v2Search:{path:D.a},GenerateQrCode:{path:"/api/signature/generateQrCode"},[N.c]:{path:N.d},SignatureUpload:{path:"/api/signature/upload"},listCreatorDefinition:{path:"/api/ListCreatorDefinition"},v2ApplyTaskAction:{path:"/api/v2/ApplyTaskAction"},bankList:{path:"/api/bank/list"},bankSearch:{path:"/api/bank/search"},bankBranchList:{path:"/api/bank/branches"},bankBranchSearch:{path:"/api/bank/branch/search"},addBankAccount:{path:"/api/bankAccount/add"},deleteBankAccount:{path:"/api/bankAccount/delete"},bankAccountList:{path:"/api/bankAccount/list"},getBankAccountById:{path:"/api/bankAccount/queryByIdApi"},editBankAccount:{path:"/api/bankAccount/edit"},bankCardBinCheck:{path:"/api/bank/card-bin/check"},getCountryCodeMap:{path:"/api/getCountryCodeMap"},deleteWidgetHistoryRecord:{path:"/api/deleteWidgetHistoryRecord"},v2GetLastCursor:{path:"/api/v2/GetLastCursor"},v2PullChanges:{path:"/api/v2/PullChanges"},checkSubmitPermission:{path:"/api/approval/checkSubmitPermission"},getCollaborationTenant:{path:"/api/getCollaborationTenant"},sealRule:{path:n.b},getHiddenWatermark:{path:"/api/GetHiddenWatermark"},checkStart:{path:"/api/approval/check-start"},getDepartmentPermission:{path:"/api/getUsersDepartmentPermissionURL"}},I.e),{},{getIsvAuthorizedStatus:{path:C.a},setIsvAuthorizedStatus:{path:C.c},getCustomPrintStatus:{path:x.c},sendInfoToPrintServer:{path:"/api/print/custom/send"},currencyList:{path:"/api/currency/list",method:"GET"},editDefinitionAuth:{path:"/api/approval/editAuth"},approvalQueryTimeZone:{path:"/api/approval/queryTimeZone"},getPrintTemplateStatus:{path:E.b},getIsvInstallStatus:{path:k.a}});!function(e){e.request="request",e.cache="cache"}(L||(L={}));var R={CommonInfoGroup:"common_info_group",ListGroup:"list_group",CreateList:"create_list",CreateForm:"create_form",BOTTask:"bot_task",BeforeDetail:"before_detail"}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return n}));var r,i="/api/grantauth/get";!function(e){e[e.Unauthorized=0]="Unauthorized",e[e.Authorized=1]="Authorized"}(r||(r={}));var n="/api/grantauth/update"},function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return c}));var r=a(39),i=a(28),n={sg:"https://internal-api-approval-sg.larksuite.com",pre_sg:"https://internal-api-approval-sg.larksuite-pre.com",jp:"https://internal-api-approval-jp.larksuite.com",pre_jp:"https://internal-api-approval-jp.larksuite-pre.com"},o=()=>{var{geo:e}=r.h;if(console.info("sg_jp_host",e,r.h),i.u&&("sg"===e||"jp"===e)){var t="".concat(i.q?"pre_":"").concat(e);return n[t]}return i.l},s={sg:"https://accounts-sg.larksuite.com",pre_sg:"https://accounts-sg.larksuite-pre.com",jp:"https://accounts-jp.larksuite.com",pre_jp:"https://accounts-jp.larksuite-pre.com"},c=()=>{var{geo:e}=r.h;if(console.info("sg_jp_login_host",e,r.h),i.u&&("sg"===e||"jp"===e)){var t="".concat(i.q?"pre_":"").concat(e);return s[t]}return i.v}},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return d})),a.d(t,"c",(function(){return u}));var r=a(1437),i=a(2),n=a(10),o=(a(250),Object.freeze({FIXED_LINE_OR_MOBILE:"FIXED_LINE_OR_MOBILE",FIXED_LINE:"FIXED_LINE",MOBILE:"MOBILE"})),s={[o.FIXED_LINE_OR_MOBILE]:Object(i.t)("Telephone.Phone"),[o.FIXED_LINE]:Object(i.t)("Telephone.FixedLine"),[o.MOBILE]:Object(i.t)("Telephone.MobilePhone")},c=[7,8,10,11,12],l=e=>{var{countryCode:t="",phoneNumber:a}=e,i=a.startsWith("+")?a:t+a,n=Object(r.a)(i);if(n){var{countryCallingCode:s}=n,c=n.isValid(),l=n.isPossible(),d=n.getType(),u=n.formatNational(),p=a.replace(/\s+/g,"");return"852"===s&&/(8[1-7]|89)(\d){6}/.test(p)?{countryCallingCode:"+".concat(s),isValid:!0,isPossible:!0,numberType:o.MOBILE,nationalNumber:p.replace("+852","").replace(/(\d{4})/g,"$1 ")}:{countryCallingCode:"+".concat(s),isValid:c,isPossible:l,numberType:d,nationalNumber:u}}return null},d=e=>{var{countryCode:t="",phoneNumber:a,type:r}=e,i=l({countryCode:t,phoneNumber:a}),o=m(a);if(n.a.info("parseNumber result",i),o&&i){var{countryCallingCode:s,isValid:c,isPossible:d,numberType:u,nationalNumber:h}=i,b=new RegExp("^\\".concat(s)),g=a.replace(b,""),v=p({availableType:r,currentType:u,phoneNumber:a}),j=a.startsWith("+")&&s?s:t;return v&&c?{countryCode:s,nationalNumber:h}:{countryCode:j,nationalNumber:g}}return{countryCode:t,nationalNumber:a}},u=e=>{var{countryCode:t="",phoneNumber:a,type:r}=e,i=l({countryCode:t,phoneNumber:a}),o=h(r);if(!m(a))return o;if(!i)return o;var{isValid:s,isPossible:c,numberType:d=""}=i;n.a.info("validate number result",i);var u=p({availableType:r,currentType:d,phoneNumber:a});return s?u?null:o:c&&u?null:o},p=e=>{var{availableType:t,currentType:a,phoneNumber:r}=e,i=r.replace(/[^0-9]/g,""),n=c.includes(i.length);return t!==o.FIXED_LINE_OR_MOBILE?t!==o.FIXED_LINE||a&&a!==o.FIXED_LINE_OR_MOBILE?t===a:n:a?[o.FIXED_LINE_OR_MOBILE,o.FIXED_LINE,o.MOBILE].includes(a):n},m=e=>!new RegExp("[^\\d\\s-+()]","g").test(e),h=e=>Object(i.t)("Telephone.Invalid",{type:s[e]})},function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return u})),a.d(t,"c",(function(){return p}));var r=a(9),i=a(318),n=a(2),o=a(20),s=a(10),c=a(141),l=Object(o.c)("mobile:src/v1/components/suites/trip-group/trip-list/index.js"),d={[c.a.OUT_GROUP]:Object(n.t)("approval-mp_ModalContent_OutGroupTimeCheck"),[c.a.TRIP_GROUP]:Object(n.t)("approval-mp_ModalContent_TripGroupTimeCheck"),[i.b.Out]:Object(n.t)("approval-mp_ModalContent_OutGroupTimeCheck"),[i.b.Trip]:Object(n.t)("approval-mp_ModalContent_TripGroupTimeCheck")},u=e=>[c.a.TRIP_GROUP,c.a.OUT_GROUP].includes(e.type)&&!e.data.notConfilct,p=function(){var e=Object(r.a)((function*(e,t,a){return s.a.info("[timecheck] validateGroupRepeatTimeCheck",t,e),!!e.length&&(yield a({period:e,widgetGroupType:t}).then((e=>{var{data:a}=e;return!a.isConfilct||(tt.showModal({title:Object(n.t)("approval-mp_ModalTitle_GroupTimeCheck"),content:d[t],confirmText:Object(n.t)("approval-mp_ModalComformText_GroupTimeCheck"),showCancel:!1}),!1)})).catch((e=>(tt.showModal({title:Object(n.t)("approval-mp_ModalTitle_GroupTimeCheck"),content:d[t],confirmText:Object(n.t)("approval-mp_ModalComformText_GroupTimeCheck"),showCancel:!1}),l("commonOnError",{func:"validateTimeCheck",type:"validateGroupRepeatTimeCheck_error",data:JSON.stringify(e,Object.getOwnPropertyNames(e))}),!1))))}));return function(t,a,r){return e.apply(this,arguments)}}()},function(e,t,a){"use strict";var r=a(5),i=a(6),n=a(3),o=a(1),s=a(36),c=(a(1242),a(0));class l extends n.Component{constructor(e){super(e),this.handleApprovalAvatarClick=this.handleApprovalAvatarClick.bind(this)}handleApprovalAvatarClick(e){e.stopPropagation();var{userId:t,canViewProfile:a,onAvatarClick:r}=this.props;null==r||r(),a&&t&&Object(s.q)(t,e,this.$scope,".approval-avatar")}render(){var{width:e,height:t,style:a,url:i,tag:n,tagStyle:s,tagHeight:l,whiteBorder:d=!1}=this.props,u=Object(r.a)(Object(r.a)({},a),{},{width:"".concat(e,"px"),height:"".concat(t,"px")}),p=Object(r.a)(Object(r.a)({},s),{},{height:l}),m="approval-avatar";return d&&(m+=" approval-avatar-border"),Object(c.jsxs)(o.r,{className:m,style:u,onClick:this.handleApprovalAvatarClick,children:[Object(c.jsx)(o.g,{className:"approval-avatar-image",style:u,src:i}),n&&Object(c.jsx)(o.r,{className:"approval-avatar-tag",style:p,children:n})]})}}Object(i.a)(l,"defaultProps",{width:40,height:40,tagHeight:16,canViewProfile:!0}),t.a=l},function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var r=a(5),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{signatureUrl:a,signatureKey:i}=t,{signatureConfig:n={},isReuseSignature:o}=t,{mustSignatureList:s=[],type:c}=e,l=Object(r.a)({},n);return l.requireSignature=l.requireSignature&&s.includes(c),o||(a="",i=""),{signatureConfig:l,isReuseSignature:o,signatureUrl:a,signatureKey:i}};function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,{signatureConfig:{requireSignature:r}={requireSignature:!1}}=e,{mustSignatureList:i=[],type:n}=a;return!i.includes(n)||!r||void 0!==t.isReuseSignature&&!(!t.signatureKey||""===t.signatureKey||void 0===t.signatureKey)}},function(e,t,a){"use strict";var r=a(5),i=a(37),n=(a(3),a(1)),o=a(542),s=a.n(o),c=a(0),l=["className","hasError","errorMessage","disabled","placeholderStyle"];t.a=e=>{var{className:t,hasError:a,errorMessage:o,disabled:d,placeholderStyle:u="font-weight:300;color:#8F959E"}=e,p=Object(i.a)(e,l);return Object(c.jsxs)(n.r,{className:s.a.wrapper,children:[Object(c.jsx)(n.h,Object(r.a)({disabled:d,className:"".concat(t," ").concat(s.a.input," ").concat(d?s.a.disabled:""),style:{borderColor:d?"#D0D3D6":a?"#f54a45":""},placeholderStyle:u},p)),a&&Boolean(o)&&Object(c.jsx)(n.r,{className:s.a.error,children:o})]})}},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i}));var r,i,n="/api/remedy/punch/check";(function(e){e[e.NORMAL=0]="NORMAL",e[e.LINK=1]="LINK",e[e.ERROR=2]="ERROR"})(r||(r={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.LINK=1]="LINK",e[e.CHOOSE_SHIFT=2]="CHOOSE_SHIFT",e[e.APPROVAL=3]="APPROVAL",e[e.CREATE_RULE=4]="CREATE_RULE"}(i||(i={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return u})),a.d(t,"c",(function(){return m}));var r,i=a(86),n=a(171);function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){c(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t,a,r,i,n,o){try{var s=e[n](o),c=s.value}catch(e){return void a(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function d(e){return function(){var t=this,a=arguments;return new Promise((function(r,i){var n=e.apply(t,a);function o(e){l(n,r,i,o,s,"next",e)}function s(e){l(n,r,i,o,s,"throw",e)}o(void 0)}))}}function u(e){return p.apply(this,arguments)}function p(){return p=d((function*(e){var{url:t,method:a,body:o,params:c,header:l}=e;return i.c?Object(n.g)({url:t,method:a,body:o,params:c,header:l}):new Promise(((e,i)=>{tt.request({url:t,method:a,header:l,data:s(s({},c),o),success:t=>{var{statusCode:a,header:n,data:o}=t;200===a?e({code:r.Success,data:{httpCode:a,header:n,response:o}}):i({statusCode:a,header:n})},fail:e=>{var{errMsg:t}=e;i(t)}})}))})),p.apply(this,arguments)}function m(e){var{message:t,type:a,duration:r}=e;i.c?Object(n.i)({message:t,type:a,duration:r}):tt.showToast({title:t,icon:a,duration:r})}!function(e){e[e.Success=1]="Success"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"c",(function(){return d})),a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return p}));var r=a(5),i=a(28),n=a(10),o=a(20),s=a(593),c=Object(o.c)("shared:src/utils/native.ts");function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;return new Promise(((i,o)=>{e(Object(r.a)(Object(r.a)({},t),{},{success(e){i(e)},fail(e){n.a.error("promisifyNativeApi fail",e),null==a||a(e),o(e)}}))}))}var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(tt.showToast,e)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l(tt.setClipboardData,e)};function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;return"development"===i.c&&n.a.info("openBrowser",e),Object(s.a)(e)||c("commonOpenSchemaError",{url:e}),l(tt.openSchema,{schema:e,external:t,options:a})}},,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"e",(function(){return c}));var r=a(2),i=(r.LANG_CODE.zh,r.LANG_CODE.en,"https://lf3-ea.bytetos.com"),n="https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/CN_zh-CN_L3.json",o="".concat(i,"/obj/ttfe/ttarch/HK_zh-CN_L3.json"),s="".concat(i,"/obj/ttfe/ttarch/MO_zh-CN_L3.json"),c="".concat(i,"/obj/ttfe/ttarch/TW_zh-CN_L3.json");"".concat(i,"/obj/ttfe/ttarch/world_en_L3.json"),"".concat(i,"/obj/ttfe/ttarch/world_en_L3.json")},function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return c}));var r=a(10),i=a(165),n=a(141);function o(e){var t=0,a=0;try{null==e||e.forEach((e=>{switch(e.type){case n.a.ATTACHMENT_V2:e.value&&(t+=e.value.value.length,a+=e.value.value.reduce(((e,t)=>Object(i.b)(t.fileSize)+e),0));break;case n.a.DETAIL:var r;null===(r=e.value)||void 0===r||r.forEach((e=>{var{count:r,totalSize:i}=o(e);t+=r,a+=i}))}}))}catch(e){r.a.info("attachment report error",e)}return{count:t,totalSize:a}}function s(e,t){var{count:a,totalSize:r}=o(e);i.a.submitAttachment({count:a,size:r,is_drive:t.isDrive,definition_id:t.definitionId})}function c(e){return e.map((e=>e.type)).join(",")}},,,function(e,t,a){e.exports={layout:"index-module__layout___2cJdG",panel:"index-module__panel___2fPn3",container:"index-module__container___23G1F",sidebar:"index-module__sidebar___2vBWm",body:"index-module__body___nbnA8",footer:"index-module__footer___1Nwc2",header:"index-module__header___28SMK","panel--horizontal":"index-module__panel--horizontal___3Qvb8","container--vertical":"index-module__container--vertical___3EwOv"}},function(e,t,a){e.exports={action:"index-module__action___1unC9",icon:"index-module__icon___h8Ejd",label:"index-module__label____3Z52",group:"index-module__group___ajBsQ"}},function(e,t,a){e.exports={"widget-viewer":"index-module__widget-viewer___1kB7Q",title:"index-module__title___1v89p",value:"index-module__value___11Do2",block:"index-module__block___3kPXy","block--contrast":"index-module__block--contrast___1CxVT","approval-hidden-wrap":"index-module__approval-hidden-wrap___3WFwa","table-cell-viewer":"index-module__table-cell-viewer___xPEuA","table-cell-viewer--number":"index-module__table-cell-viewer--number___10Dkc","table-cell-editor--hidden":"index-module__table-cell-editor--hidden___3nYGR",addWrapper:"index-module__addWrapper___1rT-d",deleted:"index-module__deleted___2SxV3",editDoc:"index-module__editDoc___1yEJe",subtitle:"index-module__subtitle___sEe7t",add:"index-module__add___3708N",addIcon:"index-module__addIcon___D0kbf"}},function(e,t,a){e.exports={wrap:"index-module__wrap___1_ylN",header:"index-module__header___1RZQq",body:"index-module__body___m2-MU",footer:"index-module__footer___3-u2d","button-cancel":"index-module__button-cancel___10VqR","button-confirm":"index-module__button-confirm___3do71"}},,function(e,t,a){e.exports={main_wrap:"index-module__main_wrap___3tg79",tooltip_wrap:"index-module__tooltip_wrap___3Qr5I",tooltip_inner:"index-module__tooltip_inner___2b8VT",arrow:"index-module__arrow___2u93J",image:"index-module__image___QK9Sv"}},function(e,t,a){e.exports={history_record_wrap:"index-module__history_record_wrap___2IdvT",in_table:"index-module__in_table___ppUcO",history_title:"index-module__history_title___1_uFt",history_item_wrap:"index-module__history_item_wrap___zaDEC",history_item:"index-module__history_item___2QqBP",icon:"index-module__icon___SMowN",image:"index-module__image___mN7Cd"}},function(e,t,a){e.exports={container:"index-module__container___22Hyw",loading:"index-module__loading___3OpY4",content:"index-module__content___1VVhO","wifi-img":"index-module__wifi-img___G6kjA","text-group":"index-module__text-group___j5zj0","seal-button":"index-module__seal-button___24OSY","download-seal":"index-module__download-seal___VpJEq"}},function(e,t,a){e.exports={"batch-tooltip":"index-module__batch-tooltip___2dfU3","batch-tooltip-inner":"index-module__batch-tooltip-inner___1zPpl","batch-tooltip-text":"index-module__batch-tooltip-text___1whau","batch-tooltip-admin":"index-module__batch-tooltip-admin___1DqFf","white-arrow":"index-module__white-arrow___2_i3R"}},function(e,t,a){e.exports={skeleton:"index-module__skeleton___2Q6HE","skeleton-loading":"index-module__skeleton-loading___3l7-x","flow-group":"index-module__flow-group___E2cVg",title:"index-module__title___2qU1l","empty-title":"index-module__empty-title___1lWcy",list:"index-module__list___3O-c-"}},,,,function(e,t,a){"use strict";var r,i;a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),function(e){e.Send="send",e.Reply="reply",e.Notify="notify"}(r||(r={})),function(e){e[e.V1=1]="V1",e[e.V2=2]="V2",e[e.V3=3]="V3"}(i||(i={}))},,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var r=a(3),i=a(569),n=a(109);function o(e,t,a){var{isEqual:o=((e,t)=>e===t),onChange:s,isControlled:c}=null!=a?a:{},l=Object(r.useCallback)((e=>void 0!==c?c:void 0!==e),[c]),d=Object(n.c)(e),[u,p]=Object(r.useState)(null!=t?t:e);Object(r.useLayoutEffect)((()=>{!l(e)&&l(d)?p(d):p(e)}),[e,d,l]);var m=u,h=Object(r.useCallback)(((e,t)=>{var a=Object(i.b)(e)?e(m):e;o(m,a)||(p(a),null==s||s(a),null==t||t(a))}),[m,o,s]);return[m,h]}},function(e,t,a){"use strict";a.d(t,"a",(function(){return j})),a.d(t,"c",(function(){return O})),a.d(t,"b",(function(){return _}));var r=a(4),i=a(31),n=a.n(i),o=a(2),s=a(13),c=a(38),l=a(26),d=a(192),u=a(14),p=a(314),m=a(20),h=a(140),b=a(25),g=a(664),v=a(24),j=e=>{if(!e||!e.length)return{instances:[],instanceIds:[]};var{globalStore:{currentUser:{tenantId:t=""}={}}}=v.b;return{instances:e,instanceIds:e.map((e=>{var{instanceId:t}=e;return t})),externalInfos:e.filter((e=>"feishu"!==e.system)).map((e=>({tenantId:t,processId:e.processId,displayMethod:e.displayMethod,externalId:e.processUniqueId,intranetAccess:e.intranetAccess,sourceName:e.sourceName,system:e.system,topic:e.topic,urls:e.urls})))}},O={type:s.c.RELATIVE_APPROVAL,inputFormat(e,t){var a,r,{id:i,value:n}=e;return{id:i,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(i),writable:t.isWidgetWritable(i),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),value:{instanceIds:[],instances:[],externalInfos:[]},allAssociateTicket:null==n?void 0:n.allAssociateTicket,definitionIds:null!==(a=null==n?void 0:n.definitionIds)&&void 0!==a?a:[],instances:[],placeholder:e.placeholder||"",innerCtxId:"",relativeFormIds:null!==(r=n.widgetIdsApprovalNeedDisplay)&&void 0!==r?r:{}}}},outputFormat:e=>!e.data.required&&Object(c.c)(e.data.value.instanceIds)?null:{id:Object(l.q)(e.id),type:e.type,value:e.data.required&&!e.data.visible?null:e.data.value,displayCondStatus:e.data.visible},restoreFormat:Object(r.f)(((e,t)=>{var a,r,{value:i}=t;return e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=!0,e.data.value=j(null==i?void 0:i.instances),null!==(a=i.instances)&&void 0!==a&&a.length&&(e.data.instances=i.instances),null!==(r=i.definitionIds)&&void 0!==r&&r.length&&(e.data.definitionIds=i.definitionIds),e})),restoreWithDraftFormat:Object(r.f)(((e,t)=>{var a;if(t.data.instances){var r=Object(p.a)(t.data.instances);e.data.value=j(r),e.data.instances=r}return null!==(a=t.data.definitionIds)&&void 0!==a&&a.length&&(e.data.definitionIds=Object(p.a)(t.data.definitionIds)),e})),printFormat(e,t){var{data:{name:a,value:{instances:r},relativeFormIds:i},isInConnect:s=!1}=e;if(!r||!r.length)return{label:"",value:""};var c=[],l=[],u=b.d.enableShowCrossTenant;return c.push(...r.map((e=>{var{approvalStatus:a,submitterName:r,instanceName:c,createTime:p,b2bFlag:m}=e,h=s?[]:f(e,i,t);h.length&&l.push(h);var b=[r,c,n()(p).format("YYYY.MM.DD"),Object(o.t)(d.a[a]),u&&Boolean(m)&&Object(o.t)("External_Tag")].filter((e=>Boolean(e))).join("/");return b}))),l.length?[...l.reduce(((e,t,r)=>[...e,{label:"".concat(a," ").concat(l.length>1?r+1:""),value:c[r],isDefaultFullLine:!0,isLabelDisableBg:!0},...t]),[]),{isBlankLine:!0}]:{label:"".concat(a),value:c,isDefaultFullLine:!0}},validate:Object(r.f)(((e,t,a)=>{if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.required){var r=Object(c.c)(e.data.value)||Object(c.c)(e.data.value.instanceIds);return a||(e.data.validationError=r),!r}return!0}))};function f(e,t,a){try{var r,{instanceId:i,definitionID:n=""}=e,{innerInstances:o}=a,{formDefValue:s="{}",formInstanceValue:c="[]"}=null!==(r=o[i])&&void 0!==r?r:{},{fields:l}=JSON.parse(s),d=JSON.parse(c),u=t[n];if(null==u||!u.length||null==l||!l.length||null==d||!d.length)return[];var p=Object(g.a)({fields:l,fieldsData:d,ids:u,configurableFormStore:a,suffix:"connect-".concat(i)});return p.forEach((e=>e.isInConnect=!0)),a.widgetsPrintFormat(p)}catch(e){return h.a.error("关联审批打印错误",e),Object(m.d)("printFormatWidgets",{message:e}),[]}}var M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=new Set(t),r=JSON.parse((null==e?void 0:e.formInstanceValue)||"[]");return r.some((e=>a.has(e.id)))},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;try{var{configurableFormStore:{innerInstances:r}}=Object(u.d)(a);return r&&e.some((e=>M(r[e.instanceId],t[e.definitionID||""])))?"advanced":"normal"}catch(e){return h.a.info("get relative approval mode error",e),"normal"}}},,,,,,,,,function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return r}));var r,i,n="/api/user/searchUsers";(function(e){e[e.OnlyNotLeft=0]="OnlyNotLeft",e[e.All=1]="All",e[e.SubordinateAndNotLeft=2]="SubordinateAndNotLeft"})(r||(r={})),function(e){e[e.INVALID=-1]="INVALID",e[e.GROUP_CHAT=1]="GROUP_CHAT",e[e.EMAIL=2]="EMAIL",e[e.USER=3]="USER",e[e.BOT=4]="BOT",e[e.MESSAGE=5]="MESSAGE",e[e.EMAIL_MESSAGE=6]="EMAIL_MESSAGE",e[e.MEETING_ROOM=7]="MEETING_ROOM",e[e.SHARED_CALENDAR=8]="SHARED_CALENDAR",e[e.Thread=9]="Thread",e[e.Session=10]="Session",e[e.ChatBox=11]="ChatBox",e[e.DEPARTMENT=12]="DEPARTMENT",e[e.ONCALL=13]="ONCALL",e[e.ApprovalStarter=51]="ApprovalStarter",e[e.ApprovalApprover=52]="ApprovalApprover",e[e.ApprovalCcer=53]="ApprovalCcer",e[e.Role=54]="Role"}(i||(i={}))},function(e,t,a){e.exports=a.p+"assets/illustration/default.png"},,,function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return d}));var r,i=a(9),n=a(6),o=a(50),s=a(157),c=a(18);r=Symbol.iterator;class l{constructor(){var{maxSize:e=20,initMap:t=new Map}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(n.a)(this,"maxSize",void 0),Object(n.a)(this,"cache",void 0),Object(n.a)(this,"oldCache",void 0),Object(n.a)(this,"_size",void 0),this.maxSize=Math.max(e,1),this.cache=t,this.oldCache=new Map,this._size=0}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){var t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){var t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(var[e]of this)yield e}*values(){for(var[,e]of this)yield e}*[r](){for(var e of this.cache)yield e;for(var t of this.oldCache){var[a]=t;this.cache.has(a)||(yield t)}}get size(){var e=0;for(var t of this.oldCache.keys())this.cache.has(t)||e++;return this._size+e}}class d{constructor(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(n.a)(this,"fn",void 0),Object(n.a)(this,"lruCache",void 0),Object(n.a)(this,"promiseMap",new Map),Object(n.a)(this,"storagePrefix",void 0),Object(n.a)(this,"saveCacheToStorage",Object(s.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.lruCache,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.storagePrefix;if(a){var r={};for(var[i,n]of e.cache)r[i]=n;o.a.set(a,r,!1,(()=>{o.a.removeSync(a)}))}}),3e3)),this.fn=e;var{maxSize:r,storagePrefix:i=""}=a;this.storagePrefix=i,this.initLruCache(i,r)}optionsToKey(e){return void 0===e?"":JSON.stringify(e)}getCache(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.optionsToKey(e);return this.lruCache.has(t)?this.lruCache.get(t):c.n}refreshCache(e){var t=arguments,a=this;return Object(i.a)((function*(){var r=t.length>1&&void 0!==t[1]?t[1]:a.optionsToKey(e),i=yield a.fn(e);return a.lruCache.set(r,i),a.saveCacheToStorage(),i}))()}getByCallback(e,t,a,r){var n=this;return Object(i.a)((function*(){var i,o=n.optionsToKey(t),s=n.getCache(t,o);if(s!==c.n&&!r&&(e(s,{isCache:!0,fetchingSize:n.promiseMap.size}),a))return s;var l=n.promiseMap.get(o);l||(l=n.refreshCache(t,o),n.promiseMap.set(o,l));try{i=yield l}finally{n.promiseMap.delete(o)}return e(i,{isCache:!1,fetchingSize:n.promiseMap.size}),i}))()}initLruCache(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.storagePrefix,t=arguments.length>1?arguments[1]:void 0;try{var a=o.a.getSync(e),r=new Map(Object.entries(a));this.lruCache=new l({maxSize:t,initMap:r})}catch(e){this.lruCache=new l({maxSize:t})}}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=a(33),d=a(36),u=a(41),p=a(193),m=(a(1318),a(82)),h=a(0),b=Object(o.a)(r=class extends i.Component{renderValue(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{value:a}}=e,{configurableFormStore:r}=Object(c.d)(t),i=r?r.keyword:"",o=Object(l.t)(a,l.w);return Array.from(o).map(((e,t)=>{var[a,r=""]=e;return Object(h.jsxs)(n.a,{children:[a&&Object(h.jsx)(s.a,{content:a,keyword:i,style:{cursor:"text"},breakWord:!0}),r&&Object(h.jsx)(n.r,{className:"text-btn inline",onClick:()=>Object(d.l)(r),children:Object(h.jsx)(s.a,{content:r,keyword:i})})]},"".concat(t))}))}render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,hasHistory:o}}=e;return a?this.renderTableCell():r?this.renderRelativeFormItem():Object(h.jsxs)(n.r,{className:"widget-viewer single-input-viewer",children:[Object(h.jsxs)(n.r,{className:"title",children:[Object(h.jsx)(n.p,{selectable:!0,children:i}),o&&Object(h.jsx)(u.a,{ctxId:t,widget:e},e.id)]}),Object(h.jsx)(n.r,{className:"value",children:this.renderValue()})]})}renderTableCell(){var{widget:e}=this.props;return e.data.value?Object(h.jsx)(n.r,{className:"table-cell-viewer",children:Object(h.jsx)(p.a,{thresholdLineClamp:5,children:this.renderValue()})}):null}renderRelativeFormItem(){var{widget:e,ctxId:t}=this.props;return e.data.value?Object(h.jsx)(m.a,{title:e.data.name,ctxId:t,children:Object(h.jsx)(p.a,{thresholdLineClamp:5,children:this.renderValue()})}):null}})||r},function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(19),i=a.n(r);function n(e){e.startsWith("/")&&(e=e.slice(1));var t=i.a.getCurrentPages();if(!t||!t.length)return!1;var a=t[t.length-1];return(a.route||a.__route__)===e}},function(e,t,a){"use strict";var r=a(12),i={submit(e){var{amount:t,isSenior:a}=e;Object(r.b)("approval_submit_related_approval",{amount:t,is_senior:a?1:0})},click(e){var{position:t,instanceId:a,system:i}=e;Object(r.b)("approval_detail_related_apprival",{click:t,instance_id:a,source_system:i})},approved(e){Object(r.b)("approval_detail_related_apprival_approved",{is_approved:e})}};t.a=i},function(e,t,a){"use strict";var r=a(3),i=a(1),n=a(265),o=a(68),s=a(191),c=(a(1174),a(0));class l extends r.Component{renderValue(){var{widget:e}=this.props;return e.data.value?Object(c.jsx)(n.a,{text:e.data.value,className:"desc-editor-content"}):null}render(){var{widget:e,inTable:t}=this.props;return e?"editing"===t?this.renderEditingTableCell():t?this.renderTableCell():Object(c.jsx)(i.r,{className:"widget-editor desc-editor block--contrast",children:this.renderValue()}):null}renderTableCell(){var{widget:e}=this.props;return e.data.value?Object(c.jsx)(o.a,{noBorder:!0,children:Object(c.jsx)(i.r,{className:"desc-table-editor-readonly",children:this.renderValue()})}):null}renderEditingTableCell(){var{widget:e,height:t,onFinish:a}=this.props;return e?Object(c.jsx)(s.b,{className:"desc-table-editor",focus:!0,height:0,customWrapperStyle:{minHeight:t,boxSizing:"content-box"},extra:Object(c.jsx)(i.r,{className:"desc-table-editor-content",children:this.renderValue()}),onBlur:a}):null}}t.a=l},,function(e,t,a){"use strict";var r,i,n,o=a(5),s=a(11),c=a(6),l=a(7),d=(a(56),a(3)),u=a(1),p=a(15),m=a(157),h=a(280),b=a(4),g=a(8),v=a.n(g),j=a(19),O=a.n(j),f=a(10),M=a(35),_=a(20),y=a(12),D=a(48),N=a(60),A=a(634),T=a.n(A),I=a(76),C=a(18),x=a(244),S=a(33),w=a(181),L=a(14),E=a(2),k=a(17),z=a(450),R=a(41),P=(a(1202),a(29)),U=a(36),B=a(805),F=a(183),Y=a(40),Q=a(0),G=Object(_.c)("pc:src/components/configurable-form/components/widgets/image/editor/index.tsx"),W=["heic"],V=Object(p.a)((i=class extends d.Component{constructor(e){super(e),Object(c.a)(this,"maxImageCount",9),Object(c.a)(this,"handleAddBtnClick",void 0),Object(s.a)(this,"onPercentChange",n,this),Object(c.a)(this,"upload",Object(b.k)(this._upload)),Object(c.a)(this,"showUploadHint",Object(m.a)((e=>{M.b.showToast({title:e,icon:"error",duration:3e3})}),100)),Object(c.a)(this,"handleDeleteBtnClick",(e=>{this.deleteImage(e)})),Object(c.a)(this,"handleThumbClick",(e=>{var{widget:{data:{uploadImageList:t}}}=this.props;G("fileBizPreview"),e.status===C.v.UPLOADED&&O.a.previewImage({urls:t.map((e=>e.previewUrl)),current:e.previewUrl})})),this.handleAddBtnClick=Object(b.k)(this._handleAddBtnClick).bind(this);var{ctxId:t}=e;if(t){var{userStore:{enableDrive:a}}=Object(L.d)(t);a&&(this.maxImageCount=20)}}render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!t)return null;var{data:{name:r,required:i,validationError:n,hasHistory:o,description:s}}=e;return a?this.renderImageInTable():Object(Q.jsxs)(u.r,{className:"widget-editor image-editor",children:[Object(Q.jsxs)(D.a,{required:i,subTitle:Object(E.t)("approval-mp_Upload30Max_Desc",{count:this.maxImageCount,size:50}),children:[r,o&&Object(Q.jsx)(R.a,{ctxId:t,widget:e},e.id)]}),s&&Object(Q.jsx)(u.r,{className:'"image-editor image-editor-description',children:s}),this.renderImageList(),Object(Q.jsx)(N.a,{text:n})]})}renderImageList(){var{widget:{data:{uploadImageList:e}}}=this.props;return Object(Q.jsxs)(u.r,{className:"image-list",children:[e.map((e=>this.renderImage(e))),this.renderAddBtn()]})}renderImage(e){var{id:t,thumbUrl:a,status:r,percent:i=0}=e;return Object(Q.jsxs)(u.r,{className:"item",children:[r!==C.v.FAILED&&Object(Q.jsx)(u.g,{mode:"aspectFill",className:"thumb",src:a,onClick:()=>this.handleThumbClick(e)}),r===C.v.UPLOADING&&Object(Q.jsx)(u.r,{className:"image-overlay",children:Object(Q.jsx)(u.r,{className:"progress-bar",children:Object(Q.jsx)(u.r,{className:"progress-bar-step",style:{width:"".concat(i,"%")}})})}),r===C.v.FAILED&&Object(Q.jsx)(u.r,{className:v()("image-overlay","image-error"),children:Object(Q.jsx)(B.a,{type:"icon-secondary",icon:"refresh_outlined",customStyle:{color:"#fff"},onClick:()=>this.handleReupload(t)})}),Object(Q.jsx)(u.r,{className:"delete-btn-wrapper",onClick:()=>this.handleDeleteBtnClick(t),children:Object(Q.jsx)(u.g,{className:"delete-btn",src:T.a})})]},"item-".concat(t))}renderAddBtn(){var{widget:{data:{uploadImageList:e}}}=this.props,t=e.length>=this.maxImageCount;return Object(Q.jsx)(Y.c,{arrow:!0,disabled:!t,text:Object(E.t)("approval-mp_ImageMax30_Toast",{count:this.maxImageCount}),children:Object(Q.jsx)(u.r,{className:v()("item","add-btn",t&&"disabled"),onClick:this.handleAddBtnClick,children:Object(Q.jsx)(F.a,{className:"add-btn-icon",size:20,name:"add_outlined"})},"item-add-btn")})}*_handleAddBtnClick(){var{ctxId:e,widget:t,widget:{data:{uploadImageList:a}}}=this.props,{configurableFormStore:r}=Object(L.d)(e);if(G("fileBizUploadImg"),!(this.maxImageCount-a.length<1))try{var i=yield O.a.chooseImage({sourceType:["album"],count:this.maxImageCount+1}),n=this.maxImageCount-a.length;i.tempFiles.length>n&&O.a.showToast({title:Object(E.t)("approval-mp_ImageMax30_Toast",{count:this.maxImageCount}),icon:"error",duration:3e3}),a.push(...i.tempFiles.filter((e=>{var{path:t,size:a}=e;if(!a)return!1;if(a>52428800)return this.showUploadHint(Object(E.t)("approval-mp_ImageSize500_Toast",{size:50})),!1;var r=Object(I.b)(t),i=Object(I.a)(r);return!W.includes(i)||(this.showUploadHint(Object(E.t)("approval-mp_ThisFormatNotYet_Toast",{fileType:i})),!1)})).slice(0,n).map((e=>{var{path:t,size:a}=e,r=Object(h.a)(),i=Object(I.b)(t),n=Object(I.a)(i);return{id:r,status:C.v.UPLOADING,key:"",url:t,thumbUrl:t,previewUrl:t,name:i,extension:n,size:a,waitUploadPromise:this.upload(r)}}))),yield Promise.allSettled(a.filter((e=>{var{status:t}=e;return C.v.UPLOADING===t})).map((e=>{var{waitUploadPromise:t}=e;return t}))),r.handleWidgetChange(t.id)}catch(e){Object(y.b)(k.f.ApprovalError,{location:"in function handleAddBtnClick at src/components/configurable-form/components/widgets/image/editor/index.tsx",message:JSON.stringify(e)}),f.a.error("handleAddBtnClick error",e)}}*_upload(e){var{ctxId:t,widget:{data:{uploadImageList:a}}}=this.props;yield Object(S.s)();var r=a.find((t=>t.id===e));if(r)try{var i,{configurableFormStore:n}=Object(L.d)(t),o=(null==n||null===(i=n.instanceInfo)||void 0===i?void 0:i.instanceId)||"",s=Object(I.a)(r.name),c=Object(U.s)({url:Object(x.a)().UPLOAD,filePath:r.url,name:r.name,formData:{type:"image",suffix:".".concat(s),instanceId:o}},(t=>this.onPercentChange(t,e))),l=yield c.taskPromise;if(200!==l.statusCode)throw new Error("invalid statusCode: ".concat(l.statusCode));var d=JSON.parse(l.data);if(10118===d.code)throw new w.a(Object(E.t)("formImage.OversizeHint"));if(0!==d.code)throw Error("invalid code: ".concat(d.code));var u=Object(I.d)(d.data.url).suffix,p=u?"~0x0.".concat(u):"~0x0.image";r.key=d.data.key,r.url=d.data.url,r.thumbUrl="".concat(d.data.url,"~120x0.image"),r.previewUrl="".concat(d.data.url).concat(p),r.name=d.data.fileName||r.name,r.size=d.data.fileSize,r.status=C.v.UPLOADED,G("fileUploadImgSuccess")}catch(e){f.a.error("image upload failed",e),G("fileUploadImgFail",e),e instanceof w.a?this.showUploadHint(e.message):this.showUploadHint(Object(E.t)("PicUploadFailedHint")),r.status=C.v.FAILED,Object(y.b)(k.f.ApprovalError,{location:"in function upload at src/components/configurable-form/components/widgets/image/editor/index.tsx",message:JSON.stringify(e)})}else f.a.error("uploadImage invalid id",e)}handleReupload(e){var{widget:{data:{uploadImageList:t}}}=this.props,a=t.findIndex((t=>t.id===e));-1!==a&&(t[a].status=C.v.UPLOADING,t[a].percent=0,t[a].waitUploadPromise=this.upload(e))}deleteImage(e){var{ctxId:t,widget:a,widget:{data:{uploadImageList:r}}}=this.props,{configurableFormStore:i}=Object(L.d)(t),n=r.findIndex((t=>t.id===e));-1!==n&&r.splice(n,1),i.handleWidgetChange(a.id)}renderImageInTable(){var{ctxId:e,widget:{id:t,data:a,data:{uploadImageList:r,validationError:i,writable:n}}}=this.props,{configurableFormStore:s}=Object(L.d)(e);return Object(Q.jsx)(u.r,{className:"image-table-cell",children:Object(Q.jsx)(z.a,{ctxId:e,imageSize:"medium",uploadText:Object(E.t)("Upload_Images"),showUploadButton:n||!r.length,error:i,disabled:!n,restPopoverProps:{overlayPosition:"fixed",position:"bottom"},defaultFileList:r.map((e=>Object(o.a)(Object(o.a)({},e),{},{type:P.h.IMG}))),onFileListChange:e=>{Object(b.s)((()=>{a.uploadImageList=e.map((e=>Object(o.a)(Object(o.a)({},e),{},{waitUploadPromise:Promise.resolve()})))})),s.handleWidgetChange(t)},maxFileNumber:this.maxImageCount})})}},n=Object(l.a)(i.prototype,"onPercentChange",[b.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{var{widget:{data:{uploadImageList:a}}}=this.props,r=a.findIndex((e=>e.id===t));r>=0&&a[r]&&(a[r].percent=e)}}}),Object(l.a)(i.prototype,"handleReupload",[b.f],Object.getOwnPropertyDescriptor(i.prototype,"handleReupload"),i.prototype),Object(l.a)(i.prototype,"deleteImage",[b.f],Object.getOwnPropertyDescriptor(i.prototype,"deleteImage"),i.prototype),r=i))||r;t.a=V},function(e,t,a){"use strict";var r=a(5),i=a(9),n=(a(3),a(1)),o=a(8),s=a.n(o),c=a(99),l=a(297),d=a(29),u=a(69),p=a(872),m=a.n(p),h=a(294),b=(a(1201),a(637)),g=a(18),v=a(805),j=a(40),O=a(2),f=a(0),M=Object(u.h)("ud-like-image-list");t.a=e=>{var{maxFileSize:t=50,maxFileNumber:a=9,defaultFileList:o=[],fileType:u=d.h.IMG,customUploadButton:p,showUploadButton:_,renderPreviewItem:y,fileItemStyle:D,onFileListChange:N,disabled:A=!1,uploadText:T="",maxPreviewCount:I=3,restImageSize:C="medium",imageSize:x="small",restPopoverProps:S,error:w,className:L,ctxId:E}=e,{fileList:k,handleAddFileAndUpload:z,handleRemove:R,handleRetry:P}=Object(b.a)({defaultFileList:o,fileType:u,onFileListChange:N,maxSize:t,maxCount:a}),U=function(){var e=Object(i.a)((function*(){z(E)}));return function(){return e.apply(this,arguments)}}(),B=(e,t)=>{if("function"==typeof y)return y(e);var{status:a,percent:r=0}=e;return Object(f.jsxs)(n.r,{className:M("size-".concat(t||x)),children:[a!==g.v.FAILED&&Object(f.jsx)(n.g,{onClick:()=>Object(l.c)(e,k),src:e.thumbUrl,mode:"aspectFill",className:s()("image-content"),style:D}),a===g.v.UPLOADING&&Object(f.jsx)(n.r,{className:"image-overlay",children:Object(f.jsx)(n.r,{className:"progress-bar",children:Object(f.jsx)(n.r,{className:"progress-bar-step",style:{width:"".concat(r,"%")}})})}),a===g.v.FAILED&&Object(f.jsx)(n.r,{className:s()("image-overlay"),children:Object(f.jsx)(v.a,{onClick:()=>P(e,E),type:"icon-secondary",icon:"refresh_outlined",customStyle:{color:"#fff"},size:"small"})})]})},F=e=>A?null:Object(f.jsx)(n.g,{src:m.a,className:s()(M("del-icon")),onClick:()=>(e=>{R(e.id)})(e)}),Y=e=>{var t=e[0];return Object(f.jsx)(n.r,{children:Object(f.jsxs)(h.a,Object(r.a)(Object(r.a)({trigger:"hover",leaveDelay:300,className:M("popover-".concat(x)),popoverStyle:{width:"fit-content",maxWidth:"366px",padding:"16px 3px 8px 16px"},maxHeight:235,noPadding:!0},S),{},{content:Object(f.jsx)("view",{className:s()(M("file-list"),M("rest-list")),children:e.map((e=>Object(f.jsxs)(n.r,{className:s()(M("file-item"),M("rest-item")),children:[B(e,C),F(e)]},e.id)))}),children:[B(t),Object(f.jsx)(n.r,{className:M("rest-mask"),children:"+".concat(e.length)})]}))})};return Object(f.jsxs)(n.r,{className:s()(L,M(),w&&M("error-border")),children:[Object(f.jsx)(n.r,{className:M("upload-button"),style:k.length?{marginBottom:"8px"}:{},children:(()=>{if(!_)return null;var e=k.length>=a;return"function"==typeof p?p({onUploadClick:U,disabled:A}):Object(f.jsx)(j.c,{arrow:!0,fixed:!0,disabled:!e,text:Object(O.t)("approval-mp_ImageMax30_Toast",{count:a}),children:Object(f.jsx)(c.a,{type:"text",icon:"upload_outlined",disabled:A||e,onClick:U,children:T})})})()}),Object(f.jsx)(n.r,{className:s()(M("file-list")),children:k.slice(0,I).map(((e,t)=>{var a=k.length>I&&I-1===t;return Object(f.jsxs)(n.r,{className:s()(!a&&M("file-item"),a&&M("file-item-rest")),children:[a?Y(k.slice(I-1)):B(e),a?null:F(e)]},e.id)}))}),w&&Object(f.jsx)(n.r,{className:M("error-text"),children:w})]})}},function(e,t,a){e.exports=a.p+"assets/illustration/update_grey.png"},function(e,t,a){"use strict";var r=a(3),i=a.n(r),n=a(1),o=a(649),s=a.n(o),c=(a(1214),a(0));t.a=i.a.memo((e=>{var{src:t=s.a}=e;return Object(c.jsx)(n.r,{className:"approval-page-loading",children:Object(c.jsx)(n.g,{className:"approval-page-loading-pic",src:t})})}))},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTIgMjNjNi4wNzUgMCAxMS00LjkyNSAxMS0xMVMxOC4wNzUgMSAxMiAxIDEgNS45MjUgMSAxMnM0LjkyNSAxMSAxMSAxMVoiIGZpbGw9IiNGODAiLz4KICA8cGF0aCBkPSJNMTIgN2ExIDEgMCAwIDAtMSAxdjVhMSAxIDAgMSAwIDIgMFY4YTEgMSAwIDAgMC0xLTFabTAgMTBhMSAxIDAgMSAwIDAtMiAxIDEgMCAwIDAgMCAyWiIgZmlsbD0iI2ZmZiIvPgo8L3N2Zz4K"},function(e,t,a){"use strict";a.d(t,"b",(function(){return M})),a.d(t,"a",(function(){return _})),a.d(t,"c",(function(){return y}));var r,i=a(280),n=a(4),o=a(122),s=a.n(o),c=a(25),l=a(13),d=a(118),u=a(26),p=a(573),m=a(29),h=a(2),b=a(93),g=a(180),v=a(376),j=a(514),O=a(10);!function(e){e.FORM="FORM",e.LIST="LIST"}(r||(r={}));var f=Object(b.c)();function M(e){var t=function(e){return Array.prototype.concat.apply([],e)}(e.map((e=>e.widgets.map((e=>(e.type===l.c.NUMBER_INPUT||e.type===l.c.AMOUNT_INPUT||e.type===l.c.CALCULATION_FORMULA)&&""!==e.data.value&&e.data.visible)))));return t.some((e=>e))}function _(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o={},c=0;for(var{widgets:{[t]:l}}of e){var{data:{value:p,visible:m,currency:b,unit:v}}=l;if(m){var j=new s.a(p||0);c+=1,j.isNaN()||(b?o[b]?o[b]=o[b].plus(j):o[b]=j:o[v]?o[v]=o[v].plus(j):o[v]=j)}}Object.keys(o).forEach((e=>{o[e]=Object(d.a)(String(o[e].toNumber()),{keepDecimalPlaces:a,isThousandSeparator:r})}));var O=[];return O=Object.entries(o).map((e=>[e[1],g.a.getCurrencyUnit(e[0].toUpperCase())])),i&&n&&(O=O.map((e=>[...e,Object(u.l)(e[0],a)]))),{displayValue:O.map((e=>e.join(" "))).join("".concat(Object(h.t)("Semicolon")).concat(f?"":" ")),hasValue:c}}var y={type:l.c.DETAIL,inputFormat(e,t){var a,r,{id:o}=e,s=[];e&&e.option&&e.option.summarizeWidgets&&(s=e.option.summarizeWidgets);var c=!1,l=!1;return t.isWidgetReadable(o)?(c=!0,l=!0):(c=!1,l=!1),{id:o,type:e.type,data:{name:e.name||"",visible:!0,readable:c,writable:l,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,summarizeWidgets:s,printType:null==e||null===(a=e.option)||void 0===a?void 0:a.printType,inputType:null===(r=e.option)||void 0===r?void 0:r.inputType,groups:[],addGroup:Object(n.f)((function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,{isAutoEmit:s=!1,isAutoRun:c=!0,notifyChange:l=!0}=a,d=t.getWidget(o),p=Object(i.a)();d.data.groups.push({id:p,widgets:t.widgetsInputFormat(e.value,p,r)});var m=d.data.groups[d.data.groups.length-1];for(var h of t.genAllWidgetDescendants(m.widgets))h.id=Object(u.k)([h.id,p]),d.data.isRestored&&!h.data.writable&&h.data.readable&&(h.data.readable=!1);return t.addAllWidgetDescendantsToMap(m.widgets),c&&(t.displayConditionManager.autorunDetailGroup(o,p),l&&(t.handleWidgetBatchChange(m.widgets.map((e=>e.id)),s),t.initWidgetsInDetail(m.widgets),null==n||n(m,s))),m})),removeGroup:Object(n.f)((function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.getWidget(o),i=r.data.groups.splice(e,1)[0];return t.handleWidgetBatchChange(i.widgets.map((e=>e.id)),a),t.removeAllWidgetDescendantsToMap(i.widgets),i})),copyGroup:Object(n.f)((e=>{var a=t.getWidget(o),r=a.data.groups[e],i=a.data.addGroup({isAutoEmit:!0,isAutoRun:!0,notifyChange:!1,isAddOrCopy:!0});return i.widgets.forEach(((e,a)=>{t.widgetRestoreWithCopy(e,r.widgets[a])})),t.hasManualChangeForm=!0,t.handleWidgetBatchChange(i.widgets.map((e=>e.id)),!0),i})),isRollBackToStart:t.isRollbackToStart,handleLinkageAction:Object(n.f)(((t,a,r)=>{if(a===m.j.SetOptions)Array.isArray(e.value)&&e.value.forEach((e=>{e.id===t&&(e.value=r)}))})),handleLinkageState:Object(n.f)(((t,a,r)=>{Array.isArray(e.value)&&e.value.forEach((e=>{e.id===t&&(e.linkageError=r,e.linkageLoading=a)}))})),handleDetailBatchImport:Object(n.f)(((e,a,r)=>{for(;a.data.groups.length>1;)a.data.removeGroup(a.data.groups.length-1,!0);var i=Object(v.a)(e,a);i.forEach((e=>{a.data.addGroup({},e,((e,a)=>{var r=e.widgets.filter((e=>"dateInterval"===e.type));t.handleWidgetBatchChange(r.map((e=>e.data.children[0].id)),a)}))})),a.data.removeGroup(0,!0),r({successLength:i.length,importColumnNumber:i[0].length})})),saveBatchImportSource:Object(n.f)(((e,t,a)=>{e.data.importSourceInfo={url:t,token:a}}))}}},beforeInitFinish(e){e.data.isRestored||e.data.groups.length||e.data.addGroup({isAutoEmit:!0})},outputFormat(e,t){var a=e.data.groups.map((e=>t.widgetsOutputFormat(e.widgets)));return e.data.visible?{id:Object(u.q)(e.id),type:e.type,value:a,displayCondStatus:e.data.visible}:{id:Object(u.q)(e.id),type:e.type,value:null,displayCondStatus:e.data.visible}},restoreFormat(e,t,a){for(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.ext=t.ext||"",e.data.option=t.option||[];e.data.groups.length;)e.data.removeGroup(e.data.groups.length-1,!0);if(t.value.length>0){for(var r of t.value){var i=e.data.addGroup({isAutoEmit:!0,isAutoRun:!0,notifyChange:!1});for(var n of r)n.id=Object(u.k)([Object(u.q)(n.id),i.id]);a.widgetsRestoreFormat(r),a.handleWidgetBatchChange(i.widgets.map((e=>e.id)),!0)}e.data.writable=Array.from(y.genChildren(e)).some((e=>e.data.writable&&"text"!==e.type))}else{var o=e.data.addGroup({isAutoEmit:!0,isAutoRun:!0,notifyChange:!1}),s=Array.from(y.genChildren(e)).some((e=>e.data.writable&&"text"!==e.type));s?a.handleWidgetBatchChange(o.widgets.map((e=>e.id)),!0):e.data.removeGroup(0,!0),e.data.writable=s}return e.data.printable=t.printable,e},restoreWithDraftFormat:Object(n.f)(((e,t,a)=>{for(;e.data.groups.length;)e.data.removeGroup(e.data.groups.length-1,!0);for(var r of(t.data.importSourceInfo&&(e.data.importSourceInfo=t.data.importSourceInfo),t.data.groups)){var i=e.data.addGroup({isAutoEmit:!0,isAutoRun:!0,notifyChange:!1});for(var n of(r.id=i.id,r.widgets))n.id=Object(u.k)([Object(u.q)(n.id),i.id]);a.widgetsRestoreWithDraftFormat(r.widgets),a.handleWidgetBatchChange(i.widgets.map((e=>e.id)),!0)}return e})),printFormat(e,t){var a,{name:i,groups:o,summarizeWidgets:c,printType:m,ext:b,option:v}=e.data;a="string"==typeof b?JSON.parse(b||"{}"):b;var{sum:f}=a,_=[];if(m===r.FORM){var y=[];_.push({label:i,isBlock:!0});var D=o.map((e=>e.widgets.filter((e=>e.type===l.c.DESC)))),N=[];D[0].forEach(((e,t)=>{if(D.every((e=>e[t].data.visible)))N.push(e);else if(D.some((e=>e[t].data.visible))){var a=D.findIndex((e=>e[t].data.visible)),r=[];D.forEach(((e,a)=>{e[t].data.visible&&r.push(a+1)}));var n=i+r.join(Object(h.t)("Dayton")),o=D[a][t];o.data.value="".concat(o.data.value).concat(Object(h.t)("Brackets",{innerText:n})),N.push(o)}})),_.push(...t.widgetsPrintFormat(N));for(var A=o.map((e=>e.widgets.filter((e=>e.type!==l.c.DESC)))),T=function(e,a){y.push(t.widgetsPrintFormatToForm(A.map((t=>t[e]))))},I=0,C=A[0].length;I<C;I++)T(I);_.push({label:"",value:y.filter((e=>Boolean(e.label))),isDetailForm:!0})}else for(var x=0,S=o.length;x<S;x++){var w=o[x];_.push({label:S>1?"".concat(i).concat(x+1):i,isBlock:!0});var{widgets:L}=w;L.forEach((e=>{e.isInDetailField=!0}));var E=t.widgetsPrintFormat(L);_.push(...E)}function k(e,a){var r=new s.a(0),i=0;O.a.info("calcSummary groups==============",Object(n.u)(e),a);var o=function(e){var{data:a,type:n}=e;if(""===a.value||!a.visible)return"continue";var o=new s.a(a.value);if(i+=1,n===l.c.CALCULATION_FORMULA){var{formula:{arg:c,exp:d}}=a,u=c.map((a=>Object(j.c)(a,e,t))),p="".concat(Object(j.b)(u,d)||"0");o=new s.a(p)}o.isNaN()||(r=r.plus(o))};for(var{widgets:{[a]:c}}of e)o(c);return{sumV:r.toNumber(),hasValue:i}}if(o.length>1&&M(o)){var z=[];f.forEach((e=>{var t,a=e.id,r=v.find((e=>e.id===a));if(r.printable){var{isCapital:i=!1,isThousandSeparator:n=!0,keepDecimalPlaces:o=2}=null!==(t=r.option)&&void 0!==t?t:{};if(r.type===l.c.AMOUNT_INPUT){var s=e.sumItems?JSON.parse(e.sumItems):null;if(s)z.push("".concat(r.name).concat(Object(h.t)("Colon")," ").concat(s.map((e=>{var t=[Object(d.a)(e.value,{keepDecimalPlaces:o,isThousandSeparator:n}),g.a.getCurrencyUnit(e.currency)];return i&&t.push(Object(u.l)(e.value,o)),t.join(" ")})).join(Object(h.t)("Semicolon"))));else{var c=g.a.getCurrencyUnit(r.value.toUpperCase()),p="".concat(Object(d.a)(e.value,{keepDecimalPlaces:o,isThousandSeparator:n})," ").concat(c," ").concat(i?e.capitalValue||Object(u.l)(e.value,o):"");z.push("".concat(r.name).concat(Object(h.t)("Colon")," ").concat(p))}}}})),o[0].widgets.forEach(((e,t)=>{var a=e.id.split("|")[0],r=c.includes(a),{printable:i}=e.data;if(r&&i){var{isThousandSeparator:s=!0,keepDecimalPlaces:p=2,isCapital:m=!1,unit:b}=e.data||{};if(e.type!==l.c.AMOUNT_INPUT){var{sumV:g,hasValue:v}=k(Object(n.u)(o),t);if(v){var j="",{name:O}=e.data;switch(e.type){case l.c.NUMBER_INPUT:j=String(Object(d.b)(g));var{label:f,unit:M}=Object(u.n)(e.data.name);O=f,j="".concat(j," ").concat(M);break;case l.c.CALCULATION_FORMULA:j=Object(d.a)(String(g),{keepDecimalPlaces:p,isThousandSeparator:s})}var _="CNY"===b||m?Object(u.l)(j,p):"";z.push("".concat(O).concat(Object(h.t)("Colon")," ").concat(j," ").concat(_))}}}})),_.push({label:"".concat(i," ").concat(Object(h.t)("formFieldlist.Summary")),value:z,isDefaultFullLine:!0,isSummary:!0})}else e.id!==p.a.Schedule&&_.push({isBlankLine:!0});return _},validate:Object(n.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;var r=yield t.validateWidgets(Array.from(y.genChildren(e)).map((e=>e.id)),{silent:a});return a||(e.data.validationError=r?null:"err"),r})),*genChildren(e){for(var t of e.data.groups)yield*t.widgets},reset(e){for(;e.data.groups.length;)e.data.removeGroup(e.data.groups.length-1,!0);c.d.changeDefaultStatus(!0),e.data.addGroup({isAutoEmit:!0}),c.d.changeDefaultStatus(!1)}}},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=(a(1224),a(41)),d=a(82),u=a(0),p=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,showText:o,hasHistory:d,text:p}}=e,{configurableFormStore:m}=Object(c.d)(t),h=m?m.keyword:"";return a?this.renderTableCell(h):r?this.renderRelativeForm(h):Object(u.jsxs)(n.r,{className:"widget-viewer date-time-viewer",children:[Object(u.jsxs)(n.r,{className:"title",children:[Object(u.jsx)(n.p,{selectable:!0,children:i}),d&&Object(u.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),Object(u.jsx)(n.r,{className:"value",children:Object(u.jsx)(s.a,{content:o||p,keyword:h})})]})}renderTableCell(e){var{widget:t}=this.props,{data:{showText:a,text:r}}=t;return r||a?Object(u.jsx)(n.r,{className:"table-cell-viewer",children:Object(u.jsx)(s.a,{content:a||r,keyword:e,style:{cursor:"text"}})}):null}renderRelativeForm(e){var{widget:t,ctxId:a}=this.props,{data:{name:r,showText:i,text:n}}=t;return n||i?Object(u.jsx)(d.a,{title:r,ctxId:a,children:Object(u.jsx)(s.a,{content:i||n,keyword:e,style:{cursor:"text"}})}):null}})||r;t.a=p},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(14),c=a(42),l=a(2),d=a(883),u=a.n(d),p=a(41),m=a(82),h=a(0),b=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{children:[i,o,d],hasHistory:u}}=e,{configurableFormStore:m}=Object(s.d)(t),b=m?m.keyword:"";return a?this.renderTableCell(b):r?this.renderRelativeForm(b):Object(h.jsxs)(n.r,{className:"date-interval-viewer",children:[Object(h.jsxs)(n.r,{className:"widget-viewer",children:[Object(h.jsxs)(n.r,{className:"title",children:[Object(h.jsxs)(n.p,{selectable:!0,children:[i.data.name,"-",o.data.name]}),u&&Object(h.jsx)(p.a,{ctxId:t,widget:e},e.id)]}),Object(h.jsx)(n.r,{className:"value",children:Object(h.jsx)(n.p,{selectable:!0,children:"".concat(i.data.showText," ").concat(Object(l.t)("PC.DateTo")," ").concat(o.data.showText)})})]}),Object(h.jsxs)(n.r,{className:"widget-viewer",children:[Object(h.jsx)(n.r,{className:"title",children:Object(h.jsx)(n.p,{selectable:!0,children:d.data.name})}),Object(h.jsx)(n.r,{className:"value",children:Object(h.jsx)(c.a,{content:d.data.value||"0",keyword:b})})]})]})}renderTableCell(e){var{widget:t}=this.props,{data:{children:[a,r]}}=t;return a.data.text&&r.data.text?Object(h.jsx)(n.r,{className:"table-cell-viewer",children:Object(h.jsx)(c.a,{content:"".concat(a.data.text," ").concat(Object(l.t)("PC.DateTo")," ").concat(r.data.text),keyword:e,style:{cursor:"text"}})}):null}renderRelativeForm(e){var{widget:t,ctxId:a}=this.props,{data:{children:[r,o,s]}}=t;return r.data.text&&o.data.text?Object(h.jsxs)(i.Fragment,{children:[Object(h.jsxs)(m.a,{title:"".concat(r.data.name,"-").concat(o.data.name),ctxId:a,contentClass:u.a.interval_text,children:[Object(h.jsxs)(n.p,{selectable:!0,children:["".concat(r.data.showText," ").concat(Object(l.t)("PC.DateTo"))," "]}),Object(h.jsx)(n.p,{selectable:!0,children:"".concat(o.data.showText)})]}),Object(h.jsx)(m.a,{title:s.data.name,ctxId:a,children:Object(h.jsx)(c.a,{content:s.data.value||"0",keyword:e})})]}):null}})||r;t.a=b},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(2),c=a(288),l=a(41),d=(a(1226),a(68)),u=a(200),p=a(523),m=a(156),h=a(8),b=a.n(h),g=a(82),v=a(730),j=a(0),O=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,hasHistory:o,users:s}}=e;return a?this.renderTableCell():r?this.renderRelativeFormItem():s&&s.filter((e=>e.id)).length?Object(j.jsxs)(n.r,{className:"widget-viewer contact-viewer",children:[Object(j.jsxs)(n.r,{className:"title",children:[Object(j.jsx)(n.p,{selectable:!0,children:i}),o&&Object(j.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),Object(j.jsxs)(n.r,{className:"value",children:[this.renderUsers(),this.renderChildren()]})]}):null}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{id:a,data:{placeholder:r,users:i,validationError:o="",multi:s}}=e;if(!i||!i.filter((e=>e.id)).length)return null;var c="widget-id-".concat(a.replace(/\W+/g,""));if(s)return Object(j.jsx)(d.a,{noBorder:!0,placeholder:r,disabled:!0,className:b()("multi-contact-cell",c),children:i.length?Object(j.jsx)(u.a.Group,{maxTagCount:"responsive",customStyle:{marginBottom:i.length?"-4px":""},children:null==i?void 0:i.filter((e=>e.id)).map((e=>Object(j.jsx)(u.a,{type:"avatar",renderIcon:Object(j.jsx)(p.a,{url:e.avatarUrl,size:40,userId:e.id,customSelector:".multi-contact-cell.".concat(c)}),text:e.name,onClick:()=>{Object(m.a)({userId:null==e?void 0:e.id,openId:null==e?void 0:e.openId,selector:".multi-contact-cell.".concat(c)})}},e.id)))}):null});var l=(null==i?void 0:i[0])||null;return Object(j.jsx)(d.a,{noBorder:!0,disabled:!0,placeholder:r,error:o||"",children:(null==l?void 0:l.id)&&Object(j.jsxs)(n.r,{className:b()("single-contact-cell",c),children:[Object(j.jsx)(p.a,{url:l.avatarUrl,size:48,userId:l.id,customSelector:".single-contact-cell.".concat(c)}),Object(j.jsx)(n.r,{className:"single-contact-cell-name",onClick:()=>{Object(m.a)({userId:null==l?void 0:l.id,openId:null==l?void 0:l.openId,selector:".single-contact-cell.".concat(c)})},children:l.name})]})})}renderRelativeFormItem(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{id:a,data:{users:r}}=e,i="widget-id-".concat(a.replace(/\W+/g,""));return Object(j.jsx)(g.a,{title:e.data.name,ctxId:t,children:Object(j.jsx)(n.r,{className:i,children:Object(j.jsx)(v.a.Group,{itemList:r.map((e=>({id:e.id,text:e.name,avatarUrl:e.avatarUrl}))),onClick:e=>{Object(m.a)({userId:null==e?void 0:e.id,openId:null==e?void 0:e.openId,selector:".".concat(i)})},textEllipsesLine:1})})})}renderUsers(){var{widget:e}=this.props,{data:{users:t}}=e;return Object(j.jsx)(c.a.Group,{itemList:t,showProfile:!0})}renderChildren(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{data:{users:a,multi:r,children:o}}=e;if(r||null==o||!o.length)return null;var[c]=o,{data:l}=c||{};if(!(1===a.length&&l.value&&l.options.length>1))return null;var{text:d}=l.value||{};return Object(j.jsx)(i.Fragment,{children:Object(j.jsxs)(n.r,{className:"contact-viewer__departments",children:[Object(j.jsxs)(n.p,{children:[Object(s.t)("UserDepartment"),": "]}),d]})})}})||r;t.a=O},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=a(41),d=a(210),u=(a(1232),a(82)),p=a(0),m=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,children:a,inTable:r,inRelativeForm:i}=this.props;if(!e)return null;var{data:{name:o,value:d,hasHistory:u}}=e,{configurableFormStore:m}=Object(c.d)(t),h=m?m.keyword:"";return r?this.renderTableCell(h):i?this.renderRelativeFormItem(h):Object(p.jsxs)(n.r,{className:"widget-viewer single-select-viewer",children:[Object(p.jsxs)(n.r,{className:"title",children:[Object(p.jsx)(n.p,{selectable:!0,children:o}),u&&Object(p.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),Object(p.jsx)(n.r,{className:"value",children:Object(p.jsx)(s.a,{content:d?d.text:"",keyword:h})}),a]})}renderTableCell(e){var{widget:t}=this.props;if(!t.data.value)return null;var{data:{value:a}}=t;return Object(p.jsx)(d.a,{text:a?a.text:"",children:Object(p.jsx)(s.a,{content:a?a.text:"",keyword:e,style:{cursor:"text"}})})}renderRelativeFormItem(e){var{widget:t,ctxId:a}=this.props;return t.data.value?Object(p.jsx)(u.a,{title:t.data.name,ctxId:a,children:this.renderTableCell(e)}):null}})||r;t.a=m},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=(a(1234),a(41)),d=a(210),u=a(82),p=a(0),m=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,value:o,hasHistory:d}}=e,{configurableFormStore:u}=Object(c.d)(t),m=u?u.keyword:"";return a?this.renderTableCell(m):r?this.renderRelativeFormItem(m):Object(p.jsxs)(n.r,{className:"widget-viewer single-select-viewer",children:[Object(p.jsxs)(n.r,{className:"title",children:[Object(p.jsx)(n.p,{selectable:!0,children:i}),d&&Object(p.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),Object(p.jsx)(n.r,{className:"value",children:Object(p.jsx)(s.a,{content:o.map((e=>e.text)).join("/"),keyword:m,breakWord:!0})})]})}renderTableCell(e){var{widget:t}=this.props;return t.data.value?Object(p.jsx)(d.a,{text:t.data.value.map((e=>e.text)).join("; "),children:Object(p.jsx)(s.a,{content:t.data.value.map((e=>e.text)).join("; "),keyword:e,style:{cursor:"text"}})}):null}renderRelativeFormItem(e){var{widget:t,ctxId:a}=this.props;return t.data.value?Object(p.jsx)(u.a,{title:t.data.name,ctxId:a,children:this.renderTableCell(e)}):null}})||r;t.a=m},function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=a(41),d=(a(1235),a(82)),u=a(0),p=Object(o.a)(r=class extends i.Component{renderValue(){var{widget:e,ctxId:t}=this.props;if(!e.data.value)return null;var{data:{value:a}}=e,{configurableFormStore:r}=Object(c.d)(t),i=r?r.keyword:"";return Object(u.jsx)(s.a,{content:a,keyword:i,style:{cursor:"text"}})}render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,hasHistory:o}}=e;return a?this.renderTableCell():r?this.renderRelativeFormItem():Object(u.jsxs)(n.r,{className:"widget-viewer",children:[Object(u.jsxs)(n.r,{className:"title",children:[Object(u.jsx)(n.p,{className:"number-title",selectable:!0,children:i}),o&&Object(u.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),Object(u.jsx)(n.r,{className:"value",children:this.renderValue()})]})}renderTableCell(){var{widget:e}=this.props;return e.data.value?Object(u.jsx)(n.r,{className:"table-cell-viewer",children:this.renderValue()}):null}renderRelativeFormItem(){var{widget:e,ctxId:t}=this.props;return e.data.value?Object(u.jsx)(d.a,{title:e.data.name,ctxId:t,children:this.renderValue()}):null}})||r},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(164),l=a(68),d=a(93),u=a(14),p=a(118),m=a(41),h=(a(1236),a(82)),b=a(180),g=a(0),v=Object(o.a)(r=class extends i.Component{get showValue(){var e,{widget:t}=this.props;if(!t)return"";var{data:{value:a,isThousandSeparator:r,keepDecimalPlaces:i,unit:n}}=t,o=null===(e=b.a.currencyList.find((e=>e.value===n)))||void 0===e?void 0:e.text,s=Object(p.a)(a,{isThousandSeparator:r,keepDecimalPlaces:i});return o?"".concat(s," ").concat(o):s}render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{value:i,hasHistory:o,isCapital:l,keepDecimalPlaces:p,name:h}}=e,{configurableFormStore:b}=Object(u.d)(t),v=b?b.keyword:"";return a?this.renderTableCell(v):r?this.renderRelativeFormItem(v):Object(g.jsxs)(n.r,{className:"widget-viewer",children:[Object(g.jsxs)(n.r,{className:"title",children:[Object(g.jsx)(n.p,{selectable:!0,children:h}),o&&Object(g.jsx)(m.a,{ctxId:t,widget:e},e.id)]}),Object(g.jsx)(n.r,{className:"value",children:Object(g.jsx)(s.a,{content:this.showValue,keyword:v})}),Object(d.c)()&&l&&Boolean(i)&&Object(g.jsx)(c.a,{keepDecimalPlaces:p,value:i,highlight:!0})]})}renderTableCell(e){var{widget:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,isCapital:i,keepDecimalPlaces:n}}=t;return Object(g.jsx)(l.a,{noBorder:!0,disabled:!0,align:"right",placeholder:a,extra:Object(d.c)()&&i&&Boolean(r)&&!isNaN(Number(r))&&Object(g.jsx)(c.a,{size:"small",value:r,keepDecimalPlaces:n,highlight:!0}),children:Object(g.jsx)(s.a,{content:this.showValue,keyword:e,style:{cursor:"text"}})})}renderRelativeFormItem(e){var{widget:t,ctxId:a,isInDetailField:r}=this.props;if(!t)return null;var{data:{value:i,isCapital:n,keepDecimalPlaces:o,name:l}}=t;return Object(g.jsxs)(h.a,{title:l,ctxId:a,children:[Object(g.jsx)(s.a,{content:this.showValue,keyword:e}),Object(d.c)()&&!r&&n&&Boolean(i)&&Object(g.jsx)(c.a,{keepDecimalPlaces:o,value:i,highlight:!0})]})}})||r;t.a=v},function(e,t,a){"use strict";a.d(t,"a",(function(){return g}));var r,i=a(3),n=a(1),o=a(15),s=a(14),c=a(42),l=a(164),d=a(68),u=a(93),p=a(118),m=a(41),h=(a(1237),a(82)),b=a(0),g=Object(o.a)(r=class extends i.Component{get showValue(){var{widget:e}=this.props;if(!e)return"";var{data:{value:t,isThousandSeparator:a,keepDecimalPlaces:r}}=e;return Object(p.a)(t,{isThousandSeparator:a,keepDecimalPlaces:r})}render(){var{widget:e,ctxId:t,isInDetailField:a,inTable:r,inRelativeForm:i}=this.props;if(!e)return null;var{data:{name:o,value:d,hasHistory:p,isCapital:h,keepDecimalPlaces:g}}=e,{configurableFormStore:v}=Object(s.d)(t),j=v?v.keyword:"";return r?this.renderTableCell(j):i?this.renderRelativeFormItem(j):Object(b.jsxs)(n.r,{className:"widget-viewer",children:[Object(b.jsxs)(n.r,{className:"title",children:[Object(b.jsx)(n.p,{selectable:!0,children:o}),p&&Object(b.jsx)(m.a,{ctxId:t,widget:e},e.id)]}),Object(b.jsxs)(n.r,{className:"value",children:[Object(b.jsx)(c.a,{content:this.showValue,keyword:j}),Object(u.c)()&&!a&&h&&Boolean(d)&&Object(b.jsx)(l.a,{keepDecimalPlaces:g,value:d,highlight:!0})]})]})}renderTableCell(e){var{widget:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,isCapital:i,keepDecimalPlaces:n}}=t;return Object(b.jsx)(d.a,{noBorder:!0,disabled:!0,align:"right",placeholder:a,extra:Object(u.c)()&&i&&Boolean(r)&&!isNaN(Number(r))&&Object(b.jsx)(l.a,{highlight:!0,size:"small",value:r,keepDecimalPlaces:n}),children:Object(b.jsx)(c.a,{content:this.showValue,keyword:e,style:{cursor:"text"}})})}renderRelativeFormItem(e){var{widget:t,isInDetailField:a,ctxId:r}=this.props;if(!t)return null;var{data:{value:i,name:n,isCapital:o,keepDecimalPlaces:s}}=t;return Object(b.jsxs)(h.a,{title:n,ctxId:r,children:[Object(b.jsx)(c.a,{content:this.showValue,keyword:e}),Object(u.c)()&&!a&&o&&Boolean(i)&&Object(b.jsx)(l.a,{keepDecimalPlaces:s,value:i,highlight:!0})]})}})||r},function(e,t,a){"use strict";var r,i,n,o=a(11),s=a(6),c=a(7),l=(a(56),a(3)),d=a(1),u=a(15),p=a(4),m=a(707),h=a(41),b=a(639),g=(a(1239),a(193)),v=a(82),j=a(14),O=a(0),f=Object(u.a)((i=class extends l.Component{constructor(e){super(e),Object(s.a)(this,"state",{fileCollapse:!0}),Object(s.a)(this,"enableDrive",!1),Object(o.a)(this,"onPercentChange",n,this);var{ctxId:t}=e;if(t){var{userStore:{enableDrive:a}}=Object(j.d)(t);a&&(this.enableDrive=a)}}render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,hasHistory:n}}=e;return a?this.renderInTable(e):r?this.renderRelativeFormItem(e):Object(O.jsxs)(d.r,{className:"widget-viewer attachment-viewer",children:[Object(O.jsxs)(d.r,{className:"title",children:[Object(O.jsx)(d.p,{selectable:!0,children:i}),n&&Object(O.jsx)(h.a,{ctxId:t,widget:e},e.id)]}),this.renderAttachmentV2List()]})}renderAttachmentV2List(){var{widget:{data:{uploadAttachmentV2List:e}},ctxId:t}=this.props,{configurableFormStore:a}=Object(j.d)(t);return Object(O.jsx)(d.r,{className:"attachment-list",children:e.map(((e,t)=>{var r;return Object(O.jsx)(b.a,{att:e,idx:t,onPercentChange:e=>this.onPercentChange(e,t),enableDrive:this.enableDrive,mountNodePoint:null===(r=a.instanceInfo)||void 0===r?void 0:r.instanceId},t)}))})}renderInTable(e){var t,{ctxId:a}=this.props,{uploadAttachmentV2List:r}=e.data,{fileCollapse:i}=this.state,{configurableFormStore:n}=Object(j.d)(a);return Object(O.jsx)(d.r,{className:"attachment-v2-table-cell",children:Object(O.jsx)(g.a,{showCollapseButton:r.length>5,collapsed:i,isCustomControl:!0,onChange:e=>this.setState({fileCollapse:e}),children:Object(O.jsx)(m.a,{customUploadButton:()=>null,clickPreview:!0,value:r.slice(0,i&&r.length>5?3:void 0),disabled:!0,maxPreviewCount:r.length,renderCustomMore:()=>null,enableDrive:this.enableDrive,mountNodePoint:null===(t=n.instanceInfo)||void 0===t?void 0:t.instanceId})})})}renderRelativeFormItem(e){var{ctxId:t}=this.props,{name:a}=e.data;return Object(O.jsx)(v.a,{title:a,ctxId:t,children:this.renderInTable(e)})}},n=Object(c.a)(i.prototype,"onPercentChange",[p.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{var{widget:{data:{uploadAttachmentV2List:a}}}=this.props;a[t].percent=e}}}),r=i))||r;t.a=f},function(e,t,a){"use strict";a(3);var r=a(1),i=a(8),n=a.n(i),o=a(153),s=a(121),c=a(2),l=a(338),d=a.n(l),u=a(0);t.a=e=>{var{visible:t,title:a,content:i,okText:l=Object(c.t)("ModalConfirmText"),iconStyle:p,icon:m="icon-icon-device-disabled",onOk:h,onCancel:b}=e;return Object(u.jsx)(o.a,{visible:t,children:Object(u.jsxs)(r.r,{className:d.a.confirm,children:[Object(u.jsxs)(r.r,{className:d.a.header,children:[Object(u.jsxs)(r.r,{className:d.a.title,children:[Object(u.jsx)(r.r,{className:n()("iconfont ".concat(m),d.a.icon),style:p}),Object(u.jsx)(r.r,{className:d.a.titleContent,children:a})]}),Object(u.jsx)(r.r,{className:d.a.body,children:i})]}),Object(u.jsx)(r.r,{className:d.a.footer,children:Object(u.jsxs)(r.r,{className:d.a.footerButtons,children:[Object(u.jsx)(s.a,{style:{padding:"0 12px",minWidth:"80px"},type:"primary",onClick:h,children:l}),b&&Object(u.jsx)(s.a,{style:{minWidth:"80px"},type:"default",onClick:b,children:Object(c.t)("popup.Off")})]})})]})})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var r=a(37),i=a(2),n=["renderRestText","filterEmpty"];function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=0,o=["IDENTITY",Math.random().toString().substr(2,16),a++,""].join("__"),s=e=>"".concat(o).concat(e),c=e=>e.replace(o,""),l=["","SPLITTER",Math.random().toString().substr(2,16),a++,""].join("__"),d=e=>"".concat(l).concat(s(e)).concat(l),{renderRestText:u,filterEmpty:p=!0}=t,m=Object(r.a)(t,n),h=Object.keys(m).reduce(((e,t)=>(e[t]=d(t),e)),{}),b=Object(i.t)(e,h),g="function"==typeof u?e=>{var t;return null!==(t=m[c(e)])&&void 0!==t?t:u(e)}:e=>{var t;return null!==(t=m[c(e)])&&void 0!==t?t:e},v=b.split(l),j=p?v.filter(Boolean):v;return j.map(g)}},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTYwOTQ5ODAz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NyA2MC4zMzA2NjYtNjAuMzMwNjY2TDUxMiA0NTEuNjY5MzMzeiIgcC1pZD0iMjY1OSIgZmlsbD0iIzhGOTU5RSI+PC9wYXRoPjwvc3ZnPg=="},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=a(41),d=(a(1258),a(220)),u=a(210),p=a(82),m=a(193),h=a(0),b=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e||!e.data.displayCondStatus)return null;var{data:{name:o,country:b,province:g,city:v,area:j,detail:O,hasHistory:f}}=e,{configurableFormStore:M}=Object(c.d)(t),_=M?M.keyword:"",y=[e.data.isV2?Object(d.c)(Object(d.b)(e.data.value)):[b,g,v,j].filter((e=>Boolean(e))).map((e=>e.name)).join("/"),...O?O.split("\n"):[]],D=()=>Object(h.jsx)(i.Fragment,{children:y.map(((e,t)=>Object(h.jsx)(n.r,{className:a?"in-table":"value",children:Object(h.jsx)(s.a,{content:e,keyword:_,style:{cursor:"text"}})},"".concat(e,"-").concat(t))))});return a?Object(h.jsx)(u.a,{text:y.join("/"),children:D()}):r?Object(h.jsx)(p.a,{title:o,ctxId:t,children:Object(h.jsx)(m.a,{thresholdLineClamp:5,children:Object(h.jsx)(s.a,{content:y.join("/"),keyword:_,style:{cursor:"text"}})})}):Object(h.jsxs)(n.r,{className:"widget-viewer address-viewer",children:[Object(h.jsxs)(n.r,{className:"title",children:[Object(h.jsx)(n.p,{selectable:!0,children:o}),f&&Object(h.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),D()]})}})||r;t.a=b},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(36),l=a(14),d=a(33),u=a(41),p=a(210),m=(a(1264),a(82)),h=a(0),b=Object(o.a)(r=class extends i.Component{renderValue(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{value:a}}=e,{configurableFormStore:r}=Object(l.d)(t),i=r?r.keyword:"",o=Object(d.t)(a,d.w);return Array.from(o).map(((e,t)=>{var[a,r=""]=e;return Object(h.jsxs)(n.a,{children:[a&&Object(h.jsx)(s.a,{content:a,keyword:i,style:{cursor:"text"},breakWord:!0}),r&&Object(h.jsx)(n.r,{className:"text-btn inline",onClick:()=>Object(c.l)(r),children:Object(h.jsx)(s.a,{content:r,keyword:i})})]},"".concat(t))}))}render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,hasHistory:o}}=e;return a?this.renderTableCell():r?this.renderRelativeFormItem():Object(h.jsxs)(n.r,{className:"widget-viewer textarea-viewer",children:[Object(h.jsxs)(n.r,{className:"title",children:[Object(h.jsx)(n.p,{selectable:!0,children:i}),o&&Object(h.jsx)(u.a,{ctxId:t,widget:e},e.id)]}),Object(h.jsx)(n.r,{className:"value",children:this.renderValue()})]})}renderTableCell(){var{widget:e}=this.props;return e.data.value?Object(h.jsx)(p.a,{text:e.data.value,children:this.renderValue()}):null}renderRelativeFormItem(){var{widget:e,ctxId:t}=this.props;return e.data.value?Object(h.jsx)(m.a,{title:e.data.name,ctxId:t,children:this.renderTableCell()}):null}})||r;t.a=b},function(e,t,a){"use strict";a.d(t,"a",(function(){return A}));var r,i=a(5),n=a(6),o=a(3),s=a(1),c=a(15),l=a(16),d=a(288),u=a(298),p=a.n(u),m=a(14),h=a(42),b=a(2),g=a(41),v=a(210),j=a(82),O=a(730),f=a(907),M=a.n(f),_=a(908),y=a.n(_),D=(a(1267),a(535)),N=a(0),A=Object(c.a)(r=class extends o.Component{constructor(){super(...arguments),Object(n.a)(this,"state",{permissionURLMap:{}}),Object(n.a)(this,"formatPath",(e=>{var{widget:{data:{displayPath:t}}}=this.props,a=e.name;return t&&(a="".concat(e.path.join("/"))),a}))}componentDidMount(){var{widget:e}=this.props,{data:{value:t}}=e;l.c.getDepartmentPermission({departmentIds:t.map((e=>e.id))}).then((e=>{var t,a;this.setState({permissionURLMap:null!==(t=null===(a=e.data)||void 0===a?void 0:a.permissionURLMap)&&void 0!==t?t:{}})}))}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{value:a,isMuti:r,displayPath:i}}=e,{configurableFormStore:n}=Object(m.d)(t),o=n?n.keyword:"",s=()=>null!=a&&a.length?r?a.map((e=>i?e.path.join("/"):e.name)).join(Object(b.t)("Semicolon")):i?a[0].path.join("/"):a[0].name:"";return Object(N.jsx)(v.a,{text:s(),children:Object(N.jsx)(h.a,{content:s(),keyword:o,style:{cursor:"text"}})})}renderRelativeFormItem(){var{widget:e,ctxId:t}=this.props,{permissionURLMap:a}=this.state,{data:{value:r,name:n,displayPath:o,isMuti:s}}=e,c=r.map((e=>{var t,r=a[e.id];return Object(i.a)(Object(i.a)({},r),{},{id:e.id,avatarUrl:null!=r&&r.hasPermission?M.a:y.a,text:o?null===(t=e.path)||void 0===t?void 0:t.join("/"):e.name,tooltip:null!=r&&r.hasPermission?"":Object(b.t)("approval-mp_NoAccessToDetails_Desc")})}));s||(c=c.slice(0,1));return Object(N.jsx)(j.a,{title:n,ctxId:t,children:Object(N.jsx)(O.a.Group,{itemList:c,renderMoreContentTagStyle:{width:"100%",backgroundColor:"#fff",borderRadius:4,padding:"4px 5px"},onClick:e=>{var t;e.hasPermission&&Object(D.b)({url:null!==(t=e.pcURL)&&void 0!==t?t:"",webviewId:""})}})})}render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props,{configurableFormStore:n}=Object(m.d)(t),o=n?n.keyword:"";if(!e)return null;if(a)return this.renderTableCell();if(r)return Object(N.jsx)(j.a,{title:e.data.name,ctxId:t,children:this.renderTableCell()});var{data:{name:c,value:l,hasHistory:u}}=e;return Object(N.jsxs)(s.r,{className:"widget-viewer department-viewer",children:[Object(N.jsxs)(s.r,{className:"title",children:[Object(N.jsx)(s.p,{selectable:!0,children:c}),u&&Object(N.jsx)(g.a,{ctxId:t,widget:e},e.id)]}),Object(N.jsx)(d.a.Group,{showProfile:!1,keyword:o,displayMode:"department",itemList:l.map((e=>Object(i.a)(Object(i.a)({},e),{},{name:this.formatPath(e),avatarUrl:p.a})))})]})}})||r},function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var r=a(1),i=(a(3),a(8)),n=a.n(i),o=a(2),s=a(784),c=a.n(s),l=a(0),d=e=>Object(l.jsx)(r.r,{className:n()(c.a["button-base"],{[c.a["button-submit"]]:!e.disabled}),onClick:()=>{e.disabled||e.onClick()},children:e.content||Object(o.t)("BoltModal_CandidateSelector_SubmitText")})},function(e,t,a){"use strict";a(3);var r=a(15),i=a(1),n=a(42),o=a(14),s=a(28),c=a(41),l=a(82),d=a(0);t.a=Object(r.a)((e=>{var{widget:t,ctxId:a,inTable:r,inRelativeForm:u}=e;if(!t)return null;var{data:{name:p,value:m,hasHistory:h}}=t,{approvalListStore:b}=Object(o.d)(a),g=b?b.highlightKeywords:"",v=s.u||"+86"!==m.countryCode?"".concat(m.countryCode," ").concat(m.nationalNumber):m.nationalNumber;return r?Object(d.jsx)(i.r,{className:"table-cell-viewer",children:Object(d.jsx)(n.a,{content:v,keyword:g})}):u?Object(d.jsx)(l.a,{title:p,ctxId:a,children:Object(d.jsx)(n.a,{content:v,keyword:g,style:{cursor:"text"}})}):Object(d.jsxs)(i.r,{className:"widget-viewer single-select-viewer",children:[Object(d.jsxs)(i.r,{className:"title",children:[Object(d.jsx)(i.p,{selectable:!0,children:p}),h&&Object(d.jsx)(c.a,{ctxId:a,widget:t},t.id)]}),Object(d.jsx)(i.r,{className:"value",children:Object(d.jsx)(n.a,{content:v,keyword:g})})]})}))},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIyNiIgdmlld0JveD0iMCAwIDI2IDI2Ij4KICAgIDxwYXRoIGZpbGw9IiNEOEQ4RDgiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTE0LjUgMTEuNUgyNGExLjUg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MzYuNTcxNDI5IDAtMzYuNTcxNDI5LTM2LjU3MTQyOWwwLTEyLjE3ODI4NnEwLTM2LjU3MTQyOSAzNi41NzE0MjktMzYuNTcxNDI4WiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMTY1MyI+PC9wYXRoPjwvc3ZnPg=="},function(e,t,a){"use strict";var r=a(3),i=a.n(r),n=a(1),o=a(8),s=a.n(o),c=a(937),l=a.n(c),d=a(453),u=a.n(d),p=(a(1327),a(0)),m=e=>({info:l(),warning:u()}[e]);t.a=i.a.memo((e=>{var{type:t="warning",message:a,description:r,style:i,className:o=""}=e,c=m(t),l=s()("approval-notice","approval-notice--".concat(t),o);return Object(p.jsxs)(n.r,{className:l,style:i,children:[Object(p.jsx)(n.g,{className:"approval-notice__icon",src:c}),Object(p.jsxs)(n.r,{className:"approval-notice__main",children:[Object(p.jsx)(n.r,{className:"approval-notice__title",children:a}),Object(p.jsx)(n.r,{className:"approval-notice__description",children:r})]})]})}))},function(e,t,a){"use strict";a(3);var r=a(1),i=a(152),n=a.n(i),o=(a(1338),a(0));t.a=e=>{var{src:t=n.a,txt:a}=e;return Object(o.jsxs)(r.r,{className:"empty-wraper",children:[Object(o.jsx)(r.g,{src:t,className:"img"}),a&&Object(o.jsx)(r.r,{className:"txt",children:a})]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var r=(e,t)=>{var a=e.replace(t,"");return Number(a)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return j}));var r,i,n,o,s,c,l,d,u,p,m=a(2);!function(e){e.SUBMIT="submit",e.SUBMITTED="submitted",e.APPROVED="approved",e.CC="cc"}(r||(r={})),Object(m.t)("PCListTabSubmit"),r.SUBMIT,Object(m.t)("PCListTabApproved"),r.APPROVED,Object(m.t)("PCListTabCc"),r.CC,Object(m.t)("PCListTabSubmitted"),r.SUBMITTED,Object(m.t)("SortType_Desc"),Object(m.t)("SortType_Desc"),function(e){e.INSTANCE="instance",e.TASK="task",e.CC="cc"}(i||(i={})),function(e){e.SUBMITTED="default",e.PENDING="pending",e.APPROVED="reviewed",e.CC="default"}(n||(n={})),function(e){e[e.APPROVED=0]="APPROVED",e[e.REJECTED=1]="REJECTED",e[e.IN_PROCESS=2]="IN_PROCESS",e[e.WITHDRAW=3]="WITHDRAW",e[e.DELETED=4]="DELETED",e[e.UNUSE=100]="UNUSE",e[e.CRC_COMPLETED=101]="CRC_COMPLETED",e[e.CRC_NULL=102]="CRC_NULL"}(o||(o={})),function(e){e[e.InstanceAgreed=0]="InstanceAgreed",e[e.InstanceRejected=1]="InstanceRejected",e[e.InstancePending=2]="InstancePending",e[e.InstanceRecalled=3]="InstanceRecalled",e[e.InstanceDeleted=4]="InstanceDeleted",e[e.InstanceAllStatus=100]="InstanceAllStatus",e[e.InstanceCompleted=101]="InstanceCompleted"}(s||(s={})),function(e){e[e.IN_PROCESS=0]="IN_PROCESS",e[e.APPROVED=1]="APPROVED",e[e.REJECTED=2]="REJECTED",e[e.REDIRECTED=3]="REDIRECTED",e[e.NONE=4]="NONE",e[e.AUTO_AGREED=6]="AUTO_AGREED",e[e.UNUSE=100]="UNUSE",e[e.CRC_PROCESSED=101]="CRC_PROCESSED"}(c||(c={})),function(e){e[e.UNREAD=0]="UNREAD",e[e.READ=1]="READ",e[e.UNUSE=100]="UNUSE"}(l||(l={})),function(e){e.SUBMITTED="submitted",e.PENDING="pending",e.APPROVED="reviewed",e.CC="cc"}(d||(d={})),function(e){e.LARK="lark",e.OA="oa"}(u||(u={})),function(e){e.UP_TO_DATE="UP_TO_DATE",e.EARLIEST="EARLIEST"}(p||(p={})),p.UP_TO_DATE,p.EARLIEST;var h={[p.UP_TO_DATE]:Object(m.t)("SortType_Desc"),[p.EARLIEST]:Object(m.t)("SortType_Asc")},b=(Object.values(h),Object(m.t)("ReviewedList_SortType_Desc"),Object(m.t)("ReviewedList_SortType_Asc"),{[o.UNUSE]:[s[o.UNUSE]],[o.APPROVED]:[s[o.APPROVED]],[o.REJECTED]:[s[o.REJECTED]],[o.IN_PROCESS]:[s[o.IN_PROCESS]],[o.WITHDRAW]:[s[o.WITHDRAW]],[o.DELETED]:[s[o.DELETED]]});function g(e){var t=e.pop();return e.unshift(t),e}o.UNUSE,o.APPROVED,o.REJECTED,o.IN_PROCESS,o.WITHDRAW,o.DELETED,o.CRC_COMPLETED,o.CRC_NULL,g(Object.values(b).map((e=>Object(m.t)(e)))),l.UNUSE,l.UNREAD;var v={[l.UNUSE]:Object(m.t)("PC.Cclist_ShowAll"),[l.UNREAD]:Object(m.t)("Cclist.ShowUnread")},j=(g(Object.values(v)),1124)},function(e,t,a){"use strict";var r=a(3),i=a(15),n=a(69),o=a(100),s=a(17),c=a(12),l=a(245),d=a(0),u=Object(i.a)((e=>{var t,a=Object(r.useRef)(o.a.use()),i=Object(r.useCallback)((e=>{var t;a.current&&(a.current.history=e),null===(t=a.current)||void 0===t||t.consume()}),[]),{title:u=null,visible:p=!1,cursor:m=0}=null!==(t=a.current)&&void 0!==t?t:{},h=Object(r.useMemo)((()=>{var e,t,r;return Boolean(m>(null!==(e=null===(t=a.current)||void 0===t||null===(r=t.history)||void 0===r?void 0:r.bottom)&&void 0!==e?e:0))}),[m,a]),b=()=>{var e,t;null===(e=a.current)||void 0===e||null===(t=e.close)||void 0===t||t.call(e)},g=Object(r.useRef)(-1);return Object(r.useEffect)((()=>{!p&&~g.current&&Object(c.b)(s.f.ApprovalConnectDrawer,{value:Date.now()-g.current}),g.current=Date.now()}),[p]),Object(d.jsxs)(n.c,{visible:p,onClose:b,children:[Object(d.jsx)(n.c.Header,{close:!0,back:h,onBack:()=>{var e,t;null===(e=a.current)||void 0===e||null===(t=e.history)||void 0===t||t.backward()},onClose:b,children:u}),Object(d.jsx)(n.c.History,{ref:i,onChange:e=>{var t,r;null===(t=a.current)||void 0===t||t.setCursor(null!==(r=null==e?void 0:e.current)&&void 0!==r?r:0)}}),Object(d.jsx)(l.a,{unid:"drawer-title-tooltip"})]})}));t.a=u},function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var r=a(106);function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var o={properties:{selected:{type:Boolean,value:!1},highlight:{type:Boolean,value:!1},config:{type:Object,value:{}},disabled:{type:Boolean,value:!1}},data:function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},r.b),methods:{onTap(){this.triggerEvent("TapOption",this.properties.config)},determineThemeClass:r.a},attached(){this.determineThemeClass()}}},,,function(e,t,a){"use strict";a.d(t,"a",(function(){return U}));var r,i=a(5),n=a(6),o=a(3),s=a.n(o),c=a(15),l=a(1),d=a(31),u=a.n(d),p=a(8),m=a.n(p),h=a(2),b=a(144),g=a(700),v=a(66),j=a(452),O=a(124),f=(a(1255),a(0)),M=s.a.memo((e=>{var{style:t,onClick:a=O.a,normalWrapStyle:r,hoverWrapStyle:i,renderHover:n,renderNormal:o}=e;return Object(f.jsxs)(l.r,{className:"approval-hover-switcher",style:t,onClick:a,children:[Object(f.jsx)(l.r,{className:"normal-wrap",style:r,children:o}),Object(f.jsx)(l.r,{className:"hover-wrap",style:i,children:n})]})})),_=a(906),y=a.n(_),D=new(a(78).c)('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1561205052821" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3819" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 424.228571l292.571429-292.571428c29.257143-29.257143 87.771429-29.257143 117.028571 0 29.257143 29.257143 29.257143 87.771429 0 117.028571l-292.571429 292.571429 292.571429 292.571428c29.257143 29.257143 29.257143 87.771429 0 117.028572-29.257143 29.257143-87.771429 29.257143-117.028571 0l-292.571429-292.571429-292.571429 292.571429c-29.257143 29.257143-87.771429 29.257143-117.028571 0-29.257143-29.257143-29.257143-87.771429 0-117.028572l292.571429-292.571428-292.571429-292.571429C73.142857 219.428571 73.142857 160.914286 102.4 131.657143 131.657143 102.4 190.171429 102.4 219.428571 131.657143l292.571429 292.571428z" p-id="3820" fill="#8a8a8a"></path></svg>',"#8a8a8a"),N=a(168),A=a(14),T=(a(1256),a(41)),I=a(197),C=a(663),x=a(193),S=a(82),w=a(737),L=a.n(w),E=a(33),k=a(19),z=a.n(k),R=a(183),P=a(430),U=Object(c.a)(r=class extends o.Component{constructor(){super(...arguments),Object(n.a)(this,"customCtx",void 0),Object(n.a)(this,"innerCtxId",void 0),Object(n.a)(this,"RelativeFormIds",void 0),Object(n.a)(this,"mode",void 0),Object(n.a)(this,"state",{detailId:"",visible:!1,instance:void 0,listCollapse:!0,columns:1}),Object(n.a)(this,"handleWrapperSizeChange",Object(E.c)((()=>{"advanced"!==this.mode&&z.a.createSelectorQuery().select("#value-wrapper").boundingClientRect().exec((e=>{var[t]=e;t&&this.setState({columns:t.width>536?2:1})}))}),200)),Object(n.a)(this,"handleRelativeApprovalClick",(e=>{var t,{ctxId:a}=this.props,r=null!==(t=Object(A.d)(a))&&void 0!==t?t:{},{configurableFormStore:{instanceInfo:n={},parentId:o=""}={}}=r,{instanceId:s,shareCode:c}=n||{};Object(I.c)(Object(i.a)(Object(i.a)({},e),{},{parentId:o||s,shareCode:c,listCard:N.b.currentSelected.activeDetail}))})),Object(n.a)(this,"handleRelativeDrawerClose",(()=>{this.setState({visible:!1})}))}UNSAFE_componentWillMount(){var{ctxId:e,widget:t}=this.props,a=Object(A.d)(e),{userStore:r}=a;this.customCtx={configurableFormStore:new b.c({userStore:r}),isInRelative:!0};var{configurableFormStore:i}=a,{instanceId:n}=i.instanceInfo||{},o=n,{configurableFormStore:s}=this.customCtx;s.setParentId(o),this.innerCtxId=Object(A.c)(a,this.customCtx,this),t.data.relativeFormIds&&(this.RelativeFormIds=t.data.relativeFormIds),this.mode=Object(P.b)(t.data.instances,t.data.relativeFormIds,e)}componentDidMount(){this.handleWrapperSizeChange(),z.a.onWindowResize(this.handleWrapperSizeChange),z.a.eventCenter.on("onDetailSizeChange",this.handleWrapperSizeChange)}componentWillUnmount(){Object(A.b)(this),z.a.offWindowResize(this.handleWrapperSizeChange),z.a.eventCenter.off("onDetailSizeChange",this.handleWrapperSizeChange)}renderApprovals(e){var t,{ctxId:a,widget:r,isInDetailPage:i}=this.props,{columns:n,listCollapse:o}=this.state,{configurableFormStore:s}=Object(A.d)(a),c=null!==(t=null==s?void 0:s.keyword)&&void 0!==t?t:"",{data:{name:d,hasHistory:u=!1,instances:p}}=r;return Object(f.jsxs)(l.r,{className:"relative-approval-group",children:[Object(f.jsxs)(l.r,{className:"title",children:[Object(f.jsx)(l.p,{selectable:!0,className:"title-text",children:d}),u&&Object(f.jsx)(T.a,{ctxId:a,widget:r},r.id)]}),Object(f.jsx)(l.r,{id:"value-wrapper",className:m()("value","value-wrapper-columns-".concat(n)),children:e.map((e=>{var t,r;return Object(f.jsx)(I.b,{ctxId:a,instance:e,keywords:c,onClick:()=>{this.handleRelativeApprovalClick(e)},ctxId:a,relativeFormIds:null===(t=this.RelativeFormIds)||void 0===t?void 0:t[null!==(r=e.definitionID)&&void 0!==r?r:""],isInDetailPage:i},e.instanceId)}))}),(null==p?void 0:p.length)>5*n&&Object(f.jsxs)(l.r,{className:L.a.expand,onClick:()=>this.setState({listCollapse:!o}),children:[o?Object(h.t)("TextCollapse_unfold"):Object(h.t)("TextCollapse_fold"),Object(f.jsx)(R.a,{name:"down_outlined",className:m()(L.a.icon,!o&&L.a.expand_rotate)})]})]})}renderRelativeDetail(){var{ctxId:e}=this.props,t=Object(A.d)(e),{isInChat:a}=t,{configurableFormStore:{instanceLoading:r,parentId:i}}=this.customCtx,{detailId:n,visible:o,instance:s}=this.state;return Object(f.jsx)(l.r,{className:m()("relative-approval-detail",{visible:o,"chat-group":a}),children:s&&o&&Object(f.jsxs)(l.r,{children:[Object(f.jsxs)(l.r,{className:"title-wrapper",children:[Object(f.jsx)(M,{onClick:this.handleRelativeDrawerClose,renderNormal:Object(f.jsx)(l.g,{className:"icon-delete",src:D.toDataUrl("rgba(0,0,0,.45)")}),renderHover:Object(f.jsx)(l.g,{className:"icon-delete",src:D.toDataUrl("#4575f6")})}),Object(f.jsxs)(l.r,{className:"title",children:[Object(f.jsx)(l.g,{src:y.a,className:"icon"}),Object(f.jsx)(l.p,{selectable:!0,className:"title-text",children:Object(h.t)("PC.RelativeApproverTitle")})]}),Object(f.jsx)(l.r,{className:"approval-title",children:Object(f.jsx)(l.p,{selectable:!0,children:Object(h.t)("PC.RelativeApproverDesc",{title:s.instanceName,time:u()(s.createTime).format("YYYY-MM-DD")})})})]}),Object(f.jsxs)(l.r,{className:"relative-approval-detail-wrapper",children:[Object(f.jsx)(g.a,{ctxId:this.innerCtxId,parentId:i,aid:n,shouldShowSerialID:!0}),Object(f.jsx)(v.a,{hidden:!r,children:Object(f.jsx)(l.r,{className:"loading-wrap",children:Object(f.jsx)(j.a,{})})})]})]})})}renderInTable(){var e,{widget:t,ctxId:a}=this.props;if(!a)return null;var{configurableFormStore:r}=Object(A.d)(a),i=null!==(e=null==r?void 0:r.keyword)&&void 0!==e?e:"",{data:{instances:n}}=t,{listCollapse:o}=this.state;return Object(f.jsx)(l.r,{className:"relative-approval-table-cell",children:Object(f.jsx)(x.a,{showCollapseButton:n.length>5,collapsed:o,isCustomControl:!0,onChange:e=>this.setState({listCollapse:e}),children:Object(f.jsx)(C.a,{disabled:!0,showSelectButton:!1,onItemClick:this.handleRelativeApprovalClick,value:n.slice(0,o&&n.length>5?3:void 0),keywords:i,isViewer:!0,maxCount:n.length})})})}renderRelativeFormItem(){var{widget:e,ctxId:t}=this.props;return e?Object(f.jsx)(S.a,{title:e.data.name,ctxId:t,children:this.renderInTable()}):null}render(){var e,{widget:t,inTable:a,inRelativeForm:r}=this.props;if(!t)return null;if(a)return this.renderInTable();if(r)return this.renderRelativeFormItem();var i=null!==(e=t.data.value.instances)&&void 0!==e?e:[],{visible:n,listCollapse:o,columns:s}=this.state,c=o&&i.length>5*s?i.slice(0,3*s):i;return Object(f.jsxs)(l.r,{className:"widget-viewer",children:[this.renderApprovals(c),this.renderRelativeDetail(),n&&Object(f.jsx)(l.r,{className:"mask-relative"})]})}})||r},function(e,t,a){"use strict";a.d(t,"b",(function(){return g})),a.d(t,"a",(function(){return v}));var r=a(5),i=a(37),n=a(3),o=a(1),s=a(8),c=a.n(s),l=a(69),d=a(117),u=a(12);function p(e){var t=Object(n.useRef)([]),a=Object(n.useRef)(new Map),r=Object(n.useRef)(new Map),{id:i,children:o}=e,s=Object(n.useMemo)((()=>o?-1:0),[o]),[c,l]=Object(n.useState)(s),p=Object(n.useCallback)(((e,i,n)=>{if(!a.current.has(e)){var o=r.current.get(t[c]),s=Object(d.b)(n)?n(o):n,u=Object(d.b)(i)?i(s,o):null!=i?i:null;a.current.set(e,u),r.current.set(e,s)}var p=t.current.length-1;~p&&c!==p&&t.current.splice(c+1,p-c),l(t.current.push(e)-1)}),[c,r,t,a]);var m=Object(n.useCallback)((e=>{var r=t.current.length-1,i=c+(null!=e?e:1);return i>r&&(i=r),i<s&&(i=s),l(i),Object(u.b)("approval_history_go",{current:c,index:i,routes:t,route:t.current[i],hasView:a.current.has(t.current[i])}),i}),[c,t,s]),h=()=>m(-1),[b,g]=Object(n.useState)("");return Object(n.useEffect)((()=>{g(t.current[c])}),[c]),{id:i,current:c,bottom:s,route:b,views:a,routes:t,open:p,close:function(e){var i=null!=e?e:t.current[c];i&&(e||h(),a.current.has(i)&&a.current.delete(i),r.current.has(i)&&r.current.delete(i))},go:m,forward:()=>m(1),backward:h}}var m=a(614),h=a(0),b=["onChange","className","children"],g=Object(l.h)("drawer-history"),v=Object(n.forwardRef)(((e,t)=>{var a=p(e);Object(n.useImperativeHandle)(t,(()=>a));var{onChange:s,className:l,children:d}=e,u=Object(i.a)(e,b),{current:v,route:j,views:O}=a;Object(n.useEffect)((()=>{null==s||s(a)}),[v]);var f=c()(g(),l);return Object(h.jsx)(o.r,Object(r.a)(Object(r.a)({className:f},u),{},{children:Array.from(O.current).map((e=>{var[t,a]=e;return Object(h.jsx)(m.a,{id:t,current:j,children:a},t)}))}))}));v.displayName="History"},function(e,t,a){"use strict";var r=a(5),i=a(6),n=a(3),o=a(1),s=a(19),c=a.n(s),l=a(20),d=(a(1223),a(41)),u=a(450),p=a(29),m=a(9),h=a(33),b=a(65),g=a(82),v=a(0),j=60,O=e=>{var{widget:t,ctxId:a}=e,[i,s]=Object(n.useState)(3);return Object(n.useEffect)((()=>{var e=Object(h.c)(Object(m.a)((function*(){var e=".widget-id-".concat(t.id.replace(/\W+/g,"")),a=yield Object(b.a)(e);if(a){var{width:r=j}=null!=a?a:{},i=Math.max(Math.floor((r+8)/(j+8)),1);s(i>3?3:i)}})),300);return e(),c.a.onWindowResize(e),()=>{c.a.offWindowResize(e)}}),[t]),Object(v.jsx)(g.a,{title:t.data.name,ctxId:a,children:Object(v.jsx)(o.r,{className:"widget-id-".concat(t.id.replace(/\W+/g,"")),children:Object(v.jsx)(u.a,{maxPreviewCount:i,customUploadButton:()=>null,defaultFileList:t.data.uploadImageList.map((e=>Object(r.a)(Object(r.a)({},e),{},{type:p.h.IMG}))),disabled:!0,restPopoverProps:{delay:300,overlayPosition:"fixed",position:"bottom"},imageSize:"medium"})})})},f=Object(l.c)("pc:src/components/configurable-form/components/widgets/image/viewer/index.tsx");class M extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"handleImageClick",(e=>{var{widget:{data:{uploadImageList:t}}}=this.props;f("fileBizPreview"),c.a.previewImage({urls:t.map((e=>e.previewUrl)),current:e.previewUrl})}))}renderImageList(){var{widget:{data:{uploadImageList:e}}}=this.props;return Object(v.jsx)(o.r,{className:"image-list",children:e.map((e=>Object(v.jsx)(o.g,{mode:"aspectFill",className:"item",src:e.thumbUrl,onClick:()=>this.handleImageClick(e)},e.id)))})}render(){var{widget:e,ctxId:t,inTable:a,inRelativeForm:r}=this.props;if(!e)return null;var{data:{name:i,hasHistory:n}}=e;return a?this.renderInTable(e):r?Object(v.jsx)(O,{widget:e,ctxId:t}):Object(v.jsxs)(o.r,{className:"widget-viewer image-viewer",children:[Object(v.jsxs)(o.r,{className:"title",children:[Object(v.jsx)(o.p,{selectable:!0,children:i}),n&&Object(v.jsx)(d.a,{ctxId:t,widget:e},e.id)]}),this.renderImageList()]})}renderInTable(e){return Object(v.jsx)(o.r,{className:"image-table-cell",children:Object(v.jsx)(u.a,{customUploadButton:()=>null,defaultFileList:e.data.uploadImageList.map((e=>Object(r.a)(Object(r.a)({},e),{},{type:p.h.IMG}))),disabled:!0,restPopoverProps:{delay:300,overlayPosition:"fixed",position:"bottom"},imageSize:"medium"})})}}t.a=M},,,,function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));var r,i,n="/api/print/custom/exist";(function(e){e[e.Exist=1]="Exist",e[e.NotExist=0]="NotExist"})(r||(r={})),function(e){e[e.TokenExist=0]="TokenExist",e[e.ApprovalExist=1]="ApprovalExist",e[e.TemplateExist=2]="TemplateExist"}(i||(i={}))},function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAICAgICAQICAgIDAgIDAwYEAwMDAwcFBQQGCAcJCAgHCAgJCg0LCQoMCggICw8LDA0ODg8OCQsQERAOEQ0ODg7/2wBDAQIDAwMDAwcEBAcOCQg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f4D0Vxde0NtaC5fUHCY6BO/N0LlDlus8G+i5Q5brPBvosfVfcWVOq/ncASoUKFO6BUKFCqJ2mZ+5VO7y0sn3dyG0cmCLeNiRwjb6f1beaytO0pXrm2pBZtEGejffTDj5ZR7IUKFC921e7ChQoVUJwK4XLM/cqnd5DS0vXZym3GvHAABuNz+n8LKWTcfeOoNdxARv/AKNMOPldHshQoUKFGrlR6VCydSpTDeAxM8yyjnPv3lxk7eQ0tPZrHvt2VeJwJaDsf7H+LNWtOzyDqLCSABzmTuNMMPlVHshRrCjVyobyuFZYbM7/APiyX75/d5aVrnD3jKTn3LmFrGtIDT0dyzl1Qvci+tRMtIH45h+dMKJxVHshQuFcKhcOrla/yULLjZnesn++f3eQ+HC/aqPZCbuFChQoXRo5Wn8u5QqlGnWbwvEhO9nMO9xc6lJP5d6rk1hep8Xeq5NYTqfF3quT+H6rxd6rk/h+q8XeqpU6dGmKdMQ0CAqf0qFChQvdhe6ajRaVb02smPi6ShpQ+g/D/9k="},function(e,t,a){e.exports=a.p+"assets/illustration/no_access.png"},function(e,t,a){"use strict";var r;a.d(t,"a",(function(){return r})),function(e){e[e.CHECKED=1]="CHECKED",e[e.UNCHECK=0]="UNCHECK"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));var r,i=a(2),n=999;!function(e){e[e.Timeout=10300]="Timeout",e[e.RequireInput=10125]="RequireInput",e[e.ThirdError=10200]="ThirdError"}(r||(r={}));var o={[r.Timeout]:Object(i.t)("BatchOperate.FailReasonTimeout"),[r.RequireInput]:Object(i.t)("BatchOperate.FailReasonRequireInput"),[r.ThirdError]:Object(i.t)("BatchOperate.FailReasonThirdError")}},function(e,t,a){"use strict";a.d(t,"b",(function(){return _})),a.d(t,"a",(function(){return y}));var r=a(9),i=a(3),n=a.n(i),o=a(1),s=a(42),c=a(40),l=a(154),d=a(8),u=a.n(d),p=a(476),m=a(99),h=a(148),b=a.n(h),g=a(2),v=a(65),j=a(19),O=a.n(j),f=a(24),M=a(0),_=n.a.memo((e=>{var{id:t,index:a,iconUrl:n,searchKey:d="",approvalName:h,description:j,resizeId:_,isRecentUse:y,isExternal:D,onClick:N,shouldBottomShowTip:A}=e,T=Object(i.useMemo)((()=>"".concat(y?"recent_flow-card__":"flow-card__").concat(t,"__")),[t,y]),[I,C]=Object(i.useState)(!1),[x,S]=Object(i.useState)(!1),[w,L]=Object(i.useState)(!1),E=Object(i.useRef)(null),[k,z]=Object(i.useState)(),R=Object(i.useCallback)(Object(r.a)((function*(){if(E.current){var e=yield E.current.isTextEllipsis({cache:!1});z(e)}})),[]),P=Object(i.useMemo)((()=>k?j?Object(M.jsxs)(o.r,{children:[Object(M.jsx)(o.r,{className:b.a["hover-title"],children:h}),Object(M.jsx)(o.r,{className:b.a["hover-content"],children:j})]}):Object(M.jsx)(o.r,{className:b.a["hover-title"],children:h}):j?Object(M.jsx)(o.r,{className:b.a["hover-content"],children:j}):null),[h,j,k]),U=Object(i.useRef)(!1);Object(i.useEffect)((()=>{U.current=!1}),[_]);var B=Object(i.useCallback)(Object(r.a)((function*(){U.current||(R(),U.current=!0);var e=yield A("#".concat(T).concat(a));C(e)})),[R,T,a,A]),F=Object(i.useCallback)((e=>{var t=Object(p.a)(e.currentTarget.id,T);N(t)}),[T,N]);return Object(M.jsx)(o.r,{onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),children:Object(M.jsx)(c.c,{delay:300,text:P,textCenter:!1,maxWidth:!0,arrow:!0,disabled:!P||w,textWrap:!0,beforeEnter:B,position:I?c.b.Bottom:c.b.TOP,children:Object(M.jsxs)(o.r,{id:"".concat(T).concat(a),className:u()(b.a["flow-card"]),onClick:F,children:[Object(M.jsx)(o.r,{className:b.a.icon,children:Object(M.jsx)(o.g,{className:b.a.image,src:n,mode:"aspectFill",lazyLoad:!0})}),Object(M.jsx)(o.r,{className:b.a.right,children:Object(M.jsx)(o.r,{className:b.a.name,children:Object(M.jsx)(l.a,{ref:E,text:Object(M.jsx)(s.a,{content:h,keyword:d,isSingleLine:!0})})})}),f.b.globalStore.canShareDefinition&&x&&Object(M.jsx)(o.r,{className:D?b.a.disabled_share:b.a.share,onClick:e=>{e.stopPropagation()},children:Object(M.jsx)(o.r,{className:b.a.container,onMouseEnter:e=>{(e=>{Object(v.a)("#".concat(e.currentTarget.id)).then((e=>{e&&O.a.eventCenter.trigger("global-tooltip",{id:"share-tooltip",visible:!0,position:I?"bottom":"top",parentElementPosition:e,text:Object(g.t)("approval-mp_Share_Tooltip"),wordWrap:!0,textClass:"share-max-width"})}))})(e),L(!0)},onMouseLeave:()=>{O.a.eventCenter.trigger("global-tooltip",{id:"share-tooltip",visible:!1}),L(!1)},children:Object(M.jsx)(m.a,{dataProps:{approvalId:t,approvalName:h,isExternal:D},openType:"share",size:"small",type:"icon",color:"default",icon:"icon_share_outlined"})})})]})})})})),y=()=>Object(M.jsxs)(o.r,{className:u()(b.a["flow-card"],b.a["flow-card-empty"]),children:[Object(M.jsx)(o.r,{className:b.a.icon,children:Object(M.jsx)(o.r,{className:b.a["empty-image"]})}),Object(M.jsx)(o.r,{className:b.a.right,children:Object(M.jsx)(o.r,{className:b.a["empty-name"]})}),Object(M.jsx)(o.r,{className:b.a.share,children:Object(M.jsx)(o.r,{className:b.a["empty-share"]})})]})},function(e,t,a){"use strict";var r=a(9),i=a(6),n=a(3),o=a(1),s=a(8),c=a.n(s),l=a(15),d=a(4),u=a(14),p=a(29),m=a(195),h=a.n(m),b=a(887),g=a.n(b),v=a(2),j=a(464),O=a(93),f=a(25),M=a(465),_=a(21),y=a(502),D=a.n(y),N=a(0);function A(e){var{mainTitle:t="",status:a=_.k.CURRENT}=e,r=c()(D.a.avatar,{[D.a.error]:a===_.k.RED||a===_.k.REJECT});return Object(N.jsxs)(o.r,{className:D.a["info-card-for-form"],children:[Object(N.jsx)(o.r,{className:r}),Object(N.jsx)(o.r,{className:D.a.text,children:Object(N.jsx)(o.r,{className:D.a["main-title"],children:t})})]})}var T=a(524);function I(e){var{text:t,style:a,isShowColon:r}=e;return Object(N.jsx)(o.r,{className:"has-bg-text",style:a,children:Object(N.jsx)(o.p,{selectable:!0,children:r?'"'.concat(t,'"'):t})})}function C(e){return Object(N.jsx)(o.r,{style:e.style,className:"no-bg-text",children:Object(N.jsx)(o.p,{selectable:!0,children:e.text})})}a(1245),a(1246);var x=a(19),S=a.n(x),w=a(652),L=a.n(w),E=a(396),k=a(781),z=a.n(k),R=a(156),P=(a(1247),a(98));class U extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"state",{stateIsExpand:!1,allIsExpand:!0,renderLocked:!0,stateMaxLimitedNum:0}),Object(i.a)(this,"delMember",(e=>{var{deleteMemberFn:t}=this.props;t&&t(e)})),Object(i.a)(this,"addMember",(()=>{var{addMemberFn:e}=this.props;e&&e()})),Object(i.a)(this,"toggleIsAllExpand",(()=>{this.setState((e=>({allIsExpand:!e.allIsExpand,stateIsExpand:!e.allIsExpand})))}))}componentDidMount(){var{isAtFormPage:e,enableFolder:t=!0}=this.props;setTimeout((()=>{e||!t?this.setState({renderLocked:!1,stateMaxLimitedNum:Number.MAX_SAFE_INTEGER}):S.a.createSelectorQuery().selectAll(".member-list").boundingClientRect().selectAll(".member-item").boundingClientRect().exec((e=>{for(var t,[a,r]=e,i=(null===(t=a[a.length-1])||void 0===t?void 0:t.width)||0,n=0,o=0,s=0;s<r.length;s++)n+=r[s].width,((n+=16)<i||0===i)&&(o=s+1);this.setState({renderLocked:!1,stateMaxLimitedNum:o})}))}),200)}showProfile(e){Object(R.a)({userId:e,selector:".member-item-name"})}generateLeftLengthForZh(e){return 44+8*Math.max(e.toString().length,1)}generateLeftLengthForEn(e){return 52+8*Math.max(e.toString().length,1)}generateLeftLengthForJa(e){return 88+8*Math.max(e.toString().length,1)}render(){var{stateIsExpand:e,allIsExpand:t,renderLocked:a,stateMaxLimitedNum:r}=this.state,{fixedMembers:i=[],isShowAddBtn:n=!1,isShowAllExpand:s=!1,isShowEmptyError:l=!1,isAtFormPage:d=!1,isNoDesc:u=!1}=this.props,{memberList:p=[]}=this.props,m=i.length>0,b=r,g="member-list",j=c()(g,{["".concat(g,"-locked")]:a,["".concat(g,"-nodesc")]:u});a&&(p=p.slice(0,8));var O=p.length<b+1||e||a,M=O?p:p.slice(0,b),y="member-list-all-expand",D=Object(v.getCurStarlingLang)(),A=c()(y,{["".concat(y,"-close")]:!t,["".concat(y,"-zh")]:D===v.LANG.zh}),T="member-list-add",I=c()(T,{["".concat(T,"-error")]:l&&(!M||0===M.length)}),C={zh:this.generateLeftLengthForZh(p.length),en:this.generateLeftLengthForEn(p.length),ja:this.generateLeftLengthForJa(p.length)}[D],x=D===v.LANG.en?-24:-26,{isShowDelBtn:S}=this.props,w=e=>S||m&&!i.find((t=>t.userId===e.userId))||0===i.length&&d;return Object(N.jsxs)(o.r,{className:j,children:[n&&(s&&t||!s)&&Object(N.jsx)(o.r,{onClick:this.addMember,className:I,children:"+"}),(s&&t||!s)&&M.map((e=>{var t=_.b.Agent===e.userType?Object(v.t)("Delegation.AgentAvatarTag","代"):void 0,a=Object(P.c)(e,f.d);return Object(N.jsxs)(o.r,{className:c()("member-item",{"read-only":!S}),children:[Object(N.jsx)(o.r,{className:"member-item-avatar",children:Object(N.jsx)(E.a,{width:24,height:24,userId:e.userId,url:e.avatarUrl,tag:t,tagHeight:13})}),Object(N.jsx)(o.r,{className:"member-item-name",onClick:()=>this.showProfile(e.userId),children:a?"".concat(e.userName," (").concat(a,")"):e.userName}),w(e)&&Object(N.jsx)(o.g,{className:"member-item-delete",src:L.a,onClick:()=>this.delMember(e.userId)})]},e.userId)})),!O&&!d&&Object(N.jsx)(o.g,{onClick:()=>this.setState({stateIsExpand:!0}),className:"member-list-expand",src:z.a}),e&&p.length>b+1&&!d&&Object(N.jsx)(o.g,{onClick:()=>this.setState({stateIsExpand:!1}),className:"member-list-expand-close",src:z.a}),s&&d&&Object(N.jsx)(o.g,{src:h.a,onClick:this.toggleIsAllExpand,className:A,style:{left:"".concat(C,"px"),top:"".concat(x,"px")}}),l&&(!M||0===M.length)&&Object(N.jsx)(o.r,{className:"member-list-error",children:Object(v.t)("PC.ValidateNoEmpty")})]})}}var B=a(721),F=(a(1250),a(432)),Y=a(901),Q=a.n(Y),G=e=>{var{style:t,children:a}=e;return Object(N.jsx)(o.r,{style:t,className:Q.a.customElement,children:Object(F.a)(a)?a(e):a})},W=a(736),V=a.n(W);function H(e){var{data:{signatureLabel:t,signatureUrl:a},style:r}=e;return Object(N.jsxs)(o.r,{style:r,className:V.a["process-signature-wrapper"],children:[Object(N.jsx)(o.p,{className:V.a.label,children:t}),Object(N.jsx)(o.g,{src:a,className:V.a.img,mode:"aspectFit"})]})}var Z=a(162),q=a(81),K=a(12);class J extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"renderChildrenItem",(e=>{e.ext||(e.ext={});var{status:t,agentUserType:a,consignUserId:r,consignUserName:i}=this.props,n=a===_.a.Manager&&t===_.k.CC;switch(e.type){case _.l.MEMBER_LIST:var s;return n&&e.data&&1===(null===(s=e.data)||void 0===s?void 0:s.length)?Object(N.jsx)(o.r,{className:"info-card-desc-content",style:{color:"#646A73"},children:r&&i&&Object(M.a)("TimeLine.Node.TransferCc.HintText",{oldApprover:Object(Z.b)(r,i),newApprover:e.data.map((e=>Object(Z.b)(e.userId,e.userName)))})}):Object(N.jsx)(U,{memberList:e.data,fixedMembers:e.ext.fixedMembers,addMemberFn:e.ext.addMemberFn,deleteMemberFn:e.ext.deleteMemberFn,isShowDelBtn:e.ext.isShowDelBtn,isShowAddBtn:e.ext.isShowAddBtn,isShowAllExpand:e.ext.isShowAllExpand,isShowEmptyError:e.ext.isShowEmptyError,isShowSomeExpand:e.ext.isShowSomeExpand,isAtFormPage:e.ext.isAtFormPage,isNoDesc:e.ext.isNoDesc});case _.l.BG_TEXT:return Object(N.jsx)(I,{text:e.data,style:e.ext.style,isShowColon:e.ext.isShowColon});case _.l.NO_BG_TEXT:return Object(N.jsx)(C,{text:e.data,style:e.ext.style});case _.l.CUSTOM_ELEMENT:return Object(N.jsx)(G,{style:e.ext.style,children:e.data});case _.l.COMMENT:var c,{isLastComment:l,ctxId:d,onDeleteComment:u}=this.props;return Object(N.jsx)(B.a,{content:e.data,data:null===(c=e.ext)||void 0===c?void 0:c.commentData,onDelete:u,isLastComment:Boolean(l),ctxId:d||""});case _.l.SIGNATURE:var{ext:p,data:m}=e;return Object(N.jsx)(H,{data:m,style:null==p?void 0:p.style});case _.l.SECOND_APPROVAL:return f.d.useSecondApproval?Object(N.jsx)(o.r,{className:"second-approval-tip",children:Object(v.t)("SecondApprovalTip")}):null}})),Object(i.a)(this,"jumpToDoc",(()=>{Object(K.b)("click_cloud_doc_url_in_process_timeline");var{docDescObj:e}=this.props;(null==e?void 0:e.docLink)&&Object(q.g)({schema:e.docLink,external:!0})}))}render(){var{avatarUrl:e,userId:t,userName:a,consignUserId:r,consignUserName:i,consignAgentList:n,mainTitle:s,descContent:l,status:d,isLast:u,childrens:p=[],isAtFormPage:m=!1,oriTimeForSort:h,displayTime:b,agentUserType:g,accepterId:j,accepterName:M,accepterAvatarUrl:y,originNodeType:D,docDescObj:I,insteadCreator:C,nodeName:x,showApprovalNodeName:S,rollbackInfos:w,isRejectTask:L,attendanceRecalledReason:E}=this.props,k=m?"padding-box":"padding-box padding-box-in-detail",z=d!==_.k.PREVIEW&&d!==_.k.CURRENT?"line":"line line-noarrived";m&&(z+=" line-in-form-page");var R=g===_.a.Manager&&d===_.k.REDIRECT,P=Object(v.t)("approval-mp_RequesterEditedResubmit_Desc",{user_name:null==I?void 0:I.userName,filename:"__filename__".concat(null==I?void 0:I.docName)}).split("__filename__".concat(null==I?void 0:I.docName));return Object(N.jsxs)(o.r,{className:"flow-timeline-item",children:[m&&Object(N.jsx)(A,{mainTitle:s,status:d}),!m&&Object(N.jsx)(T.a,{avatarUrl:e,userId:t,userName:a,consignUserId:r,consignUserName:i,mainTitle:s,descContent:l,rollbackInfos:w,isRejectTask:L,status:d,consignAgentList:n,timeStr:Object(O.a)(b||h),agentUserType:g,accepterId:j,accepterName:M,accepterAvatarUrl:y,originNodeType:D,insteadCreator:C,showApprovalNodeName:S,nodeName:x}),!u&&Object(N.jsx)(o.r,{className:z}),Object(N.jsxs)(o.r,{className:c()(k,{"with-agent-manager":R}),children:[m&&l&&Object(N.jsx)(o.r,{className:"desc-content",children:l}),Object(N.jsx)(o.r,{children:p&&p.map((e=>this.renderChildrenItem(e)))}),f.d.enableStarterEditDoc&&I&&Object(N.jsxs)(o.r,{className:"doc-desc",children:[Object(N.jsx)(o.p,{className:"normal-text",children:P[0]}),Object(N.jsxs)(o.r,{className:"link-text",onClick:this.jumpToDoc,children:[Object(N.jsx)(o.r,{className:"iconfont icon-icon_file-link-word_outlined1 icon-withdraw-note"}),Object(N.jsx)(o.p,{className:"ellipsis-text",children:I.docName})]}),Object(N.jsx)(o.p,{className:"normal-text",children:P[1]})]}),E&&Object(N.jsx)(o.r,{className:"doc-desc",children:E})]})]})}}Object(i.a)(J,"defaultProps",{childrens:[],status:void 0,descContent:"",userId:"",isLast:!1});var X,$=J,ee=(a(1251),a(328)),te=a(5),ae=a(124),re=a(745),ie=a(1466),ne=a(902),oe=a.n(ne),se=a(903),ce=a.n(se),le=a(904),de=a.n(le),ue=a(466),pe=a.n(ue),me=a(660),he=a(36);!function(e){e[e.Invalid=-1]="Invalid",e[e.Any=0]="Any",e[e.User=3]="User",e[e.Role=54]="Role"}(X||(X={}));var be,ge=a(17),ve=a(16),je=function(){var e=Object(r.a)((function*(e){var t=Object(te.a)({query:"",entityId:"",entityType:X.Any,offset:0,pageSize:25},e),{data:a}=yield ve.c.approvalqueryUserByNodeId(t);return a}));return function(t){return e.apply(this,arguments)}}(),Oe=e=>{var{params:t,onPageReceived:a}=e;return new Promise(function(){var e=Object(r.a)((function*(e,r){try{for(var i=!0,n=0;i;){var o=yield je(Object(te.a)(Object(te.a)({},t),{},{offset:n}));if(0===n&&e(o),o.nextOffset?n=Number(o.nextOffset):n+=t.pageSize||25,i=o.hasMore,!a(o))break}}catch(e){Object(K.b)(ge.f.ApprovalError,{location:"in function queryAllEntities at src/components/flow-timeline/components/approver-selector/api.ts",message:JSON.stringify(e)}),r(e)}}));return function(t,a){return e.apply(this,arguments)}}())},fe=a(62),Me=a.n(fe),_e=a(230),ye=a(24),De=Object(v.t)("ApproverRangeSelect_Picker_Title"),Ne=e=>{var{onVisibleChange:t=ae.a,onSelect:a=ae.a,chosenUsers:i=[],visible:s,limitType:l,multiple:d,queryParams:u}=e,{globalStore:m}=Object(n.useContext)(ye.a),[h,b]=Object(n.useState)(""),[g,j]=Object(n.useState)(null),[O,f]=Object(n.useState)([]),[M,_]=Object(n.useState)([]),[y,D]=Object(n.useState)([]),[A,T]=Object(n.useState)(!1),[I,C]=Object(n.useState)([]),x=(e=>{var{limitType:t,multiple:a}=e,r=t===p.a.Users?"DesignatedUser":"Role",i=a?"Multi":"Single";return"(".concat(Object(v.t)("ApproverRangeSelect_".concat(r,"_").concat(i)),")")})(e),S=Boolean(h),w=s&&l!==p.a.All,L=l===p.a.Users&&!h,E=l===p.a.Roles&&!h,k=I.length===y.length,z=d?E?25:1/0:1,R=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=I.some((t=>t.id===e.id));t&&C(a?[]:[e]),C(a?[...I.filter((t=>t.id!==e.id))]:[...I,e])},U=e=>e.type===X.Invalid||I.length>=z&&!I.some((t=>t.id===e.id));return((e,t)=>{var{visible:a,limitType:r,onChooseAll:i,onVisibleChange:o=ae.a,onSelect:s=ae.a}=e;Object(n.useEffect)((()=>{a?r===p.a.All&&(i?i().then((e=>{o(!1),s(e)})):(o(!1),s([]))):t()}),[a])})(e,(()=>{_([]),D([]),C([]),b(""),f([]),T(!1)})),Object(n.useLayoutEffect)((()=>{s&&l!==p.a.All&&(C(i.map((e=>Object(te.a)(Object(te.a)({},e),{},{id:e.id,type:X.User,name:e.name,iconUrl:e.avatarUrl})))),Object(r.a)((function*(){var e=[],t=yield Oe({params:Object(te.a)({},u),onPageReceived:t=>{e.push(...t.entityList);var a=Object(re.a)(e,(e=>e.id));return _(a),D(a),t.hasMore}});j(t.processManager),1===t.entityList.length&&l===p.a.Roles?f([t.entityList[0].id]):T(!0)}))())}),[s,i]),Object(n.useLayoutEffect)((()=>{var e=!1;if(A||0!==M.length){if(h){T(!1);var t=[];setTimeout(Object(r.a)((function*(){try{if(e)return;yield Oe({params:Object(te.a)(Object(te.a)({},u),{},{query:h,entityType:X.Any}),onPageReceived:a=>!e&&(t.push(...a.entityList),D(t),!0)})}finally{e||T(!0)}})),300)}else D(M),T(!0);return()=>{e=!0}}}),[h]),Object(n.useEffect)((()=>{if(0!==O.length){var e=!1,t=M;return O.forEach((a=>{T(!0);var i=t.find((e=>e.id===a));i&&(i.subItems||(i.subItems=[],T(!1),Object(r.a)((function*(){try{if(e)return;yield Oe({params:Object(te.a)(Object(te.a)({},u),{},{entityId:a,entityType:X.Role}),onPageReceived:t=>e?(i.subItems=void 0,!1):(i.subItems=[...i.subItems||[],...t.entityList],D(i.subItems||[]),T(!0),!0)})}catch(e){throw i.subItems=void 0,e}finally{T(!0)}}))()),t=i.subItems)})),D(t),()=>{e=!0}}D(M)}),[O]),w?Object(N.jsx)(o.r,{className:Me.a["approver-selector-wrap"],id:"approver-selector-container",onClick:e=>{"approver-selector-container"===e.target.id&&(t(!1),a([]))},children:Object(N.jsxs)(o.r,{className:Me.a["approver-selector"],children:[Object(N.jsxs)(o.r,{className:Me.a.header,children:[Object(N.jsx)(o.p,{className:Me.a.title,children:De}),Object(N.jsx)(o.p,{className:Me.a.tip,children:x})]}),Object(N.jsxs)(o.r,{className:c()(Me.a.content,Me.a.grow),children:[Object(N.jsxs)(o.r,{className:c()(Me.a["left-panel"],Me.a.grow),children:[Object(N.jsx)(o.r,{className:Me.a["search-container"],children:Object(N.jsxs)(o.r,{className:Me.a.search,children:[Object(N.jsx)(o.g,{className:Me.a["approval-selector-search"],src:oe.a}),Object(N.jsx)(o.h,{className:c()(Me.a.input,Me.a.grow),value:h,placeholder:Object(v.t)("PC.SearchPlaceHolder"),onInput:e=>b(e.detail.value)}),S?Object(N.jsx)(o.g,{className:Me.a["approval-selector-clear"],src:ce.a,onClick:()=>b("")}):Object(N.jsx)(o.r,{className:Me.a["approval-selector-clear"]})]})}),E&&Object(N.jsxs)(o.r,{className:Me.a["breadcrumbs-container"],children:[Object(N.jsx)(o.r,{className:Me.a.breadcrumb,onClick:()=>f([]),children:Object(v.t)("ApproverRangeSelect_Role_List")}),O.map((e=>M.find((t=>t.id===e)))).map((e=>Object(N.jsx)(o.r,{className:Me.a.breadcrumb,children:e.name},e.id)))]}),d&&y.length>0&&L&&Object(N.jsxs)(o.i,{className:c()(Me.a["entity-item"],Me.a["entity-list-check-all"]),onClick:()=>{C(k?[]:y)},children:[Object(N.jsx)(o.d,{className:Me.a["entity-check"],value:"",checked:k,color:"#3370ff"}),Object(N.jsx)(o.p,{className:c()(Me.a.entityItemName,Me.a.grow),children:Object(v.t)("PC.SelectAll")})]}),Object(N.jsxs)(o.r,{className:Me.a["entity-list"],children:[!A&&Object(N.jsx)(o.r,{className:Me.a.loading,children:Object(N.jsx)(me.a,{})}),A&&0===y.length&&Object(N.jsxs)(o.r,{className:Me.a.empty,children:[S&&Object(N.jsx)(o.r,{children:Object(v.t)("ApproverRangeSelect_SearchEmpty")}),!S&&Object(N.jsx)(o.r,{children:L?Object(v.t)("ApproverRangeSelect_User_Empty"):Object(v.t)("ApproverRangeSelect_Role_Empty",{roles:O.map((e=>{var t=M.find((t=>t.id===e));return t?Object(v.t)("DoubleQuotes",{innerText:t.name}):Object(v.t)("DoubleQuotes",{innerText:e})})).join(Object(v.t)("Split"))})}),!S&&null!==g&&Object(N.jsxs)(o.r,{children:[Object(v.t)("ApproverRangeSelect_Contact_Admin"),Object(N.jsx)(o.r,{className:Me.a.manager,onClick:e=>{Object(he.q)(g.userId,e)},children:g.userName})]})]}),A&&y.map((e=>Object(te.a)(Object(te.a)({},e),{},{disabled:U(e)}))).map((e=>{var t=Object(P.c)(e,m);return e.type===X.User?Object(N.jsxs)(o.i,{className:c()(Me.a["entity-item"],{[Me.a.entityItemSearch]:S,[Me.a.entityItemDisabled]:e.disabled}),onClick:()=>{e.disabled||R(e,!d)},children:[Object(N.jsx)(o.d,{className:Me.a["entity-check"],value:e.id,disabled:e.disabled,checked:I.some((t=>t.id===e.id)),color:"#3370ff"}),Object(N.jsx)(o.g,{className:Me.a.avatar,src:e.iconUrl}),Object(N.jsxs)(o.r,{className:c()(Me.a.entityItemName,Me.a.grow,{[Me.a["no-department"]]:!e.departmentName}),children:[Object(N.jsx)(o.p,{className:Me.a.entityText,children:e.name}),t&&Object(N.jsx)(_e.a,{size:"extra-small",style:{marginLeft:"4px"},tagName:t})]}),S&&Object(N.jsx)(o.p,{className:c()(Me.a["department-name"],Me.a.grow),children:e.departmentName})]}):Object(N.jsxs)(o.i,{className:c()(Me.a["entity-item"],Me.a.role),onClick:()=>{f(Object(ie.a)([...O,e.id]))},children:[Object(N.jsx)(o.p,{className:c()(Me.a.entityItemName,Me.a.grow),children:e.name}),Object(N.jsx)(o.g,{className:Me.a.arrow,src:de.a})]})}))]})]}),Object(N.jsx)(o.r,{className:Me.a.separator}),Object(N.jsxs)(o.r,{className:c()(Me.a["right-panel"],Me.a.grow),children:[Object(N.jsxs)(o.r,{className:Me.a["chosen-overview"],children:[Object(N.jsx)(o.p,{className:"stats",children:Object(v.t)("ApproverRangeSelect_Selected_Count_PC",{count:I.length})}),Object(N.jsx)(o.p,{className:c()(Me.a.clear,{[Me.a.clearDisabled]:0===I.length}),onClick:()=>{C([])},children:Object(v.t)("ApproverRangeSelect_Clear")})]}),Object(N.jsx)(o.r,{className:Me.a["chosen-list"],children:I.map((e=>Object(N.jsxs)(o.r,{className:Me.a["chosen-item"],children:[Object(N.jsx)(o.g,{className:Me.a.chosenItemAvatar,src:e.iconUrl}),Object(N.jsxs)(o.r,{className:c()(Me.a.chosenItemName,Me.a.grow),children:[Object(N.jsx)(o.p,{className:Me.a.chosenText,children:e.name}),e.tenantName&&Object(N.jsx)(_e.a,{size:"extra-small",style:{marginLeft:"4px"},tagName:e.tenantName})]}),Object(N.jsx)(o.g,{className:Me.a.delete,onClick:()=>R(e),src:pe.a})]},e.id)))})]})]}),Object(N.jsxs)(o.r,{className:Me.a.footer,children:[Object(N.jsx)(o.r,{className:Me.a.grow}),Object(N.jsx)(o.b,{className:c()(Me.a.button,Me.a.cancel),onClick:()=>{t(!1),a(i)},children:Object(v.t)("Popup.Cancel")}),Object(N.jsx)(o.b,{className:Me.a.button,disabled:0===I.length,type:"primary",onClick:()=>{a(I.map((e=>Object(te.a)(Object(te.a)({},e),{},{id:e.id,name:e.name,userId:e.id,userName:e.name,avatarUrl:e.iconUrl,hasThreeSuccessiveLeaders:e.hasThreeSuccessiveLeaders})))),t(!1)},children:Object(v.t)("Popup.Confirm")})]})]})}):null},Ae=a(72),Te=Object(l.a)(be=class extends n.Component{constructor(e){var t;super(e),t=this,Object(i.a)(this,"toggleIsExpand",function(){var e=Object(r.a)((function*(e){var{isExpand:a}=t.state,{ctxId:r,instanceId:i,isAtFormPage:n}=t.props;if((!n||!e)&&r){var{configurableFormStore:o}=Object(u.d)(r),{originalProcessMap:s}=o;!i||s&&s.has(i)||(yield o.fetchOriginalInstance(i)),t.setState({isExpand:!a})}}));return function(t){return e.apply(this,arguments)}}()),Object(i.a)(this,"handleDeleteComment",function(){var e=Object(r.a)((function*(e){var a,r;yield null===(a=(r=t.props).onDeleteComment)||void 0===a?void 0:a.call(r,e,t.props.instanceId),t.forceUpdate()}));return function(t){return e.apply(this,arguments)}}());var{instanceId:a=""}=e;this.state={isExpand:!a}}UNSAFE_componentWillReceiveProps(e){var{defaultExpand:t}=e;this.setState({isExpand:void 0===t?!e.instanceId:t})}render(){var{ctxId:e,instanceId:t,title:a,hasOtherFlow:i}=this.props;if(!e)return null;var{configurableFormStore:n}=Object(u.d)(e),{isExpand:s}=this.state,{isAtFormPage:l}=this.props,d="flow-timeline-expand",m=c()(d,{["".concat(d,"-close")]:!s}),b="flow-timeline-expand-right",O=c()(b,{["".concat(b,"-close")]:s}),f="flow-timeline-title",M=c()(f,{["".concat(f,"-form")]:l});if(l&&(n.processType===p.l.IS_FREE||n.category===p.f.RAPID))return null;if(0===n.widgets.length)return null;var _=n;return Object(N.jsxs)(o.r,{className:c()("flow-timeline"),children:[Object(N.jsxs)(o.r,{className:"flow-timeline-header",onClick:()=>this.toggleIsExpand(!0),children:[Object(N.jsx)(o.r,{className:M,children:l?Object(v.t)("PreviewNodes.Title"):a}),l&&Object(N.jsx)(o.g,{src:h.a,onClick:()=>this.toggleIsExpand(!1),className:m}),i&&Object(N.jsx)(o.g,{src:g.a,className:O})]}),s&&this.renderFlowList(),Object(N.jsx)(Ne,{limitType:_.approverSelectorProps.limitType,multiple:_.approverSelectorProps.multiple,visible:_.approverSelectorProps.visible,chosenUsers:_.approverSelectorProps.chosenUsers,onVisibleChange:e=>{_.onApproverSelectorVisibleChange(e)},onChooseAll:Object(r.a)((function*(){var e=_.approverSelectorProps.chosenUsers.filter((e=>Boolean(Object(Ae.d)(e))));return(yield Object(ee.a)({multi:_.approverSelectorProps.multiple,maxNum:25,choosenIds:e.map((e=>Object(Ae.d)(e))),instanceId:t}))||_.approverSelectorProps.chosenUsers})),onSelect:_.approverSelectorProps.onSelect,queryParams:{approvalId:_.definitionInfo?_.definitionInfo.approvalId.toString():"0",versionId:_.versionId,nodeId:_.approverSelectorProps.nodeId}}),Object(N.jsx)(j.a,{visible:_.isLeaderHintVisible,title:Object(v.t)("PreviewNodes.ConfirmClearContext"),content:Object(v.t)("PreviewNodes.ClearContextDescription"),okText:Object(v.t)("OnBoard.ModalBtn"),onOk:_.closeLeaderHintDialog})]})}renderFlowList(){var{isAtFormPage:e=!1,ctxId:t,instanceId:a,isOriginal:r}=this.props;if(!t)return null;var{homeStore:i,configurableFormStore:n}=Object(u.d)(t),s=i&&i.isAtPending,c=Object(ee.b)(n,e,s,a,r);c||(c=[]),c.length>0&&Object(d.s)((()=>{c[c.length-1].isLast=!0}));var l=c.length-[...c].reverse().findIndex((e=>e.status===_.k.COMMENT))-1;return Object(N.jsx)(o.r,{className:"flow-timeline-list",children:c.map(((a,r)=>{var{userId:i,userName:n,userType:o,consignUserId:s,consignUserName:c,mainTitle:d,descContent:u,status:p,avatarUrl:m,childrens:h,oriTimeForSort:b,displayTime:g,isLast:v=!1,agentUserType:j,accepterAvatarUrl:O,accepterId:f,accepterName:M,originNodeType:_,docDescObj:y,insteadCreator:D,nodeName:A,showApprovalNodeName:T,attendanceRecalledReason:I,rollbackInfos:C,isRejectTask:x}=a;return Object(N.jsx)($,{userId:i,userName:n,userType:o,consignUserId:s,consignUserName:c,mainTitle:d,descContent:u,rollbackInfos:C,isRejectTask:x,status:p,avatarUrl:m,isLast:v,oriTimeForSort:b,displayTime:g,childrens:h,isAtFormPage:e,isLastComment:l===r,ctxId:t,onDeleteComment:this.handleDeleteComment,agentUserType:j,accepterAvatarUrl:O,accepterId:f,accepterName:M,originNodeType:_,docDescObj:y,insteadCreator:D,nodeName:A,showApprovalNodeName:T,attendanceRecalledReason:I})}))})}})||be;t.a=Te},function(e,t,a){"use strict";a.d(t,"b",(function(){return G})),a.d(t,"a",(function(){return Z}));var r=a(5),i=a(3),n=a.n(i),o=a(1),s=a(1477),c=a(18),l=a(28),d=a(10),u=a(20),p=a(54),m=Object(u.c)("pc:src/components/offlinify-iframe/hooks.ts"),h=e=>{var{disableOffline:t,offlineAssetsPath:a=p.OFFLINE_ASSETS_PATH.replace(/\/$/,""),currentRoute:r,getRollbackOnlineIframeSrc:n}=e,o=!t,s=()=>{try{var e,t,i=null===(e=(t=tt).getAppDirSync)||void 0===e?void 0:e.call(t);if(!i)throw new Error("The return value of tt.getAppDirSync is empty!");var o=new URL("".concat(i,"/").concat(a,"/index.html"));return o.hash="#".concat(r),o.toString()}catch(e){var s="[src/components/offlinify-iframe/hooks.tsx] Get iframe offline resource path failed, return to the online path";return d.a.error(s,e),m("iframeOfflineAssetsError",{errMsg:s,error:JSON.stringify(e,Object.getOwnPropertyNames(e))}),n()}},[c,l]=Object(i.useState)(String(o?s():n()));Object(i.useEffect)((()=>{l(o?s():n())}),[r]);var[u,h]=Object(i.useState)(!1);return{source:c,offlineLoadFailed:u,rollbackOnlineIframeSrc:function(){for(var e="[src/components/offlinify-iframe/hooks.tsx] Load iframe failed, return to the online path",t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];d.a.error(e,a),m("iframeOfflineAssetsError",{errMsg:e,error:JSON.stringify(a)}),h(!0),l(String(n()))}}},b=a(19),g=a.n(b),v=a(17),j=a(2),O=a(25),f=a(157),M=a(340),_=a(475),y=a(117),D=a(947),N=a.n(D),A=a(317),T=a(12),I=a(44),C=a(0),x=Object(u.c)("pc:src/components/msgify-iframe/index.tsx");Object(M.b)({logger(e){},captureException(e,t){x("messagerError",{error:e,data:t})},trace(e,t){},serverTrace(e,t){x("messagerTrace",{content:e,data:t})}});var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new URL(e),{searchParams:r}=a,i=(e,t)=>{var a;null!==(a=r.get(e))&&void 0!==a||r.set(e,t)};return i("random",String(Math.random())),i("origin","mp-pc"),i("user",O.d.currentUser.encryptedUserId),i("lng",j.curStarlingLang),i("NODE_ENV",l.c),i("BUILD_ENV",A.a.ApplinkQueryEnv||l.a),i("_internal_auth_mode","mina"),i(c.w,c.x),Object.entries(t).forEach((e=>{var[t,a]=e;r.set(t,String(a))})),String(a)},w={getEnvironment:()=>y.d,getSystemInfo:()=>tt.getSystemInfoSync(),getUserInfo:()=>O.d.currentUser,getLanguage:()=>j.curStarlingLang,goBack:Object(f.a)((()=>{getCurrentPages().length>1?g.a.navigateBack():g.a.reLaunch({url:c.r.Setting})}),300),enterProfile:e=>{var{data:t}=e,a=Object.assign(null!=t?t:{},{success:e=>{console.warn("[".concat(L.name,"] enterProfile:success"),e,t),Object(T.b)(v.f.ApprovalError,Object(r.a)(Object(r.a)({},e),{},{data:t}))},fail:e=>{console.error("[".concat(L.name,"] enterProfile:fail"),e,t),Object(T.b)(v.f.ApprovalError,Object(r.a)(Object(r.a)({},e),{},{data:t}))}});return null!=a&&a.openid?tt.enterProfile(a):(console.error("[".concat(L.name,"] enterProfile:fail"),"invalid openid",t),Object(T.b)(v.f.ApprovalError,{data:t}))}},L=n.a.forwardRef((function(e,t){var{src:a,scope:r,messager:c,shouldShowLoading:l=!0}=e,[d,u]=Object(i.useState)(l),p=Object(i.useRef)(null!=c?c:new s.a).current,m=Object(i.useRef)(l);Object(i.useImperativeHandle)(t,(()=>p));Object(i.useEffect)((()=>{p.register(w)}),[p]),Object(i.useLayoutEffect)((()=>{u(m.current)}),[a]);var h=Object(i.useMemo)((()=>S(a)),[a]);return Object(C.jsxs)(n.a.Fragment,{children:[Object(C.jsx)("native-iframe",{src:h,onLoad:t=>{var i,n;x("channelReady",{data:t});var o=null===(i=t.detail)||void 0===i?void 0:i.channel;console.debug("[".concat(L.name,"] onLoad"),[o,p,a,S(a)]),o&&(p.initialize({channel:o,scope:r}).listen(),null===(n=e.onChannelReady)||void 0===n||n.call(e,t))},onError:t=>{var a;x("channelError",{error:Object(I.a)(t)}),null===(a=e.onChannelError)||void 0===a||a.call(e,t)},onIframeLoad:t=>{var a;u(!1),x("iframeLoad",{data:t}),null===(a=e.onLoad)||void 0===a||a.call(e,t)},onLoadFail:t=>{var a;u(!1),x("iframeError",{error:Object(I.a)(t)}),null===(a=e.onError)||void 0===a||a.call(e,t)}}),d&&Object(C.jsx)(o.r,{className:N.a.loading,children:Object(C.jsx)(_.a,{})})]})})),E=e=>{var{onError:t}=e,{source:a,rollbackOnlineIframeSrc:i,offlineLoadFailed:n}=h(e);return Object(C.jsx)(L,Object(r.a)(Object(r.a)({},e),{},{src:a,onError:n?t:i}))},k=a(24),z=a(109),R=a(22),P=a(535),U=a(948),B=a.n(U),F=a(67),Y=a(322),Q=a(176);var G,W=e=>{var t=new URLSearchParams;return Object.entries(e).forEach((e=>{var[a,r]=e;void 0!==r&&t.set(a,String(null!=r?r:""))})),"/detail?".concat(t.toString())},V=e=>{var t="development"===l.c?c.q.Local:function(e){var t;return null!==(t=c.h[e])&&void 0!==t?t:c.h.boe}(e.BUILD_ENV),a=new URL("".concat(c.j[t],"/approval/web/detail")),{searchParams:r}=a;return Object.entries(e).forEach((e=>{var[t,a]=e;void 0!==a&&r.set(t,String(null!=a?a:""))})),String(a)},H=new Map;!function(e){e.NORMAL="NORMAL",e.FANWEI="FANWEI"}(G||(G={}));var Z=n.a.memo((e=>{var{data:t,hidden:a,onFinished:n,openSource:u="common"}=e,[p,m]=Object(i.useState)(!a),h=Object(z.b)(n),b=Object(i.useMemo)((()=>new s.a),[]),{indexStore:g,globalStore:v}=Object(k.c)(),{currentNav:O}=g,{userForActingAs:f,isYm:M}=v,{userId:_}=f,y=[R.a.CeoTodo,R.a.CeoDone].includes(O),D=(()=>{return M&&y?_:g.searchStore.isSubSearch?null==t||null===(e=t.listCard)||void 0===e?void 0:e.AssigneeID:void 0;var e})(),{id:N="",taskId:T="",shareCode:I,commentId:x,replyId:S,blockCommentId:w,blockReplyId:L,listCard:U,showBlockComment:G,authId:Z,source:q="",isOpenFromLaunch:K,parentId:J,parentShareCode:X,scene:$,fuzzyIdFromApplink:ee}=null!=t?t:{},{System:te,SourceName:ae}=null!=U?U:{};if(Object(i.useEffect)((()=>{if(U){var{ID:e="",ProcessID:t}=U;H.set(t,e)}Object(P.c)({finishApproval:e=>{var t,{instanceId:a,disableFeelgood:r,isEditable:i,instanceSourceType:n}=e,o=H.get(a);o?null===(t=h.current)||void 0===t||t.call(h,o,{disableFeelgood:r,isEditable:i,instanceSourceType:n}):console.warn("[HostingDetail] cardID 为空,不执行 onFinished",a,U)}},b)}),[h,U]),Object(F.a)("can-create-host-iframe"),Object(i.useEffect)((()=>{a||m(!0)}),[a]),!p)return d.a.warn("[HostingDetail] do not enable iframe!",null==t?void 0:t.listCard,t),null;Object(F.a)("start-create-host-iframe"),Object(F.a)("start-create-container"),T||d.a.warn("[HostingDetail] taskID is missing",null==t?void 0:t.listCard,t);var re=ee?{id:N,fuzzyId:ee}:{id:N,taskID:T},ie=Object(r.a)(Object(r.a)({},re),{},{parentId:J,parentShareCode:X,currentNav:O,shareCode:I,commentId:x,replyId:S,blockCommentId:w,blockReplyId:L,actAs:D,system:te,showBlockComment:G,source:q||"list",isOpenFromLaunch:K,prefetchKey:Object(Y.c)(),authId:Z,origin:"mp-pc",user:v.currentUser.encryptedUserId,lng:j.curStarlingLang,NODE_ENV:l.c,BUILD_ENV:A.a.ApplinkQueryEnv||l.a,_internal_auth_mode:"mina",scene:$,enableShowCrossTenant:v.enableShowCrossTenant,enableChooseCrossTenant:v.enableChooseCrossTenant,enableAtFormEdit:v.enableAtFormEdit,[c.w]:c.x,enableDrive:v.enableDrive,enableCurrencyApi:v.enableCurrencyApi,enableAtFormEditP1:v.enableAtFormEditP1,enableAtFormEditP2:v.enableAtFormEditP2,enableAtFormEditTelephone:v.enableAtFormEditTelephone,enableSelectExternalDataSearch:v.enableSelectExternalDataSearch,enableAtFormEditWidgetGroups:v.enableAtFormEditWidgetGroups,enableFieldListEdit:v.enableAtFormEditFieldList,enableFieldListEditMini:v.enableAtFormEditFieldListMini,enableAtFormEditAddress:v.enableAtFormEditAddress,enableLingo:Boolean(tt.openLingoProfile)&&Object(Q.c)("6.3.0"),enhancedApprovalList:v.enhancedApprovalList,enableBatchApproval:v.fgBatchApprovalNext&&"common"===u&&!g.searchStore.isSubSearch,fixedDocSize:JSON.stringify(v.fixedDocSize),complexityThreshold:v.complexityThreshold});return Object(C.jsx)(o.r,{id:P.a.replace(/^#/,""),className:B.a.iframe,style:{position:"relative",display:a?"none":"block",width:"100%",height:"100%",zIndex:a?-1:"auto",borderRadius:"8px",overflow:"hidden"},children:Object(C.jsx)(E,{disableOffline:"People"===ae,currentRoute:W(ie),getRollbackOnlineIframeSrc:()=>V(ie),messager:b})})}))},,,,function(e,t,a){e.exports={"info-card-for-form":"index-module__info-card-for-form___28LgC",avatar:"index-module__avatar___3kkr-",error:"index-module__error___3Bd50","info-card-for-form-badge":"index-module__info-card-for-form-badge___2EuKL","info-card-for-form-badge-image":"index-module__info-card-for-form-badge-image___36sEH",text:"index-module__text___obgKV","main-title":"index-module__main-title___1Iwjj","desc-content":"index-module__desc-content___zZ_0l","info-card-for-form-status":"index-module__info-card-for-form-status___12JjS","info-card-for-form-status-reject":"index-module__info-card-for-form-status-reject___1gQvl","info-card-for-form-status-current":"index-module__info-card-for-form-status-current___1wxor"}},function(e,t,a){e.exports={MiddleEllipsis:"index-module__MiddleEllipsis___3g7u9",MiddleEllipsisWrapper:"index-module__MiddleEllipsisWrapper___221Mr",MiddleEllipsisChar:"index-module__MiddleEllipsisChar___3Ju4y",MiddleEllipsisText:"index-module__MiddleEllipsisText___1t_BH"}},function(e,t,a){e.exports={"loading-wrapper":"index-module__loading-wrapper___l786f",loading:"index-module__loading___2LaLv","loading-icon":"index-module__loading-icon___1TFVd","loading-text":"index-module__loading-text___3oL_C","none-more-wrapper":"index-module__none-more-wrapper___JW1wC"}},function(e,t,a){e.exports={form_item:"index-module__form_item___28NsT",inputElement:"index-module__inputElement____DBPP",form_title:"index-module__form_title___m53Tc",title:"index-module__title___1np4T",required:"index-module__required___3wri5",content:"index-module__content___2JwdA",fake_input:"index-module__fake_input___2lPmB"}},function(e,t,a){e.exports={wrapper:"index-module__wrapper___N-o8S",inner:"index-module__inner___QHjas",count_wrap:"index-module__count_wrap___S76aj",input:"index-module__input___fstm3",error:"index-module__error___2mT1e"}},function(e,t,a){e.exports={"text-ellipsis":"index-module__text-ellipsis___zKp3r",skeleton:"index-module__skeleton___1TPZ6","skeleton-loading":"index-module__skeleton-loading___BdbOW","left-menu-item":"index-module__left-menu-item___1Xdvd",content:"index-module__content___3fluh","current-item":"index-module__current-item___3T2OY","left-menu-item-empty":"index-module__left-menu-item-empty___2dofp",item:"index-module__item___AsBZ4"}},,,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var r=function(){try{var e=getCurrentPages();return e[e.length-1]}catch(e){}return null},i=function(){var e=r();return e?e.__route__:"default_url"}},function(e,t,a){"use strict";a.d(t,"b",(function(){return g})),a.d(t,"c",(function(){return M})),a.d(t,"a",(function(){return _}));var r=a(4),i=a(118),n=a(17),o=a(13),s=a(122),c=a.n(s),l=a(882),d=a(38),u=a(26),p=a(12),m=a(161),h=a(93),b=new l.a,g=(e,t)=>{t=t.split("$").join("x");var a=(e=>{for(var t={},a=0;a<e.length;a++)t["x".concat(a)]=e[a];return t})(e),r=b.evaluate(t.split("$").join("x"),a);"number"!=typeof r||Number.isNaN(r)||!Number.isFinite(r)?r=null:r=new c.a(r).toString();return r},v=(e,t)=>{try{var{type:a,data:{value:r,children:i}}=e;if(!e.data.visible)return 0;switch(a){case o.c.NUMBER_INPUT:case o.c.AMOUNT_INPUT:case o.c.SINGLE_SELECT:case o.c.SINGLE_SELECT_V2:case o.c.CALCULATION_FORMULA:return Number(r)||0;case o.c.DATE_INTERVAL:var[,,s]=i;return s&&s.data?Number(s.data.value):0;case o.c.LEAVE_GROUP:case o.c.LEAVE_GROUP_V2:var c=t.getWidget("widgetLeaveGroupInterval");return c&&c.data&&c.data.value?Number(c.data.value.value):0;case o.c.WORK_GROUP:case o.c.WORK_GROUP_V2:var l=t.getWidget("widgetWorkGroupInterval");return l&&l.data?Number(l.data.value):0;case o.c.TRIP_GROUP:var d=t.getWidget("widgetTripGroupInterval");return d&&d.data?Number(d.data.value):0;case o.c.OUT_GROUP:var u=t.getWidget("widgetOutGroupInterval");return u&&u.data&&u.data.value?Number(u.data.value.value):0;default:return 0}}catch(e){return Object(p.b)(n.f.ApprovalError,{location:"in function getWidgetValue at src/components/configurable-form/components/widgets/calculation-formula/index.ts",message:JSON.stringify(e)}),0}},j=e=>{try{if(!e)return!1;var{data:{readable:t}}=e;return t}catch(e){return Object(p.b)(n.f.ApprovalError,{location:"in function getWidgetReadable at src/components/configurable-form/components/widgets/calculation-formula/index.ts",message:JSON.stringify(e)}),0}},O=e=>["widgetLeaveGroupInterval","widgetWorkGroupInterval","widgetTripGroupInterval","widgetOutGroupInterval"].some((t=>e.includes(t))),f=(e,t)=>{var[a,r]=e.split(".");if(!r){var i=t.getWidgetParentIfExist(e);if((null==i?void 0:i.type)===o.c.DETAIL)return[i.id,e]}return[a,r]},M=function(e,t,a){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e=>{var t=e?v(e,a):0,r=Number(t);return Number.isNaN(r)?0:r},[n,s]=t.id.split(/(?=\|)/),[c,l]=f(e,a);if(!l||O(e)){var d=c,u=a.getWidget("".concat(d).concat(s),!1)||a.getWidget(d,!1);return r?j(u):i(u)}var p=a.getWidget(c,!1);if(!p||p.type!==o.c.DETAIL)return r?j(p):i(p);var{data:{groups:m}}=p;if(!m||!m[0]||!m[0].widgets)return 0;var h=m[0].widgets,b=h.findIndex((e=>e.id.split("|")[0]===l));if(-1===b)return 0;var g=h.findIndex((e=>e.id.includes(n)));if(-1!==g){var M=a.getWidget("".concat(l).concat(s),!1);return r?j(M):i(M)}if(r){var _=!0;for(var{widgets:{[b]:y}}of m)if(!j(y))return!1;return _}var D=0;for(var{widgets:{[b]:N}}of m)D+=i(N);return D},_={type:o.c.CALCULATION_FORMULA,inputFormat(e,t){var{id:a}=e,{option:r}=e,{isCapital:i=!1,isThousandSeparator:n=!0,keepDecimalPlaces:o=2}=r||{};return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),placeholder:e.placeholder||"",value:"0",origin:"0",formula:e.value,isThousandSeparator:n,keepDecimalPlaces:o,isCapital:i}}},outputFormat(e){if(!e.data.required&&Object(d.c)(e.data.value))return null;var{keepDecimalPlaces:t=2}=e.data||{},a="";return e.data.visible&&e.data.value&&(a=Object(i.a)(e.data.value,{isThousandSeparator:!1,keepDecimalPlaces:t})),{id:Object(u.q)(e.id),type:e.type,value:e.data.visible&&a||null,displayCondStatus:e.data.visible}},restoreFormat:Object(r.f)(((e,t,a)=>{if(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.value=t.value||"",e.data.printable=t.printable,a.resubmitInstanceId){var{data:{formula:{arg:r,exp:i}}}=e,n=r.map((t=>M(t,e,a)));e.data.value="".concat(g(n,i)||"0")}return e})),restoreWithDraftFormat:Object(r.f)(((e,t)=>(e.data.value=t.data.value||"",e))),printFormat(e){var{name:t,value:a,isCapital:r,isThousandSeparator:n,keepDecimalPlaces:o}=e.data,s=String(Object(i.a)(a,{isThousandSeparator:n,keepDecimalPlaces:o})),c=Object(h.c)()&&r&&!e.isInDetailField?Object(u.l)(a,o):"";return{label:t,value:"".concat(s," ").concat(c)}},validate:Object(r.k)((function*(e){return e.data.validationError=null,!(e.data.visible&&e.data.writable&&(yield e.data.computePromise,e.data.required&&(e.data.validationError=Object(d.c)(e.data.value),e.data.validationError)))})),onSomeWidgetChange:Object(r.k)((function*(e,t,a){var r,i;if(a.hasManualChangeForm||a.resubmitInstanceId){var n=(null===(r=a.displayConditionManager)||void 0===r||null===(i=r.widgetConditionMap)||void 0===i?void 0:i.get(e.id))&&JSON.stringify(a.displayConditionManager.widgetConditionMap.get(e.id)).includes(t),{data:{formula:{arg:o,exp:s}}}=e,c=t.includes("|"),[l]=e.id.split(/(?=\|)/);if(!o.every((e=>!e.includes(t)))||c||n){if(c){var d,u,p=e.id.split("|")[1],[m,h]=t.split("|"),b=p===h&&(null===(d=a.displayConditionManager)||void 0===d||null===(u=d.widgetConditionMap)||void 0===u?void 0:u.get(l))&&JSON.stringify(a.displayConditionManager.widgetConditionMap.get(l)).includes(m);if(!o.some((e=>e.includes(m)))&&!b||a.displayConditionManager.isInSameDetail(l,m)&&h!==p)return}var v=o.every((t=>M(t,e,a,!0)));if(v||a.hasManualChangeForm){var j=o.map((t=>M(t,e,a)));e.data.value="".concat(g(j,s)||"0")}a.handleWidgetChange(e.id,!a.hasManualChangeForm)}}})),checkConditionCompare:(e,t)=>Object(m.d)(e.data.value,t)&&e.data.visible,init(e,t){var{data:{formula:{arg:a,exp:r}}}=e,i=a.map((a=>M(a,e,t)));e.data.value="".concat(g(i,r)||"0")}}},,function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return r}));var r,i="/api/user/userInfo";!function(e){e[e.Close=0]="Close",e[e.Open=1]="Open"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return c}));var r=a(6),i=a(20),n=Object(i.c)("pc:src/utils/fetch-symbol/index.ts");class o{constructor(){Object(r.a)(this,"symbolId",void 0),Object(r.a)(this,"lastFetchCtx",void 0),Object(r.a)(this,"lastFetchId",void 0),this.symbolId=Date.now()}setFetchCtx(e){this.lastFetchCtx=e,this.lastFetchId=Date.now()}clear(){this.lastFetchCtx=null,this.lastFetchId=null}toJSON(){var{symbolId:e,lastFetchId:t}=this;return JSON.stringify({symbolId:e,lastFetchId:t})}}var s=()=>({before(e,t){var a;if(null!=t&&null!==(a=t.config)&&void 0!==a&&a.fetchSymbol){var r,i=null==t||null===(r=t.config)||void 0===r?void 0:r.fetchSymbol;if(n("commonReqSymbolLog",{symbolId:i.symbolId,fetchId:i.lastFetchId}),i.lastFetchCtx){var{lastFetchCtx:o}=i;"function"==typeof o.abort&&o.abort(),n("commonReqSymbolAbort",{symbolId:i.symbolId,fetchId:i.lastFetchId})}i.setFetchCtx(t)}},complete(e){var t;if(null!=e&&null!==(t=e.config)&&void 0!==t&&t.fetchSymbol){var a,r=null==e||null===(a=e.config)||void 0===a?void 0:a.fetchSymbol;r.clear(),n("commonReqSymbolClear",{symbolId:r.symbolId})}}}),c=()=>new o},,function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var r=a(9),i=a(6),n=a(23),o=a(600),s=a(16),c=a(319),l=a(17),d=a(20),u=a(12),p=a(147),m=Object(d.c)("pc:src/pc-pages/index/components/detail-module/message-bus/oa-bridge-server.ts");var h=new class{constructor(){var e=this;Object(i.a)(this,"onPreloadResolve",void 0),Object(i.a)(this,"onPreloadPromise",new Promise((e=>{this.onPreloadResolve=e}))),Object(i.a)(this,"onPreload",(()=>("function"==typeof this.onPreloadResolve&&(this.onPreloadResolve(),this.onPreloadResolve=void 0),m("iframeOnPreload"),Promise.resolve()))),Object(i.a)(this,"reportCacheHit",(e=>{var{option:t}=e;return console.debug(">>> message-bus reportCacheHit",t),m("iframeReportCacheHit",{hit:t.hit.toString()}),Object(u.b)(l.f.ApprovalReportCacheHit,{hit:t.hit.toString()}),Promise.resolve()})),Object(i.a)(this,"transferPreloadData",function(){var t=Object(r.a)((function*(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.filter((e=>{var{DisplayMethod:t,System:a}=e;return"oa"===a&&t===n.b.Normal})).map((e=>{var t,{TaskUniqueID:a,ProcessUniqueID:r,DefinitionKey:i,TaskNodeName:n,Attributes:s}=e,c=null===(t=s.find((e=>"task_business_key"===e.Key)))||void 0===t?void 0:t.Value;return{taskId:a,processId:r,definitionKey:i,openUrl:Object(o.a)(e),nodeName:n,bizKey:c}}));yield e.onPreloadPromise,console.debug(">>> oa transfer preload",r),m("iframeSendPreload",{items:r}),p.a.transferMessage({type:"oaPreload",items:r},p.a.getChannel("".concat(a,"oa")))}));return function(e){return t.apply(this,arguments)}}()),Object(i.a)(this,"openApprovalDetailByDrawer",function(){var e=Object(r.a)((function*(e){var{option:t}=e;if(null==t||!t.instanceId)return Object(u.b)("openApprovalDetailByDrawer",{message:"Failed to openApprovalDetailByDrawer!",instanceId:t.instanceId});Object(c.a)(null==t?void 0:t.instanceId),Object(u.b)("openApprovalDetailByDrawer",t)}));return function(t){return e.apply(this,arguments)}}()),Object(i.a)(this,"resetData",(()=>{this.onPreloadPromise=new Promise((e=>{this.onPreloadResolve=e}))})),Object(i.a)(this,"getToken",Object(r.a)((function*(){return(yield s.c.v2GetOAAccess()).data}))),Object(i.a)(this,"switchCommentBtn",function(){var e=Object(r.a)((function*(e,t){var{option:a}=e,{setShowCommentBtn:r}=t;r(a.value)}));return function(t,a){return e.apply(this,arguments)}}()),Object(i.a)(this,"switchCommentGuide",function(){var e=Object(r.a)((function*(e,t){var{option:a}=e,{setShowCommentGuide:r}=t;r(a.value)}));return function(t,a){return e.apply(this,arguments)}}())}}},,function(e,t,a){"use strict";a.d(t,"b",(function(){return v})),a.d(t,"a",(function(){return j}));var r=a(489),i=a.n(r),n=a(490),o=a.n(n),s=a(491),c=a.n(s),l=a(635),d=a.n(l),u=a(306),p=a.n(u),m=a(492),h=a.n(m),b=a(272),g=a.n(b),v={doc:i.a,docx:i.a,ppt:o.a,pptx:o.a,xls:c.a,xlsx:c.a,pdf:d.a,mp4:p.a,mov:p.a,rmvb:p.a,avi:p.a,zip:h.a,rar:h.a,jpg:g.a,jpeg:g.a,png:g.a,bmp:g.a,gif:g.a},j=["app","heic"]},,function(e,t,a){"use strict";var r=a(1),i=a(3),n=a.n(i),o=a(884),s=a.n(o),c=a(33),l=a(156),d=a(8),u=a.n(d),p=(a(1227),a(0));t.a=n.a.memo((e=>{var{size:t=64,url:a,defaultPlaceholder:n=s.a,autoSlice:o=!0,enableProfile:d=!0,userId:m,openId:h,className:b="",customSelector:g=".avatar-img"}=e,[v,j]=Object(i.useState)("");Object(i.useEffect)((()=>{if(o){var e=Object(c.a)(a,t);j(e)}}),[o,a,t]);var O=Object(i.useCallback)((e=>{e.stopPropagation(),d&&Object(l.a)({userId:m,openId:h,selector:g})}),[d,m,h]),f={width:"".concat(t/2,"px"),height:"".concat(t/2,"px"),backgroundImage:"url(".concat(o?v:a,")")};return Object(p.jsx)(r.r,{style:{width:"".concat(t/2,"px"),height:"".concat(t/2,"px")},className:u()("la-avatar",b),children:Object(p.jsxs)(r.r,{className:"avatar",style:{width:"".concat(t/2,"px"),height:"".concat(t/2,"px")},onClick:O,children:[a&&Object(p.jsx)(r.r,{className:"avatar-img",style:f}),Object(p.jsx)(r.g,{style:{width:"".concat(t/2,"px"),height:"".concat(t/2,"px")},className:"placeholder",src:n,mode:"aspectFit"})]})})}))},function(e,t,a){"use strict";a.d(t,"b",(function(){return S})),a.d(t,"a",(function(){return w}));var r=a(6),i=a(3),n=a.n(i),o=a(1),s=a(8),c=a.n(s),l=a(396),d=a(896),u=a.n(d),p=a(897),m=a.n(p),h=a(898),b=a.n(h),g=a(899),v=a.n(g),j=a(900),O=a.n(j),f=a(21),M=a(387),_=a(233),y=a(2),D=a(29),N=(a(1243),a(162)),A=a(659),T=a(36),I=a(0),C="info-card",x=(e,t)=>{var a=Object(I.jsx)(n.a.Fragment,{children:t.map((e=>{var{userAvatarUrl:t,userId:a,userName:r}=e;return Object(I.jsxs)(o.r,{className:"popover-list-item",children:[Object(I.jsx)(l.a,{width:32,height:32,userId:a||"",url:t,canViewProfile:Boolean(a)&&t!==f.d.CC,whiteBorder:!0}),Object(I.jsx)(o.p,{children:r})]},a)}))});return Object(I.jsx)(o.r,{className:"popover-wrapper",children:Object(I.jsx)(A.a,{renderContent:a,popoverStyle:{width:"180px",padding:"4px 1px",maxHeight:"350px",overflowY:"scroll"},children:Object(I.jsx)(o.p,{className:"text-btn",children:e})})})},S=e=>{var t=(e||[]).slice(0,2).map((e=>e.userName)).join("、"),a=e.length;return a<=2?t:"".concat(t).concat(Object(y.t)("search.view_range_num",{num:a}))};class w extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"showProfile",((e,t)=>a=>{a.stopPropagation(),Boolean(e)&&t!==f.d.CC&&e&&Object(T.q)(e,a,this.$scope,".info-card-desc-content .text-btn")})),Object(r.a)(this,"renderRollbackDesc",(()=>{var{rollbackInfos:e=[],descContent:t,isRejectTask:a}=this.props;return Object(I.jsxs)(n.a.Fragment,{children:[Object(I.jsx)(o.p,{style:{color:"#ff5b4c"},children:"".concat(t," ")}),(()=>{var{length:t}=e;return e.map(((e,r)=>{var{nodeName:i,userList:s=[],defKey:c}=e,l=s.length,d=S(s);return Object(I.jsxs)(n.a.Fragment,{children:[a?null:Object(I.jsx)(o.p,{className:"rollback-text rollback-nodeName",children:i}),1===l?Object(I.jsx)(o.p,{className:"text-btn",onClick:this.showProfile(s[0].userId,s[0].userAvatarUrl),children:d}):x(d,s),r!==t-1&&Object(I.jsx)(o.p,{className:"rollback-text",children:"、"})]},c)}))})()]})}))}getDescColor(e){return[f.k.CREATE,f.k.AGREE,f.k.CREATE_WITHDRAW,f.k.CREATE_MODIFY].includes(e)?"#34C724":[f.k.CURRENT].includes(e)?"#3370FF":[f.k.REJECT].includes(e)?"#FF5b4C":[f.k.DELETE,f.k.CLEAR,f.k.TERMINATED].includes(e)?"#F54A45":"#646A73"}render(){var{avatarUrl:e="",userId:t="",consignUserId:a="",consignUserName:r="",mainTitle:i="",status:n=f.k.CURRENT,timeStr:s,agentUserType:d=f.a.Normal,accepterName:p="",accepterId:h="",originNodeType:g,insteadCreator:j,showApprovalNodeName:A=!1,nodeName:T}=this.props,{descContent:x}=this.props;x=n===f.k.ROLLBACK?this.renderRollbackDesc():x;var S=n===f.k.CURRENT?b.a:u.a;[f.k.REJECT,f.k.DELETE,f.k.CLEAR,f.k.TERMINATED].includes(n)&&(S=v.a),n===f.k.ROLLBACK&&(S=O.a),n===f.k.REDIRECT&&(S=m.a);var w=d===f.a.InsteadSubmitter,L=a&&!w?Object(I.jsxs)(o.r,{className:"info-card-main-title-tips",children:["(",Object(_.a)(g===D.k.TRANSACT?"approval-mp_DelegatesOnBehalf_Desc":"Delegation.AgentXXXForApproval",{delegate:Object(N.b)(a,r)}),")"]}):null,E=d===f.a.Manager&&n===f.k.REDIRECT;if(E&&(L=Object(I.jsx)(o.r,{className:"info-card-main-title-tips",children:"(".concat(Object(y.t)("TimeLine.Node.Transfer.ApproverName.ExtraText","管理员"),")")}),x=Object(_.a)(g===D.k.TRANSACT?"TimeLine.Handler.Transfer.HintText":"TimeLine.Node.Transfer.HintText",{oldApprover:Object(N.b)(a,r),newApprover:Object(N.b)(h,p)})),j||w){var k=x,z=j?j.userId:a,R=j?j.userName:r,P=Object(_.a)("approvalForm.instead",{name:Object(N.b)(z,R,{margin:0})});x=[k,Object(I.jsx)(o.r,{className:"instead",children:P},"insteadSubmit")]}var U=d===f.a.Manager&&n===f.k.CC;U&&(L=Object(I.jsx)(o.r,{className:"info-card-main-title-tips",children:"(".concat(Object(y.t)("TimeLine.Node.Transfer.ApproverName.ExtraText","管理员"),")")}));var B=E||!a||U||w?void 0:Object(y.t)("Delegation.AgentAvatarTag","代");return Object(I.jsxs)(o.r,{className:c()(C,{"no-desc":!x,["".concat(C,"-single-text")]:!x}),children:[Object(I.jsxs)(o.r,{className:"info-card-avatar",children:[Object(I.jsx)(l.a,{width:40,height:40,userId:t||"",url:e,tag:B,canViewProfile:Boolean(t)&&e!==f.d.CC,whiteBorder:!0}),n!==f.k.PREVIEW&&n!==f.k.RED&&Object(I.jsx)(o.r,{className:"info-card-badge",children:Object(I.jsx)(o.g,{src:S,className:"info-card-badge-image"})})]}),Object(I.jsxs)(o.r,{className:"info-card-text",children:[Object(I.jsxs)(o.r,{className:"info-card-main-title",children:[Object(I.jsx)(o.p,{selectable:!0,children:i}),A&&T?"(".concat(T,")"):null,L]}),x&&Object(I.jsx)(o.r,{className:"info-card-desc-content",style:{color:this.getDescColor(n)},children:Object(M.a)(x)?Object(I.jsx)(o.p,{selectable:!0,children:x}):x})]}),n&&n!==f.k.PREVIEW&&n!==f.k.RED&&Object(I.jsx)(o.r,{className:"complete-time",children:Object(I.jsx)(o.p,{selectable:!0,children:s})})]})}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var r="#3370ff",i="#245bdb"},function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return g}));var r,i,n,o=a(11),s=a(6),c=a(7),l=(a(56),a(4)),d=a(74),u=a(12),p=a(16),m=a(10),h=a(17),b=a(307);!function(e){e[e.NO_PERMISSION=4006]="NO_PERMISSION"}(n||(n={}));var g=(r=class{constructor(){Object(o.a)(this,"candidateListLoading",i,this),Object(s.a)(this,"candidateList",[]),Object(s.a)(this,"fetchCandidateListByDepartmentId",Object(l.k)(this._fetchCandidateListByDepartmentId)),Object(s.a)(this,"fetchCandidateListBySearch",Object(l.k)(this._fetchCandidateListBySearch)),Object(s.a)(this,"fetchChildrenByDepartmentId",Object(l.k)(this._fetchChildrenByDepartmentId)),Object(s.a)(this,"requestFreeCc",Object(l.k)(this._requestFreeCc))}clearCandidateList(){this.candidateList=[]}*_fetchCandidateListByDepartmentId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.candidateListLoading=!0;try{var t=yield this.fetchDepartmentChildrenByDapartmentId(e);this.candidateList=t}catch(e){Object(u.b)(h.f.ApprovalError,{location:"in function fetchCandidateListByDepartmentId at src/components/approval-detail/modals/cc-modal/cc-modal-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{this.candidateListLoading=!1}}*_fetchCandidateListBySearch(e){this.candidateListLoading=!0;var t={query:e,offset:0,pageSize:20};try{var a=(yield p.c.usersearchUserDepartments(t)).data.entityList,r=[];a.forEach((e=>{e.type===b.a.DEP&&r.push({type:d.a.GROUP,id:e.id,title:e.name,showFoldButton:e.subVisible,children:null}),e.type===b.a.MEMBER&&r.push({type:d.a.PERSON,id:e.id,title:e.name,avatarUrl:e.iconLink,subTitle:e.email,children:null})})),this.candidateList=r}catch(e){Object(u.b)(h.f.ApprovalError,{location:"in function fetchCandidateListBySearch at src/components/approval-detail/modals/cc-modal/cc-modal-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{this.candidateListLoading=!1}}*_fetchChildrenByDepartmentId(e){this.candidateListLoading=!0;try{var t=yield this.fetchDepartmentChildrenByDapartmentId(e),a=this.find(this.candidateList,e);a&&(a.children=t)}catch(e){Object(u.b)(h.f.ApprovalError,{location:"in function fetchChildrenByDepartmentId at src/components/approval-detail/modals/cc-modal/cc-modal-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{this.candidateListLoading=!1}}find(e,t){var a=!1,r=null;return function e(i){for(var n of i){if(n.id===t){r=n,a=!0;break}if(n.children&&(e(n.children),a))break}}(e),r}fetchDepartmentChildrenByDapartmentId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(((t,a)=>{var r={departmentId:e};p.c.userqueryUsersByDepartmentId(r).then((e=>{var{infos:a}=e.data,r=[];a.forEach((e=>{e.userType===b.b.DEP&&r.push({type:d.a.GROUP,id:e.userId,title:e.userName,showFoldButton:e.subVisible,children:null}),e.userType===b.b.MEMBER&&r.push({type:d.a.PERSON,id:e.userId,title:e.userName,avatarUrl:e.iconLink,subTitle:e.email,children:null})})),t(r)})).catch((e=>{a(e)}))}))}*_requestFreeCc(e){var{instanceId:t,ccIds:a,comment:r,reasonVersion:i}=e,n={instanceId:t,targetUserIds:a,reason:r,reasonVersion:i};return yield p.c.ccreal(n)}},i=Object(c.a)(r.prototype,"candidateListLoading",[l.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(c.a)(r.prototype,"clearCandidateList",[l.f],Object.getOwnPropertyDescriptor(r.prototype,"clearCandidateList"),r.prototype),r)},function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o}));var r=a(47),i=a(2),n=(e,t)=>{var{instanceName:a,instanceStatus:n,instanceIdList:o,modifyInstanceList:s,originalModifyStatus:c,instanceTitle:l}=e,d=Boolean(o&&o.length>0),u=n===r.d.IN_PROCESS,p=n===r.d.WITHDRAW,m=n===r.d.REJECTED,h=Boolean(s)&&s.length>0,b=h&&void 0===c,g=h&&void 0!==c,v=t&&h&&(p||m)?r.d.APPROVED:n;return{hasModified:h,titleContent:(()=>{var e=l||a;return d&&u&&(e=Object(i.t)("ApprovalList_CanceledPrefix",{name:e})),b&&(e="".concat(e,"(").concat(Object(i.t)("ModifyTag"),")")),e})(),isNewApproval:b,finalInstanceStatus:v,isModifyOriginApproval:g}},o=(e,t)=>{var a,i=((e,t)=>{var a;return Boolean(null===(a=e.modifyInstanceList)||void 0===a?void 0:a.length)&&!t&&void 0===e.originalModifyStatus})(e,t),{modifyReason:n,instanceStatus:o}=e;return!(!(null!=n&&n.text||null!=n&&null!==(a=n.files)&&void 0!==a&&a.length)||!i&&(!t||o!==r.d.IN_PROCESS&&o!==r.d.APPROVED))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var r,i,n,o=a(11),s=(a(6),a(7)),c=(r=(a(56),a(4)).q.shallow,i=class{constructor(){Object(o.a)(this,"registry",n,this)}use(e){this.registry.push(e)}},n=Object(s.a)(i.prototype,"registry",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i),l=new c},function(e,t,a){"use strict";a(3);var r=a(1),i=a(8),n=a.n(i),o=a(208),s=a.n(o),c=a(504),l=a.n(c),d=a(0);t.a=e=>{var{loading:t=!0,text:a}=e;return Object(d.jsx)(r.r,{className:l.a["loading-wrapper"],children:t?Object(d.jsxs)(r.r,{className:n()(l.a.loading),children:[Object(d.jsx)(r.g,{className:l.a["loading-icon"],src:s.a}),Object(d.jsx)(r.r,{className:l.a["loading-text"],children:a})]}):Object(d.jsx)(r.r,{className:n()(l.a["none-more-wrapper"]),children:a})})}},function(e,t,a){"use strict";var r,i=a(9),n=a(3),o=a.n(n),s=a(186),c=a(15),l=a(1),d=a(1434),u=a(987),p=a(4),m=a(157),h=(a(836),a(92)),b=a(2),g=a(398),v=(a(837),a(129)),j=a.n(v),O=a(0);!function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.NORMAL=1]="NORMAL"}(r||(r={}));var f,M="$HIGHLIGHT";!function(e){e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM"}(f||(f={}));t.a=Object(c.a)((e=>{var{RenderItem:t,FooterContent:a,defaultOptions:c=[],keyOfName:v="name",keyOfValue:_="value",enableSearch:y=!1,placeholder:D=Object(b.t)("Validation.PleaseSelectSth"),searchFunction:N,onChange:A,disabled:T=!1,hasError:I=!1,errorMessage:C="",onClear:x,DisplayFormat:S,value:w,defaultEmptyText:L,noMoreDataTip:E,emptyDataTip:k=Object(b.t)("CreateList.NoSearchResult"),defaultKeyOfName:z=""}=e,R=Object(n.useMemo)((()=>"select".concat((new Date).getTime()).concat(Math.ceil(1e4*Math.random()))),[]),P=Object(s.d)((()=>({visible:!1,modalPosition:{x:0,y:0,position:f.BOTTOM},modalWidth:0,options:c,switchVisible:Object(p.f)((e=>{P.visible=void 0===e?!P.visible:e})),setModalPosition:Object(p.f)(((e,t,a)=>{P.modalPosition={x:e,y:t,position:a}})),setModalWidth:Object(p.f)((e=>{P.modalWidth=e})),setOptions:Object(p.f)((e=>{P.options=e})),selected:w,setSelected:Object(p.f)((e=>{P.selected=e})),searchInput:"",setSearchInput:Object(p.f)((e=>{P.searchInput=e})),get getDisplayText(){return P.selected?{text:S?Object(O.jsx)(S,{selected:P.selected}):P.selected[v]||P.selected[z],style:r.NORMAL}:{text:D,style:r.PLACEHOLDER}},get isSelected(){return!y&&P.selected||!P.visible&&P.selected}})));Object(n.useEffect)((()=>{P.setSelected(w)}),[w]);var U=()=>{P.switchVisible()},B=()=>{new Promise((e=>{var{windowHeight:t}=tt.getSystemInfoSync(),a=tt.createSelectorQuery();a.select("#".concat(R)).boundingClientRect(),a.exec((a=>{var[r]=a,{height:i,width:n,bottom:o}=r,s=t-o;P.setModalWidth(n),P.setModalPosition(0,i+4,s>246?f.BOTTOM:f.TOP),e(!0)}))})).then((()=>{P.switchVisible(!0),F({detail:{value:""}})}))},F=Object(m.a)(function(){var e=Object(i.a)((function*(e){var{detail:{value:t}}=e;if(P.setSearchInput(t),t){if(N){var a=yield N(t);P.setOptions(((e,t)=>(e.forEach((e=>{e[v]&&-1!==e[v].toLowerCase().indexOf(t).length?e[M]=Object(h.g)(e[v],t):e[M]=e[v]?[e[v]]:[]})),e))(a||[],t))}}else P.setOptions(c)}));return function(t){return e.apply(this,arguments)}}(),50),Y=e=>{P.setSelected(e),A&&A(e||null)};return Object(O.jsxs)(l.r,{className:j.a.relative,children:[Object(O.jsxs)(l.r,{className:"".concat(j.a.main_wrap," ").concat(y&&!P.isSelected?j.a.is_search:""),style:{backgroundColor:T?"#EFF0F1":""},id:R,children:[(P.isSelected||!y)&&Object(O.jsx)(l.r,{className:"".concat(j.a.display_text," ").concat(P.getDisplayText.style===r.PLACEHOLDER?j.a.placeholder:""),children:P.getDisplayText.text}),P.isSelected&&Object(O.jsx)(l.r,{className:"iconfont icon-empty ".concat(j.a.clear),onClick:()=>{Y(null),x&&x()}}),Object(O.jsx)(l.r,{className:"iconfont icon-icon_down_outlined1 ".concat(j.a.icon)}),!y&&Object(O.jsx)(l.r,{className:j.a.fake_input_wrap,children:Object(O.jsx)(d.a,{className:j.a.fake_input,onBlur:U,onFocus:B,disabled:T})}),y&&Object(O.jsx)(g.a,{className:"".concat(j.a.search_input," ").concat(P.isSelected?j.a.hidden:""),onBlur:U,onFocus:B,disabled:T,onInput:F,value:P.searchInput,placeholder:o.a.isValidElement(P.getDisplayText.text)?"":P.getDisplayText.text,hasError:I,errorMessage:C})]}),Object(O.jsx)(l.r,{className:"ud-modal-container"}),Object(O.jsx)(l.r,{className:"".concat(j.a.wrap," custom-select-modal-wrap"),children:Object(O.jsx)(u.a,{visible:P.visible,overlay:!0,overlayClosable:!0,position:"top",className:j.a.custom_modal,onClose:()=>P.switchVisible(!1),onAfterclose:()=>{P.setSearchInput("")},children:Object(O.jsxs)(l.r,{className:j.a.modal_main_wrap,style:{left:"".concat(P.modalPosition.x,"px"),[P.modalPosition.position===f.BOTTOM?"top":"bottom"]:"".concat(P.modalPosition.y,"px"),width:"".concat(P.modalWidth,"px")},children:[Object(O.jsxs)(l.r,{className:j.a.scroll_wrap,children:[Boolean(L)&&!y&&0===P.options.length&&Object(O.jsx)(l.r,{className:j.a.empty_wrap,children:L}),P.options.map(((e,a)=>{var r=e[v],i=e[_],n=e[M]||[],o=Boolean(P.selected&&P.selected[_]===i);return t?Object(O.jsx)(t,{data:e,onClick:()=>Y(e),checked:o,highlightName:n},a):Object(O.jsx)(l.r,{className:j.a.default_item_wrap,children:Object(O.jsxs)(l.r,{className:j.a.inner,onClick:()=>Y(e),children:[n&&n.length>0&&Object(O.jsx)(l.r,{className:j.a.highlight_wrap,children:n.map((e=>"object"==typeof e?Object(O.jsx)(l.r,{className:j.a.highlight_color,children:e.value}):e))}),(!n||0===n.length)&&Object(O.jsx)(l.r,{children:r}),o&&Object(O.jsx)(l.r,{className:"iconfont icon-xiala_xuanzhong ".concat(j.a.checked)})]})},a)})),y&&Boolean(E)&&P.options.length>0&&Object(O.jsx)(l.r,{className:j.a.no_more_data,children:E}),y&&Boolean(k)&&0===P.options.length&&Object(O.jsx)(l.r,{className:j.a.no_more_data,children:k})]}),a&&Object(O.jsx)(a,{})]})})})]})}))},function(e,t,a){"use strict";a(3);var r=a(15),i=a(1),n=a(987),o=a(805),s=(a(838),a(339)),c=a.n(s),l=a(0);t.a=Object(r.a)((e=>{var{visible:t,title:a,content:r,buttons:s=[],customStyle:d}=e;return Object(l.jsx)(n.a,{visible:t,overlayClosable:!1,position:"center",customStyle:d,children:Object(l.jsxs)(i.r,{className:c.a.main_wrap,children:[Object(l.jsx)(i.r,{className:c.a.left,children:Object(l.jsx)(i.r,{className:"iconfont icon-icon-device-disabled ".concat(c.a.icon)})}),Object(l.jsxs)(i.r,{className:c.a.right,children:[Object(l.jsx)(i.r,{className:c.a.title,children:a}),Object(l.jsx)(i.r,{className:c.a.content,children:r}),Object(l.jsx)(i.r,{className:c.a.footer_wrap,children:s.map((e=>Object(l.jsx)(o.a,{className:c.a.btn,type:e.type,onClick:()=>e.fn(),warn:e.warn,children:e.text},e.text)))})]})]})})}))},function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return o}));var r=a(13),i={[r.c.SINGLE_INPUT]:{width:160},[r.c.TEXTAREA]:{width:160,maxWidth:270},[r.c.DESC]:{width:160},[r.c.NUMBER_INPUT]:{width:160},[r.c.CALCULATION_FORMULA]:{width:160},[r.c.AMOUNT_INPUT]:{width:144,maxWidth:220},[r.c.SINGLE_SELECT]:{width:160},[r.c.SINGLE_SELECT_V2]:{width:160},[r.c.MULTI_SELECT]:{width:270},[r.c.MULTI_SELECT_V2]:{width:270},[r.c.ADDRESS]:{width:270},[r.c.DATE_TIME]:{width:160},[r.c.DATE_INTERVAL]:{width:310},[r.c.IMAGE]:{width:154},[r.c.ATTACHMENT]:{width:200},[r.c.ATTACHMENT_V2]:{width:200},[r.c.RELATIVE_APPROVAL]:{width:200},[r.c.CONTACT]:{width:160},[r.c.DEPARTMENT]:{width:160},[r.c.TELEPHONE]:{width:220}},n={[r.c.TEXTAREA]:{width:160,maxWidth:240},[r.c.MULTI_SELECT]:{maxWidth:240},[r.c.MULTI_SELECT_V2]:{maxWidth:240},[r.c.IMAGE]:{width:212},[r.c.ATTACHMENT]:{width:160,maxWidth:240},[r.c.ATTACHMENT_V2]:{width:160,maxWidth:240},[r.c.RELATIVE_APPROVAL]:{width:160,maxWidth:240},[r.c.CONTACT]:{width:160,maxWidth:240},[r.c.DEPARTMENT]:{width:160,maxWidth:240},[r.c.ADDRESS]:{width:160,maxWidth:240},[r.c.NUMBER_INPUT]:{align:"right"},[r.c.AMOUNT_INPUT]:{align:"right",maxWidth:1e3},[r.c.CALCULATION_FORMULA]:{align:"right"}},o=[r.c.SINGLE_INPUT,r.c.TEXTAREA]},function(e,t,a){"use strict";var r=a(5),i=(a(3),a(8)),n=a.n(i),o=a(1),s=a(40),c=a(20),l=a(44),d=a(219),u=a(2),p=a(419),m=a.n(p),h=a(0),b=Object(c.c)("pc:src/pc-pages/index/components/batch-operate-tooltip/index.tsx");t.a=e=>{var{textStyle:t,arrowStyle:a={},tooltip:i,tooltipFrontAdmin:c,tooltipBehindAdmin:p,admin:g,isAdminTooltip:v,position:j="top",children:O,isInList:f=!0}=e;return Object(h.jsx)(s.c,{leaveDelay:200,textClass:v?n()(m.a["batch-tooltip"]):"",textStyle:t,arrowStyle:v?Object(r.a)({color:"#fff"},a):a,arrowClass:v?n()(m.a["white-arrow"]):"",arrow:!0,position:j,text:v?Object(h.jsxs)(o.r,{className:n()(m.a["batch-tooltip-inner"]),children:[Object(h.jsx)(o.r,{className:n()(m.a["batch-tooltip-text"]),children:c}),Object(h.jsx)(o.r,{className:n()(m.a["batch-tooltip-admin"]),style:Object(u.getSimpleCurrentLanguage)()!==u.SimpleLangEnum.en?{margin:"0 4px"}:{},onClick:()=>{b("commonLog",{msg:"batch-operate-tooltip enterChat",openid:null==g?void 0:g.OpenID}),f?d.a.batchConnectAdminInlist():d.a.batchConnectAdmin(),tt.enterChat({openid:null==g?void 0:g.OpenID,success(e){b("commonLog",{msg:"batch-operate-tooltip enterChat success",res:e})},fail(e){b("commonOnError",{msg:"batch-operate-tooltip enterChat fail",error:Object(l.a)(e)})}})},children:null==g?void 0:g.Name}),Object(h.jsx)(o.r,{className:n()(m.a["batch-tooltip-text"]),children:p})]}):Object(h.jsx)(o.r,{children:i}),children:O})}},function(e,t,a){"use strict";var r=a(17),i=a(12);t.a={getAttributeParam:(e,t)=>{var a=e[t];try{return a?(e=>{if(!e||!e.type)return null;switch(e.type){case"string":return e.value||"";case"boolean":case"number":case"array":case"object":try{return JSON.parse(e.value)}catch(e){return Object(i.b)(r.f.ApprovalError,{location:"in function parseSchema at src/utils/backend-attribute.ts",message:JSON.stringify(e)}),null}}})(JSON.parse(a)):null}catch(e){return Object(i.b)(r.f.ApprovalError,{location:"in function getAttributeParam at src/utils/backend-attribute.ts",message:JSON.stringify(e)}),null}},setAttributeParam:(e,t)=>({data:{[e]:JSON.stringify(t)}})}},function(e,t,a){"use strict";a.d(t,"c",(function(){return Ie})),a.d(t,"a",(function(){return Q})),a.d(t,"b",(function(){return te}));var r=a(5),i=a(1477),n=a(217),o=a(361),s=a(133),c=a(37),l=a(9),d=a(17),u=a(19),p=a.n(u),m=a(2),h=a(16),b=a(241),g=a(10),v=a(33),j=a(35),O=a(76),f=a(36),M=a(237),_=a(319),y=a(672),D=a(163),N=a(23),A=a(322),T=a(12),I=a(20),C=a(44),x=a(75),S=a(577),w=a(155),L=(a(3),a(704)),E=a(0),k=Object(s.e)((e=>t=>{var{id:a,onClose:r}=t;return Object(E.jsx)(L.a,{needModalBg:!0,visible:!0,close:t=>{e.close(),null==r||r(t)},currentAccountId:a})})),z=a(78),R=a(81),P=a(356),U=a(24),B=a(297),F=["userId","openid"],Y=["clientX","clientY","textWidth"],Q="#__HOSTING__",G=e=>{var{left:t=0,top:a=0}=e;return new Promise((e=>{var r=setTimeout((()=>e({left:t,top:a})),500);p.a.createSelectorQuery().select(Q).boundingClientRect((i=>{clearTimeout(r);var{left:n,top:o}=i;e({left:n+t,top:o+a})})).exec()}))},W=function(){var e=Object(l.a)((function*(e){var t=yield G(e),a=Object(r.a)(Object(r.a)({},e),t),{userId:i,openid:n}=a,o=Object(c.a)(a,F);if(n)return tt.enterProfile(Object(r.a)(Object(r.a)({},o),{},{openid:n}));if(i){var s=b.a.get(i);if(s)return tt.enterProfile(Object(r.a)(Object(r.a)({},o),{},{openid:s}));try{var l=yield Object(w.a)({api:h.c,params:{userIds:[i]},cacheOpenId:!0}),{userList:u}=l.data;if(u.length){var{openId:p}=u[0];p&&tt.enterProfile(Object(r.a)(Object(r.a)({},o),{},{openid:p}))}}catch(e){g.a.error("[showUserProfile]",e),Object(T.b)(d.f.ApprovalError,{location:"in function showUserProfile at src/pc-pages/index/components/detail-module/hosting/actions.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))})}}else g.a.warn("[showUserProfile]","Neither openid nor userId are available!",e)}));return function(t){return e.apply(this,arguments)}}(),V={},H=function(){var e=Object(l.a)((function*(e,t,a){return p.a.showLoading({title:Object(m.t)("Loading"),mask:!0}),new Promise(((r,i)=>{p.a.downloadFile({url:e,header:a,filePath:t?"ttfile://temp/".concat(t):void 0,success:t=>{var{tempFilePath:a}=t;V[e]=a,r(a)},fail:e=>{g.a.warn("🚀 ~ previewFile ~ res",e),i(e)},complete:()=>{p.a.hideLoading()}})}))}));return function(t,a,r){return e.apply(this,arguments)}}(),Z=e=>(p.a.showLoading({title:Object(m.t)("Loading"),mask:!0}),new Promise(((t,a)=>{p.a.openDocument({filePath:e,success:e=>{t()},fail:e=>{a(e)},complete:()=>{p.a.hideLoading()}})}))),q=function(){var e=Object(l.a)((function*(e,t,a){try{var r=V[e];return r?yield Z(r):yield Z(yield H(e,t,a))}catch(e){throw j.b.showToast({title:Object(m.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),e}}));return function(t,a,r){return e.apply(this,arguments)}}(),K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{path:a,suffix:r}=Object(v.n)(e[t]);return new Promise(((t,i)=>{p.a.previewImage({urls:e.map((e=>Object(v.j)(e,0,r))),current:Object(v.j)(a),success:e=>{t(e)},fail:e=>{i(e)},complete:()=>{p.a.hideLoading()}})}))},J=function(){var e=Object(l.a)((function*(e){var{url:t,name:a,header:r}=e;try{var i=Object(O.c)(t);yield Object(f.d)({url:"".concat(t).concat("img"===Object(M.b)(t)?i:""),name:a,header:r},(e=>{g.a.warn("下载进度",e)}))}catch(e){if(e&&e.errMsg&&e.errMsg.includes("user canceled"))return;throw j.b.showToast({title:Object(m.t)("ApprovalForm.AttachmentUndownloadable"),icon:"error",duration:3e3}),e}}));return function(t){return e.apply(this,arguments)}}(),X=e=>{g.a.info("bolt options",e);var{sharedFor:t,instanceId:a,parentShareCode:r,actAs:i,optionalPeopleList:n}=e;return new Promise("related-person"===t?e=>{Object(s.f)({instanceId:a,parentShareCode:r,actAs:i,optionalPeopleList:n,onSubmit(){e({})}})}:e=>{tt.chooseChat({confirmTitle:Object(m.t)("HostingActions_ShareDocument_ConfirmTitle"),multiSelect:!0,showMessageInput:!0,externalChat:!1,allowCreateGroup:!1,success:function(){var t=Object(l.a)((function*(t){g.a.info("chooseChat",t),tt.showLoading({title:Object(m.t)("HostingActions_ShareDocument_ConfirmLoadingText")});var{message:n,data:o}=t;try{var s=yield h.c.instanceshare({userIds:[],instanceId:a,chatIds:o.map((e=>e.id)),comment:n,shareCode:r},{query:i?{act_as:i}:{}});s?(e({}),tt.hideLoading(),tt.showToast({title:Object(m.t)("HostingActions_ShareDocument_Success"),duration:3e3})):(tt.hideLoading(),tt.showToast({title:Object(m.t)("Toast_3"),icon:"error",duration:3e3}))}catch(e){tt.hideLoading(),-1===e.code?tt.showToast({title:Object(m.t)("network_error"),icon:"error",duration:3e3}):10157===e.code?tt.showModal({content:Object(m.t)("share_tips_100"),showCancel:!1}):10004===e.code?tt.showToast({title:e.message||Object(m.t)("Toast_3"),icon:"error",duration:3e3}):tt.showToast({title:Object(m.t)("Toast_3"),icon:"error",duration:3e3})}}));return function(e){return t.apply(this,arguments)}}(),fail(e){g.a.info("err",e)}})})},$=function(){var e=Object(l.a)((function*(e){try{var{instanceId:t,chatName:a,type:r,parentShareCode:i,chatFor:n,actAs:o,optionalPeopleList:c}=e,{openChatId:l,inChat:d}=yield h.c.chatgetChat({instanceId:t,shareCode:i},{query:o?{act_as:o}:{},disableFeedback:!0}).then((e=>{var{data:t}=e;return t||{}})).catch((e=>{if(g.a.error("获取群聊信息失败",r,e),Object(I.d)("commonOnError",{message:"获取群聊信息失败",errorMsg:Object(C.a)(e),type:r}),"create"===r&&-1!==e.code)return{};throw e}));if(!l)return yield new Promise(((e,r)=>{try{Object(s.c)({instanceId:t,chatName:a,parentShareCode:i,chatFor:n,actAs:o,optionalPeopleList:c,onSubmit(){e({result:"submited"})},onCancel(){e({result:"cancel"})}})}catch(e){g.a.error("createChatModal error",e),Object(I.d)("commonOnError",{message:"createChatModal error",errorMsg:Object(C.a)(e)}),r(e)}}));d?Object(f.e)(l):("create"===r?tt.showToast({title:Object(m.t)("HostingActions_JoinChat_CreatedHint")}):tt.showLoading({title:Object(m.t)("HostingActions_JoinChat_ConfirmLoadingText")}),yield h.c.chatchatEnter({procInstId:t,shareCode:i},{query:o?{act_as:o}:{},disableFeedback:!1,errorHandlers:{232010:()=>{tt.showToast({title:Object(m.t)("approval-mp_CantJoinContactAdmin_toast","当前无法加入内部群聊,请联系管理员"),forceToast:!0,duration:3e3})}}}).then((()=>{setTimeout((()=>{Object(f.e)(l)}),1500)})).finally((()=>{setTimeout((()=>{tt.hideLoading()}),1500)})))}catch(e){if(-1===e.code)return tt.showToast({title:Object(m.t)("network_error"),icon:"error",duration:3e3}),{result:"cancel"};throw e}}));return function(t){return e.apply(this,arguments)}}(),ee=e=>{var{instanceId:t,parentId:a,parentShareCode:r,detailPayload:i,allowNext:n,forEdit:o,customUrl:s,displayMethod:c}=e;return g.a.info("bolt displayMethod",c),c!==N.b.Trusteeship&&s?Object(P.b)(s)?void Object(R.g)({schema:s,external:!1}):void Object(D.b)({type:"drawer-webview",sourceName:"",intranetAccess:!1,webviewInfo:{url:s},id:t,searchKeyword:""}):o?new Promise((e=>{Object(_.a)(t,{allowNext:n,forAtEdit:o,parentId:a,parentShareCode:r,refreshAt(){g.a.info("bolt openApprovalDetailByDrawer refreshCallback"),e({type:"refreshCallback"})}})})):void Object(_.a)(t,{allowNext:n,forAtEdit:o,parentId:a,parentShareCode:r,displayMethod:c})},te=function(e){var{url:t,mode:a,webviewId:r}=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.b;g.a.info("bolt openDrawerWebview",t,a),"native"===a?Object(D.b)({type:"drawer-webview",sourceName:"",intranetAccess:!1,webviewInfo:{url:t},id:"custom",searchKeyword:""}):Object(y.a)({url:t,onAction(e){n.send({handler:"drawerWebviewAction",data:{webviewId:r,action:"action",option:e}})},onApproval(e){n.send({handler:"drawerWebviewAction",data:{webviewId:r,action:"approval",option:e}})},onClose(){n.send({handler:"drawerWebviewAction",data:{webviewId:r,action:"close"}})}})},ae=function(){var e=Object(l.a)((function*(e){var{taskId:t,instanceId:a,shareCode:r,prefetchKey:i,mode:n}=e,o=Object(A.b)({taskId:t,instanceId:a,shareCode:r,key:i});return o?o[n]:Promise.reject("没有缓存")}));return function(t){return e.apply(this,arguments)}}(),re=e=>new Promise(((t,a)=>{tt.chooseContact(Object(r.a)(Object(r.a)({},e),{},{success:e=>{t(e)},fail:e=>{a(e)}}))})),ie=(e,t)=>{Object(M.c)(Object(l.a)((function*(){Object(I.d)("fileBizDownload"),yield Object(f.d)({url:e,name:t})})),(e=>{j.b.showToast({title:Object(m.t)("ApprovalForm.AttachmentUndownloadable"),icon:"error",duration:3e3}),Object(I.d)("fileDownloadFail",{error:Object(C.a)(e),location:"in function download at src/components/configurable-form/components/widgets/attachment-v2/components/attachment-item/index.tsx"})}))},ne=function(){var e=Object(l.a)((function*(e){var{type:t,fileToken:a="",mountNodePoint:r,filePath:i,fileSize:n,fileName:o}=e,s=Object(x.d)({file_token:a,mount_node_token:r});switch(t){case"preview":if(!a)return;return void Object(M.c)(Object(l.a)((function*(){Object(I.d)("fileBizPreview");var e=yield Object(x.f)({file_token:a,mount_node_token:r}),{name:t}=e,i=e.type,n=z.a[i];if("pic"===n){var o=Object(O.c)(s);j.b.previewImage({urls:["".concat(s).concat("img"===Object(M.b)(s)?o:"")]})}else Object(B.b)(n)?yield Object(f.n)({url:s,name:t}):(j.b.showToast({title:Object(m.t)("PC.Error_AttachmentNotSupport"),icon:"error",duration:3e3}),setTimeout((()=>{ie(s,t)}),3e3))})),(e=>{j.b.showToast({title:Object(m.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),Object(I.d)("filePreviewFail",{error:Object(C.a)(e)})}));case"download":return a&&n&&o?Object(x.g)()?Object(x.c)({fileSize:n,fileToken:a,mountNodePoint:r,fileName:o}):void ie(s,o):void g.a.info("[drive action] error params");case"upload":return n&&i?Object(x.j)({fileSize:n,filePath:i,mountNodePoint:r}):void g.a.info("[drive action] error params");default:g.a.info("[drive action] error type")}}));return function(t){return e.apply(this,arguments)}}(),oe=e=>{try{return new Promise((t=>{Object(S.a)(Object(r.a)({onOk(e){t({departments:e,status:"ok"})},onCancel(){t({departments:[],status:"cancel"})}},e))}))}catch(e){g.a.error("chooseDepartments error",e)}},se=e=>{try{return new Promise((t=>{var{id:a}=e;k({id:a,onClose:e=>{t(e)}})}))}catch(e){g.a.error("chooseDepartments error",e)}},ce=e=>{var{clientX:t,clientY:a,textWidth:i=0}=e,n=Object(c.a)(e,Y);return new Promise(((e,o)=>{if(tt.openLingoProfile){tt.createSelectorQuery().select("#approval-detail-wrapper").boundingClientRect().exec((s=>{if(s[0]){var{left:c,top:l}=s[0];tt.openLingoProfile(Object(r.a)(Object(r.a)({},n),{},{textWidth:i,clientX:t+c+i,clientY:a+l-36,margin:10,analysisParams:{card_source:"app_6643645481266397447"},success:t=>{e(t)},fail:e=>{g.a.error("openLingoProfile fail:".concat(e)),o(e)}}))}}))}}))},le=e=>{var{definitionId:t,definitionName:a}=e;U.b.indexStore.menuStore.setSelectedKey(a,"todo",[t]),U.b.indexStore.todoStore.nextOpenBatchMode({showTip:!0})};function de(e){var{instanceId:t,widgetIDs:a}=e,{indexStore:{detailModuleStore:r}={}}=U.b;t&&(null!=a&&a.length&&(null==r||r.setActiveWidgetIDForEditHistory(a)),Object(_.a)(t))}function ue(e){var{instanceId:t,parentId:a,shareCode:r,printUrl:i}=e;if(i)Object(R.f)({type:"webview",webviewInfo:{url:i},offset:56});else{var{indexStore:{detailModuleStore:n}={}}=U.b;t&&(null==n||n.printByInstanceId(t,void 0,void 0,void 0,!0))}}function pe(e){var{appName:t=""}=e;return{10003:()=>{tt.showModal({title:Object(m.t)("DefaultModalTitle"),content:Object(m.t)("Resubmit.DefinitionDeleted"),showCancel:!1})},10030:()=>{tt.showModal({title:Object(m.t)("DefaultModalTitle"),content:Object(m.t)("Resubmit.DefinitionDisabled"),showCancel:!1})},10112:()=>{t?tt.showModal({title:Object(m.t)("DefaultModalTitle"),content:Object(m.t)("Resubmit_SubmitInISV",{name:t}),showCancel:!1}):tt.showModal({title:Object(m.t)("DefaultModalTitle"),content:Object(m.t)("Resubmit.DefinitionInvisible"),showCancel:!1})}}}function me(e){return he.apply(this,arguments)}function he(){return he=Object(l.a)((function*(e){var{instanceId:t,definitionId:a,content:r,appName:i}=e;if(new RegExp('"type":\\s?"remedyGroup"',"g").test(r))console.warn("[submitApprovalAgain] 存在补卡控件组,不可再次提交",r);else{var n=pe({appName:i}),o=U.b.globalStore.enableCheckCreatePrepareApi?h.c.checkInstanceCreatePrepare:h.c.instancecreatePrepare;yield o({approvalId:a,instanceId:t,versionId:""},{disableLoading:!1,errHandler:e=>{var t;return null===(t=n[e])||void 0===t||t.call(null),Boolean(n[e])}});var s="/pc/pages/requested/index",c=p.a.getCurrentPages();if(c&&c.length){var l=c[c.length-1];l.__route__&&(s="/".concat(l.__route__))}p.a.navigateTo({url:"/pc-pages/create-form/index?id=".concat(a,"&instanceId=").concat(t,"&fromUrl=").concat(s,"&inner=1")})}})),he.apply(this,arguments)}var be=a(67);function ge(e){return ve.apply(this,arguments)}function ve(){return ve=Object(l.a)((function*(e){if(!Array.isArray(e)){var{eventName:t,params:a}=e;return Object(I.d)(t,a)}e.forEach((e=>{var{eventName:t,params:a}=e;Object(I.d)(t,a)}))})),ve.apply(this,arguments)}function je(e){return Oe.apply(this,arguments)}function Oe(){return Oe=Object(l.a)((function*(e){var{tags:t,timestamp:a}=null!=e?e:{};return Object(be.a)("end-create-host-iframe"),Object(I.h)(t,{timestamp:a})})),Oe.apply(this,arguments)}function fe(){return Me.apply(this,arguments)}function Me(){return(Me=Object(l.a)((function*(){Object(I.h)(["pc_detail_hosting","hosting"])}))).apply(this,arguments)}function _e(){return ye.apply(this,arguments)}function ye(){return(ye=Object(l.a)((function*(){return Object(I.e)()}))).apply(this,arguments)}var De=a(100),Ne=a(197),Ae=e=>{var{definitionIds:t=[],instances:a=[],allAssociateTicket:i=!0}=e;return new Promise((e=>{var n=De.a.use();n.setUseBeforeClose(!1),n.open("ApprovalInstanceSelector",(()=>Object(E.jsx)(Ne.a,{widget:{data:{definitionIds:t,instances:a,allAssociateTicket:i}},onConfirm:function(){var a=Object(l.a)((function*(a){var i,n;e({result:"success",instances:yield Object(l.a)((function*(){var e=a.filter((e=>{var{TaskID:t}=e;return Boolean(t)})).map((e=>{var{TaskID:t}=e;return{Symbol:{TaskID:t},Fields:[1,2,3],Mode:1}}));if(null!=t&&t.length&&e.length){tt.showLoading({title:Object(m.t)("ApprovalList_Shortcut_Submittig")});var{data:i}=yield h.c.MGetDetail({Requests:e},{showError:!0});return tt.hideLoading(),a.map((e=>{var t=i.Details.find((t=>{var{TaskID:a}=t;return a===e.TaskID}));if(null!=t&&t.LegacyJSON)try{var{content:a,form:n,creatorUserName:o}=JSON.parse(null==t?void 0:t.LegacyJSON);return Object(r.a)(Object(r.a)({},e),{},{formInstanceValue:a,formDefValue:n,creatorUserName:o})}catch(e){console.error(e)}return e}))}return a}))()}),null!==(i=De.a.use().history)&&void 0!==i&&i.current?null===(n=De.a.use().history)||void 0===n||n.backward():De.a.use().close()}));return function(e){return a.apply(this,arguments)}}(),onCancel:()=>{var t,a;e({result:"cancel"}),null!==(t=De.a.use().history)&&void 0!==t&&t.current?null===(a=De.a.use().history)||void 0===a||a.backward():De.a.use().close()}})))}))};function Te(e){return Object.entries(e).reduce(((e,t)=>{var[a,i]=t;return Object(r.a)(Object(r.a)({},e),{},{[a]:e=>{var{data:t}=e;return null==i?void 0:i(t)}})}),{})}var Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.b;t.approval.register(Te(Object(r.a)({navigateTo(e){var{url:t}=e;return new Promise(((e,a)=>{tt.navigateTo({url:t,success(t){e(t)},fail(e){a(e)}})}))},showUserProfile:W,setClipboardData(e){var{data:t,disableToast:a}=e;return a?new Promise(((e,a)=>{tt.setClipboardData({data:t,success(){e({})},fail(e){a(e)}})})):Object(o.a)(t)},previewImage(e){var{urls:t,current:a}=e;return K(t,null!=a?a:0)},previewFile(e){var{url:t,name:a,header:r}=e;return q(t,a,r)},downloadFile:J,shareDocument:X,createChatModal:s.c,joinChat:$,openApproval:ee,printDocument:ue,openEditorialRecord:de,submitApprovalAgain:me,catchError(){throw new Error("new Error for catchError")},onPerformanceEvent(e){var{name:t}=e;t&&Object(n.d)(t)},opmonitorReport:ge,reportTTI:je,reportLoaded:fe,getRootTrace:_e,openDrawerWebview:e=>te(e,t),getMGetDetailPrefetch:ae,chooseContact:re,handleDriveFile:ne,addRelativeApproval:Ae,chooseDepartments:oe,editAccount:se,openLingoProfile:ce,handleBatchApproval:le},e)))}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return p})),a.d(t,"b",(function(){return b}));var r=a(9),i=a(44),n=a(16),o=a(20),s=a(10),c=a(5),l=a(6),d=Object(o.c)("shared:src/utils/badge.ts"),u="scope.appBadge";var p=new class{constructor(){var e=this;Object(l.a)(this,"enableBadge",!1),Object(l.a)(this,"syncedWithServer",!1),Object(l.a)(this,"isBadgeAuthorized",(()=>new Promise(((e,t)=>{tt.getSetting({success:t=>{e(Boolean(t&&t.authSetting&&t.authSetting[u]))},fail:e=>t(e)})})))),Object(l.a)(this,"getBadgeAuth",(()=>new Promise(((e,t)=>{tt.authorize({scope:u,success:t=>e(!0),fail:e=>t(e)})})))),Object(l.a)(this,"initBadgeConfig",Object(r.a)((function*(){s.a.info("初始化角标"),d("badgeInitConfig");try{var t=yield e.isBadgeAuthorized();if(s.a.info("角标是否已授权",t),d("badgeAuthSetting",{result:t}),t)e.enableBadge=!0;else try{var a=yield e.getBadgeAuth();s.a.info("获取授权是否成功",a),e.enableBadge=!0,d("badgeAuthorize")}catch(t){s.a.error("获取授权出错",t),d("badgeFail",{message:Object(i.a)(t),status:"获取授权出错"}),e.enableBadge=!1}}catch(t){s.a.error("获取是否授权信息失败",t),d("badgeFail",{message:Object(i.a)(t),status:"获取是否授权信息失败"}),e.enableBadge=!1}}))),Object(l.a)(this,"updateBadgeTaskId",0),Object(l.a)(this,"reportBadgeUnmatchedTimeout",void 0),Object(l.a)(this,"updateBadge",(e=>{this.updateBadgeTaskId+=1;var t=this.updateBadgeTaskId,a={enableBadge:this.enableBadge,badgeNum:e,syncedWithServer:this.syncedWithServer,currentUpdateBadgeTaskId:t};d("badgeUpdate",a),this.enableBadge&&this.syncedWithServer&&(clearTimeout(this.reportBadgeUnmatchedTimeout),tt.updateBadge({badgeNum:e,success:()=>{t===this.updateBadgeTaskId&&(d("badgeReport",a),tt.reportBadge({badgeNum:e,success:e=>{var{isMatched:r}=e;t===this.updateBadgeTaskId&&(r?d("badgeMatched",a):this.reportBadgeUnmatchedTimeout=setTimeout((()=>{d("badgeUnmatched",a)}),1e3))},fail:e=>{var{errMsg:t}=e;d("badgeFail",Object(c.a)({message:t,status:"reportBadge failed"},a))}}))},fail:e=>{var{errMsg:t}=e;d("badgeFail",Object(c.a)({message:t,status:"updateBadge"},a))}}))})),Object(l.a)(this,"initialize",(()=>{this.syncedWithServer=!1,this.initBadgeConfig()})),Object(l.a)(this,"resetSyncedWithServer",(()=>{this.syncedWithServer=!1})),Object(l.a)(this,"markSyncedWithServer",(()=>{this.syncedWithServer=!0}))}},m=Object(o.c)("pc:src/utils/badge.ts"),h=function(){var e=Object(r.a)((function*(){try{yield n.c.syncBadgeCount()}catch(e){m("commonOnError",{message:Object(i.a)(e),location:"function syncBadgeCount at src/utils/badge.ts"}),s.a.error("同步角标数量失败",e)}}));return function(){return e.apply(this,arguments)}}(),b=()=>{p.initialize(),Object(o.b)(h)}},function(e,t,a){e.exports={relative_form_item:"index-module__relative_form_item___o9_CU",title:"index-module__title___1vImB",content:"index-module__content___1xXa_",no_padding:"index-module__no_padding___2nNlt"}},function(e,t,a){e.exports={"widget-viewer":"index-module__widget-viewer___1WZiu",title:"index-module__title___3X0zr",value:"index-module__value___3S62U",block:"index-module__block___27-X_","block--contrast":"index-module__block--contrast___HQW6J","approval-hidden-wrap":"index-module__approval-hidden-wrap___1ul8M","table-cell-viewer":"index-module__table-cell-viewer___1U0sa","table-cell-viewer--number":"index-module__table-cell-viewer--number___3qR-F","table-cell-editor--hidden":"index-module__table-cell-editor--hidden___22QZI",addWrapper:"index-module__addWrapper___2OWuI",deleted:"index-module__deleted___3Dgwf",subtitle:"index-module__subtitle___3zUtn",add:"index-module__add___10HIE",addIcon:"index-module__addIcon___3mVYa",nameWrapper:"index-module__nameWrapper___2uhc-",versionWrapper:"index-module__versionWrapper___GF7oF",subWrapper:"index-module__subWrapper___3eudV",viewLatest:"index-module__viewLatest___2duR4"}},function(e,t,a){e.exports={"modal-wrap":"index-module__modal-wrap___1gHqF","modal-bg":"index-module__modal-bg___3Z33m","modal-content":"index-module__modal-content___2J9kU","drawer-content":"index-module__drawer-content___bZvqk"}},function(e,t,a){e.exports={wrap:"index-module__wrap___3MtWg",desc:"index-module__desc___2HuQk","input-parent":"index-module__input-parent___1sSlB",input:"index-module__input___1PLJh"}},function(e,t,a){e.exports={wrapper:"index-module__wrapper___3wBJA",disabled:"index-module__disabled___3DyzP",input:"index-module__input___3bNxi",error:"index-module__error___3G27C"}},function(e,t,a){"use strict";var r=a(921),i=Object(r.a)();i("init",{bid:"feishu_approval_web_pc"}),i("config",{}),i("start"),t.a=i},function(e,t,a){e.exports={value_content:"index-module__value_content___RbyoE",item:"index-module__item___dZg-g",title:"index-module__title___1JkSm",text:"index-module__text___1oW8B"}},function(e,t,a){e.exports={field:"field-module__field___28N3d",title:"field-module__title___1nT26",description:"field-module__description___3JyGM",caption:"field-module__caption___2JX2H",tips:"field-module__tips___1rF2g",value:"field-module__value___14vHa",block:"field-module__block___1h_Y7",group:"field-module__group___3J5aI","widget-background":"field-module__widget-background___1ndJ8"}},function(e,t,a){e.exports={input_wrap:"index-module__input_wrap___1fcTU",clear:"index-module__clear___mwjpw",hidden:"index-module__hidden___2S0q-",placeholder:"index-module__placeholder___3iARi",display:"index-module__display___1Xngy",error:"index-module__error___2lq7S",icon:"index-module__icon___Mcae5"}},function(e,t,a){e.exports={regulation:"index-module__regulation___3j1b6","regulation-content":"index-module__regulation-content___3pjox","regulation-title":"index-module__regulation-title___2JUOT","icon-image":"index-module__icon-image___zEbgQ"}},function(e,t,a){e.exports={"custom-url":"custom-url-module__custom-url___lmgRc","url-input":"custom-url-module__url-input___3HS1h","open-btn":"custom-url-module__open-btn___2WWbi"}},function(e,t,a){e.exports={"image-box":"index-module__image-box___joeJY",hidden:"index-module__hidden___aMeqG",image:"index-module__image___2snwI",text:"index-module__text___1dwKq"}},,function(e,t,a){e.exports={"error-boundary":"index-module__error-boundary___WQagk","error-boundary__inner":"index-module__error-boundary__inner___34WEI","error-boundary__tips":"index-module__error-boundary__tips___3Qfci","error-boundary__button":"index-module__error-boundary__button___2rF9D"}},function(e,t,a){e.exports={"display-view":"index-module__display-view___10A7Y","field-wrapper":"index-module__field-wrapper___1_Dge"}},,,,,,,,,,,,,,,function(e,t,a){},function(e,t,a){"use strict";a.d(t,"d",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return c}));var r=a(123),i=a(39);function n(){return Object(i.b)().split("_")[0]}function o(){return r.b[n()]}function s(){return r.a[n()]}function c(){var e=Object(i.b)();return{isZH:"zh_CN"===e,isEN:"en_US"===e,isJA:"ja_JP"===e}}},function(e,t,a){"use strict";function r(e){return"function"==typeof e}function i(e){return"boolean"==typeof e}function n(e){return void 0===e}a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return n}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(3);function i(e,t){var a=Object(r.useRef)(null!=t?t:e);return Object(r.useEffect)((()=>{a.current=e})),a.current}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(3);function i(e){var[t,a]=Object(r.useState)(0);Object(r.useEffect)((()=>{var e=()=>a((e=>++e));return tt.onWindowResize(e),()=>{tt.offWindowResize(e)}}),[]);var i=Object(r.useRef)(e);return i.current=e,Object(r.useEffect)((()=>{var e;null===(e=i.current)||void 0===e||e.call(i)}),[t]),t}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return A}));var r,i=a(9),n=a(4),o=a(31),s=a.n(o),c=a(13),l=a(2),d=a(26),u=a(38),p=a(116),m=a(57),h=a(24),b=a(169),g=a(145),v=a(395),j=a(318),O=a(16);!function(e){e.Schedule="widgetTripGroupSchedule",e.Duration="widgetTripGroupInterval",e.Reason="widgetTripGroupReason",e.Peer="widgetTripGroupPeer"}(r||(r={}));var f=/(widgetTripGroupScheduleStart|widgetTripGroupScheduleEnd)\|(\d+)/,M=/(widgetTripGroupScheduleInterval)\|(\d+)/,_=/(widgetTripGroupScheduleTime)\|(\d+)/;function y(e,t){return D.apply(this,arguments)}function D(){return D=Object(i.a)((function*(e,t){yield Object(b.b)([e.format("YYYYMMDD")],[t.insteadSubmitManager.currentSubmitterId],g.a.Trip)})),D.apply(this,arguments)}var N=function(){var e=Object(i.a)((function*(e){if(e.data.writable){var t=(e=>{var t=(new Date).getTimezoneOffset(),a=e.map((e=>{var a=e.widgets[0].data,r=a.children[0].data,i=a.children[1].data;return{startTime:i.value&&{value:r.value.valueOf(),text:r.text,timezoneOffset:t},endTime:i.value&&{value:i.value.valueOf(),text:i.text,timezoneOffset:t}}}));return a.filter((e=>{var t,a;return(null===(t=e.startTime)||void 0===t?void 0:t.value)&&(null===(a=e.endTime)||void 0===a?void 0:a.value)}))})(e.data.children[0].data.groups);if(null!=t&&t.length){var a=yield Object(v.c)(t,j.b.Trip,O.c.apiWidgetGroupTimeCheck);e.data.notConfilct=a}else e.data.notConfilct=!1}}));return function(t){return e.apply(this,arguments)}}(),A={type:c.c.TRIP_GROUP,inputFormat(e,t){Object(p.a)(e,t);var{id:a}=e,r=t.isWidgetReadable(a),i=t.isWidgetWritable(a),n=[],o=[];if(function e(t,a,r){var i=t.id;a&&i&&n.push(i),r&&i&&o.push(i),t.value&&Array.isArray(t.value)&&t.value.forEach((t=>{e(t,a,r)}))}(e,r,i),t.isRollbackToStart||(t.addWidgetsToReadableSet(n),t.addWidgetsToWritableSet(o)),h.b.globalStore.isTripAddressV2){var s=e.value.find((e=>"widgetTripGroupSchedule"===e.id)),c=s.value.find((e=>"widgetTripGroupScheduleDeparture"===e.id)),l=s.value.find((e=>"widgetTripGroupScheduleDestination"===e.id));c.value.isV2=!0,l.value.isV2=!0}return{id:a,type:e.type,data:{name:e.name||"",visible:!0,readable:r,writable:i,validationError:null,hasHistory:!1,isRestored:!1,printable:!0,children:t.widgetsInputFormat(e.value)}}},beforeInitFinish(e,t){t.widgetsBeforeInitFinish(Array.from(A.genChildren(e)))},outputFormat:(e,t)=>({id:Object(d.q)(e.id),type:e.type,value:e.data.visible?t.widgetsOutputFormat(e.data.children):null,displayCondStatus:e.data.visible}),restoreFormat:(e,t,a)=>(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,a.widgetsRestoreFormat(t.value),e),onRestoredFormat:(e,t,a)=>{N(e)},restoreWithDraftFormat:Object(n.f)(((e,t,a)=>(a.widgetsRestoreWithDraftFormat(t.data.children),e))),onRestoredWithDraftFormat:(e,t,a)=>{N(e)},printFormat(e,t){var{children:a}=e.data,i=[r.Duration,r.Reason,r.Peer],n=a.filter((e=>!i.includes(e.id))),o=t.widgetsPrintFormat(n),[s,c,d]=t.widgetsPrintFormat(i.map((e=>a.find((t=>t.id===e))))),u=[];return u.push("".concat(Object(l.t)("Print.TripReason")).concat(Object(l.t)("Colon")).concat((null==c?void 0:c.value)||"").concat(Object(l.t)("Print.TripDuration",{interval:s.value}))),d&&d.value&&u.push("".concat(d.label).concat(Object(l.t)("Colon")).concat(d.value)),o.push({label:"".concat(Object(l.t)("Print.TripSummary")),value:u,isDefaultFullLine:!0,isSummary:!0}),o},validate:(e,t,a)=>!e.data.visible||!e.data.writable||t.validateWidgets(Array.from(A.genChildren(e)).map((e=>e.id)),{silent:a}),*genChildren(e){yield*e.data.children},reset(e,t,a){for(var{id:r}of A.genChildren(e))a.resetWidgetData(r)},onSomeWidgetChange:Object(n.f)((function(e,t,a){var r;if(e.data.writable){var i=e.data.children[0].data.groups,n=e.data.children[1];if(f.test(t)||M.test(t)||_.test(t)){var o=f.exec(t)||M.exec(t)||_.exec(t);if(o){var c=i.find((e=>e.id===o[2]));if(c){var l=c.widgets[0].data.children[0],p=c.widgets[0].data.children[1],b=c.widgets[0].data.children[2];l.data.value&&/(widgetTripGroupScheduleStart)\|(\d+)/.exec(t)&&y(l.data.value,a),l.data.value&&p.data.value&&f.exec(t)&&(p.data.validationError=Object(u.b)(l.data.value,p.data.value,null,"",l.data.name,p.data.name),p.data.validationError||(b.data.value=s()(p.data.value).diff(s()(l.data.value),"day")+1))}var g=i.map((e=>{var t=e.widgets[0].data.children[0].data.value,a=e.widgets[0].data.children[1].data.value;return{start:Number(t),end:Number(a)}})).filter((e=>{var{start:t,end:a}=e;return a>=t})),v=Object(d.b)(g,m.a.DATE_HALF===(null===(r=i[0])||void 0===r?void 0:r.widgets[0].data.children[0].data.subtype));if(n.data.value=v,h.b.globalStore.enableGroupTimeCheck&&_.test(t)){var j=!0,{isRestored:O}=e.data,{resubmitInstanceId:D,useDraft:A}=a;!D&&!A||O||(j=!1),j&&N(e)}a.handleWidgetChange(e.id,!0)}}}}))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));var r=a(5),i=a(4),n=a(280),o=a(13),s=a(38),c=a(26),l=a(18),d=a(76),u=a(144),p=a(2),m={type:o.c.IMAGE,inputFormat(e,t){var{id:a}=e;return{id:a,type:e.type,data:{name:e.name||"",visible:!1!==e.visible,readable:t.isWidgetReadable(a),writable:t.isWidgetWritable(a),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,required:Boolean(e.required),uploadImageList:[]}}},outputFormat(e){var{id:t,type:a,data:{required:r,uploadImageList:i}}=e;return!r&&Object(s.c)(i)?null:{id:Object(c.q)(t),type:a,value:i.length?{key:i.map((e=>e.key)).join(","),fileSize:i.map((e=>e.size)).join(","),url:"",text:"".concat(i.length,"个图片")}:null,displayCondStatus:e.data.visible}},restoreFormat:Object(i.f)(((e,t)=>{if(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,!t.value)return e;var a=t.value.fileSize.split(","),r=t.value.key.split(","),i=t.value.url.split(",");e.data.uploadImageList=[];for(var o=0;o<r.length;o++){var s=i[o],c=Object(d.b)(s),u=Object(d.c)(s);e.data.uploadImageList.push({id:Object(n.a)(),status:l.v.UPLOADED,key:r[o],url:s,thumbUrl:"".concat(s,"~120x0.image"),previewUrl:"".concat(s).concat(u),name:c,extension:Object(d.a)(c),size:a[o],waitUploadPromise:Promise.resolve()})}return e})),restoreWithDraftFormat:Object(i.f)(((e,t)=>{var a;return e.data.uploadImageList=(null===(a=t.data.uploadImageList)||void 0===a?void 0:a.filter((e=>e.url&&e.status===l.v.UPLOADED)).map((e=>Object(r.a)(Object(r.a)({},e),{},{id:Object(n.a)(),waitUploadPromise:Promise.resolve()}))))||[],e})),printFormat(e){var{name:t,uploadImageList:a}=e.data;return a.length?{label:t,value:Object(p.t)("Print.PictureCount",{count:a.length})}:{label:"",value:""}},writableValidate:e=>!Object(s.c)(e.data.uploadImageList),validate:Object(i.k)((function*(e,t,a){if(e.data.validationError=null,!e.data.visible||!e.data.writable)return!0;if(e.data.uploadImageList.some((e=>e.status===l.v.UPLOADING)))return a||(e.data.validationError=Object(p.t)("approvalForm.WaitForUploading")),!1;if(e.data.uploadImageList.some((e=>e.status===l.v.FAILED))?t.updateValidationPrompts(u.b.uploadFileFailed,{content:Object(p.t)("approval-mp_FailedProceed_Desc"),cancelText:Object(p.t)("LeaveGroup.BackToModify","返回修改"),confirmText:Object(p.t)("LeaveGroup.ConfirmSubmit","确认提交")}):t.updateValidationPrompts(u.b.uploadFileFailed,null),e.data.required){var r=Object(s.c)(e.data.uploadImageList.filter((e=>e.status===l.v.UPLOADED)));return a||(e.data.validationError=r),!r}return!0}))}},function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var r=a(2),i=a(20),n=Object(i.c)("shared:src/utils/clipboard.ts"),o=e=>{tt.setClipboardData({data:e,success(){tt.showToast({title:Object(r.t)("Toast.SuccessfulToCopy","复制成功"),duration:2e3})},fail(e){tt.showToast({title:Object(r.t)("Toast.FailedToCopy","复制失败"),icon:"error",duration:2e3}),n("clipboardError",{func:"setClipboardData",data:JSON.stringify(e,Object.getOwnPropertyNames(e))})}})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return S})),a.d(t,"b",(function(){return U}));var r=a(5),i=a(9),n=a(4),o=a(97),s=a(314),c=a(31),l=a.n(c),d=a(2),u=a(16),p=a(13),m=a(116),h=a(44),b=a(20),g=a(26),v=a(104),j=a(169),O=a(145),f=a(401),M=a(590),_=a(12),y=a(17),D=a(33),N=a(10),A=a(250),T=Object(b.c)("pc:src/components/configurable-form/components/widgets/remedy-group-v2/index.ts"),I=/widgetRemedyGroupV2BatchRemedyDate\|\d+/,C=/widgetRemedyGroupV2BatchClockTime\|\d+/,x=/widgetRemedyGroupV2BatchRemedyTime\|\d+/,S=e=>Boolean(e.data.enableBatchRemedy),w=e=>{try{return u.c.remedypunchcheck(e).then((e=>e&&e.data))}catch(e){return T("commonOnError",{func:"getRemedyTimeCheck",message:Object(h.a)(e)}),Promise.reject()}},L=e=>{try{return u.c.remedyBatchClockCheck(e).then((e=>e.data))}catch(e){return T("commonOnError",{func:"getRemedyBatchClockCheck",message:Object(h.a)(e)}),Promise.reject()}},E=/[0-9]{2}:[0-9]{2}/,k=e=>{try{var{startTime:t,timeHint:a}=e,r=E.exec(a);if(!r)return null;var i=t.replace(E,r[0]),n=l()(i);return l()(t).valueOf()>n.valueOf()?n.day(n.day()+1):n}catch(e){return T("commonOnError",{location:"in function getHintDate at src/components/configurable-form/components/widgets/remedy-group-v2/index.ts",message:Object(h.a)(e)}),null}};function z(){return z=Object(i.a)((function*(e,t){var{instanceInfo:a}=t;if(a){var{InstanceCode:r}=a;try{var{data:i}=yield u.c.getRemedyCountByInstanceID({instance_code:r});null!=i&&i.count_str&&(yield Object(D.s)(),e=t.getWidget(e.id),Object(n.s)((()=>{e.data.remedyHint=i.count_str})))}catch(e){Object(_.b)(y.f.ApprovalError,{location:"in function preLoadRemedyDetails at src/components/configurable-form/components/widgets/remedy-group-v2/index.ts",message:JSON.stringify(e)})}}})),z.apply(this,arguments)}function R(e){return Object(o.a)(e)}var P=Object(n.f)(Object(n.k)((function*(e){var{widget:t,checkRemedyInfo:a,configurableFormStore:i,targetGroup:n,isInSeal:o}=e,s=Date.now();t.data.checkTime=s;var c=yield L({checkRemedyInfo:a,version:529});if(!(t.data.checkTime&&s<t.data.checkTime)){var{CheckRemedyResult:u=[]}=c||{};if(u.length){var{groups:p}=t.data.children[0].data,m="",h=!1;u.forEach(((e,t)=>{var a,i,o,s,c,u,{canRemedy:b=!1,canNotRemedyReason:v,hint:j="",isFree:O=!1,isRest:_=!1,remedyTimes:y=[],clockInNo:D=-1,clockInType:N=-1,day:A,tip:T={text_pieces:[],jump_type:f.c.NORMAL}}=e,[I,C,x]=F(p[t].widgets),S=!O&&!_,{timeItem:w}=C,L=Object(r.a)(Object(r.a)({},e),{},{remedyTimes:y}),E=null!==(a=null===(i=T.text_pieces)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.content)&&void 0!==a?a:j;h=v===M.b.OVER_MAX_DATA_LIMIT;var z=(null===(s=T.text_pieces)||void 0===s||null===(c=s[0])||void 0===c?void 0:c.content_type)===f.b.ERROR;A||(E="",z=!1);var R,P,U=null,B=[],Y=p[t].id===(null==n?void 0:n.id);if(b){if(S?((D>=0||N>0)&&(R=y.find((e=>{var{workType:t,punchNo:a}=e;return D===a&&N===t}))),R||(R=null===(P=C.data.value)||void 0===P||!P.text||A&&A!==(null==w?void 0:w.remedyDate)?y[0]:y.find((e=>{var t;return e.timeHint===(null===(t=C.data.value)||void 0===t?void 0:t.value)})))):R=y[0],y.length>1&&y.sort(((e,t)=>e.punchNo!==t.punchNo?e.punchNo-t.punchNo:e.workType-t.workType)),B=y.map((e=>({value:e.timeHint,text:e.timeHint,_text:e.punchTime})))||[],R){var Q=R.timeHint;U=B.find((e=>e.value===Q))||null}}else A&&(E=E||Object(d.t)("remedyGroupV2.shouldNotRemedy"),m||(m=E));if(!I.data.text&&A&&(I.data.text=A,I.data.value=l()(A)),I.hint=E,I.isErrorHint=z,C.data.value=U,C.data.options=B,C.data.visible=S,L.remedyDate=I.data.text,L.hint=E,L.hintError=z,L.timeForRemedy=R,L.remedyClock=null===(u=U)||void 0===u?void 0:u.value,S||!S&&Y){var G=null,W="",V="";R&&(V="".concat(Object(d.t)("remedyGroupV2.canRemedyTimes")).concat(R.startTime," - ").concat(R.endTime),G=k(R),W=Object(g.d)(G,x.data.subtype)),x.data.value=G,x.data.text=W,x.hint=S?"":V}L.remedyTime=x.data.text,C.timeItem=Object(r.a)(Object(r.a)({},C.timeItem),L)})),m&&!o&&(h?tt.showModal({content:m,showCancel:!1,confirmText:Object(d.t)("Apaascorehr_AlreadyKnown")}):A.a.error(m)),i.handleWidgetChange(v.b.detail)}}}))),U={type:p.c.REMEDY_GROUP_V2,inputFormat(e,t){var a;Object(m.a)(e,t);var{id:i,value:n=[]}=e,o=t.isWidgetReadable(i),s=t.isWidgetWritable(i),c=[],l=[],{params:{groupOptions:u={}}}=t,{day:h,punchNo:b=-1,workType:g=-1}=u,j=h&&b>=0&&g>0,O=Boolean(null===(a=e.option)||void 0===a?void 0:a.enableBatchRemedy);function f(e,t,a){var i=e.id;t&&i&&c.push(i),j&&[v.c.remedyDate,v.c.clockTime].includes(i)&&(e.option=Object(r.a)({},e.option||{})),a&&i&&l.push(i),e.type===p.c.DETAIL&&e.value.forEach((e=>{f(e,t,a)}))}t.params.canNotChangeRemedyDate=j,O&&(n[0].name=Object(d.t)("remedyGroupV2.recordIndex")),n&&n.length&&(n.forEach((e=>{f(e,o,s)})),O&&n[0].value.forEach((e=>{e.id===v.a.clockTime&&(e.option=Object(r.a)(Object(r.a)({},e.option),{},{notAllowClear:!0,isInGroup:!0}))}))),t.isRollbackToStart||(t.addWidgetsToReadableSet(c),t.addWidgetsToWritableSet(l));var M={[v.c.remedyDate]:null,[v.c.clockTime]:null,[v.c.remedyTime]:null,[v.c.reason]:null},_={id:i,type:e.type,messageData:M,messageError:{[v.c.remedyDate]:!1},data:{name:e.name||"",visible:Boolean(e.displayCondStatus),readable:t.isWidgetReadable(i),writable:t.isWidgetWritable(i),validationError:null,hasHistory:!1,isRestored:!1,printable:!0,enableBatchRemedy:O,required:Boolean(e.required),placeholder:e.placeholder||"",children:t.widgetsInputFormat(n)}};S(_)&&(_.restoreGroupsCount=0,_.data.children[0].data.maxCount=30);return function(e,t){z.apply(this,arguments)}(_,t),_},beforeInitFinish(e,t){t.widgetsBeforeInitFinish(Array.from(U.genChildren(e)))},reset(e,t,a){for(var{id:r}of U.genChildren(e))a.resetWidgetData(r)},outputFormat:(e,t)=>{var{groupOptions:a={}}=t.params,i=t.widgetsOutputFormat(e.data.children||[]),n={};if(S(e)){i=i.map((e=>e.id===v.b.detail?Object(r.a)(Object(r.a)({},e),{},{value:e.value.map((e=>e.map((e=>{if(e.id===v.a.clockTime){var{value:t,_text:a}=e.value||{};return Object(r.a)(Object(r.a)({},e),{},{value:{value:t,text:a||t}})}return e}))))}):e));var o={},s={};e.data.children[0].data.groups.forEach((e=>{var t,a,{widgets:r}=e,[,i,n]=F(r),c=null===(t=i.timeItem)||void 0===t?void 0:t.timeForRemedy;null!=n&&null!==(a=n.data)&&void 0!==a&&a.text&&c&&(o[n.data.text]=null==c?void 0:c.workType,s[n.data.text]=null==c?void 0:c.punchNo)})),n={batchWorkType:o,batchPunchNo:s}}else i=i.map((e=>{if(e.id===v.c.clockTime){var{value:t,_text:a}=e.value||{};return Object(r.a)(Object(r.a)({},e),{},{value:{value:t,text:a||t}})}return e})),n={punchNo:a.punchNo,workType:a.workType};return{id:Object(g.q)(e.id),type:e.type,displayCondStatus:e.data.visible,options:n,value:e.data.visible?i:null}},restoreFormat:Object(n.f)(((e,t,a)=>{(e.data.name=t.name||"",e.data.hasHistory=t.edited,e.data.printable=t.printable,e.data.value=t.value||[],e.data.visible=Boolean(t.displayCondStatus),a.resubmitInstanceId||a.widgetsRestoreFormat(t.value),S(e))?e.data.children[0].data.groups.forEach((e=>{var{widgets:t}=e,r=B(t,C),{value:i}=r.data;r.data.options=null!=i&&i.value?[i]:[],r.data.visible=Boolean(null==i?void 0:i.value),a.isRollbackToStart&&t.forEach((e=>{e.data.disabled=!0}))})):e.data.children.forEach((e=>{if(e.id===v.c.clockTime){var t=e,{value:r}=t.data;t.data.options=r?[r]:[],t.data.visible=Boolean(r)}a.isRollbackToStart&&(e.data.disabled=!0)}));return e})),restoreWithDraftFormat:Object(n.f)(((e,t,a)=>{if(e.data.value=Object(s.a)(t.data.value)||[],e.data.visible=t.data.visible,e.data.isDraftRestore=!0,S(e)&&S(t)){var r=t.data.children[0];e.restoreGroupsCount=(null==r?void 0:r.data.groups.length)||0}return a.widgetsRestoreWithDraftFormat(t.data.children),N.a.info("[remedy] [batch] restoreWithDraftFormat 2",Object(n.u)(e)),e})),onRestoredWithDraftFormat:Object(n.f)(function(){var e=Object(i.a)((function*(e,t,a){if(S(e)){var r=Y({widget:e});if(1===r.length&&r[0].day||r.length>1){var i=r.filter((e=>{var{day:t}=e;return Boolean(t)})).map((e=>{var{day:t}=e;return l()(t).format("YYYYMMDD")})),o=yield Object(j.b)(i,[a.insteadSubmitManager.currentSubmitterId],O.a.Remedy);Object(n.s)((()=>{P({widget:e,checkRemedyInfo:r,configurableFormStore:a,isInSeal:o})}))}}}));return function(t,a,r){return e.apply(this,arguments)}}()),printFormat(e,t){if(S(e)){var[a,r]=e.data.children,i=t.widgetsPrintFormat([a]);if(r.data.visible){var{name:n,value:o}=r.data;i.push({label:n,value:o})}return i}var{value:s}=e.data,c=s.map((e=>{var{name:t,value:a}=e;return{label:t,value:R(a)?a.text:a}}));return c},validate:Object(n.k)((function*(e,t,a){if(!e.data.visible||!e.data.writable)return!0;var r=!1,i=!1;if(S(e)){var[n,o]=e.data.children,s=[];n.data.groups.forEach((e=>{e.widgets.forEach((e=>{e.data.visible&&s.push(e.id)}))})),o.data.visible&&s.push(o.id),(yield t.validateWidgets(s,{silent:a}))||(r=!0);var{groups:c}=n.data;return c.forEach((e=>{var{widgets:t}=e,a=B(t,C),r=B(t,x),{timeItem:n}=a,o=null==n?void 0:n.timeForRemedy,s="";if(!a.data.visible&&o){var{startTime:c,endTime:u}=o;s="".concat(Object(d.t)("remedyGroupV2.canRemedyTimes")).concat(c," - ").concat(u)}if(r.data.value&&o){var{startTime:p,endTime:m}=o,h=l()(p),b=l()(m),g=r.data.value;(h.isAfter(g)||b.isBefore(g))&&(i=!0,r.data.validationError=Object(d.t)("remedyGroupV2.pleaseReChooseRemedyTime"),s="".concat(Object(d.t)("remedyGroupV2.canRemedyTimes")).concat(p," - ").concat(m))}r.hint=s})),!r&&!i}var u=e.data.children.filter((e=>e.data.visible)).map((e=>e.id));(yield t.validateWidgets(u,{silent:a}))||(r=!0);var[,,p]=e.data.children,{timeForRemedy:m}=t.params;if(p.data.value&&m){var{startTime:h,endTime:b}=m,g=l()(h),v=l()(b),j=p.data.value;(g.isAfter(j)||v.isBefore(j))&&(p.data.validationError=Object(d.t)("remedyGroupV2.pleaseReChooseRemedyTime"),i=!0)}return!r&&!i})),*genChildren(e){yield*e.data.children},onSomeWidgetChange:Object(n.k)((function*(e,t,a){if(t&&e.data.writable)if(N.a.info("[remedy] onSomeWidgetChange ? =",t),S(e)){var i=I.test(t)||C.test(t)||x.test(t),{isRestored:n}=e.data,{resubmitInstanceId:o,useDraft:s}=a;if(!o&&!s||n||(i=!1),!i)return;var{groups:c}=e.data.children[0].data,l=[],{widget:u,group:p}=function(e,t){var a,r,i=-1;return e.forEach(((e,n)=>{e.widgets.forEach((o=>{o.id===t&&(a=o,i=n,r=e)}))})),{group:r,widget:a,index:i}}(c,t);if(I.test(t)){var m,b=u;if(b&&p)if(null!==(m=b.data)&&void 0!==m&&m.value){if(l=Y({widget:e,changedWidgetId:t}),!(yield Object(j.b)([b.data.value.format("YYYYMMDD")],[a.insteadSubmitManager.currentSubmitterId],O.a.Remedy)))return b.hint=void 0,void(b.isErrorHint=!1)}else{var M=B(p.widgets,C),{groupOptions:_}=a.params;if(p&&!M.timeItem&&(null==_||!_.day))return;l=Y({widget:e,changedWidgetId:t,groupOptions:_}),null!=_&&_.day&&a.changeParams({groupOptions:{}})}else l=Y({widget:e,changedWidgetId:t,isDelete:!0})}else if(C.test(t)){var y;if(!p)return;null!==(y=u.data.value)&&void 0!==y&&y.value&&(l=Y({widget:e,changedWidgetId:t}))}else if(x.test(t)){var D,L;if(!p||!u)return;var[E,z,R]=F(p.widgets);if(!E.data.text||!z.data.visible||null===(D=z.data.value)||void 0===D||!D.value)return;var{timeItem:U}=z.data;return U&&(U.remedyTime=R.data.text||""),R.data.text&&z.data.visible&&null!==(L=z.data.value)&&void 0!==L&&L.value&&(R.hint=""),void a.handleWidgetChange(v.b.detail)}(1===l.length&&l[0].day||l.length>1)&&P({widget:e,checkRemedyInfo:l,configurableFormStore:a,targetGroup:p})}else{var[Q,G,W,V]=e.data.children;if(t===v.c.remedyDate)try{var H,Z,q,K,J,X,{groupOptions:$={},canNotChangeRemedyDate:ee}=a.params,{punchNo:te,workType:ae}=$;if(X=ee?{version:529,day:Q.data.text,punchNo:te,workType:ae}:{version:529,day:Q.data.text},Q.data.value)if(!(yield Object(j.b)([Q.data.value.format("YYYYMMDD")],[a.insteadSubmitManager.currentSubmitterId],O.a.Remedy)))return e.messageData={[v.c.remedyDate]:null,[v.c.clockTime]:null,[v.c.remedyTime]:null,[v.c.reason]:null},e.messageError={[v.c.remedyDate]:!1},void a.changeParams({isFree:!1,isRest:!1,hint:"",hintError:!1,remedyTimes:[],timeForRemedy:void 0});var re,ie=yield w(X),{remedyTimes:ne=[],hint:oe="",isFree:se,canRemedy:ce,IsRest:le=!1,Tip:de={text_pieces:[],jump_type:f.c.NORMAL}}=ie,ue=null!==(H=null===(Z=de.text_pieces)||void 0===Z||null===(q=Z[0])||void 0===q?void 0:q.content)&&void 0!==H?H:oe,pe=(null===(K=de.text_pieces)||void 0===K||null===(J=K[0])||void 0===J?void 0:J.content_type)===f.b.ERROR,me=null,he=[];if(e.messageData[v.c.remedyDate]=ue,e.messageError[v.c.remedyDate]=pe,ce){if(re=se||le||void 0===te||void 0===ae?ne[0]:ne.find((e=>e.punchNo===te&&e.workType===ae)),ne.length>1&&ne.sort(((e,t)=>e.punchNo!==t.punchNo?e.punchNo-t.punchNo:e.workType-t.workType)),he=ne.map((e=>({value:e.timeHint,text:e.timeHint,_text:e.punchTime})))||[],re){var be=re.timeHint;me=he.find((e=>e.value===be))||null}}else A.a.error(ue||Object(d.t)("remedyGroupV2.shouldNotRemedy"));a.changeParams(Object(r.a)(Object(r.a)({},ie),{},{remedyTimes:ne.slice(),timeForRemedy:re})),G.data.value=me,G.data.options=he,G.data.visible=!se&&!le,W.data.value=null,W.data.text="",W.data.validationError="",ce&&re&&a.handleWidgetChange(G.id)}catch(t){e.messageData={[v.c.remedyDate]:null,[v.c.clockTime]:null,[v.c.remedyTime]:null,[v.c.reason]:null},e.messageError={[v.c.remedyDate]:!1},a.changeParams({isFree:!1,isRest:!1,hint:"",hintError:!1,remedyTimes:[],timeForRemedy:void 0}),T("commonOnError",{location:"in function onSomeWidgetChange at src/components/configurable-form/components/widgets/remedy-group-v2/index.ts",message:Object(h.a)(t)})}else if(t===G.id){if(!G.data.value)return;var{groupOptions:ge={},remedyTimes:ve=[]}=a.params;W.data.value=null,W.data.validationError="";var je="",Oe=ve.find((e=>{var t=G.data.value;return e.timeHint===(t||{}).value}));if(Oe){a.changeParams({timeForRemedy:Oe,groupOptions:Object(r.a)(Object(r.a)({},ge),{},{punchNo:Oe.punchNo,workType:Oe.workType})}),je="".concat(Object(d.t)("remedyGroupV2.canRemedyTimes")).concat(Oe.startTime," - ").concat(Oe.endTime);var fe=k(Oe);W.data.value=fe,W.data.text=Object(g.d)(fe,W.data.subtype),a.handleWidgetChange(v.c.remedyTime)}e.messageData[v.c.remedyTime]=je}}}))};function B(e,t){return e.find((e=>t.test(e.id)))}function F(e){return[e.find((e=>I.test(e.id))),e.find((e=>C.test(e.id))),e.find((e=>x.test(e.id)))]}function Y(e){var{widget:t,changedWidgetId:a,isDelete:r,groupOptions:{day:i,punchNo:n=-1,workType:o=-1}={}}=e,s=t.data.children[0].data.groups||[],c=[];return s.forEach((e=>{var t,{widgets:l}=e,[d,u]=F(l),p={day:d.data.text||""},m=Boolean(a&&[d.id,u.id].includes(a)),{timeItem:h}=u,b=null==h?void 0:h.remedyTimes.find((e=>{var t;return e.timeHint===(null===(t=u.data.value)||void 0===t?void 0:t.value)}));if(r||!m){var g;null!==(g=u.data.value)&&void 0!==g&&g.value&&b&&(p.punchNo=b.punchNo,p.workType=b.workType);var v=B(l,x);v.data.text&&(p.remedyTime=v.data.text)}m&&a&&C.test(a)&&null!==(t=u.data.value)&&void 0!==t&&t.value&&b&&(p.punchNo=b.punchNo,p.workType=b.workType),m&&1===s.length&&!p.day&&i&&(p.day=i,n>=0&&(p.punchNo=n),o>0&&(p.workType=o)),c.push(p)})),N.a.info("[remedy] [batch] getBatchRemedyTimeCheck checkRemedyInfo + groupOptions","\ncheckRemedyInfo: ",c,{day:i,punchNo:n,workType:o}),c}},function(e,t,a){"use strict";a.d(t,"a",(function(){return j}));var r=a(6),i=a(2),n=a(1),o=a(3),s=a(25),c=a(260),l=a(668),d=a(671),u=a(33),p=a(329),m=a(14),h=a(414),b=a.n(h),g=a(0);class v extends o.Component{constructor(){super(...arguments),Object(r.a)(this,"customCtx",void 0),Object(r.a)(this,"innerCtxId",void 0),Object(r.a)(this,"tooltipId",Object(u.e)()),Object(r.a)(this,"handleCancel",(()=>{this.props.onCancel()})),Object(r.a)(this,"handleConfirm",(()=>{var{departmentSelectStore:e}=this.customCtx;e.setSelectedValueData(),e.clearKeyword(),this.props.onOk(JSON.parse(JSON.stringify(e.selectedValueData)))}))}UNSAFE_componentWillMount(){var{isSupportCrossTenant:e=!1}=this.props;this.customCtx={departmentObserver:{departmentValueChanged:!1},departmentSelectStore:new p.b},this.innerCtxId=Object(m.c)(m.a,this.customCtx,this);var{departmentSelectStore:t}=this.customCtx;t.setSelectedValueData(this.props.departments),t.setInstanceId(this.props.instanceId),t.init("",!0),t.setParams({isSupportCrossTenant:e})}UNSAFE_componentWillReceiveProps(){var{departments:e}=this.props,{departmentSelectStore:t}=this.customCtx;t.setSelectedValueData(e)}componentWillUnmount(){Object(m.b)(this)}render(){var{disableCrossTenant:e,multi:t,isSupportCrossTenant:a}=this.props;return Object(g.jsxs)(n.r,{className:b.a.wrap,children:[Object(g.jsx)(n.r,{className:b.a.header,children:Object(i.t)("Department_Selector_title")}),Object(g.jsx)(n.r,{className:b.a.body,children:!e&&s.d.enableChooseCrossTenant&&a?Object(g.jsx)(d.a,{ctxId:this.innerCtxId,multi:t,tooltipId:this.tooltipId,globalStore:s.d}):Object(g.jsx)(l.a,{ctxId:this.innerCtxId,multi:t,tooltipId:this.tooltipId})}),Object(g.jsxs)(n.r,{className:b.a.footer,children:[Object(g.jsx)(n.r,{className:b.a["button-cancel"],onClick:this.handleCancel,children:Object(i.t)("popup.Off")}),Object(g.jsx)(n.r,{className:b.a["button-confirm"],onClick:this.handleConfirm,children:Object(i.t)("ModalConfirmText")})]})]})}}var j=Object(c.b)((e=>t=>Object(g.jsx)(v,{onOk:function(){for(var a,r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];null===(a=t.onOk)||void 0===a||a.call(t,...i),e.close()},onCancel:()=>{var a;null===(a=t.onCancel)||void 0===a||a.call(t),e.close()},disableCrossTenant:t.disableCrossTenant,multi:t.multi,departments:t.departments,instanceId:t.instanceId,isSupportCrossTenant:t.isSupportCrossTenant})))},function(e,t,a){"use strict";a.d(t,"a",(function(){return U}));var r,i=a(5),n=a(9),o=a(3),s=a(110),c=a(1),l=a(8),d=a.n(l),u=a(2),p=a(24),m=a(304),h=a(10),b=a(28),g=a(296),v=a(722),j=a(687),O=a(163),f=a(723),M=a(689),_=a(705),y=a(273),D=a.n(y),N=a(300),A=a(498),T=a(0),I=Object(o.forwardRef)(((e,t)=>{var{globalStore:a}=Object(o.useContext)(p.a),{isBytedance:r,userConfig:i}=a,{enable_external_iframe:s}=null!=i?i:{},{payload:l,onJumpOut:y,onFinished:I,onPreventAutoNext:C,isListEmpty:x=!1,bordered:S=!1,isQuickApproval:w,shouldHideHeader:L,forAtEdit:E,refreshAt:k,openSource:z}=e,[R,P]=Object(o.useState)(null),U=function(){var e=Object(n.a)((function*(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!m.b&&("drawer-miniapp"===e.type||"drawer-webview"===e.type||"iframe-webview"===e.type))return P(e);yield Object(O.c)().catch((e=>{h.a.info("close drawer error:",e)})),"drawer-miniapp"!==e.type&&"drawer-webview"!==e.type&&"browser"!==e.type||!t?P(e):(yield Object(O.b)(e,{onFinished:I,onPreventAutoNext:B}).catch((e=>{h.a.info("open drawer error:",e)})),setTimeout((()=>{P(e)}),1e3))}));return function(t){return e.apply(this,arguments)}}();Object(o.useEffect)((()=>{var{keywords:e}=l,t=Object(N.b)(l,{searchKeyword:null!=e?e:""},L);P(t)}),[l]);var B=e=>{null==C||C(e)};return Object(T.jsxs)(c.r,{className:d()(D.a["detail-entry"],{[D.a["detail-entry--bordered"]]:S}),children:[(b.m||b.q||b.n)&&Object(T.jsx)(_.a,{open:e=>U(e)}),Object(T.jsx)(j.a,{isNeed:(null==R?void 0:R.intranetAccess)||!1,callback:()=>x?Object(T.jsx)(g.a,{}):R?m.b||"drawer-miniapp"!==R.type&&"drawer-webview"!==R.type&&"iframe-webview"!==R.type?"mobile-only"===R.type?Object(T.jsx)(c.r,{}):"drawer-miniapp"===R.type||"drawer-webview"===R.type||"browser"===R.type?Object(T.jsx)(O.a,{data:R}):"iframe-webview"===R.type||"hosting-webview"===R.type?null:Object(T.jsx)(v.a,{data:R,onFinished:I,forAtEdit:E,refreshAt:k,isQuickApproval:w}):Object(T.jsx)(M.a,{active:R}):Object(T.jsx)(g.a,{children:Object(T.jsx)(c.r,{className:D.a["no-active-tip"],children:Object(u.t)("PC.NoSelected")})})}),Object(T.jsx)(A.a,{data:R&&"hosting-webview"===R.type?R:null,hidden:!R||"hosting-webview"!==R.type,onFinished:I,onPreventAutoNext:B,openSource:z}),m.b&&(r||s)&&Object(T.jsx)(f.a,{hidden:"iframe-webview"!==(null==R?void 0:R.type),data:"iframe-webview"===(null==R?void 0:R.type)?R:null,jumpOut:e=>{null==U||U(e),null==y||y(e)},onFinished:I,onPreventAutoNext:B,channelPrefix:"connect-approval-"})]})}));function C(e){var{keywords:t}=e,a=Object(N.b)(e,{searchKeyword:null!=t?t:""});return m.b&&["drawer-miniapp","drawer-webview","browser"].includes(a.type)?(Object(O.b)(a),null):I}!function(e){e[e.Exception=-1]="Exception",e[e.Default=0]="Default",e[e.Iframe=1]="Iframe",e[e.Drawer=2]="Drawer",e[e.Browser=3]="Browser",e[e.MobileOnly=4]="MobileOnly",e[e.Redirect=999]="Redirect"}(r||(r={}));var x=a(100),S=a(17),w=a(12),L=a(33),E=a(256),k=a(789),z=a.n(k),R="approval-instance-detail",P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(R,"__").concat(e):R},U=function(){var e=Object(n.a)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isQuickApproval:!1,inDataExport:!1,isConnectApproval:!0},a=t.isConnectApproval?"connect":t.inDataExport?"dataExport":t.isQuickApproval?"quickApproval":"unknown",r=!t.isQuickApproval&&!t.inDataExport,n=Object(i.a)(Object(i.a)({shouldShowSerialID:!0},e),{},{source:r?"connect":void 0});r&&Object(w.b)(S.f.ApprovalConnectCard,{timestamp:Date.now(),time:Object(L.v)(Date.now(),"YYYY-MM-DD hh:mm:ss"),displayMethod:n.displayMethod,intranetAccess:n.intranetAccess,system:n.system,sourceName:n.sourceName,parentId:n.parentId,processId:n.processId,urls:n.urls,shouldShowSerialID:n.shouldShowSerialID});var o=C(e);if(o){p.b.globalStore.fgBatchApprovalNext&&(yield E.a.obstructOpenDetail(Boolean(e.isBatching)&&"feishu"!==e.system));var c=x.a.use();c.setUseBeforeClose(!1);var l=()=>{setTimeout((()=>{var e;null===(e=x.a.use().history)||void 0===e||e.close()}),300)},d=()=>Object(T.jsx)(s.a.Panel,{className:z.a[P()],children:Object(T.jsx)(s.a.Panel,{className:z.a[P("inner")],children:Object(T.jsx)(o,{payload:n,onJumpOut:l,forAtEdit:t.forAtEdit,refreshAt:t.refreshAt,onFinished:t.allowNext?()=>{var t,a;0!==(null===(t=c.history)||void 0===t?void 0:t.current)?null===(a=c.history)||void 0===a||a.close():(c.beforeClose=()=>!0,c.close(),p.b.indexStore.detailModuleStore.onFinished(e.processId))}:void 0,isQuickApproval:t.isQuickApproval,openSource:a,shouldHideHeader:!t.isQuickApproval})})});c.setTitle(void 0),c.open("".concat(e.processId).concat(Math.random()),d)}}));return function(t){return e.apply(this,arguments)}}()},function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(var t of e)if("biz_type"===t.Key)return t.Value;return"null"}a.d(t,"a",(function(){return r}))},,,,,,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r}));var r,i="/api/MGetAsyncOperation";!function(e){e[e.TODO=1]="TODO",e[e.Pending=2]="Pending",e[e.Stopping=3]="Stopping",e[e.Done=4]="Done",e[e.SyncFinish=5]="SyncFinish"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r}));var r,i="/api/instance/getFormHistory";!function(e){e[e.EDIT=0]="EDIT",e[e.MODIFY=1]="MODIFY"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return n}));var r,i,n,o="/api/remedy/clockIn/batchCheck";(function(e){e[e.NORMAL=0]="NORMAL",e[e.LINK=1]="LINK",e[e.ERROR=2]="ERROR"})(r||(r={})),function(e){e[e.NORMAL=0]="NORMAL",e[e.LINK=1]="LINK",e[e.CHOOSE_SHIFT=2]="CHOOSE_SHIFT",e[e.APPROVAL=3]="APPROVAL",e[e.CREATE_RULE=4]="CREATE_RULE"}(i||(i={})),function(e){e[e.NO_NEED=1]="NO_NEED",e[e.NOT_ALLOW=2]="NOT_ALLOW",e[e.BEYOND_TIME=3]="BEYOND_TIME",e[e.NO_COUNT_LEFT=4]="NO_COUNT_LEFT",e[e.OVER_MAX_DATA_LIMIT=5]="OVER_MAX_DATA_LIMIT"}(n||(n={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return r}));var r,i,n,o,s,c,l,d="/api/v2/GetTask";(function(e){e[e.TodoApproval=1]="TodoApproval",e[e.DoneApproval=2]="DoneApproval",e[e.InitiatedApproval=3]="InitiatedApproval",e[e.UnreadNotice=17]="UnreadNotice",e[e.ReadNotice=18]="ReadNotice",e[e.Shared=33]="Shared",e[e.Frozen=254]="Frozen",e[e.Deleted=255]="Deleted"})(r||(r={})),function(e){e[e.Unknown=0]="Unknown",e[e.Man=1]="Man",e[e.Woman=2]="Woman"}(i||(i={})),function(e){e[e.Unknown=0]="Unknown",e[e.FullTime=1]="FullTime",e[e.Internship=2]="Internship",e[e.Outsourcing=3]="Outsourcing",e[e.Labor=4]="Labor",e[e.Consultant=5]="Consultant"}(n||(n={})),function(e){e[e.Normal=1]="Normal",e[e.Sidebar=2]="Sidebar",e[e.Browser=3]="Browser",e[e.Trusteeship=4]="Trusteeship"}(o||(o={})),function(e){e[e.Running=1]="Running",e[e.Approved=2]="Approved",e[e.Rejected=3]="Rejected",e[e.Canceled=4]="Canceled",e[e.Terminated=5]="Terminated",e[e.Deleted=255]="Deleted",e[e.TaskTimeover=-1]="TaskTimeover"}(s||(s={})),function(e){e[e.Todo=1]="Todo",e[e.Done=2]="Done",e[e.Unread=17]="Unread",e[e.Read=18]="Read",e[e.Processing=33]="Processing",e[e.Withdrawn=34]="Withdrawn",e[e.Deleted=255]="Deleted"}(c||(c={})),function(e){e[e.Approve=1]="Approve",e[e.Notice=2]="Notice"}(l||(l={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r}));var r,i="/api/tenant/appinstall";!function(e){e[e.Uninstalled=0]="Uninstalled",e[e.Installed=1]="Installed",e[e.Disabled=3]="Disabled"}(r||(r={}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));var r=e=>{try{var t=e.trimEnd(),a=new URL(t);return a.href===t||a.href==="".concat(t,"/")}catch(e){return!1}},i=(e,t)=>t.startsWith("http://")||t.startsWith("https://")?t:"".concat(e).concat(t)},function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var r=a(17),i=e=>{var t=!1;return function(){if(!t)return t=!0,e(...arguments)}};function n(e){return e?r.a.Yes:r.a.No}},,,,,function(e,t,a){e.exports=a.p+"assets/illustration/placeholder.png"},function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a(23),i=a(39),n=a(17),o=a(12),s=a(601),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var r,s,c;if(null===(r=e.URLs)||void 0===r||!r.pc)return"";var l=new URL(null===(s=e.URLs)||void 0===s?void 0:s.pc);return l.searchParams.set("lang",Object(i.b)()),t&&l.searchParams.set("is_supervise",t),a&&l.searchParams.set("approval_user_id",a),Object(o.b)(n.f.ApprovalConvertUrl,{url:null===(c=e.URLs)||void 0===c?void 0:c.pc,convert_status:"success"}),l.toString()}catch(t){return Object(o.b)(n.f.ApprovalConvertUrl,{url:JSON.stringify(e.URLs),convert_status:"false"}),Object(o.b)(n.f.ApprovalError,{location:"in function convertUrl at src/pc-pages/index/components/detail-module/convert.ts",message:JSON.stringify(t)}),""}},l=e=>{try{if(!e)return null;var t=new URL(e);return"applink.feishu.cn"!==t.host||"/client/mini_program/open"!==t.pathname?null:{appId:t.searchParams.get("appId"),startPage:t.searchParams.get("path"),mode:"appCenter"===t.searchParams.get("mode")?"appCenter":"sidebar-semi"}}catch(t){return Object(o.b)(n.f.ApprovalConvertUrl,{url:JSON.stringify(e),convert_status:"false"}),Object(o.b)(n.f.ApprovalError,{location:"in function getMiniAppInfo at src/pc-pages/index/components/detail-module/convert.ts",message:JSON.stringify(t)}),""}},d=(e,t)=>{var{ProcessID:a,TaskID:r,shareCode:i,commentId:n,replyId:o,blockCommentId:c,blockReplyId:l,showBlockComment:d,authId:u,scene:p,fuzzyIdFromApplink:m}=t,h={type:"hosting-webview",id:a,instanceId:a,taskId:r,shareCode:i,commentId:n,replyId:o,blockCommentId:c,blockReplyId:l,searchKeyword:"",listCard:t,showBlockComment:d,authId:u,isOpenFromLaunch:Object(s.a)(),scene:p,fuzzyIdFromApplink:m};return!1===e?h:e};t.b=(e,t)=>{var a,i,n,{searchKeyword:o,supervisorId:s="",userId:u}=t;if("true"===e.forceTrusteeship)return d(!1,e);if(!("feishu"!==e.System&&"external"!==e.System||e.DisplayMethod!==r.b.Normal||null!==(a=e.URLs)&&void 0!==a&&a.pc))return{type:"default",id:e.ProcessID,shareCode:e.shareCode,searchKeyword:o,intranetAccess:e.IntranetAccess,helpdeskURL:(null===(i=e.URLs)||void 0===i?void 0:i.helpdesk)||"",listCard:e};if(e.DisplayMethod===r.b.Normal)return{type:"iframe-webview",id:e.ProcessID,searchKeyword:o,intranetAccess:e.IntranetAccess,webviewInfo:{url:c(e,s,u)},sourceName:e.SourceName||"",helpdeskURL:(null===(n=e.URLs)||void 0===n?void 0:n.helpdesk)||"",listCard:e};if(e.DisplayMethod===r.b.Browser)return{type:"browser",id:e.ProcessID,searchKeyword:o,intranetAccess:e.IntranetAccess,browserInfo:{url:c(e,s)},listCard:e};if(e.DisplayMethod===r.b.Trusteeship)return d(!1,e);var p,m=l(null===(p=e.URLs)||void 0===p?void 0:p.pc);return m?{type:"drawer-miniapp",id:e.ProcessID,searchKeyword:o,appInfo:m,listCard:e}:{type:"drawer-webview",id:e.ProcessID,searchKeyword:o,intranetAccess:e.IntranetAccess,webviewInfo:{url:c(e,s)},sourceName:e.SourceName||"",listCard:e}}},function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var r=!1,i=e=>{var t=(null==e?void 0:e.query)||{},{instanceId:a,taskId:i}=t;r=(a||i)&&(e=>"true"===e.checkedTrusteeship||"true"===e.forceTrusteeship||"true"===e.enableTrusteeship)(t)},n=()=>{var e=r;return r=!1,e}},,,,,,,,,,,,function(e,t,a){"use strict";var r=a(9),i=a(3),n=a.n(i),o=a(65),s=a(1),c=a(8),l=a.n(c),d=a(733),u=a.n(d),p=a(19),m=a.n(p),h=a(33),b=a(0),g=n.a.forwardRef(((e,t)=>{var{children:a,ellipsisLine:n=1,enableEllipsis:c=!0}=e,d=Object(i.useRef)(!1),[[p,g]]=Object(i.useState)((()=>{var e="multi_line_ellipsis_".concat(Object(h.e)());return["".concat(e,"_real"),"".concat(e,"_virtual")]})),v=Object(i.useCallback)(Object(r.a)((function*(){var e=!1;if(!c)return e;var t=yield Object(o.a)(".".concat(p)),a=yield Object(o.a)(".".concat(g));if(!t||!a)return e;var{height:r}=t,{height:i}=a;return r<i&&(e=!0),d.current=e,e})),[]);return Object(i.useEffect)((()=>{setTimeout(v,300);var e=Object(h.c)(v,300);return m.a.onWindowResize(e),()=>{m.a.offWindowResize(e)}}),[]),Object(i.useImperativeHandle)(t,(()=>({getIsEllipsis:()=>d.current}))),Object(b.jsxs)(s.r,{className:l()(u.a.content),children:[Object(b.jsx)(s.r,{className:l()(u.a.hidden_width,g),children:a}),Object(b.jsx)(s.r,{className:l()(c&&u.a.ellipsis_multi_line,p),style:"line-clamp: ".concat(n,"; -webkit-line-clamp: ").concat(n),children:a})]})}));t.a=g},function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var r=a(5),i=a(37),n=a(3),o=a(1),s=a(8),c=a.n(s),l=a(483),d=a(0),u=["id","current","className","children"],p=e=>{var{id:t,current:a,className:s,children:p}=e,m=Object(i.a)(e,u),h=Object(n.useRef)(t).current,b=c()(Object(l.b)("alive"),{[Object(l.b)("alive--visible")]:a===h},s);return Object(d.jsx)(o.r,Object(r.a)(Object(r.a)({className:b},m),{},{children:p}),t)}},,function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTYyMTIwNjAwOTQzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjMwMTYiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNOTEzLjAxNyAyMzcuMDJjLTI1LjMxMS0yNS4zMTItNjYuMzQ5LTI1LjMxMi05MS42NiAwbC00MTIuNDc1IDQxMi40NzQtMjA2LjIzNy0yMDYuMjM3Yy0yNS4zMTItMjUuMzEyLTY2LjM1LTI1LjMxMi05MS42NjEgMHMtMjUuMzEyIDY2LjM1IDAgOTEuNjZsMjUyLjA2NyAyNTIuMDY3YzAuNzI5IDAuNzMgMS40MzkgMS40MDIgMi4xMzQgMi4wMjkgMjUuNDM0IDIzLjI1NyA2NC45MTMgMjIuNTg1IDg5LjUyNy0yLjAyOWw0NTguMzAzLTQ1OC4zMDNjMjUuMzEzLTI1LjMxMiAyNS4zMTMtNjYuMzUgMC4wMDEtOTEuNjYxeiIgcC1pZD0iMzAxNyIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjwvc3ZnPg=="},function(e,t,a){"use strict";a.d(t,"a",(function(){return c})),a(3);var r,i=a(1),n=a(8),o=a.n(n),s=(a(1164),a(0));!function(e){e.Large="large",e.Medium="medium",e.Small="small",e.ExtraSmall="extra-small"}(r||(r={}));var c=e=>{var t=o()("approval-tag",{["approval-tag--".concat(e.size)]:Boolean(e.size)},e.className);return Object(s.jsx)(i.r,{className:t,style:e.style,children:Object(s.jsx)(i.p,{selectable:!0,style:e.textStyle,className:e.textClassName,children:e.children})})}},function(e,t,a){"use strict";var r,i,n,o=a(11),s=(a(6),a(7)),c=(a(56),a(3)),l=a(1),d=a(15),u=a(4),p=a(108),m=a(48),h=a(60),b=a(191),g=a(68),v=a(14),j=a(41),O=(a(1178),a(0)),f=Object(d.a)((i=class extends c.Component{constructor(){super(...arguments),Object(o.a)(this,"handleInput",n,this)}setValue(e){var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(v.d)(a);t.data.value=e,r.handleWidgetChange(t.id)}render(){var{widget:e,ctxId:t,inTable:a=!1}=this.props;if(!t)return null;var{data:{name:r,required:i,placeholder:n,value:o,validationError:s,hasHistory:c}}=e;return"editing"===a||"showing"===a?this.renderEditingTableCell():a?this.renderTableCell():Object(O.jsxs)(l.r,{className:"widget-editor single-input-editor",children:[Object(O.jsxs)(m.a,{required:i,children:[r,c&&Object(O.jsx)(j.a,{ctxId:t,widget:e},e.id)]}),Object(O.jsx)(p.a,{hasError:Boolean(s),placeholder:n,maxlength:Number.MAX_SAFE_INTEGER,value:o,onInput:e=>this.handleInput(e.detail.value)}),Object(O.jsx)(h.a,{text:s})]})}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i="",writable:n}}=e;return Object(O.jsx)(g.a,{noBorder:!0,disabled:!n,placeholder:a,value:r,error:i||""})}renderEditingTableCell(){var{widget:e,ctxId:t,height:a,onFinish:r,inTable:i}=this.props;if(!t)return null;var{data:{placeholder:n,value:o}}=e;return Object(O.jsx)(b.b,{focus:!0,autoHeight:!0,maxHeight:270,className:"single-input-table-editor",customWrapperStyle:{minHeight:a+2},readonly:"showing"===i,isUseFakeInput:"showing"===i,placeholder:n,value:o,onBlur:e=>{this.handleInput(e),null==r||r()}})}},n=Object(s.a)(i.prototype,"handleInput",[u.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.setValue(e)}}}),Object(s.a)(i.prototype,"setValue",[u.f],Object.getOwnPropertyDescriptor(i.prototype,"setValue"),i.prototype),r=i))||r;t.a=f},,,,function(e,t,a){"use strict";var r,i,n,o=a(11),s=(a(6),a(7)),c=(a(56),a(3)),l=a(1),d=a(15),u=a(4),p=a(359),m=a(48),h=a(60),b=a(68),g=a(191),v=a(14),j=a(41),O=(a(1182),a(0)),f=Object(d.a)((i=class extends c.Component{constructor(){super(...arguments),Object(o.a)(this,"onChange",n,this)}setValue(e){var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(v.d)(a);t.data.value=e,r.handleWidgetChange(t.id)}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i="",disabled:n,writable:o}}=e;return Object(O.jsx)(b.a,{noBorder:!0,disabled:n||!o,placeholder:a,value:r,error:i||""})}renderEditingTableCell(){var{widget:e,ctxId:t,onFinish:a,height:r,inTable:i}=this.props;if(!t)return null;var{data:{placeholder:n,value:o}}=e;return Object(O.jsx)(g.b,{focus:!0,autoHeight:!0,className:"textarea-table-editor",customWrapperStyle:{minHeight:r+2},maxHeight:270,placeholder:n,value:o,readonly:"showing"===i,isUseFakeInput:"showing"===i,onBlur:e=>{null==a||a(),this.onChange(e)}})}render(){var{widget:e,ctxId:t,inTable:a=!1}=this.props;if(!t)return null;var{data:{name:r,value:i,disabled:n,required:o,placeholder:s,validationError:c,hasHistory:d}}=e;return"editing"===a||"showing"===a?this.renderEditingTableCell():a?this.renderTableCell():Object(O.jsxs)(l.r,{className:"widget-editor textarea-editor",children:[Object(O.jsxs)(m.a,{required:o,children:[r,d&&Object(O.jsx)(j.a,{ctxId:t,widget:e},e.id)]}),Object(O.jsx)(p.a,{hasError:Boolean(c),value:i,disabled:n,placeholder:s,style:{height:"78px",minHeight:"78px"},onInput:e=>this.onChange(e.detail.value)}),Object(O.jsx)(h.a,{text:c})]})}},n=Object(s.a)(i.prototype,"onChange",[u.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.setValue(e)}}}),Object(s.a)(i.prototype,"setValue",[u.f],Object.getOwnPropertyDescriptor(i.prototype,"setValue"),i.prototype),r=i))||r;t.a=f},function(e,t,a){"use strict";var r,i,n,o=a(11),s=(a(6),a(7)),c=(a(56),a(3)),l=a(1),d=a(15),u=a(4),p=a(124),m=a(2),h=a(108),b=a(48),g=a(60),v=a(68),j=a(191),O=a(14),f=a(41),M=(a(834),a(0)),_=Object(d.a)((i=class extends c.Component{constructor(){super(...arguments),Object(o.a)(this,"handleInput",n,this)}render(){var{widget:e,ctxId:t,onBlur:a=p.a,inTable:r}=this.props;if(!t)return null;var{data:{name:i,required:n,placeholder:o,value:s,validationError:c,hasHistory:d,disabled:u}}=e;return"editing"===r?this.renderEditingTableCell():r?this.renderTableCell():Object(M.jsxs)(l.r,{className:"widget-editor",children:[Object(M.jsxs)(b.a,{required:n,children:[i,d&&Object(M.jsx)(f.a,{ctxId:t,widget:e},e.id)]}),Object(M.jsx)(h.a,{placeholder:o,value:s,onBlur:a,onInput:e=>{e.preventDefault(),this.handleInput(e.detail.value)},type:"number",maxlength:15,disabled:u,hasError:Boolean(c)}),Object(M.jsx)(g.a,{text:c})]})}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i="",writable:n,disabled:o}}=e;return Object(M.jsx)(v.a,{noBorder:!0,align:"right",disabled:!n||o,placeholder:a,value:r,error:i||""})}renderEditingTableCell(){var{widget:e,ctxId:t,height:a,onFinish:r}=this.props;if(!t)return null;var{data:{placeholder:i,value:n,writable:o,disabled:s}}=e;return Object(M.jsx)(j.b,{focus:!0,type:"number",align:"right",className:"number-input-table-editor",customWrapperStyle:{minHeight:a+2},disabled:!o||s,maxHeight:270,maxlength:15,placeholder:i,value:n,onBlur:e=>{this.handleInput(e),null==r||r()}})}},n=Object(s.a)(i.prototype,"handleInput",[u.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(O.d)(a);Number.isNaN(Number(e))&&(t.data.validationError=Object(m.t)("approvalForm.fillNumber")),t.data.value=e,r.handleWidgetChange(t.id)}}}),r=i))||r;t.a=_},function(e,t,a){"use strict";var r,i,n,o,s,c=a(11),l=a(6),d=(a(56),a(7)),u=a(3),p=a(1),m=a(15),h=a(4),b=a(2),g=a(26),v=a(108),j=a(48),O=a(60),f=a(164),M=a(68),_=a(191),y=a(93),D=a(14),N=a(118),A=a(41),T=(a(1184),a(625)),I=a(286),C=a(89),x=a(293),S=a(8),w=a.n(S),L=a(180),E=a(0),k=Object(m.a)((i=class extends u.Component{constructor(e){super(e),Object(c.a)(this,"handleSelectChange",n,this),Object(c.a)(this,"handleInput",o,this),Object(c.a)(this,"handleCellChange",s,this),Object(l.a)(this,"handleInputClick",(()=>{var{widget:{data:{value:e}}}=this.props;this.setState({displayValue:e,inputType:"number"})})),Object(l.a)(this,"handleInputBlur",(e=>{this.setState({displayValue:e.detail.value&&this.showValue||"",inputType:"text"})}));var{widget:{data:{value:t}}}=e;this.state={editingValue:"",displayValue:t&&this.showValue||"",inputType:"text"}}get options(){var{widget:{data:{currencyRange:e}}}=this.props;return e.map((e=>L.a.currencyList.find((t=>t.value===e))||{value:e,text:"".concat(e,"-").concat(Object(b.t)("Currency_".concat(e.toUpperCase())))}))}get selectValue(){var{widget:{data:{unit:e}}}=this.props;return{index:this.options.findIndex((t=>t.value===e)),value:this.options.find((t=>t.value===e))}}renderTableSubCell(){var e,{widget:t,ctxId:a}=this.props;if(!a)return null;var{data:{writable:r}}=t;return Object(E.jsx)(M.a,{noBorder:!0,disabled:!r||1===this.options.length,value:null===(e=this.selectValue.value)||void 0===e?void 0:e.text,suffix:this.options.length>1&&r&&Object(E.jsx)(p.r,{className:"table-single-select__suffix",children:Object(E.jsx)(C.a,{name:"fold",size:20,color:"#646A73"})})})}renderEditingTableSubCell(){var{height:e,onFinish:t}=this.props;return Object(E.jsx)(x.a,{active:!0,labelKey:"text",options:this.options,value:this.selectValue.value||{},className:"table-amount-unit",onChange:e=>{this.handleSelectChange(e)},onDropdownVisibleChange:e=>{e||null==t||t()},selectAgainClear:!1,triggerProps:{customStyle:{height:e,transform:"translate(1px, 1px)"}},dropDownProps:{dropdownMatchSelectWidth:210,forceRender:!0}})}UNSAFE_componentWillReceiveProps(e){var{widget:t}=e,{data:{value:a,displayValue:r}}=t;this.setState({editingValue:a});var i=z(t);Number(r)!==Number(i)&&this.setState({displayValue:i})}get showValue(){var{widget:e}=this.props;return e?z(e):""}renderTableCell(){var{widget:e,ctxId:t,subCellType:a}=this.props;if(!t)return null;var{data:{placeholder:r,value:i,validationError:n,isCapital:o,keepDecimalPlaces:s,writable:c,currencyRange:l,unit:d}}=e;return l.length>0&&"unit"===a?this.renderTableSubCell():Object(E.jsx)(M.a,{noBorder:!0,align:"right",disabled:!c,placeholder:r,value:i?this.showValue:i,error:n||"",extra:Object(y.c)()&&o&&Boolean(i)&&"CNY"===d&&!isNaN(Number(i))&&Object(E.jsx)(f.a,{size:"small",oneLine:!0,value:i,keepDecimalPlaces:s,highlight:!0})})}renderEditingTableCell(){var{widget:e,ctxId:t,height:a,onFinish:r,subCellType:i}=this.props,{editingValue:n}=this.state;if(!t)return null;var{data:{placeholder:o,value:s,isCapital:c,keepDecimalPlaces:l,currencyRange:d,unit:u}}=e;return d.length>0&&"unit"===i?this.renderEditingTableSubCell():Object(E.jsx)(_.b,{focus:!0,className:"amount-input-table-editor",type:"number",align:"right",placeholder:o,value:s,maxHeight:240,maxlength:15,autoHeight:!0,customWrapperStyle:{minHeight:a+2},onChange:this.handleCellChange,onBlur:e=>{this.handleInput(e),null==r||r()},extra:Object(y.c)()&&c&&"CNY"===u&&Boolean(n)&&!isNaN(Number(n))&&Object(E.jsx)(f.a,{size:"small",value:n,keepDecimalPlaces:l,highlight:!0})})}render(){var e,{widget:t,ctxId:a,inTable:r}=this.props,{displayValue:i,inputType:n}=this.state;if(!t)return null;var{data:{name:o,required:s,placeholder:c,value:l,validationError:d,hasHistory:u,isCapital:m,keepDecimalPlaces:h,currencyRange:g,unit:M}}=t,_=z(t);return l&&!i&&this.setState({displayValue:_}),"editing"===r?this.renderEditingTableCell():r?this.renderTableCell():Object(E.jsxs)(p.r,{className:"widget-editor",children:[Object(E.jsxs)(j.a,{required:s,children:[o,u&&Object(E.jsx)(A.a,{ctxId:a,widget:t},t.id)]}),Object(E.jsxs)(T.a,{compact:!0,children:[Object(E.jsx)(v.a,{placeholder:c,value:i,onInput:e=>{e.preventDefault(),this.handleInput(e.detail.value),this.setState({displayValue:e.detail.value})},type:n,onClick:this.handleInputClick,onBlur:this.handleInputBlur,maxlength:15,hasError:Boolean(d),className:"amount-input"}),g.length>0&&(1===g.length?Object(E.jsx)(p.r,{className:"currency_disabled_wrapper",children:Object(E.jsx)(p.r,{className:w()("currency_disabled",Boolean(d)&&"currency_disabled_error"),children:null===(e=this.options[0])||void 0===e?void 0:e.text})}):Object(E.jsx)(I.a,{range:this.options.map((e=>e.text)),placeholder:c,value:this.selectValue.index,onChange:this.handleSelectChange,hasError:Boolean(d),inGroup:!0,useVWidth:!1,className:"search-wrapper",selectAgainClear:!1,notFoundContent:Object(b.t)("CellSelectSearch_NoResult"),height:225}))]}),Object(y.c)()&&m&&"CNY"===M&&(Boolean(l)||Boolean(i))&&Object(E.jsx)(f.a,{value:"number"===n?i:l,keepDecimalPlaces:h,highlight:!0}),Object(E.jsx)(O.a,{text:d})]})}},Object(d.a)(i.prototype,"options",[h.h],Object.getOwnPropertyDescriptor(i.prototype,"options"),i.prototype),n=Object(d.a)(i.prototype,"handleSelectChange",[h.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var t,{widget:a,ctxId:r}=this.props,{configurableFormStore:i}=Object(D.d)(r);a.data.unit="number"==typeof e?null===(t=this.options[Number(e)])||void 0===t?void 0:t.value:null==e?void 0:e.value,i.handleWidgetChange(a.id)}}}),o=Object(d.a)(i.prototype,"handleInput",[h.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(D.d)(a);Number.isNaN(Number(e))&&(t.data.validationError=Object(b.t)("approvalForm.fillNumber")),t.data.value=e,r.handleWidgetChange(t.id)}}}),s=Object(d.a)(i.prototype,"handleCellChange",[h.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.setState({editingValue:e})}}}),r=i))||r,z=e=>{var{data:{value:t,isThousandSeparator:a,keepDecimalPlaces:r}}=e,i=Object(g.f)(t,r);return Number.isNaN(Number(t))||i?t:Object(N.a)(t,{isThousandSeparator:a,keepDecimalPlaces:r})};t.a=k},function(e,t,a){"use strict";var r=a(3),i=a.n(r),n=a(1),o=a(8),s=a.n(o),c=(a(1185),a(0)),l="approval-input-group";t.a=i.a.memo((e=>{var{wrapClass:t="",wrapStyle:a={},compact:r,error:i,children:o}=e,d=s()(l,{["".concat(l,"-compact")]:r,["".concat(l,"-error")]:i},t);return Object(c.jsx)(n.r,{className:d,style:a,children:o})}))},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTTAgMGgxNnYxNkgweiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiMzMzcwRkYiIGQ9Ik02LjE0NSAxMS42MDdMMTMuNDUyIDQuM2MuMTMtLjEzLjM0MS0uMTMuNDcxIDBsLjQ3Mi40NzFjLjEzLjEzLjEzLjM0MSAwIC40NzJMNi4zOCAxMy4yNTdhLjMzMy4zMzMgMCAwIDEtLjQ3MiAwTDEuNjY3IDkuMDE0YS4zMzMuMzMzIDAgMCAxIDAtLjQ3MmwuNDcxLS40N2MuMTMtLjEzMS4zNDEtLjEzMS40NzEgMGwzLjUzNiAzLjUzNXoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},,function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(108),c=a(48),l=a(60),d=a(164),u=a(68),p=a(191),m=a(93),h=a(118),b=a(41),g=(a(1194),a(0)),v=Object(o.a)(r=class extends i.Component{get showValue(){var{widget:e}=this.props;if(!e)return"";var{data:{value:t,isThousandSeparator:a,keepDecimalPlaces:r}}=e;return Object(h.a)(t,{isThousandSeparator:a,keepDecimalPlaces:r})}render(){var{widget:e,ctxId:t,isInDetailField:a,inTable:r}=this.props;if(!t)return null;var{data:{name:i,required:o,placeholder:u,value:p,validationError:h,hasHistory:v,isCapital:j,keepDecimalPlaces:O}}=e,f="".concat(i);return"editing"===r?this.renderEditingTableCell():r?this.renderTableCell():Object(g.jsxs)(n.r,{className:"widget-editor",children:[Object(g.jsxs)(c.a,{required:o,children:[f,v&&Object(g.jsx)(b.a,{ctxId:t,widget:e},e.id)]}),Object(g.jsx)(s.a,{placeholder:u,value:this.showValue,disabled:!0}),Object(m.c)()&&!a&&j&&Boolean(p)&&!h&&Object(g.jsx)(d.a,{value:p,keepDecimalPlaces:O,highlight:!0}),Object(g.jsx)(l.a,{text:h})]})}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i,isCapital:n,keepDecimalPlaces:o,writable:s}}=e;return Object(g.jsx)(u.a,{noBorder:!0,align:"right",disabled:!s,placeholder:a,value:r?this.showValue:r,error:i||"",extra:Object(m.c)()&&n&&Boolean(r)&&Object(g.jsx)(d.a,{size:"small",value:r,oneLine:!0,keepDecimalPlaces:o,highlight:!0})})}renderEditingTableCell(){var{widget:e,ctxId:t,height:a,onFinish:r}=this.props;if(!t)return null;var{data:{placeholder:i,value:o,isCapital:s,keepDecimalPlaces:c}}=e;return Object(g.jsx)(p.b,{focus:!0,align:"right",className:"formula-table-editor",placeholder:i,height:0,customWrapperStyle:{minHeight:a},onBlur:r,extra:Object(g.jsxs)(n.a,{children:[o?this.showValue:o,Object(m.c)()&&s&&Boolean(o)&&Object(g.jsx)(d.a,{size:"small",value:o,keepDecimalPlaces:c,highlight:!0})]})})}})||r;t.a=v},function(e,t,a){"use strict";var r,i,n,o,s,c=a(11),l=a(6),d=a(7),u=(a(56),a(3)),p=a(1),m=a(15),h=a(4),b=a(423),g=a(48),v=a(60),j=a(286),O=a(293),f=a(89),M=a(68),_=a(14),y=a(41),D=(a(1195),a(0)),N=Object(m.a)((i=class extends u.Component{constructor(){super(...arguments),Object(l.a)(this,"optionIndexCache",new Map),Object(c.a)(this,"handleSelectChange",n,this),Object(c.a)(this,"handleCellSelectChange",o,this),Object(c.a)(this,"handleSelectChangeV1",s,this)}get selectValue(){var{widget:{data:{value:e,options:t}}}=this.props;if(e){var a=this.optionIndexCache.get(e);if(Object(b.a)(a))return a;for(var r=0;r<t.length;r++)if(e.value===t[r].value)return this.optionIndexCache.set(e,r),r}return-1}render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!t)return null;var{data:{name:r,required:i,placeholder:n,options:o,validationError:s,hasHistory:c}}=e;return"editing"===a?this.renderEditingTableCell():a?this.renderTableCell():Object(D.jsxs)(p.r,{className:"widget-editor single-select-editor",children:[Object(D.jsxs)(g.a,{required:i,children:[r,c&&Object(D.jsx)(y.a,{ctxId:t,widget:e},e.id)]}),Object(D.jsx)(j.a,{range:o.map((e=>e.text)),placeholder:n,value:this.selectValue,onChange:this.handleSelectChange,vwidth:600,hasError:Boolean(s),allowClear:!0}),Object(D.jsx)(v.a,{text:s})]})}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i="",writable:n}}=e;return Object(D.jsx)(M.a,{noBorder:!0,disabled:!n,placeholder:a,value:null==r?void 0:r.text,error:i||"",suffix:n&&Object(D.jsx)(f.a,{name:"fold",size:20,color:"#646A73"})})}renderEditingTableCell(){var{widget:e,ctxId:t,height:a,onFinish:r}=this.props;if(!t)return null;var{data:{placeholder:i,options:n,value:o}}=e;return Object(D.jsx)(O.a,{active:!0,labelKey:"text",placeholder:i,options:n,value:o||{},className:"table-single-select",onChange:e=>{this.handleCellSelectChange(e)},onClose:r,triggerProps:{customStyle:{height:a,transform:"translate(1px, 1px)"}},dropDownProps:{dropdownMatchSelectWidth:240,forceRender:!0}})}},n=Object(d.a)(i.prototype,"handleSelectChange",[h.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(_.d)(a);t.data.value=t.data.options[Number(e)],r.handleWidgetChange(t.id)}}}),o=Object(d.a)(i.prototype,"handleCellSelectChange",[h.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(_.d)(a);t.data.value=void 0!==e.value?e:null,r.handleWidgetChange(t.id)}}}),s=Object(d.a)(i.prototype,"handleSelectChangeV1",[h.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(_.d)(a);t.data.value=t.data.options[Number(e.detail.value)],r.handleWidgetChange(t.id)}}}),r=i))||r;t.a=N},function(e,t,a){"use strict";var r,i,n,o,s,c,l,d,u,p,m=a(9),h=a(11),b=a(6),g=a(7),v=(a(56),a(3)),j=a(1),O=a(15),f=a(4),M=a(25),_=a(8),y=a.n(_),D=a(286),N=a(2),A=a(89),T=a(68),I=a(48),C=a(60),x=a(293),S=a(14),w=a(41),L=(a(1196),a(26)),E=a(0),k=Object(O.a)((i=class extends v.Component{constructor(e){super(e),Object(b.a)(this,"pageToken",""),Object(b.a)(this,"query",""),Object(h.a)(this,"handleSearch",n,this),Object(h.a)(this,"handleSelectChange",o,this),Object(h.a)(this,"handleClearOption",s,this),Object(h.a)(this,"handleSearchClear",c,this),Object(h.a)(this,"handleCellSelectChange",l,this),Object(h.a)(this,"setValue",d,this),Object(h.a)(this,"getSelectOptions",u,this),Object(h.a)(this,"handleShowSelect",p,this),Object(b.a)(this,"handleClear",(e=>{e.stopPropagation(),this.handleCellSelectChange({})})),Object(b.a)(this,"retryGetLinkage",(()=>{var{widget:e,ctxId:t}=this.props,{configurableFormStore:a}=Object(S.d)(t);a.fieldLinkageManager.handleLinkageRetry(e.data.relativeLinkageIdList||[],e.id)})),this.state={hasMore:!1,loading:!1,error:!1}}get useSearch(){var{widget:{data:{externalDataSearchable:e}},inTable:t}=this.props;return!t&&e&&M.d.enableSelectExternalDataSearch}get selectValue(){var{widget:{data:{value:e,options:t}}}=this.props;if(e)for(var a=0;a<t.length;a++)if(e.value===t[a].value)return a;return this.useSearch?(null==e?void 0:e.text)||(null==e?void 0:e.value)||"":-1}get isDataMax(){if(!this.useSearch)return!1;var{widget:{data:{options:e}}}=this.props;return e.length>=L.a}render(){var e,{widget:t,ctxId:a,inTable:r}=this.props;if(!a)return null;var{data:{name:i,required:n,placeholder:o,options:s,validationError:c,hasHistory:l,disabled:d,linkageLoading:u,linkageError:p,isLinkageChild:m,linkageParentNameList:h,allowClear:b=!0}}=t,{configurableFormStore:g}=Object(S.d)(a),{unValidExtraWidgetName:v}=g;if("editing"===r)return this.renderEditingTableCell();if(r)return this.renderTableCell();var O=m?null===(e=h||[])||void 0===e?void 0:e.join(Object(N.t)("Semicolon")):"";return Object(E.jsxs)(j.r,{className:"widget-editor single-select-editor",children:[Object(E.jsxs)(I.a,{required:n,children:[i,l&&Object(E.jsx)(w.a,{ctxId:a,widget:t},t.id)]}),Object(E.jsx)(D.a,{range:s.map((e=>e.text)),hasError:Boolean(c),optionsError:this.state.error||p,placeholder:o,value:this.selectValue,onChange:this.handleSelectChange,useSearch:this.useSearch,onSearch:this.handleSearch,optionHasMore:this.state.hasMore,optionsSizeMax:this.isDataMax,onLoadMore:this.handleSearch,disabled:d,vwidth:600,onShowSelect:this.handleShowSelect,unValidExtraWidgetName:t.data.externalDataLinkage?v:"",parentNotFilled:O,loading:this.state.loading||u,allowClear:b,autoChangePosition:!0,onSearchClear:this.handleSearchClear,retry:this.retryGetLinkage,notFoundContent:Object(N.t)("approval-mp_NoFoundResult")}),Object(E.jsx)(C.a,{text:c})]})}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i="",writable:n}}=e;return Object(E.jsx)(T.a,{noBorder:!0,disabled:!n,placeholder:a,value:null==r?void 0:r.text,error:i||"",suffix:n&&Object(E.jsxs)(j.r,{className:"table-single-select__suffix",children:[Object(E.jsx)(A.a,{className:y()("table-single-select__clear",{hidden:!(null!=r&&r.text)}),name:"icon_close_filled",size:12,onClick:e=>{this.handleClear(e)}}),Object(E.jsx)(A.a,{name:"fold",size:20,color:"#646A73"})]})})}renderEditingTableCell(){var{widget:e,height:t,onFinish:a}=this.props,{data:{placeholder:r,options:i,value:n}}=e;return Object(E.jsx)(x.a,{active:!0,labelKey:"text",placeholder:r,options:i,value:n||{},className:"table-single-select",onChange:e=>{this.handleCellSelectChange(e)},onDropdownVisibleChange:e=>{e?this.handleShowSelect():null==a||a()},triggerProps:{customStyle:{height:t,transform:"translate(1px, 1px)"}},dropDownProps:{dropdownMatchSelectWidth:240,forceRender:!0},noOptionsContent:this.renderOptionsEmpty(),notFoundContent:Object(E.jsx)(j.r,{className:"ud-like-select__panel__menu__empty",children:Object(N.t)("approval-mp_NoFoundResult")})})}renderOptionsEmpty(){var e,{ctxId:t,widget:a}=this.props,{linkageLoading:r,linkageError:i,isLinkageChild:n,linkageParentNameList:o}=a.data,{configurableFormStore:s}=Object(S.d)(t),{unValidExtraWidgetName:c}=s,l=n?null===(e=o||[])||void 0===e?void 0:e.join(Object(N.t)("Semicolon")):"";return this.state.loading||r?Object(E.jsx)(j.r,{className:"table-single-select__empty",children:Object(N.t)("Loading")}):n&&i?Object(E.jsxs)(j.r,{className:"table-single-select__empty",children:[Object(N.t)("approval-web_UnableLoad_EmptyState"),Object(E.jsx)(j.p,{onClick:this.retryGetLinkage,className:"action",children:Object(N.t)("approval-mp_ClickRetry_Button")})]}):c&&a.data.externalDataLinkage?Object(E.jsx)(j.r,{className:"table-single-select__empty",children:Object(N.t)("PC.PleaseFilledFirst",{name:c})}):l?Object(E.jsx)(j.r,{className:"table-single-select__empty",children:Object(N.t)("form.account.pleaseSelectFirst",{name:l})}):void 0}},n=Object(g.a)(i.prototype,"handleSearch",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(m.a)((function*(t){try{if(!e.useSearch)return;var{widget:a}=e.props;if((t||""===t)&&(e.query=t,e.pageToken="",e.handleClearOption()),!e.query)return;e.setState({loading:!0,error:!1});var r=yield e.getSelectOptions({needReset:!0,isManual:!0,searchKey:e.query.trim(),paginationOption:{pageToken:e.pageToken}});a.data.isReset=!1,r&&(e.pageToken=r.pageToken,e.setState({loading:!1,hasMore:r.hasMore}))}catch(t){e.setState({loading:!1,error:!0})}}));return function(e){return t.apply(this,arguments)}}()}}),o=Object(g.a)(i.prototype,"handleSelectChange",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t}=this.props;this.setValue(t.data.options[Number(e)])}}}),s=Object(g.a)(i.prototype,"handleClearOption",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e}=this.props;e.data.options=[]}}}),c=Object(g.a)(i.prototype,"handleSearchClear",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.useSearch&&(this.setState({hasMore:!1,loading:!1,error:!1}),this.pageToken="",this.query="",this.handleClearOption())}}}),l=Object(g.a)(i.prototype,"handleCellSelectChange",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(S.d)(a);t.data.value=void 0!==e.value?e:null,r.handleWidgetChange(t.id)}}}),d=Object(g.a)(i.prototype,"setValue",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(S.d)(a);t.data.value=e,r.handleWidgetChange(t.id)}}}),u=Object(g.a)(i.prototype,"getSelectOptions",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(m.a)((function*(t){var a,{needReset:r=!0,isManual:i=!1,searchKey:n="",paginationOption:o={}}=t,{widget:s,ctxId:c}=e.props,{configurableFormStore:l}=Object(S.d)(c),{data:{externalDataLinkage:d,useExternalData:u,options:p}}=s;return r&&l.resetOptionsExtraNameAndLoading(),d?(a=yield l.getSelectOptionsAsync(s.id,i,n,o),s.data.isReset=!1):!u||null!=p&&p.length&&!e.useSearch||(a=yield l.refreshSelectOptionsAsync(s.id,n,o)),a}));return function(e){return t.apply(this,arguments)}}()}}),p=Object(g.a)(i.prototype,"handleShowSelect",[f.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.useSearch||this.getSelectOptions({needReset:!0,isManual:!1})}}}),r=i))||r;t.a=k},function(e,t,a){"use strict";var r,i,n,o=a(11),s=a(6),c=a(7),l=(a(56),a(3)),d=a(1),u=a(15),p=a(423),m=a(4),h=a(48),b=a(60),g=a(632),v=a(14),j=a(41),O=(a(1198),a(0)),f=Object(u.a)((i=class extends l.Component{constructor(){super(...arguments),Object(s.a)(this,"optionIndexCache",new Map),Object(o.a)(this,"handleSelectChange",n,this)}getValueIndex(e){var{widget:{data:{options:t}}}=this.props;if(e){var a=this.optionIndexCache.get(e);if(Object(p.a)(a))return a;for(var r=0;r<t.length;r++)if(e.value===t[r].value)return this.optionIndexCache.set(e,r),r}return-1}render(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{name:a,required:r,placeholder:i,options:n,value:o,validationError:s,hasHistory:c}}=e;return Object(O.jsxs)(d.r,{className:"widget-editor multi-select-editor",children:[Object(O.jsxs)(h.a,{required:r,children:[a,c&&Object(O.jsx)(j.a,{ctxId:t,widget:e},e.id)]}),Object(O.jsx)(g.a,{range:n.map((e=>e.text)),placeholder:i,value:o.map((e=>this.getValueIndex(e))),onChange:this.handleSelectChange}),Object(O.jsx)(b.a,{text:s})]})}},n=Object(c.a)(i.prototype,"handleSelectChange",[m.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(v.d)(a);t.data.value=e.map((e=>t.data.options[e])),r.handleWidgetChange(t.id)}}}),r=i))||r;t.a=f},function(e,t,a){"use strict";a.d(t,"a",(function(){return D}));var r,i=a(6),n=a(3),o=a(1),s=a(8),c=a.n(s),l=a(626),d=a.n(l),u=a(779),p=a.n(u),m=a(195),h=a.n(m),b=a(2),g=a(108),v=a(744),j=(a(1197),a(33)),O=a(268),f=a(65),M=a(72),_=a(157),y=a(0);!function(e){e.Top="top",e.Bottom="bottom"}(r||(r={}));class D extends n.Component{constructor(){var e;super(...arguments),e=this,Object(i.a)(this,"state",{isActive:!1,searchKey:"",isNoBorder:!0,isStateFocus:!1,loadIndex:50,uniqId:Object(M.c)(),dropdownPosition:r}),Object(i.a)(this,"deleteSelectedOne",(e=>{var{onChange:t,hasSelectedOptions:a=[],value:r}=this.props;t(r,a.filter((t=>t.value!==e.value))),this.setState({searchKey:""}),this.setNoBorder(!0),this.setFocus(!0)})),Object(i.a)(this,"deleteOne",(e=>{var{value:t,onChange:a,hasSelectedOptions:r=[]}=this.props,i=[...t];i.splice(e,1),a(i,r),this.setState({searchKey:""}),this.setNoBorder(!0),this.setFocus(!0)})),Object(i.a)(this,"handleInputChange",(e=>{var t,a,{value:r}=e.detail;this.setState({searchKey:r}),this.props.useSearch&&(null===(t=this.props)||void 0===t||null===(a=t.onSearch)||void 0===a||a.call(t,r))})),Object(i.a)(this,"handleFakeInputClick",(()=>{var{onShowSelect:e}=this.props;this.setFocus(!0),this.setState({isActive:!0,searchKey:""}),e()})),Object(i.a)(this,"handleMaskClick",(()=>{this.setFocus(!1),this.setState({isActive:!1,searchKey:"",loadIndex:50})})),Object(i.a)(this,"setFocus",(e=>{this.setState({isStateFocus:!e},(()=>setTimeout((()=>{this.setState({isStateFocus:e})}),0)))})),Object(i.a)(this,"setNoBorder",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.setState({isNoBorder:!t},(()=>setTimeout((()=>{e.setState({isNoBorder:t})}),0)))})),Object(i.a)(this,"handleItemClick",(e=>{var{searchKey:t}=this.state,{value:a,onChange:r,range:i,hasSelectedOptions:n}=this.props,o=[...a];if(""===t){var s=o.indexOf(e);-1===s?o.push(e):o.splice(s,1)}else{var c=i.findIndex((t=>t===i[e])),l=o.indexOf(c);-1===l?o.push(c):o.splice(l,1)}r(o,n),this.setState({searchKey:"",loadIndex:50}),this.setNoBorder(!0),this.setFocus(!0)})),Object(i.a)(this,"onReload",(()=>{var e,t;null===(e=this.props)||void 0===e||null===(t=e.onLoadMore)||void 0===t||t.call(e)})),Object(i.a)(this,"handleLoadMore",Object(_.a)((()=>{var{loadIndex:e}=this.state,{range:t,optionHasMore:a,optionsSizeMax:r,useSearch:i}=this.props;e>=t.length&&!i||(this.setState({loadIndex:e+50}),a&&!r&&setTimeout((()=>{var e,t;null===(e=this.props)||void 0===e||null===(t=e.onLoadMore)||void 0===t||t.call(e)}),400))}),200,{leading:!0}))}componentDidMount(){this.setFocus(!1),this.setNoBorder(!0)}componentDidUpdate(e,t){if(!t.isActive&&this.state.isActive&&this.props.autoChangePosition)setTimeout((()=>{Promise.all([Object(f.a)(".approval-multi-select.id-".concat(this.state.uniqId," .items")),Object(f.a)(".approval-multi-select.id-".concat(this.state.uniqId))]).then((e=>{var[t,a]=e;if(t&&a){var i=tt.getSystemInfoSync();a.bottom+t.height+4>i.windowHeight?this.setState({dropdownPosition:r.Top}):this.setState({dropdownPosition:r.Bottom})}}))}),10);else if(t.isActive&&!this.state.isActive){var a,i;null===(a=this.props)||void 0===a||null===(i=a.onHiddenSelect)||void 0===i||i.call(a)}}renderMask(){var{isActive:e}=this.state;return e&&Object(y.jsx)(o.r,{className:"mask",onClick:this.handleMaskClick})}renderOptionsEmpty(e){var{unValidExtraWidgetName:t,loading:a}=this.props;return t?Object(y.jsx)(o.r,{className:"items-empty",children:Object(b.t)("PC.PleaseFilledFirst",{name:t})}):a&&0===e.length?Object(y.jsx)(o.r,{className:"items-empty",children:Object(b.t)("Loading")}):0===e.length&&Object(y.jsx)(o.r,{className:"items-empty",children:Object(b.t)("CreateList.NoMatchedData")})}renderSearchState(e){var{loading:t,optionsError:a,optionHasMore:r,optionsSizeMax:i,unValidExtraWidgetName:n}=this.props,{searchKey:s}=this.state;return s&&n?Object(y.jsx)(o.r,{className:"state",children:Object(b.t)("PC.PleaseFilledFirst",{name:n})}):s||e.length?a?Object(y.jsxs)(o.r,{className:"state",children:[Object(b.t)("approval-web_UnableLoad_EmptyState"),Object(y.jsx)(o.p,{onClick:this.onReload,className:"action",children:Object(b.t)("approval-web_TryAgain_Desc")})]}):i?Object(y.jsxs)(o.r,{className:"state",children:["- ",Object(b.t)("approval-web_RefineSearch_Desc")," -"]}):t||r?Object(y.jsx)(o.r,{className:"state",children:Object(y.jsx)(v.a,{loading:!0})}):e.length?null:Object(y.jsx)(o.r,{className:c()("state","left"),children:Object(b.t)("approval-web_NoResultsFound_Desc")}):Object(y.jsx)(o.r,{className:c()("state","left"),children:Object(b.t)("approval-web_SearchBuilding_Placeholder")})}renderItems(){var{range:e,value:t,height:a="300px",useSearch:r}=this.props,{isActive:i,searchKey:n,loadIndex:s}=this.state,l=new Set(t),u=e.slice(0,s);return i&&n&&(u=e.filter((e=>e.toLowerCase().includes(n.toLowerCase().trim()))).slice(0,s)),i&&Object(y.jsxs)(o.n,{className:c()("items",this.state.dropdownPosition),style:{maxHeight:a},scrollY:!0,lowerThreshold:100,onScrollToLower:this.handleLoadMore,children:[u.length>0&&u.map(((t,a)=>{""!==n&&(a=e.findIndex((e=>e===t)));var r=l.has(a);return Object(y.jsxs)(o.r,{className:c()("item",{active:r}),onClick:()=>this.handleItemClick(a),children:[Object(y.jsx)(O.a,{tooltipId:Object(j.h)(),text:t,wordWrap:!1,maxWidth:320}),r&&Object(y.jsx)(o.g,{src:d.a,className:"item-selected-icon"})]},"".concat(t,"-").concat(a))})),r?this.renderSearchState(u):this.renderOptionsEmpty(u)]})}renderSelectedValue(){var{hasSelectedOptions:e=[]}=this.props;if(Array.isArray(e))return e.map(((e,t)=>Object(y.jsxs)(o.r,{className:"fake-input-tag",children:[Object(y.jsx)(o.p,{children:e.text}),Object(y.jsx)(o.g,{className:"fake-input-delete-icon",src:p.a,onClick:()=>this.deleteSelectedOne(e)})]},"".concat(e.value,"-").concat(t))))}renderValue(){var{range:e=[],value:t=0}=this.props;if(Array.isArray(t))return t.every((e=>-1===e))&&0!==t.length?Object(y.jsx)(o.r,{className:"fake-input-loading",children:Object(b.t)("Loading")}):t.map(((t,a)=>Object(y.jsxs)(o.r,{className:"fake-input-tag",children:[Object(y.jsx)(o.p,{children:e[t]}),Object(y.jsx)(o.g,{className:"fake-input-delete-icon",src:p.a,onClick:()=>this.deleteOne(a)})]},"".concat(e[t],"-").concat(a))))}renderFakeInput(){var{range:e=[],value:t=0,placeholder:a,hasError:r,hasSelectedOptions:i}=this.props,{isActive:n,searchKey:s,isNoBorder:l,isStateFocus:d}=this.state,u=(Array.isArray(t)?t.map((t=>e[t])).join(","):"")||(Array.isArray(i)?i.map((e=>e.text)).join(","):""),p=d;return Object(y.jsxs)(o.r,{onClick:this.handleFakeInputClick,className:c()("fake-input-wrapper",{active:n,error:r}),children:[Object(y.jsxs)(o.r,{className:"fake-input-width-wrapper",children:[Boolean(null==i?void 0:i.length)&&this.renderSelectedValue(),this.renderValue(),!n&&!u&&Object(y.jsx)(o.p,{className:"fake-input-placeholder",children:a}),n&&Object(y.jsx)(o.r,{className:"input-inner-wrapper",children:Object(y.jsx)(g.a,{focus:p,isNoBorder:l,value:n?s:"",placeholder:""===u?a:"",onInput:this.handleInputChange,style:{border:"none",display:"inline-block",height:"24px"}})})]}),Object(y.jsx)(o.g,{className:c()("icon",{active:n}),src:h.a})]})}render(){return Object(y.jsxs)(o.r,{className:c()("approval-multi-select","id-".concat(this.state.uniqId)),children:[this.renderFakeInput(),this.renderMask(),this.renderItems()]})}}},function(e,t,a){"use strict";var r,i,n,o,s,c,l,d,u,p=a(9),m=a(11),h=a(6),b=a(7),g=(a(56),a(3)),v=a(1),j=a(15),O=a(4),f=a(48),M=a(60),_=a(632),y=a(293),D=a(2),N=a(89),A=a(200),T=a(68),I=a(14),C=a(41),x=(a(1199),a(26)),S=a(0),w=Object(j.a)((i=class extends g.Component{constructor(e){super(e),Object(h.a)(this,"pageToken",""),Object(h.a)(this,"query",""),Object(m.a)(this,"handleSearch",n,this),Object(m.a)(this,"handleClearOption",o,this),Object(m.a)(this,"getSelectOptions",s,this),Object(m.a)(this,"handleSearchClear",c,this),Object(m.a)(this,"handleShowSelect",l,this),Object(m.a)(this,"handleSelectChange",d,this),Object(m.a)(this,"handleCellSelectChange",u,this),this.state={hasMore:!1,loading:!1,error:!1}}get useSearch(){var{widget:{data:{externalDataSearchable:e}},inTable:t}=this.props;return!t&&e}get isDataMax(){if(!this.useSearch)return!1;var{widget:{data:{options:e}}}=this.props;return e.length>=x.a}getValueIndex(e){var{widget:{data:{options:t}}}=this.props;if(e)for(var a=0;a<t.length;a++)if(e.value===t[a].value)return a;return-1}getValue(e){var t=[],a=[];return e.forEach((e=>{var r=this.getValueIndex(e);r<0?t.push(e):a.push(r)})),{hasSelectedOptions:t,currentValues:a}}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i="",writable:n}}=e;return Object(S.jsx)(T.a,{noBorder:!0,placeholder:a,disabled:!n,error:i||"",suffix:n&&Object(S.jsx)(N.a,{name:"fold",size:20,color:"#646A73"}),children:r.length?Object(S.jsx)(A.a.Group,{maxTagCount:"responsive",customStyle:{marginBottom:r.length?"-4px":""},children:null==r?void 0:r.map((e=>Object(S.jsx)(A.a,{text:e.text,closeHoverColor:"blue",backgroundColor:"rgba(31, 35, 41, 0.1)"},e.value)))}):null})}renderEditingTableCell(){var{widget:e,ctxId:t,onFinish:a,height:r}=this.props;if(!t)return null;var{data:{placeholder:i,options:n,value:o,writable:s}}=e;return Object(S.jsx)(y.a,{mode:"multiple",active:!0,labelKey:"text",disabled:!s,placeholder:i,options:n,value:Object(O.u)(o)||[],className:"table-multi-select",onDropdownVisibleChange:e=>{e?this.handleShowSelect():null==a||a()},onChange:e=>{this.handleCellSelectChange(e)},triggerProps:{customStyle:{minHeight:r,transform:"translate(1px, 1px)"}},dropDownProps:{dropdownMatchSelectWidth:270,forceRender:!0},noOptionsContent:this.renderOptionsEmpty()})}renderOptionsEmpty(){var{ctxId:e,widget:t}=this.props,{configurableFormStore:a}=Object(I.d)(e),{unValidExtraWidgetName:r}=a;return this.state.loading?Object(S.jsx)(v.r,{className:"table-single-select__empty",children:Object(D.t)("Loading")}):r&&t.data.externalDataLinkage?Object(S.jsx)(v.r,{className:"table-single-select__empty",children:Object(D.t)("PC.PleaseFilledFirst",{name:r})}):void 0}render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!t)return null;var{data:{name:r,required:i,placeholder:n,options:o,value:s,validationError:c,hasHistory:l}}=e,{configurableFormStore:d}=Object(I.d)(t),{unValidExtraWidgetName:u}=d,{hasSelectedOptions:p,currentValues:m}=this.getValue(s);return"editing"===a?this.renderEditingTableCell():a?this.renderTableCell():Object(S.jsxs)(v.r,{className:"widget-editor multi-select-editor",children:[Object(S.jsxs)(f.a,{required:i,children:[r,l&&Object(S.jsx)(C.a,{ctxId:t,widget:e},e.id)]}),Object(S.jsx)(_.a,{range:o.map((e=>e.text)),placeholder:n,hasError:Boolean(c),optionsError:this.state.error,value:m,hasSelectedOptions:p,onChange:this.handleSelectChange,onShowSelect:this.handleShowSelect,unValidExtraWidgetName:e.data.externalDataLinkage?u:"",loading:this.state.loading,autoChangePosition:!0,useSearch:this.useSearch,onSearch:this.handleSearch,optionHasMore:this.state.hasMore,optionsSizeMax:this.isDataMax,onLoadMore:this.handleSearch,onSearchClear:this.handleSearchClear}),Object(S.jsx)(M.a,{text:c})]})}},n=Object(b.a)(i.prototype,"handleSearch",[O.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(p.a)((function*(t){try{if(!e.useSearch)return;var{widget:a}=e.props;if((t||""===t)&&(e.query=t,e.pageToken="",e.handleClearOption()),!e.query)return;e.setState({loading:!0,error:!1});var r=yield e.getSelectOptions({needReset:!0,isManual:!0,searchKey:e.query.trim(),paginationOption:{pageToken:e.pageToken}});a.data.isReset=!1,r&&(e.pageToken=r.pageToken,e.setState({loading:!1,hasMore:r.hasMore}))}catch(t){e.setState({loading:!1,error:!0})}}));return function(e){return t.apply(this,arguments)}}()}}),o=Object(b.a)(i.prototype,"handleClearOption",[O.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e}=this.props;e.data.options=[]}}}),s=Object(b.a)(i.prototype,"getSelectOptions",[O.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(p.a)((function*(t){var a,{needReset:r=!0,isManual:i=!1,searchKey:n="",paginationOption:o={}}=t,{widget:s,ctxId:c}=e.props,{configurableFormStore:l}=Object(I.d)(c),{data:{externalDataLinkage:d,useExternalData:u,options:p}}=s;return r&&l.resetOptionsExtraNameAndLoading(),d?(a=yield l.getSelectOptionsAsync(s.id,i,n,o),s.data.isReset=!1):!u||null!=p&&p.length&&!e.useSearch||(a=yield l.refreshSelectOptionsAsync(s.id,n,o)),a}));return function(e){return t.apply(this,arguments)}}()}}),c=Object(b.a)(i.prototype,"handleSearchClear",[O.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.useSearch&&(this.setState({hasMore:!1,loading:!1,error:!1}),this.pageToken="",this.query="",this.handleClearOption())}}}),l=Object(b.a)(i.prototype,"handleShowSelect",[O.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.useSearch||this.getSelectOptions({needReset:!0,isManual:!1})}}}),d=Object(b.a)(i.prototype,"handleSelectChange",[O.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],{widget:r,ctxId:i}=e.props,{configurableFormStore:n}=Object(I.d)(i);r.data.value=a.concat(t.map((e=>r.data.options[e]))),n.handleWidgetChange(r.id)}}}),u=Object(b.a)(i.prototype,"handleCellSelectChange",[O.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(I.d)(a);t.data.value=e,r.handleWidgetChange(t.id)}}}),r=i))||r;t.a=w},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABCSURBVHgBdU9BDgAgCHK9rJ/qT6lWOnTGiQETEdkAMKUgtENwoWTq0yJkHiLT6kkPJXNw5sNTp3FdfdKaupknNTMX7Nt2Ufhj3+oAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQIBAQICAgICAg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YJybUI+zjLlim/dXM27Kyu292z9CyOMY5ZQcYxTkpyk0knKXtJrmk1u7JK71sktkjnsn1NeKevZdgyfU0XCyFyfU0f8ELLsJk0ALk+p/OgLLsgJOTyevrRd92JJWWgP/Z"},function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var r=a(5),i=a(9),n=a(3),o=a(18),s=a(244),c=a(181),l=a(76),d=a(36),u=a(297),p=a(2),m=a(10),h=a(20),b=a(75),g=a(165),v=a(14),j="TASK_ABORT",O=e=>{var{defaultFileList:t,maxSize:a,maxCount:O,fileType:f,value:M,onFileListChange:_,enableDrive:y,clickPreview:D,mountNodePoint:N="0"}=e,[A,T]=Object(n.useState)(t),I=Object(n.useRef)(new Map),C=y&&Object(b.g)();Object(n.useEffect)((()=>{M&&T(M)}),[M]),Object(n.useEffect)((()=>()=>{I.current.forEach((e=>{"function"==typeof(null==e?void 0:e.abort)&&e.abort()})),I.current.clear()}),[]);var x=e=>{null==_||_(e),T(e)},S=e=>{T((t=>{var a=t.map((t=>t.id===e.id?e:t));return e.status!==o.v.UPLOADING&&(null==_||_(a)),a}))},w=function(){var e=Object(i.a)((function*(e,t){var a="success",i=Date.now();try{var n,{configurableFormStore:u}=Object(v.d)(t),h=(null==u||null===(n=u.instanceInfo)||void 0===n?void 0:n.instanceId)||"",O=Object(d.s)({url:Object(s.a)().UPLOAD,filePath:e.url,name:e.name,formData:{type:e.type,suffix:".".concat(Object(l.a)(e.name)),instanceId:h}},(t=>S(Object(r.a)(Object(r.a)({},e),{},{percent:t}))));I.current.set(e.id,O);var f=yield Promise.race([O.taskPromise,new Promise(((e,t)=>{var{abort:a}=O;O.abort=()=>{try{"function"==typeof a&&a()}catch(e){m.a.info("upload abort error ",e)}t(new Error(j))}}))]);if(200!==f.statusCode)throw new Error("invalid statusCode: ".concat(f.statusCode));var M=JSON.parse(f.data);if(10118===M.code)throw new c.a(Object(p.t)("formAttachment.OversizeHint"));if(0!==M.code)throw Error("invalid code: ".concat(M.code));S(Object(r.a)(Object(r.a)({},e),{},{key:M.data.key,url:M.data.url,name:M.data.fileName||e.name,size:M.data.fileSize,status:o.v.UPLOADED,mountServer:b.a.Approval}))}catch(t){a="fail",S(Object(r.a)(Object(r.a)({},e),{},{status:o.v.FAILED,info:Object(p.t)("approval-mp_UploadFailedRetry_Desc")}))}finally{var _;null===(_=I.current)||void 0===_||_.delete(e.id),g.a.uploadAttachment({isSuccessful:a,type:e.extension,size:Object(g.b)(e.size),timeCost:Date.now()-i,isDrive:0})}}));return function(t,a){return e.apply(this,arguments)}}(),L=function(){var e=Object(i.a)((function*(e){var t="success",a=Date.now();try{var i=Object(b.j)({fileSize:e.size,filePath:e.url,fileName:e.name,mountNodePoint:N},(t=>S(Object(r.a)(Object(r.a)({},e),{},{percent:t}))));if(!i)return;var n=Promise.race([i.taskPromise,new Promise(((e,t)=>{var{abort:a}=i;i.abort=()=>{"function"==typeof a?a():Object(h.d)("fileAbortUploadTaskFail",{message:"abort fail, abort api is not implemented"}),t(new Error(j))}}))]),s=yield n;S(Object(r.a)(Object(r.a)({},e),{},{type:"drive_attachment",key:s.fileToken,status:o.v.UPLOADED,mountServer:b.a.Drive}))}catch(a){t="fail",S(Object(r.a)(Object(r.a)({},e),{},{type:"drive_attachment",status:o.v.FAILED,info:Object(p.t)("approval-mp_UploadFailedRetry_Desc")}))}finally{var c;null===(c=I.current)||void 0===c||c.delete(e.id),g.a.uploadAttachment({isSuccessful:t,type:e.extension,size:Object(g.b)(e.size),timeCost:Date.now()-a,isDrive:1})}}));return function(t){return e.apply(this,arguments)}}(),E=Object(n.useCallback)(function(){var e=Object(i.a)((function*(e){var t=(yield Object(u.a)(f,{maxFileSize:a,maxImageSize:a,maxCount:O,uploadedNum:A.length})).map((t=>t.status===o.v.FAILED?t:Object(r.a)(Object(r.a)({},t),{},{percent:0,status:o.v.UPLOADING,waitUploadPromise:C?L(t):w(t,e)})));x([...A,...t])}));return function(t){return e.apply(this,arguments)}}(),[A,y]),k=Object(n.useCallback)(((e,t)=>{var{id:a}=e;T((e=>e.map((e=>{if(e.id!==a)return e;var i=Object(r.a)(Object(r.a)({},e),{},{status:o.v.UPLOADING,percent:0});return i.waitUploadPromise=C?L(i):w(i,t),i}))))}),[]),z=Object(n.useCallback)((e=>{var t=I.current.get(e);"function"==typeof(null==t?void 0:t.abort)&&(null==t||t.abort()),x(A.filter((t=>t.id!==e))),I.current.delete(e)}),[A]);return{fileList:A,handleAddFileAndUpload:E,handleRemove:z,handlePreview:e=>{e.status===o.v.UPLOADED&&(m.a.info("preview attachment",e),D?Object(u.d)(e,N):Object(u.c)(e,A))},handleRetry:k}}},function(e,t,a){"use strict";var r,i,n,o=a(5),s=a(11),c=a(6),l=a(7),d=(a(56),a(3)),u=a(1),p=a(15),m=a(157),h=a(280),b=a(4),g=a(8),v=a.n(g),j=a(35),O=a(17),f=a(12),M=a(20),_=a(48),y=a(60),D=a(76),N=a(18),A=a(244),T=a(33),I=a(181),C=a(36),x=a(78),S=a(10),w=a(14),L=a(2),E=a(44),k=a(41),z=a(639),R=a(165),P=(a(1203),a(707)),U=a(29),B=a(183),F=a(75),Y=a(521),Q=a(40),G=a(0),W=Object(M.c)("pc:src/components/configurable-form/components/widgets/attachment-v2/editor/index.tsx"),V="TASK_ABORT",H=Object(p.a)((i=class extends d.Component{constructor(e){super(e),Object(c.a)(this,"isExceedMaxCount",!1),Object(c.a)(this,"hasExceedMaxSize",!1),Object(c.a)(this,"hasEmptyFile",!1),Object(c.a)(this,"maxAttachmentCount",9),Object(c.a)(this,"maxAttachmentSize",50),Object(c.a)(this,"enableDrive",!1),Object(c.a)(this,"clearUploadTask",(()=>{if(this.uploadTaskMap.size){for(var[e,t]of this.uploadTaskMap.entries())this.deleteAttachmentV2(e,t);W("fileAbortUploadTaskSuccess",{message:"attachment component exit without taskMap empty",taskCount:this.uploadTaskMap.size})}})),Object(c.a)(this,"handleAddBtnClick",void 0),Object(s.a)(this,"onPercentChange",n,this),Object(c.a)(this,"uploadTaskMap",new Map),Object(c.a)(this,"upload",Object(b.k)(this._upload)),Object(c.a)(this,"uploadToDrive",Object(b.k)(this._uploadToDrive)),Object(c.a)(this,"showUploadHint",Object(m.a)((e=>{j.b.showToast({title:e,icon:"error",duration:3e3})}),100)),Object(c.a)(this,"showAllHint",(()=>{this.isExceedMaxCount&&this.showUploadHint(this.enableDrive&&!Object(F.g)()?Object(L.t)("approval-mp_MaxNumberFiles_Toast",{APP_DISPLAY_NAME:Object(L.t)("feishu"),oldcount:9,newcount:30}):Object(L.t)("approval-mp_Upload30Max_Tooltip",{count:this.maxAttachmentCount})),this.hasExceedMaxSize&&this.showUploadHint(this.enableDrive&&!Object(F.g)()?Object(L.t)("approval-mp_MaxSizeFiles_Toast",{APP_DISPLAY_NAME:Object(L.t)("feishu"),oldsize:50,newsize:500}):Object(L.t)("approval-mp_FileMax500_Desc",{size:this.maxAttachmentSize})),this.hasEmptyFile&&this.showUploadHint(Object(L.t)("PC.Error_EmptyFile"))})),this.handleAddBtnClick=Object(b.k)(this._handleAddBtnClick).bind(this);var{ctxId:t}=e;if(t){var{userStore:{enableDrive:a}}=Object(w.d)(t);this.enableDrive=a,a&&Object(F.g)()&&(this.maxAttachmentCount=30,this.maxAttachmentSize=500)}}componentWillUnmount(){this.clearUploadTask()}render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!t)return null;var{data:{name:r,required:i,validationError:n,hasHistory:o}}=e;return a?this.renderAttachmentV2InTable():Object(G.jsxs)(u.r,{className:"widget-editor attachment-editor-v2",children:[Object(G.jsxs)(_.a,{required:i,subTitle:Object(L.t)("approval-mp_Upload30Max_Desc",{count:this.maxAttachmentCount,size:this.maxAttachmentSize}),children:[r,o&&Object(G.jsx)(k.a,{ctxId:t,widget:e},e.id)]}),this.renderAttachmentV2List(),Object(G.jsx)(y.a,{text:n})]})}renderAttachmentV2List(){var{widget:{data:{uploadAttachmentV2List:e}},ctxId:t}=this.props,{configurableFormStore:a}=Object(w.d)(t);return Object(G.jsxs)(u.r,{className:"attachment-list",children:[e.map(((e,t)=>{var r;return Object(G.jsx)(z.a,{att:e,idx:t,deletable:!0,onDelete:()=>{this.deleteAttachmentV2(e.id,this.uploadTaskMap.get(e.id))},onPercentChange:t=>this.onPercentChange(t,e.id),onRetry:()=>this.onReupload(e.id),enableDrive:this.enableDrive,mountNodePoint:null===(r=a.instanceInfo)||void 0===r?void 0:r.instanceId},t)})),this.renderAddBtn()]})}renderAddBtn(){var{widget:{data:{uploadAttachmentV2List:e}}}=this.props,t=e.length>=this.maxAttachmentCount;return Object(G.jsx)(Q.c,{arrow:!0,disabled:!t,text:Object(L.t)("approval-mp_Upload30Max_Tooltip",{count:this.maxAttachmentCount}),children:Object(G.jsxs)(u.b,{className:v()("item","attachment-add-btn",t&&"disabled"),onClick:this.handleAddBtnClick,disabled:t,children:[Object(G.jsx)(B.a,{name:"upload_outlined",customStyle:{marginRight:"4px"}}),Object(L.t)("approval-mp_UploadFiles_Button")]},"item-add-btn")})}*_handleAddBtnClick(){var{widget:e,ctxId:t}=this.props,{data:{uploadAttachmentV2List:a}}=e,{configurableFormStore:r}=Object(w.d)(t),i=this.enableDrive&&Object(F.g)();if(W("fileBizUploadAtt"),R.a.addAttachment(),!(this.maxAttachmentCount-a.length<1))try{this.uploadTaskMap.clear(),S.a.info("handleAddBtnClick lock filePickerLock");var n=yield Object(C.f)();W("fileTTFilePicker",{chooseResult:n});var o=this.maxAttachmentCount-a.length;this.isExceedMaxCount=n.list.length>o,this.hasExceedMaxSize=!1,this.hasEmptyFile=!1,a.push(...n.list.slice(0,o).map((e=>{var{path:t,name:a,size:r}=e,n=Object(h.a)(),o=Object(D.a)(a),s=x.a[o];s||(s="notype");var c=N.v.UPLOADING,l="";return Y.a.includes(o)?(c=N.v.FAILED,l=Object(L.t)("approval-mp_ThisFormatNotYet_Toast",{fileType:o}),this.showUploadHint(Object(L.t)("approval-mp_ThisFormatNotYet_Toast",{fileType:o}))):0===Number(r)?(c=N.v.FAILED,l=Object(L.t)("PC.Error_EmptyFile"),this.hasEmptyFile=!0):r>1024*this.maxAttachmentSize*1024&&(c=N.v.FAILED,l=Object(L.t)("approval-mp_FileMax500_Desc",{size:this.maxAttachmentSize}),this.hasExceedMaxSize=!0),c===N.v.FAILED?{id:n,status:N.v.FAILED,key:"",url:t,thumbUrl:x.b[s],name:a,extension:o,size:r,waitUploadPromise:Promise.resolve(),info:l,canBeRetried:!1}:{id:n,status:N.v.UPLOADING,key:"",url:t,thumbUrl:x.b[s],name:a,extension:o,size:r,waitUploadPromise:i?this.uploadToDrive(n):this.upload(n),canBeRetried:!0}})).filter(T.q)),this.showAllHint(),yield Promise.allSettled(a.filter((e=>{var{status:t}=e;return N.v.UPLOADING===t})).map((e=>{var{waitUploadPromise:t}=e;return t}))),r.handleWidgetChange(e.id)}catch(e){var{errMsg:s}=e||{};if(null!=s&&s.includes("cancel"))return void S.a.info("handleAddBtnClick filePicker canceled");W("commonOnError",{message:"handleAddBtnClick fail",errorMsg:Object(E.a)(e)})}finally{S.a.info("handleAddBtnClick unlock filePickerLock")}}*_upload(e){var{widget:{data:{uploadAttachmentV2List:t}}}=this.props;yield Object(T.s)();var a=t.find((t=>t.id===e));if(a){var r=Date.now(),i="success";try{var n=Object(D.a)(a.name),o=x.a[n],s=Object(C.s)({url:Object(A.a)().UPLOAD,filePath:a.url,name:a.name,formData:{type:"pic"===o?"image":"attachment",suffix:".".concat(a.extension.toLowerCase())}},(t=>this.onPercentChange(t,e)));if(!s)return;var c=Promise.race([s.taskPromise,new Promise(((e,t)=>{var{abort:a}=s;s.abort=()=>{"function"==typeof a?a():W("fileAbortUploadTaskFail",{message:"abort fail, abort api is not implemented"}),t(new Error(V))}}))]);this.uploadTaskMap.set(e,s);var l=yield c;if(200!==l.statusCode)throw new Error("invalid statusCode: ".concat(l.statusCode));var d=JSON.parse(l.data);if(10118===d.code)throw new I.a(Object(L.t)("formAttachment.OversizeHint"));if(0!==d.code)throw Error("invalid code: ".concat(d.code));a.key=d.data.key,a.url=d.data.url,a.name=d.data.fileName||a.name,a.size=d.data.fileSize,a.status=N.v.UPLOADED,a.mountServer=F.a.Approval,W("fileUploadAttSuccess")}catch(t){if(a.status=N.v.FAILED,a.info=Object(L.t)("approval-mp_UploadFailedRetry_Desc"),i="fail",t instanceof Error&&t.message===V)return void S.a.info("attachment upload task aborted",e);S.a.error("attachment upload failed",t),t instanceof I.a?this.showUploadHint(t.message):this.showUploadHint(Object(L.t)("AttachmentUploadFailedHint"));var u=Object(E.a)(t);W("fileUploadAttFail",{error:u}),Object(f.b)(O.f.ApprovalUploadFile,{error:u})}finally{this.uploadTaskMap.delete(e),R.a.uploadAttachment({type:a.extension,size:Object(R.b)(a.size),isSuccessful:i,timeCost:Date.now()-r,isDrive:0})}}else S.a.error("uploadAttachmentV2 invalid id ",e)}*_uploadToDrive(e){var{widget:{data:{uploadAttachmentV2List:t}},ctxId:a}=this.props,{configurableFormStore:r}=Object(w.d)(a);yield Object(T.s)();var i=t.find((t=>t.id===e));if(i){var n=Date.now(),o="success";try{var s,c,l=Object(F.j)({fileSize:i.size,filePath:i.url,fileName:i.name,mountNodePoint:null!==(s=null===(c=r.instanceInfo)||void 0===c?void 0:c.instanceId)&&void 0!==s?s:"0"},(t=>this.onPercentChange(t,e)));if(!l)return;var d=Promise.race([l.taskPromise,new Promise(((e,t)=>{var{abort:a}=l;l.abort=()=>{"function"==typeof a?a():W("fileAbortUploadTaskFail",{message:"abort fail, abort api is not implemented"}),t(new Error(V))}}))]);this.uploadTaskMap.set(e,l);var u=yield d;i.mountServer=F.a.Drive,i.key=u.fileToken,i.status=N.v.UPLOADED,W("fileUploadAttSuccess")}catch(t){if(i.status=N.v.FAILED,i.info=Object(L.t)("approval-mp_UploadFailedRetry_Desc"),o="fail",t instanceof Error&&t.message===V)return void S.a.info("attachment upload task aborted",e);S.a.error("attachment upload failed",t),t instanceof I.a?this.showUploadHint(t.message):this.showUploadHint(Object(L.t)("AttachmentUploadFailedHint"));var p=Object(E.a)(t);W("fileUploadAttFail",{error:p}),Object(f.b)(O.f.ApprovalUploadFile,{error:p})}finally{this.uploadTaskMap.delete(e),R.a.uploadAttachment({type:i.extension,size:Object(R.b)(i.size),isSuccessful:o,timeCost:Date.now()-n,isDrive:1})}}else S.a.error("uploadAttachmentV2 invalid id ",e)}deleteAttachmentV2(e,t){var{ctxId:a,widget:r,widget:{data:{uploadAttachmentV2List:i}}}=this.props,{configurableFormStore:n}=Object(w.d)(a),o=i.findIndex((t=>t.id===e));-1!==o&&(t&&(t.abort(),W("fileAbortUploadTaskSuccess")),i.splice(o,1)),n.handleWidgetChange(r.id)}onReupload(e){var{widget:{data:{uploadAttachmentV2List:t}}}=this.props,a=t.findIndex((t=>t.id===e));S.a.info("attachment reupload",t[a]);var r=this.enableDrive&&Object(F.g)();-1!==a&&(t[a].status=N.v.UPLOADING,t[a].percent=0,t[a].waitUploadPromise=r?this.uploadToDrive(e):this.upload(e))}renderAttachmentV2InTable(){var e,{ctxId:t,widget:{id:a,data:r}}=this.props,{configurableFormStore:i}=Object(w.d)(t);return console.log("file type",Object(b.u)(r.uploadAttachmentV2List)),Object(G.jsx)(u.r,{className:"attachment-v2-table-cell",children:Object(G.jsx)(P.a,{uploadText:Object(L.t)("approval-mp_UploadFiles_Button"),showUploadButton:r.writable||!r.uploadAttachmentV2List.length,error:r.validationError,disabled:!r.writable,clickPreview:!0,restPopoverProps:{position:"bottom",overlayPosition:"fixed"},defaultFileList:r.uploadAttachmentV2List.map((e=>{var t;return Object(o.a)(Object(o.a)({},e),{},{type:null!==(t=e.type)&&void 0!==t?t:U.h.ATTACH,previewUrl:e.url})})),ctxId:t,onFileListChange:e=>{Object(b.s)((()=>{r.uploadAttachmentV2List=e,i.handleWidgetChange(a)}))},enableDrive:this.enableDrive,maxFileNumber:this.maxAttachmentCount,maxFileSize:this.maxAttachmentSize,mountNodePoint:null===(e=i.instanceInfo)||void 0===e?void 0:e.instanceId})})}},n=Object(l.a)(i.prototype,"onPercentChange",[b.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(e,t)=>{var{widget:{data:{uploadAttachmentV2List:a}}}=this.props,r=a.findIndex((e=>e.id===t));r>=0&&a[r]&&(a[r].percent=e)}}}),Object(l.a)(i.prototype,"deleteAttachmentV2",[b.f],Object.getOwnPropertyDescriptor(i.prototype,"deleteAttachmentV2"),i.prototype),Object(l.a)(i.prototype,"onReupload",[b.f],Object.getOwnPropertyDescriptor(i.prototype,"onReupload"),i.prototype),Object(l.a)(i.prototype,"renderAttachmentV2InTable",[b.f],Object.getOwnPropertyDescriptor(i.prototype,"renderAttachmentV2InTable"),i.prototype),r=i))||r;t.a=H},function(e,t,a){"use strict";var r=a(9),i=a(3),n=a(1),o=a(873),s=a.n(o),c=a(640),l=a.n(c),d=a(641),u=a.n(d),p=a(874),m=a.n(p),h=a(875),b=a.n(h),g=a(35),v=a(2),j=a(36),O=a(20),f=a(76),M=a(78),_=a(44),y=a(15),D=a(135),N=a.n(D),A=a(237),T=a(165),I=a(642),C=a(8),x=a.n(C),S=a(18),w=a(75),L=a(40),E=a(297),k=a(157),z=a(0),R=Object(O.c)("pc:src/components/configurable-form/components/widgets/attachment-v2/components/attachment-item/index.tsx");t.a=Object(y.a)((e=>{var{att:t,deletable:a,onDelete:o,onRetry:c,onPercentChange:d,mountNodePoint:p="0"}=e,{name:h,url:O,status:y,percent:D=0,key:C,mountServer:P}=t,U=y===S.v.FAILED,B=Object(i.useRef)(!1),F=Object(w.i)(P),Y="img"===Object(A.b)(O),Q=Object(i.useMemo)((()=>Object(w.e)({isDrive:F,isImage:Y,url:O,file_token:C,mount_node_token:p})),[C,p,O,F]),G=Object(i.useMemo)((()=>Object(A.a)(t.size)),[t.size]),W=Object(i.useMemo)((()=>{switch(y){case S.v.UPLOADING:var e=Object(A.a)(t.size*Number(D)/100);return"".concat(e," / ").concat(G);case S.v.FAILED:return t.info;default:return G}}),[D,y,G]),V={download:e=>{if(e.stopPropagation(),!B.current){B.current=!0;var a=Date.now(),i="success";if(F&&Object(w.g)()){var n,o=Object(w.c)({fileToken:C,mountNodePoint:p,fileSize:t.size,fileName:h},(e=>{null==d||d(e)}));o&&(null===(n=o.taskPromise)||void 0===n||n.catch((()=>{i="fail",null==d||d(100),g.b.showToast({title:Object(v.t)("ApprovalForm.AttachmentUndownloadable"),icon:"error",duration:3e3})})).finally((()=>{T.a.downloadAttachment({isSuccessful:i,type:t.extension,size:Object(T.b)(t.size),timeCost:Date.now()-a,isDrive:1}),B.current=!1})))}else Object(A.c)(Object(r.a)((function*(){R("fileBizDownload"),yield Object(j.d)({url:Q,name:h},(e=>null==d?void 0:d(e)))})),(e=>{i="fail",g.b.showToast({title:Object(v.t)("ApprovalForm.AttachmentUndownloadable"),icon:"error",duration:3e3}),R("fileDownloadFail",{error:Object(_.a)(e),location:"in function download at src/components/configurable-form/components/widgets/attachment-v2/components/attachment-item/index.tsx"})}),(()=>{T.a.downloadAttachment({isSuccessful:i,type:t.extension,size:Object(T.b)(t.size),timeCost:Date.now()-a,isDrive:0}),B.current=!1}))}},preview:Object(k.a)((e=>{y===S.v.UPLOADED&&(e.stopPropagation(),Object(A.c)(Object(r.a)((function*(){R("fileBizPreview");var e="";F?e=(yield Object(w.f)({file_token:C,mount_node_token:p})).type:e=Object(f.a)(O);var t=M.a[e];"pic"===t?g.b.previewImage({urls:[Q]}):Object(E.b)(t)?yield Object(j.n)({url:Q,name:h}):g.b.showToast({title:Object(v.t)("PC.Error_AttachmentNotSupport"),icon:"error",duration:3e3})})),(e=>{g.b.showToast({title:Object(v.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),R("filePreviewFail",{error:Object(_.a)(e)})})))}),300),delete:e=>{e.stopPropagation(),null==o||o()},retry:e=>{e.stopPropagation(),null==c||c()}};return Object(z.jsxs)(n.r,{className:x()(N.a.item,U&&N.a.error),onClick:V.preview,children:[Object(z.jsx)(n.g,{className:N.a.thumb,src:t.thumbUrl}),Object(z.jsxs)(n.r,{className:N.a.content,children:[Object(z.jsx)(I.a,{arrow:!0,textWrap:!0,text:t.name,textStyle:{maxWidth:480},children:t.name}),Object(z.jsx)(n.r,{className:x()(N.a.ext),children:W})]}),Object(z.jsxs)(n.r,{className:N.a.methods,children:[0===t.percent||100===t.percent&&Object(z.jsx)(L.c,{className:N.a.tooltip,arrow:!0,text:Object(v.t)("ApprovalForm.AttachmentPreview"),children:Object(z.jsx)(n.r,{className:N.a["tooltip-wrapper"],onClick:V.preview,children:Object(z.jsx)(n.g,{className:N.a["tooltip-icon"],src:m.a})})}),0===t.percent||100===t.percent&&Object(z.jsx)(L.c,{className:N.a.tooltip,arrow:!0,text:Object(v.t)("approval-mp_Attachment_Download"),children:Object(z.jsx)(n.r,{onClick:V.download,className:N.a["tooltip-wrapper"],children:Object(z.jsx)(n.g,{className:N.a["tooltip-icon"],src:s.a})})}),U&&Object(z.jsx)(n.r,{className:N.a["tooltip-error"],children:Object(z.jsx)(n.g,{className:N.a["tooltip-icon"],src:l.a})}),y===S.v.FAILED&&t.canBeRetried&&Object(z.jsx)(L.c,{className:N.a.tooltip,arrow:!0,text:Object(v.t)("approval-mp_Retry_Tooltip"),children:Object(z.jsx)(n.r,{className:N.a["tooltip-wrapper"],onClick:V.retry,children:Object(z.jsx)(n.g,{className:N.a["tooltip-icon"],src:u.a})})}),a&&Object(z.jsx)(L.c,{className:N.a.tooltip,arrow:!0,text:Object(v.t)("ApprovalForm.AttachmentDelete"),children:Object(z.jsx)(n.r,{className:N.a["tooltip-wrapper"],onClick:V.delete,children:Object(z.jsx)(n.g,{className:N.a["tooltip-icon"],src:b.a})})})]}),(!U&&0!==D&&100!==D||y===S.v.UPLOADING)&&Object(z.jsx)(n.r,{className:N.a["status-bar"],children:Object(z.jsx)(n.r,{className:N.a["status-bar-process"],style:{width:"".concat(D,"%")}})})]})}))},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sb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NSA2SDEzLjMwOVoiIGZpbGw9IiMyQjJGMzYiLz4KPC9zdmc+Cg=="},function(e,t,a){"use strict";var r=a(5),i=a(37),n=a(3),o=a(1),s=a(19),c=a(40),l=a(154),d=a(0),u=["text","contentStyle","children","textEllipsisStyle"];t.a=e=>{var{text:t="",contentStyle:a,children:p,textEllipsisStyle:m}=e,h=Object(i.a)(e,u),b=Object(n.useRef)(null),[g,v]=Object(n.useState)();return Object(n.useEffect)((()=>{Object(s.nextTick)((()=>{var e;null===(e=b.current)||void 0===e||e.isTextEllipsis({cache:!1}).then((e=>{v(e)}))}))}),[t]),Object(d.jsx)(c.c,Object(r.a)(Object(r.a)({disabled:!g,text:t},h),{},{children:Object(d.jsx)(o.r,{style:a,children:Object(d.jsx)(l.a,{ref:b,text:p,customStyle:m})})}))}},function(e,t,a){"use strict";var r,i,n,o,s=a(11),c=a(6),l=a(7),d=(a(56),a(3)),u=a(8),p=a.n(u),m=a(1),h=a(15),b=a(31),g=a.n(b),v=a(4),j=a(2),O=a(48),f=a(60),M=a(287),_=a(26),y=a(14),D=a(254),N=a(93),A=a(68),T=a(293),I=a(89),C=a(327),x=a(644),S=a(57),w=a(645),L=a.n(w),E=a(41),k=(a(1210),a(0)),z=Object(h.a)((i=class extends d.Component{constructor(){super(...arguments),Object(c.a)(this,"handleDateChange",(e=>{var t=this.getNormalizeValue(this.value||g()()),a=g()(e.detail.value);this.handleDateTimeChange(t.year(a.year()).month(a.month()).date(a.date()))})),Object(c.a)(this,"handleTimeChange",(e=>{var t=this.getNormalizeValue(this.value||g()()),a=e.detail.value.split(":");this.handleDateTimeChange(t.hour(Number(a[0])).minute(Number(a[1])))})),Object(s.a)(this,"handleDateTimeChange",n,this),Object(s.a)(this,"handleResetValue",o,this)}get value(){var{widget:e}=this.props;return e?e.data.value:null}getNormalizeValue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.value,{widget:t}=this.props;if(!t)return g()();var{data:{subtype:a}}=t;if(e)switch(a){case S.a.DATE:return e.hour(0).minute(0).second(0).millisecond(0);case S.a.DATE_AND_TIME:return e.second(0).millisecond(0);case S.a.DATE_HALF:return e.hour(e.hour()>=12?12:0).minute(0).second(0).millisecond(0);default:return e}return e}render(){var{widget:e,ctxId:t,inTable:a,subCellType:r}=this.props;if(!e)return null;var{data:{name:i,required:n,placeholder:o,validationError:s,subtype:c,value:l,hasHistory:d,isHalfHour:u,disabled:h=!1}}=e,b=p()("widget-editor date-time-editor ",{"date-time-editor-disabled":h});return a?"date"===r?this.renderEditingDateTableCell():"time"===r?this.renderEditingTimeTableCell():"editing"===a?this.renderEditingHalfDayTableCell():this.renderHalfDayTableCell():Object(k.jsxs)(m.r,{className:b,children:[Object(k.jsxs)(O.a,{required:n,children:[i,d&&Object(k.jsx)(E.a,{ctxId:t,widget:e},e.id)]}),Object(k.jsx)(M.a,{isHalfHour:u,disabled:h,type:c,placeholder:o,value:l,hasError:Boolean(s),onChange:this.handleDateTimeChange}),Object(k.jsx)(f.a,{text:s})]})}renderSuffixIcon(){var{widget:e,subCellType:t}=this.props,{data:{value:a}}=e;return a?Object(k.jsx)(m.g,{onClick:this.handleResetValue,src:L.a,style:{width:"12px",height:"12px"}}):"date"===t?Object(k.jsx)(I.a,{name:"calendar_outlined",size:16,color:"#646A73"}):"time"===t?Object(k.jsx)(I.a,{name:"time_outlined",size:16,color:"#646A73"}):void 0}renderDateTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,validationError:r,writable:i,disabled:n=!1}}=e,o=this.getNormalizeValue()?Object(D.c)(this.getNormalizeValue(),j.curStarlingLang,D.a.YYYYMMDD,!1):"";return Object(k.jsx)(A.a,{noBorder:!0,disabled:!i||n,placeholder:a,value:o,error:r||"",suffix:this.renderSuffixIcon()})}renderEditingDateTableCell(){var{widget:e,ctxId:t,onFinish:a}=this.props;if(!t)return null;var{data:{placeholder:r,validationError:i,writable:n,disabled:o=!1,text:s}}=e;return Object(k.jsxs)(m.a,{children:[Object(k.jsx)(m.r,{className:"date-time-table-cell-editor",children:Object(k.jsx)(C.a,{customStyle:{position:"static",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center"},value:this.getNormalizeValue(),disabled:!n||o,onClick:console.log,onChange:e=>{this.handleDateChange(e),null==a||a()},onCancel:a,renderTrigger:e=>{var{showValue:t,onClick:a,active:s}=e;return Object(k.jsx)(A.a,{className:"date-time-table-editor__trigger",noBorder:!0,active:s,disabled:!n||o,placeholder:r,value:t,error:i||"",suffix:n&&!o&&this.renderSuffixIcon(),onClick:a})}})}),Object(k.jsx)(A.a,{className:"date-time-table-cell-editor-placeholder",noBorder:!0,disabled:!n||o,placeholder:r,value:s,error:i||"",suffix:this.renderSuffixIcon()})]})}renderTimeTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,validationError:r,writable:i,disabled:n=!1,subtype:o}}=e,s=this.getNormalizeValue();if(o===S.a.DATE_AND_TIME)return Object(k.jsx)(A.a,{noBorder:!0,disabled:!i||n,placeholder:a,value:(null==s?void 0:s.format("HH:mm"))||"",error:r||"",suffix:this.renderSuffixIcon()});var c=-1;return s&&(c=null!=s&&s.hour()?S.b.AFTERNOON:S.b.MORNING),Object(k.jsx)(A.a,{noBorder:!0,disabled:!i||n,placeholder:a,value:Object(j.t)(S.c[c]),error:r||"",suffix:this.renderSuffixIcon()})}renderEditingTimeTableCell(){var{widget:e,ctxId:t,onFinish:a}=this.props;if(!t)return null;var{data:{placeholder:r,validationError:i,writable:n,disabled:o=!1,value:s}}=e;return Object(k.jsxs)(m.a,{children:[Object(k.jsx)(m.r,{className:"date-time-table-cell-editor",children:Object(k.jsx)(x.a,{customStyle:{position:"static",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center"},value:this.getNormalizeValue(),disabled:!n||o,onChange:e=>{this.handleTimeChange(e),null==a||a()},onCancel:a,renderTrigger:e=>{var{showValue:t,onClick:a,active:s}=e;return Object(k.jsx)(A.a,{className:"date-time-table-editor__trigger",noBorder:!0,active:s,disabled:!n||o,placeholder:r,value:t,error:i||"",suffix:n&&!o&&this.renderSuffixIcon(),onClick:a})}})}),Object(k.jsx)(A.a,{className:"date-time-table-cell-editor-placeholder",noBorder:!0,disabled:!n||o,placeholder:r,value:(null==s?void 0:s.format("HH:mm"))||"",error:i||"",suffix:this.renderSuffixIcon()})]})}renderHalfDayTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,validationError:r,writable:i,disabled:n=!1}}=e,o=this.getNormalizeValue(),s=-1;return o&&(s=null!=o&&o.hour()?S.b.AFTERNOON:S.b.MORNING),Object(k.jsx)(A.a,{noBorder:!0,disabled:!i||n,placeholder:a,value:Object(j.t)(S.c[s]),error:r||"",suffix:i&&!n&&Object(k.jsx)(I.a,{name:"fold",size:20,color:"#646A73"})})}renderEditingHalfDayTableCell(){var{widget:e,ctxId:t,onFinish:a,height:r}=this.props;if(!t)return null;var{data:{placeholder:i,writable:n,disabled:o=!1}}=e,s=this.getNormalizeValue(),c=-1;return s&&(c=null!=s&&s.hour()?S.b.AFTERNOON:S.b.MORNING),Object(k.jsx)(T.a,{active:!0,noBorder:!0,searchable:!1,labelKey:"text",disabled:!n||o,placeholder:i,value:{value:c,text:Object(j.t)(S.c[c])},options:Object(N.b)(S.b).map((e=>({value:e,text:Object(j.t)(S.c[e])}))),onChange:e=>{if(void 0!==e.value){var t=this.getNormalizeValue(this.value||g()());this.handleDateTimeChange(t.hour(12*Number(e.value)))}null==a||a()},onClose:a,triggerProps:{customStyle:{width:159,height:r,transform:"translate(1px, 1px)"}},dropDownProps:{forceRender:!0,dropdownMatchSelectWidth:160}})}},n=Object(l.a)(i.prototype,"handleDateTimeChange",[v.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(y.d)(a);t.data.value=e,t.data.text=Object(_.d)(e,t.data.subtype),t.data.timezoneOffset=new Date(Number(e)).getTimezoneOffset(),r.handleWidgetChange(t.id)}}}),o=Object(l.a)(i.prototype,"handleResetValue",[v.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e,ctxId:t}=this.props,{configurableFormStore:a}=Object(y.d)(t);e.data.value=null,a.handleWidgetChange(e.id)}}}),r=i))||r;t.a=z},function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var r=a(6),i=a(3),n=a(1),o=a(124),s=a(177),c=a(0),l=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],d=["00","30"];class u extends i.Component{constructor(){super(...arguments),Object(r.a)(this,"state",{isActive:!1}),Object(r.a)(this,"handleChange",(e=>{var{onChange:t,isHalfHour:a}=this.props;a&&(e.detail.value="".concat(l[e.detail.value[0]],":").concat(d[e.detail.value[1]])),t(e),this.setState({isActive:!1})})),Object(r.a)(this,"handleCancel",(e=>{var t,a;this.setState({isActive:!1}),null===(t=(a=this.props).onCancel)||void 0===t||t.call(a,e)})),Object(r.a)(this,"handleInnerClick",(()=>{this.setState({isActive:!0})}))}render(){var{value:e,start:t,end:a,placeholder:r,isHalfHour:i,hasError:o,disabled:u,renderTrigger:p,customStyle:m,popupContainer:h}=this.props,{isActive:b}=this.state,g="";return e&&(g=e.format("HH:mm")),Object(c.jsxs)(n.a,{children:[i&&Object(c.jsx)(n.j,{mode:"multiSelector",value:g.split(":"),range:[l,d],disabled:u,onChange:this.handleChange,onCancel:this.handleCancel,style:m,"popup-container":h,children:p?p({showValue:g,onClick:()=>this.handleInnerClick(),active:b}):Object(c.jsx)(s.a,{hasError:o,value:g,placeholder:r,usingPlaceholder:!e,disabled:u,isActive:b,onClick:this.handleInnerClick})}),!i&&Object(c.jsx)(n.j,{mode:"time",value:g,start:t,end:a,disabled:u,onChange:this.handleChange,onCancel:this.handleCancel,style:m,children:p?p({showValue:g,onClick:()=>this.handleInnerClick()}):Object(c.jsx)(s.a,{hasError:o,value:g,disabled:u,placeholder:r,usingPlaceholder:!e,isActive:b,onClick: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NjA3NSAzLjQyNTUgOC44MTc2IDMuMTgyMzZDOC41NzQ0NiAyLjkzOTIxIDguMTgwMjQgMi45MzkyMSA3LjkzNzA5IDMuMTgyMzZaIiBmaWxsPSIjNjQ2QTczIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjYxMF83MTUzIj4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo="},function(e,t,a){"use strict";a(3);var r=a(1),i=a(15),n=a(48),o=a(41),s=a(290),c=(a(1313),a(0));t.a=Object(i.a)((e=>{var{widget:t,ctxId:a}=e;if(!t)return null;var{data:{hasHistory:i}}=t,{children:l}=t.data,{data:{name:d}}=l[0];return Object(c.jsxs)(r.r,{className:"date-interval-editor",children:[i&&Object(c.jsx)(r.r,{className:"fake-title-wrap",children:Object(c.jsx)(r.r,{className:"fake-title-wrap-inner",children:Object(c.jsxs)(n.a,{required:!1,children:[Object(c.jsx)(r.p,{className:"fill-name",children:d}),Object(c.jsx)(o.a,{ctxId:a,widget:t},t.id)]})})}),l.map((e=>Object(c.jsx)(s.a,{ctxId:a,widget:e},e.id)))]})}))},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMzMzMzEgNy4zMzMyNVYxLjc2MDU3QzcuMzMzMzEgMS42MTE5OCA3LjM0ODc4IDEuNTU4MSA3LjM3Nzg0IDEuNTAzNzhDNy40MDY4OSAxLjQ0OTQ2IDcuNDQ5NTIgMS40MDY4MyA3LjUwMzg0IDEuMzc3NzdDNy41NTgxNiAxLjM0ODcyIDcuNjEyMDQgMS4zMzMyNSA3Ljc2M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NzYwNjNDMS42MTIwNCA4LjY2NjU5IDEuNTU4MTYgOC42NTExMSAxLjUwMzg0IDguNjIyMDZDMS40NDk1MiA4LjU5MzAxIDEuNDA2ODkgOC41NTAzOCAxLjM3Nzg0IDguNDk2MDZDMS4zNDg3OCA4LjQ0MTc0IDEuMzMzMzEgOC4zODc4NiAxLjMzMzMxIDguMjM5MjdWNy43NjA1N0MxLjMzMzMxIDcuNjExOTggMS4zNDg3OCA3LjU1ODEgMS4zNzc4NCA3LjUwMzc4QzEuNDA2ODkgNy40NDk0NiAxLjQ0OTUyIDcuNDA2ODMgMS41MDM4NCA3LjM3Nzc3QzEuNTU4MTYgNy4zNDg3MiAxLjYxMjA0IDcuMzMzMjUgMS43NjA2MyA3LjMzMzI1SDcuMzMzMzFaIiBmaWxsPSIjMzM3MEZGIi8+Cjwvc3ZnPgo="},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r,i,n=a(23);(function(e){e[e.Pending=0]="Pending",e[e.Agreed=1]="Agreed",e[e.Rejected=2]="Rejected",e[e.Redirected=3]="Redirected",e[e.None=4]="None",e[e.Repeated=6]="Repeated",e[e.Processed=101]="Processed",e[e.Terminated=103]="Terminated"})(r||(r={})),function(e){e[e.Agreed=0]="Agreed",e[e.Rejected=1]="Rejected",e[e.Pending=2]="Pending",e[e.Recalled=3]="Recalled",e[e.Deleted=4]="Deleted",e[e.Completed=101]="Completed",e[e.Null=102]="Null",e[e.Terminated=103]="Terminated"}(i||(i={})),i.Agreed,i.Rejected,i.Pending,i.Recalled,i.Deleted,i.Completed,i.Terminated,r.Pending,r.Agreed,r.Rejected,r.Redirected,r.Repeated,i.Agreed,n.f.Approved,i.Rejected,n.f.Rejected,i.Pending,n.f.Running,i.Recalled,n.f.Canceled,i.Deleted,n.f.Deleted,i.Terminated,n.f.Terminated,i.Completed,n.f.None,i.Null},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ibGRzLXNwaW5uZXIiIHdpZHRoPSI0OHB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dGg9IjYiIGhlaWdodD0iMTUiIGZpbGw9IiM2NDZBNzMiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ib3BhY2l0eSIgdmFsdWVzPSIxOzAiIGtleVRpbWVzPSIwOzEiIGR1cj0iMXMiIGJlZ2luPSIwcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiPjwvYW5pbWF0ZT4KICA8L3JlY3Q+CjwvZz48L3N2Zz4="},function(e,t,a){"use strict";a.d(t,"b",(function(){return h})),a.d(t,"a",(function(){return b})),a(3);var r=a(15),i=a(1),n=a(122),o=a.n(n),s=a(2),c=a(164),l=a(13),d=a(118),u=a(93),p=a(454),m=(a(1218),a(0)),h=Object(r.a)((e=>{var{widget:t}=e;if(!t)return null;var{data:{name:a,groups:r,summarizeWidgets:n}}=t;if(!r.length||!n.length)return null;var h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e.data.visible)return null;var{isCapital:l=!1,isThousandSeparator:p=!0,keepDecimalPlaces:h=2}=e.data||{},b=new o.a(0),g=0;for(var{widgets:{[t]:v}}of r)if(""!==v.data.value){var j=new o.a(v.data.value);n&&(j=new o.a(j)),g+=1,j.isNaN()||(b=b.plus(j))}var O=b.toString();if(0===g)return null;var f=O;return n&&(f=Object(d.a)(O,{keepDecimalPlaces:h,isThousandSeparator:p})),Object(m.jsxs)(i.r,{className:"item",children:[Object(m.jsx)(i.r,{className:"title",children:Object(m.jsx)(i.p,{selectable:!0,children:"".concat(a).concat(Object(s.t)("formFieldlist.Summary"),"-").concat(e.data.name)})}),Object(m.jsxs)(i.r,{className:"number",children:[n?Object(m.jsx)(i.p,{selectable:!0,children:f}):Object(m.jsx)(i.p,{selectable:!0,children:O}),n&&l&&Object(u.c)()&&Object(m.jsx)(c.a,{keepDecimalPlaces:h,value:String(b),highlight:!0})]})]},e.id)},b=(e,t)=>{var{isThousandSeparator:n=!0,keepDecimalPlaces:o=2}=e.data||{},{displayValue:c,hasValue:l}=Object(p.a)(r,t,o,n);return 0===l?null:Object(m.jsxs)(i.r,{className:"item",children:[Object(m.jsx)(i.r,{className:"title",children:Object(m.jsx)(i.p,{selectable:!0,children:"".concat(a).concat(Object(s.t)("formFieldlist.Summary"),"-").concat(e.data.name)})}),Object(m.jsx)(i.r,{className:"number",children:Object(m.jsx)(i.p,{selectable:!0,children:c})})]},e.id)};return Object(p.b)(r)?Object(m.jsx)(i.r,{className:"widget-viewer viewer-summary",children:Object(m.jsx)(i.r,{className:"value",children:r[0].widgets.map(((e,t)=>{var a=e.id.split("|")[0],r=n.includes(a);switch(e.type){case l.c.AMOUNT_INPUT:return Object(m.jsx)(i.r,{className:"detail-viewer-summary-item",children:r&&b(e,t)},e.id);case l.c.NUMBER_INPUT:return Object(m.jsx)(i.r,{className:"detail-viewer-summary-item",children:r&&h(e,t)},e.id);case l.c.CALCULATION_FORMULA:return Object(m.jsx)(i.r,{className:"detail-viewer-summary-item",children:r&&h(e,t,!0)},e.id)}return Object(m.jsx)(i.r,{},e.id)}))})}):null})),b=Object(r.a)((e=>{var{widget:t}=e;if(!t)return null;var{groups:a,summarizeWidgets:r,name:n}=t;if(!a.length||!r.length)return null;var h=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=new o.a(0),{isCapital:p=!1,isThousandSeparator:h=!0,keepDecimalPlaces:b=2}=e.data||{};for(var{widgets:{[t]:g}}of a){var v=new o.a(g.data.value);r&&(v=new o.a(g.data.visible?v:0)),v.isNaN()||(l=l.plus(v))}var j=l.toString(),O=j;return r&&(O=Object(d.a)(j,{keepDecimalPlaces:b,isThousandSeparator:h})),Object(m.jsxs)(i.r,{className:"item",children:[Object(m.jsx)(i.r,{className:"title",children:"".concat(n).concat(Object(s.t)("formFieldlist.Summary"),"-").concat(e.data.name)}),Object(m.jsxs)(i.r,{className:"number",children:[!r&&Object(m.jsx)(i.r,{children:Object(d.b)(l.toNumber())}),r&&Object(m.jsx)(i.p,{children:O}),r&&p&&Object(u.c)()&&Object(m.jsx)(c.a,{keepDecimalPlaces:b,value:String(l),highlight:!0})]})]},e.id)},b=(e,t)=>{var{isThousandSeparator:r=!0,keepDecimalPlaces:o=2}=e.data||{},{displayValue:c,hasValue:l}=Object(p.a)(a,t,o,r);return 0===l?null:Object(m.jsxs)(i.r,{className:"item",children:[Object(m.jsx)(i.r,{className:"title",children:"".concat(n).concat(Object(s.t)("formFieldlist.Summary"),"-").concat(e.data.name)}),Object(m.jsx)(i.r,{className:"number",children:c})]},e.id)};return Object(m.jsx)(i.r,{className:"editor-summary",children:a[0].widgets.map(((e,t)=>{var a=e.id.split("|")[0],n=r.includes(a);switch(e.type){case l.c.NUMBER_INPUT:return Object(m.jsx)(i.r,{children:n&&h(e,t)},e.id);case l.c.AMOUNT_INPUT:return Object(m.jsx)(i.r,{children:n&&b(e,t)},e.id);case l.c.CALCULATION_FORMULA:return Object(m.jsx)(i.r,{children:n&&h(e,t,!0)},e.id)}return Object(m.jsx)(i.r,{},e.id)}))})}))},function(e,t,a){"use strict";var r=a(5),i=a(37),n=a(9),o=a(3),s=a(804),c=a(15),l=a(19),d=a(8),u=a.n(d),p=a(1),m=a(33),h=a(65),b=a(72),g=a(20),v=a(245),j=(a(1220),a(0)),O=["title","footer","border","children","columns","dataSource","className","showCustomScrollbar","customScrollbarStyle","scrollLeft"],f=Object(g.c)("pc:src/components/table/table/index.tsx"),M="common-table",_=function(){var e=Object(n.a)((function*(e){var t,a=0,r=function(){var i=Object(n.a)((function*(){!(t=yield Object(h.a)(e))&&a<3&&(a++,r())}));return function(){return i.apply(this,arguments)}}();return yield r(),t}));return function(t){return e.apply(this,arguments)}}(),y=e=>{var{column:t}=e,{colSpan:a=1,width:i,maxWidth:n,fixed:o,key:s,title:c,align:l}=t,d="function"==typeof t.customCellStyle?{}:t.customCellStyle;return Object(j.jsxs)(p.r,{className:u()("".concat(M,"__cell-item"),"".concat(M,"__cell-item--header"),{["".concat(M,"__cell-item--fixed-").concat(o)]:o}),style:Object(r.a)({minWidth:i,width:i,maxWidth:n||i,position:o?"sticky":"relative",zIndex:o?10:"",left:"left"===o?0:"none",right:"right"===o?0:"none",textAlign:l},d),children:[Object(j.jsx)(p.r,{className:"".concat(M,"__cell-item-inner"),children:c}),a>1&&Object(j.jsx)(p.r,{className:"".concat(M,"__cell-item-inner--colSpan"),style:{width:a*(i-1)},children:c})]},"header-".concat(s))},D=Object(c.a)((e=>{var t,a,{cell:i,column:n,row:o,columnIndex:s,rowIndex:c}=e,l="function"==typeof n.customCellStyle?n.customCellStyle(i):n.customCellStyle,{onClick:d}=null!==(t=null===(a=n.onCell)||void 0===a?void 0:a.call(n,i,o,c,s))&&void 0!==t?t:{};return Object(j.jsx)(p.r,{className:u()("".concat(M,"__cell-item"),"".concat(M,"__cell-item--row"),{["".concat(M,"__cell-item--fixed-").concat(n.fixed)]:n.fixed}),style:Object(r.a)({minWidth:n.width,width:n.width,maxWidth:n.maxWidth||n.width,position:n.fixed?"sticky":"relative",zIndex:n.fixed?10:"",left:"left"===n.fixed?0:"none",right:"right"===n.fixed?0:"none",textAlign:n.align,height:n.height},l),onClick:d,children:n.render?n.render(i,s,c):Object(j.jsx)(p.r,{className:"".concat(M,"__cell-item-inner"),children:i})},"".concat(o.key,"-").concat(n.key))}));t.a=e=>{var{title:t,footer:a,border:n,children:c,columns:d,dataSource:h,className:g,showCustomScrollbar:N,customScrollbarStyle:A,scrollLeft:T}=e,I=Object(i.a)(e,O),[C,x]=Object(o.useState)(0),[S,w]=Object(o.useState)(0),[L,E]=Object(o.useState)(0),k=Object(o.useRef)(),z=Object(o.useMemo)((()=>"common-table_".concat(Object(b.c)())),[]),R=Object(o.useMemo)((()=>"common-table_content_".concat(Object(b.c)())),[]);Object(o.useEffect)((()=>{void 0!==T&&(x(T),w(T))}),[T]),Object(o.useEffect)((()=>{I.scrollIntoView&&(k.current="content")}),[I.scrollIntoView]);var P=Object(o.useMemo)((()=>d.map((e=>e.key)).join(";")),[d]);Object(o.useEffect)((()=>{N&&Object(l.nextTick)((()=>{_("#".concat(R)).then((e=>{if(!e)return f("commonOnError",{location:"src/components/table/table/index.tsx",message:"表格宽度 querySelect失败"}),console.error("======表格 querySelect失败, 给一个兜底的宽度"),void(!L&&E(700));E(e.width)}))}))}),[N,P,R]);var U=Object(o.useCallback)(Object(m.c)((()=>{k.current=void 0}),600),[]),B=Object(o.useCallback)(Object(s.a)((e=>{if("content"===k.current){var{scrollLeft:t}=e.detail;w(t),L!==e.detail.scrollWidth&&E(e.detail.scrollWidth)}}),100),[L]),F=Object(o.useCallback)((e=>{if("bar"===k.current){var{scrollLeft:t}=e.detail;x(t)}}),[]),Y=()=>{"content"!==k.current&&(k.current="content")},Q=()=>{"bar"!==k.current&&(k.current="bar")};return Object(j.jsxs)(p.r,{className:u()(M,g),children:[Object(j.jsx)(p.r,{className:"".concat(M,"__title"),children:t}),Object(j.jsxs)(p.n,Object(r.a)(Object(r.a)({id:z,className:u()("".concat(M,"__table-wrapper"),n?"".concat(M,"__table-wrapper--border"):""),scrollX:!0},I),{},{scrollLeft:C,onTouchStart:Y,onTouchMove:Y,onDragStart:Y,onDragging:Y,onClick:Y,onScroll:e=>{var t;N&&(e=>{void 0===k.current&&(k.current="content"),B(e),U()})(e),null===(t=I.onScroll)||void 0===t||t.call(I,e)},children:[Object(j.jsxs)(p.r,{id:R,className:u()("".concat(M,"__table"),n?"".concat(M,"__table--border"):""),children:[Object(j.jsx)(p.r,{className:"".concat(M,"__table__row"),children:d.map((e=>Object(j.jsx)(y,{column:e},e.key)))}),h.map(((e,t)=>Object(j.jsx)(p.r,{className:"".concat(M,"__table__row"),children:d.map(((a,r)=>Object(j.jsx)(D,{column:a,row:e,cell:e[a.dataIndex||a.key],rowIndex:t,columnIndex:r},a.key)))},e.key)))]}),c]})),N&&Object(j.jsx)(p.n,{scrollX:!0,"show-scroll-bar":!0,className:u()("".concat(M,"__fake-scroll-bar")),style:A,scrollLeft:S,onScroll:e=>{void 0===k.current&&(k.current="bar"),F(e),U()},onScrollToLower:()=>{"bar"===k.current&&x(L)},onScrollToUpper:()=>{"bar"===k.current&&x(0)},onClick:Q,onTouchStart:Q,onTouchMove:Q,onDragStart:Q,onDragging:Q,children:Object(j.jsx)(p.r,{className:u()("".concat(M,"__fake-scroll-bar__content")),style:{width:L}})}),Object(j.jsx)(p.r,{className:"".concat(M,"__footer"),children:a}),Object(j.jsx)(v.a,{})]})}},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDY0ICg5MzUzNykgLSBodHRwczovL3NrZXRjaC5jb20gLS0+CiAgICA8dGl0bGU+aWNvbl9jbG9zZTwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IuaPkOekuuadoSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTkyMi4wMDAwMDAsIC03Ny4wMDAwMDApIj4KICAgICAgICAgICAgPGcgaWQ9Imljb24tLy1mb3J3YXJk5aSH5Lu9IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5MjIuMDAwMDAwLCA3Ny4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJpY29uX2Nsb3NlIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ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NjE5NzI4IDMuMTc1ODg5ODQsMy43MjM0Nzg4MyBMMy43NjUxNDU0OSwzLjEzNDIyMzE4IEMzLjkyNzg2Mzk1LDIuOTcxNTA0NzIgNC4xOTE2ODI2OSwyLjk3MTUwNDcyIDQuMzU0NDAxMTUsMy4xMzQyMjMxOCBMOS45NTIzMjk4Myw4LjczMjE1MTg2IEw5Ljk1MjMyOTgzLDguNzMyMTUxODYgWiIgaWQ9Iui3r+W+hCIgZmlsbD0iIzhGOTU5RSI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=(a(1229),a(41)),d=a(210),u=a(0),p=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!e)return null;var{data:{name:r,value:i,hasHistory:o}}=e,{configurableFormStore:d}=Object(c.d)(t),p=d?d.keyword:"";return a?this.renderTableCell(p):Object(u.jsxs)(n.r,{className:"widget-viewer single-select-viewer",children:[Object(u.jsxs)(n.r,{className:"title",children:[Object(u.jsx)(n.p,{selectable:!0,children:r}),o&&Object(u.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),Object(u.jsx)(n.r,{className:"value",children:Object(u.jsx)(s.a,{content:i?i.text:"",keyword:p})})]})}renderTableCell(e){var{widget:t}=this.props;if(!t.data.value)return null;var{data:{value:a}}=t;return Object(u.jsx)(d.a,{text:a?a.text:"",children:Object(u.jsx)(s.a,{content:a?a.text:"",keyword:e,style:{cursor:"text"}})})}})||r;t.a=p},function(e,t,a){"use strict";var r,i=a(3),n=a(1),o=a(15),s=a(42),c=a(14),l=a(41),d=(a(1233),a(0)),u=Object(o.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!e)return null;var{data:{name:r,value:i,hasHistory:o}}=e,{configurableFormStore:u}=Object(c.d)(t),p=u?u.keyword:"";return a?this.renderTableCell(p):Object(d.jsxs)(n.r,{className:"widget-viewer single-select-viewer",children:[Object(d.jsxs)(n.r,{className:"title",children:[Object(d.jsx)(n.p,{selectable:!0,children:r}),o&&Object(d.jsx)(l.a,{ctxId:t,widget:e},e.id)]}),Object(d.jsx)(n.r,{className:"value",children:Object(d.jsx)(s.a,{content:i.map((e=>e.text)).join("/"),keyword:p})})]})}renderTableCell(e){var{widget:t}=this.props;return t.data.value?Object(d.jsx)(n.r,{className:"table-cell-viewer",children:Object(d.jsx)(s.a,{content:t.data.value.map((e=>e.text)).join(""),keyword:e})}):null}})||r;t.a=u},function(e,t,a){"use strict";var r,i=a(9),n=a(6),o=a(3),s=a(1),c=a(15),l=a(35),d=a(17),u=a(10),p=a(36),m=a(2),h=a(12),b=(a(1238),a(41)),g=a(0),v=Object(c.a)(r=class extends o.Component{constructor(){super(...arguments),Object(n.a)(this,"handleItemClick",function(){var e=Object(i.a)((function*(e,t){try{yield Object(p.d)({url:e,name:t})}catch(e){if(u.a.error("handleItemClick failed",e),e&&e.errMsg&&e.errMsg.includes("user canceled"))return;l.b.showToast({title:Object(m.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),Object(h.b)(d.f.ApprovalError,{location:"in function handleItemClick at src/components/configurable-form/components/widgets/attachment/viewer/index.tsx",message:JSON.stringify(e)})}}));return function(t,a){return e.apply(this,arguments)}}())}render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{name:a,hasHistory:r}}=e;return Object(g.jsxs)(s.r,{className:"widget-viewer attachment-viewer",children:[Object(g.jsxs)(s.r,{className:"title",children:[Object(g.jsx)(s.p,{selectable:!0,children:a}),r&&Object(g.jsx)(b.a,{ctxId:t,widget:e},e.id)]}),this.renderAttachmentList()]})}renderAttachmentList(){var{widget:{data:{uploadAttachmentList:e}}}=this.props;return Object(g.jsx)(s.r,{className:"attachment-list",children:e.map((e=>Object(g.jsxs)(s.r,{className:"item",onClick:()=>this.handleItemClick(e.url,e.name),children:[Object(g.jsx)(s.g,{className:"thumb",src:e.thumbUrl}),Object(g.jsx)(s.r,{className:"name",children:Object(g.jsx)(s.p,{selectable:!0,children:e.name})})]},e.id)))})}})||r;t.a=v},function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var r=a(5),i=a(372),n=a(47),o=a(31),s=a.n(o),c=a(2);function l(e){return new Date(e.replace(/-/g,"/")).valueOf()}function d(e,t,a,i,o,d,u){var p=a.map((e=>Object(r.a)(Object(r.a)({},e),{},{start:e.range[0],end:e.range[1]}))),m=a&&a[0]&&1!==a[0].balanceUnit,h=i.map((e=>({start:l(e[0]),end:l(e[1])}))),b=[],g=0;p.forEach((a=>{var{start:r,end:i}=a;Number(i)<e||Number(r)>t||(g+=a.quota,b.push({start:(Math.max(Number(r),e)-e)/(t-e)*100,startTimeStamp:Number(r),end:(Math.min(Number(i),t)-e)/(t-e)*100,endTimeStamp:Math.min(Number(i),t),type:n.k.LEAVE,interval:a.quota}))}));var v=[];h.forEach((a=>{var{start:r,end:i}=a;i<e||r>t||v.push({start:(Math.max(r,e)-e)/(t-e)*100,startTimeStamp:r,end:(Math.min(i,t)-e)/(t-e)*100,endTimeStamp:Math.min(i,t),type:n.k.REST,interval:0})}));var j=[...b,...v],O=j.filter((e=>e.type===n.k.LEAVE)).map((e=>{var{startTimeStamp:t,endTimeStamp:a}=e,r=a-864e5>l(d)?Object(c.t)("LeaveGroup.NextDay"):"";return"".concat(s()(t).format("HH:mm"),"-").concat(r).concat(s()(a).format("HH:mm"))})).join(" / "),f=j.reduce(((e,t)=>e+t.interval),0),M=m?Math.min(g,1):f,_=t-864e5>l(d)?Object(c.t)("LeaveGroup.NextDay"):"",y=m?"LeaveGroup.DurationSubTitleByDays":"LeaveGroup.DurationSubTitleByHours",D=u?Object(c.t)("LeaveGroup.RestDay"):Object(c.t)(y,{count:M}),N=u?"":O;return{start:e,end:t,startText:s()(e).format("HH:mm"),endText:_+s()(t).format("HH:mm"),segments:j,text:N,intervals:u?0:M,subTitle:D,workingTime:o}}function u(e){var{leaveDetail:t,schedules:a,leaveQuota:r,leaveUnit:n}=e;if(t&&a)return a.map((e=>{var{day:a,workingTime:o,restTime:s}=e,c=l(a),u=[...o,...s].join().split(",").map(l),p=Math.min(...u),m=Math.max(...u),h=0===o.length&&s.length>0;return{title:"".concat(a," ").concat(Object(i.e)(c)),data:d(p,m,t,s,o,a,h),unit:t[0]?t[0].balanceUnit:1,leaveQuota:r,leaveUnit:n}})).filter((e=>!(0===e.data.intervals&&0!==e.data.workingTime.length)))}},function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTYwNjg4ODM0NjQ2IiBjbGFzcz0iaWNvbiIgc3R5bGU9IiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQwOTkiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTEyLjAwMDA4IDAuMDAwNjRjOTQuMjU1ODk3IDAgMTgyLjU1OTggMjUuNDcxOTcyIDI1OC40MTU3MTcgNjkuOTAzOTI0YTUxNC41NDM0MzcgNTE0LjU0MzQzNyAwIDAgMSAxODMuNjc5Nzk5IDE4My42Nzk3OTlBNTA5LjYzMTQ0MyA1MDkuNjMxNDQzIDAgMCAxIDEwMjMuOTk5NTIgNTEyLjAwMDA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V0rxxEZ64MdGgDWNirWdNSN2JI+Z9rnaNA7getisWHsiE6sgFid6A5cGbTcoKfloJJYJ6s8N+whVtptE9V2VI7Nd4m8sv9Bo8btXttNhdoKiKiMTWkOUmrjeiszp5M8m2rbE1b7rolB+DwRvQ2125749LuIacUDqQQE/SpiFvFA6qkd+AX4RdRfgaWWRTyQ2gKDcG8FaY7SwagcWEGmkXXn344EBGJvGSM7fKjE9WZWobpSoQ7oWEAg9piBiNr3WlAE9pw+p2ILUCUC+oitQRa7NcCIXLb7NqGVOcFFWW6Uz3aLkMJdV15wrVP1LudaBAQi3XEoR4vUKZyPNgGDiP0YcGifRgfRMNMCw7QcIKqkGSMC+mB5qFjpPcUfdEKVZYp53o0vItjtxy8jiAOC8sj+KLeXjuWt2SvyUXC9r8cIpUV+MUPMZ0St8mfL6/QbFUzmf/DTZYWIYTRDAAAAAElFTkSuQmCC"},function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var r=a(5),i=a(6),n=a(3),o=a(1),s=a(2),c=(a(1244),a(0));class l extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"state",{isActive:!1}),Object(i.a)(this,"handleMaskClick",(()=>{this.setState({isActive:!1})})),Object(i.a)(this,"handleItemClick",(()=>{this.setState({isActive:!0})}))}renderMask(){var{isActive:e}=this.state;return e&&Object(c.jsx)(o.r,{className:"mask",onClick:this.handleMaskClick})}render(){var{isActive:e}=this.state,{renderContent:t,children:a,popoverStyle:i}=this.props;return Object(c.jsxs)(o.r,{className:"approval-popover",children:[Object(c.jsx)(o.r,{className:"approval-popover-children",onClick:this.handleItemClick,children:a}),e&&Object(c.jsx)(o.r,{className:"approval-popover-item",style:Object(r.a)({width:s.curStarlingLang===s.StarlingLangEnum.en?160:150},"string"==typeof i?{}:i),onClick:this.handleMaskClick,children:t}),this.renderMask()]})}}},function(e,t,a){"use strict";a(3);var r=a(1),i=a(905),n=a.n(i),o=(a(1252),a(0));t.a=()=>Object(o.jsx)(r.r,{className:"spinner-loading",children:Object(o.jsxs)(r.r,{className:"content",children:[Object(o.jsx)(r.g,{className:"loading-bg",src:n.a}),Object(o.jsxs)(r.r,{className:"spinner",children:[Object(o.jsx)(r.r,{className:"spinner-one item"}),Object(o.jsx)(r.r,{className:"spinner-two item"}),Object(o.jsx)(r.r,{className:"spinner-three item"})]})]})})},function(e,t,a){"use strict";var r,i=a(6),n=a(3),o=a(15),s=a(1),c=a(22),l=a(14),d=a(698),u=a(12),p=a(17),m=a(24),h=a(0),b=Object(o.a)(r=class extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"innerCtxId",void 0)}componentDidMount(){var{configurableFormStore:e}=Object(l.d)(this.innerCtxId),{currentNav:t}=this.props;if(e&&t===c.a.Todo){var a,r,i,n,o,s,d,h="true"===(null===(r=((null===(a=m.b.indexStore.todoStore.baseStore.activeDetailItem)||void 0===a?void 0:a.Attributes)||[]).find((e=>{var{Key:t}=e;return"require_user_input"===t})))||void 0===r?void 0:r.Value);Object(u.b)(p.f.ApprovalDetailFormStatus,{form_status:null!==(i=e.writableWidgetIdSet)&&void 0!==i&&i.size?1:0,is_trusteeship:0,platform:"pc",task_id:null===(n=e.instanceInfo)||void 0===n?void 0:n.taskId,node_id:null===(o=e.instanceInfo)||void 0===o?void 0:o.currentTask.nodeId,require_user_input:h?1:0,instance_create_time:null===(s=e.instanceInfo)||void 0===s?void 0:s.createTime,all_field_list:e.getWidgetType(),definition_id:null===(d=e.instanceInfo)||void 0===d?void 0:d.approvalDefinitionId})}}componentWillUnmount(){Object(l.b)(this)}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.innerCtxId=Object(l.c)(Object(l.d)(e),{isChildOfWidgetViewerSwitcher:!0},this)}renderWidgets(){var{configurableFormStore:e}=Object(l.d)(this.innerCtxId);if(!e)return null;var{widgets:t}=e,{isInDetailPage:a,currentActive:r,currentNav:i}=this.props;return Object(h.jsx)(s.r,{className:"widgets",children:t.map((e=>Object(h.jsx)(d.a,{ctxId:this.innerCtxId,widget:e,isInDetailPage:a,currentActive:r,currentNav:i},e.id)))})}render(){return this.innerCtxId?Object(h.jsx)(s.r,{className:"configurable-form-viewer",children:this.renderWidgets()}):null}})||r;t.a=b},function(e,t,a){"use strict";a.d(t,"a",(function(){return v}));var r=a(2),i=a(361),n=a(14),o=a(1),s=a(15),c=(a(3),a(8)),l=a.n(c),d=a(28),u=a(42),p=a(40),m=a(24),h=a(336),b=a.n(h),g=a(0),v=Object(s.a)((e=>{var{ctxID:t,tooltipPosition:a="top",style:s,className:c,innerStyle:h,innerClassName:v}=e,{configurableFormStore:{instanceInfo:j}}=Object(n.d)(t),{serialId:O}=null!=j?j:{};if(!O)return null;var f=Object(g.jsx)(o.r,{className:l()(b.a["serial-id__inner"],v),style:h,children:Object(g.jsx)(u.a,{content:Object(r.t)("Detail.SerialID","编号:{{serialID}}",{serialID:O}),keyword:"",style:{whiteSpace:"nowrap",wordBreak:"keep-all"},onClick:()=>{Object(i.a)(O)}})});return Object(g.jsxs)(o.r,{className:l()(b.a["serial-id"],c),style:s,children:[m.b.globalStore.currentUser.hasExternalApproval?Object(g.jsxs)(o.a,{children:[Object(g.jsx)(o.r,{className:l()(b.a["serial-id__inner_prefix"],v),children:Object(r.t)(d.u?"Detail.FromLarkApproval":"Detail.FromApproval","来自飞书审批")}),Object(g.jsx)(o.r,{className:l()(b.a["serial-id__inner_split"],v)})]}):null,Object(g.jsx)(p.c,{arrow:!0,position:a,className:b.a["serial-id__tooltip"],text:Object(r.t)("ClickToCopy","点击可复制"),children:f})]})}))},function(e,t,a){"use strict";var r=a(9),i=a(3),n=a.n(i),o=a(15),s=a(1),c=a(8),l=a.n(c),d=a(2),u=a(72),p=a(294),m=a(99),h=a(192),b=a(230),g=a(42),v=a(154),j=a(40),O=a(69),f=a(24),M=a(47),_=(a(1257),a(0)),y=Object(O.h)("relative-in-table"),D=Object(o.a)((e=>{var t,a,{onItemClick:n,onRemoveItem:o,item:c,disabled:u,keywords:p,isViewer:m,transferSelector:O}=e,{approvalStatus:D}=c,N=Object(i.useMemo)((()=>D===M.d.CLEARED),[D]),A=Object(i.useRef)(null),[T,I]=Object(i.useState)(!1),{globalStore:C}=Object(i.useContext)(f.a),x=C.enableShowCrossTenant&&("true"===(null===(t=c.Attributes)||void 0===t||null===(a=t.find((e=>"from_external_tenant"===e.Key)))||void 0===a?void 0:a.Value)||Boolean(c.b2bFlag));return Object(_.jsxs)(s.r,{className:l()(y("relative-item"),u&&"relative-in-table__readonly"),onClick:()=>{N||null==n||n(c)},onMouseEnter:()=>{setTimeout(Object(r.a)((function*(){var e,t=yield null==A||null===(e=A.current)||void 0===e?void 0:e.isTextEllipsis({cache:!0});I(Boolean(t))})),300)},children:[Object(_.jsxs)(s.r,{className:y("item-content"),children:[Object(_.jsx)(s.r,{className:l()("iconfont",y("icon"),"icon-approval_outlined")}),Object(_.jsx)(s.r,{className:y("name"),children:Object(_.jsx)(j.c,{text:N?Object(d.t)("approval-mp_ThisDeleted_Desc"):c.instanceName,fixed:!0,arrow:!0,disabled:!T&&!N,wordWrap:!0,textWrap:!0,textStyle:{maxWidth:320},transferSelector:O,children:Object(_.jsx)(v.a,{customStyle:{width:"100%"},ref:A,text:Object(_.jsx)(g.a,{content:c.instanceName,keyword:p||"",isSingleLine:!0,style:{cursor:"pointer"}})})})}),m?null:Object(_.jsx)(h.c,{size:"small",status:c.approvalStatus,style:{margin:"0 4px",padding:"1.5px 4px",fontSize:"10px",lineHeight:"13px",height:"fit-content"}}),x&&Object(_.jsx)(b.a,{size:"extra-small",style:{padding:"1.5px 4px",fontSize:"10px",lineHeight:"13px",height:"fit-content"}})]}),u?null:Object(_.jsx)(s.r,{onClick:e=>{e.stopPropagation(),null==o||o(c)},className:l()("iconfont","icon-reject",y("delete"))})]})}));t.a=e=>{var{maxCount:t=3,disabled:a=!0,onSelectClick:r,value:o,onItemClick:c,onRemoveItem:h,showSelectButton:b=!0,error:g,keywords:v="",isViewer:j}=e,O=Object(i.useRef)("popover-content-".concat(Object(u.c)()));return Object(_.jsxs)(s.r,{className:l()(y(),g&&y("error-border")),children:[Object(_.jsx)(s.r,{children:b&&Object(_.jsx)(m.a,{type:"text",icon:"expand",disabled:a,onClick:r,children:Object(d.t)("PC.RelativeApproverTitle")})}),Object(_.jsx)(s.r,{className:l()(y("file-list")),children:o.slice(0,t).map(((e,r)=>o.length>t&&t-1===r?j?null:Object(_.jsx)(p.a,{trigger:"hover",width:320,overlayPosition:"fixed",position:"bottom",popoverContentClass:O.current,style:{width:"fit-content"},zIndex:10,content:o.slice(t-1).map((e=>Object(_.jsxs)(s.r,{children:[Object(_.jsx)(D,{item:e,onRemoveItem:h,onItemClick:c,disabled:a,keywords:v,isViewer:j,transferSelector:".".concat(O.current)}),!a&&Object(_.jsx)(s.r,{className:y("close-icon"),onClick:()=>null==h?void 0:h(e)})]},e.instanceId))),children:Object(_.jsx)(m.a,{type:"text",className:y("rest-entry"),icon:"icon_more_outlined",children:Object(d.t)("ApprovalSearch.All")})}):Object(_.jsxs)(n.a.Fragment,{children:[Object(_.jsx)(D,{item:e,onRemoveItem:h,onItemClick:c,disabled:a,keywords:v,isViewer:j}),Object(_.jsx)(s.r,{className:y("close-icon")})]},e.instanceId)))}),g&&Object(_.jsx)(s.r,{className:y("error-text"),children:g})]})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return u}));var r=a(9),i=a(3),n=a(13),o=a(16),s=a(665),c=a(140),l=a(20);function d(e){var{fields:t,fieldsData:a,configurableFormStore:r,ids:i,suffix:o}=e;r.isInRelativeApproval=!0;var[c,l]=Object(s.b)(t,a,o,i),d=r.widgetsInputFormat(c);return r.addAllWidgetDescendantsToMap(d),r.widgetsRestoreFormat(l),r.isInRelativeApproval=!1,d.filter((e=>{var{data:{visible:t,isRestored:a,readable:r,displayCondStatus:i},type:o}=e;return!(!(t&&a&&r)||o===n.c.DESC&&!i)}))}function u(e){var{instanceId:t,relativeFormIds:a,configurableFormStore:n,isInDetailPage:s,isEditorChecked:u,creatorUserId:p}=e,[m,h]=Object(i.useState)(Boolean(null==a?void 0:a.length)),[b,g]=Object(i.useState)(),[v,j]=Object(i.useState)(!1),[O,f]=Object(i.useState)(!1),[M,_]=Object(i.useState)(0),[y,D]=Object(i.useState)([]),N=Object(i.useCallback)((()=>{_((e=>e+1)),f(!1)}),[]);return Object(i.useEffect)((()=>{if(m){var e=function(){var e=Object(r.a)((function*(){try{var e,{innerInstances:r}=n;if(!r)return void h(!1);var{formDefValue:i="{}",formInstanceValue:p="[]"}=null!==(e=r[t])&&void 0!==e?e:{},{fields:m=[]}=JSON.parse(i),b=JSON.parse(p);if(!s||u&&!m.length){var v,O,M;j(!0);var{data:{detail:_}}=yield o.c.instancedetail({instanceCode:t,instanceId:t,parentId:"",shareCode:""});m=null!==(v=JSON.parse(null!==(O=null==_?void 0:_.form)&&void 0!==O?O:"{}").fields)&&void 0!==v?v:[],b=JSON.parse(null!==(M=null==_?void 0:_.content)&&void 0!==M?M:"[]"),g(null==_?void 0:_.creatorUserName)}var y=d({fields:m.filter((e=>b.some((t=>t.id===e.id)))),fieldsData:b,configurableFormStore:n,ids:a,suffix:t});y.some((e=>e.data.isRestored))?D(y):h(!1)}catch(e){f(!0),c.a.error("get instance detail error",e),Object(l.d)("commonOnError",{location:"in function useRelativeForm at /src/components/configurable-form/components/widgets/relative-approval/components/relative-form/hook.ts",msg:e})}j(!1)}));return function(){return e.apply(this,arguments)}}();e()}else try{o.c.userqueryUsers({userIds:[p]}).then((e=>{var t;g(null===(t=e.data.userList[0])||void 0===t?void 0:t.name)}))}catch(e){c.a.error("query users failed")}}),[M]),{loading:v,crash:O,enableRelativeForm:m,relativeFormWidgets:y,submitterName:b,onRetry:N}}},function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return d}));var r=a(141),i=a(2),n={[r.a.DATE_INTERVAL]:!0,[r.a.LEAVE_GROUP_V2]:!0,[r.a.OFF_BOARDING_GROUP]:!0,[r.a.ON_BOARDING_GROUP]:!0,[r.a.JOB_ADJUST_GROUP]:!0,[r.a.REMEDY_GROUP_V2]:!0,[r.a.WORK_GROUP_V2]:!0,[r.a.WORK_GROUP]:!0,[r.a.TRIP_GROUP]:!0,[r.a.OUT_GROUP]:!0,[r.a.REMEDY_GROUP_V2]:!0},o={widgetOutGroupInterval:"widgetOutGroupUnit",widgetWorkGroupInterval:"widgetWorkGroupUnit",widgetLeaveGroupInterval:"widgetLeaveGroupUnit"},s=Object.values(o);function c(e,t,a){e.forEach((e=>{e.type in n&&c(Object.values(e.value),t,a),a.set(e.id,e),function(e,t){var{id:a}=e;e.id=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(e&&"_").concat(e)}(a,t)}(e,t)}))}function l(e,t,a,r){var i=[],n=[],l=new Map,d=new Map;return c(e,a,l),c(t,a,d),r.forEach((e=>{var t=d.get(e),a=l.get(e);!s.includes(e)&&t&&a&&(e in o&&u(t,d),n.push(t),i.push(a))})),[i,n]}function d(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return 1===e.length&&e[0]&&a[e[0]]?Object(i.t)("approval-mp_AddTemplateTitle_Button","添加{{ApprovalTemplateTitle}}",{ApprovalTemplateTitle:(null===(t=a[e[0]])||void 0===t?void 0:t.Name.DefaultValue)||""}):Object(i.t)("FormConnect.AddInstance")}var u=(e,t)=>{if(e){var{id:a}=e,[r]=a.split("_");if(r in o){var i=t.get(o[r]);switch(r){case"widgetLeaveGroupInterval":case"widgetOutGroupInterval":var n;e.value.text+=" ".concat(null!==(n=null==i?void 0:i.value.text)&&void 0!==n?n:"");break;case"widgetWorkGroupInterval":var s;e.value+=" ".concat(null!==(s=null==i?void 0:i.value.text)&&void 0!==s?s:"")}}}}},function(e,t,a){"use strict";var r,i=a(3),n=a(15),o=a(1),s=a(2),c=a(41),l=(a(1263),a(0)),d=Object(n.a)(r=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{children:a}=e.data,[r,i]=a,{data:{hasHistory:n}}=e;return Object(l.jsx)(o.r,{className:"date-interval-viewer",children:Object(l.jsxs)(o.r,{className:"widget-viewer",children:[Object(l.jsxs)(o.r,{className:"title",children:[Object(l.jsxs)(o.p,{selectable:!0,children:[r.data.name,"-",i.data.name]}),n&&Object(l.jsx)(c.a,{ctxId:t,widget:e},e.id)]}),Object(l.jsx)(o.r,{className:"value",children:Object(l.jsx)(o.p,{selectable:!0,children:"".concat(r.data.text," ").concat(Object(s.t)("PC.DateTo")," ").concat(i.data.text)})})]})})}})||r;t.a=d},function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var r=a(1),i=a(3),n=a(8),o=a.n(n),s=a(90),c=a(157),l=a(782),d=a.n(l),u=a(0),p=e=>{var{hidden:t,children:a,duration:n=.3,onAnimationEnd:l}=e,p=Object(s.a)(Object(c.a)((()=>{null==l||l(t)}),1e3*n));return Object(i.useEffect)((()=>{p()}),[t]),Object(u.jsx)(r.r,{className:o()(d.a["fade-wrapper"],{[d.a.hidden]:t}),style:{transitionDuration:n?"".concat(n,"s"):void 0},children:a})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return R}));var r,i=a(6),n=a(3),o=a(1),s=a(15),c=a(8),l=a.n(c),d=a(14),u=a(209),p=a(218),m=a(42),h=a(298),b=a.n(h),g=a(912),v=a.n(g),j=a(669),O=a.n(j),f=a(913),M=a.n(f),_=a(914),y=a.n(_),D=a(466),N=a.n(D),A=a(360),T=a.n(A),I=a(243),C=a.n(I),x=a(670),S=a.n(x),w=a(2),L=a(33),E=a(268),k=(a(1269),a(127)),z=a(0),R=Object(s.a)(r=class extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"onSearchInputChange",Object(L.c)((e=>{var{ctxId:t}=this.props;if(!t)return null;var{departmentSelectStore:a}=Object(d.d)(t),{value:r}=e.detail;a.setKeyword(r),r?a.loadingSearched():a.init()}),100)),Object(i.a)(this,"onSearchClear",(()=>{var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e);t.setKeyword(""),t.init()})),Object(i.a)(this,"clearSelected",(()=>{var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e);t.clearSelectedDepData()})),Object(i.a)(this,"onDeleteSelected",(e=>{var{ctxId:t}=this.props;if(!t)return null;var{departmentSelectStore:a}=Object(d.d)(t);a.deleteSelectedDepData(e)})),Object(i.a)(this,"onBreadcrumbClick",((e,t)=>{if(-1!==t){var{ctxId:a}=this.props;if(!a)return null;var{departmentSelectStore:r}=Object(d.d)(a);r.jumpToBreadcrumb(t),e.id===k.b.ORGANIZATION_ROOT?r.requestDepartmentChildrenById():r.requestDepartmentChildrenById(e.id)}})),Object(i.a)(this,"onCheckBoxItemChange",(e=>{var t,{ctxId:a,widget:r,multi:i}=this.props,n=(null==r||null===(t=r.data)||void 0===t?void 0:t.isMuti)||i;if(!a)return null;var{departmentSelectStore:o}=Object(d.d)(a),{selectedDepData:s}=o,c=s.some((t=>t.id===e.id));c?o.deleteSelectedDepData(e):o.appendSelectedDepData(e,n)})),Object(i.a)(this,"onChildExpend",(e=>{var{ctxId:t}=this.props;if(!t)return null;if(!e.hasChild)return null;var{departmentSelectStore:a}=Object(d.d)(t);a.pushBreadcrumb(e),a.requestDepartmentChildrenById(e.id)}))}render(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{breadcrumb:a=[]}=t;return Object(z.jsxs)(o.r,{className:"department-selector",children:[Object(z.jsxs)(o.r,{className:"department-selector-left",children:[Object(z.jsx)(o.r,{className:"department-selector-search-wrapper",children:this.renderSearch()}),a.length>0?Object(z.jsx)(o.r,{className:"department-selector-breadcrumb-wrapper",children:this.renderBreadcrumb()}):Object(z.jsx)(o.r,{}),Object(z.jsx)(o.r,{className:"department-selector-tree-list",children:this.renderTreeList()})]}),Object(z.jsxs)(o.r,{className:"department-selector-right",children:[Object(z.jsx)(o.r,{className:"department-selector-right-title-wrapper",children:this.renderRightTitle()}),Object(z.jsx)(o.r,{className:"department-selector-selected-list",children:this.renderSelectedList()})]})]})}renderRightTitle(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{selectedDepData:a=[]}=t;return Object(z.jsxs)(o.r,{className:"department-selector-right-title",children:[Object(z.jsx)(o.r,{className:"department-selector-selected-num",children:Object(w.t)("Department_Selected_Count",{count:a.length})}),a.length>0&&Object(z.jsx)(o.r,{className:"department-selector-selected-clear",onClick:this.clearSelected,children:Object(w.t)("Department_Clear")})]})}renderBreadcrumb(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{breadcrumb:a=[]}=t,r=[...a];return a.length>3&&(r=[a[0],t.BREADCRUMB_ELLIOSIS_NODE,...a.slice(-2)]),Object(z.jsx)(o.r,{className:"department-selector-breadcrumb",children:r.map((e=>{var{name:t}=e,r={marginTop:-1===e.id?"-7px":""},i="department-selector-breadcrumb-item-text",n=l()(i,{["".concat(i,"-nohover")]:-1===e.id}),s=a.findIndex((t=>t.id===e.id));return Object(z.jsxs)(o.r,{className:"department-selector-breadcrumb-item",children:[0!==s?Object(z.jsx)(o.g,{className:"department-selector-breadcrumb-right-arrow",src:O.a}):Object(z.jsx)(o.r,{}),Object(z.jsx)(o.r,{style:r,className:n,onClick:()=>this.onBreadcrumbClick(e,s),children:t})]},e.id)}))})}renderSelectedList(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{selectedDepData:a=[]}=t;return Object(z.jsx)(o.r,{className:"department-selector-selected",children:a.map(((e,t)=>{var{name:a,path:r=[]}=e,i=r.slice().reverse().join("/");return Object(z.jsxs)(o.r,{className:"department-selector-line",children:[Object(z.jsx)(o.g,{src:b.a,className:"department-selector-icon dep"}),Object(z.jsxs)(o.r,{className:"department-selector-name selected",children:[Object(z.jsx)(o.r,{className:"departname",children:Object(z.jsx)(o.p,{children:a})}),Object(z.jsx)("view",{className:"departpath",children:Object(z.jsx)(o.r,{className:"depathstr",children:Object(z.jsx)(o.p,{children:i})})})]}),Object(z.jsxs)(o.r,{className:"department-selector-icon-wrapper",onClick:()=>this.onDeleteSelected(e),children:[Object(z.jsx)(o.g,{src:N.a,className:"department-selector-icon close"}),Object(z.jsx)(o.g,{src:S.a,className:"department-selector-icon hover close"})]})]},t)}))})}renderTreeList(){var e,{ctxId:t,widget:a,multi:r,tooltipId:i}=this.props,n=(null==a||null===(e=a.data)||void 0===e?void 0:e.isMuti)||r;if(!t)return null;var{departmentSelectStore:s}=Object(d.d)(t),{depTreeData:c=[],selectedDepData:l=[],departmentLoading:u=!1,keyword:h,visibleEmpty:g}=s;return Object(z.jsxs)(o.r,{className:"tree-list",children:[c.length>0&&c.map((e=>{var{name:t,id:a,hasChild:r,path:s=[]}=e,c=l.some((e=>e.id===a)),d=s.slice().reverse().join("/");return Object(z.jsxs)(o.r,{className:"department-selector-line",children:[Object(z.jsx)(o.r,{className:"department-selector-checkbox",children:Object(z.jsx)(p.a,{checked:c,value:a,size:"small",type:n?"square":"circle",onChange:()=>this.onCheckBoxItemChange(e)},a)}),Object(z.jsx)(o.g,{onClick:()=>this.onCheckBoxItemChange(e),src:b.a,className:"department-selector-icon dep"}),Object(z.jsxs)(o.r,{onClick:()=>this.onCheckBoxItemChange(e),className:"department-selector-name tree",children:[Object(z.jsx)(o.r,{className:"departname",children:Object(z.jsx)(m.a,{content:t,keyword:h,isSingleLine:!0})}),Object(z.jsx)("view",{className:"departpath",children:Object(z.jsx)(E.a,{tooltipId:i,text:d,contentStyle:{color:"#d5d6d7;"}})})," "]}),!h&&Object(z.jsxs)(o.r,{onClick:()=>this.onChildExpend(e),className:"department-selector-icon-wrapper",children:[!r&&Object(z.jsx)(o.g,{src:y.a,className:"department-selector-icon children disabled"}),r&&Object(z.jsx)(o.g,{src:v.a,className:"department-selector-icon children"}),r&&Object(z.jsx)(o.g,{src:M.a,className:"department-selector-icon hover children"}),r&&Object(z.jsxs)(o.r,{className:"department-selector-icon-tooltip",children:[Object(w.t)("Department_Subordinate"),Object(z.jsx)(o.r,{className:"department-selector-icon-tooltip-triangle"})]})]})]},a)})),0===c.length&&!u&&(!g&&h?Object(z.jsxs)(o.r,{className:"tree-list-empty",children:[Object(z.jsx)(o.g,{className:"tree-list-empty-img",src:T.a}),Object(z.jsx)(o.r,{className:"tree-list-empty-text",children:Object(w.t)("Department_NoResult")})]}):Object(z.jsxs)(o.r,{className:"tree-list-empty",children:[Object(z.jsx)(o.g,{className:"tree-list-empty-img",src:C.a}),Object(z.jsx)(o.r,{className:"tree-list-empty-text",children:Object(w.t)("Department_Empty")})]}))]})}renderSearch(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{keyword:a}=t;return Object(z.jsx)(u.a,{value:a,style:{borderRadius:"4px",color:"#1F2329"},placeholder:Object(w.t)("Department_new_placeholder"),placeholderStyle:{color:"#646A73"},wrapStyle:{width:"100%",borderColor:"#dee0e3"},onInput:this.onSearchInputChange,onClear:this.onSearchClear})}})||r},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi40MTUxIDEwTDcuMzMyNzQgNC45MTc2N0M3LjIxMDcgNC43OTU2MyA3LjIxMDcgNC41OTc3NiA3LjMzMjc0IDQuNDc1NzJMNy43NzQ2OCA0LjAzMzc4QzcuODk2NzIgMy45MTE3NCA4LjA5NDU4IDMuOTExNzQgOC4yMTY2MiA0LjAzMzc4TDEzLjc0MDkgOS41NTgwNUMxMy45ODUgOS44MDIxMyAxMy45ODUgMTAuMTk3OSAxMy43NDA5IDEwLjQ0MTlMOC4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TMzMzMzIDQ2OS4zMzMzMzMgNDY5LjMzMzMzMy0yMTAuMTMzMzMzIDQ2OS4zMzMzMzMtNDY5LjMzMzMzMyA0NjkuMzMzMzMzeiIgcC1pZD0iMjY1OCIgZmlsbD0iIzMzNzBGRiI+PC9wYXRoPjxwYXRoIGQ9Ik01MTIgNDUxLjY2OTMzM2wxMjAuNjgyNjY3LTEyMC42ODI2NjYgNjAuMzMwNjY2IDYwLjMzMDY2Nkw1NzIuMzMwNjY3IDUxMmwxMjAuNjgyNjY2IDEyMC42ODI2NjctNjAuMzMwNjY2IDYwLjMzMDY2Nkw1MTIgNTcyLjMzMDY2N2wtMTIwLjY4MjY2NyAxMjAuNjgyNjY2LTYwLjMzMDY2Ni02MC4zMzA2NjZMNDUxLjY2OTMzMyA1MTJsLTEyMC42ODI2NjYtMTIwLjY4MjY2NyA2MC4zMzA2NjYtNjAuMzMwNjY2TDUxMiA0NTEuNjY5MzMzeiIgcC1pZD0iMjY1OSIgZmlsbD0iIzMzNzBGRiI+PC9wYXRoPjwvc3ZnPg=="},function(e,t,a){"use strict";a.d(t,"a",(function(){return E}));var r,i=a(6),n=a(3),o=a(1),s=a(15),c=a(8),l=a.n(c),d=a(14),u=a(209),p=a(218),m=a(42),h=a(298),b=a.n(h),g=a(669),v=a.n(g),j=a(466),O=a.n(j),f=a(360),M=a.n(f),_=a(243),y=a.n(_),D=a(670),N=a.n(D),A=a(2),T=a(33),I=a(268),C=a(127),x=(a(1270),a(329)),S=a(98),w=a(529),L=a(0),E=Object(s.a)(r=class extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"onSearchInputChange",Object(T.c)((e=>{var{ctxId:t}=this.props;if(!t)return null;var{departmentSelectStore:a}=Object(d.d)(t),{value:r}=e.detail;a.setKeyword(r),r?a.loadingSearched():a.init()}),100)),Object(i.a)(this,"onSearchClear",(()=>{var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e);t.setKeyword(""),t.init()})),Object(i.a)(this,"clearSelected",(()=>{var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e);t.clearSelectedDepData()})),Object(i.a)(this,"onDeleteSelected",(e=>{var{ctxId:t}=this.props;if(!t)return null;var{departmentSelectStore:a}=Object(d.d)(t);a.deleteSelectedDepData(e)})),Object(i.a)(this,"onBreadcrumbClick",((e,t)=>{if(-1!==t){var{ctxId:a}=this.props;if(!a)return null;var{departmentSelectStore:r}=Object(d.d)(a);if(e.id===C.b.ROOT)return r.setBreadcrumb([]),void r.setRenderType(C.a.ROOT);e.id!==C.b.COLLABORATION_ROOT?e.id!==C.b.ORGANIZATION_ROOT?(r.jumpToBreadcrumb(t),r.requestDepartmentChildrenById(e.id)):this.handleOrganizationClick():this.handleCollaborationClick()}})),Object(i.a)(this,"onCheckBoxItemChange",(e=>{var t,{ctxId:a,widget:r,multi:i}=this.props,n=(null==r||null===(t=r.data)||void 0===t?void 0:t.isMuti)||i;if(!a)return null;var{departmentSelectStore:o}=Object(d.d)(a),{selectedDepData:s}=o,c=s.some((t=>t.id===e.id));c?o.deleteSelectedDepData(e):o.appendSelectedDepData(e,n)})),Object(i.a)(this,"onCollaborationTenantClick",(e=>{var{ctxId:t}=this.props;if(!t)return null;var{departmentSelectStore:a}=Object(d.d)(t);a.setRenderType(C.a.DEPARTMENT),a.pushBreadcrumb(e),a.setCurrentCollaborationTenant(e),a.setDepTreeData([]),a.requestDepartmentChildrenById()})),Object(i.a)(this,"onChildExpend",(e=>{var{ctxId:t}=this.props;if(!t)return null;if(!e.hasChild)return null;var{departmentSelectStore:a}=Object(d.d)(t);a.pushBreadcrumb(e),a.requestDepartmentChildrenById(e.id)}))}render(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{breadcrumb:a=[]}=t;return Object(L.jsxs)(o.r,{className:"department-selector",children:[Object(L.jsxs)(o.r,{className:"department-selector-left",children:[Object(L.jsx)(o.r,{className:"department-selector-search-wrapper",children:this.renderSearch()}),a.length>0?Object(L.jsx)(o.r,{className:"department-selector-breadcrumb-wrapper",children:this.renderBreadcrumb()}):Object(L.jsx)(o.r,{}),Object(L.jsx)(o.r,{className:"department-selector-tree-list",children:this.renderTreeList()})]}),Object(L.jsxs)(o.r,{className:"department-selector-right",children:[Object(L.jsx)(o.r,{className:"department-selector-right-title-wrapper",children:this.renderRightTitle()}),Object(L.jsx)(o.r,{className:"department-selector-selected-list",children:this.renderSelectedList()})]})]})}renderRightTitle(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{selectedDepData:a=[]}=t;return Object(L.jsxs)(o.r,{className:"department-selector-right-title",children:[Object(L.jsx)(o.r,{className:"department-selector-selected-num",children:Object(A.t)("Department_Selected_Count",{count:a.length})}),a.length>0&&Object(L.jsx)(o.r,{className:"department-selector-selected-clear",onClick:this.clearSelected,children:Object(A.t)("Department_Clear")})]})}renderBreadcrumb(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{breadcrumb:a=[]}=t,r=[...a];return a.length>3&&(r=[a[0],t.BREADCRUMB_ELLIOSIS_NODE,...a.slice(-2)]),Object(L.jsx)(o.r,{className:"department-selector-breadcrumb",children:r.map((e=>{var{name:t}=e,r={marginTop:-1===e.id?"-7px":""},i="department-selector-breadcrumb-item-text",n=l()(i,{["".concat(i,"-nohover")]:-1===e.id}),s=a.findIndex((t=>t.id===e.id));return Object(L.jsxs)(o.r,{className:"department-selector-breadcrumb-item",children:[0!==s?Object(L.jsx)(o.g,{className:"department-selector-breadcrumb-right-arrow",src:v.a}):Object(L.jsx)(o.r,{}),Object(L.jsx)(o.r,{style:r,className:n,onClick:()=>this.onBreadcrumbClick(e,s),children:t})]},e.id)}))})}renderSelectedList(){var{ctxId:e,tooltipId:t,globalStore:a}=this.props;if(!e)return null;var{departmentSelectStore:r}=Object(d.d)(e),{selectedDepData:i=[]}=r;return Object(L.jsx)(o.r,{className:"department-selector-selected",children:i.map(((e,r)=>{var{name:n,path:s=[]}=e,c=s.slice().reverse().join("/");console.log("renderSelectedList selectedDepData :>> ",i);var l=Object(S.c)(e,a);return Object(L.jsxs)(o.r,{className:"department-selector-line",children:[Object(L.jsx)(o.g,{src:b.a,className:"department-selector-icon dep"}),Object(L.jsxs)(o.r,{className:"department-selector-name selected",children:[Object(L.jsxs)(o.r,{className:"department-wrapper",children:[Object(L.jsx)(o.r,{className:"departname",children:Object(L.jsx)(o.p,{children:n})}),l?Object(L.jsx)(o.r,{className:"tenant-tag",children:Object(L.jsx)(I.a,{tooltipId:t,text:l})}):null]}),Object(L.jsx)(o.r,{className:"departpath",children:Object(L.jsx)(o.r,{className:"depathstr",children:Object(L.jsx)(I.a,{tooltipId:t,text:c})})})]}),Object(L.jsxs)(o.r,{className:"department-selector-icon-wrapper",onClick:()=>this.onDeleteSelected(e),children:[Object(L.jsx)(o.g,{src:O.a,className:"department-selector-icon close"}),Object(L.jsx)(o.g,{src:N.a,className:"department-selector-icon hover close"})]})]},r)}))})}handleSpecItemClick(e){switch(e){case C.b.COLLABORATION_ROOT:this.handleCollaborationClick();break;case C.b.ORGANIZATION_ROOT:this.handleOrganizationClick()}}handleCollaborationClick(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e);t.setBreadcrumb([x.a.CONTACT,x.a.COLLABORATION]),t.setRenderType(C.a.COLLABORATION_TENANT),t.getCollaborationTenant()}handleOrganizationClick(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e);t.setBreadcrumb([x.a.CONTACT,x.a.ORGANIZATION]),t.setCurrentCollaborationTenant({}),t.setRenderType(C.a.DEPARTMENT),t.requestDepartmentChildrenById()}renderTreeList(){var e,{ctxId:t,widget:a,multi:r,tooltipId:i,globalStore:n}=this.props,s=(null==a||null===(e=a.data)||void 0===e?void 0:e.isMuti)||r||!1;if(!t)return null;var{departmentSelectStore:c}=Object(d.d)(t),{depTreeData:u=[],collaborationTenantList:h=[],selectedDepData:g=[],departmentLoading:v=!1,keyword:j,visibleEmpty:O,renderType:f,rootList:_}=c;return v?Object(L.jsx)(o.r,{className:"tree-list",children:Object(L.jsx)(o.r,{className:"tree-list-loading",children:Object(L.jsx)(w.a,{})})}):Object(L.jsxs)(o.r,{className:"tree-list",children:[f===C.a.ROOT&&Object(L.jsx)(o.r,{children:_.map((e=>Object(L.jsxs)(o.r,{className:"root-item",onClick:()=>this.handleSpecItemClick(e.id),children:[Object(L.jsxs)(o.r,{className:"root-label-item",children:[Object(L.jsx)(o.g,{className:"root-label-image",src:e.icon}),Object(L.jsx)(o.r,{className:"root-content",children:e.text})]}),Object(L.jsx)(o.r,{className:"iconfont icon-arrow-right root-action-icon"})]},e.id)))}),f===C.a.COLLABORATION_TENANT&&Object(L.jsx)(o.r,{children:h.map((e=>Object(L.jsxs)(o.r,{className:"department-selector-line space-between",onClick:()=>this.onCollaborationTenantClick(e),children:[Object(L.jsx)(o.r,{className:"department-selector-name tenant",children:Object(L.jsx)(o.r,{className:"departname",children:Object(L.jsx)(m.a,{content:e.name,keyword:j,isSingleLine:!0})})}),Object(L.jsx)(o.r,{className:"iconfont icon-arrow-right root-action-icon"})]},e.tenant_id)))}),f===C.a.DEPARTMENT&&Object(L.jsxs)(o.r,{children:[u.length>0&&u.map((e=>{var{name:t,id:a,hasChild:r,path:c=[]}=e,d=g.some((e=>e.id===a)),u=c.slice().reverse().join("/"),h=Object(S.c)(e,n);return Object(L.jsxs)(o.r,{className:"department-selector-line",children:[Object(L.jsx)(o.r,{className:"department-selector-checkbox",children:Object(L.jsx)(p.a,{checked:d,value:a,size:"small",type:s?"square":"circle",onChange:()=>this.onCheckBoxItemChange(e)},a)}),Object(L.jsx)(o.g,{onClick:()=>this.onCheckBoxItemChange(e),src:b.a,className:"department-selector-icon dep"}),Object(L.jsxs)(o.r,{onClick:()=>this.onCheckBoxItemChange(e),className:"department-selector-name tree",children:[Object(L.jsxs)(o.r,{className:"department-wrapper",children:[Object(L.jsx)(o.r,{className:"departname",children:Object(L.jsx)(m.a,{content:t,keyword:j,isSingleLine:!0})}),h?Object(L.jsx)(o.r,{className:"tenant-tag",children:Object(L.jsx)(I.a,{tooltipId:i,text:h})}):null]}),Object(L.jsx)(o.r,{className:"departpath",children:Object(L.jsx)(I.a,{tooltipId:i,text:u,contentStyle:{color:"#d5d6d7;"}})})," "]}),!j&&Object(L.jsx)(o.r,{onClick:()=>this.onChildExpend(e),className:"department-selector-sub-wrapper",children:Object(L.jsx)(o.r,{className:l()("department-selector-sub",{disabled:!r}),children:Object(A.t)("Department_Subordinate")})})]},a)})),0===u.length&&(!O&&j?Object(L.jsxs)(o.r,{className:"tree-list-empty",children:[Object(L.jsx)(o.g,{className:"tree-list-empty-img",src:M.a}),Object(L.jsx)(o.r,{className:"tree-list-empty-text",children:Object(A.t)("Department_NoResult")})]}):Object(L.jsxs)(o.r,{className:"tree-list-empty",children:[Object(L.jsx)(o.g,{className:"tree-list-empty-img",src:y.a}),Object(L.jsx)(o.r,{className:"tree-list-empty-text",children:Object(A.t)("Department_Empty")})]}))]})]})}renderSearch(){var{ctxId:e}=this.props;if(!e)return null;var{departmentSelectStore:t}=Object(d.d)(e),{keyword:a}=t;return Object(L.jsx)(u.a,{value:a,style:{borderRadius:"4px",color:"#1F2329"},placeholder:Object(A.t)("Department_new_placeholder"),placeholderStyle:{color:"#646A73"},wrapStyle:{width:"100%",borderColor:"#dee0e3"},onInput:this.onSearchInputChange,onClear:this.onSearchClear})}})||r},function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var r=a(5),i=a(1),n=a(3),o=a(133),s=a(69),c=a(147),l=a(0),d=e=>{var{onApproval:t,onAction:a,onClose:r}=e;return Object(n.useEffect)((()=>{var e=e=>{var{channel:i,data:n}=e,{messageId:o,namespace:s,type:l}=n;Promise.resolve().then((()=>{throw"detail"===s?"reportApproval"===l?(null==t||t(n.option),setTimeout((()=>{null==r||r()}),0)):"reportAction"===l&&(null==a||a(n.option)):"drawer"===s&&"closeSelf"===l&&(null==r||r()),{type:"NOT_FOUND"}})).then((e=>({originalId:o,data:e,type:"callback"}))).catch((e=>{throw{originalId:o,error:e}})).then((e=>{c.a.transferMessage(e,i)})).catch((e=>{c.a.transferMessage(e,i)}))};return c.a.onTransferMessage(e),()=>{c.a.offTransferMessage(e)}}),[]),Object(l.jsxs)(s.c,{visible:!0,onClose:r,children:[Object(l.jsx)(s.c.Header,{close:!0,back:!1,onBack:()=>{},onClose:r}),Object(l.jsx)(i.r,{style:{height:"100%"},children:Object(l.jsx)("native-iframe",{src:e.url,onLoad:e=>{},onIframeLoad:()=>{}})})]})},u=Object(o.d)((e=>t=>Object(l.jsx)(d,Object(r.a)(Object(r.a)({},t),{},{onClose:()=>{var a;e.close(),null===(a=t.onClose)||void 0===a||a.call(t)}}))))},function(e,t,a){"use strict";var r=a(3),i=a(1),n=a(15),o=a(92),s=a(544),c=a.n(s),l=a(41),d=a(82),u=a(42),p=a(14),m=a(210),h=a(0);t.a=Object(n.a)((e=>{var{widget:t,ctxId:a,children:n,inRelativeForm:s}=e,{data:{name:b,value:g,hasHistory:v}}=t,{configurableFormStore:j}=Object(p.d)(a),O=j?j.keyword:"",f=Object(r.useMemo)((()=>g?Object(o.j)(g):null),[g]);if(!t)return null;if(s){var M=Object(o.h)(g);return Object(h.jsx)(d.a,{title:b,ctxId:a,children:Object(h.jsx)(m.a,{text:M,children:Object(h.jsx)(u.a,{keyword:O,content:M,style:{cursor:"text"}})})})}return Object(h.jsxs)(i.r,{className:"widget-viewer single-select-viewer",children:[Object(h.jsxs)(i.r,{className:"title",children:[Object(h.jsx)(i.p,{selectable:!0,children:b}),v&&Object(h.jsx)(l.a,{ctxId:a,widget:t},t.id)]}),Object(h.jsx)(i.r,{className:c.a.value_content,children:f&&f.map((e=>Object(h.jsxs)(i.r,{className:c.a.item,children:[Object(h.jsx)(i.r,{className:c.a.title,children:e.title}),Object(h.jsx)(i.r,{className:c.a.text,children:e.text})]},e.title)))}),n]})}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var r,i=a(3),n=a(1),o=a(15),s=a(82),c=a(42),l=a(193),d=a(14),u=(a(1280),a(0)),p=Object(o.a)(r=class extends i.Component{renderValue(){var{widget:e,ctxId:t}=this.props;if(!e.data.value)return null;var{data:{value:a}}=e,{configurableFormStore:r}=Object(d.d)(t),i=r?r.keyword:"";return Object(u.jsx)(c.a,{content:a,keyword:i,style:{cursor:"text"},breakWord:!0})}render(){var{widget:e,ctxId:t,inRelativeForm:a}=this.props;if(!e)return null;var{data:{name:r}}=e;return a?Object(u.jsx)(s.a,{title:r,ctxId:t,children:Object(u.jsx)(l.a,{thresholdLineClamp:5,children:this.renderValue()})}):Object(u.jsxs)(n.r,{className:"widget-viewer desc-viewer",children:[Object(u.jsx)(n.r,{className:"title",children:Object(u.jsx)(n.p,{selectable:!0,children:r})}),Object(u.jsx)(n.r,{className:"value",children:this.renderValue()})]})}})||r},function(e,t,a){"use strict";a(3);var r=a(1),i=a(15),n=a(48),o=a(41),s=a(290),c=(a(1299),a(0));t.a=Object(i.a)((e=>{var{widget:t,ctxId:a}=e;if(!t)return null;var{data:{hasHistory:i}}=t,{children:l}=t.data,{data:{name:d}}=l[0];return Object(c.jsxs)(r.r,{className:"date-range-editor",children:[i&&Object(c.jsx)(r.r,{className:"fake-title-wrap",children:Object(c.jsx)(r.r,{className:"fake-title-wrap-inner",children:Object(c.jsxs)(n.a,{required:!1,children:[Object(c.jsx)(r.p,{className:"fill-name",children:d}),Object(c.jsx)(o.a,{ctxId:a,widget:t},t.id)]})})}),l.map((e=>Object(c.jsx)(s.a,{ctxId:a,widget:e},e.id)))]})}))},function(e,t,a){"use strict";var r,i,n,o,s=a(5),c=a(11),l=a(6),d=a(7),u=(a(56),a(3)),p=a.n(u),m=a(1),h=a(15),b=a(4),g=a(8),v=a.n(g),j=a(2),O=a(298),f=a.n(O),M=a(48),_=a(60),y=a(288),D=a(362),N=a(245),A=a(66),T=a(68),I=a(89),C=a(200),x=a(14),S=a(33),w=a(25),L=a(668),E=a(671),k=a(329),z=a(41),R=(a(1303),a(10)),P=a(98),U=a(0),B=Object(h.a)((i=class extends u.Component{constructor(){super(...arguments),Object(l.a)(this,"customCtx",void 0),Object(l.a)(this,"innerCtxId",void 0),Object(l.a)(this,"tooltipId",Object(S.e)()),Object(l.a)(this,"state",{visible:!1}),Object(l.a)(this,"init",Object(b.f)((()=>{var{ctxId:e,widget:t}=this.props;this.customCtx={departmentObserver:{departmentValueChanged:!1},departmentSelectStore:new k.b};var a=Object(x.c)(Object(x.d)(e),this.customCtx,this);t.data.innerCtxId=a,this.innerCtxId=a;var{configurableFormStore:r}=Object(x.d)(e);setTimeout((()=>{var{departmentSelectStore:e}=this.customCtx;e.setSelectedValueData(t.data.value),r.instanceInfo&&e.setInstanceId(r.instanceInfo.instanceId)}),500)}))),Object(l.a)(this,"handleAddDepartment",(()=>{var{widget:e}=this.props,{data:{disabled:t=!1}}=e;if(!t){var{departmentSelectStore:a}=this.customCtx;a.init("",!0),this.setState({visible:!0})}})),Object(c.a)(this,"delDep",n,this),Object(l.a)(this,"handleDepartmentModalCancel",(()=>{var{departmentSelectStore:e}=this.customCtx;e.clearAll(),this.setState({visible:!1})})),Object(c.a)(this,"handleDepartmentModalOk",o,this),Object(l.a)(this,"getDepartmentTagText",(e=>{var{name:t}=e,a=Object(P.c)(e,w.d);return a?"".concat(a,"/").concat(t):t}))}UNSAFE_componentWillMount(){this.init()}UNSAFE_componentWillReceiveProps(){var{widget:e,ctxId:t}=this.props,{configurableFormStore:a}=Object(x.d)(t),{departmentSelectStore:r}=this.customCtx;r.setSelectedValueData(e.data.value)}renderDepartmentList(){var{widget:e}=this.props,{isMuti:t,disabled:a}=e.data,{departmentSelectStore:r}=this.customCtx,{selectedValueData:i}=r;return Object(U.jsx)(y.a.Group,{deletable:!0,showProfile:!1,onDelete:(e,t)=>this.delDep(i[t].id),addable:t||0===i.length,onAdd:this.handleAddDepartment,error:Boolean(e.data.validationError),disable:a,displayMode:"department",itemList:i.map((e=>Object(s.a)(Object(s.a)({},e),{},{tenantId:e.tenant_id,tenantName:e.tenant_name,avatarUrl:f.a})))})}componentDidUpdate(){var{widget:e,ctxId:t}=this.props,{configurableFormStore:a}=Object(x.d)(t),{departmentSelectStore:r}=this.customCtx;r.setSelectedValueData(this.props.widget.data.value||[]),r.setParams({isSupportCrossTenant:a.isWidgetSupportCrossTenant(e.id.split("|")[0])})}renderDepartmentModal(){var{visible:e}=this.state,{widget:t,ctxId:a}=this.props,r=Object(j.t)("Department_Selector_title"),{configurableFormStore:i}=Object(x.d)(a),n=i.isWidgetSupportCrossTenant(t.id.split("|")[0]);return e?Object(U.jsxs)(m.a,{children:[Object(U.jsx)(D.a,{ctxId:a,title:r,visible:e,onCancel:this.handleDepartmentModalCancel,onOk:this.handleDepartmentModalOk,width:"700px",height:"564px",showHeader:!0,children:Object(U.jsx)(A.a,{hidden:!e,children:Object(U.jsx)(m.r,{className:"department-selector",children:!this.props.disableCrossTenant&&w.d.enableChooseCrossTenant&&n?Object(U.jsx)(E.a,{ctxId:this.innerCtxId,widget:t,tooltipId:this.tooltipId,globalStore:w.d}):Object(U.jsx)(L.a,{ctxId:this.innerCtxId,widget:t,tooltipId:this.tooltipId})})})}),Object(U.jsx)(N.a,{unid:this.tooltipId})]}):null}renderTableCell(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{placeholder:a,value:r,validationError:i="",writable:n,isMuti:o}}=e,{selectedValueData:s}=this.customCtx.departmentSelectStore,{length:c}=s,l=1===c?"100%":"".concat(190-8*String(c).length,"px"),d=1===c?"100%":"35px";return o?Object(U.jsx)(T.a,{noBorder:!0,placeholder:a,disabled:!n,error:i||"",suffix:n&&Object(U.jsx)(I.a,{name:"fold",size:20,color:"#646A73"}),customStyle:{position:"absolute",top:0},onClick:()=>{this.handleAddDepartment()},children:s.length?Object(U.jsx)(C.a.Group,{className:"cell-department-list",maxTagCount:"responsive",customStyle:{marginBottom:r.length?"-4px":""},children:null==s?void 0:s.map((e=>Object(U.jsx)(C.a,{backgroundColor:"rgba(31, 35, 41, 0.1)",text:this.getDepartmentTagText(e),customStyle:{width:"fit-content",maxWidth:l,minWidth:d},closable:n,closeHoverColor:"blue",onClose:()=>{this.delDep(e.id)}},e.id)))}):null}):Object(U.jsx)(T.a,{noBorder:!0,disabled:!n,placeholder:a,value:null==s?void 0:s.map((e=>e.name)).join("/"),error:i||"",customStyle:{position:"absolute",top:0},suffix:n&&Object(U.jsx)(I.a,{name:"fold",size:20,color:"#646A73"}),onClick:()=>{this.handleAddDepartment()}})}render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(R.a.info(JSON.stringify(e.data.value)),!t)return null;if(a)return Object(U.jsxs)(p.a.Fragment,{children:[Object(U.jsxs)(m.a,{children:[this.renderTableCell(),Object(U.jsx)(T.a,{customStyle:{visibility:"hidden",pointerEvents:"none"},noBorder:!0,disabled:!e.data.writable,placeholder:e.data.placeholder,value:"",error:e.data.validationError||"",suffix:Object(U.jsx)(I.a,{name:"time_outlined",size:16,color:"#646A73"})})]}),this.renderDepartmentModal()]});var{data:{name:r,placeholder:i,required:n,validationError:o,hasHistory:s,disabled:c=!1}}=e,l=v()("widget-editor department-editor",{"department-editor-disabled":c});return Object(U.jsxs)(m.r,{className:l,children:[Object(U.jsxs)(M.a,{required:n,children:[Object(U.jsx)(m.p,{className:"department-editor-text",children:r}),Object(U.jsx)(m.p,{className:"department-editor-placeholder",children:i}),s&&Object(U.jsx)(z.a,{ctxId:t,widget:e},e.id)]}),this.renderDepartmentList(),this.renderDepartmentModal(),Object(U.jsx)(_.a,{text:o})]})}},n=Object(d.a)(i.prototype,"delDep",[b.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,ctxId:a}=this.props,{configurableFormStore:r}=Object(x.d)(a),{departmentSelectStore:i,departmentObserver:n}=this.customCtx;n.departmentValueChanged=!0,i.deleteSelectedValueData(e),t.data.value=i.selectedValueData,r.handleWidgetChange(t.id)}}}),o=Object(d.a)(i.prototype,"handleDepartmentModalOk",[b.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var{widget:e,ctxId:t}=this.props,{configurableFormStore:a}=Object(x.d)(t),{departmentSelectStore:r,departmentObserver:i}=this.customCtx;r.setSelectedValueData(),r.clearKeyword(),r.clearParams(),e.data.value=r.selectedValueData,a.handleWidgetChange(e.id),i.departmentValueChanged=!0,this.setState({visible:!1})}}}),r=i))||r;t.a=B},function(e,t,a){"use strict";var r=a(13),i=a(2),n=a(1),o=(a(3),a(1314),a(0)),s={[r.c.ATTACHMENT_V2]:"DetailTable.NoFile",[r.c.IMAGE]:"DetailTable.NoImage",[r.c.RELATIVE_APPROVAL]:"DetailTable.NoRelativeApproval"};t.a=e=>{var{type:t,widgetType:a}=e;return Object(o.jsx)(n.r,{className:"empty-table-cell",children:"editor"===t&&a?Object(i.t)(s[a]||"DetailTable.NoContent"):Object(i.t)("DetailTable.Empty")})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var r,i=a(3),n=a(1),o=a(15),s=a(265),c=a(193),l=a(14),d=(a(1315),a(82)),u=a(0),p=Object(o.a)(r=class extends i.Component{renderValue(){var{widget:e,ctxId:t}=this.props;if(!e.data.value)return null;var{data:{value:a}}=e,{configurableFormStore:r}=Object(l.d)(t),i=r?r.keyword:"";return Object(u.jsx)(s.a,{text:a,keyword:i})}render(){var{widget:e,inTable:t,inRelativeForm:a}=this.props;if(!e||!e.data.displayCondStatus)return null;var{data:{name:r}}=e;return t?this.renderTableCell():a?this.renderRelativeFormItem():Object(u.jsxs)(n.r,{className:"widget-viewer desc-viewer",children:[Object(u.jsx)(n.r,{className:"title",children:Object(u.jsx)(n.p,{selectable:!0,children:r})}),Object(u.jsx)(n.r,{className:"value",children:this.renderValue()})]})}renderTableCell(){var{widget:e}=this.props;return e.data.value?Object(u.jsx)(n.r,{className:"table-cell-viewer",children:Object(u.jsx)(c.a,{thresholdLineClamp:5,children:this.renderValue()})}):null}renderRelativeFormItem(){var{widget:e,ctxId:t}=this.props;return e.data.value?Object(u.jsx)(d.a,{title:e.data.name,ctxId:t,children:Object(u.jsx)(c.a,{thresholdLineClamp:5,children:this.renderValue()})}):null}})||r},function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(5),i=a(6);class n{constructor(e){Object(i.a)(this,"entry",void 0),Object(i.a)(this,"marks",{}),Object(i.a)(this,"mark",(e=>{this.marks[e]=Date.now()})),Object(i.a)(this,"measureAndMark",((e,t)=>{this.marks[e]=Date.now()-this.marks[t]})),Object(i.a)(this,"clearMarks",(()=>{this.marks={}})),Object(i.a)(this,"getReportData",(()=>({entry:this.entry,marks:Object(r.a)({},this.marks)}))),this.entry=e}}},function(e,t,a){"use strict";a.d(t,"b",(function(){return h})),a.d(t,"a",(function(){return v}));var r=a(9),i=a(16),n=a(221),o=a(44),s=a(681),c=a(20),l=a(322),d=Object(c.c)("pc:src/stores/configurable-form-store/utils/detail-request.ts"),u=null,p="doing",m="fail";function h(e,t){var{path:a}=e,r=function(e){if("pc-pages/index/index"===e)return 1;var t=s.a[e];return t&&t.topic||null}(a);r&&!t&&(setTimeout((()=>{b()}),1e4),u=i.c.instancedetail({Topic:r,FetchLatest:!0,parentId:"",shareCode:""},{usePrefetchCache:!0,fetchCacheKey:i.a.BeforeDetail}).then((e=>(Object(n.b)("success"),p="success",e))).catch((e=>{throw Object(n.b)("fail",Object(o.a)(e)),p="fail",e})))}var b=()=>{u=null};function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Object(l.c)();return Promise.resolve().then((()=>{if(a)return Object(l.a)({instanceId:e.instanceId,shareCode:e.shareCode,key:a})})).then((a=>a?{type:i.d.request,data:a,path:t.path}:i.c.instancedetail(e,t))).then((e=>e)).catch((e=>{throw e}))}function v(e){return j.apply(this,arguments)}function j(){return j=Object(r.a)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(!u)return yield g(e,t);if("success"===p){var a=yield u;if(a.data.detail.instanceId===e.instanceId)return m="before",a}if("doing"===p){var r=g(e,t);try{var i=yield u;return i.detail.instanceId===e.instanceId?(m="wait",i):yield r}catch(e){return r}}}finally{b()}})),j.apply(this,arguments)}Object(c.b)(b),Object(c.b)((()=>{setTimeout((()=>{d("detailPreHitStatus",{status:m})}),5e3)}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r,i,n="pc-pages/index/index",o="index";(function(e){e.SUBMITTED="submitted",e.PENDING="pending",e.APPROVED="reviewed",e.CC="cc"})(r||(r={})),function(e){e.Todo="todo",e.Done="done",e.Initiated="create",e.CarbonCopy="cc",e.Read="read",e.CeoTodo="ceoTodo",e.CeoDone="ceoDone"}(i||(i={}));var s={"pc/pages/approved/index":{to:n,tabPage:o,topic:2,getCurrentNav:e=>e&&e===r.APPROVED?i.Done:i.Todo},"pc/pages/cc-2-me/index":{to:n,tabPage:o,topic:17,getCurrentNav:()=>i.CarbonCopy},"pc/pages/requested/index":{to:n,tabPage:o,topic:3,getCurrentNav:()=>i.CarbonCopy},"pc/pages/in-process/index":{to:n,topic:1,tabPage:o,getCurrentNav:()=>i.Todo}}},function(e,t,a){"use strict";a.d(t,"b",(function(){return m})),a.d(t,"a",(function(){return h}));var r=a(9),i=a(24),n=a(214),o=a(270),s=a(390),c=a(231),l=a(28),d=a(592),u=a(373),p=a(54),m=e=>{switch(e){case c.a.PRINT_ASSISTANT:return o.a;case c.a.TYPOGRAPHY_PRINT:return l.q?o.d:o.c;default:return o.a}},h=function(){var e=Object(r.a)((function*(e,t){var{globalStore:a}=i.b;if(e&&!a.customPrintIsvAuthorized&&((yield Object(u.a)(p.FG_CUSTOMIZE_PRINT))||(yield Object(u.a)(p.FG_USE_TYPOGRAPHY_PRINT)))){var r=yield b(t);if(a.setCustomPrintIsvInstalled(null!=r&&r),r)try{var{data:{AuthorizedStatus:o}}=yield n.b.getIsvAuthorizedStatus({ClientID:m(t),type:1});a.setCustomPrintIsvAuthorized(o===s.b.Authorized)}catch(e){console.error("fetch getIsvAuthorizedStatus error")}}}));return function(t,a){return e.apply(this,arguments)}}(),b=function(){var e=Object(r.a)((function*(e){try{return(yield n.b.getIsvInstallStatus({ClientID:m(e)})).data.status===d.b.Installed}catch(e){console.error("fetch getIsvAuthorizedStatus error")}}));return function(t){return e.apply(this,arguments)}}()},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var r=a(18);function i(e){var t;return null!==(t=r.h[e])&&void 0!==t?t:r.h.boe}},function(e,t,a){"use strict";a.d(t,"a",(function(){return Fe}));var r,i,n,o,s,c,l,d,u,p,m,h,b,g,v,j,O,f,M,_,y,D,N,A,T,I,C,x,S,w,L,E,k,z,R,P,U,B,F,Y,Q,G,W,V,H,Z,q,K,J,X,$,ee,te,ae,re,ie,ne,oe,se,ce,le,de,ue,pe,me,he=a(5),be=a(9),ge=a(11),ve=a(6),je=a(7),Oe=(a(56),a(19)),fe=a.n(Oe),Me=a(4),_e=a(14),ye=a(30),De=a(10),Ne=a(18),Ae=a(47),Te=a(91),Ie=a(16),Ce=a(20),xe=a(12),Se=a(2),we=a(33),Le=a(17),Ee=a(24),ke=a(44),ze=a(685),Re=a(139),Pe=Object(Ce.c)("pc:src/stores/detail-modal-store.ts"),Ue={[ye.b.AGREE]:"operateAgreeFail",[ye.b.REJECT]:"operateRejectFail"};!function(e){e[e.ALREADY_APPROVED=10135]="ALREADY_APPROVED",e[e.ALREADY_IN_PROCESS=10136]="ALREADY_IN_PROCESS"}(me||(me={}));var Be={[me.ALREADY_APPROVED]:Object(Se.t)("Cancel_AlreadyAgreed"),[me.ALREADY_IN_PROCESS]:Object(Se.t)("Cancel_isCanceling")},Fe=(r=class{constructor(){Object(ge.a)(this,"actionsCanShowNum",i,this),Object(ge.a)(this,"showCommonMask",n,this),Object(ge.a)(this,"standardModalVisible",o,this),Object(ge.a)(this,"standardModalData",s,this),Object(ge.a)(this,"reminderModalVisible",c,this),Object(ge.a)(this,"reminderModalData",l,this),Object(ge.a)(this,"redirectModalVisible",d,this),Object(ge.a)(this,"redirectModalData",u,this),Object(ge.a)(this,"rollbackModalVisible",p,this),Object(ge.a)(this,"rollbackModalData",m,this),Object(ge.a)(this,"ccModalVisible",h,this),Object(ge.a)(this,"ccModalData",b,this),Object(ge.a)(this,"commentModalData",g,this),Object(ge.a)(this,"addApproverModalVisible",v,this),Object(ge.a)(this,"addApproverModalData",j,this),Object(ge.a)(this,"deleteApproverModalVisible",O,this),Object(ge.a)(this,"deleteApproverModalData",f,this),Object(ge.a)(this,"leaveDetailModalVisible",M,this),Object(ge.a)(this,"leaveDetailModalData",_,this),Object(ge.a)(this,"workWorkersModalVisible",y,this),Object(ge.a)(this,"workWorkersModalData",D,this),Object(ge.a)(this,"agreeModalVisible",N,this),Object(ge.a)(this,"agreeModalData",A,this),Object(ge.a)(this,"editorModalVisible",T,this),Object(ge.a)(this,"shareModalVisible",I,this),Object(ge.a)(this,"shareModalData",C,this),Object(ge.a)(this,"deleteCommentModalVisible",x,this),Object(ge.a)(this,"deleteCommentModalData",S,this),Object(ge.a)(this,"isSaveEditLoading",w,this),Object(ve.a)(this,"onStandardModalResolve",void 0),Object(ve.a)(this,"onReminderModalResolve",void 0),Object(ve.a)(this,"onRedirectModalResolve",void 0),Object(ve.a)(this,"onRollbackModalResolve",void 0),Object(ve.a)(this,"onCCModalResolve",void 0),Object(ve.a)(this,"onAddApproverModalResolve",void 0),Object(ve.a)(this,"onDeleteApproverModalResolve",void 0),Object(ve.a)(this,"onLeaveDetailModalResolve",void 0),Object(ve.a)(this,"onWorkWorkersModalResolve",void 0),Object(ve.a)(this,"onShareModalResolve",void 0),Object(ve.a)(this,"onDeleteCommentModalResolve",void 0),Object(ge.a)(this,"someLoading",L,this),Object(ve.a)(this,"getLastCommentRect",Object(be.a)((function*(){return Promise.resolve(null)}))),Object(ge.a)(this,"showCommonModalMask",E,this),Object(ge.a)(this,"closeCommonModalMask",k,this),Object(ge.a)(this,"deleteCommentModal",z,this),Object(ge.a)(this,"onDeleteCommentOk",R,this),Object(ge.a)(this,"onDeleteCommentCancel",P,this),Object(ge.a)(this,"onDeleteCommentError",U,this),Object(ge.a)(this,"onStandardModalCancel",B,this),Object(ge.a)(this,"onReminderModalCancel",F,this),Object(ge.a)(this,"onRedirectModalCancel",Y,this),Object(ge.a)(this,"onRollbackModalCancel",Q,this),Object(ge.a)(this,"onCCModalCancel",G,this),Object(ge.a)(this,"onShareModalCancel",W,this),Object(ge.a)(this,"onAddApproverModalCancel",V,this),Object(ge.a)(this,"onDeleteApproverModalCancel",H,this),Object(ge.a)(this,"onLeaveDetailModalCancel",Z,this),Object(ge.a)(this,"onWorkWorkersModalCancel",q,this),Object(ge.a)(this,"onStandardModalOk",K,this),Object(ge.a)(this,"onEditDocModalOk",J,this),Object(ge.a)(this,"onSaveEdit",X,this),Object(ve.a)(this,"handleRevertError",(e=>{var{code:t}=e;return(t===me.ALREADY_APPROVED||t===me.ALREADY_IN_PROCESS)&&(fe.a.showToast({title:Be[t],icon:"error",duration:3e3}),Object(xe.b)("pc_mp_operate_error",{error_message:JSON.stringify(Be[t])}),!0)})),Object(ge.a)(this,"onRedirectModalOk",$,this),Object(ge.a)(this,"onRollbackModalOk",ee,this),Object(ge.a)(this,"onCCModalOk",te,this),Object(ge.a)(this,"onShareModalOk",ae,this),Object(ge.a)(this,"onReminderModalOk",re,this),Object(ge.a)(this,"onAddApproverModalOk",ie,this),Object(ge.a)(this,"onDeleteApproverModalOk",ne,this),Object(ge.a)(this,"onLeaveDetailModalOk",oe,this),Object(ge.a)(this,"onWorkWorkersModalOk",se,this),Object(ge.a)(this,"onReminderModalError",ce,this),Object(ge.a)(this,"onRedirectModalError",le,this),Object(ge.a)(this,"onAddApproverModalError",de,this),Object(ge.a)(this,"onDeleteApproverModalError",ue,this),Object(ge.a)(this,"onShareModalError",pe,this)}setActionsCanShowNum(e){this.actionsCanShowNum=e}get visible(){return this.standardModalVisible||this.agreeModalVisible||this.leaveDetailModalVisible||this.deleteApproverModalVisible||this.addApproverModalVisible||this.ccModalVisible||this.redirectModalVisible||this.reminderModalVisible||this.shareModalVisible||this.deleteCommentModalVisible}standardModal(e){return this.standardModalVisible=!0,this.standardModalData=e,new Promise((e=>{this.onStandardModalResolve=e}))}reminderModal(e){return this.reminderModalVisible=!0,this.reminderModalData=e,new Promise((e=>{this.onReminderModalResolve=e}))}redirectModal(e){return this.redirectModalVisible=!0,this.redirectModalData=e,new Promise((e=>{this.onRedirectModalResolve=e}))}rollbackModal(e){return this.rollbackModalVisible=!0,this.rollbackModalData=e,new Promise((e=>{this.onRollbackModalResolve=e}))}agreeModal(){this.agreeModalVisible=!0}CCModal(e){return this.ccModalVisible=!0,this.ccModalData=e,new Promise((e=>{this.onCCModalResolve=e}))}shareModal(e){return this.shareModalVisible=!0,this.shareModalData=e,new Promise((e=>{this.onShareModalResolve=e}))}addApprover(e){return this.addApproverModalVisible=!0,this.addApproverModalData=e,new Promise((e=>{this.onAddApproverModalResolve=e}))}deleteApprover(e){return this.deleteApproverModalVisible=!0,this.deleteApproverModalData=e,new Promise((e=>{this.onDeleteApproverModalResolve=e}))}leaveDetailModal(e){return this.leaveDetailModalVisible=!0,this.leaveDetailModalData=e,new Promise((e=>{this.onLeaveDetailModalResolve=e}))}workWorkersModal(e){return this.workWorkersModalVisible=!0,this.workWorkersModalData=e,new Promise((e=>{this.onWorkWorkersModalResolve=e}))}get queryPath(){var e,{indexStore:t}=Ee.b;return{query:t.searchStore.isSubSearch?{subordinateID:null===(e=t.currentActive)||void 0===e?void 0:e.AssigneeID}:{}}}handleOperationFails(e){var t=JSON.stringify(e,Object.getOwnPropertyNames(e));Object(xe.b)("pc_mp_operate_error",{error_message:t});var{code:a}=e;switch(a){case 10112:this.showErrorMessage(Object(Se.t)("Error.CannotModifyTaskGenByAddApprover"));break;case 10105:this.showErrorMessage(Object(Se.t)("Popup.FailedHint"))}}showErrorMessage(e){e&&fe.a.showToast({title:e,icon:"error",duration:3e3})}},i=Object(je.a)(r.prototype,"actionsCanShowNum",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Object(je.a)(r.prototype,"setActionsCanShowNum",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"setActionsCanShowNum"),r.prototype),n=Object(je.a)(r.prototype,"showCommonMask",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o=Object(je.a)(r.prototype,"standardModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=Object(je.a)(r.prototype,"standardModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=Object(je.a)(r.prototype,"reminderModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=Object(je.a)(r.prototype,"reminderModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=Object(je.a)(r.prototype,"redirectModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=Object(je.a)(r.prototype,"redirectModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=Object(je.a)(r.prototype,"rollbackModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=Object(je.a)(r.prototype,"rollbackModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=Object(je.a)(r.prototype,"ccModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=Object(je.a)(r.prototype,"ccModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=Object(je.a)(r.prototype,"commentModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=Object(je.a)(r.prototype,"addApproverModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j=Object(je.a)(r.prototype,"addApproverModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=Object(je.a)(r.prototype,"deleteApproverModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=Object(je.a)(r.prototype,"deleteApproverModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=Object(je.a)(r.prototype,"leaveDetailModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=Object(je.a)(r.prototype,"leaveDetailModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=Object(je.a)(r.prototype,"workWorkersModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=Object(je.a)(r.prototype,"workWorkersModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=Object(je.a)(r.prototype,"agreeModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A=Object(je.a)(r.prototype,"agreeModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=Object(je.a)(r.prototype,"editorModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I=Object(je.a)(r.prototype,"shareModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),C=Object(je.a)(r.prototype,"shareModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=Object(je.a)(r.prototype,"deleteCommentModalVisible",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=Object(je.a)(r.prototype,"deleteCommentModalData",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=Object(je.a)(r.prototype,"isSaveEditLoading",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),L=Object(je.a)(r.prototype,"someLoading",[Me.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=Object(je.a)(r.prototype,"showCommonModalMask",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCommonMask=!0}}}),k=Object(je.a)(r.prototype,"closeCommonModalMask",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCommonMask=!1}}}),Object(je.a)(r.prototype,"standardModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"standardModal"),r.prototype),Object(je.a)(r.prototype,"reminderModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"reminderModal"),r.prototype),Object(je.a)(r.prototype,"redirectModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"redirectModal"),r.prototype),Object(je.a)(r.prototype,"rollbackModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"rollbackModal"),r.prototype),Object(je.a)(r.prototype,"agreeModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"agreeModal"),r.prototype),Object(je.a)(r.prototype,"CCModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"CCModal"),r.prototype),Object(je.a)(r.prototype,"shareModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"shareModal"),r.prototype),Object(je.a)(r.prototype,"addApprover",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"addApprover"),r.prototype),Object(je.a)(r.prototype,"deleteApprover",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"deleteApprover"),r.prototype),Object(je.a)(r.prototype,"leaveDetailModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"leaveDetailModal"),r.prototype),Object(je.a)(r.prototype,"workWorkersModal",[Me.f],Object.getOwnPropertyDescriptor(r.prototype,"workWorkersModal"),r.prototype),z=Object(je.a)(r.prototype,"deleteCommentModal",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>(this.deleteCommentModalVisible=!0,this.deleteCommentModalData=e,new Promise((e=>{this.onDeleteCommentModalResolve=e})))}}),Object(je.a)(r.prototype,"queryPath",[Me.h],Object.getOwnPropertyDescriptor(r.prototype,"queryPath"),r.prototype),R=Object(je.a)(r.prototype,"onDeleteCommentOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return Object(be.a)((function*(){if(e.deleteCommentModalData){var{ctxId:t,data:{commentId:a,instanceId:r}}=e.deleteCommentModalData,{configurableFormStore:i}=Object(_e.d)(t),{instanceInfo:n}=i,o=r||(null==n?void 0:n.instanceId);if(o&&a&&!e.someLoading){e.someLoading=!0;try{var s=yield Ie.c.deleteComment({articleId:o,commentId:a},e.queryPath);Pe("operateOk"),Object(xe.b)(Le.f.CommentDelete),e.onDeleteCommentModalResolve(s)}catch(t){e.onDeleteCommentError(t)}e.onDeleteCommentCancel(),e.someLoading=!1}}}))}}),P=Object(je.a)(r.prototype,"onDeleteCommentCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deleteCommentModalVisible=!1,this.deleteCommentModalData=null}}}),U=Object(je.a)(r.prototype,"onDeleteCommentError",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{Pe("operateFail",{error:Object(ke.a)(e)}),this.showErrorMessage(e.msg)}}}),B=Object(je.a)(r.prototype,"onStandardModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.standardModalData)return null;var{ctxId:e}=this.standardModalData,{configurableFormStore:t}=Object(_e.d)(e);this.standardModalVisible=!1,t.instanceLoading=!1}}}),F=Object(je.a)(r.prototype,"onReminderModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.reminderModalData=null,this.reminderModalVisible=!1}}}),Y=Object(je.a)(r.prototype,"onRedirectModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.redirectModalData=null,this.redirectModalVisible=!1}}}),Q=Object(je.a)(r.prototype,"onRollbackModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.rollbackModalData=null,this.rollbackModalVisible=!1}}}),G=Object(je.a)(r.prototype,"onCCModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.ccModalData=null,this.ccModalVisible=!1}}}),W=Object(je.a)(r.prototype,"onShareModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.shareModalData=null,this.shareModalVisible=!1}}}),V=Object(je.a)(r.prototype,"onAddApproverModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.addApproverModalData=null,this.addApproverModalVisible=!1}}}),H=Object(je.a)(r.prototype,"onDeleteApproverModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deleteApproverModalData=null,this.deleteApproverModalVisible=!1}}}),Z=Object(je.a)(r.prototype,"onLeaveDetailModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.leaveDetailModalData=null,this.leaveDetailModalVisible=!1}}}),q=Object(je.a)(r.prototype,"onWorkWorkersModalCancel",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.workWorkersModalData=null,this.workWorkersModalVisible=!1,this.onWorkWorkersModalResolve({result:"cancel"})}}}),K=Object(je.a)(r.prototype,"onStandardModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(be.a)((function*(t){var{content:a,atInfoList:r}=t;if(!e.standardModalData)return null;var{ctxId:i,actionType:n,instanceId:o,taskId:s,isThird:c,actionContext:l="",isReasonTextRequired:d,signatureData:u}=e.standardModalData,{configurableFormStore:p}=Object(_e.d)(i),{instanceInfo:m}=p;if(null!==m||o||c){m||(m={});var h={instanceId:o||m.instanceId,taskId:s||m.taskId};if(Pe("operateOk",h),!e.someLoading){e.someLoading=!0;var b=ye.e[n]===ye.e.WITHDRAW&&m.instanceStatus===Ae.d.APPROVED,g=ye.e[n]===ye.e.WITHDRAW&&m.instanceStatus!==Ae.d.APPROVED;g&&(m.instanceStatus=ye.e.WITHDRAW,m.currentTask.type=-1,m.endTime=Number(Date.now().toString()));var v=a.files.length||a.text?JSON.stringify(a):"",j={signatureKey:a.signatureKey,isReuseSignature:a.isReuseSignature,signatureUrl:a.signatureUrl};try{var O,f=Promise.resolve();if(n===ye.b.COMMENT)f=Ie.c.addComment({articleId:m.instanceId,shareCode:m.shareCode,content:v,atInfoList:r,sourceType:1,contentType:1,commentVersion:Ne.i},e.queryPath).then((e=>({content:a,atInfoList:r,response:e})));else if(b)f=Ie.c.instancerevert({instanceId:m.instanceId,revertReason:v,reasonVersion:Ne.i,uuid:Object(we.e)()},{errHandler:e=>(e===me.ALREADY_APPROVED||e===me.ALREADY_IN_PROCESS)&&(fe.a.showToast({title:Be[e],icon:"error",duration:3e3}),Object(xe.b)("pc_mp_operate_error",{error_message:JSON.stringify(Be[e])}),!0)});else{f=(c?Ie.c.externalinstanceoperate:Ie.c.instanceoperate)(Object(he.a)({commentVersion:Ne.i,comment:g?"":v,formFieldList:p.getOutputParams()?p.getOutputParams().form:"",instanceId:o||m.instanceId,taskId:s||m.taskId,type:ye.e[n],actionType:c?n:"",actionContext:l},j))}e.showCommonModalMask();var M=yield f,_={[ye.b.AGREE]:"agree",[ye.b.REJECT]:"reject",[ye.b.COMMENT]:"comment",[ye.b.WITHDRAW]:"cancel"};null!=r&&r.length&&Object(xe.b)(Le.f.CommentAtPerson),Object(xe.b)("pc_mp_click",{action:_[n],addition:Boolean(a.files.length).toString(),instanceId:o||m.instanceId}),null!=u&&null!==(O=u.signatureConfig)&&void 0!==O&&O.requireSignature&&Object(ze.a)(m,a),d&&[ye.b.REJECT,ye.b.AGREE].includes(n)&&Object(xe.b)("comment_required",{isAtListPage:"false",isBatchApprove:"false",type:n.toLocaleLowerCase()}),Pe("operateSuccess",h),Te.a.delete(Te.a.getKey(o,n)),Object(Me.s)((()=>{e.standardModalVisible=!1,e.someLoading=!1})),e.onStandardModalResolve(M),e.onStandardModalCancel(),fe.a.eventCenter.trigger("retrieve-doc-edit-auth",o,Re.c.Writeable)}catch(t){var y;e.someLoading=!1,e.onStandardModalCancel();var D=null!==(y=Ue[n])&&void 0!==y?y:"operateFail";De.a.error(D,t),e.handleRevertError(t),e.handleOperationFails(t),Pe(D,Object(he.a)(Object(he.a)({},h),{},{error:t})),Object(xe.b)(Le.f.ApprovalError,{location:"in function onStandardModalOk at src/stores/detail-modal-store.ts",message:JSON.stringify(t)})}finally{e.closeCommonModalMask()}}}}));return function(e){return t.apply(this,arguments)}}()}}),J=Object(je.a)(r.prototype,"onEditDocModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(be.a)((function*(t){var{ctxId:a,comment:r,afterWithdraw:i}=t,{configurableFormStore:n}=Object(_e.d)(a),{instanceInfo:o}=n;if(null!==o){o.instanceStatus=ye.e.WITHDRAW,o.currentTask.type=-1,o.endTime=Number(Date.now().toString());var{instanceId:s,taskId:c}=o;e.showCommonModalMask(),Ie.c.instanceoperate({instanceId:s,taskId:c,type:Ae.d.WITHDRAW,comment:r,commentVersion:Ne.i}).then((e=>{De.a.info("[edit doc] withdraw success",e),fe.a.eventCenter.trigger("retrieve-doc-edit-auth",s,Re.c.Writeable)})).catch((e=>{if(10136===e.code)fe.a.showToast({title:Object(Se.t)("Cancel_isCanceling"),duration:3e3,icon:"error"});else fe.a.showToast({title:Object(Se.t)("Detail.FailedWhenRecall"),duration:3e3,icon:"error"});Pe("cloudDocCancelFail",{func:"src/stores/detail-modal-store.ts onEditDocModalOk",data:JSON.stringify(e,Object.getOwnPropertyNames(e))})})).finally((()=>{i&&i(),e.closeCommonModalMask(),n.fetchInstance({id:o.instanceId})}))}}));return function(e){return t.apply(this,arguments)}}()}}),X=Object(je.a)(r.prototype,"onSaveEdit",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(be.a)((function*(t){var{configurableFormStore:a}=Object(_e.d)(t),{instanceInfo:r}=a;e.isSaveEditLoading=!0;try{return yield Ie.c.instanceoperate({commentVersion:Ne.i,comment:"",formFieldList:a.getOutputParams()?a.getOutputParams().form:"",instanceId:r.instanceId,taskId:r.taskId,type:ye.e[ye.b.SAVE_EDIT],actionType:"",actionContext:""})}catch(t){De.a.error("saveEditErr",t),e.showErrorMessage(Object(Se.t)("Detail.SaveFail"))}finally{Object(Me.s)((()=>{e.isSaveEditLoading=!1}))}}));return function(e){return t.apply(this,arguments)}}()}}),$=Object(je.a)(r.prototype,"onRedirectModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var t,a;Pe("operateOk"),this.redirectModalVisible=!1,this.onRedirectModalResolve(e),fe.a.eventCenter.trigger("retrieve-doc-edit-auth",null===(t=this.redirectModalData)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.instanceId,Re.c.Readable)}}}),ee=Object(je.a)(r.prototype,"onRollbackModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var t;Pe("operateOk"),this.rollbackModalVisible=!1,this.onRollbackModalResolve(e),fe.a.eventCenter.trigger("retrieve-doc-edit-auth",null===(t=this.rollbackModalData)||void 0===t?void 0:t.instanceId,Re.c.Writeable)}}}),te=Object(je.a)(r.prototype,"onCCModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{Pe("operateOk"),this.ccModalVisible=!1,this.onCCModalResolve(e)}}}),ae=Object(je.a)(r.prototype,"onShareModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{Pe("operateOk"),this.shareModalVisible=!1,this.onShareModalResolve(e)}}}),re=Object(je.a)(r.prototype,"onReminderModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{Pe("operateOk"),this.reminderModalVisible=!1,this.onReminderModalResolve()}}}),ie=Object(je.a)(r.prototype,"onAddApproverModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{Pe("operateOk"),this.addApproverModalVisible=!1,this.onAddApproverModalResolve(e)}}}),ne=Object(je.a)(r.prototype,"onDeleteApproverModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{Pe("operateOk"),this.deleteApproverModalVisible=!1,this.onDeleteApproverModalResolve()}}}),oe=Object(je.a)(r.prototype,"onLeaveDetailModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{Pe("operateOk"),this.leaveDetailModalVisible=!1,this.onLeaveDetailModalResolve()}}}),se=Object(je.a)(r.prototype,"onWorkWorkersModalOk",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{Pe("operateOk"),this.workWorkersModalVisible=!1,this.onWorkWorkersModalResolve({result:"ok"})}}}),ce=Object(je.a)(r.prototype,"onReminderModalError",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.handleOperationFails(e)}}}),le=Object(je.a)(r.prototype,"onRedirectModalError",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.handleOperationFails(e)}}}),de=Object(je.a)(r.prototype,"onAddApproverModalError",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.handleOperationFails(e)}}}),ue=Object(je.a)(r.prototype,"onDeleteApproverModalError",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.handleOperationFails(e)}}}),pe=Object(je.a)(r.prototype,"onShareModalError",[Me.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.handleOperationFails(e)}}}),r)},function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var r=a(119),i=a(12),n=(e,t)=>{var{instanceId:a,taskId:n}=e;Object(i.b)("approval_pc_mobile_use",{from_source:r.a.PC,instanceId:a,task_id:n,is_reuse_signature:Number(t.isReuseSignature)})}},function(e,t,a){"use strict";var r=a(1),i=a(3),n=a(81),o=a(2),s=a(938),c=a.n(s),l=a(40),d=a(12),u=a(17),p=a(20),m=a(44),h=a(10),b=a(547),g=a.n(b),v=a(0),j=Object(p.c)("pc:src/pc-pages/index/components/detail-module/approval-regulation/index.tsx");t.a=Object(i.memo)((e=>{var{taskData:t}=e;return Object(v.jsx)(r.r,{className:g.a.regulation,onClick:()=>{if(t){var{DefinitionName:e,DefinitionKey:a,URLs:r,TaskUniqueID:i}=t,{regulation:o}=r;try{Object(d.b)(u.f.ApprovalDetailRegulation,{definition_name:e,definition_key:a,click_source:"pc",task_instance_id:i})}catch(e){j("commonOnError",{location:"in function onClick at src/pc-pages/index/components/detail-module/approval-regulation/index.tsx",message:Object(m.a)(e)}),h.a.error(e)}Object(n.f)({type:"webview",offset:56,webviewInfo:{url:o}})}},children:Object(v.jsx)(l.c,{arrow:!0,position:"bottom",text:Object(o.t)("Regulation.viewPolicy"),children:Object(v.jsxs)(r.r,{className:g.a["regulation-content"],children:[Object(v.jsx)(r.g,{className:g.a["icon-image"],src:c.a}),Object(v.jsx)(r.p,{className:g.a["regulation-title"],children:Object(o.t)("Regulation.policy")})]})})})}))},function(e,t,a){"use strict";a(3);var r=a(15),i=a(1),n=a(24),o=a(2),s=a(939),c=a.n(s),l=a(418),d=a.n(l),u=a(0);t.a=Object(r.a)((e=>{var{isNeed:t,callback:a}=e,{intranetStore:r}=n.b,{isInternalNetWork:s}=r;return!t||s||s?a():Object(u.jsx)(i.r,{className:d.a.container,children:Object(u.jsxs)(i.r,{className:d.a.content,children:[Object(u.jsx)(i.g,{src:c.a,className:d.a["wifi-img"]}),Object(u.jsxs)(i.r,{className:d.a["text-group"],children:[Object(u.jsx)(i.r,{className:"text w-s-n-w",children:Object(o.t)("Internal_UnconnectInternal")}),Object(u.jsx)(i.r,{className:"text w-s-n-w",children:Object(o.t)("Internal_LinkVpnTip")})]}),Object(u.jsx)(i.b,{className:d.a["seal-button"],onClick:()=>{tt.openSchema({schema:"seal://page/vpn",external:!0})},children:Object(o.t)("Internal_LinkVpnBtnText")}),Object(u.jsx)(i.r,{className:d.a["download-seal"],onClick:()=>{tt.openSchema({schema:"https://seal.bytedance.net",external:!0})},children:Object(o.t)("Internal_InstallVpn")})]})})}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return m})),a(3);var r=a(121),i=a(946),n=a.n(i),o=a(233),s=a(162),c=a(1),l=a(2),d=a(740),u=a.n(d),p=a(0),m=e=>{var{handleOpenDetail:t,initiatorUser:a}=e;return Object(p.jsxs)(c.r,{className:u.a["subsearch-content"],children:[Object(p.jsx)(c.g,{src:n.a,className:u.a["img-wrapper"]}),Object(p.jsx)(c.r,{className:u.a["text-wrapper"],children:Object(o.a)("search.sub_detail_tip",{user:Object(s.a)(null==a?void 0:a.UserID,null==a?void 0:a.Name,{fontSize:"14px",lineHeight:"22px",borderBottom:"none",color:"#3370FF",cursor:"pointer"})})}),Object(p.jsx)(r.a,{type:"primary",onClick:t,children:Object(l.t)("search.open_detail","打开单据详情")})]})}},function(e,t,a){"use strict";var r=a(2),i=a(1),n=(a(3),a(39)),o=a(451),s=a.n(o),c=a(28),l=a(296),d=a(741),u=a.n(d),p=a(0);t.a=e=>{var{active:t}=e;return Object(p.jsxs)(l.a,{imgSrc:s.a,children:["drawer-miniapp"!==t.type&&Object(p.jsx)(i.r,{className:u.a["open-button"],onClick:()=>{tt.openSchema({schema:t.webviewInfo.url,external:!0})},children:Object(r.t)("PC.OpenBrower")}),Object(p.jsxs)(i.r,{className:u.a["download-tip"],children:[Object(r.t)("feishu_lark.PC.LowVersionTip",{feishu:Object(r.t)(c.b)}),Object(p.jsx)(i.p,{className:u.a["download-btn"],onClick:()=>{tt.openSchema({schema:"Feishu"===(null===n.h||void 0===n.h?void 0:n.h.appName)?"https://www.feishu.cn/download":"https://www.larksuite.com/download",external:!0})},children:Object(r.t)("feishu_lark.PC.UpgradeBtn",{feishu:Object(r.t)(c.b)})})]})]})}},,function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a(9),i=a(65),n=a(3),o=a(19),s=a.n(o),c=e=>{var{targetId:t,height:a=120,isActive:o,resizeId:c,forceUpdateId:l}=e,d=Object(n.useRef)(),u=function(){var e=Object(r.a)((function*(){var e=yield Object(i.a)(t);if(e){var{top:a}=e;d.current=a}}));return function(){return e.apply(this,arguments)}}();Object(n.useEffect)((()=>{o&&s.a.nextTick((()=>{u()}))}),[o,c,l]);var p=Object(n.useCallback)(function(){var e=Object(r.a)((function*(e){var t,r,{top:n}=null!==(t=yield Object(i.a)(e))&&void 0!==t?t:{};return n-(null!==(r=d.current)&&void 0!==r?r:0)<a}));return function(t){return e.apply(this,arguments)}}(),[a]);return{topRef:d,shouldBottomShowTip:p}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var r=a(3),i=a(24),n=a(20),o=a(16),s=a(157),c=a(50);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{indexStore:t}=Object(i.c)(),{shouldClearStorage:a=!1,onRefresh:l}=e,d=Object(r.useCallback)((()=>{l?l():t.refresh()}),[t,l]),{todoStore:u}=t,p=Object(r.useCallback)((()=>{Object(n.h)(),u.closeBatchMode(),null==d||d(),o.c.syncBadgeCount(),a&&c.a.clearSync()}),[u,d,a]);return Object(r.useMemo)((()=>Object(s.a)(p,300,{leading:!0,trailing:!1})),[p])}},function(e,t,a){"use strict";function r(e){e.handlers.set("goProcessAnalysis",(e=>{var{approvalID:t,approvalName:a,dataType:r,instanceStartTime:i,instanceEndTime:n,departmentIDs:o,analysisType:s,teamDateType:c,userID:l}=e.data,d="/pc-pages/process-analysis/index?approvalID=".concat(t,"&approvalName=").concat(a,"&from=efficiency");r&&(d+="&dataType=".concat(r)),c&&(d+="&teamDateType=".concat(c)),i&&(d+="&instanceStartTime=".concat(i)),n&&(d+="&instanceEndTime=".concat(n)),o&&(d+="&departmentIDs=".concat(o)),s&&(d+="&analysisType=".concat(s)),l&&(d+="&userID=".concat(l)),tt.navigateTo({url:d})}))}a.d(t,"a",(function(){return r}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var r=a(20),i=a(2),n=Object(r.c)("shared:src/modules/app-share/index.ts"),o=(()=>{switch(Object(i.getCurLang)()){case"zh":return"https://p1-ea-frontend.byteimg.com/tos-cn-i-rttncohjn0/e2fff7df7f524db1a6d53f7bb327f6b1~tplv-rttncohjn0-6.png";case"ja":return"https://p1-ea-frontend.byteimg.com/tos-cn-i-rttncohjn0/8c99da6cc3af4a3a91309b3424c6044c~tplv-rttncohjn0-6.png";default:return"https://p1-ea-frontend.byteimg.com/tos-cn-i-rttncohjn0/397997bd4a3a47d791d8b5771a1ddd78~tplv-rttncohjn0-6.png"}})(),s=e=>{var{approvalName:t,approvalId:a,external:r}=e,i="id=".concat(a,"&title=").concat(t,"&scene=").concat(r?"external-share":"definition-share");return{title:t,imageUrl:o,path:"pages/approval-form/index?".concat(i),PCPath:"pc/pages/create-form/index?".concat(i),PCMode:"appCenter",fail(e){n("commonOnError",{file:"shared/src/modules/app-share",error:e})}}}},function(e,t,a){"use strict";a.d(t,"a",(function(){return _}));var r=a(5),i=a(3),n=a(69),o=a(100),s=a(2),c=a(961),l=a.n(c),d=a(28),u=a(18),p=a(25),m=a(35),h=a(10),b=(a(1345),a(12)),g=a(17),v=a(0),j=new m.a;j.handlers.set("enterProfile",(e=>{var{data:t}=e,a=Object.assign(null!=t?t:{},{success:e=>{h.a.warn("[mp-pc] enterProfile success",e,t),Object(b.b)(g.f.ApprovalError,Object(r.a)(Object(r.a)({},e),{},{data:t}))},fail:e=>{h.a.error("[mp-pc] enterProfile fail",e,t),Object(b.b)(g.f.ApprovalError,Object(r.a)(Object(r.a)({},e),{},{data:t}))}});return null!=a&&a.openid?tt.enterProfile(a):(h.a.error("[mp-pc] enterProfile: invalid openid",t),Object(b.b)(g.f.ApprovalError,{data:t}))}));var O="selector",f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(O,"__").concat(e):O};function M(e){var t;return null!==(t=u.h[e])&&void 0!==t?t:u.h.boe}var _=e=>{var{params:t}=e,a=o.a.use();Object(i.useEffect)((()=>{var{nodeName:e=""}=t;a.setTitle(e)}),[a]),Object(i.useEffect)((()=>j.listen()),[]);var r=Object(i.useMemo)((()=>"".concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a="development"===d.c?u.q.Local:M(d.a),r=new URL("".concat(u.j[a],"/approval/web/process-analysis/node-detail")),{searchParams:i}=r;return i.set("random",String(Math.random())),i.set("origin","mp-pc"),i.set("user",p.d.currentUser.encryptedUserId),i.set("lng",s.curLang),i.set("NODE_ENV",d.c),i.set("BUILD_ENV",d.a),i.set(u.w,u.x),i.set("source",t.source||""),i.set("taskEndTime",t.taskEndTime||""),i.set("approverDepartmentID",t.approverDepartmentID||""),i.set("userID",t.userID||""),Object.entries(e).forEach((e=>{var[t,a]=e;a&&i.set(t,String(a))})),r}(t))),[]);return Object(v.jsx)(n.d.Panel,{className:l.a[f()],children:Object(v.jsx)(n.d.Container,{className:"iframe-container",children:Object(v.jsx)("native-iframe",{src:r,onLoad:e=>{var t,a=null===(t=e.detail)||void 0===t?void 0:t.channel;h.a.error("[mp-pc] Iframe OnLoad",{channel:a,source:r}),j.setChannel(a)}})})})}},function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));var r=a(179),i=a(3),n=a(2),o=a(24),s=a(15),c=a(231),l=a(0),d={[c.a.UNKNOWN]:Object(n.t)("approval-mp_AllowPrinterAccess_Desc","同意并授权三方打印宝应用访问当前审批的数据,才能使用管理员设置的自定义打印模版"),[c.a.PRINT_ASSISTANT]:Object(n.t)("approval-mp_AllowPrinterAccess_Desc","同意并授权三方打印宝应用访问当前审批的数据,才能使用管理员设置的自定义打印模版"),[c.a.TYPOGRAPHY_PRINT]:Object(n.t)("approval-mp_GrantPermissionToDocuGenius_CardDesc","同意并授权三方排版打印应用访问当前审批的数据,才能使用管理员设置的自定义打印模版")},u=Object(s.a)((()=>{var{globalStore:e}=Object(i.useContext)(o.a);return Object(l.jsx)(r.a,{type:"warning",zIndex:1e3,visible:e.showCustomPrintGetAuthorizedModal,title:Object(n.t)("approval-mp_ApplyPemissions_Title","审批申请获得以下权限"),content:d[e.allowCustomPrintType],confirmText:Object(n.t)("approval-mp_Agree_Button","同意"),onConfirm:()=>{var t;null===(t=e.getAuthorizedModalPromise)||void 0===t||t.call(e,"confirm"),e.setShowCustomPrintGetAuthorizedModal(!1)},showClose:!0,onClose:()=>{var t;null===(t=e.getAuthorizedModalPromise)||void 0===t||t.call(e,"close"),e.setShowCustomPrintGetAuthorizedModal(!1)},cancelText:Object(n.t)("approval-mp_SystemPrint_Button","系统模版打印"),onCancel:()=>{var t;null===(t=e.getAuthorizedModalPromise)||void 0===t||t.call(e,"cancel"),e.setShowCustomPrintGetAuthorizedModal(!1)}})}))},function(e,t,a){"use strict";a.d(t,"a",(function(){return jt}));var r=a(5),i=a(3),n=a.n(i),o=a(1),s=a(15),c=a(14),l=a(657),d=a.n(l),u=a(29),p=a(2),m=a(10),h=a(464),b=a(9),g=a(6),v=a(157),j=a(314),O=a(124),f=a(12),M=a(188),_=a(18),y=a(17),D=a(526),N=a(138),A=(a(1319),a(291)),T=a(66),I=a(90),C=a(20),x=a(16),S=a(74),w=a(470),L=a(350),E=a(133),k=a(307),z=a(930),R=a.n(z),P=a(0),U=Object(C.c)("pc:src/components/approval-detail/modals/candidate-selector-modal/index.tsx"),B=e=>{var[t,a]=Object(i.useState)(e.candidateList||[]),[n,s]=Object(i.useState)(e.checkedList||[]),[c,l]=Object(i.useState)(""),[d,u]=Object(i.useState)(!1),p={fetchCandidateListBySearch:Object(I.a)(function(){var e=Object(b.a)((function*(e){u(!0);var t={query:e,offset:0,pageSize:20};try{var r=(yield x.c.usersearchUserDepartments(t)).data.entityList,i=[];r.forEach((e=>{e.type===k.a.DEP&&i.push({type:S.a.GROUP,id:e.id,title:e.name,showFoldButton:e.subVisible,children:null}),e.type===k.a.MEMBER&&i.push({type:S.a.PERSON,id:e.id,title:e.name,avatarUrl:e.iconLink,subTitle:e.email,children:null})})),a(i)}catch(e){U("commonOnError",{location:"in function fetchCandidateListBySearch at src/components/bolt-modal/modal-content-components/approval-detail-cc-modal-candidate-selector/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{u(!1)}}));return function(t){return e.apply(this,arguments)}}()),fetchCandidateListByDepartmentId:Object(I.a)(Object(b.a)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;u(!0);try{var t=yield p.fetchDepartmentChildrenByDapartmentId(e);a(t)}catch(e){U("commonOnError",{location:"in function fetchCandidateListByDepartmentId at src/components/bolt-modal/modal-content-components/approval-detail-cc-modal-candidate-selector/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{u(!1)}}))),fetchDepartmentChildrenByDapartmentId:Object(I.a)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return x.c.userqueryUsersByDepartmentId({departmentId:e}).then((e=>{var{infos:t}=e.data,a=[];return t.forEach((e=>{e.userType===k.b.DEP&&a.push({type:S.a.GROUP,id:e.userId,title:e.userName,showFoldButton:e.subVisible,children:null}),e.userType===k.b.MEMBER&&a.push({type:S.a.PERSON,id:e.userId,title:e.userName,avatarUrl:e.iconLink,subTitle:e.email,children:null})})),a}))})),fetchChildrenByDepartmentId:Object(I.a)(function(){var e=Object(b.a)((function*(e){u(!0);try{var r=yield p.fetchDepartmentChildrenByDapartmentId(e),i=p.find(t,e);i&&(i.children=r,a([...t]))}catch(e){U("commonOnError",{location:"in function fetchChildrenByDepartmentId at src/components/bolt-modal/modal-content-components/approval-detail-cc-modal-candidate-selector/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{u(!1)}}));return function(t){return e.apply(this,arguments)}}()),find:Object(I.a)(((e,t)=>{var a=!1,r=null;return function e(i){for(var n of i){if(n.id===t){r=n,a=!0;break}if(n.children&&(e(n.children),a))break}}(e),r})),initCandidateList:Object(I.a)((()=>{p.fetchCandidateListByDepartmentId()})),onSearchChange:Object(I.a)(Object(v.a)((e=>{e.length>0?p.fetchCandidateListBySearch(e):p.initCandidateList(),l(e)}),500)),onChange:Object(I.a)((e=>{var{checkedList:t}=e;s(t)})),cancel:Object(I.a)((()=>{var t;null===(t=e.onCancel)||void 0===t||t.call(e)})),submit:Object(I.a)((()=>{var t;null===(t=e.onSubmit)||void 0===t||t.call(e,n)})),onFoldChange:Object(I.a)(((e,t)=>{t||p.fetchChildrenByDepartmentId(e)})),handleFoldChange:Object(I.a)(((e,t)=>{t||p.fetchChildrenByDepartmentId(e)}))},h=Object(i.useMemo)((()=>null!=e&&e.addDisabledInCandidateList?e.addDisabledInCandidateList(t,e.disabledCandidateList):t),[t,c]),g=Object(P.jsx)(w.a,{disabled:0===(null==n?void 0:n.length),onClick:p.submit});return Object(i.useEffect)((()=>{"delete-appprover-modal"!==(null==e?void 0:e.from)&&p.initCandidateList()}),[e]),Object(P.jsx)(o.r,{className:R.a.wrap,children:Object(P.jsx)(L.a,Object(r.a)(Object(r.a)({},e),{},{candidateList:h,candidateListLoading:d,checkedList:n,sendBtnArea:g,onCancel:p.cancel,onChange:p.onChange,onSearchChange:p.onSearchChange,onFoldChange:p.handleFoldChange}))})},F=Object(E.e)((e=>t=>Object(P.jsx)(B,Object(r.a)(Object(r.a)({},t),{},{onSubmit:a=>{var r;null===(r=t.onSubmit)||void 0===r||r.call(t,a),e.close()},onCancel:()=>{var a;null===(a=t.onCancel)||void 0===a||a.call(t),e.close()}})))),Y=a(931),Q=a.n(Y),G=a(932),W=a.n(G);function V(e){var{value:t,addButtonText:a,onDelete:r,onAdd:i,showAddButton:n=!0}=e;return Object(P.jsxs)(o.r,{className:"contact-container",children:[n&&Object(P.jsxs)(o.r,{className:"add-button",onClick:i,children:[Object(P.jsx)(o.g,{src:Q.a,style:{width:"16px",height:"16px",color:"#3370FF",marginRight:"6px"}}),a]}),t&&t.length?t.map(((e,t)=>{var{id:a,title:i,avatarUrl:n}=e;return Object(P.jsxs)(o.r,{className:"user-item",children:[Object(P.jsx)(o.g,{src:n||"",style:{width:"24px",height:"24px",borderRadius:"50%"}}),Object(P.jsx)(o.r,{className:"name",children:i}),Object(P.jsx)(o.g,{src:W.a,style:{width:"11px",height:"11px",borderRadius:"50%",color:"#646A73"},onClick:()=>{r(a,t)}})]},a)})):null]})}a(1320),a(1321);class H extends i.Component{constructor(){super(...arguments),Object(g.a)(this,"state",{tempCheckedList:[]})}render(){var{checkedList:e,onDelete:t,addButtonText:a,selectorVisible:i,onMaskClick:n,onAddClick:s,onCancel:c,showAddButton:l=!0,title:d,style:u,titleDesc:m,noSelectedDisabled:h=!1,from:b}=this.props,{tempCheckedList:g}=this.state;return Object(P.jsxs)(o.r,{className:"candidate-selector-container",children:[Object(P.jsx)(V,{addButtonText:a,value:e,onAdd:()=>{s&&s(),this.setState({tempCheckedList:e}),b&&F(Object(r.a)(Object(r.a)({instanceId:""},this.props),{},{onSubmit:e=>{this.props.onChange({checkedList:e})}}))},onDelete:t,showAddButton:l}),!b&&Object(P.jsxs)(T.a,{hidden:!i,children:[Object(P.jsx)(o.r,{className:"mask",onClick:n}),Object(P.jsxs)(o.r,{className:"candidate-wrapper",style:u,children:[d&&Object(P.jsx)(o.r,{className:"candidate-wrapper-title",children:d}),m&&Object(P.jsx)(o.r,{className:"candidate-wrapper-desc",children:m}),Object(P.jsx)(A.a,Object(r.a)(Object(r.a)({},this.props),{},{checkedList:i?g:e,onChange:e=>{var{checkedList:t}=e;this.setState({tempCheckedList:t})}})),Object(P.jsxs)(o.r,{className:"button-group",children:[Object(P.jsx)(o.r,{onClick:c,className:"button cancel",children:Object(p.t)("Popup.Cancel")}),Object(P.jsx)(o.r,{onClick:()=>{h&&0===g.length||this.props.onChange({checkedList:g})},className:"button confirm".concat(h&&0===g.length?" button-disabled":""),children:Object(p.t)("Popup.Confirm")})]})]})]})]})}}var Z,q,K,J,X,$,ee,te,ae=a(167),re=a(113),ie=a(190),ne=a(91),oe=a(30),se=a(19),ce=a.n(se),le=Object(s.a)((q=class extends i.Component{constructor(e){var t;super(e),t=this,Object(g.a)(this,"customCtx",void 0),Object(g.a)(this,"candidateSelectorRef",void 0),Object(g.a)(this,"closeSelector",(()=>{this.setState({selectorVisible:!1})})),Object(g.a)(this,"cacheKey",""),Object(g.a)(this,"handleCheckedListChange",(e=>{var{checkedList:t}=e;this.setState({checkedList:t,selectorVisible:!1})})),Object(g.a)(this,"handleOk",Object(b.a)((function*(){var{data:{instanceId:e,taskId:a},onSuccess:r,onFail:i,showCommonModalMask:n,closeCommonModalMask:o}=t.props,{checkedList:s,comment:c,isReady:l}=t.state;if(s.length>0&&l)try{t.setState({isReady:!1}),n();var{nextInstanceId:d}=yield t.customCtx.ccModalStore.requestFreeCc({instanceId:e,taskId:a,ccIds:s.map((e=>e.id)),comment:Object(N.d)(c),reasonVersion:_.i});ne.a.delete(t.cacheKey),r&&r({nextInstanceId:d}),Object(f.b)("pc_mp_click",{action:"cc",addition:Boolean(c.files.length).toString(),instanceId:e})}catch(e){e&&10122===e.code&&ce.a.showToast({title:Object(p.t)("NoExternalStaff"),icon:"error",duration:3e3}),i&&10122!==e.code&&i(e),Object(f.b)(y.f.ApprovalError,{location:"in function handleOk at src/components/approval-detail/modals/cc-modal/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))})}finally{o(),t.setState({isReady:!0})}else ce.a.showToast({title:Object(p.t)("FreeCC.LabelOfContact"),icon:"info",duration:3e3})}))),Object(g.a)(this,"handleCancel",(()=>{var{onCancel:e}=this.props,{comment:t}=this.state;Object(re.g)(t)||ne.a.setVal(this.cacheKey,t),e&&e()})),Object(g.a)(this,"handleSearchChange",Object(v.a)((e=>{e.length>0?this.customCtx.ccModalStore.fetchCandidateListBySearch(e):this.initCandidateList()}),500)),Object(g.a)(this,"handleFoldChange",((e,t)=>{t||this.customCtx.ccModalStore.fetchChildrenByDepartmentId(e)})),this.customCtx={ccModalStore:new D.b};var{data:{instanceId:a}}=this.props;this.cacheKey=ne.a.getKey(a,oe.b.CC),this.state={checkedList:[],comment:ne.a.getVal(this.cacheKey),selectorVisible:!1,isReady:!0}}componentDidUpdate(e){this.props.visible!==e.visible&&(this.clearState(),this.props.visible&&this.customCtx.ccModalStore.fetchCandidateListByDepartmentId())}componentDidMount(){this.initCandidateList()}renderFooter(){var{checkedList:e,isReady:t}=this.state;return Object(P.jsx)(ie.a,{disabledOk:!e.length||!t,onOk:()=>this.handleOk(),onCancel:this.handleCancel})}render(){var e=this,{ctxId:t}=this.props;if(!t)return null;var{visible:a,data:{disabledCandidateList:r},showCommonMask:i}=this.props,{checkedList:n,comment:s,selectorVisible:c}=this.state,{ccModalStore:l}=this.customCtx,d=this.addDisabledInCandidateList(l.candidateList,r);return Object(P.jsx)(M.a,{ctxId:t,visible:a,title:Object(p.t)("Free_SelectPerson"),onCancel:this.handleCancel,renderFooter:Object(P.jsx)(o.r,{children:this.renderFooter()}),type:"custom-footer",loading:i,children:Object(P.jsxs)(o.r,{children:[Object(P.jsx)(o.r,{className:"candidate-wrapper",style:{marginBottom:"16px"},children:Object(P.jsx)(H,{from:"cc-modal",candidateList:d,disabledCandidateList:r,addDisabledInCandidateList:function(){return e.addDisabledInCandidateList(...arguments)},candidateListLoading:l.candidateListLoading,checkedList:n,onChange:this.handleCheckedListChange,selectorHeight:"300px",onSearchChange:this.handleSearchChange,onFoldChange:this.handleFoldChange,ref:e=>{this.candidateSelectorRef=e},addButtonText:Object(p.t)("formApprovers.Add"),onDelete:(e,t)=>{n.splice(t,1),this.setState({checkedList:n})},onAddClick:()=>{this.setState({selectorVisible:!0})},onCancel:this.closeSelector,onMaskClick:this.closeSelector,selectorVisible:c})}),Object(P.jsx)(ae.a,{ctxId:t,defaultValue:s,placeholder:"".concat(Object(p.t)("FreeCC.LabelOfReason")),onChange:e=>{this.setState({comment:e})}})]})})}addDisabledInCandidateList(e,t){return e.map((e=>(e=Object(j.a)(e),Object(r.a)({},e))))}initCandidateList(){this.customCtx.ccModalStore.fetchCandidateListByDepartmentId()}clearState(){this.candidateSelectorRef&&this.candidateSelectorRef.clearSearchContent(),this.customCtx.ccModalStore.clearCandidateList(),this.setState({checkedList:[],comment:ne.a.getVal(this.cacheKey)})}},Object(g.a)(q,"defaultProps",{visible:!1,data:{instanceId:"",taskId:"",requester:"",approvalName:"",disabledCandidateList:[]},onSuccess:O.a,onFail:O.a,onCancel:O.a}),Z=q))||Z,de=a(710),ue=a(362),pe=(a(1326),16),me=Object(s.a)((J=class extends i.Component{constructor(){var e;super(...arguments),e=this,Object(g.a)(this,"state",{checkedList:[],isReady:!0}),Object(g.a)(this,"handleCheckedListChange",(e=>{var{checkedList:t}=e;this.setState({checkedList:t})})),Object(g.a)(this,"handleOk",Object(b.a)((function*(){var{data:{instanceId:t},onSuccess:a,onFail:r,ctxId:i}=e.props,{reminderModalStore:n}=Object(c.d)(i),{checkedList:o,isReady:s}=e.state;if(o.length>0&&s)try{console.log("***************"),e.setState({isReady:!1}),yield n.requestToReminder({instanceId:t,targets:o.map((e=>({taskId:e.taskId})))}),a&&a()}catch(e){r&&r(e),Object(f.b)(y.f.ApprovalError,{location:"in function handleOk at src/components/approval-detail/modals/reminder-modal/index.tsx",message:JSON.stringify(e)})}finally{e.setState({isReady:!0})}else ce.a.showToast({title:Object(p.t)("PC.PickPersonHint"),icon:"info",duration:3e3})}))),Object(g.a)(this,"handleCancel",(()=>{var{onCancel:e}=this.props;e&&e()}))}componentDidUpdate(e){this.props.visible!==e.visible&&this.clearState()}render(){var e,t,{ctxId:a}=this.props;if(!a)return null;var{visible:r}=this.props,{reminderModalStore:i}=Object(c.d)(a),{checkedList:n,isReady:s}=this.state;return Object(P.jsx)(ue.a,{ctxId:a,visible:r,title:Object(p.t)("PC.ReminderTitle"),subTitle:"",okBtnDisabled:0===n.length||!s,onOk:this.handleOk,onCancel:this.handleCancel,width:"600px",children:Object(P.jsx)(o.r,{children:Object(P.jsx)(A.a,{candidateList:i.candidateList,candidateListLoading:i.candidateListLoading,checkedList:n,maxChecked:Math.min(null!==(e=null===(t=i.candidateList)||void 0===t?void 0:t.length)&&void 0!==e?e:pe,pe),showSearchBar:!1,showSelectAll:!0,onChange:this.handleCheckedListChange,selectorHeight:"300px"})})})}clearState(){this.setState({checkedList:[]})}},Object(g.a)(J,"defaultProps",{visible:!1,data:{instanceId:"",candidateList:[]},onSuccess:O.a,onFail:O.a,onCancel:O.a}),K=J))||K,he=me,be=a(474),ge=a(25),ve=a(11),je=a(7),Oe=(a(56),a(4)),fe=(X=class{constructor(){Object(ve.a)(this,"candidateListLoading",$,this),Object(g.a)(this,"candidateList",[]),Object(g.a)(this,"fetchCandidateListByDepartmentId",Object(Oe.k)(this._fetchCandidateListByDepartmentId)),Object(g.a)(this,"fetchCandidateListBySearch",Object(Oe.k)(this._fetchCandidateListBySearch)),Object(g.a)(this,"fetchChildrenByDepartmentId",Object(Oe.k)(this._fetchChildrenByDepartmentId)),Object(g.a)(this,"requestToRedirectApproval",Object(Oe.k)(this._requestToRedirectApproval))}clearCandidateList(){this.candidateList=[]}*_fetchCandidateListByDepartmentId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.candidateListLoading=!0;try{var t=yield this.fetchDepartmentChildrenByDapartmentId(e);this.candidateList=t}catch(e){m.a.error(e),Object(f.b)(y.f.ApprovalError,{location:"in function fetchCandidateListByDepartmentId at src/components/approval-detail/modals/redirect-modal/redirect-modal-store.ts",message:JSON.stringify(e)})}finally{this.candidateListLoading=!1}}*_fetchCandidateListBySearch(e){this.candidateListLoading=!0;var t={query:e,offset:0,pageSize:20};try{var a=(yield x.c.usersearchUserDepartments(t,{silent:!0})).data.entityList,r=[];a.forEach((e=>{12===e.type&&r.push({type:S.a.GROUP,id:e.id,title:e.name,showFoldButton:e.subVisible,children:null}),3===e.type&&r.push({type:S.a.PERSON,id:e.id,title:e.name,avatarUrl:e.iconLink,subTitle:e.email,children:null,hasThreeSuccessiveLeaders:e.hasThreeSuccessiveLeaders})})),this.candidateList=r}catch(e){m.a.error(e),Object(f.b)(y.f.ApprovalError,{location:"in function fetchCandidateListBySearch at src/components/approval-detail/modals/redirect-modal/redirect-modal-store.ts",message:JSON.stringify(e)})}finally{this.candidateListLoading=!1}}*_fetchChildrenByDepartmentId(e){this.candidateListLoading=!0;try{var t=yield this.fetchDepartmentChildrenByDapartmentId(e),a=this.find(this.candidateList,e);a&&(a.children=t)}catch(e){m.a.error(e),Object(f.b)(y.f.ApprovalError,{location:"in function fetchChildrenByDepartmentId at src/components/approval-detail/modals/redirect-modal/redirect-modal-store.ts",message:JSON.stringify(e)})}finally{this.candidateListLoading=!1}}find(e,t){var a=!1,r=null;return function e(i){for(var n of i){if(n.id===t){r=n,a=!0;break}if(n.children&&(e(n.children),a))break}}(e),r}fetchDepartmentChildrenByDapartmentId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(((t,a)=>{var r={departmentId:e};x.c.userqueryUsersByDepartmentId(r,{silent:!0}).then((e=>{var{infos:a}=e.data,r=[];a.forEach((e=>{0===e.userType&&r.push({type:S.a.GROUP,id:String(e.userId),title:e.userName,showFoldButton:e.subVisible,children:null}),1===e.userType&&r.push({type:S.a.PERSON,id:String(e.userId),title:e.userName,avatarUrl:e.iconLink,subTitle:e.email,children:null,hasThreeSuccessiveLeaders:e.hasThreeSuccessiveLeaders})})),t(r)})).catch((e=>{a(e)}))}))}*_requestToRedirectApproval(e){var{instanceId:t,taskId:a,transferUserId:r,comment:i,commentVersion:n}=e,o={instanceId:t,taskId:a,transferUserId:r,comment:i,type:2,commentVersion:n},{nextInstanceId:s}=yield x.c.instanceoperate(o);return{nextInstanceId:s}}},$=Object(je.a)(X.prototype,"candidateListLoading",[Oe.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(je.a)(X.prototype,"clearCandidateList",[Oe.f],Object.getOwnPropertyDescriptor(X.prototype,"clearCandidateList"),X.prototype),X),Me=(a(1328),Object(s.a)((te=class extends i.Component{constructor(e){var t;super(e),t=this,Object(g.a)(this,"customCtx",void 0),Object(g.a)(this,"candidateSelectorRef",void 0),Object(g.a)(this,"closeSelector",(()=>{this.setState({selectorVisible:!1})})),Object(g.a)(this,"cacheKey",""),Object(g.a)(this,"handleCheckedListChange",(e=>{var{checkedList:t}=e,a=t.some((e=>e.hasThreeSuccessiveLeaders));this.setState({checkedList:t,showLeaderHint:a}),this.closeSelector()})),Object(g.a)(this,"handleOk",Object(b.a)((function*(){var{data:{instanceId:e,taskId:a},onSuccess:r,onFail:i,closeCommonModalMask:n,showCommonModalMask:o}=t.props,{checkedList:s,comment:c,isLoading:l}=t.state;if(s.length>0){if(l)return;t.setState({isLoading:!0});try{o();var{nextInstanceId:d}=yield t.customCtx.redirectModalStore.requestToRedirectApproval({instanceId:e,taskId:a,transferUserId:s[0].id,comment:Object(N.d)(c),commentVersion:_.i});ne.a.delete(t.cacheKey),t.setState({isLoading:!1}),r&&r({nextInstanceId:d}),Object(f.b)("pc_mp_click",{action:"redirect",addition:Boolean(c.files.length).toString(),instanceId:e})}catch(e){t.setState({isLoading:!1}),i&&i(e),Object(f.b)(y.f.ApprovalError,{location:"in function handleOk at src/components/approval-detail/modals/redirect-modal/index.tsx",message:JSON.stringify(e)})}finally{n()}}else t.setState({isLoading:!1}),Taro.showToast({title:Object(p.t)("PC.PickTransfereeHint"),icon:"info",duration:3e3})}))),Object(g.a)(this,"handleCancel",(()=>{var{onCancel:e}=this.props,{comment:t}=this.state;Object(re.g)(t)||ne.a.setVal(this.cacheKey,t),e&&e()})),Object(g.a)(this,"handleSearchChange",Object(v.a)((e=>{e.length>0?this.customCtx.redirectModalStore.fetchCandidateListBySearch(e):this.initCandidateList()}),500)),Object(g.a)(this,"handleFoldChange",((e,t)=>{t||this.customCtx.redirectModalStore.fetchChildrenByDepartmentId(e)})),this.customCtx={redirectModalStore:new fe};var{data:{instanceId:a}}=this.props;this.cacheKey=ne.a.getKey(a,oe.b.TRANSFER),this.state={checkedList:[],comment:ne.a.getVal(this.cacheKey),isLoading:!1,selectorVisible:!1,showLeaderHint:!1}}componentDidUpdate(e){this.props.visible!==e.visible&&(this.clearState(),this.props.visible&&this.customCtx.redirectModalStore.fetchCandidateListByDepartmentId())}componentDidMount(){this.initCandidateList()}renderFooter(){var{checkedList:e}=this.state;return Object(P.jsx)(ie.a,{disabledOk:!e.length,onOk:()=>this.handleOk(),onCancel:this.handleCancel})}render(){var e=this,{ctxId:t}=this.props;if(!t)return null;var{visible:a,data:{disabledCandidateList:r},showCommonMask:i}=this.props,{checkedList:n,comment:s,selectorVisible:c,showLeaderHint:l}=this.state,{redirectModalStore:d}=this.customCtx,u=this.addDisabledInCandidateList(d.candidateList,r);return Object(P.jsx)(M.a,{ctxId:t,visible:a,title:Object(p.t)("PC.RedirectCheckTitle"),onOk:this.handleOk,onCancel:this.handleCancel,type:"custom-footer",renderFooter:Object(P.jsx)(o.r,{children:this.renderFooter()}),loading:i,children:Object(P.jsxs)(o.r,{children:[ge.d.isBytedance&&l&&Object(P.jsx)(be.a,{type:"warning",message:Object(p.t)("PreviewNodes.ConfirmClearContext"),description:Object(p.t)("PreviewNodes.ClearContextDescription"),style:{marginBottom:"16px"}}),Object(P.jsx)(o.r,{className:"candidate-wrapper",style:{marginBottom:"16px"},children:Object(P.jsx)(H,{from:"redirect-modal",addDisabledInCandidateList:function(){return e.addDisabledInCandidateList(...arguments)},disabledCandidateList:r,candidateList:u,candidateListLoading:d.candidateListLoading,checkedList:n,maxChecked:1,onChange:this.handleCheckedListChange,selectorHeight:"300px",onSearchChange:this.handleSearchChange,onFoldChange:this.handleFoldChange,ref:e=>{this.candidateSelectorRef=e},onDelete:(e,t)=>{n.splice(t,1);var a=n.some((e=>e.hasThreeSuccessiveLeaders));this.setState({checkedList:n,showLeaderHint:a})},onMaskClick:this.closeSelector,onAddClick:()=>{this.setState({selectorVisible:!0})},addButtonText:Object(p.t)("formApprovers.Add"),selectorVisible:c,onCancel:this.closeSelector,showAddButton:!n.length})}),Object(P.jsx)(ae.a,{ctxId:t,defaultValue:s,placeholder:"".concat(Object(p.t)("Operate_PlaceholderOfForwardConfirm")),onChange:e=>{this.setState({comment:e})}})]})})}addDisabledInCandidateList(e,t){return this.recurAddDisabled(e,t)}recurAddDisabled(e,t){return e.map((e=>(e=Object(j.a)(e),Object(r.a)(Object(r.a)({},e),{},{disabled:t.some((t=>e.id===t.id)),children:e.children?this.recurAddDisabled(e.children,t):null}))))}initCandidateList(){this.customCtx.redirectModalStore.fetchCandidateListByDepartmentId()}clearState(){this.candidateSelectorRef&&this.candidateSelectorRef.clearSearchContent(),this.customCtx.redirectModalStore.clearCandidateList(),this.setState({checkedList:[],comment:ne.a.getVal(this.cacheKey)})}},Object(g.a)(te,"defaultProps",{visible:!1,data:{instanceId:"",taskId:"",requester:"",approvalName:"",disabledCandidateList:[]},onSuccess:O.a,onFail:O.a,onCancel:O.a}),ee=te))||ee),_e=Me,ye=a(153),De=a(8),Ne=a.n(De),Ae=a(218),Te=a(36);a(1329);class Ie extends i.Component{constructor(){super(...arguments),Object(g.a)(this,"state",{showAllCheckbox:!1})}get showedList(){var{showAllCheckbox:e}=this.state,{checkboxList:t}=this.props;return e?t||[]:(t||[]).slice(0,3)}render(){var{showAllCheckbox:e}=this.state,{checkboxList:t,itemStyle:a,isMulti:r}=this.props;return Object(P.jsxs)(o.r,{children:[Object(P.jsx)(o.e,{className:"approval-check-group",children:this.showedList.map(((e,t)=>{var{value:i,disabled:n,checked:s,color:c="#4575f6",label:l="",avatarUrl:d=null,approverList:u,userId:p,nodeName:m}=e;return Object(P.jsxs)(o.r,{className:Ne()("approval-check-group-item","outer-item-".concat(t)),style:a,children:[Object(P.jsxs)(o.r,{className:"flex-box",children:[Object(P.jsx)(Ae.a,{disabled:n,checked:s,color:c,value:i,type:r?Ae.b.square:Ae.b.radio,onChange:()=>this.onCheckBoxItemChange(t)},i),d&&(p?Object(P.jsx)(o.g,{className:"approval-check-group-item-avatar",src:d,onClick:e=>this.handleOuterAvatarClick(t,e)}):Object(P.jsx)(o.g,{className:"approval-check-group-item-avatar",src:d})),Object(P.jsxs)(o.r,{children:[Object(P.jsx)(o.r,{className:"approval-check-group-item-label",children:l}),Object(P.jsx)(o.r,{className:"approval-check-group-item-type",children:m})]})]}),u&&u.length>1&&Object(P.jsx)(o.r,{className:"approval-check-group-item-approvers",children:u.map(((e,a)=>Object(P.jsxs)(o.r,{className:Ne()("approver-item","inner-item-".concat(a)),children:[Object(P.jsx)(o.g,{className:"approver-avatar",src:e.avatar,onClick:e=>this.handleInnerAvatarClick(t,a,e)}),Object(P.jsx)(o.p,{className:"name",children:e.name})]},e.id)))})]},i)}))}),!e&&t.length>3&&Object(P.jsxs)(o.r,{className:"rollback-checkbox-show-all",onClick:()=>{this.setState({showAllCheckbox:!0})},children:[Object(p.t)("Rollback.CheckboxMore",{num:t.length-3}),Object(P.jsx)(o.r,{className:"iconfont icon-arrow-down-copy"})]})]})}onCheckBoxItemChange(e){var{checkboxList:t,isMulti:a,onChange:r}=this.props;a?t[e].checked=!t[e].checked:(t.forEach((e=>e.checked=!1)),t[e].checked=!0),r(t)}handleOuterAvatarClick(e,t){var{checkboxList:{[e]:{userId:a}}}=this.props;a&&Object(Te.q)(a,t,this.$scope,".approval-check-group-item.outer-item-".concat(e," .approval-check-group-item-avatar"))}handleInnerAvatarClick(e,t,a){var{checkboxList:{[e]:{approverList:r}}}=this.props;r&&Object(Te.q)(r[t].id,a,this.$scope,".approval-check-group-item.outer-item-".concat(e," .approver-item.inner-item-").concat(t," .approver-avatar"))}}a(1330);var Ce={[u.m.ContinuousRollback]:Object(p.t)("approval-mp_LocateStepReApprove_toast","被选中节点的人员处理后,将会从该节点后重新审批"),[u.m.SpecifyRollback]:Object(p.t)("Rollback.RollbackWillContinueWithYou","被选中节点的人员处理后,将会提交给你继续审批")};class xe extends i.Component{constructor(){super(...arguments),Object(g.a)(this,"cacheKey",ne.a.getKey(this.props.instanceId,oe.b.ROLLBACK)),Object(g.a)(this,"handleCheckBoxChange",(e=>{this.setState({rollbackApprovalList:e})})),Object(g.a)(this,"submit",(()=>{var{onSubmit:e,data:{isReasonTextRequired:t},rollbackType:a}=this.props,{rollbackReasonValue:r,rollbackApprovalList:i,informOwner:n}=this.state,o=i.filter((e=>{var{checked:t}=e;return t}));Object(f.b)("pc_mp_rollback",{ia_all:o.length===i.length?0:1,isSelectMutli:1===o.length?"single":o.length===i.length?"all":"multi",isSidebar:0,isMobile:0}),t&&Object(f.b)("comment_required",{isAtListPage:"false",isBatchApprove:"false",type:"rollback"});var s=Object(N.d)(r),c=JSON.stringify({informOwner:n});ne.a.delete(this.cacheKey),a===u.m.ContinuousRollback?e({reason:s,targetTaskDefKey:i.filter((e=>e.checked)).map((e=>e.value))[0],modifyType:"6",extra:c}):e({reason:s,taskDefKeyList:i.filter((e=>e.checked)).map((e=>e.value)),modifyType:"5",extra:c})})),Object(g.a)(this,"cancel",(()=>{var{toggleActive:e,onCancel:t}=this.props,{rollbackReasonValue:a}=this.state;ne.a.setVal(this.cacheKey,a),e(),t()})),Object(g.a)(this,"generateTypeCheckboxList",(()=>{var{checkboxList:e}=this.props;if(!e||0===e.length)return null;if(this.state.isSelectAll){for(var t,a=0,r=e.length-1;a<r;a++){var i=e[a];if(i.checked){t=i;break}}if(!t)return;for(var n=0,o=e.length-1;n<o;n++){var s=e[o-n];if(s.checked=!0,s.value===t.value)break}}return e.slice(0,-1)})),Object(g.a)(this,"state",{rollbackReasonValue:ne.a.getVal(this.cacheKey),rollbackApprovalList:[],isSelectAll:!1,informOwner:1})}render(){var{rollbackReasonValue:e,rollbackApprovalList:t}=this.state,{checkboxList:a,ctxId:r,data:{isReasonTextRequired:i},rollbackType:n}=this.props,s=this.generateTypeCheckboxList()||a.slice(0,-1),c=t.filter((e=>e.checked)),l=Object(p.t)("approval-mp_ReturnReason_title")+Object(p.t)("Brackets",{innerText:i?Object(p.t)("Required"):Object(p.t)("Optional")}),d=!(null!=c&&c.length)||i&&!(null!=e&&e.text.trim());return Object(P.jsxs)(o.r,{className:"rollback-input",children:[Object(P.jsx)(o.r,{className:"title",children:Object(p.t)("Rollback.RollbackTo")}),Object(P.jsx)(o.r,{className:"subtitle",children:Ce[n]}),Object(P.jsxs)(o.r,{className:"scroll-content",children:[Object(P.jsx)(Ie,{onChange:this.handleCheckBoxChange,checkboxList:s,itemStyle:{marginTop:"14px"},isMulti:n!==u.m.ContinuousRollback}),Object(P.jsx)(o.r,{className:"rollback-input-reason-textarea",children:Object(P.jsx)(ae.a,{defaultValue:e,onChange:e=>{this.setState({rollbackReasonValue:e})},ctxId:r,placeholder:l,placeholderStyle:"color:#8F959E"})})]}),Object(P.jsx)(o.r,{className:"rollback-button-group",children:Object(P.jsx)(ie.a,{onOk:()=>{c&&c.length&&this.submit()},onCancel:this.cancel,disabledOk:d})})]})}}function Se(e){var{ctxId:t,visible:a,checkboxList:r,instanceId:i,onCancel:n,onSuccess:o,data:s,rollbackType:c}=e;return Object(P.jsx)(ye.a,{visible:a,children:Object(P.jsx)(xe,{checkboxList:r,toggleActive:O.a,onCancel:()=>n&&n(),onSubmit:function(){return o&&o(...arguments)},instanceId:i,ctxId:t,data:s,rollbackType:c})})}Object(g.a)(xe,"defaultProps",{checkboxList:[]}),Se.defaultProps={data:{ctxId:"",title:"",instanceId:"",actionType:""}},a(1331);var we,Le,Ee,ke,ze="approval-radio-group",Re=n.a.memo((e=>{var{name:t="",value:a="",style:r={},itemStyle:i={},radioList:n=[],onChange:s=O.a}=e;return Object(P.jsx)(o.l,{name:t,onChange:s,style:r,children:n.map((e=>Object(P.jsx)(o.r,{className:"".concat(ze,"-item"),style:i,children:Object(P.jsxs)(o.i,{children:[Object(P.jsx)(o.k,{value:e.value,disabled:e.disabled,checked:a===e.value,color:e.color||"#4575f6"}),Object(P.jsx)(o.r,{className:"".concat(ze,"-item-label"),children:e.label})]})},e.value)))})})),Pe=a(685),Ue=a(250);(function(e){e.ADD_PARALLEL_APPROVER="3",e.ADD_POST_APPROVER="2",e.ADD_PRE_APPROVER="1"})(we||(we={})),function(e){e.AND_SIGN="2",e.OR_SIGN="1"}(Le||(Le={}));var Be,Fe,Ye,Qe,Ge,We,Ve,He,Ze=(Ee=class{constructor(){Object(ve.a)(this,"candidateListLoading",ke,this),Object(g.a)(this,"candidateList",[]),Object(g.a)(this,"fetchCandidateListByDepartmentId",Object(Oe.k)(this._fetchCandidateListByDepartmentId)),Object(g.a)(this,"fetchCandidateListBySearch",Object(Oe.k)(this._fetchCandidateListBySearch)),Object(g.a)(this,"fetchChildrenByDepartmentId",Object(Oe.k)(this._fetchChildrenByDepartmentId)),Object(g.a)(this,"requestToAddApproverApproval",Object(Oe.k)(this._requestToAddApproverApproval)),Object(g.a)(this,"addApproverErrorHandlers",{10112:()=>{Ue.a.warn(Object(p.t)("Error.CannotModifyTaskGenByAddApprover"))}})}clearCandidateList(){this.candidateList=[]}*_fetchCandidateListByDepartmentId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.candidateListLoading=!0;try{var t=yield this.fetchDepartmentChildrenByDapartmentId(e);this.candidateList=t}catch(e){Object(f.b)(y.f.ApprovalError,{location:"in function fetchCandidateListByDepartmentId at src/components/approval-detail/modals/add-approver-modal/add-approver-modal-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{this.candidateListLoading=!1}}*_fetchCandidateListBySearch(e){this.candidateListLoading=!0;var t={query:e,offset:0,pageSize:20};try{var a=(yield x.c.usersearchUserDepartments(t,{silent:!0})).data.entityList,r=[];a.forEach((e=>{12===e.type&&r.push({type:S.a.GROUP,id:e.id,title:e.name,showFoldButton:e.subVisible,children:null}),3===e.type&&r.push({type:S.a.PERSON,id:e.id,title:e.name,avatarUrl:e.iconLink,subTitle:e.email,children:null,hasThreeSuccessiveLeaders:e.hasThreeSuccessiveLeaders})})),this.candidateList=r}catch(e){Object(f.b)(y.f.ApprovalError,{location:"in function fetchCandidateListBySearch at src/components/approval-detail/modals/add-approver-modal/add-approver-modal-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{this.candidateListLoading=!1}}*_fetchChildrenByDepartmentId(e){this.candidateListLoading=!0;try{var t=yield this.fetchDepartmentChildrenByDapartmentId(e),a=this.find(this.candidateList,e);a&&(a.children=t)}catch(e){Object(f.b)(y.f.ApprovalError,{location:"in function fetchChildrenByDepartmentId at src/components/approval-detail/modals/add-approver-modal/add-approver-modal-store.ts",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),m.a.error(e)}finally{this.candidateListLoading=!1}}find(e,t){var a=!1,r=null;return function e(i){for(var n of i){if(n.id===t){r=n,a=!0;break}if(n.children&&(e(n.children),a))break}}(e),r}fetchDepartmentChildrenByDapartmentId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(((t,a)=>{var r={departmentId:e};x.c.userqueryUsersByDepartmentId(r,{silent:!0}).then((e=>{var{infos:a}=e.data,r=[];a.forEach((e=>{0===e.userType&&r.push({type:S.a.GROUP,id:String(e.userId),title:e.userName,showFoldButton:e.subVisible,children:null}),1===e.userType&&r.push({type:S.a.PERSON,id:String(e.userId),title:e.userName,avatarUrl:e.iconLink,subTitle:e.email,children:null,hasThreeSuccessiveLeaders:e.hasThreeSuccessiveLeaders})})),t(r)})).catch((e=>{a(e)}))}))}*_requestToAddApproverApproval(e){var{instanceId:t,taskId:a,addApproverType:r,approvalType:i,userIdList:n,reason:o,formFieldList:s,signatureKey:c,isReuseSignature:l,signatureUrl:d}=e,u={instanceId:t,taskId:a,type:"4",modifyType:Number(r),userIdList:n,reason:o,commentVersion:_.i,signatureKey:c,isReuseSignature:l,signatureUrl:d};return Object(f.b)("pc_mp_add_approver",{add_approver_type:r}),r!==we.ADD_PRE_APPROVER&&r!==we.ADD_POST_APPROVER||(u.approvalType=i),r===we.ADD_POST_APPROVER&&(u.formFieldList=s),{nextInstanceId:(yield x.c.instanceoperate(u,{errorHandlers:this.addApproverErrorHandlers})).nextInstanceId}}},ke=Object(je.a)(Ee.prototype,"candidateListLoading",[Oe.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(je.a)(Ee.prototype,"clearCandidateList",[Oe.f],Object.getOwnPropertyDescriptor(Ee.prototype,"clearCandidateList"),Ee.prototype),Ee),qe=(a(1332),a(397)),Ke=Object(s.a)((Fe=class extends i.Component{constructor(e){var t;super(e),t=this,Object(g.a)(this,"customCtx",void 0),Object(g.a)(this,"cacheKey",""),Object(g.a)(this,"candidateSelectorRef",void 0),Object(g.a)(this,"closeSelector",(()=>{this.setState({selectorVisible:!1})})),Object(g.a)(this,"handleCheckedListChange",(e=>{var{checkedList:t}=e,a=t.some((e=>e.hasThreeSuccessiveLeaders));this.setState({checkedList:t,selectorVisible:!1,showLeaderHint:a})})),Object(g.a)(this,"handleAddApprovalTypeChange",(e=>{this.setState({addApproverType:e.detail.value})})),Object(g.a)(this,"handleApprovalTypeChange",(e=>{this.setState({approvalType:e.detail.value})})),Object(g.a)(this,"handleOk",Object(b.a)((function*(){var{data:{instanceId:e,taskId:a,isReasonTextRequired:i,signatureData:n},onSuccess:o,onFail:s,ctxId:l,showCommonModalMask:d,closeCommonModalMask:u}=t.props,{configurableFormStore:m}=Object(c.d)(l),{checkedList:h,addApproverType:b,approvalType:g,editorValue:v}=t.state;if(t.validate()){if(t.state.isLoading)return;t.setState({isLoading:!0});try{var j,O;d();var M={};b===we.ADD_POST_APPROVER&&(M={signatureKey:v.signatureKey,isReuseSignature:v.isReuseSignature,signatureUrl:v.signatureUrl});var{nextInstanceId:D}=yield t.customCtx.addApproverModalStore.requestToAddApproverApproval(Object(r.a)({instanceId:e,taskId:a,addApproverType:b,approvalType:g,userIdList:h.map((e=>e.id)),reason:Object(N.d)(v),formFieldList:null===(j=m.getOutputParams())||void 0===j?void 0:j.form,commentVersion:_.i},M));ne.a.delete(t.cacheKey),o&&(t.setState({isLoading:!1}),b===we.ADD_PARALLEL_APPROVER?o({jumpToNext:!1}):o({jumpToNext:!0,nextInstanceId:D})),Object(f.b)("pc_mp_click",{action:"addapprover",addition:Boolean(v.files.length).toString(),instanceId:e}),i&&b===we.ADD_POST_APPROVER&&Object(f.b)("comment_required",{isAtListPage:"false",isBatchApprove:"false",type:"addPostApprover"}),null!=n&&null!==(O=n.signatureConfig)&&void 0!==O&&O.requireSignature&&Object(Pe.a)(t.props.data,v)}catch(e){t.setState({isLoading:!1}),s&&s(e),Object(f.b)(y.f.ApprovalError,{location:"in function handleOk at src/components/approval-detail/modals/add-approver-modal/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))})}finally{u()}}else tt.showToast({title:Object(p.t)("PC.PickPersonHint"),icon:"info",duration:3e3})}))),Object(g.a)(this,"handleCancel",(()=>{var{onCancel:e}=this.props,{editorValue:t}=this.state;Object(re.g)(t)||ne.a.setVal(this.cacheKey,t),e&&e()})),Object(g.a)(this,"handleSearchChange",Object(v.a)((e=>{e.length>0?this.customCtx.addApproverModalStore.fetchCandidateListBySearch(e):this.initCandidateList()}),500)),Object(g.a)(this,"handleFoldChange",((e,t)=>{t||this.customCtx.addApproverModalStore.fetchChildrenByDepartmentId(e)})),this.customCtx={addApproverModalStore:new Ze};var{data:{instanceId:a},permissions:i}=this.props;this.cacheKey=ne.a.getKey(a,oe.b.ADD_APPROVER),this.state={checkedList:[],addApproverType:null!=i&&i.isBlockApprovalInstance?we.ADD_PARALLEL_APPROVER:we.ADD_PRE_APPROVER,approvalType:Le.AND_SIGN,editorValue:ne.a.getVal(this.cacheKey),isLoading:!1,selectorVisible:!1,showLeaderHint:!1}}componentDidUpdate(e){this.props.visible!==e.visible&&(this.clearState(),this.props.visible&&this.customCtx.addApproverModalStore.fetchCandidateListByDepartmentId())}componentDidMount(){this.initCandidateList()}checkSignatureParams(){var e,{editorValue:t}=this.state,a={mustSignatureList:[we.ADD_POST_APPROVER],type:this.state.addApproverType};return Object(qe.a)(null===(e=this.props.data)||void 0===e?void 0:e.signatureData,t,a)}renderFooter(){var{checkedList:e,editorValue:t,addApproverType:a}=this.state,{isReasonTextRequired:r}=this.props.data,i=!this.checkSignatureParams(),n=a===we.ADD_POST_APPROVER&&r&&!(null!=t&&t.text),o=!e.length||i||n;return Object(P.jsx)(ie.a,{disabledOk:o,onOk:this.handleOk,onCancel:this.handleCancel})}render(){var e,t=this,{ctxId:a}=this.props;if(!a)return null;var{visible:i,data:{disabledCandidateList:n,taskId:s,isReasonTextRequired:c},permissions:l,showCommonMask:d}=this.props,{checkedList:u,addApproverType:m,approvalType:h,editorValue:b,selectorVisible:g,showLeaderHint:v}=this.state,{addApproverModalStore:j}=this.customCtx,O=this.addDisabledInCandidateList(j.candidateList,n),f={mustSignatureList:[we.ADD_POST_APPROVER],type:this.state.addApproverType},_=Object(qe.b)(f,null===(e=this.props.data)||void 0===e?void 0:e.signatureData),y=[{value:we.ADD_PRE_APPROVER,label:Object(p.t)("BeforeSigning")},{value:we.ADD_PARALLEL_APPROVER,label:Object(p.t)("CurrentSigning")}];return l.addPostApprover&&y.push({value:we.ADD_POST_APPROVER,label:Object(p.t)("AfterSigning")}),null!=l&&l.isBlockApprovalInstance&&(y=[{value:we.ADD_PARALLEL_APPROVER,label:Object(p.t)("CurrentSigning")}]),Object(P.jsx)(M.a,{ctxId:a,visible:i,title:Object(p.t)("PC.AddApproverTitle"),onCancel:this.handleCancel,type:"custom-footer",renderFooter:Object(P.jsx)(o.r,{children:this.renderFooter()}),loading:d,children:Object(P.jsxs)(o.r,{children:[ge.d.isBytedance&&v&&Object(P.jsx)(be.a,{type:"warning",message:Object(p.t)("PreviewNodes.ConfirmClearContext"),description:Object(p.t)("PreviewNodes.ClearContextDescription"),style:{marginBottom:"16px"}}),Object(P.jsx)(o.r,{className:"candidate-wrapper",children:Object(P.jsx)(H,{from:"add-approver-modal",addDisabledInCandidateList:function(){return t.addDisabledInCandidateList(...arguments)},disabledCandidateList:n,candidateList:O,candidateListLoading:j.candidateListLoading,checkedList:u,maxChecked:1/0,onChange:this.handleCheckedListChange,selectorHeight:"300px",onSearchChange:this.handleSearchChange,onFoldChange:this.handleFoldChange,ref:e=>{this.candidateSelectorRef=e},onDelete:(e,t)=>{u.splice(t,1);var a=u.some((e=>e.hasThreeSuccessiveLeaders));this.setState({checkedList:u,showLeaderHint:a})},onAddClick:()=>{this.setState({selectorVisible:!0})},onCancel:this.closeSelector,onMaskClick:this.closeSelector,selectorVisible:g,addButtonText:Object(p.t)("formApprovers.Add")})}),Object(P.jsxs)(o.r,{className:"form-item",children:[Object(P.jsxs)(o.r,{className:"form-item-label",children:[Object(p.t)("AddTask.AddingMethod"),""]}),Object(P.jsx)(o.r,{className:"form-item-value",children:Object(P.jsx)(Re,{name:"add-approver-type",value:m,radioList:y,onChange:this.handleAddApprovalTypeChange,style:{display:"flex",flexWrap:"wrap"},itemStyle:{marginRight:"24px"}})})]}),Object(P.jsx)(T.a,{hidden:m!==we.ADD_POST_APPROVER,children:Object(P.jsx)(o.r,{className:"tips",children:Object(p.t)("AddTask.AddPostApproverHint")})}),Object(P.jsx)(T.a,{hidden:m===we.ADD_PARALLEL_APPROVER||u.length<=1,children:Object(P.jsxs)(o.r,{className:"form-item",children:[Object(P.jsxs)(o.r,{className:"form-item-label",children:[Object(p.t)("AddTask.ApprovalMethod"),""]}),Object(P.jsx)(o.r,{className:"form-item-value",children:Object(P.jsx)(Re,{name:"sign-type",value:h,radioList:[{value:Le.AND_SIGN,label:Object(p.t)("Detail.AndSign")},{value:Le.OR_SIGN,label:Object(p.t)("Detail.OrSign")}],onChange:this.handleApprovalTypeChange,style:{display:"flex"},itemStyle:{marginRight:"24px"}})})]})}),Object(P.jsx)(ae.a,{ctxId:a,defaultValue:b,taskId:s,signatureData:_,placeholder:c&&m===we.ADD_POST_APPROVER?"".concat(Object(p.t)("AddTask.AddReasonNew")).concat(Object(p.t)("Brackets",{innerText:Object(p.t)("Required")})):Object(p.t)("AddTask.AddReason"),onChange:e=>{this.setState({editorValue:Object(r.a)(Object(r.a)({},b),e)})}})]})})}addDisabledInCandidateList(e,t){return this.recurAddDisabled(e,t)}recurAddDisabled(e,t){return e.map((e=>(e=Object(j.a)(e),Object(r.a)(Object(r.a)({},e),{},{disabled:t.some((t=>e.id===t.id)),children:e.children?this.recurAddDisabled(e.children,t):null}))))}validate(){var{checkedList:e}=this.state;return!(!e||0===e.length)&&!!this.checkSignatureParams()}initCandidateList(){this.customCtx.addApproverModalStore.fetchCandidateListByDepartmentId()}clearState(){this.candidateSelectorRef&&this.candidateSelectorRef.clearSearchContent(),this.customCtx.addApproverModalStore.clearCandidateList(),this.setState({checkedList:[],editorValue:ne.a.getVal(this.cacheKey)})}},Object(g.a)(Fe,"defaultProps",{visible:!1,data:{instanceId:"",taskId:"",disabledCandidateList:[]},permissions:{addPostApprover:!1},onSuccess:O.a,onFail:O.a,onCancel:O.a}),Be=Fe))||Be,Je=Ke,Xe=(a(1333),Object(s.a)((Qe=class extends i.Component{constructor(e){var t;super(e),t=this,Object(g.a)(this,"cacheKey",""),Object(g.a)(this,"closeSelector",(()=>{this.setState({selectorVisible:!1})})),Object(g.a)(this,"handleCheckedListChange",(e=>{var{checkedList:t}=e;this.setState({checkedList:t,selectorVisible:!1})})),Object(g.a)(this,"handleOk",Object(b.a)((function*(){var{data:{instanceId:e,taskId:a},onSuccess:r,onFail:i,ctxId:n,showCommonModalMask:o,closeCommonModalMask:s}=t.props,{checkedList:c,reason:l,isLoading:d}=t.state;if(c.length>0){if(d)return;t.setState({isLoading:!0});try{o(),yield t.requestToDeleteApprover({instanceId:e,taskId:a,reason:Object(N.d)(l),userIdList:c.map((e=>e.id))}),ne.a.delete(t.cacheKey),t.setState({isLoading:!1}),r&&r(),Object(f.b)("pc_mp_click",{action:"delapprover",addition:Boolean(l.files.length).toString(),instanceId:e})}catch(e){t.setState({isLoading:!1}),i&&i(e),Object(f.b)(y.f.ApprovalError,{location:"in function handleOk at src/components/approval-detail/modals/delete-appprover-modal/index.tsx",message:JSON.stringify(e)})}finally{s()}}else ce.a.showToast({title:Object(p.t)("PC.PickPersonHint"),icon:"info",duration:3e3})}))),Object(g.a)(this,"handleCancel",(()=>{var{onCancel:e}=this.props,{reason:t}=this.state;Object(re.g)(t)||ne.a.setVal(this.cacheKey,t),e&&e()}));var{data:{instanceId:a}}=this.props;this.cacheKey=ne.a.getKey(a,oe.b.DELETE_APPROVER),this.state={checkedList:[],reason:ne.a.getVal(this.cacheKey),isLoading:!1,selectorVisible:!1}}componentDidUpdate(e){this.props.visible!==e.visible&&this.clearState()}renderFooter(){var{checkedList:e}=this.state;return Object(P.jsx)(ie.a,{disabledOk:!e.length,onOk:this.handleOk,onCancel:this.handleCancel})}render(){var{ctxId:e}=this.props;if(!e)return null;var{visible:t,data:{candidateList:a},showCommonMask:r}=this.props,{checkedList:i,reason:n,selectorVisible:s}=this.state;return Object(P.jsx)(M.a,{ctxId:e,visible:t,title:Object(p.t)("PC.DelApproverCheckTitle"),onCancel:this.handleCancel,type:"custom-footer",renderFooter:Object(P.jsx)(o.r,{children:this.renderFooter()}),loading:r,children:Object(P.jsxs)(o.r,{children:[Object(P.jsx)(o.r,{style:{marginBottom:"24px"},children:Object(P.jsx)(H,{from:"delete-appprover-modal",candidateList:a,checkedList:i,maxChecked:1/0,showSearchBar:!1,showSelectedCount:!0,showSelectAll:!0,onChange:this.handleCheckedListChange,selectorHeight:"300px",selectorVisible:s,onAddClick:()=>{this.setState({selectorVisible:!0})},onMaskClick:this.closeSelector,onDelete:(e,t)=>{i.splice(t,1),this.setState({checkedList:i})},addButtonText:Object(p.t)("formApprovers.Add"),onCancel:this.closeSelector})}),Object(P.jsx)(ae.a,{ctxId:e,defaultValue:n,placeholder:"".concat(Object(p.t)("approvalForm.pleaseFill"),"").concat(Object(p.t)("Optional"),""),onChange:e=>{this.setState({reason:e})}})]})})}requestToDeleteApprover(e){var{instanceId:t,taskId:a,reason:r,userIdList:i}=e;return new Promise(function(){var e=Object(b.a)((function*(e,n){var o={instanceId:t,taskId:a,reason:r,userIdList:i,modifyType:"4",type:"4",commentVersion:_.i};try{yield x.c.instanceoperate(o),e(void 0)}catch(e){n(e),e.message&&tt.showToast({title:e.message,icon:"error",duration:3e3}),Object(f.b)(y.f.ApprovalError,{location:"in function requestToDeleteApprover at src/components/approval-detail/modals/delete-appprover-modal/index.tsx",message:JSON.stringify(e)})}}));return function(t,a){return e.apply(this,arguments)}}())}clearState(){this.setState({checkedList:[],reason:ne.a.getVal(this.cacheKey)})}},Object(g.a)(Qe,"defaultProps",{visible:!1,data:{instanceId:"",taskId:"",candidateList:[]},onSuccess:O.a,onFail:O.a,onCancel:O.a}),Ye=Qe))||Ye),$e=Xe,et=a(47),at=(a(1334),{[et.k.LEAVE]:"rgb(51, 112 ,255)",[et.k.REST]:"-webkit-repeating-linear-gradient(-25deg,#BBBFC4 0px,#BBBFC4 2px,#EFF0F1 2px,#EFF0F1 4px);"}),rt=n.a.memo((e=>{var{segments:t=[]}=e;return Object(P.jsx)(o.r,{className:"leave-duration-pragram",children:Object(P.jsx)(o.r,{className:"main-cylinder",children:t.map(((e,t)=>{var a={left:"".concat(e.start,"%"),right:"".concat(100-e.end,"%"),background:at[e.type]};return Object(P.jsx)(o.r,{style:a,className:"segment"},t)}))})})}));a(1335);class it extends i.Component{constructor(){super(...arguments),Object(g.a)(this,"close",(()=>{var{ctxId:e}=this.props,{detailModalStore:t}=Object(c.d)(e);t.onLeaveDetailModalCancel()}))}render(){var{ctxId:e}=this.props;if(!e)return null;var{detailModalStore:t}=Object(c.d)(e),a=t.leaveDetailModalData&&t.leaveDetailModalData[0]&&1!==t.leaveDetailModalData[0].unit,r=t.leaveDetailModalData&&t.leaveDetailModalData[0]&&t.leaveDetailModalData[0].leaveUnit,i=a?"LeaveGroup.DurationTitleByDays":"LeaveGroup.DurationTitleByHours",n=a?"LeaveGroup.BalanceUnitDay":"LeaveGroup.BalanceUnitHour",s=t.leaveDetailModalData&&t.leaveDetailModalData[0]&&t.leaveDetailModalData[0].leaveQuota;return Object(P.jsx)(ue.a,{visible:!0,ctxId:e,type:"custom-footer",title:"",width:"420px",subTitle:"",children:Object(P.jsxs)(o.r,{className:"leave-duration-detail-card",children:[Object(P.jsx)(o.r,{className:"close-modal",onClick:this.close,children:Object(P.jsx)(o.r,{className:"close-modal-icon",children:"+"})}),Object(P.jsxs)(o.r,{className:"leave-duration-detail-card-header",children:[Object(P.jsx)(o.r,{className:"leave-duration-detail-card-title",children:Object(p.t)(i,{count:s})}),Object(P.jsx)(o.r,{className:"leave-duration-detail-card-desc",children:"MINUTE"!==(null==r?void 0:r.value)&&Object(p.t)("LeaveGroup.DurationDesc",{unit:Object(p.t)(n)})})]}),Object(P.jsx)(o.r,{className:"leave-duration-detail-card-content",children:t.leaveDetailModalData.map((e=>{var t=""===e.data.text?"leave-duration-detail-card-item-desc leave-duration-detail-card-item-desc-rest":"leave-duration-detail-card-item-desc";return Object(P.jsxs)(o.r,{className:"leave-duration-detail-card-item",children:[Object(P.jsx)(o.r,{className:"leave-duration-detail-card-item-title",children:e.title}),Object(P.jsxs)(o.r,{className:t,children:[e.data.subTitle,a?"":e.data.text]}),Object(P.jsx)(o.r,{className:"leave-duration-detail-card-item-program",children:Object(P.jsx)(rt,{segments:e.data.segments})}),Object(P.jsxs)(o.r,{className:"leave-duration-detail-card-item-interval",children:[Object(P.jsx)(o.r,{className:"leave-duration-detail-card-item-start-time",children:e.data.startText}),Object(P.jsx)(o.r,{className:"leave-duration-detail-card-item-end-time",children:e.data.endText})]})]},Math.random())}))})]})})}}Object(g.a)(it,"defaultProps",{ctxId:""});var nt,ot,st,ct,lt=(Ge=class{constructor(){Object(ve.a)(this,"candidateListLoading",We,this),Object(ve.a)(this,"candidateList",Ve,this),Object(ve.a)(this,"oriCandidateList",He,this)}clearCandidateList(){this.candidateList=[]}find(e,t){var a=!1,r=null;return function e(i){for(var n of i){if(n.id===t){r=n,a=!0;break}if(n.children&&(e(n.children),a))break}}(e),r}},We=Object(je.a)(Ge.prototype,"candidateListLoading",[Oe.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ve=Object(je.a)(Ge.prototype,"candidateList",[Oe.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),He=Object(je.a)(Ge.prototype,"oriCandidateList",[Oe.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(je.a)(Ge.prototype,"clearCandidateList",[Oe.f],Object.getOwnPropertyDescriptor(Ge.prototype,"clearCandidateList"),Ge.prototype),Ge),dt={51:Object(p.t)("Role_Requester"),52:Object(p.t)("Role_Approver"),53:Object(p.t)("PC.CcPerson"),55:Object(p.t)("Role_SubmitterDelgate"),56:Object(p.t)("timeline.node.handler")},ut={51:"color: #078372;background: #D5F6F2;",52:"color: #0c296e;background: #E1EAFF;",53:"color: #2EA121;background: #D9F5D6;",55:"color: #078372;background: #D5F6F2;",56:"color: #078372;background: #D5F6F2;"},pt=(nt=class extends lt{constructor(){super(...arguments),Object(g.a)(this,"initCandidateList",Object(Oe.k)(this._initCandidateList))}getMemberByQuery(e){return Object(b.a)((function*(){return(yield x.c.instanceuserSearch({instanceId:e})).data.entityList||[]}))()}formatSearchResult(e){var t=[];return e&&e.forEach&&e.forEach((e=>{t.push({type:S.a.PERSON,id:e.id,title:e.name,avatarUrl:e.iconLink,subTitle:e.departmentName,children:null,tagName:dt[Number(e.type)],tagStyle:ut[Number(e.type)]})})),t}*_initCandidateList(e){this.candidateListLoading=!0;try{var t=yield this.getMemberByQuery(e);this.candidateList=this.formatSearchResult(t),this.oriCandidateList=this.candidateList}catch(e){m.a.error(e),Object(f.b)(y.f.ApprovalError,{location:"in function initCandidateList at src/components/approval-detail/modals/share-modal/share-modal-store.ts",message:JSON.stringify(e)})}finally{this.candidateListLoading=!1}}search(e){this.candidateList=this.oriCandidateList.filter((t=>(m.a.error(t),t.title.includes(e))))}},Object(je.a)(nt.prototype,"search",[Oe.f],Object.getOwnPropertyDescriptor(nt.prototype,"search"),nt.prototype),nt),mt=(a(1336),Object(s.a)((st=class extends i.Component{constructor(e){super(e),Object(g.a)(this,"customCtx",void 0),Object(g.a)(this,"candidateSelectorRef",void 0),Object(g.a)(this,"handleCheckedListChange",(e=>{var{checkedList:t}=e;this.setState({checkedList:t}),this.props.onSuccess(t)})),Object(g.a)(this,"handleCancel",(()=>{var{onCancel:e}=this.props;e&&e()})),Object(g.a)(this,"handleSearchChange",Object(v.a)((e=>{0===e.length?this.initCandidateList():this.customCtx.shareModalStore.search(e)}),500)),this.customCtx={shareModalStore:new pt},this.state={checkedList:[]}}componentDidUpdate(e){this.props.visible!==e.visible&&(this.clearState(),this.props.visible&&this.initCandidateList())}componentDidMount(){this.initCandidateList()}render(){var{ctxId:e}=this.props;if(!e)return null;var{visible:t,data:{disabledCandidateList:a}}=this.props,{checkedList:r}=this.state,{shareModalStore:i}=this.customCtx,n=this.addDisabledInCandidateList(i.candidateList,a);return Object(P.jsx)(o.r,{className:"share-modal-wrapper",children:Object(P.jsx)(H,{title:Object(p.t)("Detail_TransmitButton"),titleDesc:Object(p.t)("Transmit_RelevanceHint"),candidateList:n,noSelectedDisabled:!0,candidateListLoading:i.candidateListLoading,checkedList:r,style:{width:"600px",padding:"20px 28px"},onChange:this.handleCheckedListChange,selectorHeight:"300px",showAddButton:!1,onSearchChange:this.handleSearchChange,onFoldChange:this.handleFoldChange,ref:e=>{this.candidateSelectorRef=e},addButtonText:Object(p.t)("formApprovers.Add"),onDelete:(e,t)=>{r.splice(t,1),this.setState({checkedList:r})},onCancel:this.handleCancel,onMaskClick:this.handleCancel,selectorVisible:t})})}addDisabledInCandidateList(e,t){return e.map((e=>(e=Object(j.a)(e),Object(r.a)({},e))))}initCandidateList(){var{ctxId:e}=this.props,{configurableFormStore:t}=Object(c.d)(e);t&&t.instanceInfo&&this.customCtx.shareModalStore.initCandidateList(t.instanceInfo.instanceId)}clearState(){this.candidateSelectorRef&&this.candidateSelectorRef.clearSearchContent(),this.customCtx.shareModalStore.clearCandidateList(),this.setState({checkedList:[]})}},Object(g.a)(st,"defaultProps",{visible:!1,data:{instanceId:"",taskId:"",requester:"",approvalName:"",disabledCandidateList:[]},onSuccess:O.a,onFail:O.a,onCancel:O.a}),ot=st))||ot),ht=a(233),bt=a(162),gt=a(183);function vt(e){var{visible:t,ctxId:a,data:{hintText:r="",conflictList:i=[]}={},onCancel:n,onOk:s}=e;return a?Object(P.jsxs)(ue.a,{visible:t,ctxId:a,title:Object(p.t)("WorkGroup.ConfirmWorkerChange"),width:"600px",onOk:s,onCancel:n,children:[Object(P.jsxs)(o.r,{className:"conflict-notice",children:[Object(P.jsx)(gt.a,{name:"warning_colorful",size:16}),Object(P.jsx)(o.r,{className:"conflict-notice-text",children:r})]}),Object(P.jsx)(o.r,{className:"conflict-list-inner",children:i.map((e=>Object(P.jsxs)(o.r,{className:"conflict-item",children:[Object(P.jsx)(o.g,{className:"conflict-avatar",src:e.avatar_url}),Object(P.jsxs)(o.r,{className:"conflict-info",children:[Object(P.jsx)(o.r,{className:"conflict-name",children:e.user_name}),Object(P.jsx)(o.r,{className:"conflict-department",children:e.org_name})]})]},e.user_id)))})]}):null}a(1337);var jt=Object(s.a)(ct=class extends i.Component{genApprovalNodeHistoryList(){var{ctxId:e}=this.props;if(!e)return[];var{configurableFormStore:{approvalNodeDTOList:t}}=Object(c.d)(e);return t.map((e=>{var{approverList:t,type:a}=e,r={1:Object(p.t)("Detail.OrSign"),2:Object(p.t)("Detail.AndSign"),3:Object(p.t)("Detail.InTurnSignHint")};if(1===t.length){var i=t[0],n=[e.nodeName];if(e.insteadCreator){var o=Object(ht.a)("approvalForm.instead",{name:Object(bt.b)(e.insteadCreator.userId,e.insteadCreator.userName,{fontSize:"12px",margin:0})});n.push(o)}return{value:e.taskDefKey,checked:!1,label:"".concat(i.name),nodeName:n,avatarUrl:i.avatar,userId:i.id,insteadCreator:e.insteadCreator}}return{value:e.taskDefKey,checked:!1,label:"".concat(Object(p.t)("PC.Detail_EllMore",{count:t.length})," ").concat(r[a]),avatarUrl:d.a,approverList:t,userId:null}}))}render(){var e,{ctxId:t}=this.props;if(!t)return null;var{detailModalStore:a,configurableFormStore:i}=Object(c.d)(t);if(!a)return null;var{standardModalVisible:n,reminderModalVisible:s,redirectModalVisible:l,rollbackModalVisible:d,addApproverModalVisible:m,deleteApproverModalVisible:b,leaveDetailModalVisible:g,workWorkersModalVisible:v,ccModalVisible:j,deleteCommentModalVisible:O,standardModalData:f,reminderModalData:M,redirectModalData:_,rollbackModalData:y,addApproverModalData:D,deleteApproverModalData:N,leaveDetailModalData:A,workWorkersModalData:T,ccModalData:I,deleteCommentModalData:C,onStandardModalCancel:x,onReminderModalCancel:S,onRedirectModalCancel:w,onRollbackModalCancel:L,onAddApproverModalCancel:E,onDeleteApproverModalCancel:k,onLeaveDetailModalCancel:z,onWorkWorkersModalCancel:R,onCCModalCancel:U,onDeleteCommentCancel:B,onStandardModalOk:F,onReminderModalOk:Y,onRedirectModalOk:Q,onRollbackModalOk:G,onAddApproverModalOk:W,onDeleteApproverModalOk:V,onCCModalOk:H,onLeaveDetailModalOk:Z,onWorkWorkersModalOk:q,onDeleteCommentOk:K,onReminderModalError:J,onRedirectModalError:X,onRollbackModalError:$,onAddApproverModalError:ee,onDeleteApproverModalError:te,onCCModalError:ae,showCommonMask:re,showCommonModalMask:ie,closeCommonModalMask:ne,shareModalVisible:oe,shareModalData:se,onShareModalOk:ce,onShareModalCancel:ue,onShareModalError:pe}=a,{instanceInfo:me}=i,be=this.genApprovalNodeHistoryList(),ge={showCommonMask:re,showCommonModalMask:ie,closeCommonModalMask:ne};return Object(P.jsxs)(o.r,{className:"detail-modal",children:[n&&f&&Object(P.jsx)(de.a,{visible:n,ctxId:f.ctxId,title:f.title,onCancel:x,onSuccess:F,data:f,showCommonMask:re,subTitle:f.subTitle}),s&&M&&Object(P.jsx)(he,{ctxId:M.ctxId,visible:s,data:{instanceId:M.instanceId},onCancel:S,onSuccess:Y,onFail:J}),l&&Object(P.jsx)(_e,Object(r.a)({ctxId:_.ctxId,visible:l,data:_.data,onCancel:w,onSuccess:Q,onFail:X},ge)),d&&Object(P.jsx)(Se,Object(r.a)({ctxId:y.ctxId,checkboxList:be,instanceId:me?me.instanceId:"",visible:d,rollbackType:null!==(e=null==me?void 0:me.rollbackType)&&void 0!==e?e:u.m.SpecifyRollback,onCancel:L,onSuccess:G,onFail:$,data:y},ge)),j&&Object(P.jsx)(le,Object(r.a)({ctxId:I.ctxId,visible:j,onCancel:U,onSuccess:H,data:I.data,onFail:ae},ge)),m&&Object(P.jsx)(Je,Object(r.a)({ctxId:D.ctxId,visible:m,data:D.data,permissions:D.permissions,onCancel:E,onSuccess:W,onFail:ee},ge)),b&&Object(P.jsx)($e,Object(r.a)({ctxId:N.ctxId,visible:b,data:N.data,onCancel:k,onSuccess:V,onFail:te},ge)),g&&A&&Object(P.jsx)(it,{visible:g,ctxId:t,data:A,onCancel:z,onOk:Z}),v&&T&&Object(P.jsx)(vt,{visible:v,ctxId:t,data:T,onCancel:R,onOk:q}),oe&&se&&Object(P.jsx)(mt,Object(r.a)({ctxId:se.ctxId,visible:oe,onCancel:ue,onSuccess:ce,data:se.data,onFail:pe},ge)),O&&C&&Object(P.jsx)(h.a,{visible:O,icon:"icon-icon-info1",iconStyle:{color:"#3370ff",fontSize:"22px"},title:Object(p.t)("Comment.delete.title"),content:Object(p.t)("Comment.delete.content"),onOk:K,onCancel:B})]})}})||ct},function(e,t,a){"use strict";a.d(t,"a",(function(){return ut}));var r=a(5),i=a(3),n=a(15),o=a(13),s=a(66),c=a(24),l=a(290),d=a(728),u=a(729),p=a(444),m=a(1),h=a(12),b=a(25),g=a(41),v=a(650),j=a(19),O=a(8),f=a.n(O),M=a(804),_=a(72),y=a(65),D=a(651),N=a(48),A=a(571),T=a(325),I=(a(1221),a(0)),C=Object(n.a)((e=>{var{widget:t,ctxId:a}=e,{data:{name:r,groups:n,hasHistory:o,required:s}}=t,c=Object(i.useMemo)((()=>"table_".concat(Object(_.c)())),[]),[l,d]=Object(i.useState)(!0),[u,p]=Object(i.useState)(!0),[h,b]=Object(i.useState)(730),v=()=>{Object(j.nextTick)((()=>{Promise.all([Object(y.a)(".".concat(c)),Object(y.a)(".".concat(c," .common-table__table"))]).then((e=>{if(e&&e.length){var[t,a]=e;t&&a&&(b(t.width),d(a.width<=t.width))}}))}))};Object(A.a)(v);var O=Object(i.useCallback)(Object(M.a)((e=>{p(0===e.detail.scrollLeft),d(e.detail.scrollWidth-e.detail.scrollLeft<h+60)}),100,{leading:!0}),[h]),[C]=(e=>{var t=new Set,a=e=>{e.data.visible&&e.data.readable&&e.data.isRestored&&t.add(e.id.split("|")[0])};null==e||e.forEach((e=>{var t;null===(t=e.widgets)||void 0===t||t.forEach((e=>{var t;a(e),null===(t=e.data.children)||void 0===t||t.forEach((e=>a(e)))}))}));var r=[...t].map((e=>e)).join("/");return[r]})(n);Object(i.useEffect)((()=>{v()}),[C]);var{columns:x,dataSource:S}=Object(i.useMemo)((()=>{var{dataSource:e,columns:t}=Object(T.c)({groups:n,ctxId:a});return t.length&&t.unshift({key:"index",width:33,title:"#",fixed:"left",dataIndex:"index",align:"center",customCellStyle:{zIndex:9},render:(e,t,a)=>Object(I.jsx)(m.r,{className:"serial-column",children:a+1})}),{columns:t,dataSource:e}}),[n.length,C]),w=Object(I.jsxs)(N.a,{required:s,children:[r,o&&Object(I.jsx)(g.a,{ctxId:a,widget:t},t.id)]});return 0===x.length?null:Object(I.jsx)(D.a,{"show-scroll-bar":!0,className:f()("approval-detail-table-viewer",c,{"show-right-shadow":!l,"show-left-divide":!u}),onScrollToLower:()=>{d(!0),p(!1)},onScrollToUpper:()=>{p(!0),d(!1)},onScroll:O,title:w,dataSource:S,columns:x})}));a(1222);class x extends i.Component{componentDidMount(){var{widget:e}=this.props;b.d.useTable&&e&&Object(h.b)("submit_form_has_field_list",{input_type:e.data.inputType})}render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{name:a,groups:r,hasHistory:i,inputType:n="LIST"}}=e;return Object(I.jsxs)(m.r,{className:"widget-viewer detail-viewer",children:[b.d.useTable&&"FORM"===n?Object(I.jsx)(C,{widget:e,ctxId:t}):r.map(((n,o)=>n.widgets.every((e=>!e.data.visible||!e.data.readable||Object(T.d)(e)))?null:Object(I.jsxs)(m.a,{children:[Object(I.jsxs)(m.r,{className:"title",children:[Object(I.jsx)(m.p,{selectable:!0,children:"".concat(a," ").concat(r.length>1?"".concat(o+1):"")}),i&&Object(I.jsx)(g.a,{ctxId:t,widget:e},e.id)]}),Object(I.jsx)(m.r,{className:"value detail-content",children:n.widgets.map((e=>Object(I.jsx)(m.r,{className:"detail-content-item",children:Object(I.jsx)(ut,{ctxId:t,widget:e,isInDetailField:!0},e.id)},e.id)))})]},n.id))),Object(I.jsx)(v.b,{widget:e})]})}}var S,w,L=x,E=a(484),k=a(455),z=a(456),R=a(457),P=a(653),U=a(458),B=a(654),F=a(459),Y=a(460),Q=a(461),G=a(462),W=a(655),V=a(463),H=(a(1240),Object(n.a)(S=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{children:a}}=e;return a.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))}})||S),Z=H,q=a(9),K=a(6),J=a(16),X=a(14),$=a(2),ee=a(20),te=a(18),ae=a(103),re=a(232),ie=a(656),ne=a(274),oe=a.n(ne),se=a(49),ce=[se.a.AttendanceUnit,se.a.Unit,se.a.TimeOfOffLeaveEarly,se.a.TimeOfArrivingLate,se.a.TimeOfDailyBreaks],le=[se.a.PregnancyCheckUp,se.a.InfantNum,se.a.DifficultLabour,se.a.PremaritalCheckUp,se.a.PregnancyAge,se.a.RelationType],de=e=>null==e?void 0:e.id.includes("widgetLeaveGroupInterval"),ue=Object(ee.c)("pc:src/components/configurable-form/components/widgets/leave-group-v2/viewer/index.tsx"),pe=Object(n.a)(w=class extends i.Component{constructor(){super(...arguments),Object(K.a)(this,"state",{leaveTypes:[]}),Object(K.a)(this,"openLeaveDetailModal",(()=>{var e,{ctxId:t,widget:a}=this.props,{detailModalStore:r}=Object(X.d)(t),{leaveDetail:i,schedules:n,leaveQuota:o,children:s}=a.data,c=null===(e=s.find((e=>"widgetLeaveGroupAttendanceUnit"===e.id)))||void 0===e?void 0:e.data.value,l=Object(ie.a)({leaveDetail:i,schedules:n,leaveQuota:o,leaveUnit:c});r.leaveDetailModal(l)})),Object(K.a)(this,"getLeaveTypeName",(()=>{var e,{leaveTypes:t}=this.state,{widget:a,ctxId:r}=this.props,{data:{children:i,ext:n={}}}=a,o=i.find((e=>e.id===se.a.Type)),{value:s=""}=(null==o||null===(e=o.data)||void 0===e?void 0:e.value)||{},c=t.find((e=>e.id===s));return c})),Object(K.a)(this,"handleLeaveType",(e=>{var t,a=this.getLeaveTypeName(),{text:i=""}=(null==e||null===(t=e.data)||void 0===t?void 0:t.value)||{};return Object(r.a)(Object(r.a)({},e),{},{data:Object(r.a)(Object(r.a)({},e.data),{},{value:Object(r.a)(Object(r.a)({},e.data.value),{},{text:(null==a?void 0:a.leaveName)||i})})})}))}generateLeftLength(e){return 16+10*(Math.max(e.toString().length,2)-2)}UNSAFE_componentWillMount(){this.loadDataWhenInit()}loadDataWhenInit(){var e=this;return Object(q.a)((function*(){var{ctxId:t}=e.props,{configurableFormStore:a}=Object(X.d)(t);try{var r=yield Object(re.a)();ue("detailLeaveBalanceStart",{isLeaveRefactorGray:r});var i=yield Object(ae.j)(J.c,{},void 0,r);a.leaveTypes=i,ue("detailLeaveBalanceDone",{isLeaveRefactorGray:r,balanceList:i}),e.setState({leaveTypes:i})}catch(e){}}))()}render(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{data:{schedules:a,children:r,ext:i={}}}=e,n=r.find((e=>e.id===se.a.Duration));if(null!=n&&n.data.value&&this.generateLeftLength(Number(null==n?void 0:n.data.value.value)),(null==i?void 0:i.widgetLeaveRuleType)===te.e.BreastFeeding)return this.renderWidgetsForBreastFeeding();var o=(null==a?void 0:a.length)>0,c=r.filter((e=>!ce.includes(e.id))).map((e=>e.id===se.a.Type?this.handleLeaveType(e):e)),l=c.findIndex((e=>"widgetLeaveGroupInterval"===e.id)),d=c.findIndex((e=>"widgetLeaveTimeZoneType"===e.id)),u=c.splice(d,1);return b.d.fgLeaveGroupTimeZone&&c.splice(l+1,0,u[0]),Object(I.jsx)(m.r,{className:"leave-group-v2-viewer",children:c.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e,children:Object(I.jsx)(s.a,{hidden:!o||!de(e),children:Object(I.jsx)(m.r,{onClick:this.openLeaveDetailModal,className:"leave-group-v2-viewer-view-detail",children:Object($.t)("LeaveGroup.LeaveDetail")})})},e.id)))})}renderWidgetsForBreastFeeding(){var{widget:e,ctxId:t}=this.props,{leaveTypes:a}=this.state;if(!t||!e)return null;var{configurableFormStore:i}=Object(X.d)(t),n=!(null!=i&&i.instanceInfo),{data:{children:o}}=e,s=[o.find(Object(se.b)(se.a.Type)),o.find(Object(se.b)(se.a.StartTime)),o.find(Object(se.b)(se.a.EndTime)),o.find(Object(se.b)(se.a.Duration)),o.find(Object(se.b)(se.a.TimeZoneType)),o.find(Object(se.b)(se.a.TimeOfArrivingLate)),o.find(Object(se.b)(se.a.TimeOfOffLeaveEarly)),o.find(Object(se.b)(se.a.TimeOfDailyBreaks)),o.find(Object(se.b)(se.a.Certification))];if(!Object(se.c)(s)&&!n)return(e=>{console.error(e),ue("commonOnError",{message:e})})("Failed to render HolidayPeriod widget because some widget(s) is null! ".concat(JSON.stringify(s))),null;var[c,l,d,u,p,h,b,g,v]=s.map((e=>(null==e?void 0:e.id)===se.a.Type?this.handleLeaveType(e):e)),j=[l,d,u,p].map((e=>e.id===se.a.Duration?Object(r.a)(Object(r.a)({},e),{},{data:Object(r.a)(Object(r.a)({},e.data),{},{name:"".concat(Object($.t)("LeaveGroup.DurationTime","时长")).concat(Object($.t)("Brackets",{innerText:Object($.t)("LeaveGroup.BalanceUnitDay")}))})}):e)),O=[h,b,g],M=o.filter((e=>le.includes(e.id))).map((e=>e.id===se.a.Type?this.handleLeaveType(e):e));return Object(I.jsxs)(m.r,{className:f()(oe.a["widget-viewer"],oe.a["leave-group-v2-viewer"]),children:[Object(I.jsx)(ut,{ctxId:t,widget:c}),Object(I.jsxs)(m.r,{className:oe.a["widget-viewer"],children:[Object(I.jsx)(m.r,{className:oe.a.title,children:Object($.t)("LeaveGroup.HolidayPeriod","假期周期")}),Object(I.jsx)(m.r,{className:f()(oe.a.value,oe.a.block),children:j.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))})]}),Object(I.jsxs)(m.r,{className:oe.a["widget-viewer"],children:[Object(I.jsx)(m.r,{className:oe.a.title,children:Object($.t)("LeaveGroup.DailyBreaksMethod"," 每日休息方式")}),Object(I.jsx)(m.r,{className:f()(oe.a.value,oe.a.block),children:O.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))})]}),M.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id))),Object(I.jsx)(ut,{ctxId:t,widget:v})]})}})||w,me=pe,he=a(482),be=a(467);a(1259);class ge extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{children:a}=e.data;return a.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))}}var ve,je=ge,Oe=a(714),fe=a(61),Me=(a(1260),a(265)),_e=Object(n.a)(ve=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{children:a},detail:r}=e,i=[{title:Object($.t)("WorkGroup.OvertimeDate"),dataIndex:"workTime",isEdit:!1,isSmall:!0},{title:Object($.t)("WorkGroup.OvertimeDetail"),dataIndex:"Interval",isEdit:!1}],n=[...a.slice(8,9),...a.slice(0,3)],o=a.slice(3,8).filter((e=>!fe.l.includes(e.id)));return Object(I.jsxs)(m.r,{children:[n.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id))),r.length>0&&Object(I.jsx)(Oe.a,{dataSource:r,columns:i}),o.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id))),e.data.workHint?Object(I.jsx)(m.r,{className:"widget-editor desc-editor block--contrast",children:Object(I.jsx)(Me.a,{text:e.data.workHint,className:"desc-editor-content"})}):null]})}})||ve,ye=_e;a(1261);class De extends i.Component{constructor(){super(...arguments),Object(K.a)(this,"innerCtxId",void 0)}init(e){this.innerCtxId=Object(X.c)(Object(X.d)(e),{isChildOfTripGroup:!0},this)}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.init(e)}componentWillUnmount(){Object(X.b)(this)}render(){var{widget:e}=this.props;if(!e)return null;var{children:t}=e.data;return t.map((e=>Object(I.jsx)(ut,{ctxId:this.innerCtxId,widget:e},e.id)))}}var Ne,Ae,Te,Ie=De,Ce=a(97),xe=a(42),Se=(a(1262),Object(n.a)(Ne=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{value:a}}=e,{approvalListStore:r}=Object(X.d)(t),i=r?r.highlightKeywords:"";return Object(I.jsx)(m.r,{className:"widget-viewer work-group-viewer",children:a.map((e=>{var t=Object(Ce.a)(e.value)?e.value.text:e.value;return Object(I.jsxs)(m.r,{children:[Object(I.jsx)(m.r,{className:"title",children:Object(I.jsx)(m.p,{selectable:!0,children:e.name})}),Object(I.jsx)(m.r,{className:"value",children:Object(I.jsx)(xe.a,{content:t,keyword:i})})]},e.id)}))})}})||Ne),we=a(447),Le=a(666),Ee=a(468),ke=(a(1265),Object(n.a)(Ae=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{value:a}}=e,{approvalListStore:r}=Object(X.d)(t),i=r?r.highlightKeywords:"";return Object(I.jsx)(m.r,{className:"widget-viewer remedy-group-viewer",children:a.map((e=>{var t=Object(Ce.a)(e.value)?e.value.text:e.value;return Object(I.jsxs)(m.r,{children:[Object(I.jsx)(m.r,{className:"title",children:Object(I.jsx)(m.p,{selectable:!0,children:e.name})}),Object(I.jsx)(m.r,{className:"value",children:Object(I.jsx)(xe.a,{content:t,keyword:i})})]},e.id)}))})}})||Ae),ze=(a(1266),a(576)),Re=Object(n.a)(Te=class extends i.Component{constructor(){super(...arguments),Object(K.a)(this,"innerCtxId",void 0)}init(e){this.innerCtxId=Object(X.c)(Object(X.d)(e),{isChildOfRemedyGroup:!0},this)}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.init(e)}componentWillUnmount(){Object(X.b)(this)}renderBatchRemedy(){var{widget:e}=this.props;if(!e)return null;var{children:t}=e.data;return Object(I.jsxs)(m.a,{children:[Object(I.jsx)(m.r,{className:"widget-viewer remedy-group-viewer",children:t.map((e=>Object(I.jsx)(ut,{ctxId:this.innerCtxId,widget:e},e.id)))}),e.data.remedyHint?Object(I.jsx)(m.r,{className:"widget-editor desc-editor block--contrast",children:Object(I.jsx)(Me.a,{text:e.data.remedyHint,className:"desc-editor-content"})}):null]})}render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;if(Object(ze.a)(e))return this.renderBatchRemedy();var{data:{value:a}}=e,{approvalListStore:r}=Object(X.d)(t),i=r?r.highlightKeywords:"",n=a.filter((e=>!1!==e.displayCondStatus));return Object(I.jsxs)(m.a,{children:[Object(I.jsx)(m.r,{className:"widget-viewer remedy-group-viewer",children:n.map((e=>{var t=Object(Ce.a)(e.value)?e.value.text:e.value;return Object(I.jsxs)(m.r,{children:[Object(I.jsx)(m.r,{className:"title",children:Object(I.jsx)(m.p,{selectable:!0,children:e.name})}),Object(I.jsx)(m.r,{className:"value",children:Object(I.jsx)(xe.a,{content:t,keyword:i})})]},e.id)}))}),e.data.remedyHint?Object(I.jsx)(m.r,{className:"widget-editor desc-editor block--contrast",children:Object(I.jsx)(Me.a,{text:e.data.remedyHint,className:"desc-editor-content"})}):null]})}})||Te;class Pe extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{children:a}}=e,r=a.filter(((e,t)=>1!==t));return r.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))}}var Ue,Be,Fe,Ye,Qe,Ge,We,Ve=Pe,He=a(469),Ze=(a(1275),Object(n.a)(Ue=class extends i.Component{render(){var{widget:e}=this.props;if(!e||!e.data.readable)return null;var{ctxId:t}=this.props,{data:{name:a}}=e,{approvalListStore:r}=Object(X.d)(t),i=r?r.highlightKeywords:"";return Object(I.jsx)(s.a,{hidden:!e||!e.data.visible,children:Object(I.jsxs)(m.r,{className:"widget-viewer",children:[Object(I.jsx)(m.r,{className:"title",children:Object(I.jsx)(m.p,{selectable:!0,children:a})}),Object(I.jsx)(m.r,{className:"value",children:Object(I.jsx)(xe.a,{content:Object($.t)("Apaascorehr_NoFormItemValue"),keyword:i})})]})})}})||Ue),qe=a(73),Ke=(a(1276),Object(n.a)(Be=class extends i.Component{renderDescComp(e){if(!e||!e.data.readable||!e.data.isRestored)return null;var{value:t}=e.data;return Object(I.jsx)(s.a,{hidden:!e||!e.data.visible,children:Object(I.jsx)(m.r,{className:"title",children:Object(I.jsx)(m.p,{children:t})})})}renderChildWidgets(e){var{widget:t,ctxId:a}=this.props;return a&&t?e.map((e=>Object(qe.d)(e)?Object(I.jsx)(Ze,{widget:e,ctxId:a}):Object(I.jsx)(ut,{ctxId:a,widget:e},e.id))):null}render(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{children:a}=e.data,r=a.findIndex((e=>{var{id:t}=e;return t===qe.a.adjustedInformation})),i=a.slice(0,r),n=a.slice(r+1),o=a[r];return Object(I.jsxs)(m.r,{className:"widget-viewer",children:[this.renderChildWidgets(i),this.renderDescComp(o),Object(I.jsx)(m.r,{className:"value block",children:this.renderChildWidgets(n)})]})}})||Be),Je=Ke,Xe=Object(n.a)(Fe=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{children:a}=e.data;return Object(I.jsx)(m.r,{className:"on-boarding-group-viewer",children:a.map((e=>Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))})}})||Fe,$e=Xe,et=a(95),at=(a(1277),Object(n.a)(Ye=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{children:a}=e.data;return Object(I.jsx)(m.r,{className:"regularate-group-viewer",children:a.map((e=>Object(et.d)(e)?Object(I.jsx)(Ze,{widget:e,ctxId:t}):Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))})}})||Ye),rt=at,it=a(70),nt=(a(1278),Object(n.a)(Qe=class extends i.Component{render(){var{widget:e,ctxId:t}=this.props;if(!t||!e)return null;var{children:a}=e.data;return Object(I.jsx)(m.r,{className:"off-boarding-group-viewer",children:a.map((e=>Object(it.d)(e)?Object(I.jsx)(Ze,{widget:e,ctxId:t}):Object(I.jsx)(ut,{ctxId:t,widget:e},e.id)))})}})||Qe),ot=nt,st=(a(1279),Object(n.a)(Ge=class extends i.Component{renderItem(e,t){if(!e||!e.data||!e.data.visible||null===e.data.value)return Object(I.jsx)(m.r,{});var{data:a}=e,r=Object(Ce.a)(a.value)?a.value.text:a.value;return Object(I.jsxs)(m.r,{className:"widget-viewer",children:[Object(I.jsx)(m.r,{className:"title",children:Object(I.jsx)(m.p,{selectable:!0,children:a.name})}),Object(I.jsx)(m.r,{className:"value",children:Object(I.jsx)(xe.a,{content:r,keyword:t})})]},e.id)}render(){var{widget:e,ctxId:t}=this.props;if(!e)return null;var{data:{name:a,value:r,option:i}}=e,{widgetSignGroupSignatoryList:n,widgetSignGroupPresetWidgetList:o}=r,{approvalListStore:s}=Object(X.d)(t),c=s?s.highlightKeywords:"";return Object(I.jsxs)(m.r,{className:"widget-viewer sign-group-viewer",children:[Object(I.jsxs)(m.r,{className:"widget-viewer",children:[Object(I.jsx)(m.r,{className:"title",children:Object(I.jsx)(m.p,{selectable:!0,children:Object($.t)("Detail_SignGroupNameKey")})}),Object(I.jsxs)(m.r,{className:"value widget-name",children:[Object(I.jsx)(m.r,{className:"name-content",children:Object(I.jsx)(xe.a,{content:a,keyword:c})}),Object(I.jsx)(m.r,{className:"preview-boilerplate",onClick:Object(q.a)((function*(){if(i){var e=yield J.c.letsignboilerplatestartpreview({accountCode:i.accountCode,boilerplateUniqueCode:i.boilerplateUniqueCode});e&&e.data?tt.openSchema({schema:e.data.url,external:!1}):Object(h.b)("sign_group_previewboilerplate_error",{res:e,params:{accountCode:i.accountCode,boilerplateUniqueCode:i.boilerplateUniqueCode},type:"viewer"})}})),children:Object($.t)("CreateApproval_FormGroup_SignGroupPreview")})]})]}),o.map((e=>this.renderItem(e,c))),n.map((e=>Object(I.jsxs)(m.r,{className:"widget-viewer",children:[Object(I.jsx)(m.r,{className:"title",children:e.name}),Object(I.jsx)(m.r,{className:"value block",children:e.value.map((e=>this.renderItem(e,c)))})]},e.id)))]})}})||Ge),ct=a(673),lt=a(471),dt=a(674),ut=Object(n.a)(We=class extends i.Component{renderEditor(){var{widget:e,ctxId:t,isInDetailPage:a,currentActive:r,currentNav:i,isInDetailField:n}=this.props;return e&&e.data.writable&&c.b.indexStore.isTodoNav&&!c.b.indexStore.searchStore.isSubSearch?Object(I.jsx)(l.a,{ctxId:t,widget:e,isInDetailPage:a,isInDetailField:n,currentActive:r,currentNav:i},e.id):null}renderViewer(){var{widget:e,ctxId:t,isInDetailPage:a,currentActive:i,currentNav:n,isInDetailField:s}=this.props;if(!e||e.data.writable&&c.b.indexStore.isTodoNav||!e.data.readable||!e.data.isRestored)return null;var{option:l={}}=e.data;switch(e.type){case o.c.ADDRESS:return Object(I.jsx)(be.a,{ctxId:t,widget:e},e.id);case o.c.AMOUNT_INPUT:return Object(I.jsx)(Q.a,{ctxId:t,widget:e,isInDetailField:s},e.id);case o.c.ATTACHMENT:return Object(I.jsx)(W.a,{ctxId:t,widget:e},e.id);case o.c.ATTACHMENT_V2:return Object(I.jsx)(V.a,{ctxId:t,widget:e},e.id);case o.c.CALCULATION_FORMULA:return Object(I.jsx)(G.a,{ctxId:t,widget:e,isInDetailField:s},e.id);case o.c.CONTACT:return Object(I.jsx)(R.a,{ctxId:t,widget:e},e.id);case o.c.DATE_INTERVAL:return Object(I.jsx)(z.a,{ctxId:t,widget:e},e.id);case o.c.DATE_RANGE:return Object(I.jsx)(Le.a,{ctxId:t,widget:e},e.id);case o.c.DATE_TIME:return Object(I.jsx)(k.a,{ctxId:t,widget:e},e.id);case o.c.DESC:return Object(I.jsx)(we.a,{ctxId:t,widget:e},e.id);case o.c.DETAIL:return Object(I.jsx)(L,{ctxId:t,widget:e},e.id);case o.c.IMAGE:return Object(I.jsx)(E.a,{ctxId:t,widget:e},e.id);case o.c.LEAVE_GROUP:return Object(I.jsx)(Z,{ctxId:t,widget:e},e.id);case o.c.LEAVE_GROUP_V2:return Object(I.jsx)(me,{ctxId:t,widget:e},e.id);case o.c.MULTI_SELECT:return Object(I.jsx)(B.a,{ctxId:t,widget:e},e.id);case o.c.MULTI_SELECT_V2:return Object(I.jsx)(F.a,{ctxId:t,widget:e},e.id);case o.c.NUMBER_INPUT:return Object(I.jsx)(Y.a,{ctxId:t,widget:e},e.id);case o.c.RELATIVE_APPROVAL:return Object(I.jsx)(he.a,{ctxId:t,widget:e,isInDetailPage:a},e.id);case o.c.SHIFT_GROUP:return Object(I.jsx)(Se,{ctxId:t,widget:e},e.id);case o.c.CLOUD_DOC:return Object(I.jsx)(d.a,{ctxId:t,widget:e},e.id);case o.c.CLOUD_DOC_BLOCK:return Object(I.jsx)(u.a,{ctxId:t,widget:e,currentActive:i,currentNav:n},e.id);case o.c.SINGLE_INPUT:return Object(I.jsx)(p.a,{ctxId:t,widget:e},e.id);case o.c.SINGLE_SELECT:return Object(I.jsx)(P.a,Object(r.a)({},this.props),e.id);case o.c.SINGLE_SELECT_V2:return Object(I.jsx)(U.a,Object(r.a)({},this.props),e.id);case o.c.TEXTAREA:return Object(I.jsx)(Ee.a,{ctxId:t,widget:e},e.id);case o.c.WORK_GROUP:return!l||1!==l.isSetRule&&0!==l.isSetRule?Object(I.jsx)(je,{ctxId:t,widget:e},e.id):Object(I.jsx)(ye,{ctxId:t,widget:e},e.id);case o.c.TRIP_GROUP:return Object(I.jsx)(Ie,{ctxId:t,widget:e},e.id);case o.c.REMEDY_GROUP:return Object(I.jsx)(ke,{ctxId:t,widget:e},e.id);case o.c.REMEDY_GROUP_V2:return Object(I.jsx)(Re,{ctxId:t,widget:e},e.id);case o.c.OUT_GROUP:return Object(I.jsx)(Ve,{ctxId:t,widget:e},e.id);case o.c.DEPARTMENT:return Object(I.jsx)(He.a,{ctxId:t,widget:e},e.id);case o.c.JOB_ADJUST_GROUP:return Object(I.jsx)(Je,{ctxId:t,widget:e},e.id);case o.c.ON_BOARDING_GROUP:return Object(I.jsx)($e,{ctxId:t,widget:e},e.id);case o.c.REGULARATE_GROUP:return Object(I.jsx)(rt,{ctxId:t,widget:e},e.id);case o.c.OFF_BOARDING_GROUP:return Object(I.jsx)(ot,{ctxId:t,widget:e},e.id);case o.c.SIGN_GROUP:return Object(I.jsx)(st,{ctxId:t,widget:e},e.id);case o.c.RECEIVING_ACCOUNT:return Object(I.jsx)(ct.a,{ctxId:t,widget:e},e.id);case o.c.TELEPHONE:return Object(I.jsx)(lt.a,{ctxId:t,widget:e},e.id);case o.c.SERIAL_NUMBER:return Object(I.jsx)(dt.a,{ctxId:t,widget:e},e.id);default:return null}}render(){var{widget:e}=this.props;return Object(I.jsxs)(s.a,{hidden:!e||!e.data.visible,children:[this.renderEditor(),this.renderViewer()]})}})||We},,function(e,t,a){"use strict";a.d(t,"a",(function(){return Xe}));var r,i,n=a(11),o=a(5),s=a(9),c=a(6),l=a(7),d=(a(56),a(3)),u=a.n(d),p=a(31),m=a.n(p),h=a(1),b=a(15),g=a(4),v=a(8),j=a.n(v),O=a(18),f=a(19),M=a.n(f),_=a(12),y=a(47),D=(a(1241),a(0)),N=u.a.memo((e=>{var{className:t}=e;return Object(D.jsx)(h.r,{className:"approval-divider ".concat(t)})})),A=a(66),T=a(207),I=a.n(T),C=a(493),x=a.n(C),S=a(886),w=a.n(S),L=a(497),E=a(721),k=a(14),z=a(36),R=a(24),P=a(33),U=a(16),B=a(20),F=a(2),Y=a(10),Q=a(44),G=a(321),W=a(17),V=a(397),H=a(373),Z=a(54),q=a(661),K=a(659),J=a(29),X=a(30),$=a(432),ee=a(280),te=a(615),ae=a(69),re=e=>{switch(e){case X.b.ADD_APPROVER:return"icon-icon_into-item_outlined";case X.b.AGREE:case X.b.SUBMIT:case X.b.RESUBMIT:return"icon-agree";case X.b.CC:return"icon-icon_into-item_outlined-2";case X.b.CHAT:return"icon-icon_discuss_outlined1";case X.b.COMMENT:return"icon-icon_add-comment_outlined";case X.b.DELETE_APPROVER:return"icon-icon_into-item_outlined-1";case X.b.MORE:return"icon-icon_more_outlined";case X.b.REJECT:return"icon-reject";case X.b.REMINDER:return"icon-icon_buzz_outlined";case X.b.ROLLBACK:return"icon-icon_into-item_outlined-3";case X.b.SUBMIT_AGAIN:return"icon-icon_repeat_outlined";case X.b.TRANSFER:return"icon-icon_forward-com_outlined";case X.b.WITHDRAW:return"icon-icon_recall_outlined1";case X.b.MODIFY:return"icon-icon-edit-copy";case X.b.BATCH_OPERATE:return"icon-dynamic";case X.b.SAVE_EDIT:return"icon-save-edit"}},ie=(a(767),a(50)),ne=a(275),oe=a.n(ne),se=e=>{var{knownKey:t,content:a}=e,[r,i]=Object(d.useState)(!0),n=t.replaceAll(".","_"),[o,s]=Object(d.useState)({}),c=Object(d.useCallback)((()=>{M.a.nextTick((()=>{var e=M.a.createSelectorQuery();e.select("#".concat(n)).boundingClientRect(),e.selectViewport().boundingClientRect(),e.exec((e=>{if(null!=e&&e.length){var[t,a]=e;if(t&&a){var r=t.right,i=a.width;if(r>i){var n={left:"calc(50% - ".concat(r-i,"px)")};s(n)}else s({})}}}))}))}),[n]);return Object(d.useEffect)((()=>(c(),tt.onWindowResize(c),()=>{tt.offWindowResize(c)})),[c]),r?Object(D.jsxs)(h.r,{className:oe.a.base,children:[Object(D.jsxs)(h.r,{style:o,className:oe.a.main,children:[Object(D.jsx)(h.r,{className:oe.a.content,children:a}),Object(D.jsx)(h.r,{className:oe.a.iKnow,children:Object(F.t)("new_feature_guide.i_know")})]}),Object(D.jsxs)(h.r,{id:n,className:j()(oe.a.main,oe.a.hidden),children:[Object(D.jsx)(h.r,{className:oe.a.content,children:a}),Object(D.jsx)(h.r,{className:oe.a.iKnow,children:Object(F.t)("new_feature_guide.i_know")})]}),Object(D.jsx)(h.r,{className:oe.a.arrow}),Object(D.jsx)(h.r,{className:oe.a.mask,onClick:e=>{i(!1),ie.a.set(t,"1"),tt.offWindowResize(c),e.stopPropagation()}})]}):null},ce=e=>{var{type:t,ctxId:a,badge:r,onClick:i,disabled:n,decorator:o,guide:s}=e;if(!a)return null;var{configurableFormStore:{isRollbackToStart:c}}=Object(k.d)(a),l=re(X.b[t]),d=de(a,t),u=[X.b.RESUBMIT,X.b.AGREE,X.b.REJECT,X.b.SUBMIT,X.b.SAVE_EDIT].includes(X.b[t]),p=F.StarlingLangEnum.en===F.curStarlingLang,m=j()("button-item",{"button-main":u,"button-main--large":u&&p,"button-vice":!u,"button-more":t===X.b.MORE,"button-item-chat":"CHAT"===X.b[t]});d=X.b[t]===X.b.CHAT&&r?"".concat(d," (").concat(r>99?99:r,")"):d;var b=Object(D.jsx)(h.r,{className:j()("button-icon iconfont",l)}),g=Object(D.jsx)(ae.a,{type:u?"default":"text",info:[X.b.RESUBMIT,X.b.AGREE,X.b.SUBMIT].includes(X.b[t]),danger:X.b[t]===X.b.REJECT,className:m,onClick:()=>{n||null==i||i(t)},icon:b,disabled:n,radius:"medium",children:d},X.b[t]);return"function"==typeof o?o(g):Object(D.jsxs)(h.r,{className:"button-wrapper",children:[s?Object(D.jsx)(se,{knownKey:s.knownKey,content:s.content}):null,g]})},le=e=>{var{type:t,ctxId:a,onClick:r,disabled:i,decorator:n}=e,o=de(a,t),s=re(X.b[t]),c=F.StarlingLangEnum.en===F.curStarlingLang,l=Object(D.jsxs)(h.r,{className:j()("more-button-item",{disabled:i}),style:{width:c?158:148},onClick:()=>{i||null==r||r(t)},children:[Object(D.jsx)(h.r,{className:j()("iconfont",s)}),Object(D.jsx)(h.p,{className:"more-button-item-name",children:o})]},X.b[t]);return"function"==typeof n?n(l):l},de=(e,t)=>{var{configurableFormStore:{chatGroupInfo:a}}=Object(k.d)(e);return X.d[X.b[t]]({isInChat:Boolean(a)})},ue=e=>"actual-actions-".concat(e),pe=e=>"virtual-actions-".concat(e),me=e=>Object($.a)(e)?null==e?void 0:e():e,he=e=>{var{id:t,ctxId:a,actions:r,onChange:i,children:n,main:o,vice:s}=e,{indexStore:c}=Object(d.useContext)(R.a),l=Object(d.useRef)(i),u=Object(d.useMemo)((()=>"".concat(t,"-").concat(Object(ee.a)())),[t]),p=Object(d.useCallback)((()=>{setTimeout((()=>{((e,t)=>{var a=!1;return()=>{if(!a){a=!0;var r=M.a.createSelectorQuery();r.selectAll("#".concat(pe(e)," .button-wrapper")).fields({size:!0}),r.select("#".concat(ue(e)," > .vice-actions")).fields({size:!0}),r.exec((e=>{var r;if(null!=e&&e.length){for(var[i,n]=e,{width:o=0}=null!=n?n:{},s=null!==(r=null==i?void 0:i.slice())&&void 0!==r?r:[],c=0,l=0;s.length;){var d,u=s.shift();(l+=null!==(d=null==u?void 0:u.width)&&void 0!==d?d:0)<o&&++c}null==t||t(c),a=!1}}))}}})(u,(e=>{var t;null===(t=l.current)||void 0===t||t.call(l,e||1)}))()}),0)}),[u]);Object(d.useEffect)((()=>(p(),Object(g.r)((()=>c.isCollapse),p,{fireImmediately:!0,delay:0}),tt.onWindowResize(p),()=>{tt.offWindowResize(p)})),[u,c.isCollapse,p]);return Object(D.jsxs)(d.Fragment,{children:[Object(D.jsx)(h.r,{id:ue(u),className:"actions-footer--actual",children:(()=>{if(Object(te.isElement)(n))return n;var e=me(o);return Object(D.jsxs)(d.Fragment,{children:[e&&Object(D.jsx)(h.r,{className:"main-actions",children:e}),Object(D.jsx)(h.r,{className:"vice-actions",children:me(s)})]})})()}),Object(D.jsx)(h.r,{id:pe(u),className:"actions-footer--virtual",children:r.slice().map((e=>ce({ctxId:a,type:e.type})))})]})},be=Object(B.c)("pc:src/components/approval-detail/actions-footer/index.tsx"),ge=Object(b.a)((i=class extends d.Component{constructor(e){super(e),Object(c.a)(this,"chatObserverMap",new Map),Object(c.a)(this,"onChatBadgeChange",(e=>{this.setState({badge:null==e?void 0:e.badge})})),Object(c.a)(this,"offBadgeListen",(()=>{var{ctxId:e}=this.props;if(e){var{configurableFormStore:{chatGroupInfo:t}}=Object(k.d)(e);t&&this.chatObserverMap&&this.chatObserverMap.has(t.openChatId)&&Object(z.j)(t.openChatId,this.onChatBadgeChange)}})),this.state={badge:0,actionsCanShowNum:1}}UNSAFE_componentWillMount(){var e=this;return Object(s.a)((function*(){yield e.getBadgeAndListenChange()}))()}UNSAFE_componentWillReceiveProps(e){var t=this;return Object(s.a)((function*(){e.detailId!==t.props.detailId&&(yield t.offAllBadgeListen(),yield t.getBadgeAndListenChange())}))()}componentWillUnmount(){this.offBadgeListen()}getBadgeAndListenChange(){var e=this;return Object(s.a)((function*(){var{ctxId:t}=e.props;if(t){var{configurableFormStore:{instanceInfo:a,chatGroupInfo:r},userStore:{userConfig:{web:{chat_switch:i}}},isInChat:n}=Object(k.d)(t);if(r||e.setState({badge:0}),!a||!r||n)return null;if(i&&Object(z.i)("3.11.999")&&a.chatId){var o=yield Object(z.g)(r.openChatId);e.setState({badge:null==o?void 0:o.badge});try{Object(z.k)(r.openChatId,e.onChatBadgeChange)}catch(e){Object(_.b)(W.f.ApprovalError,{location:"in function getBadgeAndListenChange at src/components/approval-detail/actions-footer/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),Y.a.error("监听出错",e)}e.chatObserverMap.set(r.openChatId,e.onChatBadgeChange)}}}))()}offAllBadgeListen(){var e=this;return Object(s.a)((function*(){try{for(var[t,a]of e.chatObserverMap)yield Object(z.j)(t,a)}catch(e){Object(_.b)(W.f.ApprovalError,{location:"in function offAllBadgeListen at src/components/approval-detail/actions-footer/index.tsx",message:JSON.stringify(e,Object.getOwnPropertyNames(e))}),Y.a.error("offListen error")}finally{e.chatObserverMap.clear()}}))()}handleButtonClick(e){var{onActionButtonClick:t}=this.props;t(X.b[e])}render(){var{badge:e,actionsCanShowNum:t}=this.state,{ctxId:a,detailId:r,actionButtonArray:i,isShowOperator:n}=this.props,{configurableFormStore:{isRollbackToStart:s,instanceInfo:c},detailModalStore:l}=Object(k.d)(a),u=l.isSaveEditLoading,{fieldPrivilege:p,currentTask:{originNodeType:m},allowResubmit:b}=c;if(i){var g=t>6?6:t,v=i.length>g,j=i.slice(0,v?g-1:void 0),O=v?i.slice(g-1):[],f={ctxId:a,badge:e,onClick:this.handleButtonClick.bind(this)},M=Object(D.jsx)(d.Fragment,{children:O.map((e=>le(Object(o.a)(Object(o.a)({},f),e))))}),_=()=>{if(!v)return null;var e=O.find((e=>e.guide));return Object(D.jsx)(h.r,{className:"popover-wrap",children:Object(D.jsx)(K.a,{renderContent:M,children:ce(Object(o.a)(Object(o.a)({},f),{},{type:X.b.MORE,guide:null==e?void 0:e.guide}))})})};return Object(D.jsx)(he,{ctxId:a,id:r,actions:i,onChange:e=>{this.setState({actionsCanShowNum:e})},main:()=>{if(!n)return null;if(s)return b?(be("operateAllowResubmit",{isRollbackToStart:s,allowResubmit:b}),ce(Object(o.a)(Object(o.a)({},f),{},{type:X.b.RESUBMIT}))):null;if(m===J.k.TRANSACT){var e=[{type:X.b.SUBMIT}],t=p?JSON.parse(p):null;return t&&t.writable&&t.writable.length&&e.push({type:X.b.SAVE_EDIT,disabled:u}),e.map((e=>ce(Object(o.a)(Object(o.a)({},f),e))))}return[X.b.AGREE,X.b.REJECT].map((e=>ce(Object(o.a)(Object(o.a)({},f),{},{type:e}))))},vice:()=>t<=0?null:Object(D.jsxs)(d.Fragment,{children:[j.map((e=>ce(Object(o.a)(Object(o.a)({},f),e)))),_()]})})}}},Object(c.a)(i,"defaultProps",{isShowOperator:!0}),r=i))||r,ve=(a(1253),a(40)),je=a(22),Oe=a(25),fe=e=>{var t,{instanceStatus:a,modifyInstanceList:r,originalModifyStatus:i,currentTask:{originNodeType:n}}=e,o=a===y.d.IN_PROCESS,s=a===y.d.APPROVED,c=Boolean(r)&&r.length>0;return{isPending:o,isComplete:s,hasModified:c,isModifyOrigin:c&&void 0!==i,isNewModifyApproval:c&&void 0===i,isModifyPending:i===y.d.MODIFY_IN_PROCESS,isModifyComplete:i===y.d.MODIFY_APPROVED,hasRevertFlow:Boolean(null===(t=e.instanceIdList)||void 0===t?void 0:t.length),isTransactor:n===J.k.TRANSACT}};function Me(e,t){var a,r,i,n,o,s,{configurableFormStore:{instanceInfo:c,parentId:l,approvalNodeDTOList:d,isRollbackToStart:u,attendanceSeal:p},userStore:m,isInChat:h}=Object(k.d)(e);if(c&&m){var{forAtEdit:b}=null!=t?t:{},{currentUser:{userId:g},userConfig:{web:v={chat_switch:!1}}}=m,{chat_switch:j}=v,{currentTask:{approverList:O,endCcs:f,originNodeType:M,taskStatus:_},creatorUserId:N,allowDelivery:A,allowAddApprover:T,allowRollback:I,allowSubmitAgain:C,editUserDTOList:x,instanceStatus:S,isRelatedUser:w,allowRevert:L,startCcs:E,shareCode:z,instanceOperation:P,isBlockApprovalInstance:U,enableTrusteeship:B,insteadCreator:Y}=c;if(S!==y.d.CLEARED){var Q=B||b,G=[];if(P){var{allowChat:W,allowComment:V}=P;return V&&G.push({type:X.b.COMMENT}),W&&G.push({type:X.b.CHAT}),G}var H=33===_,Z=O.map((e=>e.userId)),q=Z.includes(g)||Y&&Z.includes(Y.userId),K=N===g||Y&&Y.userId===g,$=S===y.d.IN_PROCESS,ee=null==E?void 0:E.some((e=>{var{userId:t}=e;return t===g})),te=null==f?void 0:f.some((e=>{var{userId:t}=e;return t===g})),ae=Boolean(null===(a=R.b.indexStore.todoStore.baseStore.countTaskData)||void 0===a||null===(r=a.Definitions)||void 0===r||null===(i=r["feishu:".concat(c.approvalDefinitionId)])||void 0===i?void 0:i.AllowBatchOperate),re=(null===(n=R.b.indexStore.todoStore.baseStore.activeDetailItem)||void 0===n?void 0:n.Attributes)||[],ne="6"===(null===(o=re.find((e=>{var{Key:t}=e;return"node_origin_type"===t})))||void 0===o?void 0:o.Value),oe="true"===(null===(s=re.find((e=>{var{Key:t}=e;return"require_user_input"===t})))||void 0===s?void 0:s.Value),{selectedSubMenu:se,selectedKey:ce}=R.b.indexStore.menuStore,le=se===je.a.Todo&&ce!==je.a.Todo,de=M===J.k.TRANSACT;if((w||K||q||ee||te||z&&!l)&&!Q&&G.push({type:X.b.COMMENT}),j&&!h&&w&&!Q&&G.push({type:X.b.CHAT}),$&&K&&O.length>=(q?2:1)&&!u&&G.push({type:X.b.REMINDER}),1===A&&$&&q&&!u&&!H&&G.push({type:X.b.TRANSFER}),w&&G.push({type:X.b.CC}),$&&q&&1===T&&!H&&!de&&G.push({type:X.b.ADD_APPROVER}),!($&&q&&1===T&&x.length)||1===x.length&&x[0].userId===g||H||de||G.push({type:X.b.DELETE_APPROVER}),$&&q&&I&&d.length>1&&!H&&!de&&G.push({type:X.b.ROLLBACK,disabled:U,decorator:U?e=>Object(D.jsx)(ve.c,{arrow:!0,text:Object(F.t)("widgets.cloudDocBlock.disableRollbackTip","文档中发起的审批暂不支持退回"),children:e}):void 0}),((e,t)=>{var{creatorUserId:a,insteadCreator:r}=e,{hasModified:i,isPending:n,isComplete:o,isModifyPending:s,isModifyOrigin:c,isNewModifyApproval:l,hasRevertFlow:d,isTransactor:u}=fe(e),{userId:p}=t.currentUser;return!!(a===p||r&&r.userId===p)&&!d&&!u&&(!(i||!n&&!o)||!(!c||s)||l&&o)})(c,m)){var ue="new_feature_guide.operate_modify",pe=ie.a.getSync(ue),me=((e,t)=>{if(t.isSeal)return t.tooltip||Object(F.t)("Detail_ForbiddenModify");var{forbidModify:a}=e,{isPending:r,isNewModifyApproval:i,isComplete:n,isModifyOrigin:o,isModifyComplete:s}=fe(e);switch(!0){case r:return Object(F.t)("withdrawAndResubmit");case a===y.g.HAS_OTHER_GROUP:return Object(F.t)("NowNotSupportModify");case a===y.g.FORBID_MODIFY:return Object(F.t)("Detail_ForbiddenModify");case a===y.g.MODIFY_EXPIRED:return Object(F.t)("Detail_ModifyOverdue");case o&&s:case i&&n:return Object(F.t)("Detail_AllowToModifyOnce");default:return""}})(c,p),he=Boolean(me),be=!pe&&!he&&!Oe.d.isBytedance;G.push({type:X.b.MODIFY,disabled:he,decorator:he?e=>Object(D.jsx)(ve.c,{arrow:!0,text:me,children:e}):void 0,guide:be?{knownKey:ue,content:Object(F.t)("new_feature_guide.operate_modify.content")}:void 0})}if(((e,t)=>{var{creatorUserId:a,insteadCreator:r,forbidRevoke:i}=e;if(i)return!1;var{userId:n}=t.currentUser;if(!(a===n||r&&r.userId===n))return!1;var{isPending:o,isComplete:s,hasModified:c}=fe(e);return!(c||!o&&!s)||c&&!s})(c,m)){var ge=1!==L||(null==p?void 0:p.isSeal),Me=null!=p&&p.isSeal?null==p?void 0:p.tooltip:$?Object(F.t)("Detail.CannotWithdrawAfterPassingFirstApprovalNode"):Object(F.t)("Detail.CannotWithdrawOrOverdue");G.push({type:X.b.WITHDRAW,disabled:ge,decorator:ge?e=>Object(D.jsx)(ve.c,{arrow:!0,text:Me,children:e}):void 0})}return C&&G.push({type:X.b.SUBMIT_AGAIN,disabled:U,decorator:U?e=>Object(D.jsx)(ve.c,{arrow:!0,text:Object(F.t)("widgets.cloudDocBlock.disableResubmitTip","文档中发起的审批不支持再次提交"),children:e}):void 0}),!(Oe.d.fgBatchApprovalNext&&ae&&le)||u||ne||oe||H||G.push({type:X.b.BATCH_OPERATE}),G}}}var _e,ye,De,Ne,Ae=a(74),Te=(_e=class{constructor(){Object(n.a)(this,"candidateListLoading",ye,this),Object(n.a)(this,"candidateList",De,this),Object(c.a)(this,"fetchReminderList",Object(g.k)(this._fetchReminderList)),Object(c.a)(this,"requestToReminder",Object(g.k)(this._requestToReminder))}clearCandidateList(){this.candidateList=[]}*_fetchReminderList(e){this.candidateListLoading=!0;var t={procInstId:e};try{var a=(yield U.c.urgentapproverList(t)).data.t;this.candidateList=a.map((e=>({type:Ae.a.PERSON,id:e.userId,title:e.userName,avatarUrl:e.userAvatarUrl,taskId:e.taskId,children:null})))}catch(e){Y.a.error(e),this.candidateList=[],Object(_.b)(W.f.ApprovalError,{location:"in function fetchReminderList at src/components/approval-detail/modals/reminder-modal/reminder-modal-store.ts",message:JSON.stringify(e)})}finally{this.candidateListLoading=!1}}*_requestToReminder(e){var{instanceId:t,targets:a}=e;return new Promise(function(){var e=Object(s.a)((function*(e){var r={procInstId:t,targets:a,urgeType:1};try{yield U.c.urgentbatchCreate(r),e(void 0)}catch(e){Object(_.b)(W.f.ApprovalError,{location:"in function requestToReminder at src/components/approval-detail/modals/reminder-modal/reminder-modal-store.ts",message:JSON.stringify(e)})}}));return function(t){return e.apply(this,arguments)}}())}},ye=Object(l.a)(_e.prototype,"candidateListLoading",[g.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),De=Object(l.a)(_e.prototype,"candidateList",[g.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(l.a)(_e.prototype,"clearCandidateList",[g.f],Object.getOwnPropertyDescriptor(_e.prototype,"clearCandidateList"),_e.prototype),_e),Ie=a(42);!function(e){e[e.SUCCESS=0]="SUCCESS",e[e.STOPED_ENABLE_USE=10030]="STOPED_ENABLE_USE",e[e.DELETED=10003]="DELETED",e[e.NO_VISIBLE_AUTH=10112]="NO_VISIBLE_AUTH",e[e.REMEDY=-199]="REMEDY",e[e.ISV=-1999]="ISV"}(Ne||(Ne={}));var Ce={[Ne.STOPED_ENABLE_USE]:Object(F.t)("Resubmit.DefinitionDisabled"),[Ne.DELETED]:Object(F.t)("Resubmit.DefinitionDeleted"),[Ne.NO_VISIBLE_AUTH]:Object(F.t)("Resubmit.DefinitionInvisible"),[Ne.REMEDY]:Object(F.t)("Resubmit.SubmitInAttendance"),[Ne.ISV]:Object(F.t)("Resubmit_SubmitInISV")};function xe(e){return Se.apply(this,arguments)}function Se(){return Se=Object(s.a)((function*(e){var{aid:t,instanceId:a,appName:r,widgets:i,modifying:n,enableCheckCreatePrepareApi:o}=e;try{if(new RegExp('"type":\\s?"remedyGroup"',"g").test(JSON.stringify(i)))throw new Error(Ce[Ne.REMEDY]);var s=o?U.c.checkInstanceCreatePrepare:U.c.instancecreatePrepare;return yield s({approvalId:t,instanceId:a,modifying:n},{errHandler:e=>{if(e===Ne.STOPED_ENABLE_USE||e===Ne.DELETED||e===Ne.NO_VISIBLE_AUTH){var t=e;return e===Ne.NO_VISIBLE_AUTH&&r&&(t=Ne.ISV,Ce[Ne.ISV]=Object(F.t)("Resubmit_SubmitInISV",{name:r})),M.a.showToast({title:Ce[t],icon:"error",duration:3e3}),Object(_.b)("pc_mp_operate_error",{error_message:JSON.stringify(Ce[e])}),!0}return!1}}),!0}catch(e){return e.message!==Ce[Ne.REMEDY]&&e.message!==Ce[Ne.ISV]||(M.a.showToast({title:e.message,icon:"error",duration:3e3}),Object(_.b)("pc_mp_operate_error",{error_message:e.message})),!1}})),Se.apply(this,arguments)}var we,Le,Ee,ke=a(526),ze=a(21),Re=a(662),Pe=a(109),Ue=a(503),Be=a.n(Ue),Fe=Object.assign(u.a.memo((e=>{var{text:t,children:a,style:r,className:i,tooltipPosition:n="bottom"}=e,o=Object(d.useMemo)((()=>t||a||""),[t,a]),[s,c]=Object(d.useState)(o),l=Object(d.useRef)("".concat(Ye).concat(Fe.$())).current,[p,m]=["".concat(l,"__Char"),"".concat(l,"__Text")],b=Object(d.useCallback)((()=>{var e=M.a.createSelectorQuery();e.selectAll(".".concat(p)).fields({size:!0}),e.select(".".concat(m)).fields({size:!0}),e.exec((e=>{var t,a,[r,i]=e,n=null!==(t=null==r||null===(a=r.slice)||void 0===a?void 0:a.call(r))&&void 0!==t?t:[],s=n.reduce(((e,t)=>{var a;return e+(null!==(a=null==t?void 0:t.width)&&void 0!==a?a:0)}),0),l=null!=i?i:{},{width:d=0}=l;if(Object(_.b)("create_selector_query",{target:"MiddleEllipsis",result:e,charsInResult:r,textWrapper:i,chars:n,textRealWidth:s,textWrapperWidth:d}),console.debug("create_selector_query",{target:"MiddleEllipsis",result:e,charsInResult:r,textWrapper:i,chars:n,textRealWidth:s,textWrapperWidth:d}),s+12<d||!n.length)return c(o);for(var u=[12],p=e=>e.reduce(((e,t)=>{var a;return null!==(a=e+t)&&void 0!==a?a:0}),0),m=e=>{var t;return null!==(t=null==e?void 0:e.width)&&void 0!==t?t:0},h=["..."],[b,g]=[0,n.length-1];b<g&&d>m(n[b])+p(u)&&(u.push(n[b++].width),d>m(n[g])+p(u));)u.unshift(n[g--].width);h.push(o.slice(g+1)),h.unshift(o.slice(0,b)),c(h)}))}),[o,p,m]);return Object(d.useEffect)((()=>{setTimeout(b,0)}),[b]),Object(Pe.e)(b),Object(D.jsxs)(u.a.Fragment,{children:[Object(D.jsx)(h.r,{className:j()(Be.a.MiddleEllipsisWrapper),children:o.split("").map(((e,t)=>Object(D.jsx)(h.p,{className:j()(Be.a.MiddleEllipsis,Be.a.MiddleEllipsisChar,p),children:e.replace(" ","&nbsp")},"".concat(e).concat(t))))}),Object(D.jsx)(h.r,{className:j()(Be.a.MiddleEllipsis,Be.a.MiddleEllipsisText,m,i),style:r,children:Object(D.jsx)(ve.c,{arrow:!0,position:n,text:o,style:{width:"fit-content"},textStyle:{maxWidth:"calc(100% + 48px)",whiteSpace:"normal"},children:s||o})})]})})),{__ID__:0,$:()=>Fe.__ID__++}),Ye="MiddleEllipsis__".concat("".concat(Math.random()).slice(2)),Qe=a(336),Ge=a.n(Qe),We=a(192),Ve=(a(1254),e=>{var{hasModified:t,instanceInfo:a,isNewApproval:r}=e,{originalModifyStatus:i}=a,{isCreateNav:n}=R.b.indexStore,o="modify-notice";if(!t||r)return null;var s=()=>{if(n)switch(i){case y.d.MODIFY_REJECT:return Object(F.t)("ModifyReject");case y.d.MODIFY_WITHDRAW:return Object(F.t)("ModifyWithDraw");default:return""}else switch(i){case y.d.MODIFY_APPROVED:return Object(F.t)("Detail_modifyed");case y.d.MODIFY_IN_PROCESS:return Object(F.t)("Detail_isModifying");case y.d.MODIFY_REJECT:return Object(F.t)("Detail_modifyRejected");case y.d.MODIFY_WITHDRAW:return Object(F.t)("Detail_modifyWithdrawed");default:return""}};return s()?Object(D.jsxs)(h.r,{className:"".concat(o),children:[Object(D.jsx)(h.r,{className:j()("".concat(o,"--icon"),"iconfont","icon-icon-info1")}),Object(D.jsx)(h.r,{className:"".concat(o,"--content"),children:s()})]}):null}),He=a(527),Ze=a(219),qe=a(169),Ke=Object(B.c)("pc:src/components/approval-detail/index.tsx"),Je=-1,Xe=Object(b.a)((Le=class extends d.Component{constructor(){var e;super(...arguments),e=this,Object(c.a)(this,"state",{isCommentActive:!1,isRollbackActive:!1,scrollTop:0,actionType:"",notNextToastVisible:!1}),Object(c.a)(this,"customCtx",{reminderModalStore:new Te}),Object(c.a)(this,"innerCtxId",void 0),Object(c.a)(this,"counter",void 0),Object(c.a)(this,"onDeleteComment",function(){var t=Object(s.a)((function*(t,a){var{ctxId:r}=e.props,{detailModalStore:i}=Object(k.d)(r),n=yield null==i?void 0:i.deleteCommentModal({ctxId:r,data:{commentId:t,instanceId:a}});Y.a.info("onDeleteComment",n),e.onDeleteCommentSuccess(t,a)}));return function(e,a){return t.apply(this,arguments)}}()),Object(c.a)(this,"onRollbackSubmit",function(){var t=Object(s.a)((function*(t){var{ctxId:a,parentId:r,onFinished:i,cardId:n}=e.props;if(!a)return null;var{configurableFormStore:s}=Object(k.d)(a),{instanceInfo:c}=s;if(!c)return null;var{taskId:l,instanceId:d}=c,u=Object(o.a)(Object(o.a)({},t),{},{taskId:l,instanceId:d,type:"4",commentVersion:O.i});try{yield U.c.instanceoperate(u),s.fetchInstance({id:d,parentId:r}),Object(_.b)("pc_mp_click",{action:"rollback",addition:(t&&t.reason&&t.reason.files&&t.reason.files.length?t.reason.files.length:0).toString()}),null==i||i(n||"")}catch(e){Object(_.b)("pc_mp_operate_error",{error_message:Object(Q.a)(e)}),s.fetchInstance({id:d,parentId:r})}}));return function(e){return t.apply(this,arguments)}}()),Object(c.a)(this,"onActionModalOk",(e=>{Y.a.info(e);var{ctxId:t}=this.props,{configurableFormStore:a,isInChat:r}=Object(k.d)(t),{instanceInfo:i}=a;if(null!==i){var{actionType:n}=this.state;R.b.globalStore.enableQuicklyApproval?a.fetchInstance({id:i.instanceId}):n!==X.b.WITHDRAW&&n!==X.b.SAVE_EDIT?R.b.indexStore.underCeoNav?a.fetchInstance({id:i.instanceId}):r&&(this.setState({notNextToastVisible:!0}),a.fetchInstance({id:i.instanceId}),setTimeout((()=>this.setState({notNextToastVisible:!1})),3e3)):a.fetchInstance({id:i.instanceId})}})),Object(n.a)(this,"onActionButtonClick",Ee,this),Object(c.a)(this,"handleChatClick",Object(s.a)((function*(){var{ctxId:t}=e.props;if(t){var{userStore:{userConfig:{web:{chat_switch:a}}},configurableFormStore:{chatGroupInfo:r,instanceInfo:i}}=Object(k.d)(t);if(i){var{name:n=""}=r||{},{chatId:o}=i,s=Boolean(o||n);if(Object(_.b)("group_create_click",{role:e.getChatRole()}),R.b.indexStore.searchStore.isSubSearch&&Object(_.b)(W.f.SearchViewSubsLeaderAction,{leader_click:"discuss"}),!Object(z.i)("3.11.999")&&a){var c=Object(F.t)("ClientName");return Object(z.p)({content:Object(F.t)("UpdateClientHint",{name:c,version:"3.12.0"}),showCancel:!1}),void Object(_.b)("pc_mp_chat_info",{info:"version is lower than 3.12.0"})}if(r)e.handleClickChatSuccess();else try{return void((yield Object(z.p)({content:Object(F.t)("DiscussionGroup.GroupMemberHintNew")})).confirm&&(e.handleClickChatSuccess(),Object(_.b)("pc_mp_click",{action:s?"join_chat_group_success":"create_chat_group_succedd"})))}catch(e){Object(_.b)(W.f.ApprovalError,{location:"in function handleChatClick at /src/components/approval-detail/index.tsx",message:JSON.stringify(e)})}}}}))),Object(c.a)(this,"handleClickChatSuccess",Object(P.c)(Object(s.a)((function*(){var{ctxId:t}=e.props;if(t){var a,{configurableFormStore:r,configurableFormStore:{instanceInfo:i,chatGroupInfo:n}}=Object(k.d)(t);i&&(n?(Object(_.b)("group_enter",{role:e.getChatRole()}),yield r.addChatter(i.instanceId),a=n,Object(_.b)("pc_mp_chat_info",{info:"join in a chat group"})):(a=(yield r.createChatgroup(i.instanceId)).data,Object(_.b)("group_enter",{role:e.getChatRole()}),Object(_.b)("pc_mp_chat_info",{info:"create a new chat group"})),void 0!==a.openChatId&&Object(z.e)(a.openChatId),n||(yield r.fetchChatGroupInfo(i.instanceId,!1)))}})),2e3)),Object(c.a)(this,"getChatRole",(()=>{var e=y.e.OTHER,{ctxId:t}=this.props;if(!t)return e;var{userStore:{currentUser:{userId:a}},configurableFormStore:{instanceInfo:r}}=Object(k.d)(t);if(!r)return e;var{currentTask:{approverList:i},creatorUserId:n,timeline:o}=r,s=i.map((e=>e.userId)).includes(a),c=n===a,l=o.some((e=>(e.endCcs&&e.endCcs.length&&e.endCcs.some((e=>e.userId===a)),!1)));return s?e=y.e.APPROVER:c?e=y.e.REQUESTER:l&&(e=y.e.CCER),e})),Object(c.a)(this,"handlePrintBtnClick",(e=>{if(Je!==e.timeStamp){Je=e.timeStamp;var{ctxId:t,aid:a}=this.props,{configurableFormStore:r}=Object(k.d)(t),{indexStore:i,globalStore:n}=R.b;i.detailModuleStore.printByInstanceId(a,!1,n,r)}})),Object(c.a)(this,"handleAvatarImgClick",(e=>{var{ctxId:t}=this.props,{configurableFormStore:{instanceInfo:a}}=Object(k.d)(t);a&&Object(z.q)(a.creatorUserId,e,this.$scope,".detail-header .avatar")})),Object(c.a)(this,"changeScroll",(e=>{var{configurableFormStore:t}=Object(k.d)(this.innerCtxId);t.changeScrollTop(e.detail.scrollTop)})),Object(c.a)(this,"renderDetail",(()=>{var{ctxId:e,forAtEdit:t,isQuickApproval:a}=this.props;if(!e)return null;var{configurableFormStore:{instanceInfo:r},userStore:i,isInRelative:n}=Object(k.d)(e),{currentUser:{userId:o}}=i,{isCommentActive:s,scrollTop:c,isRollbackActive:l,actionType:d,notNextToastVisible:u}=this.state;if(!r)return null;var{instanceStatus:p,modifyInstanceList:m,currentTask:{approverList:b,taskStatus:g},enableTrusteeship:v}=r,O=!a&&(v||t),f=Me(e,{forAtEdit:t}),M=b.map((e=>e.userId)).includes(o),_=p===y.d.IN_PROCESS&&M&&(R.b.indexStore.likeTodoNav||R.b.indexStore.isDataExportTab)&&33!==g,{isBatchMode:T}=R.b.indexStore.todoStore;return Object(D.jsxs)(h.a,{children:[Object(D.jsx)(h.n,{className:"".concat(j()("approval-detail-content",{"no-padding":n||!(null!=f&&f.length)})," scroll-detail"),scrollY:!0,"scroll-top":c,onScroll:this.changeScroll,children:Object(D.jsxs)(h.r,{className:"approval-detail-content-inner",style:{marginBottom:l?"16px":"88px"},children:[Object(D.jsx)(h.r,{className:"header-wrap",children:this.renderInstanceHeader()}),Object(D.jsx)(h.r,{className:"top-divider-wrap",children:Object(D.jsx)(N,{})}),Object(D.jsx)(A.a,{hidden:l,children:this.renderInstanceBody()}),Object(D.jsx)(N,{}),Object(D.jsx)(A.a,{hidden:l||O,children:null!=m&&m.length?this.renderModifyInstanceFooter():this.renderInstanceFooter()})]})}),Boolean(null==f?void 0:f.length)&&!T&&Object(D.jsx)(h.r,{className:"approval-detail-actions",children:Object(D.jsx)(A.a,{hidden:s||l||n,children:Object(D.jsx)(ge,{detailId:r.instanceId,ctxId:e,actionButtonArray:f,isShowOperator:_,onActionButtonClick:this.onActionButtonClick,forAtEdit:t})})}),Object(D.jsx)(h.r,{className:j()("toast-next",{visible:u}),children:Object(D.jsx)(h.r,{children:Object(D.jsx)(h.r,{children:X.a[d]})})})]})}))}onCommentSuccess(e){var t=this;return Object(s.a)((function*(){var{content:a,atInfoList:r,response:i}=e,{ctxId:n}=t.props,{configurableFormStore:o,userStore:s,detailModalStore:c}=Object(k.d)(n),{instanceInfo:l}=o,{currentUser:d}=s;if(a&&l){var{newComments:u}=l;Object(g.s)((()=>{var e;u.push({id:null===(e=i.data.comment)||void 0===e?void 0:e.id,content:a,atInfoList:r,createTime:Date.now(),commentator:{AvatarUrl:d.avatarUrl,UserId:d.userId,Name:d.name}})})),yield Object(P.s)(500);try{var p=yield null==c?void 0:c.getLastCommentRect(),[m,h]=yield new Promise(((e,a)=>{var r=tt.createSelectorQuery().in(t.$scope),i=r.select(".scroll-detail");i.boundingClientRect(),i.scrollOffset(),r.exec((function(t){t?e(t):a()}))})),b=p?p.top-m.top:0;t.setState({scrollTop:b+h.scrollTop-60})}catch(e){Object(_.b)(W.f.ApprovalError,{location:"in function onCommentSuccess at /src/components/approval-detail/index.tsx",message:JSON.stringify(e)})}Object(_.b)("instance_comment")}}))()}onDeleteCommentSuccess(e,t){var{ctxId:a}=this.props,{configurableFormStore:r}=Object(k.d)(a),{instanceInfo:i,originalProcessMap:n}=r;if(i)if(t){var s=null==n?void 0:n.get(t);if(!s)return;var{processData:c}=s;null==c||c.forEach((t=>{if(t.status===ze.k.COMMENT){var a=t.childrens,r=a.findIndex((t=>{var a,r;return(null==t||null===(a=t.ext)||void 0===a||null===(r=a.commentData)||void 0===r?void 0:r.id)===e}));if(-1===r)return;Object(g.s)((()=>{a[r].ext.commentData.isDelete=1,a[r].ext.commentData.updateTime=Date.now()}))}}))}else{var{newComments:l}=i,d=l.findIndex((t=>t.id===e));-1!==d&&Object(g.s)((()=>{l[d]=Object(o.a)(Object(o.a)({},l[d]),{},{isDelete:1,updateTime:Date.now()})}))}}render(){var{ctxId:e}=this.props;if(!e)return null;var{configurableFormStore:{instanceInfo:t,fetchInstanceError:a}}=Object(k.d)(e);return Boolean(t)||a?Object(D.jsx)(h.r,{className:"approval-detail",id:"approval-detail-id",children:a?this.renderCrash(a):this.renderDetail()},"".concat(null==t?void 0:t.instanceId)):null}postReadItems(e){e||Y.a.error("ctxId 为空")}renderInstanceHeader(){var{ctxId:e,shouldShowSerialID:t=!1,forAtEdit:a,isQuickApproval:r}=this.props,{configurableFormStore:{instanceInfo:i}}=Object(k.d)(e);if(!i)return null;var{creatorUserAvatarUrl:n,creatorDepartmentList:o,creatorUserName:s,enableTrusteeship:c}=i,l=o.join("/"),{titleContent:d,isNewApproval:u,finalInstanceStatus:p,hasModified:m}=Object(He.a)(i,R.b.indexStore.isCreateNav),b=!r&&(c||a),g=z.a;return Object(D.jsxs)(h.r,{className:"detail-header",children:[t&&Object(D.jsxs)(h.r,{className:"detail-header__serial-id",children:[Object(D.jsx)(Re.a,{ctxID:e,tooltipPosition:"right",style:{position:"relative",left:-4},innerClassName:"detail-header__serial-id__inner"}),g&&!b&&Object(D.jsx)(h.r,{className:Ge.a.icon,onClick:this.handlePrintBtnClick,children:Object(D.jsx)(h.g,{src:w.a,className:Ge.a.icon__image})})]}),Object(D.jsxs)(h.r,{className:"detail-header__title",children:[Object(D.jsx)(h.r,{className:"detail-header__title__name",children:Object(D.jsx)(Ie.a,{content:d,keyword:""})}),Object(D.jsx)(h.r,{className:"detail-header__title__tag",children:Object(D.jsx)(We.c,{status:p})})]}),Object(D.jsxs)(h.r,{className:"detail-header__user-info",children:[Object(D.jsxs)(h.r,{className:"detail-header__creator",children:[Object(D.jsx)(h.g,{className:"detail-header__creator__avatar",src:n,onClick:this.handleAvatarImgClick}),Object(D.jsx)(h.r,{className:"detail-header__creator__name",children:Object(D.jsx)(h.p,{selectable:!0,children:s})})]}),Object(D.jsx)(h.r,{className:"department",children:Object(D.jsx)(Fe,{text:null!=l?l:""})})]}),Object(D.jsx)(Ve,{hasModified:m,instanceInfo:i,isNewApproval:u})]})}renderInstanceBody(){var{ctxId:e}=this.props,{configurableFormStore:{instanceInfo:t}}=Object(k.d)(e);if(!t)return null;var{modifyReason:a}=t,r=Object(He.b)(t,R.b.indexStore.isCreateNav);return Object(D.jsxs)(h.r,{className:"detail-body",children:[r&&a&&Object(D.jsx)(E.a,{content:a,isLastComment:!1,ctxId:e,withQuote:!1,commentTitle:Object(F.t)("Detail_modifyReason"),fullWidth:!0}),Object(D.jsx)(q.a,{ctxId:this.innerCtxId,isInDetailPage:!0,currentActive:R.b.indexStore.currentActive,currentNav:R.b.indexStore.currentNav})]})}renderInstanceFooter(){var{ctxId:e}=this.props,{configurableFormStore:t}=Object(k.d)(e),{instanceInfo:a}=t;if(!a)return null;var{instanceIdList:r}=a,i=Object(F.t)("Detail.Process"),n=!1;if(r&&r.length){var o=r.length>1?"".concat(r.length):"";i="".concat(Object(F.t)("Detail_CanceledInstance")," ").concat(o),n=!0}return Object(D.jsxs)(h.r,{className:"detail-footer",children:[r&&r.length>0&&r.map(((t,a)=>{var r=0===a?Object(F.t)("Detail_OriginInstance"):"".concat(Object(F.t)("Detail_CanceledInstance")," ").concat(a);return Object(D.jsx)(L.a,{ctxId:e,instanceId:t,title:r,isOriginal:0===a,onDeleteComment:this.onDeleteComment,hasOtherFlow:n},t)})),Object(D.jsx)(L.a,{ctxId:e,title:i,isOriginal:!n,onDeleteComment:this.onDeleteComment,hasOtherFlow:n},"flow_default")]})}renderModifyInstanceFooter(){var{ctxId:e}=this.props,{configurableFormStore:t}=Object(k.d)(e),{instanceInfo:a}=t;if(!a)return null;var{modifyInstanceList:r,instanceId:i}=a;return Object(D.jsx)(h.r,{className:"detail-footer",children:null!=r&&r.length?r.map(((t,a)=>{var n=r.length>2?"".concat(Object(F.t)("ModifyProcess")).concat(a):Object(F.t)("ModifyProcess"),o=0===a,s=t===i;return Object(D.jsx)(L.a,{ctxId:e,instanceId:s?"":t,title:o?Object(F.t)("Detail_OriginInstance"):n,isOriginal:o,hasOtherFlow:!0,defaultExpand:s,onDeleteComment:this.onDeleteComment,isLastFlow:a===r.length-1},t)})):null})}renderCrash(e){return Object(D.jsx)(h.r,{className:"detail-crash",children:e.code===G.a.NoPermission||(e.code||e.bizCode)===G.a.AtNoPermission?Object(D.jsxs)(u.a.Fragment,{children:[Object(D.jsx)(h.g,{src:x.a,className:"img-crash"}),Object(D.jsx)(h.r,{className:"crash-msg",children:Object(F.t)("Detail.NoPermission")})]}):Object(D.jsxs)(u.a.Fragment,{children:[Object(D.jsx)(h.g,{src:I.a,className:"img-crash"}),Object(D.jsx)(h.r,{className:"crash-msg",children:Object(F.t)("PC.Error_GetDetail")})]})})}UNSAFE_componentWillMount(){var{ctxId:e}=this.props;this.innerCtxId=Object(k.c)(Object(k.d)(e),this.customCtx,this),this.postReadItems(e)}componentWillUnmount(){Y.a.info("detail componentWillUnmount"),this.counter&&clearTimeout(this.counter),Object(k.b)(this)}UNSAFE_componentWillReceiveProps(e){var{ctxId:t}=e,{configurableFormStore:{fetchInstanceError:a}}=Object(k.d)(t);a||(this.postReadItems(t),this.setState({isRollbackActive:!1}))}},Ee=Object(l.a)(Le.prototype,"onActionButtonClick",[g.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){var t=Object(s.a)((function*(t){var{ctxId:a,onFinished:r,cardId:i,refreshAt:n}=e.props,{configurableFormStore:o,detailModalStore:c,isInChat:l}=Object(k.d)(a),{instanceInfo:d,currentNodeApproverList:u,widgets:p}=o;if(!d||!c)return null;var{instanceName:h,creatorUserName:b,approvalDefinitionId:g,instanceId:v,taskId:j,instanceStatus:O,endTime:f,revertInterval:D,newComments:N,appName:A,modifyInstanceList:T,isBlockApprovalInstance:I,currentTask:C}=d,{signatureConfig:x,isReuseSignature:S,signatureUrl:w,signatureKey:L}=d,E={mustSignatureList:[X.b.AGREE,X.b.ADD_APPROVER],type:t},z=Object(V.b)(E,{signatureConfig:x,isReuseSignature:S,signatureUrl:w,signatureKey:L}),U=Boolean(T&&T.length>0),{requireApprovalComment:B=!1}=C,Q=function(){var e=Object(s.a)((function*(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(yield xe({aid:g,instanceId:v,widgets:p,appName:A,modifying:e,enableCheckCreatePrepareApi:R.b.globalStore.enableCheckCreatePrepareApi})){var t="/pc/pages/requested/index",a=M.a.getCurrentPages();if(a&&a.length){var r=a[a.length-1];r.__route__&&(t="/".concat(r.__route__))}M.a.navigateTo({url:"/pc/pages/create-form/index?id=".concat(g,"&instanceId=").concat(v,"&fromUrl=").concat(t,"&inner=1").concat(e?"&modify=1":"")})}}));return function(){return e.apply(this,arguments)}}();e.setState({actionType:t});var G={instanceId:v,taskId:j};if(t===X.b.COMMENT){if(Ke("operateComment",G),N.length>=500)return void M.a.showToast({title:Object(F.t)("Comment_OverCount")});var q=yield c.standardModal({title:Object(F.t)("Detail.Comment"),actionType:X.b.COMMENT,ctxId:a,instanceId:v,hasReason:!0,signatureData:z,taskId:j,enableReminder:yield Object(H.a)(Z.FG_COMMENT_AT_PERSON)});e.onCommentSuccess(q)}if(t===X.b.ROLLBACK){Ke("operateRollback",G);var K=yield c.rollbackModal({ctxId:a,isReasonTextRequired:B,instanceId:v});e.onRollbackSubmit(K)}if(t===X.b.RESUBMIT){if(Ke("operateResubmit",G),!(yield o.validateAll()))return void(o.validateMessage&&M.a.showToast({title:o.validateMessage,icon:"error",duration:3e3}));var J=yield c.standardModal({ctxId:e.innerCtxId,title:X.c.RESUBMIT(b,h),actionType:X.b.AGREE,hasReason:!0,instanceId:v,signatureData:z,taskId:j});J&&(J.data.nextInstanceId||""===J.data.nextInstanceId)&&(e.onActionModalOk(J.data.nextInstanceId),Object(_.b)("operate_instance",{operate_type:0,source:"detail"})),null==r||r(i||"")}if(y.d.IN_PROCESS!==O&&(t===X.b.MODIFY||t===X.b.WITHDRAW))try{if(!(yield Object(qe.c)(d)))return}catch(e){}if(t===X.b.AGREE){if(Ke("operateAgree",G),!(yield o.validateAll()))return void(o.validateMessage&&M.a.showToast({title:o.validateMessage,icon:"error",duration:3e3}));var $=yield c.standardModal({ctxId:e.innerCtxId,title:X.c.AGREE(b,"".concat(h).concat(U?"(".concat(Object(F.t)("ModifyTag"),")"):"")),actionType:t,hasReason:!0,isReasonTextRequired:B,signatureData:z,taskId:j,instanceId:v});Y.a.error("agree",$),Object(_.b)("pc_mp_click",{action:"agree"}),$&&($.data.nextInstanceId||""===$.data.nextInstanceId)&&(e.onActionModalOk($.data.nextInstanceId),Object(_.b)("operate_instance",{operate_type:0,source:"detail"})),tt.showToast({title:Object(F.t)("Operation.AgreeSuccess","操作成功"),icon:"success"}),null==r||r(i||"")}if(t===X.b.REJECT){Ke("operateReject",G);var ee=yield c.standardModal({ctxId:e.innerCtxId,title:"".concat(X.c.REJECT(b,"".concat(h).concat(U?"(".concat(Object(F.t)("ModifyTag"),")"):""))).concat(U?Object(F.t)("RejectWillRecover"):""),actionType:t,hasReason:!0,isReasonTextRequired:B,instanceId:v,signatureData:z,taskId:j});Y.a.error("REJECT",ee),Object(_.b)("pc_mp_click",{action:"reject"}),ee&&(ee.data.nextInstanceId||""===ee.data.nextInstanceId)&&(e.onActionModalOk(ee.data.nextInstanceId),Object(_.b)("operate_instance",{operate_type:1,source:"detail"})),tt.showToast({title:Object(F.t)("Operation.RejectSuccess","操作成功"),icon:"success"}),null==r||r(i||"")}if(t===X.b.MODIFY&&(Object(_.b)("pc_mp_click",{action:"modify"}),Q(!0)),t===X.b.WITHDRAW){Ke("operateWithdraw",G);var te=O===y.d.APPROVED;if(te&&m()(f).valueOf()+1e3*D<m()().valueOf()){var ae=D/3600/24;return void tt.showToast({title:Object(F.t)("Cancel_Expired",{day:ae}),icon:"error",duration:3e3})}var re=yield c.standardModal({ctxId:e.innerCtxId,title:te?Object(F.t)("Operate_TitleOfCancelConfirm"):U?Object(F.t)("WithdrawWillRecover"):X.c.WITHDRAW,actionType:t,hasReason:te,placeholder:Object(F.t)("Operate_PlaceholderOfCancelConfirm"),subTitle:te?Object(F.t)("Operate_HintOfCancelConfirm"):"",instanceId:v,signatureData:z,taskId:j});Object(_.b)("pc_mp_click",{action:"cancel"}),re&&re.data.revertedInstanceId&&""!==re.data.revertedInstanceId&&(yield Object(P.s)(500),e.onActionModalOk(re.data.revertedInstanceId)),re&&(re.data.nextInstanceId||""===re.data.nextInstanceId)&&e.onActionModalOk(re.data.nextInstanceId)}if(t===X.b.REMINDER&&(Ke("operateReminder",G),e.customCtx.reminderModalStore.clearCandidateList(),yield e.customCtx.reminderModalStore.fetchReminderList(v),e.customCtx.reminderModalStore.candidateList.length>0&&d?(yield c.reminderModal({instanceId:d.instanceId,ctxId:e.innerCtxId}),Object(_.b)("pc_mp_click",{action:"reminder"}),M.a.showToast({title:Object(F.t)("Reminder.Success"),icon:"success",duration:3e3}),o.fetchInstance({id:d.instanceId}),e.customCtx.reminderModalStore.fetchReminderList(d.instanceId)):tt.showToast({title:Object(F.t)("Reminder.NoReminder"),icon:"error",duration:3e3})),t===X.b.TRANSFER&&(Ke("operateTransfer",G),d&&(yield c.redirectModal({ctxId:e.innerCtxId,data:{instanceId:d.instanceId,taskId:d.taskId,approvalName:d.instanceName,requester:d.creatorUserName,disabledCandidateList:u.map((e=>({type:Ae.a.PERSON,id:e.userId,title:e.userName,avatarUrl:e.userAvatarUrl})))}}),Object(_.b)("pc_mp_click",{action:"redirect"}),(l||R.b.indexStore.underCeoNav||R.b.globalStore.enableQuicklyApproval||R.b.indexStore.isCreateNav)&&o.fetchInstance({id:d.instanceId}),null==r||r(i||""))),t===X.b.CC&&(Ke("operateCc",G),d)){var ie=yield c.CCModal({ctxId:e.innerCtxId,data:{instanceId:d.instanceId,taskId:d.taskId,approvalName:d.instanceName,requester:d.creatorUserName,disabledCandidateList:u.map((e=>({type:Ae.a.PERSON,id:e.userId,title:e.userName,avatarUrl:e.userAvatarUrl})))}});Object(_.b)("pc_mp_click",{action:"cc"}),ie&&ie.code!==ke.a.NO_PERMISSION?o.fetchInstance({id:d.instanceId}):ie&&ie.code===ke.a.NO_PERMISSION?tt.showToast({title:Object(F.t)("NoAuthHint"),icon:"error",duration:3e3}):tt.showToast({title:Object(F.t)("Popup.FailedHint"),icon:"error",duration:3e3})}if(t===X.b.ADD_APPROVER&&(Ke("operateAddDeleteApproval",G),d)){var ne=yield c.addApprover({ctxId:e.innerCtxId,data:{instanceId:d.instanceId,taskId:d.taskId,disabledCandidateList:u.map((e=>({type:Ae.a.PERSON,id:e.userId,title:e.userName,avatarUrl:e.userAvatarUrl}))),isReasonTextRequired:B,signatureData:z},permissions:{isBlockApprovalInstance:I,addPostApprover:u.filter((e=>{var{userType:t}=e;return t!==ze.b.Agent})).length<=1}});ne.jumpToNext&&!l&&R.b.indexStore.underCeoNav&&!R.b.globalStore.enableQuicklyApproval?null==r||r(i||""):(o.fetchInstance({id:d.instanceId}),n&&n())}if(t===X.b.DELETE_APPROVER&&(Ke("operateAddDeleteApproval",G),d)){var{editUserDTOList:oe}=d,se=oe.map((e=>({type:Ae.a.PERSON,id:e.userId,title:e.userName,avatarUrl:e.userAvatar,children:null})));yield c.deleteApprover({ctxId:e.innerCtxId,data:{instanceId:v,taskId:j,candidateList:se}}),Object(_.b)("pc_mp_click",{action:"delapprover"}),o.fetchInstance({id:v})}if(t===X.b.SUBMIT_AGAIN&&(Ke("operateSubmitAgain"),Q()),t===X.b.CHAT&&(Ke("operateMeet"),e.handleChatClick(),R.b.indexStore.searchStore.isSubSearch&&Object(_.b)(W.f.SearchViewSubsLeaderAction,{leader_click:"all_comment"})),t===X.b.BATCH_OPERATE&&(Ke("operateBatchProcess"),Ze.a.batchApproveInDetail(h),R.b.indexStore.todoStore.nextOpenBatchMode({showTip:!0}),R.b.indexStore.todoStore.batchSelectCurrentCard()),t===X.b.SUBMIT){if(!(yield o.validateAll()))return void(o.validateMessage&&M.a.showToast({title:o.validateMessage,icon:"error",duration:3e3}));var ce=yield c.standardModal({ctxId:e.innerCtxId,title:X.c.SUBMIT(h),actionType:t,hasReason:!0,isReasonTextRequired:B,signatureData:z,taskId:j,instanceId:v});Y.a.error("submit",ce),ce&&(ce.data.nextInstanceId||""===ce.data.nextInstanceId)&&e.onActionModalOk(ce.data.nextInstanceId),null==r||r(i||"")}if(t===X.b.SAVE_EDIT){if(!(yield o.validateAll()))return void(o.validateMessage&&M.a.showToast({title:o.validateMessage,icon:"error",duration:3e3}));try{var le=yield c.onSaveEdit(a);le&&(le.data.nextInstanceId||""===le.data.nextInstanceId)?(M.a.showToast({title:Object(F.t)("Detail.SaveSuccess"),icon:"success",duration:3e3}),o.fetchInstance({id:d.instanceId})):M.a.showToast({title:Object(F.t)("Detail.SaveFail"),icon:"success",duration:3e3})}catch(e){M.a.showToast({title:Object(F.t)("Detail.SaveFail"),icon:"success",duration:3e3})}}}));return function(e){return t.apply(this,arguments)}}()}}),we=Le))||we},function(e,t,a){"use strict";var r=a(9),i=a(6),n=a(7),o=a(3),s=a.n(o),c=a(1),l=a(15),d=a(4),u=a(19),p=a.n(u),m=a(48),h=a(60),b=a(14),g=a(68),v=a(191),j=a(99),O=a(89),f=a(2),M=a(8),_=a.n(M),y=a(177),D=a(108),N=(a(1288),a(0));class A extends o.Component{constructor(){super(...arguments),Object(i.a)(this,"handleTabClick",(e=>{var{onChange:t}=this.props;t(e)}))}render(){var{range:e,value:t,showBottomLine:a}=this.props;return Object(N.jsx)(c.r,{className:_()("approval-tab-bar",{"show-bottom-line":a}),children:e.map(((e,a)=>Object(N.jsx)(c.r,{className:_()("tab",{active:t===a}),onClick:()=>this.handleTabClick(a),children:Object(N.jsx)(c.r,{className:"text",children:e})},"".concat(e,"-").concat(a))))})}}Object(i.a)(A,"defaultProps",{showBottomLine:!0});var T,I,C,x,S,w=a(195),L=a.n(w),E=a(922),k=a.n(E),z=a(923),R=a.n(z),P=a(924),U=a.n(P),B=a(33),F=a(66),Y=a(50),Q=a(16),G=a(1489),W=a(20),V=a(44),H=a(65),Z=a(211),q=a(80),K=a(5),J=a(37),X=["handleMaskClick","key"],$=e=>{var{handleMaskClick:t,key:a}=e,r=Object(J.a)(e,X);return Object(N.jsx)(c.r,{style:{position:"fixed",left:"1000px",width:"1px",height:"1px",opacity:"0",transform:"scale(0.01)",pointerEvents:"none"},children:Object(N.jsx)(D.a,Object(K.a)({onBlur:()=>{null==t||t()},focus:!0},r),a)})},ee=(a(1289),a(12)),te=Object(W.c)("pc:src/components/configurable-form/components/widgets/address/editor/components/address-v2-select/index.tsx"),ae="addressHistory",re=e=>{var{ctxId:t,valueItem:a,valueItemIndex:i,widget:n,showDelete:l,dropDownPositionFix:d,inputNoBorder:u,inTable:p,renderRetry:m,onBlur:h}=e,{configurableFormStore:v,geoTreeStore:j}=Object(b.d)(t),{country:M,province:T,city:I,area:C,countryGroups:x,provinceGroups:S,cityGroups:w,areaGroups:E,noProvince:k,noCity:z,noArea:P}=a,{id:F,data:{validationError:W,selectPlaceholder:K,writable:J}}=n,[X,re]=Object(o.useState)(!1),[ie,ne]=Object(o.useState)(!1),[oe,se]=Object(o.useState)(!1),[ce,le]=Object(o.useState)(0),[de,ue]=Object(o.useState)([]),[pe,me]=Object(o.useState)(""),[he,be]=Object(o.useState)(!1),[ge,ve]=Object(o.useState)([]),[je,Oe]=Object(o.useState)(!1),[fe,Me]=Object(o.useState)({}),[_e,ye]=Object(o.useState)(0),[De,Ne]=Object(o.useState)(!d),Ae=Object(o.useRef)(null),Te=()=>{se(!0),ne(!0),me(""),E.length&&(I||C)?le(3):w.length&&(T||I)?le(2):S.length&&(M||T)?le(1):le(0)},Ie=()=>{Se(),se(!1),ne(!1),le(0),h()},Ce=()=>{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),ye((e=>e+1))},xe=()=>{Ae.current=setTimeout((()=>{Ie(),Ae.current&&(clearTimeout(Ae.current),Ae.current=null)}),300)},Se=()=>{var{country:e,province:t,city:r,area:i}=a,n=i||r||t||e;if(null!=n&&n.id){var o=[...de],s=o.findIndex((e=>{var t=e.area||e.city||e.province||e.country;return n.id===(null==t?void 0:t.id)}));s>=0&&o.splice(s,1),o.unshift({country:e,province:t,city:r,area:i}),o=o.slice(0,6),ue(o),Y.a.set(ae,o)}},we=e=>{e===q.a.PROVINCE&&j.clearProvinceV2(i,!1),e===q.a.CITY&&j.clearCityV2(i,!1),e===q.a.AREA&&j.clearAreaV2(i,!1),Ie()},Le=function(){var e=Object(r.a)((function*(e){yield j.chooseNodeV2(i,e),v.handleWidgetChange(n.id),Ce(),se(!1),0!==ce||n.data.value[i].noProvince?1!==ce||n.data.value[i].noCity?2!==ce||n.data.value[i].noArea?(Se(),ne(!1),le(0),h()):le(3):le(2):le(1)}));return function(t){return e.apply(this,arguments)}}(),Ee=function(){var e=Object(r.a)((function*(e){var t,a,r,o,s,c,l,d;Object(ee.b)("address_history_click",{country:null===(t=e.country)||void 0===t?void 0:t.id,province:null===(a=e.province)||void 0===a?void 0:a.id,city:null===(r=e.city)||void 0===r?void 0:r.id,area:null===(o=e.area)||void 0===o?void 0:o.id}),null!==(s=e.country)&&void 0!==s&&s.id&&(yield j.chooseNodeV2(i,e.country.id)),null!==(c=e.province)&&void 0!==c&&c.id&&(yield j.chooseNodeV2(i,e.province.id)),null!==(l=e.city)&&void 0!==l&&l.id&&(yield j.chooseNodeV2(i,e.city.id)),null!==(d=e.area)&&void 0!==d&&d.id&&(yield j.chooseNodeV2(i,e.area.id)),v.handleWidgetChange(n.id),Ie()}));return function(t){return e.apply(this,arguments)}}(),ke=function(){var e=Object(r.a)((function*(e){for(var t of e)yield j.chooseNodeV2(i,t.geoNameId);v.handleWidgetChange(n.id),Ie()}));return function(t){return e.apply(this,arguments)}}(),ze=function(){var e=Object(r.a)((function*(){try{for(var e of[null==M?void 0:M.id,null==T?void 0:T.id,null==I?void 0:I.id,null==C?void 0:C.id]){if(!e)break;yield j.chooseNodeV2(i,e)}}catch(e){te("commonOnError",{location:"src/components/configurable-form/components/widgets/address/editor/components/address-v2-select/index.tsx",message:Object(V.a)(e)})}re(!0)}));return function(){return e.apply(this,arguments)}}();Object(G.a)(Object(r.a)((function*(){if(pe.trim()){var e,t;be(!0);var a=yield Q.c.searchDistrict({keyWord:pe.trim(),limit:30,offset:0});be(!1),Oe(!0),ve((null==a||null===(e=a.data)||void 0===e||null===(t=e.districtList)||void 0===t?void 0:t.slice(0,30))||[])}})),350,[pe]),Object(o.useEffect)((()=>{Object(r.a)((function*(){if(ie){d&&Ne(!1),p&&(yield ze());var e=Y.a.getSync(ae)||[];ue(e);var t=yield Object(H.a)("#address-v2-select-row-id-".concat(F.replace(/\W+/g,""))),a={position:"fixed",maxWidth:"400px"};Ne(!0),t&&(a.top=t.top+t.height+4,a.left=t.left,Me(a))}}))()}),[ie]),Object(o.useEffect)((()=>{!p&&ze()}),[]);var Re=Object(o.useMemo)((()=>X||p?[null==M?void 0:M.name,null==T?void 0:T.name,null==I?void 0:I.name,null==C?void 0:C.name].filter(B.q).join("/"):""),[M,T,I,C,X,p]),Pe=Object(o.useMemo)((()=>(null==m?void 0:m())||null),[m]),Ue=p&&!Re&&Boolean(Pe);return Object(N.jsx)(c.a,{children:Object(N.jsxs)(c.r,{onClick:()=>{Ce()},className:_()("row",p&&"row-in-table"),id:"address-v2-select-row-id-".concat(F.replace(/\W+/g,"")),children:[Object(N.jsx)(c.r,{className:_()("input-wrapper",ie&&"active-in-table"),style:{zIndex:ie&&!p?100:void 0},children:oe?Object(N.jsxs)(c.r,{className:"input-inner-wrapper",children:[Object(N.jsx)(D.a,{focus:!0,onBlur:xe,placeholder:Re||Object(f.t)("AddressPicker.PleaseSearchOrSelect"),placeholderStyle:p?"color: #8F959E;font-family: PingFang SC;":"",isNoBorder:u,value:pe,onInput:e=>{Oe(!1),me(e.detail.value)}},_e),Object(N.jsx)(c.g,{className:_()("dropdown-icon",{active:ie}),src:L.a})]}):p?Object(N.jsxs)(s.a.Fragment,{children:[Object(N.jsx)(g.a,{noBorder:!0,placeholder:Re||K,customStyle:Ue?{}:{position:"absolute",top:0},disabled:!J,error:(null==W?void 0:W.split(Z.a)[0])||"",suffix:J&&Object(N.jsx)(O.a,{name:"fold",size:20,color:"#646A73"}),onClick:Te,value:Re,children:Ue?Pe:null}),Object(N.jsx)($,{focus:ie,onBlur:xe},_e)]}):Object(N.jsx)(y.a,{value:Re,placeholder:Object(f.t)("AddressPicker.PleaseSearchOrSelect"),usingPlaceholder:!M||!X,isActive:ie,hasError:Boolean(W),noBorder:u,renderTailIcon:Object(N.jsx)(c.g,{className:_()("dropdown-icon",{active:ie}),src:L.a}),onClick:Te})}),l&&Object(N.jsx)(c.g,{src:R.a,className:"delete-icon",onClick:()=>{j.deleteAddressValueItem(i),v.handleWidgetChange(n.id)}}),ie&&!p&&Object(N.jsx)(c.r,{className:"mask",onClick:Ie}),ie&&De&&(null!=pe&&pe.trim()&&(he||je)?Object(N.jsx)(c.r,{className:"search-body",style:fe,children:he?Object(N.jsx)(c.r,{className:"loading-wrapper",children:Object(N.jsx)(c.g,{className:"loading",src:U.a})}):je&&Object(N.jsxs)(c.r,{className:"search-result",children:[ge.map((e=>{var t=null==e?void 0:e.length;if(!t)return null;var a=e[t-1],r=e.map((e=>{var{name:t}=e;return"中华人民共和国"===t?"中国":t})).join(" / "),i="@@@",n=r.replace(new RegExp(pe.trim(),"ig"),(e=>"".concat(i).concat(e).concat(i))).split(i);return Object(N.jsx)(c.r,{className:"search-result-item",onClick:()=>{ke(e)},children:n.map(((e,t)=>Object(N.jsx)(c.p,{className:_()({"match-keyword":t%2}),children:e},t)))},a.geoNameId)})),Object(N.jsx)(c.r,{className:"search-result-tip",children:ge.length?Object(f.t)("AddressPicker.OnlySupportSearchingChinaPC"):"".concat(Object(f.t)("CreateList.NoSearchResult")," (").concat(Object(f.t)("AddressPicker.OnlySupportSearchingChina"),")")})]})}):Object(N.jsxs)(c.r,{className:"body",style:d?fe:{},children:[Object(N.jsx)(c.r,{className:"tab-bar-wrap",children:Object(N.jsx)(A,{range:[Object(f.t)("PC.LocaltionTabCountry"),!M||k?"":Object(f.t)("PC.LocaltionTabProvince"),!T||z?"":Object(f.t)("PC.LocaltionTabCity"),!I||P?"":Object(f.t)("PC.LocaltionTabArea")].filter(B.q),value:ce,onChange:e=>{Ce(),le(e)}})}),Object(N.jsxs)(c.r,{className:"body-main-wrapper",children:[0===ce&&de.length>0&&Object(N.jsxs)(c.a,{children:[Object(N.jsxs)(c.r,{className:"title-wrapper",children:[Object(N.jsx)(c.p,{className:"title",children:Object(f.t)("AddressPicker.ChooseHistoryList")}),Object(N.jsx)(c.p,{className:"clickable",onClick:()=>(Object(ee.b)("address_history_clear"),ue([]),void Y.a.set(ae,[])),children:Object(f.t)("AddressPicker.HistoryClear")})]}),Object(N.jsx)(c.r,{className:"addresses",children:de.map((e=>{var t=e.area||e.city||e.province||e.country;return t&&Object(N.jsx)(c.r,{className:_()("address-button"),onClick:()=>Ee(e),children:t.name},t.id)}))})]}),0===ce&&(()=>{var e=j.countryGroups[0].list;return e.length>0&&Object(N.jsxs)(c.a,{children:[Object(N.jsx)(c.r,{className:"title-wrapper",children:Object(N.jsx)(c.p,{className:"title",children:Object(f.t)("AddressPicker.TitleOfOtherHotList")})}),Object(N.jsx)(c.r,{className:"addresses",children:e.map((e=>Object(N.jsx)(c.r,{className:_()("address-button",{active:(M&&M.id)===e.id}),onClick:()=>Le(e.id),children:e.name},e.id)))})]})})(),(()=>{var e=[M,T,I,C][ce],t=null==e?void 0:e.id,a=[q.a.COUNTRY,q.a.PROVINCE,q.a.CITY,q.a.AREA][ce],r={Country:Object(f.t)("PC.LocaltionTabCountry"),Province:Object(f.t)("PC.LocaltionTabProvince"),City:Object(f.t)("PC.LocaltionTabCity"),Area:Object(f.t)("PC.LocaltionTabArea")},i=Object(f.t)("PC.AddressSelect",{level:r[a]});return Object(N.jsxs)(c.a,{children:[Object(N.jsxs)(c.r,{className:"title-wrapper",children:[Object(N.jsx)(c.p,{className:"title",children:i}),ce>0&&Object(N.jsx)(c.p,{className:"clickable",onClick:()=>we(a),children:Object(f.t)("AddressPicker.AbortLevel")})]}),Object(N.jsx)(c.r,{className:"items",children:[x,S,w,E][ce].map((e=>e.list.length>0&&Object(N.jsxs)(c.r,{className:"item-group",children:[Object(N.jsx)(c.r,{className:"letter",children:e.letter}),e.list.map((e=>Object(N.jsx)(c.r,{className:_()("item",{active:e.id===t}),onClick:()=>Le(e.id),children:e.name},e.id)))]},"item-group-".concat(e.letter))))})]})})()]})]}))]})})},ie=Object(l.a)((e=>{var{widget:t,ctxId:a,enableMultiDivisions:r,name:i="",dropDownPositionFix:n,inputNoBorder:o,inTable:s,renderRetry:l,onBlur:d=B.m}=e,u=!t,{value:p,validationError:m,country:h}=t.data,g=t.data.value.length,v=r&&g<10,j=g>1,{geoTreeStore:O}=Object(b.d)(a);return console.log("address validationError",m,h),Object(N.jsxs)(c.r,{className:_()("address-v2-select",s&&"in-table"),children:[p.map(((e,r)=>Object(N.jsx)(F.a,{hidden:u,style:{marginTop:r>0?8:void 0},children:Object(N.jsx)(re,{ctxId:a,valueItem:e,valueItemIndex:r,widget:t,showDelete:j,dropDownPositionFix:n,inputNoBorder:o,inTable:s,renderRetry:l,onBlur:d})},"".concat(a,"-").concat(e.id)))),v&&Object(N.jsxs)(c.r,{className:_()("add-address-button"),onClick:()=>{O.addAddressValueItem()},children:[Object(N.jsx)(c.g,{className:_()("add-address-button-icon"),src:k.a}),"".concat(Object(f.t)("PC.AddBtn")).concat(f.curLang===f.SimpleLangEnum.en?" ":"").concat(i)]})]})})),ne=a(157),oe=(a(1290),Object(l.a)(T=class extends o.Component{constructor(){super(...arguments),Object(i.a)(this,"state",{isActive:!1,tabIndex:0,isPreLocated:!1}),Object(i.a)(this,"handleMaskClick",(()=>{this.setState({isActive:!1,tabIndex:0})})),Object(i.a)(this,"handleFakeInputClick",(()=>{this.setState({isActive:!0,tabIndex:0})})),Object(i.a)(this,"handleTabBarChange",(e=>{var{isInDetailPage:t}=this.props;Object(ee.b)("address_click_type",{page_source:t?"edit":"create",address_click_action_type:"letter"}),this.setState({tabIndex:e})})),Object(i.a)(this,"handleCountryClick",(e=>{var{ctxId:t,widget:a,isInDetailPage:r}=this.props,{configurableFormStore:i,geoTreeStore:n}=Object(b.d)(t);0===this.state.tabIndex&&Object(ee.b)("address_click_type",{page_source:r?"edit":"create",address_click_action_type:"hot"}),n.chooseNode(e),this.setState({isActive:!1,tabIndex:0}),i.handleWidgetChange(a.id)})),Object(i.a)(this,"chooseLocation",Object(ne.a)(Object(d.k)(this._chooseLocation),500))}render(){var{widget:e}=this.props;return e?Object(N.jsxs)(c.r,{className:"country-select",children:[this.renderFakeInput(),this.renderMask(),this.renderBody()]}):null}renderFakeInput(){var{widget:{data:{selectPlaceholder:e,country:t}}}=this.props,{isActive:a}=this.state;return Object(N.jsx)(y.a,{value:t?t.name:"",placeholder:e,usingPlaceholder:!t,isActive:a,renderTailIcon:Object(N.jsx)(c.g,{className:_()("dropdown-icon",{active:a}),src:L.a}),onClick:this.handleFakeInputClick})}renderMask(){var{isActive:e}=this.state;return e&&Object(N.jsx)(c.r,{className:"mask",onClick:this.handleMaskClick})}renderBody(){var{ctxId:e}=this.props,{geoTreeStore:{countryGroups:t}}=Object(b.d)(e),{isActive:a,tabIndex:r}=this.state,i=0===r;return a&&Object(N.jsxs)(c.r,{className:_()("body",f.curStarlingLang),children:[Object(N.jsx)(c.r,{className:"tab-bar-wrap",children:Object(N.jsx)(A,{range:t.map((e=>e.title)),value:r,onChange:this.handleTabBarChange})}),i&&Object(N.jsx)(c.r,{className:"content-title",children:Object(N.jsx)(c.r,{className:"title",children:Object(N.jsx)(c.p,{className:"name",children:Object(f.t)("AddressPicker.TitleOfOtherHotList")})})}),Object(N.jsx)(c.r,{className:"countries-wrap",children:r>=0&&this.renderCountries()})]})}renderCountries(){var{tabIndex:e}=this.state,{ctxId:t}=this.props,{geoTreeStore:{countryGroups:{[e]:{title:a,list:r}}}}=Object(b.d)(t),{widget:{data:{country:i}}}=this.props;return Object(N.jsx)(c.r,{className:"countries",children:r.map((e=>Object(N.jsx)(c.r,{className:_()("country",{active:(i&&i.id)===e.id}),onClick:()=>this.handleCountryClick(e.id),children:e.name},e.id)))},"countries-".concat(a))}componentDidUpdate(e){var{isPreLocated:t}=this.state;t||this.chooseLocation(e.widget)}*_chooseLocation(e){var{ctxId:t}=this.props,{geoTreeStore:a}=Object(b.d)(t),{country:r,province:i,city:n,area:o}=e.data;r&&(yield a.chooseNode(r.id)),i&&a.chooseNode(i.id),n&&a.chooseNode(n.id),o&&a.chooseNode(o.id),this.setState({isPreLocated:!0})}})||T),se=oe,ce=(a(1291),Object(l.a)(I=class extends o.Component{constructor(){var e;super(...arguments),e=this,Object(i.a)(this,"state",{isActive:!1,tabIndex:0}),Object(i.a)(this,"handleMaskClick",(()=>{this.setState({isActive:!1,tabIndex:0})})),Object(i.a)(this,"handleFakeInputClick",(()=>{this.setState({isActive:!0,tabIndex:0})})),Object(i.a)(this,"handleTabBarChange",(e=>{this.setState({tabIndex:e})})),Object(i.a)(this,"clear",(e=>{var{ctxId:t}=this.props,{geoTreeStore:a}=Object(b.d)(t);e===q.a.PROVINCE&&a.clearProvince(!1),e===q.a.CITY&&a.clearCity(!1),e===q.a.AREA&&a.clearArea(!1),this.setState({isActive:!1,tabIndex:0})})),Object(i.a)(this,"handleItemClick",function(){var t=Object(r.a)((function*(t){var{ctxId:a}=e.props,{configurableFormStore:r,geoTreeStore:i}=Object(b.d)(a),{widget:n}=e.props,{tabIndex:o}=e.state;return yield i.chooseNode(t),r.handleWidgetChange(n.id),0!==o||n.data.noCity?1!==o||n.data.noArea?void e.setState({isActive:!1,tabIndex:0}):e.setState({tabIndex:2}):e.setState({tabIndex:1})}));return function(e){return t.apply(this,arguments)}}())}render(){var e,{widget:t}=this.props;return e=!t||t.data.noProvince||!t.data.country,Object(N.jsx)(c.r,{className:"province-select",children:Object(N.jsxs)(F.a,{hidden:e,children:[this.renderFakeInput(),this.renderMask(),this.renderBody()]})})}renderFakeInput(){var{widget:{data:{selectPlaceholder:e,province:t,city:a,area:r,validationError:i}}}=this.props,{isActive:n}=this.state,o=(null==i?void 0:i.split(Z.a))||[],s=Boolean(o[0]);return Object(N.jsx)(y.a,{value:[t&&t.name,a&&a.name,r&&r.name].filter(B.q).join("/"),placeholder:e,usingPlaceholder:!t,isActive:n,hasError:s,renderTailIcon:Object(N.jsx)(c.g,{className:_()("dropdown-icon",{active:n}),src:L.a}),onClick:this.handleFakeInputClick})}renderMask(){var{isActive:e}=this.state;return e&&Object(N.jsx)(c.r,{className:"mask",onClick:this.handleMaskClick})}renderBody(){var{widget:{data:{province:e,city:t,noCity:a,noArea:r}}}=this.props,{isActive:i,tabIndex:n}=this.state;return i&&Object(N.jsxs)(c.r,{className:"body",children:[Object(N.jsx)(c.r,{className:"tab-bar-wrap",children:Object(N.jsx)(A,{range:[Object(f.t)("PC.LocaltionTabProvince"),a||!e?"":Object(f.t)("PC.LocaltionTabCity"),r||!t?"":Object(f.t)("PC.LocaltionTabArea")].filter(B.q),value:n,onChange:this.handleTabBarChange})}),Object(N.jsx)(c.r,{className:"items-wrap",children:this.renderItems()})]})}renderItems(){var{ctxId:e}=this.props,{geoTreeStore:{provinceGroups:t,cityGroups:a,areaGroups:r}}=Object(b.d)(e),{widget:{data:{province:i,city:n,area:o}}}=this.props,{tabIndex:s}=this.state,l=[i,n,o][s],d=l&&l.id,u=[q.a.PROVINCE,q.a.CITY,q.a.AREA][s],p=Object(f.t)("PC.AddressSelect",{level:Object(f.t)({province:"PC.LocaltionTabProvince",city:"PC.LocaltionTabCity",area:"PC.LocaltionTabArea"}[u.toLowerCase()])});return Object(N.jsxs)(c.a,{children:[Object(N.jsxs)(c.r,{className:"items-title",children:[Object(N.jsx)(c.p,{className:"title",children:p}),Object(N.jsx)(c.p,{className:"clear",onClick:()=>this.clear(u),children:Object(f.t)("AddressPicker.AbortLevel")})]}),Object(N.jsx)(c.r,{className:"items",children:[t,a,r][s].map((e=>e.list.length>0&&Object(N.jsxs)(c.r,{className:"item-group",children:[Object(N.jsx)(c.r,{className:"letter",children:e.letter}),e.list.map((e=>Object(N.jsx)(c.r,{className:_()("item",{active:e.id===d}),onClick:()=>this.handleItemClick(e.id),children:e.name},e.id)))]},"item-group-".concat(e.letter))))})]})}})||I),le=ce,de=a(11),ue=(a(56),a(359)),pe=(a(1292),Object(l.a)((x=class extends o.Component{constructor(){super(...arguments),Object(de.a)(this,"handleInput",S,this)}render(){var e=!0,t="",a="",r=!1,{widget:i}=this.props;if(i){var{data:{selectIsEnabled:n,selectIsRequired:o,detailIsRequired:s,detailPlaceholder:l,country:d,noProvince:u,province:p,detail:m,validationError:h}}=i;e=n&&(o||!o&&!s)&&(!d||!u&&!p),t=m,a=l;var b=(null==h?void 0:h.split(Z.a))||[];r=Boolean(b[1])}return Object(N.jsx)(F.a,{hidden:e,children:Object(N.jsx)(c.r,{className:"detail-textarea",children:Object(N.jsx)(ue.a,{value:t,placeholder:a,style:{height:"56px",minHeight:"56px"},hasError:r,onInput:this.handleInput})})})}},S=Object(n.a)(x.prototype,"handleInput",[d.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{ctxId:t,widget:a}=this.props,{configurableFormStore:r}=Object(b.d)(t);a.data.detail=e.detail.value||"",r.handleWidgetChange(a.id)}}}),C=x))||C),me=a(26),he=a(18);function be(e){if(e&&e.length){var t=e.toUpperCase().charCodeAt(0),a="A".charCodeAt(0),r="Z".charCodeAt(0);if(a<=t&&t<=r)return t-a}return he.s.length-1}function ge(e){if(e&&e.length)for(var t=e.charCodeAt(0),a=0;a<he.t.length;a++){var r=he.t[a];if(r.charCodeAt(0)<=t&&t<=r.charCodeAt(r.length-1))return a}return-1}var ve,je,Oe,fe,Me,_e,ye,De,Ne=a(10),Ae={[f.LANG.zh]:[{country:{asci_name:"People's Republic of China",code:"CN",geoname_id:1814991,level:"Country",name:"中国",sub_region_path:"https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/CN_zh-CN_L3.json"}},{country:{asci_name:"United States",code:"US",geoname_id:6252001,level:"Country",name:"美国",sub_region_path:"/obj/ttfe/ttarch/US_en_L3.json"}},{country:{asci_name:"Japan",code:"JP",geoname_id:1861060,level:"Country",name:"日本",sub_region_path:"/obj/ttfe/ttarch/JP_en_L3.json"}},{country:{asci_name:"United Kingdom of Great Britain and Northern Ireland",code:"GB",geoname_id:2635167,level:"Country",name:"英国",sub_region_path:"/obj/ttfe/ttarch/GB_en_L3.json"}},{country:{asci_name:"Republic of France",code:"FR",geoname_id:3017382,level:"Country",name:"法国",sub_region_path:"/obj/ttfe/ttarch/FR_en_L3.json"}},{country:{asci_name:"Republic of Singapore",code:"SG",geoname_id:1880251,level:"Country",name:"新加坡",sub_region_path:"/obj/ttfe/ttarch/SG_en_L3.json"}},{country:{asci_name:"Russian",code:"RU",geoname_id:2017370,level:"Country",name:"俄罗斯",sub_region_path:"/obj/ttfe/ttarch/RU_en_L3.json"}},{country:{asci_name:"New Zealand",code:"NZ",geoname_id:2186224,level:"Country",name:"新西兰",sub_region_path:"/obj/ttfe/ttarch/NZ_en_L3.json"}},{country:{asci_name:"Commonwealth of Australia",code:"AU",geoname_id:2077456,level:"Country",name:"澳大利亚",sub_region_path:"/obj/ttfe/ttarch/AU_en_L3.json"}},{country:{asci_name:"Canada",code:"CA",geoname_id:6251999,level:"Country",name:"加拿大",sub_region_path:"https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/CA_en_L3.json"}},{country:{asci_name:"Taiwan",code:"TW",geoname_id:1668284,level:"Country",name:"台湾(中国)",sub_region_path:"/obj/ttfe/ttarch/TW_zh-CN_L3.json"}},{country:{asci_name:"Hong Kong",code:"HK",geoname_id:1819730,level:"Country",name:"香港(中国)",sub_region_path:"/obj/ttfe/ttarch/HK_zh-CN_L3.json"}},{country:{asci_name:"Macau",code:"MO",geoname_id:1821275,level:"Country",name:"澳门(中国)",sub_region_path:"/obj/ttfe/ttarch/MO_zh-CN_L3.json"}}],[f.LANG.en]:[{country:{asci_name:"United States",code:"US",geoname_id:6252001,level:"Country",name:"United States",sub_region_path:"/obj/ttfe/ttarch/US_en_L3.json"}},{country:{asci_name:"People's Republic of China",code:"CN",geoname_id:1814991,level:"Country",name:"China",sub_region_path:"/obj/ttfe/ttarch/CN_en_L3.json"}},{country:{asci_name:"Japan",code:"JP",geoname_id:1861060,level:"Country",name:"Japan",sub_region_path:"/obj/ttfe/ttarch/JP_en_L3.json"}},{country:{asci_name:"United Kingdom of Great Britain and Northern Ireland",code:"GB",geoname_id:2635167,level:"Country",name:"United Kingdom",sub_region_path:"/obj/ttfe/ttarch/GB_en_L3.json"}},{country:{asci_name:"Republic of France",code:"FR",geoname_id:3017382,level:"Country",name:"France",sub_region_path:"/obj/ttfe/ttarch/FR_en_L3.json"}},{country:{asci_name:"Republic of Singapore",code:"SG",geoname_id:1880251,level:"Country",name:"Singapore",sub_region_path:"/obj/ttfe/ttarch/SG_en_L3.json"}},{country:{asci_name:"Russian",code:"RU",geoname_id:2017370,level:"Country",name:"Russian",sub_region_path:"/obj/ttfe/ttarch/RU_en_L3.json"}},{country:{asci_name:"New Zealand",code:"NZ",geoname_id:2186224,level:"Country",name:"New Zealand",sub_region_path:"/obj/ttfe/ttarch/NZ_en_L3.json"}},{country:{asci_name:"Commonwealth of Australia",code:"AU",geoname_id:2077456,level:"Country",name:"Australia",sub_region_path:"/obj/ttfe/ttarch/AU_en_L3.json"}},{country:{asci_name:"Canada",code:"CA",geoname_id:6251999,level:"Country",name:"Canada",sub_region_path:"https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/CA_en_L3.json"}},{country:{asci_name:"Taiwan",code:"TW",geoname_id:1668284,level:"Country",name:"Taiwan(China)",sub_region_path:"/obj/ttfe/ttarch/TW_en_L3.json"}},{country:{asci_name:"Hong Kong",code:"HK",geoname_id:1819730,level:"Country",name:"Hong Kong(China)",sub_region_path:"/obj/ttfe/ttarch/HK_en_L3.json"}},{country:{asci_name:"Macau",code:"MO",geoname_id:1821275,level:"Country",name:"Macau(China)",sub_region_path:"/obj/ttfe/ttarch/MO_en_L3.json"}}],[f.LANG.ja]:[{country:{asci_name:"Japan",code:"JP",geoname_id:1861060,level:"Country",name:"日本",sub_region_path:"/obj/ttfe/ttarch/JP_en_L3.json"}},{country:{asci_name:"People's Republic of China",code:"CN",geoname_id:1814991,level:"Country",name:"中国",sub_region_path:"/obj/ttfe/ttarch/CN_en_L3.json"}},{country:{asci_name:"United States",code:"US",geoname_id:6252001,level:"Country",name:"アメリカ",sub_region_path:"/obj/ttfe/ttarch/US_en_L3.json"}},{country:{asci_name:"United Kingdom of Great Britain and Northern Ireland",code:"GB",geoname_id:2635167,level:"Country",name:"イギリス",sub_region_path:"/obj/ttfe/ttarch/GB_en_L3.json"}},{country:{asci_name:"Republic of France",code:"FR",geoname_id:3017382,level:"Country",name:"フランス",sub_region_path:"/obj/ttfe/ttarch/FR_en_L3.json"}},{country:{asci_name:"Republic of Singapore",code:"SG",geoname_id:1880251,level:"Country",name:"シンガポール",sub_region_path:"/obj/ttfe/ttarch/SG_en_L3.json"}},{country:{asci_name:"Russian",code:"RU",geoname_id:2017370,level:"Country",name:"ロシア",sub_region_path:"/obj/ttfe/ttarch/RU_en_L3.json"}},{country:{asci_name:"New Zealand",code:"NZ",geoname_id:2186224,level:"Country",name:"ニュージーランド",sub_region_path:"/obj/ttfe/ttarch/NZ_en_L3.json"}},{country:{asci_name:"Commonwealth of Australia",code:"AU",geoname_id:2077456,level:"Country",name:"オーストラリア",sub_region_path:"/obj/ttfe/ttarch/AU_en_L3.json"}},{country:{asci_name:"Canada",code:"CA",geoname_id:6251999,level:"Country",name:"カナダ",sub_region_path:"https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/CA_en_L3.json"}},{country:{asci_name:"Taiwan",code:"TW",geoname_id:1668284,level:"Country",name:"台湾(中国)",sub_region_path:"/obj/ttfe/ttarch/TW_en_L3.json"}},{country:{asci_name:"Hong Kong",code:"HK",geoname_id:1819730,level:"Country",name:"香港(中国)",sub_region_path:"/obj/ttfe/ttarch/HK_en_L3.json"}},{country:{asci_name:"Macau",code:"MO",geoname_id:1821275,level:"Country",name:"マカオ(中国)",sub_region_path:"/obj/ttfe/ttarch/MO_en_L3.json"}}]},Te=a(220),Ie=Object(W.c)("pc:src/components/configurable-form/components/widgets/address/stores/geo-tree-store.ts"),Ce=(ve=class{constructor(e,t){Object(i.a)(this,"widget",void 0),Object(i.a)(this,"nodeMap",new Map),Object(de.a)(this,"countryGroups",je,this),Object(de.a)(this,"countryV2Groups",Oe,this),Object(de.a)(this,"provinceGroups",fe,this),Object(de.a)(this,"cityGroups",Me,this),Object(de.a)(this,"areaGroups",_e,this),Object(i.a)(this,"chooseCountry",Object(d.k)(this._chooseCountry)),this.widget=e,this.loadCountries(t)}getNode(e){var t=this.nodeMap.get(e);if(!t)throw new Error("getNode invalid id: ".concat(e));return t}loadCountries(e){var t=this;return Object(r.a)((function*(){for(var{country:{geoname_id:a,name:r,sub_region_path:i}}of Ae[Object(f.getCurStarlingLang)()]){var n={id:a,type:q.a.COUNTRY,name:r,subRegionPath:i};t.nodeMap.set(a,n),t.countryGroups[0].list.push(t.cloneNarrowNode(n))}var o=yield Object(me.j)("https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/world_en_L3.json"),{sub_region:s}=o;if(s){for(var{asci_name:c,geoname_id:l,name:d,sub_region_path:u}of s){var p={id:l,type:q.a.COUNTRY,name:d,subRegionPath:u};t.nodeMap.has(l)||t.nodeMap.set(l,p);var m=ge(d);-1===m&&(m=ge(c)),-1!==m&&(t.countryGroups[m+1].list.push(t.cloneNarrowNode(p)),t.countryV2Groups[m].list.push(t.cloneNarrowNode(p)))}for(var h=1;h<t.countryGroups.length;h++)t.countryGroups[h].list.slice().sort(((e,t)=>e.name.localeCompare(t.name))),t.countryV2Groups[h-1].list.slice().sort(((e,t)=>e.name.localeCompare(t.name)));(t.widget.data.isV2||e)&&t.widget.data.value.forEach((e=>{e.countryGroups=t.countryV2Groups}))}else Ne.a.error("loadCountries error",o)}))()}cloneNarrowNode(e){var{id:t,type:a,name:r}=e;return{id:t,type:a,name:r}}clearProvince(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.widget.data.province=null,this.widget.data.noProvince=!1,e)for(var t of this.provinceGroups)t.list=[];this.clearCity(e)}clearProvinceV2(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.widget.data.value[e].province=void 0,this.widget.data.value[e].noProvince=!1,t)for(var a of this.widget.data.value[e].provinceGroups)a.list=[];this.clearCityV2(e,t)}clearCity(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.widget.data.city=null,this.widget.data.noCity=!1,e)for(var t of this.cityGroups)t.list=[];this.clearArea()}clearCityV2(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.widget.data.value[e].city=void 0,this.widget.data.value[e].noCity=!1,t)for(var a of this.widget.data.value[e].cityGroups)a.list=[];this.clearAreaV2(e)}clearArea(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.widget.data.area=null,this.widget.data.noArea=!1,e)for(var t of this.areaGroups)t.list=[]}clearAreaV2(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.widget.data.value[e].area=void 0,this.widget.data.value[e].noArea=!1,t)for(var a of this.widget.data.value[e].areaGroups)a.list=[]}getInnerNodeType(e){switch(e){case q.a.COUNTRY:return q.a.PROVINCE;case q.a.PROVINCE:return q.a.CITY;case q.a.CITY:return q.a.AREA;default:return null}}formatSubRegion(e,t,a){var r=this.getInnerNodeType(t.type),i=1814991===e;if(a&&a.length&&null!==r)for(var{asci_name:n,geoname_id:o,name:s,pinyin:c,sub_region:l}of(t.children={},a)){var d=be(s);if(d===he.s.length-1)d=be(i&&c?c.toLocaleUpperCase():n);var u={id:o,type:r,name:s,viewGroupIndex:d};this.nodeMap.set(o,u),t.children[o]=u,this.formatSubRegion(e,u,l)}}loadProvinces(e){var t=this;return Object(r.a)((function*(){if(!e.children&&e.subRegionPath){1861060===e.id&&Object(f.getCurStarlingLang)()===f.LANG.ja&&(e.subRegionPath="/obj/ttfe/ttarch/JP_locale_L3.json");var{sub_region:a}=yield Object(me.j)(e.subRegionPath);t.formatSubRegion(e.id,e,a)}}))()}*_chooseCountry(e){if(this.clearProvince(),this.widget.data.country=this.cloneNarrowNode(e),yield this.loadProvinces(e),e.id===(this.widget.data.country&&this.widget.data.country.id))if(e.children)for(var t in this.widget.data.noProvince=!1,e.children){var a=e.children[t];this.provinceGroups[a.viewGroupIndex||0].list.push(a)}else this.widget.data.noProvince=!0;else Ie("addressChangeCountryWhenLoadProvince",{originCountryId:e.id,currentCountryId:this.widget.data.country?this.widget.data.country.id:""})}chooseCountryV2(e,t){var a=this;return Object(r.a)((function*(){if(a.clearProvinceV2(e),a.widget.data.value[e].country=a.cloneNarrowNode(t),yield a.loadProvinces(t),t.children)for(var r in a.widget.data.value[e].noProvince=!1,t.children){var i=t.children[r];a.widget.data.value[e].provinceGroups[i.viewGroupIndex||0].list.push(i)}else a.widget.data.value[e].noProvince=!0}))()}chooseProvince(e){if(this.clearCity(),this.widget.data.province=this.cloneNarrowNode(e),e.children)for(var t in this.widget.data.noCity=!1,e.children){var a=e.children[t];this.cityGroups[a.viewGroupIndex||0].list.push(a)}else this.widget.data.noCity=!0}chooseProvinceV2(e,t){if(this.clearCityV2(e),this.widget.data.value[e].province=this.cloneNarrowNode(t),t.children)for(var a in this.widget.data.value[e].noCity=!1,t.children){var r=t.children[a];this.widget.data.value[e].cityGroups[r.viewGroupIndex||0].list.push(r)}else this.widget.data.value[e].noCity=!0}chooseCity(e){if(this.clearArea(),this.widget.data.city=this.cloneNarrowNode(e),e.children)for(var t in this.widget.data.noArea=!1,e.children){var a=e.children[t];this.areaGroups[a.viewGroupIndex||0].list.push(a)}else this.widget.data.noArea=!0}chooseCityV2(e,t){if(this.clearAreaV2(e),this.widget.data.value[e].city=this.cloneNarrowNode(t),t.children)for(var a in this.widget.data.value[e].noArea=!1,t.children){var r=t.children[a];this.widget.data.value[e].areaGroups[r.viewGroupIndex||0].list.push(r)}else this.widget.data.value[e].noArea=!0}chooseArea(e){this.widget.data.area=this.cloneNarrowNode(e)}chooseAreaV2(e,t){this.widget.data.value[e].area=this.cloneNarrowNode(t)}chooseNode(e){var t=this.getNode(e);switch(t.type){case q.a.COUNTRY:return this.chooseCountry(t);case q.a.PROVINCE:return this.chooseProvince(t);case q.a.CITY:return this.chooseCity(t);case q.a.AREA:return this.chooseArea(t)}}chooseNodeV2(e,t){var a=this;return Object(r.a)((function*(){var r=a.getNode(t);switch(a.chooseNode(t),r.type){case q.a.COUNTRY:return a.chooseCountryV2(e,r);case q.a.PROVINCE:return a.chooseProvinceV2(e,r);case q.a.CITY:return a.chooseCityV2(e,r);case q.a.AREA:return a.chooseAreaV2(e,r)}}))()}addAddressValueItem(){this.widget.data.value.push(Object(Te.a)({countryGroups:this.countryV2Groups}))}deleteAddressValueItem(e){this.widget.data.value.splice(e,1)}},je=Object(n.a)(ve.prototype,"countryGroups",[d.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[{title:Object(f.t)("PC.AddressRecommends"),list:[]},...he.t.map((e=>({title:e,list:[]})))]}}),Oe=Object(n.a)(ve.prototype,"countryV2Groups",[d.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Array.from(he.s).map((e=>({letter:e,list:[]})))}}),fe=Object(n.a)(ve.prototype,"provinceGroups",[d.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Array.from(he.s).map((e=>({letter:e,list:[]})))}}),Me=Object(n.a)(ve.prototype,"cityGroups",[d.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Array.from(he.s).map((e=>({letter:e,list:[]})))}}),_e=Object(n.a)(ve.prototype,"areaGroups",[d.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Array.from(he.s).map((e=>({letter:e,list:[]})))}}),Object(n.a)(ve.prototype,"clearProvince",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"clearProvince"),ve.prototype),Object(n.a)(ve.prototype,"clearProvinceV2",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"clearProvinceV2"),ve.prototype),Object(n.a)(ve.prototype,"clearCity",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"clearCity"),ve.prototype),Object(n.a)(ve.prototype,"clearCityV2",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"clearCityV2"),ve.prototype),Object(n.a)(ve.prototype,"clearArea",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"clearArea"),ve.prototype),Object(n.a)(ve.prototype,"clearAreaV2",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"clearAreaV2"),ve.prototype),Object(n.a)(ve.prototype,"chooseCountryV2",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"chooseCountryV2"),ve.prototype),Object(n.a)(ve.prototype,"chooseProvince",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"chooseProvince"),ve.prototype),Object(n.a)(ve.prototype,"chooseProvinceV2",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"chooseProvinceV2"),ve.prototype),Object(n.a)(ve.prototype,"chooseCity",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"chooseCity"),ve.prototype),Object(n.a)(ve.prototype,"chooseCityV2",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"chooseCityV2"),ve.prototype),Object(n.a)(ve.prototype,"chooseArea",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"chooseArea"),ve.prototype),Object(n.a)(ve.prototype,"chooseAreaV2",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"chooseAreaV2"),ve.prototype),Object(n.a)(ve.prototype,"addAddressValueItem",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"addAddressValueItem"),ve.prototype),Object(n.a)(ve.prototype,"deleteAddressValueItem",[d.f],Object.getOwnPropertyDescriptor(ve.prototype,"deleteAddressValueItem"),ve.prototype),ve),xe=a(41),Se=(a(1293),Object(l.a)((De=class extends o.Component{constructor(e){super(e),Object(i.a)(this,"customCtx",void 0),Object(i.a)(this,"innerCtxId",void 0),Object(i.a)(this,"state",{retryInitLoading:!0}),Object(i.a)(this,"chooseLocation",Object(d.k)(this._chooseLocation)),Object(i.a)(this,"mobxShouldComponentUpdate",void 0),this.mobxShouldComponentUpdate=this.shouldComponentUpdate,this.shouldComponentUpdate=this.customShouldComponentUpdate,setTimeout((()=>{this.setState({retryInitLoading:!1})}),1e3)}customShouldComponentUpdate(e,t,a){return this.init(e.widget,e.ctxId),!this.props.inTable&&this.chooseLocation(e.widget),this.mobxShouldComponentUpdate(e,t,a)}componentWillUnmount(){Object(b.b)(this)}UNSAFE_componentWillMount(){var{widget:e,ctxId:t}=this.props;this.init(e,t)}*_chooseLocation(e){var{geoTreeStore:t}=this.customCtx,{country:a,province:r,city:i,area:n}=e.data;a&&(yield t.chooseNode(a.id)),r&&t.chooseNode(r.id),i&&t.chooseNode(i.id),n&&t.chooseNode(n.id)}init(e,t){var{configurableFormStore:a}=Object(b.d)(t),r=a.getWidget(e.id);this.customCtx={geoTreeStore:new Ce(r,Boolean(this.props.inTable))},this.innerCtxId=Object(b.c)(Object(b.d)(t),this.customCtx,this)}retryPreLocate(e,t){return Object(r.a)((function*(){try{p.a.showLoading({title:Object(f.t)("Loading")}),yield Object(Z.c)(e,t,!0)}catch(e){console.error("preLocating failed")}finally{p.a.hideLoading()}}))()}updateDetail(e){var{widget:t,ctxId:a,onFinish:r}=this.props,{configurableFormStore:i}=Object(b.d)(a);t.data.detail=String(e),i.handleWidgetChange(t.id),null==r||r()}renderInTable(){var{widget:e,ctxId:t,subCellType:a,inTable:r,onFinish:i}=this.props;if(!t)return null;var{configurableFormStore:n}=Object(b.d)(t),{data:{name:o,area:s,city:l,country:u,province:p,enableMultiDivisions:m,value:h,preLocating:v,writable:M,selectPlaceholder:_,validationError:y}}=e;if("detail"===a)return this.renderDetailTableCell();Object(d.s)((()=>{h.forEach((e=>{e.province=p||void 0,e.country=u||void 0,e.city=l||void 0,e.area=s||void 0}))}));var D=v&&M&&!this.state.retryInitLoading&&!(null!=u&&u.id);return Object(N.jsxs)(c.r,{children:[Object(N.jsx)(ie,{ctxId:this.innerCtxId,widget:e,enableMultiDivisions:m,name:o,inputNoBorder:!0,inTable:Boolean(r),onBlur:i,renderRetry:()=>D?Object(N.jsxs)(c.r,{className:"pre-locate-retry",children:[Object(N.jsx)(c.r,{children:Object(f.t)("Address_PreLocateFail")}),Object(N.jsx)(j.a,{color:"primary",type:"text",onClick:t=>{t.stopPropagation(),this.retryPreLocate(e,n)},children:Object(f.t)("Retry")})]}):null}),D?null:Object(N.jsx)(g.a,{className:"address-table-cell-editor-placeholder",customStyle:{visibility:"hidden",pointerEvents:"none"},noBorder:!0,disabled:!M,placeholder:_,value:(null==u?void 0:u.name)||"",error:y||"",suffix:Object(N.jsx)(O.a,{name:"time_outlined",size:16,color:"#646A73"})})]})}renderDetailTableCell(){var{widget:e,ctxId:t,inTable:a,height:r}=this.props;if(!t)return null;var{data:{detailPlaceholder:i,detail:n,validationError:o="",disabled:s,writable:c}}=e;return"editing"===a?Object(N.jsx)(v.b,{className:"detail-input-table-editor",focus:!0,autoHeight:!0,customWrapperStyle:{minHeight:r+2},maxHeight:270,placeholder:i,value:n,onBlur:e=>{this.updateDetail(e),this.forceUpdate()}}):Object(N.jsx)(g.a,{noBorder:!0,disabled:s||!c,placeholder:i,value:n,error:(null==o?void 0:o.split(Z.a)[1])||""})}render(){var{widget:e,ctxId:t,inTable:a,isInDetailPage:r}=this.props;if(!t)return null;if(a)return this.renderInTable();var{data:{name:i,selectIsEnabled:n,selectIsRequired:o,detailIsEnabled:s,detailIsRequired:l,validationError:d,hasHistory:u,isV2:p,enableMultiDivisions:b}}=e,g=(null==d?void 0:d.split(Z.a))||[];return Object(N.jsxs)(c.r,{className:"widget-editor address-editor",children:[Object(N.jsxs)(m.a,{required:o||l,children:[i,u&&Object(N.jsx)(xe.a,{ctxId:t,widget:e},e.id)]}),p&&n&&Object(N.jsx)(ie,{ctxId:this.innerCtxId,widget:e,enableMultiDivisions:b,name:i}),!p&&n&&Object(N.jsx)(se,{ctxId:this.innerCtxId,widget:e,isInDetailPage:r}),!p&&n&&Object(N.jsx)(le,{ctxId:this.innerCtxId,widget:e}),!p&&s&&Object(N.jsx)(pe,{ctxId:this.innerCtxId,widget:e}),Object(N.jsx)(h.a,{text:g[0]||g[1]})]})}},Object(n.a)(De.prototype,"retryPreLocate",[d.f],Object.getOwnPropertyDescriptor(De.prototype,"retryPreLocate"),De.prototype),Object(n.a)(De.prototype,"updateDetail",[d.f],Object.getOwnPropertyDescriptor(De.prototype,"updateDetail"),De.prototype),ye=De))||ye);t.a=Se},function(e,t,a){"use strict";a.d(t,"b",(function(){return L}));var r,i,n,o,s,c,l,d,u,p,m=a(5),h=a(37),b=a(3),g=a(1),v=a(15),j=a(8),O=a.n(j),f=a(1479),M=a(309),_=a.n(M),y=a(11),D=a(6),N=a(7),A=(a(56),a(4)),T=a(28),I=(r=class{constructor(){Object(y.a)(this,"menus",i,this)}register(e){this.menus.set(e.id,Object(m.a)({index:0,order:"ascending"},e))}get values(){return Array.from(this.menus.values())}},i=Object(N.a)(r.prototype,"menus",[A.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Object(N.a)(r.prototype,"register",[A.f],Object.getOwnPropertyDescriptor(r.prototype,"register"),r.prototype),Object(N.a)(r.prototype,"values",[A.h],Object.getOwnPropertyDescriptor(r.prototype,"values"),r.prototype),r),C=(n=class{constructor(){Object(y.a)(this,"panels",o,this),Object(y.a)(this,"current",s,this)}activate(e){if(e&&!this.panels.has(e))return Taro.showToast({title:"不存在 ".concat(e," 与之对应的面板可供切换!")});this.current=e}register(e){this.panels.set(e.id,e)}get values(){return Array.from(this.panels.values())}},o=Object(N.a)(n.prototype,"panels",[A.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),s=Object(N.a)(n.prototype,"current",[A.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Object(N.a)(n.prototype,"activate",[A.f],Object.getOwnPropertyDescriptor(n.prototype,"activate"),n.prototype),Object(N.a)(n.prototype,"register",[A.f],Object.getOwnPropertyDescriptor(n.prototype,"register"),n.prototype),Object(N.a)(n.prototype,"values",[A.h],Object.getOwnPropertyDescriptor(n.prototype,"values"),n.prototype),n),x=(c=A.f.bound,l=class{constructor(){Object(y.a)(this,"currentInstanceID",d,this)}setCurrentInstanceID(e){this.currentInstanceID=e}},d=Object(N.a)(l.prototype,"currentInstanceID",[A.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Object(N.a)(l.prototype,"setCurrentInstanceID",[c],Object.getOwnPropertyDescriptor(l.prototype,"setCurrentInstanceID"),l.prototype),l),S=T.m||T.q||T.n,w=(u=class{constructor(){Object(D.a)(this,"menu",void 0),Object(D.a)(this,"panel",void 0),Object(D.a)(this,"detail",void 0),Object(y.a)(this,"visible",p,this),this.menu=new I,this.panel=new C,this.detail=new x}toggle(e){S&&(this.visible=void 0!==e?e:!this.visible)}close(){this.visible=!1}registerMenu(e){this.menu.register(e)}registerPanel(e){this.panel.register(e)}},p=Object(N.a)(u.prototype,"visible",[A.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(N.a)(u.prototype,"toggle",[A.f],Object.getOwnPropertyDescriptor(u.prototype,"toggle"),u.prototype),Object(N.a)(u.prototype,"close",[A.f],Object.getOwnPropertyDescriptor(u.prototype,"close"),u.prototype),Object(N.a)(u.prototype,"registerMenu",[A.f],Object.getOwnPropertyDescriptor(u.prototype,"registerMenu"),u.prototype),Object(N.a)(u.prototype,"registerPanel",[A.f],Object.getOwnPropertyDescriptor(u.prototype,"registerPanel"),u.prototype),u),L=new w,E=Object(b.createContext)(L);function k(){return Object(b.useContext)(E)}var z=a(117),R=a(10),P=a(0),U=Object(v.a)((e=>{var{id:t,title:a,target:r,action:i}=e,n=k();return Object(P.jsx)(g.r,{className:_.a.button,onClick:()=>r?n.panel.activate(r):Object(z.b)(i)?i(n):void R.a.warn("nothing to do here"),children:a},t)})),B=a(793),F=a(361),Y=a(24),Q=a(552),G=a.n(Q),W=()=>{var e,{indexStore:t}=Object(Y.c)(),a=null==t||null===(e=t.debuggerStore)||void 0===e?void 0:e.logger;return Object(P.jsx)(g.r,{className:G.a["display-view"],children:null==a?void 0:a.map(((e,t)=>Object(P.jsxs)(g.r,{className:G.a["field-wrapper"],children:[Object(P.jsx)(g.r,{className:G.a.label,children:null==e?void 0:e.key}),Object(P.jsx)(g.r,{className:G.a.value,children:JSON.stringify(null==e?void 0:e.value)})]},t)))})},V=a(19),H=a.n(V),Z=a(581),q=a(97),K=a(794),J=a.n(K),X=Object(Z.a)((e=>{try{return JSON.parse(e),!0}catch(e){return!1}})),$=()=>{var[e,t]=Object(b.useState)(""),[a,r]=Object(b.useState)(""),i=Object(b.useMemo)((()=>{var t;return null!==(t=null==e?void 0:e.replace(/[\r\n]/g,""))&&void 0!==t?t:""}),[e]),{indexStore:n}=Object(Y.c)(),{detailModuleStore:o}=n;Object(b.useEffect)((()=>()=>o.setMockedApprovalInstance(null)),[o]);var s=X(i);return Object(P.jsxs)(g.r,{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[Object(P.jsx)(g.q,{value:e,maxlength:-1,placeholder:"输入 JSON 字符串(一般为 instance/detail 接口的返回值)",onInput:e=>{r(""),t(e.detail.value)},style:{flex:"1",width:"100%",border:"1px solid #3370ff"}}),a,Object(P.jsxs)(g.r,{style:{display:"flex",width:"100%",justifyContent:"center"},children:[Object(P.jsx)(g.b,{disabled:!s,className:J.a.button,onClick:()=>{try{var e,t,a,{code:n,msg:s,data:c,InstanceDetailApi:l,detail:d}=JSON.parse(i),u=Object(q.a)(d),p=Object(q.a)(null==c?void 0:c.detail),m=Object(q.a)(null==l?void 0:l.detail);if(!p&&!m&&!u)return r("'.data.detail', '.InstanceDetailApi.detail', '.detail' 均不存在!"),void H.a.showToast({title:"数据结构非法!"});var h={code:n||0,data:c||l||{detail:d},msg:s||""};o.setMockedApprovalInstance(h),o.open({id:null!==(e=null===(t=h.data)||void 0===t||null===(a=t.detail)||void 0===a?void 0:a.instanceId)&&void 0!==e?e:"",searchKeyword:"",type:"default",helpdeskURL:""},!1)}catch(e){R.a.error(e),r("输入内容必须是 JSON 序列化后的字符串!(一般为 instance/detail 接口的返回值)"),H.a.showToast({title:"JSON 解析出错"})}},children:i?s?"确定":"无效JSON":"确定"}),Object(P.jsx)(g.b,{disabled:!i,className:J.a.button,onClick:()=>{t(""),o.setMockedApprovalInstance(null)},children:"清除"})]})]})},ee=a(319);L.menu.register({id:"clearStorage",title:"清除缓存",index:0,action:B.a}),L.menu.register({id:"resetUserGuide",title:"新手引导重置",index:1,action:B.b}),L.menu.register({id:"copyCurrentInstanceID",title:"拷贝当前单据 ID",index:998,action:()=>{Object(F.a)(L.detail.currentInstanceID)}}),L.menu.register({id:"openApprovalDetailByDrawer",title:"抽屉打开自有详情",index:999,action:()=>{Object(ee.a)("31543C88-95D7-48B2-8047-6CA351DBC3BA")}}),L.menu.register({id:"togglePanel",title:"关闭面板",index:999,order:"descending",action:()=>L.panel.activate("")}),L.panel.register({id:"WebsocketLogger",title:"Websocket 日志",index:101,view:Object(P.jsx)(W,{})}),L.panel.register({id:"mockDetail",title:"Mock 详情",index:102,view:Object(P.jsx)($,{})});var te=a(614),ae=Object(v.a)((e=>{var{id:t,view:a}=e,r=k();return Object(P.jsx)(te.a,{id:t,current:r.panel.current,children:Object(z.b)(a)?a(r):a},t)})),re=["id"];t.a=Object(v.a)(Object(b.forwardRef)(((e,t)=>{var a,[r,i]=Object(b.useState)({right:12,bottom:12});Object(b.useImperativeHandle)(t,(()=>L));var{menu:n,panel:o}=L,[s,c]=Object(b.useMemo)((()=>{var e=n.values,t=o.values.map((e=>{var{id:t}=e,a=Object(h.a)(e,re);return Object(m.a)({id:t,target:t},a)})),a=[...e,...t],r=a.filter((e=>{var{order:t}=e;return"descending"!==t})),i=a.filter((e=>{var{order:t}=e;return"descending"===t}));return[Object(f.a)(r,"index"),Object(f.a)(i,"index").reverse()]}),[n.values,o.values]);return L.visible?Object(P.jsxs)(g.r,{className:O()(_.a.devtools,null!==(a=e.className)&&void 0!==a?a:""),style:Object(m.a)({},r),onTouchMove:e=>{e.stopPropagation()},children:[Object(P.jsx)(g.r,{className:_.a.close,onClick:e=>{e.stopPropagation(),L.close()},children:"×"}),Object(P.jsxs)(g.r,{className:_.a.sidebar,children:[Object(P.jsx)(g.r,{className:_.a.brand,children:"Devtools"}),Object(P.jsxs)(g.r,{className:_.a.menus,children:[Object(P.jsx)(g.r,{children:s.map((e=>Object(P.jsx)(U,Object(m.a)({},e),e.id)))}),Object(P.jsx)(g.r,{children:c.map((e=>Object(P.jsx)(U,Object(m.a)({},e),e.id)))})]}),Object(P.jsx)(g.r,{className:_.a.environment,children:Object(P.jsxs)(g.p,{children:["online","-","production"]})})]}),o.current&&Object(P.jsx)(g.r,{className:_.a.panel,children:o.values.map((e=>Object(P.jsx)(ae,Object(m.a)({},e),e.id)))})]}):null})))},function(e,t,a){"use strict";var r,i,n,o,s,c,l,d,u=a(11),p=a(6),m=a(7),h=(a(56),a(3)),b=a.n(h),g=a(1),v=a(15),j=a(4),O=a(2),f=a(48),M=a(60),_=a(625),y=a(68),D=a(14),N=a(394),A=(a(1311),a(41)),T=a(5),I=a(37),C=a(157),x=a(570),S=a(42),w=a(12),L=a(8),E=a.n(L),k=a(177),z=a(191),R=a(89),P=a(108),U=a(546),B=a.n(U),F=a(0),Y=["value","type","className","placeholder","hasError","errorMessage","disabled","onInput","onFocus","onBlur","onClear","renderPrefixIcon"],Q=e=>{var{value:t="",type:a="text",className:r="",placeholder:i=Object(O.t)("approvalForm.pleaseFill"),hasError:n,errorMessage:o,disabled:s=!1,onInput:c,onFocus:l,onBlur:d,onClear:u,renderPrefixIcon:p}=e,m=Object(I.a)(e,Y),[b,v]=Object(h.useState)(t),[j,f]=Object(h.useState)(!1);Object(h.useEffect)((()=>{v(t)}),[t]);var M=e=>{var{detail:{value:t}}=e;v(t),null==c||c(t)};return Object(F.jsxs)(g.r,{className:B.a.input_wrap,children:[p&&Object(F.jsx)(g.r,{className:B.a.icon,children:p}),Object(F.jsx)(P.a,Object(T.a)({focus:j,className:"".concat(r," "),value:b,onInput:M,onFocus:()=>{f(!0),null==l||l()},onBlur:()=>{null==d||d(b)},placeholder:i,disabled:s,placeholderStyle:"color:#8F959E"},m)),Boolean(b)&&u&&Object(F.jsx)(g.r,{className:"iconfont icon-empty ".concat(B.a.clear),onClick:()=>{M({detail:{value:""}}),null==u||u(),null==d||d("")}}),n&&Boolean(o)&&Object(F.jsx)(g.r,{className:B.a.error,children:o})]})},G=a(185),W=a.n(G),V=["enableInput","placeholder","disabled","hasError","inTable","height","onClear","onInputBlur","onInputChange","onMaskClick","value","modalStyle","RenderContent","RenderFooter","RenderHeader"],H=b.a.forwardRef(((e,t)=>{var{enableInput:a=!1,placeholder:r=Object(O.t)("Validation.PleaseSelectSth"),disabled:i=!1,hasError:n=!1,inTable:o=!1,height:s,onClear:c,onInputBlur:l,onInputChange:d,onMaskClick:u,value:p="",modalStyle:m,RenderContent:v,RenderFooter:j,RenderHeader:f}=e,M=Object(I.a)(e,V),[_,D]=Object(h.useState)(!1),[N,A]=Object(h.useState)(p);Object(h.useEffect)((()=>{A(p)}),[p]),Object(h.useImperativeHandle)(t,(()=>({handleToggleModal:e=>{D(e)}})));var x=e=>{null==l||l(e)},S=()=>{D(!0)},w=Object(C.a)((e=>{A(e),null==d||d(e)}),50),L=()=>{D(!1),null==u||u()};return Object(F.jsx)(b.a.Fragment,{children:Object(F.jsxs)(g.r,Object(T.a)(Object(T.a)({className:E()(W.a.main_wrap,{[W.a.error]:n,[W.a.no_border]:o,[W.a.active]:_,[W.a.in_table]:o,[W.a.fake_input]:!a})},M),{},{children:[o?a?Object(F.jsx)(z.b,{className:W.a.table_input,focus:!0,customWrapperStyle:{minHeight:s+2},maxHeight:130,autoHeight:!0,placeholder:r,value:N,disabled:i,onChange:w,onBlur:x,onFocus:S}):Object(F.jsx)(y.a,{noBorder:!0,onClick:S,disabled:i,value:N,placeholder:r,suffix:!i&&Object(F.jsx)(R.a,{name:"fold",size:20,color:"#646A73"})}):Object(F.jsx)(g.r,{className:W.a.input_wrap,children:a?Object(F.jsx)(Q,{placeholder:r,value:N,type:"telephone",onInput:w,onBlur:x,isNoBorder:!0,onFocus:S}):Object(F.jsx)(k.a,{className:W.a.search_input,textStyle:{paddingRight:"20px"},onClick:S,disabled:i,value:N,placeholder:r,noBorder:!0,renderTailIcon:Object(F.jsx)(g.r,{className:E()("iconfont icon-icon_down_outlined1",W.a.icon,{[W.a.active]:_})})})}),_&&Boolean(v)&&Object(F.jsxs)(b.a.Fragment,{children:[Object(F.jsxs)(g.r,{className:E()(W.a.modal_main_wrap,{[W.a.in_table]:o}),style:m,children:[f&&Object(F.jsx)(g.r,{className:W.a.header_wrap,children:f}),v,j&&Object(F.jsx)(g.r,{className:W.a.footer_wrap,children:j})]}),Object(F.jsx)((()=>Object(F.jsx)(g.r,{className:W.a.mask,onClick:L})),{})]})]}))})})),Z=b.a.memo(H),q=a(226),K=a.n(q),J=["value","originCountryCodeMap","hasError","onChange","onRetry"],X="ACTIVE_LETTER_",$=e=>{var{value:t="",originCountryCodeMap:a={},hasError:r,onChange:i,onRetry:n}=e,o=Object(I.a)(e,J),s=Object(x.a)(a),c=Object(h.useRef)(null),l=Object(h.useRef)("none"),[d,u]=Object(h.useState)(t),[p,m]=Object(h.useState)(""),[b,v]=Object(h.useState)(""),[j,f]=Object(h.useState)(a);Object(h.useEffect)((()=>{u(t)}),[t]),Object(h.useEffect)((()=>{a!==s&&f(a)}),[a]);var M=Object(h.useCallback)((e=>{l.current="ABC select",v(X+e)}),[]),_=()=>{v(""),f(a),m(""),l.current="none"},y=Object(h.useCallback)(Object(C.a)((e=>{if(m(e),l.current="search",e){var t=e.replace(/[.[*?+^$|()/]|\]|\\/g,"\\$&"),r=new RegExp(t,"gmi"),i=Object.entries(a).reduce(((e,t)=>{var[a,i]=t,n=i.filter((e=>r.test(e.showName)||Boolean(e.pinyin)&&r.test(e.pinyin)));return n.length?Object(T.a)(Object(T.a)({},e),{},{[a]:n}):e}),{});f(i)}else f(a)}),50),[a]),D=()=>{m(""),f(a)},N=Object(h.useMemo)((()=>Object(F.jsxs)(g.r,{className:K.a.country_code_wrap,children:[Object(F.jsx)(g.n,{className:K.a.scroll_view_wrap,scrollY:!0,scrollIntoView:b,scrollWithAnimation:!0,enhanced:!0,showScrollbar:!0,children:Object.entries(j).map(((e,t)=>{var[a,r]=e;return Object(F.jsxs)(g.r,{className:K.a.code_item_wrap,id:X+a,children:[Object(F.jsx)(g.p,{className:K.a.code_letter,children:a}),r.map(((e,t)=>Object(F.jsx)(g.r,{className:K.a.code_item,onClick:()=>function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(w.b)("phone_click_type",{params:{is_trusteeship:0,click_page_type:"create",click_action_type:l}}),u(t),null===(e=c.current)||void 0===e||e.handleToggleModal(!1),_(),null==i||i(t),l.current="none"}(e.globalCode),children:Object(F.jsx)(S.a,{content:e.showName,keyword:p,style:{display:"inline-block",maxWidth:"240px"},hightlightStyle:{backgroundColor:"transparent"}})},"".concat(t,"-").concat(e.globalCode))))]},t)}))}),Boolean(p)&&!Object.entries(j).length&&Object(F.jsx)(g.r,{className:K.a.empty_result,children:Object(O.t)("Telephone.SearchEmpty")}),!Object.entries(a).length&&Object(F.jsxs)(g.r,{className:K.a.load_fail,children:[Object(O.t)("Telephone.OptionLoadFail"),n&&Object(F.jsx)(g.r,{className:K.a.retry,onClick:n,children:Object(O.t)("Retry")})]}),!p&&Object(F.jsx)((()=>{var e=Object.keys(j).filter((e=>new RegExp("^[A-Z]{1}$").test(e)));return Object(F.jsx)(g.r,{className:K.a.letter_wrap,children:e.map(((e,t)=>Object(F.jsx)(g.r,{className:K.a.letter_item,onClick:()=>M(e),children:e},"".concat(t,"-").concat(e))))})}),{})]})),[b,j,p,a,M]),A=Object(h.useMemo)((()=>Object(F.jsx)(g.r,{className:K.a.input_wrap,children:Object(F.jsx)(Q,{value:p,onInput:y,onClear:D,className:K.a.search_input,placeholder:Object(O.t)("Telephone.SearchCountryCode"),renderPrefixIcon:Object(F.jsx)(g.r,{className:"iconfont icon-sousuo ".concat(K.a.icon)})})})),[p,y,D]);return Object(F.jsx)(Z,Object(T.a)({ref:c,value:d,RenderContent:N,RenderHeader:A,enableInput:!1,placeholder:Object(O.t)("Telephone.SelectArea"),hasError:r,onMaskClick:_,style:{minWidth:"70px"}},o))},ee=a(417),te=a.n(ee),ae=["value","historyNumbers","placeholder","hasError","onDelete","onChange","onSelect","onBlur","inTable"],re=e=>{var{value:t="",historyNumbers:a=[],placeholder:r,hasError:i,onDelete:n,onChange:o,onSelect:s,onBlur:c,inTable:l}=e,d=Object(I.a)(e,ae),[u,p]=Object(h.useState)(t),m=Object(h.useRef)(null);Object(h.useEffect)((()=>{p(t)}),[t]);var b=Object(h.useCallback)((function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";p(t),null===(e=m.current)||void 0===e||e.handleToggleModal(!1),null==s||s(t)}),[]),v=Object(h.useCallback)(((e,t)=>{e.stopPropagation(),n(t)}),[]),j=Object(h.useCallback)((e=>{var t;null==c||c(e),null===(t=m.current)||void 0===t||t.handleToggleModal(!1)}),[]),f=Object(h.useMemo)((()=>a.length?Object(F.jsxs)(g.r,{className:E()(te.a.history_record_wrap,{[te.a.in_table]:l}),children:[Object(F.jsx)(g.p,{className:te.a.history_title,children:Object(O.t)("Telephone.HistoryRecord")}),a.map(((e,t)=>Object(F.jsxs)(g.r,{className:te.a.history_item_wrap,children:[Object(F.jsx)(g.r,{className:te.a.history_item,onClick:()=>b(e.nationalNumber),children:Object(F.jsx)(g.p,{children:e.nationalNumber})}),Object(F.jsx)(g.r,{className:"iconfont icon-close ".concat(te.a.icon),onClick:t=>v(t,e.id)})]},t)))]}):null),[a,b,v]);return Object(F.jsx)(Z,Object(T.a)({ref:m,value:u,RenderContent:f,enableInput:!0,placeholder:r,onInputChange:e=>{var t;null===(t=m.current)||void 0===t||t.handleToggleModal(!1),null==o||o(e)},modalStyle:l?{}:{width:"100%"},onInputBlur:j,hasError:i,inTable:l},d))},ie=a(9),ne=a(28),oe=a(10),se=(r=class{constructor(){Object(p.a)(this,"apiService",void 0),Object(u.a)(this,"countryCode",i,this),Object(u.a)(this,"historyRecords",n,this),Object(u.a)(this,"setCountryCode",o,this),Object(u.a)(this,"setHistory",s,this),Object(u.a)(this,"handleHistoryDelete",c,this)}get showCountryCode(){return ne.u||"+86"!==this.countryCode}get historyNumbers(){return this.historyRecords.filter((e=>e.countryCode===this.countryCode))}},i=Object(m.a)(r.prototype,"countryCode",[j.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),n=Object(m.a)(r.prototype,"historyRecords",[j.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(m.a)(r.prototype,"showCountryCode",[j.h],Object.getOwnPropertyDescriptor(r.prototype,"showCountryCode"),r.prototype),Object(m.a)(r.prototype,"historyNumbers",[j.h],Object.getOwnPropertyDescriptor(r.prototype,"historyNumbers"),r.prototype),o=Object(m.a)(r.prototype,"setCountryCode",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{oe.a.info("phoneViewModel setCountryCode",e),this.countryCode=e}}}),s=Object(m.a)(r.prototype,"setHistory",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{oe.a.info("phoneViewModel setHistory",e),this.historyRecords=e}}}),c=Object(m.a)(r.prototype,"handleHistoryDelete",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{this.historyRecords=this.historyRecords.filter((t=>t.id!==e.recordId)),this.apiService.deleteHistoryRecord(e)}}}),r),ce=a(16);class le{constructor(){Object(p.a)(this,"deleteHistoryRecord",(e=>{ce.c.deleteWidgetHistoryRecord(e)})),Object(p.a)(this,"getCountryCodeMap",(()=>ce.c.getCountryCodeMap({locale:Object(O.getCurApiLang)()})))}}var de,ue,pe,me,he,be,ge,ve,je,Oe=(l=class extends se{constructor(e,t){var a;super(),a=this,Object(p.a)(this,"apiService",new le),Object(u.a)(this,"countryCodeMap",d,this),Object(p.a)(this,"getAreaData",Object(ie.a)((function*(){var e,t=yield a.apiService.getCountryCodeMap();if(null!=t&&null!==(e=t.data)&&void 0!==e&&e.codeMap){var r=Object.entries(t.data.codeMap).reduce(((e,t)=>{var[a,r]=t;if(!r.length)return e;var i=r.map((e=>Object(T.a)(Object(T.a)({},e),{},{showName:"".concat(e.name," ").concat(e.globalCode)})));return"hotData"===a?Object(T.a)({[Object(O.t)("Telephone.HotCountryCode")]:i},e):Object(T.a)(Object(T.a)({},e),{},{[a]:i})}),{});Object(j.s)((()=>{a.countryCodeMap=r}))}}))),this.setCountryCode(e),this.setHistory(t)}},d=Object(m.a)(l.prototype,"countryCodeMap",[j.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l),fe=Oe;!function(e){e.BLUR="BLUR",e.SELECT="SELECT"}(je||(je={}));var Me=Object(v.a)((ue=class extends h.Component{constructor(e){super(e),Object(p.a)(this,"viewModel",void 0),Object(u.a)(this,"handleDeleteRecord",pe,this),Object(u.a)(this,"handleCountryCodeChange",me,this),Object(u.a)(this,"handlePhoneNumberChange",he,this),Object(u.a)(this,"handlePhoneNumberSelect",be,this),Object(u.a)(this,"handlePhoneNumberBlur",ge,this),Object(u.a)(this,"handleParsePhoneNumber",ve,this);var{widget:t}=this.props,{data:{value:a,historyNumbers:r}}=t;this.viewModel=new fe(a.countryCode,r)}componentDidMount(){var{subCellType:e,inTable:t}=this.props;t&&"phoneNumber"===e||this.viewModel.getAreaData()}renderInTable(){var{widget:e,ctxId:t,subCellType:a,inTable:r}=this.props;if(!t)return null;var{data:{value:i,writable:n}}=e,{countryCodeMap:o}=this.viewModel,{countryCode:s}=i;return"phoneNumber"===a?this.renderDetailTableCell():Object(F.jsx)(g.r,{children:Object(F.jsx)($,{value:s,originCountryCodeMap:o,onChange:this.handleCountryCodeChange,inTable:Boolean(r),disabled:!n})})}renderDetailTableCell(){var{widget:e,ctxId:t,inTable:a,height:r}=this.props;if(!t)return null;var{data:{placeholder:i,value:n,validationError:o="",writable:s}}=e,{historyNumbers:c}=this.viewModel;return"editing"===a?Object(F.jsx)(re,{height:r,placeholder:i,value:n.nationalNumber,historyNumbers:c,inTable:Boolean(a),onDelete:this.handleDeleteRecord,onSelect:this.handlePhoneNumberSelect,onBlur:this.handlePhoneNumberBlur}):Object(F.jsx)(y.a,{noBorder:!0,disabled:!s,placeholder:i,value:n.nationalNumber,error:o||""})}render(){var{widget:e,ctxId:t,inTable:a}=this.props;if(!t)return null;if(a)return this.renderInTable();var{data:{name:r,required:i,placeholder:n=Object(O.t)("Validation.PleaseSelectSth"),validationError:o,hasHistory:s,value:c}}=e,{countryCodeMap:l,historyNumbers:d,getAreaData:u}=this.viewModel,{countryCode:p,nationalNumber:m}=c;return Object(F.jsx)(b.a.Fragment,{children:Object(F.jsxs)(g.r,{className:"widget-editor",children:[Object(F.jsxs)(f.a,{required:i,children:[r,s&&Object(F.jsx)(A.a,{ctxId:t,widget:e},e.id)]}),Object(F.jsxs)(_.a,{compact:!0,error:Boolean(o),children:[Object(F.jsx)($,{value:p,originCountryCodeMap:l,hasError:Boolean(o),onChange:this.handleCountryCodeChange,onRetry:u}),Object(F.jsx)(re,{value:m,placeholder:n,style:{flex:"1"},historyNumbers:d,hasError:Boolean(o),onDelete:this.handleDeleteRecord,onChange:this.handlePhoneNumberChange,onSelect:this.handlePhoneNumberSelect,onBlur:this.handlePhoneNumberBlur})]}),Object(F.jsx)(M.a,{text:o})]})})}},pe=Object(m.a)(ue.prototype,"handleDeleteRecord",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:t,inTable:a,ctxId:r}=this.props,{configurableFormStore:{definitionInfo:i}}=Object(D.d)(r),{approvalId:n=""}=i||{},o=a?t.id.split("|")[0]:t.id;this.viewModel.handleHistoryDelete({approvalId:n,widgetId:o,recordId:e}),t.data.historyNumbers=t.data.historyNumbers.filter((t=>t.id!==e))}}}),me=Object(m.a)(ue.prototype,"handleCountryCodeChange",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:{data:t}}=this.props;t.value={countryCode:e,nationalNumber:""},t.validationError=null,this.viewModel.setCountryCode(e)}}}),he=Object(m.a)(ue.prototype,"handlePhoneNumberChange",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:{data:t}}=this.props,{value:a}=t;a.nationalNumber=e}}}),be=Object(m.a)(ue.prototype,"handlePhoneNumberSelect",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:{data:t}}=this.props;t.value.nationalNumber=e,this.handleParsePhoneNumber(je.SELECT)}}}),ge=Object(m.a)(ue.prototype,"handlePhoneNumberBlur",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:{data:t},onFinish:a}=this.props;e||(t.validationError=null),t.value.nationalNumber=e,null==a||a(),Boolean(e)&&this.handleParsePhoneNumber()}}}),ve=Object(m.a)(ue.prototype,"handleParsePhoneNumber",[j.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return e=>{var{widget:{id:t,data:a},ctxId:r}=this.props,{value:i,availableType:n}=a,{configurableFormStore:o}=Object(D.d)(r),{countryCode:s,nationalNumber:c}=i;a.validationError=Object(N.c)({countryCode:s,phoneNumber:c,type:n}),e!==je.SELECT&&(c?(a.value=Object(N.b)({countryCode:s,phoneNumber:c,type:n}),this.viewModel.setCountryCode(a.value.countryCode)):a.value.nationalNumber=""),o.handleWidgetChange(t)}}}),de=ue))||de;t.a=Me},function(e,t,a){"use strict";var r,i=a(9),n=a(5),o=a(37),s=a(3),c=a.n(s),l=a(186),d=a(15),u=a(1),p=a(987),m=a(1482),h=a(805),b=a(2),g=(a(1271),a(4)),v=a(916),j=a.n(v),O=a(0),f=Object(d.a)((e=>{var{children:t,value:a,onChange:r}=e,i=Object(l.d)((()=>({value:a,setValue:Object(g.f)((e=>{i.value=e}))})));Object(s.useEffect)((()=>{i.setValue(a)}),[a]);return Object(O.jsx)(u.r,{className:j.a.main_wrap,children:Object(O.jsx)(m.a.Group,{onChange:e=>{i.setValue(e),r&&r(e)},value:i.value,children:t})})})),M=a(505),_=a.n(M),y=a(92),D=Object(d.a)((e=>{var{children:t,title:a,className:r="",name:i,formStore:n}=e,{required:o}=n.formFields[i],c=e=>{n.setFieldValue(i,e)},l=Object(s.useMemo)((()=>{var e=n.validateResult.fields[i],{dirty:a}=n.formFields[i],{value:r}=n.formFields[i];return Object(y.b)(t,{value:r,onChange:c,dirty:a,hasError:a&&Boolean(e),errorMessage:a&&e?e[0].message:""})}),[t,n.validateResult,n.formFields[i].dirty,n.formFields[i].value]);return Object(O.jsxs)(u.r,{className:"".concat(_.a.form_item," ").concat(r),children:[Object(O.jsxs)(u.r,{className:_.a.form_title,children:[Object(O.jsx)(u.r,{className:_.a.title,children:a}),o&&Object(O.jsx)(u.r,{className:_.a.required,children:"*"})]}),Object(O.jsx)(u.r,{className:_.a.content,children:l})]})})),N=(a(1272),a(398)),A=a(786),T=a.n(A),I=Object(d.a)((e=>{var{value:t="",onChange:a,className:r="",placeholder:i=Object(b.t)("approvalForm.pleaseFill"),type:n="text",formatType:o,hasError:c,errorMessage:d,disabled:p=!1}=e,m=Object(l.d)((()=>({setValue:Object(g.f)((e=>{m.value=e})),setFocus:Object(g.f)((e=>{m.focus=e})),value:"",focus:!1,get displayText(){return h(m.value)}}))),h=e=>"bankCard"===o?Object(y.e)(e):e;Object(s.useEffect)((()=>{m.setValue(t)}),[t]);var v=e=>{var{detail:{value:t}}=e;"string"==typeof t&&(t=t.trim()),m.setValue(t),setTimeout((()=>{if("number"===n){var e=(e=>"".concat(e).replace(/[^0-9]/gi,""))(t);a&&a(e),m.setValue(e)}else a&&a(t),m.setValue(t)}),1)};return Object(O.jsxs)(u.r,{className:T.a.input_wrap,children:[Boolean(m.value)&&Object(O.jsx)(u.r,{className:"iconfont icon-empty ".concat(T.a.clear),style:{display:m.focus?"block":""},onClick:()=>{v({detail:{value:""}})}}),Object(O.jsx)(N.a,{className:"".concat(r," "),value:m.focus?m.value:m.displayText,onInput:v,onFocus:()=>{m.setFocus(!0)},onBlur:()=>{m.setFocus(!1)},placeholder:i,type:n,disabled:p,hasError:c,errorMessage:d})]})})),C=a(530),x=a(506),S=a.n(x),w=["className","hasError","errorMessage","disabled","showLength","value","onInput","maxLength","placeholderStyle"],L=e=>{var[t,a]=Object(s.useState)(""),{className:r,hasError:i,errorMessage:c,disabled:l,showLength:d,value:p,onInput:m,maxLength:h,placeholderStyle:b="font-weight:300;color:#8F959E"}=e,g=Object(o.a)(e,w);return Object(O.jsxs)(u.r,{className:S.a.wrapper,children:[Object(O.jsxs)(u.r,{className:S.a.inner,children:[Object(O.jsx)(u.q,Object(n.a)({disabled:l,className:"".concat(r," ").concat(S.a.input),value:p||t,onInput:e=>{var{detail:{value:t}}=e;void 0===t&&a(t),m&&m(e)},maxlength:h,style:{borderColor:l?"#D0D3D6":i?"#f54a45":"",zIndex:0},placeholderStyle:b},g)),d&&Object(O.jsx)(u.r,{className:S.a.count_wrap,children:(void 0!==p?p.length:t.length)+(h?"/".concat(h):"")})]}),i&&Boolean(c)&&Object(O.jsx)(u.r,{className:S.a.error,children:c})]})},E=(a(1273),a(919)),k=a.n(E),z=Object(d.a)((e=>{var{showLength:t=!1,maxLength:a,value:r,onChange:i,placeholder:n=""}=e;return Object(O.jsx)(L,{maxLength:a,showLength:t,value:r,onInput:e=>{var{detail:{value:t}}=e;i&&i(t)},placeholder:n,className:k.a.custom_textarea})})),R=(a(838),a(6)),P=a(10),U=a(250),B=a(238),F=b.LANG_CODE.zh,Y=e=>[{code:"AF",name:"Afghanistan",geoname_id:1149361,asci_name:"Islamic Republic of Afghanistan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AF_en_L3.json"},{code:"AL",name:"Albania",geoname_id:783754,asci_name:"Republic of Albania",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AL_en_L3.json"},{code:"DZ",name:"Algeria",geoname_id:2589581,asci_name:"People's Democratic Republic of Algeria",level:"Country",sub_region_path:"/obj/ttfe/ttarch/DZ_en_L3.json"},{code:"AS",name:"American Samoa",geoname_id:5880801,asci_name:"American Samoa, Territory of",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AS_en_L3.json"},{code:"AD",name:"Andorra",geoname_id:3041565,asci_name:"Principality of Andorra",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AD_en_L3.json"},{code:"AO",name:"Angola",geoname_id:3351879,asci_name:"Republic of Angola",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AO_en_L3.json"},{code:"AI",name:"Anguilla",geoname_id:3573511,asci_name:"Anguilla",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AI_en_L3.json"},{code:"AN",name:"Antarctica",geoname_id:6255152,asci_name:"Antarctica",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AN_en_L3.json"},{code:"AG",name:"Antigua and Barbuda",geoname_id:3576396,asci_name:"Antigua and Barbuda",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AG_en_L3.json"},{code:"AR",name:"Argentina",geoname_id:3865483,asci_name:"Argentine Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AR_en_L3.json"},{code:"AM",name:"Armenia",geoname_id:174982,asci_name:"Republic of Armenia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AM_en_L3.json"},{code:"AW",name:"Aruba",geoname_id:3577279,asci_name:"Aruba",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AW_en_L3.json"},{code:"AU",name:"Australia",geoname_id:2077456,asci_name:"Commonwealth of Australia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AU_en_L3.json"},{code:"AT",name:"Austria",geoname_id:2782113,asci_name:"Republic of Austria",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AT_en_L3.json"},{code:"AZ",name:"Azerbaijan",geoname_id:587116,asci_name:"Republic of Azerbaijan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AZ_en_L3.json"},{code:"BS",name:"Bahamas",geoname_id:3572887,asci_name:"Commonwealth of The Bahamas",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BS_en_L3.json"},{code:"BH",name:"Bahrain",geoname_id:290291,asci_name:"Kingdom of Bahrain",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BH_en_L3.json"},{code:"BD",name:"Bangladesh",geoname_id:1210997,asci_name:"Bangladesh",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BD_en_L3.json"},{code:"BB",name:"Barbados",geoname_id:3374084,asci_name:"Barbados",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BB_en_L3.json"},{code:"BY",name:"Belarus",geoname_id:630336,asci_name:"Republic of Belarus",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BY_en_L3.json"},{code:"BE",name:"Belgium",geoname_id:2802361,asci_name:"Kingdom of Belgium",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BE_en_L3.json"},{code:"BZ",name:"Belize",geoname_id:3582678,asci_name:"Belize",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BZ_en_L3.json"},{code:"BJ",name:"Benin",geoname_id:2395170,asci_name:"Republic of Benin",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BJ_en_L3.json"},{code:"BM",name:"Bermuda",geoname_id:3573345,asci_name:"Bermuda",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BM_en_L3.json"},{code:"BT",name:"Bhutan",geoname_id:1252634,asci_name:"Kingdom of Bhutan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BT_en_L3.json"},{code:"BO",name:"Bolivia",geoname_id:3923057,asci_name:"Plurinational State of Bolivia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BO_en_L3.json"},{code:"BQ",name:"Bonaire, Sint Eustatius, and Saba",geoname_id:7626844,asci_name:"Bonaire, Saint Eustatius and Saba",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BQ_en_L3.json"},{code:"BA",name:"Bosnia and Herzegovina",geoname_id:3277605,asci_name:"Bosnia and Herzegovina",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BA_en_L3.json"},{code:"BW",name:"Botswana",geoname_id:933860,asci_name:"Republic of Botswana",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BW_en_L3.json"},{code:"BV",name:"Bouvet Island",geoname_id:3371123,asci_name:"Bouvet Island",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BV_en_L3.json"},{code:"BR",name:"Brazil",geoname_id:3469034,asci_name:"Federative Republic of Brazil",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BR_en_L3.json"},{code:"IO",name:"British Indian Ocean Territory",geoname_id:1282588,asci_name:"British Indian Ocean Territory",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IO_en_L3.json"},{code:"VG",name:"British Virgin Islands",geoname_id:3577718,asci_name:"British Virgin Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/VG_en_L3.json"},{code:"BN",name:"Brunei",geoname_id:1820814,asci_name:"Brunei Darussalam",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BN_en_L3.json"},{code:"BG",name:"Bulgaria",geoname_id:732800,asci_name:"Republic of Bulgaria",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BG_en_L3.json"},{code:"BF",name:"Burkina Faso",geoname_id:2361809,asci_name:"Burkina Faso",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BF_en_L3.json"},{code:"BI",name:"Burundi",geoname_id:433561,asci_name:"Republic of Burundi",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BI_en_L3.json"},{code:"CV",name:"Cabo Verde",geoname_id:3374766,asci_name:"Republic of Cabo Verde",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CV_en_L3.json"},{code:"KH",name:"Cambodia",geoname_id:1831722,asci_name:"Kingdom of Cambodia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KH_en_L3.json"},{code:"CM",name:"Cameroon",geoname_id:2233387,asci_name:"Republic of Cameroon",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CM_en_L3.json"},{code:"CA",name:"Canada",geoname_id:6251999,asci_name:"Canada",level:"Country",sub_region_path:"https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/CA_en_L3.json"},{code:"KY",name:"Cayman Islands",geoname_id:3580718,asci_name:"Cayman Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KY_en_L3.json"},{code:"CF",name:"Central African Republic",geoname_id:239880,asci_name:"Central African Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CF_en_L3.json"},{code:"TD",name:"Chad",geoname_id:2434508,asci_name:"Republic of Chad",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TD_en_L3.json"},{code:"CL",name:"Chile",geoname_id:3895114,asci_name:"Republic of Chile",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CL_en_L3.json"},{code:"CN",name:"China",geoname_id:1814991,asci_name:"People's Republic of China",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CN_en_L3.json"},{code:"CX",name:"Christmas Island",geoname_id:2078138,asci_name:"Territory of Christmas Island",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CX_en_L3.json"},{code:"CC",name:"Cocos [Keeling] Islands",geoname_id:1547376,asci_name:"Territory of Cocos (Keeling) Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CC_en_L3.json"},{code:"CO",name:"Colombia",geoname_id:3686110,asci_name:"Republic of Colombia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CO_en_L3.json"},{code:"KM",name:"Comoros",geoname_id:921929,asci_name:"Union of the Comoros",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KM_en_L3.json"},{code:"CD",name:"Congo",geoname_id:203312,asci_name:"Democratic Republic of the Congo",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CD_en_L3.json"},{code:"CK",name:"Cook Islands",geoname_id:1899402,asci_name:"Cook Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CK_en_L3.json"},{code:"CR",name:"Costa Rica",geoname_id:3624060,asci_name:"Republic of Costa Rica",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CR_en_L3.json"},{code:"HR",name:"Croatia",geoname_id:3202326,asci_name:"Republic of Croatia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/HR_en_L3.json"},{code:"CU",name:"Cuba",geoname_id:3562981,asci_name:"Republic of Cuba",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CU_en_L3.json"},{code:"CW",name:"Curaçao",geoname_id:7626836,asci_name:"Country of Curacao",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CW_en_L3.json"},{code:"CY",name:"Cyprus",geoname_id:146669,asci_name:"Republic of Cyprus",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CY_en_L3.json"},{code:"CZ",name:"Czechia",geoname_id:3077311,asci_name:"Czechia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CZ_en_L3.json"},{code:"DK",name:"Denmark",geoname_id:2623032,asci_name:"Kingdom of Denmark",level:"Country",sub_region_path:"/obj/ttfe/ttarch/DK_en_L3.json"},{code:"DJ",name:"Djibouti",geoname_id:223816,asci_name:"Republic of Djibouti",level:"Country",sub_region_path:"/obj/ttfe/ttarch/DJ_en_L3.json"},{code:"DM",name:"Dominica",geoname_id:3575830,asci_name:"Dominica",level:"Country",sub_region_path:"/obj/ttfe/ttarch/DM_en_L3.json"},{code:"DO",name:"Dominican Republic",geoname_id:3508796,asci_name:"Dominican Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/DO_en_L3.json"},{code:"TL",name:"East Timor",geoname_id:1966436,asci_name:"Democratic Republic of Timor-Leste",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TL_en_L3.json"},{code:"EC",name:"Ecuador",geoname_id:3658394,asci_name:"Republic of Ecuador",level:"Country",sub_region_path:"/obj/ttfe/ttarch/EC_en_L3.json"},{code:"EG",name:"Egypt",geoname_id:357994,asci_name:"Arab Republic of Egypt",level:"Country",sub_region_path:"/obj/ttfe/ttarch/EG_en_L3.json"},{code:"SV",name:"El Salvador",geoname_id:3585968,asci_name:"Republic of El Salvador",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SV_en_L3.json"},{code:"GQ",name:"Equatorial Guinea",geoname_id:2309096,asci_name:"Republic of Equatorial Guinea",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GQ_en_L3.json"},{code:"ER",name:"Eritrea",geoname_id:338010,asci_name:"State of Eritrea",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ER_en_L3.json"},{code:"EE",name:"Estonia",geoname_id:453733,asci_name:"Republic of Estonia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/EE_en_L3.json"},{code:"ET",name:"Ethiopia",geoname_id:337996,asci_name:"Federal Democratic Republic of Ethiopia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ET_en_L3.json"},{code:"FK",name:"Falkland Islands",geoname_id:3474414,asci_name:"Falkland Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/FK_en_L3.json"},{code:"FO",name:"Faroe Islands",geoname_id:2622320,asci_name:"Faroe Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/FO_en_L3.json"},{code:"FM",name:"Federated States of Micronesia",geoname_id:2081918,asci_name:"Federated States of Micronesia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/FM_en_L3.json"},{code:"FJ",name:"Fiji",geoname_id:2205218,asci_name:"Republic of Fiji",level:"Country",sub_region_path:"/obj/ttfe/ttarch/FJ_en_L3.json"},{code:"FI",name:"Finland",geoname_id:660013,asci_name:"Republic of Finland",level:"Country",sub_region_path:"/obj/ttfe/ttarch/FI_en_L3.json"},{code:"FR",name:"France",geoname_id:3017382,asci_name:"Republic of France",level:"Country",sub_region_path:"/obj/ttfe/ttarch/FR_en_L3.json"},{code:"GF",name:"French Guiana",geoname_id:3381670,asci_name:"Guyane",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GF_en_L3.json"},{code:"PF",name:"French Polynesia",geoname_id:4030656,asci_name:"French Polynesia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PF_en_L3.json"},{code:"TF",name:"French Southern Territories",geoname_id:1546748,asci_name:"Territory of the French Southern and Antarctic Lands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TF_en_L3.json"},{code:"GA",name:"Gabon",geoname_id:2400553,asci_name:"Gabonese Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GA_en_L3.json"},{code:"GM",name:"Gambia",geoname_id:2413451,asci_name:"Gambia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GM_en_L3.json"},{code:"GE",name:"Georgia",geoname_id:614540,asci_name:"Georgia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GE_en_L3.json"},{code:"DE",name:"Germany",geoname_id:2921044,asci_name:"Federal Republic of Germany",level:"Country",sub_region_path:"/obj/ttfe/ttarch/DE_en_L3.json"},{code:"GH",name:"Ghana",geoname_id:2300660,asci_name:"Republic of Ghana",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GH_en_L3.json"},{code:"GI",name:"Gibraltar",geoname_id:2411586,asci_name:"Gibraltar",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GI_en_L3.json"},{code:"GR",name:"Greece",geoname_id:390903,asci_name:"Hellenic Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GR_en_L3.json"},{code:"GL",name:"Greenland",geoname_id:3425505,asci_name:"Greenland",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GL_en_L3.json"},{code:"GD",name:"Grenada",geoname_id:3580239,asci_name:"Grenada",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GD_en_L3.json"},{code:"GP",name:"Guadeloupe",geoname_id:3579143,asci_name:"Guadeloupe",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GP_en_L3.json"},{code:"GU",name:"Guam",geoname_id:4043988,asci_name:"Guam",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GU_en_L3.json"},{code:"GT",name:"Guatemala",geoname_id:3595528,asci_name:"Republic of Guatemala",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GT_en_L3.json"},{code:"GG",name:"Guernsey",geoname_id:3042362,asci_name:"Bailiwick of Guernsey",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GG_en_L3.json"},{code:"GN",name:"Guinea",geoname_id:2420477,asci_name:"Republic of Guinea",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GN_en_L3.json"},{code:"GW",name:"Guinea-Bissau",geoname_id:2372248,asci_name:"Republic of Guinea-Bissau",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GW_en_L3.json"},{code:"GY",name:"Guyana",geoname_id:3378535,asci_name:"Co-operative Republic of Guyana",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GY_en_L3.json"},{code:"HT",name:"Haiti",geoname_id:3723988,asci_name:"Republic of Haiti",level:"Country",sub_region_path:"/obj/ttfe/ttarch/HT_en_L3.json"},{code:"JO",name:"Hashemite Kingdom of Jordan",geoname_id:248816,asci_name:"Hashemite Kingdom of Jordan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/JO_en_L3.json"},{code:"HM",name:"Heard Island and McDonald Islands",geoname_id:1547314,asci_name:"Territory of Heard Island and McDonald Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/HM_en_L3.json"},{code:"HN",name:"Honduras",geoname_id:3608932,asci_name:"Republic of Honduras",level:"Country",sub_region_path:"/obj/ttfe/ttarch/HN_en_L3.json"},{code:"HK",name:"Hong Kong",geoname_id:1819730,asci_name:"Hong Kong Special Administrative Region",level:"Country",sub_region_path:e===F?"/obj/ttfe/ttarch/HK_zh-CN_L3.json":"/obj/ttfe/ttarch/HK_en_L3.json",parent_geoname_id:1814991},{code:"HU",name:"Hungary",geoname_id:719819,asci_name:"Hungary",level:"Country",sub_region_path:"/obj/ttfe/ttarch/HU_en_L3.json"},{code:"IS",name:"Iceland",geoname_id:2629691,asci_name:"Republic of Iceland",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IS_en_L3.json"},{code:"IN",name:"India",geoname_id:1269750,asci_name:"Republic of India",level:"State",sub_region_path:"/obj/ttfe/ttarch/IN_en_L3.json"},{code:"ID",name:"Indonesia",geoname_id:1643084,asci_name:"Republic of Indonesia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ID_en_L3.json"},{code:"IR",name:"Iran",geoname_id:130758,asci_name:"Islamic Republic of Iran",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IR_en_L3.json"},{code:"IQ",name:"Iraq",geoname_id:99237,asci_name:"Republic of Iraq",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IQ_en_L3.json"},{code:"IE",name:"Ireland",geoname_id:2963597,asci_name:"Ireland",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IE_en_L3.json"},{code:"IM",name:"Isle of Man",geoname_id:3042225,asci_name:"Isle of Man",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IM_en_L3.json"},{code:"IL",name:"Israel",geoname_id:294640,asci_name:"State of Israel",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IL_en_L3.json"},{code:"IT",name:"Italy",geoname_id:3175395,asci_name:"Italian Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/IT_en_L3.json"},{code:"CI",name:"Ivory Coast",geoname_id:2287781,asci_name:"Republic of Cote d'Ivoire",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CI_en_L3.json"},{code:"JM",name:"Jamaica",geoname_id:3489940,asci_name:"Jamaica",level:"Country",sub_region_path:"/obj/ttfe/ttarch/JM_en_L3.json"},{code:"JP",name:"Japan",geoname_id:1861060,asci_name:"Japan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/JP_en_L3.json"},{code:"JE",name:"Jersey",geoname_id:3042142,asci_name:"Bailiwick of Jersey",level:"Country",sub_region_path:"/obj/ttfe/ttarch/JE_en_L3.json"},{code:"KZ",name:"Kazakhstan",geoname_id:1522867,asci_name:"Republic of Kazakhstan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KZ_en_L3.json"},{code:"KE",name:"Kenya",geoname_id:192950,asci_name:"Republic of Kenya",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KE_en_L3.json"},{code:"KI",name:"Kiribati",geoname_id:4030945,asci_name:"Republic of Kiribati",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KI_en_L3.json"},{code:"XK",name:"Kosovo",geoname_id:831053,asci_name:"Republic of Kosovo",level:"Country",sub_region_path:"/obj/ttfe/ttarch/XK_en_L3.json"},{code:"KW",name:"Kuwait",geoname_id:285570,asci_name:"State of Kuwait",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KW_en_L3.json"},{code:"KG",name:"Kyrgyzstan",geoname_id:1527747,asci_name:"Kyrgyz Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KG_en_L3.json"},{code:"LA",name:"Laos",geoname_id:1655842,asci_name:"Lao People's Democratic Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LA_en_L3.json"},{code:"LV",name:"Latvia",geoname_id:458258,asci_name:"Republic of Latvia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LV_en_L3.json"},{code:"LB",name:"Lebanon",geoname_id:272103,asci_name:"Lebanon",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LB_en_L3.json"},{code:"LS",name:"Lesotho",geoname_id:932692,asci_name:"Kingdom of Lesotho",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LS_en_L3.json"},{code:"LR",name:"Liberia",geoname_id:2275384,asci_name:"Republic of Liberia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LR_en_L3.json"},{code:"LY",name:"Libya",geoname_id:2215636,asci_name:"Libya",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LY_en_L3.json"},{code:"LI",name:"Liechtenstein",geoname_id:3042058,asci_name:"Principality of Liechtenstein",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LI_en_L3.json"},{code:"LU",name:"Luxembourg",geoname_id:2960313,asci_name:"Grand Duchy of Luxembourg",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LU_en_L3.json"},{code:"MO",name:"Macao",geoname_id:1821275,asci_name:"Macau Special Administrative Region",level:"Country",sub_region_path:e===F?"/obj/ttfe/ttarch/MO_zh-CN_L3.json":"/obj/ttfe/ttarch/MO_en_L3.json",parent_geoname_id:1814991},{code:"MK",name:"Macedonia",geoname_id:718075,asci_name:"Republic of Macedonia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MK_en_L3.json"},{code:"MG",name:"Madagascar",geoname_id:1062947,asci_name:"Republic of Madagascar",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MG_en_L3.json"},{code:"MW",name:"Malawi",geoname_id:927384,asci_name:"Republic of Malawi",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MW_en_L3.json"},{code:"MY",name:"Malaysia",geoname_id:1733045,asci_name:"Malaysia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MY_en_L3.json"},{code:"MV",name:"Maldives",geoname_id:1282028,asci_name:"Republic of Maldives",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MV_en_L3.json"},{code:"ML",name:"Mali",geoname_id:2453866,asci_name:"Republic of Mali",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ML_en_L3.json"},{code:"MT",name:"Malta",geoname_id:2562770,asci_name:"Republic of Malta",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MT_en_L3.json"},{code:"MH",name:"Marshall Islands",geoname_id:2080185,asci_name:"Republic of the Marshall Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MH_en_L3.json"},{code:"MQ",name:"Martinique",geoname_id:3570311,asci_name:"Martinique",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MQ_en_L3.json"},{code:"MR",name:"Mauritania",geoname_id:2378080,asci_name:"Islamic Republic of Mauritania",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MR_en_L3.json"},{code:"MU",name:"Mauritius",geoname_id:934292,asci_name:"Republic of Mauritius",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MU_en_L3.json"},{code:"YT",name:"Mayotte",geoname_id:1024031,asci_name:"Mayotte",level:"Country",sub_region_path:"/obj/ttfe/ttarch/YT_en_L3.json"},{code:"MX",name:"Mexico",geoname_id:3996063,asci_name:"Mexico",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MX_en_L3.json"},{code:"MC",name:"Monaco",geoname_id:2993457,asci_name:"Principality of Monaco",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MC_en_L3.json"},{code:"MN",name:"Mongolia",geoname_id:2029969,asci_name:"Mongolia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MN_en_L3.json"},{code:"ME",name:"Montenegro",geoname_id:3194884,asci_name:"Montenegro",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ME_en_L3.json"},{code:"MS",name:"Montserrat",geoname_id:3578097,asci_name:"Montserrat",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MS_en_L3.json"},{code:"MA",name:"Morocco",geoname_id:2542007,asci_name:"Kingdom of Morocco",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MA_en_L3.json"},{code:"MZ",name:"Mozambique",geoname_id:1036973,asci_name:"Republic of Mozambique",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MZ_en_L3.json"},{code:"MM",name:"Myanmar [Burma]",geoname_id:1327865,asci_name:"Union of Burma",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MM_en_L3.json"},{code:"NA",name:"Namibia",geoname_id:3355338,asci_name:"Republic of Namibia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NA_en_L3.json"},{code:"NR",name:"Nauru",geoname_id:2110425,asci_name:"Nauru",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NR_en_L3.json"},{code:"NP",name:"Nepal",geoname_id:1282988,asci_name:"Federal Democratic Republic of Nepal",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NP_en_L3.json"},{code:"NL",name:"Netherlands",geoname_id:2750405,asci_name:"Kingdom of the Netherlands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NL_en_L3.json"},{code:"NC",name:"New Caledonia",geoname_id:2139685,asci_name:"New Caledonia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NC_en_L3.json"},{code:"NZ",name:"New Zealand",geoname_id:2186224,asci_name:"New Zealand",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NZ_en_L3.json"},{code:"NI",name:"Nicaragua",geoname_id:3617476,asci_name:"Republic of Nicaragua",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NI_en_L3.json"},{code:"NE",name:"Niger",geoname_id:2440476,asci_name:"Republic of Niger",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NE_en_L3.json"},{code:"NG",name:"Nigeria",geoname_id:2328926,asci_name:"Federal Republic of Nigeria",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NG_en_L3.json"},{code:"NU",name:"Niue",geoname_id:4036232,asci_name:"Niue",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NU_en_L3.json"},{code:"NF",name:"Norfolk Island",geoname_id:2155115,asci_name:"Territory of Norfolk Island",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NF_en_L3.json"},{code:"KP",name:"North Korea",geoname_id:1873107,asci_name:"Democratic People's Republic of Korea",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KP_en_L3.json"},{code:"MP",name:"Northern Mariana Islands",geoname_id:4041468,asci_name:"Commonwealth of the Northern Mariana Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MP_en_L3.json"},{code:"NO",name:"Norway",geoname_id:3144096,asci_name:"Kingdom of Norway",level:"Country",sub_region_path:"/obj/ttfe/ttarch/NO_en_L3.json"},{code:"OM",name:"Oman",geoname_id:286963,asci_name:"Sultanate of Oman",level:"Country",sub_region_path:"/obj/ttfe/ttarch/OM_en_L3.json"},{code:"PK",name:"Pakistan",geoname_id:1168579,asci_name:"Islamic Republic of Pakistan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PK_en_L3.json"},{code:"PW",name:"Palau",geoname_id:1559582,asci_name:"Republic of Palau",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PW_en_L3.json"},{code:"PS",name:"Palestine",geoname_id:6254930,asci_name:"Palestine",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PS_en_L3.json"},{code:"PA",name:"Panama",geoname_id:3703430,asci_name:"Republic of Panama",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PA_en_L3.json"},{code:"PG",name:"Papua New Guinea",geoname_id:2088628,asci_name:"Independent State of Papua New Guinea",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PG_en_L3.json"},{code:"PY",name:"Paraguay",geoname_id:3437598,asci_name:"Republic of Paraguay",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PY_en_L3.json"},{code:"PE",name:"Peru",geoname_id:3932488,asci_name:"Republic of Peru",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PE_en_L3.json"},{code:"PH",name:"Philippines",geoname_id:1694008,asci_name:"Republic of the Philippines",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PH_en_L3.json"},{code:"PN",name:"Pitcairn Islands",geoname_id:4030699,asci_name:"Pitcairn, Henderson, Ducie and Oeno Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PN_en_L3.json"},{code:"PL",name:"Poland",geoname_id:798544,asci_name:"Republic of Poland",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PL_en_L3.json"},{code:"PT",name:"Portugal",geoname_id:2264397,asci_name:"Portuguese Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PT_en_L3.json"},{code:"PR",name:"Puerto Rico",geoname_id:4566966,asci_name:"Puerto Rico",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PR_en_L3.json"},{code:"QA",name:"Qatar",geoname_id:289688,asci_name:"State of Qatar",level:"Country",sub_region_path:"/obj/ttfe/ttarch/QA_en_L3.json"},{code:"KR",name:"Republic of Korea",geoname_id:1835841,asci_name:"Republic of Korea",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KR_en_L3.json"},{code:"LT",name:"Republic of Lithuania",geoname_id:597427,asci_name:"Republic of Lithuania",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LT_en_L3.json"},{code:"MD",name:"Republic of Moldova",geoname_id:617790,asci_name:"Republic of Moldova",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MD_en_L3.json"},{code:"CG",name:"Republic of the Congo",geoname_id:2260494,asci_name:"Republic of the Congo",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CG_en_L3.json"},{code:"RO",name:"Romania",geoname_id:798549,asci_name:"Romania",level:"Country",sub_region_path:"/obj/ttfe/ttarch/RO_en_L3.json"},{code:"RU",name:"Russia",geoname_id:2017370,asci_name:"Russian Federation",level:"Country",sub_region_path:"/obj/ttfe/ttarch/RU_en_L3.json"},{code:"RW",name:"Rwanda",geoname_id:49518,asci_name:"Republic of Rwanda",level:"Country",sub_region_path:"/obj/ttfe/ttarch/RW_en_L3.json"},{code:"RE",name:"Réunion",geoname_id:935317,asci_name:"Reunion",level:"Country",sub_region_path:"/obj/ttfe/ttarch/RE_en_L3.json"},{code:"SH",name:"Saint Helena",geoname_id:3370751,asci_name:"Saint Helena, Ascension, and Tristan da Cunha",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SH_en_L3.json"},{code:"LC",name:"Saint Lucia",geoname_id:3576468,asci_name:"Saint Lucia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LC_en_L3.json"},{code:"MF",name:"Saint Martin",geoname_id:3578421,asci_name:"Saint-Martin",level:"Country",sub_region_path:"/obj/ttfe/ttarch/MF_en_L3.json"},{code:"PM",name:"Saint Pierre and Miquelon",geoname_id:3424932,asci_name:"Saint-Pierre et Miquelon",level:"Country",sub_region_path:"/obj/ttfe/ttarch/PM_en_L3.json"},{code:"VC",name:"Saint Vincent and the Grenadines",geoname_id:3577815,asci_name:"Saint Vincent and the Grenadines",level:"Country",sub_region_path:"/obj/ttfe/ttarch/VC_en_L3.json"},{code:"BL",name:"Saint-Barthélemy",geoname_id:3578476,asci_name:"Saint Barthelemy",level:"Country",sub_region_path:"/obj/ttfe/ttarch/BL_en_L3.json"},{code:"WS",name:"Samoa",geoname_id:4034894,asci_name:"Independent State of Samoa",level:"Country",sub_region_path:"/obj/ttfe/ttarch/WS_en_L3.json"},{code:"SM",name:"San Marino",geoname_id:3168068,asci_name:"Repubblica di San Marino",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SM_en_L3.json"},{code:"SA",name:"Saudi Arabia",geoname_id:102358,asci_name:"Kingdom of Saudi Arabia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SA_en_L3.json"},{code:"SN",name:"Senegal",geoname_id:2245662,asci_name:"Republic of Senegal",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SN_en_L3.json"},{code:"RS",name:"Serbia",geoname_id:6290252,asci_name:"Serbia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/RS_en_L3.json"},{code:"SC",name:"Seychelles",geoname_id:241170,asci_name:"Republic of Seychelles",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SC_en_L3.json"},{code:"SL",name:"Sierra Leone",geoname_id:2403846,asci_name:"Republic of Sierra Leone",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SL_en_L3.json"},{code:"SG",name:"Singapore",geoname_id:1880251,asci_name:"Republic of Singapore",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SG_en_L3.json"},{code:"SK",name:"Slovakia",geoname_id:3057568,asci_name:"Slovak Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SK_en_L3.json"},{code:"SI",name:"Slovenia",geoname_id:3190538,asci_name:"Republic of Slovenia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SI_en_L3.json"},{code:"SB",name:"Solomon Islands",geoname_id:2103350,asci_name:"Solomon Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SB_en_L3.json"},{code:"SO",name:"Somalia",geoname_id:51537,asci_name:"Somalia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SO_en_L3.json"},{code:"ZA",name:"South Africa",geoname_id:953987,asci_name:"Republic of South Africa",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ZA_en_L3.json"},{code:"GS",name:"South Georgia and the South Sandwich Islands",geoname_id:3474415,asci_name:"South Georgia and the South Sandwich Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GS_en_L3.json"},{code:"SS",name:"South Sudan",geoname_id:7909807,asci_name:"South Sudan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SS_en_L3.json"},{code:"ES",name:"Spain",geoname_id:2510769,asci_name:"Kingdom of Spain",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ES_en_L3.json"},{code:"LK",name:"Sri Lanka",geoname_id:1227603,asci_name:"Democratic Socialist Republic of Sri Lanka",level:"Country",sub_region_path:"/obj/ttfe/ttarch/LK_en_L3.json"},{code:"KN",name:"St Kitts and Nevis",geoname_id:3575174,asci_name:"Federation of Saint Kitts and Nevis",level:"Country",sub_region_path:"/obj/ttfe/ttarch/KN_en_L3.json"},{code:"SD",name:"Sudan",geoname_id:366755,asci_name:"Republic of the Sudan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SD_en_L3.json"},{code:"SR",name:"Suriname",geoname_id:3382998,asci_name:"Republic of Suriname",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SR_en_L3.json"},{code:"SJ",name:"Svalbard and Jan Mayen",geoname_id:607072,asci_name:"Svalbard and Jan Mayen",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SJ_en_L3.json"},{code:"SZ",name:"Swaziland",geoname_id:934841,asci_name:"Eswatini",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SZ_en_L3.json"},{code:"SE",name:"Sweden",geoname_id:2661886,asci_name:"Kingdom of Sweden",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SE_en_L3.json"},{code:"CH",name:"Switzerland",geoname_id:2658434,asci_name:"Switzerland",level:"Country",sub_region_path:"/obj/ttfe/ttarch/CH_en_L3.json"},{code:"SY",name:"Syria",geoname_id:163843,asci_name:"Syrian Arab Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/SY_en_L3.json"},{code:"ST",name:"São Tomé and Príncipe",geoname_id:2410758,asci_name:"Sao Tome and Principe",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ST_en_L3.json"},{code:"TW",name:"Taiwan",geoname_id:1668284,asci_name:"Taiwan",level:"State",sub_region_path:e===F?"/obj/ttfe/ttarch/TW_zh-CN_L3.json":"/obj/ttfe/ttarch/TW_en_L3.json",parent_geoname_id:1814991},{code:"TJ",name:"Tajikistan",geoname_id:1220409,asci_name:"Republic of Tajikistan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TJ_en_L3.json"},{code:"TZ",name:"Tanzania",geoname_id:149590,asci_name:"United Republic of Tanzania",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TZ_en_L3.json"},{code:"TH",name:"Thailand",geoname_id:1605651,asci_name:"Kingdom of Thailand",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TH_en_L3.json"},{code:"TG",name:"Togo",geoname_id:2363686,asci_name:"Togolese Republic",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TG_en_L3.json"},{code:"TK",name:"Tokelau",geoname_id:4031074,asci_name:"Tokelau",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TK_en_L3.json"},{code:"TO",name:"Tonga",geoname_id:4032283,asci_name:"Kingdom of Tonga",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TO_en_L3.json"},{code:"TT",name:"Trinidad and Tobago",geoname_id:3573591,asci_name:"Republic of Trinidad and Tobago",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TT_en_L3.json"},{code:"TN",name:"Tunisia",geoname_id:2464461,asci_name:"Republic of Tunisia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TN_en_L3.json"},{code:"TR",name:"Turkey",geoname_id:298795,asci_name:"Republic of Turkey",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TR_en_L3.json"},{code:"TM",name:"Turkmenistan",geoname_id:1218197,asci_name:"Turkmenistan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TM_en_L3.json"},{code:"TC",name:"Turks and Caicos Islands",geoname_id:3576916,asci_name:"Turks and Caicos Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TC_en_L3.json"},{code:"TV",name:"Tuvalu",geoname_id:2110297,asci_name:"Tuvalu",level:"Country",sub_region_path:"/obj/ttfe/ttarch/TV_en_L3.json"},{code:"UM",name:"U.S. Minor Outlying Islands",geoname_id:5854968,asci_name:"United States Minor Outlying Islands",level:"Country",sub_region_path:"/obj/ttfe/ttarch/UM_en_L3.json"},{code:"VI",name:"U.S. Virgin Islands",geoname_id:4796775,asci_name:"Virgin Islands of the United States",level:"Country",sub_region_path:"/obj/ttfe/ttarch/VI_en_L3.json"},{code:"UG",name:"Uganda",geoname_id:226074,asci_name:"Republic of Uganda",level:"Country",sub_region_path:"/obj/ttfe/ttarch/UG_en_L3.json"},{code:"UA",name:"Ukraine",geoname_id:690791,asci_name:"Ukraine",level:"Country",sub_region_path:"/obj/ttfe/ttarch/UA_en_L3.json"},{code:"AE",name:"United Arab Emirates",geoname_id:290557,asci_name:"United Arab Emirates",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AE_en_L3.json"},{code:"GB",name:"United Kingdom",geoname_id:2635167,asci_name:"United Kingdom of Great Britain and Northern Ireland",level:"Country",sub_region_path:"/obj/ttfe/ttarch/GB_en_L3.json"},{code:"US",name:"United States",geoname_id:6252001,asci_name:"United States",level:"State",sub_region_path:"/obj/ttfe/ttarch/US_en_L3.json"},{code:"UY",name:"Uruguay",geoname_id:3439705,asci_name:"Oriental Republic of Uruguay",level:"Country",sub_region_path:"/obj/ttfe/ttarch/UY_en_L3.json"},{code:"UZ",name:"Uzbekistan",geoname_id:1512440,asci_name:"Republic of Uzbekistan",level:"Country",sub_region_path:"/obj/ttfe/ttarch/UZ_en_L3.json"},{code:"VU",name:"Vanuatu",geoname_id:2134431,asci_name:"Republic of Vanuatu",level:"Country",sub_region_path:"/obj/ttfe/ttarch/VU_en_L3.json"},{code:"VA",name:"Vatican City",geoname_id:3164670,asci_name:"State of the Vatican City",level:"Country",sub_region_path:"/obj/ttfe/ttarch/VA_en_L3.json"},{code:"VE",name:"Venezuela",geoname_id:3625428,asci_name:"Bolivarian Republic of Venezuela",level:"Country",sub_region_path:"/obj/ttfe/ttarch/VE_en_L3.json"},{code:"VN",name:"Vietnam",geoname_id:1562822,asci_name:"Socialist Republic of Vietnam",level:"Country",sub_region_path:"https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/VN_en_L3.json"},{code:"WF",name:"Wallis and Futuna",geoname_id:4034749,asci_name:"Wallis et Futuna",level:"Country",sub_region_path:"/obj/ttfe/ttarch/WF_en_L3.json"},{code:"EH",name:"Western Sahara",geoname_id:2461445,asci_name:"Western Sahara",level:"Country",sub_region_path:"/obj/ttfe/ttarch/EH_en_L3.json"},{code:"YE",name:"Yemen",geoname_id:69543,asci_name:"Republic of Yemen",level:"Country",sub_region_path:"/obj/ttfe/ttarch/YE_en_L3.json"},{code:"ZM",name:"Zambia",geoname_id:895949,asci_name:"Republic of Zambia",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ZM_en_L3.json"},{code:"ZW",name:"Zimbabwe",geoname_id:878675,asci_name:"Republic of Zimbabwe",level:"Country",sub_region_path:"/obj/ttfe/ttarch/ZW_en_L3.json"},{code:"AX",name:"Åland",geoname_id:661882,asci_name:"Ahvenanmaan Laeaeni",level:"Country",sub_region_path:"/obj/ttfe/ttarch/AX_en_L3.json"}],Q=a(407),G=a(593),W=b.LANG_CODE.zh;var V,H=class{constructor(){if(Object(R.a)(this,"isReady",!1),Object(R.a)(this,"allData",new Map),Object(R.a)(this,"lang",Object(b.getCurCode)()),Object(R.a)(this,"worldData",{}),Object(R.a)(this,"JPLocale",void 0),Object(R.a)(this,"ChinaMainlandName",""),r)return r;this.isReady=!1,this.allData=new Map,this.lang=Object(b.getCurCode)(),this.ChinaMainlandName=Object(b.getCurCode)()===W?"中国大陆":"China",this.worldData=Y(this.lang),this.init(),r=this}fetchDataByUrl(e){return new Promise(((t,a)=>{tt.request({url:e,success(e){200===e.statusCode?t(e.data):(U.a.error(Object(b.t)("AddressPicker.FailOnQueryStaticFile"),3e3,!0),a(e))},fail(e){U.a.error(Object(b.t)("AddressPicker.FailOnQueryStaticFile"),3e3,!0),a(e)}})}))}saveData(e,t){this.allData.set(e,t)}init(){this.initDataByCountryGeoNumberId()}JPPromise(){return this.JPLocale||(this.JPLocale=this.fetchDataByUrl("https://lf-cdn-tos.bytescm.com/obj/static/ea/approval-static/GIS/JP_locale.json")),this.JPLocale}initDataByCountryGeoNumberId(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.a,t=Object(b.getCurCode)(),a=Y(t);t!==this.lang&&(this.worldData=a);var r=a.find((t=>t.geoname_id===e))||a.find((e=>e.geoname_id===B.a)),{sub_region_path:i,geoname_id:n}=r;if(t===b.LANG_CODE.ja&&n===B.c)return this.JPPromise().then((e=>(this.saveData(n,e),null)));var o=Object(G.b)(Q.a,i);return t===b.LANG_CODE.zh&&B.b.includes(n)&&(o=B.d[n]),new Promise((e=>{this.fetchDataByUrl(o).then((t=>{t.geoname_id===B.a&&(t.displayName=this.ChinaMainlandName),t.sub_region&&t.sub_region.length||this.saveData(n,t),this.saveData(n,t),e()}))}))}getDataByGeoNameId(e){return this.allData.get(e)?Promise.resolve(this.allData.get(e)):new Promise((t=>{this.initDataByCountryGeoNumberId(e).then((()=>{t(this.allData.get(e))}))}))}revertGeoNameIdsToRegularData(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length?Promise.resolve([]):new Promise((t=>{var a=e[0];this.getDataByGeoNameId(a).then((a=>{var r=[a],i=function(e){var i=a.sub_region.find((t=>t.geoname_id===e));i?(r.push(i),a=i):t(r)};for(var n of e.slice(1))i(n);t(r)})).catch((e=>{P.a.error("revert address fail",e),t([])}))}))}},Z=a(157),q=a(130),K=a.n(q);a(837),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.NORMAL=1]="NORMAL"}(V||(V={}));var J=Object(d.a)((e=>{var{value:t=[],onChange:a,outputLevel:r="District",placeholder:o=Object(b.t)("Validation.PleaseSelect"),enableSearch:d=!1,disabled:m=!1,hasError:h=!1,errorMessage:v}=e,j=Object(s.useMemo)((()=>new H),[]),f=Object(s.useRef)(),M=Object(s.useMemo)((()=>"address".concat((new Date).getTime()).concat(Math.ceil(1e4*Math.random()))),[]),_=Object(l.d)((()=>({addressData:null,visible:!1,modalPosition:{x:0,y:0},selected:[],searchResult:[],searchInput:"",setSearchInput:Object(g.f)((e=>{_.searchInput=e})),setSearchResult:Object(g.f)((e=>{_.searchResult=e})),switchVisible:Object(g.f)((e=>{console.log("call switch"),_.visible=void 0===e?!_.visible:e})),setModalPosition:Object(g.f)(((e,t)=>{_.modalPosition={x:e,y:t}})),setSelected:Object(g.f)((e=>{_.selected=e})),pushSelected:Object(g.f)((e=>{_.selected.push(e)})),setAddressData:Object(g.f)((e=>{_.addressData=e})),get getSelectedGeoNameIdList(){return _.selected.map((e=>e.geoname_id))},get getDisplayText(){return _.isChina&&_.selected.length>1||!_.isChina&&_.selected.length>0?{text:_.selected.slice(_.isChina?1:0).map((e=>e.name)).join("/"),style:V.NORMAL}:{text:o,style:V.PLACEHOLDER}},get isChina(){return _.addressData&&_.addressData.geoname_id===B.a},get isSelected(){return!_.visible&&_.selected&&(_.isChina&&_.selected.length>1||!_.isChina&&_.selected.length>0)}})));Object(s.useEffect)((()=>{j.getDataByGeoNameId(B.a).then((e=>{_.setAddressData(e),_.setSelected([e])})).catch((e=>{P.a.error("get cdn address fail",e)}))}),[]),Object(s.useEffect)((()=>{t&&Array.isArray(t)&&t.length>0&&!t[0].sub_region?j.revertGeoNameIdsToRegularData(t.map((e=>e.geoname_id))).then((e=>{_.setSelected(e)})):t&&Array.isArray(t)&&t.length>0?_.setSelected(t):_.setSelected(_.isChina&&_.addressData?[_.addressData]:[])}),[t]);var D=()=>{_.switchVisible(!1)},A=()=>{(()=>{var e=tt.createSelectorQuery();e.select("#".concat(M)).boundingClientRect(),e.exec((e=>{if(null!=e&&e[0]){var[t]=e,{height:a}=t;_.setModalPosition(0,a+34),_.switchVisible(!0)}}))})()},T=(e,t,a)=>{e.preventDefault(),e.stopPropagation();var i=[],n=!0;for(var o of _.selected){if(o.level===t.level){i.push(t),n=!1;break}i.push(o)}if(n&&i.push(t),!(t&&t.sub_region&&Array.isArray(t.sub_region)&&t.sub_region.length>0)||r&&t.level===r){if("click"!==a)return;_.setSelected(i),_.switchVisible(),I()}_.setSelected(i)},I=()=>{if(a){var e=_.selected.map((e=>Object(n.a)(Object(n.a)({},e),{},{sub_region:null})));_.isChina?a(_.selected.length<=1?null:e):a(e)}},C=e=>e.level!==r&&e.sub_region&&Array.isArray(e.sub_region)&&e.sub_region.length>0,x=Object(Z.a)(function(){var e=Object(i.a)((function*(e){var{detail:{value:t=""}}=e;if(_.setSearchInput(t),!t)return[];t=t.toLowerCase();var a=[];if(_.isChina&&_.addressData){var r=(e,i,n,o)=>{for(var s of e){var c=[...n],l=[...i];if(s.name.toLowerCase().includes(t)){var d=Object(y.g)(s.name,t);c.push(d),l.push(s),C(s)?r(s.sub_region,l,c,!0):a.push({name:c,regions:l})}else c.push([s.name]),l.push(s),C(s)?r(s.sub_region,l,c,o):o&&a.push({name:c,regions:l})}};r(_.addressData.sub_region,[_.addressData],[],!1)}_.setSearchResult(a)}));return function(t){return e.apply(this,arguments)}}(),50);return Object(O.jsxs)(c.a.Fragment,{children:[Object(O.jsxs)(u.r,{className:"".concat(K.a.main_wrap," ").concat(d&&!_.isSelected?K.a.is_search:""),style:{backgroundColor:m?"#EFF0F1":""},id:M,children:[Object(O.jsx)(u.r,{className:"iconfont icon-icon_down_outlined1 ".concat(K.a.icon)}),_.isSelected&&Object(O.jsx)(u.r,{className:"".concat(K.a.display_text," ").concat(_.getDisplayText.style===V.PLACEHOLDER?K.a.placeholder:""),children:_.getDisplayText.text}),_.isSelected&&Object(O.jsx)(u.r,{className:"iconfont icon-empty ".concat(K.a.clear),onClick:()=>{_.setSelected([_.selected[0]]),I()}}),!d&&Object(O.jsx)(u.r,{className:K.a.fake_input_wrap,children:Object(O.jsx)(N.a,{className:K.a.fake_input,onFocus:A})}),d&&Object(O.jsx)(N.a,{className:"".concat(K.a.search_input," ").concat(_.isSelected?K.a.hidden:""),onFocus:A,disabled:m,onInput:x,placeholder:_.getDisplayText.text,value:_.searchInput,hasError:h,errorMessage:v})]}),Object(O.jsx)(u.r,{className:"".concat(K.a.wrap," custom-select-modal-wrap"),children:Object(O.jsx)(p.a,{visible:_.visible,overlay:!0,overlayClosable:!0,position:"top",className:K.a.custom_modal,onClose:D,onBeforeleave:()=>{var[e]=_.selected.slice(-1);e&&e.level!==r&&(_.setSelected([_.selected[0]]),I())},onAfterclose:()=>{_.setSearchResult([]),_.setSearchInput("")},children:Object(O.jsxs)(u.r,{className:K.a.modal_main_wrap,style:{left:"".concat(_.modalPosition.x,"px"),top:"".concat(_.modalPosition.y,"px")},ref:f,children:[0===_.searchResult.length&&_.selected&&Array.isArray(_.selected)&&_.selected.map((e=>r&&e.level===r?null:e.sub_region&&Array.isArray(e.sub_region)&&e.sub_region.length>0?Object(O.jsx)(u.n,{scrollY:!0,className:K.a.region_wrap,enhanced:!0,showScrollbar:!0,children:e.sub_region.map((e=>Object(O.jsxs)(u.r,{className:"".concat(K.a.item_wrap," ").concat(_.getSelectedGeoNameIdList.includes(e.geoname_id)?K.a.active:""),onMouseEnter:t=>{T(t,e,"hover")},onClick:t=>{T(t,e,"click")},children:[Object(O.jsx)(u.r,{className:K.a.title,style:{paddingRight:r!==e.level?"20px":""},children:e.name}),r!==e.level&&Object(O.jsx)(u.r,{className:"iconfont icon-arrow-right ".concat(K.a.icon_right)})]},e.geoname_id)))},e.geoname_id):null)),_.searchResult.length>0&&Object(O.jsx)(u.r,{className:K.a.search_result_wrap,children:_.searchResult.map(((e,t)=>Object(O.jsx)(u.r,{className:K.a.search_item_wrap,onClick:()=>(e=>{_.setSelected(e),I(),D()})(e.regions),children:Object(O.jsx)(u.r,{className:K.a.search_item_inner,children:e.name.map(((t,a)=>Object(O.jsxs)(u.p,{className:K.a.text_wrap,children:[t.map((e=>"string"==typeof e?Object(O.jsx)(u.p,{children:e}):Object(O.jsx)(u.p,{className:K.a.highlight,children:e.value}))),a!==e.name.length-1&&Object(O.jsx)(u.p,{children:" / "})]},a)))})},t)))})]})})})]})})),X=(a(836),a(920)),$=a.n(X),ee=a(416),te=a.n(ee),ae=["children","title","placement","trigger","disableTooltip"],re=Object(d.a)((e=>{var{children:t,title:a,placement:r="top",trigger:i="hover",disableTooltip:d=!1}=e,m=Object(o.a)(e,ae),h=Object(l.d)((()=>({visible:!1,setTooltipVisible:Object(g.f)((e=>{h.visible=e})),childrenPosition:{top:0,left:0,height:0,width:0},setChildrenPosition:Object(g.f)((e=>{h.childrenPosition=e})),get getXCenter(){return h.childrenPosition.left+h.childrenPosition.width/2},get getYCenter(){return h.childrenPosition.top+h.childrenPosition.height/2}}))),b=Object(s.useMemo)((()=>"tooltip".concat((new Date).getTime()).concat(Math.ceil(1e4*Math.random()))),[]),v=Object(s.useMemo)((()=>c.a.cloneElement(t,Object(n.a)({},m))),[t,m]);return Object(O.jsxs)(c.a.Fragment,{children:[Object(O.jsx)(u.r,{className:te.a.main_wrap,onMouseEnter:()=>{console.log("enter"),d||"hover"!==i||(()=>{var e=tt.createSelectorQuery();e.select("#".concat(b)).boundingClientRect(),e.exec((e=>{var[t]=e,{left:a,top:r,height:i,width:n}=t;h.setChildrenPosition({left:a,top:r,height:i,width:n}),h.setTooltipVisible(!0)}))})()},onMouseLeave:()=>{console.log("leave"),h.setTooltipVisible(!1)},id:b,children:v}),Object(O.jsx)(p.a,{visible:h.visible,overlay:!1,children:Object(O.jsx)(u.r,{className:te.a.tooltip_wrap,style:{left:"".concat(h.getXCenter,"px"),top:"".concat(h.childrenPosition.top,"px")},children:Object(O.jsxs)(u.r,{className:te.a.tooltip_inner,children:[Object(O.jsx)(u.r,{className:te.a.text,children:a}),Object(O.jsx)(u.r,{className:te.a.arrow,children:Object(O.jsx)(u.g,{className:te.a.image,src:$.a})})]})})})]})})),ie=a(16),ne=a(83),oe=a(531),se=a(131),ce=a.n(se),le=(a(1274),["data","checked","highlightName"]);t.a=Object(d.a)((e=>{var{visible:t,close:a,currentAccountId:r="",needModalBg:c}=e,d=Boolean(r),v=Object(l.d)((()=>({bankList:[],setBankList:Object(g.f)((e=>{v.bankList=e})),bankBranchList:[],setBankBranchList:Object(g.f)((e=>{v.bankBranchList=e})),deleteModalVisible:!1,switchDeleteModalVisible:Object(g.f)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!v.deleteModalVisible;v.deleteModalVisible=e})),remindSaveModalVisible:!1,switchRemindSaveModalVisible:Object(g.f)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!v.remindSaveModalVisible;v.remindSaveModalVisible=e})),isSubmitting:!1,setIsSubmitting:Object(g.f)((e=>{v.isSubmitting=e}))})));Object(s.useEffect)((()=>{r&&ne.c.initForm(r,ie.c)}),[r]),Object(s.useEffect)((()=>{j()}),[]),Object(s.useEffect)((()=>{ne.c.getFieldValue("BankArea")&&ne.c.getFieldValue("BankName")?ne.c.getCityBankBranchList(ie.c).then((e=>{v.setBankBranchList(e)})).catch((()=>{v.setBankBranchList([])})):v.setBankBranchList([])}),[ne.c.getFieldValue("BankArea"),ne.c.getFieldValue("BankName")]);var j=()=>{ie.c.bankList().then((e=>{v.setBankList(e.data.bankList.filter((e=>e[y.c.bankName])).slice(0,100)||[])})).catch((e=>{P.a.error("get bank list fail",e)}))},M=function(){var e=Object(i.a)((function*(e){try{var t=yield ie.c.bankSearch({Name:e,Limit:100});return t&&t.data&&t.data.banks?t.data.banks:(P.a.warn("search bank list is empty, search key:",e),[])}catch(e){return P.a.error("search bank fail",e),[]}}));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=Object(i.a)((function*(e){try{var t={Name:e,BankCode:ne.c.getBankCode,Limit:100};return(yield ie.c.bankBranchSearch(t)).data.bankBranches}catch(e){return console.error("search bank branch fail",e),[]}}));return function(t){return e.apply(this,arguments)}}(),N=()=>{ne.c.isDirty&&d?v.switchRemindSaveModalVisible():(a(),ne.c.reset())},A=ne.c.formFields.BankArea.required?Object(b.t)("AddTask.PleaseSelect"):Object(b.t)("form.account.pcAddressPlaceholder");return Object(O.jsx)(p.a,{visible:t,overlayClosable:!1,onClose:a,onBeforeenter:()=>{ne.c.resetDirty()},position:"center",children:Object(O.jsxs)(u.a,{children:[c&&(v.deleteModalVisible||v.remindSaveModalVisible)&&Object(O.jsx)(u.r,{onClick:e=>{e.stopPropagation(),v.switchDeleteModalVisible(!1),v.switchRemindSaveModalVisible(!1)},className:ce.a.custom_bg}),Object(O.jsxs)(u.r,{className:"".concat(ce.a.main_wrap," edit-account-modal"),children:[Object(O.jsxs)(u.r,{className:ce.a.title_wrap,children:[Object(O.jsx)(u.r,{className:ce.a.title,children:d?Object(b.t)("form.account.editAccount"):Object(b.t)("form.account.add")}),Object(O.jsx)(u.r,{className:"iconfont icon-close ".concat(ce.a.close_icon),onClick:N})]}),Object(O.jsxs)(u.r,{className:"".concat(ce.a.content," content"),children:[Object(O.jsx)(D,{name:"AccountType",title:Object(b.t)("form.account.accountType"),formStore:ne.c,children:Object(O.jsx)(f,{defaultValue:ne.a.PERSONAL,children:Object(O.jsxs)(u.r,{className:ce.a.radio_wrap,children:[Object(O.jsx)(m.a,{value:ne.a.PERSONAL,className:ce.a.radio,children:Object(b.t)("form.account.personalAccount")}),Object(O.jsx)(m.a,{value:ne.a.PUBLIC,className:ce.a.radio,children:Object(b.t)("form.account.publicAccount")})]})})}),Object(O.jsxs)(u.r,{className:ce.a.row,children:[Object(O.jsx)(D,{className:ce.a.item,title:Object(b.t)("form.account.accountName"),name:"AccountName",formStore:ne.c,children:Object(O.jsx)(I,{placeholderStyle:"color:'#8F959E';font-size:14px",placeholder:ne.c.formFields.AccountName.message})}),Object(O.jsx)(D,{title:Object(b.t)("form.account.accountNumber"),name:"AccountNumber",formStore:ne.c,children:Object(O.jsx)(I,{type:"number",formatType:"bankCard",onChange:e=>{e&&e.length>=16&&e.length<=19&&ie.c.bankCardBinCheck({CardNumber:e}).then((e=>{e.data&&ne.c.setFieldValue("BankName",{bankCode:e.data.BankCode.split("_")[0],bankNameEn:e.data.BankNameEn,bankNameZh:e.data.BankNameZh,iconURL:e.data.IconURL})})).catch((e=>{console.error(e)}))},placeholder:ne.c.formFields.AccountNumber.message})})]}),Object(O.jsx)(D,{title:Object(b.t)("form.account.bank"),name:"BankName",formStore:ne.c,children:Object(O.jsx)(C.a,{defaultOptions:v.bankList,RenderItem:e=>{var{data:t,checked:a,highlightName:r=[]}=e,i=Object(o.a)(e,le),s=t[y.c.bankName];return Object(O.jsx)(u.r,Object(n.a)(Object(n.a)({className:ce.a.bank_item_wrap},i),{},{children:Object(O.jsxs)(u.r,{className:ce.a.inner,children:[Object(O.jsx)(u.g,{className:ce.a.image,src:t.iconURL}),Object(O.jsxs)(u.r,{className:ce.a.name,children:[r&&r.length>0&&r.map((e=>"object"==typeof e?Object(O.jsx)(u.r,{className:ce.a.highlight_color,children:e.value}):e)),(!r||0===r.length)&&Object(O.jsx)(u.r,{children:s})]}),a&&Object(O.jsx)(u.r,{className:"iconfont icon-xiala_xuanzhong ".concat(ce.a.checked)})]})}))},searchFunction:M,keyOfValue:"bankCode",keyOfName:y.c.bankName,defaultKeyOfName:"bankNameZh",enableSearch:!0,placeholder:Object(b.t)("Validation.PleaseSelect",{name:Object(b.t)("form.account.bank")}),noMoreDataTip:Object(b.t)("form.account.searchFooterText")})}),Object(O.jsx)(D,{title:Object(b.t)("form.account.bankLocation"),name:"BankArea",formStore:ne.c,children:Object(O.jsx)(J,{outputLevel:"City",placeholder:A,enableSearch:!0})}),Object(O.jsx)(D,{title:Object(b.t)("form.account.subBank"),name:"BankBranch",formStore:ne.c,children:Object(O.jsx)(re,{title:Object(b.t)("form.account.pleaseSelectFirst",{name:ne.c.getFieldValue("BankName")?Object(b.t)("form.account.bankLocation"):Object(b.t)("form.account.bank")}),disableTooltip:!ne.c.disableBankBranch,children:Object(O.jsx)(C.a,{defaultOptions:v.bankBranchList,disabled:ne.c.disableBankBranch,enableSearch:!0,keyOfValue:"bkId",keyOfName:Object(b.getCurrentLanguage)()===b.LANG.zh?"name":"bankBranchNameEn",searchFunction:_,placeholder:Object(b.t)("form.account.locationPlaceholder"),defaultEmptyText:Object(b.t)("form.account.bankBranchSearch"),noMoreDataTip:Object(b.t)("form.account.searchFooterText")})})}),Object(O.jsx)(D,{title:Object(b.t)("form.account.remark"),name:"Remark",formStore:ne.c,children:Object(O.jsx)(z,{showLength:!0,maxLength:100,placeholder:Object(b.t)("Validation.PleaseFillIn")})})]}),Object(O.jsxs)(u.r,{className:ce.a.footer_wrap,children:[Object(O.jsx)(u.r,{className:ce.a.left,children:d&&Object(O.jsx)(h.a,{type:"text",warn:!0,icon:"delete-trash_outlined",className:ce.a.custom_btn,onClick:v.switchDeleteModalVisible,children:Object(b.t)("form.account.deleteAccount")})}),Object(O.jsxs)(u.r,{className:ce.a.right,children:[Object(O.jsx)(h.a,{type:"secondary",className:ce.a.custom_btn,onClick:N,children:Object(b.t)("Popup.Cancel")}),Object(O.jsx)(h.a,{type:"primary",onClick:()=>{v.setIsSubmitting(!0),ne.c.validate().then((()=>{P.a.info("valid success"),d?ne.c.updateAccount(ie.c,r).then((e=>{v.setIsSubmitting(!1),e.data&&e.data.AccountID&&(a(e.data.AccountID),ne.c.reset())})).catch((e=>{v.setIsSubmitting(!1),P.a.error("edit account fail",e)})):ne.c.addAccount(ie.c).then((e=>{v.setIsSubmitting(!1),e.data&&e.data.AccountId&&(a(e.data.AccountId),ne.c.reset())})).catch((e=>{v.setIsSubmitting(!1),P.a.error("add bank account fail",e)}))})).catch((e=>{v.setIsSubmitting(!1),P.a.error("valid error",e)}))},loading:v.isSubmitting,className:ce.a.custom_btn,children:Object(b.t)("popup.Ok")})]})]}),Object(O.jsx)(oe.a,{title:Object(b.t)("form.account.deleteAccountPcTitle"),content:Object(b.t)("form.account.deleteAccountPcMessage",{account:ne.c.accountDisplayText}),visible:v.deleteModalVisible,customStyle:{zIndex:700},buttons:[{text:Object(b.t)("ModalCancelText"),type:"secondary",fn:v.switchDeleteModalVisible},{text:Object(b.t)("PC.DeleteBtn"),type:"primary",warn:!0,fn:()=>{ie.c.deleteBankAccount({AccountId:r}).then((()=>{v.switchDeleteModalVisible(),ne.c.reset(),a(r)})).catch((e=>{P.a.error(e)}))}}]}),Object(O.jsx)(oe.a,{title:Object(b.t)("form.account.remindSave"),content:Object(b.t)("form.account.remindSaveMessagePc"),visible:v.remindSaveModalVisible,customStyle:{zIndex:700},buttons:[{text:Object(b.t)("form.account.continueEdit"),type:"secondary",fn:v.switchRemindSaveModalVisible},{text:Object(b.t)("form.account.donotsave"),type:"primary",fn:()=>{v.switchRemindSaveModalVisible(),a(),ne.c.reset()}}]})]})]})})}))},function(e,t,a){"use strict";var r=a(1),i=a(15),n=a(186),o=a(3),s=a(206),c=a(101),l=a.n(c),d=a(81),u=a(0),p=Object(i.a)((e=>{var{open:t}=e;return Object(u.jsxs)(r.r,{children:[Object(u.jsx)(r.r,{children:"详情历史(最近3条)"}),s.a.history.map(((e,a)=>Object(u.jsxs)(r.r,{className:l.a["detail-item"],children:[Object(u.jsxs)(r.r,{className:l.a["item-info"],children:[Object(u.jsx)(r.r,{className:l.a["item-id"],children:e.id}),Object(u.jsx)(r.r,{className:l.a["item-type"],children:e.type})]}),("drawer-webview"===e.type||"iframe-webview"===e.type)&&Object(u.jsxs)(r.r,{className:l.a["item-url"],children:[Object(u.jsx)(r.r,{className:l.a["devtools-btn"],onClick:()=>t(e),children:"open"}),Object(u.jsx)(r.r,{className:l.a["devtools-btn"],onClick:()=>{Object(d.h)({data:e.webviewInfo.url}).then((()=>Object(d.i)({title:"success",duration:2e3})))},children:"copy"}),Object(u.jsx)(r.r,{className:l.a["url-text"],children:e.webviewInfo.url})]}),"browser"===e.type&&Object(u.jsxs)(r.r,{className:l.a["item-url"],children:[Object(u.jsx)(r.r,{className:l.a["devtools-btn"],onClick:()=>t(e),children:"open"}),Object(u.jsx)(r.r,{className:l.a["devtools-btn"],onClick:()=>{Object(d.h)({data:e.browserInfo.url}).then((()=>Object(d.i)({title:"success",duration:2e3})))},children:"copy"}),Object(u.jsx)(r.r,{className:l.a["url-text"],children:e.browserInfo.url})]})]},"".concat(e.id,"_").concat(a))))]})})),m=Object(i.a)((()=>Object(u.jsxs)(r.r,{children:[Object(u.jsx)(r.r,{children:"SDK Message(最近12条)"}),s.a.msgHistory.map(((e,t)=>{var a;return Object(u.jsxs)(r.r,{className:l.a["detail-item"],children:[Object(u.jsxs)(r.r,{className:l.a["item-info"],children:[Object(u.jsxs)(r.r,{className:l.a["item-id"],children:[e.namespace,".",e.type]}),Object(u.jsx)(r.r,{className:l.a["item-type"],children:e.from})]}),Object(u.jsxs)(r.r,{className:l.a["item-url"],children:[Object(u.jsx)(r.r,{className:l.a["devtools-btn"],onClick:()=>{Object(d.h)({data:e.system.location}).then((()=>Object(d.i)({title:"success",duration:2e3})))},children:"copy"}),Object(u.jsx)(r.r,{className:l.a["url-text"],children:null==e||null===(a=e.system)||void 0===a?void 0:a.location})]}),Object(u.jsxs)(r.r,{className:l.a["item-url"],children:[Object(u.jsx)(r.r,{className:l.a["devtools-btn"],onClick:()=>{Object(d.h)({data:JSON.stringify(e.option)}).then((()=>Object(d.i)({title:"success",duration:2e3})))},children:"copy"}),Object(u.jsx)(r.r,{className:l.a["url-text"],children:JSON.stringify(e.option)})]})]},"".concat(e.messageId,"_").concat(t))}))]}))),h=a(548),b=a.n(h),g=e=>{var{open:t}=e,[a,i]=Object(o.useState)("");return Object(u.jsxs)(r.r,{className:b.a["custom-url"],children:[Object(u.jsx)(r.h,{className:b.a["url-input"],placeholder:"输入自定义 URL",maxlength:4096,onInput:e=>{i(e.detail.value)}}),Object(u.jsx)(r.r,{className:b.a["open-btn"],onClick:()=>{t({id:"custom",type:"iframe-webview",searchKeyword:"",helpdeskURL:"",sourceName:a,webviewInfo:{url:a},intranetAccess:!1})},children:"使用内嵌打开"}),Object(u.jsx)(r.r,{className:b.a["open-btn"],onClick:()=>{t({id:"custom",type:"drawer-webview",sourceName:a,webviewInfo:{url:a},searchKeyword:"",intranetAccess:!1})},children:"使用原生抽屉打开"})]})},v=a(9),j=a(16),O=a(36),f=a(197),M=a(23),_=a(672),y=a(276),D=a.n(y),N=e=>{var{open:t}=e;return Object(u.jsxs)(r.r,{children:[Object(u.jsxs)(r.r,{className:D.a["self-inspection"],children:["能力自检:",Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:()=>{t({id:"custom",type:"iframe-webview",searchKeyword:"",helpdeskURL:"",sourceName:"SDK 自检",intranetAccess:!1,webviewInfo:{url:"https://sf-unpkg-src.bytedance.net/@ea/feishu-approval-bridge/examples/index.html"}})},children:"iframe"}),Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:()=>{Object(f.c)({processId:"",processUniqueId:"",displayMethod:M.b.Normal,intranetAccess:!1,sourceName:"",system:"",topic:M.i.TodoApproval,urls:{app:void 0,mobile:void 0,h5:void 0,pc:"https://sf-unpkg-src.bytedance.net/@ea/feishu-approval-bridge/examples/index.html",helpdesk:""}})},children:"自研抽屉"}),Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:()=>{Object(_.a)({url:"https://sf-unpkg-src.bytedance.net/@ea/feishu-approval-bridge/examples/index.html"})},children:"iframe抽屉"}),Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:()=>{t({id:"custom",type:"drawer-webview",sourceName:"drawer SDK 自检",intranetAccess:!1,webviewInfo:{url:"https://sf-unpkg-src.bytedance.net/@ea/feishu-approval-bridge/examples/index.html"},searchKeyword:""})},children:"原生抽屉"}),Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:Object(v.a)((function*(){var e=yield j.c.v2GetOAAccess();Object(d.h)({data:e.data.JWT}).then((()=>Object(d.i)({title:"success",duration:2e3})))})),children:"获取 OA JWT"}),Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:()=>{Object(O.d)({name:"",url:"https://boltdoggy.com/favicon.png"})},children:"下载文件"})]}),Object(u.jsxs)(r.r,{className:D.a["self-inspection"],children:["三方打开:",Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:()=>{var e=new URL("https://applink.feishu.cn/client/web_url/open?mode=window&url=https%3a%2f%2fwww.feishu.cn%2f");e.searchParams.set("url","https://sf-unpkg-src.bytedance.net/@ea/feishu-approval-bridge/examples/index.html"),tt.openSchema({schema:e.toString()})},children:"飞书通用webview"}),Object(u.jsx)(r.r,{className:D.a["devtools-btn"],onClick:()=>{tt.openSchema({schema:"https://sf-unpkg-src.bytedance.net/@ea/feishu-approval-bridge/examples/index.html",external:!0})},children:"外部浏览器"})]})]})},A=a(157),T="x-tt-env",I=()=>{var[e,t]=Object(o.useState)(""),a=Object(o.useCallback)(Object(A.a)((e=>{e?Object(j.b)({[T]:e}):Object(j.f)([T])}),200),[]);return Object(o.useEffect)((()=>{var e=Object(j.e)(T);e&&t(e)}),[]),Object(u.jsxs)(r.r,{children:[Object(u.jsx)(r.r,{children:"Add header x-tt-env: xxx"}),Object(u.jsx)(r.r,{children:"输入的值会被自动配置input输入为空自动删除配置"}),Object(u.jsx)(r.h,{onInput:e=>{var{value:r}=e.detail;t(r),a(r)},value:e})]})},C=a(361),x={GIT_MESSAGE:"Merge branch 'update-version/20230926' into 'release_train_2023-09-21_212295'\n\nfeat: [ticket] 托管火车占位 (train id 212295) [skipped]\n\nSee merge request ea/approval!4094",GIT_BRANCH:"release_train_2023-09-21_212295",GIT_SHORT:"03ea7a3"},S=()=>Object(u.jsxs)(r.r,{children:[Object(u.jsx)(r.r,{children:"点击进行复制"}),Object.keys(x).map((e=>Object(u.jsx)(r.r,{onClick:()=>{Object(C.a)(x[e])},children:"".concat(e,": ").concat(x[e])},e))),Object(u.jsx)(r.r,{children:"当前是es6环境"})]}),w=a(4);t.a=Object(i.a)((e=>{var{open:t}=e,a=Object(n.d)((()=>({show:!1,switchShow(){Object(w.s)((()=>{this.show=!this.show}))}})));return s.a.enable?Object(u.jsxs)(r.r,{className:l.a["devtools-wrapper"],children:[Object(u.jsxs)(r.r,{className:l.a["devtools-switcher"],onClick:()=>a.switchShow(),children:["(","production","-","online",")第三方审批调试工具"]}),a.show&&Object(u.jsxs)(r.r,{className:l.a["devtools-container"],children:[Object(u.jsx)(r.r,{className:l.a["devtools-section"],children:Object(u.jsx)(S,{})}),Object(u.jsx)(r.r,{className:l.a["devtools-section"],children:Object(u.jsx)(N,{open:t})}),Object(u.jsx)(r.r,{className:l.a["devtools-section"],children:Object(u.jsx)(g,{open:t})}),Object(u.jsx)(r.r,{className:l.a["devtools-section"],children:Object(u.jsx)(I,{})}),Object(u.jsxs)(r.r,{className:l.a["devtools-section"],children:[Object(u.jsx)(p,{open:t}),Object(u.jsx)(m,{})]})]})]}):null}))},,function(e,t,a){"use strict";var r=a(5),i=a(9),n=a(3),o=a.n(n),s=a(1),c=a(15),l=a(8),d=a.n(l),u=a(72),p=a(2),m=a(99),h=a(29),b=a(69),g={doc:"icon-icon_file-link-word2_outlined",docx:"icon-icon_file-link-word2_outlined",ppt:"icon-icon_file-link-ppt_outlined",pptx:"icon-icon_file-link-ppt_outlined",xls:"icon-file-link-docx",xlsx:"icon-file-link-docx",pdf:"icon-icon_file-link-pdf_outlined",mp4:"icon-icon_file-link-video_outlined",mov:"icon-icon_file-link-video_outlined",rmvb:"icon-icon_file-link-video_outlined",avi:"icon-icon_file-link-video_outlined",zip:"icon-icon_file-link-zip_outlined",rar:"icon-icon_file-link-zip_outlined",jpg:"icon-icon_file-link-image_outlined",jpeg:"icon-icon_file-link-image_outlined",png:"icon-icon_file-link-image_outlined",gif:"icon-icon_file-link-image_outlined",bmp:"icon-file-link-bitable",approval:"icon-approval_outlined",default:"icon-file-link-file",cloud:"icon-icon_file-link-word_outlined1"},v=a(294),j=a(154),O=a(40),f=a(42),M=(a(1204),a(33)),_=a(19),y=a.n(_),D=a(0),N=e=>{var{size:t=16,lineWidth:a=1.5,percentage:r=0,className:i,baseLineColor:o="#DEE0E3",lineColor:c="#3370FF"}=e,[l]=Object(n.useState)((()=>"circle-progress-".concat(Object(M.e)()))),d=Object(n.useRef)(),u=t/2;return Object(n.useEffect)((()=>{d.current=y.a.createCanvasContext(l)}),[]),Object(n.useEffect)((()=>{var e=d.current;if(e){e.beginPath(),e.arc(u,u,u-a,0,2*Math.PI,!1),e.setStrokeStyle(o),e.lineWidth=a,e.stroke();var t=-Math.PI/2,i=t+r/100*2*Math.PI;e.beginPath(),e.arc(u,u,u-a,t,i,!1),e.setStrokeStyle(c),e.lineWidth=a,e.stroke(),e.draw()}}),[r,a,u]),Object(D.jsx)(s.c,{className:i,style:{width:t,height:t},canvasId:l})},A=a(18),T=a(640),I=a.n(T),C=a(637),x="ud-like-file-list",S=Object(b.h)(x),w=Object(c.a)((e=>{var{item:t,fileItemStyle:a,disabled:r,fileList:o,removeItem:c,keywords:l,transferSelector:u,onPreview:h,onRetry:b}=e,{status:v,percent:M,info:_,canBeRetried:y}=t,T=Object(n.useRef)(null),[C,w]=Object(n.useState)(!1),L=v===A.v.UPLOADING,E=v===A.v.FAILED,k=Object(n.useMemo)((()=>{switch(v){case A.v.FAILED:return Object(D.jsx)(O.c,{transferSelector:u,arrow:!0,fixed:!0,text:_,children:Object(D.jsx)(s.g,{className:S("file-icon"),src:I.a})});case A.v.UPLOADING:return Object(D.jsx)(N,{percentage:M,className:"".concat(x,"__circle-progress")});default:return Object(D.jsx)(s.r,{className:d()("iconfont",S("file-icon"),t.name.includes(".")?g[t.extension]||g.default:"icon-file-link-unknow_outlined")})}}),[v,M]);return Object(D.jsxs)(s.r,{className:d()(S("file-item")),style:a,onClick:()=>{null==h||h(t)},onMouseEnter:()=>{setTimeout(Object(i.a)((function*(){var e,t=yield null==T||null===(e=T.current)||void 0===e?void 0:e.isTextEllipsis({cache:!0});w(Boolean(t))})),300)},children:[Object(D.jsxs)(s.r,{className:d()(S("item-content"),v===A.v.UPLOADED&&S("hover")),children:[k,Object(D.jsx)(s.r,{className:d()(S("file-name"),L&&"ud-like-file-list__uploading",E&&"ud-like-file-list__failed"),children:Object(D.jsx)(O.c,{text:t.name,fixed:!0,arrow:!0,disabled:!C,wordWrap:!0,textWrap:!0,textStyle:{maxWidth:320},transferSelector:u,children:Object(D.jsx)(j.a,{customStyle:{width:"100%"},ref:T,text:Object(D.jsx)(f.a,{content:t.name,keyword:l||"",isSingleLine:!0,style:{cursor:"pointer"}})})})})]}),Object(D.jsxs)(s.r,{className:"action-button",children:[!r&&E&&y&&Object(D.jsx)(O.c,{textStyle:{zIndex:100},delay:300,text:Object(p.t)("approval-mp_Retry_Tooltip"),fixed:!0,arrow:!0,style:{display:"flex"},transferSelector:u,children:Object(D.jsx)(m.a,{type:"icon",icon:"refresh",size:"small",className:S("refresh"),onClick:e=>{e.stopPropagation(),null==b||b(t)}})}),!r&&Object(D.jsx)(O.c,{textStyle:{zIndex:100},delay:300,text:Object(p.t)("approval-mp_Delete_Tooltip"),fixed:!0,arrow:!0,style:{display:"flex"},transferSelector:u,children:Object(D.jsx)(m.a,{type:"icon",icon:"icon_delete-trash_outlined1",size:"small",className:S("delete"),onClick:e=>{e.stopPropagation(),c(t)}})})]})]})}));t.a=e=>{var{maxFileSize:t=50,maxFileNumber:a=9,renderPreviewItem:c,defaultFileList:l=[],fileType:b=h.h.ATTACH,customUploadButton:g,showUploadButton:j=!0,disabled:f=!1,uploadText:M="",fileItemStyle:_,maxPreviewCount:y=4,style:N,className:A,renderCustomMore:T,restPopoverProps:I,onFileListChange:x,error:L,showMoreAlways:E,value:k,clickPreview:z,enableDrive:R,mountNodePoint:P="0",ctxId:U}=e,B=Object(n.useRef)("popover-content-".concat(Object(u.c)())),{fileList:F,handleAddFileAndUpload:Y,handleRemove:Q,handlePreview:G,handleRetry:W}=Object(C.a)({fileType:b,defaultFileList:l,value:k,maxSize:t,maxCount:a,onFileListChange:x,enableDrive:R,clickPreview:z,mountNodePoint:P}),V=e=>{Q(e.id)},H=function(){var e=Object(i.a)((function*(){Y(U)}));return function(){return e.apply(this,arguments)}}(),Z=()=>Object(D.jsx)(v.a,Object(r.a)(Object(r.a)({trigger:"hover",width:320,style:{width:"fit-content"},maxHeight:235,popoverContentClass:B.current},I),{},{content:F.slice(y-1).map((e=>Object(D.jsxs)(s.r,{children:["function"==typeof c?c(e):Object(D.jsx)(w,{item:e,fileItemStyle:_,disabled:f,removeItem:V,fileList:F,clickPreview:z,isRest:!0,transferSelector:"fixed"===(null==I?void 0:I.overlayPosition)?".".concat(B.current):"",onPreview:G,onRetry:W}),Object(D.jsx)(s.r,{className:S("close-icon")})]},e.id))),children:T?T():Object(D.jsx)(m.a,{type:"text",className:S("rest-entry"),icon:"icon_more_outlined",children:Object(p.t)("Upload_AllFiles")})}));return Object(D.jsxs)(s.r,{style:N,className:d()(A,S(),L&&S("error-border")),children:[Object(D.jsx)(s.r,{children:(()=>{if(!j)return null;var e=F.length>=a;return"function"==typeof g?g({onUploadClick:H,disabled:f}):Object(D.jsx)(O.c,{arrow:!0,fixed:!0,disabled:!e,text:Object(p.t)("approval-mp_Upload30Max_Tooltip",{count:a}),children:Object(D.jsx)(m.a,{type:"text",icon:"upload_outlined",disabled:f||e,onClick:H,children:M})})})()}),Object(D.jsxs)(s.r,{className:d()(S("file-list")),children:[F.slice(0,y).map(((e,t)=>F.length>y&&y-1===t&&!E?Z():Object(D.jsxs)(o.a.Fragment,{children:["function"==typeof c?c(e):Object(D.jsx)(w,{item:e,fileItemStyle:_,disabled:f,removeItem:V,fileList:F,onPreview:G,onRetry:W}),Object(D.jsx)(s.r,{className:S("close-icon")})]},e.id))),E?Z():null]}),L&&Object(D.jsx)(s.r,{className:S("error-text"),children:L})]})}},function(e,t,a){"use strict";var r,i,n,o,s=a(9),c=a(5),l=a(3),d=a(19),u=a.n(d),p=a(4),m=a(15),h=a(8),b=a.n(h),g=a(16);(function(e){e.left="left",e.right="right"})(r||(r={})),function(e){e.top="top",e.bottom="bottom"}(i||(i={})),function(e){e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(n||(n={})),function(e){e.left="left",e.right="right",e.top="top",e.bottom="bottom",e.topleft="topleft",e.topright="topright",e.bottomleft="bottomleft",e.bottomright="bottomright"}(o||(o={}));var v=a(14),j=a(2),O=a(10),f=a(1),M=a(40),_=a(17),y=a(451),D=a.n(y),N=a(12),A=a(33),T=a(280),I=a(183),C=a(24),x=a(13),S=a(28),w=(a(1212),a(71)),L=a.n(w),E=a(139),k=a(173),z=a(986),R=a(20),P=a(423),U=a(65),B=(Object(R.c)("shared:src/config/static.ts"),{});var F=a(0),Y=S.m?E.b.FEISHU_BOE:E.b.FEISHU,Q=["DocsComponent"],G=Object(R.c)("pc:src/components/configurable-form/components/widgets/cloud-doc/document/opendoc.tsx"),W=Object(l.memo)((e=>{var{changeTitle:t,onDelete:a,setHideContentMoreThenHalf:r,documentInfo:i,signatureInfo:n,fixedDocSize:o=!1}=e,s=Object(l.createRef)(),[c,d]=Object(l.useState)({height:500}),[u,p]=Object(l.useState)(),[m,h]=Object(l.useState)(0),[b,g]=Object(l.useState)(0),[v,f]=Object(l.useState)(0),M=Object(l.useRef)(),_=Object(l.useMemo)((()=>null==i?void 0:i.URL),[i]),y=Object(l.useMemo)((()=>({MODAL:{outerMask:{zIndex:10}},CONTENT:{titleVisible:!0},HEADER:{enable:!1},COMMENT:{partial:{open:!1}},DIRECTORY:{enable:!1}})),[]);Object(l.useEffect)((()=>{if(!o&&(O.a.info("【cloud-doc】 setDocSize docSize?.height",null==c?void 0:c.height),c&&"auto"!==c.height))return clearTimeout(M.current),M.current=setTimeout((()=>{u&&c&&Object(P.a)(c.height)&&c.height<u&&(d({height:u}),O.a.info("【cloud-doc】 setDocSize calcHeight",u))}),200),Object(U.a)("#approval-detail-id").then((e=>{if(e){var{height:t,top:a}=e;g(t),f(a)}})),()=>{clearTimeout(M.current)}}),[c,u,o]),Object(l.useEffect)((()=>{var e,n,c,l,d;if(i){G("cloudDocOpenStart",{func:"useEffect",data:null==i?void 0:i.DocsToken}),O.a.info("【cloud-doc】 cloudDocOpenStart");var g=null===(e=s.current)||void 0===e?void 0:e.event.onTitleChange(t),j=null===(n=s.current)||void 0===n?void 0:n.event.onError((e=>{O.a.info("【cloud-doc】opendocRef.current?.event.onError",e),"1002"===e.code&&(a&&a(!0),O.a.info("【cloud-doc】docs has deleted",e)),G("cloudDocOpenError",{func:"opendocRef.current.event.onError",data:JSON.stringify(e,Object.getOwnPropertyNames(e))})})),f=null===(c=s.current)||void 0===c?void 0:c.event.onMountSuccess((()=>{O.a.info("【cloud-doc】docs_load_success"),G("cloudDocOpenSuccess",{func:"opendocRef.current?.event.onMountSuccess",data:null==i?void 0:i.DocsToken})})),M=null===(l=s.current)||void 0===l?void 0:l.event.onMountTimeout((()=>{O.a.info("【cloud-doc】opendocRef onMountTimeout"),G("cloudDocOpenTimeout",{func:"opendocRef.current?.event.onMountTimeout",data:null==i?void 0:i.DocsToken})})),_=!o&&(null===(d=s.current)||void 0===d?void 0:d.event.onDocumentHeightChange((e=>{if(h(e),!u||e>=u){var t=e+4;t>4e3&&(t=3e3),p(t)}else G("cloudDocHeightBeats",{func:"opendocRef.current?.event.onDocumentHeightChange",data:{height:e,docHeight:u}});Object(U.a)("#open-doc-wrapper-id").then((e=>{if(e){var{top:t}=e;r&&r(m-(b-(t-v))>.5*b)}}))})));return()=>{g&&g(),j&&j(),f&&f(),M&&M(),_&&_()}}}),[i,o,m,b,v]);var D=B.root_domain,N=Object(l.useMemo)((()=>{var e;if(S.o&&D){var t=new URL(D),a=t.host.split(".").slice(1);e="".concat(t.protocol,"//open.").concat(a.join("."))}return e}),[D]);return Object(F.jsx)(z.a,{ref:s,src:_,signature:null==n?void 0:n.Signature,appId:(null==n?void 0:n.AppID)||"",openId:null==n?void 0:n.OpenID,nonceStr:null==n?void 0:n.NonceStr,jsApiList:Q,timestamp:null==n?void 0:n.Timestamp,url:null==i?void 0:i.URL,env:Y,size:o||c,featureConfig:y,language:j.curLang,host:N})})),V=W,H=a(69),Z=a(179),q=Object(R.c)("pc:src/components/configurable-form/components/widgets/cloud-doc/document/document.tsx"),K=()=>{tt.openSchema({schema:"https://www.".concat(S.f,"/download"),external:!0,success(e){q("openSchemaSuccess",{func:"downloadFeiShu",data:e})},fail(e){q("openSchemaFail",{func:"downloadFeiShu",data:e})},complete(e){q("openSchemaComplete",{func:"downloadFeiShu",data:e})}})},J={boxSizing:"border-box",maxWidth:320,wordBreak:"break-word",whiteSpace:"break-spaces"},X=Object(j.getLanguageInfo)();t.a=Object(m.a)((e=>{var{ctxId:t,data:a,isEdit:r=!1,onDelete:n,onRemove:o,currentActiveID:m,cloudDocWidget:h,handleDocConfig:y,modalVisible:w=!1,onCloseEditDocModal:z}=e,{configurableFormStore:{scrollTop:R=0,instanceInfo:P},detailModalStore:U}=Object(v.d)(t),{onEditDocModalOk:B}=U,{title:Y,token:Q,deleted:G,type:W,emptyTitle:$}=a,{globalStore:ee}=Object(C.c)(),{fixedDocSize:te}=ee,{isSupportDoc:ae,isUpdate:re}=Object(l.useMemo)((()=>{var e={isSupportDoc:!1,isUpdate:!1};return k.a?Object(c.a)(Object(c.a)({},e),{},{isSupportDoc:k.a}):Object(c.a)(Object(c.a)({},e),{},{isUpdate:!0})}),[W]),[ie,ne]=Object(l.useState)(M.b.TOP),[oe,se]=Object(l.useState)(),[ce,le]=Object(l.useState)(),[de,ue]=Object(l.useState)(!0),[pe,me]=Object(l.useState)(0),[he,be]=Object(l.useState)(!1),[ge,ve]=Object(l.useState)(!1),[je,Oe]=Object(l.useState)(!1),[fe,Me]=Object(l.useState)(!0),[_e,ye]=Object(l.useState)(!1),[De,Ne]=Object(l.useState)(!1),[Ae,Te]=Object(l.useState)(!1),[Ie,Ce]=Object(l.useState)(""),[xe,Se]=Object(l.useState)(0),[we,Le]=Object(l.useState)(J),Ee=Object(l.useRef)(),ke=Object(l.useMemo)((()=>"cloud_doc-verify-".concat(Object(T.a)())),[Y]),ze=Object(l.useMemo)((()=>"cloud_doc-title-val-".concat(Object(T.a)())),[Y]),Re=function(){var e=Object(s.a)((function*(e){try{var{DocsToken:t,DocsType:r,ItemID:i,InstanceID:n}=e,o={DocsToken:t,DocsType:r};h===x.c.CLOUD_DOC_BLOCK&&(o.ItemID=i,o.InstanceID=n);var s=yield g.c.getDocumentSignature(o),{Entity:c,PermType:l=0}=s.data,{Title:d,EmptyTitle:u=""}=c;Se(l),Object(p.s)((()=>{a.emptyTitle=u})),Pe({title:d||u}),se(s.data.Entity),le(s.data.Signature),y&&y(s.data),O.a.info("【cloud-doc】docInfo signatureInfo",s)}catch(e){q("cloudDocOpenError",{func:"getDocumentInfoAndGetSignature",data:JSON.stringify(e,Object.getOwnPropertyNames(e))}),O.a.info("【cloud-doc】docInfo err",e)}}));return function(t){return e.apply(this,arguments)}}(),Pe=Object(p.f)((e=>{Object.keys(e).forEach((t=>{a[t]=e[t]}))})),Ue=()=>{Me(!fe),fe?Object(N.b)(_.f.CloudDocsPickUp,Object(k.b)(t,h)):Object(N.b)(_.f.CloudDocsOpenUp,Object(k.b)(t,h))},Be=(e,t)=>{e===(null==P?void 0:P.instanceId)&&(t?Se(t):Re({DocsToken:Q,DocsType:W,InstanceID:(null==P?void 0:P.instanceId)||"",ItemID:m||""}))};Object(l.useEffect)((()=>{n&&n(!1),Q&&(h!==x.c.CLOUD_DOC_BLOCK||m)&&Re({DocsToken:Q,DocsType:W,InstanceID:(null==P?void 0:P.instanceId)||"",ItemID:m||""})}),[Q,m]),Object(l.useEffect)((()=>(u.a.eventCenter.on("retrieve-doc-edit-auth",Be),()=>{u.a.eventCenter.off("retrieve-doc-edit-auth",Be)})),[]),Object(l.useEffect)((()=>{Object(d.createSelectorQuery)().select("#approval-detail-id").boundingClientRect().exec((e=>{if(e[0]){var{top:t=0}=e[0];me(t+8)}}))}));var Fe=function(){var e=Object(s.a)((function*(){Object(d.createSelectorQuery)().select(".".concat(L.a.content)).boundingClientRect().exec((e=>{if(null!=e&&e[0]){var t,{top:a}=e[0],{bottom:r}=e[0],n=r-(Ee.current||0);Ee.current=r||0,n>0?t=i.top:n<0&&(t=i.bottom),t===i.bottom&&r<294?ue(!1):t===i.top&&r>294&&ue(!0),ye(a<=134)}}))}));return function(){return e.apply(this,arguments)}}(),Ye=function(){var e=Object(s.a)((function*(){Object(d.createSelectorQuery)().select(".".concat(L.a.head)).boundingClientRect().exec((e=>{if(null!=e&&e[0]){var{top:t}=e[0];t<130?ne(M.b.Bottom):t>134&&ne(M.b.TOP)}}))}));return function(){return e.apply(this,arguments)}}(),Qe=function(){var e=Object(s.a)((function*(){Object(d.createSelectorQuery)().select(".".concat(L.a.head)).boundingClientRect().exec((e=>{if(e[0]){var{top:t}=e[0];Oe(t<=pe)}}))}));return function(){return e.apply(this,arguments)}}();Object(l.useEffect)((()=>{Fe(),Ye(),Qe(),!he&&je&&ge&&be(!0),he&&!je&&be(!1)}),[R]);var Ge=()=>{Object(d.createSelectorQuery)().select(".".concat(ze)).boundingClientRect().exec((e=>{var t;if(null!=e&&e[0]){var a=Math.floor((null===(t=e[0])||void 0===t?void 0:t.width)||0);if(a>0){var r=Math.floor(118+a),i=J.maxWidth;r<i&&r!==we.maxWidth?Le(Object(c.a)(Object(c.a)({},J),{},{maxWidth:r})):r>=i&&i!==we.maxWidth&&Le(J),Object(d.createSelectorQuery)().select(".".concat(ke)).boundingClientRect().exec((e=>{var t,r=(null==e||null===(t=e[0])||void 0===t?void 0:t.width)||0;Ne(r>a)}))}}}))},We=Object(l.useCallback)(Object(A.c)(Ge,33),[Y]);Object(l.useEffect)((()=>{var e=setTimeout(Ge,33);return tt.onWindowResize(We),()=>{clearTimeout(e),tt.offWindowResize(We)}}),[Y,We]);var Ve=Object(p.f)((e=>{a.title=e||$||"",a.title||q("cloudDocTitleEmpty",{func:"coud-doc/document.tsx changeTitle",data:JSON.stringify({newTitle:e,emptyTitle:$})})})),He=()=>{z&&z(),Te(!1)},Ze=function(){var e=Object(s.a)((function*(){Object(N.b)("click_edit_cloud_doc",{is_click_confirm:1});var{Title:e="",URL:a=""}=oe||{},{creatorUserName:r}=P||{},i=JSON.stringify({text:JSON.stringify({userName:r,docName:e,docLink:a})});Te(!0),B&&B({ctxId:t,comment:i,afterWithdraw:He})}));return function(){return e.apply(this,arguments)}}(),qe=Object(l.useMemo)((()=>{var e,t,a,r,i;return"pc-pages/index/index"===(null===(e=getCurrentPages)||void 0===e||null===(t=e())||void 0===t||null===(a=t[(null===(r=getCurrentPages)||void 0===r||null===(i=r())||void 0===i?void 0:i.length)-1])||void 0===a?void 0:a.__route__)}),[]);return Object(F.jsxs)(f.r,{className:b()(L.a.docWrapper,G?L.a.error:"",fe?L.a.showDoc:L.a.hiddenDoc),children:[Object(F.jsxs)(f.r,{className:L.a.head,style:{top:"".concat(8,"px")},children:[Object(F.jsx)(f.r,{className:b()(L.a.occlusion,_e?L.a.show:L.a.hidden)}),Object(F.jsxs)(f.r,{className:L.a.titleWrapper,children:[Object(F.jsx)(f.r,{className:b()(L.a.over_verify,ke),children:Y}),Object(F.jsxs)(f.r,{className:b()(L.a.title,{[L.a.enhanced]:he}),onClick:Ue,children:[Object(F.jsx)(I.a,{name:"file-doc_colorful",className:L.a.title_icon,size:18}),Object(F.jsxs)(f.r,{className:b()(L.a.title_val,ze),children:[De?Object(F.jsx)(M.c,{arrow:!0,position:ie,textStyle:we,text:Y,className:L.a.tooltip,children:Object(F.jsx)(f.r,{className:L.a.value,children:Y})}):Object(F.jsx)(f.r,{className:L.a.value,children:Y}),0!==xe&&qe&&Object(F.jsx)(f.r,{className:L.a.statusTip,children:Object(j.t)(xe===E.c.Writeable?"approval-mp_CanEdit_Tag":"approval-mp_ReadOnly_Tag")})]})]}),Object(F.jsxs)(f.r,{className:b()(L.a.icons,{[L.a.enhanced]:he}),children:[k.a&&fe&&!he?Object(F.jsx)(f.r,{className:L.a.arrow,onClick:Ue,children:Object(F.jsx)(M.c,{arrow:!0,position:ie,text:Object(j.t)("widgets.cloudDoc.view.pack_up","收起文档"),children:Object(F.jsx)(f.r,{className:b()(L.a.icon,"iconfont icon-arrow-up")})})}):null,k.a&&fe&&he?Object(F.jsx)(f.r,{className:L.a.arrow,onClick:Ue,children:Object(F.jsx)(M.c,{arrow:!0,position:ie,text:Object(j.t)("widgets.cloudDoc.view.pack_up","收起文档"),children:Object(F.jsx)(H.a,{type:"default",info:!0,danger:!1,className:b()("button-item button-main",L.a.btnEnhance),icon:Object(F.jsx)(f.r,{className:b()("button-icon iconfont icon-arrow-up")}),children:Object(j.t)("widgets.cloudDoc.view.hide")})})}):null,k.a&&!fe?Object(F.jsx)(f.r,{className:L.a.arrow,onClick:Ue,children:Object(F.jsx)(M.c,{arrow:!0,position:ie,text:Object(j.t)("widgets.cloudDoc.view.open_up","展开文档"),children:Object(F.jsx)(f.r,{className:b()(L.a.icon,"iconfont icon-arrow-down-copy")})})}):null,k.a?null:Object(F.jsx)(f.r,{className:L.a.arrow}),Object(F.jsx)(f.r,{className:b()(L.a.line,L.a.icon,k.a?"":L.a.hidden)}),r?Object(F.jsx)(f.r,{className:L.a.delete,children:Object(F.jsx)(M.c,{arrow:!0,position:ie,text:Object(j.t)("widgets.cloudDoc.edit.remove","删除文档"),children:Object(F.jsx)(f.r,{onClick:e=>{Object(N.b)(_.f.CloudDocsRemoveClick,Object(k.b)(t,h)),e.stopPropagation(),o(),se(void 0)},className:b()(L.a.icon,"iconfont icon-delete1")})})}):Object(F.jsx)(f.r,{className:L.a.link,children:Object(F.jsx)(M.c,{arrow:!0,position:ie,text:Object(j.t)("widgets.cloudDoc.view.copy_link","复制链接"),textStyle:X.isJA?{transform:"translate(-60%, -100%)"}:void 0,arrowStyle:X.isJA?{transform:"translateX(-15%) rotate(-180deg)"}:void 0,children:Object(F.jsx)(f.r,{onClick:()=>{Object(N.b)(_.f.CloudDocsCopyLink,Object(k.b)(t,h)),null!=oe&&oe.URL?tt.setClipboardData({data:oe.URL,success(){tt.showToast({title:Object(j.t)("widgets.cloudDoc.edit.copy_link_success","复制链接成功"),icon:"success",duration:1500}),q("clipboardSuccess",{func:"setClipboardData",data:null==oe?void 0:oe.DocsToken})},fail(e){q("clipboardError",{func:"setClipboardData",data:JSON.stringify(e,Object.getOwnPropertyNames(e))})}}):(tt.showToast({title:Object(j.t)("widgets.cloudDoc.edit.copy_link_error","复制链接失败"),icon:"error",duration:1500}),q("clipboardError",{func:"copyLink",data:null==oe?void 0:oe.DocsToken}))},className:b()(L.a.icon,"iconfont icon-fuzhilianjie")})})})]})]})]}),Object(F.jsxs)(f.r,{id:"open-doc-wrapper-id",className:b()(L.a.content),children:[Object(F.jsx)(f.r,{className:b()(L.a.border,L.a.left)}),Object(F.jsx)(f.r,{className:b()(L.a.border,L.a.right)}),Object(F.jsx)(f.r,{className:b()(L.a.border,L.a.bottom)}),ae&&Object(F.jsx)(V,{isEdit:r,changeTitle:Ve,onDelete:n,setHideContentMoreThenHalf:ve,documentInfo:oe,signatureInfo:ce,fixedDocSize:te}),re&&Object(F.jsx)(f.r,{className:L.a.update,children:Object(F.jsxs)(f.r,{className:L.a.updateremind,children:[Object(F.jsx)(f.r,{className:L.a.imagewrapper,children:Object(F.jsx)(f.g,{className:L.a.image,src:D.a})}),Object(F.jsxs)(f.r,{className:L.a.text,children:[Object(F.jsx)(f.p,{children:Object(j.t)("widgets.cloudDoc.view.please_update_app",{BRAND_DISPLAY_NAME:Object(j.t)(S.b)})}),Object(F.jsx)(f.p,{className:L.a.jump,onClick:K,children:Object(j.t)("feishu_lark.PC.UpgradeBtn",{feishu:Object(j.t)(S.b)})})]})]})})]}),Object(F.jsx)(Z.a,{visible:ee.enableStarterEditDoc&&w,type:"warning",title:Object(j.t)("approval-mp_EditRequiresRevoking_Title"),content:Object(j.t)("approval-mp_RevokedSentBack_Desc"),confirmText:Object(j.t)("approval-mp_Revoke_Button"),onConfirm:Ze,onCancel:()=>{Object(N.b)("click_edit_cloud_doc",{is_click_confirm:0}),z&&z()},loading:Ae})]})}))},,function(e,t,a){"use strict";a.d(t,"a",(function(){return T}));var r=a(5),i=a(9),n=a(6),o=a(3),s=a.n(o),c=a(1),l=a(397),d=a(30),u=a(188),p=a(2),m=a(464),h=a(156),b=a(0);var g=function(e){var{user:t,idx:a}=e;return Object(b.jsx)(c.p,{id:"".concat(t.id,"_").concat(a),style:{color:"#3370FF",cursor:"pointer"},onClick:()=>{Object(h.a)({userId:t.id,openId:t.id,selector:"#".concat(t.id,"_").concat(a)})},children:t.name})},v=a(167),j=a(113),O=a(190),f=a(494),M=a(138),_=a(91),y=a(24),D=a(1472),N=e=>{if(null==e||!e.length)return[];var t=y.b.globalStore.currentUser.openID;return Object(D.a)(e.filter((e=>e.id!==t)),((e,t)=>e.id===t.id))},A=a(25);class T extends o.Component{constructor(e){super(e);var{data:{instanceId:t,actionType:a}}=this.props;this.state={informOwner:f.a.CHECKED,editorValue:_.a.getVal(_.a.getKey(t,a)),confirmVisible:!1}}checkSignatureParams(){var e,t,{editorValue:a}=this.state,r={mustSignatureList:[d.b.AGREE],type:null===(e=this.props.data)||void 0===e?void 0:e.actionType};return Object(l.a)(null===(t=this.props.data)||void 0===t?void 0:t.signatureData,a,r)}renderFooter(){var e=this,{editorValue:t}=this.state,{onSuccess:a,data:{actionType:r,isReasonRequired:n,isThird:o,okText:s,isReasonTextRequired:l}}=this.props;return Object(b.jsx)(c.r,{className:"modal-footer",children:Object(b.jsx)(O.a,{onOk:Object(i.a)((function*(){if(e.validate()){var{text:i,files:n,atInfoList:o,signatureKey:s,signatureUrl:c,isReuseSignature:l}=Object(M.a)(t);if(A.d.fgUseCommentConfirm&&r===d.b.COMMENT&&N(o).length)return void e.setState({confirmVisible:!0});a&&a({content:{text:i,files:n,signatureKey:s,signatureUrl:c,isReuseSignature:l},atInfoList:o})}})),onCancel:()=>this.onCancel(),disabledOk:(()=>{switch(!0){case r===d.b.COMMENT&&Object(j.g)(t):case o&&n&&Object(j.g)(t):case!this.checkSignatureParams():case l&&!(null!=t&&t.text.trim()):return!0;default:return!1}})(),okText:s})})}validate(){var{data:{actionType:e,isReasonRequired:t,isThird:a}}=this.props,{editorValue:r}=this.state,i=a&&t&&Object(j.g)(r);return e===d.b.COMMENT?!Object(j.g)(r):!i&&!!this.checkSignatureParams()}getPlaceholder(){var{data:{actionType:e,isReasonRequired:t,isReasonTextRequired:a,isThird:r,enableReminder:i}}=this.props,n=e=>e?Object(p.t)("Detail.ApprovalConfirmOpinionPlaceholderNew")+Object(p.t)("Brackets",{innerText:Object(p.t)("Required")}):Object(p.t)("Detail.ApprovalConfirmOpinionPlaceholder");if(r)return n(t);switch(e){case d.b.COMMENT:return"".concat(i?Object(p.t)("Comment.TextPlaceholderWithAt"):Object(p.t)("Comment.TextPlaceholder"));case d.b.REJECT:case d.b.AGREE:return n(a);case d.b.WITHDRAW:return"".concat(Object(p.t)("Operate_PlaceholderOfCancelConfirm"));case d.b.SUBMIT:case d.b.SAVE_EDIT:return(e=>Object(p.t)("Detail.HandlerConfirmOpinionPlaceholderNew")+Object(p.t)("Brackets",{innerText:"".concat(e?Object(p.t)("Required"):Object(p.t)("Optional"))}))(a)}}onCancel(){var{onCancel:e,data:{instanceId:t,actionType:a}}=this.props,{editorValue:r}=this.state;Object(j.g)(r)&&!r.signatureKey||_.a.setVal(_.a.getKey(t,a),r),e&&e()}renderConfirmContent(){var{editorValue:e}=this.state,t=Object(p.t)("approval-admin_AtSharePermit_Desc",{name:"$"}).split("$"),a=N(e.reminders);return Object(b.jsxs)(c.r,{style:{maxHeight:"100px",overflow:"auto"},children:[t[0],null==a?void 0:a.map(((e,t)=>t===a.length-1?Object(b.jsx)(g,{user:e,idx:t}):Object(b.jsxs)(s.a.Fragment,{children:[Object(b.jsx)(g,{user:e,idx:t}),"、 "]}))),t[1]]})}render(){var e=this,{ctxId:t,visible:a,data:{title:i,hasReason:n,isNeedAttachment:o,isNeedReason:s,signatureData:l,taskId:d,instanceId:h,enableReminder:g},showCommonMask:j,subTitle:O}=this.props,{editorValue:f,confirmVisible:_}=this.state,y=this.renderFooter();return Object(b.jsx)(u.a,{title:i,ctxId:t,visible:a,renderFooter:Object(b.jsx)(c.r,{children:y}),type:"custom-footer",onCancel:()=>this.onCancel(),loading:j,subTitle:O,children:n&&Object(b.jsxs)(c.r,{className:"container",children:[Object(b.jsx)(v.a,{placeholder:this.getPlaceholder(),ctxId:t,defaultValue:f,taskId:d,instanceId:h,isNeedAttachment:o,isNeedReason:s,signatureData:l,enableReminder:g,onChange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setState({editorValue:Object(r.a)(Object(r.a)({},f),t)})}}),Object(b.jsx)(m.a,{visible:_,title:Object(p.t)("approval-admin_SharePermission_Title"),content:this.renderConfirmContent(),okText:Object(p.t)("approval-admin_AtSharePermit_Confirm"),onCancel:()=>{this.setState({confirmVisible:!1})},onOk:()=>{var{onSuccess:e}=this.props,{text:t,files:a,atInfoList:r,signatureKey:i,signatureUrl:n,isReuseSignature:o}=Object(M.a)(f);e&&e({content:{text:t,files:a,signatureKey:i,signatureUrl:n,isReuseSignature:o},atInfoList:r}),this.setState({confirmVisible:!1})}})]})})}}Object(n.a)(T,"defaultProps",{data:{ctxId:"",title:"",instanceId:"",actionType:""}})},function(e,t,a){"use strict";var r,i,n,o,s,c,l,d,u,p,m,h,b,g,v,j,O,f=a(5),M=a(6),_=a(3),y=a(1),D=a(15),N=a(4),A=a(60),T=a(9),I=a(11),C=a(7),x=(a(56),a(2)),S=a(16),w=a(47),L=a(18),E=a(10),k=a(12),z=(r=class{get processDefinitionId(){var{approvalTypes:e,approvalTypeIndex:t}=this;if(0===t)return"";var a,r=e[t];if(r.includes&&r.includes(L.d)){var i=r.split(L.d)[0],n=r.split(L.d)[1];a=this.groups.filter((e=>e.name===i))[n]}else a=this.groups.find((e=>e.name===r));if(a){var o=a.bizType===w.a.LARK?a.id:a.definitionId;return String(o)}return""}get isSearched(){var{approvalTypeIndex:e,searchKey:t}=this;return 0!==e||Boolean(t)}get shouldShowLoading(){return!this.isListRenderd&&!this.completed}get bizType(){if(this.cardActiveIndex<0)return this.defaultBizType;var e=this.approvalList[this.cardActiveIndex];return e?e.bizType:void 0}get oaParams(){if(!(this.cardActiveIndex<0)){var e=this.approvalList[this.cardActiveIndex],{creatorUserName:t,approvalName:a,taskId:r,taskStatus:i,creatorUserAvatarUrl:n,createTime:o,link:s,creatorUserId:c}=e;return e?{creatorUserId:c,creatorUserName:t,approvalName:a,taskId:r,taskStatus:i,creatorUserAvatarUrl:n,createTime:o,link:s}:void 0}}get isExternal(){if(this.cardActiveIndex<0)return!1;var e=this.approvalList[this.cardActiveIndex];return e&&e.isExternal}get externalApprovalParams(){if(!(this.cardActiveIndex<0)){var e=this.approvalList[this.cardActiveIndex],{creatorUserName:t,approvalName:a,taskId:r,taskStatus:i,creatorUserAvatarUrl:n,createTime:o,link:s,creatorUserId:c,title:l,links:d}=e;return e?{creatorUserName:t,approvalName:a,taskId:r,taskStatus:i,creatorUserAvatarUrl:n,createTime:o,link:s,creatorUserId:c,title:l,links:d}:void 0}}constructor(e){Object(M.a)(this,"limit",50),Object(M.a)(this,"offset",0),Object(I.a)(this,"approvalList",i,this),Object(I.a)(this,"approvalTypes",n,this),Object(I.a)(this,"approvalTypeIndex",o,this),Object(I.a)(this,"approvalsSelected",s,this),Object(I.a)(this,"completed",c,this),Object(I.a)(this,"isLoading",l,this),Object(I.a)(this,"onlyUnread",d,this),Object(M.a)(this,"apiName",w.b.PENDING),Object(M.a)(this,"searchBizType",void 0),Object(M.a)(this,"approvalGroup",void 0),Object(M.a)(this,"approvalDefinitionId",void 0),Object(M.a)(this,"widgetId",void 0),Object(M.a)(this,"groups",void 0),Object(M.a)(this,"count",0),Object(M.a)(this,"approvalNeedToSetSelected",[]),Object(I.a)(this,"isListRenderd",u,this),Object(I.a)(this,"cardActiveIndex",p,this),Object(I.a)(this,"cardLastActiveIndex",m,this),Object(I.a)(this,"highlightKeywords",h,this),Object(M.a)(this,"approvalListWithnotCache",[]),Object(M.a)(this,"isApprovalListUsingCache",void 0),Object(M.a)(this,"defaultBizType",w.a.LARK),Object(I.a)(this,"detailId",b,this),Object(M.a)(this,"taskId",void 0),Object(M.a)(this,"instanceCode",void 0),Object(I.a)(this,"searchKey",g,this),Object(M.a)(this,"unreadMsgStore",void 0),Object(M.a)(this,"configurableFormStore",void 0),Object(M.a)(this,"showUnread",void 0),Object(M.a)(this,"initDetailByInstanceCode",Object(N.k)(this._initDetailByInstanceCode)),Object(M.a)(this,"setDetailId",Object(N.k)(this._setDetailId)),Object(M.a)(this,"fetchApprovalListCb",Object(N.f)(((e,t,a)=>{this.isApprovalListUsingCache=a,this.count=e.count;var r=e.data.map((e=>{var t=this.approvalNeedToSetSelected.includes(e.instanceId)||this.approvalsSelected.some((t=>t.instanceId===e.instanceId));return Object(f.a)(Object(f.a)({},e),{},{isSelected:t})}));if(this.approvalNeedToSetSelected=[],this.approvalList=t?r:[...this.approvalListWithnotCache,...r],a||(this.approvalListWithnotCache=this.approvalList),r.length&&!this.instanceCode){var i=this.detailId&&!t?this.approvalList.findIndex((e=>e.instanceId===this.detailId)):0,n=i<0&&this.detailId?this.detailId:this.approvalList[i].instanceId;this.cardLastActiveIndex=this.cardActiveIndex,this.cardActiveIndex=i;var o=Boolean(this.detailId&&!this.isListRenderd);this.setDetailId(n,o,a),this.isListRenderd=!0,a||(this.offset+=this.limit)}this.completed=!r.length,this.isLoading=!1,this.highlightKeywords=e&&e.keys&&Array.isArray(e.keys)?e.keys.filter((e=>""!==e)):[]}))),Object(M.a)(this,"postReadAll",Object(N.k)(this._postReadAll)),Object(M.a)(this,"postReadItems",Object(N.k)(this._postReadItems)),Object(I.a)(this,"showLoading",v,this),Object(I.a)(this,"clearFilters",j,this),this.apiName=e.apiName,this.approvalGroup=e.approvalGroup,this.approvalDefinitionId=e.approvalDefinitionId,this.widgetId=e.widgetId,this.configurableFormStore=e.configurableFormStore,this.showUnread=this.configurableFormStore.options.userStore.userConfig.version>=12,this.onlyUnread=e.approvalGroup===w.c.CC&&this.showUnread,e.id&&(E.a.error("set detail id",e.id),this.detailId=e.id),e.bizType&&(this.defaultBizType=e.bizType),e.instanceCode&&(this.instanceCode=e.instanceCode,this.initDetailByInstanceCode())}setApprovalNeedToSetSelected(e,t){this.approvalNeedToSetSelected=e,t&&(this.approvalsSelected=t)}setBothDetailIdAndCardActive(e,t){this.setDetailId(e),this.cardLastActiveIndex=this.cardActiveIndex,this.cardActiveIndex=t}*_initDetailByInstanceCode(){if(this.instanceCode&&(yield this.configurableFormStore.fetchInstance({instanceCode:this.instanceCode}),this.configurableFormStore.instanceInfo)){var e=this.configurableFormStore.instanceInfo.instanceId;this.detailId=e,this.cardActiveIndex=this.approvalList.findIndex((e=>e.instanceId===this.detailId))}}*_setDetailId(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0;if((this.detailId!==e||t)&&(a||(this.detailId=e),""!==e)){var r=this.approvalList.find((t=>t.instanceId===e)),i=r&&r.bizType===w.a.OA,n=r&&r.isExternal;if(!i&&!n&&(yield this.configurableFormStore.fetchInstance({id:e}),this.approvalGroup!==w.c.APPROVED)){var{instanceInfo:o}=this.configurableFormStore;if(!o)return;var{instanceId:s,instanceStatus:c,originalStatus:l}=o,d=this.approvalList.find((e=>e.instanceId===s));d&&(d.instanceStatus=void 0!==l?l:c)}}}setCardActive(e){this.cardLastActiveIndex=this.cardActiveIndex,this.cardActiveIndex=e}setLoading(e){this.isLoading=e}setApprovalTypeIndex(e){this.approvalTypeIndex=e;var t=this.groups[e-1];t&&t.bizType&&(this.searchBizType=t.bizType)}setSearchKey(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.searchKey=e,this.highlightKeywords=e?[e]:""}resetOffset(){this.offset=0}resetCompleted(){this.completed=!1}resetApprovalList(){this.approvalList=[]}refreshApprovalList(){var{unreadMsgStore:e}=this;e&&(e.fetchCount(),e.fetchUnreadCount()),this.clearFilters(),this.resetOffset(),this.resetCompleted(),this.fetchApprovalList({isFirstSearch:!0,forceRefresh:!0})}fetchApprovalList(){var e=arguments,t=this;return Object(T.a)((function*(){var a=e.length>0&&void 0!==e[0]?e[0]:{},{isFirstSearch:r}=a,{apiName:i,limit:n,offset:o,processDefinitionId:s,searchKey:c,approvalDefinitionId:l,widgetId:d,searchBizType:u}=t,p={limit:n,offset:r?0:o,processDefinitionId:s,searchKey:c,approvalDefinitionId:l,widgetId:d,bizType:u,readStatus:t.onlyUnread?"unread":void 0};if(Object(k.b)("pc_mp_filter_approver",{search_type:p.searchKey?1:0,filter_type:p.approvalDefinitionId?1:0}),s||l||i!==w.b.RELATIVE){t.isLoading=!0;var{data:m}=yield S.c.searchcompleteListByConnectWidget(p);t.fetchApprovalListCb(m,r,!1)}}))()}setApprovalDefinitionId(e){this._setApprovalDefinitionId(e)}_setApprovalDefinitionId(e){this.approvalDefinitionId=e}setSelected(e,t){for(var a of this.approvalList)if(a.instanceId===e.instanceId)return void(a.isSelected=t)}removeSelected(e){if(0!==this.approvalList.length)this.setSelected(e,!1),this.confirmRelativeModal();else{var t=this.approvalNeedToSetSelected.findIndex((t=>t===e.instanceId));t>-1&&(this.approvalNeedToSetSelected.splice(t,1),this.approvalsSelected.splice(t,1))}}confirmRelativeModal(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.approvalList.filter((e=>e.isSelected));this.approvalsSelected=e&&this.approvalsSelected&&this.approvalsSelected.length?this.approvalsSelected.concat(t):t,this.approvalListWithnotCache=[],this.resetOffset()}cancelRelativeModal(){var e=this.approvalsSelected.map((e=>e.instanceId));this.setApprovalNeedToSetSelected(e),this.approvalList.forEach((t=>{t.isSelected=e.includes(t.instanceId)})),this.resetOffset(),this.approvalListWithnotCache=[]}setApprovalStatus(e,t){var a=this.approvalList.findIndex((e=>e.instanceId===t));void 0!==a&&(this.approvalList[a].instanceStatus=e)}removeItemFormList(e,t){var a=this.approvalList.findIndex((t=>t.instanceId===e));if(-1!==a){this.approvalList.splice(a,1),(this.approvalTypeIndex||this.searchKey)&&this.approvalList[0]&&(t=this.approvalList[0].instanceId),this.count-=1,this.unreadMsgStore&&this.unreadMsgStore.minusCount();var r=this.approvalList.findIndex((e=>e.instanceId===t));-1===r&&0===this.approvalList.length||(-1===r&&0!==this.approvalList.length&&(r=0),this.setDetailId(t),this.setCardActive(r))}}setOnlyUnread(e){this.onlyUnread=e}*_postReadAll(){var{unreadMsgStore:e}=this;if(e){var{data:t}=yield S.c.ccread({all:!0},{showError:!0}),{unsupportBatchReadCount:a=0}=t;return e.setUnreadCount(a),this.approvalList.forEach((e=>{e.supportBatchRead&&(e.readStatus=!0)})),a}}*_postReadItems(e){if(!this.isApprovalListUsingCache){yield S.c.ccread({procInstIDs:e});var t=0;this.approvalList.forEach((a=>{e.includes(a.instanceId)&&!a.readStatus&&(a.readStatus=!0,t++)})),this.unreadMsgStore&&this.approvalGroup===w.c.CC&&this.unreadMsgStore.minusUnreadCount(t)}}setApprovalReadStatus(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.readStatus=t}shouldDeleteFromList(e){var t=this.approvalList.find((t=>t.instanceId===e));return t&&t.shouldDelete}},i=Object(C.a)(r.prototype,"approvalList",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),n=Object(C.a)(r.prototype,"approvalTypes",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[Object(x.t)("ApprovalSearch.All")]}}),o=Object(C.a)(r.prototype,"approvalTypeIndex",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=Object(C.a)(r.prototype,"approvalsSelected",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=Object(C.a)(r.prototype,"completed",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=Object(C.a)(r.prototype,"isLoading",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d=Object(C.a)(r.prototype,"onlyUnread",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=Object(C.a)(r.prototype,"isListRenderd",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=Object(C.a)(r.prototype,"cardActiveIndex",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),m=Object(C.a)(r.prototype,"cardLastActiveIndex",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=Object(C.a)(r.prototype,"highlightKeywords",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(C.a)(r.prototype,"processDefinitionId",[N.h],Object.getOwnPropertyDescriptor(r.prototype,"processDefinitionId"),r.prototype),Object(C.a)(r.prototype,"isSearched",[N.h],Object.getOwnPropertyDescriptor(r.prototype,"isSearched"),r.prototype),Object(C.a)(r.prototype,"shouldShowLoading",[N.h],Object.getOwnPropertyDescriptor(r.prototype,"shouldShowLoading"),r.prototype),Object(C.a)(r.prototype,"bizType",[N.h],Object.getOwnPropertyDescriptor(r.prototype,"bizType"),r.prototype),Object(C.a)(r.prototype,"oaParams",[N.h],Object.getOwnPropertyDescriptor(r.prototype,"oaParams"),r.prototype),Object(C.a)(r.prototype,"isExternal",[N.h],Object.getOwnPropertyDescriptor(r.prototype,"isExternal"),r.prototype),Object(C.a)(r.prototype,"externalApprovalParams",[N.h],Object.getOwnPropertyDescriptor(r.prototype,"externalApprovalParams"),r.prototype),b=Object(C.a)(r.prototype,"detailId",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=Object(C.a)(r.prototype,"searchKey",[N.q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(C.a)(r.prototype,"setApprovalNeedToSetSelected",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setApprovalNeedToSetSelected"),r.prototype),Object(C.a)(r.prototype,"setBothDetailIdAndCardActive",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setBothDetailIdAndCardActive"),r.prototype),Object(C.a)(r.prototype,"setCardActive",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setCardActive"),r.prototype),Object(C.a)(r.prototype,"setLoading",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setLoading"),r.prototype),Object(C.a)(r.prototype,"setApprovalTypeIndex",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setApprovalTypeIndex"),r.prototype),Object(C.a)(r.prototype,"setSearchKey",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setSearchKey"),r.prototype),Object(C.a)(r.prototype,"resetOffset",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"resetOffset"),r.prototype),Object(C.a)(r.prototype,"resetCompleted",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"resetCompleted"),r.prototype),Object(C.a)(r.prototype,"resetApprovalList",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"resetApprovalList"),r.prototype),Object(C.a)(r.prototype,"fetchApprovalList",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"fetchApprovalList"),r.prototype),Object(C.a)(r.prototype,"_setApprovalDefinitionId",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"_setApprovalDefinitionId"),r.prototype),Object(C.a)(r.prototype,"setSelected",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setSelected"),r.prototype),Object(C.a)(r.prototype,"removeSelected",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"removeSelected"),r.prototype),Object(C.a)(r.prototype,"confirmRelativeModal",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"confirmRelativeModal"),r.prototype),Object(C.a)(r.prototype,"cancelRelativeModal",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"cancelRelativeModal"),r.prototype),Object(C.a)(r.prototype,"setApprovalStatus",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setApprovalStatus"),r.prototype),Object(C.a)(r.prototype,"removeItemFormList",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"removeItemFormList"),r.prototype),Object(C.a)(r.prototype,"setOnlyUnread",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setOnlyUnread"),r.prototype),Object(C.a)(r.prototype,"setApprovalReadStatus",[N.f],Object.getOwnPropertyDescriptor(r.prototype,"setApprovalReadStatus"),r.prototype),v=Object(C.a)(r.prototype,"showLoading",[N.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.isListRenderd=!1,this.completed=!1}}}),j=Object(C.a)(r.prototype,"clearFilters",[N.f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchKey="",this.approvalTypeIndex=0}}}),r),R=a(48),P=a(144),U=a(647),B=a.n(U),F=a(26),Y=a(663),Q=a(14),G=a(100),W=a(41),V=a(430),H=(a(1295),a(197)),Z=a(665),q=a(0),K=Object(D.a)(O=class extends _.Component{constructor(){super(...arguments),Object(M.a)(this,"customCtx",void 0),Object(M.a)(this,"RelativeFormIds",void 0),Object(M.a)(this,"state",{instances:[]}),Object(M.a)(this,"init",Object(N.f)(((e,t)=>{var a,{userStore:r}=Object(Q.d)(t),i=Object(F.q)(e.id),n=new P.c({userStore:r}),o={apiName:w.b.RELATIVE,widgetId:i,configurableFormStore:n};this.customCtx={approvalListStore:new z(o),configurableFormStore:n,isInRelative:!0};var s=Object(Q.c)(Object(Q.d)(t),this.customCtx,this);if(e.data.innerCtxId=s,null!==(a=e.data.value)&&void 0!==a&&a.instanceIds){var c,{data:{instances:l=[]}={}}=e;this.setState({instances:null!==(c=null==l?void 0:l.slice())&&void 0!==c?c:[]})}e.data.relativeFormIds&&(this.RelativeFormIds=e.data.relativeFormIds)}))),Object(M.a)(this,"handleAddButtonClick",(()=>{var{ctxId:e,widget:t}=this.props,a=G.a.use();a.setUseBeforeClose(!1),a.open("ApprovalInstanceSelector_".concat(Math.floor(1e4*Math.random())),(()=>Object(q.jsx)(H.a,{ctxId:e,widget:t,onConfirm:this.handleSelectorConfirm,onCancel:this.handleSelectorCancel})))})),Object(M.a)(this,"handleSelectorCancel",(()=>{var e,t;null!==(e=G.a.use().history)&&void 0!==e&&e.current?null===(t=G.a.use().history)||void 0===t||t.backward():G.a.use().close()})),Object(M.a)(this,"handleSelectorConfirm",(e=>{var{ctxId:t,widget:a}=this.props,{configurableFormStore:r}=Object(Q.d)(t);this.handleSelectorCancel(),this.setState({instances:e},(()=>{this.setWidgetData()})),r.handleWidgetChange(a.id)})),Object(M.a)(this,"handleInstanceClick",(e=>{var t,{ctxId:a}=this.props,r=null!==(t=Object(Q.d)(a))&&void 0!==t?t:{},{configurableFormStore:{instanceInfo:i={},parentId:n=""}={}}=r,{instanceId:o}=i||{};Object(H.c)(Object(f.a)(Object(f.a)({},e),{},{parentId:n||o}))})),Object(M.a)(this,"handleInstanceDelete",(e=>{var{widget:{data:{instances:t=[]}={}}}=this.props,a=t.filter((t=>t.instanceId!==e.instanceId));this.setState({instances:a},(()=>{this.setWidgetData()}))})),Object(M.a)(this,"setWidgetData",Object(N.f)((()=>{var{widget:e,ctxId:t}=this.props,{instances:a}=this.state,{configurableFormStore:r}=Object(Q.d)(t),i=Object(V.a)(a);e.data.instances=i.instances,e.data.value.instanceIds=i.instanceIds,e.data.value.externalInfos=i.externalInfos,r.handleWidgetChange(e.id)})))}UNSAFE_componentWillMount(){var{widget:e,ctxId:t}=this.props;this.init(e,t)}componentWillUnmount(){Object(Q.b)(this)}renderInstances(){var{ctxId:e,widget:t,isInDetailPage:a}=this.props,{data:{instances:r=[]}}=t;return Object(q.jsx)(_.Fragment,{children:null==r?void 0:r.map((t=>{var r,i;return Object(q.jsx)(H.b,{ctxId:e,instance:t,deletable:!0,onClick:()=>{this.handleInstanceClick(t)},onDelete:this.handleInstanceDelete,ctxId:e,relativeFormIds:null===(r=this.RelativeFormIds)||void 0===r?void 0:r[null!==(i=t.definitionID)&&void 0!==i?i:""],isInDetailPage:a,isEditorChecked:t.isEditorChecked},t.instanceId)}))})}render(){var{widget:e,ctxId:t,inTable:a}=this.props,{configurableFormStore:r}=Object(Q.d)(t);if(!t)return null;var{data:{name:i,required:n,hasHistory:o,validationError:s,definitionIds:c}}=e;if(a)return this.renderInTable();var l=Object(Z.a)(c,r.innerDefinitions);return Object(q.jsxs)(y.r,{className:"widget-editor relative-approval-editor",children:[Object(q.jsxs)(R.a,{required:n,children:[i,o&&Object(q.jsx)(W.a,{ctxId:t,widget:e},e.id)]}),this.renderInstances(),Object(q.jsxs)(y.r,{className:"add-approval",onClick:this.handleAddButtonClick,children:[Object(q.jsx)(y.g,{src:B.a,className:"add-approval__icon"}),l]}),Object(q.jsx)(A.a,{text:s})]})}renderInTable(){var{widget:e,ctxId:t}=this.props;if(!t)return null;var{data:{instances:a,validationError:r,writable:i}}=e;return Object(q.jsx)(y.r,{className:"relative-approval-table-cell",children:Object(q.jsx)(Y.a,{onSelectClick:this.handleAddButtonClick,disabled:!i,onItemClick:this.handleInstanceClick,value:a,onRemoveItem:this.handleInstanceDelete,error:r,maxCount:4,showSelectButton:i||!a.length})})}})||O;t.a=K},,function(e,t,a){"use strict";var r,i,n=a(5),o=a(37),s=a(3),c=a.n(s),l=a(19),d=a(1),u=a(48),p=a(60),m=a(647),h=a.n(m),b=a(2),g=a(8),v=a.n(g),j=a(4),O=a(15),f=a(14),M=a(17),_=a(12),y=a(28),D=a(413),N=a.n(D),A=a(708),T=a(9),I=a(156),C=a(35),x=a(16),S=a(176),w=a(188),L=a(121),E=a(209),k=a(42),z=a(152),R=a.n(z),P=(a(1217),a(0)),U=c.a.memo((e=>{var{src:t=R.a,tip:a,containerStyle:r}=e;return Object(P.jsxs)(d.r,{className:"approval-page-placeholder",style:r,children:[Object(P.jsx)(d.g,{className:"approval-page-placeholder__pic",src:t,mode:"aspectFill"}),a&&Object(P.jsx)(d.r,{className:"approval-page-placeholder__tip",children:a})]})})),B=a(881),F=a.n(B),Y=a(360),Q=a.n(Y),G=a(243),W=a.n(G),V=a(69),H=a(24),Z=a(40),q=a(196),K=a(183),J=a(208),X=a.n(J),$=a(125),ee=a.n($),te=a(173),ae=a(20),re=Object(ae.c)("pc:src/components/configurable-form/components/widgets/cloud-doc/add-doc-modal/index.tsx");(function(e){e[e.INIT=0]="INIT",e[e.LOADING=1]="LOADING",e[e.NO_RESULT=2]="NO_RESULT",e[e.HAS_RESULT=3]="HAS_RESULT"})(r||(r={})),function(e){e[e.HAS_NO_PERMISSION=0]="HAS_NO_PERMISSION",e[e.HAS_PERMISSION=1]="HAS_PERMISSION",e[e.UNKNOWN=2]="UNKNOWN"}(i||(i={}));var ie=new RegExp(/https?:\/\/[\da-z\.-]+\.[a-z\.]{2,6}([\/\w \.-]*)*\/?/),ne=["doc","docx"],oe=["doc"],se={margin:0,marginLeft:"12px",minWidth:"120px",padding:"0 12px"},ce=Object(b.getCurStarlingLang)()===b.StarlingLangEnum.zh,le=Object(S.a)(x.c.searchDocument),de=c.a.memo((e=>{var{docInfo:t,checked:a,searchKey:r,onClick:n}=e,o=()=>{Object(I.a)({userId:t.OwnerID,openId:t.OwnerID,selector:".".concat(ee.a.ownerName)})};return Object(P.jsxs)(d.r,{className:v()(ee.a["list-item"],{[ee.a.checked]:a}),onClick:()=>n(t),children:[Object(P.jsx)(d.r,{className:v()(ee.a.radio,{[ee.a.checked]:a})}),Object(P.jsx)(K.a,{name:"file-round-doc_colorful",size:32,className:ee.a["doc-icon"]}),Object(P.jsxs)(d.r,{className:ee.a["doc-info"],children:[Object(P.jsx)(d.r,{className:ee.a["doc-title"],children:Object(P.jsx)(k.a,{className:"doc-title-inner",content:t.Title,keyword:r,isSingleLine:!0})}),a&&t.hasPermission===i.HAS_NO_PERMISSION?Object(P.jsxs)(d.r,{className:v()(ee.a["doc-owner"],ee.a.tip),children:[Object(b.t)("widgets.cloudDoc.search.concat").split("$$")[0],Object(P.jsx)(d.p,{className:v()("user-name",ee.a.ownerName),onClick:o,children:t.OwnerName}),Object(b.t)("widgets.cloudDoc.search.concat").split("$$")[1]]}):Object(P.jsxs)(d.r,{className:ee.a["doc-owner"],children:[Object(b.t)("widgets.cloudDoc.search.owner"),"",Object(P.jsx)(d.p,{className:v()("user-name",ee.a.ownerName),onClick:o,children:t.OwnerName})]})]}),Object(P.jsx)(Z.c,{arrow:!0,position:"left",text:Object(b.t)("approval-mp_OpenDoc_Tooltip"),children:Object(P.jsx)(K.a,{name:"window-new_outlined",size:16,className:ee.a["navigate-icon"],onClick:()=>{tt.openSchema({schema:t.URL||"",external:!0,success(e){re("openSchemaSuccess",{func:"navigateToDoc",data:e})},fail(e){re("openSchemaFail",{func:"navigateToDoc",data:e})},complete(e){re("openSchemaComplete",{func:"navigateToDoc",data:e})}})}})})]})})),ue=Object(O.a)((e=>{var{visible:t,ctxId:a,onAdd:o,onClose:c}=e,{globalStore:l}=Object(H.c)(),{enableDocxSelect:u}=l,[p,m]=Object(s.useState)(!0),[h,g]=Object(s.useState)(""),[j,O]=Object(s.useState)(r.INIT),[f,y]=Object(s.useState)(!1),[D,N]=Object(s.useState)(!1),[A,I]=Object(s.useState)(1),[S,k]=Object(s.useState)([]),[z,B]=Object(s.useState)(null),[Y,G]=Object(s.useState)(!1),[Z,K]=Object(s.useState)(!1),J=Object(s.useMemo)((()=>!z||!z.IsOwner),[z]);Object(s.useEffect)((()=>{m(!0)}),[t]);var $=Object(s.useMemo)((()=>ie.test(h)&&!q.f.test(h)),[h]),ae=Object(s.useCallback)((e=>{B(e),e.hasPermission===i.UNKNOWN&&(C.b.showLoading({title:Object(b.t)("widgets.cloudDoc.edit.permissionCheck")}),K(!0),pe(e).then((t=>{var{HasSecurityPermission:a}=t.data,r=Object(n.a)(Object(n.a)({},e),{},{hasPermission:Number(a)});k((t=>{var a=t.findIndex((t=>t.DocsToken===e.DocsToken));return t[a]=r,[...t]})),B((e=>(null==e?void 0:e.DocsToken)===(null==r?void 0:r.DocsToken)?r:e)),C.b.hideLoading()})).catch((()=>{C.b.hideLoading()})).finally((()=>{K(!1)})))}),[]),re=e=>{if(ie.test(e)){var t=q.f.exec(e);if(t){var[a,r,i]=t;me(i,q.b[r])}}else be(e)},ue=Object(s.useCallback)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e?y(!0):O(r.LOADING);var a=e?A:0;return le(Object(n.a)({SearchKey:h,Count:20,Offset:a,DocsTypes:ne},t)).then((t=>{var o=u?ne:oe,{Entities:s=[],HasMore:c}=t.data,l=s.map((e=>Object(n.a)(Object(n.a)({},e),{},{hasPermission:e.IsOwner?i.HAS_PERMISSION:i.UNKNOWN}))).filter((e=>o.includes(e.DocsType)));return k((t=>e?t.concat(l):l)),N(c),I(a+20),e?y(!1):O(c||0!==l.length?r.HAS_RESULT:r.NO_RESULT),{list:l,hasMore:c}})).catch((()=>(e||(O(r.NO_RESULT),k([]),N(!1)),y(!1),{list:[],hasMore:!1})))}),[A,h]),pe=e=>{var{DocsToken:t,DocsType:a}=e;return x.c.getDocument({DocsToken:t,DocsType:a})},me=(e,t)=>{O(r.LOADING),pe({DocsToken:e,DocsType:t}).then((e=>{var{Entity:t,HasSecurityPermission:a}=e.data,i=Object(n.a)(Object(n.a)({},t),{},{hasPermission:Number(a)});O(r.HAS_RESULT),N(!1),k([i]),B(i)})).catch((()=>{O(r.NO_RESULT),N(!1),k([])}))},he=Object(s.useCallback)((()=>{D&&!f&&ue()}),[ue,D,f]),be=Object(s.useCallback)((e=>{ue(!1,{SearchKey:e}).then((e=>{e.hasMore&&e.list.length<8&&he()}))}),[ue,he]),ge=Object(s.useMemo)((()=>Object(P.jsxs)(d.n,{className:ee.a["docs-list"],style:{height:z?J||ce?270:240:338},scrollY:!0,onScrollToLower:he,children:[S.map((e=>Object(P.jsx)(de,{docInfo:e,searchKey:h,checked:e.DocsToken===(null==z?void 0:z.DocsToken),onClick:ae},e.DocsToken))),f&&Object(P.jsx)(d.r,{style:{display:"flex",justifyContent:"center",marginTop:"8px"},children:Object(P.jsx)(d.g,{style:{width:"20px",height:"20px",transition:"all 0.2s"},src:X.a})})]})),[S,h,null==z?void 0:z.DocsToken,ae,he,f]),ve=Object(s.useMemo)((()=>{switch(j){case r.INIT:return Object(P.jsx)(U,{src:W.a,tip:Object(b.t)("widgets.cloudDoc.search.tip","搜索云文档名称或粘贴链接进行添加")});case r.LOADING:return Object(P.jsx)(U,{tip:"".concat(Object(b.t)("Loading"),"..."),src:R.a});case r.NO_RESULT:return Object(P.jsx)(U,{src:Q.a,tip:Object(b.t)("widgets.cloudDoc.search.empty")});default:return ge}}),[j,ge]),je=function(){var e=Object(T.a)((function*(e){z&&!z.IsOwner&&z.hasPermission===i.HAS_PERMISSION&&tt.showToast({title:Object(b.t)("widgets.cloudDoc.search.copy","文档所有者可使用原文档添加"),icon:"warning"});var{detail:{checked:t}}=e;m(t)}));return function(t){return e.apply(this,arguments)}}(),Oe=Object(s.useMemo)((()=>{var e=!1;return!z||Z?e=!0:z.IsOwner||z.hasPermission===i.HAS_PERMISSION||(e=!0),e}),[z,Z]),fe=Object(P.jsxs)(d.r,{className:ee.a["footer-wrap"],children:[z&&Object(P.jsxs)(d.r,{className:ee.a["copy-tip"],children:[!J&&Object(P.jsx)(V.b,{shape:"square",value:"1",mode:"lark5_0",disabled:J,checked:p,onChange:je,children:Object(P.jsx)(d.r,{style:{display:"flex",alignItems:"center"},children:Object(P.jsx)(d.p,{children:Object(b.t)("approval-mp_InitiateWithCopy_Checkbox","使用文档副本发起审批")})})}),Object(P.jsx)(d.r,{className:ee.a.tip,children:J?Object(b.t)("approval-mp_NotOwnerUseCopy_Desc",{BRAND_DISPLAY_NAME:Object(b.t)("AppName")}):p?Object(b.t)("approval-mp_AutoCopyCantEdit_Desc",{BRAND_DISPLAY_NAME:Object(b.t)("AppName")}):Object(b.t)("approval-mp_OwnerChangeUseCopy_Desc",{BRAND_DISPLAY_NAME:Object(b.t)("AppName")})})]}),Object(P.jsx)(L.a,{disabled:Oe||Y,loading:Y,style:se,type:"primary",onClick:()=>{z&&(Object(_.b)("add_cloud_doc",{is_owner:z.IsOwner?1:0,is_doc_copy:p?1:0}),z&&p?(()=>{if(z){C.b.showLoading({title:Object(b.t)("widgets.cloudDoc.edit.copying")}),Object(_.b)(M.f.CloudDocsAddCopyDoc,Object(te.b)(a)),G(!0);var e=z.Title.includes(Object(b.t)("widgets.cloudDoc.edit.copyTitle"))?z.Title:"".concat(z.Title," ").concat(Object(b.t)("widgets.cloudDoc.edit.copyTitle"));x.c.copyDocument({DocsToken:z.DocsToken,Type:z.DocsType,DstFolderToken:"",DstName:e}).then((t=>{var{Token:a,Type:r,URL:i}=t.data;G(!1),o(Object(n.a)(Object(n.a)({},z),{},{url:i,title:e,token:a,type:r,emptyTitle:z.EmptyTitle})),C.b.hideLoading(),c()})).catch((()=>{G(!1),C.b.hideLoading(),C.b.showToast({title:Object(b.t)("widgets.cloudDoc.edit.copyFail"),icon:"error"})}))}})():(()=>{if(z){var{URL:e,Title:t,DocsToken:r,DocsType:i,EmptyTitle:n}=z;o({url:e,title:t,token:r,type:i,emptyTitle:n}),Object(_.b)(M.f.CloudDocsAddSourceDoc,Object(te.b)(a)),c()}})())},children:z&&(J||p)?Object(b.t)("approval-mp_CreateCopyAdd_Button"):Object(b.t)("approval-mp_Add_Button")})]});return Object(s.useEffect)((()=>{t?be(""):(O(r.INIT),g(""),k([]),B(null))}),[t]),Object(P.jsxs)(w.a,{width:"600px",padding:"24px",type:"custom-footer",visible:t,ctxId:a,title:Object(b.t)("widgets.cloudDoc.edit.add","添加文档"),children:[Object(P.jsxs)(d.r,{className:ee.a["cloud-doc-modal"],children:[Object(P.jsxs)(d.r,{className:ee.a.content,children:[Object(P.jsx)(E.a,{wrapClass:v()("search-input",{error:$}),debounceDelay:350,value:h,onInput:e=>{g(e.detail.value),B(null),re(e.detail.value)},onClear:()=>{g(""),O(r.INIT),k([]),B(null),be("")},placeholderStyle:{color:"#8F959E"},placeholder:Object(b.t)("widgets.cloudDoc.search.placeholder"),isNoBorder:!0}),$&&Object(P.jsx)(d.r,{className:ee.a["error-tip"],children:Object(b.t)("widgets.cloudDoc.search.error")}),Object(P.jsx)(d.r,{className:ee.a["search-content"],children:ve})]}),j===r.HAS_RESULT&&fe]}),Object(P.jsx)(d.r,{className:ee.a["header-close"],onClick:c,children:Object(P.jsx)(d.g,{className:ee.a["header-icon"],src:F.a})})]})})),pe=a(139),me=a(25),he=a(47),be=["emptyTitle"],ge=Object(ae.c)("pc:src/components/configurable-form/components/widgets/cloud-doc/document/index.tsx");t.a=Object(O.a)((e=>{var{ctxId:t,widget:a,type:r=pe.a.detail,className:i}=e,{token:c,required:m,name:g,deleted:O,validationError:D}=a.data,T=r===pe.a.create,I=T&&!c,C=!I&&c,[x,S]=Object(s.useState)(!1),[w,L]=Object(s.useState)(!1),{userStore:{currentUser:{userId:E}},configurableFormStore:{instanceInfo:k}}=Object(f.d)(t),{creatorUserId:z,instanceStatus:R,allowRevert:U,insteadCreator:B}=k||{},F=Object(s.useMemo)((()=>{if(!z||!R)return!1;var e=B?B.userId===E:z===E;return Boolean(U)&&e&&R===he.d.IN_PROCESS}),[z,E,R,U]),Y=Object(j.f)((e=>{var{configurableFormStore:r}=Object(f.d)(t);a.data.deleted=e,r.handleWidgetChange(a.id)})),Q=Object(j.f)((()=>{var{configurableFormStore:e}=Object(f.d)(t);a.data.deleted=!1,a.data.title="",a.data.token="",e.handleWidgetChange(a.id)})),G=Object(j.f)((e=>{var{emptyTitle:r}=e,i=Object(o.a)(e,be),{configurableFormStore:s}=Object(f.d)(t);a.data=Object(n.a)(Object(n.a)(Object(n.a)({},a.data),i),{},{title:i.title||r,emptyTitle:r}),s.handleWidgetChange(a.id)}));return Object(P.jsxs)(d.r,{className:v()(N.a.addWrapper,i),children:[T?Object(P.jsx)(u.a,{required:m,children:g}):Object(P.jsxs)(d.r,{className:N.a.title,children:[Object(P.jsx)(d.p,{selectable:!0,children:g}),me.d.enableStarterEditDoc&&F&&Object(P.jsx)(d.p,{className:N.a.editDoc,onClick:()=>{L(!0)},children:Object(b.t)("approval-mp_Edit Document_Button","编辑文档")})]}),T&&O?Object(P.jsx)(d.r,{className:N.a.deleted,children:Object(b.t)("widgets.cloudDoc.edit.deleted","文档被删除,请重新添加")}):null,I?Object(P.jsxs)(d.r,{className:N.a.add,onClick:()=>{Object(_.b)(M.f.CloudDocsAddClick,Object(te.b)(t)),te.a?S(!0):Object(l.showModal)({title:Object(b.t)("feishu_lark.PC.UpgradeBtn",{feishu:Object(b.t)(y.b)}),content:Object(b.t)("common.please_update_greater_or_equal",{version:"3.44.0",BRAND_DISPLAY_NAME:Object(b.t)(y.b)}),confirmText:Object(b.t)("common.go_update","去升级"),cancelText:Object(b.t)("ModalCancelText"),showCancel:!0,success(e){e.confirm&&tt.openSchema({schema:"https://www.".concat(y.f,"/download"),external:!0,success(e){ge("openSchemaSuccess",{func:"handleAddButtonClick",data:e})},fail(e){ge("openSchemaFail",{func:"handleAddButtonClick",data:e})},complete(e){ge("openSchemaComplete",{func:"handleAddButtonClick",data:e})}})}})},children:[Object(P.jsx)(d.g,{src:h.a,className:v()(N.a.addIcon,"add-approval__icon")}),Object(b.t)("widgets.cloudDoc.edit.add","添加文档")]}):null,C?Object(P.jsx)(A.a,{ctxId:t,data:a.data,isEdit:T,onDelete:Y,onRemove:Q,modalVisible:w,onCloseEditDocModal:()=>L(!1)}):null,T?Object(P.jsx)(p.a,{text:D}):null,x?Object(P.jsx)(ue,{visible:x,ctxId:t,onClose:()=>S(!1),onAdd:G}):null]})}))},function(e,t,a){"use strict";var r=a(3),i=a.n(r),n=a(1),o=a(8),s=a.n(o),c=(a(768),a(0)),l=i.a.memo((e=>{var{columns:t}=e;return Object(c.jsx)(n.r,{className:"header-wrapper",children:t.map((e=>Object(c.jsx)(n.r,{className:s()("cell-item",{small:e.isSmall,average:!e.isSmall}),children:Object(c.jsx)(n.p,{className:"cell-text",children:e.title})},e.dataIndex)))})})),d=a(251);class u extends r.Component{renderText(e){return Object(c.jsx)(n.r,{className:"cell-text",children:Object(c.jsx)(n.p,{children:e})})}renderSelect(e,t,a){var{onChange:r}=this.props,{range:i,value:n,showError:o=!1,placeholder:s="",disabled:l=!1}=e;return Object(c.jsx)(d.a,{placeholder:s||"",onChange:e=>r&&r(e,t,a),range:i,value:n,error:o,noBorder:!0,disabled:l})}render(){var{dataSource:e,columns:t}=this.props;return Object(c.jsx)(n.r,{children:e.length>=0?e.map(((e,a)=>Object(c.jsx)(n.r,{className:"body-wrapper",children:t.map((t=>{var r=t.isEdit?this.renderSelect(e[t.dataIndex],t.dataIndex,a):this.renderText(e[t.dataIndex]);return Object(c.jsx)(n.r,{className:s()("cell-item",{small:t.isSmall,average:!t.isSmall}),children:r},"".concat(e.key,"_").concat(t.dataIndex))}))},e.key))):null})}}t.a=i.a.memo((e=>{var{columns:t,dataSource:a,onChange:r}=e;return Object(c.jsxs)(n.r,{className:"approval-table",children:[Object(c.jsx)(l,{columns:t}),Object(c.jsx)(u,{columns:t,dataSource:a,onChange:r})]})}))},function(e,t,a){"use strict";var r=a(5),i=a(37),n=a(3),o=a(1),s=a(4),c=a(15),l=a(8),d=a.n(l),u=a(788),p=a.n(u),m=a(928),h=a.n(m),b=a(929),g=a.n(b),v=a(2),j=a(33),O=a(23),f=a(396),M=a(372),_=a(42),y=a(22),D=a(69),N=a(24),A=a(20),T=a(40),I=a(192),C=a(230),x=a(804);var S,w=function(e,t){var a,r=Object(n.useRef)(e);r.current=e;var i=null!==(a=null==t?void 0:t.wait)&&void 0!==a?a:1e3,o=function(e,t){var{current:a}=Object(n.useRef)({deps:t,obj:void 0,initialized:!1});return a.initialized&&function(e,t){if(e===t)return!0;for(var a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}(a.deps,t)||(a.deps=t,a.obj=e(),a.initialized=!0),a.obj}((()=>Object(x.a)((function(){return r.current(...arguments)}),i,t)),[]);return Object(n.useEffect)((()=>()=>{o.cancel()}),[]),{run:o,cancel:o.cancel,flush:o.flush}},L=a(30),E=a(269),k=a(465),z=a(162),R=a(12),P=a(17),U=a(52),B=a.n(U),F=a(533),Y=a(617),Q=a(0),G=["isTodoNav","isDoneNav","isCcNav","isCreateNav","isActive","departNames","userData","topic","isCombinaCard","defineCombinaUser","displayCombinaTitle","searchKey","className","onClick","isModify","isRevoke","assigneeUser"],W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\t|\n|\v|\r|\f|\u2028/g," ")};!function(e){e.UserAvatar="instance_submit_external_user_avatar",e.UserDepartment="instance_submit_external_department",e.UserName="instance_submit_external_user",e.CreateUser="external_initiator",e.Avatar="external_initiator_avatar",e.Department="external_initiator_department",e.Name="external_initiator_name"}(S||(S={}));var V=[S.Avatar,S.Department,S.Name,S.UserAvatar,S.UserDepartment,S.UserName],H=new Map([[y.a.Todo,Object(v.t)("Approval.Todo")],[y.a.Done,Object(v.t)("Approval.Done")],[y.a.CarbonCopy,Object(v.t)("Detail.FreeCCButton")],[y.a.Initiated,Object(v.t)("ListCreated")]]);t.a=Object(c.a)((e=>{var t,a,c,l,{DefinitionKey:u,DefinitionName:m,Title:b,DisplayFields:x,ProcessStatus:U,Timestamp:Z,isFlipOut:q,isNew:K,Attributes:J,DefinitionAvatarURL:X,isReaded:$,ID:ee,DisplayMethod:te,System:ae,batchOperateSelected:re,TaskStatus:ie}=e.cardInfo,{isTodoNav:ne,isDoneNav:oe,isCcNav:se,isCreateNav:ce,isActive:le,departNames:de,userData:ue,topic:pe,isCombinaCard:me,defineCombinaUser:he,displayCombinaTitle:be,searchKey:ge,className:ve,onClick:je,isModify:Oe,isRevoke:fe,assigneeUser:Me}=e,_e=Object(i.a)(e,G),ye="2"===(null===(t=J.find((e=>"b2b_flag"===e.Key)))||void 0===t?void 0:t.Value),De=null===(a=J.find((e=>"custom_title"===e.Key)))||void 0===a?void 0:a.Value,{indexStore:Ne,globalStore:Ae}=Object(n.useContext)(N.a),{todoStore:Te,searchStore:Ie}=Ne,{isBatchMode:Ce,changeBatchOperateSelectedOf:xe,changeNextBatchOperateSelectedOf:Se,baseStore:we,nextBatchSelectedSet:Le}=Te,{countTaskData:Ee}=we,ke=Ne.currentNav===y.a.Shared,ze=Object(n.useMemo)((()=>{var e;return"true"===(null===(e=J.find((e=>"blocked_cc_enable"===e.Key)))||void 0===e?void 0:e.Value)}),[J]),Re=Object(n.useMemo)((()=>{var t,a,r,i,{isDocBlockApproval:n,isRollbackToStart:o,isRejectTask:s,isHandling:c,requireUserInput:l,allowBatchOperate:d,extenalCanQuickApproval:p,isAdvisePending:m,batchOperateCheckDisabled:h}=e.cardInfo,b=(null==Ee||null===(t=Ee.Definitions)||void 0===t?void 0:t[u])||(null==Ee||null===(a=Ee.Definitions)||void 0===a?void 0:a["".concat(ae,":").concat(u)]),g=((null==Ee?void 0:Ee.Users)||{})[(null==b||null===(r=b.ManagerUserIDs)||void 0===r?void 0:r[0])||""]||(null===(i=Ae.appManagers)||void 0===i?void 0:i[0]);return{tooltip:n?Object(v.t)("BatchOperate.NotSupportBatch"):o?s?Object(v.t)("approval-mp_BatchProcessRejectedApproval_Desc"):Object(v.t)("BatchOperate.UnsupportedStartUser"):c?Object(v.t)("BatchOperate.UnsupportedHandling"):l?Object(v.t)("BatchOperate.UnsupportedRequireInput"):d?p?ze?Object(v.t)("approval-mp_NotSupportBatchProcess_Tooltip"):m?Object(v.t)("approval-mp_NoBatchProcessOpinionsRequest_Tooltip"):Object(v.t)("BatchOperate.Unsupported"):Object(v.t)("BatchOperate.UnsupportedApproveAction"):Object(v.t)("BatchOperate.BatchNotOpen_2"),tooltipFrontAdmin:"",tooltipBehindAdmin:"",admin:g,isAdminTooltip:!1,disabled:Boolean(h)}}),[Ee,ee,J,ae,u,Ae.appManagers]);Object(n.useEffect)((()=>{K&&q&&Object(j.s)(200).then((()=>{Object(s.s)((()=>{e.cardInfo.isFlipOut=!1}))}))}),[q,K]);var Pe="1"===(null===(c=J.find((e=>"previous_operate_type"===e.Key)))||void 0===c?void 0:c.Value),Ue="true"===(null===(l=J.find((e=>"is_start_user"===e.Key)))||void 0===l?void 0:l.Value),Be=()=>{Object(R.b)(P.f.ApprovalCardAvatarClick,{process_name:m})},Fe=()=>{if(!Ce)return null;if(Ae.fgBatchApprovalNext){var t=Le.has(e.cardInfo.ID);return Re.disabled||ye?Object(Q.jsx)(F.a,{textStyle:{maxWidth:270,wordBreak:"break-word",transform:"translate(100%, 0)",top:-10},arrowStyle:{top:8,left:Re.isAdminTooltip?-12:void 0},arrow:!0,tooltip:Re.tooltip,tooltipFrontAdmin:Re.tooltipFrontAdmin,tooltipBehindAdmin:Re.tooltipBehindAdmin,admin:Re.admin,isAdminTooltip:Re.isAdminTooltip,position:"right",children:Object(Q.jsx)(o.r,{className:B.a["checkbox-wrapper"],children:Object(Q.jsx)(D.b,{disabled:!0,style:{width:15},inputStyle:{borderRadius:4,overflow:"hidden"},value:"",checked:!1,shape:"square",size:"small"})})}):Object(Q.jsx)(o.r,{className:B.a["checkbox-wrapper"],children:Object(Q.jsx)(D.b,{style:{width:15},inputStyle:{borderRadius:4,overflow:"hidden"},value:"",disabled:ye,checked:t,shape:"square",size:"small"})})}return Object(Q.jsx)(o.r,{className:B.a["checkbox-wrapper"],children:Object(Q.jsx)(D.b,{style:{width:15},value:"",checked:re,shape:"square",size:"small"})})},Ye=(e,t)=>t.find((t=>t.Key===e)),Qe=()=>{var t,a,r;if(me)return Object(Q.jsx)(o.r,{className:B.a["user-wrapper"],children:Object(Q.jsx)(o.r,{className:B.a["name-wrapper"],children:"number"==typeof he?Object(v.t)("Card_Sponsor_Have",{count:he}):"".concat(he," ").concat(Object(v.t)("Card_Sponsor"))})});var i=null==J?void 0:J.some((e=>V.includes(e.Key)));if(i){var n,s,c,l,d,u=null==J?void 0:J.filter((e=>V.includes(e.Key)));if(Ye(S.Name,u))n=null===(c=Ye(S.Avatar,u))||void 0===c?void 0:c.Value,s=(null===(l=Object(j.o)((null===(d=Ye(S.Name,u))||void 0===d?void 0:d.Value)||""))||void 0===l?void 0:l[v.curLang])||"";else if(Ye(S.UserName,u)){var m,h;n=null===(m=Ye(S.UserAvatar,u))||void 0===m?void 0:m.Value,s=null===(h=Ye(S.UserName,u))||void 0===h?void 0:h.Value}return Object(Q.jsxs)(o.r,{className:B.a["user-wrapper"],children:[Object(Q.jsx)(o.r,{className:B.a["avatar-wrapper"],children:Object(Q.jsx)(o.g,{src:n||p.a,className:B.a["avatar-default"]})}),Object(Q.jsx)(o.r,{className:B.a["name-wrapper"],children:Object(Q.jsx)(_.a,{content:s||"",keyword:ge,isSingleLine:!0})})]})}var b=e.cardInfo.initiator||{name:null!==(t=null==ue?void 0:ue.Name)&&void 0!==t?t:"",avatar:null!==(a=null==ue?void 0:ue.AvatarURL)&&void 0!==a?a:"",userId:null!==(r=null==ue?void 0:ue.UserID)&&void 0!==r?r:""};return b.name&&Object(Q.jsxs)(o.r,{className:B.a["user-wrapper"],children:[Object(Q.jsx)(o.r,{className:B.a["avatar-wrapper"],children:b.avatar?Object(Q.jsx)(f.a,{width:18,height:18,userId:b.userId,url:b.avatar,onAvatarClick:Be}):Object(Q.jsx)(o.g,{src:p.a,className:B.a["avatar-default"]})}),Object(Q.jsx)(o.r,{className:B.a["name-wrapper"],children:Object(Q.jsx)(_.a,{content:b.name,keyword:ge,isSingleLine:!0})})]})},Ge=()=>{var t;if(ne&&Ae.enableQuicklyApproval&&!Ie.isSubSearch){var a="true"===(null==J||null===(t=J.find((e=>"require_approval_comment"===(null==e?void 0:e.Key))))||void 0===t?void 0:t.Value),i=[{actionName:Object(v.t)("Detail.AgreeButton"),actionType:L.b.AGREE,requireApprovalComment:a},{actionName:Object(v.t)("Detail.RejectButton"),actionType:L.b.REJECT,requireApprovalComment:a}];if(ae!==y.e.FeiShu){var n=null==J?void 0:J.find((e=>"action_configs"===(null==e?void 0:e.Key)));if(null==n||!n.Value)return;var s=(e=>{try{var t=JSON.parse(e);return t[v.curLang]||t}catch(t){return e}})(null==n?void 0:n.Value);i=s.slice(0,2).map((e=>({actionName:e.actionName,actionType:L.b.THIRD_PART,actionConfig:Object(r.a)(Object(r.a)({},e),{},{requireApprovalComment:a})}))),i=Object(E.e)(i)}return Object(Q.jsx)(o.r,{className:B.a["action-wrapper"],children:i.map((t=>{var a,r,i;return Object(Q.jsx)(o.r,{className:B.a["action-btn"],children:Object(Q.jsx)(D.a,{danger:[t.actionType,null==t||null===(a=t.actionConfig)||void 0===a?void 0:a.actionType].includes(L.b.REJECT),info:[t.actionType,null==t||null===(r=t.actionConfig)||void 0===r?void 0:r.actionType].includes(L.b.AGREE)||[t.actionType,null==t||null===(i=t.actionConfig)||void 0===i?void 0:i.actionType].includes(L.b.APPROVE),onClick:a=>{e.onCardBtn&&e.onCardBtn({buttonConfig:t,cardInfo:e.cardInfo}),a.stopPropagation()},children:t.actionName},t.actionType)},t.actionType)}))})}},We=Object(n.useMemo)((()=>((e,t,a)=>{if(t&&a)return{type:"combina_card_reminder",value:a};var r=e.find((e=>"process_risk"===e.Key));if(r){var i=JSON.parse(r.Value).risks.map((e=>e.risk_name[v.curLang])).join(Object(v.t)("ChineseComma"));return{type:"overdue-reminder",value:Object(v.t)("list.overdue_reminder1",{risks:i})}}var n=e.find((e=>"percentile"===e.Key));return n?{type:"efficiency",value:Object(v.t)("ApprovalEfficiency.AfterRate",{rate:n.Value})}:null})(J,me,b)),[J,me,b]),Ve=Object(n.useMemo)((()=>H.get(Ne.currentNav)||""),[Ne.currentNav]),He=()=>{var e="",t={},a=Object(z.b)((null==Me?void 0:Me.UserID)||"",(null==Me?void 0:Me.Name)||"",{color:"#3370ff",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderBottom:"none",flex:"unset",margin:0,fontSize:"12px"}),r=J.some((e=>{var{Key:t}=e;return"instance_instead_submit_user"===t})),i=e=>Object(Q.jsx)(o.p,{className:B.a["subordinate-normal-text"],space:"nbsp",children:e});switch(Ne.currentNav){case y.a.Todo:case y.a.Done:e="search.whoesTask",t={user:a,topic:i(Ve)};break;case y.a.CarbonCopy:e="search.ccSomeone",t={user:a};break;case y.a.Initiated:e=r?"AdjustRequesterStyle.ProxyBy":"search.submittedBy",t={name:a};break;default:e=""}return t=Object.assign(t,{renderRestText:i}),Object(Q.jsx)(o.r,{className:d()(B.a["subordinate-wrapper"]),onClick:e=>{e.stopPropagation()},children:Object(k.a)(e,t)})},{run:Ze}=w((()=>{Object(A.h)(["pc_home","cardclick"],{useCacheTime:!0}),Ce?Ae.fgBatchApprovalNext?Re.disabled||ye||Se(e.cardInfo):xe(e.cardInfo):e.onClick({footerInfo:We})}),{wait:500,trailing:!1}),qe=Ae.enableQuicklyApproval&&!Ce;return Object(Q.jsx)(o.r,Object(r.a)(Object(r.a)({className:d()("index".concat(ee),B.a["card-content"],{[B.a.enhanced]:Ae.enhancedApprovalList,[B.a["flip-out"]]:Boolean(q)},ve)},_e),{},{children:Object(Q.jsx)(o.r,{onClick:Ze,className:d()(se?se?pe!==O.i.UnreadNotice||$?le?d()(B.a["card-wrapper"],B.a["cc-read"],B.a.readed,B.a["is-active"]):d()(B.a["card-wrapper"],B.a["cc-read"],B.a.readed):le?d()(B.a["card-wrapper"],B.a["cc-read"],B.a.unread,B.a["is-active"]):d()(B.a["card-wrapper"],B.a["cc-read"],B.a.unread):void 0:le&&!Ce?d()(B.a["card-wrapper"],B.a.normal,B.a["is-active"]):d()(B.a["card-wrapper"],B.a.normal),{[B.a["quick-modal"]]:qe&&!Ue,[B.a["quick-card-border"]]:qe}),children:Object(Q.jsxs)(o.r,{className:d()(B.a.content),children:[(()=>{var e,t;if(me)return Object(Q.jsxs)(o.r,{className:B.a["header-wrapper"],children:[Fe(),Object(Q.jsxs)(o.r,{className:B.a["left-wrapper"],children:[Boolean(K)&&pe!==O.i.ReadNotice&&Object(Q.jsx)(o.r,{className:B.a["red-dot"]}),X&&Object(Q.jsx)(o.r,{className:B.a["defineimg-wrapper"],children:Object(Q.jsx)(o.g,{src:X,className:B.a["definition-image"]})}),Object(Q.jsx)(o.r,{className:B.a.definename,children:Object(Q.jsx)(_.a,{content:be||"",keyword:ge,isSingleLine:!0})})]})]});var a=Ae.enableShowCrossTenant&&"true"===(null===(e=J.find((e=>"from_external_tenant"===e.Key)))||void 0===e?void 0:e.Value),r="Notice"===(null===(t=J.find((e=>"instance_overtime_stage"===e.Key)))||void 0===t?void 0:t.Value)&&U!==O.f.Terminated;return Object(Q.jsxs)(o.r,{className:B.a["header-wrapper"],children:[Fe(),Object(Q.jsxs)(o.r,{className:B.a["left-wrapper"],children:[Object(Q.jsxs)(o.r,{style:{display:"flex",alignItems:"center",width:"100%"},children:[Boolean(K)&&pe!==O.i.ReadNotice&&Object(Q.jsx)(o.r,{className:B.a["red-dot"]}),Object(Q.jsx)(o.r,{className:De?B.a["custom-title-definename"]:B.a.definename,children:Object(Q.jsx)(_.a,{content:(()=>{var e=[y.e.FeiShu,y.e.external].includes(ae)&&b?b:m;return(ce?fe&&U===O.f.Running:oe?fe&&U!==O.f.Canceled:fe)?Object(v.t)("ApprovalList_CanceledPrefix",{name:W(e)}):"".concat(W(e)).concat(Oe?Object(v.t)("Brackets",{innerText:Object(v.t)("ModifyTag")}):"")})()||"",keyword:ge,isSingleLine:!0})})]}),De&&Object(Q.jsx)(o.r,{className:B.a["custom-title"],children:Object(Q.jsx)(_.a,{className:B.a["highlight-wrap-single"],content:De||"",keyword:ge,isSingleLine:!0})})]}),Object(Q.jsxs)(o.r,{style:{marginTop:4,display:"flex"},children:[!(ne||ke)&&Object(Q.jsx)(I.c,{size:"extra-small",type:"process",status:U}),(ne||ce)&&r&&Object(Q.jsx)(I.c,{size:"extra-small",type:"process",status:O.f.TaskTimeover,style:{marginLeft:4}}),a&&Object(Q.jsx)(C.a,{size:"extra-small",className:B.a["external-tag"]}),ze&&Object(Q.jsx)(Y.a,{size:"extra-small",className:B.a["important-cc-tag"],children:Object(v.t)("approval-mp_ImportantCC_Tag")})]})]})})(),(()=>{var e=x.filter((e=>"UserDepartment"!==e.Key)).slice(0,3);if(Ae.enhancedApprovalList&&!e.some((e=>""!==e.Key)))return Object(Q.jsx)(o.r,{className:d()(B.a["external-wrapper"],[B.a.enhanced]),children:e.map((e=>e.Value&&Object(Q.jsx)(_.a,{content:e.Value,keyword:ge})))});if(b&&![y.e.FeiShu,y.e.external].includes(ae)&&!me){var t=W(b);return Object(Q.jsx)(o.r,{className:B.a["external-wrapper"],children:Object(Q.jsx)(_.a,{content:t,keyword:ge})})}return null==e?void 0:e.map((t=>{if(!t.Key&&!t.Value)return null;var a=!(1!==e.length||t.Key&&t.Value);return Object(Q.jsxs)(o.r,{className:B.a["field-wrapper"],children:[t.Key&&Object(Q.jsx)(o.r,{className:B.a["left-wrapper"],children:Object(Q.jsx)(_.a,{content:t.Key||"",keyword:ge,isSingleLine:!0})}),t.Key&&t.Value&&Object(Q.jsx)(o.r,{className:B.a["field-colon"],children:""}),t.Value&&Object(Q.jsx)(o.r,{className:d()(B.a["right-wrapper"],{[B.a["single-field-wrapper"]]:a}),children:Object(Q.jsx)(_.a,{content:W(t.Value)||"",keyword:ge,isSingleLine:!a})})]},t.Key)}))})(),(()=>{var t,a=Z?Object(M.a)(Z):"-",r=null==J?void 0:J.some((e=>"is_agent"===(null==e?void 0:e.Key))),i="6"===(null===(t=J.find((e=>{var{Key:t}=e;return"node_origin_type"===t})))||void 0===t?void 0:t.Value),n=null==J?void 0:J.some((e=>"is_pre_approve"===(null==e?void 0:e.Key)&&"true"===(null==e?void 0:e.Value))),s=null==J?void 0:J.some((e=>"is_pre_approve_success"===(null==e?void 0:e.Key)&&"true"===(null==e?void 0:e.Value))),c=Object(M.b)(1e3*Number(Z)),l=Ne.searchStore.showCardFooterStaff&&(null==Me?void 0:Me.UserID),u=e.cardInfo.initiator;return Object(Q.jsxs)(o.r,{className:B.a["foot-content"],children:[Object(Q.jsx)(o.r,{className:B.a["left-wrapper"],children:l?He():Qe()}),Object(Q.jsxs)(o.r,{className:B.a["right-wrapper"],children:[te===O.b.Sidebar&&!Ae.enableQuicklyApproval&&Object(Q.jsx)(T.c,{arrow:!0,text:Object(v.t)("Card_Tip_Sidebar"),position:u?"left":"top",children:Object(Q.jsx)(o.r,{className:B.a["agent-wrapper"],children:Object(Q.jsx)(o.g,{src:h.a,style:{width:12,height:12}})})}),te===O.b.Browser&&Object(Q.jsx)(T.c,{arrow:!0,text:Object(v.t)("Card_Tip_Browser"),children:Object(Q.jsx)(o.r,{className:B.a["agent-wrapper"],children:Object(Q.jsx)(o.g,{src:g.a,style:{width:12,height:12}})})}),(te===O.b.Sidebar&&!Ae.enableQuicklyApproval&&!u||te===O.b.Browser)&&Object(Q.jsx)(o.r,{className:B.a["vertical-line"]}),Ue&&Pe&&Object(Q.jsx)(T.c,{arrow:!0,text:Object(v.t)("approval-mp_RejectAndSendToSubmitter_Desc"),children:Object(Q.jsx)(o.r,{className:B.a["tag-label"],children:Object(v.t)("Detail.Rejected")})}),Ue&&!Pe&&Object(Q.jsx)(T.c,{arrow:!0,text:Object(v.t)("Card_Tip_Rollback"),children:Object(Q.jsx)(o.r,{className:B.a["tag-label"],children:Object(v.t)("Rollback.Rollback")})}),r&&Object(Q.jsx)(T.c,{arrow:!0,text:i?Object(v.t)("approval-mp_Handlerdelegation_Desc"):Object(v.t)("Card_Tip_Agent"),children:Object(Q.jsx)(o.r,{className:B.a["tag-label"],children:Object(v.t)("list.card_agent")})}),n&&Object(Q.jsx)(T.c,{arrow:!0,text:Object(v.t)("Card_Tip_PreApprove"),children:Object(Q.jsx)(o.r,{className:B.a["tag-label"],children:Object(v.t)("list.card_pre_approve")})}),s&&Object(Q.jsx)(T.c,{arrow:!0,text:Object(v.t)("Card_Tip_SuccessPreApprove"),children:Object(Q.jsx)(o.r,{className:B.a["tag-label"],children:Object(v.t)("list.card_pre_approve_success")})}),(Ue||r||n||s)&&Object(Q.jsx)(o.r,{className:B.a["vertical-line"]}),ne&&Object(Q.jsx)(T.c,{textStyle:c===Object(v.t)("JustNow")?{left:"-7px"}:{},arrowStyle:c===Object(v.t)("JustNow")?{left:"71%"}:{},arrow:!0,text:a,children:Object(Q.jsx)(o.r,{className:d()(B.a["time-wrapper"],{[B.a["todo-wrapper"]]:Object(M.c)(1e3*Number(Z))}),children:c})}),oe&&Object(Q.jsx)(o.r,{className:B.a["time-wrapper"],children:ie===O.h.Todo||"oa"===ae&&ie===O.h.Processing?Object(v.t)("BatchOperate.Processing"):Object(v.t)("list.card_handle_time",{time:a})}),se&&Object(Q.jsx)(o.r,{className:B.a["time-wrapper"],children:Object(v.t)("list.card_reach_time",{time:a})}),(ce||ke&&!u)&&Object(Q.jsx)(o.r,{className:B.a["time-wrapper"],children:Object(v.t)("list.card_create_time",{time:a})})]}),Ge()]})})(),Ie.shouldLoading||Ne.underCeoNav?null:We?Object(Q.jsx)(o.r,{className:d()(B.a["reminder-wrapper"]),children:We.value}):null]})})}))}))},,function(e,t,a){"use strict";a.d(t,"b",(function(){return h})),a.d(t,"a",(function(){return b}));var r=a(9),i=a(5),n=a(196),o=new Set([99991641,99991642,99991643]),s=a(20),c=a(44),l=Object(s.c)("shared:src/utils/file.ts");function d(e,t){return new Promise(((a,r)=>{var o=Object(i.a)(Object(i.a)({},e),{},{header:Object(i.a)(Object(i.a)({},e.header),n.a)}),s=tt.uploadFile(Object(i.a)(Object(i.a)({},o),{},{success:t=>{l("fileTTuploadSuccess",Object(i.a)(Object(i.a)({},e),t)),a(t)},fail:t=>{l("fileTTuploadFail",Object(i.a)(Object(i.a)({},e),{},{errorMsg:Object(c.a)(t)})),r(t)}}));null==t||t(s)}))}function u(e){try{return"string"==typeof e?JSON.parse(e):e}catch(t){return l("commonOnError",{message:"parse JSON error",location:"shared src/utils/file.ts safeParseJSON",errorMsg:Object(c.a)(t)}),e}}function p(e){return m.apply(this,arguments)}function m(){return m=Object(r.a)((function*(e){var{options:t,onTaskChange:a,login:r,retried:n=!1}=e;try{var s=yield d(t,a),{code:m}=u(s.data)||{};if(0!==m){var h=o.has(m);if(h&&(l("fileTTuploadAndRetryFail",{retried:Number(n),options:t,isSessionError:Number(h),res:s}),!n))return yield r(),yield p(Object(i.a)(Object(i.a)({},e),{},{retried:!0}));throw s}return l("fileTTuploadAndRetrySuccess",{retried:Number(n),options:t,res:s}),s}catch(e){throw l("fileTTuploadAndRetryFail",{retried:Number(n),options:t,errorMsg:Object(c.a)(e)}),e}})),m.apply(this,arguments)}function h(e){return p(Object(i.a)(Object(i.a)({},e),{},{retried:!1}))}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{basename:t,extension:a}=g(e),r=Date.now().toString(36),i=["".concat(t.substring(0,100),"_").concat(r),a].filter(Boolean).join(".");return v(i)}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.lastIndexOf(".");return-1===t?{basename:e,extension:""}:{basename:e.slice(0,t),extension:e.slice(t+1,e.length).toLowerCase().replace(/\?.*$/,"")}}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[\\/:*?"<>|]/g,"_")}},,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return y}));var r=a(9),i=a(6),n=a(3),o=a(19),s=a.n(o),c=a(1),l=a(14),d=a(33),u=a(2),p=a(69),m=a(25),h=a(265),b=a(35),g=a(36),v=a(138),j=a(29),O=a(12),f=a(17),M=(a(1248),a(0));class _ extends n.Component{constructor(){super(...arguments),Object(i.a)(this,"list",[])}getSizeStr(e){var t=1048576;return e>=t?"".concat((e/t).toFixed(1),"mb"):"".concat((e/1024).toFixed(1),"kb")}previewAndDownload(e){var t=this;return Object(r.a)((function*(){var{type:a,previewUrl:r,url:i,name:n}=e,{list:o}=t;if(a===j.h.IMG)b.b.previewImage({urls:o.filter((e=>e.type===j.h.IMG)).map((e=>e.previewUrl)),current:r});else try{Object(g.d)({url:i,name:n})}catch(e){b.b.showToast({title:Object(u.t)("Detail.PreviewFileFailed"),icon:"error",duration:3e3}),Object(O.b)(f.f.ApprovalError,{location:"in function previewAndDownload at src/components/flow-timeline/components/file-list/index.tsx",message:JSON.stringify(e)})}}))()}render(){var{files:e}=this.props;return this.list=Object(v.b)(e),Object(M.jsx)(c.r,{className:"file-list-container",children:this.list.map(((e,t)=>Object(M.jsx)(c.r,{className:"item",style:{border:e.type!==j.h.IMG?"none":"0.5px solid rgba(187, 191, 196, 0.5)"},onClick:()=>{this.previewAndDownload(e)},children:e.type===j.h.IMG?Object(M.jsx)(c.r,{className:"img-wrapper",children:Object(M.jsx)(c.g,{src:e.thumbUrl,mode:"aspectFill",style:{width:"76px",height:"76px",borderRadius:"8px"}})}):Object(M.jsxs)(c.r,{className:"attachment",children:[Object(M.jsx)(c.g,{src:e.thumbUrl,mode:"aspectFill",style:{width:"100%",height:"42px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",display:"block"}}),Object(M.jsxs)(c.r,{className:"attachment-info",children:[Object(M.jsx)(c.r,{className:"name",children:e.name}),Object(M.jsx)(c.r,{className:"size",children:this.getSizeStr(e.size)})]})]})},t)))})}}a(1249);class y extends n.Component{constructor(e){var t;super(e),t=this,Object(i.a)(this,"state",{expand:!1,displayText:"",text:"",files:[]}),Object(i.a)(this,"updateDisplayText",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{text:a}=t.state,r=e?a:a.slice(0,500);t.setState({displayText:r,expand:e})})),Object(i.a)(this,"renderDeleteBtn",(()=>{var{data:e,onDelete:t=(()=>0)}=this.props;if(null==e||!e.commentator)return null;var{commentator:a,isDelete:r,id:i}=e,{userId:n}=m.d.currentUser;return Boolean(r)||a.UserId!==n?null:Object(M.jsx)(p.a,{className:"comment-delete-btn",ghost:!0,bordered:!1,size:"small",style:{width:"54px",height:"26px",fontSize:"14px",borderRadius:"6px",color:"#646A73"},icon:Object(M.jsx)(c.p,{className:"iconfont icon-delete1"}),onClick:()=>t(i),children:Object(u.t)("PC.DeleteBtn")})})),Object(i.a)(this,"renderTextComment",(()=>{var{withQuote:e=!0,data:t}=this.props,{expand:a,text:r,displayText:i}=this.state,{atInfoList:n}=null!=t?t:{};return Object(M.jsxs)(c.a,{children:[Object(M.jsx)(h.a,{text:i,reminders:n,withQuote:e}),r.length>500&&Object(M.jsx)(c.r,{onClick:()=>{this.updateDisplayText(!a)},className:"expand",children:a?Object(u.t)("Detail_Comment_fold"):Object(u.t)("Detail_Comment_unfold")})]})}));var{content:a}=e,r=(a&&a.text?a.text:"").trimRight(),n=a&&a.files?a.files:[],o=r.slice(0,500);this.state={displayText:o,text:r,files:n,expand:!1}}render(){var{data:e,isLastComment:t,ctxId:a,fullWidth:i,commentTitle:n}=this.props,{text:o,files:p}=this.state,{isDelete:m,updateTime:h}=null!=e?e:{};if(t){var{detailModalStore:b}=Object(l.d)(a);b.getLastCommentRect=Object(r.a)((function*(){return new Promise(((e,t)=>{s.a.createSelectorQuery().select(".last-comment").boundingClientRect((function(a){a?e(a):t()})).exec()}))}))}return o.length||p.length?Object(M.jsxs)(c.r,{className:"comment-container ".concat(t?"last-comment":""," ").concat(m?"deleted":""," ").concat(i?"full-width":""),id:"".concat(t?"last-comment":""),children:[n&&Object(M.jsx)(c.r,{className:"comment-title",children:n}),m?Object(M.jsx)(c.p,{className:"deleted-comment-tip",children:Object(u.t)("Comment.delete.tip",{time:Object(d.v)(h,"YYYY-MM-DD hh:mm:ss")})}):Object(M.jsxs)(c.a,{children:[this.renderTextComment(),o.length>0&&p.length>0&&Object(M.jsx)(c.r,{className:"gap"}),p.length>0&&Object(M.jsx)(_,{files:p}),this.renderDeleteBtn()]})]}):null}}},function(e,t,a){"use strict";var r=a(9),i=a(3),n=a(19),o=a.n(n),s=a(8),c=a.n(s),l=a(10),d=a(14),u=a(144),p=a(684),m=a(697),h=a(475),b=a(1),g=a(36),v=a(16),j=a(29),O=a(2),f=a(15),M=a(662),_=a(12),y=a(24),D=a(100),N=a(17),A=a(440),T=a.n(A),I=a(47),C=a(700),x=a(40),S=a(311),w=a.n(S),L=a(686),E=a(0),k=e=>{var t,{onHelpdesk:a,onRefresh:r,onPrint:i,onShare:n,title:o,enableQuicklyApproval:s=!1,disabled:l,hidden:d,listCard:u}=e,p=Boolean(null==u||null===(t=u.URLs)||void 0===t?void 0:t.regulation),m=[{onClick:a,disabled:null==l?void 0:l.helpdesk,position:"bottom",text:Object(O.t)("PC.BarHelpdesk"),iconfont:"icon-kefu",visible:!(null!=d&&d.helpdesk)},{onClick:r,disabled:null==l?void 0:l.refresh,position:"bottom",text:Object(O.t)("PC.BarRefresh"),iconfont:"icon-shuaxin",visible:!(null!=d&&d.refresh)},{onClick:i,disabled:null==l?void 0:l.print,position:"bottom",text:Object(O.t)("PC.BarPrint"),iconfont:"icon-dayin",visible:!(null!=d&&d.print)},{onClick:n,disabled:null==l?void 0:l.share,position:s?"left":"bottom",text:Object(O.t)("PC.BarShare"),iconfont:"icon-fenxiang",visible:!(null!=d&&d.share)}];return Object(E.jsxs)(b.r,{className:w.a["detail-headbar"],children:[Object(E.jsx)(b.r,{className:w.a["detail-headbar-content"],children:o}),p&&Object(E.jsxs)(b.r,{className:w.a["detail-headbar-regulation"],children:[Object(E.jsx)(L.a,{taskData:u}),Object(E.jsx)(b.r,{className:w.a.split},"split1")]}),Object(E.jsx)(b.r,{className:w.a["detail-headbar-btns"],children:m.filter((e=>e.visible)).map((e=>Object(E.jsx)(b.r,{className:c()(w.a.icon,{[w.a.disabled]:e.disabled}),onClick:t=>{var a;e.disabled||null===(a=e.onClick)||void 0===a||a.call(e,t)},children:Object(E.jsx)(x.c,{position:e.position,arrow:!0,text:e.text,children:Object(E.jsx)(b.r,{className:c()("iconfont",e.iconfont,w.a["icon-image"],{[w.a.disabled]:e.disabled})})})},e.iconfont)))})]})},z=a(383),R=a.n(z),P=a(75);t.a=Object(f.a)((e=>{var t,a,{data:n,onFinished:s,isDetailFullWindow:f,onDetailFullWindow:A,forAtEdit:x,refreshAt:S,isQuickApproval:w}=e,L=Object(i.useRef)(null),z=n,U=Object(i.useMemo)((()=>{var{userStore:e}=d.a;return{userStore:e,configurableFormStore:new u.c({userStore:e}),detailModalStore:new p.a}}),[]),B=Object(i.useMemo)((()=>Object(d.c)(d.a,U,{})),[U]),{globalStore:F,indexStore:Y}=Object(y.c)();Object(i.useEffect)((()=>{var e,{configurableFormStore:t}=U;t.setParentId(z.parentId),t.fetchInstance({id:z.id,parentId:z.parentId,subordinateID:Y.searchStore.isSubSearch?null===(e=z.listCard)||void 0===e?void 0:e.AssigneeID:void 0,shareCode:z.shareCode})}),[U,z]),Object(i.useEffect)((()=>{D.a.use().AddBeforeClose((()=>new Promise((e=>{U.configurableFormStore.hasManualChangeForm?tt.showModal({title:"",content:Object(O.t)("At_drawer_notSaveTip"),success:t=>{var{confirm:a}=t;e(a)},fail:()=>e(!0)}):e(!0)}))))}),[U.configurableFormStore.hasManualChangeForm]),Object(i.useEffect)((()=>(Object(P.h)(),()=>{Object(P.b)()})),[]);var Q=null!=n&&n.shouldHideHeader?null:Object(E.jsx)(i.Fragment,{children:Object(E.jsx)(k,{title:Object(E.jsx)(M.a,{ctxID:B,tooltipPosition:"bottom",style:{position:"relative",left:-4}}),onHelpdesk:()=>{tt.openSchema({schema:n.helpdeskURL,external:!0})},onRefresh:()=>{var e,{configurableFormStore:t}=U;t.setInstanceLoading(),setTimeout((()=>{var e;t.setParentId(z.parentId),t.fetchInstance({id:z.id,parentId:z.parentId,subordinateID:Y.searchStore.isSubSearch?null===(e=z.listCard)||void 0===e?void 0:e.AssigneeID:void 0,shareCode:z.shareCode})}),1e3),o.a.eventCenter.trigger("retrieve-doc-edit-auth",null==t||null===(e=t.instanceInfo)||void 0===e?void 0:e.instanceId)},enableQuicklyApproval:F.enableQuicklyApproval,onPrint:e=>{var t;return null===(t=L.current)||void 0===t?void 0:t.handlePrintBtnClick(e)},onShare:()=>{l.a.error("share",z),Promise.resolve().then(Object(r.a)((function*(){var e;if(!U.configurableFormStore.instanceInfo)return new Error("configurableFormStore.instanceInfo is null");var{instanceShareOption:t,instanceId:a}=U.configurableFormStore.instanceInfo,r={query:Y.searchStore.isSubSearch?{subordinateID:null===(e=z.listCard)||void 0===e?void 0:e.AssigneeID}:{}};if(t===j.i.RELATED){var i=yield U.detailModalStore.shareModal({ctxId:B});return v.c.instanceshare({userIds:i&&(null==i?void 0:i.map((e=>e.id)))||[],instanceId:a,chatIds:[]},r)}var n=yield Object(g.b)({ignoreBot:!0,multiSelect:!0,externalChat:!1,allowCreateGroup:!1}),o=n&&n.data&&n.data.map?n.data.map((e=>e.id)):[];return v.c.instanceshare({userIds:[],chatIds:o,instanceId:a},r)}))).then((e=>{e&&(o.a.showToast({title:Object(O.t)("Transmit_Success"),duration:3e3}),Object(_.b)("approval_click",{target:"share_button"}))})),Y.searchStore.isSubSearch&&Object(_.b)(N.f.SearchViewSubsLeaderAction,{leader_click:"share"})},isDetailFullWindow:f,onDetailFullWindow:A,disabled:{share:(()=>{var e,t=U.configurableFormStore.instanceInfo;return!(!1!==(null==t?void 0:t.isRelatedUser)||Boolean(null==t||null===(e=t.instanceOperation)||void 0===e?void 0:e.allowShare))&&!Y.searchStore.isSubSearch})()},hidden:{share:(null===(t=U.configurableFormStore.instanceInfo)||void 0===t?void 0:t.instanceStatus)===I.d.CLEARED},listCard:n.listCard})});return Object(E.jsxs)(b.r,{className:c()(R.a["detail-wrapper"],"detail-wrapper"),children:[Q,Object(E.jsx)(b.r,{className:R.a["detail-content"],children:Object(E.jsx)(C.a,{ref:L,aid:z.id,ctxId:B,cardId:(null===(a=z.listCard)||void 0===a?void 0:a.ID)||"",shareCode:z.shareCode,shouldShowSerialID:z.shouldShowSerialID,forAtEdit:x,refreshAt:S,isQuickApproval:w,onFinished:e=>{var t,a,{configurableFormStore:r}=U;"function"!=typeof s?(r.setParentId(z.parentId),r.fetchInstance({id:z.id,parentId:z.parentId,subordinateID:Y.searchStore.isSubSearch?null===(t=z.listCard)||void 0===t?void 0:t.AssigneeID:void 0,shareCode:z.shareCode})):s(e,{isEditable:Boolean(null===(a=r.writableWidgetIdSet)||void 0===a?void 0:a.size)})}})}),F.fgBatchApprovalNext&&U.configurableFormStore.showBatchingMask&&Object(E.jsxs)(b.r,{className:R.a["detail-mask"],children:[Object(E.jsx)(b.g,{src:T.a,className:R.a["detail-mask-icon"],mode:"widthFix"}),Object(E.jsx)(b.r,{className:R.a["detail-mask-text"],children:Object(O.t)("BatchOperate.DoNotRepeat")}),Object(E.jsx)(b.r,{className:R.a["detail-mask-button"],onClick:()=>{U.configurableFormStore.setShowBatchingMask(!1)},children:Object(O.t)("BatchOperate.ViewDetail")})]}),Object(E.jsx)(m.a,{ctxId:B}),(null==U?void 0:U.configurableFormStore.instanceLoading)&&Object(E.jsx)(b.r,{className:R.a.loading,children:Object(E.jsx)(h.a,{})})]})}))},function(e,t,a){"use strict";var r=a(1),i=a(3),n=a(2),o=a(475),s=a(940),c=a.n(s),l=a(941),d=a.n(l),u=a(942),p=a.n(u),m=a(943),h=a.n(m),b=a(944),g=a.n(b),v=a(945),j=a.n(v),O=a(10),f=a(17),M=a(23),_=a(12),y=a(40),D=a(299),N=a(147),A=a(24),T=a(380),I=a(20),C=a(726),x=a(81),S=a(120),w=a.n(S),L=a(206),E=a(0),k={color:"#3370ff",cursor:"pointer"};function z(e,t,a,i){return e?Object(n.t)("PC.BarTitle",{Source:"OA"}):i||(a?t?Object(E.jsxs)(r.p,{children:[Object(n.t)("PC.BarTitle"),Object(E.jsx)(r.p,{style:k,onClick:()=>{t&&tt.openSchema({schema:t,external:!0})},children:a})]}):i||Object(n.t)("PC.BarTitle",{Source:a}):"")}var R=a(688),P=a(686),U=a(67),B=Object(I.c)("pc:src/pc-pages/index/components/detail-module/iframe-webview/index.tsx"),F=(e,t)=>{var a,r=null===(a=e.detail)||void 0===a?void 0:a.channel;N.a.setChannel(t,r)};t.a=Object(i.memo)((e=>{var t,a,s,{data:l,jumpOut:u,onFinished:m,handleAction:b,onPreventAutoNext:v,onDetailFullWindow:I,hidden:S,isShowCommentBtn:k,isShowCommentGuide:Y,setShowCommentBtn:Q,setShowCommentGuide:G,channelPrefix:W="",showSubDetailTips:V,setForceOpen:H,assigneeUser:Z}=e,[q,K,J]=Object(D.a)(!0),[X,$,ee]=Object(D.a)(0),[,te,ae]=Object(D.a)(!1),[re,ie]=Object(i.useState)(""),[ne,oe]=Object(i.useState)(!0),{globalStore:se}=Object(i.useContext)(A.a),{enable_external_iframe:ce}=null!==(t=se.userConfig)&&void 0!==t?t:{},[le,de]=Object(i.useState)((()=>{var e=new URL(x.e[0]),{userId:t}=se.currentUser;return t&&e.searchParams.set("approval_user_id",t),e.toString()})),[ue,pe]=Object(i.useState)(!S),me=z(se.isHiddenSource,(null==l||null===(a=l.listCard)||void 0===a?void 0:a.URLs.system_pc)||(null==l||null===(s=l.listCard)||void 0===s?void 0:s.URLs.system_mobile),null==l?void 0:l.sourceName);Object(i.useEffect)((()=>{S||pe(!0)}),[S]),Object(i.useEffect)((()=>{if(l){if(ee.current+=1,!se.isBytedance||!x.e.find((e=>l.webviewInfo.url.includes(e))))return oe(!1),void ie(Object(x.c)(l,ee.current));if(oe(!0),null==Q||Q(!1),ae.current)return B("iframeSwitchRouter",{openUrl:l.webviewInfo.url}),void N.a.transferMessage({type:"switchRouter",openUrl:l.webviewInfo.url},N.a.getChannel("".concat(W,"oa")));de(Object(x.c)(l,ee.current,se.currentUser.userId))}}),[l]),Object(i.useEffect)((()=>{if(l){var e=Object(x.c)(l,X);ne?de(e):ie(e)}}),[X]);var he=()=>{$(ee.current+1)},be=()=>{null==G||G(!1),N.a.transferMessage({type:"onFinishCommentGuide"},N.a.getChannel("".concat(W,"oa")))};Object(i.useEffect)((()=>{K(!0),setTimeout((()=>{J.current&&B("iframeLoadingTimeout",l||void 0),K(!1)}),2e3)}),[l]),Object(i.useEffect)((()=>{var e=e=>{var{channel:t,data:a}=e;N.a.hasChannel(t)&&(L.a.commitMsg("iframe",a),Object(C.a)(a,{active:l,jumpOut:u,onFinished:m,handleAction:b,onPreventAutoNext:v,setLoading:K,doRefresh:he,setPreventSrcChange:te,setShowCommentBtn:Q,setShowCommentGuide:G,onDetailFullWindow:I}).then((e=>{N.a.transferMessage(e,t)})).catch((e=>{N.a.transferMessage(e,t)})))};return N.a.onTransferMessage(e),()=>{N.a.offTransferMessage(e)}}),[l,u,m,v]);var ge=se.isBytedance&&le;if(ge&&Object(U.a)("can-create-oa-iframe"),!ue)return null;ge&&(Object(U.a)("start-create-oa-iframe"),Object(U.a)("start-create-container"));var ve=[{render:()=>Object(E.jsx)(P.a,{taskData:null==l?void 0:l.listCard}),canShow:()=>{var e,t;return Boolean(null==l||null===(e=l.listCard)||void 0===e||null===(t=e.URLs)||void 0===t?void 0:t.regulation)}},{render:()=>Object(E.jsx)(r.r,{className:w.a.split},"split1"),canShow:()=>{var e,t;return Boolean(null==l||null===(e=l.listCard)||void 0===e||null===(t=e.URLs)||void 0===t?void 0:t.regulation)}},{render:()=>Object(E.jsxs)(r.r,{style:{position:"relative"},children:[Object(E.jsx)(r.r,{className:w.a.icon,onClick:()=>{if(N.a.transferMessage({type:"onClickCommentBtn"},N.a.getChannel("".concat(W,"oa"))),l)try{var e,t,a,r,i,n;Object(_.b)(f.f.ApprovalDetailComment,{DisplayMethod:M.b.Normal,TaskStatus:null===(e=l.listCard)||void 0===e?void 0:e.TaskStatus,ProcessStatus:null===(t=l.listCard)||void 0===t?void 0:t.ProcessStatus,SourceName:null===(a=l.listCard)||void 0===a?void 0:a.SourceName,ID:null===(r=l.listCard)||void 0===r?void 0:r.ID,ProcessID:null===(i=l.listCard)||void 0===i?void 0:i.ProcessID,TaskId:null===(n=l.listCard)||void 0===n?void 0:n.TaskID})}catch(e){O.a.error(e)}},children:Object(E.jsx)(y.c,{arrow:!0,position:"bottom",text:Object(n.t)("PC.BarComment"),children:Object(E.jsx)(r.g,{className:w.a["icon-image"],src:g.a})})}),Y&&Object(E.jsxs)(i.Fragment,{children:[Object(E.jsx)(r.r,{className:w.a["bubble-mask"],onClick:be}),Object(E.jsx)(T.b,{direction:T.a.Top,style:{left:"26px",top:"24px",zIndex:1},children:Object(E.jsxs)(r.r,{className:w.a["comment-bubble"],children:[Object(E.jsx)(r.r,{className:w.a.text,children:Object(n.t)("PC.BarCommentGuide")}),Object(E.jsx)(r.g,{className:w.a.close,src:j.a,onClick:be})]})})]})]},"comment"),canShow:()=>ne&&k},{render:()=>Object(E.jsx)(r.r,{className:w.a.icon,onClick:()=>{if(l){try{var e,t,a,r,i,n;Object(_.b)(f.f.ApprovalDetailCustomerService,{DisplayMethod:M.b.Normal,TaskStatus:null===(e=l.listCard)||void 0===e?void 0:e.TaskStatus,ProcessStatus:null===(t=l.listCard)||void 0===t?void 0:t.ProcessStatus,SourceName:null===(a=l.listCard)||void 0===a?void 0:a.SourceName,ID:null===(r=l.listCard)||void 0===r?void 0:r.ID,ProcessID:null===(i=l.listCard)||void 0===i?void 0:i.ProcessID,TaskId:null===(n=l.listCard)||void 0===n?void 0:n.TaskID})}catch(e){Object(_.b)(f.f.ApprovalError,{location:"in function onClick at src/pc-pages/index/components/detail-module/iframe-webview/index.tsx",message:JSON.stringify(e)}),O.a.error(e)}tt.openSchema({schema:l.helpdeskURL,external:!0})}},children:Object(E.jsx)(y.c,{arrow:!0,position:"bottom",text:Object(n.t)("PC.BarHelpdesk"),children:Object(E.jsx)(r.g,{className:w.a["icon-image"],src:d.a})})},"helpdesk"),canShow:()=>!0},{render:()=>Object(E.jsx)(r.r,{className:w.a.icon,onClick:()=>{if(l){try{var e,t,a,r,i,n;Object(_.b)(f.f.ApprovalDetailRefresh,{DisplayMethod:M.b.Normal,TaskStatus:null===(e=l.listCard)||void 0===e?void 0:e.TaskStatus,ProcessStatus:null===(t=l.listCard)||void 0===t?void 0:t.ProcessStatus,SourceName:null===(a=l.listCard)||void 0===a?void 0:a.SourceName,ID:null===(r=l.listCard)||void 0===r?void 0:r.ID,ProcessID:null===(i=l.listCard)||void 0===i?void 0:i.ProcessID,TaskId:null===(n=l.listCard)||void 0===n?void 0:n.TaskID})}catch(e){Object(_.b)(f.f.ApprovalError,{location:"in function onClick at src/pc-pages/index/components/detail-module/iframe-webview/index.tsx",message:JSON.stringify(e)}),O.a.error(e)}K(!0),he()}},children:Object(E.jsx)(y.c,{arrow:!0,position:"bottom",text:Object(n.t)("PC.BarRefresh"),children:Object(E.jsx)(r.g,{className:w.a["icon-image"],src:h.a})})},"refresh"),canShow:()=>!0},{render:()=>Object(E.jsx)(r.r,{className:w.a.icon,onClick:()=>{var e;if(l){try{var t,a,r,i,n,o;Object(_.b)(f.f.ApprovalDetailOpenBrowser,{DisplayMethod:M.b.Normal,TaskStatus:null===(t=l.listCard)||void 0===t?void 0:t.TaskStatus,ProcessStatus:null===(a=l.listCard)||void 0===a?void 0:a.ProcessStatus,SourceName:null===(r=l.listCard)||void 0===r?void 0:r.SourceName,ID:null===(i=l.listCard)||void 0===i?void 0:i.ID,ProcessID:null===(n=l.listCard)||void 0===n?void 0:n.ProcessID,TaskId:null===(o=l.listCard)||void 0===o?void 0:o.TaskID})}catch(e){Object(_.b)(f.f.ApprovalError,{location:"in function onClick at src/pc-pages/index/components/detail-module/iframe-webview/index.tsx",message:JSON.stringify(e)}),O.a.error(e)}Object(x.g)({schema:null===(e=l.webviewInfo)||void 0===e?void 0:e.url,external:!0})}},children:Object(E.jsx)(y.c,{arrow:!0,position:"bottom",text:Object(n.t)("PC.BarBrowser"),children:Object(E.jsx)(r.g,{className:w.a["icon-image"],src:c.a})})},"openBrowser"),canShow:()=>!0},{render:()=>Object(E.jsx)(r.r,{className:w.a.icon,onClick:()=>{var e;if(l){try{var t,a,r,i,o,s;Object(_.b)(f.f.ApprovalDetailCopy,{DisplayMethod:M.b.Normal,TaskStatus:null===(t=l.listCard)||void 0===t?void 0:t.TaskStatus,ProcessStatus:null===(a=l.listCard)||void 0===a?void 0:a.ProcessStatus,SourceName:null===(r=l.listCard)||void 0===r?void 0:r.SourceName,ID:null===(i=l.listCard)||void 0===i?void 0:i.ID,ProcessID:null===(o=l.listCard)||void 0===o?void 0:o.ProcessID,TaskId:null===(s=l.listCard)||void 0===s?void 0:s.TaskID})}catch(e){Object(_.b)(f.f.ApprovalError,{location:"in function onClick at src/pc-pages/index/components/detail-module/iframe-webview/index.tsx",message:JSON.stringify(e)}),O.a.error(e)}Object(x.h)({data:null===(e=l.webviewInfo)||void 0===e?void 0:e.url}).then((()=>Object(x.i)({title:Object(n.t)("PC.ToastCopySuccess"),duration:2e3}))).catch((()=>Object(x.i)({title:"Error",icon:"error",duration:2e3})))}},children:Object(E.jsx)(y.c,{arrow:!0,position:"bottom",text:Object(n.t)("PC.BarLinkCopy"),children:Object(E.jsx)(r.g,{className:w.a["icon-image"],src:p.a})})},"linkCopy"),canShow:()=>!0}],je=null!=l&&l.shouldHideHeader?null:Object(E.jsxs)(i.Fragment,{children:[Object(E.jsxs)(r.r,{className:w.a["iframe-headbar"],children:[Object(E.jsx)(r.r,{className:w.a["iframe-headbar-content"],children:Object(E.jsx)(r.r,{className:w.a["iframe-headbar-title"],children:me})}),Object(E.jsx)(r.r,{className:w.a["iframe-headbar-btns"],children:ve.filter((e=>{var{canShow:t}=e;return t()})).map((e=>{var{render:t}=e;return t()}))})]}),Object(E.jsx)(r.r,{className:w.a["iframe-headbar-placeholder"],style:{height:37}})]});return Object(E.jsxs)(r.r,{className:w.a["iframe-wrapper"],style:{display:S?"none":"flex"},children:[je,V?Object(E.jsx)(r.r,{className:w.a["sub-detail-wrapper"],children:Object(E.jsx)(R.a,{handleOpenDetail:()=>{H&&H()},assigneeUser:Z})}):Object(E.jsxs)(i.Fragment,{children:[ge&&Object(E.jsx)(r.r,{className:w.a.iframe,style:{display:ne?"block":"none"},children:Object(E.jsx)("native-iframe",{src:le,onLoad:e=>F(e,"".concat(W,"oa"))})}),ce&&Object(E.jsx)(r.r,{className:w.a.iframe,style:{display:ne?"none":"block"},children:Object(E.jsx)("native-iframe",{src:re,onLoad:e=>F(e,"".concat(W,"external")),onIframeLoad:()=>K(!1)})}),q&&Object(E.jsx)(r.r,{className:w.a.loading,children:Object(E.jsx)(o.a,{})})]})]})}))},,,function(e,t,a){"use strict";var r=a(5),i=a(9),n=a(337),o=a(17),s=a(16),c=a(10),l=a(23),d=a(36),u=a(2),p=a(24),m=a(20),h=a(12),b=a(67),g=a(163),v=a(81),j=a(519),O={downloadFile:e=>Object(i.a)((function*(){var{option:t}=e;return new Promise(((e,a)=>{tt.downloadFile(Object(r.a)(Object(r.a)({},t),{},{success(t){e(t)},fail(e){a(e)}}))}))}))(),openDocument(e){var{option:t}=e;return new Promise(((e,a)=>{tt.openDocument(Object(r.a)(Object(r.a)({},t),{},{success(t){e(t)},fail(e){a(e)}}))}))}},f=a(323),M=a(217),_=a(22),y=Object(m.c)("pc:src/pc-pages/index/components/detail-module/message-bus/index.tsx"),D={getToken:()=>Object(i.a)((function*(){return(yield s.c.v2GetOAAccess()).data}))(),getInfo:(e,t)=>Object(i.a)((function*(){var{active:e}=t;return{language:u.curLang,searchKeyword:(null==e?void 0:e.searchKeyword)||""}}))(),openSchema:e=>Object(i.a)((function*(){var{option:t}=e;tt.openSchema({schema:t.schema,external:!0})}))(),reportLoading:(e,t)=>Object(i.a)((function*(){var{setLoading:e}=t;null==e||e(!0)}))(),reportLoaded:(e,t)=>Object(i.a)((function*(){var{option:a}=e,{setLoading:r}=t;try{v.b.end(a),null==r||r(!1);var i=p.b.indexStore.detailByTask?"task":"list";Object(b.a)("end-create-oa-iframe"),Object(m.h)(["pc_detail_oa_".concat(i),a.childBiz||"",a.peopleBiz||""],{useCacheTag:!0,defaultTags:["oa"]})}catch(e){c.a.error("async reportLoaded",e)}}))(),openDrawerWebview:(e,t)=>Object(i.a)((function*(){var{option:a}=e,{active:i}=t;i&&"iframe-webview"===i.type&&Object(g.b)(Object(r.a)(Object(r.a)({},i),{},{type:"drawer-webview",sourceName:i.sourceName,webviewInfo:{url:a.url,title:a.title}}))}))(),download:e=>Object(i.a)((function*(){var{option:t}=e;try{return yield Object(d.d)(t)}catch(e){return Object(h.b)(o.f.ApprovalError,{location:"in function download at src/pc-pages/index/components/detail-module/message-bus/index.tsx",message:JSON.stringify(e)}),Promise.reject(e)}}))(),onSwitch(e,t){var{option:a}=e,{setPreventSrcChange:r}=t;console.debug(">>> message-bus onSwitch",a),y("iframeOnSwitch",a);var{preventIframeSrcChange:i}=a;return null==r||r(i),Promise.resolve()},emitPerformanceEvent(e){var{option:t}=e;return Object(M.d)(t.name),Object(b.a)(t.name),Promise.resolve()}},N={preventAutoNext:(e,t)=>Object(i.a)((function*(){var{option:a}=e,{onPreventAutoNext:r}=t;null==r||r(a)}))(),jumpOut:(e,t)=>Object(i.a)((function*(){var{option:a}=e,{active:r,jumpOut:i,onPreventAutoNext:n,onDetailFullWindow:o}=t;if(null==n||n({value:!1}),null==o||o(!1),"iframe-webview"===(null==r?void 0:r.type)){var{sourceName:s,id:c,searchKeyword:l,listCard:d,intranetAccess:u}=r;Object(h.b)("open_detail_conflict",{definition_key:null==d?void 0:d.DefinitionKey,process_id:null==d?void 0:d.ProcessID}),null==i||i({type:"drawer-webview",webviewInfo:{url:a.url},sourceName:s,id:c,searchKeyword:l,listCard:d,intranetAccess:u})}}))(),noticeRead:()=>Object(i.a)((function*(){}))(),reportApproval:(e,t)=>Object(i.a)((function*(){var a,r,i,n,o,c,d,{option:u}=e,{active:p,onFinished:m,doRefresh:h}=t;y("iframeReportApproval",{option:u,active:{processUniqueId:null==p||null===(a=p.listCard)||void 0===a?void 0:a.ProcessUniqueID,taskUniqueId:null==p||null===(r=p.listCard)||void 0===r?void 0:r.TaskUniqueID}}),(u.instanceId&&(u.instanceId===(null==p||null===(i=p.listCard)||void 0===i?void 0:i.ProcessUniqueID)||u.instanceId===(null==p||null===(n=p.listCard)||void 0===n?void 0:n.TaskUniqueID))||u.taskId&&(u.taskId===(null==p||null===(o=p.listCard)||void 0===o?void 0:o.ProcessUniqueID)||u.taskId===(null==p||null===(c=p.listCard)||void 0===c?void 0:c.TaskUniqueID)))&&(p&&p.listCard||f.a.approvalRuntimeErrorProjectCollect({type:"is_empty_active_or_listCard",func:"src/pc-pages/index/components/detail-module/message-bus/index.tsx reportApproval",data:JSON.stringify({active:Object.prototype.toString.call(p),listCard:Object.prototype.toString.call(null==p?void 0:p.listCard)})}),u.doNotMark||s.c.v2MarkTask({System:p.listCard.System,ID:p.listCard.ID,TargetTaskStatus:l.h.Processing,Topic:p.listCard.Topic}),"tempSave"===u.result?null==h||h():null==m||m(null===(d=p.listCard)||void 0===d?void 0:d.ID))}))(),reportAction:(e,t)=>Object(i.a)((function*(){var a,r,i,n,o,s,{option:c}=e,{active:l,handleAction:d}=t;y("iframeReportAction",{option:c,active:{processUniqueId:null==l||null===(a=l.listCard)||void 0===a?void 0:a.ProcessUniqueID,taskUniqueId:null==l||null===(r=l.listCard)||void 0===r?void 0:r.TaskUniqueID}});var{action:u,params:m}=c;"resubmit"===u&&"agile"===m.sourceName&&p.b.indexStore.currentNav!==_.a.Initiated&&p.b.indexStore.menuStore.setSelectedKey(_.a.Initiated,_.a.Initiated,[]),(c.instanceId&&(c.instanceId===(null==l||null===(i=l.listCard)||void 0===i?void 0:i.ProcessUniqueID)||c.instanceId===(null==l||null===(n=l.listCard)||void 0===n?void 0:n.TaskUniqueID))||c.taskId&&(c.taskId===(null==l||null===(o=l.listCard)||void 0===o?void 0:o.ProcessUniqueID)||c.taskId===(null==l||null===(s=l.listCard)||void 0===s?void 0:s.TaskUniqueID)))&&(null==d||d(c))}))()},A={closeSelf:()=>Object(i.a)((function*(){Object(g.c)()}))()},T={connect:(e,t)=>Object(i.a)((function*(){var{system:a,option:r}=e,{active:i}=t;return{FA_ENV:"drawer-webview"===(null==i?void 0:i.type)?n.a["drawer-webview"]:n.a["iframe-webview"]}}))(),scroll:()=>Object(i.a)((function*(){}))()},I={[n.b.global]:D,[n.b.detail]:N,[n.b.drawer]:A,[n.b.system]:T,[n.b.oa]:j.a,[n.b.tt]:O},C=()=>Promise.reject({type:"NOT_FOUND"});t.a=(e,t)=>{var a,{messageId:r}=e;return((null===(a=I[e.namespace])||void 0===a?void 0:a[e.type])||C)(e,t).then((e=>({originalId:r,data:e}))).catch((e=>Promise.reject({originalId:r,error:e})))}},,function(e,t,a){"use strict";var r=a(5),i=a(3),n=a(15),o=a(713),s=a(9),c=a(42),l=a(154),d=a(40),u=a(82),p=a(14),m=a(1),h=a(735),b=a.n(h),g=a(163),v=a(8),j=a.n(v),O=a(0);var f=Object(n.a)((function(e){var{widget:t,ctxId:a}=e,{data:{name:r,url:n,title:o}}=t,{configurableFormStore:h}=Object(p.d)(a),v=h?h.keyword:"",f=Object(i.useRef)(null),[M,_]=Object(i.useState)(!1);return Object(O.jsx)(u.a,{title:r,ctxId:a,children:Object(O.jsxs)(m.r,{className:b.a.document_text,onClick:()=>{n&&Object(g.b)({type:"drawer-webview",sourceName:"",intranetAccess:!1,webviewInfo:{url:n},id:"custom",searchKeyword:""})},onMouseEnter:()=>{setTimeout(Object(s.a)((function*(){var e,t=yield null==f||null===(e=f.current)||void 0===e?void 0:e.isTextEllipsis({cache:!0});_(Boolean(t))})),300)},children:[Object(O.jsx)(m.r,{className:j()(b.a.icon,"iconfont","icon-icon_file-link-word2_outlined")}),Object(O.jsx)(m.r,{className:b.a.content,children:Object(O.jsx)(d.c,{text:o,fixed:!0,arrow:!0,disabled:!M,wordWrap:!0,textWrap:!0,textStyle:{maxWidth:320},children:Object(O.jsx)(l.a,{customStyle:{width:"100%"},ref:f,text:Object(O.jsx)(c.a,{content:o,keyword:v||"",isSingleLine:!0,style:{cursor:"pointer"}})})})})]})})}));t.a=Object(n.a)((e=>{var{widget:t,ctxId:a,inRelativeForm:i}=e;return i?Object(O.jsx)(f,{widget:t,ctxId:a}):Object(O.jsx)(o.a,Object(r.a)(Object(r.a)({},e),{},{className:"widget-viewer"}))}))},function(e,t,a){"use strict";var r=a(5),i=a(3),n=a(15),o=a(1),s=a(13),c=a(8),l=a.n(c),d=a(124),u=a(708),p=a(48),m=a(2),h=a(31),b=a.n(h),g=a(22),v=a(12),j=a(17),O=a(20),f=a(539),M=a.n(f),_=a(0),y=Object(O.c)("pc:src/components/configurable-form/components/widgets/cloud-doc-block/document/index.tsx"),D=Object(n.a)((e=>{var{ctxId:t,widget:a,className:r,currentActive:n,currentNav:c=""}=e,[h,O]=Object(i.useState)({showNewVersion:!1,versionTime:"---- -- : --",showViewNew:!1}),{token:f,url:D,name:N}=a.data,A=Boolean(f);return Object(i.useEffect)((()=>{Object(v.b)(j.f.CloudDocsBlockWidgetUse,{widget_type:s.c.CLOUD_DOC_BLOCK,current_nav:c})}),[c]),Object(_.jsxs)(o.r,{className:l()(M.a.addWrapper,r),children:[Object(_.jsx)(p.a,{required:!1,subTitle:h.showNewVersion&&Object(_.jsx)(o.r,{className:M.a.subWrapper,children:Object(m.t)("widgets.cloudDocBlock.versionTip","当前为文档最新版本,可在历史记录查看审批版本")}),children:Object(_.jsxs)(o.r,{className:M.a.nameWrapper,children:[Object(_.jsx)(o.r,{children:N}),h.showViewNew&&Object(_.jsx)(o.r,{className:M.a.viewLatest,onClick:()=>{D&&tt.openSchema({schema:D,external:!0,success(e){y("openSchemaSuccess",{func:"openDocBrowser",data:e})},fail(e){y("openSchemaFail",{func:"openDocBrowser",data:e})},complete(e){y("openSchemaComplete",{func:"openDocBrowser",data:e})}})},children:Object(m.t)("widgets.cloudDocBlock.viewLatest","查看最新版本")})]})}),A?Object(_.jsx)(u.a,{currentActiveID:n?n.ID:"",cloudDocWidget:s.c.CLOUD_DOC_BLOCK,ctxId:t,data:a.data,isEdit:!1,onDelete:d.a,onRemove:d.a,handleDocConfig:e=>{var{Entity:t,ItemInfo:a}=e,r=![g.a.Initiated,g.a.Todo].includes(c),i=(null==t?void 0:t.DocsToken)===f;O({showNewVersion:i&&r,showViewNew:!i&&r,versionTime:b.a.unix(Number(null==a?void 0:a.UpdateTimestamp)).format("YYYY.MM.DD HH:mm")})}}):null]})}));t.a=Object(n.a)((e=>Object(_.jsx)(i.Fragment,{children:Object(_.jsx)(D,Object(r.a)(Object(r.a)({},e),{},{className:"widget-viewer"}))})))},function(e,t,a){"use strict";var r=a(5),i=a(9),n=a(3),o=a(1),s=a(40),c=a(382),l=a.n(c),d=a(8),u=a.n(d),p=a(613),m=a(65),h=a(294),b=a(33);var g=a(1481),v=(a(1228),a(0));function j(e){var{renderIcon:t,text:a,ellipsesLine:r=1,enableEllipsis:c,customStyle:d,tooltip:m="",onClick:h=b.m,transferSelector:g}=e,[j,O]=Object(n.useState)(!1),f=Object(n.useMemo)((()=>j&&m?"".concat(a," | ").concat(m):m||a),[j,m,a]),M=Object(n.useRef)(null);return Object(v.jsx)(o.r,{className:l.a.tag,style:d,onClick:()=>h(),onMouseEnter:()=>{setTimeout(Object(i.a)((function*(){var e,t,a=null!==(e=null===(t=M.current)||void 0===t?void 0:t.getIsEllipsis())&&void 0!==e&&e;O(a)})),0)},children:Object(v.jsx)(s.c,{text:f,fixed:!0,arrow:!0,disabled:!j&&!m,wordWrap:!0,textWrap:!0,textStyle:{maxWidth:160},transferSelector:g,children:Object(v.jsxs)(o.r,{className:l.a.container,children:[t&&Object(v.jsx)(o.r,{className:l.a.icon,children:t}),Object(v.jsx)(o.r,{className:u()(l.a.content),children:Object(v.jsx)(p.a,{ellipsisLine:r,ref:M,enableEllipsis:c,children:a})})]})})})}j.Group=e=>{var{itemList:t,triggerClampLine:a=5,lineClamp:s=3,onClick:c=b.m,renderMoreContentTagStyle:d,tagStyle:p,textEllipsesLine:O=3}=e,[f,M]=Object(n.useState)(!1),[_,y]=Object(n.useState)(t.length),[D]=Object(n.useState)((()=>"tag_group_".concat(Object(b.e)()))),[N]=Object(n.useState)((()=>"popover_".concat(Object(b.e)()))),A=Object(n.useCallback)(Object(i.a)((function*(){var e=yield Object(m.a)(".".concat(D)),t=yield Object(m.b)(".".concat(D," .").concat(l.a.tag));if(t&&e){var{totalLine:r,truncIndex:i}=function(e){var{parentInfo:t,childrenInfo:a,lineClamp:r=3,elemGap:i=0}=e,{width:n}=t,o=-1,[s,c]=a.reduce(((e,t,a)=>{var[s,c]=e,{width:l}=t,d=s,u=c+l+i;return l+i>=n?(d+=c?2:1,u=0,s<r&&d>=r&&(o=a+1)):u>=n&&(u-=c,++d===r&&(o=a)),[d,u]}),[0,0]);return{totalLine:c>0?s+1:s,truncIndex:o}}({parentInfo:e,childrenInfo:t,lineClamp:s,elemGap:4});r>a&&(y(i),M(!0))}})),[a]);Object(n.useEffect)((()=>{setTimeout(A,0)}),[]);var[T,I]=Object(n.useMemo)((()=>[t.slice(0,_),t.slice(_)]),[_,t]),C=Object(n.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(v.jsx)(j,Object(r.a)({renderIcon:e.avatarUrl&&Object(v.jsx)(g.a,{src:e.avatarUrl,size:20}),text:e.text||"",ellipsesLine:O,tooltip:e.tooltip,onClick:()=>c(e)},t),e.id)}),[]);return Object(v.jsxs)(o.r,{className:u()(l.a.tag_group,D),children:[T.map((e=>C(e,{customStyle:p}))),f&&Object(v.jsx)(h.a,{zIndex:15,overlayPosition:"fixed",trigger:"hover",position:"bottom",popoverStyle:{width:"fit-content",maxWidth:"240px",paddingLeft:"4px"},popoverContentClass:N,contentClass:l.a.popover_content,content:I.map((e=>C(e,{enableEllipsis:!1,customStyle:Object(r.a)(Object(r.a)({},p),d),transferSelector:".".concat(N)}))),children:Object(v.jsx)(j,{text:"+".concat(I.length)})})]})},t.a=j},,function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));var r=e=>"string"==typeof e;function i(e){return Boolean(r(e)&&e)}},function(e,t,a){e.exports={content:"index-module__content___2zBVa",hidden_width:"index-module__hidden_width___1t0pX",ellipsis_multi_line:"index-module__ellipsis_multi_line___2KttY"}},,function(e,t,a){e.exports={document_text:"index-module__document_text___2XkUn",icon:"index-module__icon___2_kkp",content:"index-module__content___3hzA3"}},function(e,t,a){e.exports={"process-signature-wrapper":"index-module__process-signature-wrapper___3T6Jv",label:"index-module__label___106oK",img:"index-module__img___2MnqD"}},function(e,t,a){e.exports={"relative-approval-modal":"index-module__relative-approval-modal___15tRS",expand:"index-module__expand___2JPRe",icon:"index-module__icon___1CaqJ",expand_rotate:"index-module__expand_rotate___2EteO"}},,,function(e,t,a){e.exports={"subsearch-content":"index-module__subsearch-content___3YT58","text-wrapper":"index-module__text-wrapper___1Xyzm","img-wrapper":"index-module__img-wrapper___3KcQA"}},function(e,t,a){e.exports={"open-button":"index-module__open-button___S-TaD","download-tip":"index-module__download-tip___2sxHk","download-btn":"index-module__download-btn___YamBk"}},,function(e,t,a){e.exports={"open-button":"index-module__open-button___oyage","download-tip":"index-module__download-tip___1A2AO","download-btn":"index-module__download-btn___31w8w",placeholder:"index-module__placeholder___1qvLq",icon:"index-module__icon___hPKiw",tips:"index-module__tips___uRPx1"}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){},function(e,t,a){},,,,,,,function(e,t,a){e.exports={"placeholder-wrapper":"index-module__placeholder-wrapper___3McoK","placeholder-icon":"index-module__placeholder-icon___21_WI"}},,function(e,t,a){e.exports={"text-btn":"index-module__text-btn___2qWmg","break-word":"index-module__break-word___25K3i",inline:"index-module__inline___1_EbC",text:"index-module__text___LQuMd",docIcon:"index-module__docIcon___1tV69"}},function(e,t,a){e.exports={"text-ellipsis":"index-module__text-ellipsis___2x_oY",text:"index-module__text___Z-eL1"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMCAwaDEydjEySDB6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzhGOTU5RSIgZD0iTTUuOTcxIDUuMjRsMy4zNi0zLjM2YS4yNS4yNSAwIDAgMSAuMzUzIDBsLjM1My4zNTRhLjI1LjI1IDAgMCAxIDAgLjM1NEw2LjY4IDUuOTQ2bDMuMzU4IDMuMzZhLjI1LjI1IDAgMCAxIDAgLjM1M2wtLjM1My4zNTNhLjI1LjI1IDAgMCAxLS4zNTQgMEw1Ljk3MSA2LjY1NGwtMy4zNTggMy4zNThhLjI1LjI1IDAgMCAxLS4zNTQgMGwtLjM1My0uMzUzYS4yNS4yNSAwIDAgMSAwLS4zNTRsMy4zNTgtMy4zNTktMy4zNTgtMy4zNThhLjI1LjI1IDAgMCAxIDAtLjM1NGwuMzUzLS4zNTNhLjI1LjI1IDAgMCAxIC4zNTQgMEw1Ljk3IDUuMjM5eiIvPgogICAgPC9nPgo8L3N2Zz4K"},function(e,t,a){e.exports={userName:"index-module__userName___cKoKf",cardUserNav:"index-module__cardUserNav___1VE-k"}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pFBXLD//sVOQgggNMZR6pDPBO6fChMpWgYsWlrYuytnp/aS5su/XKC6XbZzYEdgeTQfhCm0lcgqDpefJWa0f4t2iq0javLGJ3sBwYMwAVYS9e3nlNHCc6dmTqR1q2qeI9mUJAQOz5tcrDMYXm7KOPyNbLz6fUjheTlm3qSBwC4bHQtDDO5uc3zmWKIR3/1ZGInUOgFgMQ0OZLk3u2qKdUNRKxYxlEWEpNiWP7jZ3XE8d2mbmistrAjmVQeAdYW/I8d2xlSCqrRSFgx8OJc7sWYTEh8d6e5BWxJkayxK463e6WPupfMyIhg+ne3m88lMj6+kMZlGaq1ZLz6v/HYcyEbYaimbGxvVwH4XeqHW6EGIdnr6pmNBtiHlyJIQjRjBh7uTLwktpF12CHfnBrYW6GEXB50nPDi6DoLMAITHv7a7qaxbFGHsCj4UI/jYVnAoSfTtfWFnIDxvj5J/IAqgovWOzncVjmHmNvLey3qahEbMQYZ3bMA1gBL1B+ENxgREWccNbzjCf2XPc8DHAsqDpaBYYAScDAY/zeH5bNwV/EEbvbo+CJa8wALGQ0FQOP0aDH37OciIFYkiLEiCvRAKxgXJ0SfYX5WU7EkBYjSFypBmAlIywRc/sR87OYqPukKFFiGpsER4FiUlzsYGmMoaMw6nqGPGHQ89mR4rk8IO4RDJ7Woj6FVzTi5bbkBxOevpLl9nF9M4dAnJj5eftkprABaIR5+mhq4ipAsEmJayp3VdhatlDfTqKpqYyfzbWoS9o6n6VHKQ+IMw0PUIv44WTcCMzDEIv56eyoIfh7IT+eTjIEy+AZVn8+/w9mJEGatjjzuQAAAABJRU5ErkJggg=="},function(e,t,a){e.exports={"fade-wrapper":"index-module__fade-wrapper___35wcP",hidden:"index-module__hidden___3hj7I"}},function(e,t,a){e.exports={wrap:"index-module__wrap___21KEr",desc:"index-module__desc___2VX1S"}},function(e,t,a){e.exports={"button-base":"index-module__button-base___1fn1i","button-submit":"index-module__button-submit___3Ph5I"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0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EgMTUuNjAwNyAxNy4xMzM3IDE1LjM2NjJDMTYuODk5MyAxNS4xMzE4IDE2LjU4MTMgMTUuMDAwMSAxNi4yNDk4IDE1LjAwMDFDMTUuOTE4MyAxNS4wMDAxIDE1LjYwMDQgMTUuMTMxOCAxNS4zNjU5IDE1LjM2NjJDMTUuMTMxNSAxNS42MDA3IDE0Ljk5OTggMTUuOTE4NiAxNC45OTk4IDE2LjI1MDFDMTQuOTk5OCAxNi41ODE3IDE1LjEzMTUgMTYuODk5NiAxNS4zNjU5IDE3LjEzNEMxNS42MDA0IDE3LjM2ODQgMTUuOTE4MyAxNy41MDAxIDE2LjI0OTggMTcuNTAwMVpNMy43NDk4MyAxNy41MDAxQzQuMDgxMzUgMTcuNTAwMSA0LjM5OTI5IDE3LjM2ODQgNC42MzM3MSAxNy4xMzRDNC44NjgxMyAxNi44OTk2IDQuOTk5ODMgMTYuNTgxNyA0Ljk5OTgzIDE2LjI1MDFDNC45OTk4MyAxNS45MTg2IDQuODY4MTMgMTUuNjAwNyA0LjYzMzcxIDE1LjM2NjJDNC4zOTkyOSAxNS4xMzE4IDQuMDgxMzUgMTUuMDAwMSAzLjc0OTgzIDE1LjAwMDFDMy40MTgzMSAxNS4wMDAxIDMuMTAwMzYgMTUuMTMxOCAyLjg2NTk0IDE1LjM2NjJDMi42MzE1MiAxNS42MDA3IDIuNDk5ODMgMTUuOTE4NiAyLjQ5OTgzIDE2LjI1MDFDMi40OTk4MyAxNi41ODE3IDIuNjMxNTIgMTYuODk5NiAyLjg2NTk0IDE3LjEzNEMzLjEwMDM2IDE3LjM2ODQgMy40MTgzMSAxNy41MDAxIDMuNzQ5ODMgMTcuNTAwMVoiIGZpbGw9IiMxNEMwRkYiLz4KPC9zdmc+Cg=="},function(e,t,a){e.exports={input_wrap:"index-module__input_wrap___kvGqW",clear:"index-module__clear___2luXe",hidden:"index-module__hidden___3o3Ba",placeholder:"index-module__placeholder___i7ikc",display:"index-module__display___1P5Fg",error:"index-module__error___zT3FR"}},function(e,t,a){e.exports={"edit-history-button":"index-module__edit-history-button___3kwhE",text:"index-module__text___6huJc"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDE2QzAgNy4xNjM0NCA3LjE2MzQ0IDAgMTYgMEMyNC44MzY2IDAgMzIgNy4xNjM0NCAzMiAxNkMzMiAyNC44MzY2IDI0LjgzNjYgMzIgMTYgMzJDNy4xNjM0NCAzMiAwIDI0LjgzNjYgMCAxNloiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcikiLz4KPG1hc2sgaWQ9Im1hc2swIiBtYXNrLXR5cGU9ImFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAgMTZDMCA3LjE2MzQ0IDcuMTYzNDQgMCAxNiAwQzI0LjgzNjYgMCAzMiA3LjE2MzQ0IDMyIDE2QzMyIDI0LjgzNjYgMjQuODM2NiAzMiAxNiAzMkM3LjE2MzQ0IDMyIDAgMjQuODM2NiAwIDE2WiIgZmlsbD0id2hpdGUiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swKSI+CjwvZz4KPG1hc2sgaWQ9Im1hc2sxIiBtYXNrLXR5cGU9ImFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSI1IiB5PSI2IiB3aWR0aD0iMjIiIGhlaWdodD0iMjYiPgo8cmVjdCB4PSI1LjQw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i4zMDA3OCIgeTE9IjcuMDQ5OCIgeDI9IjYuMzAwNzgiIHkyPSIzMS44OTgxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuNCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo="},function(e,t,a){e.exports={"approval-instance-detail":"index-module__approval-instance-detail___3l9PX","approval-instance-detail__inner":"index-module__approval-instance-detail__inner___3NsKA"}},function(e,t,a){e.exports={"drawer-hint":"index-module__drawer-hint___su8L_","drawer-button":"index-module__drawer-button___Wyl_8"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0idXJsKCNwYXR0ZXJuMCkiLz4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJwYXR0ZXJuMCIgcGF0dGVybkNvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPgo8dXNlIHhsaW5rOmhyZWY9IiNpbWFnZTBfNDEwXzU5ODMwIiB0cmFuc2Zvcm09InNjYWxlKDAuMDA3ODEyNSkiLz4KPC9wYXR0ZXJuPgo8aW1hZ2UgaWQ9ImltYWdlMF80MTBfNTk4MzAiIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB4bGluazpocmVmPSJkYXRhOmltYWdlL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ZWVGWDQvU1Zuc29sbEJMVUNSZUZueitkaXlnbDhCaVhoVSs0ZXFHNmtTT2dSSkh5Q1R5QUo5MFdQdUY2cHdKU2dzYmM3QTRLVDBEaER2aGR6bVRuWEJkKy90UWUwdEg5b0o4Qk93V0s2c0dFbTlQOHZoTTg3eERaMlQyQmc5ZElDZFR0Nlp5UnBwUzdrWFgxa0xxMENGWE9vVU04Y1Bhcy8xUWQ2VHc0Y1E2WWRnd1UxcURKbjhHeWU2MEpIcnZVdlVtd2Nka1pEdzBxYTFBRXpYcWU2M095bWNNTjZ0NnZqUDZERkNXb2phWXZvTzhDYy9vNzZpMTh3dGMyNFladjBNRFBMdU9LWW9KblovdnFzZFpiNGFzQ0ZPam9tZWhsT2tZS3kyZFpTTkJWVjM3TStHS0VVSUFDeTBBUmhCRjhBYUVVb01COGZ3TEtIVVFoR0FnbitBSkNLa0FCOGhFZ3BGTTI4UzBKclVLYStpM2xHSS9mdXJKUjJFMHpRaXZBWWpvUFBvaHhnQmhqYkQrSW0xVk1NeFM0enZWTElzNTJNNlJSZ01YUUVnRmM2MFZsMkk1UDI4RlBqTXFuZm9NYU1EN1BacFAxU3VDNGhaUUtzSmg4bWxsSEplQlJ6RElXRk1JckMwSENUZEVOTnVnZUM1REpKUHdNNGR4QWVnVXdvNnRub2wzbnZCVWR5WFlVVmdRMGJSUE9WRktLVnVQUnlwOG83R1BBckJ5YThoVFgrV1BqdG5vY2Y4L05KV1VYdGhuL0J3ek45VHVlK3BDdEFBQUFBRWxGVGtTdVFtQ0MiLz4KPC9kZWZzPgo8L3N2Zz4K"},,function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return d}));var r=a(17),i=a(16),n=a(50),o=a(12),s=a(534),c=a(270),l=()=>{try{n.a.clearSync(),tt.showToast({icon:"success",title:"清除缓存成功"})}catch(e){Object(o.b)(r.f.ApprovalError,{location:"in function clearStorage at src/utils/devtools.ts",message:JSON.stringify(e)})}},d=()=>{try{var t,a,{BUILD_ENV:l="boe",ONBOARDING:d=0}=null!==(t=null===(a=e)||void 0===a?void 0:{GIT_SHORT:"03ea7a3",GIT_LONG:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",GIT_BRANCH:"release_train_2023-09-21_212295",GIT_MESSAGE:"Merge branch 'update-version/20230926' into 'release_train_2023-09-21_212295'\n\nfeat: [ticket] 托管火车占位 (train id 212295) [skipped]\n\nSee merge request ea/approval!4094",NODE_ENV:"production",BUILD_ENV:"online",BUILD_BASE_COMMIT_HASH:"03ea7a38b729b3bbd728f9e122dff3a86ccdb566",BUILD_BRANCH:"release_train_2023-09-21_212295",BUILD_VERSION:"1.0.0.1782"})&&void 0!==t?t:{},u="".concat(l,"_v").concat(d,"_user_guide_showed");n.a.set(u,!1);var p=s.a.setAttributeParam(u,{type:"boolean",value:"false"});i.c.setIsvAuthorizedStatus({ClientID:c.a,AuthorizedStatus:0,type:1}),i.c.approvalattributesuserset(p),tt.showToast({title:"重置新手引导数据成功",icon:"success"})}catch(e){Object(o.b)(r.f.ApprovalError,{location:"in function resetUserGuide at src/utils/devtools.ts",message:JSON.stringify(e)})}}}).call(this,a(425))},function(e,t,a){e.exports={button:"index-module__button___2jk6m"}},,,,,,,,,,,,function(e,t,a){"use strict";a.r(t),t.default={1:"Your average approval time spent in N is longer than 80% of the approvers in your department. To improve your efficiency, pay attention to the processes to be improved.",11:"New feature: Range of associated approval documents expanded. It also supports associated document searches.",111:"Trend of Avg. Approval Time Spent",1111222:"Trend of Avg. Approval Time Spent",12312334:"Submit",AM:"AM",ActionSuccessful:"Action successful.",AddTask:{AddPostApproverHint:"After adding an approver, this request will be automatically processed and sent to the newly added approver.",AddReason:"Reason",AddReasonNew:"Reason for Adding Approver",AddReasonPlaceholder:"Please enter a reason",AddingMethod:"Position",ApprovalMethod:"Approval type",DetailDesc:"Added approver: {{involvedUserList}}",DupApproverInCurrentNode:"Some approvers you selected are already approvers of this step",Fail:"Failed to add approvers",NextStep:"Next",PleasePick:"Please select ",PleaseSelect:"Please select ",Success:"Added successfully."},AddressPicker:{AbortLevel:"Later",ChooseCity:"Select city",ChooseCountry:"Select country/region",ChooseDistrict:"Select district/county",ChooseHistoryList:"Previous selections",ChooseProvince:"Select province/region",ChooseRegion:"Select region",ConfirmDeleteHistory:"Are you sure to delete your record?",FailOnQueryStaticFile:"Failed to load matching data. Please try again.",HistoryClear:"Clear",LevelPlaceholder:"Please select ",MainlandTitle:"Location",OnlySupportSearchingChina:"Only support searching regions within mainland China.",OnlySupportSearchingChinaPC:"Only support searching regions within mainland China.",OtherTitle:"Other Countries/Regions",PleaseSearchOrSelect:"Search or select.",TitleOfHistoryList:"History",TitleOfMainlandHotList:"Frequently visited cities",TitleOfOtherHotList:"Popular countries and regions"},Address_PreLocateFail:"Auto location failed.",AdjustRequesterStyle:{ProxyBy:"Submitted by {{name}} as proxy",SubmittedBy:"Submitted by {{name}}"},AdminDeleted:"deleted the approval.",AdminGuide:{Effect:"Online analysis for improved approval efficiency",Free:"Create New Workflow",GoPC:"Go to Lark desktop app -> Workplace -> Approval, enter the admin console to create an approval task within 3 minutes.",Kanban:"Efficiency dashboards are provided from individual and team perspectives to support business efficiency diagnosis.",MultiDevices:"You can process approvals in real time with your mobile phone, PC, and Pad to ensure approval timeliness.",OneDay:"Essential enterprise processes for leave, reimbursement, payment, and travel requests can be quickly enabled.",OutOfBox:"Comprehensive and easy-to-use templates",Quick:"Multi-terminal synchronization for processing at any time",Title:"One-stop and efficient approval platform"},AdminName:"Administrator",AdminPreview_Go_Flow_Chart:"View flowchart",AdminPreview_Imitating:"Simulated requester: {{name}}",AdminPreview_More_Questions:"Any questions? Visit our Help Center for help",Admin_ModifyNotice:"Some approvals cannot be modified at this time.",Admin_ModifyOnce:"Employees can apply to modify the approved approval for scenarios such as resumption from leave (approved application can only be modified once, and the application approved before configuration cannot be modified).",AfterSigning:"Post-approver",AgreeWhenRepeated:"This request has been approved before. No need for further approval.",Agreed:"Approved",Apaascorehr_AlreadyHavePhoneNumber:"This mobile number has been used by {{status}} employees. Please check.",Apaascorehr_AlreadyKnown:"Got it",Apaascorehr_AppInactive:"This approval is unavailable. Please contact your administrator.",Apaascorehr_Disabled:"This approval is temporarily unavailable. Please contact your administrator for help.",Apaascorehr_EffectDateNotEarlierThanToday:"The effective date can't be earlier than today. ",Apaascorehr_EmployeeNoNeedToReapply:"This applicant has submitted a resignation application.",Apaascorehr_EmployeeStatusNotAllowResignation:"This applicant is to be offboarded or has offboarded.",Apaascorehr_FailToFetchInfoContent:"Failed to obtain information. Please click the button to reload.",Apaascorehr_FailToFetchInfoTitle:"Failed to obtain information. Please try again later.",Apaascorehr_InvalidPhoneNumber:"Invalid phone number format",Apaascorehr_NoFormItemValue:"No content",Apaascorehr_NoItem:"No {{title}}",Apaascorehr_OffboardingDateNotEarlierThanOnboardingDate:"The offboarding date can't be earlier than the hire date.",Apaascorehr_PleaseChooseApplicant:"Select an actual applicant",Apaascorehr_RegularateDateNotEarlierThanOnboardingDate:"The conversion date can't be earlier than the hire date.",Apaascorehr_Reload:"Reload",Apaascorehr_UnexpectedAdjustedManager:"The manager can't be the applicant and their subordinates.",Apaascorehr_UserConversionApplyed:"This applicant has no need to apply for conversion.",Apaascorehr_UserConversionApplying:"This applicant has already submitted an application for conversion.",Apaascorehr_UserNotFound:"This user doesn't exist. Please check.",Apaascorehr_VerifyNetworkError:"System error. Please try again later.",Api:{TaskNotPending:"Approval status has changed. Please go to the approval document again for more actions.",networkErrorPleaseResubmit:"Network anomalies, please try again"},AppName:"Approval",AppNameInFeishu:"Feishu Approval",AppShare:{Fail:"Failed to share. Please try again.",Success:"Shared successfully.",Title:"{{subject}}, simple, efficient and open approval tools."},Approval:{Ceo:"For CEO",CeoDone:"CEO's Done",CeoTodo:"CEO's To-do",CopyMe:"Cc'd",Done:"Done",Mine:"For Me",MyDone:"My Done",MySubmitted:"Submitted",MyTodo:"My To-do",Shared:"From a chat",Ta:"For Ta",TaDone:"Ta's Done",TaTodo:"Ta's To-do",Todo:"To-do",ViewMore:"View More"},ApprovalDesc:'"{{defName}}" initiated by {{userName}}',ApprovalEfficiency:{AfterRate:"Longer than the average processing time",AgencyLink:'Link to "Requirements to ByteDance Approvers" system',AgencyRate:"Delegate Rate",AgencyRateDecreaseAlert:"Within {{time}}, {{title}} has decreased. Remind the team approvers to complete the approvals in person unless there are exceptional circumstances.",AgencyRateIncreaseAlert:"Within {{time}}, {{title}} has increased. Remind the team approvers to complete the approvals in person unless there are exceptional circumstances.",AgencyRateStableAlert:"Within {{time}}, {{title}} remains stable. Remind the team approvers to complete the approvals in person unless there are exceptional circumstances.",AgencyRateText:"Delegate approval rate",AgencySteady:"{{time}}, your delegate approval rate was stable. Please keep it up and process requests yourself instead of assigning delegates.",AheadGroup:"Ahead of {{rate}} of approvers in the department",AllAverageTime:"Overall Avg. Time Spent",ApprovalPerson:"Approver",ApprovalTimeCost:"Approval Time Spent",AverageTime:"Average approval time",AverageTimeLabel:"It is the average approval time spent by each approver in the team to complete one task",AverageTimeText:"average time spent",BehindGroup:"Behind {{rate}} of approvers in the department",Center:"Efficiency Diagnosis",Checked:"Requests reviewed",CheckedDone:"Number of reviewed tickets.",Click:"Click",CompareDataLabel:"Comparison of the increase with the last period, and display of rankings among all of {{group}}'s subordinate teams",CompareDataLabelV2:"Comparison of the increase with the last period, and display of rankings among all of {{group}}'s subordinate teams. ",DateRange:"Date Range",Diagnosis:{AgencyRate:"Highest delegate approval rate ({{value}}%) with the behavior seen among {{number}} approvers.",AverageTime:"Approval efficiency is significantly worse than that in the last cycle.",AverageTimeRank:"Approval efficiency is relatively poor.",Bad:"To Be Improved",BadAverageTimeRank:"Approval efficiency remains poor.",BadRank:"Avg. time spent ranked {{rank}}/{{total}} among all of {{leader}}'s subordinate teams",BadTip:"Prioritize the following issues",CompareBad:"Longer than company average ({{teamAverage}} h vs. {{average}} h)",CompareEqual:"Average time spent equal to company average ({{average}} hours)",CompareGood:"Less than company average ({{teamAverage}} h vs. {{average}} h)",Good:"Excellent",GoodRank:"Avg. time spent ranked {{rank}}/{{total}} among all of {{leader}}'s subordinate teams",GoodTip:"Seek excellence. The following areas need improvement",NotBad:"Good",NotBadTip:"Try harder. The following areas need improvement",ProblemTip:"Pay attention to the following items",SecondRate:"Highest speedy approval rate ({{value}}%) with the behavior seen among {{number}} approvers."},DirectSubordinate:"Direct Subordinate",DirectSubordinateEfficiency:"Direct Subordinate Efficiency",DirectSubordinateOverview:"Direct Subordinate Approval Timeliness",Efficiency:"Efficiency",FirstInfo:"The average approval time spent of all approval tasks in the cycle. Complete the approvals in a timely manner without compromising the approval quality.",GoodEfficiency:"Tasks with high efficiency",GroupAverage:"Department Average",GroupAverageValue:"Subordinate Team Avg.: {{value}}h",GroupEfficiency:"Team",GroupGuideContent:"You can view your team's approval efficiency, comparison with other teams, and less efficient approvers in your team.",GroupGuideTitle:"New Team Efficiency Diagnosis",GroupKeep:"Your {{type}} has decreased {{time}}, but a gap still exists between your data and the team's average. Keep it up.",GroupName:"{{user}}'s Team",GroupNotice:"Your {{type}} has increased {{time}}, and a gap exists between your data and the team's average. Mind your efficiency.",GroupOverview:"Team Efficiency Overview",GroupRank:"Team Ranking",GroupSteady:"Overall, your {{type}} has been stable {{time}}, but a gap still exists between your data and the department's average. Keep it up.",GroupTrendAnalysis:"Team Trend Analysis",Guide:"to view your efficiency report.",GuideContent:"You can view your approval efficiency and ranking within your department.",GuideTitle:"Add Efficiency Diagnosis",Here:" here ",HigherThanGroup:"More than {{rate}} of approvers in the department",HisSubGroup:"Their Subordinate Teams",HisSubStaff:"Their Direct Subordinates",Hour:"hours",Indicators:"Data Description",Keep:"Your {{type}} has decreased {{time}}. Keep it up.",LastMonth:"Last month",LastMonthText:"In the last month",List:"requests",LowerThanGroup:"Less than {{rate}} of approvers in the department",MyAverage:"My Average",MyEfficiency:"My Efficiency",MySubGroup:"My Subordinate Teams",MySubStaff:"My Direct Subordinates",NearlyWeeksText:"Last {{count}} weeks",NeedOptimize:"Tasks to be optimized",NoApproval:"You had no approval tasks completed in the last 14 days.",NoBarData:"No data available",NoGroupData:"No data available",NoPersonalData:"No one in this cycle has processed any approvals",Nodata:"No approval data for the selected time range",Notice:"Your {{type}} has increased {{time}}. Mind your efficiency.",Oncall:"Contact Customer Services",OnlyOwnerData:"Only you have processed approvals in this cycle. No team data",OvertimeRate:"Pending for 48+ hours",OvertimeText:"approval timeout rate",PC_Efficency_label:"This feature has not been enabled on the PC client.","PC_Efficency_label-1":"Use your {{BRAND_DISPLAY_NAME}} mobile app to scan the QR code and view it.",Person:"Personnel Diagnosis",PersonOverview:"Overview of personal efficiency",PersonaAverageValue:"Direct Subordinate Avg.: {{value}}h",Personal:"Personal Efficiency",PersonalOverview:"Personal Overview",Process:"Process Diagnosis",ProxyApproval:"Delegate Rate",ProxyApprovalLabel:"Percentage of the number of OA approval tasks processed by other employees on your behalf among all your OA approval tasks. ByteDance requires the approver to process documents in person instead of delegate approval ",SecondApproval:"Speedy Rate",SecondApprovalLabel:"Among the four major OA tasks, percentage of approvals that are completed within 5 seconds. Ask team members to avoid speedy approvals when processing complex approvals.",SecondInfo:"Among all done tasks, percentage of tasks that are processed using more than 48h",SecondRate:"Instant approval rate",SecondRateDecreaseAlert:"Within {{time}}, {{title}} has decreased. Remind the team approvers to conduct the approvals carefully and avoid speedy approval and other imprudent behaviors.",SecondRateIncreaseAlert:"Within {{time}}, {{title}} has increased. Remind the team approvers to conduct the approvals carefully and avoid speedy approval and other imprudent behaviors.",SecondRateStableAlert:"Within {{time}}, {{title}} remains stable. Remind the team approvers to conduct the approvals carefully and avoid speedy approval and other imprudent behaviors.",Steady:"Overall, your {{type}} has been stable {{time}}. Keep it up.",SubGroupEfficient:"Subordinate Team Efficiency",SubordinateTeam:"Subordinate Team",SubordinateTeamOverview:"Subordinate Team Approval Timeliness",TabCreate:"Initiate",TabEff:"Efficiency",TabList:"Approval",TeamOvertimeRate:"48h+ Approval Rate",TeamOvertimeRateLabel:"Among all tasks completed by team members, percentage of tasks that are processed using more than 48h",TeamOverviewDataTip:"Data increases are compared with those in the last cycle.",TeamOverviewDataTipV2:"Data increases are compared with those in the last cycle. ",TeamTrendDecreaseAlert:"Within {{time}}, the teams {{type}} has decreased. Remind the team approvers to pay attention to their efficiency.",TeamTrendIncreaseAlert:"Within {{time}}, the teams {{type}} has increased. Remind the team approvers to pay attention to their efficiency.",TeamTrendStableAlert:"Within {{time}}, {{type}} remains stable. Remind the team approvers to keep it up.",TeamTrendText:"In {{time}}, the {{type}} of the team has {{trend}}, please remind the team approver to pay attention to efficiency.",ThirdInfo:"Percentage of the number of OA approval tasks processed by others on behalf of you among all your OA approval tasks. ",ThirtyDays:"Last 30 days",ThirtyDaysText:"In the past 30 days",TimeFormat:"YYYY-MM",TimeFormatText:"{{month}} {{year}}",TimeRange:"No approval data in the selected time range",TimeSelected:"Date Range:",To:"to",TrendAnalysis:"Trend analysis",TrendInfo:"Trend Analysis",TrendInfoText:'To improve the data readability, all values in the trend analysis chart must be a cumulative average in the last 7 days. For example, the data on Mar 10 is "Cumulative average from Mar 4 to Mar 10".',TwoWeeks:"Last 14 days",TwoWeeksText:"In the past 14 days",ViewAllTrend:"View Overall Trend Analysis",ViewMoreData:"View More Data",Wait:"New features will gradually be opened. Stay tuned",getDetailData:"Export Detailed Data",lowVersion:"You cannot access this page with your current {{BRAND_DISPLAY_NAME}} version. Please upgrade your app to the latest version.",oneWeek:"Last 7 days",updateFeishu:"Upgrade {{BRAND_DISPLAY_NAME}}",viewConfirm:"Got it",viewDetail:"The approval bot will push the detailed data to you. Please check."},ApprovalForm:{AttachmentDelete:"Delete",AttachmentNeedUpload:"Please update to the latest version.",AttachmentPreview:"Preview",AttachmentUndownloadable:"Failed to download the attachment. Please try again.",AttachmentUnpreviewable:"Preview unavailable. Please download the file from desktop app to view it.",DateIntervalIncomplete:"Please enter both {{startName}} and {{endName}}.",ModifyErrorText:"The number of characters exceeds the upper limit.",ModifyErrorTosat:"The reason for modification is that the number of characters exceeds the upper limit.",NoAvailableOptions:"No available options",UnableToFill:"The submission page has changed. Please resubmit your request.",UploadAttachment:"Attachment",UploadImage:"Images",Uploading:"Uploading..."},ApprovalForm_InvalidDefId:"The link is configured incorrectly, please contact the administrator",ApprovalForm_SystemErrorHint:"System exception. Close the page and try again.",ApprovalForm_UniqueIdConflict:"Submitted successfully. You can view this approval details in the Submitted list",ApprovalGroups_All:"All",ApprovalLIst:{CC:"CC"},ApprovalList:{Delegation:"Agent",DelegationSubmit:"Submit",DelegationTitle:"Select agent"},ApprovalList_CanceledPrefix:"{{name}}(Canceled)",ApprovalList_DelayHint:"{{bizName}} can't update the approval status in real time. It'll be updated automatically after 30 seconds.",ApprovalList_From:"From {{bizName}}",ApprovalList_ModifiedPrefix:"{{name}} (Modified)",ApprovalList_NewApprovalRefresh:"You have a new approval. Please refresh to view.",ApprovalList_PendingListCleared:"All done!",ApprovalList_PendingListClearedNew:"All to-dos have been completed.",ApprovalList_PeopleEllipsis_plural:"{{count}} people in total including {{prefix}}",ApprovalList_Requester:"Requester",ApprovalList_Shortcut_Confirm_to:"Confirm",ApprovalList_Shortcut_Failed:"Failed to submit. Please try again.",ApprovalList_Shortcut_Involved_Funding:"involves funds",ApprovalList_Shortcut_Involved_Important_Info:"involves important information",ApprovalList_Shortcut_Involved_Sensitive_Info:"involves sensitive information",ApprovalList_Shortcut_Involving_Funding:"Involving funds",ApprovalList_Shortcut_Involving_Important_Info:"Involving important information",ApprovalList_Shortcut_Involving_Sensitive_Info:"Involving sensitive information",ApprovalList_Shortcut_Modal_Title:"Are you sure to {{actionName}} {{approvalName}}?",ApprovalList_Shortcut_Modal_Title_Short:"Are you sure to {{actionName}} this request?",ApprovalList_Shortcut_Need_Filling:"needs to fill in approval info",ApprovalList_Shortcut_Submittig:"Submitting",ApprovalList_Shortcut_Success:"Submitted successfully",ApprovalList_Shortcut_To_Be_Filled:"Approval info needs to be filled in",ApprovalList_Shortcut_Unavailable_Hint:"This request {{reasonType}}. Please process it on Details page.",ApprovalList_Shortcut_Unavailable_Hint_Long:"This request {{reasonType}}. Please process it on Details page.",ApprovalList_Time_Filter_Custom:"to",ApprovalList_ViewTypeCanceled:"General list",ApprovalList_ViewTypeChanged:"Sort by type",ApprovalList_WaitDays:"Waited for {{count}} day",ApprovalList_WaitDays_plural:"Waited for {{count}} days",ApprovalOperation:{Guide:'You can revoke your actions within 2 minutes after clicking "Approve" or "Reject".',Know:"Got It",Remind:"The current approver has completed the approval. Approval actions are taking effect. Please wait.",Revoke:"Cancel Approval",RevokeCountdown:"You can cancel an approval within 2min.",RevokeDoubleCheck:"Are you sure you want to cancel your approval actions? Once canceled, the task will be reset to the to-do status.",RevokeTips:"The revocation period has expired.",Toast:"Approval takes effect after 01:20.",Toast1:"Revoke Successful",Toast2:"Revoke failed. Please try again later."},ApprovalSearch:{All:"All",CeoInputPlaceholder:"Search for CEO's approvals.",CeoTitle:"CEO's Approvals",ConfirmFilter:"Done",EmptyHintTip:"Enter keywords to search",EnableFilterHint:'Viewing range filtered to "All {{scope}}s"',EnableFilterHintV2:'Selected "{{mainContent}}"',EnableFilterHintV2_:"Selected: {{mainContent}}",FilterGuideHint:"Recommended: {{count}} approvals from {{scope}}",FilterGuideHintV2:"Your {{scope}} have {{num}} eligible approval.",FilterModal:{Btns:{Confirm:"OK",Reset:"Reset"},FilterSubordinates:{Label:"Filter {{scope}}s",OperateBtn:"Add"},Title:"Viewing range"},FilterSearch:"Filter:",FilteredToastMainContent:"{{userName}} (total: {{num}})",InputPlaceholder:"Title, requester, number, content",ListCountChanged:"Number of listed requests has changed. {{actionBtn}} to view the latest data.",ListItem:{SourceTip:"{{approvalType}} from {{userName}}"},NoDateTip:"No search results",NotSupportSubordinateModal:{Content:"This system doesn't support superiors to view subordinates' approvals now. You might have no permission to view these documents. Contact the initiator {{user}}."},OtherDefTypesLabel:"Other",Refresh:"Refresh",Staff:"employee",Subordinate:"subordinate",TaInputPlaceholder:"Search for Ta's approvals.",TaTitle:"Ta's Approvals",Title:"Search",empty:"No results found"},ApprovalTitle:"{{name}}'s {{approvalName}}",Approval_AppDesc:"A simple, efficient, and open approval tool",Approval_AppName:"Approval",Approval_ExpandSidebar_GotoApproval:"Open in the Approval App",Approval_effect:"Approval is effective in 1 minute 20 seconds",Approval_tips:"This task has been processed by someone else and is taking effect. Please view the latest status in 2 minutes.",ApproverAgreed:"approved",ApproverRangeSelect_Clear:"Empty",ApproverRangeSelect_Contact_Admin:"Contact administrator: ",ApproverRangeSelect_DesignatedUser:"The specified member",ApproverRangeSelect_DesignatedUser_Multi:"You can only select from the specified members below",ApproverRangeSelect_DesignatedUser_Single:"You can only select 1 person from the specified members below",ApproverRangeSelect_Empty:"No approvers to select",ApproverRangeSelect_NoResult:"No results found. Please search again with the correct name.",ApproverRangeSelect_Picker_Title:"Select approver",ApproverRangeSelect_Placeholder:"Search",ApproverRangeSelect_Role_Empty:'The administrator sets the role "{{roles}}" to review approval requests, but there are no members under this role that can manage the requesters.',ApproverRangeSelect_Role_List:"Role list",ApproverRangeSelect_Role_Multi:"You can only select up to 25 people from the members below",ApproverRangeSelect_Role_Single:"You can only select 1 person from the members below",ApproverRangeSelect_SearchEmpty:"No results found. Please search again with the correct name.",ApproverRangeSelect_SelectAll:"Select all",ApproverRangeSelect_Selected_Count:"Selected: {{count}}/25",ApproverRangeSelect_Selected_Count_PC:"Selected: {{count}}",ApproverRangeSelect_UnknownRole:"Unknown role",ApproverRangeSelect_User_Empty:"The administrator sets the specified members to review approval requests, but the specified members aren't available.",ApproverRedirected:"forwarded to",ApproverRejected:"rejected",ApproverTypeList_DepartmentManagerBottomUp_1:"Direct department supervisor",ApproverTypeList_DepartmentManagerBottomUp_10:"Level 10 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_11:"Level 11 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_12:"Level 12 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_13:"Level 13 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_14:"Level 14 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_15:"Level 15 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_16:"Level 16 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_17:"Level 17 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_18:"Level 18 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_19:"Level 19 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_2:"Level 2 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_20:"Level 20 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_3:"Level 3 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_4:"Level 4 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_5:"Level 5 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_6:"Level 6 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_7:"Level 7 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_8:"Level 8 department supervisor",ApproverTypeList_DepartmentManagerBottomUp_9:"Level 9 department supervisor",ApproverTypeList_DepartmentManagerTopDown_1:"Top department supervisor",ApproverTypeList_DepartmentManagerTopDown_10:"Level 10 department supervisor",ApproverTypeList_DepartmentManagerTopDown_11:"Level 11 department supervisor",ApproverTypeList_DepartmentManagerTopDown_12:"Level 12 department supervisor",ApproverTypeList_DepartmentManagerTopDown_13:"Level 13 department supervisor",ApproverTypeList_DepartmentManagerTopDown_14:"Level 14 department supervisor",ApproverTypeList_DepartmentManagerTopDown_15:"Level 15 department supervisor",ApproverTypeList_DepartmentManagerTopDown_16:"Level 16 department supervisor",ApproverTypeList_DepartmentManagerTopDown_17:"Level 17 department supervisor",ApproverTypeList_DepartmentManagerTopDown_18:"Level 18 department supervisor",ApproverTypeList_DepartmentManagerTopDown_19:"Level 19 department supervisor",ApproverTypeList_DepartmentManagerTopDown_2:"Level 2 department supervisor",ApproverTypeList_DepartmentManagerTopDown_20:"Level 20 department supervisor",ApproverTypeList_DepartmentManagerTopDown_3:"Level 3 department supervisor",ApproverTypeList_DepartmentManagerTopDown_4:"Level 4 department supervisor",ApproverTypeList_DepartmentManagerTopDown_5:"Level 5 department supervisor",ApproverTypeList_DepartmentManagerTopDown_6:"Level 6 department supervisor",ApproverTypeList_DepartmentManagerTopDown_7:"Level 7 department supervisor",ApproverTypeList_DepartmentManagerTopDown_8:"Level 8 department supervisor",ApproverTypeList_DepartmentManagerTopDown_9:"Level 9 department supervisor",ApproverTypeList_SupervisorBottomUp_1:"Direct manager",ApproverTypeList_SupervisorBottomUp_10:"Level 10 manager",ApproverTypeList_SupervisorBottomUp_11:"Level 11 manager",ApproverTypeList_SupervisorBottomUp_12:"Level 12 manager",ApproverTypeList_SupervisorBottomUp_13:"Level 13 manager",ApproverTypeList_SupervisorBottomUp_14:"Level 14 manager",ApproverTypeList_SupervisorBottomUp_15:"Level 15 manager",ApproverTypeList_SupervisorBottomUp_16:"Level 16 manager",ApproverTypeList_SupervisorBottomUp_17:"Level 17 manager",ApproverTypeList_SupervisorBottomUp_18:"Level 18 manager",ApproverTypeList_SupervisorBottomUp_19:"Level 19 manager",ApproverTypeList_SupervisorBottomUp_2:"Level 2 manager",ApproverTypeList_SupervisorBottomUp_20:"Level 20 manager",ApproverTypeList_SupervisorBottomUp_3:"Level 3 manager",ApproverTypeList_SupervisorBottomUp_4:"Level 4 manager",ApproverTypeList_SupervisorBottomUp_5:"Level 5 manager",ApproverTypeList_SupervisorBottomUp_6:"Level 6 manager",ApproverTypeList_SupervisorBottomUp_7:"Level 7 manager",ApproverTypeList_SupervisorBottomUp_8:"Level 8 manager",ApproverTypeList_SupervisorBottomUp_9:"Level 9 manager",ApproverTypeList_SupervisorTopDown_1:"Top manager",ApproverTypeList_SupervisorTopDown_10:"Level 10 manager",ApproverTypeList_SupervisorTopDown_11:"Level 11 manager",ApproverTypeList_SupervisorTopDown_12:"Level 12 manager",ApproverTypeList_SupervisorTopDown_13:"Level 13 manager",ApproverTypeList_SupervisorTopDown_14:"Level 14 manager",ApproverTypeList_SupervisorTopDown_15:"Level 15 manager",ApproverTypeList_SupervisorTopDown_16:"Level 16 manager",ApproverTypeList_SupervisorTopDown_17:"Level 17 manager",ApproverTypeList_SupervisorTopDown_18:"Level 18 manager",ApproverTypeList_SupervisorTopDown_19:"Level 19 manager",ApproverTypeList_SupervisorTopDown_2:"Level 2 manager",ApproverTypeList_SupervisorTopDown_20:"Level 20 manager",ApproverTypeList_SupervisorTopDown_3:"Level 3 manager",ApproverTypeList_SupervisorTopDown_4:"Level 4 manager",ApproverTypeList_SupervisorTopDown_5:"Level 5 manager",ApproverTypeList_SupervisorTopDown_6:"Level 6 manager",ApproverTypeList_SupervisorTopDown_7:"Level 7 manager",ApproverTypeList_SupervisorTopDown_8:"Level 8 manager",ApproverTypeList_SupervisorTopDown_9:"Level 9 manager",ApproverType_ApproveRule:"Approval rules",ApproverType_ContinuousSupervisor:"Continuous multi-level manager approval",ApproverType_FormContact:"Contact in the form",ApproverType_FormDepart:"Departments in the form",ApproverType_InitiatorSelect:"Requester self-selection",ApproverType_InitiatorSelf:"Requester",ApproverType_IsvInitiatorSelect:"Requester selects approver / {{name}} app specifies approver",ApproverType_NodeApprover:"Step Approver",ApproverUnit_Assign_Approver:"Specified member",ApproverUnit_Department_Bottom_Top:"Department owner (bottom-up)",ApproverUnit_Department_Top_Bottom:"Department owner (top-down)",ApproverUnit_Direct_Department:"Direct department owner",ApproverUnit_Direct_Leader:"Direct manager",ApproverUnit_Free_Pick:"Requester's choice",ApproverUnit_Highest_Department:"Top department owner",ApproverUnit_Highest_Leader:"Top manager",ApproverUnit_Highest_Leader_Sequential:"Up to the topmost manager",ApproverUnit_Originator:"Requester",ApproverUnit_Role:"Role",ApproverUnit_Sequential_Manager:"Multilevel managers",ApproverUnit_Supervisor_Bottom_Top:"Manager (bottom-up)",ApproverUnit_Supervisor_Top_Bottom:"Manager (top-down)",ApproverUnit_Till_Nth_Leader:"Up to the No.{{n}} level manager",ApproverUnit_To_Nth_Department:"No.{{n}} level department owner",ApproverUnit_To_Nth_Leader:"No.{{n}} level manager",AsOfNow:"By",At_drawer_notSaveTip:"Modified content has not been saved by the system. Are you sure you want to exit?",AttachmentUploadFailedHint:"Failed to upload some of the attachments. Please try again.",BackToIndexButton:"Go to homepage",BatchOperate:{Agree:"Batch Approve",AgreeAll:"Approve All",AgreeAllWithCount:"Approve all the first {{count}} items.",AgreeModalTitle:"Batch approve the selected {{count}} approvals?",AllFail:"All batch approvals failed",AllFailContentSingle:'All {{totalCount}} batch approvals for "{{name}}" have failed due to {{reason}}. Please process them in your "To-do" list.',BatchDialogSureTitle:"Batch approve the selected {{count}} approval?",BatchDialogSureTitlePlural:"Batch approve the selected {{count}} approvals?",BatchNotOpen:"Batch approvals not enabled. Please contact the administrator",BatchNotOpen_1:"Quick Approval must be enabled to carry out batch approvals. Please contact the administrator",BatchNotOpen_2:"Batch process not enabled",BatchOpened:"Administrator has enabled batch process for {{name}}.",BatchOperate:"Batch Process",BatchProcess:"Batch Process",CanNotRepeat:"Unable to perform action. Batch approval is in progress.",CancelBatchOperate:"Cancel",ChatNow:"Contact Now",DealLater:"Try Again Later",DealNow:"Go Process",DefaultAdminName:"Administrator",DoNotRepeat:"Batch approving... Do not repeat the batch approval request",DoNotRepeatOperate:"Batch approving... Do not repeat the process when viewing details",Done:"Batch approval complete",EditableFailed:'Batch actions failed. Batch actions are not supported for "{{name}}" as it is required to fill in relevant content during approval.',Empty:"No documents that can be processed in batches",Error:"Batch approvals failed",Fail:"Batch Process Failed",FailContentMultiDetail:' {{failCount}} approvals failed for the reason of "{{reason}}".',FailContentMultiStart:'Within {{totalCount}} batch approvals for "{{name}}":',FailInfo:"Due to network reasons, {{failCount}} of the {{totalCount}} approvals processed in batches have failed. Please process them again.",FailReasonRequireInput:"Failed to edit form field values",FailReasonThirdError:"Third-party API error",FailReasonTimeout:"Network connection timed out",FirstCount:"First {{count}}",HandlerFailInfo:"Handler step does not support batch approvals at this time.",Loading:"Processing",NotAllowed:"The batch approval permission has not been granted. Contact {{name}} for granting.",NotSupportBatch:"Doc content approvals cannot be batch processed",OperateFailedTitle:"Action Failed",PageTitle:"Approve {{count}} items",PartFail:"Some batch approvals failed",PartFailContentSingle:'Due to {{reason}}, {{failCount}} out of {{totalCount}} batch approvals for "{{name}}" have failed. Please process them in your "To-do" list.',PleaseBeCareful:"To ensure approvals are carefully reviewed, use batch process with caution.",PleaseGoToTodo:'Go to "To-do tasks" to process',Processing:"Processing",Progress:"Batch approving...",Retry:"Resubmit",ServerBusyFailed:"Batch actions failed. Server is busy. Please try again later.",SignatureFailInfo:"Batch actions failed. Batch actions are not supported for {{name}} as it is required to provide handwritten signatures during approval.",SomeFailed:"Part of the approvals failed. Please resubmit them.",StillView:"Continue Opening",Success:"Batch Process Successful",SupportPart:"Some processes support batch approvals",Unsupported:"Batch actions not supported",UnsupportedApproveAction:"Quick Approval needs to be enabled for batch approvals",UnsupportedHandling:"Approvals to handle cannot be batch processed",UnsupportedRequireInput:"Approvals with the need to manually enter content cannot be batch processed",UnsupportedStartUser:"Returned approvals cannot be batch processed",UnsupportedV2:"Quick Approval must be enabled to carry out batch approvals. Contact {{name}} to enable.",ViewDetail:"View Details",WaitingCurrentBatchTask:"Wait until the current batch tasks end and try again."},BeforeSigning:"Pre-approver",BoltModal_CandidateSelector_SubmitText:"OK",BoltModal_ShareToRelated_DescArea:"The administrator sets that it can only be forwarded to personnel related to this approval in order to avoid information security risks.",BoltModal_ShareToRelated_ExtraArea_InputPlaceholder:"Leave a message.",BoltModal_ShareToRelated_SubmitLoadingText:"Submitting...",BoltModal_ShareToRelated_SubmitText:"OK",BoltModal_ShareToRelated_Success:"Shared successfully",BoltModal_ShareToRelated_Title:"Share",Brackets:"({{innerText}})",Brackets_Padding_Space:" ({{innerText}})",Brackets_Semi:"({{innerText}})",Cancel_AlreadyAgreed:"The approval has already been cancelled. You dont need to send a second request.",Cancel_Expired:"Only allow to cancel requests approved within {{day}} days.",Cancel_isCanceling:"The approval is already in the cancel process. You cant send a second request.",Card_DayAgo:"Arrived {{day}} day ago",Card_DaysAgo:"Arrived {{day}} days ago",Card_HourAgo:"Arrived {{hour}} hour ago",Card_HoursAgo:"Arrived {{hour}} hours ago",Card_MinuteAgo:"Arrived {{minute}} minute ago",Card_MinutesAgo:"Arrived {{minute}} minutes ago",Card_Sponsor:"Initiate",Card_Sponsor_Have:"{{count}} persons in total",Card_Tip_Agent:"Approval on Behalf of Others",Card_Tip_Browser:"Only browser display is supported.",Card_Tip_PreApprove:"Pre-approval",Card_Tip_Rollback:"Return to the submitter",Card_Tip_Sidebar:"Only sidebar display is supported.",Card_Tip_SuccessPreApprove:"Pre-approval Completed",CcFreeSelect_LimitTip:"Maximum selection of {{count}} people",Cclist:{HasUnsupportBatchMark:"{{count}} request awaiting. Check your list and view details.",HasUnsupportBatchMark_plural:"{{count}} requests awaiting. Check your list and view details.",MarkAllRead:"Mark all as read",MarkSucceeded:"Marking succeeded",ShowUnread:"View unread only"},Cclist_All:"All",Cclist_MarkAllReadByType:"Mark as read",Cclist_Mark_All_2nd_Confirm:"Mark all CC messages as read?",Cclist_Mark_Current_2nd_Confirm:"Mark CC messages in this list as read?",Cclist_Read:"Read",Cclist_Unread:"Unread",CellSelectSearch_NoOptions:"No options",CellSelectSearch_NoResult:"No results",CellSelectSearch_Placeholder:"Search",ChineseComma:",",ChooseExternalContactDeniedHint:"Unable to add members outside the organization and trusted parties ({{staff_names}})",ClickToCopy:"Click to copy",ClientName:"Client side",CollaborationTenant:"Trust Parties",Colon:": ",Comma:",",Comment:{CancelPlaceholder:"Please enter a reason...",NotifyAt:"Notify @ mentioned teammates",NotifyOwner:"Notify requester",Submiting:"Submitting",TextPlaceholder:"Please enter a comment",TextPlaceholderWithAt:"Enter your comments. You can @mention relevant members.",delete:{content:"Deleting a comment does not notify the relevant person, but the member being @mentioned still has permission to view the approval.",tip:"Comment deleted at {{time}}",title:"Are you sure you want to delete the comment?"}},CommentEmpty:"Enter the comments.",Comment_Content_Empty:"Comments are required, please enter... ",Comment_DataError:"Data error. Click to retry.",Comment_Forwarded_Go_Next:"Transferred successfully. It will automatically jump to the next one.",Comment_Operated_Go_Next:"Reviewed successfully. It will automatically jump to the next one.",Comment_OverCount:"Up to 500 comments can be added per approval",Comment_success:"Commented successfully",Common_AutoCalculate:"Auto-calculation",Contact:"Contacts",CreateApproval_ApprovalEditorAutoAgree:"Auto-approve",CreateApproval_ApprovalEditorAutoReject:"Auto-reject",CreateApproval_Conditional_And:"and",CreateApproval_Conditional_CompareIs:"is",CreateApproval_Conditional_Initiator:"Requester",CreateApproval_Conditional_InitiatorAsCondition_InitiatorIs:"is",CreateApproval_Conditional_InvalidOption:"Invalid option.",CreateApproval_Conditional_Or:"or",CreateApproval_Conditional_When:"When {{condition}}",CreateApproval_Conditional_XXSummary:"{{name}} summary",CreateApproval_Conditional_matchType_anyone:"At least one match",CreateApproval_Conditional_matchType_summary:"Total",CreateApproval_DisplayCondition_All:"Fully matches with",CreateApproval_DisplayCondition_Day:"day(s)",CreateApproval_DisplayCondition_EqualTo:"equal to",CreateApproval_DisplayCondition_GreaterThan:"greater than",CreateApproval_DisplayCondition_GreaterThanOrEqualTo:"greater than or equal to",CreateApproval_DisplayCondition_Hour:"hour(s)",CreateApproval_DisplayCondition_LessThan:"less than",CreateApproval_DisplayCondition_LessThanOrEqualTo:"less than or equal to",CreateApproval_DisplayCondition_One:"Includes any of the following",CreateApproval_DisplayCondition_OutGroupDay:"day",CreateApproval_DisplayCondition_OutGroupHour:"hour",CreateApproval_Flow_ConditionDefaultPlaceholder:"Other",CreateApproval_FormGroup_LeaveGroupType:"Leave type",CreateApproval_FormGroup_OutGroupDuration:"Duration",CreateApproval_FormGroup_OutGroupType:"Out-of-office type",CreateApproval_FormGroup_SignGroupPreview:"Preview Template",CreateApproval_FormGroup_TripGroupAirplane:"Airplane",CreateApproval_FormGroup_TripGroupBus:"Bus",CreateApproval_FormGroup_TripGroupDay:"day(s)",CreateApproval_FormGroup_TripGroupDeparture:"Departure",CreateApproval_FormGroup_TripGroupDestination:"Destination",CreateApproval_FormGroup_TripGroupDuration:"Trip duration (Day)",CreateApproval_FormGroup_TripGroupOther:"Other",CreateApproval_FormGroup_TripGroupTrain:"Train",CreateApproval_FormGroup_TripGroupTransportation:"Transportation",CreateApproval_FormGroup_WorkGroupHour:"hour(s)",CreateApproval_FormGroup_WorkGroupInterval:"Duration (hours)",CreateApproval_FormGroup_WorkGroupType:"Overtime type",CreateApproval_InvalidQRCode:"Invalid QR code. Please scan the preview QR code.",CreateApproval_QRCode_Scan_Failure:"Failed to scan the QR code. Please try again.",CreateApproval_RedirectTo_Failure:"Failed to scan the QR code. Please try again.",CreateApproval_SystemAutoAgree:"Automatically approved",CreateList:{AllDefinition:"All Applications",ApprovalCategory:"Application Classification",CustomCreate:{Content:"Want custom approval? ",Content_V2:"To create more processes ",Create:"Create custom approval",CustomApprovalProcess:"Custom approval process",GoTo:"Go to",IfCreated:"Go to view created approvals.",IfNotSuitable:" is the above approval not applicable? ",Introduce1:"It will be online once the administrator approves it to help you and your team work even more effectively.",Introduce2:"You can create your own forms and design your own approval process.",Introduce3:"Create approvals from templates or create your own for increased efficiency for you and your team.",Link:"Click here.",Popover:{Content:"Our rich controls support various process scenarios, and professional process consultants teach you how to build processes step by step.",ContentV2:"Employees can independently create custom approvals, design forms, and configure approval steps, or quickly select a template from the template library.",OkText:"Got It",Title:"Custom creation of processes is now supported.",TitleV2:"You can create custom approvals."},Process:"Custom approval process",View:"View",ViewCreated:"View created approvals"},CustomCreateModal:{Cancel:"Cancel",Content:"In order to improve the normalization of ByteDance self-built processes, ByteDancers must submit a creation application when creating a Feishu approval. They can only enable the new process after passing the reasonability and normalization review. For details, please view",ContentLink:'"Feishu Approval Creation Application"',Create:"Go to Create",Title:"Custom Approval Creation Description"},DefinitionSearch:"Enter keywords to search for the application.",DefinitionSearching:"Searching",DisplayAllDefinition:"All applications have been displayed",GoBack:"Back",LaunchFailed:"Load failed. Please refresh the page.",NoMatchedData:"No results found. Please try again.",NoSearchResult:"No search results found",PaymentContent:"{{approvalName}} requires features of Basic plan, and can not be applied with free plan. Please contact administrator {{adminName}} to upgrade.",PaymentContentToAdmin:"{{approvalName}} requires features of the Basic plan, and can not be applied with free plan. Please go to admin to upgrade.",PaymentTitle:"Account activation",RecommendedUse:"Recommended",Refresh:"Refresh",SearchPlaceholder:"Please enter the name of the application"},CreateTabText:"Submit",CreatorRecalled:"canceled",Currency_AED:"UAE Dirham",Currency_AFN:"Afghani",Currency_ARS:"Argentine Peso",Currency_AUD:"Australian Dollar",Currency_CAD:"Canadian Dollar",Currency_CHF:"Swiss Franc",Currency_CNY:"Renminbi",Currency_COP:"Colombian Peso",Currency_CZK:"Czech Koruna",Currency_DKK:"Danish Krone",Currency_EGP:"Egyptian Pound",Currency_EUR:"Euro",Currency_GBP:"Pound Sterling",Currency_HKD:"Hong Kong Dollar",Currency_IDR:"Indonesian Rupiah",Currency_ILS:"New Israeli Sheqel",Currency_INR:"Indian Rupee",Currency_JPY:"Japanese Yen",Currency_KRW:"South Korean Won",Currency_MAD:"Moroccan Dirham",Currency_MOP:"Pataca",Currency_MXN:"Mexican Peso",Currency_MYR:"Malaysian Ringgit",Currency_NOK:"Norwegian Krone",Currency_NZD:"New Zealand Dollar",Currency_PHP:"Philippine Peso",Currency_PKR:"Pakistan Rupee",Currency_PLN:"Polish Zloty",Currency_RUB:"Russian Ruble",Currency_SAR:"Saudi Riyal",Currency_SEK:"Swedish Krona",Currency_SF:"SF",Currency_SGD:"Singapore Dollar",Currency_THB:"Thai Baht",Currency_TRY:"Turkish Lira",Currency_TWD:"New Taiwan Dollar",Currency_USD:"US Dollar",Currency_VND:"Vietnamese Dong",Currency_ZAR:"South African Rand",CurrentSigning:"Co-approver",DateIntervalUnit_Day:"Day(s)",DateIntervalUnit_Hour:"Hour(s)",Dayton:", ",DefaultModalConfirm:"Confirm",DefaultModalTitle:"Reminder",DefinitionSearch:{InputPlaceholder:"Search for the approval title"},Delegation:{AgentAvatarTag:"D",AgentRecord:"Delegation Records",AgentXXXForApproval:"Approve on behalf of {{delegate}}",Delegation:"Authorization",DelegationRecord:"Authorization Record",InEffectTips:"{{validCount}} is valid",InitiateDelegation:"Initiate Authorization",InitiateDelegationTips:"Try to process the approval tasks in person, unless it is necessary to have the tasks processed by others on your behalf due to leave or other special circumstances.",InitiateDelegationTips2:"Try to process the approval tasks in person, unless it is necessary to have the tasks processed by others on your behalf due to leave or other special circumstances. Delegation is not supported at the handler step.",NoAgentsTips:"No delegation records",NoDelegationsTips:"No authorization records",NormalDelegationTimeTips:"During this period, the delegate can help you handle all tasks of the selected process. After expiration or manual cancellation, the system will revoke permissions of the delegate.",RelationTips:{AmongPrefix:"Among them,",ForSomeone:"Approve on behalf of {{delegate}}",OneByOne:"{{agent}} approves on behalf of {{delegate}}"},ToBeEffectTips:"{{toValidCount}} is to take effect."},Deleted:"Deleted",DeletedApproval:{ImageTitle:"This document has been deleted and cannot be viewed."},Department_Clear:"Clear",Department_Empty:"No visible departments",Department_NoResult:"No results found. Please enter the exact name to search again",Department_Organization:"Organization",Department_Selected:"Selected:",Department_Selected_Count:"Selected: {{count}}",Department_Selected_Count_plural:"Selected: {{count}}",Department_Selector_title:"Select",Department_Subordinate:"Subordinate",Department_new_placeholder:"Search for the department name.",Department_placeholder:"Enter the exact name to find invisible departments",Detail:{AddApprover:"Added approver",AddCcPerson:"Add CC",AddCommentButton:"Add comment",AddCommentButtonInShort:"Comment",AddReasonCannotEmpty:'"Reason for Adding Approver" cannot be empty. Please enter.',AddTaskButton:"Add Approver",AgreeButton:"Approve",Agreed:"Approved",AndSign:"Everyone assigned",AndSignHint:"Approval from all is required",AndSubmitHint:"All handlers are required to submit.",ApplicantQuitCCAdmin:"{{approverName}} resigned. The request has been notified to your administrator for follow up.",ApplicantQuitCCLeader:"{{approverName}} resigned. The direct manager has been notified to follow up.",Application:"Details",ApprovalCommentsCannotEmpty:'"Approver\'s Comment" cannot be empty. Please enter.',ApprovalConfirmOpinionPlaceholder:"Please enter your opinion...(Optional)",ApprovalConfirmOpinionPlaceholderNew:"Please enter your opinion...",ApprovalDetail:"Details",ApprovalEventsTitle:"Approval Process",ApprovalTitle:"Details",ApproveSuccessWithNextOne:"Go to the next request",ApproverQuitRedirect:"{{approverName}} resigned",CCToNPeople:"{{count}} notified",CCToNPeopleAlready:"{{count}} CC'ed",CCToNPeople_plural:"{{count}} notified",CannotWithdrawAfterPassingFirstApprovalNode:"Once reviewed, this application cannot be revoked.",CannotWithdrawOrOverdue:"This application cannot be revoked/has passed the revocable period.",ChooseRedirectTarget:"Select the referral object",Comment:"Comment",CommentInputPlaceholder:"Enter your comment",CommentSubmitting:"Please wait...",ContentOfRecallConfirm:"Cancel your request?",Deleted:"Deleted",EditButton:"Agree",ExpandButtonText:"View all",FailToPrint:"An error occurred while printing, please try again or contact the administrator",FailedWhenRecall:"Cancel failed",FailedWhenSubmitComment:"Comment failed",FieldListGroupTitle:"Detail {{number}}",FieldList_All:"View all {{len}} lines",FieldList_All_Text:"Full text",FieldList_Item_All:"{{count}} in Total",FieldList_ViewMore:"View More",FreeCCButton:"CC",FromApproval:"From Feishu Approval",FromApprovalNo:"From Feishu Approval | No. {{serialID}}",FromApprovalTooltip:"From Feishu Approval",FromLarkApproval:"From Lark Approval",FromLarkApprovalNo:"From Lark Approval | No. {{serialID}}",FromLarkApprovalTooltip:"From Lark Approval",HandlerConfirmOpinionPlaceholderNew:"Enter your comments.",HintWhenCommentWithoutContent:"Be the first to comment.",HistoryLink:"Edit history",InTurnSignHint:"Review in turns",InTurnSubmitHint:"Sequentially process",LabelOfRedirectPeople:"Transfer to",LongReqHint:"Please wait...",MinusApprover:"Removed",MoreMenuButton:"More",NoPermission:"No permission to view this page",NodeNoApprovers:"Auto-approved as there is no approver at this step.",Notify:"Notified",OrSign:"Anyone assigned",OrSignHint:"Only requires one approver to agree",OrSubmitHint:"Only 1 handler is required to submit.",PreviewFileFailed:"Failed to preview. Please try again.",Process:"Process",ReSubmit:"Create New",RecallButton:"Cancel",Recalled:"Canceled",RedirectButton:"Transfer",RedirectToSomeone:"Transferred to {{name}}",Redirected:"Transferred",RejectButton:"Reject",Rejected:"Rejected",RemindButton:"Remind",RemoveTaskButton:"Remove Approver",Repeated:"Auto",Rollback:"Rolled back",RollbackButton:"Roll Back",RollbackReasonCannotEmpty:'"Reason for Return" cannot be empty. Please enter.',RollbackTitle:"Please select rollback steps",SaveFail:"Save failed",SaveModify:"Save Edits",SaveSuccess:"Saved",SerialID:"No.: {{serialID}}",SerialNumber:"Request No.",Submit:"Submit",SubmitCheckTitle:'Are you sure you want to submit the "{{type}}" application?',Submitted:"Submitted",SubmittedTheApproval:"Submitted the request",SuccessWhenRecall:"Canceled successfully.",System:"System",TheCountOfAndApprovers:"{{count}} people, everyone assigned",TheCountOfAndApprovers_plural:"{{count}} people, everyone assigned",TheCountOfOrApprovers:"{{count}} people, anyone assigned",TheCountOfOrApprovers_plural:"{{count}} people, anyone assigned",TitleOfApprovalConfirm:"Comments",TitleOfApprovalConfirmNew:"Opinion (optional)",TitleOfHandlerConfirm:"Comments",TitleOfHandlerConfirmNew:"Comments (optional)",TitleOfRedirectConfirm:"Transfer this approval",TransferButton:"Transfer",UnderHandler:"Handling...",UnderReview:"Under review",UnexpanButtonText:"Collapse"},DetailTable:{AdminPreviewTip:"Enter the details of the mobile client vertically.",CopyBtnTip:"Copy this line",Empty:"None",IntroTitle:"Description",Mobile:"Mobile Client",NoContent:"No content",NoFile:"No attachments",NoImage:"No images",NoRelativeApproval:"No associated approvals",OperationColumnTitle:"Actions",PC:"PC Client",RemoveBtnTip:"Delete this line",RemoveRowConfirm:"Are you sure you want to delete Line {{index}} ?"},DetailWidget:{DeleteConfirm:"Are you sure you want to delete {{groupName}}?"},Detail_AgreeButton_New:"Approve",Detail_AllowToModifyOnce:"The approval document can only be modified once.",Detail_ApplicantIsStarterAutoAgree:"When the approver and requester are the same person, it'll auto-skip.",Detail_ApplicantIsStarterRedirectedAdmin:"When the approver and requester are the same person, it'll be forwarded to the department supervisor for approval.",Detail_ApplicantIsStarterRedirectedAdminDismiss:"When the approver and requester are the same person, it'll be forwarded to the department supervisor for approval. If there's no department supervisor, it'll auto-skip.",Detail_ApplicantIsStarterRedirectedLeader:"When the approver and requester are the same person, it'll be forwarded to the direct manager for approval.",Detail_ApplicantIsStarterRedirectedLeaderDismiss:"When the approver and requester are the same person, it'll be forwarded to direct manager for approval. If there's no direct manager, it'll auto-skip.",Detail_CanceledInstance:"Cancel process",Detail_CommentButton:"Comment",Detail_Comment_Hint_Content:"You can upload images and attachments in comments. Try it now!",Detail_Comment_Hint_Title:"Updated comment feature",Detail_Comment_fold:"Collapse",Detail_Comment_unfold:"Expand",Detail_ForbiddenModify:"This application cannot be modified.",Detail_HistoryAndModifyLink:"Edit/Modification History",Detail_InTurnSignHint:"Review in turns",Detail_ModifyButton:"Modify",Detail_ModifyLink:"Modification History",Detail_ModifyOverdue:"You can no longer modify this request as the deadline has passed.",Detail_ModifyedInstance:"Modification Process",Detail_OriginInstance:"Previous approval process",Detail_RejectButton_New:"Reject",Detail_SignGroupNameKey:"Letsign Contract Template Name",Detail_SubmittedCanceling:"Submitted",Detail_SubmittedModifying:"Initiate Modification",Detail_TransmitButton:"Forward",Detail_isModifying:"Modification application initiated. Application is in processing",Detail_modifyReason:"Reason for Modification",Detail_modifyRejected:"Modification application initiated. Application is rejected",Detail_modifyRejected_submitter:"Modification application initiated and rejected",Detail_modifyWithdrawed:"Modification application initiated. Application revoked",Detail_modifyWithdrawed_submitter:"Modification application initiated and revoked",Detail_modifyed:"Modification application initiated. Application is approved",DiscussionGroup:{Create:"Create approval discussion group",CreateFailed:"Failed to create. Please try again.",CreateGroup:"Discuss",EnterGroup:"Discuss",GroupMember:"Group Member",GroupMemberHint:"After creation, the requester, the approvers at current and former steps will automatically join the group chat.",GroupMemberHintNew:"An approval group chat will be created. The submitter and related approvers will automatically join the group chat.",Hint:"Any question? Discuss now.",Join:"Enter",JoinFailed:"Failed to enter the chat group. Please try again.",NewCreateGroup:"Create Group",NewEnterGroup:"Join Group",TabText:"Discuss",Title:"Approval discussion group"},Doc_List_UntitledSheet:"Untitled spreadsheet",DoubleQuotes:'"{{innerText}}"',Draft_LastEdited:"Last edited: ",Edit:"Edit",EditHistory:{Deleted:"deleted the content",Title:"Version history"},EndNode_Title:"End",Error:{ApprovalNoPermission:"No permission",ApprovalNotActive:"Approval definition has been disabled.",ApprovalNotExist:"Approval definition does not exist.",CannotModifyTaskGenByAddApprover:"Added approvers cannot modify the process.",Decode:"Failed to decrypt the external data source",GetLarkDepartmentInfoByIds:"Failed to obtain department info",GetLarkUserByIds:"Failed to obtain user info",GetLarkUserByIdsNotExist:"User does not exist.",InvalidUrl:"The URL filled in is invalid. Please check.",InvalidUrlOrToken:"The external data source URL or token cannot be empty.",InvalidWidgetType:"This control type does not support external data.",OuterDataIllegalForm:"Verify the data format of the external data source.",OuterDataResponse:"Verify the data format of the external data source.",OuterDataSourceTimeOut:"Failed to obtain external data source. Please try again.",ResponseFormat:"Verify the data format of the external data source.",SearchUserNotExist:"The user you searched does not exist.",TransferDocument:"Failed to transfer Doc ownership",UserRpc:"Failed to obtain user data",WidgetEmptyValue:'"Control Value" is empty.',WidgetNotFount:"Control info not found. Please check."},ExperienceNow:"Got it",External:"external",External_Tag:"External",FilterSubordinatesPage:{Cancel:"Cancel",Confirm:"OK ({{count}})",FilterAll:{Tag:"All"},SearchInputPlaceholder:"You can search all {{scope}}s",SelectedTitle:"Selected",Title:"Filter {{scope}}s"},FormConnect:{AddInstance:"Add Approval",Count:"Selected: {{count}} request",Count_plural:"Selected: {{count}} requests",DefinitionSearchPlaceholder:"Search task subjects, applicants, nos., or content.",Reminder:"Required. Please select associated request.",SelectConnectApprovals:"Select an approval to associate.",SelectorTitle:"Select associated request",Title:"Add associated request",TransferredToDone:'{{ApprovalName}} has been transferred to "Done".',submitted:" Submitted "},FormWidgetViewer_WorkGroup_Duration2:"Overtime Duration",Form_DetailTitle:"Application Details",Form_UserDepartment_Name:"Department of Submitter",Form_UserDepartment_Tip:"The submitter belongs to multiple departments. Please select the specific department.",FreeCC:{LabelOfContact:"Select persons",LabelOfReason:"Notified reason (optional)",PlaceholderOfReason:"Please enter CC reason",Success:"Notify succeeded"},Free_SelectPerson:"Please select persons",FreedomProcessCCer_Tip:"It will be sent to the CC recipient after the approval ends.",FullStop:". ",GetOptionsFail:"Failed to obtain data. Contact the approval administrator.",GoAuthSetting:"Settings",GoDetailPage:"Details",GoForm:"Fill In",Goto_miniapp:"View Document Details",Guide_IntegrationModalContent:"Gather new requests in OA, Kani, People, and other company systems to achieve one-stop viewing and processing.",Guide_IntegrationModalHint:"People data has been partially imported, and it continues to be imported.",Guide_IntegrationModalTitle:"Integration of approval information within ByteDance",Guide_SortContent:"You can adjust the order to either the longest pending priority or the most recent received priority.",Guide_SortTitle:"Sort by received time",Guide_ViewTypeContent:"Click here to aggregate the same type of approval forms, improving browsing and processing efficiency. ",Guide_ViewTypeTitle:"Sort by type",HasBeenProcessedHint:"This request has been processed by an approver.",HostingActions_CreateChat_ConfirmLoadingText:"Initiating...",HostingActions_CreateChat_DescArea:"Group members can view request details. Please add new members carefully to ensure the security of your information.",HostingActions_CreateChat_ModalTitle:"Invite Member",HostingActions_CreateChat_Success:"Group chat initiated",HostingActions_JoinChat_ConfirmLoadingText:"joining...",HostingActions_JoinChat_CreatedHint:"Group chat already exists. Please join it directly. ",HostingActions_ShareDocument_ConfirmDesc:"After sharing, the recipient can view the document details. Please choose the recipient carefully to avoid information risks.",HostingActions_ShareDocument_ConfirmLoadingText:"Submitting...",HostingActions_ShareDocument_ConfirmTitle:"Share",HostingActions_ShareDocument_Success:"Shared successfully",HourAgo:"{{hour}} hour ago",HoursAgo:"{{hour}} hours ago",IMDefinition_CreateAndShareConfirm:"The current approval will be shared to the conversation and saved to the list",IMDefinition_CreateButton:"Create a New Approval",IMDefinition_CreatedByMe:"Approvals created by me",IMDefinition_DefAttachments:"Attachments",IMDefinition_DefName:"Approval name",IMDefinition_DefNamePlaceholder:"Enter approval name",IMDefinition_DefReasons:"Approval reasons",IMDefinition_DefReasonsPlaceholder:"Please briefly describe the reasons for request as follows: \\nReason1:\\nReason2:",IMDefinition_DeleteConfirm:"Are you sure to delete this approval?",IMDefinition_DeleteFailed:"Failed to delete.",IMDefinition_OnlyCreatorCanEdit:"Only creator can edit.",IMDefinition_RecentlyUsed:"Recently used",IMDefinition_RecordsButton:"History",IMDefinition_Save:"Save",IMDefinition_SaveSucceeded:"Successfully saved.",IMDefinition_Share:"Share",IMDefinition_ShareAfterSave:"Share after save",IMDefinition_ShareApproval:"Share approval",IMDefinition_ShareFailed:"Failed to share.",IMDefinition_ShareSucceeded:"Successfully shared.",IMDefinition_ThirdpartyShareConfirm:"Are you sure to share this approval to current chat?",InstanceAgreed:"Approved",InstanceAllStatus:"All Status",InstanceCancelCanceled:"Cancel recalled",InstanceCancelFailed:"Failed to cancel",InstanceCompleted:"Done",InstanceDeleted:"Deleted",InstanceDeletedHint:"This request was deleted.",InstanceNonStatus:"No status",InstancePending:"Under Review",InstanceRecalled:"Recalled",InstanceRejected:"Rejected",InstanceUnuse:"All",Internal_BackToList:" Back to approval list",Internal_InstallVpn:"VPN not installed? Click here to download",Internal_LinkVpnBtnText:"Connect to VPN",Internal_LinkVpnTip:"Please connect to VPN or company Wi-Fi",Internal_RefreshNetwork:"Refresh",Internal_UnconnectInternal:"Network not connected",JustNow:"Just now",Latest:"latest",LeaveGroup:{BackToModify:"Back to Modify",BalanceUnitDay:"days",BalanceUnitHour:"hours",ConfirmSubmit:"Confirm Submission",ConflictStartEnd:"You have taken leave from {{timeRange}}. To avoid wasting your leave, we recommend you select another period.",ConflictStartEndInstead:"To avoid wasting your leave, we recommend you select another period.",ConflictTimeRange:"You have taken leave for {{timeRange}}, continuing to take leave will result in repeated deduction of your leave credit. Are you sure you want to submit?",ConflictTimeRangeInstead:"continuing to take leave will result in repeated deduction of your leave credit. Are you sure you want to submit?",CurrentHasLeave:"You've already requested leave for this time period.",CurrentNoWork:"No current shift. No need to ask for leave.",DailyBreaksMethod:"Daily Rest Method",DateRangeInvalid:"{{endTime}} must be later than {{startTime}}.",DurationConflictContent:"You already have a leave record of {{timelist}} , please adjust the time",DurationConflictContent_plural:"You already have {{count}} leave records of {{timelist}} , please adjust the time",DurationConflictTitle:"Conflict duration",DurationDesc:"Leave of less than 0.5 {{unit}} will be recorded as 0.5 {{unit}} in attendance record",DurationSubTitleByDays:"{{count}} day of leave",DurationSubTitleByDays_plural:"{{count}} days of leave",DurationSubTitleByHours:"{{count}} hour of leave:",DurationSubTitleByHours_plural:"{{count}} hours of leave",DurationTime:"Duration",DurationTitleByDays:"{{count}} day of leave in total",DurationTitleByDays_plural:"{{count}} days of leave in total",DurationTitleByHours:"{{count}} hour of leave in total",DurationTitleByHours_plural:"{{count}} hours of leave in total",EmptyLeaveList:"No available leaves",EndTime:"End date",FailedWhenGetUserLeaveBalanceList:"Failed to load leave balance. Please try again.",Friday:"Friday",GoConflictDetails:"Details",HolidayPeriod:"Leave Period",LeaveDetail:"View details",LeaveDetail_Text:"Automatic calculation of duration based on schedules ",LeaveDuration:"Leave duration",Monday:"Monday",NextDay:"next day ",NoBalanceDefinition:"{{typeName}} has been deleted. Please select another leave type.",NoBalanceQuota:"{{name}} leave balance is insufficient.",NoBalanceQuotaInDuration:"Balance is less than {{count}} hour. Please select again.",NoBalanceQuotaInDuration_plural:"Balance is less than {{count}} hours. Please select again.",NoBalanceQuotaInRange:"You don't have enough leave balance for the dates requested.",NoDayBalanceQuotaInDuration:"Balance is less than {{count}} day. Please select again.",NoDayBalanceQuotaInDurationDefault:"Balance is not enough. Please select again.",NoDayBalanceQuotaInDuration_plural:"Balance is less than {{count}} days. Please select again.",NoZeroLeaveDuration:"Leave duration should be greater than 0",PageTitle:"Duration details",PleaseUploadCertificate:"Upload the written request for leave.",Remind_Day:"({{count}} day left)",Remind_Day_plural:"({{count}} days left)",Remind_Hour:"({{count}} hour left)",Remind_Hour_plural:"({{count}} hours left)",RestDay:"Off during this time period, not calculated into leave time",Saturday:"Saturday",StartTime:"Start time",Sunday:"Sunday",Thursday:"Thursday",Tuesday:"Tuesday",TypeLabel:"Leave type",ViewLeaveDetails:"View Leave Records",Wednesday:"Wednesday",fetchTimeZoneError:"Failed to get time zone"},LeaveGroup_DayBalanceQuota:"({{count}} days remaining)",LeaveGroup_Exclude_Hint:"Weekends and public holidays will be automatically removed from the leave duration.",LeaveGroup_Exclude_Hint_Holiday:"Automatically exclude statutory holidays when calculating leave duration",LeaveGroup_Exclude_Hint_Weekend:"Automatically exclude weekends when calculating leave duration",LeftParen:"(",ListApproved:"Reviewed",ListCC:"CC'd",ListCreated:"Submitted",ListDone:"Done",ListPending:"Pending",ListTabText:"Approval",ListUpcoming:"To-do",Loading:"Loading",Maintab_CurrentApprovalProcessed:"This approval is resolved.",Maintab_NewApprovals:"New approval",Maintab_NewApprovalsProcessed:"New approval is resolved.",Menu:{Other:"Others"},MinuteAgo:"{{minute}} minute ago",MinutesAgo:"{{minute}} minutes ago",ModalCancelText:"Cancel",ModalConfirmText:"Confirm",Modal_Button_Text:"Close",Modify:"Edit",ModifyApproval:"Modification Approval",ModifyNotice:"The modification needs to be approved by the approver and the application can only be modified once.",ModifyProcess:"Modification Process",ModifyProcessIndex:"Modify Approval Process {{index}}",ModifyReasonInput:"Specify the reason for modification.",ModifyReject:"Modification application initiated. New application has been rejected and the original one is still valid.",ModifyTag:"Modify",ModifyWithDraw:"Modification application initiated. New application has been revoked and the original one is still valid.",NewVersionComing:"Restart the app to upgrade to an improved version.",NewVersionComingBtn:"Click to restart",NoAuthConfirm:"OK",NoAuthHint:"You don't have permission to re-submit this request.",NoContent:"No content",NoExternalChat:"You can't forward this approval to external contacts.",NoExternalStaff:"External staff are invalid",NoMoreDatas:"No more data.",NoPermissionTip:"No permission",NoSysAuthHint:"Please enable {{name}} permissions.",Now:"Now",NowNotSupportModify:"This application cannot be modified.",Old_SuiteApproval_Approver:"Approver",Old_SuiteApproval_Cc:"CC",Old_SuiteApproval_LeaveGroupDur:"Leave duration",Old_SuiteApproval_Unit:"Unit",OnBoard:{BannerDesc:"View detail",BannerTitle:"Create more approvals.",ModalBtn:"I see",ModalDesc:"Approval is to help you get through the complicated approval process offline for business trips, reimbursements and purchases. Approval management has never been easier. Check it out now!",ModalTitle:"Welcome to Approval"},OnBoarding:{Button:{CollapseSidebar:"Hide Navigation",ExpandSidebar:"Show Navigation",GotIt:"Got It"},OpenWindowTips:"Click here to open Feishu approval in a separate window.",ToggleSidebarTips:"Click here to show the navigation bar to view to-do, done, and initiated content and content that CC'd to me."},Operate_ForwardSuccess:"Forwarded successfully",Operate_HintOfCancelConfirm:"This request has been approved. To cancel it, you need to get approved.",Operate_PlaceholderOfCancelConfirm:"Reason (optional)",Operate_PlaceholderOfForwardConfirm:"Transfer reason (optional)",Operate_PlaceholderOfForwardConfirmnew:"Reason for Transfer",Operate_TitleOfCancelConfirm:"Cancel Approval",Operate_TitleOfForwardConfirm:"Transfer this approval",Operation:{AgreeSuccess:"Approved.",RejectBackToList:"Rejected. Returning to list...",RejectNextDetail:"Rejected. Loading the next request...",RejectSuccess:"Rejected.",SuccessBackToList:"Approved. Returning to list...",SuccessNextDetail:"Approved. Loading the next request..."},Optional:"Optional",OutGroup_NoZeroDuratioin:"Out-of-office duration must be greater than 0.",PC:{AddApproverTitle:"Add approver",AddBtn:"Add",AddressRecommends:"Recommended",AddressSelect:"Select {{level}}",AdminNoApproval:"No approvals app exists. Log in the admin backend to create an approval process to help you work more efficiently.",AgreeCheckTitle:'Approve "{{type}}" request?',ApprovalAdmin:"Approval Admin",ApprovalTitle:"{{people}}'s {{name}} application",BarBrowser:"Open in Your Browser",BarComment:"Comments",BarCommentGuide:"You can view comments at this portal.",BarFullwindow:"Zoom in",BarFullwindowQuit:"Zoom out",BarHelpdesk:"Contact Customer Services",BarLinkCopy:"Copy URL",BarPrint:"Print",BarRefresh:"Refresh ",BarShare:"Share",BarTitle:"From {{Source}}",CcPerson:"Notified",Cclist_ShowAll:"View all",CopyBtn:"Copy",DateTo:"to",DelApproverCheckTitle:"Remove approver",DeleteBtn:"Delete",DetailBrowserHint:"This document needs to be opened via your browser.",DetailDrawerHint:"This request will be displayed on the right sidebar.",Detail_EllMore:"{{count}} persons",Error_AttachmentNotSupport:"Preview unavailable. Please download to view.",Error_EmptyFile:"Unable to upload an empty attachment. Please select another attachment.",Error_GetDetail:"Failed to load approval details. Please try again.",Error_IntervalEmptyEnd:"Please enter {{endTime}}",Error_IntervalEmptyStart:"Please enter {{startTime}}",Error_IntervalEmptyStartAndEnd:"Please enter {{startTime}} and {{endTime}}.",Error_LeaveNoBalance:"Your {{typeName}} leave balance is insufficient.",Error_NoZero:"Leave duration should be greater than 0",Error_Redirect:"This request cannot be transferred to people already in the approval workflow. Please select another person.",Flow_Submit:"Submitted",GoMobile:"Unavailable on desktop client yet, please use mobile client to view it. ",ListShowUnread:"{{count}} results in total",ListSubmit:"Submit",LocaltionTabArea:"District/County",LocaltionTabCity:"City",LocaltionTabCountry:"Country",LocaltionTabProvince:"Province/State",LowVersionTip:"Your client version is too low to directly open the document for details. Click to ",More:"More",NavigationBar:{ApprovalAdmin:"Approval Admin",Refresh:"Refresh",Setting:"Settings"},NewApprovalAdmin:"Admin Console",NextAgreed:"Approved",NextRejected:"Rejected",NextWithdrawn:"Canceled",No:"No",NoApprovalGuideButton:"Go to Approval Admin",NoApprove:"No requests. Have a nice day!",NoSelected:"No approval selected",OpenBrower:"Open in Your Browser",OpenDetail:"Click to view details.",OpenDetailBrowser:"Open Browser to View",OpenDetailDrawer:"Display Sidebar",Payer_CommonModalContent:"{{approvalName}} requires features of Basic plan, and can not be applied with free plan. Please contact administrator {{userName}} to upgrade.",Payer_CommonModalContent_self:"This feature is only available in the standard version of the Approval App, which your company has not yet purchased.",Payer_GoPurchase:"Purchase now",Payer_IKnow:"OK",PickPersonHint:"Please select a person",PickTransfereeHint:"Please select the transferee",PleaseFilledFirst:'Fill in "{{name}}" before making selections.',RedirectCheckTitle:"Transfer to:",RedirectReason:"Reason",RejectCheckTitle:'Reject "{{type}}" request?',RelativeApproverDesc:"{{title}} created on {{time}}.",RelativeApproverTitle:"Associated approval",ReminderTitle:"Select approver to remind",Rollback_All:"Roll back all",SearchPlaceHolder:"Search",SelectAll:"Select all",SelectUpdated:"Data updated",SelectedPeopleNumber:"Selected: {{number}}",Selected_Number_people:"Selected: {{number}} members",ToastCopyFail:"Failed to copy URL",ToastCopySuccess:"URL copied successfully",UpgradeBtn:"Upgrade the client",ValidateCountryAndProvinceNoEmpty:"Please enter your country/province",ValidateLeaveConflict:"Leave already requested during the selected time range. Please select again.",ValidateLocationDetailNoEmpty:"Please enter your location details",ValidateNoEmpty:"Required",WithdrawCheckTitle:"Cancel your request?",Yes:"Yes"},PCListTabApproved:"My approvals",PCListTabCc:"Notified",PCListTabSubmit:"Submit a request",PCListTabSubmitted:"Submitted",PM:"PM",PatchNeedComment:"You need to fill in your approver's comment for some documents, so they cannot be approved in batches. You can fill in your approver's comment before re-submission.",Pending:"Under Review",PicUploadFailedHint:"Failed to upload some of the pictures. Please try again.",PictureCount:"{{count}} image",PictureCount_plural:"{{count}} images",Popup:{Cancel:"Cancel",Confirm:"Confirm",DuplicatedApproverHint:"The user is an approver already.",DuplicatedHandlerHint:"The user is already a handler.",FailedHint:"Approval failed.",PickAccepterHint:"Please select the transferee",SuccessHint:"Approved successfully.",ToSelfHint:"You cannot transfer it to yourself."},PreviewNodes:{ClearContextDescription:"To select this employee as an approver, confirm that the necessary previous approvers (such as the business line leaders and project owners) have been added and that the approval context is complete and clear.",ConfirmClearContext:"Confirm that approvers are properly set and that the context is clear.",End:"End",Failed:"Failed to preview the process. Please try again.",FollowUpProcess:"Follow-up process",InvalidMessage:"Please select approvers for {{nodeName}}",NotEnd:"Once the approver adds the information, you can view the entire approval process.",Refresh:"Refresh",Start:"Start",Title:"Approval Process",ValidateIntegrity:"Please fill in required information to view the full approval process."},Preview_PageTitle:"Process preview",Print:{ApprovalContent:"Approval Content",ApprovalOperator:"Operator",ApprovalRecord:"Actions History",AttachCount:"Attachments: {{count}}",AttachmentCount:"{{count}}",CountAs:" (Count as {{workType}} by hour)",ImageCount:"Images: {{count}}",PictureCount:"{{count}}",SerialNumber:"Application No.",TripDuration:" (Total duration {{interval}})",TripReason:"Purpose",TripSummary:"Travel summary",approvalTime:"Application Date",brackets:"'{{name}}'",modifyReasonContent:"Reason Description",nodeName:"Step",print_time:"Printed at",print_user:"Printed by",qrCodeTips1:"Use your {{APP_DISPLAY_NAME}} mobile app to",qrCodeTips2:"Scan QR code to view approval details.",qrCodeTips3:"Scan the QR code with {{APP_DISPLAY_NAME}}"},Print_Instance_No_Permission:"No document permission",Quotes:"'{{innerText}}'",Recalled:"Canceled",Redirected:"Transferred",Regulation:{policy:"Relevant Policies",viewPolicy:"View relevant policies for this process",viewPolicy_mobile:"View relevant policies"},RejectWillRecover:"After rejection, the original approval document is still valid.",Rejected:"Rejected",RemindCardPreview_BotTitle:'The "{{approval}}" submitted by {{user}} is awaiting your approval.',RemindCardPreview_ButtonCancel:"Cancel",RemindCardPreview_ButtonSubmit:"Send Notification",RemindCardPreview_LabelContent:"Approval Reason",RemindCardPreview_LabelUser:"Requester",RemindCardPreview_MainTip:"Send the notification above to the approvers and be redirected to the chat box.",RemindCardPreview_SendTo:"Send to",Reminder:{Accepter:"Recipient",AlreadyApproved:"Your selected approvers processed the request.",CantDoReminder:"You can only remind once within 24 hours",ConfirmButton:"Confirm",DefaultMessage:"Please approve my {{name}} as soon as possible.",Fail:"Failed to send reminder.",GetApproversFailed:"Failed to load the approver list.",MaxCount:"Remind up to 16 people only.",NoReminder:"No members to remind",ReminderHint:"Will be sent to the approvers as a chat message",Success:"Reminder sent.",Title:"Select approvers to remind",submit:"Send"},RemoveTask:{DetailDesc:"Deleted approver: {{involvedUserList}}",Fail:"Failed to remove approver.",RemoveReason:"Reason",RemoveSignHint:"Remove people who have been added into the current step only.",ResetButton:"Reset",Success:"Removed successfully."},Repeated:"Auto",Required:"Required",RestartModalText:"Approval needs to be updated, please click update to restart.",RestrictChat:"This action can't be performed as the administrator has restricted request reminders through private chats.",Resubmit:{DefinitionDeleted:"Failed to resubmit. This approval has been deleted.",DefinitionDisabled:"Failed to resubmit. This approval has been disabled.",DefinitionInvisible:"You don't have permission to submit this request.",SubmitInAttendance:"Please use the Attendance app to submit your approval."},Resubmit_SubmitInISV:"Please use the {{name}} app to submit your approval.",Retry:"Try again",ReviewedList_SortType_Asc:"Earliest reviewed",ReviewedList_SortType_Desc:"Latest reviewed",RightParen:")",Role_Approver:"Approver",Role_Approver_DONE:"Approval Completed",Role_Approver_PREVIEW_TODO:"Pending approval",Role_Approver_TODO:"Processing",Role_CC:"CC recipient",Role_Requester:"Requester",Role_SubmitterDelgate:"Submitter (delegate)",Rollback:{CheckboxMore:"Show {{num}} approvers",Fail:"Failed to roll back.",GetNodeHistoryFail:"Failed to load previous steps.",NoAvailableNodes:"No available nodes",PageTitle:"Please select rollback steps",PickPersonHint:"Please select a person",PleaseChooseANode:"Please select approval steps",Reason:"Reason",Rollback:"Return",RollbackAllHint:"Resume from the step you rolled back to?",RollbackAlready:"sent back",RollbackButton:"Send Back",RollbackEditing:"Modification in Progress",RollbackFail:"Return Failed",RollbackListMsg:"Returned for approval. Proceed in details page.",RollbackNoAvailableNodes:"No available steps",RollbackPageTitle:"Return Step Selection",RollbackReason:"Reason for Return",RollbackSubmit:"Submit",RollbackSubmitAgain:"Submit",RollbackSuccess:"Return Successful",RollbackTo:"Return to",RollbackWillContinueWithYou:"After it's approved by the members selected here, the request will be submitted for your approval again.",SubmitCheckTitle:"Are you sure you want to resubmit the {{type}} request?",Success:"Rolled back successfully."},RollbackEvent:"Rolled-back step approved.",SMB:{Form:{Scope:{Account:{Input:{Between:"Enter an amount between {{minValue}} and {{maxValue}}.",Less:"Enter an amount not less than {{minValue}}.",More:"Enter an amount not greater than {{maxValue}}."}},AllInput:{Between:"Must be between {{minValue}} and {{maxValue}}.",Less:"Cannot be less than {{minValue}}.",More:"Cannot be greater than {{maxValue}}."},Number:{Input:{Between:"Enter a numerical value between {{minValue}} and {{maxValue}}.",Less:"Enter a numerical value not less than {{minValue}}.",More:"Enter a numerical value not greater than {{maxValue}}."}},Toast:{Between:"{{name}} should be between {{minValue}} and {{maxValue}}",Less:"{{name}} should be less than {{minValue}}",More:"{{name}} should be greater than {{maxValue}}"},Value:{Input:{Between:"Enter a numerical value between {{minValue}} and {{maxValue}}."}}}}},Scroll:{FailedToLoad:"Load Failed",NoApprovals:"No approvals"},SecondApprovalTip:"System Note: Please be aware that speedy approval exists.",SelectSearch_Complete:"Done",SelectSearch_NoResult:"No results found. Please try again.",SelectSearch_Placeholder:"Search",Selected:"Selected",SelectedCancel:"Cancel",SelectedConfirm:"Confirm",Semicolon:";",SerialID:"No.",Settings_AggrPush_CcOnly:"Only CC",Settings_AggrPush_CcOnly_Hint:"Everyday newly added CC requests won't send you notifications separately but will be aggregated into one message to notify you at a fixed time (newly added pending requests will still send notifications).",Settings_AggrPush_EnableHint:"New pending and CC requests will be combined into one daily notification.",Settings_AggrPush_PushContent:"Content",Settings_AggrPush_PushTime:"Daily sending time",Settings_AggrPush_SectionTitle:"Notification Settings",Settings_AggrPush_Switch:"Aggregate Notifications",Settings_AggrPush_TodoAndCc:"Pending and CC",Settings_AggrPush_TodoAndCc_Hint:"Everyday newly added pending and CC requests won't send you notifications separately but will be aggregated into one message to notify you at a fixed time (the original daily summary at 10:00 each day will no longer be sent).",Settings_Bot_Muted:"To avoid missing aggregated notifications, it's recommended to turn on Approval bot reminders.",Settings_Enter_Bot:"Set",Settings_OnBoarding_Content:"Everyday newly added pending and CC of Approval can be aggregated into one message to notify.",Settings_OnBoarding_Title:"Support aggregate sending pending and CC requests",Settings_PageTitle:"Approval Setting",Share_AppPageCardTitle:"App Page Card",Share_AppPageLinkTitle:"Link",Share_AppPageQrTitle:"QR Code",Share_ClickToTryAgain:"Click to try again",Share_CopyBtn:"Copy",Share_MessagePlaceholder:"Leave a note",Share_QrCodeDesc:"Please scan the code in {{APP_DISPLAY_NAME}}.",Share_SaveBtn:"Save",Share_SelectedCountChats:"Selected: {{select_count}} chat(s)",Share_SharePlaceholder:"Just recommended an app to you in {{APP_DISPLAY_NAME}}. Check via the link: {{link}}",Share_ShareSuccessToast:"Shared successfully",Share_ShareTitle:"Share",Shared:{NotShowTaskFromIMNextTime:"From a chat. The content will no longer be displayed the next time you open it."},SidebarWebview_CopyLink:"Copy URL",SidebarWebview_LoadFail:"Loading failed",SidebarWebview_OpenInBrowser:"Open in Browser",SidebarWebview_Reload:"Refresh",SignGroup_SameNameValueError:"Widget name is the same. Values must match. Please re-enter.",Signature_agree:"Still use the signature for next consent.",Signature_board_title:"Handwritten Signature",Signature_board_to_use:"Sign",Signature_clear:"Clear",Signature_click_refresh:"Refresh",Signature_complete_tip:"View the signature on your computer and confirm.",Signature_complete_title:"Complete Signature",Signature_confirm_re_sign:"Confirm to re-sign?",Signature_fail_tip:"Use your smartphone to rescan the QR code on the computer and sign.",Signature_fail_title:"Sign Failed",Signature_quit:"Exit Signature",Signature_rewrite:"Re-sign",Signature_scan:"Use the {{BRAND_DISPLAY_NAME}} app to scan the QR code and sign.",Signature_scan_error:"QR code expired",Signature_scan_success:"Successfully",Signature_title:"Signature",Signature_use:"Use Signature",Signature_use_fail:"Signature use failed",Signature_use_is_empty:"Please complete your signature.",Signature_use_on_here:"Sign here.",Signature_use_on_phone:"Use your smartphone.",SortType_Asc:"Longest pending",SortType_Desc:"Recently received",Split:", ",StartNode_Title:"Submit",Submit:"Initiate",SubmitModify:"Initiate Modification",SubmitRequest:"Submit Request",SubmitTime:"Submitted",Submit_Success_Go_Next:"Submit successful. Moving on to the next one.",Telephone:{Call:"Call {{number}}",CallNotSupported:"Making calls with this device is not supported.",Copy:"Copy",FixedLine:"Fixed landline no.",HistoryRecord:"History",HotCountryCode:"Popular countries and regions",Invalid:"incorrect {{type}} format",MobilePhone:"Mobile no.",NoEmpty:"{{type}} cannot be empty.",OptionLoadFail:"Failed to load options",Phone:"Contact no.",SearchCountryCode:"Select for a country or region.",SearchEmpty:"No results found",SelectArea:"Select country and region"},Test:{Text:"I am copywriter 1111"},TextCollapse_fold:"Hide",TextCollapse_unfold:"Show",ThirdApprovalLinkError:"Three-party approval empty link error",ThirdPart:{UnavailableOnMobile:"Unavailable on mobile device yet, please use desktop client to view it.",UnavailableOnPC:"Unavailable on desktop client yet, please use mobile client to view it."},ThirdPart_ClientHintOnCard:"Please view on desktop.",TimeLine:{Handler:{Transfer:{HintText:"Handler has been changed to {{newApprover}} from {{oldApprover}}."}},Node:{Transfer:{ApproverName:{ExtraText:"Administrator"},HintText:"Approver role is transferred from {{oldApprover}} to {{newApprover}}.",HintTextHandler:"Handler has been changed to {{newApprover}} from {{oldApprover}}.",Status:"Forward"},TransferCc:{HintText:"CC new owner {{newApprover}}"}}},Timeline:{Handle:"Handle"},ToSubmitted:"View Record",Toast:{FailedToCopy:"Copy Failed",SuccessfulToCopy:"Copied successfully"},Toast_1:"Action successful. Moving on to the next approval.",Toast_2:"System exception. Please try again later.",Toast_3:"Request failed. Please try again later.",Transmit_Fail:"Failed to send",Transmit_InvolversTitle:"Users related to the current approval",Transmit_OnlyRelatedUsersCanSend:"Only users related to this approval can forward it",Transmit_RelevanceHint:"Administrator has set this approval can only be forwarded to users related to it to avoid information security risks. ",Transmit_Success:"Sent successfully",TripGroup:{AddGroup:"Add a trip",GroupTitle:"Trip {{number}}"},Unsupported_content:"The web version does not support {{featureName}}. Are you sure you want to operate on the mini program?",Unsupported_tip:"This document is not supported.",Unsupported_title:"Redirection Prompt",UpdateClientHint:"Please update {{name}} to version {{version}}",UpdateReminderContent:"The latest version of Approval app is now available. Please restart the app to complete the suggested update.",UpdateReminderHeader:"Update available",Upload_AllFiles:"All attachments",Upload_FIles:"Upload Attachment",Upload_Files:"Upload Attachment",Upload_Images:"Upload Images",UserDepartment:"Department",Validation:{PleaseFillIn:"Please enter {{name}}",PleaseFillSth:"Please enter ",PleaseRemove:"Please remove {{name}}",PleaseSelect:"Please select {{name}}",PleaseSelectSth:"Please select"},Web:{Permissions:"No permission",UnknownException:"Unknown exception"},WithdrawModifyCheckTitle:"Once the modification is revoked, the approval document will return to the original status. Are you sure you want to revoke?",WithdrawWillRecover:"Once the modification is revoked, the approval document will return to its original status. Are you sure you want to revoke?",WorkGroup:{AfterLeaveEnd:"Unable to select this time period because overtime requests can only be submitted for overtime worked within {{num}} day",AfterLeaveEndToday:"Unable to select this time period because overtime requests can only be submitted for overtime worked on the same day",AfterLeaveEnd_plural:"Unable to select this time period because overtime requests can only be submitted for overtime worked within {{num}} days",BeforeLeaveStart:"Unable to select this time period because overtime requests must be submitted at least {{num}} day in advance",BeforeLeaveStartToday:"Unable to select this time period because overtime requests must be submitted on the same day",BeforeLeaveStart_plural:"Unable to select this time period because overtime requests must be submitted at least {{num}} days in advance",CalcMethod:"Overtime Calculation Method",CannotOvertime:"Couldn't request overtime",CannotSubmitWork:"Unable to submit overtime request. Please modify the overtime period and try again.",ConfirmWorkerChange:"Employees have been updated",Conflict:"The selected date doesn't require approval or already has overtime request.",DailyMaxOvertime:"maximum overtime hours allowed in a day",DetailTip:", count as ",Duration:"Overtime Duration",FromDateToDate:"{{from}} to {{to}}",HasOvertimeConflict:"You already have an overtime request for the same time period. Please select again.",IntervalExceeded:"Overtime duration must not exceed the selected time range.",MonthFormat:"MM/YYYY",MonthlyMaxOvertime:"maximum overtime hours allowed in a month",NoAttendanceExist:"Unable to submit overtime request because you haven't activated the Attendance app. Please contact the administrator. ",NoNeedApproval:"You don't need to apply to work overtime on {{type}}, please contact the administrator if necessary.",NoPermissionRequest:"Overtime request is not applicable to {{type}}, please contact the administrator if necessary.",NoZeroDuration:"Overtime duration must be greater than 0.",OvertimeConflict:"Conflict with the existing overtime, please reschedule.",OvertimeDate:"Date",OvertimeDetail:"Duration details",OvertimeExceedMax:{IgnoreOvertime:"Excess hours won't be counted into overtime hours.",Other:"{{name}} has worked a total of {{total} additional {{unit}} during {{range}}. This has exceeded the {{max}}. {{action}}.",ProhibitOvertime:"Modify your request and try again (you can request up to {{remaining}} {{unit}} in this time frame).",ProhibitOvertimeShort:"Modify your request and try again",TransferLeave:"Excess hours will be converted to compensatory leave.",You:"You've worked a total of {{total}} additional {{unit}} during {{range}} and have exceeded the {{max}}. {{action}}."},OvertimeManagementRange:"The following employees are not in your management scope. You can't request overtime on behalf of them. Please remove these employees from this request.",OvertimeRuleDifferent:"The following employees cannot be included in this request because they have different start and end times or are bound by different overtime rules than the first employee {{name}}. We've automatically removed these employees. If you still need to request overtime for them, submit another request.",PerOvertimeDetail:"Daily overtime details",TotalWorkTime:"Total overtime",UnsetWorkRule:"Unable to submit overtime request because you don't have associated overtime rules. Please contact the administrator.",WeeklyMaxOvertime:"maximum overtime hours allowed in a week",WorkChangeTips:"Actual overtime will be counted according to attendance record.",WorkConflict:"The selected date doesn't require approval or already has overtime request. ",alreadyKnown:"Got it",exceedSevenDays:"Overtime duration is over 7 days. Please select a date again.",overtimeTooShort:"Your overtime duration is less than the minimum overtime hours set by your administrator. You can't make an overtime request."},WorkGroup_Unit_Day:"days",WorkGroup_Unit_Hour:"hours",WorkGroup_Unit_Minute:"minutes",admin_modify_empty:"The number of days that approvals can be modified within must be specified.",admin_modify_title:"Modify Settings",admin_setting:"Approvals passed within {{day}} days can be modified.",api:{commonRequestFailed:"An error occurred. Please refresh.",processing:"Loading...",requestFailed:"Request failed. Please try again.",timeout:"Request timed out. Please try again."},apply:"Requester",approval:"https://bytedance.feishu.cn/docs/doccnStzf1xsvCYUY3tDN22Qpqe","approval-MP_MaxLinesWhenWidgetUseExternal_Desc":"Some of the widgets use external data sources. Details can contain up to 200 lines.","approval-admin_AfterRejectedEditForResubmit_Descapproval-admin_Desc":"The submitter can still edit the process even if a request is rejected. Resubmitting the approval starts a new round of review.","approval-admin_AfterRejectedProcessEnd_Descapproval-admin_Desc":"The approval process terminates if a request is rejected.","approval-admin_AllBelong_Option":"all belong to","approval-admin_AtSharePermit_Confirm":"Send","approval-admin_AtSharePermit_Desc":"Once you've mentioned {{name}} in your comment, they will have the same viewing permissions as you.","approval-admin_BeginConfirmApproval_Desc":"Create approval","approval-admin_BelongTo_Option":"belongs to","approval-admin_ContainsAll_Option":"contains all of the followings","approval-admin_EarlierThan_Option":"is earlier than","approval-admin_LaterThan_Option":"is later than","approval-admin_LocatesIn_Option":"locates in","approval-admin_MaxLinesWhenWidgetUseExternal_Desc":"Some of the widgets use external data sources. Details can contain up to 200 lines.","approval-admin_MultiLevelSupervisor_Opt":"Continuous multi-level department supervisor","approval-admin_NoCurrency_Placeholder":"Currency is required","approval-admin_NoEarlier_Option":"is no earlier than","approval-admin_NoLater_Option":"is no later than","approval-admin_NoneofWhichis_Option":"none of which belongs to","approval-admin_NotBelong_Option":"doesn't belong to","approval-admin_NotBelong_Option_Plural":"don't belong to","approval-admin_NotInclude_Option":"doesn't include","approval-admin_NotInclude_Option_Plural":"don't include","approval-admin_NotLocateIn_Option":"doesn't locate in","approval-admin_OneBelongs_Option":"one of whom belongs to","approval-admin_PleaseSelectCurrency_Placeholder":"Please select a currency","approval-admin_RemedyDuration":"Correction duration","approval-admin_RemedyNumber_For_Month":"Number of corrections in a month","approval-admin_SharePermission_Title":"Confirm to share permissions?","approval-admin_ShowOnlyBatchProcess_Desc":"Only display approvals that have the batch process enabled.","approval-admin_SubmitTime":"request's submission time","approval-admin_TimeFormatIs_Option":"is","approval-admin_TypeIs_Option":"is","approval-admin_TypeIsnt_Option":"isn't","approval-admin_no_Button":"Cancel","approval-admin_yes_Button":"Confirm","approval-mp_100LinesImported_Toast":"100 lines imported.","approval-mp_AbnormalDataGenerated_Title":"Abnormal approval data generated","approval-mp_AccountName_Title":"Account Name","approval-mp_AccountNo_Title":"Account No.","approval-mp_Action_FieldName":"Actions","approval-mp_ActivateSuccess_Title":"Activated","approval-mp_Activate_Button":"Activate","approval-mp_Activated_Tag":"Activated","approval-mp_Add1Person_Desc":"Can only add 1 person","approval-mp_AddApproval_Button":"Add Approval","approval-mp_AddFieldAvailable_Tooltip":"No fields available for configuration in the current form. Please add a field first.","approval-mp_AddQuickText_Button":"Add","approval-mp_AddQuickText_DescButton":"Add","approval-mp_AddQuickText_Tabs":"Add Quick Text","approval-mp_AddRange_Button":"Add Range","approval-mp_AddTemplateTitle_Button":"Add {{ApprovalTemplateTitle}}","approval-mp_AddTemplate_Title":"Add templates","approval-mp_AddTitle_Button":"Add {{ApprovalTemplateTitle}}","approval-mp_Add_Button":"Add","approval-mp_AdvancedFilter_Button":"Advanced Search","approval-mp_AdvancedSearch_Title":"Advanced search","approval-mp_AdvisorReviewAfterRequest_Toast":"Your advisors will review the approval request after you ask for their opinions.","approval-mp_Advisor_Title":"Advisor","approval-mp_AfterDeleteView_Desc":"Only the administrators can find and export this request. The employees won't be able to view this request any more.","approval-mp_AfterRangeTurnedOn_Desc":"Once this is turned on, the submitter can only link approvals within the range below.","approval-mp_AfterTheModify_Desc":"After","approval-mp_Agree_Button":"Agree","approval-mp_AllApprovals_Title":"{{name}}'s all approvals","approval-mp_AllApproversMustApprove_Desc":"All approvers must approve","approval-mp_AllApproversMustProcess_Desc":"All approvers must handle","approval-mp_AllStatus_Placeholder":"All","approval-mp_AllowPrinterAccess_Desc":"Third-party application Print Assistant can access current approval data. If you agree to grant permission, you can use the custom print template set by the administrator.","approval-mp_AppKeyUnavailable_Desc":"Unable to access. Invalid application key.","approval-mp_ApplicationNo_FieldName":"Request No.","approval-mp_ApplyPemissions_Title":"The Approval app requests your permission","approval-mp_ApprovalDeleted_Desc":"Approval deleted","approval-mp_ApprovalDeleted_Title":"Approval deleted","approval-mp_ApprovalDetailsFailed_Title":"Failed to generate detailed data","approval-mp_ApprovalMatrix_Option":"Approval Matrix","approval-mp_ApprovalName_FieldName":"Approval title","approval-mp_Approved_Placeholder":"Approved","approval-mp_ApproverView_Desc":"Approver's view","approval-mp_Approving_Placeholder":"Under review","approval-mp_AreUSureUnmark_Title":"Uncheck this option?","approval-mp_AreYourSureDelete_Title":"Delete {{approval}}?","approval-mp_AskForOpinionsFrom_Desc":"Asked for {{name}}'s opinions","approval-mp_AskForOpinions_Button":"Ask for Opinions","approval-mp_AskForOpinions_Tag":"Asked for Opinions","approval-mp_AssignYouAsDelegateHandler_Title":"{{Name}} assigns you as a delegate handler of {{RequestName}}","approval-mp_AtLeastNum_Desc":"At least {length} {path}","approval-mp_AttachmentUploadLimit_Toast":"Upload a maximum of {{count}} attachments","approval-mp_Attachment_Download":"Download","approval-mp_AutoApproved_Desc":"This member has enabled automatic approval.","approval-mp_AutoApproved_Tag":"Auto-Approved","approval-mp_AutoCopyCantEdit_Desc":"After the approval process is initiated, the owner of the copy of the document will be changed to {{BRAND_DISPLAY_NAME}}, and you won't be able to edit the document.","approval-mp_AutomaticApproval_Title":"Automatic Approval","approval-mp_Bank_Title":"Bank","approval-mp_BatchFailReasonNum_toast":'Due to {{reason}}, {{failCount}} out of {{totalCount}} batch approvals have failed. Please process them in your "To-do" list.',"approval-mp_BatchFailReason_toast":'All {{totalCount}} batch approvals have failed due to {{reason}}. Please process them in your "To-do" list.',"approval-mp_BatchFailReasons_toast":"Within {{totalCount}} batch approvals:","approval-mp_BatchImport_Button":"Batch Import","approval-mp_BatchImporting_Title":"Batch importing","approval-mp_BatchProcessRejectedApproval_Desc":"Batch processing of rejected approvals is not supported","approval-mp_BeforeTheModify_Desc":"Before","approval-mp_CCRecipientRunFlow_Desc":'The CC recipient will see the approval form under "To-do" and needs to click "I Understand" to run the approval workflow.',"approval-mp_CanEdit_Tag":"Can edit","approval-mp_CancelAddQuickText_Button":"Cancel","approval-mp_CancelDeleteWidget_CardButton":"Cancel","approval-mp_Cancel_Button":"Cancel","approval-mp_CannoInitiate_Desc":"No permission to initiate","approval-mp_CannotInitiateDeactived_Desc":"Approvals deactivated cannot be initiated","approval-mp_CannotInitiateDeleted_Desc":"Approvals deleted cannot be initiated.","approval-mp_CantFind_Desc":"Can't find where to apply?","approval-mp_CantJoinContactAdmin_toast":"Unable to join this internal chat group. Please contact the administrator.","approval-mp_CascadingDropdown_ICUcontent":"cascading dropdown","approval-mp_CheckOtherTabs_Desc":"Check other tabs or submit an approval request.","approval-mp_ChooseCarefulTips_Desc":"Please choose carefully so as not to disturb the user excessively. For more details, see","approval-mp_ClaimRequest_Button":"Claim","approval-mp_ClickButtonBelow_Desc":"Click the button below","approval-mp_ClickHereRedirectMe_Button":"Redirect","approval-mp_ClickHere_Link":"Click Here","approval-mp_ClickIUnderstand_Tooltip":'Click "I Understand" to run the approval workflow.',"approval-mp_ClickRetry_Button":"Retry","approval-mp_ClickSubmitRequest_Title":'"{{approvalName}}"',"approval-mp_ClickSubmit_Desc":"Click the button below to submit","approval-mp_ClickToCopyErrorCode_Tooltip":"Click to copy the exact error code.","approval-mp_CompleteDateTime_FieldName":"Completed","approval-mp_Completed_Desc":"Completed","approval-mp_Completed_Tag":"Completed","approval-mp_ConfirmBotCard_Button":"Confirmed","approval-mp_ConfirmToImport_CardTitle":"Confirm to import?","approval-mp_ContactToRestore_CardDesc":"You can contact @{name} to restore this approval request before {{month}} {{day}}.","approval-mp_ContinueCreate_Button":"Creating New","approval-mp_ContinueEditingBrowser_CardDesc":"You can continue editing on the browser.","approval-mp_CountryRegion_Title":"Country/Region","approval-mp_CreateApproval_Options":"Create approval","approval-mp_CreateCopyAdd_Button":"Create a Copy and Add","approval-mp_Currency_Title":"Currency","approval-mp_CurrentApprover_FieldName":"Currently with","approval-mp_CurrentStage_FieldName":"Current step","approval-mp_CurrentVerOutdated_Desc":"Looks like you're using an older version of {{APP_DISPLAY_NAME}}. Update now to try print preview and many more features.","approval-mp_DataContainError_ErrorMessage":"The data contains {{num}} error(s). Please correct them before proceeding.","approval-mp_DataNotAffected_Desc":"Deleting this request won't affect Attendance data and People data.","approval-mp_DataOverwrite_ExcelDesc":"Importing data will overwrite any previous data in the detail table.","approval-mp_DateFormal_ExcelDesc":"To ensure successful validation, please fill in the date in the format of [YYYY-MM-DD] or [YYYY-MM-DD hh:mm].","approval-mp_Deactivate_Button":"Deactivate","approval-mp_Deactivated_Tag":"Deactivated","approval-mp_Deactived_Desc":"Approval deactivated","approval-mp_Deactived_Title":"Approval deactivated","approval-mp_DefaultBranch_Desc":"If other branches are not met, the alternative branch will be executed","approval-mp_DefaultBranch_Title":"Alternative branch","approval-mp_DelegatesOn Behalf_Desc":"Delegates on behalf of {{delegate}}","approval-mp_DelegatesOnBehalf_Desc":"Delegates on behalf of {{delegate}}","approval-mp_DeleteQuickText_Button":"Delete","approval-mp_DeleteQuickText_CardTitle":"Delete this quick text?","approval-mp_DeleteSelected_Button":"Delete Selected","approval-mp_DeleteTerminate_Desc":"deleted approval","approval-mp_DeleteWidget_CardButton":"Delete","approval-mp_DeleteWidget_CardDesc":"This field is included in Approval notifications. If you delete this field, it will also be removed from {{location1}} > {{location2}}.","approval-mp_DeleteWidget_CardTitle":'Delete "{{widget}}"?',"approval-mp_Delete_FieldName":"Delete","approval-mp_Delete_Tooltip":"Delete","approval-mp_DeletedContactAdmin_Desc":"If you have any questions, contact your administrator {{admin}}.","approval-mp_DeletedContactAdmin_Desc1":"If you have any questions, contact your administrator ","approval-mp_DeletedContactAdmin_Desc2":" ","approval-mp_DeletedRequest_Desc":"deleted approval","approval-mp_Deleted_Tag":"Deleted","approval-mp_Delimiter_Desc":",","approval-mp_DesktopSubmit_Toast":"Please submit in the desktop app.","approval-mp_DetailTableImport_CardButton":"Import","approval-mp_Detail_CardButton_v2":"Details","approval-mp_DetailsExportSetting_Button":"Settings","approval-mp_DisplayEqualOne_Tooltip":"At least one field is required.","approval-mp_DisplayFive_Tooltip":"Display up to 5 fields.","approval-mp_DisplayThree_Tooltip":"Display only the first three fields","approval-mp_DownloadFailDetails_Toast":"details","approval-mp_DownloadFailView_Toast":"Unable to download the PDF file. Please view the {{details}}.","approval-mp_DownloadPDFFail_Toast":"Unable to download the PDF file.","approval-mp_DownloadPDFRetry_Button":"Try Again","approval-mp_DownloadPDF_Tab":"Download PDF","approval-mp_DownloadedPDF_Toast":"PDF downloaded.","approval-mp_DownloadingPDFBot_Toast":"PDF downloading. The approval bot will send it to you once it's complete.","approval-mp_DownloadingPDF_Toast":"PDF downloading. Please wait.","approval-mp_Edit Document_Button":"Edit","approval-mp_EditFormDesign_Button":"Edit in Form Design","approval-mp_EditQuickText_Button":"Edit","approval-mp_EditQuickText_Title":"Edit Quick Text","approval-mp_EditRequiresRevoking_Title":"Editing requires revoking the approval process","approval-mp_EnableAutomaticApproval_Desc":"Your subordinates' approval processes will be automatically approved once you've set it up.","approval-mp_EnableAutomaticApproval_Title":"Enable Automatic Approval","approval-mp_EndDate_Placeholder":"End date","approval-mp_EnsureEditingComplete_CardDesc":"Importing data will overwrite the existing data. Please ensure that all editing is complete.","approval-mp_EnsureValidation_ExcelDesc":"To ensure successful validation, please do not add, delete, or modify the fields in this table.","approval-mp_EnterAmount_Placeholder":"Enter amount","approval-mp_EnterCorrectDocsLink_ErrorMessage":"Please enter the correct link to Docs.","approval-mp_EnterQuickText_ErrorMessage":"Please enter a quick text.","approval-mp_EnterQuickText_Placeholder":"Enter here","approval-mp_EnterReasonCanAtMention_placeholder":"Please enter a reason. You may @mention relevant members.","approval-mp_EnterReason_placeholder":"Please enter a reason. ","approval-mp_EnterTemplateName_Placeholder":"Enter template name","approval-mp_ErrorCodeCopied_Toast":"Copied.","approval-mp_ErrorCode_Desc":"Error:","approval-mp_ErrorMessage":"Unable to preview process. Please try again.","approval-mp_ExpiredAndClosed_Tag":"Closed","approval-mp_ExportAll_Button":"Export All","approval-mp_ExportDetailedData_Link":"Export Detailed Data","approval-mp_ExportRecord_Button":"Export History","approval-mp_ExportSelected_Button":"Export Selected","approval-mp_ExportingBotPush_Toast":"Exporting...Once exported, details will be sent to you via Approval bot.","approval-mp_ExternalContactNotAllow_Toast":"Don't allow adding external contacts","approval-mp_ExternalDataSource_ICUcontent":"external data source","approval-mp_ExternalNoImport_ExcelDesc":'Batch import is not available for single select and multiple select that rely on external data. Please select them individually on the "Approval Center" page.',"approval-mp_FailedProceed_Desc":"Failed to upload. Proceed to submit?","approval-mp_FileEditedResubmit_Desc":"{user_name} has edited {filename} in the approval document. Please resubmit for approval","approval-mp_FileMax500_Desc":"Maximum attachment size: {{size}} MB","approval-mp_FileMax500_Tooltip":"Maximum attachment size: {{size}} MB","approval-mp_FirstTimePartnership_Tag":"First-Time Partnership","approval-mp_FivePersonConversation_Desc":"You can add {{name}}, {{name}}, {{name}}, {{name}} and {{name}} to a group conversation. The following reminder will also be sent.","approval-mp_FourPersonConversation_Desc":"You can add {{count}} members to a group conversation, including {{name}}, {{name}}, {{name}} and {{name}}. The following reminder will also be sent.","approval-mp_FromSmartProcessNoConfiguration_Desc":"This rule is from Smart Process and doesn't require configuration","approval-mp_GainPermissionMakeCopy_ErrorMessage":"Only document owners can add this document. To make a copy, please contact the owner {name}.","approval-mp_GenerateNotAgain_Toast":"Generating data...Please wait before trying again.","approval-mp_GenerateTeamAbnormalDetails_Desc":"Generating abnormal data (timeout, instant approval, delegate approval) of the team... You'll receive a notification from the approval bot once completed.","approval-mp_GetApprovalDataSelect_Desc":"For data related to timeout, instant approval and delegate approval, you can","approval-mp_GoExport_Button":"Proceed to Export","approval-mp_GoToApproval_Button":"Go to Approval","approval-mp_GotIt_Button":"Got It","approval-mp_GrantPermissionToDocuGenius_CardDesc":'The third-party application "DocuGenius" would like to access the current approval data. By granting permission, you can use the custom print template set by the administrator.',"approval-mp_Handlerdelegation_Desc":"Handler delegation","approval-mp_HoldShareAccess_Desc":"Hold to share access to the request submission page.","approval-mp_IUnderstandBotCard_Button":"I Understand","approval-mp_IUnderstand_Button":"I Understand","approval-mp_ImageAttachmentFormulas_ExcelDesc":"Image, attachment, or formula cannot be imported.","approval-mp_ImageMax30_Toast":"Upload up to {{count}} images","approval-mp_ImageNumSize_Desc":"Add up to 9 images. Maximum size per image: 50 MB","approval-mp_ImageNum_Desc":"{count} image","approval-mp_ImageNum_Desc_Plural":"{count} images","approval-mp_ImageSize500_Toast":"Maximum image size: {{size}} MB","approval-mp_ImageUploadLimit_Toast":"Upload a maximum of {{count}} images","approval-mp_ImportantCC_Tag":"Important CC","approval-mp_IncompleteNotificationSettings_Desc":"Incomplete notification settings","approval-mp_InitiateAdmin_Desc":"No permission to submit this approval request. Please contact the administrator.","approval-mp_InitiateWithCopy_Checkbox":"Initiate the approval process with a copy of the document","approval-mp_InstructionCCMarking_Desc":"Instructions for Important CC Marking","approval-mp_InstructionExplanation_Desc":"Once the range limit setting is turned on, members can only link approvals within a specific range. If certain fields have been selected to be displayed, they'll show in the current approval.","approval-mp_Instructions_ExcelDesc":"Instructions","approval-mp_Instructions_Title":"Instructions","approval-mp_InvolveImportantCCWait_Tooltip":"This approval involves an important cc. Please wait.","approval-mp_KeywordAdvancedSearch_Desc":"Find approvals with keywords or advanced search","approval-mp_KeywordsOrAdvancedSearch_Desc":"Enter a keyword or use advanced search","approval-mp_LimitRange_Switch":"Limit the range of linked approvals","approval-mp_LinkApprovalFirst_Desc":"Please link an approval first.","approval-mp_LinkApproval_Placeholder":"Link approvals","approval-mp_LinkBlocked_Desc":"This link may be risky and has been blocked by {{BRAND_DISPLAY_NAME}}.","approval-mp_LoadingFailedClickToRetry_Desc":"Loading failed. {{Click to retry}} or {{open the original page}}.","approval-mp_LocateStepReApprove_toast":"Once the return step is located, the request will be processed from that step and re-approved after that step.","approval-mp_MakeCopyAddDocs_Button":"Make a Copy and Add Docs","approval-mp_MakeCopyTransferOwnership_Desc":"Once you submit your request, ownership of the copy will be transferred to the approval system, and you will not be able to make any further changes.","approval-mp_MarkImportant_Checkbox":"Mark as important workflow","approval-mp_MarkedImportant_Tooltip":"Marked as important workflow","approval-mp_MaxNumberFiles_Toast":"Upload up to {{oldcount}} attachments. Upgrade your {{APP_DISPLAY_NAME}} to upload up to {{newcount}} attachments.","approval-mp_MaxSizeFiles_Toast":"Maximum attachment size: {{oldsize}} MB. Upgrade your {{APP_DISPLAY_NAME}} to upload an attachment up to {{newsize}} MB.","approval-mp_MobileDataDeletedContactAdmin_EmptyState":"The data source has been deleted. Please contact the administrator {{name}}","approval-mp_MobileDataDeletedContactAdmin_ErrorMessage":"The data source has been deleted. Please contact the administrator {{name}}.","approval-mp_MobileNoResults_EmptyState":"No results found","approval-mp_MobileSelectLastWidget_Tooltip":'Please select "{{lastWidget}}" first.',"approval-mp_MobileSubmit_Title":"Submit in the mobile app only","approval-mp_MobileSubmit_Toast":"Please submit in the mobile app","approval-mp_MobileUnableLoadReTry_EmptyState":"Unable to load. Please {{tryAgain}}","approval-mp_MobileVisit_Desc":"Please scan the code in Feishu.","approval-mp_ModalComformText_GroupTimeCheck":"OK","approval-mp_ModalContent_OutGroupTimeCheck":"Conflict exists with an existing out-of-office request. Please select a different time period.","approval-mp_ModalContent_TripGroupTimeCheck":"Conflict exists with an existing travel request. Please select a different time period.","approval-mp_ModalTitle_GroupTimeCheck":"Conflict exists","approval-mp_ModifiedSameSerial_Placeholder":"The Serial No. will remain unchanged after the request is modified.","approval-mp_ModifiedStuff_Desc":"Modified","approval-mp_ModifyApproval_Options":"Modify approval","approval-mp_ModifyDetails_Subtitle":"Modification details","approval-mp_MoreFilters_Button":"More Filters","approval-mp_MoreSources_Title":"More sources","approval-mp_MoreSubordinates_Title":"More subordinates","approval-mp_MoreTypes_Title":"More types","approval-mp_MultiMemberConflictInterest_Toast":"{memberName} and {num} other members have a conflict of interest with the organization.","approval-mp_MultiPersonConversation_Desc":"You can add {{count}} members to a group conversation, including {{name}}, {{name}}, {{name}}, {{name}} and {{name}}. The following reminder will also be sent.","approval-mp_NetworkFailed_Title":"Network request failed","approval-mp_NoAbnormalFound_Desc":"Between MM-DD-YYYY and MM-DD-YYYY, there is no abnormal data found in the team regarding timeout, instant approval and delegate approval. For queries about the data, {{click here}}","approval-mp_NoAccessCheckLink_Desc":"Cannot access other teams' pages. Please check if the link is correct","approval-mp_NoAccessPermission_Desc":"No permission to access","approval-mp_NoAccessToDetails_Desc":"No permission to view details","approval-mp_NoAccess_Desc":"No permission to access","approval-mp_NoAccess_Title":"No permission to access","approval-mp_NoBatchProcessOpinionsRequest_Tooltip":"You cannot batch process requests that require opinions.","approval-mp_NoDisplayPayeeInfo_Desc":"Unable to display all information. The payee is not using the enterprise banking platform.","approval-mp_NoDisplayPayerInfo_Desc":"Unable to display all information. The payer is not using the enterprise banking platform.","approval-mp_NoDocsAccessApplyFirst_Toast":"No permission to edit the folder where the document is located. Please apply for permission first or use a copy to initiate approval","approval-mp_NoDragDrop_Tooltip":"Only one field available and drag-and-drop is not supported.","approval-mp_NoEditCrossTenantRequest_Toast":"Unable to edit cross-platform requests at this time","approval-mp_NoFieldAvailable_Tooltip":"No fields available for configuration in the current form.","approval-mp_NoInitiate_Title":"No permission to submit","approval-mp_NoJumpTo_Toast":"Unable to proceed","approval-mp_NoPermissionCannotSubmit_Tooltip":"No permission to initiate. Cannot submit","approval-mp_NoPermissionContactAdmin_Desc":"No permission to initiate the approval. Please contact the administrator","approval-mp_NoPermissionProcessed_ErrorMessage":"You don't have permission for this request or it has already been processed.","approval-mp_NoPermissions_Menu":"No Permissions","approval-mp_NoQuickText_Desc":"No quick texts yet","approval-mp_NoReminderToExternal_Toast":"Unable to send an urgent reminder to external approvers.","approval-mp_NoResultsForICU_Desc":'No results found for "{{text}}"',"approval-mp_NoTeamAccess_Desc":"Unable to access internal applications of other teams.","approval-mp_No_Button":"Cancel","approval-mp_NoneAccountName_Desc":"None","approval-mp_NoresultsFoundTryAgain_ErrorMessage":"No files found. Please try again.","approval-mp_NotNowUpdate_Button":"Not Now","approval-mp_NotOwnerMakeCopy_Desc":"You are not the document owner. Please make a copy of the document to proceed. Once you submit your request, ownership of the copy will be transferred to the approval system, and you will not be able to make any further changes.","approval-mp_NotOwnerUseCopy_Desc":"You're not the document owner and can only create a copy and add the copy instead. After the approval process is initiated, the owner of the copy of the document will be changed to {{BRAND_DISPLAY_NAME}}, and you won't be able to edit the document.","approval-mp_NotSupportBatchProcess_Tooltip":"The form which involves important CC does not support the batch process","approval-mp_NotificationAdd_Button":"Add","approval-mp_NotificationCustomSettings_Option":"Custom settings","approval-mp_NotificationDefaultSettings_Option":"Default settings","approval-mp_NotificationLearnMore_Button":"Learn More","approval-mp_NotificationSelect_Placeholder":"Please select","approval-mp_NotificationSettings_Title":"Notification settings","approval-mp_NumDataImported_Toast":"{{num}} data imported.","approval-mp_NumberCopied_Toast":"Number copied.","approval-mp_OKGoUpdate_Button":"Update Now","approval-mp_OffLinkAny_Desc":"When this is turned off, the submitter can link any approvals within their authority.","approval-mp_OnceClaimRequest_Tooltip":"Once you claim the request, you can process it later. Any other responders from the same approval step can not perform actions on the request. A push notification will also be sent to the requester.","approval-mp_OneMemberConflictInterest_Toast":"There is a conflict of interest between member {memberName} and the organization.","approval-mp_OnePersonConversation_Desc":"You can add {{name}} to a group conversation. The following reminder will also be sent.","approval-mp_OneQuickText_Tooltip":"Drag and drop is not available for a single item.","approval-mp_OnlyApprovedOnes_Switch":"Can only link approved ones","approval-mp_OnlyShowAbnormal_Desc":"Currently, you can only view details of the team's tasks involving timeout, instant approval and delegate approval, with a maximum of N rows. For queries about the data, {{click here}}","approval-mp_OpenDoc_Tooltip":"Open document","approval-mp_OpinionsConfirm_Button":"Confirm","approval-mp_Opinions_Tabs":"Opinions","approval-mp_OriginalFieldDeleted_ErrorMessage":"The field you previously configured has been removed. To use it again, please add it back in Form Design.","approval-mp_OtherOptional_Title":"Other optional settings","approval-mp_OtherTeamDetaisFailedRetry_Desc":"Failed to generate detailed data of {{name}}'s team from {{time}}. You can try again in the app.","approval-mp_OutsideRequestOwner_Toast":"Unable to add members outside this organization and the organization where this request is from ({{staff_names}})","approval-mp_Over100LinesImportManually_Desc":"Batch import allows up to 100 lines. For data exceeding 100 lines, manual entry is required in the detail table.","approval-mp_OwnerChangeUseCopy_Desc":"After the approval process is initiated, the document owner will be changed to {{BRAND_DISPLAY_NAME}}, and you won't be able to edit the document.","approval-mp_PCSubmit_Title":"Submit in the desktop app only","approval-mp_PCVisit_Desc":"Please submit in the desktop app.","approval-mp_ParallelNum_Desc":"{num}/{numTotal}","approval-mp_ParallelRequireAllApproval_Desc":"The following {num} steps are under review and all of them need to be approved.","approval-mp_ParallelRequireAllApproval_Tooltip":"Currently, {num} steps are under review and all of them need to be approved.","approval-mp_PayeeAccountInfor_Title":"Payee Account Information","approval-mp_PayeeInfo_Tag":"Peyee Info","approval-mp_PayerAccountInfor_Title":"Payer Account Information","approval-mp_PayerInfo_Tag":"Payer Info","approval-mp_PaymentNumberCopy_Desc":"No.","approval-mp_PaymentTotalActualAmount_Desc":"Sum of {{tableName}}-{{tableTitle}}","approval-mp_PlzShareOpinions_CardTitle":"The「{{approvalProcess}}」is under review by {{name}}. Please kindly share your opinions.","approval-mp_PreviewModedata_Toast":"Preview mode. Not actual data.","approval-mp_PreviewNoExport_Toast":"Unable to export data in the preview mode","approval-mp_PreviewNoPublish_Desc":"Details filled in in preview mode won't be published.","approval-mp_PrintPreview_Title":"Print Preview","approval-mp_ProceedSubmit_Button":"Proceed to Submit","approval-mp_ProcessAnalysis_Button":"Analysis","approval-mp_ProcessNotInUse_Switch":"Deactivated processes","approval-mp_Processing_Tag":"Processing","approval-mp_Prompt_Desc":"Prompt","approval-mp_QuickText_Button":"Quick Text","approval-mp_ReadOnly_Tag":"Read only","approval-mp_ReasonAPIError_Desc":"third-party API errors","approval-mp_ReasonIncompleteField_Desc":"incomplete required fields","approval-mp_ReasonNetworkTimeout_Desc":"network timeout","approval-mp_RejectAndSendToSubmitter_Desc":"Reject and send to the submitter","approval-mp_RejectToSubmitNode_Desc":"Rejected and sent to","approval-mp_RejectToSubmitter_Desc":"Rejected and sent to","approval-mp_Rejected_Placeholder":"Rejected","approval-mp_RelatedEmployees_Title":"Employees","approval-mp_RemindToApprover_Desc":"Send the following reminder to {{name}} and jump to the conversation with him/her.","approval-mp_RequestClaimed_Button":"Claimed","approval-mp_RequestClaimed_CardTitle":'{name} claimed your request "{approvalName}"',"approval-mp_RequestClaimed_Desc":"Claimed","approval-mp_RequestExpired_CardButton":"Request Expired","approval-mp_RequestFiltered_Toast":"Requests filtered.","approval-mp_RequestRejectedByName_CardTitle":"{{templateName}} has been rejected by {{Name}}. The following awaiting your action:","approval-mp_RequestRejected_Desc":"The approval process has been rejected. Please edit to resubmit.","approval-mp_RequestRestored_Toast":"Restored","approval-mp_RequestSubmitByName_FileName":"{{requestName}}({{requestID}}) submitted by {{requesterName}}","approval-mp_RequestUnderReViewNoRepeat_Tooltip":"The request is under review. Please do not repeat the action.","approval-mp_RequesterEditedResubmit_Desc":"{{user_name}} has requested editing permission for {{filename}}. Please resubmit approval.","approval-mp_Required_Option":"Required","approval-mp_Reset_Button":"Reset","approval-mp_RestoreBeforeMMDDYY_toast":"You can {{restoreThisRequest}} before {{month}} {{day}}, {{year}}.","approval-mp_RestoreBeforeMMDD_CardDesc":"You can restore this request before {{month}} {{day}}.","approval-mp_RestoreBeforeMMDD_toast":"You can {{restoreThisRequest}} before {{month}} {{day}}.","approval-mp_RestoreExpiredRequest_CardDesc":"Once restored, the approval process continues. You can manage this request without time constraints.","approval-mp_RestoreExpiredRequest_CardTitle":"Restore this expired request?","approval-mp_RestoreThisRequest_button":"restore this request","approval-mp_Restore_CardButton":"Restore","approval-mp_Restore_CardButton_v2":"Restore","approval-mp_RetryQuickTextLoading_Desc":"Loading","approval-mp_RetryQuickText_Button":"try again","approval-mp_RetryQuickText_ErrorMessage":"Unable to load. Please {{tryAgain}}","approval-mp_Retry_Tooltip":"Retry","approval-mp_ReturnBatchImport_ExcelDesc":'After editing, please return to Approval and click "Batch Import".',"approval-mp_ReturnForDataSyn_ExcelDesc":"After editing, please return to {APP_DISPLAY_NAME} for data synchronization.","approval-mp_ReturnReason_title":"Reasons for Return","approval-mp_Revoke_Button":"Confirm to Revoke","approval-mp_RevokedSentBack_Desc":"Once you've confirmed to revoke the process, you need to resubmit the request after editing the document and all steps will need to be approved again.","approval-mp_Revoked_Placeholder":"Revoked","approval-mp_RiskyLink_Title":"Risky link","approval-mp_RowContainError_ErrorMessage":"Please make changes to {num}} field(s) in this row.","approval-mp_RuleFromSmartProcess_Option":"Rule from Smart Process","approval-mp_RulesSetting_CardTitle":"Rules Setting","approval-mp_SaveOnceWithinThreeMin_Toast":"Please wait at least 3 minutes before saving again.","approval-mp_SaveQuickText_Button":"Save","approval-mp_SearchByKeywords_Placeholder":"Title, content, requester or number","approval-mp_SearchBySubordinateName_Placeholder":"Search by name","approval-mp_SearchCurrentStage_Placeholder":"Search current step","approval-mp_SearchDocsPasteLink_Placeholder":"Search Docs or paste link","approval-mp_SearchForKeywords":"Keywords","approval-mp_SearchForKeywords_Placeholder":"Search for keywords","approval-mp_SearchForRequetsSubordinates_Placeholder":"Search by name","approval-mp_SearchNoDetails_Placeholder":"Search request No. or keywords","approval-mp_SearchResultApprovalType_Desc":"Show only approval types after search","approval-mp_Search_Button":"Search","approval-mp_SeeOnlyApprovals_Desc":"Only see approvals related to {{name}}","approval-mp_SelectAdvisors_Placeholder":"Search by name","approval-mp_SelectApprovalName_Placeholder":"Select approval titles","approval-mp_SelectApprovalSources_Title":"Select sources","approval-mp_SelectApprovalTypes_Title":"Select types","approval-mp_SelectApprovals_Title":"Select approvals","approval-mp_SelectCurrency_Placeholder":"Select currency","approval-mp_SelectDisplayFields_Title":"Select fields to be displayed","approval-mp_SelectDocs_Button":"Select Docs","approval-mp_SelectOrSearch_Placeholder":"Select or search by name","approval-mp_SelectSource_Placeholder":"Please select","approval-mp_SelectSubmitter_Placeholder":"Select submitters","approval-mp_SelectType_Placeholder":"Please select","approval-mp_Select_Placeholder":"Select","approval-mp_SelectedMember_Desc":"Selected: {{num}} member","approval-mp_SentBack_Desc":"Sent back to","approval-mp_SetRuleConfirm_Button":"Confirm","approval-mp_SetRuleNoConfiguration_Desc":"This rule is already set and doesn't require configuration.","approval-mp_ShareApproval_Button":"Share Approval","approval-mp_ShareNotSupported_Tooltip":"Unable to share third-party requests","approval-mp_ShareOpinions_Button":"Share your Opinion","approval-mp_Share_Button":"Share","approval-mp_Share_Tooltip":"Share","approval-mp_ShiftGroupType1":"Shift Swapping","approval-mp_ShiftGroupType2":"Shift Change for Another Day","approval-mp_ShiftGroupType3":"Shift Change in One Day","approval-mp_ShiftGroupType_Nopermission":"Shift change is only applicable to employees who work in scheduling mode. You cannot apply for a shift change because your attendance group does not work in scheduling mode.","approval-mp_ShiftGroupType_Permission_Title":"Unable to Change Shifts ","approval-mp_ShiftGroupV2_Detail":"Shift Change Details","approval-mp_ShowAllSteps_Button":"Show All Steps Under Review","approval-mp_ShowOnlyBatchProcess_Desc":"Display only those approvals that have batch approval enabled","approval-mp_SourceAll_Desc":"Source: all","approval-mp_SourceNum_Desc":"Source: {{num}}","approval-mp_Source_Header":"Source","approval-mp_SpecifyCurrency_ExcelDesc":"To ensure successful validation, please use the dropdown to specify the currency.","approval-mp_SpeedyApproval_FieldName":"Speedy approval","approval-mp_StartDate_Placeholder":"Start date","approval-mp_StartGroupChat_Title":"Start Group Chat","approval-mp_Status_FieldName":"Status","approval-mp_StepsHide_Button":"Hide Other Steps Under Review","approval-mp_StepsHide_Desc":"{num} steps are under review. Only the first step requires your approval.","approval-mp_StepsShow_Desc":"{num} steps are under review. Steps that do not require your approval have been hidden.","approval-mp_SubmitApplication_Button":"Submit Application","approval-mp_SubmitDateTime_FieldName":"Submitted","approval-mp_SubmitDepartment_FieldName":"Department","approval-mp_SubmitDesktopOnly_Desc":"Please submit in the desktop app.","approval-mp_SubmitGuide_Desc":"To submit the request, go to Workplace > Approval > Submit Request. You can refer to the user guide which has been sent to you via the Approval bot.","approval-mp_SubmitHere_Title":"Submit your {{application}} here","approval-mp_SubmitMobileOnly_Desc":"Please submit in the mobile app","approval-mp_SubmitPersonTime_Desc":"Submitted by {{userName}} ({{submitTime}})","approval-mp_SubmitRequestWithDocsCopy_Title":"Submit approval request with a copy of the document","approval-mp_Submit_Button":"Submit Now","approval-mp_SubmittedBy_FieldName":"Submitted by","approval-mp_SubmittedDocOwnerChanged_Toast":"Submitted. Document owner changed to {{BRAND_DISPLAY_NAME}}","approval-mp_SubmitterView_Desc":"Submitter's view","approval-mp_SubordinatesNameNum_Desc":"{{num}}","approval-mp_Subordinates_Desc":"Subordinate: ","approval-mp_Subordinates_Header":"Subordinate","approval-mp_SysAutoGenerate_Placeholder":"Auto-generated after submission","approval-mp_SystemPrint_Button":"Use Default Template","approval-mp_TeamAbnormalDataTime_Title":"Abnormal approval data of {{name}}'s team from {{time}} to {{time}}","approval-mp_TeamDetaisFailedRetry_Desc":"Failed to generate detailed data of your team from {{time}}. You can try again in the app.","approval-mp_TeamLastMonthGenerated_Desc":"Detailed data from {{name}}'s team in {{time}} is now generated. Click to view.","approval-mp_TerminatedProcess_Switch":"Terminated processes","approval-mp_Terminated_Desc":"Terminated","approval-mp_Terminated_Placeholder":"Terminated","approval-mp_Terminated_Tag":"Terminated","approval-mp_ThisDeleted_Desc":"This request has been deleted.","approval-mp_ThisFormatNotYet_Toast":"{{fileType}} attachments are not supported.","approval-mp_ThisHasBeenDeleted_Desc":"This request has been deleted by the administrator.","approval-mp_ThisaRequiredField_Toast":"{{WidgetName}} is a required field.","approval-mp_ThreeCannotDisplay2_Tooltip":"Date, Details/Table, and Widget Group","approval-mp_ThreeCannotDisplay_Tooltip":"These widgets cannot be configured at this time:","approval-mp_ThreePersonConversation_Desc":"You can add {{count}} members to a group conversation, including {{name}}, {{name}} and {{name}}. The following reminder will also be sent.","approval-mp_ThreeToDisplay_Tooltip":"This form only has {{num}} customizable fields available.","approval-mp_Title":'[Important CC] "{var}" submitted by {person} is cc\'d to you',"approval-mp_TitleName_Title":"Title","approval-mp_TwoPersonConversation_Desc":"You can add {{count}} members to a group conversation, including {{name}} and {{name}}. The following reminder will also be sent.","approval-mp_TypeAll_Desc":"Type: all","approval-mp_TypeNum_Desc":"Type: {{num}}","approval-mp_Type_Header":"Type","approval-mp_TypeofRequest_Desc":"Request type","approval-mp_UnableBatchProcess":"Unable to batch process","approval-mp_UnableLoadRetry_Desc":"Unable to load. <1>Please try again.</1>","approval-mp_UnableToCreateDetailTable_Tooltip":"Unable to create the detail table. Please try again.","approval-mp_UnableToImportDataConfiguring_Tooltip":'You cannot batch import data ("{{externalData}}") used for configuring.',"approval-mp_UnableToImportExcelLastModifiedTime_CardDesc":"{{mm}}/{{dd}} {{HH}}:{{nn}}","approval-mp_UnableToImportExcelLastModified_CardDesc":"Last modified:","approval-mp_UnableToImportExcel_CardButton":"Try Again","approval-mp_UnableToImportExcel_CardTitle":"Unable to import","approval-mp_UnableToRestore_toast":"Unable to restore. Please try again.","approval-mp_UnmarkNormalCCTips_Desc":"If you uncheck this option, the request will be sent to the recipient as a regular copy.","approval-mp_UpToTwentyQuickText_Tooltip":"You can add up to 20 quick texts.","approval-mp_UpdateForLatestExp_Desc":"Update {{APP_DISPLAY_NAME}} now for the latest printing features","approval-mp_UpdatedFormPageRefresh_toast":"An updated version of the form is available. The page is refreshing.","approval-mp_Upload30Max_Desc":"Up to {{count}} attachments ({{size}} MB each max)","approval-mp_Upload30Max_Tooltip":"Upload up to {{count}} attachments","approval-mp_UploadFailedRetry_Desc":"Failed to upload. Please try again.","approval-mp_UploadFiles_Button":"Upload attachments","approval-mp_UploadingWait_Desc":"The request will be automatically submitted once all attachments are uploaded.","approval-mp_Uploading_Desc":"Uploading...","approval-mp_UseCommas_ExcelDesc":'To ensure successful validation, please use commas "," to separate multiple options.',"approval-mp_UsedNum_Desc":"{{num}} use(s)","approval-mp_ViewAllLines_Button":"View all {num} lines","approval-mp_ViewData_Tab":"Data Management","approval-mp_ViewDetailsInApp_Desc":"Click to view details in the app.","approval-mp_ViewDetails_Button":"View Details","approval-mp_ViewDownloadedPDF_Button":"View","approval-mp_ViewExportedContentDetails_Desc":"You can view export history and progress here.","approval-mp_ViewExportedDetails_Title":"View export history","approval-mp_ViewNow_Button":"View Now","approval-mp_ViewProgress_Button":"View Progress","approval-mp_View_FieldName":"Details","approval-mp_Visibility_ICUcontent":"visibility","approval-mp_VisitSmartProcessConfigure_Desc":"To configure this rule, visit the {{SmartProcessRulesPlatform}}.","approval-mp_WaitingUpload":"Waiting to upload","approval-mp_WantToApply_Desc":"Submit an application?","approval-mp_WidgetsFromV1_ICUcontent":"widgets from Version 1","approval-mp_Yes_Button":"Confirm","approval-mp_YouCanEdit_Toast":"Process revoked. You can edit this approval document.","approval-mp_YourTeamLastMonthGenerated_Desc":"Your team's detailed data from {{time}} is now generated. Click to view.","approval-web_ExpiredNClosed_Desc":"The request has expired and closed automatically.","approval-web_ExpiredNClosed_Tooltip":"This request has expired and closed automatically.","approval-web_Expired_Tag":"All done! No group chat is required.","approval-web_LoadMore_Button":"Load More","approval-web_Loading_Desc":"Loading","approval-web_NoResultsFound_Desc":"No results found","approval-web_NoResultsFound_EmptyState":"No results found","approval-web_ProcessASAPClosed_Desc1":"Please process this approval request as soon as possible. Otherwise, it will be closed automatically on {{month}}/{{day}}.","approval-web_ProcessASAPClosed_Desc2":"Please process this approval request as soon as possible. Otherwise, it will be closed automatically on {{month}}/{{day}}/{{year}}.","approval-web_RefineSearch_Desc":"Refine your search with more specific keywords","approval-web_SearchBuilding_Placeholder":"Search","approval-web_SearchDate_Placeholder":"Search","approval-web_Searching_EmptyState":"Searching...","approval-web_SingularRequestWaitResponse_Tooltip1":"This request has been waiting for over {{dayCount}} days. Please remind your approvers to process the request; Otherwise, it will be closed automatically on {{month}}/{{day}}/{{year}}.","approval-web_SingularRequestWaitResponse_Tooltip2":"This request has been waiting for over {{dayCount}} days. Please remind your approvers to process the request; Otherwise, it will be closed automatically on {{month}}/{{day}}.","approval-web_TryAgain_Desc":"Please try again","approval-web_UnableLoadTryAgain_Desc":"Unable to load. Please try again","approval-web_UnableLoadTryAgain_EmptyState":"Unable to load. Please try again","approval-web_UnableLoad_EmptyState":"Unable to load.",approvalForm:{ApprovalDeletedHint:"Failed to submit. This approval has been deleted.",ApprovalDisabledHint:"Failed to submit. This approval has been disabled.",Approvers:"Approver",CCTo:"Notify",PleaseFillInAddress:"Please enter full {{name}}",Submit:"Submit",WaitForUploading:"Uploading... Please wait.",dateRangeIsNotClosed:"Please enter both {{startName}} and {{endName}}",dateRangeTip:"must be later than",department:"Department",fillNumber:"Please enter number",instead:"(Submitted by the delegate {{name}}.)",insteadSubmit:{cancel:"Cancel Submission by Delegate",chooseOther:"Submission by Delegate",label:"Submitter"},insteadSubmitter:{chooseNoPermission:"{{name}} does not have permission to apply for application approval.",chooseNoPermissionContent:"Contact the administrator {{manager}} for handling, or select a submitter again.",chooseTitle:"Select the original applicant, for whom you submit the application.",chooseTitlePc:"Please select the original applicant, for whom you submit the application.",chooseUserTip:"Please search for the name of the person"},pleaseFill:"Please enter ",requestOk:"Submitted successfully."},approval_count:"Tickets Reviewed",approval_count_bot:"Tickets Reviewed: N tickets","approval_document_trusteeship_multi-lingual_NoWidgetTypeForBatchImport_Tooltip":"There is no widget type that supports batch import.",approval_head_1:"Approval Efficiency Summary Report for Jan",approval_head_10:"Approval Efficiency Summary Report for Oct",approval_head_11:"Approval Efficiency Summary Report for Nov",approval_head_12:"Approval Efficiency Summary Report for Dec",approval_head_2:"Approval Efficiency Summary Report for Feb",approval_head_3:"Approval Efficiency Summary Report for Mar",approval_head_4:"Approval Efficiency Summary Report for Apr",approval_head_5:"Approval Efficiency Summary Report for May",approval_head_6:"Approval Efficiency Summary Report for Jun",approval_head_7:"Approval Efficiency Summary Report for Jul",approval_head_8:"Approval Efficiency Summary Report for Aug",approval_head_9:"Approval Efficiency Summary Report for Sep",approval_message_ContinueEditingBrowser_CardDesc:"You can continue editing in the detail table.",approval_message_RoundingAmount_ExcelDesc:"Rounding may lead to discrepancies in the amounts between the detail table and the imported file.",approval_mp_EligibleApproval_plural_Desc:"Your {{scope}} have {{num}} eligible approvals.",approval_mp_SearchKeyword_Decs:"Request, requester, request No., general info or comment",approval_preview:{description:"Scan the QR code with your phone to preview the approval process",permission_warning:"To ensure the process preview is complete, the controls are editable during preview.",title:"{{name}} preview",userGroup_deleted:'"User group deleted"'},approval_print:{Add_watermark:{Approval_QRcode:"Scan the QR Code via {{BRAND_DISPLAY_NAME}}",Approval_deteled:"Deleted",Approval_passed:"Approved",Approval_pending:"Processing",Approval_rejected:"Rejected",Approval_revoked:"Canceled"}},approval_project_ApprovalData_Menu:"Approval Data",approval_summary_1:"Your average approval time spent in N is longer than X% of the approvers in your department.",approval_summary_2:"Your average approval time spent in N is shorter than X% of the approvers in your department.",approval_task_time:"Avg. Approval Time Spent",approval_task_time_bot:"Avg. Approval Time Spent: N hours",approval_timeout_rate:"Approval Timeout Rate",approval_tips_bad:"Pay attention to your efficiency.",approval_tips_good:"Keep it up.",approval_transfer_rate:"Delegate Approval Rate",approval_view_detail:"View Processes to Be Improved",approver:"Approver",block_enter_for_approval:"Go to Approval",bottitle:"Team Approval Efficiency Summary Report for N",budget:"Business Budget","candidate_search_no-result":"No results found",common:{amount:"{{count}}",go_update:"Go to Upgrade",please_update_greater_or_equal:"Please upgrade your {{BRAND_DISPLAY_NAME}} to version {{version}} or above."},contract:"Contract Center",create_approval:{form_group:{workGroup_Type_change:"Compensatory time off",workGroup_Type_overtimePay:"Overtime pay"},preview:"Preview",process_cannot_preview:"This approval process is xxx and can't be previewed."},create_group_tips:"As this document contains sensitive information, any group members who are not involved in the approval process will not be able to view it.",create_tips2:"Create successful",detail:{no_permission:"No document permission"},detailDoc:"See the document for details ",document:"https://bytedance.feishu.cn/docs/doccnspW34TKs4THdOAwfR16tTh#",efficiency_bot_admin1:"Company Overall Approval Efficiency Summary Report for N",efficiency_bot_admin10:'"xxx" has the lowest completion rate.',efficiency_bot_admin11:'"xxx" has the worst average process time spent.',efficiency_bot_admin12:"On average, {{user}} has the longest approval time.",efficiency_bot_admin13:'"xxx" has the most timeout to-do documents.',efficiency_bot_admin14:'Approvers from "xxx" department have the longest average time spent on processing approvals.',efficiency_bot_admin2:"Approval Process Efficiency Summary Report for N",efficiency_bot_admin3:"Process Completion Rate",efficiency_bot_admin4:"Avg. Process Time Spent",efficiency_bot_admin5:"Avg. Task Time Spent",efficiency_bot_admin6:"To-dos Waiting for More Than 48h",efficiency_bot_admin7:"Pay attention to the following items",efficiency_bot_admin8:"It can only be viewed on the desktop app.",efficiency_bot_admin9:"Go to the desktop app for required actions.",emptyCC:"No unread CC content",emptyCreated:"No initiated content in progress",emptyUpcoming:"Good job. You have completed all to-dos.",enableBadge:"Display approval message badge",failToSwitchBadge:"Failed to switch corner badge display",feishu:"Feishu",feishu_lark:{ApprovalEfficiency:{"PC_Efficency_label-1":"Use your {{feishu}} mobile app to scan the QR code and view it.",lowVersion:"Your {{feishu}} app's version is too low, so this page cannot be viewed. Please upgrade first.",updateFeishu:"Go to Upgrade {{feishu}}"},CreateList:{CustomCreateModal:{Content:"In order to improve the normalization of ByteDance self-built processes, ByteDancers must submit a creation application when creating a {{feishu}} approval. They can only enable the new process after passing the reasonability and normalization review. For details, please view",ContentLink:'"{{feishu}} Approval Creation Application"'}},OnBoarding:{OpenWindowTips:"Click here to open {{feishu}} approval in a separate window."},PC:{LowVersionTip:"Your client version is too low to directly open the document for details. Click to",UpgradeBtn:"Upgrade the client"},Print:{qrCodeTips1:"Use your {{feishu}} mobile app to",qrCodeTips3:"Scan with {{feishu}} to view"},Signature_scan:"Use {{feishu}} mobile app to scan QR code and sign.",approval_preview:{description:"Scan the QR code with your phone to preview the approval process"},approval_print:{Add_watermark:{Approval_QRcode:"Scan the App QR Code via {{feishu}}"}},common:{please_update_greater_or_equal:"Please upgrade your {{feishu}} to version {{version}} or above."},title:'Generally speaking, are you satisfied with "{{feishu}} Approval"?',widgets:{cloudDoc:{edit:{submit:"Doc ownership has been transferred to {{feishu}} Approval."},search:{ownertip:"Once the Doc is submitted for approval, its ownership will be transferred to {{feishu}} Approval. You can submit the Doc by creating a copy."},view:{please_update_app:"You cannot view the Doc because your {{feishu}} version is too low. Click to",please_update_greater_or_equal:"You cannot view the Doc because your {{feishu}} version is too low. Please upgrade it to version {{version}} or above."}}}},force:{update:{button:"Click to Upgrade",desc:"Please update to the latest version.",title:"A new version of the {{APP_DISPLAY_NAME}} app is available."}},form:{account:{acccountNamePlaceholder:"Payee name",acccountNamePublicPlaceholder:"Enter the payee name.",acccountNumberPlaceholder:"Payee account no.",acccountNumberPublicPlaceholder:"Enter the payee account no.",accountName:"Account name",accountNamePlaceholder:"Enter the payee name.",accountNumber:"Account no.",accountNumberPlaceholder:"Enter the payee account no.",accountType:"Account type",add:"Add account",bank:"Bank",bankBranchSearch:"Enter the branch name to search.",bankLocation:"Region of bank",continueEdit:"Continue Editing",deleteAccount:"Delete account",deleteAccountMessage:"Are you sure you want to delete this account? It cannot be recovered once deleted.",deleteAccountPcMessage:"The {{account}} account cannot be recovered once deleted.",deleteAccountPcTitle:"Are you sure you want to delete this account?",donotsave:"Do Not Save",editAccount:"Modify Account",goback:"Exit",locationPlaceholder:"Select (enter as much information as possible to ensure payment succeeds)",mockTip:"You cannot view account information added by others when previewing.",name:"Payee account",noAccount:"No options available. Add an account first.",noSearchResult:"No related results found",nodata:"No results found",pcAddressPlaceholder:"Search for the city name (enter as much information as possible to ensure successful payment).",personalAccount:"Personal account",pleaseSelectFirst:"Select a/an {{name}} first.",publicAccount:"Corporate account",remark:"Remarks",remindSave:"Changes not saved",remindSaveMessage:"Changes will not be saved when exiting.",remindSaveMessagePc:"Content will not be saved once closed.",searchBank:"Search bank",searchFooterText:"If no results are found, try to search with precise keywords.",searchSubBank:"Search bank branch",selectBank:"Select bank",selectSubBank:"Select bank branch",subBank:"Bank branch"}},formAddress:{LocatingFailed:"Failed to determine location. Please try again.",LocatingHint:"Locating...",LocationOffContent:"Please enable location services to automatically get your current location.",LocationOffTitle:"Location services are disabled.",SelectDistrict:"Select region",SystemLocationOff:"Failed to determine location. Please enable location services."},formApprovers:{Add:"Add",MergeSameApproverHint:"Adjacent approvers have been merged as they are the same person.",NotDuplicated:"You cannot select the same approver as the previous one.",NotSelf:"You cannot select yourself."},formAttachment:{AddButton:"Add attachment",AttachmentCount:"{{count}} attachment",AttachmentCount_plural:"{{count}} attachments",OversizeHint:"Attachment exceeds the limit of 50MB.",UnavailableFileType:"Word, Excel, PPT or PDF files only.",maxCount:"Select up to 9 attachments only.",nonsupportFormatHint:"This type of file is not currently supported"},formContact:{FailOnChoose:"Failed to select {{name}}",FailOnChooseContact:"Failed to select contacts."},formFieldlist:{Summary:"Total",add:"Add details",delete:"Delete"},formImage:{ImageCounts:"{{count}} pictures",OversizeHint:"Max image size for upload is 10MB",OversizeHintNew:"Max image size for upload is 50MB",maxCount:"Select up to 9 images only."},formSelectDate:{am:"AM",hour:"hour",minute:"minute",pm:"PM"},form_widget_editor:{amount:{unit_options:{max_support_warning:"Enter up to {{n}} decimal places."}},leave_group:{leave_group_end_time:"End time",leave_group_start_time:"Start time"}},form_widget_viewer:{leave_group:{end_time:"End time",start_time:"Start time"},out_group:{end_time:"End time",start_time:"Start time"},remedy_group:{remedy_date:"Date of Error",remedy_time:"Correction time"},trip_group:{end_time:"End time",start_time:"Start time"},work_group:{date_category:"Date type",end_time:"End time",start_time:"Start time"}},geren:"Monthly report of individual approval efficiency: yyyy-mm",geren001:"Your efficiency for handling the [xx process] is behind n% of approvers in your department. See if there's a way for optimization.",geren0010:"Suggestions:",geren002:"Company requirements specify that the assigned approver is responsible for handling approvals themselves. Unless on leave, please endeavor to handle them yourself instead of delegate approval.",geren003:"Questions about the data? Tap here.",geren004:"View my detailed data",gerenshuoming:"Your approval efficiency data for N can be found below:",good_reason:"Reason for satisfaction?",guide:{tooltip:{editApproval:"Edit the form, process, and other settings of this approval."}},header:{add_approval:"Initiate Approval",search_placeholder:"Search task subjects, applicants, nos.",tabs_index:"Approval Center"},introduce:"Risk Description","invte group":"Initiating group chat...","join group":"Joining the group chat...",key_value:"{{key}}: {{value}}",lark:"Lark",list:{approval_agreed:"Approved",approval_all_read:"All",approval_all_status:"All Status",approval_canceled:"Recalled",approval_delete:"Deleted",approval_no_more:"No more data",approval_no_searchlist:"No related content found",approval_only_unread:"View Unread Only",approval_pending:"Under Review",approval_read:"View Read Only",approval_read_list:"Read",approval_reject:"Rejected",approval_status:"Approval Status",approval_terminated:"Terminated",approval_timeover:"Expired",approval_unread:"Show Unread First",approval_unread_list:"Unread",card_agent:"Delegate",card_combina_creater:"Requester:",card_create_time:"Initiated: {{time}}",card_handle_time:"Processed: {{time}}",card_pre_approve:"Assist",card_pre_approve_success:"Assisted",card_reach_time:"Arrived: {{time}}",click_get_more:"Load More",filter_early_create:"Earliest Initiation First",filter_early_handle:"Earliest Processing First",filter_new_handle:"Latest Processing First",filter_reach_fisrst:"From Latest",filter_read_all:"View All",filter_waiter_first:"From Earliest",filtet_new_create:"Latest Initiation First",get_list_again:"Reload",get_list_error:"Load failed",mark_all_read:"Are you sure you want to mark all unread CC messages as read?",mark_all_readed:"Are you sure you want to mark all unread CC messages as read?",mark_read_cancel:"Cancel",mark_read_ok:"Mark as Read",mark_unsupport_count:"{{count}} items awaiting approval. One-click read is not supported. View manually.","overdue_Capital loss":"Fund Loss",overdue_Details:"Explain the risk details to provide the approver with more information for decision-making.",overdue_PR:"PR",overdue_aging:'Approval Timeliness Suggestions: It is recommended that all approvals for this application be completed before YYYY-MM-DD, otherwise there will be a risk of "XXXX".',overdue_bot:"Up to now, you have X to-dos to process. X of them will have risks if they are overdue. X have been waiting for more than 24h.",overdue_description:"Overdue Approval Risk Description",overdue_description1:"If you have set clear expectations about the approval completion time, you can fill in this field and select an overdue approval risk to help the approver better understand the relevant impact. View more",overdue_description2:"Fill in the risk type.",overdue_effectiveness:"Worse than N% approvers in department",overdue_legal:"Legal Dispute",overdue_other:"Other","overdue_reminder time":"Proposed Approval Completion Time",overdue_reminder1:'"{{risks}}" risks may occur for overdue approvals.',overdue_reminder2:'There will be a risk of "XXXX" if the approvals fail to be completed fully before YYYY-MM-DD.',overdue_risk:"Overdue Approval Risk",overdue_time:"Proposed Time to Complete All Approvals",search_tips_key:"Search approvals related to {{searchKey}}.",search_tips_label:"Press the Enter key.",time_all:"All Time",time_custome:"Customize Time Range",time_days:"Past 24 Hours",time_filter:"Filter by Time",time_month:"Past 30 Days",time_threedays:"Past 3 Days",time_week:"Past 7 Days",tooltip:{display_rule:"Display Rules",mark_all_read:"Mark All as Read",sort:"Sort"}},loadFailedClickRefresh:"Load failed. Click to refresh.",loginFailedTips:"Failed to log in. Please try again.","mp_admin_Toast-1":"No Disable permission. Please request it from the\nadministrator.","mp_admin_Toast-2":"No Delete permission. Please request it from the\nadministrator.",network_error:"Load failed. Please check your network and try again",new_Add_12:"Go to the dashboard for detailed data.",new_add_001:'Your efficiency for processing the "xxx" is behind N% approvers in your department.',new_add_002:"You have N tasks that are processed using over 48 hours. Please view detailed data and see if there's a way for optimization.",new_add_003:"You have N tasks processed by delegates. Company requirements specify that the assigned approver is responsible for processing approvals themselves. Please try to avoid delegate approval.",new_add_004:"View Diagnosis",new_add_005:"View Detailed Data",new_add_0061:"Obtain Detailed Data",new_add_07:"Detailed data on approval time spent has been generated.",new_add_08:"Click here to view your detailed data on approval time spent for the last 14 days.",new_add_09:"Click here to view your detailed data on approval time spent for the last 30 days.",new_add_10:"Click here to view your detailed data on approval time spent for the last month.",new_add_11:"Click here to view your detailed data on approval time spent for the month before last month.",new_add_111:"Approval took more than 48h",new_add_112:"View Now",new_add_11221:"Delegate approval by others",new_feature_guide:{i_know:"Got It",operate_modify:{content:"You can modify your approval document. Click here to make modifications if you need to."}},not_good_reason:"Reason for dissatisfaction?",notice:"Complete approval within N hours so as not to fall behind your team average.","notice10-15":"Your previous speed at handling such processes was slower than other's.",notice111:"You have been working hard all day. But try not to leave approvals overnight, because it can effectively improve the overall approval efficiency for the xx team.",notice2:"Complete approval within N mins so as not to fall behind your team average.",notice_bot:"Your previous speed at handling such processes was slower than other's.",notify:"Cc recipient","overdue risk":"Expiration Risk",overtime:"Overtime",panel:{close:{window:"Close window"},open:{window:"Open in new window"},robot:"Chatbot",setting:"Settings"},picker:{configRole:"Configure roles",configUserGroup:"Configure user groups",departmentCount:"{{count}} departments",departmentHeadCount:"{{count} director",jumpToAdmin:"Go to {{BRAND_DISPLAY_NAME}} Admin Console",menberCount:"{{count}} members",noSearchResult:"No results found",organization:"Organizational structure",refresh:"Refresh",roleCount:"{{count}} characters",searchRole:"Search role name",selectCreator:"Select sponsor",selectUserGroup:"Select user group",supervisorCount:"{{count} department heads",userGroupCount:"{{count}} user groups"},popup:{Off:"Cancel",Ok:"Confirm"},"process limit":"Full Process Time Limit",project:"Project Application",public_expenditure:"Payment Request",purchase:"Procurement Center",reason1:"Lack of features and dissatisfying",reason11:"Satisfying features",reason2:"Slow or unstable system loading",reason22:"Stable system",reason3:"Important info gets buried",reason33:"Quickly get key points",reason4:"Unattractive document display",reason44:"Attractive interface design",reason5:"Other",reason55:"Other",reimbursement:"Employee Reimbursement",rejectCheckTitle:"Are you sure you want to reject the {{name}}? After rejection, the original approval document is still valid.",remedyGroupV2:{addGroup:"Add Record",canRemedyTimes:"Available Correction Time:",pleaseReChooseRemedyTime:"Select a right correction time.",recordIndex:"Record",remedyNumForMonth:"{{name}} has made {{count}} correction(s) in the month of {{time}}.",remedyTimeOverRange:'"Correction Time" is out of the selection range.',shouldNotRemedy:"Attendance for current date is normal. Correction not required."},requestFailedTips:"Something went wrong. Please try again later.",requestNoneTips:"No data available.",risk:'Subject to risks including "Fund Loss", "Legal Dispute", and "PR"',scope:{camera:"Camera / Album",userLocation:"Location"},search:{all:" All",ccSomeone:"Cc'd {{user}}",confirm_num:"OK ({{num}})","filter-person":"Filter employees","filter-selected":"Selected","filter-sub-person":"Filter subordinates",from_and_nav:"{{nav}} from {{user}}",open_detail:"Open details","search-person":"Search employees","search-sub-person":"You can search to find all subordinates",search_all_sub:"Viewing range filtered to [All subordinates]",selectedText:"Selected: ","staff-reset":"Reset",staff_num:"{{num}} employee approvals",staff_placeholder:"You can search for all subordinates",sub_detail_tip:"This system doesn't support superiors to view subordinates' approvals now. You might have no permission to view these documents. Contact the initiator {{user}}.",sub_num:"{{num}} approvals from subordinates",submittedBy:"Submitted by {{name}}",view:"View",view_range:"Viewing range",view_range_num:"{{num}} people",view_staff_num:"Recommended: {{num}} employee approvals",view_staff_recommend:"Recommended: ",view_sub_num:"Recommended: {{num}} approvals from subordinates",view_v2:"View Details",whoesTask:"{{user}}'s {{topic}}"},searchBox:{search:"Find",searchTip:"Find within the page"},search_tips:"Loading...",share_tips:"Shared successfully",share_tips_1:"You can only forward to n chats at once.",share_tips_100:"To reduce info security risk, sharing it with a chat group of over 100 members is not supported.",submit_attendance_seal_check:"Unable to submit because {{name}}'s attendance records on and before {{month}}/{{date}} are locked after the pay period closes. Contact the administrator for a temporary opening if necessary.",team:"View Team Efficiency Details",team001:"Monthly report of team approval efficiency: yyyy-mm",team002:"Trend of avg. team approval time spent",team003:"View detailed team data",team_0001:"Approval efficiency of @Zhangsan's team is relatively poor.",team_0002:"Approval efficiency of @Zhangsan's team has been the worst performer for 2 consecutive cycles.",team_0003:"Delegate approval rate of @Zhangsan's team has been the highest (10%) with N approvers using delegate approval.",team_0004:"Speedy approval rate of @Zhangsan's team has been the highest (10%) with N approvers using speedy approval.",team_0005:"Approval efficiency of @Zhangsan's team is much lower compared to the previous cycle",timeline:{cc_desc:"Successfully CC'ed",comment_desc:"Comments added",node:{handled:"Handled",handler:"Handler"},pass:"Approved",redirect_desc:"Successfully transfered",start_approval:"Submitted"},tips_1:"Unable to join group chat",title:'Generally speaking, are you satisfied with "Feishu Approval"?',todo:"N to-dos not processed",update_version_text:"New version restarting",vocation:"Leave",warning:"Tips",widgets:{cloudDoc:{docxTip:"DocX display is not supported. You can open your browser to view.",edit:{add:"Add Doc",choose:"Select Doc",copyFail:"Copy creation failed",copyTitle:"- Approval Version",copy_auth_setting:"You should grant the mini-program clipboard permission before copying URLs normally. Are you sure you want to grant permissions?",copy_link_error:"Failed to copy URL",copy_link_success:"URL copied successfully",copying:"Creating copy...",deleted:"Doc has been deleted. Add again.",lastUpdate:"Last Updated",permissionCheck:"Confirming Doc permissions...",remove:"Delete Doc",should_choose_docs:"Add a Doc first.",submit:"Doc ownership has been transferred to Feishu Approval."},gotoBrowser:"Open browser to view",search:{addByCopy:"Add Doc Using Copy",addbutton:"Use Original Doc",checkboxToast:"Only the Doc owner can add a Doc",checkboxTooltip:"Support original doc or copy addition, only document owners can use original doc addition.",concat:"Only the Doc owner can add a Doc. Contact the owner $$ to grant you permission to create a copy.",copy:"Only the Doc owner can add a Doc",copybutton:"Create Copy Doc",empty:"No relevant Docs found. Please re-enter.",error:"Enter the correct Doc URL.",owner:"Owner",ownertip:"Once the Doc is submitted for approval, its ownership will be transferred to Feishu Approval. You can submit the Doc by creating a copy.",placeholder:"Search for Doc name or paste URL.",tip:"Search for Doc name or paste a URL to add."},view:{copy_link:"Copy URL",hide:"Hide",open_up:"Show docs",pack_up:"Hide docs",please_update_app:"You cannot view the Docs with your current {{BRAND_DISPLAY_NAME}} version. Click to",please_update_greater_or_equal:"You cannot view the Docs with your current version. Please upgrade your {{BRAND_DISPLAY_NAME}} to version {{version}} or above."}},cloudDocBlock:{disableResubmitTip:"Re-submission is not supported for approvals submitted in Docs.",disableRollbackTip:"Return is not supported for approvals submitted in Docs.",version:"Document Version",versionTip:"The current Doc version is the latest. You can view the approval version in the history area.",viewLatest:"View the latest version"}},withdrawAndResubmit:"Applications in processing cannot be modified at this time.",work_rule:{editor:{approval_rule:"Overtime calculation method",restday:"Day off",special:"Holiday",workday:"Workday"}},"写死在代码里无需key":'This function is only available when the approval type is "first to respond". The first responder who claims a request makes it unavailable for any other responders to claim it. The claimed request can be processed by the first responder later.'}},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){},,,function(e,t,a){},,function(e,t,a){},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var r=[1506,1507]},,,,,,,,,function(e,t,a){e.exports={navigation:"index-module__navigation___2CJuv"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzM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c4OTU0IDEuNTIxODlDMC40NDg3OCAxLjM5MTcxIDAuNDQ4NzggMS4xODA2NiAwLjU3ODk1NCAxLjA1MDQ4TDEuMDUwMzYgMC41NzkwNzZDMS4xODA1MyAwLjQ0ODkwMiAxLjM5MTU5IDAuNDQ4OTAyIDEuNTIxNzYgMC41NzkwNzZMNi4wMDAxMSA1LjA1NzQyWiIgZmlsbD0iIzJCMkYzNiIvPgo8L3N2Zz4K"},,function(e,t,a){e.exports={interval_text:"index-module__interval_text___AA4VI"}},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAMAAADQmBKKAAAAwFBMVEUAAAD4+Pr////5+fr5+fr4+Pz4+Pn5+fn39/38/P/////////5+fr4+Pr4+Pn5+fn4+Pn5+fn5+fn5+fr4+Pr5+fn5+fn7+/vw8PP7+/z39/nw8PPw8PP5+fr7+/v9/f35+fr5+fr5+frw8PPw8PP4+Pnw8PP5+fr5+frw8PT5+fn4+Pv6+vr6+vr////w8PPv7/Lw8PPv7/Lw8PPw8PPw8PTw8PTv7/Lw8PT4+Pnv7/Lz8/Xy8vT39/j19ff19fWk/bk5AAAAOXRSTlMAwwX5+01ILCcSCwL36+TYuLKroZiIhULEHjD8+e47GzP07Ovj39bSxYeCdGBdIbmzrKGYg15C9HT1/R9KAAAFFElEQVR42szY6W6yQBTG8TOAO4siat4mrUtiNG7fn2Es939Xb2LbhMalPMggvyv4JzMHDsgznG5rn8TD7Wa9ct3VerMdxsm+1XXkBfrt6ShycZMbjabtvtTHme2Uiz+4ajdzpAb949BHQf7w2BerBrPxEpTleDYQW06TECWEk5PY0B17KMkbd6VqbzGeEr9JlRYjPG20kKr0ElQi6UklDgEqEhzkeR2FCqmOPGcw9VApbzqQJ8wVKqfmUlo7gAVBW8pxJrBk4pQadgVrVE9o/yJYFP2jpz2EVSE5/x/vsOz9QwgtH9b5LaLHQw28wkUfPmrhFzy1zjtq8t4pNO8hahMWmP5ehBpFPfmDo1Ar5chjE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NTNMMy4wNTU3NyAyLjIyMjY2SDExLjk0NDdaIiBmaWxsPSIjN0YzQkY1Ii8+Cjwvc3ZnPgo="},function(e,t,a){e.exports={main_wrap:"index-module__main_wrap___32Hxv",fake_input:"index-module__fake_input___gHddK"}},,,function(e,t,a){e.exports={custom_textarea:"index-module__custom_textarea___3qzH5"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNiIgdmlld0JveD0iMCAwIDMyIDYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMi40MzgzIDEuOTkzMDlMMTUuMjUyNiA1LjE1OTE2QzE1LjY1MDQgNS42MDY2OCAxNi4zNDk2IDUuNjA2NjggMTYuNzQ3NCA1LjE1OTE2TDE5LjU2MTcgMS45OTMwOUMyMC42ODg2IDAuNzI1MzQzIDIyLjMwMzggLTcuOTU4MTFlLTA3IDI0IC04LjkwMThlLTA3TDE2IC00LjQ1MDllLTA3TDggMEM5LjY5NjE5IC05LjQzNjk2ZS0wOCAxMS4zMTE0IDAuNzI1MzQ1IDEyLjQzODMgMS45OTMwOVoiIGZpbGw9IiMxRjIzMjkiLz4KPC9zdmc+Cg=="},,function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIyNiIgdmlld0JveD0iMCAwIDI2IDI2Ij4KICAgIDxwYXRoIGZpbGw9IiMzMzcwRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTE0LjUgMTEuNUgyNGExLjUgMS41IDAgMCAxIDAgM2gtOS41VjI0YTEuNSAxLjUgMCAwIDEtMyAwdi05LjVIMmExLjUgMS41IDAgMCAxIDAtM2g5LjVWMmExLjUgMS41IDAgMCAxIDMgMHY5LjV6Ii8+Cjwvc3ZnPgo="},function(e,t){e.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gMi40MTk4Nzg4OCw1LjE1NzQxMzc4IDIuMDM1NTk2NCw5LjIzOTYyOTYzIEMxLjk4MzgzNTQ5LDkuNzg5NDgzNDggMS40OTYxMzAzNywxMC4xOTMyNjc2IDAuOTQ2Mjc2NTIxLDEwLjE0MTUwNjcgQzAuMzk2NDIyNjc0LDEwLjA4OTc0NTggLTAuMDA3MzYxNDMzNzYsOS42MDIwNDA2NSAwLjA0NDM5OTQ3NDMsOS4wNTIxODY4MSBDMC41MjUwNTkzNDgsMy45NDYxNTgxMyA0LjgxOTg4NTg2LDAuMDA4OTE4NTI1MDkgOS45ODI0MTY4MywxLjM2NDE2MzI5ZS0wNSBaIiBpZD0ibG9hZGluZyIgZmlsbD0iIzMzNzBGRiIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICAgICAgICA8YW5pbWF0ZVRyYW5zZm9ybQogICAgICAgICAgICAgICAgYXR0cmlidXRlVHlwZT0ieG1sIgogICAgICAgICAgICAgICAgYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIgogICAgICAgICAgICAgICAgdHlwZT0icm90YXRlIgogICAgICAgICAgICAgICAgZnJvbT0iMCAxMCAxMCIKICAgICAgICAgICAgICAgIHRvPSIzNjAgMTAgMTAiCiAgICAgICAgICAgICAgICBkdXI9IjFzIgogICAgICAgICAgICAgICAgYWRkaXRpdmU9InN1bSIKICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIgogICAgICAgICAgICAgID48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICAgICAgICAgIDwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGiSURBVHgB7dhbdoIwEAbg4VJ8pTtxB61upC6BpbgEu5FeVl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iIzY0NkE3MyIvPgo8L3N2Zz4K"},function(e,t,a){e.exports={wrap:"index-module__wrap___3fe2_",desc:"index-module__desc___3cmiB","input-parent":"index-module__input-parent___3tY9x"}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjMzMzI1IDcuMzMzMjVWMS43NjA1N0M3LjMzMzI1IDEuNjExOTggNy4zNDg3MiAxLjU1ODEgNy4zNzc3NyAxLjUwMzc4QzcuNDA2ODMgMS40NDk0NiA3LjQ0OTQ2IDEuNDA2ODMgNy41MDM3OCAxLjM3Nzc3QzcuNTU4MSAxLjM0ODcyIDcuNjExOTggMS4zMzMyNSA3Ljc2MDU3IDEuMzMzMjVIOC4yMzkyN0M4LjM4Nzg2IDEuMzMzMjUgOC40NDE3NCAxLjM0ODcyIDguNDk2MDYgMS4zNzc3N0M4LjU1MDM4IDEuNDA2ODMgOC41OTMwMSAxLjQ0OTQ2IDguNjIyMDYgMS41MDM3OEM4LjY1MTExIDEuNTU4MSA4LjY2NjU5IDEuNjExOTggOC42NjY1OSAxLjc2MDU3VjcuMzMzMjVIMTQuMjM5M0MxNC4zODc5IDcuMzMzMjUgMTQuNDQxNyA3LjM0ODcyIDE0LjQ5NjEgNy4zNzc3N0MxNC41NTA0IDcuNDA2ODMgMTQuNTkzIDcuNDQ5NDYgMTQuNjIyMSA3LjUwMzc4QzE0LjY1MTEgNy41NTgxIDE0LjY2NjYgNy42MTE5OCAxNC42NjY2IDcuNzYwNTdWOC4yMzkyN0MxNC42NjY2IDguMzg3ODYgMTQuNjUxMSA4LjQ0MTc0IDE0LjYyMjEgOC40OTYwNkMxNC41OTMgOC41N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e0f+Ihkj413VMxNuIMXFDPhBEvxQuYhEWtrBso7ZYyThuyRiMTXosXFDtKb7WybkAZoaCVQYFLrEz4IZ5O8mtjKCzXbBbxRQIuESYmP13C6JHLWNv+gNz2CjxH4lXPxqZUYiDb8z2oT2UiBKYA+KRxnWSx1xyCimQO2SxzoXg2Klp5AsFCoYSur3al5ViIQqQZtz2SH4gZHtI0brXN0oBIwMoSmibDrYKqSbrenEHd0ejaeTWLbL+JMtL1clFB83g9G03RR3vCLiH+wkaq0S72JjjaYcKGeIHtObL+5eisVCYTPoe+6pQsGlcbI84n+Si59jH8zYge0Mkkn6tp1v5szzQdmPR0mlXCXG7Q+Xzxnia6K2HwFP2K40iyMnsvBo9pukFl4BLvXzUQARllTJxiGuOrBqBHVsaZQmdbPDh59qrBPu3mL0nTi4VZrGa3AAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAYAAAAxrNxjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABYSURBVHgBfY5RDQAhDEORMAlIOScnAQlYwQESkIAEpJQRNjI+2JImS/vSNATnAHysyiIP+rFvsOIyiNVWYKB0QWKSGJCWLH8/kGmIBlaIXpsULu54nfHKJgprc+oM/k7VAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTIgMjNjNi4wNzUgMCAxMS00LjkyNSAxMS0xMVMxOC4wNzUgMSAxMiAxIDEgNS45MjUgMSAxMnM0LjkyNSAxMSAxMSAxMVoiIGZpbGw9IiMzMzcwRkYiLz4KICA8cGF0aCBkPSJNMTIgOGExIDEgMCAxIDAgMC0y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ZmlsbD0iIzY0NkE3MyIvPgo8L3N2Zz4K"},function(e,t,a){e.exports=a.p+"assets/illustration/wifi-error.png"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkgMTUuNzVDMTIuNzI3OSAxNS43NSAxNS43NSAxMi43Mjc5IDE1Ljc1IDlDMTUuNzUgNS4yNzIwOCAxMi43Mjc5IDIuMjUgOSAyLjI1QzUuMjcyMDggMi4yNSAyLjI1IDUuMjcyMDggMi4yNSA5QzIuMjUgMTIuNzI3OSA1LjI3MjA4IDE1Ljc1IDkgMTUuNzVaTTkgMTcuMjVDNC40NDM2NSAxNy4yNSAwLjc1IDEzLjU1NjMgMC43NSA5QzAuNzUgNC40NDM2NSA0LjQ0MzY1IDAuNzUgOSAwLjc1QzEzLjU1NjMgMC43NSAxNy4yNSA0LjQ0MzY1IDE3LjI1IDlDMTcuMjUgMTMuNTU2MyAxMy41NTYzIDE3LjI1IDkgMTcuMjVaTTEwLjUwNjkgMTAuNTExMUw2LjExNzA3IDEyLjM4MDdDNS45MjY1MiAxMi40NjE5IDUuNzA2MjcgMTIuMzczMiA1LjYyNTExIDEyLjE4MjdDNS41ODQ3MiAxMi4wODc4IDUuNTg1MTUgMTEuOTgwNSA1LjYyNjMyIDExLjg4Nkw3LjUyMTM1IDcuNTM1TDExLjg4NDQgNS42MjgyOUMxMi4wNzQyIDUuNTQ1MzYgMTIuMjk1MiA1LjYzMTk3IDEyLjM3ODIgNS44MjE3NEMxMi40MTk1IDUuOTE2NDEgMTIuNDIgNi4wMjM5NSAxMi4zNzk1IDYuMTE4OThMMTAuNTA2OSAxMC41MTExWiIgZmlsbD0iIzY0NkE3MyIvPgo8L3N2Zz4K"},function(e,t){e.exports="data:image/svg+xml;base64,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DIuMjE1MTUgNy44NDMzNSAyLjI4MDZMNy4wMDMwMiA0LjE5NjI0QzYuODA3MTkgNC42NDI2NiA2LjM0NDI5IDQuOTEwMzMgNS44NTk3IDQuODU3MzZMMy43OTQwMyA0LjYzMTU4QzMuMjk1MTQgNS4yMzIwOCAyLjkwMTc4IDUuOTE0NDIgMi42MzMyNiA2LjY0OTcyTDMuODY2NTQgOC4zNDMwOUM0LjE1MTc1IDguNzM0NjkgNC4xNTE3NSA5LjI2NTU4IDMuODY2NTQgOS42NTcxOEwyLjYzMzI2IDExLjM1MDZDMi45MDE3OCAxMi4wODU5IDMuMjk1MTQgMTIuNzY4MiAzLjc5NDAzIDEzLjM2ODdMNS44NTk3IDEzLjE0MjlaTTguOTk5NjEgMTIuNDA5M0M3LjEyMzI2IDEyLjQwOTMgNS42MDM1MSAxMC44ODIyIDUuNjAzNTEgOS4wMDAxN0M1LjYwMzUxIDcuMTE4MTEgNy4xMjMyNiA1LjU5MTA4IDguOTk5NjEgNS41OTEwOEMxMC44NzYgNS41OTEwOCAxMi4zOTU3IDcuMTE4MTEgMTIuMzk1NyA5LjAwMDE3QzEyLjM5NTcgMTAuODgyMiAxMC44NzYgMTIuNDA5MyA4Ljk5OTYxIDEyLjQwOTNaTTguOTk5NjEgMTEuMDQ1N0MxMC4xMjE0IDExLjA0NTcgMTEuMDMyMSAxMC4xMzA2IDExLjAzMjEgOS4wMDAyMkMxMS4wMzIxIDcuODY5ODIgMTAuMTIxNCA2Ljk1NDc2IDguOTk5NjEgNi45NTQ3NkM3Ljg3Nzg0IDYuOTU0NzYgNi45NjcxNCA3Ljg2OTgyIDYuOTY3MTQgOS4wMDAyMkM2Ljk2NzE0IDEwLjEzMDYgNy44Nzc4NCAxMS4wNDU3IDguOTk5NjEgMTEuMDQ1N1oiIGZpbGw9IiMyQjJGMzYiLz4KPC9zdmc+Cg=="},,,function(e,t,a){e.exports={selector:"index-module__selector___2TzwV",selector__inner:"index-module__selector__inner___3PhfD","selector__search-bar":"index-module__selector__search-bar___1lom6","selector__dropdown-bar":"index-module__selector__dropdown-bar___3VXbs",selector__dropdown:"index-module__selector__dropdown___2nDr4",selector__tabs:"index-module__selector__tabs___cp6XJ",selector__pane:"index-module__selector__pane___1m1ss",selector__checkbox:"index-module__selector__checkbox___15UDB","selector__approval-task":"index-module__selector__approval-task___34ZXN",selector__actions:"index-module__selector__actions___2d3i2","selector__actions-inner":"index-module__selector__actions-inner___3VGtz","selector__actions-button":"index-module__selector__actions-button___31QY0","selector__actions-button--vice":"index-module__selector__actions-button--vice___6NG7F","selector__actions-button--main":"index-module__selector__actions-button--main___2jjcE","selector__actions-button--disable":"index-module__selector__actions-button--disable___PPz2w"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){var r=a(769),i={header:{"X-Larkgw-Use-Lark-Session":"1","X-Lob-Open-Auth-Type":"mina","x-sent-by-prefetch":"yes"},hitPrefetchExtraRules:{ignoreHeadersMatching:"true",requiredStorageKeys:["host_url","approval_language"]}};var n="approval/web",o=e=>"${host_url}/".concat(n,"/api/v2/MGetDetail?mode=").concat(e,"&locale=${approval_language}"),s=(e,t)=>({[o(t)]:e.map((e=>((e,t)=>r({method:"POST",data:{Requests:[{Symbol:{Fuzzy:{FuzzyMatched:"${".concat(e,"}")}},Fields:[1,2,3],Mode:t}]}},i))(e,t)))}),c=["ccId","taskId","instanceId"],l=r(r({},s(c,1)),s(c,2));e.exports={trusteeshipConfig:l,urlMiddlePath:n,setIsPc:function(){i.header["La-Client-Type"]="sidebar"},setAtVersion:function(){var e=a(990).dependencies["@ea/at-core"];i.header["LA-Client-Version"]=(e=>/^[0-9]+\.[0-9]+\.[0-9]+$/.test(e)?e:"2.104.8")(e)}}},function(e){e.exports=JSON.parse('{"name":"@approval/mobile","private":true,"description":"Lark Approval (Mobile)","templateInfo":{"typescript":true,"css":"less"},"scripts":{"preinstall":"npx only-allow pnpm","new":"jupiter new","start":"npm run build -- --watch","dev":"npm run build -- --watch","build":"taro build --type tt","build:staging":"cross-env BUILD_ENV=staging BUILD_DEVICE=mobile npm run build","build:staging:maintab":"cross-env BUILD_ENV=staging BUILD_DEVICE=maintab npm run build","build:boe":"cross-env BUILD_ENV=boe BUILD_DEVICE=mobile npm run build","build:boechjiali":"cross-env BUILD_ENV=boechjiali BUILD_DEVICE=mobile npm run build","build:boesasa":"cross-env BUILD_ENV=boesasa BUILD_DEVICE=mobile npm run build","build:boezyj":"cross-env BUILD_ENV=boezyj BUILD_DEVICE=mobile npm run build","build:boewzg":"cross-env BUILD_ENV=boewzg BUILD_DEVICE=mobile npm run build","build:boebolt":"cross-env BUILD_ENV=boebolt BUILD_DEVICE=mobile npm run build","build:boexjj":"cross-env BUILD_ENV=boexjj BUILD_DEVICE=mobile npm run build","build:wangkuan":"cross-env BUILD_ENV=boe_wangkuan BUILD_DEVICE=mobile npm run build","build:boechenfan":"cross-env BUILD_ENV=boechenfan BUILD_DEVICE=mobile npm run build","build:boe:maintab":"cross-env BUILD_ENV=boe BUILD_DEVICE=maintab npm run build","build:pre":"cross-env BUILD_ENV=pre BUILD_DEVICE=mobile npm run build","build:pre_form":"cross-env BUILD_ENV=pre_form BUILD_DEVICE=mobile npm run build","build:pre:maintab":"cross-env BUILD_ENV=pre BUILD_DEVICE=maintab npm run build","build:online":"cross-env BUILD_ENV=online BUILD_DEVICE=mobile npm run build","check:online":"node misclint.build.config.mjs","build:online:maintab":"cross-env BUILD_ENV=online BUILD_DEVICE=maintab npm run build","build:onlinebolt":"cross-env BUILD_ENV=onlinebolt BUILD_DEVICE=mobile npm run build","build:preoversea":"cross-env BUILD_ENV=preoversea BUILD_DEVICE=mobile npm run build","build:preoversea:maintab":"cross-env BUILD_ENV=preoversea BUILD_DEVICE=maintab npm run build","build:oversea":"cross-env BUILD_ENV=oversea BUILD_DEVICE=mobile npm run build","build:oversea:maintab":"cross-env BUILD_ENV=oversea BUILD_DEVICE=maintab npm run build","dev:mock":"cross-env BUILD_ENV=mock BUILD_DEVICE=mobile npm run dev","dev:mockstaging":"cross-env BUILD_ENV=mockstaging BUILD_DEVICE=mobile npm run dev","dev:mockstaging:maintab":"cross-env BUILD_ENV=mockstaging BUILD_DEVICE=maintab npm run dev","dev:mockonline":"cross-env BUILD_ENV=mockonline BUILD_DEVICE=mobile npm run dev","dev:mockonline:maintab":"cross-env BUILD_ENV=mockonline BUILD_DEVICE=maintab npm run dev","dev:mockboe":"cross-env BUILD_ENV=mockboe BUILD_DEVICE=mobile npm run dev","dev:mockboe:maintab":"cross-env BUILD_ENV=mockboe BUILD_DEVICE=maintab npm run dev","dev:staging":"cross-env BUILD_ENV=staging BUILD_DEVICE=mobile npm run dev","dev:staging:maintab":"cross-env BUILD_ENV=staging BUILD_DEVICE=maintab npm run dev","dev:boe":"cross-env BUILD_ENV=boe BUILD_DEVICE=mobile npm run dev","dev:boechjiali":"cross-env BUILD_ENV=boechjiali BUILD_DEVICE=mobile npm run dev","dev:boewzg":"cross-env BUILD_ENV=boewzg BUILD_DEVICE=mobile npm run dev","dev:boebolt":"cross-env BUILD_ENV=boebolt BUILD_DEVICE=mobile npm run dev","dev:boe:maintab":"cross-env BUILD_ENV=boe BUILD_DEVICE=maintab npm run dev","dev:pre":"cross-env BUILD_ENV=pre BUILD_DEVICE=mobile npm run dev","dev:pre:maintab":"cross-env BUILD_ENV=pre BUILD_DEVICE=maintab npm run dev","dev:online":"cross-env BUILD_ENV=online BUILD_DEVICE=mobile npm run dev","dev:online:maintab":"cross-env BUILD_ENV=online BUILD_DEVICE=maintab npm run dev","dev:preoversea":"cross-env BUILD_ENV=preoversea BUILD_DEVICE=mobile npm run dev","dev:preoversea:maintab":"cross-env BUILD_ENV=preoversea BUILD_DEVICE=maintab npm run dev","dev:oversea":"cross-env BUILD_ENV=oversea BUILD_DEVICE=mobile npm run dev","dev:oversea:maintab":"cross-env BUILD_ENV=oversea BUILD_DEVICE=maintab npm run dev","dev:pre_form":"cross-env BUILD_ENV=pre_form BUILD_DEVICE=mobile npm run dev","dev:boezyj":"cross-env BUILD_ENV=boezyj BUILD_DEVICE=mobile npm run dev","dev:boexjj":"cross-env BUILD_ENV=boexjj BUILD_DEVICE=mobile npm run dev","mock-server":"node ./mock-server/nodemon.js","lint":"eslint src --ext ts --ext tsx --quiet","lint:fix":"eslint src --ext ts --ext tsx --fix","syncApi":"at-api -e","postinstall":"pnpm run setup:ac-mp && pnpm run setup:offer && pnpm run setup:ap-ctx && pnpm generate-ud-icon-trim && node patch-packages","generate-ud-icon-trim":"node config/ud-icon-trim/do-trim.js","setup:ac-mp":"ea-ac-mp -b src && node trim-ud-loading-style.js","setup:ap-ctx":"ap-ctx --dest ./src/payment-line --customUdDir src/approval-components/ud","setup:offer":"bdeefe-atsx-minisdk -c ./src","dev:boe_sedationh":"cross-env BUILD_ENV=boe_sedationh BUILD_DEVICE=mobile npm run dev","build:boe_sedationh":"cross-env BUILD_ENV=boe_sedationh BUILD_DEVICE=mobile npm run build","bizpack":"bizpack pack -p \\"$(pwd)/dist\\" -o \\"$(pwd)/dist\\" --packageType \'zip\' sourceMap \'none\'"},"author":"","license":"MIT","dependencies":{"@approval/shared":"workspace:*","@babel/runtime":"^7.7.7","@bdeefe/api-design":"1.2.3","@bdeefe/api-design-loading":"^0.1.0","@bdeefe/api-design-login":"0.0.4","@bdeefe/api-design-request":"0.3.33","@bdeefe/approval-websocket":"^0.3.0","@bdeefe/automation-app":"2.3.1","@bdeefe/automation-i18n":"^0.2.64","@bdeefe/automation-opmonitor":"^0.2.81","@bdeefe/automation-restart-runtime":"^0.2.37","@bdeefe/automation-slardar":"^0.2.73","@bdeefe/automation-tea":"^0.2.68","@bdeefe/automation-tt-native":"^0.2.64","@bdeefe/automation-ui-common":"^0.0.2","@bdeefe/intl":"^2.1.7","@byted/lightcharts":"1.0.6","@byted/taro-lightcharts":"0.6.4","@dp/tea-sdk-common":"^3.0.0","@ea/ac-mp":"2.127.0","@ea/ap-shared":"*","@ea/approval-context":"1.0.94","@ea/at-core":"2.127.1","@ea/at-taro":"2.127.0","@ea/oa-widget-bridge":"1.0.94","@ea/tt-mp-types":"^0.77.0","@slardar/sdk":"3.6.8","@tarojs/components":"3.3.15","@tarojs/plugin-inject":"^0.0.2","@tarojs/react":"3.3.15","@tarojs/runtime":"3.3.15","@tarojs/taro":"3.3.15","@universe-design/miniprogram":"^2.19.0","@universe-design/miniprogram-common":"^2.19.0","@universe-design/miniprogram-taro":"^2.19.0","async-retry":"^1.3.1","async-validator":"4.0.7","awaitqueue":"^2.3.3","bignumber.js":"^9.0.1","classnames":"^2.2.6","compare-versions":"^4.1.1","crypto-es":"^1.2.7","dayjs":"^1.10.7","eventemitter3":"^4.0.7","expr-eval":"^2.0.2","fast-deep-equal":"^3.1.3","js-base64":"^3.7.2","libphonenumber-js":"1.9.51","list-diff2":"^0.1.4","lodash-es":"4.17.21","lodash.isequal":"^4.5.0","mitt":"^3.0.0","mobx":"5","mobx-react":"6","nzh":"^1.0.4","promise-polyfill":"^8.2.0","query-string":"^6.13.8","ramda":"^0.27.1","rc-field-form":"^1.19.0","rc-util":"5.14.0","react":"17.0.1","react-dom":"17.0.1","react-use":"^17.3.2","regenerator-runtime":"^0.13.5","rxjs":"^7.4.0","semver":"^7.3.5","url-parse":"^1.4.7"},"devDependencies":{"@approval/lint":"workspace:*","@babel/core":"^7.8.0","@babel/helper-define-map":"^7.16.0","@babel/preset-env":"^7.9.5","@bdeefe/automation-build-config":"0.2.0-alpha","@bdeefe/automation-cli-api":"0.0.1-alpha.5","@bdeefe/mini-e2e-app":"^1.0.8","@bdeefe/miniprogram-automator":"0.0.7","@bdeefe/tarojs-plugin-platform-lark":"0.0.1-beta.2","@commitlint/cli":"^12.0.1","@commitlint/config-conventional":"^12.0.1","@ea/mp-build":"^1.0.11","@ea/ud-icon-trim-asset":"1.0.6","@larksuitegadget/automator":"^1.0.3","@tarojs/cli":"3.3.14","@tarojs/mini-runner":"3.3.15","@tarojs/plugin-inject":"^1.0.0","@tarojs/plugin-mock":"0.0.7","@tarojs/plugin-platform-alipay":"3.3.15","@tarojs/plugin-platform-jd":"3.3.15","@tarojs/plugin-platform-lark":"1.0.3","@tarojs/plugin-platform-qq":"3.3.15","@tarojs/plugin-platform-swan":"3.3.15","@tarojs/plugin-platform-tt":"3.3.15","@tarojs/plugin-platform-weapp":"3.3.15","@tarojs/webpack-runner":"3.3.15","@types/jest":"^29.2.5","@types/react":"^16.9.0","@types/semver":"^7.3.7","@types/webpack-env":"^1.13.6","adm-zip":"^0.4.16","babel-loader":"^8.2.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-jsx-stylesheet":"^0.6.5","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-runtime":"^6.23.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-taro":"3.3.15","body-parser":"^1.19.0","byted-tma-pack":"^1.8.11","chalk":"^4.1.0","cross-env":"^7.0.2","del":"^5.1.0","dependency-tree":"^7.2.1","eslint":"^8.10.0","express":"^4.17.1","formidable":"^1.2.1","fs-extra":"^9.0.1","git-rev-sync":"^3.0.1","globby":"^11.0.1","gulp":"^4.0.2","gulp-changed":"^4.0.2","husky":"^4.2.5","is-type-of":"^1.2.1","jest":"^25.3.0","jest-spec-reporter":"^1.0.14","jest-standard-reporter":"^2.0.0","json-stable-stringify":"^1.0.1","less":"^3.11.1","miniprogram-simulate":"^1.1.6","misclint":"^0.2.6","mockjs":"^1.0.1-beta3","ncp":"^2.0.0","node-cmd":"^3.0.0","node-fetch":"^2.6.1","nodemon":"^2.0.6","plugin-error":"^1.0.1","read-pkg-up":"4.0.0","safe-stable-stringify":"^1.1.1","superagent":"^6.1.0","through2":"^3.0.1","ts-node":"^8.10.1","typescript":"^3.7.0","webpack":"^4.45.0","webpack-bundle-analyzer":"^4.5.0"},"pnpm":{"packageExtensions":{"@ea/nclc-form":{"dependencies":{"mobx-react-lite":"3.4.0","mobx":"6.6.2"}}},"overrides":{"rxjs":"7.6.0","@universe-design/miniprogram":"2.19.0","@universe-design/miniprogram-taro":"2.19.0","@universe-design/miniprogram-common":"2.19.0","@universe-design/icons-miniprogram":"2.19.0","@nclc/runtime-react":"0.1.250","@nclc/runtime-core":"0.1.250","@nclc/runtime-parser":"0.1.250","@nclc/runtime-patch":"0.1.250","@nclc/runtime-react-renderer":"0.1.250","@nclc/default-context":"0.1.248","@nclc/types":"0.1.248","@kunlun/plugin-logic-system":"0.0.34","sha1":"npm:sha1-browser"}}}')},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a.r(t),t.default={" LeaveGroup":{DurationTitleByHours_plural:"共请假 {{num}} 小时"},1:"N 月份你的审批平均耗时落后同部门 80% 审批人,请关注待改善流程以提高效率",11:"新增关联审批单据范围扩大,支持关联单据搜索功能",111:"审批平均耗时趋势",1111222:"审批平均耗时趋势",12312334:"提交",AM:"上午",ActionSuccessful:"操作成功",AddTask:{AddPostApproverHint:"加签后,当前流程将自动通过,并流转至被加签人",AddReason:"加签理由(选填)",AddReasonNew:"加签理由",AddReasonPlaceholder:"请输入理由",AddingMethod:"加签方式",ApprovalMethod:"审批方式",DetailDesc:"添加审批人:{{involvedUserList}}",DupApproverInCurrentNode:"部分选中的用户已经是该节点的审批人",Fail:"加签失败",NextStep:"下一步",PleasePick:"请选择",PleaseSelect:"请选择",Success:"加签成功"},AddressPicker:{AbortLevel:"暂不选择",ChooseCity:"选择城市",ChooseCountry:"选择国家/地区",ChooseDistrict:"选择区/县",ChooseHistoryList:"历史选择",ChooseProvince:"选择省份/地区",ChooseRegion:"选择地区",ConfirmDeleteHistory:"你确定要删除记录吗?",FailOnQueryStaticFile:"获取行政区划数据失败",HistoryClear:"清空",LevelPlaceholder:"请选择",MainlandTitle:"定位地区",OnlySupportSearchingChina:"当前仅支持搜索中国大陆地区",OnlySupportSearchingChinaPC:"仅支持搜索中国大陆地区",OtherTitle:"国际/港澳台",PleaseSearchOrSelect:"请搜索或选择",TitleOfHistoryList:"历史记录",TitleOfMainlandHotList:"热门城市",TitleOfOtherHotList:"热门国家与地区"},Address_PreLocateFail:"自动定位失败",AdjustRequesterStyle:{ProxyBy:"{{name}} 代提交",SubmittedBy:"{{name}}提交"},AdminDeleted:"已删除该审批",AdminGuide:{Effect:"在线分析,审批提效",Free:"开始配置审批流",GoPC:"可前往电脑端工作台打开审批进入管理后台3 分钟体验创建审批。",Kanban:"提供个人、团队视角的效率看板,帮助企业效率诊断。",MultiDevices:"可以实时在手机、电脑、Pad三端处理审批确保审批时效性。",OneDay:"请假/报销/付款/差旅,企业必备流程快速启用。",OutOfBox:"丰富模板,开箱即用",Quick:"多端同步,随时处理",Title:"一站式、高效率的审批平台"},AdminName:"管理员",AdminPreview_Go_Flow_Chart:"查看流程图",AdminPreview_Imitating:"正在模拟发起人:{{name}}",AdminPreview_More_Questions:"还有相关疑问?可前往帮助中心",Admin_ModifyNotice:"部分审批单暂不支持修改,详见文档",Admin_ModifyOnce:"员工可申请修改已通过的审批,用于销假等场景(仅可修改一次,配置前已通过的审批不可修改)",AfterSigning:"后加签",AgreeWhenRepeated:"之前已通过该审批,无需重复审批",Agreed:"已通过",Apaascorehr_AlreadyHavePhoneNumber:"该手机号码已被{{status}}员工使用,请检查",Apaascorehr_AlreadyKnown:"知道了",Apaascorehr_AppInactive:"此审批暂不可用,请联系管理员处理",Apaascorehr_Disabled:"此审批暂不可用,请联系管理员处理",Apaascorehr_EffectDateNotEarlierThanToday:"生效日期不能早于今天",Apaascorehr_EmployeeNoNeedToReapply:"该申请人已提交离职申请,无需再提交",Apaascorehr_EmployeeStatusNotAllowResignation:"该申请人为待离职或已离职,无需申请离职",Apaascorehr_FailToFetchInfoContent:"获取信息失败,请点击按钮重新加载",Apaascorehr_FailToFetchInfoTitle:"获取信息失败,请稍后重试",Apaascorehr_InvalidPhoneNumber:"手机号码格式有误",Apaascorehr_NoFormItemValue:"无",Apaascorehr_NoItem:"无{{title}}",Apaascorehr_OffboardingDateNotEarlierThanOnboardingDate:"离职日期不能早于入职日期",Apaascorehr_PleaseChooseApplicant:"请选择实际申请人",Apaascorehr_RegularateDateNotEarlierThanOnboardingDate:"转正日期不能早于入职日期",Apaascorehr_Reload:"重新加载",Apaascorehr_UnexpectedAdjustedManager:"上级不能为申请人本人及其下级",Apaascorehr_UserConversionApplyed:"该申请人不在试用期内,无需申请转正",Apaascorehr_UserConversionApplying:"该申请人已提交转正申请,无需再提交",Apaascorehr_UserNotFound:"该用户不存在,请检查",Apaascorehr_VerifyNetworkError:"系统错误,请稍后重试",Api:{TaskNotPending:"审批状态发生变化,请重进审批单操作",networkErrorPleaseResubmit:"网络异常,请重新提交 "},AppName:"审批",AppNameInFeishu:"飞书审批",AppShare:{Fail:"分享失败",Success:"分享成功",Title:"{{subject}},点击开启你的高效之旅。"},Approval:{Ceo:"CEO 的审批",CeoDone:"CEO 的已办",CeoTodo:"CEO 的待办",CopyMe:"抄送我的",Done:"已办",Mine:"我的审批",MyDone:"我的已办",MySubmitted:"我发起的",MyTodo:"我的待办",Shared:"来自会话",Ta:"Ta 的审批",TaDone:"Ta 的已办",TaTodo:"Ta 的待办",Todo:"待办",ViewMore:"查看更多"},ApprovalDesc:"{{userName}}发起的“{{defName}}”",ApprovalEfficiency:{AfterRate:"已落后部门 {{rate}}% 审批人",AgencyLink:"《公司审批者执行要求》制度入口",AgencyRate:"代批率",AgencyRateDecreaseAlert:"{{time}}内,{{title}}已减少,请提醒团队审批人如非必要,请自行完成审批",AgencyRateIncreaseAlert:"{{time}}内,{{title}}已增加,请提醒团队审批人如非必要,请自行完成审批",AgencyRateStableAlert:"{{time}}内,{{title}}保持稳定,请提醒团队审批人如非必要,请自行完成审批",AgencyRateText:"代批率",AgencySteady:"{{time}},代批率整体稳定,请继续保持,本人处理单据不代批。",AheadGroup:"领先部门 {{rate}} 审批人",AllAverageTime:"整体平均耗时",ApprovalPerson:"审批人",ApprovalTimeCost:"审批耗时",AverageTime:"审批平均耗时",AverageTimeLabel:"团队下每个审批人完成一个任务的平均耗时。请在保证审批质量的前提下,及时审批",AverageTimeText:"平均耗时",BehindGroup:"落后部门 {{rate}} 审批人",Center:"效率诊断",Checked:"已审批单量",CheckedDone:"已审批完成的审批单数量。",Click:"点击",CompareDataLabel:"涨幅与上周期对比,并显示在{{group}}各下级团队中的排名",CompareDataLabelV2:"涨幅与上周期对比,并显示在{{group}}各下级团队中的排名。",DateRange:"日期范围",Diagnosis:{AgencyRate:"代批率最大 ({{value}}%),共 {{number}} 人有代批行为",AverageTime:"审批效率相比上周期明显变差",AverageTimeRank:"审批效率相对较差",Bad:"待提升",BadAverageTimeRank:"审批效率持续较差",BadRank:"平均耗时在{{leader}}各下级团队中排名 {{rank}}/{{total}}",BadTip:"以下问题可以重点关注",CompareBad:"落后于公司均值 ({{teamAverage}} 小时 vs. {{average}} 小时)",CompareEqual:"平均耗时与公司均值相等 ({{average}} 小时)",CompareGood:"优于公司均值 ({{teamAverage}} 小时 vs. {{average}} 小时)",Good:"优秀",GoodRank:"平均耗时在{{leader}}各下级团队中排名 {{rank}}/{{total}}",GoodTip:"精益求精,还有以下问题可以提升",NotBad:"良好",NotBadTip:"再接再厉,还有以下问题可以提升",ProblemTip:"建议关注以下事项",SecondRate:"秒批率最大 ({{value}}%),共 {{number}} 人有秒批行为"},DirectSubordinate:"直属下级",DirectSubordinateEfficiency:"直属下级效率",DirectSubordinateOverview:"直属下级审批时效",Efficiency:"效率诊断",FirstInfo:"周期内完成所有审批任务的平均耗时。请在保证审批质量的前提下,及时审批。原则上应在 48 小时内处理完成。同时要避免“秒批”如处理OA支出这类复杂审批时单据浏览时长小于5秒等不审慎行为",GoodEfficiency:"效率高的任务",GroupAverage:"部门平均数据",GroupAverageValue:"下级团队均值:{{value}}h",GroupEfficiency:"团队效率",GroupGuideContent:"可查看我的团队审批效率、与其他团队对比情况,及效率较差的审批人",GroupGuideTitle:"新增团队效率诊断",GroupKeep:"{{time}}{{type}}已减少,但与团队均值仍有差距,请继续努力。",GroupName:"{{user}}的团队",GroupNotice:"{{time}}{{type}}已增加,且与团队均值存在差距,请注意效率。",GroupOverview:"团队效率总览",GroupRank:"团队排名",GroupSteady:"{{time}}{{type}}整体稳定,但仍与部门均值有差距,请继续努力。",GroupTrendAnalysis:"团队趋势分析",Guide:",查看审批效率",GuideContent:"可查看我的审批效率,以及在部门内排名情况。",GuideTitle:"新增效率诊断",Here:"效率诊断",HigherThanGroup:"多于部门 {{rate}} 审批人",HisSubGroup:"Ta的下级团队",HisSubStaff:"Ta的直属下级",Hour:"小时",Indicators:"数据指标说明",Keep:"{{time}}{{type}}已减少,请继续保持。",LastMonth:"上个月",LastMonthText:"上个月",List:"单",LowerThanGroup:"少于部门 {{rate}} 审批人",MyAverage:"我的平均数据",MyEfficiency:"我的效率",MySubGroup:"我的下级团队",MySubStaff:"我的直属下级",NearlyWeeksText:"近{{count}}周",NeedOptimize:"待优化的任务",NoApproval:"近14天内你还未做审批。",NoBarData:"暂无数据",NoGroupData:"暂无数据",NoPersonalData:"暂无数据",Nodata:"所选时间范围内暂无审批数据",Notice:"{{time}}{{type}}已增加,请注意效率",Oncall:"如有问题,点击联系客服",OnlyOwnerData:"本周期内只有你处理过审批,无团队数据",OvertimeRate:"超 48 小时审批率",OvertimeText:"超时审批率",PC_Efficency_label:"该功能尚未在PC端启用","PC_Efficency_label-1":"请使用{{BRAND_DISPLAY_NAME}}移动端扫码查看",Person:"人员诊断",PersonOverview:"个人效率总览",PersonaAverageValue:"直属下级均值:{{value}}h",Personal:"个人效率",PersonalOverview:"个人总览",Process:"流程诊断",ProxyApproval:"代批率",ProxyApprovalLabel:"由他人代理完成的OA审批任务数量在OA总审批任务数量的占比。公司要求审批人本人处理单据不代批特殊情况需授权他人代为处理时也要谨慎选择具备同等判断能力的代理人授权人与代理人均负有直接责任",SecondApproval:"秒批率",SecondApprovalLabel:"OA四大的任务中5秒内完成审批的占比请要求团队成员在处理复杂审批时避免秒批行为",SecondInfo:"审批耗时超过24小时的任务数量/总审批任务数量,为提高审批效率,该指标越小越好。",SecondRate:"秒批率",SecondRateDecreaseAlert:"{{time}}内,{{title}}已减少,请提醒团队审批人谨慎审批,避免秒批等不审慎行为",SecondRateIncreaseAlert:"{{time}}内,{{title}}已增加,请提醒团队审批人谨慎审批,避免秒批等不审慎行为",SecondRateStableAlert:"{{time}}内,{{title}}保持稳定,请提醒团队审批人谨慎审批,避免秒批等不审慎行为",Steady:"{{time}}{{type}}整体稳定,请继续保持。",SubGroupEfficient:"下级团队效率",SubordinateTeam:"下级团队",SubordinateTeamOverview:"下级团队审批时效",TabCreate:"发起申请",TabEff:"效率诊断",TabList:"审批中心",TeamOvertimeRate:"超 48 小时审批率",TeamOvertimeRateLabel:"团队成员完成的所有任务中,超出 48 小时才处理的占比。公司要求原则上应在保证质量的前提下于 48 小时内处理完成",TeamOverviewDataTip:"数据涨幅均与上周期对比",TeamOverviewDataTipV2:"数据涨幅均与上周期对比。",TeamTrendDecreaseAlert:"{{time}}内,{{type}}已减少,请提醒团队审批人继续保持",TeamTrendIncreaseAlert:"{{time}}内,{{type}}已增加,请提醒团队审批人注意效率",TeamTrendStableAlert:"{{time}}内,{{type}}保持稳定,请提醒团队审批人继续保持",TeamTrendText:"{{time}}内,团队的{{type}}已{{trend}},请提醒团队审批人注意效率。",ThirdInfo:"由他人代理完成的OA审批任务数量在OA总审批任务数量的占比。公司要求审批人本人处理单据不代批特殊情况需授权他人代为处理时也要谨慎选择具备同等判断能力的代理人授权人与代理人均负有直接责任",ThirtyDays:"近 30 天",ThirtyDaysText:"近30天内",TimeFormat:"YYYY 年 M 月",TimeFormatText:"YYYY年M月",TimeRange:"所选时间范围内暂无审批数据",TimeSelected:"日期范围:",To:"至",TrendAnalysis:"趋势分析",TrendInfo:"趋势分析",TrendInfoText:"为提高数据可读性趋势分析图表中的所有值均为累计7日均值。如3月10日的数据为“3月4日至3月10日内的累计均值”。",TwoWeeks:"近 14 天",TwoWeeksText:"近14天内",ViewAllTrend:"查看整体趋势分析",ViewMoreData:"查看更多数据",Wait:"新功能逐步开放中,敬请期待",getDetailData:"获取明细数据",lowVersion:"因{{BRAND_DISPLAY_NAME}}客户端版本过低,无法查看此页面,请先升级",oneWeek:"近 7 天",updateFeishu:"前往升级{{BRAND_DISPLAY_NAME}}",viewConfirm:"我知道了",viewDetail:"正在生成明细,完成后你会收到审批机器人的通知"},ApprovalForm:{AttachmentDelete:"删除",AttachmentNeedUpload:"请升级客户端至最新版本",AttachmentPreview:"预览",AttachmentUndownloadable:"下载失败",AttachmentUnpreviewable:"该类型文件暂不支持预览,请前往桌面端下载",DateIntervalIncomplete:"请同时填写{{startName}}和{{endName}}",ModifyErrorText:"字符数量超出限制",ModifyErrorTosat:"修改原因字符数量超出限制",NoAvailableOptions:"无可用选项",UnableToFill:"提交页面发生变化,请重新输入",UploadAttachment:"附件",UploadImage:"图片",Uploading:"上传中"},ApprovalForm_InvalidDefId:"链接配置有误,请联系管理员",ApprovalForm_SystemErrorHint:"系统异常,请关闭页面重试",ApprovalForm_UniqueIdConflict:"提交成功,可在“已发起”列表中查看此审批详情",ApprovalGroups_All:"全部",ApprovalLIst:{CC:"抄送"},ApprovalList:{Delegation:"代办",DelegationSubmit:"完成",DelegationTitle:"“文案弃用”"},ApprovalList_CanceledPrefix:"{{name}}(撤销)",ApprovalList_DelayHint:"{{bizName}}暂不支持审批后实时更新待办数量可以30S后尝试刷新",ApprovalList_From:"来自{{bizName}}",ApprovalList_ModifiedPrefix:"{{name}}(修改)",ApprovalList_NewApprovalRefresh:"有新审批,请刷新查看",ApprovalList_PendingListCleared:"已完成全部待办",ApprovalList_PendingListClearedNew:"All to-dos have been completed.",ApprovalList_PeopleEllipsis_plural:"{{prefix}}等{{count}}人",ApprovalList_Requester:"申请人",ApprovalList_Shortcut_Confirm_to:"确认{{actionName}}",ApprovalList_Shortcut_Failed:"提交失败,请重试",ApprovalList_Shortcut_Involved_Funding:"涉及资金",ApprovalList_Shortcut_Involved_Important_Info:"涉及重要信息",ApprovalList_Shortcut_Involved_Sensitive_Info:"涉及敏感信息",ApprovalList_Shortcut_Involving_Funding:"涉及资金",ApprovalList_Shortcut_Involving_Important_Info:"涉及重要信息",ApprovalList_Shortcut_Involving_Sensitive_Info:"涉及敏感信息",ApprovalList_Shortcut_Modal_Title:"确认{{actionName}}“{{approvalName}}”吗?",ApprovalList_Shortcut_Modal_Title_Short:"确认{{actionName}}该审批吗?",ApprovalList_Shortcut_Need_Filling:"需填写审批信息",ApprovalList_Shortcut_Submittig:"提交中",ApprovalList_Shortcut_Success:"提交成功",ApprovalList_Shortcut_To_Be_Filled:"需填写信息",ApprovalList_Shortcut_Unavailable_Hint:"{{reasonType}},请到详情页处理",ApprovalList_Shortcut_Unavailable_Hint_Long:"{{reasonType}},请到详情页处理",ApprovalList_Time_Filter_Custom:"至",ApprovalList_ViewTypeCanceled:"普通列表展示",ApprovalList_ViewTypeChanged:"按类型分组展示",ApprovalList_WaitDays:"已等待 {{count}} 天",ApprovalList_WaitDays_plural:"已等待 {{count}} 天",ApprovalOperation:{Guide:"同意/拒绝后2分钟内支持撤销",Know:"知道了",Remind:"当前审批人已完成审批,审批操作生效中,请稍候片刻",Revoke:"撤销审批",RevokeCountdown:"2min内可撤销审批",RevokeDoubleCheck:"是否确认撤销审批操作?撤销后,任务会回到待办状态",RevokeTips:"已超过撤销有效期",Toast:"01:20后审批生效",Toast1:"撤销成功",Toast2:"撤销失败,请稍后再试"},ApprovalSearch:{All:"全部审批",CeoInputPlaceholder:"搜索 CEO 的审批",CeoTitle:"CEO 的审批",ConfirmFilter:"完成筛选",EmptyHintTip:"请输入关键字搜索",EnableFilterHint:"查看范围已筛选为「全部{{scope}}」",EnableFilterHintV2:"已筛选“{{mainContent}}”",EnableFilterHintV2_:"已筛选:{{mainContent}}",FilterGuideHint:"相关推荐:{{count}} 条{{scope}}的审批",FilterGuideHintV2:"你的{{scope}}存在 {{num}} 条符合条件的审批",FilterModal:{Btns:{Confirm:"确定",Reset:"恢复默认"},FilterSubordinates:{Label:"筛选{{scope}}",OperateBtn:"添加"},Title:"查看范围"},FilterSearch:"筛选:",FilteredToastMainContent:"{{userName}}等共{{num}}人",InputPlaceholder:"申请名称、发起人、编号、内容",ListCountChanged:"单据数量已发生变化,可 {{actionBtn}} 查看最新数据",ListItem:{SourceTip:"来自 {{userName}} 的 {{approvalType}}"},NoDateTip:"暂无搜索结果",NotSupportSubordinateModal:{Content:"该系统暂不支持上级查看下级的审批单,你可能无权限查看此单据,可联系发起人抄送给你"},OtherDefTypesLabel:"其他",Refresh:"刷新",Staff:"员工",Subordinate:"下级",TaInputPlaceholder:"搜索 Ta 的审批",TaTitle:"Ta 的审批",Title:"搜索",empty:"没有找到相关结果"},ApprovalTitle:"{{name}}的{{approvalName}}",Approval_AppDesc:"简单、高效、开放的审批工具",Approval_AppName:"审批",Approval_ExpandSidebar_GotoApproval:"在审批应用中打开",Approval_effect:"审批将于1分钟20秒后生效",Approval_tips:"当前任务已被别人处理,正在生效中,请在 2 分钟后查看最新状态",ApproverAgreed:"同意了申请",ApproverRangeSelect_Clear:"清空",ApproverRangeSelect_Contact_Admin:"联系管理员:",ApproverRangeSelect_DesignatedUser:"指定成员",ApproverRangeSelect_DesignatedUser_Multi:"只能在下方指定成员中选择",ApproverRangeSelect_DesignatedUser_Single:"只能在下方指定成员中选择 1 人",ApproverRangeSelect_Empty:"暂无可选的审批人",ApproverRangeSelect_NoResult:"无相关结果,请输入准确的姓名重新搜索",ApproverRangeSelect_Picker_Title:"选择审批人",ApproverRangeSelect_Placeholder:"搜索",ApproverRangeSelect_Role_Empty:"管理员设置了可选范围为角色“{{roles}}”,但是该角色下没有可管理发起人的成员",ApproverRangeSelect_Role_List:"角色列表",ApproverRangeSelect_Role_Multi:"只能在下方角色成员中最多选择 25 人",ApproverRangeSelect_Role_Single:"只能在下方角色成员中选择 1 人",ApproverRangeSelect_SearchEmpty:"无相关结果,请输入准确的姓名重新搜索",ApproverRangeSelect_SelectAll:"全选",ApproverRangeSelect_Selected_Count:"已选:{{count}}/25 人",ApproverRangeSelect_Selected_Count_PC:"已选:{{count}} 人",ApproverRangeSelect_UnknownRole:"未知角色",ApproverRangeSelect_User_Empty:"管理员设置了可选范围为指定成员,但是指定的成员异常",ApproverRedirected:"转交给了",ApproverRejected:"拒绝了申请",ApproverTypeList_DepartmentManagerBottomUp_1:"直接部门负责人",ApproverTypeList_DepartmentManagerBottomUp_10:"第十级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_11:"第十一级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_12:"第十二级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_13:"第十三级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_14:"第十四级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_15:"第十五级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_16:"第十六级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_17:"第十七级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_18:"第十八级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_19:"第十九级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_2:"第二级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_20:"第二十级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_3:"第三级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_4:"第四级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_5:"第五级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_6:"第六级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_7:"第七级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_8:"第八级部门负责人",ApproverTypeList_DepartmentManagerBottomUp_9:"第九级部门负责人",ApproverTypeList_DepartmentManagerTopDown_1:"最高部门负责人",ApproverTypeList_DepartmentManagerTopDown_10:"第十级部门负责人",ApproverTypeList_DepartmentManagerTopDown_11:"第十一级部门负责人",ApproverTypeList_DepartmentManagerTopDown_12:"第十二级部门负责人",ApproverTypeList_DepartmentManagerTopDown_13:"第十三级部门负责人",ApproverTypeList_DepartmentManagerTopDown_14:"第十四级部门负责人",ApproverTypeList_DepartmentManagerTopDown_15:"第十五级部门负责人",ApproverTypeList_DepartmentManagerTopDown_16:"第十六级部门负责人",ApproverTypeList_DepartmentManagerTopDown_17:"第十七级部门负责人",ApproverTypeList_DepartmentManagerTopDown_18:"第十八级部门负责人",ApproverTypeList_DepartmentManagerTopDown_19:"第十九级部门负责人",ApproverTypeList_DepartmentManagerTopDown_2:"第二级部门负责人",ApproverTypeList_DepartmentManagerTopDown_20:"第二十级部门负责人",ApproverTypeList_DepartmentManagerTopDown_3:"第三级部门负责人",ApproverTypeList_DepartmentManagerTopDown_4:"第四级部门负责人",ApproverTypeList_DepartmentManagerTopDown_5:"第五级部门负责人",ApproverTypeList_DepartmentManagerTopDown_6:"第六级部门负责人",ApproverTypeList_DepartmentManagerTopDown_7:"第七级部门负责人",ApproverTypeList_DepartmentManagerTopDown_8:"第八级部门负责人",ApproverTypeList_DepartmentManagerTopDown_9:"第九级部门负责人",ApproverTypeList_SupervisorBottomUp_1:"直接上级",ApproverTypeList_SupervisorBottomUp_10:"第十级上级",ApproverTypeList_SupervisorBottomUp_11:"第十一级上级",ApproverTypeList_SupervisorBottomUp_12:"第十二级上级",ApproverTypeList_SupervisorBottomUp_13:"第十三级上级",ApproverTypeList_SupervisorBottomUp_14:"第十四级上级",ApproverTypeList_SupervisorBottomUp_15:"第十五级上级",ApproverTypeList_SupervisorBottomUp_16:"第十六级上级",ApproverTypeList_SupervisorBottomUp_17:"第十七级上级",ApproverTypeList_SupervisorBottomUp_18:"第十八级上级",ApproverTypeList_SupervisorBottomUp_19:"第十九级上级",ApproverTypeList_SupervisorBottomUp_2:"第二级上级",ApproverTypeList_SupervisorBottomUp_20:"第二十级上级",ApproverTypeList_SupervisorBottomUp_3:"第三级上级",ApproverTypeList_SupervisorBottomUp_4:"第四级上级",ApproverTypeList_SupervisorBottomUp_5:"第五级上级",ApproverTypeList_SupervisorBottomUp_6:"第六级上级",ApproverTypeList_SupervisorBottomUp_7:"第七级上级",ApproverTypeList_SupervisorBottomUp_8:"第八级上级",ApproverTypeList_SupervisorBottomUp_9:"第九级上级",ApproverTypeList_SupervisorTopDown_1:"最高上级",ApproverTypeList_SupervisorTopDown_10:"第十级上级",ApproverTypeList_SupervisorTopDown_11:"第十一级上级",ApproverTypeList_SupervisorTopDown_12:"第十二级上级",ApproverTypeList_SupervisorTopDown_13:"第十三级上级",ApproverTypeList_SupervisorTopDown_14:"第十四级上级",ApproverTypeList_SupervisorTopDown_15:"第十五级上级",ApproverTypeList_SupervisorTopDown_16:"第十六级上级",ApproverTypeList_SupervisorTopDown_17:"第十七级上级",ApproverTypeList_SupervisorTopDown_18:"第十八级上级",ApproverTypeList_SupervisorTopDown_19:"第十九级上级",ApproverTypeList_SupervisorTopDown_2:"第二级上级",ApproverTypeList_SupervisorTopDown_20:"第二十级上级",ApproverTypeList_SupervisorTopDown_3:"第三级上级",ApproverTypeList_SupervisorTopDown_4:"第四级上级",ApproverTypeList_SupervisorTopDown_5:"第五级上级",ApproverTypeList_SupervisorTopDown_6:"第六级上级",ApproverTypeList_SupervisorTopDown_7:"第七级上级",ApproverTypeList_SupervisorTopDown_8:"第八级上级",ApproverTypeList_SupervisorTopDown_9:"第九级上级",ApproverType_ApproveRule:"审批规则",ApproverType_ContinuousSupervisor:"连续多级主管审批",ApproverType_FormContact:"表单内联系人",ApproverType_FormDepart:"表单内部门",ApproverType_InitiatorSelect:"发起人自选",ApproverType_InitiatorSelf:"发起人本人",ApproverType_IsvInitiatorSelect:"发起人自选/{{name}}应用指定",ApproverType_NodeApprover:"节点审批人",ApproverUnit_Assign_Approver:"指定成员",ApproverUnit_Department_Bottom_Top:"部门负责人(自下而上)",ApproverUnit_Department_Top_Bottom:"部门负责人(自上而下)",ApproverUnit_Direct_Department:"直接部门负责人",ApproverUnit_Direct_Leader:"直接上级",ApproverUnit_Free_Pick:"发起人自选",ApproverUnit_Highest_Department:"最高部门负责人",ApproverUnit_Highest_Leader:"最高上级",ApproverUnit_Highest_Leader_Sequential:"到最高上级为止",ApproverUnit_Originator:"发起人本人",ApproverUnit_Role:"角色",ApproverUnit_Sequential_Manager:"连续多级上级",ApproverUnit_Supervisor_Bottom_Top:"上级(自下而上)",ApproverUnit_Supervisor_Top_Bottom:"上级(自上而下)",ApproverUnit_Till_Nth_Leader:"到第{{n}}级上级为止",ApproverUnit_To_Nth_Department:"第{{n}}级部门负责人",ApproverUnit_To_Nth_Leader:"第{{n}}级上级",AsOfNow:"截止",At_drawer_notSaveTip:"修改的内容未被系统保存,确定要离开?",AttachmentUploadFailedHint:"部分附件上传失败,请重试",BackToIndexButton:"前往首页",BatchOperate:{Agree:"批量同意",AgreeAll:"全部同意",AgreeAllWithCount:"全部同意前{{count}}条",AgreeModalTitle:"确定要批量同意所选的 {{count}} 条审批吗?",AllFail:"全部批量审批失败",AllFailContentSingle:"批量审批的 {{totalCount}} 单“{{name}}”因{{reason}}导致全部审批失败,请前往待办处理",BatchDialogSureTitle:"确认要批量同意 {{count}} 条审批吗?",BatchDialogSureTitlePlural:"确认要批量同意 {{count}} 条审批吗?",BatchNotOpen:"未开通批量审批,可联系管理员",BatchNotOpen_1:"开通快捷审批后才可进行批量,可联系管理员开通",BatchNotOpen_2:"未开通批量处理",BatchOpened:"管理员已配置「{{name}}」支持批量处理",BatchOperate:"批量审批",BatchProcess:"批量处理",CanNotRepeat:"正在批量审批中,不可重复审批",CancelBatchOperate:"取消批量",ChatNow:"立即联系",DealLater:"稍后再看",DealNow:"前往处理",DefaultAdminName:"管理员",DoNotRepeat:"正在批量审批中,请勿重复审批",DoNotRepeatOperate:"批量审批中,查看单据时请勿重复操作",Done:"批量审批完成",EditableFailed:"批量操作失败,“{{name}}”因审批时需填写相关内容,暂不支持批量",Empty:"暂无可批量处理的单据",Error:"批量审批失败",Fail:"批量处理失败",FailContentMultiDetail:"有 {{failCount}} 单因「{{reason}}」失败;",FailContentMultiStart:"批量审批的 {{totalCount}} 单“{{name}}”中:",FailInfo:"由于网络原因,批量处理的{{totalCount}}个审批单中,存在{{failCount}}单操作失败,请重新处理",FailReasonRequireInput:"需编辑表单字段值失败",FailReasonThirdError:"三方接口报错",FailReasonTimeout:"网络超时",FirstCount:"前 {{count}}",HandlerFailInfo:"办理人节点暂不支持批量审批",Loading:"处理中 请稍候",NotAllowed:"未开通批量审批,可联系{{name}}开通",NotSupportBatch:"文档内容审批不支持批量处理",OperateFailedTitle:"操作失败",PageTitle:"批量同意 {{count}} 条",PartFail:"部分批量审批失败",PartFailContentSingle:"批量审批的 {{totalCount}} 单“{{name}}”中,有 {{failCount}} 单因{{reason}}失败,请前往待办处理",PleaseBeCareful:"为确保审批质量,请谨慎使用批量处理",PleaseGoToTodo:"请前往待办处理",Processing:"处理中",Progress:"批量审批中",Retry:"再次提交",ServerBusyFailed:"批量操作失败,服务器正忙,请稍后再试",SignatureFailInfo:"批量操作失败,{{name}}因审批时需手写签名,暂不支持批量审批",SomeFailed:"部分审批操作失败,请再次提交",StillView:"继续打开",Success:"批量处理成功",SupportPart:"部分流程支持批量审批",Unsupported:"暂不支持批量",UnsupportedApproveAction:"未开通快捷审批,不支持批量处理",UnsupportedHandling:"办理类审批不支持批量处理",UnsupportedRequireInput:"需填写表单内容的审批不支持批量处理",UnsupportedStartUser:"被退回的审批不支持批量处理",UnsupportedV2:"开通快捷审批后才可进行批量,可联系{{name}}开通",ViewDetail:"查看单据详情",WaitingCurrentBatchTask:"请等待当前批量任务结束后再试"},BeforeSigning:"前加签",BoltModal_CandidateSelector_SubmitText:"确定",BoltModal_ShareToRelated_DescArea:"管理员设置了仅可转发给此审批相关的人员,以避免产生信息安全风险",BoltModal_ShareToRelated_ExtraArea_InputPlaceholder:"留言",BoltModal_ShareToRelated_SubmitLoadingText:"分享中",BoltModal_ShareToRelated_SubmitText:"确定",BoltModal_ShareToRelated_Success:"分享成功",BoltModal_ShareToRelated_Title:"分享",Brackets:"{{innerText}}",Brackets_Padding_Space:"{{innerText}}",Brackets_Semi:"({{innerText}})",Cancel_AlreadyAgreed:"该撤销审批已经通过",Cancel_Expired:"只允许撤销{{day}}天内通过的审批",Cancel_isCanceling:"该审批已在撤销流程中",Card_DayAgo:"{{day}} 天前到达",Card_DaysAgo:"{{day}} 天前到达",Card_HourAgo:"{{hour}} 小时前到达",Card_HoursAgo:"{{hour}} 小时前到达",Card_MinuteAgo:"{{minute}} 分钟前到达",Card_MinutesAgo:"{{minute}} 分钟前到达",Card_Sponsor:"发起",Card_Sponsor_Have:"共 {{count}} 人",Card_Tip_Agent:"代他人审批",Card_Tip_Browser:"仅支持浏览器显示",Card_Tip_PreApprove:"预审批",Card_Tip_Rollback:"退回至发起人",Card_Tip_Sidebar:"仅支持侧边栏显示",Card_Tip_SuccessPreApprove:"已完成预批",CcFreeSelect_LimitTip:"最多可选择{{count}}人",Cclist:{HasUnsupportBatchMark:"有 {{count}} 条审批需手动查看",HasUnsupportBatchMark_plural:"有 {{count}} 条审批需手动查看",MarkAllRead:"全标已读",MarkSucceeded:"标记成功",ShowUnread:"仅看未读"},Cclist_All:"全部",Cclist_MarkAllReadByType:"标为已读",Cclist_Mark_All_2nd_Confirm:"确定将全部未读抄送标记为已读吗?",Cclist_Mark_Current_2nd_Confirm:"确定将当前列表下的未读抄送标记为已读吗?",Cclist_Read:"已读",Cclist_Unread:"未读",CellSelectSearch_NoOptions:"无可选项",CellSelectSearch_NoResult:"无结果",CellSelectSearch_Placeholder:"请搜索",ChineseComma:"、",ChooseExternalContactDeniedHint:"{{staff_names}} 为本公司及关联公司外人员,无法添加",ClickToCopy:"点击可复制",ClientName:"客户端",CollaborationTenant:"关联组织",Colon:"",Comma:"",Comment:{CancelPlaceholder:"请填写撤销原因",NotifyAt:"通知被@的人",NotifyOwner:"通知发起人",Submiting:"正在提交",TextPlaceholder:"请输入评论",TextPlaceholderWithAt:"输入评论内容,可 @ 相关人员",delete:{content:"删除评论并不会通知相关人员,但被@的人仍有权限浏览该审批。",tip:"已于 {{time}} 删除评论",title:"是否确定删除评论?"}},CommentEmpty:"请输入评论内容",Comment_Content_Empty:"评论内容不能为空",Comment_DataError:"数据出错,请点击重试",Comment_Forwarded_Go_Next:"转交成功,将自动跳转至下一条",Comment_Operated_Go_Next:"审批成功,将自动跳转至下一条",Comment_OverCount:"单个审批最多添加500条评论",Comment_success:"评论成功",Common_AutoCalculate:"自动计算",Contact:"联系人",CreateApproval_ApprovalEditorAutoAgree:"自动通过",CreateApproval_ApprovalEditorAutoReject:"自动拒绝",CreateApproval_Conditional_And:"且",CreateApproval_Conditional_CompareIs:"为",CreateApproval_Conditional_Initiator:"发起人",CreateApproval_Conditional_InitiatorAsCondition_InitiatorIs:"是",CreateApproval_Conditional_InvalidOption:"无效选项",CreateApproval_Conditional_Or:"或",CreateApproval_Conditional_When:"当 {{condition}}",CreateApproval_Conditional_XXSummary:"明细 . {{name}}汇总",CreateApproval_Conditional_matchType_anyone:"其中一个值符合",CreateApproval_Conditional_matchType_summary:"汇总",CreateApproval_DisplayCondition_All:"完全匹配",CreateApproval_DisplayCondition_Day:"天",CreateApproval_DisplayCondition_EqualTo:"等于",CreateApproval_DisplayCondition_GreaterThan:"大于",CreateApproval_DisplayCondition_GreaterThanOrEqualTo:"大于等于",CreateApproval_DisplayCondition_Hour:"小时",CreateApproval_DisplayCondition_LessThan:"小于",CreateApproval_DisplayCondition_LessThanOrEqualTo:"小于等于",CreateApproval_DisplayCondition_One:"包含以下任意",CreateApproval_DisplayCondition_OutGroupDay:"天",CreateApproval_DisplayCondition_OutGroupHour:"小时",CreateApproval_Flow_ConditionDefaultPlaceholder:"其他情况",CreateApproval_FormGroup_LeaveGroupType:"假期类型",CreateApproval_FormGroup_OutGroupDuration:"外出时长",CreateApproval_FormGroup_OutGroupType:"外出类型",CreateApproval_FormGroup_SignGroupPreview:"预览模板",CreateApproval_FormGroup_TripGroupAirplane:"飞机",CreateApproval_FormGroup_TripGroupBus:"汽车",CreateApproval_FormGroup_TripGroupDay:"天",CreateApproval_FormGroup_TripGroupDeparture:"出发地",CreateApproval_FormGroup_TripGroupDestination:"目的地",CreateApproval_FormGroup_TripGroupDuration:"出差总时长(天)",CreateApproval_FormGroup_TripGroupOther:"其他",CreateApproval_FormGroup_TripGroupTrain:"火车",CreateApproval_FormGroup_TripGroupTransportation:"交通工具",CreateApproval_FormGroup_WorkGroupHour:"小时",CreateApproval_FormGroup_WorkGroupInterval:"加班时长(小时)",CreateApproval_FormGroup_WorkGroupType:"加班类型",CreateApproval_InvalidQRCode:"二维码无效,请扫描审批预览的二维码",CreateApproval_QRCode_Scan_Failure:"扫描二维码失败,请重试",CreateApproval_RedirectTo_Failure:"页面跳转失败,请重试",CreateApproval_SystemAutoAgree:"系统自动通过",CreateList:{AllDefinition:"全部申请",ApprovalCategory:"申请分类",CustomCreate:{Content:"想要自定义审批?",Content_V2:"创建更多流程 ",Create:"创建自定义审批",CustomApprovalProcess:"自定义审批流程",GoTo:"前往",IfCreated:"已创建审批可前往",IfNotSuitable:"以上审批不适用?",Introduce1:"管理员通过后即可上线,帮助你和你的团队提高工作效率",Introduce2:"可自行搭建表单及设计审批流程",Introduce3:"从模板创建或自主创建审批,帮助你和团队提升效率 ",Link:"点这里",Popover:{Content:"丰富控件支持各类流程场景,更有专业流程顾问手把手教你搭建流程。",ContentV2:"审批支持员工自主创建流程、设计表单、配置审批节点。丰富的模板库能帮助你快速配置审批流程",OkText:"我知道了",Title:"流程支持自助创建啦!",TitleV2:"审批支持自定义创建"},Process:"自定义审批流程",View:"查看",ViewCreated:"查看已创建的审批"},CustomCreateModal:{Cancel:"取消",Content:"为提升公司内审批的规范性,在飞书审批系统中新建审批时,需要经过直属上级与内控团队审核,审核通过后审批才可以启用。详情可查看",ContentLink:"「飞书审批创建申请」",Create:"前往创建",Title:"自定义审批创建说明"},DefinitionSearch:"输入关键词搜索对应申请",DefinitionSearching:"搜索中",DisplayAllDefinition:"已展示全部申请",GoBack:"返回",LaunchFailed:"加载失败,请尝试刷新",NoMatchedData:"没有找到符合条件的内容,请重新输入",NoSearchResult:"没有找到搜索结果",PaymentContent:"“{{approvalName}}”使用了标准版功能,你不是标准版用户,请联系管理员{{adminName}}开通",PaymentContentToAdmin:"“{{approvalName}}”使用了标准版功能,你不是标准版用户,请前往审批管理后台开通",PaymentTitle:"账号开通",RecommendedUse:"推荐使用",Refresh:"刷新",SearchPlaceholder:"请输入申请名称"},CreateTabText:"发起申请",CreatorRecalled:"撤销了申请",Currency_AED:"阿联酋迪拉姆",Currency_AFN:"阿富汗尼",Currency_ARS:"阿根廷比索",Currency_AUD:"澳大利亚元",Currency_CAD:"加拿大元",Currency_CHF:"瑞士法郎",Currency_CNY:"人民币元",Currency_COP:"哥伦比亚比索",Currency_CZK:"捷克克朗",Currency_DKK:"丹麦克朗",Currency_EGP:"埃及磅",Currency_EUR:"欧元",Currency_GBP:"英镑",Currency_HKD:"港元",Currency_IDR:"印尼盾",Currency_ILS:"以色列新谢克尔",Currency_INR:"印度卢比",Currency_JPY:"日元",Currency_KRW:"韩元",Currency_MAD:"摩洛哥迪拉姆",Currency_MOP:"澳门币",Currency_MXN:"墨西哥比索",Currency_MYR:"马来西亚令吉",Currency_NOK:"挪威克朗",Currency_NZD:"新西兰元",Currency_PHP:"菲律宾比索",Currency_PKR:"巴基斯坦卢比",Currency_PLN:"波兰兹罗提",Currency_RUB:"俄罗斯卢布",Currency_SAR:"沙特里亚尔",Currency_SEK:"瑞典克朗",Currency_SF:"瑞士法郎",Currency_SGD:"新加坡元",Currency_THB:"泰铢",Currency_TRY:"土耳其里拉",Currency_TWD:"新台币",Currency_USD:"美元",Currency_VND:"越南盾",Currency_ZAR:"南非兰特",CurrentSigning:"并加签",DateIntervalUnit_Day:"天",DateIntervalUnit_Hour:"小时",Dayton:"、",DefaultModalConfirm:"确认",DefaultModalTitle:"提示",DefinitionSearch:{InputPlaceholder:"请输入审批名称"},Delegation:{AgentAvatarTag:"代",AgentRecord:"代理记录",AgentXXXForApproval:"代理 {{delegate}} 审批",Delegation:"委托授权",DelegationRecord:"委托记录",InEffectTips:"{{validCount}} 条生效中",InitiateDelegation:"发起委托",InitiateDelegationTips:"请尽量本人处理审批任务,如确因请假等特殊情况再交由他人代为处理",InitiateDelegationTips2:"请尽量本人处理审批任务,如确因请假等特殊情况再交由他人代为处理,办理人节点不支持委托",NoAgentsTips:"暂无代理记录",NoDelegationsTips:"暂无委托记录",NormalDelegationTimeTips:"在此期间内,代理人可帮助你处理选定流程的所有任务,时间到期或手动取消后,系统将收回代理人的权限",RelationTips:{AmongPrefix:"其中",ForSomeone:"代理 {{delegate}} 审批",OneByOne:"{{agent}} 代理 {{delegate}} 审批"},ToBeEffectTips:"{{toValidCount}} 条待生效"},Deleted:"已删除",DeletedApproval:{ImageTitle:"该单据已删除,无法查看"},Department_Clear:"清空",Department_Empty:"暂无可见部门",Department_NoResult:"无相关结果,请输入准确的部门名称重新搜索",Department_Organization:"组织架构",Department_Selected:"已选:",Department_Selected_Count:"已选:{{count}} 项",Department_Selected_Count_plural:"已选:{{count}} 项",Department_Selector_title:"选择部门",Department_Subordinate:"下级",Department_new_placeholder:"搜索部门名称",Department_placeholder:"准确输入部门名称,查找不可见部门",Detail:{AddApprover:"加签",AddCcPerson:"添加抄送人",AddCommentButton:"添加评论",AddCommentButtonInShort:"评论",AddReasonCannotEmpty:"加签理由不能为空,请输入",AddTaskButton:"加签",AgreeButton:"同意",Agreed:"通过",AndSign:"会签",AndSignHint:"需所有审批人同意",AndSubmitHint:"需所有办理人提交",ApplicantQuitCCAdmin:"{{approverName}}已离职,抄送给审批管理员跟进",ApplicantQuitCCLeader:"{{approverName}}已离职,抄送给直属上级跟进",Application:"申请详情",ApprovalCommentsCannotEmpty:"审批意见不能为空,请输入",ApprovalConfirmOpinionPlaceholder:"请填写审批意见(选填)",ApprovalConfirmOpinionPlaceholderNew:"请填写审批意见",ApprovalDetail:"审批详情",ApprovalEventsTitle:"审批进程",ApprovalTitle:"详情",ApproveSuccessWithNextOne:"跳转到下一项审批",ApproverQuitRedirect:"{{approverName}}已离职",CCToNPeople:"抄送{{count}}人",CCToNPeopleAlready:"已抄送{{count}}人",CCToNPeople_plural:"抄送{{count}}人",CannotWithdrawAfterPassingFirstApprovalNode:"此申请一经审批,不可撤销",CannotWithdrawOrOverdue:"此申请不可撤销/已过可撤销期限",ChooseRedirectTarget:"选择转交对象",Comment:"评论",CommentInputPlaceholder:"添加评论",CommentSubmitting:"请稍候",ContentOfRecallConfirm:"确定撤销申请吗?",Deleted:"删除",EditButton:"同意",ExpandButtonText:"查看全部",FailToPrint:"打印出错了,请重试或联系管理员帮助解决",FailedWhenRecall:"撤销失败",FailedWhenSubmitComment:"评论失败",FieldListGroupTitle:"明细 {{number}}",FieldList_All:"查看全部 {{len}} 行",FieldList_All_Text:"全文",FieldList_Item_All:"共{{count}}个",FieldList_ViewMore:"更多内容",FreeCCButton:"抄送",FromApproval:"来自飞书审批",FromApprovalNo:"来自飞书审批 | 编号:{{serialID}}",FromApprovalTooltip:"来自飞书审批系统",FromLarkApproval:"来自Lark审批",FromLarkApprovalNo:"来自飞书审批 | 编号:{{serialID}}",FromLarkApprovalTooltip:"来自飞书审批系统",HandlerConfirmOpinionPlaceholderNew:"请填写办理意见",HintWhenCommentWithoutContent:"请输入内容",HistoryLink:"编辑记录",InTurnSignHint:"依次审批",InTurnSubmitHint:"依次办理",LabelOfRedirectPeople:"转交给",LongReqHint:"请稍候",MinusApprover:"减签",MoreMenuButton:"更多",NoPermission:"暂无权限查看此页面",NodeNoApprovers:"审批人为空,自动通过",Notify:"抄送",OrSign:"或签",OrSignHint:"1 人通过即可",OrSubmitHint:"1 人提交即可",PreviewFileFailed:"附件预览失败,请重试",Process:"审批进程",ReSubmit:"再次提交",RecallButton:"撤销",Recalled:"撤销",RedirectButton:"转交",RedirectToSomeone:"转交给{{name}}",Redirected:"转交",RejectButton:"拒绝",Rejected:"拒绝",RemindButton:"催办",RemoveTaskButton:"减签",Repeated:"自动通过",Rollback:"回退",RollbackButton:"回退",RollbackReasonCannotEmpty:"退回理由不能为空,请输入",RollbackTitle:"选择需要重新审批的审批人",SaveFail:"保存失败",SaveModify:"保存编辑",SaveSuccess:"已保存",SerialID:"编号:{{serialID}}",SerialNumber:"申请编号",Submit:"提交",SubmitCheckTitle:"确定提交“{{type}}”申请吗?",Submitted:"发起",SubmittedTheApproval:"发起了申请",SuccessWhenRecall:"撤销成功",System:"系统",TheCountOfAndApprovers:"会签{{count}}人",TheCountOfAndApprovers_plural:"会签{{count}}人",TheCountOfOrApprovers:"或签{{count}}人",TheCountOfOrApprovers_plural:"或签{{count}}人",TitleOfApprovalConfirm:"审批意见",TitleOfApprovalConfirmNew:"审批意见(选填)",TitleOfHandlerConfirm:"办理意见",TitleOfHandlerConfirmNew:"办理意见(选填)",TitleOfRedirectConfirm:"转交审批",TransferButton:"转办",UnderHandler:"办理中",UnderReview:"审批中",UnexpanButtonText:"收起"},DetailTable:{AdminPreviewTip:"移动端明细统一按纵向填写",CopyBtnTip:"复制本行",Empty:"未填写",IntroTitle:"说明",Mobile:"移动端",NoContent:"无内容",NoFile:"无附件",NoImage:"无图片",NoRelativeApproval:"无关联审批",OperationColumnTitle:"操作",PC:"PC端",RemoveBtnTip:"删除本行",RemoveRowConfirm:"确定删除第 {{index}} 行吗"},DetailWidget:{DeleteConfirm:"确定删除{{groupName}}吗?"},Detail_AgreeButton_New:"确认同意",Detail_AllowToModifyOnce:"审批单只允许修改一次",Detail_ApplicantIsStarterAutoAgree:"审批人与发起人为同一人,自动跳过",Detail_ApplicantIsStarterRedirectedAdmin:"审批人与发起人为同一人,转交给部门负责人审批",Detail_ApplicantIsStarterRedirectedAdminDismiss:"审批人与发起人为同一人,转交给部门负责人审批,但部门负责人为空,将自动跳过",Detail_ApplicantIsStarterRedirectedLeader:"审批人与发起人为同一人,转交给直接上级审批",Detail_ApplicantIsStarterRedirectedLeaderDismiss:"审批人与发起人为同一人,转交给直接上级审批,但直接上级为空,将自动跳过",Detail_CanceledInstance:"撤销流程",Detail_CommentButton:"评论",Detail_Comment_Hint_Content:"评论支持上传图片/附件了,点击试试",Detail_Comment_Hint_Title:"评论更新",Detail_Comment_fold:"收起",Detail_Comment_unfold:"展开",Detail_ForbiddenModify:"此申请不允许修改",Detail_HistoryAndModifyLink:"编辑/修改记录",Detail_InTurnSignHint:"依次审批",Detail_ModifyButton:"修改",Detail_ModifyLink:"修改记录",Detail_ModifyOverdue:"此申请已过可修改期限",Detail_ModifyedInstance:"修改流程",Detail_OriginInstance:"原有流程",Detail_RejectButton_New:"确认拒绝",Detail_SignGroupNameKey:"电子牵合同模板名称",Detail_SubmittedCanceling:"发起撤销",Detail_SubmittedModifying:"发起修改",Detail_TransmitButton:"转发到聊天",Detail_isModifying:"已发起修改申请,申请审批中",Detail_modifyReason:"修改原因",Detail_modifyRejected:"已发起修改申请,申请被拒绝",Detail_modifyRejected_submitter:"已发起修改申请,被拒绝",Detail_modifyWithdrawed:"已发起修改申请,申请被撤销",Detail_modifyWithdrawed_submitter:"已发起修改申请,被撤销",Detail_modifyed:"已发起修改申请,申请已通过",DiscussionGroup:{Create:"创建审批讨论群",CreateFailed:"建群失败,请重试",CreateGroup:"建群",EnterGroup:"进群",GroupMember:"群成员",GroupMemberHint:"将为你创建审批讨论群,该审批的发起人、当前审批人和已完成的审批人将自动进入群聊",GroupMemberHintNew:"将为你创建审批讨论群,该审批的提交人、当前审批人和已完成的审批人将自动进入群聊",Hint:"审批有疑问?立刻讨论",Join:"进入",JoinFailed:"进群失败,请重试",NewCreateGroup:"发起群聊",NewEnterGroup:"加入群聊",TabText:"讨论",Title:"审批讨论群"},Doc_List_UntitledSheet:"未命名表格",DoubleQuotes:"“{{innerText}}”",Draft_LastEdited:"上次编辑:",Edit:"编辑",EditHistory:{Deleted:"删除了原有内容",Title:"编辑记录"},EndNode_Title:"结束",Error:{ApprovalNoPermission:"无操作权限",ApprovalNotActive:"审批定义已停用",ApprovalNotExist:"审批定义不存在",CannotModifyTaskGenByAddApprover:"暂不支持被加签人修改流程",Decode:"外部数据源解密失败",GetLarkDepartmentInfoByIds:"获取部门信息失败",GetLarkUserByIds:"获取用户信息失败",GetLarkUserByIdsNotExist:"用户不存在",InvalidUrl:"填写的URL无效请校验",InvalidUrlOrToken:"外部数据源URL或Token不能为空",InvalidWidgetType:"控件类型不支持外部数据",OuterDataIllegalForm:"请校验外部数据源的数据格式",OuterDataResponse:"请校验外部数据源的数据格式",OuterDataSourceTimeOut:"外部数据源获取失败,请重试",ResponseFormat:"请校验外部数据源的数据格式",SearchUserNotExist:"搜索的用户不存在",TransferDocument:"文档所有权转移失败",UserRpc:"用户数据获取失败",WidgetEmptyValue:"控件值为空",WidgetNotFount:"找不到控件信息,请核对"},ExperienceNow:"知道了",External:"外部",External_Tag:"外部",FilterSubordinatesPage:{Cancel:"取消",Confirm:"确定({{count}})",FilterAll:{Tag:"全部{{scope}}"},SearchInputPlaceholder:"可搜索所有{{scope}}",SelectedTitle:"已选",Title:"筛选{{scope}}"},FormConnect:{AddInstance:"添加审批",Count:"已选{{count}}个审批",Count_plural:"已选{{count}}个审批",DefinitionSearchPlaceholder:"搜索任务主题、申请人、编号、内容",Reminder:"关联申请单不能为空",SelectConnectApprovals:"请选择关联审批单",SelectorTitle:"选择关联申请单",Title:"添加关联申请单",TransferredToDone:"{{ApprovalName}}已转移到已办",submitted:"提交的"},FormWidgetViewer_WorkGroup_Duration2:"加班时长",Form_DetailTitle:"申请详情",Form_UserDepartment_Name:"提交人所属部门",Form_UserDepartment_Tip:"提交人存在于多个部门下,需选择具体部门",FreeCC:{LabelOfContact:"选择抄送人",LabelOfReason:"抄送原因(选填)",PlaceholderOfReason:"请输入抄送原因",Success:"抄送成功"},Free_SelectPerson:"请选择抄送人",FreedomProcessCCer_Tip:"审批结束后将会同步给抄送人",FullStop:"。",GetOptionsFail:"未能获取到数据,请联系审批管理员",GoAuthSetting:"去设置",GoDetailPage:"详情",GoForm:"去填写",Goto_miniapp:"查看单据详情",Guide_IntegrationModalContent:"将公司内分散于 OA、Kani、People 等系统的新增审批进行汇总,实现一站式查看和处理",Guide_IntegrationModalHint:"People 数据已部分接入,持续对接中",Guide_IntegrationModalTitle:"字节内审批信息整合",Guide_SortContent:"可以根据自己的习惯,调整排序为最久等待优先或最新到达优先",Guide_SortTitle:"按到达时间排序",Guide_ViewTypeContent:"点击这里,可以将相同类型的审批单聚合展示,提高浏览和处理效率",Guide_ViewTypeTitle:"按照类型分组展示",HasBeenProcessedHint:"该申请已被其他审批人处理",HostingActions_CreateChat_ConfirmLoadingText:"发起群聊中",HostingActions_CreateChat_DescArea:"讨论群的所有成员均可访问单据详情,请谨慎添加新成员以确保信息安全。",HostingActions_CreateChat_ModalTitle:"邀请成员",HostingActions_CreateChat_Success:"已发起群聊",HostingActions_JoinChat_ConfirmLoadingText:"加入群聊中",HostingActions_JoinChat_CreatedHint:"已存在群聊, 直接进入",HostingActions_ShareDocument_ConfirmDesc:"分享后对方即可查看单据详情,为避免产生信息风险,请谨慎选择接受者",HostingActions_ShareDocument_ConfirmLoadingText:"分享中",HostingActions_ShareDocument_ConfirmTitle:"分享",HostingActions_ShareDocument_Success:"分享成功",HourAgo:"{{hour}}小时前",HoursAgo:"{{hour}} 小时前",IMDefinition_CreateAndShareConfirm:"此审批将分享到当前会话,并保存至审批列表中。",IMDefinition_CreateButton:"新建审批",IMDefinition_CreatedByMe:"我创建的审批",IMDefinition_DefAttachments:"附件",IMDefinition_DefName:"审批名称",IMDefinition_DefNamePlaceholder:"请填写审批名称",IMDefinition_DefReasons:"审批事由",IMDefinition_DefReasonsPlaceholder:"请简要描述发起审批的事由,如下:\\n事由1\\n事由2",IMDefinition_DeleteConfirm:"你确定要删除该审批吗?",IMDefinition_DeleteFailed:"删除失败",IMDefinition_OnlyCreatorCanEdit:"仅创建人可编辑",IMDefinition_RecentlyUsed:"最近使用",IMDefinition_RecordsButton:"记录",IMDefinition_Save:"保存",IMDefinition_SaveSucceeded:"保存成功",IMDefinition_Share:"分享",IMDefinition_ShareAfterSave:"保存并分享",IMDefinition_ShareApproval:"分享审批",IMDefinition_ShareFailed:"分享失败",IMDefinition_ShareSucceeded:"分享成功",IMDefinition_ThirdpartyShareConfirm:"你确定将此审批分享到当前聊天?",InstanceAgreed:"已通过",InstanceAllStatus:"全部状态",InstanceCancelCanceled:"撤销已取消",InstanceCancelFailed:"撤销失败",InstanceCompleted:"已结束",InstanceDeleted:"已删除",InstanceDeletedHint:"审批已删除",InstanceNonStatus:"无状态",InstancePending:"审批中",InstanceRecalled:"已撤回",InstanceRejected:"已拒绝",InstanceUnuse:"全部",Internal_BackToList:"返回审批列表",Internal_InstallVpn:"未安装 VPN点击这里下载",Internal_LinkVpnBtnText:"连接 VPN",Internal_LinkVpnTip:"请连接 VPN 或公司 Wi-Fi",Internal_RefreshNetwork:"刷新",Internal_UnconnectInternal:"似乎未连接内部网络",JustNow:"刚刚",Latest:"最新",LeaveGroup:{BackToModify:"返回修改",BalanceUnitDay:"天",BalanceUnitHour:"小时",ConfirmSubmit:"确认提交",ConflictStartEnd:"{{timeRange}} 已请假,继续请假会导致重复扣除假期额度,建议返回修改",ConflictStartEndInstead:"继续请假会导致重复扣除假期额度,建议返回修改",ConflictTimeRange:"{{timeRange}} 已请假,继续请假会导致重复扣除假期额度,确定提交吗",ConflictTimeRangeInstead:"继续请假会导致重复扣除假期额度,确定提交吗",CurrentHasLeave:"当前时间段已存在请假记录",CurrentNoWork:"当前无班次,不需要请假",DailyBreaksMethod:"每日休息方式",DateRangeInvalid:"{{endTime}} 不能早于 {{startTime}}",DurationConflictContent:"你在{{timelist}}已有请假记录,请调整时间",DurationConflictContent_plural:"你在{{timelist}}已有{{count}}请假记录,请调整时间",DurationConflictTitle:"请假时间冲突",DurationDesc:"将出现在考勤记录中,不足 0.5 {{unit}}按 0.5 {{unit}}计算",DurationSubTitleByDays:"请假 {{count}} 天",DurationSubTitleByDays_plural:"请假 {{count}} 天",DurationSubTitleByHours:"请假 {{count}} 小时",DurationSubTitleByHours_plural:"请假 {{count}} 小时",DurationTime:"时长",DurationTitleByDays:"共请假 {{count}} 天",DurationTitleByDays_plural:"共请假 {{count}} 天",DurationTitleByHours:"共请假 {{count}} 小时",DurationTitleByHours_plural:"共请假 {{num}} 小时",EmptyLeaveList:"无可用假期",EndTime:"结束时间",FailedWhenGetUserLeaveBalanceList:"获取假期列表失败",Friday:"星期五",GoConflictDetails:"查看详情",HolidayPeriod:"假期周期",LeaveDetail:"查看明细",LeaveDetail_Text:"根据排班时间自动计算时长",LeaveDuration:"请假时长",Monday:"星期一",NextDay:"次日",NoBalanceDefinition:"{{typeName}}已删除,请选择其他假期类型",NoBalanceQuota:"{{name}}没有余额",NoBalanceQuotaInDuration:"假期余额不足 {{count}} 小时,请重新选择",NoBalanceQuotaInDuration_plural:"假期余额不足 {{count}} 小时,请重新选择",NoBalanceQuotaInRange:"申请休假期间的可用假期余额不足",NoDayBalanceQuotaInDuration:"假期余额不足 {{count}} 天,请重新选择",NoDayBalanceQuotaInDurationDefault:"假期余额不足,请重新选择",NoDayBalanceQuotaInDuration_plural:"假期余额不足 {{count}} 天,请重新选择",NoZeroLeaveDuration:"请假时长应大于 0",PageTitle:"时长明细",PleaseUploadCertificate:"请上传请假证明",Remind_Day:"(剩余{{count}}天)",Remind_Day_plural:"(剩余{{count}}天)",Remind_Hour:"(剩余{{count}}小时)",Remind_Hour_plural:"(剩余{{count}}小时)",RestDay:"该段时间为休息休假日(如未排班的休息日、法定节假日等),将不计入请假时长",Saturday:"星期六",StartTime:"开始时间",Sunday:"星期日",Thursday:"星期四",Tuesday:"星期二",TypeLabel:"请假类型",ViewLeaveDetails:"查看请假记录",Wednesday:"星期三",fetchTimeZoneError:"获取时区失败"},LeaveGroup_DayBalanceQuota:"(剩 {{count}} 天)",LeaveGroup_Exclude_Hint:"如遇周末或法定节假日,请假时长会自动去除",LeaveGroup_Exclude_Hint_Holiday:"如遇法定节假日,请假时长会自动去除",LeaveGroup_Exclude_Hint_Weekend:"如遇周末,请假时长会自动去除",LeftParen:"(",ListApproved:"已审批",ListCC:"抄送我",ListCreated:"已发起",ListDone:"已办",ListPending:"待审批",ListTabText:"审批",ListUpcoming:"待办",Loading:"加载中",Maintab_CurrentApprovalProcessed:"该审批已被处理",Maintab_NewApprovals:"有新审批",Maintab_NewApprovalsProcessed:"新审批已被处理",Menu:{Other:"其他"},MinuteAgo:"{{minute}} 分钟前",MinutesAgo:"{{minute}} 分钟前",ModalCancelText:"取消",ModalConfirmText:"确定",Modal_Button_Text:"关闭",Modify:"修改",ModifyApproval:"修改审批",ModifyNotice:"修改需经审批人同意,仅可修改一次",ModifyProcess:"修改流程",ModifyProcessIndex:"修改审批进程{{index}}",ModifyReasonInput:"请输入修改原因",ModifyReject:"已发起修改申请,新申请被拒绝。原有申请依然生效",ModifyTag:"修改",ModifyWithDraw:"已发起修改申请,新申请被撤销。原有申请依然生效",NewVersionComing:"新版本进行了一些重要优化,请重启应用以升级,",NewVersionComingBtn:"点击重启 ",NoAuthConfirm:"知道了",NoAuthHint:"你没有权限再次发起该审批",NoContent:"无内容",NoExternalChat:"无法转发给外部联系人",NoExternalStaff:"不能选择外部人员",NoMoreDatas:"没有更多数据了",NoPermissionTip:"暂无访问权限",NoSysAuthHint:"请开启{{name}}权限",Now:"现在",NowNotSupportModify:"此申请暂不支持修改",Old_SuiteApproval_Approver:"审批人",Old_SuiteApproval_Cc:"抄送人",Old_SuiteApproval_LeaveGroupDur:"请假时长",Old_SuiteApproval_Unit:"单位",OnBoard:{BannerDesc:"查看详情",BannerTitle:"如何创建更多审批",ModalBtn:"我知道了",ModalDesc:"告别繁琐的线下审批方式,轻松在线完成出差、报销、采购等各类审批流程。提高审批工作效率,实现企业高效管理,快去试试吧!",ModalTitle:"欢迎使用审批"},OnBoarding:{Button:{CollapseSidebar:"收起导航",ExpandSidebar:"展开导航",GotIt:"知道了"},OpenWindowTips:"点击可以独立窗口打开飞书审批",ToggleSidebarTips:"点击这里可以展开导航栏,查看待办、已办、抄送我、已发起的内容"},Operate_ForwardSuccess:"转交成功",Operate_HintOfCancelConfirm:"审批已通过,撤销需再次审批",Operate_PlaceholderOfCancelConfirm:"撤销原因(选填)",Operate_PlaceholderOfForwardConfirm:"转交原因(选填)",Operate_PlaceholderOfForwardConfirmnew:"转交原因",Operate_TitleOfCancelConfirm:"撤销审批",Operate_TitleOfForwardConfirm:"审批转交",Operation:{AgreeSuccess:"操作成功",RejectBackToList:"操作成功,即将返回列表",RejectNextDetail:"操作成功,即将进入下一条单据",RejectSuccess:"操作成功",SuccessBackToList:"操作成功,即将返回列表",SuccessNextDetail:"操作成功,即将进入下一条单据"},Optional:"选填",OutGroup_NoZeroDuratioin:"外出时长应该大于 0",PC:{AddApproverTitle:"加签",AddBtn:"添加",AddressRecommends:"推荐",AddressSelect:"选择{{level}}",AdminNoApproval:"暂无可发起的审批项目,请登录管理后台创建审批",AgreeCheckTitle:"确定同意“{{type}}”申请吗?",ApprovalAdmin:"审批管理后台",ApprovalTitle:"{{people}}的{{name}}审批",BarBrowser:"使用浏览器打开",BarComment:"评论",BarCommentGuide:"评论内容可在该入口中查看",BarFullwindow:"放大查看",BarFullwindowQuit:"缩小查看",BarHelpdesk:"联系客服",BarLinkCopy:"复制链接",BarPrint:"打印",BarRefresh:"刷新详情",BarShare:"分享",BarTitle:"来自{{Source}}",CcPerson:"抄送人",Cclist_ShowAll:"查看全部",CopyBtn:"复制",DateTo:"至",DelApproverCheckTitle:"减签",DeleteBtn:"删除",DetailBrowserHint:"此单据需通过浏览器打开",DetailDrawerHint:"此单据需通过侧边栏展示",Detail_EllMore:"{{count}}人",Error_AttachmentNotSupport:"该类型文件暂不支持预览,请下载后查看",Error_EmptyFile:"不能上传空文件",Error_GetDetail:"获取审批详情失败",Error_IntervalEmptyEnd:"需先填写{{endTime}}",Error_IntervalEmptyStart:"需先填写{{startTime}}",Error_IntervalEmptyStartAndEnd:"需先填写{{startTime}}和{{endTime}}",Error_LeaveNoBalance:"{{typeName}}假期余额不足",Error_NoZero:"请假时长应该大于 0",Error_Redirect:"无法转交给已经在审批流程中的用户,请选择其他用户",Flow_Submit:"发起",GoMobile:"暂不支持桌面端,请前往移动端查看",ListShowUnread:"共 {{count}} 条结果",ListSubmit:"发起申请",LocaltionTabArea:"区/县",LocaltionTabCity:"城市",LocaltionTabCountry:"国家",LocaltionTabProvince:"省份 / 地区",LowVersionTip:"因飞书客户端版本过低无法打开单据详情,点击去",More:"更多",NavigationBar:{ApprovalAdmin:"审批管理后台",Refresh:"刷新",Setting:"设置"},NewApprovalAdmin:"管理后台",NextAgreed:"已同意",NextRejected:"已拒绝",NextWithdrawn:"已撤销",No:"否",NoApprovalGuideButton:"进入管理后台",NoApprove:"没有审批单",NoSelected:"未选择任何审批",OpenBrower:"浏览器打开",OpenDetail:"点击查看详情",OpenDetailBrowser:"打开浏览器进行查看",OpenDetailDrawer:"打开侧边栏",Payer_CommonModalContent:"“{{approvalName}}”使用了标准版功能,你不是标准版用户,请联系管理员{{userName}}开通",Payer_CommonModalContent_self:"{{approvalName}} 审批使用了标准版本的功能,你不是标准版本用户,请前往审批管理后台开通",Payer_GoPurchase:"去开通",Payer_IKnow:"我知道了",PickPersonHint:"请选择人员",PickTransfereeHint:"请选择转交人",PleaseFilledFirst:'请先填写"{{name}}",再进行选择',RedirectCheckTitle:"转交给:",RedirectReason:"转交理由",RejectCheckTitle:"确定拒绝“{{type}}”申请吗?",RelativeApproverDesc:"{{title}}审批 {{time}}创建",RelativeApproverTitle:"关联审批",ReminderTitle:"选择审批催办人",Rollback_All:"全部回退",SearchPlaceHolder:"搜索",SelectAll:"全选",SelectUpdated:"数据有更新",SelectedPeopleNumber:"已选:{{number}} 人",Selected_Number_people:"已选:{{number}} 人",ToastCopyFail:"链接复制失败",ToastCopySuccess:"链接复制成功",UpgradeBtn:"升级飞书客户端",ValidateCountryAndProvinceNoEmpty:"请填写国家 / 省份",ValidateLeaveConflict:"已请假,请重新选择请假时间",ValidateLocationDetailNoEmpty:"请填写详细地理位置",ValidateNoEmpty:"不能为空",WithdrawCheckTitle:"确定撤销申请吗?",Yes:"是"},PCListTabApproved:"我审批的",PCListTabCc:"抄送我的",PCListTabSubmit:"发起申请",PCListTabSubmitted:"我发起的",PM:"下午",PatchNeedComment:"因部分单据需填写审批意见,无法批量通过。你可填写审批意见并再次提交。",Pending:"审批中",PicUploadFailedHint:"部分图片上传失败,请重试",PictureCount:"{{count}} 张图片",PictureCount_plural:"{{count}} 张图片",Popup:{Cancel:"取消",Confirm:"确定",DuplicatedApproverHint:"该用户已是审批人",DuplicatedHandlerHint:"该用户已是办理人",FailedHint:"审批失败",PickAccepterHint:"请选择转交人",SuccessHint:"审批成功",ToSelfHint:"请勿转交给自己"},PreviewNodes:{ClearContextDescription:"选择当前人员为审批人时,请确认已添加必要的前序审批人,如业务线负责人、项目负责人等,并保证审批信息的上下文完整清晰。",ConfirmClearContext:"请确认审批人合理及信息上下文清晰",End:"结束",Failed:"审批流程预览失败,请退出页面后重试",FollowUpProcess:"后续流程",InvalidMessage:"请填写流程中{{nodeName}}节点的审批人",NotEnd:"待审批人补充信息后,显示完整流程",Refresh:"刷新",Start:"发起",Title:"审批流程",ValidateIntegrity:"必填信息填写完整后,将显示审批流程"},Preview_PageTitle:"流程预览",Print:{ApprovalContent:"审批内容",ApprovalOperator:"操作人",ApprovalRecord:"操作记录",AttachCount:"附件:{{count}} 个",AttachmentCount:"{{count}} 个",CountAs:" (按小时计算为{{workType}})",ImageCount:"图片:{{count}} 张",PictureCount:"{{count}} 张",SerialNumber:"申请编号",TripDuration:" (总时长 {{interval}})",TripReason:"事由",TripSummary:"出差汇总",approvalTime:"申请时间",brackets:"「{{name}}」",modifyReasonContent:"原因说明",nodeName:"节点名称",print_time:"打印时间",print_user:"打印人员",qrCodeTips1:"使用手机{{APP_DISPLAY_NAME}}",qrCodeTips2:"扫码查看审批详情",qrCodeTips3:"{{APP_DISPLAY_NAME}}扫码查看"},Print_Instance_No_Permission:"没有单据权限",Quotes:"{{innerText}}",Recalled:"已撤销",Redirected:"已转交",Regulation:{policy:"相关制度",viewPolicy:"查看该流程的相关制度",viewPolicy_mobile:"查看相关制度"},RejectWillRecover:"拒绝后,原审批单依然有效",Rejected:"已拒绝",RemindCardPreview_BotTitle:"{{user}}提交的“{{approval}}”待你审批",RemindCardPreview_ButtonCancel:"取消",RemindCardPreview_ButtonSubmit:"发送提醒",RemindCardPreview_LabelContent:"审批事由",RemindCardPreview_LabelUser:"申请人",RemindCardPreview_MainTip:"将以上提醒发送给审批人并跳转至与Ta的会话",RemindCardPreview_SendTo:"发送至",Reminder:{Accepter:"接收人",AlreadyApproved:"你选择的审批人已完成审批",CantDoReminder:"24 小时内仅可催办 1 次",ConfirmButton:"确定",DefaultMessage:"请尽快审批我的{{name}}",Fail:"催办失败",GetApproversFailed:"获取可催办人列表失败",MaxCount:"一次催办最多选 16 人",NoReminder:"无可催办人员",ReminderHint:"将以聊天消息的形式发送给审批人",Success:"催办成功",Title:"选择审批催办人",submit:"发送催办消息"},RemoveTask:{DetailDesc:"移除审批人:{{involvedUserList}}",Fail:"减签失败",RemoveReason:"减签理由",RemoveSignHint:"只能移除当前节点加签的人员",ResetButton:"重置",Success:"减签成功"},Repeated:"自动通过",Required:"必填",RestartModalText:"审批需要更新,请点击更新重启",RestrictChat:"管理员限制了私聊,不能发起催办",Resubmit:{DefinitionDeleted:"无法再次提交,该审批已删除",DefinitionDisabled:"无法再次提交,该审批已停用",DefinitionInvisible:"你暂无权限发起此审批,请联系管理员",SubmitInAttendance:"请前往打卡小程序再次发起该审批"},Resubmit_SubmitInISV:"请前往{{name}}应用中再次发起该审批",Retry:"重试",ReviewedList_SortType_Asc:"最早处理优先",ReviewedList_SortType_Desc:"最新处理优先",RightParen:")",Role_Approver:"审批人",Role_Approver_DONE:"已审批",Role_Approver_PREVIEW_TODO:"待审批",Role_Approver_TODO:"审批中",Role_CC:"抄送人",Role_Requester:"申请人",Role_SubmitterDelgate:"代提人",Rollback:{CheckboxMore:"展开 {{num}} 个审批人",Fail:"回退失败",GetNodeHistoryFail:"获取历史节点失败",NoAvailableNodes:"无可回退节点",PageTitle:"选择回退节点",PickPersonHint:"请选择人员",PleaseChooseANode:"请选择审批节点",Reason:"回退理由",Rollback:"退回",RollbackAllHint:"是否从回退节点起全部重新审批:",RollbackAlready:"已退回",RollbackButton:"退回",RollbackEditing:"修改中",RollbackFail:"退回失败",RollbackListMsg:"退回审批,请到详情操作",RollbackNoAvailableNodes:"无可退回节点",RollbackPageTitle:"选择退回节点",RollbackReason:"退回理由",RollbackSubmit:"提交",RollbackSubmitAgain:"提交",RollbackSuccess:"退回成功",RollbackTo:"退回至",RollbackWillContinueWithYou:"被勾选人处理后,将会提交给你继续审批",SubmitCheckTitle:"确定重新提交{{type}}申请吗?",Success:"回退成功"},RollbackEvent:"回退的节点已审批成功",SMB:{Form:{Scope:{Account:{Input:{Between:"请输入 {{minValue}} 至 {{maxValue}} 的金额",Less:"请输入不小于 {{minValue}} 的金额",More:"请输入不大于 {{maxValue}} 的金额"}},AllInput:{Between:"须介于 {{minValue}} 至 {{maxValue}} 之间",Less:"不可小于 {{minValue}}",More:"不可大于 {{maxValue}}"},Number:{Input:{Between:"请输入 {{minValue}} 至 {{maxValue}} 的数值",Less:"请输入不小于 {{minValue}} 的数值",More:"请输入不大于 {{maxValue}} 的数值"}},Toast:{Between:"{{name}} 需在 {{minValue}} 至 {{maxValue}}",Less:"{{name}} 不可小于 {{minValue}}",More:"{{name}} 不可大于 {{maxValue}}"},Value:{Input:{Between:"请输入 {{minValue}} 至 {{maxValue}} 的值"}}}}},Scroll:{FailedToLoad:"加载失败",NoApprovals:"暂无审批"},SecondApprovalTip:"系统提示:存在秒批行为,请注意",SelectSearch_Complete:"完成",SelectSearch_NoResult:"暂无搜索结果,请重新输入",SelectSearch_Placeholder:"搜索",Selected:"已选",SelectedCancel:"取消",SelectedConfirm:"确认",Semicolon:"",SerialID:"编号",Settings_AggrPush_CcOnly:"仅抄送",Settings_AggrPush_CcOnly_Hint:"每天新增的【抄送】将不会单独通知,而是在固定的时间聚合推送。新增【审批待办】将会单独通知。",Settings_AggrPush_EnableHint:"允许配置“审批消息”的聚合规则与推送时间。",Settings_AggrPush_PushContent:"推送内容",Settings_AggrPush_PushTime:"每天推送时间",Settings_AggrPush_SectionTitle:"消息",Settings_AggrPush_Switch:"聚合推送审批消息",Settings_AggrPush_TodoAndCc:"审批待办与抄送",Settings_AggrPush_TodoAndCc_Hint:"每天新增的【审批待办】与【抄送】将不会单独通知而是在固定的时间聚合推送。每日10:00的【每日汇总通知】将不再提醒。",Settings_Bot_Muted:"为避免错过聚合消息建议开启”审批“BOT消息提醒",Settings_Enter_Bot:"去设置",Settings_OnBoarding_Content:"每天新增的审批待办和抄送, 可以聚合成一条消息来通知",Settings_OnBoarding_Title:"支持聚合推送审批待办和抄送",Settings_PageTitle:"审批设置",Share_AppPageCardTitle:"页面卡片",Share_AppPageLinkTitle:"页面链接",Share_AppPageQrTitle:"页面二维码",Share_ClickToTryAgain:"点此重试",Share_CopyBtn:"复制",Share_MessagePlaceholder:"留言",Share_QrCodeDesc:"请通过{{APP_DISPLAY_NAME}}扫码访问",Share_SaveBtn:"保存",Share_SelectedCountChats:"已选:{{select_count}}个会话",Share_SharePlaceholder:"我在{{APP_DISPLAY_NAME}}分享了一个应用给你,点击链接查看 {{link}}",Share_ShareSuccessToast:"分享成功",Share_ShareTitle:"分享",Shared:{NotShowTaskFromIMNextTime:"来自会话,该内容下次打开后将不再显示。"},SidebarWebview_CopyLink:"复制链接",SidebarWebview_LoadFail:"加载失败",SidebarWebview_OpenInBrowser:"浏览器打开",SidebarWebview_Reload:"刷新",SignGroup_SameNameValueError:"控件名称相同,不允许存在值不相同,请重新填写",Signature_agree:"下次同意时继续使用此签名",Signature_board_title:"手写签名",Signature_board_to_use:"签名",Signature_clear:"清除",Signature_click_refresh:"点击刷新",Signature_complete_tip:"请在电脑上查看签名并确认",Signature_complete_title:"完成签名",Signature_confirm_re_sign:"确认重签吗",Signature_fail_tip:"请用手机重新扫描电脑上的二维码,进行签名",Signature_fail_title:"签名失败",Signature_quit:"退出签名",Signature_rewrite:"重签",Signature_scan:"手机{{BRAND_DISPLAY_NAME}}扫码签名",Signature_scan_error:"二维码已失效",Signature_scan_success:"扫码成功",Signature_title:"签名",Signature_use:"使用签名",Signature_use_fail:"签名使用失败",Signature_use_is_empty:"请完成签名",Signature_use_on_here:"请在此处签名",Signature_use_on_phone:"请在手机上操作",SortType_Asc:"最久等待优先",SortType_Desc:"最新到达优先",Split:"、",StartNode_Title:"发起",Submit:"发起",SubmitModify:"发起修改",SubmitRequest:"发起申请",SubmitTime:"提交时间",Submit_Success_Go_Next:"提交成功,即将进入下一条",Telephone:{Call:"呼叫 {{number}}",CallNotSupported:"当前设备不支持拨打号码",Copy:"复制",FixedLine:"固话号码",HistoryRecord:"历史记录",HotCountryCode:"热门国家和地区",Invalid:"{{type}}格式不正确",MobilePhone:"手机号码",NoEmpty:"{{type}}不能为空",OptionLoadFail:"选项加载失败",Phone:"电话号码",SearchCountryCode:"搜索国家或地区",SearchEmpty:"没有找到相关结果",SelectArea:"选择国家和地区"},Test:{Text:"我是文案1111"},TextCollapse_fold:"收起",TextCollapse_unfold:"展开",ThirdApprovalLinkError:"三方审批空链接报错",ThirdPart:{UnavailableOnMobile:"暂不支持移动端,请前往桌面端查看",UnavailableOnPC:"暂不支持桌面端,请前往移动端查看"},ThirdPart_ClientHintOnCard:"请前往桌面端查看",TimeLine:{Handler:{Transfer:{HintText:"将办理人从 {{oldApprover}} 转交为 {{newApprover}}"}},Node:{Transfer:{ApproverName:{ExtraText:"管理员"},HintText:"将审批人从 {{oldApprover}} 转交为 {{newApprover}}",HintTextHandler:"将办理人从 {{oldApprover}} 转交为 {{newApprover}}",Status:"已转交"},TransferCc:{HintText:"抄送给交接人 {{newApprover}}"}}},Timeline:{Handle:"办理"},ToSubmitted:"查看记录",Toast:{FailedToCopy:"复制失败",SuccessfulToCopy:"复制成功"},Toast_1:"操作成功,即将进入下一条单据",Toast_2:"系统异常,建议稍后再试",Toast_3:"请求失败,建议稍后再试",Transmit_Fail:"发送失败",Transmit_InvolversTitle:"当前审批相关人员",Transmit_OnlyRelatedUsersCanSend:"仅此审批相关人员可以转发",Transmit_RelevanceHint:"管理员设置了仅可转发给此审批相关的人员,以避免产生信息安全风险",Transmit_Success:"发送成功",TripGroup:{AddGroup:"添加行程",GroupTitle:"行程 {{number}}"},Unsupported_content:"网页版暂不支持{{featureName}},前往小程序进行操作?",Unsupported_tip:"暂不支持此单据",Unsupported_title:"跳转提示",UpdateClientHint:"请将{{name}}升级至 {{version}} 版本",UpdateReminderContent:"审批新版本已准备好,请重启审批应用以完成更新",UpdateReminderHeader:"更新提示",Upload_AllFiles:"全部附件",Upload_FIles:"上传附件",Upload_Files:"上传附件",Upload_Images:"上传图片",UserDepartment:"所属部门",Validation:{PleaseFillIn:"请填写{{name}}",PleaseFillSth:"请填写",PleaseRemove:"请移除{{name}}",PleaseSelect:"请选择{{name}}",PleaseSelectSth:"请选择"},Web:{Permissions:"暂无权限",UnknownException:"未知异常"},WithdrawModifyCheckTitle:"撤销修改后,将恢复成原审批单状态,确定撤销吗?",WithdrawWillRecover:"撤销修改后,将恢复成原审批单状态,确定撤销吗",WorkGroup:{AfterLeaveEnd:"无法选择该时段,最多只能补交 {{num}} 天内的加班申请",AfterLeaveEndToday:"无法选择该时段,最多只能补交当天的加班申请",AfterLeaveEnd_plural:"无法选择该时段,最多只能补交 {{num}} 天内的加班申请",BeforeLeaveStart:"无法选择该时段,请至少提前 {{num}} 天提交加班申请",BeforeLeaveStartToday:"无法选择该时段,最晚应在当天提交加班申请",BeforeLeaveStart_plural:"无法选择该时段,请至少提前 {{num}} 天提交加班申请",CalcMethod:"计算方式",CannotOvertime:"无法发起加班申请",CannotSubmitWork:"无法提交加班申请,请修改加班时段",ConfirmWorkerChange:"加班人变更",Conflict:"所选加班日期无需审批,或该日期已有加班申请",DailyMaxOvertime:"日加班上限值",DetailTip:",按时长计算为",Duration:"加班时长",FromDateToDate:"{{from}} 至 {{to}}",HasOvertimeConflict:"你在所选时段已有加班申请,请重新选择",IntervalExceeded:"不能超过上述时间区间",MonthFormat:"YYYY年MM月",MonthlyMaxOvertime:"月加班上限值",NoAttendanceExist:"你尚未开通考勤应用,无法申请加班,请联系管理员",NoNeedApproval:"{{type}}加班无需申请,如有疑问请联系管理员。",NoPermissionRequest:"{{type}}不允许申请加班,如有需要请联系管理员。",NoZeroDuration:"加班时长应该大于 0",OvertimeConflict:"与已有的加班申请时间冲突,请重新选择时间。",OvertimeDate:"加班日期",OvertimeDetail:"时长明细",OvertimeExceedMax:{IgnoreOvertime:"超出部分将不计入加班时长",Other:"{{name}}在 {{range}} 累计加班 {{total}} {{unit}},已超过规定的{{max}}{{action}}",ProhibitOvertime:"请修改后重试(该时段内最多还可申请 {{remaining}} {{unit}}加班)",ProhibitOvertimeShort:"请修改后重试",ReceiveReminder:"请知悉",TransferLeave:"超出部分将计为调休",You:"你在 {{range}} 累计加班 {{total}} {{unit}},已超过规定的{{max}}{{action}}"},OvertimeManagementRange:"以下人员不在你的管理范围内,无法代申请加班,请从加班人中移除",OvertimeRuleDifferent:"以下人员的考勤时间和加班规则与首位加班人{{name}}不同,无法使用同一份单据申请加班,将自动从加班人中移除。如仍需为以下人员申请加班,请另行提交申请",PerOvertimeDetail:"每日加班明细",TotalWorkTime:"总加班时长",UnsetWorkRule:"你还没有关联的加班规则,无法申请加班,请联系管理员",WeeklyMaxOvertime:"周加班上限值",WorkChangeTips:"实际加班时长将结合打卡记录计算",WorkConflict:"所选加班日期无需审批,或该日期已有加班申请",alreadyKnown:"知道了",exceedSevenDays:"加班时长超过7天请重新选择",overtimeTooShort:"你的加班时长小于管理员设定的最低加班时长,无法发起加班申请"},WorkGroup_Unit_Day:"天",WorkGroup_Unit_Hour:"小时",WorkGroup_Unit_Minute:"分钟",admin_modify_empty:"允许修改的天数不能为空",admin_modify_title:"修改设置",admin_setting:"允许修改 {{day}} 天内通过的审批",api:{commonRequestFailed:"抱歉出了点错误,请刷新重试",processing:"请求中",requestFailed:"抱歉出了点错误,请刷新重试",timeout:"请求超时,请重试"},apply:"申请人",approval:"https://bytedance.feishu.cn/docs/doccnStzf1xsvCYUY3tDN22Qpqe","approval-MP_MaxLinesWhenWidgetUseExternal_Desc":"明细内控件使用外部数据源明细最大值限制200条","approval-admin_AfterRejectedEditForResubmit_Descapproval-admin_Desc":"审批人拒绝后,提交人可编辑流程后重新提交,流程重走","approval-admin_AfterRejectedProcessEnd_Descapproval-admin_Desc":"审批人拒绝后,流程即被终止","approval-admin_AllBelong_Option":"全部属于","approval-admin_AtSharePermit_Confirm":"确认发送","approval-admin_AtSharePermit_Desc":"在评论中@{{name}}后,对方将拥有与你同等的审批查看权限","approval-admin_BeginConfirmApproval_Desc":"新建审批","approval-admin_BelongTo_Option":"属于","approval-admin_ContainsAll_Option":"包含以下全部","approval-admin_EarlierThan_Option":"早于","approval-admin_LaterThan_Option":"晚于","approval-admin_LocatesIn_Option":"位于","approval-admin_MaxLinesWhenWidgetUseExternal_Desc":"明细内控件使用外部数据源,明细最多支持添加 200 条","approval-admin_MultiLevelSupervisor_Opt":"连续多级部门负责人","approval-admin_NoCurrency_Placeholder":"未设置币种","approval-admin_NoEarlier_Option":"晚于等于","approval-admin_NoLater_Option":"早于等于","approval-admin_NoneofWhichis_Option":"全部不属于","approval-admin_NotBelong_Option":"不属于","approval-admin_NotBelong_Option_Plural":"不属于","approval-admin_NotInclude_Option":"不包含","approval-admin_NotInclude_Option_Plural":"不包含","approval-admin_NotLocateIn_Option":"不位于","approval-admin_OneBelongs_Option":"其中一个属于","approval-admin_PleaseSelectCurrency_Placeholder":"请选择币种","approval-admin_RemedyDuration":"延迟补卡时长","approval-admin_RemedyNumber_For_Month":"当月已补卡次数","approval-admin_SharePermission_Title":"确定分享权限?","approval-admin_ShowOnlyBatchProcess_Desc":"只展示开启了批量处理功能的审批","approval-admin_SubmitTime":"审批提交时间","approval-admin_TimeFormatIs_Option":"等于","approval-admin_TypeIs_Option":"等于","approval-admin_TypeIsnt_Option":"不等于","approval-admin_no_Button":"取消","approval-admin_yes_Button":"确认","approval-mp_100LinesImported_Toast":"成功导入 100 条","approval-mp_AbnormalDataGenerated_Title":"审批异常明细数据已生成","approval-mp_AccountName_Title":"账户名称","approval-mp_AccountNo_Title":"账号","approval-mp_Action_FieldName":"操作","approval-mp_ActivateSuccess_Title":"启用成功","approval-mp_Activate_Button":"启用","approval-mp_Activated_Tag":"已启用","approval-mp_Add1Person_Desc":"仅支持添加 1 人","approval-mp_AddApproval_Button":"添加审批","approval-mp_AddFieldAvailable_Tooltip":"当前表单无可配置的必填字段,请前往表单设计中添加","approval-mp_AddQuickText_Button":"添加","approval-mp_AddQuickText_DescButton":"添加","approval-mp_AddQuickText_Tabs":"添加常用语","approval-mp_AddRange_Button":"添加范围","approval-mp_AddTemplateTitle_Button":"添加{{ApprovalTemplateTitle}}","approval-mp_AddTemplate_Title":"添加模板","approval-mp_AddTitle_Button":"添加{{ApprovalTemplateTitle}}","approval-mp_Add_Button":"添加","approval-mp_AdvancedFilter_Button":"高级搜索","approval-mp_AdvancedSearch_Title":"高级搜索","approval-mp_AdvisorReviewAfterRequest_Toast":"发起意见征询后,单据将流转至被征询人","approval-mp_Advisor_Title":"被征询人","approval-mp_AfterDeleteView_Desc":"删除后,该单据仅支持管理员进行查询与导出,其他员工无法再查看。","approval-mp_AfterRangeTurnedOn_Desc":"开启后,提交人仅可关联以下范围内的审批单据","approval-mp_AfterTheModify_Desc":"修改后","approval-mp_Agree_Button":"同意","approval-mp_AllApprovals_Title":"“{{name}}”的全部审批","approval-mp_AllApproversMustApprove_Desc":"需所有人依次通过","approval-mp_AllApproversMustProcess_Desc":"需所有人依次办理","approval-mp_AllStatus_Placeholder":"全部","approval-mp_AllowPrinterAccess_Desc":"三方应用打印宝可访问当前审批数据。同意后,才能使用管理员设置的自定义打印模板","approval-mp_AppKeyUnavailable_Desc":"无法访问,该应用密钥不可用","approval-mp_ApplicationNo_FieldName":"申请编号","approval-mp_ApplyPemissions_Title":"审批应用申请获得以下权限","approval-mp_ApprovalBenefits_Desc":"请假、报销、付款、合同、采购等多种流程统一入口发起;可在桌面端和移动端实时同步处理;一键拉群,帮助审批人高效决策","approval-mp_ApprovalDeleted_Desc":"该审批已删除","approval-mp_ApprovalDeleted_Title":"该审批已删除","approval-mp_ApprovalDetailsFailed_Title":"审批数据明细生成失败","approval-mp_ApprovalManagement_Tab":"审批管理","approval-mp_ApprovalMatrix_Option":"审批矩阵","approval-mp_ApprovalName_FieldName":"审批名称","approval-mp_Approved_Placeholder":"已通过","approval-mp_ApproverView_Desc":"审批人视角","approval-mp_Approving_Placeholder":"审批中","approval-mp_AreUSureUnmark_Title":"确认取消标记吗?","approval-mp_AreYourSureDelete_Title":"确定要删除“{{approval}}”吗?","approval-mp_AskForOpinionsFrom_Desc":"向{{name}}征询","approval-mp_AskForOpinions_Button":"意见征询","approval-mp_AskForOpinions_Tag":"意见征询","approval-mp_AssignYouAsDelegateHandler_Title":"{{Name}}将{{RequestName}}委托给你办理","approval-mp_AtLeastNum_Desc":"至少要有 {length} 个{path}","approval-mp_AttachmentUploadLimit_Toast":"最多支持上传 {{count}} 个附件","approval-mp_Attachment_Download":"下载","approval-mp_AutoApproved_Desc":"用户已设置自动审批","approval-mp_AutoApproved_Tag":"自动通过","approval-mp_AutoCopyCantEdit_Desc":"发起审批后,文档副本的所有权将转移至{{BRAND_DISPLAY_NAME}},你将无法编辑","approval-mp_AutomaticApproval_Title":"自动审批","approval-mp_Bank_Title":"开户行","approval-mp_BatchFailReasonNum_toast":"批量审批的 {{totalCount}} 单中,有 {{failCount}} 单因{{reason}}失败,请前往待办处理","approval-mp_BatchFailReason_toast":"批量审批的 {{totalCount}} 单因{{reason}}导致全部审批失败,请前往待办处理","approval-mp_BatchFailReasons_toast":"批量审批的 {{totalCount}} 单中:","approval-mp_BatchImport_Button":"批量导入","approval-mp_BatchImporting_Title":"批量导入中","approval-mp_BatchProcessRejectedApproval_Desc":"不支持批量处理被拒绝的审批","approval-mp_BeforeTheModify_Desc":"修改前","approval-mp_CCRecipientRunFlow_Desc":"被抄送人将会在「待办」下看到此审批单,并点击「我已知悉」后,单据才能继续流转","approval-mp_CanEdit_Tag":"可编辑","approval-mp_CancelAddQuickText_Button":"取消","approval-mp_CancelDeleteWidget_CardButton":"取消","approval-mp_Cancel_Button":"取消","approval-mp_CannoInitiate_Desc":"没有发起权限","approval-mp_CannotInitiateDeactived_Desc":"无法发起已停用的审批","approval-mp_CannotInitiateDeleted_Desc":"无法发起已删除的审批","approval-mp_CantFind_Desc":"找不到申请入口?","approval-mp_CantJoinContactAdmin_toast":"当前无法加入该内部群聊,请联系管理员","approval-mp_CascadingDropdown_ICUcontent":"选项关联","approval-mp_CheckOtherTabs_Desc":"可查看其他类别,或提交审批申请","approval-mp_ChooseCarefulTips_Desc":"请谨慎选择,以免过度打扰用户,详见","approval-mp_ChooseVariousTemplates_Tooltip":"丰富模版,开箱即用","approval-mp_ClaimRequest_Button":"认领","approval-mp_ClickButtonBelow_Desc":"点击下方按钮","approval-mp_ClickHereRedirectMe_Button":"点击跳转","approval-mp_ClickHere_Link":"可点击这里","approval-mp_ClickIUnderstand_Tooltip":"该审批在你知悉后才继续流转","approval-mp_ClickRetry_Button":"点击重试","approval-mp_ClickSubmitRequest_Title":"“{{approvalName}}申请”","approval-mp_ClickSubmit_Desc":"点击下方按钮提交","approval-mp_ClickToCopyErrorCode_Tooltip":"点击复制完整错误信息","approval-mp_CompleteDateTime_FieldName":"完成时间","approval-mp_Completed_Desc":"已完成","approval-mp_Completed_Tag":"已处理","approval-mp_ConfirmBotCard_Button":"已确认","approval-mp_ConfirmToImport_CardTitle":"确认导入?","approval-mp_ContactToRestore_CardDesc":"{num} 月 {num} 日前可联系 @{name} 恢复审批","approval-mp_ContinueCreate_Button":"继续新建","approval-mp_ContinueEditingBrowser_CardDesc":"打开浏览器继续编辑","approval-mp_CountryRegion_Title":"国家/地区","approval-mp_CreateApprovalProcess_Title":"创建审批流程","approval-mp_CreateApproval_Options":"创建审批","approval-mp_CreateCopyAdd_Button":"创建副本并添加","approval-mp_CreateProcessSteps_Desc":"在“审批管理”中点击“新建流程”,“启用”所选模板,即可创建流程","approval-mp_Create_Button":"去创建","approval-mp_Currency_Title":"币种","approval-mp_CurrentApprover_FieldName":"当前审批人","approval-mp_CurrentStage_FieldName":"当前节点","approval-mp_CurrentVerOutdated_Desc":"当前{{APP_DISPLAY_NAME}}版本过低,无法体验打印预览等功能,请更新{{APP_DISPLAY_NAME}}后尝试","approval-mp_DataContainError_ErrorMessage":"有 {{num}} 个数据异常,请调整","approval-mp_DataNotAffected_Desc":"删除单据不会影响考勤和人事的相关数据","approval-mp_DataOverwrite_ExcelDesc":"导入后,明细表格原有的数据将被覆盖。","approval-mp_DateFormal_ExcelDesc":"日期请以【YYYY-MM-DD】【YYYY-MM-DD hh:mm】的格式填写否则将导致校验不通过","approval-mp_Deactivate_Button":"停用","approval-mp_Deactivated_Tag":"已停用","approval-mp_Deactived_Desc":"该审批已停用","approval-mp_Deactived_Title":"该审批已停用","approval-mp_DefaultBranch_Desc":"如存在未满足其他分支条件的情况,则进入此分支","approval-mp_DefaultBranch_Title":"其他情况","approval-mp_DelegatesOn Behalf_Desc":"代理{{delegate}}办理","approval-mp_DelegatesOnBehalf_Desc":"代理{{delegate}}办理","approval-mp_DeleteQuickText_Button":"删除","approval-mp_DeleteQuickText_CardTitle":"确认删除吗?","approval-mp_DeleteSelected_Button":"删除已选","approval-mp_DeleteTerminate_Desc":"删除了审批流程","approval-mp_DeleteWidget_CardButton":"删除","approval-mp_DeleteWidget_CardDesc":"该字段已作为审批通知展示,删除后将在“{{location1}} > {{location2}}”中同步移除","approval-mp_DeleteWidget_CardTitle":"确定要删除“{{widget}}”吗?","approval-mp_Delete_FieldName":"删除","approval-mp_Delete_Tooltip":"删除","approval-mp_DeletedContactAdmin_Desc":"如有问题,请与管理员{{admin}}联系","approval-mp_DeletedContactAdmin_Desc1":"如有问题,请与管理员","approval-mp_DeletedContactAdmin_Desc2":"联系","approval-mp_DeletedRequest_Desc":"删除审批","approval-mp_Deleted_Tag":"已删除","approval-mp_Delimiter_Desc":"、","approval-mp_DesktopSubmit_Toast":"请在桌面端提交","approval-mp_DetailTableImport_CardButton":"导入","approval-mp_Detail_CardButton_v2":"查看详情","approval-mp_DetailsExportSetting_Button":"设置","approval-mp_DiagnosisDetails_Desc":"点击“效率诊断”,即可查看团队/个人效率数据和趋势分析","approval-mp_DisplayEqualOne_Tooltip":"最少展示 1 个字段","approval-mp_DisplayFive_Tooltip":"最多展示 5 个字段","approval-mp_DisplayThree_Tooltip":"展示表单前 3 个字段","approval-mp_DownloadFailDetails_Toast":"审批详情","approval-mp_DownloadFailView_Toast":"PDF 文件下载失败,点击查看{{details}}","approval-mp_DownloadPDFFail_Toast":"PDF 文件下载失败","approval-mp_DownloadPDFRetry_Button":"重试","approval-mp_DownloadPDF_Tab":"下载为 PDF","approval-mp_DownloadedPDF_Toast":"PDF 文件下载完成","approval-mp_DownloadingPDFBot_Toast":"PDF 下载中,完成后将通过审批 Bot 发送","approval-mp_DownloadingPDF_Toast":"PDF 下载中,请耐心等待","approval-mp_Edit Document_Button":"编辑文档","approval-mp_EditFormDesign_Button":"前往表单设计","approval-mp_EditQuickText_Button":"编辑","approval-mp_EditQuickText_Title":"编辑常用语","approval-mp_EditRequiresRevoking_Title":"编辑此文档,需撤回流程","approval-mp_EnableAutomaticApproval_Desc":"设置生效后,你的下属发起的审批流程将自动通过","approval-mp_EnableAutomaticApproval_Title":"设置自动审批","approval-mp_EndDate_Placeholder":"结束日期","approval-mp_EnsureEditingComplete_CardDesc":"请确认是否已经完成编辑,导入数据后明细表格原本的内容会被覆盖","approval-mp_EnsureValidation_ExcelDesc":"请勿增加、删除或修改该表的字段,否则将导致校验不通过。","approval-mp_EnterAmount_Placeholder":"请输入金额","approval-mp_EnterApprovalName_Placeholder":"请输入审批名称","approval-mp_EnterCorrectDocsLink_ErrorMessage":"请输入正确的文档链接","approval-mp_EnterQuickText_ErrorMessage":"请输入常用语","approval-mp_EnterQuickText_Placeholder":"请输入","approval-mp_EnterReasonCanAtMention_placeholder":"请输入原因,可@相关人员","approval-mp_EnterReason_placeholder":"请输入原因","approval-mp_EnterTemplateName_Placeholder":"请输入模板名称","approval-mp_ErrorCodeCopied_Toast":"复制成功","approval-mp_ErrorCode_Desc":"错误信息:","approval-mp_ErrorMessage":"审批流程预览失败,请重试","approval-mp_ExpiredAndClosed_Tag":"超时关闭","approval-mp_ExportAll_Button":"导出全部","approval-mp_ExportDetailedData_Link":"导出明细数据","approval-mp_ExportRecord_Button":"导出记录","approval-mp_ExportSelected_Button":"导出已选","approval-mp_ExportingBotPush_Toast":"正在导出数据,完成后将通过审批机器人发送信息","approval-mp_ExternalContactNotAllow_Toast":"不允许增加外部联系人","approval-mp_ExternalDataSource_ICUcontent":"外部数据源","approval-mp_ExternalNoImport_ExcelDesc":"涉及外部数据源的单选和多选不支持批量导入,请前往提单页逐个进行选择。","approval-mp_FailedProceed_Desc":"附件上传失败,是否继续提交","approval-mp_FileEditedResubmit_Desc":"{user_name} 编辑了审批单据中的 {filename},当前审批需重新提交","approval-mp_FileMax500_Desc":"每个文件不超过 {{size}} MB","approval-mp_FileMax500_Tooltip":"每个文件不超过 {{size}} MB","approval-mp_FirstTimePartnership_Tag":"首次合作","approval-mp_FivePersonConversation_Desc":"将创建你和 {{name}}、{{name}}、{{name}}、{{name}}、{{name}} 的群聊,并发送以下提醒","approval-mp_FourPersonConversation_Desc":"将创建你和 {{name}}、{{name}}、{{name}}、{{name}} 的群聊,并发送以下提醒","approval-mp_FromSmartProcessNoConfiguration_Desc":"原敏捷流程规则,无需配置结果","approval-mp_GainPermissionMakeCopy_ErrorMessage":"仅支持文档所有者添加,请联系所有者 {name} 为你开通创建副本的权限","approval-mp_GenerateNotAgain_Toast":"数据生成中...请勿重复操作","approval-mp_GenerateTeamAbnormalDetails_Desc":"团队异常数据明细(超时、秒批、代批情况)生成中...完成后你将收到审批机器人的通知","approval-mp_GetApprovalDataSelect_Desc":"如需获取超时、秒批、代批数据,可选择","approval-mp_GoExport_Button":"前往导出","approval-mp_GoSubmit_Button":"去提交","approval-mp_GoToApproval_Button":"前往审批应用","approval-mp_GotIt_Button":"我知道了","approval-mp_GrantPermissionToDocuGenius_CardDesc":"三方应用排版打印可访问当前审批数据。同意后,才能使用管理员设置的自定义打印模板","approval-mp_Handlerdelegation_Desc":"代他人办理","approval-mp_HoldShareAccess_Desc":"长按可分享申请入口","approval-mp_IUnderstandBotCard_Button":"我已知悉","approval-mp_IUnderstand_Button":"我已知悉","approval-mp_ImageAttachmentFormulas_ExcelDesc":"不支持图片、附件、计算公式导入。","approval-mp_ImageMax30_Toast":"最多可上传 {{count}} 张图片","approval-mp_ImageNumSize_Desc":"最多可添加 9 张图片,每张大小不超过 5 MB","approval-mp_ImageNum_Desc":"{count} 个图片","approval-mp_ImageNum_Desc_Plural":"{count} 个图片","approval-mp_ImageSize500_Toast":"每张图片不超过 {{size}} MB","approval-mp_ImageUploadLimit_Toast":"最多支持上传 {{count}} 张图片","approval-mp_ImportantCC_Tag":"重要抄送","approval-mp_IncompleteNotificationSettings_Desc":"未完成审批通知设置","approval-mp_InitiateAdmin_Desc":"没有权限发起该审批,请联系管理员","approval-mp_InitiateWithCopy_Checkbox":"使用文档副本发起审批","approval-mp_InstructionCCMarking_Desc":"强化重要抄送说明","approval-mp_InstructionExplanation_Desc":"开启限制关联审批范围后,员工在提交审批时仅可关联指定范围的审批单。若设置展示字段,对应字段会显示在当前审批单内","approval-mp_Instructions_ExcelDesc":"填写说明","approval-mp_Instructions_Title":"使用说明","approval-mp_InvolveImportantCCWait_Tooltip":"当前审批涉及到重要抄送,请耐心等待","approval-mp_KeywordAdvancedSearch_Desc":"输入关键词或使用高级搜索查找审批","approval-mp_KeywordsOrAdvancedSearch_Desc":"请输入关键词或使用高级搜索","approval-mp_LearnAboutApproval_Title":"了解飞书审批","approval-mp_LimitRange_Switch":"限制关联审批范围","approval-mp_LinkApprovalFirst_Desc":"请先关联审批","approval-mp_LinkApproval_Placeholder":"关联审批","approval-mp_LinkBlocked_Desc":"该链接可能存在风险,已被{{BRAND_DISPLAY_NAME}}拦截","approval-mp_LoadingFailedClickToRetry_Desc":"加载失败,{{点击重试}}或{{打开原页面}}","approval-mp_LocateStepReApprove_toast":"被选中节点的人员处理后,将会从该节点后重新审批","approval-mp_MakeCopyAddDocs_Button":"创建副本并添加","approval-mp_MakeCopyTransferOwnership_Desc":"发起审批后文档副本的所有权将转移至审批,你将无法编辑","approval-mp_MarkImportant_Checkbox":"标记为重要流程","approval-mp_MarkedImportant_Tooltip":"已标记为重要流程","approval-mp_MaxNumberFiles_Toast":"最多可上传 {{oldcount}} 个文件,升级{{APP_DISPLAY_NAME}}后最多可上传 {{newcount}} 个文件","approval-mp_MaxSizeFiles_Toast":"每个文件不超过 {{oldsize}} MB升级{{APP_DISPLAY_NAME}}后最大可上传 {{newsize}} MB","approval-mp_MobileDataDeletedContactAdmin_EmptyState":"数据源已被删除,请联系管理员{{name}}","approval-mp_MobileDataDeletedContactAdmin_ErrorMessage":"数据源已被删除,请联系管理员{{name}}","approval-mp_MobileNoResults_EmptyState":"没有找到相关结果","approval-mp_MobileSelectLastWidget_Tooltip":"请先选择{{lastWidget}}","approval-mp_MobileSubmit_Title":"当前单据仅限移动端提交","approval-mp_MobileSubmit_Toast":"请在移动端提交","approval-mp_MobileUnableLoadReTry_EmptyState":"加载失败,{{tryAgain}}","approval-mp_MobileVisit_Desc":"请通过飞书扫码访问","approval-mp_ModalComformText_GroupTimeCheck":"知道了","approval-mp_ModalContent_OutGroupTimeCheck":"与已有的外出申请时间冲突,请重新选择时间","approval-mp_ModalContent_TripGroupTimeCheck":"与已有的出差申请时间冲突,请重新选择时间","approval-mp_ModalTitle_GroupTimeCheck":"时间冲突","approval-mp_ModifiedSameSerial_Placeholder":"同个单据出现修改,流水号不变","approval-mp_ModifiedStuff_Desc":"修改内容","approval-mp_ModifyApproval_Options":"修改审批","approval-mp_ModifyDetails_Subtitle":"修改详情","approval-mp_MoreFilters_Button":"更多筛选","approval-mp_MoreSources_Title":"更多来源系统","approval-mp_MoreSubordinates_Title":"更多相关下级","approval-mp_MoreTypes_Title":"更多审批类型","approval-mp_MultiMemberConflictInterest_Toast":"员工 {员工姓名} 等 {num} 人与关系企业有利益冲突","approval-mp_MultiPersonConversation_Desc":"将创建你和 {{name}}、{{name}}、{{name}}、{{name}}、{{name}} 等 {{count}} 人的群聊,并发送以下提醒","approval-mp_NetworkFailed_Title":"网络请求失败","approval-mp_NoAbnormalFound_Desc":"MM-DD-YYYY 至 MM-DD-YYYY 期间,团队内不存在超时、秒批、代批情况的异常数据。若对数据有疑问,{click here}","approval-mp_NoAccessCheckLink_Desc":"无法访问其他团队的页面,请确认链接是否正确","approval-mp_NoAccessPermission_Desc":"无权限查看此审批单据","approval-mp_NoAccessToDetails_Desc":"无权限查看详情","approval-mp_NoAccess_Desc":"没有访问权限","approval-mp_NoAccess_Title":"没有访问权限","approval-mp_NoBatchProcessOpinionsRequest_Tooltip":"意见征询的单据不支持批量处理","approval-mp_NoDisplayPayeeInfo_Desc":"非银行直联收款,以下部分信息为空","approval-mp_NoDisplayPayerInfo_Desc":"非银行直联出款,以下部分信息为空","approval-mp_NoDocsAccessApplyFirst_Toast":"无云文档所在文件夹的编辑权限,请先申请权限或使用文档副本发起审批","approval-mp_NoDragDrop_Tooltip":"只有 1 个字段,不支持拖拽","approval-mp_NoEditCrossTenantRequest_Toast":"关联组织单据暂不支持编辑","approval-mp_NoFieldAvailable_Tooltip":"当前表单无可配置的字段","approval-mp_NoFoundResult":"没有找到相关内容","approval-mp_NoInitiate_Title":"没有发起权限","approval-mp_NoJumpTo_Toast":"暂不支持跳转","approval-mp_NoPermissionCannotSubmit_Tooltip":"暂无发起权限,无法提交该审批","approval-mp_NoPermissionContactAdmin_Desc":"没有权限发起该审批,请联系管理员","approval-mp_NoPermissionProcessed_ErrorMessage":"你没有单据权限;或该单据已被其他人处理,你无需再处理","approval-mp_NoPermissions_Menu":"没有权限访问","approval-mp_NoQuickText_Desc":"暂无常用语","approval-mp_NoReminderToExternal_Toast":"暂不支持催办外租户审批人","approval-mp_NoResultsForICU_Desc":"未搜到“{{text}}”相关结果","approval-mp_NoTeamAccess_Desc":"无法访问其他团队的内部应用","approval-mp_No_Button":"取消","approval-mp_NoneAccountName_Desc":"无","approval-mp_NoresultsFoundTryAgain_ErrorMessage":"没有查找到相关文档,请重新输入","approval-mp_NotNowUpdate_Button":"暂不更新","approval-mp_NotOwnerMakeCopy_Desc":"你不是当前文档所有者,需创建副本后添加。发起审批后,文档副本的所有权将转移至审批,你将无法编辑。","approval-mp_NotOwnerUseCopy_Desc":"你不是当前文档的所有者,需创建副本后添加。发起审批后,文档副本的所有权将转移至{{BRAND_DISPLAY_NAME}},你将无法编辑","approval-mp_NotSupportBatchProcess_Tooltip":"重要抄送的单据不支持批量处理","approval-mp_NotificationAdd_Button":"添加","approval-mp_NotificationCustomSettings_Option":"自定义配置","approval-mp_NotificationDefaultSettings_Option":"系统默认","approval-mp_NotificationLearnMore_Button":"了解能力","approval-mp_NotificationSelect_Placeholder":"请选择","approval-mp_NotificationSettings_Title":"审批通知设置","approval-mp_NumDataImported_Toast":"已成功导入 {{num}} 条数据","approval-mp_NumberCopied_Toast":"编号复制成功","approval-mp_OKGoUpdate_Button":"立即更新","approval-mp_OffLinkAny_Desc":"关闭时,提交人可关联权限内的任意审批单","approval-mp_OnceClaimRequest_Tooltip":"认领后,当前任务将由你稍后处理,同一节点的竞争审批人无法审批。申请人会收到认领通知","approval-mp_OneMemberConflictInterest_Toast":"员工 {员工姓名} 与关系企业有利益冲突","approval-mp_OnePersonConversation_Desc":"将创建你和 {{name}} 的群聊,并发送以下提醒","approval-mp_OneQuickText_Tooltip":"只有 1 条,不支持拖拽","approval-mp_OnlyApprovedOnes_Switch":"仅可关联审批通过的单据","approval-mp_OnlyShowAbnormal_Desc":"目前仅支持查看团队内存在超时、秒批、代批情况的任务明细数据,最多展示 N 条。 若对数据有疑问,{click here}","approval-mp_OpenDoc_Tooltip":"打开文档","approval-mp_OpinionsConfirm_Button":"发起","approval-mp_Opinions_Tabs":"你征询到的审批意见","approval-mp_OriginalFieldDeleted_ErrorMessage":"表单设计中已删除原有配置字段,请重新添加","approval-mp_OtherOptional_Title":"其他可选","approval-mp_OtherTeamDetaisFailedRetry_Desc":"{name}的团队在 {time}的明细数据生成失败,可前往应用内重新导出","approval-mp_OutsideRequestOwner_Toast":"{{staff_names}}为本企业及单据来源企业外成员,无法添加","approval-mp_Over100LinesImportManually_Desc":"最多支持批量导入 100 行,超过 100 行的数据需要在明细表格内手动输入","approval-mp_OwnerChangeUseCopy_Desc":"发起审批后,文档所有权将转移至{{BRAND_DISPLAY_NAME}},你将无法编辑","approval-mp_PCSubmit_Title":"当前单据仅限桌面端提交","approval-mp_PCVisit_Desc":"请前往桌面端提交","approval-mp_ParallelNum_Desc":"{num}/{numTotal}","approval-mp_ParallelRequireAllApproval_Desc":"以下 {num} 个节点同时审批中,需全部通过","approval-mp_ParallelRequireAllApproval_Tooltip":"{num} 个节点同时审批中,需全部通过","approval-mp_PayeeAccountInfor_Title":"收款方账户信息","approval-mp_PayeeInfo_Tag":"收款信息","approval-mp_PayerAccountInfor_Title":"出款方账户信息","approval-mp_PayerInfo_Tag":"出款信息","approval-mp_PaymentNumberCopy_Desc":"编号","approval-mp_PaymentTotalActualAmount_Desc":"{{tableName}}汇总-{{tableTitle}}","approval-mp_PlzShareOpinions_CardTitle":"{{name}}正在审批「{{approvalProcess}}」,需要你提供意见","approval-mp_PreviewModedata_Toast":"当前为预览效果,非实际数据","approval-mp_PreviewNoDetails_Toast":"预览数据暂不支持查看细节","approval-mp_PreviewNoExport_Toast":"预览数据暂不支持导出","approval-mp_PreviewNoPublish_Desc":"预览模式下填写的内容不会被发布","approval-mp_PreviewNotActual_Toast":"当前为预览效果,非实际数据 {{ViewActualData}}","approval-mp_PrintPreview_Title":"打印预览","approval-mp_ProceedSubmit_Button":"前往提交","approval-mp_ProcessAnalysis_Button":"流程分析","approval-mp_ProcessNotInUse_Switch":"已停用的流程","approval-mp_Processing_Tag":"处理中","approval-mp_Prompt_Desc":"提示","approval-mp_QuickText_Button":"常用语","approval-mp_ReadOnly_Tag":"只读","approval-mp_ReasonAPIError_Desc":"第三方 API 接口错误","approval-mp_ReasonIncompleteField_Desc":"表单字段值未编辑","approval-mp_ReasonNetworkTimeout_Desc":"网络超时","approval-mp_RejectAndSendToSubmitter_Desc":"拒绝至发起人","approval-mp_RejectToSubmitNode_Desc":"拒绝至","approval-mp_RejectToSubmitter_Desc":"拒绝至","approval-mp_Rejected_Placeholder":"已拒绝","approval-mp_RelatedEmployees_Title":"相关员工","approval-mp_RemindToApprover_Desc":"将以下提醒发送至 {{name}} 并跳转至与 Ta 的会话","approval-mp_RequestClaimed_Button":"已认领","approval-mp_RequestClaimed_CardTitle":"{name}认领了你发起的「{approvalName}」","approval-mp_RequestClaimed_Desc":"已认领","approval-mp_RequestExpired_CardButton":"已超时关闭","approval-mp_RequestFiltered_Toast":"已筛选相关审批单","approval-mp_RequestRejectedByName_CardTitle":"{{templateName}}被{{Name}}拒绝,请处理","approval-mp_RequestRejected_Desc":"审批被拒绝,请进入详情页面操作","approval-mp_RequestRestored_Toast":"已恢复","approval-mp_RequestSubmitByName_FileName":"{{requesterName}}发起的{{requestName}}{{requestID}}","approval-mp_RequestUnderReViewNoRepeat_Tooltip":"正在审批中,不可重复操作","approval-mp_RequesterEditedResubmit_Desc":"发起人{{user_name}}申请编辑 {{filename}},当前审批需再次提交","approval-mp_Required_Option":"必填","approval-mp_Reset_Button":"重置","approval-mp_RestoreBeforeMMDDYY_CardDesc":"{{year}}年{{month}}月{{day}}日前可手动恢复审批","approval-mp_RestoreBeforeMMDDYY_toast":"可在{{year}}年{{month}}月{{day}}日前 {{restoreThisRequest}}","approval-mp_RestoreBeforeMMDD_CardDesc":"{{month}}月{{day}}日前可手动恢复审批","approval-mp_RestoreBeforeMMDD_toast":"可在{{month}}月{{day}}日前 {{restoreThisRequest}}","approval-mp_RestoreExpiredRequest_CardDesc":"恢复后,审批单将继续流转,且后续该节点不再限时","approval-mp_RestoreExpiredRequest_CardTitle":"确认要恢复已超时关闭的审批单吗?","approval-mp_RestoreThisRequest_button":"恢复审批","approval-mp_Restore_CardButton":"恢复","approval-mp_Restore_CardButton_v2":"恢复审批","approval-mp_RetryQuickTextLoading_Desc":"加载中","approval-mp_RetryQuickText_Button":"立即重试","approval-mp_RetryQuickText_ErrorMessage":"加载失败,{{tryAgain}}","approval-mp_Retry_Tooltip":"重试","approval-mp_ReturnBatchImport_ExcelDesc":"编辑完成后,请返回审批,点击“批量导入”按钮进行导入。","approval-mp_ReturnForDataSyn_ExcelDesc":"编辑完成后,请返回{APP_DIS PLAY_NAME},以进行数据同步","approval-mp_ReturnReason_title":"退回原因","approval-mp_Revoke_Button":"确认撤回","approval-mp_RevokedSentBack_Desc":"确认撤回后,你需在编辑文档后再次提交审批,所有流程节点将重新审批","approval-mp_Revoked_Placeholder":"已撤销","approval-mp_RiskyLink_Title":"链接可能存在风险","approval-mp_RowContainError_ErrorMessage":"该行有 {{num}} 处待修改","approval-mp_RuleFromSmartProcess_Option":"原敏捷流程规则","approval-mp_RulesSetting_CardTitle":"规则设置","approval-mp_SaveOnceWithinThreeMin_Toast":"3 分钟内仅支持保存一次","approval-mp_SaveQuickText_Button":"保存","approval-mp_SearchByKeywords_Placeholder":"审批名称、内容、发起人、编号","approval-mp_SearchBySubordinateName_Placeholder":"搜下级","approval-mp_SearchCurrentStage_Placeholder":"搜索当前节点","approval-mp_SearchDocsPasteLink_Placeholder":"搜索文档名或粘贴文档","approval-mp_SearchForKeywords":"关键字","approval-mp_SearchForKeywords_Placeholder":"请输入关键字","approval-mp_SearchForRequetsSubordinates_Placeholder":"搜索下级姓名","approval-mp_SearchNoDetails_Placeholder":"搜索单据编号或关键字","approval-mp_SearchResultApprovalType_Desc":"仅展示搜索后的审批类型","approval-mp_Search_Button":"搜索","approval-mp_SeeOnlyApprovals_Desc":"仅看“{{name}}”的相关审批","approval-mp_SelectAdvisors_Placeholder":"请选择被征询人","approval-mp_SelectApprovalName_Placeholder":"请选择审批名称","approval-mp_SelectApprovalSources_Title":"选择来源系统","approval-mp_SelectApprovalTypes_Title":"选择审批类型","approval-mp_SelectApprovals_Title":"选择审批","approval-mp_SelectCurrency_Placeholder":"请选择币种","approval-mp_SelectDisplayFields_Title":"选择展示字段","approval-mp_SelectDocs_Button":"选择文档","approval-mp_SelectOrSearch_Placeholder":"请选择或搜索名称","approval-mp_SelectSource_Placeholder":"请选择","approval-mp_SelectSubmitter_Placeholder":"请选择提交人","approval-mp_SelectType_Placeholder":"请选择","approval-mp_Select_Placeholder":"请选择","approval-mp_SelectedMember_Desc":"已选:{{num}} 人","approval-mp_SentBack_Desc":"退回至","approval-mp_SetRuleConfirm_Button":"确定","approval-mp_SetRuleNoConfiguration_Desc":"该规则返回固定结果,无需额外配置","approval-mp_ShareApproval_Button":"分享审批","approval-mp_ShareNotSupported_Tooltip":"暂不支持分享第三方单据","approval-mp_ShareOpinions_Button":"填写审批意见","approval-mp_Share_Button":"分享","approval-mp_Share_Tooltip":"分享","approval-mp_ShiftGroupType1":"与他人换班","approval-mp_ShiftGroupType2":"与自己调班(两天对调)","approval-mp_ShiftGroupType3":"与自己换班(单日调班)","approval-mp_ShiftGroupType_Nopermission":"仅允许排班制员工换班,你所在考勤组为非排班制,无法申请换班","approval-mp_ShiftGroupType_Permission_Title":"无法换班","approval-mp_ShiftGroupV2_Detail":"换班明细","approval-mp_ShowAllSteps_Button":"其他审批中的节点","approval-mp_ShowOnlyBatchProcess_Desc":"只展示开启了批量处理功能的审批","approval-mp_SourceAll_Desc":"系统类型:全部","approval-mp_SourceNum_Desc":"来源系统:{{num}} 个","approval-mp_Source_Header":"来源系统","approval-mp_SpecifyCurrency_ExcelDesc":"请在下拉框选择金额币种,否则将导致校验不通过。","approval-mp_SpeedyApproval_FieldName":"是否秒批","approval-mp_StartDate_Placeholder":"开始日期","approval-mp_StartGroupChat_Title":"发起群聊","approval-mp_Status_FieldName":"状态","approval-mp_StepsHide_Button":"收起其他节点","approval-mp_StepsHide_Desc":"{num} 个节点同时审批,仅第 1 个节点需你审批","approval-mp_StepsShow_Desc":"{num} 个节点同时审批中,已收起无需你审批的节点","approval-mp_SubmitApplication_Button":"提交申请","approval-mp_SubmitApprove_Title":"提交/审批单据","approval-mp_SubmitDateTime_FieldName":"提交时间","approval-mp_SubmitDepartment_FieldName":"提交人部门","approval-mp_SubmitDesktopOnly_Desc":"此申请仅支持桌面端提交","approval-mp_SubmitExplained_Desc":"在“发起申请”中选择要提交的申请,审批人可在“审批中心”或者机器人消息中审批单据","approval-mp_SubmitGuide_Desc":"你可在“工作台 > 审批 > 发起申请”中提交该申请,使用说明已通过审批机器人发送,请注意查收","approval-mp_SubmitHere_Title":"在此提交{{application}}","approval-mp_SubmitMobileOnly_Desc":"此申请仅支持移动端提交","approval-mp_SubmitPersonTime_Desc":"{{userName}}提交于 {{submitTime}}","approval-mp_SubmitRequestWithDocsCopy_Title":"使用文档副本发起审批","approval-mp_Submit_Button":"立即提交","approval-mp_SubmittedBy_FieldName":"提交人","approval-mp_SubmittedDocOwnerChanged_Toast":"提交成功,文档所有权已转移至{{BRAND_DISPLAY_NAME}}","approval-mp_SubmitterView_Desc":"提交人视角","approval-mp_SubordinatesNameNum_Desc":"{{num}} 人","approval-mp_Subordinates_Desc":"相关下级:","approval-mp_Subordinates_Header":"相关下级","approval-mp_SysAutoGenerate_Placeholder":"提交后系统自动生成","approval-mp_SystemPrint_Button":"使用系统模板","approval-mp_TeamAbnormalDataTime_Title":"{{name}}团队审批异常数据明细({{time}}-{{time}}","approval-mp_TeamDetaisFailedRetry_Desc":"你的团队在 {time}的明细数据生成失败,可前往应用内重新导出","approval-mp_TeamLastMonthGenerated_Desc":"{name}的团队在 {time}的明细数据已生成,点击可立即查看","approval-mp_TemplateCreateNew_Button":"新建流程","approval-mp_TerminatedProcess_Switch":"已终止的流程","approval-mp_Terminated_Desc":"终止","approval-mp_Terminated_Placeholder":"已终止","approval-mp_Terminated_Tag":"已终止","approval-mp_ThisDeleted_Desc":"该单据已被删除","approval-mp_ThisFormatNotYet_Toast":"{{fileType}} 类型暂不支持上传","approval-mp_ThisHasBeenDeleted_Desc":"该单据已被管理员删除","approval-mp_ThisaRequiredField_Toast":"{{WidgetName}}为必填项","approval-mp_ThreeCannotDisplay2_Tooltip":"日期控件、明细/表格控件、控件组","approval-mp_ThreeCannotDisplay_Tooltip":"暂不支持选择以下控件:","approval-mp_ThreePersonConversation_Desc":"将创建你和 {{name}}、{{name}}、{{name}} 的群聊,并发送以下提醒","approval-mp_ThreeToDisplay_Tooltip":"当前表单只有 {{num}} 个可配置字段","approval-mp_Title":"【重要抄送】{Person}提交的「{var}」抄送给你","approval-mp_TitleName_Title":"标题","approval-mp_TwoPersonConversation_Desc":"将创建你和 {{name}}、{{name}} 的群聊,并发送以下提醒","approval-mp_TypeAll_Desc":"审批类型:全部","approval-mp_TypeNum_Desc":"审批类型:{{num}} 类","approval-mp_Type_Header":"审批类型","approval-mp_TypeofRequest_Desc":"申请类型","approval-mp_UnableBatchProcess":"暂无可批量处理的单据","approval-mp_UnableLoadRetry_Desc":"加载失败,<1>点击重试</1>","approval-mp_UnableToCreateDetailTable_Tooltip":"创建明细表格失败,请重试","approval-mp_UnableToImportDataConfiguring_Tooltip":"配置{{externalData}}的明细不支持批量导入","approval-mp_UnableToImportExcelLastModifiedTime_CardDesc":"{{mm}}月{{dd}}日 {{HH}}:{{nn}}","approval-mp_UnableToImportExcelLastModified_CardDesc":"最近修改:","approval-mp_UnableToImportExcel_CardButton":"重试","approval-mp_UnableToImportExcel_CardTitle":"导入失败","approval-mp_UnableToRestore_toast":"恢复失败,请重试","approval-mp_UnmarkNormalCCTips_Desc":"取消后,单据将作为普通的抄送推送给被抄送人","approval-mp_UpToTwentyQuickText_Tooltip":"最多添加 20 条","approval-mp_UpdateForLatestExp_Desc":"建议更新{{APP_DISPLAY_NAME}},体验新版打印","approval-mp_UpdatedFormPageRefresh_toast":"表单内容有更新,即将刷新页面","approval-mp_Upload30Max_Desc":"上限 {{count}} 个文件,最大 {{size}} MB/个","approval-mp_Upload30Max_Tooltip":"最多可上传 {{count}} 个文件","approval-mp_UploadFailedRetry_Desc":"上传失败,请重试","approval-mp_UploadFiles_Button":"上传文件","approval-mp_UploadingWait_Desc":"文件上传完毕后将自动提交","approval-mp_Uploading_Desc":"上传中...","approval-mp_UseCommas_ExcelDesc":"多个选项值请以“,”号隔开,否则将导致校验不通过。","approval-mp_UsedNum_Desc":"{{num}} 次使用","approval-mp_VideosSavedHere_Tooltip":"视频已收起,可在此随时查看","approval-mp_ViewActualData_Link":"查看实际数据","approval-mp_ViewAllLines_Button":"查看全部 {num} 行","approval-mp_ViewData_Tab":"数据管理","approval-mp_ViewDetailsInApp_Desc":"可点击进入应用内获取明细数据","approval-mp_ViewDetails_Button":"查看详情","approval-mp_ViewDiagnosis_Title":"查看效率诊断","approval-mp_ViewDownloadedPDF_Button":"查看","approval-mp_ViewExportedContentDetails_Desc":"你可在此查看导出记录及进度","approval-mp_ViewExportedDetails_Title":"查看导出记录","approval-mp_ViewNow_Button":"立即查看","approval-mp_ViewProgress_Button":"查看进度","approval-mp_View_Button":"去查看","approval-mp_View_FieldName":"详情","approval-mp_Visibility_ICUcontent":"显隐","approval-mp_VisitSmartProcessConfigure_Desc":"你可前往{{SmartProcessRulesPlatform}}配置审批规则","approval-mp_WaitingUpload":"等待上传","approval-mp_WantToApply_Desc":"想要提交申请?","approval-mp_WatchVideosKnowApproval_Title":"看视频快速了解飞书审批","approval-mp_WidgetsFromV1_ICUcontent":"含 V1 控件","approval-mp_Yes_Button":"确认","approval-mp_YouCanEdit_Toast":"撤回成功,当前审批文档可编辑","approval-mp_YourTeamLastMonthGenerated_Desc":"你的团队在 {time}的明细数据已生成,点击可立即查看","approval-mp_help_Button":"帮助","approval-web_ExpiredNClosed_Desc":"超时未处理,自动关闭","approval-web_ExpiredNClosed_Tooltip":"超时未处理,已被系统自动关闭。","approval-web_Expired_Tag":"当前审批已处理,无需拉群沟通","approval-web_Keywords_Desc":"关键字","approval-web_Keywords_EmptyState":"请输入关键字","approval-web_LoadMore_Button":"查看更多","approval-web_Loading_Desc":"加载中","approval-web_NoResultsFound_Desc":"没有找到相关结果","approval-web_NoResultsFound_EmptyState":"没有找到搜索结果","approval-web_ProcessASAPClosed_Desc1":"请尽快处理,否则将于{{month}}月{{day}}日自动关闭","approval-web_ProcessASAPClosed_Desc2":"请尽快处理,否则将于{{year}}年{{month}}月{{day}}日自动关闭","approval-web_RefineSearch_Desc":"加载数据过多,请精准输入","approval-web_SearchBuilding_Placeholder":"搜索","approval-web_SearchDate_Placeholder":"搜索","approval-web_Searching_EmptyState":"搜索中...","approval-web_SingularRequestWaitResponse_Tooltip1":"该申请已等待超{{dayCount}}天,请尽快联系审批人处理,否则将于{{year}}年{{month}}月{{day}}日自动关闭","approval-web_SingularRequestWaitResponse_Tooltip2":"该申请已等待超{{dayCount}}天,请尽快联系审批人处理,否则将于{{month}}月{{day}}日自动关闭","approval-web_TryAgain_Desc":"请重试","approval-web_UnableLoadTryAgain_Desc":"加载失败,请重试","approval-web_UnableLoadTryAgain_EmptyState":"选项加载失败,请重试","approval-web_UnableLoad_EmptyState":"加载失败,",approvalForm:{ApprovalDeletedHint:"无法提交,该审批已删除",ApprovalDisabledHint:"无法提交,该审批已停用",Approvers:"审批人",CCTo:"抄送",PleaseFillInAddress:"请完整输入{{name}}",Submit:"提交",WaitForUploading:"请等待上传完毕",dateRangeIsNotClosed:"{{startName}}{{endName}}必须填写完整",dateRangeTip:"必须晚于",department:"所在部门",fillNumber:"请输入数字",instead:"(由 {{name}} 代提交)",insteadSubmit:{cancel:"取消代提",chooseOther:"代他人提交",label:"提交人"},insteadSubmitter:{chooseNoPermission:"{{name}} 无权限申请此审批",chooseNoPermissionContent:"请联系管理员 {{manager}} 处理,或重新选择提交人",chooseTitle:"选择代谁提交",chooseTitlePc:"请选择代谁提交",chooseUserTip:"请搜索人员姓名"},pleaseFill:"请输入",requestOk:"提交成功"},approval_count:"已审批单量",approval_count_bot:"已审批单量N 单","approval_document_trusteeship_multi-lingual_NoWidgetTypeForBatchImport_Tooltip":"暂无支持批量导入的控件类型",approval_head_1:"1月份审批效率总结报告",approval_head_10:"10月份审批效率总结报告",approval_head_11:"11月份审批效率总结报告",approval_head_12:"12月份审批效率总结报告",approval_head_2:"2月份审批效率总结报告",approval_head_3:"3月份审批效率总结报告",approval_head_4:"4月份审批效率总结报告",approval_head_5:"5月份审批效率总结报告",approval_head_6:"6月份审批效率总结报告",approval_head_7:"7月份审批效率总结报告",approval_head_8:"8月份审批效率总结报告",approval_head_9:"9月份审批效率总结报告",approval_message_ContinueEditingBrowser_CardDesc:"前往电子表格继续编辑",approval_message_RoundingAmount_ExcelDesc:"金额导入后会有四舍五入导致明细表格和电子表格不一致的情况",approval_mp_EligibleApproval_plural_Desc:"你的{{scope}}存在 {{num}} 条符合条件的审批",approval_mp_SearchKeyword_Decs:"申请名称、发起人、编号、正文内容、评论",approval_preview:{description:"打开手机飞书,扫描二维码预览审批流程 ",permission_warning:"为了保证流程预览完整,正式使用时不可编辑的控件在预览时将允许编辑",title:"{{name}}预览",userGroup_deleted:"“用户组已删除”"},approval_print:{Add_watermark:{Approval_QRcode:"{{BRAND_DISPLAY_NAME}} app 扫码",Approval_deteled:"已删除",Approval_passed:"已通过",Approval_pending:"审批中",Approval_rejected:"已拒绝",Approval_revoked:"已撤销"}},approval_project_ApprovalData_Menu:"审批数据",approval_summary_1:"N月份你的平均审批耗时落后同部门X%审批人",approval_summary_2:"N月份你的平均审批耗时领先同部门X%审批人",approval_task_time:"审批平均耗时",approval_task_time_bot:"审批平均耗时N 小时",approval_timeout_rate:"审批超时率",approval_tips_bad:"请注意效率",approval_tips_good:"请继续保持",approval_transfer_rate:"代批率",approval_view_detail:"查看待改善流程",approver:"审批人",block_enter_for_approval:"进入审批",bottitle:"N月团队审批效率总结月报",budget:"业务预算","candidate_search_no-result":"没有找到结果",common:{amount:"{{count}} 张",go_update:"去升级",please_update_greater_or_equal:"请将{{BRAND_DISPLAY_NAME}}版本升级到 {{version}} 及以上"},contract:"合同中心",create_approval:{form_group:{workGroup_Type_change:"调休",workGroup_Type_overtimePay:"加班费"},preview:"预览",process_cannot_preview:"自由流程无法预览"},create_group_tips:"由于单据信息敏感,拉群后,审批流程外人员无法访问单据详情",create_tips2:"创建成功",detail:{no_permission:"没有单据权限"},detailDoc:"详见文档",document:"https://bytedance.feishu.cn/docs/doccnspW34TKs4THdOAwfR16tTh#",efficiency_bot_admin1:"N 月份公司整体审批效率总结月报",efficiency_bot_admin10:"“xxx”的完成率最低",efficiency_bot_admin11:"“xxx”的流程平均耗时最差",efficiency_bot_admin12:"“{{user}}”的审批平均耗时最长",efficiency_bot_admin13:"“xxx”的超时待办单据最多",efficiency_bot_admin14:"“xxx”部门下审批人处理审批的平均耗时最久",efficiency_bot_admin2:"N 月份审批流程效率总结月报",efficiency_bot_admin3:"流程完成率",efficiency_bot_admin4:"流程平均耗时",efficiency_bot_admin5:"任务平均耗时",efficiency_bot_admin6:"等待超48小时待办",efficiency_bot_admin7:"建议关注以下事项",efficiency_bot_admin8:"当前仅支持在桌面端查看",efficiency_bot_admin9:"请前往桌面端操作",emptyCC:"暂无未读抄送内容",emptyCreated:"还没有已发起内容",emptyUpcoming:"赞!你已处理完所有待办",enableBadge:"展示应用角标",failToSwitchBadge:"切换角标展示失败",feishu:"飞书",feishu_lark:{ApprovalEfficiency:{"PC_Efficency_label-1":"请使用{{feishu}}移动端扫码查看",lowVersion:"因{{feishu}}客户端版本过低,无法查看此页面,请先升级",updateFeishu:"前往升级{{feishu}}"},CreateList:{CustomCreateModal:{Content:"为提升公司内审批的规范性,在{{feishu}}审批系统中新建审批时,需要经过直属上级与内控团队审核,审核通过后审批才可以启用。详情可查看",ContentLink:"「{{feishu}}审批创建申请」"}},OnBoarding:{OpenWindowTips:"点击可以独立窗口打开{{feishu}}审批"},PC:{LowVersionTip:"因{{feishu}}客户端版本过低无法打开单据详情,点击去",UpgradeBtn:"升级{{feishu}}客户端"},Print:{qrCodeTips1:"使用手机{{feishu}}",qrCodeTips3:"{{feishu}}扫码查看"},Signature_scan:"手机{{feishu}}扫码签名",approval_preview:{description:"打开手机{{feishu}},扫描二维码预览审批流程"},approval_print:{Add_watermark:{Approval_QRcode:"{{feishu}}app扫码"}},common:{please_update_greater_or_equal:"请将{{feishu}}版本升级到 {{version}} 及以上"},title:"整体上,你对「{{feishu}}审批」是否满意",widgets:{cloudDoc:{edit:{submit:"文档所有权已转移给{{feishu}}审批"},search:{ownertip:"提交审批后,文档所有权会转移给审批,你可创建副本提交"},view:{please_update_app:"因{{feishu}}版本过低无法查看云文档,点击去",please_update_greater_or_equal:"因{{feishu}}版本过低无法查看云文档,请升级到 {{version}} 及以上"}}}},force:{update:{button:"点击升级",desc:"请升级至最新版本",title:"您的{{APP_DISPLAY_NAME}}版本过低,无法查看"}},form:{account:{acccountNamePlaceholder:"收款人姓名",acccountNamePublicPlaceholder:"请输入收款单位名称",acccountNumberPlaceholder:"收款人账号",acccountNumberPublicPlaceholder:"请输入收款单位账号",accountName:"户名",accountNamePlaceholder:"请输入收款人姓名",accountNumber:"账号",accountNumberPlaceholder:"请输入收款人账号",accountType:"账户类型",add:"添加账户",bank:"银行",bankBranchSearch:"请搜索支行名称查询",bankLocation:"银行所在地区",continueEdit:"继续编辑",deleteAccount:"删除账户",deleteAccountMessage:"确定删除账户吗?删除后不可恢复",deleteAccountPcMessage:"删除「{{account}}」账户后不可恢复",deleteAccountPcTitle:"确定删除账户?",donotsave:"不保存",editAccount:"修改账户",goback:"直接退出",locationPlaceholder:"请选择(请尽量填写确保付款成功)",mockTip:"预览时,不支持查看他人已添加的账户信息",name:"收款账户",noAccount:"暂无可选项,请先添加账户",noSearchResult:"没有找到相关结果",nodata:"未找到搜索内容",pcAddressPlaceholder:"搜索城市名 (请尽量填写确保付款成功)",personalAccount:"个人账户",pleaseSelectFirst:"请先选择{{name}}",publicAccount:"对公账户",remark:"备注",remindSave:"当前修改未保存",remindSaveMessage:"返回后将不会对本次修改进行保存",remindSaveMessagePc:"关闭后本次内容将不会被保存",searchBank:"搜索银行",searchFooterText:"若未查询到结果,试试精确搜索关键字",searchSubBank:"搜索银行支行",selectBank:"选择银行",selectSubBank:"选择银行支行",subBank:"银行支行"}},formAddress:{LocatingFailed:"定位失败",LocatingHint:"定位中......",LocationOffContent:"打开定位权限,自动定位到当前所在位置",LocationOffTitle:"定位服务关闭",SelectDistrict:"选择地区",SystemLocationOff:"定位失败,请开启定位服务"},formApprovers:{Add:"添加",MergeSameApproverHint:"已合并相同的审批人",NotDuplicated:"请勿选择相同的审批人",NotSelf:"请勿选择自己"},formAttachment:{AddButton:"添加附件",AttachmentCount:"{{count}} 个附件",AttachmentCount_plural:"{{count}} 个附件",OversizeHint:"附件大小不能超过 50MB",UnavailableFileType:"只支持word、excel、ppt及pdf文件",maxCount:"最多只能选 9 个附件",nonsupportFormatHint:"暂不支持该类型的文件"},formContact:{FailOnChoose:"选择{{name}}失败",FailOnChooseContact:"选择联系人失败"},formFieldlist:{Summary:"汇总",add:"添加明细",delete:"删除"},formImage:{ImageCounts:"{{count}}个图片",OversizeHint:"图片大小不能超过 10MB",OversizeHintNew:"图片大小不能超过 50MB",maxCount:"最多只能选 9 张图片"},formSelectDate:{am:"上午",hour:"时",minute:"分",pm:"下午"},form_widget_editor:{amount:{unit_options:{max_support_warning:"最多只支持输入 {{n}} 位小数位数"}},leave_group:{leave_group_end_time:"结束时间",leave_group_start_time:"开始时间"}},form_widget_viewer:{leave_group:{end_time:"结束时间",start_time:"开始时间"},out_group:{end_time:"结束时间",start_time:"开始时间"},remedy_group:{remedy_date:"异常日期",remedy_time:"补卡时间"},trip_group:{end_time:"结束时间",start_time:"开始时间"},work_group:{date_category:"日期类型",end_time:"结束时间",start_time:"开始时间"}},geren:"个人审批效率月报: yyyy-mm ",geren001:"你在处理「xx流程」时的效率落后于同部门 n%审批人,可试着分析是否有优化空间",geren0010:"建议关注",geren002:"公司要求审批人本人处理单据,非休假期间请尽量不委托他人代批",geren003:"对数据有疑问?点击这里",geren004:"查看我的详细数据",gerenshuoming:"N 月份你的审批效率数据如下",good_reason:"满意的原因是?",guide:{tooltip:{editApproval:"编辑该审批的表单、流程等设置"}},header:{add_approval:"发起审批",search_placeholder:"搜索任务主题、申请人、编号",tabs_index:"审批中心"},introduce:"风险说明","invte group":"发起群聊中","join group":"加入群聊中",key_value:"{{key}}{{value}}",keytest:"test",lark:"Lark",list:{approval_agreed:"已通过",approval_all_read:"全部",approval_all_status:"全部状态",approval_canceled:"已撤回",approval_delete:"已删除",approval_no_more:"暂无更多数据",approval_no_searchlist:"暂无审批",approval_only_unread:"只看未读",approval_pending:"审批中",approval_read:"仅看已读",approval_read_list:"已读",approval_reject:"已拒绝",approval_status:"审批状态",approval_terminated:"已终止",approval_timeover:"已超时",approval_unread:"未读优先",approval_unread_list:"未读",card_agent:"代理",card_combina_creater:"发起人:",card_create_time:"发起时间 {{time}}",card_handle_time:"处理时间 {{time}}",card_pre_approve:"助审",card_pre_approve_success:"已助审",card_reach_time:"到达时间 {{time}}",click_get_more:"点击加载更多",filter_early_create:"最早发起优先",filter_early_handle:"最早处理优先",filter_new_handle:"最新处理优先",filter_reach_fisrst:"最新到达优先",filter_read_all:"查看全部",filter_waiter_first:"最久等待优先",filtet_new_create:"最新发起优先",get_list_again:"重新加载",get_list_error:"加载失败",mark_all_read:"是否将{{count}}条未读抄送,标记成已读",mark_all_readed:"是否将全部未读抄送,标记成已读",mark_read_cancel:"取消",mark_read_ok:"标记为已读",mark_unsupport_count:"还有{{count}}条审批,不支持一键已读,需手动查看","overdue_Capital loss":"资金损失",overdue_Details:"说明风险详情,给审批人更多决策信息",overdue_PR:"公共关系",overdue_aging:"审批时效建议\n建议该申请在XXXX年X月X日前全部完成审批否则会有“XXXX”风险。",overdue_bot:"截止到目前X条待办未处理其中X条超期审批有风险X条已等待超过24小时",overdue_description:"超期审批风险说明",overdue_description1:"若对审批完成时间有明确预期,可填写该项,并选择超期审批的风险,以便审批人了解相关影响。更多说明",overdue_description2:"请填写风险类型",overdue_effectiveness:"已落后部门N%的审批人",overdue_legal:"法律纠纷",overdue_other:"其他","overdue_reminder time":"建议审批完成时间",overdue_reminder1:"超期审批有“{{risks}}”风险",overdue_reminder2:"若X月X日前未完成全部审批有“XXXX”风险",overdue_risk:"超期审批风险",overdue_time:"建议全部审批完成时间",search_tips_key:"搜索与{{searchKey}}相关的审批",search_tips_label:"按Enter(回车)键",time_all:"所有时间",time_custome:"自定义时间范围",time_days:"最近24小时",time_filter:"时间筛选",time_month:"最近30天",time_threedays:"最近3天",time_week:"最近7天",tooltip:{display_rule:"展示规则",mark_all_read:"全标已读",sort:"排序"}},loadFailedClickRefresh:"加载失败,点击刷新",loginFailedTips:"登录失败,请点击重试","mp_admin_Toast-1":"无停用权限,请向管理员申请","mp_admin_Toast-2":"无删除权限,请向管理员申请",network_error:"加载失败,请检查网络后重试",new_Add_12:"可进入看板内获取明细数据",new_add_001:"你在处理「xxx」时的效率落后于同部门 N % 审批人",new_add_002:"你有 N 个任务超 48 小时才被处理,请查看明细数据,分析是否有优化空间",new_add_003:"你有 N 个任务由他人代批完成,公司要求审批人本人处理单据,请尽量不委托他人",new_add_004:"查看诊断结果",new_add_005:"查看明细数据",new_add_0061:"获取明细数据",new_add_07:"审批耗时明细数据已生成",new_add_08:"你在近 14 天的审批耗时明细数据已生成,点击可立即查看",new_add_09:"你在近 30 天的审批耗时明细数据已生成,点击可立即查看",new_add_10:"你在上个月的审批耗时明细数据已生成,点击可立即查看",new_add_11:"你在上上个月的审批耗时明细数据已生成,点击可立即查看",new_add_111:"是否超48小时审批",new_add_112:"立即查看",new_add_11221:"是否由他人代批",new_feature_guide:{i_know:"我知道了",operate_modify:{content:"你可以修改审批单啦!如有需要,试试点击这里修改。"}},not_good_reason:"不满意的原因是?",notice:"N小时内完成审批才不会落后团队","notice10-15":"你过去处理此类流程的速度慢于他人",notice111:"工作一天辛苦了,不让审批过夜,能有效提高 xx 团队的整体审批效率",notice2:"N分钟内完成审批才不会落后团队",notice_bot:"你过去处理此类流程的速度慢于他人",notify:"抄送人","overdue risk":"超期风险",overtime:"加班",panel:{close:{window:"关闭独立窗口"},open:{window:"在独立窗口中打开"},robot:"机器人",setting:"设置"},picker:{configRole:"配置角色",configUserGroup:"配置用户组",departmentCount:"{{count}} 个部门",departmentHeadCount:"{{count}} 个主管",jumpToAdmin:"跳转{{BRAND_DISPLAY_NAME}}管理后台",menberCount:"{{count}} 名成员",noSearchResult:"未查询到相关结果",organization:"组织架构",refresh:"刷新",roleCount:"{{count}} 个角色",searchRole:"搜索角色名称",selectCreator:"选择发起人",selectUserGroup:"选择用户组",supervisorCount:"{{count}} 个部门负责人",userGroupCount:"{{count}} 个用户组"},popup:{Off:"取消",Ok:"确定"},"process limit":"全流程时限",project:"立项申请",public_expenditure:"对共支出",purchase:"采购中心",reason1:"功能缺失,不满足需求",reason11:"功能满足需求",reason2:"系统加载慢或不稳定",reason22:"系统稳定",reason3:"重点信息不突出",reason33:"能快速获取重点",reason4:"单据内容展示不够美观",reason44:"界面美观",reason5:"其他",reason55:"其他",reimbursement:"员工报销",rejectCheckTitle:"确认拒绝{{name}}吗?拒绝后,原审批单依然有效",remedyGroupV2:{addGroup:"添加记录",canRemedyTimes:"可补卡时间:",pleaseReChooseRemedyTime:"请选择正确的补卡时间",recordIndex:"记录",remedyNumForMonth:"{{name}}在{{time}}已累计补卡 {{count}} 次",remedyTimeOverRange:"补卡时间超出可选范围",shouldNotRemedy:"当前日期考勤正常,无需补卡"},requestFailedTips:"数据出错,请稍后重试",requestNoneTips:"暂无数据",risk:"有“资金损失、法律纠纷、公共关系”等风险",scope:{camera:"相机/相册",userLocation:"地理位置"},search:{all:"全部下级",ccSomeone:"已抄送 {{user}}",confirm_num:"确定({{num}})","filter-person":"筛选员工","filter-selected":"已选","filter-sub-person":"筛选下级",from_and_nav:"来自 {{user}} 的{{nav}}",open_detail:"打开单据详情","search-person":"请搜索查找员工","search-sub-person":"可搜索查找所有下级",search_all_sub:"查看范围已筛选为「全部下级」",selectedText:"已筛选:","staff-reset":"恢复默认",staff_num:"{{num}} 条员工的审批",staff_placeholder:"可搜索所有下级",sub_detail_tip:"该系统暂不支持上级查看下级的审批单,你可能无权限查看此单据,可联系发起人 {{user}}",sub_num:"{{num}} 条下级的审批",submittedBy:"{{name}} 提交",view:"查看",view_range:"查看范围",view_range_num:"等 {{num}} 人",view_staff_num:"相关推荐:{{num}} 条员工的审批",view_staff_recommend:"相关推荐:",view_sub_num:"相关推荐:{{num}} 条下级的审批",view_v2:"查看详情",whoesTask:"{{user}} 的{{topic}}"},searchBox:{search:"查找",searchTip:"在当前页面内查找"},search_tips:"加载中",share_tips:"分享成功",share_tips_1:"一次最多转发n个会话",share_tips_100:"为降低信息安全风险,不支持分享到超过 100 人的群聊",submit_attendance_seal_check:"{{name}}{{month}}月{{day}}日及之前的考勤数据已封存,无法提交,如有需要可申请解封",team:"查看团队效率详情",team001:"团队审批效率月报: yyyy-mm",team002:"团队审批平均耗时趋势",team003:"查看团队详细数据",team_0001:"@张三 的团队审批效率相对较差",team_0002:"@张三 的团队审批效率连续两周期垫底",team_0003:"@张三 的团队代批率最大10%),共 N 人有代批行为",team_0004:"@张三 的团队秒批率最大10%),共 N 人有秒批行为",team_0005:"@张三 的团队审批效率相比上周期明显变差",timeline:{cc_desc:"添加了抄送",comment_desc:"添加了评论",node:{handled:"已办理",handler:"办理人"},pass:"已通过",redirect_desc:"添加了转交",start_approval:"发起审批"},tips_1:"无法加入群聊",title:"整体上,你对「飞书审批」是否满意",todo:"N 条待办未处理",update_version_text:"新版本重启中",vocation:"请假",warning:"温馨提醒",widgets:{cloudDoc:{docxTip:"暂不支持 DocX 文档展示,你可前往浏览器查看",edit:{add:"添加文档",choose:"选择文档",copyFail:"创建副本失败",copyTitle:"-审批版",copy_auth_setting:"复制链接需要你授予小程序剪切板权限才能正常使用,是否去设置开启?",copy_link_error:"复制链接失败",copy_link_success:"复制链接成功",copying:"创建副本中...",deleted:"文档被删除,请重新添加",lastUpdate:"最后更新于",permissionCheck:"文档权限确认中",remove:"删除文档",should_choose_docs:"请先添加文档",submit:"文档所有权已转移给飞书审批"},gotoBrowser:"前往浏览器查看",search:{addByCopy:"使用副本添加云文档",addbutton:"使用原文档添加",checkboxToast:"仅文档所有者可使用原文档添加",checkboxTooltip:"支持使用原文档或副本添加,仅文档所有者可使用原文档添加",concat:"仅支持文档所有者添加,请联系所有者 $$ 为你开通创建副本的权限",copy:"文档所有者可使用原文档添加",copybutton:"创建副本添加",empty:"没有查找到相关文档,请重新输入",error:"请输入正确的文档链接",owner:"所有者",ownertip:"提交审批后,文档所有权会转移给审批,你可创建副本提交",placeholder:"搜索文档名称或粘贴链接",tip:"搜索文档名称或粘贴链接进行添加"},view:{copy_link:"复制链接",hide:"收起",open_up:"展开文档",pack_up:"收起文档",please_update_app:"因{{BRAND_DISPLAY_NAME}}版本过低无法查看云文档,点击去",please_update_greater_or_equal:"因{{BRAND_DISPLAY_NAME}}版本过低无法查看云文档,请升级到 {{version}} 及以上"}},cloudDocBlock:{disableResubmitTip:"文档中发起的审批不支持再次提交",disableRollbackTip:"文档中发起的审批暂不支持退回",version:"文档版本",versionTip:"当前为文档最新版本,可在历史记录查看审批版本",viewLatest:"查看最新版本"}},withdrawAndResubmit:"暂不支持修改审批中的申请",work_rule:{editor:{approval_rule:"计算方式",restday:"休息日",special:"节假日",workday:"工作日"}},"写死在代码里无需key":"仅多人竞签节点可使用,认领后,任务由认领人稍后处理,其余竞签人无法再审批"}},function(e,t,a){"use strict";a.r(t),t.default={1:"N月、あなたの承認の平均時間は同部門の80%の承認者より遅れているので、改善すべきフローに集中して効率を高めてください",111:"承認にかかる平均時間の傾向",1111222:"承認にかかる平均時間の傾向",12312334:"提出",AM:"午前",ActionSuccessful:"操作完了しました",AddTask:{AddPostApproverHint:"承認者が追加されると、現在のプロセスは自動的に処理され、新たに追加された承認者に送られます",AddReason:"理由",AddReasonNew:"追加理由",AddReasonPlaceholder:"理由を入力",AddingMethod:"追加位置",ApprovalMethod:"承認タイプ",DetailDesc:"追加した承認者:{{involvedUserList}}",DupApproverInCurrentNode:"一部の選択されたユーザーは既にこのステップの承認者です",Fail:"承認者を追加できませんでした",NextStep:"次へ",PleasePick:"選択してください",PleaseSelect:"選択してください",Success:"追加されました"},AddressPicker:{AbortLevel:"後で",ChooseCity:"都市を選択してください",ChooseCountry:"国と地域を選択してください",ChooseDistrict:"地区を選択してください",ChooseHistoryList:"以前の選択",ChooseProvince:"地域を選択してください",ChooseRegion:"地域を選択してください",ConfirmDeleteHistory:"履歴を削除しますか?",FailOnQueryStaticFile:"該当データを取得できませんでした。再試行してください",HistoryClear:"クリア",LevelPlaceholder:"選択してください",MainlandTitle:"現在の地域",OnlySupportSearchingChina:"現在、中国本土のみの検索に対応しています",OnlySupportSearchingChinaPC:"中国本土のみの検索に対応",OtherTitle:"他の国と地域",PleaseSearchOrSelect:"検索または選択してください",TitleOfHistoryList:"履歴",TitleOfMainlandHotList:"よく使われる都市",TitleOfOtherHotList:"よく使われる国と地域"},Address_PreLocateFail:"自動測位失敗。",AdjustRequesterStyle:{ProxyBy:"{{name}} 代理提出",SubmittedBy:"{{name}}提出"},AdminDeleted:"この承認は削除されました",AdminGuide:{Effect:"オンライン分析で承認効率向上",Free:"承認ワークフローの構成に移動",GoPC:"パソコン側のワークベンチへ進んで承認を開き、管理バックグラウンドにて3分で承認作成を体験することができます。",Kanban:"個人、チームの視点での効率看板を提供し、企業の効率診断を支援します。",MultiDevices:"モバイル、パソコン、タブレット端末でリアルタイムに承認を処理し、承認の即効性を確保できます。",OneDay:"休暇/精算/支払い/出張など、企業に必要なプロセスをスピーディーに有効化できます。",OutOfBox:"即座に使える豊富なテンプレート",Quick:"多種端末同期でいつでも処理が可能",Title:"ワンストップで効率的な承認プラットフォーム"},AdminName:"管理者",AdminPreview_Go_Flow_Chart:"フローチャートを表示",AdminPreview_Imitating:"模擬申請者:{{name}}",AdminPreview_More_Questions:"ご不明な点がございましたら、ヘルプセンターをご覧ください",Admin_ModifyNotice:"現時点では、一部の承認書類は修正に対応していません。",Admin_ModifyOnce:"休暇取消などの場合、従業員は通過した承認の修正を申請できます1回のみ修正でき、構成前に通過した承認は修正できません",AfterSigning:"後段階承認者",AgreeWhenRepeated:"既に承認されました。再承認の必要はありません",Agreed:"承認済み",Apaascorehr_AlreadyHavePhoneNumber:"この携帯番号は既に {{status}} の従業員に使用されています。チェックしてください",Apaascorehr_AlreadyKnown:"了解",Apaascorehr_AppInactive:"この承認を利用できません。管理者に連絡してください",Apaascorehr_Disabled:"この承認は一時的に利用できません。管理者に連絡してください",Apaascorehr_EffectDateNotEarlierThanToday:"有効日は今日より早いです",Apaascorehr_EmployeeNoNeedToReapply:"申請者は退職申請を送信しましたので、再度申請する必要がありません",Apaascorehr_EmployeeStatusNotAllowResignation:"申請者は退職待機または退職しましたので、退職を申請する必要がありません",Apaascorehr_FailToFetchInfoContent:"読み込みできませんでした。クリックして再読み込みしてください",Apaascorehr_FailToFetchInfoTitle:"読み込みできませんでした。再試行してください",Apaascorehr_InvalidPhoneNumber:"無効な携帯番号です",Apaascorehr_NoFormItemValue:"なし",Apaascorehr_NoItem:"{{title}}なし",Apaascorehr_OffboardingDateNotEarlierThanOnboardingDate:"退職日付は入職日付より早いです",Apaascorehr_PleaseChooseApplicant:"申請本人を選択してください",Apaascorehr_RegularateDateNotEarlierThanOnboardingDate:"本採用日付は入職日付より早いです",Apaascorehr_Reload:"再読み込み",Apaascorehr_UnexpectedAdjustedManager:"申請者本人および部下を上司に設定できません",Apaascorehr_UserConversionApplyed:"試用期間ではないため、申請する必要がありません",Apaascorehr_UserConversionApplying:"既に正社員登用申請を送信しましたので、再度申請する必要がありません",Apaascorehr_UserNotFound:"ユーザーが存在しません",Apaascorehr_VerifyNetworkError:"システムエラーです。後ほど再試行してください",Api:{TaskNotPending:"承認ステータスが変更されています。承認書類に入り直して再度操作してください",networkErrorPleaseResubmit:"Network anomalies, please try again"},AppName:"承認",AppNameInFeishu:"Feishu 承認",AppShare:{Fail:"共有できませんでした",Success:"共有しました",Title:"{{subject}}は簡単で効果的な承認ツールです"},Approval:{Ceo:"CEO",CeoDone:"CEOの処理済み",CeoTodo:"CEOの処理待ち",CopyMe:"自分にccする承認",Done:"処理済み",Mine:"本人",MyDone:"自分の処理済み",MySubmitted:"自分の提出した承認",MyTodo:"自分の処理待ち",Shared:"会話から",Ta:"Ta",TaDone:"Taの処理済み",TaTodo:"Taの処理待ち",Todo:"処理待ち",ViewMore:"さらに"},ApprovalDesc:"{{userName}}が開始した「{{defName}}」",ApprovalEfficiency:{AfterRate:"{{rate}}の同部門の承認者を下回ります",AgencyLink:"「会社承認者の執行要求」制度の入り口",AgencyRate:"代行承認率",AgencyRateDecreaseAlert:"{{time}}内に、{{title}}が減少しています。チームの承認者に必要がない場合は自分で承認を行うように注意してください",AgencyRateIncreaseAlert:"{{time}}内に、{{title}}が増加しています。チームの承認者に必要がない場合は自分で承認を行うように注意してください",AgencyRateStableAlert:"{{time}}内に、{{title}}は安定しています。チームの承認者に必要がない場合は自分で承認を行うように注意してください",AgencyRateText:"代理承認率",AgencySteady:"{{time}}、代理承認率が全体的に安定しています。その調子で続けてください。なるべく代理承認を使わずに、本人で申請書を処理してください。",AheadGroup:"部署の {{rate}} の承認者より低い",AllAverageTime:"全体の平均所要時間",ApprovalPerson:"承認者",ApprovalTimeCost:"承認にかかった時間",AverageTime:"承認の平均所要時間",AverageTimeLabel:"チーム内の各承認者が 1 つのタスクを完了した平均処理時間です。承認の品質を確保するうえで、時間内に承認してください。",AverageTimeText:"平均所要時間",BehindGroup:"部署の {{rate}} の承認者より高い",Center:"効率診断",Checked:"承認済みの申請書の数",CheckedDone:"承認済みの承認申請書数",Click:"クリック",CompareDataLabel:"上昇率の前回の周期との比較、{{group}}の各下位チームでのランキングの表示",CompareDataLabelV2:"上昇率の前回の周期との比較、{{group}}の各下位チームでのランキングの表示。",DateRange:"日付範囲",Diagnosis:{AgencyRate:"代理承認率は最大です({{value}}%)。合計{{number}}人が代理承認を行っています。",AverageTime:"前回の周期と比較して承認効率が明らかに低下しています",AverageTimeRank:"承認効率が比較的に良くないです",Bad:"要改善",BadAverageTimeRank:"承認効率が持続的に良くないです",BadRank:"{{leader}}の各下級チーム内での平均所要時間ランキング{{rank}}/{{total}}",BadTip:"以下の問題に注意してください",CompareBad:"会社の平均値より長い({{teamAverage}} 時間 vs. {{average}} 時間)",CompareEqual:"平均消費時間が会社の平均値と等しいです({{average}}時間)",CompareGood:"会社の平均値より短い({{teamAverage}} 時間 vs. {{average}} 時間)",Good:"優秀",GoodRank:"{{leader}}の下級チーム内での平均所要時間ランキング{{rank}}/{{total}}",GoodTip:"さらに向上。以下の問題に改善の余地があります",NotBad:"良好",NotBadTip:"がんばり続けよう。以下の問題に改善の余地があります",ProblemTip:"以下の事項に注意することを推奨します",SecondRate:"瞬時承認率は最大 です({{value}}%)。合計{{number}}人が瞬時承認を行っています。"},DirectSubordinate:"直属下級",DirectSubordinateEfficiency:"直属下級の効率",DirectSubordinateOverview:"直属下級の承認時効",Efficiency:"効率診断",FirstInfo:"期間内にすべての承認タスクを完了した平均処理時間です。承認の品質を確保するうえで、時間内に承認してください。原則として、48 時間以内に処理を完了すべきです。その同時に、「すぐに承認する」たとえば、OA 支出のような複雑な承認を行うときに、申請書の閲覧時間は 5 秒未満ということ)など不慎重な行為を避ける必要があります。",GoodEfficiency:"効率の高いタスク",GroupAverage:"部署の平均データ",GroupAverageValue:"下級チームの平均値: {{value}}h",GroupEfficiency:"チーム効率",GroupGuideContent:"自分のチームの承認効率、他のチームとの比較状況、効率の悪い承認者を確認することができます",GroupGuideTitle:"チーム効率診断の新規追加",GroupKeep:"{{time}}、{{type}}は減少しましたが、いまだにチーム平均には及んでいません。引き続き頑張りましょう。",GroupName:"{{user}}のチーム",GroupNotice:"{{time}}{{type}}が増加しています。しかもチーム平均には及んでいません。効率に注意してください。",GroupOverview:"チーム効率総覧",GroupRank:"チームランキング",GroupSteady:"{{time}}、{{type}}は全体的に安定していますが、いまだにチーム平均には及んでいません。引き続き頑張りましょう。",GroupTrendAnalysis:"チームトレンド分析",Guide:"、承認効率を確認",GuideContent:"マイ承認効率と部門内のランキング状況を表示できます",GuideTitle:"効率診断の新規追加",Here:"効率診断",HigherThanGroup:"部署の {{rate}} の承認者より多い",HisSubGroup:"彼/彼女の下級チーム",HisSubStaff:"彼/彼女の直属下級",Hour:"時間",Indicators:"データ指標の説明",Keep:"{{time}}、{{type}}は減少しました。この状態を保持してください。",LastMonth:"前月",LastMonthText:"先月",List:"件",LowerThanGroup:"部署の {{rate}} の承認者より少ない",MyAverage:"自分の平均データ",MyEfficiency:"自分の効率",MySubGroup:"自分の下級チーム",MySubStaff:"自分の直属下級",NearlyWeeksText:"ここ{{count}}週間",NeedOptimize:"最適化待ちのタスク",NoApproval:"直近 14 日以内に行った承認はありません。",NoBarData:"データなし",NoGroupData:"データなし",NoPersonalData:"今回の周期内では誰も承認を処理していません",Nodata:"選択された時間帯に承認データはありません",Notice:"{{time}}{{type}}が増えました。効率に注意してください。",Oncall:"カスタマーサポート",OnlyOwnerData:"今回の周期では承認を処理したのはあなただけなので、チームデータはありません",OvertimeRate:"経過時間が48 時間超過の承認率",OvertimeText:"時間超過承認率",PC_Efficency_label:"この機能はまだPC側で有効になっていません","PC_Efficency_label-1":"{{BRAND_DISPLAY_NAME}}モバイル端末でコードをスキャンして確認してください",Person:"メンバー診断",PersonOverview:"個人効率の総覧",PersonaAverageValue:"直属下級の平均値: {{value}}h",Personal:"個人効率",PersonalOverview:"個人総覧",Process:"ワークフロー診断",ProxyApproval:"代理承認率",ProxyApprovalLabel:"他の人が代理でOA承認タスクを行った数がOAタスクの総数を閉める割合。会社は承認者本人が伝票を処理し、代理承認は行わないよう要請します特別な状況下で代理承認を行う際は、自身と同じ判断能力を持つ者を選んでください。委任者と代理人は両方とも同じ責任を負います",SecondApproval:"瞬時承認率",SecondApprovalLabel:"四つの重要なOAタスクのうち、5秒以内に承認した割合。複雑な承認を処理する時は瞬時承認を行わないようチームメンバーに伝えてください",SecondInfo:"完了したすべてのタスク中の、処理まで48時間を超えたタスクの割合",SecondRate:"即時承認率",SecondRateDecreaseAlert:"{{time}}内に、{{title}}が減少しています。瞬時承認などの不注意行為がないよう、チームの承認者に慎重に承認するように注意してください",SecondRateIncreaseAlert:"{{time}}内に、{{title}}が増えています。瞬時承認などの不注意行為がないよう、チームの承認者に慎重に承認するように注意してください",SecondRateStableAlert:"{{time}}内に、{{title}}は安定しています。瞬時承認などの不注意行為がないよう、チームの承認者に慎重に承認するように注意してください",Steady:"{{time}}、{{type}}は全体的に安定しています。この状態を保持してください。",SubGroupEfficient:"下級チームの効率",SubordinateTeam:"下級チーム",SubordinateTeamOverview:"下級チームの承認時効",TabCreate:"承認を開始",TabEff:"効率診断",TabList:"承認センター",TeamOvertimeRate:"48時間超過承認率",TeamOvertimeRateLabel:"チームメンバーが完了したすべてのタスクの内、48時間を超えてから処理した分の割合。会社の原則では、承認品質を保証した上で48時間以内に処理を完成させることを求めています",TeamOverviewDataTip:"データの上昇率を前の期間と比較",TeamOverviewDataTipV2:"データの上昇率を前の期間と比較",TeamTrendDecreaseAlert:"{{time}}内で、チームの{{type}}が減少しています。チームの承認者に効率化を図るように注意してください。",TeamTrendIncreaseAlert:"{{time}}内で、チームの{{type}}が増加しています。チームの承認者に効率化を図るように注意してください。",TeamTrendStableAlert:"{{time}}内での{{type}}は安定しています。チームの承認者にこの状態を保持するように促してください",ThirdInfo:"OA承認タスクの総数中の、他人が代理で承認したOA承認タスク数の割合。会社は代理ではなく承認者本人の証憑書類の処理を要求しています特殊な状況で他人の代理で処理することを許可する場合は、同等の判断能力を持つ代理人を慎重に選択してください。授権者と代理者は両者が直接責任を負います",ThirtyDays:"直近 30 日間",ThirtyDaysText:"直近 30 日において",TimeFormat:"YYYY年M月",TimeFormatText:"YYYY年M月",TimeRange:"選択した期間内には承認データがありません。",TimeSelected:"日付範囲:",To:"~",TrendAnalysis:"トレンド分析",TrendInfo:"トレンド分析",TrendInfoText:"データの可読性を高めるため、トレンド分析グラフのすべての値は 7 日間の累積平均値です。例えば、3月10日のデータは「3月4日から3月10日までの累積平均値」となります。",TwoWeeks:"直近 14 日間",TwoWeeksText:"直近 14 日において",ViewAllTrend:"全体の傾向分析を表示",ViewMoreData:"更にデータを表示",Wait:"新機能が徐々に公開されていますので、ご期待ください",getDetailData:"明細データをエクスポート",lowVersion:"{{BRAND_DISPLAY_NAME}}クライアントのバージョンが低すぎるため、このページは表示できません。アップグレードしてください",oneWeek:"直近 7 日間",updateFeishu:"{{BRAND_DISPLAY_NAME}}アップグレードに移動",viewConfirm:"OK",viewDetail:"明細を生成中...完了後に承認ボットからの通知が届きます。"},ApprovalForm:{AttachmentDelete:"削除",AttachmentNeedUpload:"最新版にアップデートしてください",AttachmentPreview:"プレビュー",AttachmentUndownloadable:"添付をダウンロードできませんでした。再試行してください",AttachmentUnpreviewable:"プレビューできません。表示するにはデスクトップアプリでファイルをダウンロードしてください",DateIntervalIncomplete:"{{startName}}と{{endName}}の双方を入力してください",ModifyErrorText:"文字数が制限を超えています",ModifyErrorTosat:"修正理由文字数が制限を超えています",NoAvailableOptions:"選択できるオプションはありません",UnableToFill:"申請ページが変更されました。再度申請してください",UploadAttachment:"添付ファイル",UploadImage:"添付画像",Uploading:"アップロード中"},ApprovalForm_InvalidDefId:"リンクの構成が正しくありません。管理者に連絡してください",ApprovalForm_SystemErrorHint:"システム異常、ページを閉じて再試行してください",ApprovalForm_UniqueIdConflict:"提出しました。「提出済み」リストからこの申請の詳細を確認できます",ApprovalGroups_All:"すべて",ApprovalLIst:{CC:"Cc通知"},ApprovalList:{Delegation:"代理",DelegationSubmit:"申請",DelegationTitle:"代理人を選択してください"},ApprovalList_CanceledPrefix:"{{name}}(取り消す)",ApprovalList_DelayHint:"{{bizName}}は承認状態のリアルタイムの同期をサポートしていません。30秒後に自動同期されます。",ApprovalList_From:"出処{{bizName}}",ApprovalList_ModifiedPrefix:"{{name}}(修正)",ApprovalList_NewApprovalRefresh:"新しい承認があります。リロードしてください。",ApprovalList_PendingListCleared:"承認待ちの件はありません",ApprovalList_PendingListClearedNew:"処理待ちが全て完了",ApprovalList_PeopleEllipsis_plural:"{{prefix}}などの{{count}}人",ApprovalList_Requester:"申請者",ApprovalList_Shortcut_Confirm_to:"確認",ApprovalList_Shortcut_Failed:"送信できませんでした。再試行してください",ApprovalList_Shortcut_Involved_Funding:"資金に関与する",ApprovalList_Shortcut_Involved_Important_Info:"重要な情報を含む",ApprovalList_Shortcut_Involved_Sensitive_Info:"機密情報を含む",ApprovalList_Shortcut_Involving_Funding:"資金に関与",ApprovalList_Shortcut_Involving_Important_Info:"重要な情報ある",ApprovalList_Shortcut_Involving_Sensitive_Info:"機密情報ある",ApprovalList_Shortcut_Modal_Title:"「{{approvalName}}」を{{actionName}}しますか?",ApprovalList_Shortcut_Modal_Title_Short:"この承認を{{actionName}}しますか?",ApprovalList_Shortcut_Need_Filling:"承認説明を入力する必要がある",ApprovalList_Shortcut_Submittig:"送信中",ApprovalList_Shortcut_Success:"送信しました",ApprovalList_Shortcut_To_Be_Filled:"説明が必要",ApprovalList_Shortcut_Unavailable_Hint:"この申請は{{reasonType}}ため、詳細ページで処理してください",ApprovalList_Shortcut_Unavailable_Hint_Long:"この申請は{{reasonType}}ため、クイック承認ができません。詳細ページで処理してください",ApprovalList_Time_Filter_Custom:"",ApprovalList_ViewTypeCanceled:"リストで表示",ApprovalList_ViewTypeChanged:"タイプで表示",ApprovalList_WaitDays:"{{count}} 日待ちました",ApprovalList_WaitDays_plural:"{{count}} 日待ちました",ApprovalOperation:{Guide:"同意/却下後、2分以内であれば取り消しができます",Know:"了解",Remind:"この承認者の承認は完了しております。承認操作が有効になるまで暫くお待ちください",Revoke:"承認を取り消す",RevokeCountdown:"2分以内に承認を取り消すことができます",RevokeDoubleCheck:"承認を取り消しますか?取り消し後、タスクは処理待ちにリセットされます",RevokeTips:"取り消しの有効期限が切れています",Toast:"01: 20後に承認が有効になります",Toast1:"取消しました",Toast2:"取消に失敗しました。しばらくしてから再試行してください"},ApprovalSearch:{All:"全て",CeoInputPlaceholder:"CEOの承認を検索",CeoTitle:"CEOの承認",ConfirmFilter:"完了",EmptyHintTip:"キーワードを入力して検索してください",EnableFilterHint:"表示範囲が、「すべての{{scope}}」でフィルタリングされたものになりました",EnableFilterHintV2:"「{{mainContent}}」で絞り込み中",EnableFilterHintV2_:"「{{mainContent}}」で絞り込み中",FilterGuideHint:"おすすめ:{{scope}}の承認{{count}} 件",FilterGuideHintV2:"あなたの {{scope}} には条件と一致する承認が {{num}} 件あります",FilterModal:{Btns:{Confirm:"OK",Reset:"リセット"},FilterSubordinates:{Label:"フィルタリング{{scope}}",OperateBtn:"追加"},Title:"表示範囲"},FilterSearch:"フィルター:",FilteredToastMainContent:"{{userName}} を含む計 {{num}} 名",InputPlaceholder:"申請件名、申請者、申請番号、詳細",ListCountChanged:"承認件数が変更されました。{{actionBtn}} して確認してください。",ListItem:{SourceTip:"{{userName}}からの{{approvalType}}"},NoDateTip:"検索結果がありません",NotSupportSubordinateModal:{Content:"現在のシステムでは、上司が部下の承認伝票を閲覧できないため、この証憑書類を確認する権限がない可能性があります。開始者に連絡してCc通知してもらうことができます"},OtherDefTypesLabel:"その他",Refresh:"更新",Staff:"従業員",Subordinate:"部下",TaInputPlaceholder:"Taの承認を検索",TaTitle:"Taの承認",Title:"検索",empty:"関連する結果が見つかりませんでした"},ApprovalTitle:"{{name}}の{{approvalName}}",Approval_AppDesc:"新たな承認ツールで、効率的な意思決定を実現",Approval_AppName:"承認",Approval_ExpandSidebar_GotoApproval:"承認アプリで開く",Approval_effect:"承認は1分20秒後に有効となります",Approval_tips:"現在のタスクは他者に処理されました。有効になっています。2分後に最新のステータスを確認してください",ApproverAgreed:"承認済み",ApproverRangeSelect_Clear:"クリア",ApproverRangeSelect_Contact_Admin:"管理者に連絡:",ApproverRangeSelect_DesignatedUser:"指定メンバー",ApproverRangeSelect_DesignatedUser_Multi:"以下の指定メンバーから選択してください",ApproverRangeSelect_DesignatedUser_Single:"下記から1人のメンバーを選択してください。",ApproverRangeSelect_Empty:"選択可能な承認者がいません",ApproverRangeSelect_NoResult:"一致する情報が見つかりませんでした。正しい名前を入力して再検索してください",ApproverRangeSelect_Picker_Title:"承認者を選択",ApproverRangeSelect_Placeholder:"検索",ApproverRangeSelect_Role_Empty:"管理者が選択範囲を「{{roles}}」に設定しましたが、当該役職には申請者を管理可能なメンバーがいません",ApproverRangeSelect_Role_List:"役職リスト",ApproverRangeSelect_Role_Multi:"下記から最大 25 人のメンバーを選択してください。",ApproverRangeSelect_Role_Single:"下記から1人のメンバーを選択してください。",ApproverRangeSelect_SearchEmpty:"一致する情報が見つかりませんでした。正しい名前を入力して再検索してください",ApproverRangeSelect_SelectAll:"すべて選択",ApproverRangeSelect_Selected_Count:"選択中:{{count}}/25 人",ApproverRangeSelect_Selected_Count_PC:"選択中:{{count}} 人",ApproverRangeSelect_UnknownRole:"不明な役職",ApproverRangeSelect_User_Empty:"管理者が選択範囲を指定メンバーに設定しましたが、指定したメンバーに異常があります",ApproverRedirected:"下記の人に譲渡済み:",ApproverRejected:"却下済み",ApproverTypeList_DepartmentManagerBottomUp_1:"直属部門責任者",ApproverTypeList_DepartmentManagerBottomUp_10:"第10レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_11:"第11レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_12:"第12レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_13:"第13レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_14:"第14レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_15:"第15レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_16:"第16レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_17:"第17レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_18:"第18レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_19:"第19レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_2:"第2レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_20:"第20レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_3:"第3レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_4:"第4レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_5:"第5レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_6:"第6レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_7:"第7レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_8:"第8レベル部門責任者",ApproverTypeList_DepartmentManagerBottomUp_9:"第9レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_1:"第1レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_10:"第10レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_11:"第11レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_12:"第12レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_13:"第13レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_14:"第14レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_15:"第15レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_16:"第16レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_17:"第17レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_18:"第18レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_19:"第19レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_2:"第2レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_20:"第20レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_3:"第3レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_4:"第4レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_5:"第5レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_6:"第6レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_7:"第7レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_8:"第8レベル部門責任者",ApproverTypeList_DepartmentManagerTopDown_9:"第9レベル部門責任者",ApproverTypeList_SupervisorBottomUp_1:"直属マネージャー",ApproverTypeList_SupervisorBottomUp_10:"第10レベルマネージャー",ApproverTypeList_SupervisorBottomUp_11:"第11レベルマネージャー",ApproverTypeList_SupervisorBottomUp_12:"第12レベルマネージャー",ApproverTypeList_SupervisorBottomUp_13:"第13レベルマネージャー",ApproverTypeList_SupervisorBottomUp_14:"第14レベルマネージャー",ApproverTypeList_SupervisorBottomUp_15:"第15レベルマネージャー",ApproverTypeList_SupervisorBottomUp_16:"第16レベルマネージャー",ApproverTypeList_SupervisorBottomUp_17:"第17レベルマネージャー",ApproverTypeList_SupervisorBottomUp_18:"第18レベルマネージャー",ApproverTypeList_SupervisorBottomUp_19:"第19レベルマネージャー",ApproverTypeList_SupervisorBottomUp_2:"第2レベルマネージャー",ApproverTypeList_SupervisorBottomUp_20:"第20レベルマネージャー",ApproverTypeList_SupervisorBottomUp_3:"第3レベルマネージャー",ApproverTypeList_SupervisorBottomUp_4:"第4レベルマネージャー",ApproverTypeList_SupervisorBottomUp_5:"第5レベルマネージャー",ApproverTypeList_SupervisorBottomUp_6:"第6レベルマネージャー",ApproverTypeList_SupervisorBottomUp_7:"第7レベルマネージャー",ApproverTypeList_SupervisorBottomUp_8:"第8レベルマネージャー",ApproverTypeList_SupervisorBottomUp_9:"第9レベルマネージャー",ApproverTypeList_SupervisorTopDown_1:"第1レベルマネージャー",ApproverTypeList_SupervisorTopDown_10:"第10レベルマネージャー",ApproverTypeList_SupervisorTopDown_11:"第11レベルマネージャー",ApproverTypeList_SupervisorTopDown_12:"第12レベルマネージャー",ApproverTypeList_SupervisorTopDown_13:"第13レベルマネージャー",ApproverTypeList_SupervisorTopDown_14:"第14レベルマネージャー",ApproverTypeList_SupervisorTopDown_15:"第15レベルマネージャー",ApproverTypeList_SupervisorTopDown_16:"16レベルマネージャー",ApproverTypeList_SupervisorTopDown_17:"第17レベルマネージャー",ApproverTypeList_SupervisorTopDown_18:"第18レベルマネージャー",ApproverTypeList_SupervisorTopDown_19:"第19レベルマネージャー",ApproverTypeList_SupervisorTopDown_2:"第2レベルマネージャー",ApproverTypeList_SupervisorTopDown_20:"第20レベルマネージャー",ApproverTypeList_SupervisorTopDown_3:"第3レベルマネージャー",ApproverTypeList_SupervisorTopDown_4:"第4レベルマネージャー",ApproverTypeList_SupervisorTopDown_5:"第5レベルマネージャー",ApproverTypeList_SupervisorTopDown_6:"第6レベルマネージャー",ApproverTypeList_SupervisorTopDown_7:"第7レベルマネージャー",ApproverTypeList_SupervisorTopDown_8:"第8レベルマネージャー",ApproverTypeList_SupervisorTopDown_9:"第9レベルマネージャー",ApproverType_ApproveRule:"承認規則",ApproverType_ContinuousSupervisor:"連続マルチレベルマネージャー承認",ApproverType_FormContact:"フォーム連絡先",ApproverType_FormDepart:"フォーム内部門",ApproverType_InitiatorSelect:"申請者自身を選択",ApproverType_InitiatorSelf:"申請者",ApproverType_IsvInitiatorSelect:"申請者自分で選択/「{{name}}」アプリで指定",ApproverType_NodeApprover:"ステップ承認者",ApproverUnit_Assign_Approver:"指定メンバー",ApproverUnit_Department_Bottom_Top:"部門責任者(トップダウン)",ApproverUnit_Department_Top_Bottom:"部門責任者(トップダウン)",ApproverUnit_Direct_Department:"直属部門責任者",ApproverUnit_Direct_Leader:"直属の上司",ApproverUnit_Free_Pick:"申請者自身を選択",ApproverUnit_Highest_Department:"最高部門責任者",ApproverUnit_Highest_Leader:"最上位の上司",ApproverUnit_Highest_Leader_Sequential:"最上位の上司まで",ApproverUnit_Originator:"申請者",ApproverUnit_Role:"役割",ApproverUnit_Sequential_Manager:"多重レベルの上司",ApproverUnit_Supervisor_Bottom_Top:"上司(ボトムアップ)",ApproverUnit_Supervisor_Top_Bottom:"上司(ボトムアップ)",ApproverUnit_Till_Nth_Leader:"第 {{n}} レベルの上司まで ",ApproverUnit_To_Nth_Department:"第 {{n}} レベルの部門責任者",ApproverUnit_To_Nth_Leader:"第 {{n}} レベルの上司",AsOfNow:"締切",At_drawer_notSaveTip:"修正内容がシステムに保存されていません。本当に終了しますか?",AttachmentUploadFailedHint:"一部の添付ファイルをアップロードできませんでした。再試行してください",BackToIndexButton:"ホームページへ",BatchOperate:{Agree:"一括同意",AgreeAll:"すべて同意",AgreeAllWithCount:"最初の{{count}}件をすべて同意します",AgreeModalTitle:"選択された {{count}} 件の承認を一括同意しますか?",AllFail:"すべての一括承認に失敗しました",AllFailContentSingle:"一括承認対象の「{{name}}」 (計:{{totalCount}} 件)は、{{reason}}ため、いずれも承認されませんでした。「処理待ち」で確認してください。",BatchDialogSureTitle:"選択された {{count}} 件の承認を一括同意しますか?",BatchDialogSureTitlePlural:"選択された {{count}} 件の承認を一括同意しますか?",BatchNotOpen:"一括承認は利用できません。利用するには管理者に連絡してください",BatchNotOpen_1:"快速承認が有効化後にのみ一括承認ができます。管理者に連絡し有効化してもらうことができます",BatchNotOpen_2:"一括処理が有効になっていません",BatchOpened:"管理者は「{{name}}」が一括処理に対応するように構成しました",BatchOperate:"一括処理",BatchProcess:"一括処理",CanNotRepeat:"一括承認中です。重複承認はできません",CancelBatchOperate:"キャンセル",ChatNow:"今すぐ連絡",DealLater:"後で確認",DealNow:"処理に進む",DefaultAdminName:"管理者",DoNotRepeat:"一括承認中です。重複承認をしないでください",DoNotRepeatOperate:"一括承認中です。証憑書類を確認する時は重複操作をしないでください",Done:"一括承認完了",EditableFailed:"一括操作に失敗しました。「{{name}}」は承認時に関連内容を記入する必要があるため、一括処理に対応しません",Empty:"一括処理可能な証憑書類はありません",Error:"一括承認に失敗しました",Fail:"一括処理失敗",FailContentMultiDetail:"{{failCount}}件が「{{reason}}」で失敗しました;",FailContentMultiStart:"一括承認対象の「{{name}}」 (計:{{totalCount}} 件)のうち:",FailInfo:"ネットワーク上の理由により、一括処理された{{totalCount}}件の承認証憑書類の中に、{{failCount}}件の操作が失敗しました。再度処理してください",FailReasonRequireInput:"フォームフィールドの値は編集されていません。",FailReasonThirdError:"サードパーティ API エラー",FailReasonTimeout:"ネットワークタイムアウト",FirstCount:"最初の{{count}}件",HandlerFailInfo:"処理者段階は一括承認に対応していません",Loading:"一括処理中です。しばらくお待ちください",NotAllowed:"一括承認は利用できません。利用するには{{name}}に連絡してください",NotSupportBatch:"ドキュメントコンテンツの承認は一括処理に対応していません",OperateFailedTitle:"操作失敗",PageTitle:"一括同意{{count}} 件",PartFail:"一部の一括承認に失敗しました",PartFailContentSingle:"一括承認対象の「{{name}}」 (計:{{totalCount}} 件)のうち、{{failCount}} 件が{{reason}}ため、承認されませんでした。「処理待ち」で確認してください。",PleaseBeCareful:"承認品質を確保するために、一括処理を慎重に使用してください",PleaseGoToTodo:"処理待ちに進んで処理してください",Processing:"処理中",Progress:"一括承認中",Retry:"コピー",ServerBusyFailed:"一括操作に失敗しました。サーバーがビジー状態のため、しばらくしてから再試行してください",SignatureFailInfo:"一括操作に失敗しました。{{name}}は承認時に手書きの署名が必要なため、一括承認に対応しません",SomeFailed:"一部の承認操作に失敗しました。再度提出してください",StillView:"開き続ける ",Success:"一括処理完了",SupportPart:"一部のプロセスは一括承認に対応しています",Unsupported:"一括処理に対応していません",UnsupportedApproveAction:"快速承認が有効になっていません。一括処理に対応していません",UnsupportedHandling:"処理類の承認は一括処理に対応していません",UnsupportedRequireInput:"フォームに記入が必要な承認は、一括処理に対応していません",UnsupportedStartUser:"差し戻された承認は一括処理に対応していません",UnsupportedV2:"快速承認が有効化後にのみ一括承認ができます。{{name}}に連絡し有効化してもらうことができます",ViewDetail:"証憑書類詳細を確認",WaitingCurrentBatchTask:"現在の一括タスクが終了してから再試行してください"},BeforeSigning:"前段階承認者",BoltModal_CandidateSelector_SubmitText:"OK",BoltModal_ShareToRelated_DescArea:"管理者は、情報セキュリティのリスクを避けるために、この承認の関連メンバーにのみ転送できるように設定しました",BoltModal_ShareToRelated_ExtraArea_InputPlaceholder:"メッセージ",BoltModal_ShareToRelated_SubmitLoadingText:"提出中",BoltModal_ShareToRelated_SubmitText:"OK",BoltModal_ShareToRelated_Success:"共有しました",BoltModal_ShareToRelated_Title:"共有",Brackets:"{{innerText}}",Brackets_Padding_Space:" ({{innerText}})",Brackets_Semi:"({{innerText}})",Cancel_AlreadyAgreed:"既にキャンセルしました。改めてキャンセル必要がありません",Cancel_Expired:"{{day}} 日以内に承認された申請のみ取り消すことができます",Cancel_isCanceling:"既にキャンセルしています。改めてキャンセルできません",Card_DayAgo:"{{day}}日前に受信",Card_DaysAgo:"{{day}} 日前に受信",Card_HourAgo:"{{hour}} 時間前受信",Card_HoursAgo:"{{hour}}時間前受信",Card_MinuteAgo:"{{minute}} 分前に受信",Card_MinutesAgo:"{{minute}} 分前に受信",Card_Sponsor:"申請",Card_Sponsor_Have:"合計{{count}}人",Card_Tip_Agent:"他者に代わって承認します",Card_Tip_Browser:"ブラウザ表示のみに対応します",Card_Tip_PreApprove:"事前承認",Card_Tip_Rollback:"申請者まで差し戻す",Card_Tip_Sidebar:"サイドバー表示のみに対応します",Card_Tip_SuccessPreApprove:"事前承認が完了しました",Cclist:{HasUnsupportBatchMark:"{{count}} 件が承認待ちです。詳細については一覧をご確認ください",HasUnsupportBatchMark_plural:"{{count}} 件が承認待ちです。詳細については一覧をご確認ください",MarkAllRead:"全てを既読にする",MarkSucceeded:"既読にしました",ShowUnread:"未読のみを表示"},Cclist_All:"すべて",Cclist_MarkAllReadByType:"「既読」に表示",Cclist_Mark_All_2nd_Confirm:"すべての未読 CC メッセージを既読に設定しますか?",Cclist_Mark_Current_2nd_Confirm:"このリストにある未読 CC メッセージを既読に設定しますか?",Cclist_Read:"既読",Cclist_Unread:"未読",CellSelectSearch_NoOptions:"オプションがありません",CellSelectSearch_NoResult:"結果がありません",CellSelectSearch_Placeholder:"検索してください",ChineseComma:"、",ChooseExternalContactDeniedHint:"{{staff_names}} は外部ユーザーのため、追加できません。",ClickToCopy:"クリックしてコピー",CollaborationTenant:"関連組織",Colon:":",Comma:"、",Comment:{CancelPlaceholder:"取り消し理由を入力してください",NotifyAt:"@メンションされた人を通知",NotifyOwner:"申請者を通知",Submiting:"提出しています",TextPlaceholder:"コメントを入力",TextPlaceholderWithAt:"コメント内容を入力して、関連メンバーにメンションできます",delete:{content:"該当操作は承認関係者に通知されませんが、メンションされた人にはこの承認を閲覧する権限が維持されます。",tip:"{{time}} にコメントを削除しました。",title:"コメントを削除しますか?"}},CommentEmpty:"コメント内容を入力してください。",Comment_Content_Empty:"コメント内容は必須です",Comment_DataError:"データエラーです。クリックして再試行してください",Comment_Forwarded_Go_Next:"譲渡しました。次に移動します",Comment_Operated_Go_Next:"承認しました。次に移動します",Comment_OverCount:"最大500件コメントまで",Comment_success:"コメントしました",Common_AutoCalculate:"自動計算",Contact:"連絡先",CreateApproval_ApprovalEditorAutoAgree:"自動承認",CreateApproval_ApprovalEditorAutoReject:"自動却下",CreateApproval_Conditional_And:"および",CreateApproval_Conditional_CompareIs:"は",CreateApproval_Conditional_Initiator:"申請者",CreateApproval_Conditional_InitiatorAsCondition_InitiatorIs:"は",CreateApproval_Conditional_InvalidOption:"無効な選択肢です",CreateApproval_Conditional_Or:"または",CreateApproval_Conditional_When:"{{condition}}の場合",CreateApproval_Conditional_XXSummary:"{{name}} の明細",CreateApproval_Conditional_matchType_anyone:"1つの値が一致",CreateApproval_Conditional_matchType_summary:"合計",CreateApproval_DisplayCondition_All:"完全一致",CreateApproval_DisplayCondition_Day:"日",CreateApproval_DisplayCondition_EqualTo:"次の値と等しい:",CreateApproval_DisplayCondition_GreaterThan:"次の値より大きい:",CreateApproval_DisplayCondition_GreaterThanOrEqualTo:"次の値と同じかまたは大きい:",CreateApproval_DisplayCondition_Hour:"時間",CreateApproval_DisplayCondition_LessThan:"次の値より小さい:",CreateApproval_DisplayCondition_LessThanOrEqualTo:"次の値と同じかまたは小さい:",CreateApproval_DisplayCondition_One:"以下のいずれかを含む",CreateApproval_DisplayCondition_OutGroupDay:"日",CreateApproval_DisplayCondition_OutGroupHour:"時間",CreateApproval_Flow_ConditionDefaultPlaceholder:"その他",CreateApproval_FormGroup_LeaveGroupType:"休暇",CreateApproval_FormGroup_OutGroupDuration:"外出所要時間",CreateApproval_FormGroup_OutGroupType:"外出タイプ",CreateApproval_FormGroup_SignGroupPreview:"テンプレートをプレビューする",CreateApproval_FormGroup_TripGroupAirplane:"飛行機",CreateApproval_FormGroup_TripGroupBus:"自動車",CreateApproval_FormGroup_TripGroupDay:"日",CreateApproval_FormGroup_TripGroupDeparture:"出発地",CreateApproval_FormGroup_TripGroupDestination:"目的地",CreateApproval_FormGroup_TripGroupDuration:"出張期間(日)",CreateApproval_FormGroup_TripGroupOther:"その他",CreateApproval_FormGroup_TripGroupTrain:"電車",CreateApproval_FormGroup_TripGroupTransportation:"交通機関",CreateApproval_FormGroup_WorkGroupHour:"時間",CreateApproval_FormGroup_WorkGroupInterval:"残業期間(時間)",CreateApproval_FormGroup_WorkGroupType:"残業タイプ",CreateApproval_InvalidQRCode:"QRコードが無効です。プレビューのQRコードをスキャンしてください",CreateApproval_QRCode_Scan_Failure:"QRコードをスキャンできませんでした。再試行してください",CreateApproval_RedirectTo_Failure:"QRコードをスキャンできませんでした。再試行してください",CreateApproval_SystemAutoAgree:"自動承認",CreateList:{AllDefinition:"すべての申請",ApprovalCategory:"申請の分類",CustomCreate:{Content:"承認をカスタマイズしますか?",Content_V2:"さらにプロセスを作成 ",Create:"カスタム承認を作成",CustomApprovalProcess:"承認プロセスをカスタマイズ作成",GoTo:"進む",IfCreated:"承認を作成した場合は、次へ進んでください",IfNotSuitable:"上記の承認には適用されません",Introduce1:"管理者の承認後にリリースされ、あなたとチームの生産性の向上に役立ちます",Introduce2:"独自でフォームの構築や、承認プロセスの設計ができます",Introduce3:"テンプレートから承認を作成するか、独自に承認を作成して、あなたとチームの効率を高めるのに役立ちます ",Link:"こちらをクリック",Popover:{Content:"豊富なコントロールは様々なプロセスシーンに対応し、さらに専門のプロセスコンサルタントがプロセスの構築を手取り足取り教えます。",ContentV2:"承認は、従業員による自主なプロセス作成、フォーム設計、承認段階構成に対応しています。テンプレートライブラリは内容が豊富で、承認プロセスの快速構成に役立ちます",OkText:"OK",Title:"プロセスが自己作成に対応できるようになりました!",TitleV2:"承認はカスタム作成に対応しています"},Process:"承認プロセスをカスタマイズ作成",View:"表示",ViewCreated:"作成された承認を表示"},CustomCreateModal:{Cancel:"キャンセル",Content:"ByteDance自己構築プロセスの標準化を改善するために、ByteDanceの従業員がFeishu承認を新規作成する際に、作成申請を提出し、合理性と標準化の審査を通過してから、新規プロセスが有効になります。詳細は以下をご確認ください",ContentLink:"「Feishu承認作成申請」",Create:"作成に移動",Title:"カスタマイズ承認作成の説明"},DefinitionSearch:"キーワードを入力し、対応申請を検索します",DefinitionSearching:"検索中",DisplayAllDefinition:"すべての申請を表示しました",GoBack:"戻る",LaunchFailed:"読み込みに失敗しました。更新してみてください",NoMatchedData:"条件に一致する結果は見つかりませんでした。再度入力してください。",NoSearchResult:"検索結果が見つかりませんでした",PaymentContent:'"{{approvalName}}"の機能を利用するには、ベーシック版が必要です。無料版では利用できません。管理者、 {{adminName}}に連絡し、アップグレードしてください',PaymentContentToAdmin:'"{{approvalName}}"の機能を利用するにはベーシック版が必要です。無料版では利用できません。管理コンソールでアップグレードしてください。',PaymentTitle:"アカウントを作成",RecommendedUse:"おすすめ",Refresh:"更新",SearchPlaceholder:"申請名を入力"},CreateTabText:"申請する",CreatorRecalled:"キャンセル済み",Currency_AED:"UAE ディルハム",Currency_AFN:"アフガニ",Currency_ARS:"アルゼンチンペソ",Currency_AUD:"オーストラリアドル",Currency_CAD:"カナダドル",Currency_CHF:"スイスフラン",Currency_CNY:"元",Currency_COP:"コロンビアペソ",Currency_CZK:"チェココルナ",Currency_DKK:"デンマーククローネ",Currency_EGP:"エジプトポンド",Currency_EUR:"ユーロ",Currency_GBP:"英ポンド",Currency_HKD:"香港ドル",Currency_IDR:"ルピア",Currency_ILS:"リンギット",Currency_INR:"インドルピー",Currency_JPY:"円",Currency_KRW:"韓国ウォン",Currency_MAD:"モロッコディルハム",Currency_MOP:"マカオパタカ",Currency_MXN:"メキシコペソ",Currency_MYR:"リンギット",Currency_NOK:"ノルウェークローネ",Currency_NZD:"ニュージーランドドル",Currency_PHP:"フィリピンペソ",Currency_PKR:"新シェケル",Currency_PLN:"ポーランドズウォティ",Currency_RUB:"ロシアルーブル",Currency_SAR:"ドン",Currency_SEK:"スウェーデンクローナ",Currency_SF:"スイスフラン",Currency_SGD:"シンガポールドル",Currency_THB:"バーツ",Currency_TRY:"トルコリラ",Currency_TWD:"新台湾ドル",Currency_USD:"米ドル",Currency_VND:"フィリピンペソ",Currency_ZAR:"南アフリカランド",CurrentSigning:"同列承認者",DateIntervalUnit_Day:"日",DateIntervalUnit_Hour:"時間",Dayton:"、",DefaultModalConfirm:"OK",DefaultModalTitle:"注意",DefinitionSearch:{InputPlaceholder:"申請件名で検索"},Delegation:{AgentAvatarTag:"代",AgentRecord:"代理履歴",AgentXXXForApproval:" {{delegate}}の代理で承認します",Delegation:"授権委任",DelegationRecord:"委託記録",InEffectTips:"{{validCount}}件が有効中",InitiateDelegation:"委託を開始",InitiateDelegationTips:"できるだけ本人が承認タスクを処理してください。休暇などの特別な状況の場合は他者に処理を代行してもらってください",InitiateDelegationTips2:"できるだけ本人が承認タスクを処理してください。休暇などの特別な状況の場合は他者に処理を代行してもらってください。処理者段階は委任できません。",NoAgentsTips:"代理履歴はありません",NoDelegationsTips:"委託記録はありません",NormalDelegationTimeTips:"この期間中、代理人は選択したプロセスのすべてのタスクを処理することができます。期限切れまたは手動でキャンセルされた場合、システムが代理人の権限を回収します",RelationTips:{AmongPrefix:"その中",ForSomeone:" {{delegate}}の代理で承認します",OneByOne:"{{agent}}が{{delegate}}の代理で承認します"},ToBeEffectTips:"{{toValidCount}}件が有効待ち"},Deleted:"削除済み",DeletedApproval:{ImageTitle:"この証憑書類は削除されているので、確認できません"},Department_Clear:"クリア",Department_Empty:"公開部門がありません",Department_NoResult:"一致する検索結果がありません。正しい部門名を入力してください",Department_Organization:"組織構造",Department_Selected:"選択中:",Department_Selected_Count:"選択中:{{count}} 個",Department_Selected_Count_plural:"選択中:{{count}} 個",Department_Selector_title:"部門を選択",Department_Subordinate:"下位",Department_new_placeholder:"部門名を検索",Department_placeholder:"正しい部門名を入力し、非公開部門を検索します",Detail:{AddApprover:"承認者を追加済み",AddCommentButton:"コメントを追加",AddCommentButtonInShort:"コメント",AddReasonCannotEmpty:"承認者追加の理由は必須項目です。入力してください",AddTaskButton:"承認者を追加",AgreeButton:"承認",Agreed:"承認済み",AndSign:"And 承認",AndSignHint:"全承認者の承認が必要",AndSubmitHint:"すべての処理者の提出が必要",ApplicantQuitCCAdmin:"{{approverName}}は退職しました。フォローするよう承認管理者に通知しました",ApplicantQuitCCLeader:"{{approverName}}は退職しました。フォローするよう直属マネージャーに通知しました",Application:"詳細",ApprovalCommentsCannotEmpty:"承認コメントは空白にできません。入力してください",ApprovalConfirmOpinionPlaceholder:"コメントを入力(任意)",ApprovalConfirmOpinionPlaceholderNew:"コメントを入力",ApprovalDetail:"詳細",ApprovalEventsTitle:"プロセス",ApprovalTitle:"詳細",ApproveSuccessWithNextOne:"次の申請へ",ApproverQuitRedirect:"{{approverName}}は退職しました",CCToNPeople:"{{count}} 人に通知済み",CCToNPeopleAlready:"{{count}} 人に同報済み",CCToNPeople_plural:"{{count}} 人に通知済み",CannotWithdrawAfterPassingFirstApprovalNode:"一旦承認されると、この申請は取消不可になります",CannotWithdrawOrOverdue:"この申請は取消不可です。または取消可能期限が過ぎました",Comment:"コメント",CommentInputPlaceholder:"コメントを追加",CommentSubmitting:"しばらくお待ちください",ContentOfRecallConfirm:"申請を取り消しますか?",Deleted:"削除済み",EditButton:"承認",ExpandButtonText:"全て表示",FailToPrint:"プリント中にエラーが発生しました。再試行してください。または管理者までお問い合わせください",FailedWhenRecall:"キャンセルできませんでした",FailedWhenSubmitComment:"コメントできませんでした",FieldListGroupTitle:"詳細 {{number}}",FieldList_All:" {{len}}行すべてを表示",FieldList_All_Text:"全文",FieldList_Item_All:"合計{{count}}件",FieldList_ViewMore:"もっと見る",FreeCCButton:"CC",FromApproval:"Feishu承認から",FromApprovalNo:"Feishu承認から | 番号:{{serialID}}",FromApprovalTooltip:"Feishu承認システムから",FromLarkApproval:"Lark承認から",FromLarkApprovalNo:"Lark承認から | 番号:{{serialID}}",FromLarkApprovalTooltip:"Lark承認システムから",HandlerConfirmOpinionPlaceholderNew:"処理意見を入力",HintWhenCommentWithoutContent:"コメントを入力",HistoryLink:"編集履歴",InTurnSignHint:"順番に承認",InTurnSubmitHint:"順次処理",LabelOfRedirectPeople:"譲渡先",LongReqHint:"しばらくお待ちください…",MinusApprover:"承認者を削除しました",MoreMenuButton:"さらに",NoPermission:"このページを表示する権限はありません",NodeNoApprovers:"承認者がいないため、自動承認されました",Notify:"通知済み",OrSign:"Or 承認",OrSignHint:"誰か 1 人の承認が必要",OrSubmitHint:"1人の提出でよい",PreviewFileFailed:"添付ファイルをプレビューできませんでした。再試行してください",Process:"状況",ReSubmit:"コピー",RecallButton:"取り消す",Recalled:"取消済み",RedirectButton:"譲渡",RedirectToSomeone:"{{name}}に譲渡します",Redirected:"譲渡済み",RejectButton:"却下",Rejected:"却下済み",RemindButton:"リマインド",RemoveTaskButton:"承認者を削除",Repeated:"自動承認されました",Rollback:"差し戻し済み",RollbackButton:"差し戻し",RollbackReasonCannotEmpty:"差し戻しの理由は必須項目です。入力してください",RollbackTitle:"承認者を選択してください。",SaveFail:"保存に失敗しました",SaveModify:"編集を保存",SaveSuccess:"保存済み",SerialID:"番号:{{serialID}}",SerialNumber:"申請番号",Submit:"提出",SubmitCheckTitle:"「{{type}}」申請を提出しますか?",Submitted:"申請済み",SubmittedTheApproval:"申請を提出しました",SuccessWhenRecall:"取り消しました。",System:"システム",TheCountOfAndApprovers:"承認者 {{count}} 人(全承認者の承認が必要)",TheCountOfAndApprovers_plural:"承認者 {{count}} 人(全承認者の承認が必要)",TheCountOfOrApprovers:"承認者 {{count}} 人(いずれか一人の承認が必要)",TheCountOfOrApprovers_plural:"承認者 {{count}} 人(いずれか一人の承認が必要)",TitleOfApprovalConfirm:"コメント",TitleOfApprovalConfirmNew:"コメント(任意)",TitleOfHandlerConfirm:"処理意見",TitleOfHandlerConfirmNew:"処理意見(オプション)",TitleOfRedirectConfirm:"承認申請を譲渡",TransferButton:"代理承認",UnderHandler:"処理中",UnderReview:"承認中",UnexpanButtonText:"折りたたむ"},DetailTable:{AdminPreviewTip:"モバイル端末の明細はすべて縦方向で入力されます。",CopyBtnTip:"この行をコピー",Empty:"未記入",IntroTitle:"説明",Mobile:"モバイル端末",NoContent:"関連項目がありません。",NoFile:"添付ファイルがありません",NoImage:"画像がありません",NoRelativeApproval:"関連承認がありません",OperationColumnTitle:"操作",PC:"PC",RemoveBtnTip:"この行を削除",RemoveRowConfirm:" {{index}} 行目を削除しますか?"},DetailWidget:{DeleteConfirm:"{{groupName}}を削除してもよろしいですか?"},Detail_AgreeButton_New:"承認",Detail_AllowToModifyOnce:"承認書類の修正は1回のみ許可されています",Detail_ApplicantIsStarterAutoAgree:"承認者と申請者が同一人物である場合、自動で承諾されます",Detail_ApplicantIsStarterRedirectedAdmin:"承認者と申請者が同一人物である場合、部門責任者に承認が移行されます",Detail_ApplicantIsStarterRedirectedAdminDismiss:"承認者と申請者が同一人物である場合は、承認は部門責任者に移行され、部門責任者がいない場合は、自動で承諾されます",Detail_ApplicantIsStarterRedirectedLeader:"承認者と申請者が同一人物である場合、直属の上司に承認が移行されます",Detail_ApplicantIsStarterRedirectedLeaderDismiss:"承認者と申請者が同一人物である場合は、承認は直属の上司に移行され、直属の上司がいない場合は、自動で承諾されます",Detail_CanceledInstance:"承認の取り消し",Detail_CommentButton:"コメント",Detail_Comment_Hint_Content:"画像と添付ファイルをコメントで追加できるようになりました。今すぐ試す",Detail_Comment_Hint_Title:"コメント機能更新",Detail_Comment_fold:"折りたたみ",Detail_Comment_unfold:"展開",Detail_ForbiddenModify:"この申請の修正は許可されていません",Detail_HistoryAndModifyLink:"編集/修正履歴",Detail_InTurnSignHint:"順番に承認",Detail_ModifyButton:"修正",Detail_ModifyLink:"修正履歴",Detail_ModifyOverdue:"この申請は修正可能期限を過ぎています",Detail_ModifyedInstance:"修正プロセス",Detail_OriginInstance:"元の承認ワークフロー",Detail_RejectButton_New:"却下",Detail_SignGroupNameKey:"電子牽契約テンプレート名称",Detail_SubmittedCanceling:"申請を取り消す",Detail_SubmittedModifying:"修正を開始",Detail_TransmitButton:"チャットに転送",Detail_isModifying:"修正申請は開始済みで、申請が承認中です",Detail_modifyReason:"修正理由",Detail_modifyRejected:"修正申請は開始済みで、申請が却下されました",Detail_modifyRejected_submitter:"修正申請は開始済みで、却下されました",Detail_modifyWithdrawed:"修正申請は開始済みで、申請が取り下げられました",Detail_modifyWithdrawed_submitter:"修正申請は開始済みで、取下げられました",Detail_modifyed:"修正申請は開始済みで、申請が承認されました",DiscussionGroup:{Create:"グループチャットを作成",CreateFailed:"作成できませんでした。再試行してください",CreateGroup:"相談する",EnterGroup:"相談する",GroupMember:"グループメンバー",GroupMemberHint:"この承認グループを作成します。申請者、現在の承認者およびこれまでの承認者は、自動的にグループに招待されます",GroupMemberHintNew:"承認ディスカッショングループチャットが作成されます。この承認の提出者、現在の承認者、および完了した承認者は、このグループチャットに自動的に追加されます。",Hint:"ご質問がある場合は確認しましょう",Join:"参加",JoinFailed:"チャットグループに参加できませんでした。再試行してください",NewCreateGroup:"グループを作成",NewEnterGroup:"グループに参加",TabText:"討論",Title:"承認グループ"},Doc_List_UntitledSheet:"名称未設定シート",DoubleQuotes:"「{{innerText}}」",Draft_LastEdited:"最終編集:",Edit:"編集",EditHistory:{Deleted:"コンテンツを削除しました",Title:"編集履歴"},EndNode_Title:"終了",Error:{ApprovalNoPermission:"承認定義が存在しません",ApprovalNotActive:"承認定義が無効です",ApprovalNotExist:"コントロールの値が空です",CannotModifyTaskGenByAddApprover:"追加された承認者はプロセスを修正できません",Decode:"外部データソースの復号化に失敗しました",GetLarkDepartmentInfoByIds:"部門情報の取得に失敗しました",GetLarkUserByIds:"ユーザー情報の取得に失敗しました",GetLarkUserByIdsNotExist:"ユーザーが存在しません",InvalidUrl:"入力されたURLは無効です。検証してください",InvalidUrlOrToken:"外部データソースのURLまたはトークンは空白にできません",InvalidWidgetType:"このコントロールタイプは外部データに対応していません",OuterDataIllegalForm:"ユーザーデータの取得に失敗しました",OuterDataResponse:"外部データソースのデータ形式を検証してください",OuterDataSourceTimeOut:"外部データソースの取得に失敗しました。再試行してください",ResponseFormat:"外部データソースのデータ形式を検証してください",SearchUserNotExist:"検索したユーザーが存在しません",TransferDocument:"ドキュメント所有権の移転に失敗しました",UserRpc:"ユーザーデータの取得に失敗しました",WidgetEmptyValue:"コントロールの値が空です",WidgetNotFount:"コントロール情報が見つかりません。確認してください"},ExperienceNow:"理解した",External:"外部",External_Tag:"外部",FilterSubordinatesPage:{Cancel:"キャンセル",Confirm:"OK{{count}}",FilterAll:{Tag:"{{scope}}の全部"},SearchInputPlaceholder:"すべての{{scope}}を検索できます",SelectedTitle:"選択済み",Title:"フィルタリング{{scope}}"},FormConnect:{AddInstance:"承認を追加",Count:"選択した:申請 {{count}} 件",Count_plural:"選択した:申請 {{count}} 件",DefinitionSearchPlaceholder:"タスクのテーマ、申請者、番号、内容を検索",Reminder:"関連承認申請は必須項目です",SelectConnectApprovals:"関連承認書類を選択してください",SelectorTitle:"関連承認申請を選択",Title:"関連承認申請を追加",TransferredToDone:"{{ApprovalName}}は「処理済み」に転送されました",submitted:"提出した"},FormWidgetViewer_WorkGroup_Duration2:"残業期間",Form_DetailTitle:"申請の詳細",Form_UserDepartment_Name:"提出者の所属部門",Form_UserDepartment_Tip:"提出者は複数の部門に所属しています。具体的な部門を選択してください。",FreeCC:{LabelOfContact:"通知先を選択",LabelOfReason:"通知の理由(任意)",PlaceholderOfReason:"通知する理由を入力",Success:"Cc 通知しました"},Free_SelectPerson:"通知先を選択",FreedomProcessCCer_Tip:"承認が終了後、転送先に同期します",FullStop:"。",GetOptionsFail:"データを取得できませんでした。承認管理者に連絡してください",GoAuthSetting:"設定",GoDetailPage:"詳細",GoForm:"記入に進む",Goto_miniapp:"ドキュメントの詳細を表示",Guide_IntegrationModalContent:"People data has been partially imported, and it continues to be imported.",Guide_IntegrationModalHint:"People ではデータのインポートにはもう少し時間が必要です",Guide_IntegrationModalTitle:"社内承認情報の統合管理",Guide_SortContent:"あなたの習慣に応じて、最も古い・新しい承認をトップに表示させることができます",Guide_SortTitle:"受信順で並べ替え",Guide_ViewTypeContent:"ここをクリックすると、同じタイプの承認フォームを集約して表示します。閲覧と処理の効率を向上させるようになります",Guide_ViewTypeTitle:"タイプ別で表示",HasBeenProcessedHint:"他の承認者が対応済みです",HostingActions_CreateChat_ConfirmLoadingText:"開始中...",HostingActions_CreateChat_DescArea:"チャットグループのメンバーに該当承認の詳細を表示されます。情報漏えいなどのリスクを回避するために、招待を慎重に行ってください。",HostingActions_CreateChat_ModalTitle:"メンバー招待",HostingActions_CreateChat_Success:"グループチャットを開始しました",HostingActions_JoinChat_ConfirmLoadingText:"参加中...",HostingActions_JoinChat_CreatedHint:"グループチャットがすでに存在しているので、直接参加します",HostingActions_ShareDocument_ConfirmDesc:"共有すると、相手方が証憑書類の詳細を確認できるようになります。情報セキュリティのリスクを避けるために、受信者を慎重に選択してください",HostingActions_ShareDocument_ConfirmLoadingText:"提出中",HostingActions_ShareDocument_ConfirmTitle:"共有",HostingActions_ShareDocument_Success:"共有しました",HourAgo:"{{hour}} 時間前",HoursAgo:"{{hour}} 時間前",IMDefinition_CreateAndShareConfirm:"この承認はチャットで共有され、リスト上にも追加されます",IMDefinition_CreateButton:"申請フォームを作成",IMDefinition_CreatedByMe:"私が作成した承認",IMDefinition_DefAttachments:"添付ファイル",IMDefinition_DefName:"申請件名",IMDefinition_DefNamePlaceholder:"申請件名を入力してください",IMDefinition_DefReasons:"申請理由",IMDefinition_DefReasonsPlaceholder:"申請する理由を以下のようにまとめてください:\\n理由1\\n理由2",IMDefinition_DeleteConfirm:"この承認申請を削除しますか",IMDefinition_DeleteFailed:"削除できませんでした",IMDefinition_OnlyCreatorCanEdit:"作成者のみ編集可能",IMDefinition_RecentlyUsed:"最近使用した承認",IMDefinition_RecordsButton:"履歴",IMDefinition_Save:"保存",IMDefinition_SaveSucceeded:"保存しました",IMDefinition_Share:"共有",IMDefinition_ShareAfterSave:"保存して共有する",IMDefinition_ShareApproval:"承認を共有",IMDefinition_ShareFailed:"共有できませんでした",IMDefinition_ShareSucceeded:"共有しました",IMDefinition_ThirdpartyShareConfirm:"この承認申請を今のチャットで共有しますか?",InstanceAgreed:"承認済み",InstanceAllStatus:"すべて",InstanceCancelCanceled:"取り消しを撤回",InstanceCancelFailed:"キャンセルできない",InstanceCompleted:"完了",InstanceDeleted:"削除済み",InstanceDeletedHint:"申請は削除されました",InstanceNonStatus:"ステータスなし",InstancePending:"承認中",InstanceRecalled:"取消済み",InstanceRejected:"却下済み",InstanceUnuse:"すべて",Internal_BackToList:"承認リストに戻る",Internal_InstallVpn:"VPN がないですか?クリックでダウンロード",Internal_LinkVpnBtnText:"VPN に接続",Internal_LinkVpnTip:"VPN または会社 Wi-Fi に繋がってください",Internal_RefreshNetwork:"再読み込み",Internal_UnconnectInternal:"インターネットに繋がりません",JustNow:"たった今",Latest:"最新",LeaveGroup:{BackToModify:"修正に戻る",BalanceUnitDay:"日",BalanceUnitHour:"時間",ConfirmSubmit:"提出する",ConflictStartEnd:"{{timeRange}}まで休暇が取得されています。休暇日数を無駄にしないため、休暇期間を再選択することを推奨します",ConflictStartEndInstead:"休暇日数を無駄にしないため、休暇期間を再選択することを推奨します",ConflictTimeRange:"{{timeRange}} はすでに休暇申請しています。このまま申請すると、残りの休暇日数が重複して差し引かれます。申請しますか?",ConflictTimeRangeInstead:"このまま申請すると、残りの休暇日数が重複して差し引かれます。申請しますか?",CurrentHasLeave:"現在の期間に、既に休暇記録があります",CurrentNoWork:"現在シフトはありません。休暇申請の必要はありません",DailyBreaksMethod:"毎日休憩方式",DateRangeInvalid:"{{endTime}} は {{startTime}} 以降の時間を指定してください",DurationConflictContent:"{{timelist}}期間はすでに休暇が存在します。時間を調整してください",DurationConflictContent_plural:"{{timelist}}期間はすでに{{count}}の休暇が存在します。時間を調整してください",DurationConflictTitle:"休暇期間が重複しています",DurationDesc:"勤怠管理上、 0.5 {{unit}}以下の場合は、 0.5 {{unit}}として計算されます",DurationSubTitleByDays:"{{count}} 日間の休暇",DurationSubTitleByDays_plural:"{{count}} 日間の休暇",DurationSubTitleByHours:"{{count}} 時間の休暇",DurationSubTitleByHours_plural:"{{count}} 時間の休暇",DurationTime:"時間",DurationTitleByDays:"合計 {{count}} 日間の休暇",DurationTitleByDays_plural:"合計 {{count}} 日間の休暇",DurationTitleByHours:"合計 {{count}} 時間の休暇",DurationTitleByHours_plural:"合計 {{count}} 時間の休暇",EmptyLeaveList:"利用できる休暇がありません",EndTime:"終了日",FailedWhenGetUserLeaveBalanceList:"休暇残日数を取得できませんでした。再試行してください",Friday:"金曜日",GoConflictDetails:"詳細",HolidayPeriod:"休暇周期",LeaveDetail:"詳細を表示",LeaveDetail_Text:"スケジュールから休暇を自動的に計算",LeaveDuration:"休暇期間",Monday:"月曜日",NextDay:"翌日",NoBalanceDefinition:"{{typeName}}は削除されました。他の休暇タイプを選択してください",NoBalanceQuota:"{{name}}は残日数が足りません",NoBalanceQuotaInDuration:"休暇残は {{count}} 時間以下です。再度選択してください",NoBalanceQuotaInDuration_plural:"休暇残は {{count}} 時間以下です。再度選択してください",NoBalanceQuotaInRange:"休暇を申請した期間の休暇残日数が足りません。",NoDayBalanceQuotaInDuration:"休暇残は {{count}} 日以下です。再度選択してください",NoDayBalanceQuotaInDurationDefault:"休日の残高が不足している場合は、再選択してください",NoDayBalanceQuotaInDuration_plural:"休暇残は {{count}} 日以下です。再度選択してください",NoZeroLeaveDuration:"休暇期間は 0 より大きい数字を入力してください",PageTitle:"期間の詳細",PleaseUploadCertificate:"休暇証明書をアップロードしてください",Remind_Day:"(休暇残日数:{{count}} 日)",Remind_Day_plural:"(休暇残日数:{{count}} 日)",Remind_Hour:"(休暇残時間:{{count}} 時間)",Remind_Hour_plural:"(休暇残時間:{{count}} 時間)",RestDay:"この期間は休日であり、休暇日数には含まれません",Saturday:"土曜日",StartTime:"開始時間",Sunday:"日曜日",Thursday:"木曜日",Tuesday:"火曜日",TypeLabel:"休暇タイプ",ViewLeaveDetails:"休暇記録を確認",Wednesday:"水曜日",fetchTimeZoneError:"タイムゾーンの取得に失敗しました"},LeaveGroup_DayBalanceQuota:"(残り {{count}} 日)",LeaveGroup_Exclude_Hint:"週末や祝日が含まれている場合は、自動的に休暇時間から除かれます",LeaveGroup_Exclude_Hint_Holiday:"休暇時間から自動的に祝日が取り除かれます。",LeaveGroup_Exclude_Hint_Weekend:"休暇時間から自動的に週末が取り除かれます。",LeftParen:"(",ListApproved:"承認済み",ListCC:"受信通知",ListCreated:"申請済み",ListDone:"処理済み",ListPending:"承認待ち",ListTabText:"承認",ListUpcoming:"処理待ち",Loading:"読み込み中",Maintab_CurrentApprovalProcessed:"この承認はすでに処理済みです。",Maintab_NewApprovals:"新しい承認があります。",Maintab_NewApprovalsProcessed:"新しい承認はすでに処理済みです。",Menu:{Other:"その他"},MinuteAgo:"{{minute}} 分前",MinutesAgo:"{{minute}} 分前",ModalCancelText:"取り消し",ModalConfirmText:"確定",Modal_Button_Text:"閉じる",Modify:"編集",ModifyApproval:"承認を修正",ModifyNotice:"修正には承認者の同意が必要で、1回のみ修正できます",ModifyProcess:"修正プロセス",ModifyProcessIndex:"承認プロセスを修正{{index}}",ModifyReasonInput:"修正理由を入力してください",ModifyReject:"修正申請が開始されましたが、却下されました。元の申請は有効のままです",ModifyTag:"修正",ModifyWithDraw:"修正申請が開始されましたが、取下げられました。元の申請は有効のままです",NewVersionComing:"アプリを再起動し、最適化されたバージョンをご利用ください、",NewVersionComingBtn:"クリックでアップデート",NoAuthConfirm:"OK",NoAuthHint:"この申請を再度提出する権限がありません",NoContent:"関連項目がありません。",NoExternalChat:"外部の連絡先へ転送できません",NoExternalStaff:"外部スタッフを選択できません",NoMoreDatas:"他にありません",NoPermissionTip:"アクセス権限がありません",NoSysAuthHint:"{{name}}権限を付与してください\n",Now:"現在",NowNotSupportModify:"この申請は、現時点では修正に対応していません",Old_SuiteApproval_Approver:"承認者",Old_SuiteApproval_Cc:"通知",Old_SuiteApproval_LeaveGroupDur:"休暇期間",Old_SuiteApproval_Unit:"単位",OnBoard:{BannerDesc:"詳細を表示する",BannerTitle:"別の申請フォームを作成する",ModalBtn:"今すぐ使ってみる",ModalDesc:"承認機能が追加されました。スムーズな承認プロセスが可能になります。ぜひお試しください",ModalTitle:"承認アプリへようこそ"},OnBoarding:{Button:{CollapseSidebar:"ナビゲーションを閉じる",ExpandSidebar:"ナビゲーションを展開",GotIt:"了解"},OpenWindowTips:"クリックすると、独立したウィンドウでFeishu承認を開くことができます",ToggleSidebarTips:"ここをクリックするとナビゲーションばーが展開され、処理待ち、処理済み、カーボンコピー、開始済みの内容を確認できます"},Operate_ForwardSuccess:"譲渡しました",Operate_HintOfCancelConfirm:"この申請はすでに承認されました。キャンセルしたい場合は、承認者の再確認が必要となります。",Operate_PlaceholderOfCancelConfirm:"キャンセル理由(任意)",Operate_PlaceholderOfForwardConfirm:"譲渡についての説明(任意)",Operate_PlaceholderOfForwardConfirmnew:"譲渡理由",Operate_TitleOfCancelConfirm:"申請を取り消す",Operate_TitleOfForwardConfirm:"承認申請を譲渡",Operation:{AgreeSuccess:"操作完了しました",RejectBackToList:"操作完了しました。リストに戻る",RejectNextDetail:"操作完了しました。次の証憑書類に移動します",RejectSuccess:"操作完了しました",SuccessBackToList:"操作完了しました。リストに戻る",SuccessNextDetail:"操作完了しました。次の証憑書類に移動します"},Optional:"任意",OutGroup_NoZeroDuratioin:"外出時間は0より大きい数字を入力してください",PC:{AddApproverTitle:"承認者を追加",AddBtn:"追加",AddressRecommends:"オススメ",AddressSelect:"{{level}}を選択",AdminNoApproval:"承認機能は未設定です。管理コンソールにログインし、新規承認プロセスを作成してください",AgreeCheckTitle:"「{{type}}」を承認しますか?",ApprovalAdmin:"承認管理コンソール",ApprovalTitle:"{{people}}の{{name}}申請",BarBrowser:"ブラウザで開く",BarComment:"コメント",BarCommentGuide:"コメントはこの進み方で確認できます",BarFullwindow:"拡大表示",BarFullwindowQuit:"縮小表示",BarHelpdesk:"カスタマーサポート",BarLinkCopy:"リンクをコピー",BarPrint:"印刷",BarRefresh:"詳細を更新",BarShare:"共有",BarTitle:"{{Source}}より",CcPerson:"通知先",Cclist_ShowAll:"全部を表示",CopyBtn:"コピー",DateTo:"から",DelApproverCheckTitle:"承認者を削除",DeleteBtn:"削除",DetailBrowserHint:"この伝票はサイドバーで開く必要があります",DetailDrawerHint:"当該申請書はサイドバーで表示できます。",Detail_EllMore:" {{count}} 人",Error_AttachmentNotSupport:"プレビューできません。表示するにはダウンロードしてください。",Error_EmptyFile:"空のファイルはアップロードできません。他のファイルを選択してください",Error_GetDetail:"承認の詳細を取得できませんでした。再試行してください",Error_IntervalEmptyEnd:"{{endTime}}を入力してください",Error_IntervalEmptyStart:"{{startTime}}を入力してください",Error_IntervalEmptyStartAndEnd:"{{startTime}}と{{endTime}}を入力してください",Error_LeaveNoBalance:"{{typeName}}は残日数が足りません",Error_NoZero:"休暇時間は 0 より大きい数字を入力してください",Error_Redirect:"既に承認プロセスの中にいるユーザーに申請を譲渡する事はできません。他の人を選択してください。",Flow_Submit:"提出済み",GoMobile:"この機能はデスクトップ版では利用できません。モバイル版をお使いください",ListShowUnread:"結果は {{count}} 件あります",ListSubmit:"申請する",LocaltionTabArea:"地区",LocaltionTabCity:"都市",LocaltionTabCountry:"国",LocaltionTabProvince:"地域",LowVersionTip:"クライアントのバージョンが低すぎるため、証憑書類の詳細を直接開けません。クリックして",More:"さらに表示",NavigationBar:{ApprovalAdmin:"承認管理コンソール",Refresh:"更新",Setting:"設定"},NewApprovalAdmin:"管理コンソール",NextAgreed:"承認済み",NextRejected:"却下済み",NextWithdrawn:"取消済み",No:"キャンセル",NoApprovalGuideButton:"承認管理コンソール・ページへ",NoApprove:"承認申請はありません",NoSelected:"承認が選択されていません",OpenBrower:"ブラウザで開く",OpenDetail:"クリックして詳細を表示",OpenDetailBrowser:"ブラウザを開いて確認",OpenDetailDrawer:"サイドバーを開く",Payer_CommonModalContent:'"{{approvalName}}"の機能を利用するには、ベーシック版が必要です。無料版では利用できません。管理者、 {{adminName}}に連絡し、アップグレードしてください',Payer_CommonModalContent_self:'"{{approvalName}}"の機能を利用するにはベーシック版が必要です。無料版では利用できません。管理コンソールでアップグレードしてください。',Payer_GoPurchase:"購入する",Payer_IKnow:"OK",PickPersonHint:"ユーザーを選択してください",PickTransfereeHint:"譲渡先を選択してください",PleaseFilledFirst:"「{{name}}」を入力してから選択してください",RedirectCheckTitle:"譲渡先:",RedirectReason:"理由",RejectCheckTitle:"「{{type}}」を却下しますか?",RelativeApproverDesc:"{{title}}は {{time}} に作成されました",RelativeApproverTitle:"関連承認申請",ReminderTitle:"通知を送信する承認者を選択",Rollback_All:"一括差し戻し",SearchPlaceHolder:"検索",SelectAll:"全て選択",SelectUpdated:"データが更新されています",SelectedPeopleNumber:"{{number}} 人が選択されました",Selected_Number_people:"{{number}}人が選択済み",ToastCopyFail:"リンクをコピーできませんでした",ToastCopySuccess:"リンクをコピーしました",UpgradeBtn:"クライアントをアップグレードします",ValidateCountryAndProvinceNoEmpty:"国と地域を入力してください",ValidateLeaveConflict:"当該期間の休暇申請は既に出されています。改めて選択してください",ValidateLocationDetailNoEmpty:"詳細な所在地を入力してください",ValidateNoEmpty:"必須",WithdrawCheckTitle:"申請を取り消しますか?",Yes:"ある"},PCListTabApproved:"私の承認",PCListTabCc:"通知された承認",PCListTabSubmit:"承認を提出",PCListTabSubmitted:"提出した承認",PM:"午後",PatchNeedComment:"一部の証憑書類に承認コメントを記入する必要があるため、一括通過はできません。 承認コメントを記入し、再提出することができます。",Pending:"承認中",PicUploadFailedHint:"一部の画像をアップロードできませんでした。再試行してください",PictureCount:"画像 {{count}} 枚",PictureCount_plural:"画像 {{count}} 枚",Popup:{Cancel:"取り消し",Confirm:"OK",DuplicatedApproverHint:"このユーザーは既に承認者です",DuplicatedHandlerHint:"このユーザーはすでに処理者になっています",FailedHint:"承認できませんでした",PickAccepterHint:"譲渡先を選択してください",SuccessHint:"承認されました",ToSelfHint:"自分に譲渡はできません"},PreviewNodes:{ClearContextDescription:"現在のメンバーを承認者として選択する際には、業務ラインの責任者やプロジェクト責任者など、必要な前の段階の承認者が追加されていることと、承認情報のコンテキストが完全かつ明確であることを確認してください。",ConfirmClearContext:"承認者が合理的であること、承認情報のコンテキストが明確であることを確認してください",End:"完了",Failed:"承認プロセスを表示できませんでした。再試行してください",FollowUpProcess:"フォローアッププロセス",InvalidMessage:"{{nodeName}}プロセスの承認者を選択してください",NotEnd:"全ての承認フローを表示されるには、全ての申請情報を記入する必要があります。",Refresh:"再読み込み",Start:"申請",Title:"承認ワークフロー",ValidateIntegrity:"必須項目をすべて記入すると、承認ワークフローが表示されます。"},Preview_PageTitle:"プロセスをプレビュー",Print:{ApprovalContent:"承認内容",ApprovalOperator:"操作者",ApprovalRecord:"操作履歴",AttachCount:"添付ファイル:{{count}} 件",AttachmentCount:"{{count}} 個",CountAs:" (時間で計算すると{{workType}}})",ImageCount:"画像:{{count}} 件",PictureCount:"{{count}} 枚",SerialNumber:"申請番号",TripDuration:" (合計期間 {{interval}})",TripReason:"理由",TripSummary:"出張まとめ",approvalTime:"申請時間",brackets:"「{{name}}」",modifyReasonContent:"理由の説明",nodeName:"ステップ名",print_time:"印刷時間",print_user:"印刷人",qrCodeTips1:"モバイル版{{APP_DISPLAY_NAME}}を使用して",qrCodeTips2:"コードスキャンで承認詳細を確認してください",qrCodeTips3:"{{APP_DISPLAY_NAME}}コードスキャンで確認"},Print_Instance_No_Permission:"証憑書類の権限がありません",Quotes:"「{{innerText}}」",Recalled:"取消済み",Redirected:"譲渡済み",Regulation:{policy:"関連の制度",viewPolicy:"このプロセスの制度を表示",viewPolicy_mobile:"プロセス制度を確認"},RejectWillRecover:"却下後も、元の承認書類は有効のままです",Rejected:"却下済み",RemindCardPreview_BotTitle:"{{user}}が提出した「{{approval}}」は承認待ちです",RemindCardPreview_ButtonCancel:"キャンセル",RemindCardPreview_ButtonSubmit:"リマインダーを送信",RemindCardPreview_LabelContent:"申請理由",RemindCardPreview_LabelUser:"申請者",RemindCardPreview_MainTip:"上記のリマインダーを承認者に送信し、チャットボックスにジャンプします",RemindCardPreview_SendTo:"送信先",Reminder:{Accepter:"通知先",AlreadyApproved:"選択した承認者は承認を処理しました",CantDoReminder:"再通知は24時間内に一回のみできます",ConfirmButton:"OK",DefaultMessage:"私の{{name}}を承認してください",Fail:"リマインドを送信できませんでした。",GetApproversFailed:"再通知を受けとる人のリストを取得できませんでした",MaxCount:"最大 16 人まで再通知できます",NoReminder:"処理催促の担当者がいません",ReminderHint:"チャットメッセージの形で承認者に送ります",Success:"リマインドが送信されました。",Title:"送信先を選択",submit:"送信"},RemoveTask:{DetailDesc:"削除した承認者:{{involvedUserList}}",Fail:"承認者を削除できませんでした",RemoveReason:"理由",RemoveSignHint:"このステップに追加された人のみを削除できます",ResetButton:"リセット",Success:"削除されました"},Repeated:"自動承認",Required:"必須",RestartModalText:"承認を更新する必要があります。更新をクリックして再起動してください",RestrictChat:"管理者がプライベートチャットを規制したので、一対一チャットで再通知できません",Resubmit:{DefinitionDeleted:"コピーできません。この承認は既に削除されました",DefinitionDisabled:"コピーできません。この承認は無効化されました",DefinitionInvisible:"申請する権限がありません。管理者までお問い合わせください",SubmitInAttendance:"勤怠管理アプリで再申請してください"},Resubmit_SubmitInISV:"{{name}}アプリで申請してください",Retry:"再試行",ReviewedList_SortType_Asc:"最初に確認した申請",ReviewedList_SortType_Desc:"最新の確認した申請",RightParen:")",Role_Approver:"承認者",Role_Approver_DONE:"承認済み",Role_Approver_PREVIEW_TODO:"承認待ち",Role_Approver_TODO:"承認中",Role_CC:"通知先",Role_Requester:"申請者",Role_SubmitterDelgate:"申請の代理人",Rollback:{CheckboxMore:" {{num}}人の承認者をすべて表示",Fail:"差し戻しできませんでした。",GetNodeHistoryFail:"過去のステップを取得できませんでした",NoAvailableNodes:"該当ステップは存在しません",PageTitle:"差し戻し先を選択してください。",PickPersonHint:"承認者を選択してください",PleaseChooseANode:"承認のステップを選択してください",Reason:"理由",Rollback:"差し戻す",RollbackAllHint:"差し戻されたステップから再開しますか?",RollbackAlready:"差し戻し済み",RollbackButton:"差し戻す",RollbackEditing:"修正中",RollbackFail:"差し戻しに失敗しました",RollbackListMsg:"承認が差し戻すされました。詳細ページで操作してください。",RollbackNoAvailableNodes:"差し戻すことができるステップは存在しません。",RollbackPageTitle:"差し戻すステップを選択してください",RollbackReason:"差し戻し理由",RollbackSubmit:"提出",RollbackSubmitAgain:"提出",RollbackSuccess:"差し戻しました",RollbackTo:"差し戻し先",RollbackWillContinueWithYou:"差し戻し先で処理された後、直接あなたに再提出されますので、続けて承認をしてください。",SubmitCheckTitle:"本当に{{type}}の申請を再提出しますか?",Success:"差し戻しました。"},RollbackEvent:"差し戻されたステップが承認されました。",SMB:{Form:{Scope:{Account:{Input:{Between:"{{minValue}}から{{maxValue}}までの金額を入力してください",Less:"{{minValue}}以上の金額を入力してください",More:"{{maxValue}}以下の金額を入力してください"}},AllInput:{Between:"{{minValue}}から{{maxValue}}の間でなければいけません",Less:"{{minValue}}以上にしなければいけません",More:"{{maxValue}}を超えてはいけません"},Number:{Input:{Between:"{{minValue}}から{{maxValue}}までの数値を入力してください",Less:"{{minValue}}以上の数値を入力してください",More:"{{maxValue}}以下の数値を入力してください"}},Toast:{Between:"{{name}} {{minValue}} から {{maxValue}} の間でなければなりません",Less:"{{name}} {{minValue}} 以上にすることはできません",More:"{{name}} {{maxValue}} より大きくすることはできません"},Value:{Input:{Between:"{{minValue}}から{{maxValue}}までの値を入力してください"}}}}},Scroll:{FailedToLoad:"読み込みできませんでした",NoApprovals:"承認がありません。"},SecondApprovalTip:"承認スピードが異常に早いので、ご注意ください。",SelectSearch_Complete:"完了",SelectSearch_NoResult:"検索結果はありません。再試行してください",SelectSearch_Placeholder:"検索",Selected:"選択済み",SelectedCancel:"キャンセル",SelectedConfirm:"OK",Semicolon:";",SerialID:"番号",Settings_AggrPush_CcOnly:"「CC 通知」のみ",Settings_AggrPush_CcOnly_Hint:"毎日の新着「CC 通知」は個別に送信されなくなり、固定時間でまとめて通知するようになります(新着「承認待ち」は引き続き個別に送信します)",Settings_AggrPush_EnableHint:"有効にすると、毎日の新着「承認待ち」や「CC 通知」は個別に送信されなくなり、固定時間でまとめて通知するようになります",Settings_AggrPush_PushContent:"送信内容",Settings_AggrPush_PushTime:"送信時間",Settings_AggrPush_SectionTitle:"通知設定",Settings_AggrPush_Switch:"承認メッセージをまとめて送信",Settings_AggrPush_TodoAndCc:"「承認待ち」や「CC 通知」",Settings_AggrPush_TodoAndCc_Hint:"毎日の新着「承認待ち」や「CC 通知」は個別に送信されなくなり、固定時間でまとめて通知するようになります元10時にある「サマリー通知」は閉じられます",Settings_Bot_Muted:"メッセージの総合通知を見逃さないよう、「承認」ボット通知をオンにしてください",Settings_Enter_Bot:"設定する",Settings_OnBoarding_Content:"毎日の新着承認待ちや CC 通知はまとめて通知できます。",Settings_OnBoarding_Title:"承認待ちや CC 通知をまとめて送信できます",Settings_PageTitle:"承認設定",Share_AppPageCardTitle:"ページカード",Share_AppPageLinkTitle:"アプリリンク",Share_AppPageQrTitle:"アプリ QR コード",Share_ClickToTryAgain:"クリックして再試行",Share_CopyBtn:"コピー",Share_MessagePlaceholder:"コメント",Share_QrCodeDesc:"{{APP_DISPLAY_NAME}} でスキャンしてアクセスしてください",Share_SaveBtn:"保存",Share_SelectedCountChats:"選択中:{{select_count}} 件のチャット",Share_SharePlaceholder:"{{APP_DISPLAY_NAME}} でアプリを共有しました。リンクをクリックして確認 {{link}}",Share_ShareSuccessToast:"共有しました",Share_ShareTitle:"共有",Shared:{NotShowTaskFromIMNextTime:"会話からのものです。このコンテンツは次回からは表示されなくなります。"},SidebarWebview_CopyLink:"リンクをコピー",SidebarWebview_LoadFail:"読み込めませんでした",SidebarWebview_OpenInBrowser:"ブラウザで開く",SidebarWebview_Reload:"更新",SignGroup_SameNameValueError:"同一のコントロール名で、異なる値は許可されていません。もう一度記入してください",Signature_agree:"次回の同意時もこの署名を使用",Signature_board_title:"手書き署名",Signature_board_to_use:"署名",Signature_clear:"クリア",Signature_click_refresh:"更新",Signature_complete_tip:"コンピュータで署名を確認してください",Signature_complete_title:"署名完了",Signature_confirm_re_sign:"再署名しますか?",Signature_fail_tip:"携帯電話でコンピュータ上のQRコードを再スキャンし、署名してください",Signature_fail_title:"署名に失敗",Signature_quit:"署名を終了",Signature_rewrite:"再署名",Signature_scan:"モバイル版{{BRAND_DISPLAY_NAME}}コードスキャン署名",Signature_scan_error:"QRコード無効",Signature_scan_success:"成功",Signature_title:"署名",Signature_use:"署名を使用",Signature_use_fail:"署名使用に失敗しました",Signature_use_is_empty:"署名を完了してください",Signature_use_on_here:"ここに署名してください",Signature_use_on_phone:"携帯電話で操作してください",SortType_Asc:"提出順",SortType_Desc:"新着順",Split:", ",StartNode_Title:"申請",Submit:"開始",SubmitModify:"修正を開始",SubmitRequest:"申請",SubmitTime:"提出時間",Submit_Success_Go_Next:"提出しました。次に移動します",Telephone:{Call:" {{number}}を呼出す",CallNotSupported:"現在のデバイスでは、電話はかけられません",Copy:"コピー",FixedLine:"固定電話番号",HistoryRecord:"履歴",HotCountryCode:"よく検索される国/地域",Invalid:"{{type}}のフォーマットが正しくありません",MobilePhone:"携帯電話番号",NoEmpty:"{{type}}は空白にできません",OptionLoadFail:"オプションの読み込みに失敗しました",Phone:"電話番号",SearchCountryCode:"国または地域を検索",SearchEmpty:"関連する結果が見つかりませんでした",SelectArea:"国または地域を選択してください"},TextCollapse_fold:"折りたたむ",TextCollapse_unfold:"展開",ThirdPart:{UnavailableOnMobile:"この機能はモバイル版では利用できません。デスクトップ版をお使いください",UnavailableOnPC:"この機能はデスクトップ版では利用できません。モバイル版をお使いください"},ThirdPart_ClientHintOnCard:"デスクトップ版にて確認してください。",TimeLine:{Handler:{Transfer:{HintText:"処理者が{{oldApprover}}から{{newApprover}}に譲渡されました"}},Node:{Transfer:{ApproverName:{ExtraText:"管理者"},HintText:"承認者が{{oldApprover}}から{{newApprover}}に譲渡されました",HintTextHandler:"処理者が{{oldApprover}}から{{newApprover}}に譲渡されました",Status:"譲渡済み"},TransferCc:{HintText:"被引継ぎ者{{newApprover}}にCc通知します"}}},Timeline:{Handle:"処理"},ToSubmitted:"申請履歴",Toast:{FailedToCopy:"コピーに失敗",SuccessfulToCopy:"コピーしました"},Toast_1:"操作完了しました。次の証憑書類に移動します",Toast_2:"システム異常、しばらくしてから再試行してください",Toast_3:"リクエストに失敗しました。しばらくしてから再試行してください",Transmit_Fail:"転送できませんでした",Transmit_InvolversTitle:"この承認に関連するメンバー",Transmit_OnlyRelatedUsersCanSend:"関連するメンバーのみ転送できます",Transmit_RelevanceHint:"管理者は、情報セキュリティリスクを回避するために、この承認に関連するメンバーにのみ転送できるように設定しています",Transmit_Success:"転送しました",TripGroup:{AddGroup:"出張を追加",GroupTitle:"出張 {{number}}"},Unsupported_content:"Webバージョンはまだ{{featureName}}をサポートしていないので、ミニアプリに行って操作しますか?",Unsupported_tip:"このドキュメントは現在サポートされません",Unsupported_title:"ページジャンプの提示",UpdateClientHint:"{{name}}を バージョン{{version}} にアップデートしてください",UpdateReminderContent:"承認新バージョンが利用可能になりました。再起動してアップデートしてください",UpdateReminderHeader:"アップデートのお知らせ",Upload_AllFiles:"すべての添付ファイル",Upload_FIles:"添付ファイルをアップロード",Upload_Files:"添付ファイルをアップロード",Upload_Images:"画像をアップロード",UserDepartment:"所属部門",Validation:{PleaseFillIn:"{{name}}を入力してください",PleaseFillSth:"まだ未完成です",PleaseRemove:"{{name}}を削除してください",PleaseSelect:"{{name}}を選択してください",PleaseSelectSth:"選択してください"},Web:{Permissions:"現在権限がありません",UnknownException:"未知の異常"},WithdrawModifyCheckTitle:"修正を取り下げると、元の承認書類のステータスに戻ります。取り下げますか?",WithdrawWillRecover:"修正を取り下げると、元の承認書類のステータスに戻ります。取り下げますか",WorkGroup:{AfterLeaveEnd:"この時間帯は選択できません。残業の事後申請は、最長 {{num}} 日以内に発生した分のみ提出可能です。",AfterLeaveEndToday:"この時間帯は選択できません。残業の事後申請は、残業が発生する当日分のみ提出可能です。",AfterLeaveEnd_plural:"この時間帯は選択できません。残業の事後申請は、最長 {{num}} 日以内に発生した分のみ提出可能です。",BeforeLeaveStart:"この時間帯は選択できません。残業申請は、残業が発生する {{num}} 日前に提出しなければなりません。",BeforeLeaveStartToday:"この時間帯は選択できません。残業申請は、残業が発生する当日までに提出しなければなりません。",BeforeLeaveStart_plural:"この時間帯は選択できません。残業申請は、残業が発生する {{num}} 日前に提出しなければなりません。",CalcMethod:"計算方法",CannotOvertime:"残業を申請できません。",CannotSubmitWork:"残業申請を提出できませんでした。残業が発生する時間帯を修正してください。",ConfirmWorkerChange:"残業メンバー変更",Conflict:"選択された残業日付は承認不要、または重複する申請が存在しています。",DailyMaxOvertime:"単日残業上限",DetailTip:"、下記に入れます:",Duration:"残業時間",FromDateToDate:"{{from}} から {{to}} まで",HasOvertimeConflict:"選択中の期間にはすでに残業申請があります。ほかの期間を選択してください。",IntervalExceeded:"残業時間は選択した範囲を超えてはいけません",MonthFormat:"YYYY年MM月",MonthlyMaxOvertime:"月間残業上限",NoAttendanceExist:"勤怠管理アプリが無効なため、残業の申請はできません。管理者に問い合わせてください。",NoNeedApproval:"{{type}}の時間帯は残業を申請する必要がありません。ご質問がありましたら管理者までお問い合わせください",NoPermissionRequest:"{{type}}の時間帯は残業を申請できません。必要に応じて管理者までお問い合わせください",NoZeroDuration:"残業時間は 0 より大きい数字を入力してください",OvertimeConflict:"既に存在する残業期間と重複しています。改めて選択して下さい",OvertimeDate:"残業期日",OvertimeDetail:"詳細",OvertimeExceedMax:{IgnoreOvertime:"超過分は残業時間として計上されません。",Other:"{{name}} は {{range}} の期間中、合計 {{total}} {{unit}} 残業し、既定の {{max}} を超過したため、{{action}}。",ProhibitOvertime:"変更してから再試行してください(この時間帯なら、あと {{remaining}} {{unit}} の残業が申請可能)。",ProhibitOvertimeShort:"変更してから再試行してください",ReceiveReminder:"ご了承ください。",TransferLeave:"超過分は振替休日として計上されます。",You:"{{range}} の期間中、合計 {{total}} {{unit}} 残業し、既定の {{max}}を超過したため、{{action}}。"},OvertimeManagementRange:"次のメンバーは、あなたの管理範囲に含まれていないため、残業を代理申請することができません。残業メンバーから削除してください。",OvertimeRuleDifferent:"次のメンバーの勤怠時間と残業規則は、最初の残業メンバー{{name}}と異なり、まとめて残業を申請できないため、自動的に残業メンバーから削除されました。該当のメンバーの残業申請が必要な場合、別途申請してください。",PerOvertimeDetail:"日別残業時間",TotalWorkTime:"合計残業時間",UnsetWorkRule:"関連した残業ルールがないため、残業の申請はできません。管理者に問い合わせてください。",WeeklyMaxOvertime:"週間残業上限",WorkChangeTips:"実際の残業時間は打刻記録と照らし合わせて計算されます",WorkConflict:"選択された残業日付は承認不要、または重複する申請が存在しています。",alreadyKnown:"わかった",exceedSevenDays:"残業時間が7日を超えました。もう一度選択してください",overtimeTooShort:'管理者に設定された"残業として認められる最短時間"未満なので、残業を申請できません'},WorkGroup_Unit_Day:"日",WorkGroup_Unit_Hour:"時間",WorkGroup_Unit_Minute:"分",admin_modify_empty:"修正可能期間の日数は必須です",admin_modify_title:"修正設定",admin_setting:"{{day}}日以内の承認通過された承認は修正できます",api:{commonRequestFailed:"エラー発生、最新化して再試行してください",processing:"読み込み中…",requestFailed:"読み込めませんでした。再試行してください",timeout:"時間切れで読み込めませんでした。再試行してください"},apply:"申請者","approval-MP_MaxLinesWhenWidgetUseExternal_Desc":"明細内のウィジェットは外部データソースを使用しています。最大 200 件の明細を追加できます。","approval-admin_AfterRejectedEditForResubmit_Descapproval-admin_Desc":"承認者が却下すると、提出者はワークフローを編集して再申請できます。","approval-admin_AfterRejectedProcessEnd_Descapproval-admin_Desc":"承認者が却下すると、ワークフローが中止されます。","approval-admin_AllBelong_Option":"のすべては以下に所属する","approval-admin_AtSharePermit_Confirm":"送信","approval-admin_AtSharePermit_Desc":"コメントで {{name}} をメンションすると、メンションされたメンバーがあなたと同じ表示権限を付与されます。","approval-admin_BeginConfirmApproval_Desc":"承認を新規作成","approval-admin_BelongTo_Option":"以下に所属する","approval-admin_EarlierThan_Option":"次の時間より早い","approval-admin_LaterThan_Option":"次の時間より遅い","approval-admin_LocatesIn_Option":"次の場所に位置する","approval-admin_MaxLinesWhenWidgetUseExternal_Desc":"明細内のウィジェットは外部データソースを使用しています。最大 200 件の明細を追加できます。","approval-admin_MultiLevelSupervisor_Opt":"連続多職階の部門責任者","approval-admin_NoCurrency_Placeholder":"通貨種類が設定されていません。","approval-admin_NoEarlier_Option":"次の時間より遅いか等しい","approval-admin_NoLater_Option":"次の時間より早いか等しい","approval-admin_NotBelong_Option":"以下に所属しない","approval-admin_NotBelong_Option_Plural":"以下に所属しない","approval-admin_NotInclude_Option":"次を含まない","approval-admin_NotInclude_Option_Plural":"次を含まない","approval-admin_NotLocateIn_Option":"次の場所に位置しない","approval-admin_OneBelongs_Option":"のどちらは以下に所属する","approval-admin_PleaseSelectCurrency_Placeholder":"通貨種類を選択","approval-admin_RemedyDuration":"打刻修正の猶予期間","approval-admin_RemedyNumber_For_Month":"当月の打刻修正回数","approval-admin_SharePermission_Title":"承認権限を共有しますか?","approval-admin_ShowOnlyBatchProcess_Desc":"一括処理機能が有効な承認のみを表示","approval-admin_SubmitTime":"承認提出時間","approval-admin_TimeFormatIs_Option":"次の時間と等しい","approval-admin_TypeIs_Option":"次と一致する","approval-admin_TypeIsnt_Option":"次と一致しない","approval-admin_no_Button":"いいえ","approval-admin_yes_Button":"はい","approval-mp_100LinesImported_Toast":"100 件のインポートが完了しました。","approval-mp_AbnormalDataGenerated_Title":"承認にかかる時間の明細データが作成されました","approval-mp_AccountName_Title":"アカウント名","approval-mp_AccountNo_Title":"アカウント","approval-mp_Action_FieldName":"操作","approval-mp_ActivateSuccess_Title":"有効になりました","approval-mp_Activate_Button":"有効にする","approval-mp_Activated_Tag":"有効","approval-mp_Add1Person_Desc":"1 人のみを追加可能","approval-mp_AddApproval_Button":"承認を追加","approval-mp_AddFieldAvailable_Tooltip":"このフォームには設定可能な必須フィールドがありません。フォーム設計で追加してください。","approval-mp_AddQuickText_Button":"登録","approval-mp_AddQuickText_DescButton":"登録","approval-mp_AddQuickText_Tabs":"定型文を登録","approval-mp_AddRange_Button":"範囲を追加","approval-mp_AddTemplateTitle_Button":"{{ApprovalTemplateTitle}}を追加","approval-mp_AddTemplate_Title":"テンプレートを追加","approval-mp_AddTitle_Button":"{{ApprovalTemplateTitle}}を追加","approval-mp_Add_Button":"追加","approval-mp_AdvancedFilter_Button":"高度な検索","approval-mp_AdvancedSearch_Title":"高度な検索","approval-mp_AdvisorReviewAfterRequest_Toast":"送信すると、申請書は依頼対象に転送されます。","approval-mp_Advisor_Title":"依頼対象","approval-mp_AfterDeleteView_Desc":"削除すると、管理者のみがこの申請書のデータを閲覧またはエクスポート可能です。ほかのメンバーは閲覧できなくなります。","approval-mp_AfterRangeTurnedOn_Desc":"有効にすると、提出者は以下の範囲に含まれる承認書のみ関連付け可能。","approval-mp_AfterTheModify_Desc":"編集後","approval-mp_Agree_Button":"同意","approval-mp_AllApprovals_Title":"「{{name}}」のすべての承認","approval-mp_AllApproversMustApprove_Desc":"承認者全員が順次に承認を行う","approval-mp_AllApproversMustProcess_Desc":"承認者全員が順次に処理を行う","approval-mp_AllStatus_Placeholder":"すべて","approval-mp_AllowPrinterAccess_Desc":"サードパーティアプリの Print Assistant は現在の承認データにアクセスできます。同意した後にのみ、管理者の設定したカスタム印刷テンプレートを利用できます。","approval-mp_AppKeyUnavailable_Desc":"キーが失効したため、アクセスできません。","approval-mp_ApplicationNo_FieldName":"申請番号","approval-mp_ApplyPemissions_Title":"承認アプリが以下の権限を申請","approval-mp_ApprovalBenefits_Desc":"休暇、経費精算、支払い、契約、仕入れなどのワンストップソリューションとして、デスクトップ版およびモバイル版でのリアルタイム同期処理を可能にするほか、承認者が効率的に意思決定を行うよう、ワンクリック/ワンタップでグループを作成できます。","approval-mp_ApprovalDeleted_Desc":"この承認は削除されました","approval-mp_ApprovalDeleted_Title":"この承認は削除されました。","approval-mp_ApprovalDetailsFailed_Title":"承認に関する詳細データを生成できませんでした","approval-mp_ApprovalManagement_Tab":"承認管理","approval-mp_ApprovalMatrix_Option":"承認マトリックス","approval-mp_ApprovalName_FieldName":"承認名","approval-mp_Approved_Placeholder":"承認済み","approval-mp_ApproverView_Desc":"承認者ビュー","approval-mp_Approving_Placeholder":"承認中","approval-mp_AreUSureUnmark_Title":"マークを取り消しますか?","approval-mp_AreYourSureDelete_Title":"「{{approval}}」を削除しますか?","approval-mp_AskForOpinionsFrom_Desc":"{{name}}のコメントを依頼","approval-mp_AskForOpinions_Button":"コメント依頼","approval-mp_AskForOpinions_Tag":"コメント依頼","approval-mp_AssignYouAsDelegateHandler_Title":"{{Name}}が{{RequestName}}の処理をあなたに依頼しました。","approval-mp_AtLeastNum_Desc":"「{path}」は最低でも {length} つが必要です。","approval-mp_AttachmentUploadLimit_Toast":"最大{{count}} 個までアップロードできます","approval-mp_Attachment_Download":"ダウンロード","approval-mp_AutoApproved_Desc":"ユーザーが自動承認を有効化しました。","approval-mp_AutoApproved_Tag":"自動承認","approval-mp_AutoCopyCantEdit_Desc":"承認を申請すると、ドキュメントのコピーの所有権は {{BRAND_DISPLAY_NAME}} に移行され、編集できなくなります。","approval-mp_AutomaticApproval_Title":"自動承認","approval-mp_Bank_Title":"口座開設の銀行","approval-mp_BatchFailReasonNum_toast":"一括承認対象(計:{{totalCount}} 件)のうち、{{failCount}} 件が{{reason}}ため、承認されませんでした。「処理待ち」で確認してください。","approval-mp_BatchFailReason_toast":"一括承認対象(計:{{totalCount}} 件)は、{{reason}}ため、いずれも承認されませんでした。「処理待ち」で確認してください。","approval-mp_BatchFailReasons_toast":"一括承認対象(計:{{totalCount}} 件)のうち:","approval-mp_BatchImport_Button":"一括インポート","approval-mp_BatchImporting_Title":"一括インポート中","approval-mp_BatchProcessRejectedApproval_Desc":"却下された承認は一括処理できません。","approval-mp_BeforeTheModify_Desc":"編集前","approval-mp_CCRecipientRunFlow_Desc":"転送先が「処理待ち」でこの承認申請書を確認し、「了解しました」をクリックすると、ワークフローが継続されます。","approval-mp_CanEdit_Tag":"編集可能","approval-mp_CancelAddQuickText_Button":"キャンセル","approval-mp_CancelDeleteWidget_CardButton":"キャンセル","approval-mp_Cancel_Button":"キャンセル","approval-mp_CannoInitiate_Desc":"申請権限がありません","approval-mp_CannotInitiateDeactived_Desc":"停止された承認は申請できません","approval-mp_CannotInitiateDeleted_Desc":"削除された承認は申請できません","approval-mp_CantFind_Desc":"申請方法がわかりません?","approval-mp_CantJoinContactAdmin_toast":"内部用チャットグループに参加できません。管理者に連絡してください。","approval-mp_CascadingDropdown_ICUcontent":"多階層ドロップダウン","approval-mp_CheckOtherTabs_Desc":"他の承認種類を見る、または承認を提出できます。","approval-mp_ChooseCarefulTips_Desc":"ユーザーに頻繁にメッセージを送信しないように、慎重に選択してください。詳細はこちら","approval-mp_ChooseVariousTemplates_Tooltip":"すぐに使える豊富なテンプレートを備えます。","approval-mp_ClaimRequest_Button":"引受","approval-mp_ClickButtonBelow_Desc":"下のボタンをクリック","approval-mp_ClickHereRedirectMe_Button":"リダイレクトする","approval-mp_ClickHere_Link":"ここをクリックしてください","approval-mp_ClickIUnderstand_Tooltip":"「了解しました」をクリックすると、ワークフローが続行されます。","approval-mp_ClickRetry_Button":"クリックして再試行","approval-mp_ClickSubmitRequest_Title":"「{{approvalName}}」","approval-mp_ClickSubmit_Desc":"下のボタンをクリックして提出してください","approval-mp_ClickToCopyErrorCode_Tooltip":"クリックしてエラー情報をコピー","approval-mp_CompleteDateTime_FieldName":"完了日時","approval-mp_Completed_Desc":"完了済み","approval-mp_Completed_Tag":"処理済み","approval-mp_ConfirmBotCard_Button":"確認済み","approval-mp_ConfirmToImport_CardTitle":"インポートしてよろしいですか?","approval-mp_ContinueCreate_Button":"再度作成","approval-mp_ContinueEditingBrowser_CardDesc":"ブラウザで開いて編集を続ける","approval-mp_CountryRegion_Title":"国/地域","approval-mp_CreateApprovalProcess_Title":"承認ワークフローを作成","approval-mp_CreateApproval_Options":"承認を作成","approval-mp_CreateCopyAdd_Button":"コピーして追加","approval-mp_CreateProcessSteps_Desc":"「承認管理」の「プロセスを新規作成」をタップし、選択したテンプレートを「有効」にすることで、プロセスを作成できます。","approval-mp_Create_Button":"作成","approval-mp_Currency_Title":"通貨種類","approval-mp_CurrentApprover_FieldName":"現在の承認者","approval-mp_CurrentStage_FieldName":"現在のステップ","approval-mp_CurrentVerOutdated_Desc":"現在利用中の{{APP_DISPLAY_NAME}}のバージョンが低いため、プリントプレビュー機能は利用できません。{{APP_DISPLAY_NAME}}を更新してから、もう一度お試しください","approval-mp_DataContainError_ErrorMessage":"{{num}} 件のデータに異常があります。修正してください。","approval-mp_DataNotAffected_Desc":"申請書を削除しても、勤怠と人事の関連データは削除されません。","approval-mp_DataOverwrite_ExcelDesc":"インポートすると、明細表にあったデータは上書きされます。","approval-mp_DateFormal_ExcelDesc":"日付は必ず【YYYY-MM-DD】【YYYY-MM-DD hh:mm】の形式で入力してください。","approval-mp_Deactivate_Button":"無効にする","approval-mp_Deactivated_Tag":"無効","approval-mp_Deactived_Desc":"この承認は停止されました","approval-mp_Deactived_Title":"この承認は無効化されました。","approval-mp_DefaultBranch_Desc":"他の分岐の条件がどれも満たされない場合に進む分岐です。","approval-mp_DefaultBranch_Title":"いずれでもない場合","approval-mp_DelegatesOn Behalf_Desc":"{{delegate}}に代わって処理","approval-mp_DelegatesOnBehalf_Desc":"{{delegate}}に代わって処理","approval-mp_DeleteQuickText_Button":"削除","approval-mp_DeleteQuickText_CardTitle":"削除しますか?","approval-mp_DeleteSelected_Button":"選択中のアイテムを削除","approval-mp_DeleteTerminate_Desc":"承認ワークフローを削除しました。","approval-mp_DeleteWidget_CardButton":"削除","approval-mp_DeleteWidget_CardDesc":"このフィールドは承認通知に表示されるように設定されています。削除すると、「{{location1}} > {{location2}}」でも削除されます。","approval-mp_DeleteWidget_CardTitle":"「{{widget}}」を削除しますか?","approval-mp_Delete_FieldName":"削除","approval-mp_Delete_Tooltip":"削除","approval-mp_DeletedContactAdmin_Desc":"詳細は管理者{{admin}}にお問い合わせください。","approval-mp_DeletedContactAdmin_Desc1":"詳細は管理者","approval-mp_DeletedContactAdmin_Desc2":"にお問い合わせください。","approval-mp_DeletedRequest_Desc":"承認申請書を削除しました。","approval-mp_Deleted_Tag":"削除済み","approval-mp_Delimiter_Desc":"、","approval-mp_DesktopSubmit_Toast":"デスクトップ版で提出してください","approval-mp_DetailTableImport_CardButton":"インポート","approval-mp_Detail_CardButton_v2":"詳細見る","approval-mp_DetailsExportSetting_Button":"設定","approval-mp_DiagnosisDetails_Desc":"「効率診断」をタップすると、チーム/個人の効率データと傾向分析を確認できます。","approval-mp_DisplayEqualOne_Tooltip":"少なくとも 1 つのフィールドが必要です。","approval-mp_DisplayFive_Tooltip":"最大 5 つのフィールドが表示可能です。","approval-mp_DisplayThree_Tooltip":"最初の 3 つのフィールドのみを表示","approval-mp_DownloadFailDetails_Toast":"承認の詳細","approval-mp_DownloadFailView_Toast":"PDF ファイルをダウンロードできませんでした。{{details}}を確認してください。","approval-mp_DownloadPDFFail_Toast":"PDF をダウンロードできませんでした。","approval-mp_DownloadPDFRetry_Button":"再試行","approval-mp_DownloadPDF_Tab":"PDF でダウンロード","approval-mp_DownloadedPDF_Toast":"PDF をダウンロードしました。","approval-mp_DownloadingPDFBot_Toast":"PDF をダウンロードしています。ダウンロードが完了したら承認ボットよりお知らせします。","approval-mp_DownloadingPDF_Toast":"PDF をダウンロードしています。しばらくお待ちください。","approval-mp_Edit Document_Button":"ドキュメントを編集","approval-mp_EditFormDesign_Button":"フォーム設計へ","approval-mp_EditQuickText_Button":"編集","approval-mp_EditQuickText_Title":"定型文を編集","approval-mp_EditRequiresRevoking_Title":"このドキュメントを編集するには、先にワークフローを撤回してください。","approval-mp_EnableAutomaticApproval_Desc":"設定を有効にすると、部下が申請した承認ワークフローが自動的に承認されます。","approval-mp_EnableAutomaticApproval_Title":"自動承認の設定","approval-mp_EndDate_Placeholder":"終了日付","approval-mp_EnsureEditingComplete_CardDesc":"インポートすると、明細表にあったデータは上書きされます。編集が完了しているか、確認してください。","approval-mp_EnsureValidation_ExcelDesc":"検証が承認されるように、フォームのフィールドを編集、追加または削除をしないでください。","approval-mp_EnterAmount_Placeholder":"金額を入力","approval-mp_EnterApprovalName_Placeholder":"承認名を入力してください。","approval-mp_EnterCorrectDocsLink_ErrorMessage":"正しいドキュメントンリンクを入力してください。","approval-mp_EnterQuickText_ErrorMessage":"定型文を入力してください。","approval-mp_EnterQuickText_Placeholder":"入力してください","approval-mp_EnterReasonCanAtMention_placeholder":"理由を入力してください。メンバーを @ でメンションすることもできます。","approval-mp_EnterReason_placeholder":"理由を入力してください。","approval-mp_EnterTemplateName_Placeholder":"テンプレート名を入力してください。","approval-mp_ErrorCodeCopied_Toast":"コピーしました。","approval-mp_ErrorCode_Desc":"エラー情報:","approval-mp_ErrorMessage":"承認ワークフローのプレビューを実行できませんでした。再試行してください。","approval-mp_ExpiredAndClosed_Tag":"中止","approval-mp_ExportAll_Button":"すべてをエクスポート","approval-mp_ExportDetailedData_Link":"明細データをエクスポート","approval-mp_ExportRecord_Button":"エクスポート履歴","approval-mp_ExportSelected_Button":"選択中のアイテムをエクスポート","approval-mp_ExportingBotPush_Toast":"データをエクスポートしています。完了後に、承認ボットからの通知が届きます。","approval-mp_ExternalContactNotAllow_Toast":"外部連絡先は追加できません。","approval-mp_ExternalDataSource_ICUcontent":"外部データソース","approval-mp_ExternalNoImport_ExcelDesc":"外部データソースを利用する単一選択・複数選択は一括インポートできません。「承認センター」ページで個別に選択してください。","approval-mp_FailedProceed_Desc":"添付ファイルがアップロードできませんでした。このまま提出しますか?","approval-mp_FileEditedResubmit_Desc":"{user_name} が承認フォームの {filename} を編集しました。この承認は再提出しなければなりません","approval-mp_FileMax500_Desc":"1 つのファイルは最大 {{size}} MB まで","approval-mp_FileMax500_Tooltip":"1 つのファイルは最大 {{size}} MB まで","approval-mp_FirstTimePartnership_Tag":"初回取引","approval-mp_FivePersonConversation_Desc":"{{name}}、{{name}}、{{name}}、{{name}}、{{name}} とのグループチャットを作成し、以下のリマインダーを送信します。","approval-mp_FourPersonConversation_Desc":"{{name}}、{{name}}、{{name}}、{{name}} など {count} 人のグループチャットを作成し、以下のリマインダーを送信します。","approval-mp_FromSmartProcessNoConfiguration_Desc":"元スマートプロセスルールは結果を設定する必要がありません。","approval-mp_GainPermissionMakeCopy_ErrorMessage":"ドキュメント所有者のみ追加できます。コピーの作成権限を付与するように、所有者 {name} に依頼してください。","approval-mp_GenerateNotAgain_Toast":"データ作成中…繰り返して操作しないでください","approval-mp_GenerateTeamAbnormalDetails_Desc":"チームエラーに関する詳細データ(タイムアウト、即時承認、代理承認)を生成中…完了後に、承認ボットからの通知が届きます","approval-mp_GetApprovalDataSelect_Desc":"タイムアウト、即時承認、代理承認に関するデータを入手したい場合、","approval-mp_GoExport_Button":"エクスポート","approval-mp_GoSubmit_Button":"提出","approval-mp_GoToApproval_Button":"承認アプリに移動","approval-mp_GotIt_Button":"OK","approval-mp_Handlerdelegation_Desc":"他のメンバーに代わって処理","approval-mp_HoldShareAccess_Desc":"共有するには、アイコンを長押ししてください。","approval-mp_IUnderstandBotCard_Button":"了解しました","approval-mp_IUnderstand_Button":"了解しました","approval-mp_ImageAttachmentFormulas_ExcelDesc":"画像、添付ファイル、数式はインポートできません。","approval-mp_ImageMax30_Toast":"最大 {{count}} 枚の画像をアップロード可能","approval-mp_ImageNumSize_Desc":"50 MB 以内の画像を最大 9 枚を添付可能","approval-mp_ImageNum_Desc":"{count} 枚の画像","approval-mp_ImageNum_Desc_Plural":"{count} 枚の画像","approval-mp_ImageSize500_Toast":"1 つの画像は最大 {{size}} MB まで","approval-mp_ImageUploadLimit_Toast":"最大{{count}} 枚までアップロードできます","approval-mp_ImportantCC_Tag":"重要 Cc","approval-mp_IncompleteNotificationSettings_Desc":"承認通知の設定が未完了","approval-mp_InitiateAdmin_Desc":"承認を申請する権限がありません。管理員に連絡してください。","approval-mp_InitiateWithCopy_Checkbox":"ドキュメントのコピーで申請を行う","approval-mp_InstructionCCMarking_Desc":"重要 Cc マークについての説明","approval-mp_InstructionExplanation_Desc":"関連付け範囲制限を有効にすると、メンバーが承認を提出する際に、指定範囲内の承認書のみを関連付け可能。表示フィールドが設定された場合、該当のフィールドは現在の承認書に表示されます。","approval-mp_Instructions_ExcelDesc":"記入方法","approval-mp_Instructions_Title":"使用について","approval-mp_InvolveImportantCCWait_Tooltip":"この承認には重要 Cc があります。処理完了までしばらくお待ちください。","approval-mp_KeywordAdvancedSearch_Desc":"キーワードを入力、または、高度な検索で承認申請を検索してください。","approval-mp_KeywordsOrAdvancedSearch_Desc":"キーワードを入力して検索する、または高度な検索を利用してください。","approval-mp_LearnAboutApproval_Title":" {{BRAND_DISPLAY_NAME}}を知る","approval-mp_LimitRange_Switch":"承認を関連付け可能な範囲を制限","approval-mp_LinkApprovalFirst_Desc":"承認ワークフローを関連づけてから選択してください。","approval-mp_LinkApproval_Placeholder":"承認を関連付け","approval-mp_LinkBlocked_Desc":"このリンクは、安全ではない可能性があるため、{{BRAND_DISPLAY_NAME}}にブロックされました。","approval-mp_LoadingFailedClickToRetry_Desc":"読み込みできませんでした。{{クリックして再試行するか}}、{{元のページを開いてください}}。","approval-mp_LocateStepReApprove_toast":"指定ステップでの処理が終わると、次のステップの承認作業へ順次移行します。","approval-mp_MakeCopyAddDocs_Button":"コピーを作成し、追加する","approval-mp_MakeCopyTransferOwnership_Desc":"承認を開始すると、ドキュメントコピーの所有権は承認者に譲渡され、あなたは編集できなくなります。","approval-mp_MarkImportant_Checkbox":"重要ワークフローとしてマーク","approval-mp_MarkedImportant_Tooltip":"重要ワークフローとしてマークされました。","approval-mp_MaxNumberFiles_Toast":"最大 {{oldcount}} 個のファイルをアップロードできます。{{APP_DISPLAY_NAME}}にアップグレードすると、最大 {{newcount}} 個のファイルがアップロードできます。","approval-mp_MaxSizeFiles_Toast":"1 個のファイルは最大 {{oldsize}} MB まで、{{APP_DISPLAY_NAME}}にアップグレードすると、最大 {{newsize}} MB までアップロードできます。","approval-mp_MobileDataDeletedContactAdmin_EmptyState":"データソースが削除されています。管理者{{name}}に連絡してください。","approval-mp_MobileDataDeletedContactAdmin_ErrorMessage":"データソースが削除されています。管理者{{name}}に連絡してください。","approval-mp_MobileNoResults_EmptyState":"検索結果がありません。","approval-mp_MobileSelectLastWidget_Tooltip":"{{lastWidget}}を選択してください。","approval-mp_MobileSubmit_Title":"この申請書は現在モバイル版でしか提出できません。","approval-mp_MobileSubmit_Toast":"モバイル端末で提出してください","approval-mp_MobileUnableLoadReTry_EmptyState":"読み込めませんでした。{{tryAgain}}","approval-mp_MobileVisit_Desc":"Feishu でスキャンしてアクセスしてください","approval-mp_ModalComformText_GroupTimeCheck":"OK","approval-mp_ModalContent_OutGroupTimeCheck":"既存の外出申請時間と重複しています。もう一度時間を選択してください。","approval-mp_ModalContent_TripGroupTimeCheck":"既存の出張申請時間と重複しています。もう一度時間を選択してください。","approval-mp_ModalTitle_GroupTimeCheck":"ヒント","approval-mp_ModifiedSameSerial_Placeholder":"申請書が編集された場合、シリアルナンバーは変更されません。","approval-mp_ModifiedStuff_Desc":"内容を編集","approval-mp_ModifyApproval_Options":"承認を編集","approval-mp_ModifyDetails_Subtitle":"詳細を編集","approval-mp_MoreFilters_Button":"絞り込む","approval-mp_MoreSources_Title":"その他の提出元","approval-mp_MoreSubordinates_Title":"その他のメンバー","approval-mp_MoreTypes_Title":"その他の承認の種類","approval-mp_MultiMemberConflictInterest_Toast":"メンバー {メンバー名} などの {num} 人は関連法人と利益相反の関係にあります。","approval-mp_MultiPersonConversation_Desc":"{{name}}、{{name}}、{{name}}、{{name}}、{{name}} など {count} 人のグループチャットを作成し、以下のリマインダーを送信します。","approval-mp_NetworkFailed_Title":"ネットワークのリクエストが失敗しました。","approval-mp_NoAbnormalFound_Desc":"MM-DD-YYYYからMM-DD-YYYYまでの間、チームにはタイムアウト、即時承認、代理承認に関する異常データがありません。データについての不明点がありましたら、{click here}","approval-mp_NoAccessCheckLink_Desc":"他のチームのページにアクセスできません。リンクが正しいかどうか確認してください","approval-mp_NoAccessPermission_Desc":"この承認ワークフローを確認する権限がありません","approval-mp_NoAccessToDetails_Desc":"権限がありません。","approval-mp_NoAccess_Desc":"アクセス権限がありません","approval-mp_NoAccess_Title":"アクセス権限がありません。","approval-mp_NoBatchProcessOpinionsRequest_Tooltip":"ヒアリング中の申請は一括処理できません。","approval-mp_NoDisplayPayeeInfo_Desc":"銀行ダイレクトシステムによる受取ではない場合、以下の情報を空欄とする","approval-mp_NoDisplayPayerInfo_Desc":"銀行ダイレクトシステムによる出金ではない場合、以下の情報を空欄とする","approval-mp_NoDocsAccessApplyFirst_Toast":"当該ドキュメントが所属するフォルダの編集権限がありません。権限を申請するか、またはコピーを作成してください。","approval-mp_NoEditCrossTenantRequest_Toast":"関連組織の申請書は現在編集できません。","approval-mp_NoFieldAvailable_Tooltip":"このフォームには設定可能なフィールドがありません。","approval-mp_NoFoundResult":"関連内容が見つかりませんでした。","approval-mp_NoInitiate_Title":"申請権限がありません。","approval-mp_NoJumpTo_Toast":"リダイレクト機能はまだ利用できません。","approval-mp_NoPermissionCannotSubmit_Tooltip":"申請権限がないため、この承認を提出できません","approval-mp_NoPermissionContactAdmin_Desc":"この承認を申請する権限がありません、管理者に連絡してください","approval-mp_NoPermissionProcessed_ErrorMessage":"申請書を処理する権限がない、または、他のメンバーによって処理されたため、この申請書を処理する必要がなくなりました。","approval-mp_NoPermissions_Menu":"アクセス権限がありません","approval-mp_NoQuickText_Desc":"定型文は登録されていません","approval-mp_NoReminderToExternal_Toast":"外部の承認者にリマインダーを送信できません。","approval-mp_NoResultsForICU_Desc":"「{{text}}」に関連する結果が見つかりませんでした。","approval-mp_NoTeamAccess_Desc":"他チームの内部アプリにアクセスできません。","approval-mp_No_Button":"いいえ","approval-mp_NoneAccountName_Desc":"なし","approval-mp_NoresultsFoundTryAgain_ErrorMessage":"関連ドキュメントが見つかりませんでした。再度入力してください。","approval-mp_NotNowUpdate_Button":"後で","approval-mp_NotOwnerMakeCopy_Desc":"ドキュメントの所有者ではないため、コピーを作成してから追加してください。なお、承認を開始すると、ドキュメントコピーの所有権は承認者に譲渡され、あなたは編集できなくなります。","approval-mp_NotOwnerUseCopy_Desc":"このドキュメントの所有者ではないため、ドキュメントのコピーを使用して承認を開始してください。承認を申請すると、ドキュメントのコピーの所有権は {{BRAND_DISPLAY_NAME}} に移行され、編集できなくなります。","approval-mp_NotSupportBatchProcess_Tooltip":"重要Ccの申請書は一括処理できません","approval-mp_NotificationAdd_Button":"追加","approval-mp_NotificationCustomSettings_Option":"カスタム設定","approval-mp_NotificationDefaultSettings_Option":"デフォルト設定","approval-mp_NotificationLearnMore_Button":"詳細について","approval-mp_NotificationSelect_Placeholder":"選択してください","approval-mp_NotificationSettings_Title":"通知設定","approval-mp_NumDataImported_Toast":"{num} 件のデータをインポートしました。","approval-mp_NumberCopied_Toast":"番号をコピーしました。","approval-mp_OKGoUpdate_Button":"今すぐ更新","approval-mp_OffLinkAny_Desc":"無効にする時、提出者は権限範囲内の任意の承認書を関連付け可能。","approval-mp_OnceClaimRequest_Tooltip":"引受けたタスクはあなたが処理し、同じステップにいる他の承認者が承認を行うことができません。申請者に引き受け通知が届きます。","approval-mp_OneMemberConflictInterest_Toast":"メンバー {メンバー名} は関連法人と利益相反の関係にあります。","approval-mp_OnePersonConversation_Desc":"{{name}} とのグループチャットを作成し、以下のリマインダーを送信します。","approval-mp_OneQuickText_Tooltip":"1 件しかないため、ドラッグできません。","approval-mp_OnlyApprovedOnes_Switch":"承認が通過した申請書のみ関連付け可能。","approval-mp_OnlyShowAbnormal_Desc":"現在、チーム内のタイムアウト、即時承認、代理承認に関する詳細データのみ確認できます。最大 N 件表示可能。 データについての不明点がありましたら、{click here}","approval-mp_OpenDoc_Tooltip":"ドキュメントを開く","approval-mp_OpinionsConfirm_Button":"送信","approval-mp_Opinions_Tabs":"依頼対象からの承認コメント","approval-mp_OriginalFieldDeleted_ErrorMessage":"フォームに設定されていたフィールドが削除されました。使用するには再度追加してください。","approval-mp_OtherOptional_Title":"その他の選択肢","approval-mp_OtherTeamDetaisFailedRetry_Desc":"{name} のチームが {time} での詳細データを生成できませんでした。アプリで再度エクスポートしてください","approval-mp_OutsideRequestOwner_Toast":"{{staff_names}} は外部ユーザーであるため、追加できません。","approval-mp_OwnerChangeUseCopy_Desc":"承認を申請すると、ドキュメントの所有権は {{BRAND_DISPLAY_NAME}} に移行され、編集できなくなります。","approval-mp_PCSubmit_Title":"この申請書は現在デスクトップ版でしか提出できません。","approval-mp_PCVisit_Desc":"デスクトップ版で提出してください。","approval-mp_ParallelNum_Desc":"{num}/{numTotal}","approval-mp_ParallelRequireAllApproval_Desc":"現在、{num} 個のステップが承認中です。すべてのステップで承認操作が必要です。","approval-mp_ParallelRequireAllApproval_Tooltip":"{num} 個のステップが同時進行中です。すべて承認されるまで次へは進みません。","approval-mp_PayeeAccountInfor_Title":"受取先のアカウント情報","approval-mp_PayeeInfo_Tag":"受取情報","approval-mp_PayerAccountInfor_Title":"送金元のアカウント情報","approval-mp_PayerInfo_Tag":"出金情報","approval-mp_PaymentNumberCopy_Desc":"番号","approval-mp_PaymentTotalActualAmount_Desc":"合計{{tableName}}-{{tableTitle}}","approval-mp_PlzShareOpinions_CardTitle":"{{name}}が承認している「{{approvalProcess}}」について、あなたのコメントを伺っています。","approval-mp_PreviewModedata_Toast":"実際のデータではなく、プレビューデータが表示されています。","approval-mp_PreviewNoDetails_Toast":"現在、プレビューモードでは、詳細を確認する機能がサポートされていません。","approval-mp_PreviewNoExport_Toast":"プレビューデータはエクスポートできません。","approval-mp_PreviewNoPublish_Desc":"プレビューモードで記入された内容は公開されません。","approval-mp_PreviewNotActual_Toast":"これはプレビュー効果であり、実際のデータではありません。{{ViewActualData}}","approval-mp_PrintPreview_Title":"印刷プレビュー","approval-mp_ProceedSubmit_Button":"提出へ","approval-mp_ProcessAnalysis_Button":"データ分析","approval-mp_ProcessNotInUse_Switch":"廃止したワークフロー","approval-mp_Processing_Tag":"処理中","approval-mp_Prompt_Desc":"ヒント","approval-mp_QuickText_Button":"定型文","approval-mp_ReadOnly_Tag":"閲覧のみ","approval-mp_ReasonAPIError_Desc":"サードパーティ API エラーの","approval-mp_ReasonIncompleteField_Desc":"フォームフィールドの値が未編集の","approval-mp_ReasonNetworkTimeout_Desc":"ネットワークタイムアウトの","approval-mp_RejectAndSendToSubmitter_Desc":"却下し、申請者まで差し戻す","approval-mp_RejectToSubmitNode_Desc":"却下・差し戻し先","approval-mp_RejectToSubmitter_Desc":"却下・差し戻し先","approval-mp_Rejected_Placeholder":"拒否","approval-mp_RelatedEmployees_Title":"関連メンバー","approval-mp_RemindToApprover_Desc":"次のリマインダーを {{name}} に送信し、彼/彼女との会話にジャンプします。","approval-mp_RequestClaimed_Button":"引受済み","approval-mp_RequestClaimed_Desc":"引受済み","approval-mp_RequestExpired_CardButton":"期限切れ","approval-mp_RequestFiltered_Toast":"フィルタリングしました。","approval-mp_RequestRejectedByName_CardTitle":"{{templateName}}は{{Name}}に却下されました。処理してください。","approval-mp_RequestRejected_Desc":"承認が却下されました。詳細画面で操作してください。","approval-mp_RequestRestored_Toast":"再開されました","approval-mp_RequestSubmitByName_FileName":"{{requesterName}}より提出した{{requestName}}{{requestID}}","approval-mp_RequestUnderReViewNoRepeat_Tooltip":"現在審査中です。しばらくお待ちください。","approval-mp_RequesterEditedResubmit_Desc":"申請者 {{user_name}} が {{filename}} の編集権限を申請しました。この承認を再提出してください。","approval-mp_Required_Option":"必須","approval-mp_Reset_Button":"リセット","approval-mp_RestoreBeforeMMDDYY_CardDesc":"{{year}}年{{month}}月{{day}}日までに手動で承認を再開できます。","approval-mp_RestoreBeforeMMDDYY_toast":"{{year}}年{{month}}月{{day}}日までに {{restoreThisRequest}}できます。","approval-mp_RestoreBeforeMMDD_CardDesc":"{{month}}月{{day}}日までに手動で承認を再開できます。","approval-mp_RestoreBeforeMMDD_toast":"{{month}}月{{day}}日までに {{restoreThisRequest}} できます。","approval-mp_RestoreExpiredRequest_CardDesc":"再開すると、申請書の承認ワークフローが続行され、該当ステップに時間制限が設けられなくなります。","approval-mp_RestoreExpiredRequest_CardTitle":"タイムアウトにより中止された承認を再開しますか?","approval-mp_RestoreThisRequest_button":"承認を再開","approval-mp_Restore_CardButton":"再開","approval-mp_Restore_CardButton_v2":"再開","approval-mp_RetryQuickTextLoading_Desc":"読み込み中","approval-mp_RetryQuickText_Button":"再試行","approval-mp_RetryQuickText_ErrorMessage":"読み込めませんでした。{{tryAgain}}してください。","approval-mp_Retry_Tooltip":"再試行","approval-mp_ReturnBatchImport_ExcelDesc":"編集が完了したら、承認に戻って「一括インポート」をクリックし、インポートを実行してください。","approval-mp_ReturnForDataSyn_ExcelDesc":"編集が完了したら、{APP_DIS PLAY_NAME} に戻ってデータを同期してください。","approval-mp_ReturnReason_title":"差し戻しの理由","approval-mp_Revoke_Button":"撤回","approval-mp_RevokedSentBack_Desc":"撤回後、ドキュメントを編集してから申請を再提出してください。承認プロセスは最初のステップに戻ります。","approval-mp_Revoked_Placeholder":"キャンセル","approval-mp_RiskyLink_Title":"このリンクは、安全ではない可能性があります。","approval-mp_RowContainError_ErrorMessage":"この行は {{num}} 箇所の修正が必要です。","approval-mp_RuleFromSmartProcess_Option":"元スマートプロセスルール","approval-mp_RulesSetting_CardTitle":"ルール設定","approval-mp_SaveOnceWithinThreeMin_Toast":"3 分以上の時間をおいてから、再度保存してください。","approval-mp_SaveQuickText_Button":"保存","approval-mp_SearchByKeywords_Placeholder":"承認名、内容、提出者、管理番号","approval-mp_SearchBySubordinateName_Placeholder":"下位職階のメンバーを検索","approval-mp_SearchCurrentStage_Placeholder":"現在のステップを検索","approval-mp_SearchDocsPasteLink_Placeholder":"ドキュメント名で検索するか、またはドキュメントリンクを貼り付ける","approval-mp_SearchForKeywords":"キーワード","approval-mp_SearchForKeywords_Placeholder":"キーワードを入力してください","approval-mp_SearchForRequetsSubordinates_Placeholder":"部下を検索","approval-mp_SearchNoDetails_Placeholder":"申請番号またはキーワードで検索","approval-mp_SearchResultApprovalType_Desc":"検索結果にある承認の種類のみを表示","approval-mp_Search_Button":"検索","approval-mp_SeeOnlyApprovals_Desc":"「{{name}}」に関連する承認のみを表示","approval-mp_SelectAdvisors_Placeholder":"依頼対象を選択してください。","approval-mp_SelectApprovalName_Placeholder":"承認名を選択してください","approval-mp_SelectApprovalSources_Title":"提出元を選択","approval-mp_SelectApprovalTypes_Title":"承認の種類を選択","approval-mp_SelectApprovals_Title":"承認を選択","approval-mp_SelectCurrency_Placeholder":"通貨種類を選択","approval-mp_SelectDisplayFields_Title":"表示フィールドを選択","approval-mp_SelectDocs_Button":"ドキュメントを選択","approval-mp_SelectOrSearch_Placeholder":"名前で選択または検索してください。","approval-mp_SelectSource_Placeholder":"選択してください","approval-mp_SelectSubmitter_Placeholder":"提出者を選択してください","approval-mp_SelectType_Placeholder":"選択してください","approval-mp_Select_Placeholder":"選択してください。","approval-mp_SelectedMember_Desc":"選択中:{{num}} 人","approval-mp_SentBack_Desc":"差し戻し先:","approval-mp_SetRuleConfirm_Button":"確定","approval-mp_SetRuleNoConfiguration_Desc":"当該ルールはデフォルト結果を表示されますので、設定する必要がありません。","approval-mp_ShareApproval_Button":"承認を共有","approval-mp_ShareNotSupported_Tooltip":"対応できません","approval-mp_ShareOpinions_Button":"承認コメントを記入してください。","approval-mp_Share_Button":"共有","approval-mp_Share_Tooltip":"共有","approval-mp_ShiftGroupType1":"他人とのシフト変更","approval-mp_ShiftGroupType2":"自分とのシフト変更(二日)","approval-mp_ShiftGroupType3":"自分とのシフト変更(単日)","approval-mp_ShiftGroupType_Nopermission":"シフト制の従業員によるシフトのみが許可され、あなたの勤務グループは非シフト制で、シフトを申請することはできません","approval-mp_ShiftGroupType_Permission_Title":"シフトできません","approval-mp_ShiftGroupV2_Detail":"シフトの詳細","approval-mp_ShowAllSteps_Button":"すべて表示","approval-mp_ShowOnlyBatchProcess_Desc":"一括処理機能が有効な承認のみを表示","approval-mp_SourceAll_Desc":"ソース:すべて","approval-mp_SourceNum_Desc":"ソース:{{num}}","approval-mp_Source_Header":"ソース","approval-mp_SpecifyCurrency_ExcelDesc":"検証が承認されるように、ドロップダウンリストから通貨の種類を選択してください。","approval-mp_SpeedyApproval_FieldName":"瞬時承認行","approval-mp_StartDate_Placeholder":"開始日付","approval-mp_StartGroupChat_Title":"グループチャットを作成","approval-mp_Status_FieldName":"ステータス","approval-mp_StepsHide_Button":"折りたたむ","approval-mp_StepsHide_Desc":"現在、{num} 個のステップが承認中です。そのうち、最初のステップのみ自分による承認操作が必要です。","approval-mp_StepsShow_Desc":"現在、{num} 個のステップが承認中です。自分と関係のないステップは折りたたまれています。","approval-mp_SubmitApplication_Button":"申請を提出","approval-mp_SubmitApprove_Title":"申請の提出/承認","approval-mp_SubmitDateTime_FieldName":"提出日時","approval-mp_SubmitDepartment_FieldName":"提出者の所属部署","approval-mp_SubmitDesktopOnly_Desc":"この申請は、デスクトップ版でのみ提出可能","approval-mp_SubmitExplained_Desc":"「申請」で提出する申請書を選択できます。承認者は「承認センター」またはボットメッセージで承認できます。","approval-mp_SubmitGuide_Desc":"「ワークプレイス > 承認 > 申請」でこの申請を提出できます。承認ボットで送信された操作ガイドをご確認ください。","approval-mp_SubmitHere_Title":"ここで {{application}} を提出","approval-mp_SubmitMobileOnly_Desc":"この申請は、モバイル端末でのみ提出可能","approval-mp_SubmitPersonTime_Desc":"{{userName}}が {{submitTime}} に提出","approval-mp_SubmitRequestWithDocsCopy_Title":"ドキュメントコピーで承認を開始","approval-mp_Submit_Button":"すぐに提出","approval-mp_SubmittedBy_FieldName":"提出者","approval-mp_SubmittedDocOwnerChanged_Toast":"提出されました。ドキュメントの所有権は {{BRAND_DISPLAY_NAME}} に移行されました","approval-mp_SubmitterView_Desc":"提出者ビュー","approval-mp_SubordinatesNameNum_Desc":"{{num}}","approval-mp_Subordinates_Desc":"関連部下:","approval-mp_Subordinates_Header":"関連部下","approval-mp_SysAutoGenerate_Placeholder":"提出後、システムにより自動的に生成されます。","approval-mp_SystemPrint_Button":"システムテンプレートを使用","approval-mp_TeamAbnormalDataTime_Title":"{{name}}チームが {{time}} から {{time}} 承認異常データの明細","approval-mp_TeamDetaisFailedRetry_Desc":"あなたのチームが {time} での詳細データを生成できませんでした。アプリで再度エクスポートしてください","approval-mp_TeamLastMonthGenerated_Desc":"{name} のチームの {time} での詳細データが生成されました。クリックして表示","approval-mp_TemplateCreateNew_Button":"プロセスを新規作成","approval-mp_TerminatedProcess_Switch":"中止中のワークフロー","approval-mp_Terminated_Desc":"中止","approval-mp_Terminated_Placeholder":"中止","approval-mp_Terminated_Tag":"中止済み","approval-mp_ThisDeleted_Desc":"この申請書は削除されました。","approval-mp_ThisFormatNotYet_Toast":"現在、{{fileType}} ファイルはアップロードできません。","approval-mp_ThisHasBeenDeleted_Desc":"この申請書は管理者によって削除されました。","approval-mp_ThisaRequiredField_Toast":"「{{WidgetName}}」は必須項目です。","approval-mp_ThreeCannotDisplay2_Tooltip":"期間、明細/テーブル、ウィジェット群","approval-mp_ThreeCannotDisplay_Tooltip":"以下のウィジェットは現在利用不可:","approval-mp_ThreePersonConversation_Desc":"{{name}}、{{name}}、{{name}} など {count} 人のグループチャットを作成し、以下のリマインダーを送信します。","approval-mp_ThreeToDisplay_Tooltip":"このフォームでは、設定可能なフィールド数は{{num}} 件までです。","approval-mp_Title":"【重要 Cc】{Person}が提出した「{var}」が Cc されました。","approval-mp_TitleName_Title":"タイトル","approval-mp_TwoPersonConversation_Desc":"{{name}}、{{name}} など {count} 人のグループチャットを作成し、以下のリマインダーを送信します。","approval-mp_TypeAll_Desc":"承認のタイプ:すべて","approval-mp_TypeNum_Desc":"承認の種類:{{num}}","approval-mp_Type_Header":"承認の種類","approval-mp_TypeofRequest_Desc":"申請タイプ","approval-mp_UnableBatchProcess":"一括処理可能な申請がありません。","approval-mp_UnableLoadRetry_Desc":"読み込めませんでした。<1>再試行してください。</1>","approval-mp_UnableToCreateDetailTable_Tooltip":"明細表を作成できませんでした。再試行してください。","approval-mp_UnableToImportDataConfiguring_Tooltip":"明細の設定では、{{externalData}}の一括インポートができません。","approval-mp_UnableToImportExcelLastModifiedTime_CardDesc":"{{mm}}月{{dd}}日 {{HH}}:{{nn}}","approval-mp_UnableToImportExcelLastModified_CardDesc":"最終更新:","approval-mp_UnableToImportExcel_CardButton":"再試行","approval-mp_UnableToImportExcel_CardTitle":"インポートできませんでした","approval-mp_UnableToRestore_toast":"再開できませんでした。再試行してください。","approval-mp_UnmarkNormalCCTips_Desc":"取り消すと、申請書は Cc 通知で転送先に送信されます。","approval-mp_UpToTwentyQuickText_Tooltip":"登録できる定型文は最大 20 件までです。","approval-mp_UpdateForLatestExp_Desc":"ぜひ{{APP_DISPLAY_NAME}}を更新して、新しいプリント機能をお試しください。","approval-mp_Upload30Max_Desc":"最大 {{count}} 個のファイルまで( 1 個のファイルは最大 {{size}} MB まで)","approval-mp_Upload30Max_Tooltip":"最大 {{count}} 個のファイルをアップロード可能","approval-mp_UploadFailedRetry_Desc":"アップロードできませんでした。再試行してください。","approval-mp_UploadFiles_Button":"ファイルをアップロード","approval-mp_UploadingWait_Desc":"すべての添付ファイルをアップロードすると、承認は自動的に提出されます。","approval-mp_Uploading_Desc":"アップロード中...","approval-mp_UseCommas_ExcelDesc":"検証が承認されるように、複数の選択肢は半角コンマ(,)で区切ってください。","approval-mp_UsedNum_Desc":"{{num}} 回使用","approval-mp_VideosSavedHere_Tooltip":"ビデオは非表示されました。ここでいつでも再生できます","approval-mp_ViewActualData_Link":"実際のデータを確認","approval-mp_ViewData_Tab":"データ管理","approval-mp_ViewDetailsInApp_Desc":"クリックしてアプリで詳細なデータを確認","approval-mp_ViewDetails_Button":"詳細を表示","approval-mp_ViewDiagnosis_Title":"効率診断を確認","approval-mp_ViewDownloadedPDF_Button":"開く","approval-mp_ViewExportedContentDetails_Desc":"ここでエクスポート履歴と進捗を確認できます","approval-mp_ViewExportedDetails_Title":"エクスポート履歴を確認","approval-mp_ViewNow_Button":"すぐに確認","approval-mp_ViewProgress_Button":"進捗状況を確認","approval-mp_View_Button":"確認","approval-mp_View_FieldName":"詳細","approval-mp_Visibility_ICUcontent":"表示状態","approval-mp_VisitSmartProcessConfigure_Desc":"{{SmartProcessRulesPlatform}}にて承認ルールを設定できます。","approval-mp_WaitingUpload":"アップロード待ち","approval-mp_WantToApply_Desc":"申請を提出したい?","approval-mp_WatchVideosKnowApproval_Title":"ビデオを見て {{BRAND_DISPLAY_NAME}}をすばやく理解","approval-mp_WidgetsFromV1_ICUcontent":"V1 のウィジェットを含む","approval-mp_Yes_Button":"はい","approval-mp_YouCanEdit_Toast":"撤回しました。このドキュメントは編集可能です。","approval-mp_YourTeamLastMonthGenerated_Desc":"あなたのチームが {time} での詳細データが生成されました。クリックして表示","approval-mp_help_Button":"ヘルプ","approval-web_ExpiredNClosed_Desc":"処理期間が過ぎたため、自動的に中止されました。","approval-web_ExpiredNClosed_Tooltip":"処理期間が過ぎたため、システムにより中止されました。","approval-web_Expired_Tag":"この承認は処理済みです。チャットグループでさらに処理する必要はありません。","approval-web_LoadMore_Button":"さらに表示","approval-web_Loading_Desc":"読み込み中","approval-web_NoResultsFound_Desc":"関連結果が見つかりませんでした。","approval-web_NoResultsFound_EmptyState":"検索結果が見つかりませんでした。","approval-web_ProcessASAPClosed_Desc1":"{{month}}月{{day}}日に自動的に中止されます。早めに処理してください。","approval-web_ProcessASAPClosed_Desc2":"{{year}}年{{month}}月{{day}}日に自動的に中止されます。早めに処理してください。","approval-web_RefineSearch_Desc":"より具体的なキーワードを入力し、検索をさらに絞り込めます。","approval-web_SearchBuilding_Placeholder":"検索","approval-web_SearchDate_Placeholder":"検索","approval-web_Searching_EmptyState":"検索中...","approval-web_SingularRequestWaitResponse_Tooltip1":"この申請は{{dayCount}}日以上処理されていません。速やかに処理をリマインドしてください。対応がない場合、{{year}}年{{month}}月{{day}}日に自動的に中止されます。","approval-web_SingularRequestWaitResponse_Tooltip2":"この申請は{{dayCount}}日以上処理されていません。速やかに処理をリマインドしてください。対応がない場合、{{month}}月{{day}}日に自動的に中止されます。","approval-web_TryAgain_Desc":"再試行してください。","approval-web_UnableLoadTryAgain_Desc":"読み込めませんでした。再試行してください。","approval-web_UnableLoadTryAgain_EmptyState":"オプションを読み込めませんでした。再試行してください。","approval-web_UnableLoad_EmptyState":"読み込めませんでした。",approvalForm:{ApprovalDeletedHint:"申請できませんでした。この承認は削除されました",ApprovalDisabledHint:"申請できませんでした。この承認は無効化されました",Approvers:"承認者",CCTo:"通知",PleaseFillInAddress:"省略せずに{{name}}を入力してください",Submit:"申請",WaitForUploading:"アップロード中…しばらくお待ちください",dateRangeIsNotClosed:"{{startName}}と{{endName}}の双方を入力してください",dateRangeTip:"は次の日付以降を指定してください:",department:"所属部門",fillNumber:"数字を入力してください",instead:"({{name}} の代理で提出)",insteadSubmit:{cancel:"代理提出のキャンセル",chooseOther:"代理提出",label:"提出者"},insteadSubmitter:{chooseNoPermission:"{{name}}にはこの承認を申請する権限がない",chooseNoPermissionContent:"管理者 {{manager}} に連絡して処理を依頼するか、提出者を再選択してください",chooseTitle:"誰に代わって提出するかを選択",chooseTitlePc:"誰に代わって提出するかを選択してください",chooseUserTip:"スタッフの名前を検索してください"},pleaseFill:"入力してください",requestOk:"申請しました"},approval_count:"承認済みの申請書数",approval_count_bot:"承認済み申請書数N件","approval_document_trusteeship_multi-lingual_NoWidgetTypeForBatchImport_Tooltip":"一括インポートをサポートするウィジェットタイプはありません。",approval_head_1:"1月の承認効率に関する総括報告書",approval_head_10:"10月の承認効率に関する総括報告書",approval_head_11:"11月の承認効率に関する総括報告書",approval_head_12:"12月の承認効率に関する総括報告書",approval_head_2:"2月の承認効率に関する総括報告書",approval_head_3:"3月の承認効率に関する総括報告書",approval_head_4:"4月の承認効率に関する総括報告書",approval_head_5:"5月の承認効率に関する総括報告書",approval_head_6:"6月の承認効率に関する総括報告書",approval_head_7:"7月の承認効率に関する総括報告書",approval_head_8:"8月の承認効率に関する総括報告書",approval_head_9:"9月の承認効率に関する総括報告書",approval_message_ContinueEditingBrowser_CardDesc:"シートで編集を続ける",approval_message_RoundingAmount_ExcelDesc:"金額は四捨五入されてインポートされるため、明細とシートで差異が生じる可能性があります。",approval_mp_EligibleApproval_plural_Desc:"あなたの {{scope}} には条件と一致する承認が {{num}} 件あります",approval_mp_SearchKeyword_Decs:"申請名、申請者、番号、申請内容、コメント",approval_preview:{description:"QRコードをスキャンしてプロセスをプレビューします",permission_warning:"フルプロセスのプレビューを保証するため、編集不可な項目は使用中編集できるようになります",title:"{{name}} をプレビュー",userGroup_deleted:"「ユーザーグループが削除されました」"},approval_print:{Add_watermark:{Approval_QRcode:"{{BRAND_DISPLAY_NAME}}アプリQRコード",Approval_deteled:"削除済",Approval_passed:"承認済",Approval_pending:"承認中",Approval_rejected:"却下済",Approval_revoked:"取消済"}},approval_project_ApprovalData_Menu:"承認データ",approval_summary_1:"N月のそちら様の承認平均所要時間は、X%の同部署承認者より遅いです",approval_summary_2:"N月のそちら様の承認平均所要時間は、X%の同部署承認者より速いです",approval_task_time:"承認用平均時間",approval_task_time_bot:"承認にかかる平均時間: N時間",approval_timeout_rate:"承認のタイムアウト率",approval_tips_bad:"効率に注意してください。",approval_tips_good:"このまま継続してください",approval_transfer_rate:"代行承認率",approval_view_detail:"改善待ちプロセスを確認する",approver:"承認者",block_enter_for_approval:"承認に入る",bottitle:"N月のチームの承認効率に関する月間報告書",budget:"業務予算","candidate_search_no-result":"結果が見つかりませんでした",common:{amount:"{{count}} 件",go_update:"アップデートへ",please_update_greater_or_equal:"{{BRAND_DISPLAY_NAME}}バージョンを{{version}}以上にアップグレードしてください"},contract:"契約センター",create_approval:{form_group:{workGroup_Type_change:"振替休日",workGroup_Type_overtimePay:"残業代"},preview:"プレビュー",process_cannot_preview:"この承認をプレビューできません"},create_group_tips:"証憑書類情報が機密情報のため、グループ作成後、承認プロセス外のメンバーは証憑書類の詳細にアクセスできません",create_tips2:"作成されました",detail:{no_permission:"証憑書類の権限がありません"},detailDoc:"詳細はドキュメントを参照",efficiency_bot_admin1:"N月の会社全体の承認効率に関する月間報告書",efficiency_bot_admin10:"「xxx」の完成率が一番低いです",efficiency_bot_admin11:"「xxx」のワークフロー平均処理時間が一番長いです。",efficiency_bot_admin12:"「{{user}}」のタスク平均処理時間は最も長いです。",efficiency_bot_admin13:"「xxx」のタイムアウトした処理待ち証憑書類が一番多いです",efficiency_bot_admin14:"「xxx」部署承認者の平均処理時間は最も長いです。",efficiency_bot_admin2:"N月の承認プロセス効率に関する月間報告書",efficiency_bot_admin3:"ワークフローの完了率",efficiency_bot_admin4:"ワークフローの平均処理時間",efficiency_bot_admin5:"タスクの平均処理時間",efficiency_bot_admin6:"48 時間を経過した処理待ちの申請書",efficiency_bot_admin7:"以下の事項に注意することを推奨します",efficiency_bot_admin8:"現在はデスクトップ版での表示のみに対応しています",efficiency_bot_admin9:"デスクトップ版で操作してください",emptyCC:"未読のCc内容はありません",emptyCreated:"進行中の開始された内容はありません",emptyUpcoming:"いいね!あなたはすべての処理待ちタスクを処理しました",enableBadge:"承認メッセージのコーナーバッジを表示する",failToSwitchBadge:"コーナーバッジの表示切り替えに失敗しました",feishu:"Feishu",feishu_lark:{ApprovalEfficiency:{"PC_Efficency_label-1":"{{feishu}}モバイル端末でコードをスキャンして確認してください",lowVersion:"{{feishu}}クライアントのバージョンが低すぎるため、このページは表示できません。アップグレードしてください",updateFeishu:"{{feishu}}アップグレードに移動"},CreateList:{CustomCreateModal:{Content:"ByteDance自己構築プロセスの標準化を改善するために、ByteDanceの従業員が{{feishu}}承認を新規作成する際に、作成申請を提出し、合理性と標準化の審査を通過してから、新規プロセスが有効になります。詳細は以下をご確認ください:",ContentLink:"「{{feishu}}承認作成申請」"}},OnBoarding:{OpenWindowTips:"クリックすると、独立したウィンドウで{{feishu}}承認を開くことができます"},PC:{LowVersionTip:"クライアントのバージョンが低すぎるため、証憑書類の詳細を直接開けません。クリックして",UpgradeBtn:"クライアントをアップグレードします"},Print:{qrCodeTips1:"モバイル版{{feishu}}を使用して",qrCodeTips3:"{{feishu}}コードスキャンで確認"},Signature_scan:"モバイル版{{feishu}}コードスキャン署名",approval_preview:{description:"QRコードをスキャンしてプロセスをプレビューします"},approval_print:{Add_watermark:{Approval_QRcode:"{{feishu}}アプリQRコード"}},common:{please_update_greater_or_equal:"{{feishu}}バージョンを{{version}}以上にアップグレードしてください"},title:"全体的に「{{feishu}}承認」に満足していますか?",widgets:{cloudDoc:{edit:{submit:"文書所有権は{{feishu}}承認に移転しました"},search:{ownertip:"承認提出後、ドキュメント所有権は承認者に移転します。コピーを作成して提出することもできます"},view:{please_update_app:"{{feishu}}バージョンが低すぎるため、クラウドドキュメントを確認できません。クリックして",please_update_greater_or_equal:"{{feishu}}バージョンが低すぎるため、クラウドドキュメントを確認できません。{{version}}以上にアップグレードしてください"}}}},force:{update:{button:"クリックしてアップデート",desc:"最新バージョンへアップデートしてください。",title:"お使いの {{APP_DISPLAY_NAME}} のバージョンが古いため、確認できません。"}},form:{account:{acccountNamePlaceholder:"受取人の氏名",acccountNamePublicPlaceholder:"受取組織を入力してください",acccountNumberPlaceholder:"受取人の口座番号",acccountNumberPublicPlaceholder:"受取組織の口座番号を入力してください",accountName:"口座名",accountNamePlaceholder:"受取人名を入力",accountNumber:"口座番号",accountNumberPlaceholder:"受取人の口座番号を入力",accountType:"口座タイプ",add:"口座を追加",bank:"銀行",bankBranchSearch:"支店名で検索してください",bankLocation:"銀行所在地区",continueEdit:"編集を続ける",deleteAccount:"口座を削除",deleteAccountMessage:"口座を削除しますか?削除後は復元できません",deleteAccountPcMessage:"「{{account}}」口座の削除は復元できません",deleteAccountPcTitle:"口座を削除しますか?",donotsave:"保存しない",editAccount:"口座を修正",goback:"直接終了",locationPlaceholder:"選択してください(確実に支払うためにできるだけご記入ください)",mockTip:"プレビューでは、他者が追加した口座情報を表示できません",name:"受取口座",noAccount:"オプションはありません。先に口座を追加してください",noSearchResult:"関連する結果が見つかりませんでした",nodata:"検索内容が見つかりません",pcAddressPlaceholder:"都市名を検索(確実に支払うためにできるだけご記入ください)",personalAccount:"個人口座",pleaseSelectFirst:"最初に{{name}}を選択してください",publicAccount:"支出口座",remark:"備考",remindSave:"現在の変更は保存されていません",remindSaveMessage:"戻ると、現在の変更は保存されません",remindSaveMessagePc:"閉じると、このコンテンツは保存されません",searchBank:"銀行を検索します",searchFooterText:"結果が見つからない場合は、より具体的な検索キーワードをお試しください",searchSubBank:"銀行支店を検索",selectBank:"銀行を選択",selectSubBank:"銀行支店を選択",subBank:"銀行支店"}},formAddress:{LocatingFailed:"現在地を取得できませんでした。再試行してください",LocatingHint:"現在地を取得しています…",LocationOffContent:"現在地を自動的に取得するには、位置情報サービスをオンにしてください",LocationOffTitle:"位置情報サービスをオフにしました",SelectDistrict:"地域を選択してください",SystemLocationOff:"現在地を取得できませんでした。位置情報サービスをオンにしてください。"},formApprovers:{Add:"追加",MergeSameApproverHint:"承認者が同一であるステップは統合されました",NotDuplicated:"前のステップと同じ承認者は選択できません",NotSelf:"自分を選択できません"},formAttachment:{AddButton:"ファイルを添付",AttachmentCount:"{{count}} 個の添付ファイル",AttachmentCount_plural:"{{count}} 個の添付ファイル",OversizeHint:"添付ファイルが上限の 50MB を超えています",UnavailableFileType:"Word, Excel, PPT, PDF 形式のファイルのみがサポートされます",maxCount:"最大 9 件の添付ファイルを選択できます",nonsupportFormatHint:"このタイプのファイルは現在サポートされていません"},formContact:{FailOnChoose:"{{name}}の選択に失敗",FailOnChooseContact:"連絡先を選択できませんでした"},formFieldlist:{Summary:"合計",add:"詳細を追加",delete:"削除"},formImage:{OversizeHint:"アップロードできる画像のサイズは 10MB までです",OversizeHintNew:"アップロードできる画像のサイズは 50MB までです",maxCount:"最大 9 枚の画像を選択できます"},formSelectDate:{am:"午前",hour:"時",minute:"分",pm:"午後"},form_widget_editor:{amount:{unit_options:{max_support_warning:"小数点以下最大{{n}}桁に対応します"}},leave_group:{leave_group_end_time:"終了日時",leave_group_start_time:"開始日時"}},form_widget_viewer:{leave_group:{end_time:"終了日時",start_time:"開始日時"},out_group:{end_time:"終了日時",start_time:"開始日時"},remedy_group:{remedy_date:"発生日",remedy_time:"実際の勤務開始/終了時間"},trip_group:{end_time:"終了日時",start_time:"開始日時"},work_group:{date_category:"日付タイプ",end_time:"終了日時",start_time:"開始日時"}},geren:"個人承認効率月間レポート: yyyy-mm",geren001:"「xxプロセス」の処理効率が、同じ部門のn%承認者を下回ります。最適化の余地があるかどうかを分析してみてください",geren0010:"注意点",geren002:"会社は承認者本人に証憑書類処理を要求しています。休暇期間以外はなるべく他者に代理承認を依頼しないでください",geren003:"データに疑問がある場合はここをクリックしてください",geren004:"自分の詳細データを表示",gerenshuoming:"N月の承認効率データは次のとおりです",good_reason:"満足の理由は?",guide:{tooltip:{editApproval:"この承認のフォーム、プロセスなどの設定を編集します"}},header:{add_approval:"承認を提出",search_placeholder:"タスクのテーマ、申請者、番号、内容を検索",tabs_index:"承認センター"},introduce:"リスクの説明","invte group":"グループチャットを開始しています","join group":"グループチャットに参加します",key_value:"{{key}}{{value}}",lark:"Lark",list:{approval_agreed:"承認済み",approval_all_read:"全部",approval_all_status:"すべて",approval_canceled:"取消済み",approval_delete:"削除済み",approval_no_more:"他にデータはありません",approval_no_searchlist:"該当する内容がありません",approval_only_unread:"未読のみ表示",approval_pending:"承認中",approval_read:"既読のみ表示",approval_read_list:"既読",approval_reject:"却下済み",approval_status:"承認ステータス",approval_terminated:"中止済み",approval_timeover:"タイムオーバー",approval_unread:"未読を優先",approval_unread_list:"未読",card_agent:"代理",card_combina_creater:"申請者:",card_create_time:"申請時間 {{time}}",card_handle_time:"処理日 {{time}}",card_pre_approve:"承認支援",card_pre_approve_success:"承認支援済み",card_reach_time:"到達日 {{time}}",click_get_more:"クリックして更に読み込み",filter_early_create:"開始の古い順",filter_early_handle:"処理の古い順",filter_new_handle:"処理の新しい順",filter_reach_fisrst:"新着順",filter_read_all:"すべて表示",filter_waiter_first:"提出順",filtet_new_create:"開始の新しい順",get_list_again:"再読み込み",get_list_error:"読み込みできませんでした",mark_all_read:"すべての未読CCメッセージを既読に設定しますか",mark_all_readed:"すべての未読 CC メッセージを既読に設定しますか?",mark_read_cancel:"キャンセル",mark_read_ok:"既読にする",mark_unsupport_count:"{{count}} 件の承認はワンクリックで既読にできないため、手動でご確認ください","overdue_Capital loss":"資金の損失",overdue_Details:"リスクの詳細を説明し、承認者により多くの意思決定情報を提供します",overdue_PR:"広報",overdue_aging:"承認時効に関する提案 この申請はXXXX年X月X日までにすべて承認完了することをお勧めします。そうしないと「XXXX」のリスクがあります。",overdue_bot:"今までX件の処理待ちは処理されていなくて、その内X件の期限超過承認はリスクがあり、X件は処理待ち状態が24時間を超えています。",overdue_description:"期限超過審査リスクの説明",overdue_description1:"承認完了時間が明確に想定できる場合は、その項目に記入し、期限超過承認のリスクを選択すると、承認者がそれによる影響を認識できます。更に説明",overdue_description2:"リスクタイプを入力",overdue_effectiveness:"N%の同部門の承認者を下回りました",overdue_legal:"法律紛争",overdue_other:"その他","overdue_reminder time":"推奨する承認完了時間",overdue_reminder1:"期限超過承認には「{{risks}}」のリスクがあります",overdue_reminder2:"X月X日までにすべて承認が完了していない場合、「XXXX」のリスクがあります",overdue_risk:"期限超過承認リスク",overdue_time:"推奨する全承認完了時間",search_tips_key:"{{searchKey}}に関連する承認を検索します",search_tips_label:"Enterキーを押す",time_all:"すべての期間",time_custome:"カスタム期間",time_days:"直近 24 時間",time_filter:"時間フィルタリング",time_month:"直近 30 日",time_threedays:"直近 3 日",time_week:"直近 7 日",tooltip:{display_rule:"表示規則",mark_all_read:"フルマークを読みました",sort:"並べ替え"}},loadFailedClickRefresh:"読み込みに失敗しました。クリックして更新してください",loginFailedTips:"ログインできませんでした。再試行してください","mp_admin_Toast-1":"無効化できませ\nん。管理者にご確認ください","mp_admin_Toast-2":"削除できません。管理者にご確認ください",network_error:"読み込みに失敗しました。ネットワークを確認して再試行してください",new_Add_12:"ダッシュボードに進み明細データを取得できます",new_add_001:"「xxx」の処理効率が、同じ部門のN%承認者を下回ります。",new_add_002:"あなたのN件のタスクが48時間を超えて処理されたので、明細データを確認して、最適化の余地があるかどうかを分析してみてください",new_add_003:"あなたのN件のタスクが他者の代理で完成されました。会社は承認者本人に証憑書類処理を要求しています。できるだけ他者に代理承認を依頼しないでください",new_add_004:"診断結果を表示",new_add_005:"詳細データを表示",new_add_0061:"詳細データを取得",new_add_07:"承認にかかる時間の明細データが作成されました",new_add_08:"あなたの直近 14 日の承認にかかる時間の明細データが作成されました。クリックして今すぐ表示",new_add_09:"あなたの直近 30 日の承認にかかる時間の明細データが作成されました。クリックして今すぐ表示",new_add_10:"あなたの先月の承認にかかる時間の明細データが作成されました。クリックして今すぐ表示",new_add_11:"あなたの前々月の承認にかかる時間の明細データが作成されました。クリックして今すぐ表示",new_add_111:"48時間超過か否か",new_add_112:"今すぐ表示",new_add_11221:"他者の代理で承認するか",new_feature_guide:{i_know:"OK",operate_modify:{content:"承認伝票を修正できます!必要に応じて、ここをクリックして修正してみてください。"}},not_good_reason:"不満の理由は?",notice:"チームに遅れをとらないためにN時間以内に承認を完了させる必要があります","notice10-15":"他者に比べてこのタイプのプロセス処理は遅かったです",notice111:"お疲れ様です。承認をその日に処理すると、xxチームの全体承認効率を効果的に向上できます。",notice2:"チームに遅れをとらないためにN分以内に承認を完了させる必要があります",notice_bot:"他者に比べてこのタイプのプレセス処理は遅かったです",notify:"通知先","overdue risk":"期限超過のリスク",overtime:"残業",panel:{close:{window:"閉じる"},open:{window:"別のウィンドウで開く"},robot:"ロボット",setting:"設定"},picker:{configRole:"ロールの設定",configUserGroup:"ユーザーグループの設定",departmentCount:"{count}個の部門",departmentHeadCount:"{count}個のスーパーバイザー",jumpToAdmin:"{{BRAND_DISPLAY_NAME}}管理の背景にジャンプ",menberCount:"{count}名のメンバー",noSearchResult:"関連する結果がクエリされていません",organization:"組織アーキテクチャ",refresh:"リフレッシュ",roleCount:"{{count}}キャラクター",searchRole:"検索ロール名",selectCreator:"スポンサーを選択",selectUserGroup:"ユーザグループを選択",supervisorCount:"{count}個の部門の責任者",userGroupCount:"{{count}}ユーザグループ"},popup:{Off:"取り消し",Ok:"確定"},"process limit":"プロセス全体の期限",project:"プロジェクト設立申請",public_expenditure:"支出",purchase:"購入センター",reason1:"機能不足で、ニーズを満たしていない",reason11:"機能がニーズを満たしている",reason2:"システムの読み込みが遅いまたは不安定",reason22:"システムが安定している",reason3:"重要な情報が強調表示されない",reason33:"重要な情報をすばやく取得できる",reason4:"証憑書類の内容表示の見た目がよくない",reason44:"画面の見た目がいい",reason5:"その他",reason55:"その他",reimbursement:"従業員経費精算",rejectCheckTitle:"{{name}}を却下しますか?却下後も、元の承認書類は有効のままです",remedyGroupV2:{addGroup:"履歴を追加",canRemedyTimes:"追加打刻可能時間:",pleaseReChooseRemedyTime:"正しい追加打刻時間を選択してください",recordIndex:"履歴",remedyNumForMonth:"{{name}}は{{time}}の間、 {{count}} 回打刻修正を行いました。",remedyTimeOverRange:"選択可能な追加打刻時間の範囲を超えています",shouldNotRemedy:"この日の勤怠状況は正常で、追加打刻の必要はありません"},requestFailedTips:"問題が発生しました。しばらくしてから再試行してください",requestNoneTips:"まだデータがありません",risk:"「資金損失、法律紛争、広報」などのリスクがあります",scope:{camera:"カメラ/アルバム",userLocation:"位置情報"},search:{all:"すべての部下",ccSomeone:"{{user}} に通知しました",confirm_num:"確定({{num}})","filter-person":"従業員でフィルタリング","filter-selected":"選択済み","filter-sub-person":"部下でフィルタリング",from_and_nav:"{{user}}からの{{nav}}",open_detail:"証憑書類の詳細","search-person":"従業員を検索してください","search-sub-person":"すべての部下を検索できます",search_all_sub:"「すべての部下」で表示範囲をフィルタリングしました",selectedText:"絞り込み結果:","staff-reset":"デフォルトに戻す",staff_num:"従業員の承認{{num}}件",staff_placeholder:"すべての部下を検索できます",sub_detail_tip:"現在のシステムでは、上司が部下の承認伝票を閲覧できないため、この証憑書類を見る権限がない可能性があります。開始者の{{user}}にお問い合わせください ",sub_num:"部下の承認{{num}}件",submittedBy:"{{name}} 提出",view:"表示",view_range:"表示範囲",view_range_num:"など {{num}}人",view_staff_num:"おすすめ:従業員の承認{{num}}件",view_staff_recommend:"おすすめ:",view_sub_num:"おすすめ:部下の承認{{num}}件",view_v2:"詳細を表示",whoesTask:"{{user}} の{{topic}}"},searchBox:{search:"検索",searchTip:"ページ内検索"},search_tips:"読み込み中",share_tips:"共有しました",share_tips_1:"一度に最大n個の会話を転送できます",share_tips_100:"情報セキュリティリスク軽減のため、100人以上のグループチャットへの共有には対応していません",submit_attendance_seal_check:"{{name}}{{month}}月{{day}}日とその以前の勤怠データがクローズされたため、その期間に該当する申請は提出できません。解除が必要な場合、管理者にお問い合わせください。",team:"チーム効率の詳細を確認する",team001:"チーム承認効率月間レポート: yyyy-mm",team002:"チーム承認平均所要時間の傾向",team003:"チームの詳細データを表示",team_0001:"@張三のチームの承認効率は比較的良くないです",team_0002:"@張三のチームの承認効率は2周期連続で最下位です",team_0003:"@張三のチームの代理承認率は最大10%で、合計N人が代理承認をしています",team_0004:"@張三のチームの瞬時承認率は最大10%で、合計N人が瞬時承認をしています",team_0005:"@張三のチームの承認効率は前回の周期と比較して明らかに低下しています",timeline:{cc_desc:"通知を追加済み",comment_desc:"コメントを追加済み",node:{handled:"処理済み",handler:"処理者"},pass:"承認済み",redirect_desc:"譲渡を追加済み",start_approval:"申請を提出済み"},tips_1:"グループチャットに参加できません",title:"全体的に「Feishu承認」に満足していますか",todo:"N件の処理待ちが処理されていません",update_version_text:"新バージョンが再起動しています",vocation:"休暇申請",warning:"お知らせ",widgets:{cloudDoc:{docxTip:"DocXドキュメントの表示に対応していません。ブラウザで確認することができます",edit:{add:"文書を追加",choose:"文書の選択",copyFail:"コピー作成に失敗",copyTitle:"-承認",copy_auth_setting:"リンクのコピーを正常に使用するには、ミニプログラムにクリップボード権限を付与する必要があります。有効に設定しますか?",copy_link_error:"リンクのコピーに失敗",copy_link_success:"リンクのコピーに成功",copying:"コピーを作成中…",deleted:"文書が削除されました。再度追加してください",lastUpdate:"最終更新日時:",permissionCheck:"文書権限を確認中",remove:"文書を削除",should_choose_docs:"先に文書を追加してください",submit:"文書所有権はFeishu承認に移転しました"},gotoBrowser:"ブラウザを開いて確認",search:{addByCopy:"コピーを使用して追加",addbutton:"文書原本で追加",checkboxToast:"文書所有者の追加のみに対応しています",checkboxTooltip:"元のドキュメントまたはコピーの追加をサポートし、ドキュメント所有者のみが元のドキュメントの追加を使用できます",concat:"文書所有者の追加のみに対応しています。所有者$$に連絡して、コピー作成の権限を付与してもらってください",copy:"文書所有者の追加のみに対応しています",copybutton:"コピーを作成し追加",empty:"関連文書が見つかりませんでした。再度入力してください",error:"正しい文書のリンクを入力してください",owner:"所有者",ownertip:"承認提出後、ドキュメント所有権は承認者に移転します。コピーを作成して提出することもできます",placeholder:"文書名を検索するか、またはリンクを貼り付けます",tip:"文書名を検索するか、またはリンクを貼り付けて追加する"},view:{copy_link:"リンクをコピー",hide:"折りたたむ",open_up:"文書を展開",pack_up:"文書を折りたたむ",please_update_app:"{{BRAND_DISPLAY_NAME}}バージョンが低すぎるため、クラウドドキュメントを確認できません。クリックして",please_update_greater_or_equal:"{{BRAND_DISPLAY_NAME}}バージョンが低すぎるため、クラウドドキュメントを確認できません。{{version}}以上にアップグレードしてください"}},cloudDocBlock:{disableResubmitTip:"ドキュメントで開始された承認は、再提出に対応していません",disableRollbackTip:"ドキュメントで開始された承認は、差戻しに対応していません",version:"ドキュメントのバージョン",versionTip:"現在、ドキュメントは最新バージョンです。履歴で承認バージョンを確認できます",viewLatest:"最新バージョンを確認"}},withdrawAndResubmit:"この承認は処理中につき、修正できません。",work_rule:{editor:{approval_rule:"計算方法",restday:"休日",special:"祝日",workday:"平日"}},"写死在代码里无需key":"複数承認者がいるステップにのみ使用可能です。引受者のみタスクを処理可能、他の承認者が承認を行うことができません。"}},,,,,,,,,,,,,,,,,,,,,function(e,t,a){},function(e,t,a){},function(e,t,a){},,function(e,t,a){},function(e,t,a){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,,,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,,function(e,t,a){},,,function(e,t,a){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return n}));var r=["id","type","handler"],i=3e4,n="onCheck"},function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i})),a(63);var r=function(e,t){return function(e,t){return e in t}(e,t)?t[e]:void 0};function i(e){return function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function s(e){try{c(r.throw(e))}catch(e){n(e)}}function c(e){e.done?a(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){return function(e,t){var a,r,i,n,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return c([e,t])}}function c(n){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return o.label++,{value:n[1],done:!1};case 5:o.label++,r=n[1],n=[0];continue;case 7:n=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){o=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){o.label=n[1];break}if(6===n[0]&&o.label<i[1]){o.label=i[1],i=n;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(n);break}i[2]&&o.ops.pop(),o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e],r=0}finally{a=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}}(this,(function(t){switch(t.label){case 0:return[4,e];case 1:return[2,t.sent()]}}))}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";(function(e){a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return d}));var r=a(63),i=a(424),n=a(1436),o=function(){return o=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},s=function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function s(e){try{c(r.throw(e))}catch(e){n(e)}}function c(e){e.done?a(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var a,r,i,n,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return c([e,t])}}function c(n){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return o.label++,{value:n[1],done:!1};case 5:o.label++,r=n[1],n=[0];continue;case 7:n=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){o=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){o.label=n[1];break}if(6===n[0]&&o.label<i[1]){o.label=i[1],i=n;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(n);break}i[2]&&o.ops.pop(),o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e],r=0}finally{a=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}};function l(t,a){return s(this,void 0,void 0,(function(){var n,s,l;return c(this,(function(c){switch(c.label){case 0:n=this.pack(o(o({},t),{type:i.a.Send})),s=["approval.reportTTI","approval.onPerformanceEvent","approval.opmonitorReport"],t&&!s.includes(t.handler)&&Object(r.d)("send:".concat(t.handler),{packedMessage:n,channel:void 0!==e&&e.name,version:"2"}),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.transfer(n,a)];case 2:return[2,c.sent()];case 3:return(null==(l=c.sent())?void 0:l.isTimeout)?Object(r.a)(l,{content:"send_timeout_error",channel:void 0!==e?e.name:"window is undefined",version:"2"}):Object(r.a)(l,{content:"send_error",channel:void 0!==e?e.name:"window is undefined",version:"2"}),[2,l];case 4:return[2]}}))}))}function d(e){var t,a,l,d;return s(this,void 0,void 0,(function(){var u,p,m,h,b,g,v,j,O,f=this;return c(this,(function(M){switch(M.label){case 0:return u=null!==(t=this.scope)&&void 0!==t?t:this.constructor.name,m=(p=null!=e?e:{}).id,h=p.type,b=p.handler,e&&void 0!==m&&i.a.Send===h?b?(g=this.withoutScope(b),"function"!=typeof(v=null!==(d=null!==(l=null!==(a=this.handlers.get(b))&&void 0!==a?a:this.handlers.get(g))&&void 0!==l?l:this.handlers.get(this.withScope(b)))&&void 0!==d?d:Object(n.a)(g,this))?[2,r.b.warn("[".concat(u,"] onSend:return"),"Not found handler!",e)]:(r.b.debug("[".concat(u,"] onSend:found"),b,v,e),j=function(){return s(f,void 0,void 0,(function(){var t,a,i,n;return c(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),n={},[4,v(e)];case 1:return[2,(n.data=o.sent(),n)];case 2:return t=o.sent(),Object(r.a)(t,{content:"catchErrorWithDefaultMessage_error"}),a="".concat(g,":fail"),r.b.error("[".concat(u,"] ").concat(a),t),i=[a],"object"==typeof t&&i.push(JSON.stringify(t,Object.getOwnPropertyNames(t))),[2,{error:i.join(" ")}];case 3:return[2]}}))}))},[4,j()])):[2,r.b.warn("[".concat(u,"] onSend:return"),"Not need handler!")]:[2];case 1:return O=M.sent(),this.reply(this.pack(o(o({},e),O))),[2]}}))}))}}).call(this,a(43).window)},function(e,t,a){"use strict";(function(e){a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return s}));var r=a(424),i=a(63),n=function(){return n=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function o(e,t){return this.transfer(this.pack(n(n({},e),{id:void 0,type:r.a.Reply,receiver:null==e?void 0:e.id})),n(n({},t),{resolved:!0}))}function s(t){var a,n,o=null!=t?t:{},s=o.id,c=o.type,l=o.receiver;if(t&&void 0!==s&&r.a.Reply===c){if(t&&!["approval.reportTTI","approval.onPerformanceEvent","approval.opmonitorReport"].includes(t.handler)&&Object(i.d)("onReply:".concat(t.handler),{message:t,channel:void 0!==e&&e.name,messages:this.messages,entity:this.messages.get(l),version:"2"}),l){var d=!!(null==t?void 0:t.error)?"reject":"resolve";null===(n=null===(a=this.messages.get(l))||void 0===a?void 0:a[d])||void 0===n||n.call(a,t)}this.messages.delete(s)}}}).call(this,a(43).window)},function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return o}));var r=a(63),i=a(1435),n=a(424);function o(t){var a,o=this;if(!this.isInitialized())return function(){};var s=null!==(a=this.scope)&&void 0!==a?a:this.constructor.name,c=function(e){return i.a.some((function(a){return(null==t?void 0:t[a])&&(null==t?void 0:t[a])===e[a]}))},l=function(a){var i,l;r.b.debug("[".concat(s,"] listen"),a),"approval.opmonitorReport"!==(null===(i=null==a?void 0:a.data)||void 0===i?void 0:i.handler)&&Object(r.c)("listener:".concat(null===(l=a.data)||void 0===l?void 0:l.handler),{payload:a,channel:void 0!==e&&e.name});var d=a.channel,u=a.data;if(d!==o.channel&&o.channel)return r.b.warn("[".concat(s,"] listen:return"),"Ignore other channel message!",[d,a]);if(c(u))return r.b.warn("[".concat(s,"] listen:return"),"Has been matched!",[d,a]),null==t?void 0:t.callback(u);if(t)switch(null==u?void 0:u.type){case n.a.Send:return o.onSend(u);case n.a.Reply:return o.onReply(u);case n.a.Notify:return o.onNotify(u);default:r.b.debug("[".concat(s,"] listen:unhandled"),a)}};this.onTransferMessage(l);var d=[];return t||this.composites.forEach((function(e){d.push(e.listen())})),function(){o.messages.forEach((function(e){var a;t||null===(a=null==e?void 0:e.reject)||void 0===a||a.call(e,"[".concat(s,"] listen:cancel"))})),d.forEach((function(e){return null==e?void 0:e()})),o.offTransferMessage(l)}}}).call(this,a(43).window)},,,,,,,,function(e,t,a){"use strict";function r(){return function(){var e="".concat(+new Date,"000").concat(i(16)),t=/(.{8})(.{4})(.{4})(.{4})(.{12})/.exec(e);return"".concat(t[1],"_").concat(t[2],"_").concat(t[3],"_").concat(t[4],"_").concat(t[5])}()}function i(e){void 0===e&&(e=4);for(var t="";t.length<e;)t+=Math.random().toString(16).substr(2);return t.substr(0,e)}function n(e){var t=Array.isArray(e)?e.join("."):e;if(!this.scope)return t;var a=new RegExp("^".concat(this.scope,"\\."));return"".concat(this.scope,".").concat(t.replace(a,""))}function o(e){var t=Array.isArray(e)?e.join("."):e;if(!this.scope)return t;var a=new RegExp("^".concat(this.scope,"\\."));return t.replace(a,"")}a.d(t,"a",(function(){return Z})),a.d(t,"b",(function(){return q}));var s=a(63),c=a(1435);function l(e){var t,a,r=this,i=null!==(t=this.scope)&&void 0!==t?t:this.constructor.name;this.initialized++&&s.b.warn("".concat(i," is initialized ").concat(this.initialized," times!"));var n={string:function(e){r.channel=null!=e?e:r.channel},object:function(e){var t=null!=e?e:{},a=t.channel,i=t.timeout,n=t.scope;r.channel=null!=a?a:r.channel,r.timeout=null!=i?i:r.timeout,r.scope=null!=n?n:r.scope}};return null===(a=n[typeof e])||void 0===a||a.call(n,e),this.composites.forEach((function(e,t){e.initialize({channel:r.channel,scope:r.withScope(String(t))})})),this.check().onCheck(),this}function d(e){var t;void 0===e&&(e=!1);var a=null!==(t=this.scope)&&void 0!==t?t:this.constructor.name;if(this.initialized<=0){var r="[".concat(a,"] check:fail");if(console.error(r,"not initialized",this.initialized),!e)throw new Error(r);return!1}return!0}function u(){for(var e,t=this;this.queue.length;){var a=this.queue.shift();a&&(null===(e=this[a.type])||void 0===e||e.call(this,a))}this.queue.forEach((function(e){var a;return null===(a=t[e.type])||void 0===a?void 0:a.call(t,e)}))}function p(){return this.notify({handler:c.b},{resolved:!0,timeout:3e3}),this}function m(){var e=this;if(this.checked>0)return this.flush(),this;try{this.listen({handler:c.b,callback:function(){return e.checked++,e.flush()}})}catch(e){Object(s.a)(e,{content:"onCheck_error"}),console.warn(e)}return this}function h(){for(var e,t,a,r=this,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=null!==(a=this.scope)&&void 0!==a?a:this.constructor.name,c=void 0,l={},d={};"string"==typeof i[0]&&(e=[i[0],i[1]||{},i[2]||{}],c=e[0],l=e[1],d=e[2]),"object"==typeof i[0]&&(t=["",i[0]||{},i[1]||{}],c=t[0],l=t[1],d=t[2]);var u=(null!=d?d:{}).force,p=void 0!==u&&u,m=Object.entries(l);m.forEach((function(e){var t=e[0],a=e[1],i=r.withScope(c?[c,t]:t);r.handlers.get(i)&&(s.b.warn("[".concat(o,"] duplicate api path!"),i),!p)||r.handlers.set(i,a)}))}var b=a(424),g=function(){return g=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g.apply(this,arguments)};function v(e){var t,a,i,n;return g(g({},e),{version:b.b.V3,id:null!==(t=null==e?void 0:e.id)&&void 0!==t?t:r(),type:null!==(a=null==e?void 0:e.type)&&void 0!==a?a:b.a.Send,handler:this.withScope(null!==(i=null==e?void 0:e.handler)&&void 0!==i?i:""),data:null!==(n=null==e?void 0:e.data)&&void 0!==n?n:null,channel:this.channel,timestamp:Date.now()})}var j=a(1436),O=function(){return O=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O.apply(this,arguments)};function f(e,t){var a,r=this;if(this.isInitialized(!0)){var i,n=null!==(a=this.scope)&&void 0!==a?a:this.constructor.name,o=function(){return i&&clearTimeout(i)};return new Promise((function(a,c){var l,d=function(e){return o(),a(e)},u=function(e){return o(),c(e)},p=O({resolve:d,reject:u},r.pack(e));r.messages.set(p.id,p),r.transferMessage(r.messages.get(p.id)),Object(j.b)(null==t?void 0:t.resolved).then((function(t){return t&&d(e)})),Object(j.b)(null==t?void 0:t.rejected).then((function(t){return t&&u(e)})),i=setTimeout((function(){var t,a="".concat(null!==(t=e.handler)&&void 0!==t?t:"transfer",":fail:timeout");s.b.warn("[".concat(n,"] ").concat(a),"Timeout to transfer message(id:".concat(p.id,")!")),u(Object.assign(p,{data:{errMsg:a},isTimeout:!0}))}),null!==(l=null==t?void 0:t.timeout)&&void 0!==l?l:r.timeout)}))}this.queue.push(e)}var M=a(1467),_=a(1468),y=function(){return y=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)};function D(e,t){return this.transfer(this.pack(y(y({},e),{type:b.a.Notify})),y({},t))}function N(e){var t,a,r=null!==(t=this.scope)&&void 0!==t?t:this.constructor.name,i=null!=e?e:{},n=i.id,o=i.type,c=i.handler;if(e&&void 0!==n&&b.a.Notify===o){if(!c)return s.b.warn("[".concat(r,"] onNotify:return"),"Not need handler!");null===(a=this.handlers.get(c))||void 0===a||a(e),this.reply(this.pack(y({},e)))}}var A=a(1469);function T(e){var t,a=null!==(t=this.scope)&&void 0!==t?t:this.constructor.name;try{var r=JSON.parse(JSON.stringify(e));s.b.debug("[".concat(a,"] transferMessage"),e),this.manager.transferMessage({channel:this.channel,data:r,success:function(e){},fail:function(e){Object(s.a)(e,{content:"transferMessage.fail"})}})}catch(t){s.b.error("[".concat(a,"] transferMessage:fail"),[e,t]),Object(s.a)(t,{content:"transferMessage_fail"})}}function I(e){var t;null===(t=this.manager)||void 0===t||t.onTransferMessage(e)}function C(e){var t;null===(t=this.manager)||void 0===t||t.offTransferMessage(e)}var x,S=function(){var e;this.manager=null===(e=tt.createMessageManager)||void 0===e?void 0:e.call(tt),this.id=i(16),this.initialized=0,this.timeout=c.c,this.checked=0,this.queue=[],this.messages=new Map,this.handlers=new Map,this.composites=new Map,this.withScope=n,this.withoutScope=o,this.initialize=l,this.isInitialized=d,this.flush=u,this.check=p,this.onCheck=m,this.register=h,this.pack=v,this.transfer=f,this.send=M.b,this.reply=_.b,this.notify=D,this.onSend=M.a,this.onReply=_.a,this.onNotify=N,this.listen=A.a,this.transferMessage=T,this.onTransferMessage=I,this.offTransferMessage=C},w=(new S,function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},e(t,a)};return function(t,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function r(){this.constructor=t}e(t,a),t.prototype=null===a?Object.create(a):(r.prototype=a.prototype,new r)}}()),L=function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function s(e){try{c(r.throw(e))}catch(e){n(e)}}function c(e){e.done?a(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))},E=function(e,t){var a,r,i,n,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return c([e,t])}}function c(n){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return o.label++,{value:n[1],done:!1};case 5:o.label++,r=n[1],n=[0];continue;case 7:n=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){o=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){o.label=n[1];break}if(6===n[0]&&o.label<i[1]){o.label=i[1],i=n;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(n);break}i[2]&&o.ops.pop(),o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e],r=0}finally{a=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}};!function(e){e.NORMAL="NORMAL",e.FANWEI="FANWEI"}(x||(x={}));var k=function(e){function t(){var t=e.call(this)||this;return t.shareDocument=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.shareDocument.name,"!"),e),[2,"shareDocument:fail"]}))}))},t.createChatModal=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.createChatModal.name,"!"),e),[2,"createChatModal:fail"]}))}))},t.joinChat=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.joinChat.name,"!"),e),[2,"joinChat:fail"]}))}))},t.showUserProfile=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.showUserProfile.name,"!"),e),[2,"showUserProfile:fail"]}))}))},t.setClipboardData=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.setClipboardData.name,"!"),e),[2,"setClipboardData:fail"]}))}))},t.previewFile=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.previewFile.name,"!"),e),[2,"previewFile:fail"]}))}))},t.previewImage=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.previewImage.name,"!"),e),[2,"previewImage:fail"]}))}))},t.downloadFile=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.downloadFile.name,"!"),e),[2,"downloadFile:fail"]}))}))},t.chooseContact=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.chooseContact.name,"!"),e),[2,"chooseContact:fail"]}))}))},t.navigateTo=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.navigateTo.name,"!"),e),[2,"navigateTo:fail"]}))}))},t.openApproval=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.openApproval.name,"!"),e),[2,"openApproval:fail"]}))}))},t.openEditorialRecord=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.openEditorialRecord.name,"!"),e),[2,"openEditorialRecord:fail"]}))}))},t.submitApprovalAgain=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.submitApprovalAgain.name,"!"),e),[2,"submitApprovalAgain:fail"]}))}))},t.catchError=function(){return L(t,void 0,void 0,(function(){return E(this,(function(e){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.catchError.name,"!")),[2,"catchError:fail"]}))}))},t.printDocument=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.printDocument.name,"!"),e),[2,"printDocument:fail"]}))}))},t.finishApproval=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.finishApproval.name,"!"),e),[2,"finishApproval:fail"]}))}))},t.opmonitorReport=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.opmonitorReport.name,"!"),e),[2,"".concat(this.opmonitorReport.name,":fail")]}))}))},t.reportTTI=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(t){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.reportTTI.name,"!"),e),[2,"reportTTI:fail"]}))}))},t.reportLoaded=function(){return L(t,void 0,void 0,(function(){return E(this,(function(e){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.reportLoaded.name,"!")),[2,"reportLoaded:fail"]}))}))},t.getRootTrace=function(){return L(t,void 0,void 0,(function(){return E(this,(function(e){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.getRootTrace.name,"!")),[2,"getRootTrace:fail"]}))}))},t.openDrawerWebview=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(e){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.openDrawerWebview.name,"!")),[2,"openDrawerWebview:fail"]}))}))},t.getMGetDetailPrefetch=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(e){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.getMGetDetailPrefetch.name,"!")),[2,"getMGetDetailPrefetch:fail"]}))}))},t.handleDriveFile=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(e){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.handleDriveFile.name,"!")),[2,"handleDriveFile:fail"]}))}))},t.addRelativeApproval=function(e){return L(t,void 0,void 0,(function(){return E(this,(function(e){return s.b.error("[".concat(this.constructor.name,"] Haven't implement ").concat(this.addRelativeApproval.name,"!")),[2,"addRelativeApproval:fail"]}))}))},t.openLingoProfile=function(e){return s.b.error("[".concat(t.constructor.name,"] Haven't implement ").concat(t.openLingoProfile.name,"!")),"openLingoProfile:fail"},t.register({openDrawer:function(){return{errMsg:"openDrawer:ok"}}}),t}return w(t,e),Object.defineProperty(t,"instance",{get:function(){var e;return null!==(e=this.$)&&void 0!==e?e:this.$=new this},enumerable:!1,configurable:!0}),t}(S);function z(e,t){var a;Reflect.defineProperty(e,t,{get:function(){return a},set:function(e){this.register(String(t),e),a=e}})}function R(e,t){Reflect.defineProperty(e,t,{get:function(){return this.composites.get(String(t))},set:function(e){this.composites.set(String(t),e)}})}k.instance;var P,U=function(){return U=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},U.apply(this,arguments)};function B(e,t,a){return void 0===a&&(a=0),function(r){void 0===r&&(r={});var i,n=function(e){return(new Date).getTime()-e},o=function(){return i&&clearTimeout(i)};return new Promise((function(c,l){var d=function(e){return o(),l(e)},u=(new Date).getTime();if("function"!=typeof e)return d({type:P.NotSupported,data:null,error:null,message:"".concat(t,": ").concat(P.NotSupported),cost:n(u)});a>0&&(i=setTimeout((function(){console.error("[promisify] timeout"),d({type:P.Timeout,data:null,error:null,message:"".concat(t,":").concat(P.Timeout),cost:n(u)})}),a));try{e(U(U({},r),{success:function(e){console.warn("[".concat(B.name,"] success"),e),function(e){o(),c(e)}({type:P.Success,data:e,error:null,message:"".concat(t,":").concat(P.Success),cost:n(u)})},fail:function(e){console.error("[".concat(B.name,"] fail"),e),d({type:P.Fail,data:null,error:e,message:"".concat(t,":").concat(P.Fail),cost:n(u)})}}))}catch(e){Object(s.a)(e,{content:"promisify_error"}),console.error("[".concat(B.name,"] panic"),e),d({type:P.Panic,data:null,error:e,message:"".concat(t,":").concat(P.Panic),cost:n(u)})}}))}}!function(e){e.Success="success",e.Fail="fail",e.Timeout="timeout",e.Panic="panic",e.NotSupported="not supported"}(P||(P={}));var F=function(){return F=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},F.apply(this,arguments)},Y=["getUserInfo","enterProfile","openSchema","setClipboardData","openDocument","previewImage","showToast","hideToast","showLoading","hideLoading","enterChat","openLingoProfile"];Y.reduce((function(e,t){var a;return F(F({},e),((a={})[t]=function(e,t){return B(tt[e],e,t)}(t),a))}),{});var Q=function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},e(t,a)};return function(t,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function r(){this.constructor=t}e(t,a),t.prototype=null===a?Object.create(a):(r.prototype=a.prototype,new r)}}(),G=function(){return G=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G.apply(this,arguments)},W=function(e,t,a,r){var i,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(n<3?i(o):n>3?i(t,a,o):i(t,a))||o);return n>3&&o&&Object.defineProperty(t,a,o),o},V=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},H=Y.reduce((function(e,t){var a;return G(G({},e),((a={})[t]=function(e){return function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function s(e){try{c(r.throw(e))}catch(e){n(e)}}function c(e){e.done?a(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var a;return function(e,t){var a,r,i,n,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return c([e,t])}}function c(n){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return o.label++,{value:n[1],done:!1};case 5:o.label++,r=n[1],n=[0];continue;case 7:n=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){o=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){o.label=n[1];break}if(6===n[0]&&o.label<i[1]){o.label=i[1],i=n;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(n);break}i[2]&&o.ops.pop(),o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e],r=0}finally{a=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}}(this,(function(r){switch(r.label){case 0:return[4,B(tt[t],t)(e.data)];case 1:return[2,null==(a=r.sent())?void 0:a.data]}}))}))},a))}),{}),Z=function(e){function t(){var t=e.call(this)||this;return t.tt=H,t.approval=new k,t}return Q(t,e),W([z,V("design:type",Object)],t.prototype,"tt",void 0),W([R,V("design:type",Object)],t.prototype,"approval",void 0),t}(S),q=new Z}]])}));