PageSourceSearch

https://storyweaver.org.in/assets/index.B1D2NJok.js

js storyweaver.org.in collected 2026-10-01 10:12:48 UTC 20,697 bytes, 1 lines download raw bytes

1import{j as e,R as l,r as i}from"./react-vendor.B75MsAI9.js";import{u as t,L as s,O as a,an as n,i1 as o,Q as r,a4 as d,S as u,cB as c,w as g,a as m,cr as h,aQ as p,m as f,o as x,C as j,M as v,T as y,fS as b,V as w,b0 as k,i2 as I,a7 as _,g as C,t as L,D as R,p as N,i3 as T,s as D,i4 as $,U as S,i5 as M,H as E,J as P,aH as A,dU as F,E as z,i6 as B,i7 as q,aG as O}from"./AuthModalContainer.D3JsQqnf.js";import{u as G}from"./RTLProvider.Bmr48mpV.js";import{M as W,I as V,X as H,C as U,B as Q,a as J,S as X,P as K,A as Y,e as Z,E as ee}from"./main.DrmgIV4z.js";import{B as le}from"./Block.v-v90TCf.js";import{a as ie,L as te}from"./LazyFontLoader.5DGfhuFK.js";import{I as se}from"./ImageCard.mKL15i44.js";import{R as ae}from"./Rating.Bh-Nzh-g.js";import{R as ne}from"./Rowifier.kY14g1gd.js";import{S as oe}from"./SectionBlock.CYiEdDTE.js";import{S as re}from"./Stuffer.D9jR5Zya.js";import{L as de}from"./Likes.Ciwuh2Fr.js";import{P as ue}from"./Publisher.DOVukXcL.js";const ce=({animators:l,calligraphers:i,illustrators:n,photographers:o,painters:r,offline:d})=>{const u=t(),c=l=>l.map(l=>e.jsx(s,{isInternal:!0,disabled:d,href:a.userProfile(l.slug),children:l.name},l.slug)),g=c(l||[]),m=g.length>0?e.jsxs("p",{children:[u("Book.animated-by")," ",ie(g,u("global.list-conjunction"))]}):null,h=c(i||[]),p=h.length>0?e.jsxs("p",{children:[u("Book.calligraphed-by")," ",ie(h,u("global.list-conjunction"))]}):null,f=c(n||[]),x=f.length>0?e.jsxs("p",{children:[u("Book.illustrated-by")," ",ie(f,u("global.list-conjunction"))]}):null,j=c(o||[]),v=j.length>0?e.jsxs("p",{children:[u("Book.photograph-by")," ",ie(j,u("global.list-conjunction"))]}):null,y=c(r||[]),b=y.length>0?e.jsxs("p",{children:[u("Book.paintings-by")," ",ie(y,u("global.list-conjunction"))]}):null;return e.jsxs("div",{children:[m,p,x,b,v]})},ge=({image:l,alt:i,parentClassName:t,fit:s="auto",disableRightClick:a,shouldDisplayActionLink:d,actionLink:u})=>{const c="pb-canvas";if(null==l)return null;const g=n(l.sizes);if(!g||!g.width||!g.height)return null;const m=g.width/g.height>1,h=o(l.sizes),p={[c]:!0},f={[`${c}__img`]:!0,[`${c}__img--fit-height`]:"height"===s||"auto"===s&&!m,[`${c}__img--fit-width`]:"width"===s||"auto"===s&&m,[t]:t};return e.jsxs("div",{className:r(p),children:[e.jsx("div",{className:`${c}__wrapper`,children:e.jsx("img",{className:r(f),src:g.url,srcSet:h,alt:i,onContextMenu:a?e=>{e.preventDefault()}:null})}),d?u:null]})};ge.propTypes={image:d.object.isRequired,alt:d.string,parentClassName:d.string,fit:d.oneOf(["auto","width","height"]),disableRightClick:d.bool,shouldDisplayActionLink:d.bool,actionLink:d.node};const me=({baseClassName:l,menu:i,t:t})=>{if(i){const a=e.jsx(s,{parentClassName:`${l}__dropdown-link`,theme:"dark",children:e.jsx(u,{name:"dots",title:t("SvgTitle.dots")})});return e.jsx(c,{parentClassName:`${l}__dropdown`,toggleEl:a,noPadding:!0,children:i})}return null},he=({image:l,onClickNext:i,onClickPrevious:t,menu:a,shouldDisplayActionLink:o,actionLink:d,disableImgRightClick:c,t:g})=>{const m="pb-img-browser";let h=!0;if(l&&l.sizes){const e=n(l.sizes);h=e.width>e.height}const p={[m]:!0,[`${m}--image-landscape`]:h,[`${m}--image-portrait`]:!h};return e.jsx("div",{className:r(p),children:e.jsxs("div",{className:`${m}__image-wrapper`,children:[e.jsx(ge,{image:l,fit:"height",disableRightClick:c,shouldDisplayActionLink:o,actionLink:d,t:g}),t||i?[e.jsx(s,{parentClassName:`${m}__link ${m}__link--previous`,onClick:t,disabled:!t,theme:"dark",children:e.jsx(u,{name:"chevron-left"})},"1"),e.jsx(s,{parentClassName:`${m}__link ${m}__link--next`,onClick:i,disabled:!i,theme:"dark",children:e.jsx(u,{name:"chevron-right"})},"2")]:null,e.jsx(me,{baseClassName:m,menu:a,t:g})]})})};he.propTypes={image:d.shape(V.propTypes).isRequired,onClickNext:d.func,onClickPrevious:d.func,menu:(e,i,t)=>{const s=e[i];if(!l.Children.toArray(s).reduce((e,l)=>e&&l.type===W,!0))throw new Error("Prop 'menu' should be of instance of Menu.")},shouldDisplayActionLink:d.bool,actionLink:d.node,disableImgRightClick:d.bool,t:d.func};const pe=({downloadLinks:l,isLoggedIn:i,isFetchingIllustrationDownloadLimit:a,openAuthModal:n,userEmail:o,userId:r,userType:d,slug:f,isRtl:x,onOpenModal:j,downloadLimitReached:v,onIllustrationDownload:y,baseClassName:b,align:w})=>{const k=t();let I=null;if(i){const i=(l||[]).map((l,i)=>e.jsx(s,{fullWidth:!0,onClick:()=>{window.dataLayer&&window.dataLayer.push({event:m.fileDownload,category:g.imageDetails,label:f.split("-")[0],item_type:null,item_id:null,item_value:null,user_id:r,user_profile:d}),y(l.href)},children:l.type}
1,`download-link.${i}`));I=e.jsx(p,{nowrap:!0,alignRight:x,children:i})}else I=e.jsx(H,{LoginText:k("illustrationDownloadsDropdown.please-log-in"),onClickLogin:n});const _=e.jsxs(s,{children:[a?e.jsx(h,{size:"m",parentClassName:`${b}__loader-icon`}):e.jsx(u,{name:"download",title:k("SvgTitle.download"),size:"m",pushRight:!0,isRtl:x}),k("global.download",1)]});return e.jsx(c,{toggleEl:_,isContentRtl:x,align:w,children:I})},fe=({isVisible:l,onCloseClicked:s,viewport:a,isRtl:n,isContentManager:o,onFlagClicked:r})=>{const d=t(),[u,c]=i.useState([]),[g,m]=i.useState(""),h=({checked:e,value:l})=>{c(e?e=>[...e,l]:e=>e.filter(e=>e!==l))};if(!l)return null;const p=e.jsx("h2",{children:d("Illustration.flag",2)}),b=0===u.length||u.includes("other")&&""===g,w=e.jsxs(f,{mergeTop:!0,mergeBottom:!a.large,mergeSides:!0,children:[e.jsx(x,{disabled:b,variant:"primary",fullWidth:!0,label:d("Illustration.flag",1),onClick:()=>{const e={reasons:u};(u.includes("other")||u.includes("copyrighted"))&&(e.otherReason=g),r(e),s("flag")}}),e.jsx(x,{fullWidth:!0,label:d("global.close"),onClick:s})]}),k={"copyright-false-attribution":d("Illustration.flag-reason-copyright-attributed"),"copyright-belongs-to-me":d("Illustration.flag-reason-copyright-belongs-to-me"),inappropriate:d("Illustration.flag-reason-inappropriate"),pixelated:d("Illustration.flag-reason-pixelated"),...o&&{advertisement:d("Illustration.flag-reason-advertisement")},other:d("Illustration.flag-reason-other")},I=Object.entries(k).map(([l,i])=>e.jsx(j,{label:i,name:`flag-checkbox-${l}`,value:l,onChange:h,checked:u.includes(l),isRtl:n},l));return e.jsxs(v,{header:p,onClose:s,footer:w,isRtl:n,children:[I,(u.includes("other")||u.includes("copyrighted"))&&e.jsx(y,{type:"multiline",label:d("Illustration.other-reason"),value:g,onChange:e=>{m(e.target.value)},isRtl:n,autoFocus:!0})]})},xe=({illustration:l})=>{if(!l)return null;const i=l.title||"",t=l.description||"",s=l.image||{},a=s.sizes?n(s.sizes).url:"",o=s.sizes?b(s.sizes).url:"";return e.jsxs(w,{children:[e.jsx("title",{children:`${i} - Storyweaver`}),e.jsx("meta",{property:"og:title",content:i}),e.jsx("meta",{property:"og:description",content:t}),e.jsx("meta",{property:"og:image",content:a}),e.jsx("meta",{property:"og:url",content:window.location.href}),e.jsx("meta",{name:"twitter:card",content:o})]})},je=({baseClassName:l,t:i,collection:t,currentIndex:n,isRtl:o,viewport:r})=>t&&t.length>0?e.jsx(le,{noHorizontalPadding:!0,noVerticalPadding:!0,children:e.jsx(U,{viewport:r,cardsInFrame:{small:4,medium:8,large:12},highlightCurrent:!0,currentIndex:n,isRtl:o,children:t.map((l,i)=>e.jsx(s,{isInternal:!0,href:a.image(l.slug),children:e.jsx(ge,{image:l.image,alt:l.title})},i))})}):null,ve=({onClickFlag:l,isFlagged:i,isLoggedIn:a,openAuthModal:n,isPulledDown:o,isRtl:r,userId:d,userType:c,slug:h})=>{const p=t();let f=p(o?"global.pulled-down":"global.flagged"),x=null;const j=e.jsxs("div",{children:[e.jsx(u,{name:"flag-filled",title:p(o?"SvgTitle.pulled-down":"SvgTitle.flagged"),size:"m",variant:"accent",isRtl:r,pushRight:!0}),f]}),v=e.jsxs(s,{onClick:()=>{l(),window.dataLayer&&window.dataLayer.push({event:m.clickedReport,category:g.imageDetails,label:h.split("-")[0],item_type:null,item_id:null,item_value:null,user_id:d,user_profile:c})},children:[e.jsx(u,{name:"flag",title:p("SvgTitle.flag"),size:"m",pushRight:!0,isRtl:r}),p("global.flag")]}),y=e.jsxs(s,{children:[e.jsx(u,{name:"flag",title:p("SvgTitle.flag"),size:"m",pushRight:!0,isRtl:r}),p("global.flag")]});return x=i||o?j:a?v:e.jsx(Y,{openAuthModal:n,toggleEl:y,isRtl:r,loginText:p("global.please-log-in",{action:p("global.flag",1),content_type:p("global.illustration",1)})}),x},ye=({baseClassName:l,similarImages:i,viewport:s,isRtl:a,userId:n,userType:o})=>{const r=t();return i&&i.length?e.jsx(oe,{title:r("Illustration.similar"),background:"transparent",isRtl:a,children:e.jsx(Z,{cellWidth:"image-card",isRtl:a,viewport:s,children:i.map((i,t)=>e.jsx(se,{title:i.title,slug:i.slug,image:i.imageUrls,artists:i.illustrators,createdByChildren:i.created_by_children,category:C.imageDetails,label:C.similarSection,userId:n,userType:o},`${l}-${t}`))})}):null},be=({viewport:l,isLoggedIn:o,slug:d,title:u,description:c,usedIn:h,author:f,tags:j,categories:v,styles:y,roles:L,organizationRoles:R,onClickCreateStory:N,image:T,collection:D,index:$,onClickNext:S,onClickPrevious:M,onClickFlag:E,online:P,isPulledDown:A,similarImages:F,readsCount:z,likesCount:B,downloadLimitReached:q,downloadLinks:O,liked:G,onLikeClicked:W,isFlagged:V,publisher:H,openAuthModal:U,userEmail:Y,userId:Z,userType:ee,name:ie,isFetchingIllustrationDownloadLimit:se,illustration:oe,isRtl:ge,isEmailConfirmed:me,fetchMeWorkflow:be,addGatingForm:we,addSlimNotification:ke,flashNoticeSuccesMobile:Ie,createLoading:_e})=>{var Ce,Le,Re;const Ne=t(),Te="pb-illustration",[De,$e]=i.useState({flag:!1}),Se=e=>{$e(l=>({...l,[e]:!0}))},Me=e=>{const l=window.open(e);if(l){const e=setInterval(()=>{l.closed&&(Ie&&Ie(),clearInterval(e))},1e3)}},Ee=e=>{const{event:l,label:i,category:t,itemType:s,itemId:a,itemValue:n}=e;window.dataLayer&&window.dataLayer.push({...l&&{event:l},...t&&{category:t},...i&&{label:i},item_type:s||null,item_id:a||null,item_value:n||null,user_id:Z||"00000",user_profile:ee})},Pe=[{title:Ne("global.home"),href:a.home(),isInternal:!0},{title:Ne("global.image",2),href:a.allIllustrations(),isInternal:!0}],Ae={[Te]:!0};let Fe=[];if(null==oe?void 0:oe.adapted_illustration){const l=oe.originalIllustration,i=null==(Ce=oe.originalIllustration)?void 0:Ce.originalStory;Fe.push(Ne("Illustration.adapted-attr-txt-1").trim()),Fe.push(" "),Fe.push(e.jsx(s,{isInternal:!1,href:a.illustration(l.slug),children:l.title},l.slug)),Fe.push(" "),Fe.push(Ne("Illustration.adapted-attr-txt-2").trim()),Fe.push(" "),null==(Le=l.illustrators)||Le.forEach((i,t)=>{Fe.push(e.jsx(s,{isInternal:!1,href:a.userProfile(i.slug),children:i.name},i.slug)),t!==l.illustrators.length-1&&(t===l.illustrators.length-2?(Fe.push(" "),Fe.push(Ne("Illustration.adapted-attr-txt-4").trim()),Fe.push(" ")):Fe.push(", "))}),i||Fe.push(". "),i&&(Fe.push(" "),Fe.push(Ne("Illustration.adapted-attr-txt-3").trim()),Fe.push(" "),Fe.push(e.jsx(s,{isInternal:!1,href:a.bookDetails(i.slug),children:i.title},i.slug)),Fe.push(" "),Fe.push(Ne("Illustration.adapted-attr-txt-2").trim()),Fe.push(" "),Fe.push(e.jsx(s,{isInternal:!1,href:`/publishers/${i.publisher_slug}`,children:i.publisher},i.publisher_slug)),Fe.push("."))}else c&&(Fe=c.length>0&&"."===c.slice(-1)?[c," "]:[c,". "]);if((null==oe?void 0:oe.adapted_illustration)&&(Fe.push(" "),Fe.push(Ne("Illustration.adapted-1").trim())),(null==h?void 0:h.totalStories)>0){Fe.push(" "),Fe.push(Ne("Illustration.used-in").trim()),Fe.push(" ");for(const[l,t]of(h.stories||[]).entries()){if(l>4){Fe.push(e.jsx(s,{isInternal:!1,href:a.searchByIllustration(d),children:Ne("Illustration.used-in-more-stories")},"more-stories")),Fe.push(".");break}Fe.push(e.jsxs(i.Fragment,{children:[t.language&&e.jsx(te,{languages:[t.language]}),e.jsxs(s,{isInternal:!1,href:a.bookDetails(t.slug),children:[t.title,t.numDerivations?`(${t.numDerivations})`:null]})]},l)),Fe.push(l!==h.totalStories-1?", ":".")}}let ze=null;void 0===B&&null===B||!P||(ze=e.jsx(de,{isliked:G,likesCount:B,onLike:()=>W(d),isLoggedIn:o,align:!l.medium&&ge&&"left",openAuthModal:U,isRtl:ge,logInMsg:Ne("global.please-log-in",{action:Ne("global.like",1),content_type:Ne("global.illustration",1)})}));const Be=L&&L.includes(k.CONTENT_MANAGER),qe=R&&R.includes(k.PUBLISHER),Oe=L&&L.includes(k.ILLUSTRATION_REVIEWER),Ge=(null==H?void 0:H.name)===I.storyweaver_community,We=!Ge&&(Be||qe)||Ge,Ve=!(null==oe?void 0:oe.illustrationRating)&&(null==H?void 0:H.name)===I.storyweaver_community&&(Be||Oe&&!(null==(Re=null==oe?void 0:oe.illustrators)?void 0:Re.some(e=>
1e.name===ie))&&(null==oe?void 0:oe.uploaderId)!==Z),He=Ve?e.jsx("div",{className:`${Te}__rating`,children:e.jsx(s,{parentClassName:`${Te}__rating_link`,href:a.illustrationRating(null==oe?void 0:oe.id),shouldOpenNewPage:!0,children:Ne("global.rate-illustration-link")})}):null;return e.jsxs("div",{className:r(Ae),children:[e.jsxs(w,{children:[e.jsx("title",{children:`${u} - ${Ne("global.site-title")}`}),e.jsx("meta",{property:"og:title",content:u}),e.jsx("meta",{property:"og:description",content:c}),(null==T?void 0:T.sizes)&&e.jsx("meta",{property:"og:image",content:n(T.sizes).url}),e.jsx("meta",{property:"og:url",content:window.location.href}),(null==T?void 0:T.sizes)&&e.jsx("meta",{name:"twitter:card",content:b(T.sizes).url})]}),e.jsx(xe,{illustration:oe}),e.jsx(le,{children:e.jsx(Q,{paths:Pe,isRtl:ge})}),e.jsx(le,{noHorizontalPadding:!0,noVerticalPadding:!0,children:e.jsx(he,{image:T,onClickNext:S,onClickPrevious:M,disableImgRightClick:!0,shouldDisplayActionLink:Ve,actionLink:He})}),e.jsx(le,{children:e.jsx(ne,{align:"center",children:(null==oe?void 0:oe.illustrationRating)&&(Be||Oe&&(null==oe?void 0:oe.illustrationRaterId)===Z)?e.jsx(ae,{rating:oe.illustrationRating-1,disabled:!0}):null})}),e.jsx(je,{baseClassName:Te,collection:D,currentIndex:$,viewport:l,isRtl:ge}),e.jsx(le,{children:e.jsxs(ne,{align:"center",separator:!0,borderTop:!0,isRtl:ge,children:[e.jsxs(p,{inline:!0,parentClassName:o||l.medium?null:`${Te}__align`,children:[oe.canDownload&&e.jsx(pe,{userEmail:Y,slug:d,userId:Z,userType:ee,isRtl:ge,downloadLinks:O,downloadLimitReached:q,isLoggedIn:o,openAuthModal:U,onOpenModal:Se,baseClassName:Te,onIllustrationDownload:i=>{be().then(t=>{var s,a;if(!oe.canDownload){if(null==(s=t.data)?void 0:s.showImageGatingForm)return void we({showImageGatingForm:!0,imageId:oe.id});const l=`<a href="mailto:[email protected]">${_.helpMailId}</a>`,i=Ne("Book.request-is-under-process",{email:_.helpMailId}).trim(),[n,o]=i.split(_.helpMailId),r=`<p>${n.trimEnd()} ${l} ${(o||"").trimStart()}</p>`;if(null==(a=t.data)?void 0:a.showImageGatingPopup)return void ke({id:"Book.request-is-under-process",content:e.jsx("div",{dangerouslySetInnerHTML:{__html:r}})})}l.medium?Me(i):Array.isArray(i)?(Me(i[0]),Me(i[1])):Me(i)})},isFetchingIllustrationDownloadLimit:se,align:!l.medium&&!ge&&"left"}),e.jsx(J,{title:u,isRtl:ge,href:window.location.href,viewport:l,onClick:e=>{var l;window.dataLayer&&window.dataLayer.push({event:`clicked_${e.slice(5).toLowerCase()}`,category:g.imageDetails,label:`share_${null==(l=null==oe?void 0:oe.slug)?void 0:l.split("-")[0]}`,item_type:null,item_id:null,item_value:null,user_id:Z||"00000",user_profile:ee})}}),e.jsx("div",{className:`${Te}__stats`,children:ze}),me&&We?e.jsx(ve,{onClickFlag:()=>{Se("flag")},isFlagged:V,isLoggedIn:o,isPulledDown:A,openAuthModal:U,isRtl:ge,userId:Z,userType:ee,slug:d}):null,e.jsx(X,{icon:"eye",label:Ne("global.views"),value:z,isRtl:ge,section:"illustration"}),Be&&(null==oe?void 0:oe.markedAsAI)&&e.jsx(X,{icon:"check",label:"Gen AI",isRtl:ge,section:"illustration"})]}),e.jsx("div",{className:`${Te}__cta`,children:e.jsx(x,{fullWidth:!0,label:Ne("Illustration.create-story"),variant:"primary",onClick:N,isRtl:ge,loading:_e})})]})}),e.jsx(le,{background:"transparent",children:e.jsx(re,{horizontalSpacing:l.large?"xl":null,children:e.jsxs("div",{className:`${Te}__content`,children:[e.jsxs("div",{className:`${Te}__header`,children:[e.jsx("h1",{className:`${Te}__title`,children:u}),e.jsx(ce,{animators:null==f?void 0:f.animators,calligraphers:null==f?void 0:f.calligraphers,illustrators:null==f?void 0:f.illustrators,photographers:null==f?void 0:f.photographers,painters:null==f?void 0:f.painters,offline:!P}),e.jsx(ue,{publisher:H,offline:!P,isRtl:ge}),e.jsx("p",{className:`${Te}__description`,children:Fe})]}),e.jsxs(ne,{align:"center",borderTop:!0,borderBottom:!0,children:[j&&j.length?e.jsx(p,{inline:!0,children:j.map(l=>e.jsx(K,{label:l.name,href:a.searchIllustrationsByTag(l.query),icon:"circle",onTriggerEvents:e=>{Ee({event:m.clickedTheme,category:C.imageDetails,label:e})}},l.query||l.name))}):null,v&&v.length?e.jsx(p,{inline:!0,children:v.map(l=>e.jsx(K,{label:l.name,href:a.searchIllustrationsByCategory(l.query),icon:"circle",isCategoryPill:Be,onTriggerEvents:e=>{Ee({event:m.clickedTheme,category:C.imageDetails,label:e})}},l.query||l.name))}):null,y&&y.length?e.jsx(p,{inline:!0,children:y.map(l=>e.jsx(K,{label:l.name,href:a.searchIllustrationsByStyle(l.query),icon:"circle",isCategoryPill:Be,onTriggerEvents:e=>{Ee({event:m.clickedTheme,category:C.imageDetails,label:e})}},l.query||l.name))}):null]})]})})}),e.jsx(ye,{baseClassName:Te,similarImages:F,viewport:l,isRtl:ge,userId:Z,userType:ee}),e.jsx(fe,{isVisible:De.flag,onCloseClicked:()=>{return e="flag",void $e(l=>({...l,[e]:!1}));var e},onFlagClicked:e=>E(d,e),viewport:l,isRtl:ge,isContentManager:Be})]})},we=()=>{var l,s,n,o,r,d,u,c,h,p;const f=t(),x=L(),{slug:j}=R(),v=G(),[y,b]=i.useState(!1),w=N(e=>e.illustration),k=N(e=>e.viewport),I=N(e=>e.user),_=N(e=>e.network),{isFetchingIllustration:C,illustration:W,illustrationErrorCode:V}=w;
1if(i.useEffect(()=>{j&&x(T({slug:j,read:!0}))},[x]),i.useEffect(()=>{!I.isLoggedIn||!W||W.downloadLinks&&0!==W.downloadLinks.length||x(T({slug:j,read:!1}))},[I.isLoggedIn,W,j,x]),D(),i.useEffect(()=>{I.isLoggedIn&&j&&x($({slug:j}))},[I.isLoggedIn,j,x]),C||!W&&!V)return e.jsx(S,{});if(!W||!W.id)return e.jsx(ee,{errorCode:V||404});const H={online:_.online,isPulledDown:W.isPulledDown,slug:W.slug,title:W.title,roles:(null==(l=I.profile)?void 0:l.roles)||[],organizationRoles:(null==(s=I.profile)?void 0:s.organizationRoles)||[],author:W.artists||W.author,image:(null==(n=W.imageUrls)?void 0:n[0])||W.image,tags:W.tags||[],categories:W.categories||[],styles:W.styles||[],description:W.attribution_text||W.description,usedIn:W.usedIn,viewport:k,onClickCreateStory:()=>{var e,l,i;if(I.isLoggedIn)if(null==(e=I.profile)?void 0:e.emailConfirmed)if(k.medium){window.dataLayer&&window.dataLayer.push({event:m.clickedCreate,category:g.imageDetails,label:"story",item_type:null,item_id:null,item_value:null,user_id:null==(l=I.profile)?void 0:l.id,user_profile:null==(i=I.profile)?void 0:i.profile_type});const e=document.getElementsByTagName("body")[0];e&&(e.style.opacity=.5,e.style.pointerEvents="none"),b(!0),window.location.href=a.createStoryFromIllustration(j)}else x(E({type:"info",content:f("Book.mobile-editor-notification-text")}));else x(E({id:"OTP.confirm-email-action",content:f("OTP.confirm-email-action",{action:f("global.create-story")})}));else x(A({title:f("global.log-in"),content:f("Illustration.please-log-in-to-create-story"),additionalActions:[{label:f("global.log-in"),primary:!0,onClick:()=>{x(O()),x(z())}},{label:f("global.sign-up"),onClick:()=>{x(O()),x(z())}}]}))},readsCount:W.readsCount,likesCount:W.likesCount,liked:W.liked,isLoggedIn:I.isLoggedIn,downloadLinks:k.medium?W.downloadLinks||[]:W.downloadLinksMobile||W.downloadLinks||[],onLikeClicked:e=>{var l,i;x(q({slug:e})),window.dataLayer&&W&&window.dataLayer.push({event:m.clickedLike,category:g.imageDetails,label:(W.slug||"").split("-")[0],item_type:null,item_id:null,item_value:null,user_id:null==(l=I.profile)?void 0:l.id,user_profile:null==(i=I.profile)?void 0:i.profile_type})},onClickFlag:(e,l)=>{x(B({slug:e,reasons:l}))},isFlagged:W.isFlagged,similarImages:W.similarillustrations||W.similarImages,openAuthModal:()=>x(z()),publisher:W.publisher,downloadLimitReached:W.downloadLimitReached,userEmail:null==(o=I.profile)?void 0:o.email,userId:null==(r=I.profile)?void 0:r.id,userType:null==(d=I.profile)?void 0:d.profile_type,name:null==(u=I.profile)?void 0:u.name,addGatingForm:e=>x(F(e)),organisation:null==(c=I.profile)?void 0:c.orgName,country:null==(h=I.profile)?void 0:h.country,addNotificationModal:e=>x(A(e)),addSlimNotification:e=>x(E(e)),isFetchingIllustrationDownloadLimit:w.isFetchingIllustrationDownloadLimit,illustration:W,isRtl:v,isEmailConfirmed:(null==(p=I.profile)?void 0:p.emailConfirmed)||!1,fetchMeWorkflow:()=>x(P()),createLoading:y,flashNoticeSuccesMobile:()=>{x(M()).then(e=>{const l=null==e?void 0:e.flashMessages;l&&(l.success?x(E({type:"success",content:l.success})):l.error?x(E({type:"danger",content:l.error})):l.alert?x(E({type:"danger",content:l.alert})):l.notice&&x(E({content:l.notice})))})}};return e.jsx(be,{...H})};export{we as default};

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.