(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["rider-third-party-review-page"],{1447:function(e,t,r){"use strict";var i=r("04c2"),a=r("203c"),s=r("db2f"),n=r("62f1"),o=r("ed14"),l=r("d5f7"),d=r("8dda"),u=r("00c3"),c=r("56ce"),v=TypeError,p=c((function(){[].keys().reduce((function(){}),void 0)})),h=!p&&d("reduce",v);i({target:"Iterator",proto:!0,real:!0,forced:p||h},{reduce:function(e){n(this);try{s(e)}catch(c){l(this,"throw",c)}var t=arguments.length<2,r=t?void 0:arguments[1];if(h)return u(h,this,t?[e]:[e,r]);var i=o(this),d=0;if(a(i,(function(i){t?(t=!1,r=i):r=e(r,i,d),d++}),{IS_RECORD:!0}),t)throw new v("Reduce of empty iterator with no initial value");return r}})},2216:function(e,t,r){},"2a3a":function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rider-third-party-review-page public_box"},[t("div",{staticClass:"rider-third-party-review-page__header"},[t("div",[t("div",{staticClass:"rider-third-party-review-page__nav"},[t("el-button",{attrs:{size:"mini",plain:""},on:{click:e.goWorkbench}},[e._v("返回核验工作台")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.goDuplicateReview}},[e._v("切换到重复图片核验")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.goSimilarImageReview}},[e._v("切换到相似图片核验")]),t("el-button",{attrs:{size:"mini",type:"text"},on:{click:e.goClaimRiskReview}},[e._v("切换到理算风险核验")])],1),t("h2",[e._v("骑手三者交叉核验页面")]),t("p",[e._v("集中查看同一身份证在不同案件中分别作为骑手和三者出现的命中组,支持案件跳转、批量判定与历史追溯。")])]),t("div",{staticClass:"rider-third-party-review-page__filters"},[t("el-switch",{attrs:{"active-text":"只看待核验"},on:{input:e.handleOnlyPendingToggle},model:{value:e.filters.onlyPending,callback:function(t){e.$set(e.filters,"onlyPending",t)},expression:"filters.onlyPending"}}),t("el-radio-group",{attrs:{size:"mini",disabled:e.filters.onlyPending},on:{input:e.handleReviewStatusChange},model:{value:e.filters.reviewStatus,callback:function(t){e.$set(e.filters,"reviewStatus",t)},expression:"filters.reviewStatus"}},[t("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),t("el-radio-button",{attrs:{label:"useful"}},[e._v("有用")]),t("el-radio-button",{attrs:{label:"not-useful"}},[e._v("无用")]),t("el-radio-button",{attrs:{label:"all"}},[e._v("全部")])],1),t("el-radio-group",{attrs:{size:"mini"},on:{input:e.handleAmountCompleteChange},model:{value:e.filters.amountComplete,callback:function(t){e.$set(e.filters,"amountComplete",t)},expression:"filters.amountComplete"}},[t("el-radio-button",{attrs:{label:"all"}},[e._v("全部金额")]),t("el-radio-button",{attrs:{label:"complete"}},[e._v("金额完整")]),t("el-radio-button",{attrs:{label:"incomplete"}},[e._v("金额不完整")])],1)],1)]),e.errorMessage?t("el-alert",{staticClass:"rider-third-party-review-page__alert",attrs:{type:"error",closable:!1,title:e.errorMessage}}):e._e(),e.loading||e.records.length?e._e():t("el-empty",{attrs:{description:"当前无可核验记录"}}),e.records.length?t("div",{staticClass:"rider-third-party-review-page__batch-bar"},[t("div",{staticClass:"rider-third-party-review-page__batch-summary"},[e._v(" 当前页共 "+e._s(e.records.length)+" 条,可一键批量判断 ")]),t("div",{staticClass:"rider-third-party-review-page__batch-actions"},[t("el-radio-group",{staticClass:"rider-third-party-review-page__batch-group",attrs:{size:"mini"},model:{value:e.batchDecision,callback:function(t){e.batchDecision=t},expression:"batchDecision"}},[t("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),t("el-radio-button",{attrs:{label:"useful"}},[e._v("有用")]),t("el-radio-button",{attrs:{label:"not-useful"}},[e._v("无用")])],1),t("el-button",{attrs:{size:"mini",type:"primary",loading:e.batchSaving},on:{click:e.handleBatchSaveConfirm}},[e._v(" 当前页批量保存 ")])],1)]):e._e(),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"rider-third-party-review-page__list"},e._l(e.records,(function(r){return t("div",{key:r.riskEventId,staticClass:"rider-third-party-review-page__card"},[t("div",{staticClass:"rider-third-party-review-page__main"},[t("div",{staticClass:"rider-third-party-review-page__top-row"},[t("div",{staticClass:"rider-third-party-review-page__identity"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("身份证")]),t("span",[e._v(e._s(r.idCard||"-"))]),t("el-tag",{attrs:{size:"mini",type:"warning"}},[e._v(" "+e._s(e.resolveStatusLabel(r.reviewStatus))+" ")]),t("el-tag",{attrs:{size:"mini",type:r.amountCompleteFlag?"success":"danger"}},[e._v(" "+e._s(r.amountCompleteFlag?"金额完整":"金额不完整")+" ")])],1),t("div",{staticClass:"rider-third-party-review-page__trace"},[t("span",[e._v("规则摘要:"+e._s(r.ruleSummary||"-"))])])]),t("div",{staticClass:"rider-third-party-review-page__code-grid"},[t("div",{staticClass:"rider-third-party-review-page__code-item"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("总案件数")]),t("span",[e._v(e._s(r.validCaseCount||0))])]),t("div",{staticClass:"rider-third-party-review-page__code-item"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("骑手案件数")]),t("span",[e._v(e._s(r.riderCaseCount||0))])]),t("div",{staticClass:"rider-third-party-review-page__code-item"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("三者案件数")]),t("span",[e._v(e._s(r.thirdPartyCaseCount||0))])]),t("div",{staticClass:"rider-third-party-review-page__code-item"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("累计金额")]),t("span",[e._v(e._s(e.formatAmount(r.totalPayAmount)))])]),t("div",{staticClass:"rider-third-party-review-page__code-item"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("生成时间")]),t("span",[e._v(e._s(r.createdAt||"-"))])]),t("div",{staticClass:"rider-third-party-review-page__code-item"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("最近原因")]),t("span",[e._v(e._s(r.lastReasonDesc||"-"))])])]),t("div",{staticClass:"rider-third-party-review-page__case-row"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("骑手案件")]),t("div",{staticClass:"rider-third-party-review-page__case-tags"},e._l(e.resolveCaseNoList(r.riderCaseNoList),(function(i){return t("el-button",{key:`${r.riskEventId}-r-${i}`,attrs:{type:"text"},on:{click:function(t){return e.handleOpenWorkbench(i)}}},[e._v(" "+e._s(i)+" ")])})),1)]),t("div",{staticClass:"rider-third-party-review-page__case-row"},[t("span",{staticClass:"rider-third-party-review-page__label"},[e._v("三者案件")]),t("div",{staticClass:"rider-third-party-review-page__case-tags"},e._l(e.resolveCaseNoList(r.thirdPartyCaseNoList),(function(i){return t("el-button",{key:`${r.riskEventId}-t-${i}`,attrs:{type:"text"},on:{click:function(t){return e.handleOpenWorkbench(i)}}},[e._v(" "+e._s(i)+" ")])})),1)]),t("div",{staticClass:"rider-third-party-review-page__meta"},[t("span",[e._v("排除摘要:"+e._s(r.excludeFlags||"无"))]),r.reviewUpdatedAt?t("span",[e._v("最近处理:"+e._s(r.reviewUpdatedAt))]):e._e()]),e.historyVisibleMap[r.riskEventId]?t("div",{staticClass:"rider-third-party-review-page__history"},[t("div",{staticClass:"rider-third-party-review-page__history-title"},[e._v("历史变更记录和原因")]),(e.historyMap[r.riskEventId]||[]).length?t("el-timeline",e._l(e.historyMap[r.riskEventId],(function(i){return t("el-timeline-item",{key:`${r.riskEventId}-${i.historyId}`,attrs:{timestamp:i.changedAt}},[t("div",{staticClass:"rider-third-party-review-page__history-reason"},[e._v(" "+e._s(i.reasonDesc||i.reasonCode||"无原因")+" ")]),t("div",{staticClass:"rider-third-party-review-page__history-detail"},[e._v(" "+e._s(e.buildHistorySummary(i))+" ")])])})),1):e.historyLoadingMap[r.riskEventId]?e._e():t("el-empty",{attrs:{"image-size":60,description:"暂无历史"}})],1):e._e()]),t("div",{staticClass:"rider-third-party-review-page__side"},[t("el-radio-group",{staticClass:"rider-third-party-review-page__decision-group",attrs:{size:"mini"},model:{value:e.draftStatusMap[r.riskEventId],callback:function(t){e.$set(e.draftStatusMap,r.riskEventId,t)},expression:"draftStatusMap[record.riskEventId]"}},[t("el-radio-button",{attrs:{label:"pending"}},[e._v("待定")]),t("el-radio-button",{attrs:{label:"useful"}},[e._v("有用")]),t("el-radio-button",{attrs:{label:"not-useful"}},[e._v("无用")])],1),t("el-button",{attrs:{size:"mini",type:"primary",loading:e.savingRecordId===r.riskEventId},on:{click:function(t){return e.handleSave(r)}}},[e._v(" 保存 ")]),t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.toggleHistory(r)}}},[e._v(" "+e._s(e.historyVisibleMap[r.riskEventId]?"收起历史":"查看历史")+" ")])],1)])})),0),t("div",{staticClass:"rider-third-party-review-page__pagination"},[t("el-pagination",{attrs:{background:"",layout:"prev, pager, next","current-page":e.filters.pageNo,"page-size":e.filters.pageSize,total:e.total},on:{"current-change":e.handlePageChange}})],1)],1)},a=[],s=(r("b138"),r("865d"),r("8f26"),r("d9d9"),r("963e"),r("1447"),r("61a9")),n=r("d5c9");function o(e={}){const t=e.detailPayload||{};return{...e,idCard:e.bizKey,validCaseCount:e.caseCount,riderCaseCount:t.riderCaseCount||e.extNum1,thirdPartyCaseCount:t.thirdPartyCaseCount||e.extNum2,roleSummary:t.roleSummary||e.extStr1,riderCaseNoList:Array.isArray(t.riderCaseNoList)?t.riderCaseNoList.join(","):"",thirdPartyCaseNoList:Array.isArray(t.thirdPartyCaseNoList)?t.thirdPartyCaseNoList.join(","):"",allCaseNoList:Array.isArray(e.relatedCaseNoList)?e.relatedCaseNoList.join(","):"",totalPayAmount:e.totalAmount,amountCompleteFlag:e.extFlag1,excludeFlags:e.excludePayload&&e.excludePayload.summary||t.excludeFlags,ruleSummary:e.rulePayload&&e.rulePayload.summary||t.ruleSummary,reviewStatus:e.reviewDecision||e.reviewStatus||"pending",lastReasonCode:e.reasonCode||e.lastReasonCode,lastReasonDesc:e.reasonDesc||e.lastReasonDesc,reviewUpdatedAt:e.reviewedAt||e.updatedAt}}function l(e={}){var t;return{...e,historyId:e.reviewHistoryId||e.historyId,beforeReviewStatus:e.beforeReviewDecision||e.beforeReviewStatus,afterReviewStatus:e.afterReviewDecision||e.afterReviewStatus,afterAllCaseNoList:(null===(t=e.snapshotPayload)||void 0===t?void 0:t.afterAllCaseNoList)||e.afterAllCaseNoList}}function d(e="",t={},r){return Object(n["c"])(e,{riskType:n["a"].RIDER_THIRD_PARTY,reviewStatus:t.reviewStatus||"all",reviewDecision:t.reviewDecision||"all",pageNo:t.pageNo||1,pageSize:t.pageSize||20,extFilter1:t.amountComplete||"all"},r,o)}function u(e="",t,r){return Object(n["b"])(e,t,r,l)}function c(e="",t,r={},i){return Object(n["e"])(e,t,r,i,o)}function v(e="",t={},r){return Object(n["d"])(e,{riskType:n["a"].RIDER_THIRD_PARTY,riskEventIds:t.reviewRecordIds||[],decision:t.decision,decisionNote:t.decisionNote},r)}var p={name:"RiderThirdPartyReviewPage",inject:{injectedInterfaceUrl:{from:"interfaceUrl",default:""}},data(){return{loading:!1,savingRecordId:null,batchSaving:!1,records:[],total:0,errorMessage:"",batchDecision:"pending",draftStatusMap:{},historyMap:{},historyVisibleMap:{},historyLoadingMap:{},filters:{reviewStatus:"pending",amountComplete:"all",onlyPending:!0,pageNo:1,pageSize:20}}},created(){this.hydrateFiltersFromRoute(),this.fetchRecords()},methods:{getResolvedInterfaceUrl(){return this.injectedInterfaceUrl||""},goWorkbench(){this.$router.push({path:"/calculatorTool/reviewWorkbench"})},goDuplicateReview(){this.$router.push({path:"/calculatorTool/duplicateReview"})},goSimilarImageReview(){this.$router.push({path:"/calculatorTool/similarImageReview"})},goClaimRiskReview(){this.$router.push({path:"/calculatorTool/claimRiskReview"})},hydrateFiltersFromRoute(){const e=this.$route&&this.$route.query||{},t="false"!==e.onlyPending;this.filters.onlyPending=t,this.filters.reviewStatus=t?"pending":e.reviewStatus||"all",this.filters.amountComplete=e.amountComplete||"all",this.filters.pageNo=Number(e.pageNo)>0?Number(e.pageNo):1},syncRouteQuery(){this.$router&&this.$route&&this.$router.replace({query:{onlyPending:this.filters.onlyPending?"true":"false",reviewStatus:this.filters.reviewStatus,amountComplete:this.filters.amountComplete,pageNo:this.filters.pageNo>1?String(this.filters.pageNo):void 0}}).catch(()=>{})},formatAmount(e){return null===e||void 0===e||""===e?"-":Number(e).toFixed(2)},resolveCaseNoList(e){return e?String(e).split(",").map(e=>e.trim()).filter(Boolean):[]},resolveStatusLabel(e){return"useful"===e?"有用":"not-useful"===e?"无用":"待定"},buildHistorySummary(e){const t=e.afterAllCaseNoList||"-";return"案件全集:"+t},handleOnlyPendingToggle(e){this.filters.reviewStatus=e?"pending":"all",this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handleReviewStatusChange(){this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handleAmountCompleteChange(){this.filters.pageNo=1,this.syncRouteQuery(),this.fetchRecords()},handlePageChange(e){this.filters.pageNo=e,this.syncRouteQuery(),this.fetchRecords()},async fetchRecords(){this.loading=!0,this.errorMessage="";try{const e=await d(this.getResolvedInterfaceUrl(),{reviewStatus:"all",reviewDecision:this.filters.onlyPending?"pending":this.filters.reviewStatus||"all",amountComplete:this.filters.amountComplete,pageNo:this.filters.pageNo,pageSize:this.filters.pageSize}),t=e&&e.data&&e.data.data||{};this.records=t.items||[],this.total=t.total||0,this.draftStatusMap=this.records.reduce((e,t)=>(e[t.riskEventId]=t.reviewStatus||"pending",e),{})}catch(e){this.errorMessage=e&&e.message?e.message:"加载失败",this.records=[],this.total=0}finally{this.loading=!1}},async handleSave(e){this.savingRecordId=e.riskEventId;try{const t=await c(this.getResolvedInterfaceUrl(),e.riskEventId,{decision:this.draftStatusMap[e.riskEventId]}),r=t&&t.data&&t.data.data;if(r&&r.riskEventId){const t=this.records.findIndex(t=>t.riskEventId===e.riskEventId);t>=0&&this.$set(this.records,t,r)}}finally{this.savingRecordId=null}},async handleBatchSaveConfirm(){if(this.records.length){this.batchSaving=!0;try{await v(this.getResolvedInterfaceUrl(),{reviewRecordIds:this.records.map(e=>e.riskEventId),decision:this.batchDecision}),await this.fetchRecords()}finally{this.batchSaving=!1}}},async toggleHistory(e){const t=e.riskEventId,r=!!this.historyVisibleMap[t];if(this.$set(this.historyVisibleMap,t,!r),!r&&!Object.prototype.hasOwnProperty.call(this.historyMap,t)){this.$set(this.historyLoadingMap,t,!0);try{const e=await u(this.getResolvedInterfaceUrl(),t),r=e&&e.data&&e.data.data||[];this.$set(this.historyMap,t,r)}finally{this.$set(this.historyLoadingMap,t,!1)}}},handleOpenWorkbench(e){if(!e)return;const t=Object(s["a"])(e);window.open(t,"_blank")}}},h=p,f=(r("6aea"),r("1805")),g=Object(f["a"])(h,i,a,!1,null,"484588dd",null);t["default"]=g.exports},3739:function(e,t,r){"use strict";var i=r("04c2"),a=r("ac1e"),s=r("203c"),n=r("db2f"),o=r("62f1"),l=r("ed14"),d=r("d5f7"),u=r("8dda"),c=u("find",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){o(this);try{n(e)}catch(i){d(this,"throw",i)}if(c)return a(c,this,e);var t=l(this),r=0;return s(t,(function(t,i){if(e(t,r++))return i(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},"4c15":function(e,t,r){"use strict";var i=r("79b9"),a=r("e833"),s=r("8270"),n=function(e){return a.slice(0,e.length)===e};e.exports=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"}()},"50b7":function(e,t,r){"use strict";var i=r("f43f"),a=r("42ee"),s=r("62fc"),n=URLSearchParams.prototype,o=a(n.forEach);i&&!("size"in n)&&s(n,"size",{get:function(){var e=0;return o(this,(function(){e++})),e},configurable:!0,enumerable:!0})},5545:function(e,t,r){"use strict";var i=r("768e"),a=r("42ee"),s=r("bd47"),n=r("de54"),o=URLSearchParams,l=o.prototype,d=a(l.append),u=a(l["delete"]),c=a(l.forEach),v=a([].push),p=new o("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&i(l,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return u(this,e);var i=[];c(this,(function(e,t){v(i,{key:t,value:e})})),n(t,1);var a,o=s(e),l=s(r),p=0,h=i.length;while(p{var r,i,a;const s=String((null===e||void 0===e?void 0:e.targetCaseNo)||(null===e||void 0===e?void 0:e.target_case_no)||"").trim();if(!s)return null;const n=null!==(r=null!==(i=null===e||void 0===e?void 0:e.targetMaterialId)&&void 0!==i?i:null===e||void 0===e?void 0:e.target_material_id)&&void 0!==r?r:null,o=String((null===e||void 0===e?void 0:e.targetFileHash)||(null===e||void 0===e?void 0:e.target_file_hash)||"").trim(),l=Boolean(null===e||void 0===e?void 0:e.openable)&&Boolean(s);return{key:`${s}-${null!==(a=null!==n&&void 0!==n?n:o)&&void 0!==a?a:t}`,targetCaseNo:s,targetPolicyNo:String((null===e||void 0===e?void 0:e.targetPolicyNo)||(null===e||void 0===e?void 0:e.target_policy_no)||"").trim(),targetMaterialId:n,targetMaterialType:String((null===e||void 0===e?void 0:e.targetMaterialType)||(null===e||void 0===e?void 0:e.target_material_type)||"").trim(),targetFileHash:o,openable:l,disabledReason:String((null===e||void 0===e?void 0:e.disabledReason)||(null===e||void 0===e?void 0:e.disabled_reason)||"").trim(),matchCountInCase:Number((null===e||void 0===e?void 0:e.matchCountInCase)||(null===e||void 0===e?void 0:e.match_count_in_case)||0)||0}}).filter(Boolean)}function a(e={}){return n("/calculatorTool/medicalThreeColumn",e)}function s(e,t,r){const i=Array.isArray(e)?e:[],a=void 0===t||null===t?"":String(t),s=a?i.find(e=>String((null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id)||"")===a):null;return s&&null!==r&&void 0!==r&&r[a]?s:i.find(e=>{const t=(null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id);return void 0!==t&&null!==t&&Boolean(null===r||void 0===r?void 0:r[String(t)])})||null}function n(e,t={}){const r=new URLSearchParams,i=(e,t)=>{void 0!==t&&null!==t&&""!==t&&r.set(e,String(t))};i("caseNo",t.caseNo),i("focusMaterialId",t.focusMaterialId),i("focusFileHash",t.focusFileHash),i("focusMaterialType",t.focusMaterialType),i("sourceCaseNo",t.sourceCaseNo),i("sourceMaterialId",t.sourceMaterialId);const a=r.toString();return a?`${e}?${a}`:e}function o(e){if(void 0===e||null===e||""===e)return!1;const t=String(e).trim();if(!t)return!1;const r=Number(t);return Number.isFinite(r)&&r<0}function l(e){const t=void 0===e||null===e?"":String(e).trim();if(!t)return[];const r=[t],i=Number(t);if(Number.isFinite(i)&&0!==i){const e=String(Math.abs(i)),t="-"+e;r.includes(e)||r.push(e),r.includes(t)||r.push(t)}return r}function d(e,t,r){const i=Array.isArray(e)?e:[],a=l(t);if(a.length){const e=i.find(e=>{const t=String((null===e||void 0===e?void 0:e.material_id)||(null===e||void 0===e?void 0:e.id)||"").trim();return t&&a.includes(t)});if(e)return e}const s=String(r||"").trim();return s&&i.find(e=>{const t=String((null===e||void 0===e?void 0:e.file_hash)||(null===e||void 0===e?void 0:e.fileHash)||(null===e||void 0===e?void 0:e.imgMark)||"").trim();return t&&t===s})||null}function u(e,t){const r=Array.isArray(e)?e:[],i=String(t||"").trim();return i&&r.find(e=>{const t=String((null===e||void 0===e?void 0:e.materials_type)||(null===e||void 0===e?void 0:e.pipeline_materials_type)||(null===e||void 0===e?void 0:e.category)||"").trim();return t&&t===i})||null}},"6aea":function(e,t,r){"use strict";r("2216")},"865d":function(e,t,r){"use strict";var i=r("04c2"),a=r("f370").left,s=r("d1da"),n=r("4de2"),o=r("c3c0"),l=!o&&n>79&&n<83,d=l||!s("reduce");i({target:"Array",proto:!0,forced:d},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:void 0)}})},c3c0:function(e,t,r){"use strict";var i=r("4c15");e.exports="NODE"===i},d1da:function(e,t,r){"use strict";var i=r("56ce");e.exports=function(e,t){var r=[][e];return!!r&&i((function(){r.call(null,t||function(){return 1},1)}))}},d5c9:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return w})),r.d(t,"b",(function(){return b})),r.d(t,"e",(function(){return C})),r.d(t,"d",(function(){return S}));r("0f5d"),r("8f26"),r("d9d9"),r("963e"),r("209c");var i=r("5923"),a=r("eb06"),s=r.n(a);const n={DUPLICATE_REVIEW:"duplicate_review",SIMILAR_IMAGE_REVIEW:"similar_image_review",CLAIM_RISK:"claim_risk",VIN_PLATE_REPEAT:"vin_plate_repeat",RIDER_THIRD_PARTY:"rider_third_party"};function o(e){var t;const r=e||(null===(t=i["default"].prototype)||void 0===t?void 0:t.instance)||s.a.create();return r&&"function"===typeof r.get?r:s.a.create()}function l(e,t){var r;const i=String(e||"").trim();if(i)return i.replace(/\/$/,"");const a=String((null===t||void 0===t||null===(r=t.defaults)||void 0===r?void 0:r.baseURL)||"").trim();return a.replace(/\/$/,"")}function d(e,t){const r=t.startsWith("/")?t:"/"+t,i=String(e||"").trim().replace(/\/$/,"");return i?`${i}/unified-review${r}`:"/unified-review"+r}function u(e,t){const r=t.startsWith("/")?t:"/"+t,i=String(e||"").trim().replace(/\/$/,"");return i?`${i}/manager/unified-review${r}`:"/manager/unified-review"+r}function c(e){var t;const r=Number((null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status)||0);return 404===r||405===r}function v(e,t){return e().catch(e=>{if(!c(e))throw e;return t()})}function p(e){return Array.isArray(e)?e:e?String(e).split(",").map(e=>e.trim()).filter(Boolean):[]}function h(e){if(!e)return{};if("object"===typeof e)return e;try{return JSON.parse(e)}catch(t){return{}}}function f(e){return Boolean(e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"code")&&Object.prototype.hasOwnProperty.call(e,"message"))}function g(e){if(f(e))return e;const t=e&&e.data;return f(t)?t:t||{}}function y(e={}){const t=e.primaryCaseNo||e.primary_case_no||"",r=p(e.relatedCaseNoList||e.related_case_no_list),i=h(e.detailPayload||e.detail_payload),a=h(e.rulePayload||e.rule_payload),s=h(e.excludePayload||e.exclude_payload),n=e.riskEventId||e.risk_event_id||e.reviewRecordId,o=null==n?"":String(n),l=e.reviewRecordId||e.riskEventId||e.risk_event_id,d=null==l?"":String(l);return{...e,reviewRecordId:d,riskEventId:o,primaryCaseNo:t,relatedCaseNoList:r,detailPayload:i,rulePayload:a,excludePayload:s}}function _(e,t){const r=g(e),i=r.data||{},a=Array.isArray(i.items)?i.items.map(e=>t(y(e))):[];return{...e,data:{...r,data:{...i,items:a}}}}function m(e,t){const r=g(e),i=Array.isArray(r.data)?r.data.map(e=>t({...e,snapshotPayload:h(e.snapshotPayload||e.snapshot_payload),changedAt:e.changedAt||e.createdAt||e.created_at})):[];return{...e,data:{...r,data:i}}}function w(e="",t={},r,i=(e=>e)){const a=o(r),s=l(e,a);return v(()=>a.post(d(s,"/query"),t||{}),()=>a.post(u(s,"/query"),t||{})).then(e=>_(e,i))}function b(e="",t,r,i=(e=>e)){if(!t)throw new Error("riskEventId 不能为空");const a=o(r),s=l(e,a);return v(()=>a.get(d(s,`/${t}/history`),{params:{}}),()=>a.get(u(s,`/${t}/history`),{params:{}})).then(e=>m(e,i))}function C(e="",t,r={},i,a=(e=>e)){if(!t)throw new Error("riskEventId 不能为空");if(!r.decision)throw new Error("payload.decision 必须提供");const s=o(i),n=l(e,s);return v(()=>s.post(d(n,`/${t}/decision`),r),()=>s.post(u(n,`/${t}/decision`),r)).then(e=>{const t=g(e);return{...e,data:{...t,data:a(y(t.data||{}))}}})}function S(e="",t={},r){if(!Array.isArray(t.riskEventIds)||!t.riskEventIds.length)throw new Error("payload.riskEventIds 必须提供");if(!t.decision)throw new Error("payload.decision 必须提供");const i=o(r),a=l(e,i);return v(()=>i.post(d(a,"/batch-decision"),t),()=>i.post(u(a,"/batch-decision"),t))}},de54:function(e,t,r){"use strict";var i=TypeError;e.exports=function(e,t){if(e=0:p>h;h+=f)h in v&&(u=r(u,v[h],h,c));return u}};e.exports={left:d(!1),right:d(!0)}},ff4d:function(e,t,r){"use strict";var i=r("768e"),a=r("42ee"),s=r("bd47"),n=r("de54"),o=URLSearchParams,l=o.prototype,d=a(l.getAll),u=a(l.has),c=new o("a=1");!c.has("a",2)&&c.has("a",void 0)||i(l,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return u(this,e);var i=d(this,e);n(t,1);var a=s(r),o=0;while(o