1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4099],{60932:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(57437);function a(e){let{children:t,...n}=e;if(!n.href)return(0,r.jsx)(r.Fragment,{});let a=n.href.startsWith("tel:");return(0,r.jsx)("a",{...n,target:a?void 0:n.target||"_blank",className:"text-blue-500 hover:text-blue-600 font-medium cursor-pointer hover:underline ".concat(n.className),children:t})}},32543:function(e,t,n){"use strict";n.r(t);var r=n(57437);t.default=e=>{let{size:t,color:n,loading:a,selected:c,children:s,disabled:i=!1,...o}=e;return(0,r.jsxs)("button",{...o,type:o.type||"button",disabled:i||a,className:"w-full inline-flex justify-center items-center gap-2 rounded border border-transparent font-semibold focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1 transition-all text-sm dark:focus:ring-offset-gray-800 disabled:opacity-50 disabled:cursor-not-allowed ".concat("\n ".concat("xs"===t?"px-1 py-1 text-xs":"","\n ").concat("sm"===t?"px-1 py-1.5 text-xs":"","\n ").concat("md"===t?"px-3 py-2 text-xs":"","\n ").concat("lg"!==t&&t?"":"px-4 py-2.5","\n ").concat("xl"===t?"px-5 py-3":"","\n ").concat("custom"===t?" ":"","\n\n ").concat("blue"!==n&&n?"":"hover:bg-blue-600 bg-blue-500 text-white","\n ").concat("gray"===n?"hover:bg-gray-600 bg-gray-500 text-white":"","\n ").concat("red"===n?"hover:bg-red-600 bg-red-500 text-white":"","\n ").concat("orange"===n?"hover:bg-orange-600 bg-orange-500 text-white":"","\n ").concat("amber"===n?"hover:bg-amber-600 bg-amber-500 text-white":"","\n ").concat("yellow"===n?"hover:bg-yellow-600 bg-yellow-500 text-white":"","\n ").concat("lime"===n?"hover:bg-lime-600 bg-lime-500 text-white":"","\n ").concat("green"===n?"hover:bg-green-500 bg-green-600 text-white":"","\n\n ").concat("tear"===n?"hover:bg-tear-600 bg-tear-500 text-white":"","\n ").concat("cyan"===n?"hover:bg-cyan-600 bg-cyan-500 text-white":"","\n ").concat("sky"===n?"hover:bg-sky-600 bg-sky-500 text-white":"","\n ").concat("indigo"===n?"hover:bg-indigo-600 bg-indigo-500 text-white":"","\n ").concat("violet"===n?"hover:bg-violet-600 bg-violet-500 text-white":"","\n ").concat("purple"===n?"hover:bg-purple-600 bg-purple-500 text-white":"","\n ").concat("fuchsia"===n?"hover:bg-fuchsia-600 bg-fuchsia-500 text-white":"","\n ").concat("pink"===n?"hover:bg-pink-600 bg-pink-500 text-white":"","\n ").concat("rose"===n?"hover:bg-rose-600 bg-rose-500 text-white":"","\n ").concat("official-button-red"===n?"hover:bg-black bg-official-button text-white":"","\n ").concat("","\n\n ").concat(c?"ring":"","\n").replace(/\s+/g," ").trim()," ").concat(o.className),children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{className:"flex items-center gap-x-1 whitespace-nowrap",children:s}),a?(0,r.jsx)("span",{className:"block ml-2 sm:ml-4 w-4 h-4 sm:w-6 sm:h-6 rounded-full animate-spin border-[3px] sm:border-4 border-r-transparent ".concat("xs"===t?"!w-3.5 !h-3.5 sm:!ml-1":"sm"===t?"!w-4 !h-4 sm:!ml-1":"md"===t?"!w-5 !h-5":"lg"===t?"!w-6 !h-6":"xl"===t?"!w-7 !h-7":"!w-6 !h-6")}):(0,r.jsx)("span",{children:" "})]})}},6187:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(57437);function a(e){let{children:t,...n}=e;return(0,r.jsx)("select",{...n,className:"h-10 px-3 block w-full border-gray-300 dark:border-gray-600 rounded text-sm focus:ring-blue-600 dark:focus:ring-blue-600 focus:outline-none dark:bg-slate-900 dark:text-gray-400 ".concat(n.className),children:t})}},66634:function(e,t,n){"use strict";var r=n(57437);t.Z=e=>{let{...t}=e;return(0,r.jsx)("input",{...t,className:"bg-white focus:outline-none text-gray-800 dark:bg-gray-900 dark:text-gray-100 sm:text-sm focus:ring-1 rounded focus:ring-blue-600 block w-full p-2.5 pr-6 border border-gray-300 dark:border-gray-600 focus:border-blue-600 ".concat(t.className,"\n ")})}},48191:function(e,t,n){"use strict";var r=n(57437);t.Z=e=>{let{...t}=e,{className:n,...a}=t;return(0,r.jsx)("label",{...a,className:"block mb-3 text-sm font-medium text-gray-900 dark:text-white capitalize ".concat(null!=n?n:"")})}},6038:function(e,t,n){"use strict";n.d(t,{JO:function(){return i},hR:function(){return o}});var r=n(57437),a=n(17411),c=n(35217),s=n(51268);function i(e){let{I:t,className:n}=e;return(0,r.jsx)(s.G,{icon:t,className:"".concat(n)})}let o=a;t.ZP=c},15025:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(57437),a=n(17411),c=n(35217),s=n(51268),i=n(2265);function o(e){let{icon:t,className:n}=e,[o,l]=(0,i.useState)();return((0,i.useEffect)(()=>{let e="fa"+t.split("-").reduce((e,t)=>
1e+(t.substring(0,1).toUpperCase()+t.substring(1)),"");l(c[e]||a[e])},[t]),o)?(0,r.jsx)(s.G,{className:n,icon:o}):null}},40549:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(57437),a=n(36760),c=n.n(a),s=n(2265);function i(e){let{children:t,className:n,gap:a,...i}=e,[o,l]=(0,s.useState)();return(0,s.useEffect)(()=>{l(c()({"gap-x-1":!a||"1"===a,"gap-x-2":"2"===a,"gap-x-3":"3"===a,"gap-x-4":"4"===a}))},[a]),(0,r.jsx)("div",{...i,className:"flex items-center ".concat(o," ").concat(n||""),children:t})}},54350:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(57437),a=n(50614);function c(e){return new Date(new Date().setDate(new Date().getDate()-e)).toDateString()}var s=n(48191),i=n(40549),o=n(32543);function l(e){let{date:t,setDate:n,title:l,titleHide:u}=e;return(0,r.jsxs)("div",{children:[u?null:(0,r.jsx)(s.Z,{children:l||"Select Date"}),(0,r.jsx)(a.C0,{className:"w-full dark:bg-gray-900 dark:text-white",editableDateInputs:!1,onChange:e=>{var t,r;n([{...e.selection,startDate:new Date(null!==(t=e.selection.startDate)&&void 0!==t?t:"").toDateString(),endDate:new Date(null!==(r=e.selection.endDate)&&void 0!==r?r:"").toDateString()}])},moveRangeOnFirstSelection:!1,ranges:t}),(0,r.jsxs)(i.Z,{className:"mt-1 flex-wrap gap-y-1",children:[(0,r.jsx)(o.default,{onClick:()=>n([{startDate:c(0),endDate:new Date().toDateString(),key:"selection"}]),color:"green",size:"xs",children:"Today"}),(0,r.jsx)(o.default,{onClick:()=>n([{startDate:c(6),endDate:new Date().toDateString(),key:"selection"}]),color:"green",size:"xs",children:"Last 7 Days"}),(0,r.jsx)(o.default,{onClick:()=>n([{startDate:c(29),endDate:new Date().toDateString(),key:"selection"}]),color:"green",size:"xs",children:"Last 30 Days"}),(0,r.jsx)(o.default,{onClick:()=>n([{startDate:null,endDate:new Date().toDateString(),key:"selection"}]),color:"orange",size:"xs",children:"Everything"})]})]})}},35600:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(57437),a=n(6187),c=n(48191);function s(e){let{...t}=e;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)(c.Z,{children:"Select Order"}),(0,r.jsxs)(a.Z,{...t,children:[(0,r.jsx)("option",{value:"ASC",children:"Ascending"}),(0,r.jsx)("option",{value:"DESC",children:"Descending"})]})]})}},25421:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(57437),a=n(66634),c=n(48191);function s(e){let{title:t,startPrice:n,setStartPrice:s,endPrice:i,setEndPrice:o}=e;return(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)("div",{className:"col-span-full",children:(0,r.jsx)(c.Z,{children:t||"Price Range"})}),(0,r.jsx)("input",{min:1,max:5e4,value:n,onChange:e=>s(Number(e.target.value)),className:"w-full",type:"range",placeholder:"From Price"}),(0,r.jsx)("input",{min:1,max:5e4,value:i,onChange:e=>o(Number(e.target.value)),className:"w-full",type:"range",placeholder:"To Price"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"fromPrice",children:"From"}),(0,r.jsx)(a.Z,{value:n,onChange:e=>s(Number(e.target.value)),type:"number",placeholder:"From Price",id:"fromPrice",className:"border-gray-300 dark:border-gray-600"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"toPrice",children:"To"}),(0,r.jsx)(a.Z,{value:i,onChange:e=>o(Number(e.target.value)),type:"number",placeholder:"To Price",id:"toPrice",className:"border-gray-300 dark:border-gray-600"})]})]})}},87027:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(57437),a=n(6187);function c(e){let{...t}=e;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h6",{children:"Sort By"}),(0,r.jsxs)(a.Z,{...t,children:[(0,r.jsx)("option",{value:"createdAt",children:"Date"}),(0,r.jsx)("option",{value:"price",children:"Price"})]})]})}},20721:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(57437),a=n(2265),c=n(5909),s=n(6038);function i(e){let{currentPage:t,totalPages:n,changePage:i,totalItems:o,limit:l,id:u,filteredParams:d,onPageChangeClick:g}=e,[f,h]=(0,a.useState)(l);return(0,a.useEffect)(()=>{h(l)},[l]),(0,r.jsxs)("div",{className:"p-4 flex items-center justify-between flex-col gap-3 sm:flex-row hide_print",children:[(0,r.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),f<1||f===l)return;let n=Math.ceil(o/f),r=t>n?n:t;u?i({page:r,limit:f||l,id:u,...d||{}}):i({page:r,limit:f||l,...d||{}})},className:"flex flex-col gap-1",children:[(0,r.jsx)("p",{className:"mr-2 text-sm",children:"Show Per Page"}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("input",{type:"number",className:"w-20 text-sm border dark:border-transparent px-2 h-8 focus:outline-none focus:ring-2 focus:ring-blue-600 dar
1k:bg-gray-700",placeholder:"Limit",value:f,onChange:e=>h(Number(e.target.value)>0?Number(e.target.value):1),min:0,onWheel:e=>e.target.blur()}),(0,r.jsx)("button",{title:"submit",className:"w-8 h-8 focus:ring bg-blue-600 text-white",children:(0,r.jsx)(s.JO,{I:s.ZP.faCheck})})]})]}),(0,r.jsx)("div",{className:"max-w-[600px] hide_print",children:(0,r.jsx)(c.ZP,{current:t,total:n,onPageChange:function(e){g?null==g||g(e):u?i({page:e,limit:f||l,id:u,...d||{}}):i({page:e,limit:f||l,...d||{}})}})})]})}},58765:function(e,t,n){"use strict";var r=n(2265),a=n(87344);t.Z=e=>{let[t,n]=(0,r.useState)(e||[]);return{data:t,reset:()=>n([]),set:e=>n(e),push:e=>n(t=>[...t,e]),loading:(0,a.Z)()}}},87344:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2265);function a(e){let[t,n]=(0,r.useState)(e||!1),[a,c]=(0,r.useState)(!1);return{true:t,set:n,setTrue:()=>n(!0),setFalse:()=>n(!1),toggle:()=>n(e=>!e),toggleTwice:e=>{n(!0),setTimeout(()=>{n(!1)},e||100)},changeChecked:e=>{n(e.target.checked)},loading:a,setLoading:c}}},24133:function(e,t,n){"use strict";var r=n(2265),a=n(87344);t.Z=e=>{let[t,n]=(0,r.useState)(e||"");return{value:t,reset:()=>n(""),change:e=>n(e.target.value),setCustom:e=>n(e||""),loading:(0,a.Z)()}}},76430:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2265),a=n(37041);function c(e){let{fetchFunc:t,limit:n,data:c,params:s,...i}=e,o=(0,a.TL)();return(0,r.useEffect)(()=>{(null==c?void 0:c.length)>0||o(t({...s,page:1,limit:n||10,...i}))},[]),{changePage:async e=>{let{...n}=e;o(t({...n}))}}}},25108:function(e,t,n){"use strict";function r(e,t){if(!e)return;let n=new Date(e),r=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"][n.getMonth()],a="".concat(n.getDate()," ").concat(r," ").concat(n.getFullYear());return"".concat(a).concat(t?"":", "+n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}))}function a(e){let t=null==e?new Date:new Date(e),n=isNaN(t.getTime())?new Date:t,r=new Intl.DateTimeFormat("en-CA",{timeZone:"Asia/Dhaka",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(n),a=r.find(e=>"year"===e.type).value,c=r.find(e=>"month"===e.type).value,s=r.find(e=>"day"===e.type).value,i=r.find(e=>"hour"===e.type).value,o=r.find(e=>"minute"===e.type).value;return"".concat(a,"-").concat(c,"-").concat(s,"T").concat(i,":").concat(o)}n.d(t,{_:function(){return r},x:function(){return a}})},76620:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(57437),a=e=>{let{className:t,children:n}=e;return(0,r.jsx)("div",{className:"shadow w-full flex rounded bg-gray-200 dark:bg-gray-800 ".concat(t),children:n})},c=e=>{let{className:t,children:n}=e;return(0,r.jsx)("div",{className:"shadow w-full flex rounded bg-gradient-to-l from-gray-200 to-gray-300 dark:from-gray-700 dark:to-gray-600 ".concat(t),children:n})},s=e=>{let{children:t,className:n}=e;return(0,r.jsx)("div",{className:"p-4 rounded shadow-lg space-y-3 bg-white dark:bg-gray-800 animate-pulse ".concat(n),children:t})};function i(){return(0,r.jsxs)(s,{children:[(0,r.jsx)(c,{className:"h-12"}),(0,r.jsx)(c,{className:"h-40"}),(0,r.jsxs)(c,{className:"p-2 flex flex-col gap-1",children:[(0,r.jsx)(a,{className:"h-4"}),(0,r.jsx)(a,{className:"h-4"}),(0,r.jsx)(a,{className:"h-4"}),(0,r.jsx)(a,{className:"h-4"})]}),(0,r.jsx)(c,{className:"h-12"})]})}},36760:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=c(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=c(t,n));return t}(n)))}return e}function c(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0!==(n=(function(){return a}).apply(t,[]))&&(e.exports=n)}()}}]);
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.