1"use strict";(self["webpackChunknaezipscan_front"]=self["webpackChunknaezipscan_front"]||[]).push([[15442],{15442:function(t,e,s){s.r(e),s.d(e,{default:function(){return _}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"corp_modal_overlay",on:{click:function(e){return e.target!==e.currentTarget?null:t.fnClose.apply(null,arguments)}}},[e("div",{staticClass:"corp_modal"},[e("div",{staticClass:"corp_modal_mobile_titlebar"},[e("img",{staticClass:"corp_modal_mobile_back",attrs:{src:s(84076),alt:"ë¤ë¡"},on:{click:t.fnClose}}),e("p",{staticClass:"corp_modal_mobile_title"},[t._v("ë²ì¸ë±ë¡ë²í¸ë¡ ì¡°íí기")])]),e("div",{staticClass:"corp_modal_body"},[e("div",{staticClass:"corp_modal_web_header"},[e("p",{staticClass:"corp_modal_title"},[t._v("ë²ì¸ ë±ë¡ ë²í¸ë¡ ì¡°íí기")]),e("button",{staticClass:"corp_modal_close_btn",attrs:{type:"button","aria-label":"ë«ê¸°"},on:{click:t.fnClose}},[t._v(" à ")])]),e("div",{staticClass:"corp_modal_search_row"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],ref:"keywordInput",staticClass:"corp_modal_search_input",attrs:{type:"text",placeholder:t.inputPlaceholder,disabled:t.autocompleteDisabled,maxlength:"14",inputmode:"numeric"},domProps:{value:t.keyword},on:{input:[function(e){e.target.composing||(t.keyword=e.target.value)},t.fnOnKeywordInput],keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fnSearchManual.apply(null,arguments)}}}),e("button",{staticClass:"corp_modal_search_btn",attrs:{type:"button",disabled:t.autocompleteDisabled},on:{click:t.fnSearchManual}},[t._v(" ê²ìí기 ")]),e("button",{staticClass:"corp_modal_search_btn_mobile",attrs:{type:"button","aria-label":"ê²ì",disabled:t.autocompleteDisabled},on:{click:t.fnSearchManual}},[e("img",{attrs:{src:s(57337),alt:"ê²ì"}})])]),e("div",{staticClass:"corp_modal_result_box"},[t.isLoading?e("div",{staticClass:"corp_modal_placeholder"},[e("div",{staticClass:"corp_modal_spinner"}),e("p",{staticClass:"corp_modal_placeholder_text"},[t._v("ê²ì ì¤...")])]):t.quotaError?e("div",{staticClass:"corp_modal_placeholder"},[e("img",{staticClass:"corp_modal_warn_icon",attrs:{src:s(67622),alt:"ìë´"}}),e("p",{staticClass:"corp_modal_placeholder_text"},[t._v("ìëìì±ì ì¼ìì ì¼ë¡ ì´ì©í ì ììµëë¤")]),e("p",{staticClass:"corp_modal_placeholder_sub"},[t._v("ë²ì¸ëª
ê³¼ ë²ì¸ë±ë¡ë²í¸ë¥¼ ì§ì ì
ë ¥í´ ì£¼ì¸ì")])]):t.networkError?e("div",{staticClass:"corp_modal_placeholder"},[e("img",{staticClass:"corp_modal_warn_icon",attrs:{src:s(67622),alt:"ìë¬"}}),e("p",{staticClass:"corp_modal_placeholder_text"},[t._v("ê²ìì ì¤í¨íì´ì")]),e("p",{staticClass:"corp_modal_placeholder_sub"},[t._v(" ì ì í ë¤ì ìëíê±°ë ë¤ë¥¸ ë°©ë²ì¼ë¡ ì¡°íí´ ì£¼ì¸ì ")])]):t.hasSearched?0===t.items.length?e("div",{staticClass:"corp_modal_placeholder"},[e("img",{staticClass:"corp_modal_warn_icon",attrs:{src:s(67622),alt:"ê²°ê³¼ìì"}}),e("p",{staticClass:"corp_modal_placeholder_text"},[t._v(" ì
ë ¥íì ë²ì¸ ë±ë¡ ë²í¸ì ì¼ì¹íë ë²ì¸ ì 보를 ì°¾ì ì ììµëë¤. ")]),e("p",{staticClass:"corp_modal_placeholder_sub"},[t._v(" ì 보를 ë¤ì íì¸íìê±°ë, ë²ì¸ëª
ì¼ë¡ ì¡°í를 ì§íí´ ë³´ì기 ë°ëëë¤. ")]),e("button",{staticClass:"corp_modal_alt_btn",attrs:{type:"button"},on:{click:t.fnSwitchToName}},[t._v(" ë²ì¸ëª
ì¼ë¡ ì¡°íí기 ")])]):e("ul",{staticClass:"corp_modal_list"},t._l(t.items,(function(a,o){return e("li",{key:`${a.cno}-${o}`,staticClass:"corp_modal_list_item",class:{selected:t.selectedIdx===o},on:{click:function(e){return t.fnSelectItem(o)}}},[e("img",{staticClass:"corp_modal_radio",attrs:{src:t.selectedIdx===o?s(38335):s(60196),alt:"ì í"}}),e("div",{staticClass:"corp_modal_list_item_text"},[e("span",{staticClass:"corp_modal_company_name"},[t._v(t._s(a.company))]),e("span",{staticClass:"corp_modal_company_cno"},[t._v(t._s(t.fnFormatCno(a.cno)))])])])})),0):e("div",{staticClass:"corp_modal_placeholder corp_modal_placeholder_empty"})]),e("div",{staticClass:"corp_modal_footer"},[e("button",{staticClass:"corp_modal_confirm_btn",attrs:{type:"button",disabled:null===t.selectedIdx},on:{click:t.fnConfirm}},[t._v(" ì¡°íí기 ")])])])])])},o=[],r=s(90408),l=s(49189);const i="sherlock_corp_autocomplete_disabled";var c={name:"SherlockCorpRegnoSearchModalComponent",props:{initialKeyword:{type:String,default:""}},data(){return{keyword:"",isLoading:!1,items:[],hasSearched:!1,selectedIdx:null,quotaError:!1,networkError:!1,autocompleteDisabled:!1,requestSeq:0}},computed:{inputPlaceholder(){return this.quotaError?"ë²ì¸ë±ë¡ë²í¸ë¥¼ ì§ì ì
ë ¥í´ ì£¼ì¸ì":"000000-0000000"}},created(){this.$mixpanel_track("View Sherlock-Search-Corp-RegnoSearchModal"),"1"===sessionStorage.getItem(i)&&(this.quotaError=!0,this.autocompleteDisabled=!0)},mounted(){this.fnInit()},methods:{...(0,r.nv)("sherlockStore/corpStore",["acPostSherlockCorpRegnoLookup"]),fnInit(){this.initialKeyword&&(this.keyword=this.initialKeyword,this.fnSearch()),this.$nextTick((()=>{this.$refs.keywordInput&&this.$refs.keywordInput.focus()}))},fnOnKeywordInput(){const t=(this.keyword||"").replace(/[^0-9-]/g,"");t!==this.keyword&&(this.keyword=t)},fnSearchManual(){this.fnSearch()},async fnSearch(){this.networkError=!1;const t=(this.keyword||"").trim(),e=t.replace(/\D/g,"");if(!e)return this.items=[],this.hasSearched=!1,void(this.selectedIdx=null);if(e.length<13)return this.items=[],this.hasSearched=!1,void(this.selectedIdx=null);if(this.autocompleteDisabled)return;const s=++this.requestSeq;this.isLoading=!0;try{const e=await this.acPostSherlockCorpRegnoLookup({cno:t});if(s!==this.requestSeq)return;if(!e)return this.items=[],this.hasSearched=!0,void(this.selectedIdx=null);if("QUOTA_EXCEEDED"===e.errorType)return this.quotaError=!0,this.autocompleteDisabled=!0,sessionStorage.setItem(i,"1"),this.items=[],this.hasSearched=!1,void(this.selectedIdx=null);
1if("NETWORK_ERROR"===e.errorType||"UNKNOWN_ERROR"===e.errorType)return this.networkError=!0,this.items=[],this.hasSearched=!1,void(this.selectedIdx=null);if("INVALID_PARAM"===e.errorType)return this.items=[],this.hasSearched=!1,void(this.selectedIdx=null);const a=e.item;this.items=a?[a]:[],this.hasSearched=!0,this.selectedIdx=null}finally{s===this.requestSeq&&(this.isLoading=!1)}},fnSelectItem(t){this.selectedIdx=t},fnConfirm(){if(null===this.selectedIdx)return;const t=this.items[this.selectedIdx];t&&(this.$mixpanel_track("Click Sherlock-Search-Corp-RegnoSearchModal-Confirm"),this.$emit("childFnSelectCorp",{company:t.company,cno:t.cno,bno:t.bno}))},fnSwitchToName(){this.$mixpanel_track("Click Sherlock-Search-Corp-RegnoSearchModal-SwitchToName"),this.$emit("childFnSwitchToName")},fnClose(){this.$emit("childFnClose")},fnFormatCno(t){return(0,l.w)(t)}}},n=c,d=s(43736),p=(0,d.Z)(n,a,o,!1,null,"07759d95",null),_=p.exports},84076:function(t,e,s){t.exports=s.p+"img/arrow_left.db9d60c9.svg"},60196:function(t,e,s){t.exports=s.p+"img/radio_disabled.cf75a932.svg"},38335:function(t,e,s){t.exports=s.p+"img/radio_selected.3243dab6.svg"},67622:function(t,e,s){t.exports=s.p+"img/warn.9f182b5a.svg"}}]); 2//# sourceMappingURL=15442.7776df57.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.