PageSourceSearch

https://www.hype.it/_next/static/chunks/194-8dd44582feab2701.js

js hype.it collected 2026-10-02 05:20:35 UTC 52,572 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[194],{972:(n,e,t)=>{"use strict";t.d(e,{I:()=>x,g:()=>v});var o=t(5155),r=t(1674),a=t(5050),l=t(2446),i=t(1469),c=t(4060),s=t(2821),d=t(7644),m=t(4706),g=t(1438),u=t(9539),p=t(5045);let h=(0,i.U)("\n    fragment ChipPresetFragment on ChipPresetRecord {\n      id\n      textColor {\n        ...ColorFragment\n      }\n      backgroundColor {\n        ...ColorFragment\n      }\n      icon {\n        ...IconBlockFragment\n      }\n      text\n    }\n  ",[u.$,r.SI]),k=n=>{let{data:e,...t}=n;if(!e)return null;let{className:a,style:l}=t,{textColor:c,backgroundColor:d,icon:m,text:g}=(0,i.B)(h,e),k=(0,i.B)(r.SI,c),f=(0,i.B)(r.SI,d);return(0,o.jsxs)("div",{className:(0,s.A)("chip-preset max-w-fit flex flex-row gap-2 items-center rounded-hype-2xl px-4 py-1 bg-white",a),...t,style:{color:null==k?void 0:k.hex,backgroundColor:null==f?void 0:f.hex,...l},children:[m&&(0,o.jsx)(u.V,{data:m}),g&&(0,o.jsx)(p.o,{variant:"captionMedium",className:"!mb-0",children:g})]})};var f=t(4729);let v=(0,i.U)("\n    fragment ChipBlockFragment on ChipBlockRecord {\n      backgroundColor {\n        ...ColorFragment\n      }\n      color {\n        ...ColorFragment\n      }\n      defaultIconColor\n      preset\n      chipPreset {\n        id\n        ...ChipPresetFragment\n      }\n      text {\n        value\n        blocks {\n          __typename\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n        }\n        inlineBlocks {\n          __typename\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n        }\n      }\n      countdown\n    }\n  ",[r.SI,u.$,h]),x=n=>{let{data:e,colorTheme:t,className:p,...h}=n,{backgroundColor:x,preset:B="custom",color:b,defaultIconColor:F,text:y,chipPreset:I,countdown:R}=(0,i.B)(v,e),_=(0,i.B)(r.SI,x),P=(0,i.B)(r.SI,b);return I&&"preset"===B?(0,o.jsx)(k,{data:I,className:(0,s.A)(!1,"chip-preset chip-block max-w-fit rounded-hype-2xl px-4 py-1 bg-white",p)}):(0,o.jsx)("div",{className:(0,s.A)(!1,t&&"theme-color-".concat(t),"chip-block max-w-fit rounded-hype-2xl px-4 py-1 bg-white",p),style:{backgroundColor:null==_?void 0:_.hex,color:null==P?void 0:P.hex},...h,children:(0,o.jsxs)("div",{className:"flex flex-row gap-1 items-center",children:[(0,o.jsx)(m.d6,{data:y,customMarkRules:a.i,renderBlock:n=>{let{record:e}=n;return"IconBlockRecord"===e.__typename?(0,o.jsx)(u.V,{data:e,className:(0,s.A)(!F&&"before:!text-inherit")},String(e.id)):null},renderInlineBlock:n=>{let{record:e}=n;return"IconBlockRecord"===e.__typename?(0,o.jsx)(u.V,{data:e,className:(0,s.A)(!F&&"before:!text-inherit","!inline-block mr-2")},String(e.id)):null},customNodeRules:[(0,g.bq)(d.PJ,n=>{let{node:e,key:t,children:r}=n;return(0,o.jsx)(c.RenderLinkNodeRule,{linkNode:e,children:r},t)}),(0,g.bq)(d.Vq,n=>(0,l.kg)(n,{className:"!mb-0"})),(0,g.bq)(d.Vs,n=>(0,l.OJ)(n,{className:"!mb-0 flex items-center",variant:"captionMedium",style:{color:null==P?void 0:P.hex}}))]}),!!R&&(0,o.jsx)(f.ChipCountdown,{targetDate:R})]})})}},1741:(n,e,t)=>{"use strict";t.d(e,{BlogPreviewWrapper:()=>nu});var o=t(5155),r=t(7157);t(1036);var a=t(1674);t(5050),t(2446);var l=t(1469);t(4060);var i=t(9090),c=t(9671);let s=(0,l.U)("\n    fragment AccordionGroupFragment on AccordionGroupRecord {\n      __typename\n      id\n      title {\n        value\n      }\n      backgroundColor {\n        ...ColorFragment\n      }\n      colorTheme\n      accordionItems {\n        __typename\n        ... on AccordionItemRecord {\n          id\n          ...AccordionBlockFragment\n        }\n      }\n    }\n  ",[i.O,a.SI,c.D]);t(2897);let d=(0,l.U)("\n  fragment AnimationScrollingItemFragment on AnimationScrollingItemRecord {\n    id\n    __typename\n    text\n  }\n"),m=(0,l.U)("\n    fragment AnimationScrollingBlockFragment on AnimationScrollingBlockRecord {\n      id\n      styling {\n        ... on BlockstylingRecord {\n          ...StylingBlockFragment\n        }\n      }\n      variant\n      once\n      items {\n        ... on AnimationScrollingItemRecord {\n          ...AnimationScrollingItemFragment\n        }\n        text\n      }\n    }\n  ",[a.ad,d]);
1var g=t(1919),u=t(4154),p=t(972),h=t(9539),k=t(5943);let f=(0,l.U)("\n    fragment BaseBlockAssetFragment on AssetRecord {\n      id\n      __typename\n      assetType\n      videoFile {\n        ...UploadVideoFragment\n      }\n      storageVideoFile\n      videoExt {\n        ...ExternalVideoFragment\n      }\n      mobileImage {\n        url: url(imgixParams: { w: 1, h: 1, fit: crop, crop: focalpoint })\n        width\n        height\n        size\n        id\n        # seo\n        alt\n        title\n        focalPoint {\n          x\n          y\n        }\n      }\n      image {\n        url: url(imgixParams: { w: 1, h: 1, fit: crop, crop: focalpoint })\n        width\n        height\n        size\n        id\n        # seo\n        alt\n        title\n        focalPoint {\n          x\n          y\n        }\n      }\n      fillMaxWidth\n      centeredAsset\n      stretch\n      imageStorageAlt\n      imageStorageUrl\n      mobileImageStorageUrl\n      autoPlayVideo\n      mutedVideo\n      loopVideo\n      hideVideoControls\n      lottieFile {\n        url\n      }\n      json\n      mobileLottieFile {\n        url\n      }\n      animationStorageFileMobile\n      aspectRatioDesktop\n      animationStorageFileDesktop\n      aspectRatioMobile\n    }\n  ",[a.nS,a.xg]),v=(0,l.U)("\n    fragment BaseBlockFragment on BaseBlockRecord {\n      id\n      variant\n      colorTheme\n      blockAlignement\n      hideShadow\n      backgroundColor {\n        ...ColorFragment\n      }\n      asset {\n        ...BaseBlockAssetFragment\n      }\n      chip {\n        ...ChipBlockFragment\n      }\n      content {\n        value\n        blocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n          ... on TooltipBlockRecord {\n            id\n            ...TooltipBlockFragment\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on AssetRecord {\n            id\n            ...AssetBlockFragment\n          }\n        }\n        inlineBlocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n          ... on TooltipBlockRecord {\n            id\n            ...TooltipBlockFragment\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on AutocenteredBlockRecord {\n            id\n            ...AutocenteredBlockFragment\n          }\n        }\n      }\n      button {\n        ... on MenuItemRecord {\n          ...MenuItemBlockFragment\n        }\n      }\n    }\n  ",[u.m,f,c.D,a.SI,p.g,h.$,k.f,r.iV]);t(7798),t(859),t(2912);let x=(0,l.U)("\n    fragment CarouselItemBlockFragment on CarouselBlockRecord {\n      id\n      backgroundColor {\n        ...ColorFragment\n      }\n      backgroundImage {\n        ...ImageAltTitleFileFieldFragment\n      }\n      storageBackgroundImage\n      storageBackgroundImageAlt\n      colorTheme\n      id\n      asset {\n        ...AssetBlockFragment\n      }\n      hasAssetAfter\n      mainContent {\n        value\n        inlineBlocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n        }\n        blocks {\n          __typename\n          ... on RecordInterface {\n            id\n          }\n          ... on ChipBlockRecord {\n            id\n            ...ChipBlockFragment\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on AutocenteredBlockRecord {\n            id\n            ...AutocenteredBlockFragment\n          }\n        }\n      }\n    }\n  ",[p.g,u.m,r.iV,c.D,a.SI,a.RM]),B=(0,l.U)("\n    fragment CarouselBlockFragment on CarouselModuleRecord {\n      id\n      __typename\n      colorTheme\n      backgroundColor {\n        ...ColorFragment\n      }\n      title {\n        __typename\n        id\n        ...AutocenteredBlockFragment\n      }\n      items {\n        __typename\n        id\n        ...CarouselItemBlockFragment\n      }\n    }\n  ",[c.D,a.SI,x]);t(8321);let b=(0,l.U)("\n    fragment FaqBlockFragment on FaqBlockRecord {\n      __typename\n      id\n      colorTheme\n      backgroundColor {\n        ...ColorFragment\n      }\n      title {\n        __typename\n        id\n        ... on AutocenteredBlockRecord {\n          id\n          ...AutocenteredBlockFragment\n        }\n      }\n      accordionItems {\n        __typename\n        ... on AccordionItemRecord {\n          id\n          ...AccordionBlockFragment\n        }\n        ... on MenuItemRecord {\n          id\n          ...MenuItemBlockFragment\n        }\n      }\n    }\n  ",[a.SI,i.O,r.iV,c.D]);var F=t(1427),y=t(5720);let I=(0,l.U)("\n    fragment IconListItemFragment on IconListItemRecord {\n      id\n      __typename\n      iconListItem {\n        value\n        __typename\n        inlineBlocks {\n          __typename\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on RecordInterface {\n            id\n          }\n        }\n      }\n    }\n  ",[h.$,r.iV]),R=(0,l.U)("\n    fragment IconListBlockFragment on IconListBlockRecord {\n      id\n      icon {\n        ...IconBlockFragment\n      }\n      list {\n        id\n        __typename\n        ...IconListItemFragment\n      }\n    }\n  ",[I,a.SI,h.$]);var _=t(5045);let P=(0,l.U)("\n  fragment PriceBlockFragment on PriceBlockRecord {\n    value\n    discountedPrice\n    period\n  }\n"),w=(0,l.U)("\n    fragment HeroBlockFragment on HeroBlockRecord {\n      id\n      __typename\n      viewportHe
1ight\n      backgroundColor {\n        ...ColorFragment\n      }\n      colorTheme\n      backgroundImageDesktop {\n        ...AltTitleFIleFieldFragment\n      }\n      backgroundImageMobile {\n        ...FileFieldFragment\n      }\n      storageBackgroundDesktopImage\n      storageBackgroundMobileImage\n      storageBackgroundImageAlt\n      storagePartnerImage\n      storagePartnerImageAlt\n      bottomSpacing\n      chip {\n        ...ChipBlockFragment\n      }\n      staticContent {\n        value\n        blocks {\n          __typename\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n          ... on IconListBlockRecord {\n            id\n            ...IconListBlockFragment\n          }\n        }\n        inlineBlocks {\n          __typename\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n        }\n      }\n      price {\n        ...PriceBlockFragment\n      }\n      button {\n        ...MenuItemBlockFragment\n      }\n      secondaryCta {\n        ...MenuItemBlockFragment\n      }\n      disclaimer {\n        __typename\n        value\n        inlineBlocks {\n          __typename\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n        }\n      }\n      partner {\n        responsiveImage {\n          ...ResponsiveImageFragment\n        }\n      }\n      asset {\n        ...AssetBlockFragment\n      }\n    }\n  ",[a.SI,u.m,F.O,a.$F,p.g,h.$,P,r.iV,a.i8,R]);t(1655),t(3406);let S=(0,l.U)("\n    fragment HeroLegalItemFragment on HeroLegalItemRecord {\n      id\n      title\n      __typename\n      buttonBgColor {\n        ...ColorFragment\n      }\n      buttonTextColor {\n        ...ColorFragment\n      }\n      buttonTextColorInactive {\n        ...ColorFragment\n      }\n      ... on HeroLegalItemRecord {\n        id\n        content {\n          __typename\n          ... on RecordInterface {\n            id\n          }\n          ... on AccordionGroupRecord {\n            id\n            ...AccordionGroupFragment\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n        }\n      }\n    }\n  ",[a.SI,s,r.iV]),C=(0,l.U)("\n    fragment HeroLegalBlockFragment on HeroLegalRecord {\n      __typename\n      id\n      hideSwitcher\n      backgroundColor {\n        ...ColorFragment\n      }\n      colorTheme\n      header {\n        ...AutocenteredBlockFragment\n      }\n      items {\n        ... on HeroLegalItemRecord {\n          id\n          ...HeroLegalItemFragment\n        }\n      }\n    }\n  ",[c.D,a.SI,S]),M=(0,l.U)("\n    fragment TabPageFragment on TabPageRecord {\n      title\n      id\n      __typename\n      asset {\n        id\n        ...AssetBlockFragment\n      }\n      content {\n        value\n        blocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n        }\n        inlineBlocks {\n          __typename\n          ... on TooltipBlockRecord {\n            id\n            ...TooltipBlockFragment\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n        }\n      }\n      callToAction {\n        ...MenuItemBlockFragment\n      }\n    }\n  ",[u.m,k.f,h.$,r.iV]),j=(0,l.U)("\n    fragment TabGroupFragment on TabGroupRecord {\n      id\n      header {\n        ...AutocenteredBlockFragment\n      }\n      colorTheme\n      backgroundColor {\n        ...ColorFragment\n      }\n      tabs {\n        ... on TabPageRecord {\n          ...TabPageFragment\n        }\n      }\n    }\n  ",[c.D,a.SI,M]);var N=t(5239),A=t(2115),L=t(3542);let T=(0,L.UG)("\n    fragment SocialBlockFragment on SocialRecord {\n      __typename\n      id\n      socials {\n        id\n        ...MenuItemBlockFragment\n      }\n    }
1\n  ",[r.iV]),D=(0,l.U)("\n    fragment StoresBlockFragment on MobileStoreRecord {\n      __typename\n      id\n      items {\n        id\n        ...MenuItemBlockFragment\n      }\n    }\n  ",[r.iV]);t(2638);var U=t(4191);let q=(0,l.U)("\n    fragment FooterBlockFragment on FooterRecord {\n      name\n      logoUrl\n      backgroundColor {\n        hex\n      }\n      colorTheme\n      storageLogoImage\n      description {\n        value\n      }\n      logo {\n        url\n        alt\n        width\n        title\n        height\n      }\n      menuColumns {\n        ... on MenuColumnRecord {\n          id\n          ...MenuColumnsBlockFragment\n        }\n      }\n      links {\n        ... on MenuItemRecord {\n          id\n          ...MenuItemBlockFragment\n        }\n      }\n      mobileStores {\n        ...StoresBlockFragment\n      }\n      socialBlock {\n        ...SocialBlockFragment\n      }\n      socialBlockPosition\n    }\n  ",[T,D,r.AC,r.iV]);var H=t(5451);t(9401);let $=(0,l.U)("\n    fragment BlogPostsPreviewFragment on BlogPostPreviewRecord {\n      id\n      __typename\n      blog {\n        id\n        name\n      }\n      createdAt\n      updatedAt\n      styling {\n        ... on BlockstylingRecord {\n          ...StylingBlockFragment\n        }\n      }\n    }\n  ",[a.ad]),V=(0,l.U)("\n    fragment ModularBlogPageFragment on ModularPageRecord {\n      __typename\n      id\n      name\n      updatedAt\n      createdAt\n      pageSlug\n      pageType\n      postImagePreview {\n        id\n        ...FileFieldFragment\n      }\n      seo: _seoMetaTags {\n        ...TagFragment\n      }\n      header {\n        ...HeaderFragment\n      }\n      footer {\n        ...FooterBlockFragment\n      }\n      bannerPromo {\n        ...BannerPromoFragment\n      }\n      blocks {\n        __typename\n        ... on RecordInterface {\n          id\n        }\n        ... on BaseBlockRecord {\n          id\n          ...BaseBlockFragment\n        }\n        ... on HeroBlockRecord {\n          id\n          ...HeroBlockFragment\n        }\n        ... on CarouselModuleRecord {\n          id\n          ...CarouselBlockFragment\n        }\n        ... on FaqBlockRecord {\n          id\n          ...FaqBlockFragment\n        }\n        ... on AccordionGroupRecord {\n          id\n          ...AccordionGroupFragment\n        }\n        ... on TabGroupRecord {\n          id\n          ...TabGroupFragment\n        }\n        ... on HeroLegalRecord {\n          id\n          ...HeroLegalBlockFragment\n        }\n        ... on BlogPostPreviewRecord {\n          id\n          ...BlogPostsPreviewFragment\n        }\n      }\n    }\n  ",[a.$F,H.AH,j,q,b,s,g.I,v,w,B,C,a.v2,$]),E=(0,l.U)("\n    fragment ModularBlogPageExcerptFragmentPageFragment on ModularPageRecord {\n      __typename\n      id\n      name\n      updatedAt\n      createdAt\n      pageSlug\n      pageType\n      postImagePreview {\n        id\n        ...FileFieldFragment\n      }\n      blocks {\n        __typename\n        ... on RecordInterface {\n          id\n        }\n        ... on BaseBlockRecord {\n          id\n          ...BaseBlockFragment\n        }\n      }\n    }\n  ",[a.$F,v]);(0,l.U)('\n  query getAllBlogsQuery {\n    allModularPages(filter: { pageType: { eq: "blog" } }) {\n      id\n      pageSlug\n    }\n  }\n'),(0,l.U)("\n    query getBlogByPageSlugQuery($pageSlug: String) {\n      allModularPages(filter: { pageSlug: { eq: $pageSlug } }) {\n        ... on ModularPageRecord {\n          ...ModularBlogPageFragment\n        }\n      }\n    }\n  ",[V]),(0,l.U)('\n    query getPaginatedPostsByBlogQuery($blogId: ItemId, $pageSize: IntType, $skip: IntType) {\n      allModularPages(\n        filter: { AND: { pageType: { eq: "post" }, blogCategory: { eq: $blogId } } }\n        skip: $skip\n        first: $pageSize\n      ) {\n        id\n        ... on ModularPageRecord {\n          ...ModularBlogPageExcerptFragment\n        }\n      }\n    }\n  ',[E]),(0,l.U)('\n    query getPaginatedPostsByBlogQuery($blogId: ItemId, $pageSize: IntType, $skip: IntType) {\n      allModularPages(\n        filter: { AND: { pageType: { eq: "post" }, blogCategory: { eq: $blogId } } }\n        skip: $skip\n        first: $pageSize\n      ) {\n        id\n        ... on ModularPageRecord {\n          ...ModularBlogPageFragment\n        }\n      }\n    }\n  ',[V]),t(8742),t(1256);let O=(0,l.U)("\n  fragment DynamicScriptFragment on DynamicScriptRecord {\n    id\n    formId\n    apiUrl\n    cachedFormUrl\n    scriptSrc\n    cssStyle\n  }\n"),z=(0,l.U)("\n  fragment HtmlBlockFragment on HtmlBlockRecord {\n    code\n  }\n"),G=(0,l.U)("\n    fragment LegalNotesBlockFragment on LegalNoteRecord {\n      __typename\n      id\n      description\n      content {\n        value\n        inlineBlocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n          ... on RecordInterface {\n            id\n          }\n        }\n      }\n    }\n  ",[h.$,r.iV]),Y=(0,l.U)("\n    fragment LegalNoteMessageFragment on LegalNoteMessageRecord {\n      id\n      description {\n        value\n        inlineBlocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n          ... on RecordInterface {\n            id\n          }\n        }\n      }\n    }\n  ",[h.$,r.iV]),W=(0,l.U)("\n    fragment LegalNoteFragment on LegalNoteBlockRecord {\n      id\n      styling {\n        ...StylingBlockFragment\n      }\n      legalNotes {\n        ...LegalNotesBlockFragment\n      }\n      extraContentPosition\n      description {\n        ...LegalNoteMessageFragment\n      }\n    }\n  ",[h.$,a.ad,Y,G,r.iV]);t(1871);let Q=(0,l.U)("\n    fragment ListRowBlockFragment on ListRowBlockRecord {\n      id\n      asset {\n        url\n        height\n        width\n        # seo\n        alt\n        title\n      }\n      leftColumn {\n        value\n      }\n      rightColumn {\n        value\n        blocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n        }\n        inlineBlocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n        }\n      }\n    }\n  ",[r.iV,h.$]),X=(0,l.U)("\n    fragment ListSectionBlockFragment on ListSectionRecord {\n      id\n      title {\n        ... on AutocenteredBlockRecord {\n          ...AutocenteredBlockFragment\n        }\n      }\n      alignementType\n      rows {\n        ...ListRowBlockFragment\n      }\n      rowSeparation\n      disableShowMoreLess\n      collapsibleTextExpanded\n      collapsibleTextCollapsed\n    }\n  ",[c.D,Q]),J=(0,l.U)("\n    fragment ListBlockFragment on ListBlockRecord {\n      id\n      __typename\n      backgroundColor {\n        ...ColorFragment\n      }\n      colorTheme\n      sections {\n        ...ListSectionBlockFragment\n      }\n      button {\n        ...MenuItemBlockFragment\n      }\n    }\n  ",[a.SI,X,r.iV]);var K=t(1220),Z=t(9060);t(3224);let nn=(0,l.U)("\n    fragment PricingBlockFragment on PricingRecord {\n      id\n      __typename\n      hidePromo\n      hideCostsAndLimits\n      hideFeatures\n      hideHeader\n      hideTabs\n      heading {\n        ... on AutocenteredBlockRecord {\n          ...AutocenteredBlockFragment\n        }\n      }\n      styling {\n        id\n        ...StylingBlockFragment\n      }\n      defaultActivePlan\n      plans {\n        ...PlanRecordFragment\n      }\n      limitsAndCostsHeading {\n        ...AutocenteredBlockFragment\n      }\n    }\n  ",[a.ad,Z.vi,c.D]);var ne=t(8999);let nt=(0,l.U)("\n    fragment SpacingBlockFragment on SpacingRecord {\n      __typename\n      id\n      styling {\n        id\n        ...StylingBlockFragment\n      }\n      value\n    }\n  ",[a.ad]),no=(0,l.U)("\n    fragment ModularPageFragment on ModularPageRecord {\n      __typename\n      id\n      updatedAt\n      createdAt\n      name\n      pageSlug\n      pageType\n      backgroundColor {\n        ...ColorFragment\n      }\n      canonicalUrl\n      postImagePreview {\n        id\n        ...FileFieldFragment\n      }\n      storagePostImagePreview\n      chip {\n        ...ChipBlockFragment\n      }\n      seo: _seoMetaTags {\n        ...TagFragment\n      }\n      header {\n        ...HeaderFragment\n      }\n      headerPlanCta {\n        __typename\n        ...MenuItemBlockFragment\n      }\n      defaultMobileMenuActive\n      footer {\n        ...FooterBlockFragment\n      }\n      bannerPromo {\n        ...BannerPromoFragment\n      }\n      blocks {\n        __typename\n        ... on RecordInterface {\n          id\n        }\n        ... on BaseBlockRecord {\n          id\n          ...BaseBlockFragment\n        }\n        ... on HeroBlockRecord {\n          id\n          ...HeroBlockFragment\n        }\n        ... on ListBlockRecord {\n          id\n          ...ListBlockFragment\n        }\n        ... on CarouselModuleRecord {\n          id\n          ...CarouselBlockFragment\n        }\n        ... on FaqBlockRecord {\n          id\n          ...FaqBlockFragment\n        }\n        ... on AccordionGroupRecord {\n          id\n          ...AccordionGroupFragment\n        }\n        ... on TabGroupRecord {\n          id\n          ...TabGroupFragment\n        }\n        ... on HeroLegalRecord {\n          id\n          ...HeroLegalBlockFragment\n        }\n        ... on BlogPostPreviewRecord {\n          id\n          ...BlogPostsPreviewFragment\n        }\n        ... on PromotionBlockRecord {\n          id\n          ...FilteredPromotionFragment\n        }\n        ... on AnimationScrollingBlockRecord {\n          id\n          ...AnimationScrollingBlockFragment\n        }\n        ... on PricingRecord {\n          id\n          ...PricingBlockFragment\n        }\n        ... on CardPlanRecord {\n          id\n          ...PlanCardBlockFragment\n        }\n        ... on SpacingRecord {\n          id\n          ...SpacingBlockFragment\n        }\n        ... on HtmlBlockRecord {\n          id\n          ...HtmlBlockFragment\n        }\n        ... on DynamicScriptRecord {\n          id\n          ...DynamicScriptFragment\n        }\n      }\n      legalNotesList {\n        ...LegalNoteFragment\n      }\n      pageSchema\n    }\n  ",[W,r.iV,nt,O,nn,K.P,a.SI,q,H.AH,a.$F,p.g,g.I,a.v2,v,w,J,B,ne.dp,$,j,b,s,C,m,z]);(0,l.U)("\n    fragment ModularPageExcerptFragment on ModularPageRecord {\n      __typename\n      id\n      name\n      pageSlug\n      _updatedAt\n      sitemap\n      seo: _seoMetaTags {\n        ...TagFragment\n      }\n    }\n  ",[a.v2]);var nr=t(8575),na=t(2821),nl=t(63),ni=t(1363),nc=t(4269),ns=t(6777);let nd=n=>{let{post:e}=n,t=(0,l.B)(no,e),r=new Date(t.createdAt),i=(0,l.B)(a.$F,t.postImagePreview),c=t.storagePostImagePreview,s=(0,l.B)(F.O,null==i?void 0:i.ar1),d=Intl.DateTimeFormat("it-IT",{dateStyle:"long",hour12:!1}).format(r);return d=d.split(" ").map(n=>(0,nc.Z)(n)).join(" "),(0,o.jsx)("div",{children:(0,o.jsxs)(U.L,{className:"unthemed overflow-hidden",noUnderline:!0,href:"/".concat(t.pageSlug),children:[c&&(0,o.jsx)("div",{className:"mb-4 overflow-hidden rounded-hype-2xl transition-all duration-500",children:(0,o.jsx)(N.default,{className:"rounded-hype-2xl hover:scale-105 transition-all aspect-square duration-500 w-full h-full",src:c,width:200,height:200,alt:t.name})}),!c&&s&&(0,o.jsx)("div",{className:"mb-4 overflow-hidden rounded-hype-2xl transition-all duration-500",children:(0,o.jsx)(ns.q,{data:s,imgClassName:"rounded-hype-2xl hover:scale-105 transition-all duration-500"})}),t.chip&&(0,o.jsx)("div",{className:"mb-2",children:(0,o.jsx)(p.I,{data:t.chip})}),(0,o.jsx)(_.o,{variant:"bodyMedium",children:t.name}),(0,o.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,o.jsx)(_.o,{variant:"caption",children:d}),(0,o.jsx)(y.I,{name:"arrow-right",size:16,className:"before:text-stone-lightest"})]})]},t.id)})},nm=async function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;try{let o=await fetch("/data/blog-posts.json"),r=(await o.json())[n]||[],a=r.slice(e,e+t);return{_allModularPagesMeta:{count:r.length},allModularPages:a}}catch(n){return console.error("[ERROR] ****: e",n),{_allModularPagesMeta:{count:0},allModularPages:[]}}},ng=async function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;return arguments.length>3&&void 0!==arguments[3]&&arguments[3],nm(n,e,t)},nu=n=>{let{blogId:e,isDraftModeEnabled:t=!1,pageSize:r=6}=n,l="".concat(e,"_page"),i=(0,nl.useSearchParams)(),c=Number(i.get(l)||1),[s,d]=(0,A.useState)(c),[m,g]=(0,A.useState)(!0),[u,p]=(0,A.useState)([]),[h,k]=(0,A.useState)(0),f=(0,A.useCallback)(async()=>{let n=r*(s-1),o=!1;setTimeout(()=>{o||g(!0)},1e3);let{_allModularPagesMeta:l,allModularPages:i}=await ng(e,n,r,t);o=!0;let{count:c}=(0,L.Bk)(a.GC,l);k(Math.ceil(Number(c)/r)),p(i),g(!1)},[r,s,e,t]);(0,A.useEffect)(()=>{f()},[f]);let v=(0,A.useCallback)(n=>{let e=n.toString(),t=new URLSearchParams(i.toString());t.set(l,e),window.history.pushState(null,"","?".concat(t.toString())),window.scrollTo({top:0,behavior:"smooth"}),d(n)},[i,l]);return(0,o.jsxs)("div",{className:"",children:[m&&(0,o.jsx)("div",{className:"flex justify-center items-center min-h-96",children:(0,o.jsx)(nr.X,{variant:"circle",size:64})}),0===u.length&&1===s&&!m&&(0,o.jsx)("div",{className:"inline-flex flex-col gap-8 justify-center items-center w-full",children:(0,o.jsx)(_.o,{children:"Non sono presenti posts in questo blogs."})}),0===u.length&&s>1&&!m&&(0,o.jsxs)("div",{className:"inline-flex flex-col gap-8 justify-center items-center w-full",children:[(0,o.jsx)(_.o,{children:"Non ci sono altri posts in questo blog."}),(0,o.jsx)(y.$,{onClick:()=>v(1),children:"Riprova"})]}),!m&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"grid gap-8 grid-cols-[repeat(auto-fill,_minmax(340px,1fr))]",children:u.map(n=>{let e=(0,L.Bk)(no,n);return(0,o.jsx)(nd,{post:n},e.id)})}),(0,o.jsx)("div",{className:"flex justify-center my-10 pagination-wrapper",children:h>1&&(0,o.jsx)("nav",{"aria-label":"pagination",children:(0,o.jsx)(ni.Ay,{className:"flex flex-row gap-2",current:s,maxWidth:250,previousLabel:(0,o.jsx)(y.I,{name:"arrow-left",className:(0,na.A)(1===s?"before:text-stone-lightest!":"before:text-blue-app!"),size:24}),nextLabel:(0,o.jsx)(y.I,{name:"arrow-right",className:(0,na.A)(s===h?"before:text-stone-lightest!":"before:text-blue-app!"),size:24}),ariaPreviousLabel:"Pagina precedente",ariaNextLabel:"Pagina successiva",previousClassName:"!bg-transparent",disabledItemClassName:"text-stone-lightest",nextClassName:"!bg-transparent",onPageChange:n=>v(n),pageItemClassName:"size-6 rounded-hype-2xl text-sm font-medium text-stone-lightest bg-white flex flex-row items-center justify-center",activeItem
1ClassName:"!bg-blue-app text-white",pageLinkClassName:"unthemed [&>span]:flex w-full h-full inline-flex items-center justify-center",total:h})})})]})]})}},4137:(n,e,t)=>{"use strict";t.d(e,{Header:()=>w});var o=t(5155),r=t(1674),a=t(1469),l=t(2821),i=t(5239),c=t(2115),s=t(7157),d=t(5451),m=t(3542),g=t(8148),u=t(63),p=t(1809),h=t(8998),k=t(1724);let f=n=>{let{right:e,cta:t,left:r}=n,a=(0,m.Bk)(d.Xi,r),i=(0,m.Bk)(d.qB,e),s=(0,m.Bk)(d.cG,t),f=(0,u.usePathname)(),v=(0,c.useRef)(f),x=(0,g.q)(),{setActiveMenuItem:B,heightOffset:b,resetActiveMenuItem:F,activeMenuItemId:y}=(0,p.t)(),I=(0,c.useCallback)(n=>{"Escape"===n.key&&F()},[F]);(0,c.useEffect)(()=>(x&&document.addEventListener("keyup",I),()=>{document.removeEventListener("keyup",I)}),[I,x]);let R=(0,c.useCallback)(n=>{let{target:e}=n;e instanceof HTMLElement&&e.closest(".menu-item")&&v.current===f&&F()},[f,F]);return(0,o.jsxs)("nav",{role:"navigation",onClick:R,className:(0,l.A)("hidden sticky items-center m-0 lg:flex desktop-navigation gap-8justify-between desktop-menu-container navbar menu-content grow",{"is-hovering":!!y}),children:[(0,o.jsx)("div",{className:"flex gap-4 left-wrapper grow",children:(0,o.jsx)("div",{className:"flex flex-row gap-8 items-center menus shrink-0",children:a.map(n=>{switch(null==n?void 0:n.__typename){case"MenuRecord":{let{mainItem:e}=n;return(0,o.jsx)(h.W,{isActive:n.id===y,heightOffset:b,onMouseEnter:()=>{B(String(n.id))},onMouseLeave:F,menu:n,mainItem:e},String(n.id))}case"MenuItemRecord":return(0,o.jsx)(k.Dr,{hypeLinkProps:{className:"px-2 pb-1.5 no-sub-menu",highlightIfActive:!0,checkIfActive:!0},item:n},String(n.id))}})})}),(0,o.jsxs)("div",{className:(0,l.A)("flex gap-8 justify-end items-center right-wrapper grow shrink-0",{"gap-8":i&&s}),children:[i.length>0&&(0,o.jsx)("div",{className:"flex gap-4 items-center right-items",children:i.map(n=>{if((null==n?void 0:n.__typename)==="MenuItemRecord")return(0,o.jsx)(k.Dr,{onClick:F,item:n,hypeLinkProps:{checkIfActive:!0}},String(n.id))})}),s.length>0&&(0,o.jsx)("div",{className:"flex gap-4 items-center right-cta",children:s.map(n=>{if("MenuItemRecord"===n.__typename)return(0,o.jsx)(k.Dr,{onClick:F,item:n},String(n.id))})})]})]})};var v=t(5045),x=t(4269),B=t(4562),b=t(7650),F=t(9437);let y=n=>{var e,t;let{left:a,defaultMobileMenuActive:i,right:s,themeColor:h="light",bgColor:f,showRightSectionOnMobile:v}=n,x=(0,m.Bk)(d.Xi,a),y=(0,m.Bk)(d.qB,s),{heightOffset:R,isMobileOpen:_,setMobileOpen:P,toggleMobileOpen:w,activeMobileMenuId:S,setActiveMobileMenu:C}=(0,c.use)(p._3),M=(0,g.q)(),[j,N]=(0,c.useState)(0),A=i?null==(e=x.find(n=>{if("MenuRecord"===n.__typename){var e;return(null==(e=String(n.name||""))?void 0:e.toLowerCase())===String(i).toLowerCase()}return""}))?void 0:e.id:String(null==(t=x.at(0))?void 0:t.id),L=(0,u.usePathname)(),T=(0,c.useRef)(L),D=x.findIndex(n=>n.id===S),U=(0,c.useCallback)(()=>{let n=0;N(n=window.document.body.clientWidth)},[]),q=(0,c.useCallback)(n=>{let{target:e}=n;e instanceof HTMLElement&&e.closest(".menu-item")&&T.current===L&&P&&_&&P(!1)},[_,L,P]);(0,c.useEffect)(()=>{C(A)},[A,C]),(0,c.useEffect)(()=>(window&&(U(),window.addEventListener("resize",U)),()=>{window&&window.document&&window.removeEventListener("resize",U)}),[U]),(0,c.useEffect)(()=>{j>1024&&P(!1)},[_,P,j]);let H=x.length>0,$=j*D,V=x.filter(n=>"MenuRecord"===n.__typename),E=V.slice(0,2),O=V.slice(2),z=x.filter(n=>"MenuRecord"!==n.__typename),G=(0,l.A)("px-6 py-1 relative rounded-hype flex flex-col place-content-center cursor-pointer");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("nav",{role:"navigation",className:"flex m-0 lg:hidden mobile-navigation",children:[v&&y&&(0,o.jsx)("div",{className:"flex gap-8 justify-end mobile-right-wrapper grow shrink-0",children:(0,o.jsx)("div",{className:"flex gap-4 items-center right-mobile-items",children:y.map(n=>{if("MenuItemRecord"===n.__typename)return(0,o.jsx)(k.Dr,{item:n},String(n.id))})})}),H&&(0,o.jsx)(B.Ay,{onToggle:w,toggled:_,color:"light"===h?"white":"black",rounded:!0,label:"Menu",size:24})]}),M&&(0,b.createPortal)((0,o.jsxs)("div",{onClick:q,inert:!_,className:(0,l.A)("group mobile-nav","flex fixed right-0 left-0 flex-col lg:hidden mobile-menu-container z-[201]","transition-transform transition-discrete duration-700",{"translate-y-0 transition duration-700":_,"-translate-y-full !top-0 transition duration-700":!_}
1),style:{top:H?R-1:0,height:"calc(100svh - ".concat(R-1,"px)")},children:[(0,o.jsxs)("div",{style:{"--menu-items-bg":f},className:"flex overflow-y-auto p-4 menu-items inner grow-0 bg-grayscale-400",children:[(0,o.jsx)(I,{menu:E,isGrouped:!0,activeMenuId:S,onMenuClicked:C}),(0,o.jsx)(I,{menu:O,activeMenuId:S,onMenuClicked:C}),(0,o.jsx)("div",{className:"left-menu-items",children:z.map(n=>(0,o.jsx)(k.Dr,{item:{...n,hoverAnimation:"arrowAppearing",hoverEffect:"fontBold"},asNavItem:!0,simplifiedItem:!0,hypeLinkProps:{typographyProps:{noSpacing:!0,variant:"captionMedium",className:(0,l.A)(G,"!text-nowrap !overflow-hidden")}}},String(n.id)))})]}),(0,o.jsx)("div",{className:"flex flex-col flex-auto menu-container",children:(0,o.jsx)("div",{className:"flex flex-row transition-all duration-300 ease-in-out menu-bloks grow",style:{translate:"-".concat($,"px 0")},children:x.map(n=>{let e=(0,m.Bk)(d.Xi,n),t=e.id===S;if(!t||"MenuItemRecord"===e.__typename)return(0,o.jsx)("div",{className:"menu-block empty grid grid-rows-[auto] auto-rows-max relative shrink-0 ".concat(t?"active":""),style:{width:j}},String(e.id));let a=e.mobileItems,i=e.mobileCtas,c=(0,m.Bk)(r.SI,e.backgroundColor);return(0,o.jsxs)("div",{className:(0,l.A)("theme-color-".concat(e.colorTheme||"dark"," menu-block grid grid-rows-[auto] auto-rows-max relative shrink-0 ").concat(t?"active":""),"light"===h&&"bg-grayscale-100","dark"===h&&"bg-grayscale-400"),style:{width:j,backgroundColor:null==c?void 0:c.hex},children:[(0,o.jsxs)("div",{className:"overflow-y-auto gap-4 pb-4 h-0 min-h-full wrapper",children:[e&&e.mainItem&&(0,o.jsx)("div",{className:"flex p-4 grow-0 main-menu-item",children:(0,o.jsx)(k.Dr,{asNavItem:!0,item:e.mainItem},String(e.mainItem.id))}),(0,o.jsx)("div",{className:"flex-auto columns-wrapper",children:null==e?void 0:e.columns.map(n=>{let e=(0,m.Bk)(F.AC,n);return(0,o.jsx)("div",{className:"overflow-x-hidden py-3 px-4 lg:py-2 column-wrapper",children:(0,o.jsx)(F.Md,{asNavItems:!0,collapsibleGroups:!0,item:n,simplifiedItems:!0,withOffset:!0})},String(e.id))})}),a&&a.length>0&&(0,o.jsx)("div",{className:"px-4 right-menu-items",children:a.map(n=>{let e=(0,l.A)("rounded-hype flex flex-col place-content-center cursor-pointer");return(0,o.jsx)("div",{className:"py-1.5",children:(0,o.jsx)(k.Dr,{item:{...n},asNavItem:!0,hypeLinkProps:{typographyProps:{noSpacing:!0,className:e}}},String(n.id))},String(n.id))})})]}),(0,o.jsx)("div",{className:"overflow-x-hidden grid-cols-1 px-4 bg-grayscale-300 cta-wrapper grow-0",children:i&&i.length>0&&(0,o.jsx)("div",{className:"flex flex-col gap-4 pt-2 pb-4 stretch cta-menu-items",children:i.map(n=>{let e=(0,l.A)("px-4 py-2 relative flex justify-center");return(0,o.jsx)(k.Dr,{item:{...n},asNavItem:!0,hypeLinkProps:{className:"!inline-block w-full",typographyProps:{noSpacing:!0,className:e}}},String(n.id))})})})]},String(e.id))})})})]}),document.body)]})},I=n=>{let{menu:e,onMenuClicked:t,activeMenuId:a,isGrouped:i}=n,c=(0,m.Bk)(h.f,e);return(0,o.jsx)("div",{className:(0,l.A)("inner-menu flex flex-none p-y-2 rounded-hype",i&&"bg-grayscale-300"),children:(0,o.jsx)("div",{className:"flex flex-none p-y-2 rounded-hype",children:c.map(n=>{let e=String(n.id),c=e===a,s=(0,m.Bk)(r.SI,n.textFgColor),d=(0,m.Bk)(r.SI,n.textFgColorInactive),g=(0,m.Bk)(r.SI,n.textBgColor),u=(0,l.A)("!text-nowrap font-normal !overflow-hidden px-6 py-2 relative rounded-hype flex flex-col place-content-center cursor-pointer",{active:c,"!font-medium":i&&c});return(0,o.jsx)(v.o,{noSpacing:!0,variant:"linkSmall",component:"span",tabIndex:0,style:c?{backgroundColor:null==g?void 0:g.hex,color:null==s?void 0:s.hex,fontWeight:500}:{color:null==d?void 0:d.hex,fontWeight:400},onClick:()=>t&&t(e),onKeyUp:n=>{(0,x.V)(n)&&t&&t(e)},className:(0,l.A)(u),children:n.name},e)})})})},R=n=>{let{cta:e,left:t,showRightSectionOnMobile:r,right:a,themeColor:l="light",bgColor:i,defaultMobileMenuActive:c,planCta:s}=n,d=a;return s&&(d=[...a,s]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{left:t,showRightSectionOnMobile:r,right:d,themeColor:l,bgColor:i,defaultMobileMenuActive:c}
1),(0,o.jsx)(f,{themeColor:l,bgColor:i,left:t,cta:e,right:d})]})};var _=t(2638),P=t(4191);let w=n=>{let{data:e,planCta:t,className:m,style:g,offset:u,defaultMobileMenuActive:p,...h}=n,k=(0,a.B)(d.AH,e),f=(0,c.useRef)(null),{activeMenuItemId:v,heightOffset:x}=(0,s.t)(),[B,b]=(0,c.useState)(!1),F=(0,c.useCallback)(()=>{b(window.pageYOffset>x+10)},[x]);if((0,c.useEffect)(()=>(F(),window.addEventListener("scroll",F),()=>{window.removeEventListener("scroll",F)}),[F]),!e)return null;let{id:y,left:I,cta:w,logo:S,storageLogoImage:C,logoUrl:M,right:j,showRightSectionOnMobile:N,backgroudColor:A,colorTheme:L}=k,T=(0,a.B)(r.SI,A),D=(null==S?void 0:S.url)||C,U=(0,l.$)("transition-all hover:bg-(--bg-color-full)",{"!backdrop-filter-none !bg-(--bg-color-full)":!!v||!B,"bg-(--bg-color) backdrop-saturate-[180%] backdrop-blur-[20px] bg-(--bg-color) hover:bg-(--bg-color-full)":B&&!v}),q=(0,l.$)("min-h-[".concat(72,"px] w-full flex flex-row items-center just px-4 py-3 lg:py-[16px] gap-2 lg:gap-8  justify-between z-9999"),{["theme-color-".concat(L)]:!0},m);return(0,o.jsx)("div",{className:U,style:{"--bg-color":T.cssRgb,"--bg-color-full":T.hex},children:(0,o.jsx)(_.i,{children:(0,o.jsxs)("header",{role:"banner",id:"app-header","data-cms-id":y,className:q,ref:f,style:{...g},...h,children:[(0,o.jsx)("div",{className:"flex",children:!!D&&(0,o.jsx)(P.L,{trackTouchPoints:!0,href:M||"",children:(0,o.jsx)(i.default,{src:C||String(null==S?void 0:S.url),id:"app-logo",alt:"",width:(null==S?void 0:S.width)||44,height:(null==S?void 0:S.height)||44,className:"max-h-10",style:{height:40,width:"auto"}})})}),(0,o.jsx)(R,{offset:u,left:I,themeColor:L,bgColor:T.hex,right:j,showRightSectionOnMobile:N,cta:w,defaultMobileMenuActive:p,planCta:t})]})})})}},4813:(n,e,t)=>{Promise.resolve().then(t.t.bind(t,1356,23)),Promise.resolve().then(t.t.bind(t,8144,23)),Promise.resolve().then(t.t.bind(t,1402,23)),Promise.resolve().then(t.bind(t,8825)),Promise.resolve().then(t.bind(t,6523)),Promise.resolve().then(t.bind(t,366)),Promise.resolve().then(t.bind(t,897)),Promise.resolve().then(t.bind(t,2424)),Promise.resolve().then(t.bind(t,8293)),Promise.resolve().then(t.bind(t,2912)),Promise.resolve().then(t.bind(t,1722)),Promise.resolve().then(t.bind(t,2897)),Promise.resolve().then(t.bind(t,6442)),Promise.resolve().then(t.bind(t,4774)),Promise.resolve().then(t.bind(t,9324)),Promise.resolve().then(t.bind(t,3312)),Promise.resolve().then(t.bind(t,1741)),Promise.resolve().then(t.bind(t,859)),Promise.resolve().then(t.bind(t,4729)),Promise.resolve().then(t.t.bind(t,1256,23)),Promise.resolve().then(t.bind(t,8742)),Promise.resolve().then(t.bind(t,1871)),Promise.resolve().then(t.bind(t,6582)),Promise.resolve().then(t.bind(t,656)),Promise.resolve().then(t.bind(t,7779)),Promise.resolve().then(t.bind(t,3319)),Promise.resolve().then(t.bind(t,4809)),Promise.resolve().then(t.bind(t,418)),Promise.resolve().then(t.bind(t,3224)),Promise.resolve().then(t.bind(t,5491)),Promise.resolve().then(t.bind(t,3029)),Promise.resolve().then(t.bind(t,4137)),Promise.resolve().then(t.bind(t,7798)),Promise.resolve().then(t.bind(t,5633)),Promise.resolve().then(t.bind(t,3406)),Promise.resolve().then(t.bind(t,4060))},5451:(n,e,t)=>{"use strict";t.d(e,{AH:()=>s,Xi:()=>l,cG:()=>c,qB:()=>i});var o=t(1674),r=t(1469),a=t(7157);let l=(0,r.U)("\n    fragment HeaderLeftField on HeaderModelLeftField {\n      __typename\n      ... on MenuRecord {\n        mainItem {\n          ...MenuItemBlockFragment\n        }\n        ...MenuBlockFragment\n      }\n      ... on MenuItemRecord {\n        ...MenuItemBlockFragment\n      }\n    }\n  ",[a.fu,a.iV,a.iV]),i=(0,r.U)("\n    fragment HeaderRightField on MenuItemRecord {\n      __typename\n      ...MenuItemBlockFragment\n    }\n  ",[a.iV]),c=(0,r.U)("\n    fragment HeaderCtaField on MenuItemRecord {\n      __typename\n      ...MenuItemBlockFragment\n    }\n  ",[a.iV]),s=(0,r.U)("\n    fragment HeaderFragment on HeaderRecord {\n      id\n      __typename\n      name\n      backgroudColor {\n        ...ColorFragment\n      }\n      colorTheme\n      logo {\n        url\n        alt\n        width\n        title\n        height\n      }\n      logoUrl\n      storageLogoImage\n      left {\n        ...HeaderLeftField\n      }\n      right {\n        ...HeaderRightField\n      }\n      showRightSectionOnMobile\n      cta {\n        ...HeaderCtaField\n      }\n    }\n  ",[i,l,o.SI,c])},5491:(n,e,t)=>{"use strict";t.d(e,{PromotionContent:()=>x});var o=t(5155),r=t(1036),a=t(8575),l=t(5045),i=t(1674),c=t(9401),s=t(1469),d=t(2821),m=t(63),g=t(2115),u=t(9090),p=t(8999),h=t(7798);let k=n=>{let{onYearSelected:e,availableYears:t=[],selectedYear:r,colorTheme:a="dark"}=n,i=(0,g.useCallback)(n=>{e&&e(n)},[e]);return(0,o.jsx)(h.Carousel,{opts:{loop:!1},children:(0,o.jsx)(h.CarouselContent,{className:"flex flex-row gap-2",children:t.map(n=>{let e=n.toString()===(null==r?void 0:r.toString());return(0,o.jsx)(l.o,{onClick:()=>i(n),variant:"captionMedium",component:"button","aria-pressed":e,className:(0,d.$)("block text-nowrap",e&&"dark"===a&&"outline-grayscale-100 bg-grayscale-100 text-white","p-2 m-1 mb-10 tab-title outline-2 rounded-hype hover:scale-105 hover:shadow-hype transition-all cursor-pointer",e&&"light"===a&&"outline-white bg-white text-grayscale-100","p-2 m-1 mb-10 tab-title outline-2 rounded-hype hover:scale-105 hover:shadow-hype transition-all cursor-pointer"),children:n},n)})})})},f="category",v="year",x=n=>{var e,t;let{categories:h=[],themeColor:x,type:B="active",bgColor:b,isDraftModeEnabled:F=!1}=n,y=(0,s.B)(i.Co,h),I=(0,m.useSearchParams)(),R=I.get(f)||(null==(e=y.at(0))?void 0:e.id),_=I.get(v)||void 0,P=F?"47e2d014e24a715d7c1361e2137e9f":"7a49835038f0e080e0f841eda60bb5",[w,S]=(0,g.useState)(R),[C,M]=(0,g.useState)(!1),[j,N]=(0,g.useState)(!1),[A,L]=(0,g.useState)([]),[T,D]=(0,g.useState)([]),U=(0,g.useCallback)(async()=>{var n;let e={};w&&(e={AND:[{category:{allIn:w}},{endDate:{exists:!0}}]});let t=await (0,c.eW)(p.oh,{includeDrafts:F,token:P,variables:{filters:e}}),o=new Date(String((null==(n=(0,s.B)(p.OQ,t.allPromotions).at(0))?void 0:n.endDate)||"01-01-2018")).getFullYear();return Array.from(Array.from({length:new Date().getFullYear()-o+1},(n,e)=>o+e)).sort((n,e)=>e-n)},[F,P,w]),q=(0,g.useCallback)(async()=>{let n=!1;setTimeout(()=>{M(!n)},400);let e=new Date().toISOString().slice(0,10),t={AND:[{OR:[{endDate:{gte:e}},{endDate:{eq:null}}]},{OR:[{startDate:{lte:e}},{startDate:{eq:null}}]},{category:{allIn:w}}]};if("archive"===B){let n=await U();D(n);let e=_||n.at(0)||"1900",o=new Date,r=Number(e)===o.getFullYear()?o.getDate():31,a=Number(e)===o.getFullYear()?o.getMonth()+1:12,[l,i]=["01-01-".concat(e),"".concat(r,"-").concat(a,"-").concat(e)
1];t={AND:[{AND:[{endDate:{lt:i}},{endDate:{gte:l}}]},{category:{allIn:w}}]}}let o=await (0,c.eW)(p.L0,{token:P,includeDrafts:F,variables:{filters:t}});n=!0,L(o.allPromotions),M(!1),N(!0)},[F,_,w,B,P,U]);(0,g.useEffect)(()=>{q()},[q]);let H=(0,g.useCallback)((n,e)=>{let t=new URLSearchParams(I.toString());t.delete(f),t.set(f,n),e?t.set(v,String(e)):t.delete(v),window.history.pushState(null,"","?".concat(t.toString())),S(n)},[I]),$=_||(null==(t=T.at(0))?void 0:t.toString());return(0,o.jsxs)("div",{className:"promotion-content",children:[(0,o.jsx)("div",{className:"flex justify-center w-full category-switcher",children:(0,o.jsx)("div",{className:"flex flex-row justify-center mt-10 mb-4 bg-white lg:mb-14 rounded-hype-2xl actions",children:(y||[]).map(n=>{let{name:e,id:t,textColor:r,activeTextColor:a,activeBackgroundColor:c}=n,m=(0,s.B)(i.SI,r),g=(0,s.B)(i.SI,c),u=(0,s.B)(i.SI,a);return(0,o.jsx)(l.o,{"data-state":w===t?"active":"inactive",onClick:()=>H(t,void 0),className:(0,d.$)("category-tab","py-2 px-12 !my-0 category-title rounded-hype-2xl cursor-pointer"),variant:"linkSmall",component:"button","aria-pressed":w===t,style:{"--category-tab-fg-color":null==m?void 0:m.hex,"--category-tab-active-bg-color":null==g?void 0:g.hex,"--category-tab-active-fg-color":null==u?void 0:u.hex},children:e},t)})})}),"archive"!==B&&(0,o.jsx)("div",{className:"my-[24px]"}),"archive"===B&&(0,o.jsx)("div",{className:"my-[24px] overflow-hidden",children:(0,o.jsx)(k,{availableYears:T,selectedYear:$,onYearSelected:n=>H(w,n)})}),C&&(0,o.jsx)("div",{className:"flex justify-center items-center min-h-44",children:(0,o.jsx)(a.X,{variant:"circle",size:64})}),j&&0===A.length&&(0,o.jsx)("div",{className:"my-10",children:"archive"===B?"Non ci sono promozioni nel questo selezionato.":"Non ci sono promozioni per questa categoria."}),!C&&A.length>0&&(0,o.jsx)(r.l,{noBoxed:!0,bgColor:b,className:"flex flex-col gap-6 py-8 px-8 mb-6 rounded-hype-2xl",themeColor:x,children:(A||[]).map(n=>{let e=(0,s.B)(p.sA,n),{id:t,autoSubtitle:r,subtitle:a,startDate:l,endDate:i}=e,c=l?new Date(l).toLocaleDateString("it-IT"):"",d=i?new Date(i).toLocaleDateString("it-IT"):"",m=a;"auto"===r&&(c&&d&&(m="Valido dal ".concat(c," al ").concat(d)),c&&!d&&(m="Valido dal ".concat(c)),!c&&d&&(m="Valido fino al ".concat(d)));let g={...e,subtitle:m};return(0,o.jsxs)("div",{className:"flex flex-col gap-0 faq-item",children:[(0,o.jsx)(u.v,{data:g}),(0,o.jsx)("div",{className:"mb-0 w-full border-b h-[1px] faq-item-divider border-b-background-secondary"})]},t)})})]})}},8999:(n,e,t)=>{"use strict";t.d(e,{L0:()=>g,OQ:()=>s,dp:()=>m,oh:()=>u,sA:()=>d});var o=t(1674),r=t(1469),a=t(9671),l=t(972),i=t(9539),c=t(7157);let s=(0,r.U)("\n    fragment PromotionYearsFragment on PromotionRecord {\n      startDate\n      endDate\n    }\n  ",[]),d=(0,r.U)("\n    fragment PromotionFragment on PromotionRecord {\n      id\n      __typename\n      startDate\n      endDate\n      chip {\n        ...ChipBlockFragment\n      }\n      title\n      subtitle\n      autoSubtitle\n      category {\n        ...MainCategoryFragment\n      }\n      description {\n        value\n        blocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n        }\n        inlineBlocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on IconBlockRecord {\n            ...IconBlockFragment\n          }\n        }\n      }\n    }\n  ",[l.g,i.$,o.Co,c.iV]),m=(0,r.U)("\n    fragment FilteredPromotionFragment on PromotionBlockRecord {\n      id\n      __typename\n      viewType\n      styling {\n        ...StylingBlockFragment\n      }\n      categories {\n        ...MainCategoryFragment\n      }\n      heading {\n        ... on AutocenteredBlockRecord {\n          ...AutocenteredBlockFragment\n        }\n      }\n      extraContent {\n        ... on AutocenteredBlockRecord {\n          ...AutocenteredBlockFragment\n        }\n      }\n    }\n  ",[o.Co,a.D,o.ad,i.$]),g=(0,r.U)("\n    query promotionsByFilters($filters: PromotionModelFilter) {\n      allPromotions(filter: $filters, orderBy: startDate_DESC) {\
1n        ... on PromotionRecord {\n          ...PromotionFragment\n        }\n      }\n    }\n  ",[d]),u=(0,r.U)("\n    query promotionYears($filters: PromotionModelFilter) {\n      allPromotions(filter: $filters, orderBy: startDate_ASC, first: 1) {\n        ... on PromotionRecord {\n          ...PromotionYearsFragment\n        }\n      }\n    }\n  ",[s])},9090:(n,e,t)=>{"use strict";t.d(e,{O:()=>h,v:()=>k});var o=t(5155),r=t(5050),a=t(2446),l=t(1469),i=t(4060),c=t(7644),s=t(4706),d=t(1438),m=t(972),g=t(9539),u=t(7157),p=t(1722);let h=(0,l.U)("\n    fragment AccordionBlockFragment on AccordionItemRecord {\n      id\n      chip {\n        id\n        __typename\n        ... on ChipBlockRecord {\n          id\n          ...ChipBlockFragment\n        }\n      }\n      title\n      paddedContent\n      subtitle\n      expanded\n      collapsible\n      description {\n        value\n        blocks {\n          __typename\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n        }\n        inlineBlocks {\n          __typename\n          ... on RecordInterface {\n            id\n          }\n          ... on MenuItemRecord {\n            id\n            ...MenuItemBlockFragment\n          }\n          ... on IconBlockRecord {\n            id\n            ...IconBlockFragment\n          }\n        }\n      }\n    }\n  ",[u.iV,g.$,m.g]),k=n=>{let{data:e,titleProps:t,bodyVariant:k="body"}=n;if(!e)return null;let{title:f,paddedContent:v,collapsible:x,expanded:B,chip:b,subtitle:F,description:y}=(0,l.B)(h,e),I=(0,l.B)(m.g,b);return(0,o.jsxs)("div",{className:"accordion-block",children:[I&&(0,o.jsx)("div",{className:"mb-2",children:(0,o.jsx)(m.I,{data:I})}),(0,o.jsx)(p.AccordionContent,{title:f,paddedContent:v,titleProps:t,collapsible:x,subtitle:F,expanded:B,children:(0,o.jsx)(s.d6,{data:y,customMarkRules:r.i,renderBlock:n=>{let{record:e}=n;return"MenuItemRecord"===e.__typename?(0,o.jsx)(u.Dr,{item:e,wrapperProps:{className:"block mt-0 mb-2"}},String(e.id)):null},renderInlineBlock:n=>{let{record:e}=n,t=String(e.id);switch(e.__typename){case"IconBlockRecord":return(0,o.jsx)(g.V,{data:e,className:"inline-block"},t);case"MenuItemRecord":return(0,o.jsx)(u.Dr,{item:e,wrapperProps:{className:"my-2"}},String(e.id));default:return null}},customNodeRules:[(0,d.bq)(c.PJ,n=>{let{node:e,key:t,children:r}=n;return(0,o.jsx)(i.RenderLinkNodeRule,{linkNode:e,children:r},t)}),(0,d.bq)(c.Vq,n=>(0,a.kg)(n,{className:"!mb-0"})),(0,d.bq)(c.Vs,n=>(0,a.OJ)(n,{variant:k,className:"!mb-0"})),(0,d.bq)(c.Lv,n=>{let{node:e,children:t,key:o}=n;return(0,a.rN)(e,t,o)})]})})]})}},9401:(n,e,t)=>{"use strict";t.d(e,{eW:()=>a});var o=t(2005),r=t(5704);async function a(n,e){let t=null==e?void 0:e.token;return t||(t=(null==e?void 0:e.includeDrafts)?r.env.DATOCMS_DRAFT_CONTENT_CDA_TOKEN:r.env.DATOCMS_PUBLISHED_CONTENT_CDA_TOKEN),await (0,o.e)(n,{variables:null==e?void 0:e.variables,excludeInvalid:!0,returnCacheTags:!0,includeDrafts:null==e?void 0:e.includeDrafts,token:t,requestInitOptions:{cache:(null==e?void 0:e.cache)||"force-cache",next:{revalidate:3600,tags:["datocms"]}}})}}}]);

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.