PageSourceSearch

https://refocus-awards.com/_next/static/chunks/6388-e2fe9a6b49fd6710.js

js refocus-awards.com collected 2026-10-02 07:01:15 UTC 118,400 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6388],{82125:function(e,n,t){t.d(n,{f:function(){return r}});var i=t(4822),r={type:"accordion",title:"Can I enter an image generated with AI?",text:["AI-generated images are not accepted into any ".concat(i.tV," contest.")]}},43672:function(e,n,t){var i=t(5447),r=t(99728),s=t(27427),o=t(8014),a=t(53437),l=t(56168),c=t(14131),d=t(40137),u=(0,l.forwardRef)((function(e,n){var t=e.children,l=(0,s.Z)(e,["children"]),u=(0,a.Fg)().colors;return(0,o.jsx)(c.Z,(0,r.Z)((0,i.Z)({ref:n,variant:"flat",rightIcon:(0,o.jsx)(d.Z,{icon:"linkarrowicon"}),css:"\n          path {\n            fill: ".concat(u.base_2[2],";\n            transition: fill 0.2s linear;\n          }\n\n          &:hover {\n            path {\n              fill: ").concat(u.base[1],";\n            }\n          }\n        ")},l),{children:t}))}));n.Z=u},65257:function(e,n,t){t.d(n,{_:function(){return i}});var i=function(e){return e.profile_image&&e.about_user&&e.country&&e.categories.length}},98480:function(e,n,t){var i=t(8014),r=t(34237),s=t(40137);n.Z=function(e){var n=e.credits,t=void 0===n?0:n,o=e.withError,a=void 0!==o&&o;return(0,i.jsxs)(r.xv,{variant:"numeralsTiny",color:a?"system.error":"base.1",userSelect:"none",display:{base:"flex",xl:"inline-block"},align:"center",gap:"4px",children:[(0,i.jsxs)(r.xv,{as:"span",children:["".concat(t.toFixed(2))," "]}),(0,i.jsx)(r.xv,{as:"span",display:{base:"none",xl:"inline-block"},children:"Credit".concat(1===+t?"":"s")}),(0,i.jsx)(s.Z,{as:"span",icon:"creditsIcon",size:"16px",display:{base:"inline-block",xl:"none"}})]})}},9211:function(e,n,t){t.d(n,{Z:function(){return f}});var i=t(5447),r=t(99728),s=t(27427),o=t(8014),a=t(77567),l=t(56168),c=t(71246),d=t(31687),u=t(34237),x=t(39266),p=function(e){var n=e.visible,t=e.children,a=(0,s.Z)(e,["visible","children"]),p=(0,c.Z)().isMobile,f=(0,l.useRef)(null),h=(0,l.useRef)(!1),m=(0,l.useState)(!1),b=m[0],v=m[1],g=function(e){var n=f.current;if(n){var t=15,i=window.innerWidth,r=window.innerHeight,s=n.offsetHeight,o=n.offsetWidth,a=e.clientX+o+t,l=e.clientY+s+t,c=a>i-t?i-o-t:e.clientX+t,d=l>r-t?r-s-t:e.clientY+t;n.style.left=c+"px",n.style.top=d+"px"}};return(0,l.useEffect)((function(){return h.current=!0,function(){h.current=!1}}),[]),(0,l.useEffect)((function(){n?setTimeout((function(){h.current&&v(!0)}),p?0:1e3):v(!1)}),[p,n]),(0,l.useEffect)((function(){return n&&window.addEventListener("mousemove",g),function(){window.removeEventListener("mousemove",g)}}),[n]),n?(0,o.jsx)(d.h_,{children:(0,o.jsx)(u.xu,(0,r.Z)((0,i.Z)({bg:"base.1",color:"base.6",pointerEvents:"none",p:"5px 10px",borderRadius:"4px",ref:f,position:"fixed",zIndex:2020,h:"auto",whiteSpace:"nowrap",opacity:b?1:0,transition:(0,x.eR)("opacity")},a),{children:(0,o.jsx)(u.xv,{variant:"ctaSecondary",children:t})}))}):null},f=function(e){var n=e.caption,t=e.alt,d=(0,s.Z)(e,["caption","alt"]),u=(0,c.Z)().isMobile,x=(0,l.useState)(!1),f=x[0],h=x[1],m=function(){return h(!1)};return(0,l.useEffect)((function(){return f&&u&&window.addEventListener("scroll",m),function(){window.removeEventListener("scroll",m)}}),[u,f]),(0,o.jsxs)(o.Fragment,{children:[n?(0,o.jsx)(p,{visible:f,children:(0,o.jsx)("span",{children:"Credit: ".concat(n)})}):null,(0,o.jsx)(a.Z,(0,r.Z)((0,i.Z)({alt:t},d),{onMouseOver:function(){return h(!0)},onMouseLeave:function(){return h(!1)},onTouchStart:function(){return h((function(e){return!e}))}}))]})}},63940:function(e,n,t){var i=t(56315),r=t(5447),s=t(99728),o=t(8014),a=(t(56168),t(21293)),l=t(34237);n.Z=function(e){var n=(0,i.Z)({},e),t=n.size||"48px";return(0,o.jsx)(l.kC,(0,s.Z)((0,r.Z)({},n),{children:(0,o.jsx)(a.D8,{size:t,isIndeterminate:!0,color:"base.2"})}))}},82148:function(e,n,t){var i=t(5447),r=t(99728),s=t(27427),o=t(8014),a=t(34237);n.Z=function(e){var n=e.normal,t=void 0===n?0:n,l=e.reduced,c=(0,s.Z)(e,["normal","reduced"]),d=null!==l&&"number"===typeof l&&l!==t;return(0,o.jsxs)(a.kC,(0,r.Z)((0,i.Z)({},c),{display:"inline-flex",children:[(0,o.jsxs)(a.xv,{variant:"numeralsTiny",color:"base.1",textDecoration:d?"line-through":"none",userSelect:"none",children:["$",t.toFixed(2)]}
1),d?(0,o.jsxs)(a.xv,{variant:"numeralsTiny",ml:"5px",color:"accent1.2",children:["$",l.toFixed(2)]}):null]}))}},12938:function(e,n,t){var i=t(8014),r=t(34237),s=t(14970),o=t(21350),a=t(85085),l=t(56168),c=t(46388),d=t(55310),u=t(67295),x=t(14131),p=t(8403),f=t(832),h=t(19702),m=(0,a.Pi)((function(){var e=(0,p.Z)(),n=(0,s.u6)(),t=n.isSubmitting,a=n.handleSubmit,h=c.z.entriesLength,m=(0,l.useState)(!1),b=m[0],v=m[1];(0,l.useEffect)((function(){setTimeout((function(){v(!0)}),1500)}),[]);return(0,i.jsxs)(r.kC,{flex:1,align:"center",direction:{base:"column",md:"row"},children:[(0,i.jsxs)(r.kC,{flex:1,align:"center",justify:"space-between",mr:{base:0,md:"40px"},w:{base:"100%",md:"auto"},ml:{base:"0",lg:"-40px"},children:[(0,i.jsxs)(r.xv,{variant:"ctaSecondary",flex:1,display:{base:"block",md:"none",lg:"block"},children:[h," Total ",1===h?"Entry":"Entries"]}),(0,i.jsx)(u.Z,{mr:"0",flex:"initial"})]}),(0,i.jsx)(r.kC,{w:{base:"100%",lg:"auto"},justify:"flex-end",flexDir:{base:"column",md:"row"},mr:"0",children:(0,i.jsxs)(r.kC,{direction:{base:"column",md:"row"},children:[(0,i.jsx)(x.Z,{variant:"base.1.outline",size:"md",onClick:function(){var e=c.z.stepIds.indexOf(d.J7.IMAGES);e>-1&&c.z.setIndex(e)},mr:{base:0,md:"10px"},mt:{base:"12px",md:0},children:"Add to your Submission"}),(0,i.jsx)(x.Z,{variant:"base.1.fill",size:"md",isLoading:t,mt:{base:"12px",md:0},isDisabled:!b||!!(c.z.restCreditsForUse<0&&c.z.isCreditsMode)||!!c.z.couponLoading,onClick:function(){c.z.allEntriesValid?!c.z.isSubMinPayment&&!c.z.isCreditsMode||c.z.termsAccepted?((0,o.z)((function(){c.z.status=d.Pd.PENDING,c.z.isAllowedToLeave=!0})),function(){var e,n;if(!c.z.isCreditsMode){var t=c.z.selectedDiscountType===d.xl.COUPON_CODE?null===(e=c.z.appliedCoupon)||void 0===e?void 0:e.code:void 0,i=c.z.finalPrice,r=c.z.selectedDiscountType===d.xl.COUPON_CODE?"DISCOUNT_CODE":"Global Accessibility"===(null===(n=c.z.automaticDiscount)||void 0===n?void 0:n.label)?"GLOBAL_ACCESSIBILITY":c.z.automaticDiscount?"STAGE_DISCOUNT":void 0,s={content_ids:[c.z.contestInfo.id],entry_level:c.z.level,entry_type:c.z.type,image_categories:Array.from(new Set(c.z.entries.flatMap((function(e){return e.categories.map((function(e){return e.name}))})))),discount_type:r,discount_code:t,ecommerce:{currency:"USD",value:i,coupon:t,items:[{item_id:c.z.contestInfo.id,item_name:c.z.contestInfo.name,item_category:"entry",price:+(i/c.z.entries.length).toFixed(2),quantity:c.z.entries.length}]}};f.ZP.clearEcommerce(),f.ZP.event(f.tz.ADD_TO_CART,s),f.ZP.clearEcommerce()}}(),a()):(0,o.z)((function(){c.z.termsError=!0})):e({title:"Some of your entries are incomplete. Please make sure that all of your submitted entries have a title and at least one category selected.",status:"error",duration:15e3})},children:c.z.isCreditsMode||c.z.isSubMinPayment?"Complete Submission":"Continue to Payment"})]})})]})}));n.Z=(0,a.Pi)((function(){return h.Z.open?(0,i.jsx)(r.kC,{flex:1,align:"center",direction:{base:"column",md:"row"},children:(0,i.jsx)(x.Z,{size:"md",minW:"200px",ml:"auto",onClick:function(){h.Z.open=!1,c.z.entryIndex=0},children:"Close"})}):(0,i.jsx)(m,{})}))},5995:function(e,n,t){t.d(n,{Z:function(){return j}});var i=t(8014),r=t(34237),s=t(80427),o=t(49430),a=t(85085),l=t(56168),c=t(46388),d=t(48178),u=t.n(d),x=t(98480),p=t(36270),f=t(21350),h=t(48599),m=(0,a.Pi)((function(e){var n=e.data,t=e.index,s=n.categories,o=c.z.entryIndex,a=c.z.type,l=c.z.entries,d=c.z.getCreditsPrices,u=(0,h.rQ)(s,a,d),m=o===t,b=u&&!m,v=(0,p.Z)({entry:l[t]}).isEntryValid;return(0,i.jsxs)(r.kC,{justify:"space-between",w:"100%",pt:"10px",pb:"10px",mb:"10px",cursor:b?"pointer":"auto",onClick:function(){b&&(0,f.z)((function(){return c.z.entryIndex=t}))},children:[(0,i.jsxs)(r.xv,{variant:"numeralsTiny",pl:m?"10px":0,css:{transition:"padding-left 0.2s",position:"relative"},_before:{content:'""',opacity:m?1:0,transition:"opacity 0.2s",position:"absolute",left:0,top:0,borderRadius:"4px",width:"4px",height:"4px",display:"block",backgroundColor:"base.1"},children:["Entry ",t+1]}),m||u?(0,i.jsx)(x.Z,{credits:u,withError:v}):(0,i.jsx)(r.xv,{variant:"fieldsDescription",color:"base.4",children:"Pending"})]})})),b=t(40137),v=t(21391),g=function(e){var n=e.withError,t=e.restCreditsForUse,s=e.isOpen,o=void 0!==s&&s;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.xv,{as:"span",variant:"subtitleSpacedOutL",children:"Available"}),(0,i.jsxs)(r.Ug,{children:[(0,i.jsx)(x.Z,{credits:t,withError:n}),(0,i.jsx)(b.Z,{icon:"triangledown",css:{transform:o?"rotate(180deg)":"none",display:"inline-block"},fill:"base.1",visibility:n?"visible":"hidden"})]})]})},y=(0,a.Pi)((function(){var e=(0,l.useState)(!1),n=e[0],t=e[1],a=c.z.restCreditsForUse,d=(0,l.useMemo)((function(){return+a<0}),[a]);return(0,l.useEffect)((function(){d&&!c.z.creditsNotificationWasShown?(t
1(!0),(0,f.z)((function(){c.z.creditsNotificationWasShown=!0}))):t(!1)}),[a,d]),(0,i.jsxs)(r.kC,{flex:1,h:"100%",align:"center",position:"relative",maxW:{md:"270px"},w:{base:"100%",md:"auto"},children:[(0,i.jsx)(r.kC,{align:"center",gap:"10px",cursor:d?"pointer":"initial",onClick:function(){return t(!0)},p:{base:"0",xl:"0 20px"},w:{base:"100%",md:"auto"},ml:{base:"auto",lg:0},flex:1,children:(0,i.jsx)(g,{restCreditsForUse:a,withError:d})}),d&&(0,i.jsx)(s.M,{children:n?(0,i.jsxs)(r.kC,{as:o.E.div,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},backgroundColor:"base.6",position:"absolute",left:"0",bottom:"-18px",width:"100%",direction:"column",children:[(0,i.jsx)(r.xu,{p:"30px 20px 0",children:(0,i.jsx)(v.Z,{})}),(0,i.jsx)(r.kC,{align:"center",gap:"10px",cursor:"pointer",onClick:function(){return t(!1)},p:"26px 20px",w:{base:"100%",md:"auto"},ml:{base:"auto",lg:0},flex:1,children:(0,i.jsx)(g,{restCreditsForUse:a,withError:d,isOpen:n})})]}):null})]})})),j=(0,a.Pi)((function(){var e=c.z.entries,n=c.z.type,t=c.z.currentEntry,a=c.z.submissionCredits,d=c.z.availableCreditsForUse,p=c.z.restCreditsForUse,f=c.z.getCreditsPrices,v=(0,l.useState)(!1),g=v[0],j=v[1],C=(0,h.rQ)(null===t||void 0===t?void 0:t.categories,n,f);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{}),(0,i.jsxs)(r.kC,{flex:1,h:"100%",align:"center",position:"relative",maxW:{md:"300px"},w:{base:"100%",md:"auto"},children:[(0,i.jsxs)(r.kC,{flex:1,align:"center",gap:"10px",justify:{base:"space-between",xl:"flex-start"},cursor:"pointer",onClick:function(){return j(!0)},p:{base:"0",xl:"0 20px"},w:{base:"100%",md:"auto"},ml:{base:"auto",lg:0},children:[(0,i.jsx)(r.xv,{as:"span",variant:"subtitleSpacedOutL",children:"Entry Price"}),(0,i.jsxs)(r.Ug,{children:[(0,i.jsx)(x.Z,{credits:C}),(0,i.jsx)(b.Z,{icon:"triangledown",css:{transform:"rotate(180deg)",display:"inline-block"},fill:"base.1"})]})]}),(0,i.jsx)(s.M,{children:g?(0,i.jsxs)(r.kC,{as:o.E.div,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},p:"20px 0",backgroundColor:"base_2.4",position:"absolute",left:"0",bottom:"-18px",width:"100%",direction:"column",children:[(0,i.jsx)(r.kC,{w:"100%",maxH:"360px",overflow:"hidden",position:"relative",direction:"column",css:{".ps":{position:"relative"}},children:(0,i.jsx)(u(),{style:{padding:"0 20px"},options:{wheelPropagation:!1},children:e.map((function(e,n){return(0,i.jsx)(m,{data:e,index:n},n)}))})}),(0,i.jsx)(r.xu,{borderTopWidth:1,borderTopColor:"base.1",m:"0 20px 20px",children:(0,i.jsxs)(r.kC,{justify:"space-between",w:"100%",pt:"10px",pb:"10px",flexDir:{base:"column",xl:"row"},children:[(0,i.jsx)(r.xv,{variant:"numeralsTiny",children:"Subtotal"}),(0,i.jsxs)(r.xv,{variant:"numeralsTiny",color:"base_2.2",children:[(0,i.jsx)(r.xv,{as:"span",variant:"numeralsTiny",color:p>=0?"base.1":"system.error",children:a.toFixed(2)})," out of ",(0,i.jsx)(r.xv,{as:"span",variant:"numeralsTiny",color:"accent1.2",children:d.toFixed(2)})," Credits"]})]})}),(0,i.jsxs)(r.kC,{cursor:"pointer",onClick:function(){return j(!1)},align:"center",p:"7px 20px",children:[(0,i.jsx)(r.xv,{variant:"subtitleSpacedOutL",children:"close"}),(0,i.jsx)(b.Z,{icon:"triangledown",fill:"base.1"})]})]}):null})]})]})}))},99172:function(e,n,t){var i=t(8014),r=t(34237),s=t(40137),o=t(23069),a=t(80427),l=t(49430),c=t(85085),d=t(56168),u=t(46388);n.Z=(0,c.Pi)((function(){var e=(0,d.useState)(!1),n=e[0],t=e[1],c=u.z.priceModifierLabel;return(0,i.jsxs)(r.kC,{h:"100%",align:"center",position:"relative",p:{base:"0",lg:"0 30px"},w:{base:"100%",md:"auto"},mb:{base:"20px",md:0},children:[(0,i.jsxs)(r.kC,{align:"center",justify:"space-between",cursor:"pointer",onClick:function(){return t(!0)},w:{base:"100%",md:"auto"},children:[(0,i.jsx)(r.xv,{as:"span",variant:"subtitleSpacedOutL",children:"Discount"}),(0,i.jsx)(r.xv,{variant:"numeralsTiny",color:"accent1.2",p:"0 10px",mr:"0",ml:"auto",children:c}),(0,i.jsx)(r.xu,{css:{transform:"rotate(180deg)",display:"inline-block"},children:(0,i.jsx)(s.Z,{icon:"triangledown",fill:"base.1"})})]}),(0,i.jsx)(a.M,{children:n?(0,i.jsxs)(r.kC,{as:l.E.div,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},p:{base:"20px",md:"26px 30px"},backgroundColor:"base_2.4",position:"absolute",left:"0",bottom:"-18px",width:"100%",direction:"column",w:{base:"100%",md:"360px"},zIndex:9,children:[(0,i.jsx)(o.Z,{}),(0,i.jsxs)(r.kC,{cursor:"pointer",onClick:function(){return t(!1)},align:"center",mt:"30px",children:[(0,i.jsx)(r.xv,{as:"span",variant:"subtitleSpacedOutL",children:"Discount"}),(0,i.jsx)(s.Z,{icon:"triangledown",fill:"base.1"})]})]}):null})]})}))},41984:function(e,n,t){t.d(n,{Z:function(){return b}});var i=t(8014),r=t(34237),s=t(82148),o=t(80427),a=t(49430),l=t(85085),c=t(56168),d=t(46388),u=t(48178),x=t.n(u),p=t(21350),f=t(48599),h=(0,l.Pi)((function(e){var n=e.data,t=e.index,o=n.categories,a=d.z.entryIndex,l=d.z.priceModifier,c=(0,f.Xd)(o,d.z.itemPrices,l),u=c.total,x=c.subtotal,h=a===t,m=u&&!h;return(0,i.jsxs)(r.kC,{justify:"space-between",w:"100%",pt:"10px",pb:"10px",mb:"10px",cursor:m?"pointer":"auto",onClick:function(){m&&(0,p.z)((function(){return d.z.entryIndex=t}))},children:[(0,i.jsxs)(r.xv,{variant:"numeralsTiny",pl:h?"10px":0,css:{transition:"padding-left 0.2s",position:"relative"},_before:{content:'""',opacity:h?1:0,transition:"opacity 0.2s",position:"absolute",left:0,top:0,borderRadius:"4px",width:"4px",height:"4px",display:"block",backgroundColor:"base.1"},children:["Entry ",t+1]}),h||u?(0,i.jsx)(s.Z,{normal:u,reduced:x}):(0,i.jsx)(r.xv,{variant:"fieldsDescription",color:"base.4",children:"Pending"})]})})),m=t(40137),b=(0,l.Pi)((function(){var e=d.z.entries,n=d.z.submissionPrice,t=(0,c.useState)(!1),l=t[0],u=t[1];return(0,i.jsxs)(r.kC,{flex:1,h:"100%",align:"center",position:"relative",maxW:{md:"300px"},w:{base:"100%",md:"auto"},children:[(0,i.jsxs)(r.kC,{align:"center",justify:"space-between",cursor:"pointer",onClick:function(){return u(!0)},p:{base:"0",lg:"0 20px"},w:{base:"100%",md:"auto"},ml:{base:"auto",lg:0},children:[(0,i.jsx)(r.xv,{as:"span",variant:"subtitleSpacedOutL",children:"Subtotal"}),(0,i.jsx)(s.Z,{normal:n.total,reduced:n.subtotal,as:"span",ml:{base:"auto",md:"10px"},mr:"10px"}),(0,i.jsx)(m.Z,{icon:"triangledown",css:{transform:"rotate(180deg)",display:"inline-block"},fill:"base.1"})]}),(0,i.jsx)(o.M,{children:l?(0,i.jsxs)(r.kC,{as:a.E.div,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},p:"20px 0",backgroundColor:"base_2.4",position:"absolute",left:"0",bottom:"-18px",width:"100%",direction:"column",children:[(0,i.jsx)(r.kC,{w:"100%",maxH:"360px",overflow:"hidden",position:"relative",direction:"column",css:{".ps":{position:"relative"}},children:(0,i.jsx)(x(),{style:{padding:"0 20px"},options:{wheelPropagation:!1},children:e.map((function(e,n){return(0,i.jsx)(h,{data:e,index:n},n)}))})}),(0,i.jsx)(r.xu,{borderTopWidth:1,borderTopColor:"base.1",m:"0 20px 20px",children:(0,i.jsxs)(r.kC,{justify:"space-between",w:"100%",pt:"10px",pb:"10px",children:[(0,i.jsx)(r.xv,{variant:"numeralsTiny",children:"Subtotal"}),(0,i.jsx)(s.Z,{normal:n.total,reduced:n.subtotal})]})}),(0,i.jsxs)(r.kC,{cursor:"pointer",onClick:function(){return u(!1)},align:"center",p:"0 20px ",mb:"8px",children:[(0,i.jsx)(r.xv,{variant:"subtitleSpacedOutL",children:"close"}),(0,i.jsx)(m.Z,{icon:"triangledown",fill:"base.1"})]})]}):null})]})}))},67295:function(e,n,t){var i=t(5447),r=t(99728),s=t(27427),o=t(8014),a=t(21293),l=t(34237),c=t(14970),d=t(85085),u=t(46388),x=t(55310),p=t(14131),f=t(40137),h=t(29675),m=t(21350);n.Z=(0,d.Pi)((function(e){var n=e.textProps,t=e.variant,d=void 0===t?"flat":t,b=(0,s.Z)(e,["textProps","variant"]),v=u.z.isSomethingUnsaved,g=u.z.isAllowedToLeave,y=(0,c.u6)(),j=y.isSubmitting,C=y.handleSubmit,w=u.z.entries;return(0,h.Z)(v&&!g),(0,o.jsx)(p.Z,(0,r.Z)((0,i.Z)({variant:d,leftIcon:j?(0,o.jsx)(a.D8,{size:"20px",color:"accent1.2",isIndeterminate:!0}):(0,o.jsx)(f.Z,{icon:"saveforlater"}),disabled:j||!w.length,size:"md",onClick:function(){j||(u.z.setStatus(x.Pd.DRAFT),(0,m.z)((function(){return u.z.isAllowedToLeave=!0})),C())},flex:{base:"initial",md:1},mr:{base:"0",lg:"65px"}},b),{children:(0,o.jsx)(l.xv,(0,r.Z)((0,i.Z)({variant:"ctaPrimary"},n),{children:"Save For Later"}))}))}))},46433:function(e,n,t){t.d(n,{Z:function(){return Z}});var i,r=t(8014),s=t(34237),o=t(71246),a=t(88592),l=t(35838),c=t(85085),d=t(46388),u=t(40137),x=t(82857),p=t(80174),f=(0,c.Pi)((function(){var e=d.z.getCreditsPrices,n=d.z.availableCreditsForUse;return(0,r.jsxs)(s.Kq,{align:"center",spacing:"10px",direction:"row",children:[(0,r.jsx)(u.Z,{icon:"creditsIcon"}),(0,r.jsx)(s.xv,{variant:"numeralsTiny",children:"Credits:"}),(0,r.jsx)(s.xv,{variant:"numeralsTiny",children:n}),(0,r.jsx)(x.Z,{variant:"light",label:(0,r.jsxs)(s.kC,{align:"flex-start",direction:"column",children:[(0,r.jsx)(s.xv,{variant:"fieldsTitleS",mb:"10px",children:"This is your remaining credits balance available to use in this calendar year. Credits are worth the following:"}),(0,r.jsxs)(s.xv,{variant:"fieldsTitleS",children:[e[p.UZ.SINGLE].base," Credit = 1 Single Image Entry"]}),(0,r.jsxs)(s.xv,{variant:"fieldsTitleS",children:[e[p.UZ.SERIES].base," Credits = 1 Series Entry"]}),(0,r.jsxs)(s.xv,{variant:"fieldsTitleS",children:[e[p.UZ.SINGLE].additional," = Additional Category for a Single Image Entry"]}),(0,r.jsxs)(s.xv,{variant:"fieldsTitleS",children:[e[p.UZ.SERIES].additional," Credits = Additional Category for a Series Entry"]})]}),children:(0,r.jsx)(s.xu,{display:{base:"none",md:"flex"},children:(0,r.jsx)(u.Z,{icon:"infoicon",size:18})})})]})})),h=t(960),m=t(43692),b=t(42299),v=t(44453),g=t.n(v),y=t(21350),j=t(55310),C=t(16576),w=t(39266),E=(i={},(0,b.Z)(i,j.x6.CREDITS,"Here, you can switch to paying for your submission via card transaction without using your credits."),(0,b.Z)(i,j.x6.DEFAULT,"Here, you can switch to paying for your submission using your available credits. If you do not have enough, you can also purchase more before entering your submission."),i),z=(0,c.Pi)((function(){var e=function(){var e=(0,m.Z)(g().mark((function e(){var n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.z.stepIds[d.z.index],(0,y.z)((function(){d.z.paymentMethod=d.z.isCreditsMode?j.x6.DEFAULT:j.x6.CREDITS,d.z.entries.length&&(d.z.status=j.Pd.DRAFT)})),!d.z.entries.length){e.next=5;break}return e.next=5,(0,C.uJ)();case 5:setTimeout((function(){var e=d.z.stepIds.indexOf(n);-1!==e&&d.z.setIndex(e)}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return d.z.availableBundles.length&&d.z.index?(0,r.jsx)(s.xu,{mr:{base:"20px",lg:"40px"},children:(0,r.jsx)(x.Z,{label:E[d.z.paymentMethod],variant:"light",children:(0,r.jsxs)(s.kC,{p:{base:"18px 10px",lg:"18px 20px"},bg:"support1.3",onClick:e,cursor:"pointer",transition:(0,w.eR)("background-color"),userSelect:"none",_hover:{bg:"support2.2"},align:"center",gap:"10px",children:[(0,r.jsx)(u.Z,{icon:"rotate"}),(0,r.jsx)(s.xv,{variant:"numeralsTiny",children:"Switch to ".concat(d.z.isCreditsMode?"Pay Per Entry":"Credits")})]})})}):null})),Z=(0,c.Pi)((function(e){var n=e.me,t=e.title,i=d.z.contestInfo.name,c=(0,o.Z)(),u=c.isMobile,x=c.isTablet;return(0,r.jsxs)(s.kC,{align:"center",justify:"space-between",flex:1,children:[(0,r.jsxs)(s.kC,{align:"center",flex:{base:1,md:void 0},children:[u&&(0,r.jsx)(h.ZP,{}),(0,r.jsxs)(s.xv,{as:"div",variant:"numeralsS",children:[(0,r.jsx)(s.xu,{display:{base:"none",lg:"inline-flex"},children:i}),t?(0,r.jsxs)(s.xv,{as:"span",variant:x?"numeralsS":"description",color:x?"base.1":"base.4",children:[i&&(0,r.jsx)(s.xu,{display:{base:"none",lg:"inline-flex"},children:(0,r.jsx)("span",{style:{margin:"0 10px"},children:"/"})}),t]}):null]})]}),(0,r.jsxs)(s.kC,{display:{base:"none",md:"flex"},mr:"40px",ml:"auto",children:[(0,r.jsx)(z,{}),d.z.isCreditsMode?(0,r.jsx)(f,{}):(0,r.jsx)(a.Z,{})]}),n?(0,r.jsx)(s.kC,{align:"center",justify:"space-between",zIndex:1001,children:(0,r.jsx)(l.Z,{triggerProps:{mt:"-13px",pt:"13px",mb:"-13px",pb:"13px"}})}):null]})}))},79137:function(e,n,t){t.d(n,{d:function(){return x},Z:function(){return p}});var i=t(8014),r=t(34237),s=t(85085),o=t(77567),a=t(90319),l=t(39566),c=function(e){var n=e.images;return(0,i.jsx)(r.xu,{as:l.t,w:"100%",h:"225px",initialSlide:0,slidesPerView:"auto",overflow:"visible",spaceBetween:10,children:n.map((function(e,n){var t=e.sizes.medium;return(0,i.jsx)(l.o,{style:{width:"auto"},children:(0,i.jsx)(r.xu,{position:"relative",h:"100%",w:"auto",css:"\n                span,\n                img {\n                  height: 100% !important;\n                  width: auto !important;\n                }\n              ",children:(0,i.jsx)(o.Z,{alt:e.name,src:(0,a.Jn)(t.url),width:t.width,height:t.height,layout:"intrinsic"})})},n)}))})},d=t(71246),u="10px",x=function(e){var n=e.image,t=n.id,r=n.sizes.medium,s=r.url,l=r.width,c=r.height;return(0,i.jsx)(o.Z,{src:(0,a.Jn)(s),width:l,height:c,layout:"intrinsic",alt:"media--".concat(t)})},p=(0,s.Pi)((function(e){var n=e.item,t=(0,d.Z)().isMobile;return(0,i.jsxs)(r.kC,{direction:"column",children:[t&&1!==n.media.length?(0,i.jsx)(c,{images:n.media}
1):(0,i.jsx)(r.kC,{maxW:{base:"400px",md:"60vw",lg:"none"},children:(0,i.jsx)(x,{image:n.media[0]})}),n.media.length>1?t?null:(0,i.jsx)(r.xu,{sx:{columnCount:[1,2],gap:u},pt:u,children:n.media.slice(1).map((function(e,n){return(0,i.jsx)(r.kC,{mb:u,children:(0,i.jsx)(x,{image:e})},"media--".concat(n))}))}):null]})}))},45178:function(e,n,t){var i=t(8014),r=t(34237),s=function(e){var n=e.label,t=e.value,s=e.color,o=void 0===s?"base.1":s;return(0,i.jsxs)(r.kC,{justify:"space-between",mb:"20px",align:"center",userSelect:"none",children:[(0,i.jsx)(r.xv,{variant:"fieldsDescription",children:n}),(0,i.jsx)(r.xv,{variant:"numeralsTiny",color:o,children:t})]})};n.Z=function(e){var n=e.regular,t=e.reduced,o=e.entryCount,a=e.rows,l=void 0===a?[]:a;return(0,i.jsxs)(r.kC,{direction:"column",width:"100%",children:[(0,i.jsx)(s,{label:"".concat(o," ").concat(1===o?"Entry":"Entries"),value:"$".concat(n)}),l.map((function(e,n){var t=e.label,r=e.value;return(0,i.jsx)(s,{label:t,value:r.toFixed(2).replace("-","-$"),color:r<0?"accent1.2":"base.1"},"".concat(t,"-").concat(r,"-").concat(n))})),(0,i.jsxs)(r.kC,{justify:"space-between",pt:"20px",borderTopWidth:"1px",borderTopColor:"base.1",children:[(0,i.jsx)(r.xv,{variant:"numeralsM",children:"Total"}),(0,i.jsx)(r.xv,{variant:"numeralsM",children:"$".concat(t)})]})]})}},80032:function(e,n,t){t.d(n,{p:function(){return te},Z:function(){return ie}});var i=t(43692),r=t(5447),s=t(99728),o=t(27427),a=t(44453),l=t.n(a),c=t(8014),d=t(34237),u=t(21293),x=t(75274),p=t(12938),f=t(14131),h=t(85085),m=t(56168),b=t(46388),v=t(80174),g=t(71246),y=t(8403),j=t(67295),C=t(5995),w=t(99172),E=t(41984),z=t(832),Z=t(48599),k=(0,h.Pi)((function(){var e=b.z.media,n=b.z.entryIndex,t=b.z.type,i=(0,g.Z)().isMobile,r=(0,y.Z)({containerStyle:{width:"100%",padding:i?"10px 20px":"10px 20px 10px 70px",transform:"translateY(62px)"}}),s=(0,m.useCallback)((function(){document.querySelector(":root").scrollTop=0}),[]),o=(0,m.useCallback)((function(){var e="";b.z.isEntryValid.isTitleValid?b.z.isEntryValid.isTitleLenghtValid?b.z.isEntryValid.isCategoriesValid?b.z.isEntryValid.isDescValid||(e="Description is too long"):e="Select at least one category":e="Title is too long":e="Entry Title is Required",e&&r({status:"error",title:e})}),[r]),a=(0,m.useCallback)((function(){var e=b.z.currentEntry,n=(0,Z.Xd)(e.categories,b.z.itemPrices,b.z.priceModifier),t=n.total,i=n.subtotal||t,r={contest_name:b.z.contestInfo.name,entry_level:b.z.level,entry_type:b.z.type,image_categories:e.categories.map((function(e){return e.name})),content_ids:[b.z.contestInfo.id],ecommerce:{currency:"USD",items:[{item_id:b.z.contestInfo.id,item_name:b.z.contestInfo.name,item_category:"entry",price:i,quantity:1}]}};z.ZP.clearEcommerce(),z.ZP.event(z.tz.VIEW_ITEM,r),z.ZP.clearEcommerce()}),[]),l=(0,m.useCallback)((function(){b.z.isEntryValid.isValid?(a(),b.z.nextEntry(),s()):(b.z.validateEntry(),o())}),[a,s,o]);return(0,c.jsxs)(d.kC,{flex:1,align:"center",justify:"space-between",position:"relative",zIndex:1,direction:{base:"column",lg:"row"},children:[(0,c.jsxs)(d.kC,{flex:1,h:"100%",align:"center",w:{base:"100%",lg:"auto"},direction:{base:"column",md:"row"},justify:{base:"space-between",lg:"flex-start"},children:[b.z.entriesLength>1?(0,c.jsx)(d.xv,{variant:"fieldsDescription",color:"base_2.1",mr:"40px",minW:"60px",display:{base:"none",lg:"inline-flex"},children:"".concat(n+1," out of ").concat(b.z.entriesLength)}):null,i?null:b.z.isCreditsMode?(0,c.jsx)(C.Z,{}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(w.Z,{}),(0,c.jsx)(E.Z,{})]})]}),(0,c.jsxs)(d.kC,{w:{base:"100%",lg:"auto"},justify:{base:"space-between",lg:"flex-start"},mt:{md:"20px",lg:"0"},children:[(0,c.jsx)(d.kC,{align:"center",children:(0,c.jsx)(j.Z,{textProps:{display:{base:"none",md:"flex"}}})}),n?(0,c.jsx)(f.Z,{variant:"base.1.outline",size:"md",onClick:function(){b.z.prevEntry(),s()},mr:"10px",ml:{base:"auto",lg:0},children:"Prev. Entry"}):null,n<b.z.entriesLength-1?(0,c.jsx)(f.Z,{variant:"base.1.fill",size:"md",onClick:l,disabled:!b.z.isEntryValid,children:"Next Entry"}):(0,c.jsx)(f.Z,{variant:"base.1.fill",size:"md",onClick:function(){b.z.isEntryValid.isValid?(b.z.nextSlide(),s(),a()):(b.z.validateEntry(),o())},disabled:e.length<2&&t===v.UZ.SERIES,children:"Continue"})]})]})})),S=t(80427),I=t(75657),T=t.n(I),_=t(49430),P=t(98421),D=t(90319),M=function(e){var n=e.open,t=(0,g.Z)().isMobile;return(0,c.jsxs)(d.Kq,{as:_.E.div,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},p:"20px",backgroundColor:"base_2.4",position:"absolute",left:0,bottom:"-18px",width:"100%",direction:"column",spacing:{base:"3px",md:"12px"},children:[(0,c.jsxs)(d.kC,{justify:"space-between",align:"center",children:[(0,c.jsx)(d.xv,{variant:"fieldsDescription",children:"Allowed:"}),(0,c.jsx)(d.xv,{variant:"numeralsTiny",children:"JPEG, PNG"})]}),(0,c.jsxs)(d.kC,{justify:"space-between",align:"center",children:[(0,c.jsx)(d.xv,{variant:"fieldsDescription",children:"Max. File Size:"}),(0,c.jsxs)(d.xv,{variant:"numeralsTiny",children:[t?D.d6:D.C1," MB"]})]}),(0,c.jsxs)(d.kC,{justify:"space-between",align:"flex-start",gap:"5px",children:[(0,c.jsx)(d.xv,{variant:"fieldsDescription",children:"Min. Size (Longest Edge):"}),(0,c.jsxs)(d.xv,{variant:"numeralsTiny",children:[D.sN,"px"]})]}),(0,c.jsx)(d.kC,{justify:"space-between",flexDirection:"column",align:"flex-start",pointerEvents:n?"auto":"none",children:(0,c.jsx)(T(),{href:"".concat(P.ze.FAQ,"?section=faq&tab=image-requirements"),passHref:!0,children:(0,c.jsx)(d.rU,{textDecoration:"underline",isExternal:!0,children:(0,c.jsx)(d.xv,{variant:"fieldsTitleS",children:"Watermarks are not allowed"})})})})]})},L=t(40137),A=function(){var e=(0,m.useState)(!1),n=e[0],t=e[1];return(0,m.useEffect)((function(){setTimeout((function(){return t(!1)}),2e3)}),[]),(0,c.jsxs)(d.kC,{align:"center",role:"group",pos:"relative",h:"100%",mb:{base:"20px",lg:0},onMouseEnter:function(){return t(!0)},onMouseLeave:function(){return t(!1)},onClick:function(){return t((function(e){return!e}))},p:{base:"0",md:"0 20px"},w:{base:"100%",md:"auto"},justify:{base:"space-between",md:"center"},children:[(0,c.jsx)(L.Z,{icon:"infoicon",size:18}),(0,c.jsx)(d.xv,{ml:"12px",variant:"fieldsDescription",color:"base_2.1",children:"Image Requirements"}),(0,c.jsx)(S.M,{children:n?(0,c.jsx)(M,{open:n}):null})]})},N=t(4822),O=t(21350),R=(0,h.Pi)((function(e){var n=e.open,t=b.z.media,i=b.z.type,r=b.z.contestInfo,s=t.some((function(e){return e.loading})),o=(0,g.Z)().isMobile,a=(0,m.useRef)(0),l=(0,m.useState)(!1),u=l[0],x=l[1],p=(0,m.useMemo)((function(){return i===v.UZ.SERIES?t.length>=N.Ie:t.length>=N.IV}),[t.length,i]);(0,m.useEffect)((function(){var e=(0,O.U5)((function(){return b.z.media.length}),(function(e){e>a.current&&x(!0),a.current=e}),{fireImmediately:!1});return function(){a.current=0,e()}}),[]);return(0,c.jsxs)(d.kC,{flex:1,align:"center",justify:"space-between",flexDir:{base:"column",lg:"row"},h:"100%",position:"relative",zIndex:1,children:[(0,c.jsxs)(d.kC,{flexDir:{base:"column-reverse",lg:"row"},align:"center",h:"100%",w:{base:"100%",lg:"auto"},children:[(0,c.jsxs)(d.xv,{variant:"fieldsDescription",mr:{base:"0",xl:"42px"},textAlign:{base:"center",lg:"left"},display:{base:"none",xl:"flex"},children:["You can upload up to",(0,c.jsx)(d.xv,{as:"span",variant:"numeralsTiny",ml:"5px",mr:"5px",children:b.z.mediaLimit}),"more images in this"," ",b.z.type===v.UZ.SERIES?"entry":"submission"]}),o?null:(0,c.jsx)(A,{})]}),(0,c.jsxs)(d.Kq,{justifyContent:"space-between",w:{base:"100%",lg:"auto"},direction:{base:"column",lg:"row"},spacing:"10px",children:[(0,c.jsx)(j.Z,{variant:o?"base.1.outline":"flat",mr:{base:"0",md:"20px",xl:"65px"}}),t.length?(0,c.jsx)(f.Z,{variant:"base.1.outline",size:"md",onClick:n,mr:{lg:"10px"},disabled:p,w:{base:"100%",lg:"auto"},children:"Upload More"}):(0,c.jsx)(f.Z,{variant:"base.1.outline",size:"md",onClick:function(){return b.z.prevSlide()},mr:{lg:"10px"},w:{base:"100%",lg:"auto"},order:"2",children:"Cancel"}),t.length?(0,c.jsx)(f.Z,{w:{base:"100%",lg:"auto"},variant:"base.1.fill",size:"md",onClick:function(){!function(){var e={contest_name:r.name,entry_level:b.z.level,entry_type:b.z.type,images_uploaded:u?"Y":"N"};z.ZP.event(z.tz.SUBMISSION_UPLOAD_IMAGES,e)}(),b.z.setEntries(),b.z.nextSlide()},disabled:i===v.UZ.SINGLE&&t.length<1||i===v.UZ.SERIES&&t.length<2||s,children:"Continue"}):(0,c.jsx)(f.Z,{variant:"base.1.fill",size:"md",onClick:n,w:{base:"100%",lg:"auto"},children:"Upload Images"})]})]})})),F=t(46433),U=t(14970),V=t(75332),B=t(42003),W=t(55310),G=t(65090),H=t(16576),Y=t(92343),J=t
1(42538),q=t(47011),Q=t(51005),K=t(42299),X=t(77567),$=(0,h.Pi)((function(){var e=(0,m.useMemo)((function(){return b.z.contestInfo.bundleOrders?(b.z.contestInfo.bundleOrders||[]).filter((function(e){return e.credits-e.used_credits>0})).reduce((function(e,n){var t=n.entry_level,i=e[t]||0;return(0,s.Z)((0,r.Z)({},e),(0,K.Z)({},t,i+(n.credits-n.used_credits)))}),{}):{}}),[]),n=(0,m.useCallback)((function(){(0,O.z)((function(){b.z.paymentMethod=W.x6.CREDITS,b.z.nextSlide()}))}),[]);return(0,c.jsxs)(d.kC,{className:"single__option",direction:"column",flex:1,justify:"space-between",p:{base:"40px 20px",md:"40px 60px"},pos:"relative",children:[(0,c.jsx)(d.kC,{flex:1,h:"100%",w:"100%",flexDir:"column",position:"relative",children:(0,c.jsx)(X.Z,{src:(0,D.QO)("bundles/credits.png"),alt:"Bundle Preview",objectFit:"contain",layout:"fill",objectPosition:"left"})}),(0,c.jsx)(d.kC,{zIndex:9,direction:{base:"column",md:"row"},align:{base:"flex-start",md:"flex-end"},justify:"space-between",mt:"40px",children:(0,c.jsxs)(d.kC,{direction:"column",w:"100%",align:"flex-start",children:[(0,c.jsx)(d.xv,{variant:"titleM",mb:"5px",children:"Pay With Bundle Credits"}),1===Object.keys(e).length?(0,c.jsxs)(d.xv,{variant:"subtitleS",mb:"20px",children:["You have"," ",(0,c.jsxs)(d.xv,{as:"span",color:"accent1.2",children:[Object.values(e)[0]," Credits"]})," ","available"]}):(0,c.jsxs)(d.xv,{variant:"subtitleS",mb:"20px",children:["You have"," ",(0,c.jsxs)(d.xv,{as:"span",color:"accent1.2",children:[e[v.Kq.PROFESSIONAL]," Professional"]})," ","and"," ",(0,c.jsxs)(d.xv,{as:"span",color:"accent1.2",children:[e[v.Kq.NON_PROFESSIONAL]," ","Non-Professional"]})," ","Credits"]}),(0,c.jsx)(d.xv,{mb:"20px",children:H.eo[W.x6.CREDITS]}),(0,c.jsx)(f.Z,{variant:"base.1.outline",onClick:n,pointerEvents:"auto",mt:{base:"20px",md:"0"},children:"Continue"})]})})]})})),ee=(0,h.Pi)((function(){var e=(0,m.useMemo)((function(){var e,n=b.z.contestInfo,t=(0,O.ZN)(n).images,i=(0,H.hQ)({key:"professional_image",images:t,fallback:(0,D.QO)("lvl_prof.jpg")});return{title:"Pay Per Entry",desc:H.eo[W.x6.DEFAULT],image:i,caption:null===t||void 0===t||null===(e=t.professional_image)||void 0===e?void 0:e.title,button:{label:"Continue",variant:"base.6.outline",onPress:function(){(0,O.z)((function(){b.z.paymentMethod=W.x6.DEFAULT,b.z.nextSlide()}))}}}}),[]);return(0,c.jsxs)(d.kC,{flex:1,direction:{base:"column",lg:"row"},minH:"100%",children:[(0,c.jsx)(Q.Z,(0,r.Z)({},e)),(0,c.jsx)($,{})]})})),ne=t(90275),te="submission_categories_history",ie=(0,h.Pi)((function(e){var n,t,a,f=e.contest,h=e.submission,v=(0,g.Z)(),j=v.isMobile,C=v.tabletDown,w=(0,q.L)().user,E=(0,m.useRef)((0,y.Z)({containerStyle:{width:"100%",padding:j?"10px 20px":"10px 20px 10px 70px",transform:"translateY(62px)"}})),Z=b.z.media.filter((function(e){return"undefined"!==typeof e.loading})),I=Z.filter((function(e){return!1===e.loading})).length,T=(0,m.useState)(!0),P=T[0],M=T[1],L=(0,m.useState)(!1),A=L[0],N=L[1],Q=b.z.index,K=(0,V.useRouter)(),X=w.profile.wallet,$=(0,m.useState)(b.z.paymentMethod),te=$[0],ie=$[1];(0,m.useEffect)((function(){var e=(0,O.U5)((function(){return b.z.paymentMethod}),(function(e){return ie(e)}));return function(){e()}}),[]);var re=(0,m.useCallback)(function(){var e=(0,i.Z)(l().mark((function e(n){var t,i,a,c,d,u,x,p,f,h,m;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n.slice(0,b.z.mediaLimit),i=[],a=0;case 3:if(!(a<t.length)){e.next=22;break}return c=(0,G.kb)(),d=t[a],u=void 0,e.prev=7,e.next=10,(0,D.Hk)(d,c);case 10:u=e.sent,e.next=17;break;case 13:return e.prev=13,e.t0=e.catch(7),i.push({id:c,file:d}),e.abrupt("continue",19);case 17:b.z.media.find((function(e){return e.id===c}))||(i.push({id:c,file:d}),b.z.addMediaItem((0,s.Z)((0,r.Z)({},u),{sizes:{large:u,medium:u,small:u},loading:!0,name:""})));case 19:a++,e.next=3;break;case 22:x=0;case 23:if(!(x<i.length)){e.next=32;break}return p=i[x],f=p.id,h=p.file,e.next=27,(0,D.Ix)(h,void 0,!0).catch((function(e){var n,t,i=null===e||void 0===e||null===(n=e.response)||void 0===n||null===(t=n.data)||void 0===t?void 0:t.detail,r=b.z.media.findIndex((function(e){return e.id===f}));return r>-1&&b.z.removeMediaItem(r),E.current({title:i||"Image upload failed, please try again.",status:"error"}),null}));case 27:(m=e.sent)&&b.z.updateMediaItem((0,s.Z)((0,r.Z)({},m),{loading:!1}),f);case 29:x++,e.next=23;break;case 32:(0,O.z)((function(){var e;e=b.z.media.map((function(e){e.loading;return(0,o.Z)(e,["loading"])})),b.z.media=e}));case 33:case"end":return e.stop()}}),e,null,[[7,13]])})));return function(n){return e.apply(this,arguments)}}(),[]);(0,m.useEffect)((function(){return function(){b.z.reset()}}),[]);var se=(0,m.useCallback)((function(){"new"===K.query.submission_id&&z.ZP.event(z.tz.NEW_ENTRY,{contest_name:null===f||void 0===f?void 0:f.name})}),[null===f||void 0===f?void 0:f.name,K.query.submission_id]);(0,m.useEffect)((function(){se()}),[se]);var oe=(0,B.uI)({onDrop:re,accept:D.KL.join(", "),maxSize:j?D.t0:D.Tb,noClick:!0}),ae=oe.getRootProps,le=oe.getInputProps,ce=oe.open,de=oe.isDragActive,ue=oe.fileRejections,xe=(0,m.useMemo)((function(){return[{title:"Upload Images",id:W.J7.IMAGES,component:(0,
1c.jsx)(Y.wA,{getRootProps:ae,getInputProps:le,isDragActive:de,fileRejections:ue}),footer:(0,c.jsx)(R,{getRootProps:ae,getInputProps:le,isDragActive:de,open:ce}),mobileFooterHeight:181},{title:"Details",id:W.J7.DETAILS,component:(0,c.jsx)(Y.R2,{}),footer:(0,c.jsx)(k,{}),mobileFooterHeight:81},{title:"Summary",id:W.J7.SUMMARY,component:(0,c.jsx)(Y.AP,{}),footer:(0,c.jsx)(p.Z,{}),mobileFooterHeight:0},{title:"Payment",id:W.J7.PAYMENT,component:null}]}),[ae,le,de,ue,ce]),pe=(0,m.useState)([]),fe=pe[0],he=pe[1],me=j?(null===(n=fe[Q])||void 0===n?void 0:n.mobileFooterHeight)||180:77,be=(0,m.useCallback)((function(){if(A){var e=xe.slice(),n=!!(null===h||void 0===h?void 0:h.id),t=null,i=null,r=b.z.contestInfo||f,s=r.entry_level,o=r.entry_type;if(o.length>1){var a={title:"Entry Type",id:W.J7.ENTRY_TYPE,component:(0,c.jsx)(Y.Sj,{})};b.z.canUseCredits&&te===W.x6.CREDITS?b.z.availableEntryTypesFromBundles.length>1?e.unshift(a):t=b.z.availableEntryTypesFromBundles[0]:e.unshift(a)}else t=o[0];if(s.length>1){var l={title:"Entry Level",id:W.J7.ENTRY_LEVEL,component:(0,c.jsx)(Y.n4,{})};b.z.canUseCredits&&te===W.x6.CREDITS?b.z.availableEntryLevelsFromBundles.length>1?e.unshift(l):i=b.z.availableEntryLevelsFromBundles[0]:e.unshift(l)}else i=s[0];b.z.canUseCredits&&e.unshift({title:"Submission Payment Options",id:W.J7.PAYMENT_METHOD,skipNavigation:!0,component:(0,c.jsx)(ee,{})});var d=e.map((function(e){return e.id}));(0,O.z)((function(){if(b.z.type!==t&&t&&(b.z.type=t),b.z.level!==i&&i&&(b.z.level=i),b.z.stepIds=d,n&&0===b.z.index){var e=d.findIndex((function(e){return e===W.J7.SUMMARY}));b.z.index=e>-1?e:0}})),he(e),M(!1)}}),[f,te,xe,null===h||void 0===h?void 0:h.id,A]);(0,m.useEffect)((function(){be()}),[be]),(0,m.useEffect)((function(){(0,O.z)((function(){b.z.user=w,f&&(b.z.contestInfo=f)})),b.z.loadSubmission(h,X),N(!0)}),[f,w,h,X]),(0,m.useEffect)((function(){return(0,O.U5)((function(){return b.z.index}),(function(){document.querySelector(":root").scrollTop=0}),{fireImmediately:!0})}),[]),(0,m.useEffect)((function(){return function(){N(!1)}}),[A]);var ve=(0,m.useCallback)(function(){var e=(0,i.Z)(l().mark((function e(n,t){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.setSubmitting,f){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,(0,H.uJ)({setSubmitting:i,toast:E.current,router:K});case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[f,K]),ge=(0,m.useMemo)((function(){return fe.findIndex((function(e){return"Summary"===e.title}))===Q}),[Q,fe]);return P?null:(0,c.jsx)(S.M,{exitBeforeEnter:!0,children:(0,c.jsx)(U.J9,{initialValues:{},onSubmit:ve,children:(0,c.jsxs)(x.Z,{title:(null===h||void 0===h?void 0:h.id)?"Edit Submission":"Create Submission",header:(0,c.jsx)(F.Z,{me:w,title:fe[Q].title}),sidebar:function(e){return(0,c.jsx)(J.Z,(0,r.Z)({active:Q,slides:fe},e))},noScroll:ge&&!C,footer:ge&&C||!(null===(t=fe[Q])||void 0===t?void 0:t.footer)?null:(0,c.jsx)(d.kC,(0,s.Z)((0,r.Z)({flex:1,as:_.E.div},(0,H.Fb)(me)),{children:null===(a=fe[Q])||void 0===a?void 0:a.footer})),children:[Z.length>0&&(0,c.jsx)(d.xu,{position:"fixed",w:"full",zIndex:9999,left:0,p:j?"10px 20px":"10px 20px 10px 70px",top:"62",children:(0,c.jsx)(ne.Z,{id:"media-upload-toast",onClose:function(){return null},status:"info",alertProps:{backgroundColor:"accent1.3"},icon:(0,c.jsx)(u.D8,{isIndeterminate:!0,color:"accent1.2",size:6}),title:"Please wait while your images are being uploaded: ".concat(I," / ").concat(Z.length),containerStyle:{background:"red"},isClosable:!1})}),(0,c.jsx)(d.kC,(0,s.Z)((0,r.Z)({flex:1,h:ge&&!j?"100%":void 0,direction:"column",as:_.E.div},H.Yy),{children:fe[Q].component}),"slide--".concat(Q))]})})})}))},23069:function(e,n,t){t.d(n,{Z:function(){return k}});var i=t(5447),r=t(99728),s=t(8014),o=t(34237),a=t(85085),l=t(43692),c=t(44453),d=t.n(c),u=t(98421),x=t(40137),p=t(63940),f=t(14131),h=t(24113),m=t(82857),b=t(21350),v=t(56168),g=t(46388),y=t(98935),j=t(55310),C=t(71246),w=t(8403),E=t(49823),z={variant:"flat",position:"absolute",top:"0",bottom:"0",right:"0"},Z=(0,a.Pi)((function(e){var n,t=(0,C.Z)().isMobile,a=(0,w.Z)({containerStyle:{width:"100%",padding:t?"10px 20px":"10px 20px 10px 70px",transform:"translateY(62px)"}}),c=g.z.contestInfo,Z=g.z.priceModifierLabel,k=g.z.couponLoading,S=(0,v.useState)(""),I=S[0],T=S[1],_=null===(n=g.z.appliedCoupon)||void 0===n?void 0:n.code,P=function(e){(0,b.z)((function(){g.z.couponLoading=e}))},D=(0,v.useMemo)((function(){if(!g.z.automaticDiscount)return["",""];var e=g.z.automaticDiscount,n=e.label,t=e.base,i=e.type===y.Lb.PERCENTAGE?"%":"$";return["This discount code cannot be applied when it is less than the ".concat(t).concat(i," ").concat(n," discount already applied."),"A discount code can only be applied if its value is greater than the ".concat(t).concat(i," ").concat(n," discount already applied to your order.")]}),[]),M=D[0],L=D[1],A=function(e){if(!g.z.automaticDiscount)return!0;var n=g.z.submissionPrice,t=n.total-(e.type===y.Lb.AMOUNT?e.value:n.total*(e.value/100));return n.subtotal>t},N=(0,v.useCallback)((0,l.Z)(d().mark((function e(){var n,t,i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c&&I&&!k){e.next=2;break}return e.abrupt("return");case 2:return P(!0),e.next=5,(0,E.ZP)({path:"/api/contests/".concat(c.slug,"/validate-coupon/?coupon_code=").concat(I
1),returnErrors:!0});case 5:if(n=e.sent,t=n.status,i=n.data,P(!1),t===u.RS.HTTP_200_OK){e.next=13;break}a({status:"error",title:"Discount code not valid."}),T(""),e.next=20;break;case 13:if(r=i,T(""),A(r)){e.next=18;break}return a({status:"error",duration:1e4,description:M}),e.abrupt("return");case 18:a({status:"success",title:"Coupon Applied!"}),(0,b.z)((function(){g.z.appliedCoupon=r,g.z.selectedDiscountType=j.xl.COUPON_CODE}));case 20:case"end":return e.stop()}}),e)}))),[c,I,k,a,M]);return(0,s.jsxs)(o.kC,(0,r.Z)((0,i.Z)({position:"relative"},e),{children:[L&&!g.z.appliedCoupon?(0,s.jsx)(o.xu,{position:"absolute",right:"0",transform:"translateY(-100%)",children:(0,s.jsx)(m.Z,{label:L,placement:"left",children:(0,s.jsx)(x.Z,{icon:"infoicon",size:16})})}):null,_?(0,s.jsxs)(o.kC,{justify:"space-between",w:"100%",align:"stretch",m:"15px 0px 7px 0",children:[(0,s.jsxs)(o.kC,{align:"center",border:"1px",borderRadius:"4px",children:[(0,s.jsx)(o.xv,{variant:"fieldsInputValue",borderRight:"1px",p:"3px 10px",children:_}),(0,s.jsx)(o.xv,{variant:"fieldsInputValue",color:"accent1.2",p:"3px 10px",children:Z})]}),(0,s.jsx)(f.Z,{onClick:function(){(0,b.z)((function(){g.z.appliedCoupon=null,g.z.selectedDiscountType=j.xl.AUTOMATIC}))},variant:"flat",children:k?(0,s.jsx)(p.Z,{size:"20px"}):"Clear"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Z,{type:"text",value:_||I,onChange:function(e){var n=e.target.value;return T(n)},placeholder:_||I?"":"Enter Code",onBlur:N,pr:"80px",isDisabled:k||!!_}),(0,s.jsx)(f.Z,(0,r.Z)((0,i.Z)({isDisabled:!I,onClick:N},z),{children:k?(0,s.jsx)(p.Z,{size:"20px"}):"Apply"}))]})]}))})),k=(0,a.Pi)((function(e){return(0,s.jsxs)(o.kC,(0,r.Z)((0,i.Z)({direction:"column"},e),{children:[(0,s.jsx)(o.xv,{variant:"numeralsTiny",children:"Discount Code"}),(0,s.jsx)(Z,{})]}))}))},51005:function(e,n,t){var i=t(8014),r=t(34237),s=t(85085),o=t(14131),a=t(9211);n.Z=(0,s.Pi)((function(e){var n=e.title,t=e.desc,s=e.image,l=e.caption,c=e.button,d=void 0===c?{label:"Continue",variant:"base.6.outline",onPress:function(){return null}}:c;return(0,i.jsxs)(r.kC,{className:"single__option",direction:"column",flex:1,justify:"flex-end",p:{base:"40px 20px",md:"40px"},pos:"relative",_before:{content:'""',background:"linear-gradient(180deg,rgba(43, 43, 44, 0) 0%,rgba(43, 43, 44, 0) 42.48%,rgba(43, 43, 44, 0.1) 58.89%,rgba(43, 43, 44, 0.3) 74.07%,rgba(43, 43, 44, 0.9) 100%)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:8,pointerEvents:"none"},children:[(0,i.jsx)(a.Z,{src:s,alt:n,caption:l,objectFit:"cover",layout:"fill"}),(0,i.jsxs)(r.kC,{zIndex:9,direction:{base:"column",md:"row"},color:"base.6",align:{base:"flex-start",md:"flex-end"},justify:"space-between",w:"100%",children:[(0,i.jsxs)(r.kC,{direction:"column",w:"100%",children:[(0,i.jsx)(r.kC,{w:"100%",justify:"space-between",align:"center",pb:{base:"10px",md:0},mb:{base:"10px",md:0},children:(0,i.jsx)(r.xv,{variant:"titleM",pr:{base:"50px",md:0},wordBreak:"normal",dangerouslySetInnerHTML:{__html:n.replace("/","/&#8203;")}})}),t?(0,i.jsx)(r.xv,{pr:{md:"20px"},mt:{md:"20px"},variant:"paragraphM",children:t}):null]}),(0,i.jsx)(o.Z,{variant:d.variant,onClick:d.onPress,pointerEvents:"auto",mt:{base:"20px",md:"0"},children:d.label})]})]})}))},21391:function(e,n,t){var i=t(43692),r=t(44453),s=t.n(r),o=t(8014),a=t(34237),l=t(60382),c=t(14131),d=t(21350),u=t(85085),x=t(75332),p=t(56168),f=t(46388),h=t(55310),m=t(16576);n.Z=(0,u.Pi)((function(){var e=(0,x.useRouter)(),n=(0,p.useState)(!1),t=n[0],r=n[1],u=function(){var n=(0,i.Z)(s().mark((function n(){var t,i,o;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(f.z.setStatus(h.Pd.DRAFT),(0,d.z)((function(){return f.z.isAllowedToLeave=!0})),t=f.z.id){n.next=10;break}return n.next=6,(0,m.uJ)({setSubmitting:r});case 6:i=n.sent,t=(null===i||void 0===i?void 0:i.id)||null,n.next=12;break;case 10:return n.next=12,(0,m.uJ)();case 12:if(t&&f.z.level&&f.z.type){n.next=14;break}return n.abrupt("return");case 14:o=(0,l.Z)("dynamic",{contest:f.z.contestInfo.slug,submission:"".concat(t),entry_level:f.z.level,entry_type:f.z.type},!0),e.push(o);case 16:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return f.z.restCreditsForUse>=0?null:(0,o.jsxs)(a.kC,{direction:"column",children:[(0,o.jsx)(a.xv,{variant:"numeralsS",mb:"10px",color:"system.error",children:"You\u2019re Over the Limit"}),(0,o.jsx)(a.xv,{mb:"20px",variant:"description",children:"You can buy credits here, or you can finish adding in all the details about the entry at hand and buy more credits in the next step. If you would like to review all of your entries before deciding on adding more credits, you can do so in the next step."}),(0,o.jsx)(c.Z,{variant:"base.1.fill",mb:"5px",size:"md",onClick:u,isLoading:t,children:"Buy More Credits"}),(0,o.jsx)(c.Z,{variant:"base.1.outline",onClick:function(){(0,d.z)((function(){f.z.paymentMethod=h.x6.DEFAULT}))},size:"md",children:"Switch To Pay Per Entry"})]})}))},33211:function(e,n,t){var i=t(8014),r=t(34237),s=t(80174),o=t(17325),a=t(12048),l=[{title:"Entries Open",stages:[s.Lo.EARLY_BIRD_SUBMISSION,s.Lo.REGULAR_SUBMISSION,s.Lo.EXTENDED_SUBMISSION]},{title:"Judging",stages:[s.Lo.ADMIN_VOTING,s.Lo.JUDGE_VOTING]},{title:"People's Vote Award",description:"For each contest, all nominated images will automatically be entered into the People\u2019s Vote Awards where the public will vote on their favorite images within each contest category.",stages:[s.Lo.PEOPLES_CHOICE_AWARDS_VOTING]},{title:"Finalizing Winners",stages:[s.Lo.WINNERS_ANNOUNCEMENT]},{title:"Winners Announced",stages:[s.Lo.FINISHED]}];n.Z=function(e){var n=e.submission,t=(0,o.eT)(n.contest),s=(0,a.rd)("accent1.2"),c=(0,a.rd)("base.6"),d=(0,a.rd)("base_2.4"),u=t?l:l.filter((function(e){return"People's Vote Award"!==e.title}));return(0,i.jsx)(r.kC,{direction:"column",children:u.map((function(e,t){var o=e.title,a=e.description,l=e.stages.includes(n.contest.status);return(0,i.jsxs)(r.kC,{pb:"30px",position:"relative",overflow:"hidden",className:l?"active":"",_last:{".box-number::after":{display:"none"},pb:"0"},css:{"&.active":{".box-number":{backgroundColor:s,color:c,borderColor:s},"& ~ div .box-number":{borderWidth:"1px",borderColor:d,"&::after":{borderColor:d}}," .box-number::after":{borderColor:d}}}
1,children:[(0,i.jsx)(r.kC,{w:"40px",h:"40px",flexShrink:"0",border:"2px solid",borderRadius:"100%",borderColor:"base.1",textAlign:"center",align:"center",justify:"center",mr:"20px",className:"box-number",_after:{content:'""',borderLeft:"1px solid",borderColor:"base.1",height:"100%",top:"40px",left:"19px",position:"absolute"},children:(0,i.jsx)(r.xv,{variant:"overline",children:t+1})}),(0,i.jsxs)(r.xu,{mt:"10px",children:[(0,i.jsx)(r.xv,{variant:"numeralsXS",children:o}),a?(0,i.jsx)(r.xv,{variant:"description",mt:"20px",children:a}):null]})]},"stage-".concat(t))}))})}},89976:function(e,n,t){var i=t(8014),r=t(34237),s=t(40137),o=t(82857),a=t(4822);n.Z=function(e){var n=e.amount,t=e.cashback;if(!n)return null;var l=n.toFixed(2);return(0,i.jsxs)(r.kC,{align:"center",justify:"space-between",mt:"20px",p:"20px",borderRadius:4,bg:"support1.3",children:[(0,i.jsxs)(r.kC,{align:"center",children:[(0,i.jsx)(o.Z,{label:"Each time you submit an entry to any ".concat(a.tV," contest, you will receive ").concat(t,"% of your paid submission back as reward dollars. This will be automatically entered into your account. Reward dollars will be available for use towards the next ").concat(a.tV," submission you apply for."),placement:"top",children:(0,i.jsx)(s.Z,{fill:"base.1",icon:"infoicon",size:18})}),(0,i.jsx)(r.xv,{ml:"10px",variant:"numeralsTiny",children:"Reward Dollars Earned"})]}),(0,i.jsxs)(r.xv,{flexShrink:0,variant:"numeralsTiny",children:["+ $",l]})]})}},42538:function(e,n,t){var i=t(5447),r=t(99728),s=t(8014),o=t(34237),a=t(40137),l=t(59096),c=t(80427),d=t(49430),u=t(85085),x=t(75332),p=t(56168),f=t(46388),h="0.15s";n.Z=(0,u.Pi)((function(e){var n=e.active,t=e.slides,u=e.sidebarExpanded,b=e.setSidebarExpanded,v=e.paymentPage,g=void 0!==v&&v,y=(0,x.useRouter)();return(0,p.useEffect)((function(){g||(b(!0),setTimeout((function(){b(!1)}),2e3))}),[g,b]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.M,{exitBeforeEnter:!0,children:u&&(0,s.jsx)(o.kC,{as:d.E.div,position:"fixed",top:0,left:0,right:0,bottom:0,onClick:function(){return b(!1)},display:{base:"none",md:"flex",lg:"none"},bg:"rgba(0,0,0,.4)",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0}})}),(0,s.jsxs)(o.kC,{flex:1,direction:"column",onClick:function(){return b(!0)},position:"relative",zIndex:1e3,bg:"support1.4",children:[(0,s.jsx)(o.kC,{flex:1,direction:"column",children:t.map((function(e,a){var c;if(null===e||void 0===e?void 0:e.skipNavigation)return null;var d=a<=n,x=d?"base.1":"base.5",p=a>0&&!(null===t||void 0===t||null===(c=t[a-1])||void 0===c?void 0:c.skipNavigation);return(0,s.jsx)(l.Z,{onClick:function(){var e;d&&(e=a,g||f.z.setIndex(e))},labelColor:x,pointerEvents:d&&!g?"auto":"none",icon:(0,s.jsx)(o.kC,{h:"100%",align:"center",position:"relative",_before:p?(0,r.Z)((0,i.Z)({},m),{backgroundColor:"base.1",height:d?"100%":"0%",zIndex:1,transition:"height ".concat(h," ").concat(d?"0s":h," linear")}):{},_after:p?(0,r.Z)((0,i.Z)({},m),{backgroundColor:"base.5",height:"100%",zIndex:0}):{},children:(0,s.jsx)(o.xu,{bg:x,w:"8px",h:"8px",borderRadius:"100%",transition:"background-color ".concat(h," ").concat(d?h:"0s"," linear"),zIndex:2})}),label:(null===e||void 0===e?void 0:e.title)||"",expanded:u},"sidebar-item--".concat(a))}))}),(0,s.jsx)(l.Z,{expanded:u,icon:(0,s.jsx)(a.Z,{icon:"closeicon"}),label:"Cancel",height:"77px",marginBottom:{md:"60px",lg:0},borderTopWidth:1,borderTopColor:"base_2.4",onClick:function(){b(!1),y.back()}})]})]})}));var m={content:'""',position:"absolute",left:"50%",top:"-50%",transform:"translateX(-50%)",width:"1px"}},92343:function(e,n,t){t.d(n,{AP:function(){return je},wA:function(){return Le},n4:function(){return Oe},R2:function(){return ge},i$:function(){return nn},Sj:function(){return tn}});var i,r=t(42299),s=t(8014),o=t(34237),a=t(21350),l=t(85085),c=t(56168),d=t(46388),u=t(14131),x=t(5447),p=t(99728),f=t(27427),h=t(79137),m=t(98480),b=t(82148),v=t(60461),g=t(98935),y=t(48599),j=t(36270),C=function(e){var n=e.title,t=e.children,i=(0,f.Z)(e,["title","children"]);return(0,s.jsxs)(o.xu,(0,p.Z)((0,x.Z)({},i),{children:[(0,s.jsx)(o.xv,{variant:"overline",pb:"5px",borderBottom:"1px",borderBottomColor:"#c4c4c4",mb:"15px",children:n}),(0,s.jsx)(o.kC,{direction:"column",children:t})]}))},w=t(40137),E=t(12048),z=(0,l.Pi)((function(e){var n=e.item,t=e.index,i=e.price,r=e.credits,a=e.categoriesCount,l=e.withError,c=void 0!==l&&l,u=d.z.isCreditsMode,x=a>1,p=(0,E.rd)("base.1");return(0,s.jsxs)(o.kC,{w:"100%",justify:"space-between",align:"center",children:[(0,s.jsx)(o.xv,{variant:"numeralsTiny",userSelect:"none",children:null===n||void 0===n?void 0:n.name}),(0,s.jsxs)(o.kC,{align:"center",children:[u?(0,s.jsx)(m.Z,{credits:r,withError:c}):(0,s.jsx)(b.Z,{normal:i.regular,reduced:i.reduced}),x?(0,s.jsx)(o.xu,{cursor:"pointer",ml:"5px",css:{"& > svg":{fill:p,transition:"fill 0.2s"}},_hover:{"& > svg":{fill:"accent1.2"}},children:(0,s.jsx)(w.Z,{icon:"closeframed",size:20,fill:"base.1",onClick:function(){return d.z.toggleCategory(t,n)}})}):null]})]})})),Z=t(5731),k=t(55310),S=t(19702),I=function(e){var n=e.entryIndex,t=e.noTitle,i=e.noCategories,r=(0,f.Z)(e,["entryIndex","noTitle","noCategories"]),l=(0,E.rd)("base.1");return(0,s.jsxs)(o.kC,(0,p.Z)((0,x.Z)({direction:"column",mt:{base:"20px",lg:0},mb:{base:"20px",lg:"40px"}},r),{children:[(0,s.jsxs)(o.kC,{justify:"space-between",align:"center",children:[(0,s.jsx)(o.kC,{w:"100%",justifyContent:"space-between",alignItems:"flex-start",direction:"column",children:(0,s.jsx)(u.Z,{onClick:function(){(0,a.z)((function(){d.z.entryIndex=n,S.Z.open=!0}))},variant:"base.1.outline",size:"sm",children:"Edit Entry"})}),(0,s.jsx)(Z.V,{trigger:function(e){var n=e.setOpen;return(0,s.jsx)(o.xu,{cursor:"pointer",css:{"& > svg":{fill:l,transition:"fill 0.2s"}},_hover:{"& > svg":{fill:"accent1.2"}},onClick:function(){return n(!0)},children:(0,s.jsx)(w.Z,{icon:"trashicon",size:20})})},body:"This action cannot be undone.",onDelete:function(){if(d.z.removeMediaItem(n),0===d.z.entries.length){var e=d.z.stepIds.indexOf(k.J7.IMAGES);(0,a.z)((function(){return d.z.index=e}))}}})]}),t||i?(0,s.jsxs)(o.xv,{color:"system.error",variant:"description",mt:"10px",children:["It seems you didn't add",t?" a title ":"",t&&i?" and ":"",i?" any categories":"",". Please edit your entry."]}):null]}))},T=(0,v.Pi)((function(e){var n=e.item,t=e.entryIndex,i=e.noTitle,r=e.noCategories,a=n.categories,l=d.z.priceModifier,c=d.z.isCreditsMode,u=d.z.getCreditsPrices,x=(0,y.Xd)(a,d.z.itemPrices,l),p=d.z.itemPrices,f=p.base,h=p.additional,v=(null===l||void 0===l?void 0:l.type)===g.Lb.PERCENTAGE?f-f*(l.base/100):f,w=(null===l||void 0===l?void 0:l.type)===g.Lb.PERCENTAGE?h-h*(l.additional/100):h,E=(0,j.Z)({entry:n}).isCategoryValid,Z=d.z.type?u[d.z.type]:{base:0,additional:0};return(0,s.jsxs)(o.kC,{direction:"column",w:"100%",children:[a.length>0?(0,s.jsx)(C,{title:"Category",children:(0,s.jsx)(z,{item:a[0],index:t,price:{regular:f,reduced:v},credits:Z.base,categoriesCount:a.length,withError:!E(a[0].id)})}):null,a.length>1?(0,s.jsx)(C,{title:"Additional Categories",mt:"20px",children:(0,s.jsx)(o.Kq,{spacing:"15px",children:a.slice(1).map((function(e,n){return(0,s.jsx)(z,{item:e,index:t,price:{regular:h,reduced:w},credits:Z.additional,categoriesCount:a.length,withError:!E(e.id)},n)}))})}):null,(0,s.jsxs)(o.kC,{w:"100%",justify:"space-between",align:"center",mt:"20px",borderTop:"1px",borderTopColor:"#c4c4c4",pt:"15px",userSelect:"none",children:[(0,s.jsx)(o.xv,{variant:"numeralsTiny",children:"Total Price"}),(0,s.jsx)(o.kC,{children:c?(0,s.jsx)(m.Z,{credits:(0,y.rQ)(a,d.z.type,u)}):(0,s.jsx)(b.Z,{normal:x.total,reduced:x.subtotal})})]}),(0,s.jsx)(I,{entryIndex:t,noTitle:i,noCategories:r,mb:"0",mt:"20px"})]})})),_=t(71246),P=t(77567),D=t(90319),M=t(39266),L=function(e){var n=e.index,t=(0,f.Z)(e,["index"]);return(0,s.jsx)(o.kC,(0,p.Z)((0,x.Z)({w:"24px",align:"center",justify:"center",h:"24px",borderRadius:"12px",borderWidth:"1px",borderColor:"grey.3",flexShrink:0,display:{base:"none",md:"flex"},mr:"20px"},t),{children:(0,s.jsx)(o.xv,{variant:"fieldsTitleS",children:n+1})}))},A=(0,l.Pi)((function(e){var n=e.index,t=e.item,i=(0,_.Z)().isMobile,r=t.categories,a=d.z.priceModifier,l=d.z.isCreditsMode,c=d.z.getCreditsPrices,u=!t.title,x=!t.categories.length,p=u||x,f=(0,j.Z)({entry:t}).isEntryValid,h=(0,y.Xd)(r,d.z.itemPrices,a),v=(0,s.jsx)(w.Z,{icon:"arrowicon",fill:"base.1",size:16,transform:"rotate(-90deg)"});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.xu,{position:"absolute",display:{base:"none",md:"block"},top:"0",left:"0px",w:"0px",bg:"accent1.2",h:"100%",_groupHover:{w:"5px"},transition:(0,M.eR)("width")}),f?null:(0,s.jsx)(o.xu,{position:"absolute",display:{base:"none",md:"block"},top:"0",right:"0px",w:"2px",bg:"system.error",h:"100%"}),(0,s.jsxs)(o.kC,{w:"100%",align:"center",children:[(0,s.jsxs)(o.kC,{align:"center",w:"100%",mr:{base:"0",md:"20px"},flex:1,children:[(0,s.jsx)(L,{index:n}),(0,s.jsxs)(o.xu,{w:"100px",h:"100px",position:"relative",mr:"20px",children:[(0,s.jsx)(P.Z,{src:(0,D.Jn)(t.media[0].sizes.small.url),layout:"fill",alt:t.title,objectFit:"contain",style:{opacity:p?.5:1}}),p?(0,s.jsx)(o.kC,{zIndex:3,align:"center",justify:"center",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",children:(0,s.jsx)(w.Z,{icon:"erroricon",size:24,fill:"base.6"})}):null]}),(0,s.jsxs)(o.kC,{align:{base:"stretch",md:"center"},flex:1,direction:{base:"column",md:"row"},children:[(0,s.jsxs)(o.kC,{flex:1,justify:"space-between",mb:{base:"10px",md:"0"},children:[(0,s.jsxs)(o.kC,{direction:"column",flex:1,mr:"10px",children:[(0,s.jsx)(o.xv,{variant:"numeralsTiny",textAlign:"left",children:t.title}),t.media.length>1?(0,s.jsx)(N,{count:t.media.length-1,mt:"10px"}):null]}),i?v:null]}),(0,s.jsxs)(o.kC,{align:"center",justify:{base:"space-between",md:"flex-start"},flex:{base:1,md:"initial"},pt:{base:"10px",md:"0"},borderTop:{base:"1px",md:"none"},borderTopColor:"support1.3",children:[(0,s.jsxs)(o.Ct,{bg:{base:"transparent",md:"support2.2"},color:"base.1",mr:{base:"0",md:"20px"},p:{base:"0",md:"4px 8px"},children:[t.categories.length," Categor",t.categories.length>1?"ies":"y"]}),l?(0,s.jsx)(m.Z,{credits:(0,y.rQ)(r,d.z.type,c),withError:!f}):(0,s.jsx)(b.Z,{normal:h.total,reduced:h.subtotal})]})]})]}),i?null:v]})]})})),N=function(e){var n=e.count,t=void 0===n?0:n,i=e.color,r=void 0===i?"base.1":i,a=(0,f.Z)(e,["count","color"]);return(0,s.jsxs)(o.kC,(0,p.Z)((0,x.Z)({align:"center"},a),{children:[(0,s.jsx)(w.Z,{icon:"galleryIcon",fill:r,size:12}),(0,s.jsxs)(o.xv,{variant:"numeralsTiny",fontSize:"10px",ml:"2px",color:r,children:["+",t]})]}))},O=(0,l.Pi)((function(e){var n=e.item,t=e.index,i=e.defaultExpanded,r=void 0!==i&&i,a=(0,c.useState)(r),l=a[0],d=a[1],u=(0,_.Z)().isMobile,x=function(){return d(!1)},p=!n.title,f=!n.categories.length,m=p||f,b=(0,j.Z)({entry:n}).isEntryValid,v=(0,s.jsx)(w.Z,{icon:"arrowicon",fill:"base.1",size:16,transform:"rotate(90deg)"});return(0,s.jsx)(o.xu,{bg:t%2===0?"base.6":void 0,position:"relative",children:(0,s.jsxs)(o.kC,{direction:"column",children:[(0,s.jsx)(o.xu,{display:"grid",gridTemplateRows:l?"1fr":"0fr",transition:"grid-template-rows 0.3s ease",children:(0,s.jsx)(o.xu,{overflow:"hidden",children:(0,s.jsx)(o.xu,{p:{base:"0 20px 40px",md:"30px 20px"},children:(0,s.jsxs)(o.kC,{align:"flex-start",direction:{base:"column",md:"row"},children:[u?(0,s.jsx)(o.xu,{as:"button",w:"100%",p:"20px 0",onClick:x,children:(0,s.jsxs)(o.kC,{w:"100%",justify:"space-between",children:[(0,s.jsx)(o.xv,{variant:"ctaSecondary",children:"Collapse Entry"}),v]})}):null,(0,s.jsxs)(o.Kq,{direction:{base:"column",md:"row"},w:"100%",spacing:{base:"20px",md:"40px"},align:{base:"stretch",md:"flex-start"},children:[u?null:(0,s.jsx)(L,{index:t,mr:0}),(0,s.jsx)(o.kC,{direction:"column",children:(0,s.jsxs)(o.kC,{direction:"column",position:"relative",alignSelf:"flex-start",w:"100%",children:[(0,s.jsxs)(o.xu,{w:{base:"100%",md:"200px"},position:"relative",children:[n.media.length>1?(0,s.jsx)(N,{count:n.media.length-1,position:"absolute",display:{base:"flex",md:"none"},top:"20px",left:"20px",zIndex:3,color:"black",bg:"base.6",p:"3px 5px",borderRadius:"4px"}):null,(0,s.jsx)(h.Z,{item:n})]}),m?(0,s.jsx)(o.kC,{zIndex:3,align:"center",justify:"center",bg:"rgba(169, 169, 162, .4)",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",children:(0,s.jsx)(w.Z,{icon:"erroricon",size:50,fill:"base.6"})}):null]})}),(0,s.jsxs)(o.kC,{direction:"column",flex:1,alignSelf:"stretch",children:[(0,s.jsxs)(o.kC,{as:"button",w:"100%",align:"center",justify:"space-between",pt:{base:"0",md:"30px"},mt:{base:"0",md:"-30px"},pb:"20px",textAlign:"left",title:"Click to Collapse",onClick:x,children:[(0,s.jsx)(o.xv,{variant:"numeralsS",children:n.title}),u?null:v]}),n.desc?(0,s.jsx)(o.xv,{variant:"paragraphM",mb:"20px",children:n.desc}):null,(0,s.jsx)(o.kC,{direction:"column",children:(0,s.jsx)(T,{noTitle:p,noCategories:f,item:n,entryIndex:t})})]})]})]})})})}),(0,s.jsx)(o.xu,{display:"grid",gridTemplateRows:l?"0fr":"1fr",opacity:l?0:1,transition:"grid-template-rows 0.2s ease, opacity 0.15s ease",children:(0,s.jsx)(o.xu,{overflow:"hidden",children:(0,s.jsxs)(o.xu,{as:"button",w:"100%",p:"10px 20px",position:"relative",role:"group",title:"Click to Expand",textAlign:"left",onClick:function(){return d(!0)},children:[(0,s.jsx)(A,{item:n,index:t}),!b||m?(0,s.jsx)(o.xu,{position:"absolute",display:{base:"none",md:"block"},top:"0",right:"0px",w:"2px",bg:"system.error",h:"100%"}):null]})})})]})})})),R=function(e){var n=e.children,t=(0,f.Z)(e,["children"]);return(0,s.jsx)(o.xu,(0,p.Z)((0,x.Z)({overflow:"hidden auto",h:"100%",position:"relative",sx:{"&::-webkit-scrollbar":{width:"4px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"var(--chakra-colors-base-1)",borderRadius:"0"},"&:hover::-webkit-scrollbar":{width:"6px"},scrollbarWidth:"thin",scrollbarColor:"var(--chakra-colors-base-1) transparent",overscrollBehavior:"contain"}},t),{children:n}))},F=t(12938),U=t(16576),V=t(89976),B=t(45178),W=t(47011),G=t(17325),H=t(23069),Y=t(78846),J=t(82857),q=t(4822),Q=(0,l.Pi)((function(){var e=(0,W.L)().user,n=(0,G.Wy)(e.profile.wallet||0),t=!e.profile.wallet,i=d.z.itemPrices.cashback;return(0,s.jsxs)(o.kC,{flex:1,direction:"column",children:[(0,s.jsx)(o.xv,{variant:"numeralsS",display:{base:"none",lg:"flex"},mb:"20px",children:"Review Your Submission Details"}),(0,s.jsx)(H.Z,{mb:"10px",bg:"base_2.4",p:"15px",borderRadius:"4px"}),(0,s.jsxs)(o.xu,{position:"relative",children:[(0,s.jsx)(o.xu,{position:"absolute",top:"15p
1x",right:"15px",children:(0,s.jsx)(J.Z,{label:"Each time you submit an entry to any ".concat(q.tV," contest, you will receive ").concat(i,"% of your paid submission back as reward dollars. This will be automatically entered into your account. Reward dollars will be available for use towards the next ").concat(q.tV," submission you apply for."),placement:"left",children:(0,s.jsx)(w.Z,{icon:"infoicon",pointerEvents:"auto",size:16})})}),(0,s.jsxs)(o.kC,{direction:"column",padding:"15px",border:"1px",borderRadius:"4px",borderColor:"base_2.3",mb:"20px",onClick:function(){return e=!d.z.useWallet,void(0,a.z)((function(){d.z.useWallet=e}));var e},cursor:"pointer",userSelect:"none",bg:d.z.useWallet?"accent1.3":"transparent",css:"\n            .chakra-checkbox__control {\n              border-color: black !important;\n            }\n          ",opacity:t?.5:1,pointerEvents:t?"none":"auto",children:[(0,s.jsxs)(o.xv,{variant:"numeralsTiny",mb:"10px",pointerEvents:"none",flex:1,mr:"30px",children:["You have $",n," Reward Dollars available for use"]}),(0,s.jsx)(Y.Z,{label:"Apply Reward Dollars to this Entry",font:"fieldsTitleS",isChecked:d.z.useWallet,pointerEvents:"none"})]})]})]})})),K=t(81771),X=(0,l.Pi)((function(){var e,n=d.z.submissionPrice,t=d.z.priceModifier,i=d.z.itemPrices,r=d.z.finalPrice,l=n.subtotal,c=n.total,u=[];t&&u.push({label:"".concat(t.label," Discount"),value:n.subtotal-n.total});var x=(0,U.Hd)(l)?l:c;if(d.z.useWallet&&(null===(e=d.z.user)||void 0===e?void 0:e.profile.wallet)){var p=Math.min(d.z.user.profile.wallet/100,x);p>0&&u.push({label:"Reward Dollars Applied",value:-1*+p})}var f=i.cashback,h=x*(f/100);return(0,s.jsxs)(o.kC,{p:{base:"20px",lg:"35px 60px 35px 55px"},direction:{base:"column",md:"row",lg:"column"},borderTop:{base:"1px",lg:"0px"},borderTopColor:"base_2.4",mt:{base:"20px",lg:0},children:[(0,s.jsx)(o.xu,{flex:1,mr:{base:"0",md:"20px",lg:"0"},children:(0,s.jsx)(Q,{})}),(0,s.jsxs)(o.kC,{direction:"column",flex:{base:"initial",md:"1",lg:"initial"},ml:{base:"0",md:"20px",lg:"0"},children:[(0,s.jsx)(B.Z,{entryCount:d.z.entriesLength,rows:u,regular:c.toFixed(2),reduced:r.toFixed(2)}),(0,s.jsx)(V.Z,{amount:h,cashback:f}),d.z.isSubMinPayment&&(0,s.jsx)(K.Z,{mt:"20px",isChecked:d.z.termsAccepted,error:d.z.termsError,onChange:function(){return(0,a.z)((function(){d.z.termsAccepted=!d.z.termsAccepted,d.z.termsAccepted&&(d.z.termsError=!1)}))}})]})]})})),$=t(21391),ee=(0,l.Pi)((function(){var e=d.z.availableBundles,n=d.z.submissionPrice,t=d.z.submissionCredits,i=d.z.level,r=d.z.type,a=d.z.availableCreditsForUse,l=(0,c.useMemo)((function(){if(!r||!i)return 0;var s=e.filter((function(e){return e.entry_level===i&&e.entry_type.includes(r)})),o=0,a=0;s.forEach((function(e){o+=e.credits,a+=e.paid_amount}));var l=(o>0?a/o:0)*t;return(0,G.nP)(n.total)-l}),[e,t,n,i,r]);return l<=0?null:(0,s.jsxs)(o.kC,{border:"1px solid",borderColor:"base_2.3",bg:"base_2.4",borderRadius:"4px",p:"15px",align:"center",children:[(0,s.jsx)(w.Z,{icon:"congrats",size:"32px"}),(0,s.jsxs)(o.kC,{ml:"10px",align:"flex-start",direction:"column",children:[(0,s.jsx)(o.xv,{variant:"numeralsTiny",children:a>=t?"You\u2019re Saving":"Potential Savings"}),(0,s.jsx)(o.xv,{variant:"fieldsTitleS",color:"base_2.2",mt:"0",children:"Compared to Pay Per Entry"})]}),(0,s.jsx)(b.Z,{ml:"auto",normal:+(0,G.Wy)(l)})]})})),ne=(0,l.Pi)((function(){var e=d.z.submissionCredits;return(0,s.jsxs)(o.kC,{p:{base:"20px",lg:"35px 60px 35px 55px"},direction:"column",borderTop:{base:"1px",lg:"0px"},borderTopColor:"base_2.4",mt:{base:"20px",lg:0},children:[(0,s.jsx)(o.xv,{variant:"numeralsS",display:{base:"none",lg:"flex"},mb:"20px",children:"Review Your Submission Details"}),(0,s.jsxs)(o.kC,{align:"center",justify:"space-between",mb:"30px",pt:"20px",borderTop:"1px",borderTopColor:"base.1",children:[(0,s.jsxs)(o.kC,{gap:"10px",align:"center",children:[(0,s.jsx)(w.Z,{icon:"creditsIcon"}),(0,s.jsx)(o.xv,{variant:"fieldsInputValue",children:"Credits:"})]}),(0,s.jsx)(m.Z,{credits:e})]}),(0,s.jsx)($.Z,{}),(0,s.jsx)(o.xu,{mt:"20px",children:(0,s.jsx)(ee,{})}),(0,s.jsx)(K.Z,{mt:"20px",isChecked:d.z.termsAccepted,error:d.z.termsError,onChange:function(){return(0,a.z)((function(){d.z.termsAccepted=!d.z.termsAccepted,d.z.termsAccepted&&(d.z.termsError=!1)}))}})]})})),te=t(80174),ie=t(63717),re=t(86584),se=t(11860),oe=t(74288),ae=t.n(oe),le=function(e){var n=e.image;return(0,s.jsx)(o.kC,{p:"5px",m:"auto",align:"center",justify:"center",maxH:"100%",children:(0,s.jsx)(o.xu,{children:(0,s.jsx)(P.Z,{src:(0,D.Jn)(n.sizes.medium.url),width:120,height:120,alt:"media--".concat(n.id),objectFit:"contain"})})})},ce=function(e){var n=e.image,t=n.sizes.medium,i=t.url,r=t.width,a=t.height;return(0,s.jsx)(o.kC,{w:"100%",p:"5px",m:"auto",overflow:"hidden",justify:"center",align:"center",h:{base:"300px",lg:"60vh"},children:(0,s.jsx)(o.kC,{h:"100%",align:"center",justify:"center",w:"100%",position:"relative",css:"\n          * {\n            width: 100% !important;\n            height: 100% !important;\n          }\n        ",children:(0,s.jsx)(o.xu,{children:(0,s.jsx)(P.Z,{src:(0,D.Jn)(i),width:r,height:a,layout:"responsive",alt:"media--".concat(n.id),objectFit:"contain"})})})})},de=function(e){var n=e.media;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ae(),{items:n.map((function(e){return{original:(0,D.Jn)(e.url),thumbnail:(0,D.Jn)(e.sizes.small.url),renderItem:function(){return(0,s.jsx)(ce,{image:e})},renderThumbInner:function(){return(0,s.jsx)(le,{image:e})}}})),showNav:!1,showFullscreenButton:!1,showPlayButton:!1,showThumbnails:n.length>1,disableKeyDown:!0})})},ue=t(53963),xe=t(24113),pe=t(65090),fe=t(99172),he=t(41984),me=t(5995),be={position:"absolute",top:"20px",left:"-22px",transform:"translateX(-100%)"},ve=(0,l.Pi)((function(e){var n=e.media,t=e.index,i=d.z.contestInfo,r=i.categories,l=i.categories_description,u=d.z.entryIndex,x=d.z.type,p=(0,c.useRef)(null);(0,c.useEffect)((function(){p.current&&(0,ie.Z)(p.current)}),[]),(0,c.useEffect)((function(){p.current&&ie.Z.update(p.current)}),[u]);
1var f=function(e,n){return d.z.updateEntryData(e,n)},h=(0,j.Z)({entry:d.z.currentEntry}).isCategoryValid,m=(0,_.Z)().isMobile,b="SERIES"===x?"Series ":"";return(0,s.jsxs)(o.kC,{p:{base:"20px",md:"40px 60px 60px 60px"},flexWrap:"wrap",maxW:"100%",children:[(0,s.jsx)(o.kC,{direction:"column",w:{base:"100%",lg:"50%"},maxW:"100%",mb:{base:"40px",lg:0},children:(0,s.jsxs)(o.xu,{maxW:"100%",position:"relative",children:[(0,s.jsx)(de,{media:n}),(0,s.jsx)(o.xu,{position:"absolute",right:{base:0,md:"-15px"},top:{base:"0",md:"-15px"},children:(0,s.jsx)(Z.V,{trigger:function(e){var n=e.setOpen;return(0,s.jsx)(re.hU,{icon:(0,s.jsx)(w.Z,{icon:"trashicon",size:20,fill:"base.6"}),onClick:function(){return n(!0)},bg:"system.error","aria-label":"Remove Entry",border:"0",borderRadius:"50%",minW:"30px",minH:"30px",height:"30px",w:"30px"})},body:"This action cannot be undone.",onDelete:function(){if((0,a.z)((function(){d.z.removeCurrentEntry(),S.Z.open&&(S.Z.open=!1)})),0===d.z.entries.length){var e=d.z.stepIds.indexOf(k.J7.IMAGES);(0,a.z)((function(){return d.z.index=e}))}}})})]})}),(0,s.jsxs)(o.kC,{direction:"column",pl:{base:0,lg:"95px"},w:{base:"100%",lg:"44%"},children:[(0,s.jsxs)(o.xu,{children:[(0,s.jsxs)(se.NI,{id:"title",isInvalid:d.z.isEntryValid.validationPassed&&!d.z.isEntryValid.isTitleValid,children:[(0,s.jsx)(J.Z,{label:'If you do not title your image please put "Untitled"',containerProps:be,children:(0,s.jsx)(w.Z,{icon:"infoicon",size:18})}),(0,s.jsx)(xe.Z,{type:"text",value:d.z.currentEntry.title,placeholder:"".concat(b,"Title *"),onChange:function(e){return f("title",e.target.value)},borderBottomColor:d.z.currentEntry.title.length<=45?"base.1":"system.error"}),(0,s.jsx)(se.Q6,{color:d.z.currentEntry.title.length<=45?"base_2.500":"system.error",children:"".concat(d.z.currentEntry.title.length," / 45 characters")}),(0,s.jsx)(se.J1,{children:"Required"})]}),(0,s.jsxs)(se.NI,{id:"desc",mt:"10px",mb:"30px",position:"relative",children:[(0,s.jsx)(J.Z,{label:"This field is optional and you will not be penalized for leaving it blank. However, if you feel that text may add value to your image(s) for the sake of the judges, please be sure to add it.",containerProps:be,children:(0,s.jsx)(w.Z,{icon:"infoicon",size:18})}),(0,s.jsx)(ue.Z,{ref:p,rows:1,value:d.z.currentEntry.desc,placeholder:"".concat(b,"Description (Optional)"),onChange:function(e){return f("desc",e.target.value)},size:"lg",borderBottomColor:d.z.currentEntry.desc.length<=300?"base.1":"system.error"}),(0,s.jsx)(se.Q6,{color:d.z.currentEntry.desc.length<=300?"base_2.500":"system.error",children:"".concat(d.z.currentEntry.desc.length," / 300 characters")})]})]}),(0,s.jsx)(o.xv,{variant:"subtitleSpacedOutL",mb:"20px",children:"Choose Category *"}),l&&(0,s.jsx)(o.xv,{variant:"paragraphM",mb:"20px",children:l}),(0,s.jsxs)(se.NI,{id:"categories",isInvalid:d.z.isEntryValid.validationPassed&&!d.z.isEntryValid.isCategoriesValid,children:[r.length>1?(0,s.jsx)(o.MI,{columns:{base:1,md:2},columnGap:{base:"8px",md:55},children:(0,pe.Vf)(r).map((function(e){var n=e.id,i=e.name,r=e.description,a=d.z.entries[t].categories.findIndex((function(n){return n.id===e.id}));return(0,s.jsxs)(o.kC,{justify:"space-between",width:"100%",mb:"10px",align:"center",children:[(0,s.jsx)(Y.Z,{label:i,isChecked:a>-1,onChange:function(){return d.z.toggleCategory(t,e)},isInvalid:!h(e.id)}),r?(0,s.jsx)(J.Z,{label:r,placement:"left",children:(0,s.jsx)(o.xu,{alignSelf:"bottom",children:(0,s.jsx)(w.Z,{icon:"infoicon",size:18,fill:"base_2.1"})})}):null]},n)}))}):null,(0,s.jsx)(se.J1,{children:"Select at least 1 category"})]}),m?(0,s.jsx)(o.kC,{mt:"20px",direction:"column",children:d.z.isCreditsMode?(0,s.jsx)(me.Z,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(fe.Z,{}),(0,s.jsx)(he.Z,{})]})}):null]})]})})),ge=(0,l.Pi)((function(){var e=d.z.type,n=d.z.media,t=d.z.entryIndex;return e===te.UZ.SINGLE?(0,s.jsx)(ve,{media:[n[t]],index:t}):(0,s.jsx)(ve,{media:n,index:0})})),ye=(0,l.Pi)((function(){var e=d.z.entries;return(0,s.jsx)(o.xu,{w:"100%",overflow:"hidden",flex:1,children:e.map((function(n,t){return(0,s.jsx)(O,{item:n,index:t,defaultExpanded:1===e.length},t)}
1))})})),je=(0,l.Pi)((function(){var e,n=(0,_.Z)().tabletDown;(0,c.useEffect)((function(){return(0,a.U5)((function(){return S.Z.open}),(function(e){document.body.style.overflow=e?"hidden":""}),{fireImmediately:!0})}),[]);var t=(e={},(0,r.Z)(e,k.x6.DEFAULT,(0,s.jsx)(X,{})),(0,r.Z)(e,k.x6.CREDITS,(0,s.jsx)(ne,{})),e)[d.z.paymentMethod];return(0,s.jsxs)(o.kC,{position:"relative",direction:{base:"column",lg:"row"},h:"100%",overflow:"hidden",children:[n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.xu,{p:"20px",bg:"support1.4",children:(0,s.jsx)(o.xv,{variant:"numeralsS",children:"Review Your Submission Details"})}),(0,s.jsx)(ye,{}),t,(0,s.jsx)(o.xu,{borderTop:"1px",borderTopColor:"base_2.4",p:"20px",children:(0,s.jsx)(F.Z,{})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.xu,{h:"100%",overflow:"hidden",position:"relative",flex:1,borderRight:"1px solid",borderColor:"base_2.4",children:(0,s.jsx)(R,{children:(0,s.jsx)(ye,{})})}),(0,s.jsx)(o.xu,{w:"400px",flexShrink:0,children:(0,s.jsx)(R,{children:t})})]}),S.Z.open&&(0,s.jsxs)(o.kC,{direction:"column",bg:"support1.4",position:{base:"fixed",lg:"absolute"},top:{base:"59px",lg:0},left:0,w:"full",h:{base:"calc(100vh - 59px)",lg:"full"},zIndex:1e3,overflow:"hidden",children:[(0,s.jsx)(R,{flex:1,minH:"0",h:"auto",children:(0,s.jsx)(ge,{})}),(0,s.jsx)(o.xu,{borderTop:"1px",borderTopColor:"base_2.4",p:"20px",display:{base:"block",lg:"none"},children:(0,s.jsx)(u.Z,{variant:"base.1.fill",size:"md",w:"100%",onClick:function(){return(0,a.z)((function(){S.Z.open=!1}))},children:"Close"})})]})]})})),Ce=t(8403),we=t(51578),Ee=t(26571),ze=t(63940),Ze=(0,c.forwardRef)((function(e,n){var t=e.item,i=e.index,r=e.sortable,a=void 0!==r&&r,l=(0,f.Z)(e,["item","index","sortable"]),c=(0,_.Z)().isMobile,u=t.sizes.medium.url;return(0,s.jsxs)(s.Fragment,{children:[a?(0,s.jsx)(o.kC,{className:"order",pos:"absolute",backgroundColor:"support2.2",top:"15px",left:"15px",zIndex:9,align:"center",justify:"center",borderRadius:"30px",w:"30px",h:"30px",onClick:function(){return d.z.removeMediaItem(i)},children:(0,s.jsx)(o.xv,{variant:"fieldsDescription",children:i+1})}):null,(0,s.jsx)(Z.V,{trigger:function(e){var n=e.setOpen;return(0,s.jsx)(o.kC,{className:"delete",pos:"absolute",backgroundColor:"system.error",top:"15px",right:"15px",zIndex:9,align:"center",justify:"center",borderRadius:"30px",w:"30px",h:"30px",cursor:"pointer",display:{base:"flex",lg:"none"},_groupHover:{display:"flex"},onClick:function(){return n(!0)},children:(0,s.jsx)(w.Z,{icon:"trashicon",size:20,fill:"base.6"})})},body:"This action cannot be undone.",onDelete:function(){return d.z.removeMediaItem(i)}}),(0,s.jsxs)(o.kC,(0,p.Z)((0,x.Z)({w:"100%",align:"center",p:"20px"},c?{}:(0,x.Z)({},l)),{ref:n,children:[t.loading?(0,s.jsx)(ze.Z,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",align:"center",justify:"center",zIndex:9,backgroundColor:"support1.4",opacity:.7}):null,(0,s.jsx)(o.xu,{w:"100%",position:"relative",pb:"100%",children:(0,s.jsx)(P.Z,{src:(null===t||void 0===t?void 0:t.placeholder)||(0,D.Jn)(u),alt:"submission--".concat(t.id),objectFit:"contain",layout:"fill"})}),(0,s.jsx)(o.kC,(0,p.Z)((0,x.Z)({},c?(0,x.Z)({},l):{}),{w:"40px",h:"40px",bg:"base.1",position:"absolute",bottom:"0",right:"0",align:"center",justify:"center",display:{base:"flex",md:"none"},children:(0,s.jsx)(w.Z,{icon:"draggableicon",fill:"base.6"})}))]}))]})})),ke=t(56315),Se=t(65034),Ie=function(e){var n=(0,ke.Z)({},e),t=(0,Ee.nB)(n.item),i=t.attributes,r=t.listeners,a=t.isDragging,l=t.setNodeRef,c=t.transform,d=t.transition,u={transformOrigin:Se.ux.Transform.toString(c),transition:d};0!==t.index&&1!==t.index||(u.transformOrigin="top left"),0!==t.index||t.isSorting||(u.transition="none");var f=(0,x.Z)({transform:Se.ux.Transform.toString(c),opacity:+!a},u);return(0,s.jsx)(o.kC,{borderColor:"base_2.3",borderStyle:"dashed",borderRadius:"4px",borderWidth:1,flexBasis:"100%",align:"center",pos:"relative",mb:"40px",role:"group",boxSizing:"border-box",style:f,children:(0,s.jsx)(Ze,(0,p.Z)((0,x.Z)((0,p.Z)((0,x.Z)({},n),{ref:l}),i,r),{sortable:!0}))})},Te=function(e){var n=e.children;
1return(0,s.jsx)(o.kC,{borderColor:{base:"base_2.3",lg:"support1.4"},borderStyle:"dashed",borderWidth:1,flexBasis:{base:"100%",md:"29.25%",lg:"21.25%"},align:"center",pos:"relative",mb:{base:"20px",md:"40px"},role:"group",boxSizing:"border-box",_hover:{borderColor:"base_2.3"},borderRadius:"4px",children:n})},_e=(0,l.Pi)((function(e){var n=e.sortable,t=void 0!==n&&n,i=d.z.media,r=(0,c.useState)(null),a=r[0],l=r[1],u=(0,we.Dy)((0,we.VT)(we.MA),(0,we.VT)(we.LO)),x=i.findIndex((function(e){return e.id===a})),p=i[x];return t?(0,s.jsx)(we.LB,{sensors:u,collisionDetection:we.pE,onDragStart:function(e){l(+e.active.id)},onDragEnd:function(e){var n=e.active,t=e.over;if(n.id!==(null===t||void 0===t?void 0:t.id)&&(null===t||void 0===t?void 0:t.id)){var r=i.findIndex((function(e){return e.id===+n.id})),s=i.findIndex((function(e){return e.id===+t.id}));d.z.sortMedia(r,s)}l(null)},onDragCancel:function(){l(null)},children:(0,s.jsxs)(Ee.Fo,{items:i,strategy:Ee.U2,children:[(0,s.jsxs)(o.kC,{align:"flex-start",p:{base:"20px",md:"40px 20px 40px 60px"},justifyContent:"space-between",flexWrap:"wrap",children:[(0,s.jsxs)(o.kC,{flexBasis:{base:"100%",md:"34%"},wrap:"wrap",children:[(0,s.jsx)(o.xv,{variant:"fieldsDescription",mb:"55px",w:"100%",children:"Cover Image"}),(0,s.jsx)(Ie,{item:i[0],index:0},"".concat(i[0].id,"+0"))]}),(0,s.jsxs)(o.kC,{align:"stretch",wrap:"wrap",justifyContent:"flex-start",flexBasis:{base:"100%",md:"60%",lg:"50%"},children:[(0,s.jsx)(o.xv,{variant:"fieldsDescription",mb:"55px",w:"100%",children:"Arrange in the order you would like your series to display"}),i.slice(1).map((function(e,n){return(0,s.jsx)(o.kC,{flexBasis:{base:"calc(100% / 2 - 10px)",md:"calc(100% / 3 - 40px)"},mr:{base:"20px",md:"40px"},css:"\n                    @media screen and (max-width: 767px) {\n                      &:nth-child(2n + 1) {\n                        margin-right: 0;\n                      }\n                    }\n                  ",children:(0,s.jsx)(Ie,{item:e,index:n+1})},"".concat(e.id,"+").concat(n))}))]})]}),(0,s.jsx)(we.y9,{adjustScale:!0,children:a?(0,s.jsx)(Ze,{item:p,index:x}):null})]})}):(0,s.jsxs)(o.kC,{align:"stretch",className:"sub-media-grid",wrap:"wrap",padding:{base:"20px",md:"40px 60px"},w:"100%",css:{gap:"5%"},children:[(0,s.jsx)(o.xv,{variant:"fieldsDescription",mb:{base:"20px",md:"55px"},w:"100%",children:"When you have finished uploading your images, please click continue to move on to the next step. Your progress will automatically save."}),i.map((function(e,n){return(0,s.jsx)(Te,{children:(0,s.jsx)(Ze,{item:e,index:n})},n)}))]})})),Pe=(0,l.Pi)((function(){var e=d.z.type;return(0,s.jsx)(_e,{sortable:e===te.UZ.SERIES})})),De=t(82125),Me=(i={},(0,r.Z)(i,te.UZ.SERIES,{title:"You may upload up to ".concat(q.Ie," images (and a minimum of 2) for your series submission. "),paragraphs:["You will be able to edit the order of your images and enter titleXS and a series description on the next screen. The final step will be paying for your entry.",'To get started, simply drag and drop all of the images you plan to submit in this window or use the "Upload Images" Button.',"One series can be submitted at a time.",De.f.text]}),(0,r.Z)(i,te.UZ.SINGLE,{title:"You may upload up to ".concat(q.IV," single images to this page. Each image will create a separate entry. "),paragraphs:["On the following screens, you will be able to choose categories and add descriptions and titles.","At the end of the submission process, you will pay for all your entries at the same time.",'To get started, simply drag and drop all of the images you plan to submit in this window or use the "Upload Images" Button.',De.f.text]}),i),Le=(0,l.Pi)((function(e){var n=e.getRootProps,t=e.getInputProps,i=e.isDragActive,r=e.fileRejections,a=d.z.media,l=d.z.type,u=(0,_.Z)().isMobile,f=(0,Ce.Z)({containerStyle:{width:"100%",padding:u?"10px 20px":"10px 20px 10px 70px",transform:"translateY(62px)"}}),h=Me[l||te.UZ.SINGLE],m=h.title,b=h.paragraphs;return(0,c.useEffect)((function(){var e=(r||[]).map((function(e){return e.errors.map((function(e){return(0,D.hi)(e.code)}))})),n=Array.from(new Set(e.flat()).values());(null===n||void 0===n?void 0:n.length)&&f({status:"error",title:e.flat().map((function(e,n){return(0,s.jsx)("span",{children:e},n)}))})}),[r,f]),(0,s.jsx)(o.kC,{position:"relative",direction:"column",flex:1,children:a.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Pe,{}),(0,s.jsx)(o.kC,(0,p.Z)((0,x.Z)({},n()),{children:(0,s.jsx)("input",(0,x.Z)({},t()))}))]}):(0,s.jsxs)(o.kC,(0,p.Z)((0,x.Z)({flex:1},n()),{children:[(0,s.jsx)("input",(0,x.Z)({},t())),(0,s.jsxs)(o.kC,{direction:"column",flex:1,align:"center",justify:"center",p:"20px",children:[(0,s.jsx)(o.xu,{mb:"20px",children:(0,s.jsx)(w.Z,{icon:"upload",size:50})}),i?(0,s.jsx)(o.xv,{maxW:"450px",variant:"numeralsS",align:"center",children:"Drop your images here"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.xv,{maxW:"450px",variant:"numeralsS",align:"center",mb:"10px",children:m}),b.map((function(e,n){return(0,s.jsx)(o.xv,{maxW:"560px",w:"100%",variant:"subtitleS",align:"center",mt:"10px",children:e},"paragraph--".concat(n))})),u?(0,s.jsxs)(o.kC,{mt:"20px",direction:"column",w:"100%",textAlign:"center",children:[(0,s.jsx)(o.xv,{mb:"10px",variant:"numeralsS",children:"Image Requirements:"}),(0,s.jsx)(o.xv,{children:"Allowed: JPEG, PNG"}),(0,s.jsxs)(o.xv,{children:["Max. File Size: ",D.C1," MB"]}),(0,s.jsxs)(o.xv,{children:["Min. Size (Longest Edge): ",D.sN,"px"]})]}):null]})]})]}))})})),Ae=t(51005),Ne=t(832),Oe=(0,l.Pi)((function(){var e=(0,c.useCallback)((function(){d.z.nextSlide()}),[]),n=d.z.contestInfo,t=(0,c.useCallback)((function(e){var t={contest_name:n.name,entry_level:e};Ne.ZP.event(Ne.tz.ENTRY_LEVEL,t)}),[n.name]),i=(0,c.useMemo)((function(){var i,r,s=(0,a.ZN)(n).images,o=(0,U.hQ)({key:"professional_image",images:s,fallback:(0,D.QO)("lvl_prof.jpg")}),l=(0,U.hQ)({key:"non_professional_image",images:s,fallback:(0,D.QO)("lvl_non_prof.jpg")});return[{title:"Professional",desc:"We define professional photographers as those who sell or publish their work regularly or earn or have earned the majority of their income from their photography.",image:o,caption:null===s||void 0===s||null===(i=s.professional_image)||void 0===i?void 0:i.title,button:{label:"Continue",variant:"base.6.outline",onPress:function(){t(te.Kq.PROFESSIONAL),d.z.setLevel(te.Kq.PROFESSIONAL),e()}}},{title:"Non-Professional/Student",desc:"A photographer who does not meet the definition of professional as specified at left may submit their work as a non-professional.",image:l,caption:null===s||void 0===s||null===(r=s.non_professional_image)||void 0===r?void 0:r.title,button:{label:"Continue",variant:"base.6.outline",onPress:function(){t(te.Kq.NON_PROFESSIONAL),d.z.setLevel(te.Kq.NON_PROFESSIONAL),e()}}}]}),[n,t,e]);return(0,s.jsx)(o.kC,{flex:1,direction:{base:"column",lg:"row"},minH:"100%",children:i.map((function(e,n){return(0,s.jsx)(Ae.Z,(0,x.Z)({},e),n)}))})})),Re=t(65257),Fe=t(43672),Ue=t(75657),Ve=t.n(Ue),Be=t(98421),We=t(33211),Ge=function(e){var n,t,i=e.submission,r=e.contest,a=(0,f.Z)(e,["submission","contest"]),l=null===(n=r.images.featured_image_desktop)||void 0===n||null===(t=n.sizes)||void 0===t?void 0:t.medium,c=(0,D.Jn)(null===l||void 0===l?void 0:l.url),d=(null===l||void 0===l?void 0:l.width)||0,u=(null===l||void 0===l?void 0:l.height)||0;return(0,s.jsxs)(o.kC,(0,p.Z)((0,x.Z)({w:"400px",p:"40px 60px 40px 85px",direction:"column"},a),{children:[(0,s.jsx)(o.xv,{variant:"numeralsXS",mb:"30px",children:"Contest Timeline"}),c?(0,s.jsx)(o.xu,{w:"100%",mb:"40px",children:(0,s.jsx)(P.Z,{src:c,priority:!0,layout:"intrinsic",width:d,height:u,alt:r.name})}):null,(0,s.jsx)(We.Z,{submission:i}),(0,s.jsx)(Ve(),{href:Be.dq.SUBMISSIONS_INDEX,passHref:!0,children:(0,s.jsx)(Fe.Z,{as:"a",mt:"40px",children:"View My Entries"})})]}))},He=function(e){var n=e.title,t=e.desc,i=e.image,r=e.url,a=e.external,l=(0,_.Z)().isMobile,c=(0,s.jsxs)(o.kC,(0,p.Z)((0,x.Z)({direction:"column",flex:1,justify:"flex-end",p:{base:"40px 20px",md:"40px"},pos:"relative",_before:{content:'""',background:"linear-gradient(180deg,rgba(43, 43, 44, 0) 0%,rgba(43, 43, 44, 0) 42.48%,rgba(43, 43, 44, 0.1) 58.89%,rgba(43, 43, 44, 0.3) 74.07%,rgba(43, 43, 44, 0.9) 100%)",position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:8},as:l?"a":"div"},l?{target:a?"_blank":"_self"}:{}),{children:[(0,s.jsx)(P.Z,{src:i,alt:n,objectFit:"cover",layout:"fill"}),(0,s.jsxs)(o.kC,{zIndex:9,direction:"row",color:"base.6",align:"flex-end",justify:"space-between",children:[(0,s.jsxs)(o.kC,{direction:"column",maxW:{md:"360px"},children:[(0,s.jsxs)(o.kC,{w:"100%",justify:"space-between",align:"center",borderBottom:{base:"1px solid",md:"none"},borderBottomColor:"rgba(255, 255, 255, 0.6)",pb:{base:"10px",md:0},mb:{base:"10px",md:0}
1,children:[(0,s.jsx)(o.xv,{variant:"titleM",pr:{base:"50px",md:0},children:n}),(0,s.jsx)(w.Z,{icon:"arrowforwardcircle",size:30,fill:"base.6",display:{base:"flex",md:"none"}})]}),t?(0,s.jsx)(o.xv,{mt:{md:"20px"},variant:"paragraphM",children:t}):null]}),!l&&(0,s.jsx)(Ve(),{href:r,children:(0,s.jsx)("a",{target:a?"_blank":"_self",children:(0,s.jsx)(u.Z,{variant:"base.6.fill",children:"View Details"})})})]})]}));return l?(0,s.jsx)(Ve(),{href:r,passHref:!0,children:c}):c},Ye=function(){var e=(0,W.L)().contests,n=(0,c.useMemo)((function(){var n,t,i=null===e||void 0===e?void 0:e.find((function(e){return e.status===te.Lo.UPCOMING}));return i&&(null===(n=i.images.featured_image_desktop)||void 0===n?void 0:n.sizes.large.url)?(0,D.Jn)(null===(t=i.images.featured_image_desktop)||void 0===t?void 0:t.sizes.large.url):"https://refocus-dev.s3.amazonaws.com/media/ashim-d-silva-weyamle9fdm-unsplash.jpg"}),[e]);return(0,s.jsx)(o.kC,{direction:"column",p:{base:"40px 20px",md:"40px 40px 40px 60px"},children:(0,s.jsx)(o.kC,{minH:"475px",children:(0,s.jsx)(He,{title:"View Upcoming Contests.",image:n,url:Be.dq.CONTESTS})})})},Je=["How It Works:","1. Send your nominated images out into the world through easily shareable links","2. Engage and captivate your audience with your images and collect votes","3. Votes can be submitted once a day, so the more you share your images the more chances you have to win","4. You can also support your community by voting for artists in other categories."],qe=(0,l.Pi)((function(){return(0,s.jsxs)(o.kC,{p:{base:"40px 20px",md:"40px 40px 40px 60px"},direction:{base:"column",md:"row"},align:"flex-start",borderBottomColor:"base_2.4",borderBottomWidth:1,borderBottomStyle:"solid",justify:"space-between",children:[(0,s.jsxs)(o.kC,{maxW:{base:"none",md:"500px"},direction:"column",flex:1,pr:{base:"0",md:"40px"},h:"100%",children:[(0,s.jsx)(o.X6,{variant:"titleM",mb:"33px",w:{base:"100%",md:"245px"},children:"People\u2019s Vote Award"}),(0,s.jsxs)(o.kC,{justify:"space-between",flex:1,position:"relative",mb:{base:"30px",md:"0"},children:[(0,s.jsx)(o.xu,{maxW:{base:"100%",md:"50%"},flex:1,mb:"0",mt:"auto",mr:{base:"40px",md:"0"},children:(0,s.jsx)(P.Z,{objectFit:"cover",src:(0,D.QO)("pva/pva_intro_2.jpg"),layout:"intrinsic",width:360,height:239,alt:"People's Vote Award"})}),(0,s.jsx)(o.xu,{maxW:"31%",flex:1,mt:"0",mb:"auto",ml:{base:"0px",md:"30px"},children:(0,s.jsx)(P.Z,{objectFit:"cover",src:(0,D.QO)("pva/pva_intro.jpg"),layout:"intrinsic",width:260,height:390,alt:"People's Vote Award"})})]})]}),(0,s.jsxs)(o.kC,{w:{base:"100%",md:"47.2222%"},direction:"column",align:"flex-start",children:[(0,s.jsx)(o.xv,{variant:"numeralsXS",mb:"50px",children:"All nominated images will be automatically entered in the People\u2019s Choice Awards for another chance to win."}),Je.map((function(e,n){return(0,s.jsx)(o.xv,{variant:"paragraphM",mt:n>0?"20px":0,children:e},n)})),(0,s.jsx)(Ve(),{href:Be.Kb.PCA,passHref:!0,children:(0,s.jsx)(Fe.Z,{as:"a",mt:"52px",children:"Learn more"})})]})]})})),Qe=t(35658),Ke=function(e){var n=e.contest,t=(0,Qe.Z)();return(0,s.jsxs)(o.kC,{p:{base:"40px 20px",md:"40px 40px 40px 60px"},direction:{base:"column",md:"row"},align:"flex-start",borderBottomColor:"base_2.4",borderBottomWidth:1,borderBottomStyle:"solid",children:[(0,s.jsxs)(o.kC,{direction:"column",minW:"340px",pr:"40px",justify:"space-between",h:"100%",align:"flex-start",mb:{base:"40px",md:"0"},children:[(0,s.jsx)(o.xv,{variant:"titleM",mb:"10px",children:"Thank you for submitting your work."}),t&&(0,s.jsx)(Ve(),{href:(0,G.V6)(n.slug),passHref:!0,children:(0,s.jsx)(u.Z,{as:"a",size:"md",children:"Submit Another Entry"})})]}),(0,s.jsxs)(o.kC,{direction:"column",children:[(0,s.jsxs)(o.xv,{variant:"subtitleS",mb:{base:"20px",md:"40px"},children:["Please check the email address you used to create your"," ",q.tV," account for a confirmation of your submission."]}),(0,s.jsxs)(o.xv,{variant:"description",children:["If you do not receive a receipt of your confirmation within an hour, please email"," ",(0,s.jsx)("a",{style:{textDecoration:"underline",whiteSpace:"nowrap"},href:"mailto:".concat(q.be),children:q.be}),"."]})]})]})},Xe=t(18029),$e=function(e){var n=e.index,t=e.text,i=e.button;return(0,s.jsxs)(o.kC,{direction:"row",align:"flex-start",flex:1,children:[(0,s.jsx)(o.kC,{align:"center",justify:"center",bg:"accent1.2",borderRadius:"50%",w:"31px",h:"31px",mr:"20px",children:(0,s.jsx)(o.xv,{variant:"numeralsTiny",color:"base.6",children:n})}),(0,s.jsxs)(o.kC,{flex:1,direction:"column",align:"flex-start",children:[(0,s.jsx)(o.xv,{children:t}),i?(0,s.jsx)(Ve(),{href:i.url,passHref:!0,children:(0,s.jsx)(u.Z,{mt:"10px",variant:"base.1.outline",size:"md",rightIcon:(0,s.jsx)(w.Z,{icon:"plusboxedicon",fill:"base.1"}),as:"a",children:i.label})}):null]})]})}
1,en=function(){var e=(0,Xe.Y)().contest,n=(0,G.eT)(e),t=[{text:"Please fill out your Artist Profile with all the required information. If you win a ".concat(q.tV," award, we can only publish your profile if it is complete."),button:{label:"Complete your Profile",url:Be.ze.PROFILE_INFO}},{text:"If you are nominated, you will hear from us about the People's Vote Award via email. "}],i=n?t:t.slice(0,1);return(0,s.jsxs)(o.kC,{direction:"column",p:{base:"40px 20px",md:"40px 40px 40px 60px"},borderBottom:"1px solid",borderBottomColor:"base_2.4",children:[(0,s.jsx)(o.xv,{variant:"numeralsS",mb:"25px",children:"Here's What You Need to Do Next:"}),(0,s.jsx)(o.kC,{align:"flex-start",gap:"40px",direction:{base:"column",md:"row"},children:i.map((function(e,n){return(0,s.jsx)($e,{index:n+1,text:e.text,button:e.button},n)}))})]})},nn=function(e){var n=e.contest,t=e.submission,i=(0,W.L)().user,r=(0,G.eT)(t.contest);return(0,s.jsxs)(o.kC,{direction:{base:"column",lg:"row"},children:[(0,s.jsxs)(o.kC,{direction:"column",borderRightColor:"base_2.4",borderRightWidth:1,flex:1,children:[(0,s.jsx)(Ke,{contest:n}),!(0,Re._)(i.profile)&&(0,s.jsx)(en,{}),r&&(0,s.jsx)(qe,{}),(0,s.jsx)(Ye,{})]}),(0,s.jsx)(Ge,{display:{base:"none",lg:"block"},submission:t,contest:n})]})},tn=(0,l.Pi)((function(){var e,n,t=d.z.contestInfo,i=d.z.level,r=t.images,a=(0,U.hQ)({key:"single_image",images:r,fallback:(0,D.QO)("lvl_prof.jpg")}),l=(0,U.hQ)({key:"series_image",images:r,fallback:(0,D.QO)("lvl_non_prof.jpg")}),u=(0,c.useCallback)((function(){d.z.nextSlide()}),[]),p=(0,c.useCallback)((function(e){var n={contest_name:t.name,entry_level:i,entry_type:e};Ne.ZP.event(Ne.tz.ENTRY_TYPE,n)}),[t.name,i]),f=(0,c.useMemo)((function(){var e,n;return[{title:"Single",desc:"No matter your subject or (artistic) intention, we want to see your best single image submissions. ",image:a,caption:null===r||void 0===r||null===(e=r.single_image)||void 0===e?void 0:e.title,button:{label:"Continue",variant:"base.6.outline",onPress:function(){p(te.UZ.SINGLE),d.z.setType(te.UZ.SINGLE),u()}}},{title:"Series",desc:"Enter 2 to ".concat(q.Ie," images that work within a single concept, idea, or framework that binds them together, even if subject matter varies."),image:l,caption:null===r||void 0===r||null===(n=r.series_image)||void 0===n?void 0:n.title,button:{label:"Continue",variant:"base.6.outline",onPress:function(){p(te.UZ.SERIES),d.z.setType(te.UZ.SERIES),u()}}}]}),[p,null===r||void 0===r||null===(e=r.series_image)||void 0===e?void 0:e.title,null===r||void 0===r||null===(n=r.single_image)||void 0===n?void 0:n.title,u,l,a]);return(0,s.jsx)(o.kC,{flex:1,direction:{base:"column",lg:"row"},minH:"100%",children:f.map((function(e,n){return(0,s.jsx)(Ae.Z,(0,x.Z)({},e),n)}))})}))},36270:function(e,n,t){var i=t(84911),r=t(46388);n.Z=function(e){var n=e.entry,t=r.z.categoriesHistory,s=r.z.availableCreditsForUse,o=r.z.getCreditsPrices,a=r.z.type,l=r.z.isCreditsMode,c=function(e){var n=(0,i.Z)(t).slice(0,e+1);return n.reduce((function(e,t){return e[t.mediaId]=n.filter((function(e){return e.mediaId===t.mediaId})).length,e}),{})},d=function(e){return a?Object.values(e).reduce((function(e,n){return e+o[a].base+(n-1)*o[a].additional}),0):0};return{isEntryValid:function(){if(!l)return!0;var e=t.length-1-(0,i.Z)(t).reverse().findIndex((function(e){return null===n||void 0===n?void 0:n.media.map((function(e){return e.id})).includes(e.mediaId)}));if(e<0||0===(null===n||void 0===n?void 0:n.categories.length))return!0;var r=c(e);return d(r)<=s}(),isCategoryValid:function(e){if(!l)return!0;var i=t.findIndex((function(t){return n.media.findIndex((function(e){return e.id===t.mediaId}))>-1&&t.categoryId===e}));if(i<0)return!0;var r=c(i);return d(r)<=s}}}},78846:function(e,n,t){var i=t(5447),r=t(99728),s=t(27427),o=t(8014),a=t(34237),l=t(23434),c=function(e){var n=e.isChecked,t=e.isIntedeterminate;return n||t?(0,o.jsx)(a.kC,{bg:"currentColor",className:"custom-control",w:"12px",h:"12px",minW:"12px",minH:"12px",align:"center",justify:"center",children:t?(0,o.jsx)(a.xu,{borderRadius:"1px",w:"8px",h:"2px",bg:"currentColor",filter:"invert(1)"}):null}):null};n.Z=function(e){var n=e.label,t=e.css,d=void 0===t?"":t,u=e.font,x=void 0===u?"subtitleS":u,p=(0,s.Z)(e,["label","css","font"]);return(0,o.jsx)(l.XZ,(0,r.Z)((0,i.Z)({icon:(0,o.jsx)(c,{isChecked:
1p.isChecked,isIntedeterminate:p.isIndeterminate}),css:"\n        .chakra-checkbox__label {\n          flex: 1;\n        }\n        ".concat(d,"\n      ")},p),{children:"string"===typeof n?(0,o.jsx)(a.xv,{variant:x,children:n}):n}))}},5731:function(e,n,t){t.d(n,{V:function(){return b}});var i=t(43692),r=t(5447),s=t(99728),o=t(27427),a=t(44453),l=t.n(a),c=t(8014),d=t(72263),u=t(34237),x=t(23434),p=t(56168),f=t(21607),h=t(14131),m=function(e){return[{label:"Cancel",variant:"base.1.outline"},{label:"Delete",onClick:e,variant:"system.error.outline"}]},b=function(e){var n=e.title,t=void 0===n?"Are you sure?":n,i=e.body,s=void 0===i?"This action cannot be undone.":i,a=e.onDelete,l=(0,o.Z)(e,["title","body","onDelete"]);return(0,c.jsx)(v,(0,r.Z)({title:t,body:s,buttons:m(a)},l))},v=function(e){var n=e.title,t=void 0===n?"Are you sure?":n,a=e.body,m=e.maxW,b=void 0===m?"650px":m,v=e.open,g=e.setOpen,y=e.confirmDefault,j=void 0!==y&&y,C=e.trigger,w=e.showOnce,E=e.buttons,z=(0,o.Z)(e,["title","body","maxW","open","setOpen","confirmDefault","trigger","showOnce","buttons"]),Z=(0,p.useState)(!1),k=Z[0],S=Z[1],I=(0,p.useRef)(!1),T=(0,p.useState)(!1),_=T[0],P=T[1],D="undefined"!==typeof v?v:_,M="undefined"!==typeof g?g:P;(0,p.useEffect)((function(){return I.current=!0,function(){I.current=!1}}),[]);var L=(0,p.useRef)(null),A=(0,p.useRef)(null),N=(0,p.useCallback)((function(){return S((function(e){return!e}))}),[]);return(0,p.useEffect)((function(){if(w){var e=f.Z.getDataFromStorage(w);I.current&&S(!!e)}}),[w]),(0,c.jsxs)(c.Fragment,{children:[C&&C({setOpen:M}),(0,c.jsx)(d.aR,(0,s.Z)((0,r.Z)({isOpen:D,leastDestructiveRef:j?A:L,onClose:function(){return M(!1)},isCentered:!0},z),{children:(0,c.jsx)(d.dh,{h:"100vh",w:"100vw",children:(0,c.jsxs)(d._T,{maxW:b,m:{base:"0 20px",md:"0 30px"},py:{base:"20px",md:"30px"},children:[(0,c.jsx)(d.fY,{fontSize:"lg",fontWeight:"bold",px:{base:"30px",md:"60px"},children:(0,c.jsx)(u.xv,{children:t})}),(0,c.jsx)(d.iP,{py:{base:"10px",md:"20px"},px:{base:"30px",md:"60px"},children:(0,c.jsx)(u.kC,{direction:"column",width:"100%",children:"string"===typeof a?(0,c.jsx)(u.xv,{variant:"description",mb:"10px",children:a}):a})}),E&&(0,c.jsx)(d.xo,{px:{base:"30px",md:"60px"},children:(0,c.jsxs)(u.kC,{direction:"column",w:"100%",children:[w?(0,c.jsx)(x.XZ,{mb:"20px",isChecked:k,onChange:N,w:{base:"100%",md:"auto"},saturate:"sm",children:(0,c.jsx)(u.xv,{variant:"description",children:"Do Not Show This Message Again"})}):null,(0,c.jsx)(u.kC,{gap:"10px",w:"100%",children:E.map((function(e,n){var t=e.label,a=e.onClick,d=(0,o.Z)(e,["label","onClick"]);return(0,c.jsx)(h.Z,(0,s.Z)((0,r.Z)({ref:0===n?A:L,onClick:(0,i.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=3;break}return e.next=3,a();case 3:0===n&&w&&k&&f.Z.saveDataToStorage(w,!0),M(!1);case 5:case"end":return e.stop()}}),e)}))),variant:0===n?"accent1.3.fill":"base.1.outline",size:"md",minW:"120px"},d),{children:t}),n)}))})]})})]})})}))]})};n.Z=v},81771:function(e,n,t){t.d(n,{j:function(){return f}});var i=t(5447),r=t(99728),s=t(27427),o=t(2746),a=t(8014),l=t(34237),c=t(78846),d=t(14970),u=t(56168),x=t(98421),p=function(e){var n=e.isChecked,t=e.onChange,o=e.error,d=(0,s.Z)(e,["isChecked","onChange","error"]),p=(0,u.useRef)(null);return(0,u.useEffect)((function(){o&&p.current&&p.current.scrollIntoView({behavior:"smooth",block:"center"})}),[o]),(0,a.jsxs)(l.xu,(0,r.Z)((0,i.Z)({ref:p},d),{children:[(0,a.jsx)(c.Z,{isChecked:n,onChange:t,label:(0,a.jsxs)(l.xv,{variant:"description",children:["I agree to the"," ",(0,a.jsx)("a",{target:"_blank",href:x.p.TERMS,rel:"noreferrer",children:(0,a.jsx)("u",{children:"Competition and Website Terms of Use"})})]})}),o&&(0,a.jsx)(l.xv,{variant:"description",color:"red.500",mt:"8px",children:"Must Accept Terms and Conditions"})]}))},f=function(e){var n=(0,o.Z)((0,d.U$)("termsOfUse"),3),t=n[0],r=n[1],s=n[2];return(0,a.jsx)(p,(0,i.Z)({isChecked:t.value,onChange:function(){return s.setValue(!t.value)},error:!(!r.error||!r.touched)},e))};n.Z=p},53963:function(e,n,t){var i=t(5447),r=t(99728),s=t(27427),o=t(8014),a=t(34237),l=t(30153),c=(0,t(56168).forwardRef)((function(e,n){var t=e.containerProps,c=void 0===t?{}:t,d=e.placeholderProps,u=void 0===d?{}:d,x=(0,s.Z)(e,["containerProps","placeholderProps"]);return(0,o.jsxs)(a.kC,(0,r.Z)((0,i.Z)({position:"relative",direction:"column-reverse"},c),{children:[(0,o.jsx)(l.g,(0,r.Z)((0,i.Z)({},x),{ref:n,css:"\n          &:placeholder-shown + .placeholder {\n            opacity: 0;\n            transform: translateY(5px);\n          }\n        "})),x.placeholder&&(0,o.jsx)(a.xv,(0,r.Z)((0,i.Z)({w:"100%",bg:x.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"},u),{children:x.placeholder}))]}))}));n.Z=c},19702:function(e,n,t){var i=(0,t(21350).LO)({open:!1});n.Z=i},46388:function(e,n,t){t.d(n,{z:function(){return y}});var i=t(62139),r=t(49573),s=t(42299),o=t(5447),a=t(99728),l=t(84911),c=t(17325),d=t(55310),u=t(26571),x=t(21350),p=t(80174),f=t(48599),h=t(98935),m=t(4822),b=t(21607),v=t(80032),g=t(98421),y=new(function(){function e(){(0,i.Z)(this,e),this.init(),(0,x.rC)(this,{id:x.LO,savedData:x.LO,index:x.LO,entryIndex:x.LO,type:x.LO,level:x.LO,media:x.LO,contestInfo:x.LO,entries:x.LO,useWallet:x.LO,selectedDiscountType:x.LO,appliedCoupon:x.LO,couponLoading:x.LO,isAllowedToLeave:x.LO,paymentMethod:x.LO,categoriesHistory:x.LO,creditsNotificationWasShown:x.LO,stepIds:x.LO,termsAccepted:x.LO,termsError:x.LO,init:x.aD,reset:x.aD,setType:x.aD,set
1Level:x.aD,nextSlide:x.aD,prevSlide:x.aD,addMediaItem:x.aD,removeMediaItem:x.aD,sortMedia:x.aD,setEntries:x.aD,setIndex:x.aD,toggleCategory:x.aD,validateEntry:x.aD,updateEntryData:x.aD,updateMediaItem:x.aD,setStatus:x.aD,loadSubmission:x.aD,removeCurrentEntry:x.aD,nextEntry:x.aD,prevEntry:x.aD,mediaLimit:x.Fl,entriesLength:x.Fl,isEntryValid:x.Fl,currentEntry:x.Fl,itemPrices:x.Fl,submissionPrice:x.Fl,submissionCredits:x.Fl,requestData:x.Fl,entriesValidation:x.Fl,allEntriesValid:x.Fl,priceAccessor:x.Fl,automaticDiscount:x.Fl,priceModifierLabel:x.Fl,couponValueLabel:x.Fl,isSomethingUnsaved:x.Fl,availableBundles:x.Fl,availableCreditsForUse:x.Fl,getCreditsPrices:x.Fl,isCreditsMode:x.Fl,finalPrice:x.Fl,isSubMinPayment:x.Fl,restCreditsForUse:x.Fl,canUseCredits:x.Fl,availableEntryLevelsFromBundles:x.Fl,availableEntryTypesFromBundles:x.Fl})}var n=e.prototype;return n.init=function(){this.reset(),this.contestInfo={},this.user=null},n.reset=function(){this.stepIds=[],this.savedData=null,this.index=0,this.entryIndex=0,this.paymentMethod=d.x6.DEFAULT,this.level=null,this.type=null,this.media=[],this.entries=[],this.status=d.Pd.DRAFT,this.id=null,this.useWallet=!1,this.selectedDiscountType=d.xl.AUTOMATIC,this.appliedCoupon=null,this.couponLoading=!1,this.isAllowedToLeave=!1,this.categoriesHistory=[],this.creditsNotificationWasShown=!1,this.termsAccepted=!1,this.termsError=!1},n.setStatus=function(e){this.status=e},n.updateEntryData=function(e,n){this.entries[this.entryIndex][e]=n},n.validateEntry=function(){this.entries[this.entryIndex].isValid=this.isEntryValid.isValid},n.removeCurrentEntry=function(){var e=this;if(this.categoriesHistory=this.categoriesHistory.filter((function(n){return!e.currentEntry.media.map((function(e){return e.id})).includes(n.mediaId)})),this.type===p.UZ.SINGLE&&this.removeMediaItem(this.entryIndex),this.type===p.UZ.SERIES&&(this.media=[],this.entries=[]),0===this.entries.length){var n=this.stepIds.indexOf(d.J7.IMAGES);this.index=n>-1?n:0}},n.toggleCategory=function(e,n){var t=this,i=this.entries[e].categories.findIndex((function(e){return e.id===n.id})),r=this.categoriesHistory.findIndex((function(i){return t.entries[e].media.findIndex((function(e){var n=e.id;return i.mediaId===n}))>-1&&i.categoryId===n.id}));r>-1?this.categoriesHistory.splice(r,1):this.categoriesHistory.push({mediaId:this.entries[e].media[0].id,categoryId:n.id}),i>-1?this.entries[e].categories.splice(i,1):this.entries[e].categories.push(n)},n.setIndex=function(e){this.index=e},n.setEntries=function(){var e=this,n={id:null,title:"",desc:"",categories:1===this.contestInfo.categories.length?this.contestInfo.categories:[],isValid:!0};if(this.type===p.UZ.SINGLE)this.entries=this.media.map((function(t){var i=e.entries.find((function(e){return e.media[0].id===t.id}))||n;return(0,a.Z)((0,o.Z)({},i),{id:i.id,media:[t]})}));else{var t,i=(null===(t=this.entries[0])||void 0===t?void 0:t.title)?this.entries[0]:n;this.entries=[(0,a.Z)((0,o.Z)({},i),{media:this.media})]}this.entryIndex=0},n.nextSlide=function(){this.index++},n.prevSlide=function(){this.index--},n.nextEntry=function(){this.entryIndex++},n.prevEntry=function(){this.entryIndex--},n.addMediaItem=function(e){this.media.push(e)},n.updateMediaItem=function(e,n){var t=this.media.findIndex((function(e){return e.id===n}));t>-1&&(this.media[t]=(0,o.Z)({},this.media[t],e),this.setEntries())},n.removeMediaItem=function(e){this.media.splice(e,1),this.setEntries()},n.sortMedia=function(e,n){this.media=(0,u.Rp)(this.media,e,n)},n.setLevel=function(e){this.level=e},n.setType=function(e){this.type=e},n.loadSubmission=function(e,n){var t=this.automaticDiscount?(null===e||void 0===e?void 0:e.discount_type)?e.discount_type:d.xl.AUTOMATIC:d.xl.COUPON_CODE;if(this.selectedDiscountType=t,e&&(this.id=e.id,this.useWallet=!!n&&e.use_wallet,this.paymentMethod=e.payment_mode,e.entries.length)){var i=e.entries[0].entry_level,r=e.entries[0].entry_type;e.preview_coupon&&(this.appliedCoupon=e.preview_coupon),this.type=r,this.level=i,this.status=e.status,this.entries=e.entries.map((function(e){return{id:e.id,title:e.title,de
1sc:e.description,media:e.images.map((function(e){return e.item})),categories:e.categories,isValid:!0}}));var s=b.Z.getDataFromStorage(v.p);this.categoriesHistory=(null===s||void 0===s?void 0:s[null===e||void 0===e?void 0:e.id])||[],this.savedData=JSON.stringify(this.entries),this.media=e.entries.map((function(e){return e.images.map((function(e){return e.item}))})).flat()}},(0,r.Z)(e,[{key:"availableEntryTypesFromBundles",get:function(){return(0,l.Z)(Array.from(new Set(y.availableBundles.map((function(e){return e.entry_type})).flat())))}},{key:"availableEntryLevelsFromBundles",get:function(){return(0,l.Z)(Array.from(new Set(this.availableBundles.map((function(e){return e.entry_level})).flat())))}},{key:"canUseCredits",get:function(){return!!(this.availableBundles.length&&this.availableCreditsForUse>=1)}},{key:"isCreditsMode",get:function(){return this.paymentMethod===d.x6.CREDITS}},{key:"finalPrice",get:function(){var e,n=this.submissionPrice,t=n.total,i=n.subtotal,r=null!==i&&"number"===typeof i?i:t;if(this.useWallet&&(null===(e=this.user)||void 0===e?void 0:e.profile.wallet)){var s=Math.min(this.user.profile.wallet/100,r);s>0&&(r-=s)}return r}},{key:"isSubMinPayment",get:function(){return 100*this.finalPrice<g.Yo}},{key:"availableBundles",get:function(){var e=this;if(!this.contestInfo.bundleOrders)return[];var n=this.contestInfo,t=n.bundleOrders,i=n.entry_level,r=n.entry_type;return(t||[]).filter((function(n){var t=r.some((function(e){return n.entry_type.includes(e)}))&&i.includes(n.entry_level),s=n.credits-n.used_credits>0,o=!0;e.level&&(o=n.entry_level===e.level);var a=!0;return e.type&&(a=n.entry_type.includes(e.type)),t&&s&&o&&a}))}},{key:"getCreditsPrices",get:function(){var e;return e={},(0,s.Z)(e,p.UZ.SINGLE,{base:this.contestInfo.credit_ratios.single_entry,additional:this.contestInfo.credit_ratios.single_category}),(0,s.Z)(e,p.UZ.SERIES,{base:this.contestInfo.credit_ratios.series_entry,additional:this.contestInfo.credit_ratios.series_category}),e}},{key:"availableCreditsForUse",get:function(){return this.availableBundles.reduce((function(e,n){return e+n.credits-n.used_credits}),0)}},{key:"isSomethingUnsaved",get:function(){return JSON.stringify(this.entries)!==this.savedData}},{key:"priceAccessor",get:function(){var e,n=(e={},(0,s.Z)(e,p.UZ.SINGLE,"single"),(0,s.Z)(e,p.UZ.SERIES,"series"),(0,s.Z)(e,p.Kq.PROFESSIONAL,"professional"),(0,s.Z)(e,p.Kq.NON_PROFESSIONAL,"non_professional"),e);if(!this.type||!this.level)return"single_non_professional";var t=n[this.type],i=n[this.level];return"".concat(t,"_").concat(i)}},{key:"automaticDiscount",get:function(){var e,n,t=null===(e=this.user)||void 0===e?void 0:e.global_accessibility,i=(n={},(0,s.Z)(n,p.Lo.EARLY_BIRD_SUBMISSION,"Early Bird"),(0,s.Z)(n,p.Lo.REGULAR_SUBMISSION,"Regular Entry"),(0,s.Z)(n,p.Lo.EXTENDED_SUBMISSION,"Extended Entry"),n),r=this.itemPrices,o=null,a=0,l=0;if(t&&this.level&&this.type){var d=y.priceAccessor;if(this.contestInfo.global_accessibility_prices[d]){var u=(0,c.z7)(this.contestInfo.global_accessibility_prices[d],"fromCents");o="Global Accessibility",a=100*(1-u.base/r.base),l=100*(1-u.additional/r.additional)}}if(this.contestInfo.discount&&this.contestInfo.discount<0){var x=Math.abs(this.contestInfo.discount);x>a&&(o=i[this.contestInfo.status],a=x,l=x)}return o?{label:o,base:+a.toFixed(2),additional:+l.toFixed(2),type:h.Lb.PERCENTAGE}:null}},{key:"priceModifier",get:function(){return this.appliedCoupon&&this.selectedDiscountType===d.xl.COUPON_CODE?this.appliedCoupon.type===h.Lb.PERCENTAGE?{label:this.appliedCoupon.code,base:+this.appliedCoupon.value.toFixed(2),additional:+this.appliedCoupon.value.toFixed(2),type:h.Lb.PERCENTAGE}:{label:this.appliedCoupon.code,value:+this.appliedCoupon.value.toFixed(2),type:h.Lb.AMOUNT}:this.selectedDiscountType===d.xl.AUTOMATIC?this.automaticDiscount:null}},{key:"priceModifierLabel",get:function(){var e,n,t="0%";return(null===(e=this.priceModifier)||void 0===e?void 0:e.type)===h.Lb.PERCENTAGE?t="-".concat(this.priceModifier.base,"%"):(null===(n=this.priceModifier)||void 0===n?void 0:n.type)===h.Lb.AMOUNT&&(t="-$".concat((0,c.Wy)(this.priceModifier.value))),t}},{key:"couponValueLabel",get:function(){var e,n,t="0%";return(null===(e=this.appliedCoupon)||void 0===e?void 0:e.type)===h.Lb.PERCENTAGE?t="-".concat(this.appliedCoupon.value,"%"):(null===(n=this.appliedCoupon)||void 0===n?void 0:n.type)===h.Lb.AMOUNT&&(t="-$".concat((0,c.Wy)(this.appliedCoupon.value))),t}},{key:"itemPrices",get:function(){var e,n,t=this.priceAccessor,i=null===(e=this.contestInfo)||void 0===e||null===(n=e.entry_prices)||void 0===n?void 0:n[t];return i?(0,c.z7)(i,"fromCents"):{base:0,additional:0,cashback:0}}},{key:"currentEntry",get:function(){return this.entries[this.entryIndex]}},{key:"isEntryValid",get:function(){if(!this.currentEntry)return{isTitleValid:!1,isCategoriesValid:!1,isValid:!1,validationPassed:!1,isTitleLenghtValid:!1,isDescValid:!1};var e=this.currentEntry,n=e.title,t=e.categories,i=e.desc,r=e.isValid;return{isTitleValid:!!n,isCategoriesValid:!!t.length,isValid:!!(n&&n.length<=45&&t.length&&i.length<=300),validationPassed:!r,isTitleLenghtValid:n.length<=45,isDescValid:i.length<=300}}},{key:"allEntriesValid",get:function(){return this.entriesValidation.every((function(e){return e.valid}))}},{key:"entriesValidation",get:function(){return this.entries.map((function(e,n){var t;return{index:n,valid:!!e.title&&!!(null===(t=e.categories)||void 0===t?void 0:t.length)}}))}},{key:"submissionPrice",get:function(){var e=(0,f.vQ)(this.entries,this.itemPrices,this.priceModifier),n=e.total,t=void 0===n?0:n,i=e.subtotal;return{total:t,subtotal:void 0===i?0:i}}},{key:"submissionCredits",get:function(){return(0,f.qq)(this.entries,this.type,this.getCreditsPrices)}},{key:"restCreditsForUse",get:function(){return this.availableCreditsForUse-this.submissionCredits}},{key:"entriesLength",get:function(){return this.entries.length}},{key:"mediaLimit",get:function(){return this.type===p.UZ.SINGLE?m.IV-this.media.length:m.Ie-this.media.length}},{key:"requestData",get:function(){var e,n=this,t=this.entries.map((function(e){var t=e.id,i=e.title,r=e.media,s=e.categories,o={title:i,description:e.desc,entry_type:n.type||p.UZ.SINGLE,entry_level:n.level||p.Kq.PROFESSIONAL,images:r.filter((function(e){return e.id})).map((function(e){return{item:e.id,title:null}})),categories:s.map((function(e){return e.id})),price:0};return t&&(o.id=t),o}
1));return{contest:this.contestInfo.id,price:parseInt("".concat(this.submissionPrice.total)),status:this.status,entries:t,use_wallet:this.useWallet,preview_coupon:(null===(e=this.appliedCoupon)||void 0===e?void 0:e.id)||null,discount_type:this.selectedDiscountType,payment_mode:this.paymentMethod}}}]),e}())},98935:function(e,n,t){var i,r,s;t.d(n,{Lb:function(){return i},OF:function(){return s},g_:function(){return r}}),function(e){e.PERCENTAGE="PERCENTAGE",e.AMOUNT="AMOUNT"}(i||(i={})),function(e){e.UNLIMITED="UNLIMITED",e.TIME_RANGE="TIME_RANGE"}(r||(r={})),function(e){e.CONTEST="CONTEST",e.SITE_WIDE="SITE_WIDE"}(s||(s={}))},55310:function(e,n,t){var i,r,s,o,a,l;t.d(n,{J7:function(){return s},K1:function(){return r},Kd:function(){return l},Pd:function(){return o},x6:function(){return i},xl:function(){return a}}),function(e){e.CREDITS="credits",e.DEFAULT="default"}(i||(i={})),function(e){e.APPROVED="APPROVED",e.PENDING="PENDING",e.REJECTED="REJECTED",e.USER_DELETED="USER_DELETED"}(r||(r={})),function(e){e.PAYMENT_METHOD="payment_method",e.ENTRY_TYPE="entry_type",e.ENTRY_LEVEL="entry_level",e.IMAGES="images",e.DETAILS="details",e.SUMMARY="summary",e.PAYMENT="payment"}(s||(s={})),function(e){e.PAID="PAID",e.DRAFT="DRAFT",e.PENDING="PENDING",e.PUBLIC="PUBLIC",e.REJECTED="REJECTED",e.REFUNDED="REFUNDED",e.USER_DELETED="USER_DELETED"}(o||(o={})),function(e){e.AUTOMATIC="AUTOMATIC",e.COUPON_CODE="COUPON_CODE"}(a||(a={})),function(e){e.INVALID_STAGE="INVALID_STAGE",e.PRICE_CHANGED="PRICE_CHANGED",e.UNKNOWN="UNKNOWN"}(l||(l={}))},48599:function(e,n,t){t.d(n,{Xd:function(){return a},qq:function(){return s},rQ:function(){return o},vQ:function(){return l}});var i=t(17325),r=t(98935),s=function(e,n,t){return n?Object.values(e).reduce((function(e,i){return e+=o(i.categories,n,t)}),0):0},o=function(e,n,t){return e.length&&n?t[n].base+(e.length-1)*t[n].additional:0},a=function(e,n,t){var i=n.base,s=n.additional;if(!e.length)return{subtotal:null,total:0};var o=(e.length-1)*s,a=i+o,l=null;return(null===t||void 0===t?void 0:t.type)===r.Lb.PERCENTAGE&&(l=t?i-i*(t.base/100)+o-(e.length-1)*(s*(t.additional/100)):null),{subtotal:null!==l?l:a,total:a}},l=function(e,n,t){var s=Object.values(e).reduce((function(e,i){var r=a(i.categories,n,t);return e.subtotal+=r.subtotal||0,e.total+=r.total,e}),{subtotal:0,total:0});if((null===t||void 0===t?void 0:t.type)===r.Lb.AMOUNT){var o=s.subtotal-+(0,i.Wy)(t.value);s.subtotal=o>0?o:0}return s}},60382:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(98421);function r(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!n.contest)return"#";var r=new URLSearchParams({contest:n.contest});
1n.submission&&r.append("submission",n.submission),n.entry_level&&r.append("entry_level",n.entry_level),n.entry_type&&r.append("entry_type",n.entry_type);var s=r.toString(),o=t?i.dq.PURCHASE_BUNDLE:i.p.PURCHASE_BUNDLE;return"".concat(o,"/").concat(e,"?").concat(s)}},29675:function(e,n,t){var i=t(56168),r=t(75332);n.Z=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"You have unsaved changes \u2013 are you sure you wish to leave this page?",t=(0,r.useRouter)();(0,i.useEffect)((function(){var i=function(t){if(e)return t.preventDefault(),t.returnValue=n},r=function(){if(e&&!window.confirm(n))throw t.events.emit("routeChangeError",void 0,{shallow:!0}),"Route change was aborted (this error can be safely ignored). See https://github.com/zeit/next.js/issues/2476"};return window.addEventListener("beforeunload",i),t.events.on("routeChangeStart",r),function(){window.removeEventListener("beforeunload",i),t.events.off("routeChangeStart",r)}}),[e,t.events,n])}},35658:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(56168);function r(){var e=(0,i.useState)(!1),n=e[0],t=e[1];return(0,i.useEffect)((function(){t(!0)}),[]),n}},21607:function(e,n,t){var i=t(62139),r=t(5447),s=new function e(){var n=this;(0,i.Z)(this,e),this.saveDataToStorage=function(e,t){var i;null===(i=n.window)||void 0===i||i.localStorage.setItem(e,JSON.stringify(t))},this.getDataFromStorage=function(e){var t,i=null===(t=n.window)||void 0===t?void 0:t.localStorage.getItem(e);return i?JSON.parse(i):null},this.updateDataInStorage=function(e,t){var i=n.getDataFromStorage(e),s=(0,r.Z)({},i,t);Object.keys(s).forEach((function(e){"string"!==typeof s[e]||s[e]||delete s[e]})),n.saveDataToStorage(e,(0,r.Z)({},s))},this.delete=function(e){var t;null===(t=n.window)||void 0===t||t.localStorage.removeItem(e)},this.window=window};n.Z=s},16576:function(e,n,t){t.d(n,{Fb:function(){return C},Hd:function(){return w},Yy:function(){return j},eo:function(){return z},hQ:function(){return v},uJ:function(){return E}});var i,r=t(43692),s=t(42299),o=t(5447),a=t(99728),l=t(44453),c=t.n(l),d=t(90319),u=t(46388),x=t(49823),p=t(55310),f=t(21607),h=t(80032),m=t(98421),b=t(21350),v=function(e){var n,t,i,r=e.key,s=e.images,o=e.fallback,a=null===s||void 0===s||null===(n=s[r])||void 0===n||null===(t=n.sizes)||void 0===t||null===(i=t.large)||void 0===i?void 0:i.url;return a?(0,d.Jn)(a):o},g={duration:.3},y={initial:"hidden",animate:"visible",exit:"hidden"},j=(0,a.Z)((0,o.Z)({},y),{variants:{hidden:{opacity:0,transition:g},visible:{opacity:1,transition:g}},initial:"hidden",animate:"visible",exit:"hidden"}),C=function(e){return(0,a.Z)((0,o.Z)({},y),{variants:{hidden:{marginBottom:-1*e,transition:g},visible:{marginBottom:0,transition:g}}})},w=function(e){return null!==e&&"number"===typeof e},E=function(){var e=(0,r.Z)(c().mark((function e(n){var t,i,r,l,d,v,g,y,j,C,w,E;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(t=n||{}).setSubmitting,r=t.toast,l=t.router,i&&i(!0),d=u.z.requestData,v="/api/submissions/",g="POST",u.z.id&&(v+="".concat(u.z.id,"/"),g="PATCH"),u.z.isSubMinPayment&&u.z.status===p.Pd.PENDING&&(v+="?finalize=true"),e.next=9,(0,x.ZP)({path:v,body:d,method:g,returnErrors:!0});case 9:return y=e.sent,(j=y.data)&&j.id?(u.z.categoriesHistory.length&&(C=f.Z.getDataFromStorage(h.p),f.Z.saveDataToStorage(h.p,(0,a.Z)((0,o.Z)({},C||{}),(0,s.Z)({},j.id,u.z.categoriesHistory)))),w="".concat(m.dq.EDIT_SUBMISSION,"/").concat(j.id,"/"),window.history.replaceState((0,a.Z)((0,o.Z)({},window.history.state),{as:w,url:w}),"",w),(0,b.z)((function(){u.z.id=j.id})),j.status===p.Pd.PENDING?!u.z.isCreditsMode&&l&&l.push((0,m.Rs)(j.id)):j.status===p.Pd.DRAFT&&l?l.push("".concat(m.dq.DRAFT_SUBMISSIONS)):j.status===p.Pd.PAID&&((null===(E=f.Z.getDataFromStorage(h.p))||void 0===E?void 0:E[j.id])&&delete E[j.id],f.Z.saveDataToStorage(h.p,(0,o.Z)({},E||{})),window.location.href=(0,m.YB)(j.id))):r&&r({title:"Something went wrong. Please try again later. If this continues, contact support.",status:"error"}),i&&i(!1),e.abrupt("return",j);case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),z=(i={},(0,s.Z)(i,p.x6.DEFAULT,"By continuing, you can pay for your entries individually or as a series."),
1(0,s.Z)(i,p.x6.CREDITS,"Since you purchased a Bundle, you have credits in your account. You can use them here when you submit your work, or you may choose to Pay Per Entry. If you aren't sure if your credit's value will cover your submission, or if want to submit more images than your credits will allow, you can choose to purchase a Bundle during the submission and checkout process."),i);!function(){var e=(0,r.Z)(c().mark((function e(n,t){var i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,(0,x.ZP)({path:"/api/artist/contests/".concat(n,"/submitted-entry-level/")},t);case 5:return i=e.sent.data,e.abrupt("return",(null===i||void 0===i?void 0:i.entry_level)||null);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))}()}}]);

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.