PageSourceSearch

https://amplifyd.com/_next/static/chunks/pages/admin/[storeUrl]/inventory/featured-312a7426c1e114b1.js

js amplifyd.com collected 2026-09-30 12:49:33 UTC 20,997 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3022],{16938:function(e,t,a){"use strict";var r,i=a(67294);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 37"},e),r||(r=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M7.11 27.704v6.244c.963 0 1.765.67 1.934 1.552h5.325c.17-.883.97-1.552 1.934-1.552s1.765.67 1.935 1.552h26.828c.17-.883.97-1.552 1.934-1.552v-23.12c-.964 0-1.765-.669-1.934-1.552h-3.68M16.303 29.375v-1.32m-6.11-6.957V19.78m0-5.007v-1.32m0-5.007v-1.32M38.957 1H12.128c-.17.883-.97 1.552-1.934 1.552S8.429 1.882 8.259 1H2.934c-.17.883-.97 1.552-1.934 1.552v23.12c.964 0 1.765.669 1.934 1.552H8.26c.17-.883.971-1.552 1.935-1.552.963 0 1.764.669 1.934 1.552h26.828c.17-.883.97-1.552 1.934-1.552V2.552c-.963 0-1.764-.67-1.934-1.552M25.777 17.631l-3.598 1.826.688-3.868-2.911-2.739 4.022-.564 1.799-3.52 1.799 3.52 4.022.564-2.91 2.74.687 3.867z"})))}},96330:function(e,t,a){"use strict";var r,i=a(67294);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 48"},e),r||(r=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m28.26 1 6.814 1.122 9.087 5.61-3.976 7.853-5.679-2.244v3.927M28.26 1H17.47m10.79 0c-.189 1.87-1.59 5.61-5.679 5.61S17.47 2.87 17.47 1m0 0-6.816 1.122L1 7.732l3.975 7.853 5.68-2.244v24.683H22.58m11.358-8.414v-3.927c-.189-1.309.228-3.927 3.408-3.927s3.596 2.618 3.407 3.927v3.927M28.26 26.805h18.173L47 43.635C47 44.755 47 47 44.16 47H30.53c-1.703 0-2.839-.673-2.839-3.366s.379-11.78.568-16.83"})))}},95839:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[storeUrl]/inventory/featured",function(){return a(13502)}])},36406:function(e,t,a){"use strict";a.d(t,{Z:function(){return v}});var r=a(85893),i=a(34539),n=a(15912),s=a(28740),l=a(60119),d=a(67294),o=e=>{let{startDate:t,endDate:a,ended:i}=e,[n,s]=(0,d.useState)(0);(0,d.useEffect)(()=>{let e=setInterval(()=>{s(e=>e+1)},1e3);return()=>clearInterval(e)},[]);let o={days:Math.floor((t.getTime()-Date.now())/864e5),hours:Math.floor((t.getTime()-Date.now())/36e5),minutes:Math.floor((t.getTime()-Date.now())/6e4),seconds:Math.floor((t.getTime()-Date.now())/1e3)},c={days:Math.floor((a.getTime()-Date.now())/864e5),hours:Math.floor((a.getTime()-Date.now())/36e5),minutes:Math.floor((a.getTime()-Date.now())/6e4),seconds:Math.floor((a.getTime()-Date.now())/1e3)},m=c.seconds,x="Seconds";return o.seconds>0?o.days>0?(m=o.days,x=(0,l._6)(m,"Day")):o.hours>0?(m=o.hours,x=(0,l._6)(m,"Hour")):o.minutes>10?(m=o.minutes,x=(0,l._6)(m,"Minute")):(m=o.seconds,x=(0,l._6)(m,"Second")):c.days>0?(m=c.days,x=(0,l._6)(m,"Day")):c.hours>0?(m=c.hours,x=(0,l._6)(m,"Hour")):c.minutes>0?(m=c.minutes,x=(0,l._6)(m,"Minute")):(m=c.seconds,x=(0,l._6)(m,"Second")),m=m<0?0:m,(0,r.jsxs)("div",{className:"flex flex-col gap-1 items-end",children:[!!i&&(0,r.jsx)("div",{className:"border border-gray-400 text-gray-500 dark:text-gray-300 rounded-md px-[10px] py-[2px]",children:"Ended"}),!i&&(0,r.jsx)(r.Fragment,{children:c.minutes<10?(0,r.jsx)("div",{className:"bg-primary text-white rounded-md px-[10px] py-[2px] font-bold",children:"Ending Soon"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-300",children:o.seconds>0?"STARTING":"ENDING"}),(0,r.jsx)("div",{className:"border border-primary text-primary dark:border-white dark:text-white rounded-md px-[10px] py-[2px] font-bold",children:m}),(0,r.jsx)("div",{className:"text-xs",children:x})]})})]},n)},c=a(4572),m=a(9094),x=a(21847),u=a(8227),h=a(89583),p=a(47695),g=a(86893),v=e=>{var t;let{id:a,auction:v,hideArtist:y,analyticsClassName:f,onClick:N}=e,j=(v.currentBidSnapshot||0)>0,{user:b}=(0,m.Z)(),w=(0,u.CG)(e=>e.app.value.userExchangeRate),k=(0,d.useMemo)(()=>new Date(v.startBy)<new Date,[v.startBy]),T=(0,u.CG)(e=>e.user.value.auctionWatchlist),_=(0,d.useMemo)(()=>T.includes(v.id),[v.id,T]),C=(0,u.TL)(),E=(0,d.useMemo)(()=>{let e=new Date(v.startBy),t=new Date,a=e.getTime()-t.getTime();return a/864e5>=30},[v.startBy]);return(0,r.jsx)(x.Z,{id:a,onClick:N,analyticsClassName:f,artistTitle:y?void 0:v.store.title,title:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{children:v.name}),!!v.lotId&&(0,r.jsxs)("div",{className:"text-xs opacity-70",children:["LOT# ",v.lotId.toUpperCase()]})]}),charity:!!(null===(t=v.charity)||void 0===t?void 0:t.enabled),url:(0,s.$5)(v.id,v.name,v.store.url),image:(0,n.J2)(v.id,v.images[0]),imageOverlay:(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)("div",{className:"absolute top-[6px] right-[6px]",children:(0,r.jsx)("div",{title:"Add to Watchlist",onClick:e=>{e.preventDefault(),_?i.o.removeFromWatchlist(v.id).then(()=>C(p.hI.removeAuctionFromWatchlist(v.id))).catch(console.log):i.o.addToWatchlist(v.id).then(()=>C(p.hI.addAuctionToWatchlist(v.id))).catch(console.log)}
1,className:"bg-white w-[40px] h-[40px] rounded-full flex items-center justify-center shadow-md shadow-[rgba(0,0,0,0.4)] pointer-events-auto",children:_?(0,r.jsx)(h.$0H,{className:"text-red-500"}):(0,r.jsx)(g.$aX,{className:"text-red-500"})})})}),children:(0,r.jsxs)("div",{className:"flex flex-wrap gap-2 justify-between items-end",children:[j?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-300",children:v.isEnded?"FINAL BID":"CURRENT BID"}),(0,r.jsxs)("div",{className:"flex items-end gap-2 mt-1",children:[(0,r.jsxs)("div",{className:"text-lg font-bold text-black dark:text-white leading-none",children:["$",(0,l.x6)(v.currentBidSnapshot||0)]}),!!w&&(0,r.jsx)(c.Z,{zeroIsFree:!1,price:v.currentBidSnapshot||0,className:"text-sm text-primary leading-none font-bold"})]})]}):(0,r.jsx)(r.Fragment,{children:!v.isEnded&&(0,r.jsx)(r.Fragment,{children:k?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-300",children:"STARTING BID"}),(0,r.jsxs)("div",{className:"flex items-end gap-2 mt-1",children:[(0,r.jsxs)("div",{className:"text-lg font-bold text-black dark:text-white leading-none",children:["$",(0,l.x6)(v.startingPrice||0)]}),!!w&&(0,r.jsx)(c.Z,{zeroIsFree:!1,price:v.startingPrice||0,className:"text-sm text-primary leading-none font-bold"})]})]}):(0,r.jsx)(r.Fragment,{children:E?(0,r.jsx)("div",{className:"bg-primary text-white rounded-md px-[10px] py-[2px] font-bold",children:"Coming Soon"}):(0,r.jsx)("div",{className:"bg-secondary text-white rounded-md px-[10px] py-[2px] font-bold",children:"Preview"})})})}),(0,r.jsx)("div",{className:"flex flex-col gap-1 items-end",children:(null==b?void 0:b.id)===v.winnerId?(0,r.jsx)("div",{className:"px-3 py-1 rounded-md text-xs mt-4 bg-secondary text-white font-bold text-center",children:"You Won!"}):(0,r.jsx)(r.Fragment,{children:!E&&(0,r.jsx)(o,{ended:!!v.isEnded,startDate:new Date(v.startBy),endDate:new Date(v.endBy)})})})]})})}},28247:function(e,t,a){"use strict";a.d(t,{Cx:function(){return o},J0:function(){return d},_:function(){return c},ii:function(){return s},mm:function(){return n},tL:function(){return l}});var r=a(88959),i=a(74231);let n=i.Ry({total:i.Rx().nullable().defined()}),s=i.IX().of(i.Z_().min(3,"Highlight must be at least 3 characters").max(999,"Highlight must be less than 999 characters").required("Highlight must be at least 3 characters")),l=i.IX().of(i.Z_().required()).min(1,"At least 1 images is required").required().default([]),d=i.Ry({goal:i.Rx().required(),dueDate:i.Z_().required().test("is-date-tomorrow-or-later","Due date must be tomorrow or later",e=>{if(!e)return!0;let t=new Date(e),a=new Date;return a.setDate(a.getDate()+1),t>=a}),goalType:i.nK().oneOf(Object.values(r.yZ)).optional(),price:i.Rx().optional().nullable(),quantity:i.Rx().optional().nullable()}),o={originCountryCode:"us",estimatedDeliveryTimeMin:10,estimatedDeliveryTimeMax:20},c=[{type:r.gG.WORLD,rate:0,rateAdditional:0,destinationContinentCode:null,destinationCountryCode:null},{type:r.gG.WITHIN_CONTINENT,rate:0,rateAdditional:0,destinationContinentCode:null,destinationCountryCode:null},{type:r.gG.WITHIN_COUNTRY,rate:0,rateAdditional:0,destinationContinentCode:null,destinationCountryCode:null}]},47964:function(e,t,a){"use strict";var r=a(85893),i=a(28740),n=a(60119),s=a(41664),l=a.n(s),d=a(11163),o=a(86893),c=a(8026),m=a(21589),x=a(16938),u=a(96330),h=a(57223);t.Z=e=>{let{store:t,widgetMode:a}=e,s=(0,d.useRouter)(),p=[];if(!a){var g;p.push({icon:(0,r.jsx)(o.nae,{}),title:"Featured",match:"/admin/*/inventory/featured",count:(null===(g=t.featured)||void 0===g?void 0:g.length)||0,borderClassName:"border-purple-500",manageLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_TYPE,{storeUrl:t.url,inventoryType:"featured"}),iconClassName:"bg-purple-500 text-purple-500"})}return p.push({icon:(0,r.jsx)(x.Z,{className:"w-1/2",strokeWidth:4}),title:"Buy It Now Experiences",match:"/admin/*/inventory/experiences",count:t.skuCount.experiences,borderClassName:"border-primary",manageLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_TYPE,{storeUrl:t.url,inventoryType:"experiences"}),createLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_CREATE,{storeUrl:t.url,inventoryType:"experiences"}),iconClassName:"bg-primary text-primary"}),p.push({icon:(0,r.jsx)(u.Z,{className:"w-1/2",strokeWidth:4}),title:"Merch",match:"/admin/*/inventory/merchandise",count:t.skuCount.merchandise,borderClassName:"border-yellow-600",manageLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_TYPE,{storeUrl:t.url,inventoryType:"merchandise"}),createLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_CREATE,{storeUrl:t.url,inventoryType:"merchandise"}),iconClassName:"bg-yellow-600 text-yellow-600"}),p.push({icon:(0,r.jsx)(m.Z,{className:"w-1/2",strokeWidth:4}),title:"Downloads",match:"/admin/*/inventory/digital",count:t.skuCount.digital,borderClassName:"border-red-600",manageLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_TYPE,{storeUrl:t.url,inventoryType:"digital"}),createLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_CREATE,{storeUrl:t.url,inventoryType:"digital"}),iconClassName:"bg-red-600 text-red-600"}),p.push({icon:(0,r.jsx)(c.Z,{className:"w-1/2",strokeWidth:2}),title:"Auctions",match:"/admin/*/inventory/auctions",count:t.skuCount.auctions,borderClassName:"border-lime-400",manageLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_TYPE,{storeUrl:t.url,inventoryType:"auctions"}),createLink:(0,i.Bv)(i.Z6.ADMIN_STORE_INVENTORY_CREATE,{storeUrl:t.url,inventoryType:"auctions"}),iconClassName:"bg-lime-400 text-lime-400"}),(0,r.jsx)("div",{className:(0,n.Sh)("grid gap-2 grid-cols-1 sm:grid-cols-2 2xl:grid-cols-4 lg:gap-4"),children:p.map((e,t)=>(0,r.jsxs)("div",{className:(0,n.Sh)("flex gap-2 lg:gap-4 border px-2 py-2 items-center rounded-lg lg:px-4 lg:py-3",!(0,n.AD)(e.match,s.asPath)&&"border-gray-500",(0,n.AD)(e.match,s.asPath)&&e.borderClassName,(0,n.AD)(e.match,s.asPath)&&"bg-white shadow-md dark:shadow-none dark:bg-gray-700"),children:[(0,r.jsx)("div",{className:(0,n.Sh)("w-[30px] h-[30px] min-w-[30px] min-h-[30px] rounded-lg","lg:w-[50px] lg:h-[50px] lg:min-w-[50px] lg:min-h-[50px]","text-sm lg:text-2xl","bg-opacity-20 rounded-full flex items-center justify-center",e.iconClassName),children:e.icon}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:(0,n.Sh)("text-xs lg:text-xl"),children:e.title}),(0,r.jsxs)("div",{className:"text-gray-500 text-xs lg:text-sm",children:[e.count," ITEMS"]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[!!e.manageLink&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l(),{href:e.manageLink,className:"text-xs lg:text-sm text-primary hover:underline",children:"Manage"}),!!e.createLink&&(0,r.jsx)("div",{className:"text-xs lg:text-sm text-gray-400",children:"|"})]}),!!e.createLink&&(0,r.jsx)(l(),{href:e.createLink,onClick:()=>{h.Z.getInstance().sendEvent("create_content_intent",{admin_section:a?"dashboard":"content",content_category:e.title.toLowerCase()})},className:"text-xs lg:text-sm text-primary hover:underline",children:"Create new"})]})]})]},t))})}},89649:function(e,t,a){"use strict";var r=a(85893),i=a(86893),n=a(85708);t.Z=e=>{let{title:t,onClose:a}=e;return(0,r.jsx)("div",{className:"bg-gradient-to-r from-primary to-primaryhover text-white pt-[env(safe-area-inset-top)]",children:(0,r.jsxs)("div",{className:"layout-container flex items-center justify-between py-4 md:py-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-bold text-lg md:text-2xl",children:t}),(0,r.jsx)("div",{className:"",children:"Interaction Disabled for Preview"})]}),(0,r.jsx)(n.z,{onClick:a,className:"border border-white rounded-full px-3 py-1 text-sm md:px-6 md:py-2 md:text-base hover:opacity-50",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(i.q5L,{size:18}),(0,r.jsx)("div",{children:"Close"})]})})]})})}},97819:function(e,t,a){"use strict";var r=a(85893),i=a(87354),n=a(86893);t.Z=e=>{let{url:t,className:a,onClick:s}=e;return(0,r.jsx)("div",{className:a,children:(0,r.jsx)(n.XKb,{onClick:()=>{null==s||s(),navigator&&navigator.clipboard?navigator.clipboard.writeText(t||window.location.href).then(()=>i.w.success("Link copied to clipboard.")).catch(()=>i.w.error("Unable to copy link.")):i.w.error("Unable to copy link.")}
1,className:"hover:text-primary cursor-pointer",size:20})})}},14770:function(e,t,a){"use strict";var r=a(85893),i=a(57223),n=a(28740),s=a(60119),l=a(41664),d=a.n(l),o=a(97819);t.Z=e=>{var t;let{store:a}=e;return(0,r.jsx)("div",{className:(0,s.Sh)("z-20 hidden md:block bg-white dark:bg-gray-700 border-b border-gray-300 dark:border-none",a?"":"opacity-0"),children:(0,r.jsx)("div",{className:"flex flex-wrap gap-4 items-center lg:items-center justify-between layout-container py-3",children:(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)(d(),{href:(0,n.Bv)(n.Z6.STORE,{storeUrl:null==a?void 0:a.url}),onClick:()=>{i.Z.getInstance().sendEvent("pdp_artist_click",{art_name:null==a?void 0:a.title,art_id:null==a?void 0:a.id})},children:(0,r.jsx)("h1",{className:"border-r border-gray-500 pr-4 text-3xl font-bold line-clamp-1 text-black dark:text-white",children:null!==(t=null==a?void 0:a.title)&&void 0!==t?t:"-"})}),(0,r.jsxs)("div",{className:(0,s.Sh)("flex items-center gap-2 md:gap-4"),children:[(0,r.jsx)("div",{className:"text-sm text-gray-600 dark:text-gray-400 hidden md:block",children:"Share:"}),(0,r.jsx)(o.Z,{onClick:()=>{i.Z.getInstance().sendEvent("art_interaction",{art_name:null==a?void 0:a.title,art_id:null==a?void 0:a.id,art_interaction_type:"link share"})}})]})]})})})}},13502:function(e,t,a){"use strict";a.r(t);var r=a(85893),i=a(47964),n=a(87354),s=a(94357),l=a(85708),d=a(50788),o=a(37644),c=a(97332),m=a(34539),x=a(82815),u=a(88959),h=a(15912),p=a(50006),g=a(41310),v=a(8227),y=a(67294),f=a(28627),N=a(47516),j=a(86893),b=a(53854),w=a(89649),k=a(60115),T=a(57223);t.default=()=>{let{selectedStore:e}=(0,v.CG)(e=>e.admin.value),[t,a]=(0,y.useState)(!1),[_,C]=(0,y.useState)(!1),[E,I]=(0,y.useState)([]),[D,S]=(0,y.useState)([]),R=(0,v.TL)(),[Z,M]=(0,y.useState)(!1);(0,y.useEffect)(()=>{if(null==e?void 0:e.id){let t=async()=>{let t=(await x.c.fetchManagable(e.id,"experiences")).filter(e=>e.state===u.fT.PUBLISHED&&!e.isPrivate).map(e=>({id:e.id,type:"experience",name:"".concat(e.name," | ").concat((0,h.kV)(e)),image:(0,h.J2)(e.id,e.images[0])})),a=(await x.c.fetchManagable(e.id,"merchandise")).filter(e=>e.state===u.fT.PUBLISHED&&!e.isPrivate&&e.pricingType!==u._H.AUCTION).map(e=>({id:e.id,type:"merchandise",name:"".concat(e.name," | ").concat((0,h.kV)(e)),image:(0,h.J2)(e.id,e.images[0])})),r=(await x.c.fetchManagable(e.id,"digital")).filter(e=>e.state===u.fT.PUBLISHED&&!e.isPrivate).map(e=>({id:e.id,type:"digital",name:"".concat(e.name," | ").concat((0,h.kV)(e)),image:(0,h.J2)(e.id,e.images[0])})),i=(await m.o.fetchManagableAuctions(e.id)).filter(e=>e.published&&!e.isPrivate).filter(e=>!e.isEnded).map(e=>({id:e.id,type:"auction",name:e.name,image:(0,h.J2)(e.id,e.images[0])})),n=[...t,...a,...r,...i];return n.sort((e,t)=>e.name.localeCompare(t.name)),n};I([]),a(!0),C(!1),t().then(t=>{var a;let r=[];for(null===(a=e.featured)||void 0===a||a.forEach(e=>{let a=t.find(t=>t.id===e.id);a&&r.push(a)});r.length<12;)r.push(null);S(r.slice(0,12)),I(t)}).catch(()=>{C(!0)}).finally(()=>{a(!1)})}},[null==e?void 0:e.id,null==e?void 0:e.featured]);let[O,L]=(0,y.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.c,{pageTitle:"Featured Content"}),(0,r.jsx)(c.Z,{children:!!e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"pt-4 lg:pt-8 layout-container-expand",children:(0,r.jsx)(i.Z,{store:e})}),(0,r.jsx)("div",{className:"layout-container-expand pb-4 lg:pb-8",children:(0,r.jsxs)("div",{className:"mt-4 bg-white shadow-lg dark:shadow-none dark:bg-gray-800 p-4 md:p-8 rounded-lg",children:[(0,r.jsxs)("div",{className:"flex flex-wrap gap-4 items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-2xl font-bold",children:"Featured Content"}),(0,r.jsx)("div",{className:"text-gray-500 dark:text-gray-400",children:"Please select up to 12 items to display on your featured page"}),(0,r.jsxs)("div",{className:"text-sm mt-2",children:["You can only display ",(0,r.jsx)("span",{className:"italic",children:"'published'"})," items"]})]}),O&&(0,r.jsxs)("div",{className:"fixed inset-0 bg-black z-50 flex flex-col",children:[(0,r.jsx)(w.Z,{title:"Preview Store",onClose:()=>L(!1)}),(0,r.jsx)("div",{className:"w-full grow overflow-y-auto cursor-not-allowed",children:(0,r.jsx)(k.Z,{store:{...e,featured:D.filter(e=>!!e).map(e=>({id:e.id,type:e.type}))},isPreviewMode:!0})})]}),(0,r.jsxs)("div",{className:"flex flex-col w-full md:w-auto md:flex-row md:items-center gap-2 md:gap-4",children:[(0,r.jsx)(l.z,{onClick:()=>L(!0),className:"px-6 py-2 bg-primary rounded-full hover:opacity-50 text-white",children:(0,r.jsx)("div",{className:"font-medium",children:"Preview"})}),(0,r.jsx)(l.z,{disabled:!Z,onClick:()=>{let t=D.filter(e=>!!e).map(e=>({id:e.id,type:e.type}));p.d.setFeaturedProducts(e.id,t).then(()=>{R(g.zR.updateManageableStore({id:e.id,featured:t})),M(!1)}).catch(e=>n.w.error("There was an error saving your featured products"))},className:"px-6 py-2 bg-secondary rounded-full hover:opacity-50 text-white",children:(0,r.jsx)("div",{className:"font-medium",children:"Save"})})]})]}),_?(0,r.jsx)("div",{className:"mt-8",children:(0,r.jsx)("div",{className:"font-bold text-red-500",children:"There was an error loading your products"})}):(0,r.jsx)(r.Fragment,{children:t?(0,r.jsx)("div",{className:"w-full flex items-center justify-center h-32",children:(0,r.jsx)(N.sOR,{size:32,className:"animate-spin text-primary"})}):(0,r.jsx)(r.Fragment,{children:E.length>0?(0,r.jsx)("div",{className:"mt-4 md:mt-8",children:(0,r.jsx)(f.Z5,{onDragEnd:e=>{if(e.destination){let t=e.source.index,a=e.destination.index,r=[...D],[i]=r.splice(t,1);r.splice(a,0,i),S(r),M(!0)}},children:(0,r.jsx)(f.bK,{droppableId:"playlist",direction:"vertical",children:e=>(0,r.jsxs)("div",{...e.droppableProps,ref:e.innerRef,className:"flex flex-col gap-2 md:gap-4",children:[D.map((e,t)=>(0,r.jsx)(f._l,{draggableId:"playlist".concat(t),index:t,children:a=>(0,r.jsxs)("div",{...a.draggableProps,ref:a.innerRef,className:"border border-gray-400 dark:border-none bg-white dark:bg-gray-900 rounded-md px-2 py-4 lg:p-6 flex items-center gap-3 lg:gap-6",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-gray-500 dark:text-gray-400 text-sm",...a.dragHandleProps,children:[(0,r.jsx)(b.iwI,{className:"hidden md:block",size:18}
1),(0,r.jsx)(s.Z,{className:"bg-center bg-cover w-[40px] h-[40px] min-w-[40px] min-h-[40px] md:w-[50px] md:h-[50px] md:min-w-[50px] md:min-h-[50px] bg-gray-800 rounded-md",src:(null==e?void 0:e.image)||""})]}),(0,r.jsx)("div",{className:"w-[calc(100%-90px)] lg:w-[calc(100%-150px)]",children:(0,r.jsx)(d.Z,{value:null==e?void 0:e.id,options:E.filter(t=>t.id===(null==e?void 0:e.id)||!D.find(e=>(null==e?void 0:e.id)===t.id)).map(e=>({label:e.name,value:e.id})),onChange:e=>{let a=E.find(t=>t.id===e.target.value);if(a){let e=[...D];e[t]=a,S(e),M(!0),T.Z.getInstance().sendEvent("add_featured",{content_category:a.type,content_title:a.name})}}})}),(0,r.jsx)("div",{onClick:()=>{let e=[...D];e[t]=null,S(e),M(!0)},className:"cursor-pointer hover:opacity-50 text-gray-500 dark:text-gray-400",children:(0,r.jsx)(j.q5L,{size:22})})]})},t)),e.placeholder]})})})}):null})})]})})]})})]})}}},function(e){e.O(0,[8907,1228,5062,6556,5937,4617,5675,2261,5287,6199,3628,7332,7742,115,9774,2888,179],function(){return e(e.s=95839)}),_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.