PageSourceSearch

https://lullabuy.vercel.app/_next/static/chunks/pages/studio/[[...index]]-9ffc06d4439c5053.js

js lullabuy.vercel.app collected 2026-10-03 07:17:39 UTC 44,712 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1057],{49592:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/studio/[[...index]]",function(){return i(30531)}])},62540:function(e,t,i){"use strict";i.a(e,async function(e,l){try{var n=i(3571),a=i(14457),o=i(16265),s=i(16078),r=i(93243),m=i(40168),u=i(64763),p=i(84408);let e=await u.L.fetch("*[_type == 'listing']"),c=await u.L.fetch("*[_type == 'user']");t.Z=(0,a.ZDM)({basePath:"/studio",name:"lullabuy",title:"Lullabuy",projectId:s.Sx,dataset:s.gx,schema:r.f,plugins:[(0,p.Y)({defaultColorFormat:"hex",defaultColorList:[{label:"Primary",value:"#F0EDE6"},{label:"White",value:"#FFF"},{label:"Ole Pink",value:"#ECD6CC"},{label:"Lantana Lime",value:"#D7ECCC"},{label:"Japan Blush",value:"#DACEF3"},{label:"Chalky Blue White",value:"#CEEAF3"},{label:"Custom...",value:"custom"}],enableSearch:!0}),(0,o.structureTool)({structure:(t,i)=>t.list().title("Content").items([t.listItem().title("Home Page").child(t.documentTypeList("home").title("Home Page")).icon(m.tvw),t.listItem().title("Pages").child(t.documentTypeList("page").title("Pages")).icon(m.j29),t.listItem().title("Promo Pages").child(t.documentTypeList("tagPage").title("Promo Pages")).icon(m.j29),t.listItem().title("Promo Tags").child(t.documentTypeList("tag").title("Promo Tags")).icon(m.j29),t.listItem().title("Listings (".concat(e.length,")")).child(t.documentTypeList("listing").title("Listings (".concat(e.length,")"))).icon(m.ur$),t.listItem().title("Categories").child(t.documentTypeList("category").title("Categories")).icon(m.FMB),t.listItem().title("Brands").child(t.documentTypeList("brand").title("Brands")).icon(m.FMB),t.listItem().title("Users (".concat(c.length,")")).child(t.documentTypeList("user").title("Users (".concat(c.length,")"))).icon(m.oyc),t.listItem().title("Notifications").child(t.documentTypeList("notification").title("Notifications")).icon(m.oyc),t.listItem().title("Content Sections").child(t.list().title("Content Sections").items([t.listItem().title("Brand Sections").child(t.documentTypeList("brandsSection").title("Brand Sections")),t.listItem().title("Categories Sections").child(t.documentTypeList("categoriesSection").title("Categories Sections")),t.listItem().title("Checklist Sections").child(t.documentTypeList("checklistSection").title("Checklist Sections")),t.listItem().title("Content Slider Sections").child(t.documentTypeList("contentSliderSection").title("Content Slider Sections")),t.listItem().title("Details Slider Sections").child(t.documentTypeList("detailsSliderSection").title("Details Slider Sections")),t.listItem().title("Image Sections").child(t.documentTypeList("imageSection").title("Image Sections")),t.listItem().title("Image Slider Sections").child(t.documentTypeList("imageSliderSection").title("Image Slider Sections")),t.listItem().title("Information List Sections").child(t.documentTypeList("informationListSection").title("Information List Sections")),t.listItem().title("Listings Sections").child(t.documentTypeList("listingsSection").title("Listings Sections")),t.listItem().title("Promo Banner Sections").child(t.documentTypeList("promoBannerSection").title("Promo Banner Sections")),t.listItem().title("Questions Sections").child(t.documentTypeList("questionsSection").title("Questions Sections")),t.listItem().title("Text Sections").child(t.documentTypeList("textSection").title("Text Sections")),t.listItem().title("Grid Card Sections").child(t.documentTypeList("gridCardSection").title("Grid Card Sections")),t.listItem().title("Grid Image Card Sections").child(t.documentTypeList("gridCardImageSection").title("Grid Image Card Sections"))]))])}),(0,n.T)({defaultApiVersion:s.tW})]}),l()}catch(e){l(e)}},1)},16078:function(e,t,i){"use strict";i.d(t,{Sx:function(){return a},gx:function(){return n},hH:function(){return o},tW:function(){return l}});let l="2023-06-15",n=s("development","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),a=s("zm7yxrdm","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID"),o=!1;function s(e,t){if(void 0===e)throw Error(t);return e}},64763:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var l=i(79668),n=i(16078);let a=(0,l.eI)({apiVersion:n.tW,dataset:n.gx,projectId:n.Sx,useCdn:n.hH})},30531:function(e,t,i){"use strict";i.a(e,async function(e,l){try{i.r(t),i.d(t,{default:function(){return p}});
1var n=i(85893),a=i(9008),o=i.n(a),s=i(74820),r=i(91987),m=i(62540),u=e([m]);function p(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{children:Object.entries(r.P).map(e=>{let[t,i]=e;return(0,n.jsx)("meta",{name:t,content:i},t)})}),(0,n.jsx)(s.n,{config:m.Z})]})}m=(u.then?(await u)():u)[0],l()}catch(e){l(e)}})},84408:function(e,t,i){"use strict";i.d(t,{Y:function(){return m}});var l=i(14457),n=i(85893),a=i(40168),o=i(11636),s=i(67294);let r=(0,i(61080).fe)({title:"Simpler Color",type:"object",name:"simplerColor",components:{input:e=>{var t,r,m,u,p,c,d,g,y,v,S,f,h;let[Z,x]=(0,s.useState)(!1),[b,L]=(0,s.useState)(!1),[C,k]=(0,s.useState)(""),{onChange:N}=e,T=e.value,I=e.schemaType,E=!!(null===(S=null===(t=I.options)||void 0===t?void 0:t.showColorValue)||void 0===S||S),[w,B]=(0,s.useState)(T),P=(0,s.useCallback)(t=>{B(t),x(!1),N((0,l.t8m)({...e.value,...t}))},[N,e.value]),A=(null===(r=I.options)||void 0===r?void 0:r.colorList)||(null===(u=I.type)||void 0===u?void 0:null===(m=u.options)||void 0===m?void 0:m.defaultColorList),j=null!==(f=null===(p=I.options)||void 0===p?void 0:p.colorFormat)&&void 0!==f?f:null===(d=I.type)||void 0===d?void 0:null===(c=d.options)||void 0===c?void 0:c.defaultColorFormat,M=!!(null!==(h=null===(g=I.options)||void 0===g?void 0:g.enableSearch)&&void 0!==h?h:null===(v=I.type)||void 0===v?void 0:null===(y=v.options)||void 0===y?void 0:y.enableSearch),V=C.length?null==A?void 0:A.filter(e=>e.label.toLowerCase().includes(C.toLowerCase())):A,R=t=>{let i;switch(j){case"hexa":i=t.hexa;break;case"rgb":i="rgb(".concat(t.rgb.r,", ").concat(t.rgb.g,", ").concat(t.rgb.b,")");break;case"rgba":i="rgba(".concat(t.rgba.r,", ").concat(t.rgba.g,", ").concat(t.rgba.b,", ").concat(t.rgba.a.toFixed(2),")");break;case"hsl":i="hsl(".concat(t.hsl.h.toFixed(0),", ").concat(t.hsl.s.toFixed(0),"%, ").concat(t.hsl.l.toFixed(0),"%)");break;case"hsla":i="hsla(".concat(t.hsla.h.toFixed(0),", ").concat(t.hsla.s.toFixed(0),"%, ").concat(t.hsla.l.toFixed(0),"%, ").concat(t.hsla.a.toFixed(2),")");break;default:i=t.hex}let n={label:"Custom",value:i};B(n),N((0,l.t8m)({...e.value,...n}))},O=(0,s.useRef)(null);(0,s.useEffect)(()=>{Z||k("");let e=e=>{O.current&&!O.current.contains(e.target)&&(L(!1),x(!1))};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[Z,b,O]);
1let U="required"===I.validation[0]._required,[D,F]=(0,s.useState)((0,n.jsx)("div",{children:"Loading..."}));return(0,s.useEffect)(()=>{i.e(253).then(i.bind(i,30253)).then(e=>{let{Chrome:t,rgbStringToHsva:i,hslStringToHsva:s}=e,r=(null==w?void 0:w.value)||"#ffffff";r.startsWith("rgb")?r=i(r):r.startsWith("hsl")&&(r=s(r)),F((0,n.jsxs)(o.W2,{children:[(0,n.jsx)(o.J2,{ref:O,content:(0,n.jsx)(t,{onChange:R,color:r,showAlpha:!!j&&"a"===j.slice(-1)}),portal:!0,open:b,children:(0,n.jsxs)(o.kC,{children:[(0,n.jsx)(o.zx,{style:{width:"100%",textAlign:"center",borderTopRightRadius:U?"":"0",borderBottomRightRadius:U?"":"0",flexShrink:1,overflow:"hidden"},mode:"ghost",padding:2,onClick:()=>A&&A.length>0?x(!Z):L(!b),children:(0,n.jsxs)(o.kC,{justify:"center",gap:4,children:[(0,n.jsxs)(o.kC,{align:"center",gap:1,overflow:"hidden",children:[(0,n.jsx)(o.xu,{style:{flexShrink:0},children:(0,n.jsx)(o.Zb,{style:{backgroundColor:(null==w?void 0:w.value)||"#ffffff"},radius:2,shadow:1,padding:2,margin:1})}),(0,n.jsx)(o.xu,{style:{...E&&{flexShrink:0}},children:(0,n.jsxs)(o.xv,{weight:"semibold",textOverflow:"ellipsis",children:[(null==w?void 0:w.label)||"Select a color..."," "]})}),E&&(0,n.jsx)(o.xu,{children:(0,n.jsx)(o.xv,{textOverflow:"ellipsis",children:null==w?void 0:w.value})})]}),(0,n.jsx)(a.v4q,{style:{flexShrink:0},width:32,height:32})]})}),!U&&(0,n.jsx)(o.zx,{mode:"ghost",onClick:()=>{if(void 0!==T&&T._key){let e={_type:T._type,_key:T._key};B(e),N((0,l.t8m)(e))}else B(void 0),N((0,l.zNf)())},style:{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},children:(0,n.jsxs)(o.gF,{space:1,children:[(0,n.jsx)(a.Two,{width:24,height:24}),(0,n.jsx)(o.xv,{weight:"semibold",children:"Clear"})]})})]})}),Z&&A&&(0,n.jsxs)(o.Zb,{radius:2,shadow:3,marginTop:1,overflow:"hidden",children:[M&&(0,n.jsx)(o.xu,{padding:3,style:{borderBottom:"1px solid var(--card-border-color)"},children:(0,n.jsx)(o.oi,{icon:a.W1M,radius:2,placeholder:"Search",onChange:e=>{k(e.currentTarget.value)},autoFocus:!0})}),(0,n.jsx)(o.Kq,{children:null==V?void 0:V.map(e=>"custom"===e.value?(0,n.jsx)(o.zx,{radius:0,mode:"bleed",onClick:()=>{x(!1),L(!0)},children:(0,n.jsx)(o.xv,{children:e.label})},e.label):(0,n.jsx)(o.zx,{radius:0,mode:"bleed",onClick:()=>P(e),children:(0,n.jsxs)(o.xu,{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(o.Zb,{style:{backgroundColor:e.value,width:"16px",height:"16px"},radius:2,shadow:1,marginRight:2}),(0,n.jsx)(o.xv,{children:e.label})]})},e.label))})]})]}))})},[Z,w,C,b]),D}},fields:[{name:"label",type:"string"},{name:"value",type:"string"}]}),m=(0,l.Cw0)(e=>({name:"sanity-plugin-simpler-color-input",schema:{types:[{...r,options:e}]}}))},93243:function(e,t,i){"use strict";i.d(t,{f:function(){return B}});var l=i(61080),n=(0,l.fe)({name:"user",title:"Users",type:"document",fields:[(0,l.Z2)({name:"type",title:"Type",type:"string",initialValue:"Active",options:{list:[{title:"Active",value:"Active"},{title:"Suspended",value:"Suspended"},{title:"Influencer",value:"Influencer"}]}}),(0,l.Z2)({name:"verified",title:"Verified",type:"boolean"}),(0,l.Z2)({name:"code",title:"Access Code",type:"number",hidden:e=>{let{document:t}=e;return!0}}),(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"email",title:"Email",type:"email"}),(0,l.Z2)({name:"phone",title:"Phone",type:"string"}),(0,l.Z2)({name:"name",title:"Full Name",type:"string"}
1),(0,l.Z2)({name:"country",title:"Country",description:"Country Code",type:"string"}),(0,l.Z2)({name:"addresses",title:"Delivery Addresses",description:"Available addresses for delivery",type:"array",of:[{name:"address",title:"Address",type:"object",fields:[(0,l.Z2)({name:"selected",title:"Selected",type:"boolean"}),(0,l.Z2)({name:"line1",title:"Address Line 1",type:"string"}),(0,l.Z2)({name:"line2",title:"Address Line 2",description:"Apartment, suite, unit, building, floor, etc.",type:"string"}),(0,l.Z2)({name:"city",title:"City",type:"string"}),(0,l.Z2)({name:"suburb",title:"Suburb",type:"string"}),(0,l.Z2)({name:"country",title:"Country",description:"Country Code",type:"string"}),(0,l.Z2)({name:"postcode",title:"Postcode",type:"number"})]}]}),(0,l.Z2)({title:"Favourite Listings",name:"favouriteListings",type:"array",of:[{type:"reference",to:[{type:"listing"}]}]}),(0,l.Z2)({name:"shippingOptions",title:"Preferred Shipping Options",description:"DIfferent options in terms of cost and location",type:"array",of:[{name:"shippingOption",title:"Shipping Option",type:"object",fields:[(0,l.Z2)({name:"description",title:"Description",type:"string"}),(0,l.Z2)({name:"cost",title:"Cost",type:"number"}),(0,l.Z2)({name:"selected",title:"Selected",type:"boolean"})]}]}),(0,l.Z2)({name:"stripeCustomerId",title:"Stripe Customer Id",type:"string"}),(0,l.Z2)({name:"stripeAccountId",title:"Stripe Account Id",type:"string"}),(0,l.Z2)({name:"stripePaymentMethodId",title:"Stripe Payment Method Id",type:"string"}),(0,l.Z2)({name:"stripeConnectCompleted",title:"Stripe Connect Completed",type:"boolean"}),(0,l.Z2)({name:"bankAccountNumber",title:"Bank Account Number",type:"string"}),(0,l.Z2)({name:"completed",title:"Completed",type:"boolean"}),(0,l.Z2)({name:"klaviyoProfileId",title:"Klaviyo Profile Id",type:"string"}),(0,l.Z2)({name:"klaviyoLastSyncedAt",title:"Last Synced At",type:"datetime"})]}),a=(0,l.fe)({name:"brand",title:"Brands",type:"document",fields:[(0,l.Z2)({name:"featured",title:"Featured",type:"boolean"}),(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"logo",title:"Logo",type:"image"}),(0,l.Z2)({name:"description",title:"Description",type:"text"}),(0,l.Z2)({name:"url",title:"URL",type:"string"})]}),o=(0,l.fe)({name:"category",title:"Categories",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"description",title:"Description",type:"text"})]}),s=(0,l.fe)({name:"listing",title:"Listings",type:"document",fields:[(0,l.Z2)({name:"status",title:"Status",description:"The status of the listing",type:"string",initialValue:"Listed",options:{list:[{title:"Listed",value:"Listed"},{title:"Review",value:"Review"},{title:"Ordered",value:"Ordered"},{title:"Delivered",value:"Delivered"},{title:"Completed",value:"Completed"},{title:"Archived",value:"Archived"}]}}),(0,l.Z2)({name:"reasonToClose",title:"Reason to Close",type:"string",initialValue:"",options:{list:[{title:"Sold elsewhere",value:"Sold elsewhere"},{title:"Sellers request",value:"Sellers request"},{title:"Other",value:"Other"}]},hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.status)!=="Archived"&&(null==t?void 0:t.status)!=="Closed"},validation:e=>e.custom((e,t)=>{var i;let l=null===(i=t.document)||void 0===i?void 0:i.status;return"Archived"!==l&&"Closed"!==l||!!e||"You must provide a reason if status is Closed"})}),(0,l.Z2)({name:"closedAt",title:"Closed At",type:"datetime",hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.status)!=="Archived"&&(null==t?void 0:t.status)!=="Closed"},validation:e=>e.custom((e,t)=>{var i;let l=null===(i=t.document)||void 0===i?void 0:i.status;return"Archived"!==l&&"Closed"!==l||!!e||"You must provide the closing date if status is Closed"})}),(0,l.Z2)({name:"closedBy",title:"Closed By",type:"reference",to:[{type:"user"}],hidden:e=>{let{parent:t}=e;return(null==t?void 0:t.status)!=="Archived"&&(null==t?void 0:t.status)!=="Closed"},validation:e=>e.custom((e,t)=>{var i;let l=null===(i=t.document)||void 0===i?void 0:i.status;return"Archived"!==l&&"Closed"!==l||!!e||"You must provide the closing date if status is Closed"})}),(0,l.Z2)({name:"orderedAt",title:"Ordered At",type:"datetime"}),(0,l.Z2)({name:"deliveredAt",title:"Delivered At",type:"datetime"}),(0,l.Z2)({name:"completedAt",title:"Completed At",type:"datetime"}),(0,l.Z2)({name:"orderNumber",title:"Order Number",description:"Override the position of this product in the search results",type:"number"}),(0,l.Z2)({name:"code",title:"Code",type:"number"}),(0,l.Z2)({name:"picked",title:"Lullabuy Pick",type:"boolean"}),(0,l.Z2)({title:"Promotional Tags",description:"Select to feature this listing on the Promotional Pages",name:"tags",type:"array",of:[{type:"reference",to:[{type:"tag"}]}]}),(0,l.Z2)({name:"reviewed",title:"Reviewed",description:"Keep track of the listings that has been reviewed by the team",type:"boolean"}),(0,l.Z2)({name:"deleted",title:"Deleted",description:"Remove this listing from the search results",type:"boolean"}),(0,l.Z2)({name:"user",title:"User",type:"reference",to:[{type:"user"}]}),(0,l.Z2)({name:"buyer",title:"Buyer",type:"reference",to:[{type:"user"}]}),(0,l.Z2)({name:"slug",title:"Slug",description:"(Generate to create a URL based on Listing Name",type:"slug",validation:e=>e.required(),options:{source:"name",maxLength:96,isUnique:(e,t)=>
1!0}}),(0,l.Z2)({name:"brand",title:"Brand",type:"reference",to:[{type:"brand"}]}),(0,l.Z2)({name:"category",title:"Category",type:"reference",to:[{type:"category"}]}),(0,l.Z2)({name:"location",title:"Location",type:"string",initialValue:"",options:{list:[{title:"Northland",value:"Northland"},{title:"Auckland",value:"Auckland"},{title:"Waikato",value:"Waikato"},{title:"Bay of Plenty",value:"Bay of Plenty"},{title:"Gisborne",value:"Gisborne"},{title:"Hawke's Bay",value:"Hawke's Bay"},{title:"Taranaki",value:"Taranaki"},{title:"Manawatu-Wanganui",value:"Manawatu-Wanganui"},{title:"Wellington",value:"Wellington"},{title:"Tasman",value:"Tasman"},{title:"Nelson",value:"Nelson"},{title:"Marlborough",value:"Marlborough"},{title:"West Coast",value:"West Coast"},{title:"Canterbury",value:"Canterbury"},{title:"Otago",value:"Otago"},{title:"Southland",value:"Southland"}]}}),(0,l.Z2)({name:"suburb",title:"Suburb",type:"string"}),(0,l.Z2)({name:"gender",title:"Gender",type:"string",initialValue:"",options:{list:[{title:"Boys",value:"Boys"},{title:"Girls",value:"Girls"},{title:"Unisex",value:"Unisex"}]}}),(0,l.Z2)({name:"age",title:"Age",type:"string",initialValue:"",options:{list:[{title:"New Born",value:"New Born"},{title:"0 to 3 Months",value:"0 to 3 Months"},{title:"3 to 6 Months",value:"3 to 6 Months"},{title:"6 to 12 Months",value:"6 to 12 Months"},{title:"1 to 2 Years",value:"1 to 2 Years"},{title:"2 to 3 Years",value:"2 to 3 Years"},{title:"3 to 5 Years",value:"3 to 5 Years"},{title:"5+ Years",value:"5+ Years"}]}}),(0,l.Z2)({name:"ageGroups",title:"Age Groups",type:"string"}),(0,l.Z2)({name:"price",title:"Price",type:"number"}),(0,l.Z2)({name:"totalPrice",title:"Total Price",description:"Total price including shipping and other costs",type:"number"}),(0,l.Z2)({name:"minimumPrice",title:"Minimum Price",type:"number"}),(0,l.Z2)({name:"retailPrice",title:"Retail Price",type:"number"}),(0,l.Z2)({name:"productLink",title:"Product Link",type:"string"}),(0,l.Z2)({name:"dateOfPurchase",title:"Date of Purchase",type:"date"}),(0,l.Z2)({name:"yearOfPurchase",title:"Year of Purchase",type:"number"}),(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"description",title:"Description",type:"text"}),(0,l.Z2)({name:"size",title:"Size",type:"string"}),(0,l.Z2)({name:"notes",title:"Notes",type:"text"}),(0,l.Z2)({name:"pickupNotes",title:"Pickup Notes",type:"text"}),(0,l.Z2)({title:"Images",name:"images",type:"array",validation:e=>e.required(),of:[{type:"image"}]}),(0,l.Z2)({name:"shippingMethod",title:"Shipping Method",description:"Available shipping methods",type:"string",initialValue:"",options:{list:[{title:"Shipping & Pickup",value:"Shipping & Pickup"},{title:"Shipping Only",value:"Shipping Only"},{title:"Pickup Only",value:"Pickup Only"}]}}),(0,l.Z2)({name:"shippingPackageType",title:"Shipping Package Type",description:"",type:"string",initialValue:"",options:{list:[{title:"Bag",value:"Bag"},{title:"Box",value:"Box"},{title:"Oversize",value:"Oversize"}]}}),(0,l.Z2)({name:"height",title:"Height",description:"In centimeters (cm)",type:"string"}),(0,l.Z2)({name:"width",title:"Width",description:"In centimeters (cm)",type:"string"}),(0,l.Z2)({name:"length",title:"Length",description:"In centimeters (cm)",type:"string"}),(0,l.Z2)({name:"weight",title:"Weight",description:"In kilograms (kg)",type:"string"}),(0,l.Z2)({name:"shippingOptions",title:"Shipping Options",description:"DIfferent options in terms of cost and location",type:"array",of:[{name:"shippingOption",title:"Shipping Option",type:"object",fields:[(0,l.Z2)({name:"description",title:"Description",type:"string"}),(0,l.Z2)({name:"cost",title:"Cost",type:"number"}),(0,l.Z2)({name:"selected",title:"Selected",type:"boolean"})]}]}),(0,l.Z2)({name:"deliveryAddress",title:"Delivery Address",type:"string"}),(0,l.Z2)({name:"condition",title:"Condition",description:"The condition of the listing",type:"string",initialValue:"",options:{list:[{title:"Used",value:"Used"},{title:"Good",value:"Good"},{title:"Very Good",value:"Very Good"},{title:"Like New",value:"Like New"},{title:"Brand New",value:"Brand New"}]}}),(0,l.Z2)({name:"conditionNotes",title:"Condition Notes",type:"string"}),(0,l.Z2)({name:"trackingURL",title:"Tracking URL",type:"string"}),(0,l.Z2)({name:"trackingCode",title:"Tracking Code",type:"string"}),(0,l.Z2)({name:"deliveryNotes",title:"Delivery Notes",type:"text"}),(0,l.Z2)({name:"delivered",title:"Delivered",type:"boolean"}),(0,l.Z2)({name:"communicationReview",title:"Communication Review",type:"number"}),(0,l.Z2)({name:"deliveryReview",title:"Delivery Review",type:"number"}),(0,l.Z2)({name:"qualityReview",title:"Quality Review",type:"number"}),(0,l.Z2)({name:"reviewComment",title:"Review Comment",type:"text"}
1),(0,l.Z2)({name:"keywords",title:"Search Keywords",description:"Add search terms for this listing",type:"array",of:[{type:"string"}]}),(0,l.Z2)({name:"questions",title:"Questions",description:"Questions by buyers to the seller",type:"array",of:[{name:"question",title:"Question",type:"object",fields:[(0,l.Z2)({name:"user",title:"User",type:"reference",to:[{type:"user"}]}),(0,l.Z2)({name:"question",title:"Question",type:"text"}),(0,l.Z2)({name:"questionDate",title:"Question Date",type:"string"}),(0,l.Z2)({name:"answer",title:"Answer",type:"text"}),(0,l.Z2)({name:"answerDate",title:"Answer Date",type:"string"})]}]}),(0,l.Z2)({name:"chats",title:"Chats",description:"Chat messages between buyer and seller",type:"array",of:[{name:"chat",title:"Chat",type:"object",fields:[(0,l.Z2)({name:"user",title:"User",type:"reference",to:[{type:"user"}]}),(0,l.Z2)({name:"message",title:"Message",type:"text"}),(0,l.Z2)({name:"date",title:"Date",type:"string"})]}]}),(0,l.Z2)({name:"akahuId",title:"Akahu ID",type:"string"}),(0,l.Z2)({name:"akahuStatus",title:"Akahu Status",type:"string"}),(0,l.Z2)({name:"akahuStatusText",title:"Akahu Status Text",type:"string"}),(0,l.Z2)({name:"akahuStatusDate",title:"Akahu Status Date",type:"string"}),(0,l.Z2)({name:"offers",title:"Offers",type:"array",of:[{type:"reference",to:{type:"offer"}}],validation:e=>e.custom((e,t)=>{var i,l,n;if(!Array.isArray(e))return!0;let a=e.filter(e=>"submitted"===e.status||"accepted"===e.status).map(e=>e.user&&"object"==typeof e.user?e.user._ref:e.user),o=new Set(a);if(a.length!==o.size)return"Each user can only have one active offer.";if(e.filter(e=>"accepted"===e.status).length>1)return"Only one offer can be accepted.";let s=null==t?void 0:null===(i=t.document)||void 0===i?void 0:i.price;if("number"==typeof s){for(let t of e)if("number"==typeof t.amount&&t.amount>=s)return"Offer amount must be lower than listing price."}let r=(null==t?void 0:null===(l=t.document)||void 0===l?void 0:l.user)&&"object"==typeof t.document.user&&"_ref"in t.document.user?t.document.user._ref:null==t?void 0:null===(n=t.document)||void 0===n?void 0:n.user;for(let t of e){let e=t.user&&"object"==typeof t.user?t.user._ref:t.user;if(e&&r&&e===r)return"Listing owner cannot make an offer on their own listing."}return!0})})]}),r=(0,l.fe)({name:"page",title:"Pages",type:"document",fields:[(0,l.Z2)({name:"type",title:"Type",type:"string",initialValue:"Sell",options:{list:[{title:"Buy",value:"Buy"},{title:"Sell",value:"Sell"}]}}),(0,l.Z2)({name:"slug",title:"Slug",description:"(Generate to create a URL based on Page Name",type:"slug",validation:e=>e.required(),options:{source:"name",maxLength:96}}),(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"description",title:"Description",description:"Used for SEO and social media sharing.",type:"text"}),(0,l.Z2)({name:"sections",title:"Sections",description:"Create new or select from previously created sections.",type:"array",of:[{type:"reference",to:[{type:"textSection"},{type:"brandsSection"},{type:"categoriesSection"},{type:"promoBannerSection"},{type:"questionsSection"},{type:"imageSection"},{type:"imageSliderSection"},{type:"contentSliderSection"},{type:"checklistSection"},{type:"listingsSection"},{type:"informationListSection"},{type:"detailsSliderSection"},{type:"spacingSection"},{type:"contactFormSection"},{type:"gridCardSection"},{type:"gridCardImageSection"}]}]})]}),m=(0,l.fe)({name:"home",title:"Home Page",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"description",title:"Description",description:"Used for SEO and social media sharing.",type:"text"}),(0,l.Z2)({name:"featuredLabel",title:"Featured Label",type:"string"}),(0,l.Z2)({name:"featuredURL",title:"Featured URL",type:"string"}),(0,l.Z2)({name:"topBanner",title:"Top Banner",type:"blockContent"}),(0,l.Z2)({name:"sections",title:"Sections",description:"Create new or select from previously created sections.",type:"array",of:[{type:"reference",to:[{type:"textSection"},{type:"brandsSection"},{type:"categoriesSection"},{type:"promoBannerSection"},{type:"questionsSection"},{type:"imageSection"},{type:"imageSliderSection"},{type:"contentSliderSection"},{type:"checklistSection"},{type:"listingsSection"},{type:"informationListSection"},{type:"detailsSliderSection"},{type:"spacingSection"},{type:"contactFormSection"},{type:"gridCardImageSection"},{type:"gridCardSection"}]}]})]}),u=(0,l.fe)({name:"textSection",title:"Text Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"textAlign",title:"Text Align",type:"string",initialValue:"left",options:{list:[{title:"Left",value:"left"},{title:"Center",value:"center"},{title:"Right",value:"right"}]}}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"})]}),p=(0,l.fe)({name:"brandsSection",title:"Brands Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"brands",title:"Featured Brands",type:"array",of:[{type:"reference",to:[{type:"brand"}]}]})]}),c=(0,l.fe)({name:"categoriesSection",title:"Categories Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}
1),(0,l.Z2)({name:"categories",title:"Featured Categories",type:"array",of:[{type:"reference",to:[{type:"category"}]}]})]}),d=(0,l.fe)({title:"Block Content",name:"blockContent",type:"array",of:[(0,l.qu)({title:"Block",type:"block",styles:[{title:"Normal",value:"normal"},{title:"H1",value:"h1"},{title:"H2",value:"h2"},{title:"H3",value:"h3"},{title:"H4",value:"h4"},{title:"H5",value:"h5"},{title:"H6",value:"h6"},{title:"Quote",value:"blockquote"}],lists:[{title:"Bullet",value:"bullet"}],marks:{decorators:[{title:"Strong",value:"strong"},{title:"Emphasis",value:"em"}],annotations:[{title:"URL",name:"link",type:"object",fields:[{title:"URL",name:"href",type:"string"}]}]}})]}),g=(0,l.fe)({name:"promoBannerSection",title:"Promotional Banner Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"padding",title:"Padding",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"buttonURL",title:"Button URL",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"buttonLabel",title:"Button Label",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"image",title:"Image",type:"image"})]}),y=(0,l.fe)({name:"questionsSection",title:"Common Questions Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"title",title:"Title",type:"string"}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"questions",title:"Questions",description:"List of questions and answers",type:"array",of:[{name:"question",title:"Question",type:"object",fields:[(0,l.Z2)({name:"questionTItle",title:"Title",type:"string"}),(0,l.Z2)({name:"answer",title:"Answer",type:"blockContent"})]}]})]}),v=(0,l.fe)({name:"imageSection",title:"Image Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"theme",title:"Theme",type:"simplerColor"}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"buttonURL",title:"Button URL 1",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"buttonLabel",title:"Button Label 1",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"buttonURL2",title:"Button URL 2",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"buttonLabel2",title:"Button Label 2",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"position",title:"Image Position",type:"string",initialValue:"Right",options:{list:[{title:"Right",value:"Right"},{title:"Left",value:"Left"}]}})]}),S=(0,l.fe)({name:"imageSliderSection",title:"Image Slider Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"slides",title:"Slides",type:"array",of:[{name:"slide",title:"Slide",type:"object",fields:[(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"buttonURL",title:"Button URL",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"buttonLabel",title:"Button Label",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"image",title:"Image",type:"image"})]}]})]}),f=(0,l.fe)({name:"contentSliderSection",title:"Content Slider Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"slides",title:"Slides",type:"array",of:[{name:"slide",title:"Slide",type:"object",fields:[(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"linkURL",title:"Link URL",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"linkLabel",title:"Link Label",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"position",title:"Image Position",type:"string",initialValue:"Right",options:{list:[{title:"Right",value:"Right"},{title:"Left",value:"Left"}]}})]}]})]}),h=(0,l.fe)({name:"checklistSection",title:"Checklist Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"position",title:"Image Position",type:"string",initialValue:"Right",options:{list:[{title:"Right",value:"Right"},{title:"Left",value:"Left"},{title:"Top",value:"Top"},{title:"Bottom",value:"Bottom"}]}}),(0,l.Z2)({name:"items",title:"Items",type:"array",of:[{name:"item",title:"Item",type:"object",fields:[(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"icon",title:"Icon",type:"string",initialValue:"Tick",options:{list:[{title:"Tick",value:"Tick"},{title:"Cross",value:"Cross"},{title:"Number",value:"Number"}]}})]}]})]}),Z=(0,l.fe)({name:"listingsSection",title:"Listings Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"listings",title:"Featured Listings",type:"array",of:[{type:"reference",to:[{type:"listing"}]}]})]}),x=(0,l.fe)({name:"informationListSection",title:"Information List Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}
1),(0,l.Z2)({name:"backgroundColor",title:"Background Color",type:"string",initialValue:"secondary",options:{list:[{title:"Primary",value:"primary"},{title:"Secondary",value:"secondary"},{title:"White",value:"white"}]}}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"items",title:"Items",type:"array",of:[{name:"item",title:"Item",type:"object",fields:[(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"})]}]})]}),b=(0,l.fe)({name:"detailsSliderSection",title:"Details Slider Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"items",title:"Items",type:"array",of:[{name:"item",title:"Item",type:"object",fields:[(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"title",title:"title",type:"string"}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"})]}]})]}),L=(0,l.fe)({name:"spacingSection",title:"Spacing Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}})]}),C=(0,l.fe)({name:"contactFormSection",title:"Contact Form Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"})]}),k=i(64763),N=(0,l.fe)({name:"tagPage",title:"Promotional Page",type:"document",fields:[(0,l.Z2)({name:"tag",title:"Promotional Tag",type:"reference",to:[{type:"tag"}]}),(0,l.Z2)({name:"slug",title:"Slug",description:"(Generate to create a URL based on Tag Name",type:"slug",validation:e=>e.required(),options:{source:async e=>await k.L.fetch("*[_id == $tagId][0].name",{tagId:e.tag._ref}),slugify:e=>e.toLowerCase().replace(/\s+/g,"-").slice(0,96),maxLength:96}}),(0,l.Z2)({name:"banner",title:"Banner",type:"image"}),(0,l.Z2)({name:"mobileBanner",title:"Mobile Banner",type:"image"})],preview:{select:{title:"tag.name",media:"banner"}}}),T=(0,l.fe)({name:"tag",title:"Promotional Tags",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string",validation:e=>e.required()})]}),I=(0,l.fe)({name:"notification",title:"Notification",type:"document",fields:[(0,l.Z2)({name:"image",title:"Image",type:"image"}),(0,l.Z2)({name:"title",title:"Title",type:"string"}),(0,l.Z2)({name:"description",title:"Description",type:"string"}),(0,l.Z2)({name:"link",title:"Link",type:"string"}),(0,l.Z2)({name:"userId",title:"Push Notification to User",type:"string"}),(0,l.Z2)({name:"linkLabel",title:"Link Label",type:"string"}),(0,l.Z2)({title:"Users",name:"users",type:"array",of:[{type:"reference",to:[{type:"user"}]}]}),(0,l.Z2)({title:"Notified Users",name:"notifiedUsers",type:"array",of:[{type:"reference",to:[{type:"user"}]}]})]}),E=(0,l.fe)({name:"gridCardSection",title:"Grid Card Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"buttonURL",title:"Button URL",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"buttonLabel",title:"Button Label",description:"(Optional)",type:"string"}),(0,l.Z2)({name:"cardsPerLine",title:"Cards per line",type:"string",initialValue:"2",options:{list:[{title:"Two",value:"2"},{title:"Three",value:"3"}]}}),(0,l.Z2)({name:"cards",title:"Cards",type:"array",of:[{name:"card",title:"Card",type:"object",fields:[(0,l.Z2)({name:"content",title:"Content",type:"blockContent"}),(0,l.Z2)({name:"image",title:"Image",type:"image"})]}]})]}),w=(0,l.fe)({name:"gridCardImageSection",title:"Grid Card Image Section",type:"document",fields:[(0,l.Z2)({name:"name",title:"Name",type:"string"}),(0,l.Z2)({name:"topSpacing",title:"Top Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"bottomSpacing",title:"Bottom Spacing",type:"string",initialValue:"none",options:{list:[{title:"None",value:"none"},{title:"Extra Small",value:"xs"},{title:"Small",value:"sm"},{title:"Medium",value:"md"},{title:"Large",value:"lg"},{title:"Extra Large",value:"xl"}]}}),(0,l.Z2)({name:"cards",title:"Cards",type:"array",of:[{name:"card",title:"Card",type:"object",fields:[(0,l.Z2)({name:"label",title:"Label",type:"string"}),(0,l.Z2)({name:"url",title:"URL",type:"string"}),(0,l.Z2)({name:"theme",title:"Theme",type:"simplerColor"}),(0,l.Z2)({name:"image",title:"Image",type:"image"})]}]})]});let B={types:[m,r,N,T,s,a,o,n,(0,l.fe)({name:"offer",title:"Offer",type:"document",preview:{select:{status:"status",amount:"amount"},prepare(e){let{status:t,amount:i}=e;return{title:"".concat(t||""," - $").concat(null!=i?i:"")}}},fields:[(0,l.Z2)({name:"user",title:"User",type:"reference",to:[{type:"user"}],validation:e=>e.required()}),(0,l.Z2)({name:"amount",title:"Amount",type:"number",validation:e=>e.required().min(0)}),(0,l.Z2)({name:"createdAt",title:"Created At",type:"datetime",validation:e=>e.required()}),(0,l.Z2)({name:"updatedAt",title:"Updated At",type:"datetime",validation:e=>e.required()}),(0,l.Z2)({name:"status",title:"Status",type:"string",options:{list:[{title:"Submitted",value:"submitted"},{title:"Accepted",value:"accepted"},{title:"Declined",value:"declined"},{title:"Expired",value:"expired"}]},validation:e=>e.required()})]}),u,p,c,C,g,y,v,S,f,h,Z,x,b,L,I,d,E,w]}},24654:function(){}},function(e){e.O(0,[9774,4885,7472,2261,3723,6404,4625,444,115,6767,1272,2032,7185,6821,6203,5904,2888,179],function(){return e(e.s=49592)}),_N_E=e.O()}]);

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.