PageSourceSearch

https://pickbazar-react.vercel.app/_next/static/chunks/3808.c51ae6298f55817e.js

js pickbazar-react.vercel.app collected 2026-10-03 07:31:45 UTC 5,555 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3808],{3808:function(e,t,o){o.r(t),o.d(t,{default:function(){return AbuseReport}});var r=o(85893),n=o(5233),u=o(9062),s=o(66644),a=o(46286),l=o(60802);function AbuseReport(e){let{data:t}=e,{t:o}=(0,n.$G)("common"),{createAbuseReport:i,isLoading:d}=(0,u.Bk)();return(0,r.jsx)("div",{className:"flex h-full min-h-screen w-screen flex-col justify-center bg-light p-7 md:h-auto md:min-h-0 md:max-w-[590px] md:rounded-xl",children:(0,r.jsx)(s.l,{onSubmit:function(e){i({...t,...e})},children:e=>{let{register:t}=e;return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(a.Z,{label:o("text-reason"),...t("message")}),(0,r.jsx)(l.Z,{loading:d,disabled:d,children:o("text-report")})]})}})})}},46286:function(e,t,o){var r=o(85893),n=o(67294),u=o(94184),s=o.n(u),a=o(98388);let l={normal:"bg-gray-100 border border-border-base focus:shadow focus:bg-light focus:border-accent",solid:"bg-gray-100 border border-border-100 focus:bg-light focus:border-accent",outline:"border border-border-base focus:border-accent"},i=n.forwardRef((e,t)=>{let{className:o,label:n,name:u,error:i,variant:d="normal",shadow:c=!1,inputClassName:f,disabled:g,...b}=e;return(0,r.jsxs)("div",{className:o,children:[n&&(0,r.jsx)("label",{htmlFor:u,className:"mb-3 block text-sm font-semibold leading-none text-body-dark",children:n}),(0,r.jsx)("textarea",{id:u,name:u,className:(0,a.m6)(s()("flex w-full appearance-none items-center rounded px-4 py-3 text-sm text-heading transition duration-300 ease-in-out focus:outline-0 focus:ring-0",c&&"focus:shadow",l[d],g&&"cursor-not-allowed bg-gray-100",f)),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",rows:4,ref:t,...b}),i&&(0,r.jsx)("p",{className:"my-2 text-xs text-red-500",children:i})]})});i.displayName="TextArea",t.Z=i},9062:function(e,t,o){o.d(t,{I4:function(){return useBestSellingProducts},Bk:function(){return useCreateAbuseReport},AM:function(){return useCreateFeedback},OZ:function(){return useCreateQuestion},os:function(){return usePopularProducts},iB:function(){return useProduct},rn:function(){return useProducts},k5:function(){return useQuestions}});var r=o(75814),n=o(1644),u=o(5233),s=o(22920),a=o(10795);let getProducts=e=>{let{type:t,categories:o,name:r,shop_id:n,author:u,manufacturer:s,min_price:a,max_price:l,tags:i,text:d,limit:c=30,...f}=e;return{first:c,...f,search:Object.entries({...r&&{name:r.toString()},...d&&{name:d.toString()},type:t,categories:o,shop_id:n,author:u,manufacturer:s,min_price:a,max_price:l,tags:i,status:"publish"}).filter(e=>{let[,t]=e;return!!t}).map(e=>{let[t,o]=e;return["type","categories","tags","author","manufacturer"].includes(t)?"".concat(t,".slug:").concat(o):"".concat(t,":").concat(o)}).join(";")}};var l=o(11163);function useProducts(e){var t,o,r,u;let{locale:s}=(0,l.useRouter)(),i={language:s,...getProducts(e)},{data:d,loading:c,error:f,fetchMore:g,networkStatus:b}=(0,a.kN)({variables:i,notifyOnNetworkStatusChange:!0});return{products:null==d?void 0:null===(t=d.products)||void 0===t?void 0:t.data,paginatorInfo:null==d?void 0:null===(o=d.products)||void 0===o?void 0:o.paginatorInfo,isLoading:c,error:f,isLoadingMore:b===n.Ie.fetchMore,loadMore:function(){var e,t,o;(null==d?void 0:null===(e=d.products)||void 0===e?void 0:e.paginatorInfo.hasMorePages)&&g({variables:{page:(null==d?void 0:null===(o=d.products)||void 0===o?void 0:null===(t=o.paginatorInfo)||void 0===t?void 0:t.currentPage)+1}})},hasMore:!!(null==d?void 0:null===(u=d.products)||void 0===u?void 0:null===(r=u.paginatorInfo)||void 0===r?void 0:r.hasMorePages)}}let usePopularProducts=e=>{var t;let{locale:o}=(0,l.useRouter)(),r={language:o,...e},{data:n,loading:u,error:s}=(0,a.T8)({variables:r});return{products:null!==(t=null==n?void 0:n.popularProducts)&&void 0!==t?t:[],isLoading:u,error:s}},useBestSellingProducts=e=>{var t;let{locale:o}=(0,l.useRouter)(),r={language:o,...e},{data:n,loading:u,error:s}=(0,a.Um)({variables:r});return{products:null!==(t=null==n?void 0:n.bestSellingProducts)&&void 0!==t?t:[],isLoading:u,error:s}};function useProduct(e){let{slug:t}=e,{locale:o}=(0,l.useRouter)(),{data:r,loading:n,error:u}=(0,a.FA)({variables:{slug:t,language:o}});return{product:null==r?void 0:r.product,isLoading:n,error:u}}function useQuestions(e){var t,o,r;let{limit:n,question:u,...s}=e,{data:l,loading:i,error:d}=(0,a.Pb)({variables:{...s,...u&&{question:"%".concat(u,"%")},first:n}});return{questions:null!==(r=null==l?void 0:null===(t=l.questions)||void 0===t?void 0:t.data)&&void 0!==r?r:[],paginatorInfo:null==l?void 0:null===(o=l.questions)||void 0===o?void 0:o.paginatorInfo,isLoading:i,error:d}}function useCreateFeedback(){let{t:e}=(0,u.$G)("common"),[t,{loading:o}]=(0,a.db)({refetchQueries:["Questions","Reviews"],onCompleted:t=>{s.toast.success(e("text-feedback-submitted"))}});return{createFeedback:function(e){t({variables:{input:e}})},isLoading:o}}function useCreateAbuseReport(){let{t:e}=(0,u.$G)("common"),{closeModal:t}=(0,r.SO)(),[o,{loading:n}]=(0,a.Nm)({onCompleted:o=>{s.toast.success(e("text-abuse-report-submitted")),t()},onError:t=>{s.toast.error(e(t.message))}});return{createAbuseReport:function(e){o({variables:{input:e}})},isLoading:n}}function useCreateQuestion(){let{t:e}=(0,u.$G)("common"),{closeModal:t}=(0,r.SO)(),[o,{loading:n}]=(0,a.C)({refetchQueries:["Questions"],onCompleted:o=>{s.toast.success(e("text-question-submitted")),t()},onError:t=>{s.toast.error(e(t.message))}});return{createQuestion:function(e){o({variables:{input:e}})},isLoading: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.