(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([["www/[username]/[slug]-mobile",719],{"+o5r":function(e,t,n){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const i=320,o=e=>e<=i},"1Qfp":function(e,t,n){var i=n("q1tI");t.a=()=>{const[e,t]=Object(i.useState)(!1);return Object(i.useEffect)(()=>{t(!0)},[]),e}},"5ks/":function(e,t,n){var i=n("1Qfp"),o=n("1xPy");t.a=()=>{const e=Object(o.b)(),t=Object(i.a)();return e&&!t}},CwtX:function(e,t,n){n.r(t),n.d(t,"NUMBER_OF_INTERESTS",(function(){return E})),n.d(t,"MIN_NUM_OF_INTERESTS_FOR_BOARD",(function(){return M})),n.d(t,"BoardRelatedInterestUpsellContainer",(function(){return R}));var i=n("q1tI"),o=n("/MKj"),r=n("NwG/"),s=n("yweb"),c=n("S1na"),a=n("qpbZ"),d=n("wMN6"),l=n("2COb"),b=n("0G5S"),u=n("vtuW"),j=n("ulr2"),O=n("EC67"),m=n("snfI"),p=n("0HhX"),h=n("n6mq"),f=n("nwTc"),g=n("AGnR"),x=n("nKUr");var _=({onComplete:e,pinId:t})=>{var n,_,w;const y=Object(s.c)(),v=Object(c.a)(),S=Object(o.useSelector)(e=>e.session.locale),[I,T]=Object(i.useState)(!1),[C,P]=Object(i.useState)(!1),{isNavFooterHiddenAfterScroll:E,setHomeFlyoutText:M,setShowHomeBadge:R,setShowHomeFlyoutWithButton:B}=Object(m.b)();Object(p.b)({name:"PinInterestsResource",options:{hideFollowed:!0,limit:1,pinId:t}});const k=Object(o.useSelector)(({session:e})=>e.isTablet),A=Object(o.useSelector)(({pins:e,topics:n})=>{var i;const o=null===(i=e[t].related_interest_ids)||void 0===i?void 0:i[0];return o&&n[o]||null}),{background_color:L,follower_count:N,id:z,images:D,is_followed:U,name:F}=A||{},H=(D||{})["400x"],K=Object(i.useRef)(),W=Object(i.useRef)(),q=Object(i.useRef)(),Y=Object(o.useDispatch)(),G=Object(O.h)();Object(i.useEffect)(()=>(A&&(Object(b.c)("lastViewedMiniRenux",Date.now()),Object(g.e)({event_type:9025,view_type:3,component:39,element:216,aux_data:{interest:F,interest_id:z,pin_id:t}}),P(!0),q.current=setTimeout(()=>{K.current||P(!1)},1e4)),()=>{C&&e(),clearTimeout(K.current),clearTimeout(W.current),clearTimeout(q.current)}),[z]);return A?Object(x.jsx)(h.f,{color:"white",padding:4,marginStart:4,marginEnd:4,onTransitionEnd:()=>{C||e(W.current?F:void 0)},rounding:6,width:k?425:"auto",dangerouslySetInlineStyle:{__style:{opacity:C?1:0,transform:C?"translate(0, -12px)":"",transition:"\n            translate 300ms ease-in-out, opacity 300ms ease-in-out\n          "}},children:Object(x.jsxs)(h.u,{alignItems:"center",justifyContent:"between",children:[Object(x.jsx)(h.bb,{onTap:()=>{Object(g.h)({view_type:3,component:39,element:216,aux_data:{interest:F,interest_id:z,pin_id:t}})},children:Object(x.jsxs)(h.u,{alignItems:"center",justifyContent:"start",children:[H?Object(x.jsx)(h.f,{flex:"none",children:Object(x.jsx)(h.D,{rounding:4,width:60,height:60,children:Object(x.jsx)(h.y,{alt:F,color:L,naturalWidth:null!==(n=H.width)&&void 0!==n?n:1,naturalHeight:null!==(_=H.height)&&void 0!==_?_:1,src:null!==(w=H.url)&&void 0!==w?w:""})})}):null,I?Object(x.jsx)(h.f,{marginStart:4,marginEnd:4,children:Object(x.jsx)(h.cb,{size:"lg",children:Object(a.b)(y._("We've updated your home feed with fresh ideas for {{ interestName }}","relatedInterests.upsell.image","Prompt users to go to home page after follow an interest"),{interestName:Object(x.jsx)(h.cb,{size:"lg",weight:"bold",inline:!0,children:Object(d.g)(F,S)},F)})})}):Object(x.jsxs)(h.f,{marginStart:4,marginEnd:4,children:[Object(x.jsx)(h.f,{marginBottom:1,children:Object(x.jsx)(h.cb,{size:"lg",weight:"bold",children:F})}),N?Object(x.jsx)(h.cb,{size:"lg",children:Object(a.b)(y.ngettext("{{followers}} follower","{{followers}} followers",N,"interest.attribution.followerCount","Count of an interest's followers"),{followers:v(S,N,{shortform:!0,shortform_maximum_fraction_digits:1})})}):null]})]})}),I?Object(x.jsx)(h.x,{accessibilityLabel:y._("Go to home page","relatedInterests.upsell.arrowIcon","Icon button on related interests banner that prompt users to go to home page"),bgColor:"red",icon:"arrow-forward",iconColor:"white",onClick:()=>{Object(l.a)(!1),M(),R(!1),B(!1),Object(g.h)({view_type:3,component:39,element:76,aux_data:{interest:F,interest_id:z,pin_id:t}}),G.push("/")},padding:3,size:"sm"}):Object(x.jsx)(r.a,{auxData:{interest:F,interest_id:z,pin_id:t},id:z,inline:!0,size:"md",isFollowed:U,onFollow:e=>{Object(u.c)("completedMiniRenux",!0),Y(Object(j.T)(!0)),Y(Object(f.b)(e,"mini_renux")),E?(K.current=setTimeout(()=>{T(!0)},800),W.current=setTimeout(()=>{P(!1)},5e3)):W.current=setTimeout(()=>{P(!1)},800)},onUnfollow:e=>{Object(u.c)("completedMiniRenux",!1),Y(Object(j.T)(!1)),Y(Object(f.d)(e,"mini_renux")),K.current&&clearTimeout(K.current)},followEventType:601,unfollowEventType:602,viewParameter:155,viewType:3})]})}):null},w=n("CYge"),y=n("QtD7"),v=n("QAzJ"),S=n("xQAO");const I={3:"pin_id",5:"board_id"},T=({image:e,objectId:t,onComplete:n,showRelatedInterestModal:r,viewType:c})=>{var a,d,l;const u=Object(s.c)(),[j,O]=Object(i.useState)(!1),m=Object(o.useSelector)(({session:e})=>e.isTablet),p=Object(i.useRef)(),f=Object(i.useMemo)(()=>I[c]?{[I[c]]:t}:{},[t,c]);Object(i.useEffect)(()=>(Object(b.c)("lastViewedMiniRenux",Date.now()),Object(g.e)({event_type:9025,view_type:c,component:13822,aux_data:{...f}}),O(!0),p.current||(p.current=setTimeout(()=>{O(!1)},1e4)),()=>{clearTimeout(p.current)}),[f,r,c]);return Object(x.jsx)(h.f,{color:"white",padding:4,marginStart:4,marginEnd:4,onTransitionEnd:()=>{j||n()},rounding:6,width:m?425:"auto",dangerouslySetInlineStyle:{__style:{opacity:j?1:0,transform:j?"translate(0, -12px)":"",transition:"\n            translate 300ms ease-in-out, opacity 300ms ease-in-out\n          "}},children:Object(x.jsxs)(h.u,{alignItems:"center",justifyContent:"between",children:[Object(x.jsx)(h.bb,{onTap:()=>{Object(g.h)({view_type:c,component:13822,aux_data:{...f}})},children:Object(x.jsxs)(h.u,{alignItems:"center",justifyContent:"start",children:[e?Object(x.jsx)(h.f,{flex:"none",children:Object(x.jsx)(h.D,{rounding:4,width:60,height:60,children:Object(x.jsx)(h.y,{alt:u._("Image thumbnail on related interest upsell","relatedInterests.upsell.image","Alt info on thumbnail image on related interest upsell"),color:"white",naturalWidth:null!==(a=e.width)&&void 0!==a?a:1,naturalHeight:null!==(d=e.height)&&void 0!==d?d:1,src:null!==(l=e.url)&&void 0!==l?l:""})})}):null,Object(x.jsxs)(h.f,{marginStart:4,marginEnd:4,children:[Object(x.jsx)(h.f,{marginBottom:1,children:Object(x.jsx)(h.cb,{size:"sm",children:u._("Welcome back!","relatedInterests.upsell.header","Welcome header on related interests banner")})}),Object(x.jsx)(h.cb,{size:"lg",weight:"bold",children:u._("Tell us what you're into","relatedInterests.upsell.subheader","Subheader on related interests banner instructing users to select interests")})]})]})}),Object(x.jsx)(h.x,{accessibilityLabel:u._("See related interests","relatedInterests.upsell.arrowIcon","Icon button on related interests banner that opens related interests modal"),bgColor:"red",icon:"arrow-forward",iconColor:"white",onClick:()=>{O(!1),r(!1),Object(g.h)({view_type:c,component:13822,element:96,aux_data:{...f}})},padding:3,size:"sm"})]})})},C=({numOfInterests:e,onComplete:t,pinId:n,showRelatedInterestModal:i})=>{var r;const s=Object(S.b)(n),c=null==s||null===(r=s.images)||void 0===r?void 0:r["60x60"];Object(p.b)({name:"PinInterestsResource",options:{hideFollowed:!0,limit:e,pinId:n}});const a=Object(o.useSelector)(({pins:e,topics:t})=>{const i=e[n].related_interest_ids;return null==i?void 0:i.map(e=>t[e])});return(null==a?void 0:a.length)===e&&Object(x.jsx)(T,{image:c,objectId:n,onComplete:t,showRelatedInterestModal:i,viewType:3})},P=({numOfInterests:e,onComplete:t,boardId:n,showRelatedInterestModal:i})=>{const r=Object(o.useSelector)(({boards:e})=>e[n]),s=null==r?void 0:r.images["170x"][0];Object(p.b)({name:"ApiResource",options:{url:`/v3/boards/${n}/interests/`,data:{deduping_enabled:!0,hide_followed:!0,limit:e},field_sets:["interest.background_color","interest.follower_count","interest.id","interest.images[400x]","interest.is_followed","interest.name","interest.type","interest.url_name"]}});const c=Object(o.useSelector)(({boards:e,topics:t})=>{const i=e[n].related_interest_ids;return null==i?void 0:i.map(e=>t[e])});return c&&c.length>=M?Object(x.jsx)(T,{image:s,objectId:n,onComplete:t,showRelatedInterestModal:i,viewType:5}):null};const E=6,M=3,R=({onComplete:e,boardId:t,showRelatedInterestModal:n})=>{const{anyEnabled:i}=Object(v.b)("mweb_board_mini_renux"),{isNavFooterHiddenAfterScroll:o}=Object(m.b)();Object(y.b)();const r=w.b+16,s={marginBottom:o?16:r,transition:"margin-bottom 300ms ease-in-out"};return Object(x.jsx)(h.f,{display:"flex",justifyContent:"center",position:"fixed",left:!0,right:!0,bottom:!0,dangerouslySetInlineStyle:{__style:s},children:i&&Object(x.jsx)(P,{numOfInterests:E,onComplete:e,boardId:t,showRelatedInterestModal:n})})};t.default=({onComplete:e,pinId:t,showRelatedInterestModal:n})=>{const{anyEnabled:i,group:o}=Object(v.b)("mweb_mini_renux"),{isNavFooterHiddenAfterScroll:r}=Object(m.b)();Object(y.b)();const s={marginBottom:r?16:w.b+16,transition:"margin-bottom 300ms ease-in-out"},c=i?Number(o.slice(-1)):NaN;return Object(x.jsxs)(h.f,{display:"flex",justifyContent:"center",position:"fixed",left:!0,right:!0,bottom:!0,dangerouslySetInlineStyle:{__style:s},children:[1===c&&Object(x.jsx)(_,{onComplete:e,pinId:t}),c>1&&Object(x.jsx)(C,{numOfInterests:c,onComplete:e,pinId:t,showRelatedInterestModal:n})]})}},HhTz:function(e,t,n){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n("1dBE");const{Provider:o,Consumer:r,useHook:s}=Object(i.c)("CloseupPageContext")},Hmcd:function(e,t,n){var i=n("q1tI"),o=n("/MKj"),r=n("mp1x"),s=n("h8Qw"),c=n("yweb"),a=n("+o5r"),d=n("vtuW"),l=n("ulr2"),b=n("EC67"),u=n("CwtX"),j=n("n6mq"),O=n("nwTc"),m=n("AGnR"),p=n("nKUr");const h={pin:3,board:5},f=(e,t,n)=>({view_type:h[e],component:39,aux_data:{interests:null==t?void 0:t.map(e=>e.id),[e+"_id"]:n}});t.a=function({isMaskTransparent:e,objectId:t,onDismiss:n,type:h}){const g=Object(c.c)(),x=Object(o.useSelector)(({session:e})=>e.isTablet),_=Object(a.b)(window.innerWidth),w=Object(o.useDispatch)(),y=Object(b.h)(),v="pin"===h?u.NUMBER_OF_INTERESTS:u.MIN_NUM_OF_INTERESTS_FOR_BOARD,S=Object(o.useSelector)(({boards:e,pins:n,topics:i})=>{const o="pin"===h?n[t].related_interest_ids:e[t].related_interest_ids;return null==o?void 0:o.map(e=>i[e])}),I=(null==S?void 0:S.length)||0;Object(i.useEffect)(()=>{I>=v&&Object(m.e)({...f(h,S,t),event_type:9025})},[v,t,I,h,S]);const T=Object(i.useCallback)((e,t)=>{t?w(Object(O.d)(e,"mini_renux")):(Object(d.c)("completedMiniRenux",!0),w(Object(O.b)(e,"mini_renux")))},[]),C=Object(i.useCallback)(()=>{n(),Object(m.h)({...f(h,S,t),element:12284})},[n,h,S,t]),P=Object(i.useCallback)(()=>{n(),Object(m.h)({...f(h,S,t),element:11925})},[n,h,S,t]),E=Object(i.useCallback)(()=>{w(Object(l.T)(!0)),y.push("/"),Object(m.h)({...f(h,S,t),element:76})},[y,t,S]);return I>=v?Object(p.jsxs)(r.a,{hideCloseIcon:!0,isLegoModal:!0,isOpen:!0,isSlideUp:!0,isMaskTransparent:e,isTablet:x,onDismiss:C,type:"related_interests_modal",children:[Object(p.jsxs)(j.f,{flex:"grow",display:"flex",alignItems:"baseline",margin:-1,children:[Object(p.jsx)(j.u,{alignItems:"center",justifyContent:"start",children:Object(p.jsx)(j.x,{accessibilityLabel:g._("Close modal","relatedInterests.modal.close","Close related interests modal icon button"),iconColor:"darkGray",icon:"cancel",onClick:P,padding:4,size:"sm"})}),Object(p.jsx)(j.f,{display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",marginStart:0,marginEnd:12,children:Object(p.jsx)(j.cb,{align:"center",size:"sm",children:g._("Welcome back!","relatedInterests.modal.header","Welcome header on related interests banner")})})]}),Object(p.jsx)(j.f,{children:Object(p.jsx)(j.cb,{size:"lg",weight:"bold",align:"center",children:g._("Tell us what else you're interested in","relatedInterests.modal.subheader","Subheader on realted interests banner instructing users to select interests")})}),Object(p.jsx)(j.f,{display:"flex",alignItems:"center",justifyContent:"center",paddingY:3,wrap:!0,children:null==S?void 0:S.map(e=>Object(p.jsx)(j.f,{padding:1,children:Object(p.jsx)(j.bb,{tapStyle:"compress",rounding:"pill",onTap:()=>{T(e.id,e.is_followed)},children:Object(p.jsx)(s.a,{decreaseNamePadding:_,id:e.id,isLego:!0,isSelected:e.is_followed,nameTextSize:"sm",renderAsPill:!0,topicBlob:e,viewParameter:155,viewType:3})})},e.id))}),Object(p.jsx)(j.f,{display:"flex",justifyContent:"center",paddingX:2,children:Object(p.jsx)(j.g,{fullWidth:!0,accessibilityLabel:g._("See your new home feed","relatedInterests.modal.seeHomefeed","Submit selected topics and go to updated homefeed button"),color:"red",disabled:!(null==S?void 0:S.some(e=>e.is_followed)),onClick:E,text:g._("See your new home feed","relatedInterests.modal.seeHomefeed","Submit selected topics and go to updated homefeed button"),size:"lg"})})]}):null}},Lfjc:function(e,t,n){n.d(t,"a",(function(){return s}));const i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g;var r=n("nKUr");function s({id:e,type:t="application/json",value:n}){const s=JSON.stringify(n).replace(o,e=>i[e]);return Object(r.jsx)("script",{id:e,type:t,dangerouslySetInnerHTML:{__html:s}})}},OFkv:function(e,t,n){n.r(t),n.d(t,"default",(function(){return X}));var i=n("q1tI"),o=n("/MKj"),r=n("Lr1Z"),s=n("g6r8"),c=n("n6mq"),a=n("nKUr");function d({pinId:e}){var t,n;const i=Object(s.a)(),r=Object(o.useSelector)(({pins:t})=>t[e]),{description:d,image_large_url:l,image_large_size_pixels:b}=r||{};return Object(a.jsx)(c.f,{column:6,dangerouslySetInlineStyle:{__style:{marginLeft:1}},marginEnd:0,children:Object(a.jsx)(c.D,{height:"phone"===i?117:141,wash:!0,children:l&&b&&Object(a.jsx)(c.y,{alt:null!=d?d:"",naturalHeight:null!==(t=b.height)&&void 0!==t?t:1,naturalWidth:null!==(n=b.width)&&void 0!==n?n:1,src:l,fit:"cover"})})})}var l=n("yweb"),b=n("S1na"),u=n("qpbZ"),j=n("wMN6"),O=n("28DW"),m=n("EC67");const p=({boardSection:e,children:t,url:n})=>{const i=Object(m.i)(),s=Object(m.h)(),{isAuthenticated:d}=Object(o.useSelector)(({session:e})=>e);return d?Object(a.jsx)(r.a,{nofollow:!0,pressState:["background","compress"],rounding:2,to:n,children:t}):Object(a.jsx)(c.bb,{tapStyle:"compress",onTap:()=>{Object(O.h)("click_board_section"),s.push({...i,state:{...i.state,selectedSection:e}})},children:t})};function h({boardUrl:e,boardSectionId:t}){const n=Object(l.c)(),r=Object(b.a)(),O=Object(s.a)(),m="phone"===O?2:3,{locale:h}=Object(o.useSelector)(({session:e})=>e),f=Object(o.useSelector)(({boardsections:e})=>e[t]),[g,x]=Object(i.useState)(!1);if(!f)return null;const{title:_,preview_pins:w=[],pin_count:y,slug:v}=f;return Object(a.jsx)(p,{boardSection:f,url:`${e}${null!=v?v:""}/`,children:Object(a.jsxs)(c.f,{onMouseEnter:"desktop"===O?()=>x(!0):void 0,onMouseLeave:"desktop"===O?()=>x(!1):void 0,paddingY:4,marginBottom:-2,children:[Object(a.jsx)(c.D,{rounding:4,children:Object(a.jsx)(c.f,{color:g?"darkWash":void 0,display:"flex",marginStart:-1,marginEnd:-1,opacity:g?.9:void 0,children:Object(j.h)(0,m).map(e=>Object(a.jsx)(d,{pinId:w?w[e]:""},e))})}),Object(a.jsxs)(c.f,{marginTop:2,marginStart:2,display:"flex",direction:"column",children:[Object(a.jsx)(c.v,{size:"sm",children:_}),Object(a.jsx)(c.f,{marginTop:-1,marginBottom:-1,paddingY:2,children:Object(a.jsx)(c.cb,{size:"sm",weight:"normal",children:Object(u.b)(n.ngettext("{{ count }} Pin","{{ count }} Pins",y||0,"BoardSection.Pincount","label for n amount of pins"),{count:r(h,y||0,{shortform:!0,shortform_maximum_fraction_digits:1})})})})]})]})})}var f=n("OadL");function g({boardId:e,boardUrl:t,fetchState:n}){const i=Object(l.c)(),r=Object(s.a)(),d=Object(o.useSelector)(t=>Object(f.f)(t,{boardId:e}));return d?Object(a.jsxs)(c.f,{marginStart:-1,marginEnd:-1,children:[Object(a.jsx)(c.u,{alignItems:"center",wrap:!0,justifyContent:"center",children:d.map(({id:e})=>Object(a.jsx)(c.f,{"data-test-id":"board-section",paddingX:"phone"===r?1:2,width:"phone"===r?"50%":320,children:Object(a.jsx)(h,{boardUrl:t,boardSectionId:e})},e))}),n&&Object(a.jsx)(c.P,{isAtEnd:!1,isFetching:n.fetching,fetchMore:n.fetchMore})]}):Object(a.jsx)(c.f,{column:12,paddingY:2,children:Object(a.jsx)(c.U,{accessibilityLabel:i._("Loading feed"),show:!0})})}var x=n("0HhX");const _=({children:e,config:t})=>{const{isFetching:n,fetchMore:i,error:o,isAtEnd:r}=Object(x.c)(t),s=!r&&!o;return e(s?{fetching:n,fetchMore:i,hasMore:s}:{hasMore:s})};function w({children:e,resourceConfig:t}){return t?Object(a.jsx)(_,{config:t,children:e}):e({hasMore:!1})}var y=n("SvRC"),v=n("AvID"),S=n("Hmcd"),I=n("T9xC"),T=n("5ks/"),C=n("1Qfp"),P=n("DzJC"),E=n.n(P);var M=function(e=1400){const[t,n]=Object(i.useState)(!1),[o,r]=Object(i.useState)(!1),s=E()(()=>{if(window&&window.scrollY){const i=window.scrollY>=e;if(i&&!t?n(!0):!i&&t&&n(!1),document&&document.body){window.innerHeight+window.scrollY+1>=document.body.offsetHeight&&r(!0)}}},50);return Object(i.useEffect)(()=>(window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}),[s]),{hasScrolledToBottom:o,isScrolledToThreshold:t}},R=n("CwtX"),B=n("u/gA"),k=n("lGFD"),A=n("d8Qp"),L=n("RNo4"),N=n("QAzJ"),z=n("snfI"),D=n("r+rM"),U=n("mNkP"),F=n("uJ3H"),H=n("sD0+");const K=Object(o.connect)(({users:e},{ownerId:t})=>{const n=e[t];return{ownerName:n&&n.full_name}},()=>({}))(({boardName:e,isOwnBoard:t,isSensitive:n,ownerName:i})=>{const o=Object(l.c)();return t?!n&&Object(a.jsx)(D.a,{icon:"arrow-circle-forward",iconLabel:"Go to search",message:o._("Let's find some ideas for your board...","empty state message when your board has no pins","empty state message when your board has no pins"),url:e?"/search/pins/?rs=typed&q="+encodeURIComponent(e):"",onTouch:()=>Object(H.b)({searchScope:"my_content",searchTerm:null!=e?e:"",rs:"typed"})}):Object(a.jsx)(D.a,{message:Object(u.c)(o._("{{ user }} hasn't saved any Pins to this board yet"),{user:i||o._("This Pinner")})})}),W=({boardId:e,isAuthenticated:t})=>({add_vase:!t,board_id:e,field_set_key:"react_grid_pin",filter_section_pins:t,is_react:!0,prepend:!1});function q({boardId:e,boardName:t,isOwnBoard:n,isSensitive:r,ownerId:s,pinCount:c,resource:d,seoRelatedInterests:l}){const b=Object(o.useSelector)(e=>e.session.isAuthenticated),u=Object(o.useSelector)(({feeds:t})=>t["boardfeed:"+e])||[];return Object(a.jsxs)(i.Fragment,{children:[Object(a.jsx)(y.a,{breakIn:!b&&l&&l.length>0?Object(F.b)(l,!1):void 0,emptyState:Object(a.jsx)(K,{boardName:t,isOwnBoard:n,isSensitive:r,ownerId:s}),itemShouldBeExcluded:e=>"story"===e.type&&"board_ideas_preview_detailed"===e.story_type,resource:d,feedItemProps:{viewType:5,viewParameter:n?3069:3070},feedKey:"boardfeed:"+e,trafficSource:"board",serverRender:!0}),!b&&Object(a.jsx)(U.a,{pinCount:c,pins:u})]})}var Y=n("Tn2K");const G=({boardId:e,isOwnBoard:t})=>{const n=Object(m.i)();return Object(a.jsx)(y.c,{resourceConfig:{name:"BoardContentRecommendationResource",options:{add_vase:!0,id:e,type:"board",__track__from_news_id:Object(L.l)(n.search).from_news_id,__track__referrer:20}},feedItemProps:{viewType:5,viewParameter:t?3069:3070},feedKey:"recommendation-feed:"+e,trafficSource:"board"})},$=({boardId:e})=>{const t=Object(l.c)(),{locale:n,isAuthenticated:r,landingPageType:s}=Object(o.useSelector)(({session:e})=>e),[c,d]=Object(i.useState)(!1),[b,O]=Object(i.useState)(!1),{hasScrolledToBottom:m,isScrolledToThreshold:p}=M(),h=Object(N.a)("mweb_mini_renux_cooldown"),{setHomeFlyoutText:f,setShowHomeBadge:g,setShowHomeFlyoutWithButton:x}=Object(z.b)(),_=Object(C.a)(),w=r&&"board"===s&&(p||m)&&!c&&_&&!(Object(A.a)()&&h().anyEnabled);return Object(a.jsxs)(i.Fragment,{children:[w&&Object(a.jsx)(R.BoardRelatedInterestUpsellContainer,{onComplete:e=>{e&&(f(Object(u.b)(t._("We've added fresh ideas for {{ interestName }}","navFooter.flyout.text","A flyout points at Home button to ask users to go to home page"),{interestName:Object(j.g)(e,n)}).join("")),g(!0),x(!0)),d(!0)},boardId:e,showRelatedInterestModal:()=>O(!0)}),b&&Object(a.jsx)(S.a,{isMaskTransparent:!1,objectId:e,onDismiss:()=>{d(!0),O(!1)},type:"board"})]})};function Q({board:e,isCollaborator:t,isOwnBoard:n}){const i=Object(l.c)(),o=Object(I.a)(),r=Object(s.a)(),{pin_count:d,owner:b,section_count:u,sensitivity:j,should_show_more_ideas:O}=e,m=Object(x.b)({name:"BoardToolsFeedResource",options:{boardId:e.id},dangerouslyDisableFetch:!(n||t)}),p=Object(x.b)({name:"BoardFeedResource",options:W({boardId:e.id,isAuthenticated:o})}),h=Object(T.a)();return Object(a.jsx)(w,{resourceConfig:u?{name:"BoardSectionsResource",options:{board_id:e.id}}:null,children:s=>{var l;return Object(a.jsxs)(c.f,{children:[!!u&&Object(a.jsx)(g,{boardId:e.id,boardUrl:null!==(l=e.url)&&void 0!==l?l:"",fetchState:s.hasMore?{fetching:s.fetching,fetchMore:s.fetchMore}:void 0}),!((n||t)&&!m.isAtEnd)&&!s.hasMore&&Object(a.jsxs)(c.f,{children:[Object(a.jsx)(c.f,{paddingY:4,children:d?Object(a.jsx)(q,{boardId:e.id,boardName:e.name,isSensitive:Object(k.c)(j),isOwnBoard:n,ownerId:b,pinCount:null!=d?d:0,resource:p}):Object(a.jsx)(c.f,{paddingY:12,children:Object(a.jsx)(c.cb,{weight:"normal",align:"center",children:i._("There aren't any Pins on this board yet.","BoardSections.EmptyBoard","Message for empty board state")})})}),p.isAtEnd&&!h&&Object(a.jsx)(c.f,{paddingY:4,children:o?Object(a.jsx)($,{boardId:e.id}):"desktop"===r&&O&&Object(a.jsxs)(c.u,{direction:"column",gap:4,children:[Object(a.jsx)(c.u,{justifyContent:"center",children:Object(a.jsx)(c.v,{size:"md",accessibilityLevel:2,children:i._("More like this","On mobile web pin page, title for related pins beneath board pins","On mobile web pin page, title for related pins beneath board pins")})}),Object(a.jsx)(G,{boardId:e.id,isOwnBoard:n})]})})]})]})}})}function X(){var e;const t=Object(I.a)(),n=Object(m.i)(),{params:{slug:r,username:s}}=Object(m.k)(),c=Object(o.useSelector)(e=>s&&r?Object(f.b)(e)[`/${s}/${encodeURIComponent(decodeURIComponent(r))}/`]:null);Object(i.useEffect)(()=>{t||Object(O.h)("view_board_page")},[t]);const d=null===(e=n.state)||void 0===e?void 0:e.selectedSection,l=Object(v.a)(Boolean(null==c?void 0:c.collaborated_by_me)),b=Object(o.useSelector)(({session:e})=>e.isAuthenticated&&e.userId===(null==c?void 0:c.owner));return Object(a.jsx)(Y.b,{children:!!c&&(d?Object(a.jsx)(B.BoardSectionPagePresentation,{board:c,boardSection:d,isAuthenticated:t,isCollaborator:l,isOwnBoard:b}):Object(a.jsx)(Y.a,{children:Object(a.jsx)(Q,{board:c,isCollaborator:l,isOwnBoard:b})}))})}},Pw4u:function(e,t,n){n.d(t,"a",(function(){return c}));var i=n("+ZRO"),o=n("yweb"),r=n("n6mq"),s=n("nKUr");function c({interests:e,titleSize:t}){const n=Object(o.c)();return Object(s.jsxs)(r.f,{display:"flex",direction:"column",padding:1,marginTop:4,marginBottom:4,children:[Object(s.jsx)(r.f,{marginBottom:2,children:Object(s.jsx)(r.cb,{size:t,weight:"bold",align:"center",children:n._("Similar ideas popular now","Title of suggesting related topics module in the pin feeds.","unauth.relatedPins.suggested_ideas")})}),e.map((e,t)=>Object(s.jsx)(i.a,{interest:e,shouldWrapText:!0},t))]})}},T9xC:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("/MKj");function o(){return Object(i.useSelector)(({session:e})=>e.isAuthenticated)}},d8Qp:function(e,t,n){n.d(t,"a",(function(){return o}));var i=n("0G5S");const o=()=>{const e=Object(i.a)("lastViewedMiniRenux");return!!e&&Date.now()-Number(e)<2592e5}},eCaw:function(e,t,n){function i(e){const t="--";if((e||"").includes(t)){const n=e.split(t),i=n.pop();return{text:n.join(t),pinId:i}}return{text:"",pinId:e}}n.d(t,"a",(function(){return i}))},mNkP:function(e,t,n){n.d(t,"a",(function(){return s}));var i=n("Lfjc"),o=n("pLLR"),r=n("nKUr");function s({pinCount:e=125,pins:t}){const{fullPath:n,isAuthenticated:s,origin:c}=Object(o.d)(),a=e=>`${c}/pin/${e.id}/`,d=(e,t)=>({"@type":"ListItem",position:t+1,url:a(e)});if(s)return null;const l=t.filter(e=>"pin"===e.type).slice(0,20);return 0===l.length?null:Object(r.jsx)(i.a,{value:(t=>({"@context":"http://schema.org/","@type":"ItemList",mainEntityOfPage:{"@type":"CollectionPage","@id":`${c}${n}`},itemListElement:t.map(d),numberOfItems:e}))(l),type:"application/ld+json"})}},"r+rM":function(e,t,n){var i=n("Lr1Z"),o=n("n6mq"),r=n("nKUr");t.a=({icon:e,iconLabel:t,message:n,url:s,onTouch:c})=>{const a=Object(r.jsxs)(o.f,{alignItems:e?"center":void 0,color:"darkGray",display:e?"flex":"inlineBlock",justifyContent:e?"between":void 0,padding:2,rounding:2,children:[Object(r.jsx)(o.f,{marginEnd:e?2:0,children:Object(r.jsx)(o.cb,{color:"white",overflow:"normal",weight:"bold",children:n})}),e&&t&&Object(r.jsx)(o.f,{flex:"none",children:Object(r.jsx)(o.w,{icon:e,color:"white",accessibilityLabel:t,size:32})})]});return Object(r.jsx)(o.f,{paddingX:2,children:s?Object(r.jsx)(i.a,{to:s,rounding:2,pressState:"background",onTouch:c,children:a}):a})}},"sD0+":function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var i=n("AGnR");const o={my_content:63,pins:60,users:62,boards:61,buyable_pins:3800},r={my_content:189,boards:44,my_pins:107,users:45,pins:43,buyable_pins:254};function s({searchScope:e,searchTerm:t,rs:n}){(t=t.trim())&&Object(i.e)({event_type:o[e],view_parameter:r[e],view_type:2,aux_data:{query:t,rs:n}})}function c(e,t){Object(i.h)({view_parameter:103,view_type:2,component:35,element:e,aux_data:t})}function a(e){return e.split("/")[2]}},"u/gA":function(e,t,n){n.r(t),n.d(t,"BoardSectionPagePresentation",(function(){return M})),n.d(t,"default",(function(){return R}));var i=n("q1tI"),o=n("/MKj"),r=n("PaNI"),s=n("hLPq"),c=n("mp1x"),a=n("Ofms"),d=n("yweb"),l=n("EC67"),b=n("n6mq"),u=n("nKUr");function j({boardSectionId:e,canEdit:t,isSecret:n,isSensitive:o,openShareModal:r}){const j=Object(d.c)(),O=Object(l.h)(),[m,p]=Object(i.useState)(!1),h=()=>p(!1);return Object(u.jsxs)(i.Fragment,{children:[Object(u.jsx)(s.a,{accessibilityLabel:j._("More section options","boardSectionHeaderOverflowMenu.iconButton.accessibilityLabel","Accessibility label for more section options overflow menu button"),bgColor:"lightGray",color:"darkGray",icon:"ellipsis",onTouch:()=>p(!0),padding:2,size:"sm"}),Object(u.jsx)(c.a,{hideCloseIcon:!0,isOpen:m,onDismiss:h,type:"block_button",children:Object(u.jsx)(b.f,{paddingX:2,paddingY:3,children:Object(u.jsxs)(b.u,{direction:"column",gap:2,children:[Object(u.jsx)(b.cb,{children:j._("Section options","boardSectionHeaderOverflowMenu.boardSectionOptions","Options heading on Modal on own section")}),t&&Object(u.jsx)(b.bb,{fullWidth:!1,onTap:()=>{O.replace(`/boardsection/${e}/edit/`)},rounding:"circle",children:Object(u.jsx)(a.a,{id:"editSection",children:Object(u.jsx)(b.v,{size:"sm",children:j._("Edit","boardSectionHeaderOverflowMenu.boardSectionOptions.editButton","Button to edit section")})})}),!n&&!o&&Object(u.jsx)(b.bb,{fullWidth:!1,onTap:r,rounding:"circle",children:Object(u.jsx)(a.a,{id:"sendBoard",children:Object(u.jsx)(b.v,{size:"sm",children:j._("Share","boardSectionHeaderOverflowMenu.boardSectionOptions.shareButton","Button to share board")})})}),Object(u.jsx)(b.f,{"data-test-id":"closeBoardSectionOptions",display:"flex",justifyContent:"center",marginTop:3,children:Object(u.jsx)(b.g,{color:"gray",onClick:h,size:"lg",text:j._("Close","boardSectionHeaderOverflowMenu.boardSectionOptions.closeModal","Accessibility label for close button on Modal on own section")})})]})})})]})}var O=n("++39"),m=n("SvRC"),p=n("uKg+"),h=n("AvID"),f=n("Lr1Z"),g=n("Bb4+"),x=n("o+5w"),_=n("DlC4"),w=n("/A17"),y=n("hFTz"),v=n("r8+8"),S=n("lGFD"),I=n("0HhX"),T=n("28DW"),C=n("OadL");const P=e=>encodeURIComponent(decodeURIComponent(e)),E=({boardSectionId:e,isOwnBoard:t,viewParameter:n})=>Object(u.jsx)(m.c,{feedKey:"board-section-pins:"+e,feedItemProps:{viewType:164,viewParameter:n},resourceConfig:{name:"BoardSectionPinsResource",options:{page_size:25,prepend:t,section_id:e}},trafficSource:"board"});function M({board:e,boardSection:t,isAuthenticated:n,isCollaborator:o,isOwnBoard:s}){var c,a;const m=Object(d.c)(),h=Object(l.i)(),I=Object(l.h)(),[C,P]=Object(i.useState)(!1),{access:M,name:R}=e,{sensitivity:B,privacy:k}=e,A=Object(S.c)(B),L="secret"===k,[N,z]=Object(i.useState)(!1);if(Object(i.useEffect)(()=>{n?Object(T.a)("mweb.board_section.view.authenticated"):Object(T.a)("mweb.board_section.view.unauthenticated"),Object(T.h)("view_board_section_page")},[]),!t)return Object(u.jsx)(b.f,{column:12,paddingY:2,children:Object(u.jsx)(b.U,{accessibilityLabel:m._("Loading feed"),show:!0})});const{id:D,title:U,pin_count:F}=t,H=!(!M||!M.includes("write")),K=s?3069:3070;return Object(u.jsx)(x.a,{objectIdStr:D,viewParameter:K,viewType:164,children:Object(u.jsx)(y.a,{view:164,viewParameter:K,objectId:D,children:Object(u.jsxs)(g.b,{hasFixedHeader:!0,children:[Object(u.jsx)(v.d,{children:Object(u.jsxs)(b.f,{display:"flex",justifyContent:"between",alignItems:"center",height:"100%",column:12,children:[Object(u.jsx)(b.u,{alignItems:"center",children:n&&Object(u.jsx)(r.a,{color:"darkGray",onTouch:()=>{n||Object(T.h)("click_go_back_to_board")},padding:3,size:"sm",viewParameter:K,viewType:164})}),C&&Object(u.jsx)(b.f,{display:"flex",alignItems:"center",justifyContent:"center",flex:"grow",marginEnd:2,marginStart:2,children:Object(u.jsx)(b.cb,{align:"center",lineClamp:1,weight:"bold",children:U})}),(H||!L&&!A)&&Object(u.jsx)(b.f,{paddingX:2,children:Object(u.jsx)(j,{boardSectionId:null!=D?D:"",canEdit:H,isSecret:L,isSensitive:A,openShareModal:()=>z(!0)})})]})}),n&&Object(u.jsx)(i.Fragment,{children:Object(u.jsx)(_.default,{objectType:2,isOpen:N,onDismiss:()=>z(!1),objectId:String(e.id)})}),Object(u.jsx)(f.a,{to:null!==(c=e.url)&&void 0!==c?c:"",pressState:"background",onTouch:e=>{n||(Object(T.h)("click_go_to_board"),I.push({...h,state:{...h.state,selectedSection:null}}))},children:Object(u.jsx)(b.v,{color:"gray",size:"lg",align:"center",children:R})}),Object(u.jsxs)(b.f,{paddingY:2,children:[Object(u.jsx)(w.a,{throttleTime:10,onEnter:()=>{P(!1)},onExit:()=>{P(!0)},children:Object(u.jsx)(b.v,{size:"lg",align:"center",children:U})}),(s||o)&&Object(u.jsx)(b.f,{paddingY:3,children:Object(u.jsx)(O.a,{sectionId:D})})]}),!F&&Object(u.jsx)(b.f,{paddingY:8,marginTop:8,children:Object(u.jsx)(b.cb,{weight:"normal",align:"center",children:m._("There aren't any Pins on this section yet.","Message for empty board section state","Message for empty board section state")})}),Object(u.jsx)(E,{boardSectionId:null!=D?D:"",isOwnBoard:s,viewParameter:K}),s&&Object(u.jsx)(p.a,{boardId:null!==(a=e.id)&&void 0!==a?a:"",surface:"section"})]})})})}function R(){const{slug:e,section_slug:t,username:n}=Object(l.j)(),i=decodeURIComponent(e||""),r=decodeURIComponent(t||""),{isAuthenticated:s,userId:c}=Object(o.useSelector)(({session:e})=>e);Object(I.b)({name:"BoardSectionResource",options:{board_slug:i,section_slug:r,username:n}});const a=Object(o.useSelector)(e=>Object(C.b)(e)[`/${n||""}/${P(i)}/`]||{}),d=Object(o.useSelector)(e=>Object(C.e)(e)[`${a.id}_${P(r)}`]),b=c===a.owner,j=Object(h.a)(Boolean(a.collaborated_by_me));return Object(I.b)({name:"SectionToolsFeedResource",options:{sectionId:null==d?void 0:d.id},dangerouslyDisableFetch:!(b||j)}),Object(u.jsx)(M,{board:a,boardSection:d,isAuthenticated:s,isCollaborator:j,isOwnBoard:b})}},uJ3H:function(e,t,n){n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return I}));var i=n("q1tI"),o=n("/MKj"),r=n("ie/H"),s=n("Pw4u"),c=(n("juJw"),n("yweb")),a=n("n6mq"),d=n("nKUr");var l=n("qcoM"),b=n("/A17"),u=n("g6r8");var j=({header:e,feed:t,storyModules:n,mainPinImageIsExpanded:o,onRelatedPinsTitleEnter:r,onRelatedPinsTitleExit:s,relatedPinsTitleRef:c,setShouldExpandCollapsablePin:j})=>{const[O,m]=Object(i.useState)(!1),p=Object(i.useCallback)(()=>{m(!0),j(!0)},[j]),h=Object(u.b)(),f=h?2:void 0;return Object(d.jsxs)(i.Fragment,{children:[Object(d.jsx)(a.f,{height:h?32:0}),O||o?Object(d.jsxs)(a.f,{paddingX:f,"data-layout-shift-boundary-id":"UnauthRelatedPinsWithoutDrawer","data-test-id":"related-pins-without-drawer",children:[n,Object(d.jsx)(a.f,{ref:c,children:Object(d.jsx)(b.a,{onEnter:r,onExit:s,children:e})}),t]}):Object(d.jsx)(l.b,{hideDrawer:p,children:Object(d.jsxs)(a.f,{paddingX:f,children:[e,t]})})]})},O=n("hFTz"),m=n("SvRC"),p=n("EfoL"),h=n("zRck"),f=n("QAzJ"),g=n("HhTz"),x=n("pTLB");const _={id:"interestLinks",type:"interestLinks"},w=(e,t)=>({item:_,content:Object(d.jsx)(s.a,{interests:e,titleSize:t?"md":"sm"}),position:10}),y=({pin:e,resource:t})=>{var n,o;const r=Object(u.b)(),[s,c]=Object(i.useState)(0),a=Object(x.b)(),l=null==a?void 0:a.showSignupModal,b=(null===(n=e.pin_join)||void 0===n||null===(o=n.seo_related_interests)||void 0===o?void 0:o.slice(0,5))||[];return Object(d.jsx)(m.a,{breakIn:b&&b.length>0?w(b,r):void 0,feedKey:"related-pins:"+e.id,trafficSource:"pin",resource:t,feedItemProps:{componentType:13007,objectIdStr:e.id,viewData:{pin_id:e.id},viewParameter:Object(p.f)(e),viewType:3,showSeoMetadata:!0,onPinLinkClick:l?e=>{s>2?(e&&e.preventDefault(),l("signup",{source:"saveButton",container:h.e}),c(1)):c(s+1)}:void 0},serverRender:!0})},v=({hideMainPin:e})=>{const t=Object(c.c)();return e?t._("More ideas","mobilePinPage.relatedPins.title","On mobile web pin page, title for related pins"):t._("More like this","mobilePinPage.relatedPins.title","On mobile web pin page, title for related pins beneath pin closeup")},S=({storyId:e})=>{const t=Object(o.useSelector)(({stories:t})=>t[e]),{story_type:n,title:i}=t;return n.startsWith("SKIN_TONE_FILTER_QUERIES")?Object(d.jsx)(a.f,{marginBottom:8,children:Object(d.jsx)(r.a,{title:i})},"related-module-"+e):null};function I({hideMainPin:e,mainPinImageIsExpanded:t,onRelatedPinsTitleEnter:n,onRelatedPinsTitleExit:i,pin:r,relatedPinsTitleRef:s,setShouldExpandCollapsablePin:c,resource:l}){const{clientTrackingParams:b,viewParameter:u}=Object(g.b)(),m=Object(o.useSelector)(({feeds:e})=>e["related-pins:"+r.id]),{group:p=""}=Object(f.a)("ag_skin_tone_filter_search_queries_on_p2p_mweb_unauth")({dangerouslySkipActivation:!0});return Object(d.jsx)(j,{header:Object(d.jsx)(a.f,{justifyContent:"center",display:"flex",paddingY:4,id:"relatedPins","data-test-id":"related-pins-header",children:Object(d.jsx)(a.v,{size:"sm",accessibilityLevel:2,children:Object(d.jsx)(v,{hideMainPin:e})})}),storyModules:p.startsWith("enabled")?(Array.isArray(m)?m:[]).filter(({type:e})=>"story"===e).slice(0,1).map(({id:e})=>Object(d.jsx)(S,{storyId:e},"story-module-"+e)):null,feed:Object(d.jsx)(O.a,{viewParameter:u,component:86,clientTrackingParams:b,children:Object(d.jsx)(a.f,{"data-test-id":"relatedPins",children:Object(d.jsx)(y,{pin:r,resource:l})})}),mainPinImageIsExpanded:t,onRelatedPinsTitleEnter:n,onRelatedPinsTitleExit:i,relatedPinsTitleRef:s,setShouldExpandCollapsablePin:c})}},xQAO:function(e,t,n){n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var i=n("/MKj"),o=n("eCaw"),r=n("g6r8");const s=e=>{const{pinId:t}=Object(o.a)(e);return Object(i.useSelector)(({pins:e})=>e[t])},c=e=>Object(i.useSelector)(({users:t})=>e&&e.promoter&&!e.is_downstream_promotion?t[e.promoter]:null),a=()=>"phone"!==Object(r.a)()?180:130},zRck:function(e,t,n){n.d(t,"o",(function(){return i})),n.d(t,"p",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"n",(function(){return c})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return u})),n.d(t,"j",(function(){return j})),n.d(t,"i",(function(){return O})),n.d(t,"h",(function(){return m})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"m",(function(){return f}));const i="MULTIPLE_ACCOUNTS",o="MULTIPLE_ACCOUNTS_GROUP",r="account_switcher_flyout",s="account_switcher_modal",c="vmp_account_switcher_modal",a="account_recovery",d="board_invite",l="closeup",b="flashlight_grid",u="google_one_tap_modal",j="inspired_banner",O="hybrid_clickthrough",m="hybrid_banner",p="pin_image",h="response_flyout",f="unauth_header"}},[["OFkv","runtime","vendor-react",0,5,6,7,8,16,17,18,19,68,109,243]]]);
//# sourceMappingURL=https://sm.pinimg.com/webapp/www/[username]/[slug]-mobile-b18554d39fec0af9c4b7.mjs.map