1"use strict";(self.rspackChunk_ps_marketplace=self.rspackChunk_ps_marketplace||[]).push([[2952],{16670:function(e,t,n){var a=n(31085);n(14041);var s=n(53373),o=n.n(s),i=n(8780);n.d(t,{},{a:e=>{let{className:t,size:n="normal"}=e;return(0,a.jsxs)("div",{className:o()(i.kL,t,{[i.EX]:"small"===n,[i.as]:"large"===n}),children:[(0,a.jsx)("div",{className:i.iU}),(0,a.jsx)("div",{className:i.iU}),(0,a.jsx)("div",{className:i.iU})]})}})},12489:function(e,t,n){var a=n(31085),s=n(14041),o=n(84375),i=n.n(o),r=n(15799);class l extends s.Component{constructor(e){super(e),this.state={wasTracked:!1},this.track=this.track.bind(this)}track(e){if(!e||this.state.wasTracked)return;let{path:t,photoId:n,companyId:a}=this.props;e&&this.setState({wasTracked:!0},()=>{(0,r.Dz)(t,n,a)})}render(){return(0,a.jsx)(i(),{active:!this.state.wasTracked,onChange:this.track,partialVisibility:!0,scrollCheck:!0,children:this.props.children})}}n.d(t,{A:function(){return l}})},69032:function(e,t,n){n.d(t,{A:function(){return k}});var a=n(49040),s=n(31085),o=n(56351),i=n(36452),r=n(74593),l=n(59627),d=n.n(l),c=n(14041),h=n(53373),p=n.n(h),u=n(76012),m=n(34501),x=n(64683),v=n(43433),_=n(30672),N=n(15799);let f=new(d())({phrases:{text:{button:"Add to...",prompt:"Add to ...",newSlate:"Create New Slate"},aria:{add:"Add item to Idea Slate",addToSlate:"Add item to %{name}"}},locale:"en"});class k extends c.Component{get injected(){return this.props}state={isMenuOpen:!1};containerRef=c.createRef();componentDidMount(){window.addEventListener("keydown",this.handleKeydown),window.addEventListener("mousedown",this.handleClick)}componentWillUnmount(){window.removeEventListener("keydown",this.handleKeydown),window.removeEventListener("mousedown",this.handleClick)}handleKeydown=e=>{27===e.keyCode&&this.closeMenu()};handleClick=e=>{this.containerRef.current.contains(e.target)||this.closeMenu()};closeMenu=()=>{this.setState({isMenuOpen:!1})};toggleMenu=()=>{this.setState(e=>({isMenuOpen:!e.isMenuOpen}))};addItemToSlate=e=>{let{coverImagePath:t,itemId:n,itemType:a,note:s}=this.props,{ideaSlateStore:o,sessionStore:r}=this.injected,l=(0,v.A)((0,v.A)({id:n,note:s,type:a},m.A),u.A);o.addItemToSlate(e.id,l).then(n=>{(0,N.X4)(e.name,e.id,n.id,n.type,n.companyId),r.addIdeaSlateItemNotification(n,e,t,i.Dq)})};handleMenuButtonClick=()=>{this.toggleMenu()};handleSlateClick=e=>{this.addItemToSlate(e),this.closeMenu()};renderMenu=()=>{let{shiftMenuRight:e}=this.props,{slates:t}=this.injected.ideaSlateStore;return(0,s.jsxs)("div",{className:p()(_.MK,{[_.Zb]:e}),children:[(0,s.jsxs)("div",{className:_.oM,children:[(0,s.jsx)("div",{className:_.J1,children:f.t("text.prompt")}),(0,x.A)(t,e=>(0,s.jsx)("button",{"aria-label":f.t("aria.addToSlate",{name:e.name}),className:_.eH,onClick:()=>this.handleSlateClick(e),children:(0,s.jsx)("span",{className:_.UU,children:e.name})},e.id))]}),(0,s.jsx)(r.A,{className:_.vt,onBlur:this.handleMenuButtonClick,trackingCreatedFrom:"add to slate menu"})]})};render(){let{isMenuOpen:e}=this.state;return(0,s.jsxs)("div",{className:p()(_.kL,this.props.className),ref:this.containerRef,children:[(0,s.jsx)("button",{"aria-expanded":e,"aria-label":f.t("aria.add"),className:_.hi,onClick:this.handleMenuButtonClick,children:f.t("text.button")}),e&&this.renderMenu()]})}}k=(0,a.Cg)([(0,o.WQ)("ideaSlateStore","sessionStore"),o.PA],k)},10335:function(e,t,n){n.d(t,{A:function(){return p}});var a=n(31085),s=n(20812),o=n(59627),i=n.n(o),r=n(14041),l=n(19942),d=n.n(l),c=n(26659);let h=new(i())({phrases:{headline:"Start Saving"},locale:"en"});class p extends r.Component{render(){return(0,a.jsxs)("section",{className:c.kL,children:[(0,a.jsx)(s.A,{className:c.Hm}),(0,a.jsx)("h2",{className:c.Pl,children:h.t("headline")}),(0,a.jsx)(d(),{className:c.Qs,source:this.props.contentMarkdown})]})}}}
1,11723:function(e,t,n){n.d(t,{A:function(){return v}});var a=n(31085),s=n(53373),o=n.n(s),i=n(59627),r=n.n(i),l=n(14041),d=n(15799),c=n(79936),h=n(63271),p=n(10372),u=n(94097);let m=new(r())({phrases:{placeholders:{addNote:"Add Note"},buttons:{edit:"Edit"},aria:{edit:"Edit your note"}},locale:"en"}),{apiFavoritePath:x}=h.A;class v extends l.Component{state={isEditing:!1,noteText:this.props.noteText};requestCancel=c.qm.source();cancelToken=this.requestCancel.token;handleChange=e=>{let{itemId:t,itemType:n,trackingContext:a}=this.props,{cancelToken:s}=this;c.Ay.patch(x({itemId:t,itemType:n,format:"json"}),{note:e},{cancelToken:s}).then(()=>{(0,d.rx)(t,n,e,a)}),this.setState({noteText:e})};startEditing=()=>{this.setState({isEditing:!0})};endEditing=()=>this.setState({isEditing:!1});renderNoteField=()=>{let{ariaLabel:e,readOnly:t}=this.props,{isEditing:n,noteText:s}=this.state,o=!!s;return t||!n&&o?(0,a.jsxs)("p",{className:u.gA,children:[s,!t&&(0,a.jsx)("button",{"aria-label":m.t("aria.edit"),className:u.hc,onClick:this.startEditing,children:m.t("buttons.edit")})]}):(0,a.jsx)(p.A,{ariaLabel:e,autoFocus:n,icon:p.A.PENCIL_ICON,onBlur:this.endEditing,onChange:this.handleChange,placeholder:m.t("placeholders.addNote"),value:s})};componentWillUnmount(){this.requestCancel.cancel(`${this.constructor.name} unmounted`)}render(){return(0,a.jsx)("div",{className:o()(this.props.className,u.kL),children:this.renderNoteField()})}}},93568:function(e,t,n){var a=n(31085),s=n(16670),o=n(14041),i=n(36721);class r extends o.Component{render(){return(0,a.jsx)("div",{className:i.k,children:(0,a.jsx)(s.a,{})})}}n.d(t,{A:function(){return r}})},25723:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});var a=n(49040),s=n(31085),o=n(79936),i=n(59627),r=n.n(i),l=n(14041),d=n(10335),c=n(93568),h=n(53373),p=n.n(h),u=n(86090),m=n(40863),x=n(99472),v=n.n(x),_=n(47459),N=n(12489),f=n(18781),k=n(69032),C=n(11723),j=n(73295),g=n(75698);let y=new(r())({phrases:{aria:{addNote:"Add note about this photo",remove:"Remove photo from Favorites",viewDetails:"View Details about this photo",photo:"Saved photo"}},locale:"en"});class w extends l.Component{handlePhotoClick=e=>{e.preventDefault(),this.props.onClick()};render(){let{className:e,index:t,onRemove:n,favorite:{note:a,photo:{id:o,imagePath:i,companyId:r}},location:{pathname:l}}=this.props;return(0,s.jsxs)("article",{className:p()(g.kL,e),children:[(0,s.jsx)(j.A,{ariaLabel:y.t("aria.remove"),className:g.Hm,itemId:o,itemType:"Photo",onRemove:n}),(0,s.jsx)(m.A,{"aria-label":y.t("aria.viewDetails"),className:g.jW,onClick:this.handlePhotoClick,to:v()(l).addSearch("photo",o).toString(),children:(0,s.jsx)(N.A,{companyId:r,path:i,photoId:o,children:(0,s.jsx)(_.Ay,{alt:y.t("aria.photo"),className:g.Sl,dimOnHover:!0,path:i,useLqip:!0,useSrcSet:!0})})}),(0,s.jsx)(C.A,{ariaLabel:y.t("aria.addNote"),className:g.jw,itemId:o,itemType:"Photo",noteText:a}),(0,s.jsx)(f.dm,{children:(0,s.jsx)(k.A,{className:g.qB,coverImagePath:i,itemId:o,itemType:"Photo",note:a,shiftMenuRight:t%2==0})}),(0,s.jsx)(f.OW,{children:(0,s.jsx)(k.A,{className:g.qB,coverImagePath:i,itemId:o,itemType:"Photo",note:a,shiftMenuRight:t%4==0})})]})}}w=(0,a.Cg)([u.y],w);var A=n(63271),U=n(19302),S=n(61224);let M=new(r())({phrases:{text:{emptyMarkdown:"Here, you can save your favorite photos and event ideas, add your own personal notes, and add to an [Idea Slate](%{ideaSlatesUrl}) to share with your friends and collaborators. Browse thousands of photos now in [Weddings](%{weddingsUrl}), [Corporate Events](%{corporateUrl}), [Birthdays](%{birthdaysUrl}), [Bar & Bat Mitzvahs](%{mitzvahsUrl}), and [Fundraisers](%{fundraisersUrl})."}},locale:"en"}).t("text.emptyMarkdown",{weddingsUrl:A.A.ideaGalleryEventCategoryPath({eventCategory:"weddings"}),corporatesUrl:A.A.ideaGalleryEventCategoryPath({eventCategory:"corporate-events"}),birthdaysUrl:A.A.ideaGalleryEventCategoryPath({eventCategory:"birthdays"}),mitzvahsUrl:A.A.ideaGalleryEventCategoryPath({eventCategory:"mitzvahs"}),fundraisersUrl:A.A.ideaGalleryEventCategoryPath({eventCategory:"fundraisers"}),ideaSlatesUrl:A.A.ideaSlatesPath()}
1),{apiFavoritePhotosPath:b}=A.A;class T extends l.Component{state={isLoaded:!1,favorites:[]};get injected(){return this.props}requestCancel=o.qm.source();cancelToken=this.requestCancel.token;fetchData=()=>{let{cancelToken:e}=this;o.Ay.get(b(),{cancelToken:e}).then(({data:{photoFavorites:e}})=>{this.setState({isLoaded:!0,favorites:e}),this.injected.setPhotoDetailsCarousel(e.map(e=>e.photo.id))})};componentDidMount(){this.fetchData()}componentDidUpdate(e){let t=!!e.location.search,n=!!this.props.location.search;t&&!n&&this.fetchData()}componentWillUnmount(){this.injected.setPhotoDetailsCarousel([]),this.requestCancel.cancel(`${this.constructor.name} unmounted`)}renderPhotos=()=>{let{favorites:e}=this.state;return e.map(e=>e.photo)};handleClick=e=>this.injected.openPhotoDetails(e);render(){let{isLoaded:e,favorites:t}=this.state;return e?t.length?(0,s.jsx)("div",{className:U.kL,children:(0,s.jsx)("div",{className:U.Hw,children:(0,s.jsx)("div",{className:U.KQ,children:t.map((e,t)=>(0,s.jsx)(w,{className:U.jW,favorite:e,index:t,onClick:()=>this.handleClick(e.photo.id),onRemove:this.fetchData},e.id))})})}):(0,s.jsx)(d.A,{contentMarkdown:M}):(0,s.jsx)(c.A,{})}}T=(0,a.Cg)([u.y,S.Bq],T)},73295:function(e,t,n){n.d(t,{A:function(){return m}});var a=n(49040),s=n(31085),o=n(56351),i=n(59627),r=n.n(i),l=n(14041),d=n(53373),c=n.n(d),h=n(41371),p=n(95725);let u=new(r())({phrases:{text:{confirmMessage:"Are you sure you want to remove this from your favorites?"}},locale:"en"});class m extends l.Component{get injected(){return this.props}removeHandler=e=>{let{itemType:t,itemId:n,onRemove:a}=this.props,{sessionStore:s}=this.injected;e.preventDefault(),window.confirm(u.t("text.confirmMessage"))&&s.deleteFavorite(n,t).then(()=>a())};render(){let{ariaLabel:e,className:t}=this.props;return(0,s.jsx)("button",{"aria-label":e,className:c()(p.k,t),onClick:this.removeHandler,children:(0,s.jsx)(h.h,{})})}}m=(0,a.Cg)([(0,o.WQ)("sessionStore"),o.PA],m)},20812:function(e,t,n){var a=n(31085),s=n(12857),o=n(14041),i=n(53373),r=n.n(i),l=n(50221);class d extends o.Component{render(){return(0,a.jsx)("div",{className:r()(l.k,this.props.className),children:(0,a.jsx)(s.Ay,{type:s.U1["heart-outline-black"]})})}}n.d(t,{A:function(){return d}})},8780:function(e){e.exports={kL:"container__VWdmZ",iU:"ball__VWdmZ",q6:"ball-pulse__VWdmZ",Xn:"ball-pulse__VWdmZ",EX:"small__VWdmZ",as:"large__VWdmZ"}},30672:function(e){e.exports={kL:"container__NUxMN",hi:"open-button__NUxMN",MK:"menu__NUxMN",Zb:"shift-right__NUxMN",oM:"items-wrapper__NUxMN",J1:"prompt__NUxMN",eH:"slate__NUxMN",UU:"name__NUxMN",vt:"create__NUxMN"}},26659:function(e){e.exports={kL:"container__UDhTV",Hm:"heart__UDhTV",Pl:"headline__UDhTV",Qs:"content__UDhTV"}},94097:function(e){e.exports={kL:"container__SUEyW",gA:"note-text__SUEyW",hc:"edit__SUEyW"}},36721:function(e){e.exports={k:"container__V1ZFN"}},75698:function(e){e.exports={kL:"container__TXlIY",jW:"photo__TXlIY",Sl:"image__TXlIY",Hm:"heart__TXlIY",jw:"note-field__TXlIY",qB:"add-to-slate__TXlIY"}},19302:function(e){e.exports={kL:"container__RGpoX",Hw:"photos-container__RGpoX",KQ:"photos__RGpoX",jW:"photo__RGpoX"}},95725:function(e){e.exports={k:"container__RmdPd"}},50221:function(e){e.exports={k:"container__Z0F6Y"}},34501:function(e,t){t.A=function(e){return void 0===e}}}]);
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.