PageSourceSearch

https://www.banayeni.com/_next/static/chunks/pages/mobileApp/header/searchModal-11c115d08adaa807.js

js banayeni.com collected 2026-10-08 08:00:15 UTC 8,153 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6710],{91288:function(e,t,n){"use strict";var i=n(13659),s=n(74987),r=n(22733),a=n(61370),o=n(32466),l=n(96948),c=n.n(l),u=n(80237),d=n.n(u),f=n(90126),h={children:c().node,type:c().string,size:c().string,bsSize:c().string,valid:c().bool,invalid:c().bool,tag:f.iC,innerRef:c().oneOfType([c().object,c().func,c().string]),plaintext:c().bool,addon:c().bool,className:c().string,cssModule:c().object},p=function(e){function t(t){var n;return(n=e.call(this,t)||this).getRef=n.getRef.bind((0,r.Z)(n)),n.focus=n.focus.bind((0,r.Z)(n)),n}(0,a.Z)(t,e);var n=t.prototype;return n.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},n.focus=function(){this.ref&&this.ref.focus()},n.render=function(){var e=this.props,t=e.className,n=e.cssModule,r=e.type,a=e.bsSize,l=e.valid,c=e.invalid,u=e.tag,h=e.addon,p=e.plaintext,v=e.innerRef,m=(0,s.Z)(e,["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"]),g=["radio","checkbox"].indexOf(r)>-1,x=new RegExp("\\D","g"),j=u||("select"===r||"textarea"===r?r:"input"),b="form-control";p?(b+="-plaintext",j=u||"input"):"file"===r?b+="-file":g&&(b=h?null:"form-check-input"),m.size&&x.test(m.size)&&((0,f.O4)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),a=m.size,delete m.size);var N=(0,f.mx)(d()(t,c&&"is-invalid",l&&"is-valid",!!a&&"form-control-"+a,b),n);return("input"===j||u&&"function"===typeof u)&&(m.type=r),m.children&&!p&&"select"!==r&&"string"===typeof j&&"select"!==j&&((0,f.O4)('Input with a type of "'+r+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete m.children),o.createElement(j,(0,i.Z)({},m,{ref:v,className:N}))},t}(o.Component);p.propTypes=h,p.defaultProps={type:"text"},t.Z=p},47065:function(e,t,n){"use strict";var i=n(13659),s=n(74987),r=n(32466),a=n(96948),o=n.n(a),l=n(80237),c=n.n(l),u=n(90126),d={tag:u.iC,flush:o().bool,className:o().string,cssModule:o().object},f=function(e){var t=e.className,n=e.cssModule,a=e.tag,o=e.flush,l=(0,s.Z)(e,["className","cssModule","tag","flush"]),d=(0,u.mx)(c()(t,"list-group",!!o&&"list-group-flush"),n);return r.createElement(a,(0,i.Z)({},l,{className:d}))};f.propTypes=d,f.defaultProps={tag:"ul"},t.Z=f},96247:function(e,t,n){"use strict";var i=n(13659),s=n(74987),r=n(32466),a=n(96948),o=n.n(a),l=n(80237),c=n.n(l),u=n(90126),d={tag:u.iC,active:o().bool,disabled:o().bool,color:o().string,action:o().bool,className:o().any,cssModule:o().object},f=function(e){e.preventDefault()},h=function(e){var t=e.className,n=e.cssModule,a=e.tag,o=e.active,l=e.disabled,d=e.action,h=e.color,p=(0,s.Z)(e,["className","cssModule","tag","active","disabled","action","color"]),v=(0,u.mx)(c()(t,!!o&&"active",!!l&&"disabled",!!d&&"list-group-item-action",!!h&&"list-group-item-"+h,"list-group-item"),n);return l&&(p.onClick=f),r.createElement(a,(0,i.Z)({},p,{className:v}))};h.propTypes=d,h.defaultProps={tag:"li"},t.Z=h},31573:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/mobileApp/header/searchModal",function(){return n(11401)}])},13094:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(93288);n(44926);function s(e){var t=e.children;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{children:t})})}},11401:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var i=n(63463),s=n(93288),r=n(32466),a=n(13094),o=n(21017),l=n(50879),c=n(84419),u=n(35313),d=n(57737),f=n(91288),h=n(47065),p=n(96247),v=n(84207),m=n(23730),g=n.n(m),x=n(27269),j=(n(21395),n(26098)),b=(0,c.Zh)((function(e){var t=e.t,n=e.status,i=(0,r.useState)(""),a=i[0],c=i[1],m=(0,r.useState)(!1),b=(m[0],m[1]),N=(0,r.useState)(null),y=N[0],w=N[1],Z=(0,r.useState)([]),_=Z[0],k=Z[1],S=function(e){(0,x.KF)({term:e}).then(function(){var e=(0,o.Z)((function(e){var t,n;return(0,l.__generator)(this,(function(i){return(null===e||void 0===e?void 0:e.isSuccess)&&(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.data.length)>0?k(null===e||void 0===e||null===(n=e.response)||void 0===n?void 0:n.data):k(null),[2]}))}
1));return function(t){return e.apply(this,arguments)}}()).catch((function(e){return console.log(e)})).finally((function(){return b(!1)}))},z=function(t){!function(t){t.preventDefault(),e.toOpenSearch()}(t)},P=function(t){t.length>=2&&(e.toOpenSearch(),window.location="/search?q="+t)};return(0,s.jsx)(s.Fragment,{children:!0===n&&(0,s.jsx)("div",{className:"menu-items fade-in",style:{minHeight:"auto"},children:(0,s.jsxs)("div",{className:"container p-3",children:[(0,s.jsxs)("div",{className:"search",children:[(0,s.jsx)("div",{className:"search-input d-flex align-items-center ",children:(0,s.jsxs)(u.Z,{className:"mr-0",children:[(0,s.jsx)(d.Z,{children:(0,s.jsx)("span",{className:g().searchIconWithPopup})}),(0,s.jsx)(f.Z,{className:"font-arial text-16",autoFocus:!0,value:a,onInput:function(e){return function(e){c(e),y&&(clearTimeout(y),w(null),new Date);w(setTimeout((function(){b(!0),e.length>=3?S(e):b(!1)}),500))}(e.target.value)},onKeyPress:function(e){13===(e.which||e.keyCode||0)&&P(e.target.value)},placeholder:t("general.search")}),a.length>0&&(0,s.jsx)("div",{className:"close-btn",onClick:function(){return k([]),void c("")},children:(0,s.jsx)(v.X,{width:35,height:35})})]})}),(0,s.jsx)("div",{className:"giveUp",onClick:function(e){return z(e)},children:t("general.giveUp")})]}),(0,s.jsx)("div",{className:"mt-20p mb-20p",children:null===_||void 0===_?void 0:_.map((function(e,t){return(0,s.jsx)(h.Z,{flush:!0,children:(0,s.jsx)(p.Z,{onClick:function(){return P(e.term)},title:e.term,className:"d-flex justify-content-start align-items-center",children:(0,s.jsx)("div",{style:{fontSize:16,marginTop:5},className:"search-result_item",dangerouslySetInnerHTML:{__html:e.term.replace(new RegExp(a,"gi"),'<span style="font-weight: 900">$&</span>')}})})},t)}))}),(null===a||void 0===a?void 0:a.length)>=3&&null===_&&(0,s.jsx)("div",{className:"sell-product-search mt-15p",children:(0,s.jsx)(j.Z,{})})]})})})})),N=n(58592);function y(){var e=(0,i.Z)(["\n        padding:10px;\n        > div > div {\n        top:10px !important;\n        left:10px !important;\n        }\n    "]);return y=function(){return e},e}function w(){var e=(0,r.useState)(!0),t=e[0],n=e[1],i=N.default.div(y());return(0,s.jsx)("div",{style:{position:"relative",overflow:"hidden",width:"100%",height:"100%"},children:(0,s.jsx)(i,{children:(0,s.jsx)(b,{toOpenSearch:function(){},status:t,setOpenSearch:n})})})}w.Layout=a.Z},84207:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var i=n(93288),s=(n(32466),function(e){var t=e.width,n=void 0===t?44:t,s=e.height,r=void 0===s?44:s;return(0,i.jsxs)("svg",{id:"menu-icon-search-close",xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 44 44",children:[(0,i.jsxs)("g",{id:"Rectangle_94","data-name":"Rectangle 94",fill:"rgba(0,0,0,0.75)",stroke:"rgba(0,0,0,0.15)",strokeWidth:"1",opacity:"0",children:[(0,i.jsx)("rect",{width:"44",height:"44",stroke:"none"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"43",height:"43",fill:"none"})]}),(0,i.jsxs)("g",{id:"Group_1139","data-name":"Group 1139",transform:"translate(824.13 -1178.796) rotate(45)",children:[(0,i.jsx)("circle",{id:"Ellipse_67","data-name":"Ellipse 67",cx:"9",cy:"9",r:"9",transform:"translate(272.515 1407.283)",fill:"rgba(0,0,0,0.75)"}),(0,i.jsxs)("g",{id:"Group_1082","data-name":"Group 1082",transform:"translate(278.159 1419.639) rotate(-90)",children:[(0,i.jsx)("path",{id:"Path_211","data-name":"Path 211",d:"M6.634,0H0",transform:"translate(0 3.317)",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeWidth:"1.5"}),(0,i.jsx)("path",{id:"Path_212","data-name":"Path 212",d:"M6.634,0H0",transform:"translate(3.317 6.634) rotate(-90)",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeWidth:"1.5"})]})]})]})})},63463:function(e,t,n){"use strict";function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return i}})}},function(e){e.O(0,[8592,5447,9774,2888,179],(function(){return t=31573,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.