PageSourceSearch

https://www.brightics.ai/static/js/52.2b618d81.chunk.js

js brightics.ai collected 2026-10-02 20:50:15 UTC 12,968 bytes, 1 lines download raw bytes

1(this.webpackJsonpbrightics_ai=this.webpackJsonpbrightics_ai||[]).push([[52],{1160:function(e,t,n){},1161:function(e,t,n){},1227:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return U}));var a=n(66),c=n(1),r=n(623),i=n(353),s=n(22),o=n(55);function u(){}var l=n(178);function d(e,t,n){return function(a){return a.lift(new h(e,t,n))}}var h=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new b(e,this.nextOrObserver,this.error,this.complete))},e}(),b=function(e){function t(t,n,a,c){var r=e.call(this,t)||this;return r._tapNext=u,r._tapError=u,r._tapComplete=u,r._tapError=a||u,r._tapComplete=c||u,Object(l.a)(n)?(r._context=r,r._tapNext=n):n&&(r._context=n,r._tapNext=n.next||u,r._tapError=n.error||u,r._tapComplete=n.complete||u),r}return s.a(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(o.a),m=n(211),j=new(n(210).a)(m.a);function f(e,t){return void 0===t&&(t=j),function(n){return n.lift(new p(e,t))}}var p=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new v(e,this.dueTime,this.scheduler))},e}(),v=function(e){function t(t,n,a){var c=e.call(this,t)||this;
1return c.dueTime=n,c.scheduler=a,c.debouncedSubscription=null,c.lastValue=null,c.hasValue=!1,c}return s.a(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(o.a);function O(e){e.debouncedNext()}var y=n(620),x=n(108);function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Object(x.a)(A(e,n))(t)}}function A(e,t){return function(n){for(var a=n,c=0;c<t;c++){var r=null!=a?a[e[c]]:void 0;if(void 0===r)return;a=r}return a}}var g,_=n(226),k=n(599),R=n(52),w=n(90),S=n(48),E=n(12),C=n(13),M=n(154),P=n(6),V=n(601),Q=n(157),F=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return s.a(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Q.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(V.a),I=new F({pageNo:0,categoryName:"",keyword:"",searchResults:[]}),D=new F("");!function(e){e.All="all",e.Prebuilt="Prebuilt",e.SuccessStory="Success Story",e.PartnerFAQ="Partner FAQ",e.PartnerQAndA="Partner Q&A",e.CommunityFAQ="Community FAQ"}(g||(g={}));var H=function(){function e(){Object(E.a)(this,e)}return Object(C.a)(e,[{key:"handleSearchData",value:function(e){var t=this;if(e){var n={key:"all",name:M.a.t("search.All"),totalResult:0,active:!0,pageNo:0,data:[]},a=e.map((function(e){return n.totalResult+=e.totalResult,{active:!1,pageNo:e.pageNo,key:e.categoryName,name:M.a.t("search.".concat(e.categoryName)),totalResult:e.totalResult,data:t.getSubItem(e.data)}}));return[n].concat(Object(S.a)(a))}return[]}},{key:"handleLoadMore",value:function(e,t,n,a){var c=this;return t?e.map((function(e){return e.key===a&&(e.data=[].concat(Object(S.a)(e.data),Object(S.a)(c.getSubItem(t))),e.pageNo=n),e})):[]}},{key:"getSubItem",value:function(e){if(e){var t=Object(P.f)();return e.map((function(e){return{id:e.id,title:t===P.a.korea?e.titleKr:e.titleEn,content:t===P.a.korea?e.contentKr:e.contentEn,categoryName:e.categoryName}}))}return[]}},{key:"getLink",value:function(e,t){switch(e){case g.Prebuilt:return"/resources/pre-built-model/detail/".concat(t);case g.SuccessStory:return"/resources/success-story/detail/".concat(t);case g.PartnerFAQ:return"/partner/partner-FAQ?id=".concat(t);case g.PartnerQAndA:return"/partner/partner-Q&A-detail?id=".concat(t);case g.CommunityFAQ:return"/community/FAQ?id=".concat(t);default:return""}}}]),e}(),T=n(17),L=n(14),B=n(5),K=function(){function e(){Object(E.a)(this,e),this.apiGateWay=void 0,this.apiGateWay=new T.a(Object(L.a)())}return Object(C.a)(e,[{key:"searchAll",value:function(e){var t=B.mc(e);return this.apiGateWay.getRequest(t)}},{key:"loadMore",value:function(e){var t=B.Hb(e);return this.apiGateWay.getRequest(t)}}]),e}(),G=(n(1160),n(2));function J(){return Object(G.jsx)("div",{className:"app-loader",children:Object(G.jsxs)("div",{className:"lds-spinner",children:[Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{}),Object(G.jsx)("div",{})]})})}n(1161);var W=n(10);function U(){var e=Object(R.g)(),t=Object(k.a)(),n=t.t,s=t.i18n,o=Object(c.useState)(""),u=Object(a.a)(o,2),l=u[0],h=u[1],b=Object(c.useState)(!1),m=Object(a.a)(b,2),j=m[0],p=m[1],v=Object(c.useState)(function(e){return[{key:"all",name:e("search.all"),totalResult:0,active:!0,data:[],pageNo:0}
1,{key:"Prebuilt",name:e("search.prebuilt"),totalResult:0,active:!1,data:[],pageNo:0},{key:"Success Story",name:e("search.successStory"),totalResult:0,active:!1,data:[],pageNo:0},{key:"Partner FAQ",name:e("search.partnerFAQ"),totalResult:0,active:!1,data:[],pageNo:0},{key:"Partner Q&A",name:e("search.partnerQAndA"),totalResult:0,active:!1,data:[],pageNo:0},{key:"Community FAQ",name:e("search.communityFAQ"),totalResult:0,active:!1,data:[],pageNo:0}]}(n)),O=Object(a.a)(v,2),A=O[0],S=O[1],E=function(t){decodeURI(t).trim()&&(D.next(decodeURI(t).trim()),e.replace("/search?key=".concat(decodeURI(t).trim())))},C=Object(c.useCallback)((function(e){var t=A.map((function(t){return t.active=t.key===e,t}));S(t)}),[A]),M=Object(c.useMemo)((function(){return A.map((function(e){var t=e.totalResult,n=e.name,a=e.key,c=e.active,r="search-result__tabs--item ".concat(c?"active":"");return Object(G.jsxs)("div",{className:r,onClick:function(){C(a)},children:[n,"(",t,")"]},a)}))}),[A,C]),P=Object(c.useMemo)((function(){var e;return null===(e=A.find((function(e){return!0===e.active})))||void 0===e?void 0:e.key}),[A]),V=Object(c.useMemo)((function(){return P!==g.All?"single-category":""}),[P]),Q=Object(c.useCallback)((function(e){var t=A.filter((function(e){return e.key===P}));I.next({keyword:l,categoryName:e||t[0].key,pageNo:t[0].pageNo+1,searchResults:A})}),[P,A,l]),F=Object(c.useMemo)((function(){var e=A.filter((function(e){return e.key===P}));return P===g.All?null:e[0].data.length<e[0].totalResult?Object(G.jsx)("div",{className:"view-more-btn-container",children:Object(G.jsx)("div",{className:"btnPrimary btnSize01 pointer",onClick:function(){return Q()},children:n("search.seeMore")})}):void 0}),[P,A,Q,n]),T=Object(c.useMemo)((function(){var e=new H,t=A.filter((function(e){return e.key===P}));return P===g.All&&(t=A),t.map((function(t){return t.key===g.All||0===t.totalResult?null:P!==g.All?t.data.length&&t.data.map((function(a,c){return Object(G.jsx)("div",{className:"search-result__list--item",children:Object(G.jsx)("div",{className:"sub-item-container",children:Object(G.jsxs)("div",{className:"sub-item-container__item",children:[Object(G.jsx)("div",{className:"sub-item-container__item--title",children:a.title}),Object(G.jsx)("pre",{className:"sub-item-container__item--description",dangerouslySetInnerHTML:{__html:Object(W.a)(a.content)}}),Object(G.jsxs)(w.a,{className:"sub-item-container__item--view-more",to:e.getLink(t.key,a.id),children:[n("search.learnMore")," >\xa0 "]})]})})},c)})):Object(G.jsxs)("div",{className:"search-result__list--item",children:[Object(G.jsx)("div",{className:"title",children:"".concat(t.name," (").concat(t.totalResult,")")}),t.data.length&&t.data.map((function(a,c){return Object(G.jsx)("div",{className:"sub-item-container",children:Object(G.jsxs)("div",{className:"sub-item-container__item",children:[Object(G.jsx)("div",{className:"sub-item-container__item--title",children:a.title}),Object(G.jsx)("pre",{className:"sub-item-container__item--description",dangerouslySetInnerHTML:{__html:Object(W.a)(a.content)}}),Object(G.jsxs)(w.a,{className:"sub-item-container__item--view-more",to:e.getLink(t.key,a.id),children:[n("search.learnMore")," >\xa0 "]})]})},c)})),t.data.length<t.totalResult&&Object(G.jsx)("div",{className:"view-more-btn-container",children:Object(G.jsx)("div",{className:"btnPrimary btnSize01 pointer",onClick:function(){return Q(t.key)},children:n("search.seeMore")})})]},t.key)}))}),[A,P,Q,n]);return Object(c.useEffect)((function(){var t=new URLSearchParams(e.location.search).get("key");t&&(h(t),D.next(t))}),[e.location]),Object(c.useEffect)((function(){var e=new H,t=new K;D.pipe(d((function(e){e&&p(!0)})),f(300),Object(y.a)((function(n){return Object(r.a)((function(){return!!n}),t.searchAll(n).pipe(d((function(){return p(!1)})),N("data"),Object(x.a)((function(t){var n=t.data,a=e.handleSearchData(n);S(a)})),Object(_.a)((function(e){return Object(i.a)(e,p(!1))}))))}))).subscribe()}),[s.language]),Object(c.useEffect)((function(){var e=new H,t=new K;I.pipe(d((function(e){e.keyword&&p(!0)})),f(300),Object(y.a)((function(n){return Object(r.a)((function(){return!!n.keyword}),t.loadMore(n).pipe(d((function(){return p(!1)})),N("data"),Object(x.a)((function(t){var a=t.data,c=e.handleLoadMore(n.searchResults,a,n.pageNo,n.categoryName);S(c)})),Object(_.a)((function(e){return Object(i.a)(e,p(!1))}))))}
1))).subscribe()}),[]),Object(c.useEffect)((function(){return function(){D.next(""),I.next({pageNo:0,categoryName:"",keyword:"",searchResults:[]})}}),[]),Object(G.jsxs)("main",{role:"main",id:"contents",className:"mainContW pB80",children:[Object(G.jsxs)("section",{className:"container boxRelative",children:[Object(G.jsx)("div",{className:"locationW",children:Object(G.jsxs)("ul",{className:"location",children:[Object(G.jsx)("li",{children:Object(G.jsx)(w.a,{to:"/",className:"txtGray01",children:"Home >\xa0"})}),Object(G.jsx)("li",{children:n("search.search")})]})}),Object(G.jsx)("div",{className:"search-section",children:Object(G.jsx)("div",{className:"search-section__container",children:Object(G.jsxs)("div",{className:"search-section__input",children:[Object(G.jsx)("input",{type:"text",name:"keyword",value:l,onChange:function(e){h(e.target.value)},placeholder:n("search.placeHolder"),onKeyDown:function(e){"Enter"===e.key&&E(l)}}),Object(G.jsx)("div",{className:"search-section__btn",onClick:function(){return E(l)},children:Object(G.jsx)("img",{id:"search_icon_dp",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAjlJREFUSEu1VTtMAkEQdfkEvNBpKS2hIEE+Dba02tpKZyiVjlCqHcRO7axttcVSGn6XUAAtrXTkAuHnm8vu5VhuOSB4CeHudmbfmzfvZtmR4jrH5fV641gOM8bCPMxYLpf9xWLR9ng8eqPRMFT54j2TA+LxeMTv99/g/alLsgGgarPZ/NoUtwKQSCQyYJ2jBDAd4teez+dtXdf79C4Wi4UBfgb2F6gqwuN6+H9VVWMBJJPJKyReUhKYfYHZ5yZmXMIcgI5BZACAB6d4E4DLUqB7MH5vtVo1N21FRYFAoEAgXK4POc8ESKVSTwg62Ya5omcmudFoVOx2u0N7DKNSfT5fnjRHmcVtmMsxkDcHeTMgWIO07ysAtkVX3VXg1PxgMFjCulGv1+9WACBPiXw+nU7Lwi37VIF9nqkX4/H4odPpDMQeLJ1Ov9EDkG/32VjkAICaHZGJ/j+AcJBc2q7VqKRmWMijtPNd/C+DR6PRk1Ao9OQkNcN4yGI8XMOmPdi0sitzihdTwNGmqEBDDH1ox7PZ7KWNaxcQykfuI3I0JyeaX7KognyMXlTsNnMDE+6hMQ4FynK8NexE4LYgvPJ7cVaoTGIHIKmsBDD6mUwm33I11FBN0zIYDVmSRTCmiYr7ijy21w4cNOyaJ4vcX5pT/IH0FqcbnRl9kPjARL2h904gawC0EWd5Rfal5su60kEEQ1TFaLHLJYM4Atg3pEEGG1sgqnmlAnEFcHORfd0J5KAABCaDHBzADkL3fzEOW/XoiQSzAAAAAElFTkSuQmCC",alt:""})})]})})})]}),j&&Object(G.jsx)(J,{}),A[0].totalResult>0&&!j&&Object(G.jsxs)("section",{className:"container boxRelative search-result",children:[Object(G.jsx)("div",{className:"search-result__total-result",children:n("search.totalResult",{count:A[0].totalResult})}),Object(G.jsx)("div",{className:"search-result__tabs",children:M}),Object(G.jsxs)("div",{className:"search-result__list ".concat(V),children:[T,F]})]}),D.value&&0===A[0].totalResult&&!j&&Object(G.jsx)("section",{className:"container boxRelative search-result",children:Object(G.jsx)("div",{className:"search-result__total-result",children:n("search.totalResult",{count:A[0].totalResult})})})]})}}}]);

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.