(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[308],{2395:function(e,a,l){Promise.resolve().then(l.bind(l,7410))},7410:function(e,a,l){"use strict";l.r(a);var s=l(7437),t=l(5661),n=l(3463),r=l(9039);let i=function(){for(var e=arguments.length,a=Array(e),l=0;l<e;l++)a[l]=arguments[l];return fetch(...a).then(e=>e.json())};a.default=function(e){let{params:a}=e;t.Xo;let{isLoading:l,data:c,error:o}=(0,r.ZP)(t.nC,i);if(l)return(0,s.jsx)("p",{children:"Data is loading"});if(o)return(0,s.jsx)("p",{children:"Error is loading"});console.log(c);let d=a.slug;console.log(d);let[u]=c.filter(e=>e.id==d),{username:m,body:x,title:g,profilePic:h,createdAt:p,description:v,slug:b,id:f}=u;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("section",{className:"py-10 bg-gray-100 sm:py-16 lg:py-24",children:(0,s.jsx)("div",{className:"px-4 mx-auto sm:px-6 lg:px-8 max-w-7xl",children:(0,s.jsxs)("div",{className:"grid items-center grid-cols-1 gap-y-8 lg:grid-cols-2 gap-x-16 xl:gap-x-24",children:[(0,s.jsxs)("div",{className:"relative mb-12",children:[(0,s.jsx)("img",{className:"w-full rounded-md",src:t.Xo+h,alt:g}),(0,s.jsx)("div",{className:"absolute w-full max-w-xs px-4 -translate-x-1/2 sm:px-0 sm:max-w-sm left-1/2 -bottom-12",children:(0,s.jsx)("div",{className:"overflow-hidden bg-white rounded",children:(0,s.jsx)("div",{className:"px-10 py-6",children:(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)("p",{className:"flex-shrink-0 text-2xl  text-blue-600 sm:text-4xl",children:new Date(p).toDateString()})})})})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex items-center justify-center w-16 h-16 bg-white rounded-full",children:(0,s.jsx)("svg",{className:"w-8 h-8 text-orange-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),(0,s.jsx)("h2",{className:"mt-10 text-3xl font-bold leading-tight text-black sm:text-4xl lg:text-5xl lg:leading-tight",children:g}),(0,s.jsx)("p",{className:"mt-6 text-lg leading-relaxed text-gray-600",children:v}),(0,s.jsx)("form",{action:"#",method:"POST",className:"max-w-xl mx-auto mt-8 bg-white lg:mx-0 sm:bg-transparent lg:mt-12 rounded-xl",children:(0,s.jsx)("div",{className:"p-4 sm:p-2 sm:bg-white sm:border-2 sm:border-transparent sm:rounded-full sm:focus-within:border-orange-500 sm:focus-within:ring-1 sm:focus-within:ring-orange-500",children:(0,s.jsxs)("div",{className:"flex flex-col items-start sm:flex-row",children:["Written by:",(0,s.jsxs)("p",{className:"pl-6 text-sm font-medium text-black sm:text-lg",children:[m," ",(0,s.jsx)("br",{})]})]})})})]})]})})}),(0,s.jsx)("section",{class:"py-10 bg-white sm:py-16 lg:py-24",children:(0,s.jsxs)("div",{class:"max-w-6xl px-4 mx-auto sm:px-6 lg:px-8",children:[(0,n.ZP)(x),(0,s.jsx)("div",{class:"flow-root mt-12 sm:mt-16",children:(0,s.jsx)("div",{class:"divide-y divide-gray--200 -my-9"})})]})})]})}},5661:function(e,a,l){"use strict";l.d(a,{VN:function(){return r},Xo:function(){return n},YM:function(){return o},nC:function(){return i},u7:function(){return c}});var s=l(8472);a.ZP=s.Z.create({baseURL:"https://cloud.247tranzact.com/api/",headers:{"Content-Type":"application/json"}});let t="https://cloud.247tranzact.com/api/",n="https://cloud.247tranzact.com/images/",r=t+"market/",i=t+"posts/",c=t+"product/",o=[{label:"Agriculture and Raw material",value:"Agriculture and Raw material"},{label:"Apparel and Accessories",value:"Apparel and Accessories"},{label:"Home and Garden",value:"Home and Garden"},{label:"Beauty & Personal Care",value:"Beauty & Personal Care"},{label:"Consumer Electronics",value:"Consumer Electronics"},{label:"Sports and Entertainment",value:"Sports and Entertainment"},{label:"Packaging and Printing",value:"Packaging and Printing"},{label:"Industrial Machines",value:"Industrial Machines"},{label:"Shoes and Accesories",value:"Shoes and Accesories"},{label:"Vehicle Parts and Accessories",value:"Vehicle Parts and Accessories"},{label:"Furniture",value:"Furniture"},{label:"Home Appliances",value:"Home Appliances"},{label:"Tools and Hardware",value:"Tools and Hardware"},{label:"Tech and Softwares",value:"Tech and Softwares"},{label:"Luggages and Bags",value:"Luggages and Bags"},{label:"Construction & Paints",value:"Construction & Paints"},{label:"Lights & Lighting",value:"Lights & Lighting"},{label:"Health Care and Medical Supplies",value:"Health Care and Medical Supplies"},{label:"School and Office Supplies",value:"School and Office Supplies"},{label:"Renewable Energy",value:"Renewable Energy"},{label:"Food and Beverage",value:"Food and Beverage"},{label:"Chemicals",value:"Chemicals"}]}},function(e){e.O(0,[472,39,463,971,23,744],function(){return e(e.s=2395)}),_N_E=e.O()}]);