-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArticleByline-stories.cd7245ab.iframe.bundle.js
1 lines (1 loc) · 69.3 KB
/
ArticleByline-stories.cd7245ab.iframe.bundle.js
1
(self.webpackChunk_haaretz_a_htz_sg=self.webpackChunk_haaretz_a_htz_sg||[]).push([[8408],{"../../ds-organisms/s-article-byline/src/ArticleByline.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MultipleAuthors:()=>MultipleAuthors,Overview:()=>Overview,default:()=>ArticleByline_stories});var defineProperty=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),jsx_runtime=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/jsx-runtime.js"),preview=__webpack_require__("../../config/l-storybook-config/preview.js"),src=__webpack_require__("../../utils/s-storybook-providers/src/index.ts");const s_article_time_src=__webpack_require__("../../ds-molecules/s-article-time/src/ArticleTime.tsx").Z;var s_consts_src=__webpack_require__("../../shared/s-consts/src/index.ts"),s_htz_image_src=__webpack_require__("../../ds-atoms/s-htz-image/src/index.ts"),s_icon_src=__webpack_require__("../../ds-atoms/s-icon/src/index.ts"),platformContext=__webpack_require__("../../utils/s-server-context/src/contexts/platform/platformContext.ts"),s_text_link_src=__webpack_require__("../../ds-atoms/s-text-link/src/index.ts"),react=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js"),style9=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/style9/index.mjs"),s_alerts_subscription_popover_src=__webpack_require__("../../ds-molecules/s-alerts-subscription-popover/src/index.ts"),src_user=__webpack_require__("../../utils/s-atoms/src/user/index.ts");const bpsOrder=["default","s","m","l","xl","xxl"];const src_isInBpRange=function isInBpRange(_ref){let{from,until,currentBp}=_ref;if(!currentBp)return;const currentBpIdx=bpsOrder.indexOf(currentBp);if(currentBpIdx<0)throw new Error(`[isInBpRange] "${currentBp}" isn't a valid breakpoint name`);const fromIdx=null!=from?bpsOrder.indexOf(from):-1,untilIdx=null!=until?bpsOrder.indexOf(until):-1;if(fromIdx<0&&untilIdx<0)throw new Error('[isInBpRange] Either "from" or "until" must be a valid breakpoint name');let isInRange;return null!=fromIdx&&fromIdx>=0&&(isInRange=currentBpIdx>=fromIdx),null!=untilIdx&&untilIdx>=0&&!1!==isInRange&&(isInRange=currentBpIdx<untilIdx),isInRange};var s_button_src=__webpack_require__("../../ds-atoms/s-button/src/index.ts"),UserAlertsRegistration=__webpack_require__("../../graphql/s-mutations/src/__generated__/UserAlertsRegistration.ts"),s_use_bi_src=__webpack_require__("../../hooks/s-use-bi/src/index.ts"),s_use_breakpoint_src=__webpack_require__("../../hooks/s-use-breakpoint/src/index.ts"),console=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/console-browserify/index.js");function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){(0,defineProperty.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const c={base:{justifySelf:"cqxUdF",alignSelf:"eAxdLi",gridColumnStart:"gyVaqJ",gridColumnEnd:"dhtgyp",gridRowStart:"daNwOU",gridRowEnd:"hhZtPN","@media all and (min-width:64em)":{justifySelf:"glPLkf",alignSelf:"gzqjzB",gridColumnStart:"ESBbQ",gridColumnEnd:"gxlNYZ",gridRowStart:"dENKcF",gridRowEnd:"gQyEyk",marginInlineStart:"jAGPfS"}},baseWithDateModified:{"@media all and (max-width:63.9375em)":{gridRowStart:"dGCNQT",gridRowEnd:"gxmQbI",justifySelf:"gLyVML",alignSelf:"UzENI",marginBottom:"dBRFVJ"}},fadeOutButton:{opacity:"UXrzu",transitionDuration:"irdCoK",transitionProperty:"bEeIno"},btnContent:{fontSize:"fyHdVr",lineHeight:"iKTruj","@media all and (min-width:80em) and (max-width:101.9375em)":{fontSize:"cEKNZk",lineHeight:"gMAJcp"},"@media all and (min-width:102em)":{fontSize:"hyhpVP",lineHeight:"kRmCJO"}}},btnTextOptions={signup:"עקוב",unsubscribe:"להסרה"},desktopBtnTextOpt={signup:"התראות במייל",unsubscribe:"להסרה"},site="htz";function AlertsRegistrationButton(_ref){let{contentId,authorName,withDateModified,platform}=_ref;const[openPopover,setOpenPopover]=react.useState(!1),[btnText,setBtnText]=react.useState("desktop"!==platform?btnTextOptions.signup:desktopBtnTextOpt.signup),[fadeOutSubscribe,setFadeOutSubscribe]=react.useState(!1),[fadeOutUnsubscribe,setFadeOutUnsubscribe]=react.useState(!1),[btnVariant,setBtnVariant]=react.useState("brand"),biAction=(0,s_use_bi_src.Z)(),breakpoint=(0,s_use_breakpoint_src.Z)(),followBtnRef=react.useRef(null),[user]=(0,src_user.Z)(),popoverPlacement=src_isInBpRange({from:"l",currentBp:breakpoint})?"bottom-start":"bottom-end",action="brand"!==btnVariant||btnText!==btnTextOptions.signup&&btnText!==desktopBtnTextOpt.signup?"danger"===btnVariant&&btnText===btnTextOptions.unsubscribe?"unsubscribe":void 0:"subscribe",userAlertsMutation=(0,UserAlertsRegistration.k)({onSuccess:data=>{"success"!==data.userAlertsRegistration.status&&"pending"!==data.userAlertsRegistration.status||("subscribe"===action?setFadeOutSubscribe(!0):setFadeOutUnsubscribe(!0))},onError:data=>{console.error(data.message)}});return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(s_button_src.ZP,_objectSpread(_objectSpread({size:"small",priority:"tertiary",variant:btnVariant,ref:followBtnRef,startIcon:"bell",styleExtend:[c.base,!!withDateModified&&c.baseWithDateModified,fadeOutSubscribe&&c.fadeOutButton,fadeOutUnsubscribe&&c.fadeOutButton]},null!=user&&user.isLoggedIn?{onClick:async()=>{"subscribe"===action&&(userAlertsMutation.mutate({input:{isUnsubscribe:!1,site,resourceType:"writer",resourceId:contentId}}),biAction({action_id:9,campaign_details:"follow",campaign_name:"follow writer",feature:"Writer Alert - article page",feature_type:"Content",newsletter_segment_id:contentId,newsletter_segment_name:authorName,newsletter_email:user.userMail})),"unsubscribe"===action&&userAlertsMutation.mutate({input:{isUnsubscribe:!0,site,resourceType:"writer",resourceId:contentId}})}}:{onClick:()=>{biAction({action_id:91,campaign_details:"open UI",campaign_name:"follow writer",feature:"Writer Alert - article page",feature_type:"Content",newsletter_segment_id:contentId,newsletter_segment_name:authorName})}}),{},{onTransitionEnd:()=>{fadeOutSubscribe&&(setBtnVariant("danger"),setBtnText(btnTextOptions.unsubscribe),setFadeOutSubscribe(!1)),fadeOutUnsubscribe&&(setBtnVariant("brand"),setBtnText(btnTextOptions.signup),setFadeOutUnsubscribe(!1))},children:(0,jsx_runtime.jsx)("span",{className:(0,style9.Z)(c.btnContent),children:btnText})})),null!=user&&user.isLoggedIn?null:(0,jsx_runtime.jsx)(s_alerts_subscription_popover_src.Z,{isOpenFromParent:openPopover,contentId,alertType:"writer",onToggle:boolean=>{setOpenPopover(boolean)},refersToRef:followBtnRef,popoverPlacement,authorName})]})}try{AlertsRegistrationButton.displayName="AlertsRegistrationButton",AlertsRegistrationButton.__docgenInfo={description:"",displayName:"AlertsRegistrationButton",props:{contentId:{defaultValue:null,description:"contentId for the author",name:"contentId",required:!0,type:{name:"string"}},authorName:{defaultValue:null,description:"author name for the alerts registration",name:"authorName",required:!0,type:{name:"string"}},withDateModified:{defaultValue:null,description:"for UI management",name:"withDateModified",required:!1,type:{name:"boolean | undefined"}},platform:{defaultValue:null,description:"using the platfromType to manage btn content",name:"platform",required:!0,type:{name:"enum",value:[{value:'"mobile"'},{value:'"desktop"'},{value:'"app"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-organisms/s-article-byline/src/AlertsRegistrationButton.tsx#AlertsRegistrationButton"]={docgenInfo:AlertsRegistrationButton.__docgenInfo,name:"AlertsRegistrationButton",path:"../../ds-organisms/s-article-byline/src/AlertsRegistrationButton.tsx#AlertsRegistrationButton"})}catch(__react_docgen_typescript_loader_error){}function ArticleByline_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function ArticleByline_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ArticleByline_ownKeys(Object(t),!0).forEach((function(r){(0,defineProperty.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ArticleByline_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const ArticleByline_c={base:{gridColumnStart:"cgtMrY",gridColumnEnd:"TSpXR",display:"kbCXHY",gridTemplateColumns:"bKhaPp",height:"dvPYPU",maxHeight:"gKWgMp",columnGap:"haEjPJ","@media all and (min-width:37.5em) and (max-width:63.9375em)":{gridTemplateColumns:"eOSyOJ",columnGap:"fiKPsa"},"@media all and (min-width:64em)":{height:"fIdPHI",maxHeight:"kpXyGa",gridTemplateColumns:"bMUPuj",gridTemplateRows:"fFnvvU",columnGap:"bqtIGk"}},baseForManyAuthors:{gridColumnStart:"cgtMrY",gridColumnEnd:"TSpXR",display:"kbCXHY",columnGap:"kEFtPS",gridTemplateColumns:"cjdOdQ",gridTemplateRows:"jPvRNA",height:"cWFuRD",maxHeight:"hgTzTY","@media all and (min-width:37.5em) and (max-width:63.9375em)":{columnGap:"fiKPsa",height:"itDpqO",gridTemplateColumns:"eOSyOJ",gridTemplateRows:"gzrloA"},"@media all and (min-width:64em)":{columnGap:"diSwRZ",rowGap:"cNbKSg",gridTemplateColumns:"ikrFeF",gridTemplateRows:"CvmEi",height:"ilUudi",maxHeight:"fDwaVp"}},baseWithDateModified:{"@media all and (max-width:37.4375em)":{gridTemplateRows:"gbZELH"},"@media all and (min-width:37.5em) and (max-width:63.9375em)":{gridTemplateRows:"fzcesJ"}},img:{aspectRatio:"eUirwo",borderTopLeftRadius:"eCJvpO",borderTopRightRadius:"KuLii",borderBottomRightRadius:"cPOOyy",borderBottomLeftRadius:"dJEuaT",gridRowStart:"daNwOU",gridRowEnd:"eUwbca",width:"BapLq","@media all and (min-width:37.5em) and (max-width:63.9375em)":{gridRowEnd:"fRcemu",width:"bXKKrQ"},"@media all and (min-width:64em)":{gridRowEnd:"czUKJu",width:"bojvTU"}},authorName:{fontWeight:"iLdtFu",alignSelf:"dQfgrd",marginInlineEnd:"gcuEOr",fontSize:"fyHdVr",lineHeight:"iKTruj","@media all and (min-width:37.5em) and (max-width:63.9375em)":{fontSize:"eTnsMN",lineHeight:"dKdpCN"},"@media all and (min-width:64em) and (max-width:79.9375em)":{fontSize:"cJtokI",lineHeight:"jzXrUE"},"@media all and (min-width:102em)":{fontSize:"jbDMjY",lineHeight:"kzePcG"}},icon:{fontSize:"dwMhOU",marginTop:"eTPEjn",marginRight:"dXJSWw",marginBottom:"kPcLKD",marginLeft:"ldQWGY",aspectRatio:"chrYxO",color:"URsRO",gridRowStart:"daNwOU",gridRowEnd:"cxfvtn","@media all and (min-width:37.5em) and (max-width:63.9375em)":{fontSize:"bCwajf"},"@media all and (min-width:64em)":{marginTop:"uHFRt",marginRight:"hqJGeH",marginBottom:"hkHtjf",marginLeft:"iaGIHR",fontSize:"cRglYJ"}},reportingFrom:{marginTop:"gWnTmV","::before":{content:"kAbnMm",marginInlineEnd:"ijJyFx"},fontSize:"fyHdVr",lineHeight:"iKTruj","@media all and (min-width:37.5em) and (max-width:63.9375em)":{marginTop:"icTIxD",fontSize:"eTnsMN",lineHeight:"dKdpCN"},"@media all and (min-width:64em) and (max-width:79.9375em)":{marginTop:"gbxqlt",fontSize:"cJtokI",lineHeight:"jzXrUE"},"@media all and (min-width:102em)":{marginTop:"dUOSQu",fontSize:"jbDMjY",lineHeight:"kzePcG"}},addressForManyAuthors:{display:"gSBWlu",alignSelf:"dQfgrd",flexWrap:"kiDYix"},address:{display:"gSBWlu",alignSelf:"dQfgrd",gridColumnStart:"gyVaqJ",gridColumnEnd:"dhtgyp",gridRowStart:"daNwOU",gridRowEnd:"hhZtPN","@media all and (min-width:37.5em) and (max-width:63.9375em)":{marginTop:"fXrRnB",marginBottom:"cWrrxn"},"@media all and (min-width:64em)":{marginTop:"jBsSNY",alignSelf:"kmcwzq"}},dateModifiedForManyAuthors:{display:"cpOcAb","::before":{content:"kAbnMm",marginInlineStart:"iYLQij",marginInlineEnd:"ijJyFx"}},timeDivForManyAuthors:{alignSelf:"dQfgrd",gridColumnStart:"gyVaqJ",gridColumnEnd:"dhtgyp",gridRowStart:"hMRvHk",gridRowEnd:"cxfvtn","@media all and (max-width:63.9375em)":{gridRowStart:"dGCNQT",gridRowEnd:"gxmQbI",alignSelf:"bHLWjf"},"@media all and (min-width:80em)":{marginTop:"eYDMja"}},timeDiv:{alignSelf:"dQfgrd",marginTop:"jdwAUw",gridColumnStart:"gyVaqJ",gridColumnEnd:"dhtgyp",gridRowStart:"hMRvHk",gridRowEnd:"cxfvtn","@media all and (min-width:37.5em) and (max-width:63.9375em)":{gridRowStart:"flWCKM",gridRowEnd:"fazNwm"},"@media all and (min-width:64em)":{marginTop:"bHlGlU",gridRowStart:"efQUSR",gridRowEnd:"ecfyfi"}},timeDivWithModified:{marginTop:"iqhvfj",gridColumnStart:"gyVaqJ",gridColumnEnd:"dhtgyp",gridRowStart:"hMRvHk",gridRowEnd:"eUwbca","@media all and (max-width:63.9375em)":{display:"loIysk",flexDirection:"bnejy"},"@media all and (min-width:37.5em) and (max-width:63.9375em)":{gridRowStart:"flWCKM",gridRowEnd:"fazNwm",marginTop:"dvCggG"},"@media all and (min-width:64em)":{gridRowStart:"efQUSR",gridRowEnd:"ecfyfi",marginTop:"knVBeE"},"@media all and (min-width:80em)":{marginTop:"eYDMja"}},date:{color:"dvkVMF",justifySelf:"kRjLwT",fontSize:"gVscJz",lineHeight:"kvNqZl","@media all and (min-width:37.5em) and (max-width:79.9375em)":{fontSize:"cWAeKA",lineHeight:"bSApwy"},"@media all and (min-width:102em)":{fontSize:"hyhpVP",lineHeight:"kRmCJO"}},dateModified:{"@media all and (max-width:63.9375em)":{gridRowStart:"gvozzZ",gridRowEnd:"couwcm"},"@media all and (min-width:64em)":{"::before":{content:"bznmeC",marginLeft:"bgbwgS",marginRight:"cUBKFA"}}}};function isWriter(candidate){return"AuthorPage"===candidate.__typename}function isCredit(candidate){return"Credit"===candidate.__typename}function ArticleByline_ArticleByline(props){var _authors$0$image$file,_authors$0$image;const datePublishedISO=props.datePublishedISO,dateModifiedISO=props.dateModifiedISO,reportingFrom=props.reportingFrom,authors=[];let credit=null;for(const item of props.authors)isWriter(item)?authors.push(item):isCredit(item)&&(credit=item);const platform=(0,platformContext.X)(),isDateModified=!!dateModifiedISO&&dateModifiedISO!==datePublishedISO,isManyAuthors=authors.length>1&&!credit,isImage=1===authors.length&&!credit,formatAuthorNames=react.useCallback(((currentIndex,authorName,arr)=>arr.length>1?currentIndex===arr.length-1?` ו${authorName} `:currentIndex===arr.length-2?authorName:` ${authorName}, `:authorName),[]);return(0,jsx_runtime.jsxs)("div",{className:(0,style9.Z)(isManyAuthors?ArticleByline_c.baseForManyAuthors:ArticleByline_c.base,isDateModified&&!isManyAuthors?ArticleByline_c.baseWithDateModified:null),children:[isManyAuthors||credit?(0,jsx_runtime.jsx)(s_icon_src.Z,{icon:"alef",styleExtend:[ArticleByline_c.icon]}):isImage&&authors[0].image?(0,jsx_runtime.jsx)(s_htz_image_src.Z,ArticleByline_objectSpread(ArticleByline_objectSpread({},authors[0].image),{},{imgData:null===(_authors$0$image$file=authors[0].image.files)||void 0===_authors$0$image$file?void 0:_authors$0$image$file[0],alt:null===(_authors$0$image=authors[0].image)||void 0===_authors$0$image?void 0:_authors$0$image.alt,credit:authors[0].image.credit,contentId:authors[0].image.contentId,type:authors[0].image.type,widths:[84],aspect:"square",styleExtend:[ArticleByline_c.img],sizes:[{from:"l",size:"84px"},{from:"m",size:"56px"},{size:"40px"}]})):null,(0,jsx_runtime.jsxs)("div",{className:(0,style9.Z)(ArticleByline_c.address,isManyAuthors&&ArticleByline_c.addressForManyAuthors),children:[authors?authors.map(((author,key,arr)=>author.name&&(0,jsx_runtime.jsx)("address",{children:(0,jsx_runtime.jsx)(s_text_link_src.Z,{href:"app"===platform?`/ty-writer/${[author.contentId]}?author&_app=true`:`https://www.${s_consts_src.Kn}/${author.url}`,rel:"author",styleExtend:[ArticleByline_c.authorName],children:formatAuthorNames(key,null==author?void 0:author.name,arr)})},key))):credit?(0,jsx_runtime.jsx)("address",{className:(0,style9.Z)(ArticleByline_c.authorName),children:credit.name}):null,reportingFrom?(0,jsx_runtime.jsx)("span",{className:(0,style9.Z)(ArticleByline_c.reportingFrom),children:reportingFrom}):null]}),!isManyAuthors&&authors[0].name?(0,jsx_runtime.jsx)(AlertsRegistrationButton,{platform,authorName:authors[0].name,contentId:authors[0].contentId,withDateModified:!!dateModifiedISO}):null,(0,jsx_runtime.jsx)("div",{className:(0,style9.Z)(isManyAuthors?ArticleByline_c.timeDivForManyAuthors:isDateModified?ArticleByline_c.timeDivWithModified:ArticleByline_c.timeDiv),children:isDateModified&&dateModifiedISO?(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(s_article_time_src,{format:"date",time:datePublishedISO,styleExtend:[ArticleByline_c.date]}),(0,jsx_runtime.jsx)(s_article_time_src,{format:"full",label:"עודכן ב-",time:dateModifiedISO,styleExtend:[ArticleByline_c.date,ArticleByline_c.dateModified,isManyAuthors?ArticleByline_c.dateModifiedForManyAuthors:null]})]}):(0,jsx_runtime.jsx)(s_article_time_src,{format:"date-or-full-by-date",time:datePublishedISO,withSeparator:!0,separator:"dot",styleExtend:[ArticleByline_c.date]})})]})}try{isWriter.displayName="isWriter",isWriter.__docgenInfo={description:"",displayName:"isWriter",props:{arabicName:{defaultValue:null,description:"",name:"arabicName",required:!1,type:{name:"string | null | undefined"}},contentId:{defaultValue:null,description:"",name:"contentId",required:!0,type:{name:"string"}},email:{defaultValue:null,description:"",name:"email",required:!1,type:{name:"string | null | undefined"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string | null | undefined"}},redirectUrl:{defaultValue:null,description:"",name:"redirectUrl",required:!1,type:{name:"string | null | undefined"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"string | null | undefined"}},url:{defaultValue:null,description:"",name:"url",required:!1,type:{name:"string | null | undefined"}},disableAlerts:{defaultValue:null,description:"",name:"disableAlerts",required:!0,type:{name:"boolean"}},biography:{defaultValue:null,description:"",name:"biography",required:!1,type:{name:'({ __typename: "Enhancement"; } | ({ content: string; id?: string | null | undefined; as: HtmlNodeTags; } & { __typename: "HtmlNode"; } & { __typename: "HtmlNode"; }))[] | null | undefined'}},image:{defaultValue:null,description:"",name:"image",required:!1,type:{name:"({ alt: string; caption?: string | null | undefined; contentId: string; credit?: string | null | undefined; link?: string | null | undefined; photographer?: string | null | undefined; type: ImageType; files: ({ ...; } & { ...; })[]; } & { ...; } & { ...; }) | null | undefined"}},__typename:{defaultValue:null,description:"",name:"__typename",required:!0,type:{name:"enum",value:[{value:'"AuthorPage"'},{value:'"Credit"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-organisms/s-article-byline/src/ArticleByline.tsx#isWriter"]={docgenInfo:isWriter.__docgenInfo,name:"isWriter",path:"../../ds-organisms/s-article-byline/src/ArticleByline.tsx#isWriter"})}catch(__react_docgen_typescript_loader_error){}try{isCredit.displayName="isCredit",isCredit.__docgenInfo={description:"",displayName:"isCredit",props:{arabicName:{defaultValue:null,description:"",name:"arabicName",required:!1,type:{name:"string | null | undefined"}},contentId:{defaultValue:null,description:"",name:"contentId",required:!0,type:{name:"string"}},email:{defaultValue:null,description:"",name:"email",required:!1,type:{name:"string | null | undefined"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string | null | undefined"}},redirectUrl:{defaultValue:null,description:"",name:"redirectUrl",required:!1,type:{name:"string | null | undefined"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"string | null | undefined"}},url:{defaultValue:null,description:"",name:"url",required:!1,type:{name:"string | null | undefined"}},disableAlerts:{defaultValue:null,description:"",name:"disableAlerts",required:!0,type:{name:"boolean"}},biography:{defaultValue:null,description:"",name:"biography",required:!1,type:{name:'({ __typename: "Enhancement"; } | ({ content: string; id?: string | null | undefined; as: HtmlNodeTags; } & { __typename: "HtmlNode"; } & { __typename: "HtmlNode"; }))[] | null | undefined'}},image:{defaultValue:null,description:"",name:"image",required:!1,type:{name:"({ alt: string; caption?: string | null | undefined; contentId: string; credit?: string | null | undefined; link?: string | null | undefined; photographer?: string | null | undefined; type: ImageType; files: ({ ...; } & { ...; })[]; } & { ...; } & { ...; }) | null | undefined"}},__typename:{defaultValue:null,description:"",name:"__typename",required:!0,type:{name:"enum",value:[{value:'"AuthorPage"'},{value:'"Credit"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-organisms/s-article-byline/src/ArticleByline.tsx#isCredit"]={docgenInfo:isCredit.__docgenInfo,name:"isCredit",path:"../../ds-organisms/s-article-byline/src/ArticleByline.tsx#isCredit"})}catch(__react_docgen_typescript_loader_error){}try{ArticleByline_ArticleByline.displayName="ArticleByline",ArticleByline_ArticleByline.__docgenInfo={description:"",displayName:"ArticleByline",props:{authors:{defaultValue:null,description:"",name:"authors",required:!0,type:{name:"(({ arabicName?: string | null | undefined; contentId: string; email?: string | null | undefined; name?: string | null | undefined; redirectUrl?: string | null | undefined; type?: string | null | undefined; url?: string | ... 1 more ... | undefined; disableAlerts: boolean; biography?: ({ ...; } | ({ ...; } & ... 1 m..."}},dateModifiedISO:{defaultValue:null,description:"",name:"dateModifiedISO",required:!1,type:{name:"string | null | undefined"}},datePublishedISO:{defaultValue:null,description:"",name:"datePublishedISO",required:!0,type:{name:"string"}},reportingFrom:{defaultValue:null,description:"",name:"reportingFrom",required:!1,type:{name:"string | null | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-organisms/s-article-byline/src/ArticleByline.tsx#ArticleByline"]={docgenInfo:ArticleByline_ArticleByline.__docgenInfo,name:"ArticleByline",path:"../../ds-organisms/s-article-byline/src/ArticleByline.tsx#ArticleByline"})}catch(__react_docgen_typescript_loader_error){}var lib=__webpack_require__("../../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@mdx-js/react/lib/index.js"),dist=__webpack_require__("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@storybook/addon-docs/dist/index.mjs");function _createMdxContent(props){const _components=Object.assign({h1:"h1",h2:"h2",p:"p",strong:"strong",code:"code",pre:"pre",h3:"h3"},(0,lib.ah)(),props.components);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(_components.h1,{id:"articlebyline",children:"ArticleByline"}),"\n",(0,jsx_runtime.jsx)("br",{}),"\n","\n","\n","\n",(0,jsx_runtime.jsx)(_components.h2,{id:"installation",children:"Installation"}),"\n",(0,jsx_runtime.jsx)(_components.p,{children:(0,jsx_runtime.jsxs)(_components.strong,{children:["Make sure the package you use ",(0,jsx_runtime.jsx)(_components.code,{children:"ArticleByline"})," in has\n",(0,jsx_runtime.jsx)(_components.code,{children:"@haaretz/s-article-byline"})," listed in its ",(0,jsx_runtime.jsx)(_components.code,{children:"package.json"}),"'s ",(0,jsx_runtime.jsx)(_components.code,{children:"dependencies"}),"\nfield:"]})}),"\n",(0,jsx_runtime.jsx)(_components.pre,{children:(0,jsx_runtime.jsx)(_components.code,{className:"language-js",children:'// package.json\n{\n // ...\n "dependencies": {\n "@haaretz/s-article-byline": "workspace:*"\n // ...\n }\n}\n'})}),"\n",(0,jsx_runtime.jsxs)(_components.p,{children:["Because internal monorepo packages are wired up using TypeScript's path aliases\nfeature in dev mode, importing ",(0,jsx_runtime.jsx)(_components.code,{children:"ArticleByline"})," without listing it as a\ndependency will work in dev mode, but will fail in production. There should be a\n",(0,jsx_runtime.jsx)(_components.code,{children:"import/no-unresolved"})," eslint error when trying to import it when it is not\nlisted as a dependency."]}),"\n",(0,jsx_runtime.jsx)(_components.p,{children:"You can then import it like this:"}),"\n",(0,jsx_runtime.jsx)(_components.pre,{children:(0,jsx_runtime.jsx)(_components.code,{className:"language-js",children:"import ArticleByline from '@haaretz/s-article-byline';\n"})}),"\n",(0,jsx_runtime.jsx)(_components.h2,{id:"overview",children:"Overview"}),"\n",(0,jsx_runtime.jsx)(_components.p,{children:"Information about an article's author(s) and time-related information, as well\nas a button to subscribe to the author's email notifications"}),"\n",(0,jsx_runtime.jsx)(dist.Xz,{withToolbar:!0,children:(0,jsx_runtime.jsx)(dist.oG,{id:"organisms-articlebyline--overview"})}),"\n",(0,jsx_runtime.jsx)(_components.h3,{id:"props",children:"Props"}),"\n",(0,jsx_runtime.jsx)(dist.$4,{story:"^"}),"\n",(0,jsx_runtime.jsx)(_components.h2,{id:"usecases",children:"Usecases"}),"\n",(0,jsx_runtime.jsx)(_components.p,{children:"Articles written by multiple authors will display all authors but won't enable\nnewsletter registeration."}),"\n",(0,jsx_runtime.jsx)(dist.Xz,{withToolbar:!0,children:(0,jsx_runtime.jsx)(dist.oG,{id:"organisms-articlebyline--multiple-authors"})})]})}const ArticleByline_doc=function MDXContent(props={}){const{wrapper:MDXLayout}=Object.assign({},(0,lib.ah)(),props.components);return MDXLayout?(0,jsx_runtime.jsx)(MDXLayout,Object.assign({},props,{children:(0,jsx_runtime.jsx)(_createMdxContent,props)})):_createMdxContent(props)},mockImage={__typename:"htz_image_Image",contentId:"00000180-7041-da8e-abc7-fe411da90001",alt:"אלוף בן",link:null,photographer:null,type:"image",credit:null,caption:null,files:[{__typename:"ImageViewModel_ImageFile",height:300,path:"50/5f/a428ee424c3fbd1ee99ee37e3d8e/2995150400.png?cmsstage",width:600,crops:{__typename:"ImageCrops",square:{__typename:"ImageCrop",height:300,width:300,x:138,y:0}}}]},contentId="0000017f-da26-d718-a5ff-faa626520000",date=new Date(1689608632847),dateAfter=new Date(1690213432851).toISOString(),props={authors:[{__typename:"AuthorPage",name:"אלוף בן",url:"/",contentId,image:mockImage,email:void 0,disableAlerts:!1}],datePublishedISO:date.toISOString(),dateModifiedISO:dateAfter},propsWithManyAuthors={authors:[{__typename:"AuthorPage",name:"אלוף בן",url:"/",contentId,image:mockImage,email:void 0,disableAlerts:!1},{__typename:"AuthorPage",name:"אבי נחמן",url:"/",contentId,image:mockImage,email:void 0,disableAlerts:!1},{__typename:"AuthorPage",name:"יענקל׳ה רוטבילט",url:"/",contentId,image:mockImage,email:void 0,disableAlerts:!1},{__typename:"AuthorPage",name:"אלכסנדר פן",url:"/",contentId,image:mockImage,email:void 0,disableAlerts:!1}],datePublishedISO:date.toISOString(),dateModifiedISO:dateAfter};var _Overview$parameters,_Overview$parameters2,_MultipleAuthors$para,_MultipleAuthors$para2;function ArticleByline_stories_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function ArticleByline_stories_objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ArticleByline_stories_ownKeys(Object(t),!0).forEach((function(r){(0,defineProperty.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ArticleByline_stories_ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const ArticleByline_stories={component:ArticleByline_ArticleByline,title:"Organisms/ArticleByline",args:{authors:props.authors,dateModifiedISO:props.dateModifiedISO,datePublishedISO:props.datePublishedISO,reportingFrom:"ברלין"},argTypes:{},parameters:{docs:{page:ArticleByline_doc}},decorators:[src.Z,...preview.an]},Overview=args=>(0,jsx_runtime.jsx)(ArticleByline_ArticleByline,ArticleByline_stories_objectSpread({},args)),MultipleAuthors=()=>(0,jsx_runtime.jsx)(ArticleByline_ArticleByline,ArticleByline_stories_objectSpread({},propsWithManyAuthors));Overview.parameters=ArticleByline_stories_objectSpread(ArticleByline_stories_objectSpread({},Overview.parameters),{},{docs:ArticleByline_stories_objectSpread(ArticleByline_stories_objectSpread({},null===(_Overview$parameters=Overview.parameters)||void 0===_Overview$parameters?void 0:_Overview$parameters.docs),{},{source:ArticleByline_stories_objectSpread({originalSource:"args => <ArticleByline {...args} />"},null===(_Overview$parameters2=Overview.parameters)||void 0===_Overview$parameters2||null===(_Overview$parameters2=_Overview$parameters2.docs)||void 0===_Overview$parameters2?void 0:_Overview$parameters2.source)})}),MultipleAuthors.parameters=ArticleByline_stories_objectSpread(ArticleByline_stories_objectSpread({},MultipleAuthors.parameters),{},{docs:ArticleByline_stories_objectSpread(ArticleByline_stories_objectSpread({},null===(_MultipleAuthors$para=MultipleAuthors.parameters)||void 0===_MultipleAuthors$para?void 0:_MultipleAuthors$para.docs),{},{source:ArticleByline_stories_objectSpread({originalSource:"() => <ArticleByline {...propsWithManyAuthors} />"},null===(_MultipleAuthors$para2=MultipleAuthors.parameters)||void 0===_MultipleAuthors$para2||null===(_MultipleAuthors$para2=_MultipleAuthors$para2.docs)||void 0===_MultipleAuthors$para2?void 0:_MultipleAuthors$para2.source)})})},"../../ds-atoms/s-htz-image/src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("../../ds-atoms/s-htz-image/src/HtzImage.tsx").Z},"../../ds-atoms/s-htz-link/src/HtzLink.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/jsx-runtime.js"),next_link__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/link.js"),next_link__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_2__),react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js"),console=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/console-browserify/index.js");const _excluded=["children","href","hrefAs","locale","prefetch","replace","scroll","shallow"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){(0,_home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const HtzLink=react__WEBPACK_IMPORTED_MODULE_3__.forwardRef((function HtzLinkComponent(_ref,forwardedRef){let{children=null,href,hrefAs,locale,prefetch,replace,scroll,shallow}=_ref,attrs=(0,_home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__.Z)(_ref,_excluded);if("string"!=typeof href&&!href.href)return console.warn('The "href" prop you passed <HtzLink /> is a "URL" object without an "href" field:',href,"\nOpting out of rendering the element"),console.trace(),null;if(function isNextLink(href){return"string"!=typeof href||!href.startsWith("http")}(href))return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(next_link__WEBPACK_IMPORTED_MODULE_2___default(),_objectSpread(_objectSpread({as:hrefAs,href,locale,prefetch,ref:forwardedRef,replace,scroll,shallow,legacyBehavior:!1},attrs),{},{children}));const url="string"==typeof href?href:href.href||void 0;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("a",_objectSpread(_objectSpread({href:url,ref:forwardedRef},attrs),{},{children}))}));HtzLink.__docgenInfo={description:"",methods:[],displayName:"HtzLink",props:{children:{defaultValue:{value:"null",computed:!1},required:!1}}};const __WEBPACK_DEFAULT_EXPORT__=HtzLink;try{HtzLink.displayName="HtzLink",HtzLink.__docgenInfo={description:"",displayName:"HtzLink",props:{href:{defaultValue:null,description:"The path or URL to navigate to. It can also be an object.\n@example https://nextjs.org/docs/api-reference/next/link#with-url-object",name:"href",required:!0,type:{name:"Url"}},replace:{defaultValue:null,description:"Replace the current `history` state instead of adding a new url into the stack.\n@defaultValue `false`",name:"replace",required:!1,type:{name:"boolean | undefined"}},scroll:{defaultValue:null,description:"Whether to override the default scroll behavior\n@example https://nextjs.org/docs/api-reference/next/link#disable-scrolling-to-the-top-of-the-page\n@defaultValue `true`",name:"scroll",required:!1,type:{name:"boolean | undefined"}},shallow:{defaultValue:null,description:"Update the path of the current page without rerunning [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md), [`getServerSideProps`](/docs/basic-features/data-fetching/get-server-side-props.md) or [`getInitialProps`](/docs/api-reference/data-fetching/get-initial-props.md).\n@defaultValue `false`",name:"shallow",required:!1,type:{name:"boolean | undefined"}},prefetch:{defaultValue:null,description:"Prefetch the page in the background.\nAny `<Link />` that is in the viewport (initially or through scroll) will be preloaded.\nPrefetch can be disabled by passing `prefetch={false}`. When `prefetch` is set to `false`, prefetching will still occur on hover. Pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md) will preload `JSON` files with the data for faster page transitions. Prefetching is only enabled in production.\n@defaultValue `true`",name:"prefetch",required:!1,type:{name:"boolean | undefined"}},locale:{defaultValue:null,description:"The active locale is automatically prepended. `locale` allows for providing a different locale.\nWhen `false` `href` has to include the locale as the default behavior is disabled.",name:"locale",required:!1,type:{name:"string | false | undefined"}},onMouseEnter:{defaultValue:null,description:"Optional event handler for when the mouse pointer is moved onto Link",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler<HTMLAnchorElement> | undefined"}},onTouchStart:{defaultValue:null,description:"Optional event handler for when Link is touched.",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler<HTMLAnchorElement> | undefined"}},onClick:{defaultValue:null,description:"Optional event handler for when Link is clicked.",name:"onClick",required:!1,type:{name:"MouseEventHandler<HTMLAnchorElement> | undefined"}},hrefAs:{defaultValue:null,description:"When different than `href`, the path that will be rendered in the browser\nURL bar. Used for dynamic routes. Otherwise used to decorate how `href` is\ndisplayed in the browser's URL bar.",name:"hrefAs",required:!1,type:{name:"Url | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-atoms/s-htz-link/src/HtzLink.tsx#HtzLink"]={docgenInfo:HtzLink.__docgenInfo,name:"HtzLink",path:"../../ds-atoms/s-htz-link/src/HtzLink.tsx#HtzLink"})}catch(__react_docgen_typescript_loader_error){}},"../../ds-atoms/s-htz-link/src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("../../ds-atoms/s-htz-link/src/HtzLink.tsx").Z},"../../ds-atoms/s-text-link/src/TextLink.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>TextLinkButton,Z:()=>__WEBPACK_DEFAULT_EXPORT__});var _home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),_home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/jsx-runtime.js"),_haaretz_s_htz_link__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../ds-atoms/s-htz-link/src/index.ts"),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js"),style9__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/style9/index.mjs");const _excluded=["children","inlineStyle","styleExtend"],_excluded2=["children","inlineStyle","styleExtend"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){(0,_home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}const c_base={outlineWidth:"eGCNgh",textDecorationLine:"dLUwcr",textDecorationColor:"dDxYlR",textDecorationThickness:"bFIFQP",textUnderlineOffset:"cEqDEh",transitionProperty:"iRietU",transitionDuration:"gAhwfJ",transitionTimingFunction:"iaemGh",":hover":{color:"klOnSG"},":focus":{color:"bsfUtT"}},c_button={backgroundColor:"KqcXP"},TextLink=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef((function TextLink(_ref,ref){let{children=null,inlineStyle,styleExtend=[]}=_ref,attrs=(0,_home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__.Z)(_ref,_excluded);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_haaretz_s_htz_link__WEBPACK_IMPORTED_MODULE_5__.Z,_objectSpread(_objectSpread({className:(0,style9__WEBPACK_IMPORTED_MODULE_3__.Z)(c_base,...styleExtend),style:inlineStyle,ref},attrs),{},{children}))}));TextLink.__docgenInfo={description:"",methods:[],displayName:"TextLink",props:{children:{defaultValue:{value:"null",computed:!1},required:!1},styleExtend:{defaultValue:{value:"[]",computed:!1},required:!1}}};const __WEBPACK_DEFAULT_EXPORT__=TextLink,TextLinkButton=react__WEBPACK_IMPORTED_MODULE_2__.forwardRef((function TextLinkButton(_ref2,ref){let{children=null,inlineStyle,styleExtend=[]}=_ref2,attrs=(0,_home_runner_work_fe_fe_node_modules_pnpm_babel_runtime_7_22_10_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__.Z)(_ref2,_excluded2);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("button",_objectSpread(_objectSpread({className:(0,style9__WEBPACK_IMPORTED_MODULE_3__.Z)(c_base,c_button,...styleExtend),style:inlineStyle,ref},attrs),{},{children}))}));TextLinkButton.__docgenInfo={description:"",methods:[],displayName:"TextLinkButton",props:{children:{defaultValue:{value:"null",computed:!1},required:!1},styleExtend:{defaultValue:{value:"[]",computed:!1},required:!1}}};try{TextLink.displayName="TextLink",TextLink.__docgenInfo={description:"",displayName:"TextLink",props:{inlineStyle:{defaultValue:null,description:"CSS declarations to be set as inline `style` on the\nhtml element.\n\nBy setting values of CSS Custom Properties based on\nprops or state in the consuming component (where\nthe value of `inlineStyle` is passed), `inlineStyle`\ncan be used as an API contract for setting dynamic\nvalues to styles created with `style9.create()`:\n@example ```ts\nimport s9 from 'style9';\nconst { styleExtend, } = s9.create({\n styleExtend: {\n color: 'var(--color-based-on-prop)',\n },\n});\n\nfunction MyTextLink(props) {\n const inlineStyle = {\n '--color-based-on-prop': props.color,\n },\n\n return (\n <TextLink\n styleExtend={[ styleExtend, ]}\n inlineStyle={inlineStyle}\n />\n );\n}\n```",name:"inlineStyle",required:!1,type:{name:"InlineStyles | undefined"}},styleExtend:{defaultValue:{value:"[]"},description:"An array of `Style`s created by `style9.create()`.\nWARNING: **_do not_** pass simple CSS-in-JS object.\nThe items in the array must be created with Style9's\n`create` function.\nThe array can also hold falsy values to assist with\nconditional inclusion of `Style`s:\n@example ```ts\nconst { foo, bar, } = s9.create({ foo: { ... }, bar: { ... }, });\n<TextLink styleExtend={[ someCondition && foo, bar, ]} />\n```",name:"styleExtend",required:!1,type:{name:"StyleExtend | undefined"}},href:{defaultValue:null,description:"The path or URL to navigate to. It can also be an object.\n@example https://nextjs.org/docs/api-reference/next/link#with-url-object",name:"href",required:!0,type:{name:"Url"}},replace:{defaultValue:null,description:"Replace the current `history` state instead of adding a new url into the stack.\n@defaultValue `false`",name:"replace",required:!1,type:{name:"boolean | undefined"}},scroll:{defaultValue:null,description:"Whether to override the default scroll behavior\n@example https://nextjs.org/docs/api-reference/next/link#disable-scrolling-to-the-top-of-the-page\n@defaultValue `true`",name:"scroll",required:!1,type:{name:"boolean | undefined"}},shallow:{defaultValue:null,description:"Update the path of the current page without rerunning [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md), [`getServerSideProps`](/docs/basic-features/data-fetching/get-server-side-props.md) or [`getInitialProps`](/docs/api-reference/data-fetching/get-initial-props.md).\n@defaultValue `false`",name:"shallow",required:!1,type:{name:"boolean | undefined"}},prefetch:{defaultValue:null,description:"Prefetch the page in the background.\nAny `<Link />` that is in the viewport (initially or through scroll) will be preloaded.\nPrefetch can be disabled by passing `prefetch={false}`. When `prefetch` is set to `false`, prefetching will still occur on hover. Pages using [Static Generation](/docs/basic-features/data-fetching/get-static-props.md) will preload `JSON` files with the data for faster page transitions. Prefetching is only enabled in production.\n@defaultValue `true`",name:"prefetch",required:!1,type:{name:"boolean | undefined"}},locale:{defaultValue:null,description:"The active locale is automatically prepended. `locale` allows for providing a different locale.\nWhen `false` `href` has to include the locale as the default behavior is disabled.",name:"locale",required:!1,type:{name:"string | false | undefined"}},onMouseEnter:{defaultValue:null,description:"Optional event handler for when the mouse pointer is moved onto Link",name:"onMouseEnter",required:!1,type:{name:"MouseEventHandler<HTMLAnchorElement> | undefined"}},onTouchStart:{defaultValue:null,description:"Optional event handler for when Link is touched.",name:"onTouchStart",required:!1,type:{name:"TouchEventHandler<HTMLAnchorElement> | undefined"}},onClick:{defaultValue:null,description:"Optional event handler for when Link is clicked.",name:"onClick",required:!1,type:{name:"MouseEventHandler<HTMLAnchorElement> | undefined"}},hrefAs:{defaultValue:null,description:"When different than `href`, the path that will be rendered in the browser\nURL bar. Used for dynamic routes. Otherwise used to decorate how `href` is\ndisplayed in the browser's URL bar.",name:"hrefAs",required:!1,type:{name:"Url | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-atoms/s-text-link/src/TextLink.tsx#TextLink"]={docgenInfo:TextLink.__docgenInfo,name:"TextLink",path:"../../ds-atoms/s-text-link/src/TextLink.tsx#TextLink"})}catch(__react_docgen_typescript_loader_error){}try{TextLinkButton.displayName="TextLinkButton",TextLinkButton.__docgenInfo={description:"",displayName:"TextLinkButton",props:{inlineStyle:{defaultValue:null,description:"CSS declarations to be set as inline `style` on the\nhtml element.\n\nBy setting values of CSS Custom Properties based on\nprops or state in the consuming component (where\nthe value of `inlineStyle` is passed), `inlineStyle`\ncan be used as an API contract for setting dynamic\nvalues to styles created with `style9.create()`:\n@example ```ts\nimport s9 from 'style9';\nconst { styleExtend, } = s9.create({\n styleExtend: {\n color: 'var(--color-based-on-prop)',\n },\n});\n\nfunction MyTextLink(props) {\n const inlineStyle = {\n '--color-based-on-prop': props.color,\n },\n\n return (\n <TextLink\n styleExtend={[ styleExtend, ]}\n inlineStyle={inlineStyle}\n />\n );\n}\n```",name:"inlineStyle",required:!1,type:{name:"InlineStyles | undefined"}},styleExtend:{defaultValue:{value:"[]"},description:"An array of `Style`s created by `style9.create()`.\nWARNING: **_do not_** pass simple CSS-in-JS object.\nThe items in the array must be created with Style9's\n`create` function.\nThe array can also hold falsy values to assist with\nconditional inclusion of `Style`s:\n@example ```ts\nconst { foo, bar, } = s9.create({ foo: { ... }, bar: { ... }, });\n<TextLink styleExtend={[ someCondition && foo, bar, ]} />\n```",name:"styleExtend",required:!1,type:{name:"StyleExtend | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-atoms/s-text-link/src/TextLink.tsx#TextLinkButton"]={docgenInfo:TextLinkButton.__docgenInfo,name:"TextLinkButton",path:"../../ds-atoms/s-text-link/src/TextLink.tsx#TextLinkButton"})}catch(__react_docgen_typescript_loader_error){}},"../../ds-atoms/s-text-link/src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("../../ds-atoms/s-text-link/src/TextLink.tsx").Z},"../../ds-molecules/s-alerts-subscription-popover/src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("../../ds-molecules/s-alerts-subscription-popover/src/AlertsSubscriptionPopover.tsx").Z},"../../ds-molecules/s-article-time/src/ArticleTime.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>ArticleTime});var jsx_runtime=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/jsx-runtime.js"),style9=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/style9/index.mjs"),isValid=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/esm/isValid/index.js"),esm_format=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/esm/format/index.js"),he=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/esm/locale/he/index.js"),utcToZonedTime=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/date-fns-tz/esm/utcToZonedTime/index.js"),date_fns_tz_esm_format=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/date-fns-tz/esm/format/index.js"),console=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/console-browserify/index.js");const locale=he.Z,timeSeparator={line:"|",dot:"•"},timeInMilliseconds={s:1e3,m:6e4,h:36e5,d:864e5,M:2629743830,y:31556926e3};const TIME_DIFF_REGEXP=/([-+]?\d+)([smhdMy]{1})/;function getTimeOffset(time,offsetExpr){const match=TIME_DIFF_REGEXP.exec(offsetExpr);let dateOffset=null;if(match){const[offset,offsetUnit]=[parseInt(match[1],10),match[2]];dateOffset=new Date(time.getTime()+function getOffsetUnitConverters(offsetConverterKey,amount){return timeInMilliseconds[offsetConverterKey]*amount}(offsetUnit,offset))}return dateOffset}const dateFormatter=new Intl.DateTimeFormat("en",{timeZone:"Asia/Jerusalem",timeZoneName:"shortOffset"});function getTimeZoneAbbrev(time){var _dateFormatter$format;const offset=null===(_dateFormatter$format=dateFormatter.formatToParts(time).find((part=>"timeZoneName"===part.type)))||void 0===_dateFormatter$format?void 0:_dateFormatter$format.value;return"GMT+3"===(null==offset?void 0:offset.toUpperCase())?"IDT":"IST"}const getFormatFromArray=(time,formatRules,now)=>{let resultedFormat="yyyy-MM-dd'T'HH:mm:ssxxx";for(let i=formatRules.length-1;i>=0;i-=1){const extendedFormatRule=formatRules[i],{from,until,format}=extendedFormatRule,fromTime=from?getTimeOffset(now,from):null,untilTime=until?getTimeOffset(now,until):null;fromTime&&untilTime&&fromTime<=untilTime?resultedFormat=fromTime<=time&&time<=untilTime?format:resultedFormat:fromTime&&!untilTime?resultedFormat=fromTime<=time?format:resultedFormat:!fromTime&&untilTime?resultedFormat=time<=untilTime?format:resultedFormat:fromTime&&untilTime?console.error(`Invalid time range [${from} - ${until}].`):resultedFormat=format}return resultedFormat},StringParserWithCalculation={"date-or-full-by-date":(time,now,fullFormat)=>getFormatFromArray(time,[{from:"-24h",until:"0h",format:"HH:mm"},{from:"-2d",until:"-24h",format:fullFormat},{until:"-2d",format:"dd בMMMM yyyy"}],now),"time-or-full-by-date":(time,now)=>getFormatFromArray(time,[{from:"-24h",until:"0h",format:"HH:mm"},{until:"-24h",format:"dd בMMMM yyyy"}],now)},StringParserWithoutCalculation={date:"dd בMMMM yyyy",time:"HH:mm"},getFormatFromString=(time,format,now,withSeparator,separator)=>{const fullFormat=withSeparator&&separator?`HH:mm ${timeSeparator[separator]} dd בMMMM yyyy`:"HH:mm, dd בMMMM yyyy";return StringParserWithCalculation[format]?StringParserWithCalculation[format](time,now,fullFormat):StringParserWithoutCalculation[format]?StringParserWithoutCalculation[format]:"full"===format?fullFormat:format},getFormatting=(time,format,withSeparator,separator)=>{const now=new Date(Date.now());return"string"==typeof format?getFormatFromString(time,format,now,withSeparator,separator):getFormatFromArray(time,format,now)},formatsToAddTimezoneStamp=["hh:mm aaa, MMMM do yyyy","hh:mm aaa","hh:mm aaa • MMMM do yyyy","hh:mm aaa | MMMM do yyyy"],getFormattedTimeToDisplay=_ref=>{let{time,separator,withSeparator,format,timeZone="Asia/Jerusalem"}=_ref;const parsedDate=new Date(time||0),fixedTime=timeZone?(0,utcToZonedTime.Z)(parsedDate,timeZone):parsedDate;if((0,isValid.Z)(parsedDate)){const userFormat=getFormatting(parsedDate,format,withSeparator,separator)||"yyyy-MM-dd'T'HH:mm:ssxxx",machineFormattedTime=timeZone?(0,date_fns_tz_esm_format.Z)(fixedTime,"yyyy-MM-dd'T'HH:mm:ssxxx",{locale,timeZone}):(0,esm_format.Z)(fixedTime,"yyyy-MM-dd'T'HH:mm:ssxxx",{locale}),formattedTime=timeZone?(0,date_fns_tz_esm_format.Z)(fixedTime,userFormat,{locale,timeZone}):(0,esm_format.Z)(fixedTime,userFormat,{locale});if("Asia/Jerusalem"===timeZone)for(let i=0;i<=formatsToAddTimezoneStamp.length;i++)if(userFormat===formatsToAddTimezoneStamp[i])return{formattedTime:`${formattedTime} ${getTimeZoneAbbrev(parsedDate)}`};return{formattedTime,machineFormattedTime}}throw Error("The time given is not valid")};function ArticleTime(_ref){let{format="full",time,label,labelStyleExtend=[],labelInlineStyle,withSeparator=!1,separator="dot",inlineStyle,timeZone="Asia/Jerusalem",styleExtend=[]}=_ref;const{formattedTime,machineFormattedTime}=getFormattedTimeToDisplay({time,timeZone,format,withSeparator,separator});return(0,jsx_runtime.jsxs)("time",{className:(0,style9.Z)(...styleExtend),dateTime:machineFormattedTime,style:inlineStyle,children:[label?(0,jsx_runtime.jsx)("span",{className:(0,style9.Z)(...labelStyleExtend),style:labelInlineStyle,children:label}):null,formattedTime]})}getFormatFromString.__docgenInfo={description:"",methods:[],displayName:"getFormatFromString"},getFormatting.__docgenInfo={description:"",methods:[],displayName:"getFormatting"};try{ArticleTime.displayName="ArticleTime",ArticleTime.__docgenInfo={description:"",displayName:"ArticleTime",props:{label:{defaultValue:null,description:"A textual label accompanying the time, mostly used to clarify its meaning",name:"label",required:!1,type:{name:"string | undefined"}},timeZone:{defaultValue:{value:"Asia/Jerusalem"},description:"Timezone to be used for formatting the time. Defaults to `Asia/Jerusalem`\n@defaultValue 'Asia/Jerusalem'",name:"timeZone",required:!1,type:{name:"string | undefined"}},format:{defaultValue:{value:"full"},description:"The format of the time to be rendered inside `<Time>`. Defaults to `full`.\nformat can be one of the following:\ntime-or-date-or-full-by-date: 13:00 | 13:00, 16.10.23 | 16.10.23\ntime-or-full-by-date: 13:00 | 13:00, 16.10.23\ntime: 13:00\ndate: 16.10.23\nfull-by-date: 13:00, 16.10.23\nrelative: 2 hours ago - deprecated\nDateFormatRule[]: you can pass an array of rules to be used for formatting the time.\nThe rules are evaluated from top to bottom and the first rule that matches the time will be used.\nThe rules are objects with the following properties: from, until, format.\n The from and until properties are optional.",name:"format",required:!1,type:{name:'"date" | "time" | "full" | "date-or-full-by-date" | "time-or-full-by-date" | DateFormatRule[]'}},time:{defaultValue:null,description:"The time to be rendered inside `<Time>`",name:"time",required:!0,type:{name:"string"}},labelInlineStyle:{defaultValue:null,description:"CSS declarations to be set as inline `style` on the\nhtml element.\n\nBy setting values of CSS Custom Properties based on\nprops or state in the consuming component (where\nthe value of `inlineStyle` is passed), `inlineStyle`\ncan be used as an API contract for setting dynamic\nvalues to styles created with `style9.create()`:\n@example ```ts\nimport s9 from 'style9';\nconst { styleExtend, } = s9.create({\n styleExtend: {\n color: 'var(--color-based-on-prop)',\n },\n});\n\nfunction MyTime(props) {\n const inlineStyle = {\n '--color-based-on-prop': props.color,\n },\n\n return (\n <Time\n styleExtend={[ styleExtend, ]}\n inlineStyle={inlineStyle}\n />\n );\n}\n```",name:"labelInlineStyle",required:!1,type:{name:"InlineStyles | undefined"}},inlineStyle:{defaultValue:null,description:"",name:"inlineStyle",required:!1,type:{name:"InlineStyles | undefined"}},styleExtend:{defaultValue:{value:"[]"},description:"An array of `Style`s created by `style9.create()`.\nWARNING: **_do not_** pass simple CSS-in-JS object.\nThe items in the array must be created with Style9's\n`create` function.\nThe array can also hold falsy values to assist with\nconditional inclusion of `Style`s:\n@example ```ts\nconst { foo, bar, } = s9.create({ foo: { ... }, bar: { ... }, });\n<Time styleExtend={[ someCondition && foo, bar, ]} />\n```",name:"styleExtend",required:!1,type:{name:"StyleExtend | undefined"}},labelStyleExtend:{defaultValue:{value:"[]"},description:"",name:"labelStyleExtend",required:!1,type:{name:"StyleExtend | undefined"}},withSeparator:{defaultValue:{value:"false"},description:"",name:"withSeparator",required:!1,type:{name:"boolean | undefined"}},separator:{defaultValue:{value:"dot"},description:"",name:"separator",required:!1,type:{name:"enum",value:[{value:"undefined"},{value:'"line"'},{value:'"dot"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../ds-molecules/s-article-time/src/ArticleTime.tsx#ArticleTime"]={docgenInfo:ArticleTime.__docgenInfo,name:"ArticleTime",path:"../../ds-molecules/s-article-time/src/ArticleTime.tsx#ArticleTime"})}catch(__react_docgen_typescript_loader_error){}},"../../hooks/s-use-breakpoint/src/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>src});var getMqString=__webpack_require__("../../theme/l-theme-shared/src/lib/getMqString.ts"),src_platform=__webpack_require__("../../utils/s-atoms/src/platform/index.ts"),react=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js");const mediaQueries=[["default",(0,getMqString.F)({until:"s"})],["s",(0,getMqString.F)({from:"s",until:"m"})],["m",(0,getMqString.F)({from:"m",until:"l"})],["l",(0,getMqString.F)({from:"l",until:"xl"})],["xl",(0,getMqString.F)({from:"xl",until:"xxl"})],["xxl",(0,getMqString.F)({from:"xxl"})]],listenerSubscriptions=[];function useBreakpoint(){const[platform]=(0,src_platform.Z)(),defaultBp=["app","mobile"].includes(platform)?"default":void 0,[breakpoint,setBreakpoint]=react.useState(defaultBp),subscriptionIdentifier=react.useId();return react.useEffect((()=>{if("app"===platform)return()=>{};const mediaMatchers=mediaQueries.map((_ref=>{let[bpName,mq]=_ref;return[bpName,"undefined"!=typeof window?window.matchMedia(mq):{matches:!1}]})),listeners={};for(const[bp,matcher]of mediaMatchers)listeners[bp]||(listeners[bp]=evt=>{evt.matches&&setBreakpoint(bp)},matcher.addEventListener("change",listeners[bp]));let activeSubscription=listenerSubscriptions.find((_ref2=>{let[id]=_ref2;return id===subscriptionIdentifier}));activeSubscription?activeSubscription[1]||(activeSubscription[1]=!0):(activeSubscription=[subscriptionIdentifier,!0],listenerSubscriptions.push(activeSubscription));const currentMatcher=mediaMatchers.find((_ref3=>{let[,matcher]=_ref3;return matcher.matches}));if(currentMatcher){const bp=currentMatcher[0];setBreakpoint(bp)}return()=>{activeSubscription&&(activeSubscription[1]=!1);if(!listenerSubscriptions.some((_ref4=>{let[,isActive]=_ref4;return isActive})))for(const[bp,matcher]of mediaMatchers)listeners[bp]&&(matcher.removeEventListener("change",listeners[bp]),delete listeners[bp])}}),[breakpoint,platform,subscriptionIdentifier]),breakpoint}try{useBreakpoint.displayName="useBreakpoint",useBreakpoint.__docgenInfo={description:"Indicates what is the currently active breakpoint.\nOn the server, we will do our best to determine the\nactive breakpoint based on `platform`, but we can only\ndo this for mobile (`mobile` and `app` platform),\nsince `platform` doesn't have that kind of granularity\nfor desktop. A return value of `undefined` means we are\non the server and couldn't determine the exact active\nbreakpoint, but it's one of the non-mobile ones\n('s' | 'm' | 'l' | 'xl' | 'xxl').\n\n**Note:** We return `default` for both the `app` and `mobile`\nvalues of `platform`. If you need to know the difference between\nthem, rely on `platform` instead.",displayName:"useBreakpoint",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["../../hooks/s-use-breakpoint/src/useBreakpoint.tsx#useBreakpoint"]={docgenInfo:useBreakpoint.__docgenInfo,name:"useBreakpoint",path:"../../hooks/s-use-breakpoint/src/useBreakpoint.tsx#useBreakpoint"})}catch(__react_docgen_typescript_loader_error){}const src=useBreakpoint},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AmpStateContext",{enumerable:!0,get:function(){return AmpStateContext}});const AmpStateContext=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs")._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js")).default.createContext({})},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-mode.js":(__unused_webpack_module,exports)=>{"use strict";function isInAmpMode(param){let{ampFirst=!1,hybrid=!1,hasQuery=!1}=void 0===param?{}:param;return ampFirst||hybrid&&hasQuery}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/head.js":(module,exports,__webpack_require__)=>{var process=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),function _export(target,all){for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:all[name]})}(exports,{defaultHead:function(){return defaultHead},default:function(){return _default}});const _interop_require_default=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"),_react=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs")._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js")),_sideeffect=_interop_require_default._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/side-effect.js")),_ampcontextsharedruntime=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js"),_headmanagercontextsharedruntime=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js"),_ampmode=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/amp-mode.js");__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/utils/warn-once.js");function defaultHead(inAmpMode){void 0===inAmpMode&&(inAmpMode=!1);const head=[_react.default.createElement("meta",{charSet:"utf-8"})];return inAmpMode||head.push(_react.default.createElement("meta",{name:"viewport",content:"width=device-width"})),head}function onlyReactElement(list,child){return"string"==typeof child||"number"==typeof child?list:child.type===_react.default.Fragment?list.concat(_react.default.Children.toArray(child.props.children).reduce(((fragmentList,fragmentChild)=>"string"==typeof fragmentChild||"number"==typeof fragmentChild?fragmentList:fragmentList.concat(fragmentChild)),[])):list.concat(child)}const METATYPES=["name","httpEquiv","charSet","itemProp"];function reduceComponents(headChildrenElements,props){const{inAmpMode}=props;return headChildrenElements.reduce(onlyReactElement,[]).reverse().concat(defaultHead(inAmpMode).reverse()).filter(function unique(){const keys=new Set,tags=new Set,metaTypes=new Set,metaCategories={};return h=>{let isUnique=!0,hasKey=!1;if(h.key&&"number"!=typeof h.key&&h.key.indexOf("$")>0){hasKey=!0;const key=h.key.slice(h.key.indexOf("$")+1);keys.has(key)?isUnique=!1:keys.add(key)}switch(h.type){case"title":case"base":tags.has(h.type)?isUnique=!1:tags.add(h.type);break;case"meta":for(let i=0,len=METATYPES.length;i<len;i++){const metatype=METATYPES[i];if(h.props.hasOwnProperty(metatype))if("charSet"===metatype)metaTypes.has(metatype)?isUnique=!1:metaTypes.add(metatype);else{const category=h.props[metatype],categories=metaCategories[metatype]||new Set;"name"===metatype&&hasKey||!categories.has(category)?(categories.add(category),metaCategories[metatype]=categories):isUnique=!1}}}return isUnique}}()).reverse().map(((c,i)=>{const key=c.key||i;if(process.env.__NEXT_OPTIMIZE_FONTS&&!inAmpMode&&"link"===c.type&&c.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((url=>c.props.href.startsWith(url)))){const newProps={...c.props||{}};return newProps["data-href"]=newProps.href,newProps.href=void 0,newProps["data-optimized-fonts"]=!0,_react.default.cloneElement(c,newProps)}return _react.default.cloneElement(c,{key})}))}const _default=function Head(param){let{children}=param;const ampState=(0,_react.useContext)(_ampcontextsharedruntime.AmpStateContext),headManager=(0,_react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);return _react.default.createElement(_sideeffect.default,{reduceComponentsToState:reduceComponents,headManager,inAmpMode:(0,_ampmode.isInAmpMode)(ampState)},children)};("function"==typeof exports.default||"object"==typeof exports.default&&null!==exports.default)&&void 0===exports.default.__esModule&&(Object.defineProperty(exports.default,"__esModule",{value:!0}),Object.assign(exports.default,exports),module.exports=exports.default)},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/side-effect.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return SideEffect}});const _react=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs")._(__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js")),isServer="undefined"==typeof window,useClientOnlyLayoutEffect=isServer?()=>{}:_react.useLayoutEffect,useClientOnlyEffect=isServer?()=>{}:_react.useEffect;function SideEffect(props){const{headManager,reduceComponentsToState}=props;function emitChange(){if(headManager&&headManager.mountedInstances){const headElements=_react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));headManager.updateHead(reduceComponentsToState(headElements,props))}}var _headManager_mountedInstances;isServer&&(null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.add(props.children),emitChange());return useClientOnlyLayoutEffect((()=>{var _headManager_mountedInstances;return null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.add(props.children),()=>{var _headManager_mountedInstances;null==headManager||null==(_headManager_mountedInstances=headManager.mountedInstances)||_headManager_mountedInstances.delete(props.children)}})),useClientOnlyLayoutEffect((()=>(headManager&&(headManager._pendingUpdate=emitChange),()=>{headManager&&(headManager._pendingUpdate=emitChange)}))),useClientOnlyEffect((()=>(headManager&&headManager._pendingUpdate&&(headManager._pendingUpdate(),headManager._pendingUpdate=null),()=>{headManager&&headManager._pendingUpdate&&(headManager._pendingUpdate(),headManager._pendingUpdate=null)}))),null}},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/utils/warn-once.js":(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=_=>{}},"../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/head.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/shared/lib/head.js")}}]);