1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8694],{11957:function(e,t,n){n.d(t,{r:function(){return m}});var r=n(43692),i=n(2746),a=n(44453),o=n.n(a),s=n(8014),l=n(34237),c=n(6801),u=n.n(c),d=n(56168),p=n(98421),f=n(40137),x=n(63940),h=n(14131),m=function(){var e=(0,r.Z)(o().mark((function e(t){var n,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(p.T5,"/api/admin/assets/entries/"),{method:"POST",body:JSON.stringify({entries:"number"===typeof t?[t]:t}),credentials:"include",headers:{"Content-Type":"application/json"}}).then(function(){var e=(0,r.Z)(o().mark((function e(t){var n,r,a,s,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.blob();case 2:return n=e.sent,"filename=",r=t.headers.get("content-disposition")||"",a=(0,i.Z)(r.split("filename="),2),s=a[1],l=void 0===s?"":s,e.abrupt("return",{filename:l.replace(/"/g,""),file:n});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:return n=e.sent,a=n.filename,s=n.file,e.abrupt("return",{filename:a,file:s});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.Z=function(e){var t=e.id,n=e.children,i=e.onDownload,a=(0,d.useState)(!1),c=a[0],p=a[1],v=function(){var e=(0,r.Z)(o().mark((function e(){var n,r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p(!0),e.next=3,m(t);case 3:n=e.sent,r=n.filename,a=n.file,p(!1),u()(a,r),i&&i({filename:r,file:a});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return n?n({loading:c,onClick:v}):(0,s.jsx)(h.Z,{variant:"flat",color:"base.6",size:"sm",onClick:v,isDisabled:c,leftIcon:c?(0,s.jsx)(x.Z,{size:"20px"}):(0,s.jsx)(f.Z,{icon:"downloadicon",fill:"base.6"}),children:(0,s.jsx)(l.xv,{variant:"ctaSecondary",children:"Download Assets"})})}},75761:function(e,t,n){var r=n(43692),i=n(44453),a=n.n(i),o=n(8014),s=n(86584),l=n(40137),c=n(2612),u=n(56168),d=n(98421),p=n(8403),f=n(49823);t.Z=function(e){var t=e.user,n=(0,p.Z)(),i=(0,u.useState)(t.is_featured),x=i[0],h=i[1],m=(0,u.useCallback)((0,r.Z)(a().mark((function e(){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.ZP)({path:"/api/admin/manage/artist/".concat(t.id,"/toggle-featured/"),method:"POST"});case 2:(r=e.sent.data)?r.is_featured?n({title:"".concat(t.name," set as Featured"),status:"success"}):n({title:"".concat(t.name," unset as Featured"),status:"info"}):n({title:d.FI,status:"error"});case 4:case"end":return e.stop()}}),e)}))),[n,t]),v=(0,u.useCallback)((0,c.debounce)(m,1e3),[m]),g=(0,u.useCallback)((function(){h(!x),v()}),[v,x]);return(0,u.useEffect)((function(){h(t.is_featured)}),[]),(0,o.jsx)(s.hU,{mr:"10px",size:"sm","aria-label":"Toggle Featured",bg:"transparent !important",icon:(0,o.jsx)(l.Z,{icon:"star",width:"20px",fill:x?"accent1.2":"transparent",stroke:x?"accent1.2":"base_2.2"}),onClick:g})}},57531:function(e,t,n){var r=n(8014),i=n(34237),a=n(17325),o=n(82857);t.Z=function(e){var t=e.data,n=e.variant,s=e.textVariant;return(0,r.jsx)(o.Z,{variant:n,label:(0,r.jsxs)(i.xv,{variant:"fieldsTitleS",direction:"column",as:i.kC,children:[(0,r.jsxs)("p",{children:["Entries: $",(0,a.Wy)(t.entries)]}),(0,r.jsxs)("p",{children:["Bundles: $",(0,a.Wy)(t.bundles)]})]}),children:(0,r.jsxs)(i.xv,{as:"div",cursor:"default",variant:s,children:["$",(0,a.Wy)(t.total)]})})}},1154:function(e,t,n){n.d(t,{Z:function(){return ke}});var r=n(8014),i=n(72263),a=n(21350),o=n(85085),s=n(56168),l=n(76318),c=n(43692),u=n(44453),d=n.n(u),p=n(34237),f=n(40137),x=n(63940),h=n(49823),m=n(5447),v=n(99728),g=n(14131),b=n(24520),y=n(33453),j=n(24113),C=n(37824),Z=n(10160),w=n(53963),k=n(14970),_=n(80174),I=n(65090),S=n(98421),E=n(8403),R=n(55310),P=n(94644),D=[{label:"Complete",value:R.K1.APPROVED},{label:"Incomplete",value:R.K1.PENDING},{label:"Rejected",value:R.K1.REJECTED}],T=[{label:"Professional",value:_.Kq.PROFESSIONAL},{label:"Non-Professional",value:_.Kq.NON_PROFESSIONAL}],z=[{label:"Single",value:_.UZ.SINGLE},{label:"Series",value:_.UZ.SERIES}],O={isDisabled:!0,opacity:.2},A=(0,P.Ry)({id:(0,P.Rx)().required("Required"),title:(0,P.Z_)().when("status",{is:R.K1.APPROVED,then:function(e){return e.required("Title is required")},otherwise:function(e){return e}}),entry_level:(0,P.Z_)().oneOf([_.Kq.PROFESSIONAL,_.Kq.NON_PROFESSIONAL]).required("Required"),entry_type:(0,P.Z_)().oneOf([_.UZ.SINGLE,_.UZ.SERIES]).required("Required"),status:(0,P.Z_)().oneOf([R.K1.APPROVED,R.K1.PENDING,R.K1.REJECTED]).required("Required"),description:(0,P.Z_)(),contest:(0,P.Z_)().required("Required"),year:(0,P.Rx)().required("Required"),tags:(0,P.IX)().of((0,P.Ry)({value:(0,P.Rx)().required("Required"),label:(0,P.Z_)().required("Required")}
1)).required("Required"),categories:(0,P.IX)().of((0,P.Ry)({value:(0,P.Rx)().required("Required"),label:(0,P.Z_)().required("Required")})).required("Required").when("status",{is:R.K1.APPROVED,then:function(e){return e.min(1,"At least one category is required")},otherwise:function(e){return e}})}),N={base:"0 20px",md:"0 40px",lg:"0 60px"},L=function(e){return{label:e.name,value:e.id}},q=(0,o.Pi)((function(){var e=l.u.entry,t=l.u.editableImages.length,n=e.entry_type===_.UZ.SERIES&&t>1;return(0,r.jsx)(y.Z,{name:"entry_type",render:function(e){var i=e.field;return(0,r.jsxs)(p.kC,{direction:"column",children:[(0,r.jsx)(Z.Z,(0,v.Z)((0,m.Z)({placeholder:"Entry Type",isDisabled:n,opacity:n?.3:1,variant:"light"},i),{onChange:function(e){var n=e.target.value;n===_.UZ.SINGLE&&t>1||(i.onChange(e),l.u.entry&&(0,a.z)((function(){l.u.entry=(0,v.Z)((0,m.Z)({},l.u.entry),{entry_type:n})})))},children:z.map((function(e){var t=e.label,n=e.value;return(0,r.jsx)("option",{value:n,children:t},n)}))})),n&&(0,r.jsx)(p.xv,{variant:"overline",mt:"5px",color:"base_2.2",children:"You can change entry type to SINGLE if there is only 1 image."})]})}})})),M=(0,o.Pi)((function(e){var t=e.tableRef,n=(0,E.Z)({position:"bottom-right"}),i=l.u.entry,o=(0,s.useMemo)((function(){return i.contest.categories.map((function(e){return{value:e.id,label:e.name}}))}),[i.contest.categories]),u=(0,s.useMemo)((function(){return{id:i.id,title:i.title,entry_level:i.entry_level,entry_type:i.entry_type,description:i.description,status:i.status,contest:i.contest.name,year:i.contest.year,tags:i.tags.map(L),categories:i.categories.map(L)}}),[i]),f=(0,s.useCallback)((function(e){(0,a.z)((function(){l.u.formLoading=e}))}),[]),x=(0,s.useCallback)(function(){var e=(0,c.Z)(d().mark((function e(r){var i,o,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),i={title:r.title,entry_level:r.entry_level,entry_type:r.entry_type,description:r.description,status:r.status,categories:r.categories.map((function(e){return e.value})),tags:r.tags.map((function(e){return e.value})),images:l.u.editableImages.map((function(e,t){return{id:e.id,item:e.item.id,order:t}}))},e.next=4,(0,h.ZP)({path:"/api/admin/manage/entry/".concat(r.id,"/"),method:"PATCH",body:i,returnErrors:!0});case 4:o=e.sent,f(!1),o.status===S.RS.HTTP_200_OK?(l.u.setMode(l.j.VIEW),n({title:"Entry Updated!",status:"success"}),(null===t||void 0===t||null===(s=t.current)||void 0===s?void 0:s.refresh)&&t.current.refresh(),(0,a.z)((function(){l.u.entry=o.data,l.u.editableImages=[]}))):n({title:(0,I.Eo)(o.data),status:"error"});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[f,t,n]);return(0,r.jsx)(p.kC,{flex:"1",w:{base:"100%",md:"auto"},children:(0,r.jsx)(k.J9,{initialValues:u,validationSchema:A,onSubmit:x,children:(0,r.jsx)(k.l0,{style:{flex:1},children:(0,r.jsxs)(p.Kq,{spacing:"10px",children:[(0,r.jsx)(y.Z,{name:"status",render:function(e){var t=e.field;return(0,r.jsx)(Z.Z,(0,v.Z)((0,m.Z)({placeholder:"Status",variant:"light"},t),{children:D.map((function(e){var t=e.label,n=e.value;return(0,r.jsx)("option",{value:n,children:t},n)}))}))}}),(0,r.jsx)(q,{}),(0,r.jsx)(y.Z,{name:"entry_level",render:function(e){var t=e.field;return(0,r.jsx)(Z.Z,(0,v.Z)((0,m.Z)({placeholder:"Entry Level",variant:"light"},t),{children:T.map((function(e){var t=e.label,n=e.value;return(0,r.jsx)("option",{value:n,children:t},n)}))}))}}),(0,r.jsx)(y.Z,{name:"title",render:function(e){var t=e.field;return(0,r.jsx)(j.Z,(0,m.Z)({placeholder:"Title",variant:"light"},t))}}),(0,r.jsx)(y.Z,{name:"description",render:function(e){var t=e.field;return(0,r.jsx)(w.Z,(0,m.Z)({placeholder:"Description",variant:"light",bg:"base.1",rows:5},t))}}),(0,r.jsx)(y.Z,{name:"contest",render:function(e){var t=e.field;return(0,r.jsx)(j.Z,(0,m.Z)({placeholder:"Contest",variant:"light"},O,t))}}),(0,r.jsx)(y.Z,{name:"year",render:function(e){var t=e.field;return(0,r.jsx)(j.Z,(0,m.Z)({placeholder:"Year",variant:"light"},O,t))}}),(0,r.jsx)(y.Z,{name:"categories",render:function(e){var t=e.field,n=e.helpers;return(0,r.jsx)(C.Z,(0,v.Z)((0,m.Z)({},t),{isMulti:!0,placeholder:"Categories",value:t.value,onChange:function(e){return n.setValue(e)},options:o}))}}),(0,r.jsx)(y.Z,{name:"tags",render:function(e){var t=e.field,n=e.helpers;return(0,r.jsx)(b.Z,(0,v.Z)((0,m.Z)({},t),{value:t.value,onChange:function(e){return n.setValue(e)}}))}}),(0,r.jsx)(y.Z,{name:"id",render:function(e){var t=e.field;return(0,r.jsx)(j.Z,(0,m.Z)({placeholder:"Entry ID",variant:"light"},O,t))}}),(0,r.jsx)(g.Z,{className:"entry-edit-submit",display:"none",type:"submit",children:"Submit"})]})})})})})),V=n(27427),F=n(27548),W=n(8946),B=n(897),K=n(31651),U=n(82857),H=n(4822),X=n(42250),G=n.n(X),J=n(13756),Y=n(86584),$=n(75761),Q=n(63778),ee=n(90319),te=function(e){var t,n=e.user;return(0,r.jsxs)(p.kC,{align:"center",justify:"space-between",flex:"1",children:[(0,r.jsxs)(p.kC,{align:"center",children:[(0,r.jsx)(Q.Z,{boxSize:"34px",name:n.name,src:(0,ee.Jn)(null===(t=n.profile_image)||void 0===t?void 0:t.sizes.small.url)}),(0,r.jsx)(p.xv,{ml:"10px",variant:"overline",children:n.name})]}),(0,r.jsxs)(p.kC,{children:[(0,r.jsx)($.Z,{user:n}),(0,r.jsx)(Y.hU,{as:"a",size:"sm","aria-label":"Manage Artist",icon:(0,r.jsx)(f.Z,{icon:"linkarrowicon",fill:"base_2.2"}
1),href:"".concat(S.yw.EDIT_ARTIST,"/").concat(n.id,"/"),target:"_blank"})]})]})},ne=n(35588),re=n(31039);var ie=(0,o.Pi)((function(){var e=l.u.awardAssetId,t=l.u.certificateData,n=l.u.badgesData,o=l.u.entry,s=l.u.openAward,c=!!e;return o?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(i.u_,{isOpen:c,onClose:function(){return(0,a.z)((function(){return l.u.awardAssetId=null}))},isCentered:!0,children:[(0,r.jsx)(i.ZA,{}),(0,r.jsxs)(i.hz,{children:[(0,r.jsx)(i.xB,{borderBottom:"1px solid",borderBottomColor:"support2.2",p:"15px 20px",children:(0,r.jsxs)(p.kC,{justify:"space-between",children:[(0,r.jsx)("span",{children:"Award Assets"}),(0,r.jsx)(i.ol,{position:"relative",top:"auto",right:"auto"})]})}),(0,r.jsx)(i.fe,{p:"20px",children:(0,r.jsxs)(p.kC,{direction:"column",children:[(0,r.jsxs)(p.kC,{direction:"column",children:[(0,r.jsxs)(p.xv,{children:["Entry: ",o.title]}),(0,r.jsxs)(p.xv,{children:["Award: ",null===s||void 0===s?void 0:s.award_config.name]})]}),(0,r.jsxs)(p.Ug,{mt:"60px",mb:"0",children:[(0,r.jsx)(W.Z,{getData:function(){return t},fileName:"".concat(G()(H.tV),"-Awards-Certificate"),file:function(e){return e?(0,r.jsx)(ne.Z,{data:e}):(0,r.jsx)(r.Fragment,{})},flexProps:{mr:"10px"},children:"Download Certificate"}),n?(0,r.jsx)(re.Z,{entry:(0,v.Z)((0,m.Z)({},n.entry),{shopify_award_hash:null,contest:{id:n.contest.id,name:n.contest.name}}),contest:n.contest}):null]})]})})]})]})}):null})),ae=n(57531),oe=function(e){var t=e.label,n=e.subtitle,i=e.textColor,a=e.items,o=e.bgSetter;return(0,r.jsx)(se,{label:t,subtitle:n,children:a.length?(0,r.jsx)(p.kC,{flexFlow:"row wrap",mb:"-5px",children:a.map((function(e){return(0,r.jsx)(p.kC,{mr:"5px",mb:"5px",direction:"row",children:(0,r.jsx)(U.Z,{variant:"light",label:e.tooltip,placement:"left",children:(0,r.jsx)(F.Z,{as:"span",bg:o&&o(e)?o(e):e.color||"support2.2",label:e.name,color:i,onClick:e.onClick||void 0,cursor:e.onClick?"pointer":void 0})})},e.id)}))}):(0,r.jsxs)(p.xv,{variant:"overline",color:"base_2.2",children:["No ",t]})})},se=function(e){var t=e.label,n=e.subtitle,i=e.align,a=void 0===i?"center":i,o=e.font,s=void 0===o?"numeralsXS":o,l=e.link,c=e.newTab,u=(0,V.Z)(e,["label","subtitle","align","font","link","newTab"]);return(0,r.jsxs)(p.kC,{align:a,p:"10px 0",borderBottom:"1px solid",borderBottomColor:"base.2",_last:{borderBottom:"none"},children:[(0,r.jsxs)(p.kC,{minH:"23px",align:"center",direction:"column",children:[(0,r.jsx)(p.xv,{w:"85px",mr:"20px",variant:"overline",children:t}),n?(0,r.jsx)(p.xv,{w:"85px",mr:"20px",variant:"overline",color:"base_2.1",children:n}):null]}),u.children?(0,r.jsx)(p.kC,{flex:"1",children:u.children}):l?(0,r.jsx)("a",{href:l,target:c?"_blank":"_self",rel:"noreferrer noopener",children:(0,r.jsx)(p.xv,{_hover:{textDecoration:"underline"},variant:s,children:u.text})}):(0,r.jsx)(p.xv,{variant:s,children:u.text})]})},le=(0,o.Pi)((function(){var e=l.u.entry,t=(0,s.useMemo)((function(){var t={},n=e.user.social.find((function(e){return e.type===K.A.WEBSITE}));n&&(t.website=n.url);var r=e.user.social.find((function(e){return e.type===K.A.INSTAGRAM}));return r&&(t.instagram=r.url),t}),[e]),n=t.website,i=t.instagram,o=(0,s.useMemo)((function(){return(0,J.h)(e.status)}),[e.status]),u=(0,s.useMemo)((function(){return e.awards.map((function(e,t){var n=e.award_config,i=e.overall,o=e.category,s=e.id;return{name:i?(0,r.jsxs)(p.kC,{align:"center",children:[(0,r.jsx)(f.Z,{icon:"star",fill:"accent1.2",size:12}),(0,r.jsx)(p.xv,{as:"span",ml:"5px",children:n.name})]}):n.name,color:n.color,id:t,tooltip:i?void 0:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("b",{children:"Category:"})," ",o.name]}),onClick:function(){(0,a.z)((function(){return l.u.awardAssetId=s}))}}}))}),[e]),x=(0,s.useMemo)((function(){return e.categories.map((function(t,n){return{name:e.nominee_categories.includes(t.id)?(0,r.jsxs)(p.kC,{align:"center",children:[(0,r.jsx)(f.Z,{icon:"star",fill:"accent1.2",size:12}),(0,r.jsx)(p.xv,{as:"span",ml:"5px",children:t.name})]}):(0,r.jsx)(p.xv,{as:"span",children:t.name}),id:n}}))}),[e]),v=(0,s.useMemo)((function(){return e.awards.filter((function(e){return"nominees"!==e.award})).some((function(e){return e.award_config.press_release}))}),[e.awards]);return(0,r.jsxs)(p.kC,{position:"sticky",top:"20px",direction:"column",flex:"1",minH:"100%",w:{base:"100%",md:"auto"},children:[(0,r.jsx)(se,{label:"Title",text:e.title}),(0,r.jsx)(se,{label:"Description",align:"flex-start",text:e.description,font:"description"}),(0,r.jsx)(oe,{label:"Awards",items:u}),e.awards.length>0&&v?(0,r.jsx)(se,{label:"Press Release",children:(0,r.jsx)(W.Z,{variant:"base.6.fill",size:"xs",fileName:"".concat(G()(H.RS),'-"-Press-Release"'),file:function(e){return e?(0,r.jsx)(B.Z,{contest:e}):(0,r.jsx)(r.Fragment,{})},getData:(0,c.Z)(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,(0,h.ZP)({path:"/api/artist/press-release/".concat(e.contest.slug,"?artist=").concat(e.user.id)});case 3:if(t.t1=n=t.sent,t.t0=null===t.t1,t.t0){t.next=7;break}t.t0=void 0===n;case 7:if(!t.t0){t.next=11;break}t.t2=void 0,t.next=12;break;case 11:t.t2=n.data;case 12:return t.abrupt("return",t.t2);case 13:case"end":return t.stop()}}),t)})))})}):null,(0,r.jsx)(se,{label:"Entry Level",text:(0,I.k4)(e.entry_level),font:"description"}),(0,r.jsx)(se,{label:"Entry Type",text:(0,I.B_)(e.entry_type),font:"description"}),(0,r.jsx)(se,{label:"Status",children:(0,r.jsx)(F.Z,(0,m.Z)({},o))}),(0,r.jsx)(se,{label:"Contest",text:e.contest.name}),(0,r.jsx)(se,{label:"Current Contest Spend",children:(0,r.jsx)(ae.Z,{textVariant:"numeralsXS",variant:"midtone",data:e.current_contest_spend})}),(0,r.jsx)(se,{label:"Year",children:(0,r.jsx)(p.xu,{p:"4px 8px",border:"1px solid",borderRadius:"2px",children:(0,r.jsx)(p.xv,{variant:"fieldsDescription",children:e.contest.year})})}),(0,r.jsx)(oe,{label:"Categories",subtitle:"Star represents nomination.",items:x,textColor:"base.1"}),(0,r.jsx)(oe,{label:"Tags",items:e.tags,textColor:"base.1"}),(0,r.jsx)(se,{label:"Entry ID",text:e.id}),(0,r.jsx)(se,{label:"Artist",children:(0,r.jsx)(te,{user:e.user})}),n&&(0,r.jsx)(se,{label:"Website",newTab:!0,link:n.startsWith("http")?n:"https://".concat(n),text:n.startsWith("http")?n:"https://".concat(n),font:"fieldsDescription"}),i&&(0,r.jsx)(se,{label:"Instagram",link:"https://instagram.com/".concat(i.replace("@","")),newTab:!0,text:i,font:"fieldsDescription"}),(0,r.jsx)(se,{label:"Email",link:"mailto:".concat(e.user.email),text:e.user.email,font:"fieldsDescription"}),(0,r.jsx)(se,{label:"Bio",text:e.user.about_user,font:"fieldsDescription"}),(0,r.jsx)(ie,{})]})})),ce=n(51578),ue=n(26571),de=n(79137),pe=n(42483),fe=n(2746),xe=n(42003),he=n(39266),me=n(65034),ve=n(5731),ge=function(e){var t=e.image,n=e.index,i=e.openPicker,a=e.onRemove,o=e.isLoading,s=void 0!==o&&o,c=t,u=(0,ue.nB)({id:"".concat(c.id),data:c}
1),d=u.attributes,h=u.listeners,g=u.isDragging,b=u.setNodeRef,y=u.transform,j=u.transition,C=u.active,Z={transformOrigin:me.ux.Transform.toString(y),transition:j};0!==u.index&&1!==u.index||(Z.transformOrigin="top left"),u.isSorting||(Z.transition="none");var w=(0,m.Z)({transform:me.ux.Transform.toString(y),opacity:+!g},Z),k=l.u.entry,I=l.u.isEditMode,S=l.u.editableImages,E=(null===k||void 0===k?void 0:k.entry_type)===_.UZ.SERIES,R=I&&E?(0,m.Z)({},d,h):{},P=[{label:"Confirm",onClick:function(){return a&&a(n)}},{label:"Cancel"}];return(0,r.jsxs)(p.kC,{position:"relative",w:"100%",ref:b,style:w,role:"group",children:[s&&(0,r.jsx)(p.kC,(0,v.Z)((0,m.Z)({},he.PE),{_before:he.cg,zIndex:999,align:"center",justify:"center",children:(0,r.jsx)(x.Z,{})})),(0,r.jsx)(p.kC,{position:"absolute",justifyContent:"center",alignItems:"center",bottom:0,left:0,bg:"base.1",p:"6px 10px",zIndex:2,transition:"opacity 0.25s ease-in-out",opacity:E&&I&&!C?1:0,userSelect:"none",pointerEvents:"none",children:(0,r.jsx)(p.xv,{variant:"numeralsTiny",children:n+1})}),I&&(0,r.jsx)(p.xu,{position:"absolute",top:"10px",left:"10px",cursor:"pointer",zIndex:2,onClick:i,opacity:"0",_groupHover:{opacity:1},children:(0,r.jsx)(f.Z,{icon:"editicon",fill:"base.6",size:24})}),E&&S.length>1?(0,r.jsx)(p.xu,{position:"absolute",top:"10px",right:"10px",zIndex:2,opacity:"0",_groupHover:{opacity:1},children:(0,r.jsx)(ve.Z,{buttons:P,title:"Remove Image",body:"Are you sure you want to delete this photo?",trigger:function(e){var t=e.setOpen;return(0,r.jsx)(p.xu,{cursor:"pointer",zIndex:3,onClick:function(){return t(!0)},children:(0,r.jsx)(f.Z,{icon:"trashicon",fill:"base.6",size:24})})}})}):null,(0,r.jsx)(p.kC,(0,v.Z)((0,m.Z)({},R),{children:(0,r.jsx)(de.d,{image:c})})),I&&(0,r.jsx)(p.kC,(0,v.Z)((0,m.Z)({justify:"space-between",transition:"opacity 0.25s ease-in-out",pointerEvents:"none",position:"absolute",zIndex:1,opacity:"0",_groupHover:{opacity:1}},he.PE),{_before:(0,v.Z)((0,m.Z)({},he.PE),{content:'""',background:"linear-gradient(180deg, rgba(43, 43, 44, 0.4) 0%, rgba(43, 43, 44, 0.2) 60.3%, rgba(43, 43, 44, 0.8) 100%)"})}))]})},be=(0,o.Pi)((function(e){var t=e.image,n=e.onAdd,i=e.onRemove,a=e.index,o=(0,s.useState)(!1),l=o[0],u=o[1],h=(0,E.Z)(),g=(0,s.useCallback)(function(){var e=(0,c.Z)(d().mark((function e(r){var i,o,s,l,c,p;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(0,fe.Z)(r,1),(o=i[0])&&n){e.next=3;break}return e.abrupt("return");case 3:return u(!0),e.prev=4,e.next=7,(0,ee.Ix)(o,{},!0);case 7:s=e.sent,t?n(s,a):n(s),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(4),p=e.t0,h.error({title:(null===p||void 0===p||null===(l=p.response)||void 0===l||null===(c=l.data)||void 0===c?void 0:c.detail)||"Something went wrong while uploading the image. Please try again."});case 16:u(!1);case 17:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(t){return e.apply(this,arguments)}}(),[n,t,a,h]),b=(0,xe.uI)({onDrop:g,onDropRejected:function(e){var t,n,r=null===e||void 0===e||null===(t=e[0])||void 0===t||null===(n=t.errors)||void 0===n?void 0:n[0];r&&h({position:"bottom-right",title:"file-too-large"===r.code?"File size should be less than ".concat(ee.RU,"MB"):r.message,status:"error"})},accept:ee.KL.join(", "),maxSize:ee.oM}),y=b.getInputProps,j=b.open,C=b.getRootProps;return(0,r.jsxs)(r.Fragment,{children:[t?(0,r.jsx)(ge,{onRemove:i,index:a,image:t,openPicker:j,isLoading:l}):(0,r.jsx)(p.kC,(0,v.Z)((0,m.Z)({border:"1px solid",borderColor:"base_2.2",borderRadius:"2px",cursor:"pointer",align:"center",justify:"center",style:{aspectRatio:"1"},onClick:j},C()),{children:l?(0,r.jsx)(x.Z,{size:"20px"}):(0,r.jsx)(f.Z,{icon:"plusicon",fill:"base_2.2",size:24})})),(0,r.jsx)("input",(0,m.Z)({},y()))]})})),ye="10px",je=(0,o.Pi)((function(){var e,t=l.u.images,n=null===(e=l.u.entry)||void 0===e?void 0:e.entry_type,i=(0,s.useCallback)((function(e,t){var n={title:null,item:e};(0,a.z)((function(){var e;void 0!==t?l.u.editableImages[t]=n:null===(e=l.u.editableImages)||void 0===e||e.push(n)}))}),[]),o=(0,s.useCallback)((function(e){l.u.editableImages.length<=1||(0,a.z)((function(){var t;l.u.editableImages=null===(t=l.u.editableImages)||void 0===t?void 0:t.filter((function(t,n){return n!==e}))}))}),[]);
1return(0,r.jsx)(p.kC,{maxW:"340px",flexShrink:0,position:"relative",children:(0,r.jsxs)(p.kC,{direction:"column",children:[t.length>0&&(0,r.jsx)(be,{image:t[0].item,index:0,onAdd:i,onRemove:function(){return o(0)}}),n===_.UZ.SERIES&&(0,r.jsxs)(pe.Z,{columnsCount:2,gutter:ye,style:{container:{paddingTop:ye}},children:[t.slice(1).map((function(e,t){return(0,r.jsx)(be,{image:e.item,onAdd:i,index:t+1,onRemove:function(){return o(t+1)}},"images--".concat(t))})),t.length<9&&l.u.isEditMode&&(0,r.jsx)(be,{image:null,onAdd:i,onRemove:function(){},index:0})]})]})})})),Ce=(0,o.Pi)((function(){var e=l.u.images,t=l.u.isEditMode,n=(0,s.useState)(null),i=n[0],a=n[1],o=(0,ce.Dy)((0,ce.VT)(ce.MA),(0,ce.VT)(ce.LO)),c=e.findIndex((function(e){var t=e.item;return(null===t||void 0===t?void 0:t.id)===i})),u=e[c];return t?(0,r.jsx)(ce.LB,{sensors:o,collisionDetection:ce.pE,onDragStart:function(e){a(+e.active.id)},onDragEnd:function(t){var n=t.active,r=t.over;if((null===r||void 0===r?void 0:r.id)&&n.id!==r.id){var i=e.findIndex((function(e){return e.item.id===+n.id})),o=e.findIndex((function(e){return e.item.id===+r.id}));l.u.sortImages(i,o)}a(null)},onDragCancel:function(){a(null)},children:(0,r.jsxs)(ue.Fo,{items:e.map((function(e){return e.item.id.toString()})),strategy:ue.U2,children:[(0,r.jsx)(je,{}),(0,r.jsx)(ce.y9,{adjustScale:!0,modifiers:[function(t){var n,r,a=t.transform,o=window.innerWidth>935?window.innerWidth-935:0,s=null===(n=e[0])||void 0===n?void 0:n.item.id,l="".concat(s)===(null===(r=t.over)||void 0===r?void 0:r.id)||i===s;return(0,v.Z)((0,m.Z)({},a),{x:a.x-o,scaleX:l?a.scaleX:1,scaleY:l?a.scaleX:1})}],style:{cursor:"grabbing"},children:i?(0,r.jsx)(de.d,{image:u.item}):null})]})}):(0,r.jsx)(je,{})})),Ze=(0,o.Pi)((function(e){var t=e.tableRef,n=(0,s.useState)(!0),i=n[0],o=n[1],u=(0,s.useState)(!1),m=u[0],v=u[1],g=(0,s.useCallback)((0,c.Z)(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.ZP)({path:"/api/admin/manage/entry/".concat(l.u.entryId,"/")});case 2:t=e.sent,o(!1),200===t.status?(0,a.z)((function(){l.u.entry=t.data})):v(!0);case 5:case"end":return e.stop()}}),e)}))),[]);return(0,s.useEffect)((function(){return g(),function(){l.u.reset()}}),[g]),m||i||!l.u.entry?(0,r.jsx)(p.kC,{p:"40px 0",flex:"1",direction:"column",align:"center",justify:"center",minH:"100%",children:i?(0,r.jsx)(x.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.Z,{icon:"erroricon",fill:"system.error",size:75}),(0,r.jsx)(p.xv,{mt:"20px",variant:"numeralsS",children:"Something went wrong."})]})}):(0,r.jsxs)(p.Kq,{direction:{base:"column",md:"row"},flex:"1",minH:"100%",spacing:"40px",alignItems:"flex-start",p:"40px 0",children:[(0,r.jsx)(Ce,{}),l.u.isEditMode?(0,r.jsx)(M,{tableRef:t}):(0,r.jsx)(le,{})]})})),we=n(44182),ke=(0,o.Pi)((function(e){var t=e.tableRef,n=l.u.entryId,o=(0,s.useCallback)((function(){(0,a.z)((function(){l.u.entryId=null}))}),[]);return(0,r.jsxs)(i.dy,{isOpen:!!n,placement:"right",onClose:o,children:[(0,r.jsx)(i.P1,{}),(0,r.jsx)(i.sc,{maxW:"935px",bg:"base.1",color:"base.6",children:!!n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.OX,{p:N,children:(0,r.jsx)(we.Z,{onClose:o})}),(0,r.jsx)(i.Ng,{p:N,children:(0,r.jsx)(Ze,{tableRef:t})})]})})]})}))},44182:function(e,t,n){n.d(t,{E:function(){return O},Z:function(){return A}});var r=n(43692),i=n(84911),a=n(44453),o=n.n(a),s=n(8014),l=n(590),c=n(72263),u=n(34237),d=n(40137),p=n(11957),f=n(31651),x=n(4822),h=n(21350),m=n(85085),v=n(56168),g=n(76318),b=n(55310),y=n(71246),j=n(8403),C=n(49823),Z=n(77934),w=n(5447),k=n(99728),_=n(27427),I=n(63940),S=n(14131),E=function(e){var t=e.children,n=e.async,i=e.onClick,a=e.leftIcon,l=e.loading,c=(0,_.Z)(e,["children","async","onClick","leftIcon","loading"]),d=(0,v.useState)(!1),p=d[0],f=d[1],x="boolean"===typeof l?l:p,h=function(){var e=(0,r.Z)(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&f(!0),!i){e.next=4;break}return e.next=4,i(t);case 4:n&&f(!1);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,s.jsx)(S.Z,(0,k.Z)((0,w.Z)({variant:"flat",size:"sm",onClick:h,leftIcon:x?(0,s.jsx)(I.Z,{size:"20px"}):a,isDisabled:x},c),{children:(0,s.jsx)(u.xv,{variant:"ctaSecondary",children:t})}))},R=n(58971),P=n(65265),D=n(74105),T=n(80174),z=function(e){var t=e.entry,n=e.open,r=e.setOpen,i=(0,v.useState)(!1),a=i[0],o=i[1];return t?(0,s.jsx)(c.aR,{isOpen:n,leastDestructiveRef:void 0,onClose:function(){return r(!1)},isCentered:!0,scrollBehavior:"inside",children:(0,s.jsx)(c.dh,{children:(0,s.jsxs)(c._T,{maxW:"100vw",h:"100vh",maxH:"100vh",borderRadius:"0",bg:"base.1",children:[(0,s.jsx)(c.fY,{px:"30px",borderBottom:"1px solid",borderColor:"support2.1",children:(0,s.jsxs)(u.kC,{align:"center",gap:"20px",children:[(0,s.jsx)(u.xv,{color:"base.6",children:t.title}),(0,s.jsx)(D.Z,{handleCaptionHover:function(e){return o(e)}}
1),(0,s.jsx)(c.lq,{color:"base.6",top:"auto",right:"auto",fontSize:"18px",ml:"auto",position:"relative"})]})}),(0,s.jsx)(c.iP,{p:"0",children:(0,s.jsxs)(u.kC,{p:"30px",h:"100%",flex:1,position:"relative",direction:"column",children:[(0,s.jsx)(R.Z,{entry:t,counterContainerProps:{_before:{opacity:1,transition:"opacity 0.1s linear"}}}),(0,s.jsx)(P.Z,{title:t.title,description:t.description,showCaption:a})]})})]})})}):null},O=function(e){var t=e.entry,n=e.small,r=(0,v.useState)(!1),i=r[0],a=r[1];return(0,s.jsxs)(s.Fragment,{children:[n?(0,s.jsx)(u.kC,{p:"10px",bg:"base.1",zIndex:2,children:(0,s.jsx)(d.Z,{cursor:"pointer",icon:"expand",size:"18px",onClick:function(){return a(!0)}})}):(0,s.jsx)(E,{leftIcon:(0,s.jsx)(d.Z,{fill:"base.6",size:20,icon:"bigcameraicon"}),onClick:function(){return a(!0)},children:"Fullscreen"}),(0,s.jsx)(z,{entry:t,open:i,setOpen:a})]})},A=(0,m.Pi)((function(e){var t=e.onClose,n=g.u.entry,a=(0,y.Z)().isMobile,c=(0,j.Z)({position:"bottom-right"}),m=(0,v.useCallback)((function(){g.u.setMode(g.j.EDIT),(0,h.z)((function(){var e;g.u.editableImages=(null===(e=g.u.entry)||void 0===e?void 0:e.images.slice())||[]}))}),[]),w=(0,v.useCallback)((0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:document.querySelector(".entry-edit-submit").click();case 2:case"end":return e.stop()}}),e)}))),[]),k=(0,v.useCallback)((0,r.Z)(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.ZP)({path:"/api/admin/manage/entry/".concat(g.u.entryId,"/"),method:"PATCH",body:{status:b.K1.REJECTED},returnErrors:!0});case 2:200===(t=e.sent).status&&(c({title:"Entry Rejected!",status:"success"}),(0,h.z)((function(){return g.u.entry=t.data})));case 4:case"end":return e.stop()}}),e)}))),[c]);return(0,s.jsxs)(u.kC,{p:"20px 0",borderBottom:"1px solid",borderBottomColor:"base.2",flex:"1",justify:"space-between",children:[(0,s.jsx)(u.xv,{variant:"numeralsS",children:"Entry Info"}),(0,s.jsx)(u.Kq,{direction:"row",spacing:{base:"20px",md:"40px"},align:"center",children:g.u.isEditMode?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E,{leftIcon:(0,s.jsx)(l.PO,{width:"20px",height:"20px"}),onClick:function(){g.u.setMode(g.j.VIEW),(0,h.z)((function(){return g.u.editableImages=[]}))},children:"Cancel"}),(0,s.jsx)(E,{leftIcon:(0,s.jsx)(d.Z,{icon:"checkboxicon",fill:"base.6",size:20}),disabled:(null===n||void 0===n?void 0:n.entry_type)===T.UZ.SERIES&&g.u.editableImages.length<2,onClick:w,loading:g.u.formLoading,children:"Save"})]}):(0,s.jsxs)(s.Fragment,{children:[n?(0,s.jsx)(O,{entry:n}):null,n&&!a?(0,s.jsx)(p.Z,{id:n.id,onDownload:function(){if(n){var e=n.user.social.find((function(e){return e.type===f.A.INSTAGRAM})),t=e?(0,Z.P)(e.url):n.user.name,r=["\ud83d\udcf8 ".concat(t," | \u201c").concat(n.title,"\u201d"),""].concat((0,i.Z)(n.description?["\u201c".concat(n.description,"\u201d"),""]:[]),["Image \xa9 ".concat(n.user.name),"","The ".concat(x.RS," honor the most exceptional and exciting photographers working today. ").concat(x.px)]).join("\n");navigator.clipboard.writeText(r),c({title:"Caption copied!",status:"success"})}}}):null,!a&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E,{leftIcon:(0,s.jsx)(d.Z,{icon:"editicon",size:20,fill:"base.6"}),onClick:m,children:"Edit"}),(0,s.jsx)(E,{leftIcon:(0,s.jsx)(d.Z,{icon:"rejecticon",size:20}),onClick:k,async:!0,children:"Reject"})]}),(0,s.jsx)(u.xu,{cursor:"pointer",onClick:t,children:(0,s.jsx)(d.Z,{icon:"slideicon",fill:"base.6",width:"20"})})]})})]})}))},58971:function(e,t,n){var r=n(5447),i=n(99728),a=n(27427),o=n(8014),s=n(34237),l=n(56168),c=n(59779),u=n(45073);t.Z=function(e){var t=e.entry,n=e.thumbProps,d=void 0===n?{}:n,p=e.textColor,f=void 0===p?"base.6":p,x=e.thumbSize,h=void 0===x?"40px":x,m=e.thumbBorder,v=void 0===m?"base.6":m,g=e.fontSize,b=e.imageSize,y=void 0===b?"large":b,j=e.counterContainerProps,C=e.lazyLoad,Z=void 0!==C&&C,w=e.lazyRoot,k=(0,a.Z)(e,["entry","thumbProps","textColor","thumbSize","thumbBorder","fontSize","imageSize","counterContainerProps","lazyLoad","lazyRoot"]),_=(0,l.useState)(null),I=_[0],S=_[1],E=(0,l.useState)(null),R=E[0],P=E[1];return(0,o.jsxs)(s.kC,(0,i.Z)((0,r.Z)({h:"100%",direction:"column"},k),{children:[(0,o.jsx)(c.Z,{entry:t,lazyRoot:w,lazyLoad:Z,swiperProps:{onSwiper:S,controller:{control:R}},imageSize:y}),(0,o.jsx)(u.Z,{images:t.images,w:"100%",textColor:f,thumbSize:h,fontSize:g,thumbBorder:v,counterContainerProps:j,lazyRoot:w,swiperProps:(0,r.Z)({onSwiper:P,controller:{control:I}},d)})]}))}},79137:function(e,t,n){n.d(t,{d:function(){return p},Z:function(){return f}});var r=n(8014),i=n(34237),a=n(85085),o=n(77567),s=n(90319),l=n(39566),c=function(e){var t=e.images;return(0,r.jsx)(i.xu,{as:l.t,w:"100%",h:"225px",initialSlide:0,slidesPerView:"auto",overflow:"visible",spaceBetween:10,children:t.map((function(e,t){var n=e.sizes.medium;return(0,r.jsx)(l.o,{style:{width:"auto"},children:(0,r.jsx)(i.xu,{position:"relative",h:"100%",w:"auto",css:"\n span,\n img {\n height: 100% !important;\n width: auto !important;\n }\n ",children:(0,r.jsx)(o.Z,{alt:e.name,src:(0,s.Jn)(n.url),width:n.width,height:n.height,layout:"intrinsic"})})},t)}))})}
1,u=n(71246),d="10px",p=function(e){var t=e.image,n=t.id,i=t.sizes.medium,a=i.url,l=i.width,c=i.height;return(0,r.jsx)(o.Z,{src:(0,s.Jn)(a),width:l,height:c,layout:"intrinsic",alt:"media--".concat(n)})},f=(0,a.Pi)((function(e){var t=e.item,n=(0,u.Z)().isMobile;return(0,r.jsxs)(i.kC,{direction:"column",children:[n&&1!==t.media.length?(0,r.jsx)(c,{images:t.media}):(0,r.jsx)(i.kC,{maxW:{base:"400px",md:"60vw",lg:"none"},children:(0,r.jsx)(p,{image:t.media[0]})}),t.media.length>1?n?null:(0,r.jsx)(i.xu,{sx:{columnCount:[1,2],gap:d},pt:d,children:t.media.slice(1).map((function(e,t){return(0,r.jsx)(i.kC,{mb:d,children:(0,r.jsx)(p,{image:e})},"media--".concat(t))}))}):null]})}))},24520:function(e,t,n){var r=n(43692),i=n(5447),a=n(99728),o=n(27427),s=n(84911),l=n(44453),c=n.n(l),u=n(8014),d=n(98421),p=n(56168),f=n(49823),x=n(37824);t.Z=function(e){var t=e.value,n=e.onChange,l=(0,o.Z)(e,["value","onChange"]),h=(0,p.useState)([]),m=h[0],v=h[1],g=(0,p.useState)(!1),b=g[0],y=g[1],j=(0,p.useCallback)((0,r.Z)(c().mark((function e(){var t,n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(!0),e.next=3,(0,f.ZP)({path:"/api/entry-tags/"});case 3:t=e.sent,(n=t.data)&&n.length&&v(n.map((function(e){return{value:e.id,label:e.name}}))),y(!1);case 7:case"end":return e.stop()}}),e)}))),[]);(0,p.useEffect)((function(){j()}),[j]);var C=function(){var e=(0,r.Z)(c().mark((function e(r){var i,a,o,l;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.ZP)({path:"/api/entry-tags/",method:"POST",body:{name:r}});case 2:i=e.sent,a=i.status,o=i.data,a===d.RS.HTTP_201_CREATED&&o&&(l={value:o.id,label:o.name},v((0,s.Z)(m).concat([l])),n((0,s.Z)(t).concat([l])));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return b?null:(0,u.jsx)(x.Z,(0,a.Z)((0,i.Z)({},l),{isMulti:!0,creatable:!0,onCreate:C,placeholder:"Tags",value:t,onChange:n,options:m,containerProps:{w:"100%"}}))}},5731:function(e,t,n){n.d(t,{V:function(){return v}});var r=n(43692),i=n(5447),a=n(99728),o=n(27427),s=n(44453),l=n.n(s),c=n(8014),u=n(72263),d=n(34237),p=n(23434),f=n(56168),x=n(21607),h=n(14131),m=function(e){return[{label:"Cancel",variant:"base.1.outline"},{label:"Delete",onClick:e,variant:"system.error.outline"}]},v=function(e){var t=e.title,n=void 0===t?"Are you sure?":t,r=e.body,a=void 0===r?"This action cannot be undone.":r,s=e.onDelete,l=(0,o.Z)(e,["title","body","onDelete"]);return(0,c.jsx)(g,(0,i.Z)({title:n,body:a,buttons:m(s)},l))},g=function(e){var t=e.title,n=void 0===t?"Are you sure?":t,s=e.body,m=e.maxW,v=void 0===m?"650px":m,g=e.open,b=e.setOpen,y=e.confirmDefault,j=void 0!==y&&y,C=e.trigger,Z=e.showOnce,w=e.buttons,k=(0,o.Z)(e,["title","body","maxW","open","setOpen","confirmDefault","trigger","showOnce","buttons"]),_=(0,f.useState)(!1),I=_[0],S=_[1],E=(0,f.useRef)(!1),R=(0,f.useState)(!1),P=R[0],D=R[1],T="undefined"!==typeof g?g:P,z="undefined"!==typeof b?b:D;(0,f.useEffect)((function(){return E.current=!0,function(){E.current=!1}}),[]);var O=(0,f.useRef)(null),A=(0,f.useRef)(null),N=(0,f.useCallback)((function(){return S((function(e){return!e}))}),[]);return(0,f.useEffect)((function(){if(Z){var e=x.Z.getDataFromStorage(Z);E.current&&S(!!e)}}),[Z]),(0,c.jsxs)(c.Fragment,{children:[C&&C({setOpen:z}),(0,c.jsx)(u.aR,(0,a.Z)((0,i.Z)({isOpen:T,leastDestructiveRef:j?A:O,onClose:function(){return z(!1)},isCentered:!0},k),{children:(0,c.jsx)(u.dh,{h:"100vh",w:"100vw",children:(0,c.jsxs)(u._T,{maxW:v,m:{base
1:"0 20px",md:"0 30px"},py:{base:"20px",md:"30px"},children:[(0,c.jsx)(u.fY,{fontSize:"lg",fontWeight:"bold",px:{base:"30px",md:"60px"},children:(0,c.jsx)(d.xv,{children:n})}),(0,c.jsx)(u.iP,{py:{base:"10px",md:"20px"},px:{base:"30px",md:"60px"},children:(0,c.jsx)(d.kC,{direction:"column",width:"100%",children:"string"===typeof s?(0,c.jsx)(d.xv,{variant:"description",mb:"10px",children:s}):s})}),w&&(0,c.jsx)(u.xo,{px:{base:"30px",md:"60px"},children:(0,c.jsxs)(d.kC,{direction:"column",w:"100%",children:[Z?(0,c.jsx)(p.XZ,{mb:"20px",isChecked:I,onChange:N,w:{base:"100%",md:"auto"},saturate:"sm",children:(0,c.jsx)(d.xv,{variant:"description",children:"Do Not Show This Message Again"})}):null,(0,c.jsx)(d.kC,{gap:"10px",w:"100%",children:w.map((function(e,t){var n=e.label,s=e.onClick,u=(0,o.Z)(e,["label","onClick"]);return(0,c.jsx)(h.Z,(0,a.Z)((0,i.Z)({ref:0===t?A:O,onClick:(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=3;break}return e.next=3,s();case 3:0===t&&Z&&I&&x.Z.saveDataToStorage(Z,!0),z(!1);case 5:case"end":return e.stop()}}),e)}))),variant:0===t?"accent1.3.fill":"base.1.outline",size:"md",minW:"120px"},u),{children:n}),t)}))})]})})]})})}))]})};t.Z=g},10160:function(e,t,n){var r=n(5447),i=n(99728),a=n(27427),o=n(8014),s=n(34237),l=n(79647),c=(0,n(56168).forwardRef)((function(e,t){var n=e.children,c=e.placeholder,u=e.containerProps,d=void 0===u?{}:u,p=(0,a.Z)(e,["children","placeholder","containerProps"]);return(0,o.jsxs)(s.kC,(0,i.Z)((0,r.Z)({position:"relative",direction:"column-reverse",w:"100%"},d),{children:[(0,o.jsx)(l.Ph,(0,i.Z)((0,r.Z)({},p),{ref:t,css:"\n &:placeholder-shown + .placeholder {\n opacity: 0;\n transform: translateY(5px);\n }\n ",children:n})),c&&(0,o.jsx)(s.xv,{variant:"fieldsTitleS",color:"base_2.2",opacity:"1",transform:"translateY(0px)",transition:"opacity .1s linear, transform .1s linear",position:"absolute",top:"0",left:"0",pointerEvents:"none",children:c})]}))}));t.Z=c},53963:function(e,t,n){var r=n(5447),i=n(99728),a=n(27427),o=n(8014),s=n(34237),l=n(30153),c=(0,n(56168).forwardRef)((function(e,t){var n=e.containerProps,c=void 0===n?{}:n,u=e.placeholderProps,d=void 0===u?{}:u,p=(0,a.Z)(e,["containerProps","placeholderProps"]);return(0,o.jsxs)(s.kC,(0,i.Z)((0,r.Z)({position:"relative",direction:"column-reverse"},c),{children:[(0,o.jsx)(l.g,(0,i.Z)((0,r.Z)({},p),{ref:t,css:"\n &:placeholder-shown + .placeholder {\n opacity: 0;\n transform: translateY(5px);\n }\n "})),p.placeholder&&(0,o.jsx)(s.xv,(0,i.Z)((0,r.Z)({w:"100%",bg:p.bg,className:"placeholder",variant:"fieldsTitleS",color:"base_2.2",opacity:"1",transform:"translateY(0px)",transition:"opacity .1s linear, transform .1s linear",position:"absolute",top:"0",left:"0",pointerEvents:"none"},d),{children:p.placeholder}))]}))}));t.Z=c},74105:function(e,t,n){var r=n(5447),i=n(99728),a=n(27427),o=n(8014),s=n(34237),l=n(40137);t.Z=function(e){var t=e.handleCaptionHover,n=e.rtl,c=void 0!==n&&n,u=e.variant,d=void 0===u?"light":u,p=(0,a.Z)(e,["handleCaptionHover","rtl","variant"]),f="light"===d;return(0,o.jsxs)(s.kC,(0,i.Z)((0,r.Z)({onMouseOver:function(){return t(!0)},onMouseOut:function(){return t(!1)},cursor:"pointer",align:"center",direction:c?"row-reverse":"row"},p),{children:[(0,o.jsx)(s.xv,{color:f?"base.4":"base.1",variant:"description",mr:c?"0":"10px",ml:c?"10px":"0",whiteSpace:"nowrap",children:"Show Caption"}),(0,o.jsx)(l.Z,{icon:"captionicon",fill:f?"base.6":"base.4"})]}))}},65265:function(e,t,n){var r=n(5447),i=n(99728),a=n(8014),o=n(34237);t.Z=function(e){var t=e.title,n=e.description,s=e.showCaption,l=e.innerPadding,c=e.overlayProps;return(0,a.jsx)(o.kC,(0,i.Z)((0,r.Z)({position:"absolute",zIndex:9,top:"0",right:"0",bottom:"0",left:"0",align:"center",justify:"center",p:l,visibility:s?"visible":"hidden",opacity:s?"1":"0",backdropFilter:"blur(".concat(s?80:0,"px)"),transition:"0.15s ease-in-out",_before:{content:'""',position:"absolute",zIndex:0,top:"0",right:"0",bottom:"0",left:"0",bg:"linear-gradient(180deg, rgba(43, 43, 44, 0.5) 0%, rgba(43, 43, 44, 0.3) 100%)"}},c),{children:(0,a.jsxs)(o.kC,{direction:"column",textAlign:"center",color:"base.6",zIndex:1,position:"relative",children:[(0,a.jsx)(o.xv,{variant:"titleS",children:t}),n?(0,a.jsx)(o.xv,{maxW:"600px",mt:"20px",children:n}):null]})}))}},76318:function(e,t,n){n.d(t,{j:function(){return r},u:function(){return u}});var r,i=n(62139),a=n(49573),o=n(5447),s=n(99728),l=n(21350),c=n(26571);!function(e){e.VIEW="VIEW",e.EDIT="EDIT"}(r||(r={}));var u=new(function(){function e(){(0,i.Z)(this,e),this.init(),(0,l.rC)(this,{entryId:l.LO,entry:l.LO,editableImages:l.LO,mode:l.LO,formLoading:l.LO,awardAssetId:l.LO,init:l.aD,reset:l.aD,setMode:l.aD,sortImages:l.aD,isEditMode:l.Fl,certificateData:l.Fl,badgesData:l.Fl,openAward:l.Fl})}var t=e.prototype;return t.init=function(){this.reset()},t.reset=function(){this.entryId=null,this.entry=null,this.editableImages=[],this.mode=r.VIEW,this.formLoading=!1,this.awardAssetId=null},t.setMode=function(e){this.mode=e},t.sortImages=function(e,t){this.editableImages=(0,c.Rp)(this.editableImages,e,t)},(0,a.Z)(e,[{key:"isEditMode",get:function(){return this.mode===r.EDIT}},{key:"certificateData",get:function(){var e,t=this.entry,n=this.openAward;
1if(!n||!t)return null;var r=n.award,i=n.overall,a=n.award_config,o=n.category;return{award_config:a,award:r,category_name:i?void 0:o.name,contest_name:t.contest.name,entry_level:t.entry_level,name:(null===(e=t.user)||void 0===e?void 0:e.name)||"",year:t.contest.year,entry_title:t.title}}},{key:"openAward",get:function(){var e=this.entry,t=this.awardAssetId;return((null===e||void 0===e?void 0:e.awards)||[]).find((function(e){return e.id===t}))}},{key:"badgesData",get:function(){var e=this.entry,t=this.openAward;return t&&e?{entry:(0,s.Z)((0,o.Z)({},t),{title:e.title,images:e.images,entry_level:e.entry_level,entry_type:e.entry_type}),contest:e.contest}:null}},{key:"images",get:function(){var e;return this.mode===r.EDIT?this.editableImages:(null===(e=this.entry)||void 0===e?void 0:e.images)||[]}}]),e}())},86853:function(e,t,n){n.d(t,{iI:function(){return c},sK:function(){return l},x:function(){return s}});var r=n(5447),i=n(99728),a=n(90319),o={first_place:1,second_place:2,third_place:3,peoples_choice_winner:4,honorable_mentions:5,nominees:6},s=function(e){return e.map((function(e){return e.awards.map((function(t){return(0,i.Z)((0,r.Z)({},t),{category:e.category})}))})).flat()},l=function(e){return e.slice().sort((function(e,t){return o[e.award]-o[t.award]})).sort((function(e,t){return+t.overall-+e.overall}))},c=function(e){var t=e.image,n=e.avatar,r=e.demo?a.QO:a.Jn;return{image:{url:r(t.sizes.large.url),placeholder:r(t.sizes.small.url)},avatar:{url:r(null===n||void 0===n?void 0:n.sizes.medium.url),placeholder:r(null===n||void 0===n?void 0:n.sizes.small.url)}}}},13756:function(e,t,n){n.d(t,{h:function(){return d},q:function(){return f}});var r,i=n(42299),a=n(86853),o=n(2612),s=n(55310),l=n(90319),c=n(4822),u=(r={},(0,i.Z)(r,s.K1.PENDING,{label:"Incomplete",bg:"system.warning",color:"base.6"}),(0,i.Z)(r,s.K1.REJECTED,{label:"Rejected",bg:"system.error",color:"base.6"}),(0,i.Z)(r,s.K1.APPROVED,{label:"Complete",bg:"system.success",color:"base.6"}),(0,i.Z)(r,s.K1.USER_DELETED,{label:"User Deleted",bg:"midtone1.fill",color:"base.6"}),r),d=function(e){return u[e]||{label:(0,o.capitalize)(e),bg:"base.2",color:"base.6"}},p=function(e,t){var n=t.contest_name,r=t.contest_year,i=t.artist_name,a=t.award_name,o=t.entry_title,s=t.category_name,l=e.replace(/{contest_title}/g,n).replace(/{contest_year}/g,r).replace(/{artist_name}/g,i).replace(/{entry_title}/g,o);return a&&(l=l.replace(/{award_name}/g,a)),s&&(l=l.replace(/{category_name}/g,s)),l},f=function(e,t){var n="".concat(c._O).concat(t),r=e.contest,i={contest_name:r.name,contest_year:"".concat(r.year),artist_name:e.user.name,entry_title:e.title},o=e;if(o.nominee){var s,u=(0,a.sK)((0,a.x)(o.nominee))[0];i.award_name=u.award_config.name,i.category_name=null===(s=u.category)||void 0===s?void 0:s.name}var d,f=e;f.category&&(i.category_name=null===(d=f.category)||void 0===d?void 0:d.name);var x=e.og_data,h=p(x.title,i),m=p(x.description,i),v=e.images[0].item.sizes.medium,g=v.url,b=v.width,y=v.height,j="".concat(c._O,"/_next/image?url=");return{canonical:n,openGraph:{title:h,url:n,description:m,images:[{url:"".concat(j).concat((0,l.Jn)(g)).concat("&w=1200&q=75"),width:b,height:y,alt:e.title}]}}}},77934:function(e,t,n){n.d(t,{P:function(){return y},d:function(){return g}});var r=n(5447),i=n(27427),a=n(2746),o=n(8014),s=n(97716),l=n(44166),c=n(99728),u=n(12048);var d=function(e){var t=e.fill,n=void 0===t?"base.5":t,a=(0,i.Z)(e,["fill"]),s=(0,u.rd)(n);return(0,o.jsxs)("svg",(0,c.Z)((0,r.Z)({width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},a),{children:[(0,o.jsx)("path",{d:"M17.6676 12.9828C17.2898 13.3608 17.2898 13.9739 17.6679 14.3514C17.8569 14.5404 18.1046 14.6349 18.3522 14.6349C18.5998 14.6349 18.8478 14.5404 19.0368 14.3514L20.0526 13.335C21.3084 12.0792 22 10.4112 22 8.63867C22 6.86614 21.3084 5.1982 20.0526 3.94236C17.4634 1.35255 13.2498 1.35255 10.66 3.94236L9.64389 4.95875C9.26612 5.33683 9.26612 5.94994 9.6442 6.32739C10.0223 6.70546 10.6351 6.70546 11.0131 6.32739L12.0289 5.31099C13.8635 3.4767 16.8487 3.4767 18.684 5.31099C19.574 6.20136 20.0642 7.38284 20.0642 8.63868C20.0642 9.89452 19.574 11.076 18.6836 11.9664L17.6676 12.9828ZM3.94189 20.0534C5.2368 21.3483 6.9375 21.9954 8.6382 21.9954C10.3389 21.9954 12.0399 21.3477 13.3348 20.0534L14.3509 19.037C14.7287 18.6589 14.7287 18.0458 14.3506 17.6684C13.9725 17.2903 13.3597 17.2903 12.9817 17.6684L11.9659 18.6848C10.1316 20.519 7.1460
17 20.519 5.31052 18.6848C3.47592 16.8498 3.47592 13.8643 5.31052 12.0294L6.32692 11.013C6.70499 10.6349 6.70499 10.0224 6.32692 9.64436C5.94884 9.26629 5.33636 9.26629 4.95829 9.64436L3.94189 10.6608C1.3527 13.2506 1.3527 17.4636 3.94189 20.0534Z",fill:s}),(0,o.jsx)("path",{d:"M16.1509 7.84409C15.7728 7.46602 15.1597 7.46602 14.7822 7.84409L7.84393 14.783C7.46585 15.1611 7.46585 15.7736 7.84393 16.1517C8.03297 16.3407 8.28061 16.4352 8.52825 16.4352C8.77589 16.4352 9.02384 16.3407 9.21256 16.1517L16.1509 9.21272C16.5289 8.83465 16.5289 8.22217 16.1509 7.84409Z",fill:s})]}))},p=n(10283),f=function(e){var t=e.fill,n=void 0===t?"base.1":t,a=(0,i.Z)(e,["fill"]),s=(0,u.rd)(n),l=n?s:"#4267B2";return(0,o.jsx)("svg",(0,c.Z)((0,r.Z)({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),{children:(0,o.jsx)("path",{d:"M10 20C15.522 20 20 15.522 20 10C20 4.47804 15.522 0 10 0C4.47804 0 0 4.47804 0 10C0 14.1798 2.5657 17.7614 6.20778 19.2556C5.89971 16.8693 6.45357 14.9013 6.99212 12.9878C7.18983 12.2853 7.38547 11.5901 7.53565 10.8842C6.56588 9.32691 7.65545 6.18371 9.70337 6.95952C10.9108 7.41574 10.4608 8.76418 10.0109 10.1121C9.52132 11.5788 9.03197 13.0449 10.6788 13.36C13.9761 13.9932 15.3223 7.90648 13.2801 5.927C10.3195 3.07473 4.67768 5.86425 5.37363 9.9487C5.4592 10.4564 6.29206 11.255 6.29206 11.255C6.29206 11.255 6.25213 11.7399 6.03536 12.6355C4.14146 12.2362 3.34853 10.8158 3.42268 8.92189C3.53678 5.81861 6.3434 3.65089 9.16144 3.34855C12.7211 2.96634 16.0639 4.59214 16.5317 7.78668C17.0508 11.392 14.923 15.2939 11.1124 15.0143C10.3387 14.9588 9.90135 14.6694 9.38989 14.331C9.21877 14.2178 9.03936 14.0991 8.83628 13.9818C8.40687 16.1289 7.88712 18.191 6.40024 19.3323C7.51725 19.7635 8.73106 20 10 20Z",fill:l})}))},x=function(e){var t=e.fill,n=void 0===t?"base.1":t,a=(0,i.Z)(e,["fill"]),s=(0,u.rd)(n),l=n?s:"#4267B2";return(0,o.jsx)("svg",(0,c.Z)((0,r.Z)({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),{children:(0,o.jsx)("path",{d:"M22 5.8C21.2483 6.12609 20.4534 6.34166 19.64 6.44C20.4982 5.92732 21.1413 5.12078 21.45 4.17C20.6436 4.65006 19.7608 4.9883 18.84 5.17C18.2245 4.50257 17.405 4.0583 16.5098 3.90685C15.6147 3.75541 14.6945 3.90536 13.8938 4.33319C13.093 4.76102 12.4569 5.44253 12.0852 6.27084C11.7135 7.09914 11.6273 8.02739 11.84 8.91C10.2094 8.82753 8.61444 8.40295 7.15865 7.66386C5.70287 6.92477 4.41885 5.88769 3.39 4.62C3.02914 5.25017 2.83952 5.96382 2.84 6.69C2.83872 7.36438 3.00422 8.02862 3.32176 8.62356C3.63929 9.21851 4.09902 9.72571 4.66 10.1C4.00798 10.0823 3.36989 9.9073 2.8 9.59V9.64C2.80489 10.5849 3.13599 11.4991 3.73731 12.228C4.33864 12.9568 5.17326 13.4556 6.1 13.64C5.74326 13.7486 5.37288 13.8058 5 13.81C4.74189 13.807 4.48442 13.7836 4.23 13.74C4.49391 14.5528 5.00462 15.2631 5.69107 15.7722C6.37753 16.2812 7.20558 16.5636 8.06 16.58C6.6172 17.7153 4.83588 18.3349 3 18.34C2.66574 18.3411 2.33174 18.3211 2 18.28C3.87443 19.4903 6.05881 20.1327 8.29 20.13C9.82969 20.146 11.3571 19.855 12.7831 19.2741C14.2091 18.6931 15.505 17.8339 16.5952 16.7465C17.6854 15.6591 18.548 14.3654 19.1326 12.9409C19.7172 11.5164 20.012 9.98973 20 8.45C20 8.28 20 8.1 20 7.92C20.7847 7.33481 21.4615 6.61743 22 5.8V5.8Z",fill:l})}))},h=n(4822);function m(e){var t=Object.entries(e).filter((function(e){var t=(0,a.Z)(e,2)[1];return void 0!==t&&null!==t})).map((function(e){var t=(0,a.Z)(e,2),n=t[0],r=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(String(r)))}));return t.length>0?"?".concat(t.join("&")):""}function v(e,t){var n=t.height,a=void 0===n?300:n,o=t.width,s=void 0===o?300:o,l=(0,i.Z)(t,["height","width"]),c=(0,r.Z)({height:a,width:s,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},l);return window.open(e,"",Object.keys(c).map((function(e){return"".concat(e,"=").concat(c[e])})).join(", "))}var g=function(e){var t=e.url,n=e.toast,i=e.emailConfig,a=null;if(i){var c=b(i.type,i.data);c.body&&c.subject&&(a="mailto:".concat(m(c)))}var u=[{label:"Facebook",icon:function(e){return(0,o.jsx)(s.Z,(0,r.Z)({width:"24px",height:"24px"},e))},extraProps:{onClick:function(){return v(function(e,t){return"https://www.facebook.com/sharer/sharer.php"+m({u:e,quote:t.quote,hashtag:t.hashtag})}(t,{}),{})}}},{label:"Twitter",icon:function(e){return(0,o.jsx)(x,(0,r.Z)({width:"24px",height:"24px"},e))},extraProps:{onClick:function(){return v(function(e){return"https://twitter.com/intent/tweet"+m({url:e,hashtags:h.tV})}(t),{})}}},{label:"Pinterest",icon:function(e){return(0,o.jsx)(f,(0,r.Z)({width:"24px",height:"24px"},e))},extraProps:{onClick:function(){return v(function(e){return"http://pinterest.com/pin/create/link/"+m({url:e})}(t),{})}}},{label:"Linkedin",icon:function(e){return(0,o.jsx)(l.Z,(0,r.Z)({width:"24px",height:"24px"},e))},extraProps:{onClick:function(){return v(function(e){return"https://www.linkedin.com/sharing/share-offsite/"+m({url:e})}(t),{})}}},{label:"Mail",icon:function(e){return(0,o.jsx)(p.Z,(0,r.Z)({width:"24px",height:"24px"},e))},extraProps:{href:a||"mailto:?body=".concat(t)}},{label:"Copy Link",icon:function(e){return(0,o.jsx)(d,(0,r.Z)({width:"24px",height:"24px"},e))},extraProps:{onClick:function(){navigator.clipboard.writeText(t),n&&n({title:"Copied to clipboard",status:"success"})}}}];return u},b=function(e,t){var n=t.artist_name,r=t.entry_title,i=t.contest_year,a=t.contest_title,o=t.url,s=t.award_name,l=t.link,c=t.contest_category,u=t.contest_winners_url;return{frontend:{subject:"Voting is Now Open | ".concat(h.RS," People's Vote"),body:"If you have a few minutes, please vote for ".concat(n,"'s \u201c").concat(r,"\u201d entry to win a People's Vote Award at the ").concat(i," ").concat(h.tV," Photo Awards ").concat(a,".\n\n").concat(o)},singleBackendShare:{subject:"Vote for My Work to win the People's Vote Awards \ud83d\udcf7 ".concat(h.RS),body:"I'm proud to share that my work, \u201c".concat(r,"\u201d, was recently nominated to win a People's Vote Award at the ").concat(i," ").concat(h.tV," Photo Awards. I am very excited about this honor.\n \nIt would mean so much to me if you would consider voting for my image(s). It will take less than a minute of your time, and I would be very grateful. Use the link below to quickly vote. \n\n").concat(o)},multipleBackendShare:{subject:"Will You Vote for My Work @ the People's Vote Awards? \ud83d\udcf7 ".concat(h.RS),body:"I'm thrilled to share that my work was recently nominated for the People's Vote Awards as part of the ".concat(i," ").concat(h.tV," Photo Contest. \n\n
1It would mean so much to me if you would take a moment and vote for my entries using the link below \ud83d\ude4f\n\n").concat(o)},awardedEntry:{subject:"Winners of the ".concat(i," ").concat(a," Announced "),body:"I\u2019m thrilled to share that ".concat(n," is among the winners of the ").concat(i," ").concat(a,".\n\nTo view the entire list of exceptional winners from this year\u2019s contest, please use the below link:\n\n").concat(u)},artistDashboardNonNominated:{subject:"".concat(n," Receives Honor at the ").concat(i," ").concat(a," by ").concat(h.RS," "),body:"I\u2019m humbled and thrilled to share that I have received ".concat(s," at the ").concat(h.RS,"\u2019 ").concat(i," ").concat(a,".\n\nIf you\u2019d like, you can view my winning images using the below link:\n").concat(l)},artistDashboardNominated:{subject:"".concat(n," Receives Nomination at the ").concat(i," ").concat(a," by ").concat(h.RS," "),body:"I\u2019m humbled and thrilled to share that my work was nominated in the ".concat(c," category at the ").concat(h.RS,"\u2019 ").concat(i,", ").concat(a,".\n\nIf you\u2019d like, you can view my nominated images using the below link:\n").concat(l)}}[e]},y=function(e){return(e.endsWith("/")?e.slice(0,-1):e).split("/").pop()}},78917:function(e,t,n){n.d(t,{Bf:function(){return d},M$:function(){return c},MJ:function(){return u},UV:function(){return p},dv:function(){return x},gD:function(){return l},hp:function(){return s},vQ:function(){return f},yI:function(){return o}});var r=n(84911),i=n(80174),a=n(60062),o={title:"Entry Type",key:"entry_type",type:a.k.DROPDOWN,options:[{value:i.UZ.SINGLE,label:"Single"},{value:i.UZ.SERIES,label:"Series"}]},s={title:"Entry Title",type:a.k.TEXT,key:"entry_title"}
1,l=[{title:"Year",key:"year[]",type:a.k.CONTEXT_CHOICES,context_key:"contest_years"},{title:"Contest",key:"contest[]",type:a.k.CONTEXT_CHOICES,context_key:"contest_names"}],c=(0,r.Z)(l).concat([{title:"Category",key:"category[]",type:a.k.CATEGORIES}]),u={title:"Entry Level",key:"entry_level",type:a.k.DROPDOWN,options:[{value:i.Kq.PROFESSIONAL,label:"Professional"},{value:i.Kq.NON_PROFESSIONAL,label:"Non-Professional"}]},d={title:"Award Type",key:"award_type[]",type:a.k.CONTEXT_CHOICES,context_key:"contest_awards"},p={title:"Email",key:"email",type:a.k.TEXT},f={title:"User Name",key:"full_name",type:a.k.TEXT},x=[p,f]}}]);
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.