PageSourceSearch

https://www.alphatest.it/_next/static/chunks/3480-894772dc3f739333.js

js alphatest.it collected 2026-10-01 14:05:37 UTC 602,503 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3480],{23997:function(e,t,n){n.d(t,{Dh:function(){return applyDiscountToCart},Kv:function(){return createCartBook},O1:function(){return getSingleProductByHandle},Xq:function(){return addToCart},Zs:function(){return getCheckoutUrl},wv:function(){return getProduct},zQ:function(){return createCartCourse}});var r=n(82729),i=n(61612),l=n(80108);function _templateObject1(){let e=(0,r._)(['\n    query getSingleProductByHandle($handle: String!) {\n      productByHandle(handle: $handle) {\n        id\n        title\n        tags\n        descriptionHtml\n        description\n        featuredImage {\n          altText\n          height\n          width\n          url\n        }\n        images(first: 20) {\n          edges {\n            node {\n              altText\n              height\n              width\n              url\n            }\n          }\n        }\n        productType\n        totalInventory\n        handle\n        priceRange {\n          minVariantPrice {\n            amount\n            currencyCode\n          }\n          maxVariantPrice {\n            amount\n            currencyCode\n          }\n        }\n        metafields(\n          identifiers: [\n            {namespace: "custom", key: "removeBooksDiscount"},\n            {namespace: "custom", key: "upsellItems"},\n            {namespace: "custom", key: "includedBooks"},\n            {namespace: "custom", key: "freeItems"},\n            {namespace: "custom", key: "isOnlineOnly"}\n          ]\n        ) {\n          key\n          value,\n          type\n        }\n        variants(first: 100) {\n          nodes {\n            id\n            availableForSale\n            title\n            sku\n            price {\n              amount\n              currencyCode            \n            }\n            compareAtPrice {\n              amount\n              currencyCode\n            }\n            selectedOptions {\n              name\n              value\n            }\n            metafields(\n              identifiers: [\n                {namespace: "custom", key: "cityName"},\n                {namespace: "custom", key: "isOffline"},\n                {namespace: "custom", key: "startDate"},\n                {namespace: "custom", key: "noPromoVariant"},\n                {namespace: "custom", key: "isEarlyBird"},\n                {namespace: "custom", key: "endPromoDate"},\n                {namespace: "custom", key: "classSchedule"},\n                {namespace: "custom", key: "referenceTestSession"},\n                {namespace: "custom", key: "earlyBirdPrice"},\n                {namespace: "custom", key: "endSignupDate"},\n                {namespace: "custom", key: "hideTagEarlyBird"}\n              ]\n            ) {\n              key\n              value,\n              type\n            }\n            quantityAvailable\n          }\n        }  \n      }\n    } \n  ']);return _templateObject1=function(){return e},e}function _templateObject5(){let e=(0,r._)(["\n    mutation createCart($cartInput: CartInput) {\n      cartCreate(input: $cartInput) {\n        cart {\n          id\n        }\n      }\n    }\n  "]);return _templateObject5=function(){return e},e}function _templateObject8(){let e=(0,r._)(["\n    query getProduct($id: ID!) {\n      product(id: $id) {\n        id\n        title\n        tags\n        descriptionHtml\n        description\n        featuredImage {\n          altText\n          height\n          width\n          url\n        }\n        images(first: 20) {\n          edges {\n            node {\n              altText\n              height\n              width\n              url\n            }\n          }\n        }\n        productType\n        handle\n        variants(first: 1) {\n          nodes {\n            id\n            availableForSale\n            title\n            sku\n            price {\n              amount\n              currencyCode\n            }\n            compareAtPrice {\n              amount\n              currencyCode\n            }\n          }\n        }\n      }\n    }\n  "]);
1return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,r._)(["\n    query checkoutURL($cartId: ID!) {\n      cart(id: $cartId) {\n        checkoutUrl\n      }\n    }\n  "]);return _templateObject9=function(){return e},e}function _templateObject13(){let e=(0,r._)(["\n    mutation cartCreate($input: CartInput) {\n      cartCreate( input: $input ) {\n        cart {\n          id\n          createdAt\n          updatedAt\n          lines(first: 10) {\n            edges {\n              node {\n                id\n                merchandise {\n                  ... on ProductVariant {\n                    id\n                  }\n                }\n              }\n            }\n          }\n          buyerIdentity {\n            deliveryAddressPreferences {\n              __typename\n            }\n            preferences {\n              delivery {\n                deliveryMethod\n              }\n            }\n          }\n          attributes {\n            key\n            value\n          }\n          # The estimated total cost of all merchandise that the customer will pay at checkout.\n          cost {\n            totalAmount {\n              amount\n              currencyCode\n            }\n            # The estimated amount, before taxes and discounts, for the customer to pay at checkout.\n            subtotalAmount {\n              amount\n              currencyCode\n            }\n            # The estimated tax amount for the customer to pay at checkout.\n            totalTaxAmount {\n              amount\n              currencyCode\n            }\n            # The estimated duty amount for the customer to pay at checkout.\n            totalDutyAmount {\n              amount\n              currencyCode\n            }\n          }\n        }\n      }\n    }\n  "]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,r._)(["\n    mutation cartCreate($input: CartInput) {\n      cartCreate( input: $input ) {\n        cart {\n          id\n          createdAt\n          updatedAt\n          lines(first: 10) {\n            edges {\n              node {\n                id\n                merchandise {\n                  ... on ProductVariant {\n                    id\n                  }\n                }\n              }\n            }\n          }\n          buyerIdentity {\n            deliveryAddressPreferences {\n              __typename\n            }\n            preferences {\n              delivery {\n                deliveryMethod\n              }\n            }\n          }\n          attributes {\n            key\n            value\n          }\n          # The estimated total cost of all merchandise that the customer will pay at checkout.\n          cost {\n            totalAmount {\n              amount\n              currencyCode\n            }\n            # The estimated amount, before taxes and discounts, for the customer to pay at checkout.\n            subtotalAmount {\n              amount\n              currencyCode\n            }\n            # The estimated tax amount for the customer to pay at checkout.\n            totalTaxAmount {\n              amount\n              currencyCode\n            }\n            # The estimated duty amount for the customer to pay at checkout.\n            totalDutyAmount {\n              amount\n              currencyCode\n            }\n          }\n        }\n      }\n    }\n  "]);return _templateObject14=function(){return e},e}function _templateObject19(){let e=(0,r._)(["\n    mutation cartDiscountCodesUpdate($cartId: ID!, $discountCodes: [String!]) {\n      cartDiscountCodesUpdate(cartId: $cartId, discountCodes: $discountCodes) {\n        cart {\n          id\n          discountCodes {\n            code\n            applicable\n          }\n          cost {\n            totalAmount {\n              amount\n              currencyCode\n            }\n            subtotalAmount {\n              amount\n              currencyCode\n            }\n            totalTaxAmount {\n              amount\n              currencyCode\n            }\n            totalDutyAmount {\n              amount\n              currencyCode\n            }\n          }\n        }\n        userErrors {\n          field\n          message\n        }\n      }\n    }\n  "]);
1return _templateObject19=function(){return e},e}let a=(0,i.v)({storeDomain:"https://checkout.alphatest.it",storefrontApiVersion:"2024-10"}),o=a.getStorefrontApiUrl;a.getPublicTokenHeaders,a.getPrivateTokenHeaders;let s=new l.g6(o(),{headers:{"X-Shopify-Storefront-Access-Token":"13c23fcde72e94f5c29c626d7d50ac96","Content-Type":"application/json"}}),getSingleProductByHandle=async e=>{let t=(0,l.Ps)(_templateObject1());try{let n=await s.request(t,{handle:e});return n}catch(e){console.error(e)}},addToCart=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;console.log("API addToCart custom");let i=(0,l.Ps)(_templateObject5()),a={cartInput:{lines:[{quantity:parseInt(t),merchandiseId:e}],...r?{attributes:[{key:"hsdcid",value:r}]}:{}}};if(n.length){let e=[];n.forEach(t=>{var n;e.push({quantity:1,merchandiseId:null===(n=t.shopifyProduct)||void 0===n?void 0:n.variants[0].admin_graphql_api_id})}),a.cartInput.lines=[...e,...a.cartInput.lines]}try{let e=await s.request(i,a);return console.log(e),e}catch(e){console.error(e)}},getProduct=async e=>{console.log("API getProduct");let t=(0,l.Ps)(_templateObject8());try{let n=await s.request(t,{id:e});return console.log(n),n.product}catch(e){console.error(e)}},getCheckoutUrl=async e=>{let t=(0,l.Ps)(_templateObject9());try{let n=await s.request(t,{cartId:e});return console.log(n),n}catch(e){console.error(e)}},createCartCourse=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};console.log("API createCartCourse",e);let{email:r,address1:i,city:a,country:o,firstName:c,lastName:d,province:u,zip:p,courseName:m,variantId:h,freeItems:g,coursistData:f,upsellItems:b,supportMaterial:y,includedBooks:_,phone:x,bookGifts:j=[]}=e,v=e.lines,C=(0,l.Ps)(_templateObject13()),w={input:{lines:[{quantity:1,merchandiseId:h}],buyerIdentity:{email:r,countryCode:o.toUpperCase(),deliveryAddressPreferences:{deliveryAddress:{address1:i,city:a,province:u,country:o.toUpperCase(),firstName:c,lastName:d,phone:x,zip:p}}},attributes:[{key:"tipoDiCorso",value:m},...Object.keys(f).map(e=>({key:"coursist.".concat(e),value:f[e]})),...e.hsdcid?[{key:"hsdcid",value:e.hsdcid}]:[]]}};if(g&&g.length>0&&w.input.lines.push(...g.map(e=>({quantity:1,merchandiseId:e.variants.nodes[0].id}))),b&&b.length>0&&w.input.lines.push(...b.map(e=>({quantity:e.quantity,merchandiseId:e.variantId}))),v&&v.length>0&&w.input.lines.push(...v.map(e=>({quantity:e.quantity,merchandiseId:e.merchandise.id}))),y&&y.length>0){let e=y.map(e=>{var t,n;if(null==e?void 0:null===(n=e.shopifyProduct)||void 0===n?void 0:null===(t=n.variants[0])||void 0===t?void 0:t.admin_graphql_api_id)return{quantity:1,merchandiseId:e.shopifyProduct.variants[0].admin_graphql_api_id}});e.filter(e=>void 0!==e).length>0&&w.input.lines.push(...e)}if(j&&j.length>0){let e=j.map(e=>{var t,n;if(null==e?void 0:null===(n=e.shopifyProduct)||void 0===n?void 0:null===(t=n.variants[0])||void 0===t?void 0:t.admin_graphql_api_id)return{quantity:1,merchandiseId:e.shopifyProduct.variants[0].admin_graphql_api_id}});e.filter(e=>void 0!==e).length>0&&w.input.lines.push(...e)}if(_&&_.length>0){let e=_.map(e=>{var t,n;if(null==e?void 0:null===(n=e.shopifyProduct)||void 0===n?void 0:null===(t=n.variants[0])||void 0===t?void 0:t.admin_graphql_api_id)return{quantity:1,merchandiseId:e.shopifyProduct.variants[0].admin_graphql_api_id}});e.filter(e=>void 0!==e).length>0&&w.input.lines.push(...e)}try{var O,S;let e;let n=await s.request(C,w);if(console.log("GRAPHQL -> createCartCourse",n),!(null==n?void 0:null===(S=n.cartCreate)||void 0===S?void 0:null===(O=S.cart)||void 0===O?void 0:O.id))throw Error("Unable to crate cart");e=await getCheckoutUrl(n.cartCreate.cart.id);let r={id:n.cartCreate.cart.id,webUrl:e.cart.checkoutUrl};t(r)}catch(e){console.error(e),t({errors:[{code:"CART_ERROR",message:"Unable to crate cart"}]}),n("checkoutCreate")}},createCartBook=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>console.log("fired"),a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>console.log("fired");console.log("API createCartBook",e);let{email:o,address1:c,city:d,country:u,firstName:p,lastName:m,province:h,zip:g,coursistData:f,phone:b}
1=e,y=(0,l.Ps)(_templateObject14()),_={input:{lines:t.map(e=>({merchandiseId:e.merchandise.id,quantity:e.quantity})),buyerIdentity:{email:o,countryCode:u.toUpperCase(),deliveryAddressPreferences:{deliveryAddress:{address1:c,city:d,province:h,country:u.toUpperCase(),firstName:p,lastName:m,phone:b,zip:g}}},attributes:[...Object.keys(f).map(e=>({key:"coursist.".concat(e),value:f[e]})),...e.hsdcid?[{key:"hsdcid",value:e.hsdcid}]:[]]}};if(r&&r.length>0){let e=r.map(e=>{var t,n;if(null==e?void 0:null===(n=e.shopifyProduct)||void 0===n?void 0:null===(t=n.variants[0])||void 0===t?void 0:t.admin_graphql_api_id)return{merchandiseId:e.shopifyProduct.variants[0].admin_graphql_api_id,quantity:1}});e.filter(e=>void 0!==e).length>0&&_.input.lines.push(...e)}try{var x,j;let e;let t=await s.request(y,_);if(!(null==t?void 0:null===(j=t.cartCreate)||void 0===j?void 0:null===(x=j.cart)||void 0===x?void 0:x.id))throw Error("Unable to crate cart");e=await getCheckoutUrl(t.cartCreate.cart.id),i(e.cart.checkoutUrl)}catch(e){console.log(e),a({errors:[{code:"CART_ERROR",message:"Unable to crate cart"}]})}},applyDiscountToCart=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};console.log("API applyDiscountToCart");let r=(0,l.Ps)(_templateObject19());try{let i=await s.request(r,{cartId:e,discountCodes:[t]});return console.log("Discount applied:",i),n(),i}catch(e){throw console.error("Error applying discount code:",e),e}}},30173:function(e,t,n){n.d(t,{yz:function(){return icons_DoubleCheckIcon},Yj:function(){return icons_FeatureCheckIcon},zb:function(){return icons_LineIcon}});var r=n(85893),icons_FeatureCheckIcon=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",ariaHidden:"true",style:{marginTop:"0.5px"},children:(0,r.jsx)("path",{d:"M8.53125 0C6.84393 0 5.1945 0.500349 3.79155 1.43777C2.38859 2.3752 1.29512 3.7076 0.649407 5.26648C0.00369646 6.82536 -0.165251 8.54071 0.163929 10.1956C0.49311 11.8505 1.30563 13.3706 2.49875 14.5638C3.69187 15.7569 5.21199 16.5694 6.86689 16.8986C8.52179 17.2278 10.2371 17.0588 11.796 16.4131C13.3549 15.7674 14.6873 14.6739 15.6247 13.271C16.5622 11.868 17.0625 10.2186 17.0625 8.53125C17.0601 6.26935 16.1605 4.10079 14.5611 2.50138C12.9617 0.901981 10.7931 0.0023886 8.53125 0ZM12.2768 7.0268L7.68305 11.6205C7.6221 11.6816 7.54973 11.73 7.47006 11.763C7.39039 11.796 7.305 11.813 7.21875 11.813C7.13251 11.813 7.04712 11.796 6.96745 11.763C6.88778 11.73 6.8154 11.6816 6.75446 11.6205L4.78571 9.6518C4.66257 9.52866 4.59339 9.36164 4.59339 9.1875C4.59339 9.01336 4.66257 8.84634 4.78571 8.7232C4.90885 8.60006 5.07586 8.53088 5.25 8.53088C5.42415 8.53088 5.59116 8.60006 5.7143 8.7232L7.21875 10.2285L11.3482 6.0982C11.4092 6.03723 11.4816 5.98886 11.5612 5.95587C11.6409 5.92287 11.7263 5.90589 11.8125 5.90589C11.8987 5.90589 11.9841 5.92287 12.0638 5.95587C12.1434 5.98886 12.2158 6.03723 12.2768 6.0982C12.3378 6.15918 12.3861 6.23156 12.4191 6.31122C12.4521 6.39089 12.4691 6.47627 12.4691 6.5625C12.4691 6.64873 12.4521 6.73411 12.4191 6.81378C12.3861 6.89344 12.3378 6.96582 12.2768 7.0268Z",fill:"#338E54"})}),icons_LineIcon=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"2",viewBox:"0 0 17 2",fill:"none",ariaHidden:"true",children:(0,r.jsx)("path",{d:"M16.1925 0.674688C16.1925 0.853626 16.1214 1.02524 15.9949 1.15176C15.8684 1.27829 15.6968 1.34938 15.5178 1.34938H0.674688C0.495749 1.34938 0.32414 1.27829 0.197612 1.15176C0.0710831 1.02524 0 0.853626 0 0.674688C0 0.495749 0.0710831 0.32414 0.197612 0.197612C0.32414 0.0710831 0.495749 0 0.674688 0H15.5178C15.6968 0 15.8684 0.0710831 15.9949 0.197612C16.1214 0.32414 16.1925 0.495749 16.1925 0.674688Z",fill:"#999999"})}),icons_DoubleCheckIcon=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"9",viewBox:"0 0 21 9",fill:"none",ariaHidden:"true",children:(0,r.jsx)("path",{d:"M12.3908 1.18687L4.55092 8.80127C4.42 8.92863 4.2437 9 4.06005 9C3.8764 9 3.70011 8.92863 3.56918 8.80127L0.209227 5.53833C0.143674 5.47458 0.0914587 5.39869 0.0555638 5.31499C0.
10196688 5.23129 0.000796555 5.14142 2.46763e-05 5.0505C-0.000747202 4.95959 0.0165963 4.86942 0.051065 4.78513C0.0855338 4.70085 0.136453 4.6241 0.200915 4.55927C0.265376 4.49445 0.342119 4.44281 0.42676 4.40732C0.511401 4.37182 0.602283 4.35316 0.694218 4.35239C0.786153 4.35163 0.877339 4.36878 0.962571 4.40287C1.0478 4.43695 1.12541 4.48731 1.19096 4.55105L4.06005 7.33723L11.41 0.19873C11.5425 0.0699895 11.7213 -0.00142471 11.907 0.00019799C11.999 0.00100147 12.0899 0.0197116 12.1746 0.0552605C12.2592 0.0908094 12.336 0.142501 12.4004 0.207383C12.4649 0.272265 12.5158 0.349068 12.5503 0.433406C12.5847 0.517744 12.602 0.607966 12.6012 0.698919C12.6004 0.789873 12.5815 0.879778 12.5455 0.963501C12.5096 1.04722 12.4573 1.12313 12.3917 1.18687H12.3908ZM20.7995 0.207383C20.735 0.142452 20.6583 0.0907175 20.5736 0.0551377C20.489 0.0195579 20.398 0.000830625 20.306 2.70106e-05C20.214 -0.000776604 20.1228 0.0163589 20.0375 0.050454C19.9522 0.084549 19.8746 0.134935 19.809 0.19873L12.4591 7.33723L10.8115 5.73648C10.679 5.60785 10.5002 5.53655 10.3145 5.53825C10.1289 5.53995 9.95149 5.61453 9.82142 5.74556C9.69135 5.8766 9.61924 6.05336 9.62097 6.23697C9.62269 6.42058 9.6981 6.59599 9.83061 6.72462L11.9682 8.80127C12.0991 8.92863 12.2754 9 12.4591 9C12.6427 9 12.819 8.92863 12.9499 8.80127L20.7898 1.18687C20.8556 1.12321 20.9079 1.04736 20.944 0.963668C20.9801 0.879973 20.9991 0.79007 21 0.6991C21.0009 0.608131 20.9836 0.517879 20.9492 0.433507C20.9148 0.349134 20.8639 0.272295 20.7995 0.207383Z",fill:"#409488"})})},5974:function(e,t,n){n.d(t,{Z:function(){return Form_FormFieldset}});var r={};n.r(r),n.d(r,{Input:function(){return FormFields_Input},InputGroup:function(){return P},Select:function(){return Select},Textarea:function(){return FormFields_Textarea}});var i=n(85893),l=n(67294),a=n(8236),o=n(5329),s=n(93945),c=n(82580),d=n(40887),u=n(82729),p=n(37946);function _templateObject(){let e=(0,u._)(["\n  width: 100%;\n  margin-bottom: ",";\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,u._)(["\n  display: block;\n\n  ",";\n  \n  position: absolute;\n  top: calc(50% + ",");\n  left: 0;\n  transform: translateY(-50%);\n  transition: all 0.2s ease;\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,u._)(["\n        &:focus {\n          box-shadow: inset 0px -2px 0px 0px;\n        }\n      "]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,u._)(["\n        background-color: ",";\n        color: ",";\n        border-color: ",";\n      "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,u._)(["\n  position: relative;\n  \n  /**\n   * Input & Textarea \n   */\n  input:not([type='checkbox']):not([type='radio']),\n  textarea,\n  select {\n    width: 100%;\n    padding: ",";\n\n    font-family: inherit;\n    ",";\n\n    color: ",";\n    background-color: ",";\n    border: 0px;\n    box-shadow: inset 0px -1px 0px 0px ",';\n    transition: box-shadow 0.2s linear;\n\n    &:not([disabled]),\n    &:not([aria-disabled="true"]) {\n      ',"\n\n      &:focus,\n      &:not(:placeholder-shown) {\n        & ~ "," {\n          ",";\n          color: ",";\n          top: ",";\n          left: 0;\n          transform: translateY(0);\n        }\n      }\n    }\n\n    &:disabled {\n      opacity: 0.3;\n      cursor: not-allowed;\n    }\n\n    &:-webkit-autofill,\n    &:-webkit-autofill:hover, \n    &:-webkit-autofill:focus, \n    &:-webkit-autofill:active {\n      -webkit-background-clip: text;\n      -webkit-text-fill-color: ",";\n      transition: background-color 500000s ease-in-out 0s;\n      box-shadow: inset 0px -1px 0px 0px ",";\n    }\n  }\n\n  /**\n   * Select\n   */\n  .custom-select {\n    &__control {\n      box-shadow: inset 0px -1px 0px 0px ",";\n\n      &:hover {\n        border: '0';\n      }\n\n      &:focus-within {\n        box-shadow: inset 0px -2px 0px 0px ",";\n      }\n    }\n\n    &__placeholder,\n    &__dropdown-indicator,\n    &__indicator,\n    &__single-value {\n      color: ",";\n    }\n\n    &__multi-value__remove {\n      background-color: ",";\n    }\n\n    &__dropdown-indicator,\n    &__indicator {\n      &:hover,\n      &:focus {\n        color: ",";\n      }\n    }\n  }\n\n  "," {\n    left: ",";\n    color: ",";\n  }\n\n  /**\n   * Textarea \n   */\n  textarea {\n    min-width: 100%;\n\n    & ~ "," {\n      top: ",';\n      transform: translateY(0);\n    }\n\n    &:disabled {\n      resize: none;\n    }\n  }\n\n  /**\n   * Date\n   */\n  input[type="date"] {\n    &::-webkit-calendar-picker-indicator {\n      background-color: white;\n    }\n  }\n\n  /**\n   * File \n   */\n  input[type="file"] {\n    cursor: pointer;\n\n    ::-webkit-file-upload-button {\n      padding: ',";\n      margin: ",";\n      border: 1px solid;\n      border-radius: ",";\n      ","\n      cursor: pointer;\n    }\n  }\n"]);
1return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,u._)(["\n    opacity: 0.3;\n  "]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,u._)(["\n  display: flex;\n  flex-direction: column;\n  margin-top: ",";\n\n  ","\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,u._)(["\n  display: flex;\n  align-items: center;\n  \n  ",";\n\n  color: ",";\n\n  &:not(:last-child) {\n    margin-top: ",";\n  }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,u._)(["\n  position: absolute;\n  top: calc(50% + 8px);\n  transform: translateY(-50%);\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,u._)(["\n  left: 0;\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,u._)(["\n  right: 0;\n"]);return _templateObject10=function(){return e},e}let m=p.ZP.div.withConfig({componentId:"sc-6945d7fc-0"})(_templateObject(),e=>{let{theme:t}=e;return t.rem(24)}),h=p.ZP.label.withConfig({componentId:"sc-6945d7fc-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.typo("paragraphLG")},e=>{let{theme:t}=e;return t.rem(8)}),g=p.ZP.div.withConfig({componentId:"sc-6945d7fc-2"})(_templateObject4(),e=>{let{theme:t,iconStart:n,iconEnd:r}=e;return t.rem(24,r?24:0,8,n?24:0)},e=>{let{theme:t}=e;return t.typo("paragraphLG")},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.backgroundColor},e=>{let{theme:t,colorScheme:n}=e;return t.styledVariant("error",{true:t.colors.status.error.default,false:t.colorScheme[n].surface.textSecondary})},e=>{let{error:t}=e;return!t&&(0,p.iv)(_templateObject2())},h,e=>{let{theme:t}=e;return t.typo("paragraphXS")},e=>{let{theme:t,colorScheme:n}=e;return t.styledVariant("error",{true:t.colors.status.error.default,false:t.colorScheme[n].surface.textSecondary})},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.styledVariant("error",{true:t.colors.status.error.default,false:t.colorScheme[n].surface.textSecondary})},e=>{let{theme:t,colorScheme:n}=e;return t.styledVariant("error",{true:t.colors.status.error.default,false:t.colorScheme[n].surface.textSecondary})},e=>{let{theme:t,colorScheme:n}=e;return t.styledVariant("error",{true:t.colors.status.error.default,false:t.colorScheme[n].surface.textSecondary})},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textSecondary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textSecondary},h,e=>{let{theme:t,iconStart:n}=e;return n?t.rem(24):0},e=>{let{theme:t,colorScheme:n}=e;return t.styledVariant("error",{true:t.colors.status.error.default,false:t.colorScheme[n].surface.textPrimary})},h,e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(12,32)},e=>{let{theme:t}=e;return t.rem(8,8,0,0)},e=>{let{theme:t}=e;return t.rem(100)},e=>{let{theme:t,colorScheme:n}=e;return(0,p.iv)(_templateObject3(),t.colorScheme["".concat(n)].button.primaryDefaultBackground,t.colorScheme["".concat(n)].surface.textPrimary,t.colorScheme["".concat(n)].button.primaryStrokeColor)}),f=p.ZP.div.withConfig({componentId:"sc-6945d7fc-3"})(_templateObject6(),e=>{let{theme:t}=e;return t.rem(4)},e=>{let{disabled:t}=e;return t&&(0,p.iv)(_templateObject5())}),b=p.ZP.div.withConfig({componentId:"sc-6945d7fc-4"})(_templateObject7(),e=>{let{theme:t}=e;return t.typo("paragraphSM")},e=>{let{theme:t,colorScheme:n}=e;return t.styledVariant("error",{true:t.colors.status.error.default,false:n?t.colorScheme[n].surface.textSecondary:null})},e=>{let{theme:t}=e;return t.rem(4)}),y=p.ZP.i.withConfig({componentId:"sc-6945d7fc-5"})(_templateObject8()),_=(0,p.ZP)(y).withConfig({componentId:"sc-6945d7fc-6"})(_templateObject9()),x=(0,p.ZP)(y).withConfig({componentId:"sc-6945d7fc-7"})(_templateObject10());var j=(0,l.memo)(e=>{var t;let{id:n=null,type:r,label:o,iconStart:s,iconEnd:c,hints:u=[],field:p,meta:{touched:y,error:j}={},children:v}=e,C=(null===(t=(0,l.useContext)(a.x))||void 0===t?void 0:t.selectedColorScheme)||"white",w=(0,l.useCallback)(()=>u.map((e,t)=>(0,i.jsx)(b,{colorScheme:C,children:(0,i.jsx)("span",{children:e.text})},"form-field-hint-".concat(n,"-").concat(t))),[u,n,C]);return(0,i.jsxs)(m,{children:[(0,i.jsxs)(g,{error:y&&!!j,iconStart:s,iconEnd:c,colorScheme:C,children:[s?(0,i.jsx)(_,{as:d.Z,name:s}):null,v,c?(0,i.jsx)(x,{as:d.Z,name:c}):null,o&&"select"!==r&&(0,i.jsx)(h,{htmlFor:n,children:o})]}),u.length>0||y&&j?(0,i.jsx)(f,{children:j?(0,i.jsx)(b,{error:!0,role:"alert",children:j}):w()}):null]})}),FormFields_Input=e=>{let{label:t,hints:n,iconStart:r,iconEnd:l,...a}=e,[o,s]=(0,c.U$)(a);return(0,i.jsx)(j,{id:a.id,type:a.type,label:t,hints:n,iconStart:r,iconEnd:l,field:o,meta:s,children:(0,i.jsx)("input",{id:o.name,...o,...a})})},FormFields_Textarea=e=>{let{label:t,hints:n,...r}=e,[l,a]=(0,c.U$)(r);return(0,i.jsx)(j,{id:r.id,type:r.type,label:t,hints:n,field:l,meta:a,children:(0,i.jsx)("textarea",{id:l.name,rows:"5",...l,...r})})},v=n(21810);
1function styles_templateObject(){let e=(0,u._)(["\n  margin-bottom: ",";\n"]);return styles_templateObject=function(){return e},e}function styles_templateObject1(){let e=(0,u._)([""]);return styles_templateObject1=function(){return e},e}function styles_templateObject2(){let e=(0,u._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  border-bottom: 1px solid ",";\n  padding-bottom: ",";\n  cursor: pointer;\n\n  "," {\n    span {\n      background-color: ",";\n    }\n  }\n"]);return styles_templateObject2=function(){return e},e}function styles_templateObject3(){let e=(0,u._)(["\n    height: auto;\n  "]);return styles_templateObject3=function(){return e},e}function styles_templateObject4(){let e=(0,u._)(["\n  height: 0;\n  overflow: hidden;\n\n  ","\n"]);return styles_templateObject4=function(){return e},e}function styles_templateObject5(){let e=(0,u._)(["\n        background-color: ",";\n        color: ",";\n        border: 1px solid ",";\n      "]);return styles_templateObject5=function(){return e},e}function styles_templateObject6(){let e=(0,u._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  position: relative;\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n\n  input {\n    width: 1px;\n    height: 1px;\n    position: absolute;\n    padding: 0;\n    border: 0;\n    overflow: hidden;\n    clip: rect(0, 0, 0, 0);\n    white-space: nowrap;\n  }\n  \n  label {\n    display: flex;\n    align-items: center;\n    cursor: pointer;\n\n    span {\n      width: 20px;\n      height: 20px;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      position: relative;\n      margin-right: ",";\n      ",";\n      transition: background-color 0.3s ease-in-out, border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;\n    }\n\n    p {\n      width: calc(100% - (20px + ","));\n    }\n  }\n\n  input:not(:disabled) {\n    &:focus-visible {\n      ~ label {\n        span {\n          box-shadow: 0 0 0 4px ",";\n          color: ",";\n          border: 1px solid ",";\n        }\n      }\n    }\n  }\n\n  input:checked ~ label span {\n    border: 1px solid ",";\n    color: ",';\n  }\n\n  \n\n  /**\n   * Radio \n   */\n  [type="radio"] ~ label {\n    span {\n      border-radius: 50%;\n\n      &:after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        top: 4px;\n        left: 4px;\n        border-radius: 50%;\n        background-color: ',';\n        transition: transform 0.3s ease-in-out;\n        transform: scale(0);\n      }\n    }\n  }\n\n  [type="radio"]:checked ~ label {\n    span {\n      &:after {\n        transform: scale(1);\n      }\n    }\n  }\n\n\n\n  /**\n   * Checkbox \n   */\n  [type="checkbox"] ~ label {\n    span {\n      i {\n        opacity: 0;\n      }\n    }\n  }\n\n  [type="checkbox"]:checked ~ label {\n    span {\n      background-color: ',";\n      color: ",';\n\n      i {\n        opacity: 1;\n      }\n    }\n  }\n\n  \n  \n  /**\n   * Disabled \n   */\n  [type="radio"]:disabled ~ label span,\n  [type="checkbox"]:disabled ~ label span {\n    background-color: ',";\n    border: 1px solid ",";\n    color: ",';\n  }\n\n  [type="radio"]:disabled ~ label span {\n    &::after{\n      background-color: ',";\n    }\n  }\n"]);return styles_templateObject6=function(){return e},e}function styles_templateObject7(){let e=(0,u._)(["\n  a {\n    text-decoration: underline;\n    color: ",";\n\n    &:focus {\n      color: ",";\n    }\n  }\n"]);return styles_templateObject7=function(){return e},e}let C=p.ZP.div.withConfig({componentId:"sc-38f669e5-0"})(styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)}),w=p.ZP.div.withConfig({componentId:"sc-38f669e5-1"})(styles_templateObject1()),O=p.ZP.div.withConfig({componentId:"sc-38f669e5-2"})(styles_templateObject2(),e=>{let{theme:t}=e;return t.colorScheme.whiteyMint.surface.borderSecondary},e=>{let{theme:t}=e;return t.rem(8)},v.eQ,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textPrimary}),S=p.ZP.div.withConfig({componentId:"sc-38f669e5-3"}
1)(styles_templateObject4(),e=>{let{isOpen:t}=e;return t&&(0,p.iv)(styles_templateObject3())}),k=p.ZP.div.withConfig({componentId:"sc-38f669e5-4"})(styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,colorScheme:n}=e;return(0,p.iv)(styles_templateObject5(),t.colorScheme[n].surface.backgroundColor,t.colorScheme[n].surface.textPrimary,t.colorScheme[n].surface.textPrimary)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.primaryPressedBackground},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.textPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.textPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.primaryStrokeColor},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.primaryText},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.primaryText},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.primaryDefaultBackground},e=>{let{theme:t}=e;return t.colors.primary.light5},e=>{let{theme:t}=e;return t.colors.primary.light4},e=>{let{theme:t}=e;return t.colors.primary.light4},e=>{let{theme:t}=e;return t.colors.primary.light4});p.ZP.div.withConfig({componentId:"sc-38f669e5-5"})(styles_templateObject7(),e=>{let{theme:t}=e;return t.colors.secondary.default},e=>{let{theme:t}=e;return t.colors.secondary.light1});let InputGroup_InputGroupItem=e=>{let{field:t,selectedColorScheme:n,isLastRadioInGroup:r}=e,{label:l,...a}=t,[o,u]=(0,c.U$)(a),p=u.touched&&!!u.error&&("radio"!==a.type||r);return(0,i.jsxs)(k,{colorScheme:n,error:p,children:[(0,i.jsx)("input",{...a,...o}),l&&(0,i.jsxs)("label",{htmlFor:a.id,children:[(0,i.jsx)("span",{children:"checkbox"==a.type&&(0,i.jsx)(d.Z,{name:"check",ariaHidden:"true"})}),(0,i.jsx)(s.nv,{typo:"paragraphMD",fontSecondary:!0,textAlign:"left",children:l})]}),p&&(0,i.jsx)(f,{children:(0,i.jsx)(b,{error:!0,role:"alert",children:u.error})})]},"form-field-".concat(a.type,"-").concat(a.id))};var P=(0,l.memo)(e=>{let{label:t,labelSecondary:n,options:r,hints:c=[],isAccordion:d}=e,{selectedColorScheme:u="white"}=(0,l.useContext)(a.x)||{},[p,m]=(0,l.useState)(!d),h=(0,l.useCallback)(()=>m(e=>!e),[]),g=(0,l.useMemo)(()=>r,[r]);return g?(0,i.jsxs)(C,{children:[t&&(0,i.jsx)(s.nv,{typo:"paragraphLG",content:t}),n&&(0,i.jsxs)(O,{colorScheme:u,onClick:h,children:[(0,i.jsx)(w,{as:s.nv,content:n,typo:"paragraphMD",textSecondary:!0}),d&&(0,i.jsxs)(v.eQ,{$open:p,children:[(0,i.jsx)("span",{}),(0,i.jsx)("span",{})]})]}),(0,i.jsx)(o.Nz,{xs:2}),(0,i.jsx)(S,{isOpen:p,children:g.map((e,t)=>{let n=!1;if("radio"===e.type){let r=g.map((t,n)=>"radio"===t.type&&t.name===e.name?n:-1).filter(e=>-1!==e).pop();n=t===r}return(0,i.jsx)(InputGroup_InputGroupItem,{field:e,selectedColorScheme:u,isLastRadioInGroup:n},t)})}),c&&c.length>0?(0,i.jsx)(f,{children:c.map((e,t)=>(0,i.jsx)(b,{colorScheme:u,children:(0,i.jsx)("span",{children:e.text})},"form-field-hint-".concat(t)))}):null]}):null}),I=n(28416);function Select_styles_templateObject(){let e=(0,u._)(["\n  width: 100%;\n  text-align: left;\n\n  .custom-select__control {\n    cursor: pointer;\n  }\n\n  .custom-select__menu {\n    background-color: white;\n  }\n\n  .custom-select__menu-list {\n    height: 100%;\n    background-color: white;\n  }\n\n  .custom-select__input {\n    opacity: 0!important;\n  }\n"]);return Select_styles_templateObject=function(){return e},e}let T=p.ZP.div.withConfig({componentId:"sc-49d987ca-0"})(Select_styles_templateObject());var Z=n(37949),z={control:e=>({...e,cursor:"pointer",backgroundColor:"transparent",border:"none",height:(0,Z.rem)(58),outline:"none",borderRadius:0}),placeholder:e=>({...e,fontSize:(0,Z.rem)(18),lineHeight:(0,Z.rem)(26)}),valueContainer:e=>({...e,padding:0}),menu:e=>({...e,margin:0,border:"1px solid transparent",borderRadius:0,boxShadow:"0px 0px 10px rgba(0, 0, 0, 0.4)"}),menuList:e=>({...e,color:"#000"}),dropdownIndicator:e=>({...e}),indicatorSeparator:e=>({...e,display:"none"})},Select=e=>{let{options:t,label:n,hints:r,...l}=e,[a,o,{setValue:s}]=(0,c.U$)(l);return(0,i.jsx)(j,{id:l.id,type:l.type,label:n,hints:r,field:a,meta:o,children:(0,i.jsx)(T,{children:(0,i.jsx)(I.ZP,{...l,options:t,classNamePrefix:"custom-select",styles:z,onChange:(e,t)=>
1{s(e.value)},onBlur:a.onBlur,"aria-label":n})})})},Form_FormDispatcher=e=>{let t,{validationType:n,validations:a,...o}=e,s={text:"Input",hidden:"Input",email:"Input",tel:"Input",file:"Input",search:"Input",date:"Input",textarea:"Textarea",inputGroup:"InputGroup",select:"Select"},c=(0,l.useId)();if(null==o?void 0:o.options){let e=o.options.map((e,t)=>({...e,...(null==e?void 0:e.id)&&{id:"".concat(c,"-").concat(t)}}));t={...o,options:e}}else t={...o,id:c};let d=r[s[o.type]]?r[s[o.type]]:null;return d?(0,i.jsx)(d,{...t}):null},F=n(34851),Form_FormFieldset=e=>{var t;let{title:n=null,fields:r=null}=e,c=(null===(t=(0,l.useContext)(a.x))||void 0===t?void 0:t.selectedColorScheme)||"white";return(0,i.jsxs)(F.C,{colorScheme:c,children:[n?(0,i.jsx)(F.G,{children:(0,i.jsx)(s.X6,{typo:"displaySM",content:n})}):null,r&&!!r.length&&(0,i.jsx)(o.X2,{children:r.map((e,t)=>{let{col:n,...r}=e;return(0,i.jsx)(o.JX,{...n,style:{display:"hidden"===r.type?"none":null},children:(0,i.jsx)(Form_FormDispatcher,{...r},t)},t)})})]})}},34851:function(e,t,n){n.d(t,{C:function(){return l},G:function(){return a}});var r=n(82729),i=n(37946);function _templateObject(){let e=(0,r._)(["\n  color: ",";\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n  \n"]);return _templateObject1=function(){return e},e}let l=i.ZP.fieldset.withConfig({componentId:"sc-d289aa31-0"})(_templateObject(),e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.textPrimary},e=>{let{theme:t}=e;return t.rem(24)}),a=i.ZP.legend.withConfig({componentId:"sc-d289aa31-1"})(_templateObject1())},90646:function(e,t,n){n.d(t,{Z:function(){return atoms_Tag}});var r=n(85893),i=n(67294),l=n(82729),a=n(37946);function _templateObject(){let e=(0,l._)(["\n    background-color: ",";\n  "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,l._)(["\n    background-color: ",";\n    color: ",";\n  "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,l._)(["\n    border-radius: ",";\n  "]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,l._)(["\n  padding: ",";\n  margin-right: ",";\n  display: inline-flex;\n  justify-content: center;\n  align-items: center;\n  color: ",";\n\n  ","\n\n  ","\n\n  ","\n"]);return _templateObject3=function(){return e},e}let getColorFromBrand=e=>({warmGrey:"black",lightGrey:"black",oliveGreen:"black",neutralTeal:"black",warmYellow:"black",neutralBlack:"white",warmClay:"white",warmOrange:"white",darkGreen:"white",nightSky:"white"})[e]||"white",o=a.ZP.div.withConfig({componentId:"sc-5551e2f1-0"})(_templateObject3(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.tagText},e=>{let{theme:t,colorBrand:n,colorScheme:r}=e;return!n&&r&&(0,a.iv)(_templateObject(),t.colorScheme["".concat(r)].surface.backgroundTagDefault)},e=>{let{theme:t,colorBrand:n}=e;return n&&(0,a.iv)(_templateObject1(),t.colors.brands["".concat(n)],getColorFromBrand(n))},e=>{let{theme:t,variant:n}=e;return"round"===n&&(0,a.iv)(_templateObject2(),t.rem(100))});var s=n(8236),c=n(93945),d=n(41664),u=n.n(d),atoms_Tag=e=>{var t;let{label:n,href:l=!1,variant:a="square",inheritedColorScheme:d=!1,colorBrand:p,...m}=e,h=(null===(t=(0,i.useContext)(s.x))||void 0===t?void 0:t.selectedColorScheme)||"white";return n?(0,r.jsx)(o,{colorScheme:d||h,colorBrand:p,variant:a,...m,children:l?(0,r.jsx)(u(),{href:l,children:(0,r.jsx)(c.nv,{typo:"paragraphXS",weight:"semibold",uppercase:!0,children:n})}):(0,r.jsx)(c.nv,{typo:"paragraphXS",weight:"semibold",uppercase:!0,children:n})}):null}},56175:function(e,t,n){n.d(t,{Z:function(){return molecules_Badge}});var r=n(85893),i=n(40887),l=n(30173),a=n(82729),o=n(37946);function _templateObject(){let e=(0,a._)(["\n  display: inline-flex;\n  flex-direction: row;\n  align-items: center;\n  column-gap: ",";\n  padding: ",";\n  border: 0.3px solid ",";\n  flex: 0 0 auto;\n  height: 28px;\n\n  i {\n    font-size: ",";\n    color: ",";\n    flex-shrink: 0;\n  }\n"]);
1return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,a._)(["\n  display: inline-flex;\n  align-items: center;\n  overflow: hidden;\n  clip-path: inset(25% 0 0 0);\n\n  i:first-child {\n  position: relative;\n  z-index: 2;\n    filter:\n      drop-shadow(1px 0 0 white)\n      drop-shadow(-1px 0 0 white)\n      drop-shadow(0 1px 0 white)\n      drop-shadow(0 -1px 0 white);\n  }\n\n  i:last-child {\n    margin-left: ",";\n    position: relative;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,a._)(["\n  color: ",";\n  font-weight: 600;\n  font-size: ",";\n  text-transform: uppercase;\n  letter-spacing: 0.02em;\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,a._)(["\nmargin-top: -1px;\n}"]);return _templateObject3=function(){return e},e}let s="#409488",c=o.ZP.div.withConfig({componentId:"sc-9f72be-0"})(_templateObject(),e=>{let{theme:t}=e;return t.rem(5)},e=>{let{theme:t}=e;return t.rem(4,14)},s,e=>{let{theme:t}=e;return t.rem(18)},s),d=o.ZP.span.withConfig({componentId:"sc-9f72be-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.rem(-6)}),u=o.ZP.span.withConfig({componentId:"sc-9f72be-2"})(_templateObject2(),s,e=>{let{theme:t}=e;return t.rem(10)}),p=o.ZP.div.withConfig({componentId:"sc-9f72be-3"})(_templateObject3());var molecules_Badge=e=>{let{text:t,iconName:n="",...a}=e;return t?(0,r.jsxs)(c,{...a,children:[n?(0,r.jsx)(d,{children:(0,r.jsx)(i.Z,{name:n,ariaHidden:"true",style:{marginLeft:"-11px"}})}):(0,r.jsx)(p,{children:(0,r.jsx)(l.yz,{})}),(0,r.jsx)(u,{children:t})]}):null}},73510:function(e,t,n){n.d(t,{Z:function(){return molecules_CardArticle}});var r=n(85893);n(67294);var i=n(25675),l=n.n(i),a=n(93945),o=n(33922),s=n(90646),c=n(82729),d=n(37946);function _templateObject(){let e=(0,c._)(["\n  position: relative;\n  aspect-ratio: 4 / 3;\n  overflow: hidden;\n  border-radius: 0;\n  transition: border-radius 0.3s ease-in-out;\n  \n  img {\n    object-fit: cover;\n    object-position: center;\n    transform: scale(1);\n    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,c._)(["\n  width: 100%;\n  display: block;\n\n  &:hover,\n  &:focus-within {\n    "," {\n      border-radius: ",";\n      \n      img {\n        transform: scale(1.2);\n      }\n    }\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,c._)(["\n  margin: ",";\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,c._)(["\n  margin-bottom: ",";\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,c._)(["\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  margin-bottom: ",";\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,c._)([""]);return _templateObject5=function(){return e},e}let u=d.ZP.div.withConfig({componentId:"sc-89773608-0"})(_templateObject()),p=d.ZP.a.withConfig({componentId:"sc-89773608-1"})(_templateObject1(),u,e=>{let{theme:t}=e;return t.rem(24)}),m=d.ZP.p.withConfig({componentId:"sc-89773608-2"})(_templateObject2(),e=>{let{theme:t}=e;return t.rem(24,0,12,0)}),h=d.ZP.h4.withConfig({componentId:"sc-89773608-3"})(_templateObject3(),e=>{let{theme:t}=e;return t.rem(16)}),g=d.ZP.p.withConfig({componentId:"sc-89773608-4"})(_templateObject4(),e=>{let{theme:t}=e;return t.rem(16)}),f=d.ZP.div.withConfig({componentId:"sc-89773608-5"})(_templateObject5());var molecules_CardArticle=e=>{let{title:t,excerpt:n,date:i,slug:c,image:d,categories:b}=e;return(0,r.jsx)(o.Z,{href:"".concat(c),children:(0,r.jsxs)(p,{href:"".concat(c),children:[(0,r.jsx)(u,{children:(0,r.jsx)(l(),{src:d.src,alt:d.alt||"",fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"})}),(0,r.jsx)(m,{as:a.nv,typo:"paragraphSM",content:i,weight:"semibold",textSecondary:!0}),(0,r.jsx)(h,{as:a.X6,typo:"displaySM",content:t,fontPrimary:!0}),(0,r.jsx)(g,{as:a.nv,typo:"paragraphMD",content:n,textSecondary:!0}),b&&b.length>0?(0,r.jsx)(f,{children:b.map((e,t)=>(0,r.jsx)(s.Z,{label:e.title,colorBrand:e.colorBrand,variant:"round"},"CardArticleTags-".concat(t)))}):null]})})}},24362:function(e,t,n){n.d(t,{Z:function(){return molecules_CardBook}});var r=n(85893);n(67294);var i=n(25675),l=n.n(i),a=n(5329),o=n(93945),s=n(33922),c=n(90646),d=n(92840),u=n(41596),p=n(82729),m=n(37946);
1function _templateObject(){let e=(0,p._)(["\n  position: relative;\n  aspect-ratio: 4 / 4;\n  background-color: #eeeae6;\n  transition: background-color 0.6s ease-in-out;\n  \n  img {\n    max-width:100%;\n    max-height: 70%;\n    object-fit: contain;\n    object-position: center;\n    top: 50% !important;\n    left: 50% !important;\n    transform: translate(-50%, -50%) scale(1);\n    z-index: 1;\n    // transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);\n\n    ","\n\n    ","\n    \n  }\n\n  svg {\n    path {\n      stroke: #3B3838;\n      stroke-width: 1.5;\n      stroke-dasharray: 1;\n      stroke-dashoffset: 1;\n      transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);\n    }\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,p._)(["\n  position: absolute;\n  bottom: ",";\n  right: ",";\n  z-index: 0;\n\n  ","\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,p._)(["\n  position: absolute;\n  top: ",";\n  left: ",";\n  z-index: 0;\n\n  ","\n\n  svg {\n    path {\n      transition-delay: 0.2s;\n    }\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,p._)(["\n  padding: ",";\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,p._)(["\n  display: inline;\n  background-image: linear-gradient(0deg, currentColor, currentColor);\n  background-position: 100% 100%;\n  background-repeat: no-repeat;\n  background-size: 0% 1px;\n  outline-width: 0;  \n  transition: background-size 0.6s ease-in-out;\n  transform: translateZ(0);\n  -webkit-font-smoothing: subpixel-antialiased;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,p._)(["\n  width: 100%;\n  display: block;\n\n  &:hover,\n  &:focus,\n  &:active,\n  &:focus-within {\n    "," {\n      //background-color: #EAF1F1;\n      background-color: #E9F1ED;;\n\n      \n      // img {\n      //   transform: translate(-50%, -50%) scale(1.25);\n        \n      //   ","\n\n      //   ","\n      // }\n\n      // svg {\n      //   path {\n      //     stroke-dashoffset: 0;\n      //   }\n      // }\n    }\n\n    "," {\n      background-size: 100% 1px;\n    }\n  }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,p._)(["\n  margin-bottom: ",";\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,p._)(["\n  display: flex;\n  flex-direction: column;\n  margin-top: ",";\n  gap: ",";\n  \n  ","\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,p._)(["\n  display: flex;\n  align-items: center;\n  gap: 8px;\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,p._)(["\n  /* color: #999999; */\n  color: ",";\n  text-decoration: line-through;\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,p._)(["\n  color: #8B6612;\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,p._)(["\n  margin: ",";\n  display: none;\n\n  ","\n\n"]);return _templateObject11=function(){return e},e}let h=m.ZP.div.withConfig({componentId:"sc-a15a653f-0"})(_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      max-height: 78%;\n    ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      transform: translate(-50%, -50%) scale(0.8);\n      max-height: 88%;\n    ",!0)}),g=m.ZP.div.withConfig({componentId:"sc-a15a653f-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 50%;\n    bottom: 0;\n    right: 0;\n\n    svg {\n      width: 100%;\n    }\n  ",!0)}),f=m.ZP.div.withConfig({componentId:"sc-a15a653f-2"})(_templateObject2(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 50%;\n    top: 0;\n    left: 0;\n\n    svg {\n      width: 100%;\n    }\n  ",!0)}),b=m.ZP.div.withConfig({componentId:"sc-a15a653f-3"}
1)(_templateObject3(),e=>{let{theme:t}=e;return t.rem(16,12)}),y=m.ZP.div.withConfig({componentId:"sc-a15a653f-4"})(_templateObject4()),_=m.ZP.a.withConfig({componentId:"sc-a15a653f-5"})(_templateObject5(),h,e=>{let{theme:t}=e;return t.mediaQuery.xl("\n      //     transform: translate(-50%, -50%) scale(1.1);\n      //   ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      //     transform: translate(-50%, -50%) scale(0.9);\n      //   ",!0)},y),x=m.ZP.div.withConfig({componentId:"sc-a15a653f-6"})(_templateObject6(),e=>{let{theme:t}=e;return t.rem(8)}),j=m.ZP.div.withConfig({componentId:"sc-a15a653f-7"})(_templateObject7(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    justify-content: flex-start;\n    gap: 0;\n    align-items: center;\n    flex-direction: row;\n  ")}),v=m.ZP.div.withConfig({componentId:"sc-a15a653f-8"})(_templateObject8()),C=m.ZP.div.withConfig({componentId:"sc-a15a653f-9"})(_templateObject9(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary}),w=m.ZP.div.withConfig({componentId:"sc-a15a653f-10"})(_templateObject10()),O=m.ZP.div.withConfig({componentId:"sc-a15a653f-11"})(_templateObject11(),e=>{let{theme:t}=e;return t.rem(0,16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: block;\n  ")});var molecules_CardBook=e=>{let{title:t,subtitle:n,slug:i,image:p,tags:m,price:S,compare_at_price:k,discount:P,coursesIncluded:I}=e;return(0,r.jsx)(s.Z,{href:"".concat(i),children:(0,r.jsxs)(_,{href:"".concat(i),children:[(0,r.jsxs)(h,{children:[(0,r.jsx)(f,{children:(0,r.jsx)(d.W7,{})}),p?(0,r.jsx)(l(),{src:p.src,alt:p.alt||"","aria-hidden":"true",fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 75vw"}):null,(0,r.jsx)(g,{children:(0,r.jsx)(d.yq,{})})]}),(0,r.jsxs)(b,{children:[m&&m.length>0?(0,r.jsx)(x,{children:m.map((e,t)=>(0,r.jsx)(c.Z,{label:null==e?void 0:e.label},"CardBookTags-".concat(t)))}):null,(0,r.jsx)(y,{as:o.nv,forwardedAs:"div",typo:"paragraphMD",weight:"semibold",children:t}),n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Nz,{xs:1}),(0,r.jsx)(o.nv,{as:"div",typo:"paragraphMD",textSecondary:!0,children:n})]}):null,S?(0,r.jsxs)(j,{children:[I?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.nv,{typo:"paragraphSM",content:"Incluso con i corsi",textSecondary:!0}),(0,r.jsx)(O,{as:o.nv,typo:"paragraphSM",content:"/"})]}):null,(0,r.jsxs)(v,{children:[(0,r.jsx)(o.nv,{typo:"paragraphSM",content:(0,u.T4)({amount:S,currencyCode:"EUR"})}),k?(0,r.jsx)(C,{children:(0,r.jsx)(o.nv,{typo:"paragraphSM",content:(0,u.T4)({amount:k,currencyCode:"EUR"})})}):null,P?(0,r.jsx)(w,{children:(0,r.jsx)(o.nv,{typo:"paragraphSM",content:"-".concat(P,"%"),weight:"semibold"})}):null]})]}):null]})]})})}},97805:function(e,t,n){n.d(t,{Z:function(){return molecules_CardCourse}});var r=n(85893),i=n(67294),l=n(25675),a=n.n(l),o=n(10990),s=n(66473),c=n(93945),d=n(5329),u=n(33922),p=n(40887),m=n(82729),h=n(37946);function _templateObject(){let e=(0,m._)(["\n  display: inline-block;\n  padding: ",";\n  border-radius: ",";\n  font-size: ",";\n  font-weight: 600;\n  text-transform: uppercase;\n  margin-bottom: ",";\n  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,m._)(["\n    mask-image: url('/masks/mask-",".svg');\n    mask-size: cover;\n    mask-repeat: no-repeat;\n    mask-position: center;\n  "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,m._)(["\n  width: 100%;\n  position: relative;\n  aspect-ratio: 4 / 4;\n\n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n    transform: scale(1.1);\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,m._)(["\n  position: absolute;\n  bottom: 5%;\n  right: 5%;\n  padding: ",";\n  border-radius: 100%;\n  opacity: 0;\n  transform: translate(-24px, 24px) scale(0.8);\n  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;\n"]);return _templateObject3=function(){return e},e}
1function _templateObject4(){let e=(0,m._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      color: ",";\n      background-color: ",";\n    }\n\n    "," {\n      color: ",";\n      background-color: ",";\n    }\n  "]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,m._)(["\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-between;\n  text-align: center;\n  border-radius: ",";\n  transition: background-color 0.3s ease-in-out, transform 0.6s cubic-bezier(0.5, 2.5, 0.7, 0.7);\n  \n  ","\n\n  &:hover,\n  &:focus-within {\n    color: ",";\n    background-color: ",";\n    transform: translateY(-5px);\n\n    "," {\n      color: ",";\n      background-color: ",";\n    }\n\n    "," {\n      background-color: ",";\n      opacity: 1;\n      transform: translate(0, 0) scale(1);\n    }\n  }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,m._)(["\n  width: 100%;\n  padding: ",";\n"]);return _templateObject6=function(){return e},e}let g=h.ZP.span.withConfig({componentId:"sc-2fa85bc8-0"})(_templateObject(),e=>{let{theme:t}=e;return t.rem(3,12)},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(14)},e=>{let{theme:t}=e;return t.rem(8)}),f=h.ZP.div.withConfig({componentId:"sc-2fa85bc8-1"})(_templateObject2(),e=>{let{maskType:t}=e;return t&&(0,h.iv)(_templateObject1(),t)}),b=h.ZP.div.withConfig({componentId:"sc-2fa85bc8-2"})(_templateObject3(),e=>{let{theme:t}=e;return t.rem(20)}),y=h.ZP.a.withConfig({componentId:"sc-2fa85bc8-3"})(_templateObject5(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,colorScheme:n}=e;return(0,h.iv)(_templateObject4(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,g,t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].button.primaryPressedBackground,b,t.colorScheme["".concat(n)].button.iconColor,t.colorScheme["".concat(n)].button.iconBackground)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].button.primaryPressedBackground},g,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].button.primaryPressedBackground},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},b,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].button.iconBackground}),_=h.ZP.div.withConfig({componentId:"sc-2fa85bc8-4"})(_templateObject6(),e=>{let{theme:t}=e;return t.rem(24,16)}),x={premium:"star",sprint:"circle",essential:"cross",masterclass:"square",biennale:"star"},j=["premium","sprint","essential","masterclass","biennale","white","dark","lightOrange","whiteyMint","EsseSprint"];var molecules_CardCourse=e=>{let{type:t,title:n,subtitle:l,duration:m,slug:h,image:v,colorScheme:C,typeLabel:w}=e,O=(0,i.useRef)(null),S=(0,i.useRef)(null),k=x[t],P=j.includes(t)?t:"white",I=(0,i.useCallback)(e=>{let t=O.current.getBoundingClientRect(),n=(e.clientX-t.left)/2/20,r=(e.clientY-t.top)/2/20;o.ZP.to(S.current,{x:n,y:r})},[]);return(0,s.Z)("mousemove",I,{target:O}),(0,r.jsx)(u.Z,{href:"".concat(h),children:(0,r.jsxs)(y,{href:"".concat(h),colorScheme:C||P,ref:O,children:[(0,r.jsxs)(_,{children:[t||w?(0,r.jsx)(g,{typo:"label",weight:"semibold",children:w||t}):null,(0,r.jsx)(c.nv,{typo:"headingSM",content:n,weight:"semibold"}),l?(0,r.jsx)(c.nv,{typo:"headingSM",content:l,weight:"semibold"}):null,m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Nz,{xs:1}),(0,r.jsx)(c.nv,{typo:"paragraphMD",content:"".concat(m," ore")})]}):null]}),(0,r.jsx)(f,{maskType:k||"square",ref:e=>S.current=(null==e?void 0:e.childNodes)?e.childNodes[0]:null,children:v?(0,r.jsx)(a(),{src:v.src,alt:v.alt||"",fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 75vw"}):null}),(0,r.jsx)(b,{children:(0,r.jsx)(p.Z,{name:"arrow-up-right",size:"huge"})})]})})}},22902:function(e,t,n){n.d(t,{Z:function(){return molecules_FloatingTooltip}});var r=n(85893),i=n(5329),l=n(93945);n(40887);var a=n(12220),o=n(11163),s=n(25675),c=n.n(s),d=n(57896),u=n(48031),p=n(46194),m=n(73498),h=n(81751),g=n(30451),f=n(82729),b=n(37946);
1function _templateObject(){let e=(0,f._)(["\n    opacity: 1;\n    visibility: visible;\n    transform: translateY(",") translateX(-50%);\n\n    ","\n  "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,f._)(["\n  width: 90%;\n  padding: ",";\n  position: fixed;\n  background-color: ",";\n  border-radius: ",";\n  border: 1px solid ",";\n  transition: all 0.2s ease-in 0s;\n  transform: translateY(",") translateX(-50%);\n  opacity: 0;\n  visibility: hidden;\n  left: 50%;\n  z-index: 10;\n\n  bottom: ",";\n\n  ","\n\n  ","\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,f._)(["\n  position: relative;\n\n  img {\n    object-fit: contain;\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,f._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,f._)(["\n  position: absolute;\n  right: 0;\n  top: ",";\n"]);return _templateObject4=function(){return e},e}let y=b.ZP.div.withConfig({componentId:"sc-94badb73-0"})(_templateObject1(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(10)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.borderSecondary},e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: ".concat(t.rem(508),";\n    min-height: ").concat(t.rem(210),";\n    padding: ").concat(t.rem(16,24),";\n    bottom: ").concat(t.rem(24),";\n    right: ").concat(t.rem(24),";\n    left: auto;\n    transform: translateY(").concat(t.rem(40),");\n  "))},e=>{let{isVisible:t}=e;return t&&(0,b.iv)(_templateObject(),e=>{let{theme:t}=e;return t.rem(-60)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      transform: translateY(0);\n    ")})}),_=b.ZP.div.withConfig({componentId:"sc-94badb73-1"})(_templateObject2()),x=b.ZP.div.withConfig({componentId:"sc-94badb73-2"})(_templateObject3()),j=b.ZP.div.withConfig({componentId:"sc-94badb73-3"})(_templateObject4(),e=>{let{theme:t}=e;return t.rem(-64)});var molecules_FloatingTooltip=e=>{let{isVisible:t,setShowTooltip:n,title:s,description:f,image:b,price:v}=e,{totalQuantity:C,cost:w,lines:O}=(0,p.jD)(),{showModal:S}=(0,d.dd)(),{sendGTM:k}=(0,m.rS)(),P=(0,o.useRouter)();return(0,r.jsxs)(y,{isVisible:t,children:[(0,r.jsx)(j,{children:(0,r.jsx)(a.Z,{iconEnd:"x-mark",inheritedColorScheme:"dark",handleClick:()=>n(!1),fullWidth:!0})}),(0,r.jsxs)(i.kC,{gap:2,justifyContent:"flex-start",alignItems:"flex-start",children:[(0,r.jsx)(_,{children:b&&b.url?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.zv,{breakpoints:["lg","xl","xxl","xxxl"],children:(0,r.jsx)(c(),{src:b.url,alt:b.alternativeText||"",width:100,height:120,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})}),(0,r.jsx)(i.zv,{breakpoints:["xs","sm","md"],children:(0,r.jsx)(c(),{src:b.url,alt:b.alternativeText||"",width:50,height:70,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})})]}):null}),(0,r.jsxs)(i.kC,{gap:2,justifyContent:"space-between",alignItems:"flex-start",fullWidth:!0,children:[(0,r.jsxs)(i.kC,{$direction:"column",gap:1,children:[(0,r.jsx)(l.nv,{typo:"paragraphLG",textPrimary:!0,weight:"semibold",content:s}),f?(0,r.jsx)(l.nv,{as:"div",typo:"paragraphSM",textSecondary:!0,content:f}):null]}),(0,r.jsx)(l.nv,{typo:"paragraphLG",textPrimary:!0,weight:"semibold",content:v})]})]}),(0,r.jsx)(i.Nz,{xs:2}),(0,r.jsxs)(i.kC,{alignItems:"center",justifyContent:"space-evenly",children:[(0,r.jsx)(x,{children:(0,r.jsx)(a.Z,{variant:"tertiary",label:"Carrello (".concat(C,")"),handleClick:()=>{S(u.Z,{}),n(!1)},inheritedColorScheme:"lightOrange"})}),(0,r.jsx)(a.Z,{label:"Checkout",fullWidth:!0,inheritedColorScheme:"lightOrange",handleClick:()=>{(0,g.Z)(O).then(e=>{let t=e.reduce((e,t,n)=>[...e,{...t,data:{...t.data,cartData:O[n]}}],[]);k({...(0,h.af)({data:t})}),P.push("/checkout")})}})]})]})}},78260:function(e,t,n){n.d(t,{Z:function(){return molecules_Pagination}});var r=n(85893),i=n(11163);n(92840);var l=n(82729),a=n(37946),o=n(48802),s=n.n(o);
1function _templateObject(){let e=(0,l._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  gap: ",";\n\n  /* "," */\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,l._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  gap: ",";\n\n  /* "," */\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,l._)(["\n    color: #E5673E;\n    text-decoration: underline;\n    cursor: auto;\n  "]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,l._)(["\n  font-size: ",";\n  line-height: ",";\n  ","\n  cursor: pointer;\n  transition: color .3s ease-in-out;\n\n  &:hover,\n  &:focus {\n    color: #FFB683;\n  }\n\n  ","\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,l._)(["\n  font-size: ",";\n  line-height: ",";\n  cursor: not-allowed;\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,l._)(["\n    opacity: 0.2;\n    pointer-events: none;\n    cursor: not-allowed;\n  "]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,l._)(["\n    &:hover,\n    &:focus-visible {\n      path {\n        fill: #FFB683;\n      }\n    }\n  "]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,l._)(["\n  display: flex;\n  align-items: center;\n  font-size: ",";\n  line-height: ",";\n  cursor: pointer;\n\n  /* "," */\n\n  path {\n    transition: fill .3s ease-in-out;\n  }\n\n  ","\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,l._)(["\n  justify-content: flex-end;\n\n  ","\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,l._)(["\n  justify-content: flex-start;\n\n  ","\n"]);return _templateObject9=function(){return e},e}let c=a.ZP.div.withConfig({componentId:"sc-b545e414-0"})(_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    flex-wrap: wrap;\n    gap: 0;\n    row-gap: ".concat(t.rem(24),";\n  "),!0)}),d=a.ZP.div.withConfig({componentId:"sc-b545e414-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    flex: 1 1 100%;\n    order: 0;\n  ",!0)}),u=a.ZP.div.withConfig({componentId:"sc-b545e414-2"})(_templateObject3(),e=>{let{theme:t}=e;return t.rem(18)},e=>{let{theme:t}=e;return t.rem(26)},s().style,e=>{let{isCurrent:t}=e;return t&&(0,a.iv)(_templateObject2())}),p=a.ZP.div.withConfig({componentId:"sc-b545e414-3"})(_templateObject4(),e=>{let{theme:t}=e;return t.rem(18)},e=>{let{theme:t}=e;return t.rem(26)}),m=a.ZP.div.withConfig({componentId:"sc-b545e414-4"})(_templateObject7(),e=>{let{theme:t}=e;return t.rem(18)},e=>{let{theme:t}=e;return t.rem(26)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    flex: 0 0 50%;\n    order: 2;\n  ",!0)},e=>{let{isDisabled:t}=e;return t?(0,a.iv)(_templateObject5()):(0,a.iv)(_templateObject6())}),h=(0,a.ZP)(m).withConfig({componentId:"sc-b545e414-5"})(_templateObject8(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding-right: ".concat(t.rem(12),";\n  "),!0)}),g=(0,a.ZP)(m).withConfig({componentId:"sc-b545e414-6"})(_templateObject9(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding-left: ".concat(t.rem(12),";\n  "),!0)});var f=n(40887),molecules_Pagination=e=>{let{page:t,pageCount:n,pageSize:l,total:a}=e,o=(0,i.useRouter)(),handlePagination=e=>{if(t==e)return null;o.replace({query:{...o.query,page:e}})};return n>1?(0,r.jsxs)(c,{children:[(0,r.jsx)(h,{tabIndex:"0",isDisabled:1==t,onClick:()=>t>1&&handlePagination(t-1),children:(0,r.jsx)(f.Z,{name:"arrow-left"})}),(0,r.jsx)(d,{children:(()=>{let e=[];for(let r=1;r<=n;r++)1===r||r===n||r>=t-2&&r<=t+2?e.push(r):(2===r||r===n-1)&&e.push("...");return e})().map((e,n)=>"..."===e?(0,r.jsx)(p,{tabIndex:"-1",children:e},"Pagination-dots"):(0,r.jsx)(u,{tabIndex:"0",isCurrent:t==e,onClick:()=>handlePagination(e),children:e},"Pagination-num-".concat(n)))}),(0,r.jsx)(g,{tabIndex:"0",isDisabled:t==n,onClick:()=>t<n&&handlePagination(t+1),children:(0,r.jsx)(f.Z,{name:"arrow-right"})})]}):null}},80099:function(e,t,n){n.d(t,{Z:function(){return organisms_ComparisonBookReference}});var r=n(85893),i=n(67294),l=n(25675),a=n.n(l),o=n(46194),s=n(75265),c=n(2261),d=n(94135),u=n(5329),p=n(93945),m=n(12220),h=n(40887),g=n(22902),f=n(41596),b=n(82729),y=n(37946),_=n(90646);
1function _templateObject(){let e=(0,b._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n  /* Clip overflow so mobile peek doesn't cause horizontal scroll */\n  overflow-x: clip;\n\n  ","\n\n\n  ","\n\n\n  .header-row{\n   row-gap: ",";\n   color: #DAD6D6;\n   }\n   \n   \n  .title {\n    text-wrap: balance;\n    font-size: 24px;\n    line-height: 28px;\n\n\n    ","\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,b._)(["\n  display: flex;\n  align-items: center;\n  gap: ",";\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,b._)(["\n  all: unset;\n  box-sizing: border-box;\n  flex-shrink: 0;\n  width: ",";\n  height: ",";\n  border-radius: 50%;\n  display: none;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n  background-color: ",";\n  color: ",";\n  transition: background-color 0.2s ease;\n\n  i {\n    font-size: ",";\n  }\n\n  &:hover:not(:disabled) {\n    background-color: ",";\n  }\n\n  &:disabled {\n    cursor: default;\n    background-color: ",";\n    color: ",";\n  }\n\n  ","\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,b._)(["\n  flex: 1;\n  min-width: 0;\n\n  /* On mobile the swiper overflows right for the peek effect */\n  .swiper {\n    overflow: visible;\n\n    ","\n  }\n\n  /* Center slides on desktop when all items fit */\n  ","\n\n  /* Fixed slide widths so cards are never cut off */\n  .swiper-slide {\n    /* Mobile: peek at next card */\n    width: calc(100% - ",");\n    max-width: 330px;\n    height: auto;\n\n    /* Desktop: fixed card width, show as many as fit */\n    ","\n  }\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,b._)(["\n      border: 2px solid ",";\n    "]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,b._)(["\n  position: relative;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  border-radius: ",";\n  border: 1px solid\n    ",";\n  overflow: hidden;\n  background-color: ",";\n\n  ","\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,b._)(["\n  position: absolute;\n  top: 0px;\n  right: ",";\n  z-index: 1;\n  background-color: #F09170;\n  color: #181818;\n  padding: 8px 14px;\n  border-radius: 0 0 8px 8px;\n  font-weight: 600;\n  font-size: 10px;\n  letter-spacing: 2%;\n  text-transform: uppercase;\n"]);return _templateObject6=function(){return e},e}function _templateObject7(){let e=(0,b._)(["\n  max-height: 276px;\n  position: relative;\n  width: 100%;\n  aspect-ratio: 1 / 1;\n  background-color: #D9D9D9;\n  flex-shrink: 0;\n  display: grid;\n  place-items: center;\n\n  // .book-shadow {\n  //   position: absolute;\n  //   bottom: 3px !important;\n  //   left: -80px !important;\n  //   width: 80px !important;\n  //   height: auto;\n  //   z-index: 2;\n  //   pointer-events: none;\n\n  //   ","\n  // }\n"]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,b._)(["\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  padding: ",";\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,b._)(["\n  margin-right: 0;\n  background-color: ",";\n  color: ",";\n  border: 1px solid ",";\n  transition: all 0.2s ease-in;\n\n  p, span, a {\n    font-size: 10px !important;\n  }\n\n  &:hover {\n    background-color: ",";\n    color: ",";\n  }\n\n  &:first-child {\n    border: 1px solid transparent;\n    background-color: #E2E0D4;\n   }\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,b._)(["\n  .card-title {\n    margin: 7px 0 14px;\n    font-size: 16px;\n    line-height: 24px;\n    color: #1b1818;\n  }\n"]);return _templateObject10=function(){return e},e}function _templateObject11(){let e=(0,b._)(["\n  list-style: none;\n  margin: 0;\n  padding: 0;\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  gap: ",";\n"]);return _templateObject11=function(){return e},e}function _templateObject12(){let e=(0,b._)(["\n  display: flex;\n  align-items: center;\n  gap: 7px;\n  font-size: 14px;\n  line-height: 20px;\n  color: ",";\n  font-weight: ",";\n\n  i {\n    flex-shrink: 0;\n    font-size: ",";\n    color: ",";\n  }\n"]);
1return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,b._)(["\n\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,b._)(["\n  flex-shrink: 0;\n  width: ",";\n  text-align: center;\n  color: ",";\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,b._)(["\n  display: flex;\n  flex-direction: column;\n  margin-top: auto;\n  margin-bottom: 18px;\n\n  .savings {\n    font-size: 12px;\n    color:#5A5656;\n    line-height: 16px;\n  }\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){let e=(0,b._)(["\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  gap: 16px;\n"]);return _templateObject16=function(){return e},e}function _templateObject17(){let e=(0,b._)(["\n  text-decoration: line-through;\n  color: #999999;\n"]);return _templateObject17=function(){return e},e}function _templateObject18(){let e=(0,b._)(["\n  border: 0.3px solid #8B6612;\n  border-radius: 0.3px;\n  padding: ",";\n  color: #8B6612;\n  margin-left: auto;\n"]);return _templateObject18=function(){return e},e}function _templateObject19(){let e=(0,b._)(["\n  margin-top: ",";\n"]);return _templateObject19=function(){return e},e}let x=y.ZP.section.withConfig({componentId:"sc-ce1ae277-0"})(_templateObject(),e=>{let{$paddingTop:t,theme:n}=e;return n.rem(null!=t?t:20)},e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{$hideOnMobile:t}=e;return t&&"\n    @media screen and (max-width: 991px) {\n      display: none;\n    }\n  "},e=>{let{theme:t}=e;return t.rem(12)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      font-size: 32px;\n      line-height: 40px;\n    ")}),j=y.ZP.div.withConfig({componentId:"sc-ce1ae277-1"})(_templateObject1(),e=>{let{theme:t}=e;return t.rem(12)}),v=y.ZP.button.withConfig({componentId:"sc-ce1ae277-2"})(_templateObject2(),e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackground},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconColor},e=>{let{theme:t}=e;return t.rem(18)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackgroundHover},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.disabledBackground},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.disabledText},e=>{let{theme:t,$scrollable:n}=e;return t.mediaQuery.lg("\n    display: ".concat(n?"flex":"none",";\n  "))}),C=y.ZP.div.withConfig({componentId:"sc-ce1ae277-3"})(_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      overflow: hidden;\n    ")},e=>{let{theme:t,$scrollable:n}=e;return!n&&t.mediaQuery.lg("\n      .swiper-wrapper {\n        justify-content: center;\n      }\n    ")},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      width: 345px;\n      max-width: 345px;\n    ")}),w=y.ZP.div.withConfig({componentId:"sc-ce1ae277-4"})(_templateObject5(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor2},e=>{let{$recommended:t,theme:n}=e;return t&&(0,y.iv)(_templateObject4(),n.colors.brands.warmOrange)}),O=y.ZP.div.withConfig({componentId:"sc-ce1ae277-5"})(_templateObject6(),e=>{let{theme:t}=e;return t.rem(30)}),S=y.ZP.div.withConfig({componentId:"sc-ce1ae277-6"})(_templateObject7(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n  //     left: -110px !important;\n  //     width: 110px !important;\n  //   ",!1)}),k=y.ZP.div.withConfig({componentId:"sc-ce1ae277-7"})(_templateObject8(),e=>{let{theme:t}=e;return t.rem(20)}),P=(0,y.ZP)(_.Z).withConfig({componentId:"sc-ce1ae277-8"})(_templateObject9(),e=>{let{href:t}=e;return!t&&"transparent"},e=>{let{href:t}=e;return!t&&"#1b1818"},e=>{let{href:t}=e;return t?"transparent":"#1b1818"},e=>{let{href:t}=e;return t&&"#1B1818"},e=>{let{href:t}=e;return t&&"#fff"}),I=y.ZP.div.withConfig({componentId:"sc-ce1ae277-9"}
1)(_templateObject10()),T=y.ZP.ul.withConfig({componentId:"sc-ce1ae277-10"})(_templateObject11(),e=>{let{theme:t}=e;return t.rem(4)}),Z=y.ZP.li.withConfig({componentId:"sc-ce1ae277-11"})(_templateObject12(),e=>{let{$enabled:t,theme:n}=e;return t?n.colorScheme.white.surface.textPrimary:n.colorScheme.white.button.disabledText},e=>{let{$enabled:t}=e;return t?"600":"400"},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{$enabled:t,theme:n}=e;return t?n.colors.status.success.default:n.colorScheme.white.button.disabledText});y.ZP.div.withConfig({componentId:"sc-ce1ae277-12"})(_templateObject13()),y.ZP.span.withConfig({componentId:"sc-ce1ae277-13"})(_templateObject14(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary});let z=y.ZP.div.withConfig({componentId:"sc-ce1ae277-14"})(_templateObject15()),F=y.ZP.div.withConfig({componentId:"sc-ce1ae277-15"})(_templateObject16()),E=y.ZP.div.withConfig({componentId:"sc-ce1ae277-16"})(_templateObject17()),M=y.ZP.div.withConfig({componentId:"sc-ce1ae277-17"})(_templateObject18(),e=>{let{theme:t}=e;return t.rem(2,5)}),A=y.ZP.div.withConfig({componentId:"sc-ce1ae277-18"})(_templateObject19(),e=>{let{theme:t}=e;return t.rem(6)});var B=n(30173),organisms_ComparisonBookReference=e=>{var t;let{sectionId:n,items:l,title:b,description:y,hideOnMobile:_=!1,paddingTop:N}=e,{linesAdd:D,status:R,id:L,cartAttributesUpdate:Q}=(0,o.jD)(),[q,H]=(0,i.useState)(!1),[V,X]=(0,i.useState)(null),[U,G]=(0,i.useState)({isBeginning:!0,isEnd:!1}),[W,J]=(0,i.useState)(!0),[$,Y]=(0,i.useState)(!1),[K,ee]=(0,i.useState)(null),updateScrollState=e=>{J(!e.isLocked),G({isBeginning:e.isBeginning,isEnd:e.isEnd})};(0,i.useEffect)(()=>{if(q&&"idle"===R&&L){let e=(0,s.P)();e&&Q([{key:"hsdcid",value:e}]),H(!1)}},[R,L,q]);let handleAddToCart=e=>{e.variantId&&("idle"===R||"uninitialized"===R)&&(D([{merchandiseId:e.variantId}]),ee(e),Y(!0),H(!0))};return(null==l?void 0:l.length)?(0,r.jsxs)(x,{id:n,$hideOnMobile:_,$paddingTop:N,children:[(0,r.jsxs)(u.W2,{children:[(b||y)&&(0,r.jsxs)(u.X2,{className:"header-row",children:[(0,r.jsx)(u.JX,{xs:12,lg:6,children:b&&(0,r.jsx)(p.X6,{type:"displaySM",className:"title",weight:"semibold",textPrimary:!0,fontSecondary:!0,as:"h2",children:b})}),(0,r.jsx)(u.JX,{xs:12,lg:6,children:y&&(0,r.jsx)(p.nv,{textSecondary:!0,typo:"paragraphLG",fontSecondary:!0,children:y})})]}),(0,r.jsx)(u.Nz,{xs:2.5,lg:5})]}),(0,r.jsxs)(u.W2,{style:{position:"relative"},children:[(0,r.jsx)(v,{onClick:()=>null==V?void 0:V.slidePrev(),disabled:U.isBeginning,$scrollable:W,"aria-label":"Vai alla slide precedente",style:{position:"absolute",left:-20,top:"50%",transform:"translateY(-50%)"},children:(0,r.jsx)(h.Z,{name:"chevron-left",ariaHidden:"true"})}),(0,r.jsx)(v,{onClick:()=>null==V?void 0:V.slideNext(),disabled:U.isEnd,$scrollable:W,"aria-label":"Vai alla slide successiva",style:{position:"absolute",right:-20,top:"50%",transform:"translateY(-50%)"},children:(0,r.jsx)(h.Z,{name:"chevron-right",ariaHidden:"true"})}),(0,r.jsx)(j,{children:(0,r.jsx)(C,{$scrollable:W,children:(0,r.jsx)(c.tq,{modules:[d.s5],spaceBetween:10,slidesPerView:"auto",grabCursor:!0,breakpoints:{1024:{spaceBetween:20}},onSwiper:e=>{X(e),updateScrollState(e)},onSlideChange:updateScrollState,onUpdate:updateScrollState,onResize:updateScrollState,onBreakpoint:updateScrollState,children:l.map(e=>{var t,n;let{hasDiscount:i}=e;return(0,r.jsx)(c.o5,{children:(0,r.jsxs)(w,{$recommended:e.recommended,children:[e.recommended&&(0,r.jsx)(O,{children:"Consigliato"}),(0,r.jsx)(S,{children:(0,r.jsx)("a",{style:{position:"relative"},href:e.slug,target:"_blank",rel:"noopener noreferrer","aria-label":"Vai alla pagina di ".concat(e.title),children:(null===(t=e.image)||void 0===t?void 0:t.src)&&(0,r.jsx)(a(),{src:e.image.src,alt:e.image.alt||e.title,sizes:"(max-width: 1023px) 85vw, 25vw",style:{objectFit:"contain"},width:135,height:195})})}),(0,r.jsxs)(k,{children:[(null===(n=e.tags)||void 0===n?void 0:n.length)>0&&(0,r.jsx)(u.kC,{wrap:"wrap",gap:1,children:e.tags.map((e,t)=>(0,r.jsx)(P,{...e,style:{padding:"5px 14px"}},t))}),(0,r.jsx)(I,{children:(0,r.jsx)(p.X6,{className:"card-title",weight:"semibold",fontSecondary:!0,content:e.title})}),(0,r.jsx)(T,{children:e.features.map(e=>(0,r.jsxs)(Z,{$enabled:e.enabled,children:[e.enabled?(0,r.jsx)(B.Yj,{}):(0,r.jsx)(B.zb,{}),(0,r.jsx)("span",{children:e.title})]},e.id))}),(0,r.jsx)(u.fu,{style:{margin:"16px 0 14px",backgroundColor:"#E2E0D4"}}),(0,r.jsxs)(z,{children:[(0,r.jsxs)(F,{children:[null!==e.price&&(0,r.jsx)(p.X6,{style:{fontSize:"16px",lineHeight:"24px"},typo:"headingSM",weight:"semibold",textPrimary:!0,fontSecondary:!0,content:(0,f.T4)({amount:e.price,currencyCode:"EUR"})}),i&&(0,r.jsx)(E,{children:(0,r.jsx)(p.nv,{style:{fontSize:"14px"},typo:"paragraphSM",fontSecondary:!0,content:(0,f.T4)({amount:e.compareAtPrice,currencyCode:"EUR"})})}),i&&e.discount&&(0,r.jsx)(M,{children:(0,r.jsx)(p.X6,{style:{fontSize:"14px",marginLeft:"auto"},typo:"paragraphSM",weight:"semibold",content:"-".concat(e.discount,"%"),fontSecondary:!0})})]}),e.savings>0&&(0,r.jsx)(p.nv,{className:"savings",fontSecondary:!0,weight:"semibold",content:"Risparmi ".concat((0,f.T4)({amount:e.savings,currencyCode:"EUR"}))}),(0,r.jsx)("div",{style:{minHeight:"20px"},children:e.containedBooksValue>0&&(0,r.jsx)(p.nv,{className:"savings",typo:"paragraphSM",content:"".concat((0,f.T4)({amount:e.containedBooksValue,currencyCode:"EUR"})," (somma prezzi singoli libri)"),weight:"semibold",fontSecondary:!0})})]}),(0,r.jsx)(A,{children:(0,r.jsx)(m.Z,{variant:e.recommended?"coral":"ghost",label:e.canBuy?"Aggiungi al carrello":"Non disponibile",iconEnd:"chevron-right",fullWidth:!0,disabled:!e.canBuy||"updating"===R||!e.variantId,handleClick:()=>handleAddToCart(e)})})]})]})},e.id)})})})})]}),(0,r.jsx)(g.Z,{isVisible:$,setShowTooltip:Y,title:null==K?void 0:K.title,image:null!=K&&null!==(t=K.image)&&void 0!==t&&!!t.src&&{url:K.image.src,alternativeText:K.image.alt||""},price:(null==K?void 0:K.price)!==null&&(null==K?void 0:K.price)!==void 0?(0,f.T4)({amount:K.price,currencyCode:"EUR"}):void 0})]}):null}},83480:function(e,t,n){n.r(t),n.d(t,{AdditionalInfo:function(){return organisms_AdditionalInfo},Banner:function(){return B}
1,BentoBox:function(){return organisms_BentoBox},BentoBoxGrid:function(){return a4},BookCover:function(){return organisms_BookCover},CardsGrid:function(){return organisms_CardsGrid},CarouselCards:function(){return nr},CategoriesFilter:function(){return organisms_CategoriesFilter},CheckoutConfigurator:function(){return organisms_CheckoutConfigurator},ComparisonBookReference:function(){return r2.Z},ComparisonCards:function(){return organisms_ComparisonCards},ComparisonReference:function(){return organisms_ComparisonReference},CookieTable:function(){return organisms_CookieTable},CourseCover:function(){return organisms_CourseCover},CourseVariants:function(){return organisms_CourseVariants},EditorialCards:function(){return od},EditorialReviews:function(){return organisms_EditorialReviews},Faq:function(){return i_},FeaturedArticles:function(){return iT},FeaturesLists:function(){return iM},FilterTable:function(){return organisms_FilterTable},FormSection:function(){return iN},Hero:function(){return iJ},HeroHomepage:function(){return organisms_HeroHomepage},Iframe:function(){return ll},Image:function(){return ld},MiscProductCover:function(){return organisms_MiscProductCover},Signup:function(){return organisms_Signup},SocialProof:function(){return lP},Tabs:function(){return lE},Testimonials:function(){return organisms_Testimonials},Text:function(){return lG},TextImage:function(){return organisms_TextImage},Timeline:function(){return ae},TimelineCarousel:function(){return an},TypeformEmbed:function(){return aW},VideoSection:function(){return organisms_VideoSection}});var r=n(85893),i=n(67294),l=n(45697),a=n.n(l),o=n(86603),s=n(8236),c=n(25675),d=n.n(c),u=n(93945),p=n(5329),m=n(12220),h=n(82729),g=n(37946);function _templateObject(){let e=(0,h._)(["\n    > *:not(:last-child) {\n      ","\n    }\n  "]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,h._)(["\n    ","\n  "]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,h._)(["\n    flex-wrap: wrap;\n    row-gap: ",";\n  "]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  ",";\n\n  ","\n\n  ","\n\n  ","\n"]);return _templateObject3=function(){return e},e}n(11640);let f=g.ZP.div.withConfig({componentId:"sc-e88f8760-0"})(_templateObject3(),e=>{let{theme:t,$direction:n}=e;return n?"object"==typeof n?Object.entries(t.breakpoints).map(e=>{let[r]=e;return n[r]&&t.mediaQuery[r]("\n            flex-direction: ".concat(n[r],";\n          "))}):"flex-direction: ".concat(n,";"):"flex-direction: column;"},e=>{let{theme:t,space:n,$direction:r}=e;return n&&(0,g.iv)(_templateObject(),"object"==typeof n?Object.entries(t.breakpoints).map(e=>{let[i]=e;return r[i]&&t.mediaQuery[i]("\n            margin-".concat("row"==r[i]?"right":"bottom",": ").concat(t.rem(n[i]?n[i]:8),";\n            margin-").concat("row"==r[i]?"bottom":"right",": 0;\n          "))}):"\n          margin-right: ".concat(t.rem(n||8),";\n        "))},e=>{let{theme:t,fullWidth:n}=e;return n&&(0,g.iv)(_templateObject1(),Array.isArray(n)?Object.entries(t.breakpoints).map(e=>{let[r]=e;return t.mediaQuery[r]&&t.mediaQuery[r]("\n          width: ".concat(-1!==n.indexOf(r)?"100%":"auto",";\n        "))}):"width: 100%;")},e=>{let{isWrap:t}=e;return t&&(0,g.iv)(_templateObject2(),e=>{let{theme:t}=e;return t.rem(16)})}),ItemsGrouped=e=>{let{children:t,direction:n,space:i,isWrap:l,fullWidth:a,style:o}=e;return(0,r.jsx)(f,{$direction:n,space:i,isWrap:l,fullWidth:a,style:o,children:t})};ItemsGrouped.displayName="Items Grouped",ItemsGrouped.propTypes={direction:a().oneOfType([a().number,a().object]),space:a().oneOfType([a().number,a().object]),children:a().node};var b=n(57896),y=n(40887);function styles_templateObject(){let e=(0,h._)(["\n    opacity: 1;\n    transform: translateX(-50%) translateY(0);\n  "]);return styles_templateObject=function(){return e},e}function styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  min-height: 100%;\n  background-color: ",";\n  border-radius: 0;\n  position: absolute;\n  left: 50%;\n  transform: translateX(-50%) translateY(50px);\n  opacity: 0;\n  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n\n  ","\n\n  ","\n"]);
1return styles_templateObject1=function(){return e},e}function styles_templateObject2(){let e=(0,h._)(["\n  position: absolute;\n  top: ",";\n  right: ",";\n  transform: translateY(0);\n  z-index: 2;\n\n  ","\n\n  @media (min-width: 800px) and (max-height: 900px) {\n    top: 0;\n    right: -24px;\n    transform: translate(100%, 0);\n  }\n"]);return styles_templateObject2=function(){return e},e}function styles_templateObject3(){let e=(0,h._)([""]);return styles_templateObject3=function(){return e},e}let _=g.ZP.div.withConfig({componentId:"sc-b43130c0-0"})(styles_templateObject1(),e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.backgroundColor},e=>{let{isOpen:t}=e;return t&&(0,g.iv)(styles_templateObject())},e=>{let{theme:t,containsForm:n}=e;return t.mediaQuery.md("\n    width: auto;\n    min-width: ".concat(n?"auto":t.rem(550),";\n    min-height: auto;\n    border-radius: ").concat(t.rem(16),";\n  "))}),x=g.ZP.div.withConfig({componentId:"sc-b43130c0-1"})(styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    top: -24px;\n    right: 0;\n    transform: translateY(-100%);\n  ")}),j=g.ZP.div.withConfig({componentId:"sc-b43130c0-2"})(styles_templateObject3());var Modal_ModalBase=e=>{let{children:t,isOpen:n,colorScheme:i="white",containsForm:l=!1}=e,{closeModal:a}=(0,b.dd)();return(0,r.jsxs)(_,{isOpen:n,colorScheme:i,containsForm:l,children:[(0,r.jsx)(x,{children:(0,r.jsx)(m.Z,{iconEnd:"x-mark",variant:"secondary",handleClick:a})}),(0,r.jsx)(j,{children:t})]})};function Banner_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n"]);return Banner_styles_templateObject=function(){return e},e}function Banner_styles_templateObject1(){let e=(0,h._)(["\n    padding-left: ",";\n    padding-right: ",";\n  "]);return Banner_styles_templateObject1=function(){return e},e}function Banner_styles_templateObject2(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n  "]);return Banner_styles_templateObject2=function(){return e},e}function Banner_styles_templateObject3(){let e=(0,h._)(["\n  border-radius: ",";\n  padding-top: ",";\n  padding-bottom: ",";\n  padding-left: ",";\n  padding-right: ",";\n\n\n  ","\n\n  ","\n\n  ","\n"]);return Banner_styles_templateObject3=function(){return e},e}function _templateObject4(){let e=(0,h._)(["\n  border-radius: ",";\n  padding-block: ",";\n  padding-inline: ",";\n  text-align: center;\n  background-color: ",";\n  width: fit-content;\n  margin: 0 auto;\n  border: 0.5px solid #1B1818;\n  margin-top: 0;\n  margin-bottom: 0px;\n\n  ","\n\n  .heading {\n    font-size: 28px;\n    line-height: 32px;\n    color: #1b1818;\n    margin-bottom: 5px;\n  }\n\n  .subtitle {\n    font-size: 18px;\n    line-height: 26px;\n    color: #5A5656;\n  }\n"]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,h._)(["\n    mask-image: url('/masks/mask-",".svg');\n    mask-size: 100%;\n    mask-repeat: no-repeat;\n    mask-position: center;\n  "]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,h._)(["\n  position: relative;\n  width: 100%;\n  aspect-ratio: 4 / 4;\n\n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return _templateObject6=function(){return e},e}let v=(0,g.ZP)(p.W2).withConfig({componentId:"sc-caca5d93-0"})(Banner_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,tabItem:n}=e;return t.mediaQuery.lg("\n    text-align: ".concat(n?"left":"center",";\n  "),!0)}),C=g.ZP.div.withConfig({componentId:"sc-caca5d93-1"})(Banner_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t,newsletter:n}=e;
1return n&&(0,g.iv)(Banner_styles_templateObject1(),t.rem(16),t.rem(16))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(16),";\n    padding-top: ").concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(Banner_styles_templateObject2(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)}),w=g.ZP.div.withConfig({componentId:"sc-caca5d93-2"})(_templateObject4(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(30)},e=>{let{theme:t}=e;return t.rem(25)},e=>{let{hexBgColor:t}=e;return t||"#E9F1ED"},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-block: 40px;\n    padding-inline: ".concat(t.rem(80),";\n    margin-top: ").concat(t.rem(15),";\n    margin-bottom: ").concat(t.rem(25),";\n  "))}),O=g.ZP.div.withConfig({componentId:"sc-caca5d93-3"})(_templateObject6(),e=>{let{maskType:t}=e;return t&&(0,g.iv)(_templateObject5(),t)});var S=n(16310),create_validation_schema=(e,t)=>{let{name:n,validationType:r,validations:i=[],type:l}=t;if(!S[r])return e;let a=S[r]();return i&&i.length&&i.forEach(e=>{let{params:t=[],type:n}=e;if(a[n]){if("when"===n&&"object"==typeof t[1]&&t[1].is&&t[1].then){let e=S[r]();t[1].then.forEach(t=>{e=a[t.type](...t.params)});let i=t[1].is.split("not:");a=a[n](t[0],{is:e=>i.length>1?e!==i[1]:!!e&&i[0]===e,then:e})}else if("file"!==l)a=a[n](...t);else{let e=!!i&&i.length&&i.find(e=>"required"===e.type);a=t&&t.length?a[n](t[0],t[1],{fileSize:n=>!e||!n||n.size<=Number(t[2]),fileFormat:n=>!e||!n||t[2].includes(n.type)}[t[0]]):a[n]()}}}),e[n]=a,e},create_fetch_body=e=>{let t=new FormData;for(let r in e)if(null!==e[r]&&void 0!==e[r]&&""!==e[r]){if(Array.isArray(e[r]))for(var n=0;n<e[r].length;n++)t.append("".concat(r,"[]"),JSON.stringify(e[r][n]));else t.append(r,e[r])}return t},k=n(44407),P=n(73498),I=n(82580),T=n(5974),Form_FormClear=e=>{let{resetForm:t}=(0,I.u6)();return(0,r.jsx)(m.Z,{handleClick:()=>{t()},...e})},Form_FormSubmit=e=>{let{button:t,isValid:n,isSubmitting:i,errors:l}=e;return(0,r.jsx)(m.Z,{...t,disabled:i})};function FormMessage_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  margin-top: ",";\n  /* padding: ","; */\n  background-color: ",";\n  color: ",";\n  z-index: ",";\n  transition: all 0.5s ease-in-out;\n"]);return FormMessage_styles_templateObject=function(){return e},e}function FormMessage_styles_templateObject1(){let e=(0,h._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: ",";\n\n  /* button {\n    color: ",";\n\n    &:hover {\n      i {\n        color: ",";\n      }\n    }\n  } */\n"]);return FormMessage_styles_templateObject1=function(){return e},e}let Z=g.ZP.div.withConfig({componentId:"sc-96826185-0"})(FormMessage_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.rem(16,0)},e=>{let{theme:t,status:n}=e;return t.colors.status[n].default},e=>{let{theme:t}=e;return t.colors.grayscale.white},e=>{let{theme:t}=e;return t.layers.formMessage}),z=g.ZP.div.withConfig({componentId:"sc-96826185-1"})(FormMessage_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colors.grayscale.white},e=>{let{theme:t}=e;return t.colors.grayscale.white});var Form_FormMessage=e=>{let{status:t,messages:n}=e;return n?(0,r.jsx)(Z,{status:t,children:(0,r.jsx)(z,{children:(0,r.jsx)("ul",{children:Object.keys(n).map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(u.nv,{typo:"paragraphLG",content:n[e]})},e))})})}):null},Form_FormDebug=()=>(0,r.jsxs)("div",{style:{margin:"3rem 0",borderRadius:4,background:"#f6f8fa",boxShadow:"0 0 1px  #eee inset"},children:[(0,r.jsx)("div",{style:{textTransform:"uppercase",fontSize:11,borderTopLeftRadius:4,borderTopRightRadius:4,fontWeight:500,padding:".5rem",background:"#555",color:"#fff",letterSpacing:"1px"},children:"Formik State"}),(0,r.jsx)(I.IG,{children:e=>{let{validationSchema:t,validate:n,onSubmit:i,...l}=e;return(0,r.jsx)("pre",{style:{fontSize:".85rem",padding:".25rem .5rem",overflowX:"auto"},children:JSON.stringify(l,null,2)})}})]}),Form_HiddenHubSpotForm=e=>{let{config:t}=e,n=(0,i.useId)(),l="hubspot-hidden-form-".concat(n.replace(/:/g,""));return((0,i.useEffect)(()=>
1{if(!(null==t?void 0:t.portalId)||!(null==t?void 0:t.formId))return;let createHubSpotForm=()=>{var e;if(!(null===(e=window.hbspt)||void 0===e?void 0:e.forms))return;let n=document.getElementById(l);n&&"true"!==n.dataset.initialized&&(window.hbspt.forms.create({portalId:t.portalId,formId:t.formId,region:t.region||"eu1",target:"#".concat(l)}),n.dataset.initialized="true")},e=document.querySelector('script[src="//js-eu1.hsforms.net/forms/embed/v2.js"], script[src="https://js-eu1.hsforms.net/forms/embed/v2.js"]');if(e){var n;return(null===(n=window.hbspt)||void 0===n?void 0:n.forms)?createHubSpotForm():e.addEventListener("load",createHubSpotForm),()=>{e.removeEventListener("load",createHubSpotForm)}}let r=document.createElement("script");return r.src="https://js-eu1.hsforms.net/forms/embed/v2.js",r.charset="utf-8",r.type="text/javascript",r.async=!0,r.onload=createHubSpotForm,document.body.appendChild(r),()=>{r.onload=null}},[t,l]),(null==t?void 0:t.portalId)&&(null==t?void 0:t.formId))?(0,r.jsx)("div",{style:{display:"none"},children:(0,r.jsx)("div",{id:l})}):null},F=n(23134),E=n(62907),get_url_params=()=>{let e=window.location.search,t=new URLSearchParams(e),n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","fclid","ttclid","gclid","codop"].reduce((e,n)=>(t.has(n)&&(e[n]=t.get(n)),e),{});return n.url=window.location.href,n},M=n(45881);let getErrors=e=>{let t=e.reduce((e,t)=>{let{path:n,message:r}=t;return e[n[0]]=r,e},{});return t},getFilters=e=>{let t=[];return Object.entries(e).forEach(e=>{let[n,r]=e;switch(typeof r){case"string":r&&t.push("filters[".concat(n,"]=").concat(r));break;case"object":Array.isArray(r)?r.length>0&&(r.length>1?r.forEach((e,r)=>{t.push("filters".concat(n,"[$in][").concat(r,"]=").concat(e))}):t.push("filters[".concat(n,"]=").concat(r.join(",")))):Object.entries(r).forEach(e=>{let[r,i]=e;Array.isArray(i)?i.length>0&&(i.length>1?i.forEach((e,i)=>{t.push("filters[".concat(n,"][").concat(r,"][$in][").concat(i,"]=").concat(e))}):t.push("filters[".concat(n,"][").concat(r,"]=").concat(i.join(",")))):i&&t.push("filters[".concat(n,"][").concat(r,"]=").concat(i))})}}),t.join("&")},getCookieValue=e=>{if("undefined"==typeof document)return"";let t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith("".concat(e,"=")));return t?decodeURIComponent(t.substring(e.length+1)):""};var atoms_Form=e=>{var t;let{method:n="POST",endpoint:l,hubspotscript:a=null,baseUrlEndpoint:o="cms",fieldsets:c=[],initialValues:d,recaptcha:m=!1,validationSchema:h={},validateOnMount:g=!1,enableReinitialize:f=!1,tracking:b=!1,successMessage:y=!1,clear:_=!1,forceReset:x=!1,avoidReset:j=!1,submit:v=null,onSubmit:C=null,onSuccessSubmit:w=null,onBeforeSubmit:O=null,onFormChange:Z=null,isFilter:z=!1,additionalFilters:A=[],fieldsToUpdate:B=[],debug:N=!1}=e,[D,R]=(0,i.useState)(null),[L,Q]=(0,i.useState)(!1),[q,H]=(0,i.useState)(c),V=(null===(t=(0,i.useContext)(s.x))||void 0===t?void 0:t.selectedColorScheme)||"white",{sendGTM:X}=(0,P.rS)(),U=null;(0,i.useEffect)(()=>{U=get_url_params();let e=(0,M.Z)(U),t={};e.forEach(e=>{t[e.name]=e.value}),H(()=>[{fields:[...c[0].fields,...e]}])},[]),q.forEach(e=>{let{fields:t}=e,n=t.reduce(create_validation_schema,{});h={...h,...n}});let downloadPdfFile=e=>{let t=function(e){let t=e.split("/");return t.pop()}(e),n=document.createElement("a");if(n.href=e,n.setAttribute("download",t),/(iPad|iPhone|iPod|Android)/i.test(navigator.userAgent)){let e=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});n.dispatchEvent(e)}else n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n)},G={"medicina-odontoiatria-veterinaria":"med","medicina-in-inglese":"meding","professioni-sanitarie":"san","bocconi-e-luiss":"boc",psicologia:"psi",ingegneria:"ing",economia:"eco","biologia-biotecnologie-farmacia-chimica":"bio","lettere-e-filosofia":"let",comunicazione:"com",architettura:"arc",design:"des","scienze-della-formazione-primaria":"for","scienze-motorie":"mot",lingue:"lin",ssm:"ssm"},onFormSubmit=async(e,t)=>{let{resetForm:r,setErrors:i}=t,a={},s=getCookieValue("hubspotutk"),c=window.location.href,d="undefined"!=typeof document?document.title:"",u={...e,hubspotutk:s,page_uri:c,page_name:d};u.content_category||(u.content_category=G[u.interestedArea]),u.em=(0,E.Z)(u.email).then(e=>e);try{var p;O&&await O();let e={method:n};if(l)switch(n){case"POST":Object.assign(e,{body:create_fetch_body(u)});break;case"GET":if(z){let t=getFilters(u);Object.assign(e,{filters:"".concat(t).concat(t&&A.length>0&&"&").concat(A.join("&"))})}else Object.assign(e,{params:u})}if(null==(a=await (0,k.R2)(l,e,o))?void 0:null===(p=a.details)||void 0===p?void 0:p.errors){let e=await getErrors(a.details.errors);Q(!1),R(e),await i(e);return}if(null==a?void 0:a.error){let e={general:a.message};Q(!1),R(e),await i(e);return}if(null==a?void 0:a.success){(null==b?void 0:b.ga)&&X({eventName:b.ga.trigger,values:u});let e="download_pdf"===u.lead_type;e&&downloadPdfFile(u.file_name),R(null),Q(!0),w&&await w(u,a)}j||await r(x?{values:{}}:null)}catch(e){throw console.error("Form error: ".concat(e)),e}finally{C&&await C(u,a)}};return(0,r.jsxs)(F._D,{children:[(0,r.jsx)(I.J9,{enableReinitialize:f,validateOnMount:g,validationSchema:h?(0,S.object)().shape(h):null,initialValues:d,onSubmit:onFormSubmit,children:e=>
1{let{setFieldValue:t,isValid:l,isSubmitting:a,handleSubmit:o,errors:s,values:c}=e;return Z&&Z(c),(0,i.useEffect)(()=>{B.length>0&&B.forEach(e=>t(e.name,e.value))},[B]),(0,r.jsxs)(F.l0,{method:n,onSubmit:o,colorScheme:V,hide:y&&L,children:[q&&q.length?q.map((e,t)=>(0,r.jsx)(T.Z,{...e},t)):null,_||v?(0,r.jsxs)(F.iN,{children:[_?(0,r.jsx)(Form_FormClear,{..._}):null,v?(0,r.jsx)(Form_FormSubmit,{button:v,isValid:l,isSubmitting:a,errors:s}):null]}):null,N?(0,r.jsx)(Form_FormDebug,{}):null]})}}),(0,r.jsx)(Form_HiddenHubSpotForm,{config:a}),L?(0,r.jsxs)(F.Im,{children:[(0,r.jsx)(u.X6,{...y.title,fontPrimary:!0}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{...y.body})]}):null,D?(0,r.jsx)(Form_FormMessage,{status:"error",messages:D}):null]})},merge_additional_form_fields=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;if(t.length>0){let n={};t.forEach(e=>{n[e.name]=e.value});let r=e.initialValues||{},i=t.every(e=>r.hasOwnProperty(e.name));e.initialValues={...r,...n},!i&&e.fieldsets&&e.fieldsets[0]&&e.fieldsets[0].fields&&e.fieldsets[0].fields.unshift(...t)}if(n){let t=e.fieldsets[0].fields.some(e=>"is_enable_marketing"===e.name);!t&&(e.initialValues={...e.initialValues,is_enable_marketing:[]},e.fieldsets&&e.fieldsets[0]&&e.fieldsets[0].fields&&e.fieldsets[0].fields.push({type:"inputGroup",name:"is_enable_marketing",options:[{type:"checkbox",id:"marketing",name:"is_enable_marketing",value:"true",label:"Acconsento all’invio di comunicazioni marketing: newsletters, info sui test e materiali gratuiti."}],col:{xs:12}}))}return e},A={ata:JSON.parse('{"method":"POST","endpoint":"api/lead/ata","hubspotscript":{"portalId":"147382280","formId":"a9a4bb08-bee8-4e8c-bdd5-e8f7a22e4a9e","region":"eu1"},"initialValues":{"first_name":"","last_name":"","email":"","coupon_code":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"text","id":"ata-form-firstname","name":"first_name","label":"Nome*","placeholder":"Nome*","autoComplete":"given-name","aria-required":"true","col":{"xs":12,"md":6},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"text","id":"ata-form-lastname","name":"last_name","label":"Cognome*","placeholder":"Cognome*","autoComplete":"family-name","aria-required":"true","col":{"xs":12,"md":6},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"email","id":"ata-form-email","name":"email","label":"Email*","placeholder":"Email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"text","id":"ata-form-coupon","name":"coupon_code","label":"Codice Coupon*","placeholder":"Codice Coupon*","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"ata-form-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}],"submit":{"type":"submit","label":"Invia","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),contact:JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/contact-form","hubspotscript":{"portalId":"147382280","formId":"f9547e28-d693-49f9-9ae7-40b64336526e","region":"eu1"},"initialValues":{"name":"","email":"","object":"","order":"","reason":"","
1is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"text","id":"contact-form-name","name":"name","label":"Nome*","placeholder":"Nome*","autoComplete":"given-name","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"email","id":"contact-form-email","name":"email","label":"Email*","placeholder":"Email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"text","id":"contact-form-object","name":"object","label":"Oggetto*","placeholder":"Oggetto*","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"text","id":"contact-form-order","name":"order","label":"Numero d\'ordine","placeholder":"Numero d\'ordine","col":{"xs":12}},{"type":"textarea","id":"contact-form-reason","name":"reason","label":"Messaggio*","placeholder":"Messaggio*","autoComplete":"off","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}],"submit":{"type":"submit","label":"Invia","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),"download-pdf":JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/download","hubspotscript":{"portalId":"147382280","formId":"47816baf-9b90-4bad-8a17-2cfa90df8f54","region":"eu1"},"initialValues":{"email":"","test_year":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"email","id":"download-pdf-email","name":"email","label":"Il tuo indirizzo email*","placeholder":"Il tuo indirizzo email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["L\'email deve essere valida"]}]},{"type":"select","id":"email-and-year-test_year","name":"test_year","label":"Anno del test di tuo interesse","placeholder":"Anno del test di tuo interesse","isSearchable":false,"options":[{"value":"2027","label":"2027"},{"value":"2028","label":"2028"},{"value":"2029","label":"2029"}],"col":{"xs":12}},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"download-pdf-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}],"submit":{"type":"submit","label":"Scarica il PDF","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),"email-and-year":JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/newsletter","hubspotscript":{"portalId":"147382280","formId":"16c46791-0cc1-4f33-b415-766d5a19d33a","region":"eu1"},"initialValues":{"email":"","test_year":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"email","id":"email-and-year-email","name":"email","label":"Il tuo indirizzo email*","placeholder":"Il tuo indirizzo email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["L\'email deve essere val
1ida"]}]},{"type":"select","id":"email-and-year-test_year","name":"test_year","label":"Anno del test di tuo interesse","placeholder":"Anno del test di tuo interesse","isSearchable":false,"options":[{"value":"2027","label":"2027"},{"value":"2028","label":"2028"},{"value":"2029","label":"2029"}],"col":{"xs":12}},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"email-and-year-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}],"submit":{"type":"submit","label":"Invia la richiesta","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),"email-only":JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/newsletter","hubspotscript":{"portalId":"147382280","formId":"16c46791-0cc1-4f33-b415-766d5a19d33a","region":"eu1"},"initialValues":{"email":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"email","id":"email-only-email","name":"email","label":"Il tuo indirizzo email*","placeholder":"Il tuo indirizzo email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"email-only-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}],"submit":{"type":"submit","label":"Invia la richiesta","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),"email-year-and-area":JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/newsletter","hubspotscript":{"portalId":"147382280","formId":"16c46791-0cc1-4f33-b415-766d5a19d33a","region":"eu1"},"initialValues":{"email":"","test_year":"","interestedArea":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"email","id":"email-year-and-area-email","name":"email","label":"Il tuo indirizzo email*","placeholder":"Il tuo indirizzo email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["L\'email deve essere valida"]}]},{"type":"select","id":"email-and-year-test_year","name":"test_year","label":"Anno del test di tuo interesse","placeholder":"Anno del test di tuo interesse","isSearchable":false,"options":[{"value":"2027","label":"2027"},{"value":"2028","label":"2028"},{"value":"2029","label":"2029"}],"col":{"xs":12}},{"type":"select","id":"email-year-and-area-interestedArea","name":"interestedArea","label":"Aree di interesse","placeholder":null,"isSearchable":false,"options":[{"label":"Medicina, Odontoiatria, Veterinaria","value":"medicina-odontoiatria-veterinaria"},{"label":"Professioni Sanitarie","value":"professioni-sanitarie"},{"label":"Bocconi e LUISS","value":"bocconi-e-luiss"},{"label":"Economia","value":"economia"},{"label":"Ingegneria","value":"ingegneria"},{"label":"Medicina in inglese","value":"medicina-in-inglese"},{"label":"Biologia, Biotecnologie, Farmacia, Chimica","value":"biologia-biotecnologie-farmacia-chimica"},{"label":"Psicologia","value":"psicologia"},{"label":"Design","value":"design"},{"label":"Architettura","value":"architettura"},{"label":"Comunicazione","value":"comunicazione"},{"label":"Scienze della Formazione primaria","value":"scienze-della-formazione-primaria"},{"label":"Lettere e Filosofia","value":"lettere-e-filosofia"},{"label":"Scienze Motorie","value":"scienze-motorie"},{"label":"Lingue","value":"lingue"},{"label":"Concorso SSM","value":"ssm"}],"col":{"xs":12}},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"email-year-and-area-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}
1],"submit":{"type":"submit","label":"Invia la richiesta","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),"email-year-area-and-parent":JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/newsletter","hubspotscript":{"portalId":"147382280","formId":"16c46791-0cc1-4f33-b415-766d5a19d33a","region":"eu1"},"initialValues":{"email":"","test_year":"","interestedArea":"","userType":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"email","id":"email-year-area-and-parent-email","name":"email","label":"Il tuo indirizzo email*","placeholder":"Il tuo indirizzo email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["L\'email deve essere valida"]}]},{"type":"select","id":"email-and-year-test_year","name":"test_year","label":"Anno del test di tuo interesse","placeholder":"Anno del test di tuo interesse","isSearchable":false,"options":[{"value":"2027","label":"2027"},{"value":"2028","label":"2028"},{"value":"2029","label":"2029"}],"col":{"xs":12}},{"type":"select","id":"email-year-area-and-parent-interestedArea","name":"interestedArea","label":"Aree di interesse","placeholder":null,"options":[{"label":"Medicina, Odontoiatria, Veterinaria","value":"medicina-odontoiatria-veterinaria"},{"label":"Professioni Sanitarie","value":"professioni-sanitarie"},{"label":"Bocconi e LUISS","value":"bocconi-e-luiss"},{"label":"Economia","value":"economia"},{"label":"Ingegneria","value":"ingegneria"},{"label":"Medicina in inglese","value":"medicina-in-inglese"},{"label":"Biologia, Biotecnologie, Farmacia, Chimica","value":"biologia-biotecnologie-farmacia-chimica"},{"label":"Psicologia","value":"psicologia"},{"label":"Design","value":"design"},{"label":"Architettura","value":"architettura"},{"label":"Comunicazione","value":"comunicazione"},{"label":"Scienze della Formazione primaria","value":"scienze-della-formazione-primaria"},{"label":"Lettere e Filosofia","value":"lettere-e-filosofia"},{"label":"Scienze Motorie","value":"scienze-motorie"},{"label":"Lingue","value":"lingue"},{"label":"Concorso SSM","value":"ssm"}],"col":{"xs":12}},{"type":"inputGroup","label":"Sei interessato in qualit\xe0 di:","options":[{"type":"radio","id":"email-year-area-and-parent-userTypeGenitore","name":"userType","value":"genitore","label":"Genitore"},{"type":"radio","id":"email-year-area-and-parent-userTypeStudente","name":"userType","value":"studente","label":"Studente"}],"col":{"xs":12}},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"email-year-area-and-parent-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}],"submit":{"type":"submit","label":"Invia la richiesta","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),simulation:JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/simulation","hubspotscript":{"portalId":"147382280","formId":"430d7bee-d41f-4493-ba82-0c2d9e993bcc","region":"eu1"},"initialValues":{"interestedArea":"","name":"","lastname":"","email":"","phone":"","test_year":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"select","id":"simulation-interestedArea","name":"interestedArea","label":"Aree di interesse","placeholder":"Aree di interesse","options":[{"label":"Medicina, Odontoiatria, Veterinaria","value":"medicina-odontoiatria-veterinaria"},{"label":"Professioni Sanitarie","value":"professioni-sanitarie"},{"label":"Bocconi e LUISS","value":"bocconi-e-luiss"},{"label":"Economia","value":"economia"},{"label":"Ingegneria","value":"ingegneria"},{"label":"Medicina in inglese","value":"medicina-in-inglese"},{"label":"Biologia, Biotecnologie, Farmacia, Chimica","value":"biologia-biotecnologie-farmacia-chimica"},{"label":"Psicologia","value":"psicologia"},{"label":"Design","value":"design"},{"label":"Architettura","value":"architettura"},{"label":"Comunicazione","value":"comunicazione"},{"label":"Scienze della Formazione primaria","value":"scienze-della-formazione-primaria"},{"label":"Lettere e Filosofia","value":"lettere-e-filosofia"},{"label":"Scienze Motorie","value":"scienze-motorie"},{"label":"Lingue","value":"lingue"},{"label":"Concorso SSM","value":"ssm"}],"col":{"xs":12}},{"type":"text","id":"simulation-name","name":"name","label":"Nome*","placeholder":"Nome*","aria-required":"true","col":{"xs":12,"md":6},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"text","id":"simulation-lastname","name":"lastname","label":"Cognome*","placeholder":"Cognome*","aria-required":"true","col":{"xs":12,"md":6},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"email","id":"simulation-email","name":"email","label":"Email*","placeholder":"Email*","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"tel","id":"simulation-phone","name":"phone","label":"Cellulare*","placeholder":"Cellulare*","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"inputGroup","name":"test_year","label":"Sono interessato al test per l\'anno","options":[{"type":"radio","id":"simulation-testYear2027","name":"test_year","value":"2027","label":"2027"},{"type":"radio","id":"simulation-testYear2028","name":"test_year","value":"2028","label":"2028"},{"type":"radio","id":"simulation-testYear2029","name":"test_year","value":"2029","label":"2029"}],"col":{"xs":12}},{"type":"hidden","id":"simulation-hubspotutk","name":"hubspotutk","col":{"xs":12}},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"simulation-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}
1],"submit":{"type":"submit","label":"Invia la richiesta","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}'),"email-and-parent":JSON.parse('{"method":"POST","endpoint":"api/lead/alphalead/newsletter","hubspotscript":{"portalId":"147382280","formId":"16c46791-0cc1-4f33-b415-766d5a19d33a","region":"eu1"},"initialValues":{"email":"","userType":"","is_anonymous":[],"hubspotutk":""},"fieldsets":[{"fields":[{"type":"email","id":"email-and-parent-email","name":"email","label":"Il tuo indirizzo email*","placeholder":"Il tuo indirizzo email*","autoComplete":"email","aria-required":"true","col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["L\'email deve essere valida"]}]},{"type":"inputGroup","label":"Sei interessato in qualit\xe0 di:*","name":"userType","options":[{"type":"radio","id":"email-and-parent-userTypeGenitore","name":"userType","value":"genitore","label":"Genitore"},{"type":"radio","id":"email-and-parent-userTypeStudente","name":"userType","value":"studente","label":"Studente"}],"col":{"xs":12},"validationType":"string","validations":[{"type":"required","params":["Questo campo \xe8 richiesto"]}]},{"type":"inputGroup","name":"is_anonymous","options":[{"type":"checkbox","id":"email-and-parent-privacy-terms","name":"is_anonymous","value":"true","label":"Ho preso visione dell\'<a href=\\"/privacy-policy-web-marketing\\" target=\\"_blank\\">informativa privacy</a>. *"}],"col":{"xs":12},"validationType":"array","validations":[{"type":"min","params":[1,"Accetta le condizioni prima di inviare"]}]}]}],"submit":{"type":"submit","label":"Invia la richiesta","iconEnd":"arrow-right","variant":"primary","fullWidth":true},"successMessage":{"title":{"as":"h4","typo":"displayMD","content":"Abbiamo ricevuto la tua richiesta!"},"body":{"as":"p","typo":"paragraphMD","content":"Controlla la tua casella di posta, a breve riceverai nostre notizie."}},"tracking":{"ga":{"trigger":"generate_lead"},"alphalead":{"meta":{"company":"alphatest"},"tiktok":{"company":"alphatest","service_type":"tiktok"}}},"enableReinitialize":true}')};let manipulateForm=e=>{try{let{formType:t,additionalFields:n=[],additionalHiddenFields:r=[],has_marketing:i=!1}=e;if(t){let e=A[t];if(e){let t=merge_additional_form_fields(e,[...n,...r],i);return t}throw Error("Form data not found")}}catch(e){throw console.log(e),Error("createForm error",e)}};var hooks_useFormData=e=>{let t=manipulateForm(e);return{formData:t}},Banner_BannerNewsletter=e=>{let{sectionId:t,colorScheme:n,title:l,subtitle:a,image:o,imageShape:s,submitButtonLabel:c,form:m}=e,{formData:h}=hooks_useFormData(m),[g,f]=(0,i.useState)(!1),{closeModal:y}=(0,b.dd)();return c&&(h.submit.label=c),(0,r.jsx)(C,{sectionId:t,colorScheme:n,newsletter:!0,children:(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:o.src?5:12,$offset:{lg:"".concat(o.src?1:0)},$order:{xs:2,lg:1},$direction:"column",justify:"center",align:{xs:"flex-start",lg:"flex-start"},children:[g?null:(0,r.jsxs)(r.Fragment,{children:[l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.X6,{...l,fontPrimary:!0}),(0,r.jsx)(p.Nz,{xs:2})]}):null,a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{...a,textSecondary:!0}),(0,r.jsx)(p.Nz,{xs:2})]}):null]}),h?(0,r.jsx)(atoms_Form,{...h,onSuccessSubmit:()=>{f(!0),setTimeout(()=>{y()},2e3)}}):null]}),o.src?(0,r.jsx)(p.JX,{xs:12,lg:5,$offset:{lg:1},$order:{xs:1,lg:2},justify:"center",children:(0,r.jsx)(O,{maskType:s,children:(0,r.jsx)(d(),{src:o.src,alt:o.alt,fill:!0,"aria-hidden":"true",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw"})})}):null]})})},Modal_ModalNewsletter=e=>{let{modal:t}=e,{body:n,form:i,type:l}=t;return(0,r.jsx)(s.Z,{colorScheme:null==i?void 0:i.colorScheme,children:(0,r.jsx)(Modal_ModalBase,{isOpen:!0,colorScheme:(null==i?void 0:i.colorScheme)?
1i.colorScheme:"white",containsForm:!!i,children:(0,r.jsx)("div",{style:{minWidth:i?"auto":void 0,minHeight:i?"auto":"550px",maxHeight:"70vh",overflow:"auto",padding:"24px"},children:"text"===l?(0,r.jsx)(u.nv,{children:n}):(0,r.jsx)(Banner_BannerNewsletter,{...i})})})})},Banner_BannerImage=e=>{let{sectionId:t,colorScheme:n,title:i,subtitle:l,ctaPrimary:a,ctaSecondary:o,image:s,imageShape:c,tabItem:h=!1,modalPrimary:g,modalSecondary:f}=e,{showModal:y}=(0,b.dd)(),_=s&&s.src,showModalHandler=e=>{let t="primary"===e?g:f;y(Modal_ModalNewsletter,{modal:t})};return(0,r.jsx)(C,{sectionId:t,colorScheme:n,children:(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:_?5:10,$offset:{lg:1},$order:{xs:2,lg:1},$direction:"column",justify:"center",align:{xs:h?"flex-start":"center",lg:"flex-start"},children:[i?(0,r.jsx)(u.X6,{...i,fontPrimary:!0}):null,l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{...l,textSecondary:!0,as:"div"})]}):null,a||o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsxs)(ItemsGrouped,{direction:{xs:"column",lg:"row"},space:{xs:16,lg:24},children:[a?(0,r.jsx)(r.Fragment,{children:g?(0,r.jsx)(m.Z,{...a,target:void 0,href:void 0,scrollTo:void 0,handleClick:()=>showModalHandler("primary"),variant:"primary",iconEnd:"arrow-right"}):(0,r.jsx)(m.Z,{...a,variant:"primary",iconEnd:"arrow-right"})}):null,o?(0,r.jsx)(r.Fragment,{children:f?(0,r.jsx)(m.Z,{...o,target:void 0,href:void 0,scrollTo:void 0,handleClick:()=>showModalHandler("secondary"),variant:"secondary",iconEnd:"chevron-right"}):(0,r.jsx)(m.Z,{...o,variant:"secondary",iconEnd:"chevron-right"})}):null]})]}):null]}),_?(0,r.jsx)(p.JX,{xs:12,lg:5,$offset:{lg:1},$order:{xs:1,lg:2},children:(0,r.jsx)(O,{maskType:c,children:(0,r.jsx)(d(),{src:s.src,alt:s.alt,"aria-hidden":"true",fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw"})})}):null]})})},Banner_BannerClassic=e=>{let{title:t,subtitle:n,ctaPrimary:i,hexBgColor:l}=e;return(0,r.jsx)(w,{hexBgColor:l,children:(0,r.jsx)(p.X2,{children:(0,r.jsxs)(p.JX,{xs:12,$direction:"column",justify:"center",align:"center",children:[t?(0,r.jsx)(u.X6,{className:"heading",content:t,fontPrimary:!0}):null,n?(0,r.jsx)(u.nv,{content:n,textSecondary:!0,as:"div",className:"subtitle"}):null,i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(m.Z,{...i,variant:"primary",iconEnd:"arrow-right"})]}):null]})})})};let Banner_Banner=e=>{let{sectionId:t,type:n,as:l="section",tabItem:a=!1,...o}=e,{selectedColorScheme:c}=(0,i.useContext)(s.x),d={BannerImage:Banner_BannerImage,BannerNewsletter:Banner_BannerNewsletter,BannerClassic:Banner_BannerClassic}[n];return d?(0,r.jsx)(v,{as:l,id:t,tabItem:a,children:(0,r.jsx)(d,{...o,tabItem:a,colorScheme:c})}):null};Banner_Banner.propTypes={type:a().oneOf(["BannerImage","BannerNewsletter","BannerClassic"]),sectionId:a().string,colorScheme:o.hl,title:o.DN,subtitle:o.DN,ctaPrimary:o.$Z,ctaSecondary:o.$Z,image:o.XR,imageShape:a().oneOf(["star","circle","square"])};var B=Banner_Banner,N=n(22817),D=n(37949),molecules_Shape=e=>{let{imageShape:t,color:n}=e;switch(t){case"star":default:return(0,r.jsx)("svg",{className:"shape-".concat(t),width:"136",height:"124",viewBox:"0 0 136 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M135.332 59.9085C135.312 55.1684 135.282 50.3885 134.742 45.6785C134.642 44.8085 134.452 39.8284 133.322 39.7784C129.112 39.6184 124.902 39.4785 120.692 39.3685C122.932 37.9485 125.202 36.5485 127.482 35.1785C128.852 34.3585 115.512 20.7684 114.422 19.7185C111.002 16.4384 107.552 13.1285 103.792 10.2385C102.932 9.57847 99.7015 6.47845 98.5715 7.15845C93.4815 10.2085 88.482 13.4084 83.592 16.7584C83.7521 11.5584 83.9519 6.35845 84.2219 1.15845C84.3319 -0.931547 65.6017 0.418467 63.9817 0.548467C59.2617 0.938467 54.4921 1.33845 49.842 2.27845C48.9021 2.46845 44.1523 2.95843 44.0823 4.25843C43.9123 7.59843 43.7716 10.9384 43.6516 14.2784C41.1816 12.6984 38.6823 11.1785 36.1223 9.72846C35.0923 9.14846 31.0017 12.8384 30.9417 12.8884C27.2717 15.8484 23.7722 19.1885 20.4622 22.5385C19.4422 23.5685 6.44162 37.5184 7.65162 38.1984C9.43162 39.2084 11.1919 40.2484 12.9319 41.3284C9.29189 41.5584 5.65197 41.8084 2.01197 42.0784C0.951969 42.1584 0.562047 48.2385 0.592047 47.9785C0.0920473 52.6685 -0.0177965 57.5084 0.00220352 62.2184C0.00220352 63.8384 -0.0680308 82.5085 2.01197 82.3485C6.59197 82.0085 11.1817 81.7085 15.7717 81.4185C13.0417 85.0385 10.3815 88.7185 7.82154 92.4685C7.19154 93.3885 11.1318 97.6785 11.0618 97.5985C14.0818 101.218 17.4823 104.668 20.8723 107.928C21.9623 108.978 35.7417 121.938 36.7317 120.488C39.2217 116.858 41.7919 113.298 44.4319 109.788C44.6019 114.068 44.7724 118.348 44.9524 122.628C45.0024 123.718 51.3824 
1123.718 50.9524 123.698C55.6724 123.868 60.5017 123.618 65.1917 123.228C69.9117 122.838 74.6823 122.438 79.3323 121.498C80.1823 121.328 85.1421 120.728 85.092 119.518C84.8921 114.728 84.692 109.948 84.512 105.158C89.512 110.168 94.5022 115.178 99.5022 120.188C100.232 120.918 104.972 116.788 104.682 117.028C108.352 114.068 111.852 110.728 115.162 107.378C118.492 104.008 121.862 100.608 124.812 96.8984C125.332 96.2384 128.752 92.4985 127.972 91.7185C123.912 87.6385 119.841 83.5685 115.782 79.4885C121.622 79.6285 127.472 79.7984 133.312 80.0285C134.322 80.0685 134.782 73.6984 134.732 74.1284C135.232 69.4384 135.342 64.5984 135.322 59.8884",fill:"".concat(n)})});case"square":return(0,r.jsx)("svg",{width:"112",height:"103",viewBox:"0 0 112 103",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shape-".concat(t),children:(0,r.jsx)("path",{d:"M111.734 77.1101C111.714 72.2001 111.684 67.2401 111.154 62.3601C111.054 61.4701 110.854 56.2901 109.744 56.2501C109.484 56.2501 109.224 56.2401 108.974 56.2301C109.044 53.9201 109.064 51.6001 109.054 49.3201C109.034 44.4101 109.004 39.4501 108.474 34.5701C108.374 33.6701 108.184 28.5101 107.064 28.4601C106.804 28.4501 106.544 28.4401 106.284 28.4301C106.374 25.9001 106.404 23.3601 106.394 20.8601C106.374 15.9501 106.344 10.9901 105.814 6.11011C105.724 5.27011 105.474 -0.0298731 104.404 0.000126861C72.6537 0.910127 40.904 1.3401 9.14397 1.2801C8.12397 1.2801 7.69382 7.78008 7.73382 7.39008C7.24382 12.2501 7.12374 17.2601 7.15374 22.1401C7.16374 25.4001 7.18393 28.6901 7.35393 31.9601C5.56393 32.1701 3.77358 32.3801 1.99358 32.6001C0.923581 32.7301 0.563425 38.9101 0.583425 38.7101C0.093425 43.5701 -0.0256766 48.5801 0.0043234 53.4601C0.0043234 55.0801 0.103581 74.5601 1.99358 74.3201C3.17358 74.1701 4.36436 74.0401 5.54436 73.9001C5.45436 76.4101 5.43378 78.9201 5.44378 81.4001C5.44378 83.0301 5.51401 102.49 7.43401 102.26C41.394 98.2901 75.6043 96.8601 109.754 97.9801C110.754 98.0101 111.204 91.4301 111.164 91.8701C111.654 87.0101 111.764 82.0001 111.744 77.1201",fill:"".concat(n)})});case"cross":return(0,r.jsx)("svg",{width:"110",height:"104",viewBox:"0 0 110 104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shape-".concat(t),children:(0,r.jsx)("path",{d:"M109.146 75.4944C100.736 66.1444 92.0768 57.0244 83.1667 48.1544C85.2267 46.4744 87.2862 44.8044 89.3562 43.1444C95.0962 38.5444 100.937 34.0744 106.877 29.7344C108.487 28.5644 95.7262 14.8444 94.6062 13.6544C91.3562 10.2044 88.0668 6.72441 84.4568 3.65441C83.7368 3.04441 80.3565 -0.385617 79.3865 0.314383C70.6065 6.72438 61.9762 13.4144 53.5662 20.3744C51.7662 18.7844 49.9662 17.1944 48.1462 15.6244C42.0362 10.3344 35.8161 5.1544 29.5261 0.0844023C28.6661 -0.605598 24.1268 3.16439 24.2468 3.07439C20.4768 5.91439 16.867 9.13437 13.447 12.3644C12.327 13.4144 -1.3338 26.4244 0.106199 27.5844C8.0762 34.0044 15.8962 40.6044 23.5662 47.3644C21.3362 49.5544 19.1163 51.7644 16.9363 54.0044C12.0363 59.0244 7.27663 64.2044 2.79663 69.6144C2.09663 70.4544 5.88612 75.0344 5.77612 74.8944C8.61612 78.6644 11.8362 82.2744 15.0662 85.6944C16.1362 86.8244 29.0769 100.494 30.2869 99.0244C37.3169 90.5344 44.9262 82.4944 52.8962 74.8044C56.3662 78.2444 59.807 81.7244 63.197 85.2444C68.807 91.0644 74.3163 96.9844 79.7263 102.994C80.4063 103.754 85.3266 99.7644 85.0066 100.004C88.7766 97.1644 92.3864 93.9444 95.8064 90.7144C99.2564 87.4644 102.736 84.1744 105.806 80.5644C106.356 79.9144 109.886 76.3344 109.146 75.4944Z",fill:"".concat(n)})});case"circle":return(0,r.jsx)("svg",{width:"115",height:"107",viewBox:"0 0 115 107",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"shape-".concat(t),children:(0,r.jsx)("path",{d:"M112.859 46.0289C113.769 40.3189 113.01 34.519 110.47 29.189C107.23 22.389 102.109 16.739 97.1795 11.429C94.4595 8.48896 91.5396 5.85899 88.0096 4.20899C84.5096 2.57899 80.6993 1.76894 76.9393 1.27894C71.9993 0.628937 66.8695 0.688959 61.9295 1.73896C56.5795 0.898959 51.199 0.128979 45.8689 0.00897882C42.2389 -0.0710212 38.4394 0.368952 35.0594 1.91895C33.2894 2.72895 31.6091 3.889 30.0291 5.089C24.8591 9.019 20.2091 14.1089 15.8191 19.0289C11.5391 23.8189 7.17969 28.739 3.62969 34.239C2.37969 36.179 1.19895 38.269 0.618951 40.579C-0.281049 44.149 -0.220737 48.029 0.939263 51.519C2.15926 55.209 4.46938 58.109 7.30938 60.199C7.17938 60.659 7.0495 61.119 6.9295 61.589C3.3495 76.019 9.25907 90.029 19.9891 98.509C32.3291 108.269 48.2497 107.829 62.3797 103.869C69.7097 101.809 77.1991 99.109 83.5691 94.509C86.3291 92.519 88.8491 90.109 91.3191 87.709C96.6991 82.469 101.859 76.789 106.569 70.819C109.919 66.569 114.159 61.7689 114.749 55.8489C115.099 52.3689 114.129 49.129 112.869 46.019",fill:"".concat(n)})})}},R=n(60699);
1function Box_styles_templateObject(){let e=(0,h._)(["\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  top: 50%;\n  left: 50%;\n  opacity: 0.15;\n  pointer-events: none;\n  transform: translate(-50%, -50%);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  ","\n\n  ","\n\n  > svg {\n    height: 120%;\n    width: auto;\n  }\n"]);return Box_styles_templateObject=function(){return e},e}function Box_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: ",";\n  align-items: ",";\n  align-self: stretch;\n  /* justify-content: space-between; */\n  padding: ",";\n\n  ","\n"]);return Box_styles_templateObject1=function(){return e},e}function Box_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: ",";\n  align-self: stretch;\n  ","\n"]);return Box_styles_templateObject2=function(){return e},e}function Box_styles_templateObject3(){let e=(0,h._)(["\n  width: 100%;\n  height: ",";\n  position: relative;\n  display: flex;\n  margin: auto auto 0;\n\n  ","\n\n  img {\n    position: relative!important;\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return Box_styles_templateObject3=function(){return e},e}function styles_templateObject4(){let e=(0,h._)(["\n  width: 100%;\n  > * {\n    color: ",";\n  }\n"]);return styles_templateObject4=function(){return e},e}function styles_templateObject5(){let e=(0,h._)(["\n\n  a {\n    width: 100%;\n  }\n"]);return styles_templateObject5=function(){return e},e}function styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n  gap: ",";\n  display: flex;\n  flex-direction: column;\n\n  ","\n\n  a,\n  button {\n    width: 100%;\n\n    ","\n  }\n"]);return styles_templateObject6=function(){return e},e}function _templateObject7(){let e=(0,h._)(["\n      border-radius: ",";\n\n      ","\n    "]);return _templateObject7=function(){return e},e}function _templateObject8(){let e=(0,h._)(["\n  display: flex;\n  width: 100%;\n  height: 100%;\n  min-height: ",";\n  overflow: hidden;\n  flex-direction: ",";\n  position: relative;\n  color: ",";\n\n  ","\n\n  ","\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n\n  ","\n\n","\n\n  ","\n\n  ","\n\n  ","\n"]);return _templateObject8=function(){return e},e}function _templateObject9(){let e=(0,h._)(["\n  padding: ",";\n"]);return _templateObject9=function(){return e},e}function _templateObject10(){let e=(0,h._)(["\n  display: flex;\n  align-items: flex-start;\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n\n  "," {\n    margin-right: ",";\n    margin-top: ","\n"]);return _templateObject10=function(){return e},e}let L=g.ZP.div.withConfig({componentId:"sc-840ecc1b-0"})(Box_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    justify-content: flex-end;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    justify-content: center;\n  ")}),Q=g.ZP.div.withConfig({componentId:"sc-840ecc1b-1"})(Box_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{$alignment:t}=e;return"center"===t?"center":"flex-start"},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t,$alignment:n}=e;return t.mediaQuery.lg("\n    max-width: ".concat("left"===n?"unset":t.rem(750),";\n    margin: 0 auto 0 0;\n  "))}),q=g.ZP.div.withConfig({componentId:"sc-840ecc1b-2"})(Box_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,$alignment:n}=e;return t.mediaQuery.lg("\n      text-align: ".concat("center"===n?"center":"left",";\n      align-items: ").concat("center"===n?"center":"flex-start",";\n  "))}),H=g.ZP.div.withConfig({componentId:"sc-840ecc1b-3"})(Box_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(350)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    max-width: ".concat(t.rem(845),";\n  "))}),V=g.ZP.div.withConfig({componentId:"sc-840ecc1b-4"})(styles_templateObject4(),e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textSecondary}),X=g.ZP.div.withConfig({componentId:"sc-840ecc1b-5"})(styles_templateObject5()),U=g.ZP.div.withConfig({componentId:"sc-840ecc1b-6"}
1)(styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: row;\n    gap: ".concat(t.rem(24),";\n    align-items: center;\n    flex-wrap: wrap;\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      width: auto;\n    ")}),G=g.ZP.div.withConfig({componentId:"sc-840ecc1b-7"})(_templateObject8(),e=>{let{theme:t}=e;return t.rem(200)},e=>{let{$withImage:t}=e;return t?"column":"row"},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.textPrimary},e=>{let{theme:t,$isBentoBox:n,$withImage:r}=e;return n&&(0,g.iv)(_templateObject7(),t.rem(16),!r&&t.mediaQuery.xl("\n        flex-direction: row;\n      "))},e=>{let{theme:t,colorScheme:n,accent:r}=e;return"\n    background-color: ".concat(r?t.colorScheme["".concat(n)].button.iconBackground:t.colorScheme["".concat(n)].surface.backgroundColor,";\n  ")},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t,variant:n}=e;return"full-centered"===n&&t.mediaQuery.lg("\n    ".concat(V," {\n      text-align: center;\n    }\n\n    ").concat(q," {\n      align-items: center;\n      text-align: center;\n      padding-left: ").concat(t.rem(100),";\n      padding-right: ").concat(t.rem(100),";\n    }\n\n    ").concat(U," {\n      justify-content: center;\n    }\n\n    ").concat(H," {\n      max-width: ").concat(t.rem(500),";\n      margin: 0 auto;\n    }\n  "))},e=>{let{theme:t,variant:n,$withImage:r}=e;return"full-horizontal"===n&&t.mediaQuery.md("\n    flex-direction: row;\n    align-items: center;\n\n    ".concat(Q,",\n    ").concat(H," {\n      width: 50%;\n      margin: 0\n    }\n\n    ").concat(Q," {\n      padding-left: ").concat(t.rem(100),";\n      padding-right: ").concat(t.rem(100),";\n      padding-top: ").concat(t.rem(40),";\n      padding-bottom: ").concat(t.rem(40),";\n\n      ").concat(!r&&"\n        width: 100%;\n      ","\n    }\n\n    ").concat(H," {\n      img {\n        object-fit: contain;\n      }\n    }\n\n    ").concat(Q," {\n      justify-content: flex-start;\n    }\n  "))},e=>{let{theme:t,variant:n}=e;return"double-equal"===n&&t.mediaQuery.md("\n    ".concat(H," {\n      img {\n        width: auto!important;\n        left: 50%!important;\n        transform: translateX(-50%);\n        object-fit: contain;\n      }\n    }\n  "))},e=>{let{theme:t,variant:n}=e;return"double-biggerLeft"===n&&t.mediaQuery.md("\n    ".concat(H," {\n      img {\n        width: auto!important;\n        left: 50%!important;\n        transform: translateX(-50%);\n        object-fit: contain;\n      }\n    }\n  "))},e=>{let{theme:t,variant:n}=e;return"double-biggerRight"===n&&t.mediaQuery.md("\n    ".concat(H," {\n      img {\n        width: auto!important;\n        left: 50%!important;\n        transform: translateX(-50%);\n        object-fit: contain;\n      }\n    }\n  "))}),W=g.ZP.div.withConfig({componentId:"sc-840ecc1b-8"})(_templateObject9(),e=>{let{theme:t}=e;return t.rem(8,0)}),J=g.ZP.div.withConfig({componentId:"sc-840ecc1b-9"})(_templateObject10(),e=>{let{theme:t}=e;return t.rem(8)},R.x,e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(4)}),$={LEFT:"left",CENTER:"center"};var molecules_Box=e=>{let{alignment:t=$.CENTER,colorScheme:n=null,preTitle:l=null,title:a=null,subtitle:o,body:c,lists:p,boxLength:h,ctaPrimary:g,ctaTertiary:f,image:b=null,imageShape:_,withImage:x=!1,isBentoBox:j=!1,bentosCardAlignment:v}=e,{selectedColorScheme:C}=(0,i.useContext)(s.x),w=n||C,O=Object.values($).includes(t)?t:$.CENTER,S=x&&b&&!!(null==b?void 0:b.url),k=a&&0!==Object.keys(a).length?a:null,P=o&&0!==Object.keys(o).length?o:null,I=b?(0,N.Z)(b):null;return(0,r.jsxs)(G,{colorScheme:w,$withImage:S,$alignment:O,$isBentoBox:j,className:"box-wrapper",variant:v,children:[(0,r.jsxs)(Q,{$alignment:O,$withImage:S,$isBentoBox:j,children:[(0,r.jsxs)(q,{$alignment:O,children:[l?(0,r.jsx)(u.nv,{typo:"label",content:l,weight:"bold",uppercase:!0}):null,k?(0,r.jsx)(u.nv,{...k,weight:"semibold"}):null,P?(0,r.jsx)(V,{colorScheme:w,children:(0,r.jsx)(u.nv,{...P,as:"div",textSecondary:!0})}):null]}),c?j?(0,r.jsx)(V,{colorScheme:w,children:(0,r.jsx)(u.nv,{typo:"headingXS",as:"div",content:c,textSecondary:!0})}):(0,r.jsx)(V,{colorScheme:w,children:(0,r.jsx)(u.nv,{typo:"paragraphMD",as:"div",content:c,textSecondary:!0})}):null,p&&p.length>0?(0,r.jsx)(W,{children:p.map((e,t)=>(0,r.jsxs)(J,{children:[(0,r.jsx)(y.Z,{name:"check"}),(0,r.jsx)(u.nv,{typo:"paragraphLG",children:e.element})]},"BoxListItem-".concat(t,"-").concat(null==e?void 0:e.id)))}):null,g||f?(0,r.jsxs)(U,{children:[g&&(null==g?void 0:g.label)?(0,r.jsx)(X,{children:(0,r.jsx)(m.Z,{...g,variant:"primary",iconEnd:"arrow-right",inheritedColorScheme:w})}):null,f&&(null==f?void 0:f.label)?(0,r.jsx)(X,{children:(0,r.jsx)(m.Z,{...f,variant:"tertiary",iconEnd:"arrow-right",inheritedColorScheme:w})}):null]}):null,S||j?null:(0,r.jsx)(L,{$isBentoBox:j,className:"bento-box-shape",children:(0,r.jsx)(molecules_Shape,{$imageShape:_,color:(0,D.getColorByScheme)(w)})})]}),S?(0,r.jsx)(H,{children:(0,r.jsx)(d(),{src:null==I?void 0:I.src,alt:null==I?void 0:I.alt,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 75vw"})}):null]})},Y=n(50618),K=n(15418),ee=n(94135),et=n(2261);
1function BentoBox_styles_templateObject(){let e=(0,h._)(["\n          ","\n        "]);return BentoBox_styles_templateObject=function(){return e},e}function BentoBox_styles_templateObject1(){let e=(0,h._)(["\n          ","\n        "]);return BentoBox_styles_templateObject1=function(){return e},e}function BentoBox_styles_templateObject2(){let e=(0,h._)(["\n          grid-template-rows: minmax(min-content, 32%) minmax(min-content, 66%);\n\n          ","\n\n          ","\n        "]);return BentoBox_styles_templateObject2=function(){return e},e}function BentoBox_styles_templateObject3(){let e=(0,h._)(["\n          grid-template-rows: minmax(min-content, 66%) minmax(min-content, 32%);\n\n          ","\n\n          ","\n        "]);return BentoBox_styles_templateObject3=function(){return e},e}function BentoBox_styles_templateObject4(){let e=(0,h._)(["\n          ","\n        "]);return BentoBox_styles_templateObject4=function(){return e},e}function BentoBox_styles_templateObject5(){let e=(0,h._)(["\n  width: 100%;\n  height: 100%;\n  gap: ",";\n  padding: ",";\n  \n  ","\n\n  ","\n"]);return BentoBox_styles_templateObject5=function(){return e},e}function BentoBox_styles_templateObject6(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  \n  .swiper {\n    width: 100%;\n  }\n\n  .swiper-wrapper {\n    max-width: 90dvw;\n    padding: ",";\n\n    ","\n\n    .swiper-slide {\n      height: auto !important;\n    }\n  }\n"]);return BentoBox_styles_templateObject6=function(){return e},e}function styles_templateObject7(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return styles_templateObject7=function(){return e},e}function styles_templateObject8(){let e=(0,h._)(["\n  position: relative;\n  padding: ",";\n  top: auto;\n  left: auto;\n  transform: translateY(0);\n  z-index: 1;\n\n  ","\n\n  button {\n    &:first-of-type {\n      margin-left: 0;\n    }\n\n    &.swiper-button-lock {\n      display: none;\n    }\n  }\n"]);return styles_templateObject8=function(){return e},e}function styles_templateObject9(){let e=(0,h._)(["\n  left: 0;\n\n  ","\n"]);return styles_templateObject9=function(){return e},e}function styles_templateObject10(){let e=(0,h._)(["\n  right: 0;\n\n  ","\n"]);return styles_templateObject10=function(){return e},e}function _templateObject11(){let e=(0,h._)(["\n  width: 100%;\n  height: 3px;\n  background: var(--buttons-icon-only-icon-background, #cfc6be);\n  background-size: 3px;\n\n  &:has(.swiper-scrollbar-drag) {\n    height: 3px;\n  }
1\n  .swiper-scrollbar-drag {\n    margin-top: 1px;\n    height: 1.5px;\n  }\n\n  ","\n"]);return _templateObject11=function(){return e},e}let en=g.ZP.div.withConfig({componentId:"sc-ea5b3771-0"})(BentoBox_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    display: grid;\n    justify-content: space-between;\n  ")},e=>{let{theme:t,$bentosCardAlignment:n}=e,r=t.rem(40,0),i="unset";switch(n){case"double-equal":return(0,g.iv)(BentoBox_styles_templateObject(),t.mediaQuery.lg("\n            padding: ".concat(r,";\n            grid-template-rows: ").concat(i,";\n            grid-template-columns: 49% 49%;\n          ")));case"triple-equal":case"triple-biggerLeft":case"triple-biggerRight":return(0,g.iv)(BentoBox_styles_templateObject1(),t.mediaQuery.lg("\n            padding: ".concat(r,";\n            grid-template-rows: ").concat(i,";\n            grid-template-columns: 32% 32% 32%;\n          ")));case"double-biggerRight":return(0,g.iv)(BentoBox_styles_templateObject2(),t.mediaQuery.lg("\n            padding: ".concat(r,";\n            grid-template-rows: ").concat(i,";\n            grid-template-columns: 32% 66%;\n          ")),t.mediaQuery.lg("\n            .box-wrapper {\n              &:last-child {\n                .bento-box-shape {\n                  > svg {\n                    position: absolute;\n                    right: -10%;\n                  }\n                }\n              }\n            }\n          "));case"double-biggerLeft":return(0,g.iv)(BentoBox_styles_templateObject3(),t.mediaQuery.lg("\n            padding: ".concat(r,";\n            grid-template-rows: ").concat(i,";\n            grid-template-columns: 66% 32%;\n          ")),t.mediaQuery.lg("\n            .box-wrapper {\n              &:first-child {\n                .bento-box-shape {\n                  > svg {\n                    position: absolute;\n                    right: -10%;\n                  }\n                }\n              }\n            }\n          "));case"full-centered":case"full-horizontal":return(0,g.iv)(BentoBox_styles_templateObject4(),t.mediaQuery.lg("\n            display: flex;\n          "));default:return""}}),er=g.ZP.div.withConfig({componentId:"sc-ea5b3771-1"})(BentoBox_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(24,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      padding: ".concat(t.rem(40,0),";\n    "))}),ei=g.ZP.div.withConfig({componentId:"sc-ea5b3771-2"})(styles_templateObject7()),el=g.ZP.div.withConfig({componentId:"sc-ea5b3771-3"})(styles_templateObject8(),e=>{let{theme:t}=e;return t.rem(0,10)},e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    position: absolute;\n    padding: 0;\n    top: 50%;\n    transform: translateY(-50%);\n  ")}),ea=(0,g.ZP)(el).withConfig({componentId:"sc-ea5b3771-4"})(styles_templateObject9(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    left: -52px;\n  ")}),eo=(0,g.ZP)(el).withConfig({componentId:"sc-ea5b3771-5"})(styles_templateObject10(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    right: -52px;\n  ")}),es=g.ZP.div.withConfig({componentId:"sc-ea5b3771-6"})(_templateObject11(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-top: ".concat(t.rem(24),";\n  "),!0)}),MobileCarousel=e=>{let{items:t}=e,[n,i]=(0,K.Z)(),[l,a]=(0,K.Z)(),[o,s]=(0,K.Z)();return(0,r.jsx)("div",{children:(0,r.jsxs)(er,{children:[(0,r.jsx)(et.tq,{modules:[ee.W_,ee.LW,ee.s5],spaceBetween:28,slidesPerView:1,navigation:{prevEl:l,nextEl:n},scrollbar:{el:o},a11y:{prevSlideMessage:"Slide precedente",nextSlideMessage:"Slide successiva"},grabCursor:!0,children:t.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(molecules_Box,{...e,isBentoBox:!0})},"BentoBox-Item-".concat(t,"-").concat(null==e?void 0:e.id)))}),(0,r.jsxs)(ei,{children:[(0,r.jsx)(ea,{children:(0,r.jsx)(m.a,{ref:a,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big"})}),(0,r.jsx)(eo,{children:(0,r.jsx)(m.a,{ref:i,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big"})})]}),(0,r.jsx)(es,{ref:s})]})})};
1var organisms_BentoBox=e=>{let{items:t,itemsLength:n,sectionId:i,bentosCardAlignment:l=full,isCarousel:a=!1}=e,o=(0,Y.Z)("(max-width: 575px)");return(0,r.jsx)(p.W2,{as:"section",id:i,children:(0,r.jsx)(en,{$bentosCardAlignment:l,children:0===n?(0,r.jsx)(r.Fragment,{}):o&&a?(0,r.jsx)(MobileCarousel,{items:t}):t.map((e,t)=>(0,r.jsx)(molecules_Box,{...e,isBentoBox:!0,bentosCardAlignment:l},"bento-box-".concat(t)))})})},ec=n(11163),ed=n(90646);function BookCover_styles_templateObject(){let e=(0,h._)(["\n  padding: ",";\n  // background-color: ",";\n\n  /* "," */\n\n  .swiper-thumb {\n    height: 240px;\n\n    .swiper-slide {\n      width: 100% !important;\n    }\n  }\n"]);return BookCover_styles_templateObject=function(){return e},e}function BookCover_styles_templateObject1(){let e=(0,h._)(["\n  min-height: 100%;\n  display: flex;\n  flex-direction: column;\n  padding-left: 0;\n  padding-right: 0;\n\n  ","\n"]);return BookCover_styles_templateObject1=function(){return e},e}function BookCover_styles_templateObject2(){let e=(0,h._)(["\n  ","\n"]);return BookCover_styles_templateObject2=function(){return e},e}function BookCover_styles_templateObject3(){let e=(0,h._)(["\n  display: none;\n  position: relative;\n\n  ","\n\n  ","\n"]);return BookCover_styles_templateObject3=function(){return e},e}function BookCover_styles_templateObject4(){let e=(0,h._)(["\n  position: relative;\n\n  ","\n\n  ","\n\n    ","\n"]);return BookCover_styles_templateObject4=function(){return e},e}function BookCover_styles_templateObject5(){let e=(0,h._)(["\n  width: fit-content;\n  margin-inline: auto;\n  margin-top: 5px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  font-weight: 600;\n  font-size: 14px;\n  line-height: 15px;\n  \n  ","\n  "]);return BookCover_styles_templateObject5=function(){return e},e}function BookCover_styles_templateObject6(){let e=(0,h._)(["\n    border: 1px solid #1B1818;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    gap: 6px;\n    padding: 4px 10px;\n    border-radius: ",";\n\n    ","\n"]);return BookCover_styles_templateObject6=function(){return e},e}function BookCover_styles_templateObject7(){let e=(0,h._)(["\n  height: 22px;\n  width: 22px;\n  border-radius: 50%;\n  background-color: ",";\n  color: ",";\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  i {\n    font-size: 14px;\n    color: #3B3838;\n  }\n\n  ","\n"]);return BookCover_styles_templateObject7=function(){return e},e}function BookCover_styles_templateObject8(){let e=(0,h._)(["\n  color: ",";\n  text-decoration: line-through;\n  position: relative;\n"]);return BookCover_styles_templateObject8=function(){return e},e}function BookCover_styles_templateObject9(){let e=(0,h._)(["\n  margin-top: 5px;\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: ",";\n  color: ",";\n  ",";\n"]);return BookCover_styles_templateObject9=function(){return e},e}function BookCover_styles_templateObject10(){let e=(0,h._)(["\n      color: ",";\n  "]);return BookCover_styles_templateObject10=function(){return e},e}function styles_templateObject11(){let e=(0,h._)(["\n      color: ",";\n  "]);return styles_templateObject11=function(){return e},e}function _templateObject12(){let e=(0,h._)(["\n  color: #5A5656;\n  \n  ","\n\n  ","\n"]);return _templateObject12=function(){return e},e}function _templateObject13(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: row;\n  align-items: stretch;\n  gap: ",";\n"]);return _templateObject13=function(){return e},e}function _templateObject14(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  width: 102px;\n  flex-shrink: 0;\n  row-gap: ",";\n"]);return _templateObject14=function(){return e},e}function _templateObject15(){let e=(0,h._)(["\n  flex: 1;\n  min-width: 0;\n  position: relative;\n"]);return _templateObject15=function(){return e},e}function _templateObject16(){let e=(0,h._)(["\n  width: 100%;\n  aspect-ratio: 1 / 1;\n  position: relative;\n\n  img {\n    width: 100%;\n    height: 100%;\n    object-fit: contain;\n  }\n"]);
1return _templateObject16=function(){return e},e}function _templateObject17(){let e=(0,h._)(["\n      border-color: ",";\n    "]);return _templateObject17=function(){return e},e}function _templateObject18(){let e=(0,h._)(["\n  width: 80px;\n  height: 110px;\n  position: relative;\n  cursor: pointer;\n  border: 1px solid\n    ",";\n  overflow: hidden;\n  border-radius: ",";\n\n  ","\n\n  img {\n    object-fit: contain;\n  }\n"]);return _templateObject18=function(){return e},e}function _templateObject19(){let e=(0,h._)(["\n  border-radius: ",";\n  position: relative;\n  overflow: hidden;\n  aspect-ratio: 1 / 1;\n  width: 30%;\n  margin-right: ",";\n  \n  img {\n    object-fit: contain;\n  }\n  \n  ","\n"]);return _templateObject19=function(){return e},e}function _templateObject20(){let e=(0,h._)(["\n  width: 100%;\n  background: transparent;\n  margin-top: 20px\n\n  ","\n\n  ","\n\n  .book-title {\n    text-wrap: balance;\n    font-size: 22px;\n    line-height: 28px;\n    color: #181b1b;\n\n\n    ","\n  }\n\n  .add-to-cart-button {\n    margin-block: ",";\n    display: none;\n\n    ","\n  }\n\n  .payment-methods {\n    ","\n  }\n}\n"]);return _templateObject20=function(){return e},e}function _templateObject21(){let e=(0,h._)(["\n  position: relative;\n\n  .add-to-cart-button-sticky {\n    position: sticky;\n    bottom: 0;\n    z-index: 9;\n    padding: ",";\n    background-color: ",";\n    \n    ","\n  }\n"]);return _templateObject21=function(){return e},e}function _templateObject22(){let e=(0,h._)(["\n  margin-bottom: ",";\n"]);return _templateObject22=function(){return e},e}function _templateObject23(){let e=(0,h._)(["\n  a {\n    padding-left: 0;\n\n    span {\n      left: 0;\n    }\n  }\n"]);return _templateObject23=function(){return e},e}function _templateObject24(){let e=(0,h._)(["\n  display: contents;\n"]);return _templateObject24=function(){return e},e}function _templateObject25(){let e=(0,h._)(["\n  margin: ",";\n\n  ","\n\n  .swiper-slide {\n    width: 100% !important;\n  }\n\n  .swiper-pagination-bullet {\n    width: ",";\n    height: ",";\n    border-radius: 50%;\n    background-color: ",";\n    opacity: 1;\n    transition: background-color 0.2s ease;\n  }\n\n  .swiper-pagination-bullet-active {\n    background-color: ",";\n  }\n"]);return _templateObject25=function(){return e},e}function _templateObject26(){let e=(0,h._)(["\n  margin-top: ",";\n  display: flex;\n  justify-content: center;\n  gap: ",";\n"]);return _templateObject26=function(){return e},e}function _templateObject27(){let e=(0,h._)(["\n  position: relative;\n  height: ",";\n\n  .swiper,\n  .swiper-wrapper,\n  .swiper-slide {\n    height: 100%;\n  }\n\n  .swiper-slide > * {\n    aspect-ratio: unset;\n    height: 100%;\n  }\n"]);return _templateObject27=function(){return e},e}function _templateObject28(){let e=(0,h._)(["left: 0;"]);return _templateObject28=function(){return e},e}function _templateObject29(){let e=(0,h._)(["right: 0;"]);return _templateObject29=function(){return e},e}function _templateObject30(){let e=(0,h._)(["\n  all: unset;\n  box-sizing: border-box;\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n  z-index: 2;\n  width: ",";\n  height: ",";\n  border-radius: 50%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n  background-color: ",";\n  color: ",";\n\n  ","\n  ","\n\n  i {\n    font-size: ",";\n  }\n\n  &:hover:not(:disabled) {\n    background-color: ",";\n  }\n\n  &:disabled {\n    cursor: default;\n    background-color: ",";\n    color: ",";\n  }\n"]);return _templateObject30=function(){return e},e}function _templateObject31(){let e=(0,h._)(["\n  color: #8B6612;\n"]);return _templateObject31=function(){return e},e}function _templateObject32(){let e=(0,h._)(["\n  margin: 0;\n  ",";\n"]);return _templateObject32=function(){return e},e}function _templateObject33(){let e=(0,h._)(["\n    display: none;\n    ","\n  "]);return _templateObject33=function(){return e},e}function _templateObject34(){let e=(0,h._)(["\n  border-top: 0.2px solid #1b181850;\n  margin: 15px 0;\n  padding: 10px 0 14px 0;\n\n  ","\n\n  ","\n\n  ","\n"]);
1return _templateObject34=function(){return e},e}function _templateObject35(){let e=(0,h._)(["\n  margin: 0;\n"]);return _templateObject35=function(){return e},e}function _templateObject36(){let e=(0,h._)(["\n  display: block;\n  ",";\n  font-size: ",";\n  font-weight: 800;\n  color: ",";\n  margin-bottom: 6px;\n"]);return _templateObject36=function(){return e},e}function _templateObject37(){let e=(0,h._)(["\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  ",";\n  font-weight: 600;\n  color: ",";\n  transition: opacity 0.2s ease;\n  margin-top: 6px;\n\n  &:hover {\n    opacity: 0.8;\n  }\n\n  i {\n    font-size: ",";\n    flex-shrink: 0;\n  }\n\n  ","\n"]);return _templateObject37=function(){return e},e}function _templateObject38(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  /* i {\n    font-size: ",";\n  } */\n"]);return _templateObject38=function(){return e},e}function _templateObject39(){let e=(0,h._)(["\n  padding-left: ",";\n  position: relative;\n\n  &:before {\n    content: '';\n    background-color: ",";\n    width: ",";\n    height: ",";\n    border-radius: 50%;\n    position: absolute;\n    left: ",";\n    top: 50%;\n    transform: translateY(-50%);\n  }\n"]);return _templateObject39=function(){return e},e}function _templateObject40(){let e=(0,h._)(["\n  /* width: ","; */\n  /* height: 100%; */\n  position: relative;\n\n  &:not(:last-child) {\n    margin-right: ",";\n\n    ","\n  }\n"]);return _templateObject40=function(){return e},e}function _templateObject41(){let e=(0,h._)(["\n  width: 100%;\n  position: absolute;\n  bottom: 0;\n  display: flex;\n  justify-content: space-between;\n\n  ","\n"]);return _templateObject41=function(){return e},e}function _templateObject42(){let e=(0,h._)(["\n  color: ",";\n"]);return _templateObject42=function(){return e},e}function _templateObject43(){let e=(0,h._)(["\n  margin-right: 0;\n  background-color: ",";\n  color: ",";\n  border: 1px solid ",";\n  transition: all 0.2s ease-in;\n\n  p, span, a {\n    font-size: 10px !important;\n  }\n\n  &:hover {\n    background-color: ",";\n    color: ",";\n  }\n"]);return _templateObject43=function(){return e},e}function _templateObject44(){let e=(0,h._)(["\n  color: #da220a;\n"]);return _templateObject44=function(){return e},e}function _templateObject45(){let e=(0,h._)(["\n  color: #63A67B;\n"]);return _templateObject45=function(){return e},e}function _templateObject46(){let e=(0,h._)(["\n    display: none;\n    ","\n  "]);return _templateObject46=function(){return e},e}function _templateObject47(){let e=(0,h._)(["\n  margin-top: 15px;\n\n  ","\n\n  ","\n"]);return _templateObject47=function(){return e},e}function _templateObject48(){let e=(0,h._)(["\n  margin: 0 0 7px;\n  ",";\n  font-weight: 800;\n  color: ",";\n  font-size: ",";\n"]);return _templateObject48=function(){return e},e}function _templateObject49(){let e=(0,h._)(["\n  list-style: none;\n  margin: 0;\n  padding: 0;\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  gap: ",";\n"]);return _templateObject49=function(){return e},e}function _templateObject50(){let e=(0,h._)(["\n  white-space: nowrap;\n  display: flex;\n  align-items: center;\n  gap: 4px;\n  font-size: 10px;\n  color: ",";\n  text-transform: uppercase;\n  letter-spacing: 0.025em;\n  font-weight: 600;\n\n  i {\n    font-size: 12px;\n    color: ",";\n    flex-shrink: 0;\n  }\n\n  \n"]);return _templateObject50=function(){return e},e}function _templateObject51(){let e=(0,h._)(["\n  padding: ",";\n"]);return _templateObject51=function(){return e},e}function _templateObject52(){let e=(0,h._)(["\n  margin: 0 0 ",";\n  font-size: ",";\n\n  color: ",";\n  font-weight: 400;\n  \n  ","\n"]);return _templateObject52=function(){return e},e}function _templateObject53(){let e=(0,h._)(["\n  display: grid;\n  grid-template-columns: 1fr;\n  gap: 0.3px;\n  background-color: white;\n  border: 1px solid ",";\n  border-radius: ",";\n  overflow: hidden;\n\n  ","\n\n  ","\n"]);return _templateObject53=function(){return e},e}function _templateObject54(){let e=(0,h._)(["\n  padding: ",";\n  min-height: ",";\n  padding: ",";\n  min-width: 0;\n  overflow: hidden;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n  gap: ",";\n\n  /* 1 colonna: divisore sotto ogni cella tranne l'ultima */\n  &:not(:last-child) {\n    border-bottom: 1px solid\n      ",";\n  }
1\n\n  /* 2 colonne: divisore sotto la prima riga, sinistra sulla colonna destra */\n  ","\n\n  /* 4 colonne: solo divisori verticali tra le celle */\n  ","\n"]);return _templateObject54=function(){return e},e}function _templateObject55(){let e=(0,h._)(["\n  ",";\n  color: ",";\n  text-transform: uppercase;\n  letter-spacing: 0.1em;\n"]);return _templateObject55=function(){return e},e}function _templateObject56(){let e=(0,h._)(["\n  ",";\n  font-weight: 600;\n  color: ",";\n  display: block;\n\n  ","\n"]);return _templateObject56=function(){return e},e}function _templateObject57(){let e=(0,h._)(["\n  display: grid;\n   grid-template-columns: repeat(2, 1fr);\n  margin-top: ",";\n  row-gap: 3px;\n\n  ","\n"]);return _templateObject57=function(){return e},e}function _templateObject58(){let e=(0,h._)(["\n  padding: ",";\n  ",";\n  text-transform: uppercase;\n  letter-spacing: 0.1em;\n  color: ",";\n  border-left: 1px solid #FFB683;\n  min-width: 0;\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n\n  ","\n"]);return _templateObject58=function(){return e},e}function _templateObject59(){let e=(0,h._)(["\n  height: 35px;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: ",";\n  margin-top: ",";\n"]);return _templateObject59=function(){return e},e}
1function _templateObject60(){let e=(0,h._)(["\n  margin-top: 1px;\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  flex-shrink: 0;\n"]);return _templateObject60=function(){return e},e}function _templateObject61(){let e=(0,h._)(["\n  width: 39px;\n  height: 39px;\n  border-radius: 50%;\n  overflow: hidden;\n  position: relative;\n  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);\n  margin-left: ",";\n  flex-shrink: 0;\n  background-color: ",";\n\n  &:first-child {\n    margin-left: 0;\n  }\n\n  img {\n    object-fit: cover;\n  }\n"]);return _templateObject61=function(){return e},e}function _templateObject62(){let e=(0,h._)(["\n  width: fit-content;\n  max-width: 200px;\n  overflow: hidden;\n  flex-shrink: 1;\n\n  .trustpilot-widget,\n  .trustpilot-widget iframe {\n    max-width: 200px !important;\n    width: fit-content !important;\n  }\n"]);return _templateObject62=function(){return e},e}let eu=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-0"})(BookCover_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24,0)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(90,0,56),";\n  "))}),ep=(0,g.ZP)(p.W2).withConfig({componentId:"sc-3a5c16f8-1"})(BookCover_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: row;\n  ")}),em=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-2"})(BookCover_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 50%;\n    height: 100%;\n  ")}),eh=(0,g.ZP)(em).withConfig({componentId:"sc-3a5c16f8-3"})(BookCover_styles_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    display: block;\n    margin-bottom: 0;\n    padding: ".concat(t.rem(18,0,14,0),";\n    position: sticky;\n    height: fit-content;\n    top: ").concat(t.rem(140),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.xxxl("\n    max-width: 780px;\n  ")}),eg=(0,g.ZP)(em).withConfig({componentId:"sc-3a5c16f8-4"})(BookCover_styles_templateObject4(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: flex;\n    flex-direction: column;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    max-width: 710px;\n    margin-left: auto;\n    display: block;\n     padding-left: ".concat(t.rem(14),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.xxxl("\n    max-width: 100%;\n  ")}),ef=g.ZP.a.withConfig({componentId:"sc-3a5c16f8-5"})(BookCover_styles_templateObject5(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-top: 10px;\n    font-size: 16px;\n    line-height: 24px;\n    gap: 8px;\n    ")}),eb=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-6"})(BookCover_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(100)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      gap: 8px;\n    ")}),ey=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-7"})(BookCover_styles_templateObject7(),e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackground},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.primaryText},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    height: 30px;\n    width: 30px;\n    font-size: 16px;\n    line-height: 24px;\n\n    i {\n      font-size: 16px;\n    }\n  ")}),e_=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-8"})(BookCover_styles_templateObject8(),e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText}),ex=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-9"})(BookCover_styles_templateObject9(),e=>{let{theme:t}=e;return t.rem(6)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary},e=>{let{theme:t}=e;return t.typo("paragraphSM")}),ej=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-10"})(_templateObject12(),e=>{let{status:t,theme:n}=e;return"available"===t&&(0,g.iv)(BookCover_styles_templateObject10(),n.colors.status.success.default)},e=>{let{status:t,theme:n}=e;return"available"!==t&&(0,g.iv)(styles_templateObject11(),n.colors.status.error.default)}),ev=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-11"})(_templateObject13(),e=>{let{theme:t}=e;return t.rem(16)}),eC=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-12"}
1)(_templateObject14(),e=>{let{theme:t}=e;return t.rem(32)}),ew=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-13"})(_templateObject15()),eO=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-14"})(_templateObject16()),eS=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-15"})(_templateObject18(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{active:t,theme:n}=e;return t&&(0,g.iv)(_templateObject17(),n.colorScheme.white.surface.borderPrimary)});g.ZP.div.withConfig({componentId:"sc-3a5c16f8-16"})(_templateObject19(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: auto;\n    min-width: ".concat(t.rem(194),";\n    height: ").concat(t.rem(170),";\n    margin-right: ").concat(t.rem(16),";\n  "))});let ek=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-17"})(_templateObject20(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    // width: 50%;\n    // padding: ".concat(t.rem(24),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 100%;\n    padding: 0;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        font-size: 28px;\n        line-height: 34px;\n    ")},e=>{let{theme:t}=e;return t.rem(10)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      display: flex;\n    ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      margin-top: 4px;\n      justify-content: space-between;\n    ",!0)}),eP=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-18"})(_templateObject21(),e=>{let{theme:t}=e;return t.rem(12,0)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      display: none;\n    ")}),eI=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-19"})(_templateObject22(),e=>{let{theme:t}=e;return t.rem(10)});g.ZP.div.withConfig({componentId:"sc-3a5c16f8-20"})(_templateObject23());let eT=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-21"})(_templateObject24()),eZ=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-22"})(_templateObject25(),e=>{let{theme:t}=e;return t.rem(20,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    display: none;\n  ")},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary}),ez=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-23"})(_templateObject26(),e=>{let{theme:t}=e;return t.rem(12)},e=>{let{theme:t}=e;return t.rem(6)}),eF=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-24"})(_templateObject27(),e=>{let{theme:t}=e;return t.rem(300)}),eE=g.ZP.button.withConfig({componentId:"sc-3a5c16f8-25"})(_templateObject30(),e=>{let{theme:t}=e;return t.rem(30)},e=>{let{theme:t}=e;return t.rem(30)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackground},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.primaryText},e=>{let{$direction:t}=e;return"prev"===t&&(0,g.iv)(_templateObject28())},e=>{let{$direction:t}=e;return"next"===t&&(0,g.iv)(_templateObject29())},e=>{let{theme:t}=e;return t.rem(18)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackgroundHover},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.primaryDefaultBackground},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.disabledText}),eM=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-26"})(_templateObject31());g.ZP.h2.withConfig({componentId:"sc-3a5c16f8-27"})(_templateObject32(),e=>{let{theme:t}=e;return t.typo("paragraphMD")});let eA=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-28"})(_templateObject34(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    border-top: 0.2px solid #1b181850;\n    border-bottom: 0.2px solid #1b181850;\n  ")},e=>{let{$desktopOnly:t,theme:n}=e;return t&&(0,g.iv)(_templateObject33(),n.mediaQuery.lg("display: block;"))},e=>{let{$mobileOnly:t,theme:n}=e;return t&&n.mediaQuery.lg("display: none;")}),eB=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-29"})(_templateObject35()),eN=g.ZP.span.withConfig({componentId:"sc-3a5c16f8-30"}
1)(_templateObject36(),e=>{let{theme:t}=e;return t.typo("paragraphMD")},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary}),eD=g.ZP.span.withConfig({componentId:"sc-3a5c16f8-31"})(_templateObject37(),e=>{let{theme:t}=e;return t.typo("paragraphMD")},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n  margin-top: 3px;\n  ")}),eR=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-32"})(_templateObject38(),e=>{let{theme:t}=e;return t.rem(40)}),eL=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-33"})(_templateObject39(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,status:n}=e;return"available"!==n?t.colors.status.error.default:t.colors.status.success.default},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(0)}),eQ=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-34"})(_templateObject40(),e=>{let{theme:t}=e;return t.rem(28)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      margin-right: ".concat(t.rem(16),";\n    "))});g.ZP.div.withConfig({componentId:"sc-3a5c16f8-35"})(_templateObject41(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 70%;\n  ")});let eq=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-36"})(_templateObject42(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary}),eH=(0,g.ZP)(ed.Z).withConfig({componentId:"sc-3a5c16f8-37"})(_templateObject43(),e=>{let{href:t}=e;return!t&&"transparent"},e=>{let{href:t}=e;return!t&&"#1b1818"},e=>{let{href:t}=e;return t?"transparent":"#1b1818"},e=>{let{href:t}=e;return t&&"#1b1818"},e=>{let{href:t}=e;return t&&"#fff"});(0,g.ZP)(u.nv).withConfig({componentId:"sc-3a5c16f8-38"})(_templateObject44());let eV=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-39"})(_templateObject45()),eX=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-40"})(_templateObject47(),e=>{let{$desktopOnly:t,theme:n}=e;return t&&(0,g.iv)(_templateObject46(),n.mediaQuery.lg("display: block;"))},e=>{let{$mobileOnly:t,theme:n}=e;return t&&n.mediaQuery.lg("display: none;")}),eU=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-41"})(_templateObject48(),e=>{let{theme:t}=e;return t.typo("paragraphMD")},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.rem(16)}),eG=g.ZP.ul.withConfig({componentId:"sc-3a5c16f8-42"})(_templateObject49(),e=>{let{theme:t}=e;return t.rem(8)}),eW=g.ZP.li.withConfig({componentId:"sc-3a5c16f8-43"})(_templateObject50(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackground}),eJ=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-44"})(_templateObject51(),e=>{let{theme:t}=e;return t.rem(8,0,32)}),e$=g.ZP.h2.withConfig({componentId:"sc-3a5c16f8-45"})(_templateObject52(),e=>{let{theme:t}=e;return t.rem(6)},e=>{let{theme:t}=e;return t.rem(18)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.mediaQuery.md("\n     margin: 0 0 ".concat(t.rem(14),";\n    ").concat(t.typo("headingSM"),";\n  "))}),eY=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-46"})(_templateObject53(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    grid-template-columns: repeat(2, 1fr);\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    grid-template-columns: repeat(4, 1fr);\n  ")}),eK=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-47"})(_templateObject54(),e=>{let{theme:t}=e;return t.rem(7.5,10)},e=>{let{theme:t}=e;return t.rem(55)},e=>{let{theme:t}=e;return t.rem(7.5,10)},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    &:not(:last-child) { border-bottom: none; }\n    &:nth-child(-n+2) {\n      border-bottom: 1px solid ".concat(t.colorScheme.white.surface.borderSecondary,";\n    }\n    &:nth-child(even) {\n      border-left: 1px solid ").concat(t.colorScheme.white.surface.borderSecondary,";\n    }\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    min-height: ".concat(t.rem(70),";\n      padding: ").concat(t.rem(15),";\n    &:nth-child(-n+2) { border-bottom: none; }\n    &:nth-child(even) { border-left: none; }\n    &:not(:first-child) {\n      border-left: 1px solid ").concat(t.colorScheme.white.surface.borderSecondary,";\n    }\n  "))}),e0=g.ZP.span.withConfig({componentId:"sc-3a5c16f8-48"}
1)(_templateObject55(),e=>{let{theme:t}=e;return t.typo("paragraphXS")},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary}),e1=g.ZP.span.withConfig({componentId:"sc-3a5c16f8-49"})(_templateObject56(),e=>{let{theme:t}=e;return t.typo("paragraphMD")},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  ")}),e2=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-50"})(_templateObject57(),e=>{let{theme:t}=e;return t.rem(7)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    grid-template-columns: repeat(4, 1fr);\n  ")}),e4=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-51"})(_templateObject58(),e=>{let{theme:t}=e;return t.rem(1,15)},e=>{let{theme:t}=e;return t.typo("paragraphXS")},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex: 1;\n    border-bottom: none;\n\n    &:not(:last-child) {\n      border-bottom: none;\n    }\n  ")}),e6=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-52"})(_templateObject59(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(10)}),e5=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-53"})(_templateObject60()),e3=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-54"})(_templateObject61(),e=>{let{theme:t}=e;return t.rem(-8)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary}),e8=g.ZP.div.withConfig({componentId:"sc-3a5c16f8-55"})(_templateObject62());var e9=n(22902);function ModalImageViewer_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n\n  .swiper-thumb {\n    max-width: ",";\n    position: relative;\n    z-index: 10;\n\n    ","\n\n    ","\n\n    .swiper-slide {\n      width: ","!important;\n    }\n  }\n"]);return ModalImageViewer_styles_templateObject=function(){return e},e}function ModalImageViewer_styles_templateObject1(){let e=(0,h._)(["\n  width: 90%;\n  max-width: ",";\n  margin: 0 auto;\n  max-height: 80%;\n  position: relative;\n"]);return ModalImageViewer_styles_templateObject1=function(){return e},e}function ModalImageViewer_styles_templateObject2(){let e=(0,h._)(["\n  position: relative;\n  height: 65dvh;\n\n  ","\n\n  img {\n    width: 100%;\n    object-fit: contain;\n  }\n"]);return ModalImageViewer_styles_templateObject2=function(){return e},e}function ModalImageViewer_styles_templateObject3(){let e=(0,h._)(["\n    border-color: ",";  \n  "]);return ModalImageViewer_styles_templateObject3=function(){return e},e}function ModalImageViewer_styles_templateObject4(){let e=(0,h._)(["\n  width: ",";\n  position: relative;\n  cursor: pointer;\n  aspect-ratio: 1 / 1;\n  border: 1px solid ",";\n  overflow: hidden;\n  border-radius: ",";\n\n  ","\n\n  img {\n    object-fit: contain;\n  }\n"]);return ModalImageViewer_styles_templateObject4=function(){return e},e}function ModalImageViewer_styles_templateObject5(){let e=(0,h._)(["\n  position: absolute;\n  top: ",";\n  right: 0;\n  z-index: 10;\n\n  ","\n"]);return ModalImageViewer_styles_templateObject5=function(){return e},e}function ModalImageViewer_styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n  position: absolute;\n  bottom: 0;\n  display: flex;\n  justify-content: space-between;\n\n  ","\n"]);return ModalImageViewer_styles_templateObject6=function(){return e},e}let e7=g.ZP.div.withConfig({componentId:"sc-f00a2374-0"})(ModalImageViewer_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(220)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      max-width: ".concat(t.rem(500),";\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      max-width: ".concat(t.rem(300),";\n    "))},e=>{let{theme:t}=e;return t.rem(50)}),te=g.ZP.div.withConfig({componentId:"sc-f00a2374-1"})(ModalImageViewer_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(1280)}),tt=g.ZP.div.withConfig({componentId:"sc-f00a2374-2"})(ModalImageViewer_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    height: 75dvh;\n  ")}),tn=g.ZP.div.withConfig({componentId:"sc-f00a2374-3"}
1)(ModalImageViewer_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(50)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{active:t,theme:n}=e;return t&&(0,g.iv)(ModalImageViewer_styles_templateObject3(),n.colorScheme.white.surface.borderPrimary)}),tr=g.ZP.div.withConfig({componentId:"sc-f00a2374-4"})(ModalImageViewer_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(-58)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    top: ".concat(t.rem(0),";\n  "))}),ti=g.ZP.div.withConfig({componentId:"sc-f00a2374-5"})(ModalImageViewer_styles_templateObject6(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    max-width: ".concat(t.rem(500),";\n    left: 50%;\n    transform: translateX(-50%);\n  "))});var Modal_ModalImageViewer=e=>{let{imageGallery:t,index:n=!1}=e,[l,a]=(0,i.useState)(null),[o,s]=(0,i.useState)(null),[c,u]=(0,i.useState)(0),[h,g]=(0,K.Z)(),[f,y]=(0,K.Z)(),{closeModal:_}=(0,b.dd)();return(0,i.useEffect)(()=>{n&&o&&l&&(o.slideTo(n,0),l.slideTo(n,0))}
1,[o]),(0,r.jsx)(e7,{children:(0,r.jsxs)(te,{children:[(0,r.jsx)(tr,{children:(0,r.jsx)(m.Z,{iconEnd:"x-mark",handleClick:()=>_()})}),t.length&&t.length>1?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(et.tq,{thumbs:{swiper:l&&!l.destroyed?l:null},onSwiper:s,modules:[ee.o3,ee.s5,ee.xW,ee.W_],effect:"fade",fadeEffect:{crossFade:!0},className:"swiper-main",grabCursor:!0,onSlideChange:e=>u(e.activeIndex),ref:o,navigation:{prevEl:f,nextEl:h},children:t.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(tt,{children:(0,r.jsx)(d(),{src:e.url,alt:e.alternativeText,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw"})})},"swiper-main-".concat(t)))}),(0,r.jsx)(p.Nz,{xs:4,lg:2}),(0,r.jsx)(et.tq,{modules:[ee.o3,ee.W_],onSwiper:a,watchSlidesProgress:!0,className:"swiper-thumb",spaceBetween:16,slidesPerView:"auto",breakpoints:{1024:{allowTouchMove:!1}},children:t.map((e,t)=>(0,r.jsx)(et.o5,{onClick:()=>{l.slideTo(t),o.slideTo(t)},children:(0,r.jsx)(tn,{active:c===t,children:(0,r.jsx)(d(),{src:e.url,alt:e.alternativeText,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})})},"swiper-thumb-".concat(t)))}),(0,r.jsxs)(ti,{children:[(0,r.jsx)(m.a,{ref:y,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big",inheritedColorScheme:"lightOrange"}),(0,r.jsx)(m.a,{ref:g,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big",inheritedColorScheme:"lightOrange"})]})]}):(0,r.jsx)(tt,{children:(0,r.jsx)(d(),{src:t[0].url,alt:t[0].alternativeText,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw"})})]})})},tl=n(56175);function ExpandableText_styles_templateObject(){let e=(0,h._)([""]);return ExpandableText_styles_templateObject=function(){return e},e}function ExpandableText_styles_templateObject1(){let e=(0,h._)(["\n  position: relative;\n  /* overflow and max-height are set via inline style — controlled by React state.\n     transition is always declared here; it is suppressed on mount via inline\n     transition:'none' and re-enabled after the first rAF. */\n  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);\n  will-change: max-height;\n"]);return ExpandableText_styles_templateObject1=function(){return e},e}function ExpandableText_styles_templateObject2(){let e=(0,h._)(["\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  height: 30px;\n  pointer-events: none;\n  background: linear-gradient(to bottom, transparent, #ffffff);\n"]);return ExpandableText_styles_templateObject2=function(){return e},e}function ExpandableText_styles_templateObject3(){let e=(0,h._)(["\n  all: unset;\n  box-sizing: border-box;\n  cursor: pointer;\n  display: inline-flex;\n  align-items: center;\n"]);return ExpandableText_styles_templateObject3=function(){return e},e}let ta=g.ZP.div.withConfig({componentId:"sc-6709416c-0"})(ExpandableText_styles_templateObject()),to=g.ZP.div.withConfig({componentId:"sc-6709416c-1"})(ExpandableText_styles_templateObject1()),ts=g.ZP.div.withConfig({componentId:"sc-6709416c-2"})(ExpandableText_styles_templateObject2()),tc=g.ZP.button.withConfig({componentId:"sc-6709416c-3"})(ExpandableText_styles_templateObject3()),td=i.useLayoutEffect;var atoms_ExpandableText=e=>{let{children:t,maxLines:n=5,readMoreLabel:l="Leggi di pi\xf9",readLessLabel:a="Leggi di meno"}=e,[o,s]=(0,i.useState)(!1),[c,d]=(0,i.useState)({overflows:!1,collapsed:0,full:0}),[u,p]=(0,i.useState)(!1),m=(0,i.useRef)(null),h=(0,i.useRef)(null);td(()=>{let e=m.current,t=h.current;if(!e||!t)return;p(!1);let measure=()=>{let r=t.scrollHeight,i=window.getComputedStyle(e),l=parseFloat(i.lineHeight);isNaN(l)&&(l=1.6*parseFloat(i.fontSize));let a=Math.ceil(l*n),o=r>a;d(e=>e.overflows===o&&e.collapsed===a&&e.full===r?e:{overflows:o,collapsed:a,full:r}),o||s(!1),requestAnimationFrame(()=>p(!0))};measure();let r=new ResizeObserver(measure);return r.observe(t),()=>r.disconnect()},[t,n]);let{overflows:g,collapsed:f,full:b}=c,y=g?o?b:f:void 0,_={transition:u?void 0:"none",...void 0!==y?{maxHeight:"".concat(y,"px"),overflow:"hidden"}:{overflow:"visible"}};return(0,r.jsxs)(ta,{children:[(0,r.jsxs)(to,{ref:m,style:_,children:[(0,r.jsx)("div",{ref:h,children:t}),!o&&g&&(0,r.jsx)(ts,{})]}),g&&(0,r.jsx)(tc,{onClick:()=>s(e=>!e),"aria-expanded":o,type:"button",children:o?a:l})]})},tu=n(46194),hooks_useFlipbook=e=>{let[t,n]=(0,i.useState)(!1),[r,l]=(0,i.useState)(null),[a,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>
1{if(!e)return;let t=!1;return(async()=>{n(!0),l(null),o(null);try{let n="https://api.alphatest.it/";if(!n)throw Error("Missing NEXT_PUBLIC_FLIPBOOK_URL env variable");let r="".concat(n.replace(/\/$/,""),"/flipbook/check?isbn=").concat(encodeURIComponent(e)),i=await fetch(r,{method:"GET",headers:{Accept:"application/json"}}),l=await i.json().catch(()=>null);if(!i.ok)throw Error((null==l?void 0:l.message)?"HTTP ".concat(i.status,": ").concat(l.message):"HTTP ".concat(i.status,": flipbook check failed"));if(t)return;(null==l?void 0:l.exists)&&o(l.url||null)}catch(e){if(t)return;l(String(e))}finally{t||n(!1)}})(),()=>{t=!0}},[e]),{loading:t,error:r,url:a}},tp=n(41596),is_price_more_than_ten=function(e){let{compareAt:t,amount:n}=e,r=parseFloat(t),i=n?parseFloat(n):0;return r>10||i>10},tm=n(65943),utils_getRTokens=e=>Object.entries(e).reduce((e,t)=>{let[n,r]=t;return n.startsWith("r")&&""!==r&&(e[n]=r),e},{}),set_cookie=(e,t,n)=>{let r=new Date;r.setDate(r.getDate()+n);let i=encodeURIComponent(t)+(null==n?"":"; expires="+r.toUTCString());document.cookie=e+"="+i},th=n(14335),tg=n(75265),tf=n(81751);let tb=[{width:37,height:31,src:"/logos/payments/payment-carta-del-docente.png",alt:"Carta del docente"},{width:37,height:21,src:"/logos/payments/payment-carte-cultura.png",alt:"Carta Giovani o del Merito"}];var organisms_BookCover=e=>{let{tags:t=[],badges:n=[],bannerReviews:l,volumeContents:a=[],title:o,description:s,price:c=!1,imageGallery:h,subtitle:g,availability:f,variantId:_,bookAdditionalData:x,containedBooksValue:j=0,strapiData:v,isbn13:C=null,productData:w,additionalInfoData:O,abstract:S,relatedKit:k,gift:I,bookGift:T=[]}=e,[Z,z]=(0,i.useState)(null),[F,E]=(0,i.useState)(null),[M,A]=(0,i.useState)(!1),[B,N]=(0,i.useState)(0),[D,R]=(0,i.useState)(!0),L=(0,i.useRef)(null),Q=(0,i.useRef)(null),[q,H]=(0,K.Z)(),[V,X]=(0,K.Z)(),[U,G]=(0,i.useState)(null),[W,J]=(0,i.useState)({isBeginning:!0,isEnd:!1}),$=(0,ec.useRouter)(),{showModal:Y}=(0,b.dd)(),{sendGTM:en}=(0,P.rS)(),er=utils_getRTokens($.query),{linesAdd:ei,status:el,lines:ea,id:eo,cartAttributesUpdate:es}=(0,tu.jD)(),[ed,em]=(0,i.useState)(!1),{url:ef}=hooks_useFlipbook(C),eb=!0,ey=!!c&&!!c.compareAt&&!!c.amount&&(0,tm.v)(c.compareAt,c.amount),shouldRenderBuyNow=()=>{let e=!!c&&is_price_more_than_ten(c),t=(0,th.Z)("_rTokens");return e&&""===t};(0,i.useEffect)(()=>{if(ed&&"idle"===el&&eo){let e=(0,tg.P)();e&&es([{key:"hsdcid",value:e}]),em(!1)}},[el,eo,ed]);let handleAddToCart=(e,t)=>{("idle"===e||"uninitialized"===e)&&(ei([{merchandiseId:t}]),A(!0),en({...(0,tf.UB)({data:v},"book")}),em(!0))};(0,i.useEffect)(()=>{window&&(Object.keys(er).length>0&&set_cookie("_rTokens",JSON.stringify(er)),R(shouldRenderBuyNow()))},[]),(0,i.useEffect)(()=>{window.Trustpilot&&Q.current&&window.Trustpilot.loadFromElement(Q.current,!0)},[]),("out-of-stock"===f.status||"temporarily-out-of-stock"===f.status)&&(eb=!1);let e7=c.compareAt&&Number(c.compareAt)>Number(c.amount);return(0,r.jsx)(eu,{children:(0,r.jsxs)(eP,{children:[(0,r.jsx)(p.W2,{children:(0,r.jsxs)(ep,{children:[(0,r.jsx)(eh,{children:h.length&&h.length>1?(0,r.jsxs)(ev,{children:[(0,r.jsxs)(eC,{children:[(0,r.jsx)(m.a,{style:{width:"30px",height:"30px"},ref:X,variant:"secondary",iconEnd:"chevron-up",iconEndSize:"big",inheritedColorScheme:"lightOrange"}),(0,r.jsx)(et.tq,{modules:[ee.o3,ee.W_],onSwiper:z,watchSlidesProgress:!0,className:"swiper-thumb",spaceBetween:20,slidesPerView:2,direction:"vertical",breakpoints:{1024:{allowTouchMove:!1}},navigation:{prevEl:V,nextEl:q},children:h.map((e,t)=>{let n="Miniatura ".concat(t+1);return(0,r.jsx)(et.o5,{onClick:()=>{Z.slideTo(t),F.slideTo(t)},children:(0,r.jsx)(eS,{active:B===t,children:(0,r.jsx)(d(),{src:e.url,alt:n,fill:!0,sizes:"102px"})})},"swiper-thumb-".concat(t))})}),(0,r.jsx)(m.a,{style:{width:"30px",height:"30px"},ref:H,variant:"secondary",iconEnd:"chevron-down",iconEndSize:"big",inheritedColorScheme:"lightOrange"})]}),(0,r.jsx)(ew,{children:(0,r.jsx)(et.tq,{thumbs:{swiper:Z&&!Z.destroyed?Z:null},onSwiper:E,modules:[ee.o3,ee.s5,ee.xW,ee.W_],effect:"fade",fadeEffect:{crossFade:!0},className:"swiper-main",grabCursor:!0,onSlideChange:e=>N(e.activeIndex),ref:F,navigation:{prevEl:V,nextEl:q}
1,children:h.map((e,t)=>{let n={"out-of-stock":"non in vendita","temporarily-out-of-stock":"non in vendita","awatinf-reprint":"in ristampa","pre-sale":"in prevendita"}[null==f?void 0:f.status]||"disponibile",i='Copertina del libro: "'.concat(o,'"').concat(n?", ".concat(n):"");return(0,r.jsxs)(et.o5,{children:[(0,r.jsx)(eO,{onClick:()=>Y(Modal_ModalImageViewer,{imageGallery:h,index:B,foreground:!0}),children:(0,r.jsx)(d(),{src:e.url,alt:i,priority:0===t,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 75vw"})}),ef&&(0,r.jsx)(ReadFlipbook,{flipbookUrl:ef})]},"swiper-main-".concat(t))})})})]}):h.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eO,{onClick:()=>Y(Modal_ModalImageViewer,{imageGallery:h,foreground:!0}),children:(0,r.jsx)(d(),{src:h[0].url,alt:h[0].alternativeText,priority:!0,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 75vw"})}),ef&&(0,r.jsx)(ReadFlipbook,{flipbookUrl:ef})]}):null}),(0,r.jsxs)(eg,{children:[(0,r.jsxs)(ek,{children:[t.length?(0,r.jsx)(eI,{children:(0,r.jsx)(p.kC,{wrap:"wrap",gap:1,children:t.map((e,t)=>(0,i.createElement)(eH,{...e,key:t,style:{padding:"5px 14px"}}))})}):null,(0,r.jsx)(u.X6,{className:"book-title",content:o,typo:"headingXL",weight:"semibold",fontSecondary:!0,as:"h1"}),(0,r.jsx)(u.X6,{style:{marginTop:"5px"},typo:"headingXS",weight:"semibold",textSecondary:!0,fontSecondary:!0,children:g}),n.length>0&&(0,r.jsx)(p.kC,{wrap:"wrap",gap:1,children:n.map((e,t)=>(0,r.jsx)(tl.Z,{text:e.label,style:{marginTop:"9px"}},t))}),!0===l&&(0,r.jsxs)(e6,{children:[(0,r.jsxs)(e5,{children:[(0,r.jsx)(e3,{children:(0,r.jsx)(d(),{src:"/reviews/avatar-1.svg",alt:"Recensore 1",fill:!0,sizes:"39px"})}),(0,r.jsx)(e3,{children:(0,r.jsx)(d(),{src:"/reviews/avatar-2.svg",alt:"Recensore 2",fill:!0,sizes:"39px"})}),(0,r.jsx)(e3,{children:(0,r.jsx)(d(),{src:"/reviews/avatar-3.svg",alt:"Recensore 3",fill:!0,sizes:"39px"})})]}),(0,r.jsx)(e8,{children:(0,r.jsx)("div",{ref:Q,className:"trustpilot-widget","data-locale":"it-IT","data-template-id":"54197383fd9dceac42a68694","data-businessunit-id":"5d176fc8588afe0001243109","data-style-size":"XS","data-token":"83acf9dc-edef-4566-827a-d3b8565bcd4e","data-text-color":"dark","data-headline":"review-number","data-background":"none","data-external-elements-color":"light",children:(0,r.jsx)("a",{href:"https://it.trustpilot.com/review/www.alphatest.it",target:"_blank",rel:"noopener"})})})]}),h.length>0&&(0,r.jsxs)(eZ,{children:[(0,r.jsxs)(eF,{children:[h.length>1&&(0,r.jsx)(eE,{$direction:"prev",onClick:()=>null==U?void 0:U.slidePrev(),"aria-label":"Immagine precedente",disabled:W.isBeginning,children:(0,r.jsx)(y.Z,{name:"chevron-left",ariaHidden:"true"})}),h.length>1&&(0,r.jsx)(eE,{$direction:"next",onClick:()=>null==U?void 0:U.slideNext(),"aria-label":"Immagine successiva",disabled:W.isEnd,children:(0,r.jsx)(y.Z,{name:"chevron-right",ariaHidden:"true"})}),(0,r.jsx)(et.tq,{modules:[ee.tl,ee.s5],pagination:{clickable:!0,el:".mobile-swiper-pagination"},onSwiper:e=>{G(e),J({isBeginning:e.isBeginning,isEnd:e.isEnd})},onSlideChange:e=>J({isBeginning:e.isBeginning,isEnd:e.isEnd}),grabCursor:!0,spaceBetween:0,slidesPerView:1,children:h.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(eO,{onClick:()=>Y(Modal_ModalImageViewer,{imageGallery:h,index:t,foreground:!0}),children:(0,r.jsx)(d(),{src:e.url,alt:"".concat(o," - immagine ").concat(t+1),priority:0===t,fill:!0,sizes:"100vw"})})},"swiper-mobile-".concat(t)))})]}),ef&&(0,r.jsx)(ReadFlipbook,{flipbookUrl:ef}),h.length>1&&(0,r.jsx)(ez,{className:"mobile-swiper-pagination"})]}),(s||a.length>0)&&(0,r.jsxs)(eA,{$desktopOnly:!0,children:[s&&(0,r.jsxs)(eB,{children:[(0,r.jsx)(eN,{children:"Descrizione"}),(0,r.jsx)(atoms_ExpandableText,{maxLines:8,readMoreLabel:(0,r.jsxs)(eD,{as:"span",children:["Leggi di pi\xf9",(0,r.jsx)(y.Z,{name:"chevron-down",ariaHidden:"true"})]}),readLessLabel:(0,r.jsxs)(eD,{as:"span",children:["Leggi di meno",(0,r.jsx)(y.Z,{name:"chevron-up",ariaHidden:"true"})]}),children:(0,r.jsx)(u.nv,{as:"div",typo:"paragraphMD",textSecondary:!0,content:s})})]}),a.length>0&&(0,r.jsxs)(eX,{$desktopOnly:!0,children:[(0,r.jsx)(eU,{children:"Incluso nel volume"}),(0,r.jsx)(eG,{children:a.map((e,t)=>(0,r.jsxs)(eW,{children:[(0,r.jsx)(y.Z,{name:"check-circle",ariaHidden:"true"}),(0,r.jsx)("span",{children:e.title})]},t))})]})]})]}),(0,r.jsxs)(ek,{children:[(0,r.jsxs)(p.kC,{alignItems:"center",gap:2,style:{marginTop:"20px"},children:[(0,r.jsx)(u.X6,{typo:"headingSM",weight:"semibold",textPrimary:!0,content:(0,tp.T4)({amount:c.amount,currencyCode:c.currencyCode}),fontSecondary:!0}),e7&&(0,r.jsx)(e_,{children:(0,r.jsx)(u.nv,{typo:"paragraphLG",fontSecondary:!0,content:(0,tp.T4)({amount:c.compareAt,currencyCode:c.currencyCode})})}),e7&&ey?(0,r.jsx)(eM,{children:(0,r.jsx)(u.X6,{typo:"paragraphSM",weight:"semibold",content:"-".concat(ey,"%"),fontSecondary:!0})}):null]}),j>0?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(eq,{children:[(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"".concat((0,tp.T4)({amount:j,currencyCode:"EUR"})," (somma prezzi singoli libri)"),weight:"semibold",fontSecondary:!0}),(0,r.jsx)(p.Nz,{xs:1})]})}):null,(f||eb)&&(0,r.jsxs)(ex,{children:[(0,r.jsx)(y.Z,{name:"truck",ariaHidden:"true",style:{fontSize:"15px",color:"#5A5656",flexShrink:0}}),f?(0,r.jsxs)(ej,{status:f.status,children:["available"!==f.status&&!(null==s?void 0:s.includes("SEPARATAMENTE"))&&(0,r.jsx)(eL,{status:f.status,children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:f.message,weight:"semibold"})}),"available"===f.status||"awaiting-reprint"===f.status?(0,r.jsx)(eL,{status:f.status,children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"Conseg
1na in 1-2 giorni lavorativi",weight:"semibold"})}):null]}):null,eb?(0,r.jsxs)(eT,{children:[Number(c.amount)>=20?(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"| Spedizione GRATUITA",weight:"semibold",fontSecondary:!0,style:{color:"#5A5656"}}):(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"| Spedizione GRATUITA per ordini superiori a 20€",weight:"semibold",fontSecondary:!0,style:{color:"#5A5656"}}),f&&"pre-sale"===f.status?(0,r.jsx)(u.nv,{typo:"paragraphSM",fontSecondary:!0,content:"| Consegna in 1-2 giorni lavorativi",weight:"semibold",style:{color:"#5A5656"}}):null]}):null]}),(0,r.jsx)(m.Z,{variant:"coral",label:"Aggiungi al carrello",className:"add-to-cart-button",iconEnd:"chevron-right",fullWidth:!0,disabled:!eb||"updating"===el,handleClick:()=>handleAddToCart(el,_),innerRef:L}),eb&&(0,r.jsxs)(p.kC,{className:"payment-methods",alignItems:"center",justifyContent:"center",gap:1,children:[(0,r.jsxs)(p.kC,{alignItems:"center",gap:1,children:[(0,r.jsx)(eV,{as:y.Z,name:"check-circle",size:"big",ariaHidden:"true"}),Number(c.amount)>=20?(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,content:"Acquistabile con carte ministeriali"}):(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,content:"Acquistabile con carte ministeriali per ordini superiori a 20€"})]}),(0,r.jsx)(eR,{children:tb.map((e,t)=>(0,r.jsx)(eQ,{children:(0,r.jsx)(d(),{...e})},t))})]}),(s||a.length>0)&&(0,r.jsxs)(eA,{$mobileOnly:!0,children:[s&&(0,r.jsxs)(eB,{children:[(0,r.jsx)(eN,{children:"Descrizione"}),(0,r.jsx)(atoms_ExpandableText,{maxLines:6.5,readMoreLabel:(0,r.jsxs)(eD,{as:"span",children:["Leggi di pi\xf9",(0,r.jsx)(y.Z,{name:"chevron-down",ariaHidden:"true"})]}),readLessLabel:(0,r.jsxs)(eD,{as:"span",children:["Leggi di meno",(0,r.jsx)(y.Z,{name:"chevron-up",ariaHidden:"true"})]}),children:(0,r.jsx)(u.nv,{as:"div",typo:"paragraphMD",textSecondary:!0,content:s})})]}),a.length>0&&(0,r.jsxs)(eX,{$mobileOnly:!0,children:[(0,r.jsx)(eU,{children:"Incluso nel volume"}),(0,r.jsx)(eG,{children:a.map((e,t)=>(0,r.jsxs)(eW,{children:[(0,r.jsx)(y.Z,{name:"check-circle",ariaHidden:"true"}),(0,r.jsx)("span",{children:e.title})]},t))})]})]})]}),(0,r.jsx)(e9.Z,{isVisible:M,setShowTooltip:A,title:o,image:!!h.length&&h[0],price:(0,tp.T4)({amount:c.amount,currencyCode:c.currencyCode})})]})]})}),(x.grid.length>0||x.row.length>0)&&(0,r.jsx)(p.W2,{children:(0,r.jsxs)(eJ,{children:[(0,r.jsx)(e$,{children:"Dati del libro"}),(0,r.jsx)(eY,{children:x.grid.map(e=>{let{label:t,value:n}=e;return(0,r.jsxs)(eK,{children:[(0,r.jsx)(e0,{children:t}),(0,r.jsx)(e1,{title:String(n),children:n})]},t)})}),(0,r.jsx)(e2,{children:x.row.map(e=>{let{label:t,value:n}=e;return(0,r.jsxs)(e4,{title:"".concat(t," ").concat(n),children:[t.toUpperCase()," ",n]},t)})})]})}),(0,r.jsx)("div",{className:"add-to-cart-button-sticky",children:(0,r.jsx)(p.W2,{children:(0,r.jsx)(m.Z,{variant:"coral",label:"Aggiungi al carrello",iconEnd:"chevron-right",fullWidth:!0,disabled:!eb||"updating"===el,handleClick:()=>handleAddToCart(el,_)})})})]})})};let ReadFlipbook=e=>{let{flipbookUrl:t}=e;return(0,r.jsx)(ef,{href:t,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsxs)(eb,{children:["Leggi l'estratto",(0,r.jsx)(ey,{children:(0,r.jsx)(y.Z,{name:"eye",ariaHidden:"true"})})]})})};var ty=n(97805),t_=n(24362);function CardsGrid_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n"]);return CardsGrid_styles_templateObject=function(){return e},e}function CardsGrid_styles_templateObject1(){let e=(0,h._)(["\n  margin-bottom: ",";\n"]);return CardsGrid_styles_templateObject1=function(){return e},e}let tx=g.ZP.div.withConfig({componentId:"sc-73ea7586-0"})(CardsGrid_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))}),tj=(0,g.ZP)(p.JX).withConfig({componentId:"sc-73ea7586-1"})(CardsGrid_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)});var organisms_CardsGrid=e=>{let{type:t="CardCourse",items:n=[]}=e,i={CardCourse:{component:ty.Z,col:4},CardBook:{component:t_.Z,col:4}};return n&&n.length>0?(0,r.jsx)(tx,{children:(0,r.jsx)(p.W2,{children:(0,r.jsx)(p.X2,{children:n.map((e,n)=>{let l=i[t].component;return(0,r.jsx)(tj,{xs:6,lg:i[t].col,children:(0,r.jsx)(l,{...e})},"card-".concat(t,"-").concat(n))})})})}):null},tv=n(33922);
1function RelatedCardBook_styles_templateObject(){let e=(0,h._)(["\n  position: relative;\n  aspect-ratio: 5.3 / 4;\n  background-color: #D9D9D9;\n  transition: background-color 0.6s ease-in-out;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  overflow: hidden;\n\n  @media screen and (max-width: 991px) {\n      aspect-ratio: 4.3 / 4;\n  }\n  \n  img.book-image {\n    height: 100%;\n    width: auto;\n    display: block;\n    z-index: 1;\n\n    // Da intendersi max-width query non min (fino a lg 991)\n    @media screen and (max-width: 991px) {\n      height: 76%;\n    }\n\n    // fino a md (767)\n    ","\n  }\n\n  svg {\n    path {\n      stroke: #3B3838;\n      stroke-width: 1.5;\n      stroke-dasharray: 1;\n      stroke-dashoffset: 1;\n      transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);\n    }\n  }\n"]);return RelatedCardBook_styles_templateObject=function(){return e},e}function RelatedCardBook_styles_templateObject1(){let e=(0,h._)(["\n  position: relative;\n  height: 264px;\n  margin: auto;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  @media screen and (max-width: 991px) {\n    height: 198px;\n  }\n\n  @media screen and (min-width: 1280px) {\n    height: 200px;\n  }\n\n  @media screen and (min-width: 1920px) {\n    height: 264px;\n  }\n\n  // img.book-shadow {\n  //   position: absolute;\n  //   bottom: 25px !important;\n  //   left: -80px !important;\n  //   width: 80px !important;\n  //   height: auto;\n  //   z-index: 0;\n  //   pointer-events: none;\n\n  //   ","\n  // }\n"]);return RelatedCardBook_styles_templateObject1=function(){return e},e}function RelatedCardBook_styles_templateObject2(){let e=(0,h._)(["\n  position: absolute;\n  bottom: ",";\n  right: ",";\n  z-index: 0;\n\n  ","\n"]);return RelatedCardBook_styles_templateObject2=function(){return e},e}function RelatedCardBook_styles_templateObject3(){let e=(0,h._)(["\n  position: absolute;\n  top: ",";\n  left: ",";\n  z-index: 0;\n\n  ","\n\n  svg {\n    path {\n      transition-delay: 0.2s;\n    }\n  }\n"]);return RelatedCardBook_styles_templateObject3=function(){return e},e}function RelatedCardBook_styles_templateObject4(){let e=(0,h._)(["\n  // padding: ",";\n  padding-top: ",";\n"]);return RelatedCardBook_styles_templateObject4=function(){return e},e}function RelatedCardBook_styles_templateObject5(){let e=(0,h._)(["\n  display: inline;\n  background-image: linear-gradient(0deg, currentColor, currentColor);\n  background-position: 100% 100%;\n  background-repeat: no-repeat;\n  background-size: 0% 1px;\n  outline-width: 0;  \n  transition: background-size 0.6s ease-in-out;\n  transform: translateZ(0);\n  -webkit-font-smoothing: subpixel-antialiased;\n"]);return RelatedCardBook_styles_templateObject5=function(){return e},e}function RelatedCardBook_styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n  display: block;\n\n  &:hover,\n  &:focus,\n  &:active,\n  &:focus-within {\n    "," {\n      //background-color: #EAF1F1;\n      background-color: #E9F1ED;;\n\n      \n      // img {\n      //   transform: translate(-50%, -50%) scale(1.25);\n        \n      //   ","\n\n      //   ","\n      // }\n\n      // svg {\n      //   path {\n      //     stroke-dashoffset: 0;\n      //   }\n      // }\n    }\n\n    "," {\n      background-size: 100% 1px;\n    }\n  }\n"]);return RelatedCardBook_styles_templateObject6=function(){return e},e}function RelatedCardBook_styles_templateObject7(){let e=(0,h._)(["\n  margin-bottom: ",";\n"]);return RelatedCardBook_styles_templateObject7=function(){return e},e}function RelatedCardBook_styles_templateObject8(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  margin-top: ",";\n  gap: ",";\n  \n  ","\n"]);return RelatedCardBook_styles_templateObject8=function(){return e},e}function RelatedCardBook_styles_templateObject9(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n  gap: 9px;\n\n  .current-price {\n    font-size: 16px;\n    line-height: 24px;\n    font-weight: 700;\n  }\n"]);return RelatedCardBook_styles_templateObject9=function(){return e},e}
1function RelatedCardBook_styles_templateObject10(){let e=(0,h._)(["\n  color: ",";\n  text-decoration: line-through;\n"]);return RelatedCardBook_styles_templateObject10=function(){return e},e}function RelatedCardBook_styles_templateObject11(){let e=(0,h._)(["\n  color: #8B6612;\n  margin-left: auto;\n\n  ","\n"]);return RelatedCardBook_styles_templateObject11=function(){return e},e}function styles_templateObject12(){let e=(0,h._)(["\n  margin: ",";\n  display: none;\n\n  ","\n\n"]);return styles_templateObject12=function(){return e},e}let tC=g.ZP.div.withConfig({componentId:"sc-101c209a-0"})(RelatedCardBook_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n      height: 90%;\n    ",!0)}),tw=g.ZP.div.withConfig({componentId:"sc-101c209a-1"})(RelatedCardBook_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n  //     left: -80px !important;\n  //     width: 110px !important;\n  //   ",!1)});g.ZP.div.withConfig({componentId:"sc-101c209a-2"})(RelatedCardBook_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 50%;\n    bottom: 0;\n    right: 0;\n\n    svg {\n      width: 100%;\n    }\n  ",!0)}),g.ZP.div.withConfig({componentId:"sc-101c209a-3"})(RelatedCardBook_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 50%;\n    top: 0;\n    left: 0;\n\n    svg {\n      width: 100%;\n    }\n  ",!0)});let tO=g.ZP.div.withConfig({componentId:"sc-101c209a-4"})(RelatedCardBook_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(16,12)},e=>{let{theme:t}=e;return t.rem(14)}),tS=g.ZP.div.withConfig({componentId:"sc-101c209a-5"})(RelatedCardBook_styles_templateObject5()),tk=g.ZP.a.withConfig({componentId:"sc-101c209a-6"})(RelatedCardBook_styles_templateObject6(),tC,e=>{let{theme:t}=e;return t.mediaQuery.xl("\n      //     transform: translate(-50%, -50%) scale(1.1);\n      //   ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      //     transform: translate(-50%, -50%) scale(0.9);\n      //   ",!0)},tS),tP=g.ZP.div.withConfig({componentId:"sc-101c209a-7"})(RelatedCardBook_styles_templateObject7(),e=>{let{theme:t}=e;return t.rem(14)}),tI=g.ZP.div.withConfig({componentId:"sc-101c209a-8"})(RelatedCardBook_styles_templateObject8(),e=>{let{theme:t}=e;return t.rem(2)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    justify-content: flex-start;\n    gap: 0;\n    align-items: center;\n    flex-direction: row;\n  ")}),tT=g.ZP.div.withConfig({componentId:"sc-101c209a-9"})(RelatedCardBook_styles_templateObject9()),tZ=g.ZP.div.withConfig({componentId:"sc-101c209a-10"})(RelatedCardBook_styles_templateObject10(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary}),tz=g.ZP.div.withConfig({componentId:"sc-101c209a-11"})(RelatedCardBook_styles_templateObject11(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    margin-left: ".concat(t.rem(18),";\n  "))}),tF=g.ZP.div.withConfig({componentId:"sc-101c209a-12"})(styles_templateObject12(),e=>{let{theme:t}=e;return t.rem(0,16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: block;\n  ")});var molecules_RelatedCardBook=e=>{let{title:t,subtitle:n,slug:i,image:l,tags:a,price:o,compare_at_price:s,discount:c,coursesIncluded:m}=e;return(0,r.jsx)(tv.Z,{href:"".concat(i),children:(0,r.jsxs)(tk,{href:"".concat(i),children:[(0,r.jsx)(tC,{children:(0,r.jsx)(tw,{children:l?(0,r.jsx)(d(),{className:"book-image",src:l.src,alt:l.alt||"","aria-hidden":"true",width:0,height:0,sizes:"100vw",style:{height:"100%",width:"auto"}}):null})}),(0,r.jsxs)(tO,{children:[a&&a.length>0?(0,r.jsx)(tP,{children:a.map((e,t)=>(0,r.jsx)(ed.Z,{label:null==e?void 0:e.label,style:{padding:"5px 14px",height:"28px"}},"CardBookTags-".concat(t)))}):null,(0,r.jsx)(tS,{as:u.nv,forwardedAs:"div",typo:"paragraphMD",weight:"semibold",children:t}),n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{as:"div",typo:"paragraphMD",textSecondary:!0,children:n})]}):null,o?(0,r.jsxs)(tI,{children:[m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"Incluso con i corsi",textSecondary:!0}),(0,r.jsx)(tF,{as:u.nv,typo:"paragraphSM",content:"/"})]}):null,(0,r.jsxs)(tT,{children:[(0,r.jsx)(u.nv,{className:"current-price",typo:"paragraphSM",content:(0,tp.T4)({amount:o,currencyCode:"EUR"})}),s?(0,r.jsx)(tZ,{children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:(0,tp.T4)({amount:s,currencyCode:"EUR"})})}):null,c?(0,r.jsx)(tz,{children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"-".concat(c,"%"),weight:"semibold"})}):null]})]}):null]})]})})},tE=n(73510);
1function CardTeacher_styles_templateObject(){let e=(0,h._)(["\n    border: 1px solid ",";\n  "]);return CardTeacher_styles_templateObject=function(){return e},e}function CardTeacher_styles_templateObject1(){let e=(0,h._)(["\n  padding: ",";\n  border-radius: ",";\n\n  ","\n"]);return CardTeacher_styles_templateObject1=function(){return e},e}function CardTeacher_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  margin-bottom: ",";\n  text-transform: uppercase;\n"]);return CardTeacher_styles_templateObject2=function(){return e},e}function CardTeacher_styles_templateObject3(){let e=(0,h._)(["\n  position: relative;\n  aspect-ratio: 3 / 4;\n  border-radius: ",";\n  margin-bottom: ",";\n  overflow: hidden;\n"]);return CardTeacher_styles_templateObject3=function(){return e},e}let tM=g.ZP.div.withConfig({componentId:"sc-17108da4-0"})(CardTeacher_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24,16)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(CardTeacher_styles_templateObject(),t.colorScheme["".concat(n)].surface.borderColor)}),tA=g.ZP.div.withConfig({componentId:"sc-17108da4-1"})(CardTeacher_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(16)}),tB=g.ZP.div.withConfig({componentId:"sc-17108da4-2"})(CardTeacher_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)}),tN=["premium","sprint","essential","masterclass","biennale","white","dark","lightOrange","whiteyMint","EsseSprint"];var molecules_CardTeacher=e=>{let{colorScheme:t="white",index:n,name:i,description:l,role:a,image:o}=e,s=tN.includes(t)?t:"white";return(0,r.jsxs)(tM,{colorScheme:s,children:[(0,r.jsxs)(tA,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",content:n}),(0,r.jsx)(u.nv,{typo:"label",content:a})]}),(0,r.jsx)(tB,{children:(0,r.jsx)(d(),{src:o.src,alt:o.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"})}),(0,r.jsx)(u.nv,{typo:"headingXS",content:i}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphMD",content:l,textSecondary:!0})]})};function AccordionCards_styles_templateObject(){let e=(0,h._)(["\n  \n"]);return AccordionCards_styles_templateObject=function(){return e},e}function AccordionCards_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  padding: ",";\n  text-align: left;\n  cursor: pointer;\n\n\n\n  ","\n\n  ","\n"]);return AccordionCards_styles_templateObject1=function(){return e},e}function AccordionCards_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  align-items: flex-start;\n  \n  ","\n"]);return AccordionCards_styles_templateObject2=function(){return e},e}function AccordionCards_styles_templateObject3(){let e=(0,h._)(["\n  text-transform: none;\n\n  ","\n"]);return AccordionCards_styles_templateObject3=function(){return e},e}function AccordionCards_styles_templateObject4(){let e=(0,h._)(["\n  padding: ",";\n  border-radius: ",";\n  text-transform: uppercase;\n\n  ","\n\n  ","\n"]);return AccordionCards_styles_templateObject4=function(){return e},e}function AccordionCards_styles_templateObject5(){let e=(0,h._)(["\n    span {\n      &:first-child {\n        transform: translate(-50%, -50%) rotate(0deg);\n      }\n    }\n  "]);return AccordionCards_styles_templateObject5=function(){return e},e}function AccordionCards_styles_templateObject6(){let e=(0,h._)(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  cursor: pointer;\n\n  span {\n    width: ",";\n    height: ",";\n    display: block;\n    border-radius: ",";\n    pointer-events: none;\n\n    &:first-child {\n      position: absolute;\n      left: 50%;\n      top: 50%;\n      transform: translate(-50%, -50%) rotate(90deg);\n      transition: transform "," ease-in 0s;      \n    }\n  }\n\n  ","\n\n  ","\n"]);return AccordionCards_styles_templateObject6=function(){return e},e}
1function AccordionCards_styles_templateObject7(){let e=(0,h._)(["\n  display: grid;\n  grid-template-rows: ",";\n  transition: grid-template-rows .2s ease-in-out;\n  overflow: hidden;\n"]);return AccordionCards_styles_templateObject7=function(){return e},e}function AccordionCards_styles_templateObject8(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  min-height: 0;\n  overflow: hidden;\n\n  ","\n"]);return AccordionCards_styles_templateObject8=function(){return e},e}function AccordionCards_styles_templateObject9(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  padding: ",";\n"]);return AccordionCards_styles_templateObject9=function(){return e},e}function AccordionCards_styles_templateObject10(){let e=(0,h._)(["\n  margin-bottom: ",";\n"]);return AccordionCards_styles_templateObject10=function(){return e},e}function AccordionCards_styles_templateObject11(){let e=(0,h._)(["\n  margin-right: ",";\n  text-decoration: line-through;\n"]);return AccordionCards_styles_templateObject11=function(){return e},e}function AccordionCards_styles_templateObject12(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n\n  &:not(:last-child) {\n    padding-bottom: ",";\n    margin-bottom: ",";\n    border-bottom: 1px solid;\n  }\n"]);return AccordionCards_styles_templateObject12=function(){return e},e}function styles_templateObject13(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n\n  "," {\n    margin-right: ",";\n  }\n"]);return styles_templateObject13=function(){return e},e}function styles_templateObject14(){let e=(0,h._)(["\n  height: 100%;\n  margin-bottom: ",";\n  "]);return styles_templateObject14=function(){return e},e}function styles_templateObject15(){let e=(0,h._)(["\n  padding: ",";\n  border-top: 0.5px solid;\n"]);return styles_templateObject15=function(){return e},e}function styles_templateObject16(){let e=(0,h._)(["\n  padding: ",";\n"]);return styles_templateObject16=function(){return e},e}function styles_templateObject17(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n\n  "," {\n    margin-right: ",";\n  }\n"]);return styles_templateObject17=function(){return e},e}function styles_templateObject18(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  padding: ",";\n"]);return styles_templateObject18=function(){return e},e}function styles_templateObject19(){let e=(0,h._)(["\n    border: 1px solid ",";\n    color: ",";\n\n    ",",\n    "," {\n      background-color: ",";\n    }\n\n    "," {\n      color: ",";\n      background-color: ",";\n    }\n\n    "," {\n      span {\n        background-color: ",";\n      }\n    }\n\n    "," {\n      &:not(:last-child) {\n        border-bottom-color: ",";\n      }\n    }\n\n    "," {\n      background-color: ",";\n      border-top-color: ",";\n    }\n\n    "," {\n      color: ",";\n    }\n  "]);return styles_templateObject19=function(){return e},e}function styles_templateObject20(){let e=(0,h._)(["\n  width: 100%;\n  height: 100%;\n  overflow: hidden;\n\n  ","\n\n  ","\n"]);return styles_templateObject20=function(){return e},e}g.ZP.div.withConfig({componentId:"sc-4a03870e-0"})(AccordionCards_styles_templateObject());let tD=g.ZP.div.withConfig({componentId:"sc-4a03870e-1"})(AccordionCards_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    cursor: inherit;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(24,16,16,16),";\n  "))}),tR=g.ZP.div.withConfig({componentId:"sc-4a03870e-2"})(AccordionCards_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 100%;\n    flex-direction: row;\n    align-items: center;\n  ",!0)}),tL=g.ZP.div.withConfig({componentId:"sc-4a03870e-3"})(AccordionCards_styles_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    order: 1;\n  ")}),tQ=g.ZP.p.withConfig({componentId:"sc-4a03870e-4"}
1)(AccordionCards_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(3,12)},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.mediaQuery.xs("\n    margin-right: ".concat(t.rem(16),"};\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    order: 0;\n    margin-bottom: ".concat(t.rem(8),"};\n  "))}),tq=g.ZP.div.withConfig({componentId:"sc-4a03870e-5"})(AccordionCards_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(1)},e=>{let{theme:t}=e;return t.rem(2)},e=>{let{theme:t}=e;return t.timing.fast},e=>{let{isOpen:t}=e;return t&&(0,g.iv)(AccordionCards_styles_templateObject5())},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: none;\n  ")}),tH=g.ZP.div.withConfig({componentId:"sc-4a03870e-6"})(AccordionCards_styles_templateObject7(),e=>{let{$isOpen:t}=e;return t?"1fr":"0fr"}),tV=g.ZP.div.withConfig({componentId:"sc-4a03870e-7"})(AccordionCards_styles_templateObject8(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    height: 100%;\n  ")}),tX=g.ZP.div.withConfig({componentId:"sc-4a03870e-8"})(AccordionCards_styles_templateObject9(),e=>{let{theme:t}=e;return t.rem(0,16,24,16)}),tU=g.ZP.div.withConfig({componentId:"sc-4a03870e-9"})(AccordionCards_styles_templateObject10(),e=>{let{theme:t}=e;return t.rem(24)}),tG=g.ZP.p.withConfig({componentId:"sc-4a03870e-10"})(AccordionCards_styles_templateObject11(),e=>{let{theme:t}=e;return t.rem(8)}),tW=g.ZP.div.withConfig({componentId:"sc-4a03870e-11"})(AccordionCards_styles_templateObject12(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(8)}),tJ=g.ZP.div.withConfig({componentId:"sc-4a03870e-12"})(styles_templateObject13(),R.x,e=>{let{theme:t}=e;return t.rem(8)}),t$=g.ZP.div.withConfig({componentId:"sc-4a03870e-13"})(styles_templateObject14(),e=>{let{theme:t}=e;return t.rem(8)}),tY=g.ZP.div.withConfig({componentId:"sc-4a03870e-14"})(styles_templateObject15(),e=>{let{theme:t}=e;return t.rem(16)}),tK=g.ZP.div.withConfig({componentId:"sc-4a03870e-15"})(styles_templateObject16(),e=>{let{theme:t}=e;return t.rem(24,16)}),t0=g.ZP.div.withConfig({componentId:"sc-4a03870e-16"})(styles_templateObject17(),e=>{let{theme:t}=e;return t.rem(8)},R.x,e=>{let{theme:t}=e;return t.rem(8)}),t1=g.ZP.div.withConfig({componentId:"sc-4a03870e-17"})(styles_templateObject18(),e=>{let{theme:t}=e;return t.rem(0,16,24,16)}),t2=g.ZP.div.withConfig({componentId:"sc-4a03870e-18"})(styles_templateObject20(),e=>{let{theme:t,courseType:n}=e;return n&&(0,g.iv)(styles_templateObject19(),t.colorScheme["".concat(n)].surface.borderPrimary,t.colorScheme["".concat(n)].table.text,tD,tX,t.colorScheme["".concat(n)].table.background,tQ,t.colorScheme["".concat(n)].table.textTag,t.colorScheme["".concat(n)].table.backgroundTag,tq,t.colorScheme["".concat(n)].table.text,tW,t.colorScheme["".concat(n)].table.text,tY,t.colorScheme["".concat(n)].table.background2,t.colorScheme["".concat(n)].table.text,t0,t.colorScheme["".concat(n)].surface.textPrimary)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: ".concat(t.rem(16),";\n  "),!0)});var AccordionCards_AccordionCardsItem=e=>{let{data:t,isOpen:n=!0,destroy:l,onClick:a,componentId:o}=e,s=o?o.slice(1,-1):null,{type:c,description:d,start:p,price:h,promoPrice:g,features:f,slug:b,typeLabel:_,title:x,effectivePrice:j,effettiveStartDate:v}=t,adjustSizes=e=>{if(!s||!e)return;let t=0,n=document.querySelectorAll(".".concat(e,"-").concat(s));if(0===n.length){console.warn("No elements found with class: ".concat(e,"-").concat(s));return}n.forEach(e=>{e.offsetHeight>t&&(t=e.offsetHeight)}),n.forEach(e=>{e.style.minHeight="".concat(t,"px"),e.style.height="".concat(t,"px")})};return(0,i.useEffect)(()=>{adjustSizes("card-head")},[]),(0,r.jsxs)(t2,{courseType:c,children:[(0,r.jsxs)(tD,{onClick:a,className:s?"card-head-".concat(s):null,children:[(0,r.jsxs)(tR,{children:[(0,r.jsx)(tL,{as:u.X6,typo:"displaySM",content:x,fontPrimary:!0,role:"heading","aria-level":"4"}),c||_?(0,r.jsx)(tQ,{as:u.nv,content:_||c,typo:"label",weight:"semibold"}):null]}),(0,r.jsxs)(tq,{isOpen:n,children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]})]}),(0,r.jsx)(tH,{className:"card-content-wrapper-".concat(s),$isOpen:!!l||n,children:(0,r.jsxs)(tV,{children:[(0,r.jsxs)(tX,{className:s?"card-content-info-".concat(s):null,children:[d?(0,r.jsx)(tU,{as:u.nv,typo:"paragraphSM",content:d}):null,(0,r.jsxs)("div",{children:[p||v?(0,r.jsxs)(tW,{children:[(0,r.jsxs)(tJ,{children:[(0,r.jsx)(y.Z,{name:"calendar-days"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",content:"Inizio"})]}),(0,r.jsx)(tJ,{children:(0,r.jsx)(u.nv,{typo:"headingSM",weight:"semibold",content:p||v})})]}):null,g||h||j?(0,r.jsxs)(tW,{children:[(0,r.jsxs)(tJ,{children:[(0,r.jsx)(y.Z,{name:"currency-euro"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",content:"Costo"})]}),(0,r.jsxs)(tJ,{children:[g&&h?(0,r.jsx)(tG,{as:u.nv,typo:"paragraphSM",content:"".concat(h," €")}):null,(0,r.jsx)(u.nv,{typo:"headingSM",weight:"semibold",content:"".concat(g||h||j," €")})]})]}):null]})]}),f&&f.length>0?(0,r.jsxs)(t$,{className:"card-content-features-".concat(s),children:[(0,r.jsx)(tY,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",content:"Caratteristiche del corso",role:"heading","aria-level":"5"})}),(0,r.jsx)(tK,{children:f.map((e,t)=>(0,r.jsxs)(t0,{children:[(0,r.jsx)(y.Z,{name:"check",ariaHidden:"true"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",children:e.feature})]},"CardContentFeaturesListItem-".concat(t,"-").concat(null==e?void 0:e.id)))})]}):null,(0,r.jsx)(t1,{children:(0,r.jsx)(m.Z,{href:b,label:"Dettagli del corso",ariaLabel:"Dettagli del corso ".concat(c),iconEnd:"arrow-right",inheritedColorScheme:c})})]})})]})};
1function CarouselCards_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  height: 4px;\n\n  ","\n\n   ","\n"]);return CarouselCards_styles_templateObject=function(){return e},e}function CarouselCards_styles_templateObject1(){let e=(0,h._)(["\n      .swiper {\n        padding-left: 50px;\n        padding-right: 50px;\n      }\n  "]);return CarouselCards_styles_templateObject1=function(){return e},e}function CarouselCards_styles_templateObject2(){let e=(0,h._)(["\n    .related-books-swiper {\n      overflow: visible;\n\n      ","\n    }\n  "]);return CarouselCards_styles_templateObject2=function(){return e},e}function CarouselCards_styles_templateObject3(){let e=(0,h._)(["\n  position: relative;\n\n  ","\n\n  ","\n\n  .swiper-wrapper {\n    transition: all ease 0.3s;\n\n    .swiper-slide {\n      height: auto !important;\n    }\n  }\n\n  .related-books-swiper {\n    .swiper-slide {\n      width: 281px;\n\n      ","\n\n      @media screen and (min-width: 1280px) {\n        width: auto;\n      }\n    }\n  }\n"]);return CarouselCards_styles_templateObject3=function(){return e},e}function CarouselCards_styles_templateObject4(){let e=(0,h._)(["\n    overflow-x: clip;\n  "]);return CarouselCards_styles_templateObject4=function(){return e},e}function CarouselCards_styles_templateObject5(){let e=(0,h._)(["\n      padding-top: ",";\n      padding-bottom: ",";\n\n      ","\n    "]);return CarouselCards_styles_templateObject5=function(){return e},e}function CarouselCards_styles_templateObject6(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      background-color: ",";\n\n      .swiper-scrollbar-drag {\n        background-color: ",";\n      }\n    }\n  "]);return CarouselCards_styles_templateObject6=function(){return e},e}function CarouselCards_styles_templateObject7(){let e=(0,h._)(["\n        padding-top: ",";\n        padding-bottom: ",";\n\n        ","\n      "]);return CarouselCards_styles_templateObject7=function(){return e},e}function CarouselCards_styles_templateObject8(){let e=(0,h._)(["\n        padding-top: 40px;\n\n        ","\n\n        @media screen and (max-width: 992px) {\n          padding-bottom: 29px;\n        }\n      "]);return CarouselCards_styles_templateObject8=function(){return e},e}function CarouselCards_styles_templateObject9(){let e=(0,h._)(["\n          .swiper-slide {\n            &:not(:last-child) {\n              &::after {\n                content: '';\n                position: absolute;\n                top: 0;\n                right: 0;\n                height: 100%;\n                width: 1px;\n                background-color: ",";\n                transform: translateX(12px);\n              }\n            }\n          }\n        "]);return CarouselCards_styles_templateObject9=function(){return e},e}function CarouselCards_styles_templateObject10(){let e=(0,h._)(["\n  width: 100%;\n\n  ","\n\n  ","\n\n  ","\n\n  "," {\n    .swiper-wrapper {\n      ","\n\n      ","\n\n      ","\n    }\n  }\n"]);return CarouselCards_styles_templateObject10=function(){return e},e}function CarouselCards_styles_templateObject11(){let e=(0,h._)(["\n  display: flex;\n\n  ","\n  \n\n  ","\n"]);return CarouselCards_styles_templateObject11=function(){return e},e}function CarouselCards_styles_templateObject12(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  ","\n"]);return CarouselCards_styles_templateObject12=function(){return e},e}function CarouselCards_styles_templateObject13(){let e=(0,h._)(["\n  // position: relative;\n  // top: auto;\n  // left: auto;\n  // transform: translateY(0);\n  // z-index: 1;\n  // padding: 0;\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n  z-index: 2;\n  padding: ",";\n\n  button {\n    &:first-of-type {\n      margin-left: 0;\n    }\n\n    &.swiper-button-lock {\n      display: none;\n    }\n\n    &:disabled {\n      visibility: hidden;\n    }\n  }\n"]);return CarouselCards_styles_templateObject13=function(){return e},e}function CarouselCards_styles_templateObject14(){let e=(0,h._)(["\n  left: 0;\n\n  ","\n"]);
1return CarouselCards_styles_templateObject14=function(){return e},e}function CarouselCards_styles_templateObject15(){let e=(0,h._)(["\n  right: 0;\n\n  ","\n"]);return CarouselCards_styles_templateObject15=function(){return e},e}function CarouselCards_styles_templateObject16(){let e=(0,h._)(["\n      margin-top: ",";\n    "]);return CarouselCards_styles_templateObject16=function(){return e},e}function CarouselCards_styles_templateObject17(){let e=(0,h._)(["\n      margin-top: ",";\n\n      ","\n  "]);return CarouselCards_styles_templateObject17=function(){return e},e}function CarouselCards_styles_templateObject18(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n\n  ","\n\n  ","\n"]);return CarouselCards_styles_templateObject18=function(){return e},e}function CarouselCards_styles_templateObject19(){let e=(0,h._)(["\n  height: fit-content;\n  width: 100%;\n  display: flex;\n  justify-content: flex-end;\n\n\n  ","\n"]);return CarouselCards_styles_templateObject19=function(){return e},e}let t4=g.ZP.div.withConfig({componentId:"sc-6789bafe-0"})(CarouselCards_styles_templateObject(),e=>{let{theme:t,isComparison:n}=e;return n&&t.mediaQuery.md("\n    margin-top: ".concat(t.rem(24),";\n  "))},e=>{let{type:t}=e;return"RelatedBooks"===t&&"\n    display: none;\n  "}),t6=g.ZP.div.withConfig({componentId:"sc-6789bafe-1"})(CarouselCards_styles_templateObject3(),e=>{let{isComparison:t}=e;return!t&&(0,g.iv)(CarouselCards_styles_templateObject1())},e=>{let{type:t,theme:n}=e;return"RelatedBooks"===t&&(0,g.iv)(CarouselCards_styles_templateObject2(),n.mediaQuery.lg("\n        overflow: hidden;\n      "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        width: 467px;\n      ")}),t5=g.ZP.div.withConfig({componentId:"sc-6789bafe-2"})(CarouselCards_styles_templateObject10(),e=>{let{type:t}=e;return"RelatedBooks"===t&&(0,g.iv)(CarouselCards_styles_templateObject4())},e=>{let{theme:t,inset:n}=e;return!n&&(0,g.iv)(CarouselCards_styles_templateObject5(),t.rem(24),t.rem(24),t.mediaQuery.lg("\n      padding-top: ".concat(t.rem(40),";\n      padding-bottom: ").concat(t.rem(40),";\n    ")))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(CarouselCards_styles_templateObject6(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,t4,t.colorScheme["".concat(n)].surface.borderSecondary,t.colorScheme["".concat(n)].button.iconBackground)},t6,e=>{let{theme:t,inset:n}=e;return!n&&(0,g.iv)(CarouselCards_styles_templateObject7(),t.rem(16),t.rem(16),t.mediaQuery.lg("\n          padding-top: ".concat(t.rem(24),";\n          padding-bottom: ").concat(t.rem(24),";\n        ")))},e=>{let{type:t,theme:n}=e;return"RelatedBooks"===t&&(0,g.iv)(CarouselCards_styles_templateObject8(),n.mediaQuery.lg("\n          padding-top: 40px;\n          padding-bottom: 0px;\n        "))},e=>{let{cardSeparator:t}=e;return t&&(0,g.iv)(CarouselCards_styles_templateObject9(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary})}),t3=g.ZP.div.withConfig({componentId:"sc-6789bafe-3"})(CarouselCards_styles_templateObject11(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: column;\n  ",!0)},e=>{let{type:t,theme:n}=e;return"RelatedBooks"===t&&"\n    .carousel-cards-title {\n      text-wrap: balance;\n      font-size: 24px;\n      line-height: 28px;\n\n      ".concat(n.mediaQuery.lg("\n        font-size: 32px;\n        line-height: 40px;\n      "),"\n    }\n  ")}),t8=g.ZP.div.withConfig({componentId:"sc-6789bafe-4"})(CarouselCards_styles_templateObject12(),e=>{let{type:t,theme:n}=e;return"RelatedBooks"===t&&n.mediaQuery.lg("\n    display: none;\n  ",!0)}),t9=g.ZP.div.withConfig({componentId:"sc-6789bafe-5"})(CarouselCards_styles_templateObject13(),e=>{let{theme:t}=e;return t.rem(0,10)}),t7=(0,g.ZP)(t9).withConfig({componentId:"sc-6789bafe-6"})(CarouselCards_styles_templateObject14(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    left: -52px;\n  ")}),ne=(0,g.ZP)(t9).withConfig({componentId:"sc-6789bafe-7"})(CarouselCards_styles_templateObject15(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    right: -52px;\n  ")}),nt=g.ZP.div.withConfig({componentId:"sc-6789bafe-8"}
1)(CarouselCards_styles_templateObject18(),e=>{let{isItemsMoreThanThree:t,type:n}=e;return t&&"RelatedBooks"!==n&&(0,g.iv)(CarouselCards_styles_templateObject17(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg(CarouselCards_styles_templateObject16(),t.rem(40))})},e=>{let{type:t,theme:n}=e;return"RelatedBooks"===t&&"\n    @media screen and (min-width: 993px) {\n        display: none;\n    }\n  "}),nn=g.ZP.div.withConfig({componentId:"sc-6789bafe-9"})(CarouselCards_styles_templateObject19(),e=>{let{type:t,theme:n}=e;return"RelatedBooks"===t&&n.mediaQuery.lg("\n    display: none;\n  ",!0)}),CarouselCards_CarouselCards=e=>{let{type:t,sectionId:n,as:l="section",title:a,body:o,cta:c,ctaPrimary:d,items:h,inset:g=!1,isComparison:f=!1}=e,b=(0,i.useId)(),y=(0,i.useRef)(null),{selectedColorScheme:_}=(0,i.useContext)(s.x),[x,j]=(0,K.Z)(),[v,C]=(0,K.Z)(),[w,O]=(0,K.Z)(),S=h&&h.length>3,k={RelatedCourses:ty.Z,RelatedBooks:molecules_RelatedCardBook,RelatedArticles:tE.Z,RelatedCategories:tE.Z,RelatedTeachers:molecules_CardTeacher,RelatedCourseItem:AccordionCards_AccordionCardsItem},P=k[t],I=function(e){let{defaultValue:t=!1,initializeWithValue:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},getMatches=e=>window.matchMedia(e).matches,[r,l]=(0,i.useState)(()=>n?getMatches(e):t);function handleChange(){l(getMatches(e))}let a=i.useLayoutEffect;return a(()=>{let t=window.matchMedia(e);return handleChange(),t.addListener?t.addListener(handleChange):t.addEventListener("change",handleChange),()=>{t.removeListener?t.removeListener(handleChange):t.removeEventListener("change",handleChange)}},[e]),r}("(max-width: 575px)"),updateSwiperPadding=e=>{let n=e.el.querySelector(".swiper-wrapper");if(n){if(!I&&"RelatedArticles"==t){n.style.marginLeft="0px";return}e.isBeginning||e.isEnd?n.style.marginLeft=e.isBeginning?"-50px":"50px":n.style.marginLeft="0px"}};return(0,i.useEffect)(()=>{if(!f){let e=y.current;return e&&(e.on("slideChange",()=>updateSwiperPadding(e)),e.on("init",()=>updateSwiperPadding(e)),updateSwiperPadding(e)),()=>{e&&(e.off("slideChange"),e.off("init"))}}},[]),(0,r.jsx)(t5,{colorScheme:_,as:l,id:n,inset:g,cardSeparator:"RelatedArticles"==t||"RelatedCategories"==t,type:t,children:(0,r.jsxs)(p.W2,{children:[c||a||o?(0,r.jsxs)(t3,{type:t,children:[a||c?(0,r.jsxs)(p.JX,{xs:12,md:"RelatedBooks"===t?9:12,lg:"RelatedBooks"===t?7:6,$direction:"column",align:"flex-start",noGutter:!0,children:[a?(0,r.jsx)(u.nv,{typo:"headingXL",className:"carousel-cards-title",content:a,weight:"semibold",role:"heading","aria-level":"2"}):null,c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(m.Z,{...c,variant:"secondary",iconEnd:"arrow-right"})]}):null]}):null,"RelatedBooks"===t?d?(0,r.jsx)(p.JX,{xs:12,lg:5,noGutter:!0,children:(0,r.jsx)(nn,{type:t,isItemsMoreThanThree:S,children:(0,r.jsx)(m.Z,{...d,variant:"primary",iconEnd:"chevron-right"})})}):null:o?(0,r.jsx)(p.JX,{xs:12,lg:6,noGutter:!0,children:(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,children:o})}):null]}):null,(0,r.jsxs)(t6,{isComparison:f,type:t,children:[(0,r.jsx)(et.tq,{ref:y,onInit:e=>{y.current=e},modules:[ee.W_,ee.LW,ee.s5],spaceBetween:"RelatedBooks"==t?16:24,slidesPerView:"RelatedBooks"==t?"auto":1,centerInsufficientSlides:!0,breakpoints:"RelatedBooks"==t?{992:{spaceBetween:20},993:{slidesPerView:2,spaceBetween:20},1280:{slidesPerView:3,spaceBetween:20}}:{768:{slidesPerView:2,spaceBetween:24},992:{slidesPerView:f?2:3,spaceBetween:24},1280:{slidesPerView:3,spaceBetween:24}},navigation:{prevEl:v,nextEl:x},scrollbar:{el:w},a11y:{prevSlideMessage:"Precedente slide",nextSlideMessage:"Prossima slide"},grabCursor:!0,className:"RelatedBooks"==t?"related-books-swiper":void 0,children:h.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(P,{data:e,...e,componentId:b})},"CarouselCards-Item-".concat(t,"-").concat(null==e?void 0:e.id)))}),(0,r.jsxs)(t8,{type:t,children:[(0,r.jsx)(t7,{children:(0,r.jsx)(m.a,{ref:C,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big"})}),(0,r.jsx)(ne,{children:(0,r.jsx)(m.a,{ref:j,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big"})})]})]}),(0,r.jsx)(t4,{ref:O,isComparison:f,type:t}),d?(0,r.jsx)(nt,{type:t,isItemsMoreThanThree:S,children:(0,r.jsx)(m.Z,{fullWidth:"RelatedBooks"===t,...d,variant:"primary",iconEnd:"RelatedBooks"===t?"chevron-right":"arrow-right"})}):null]})})};CarouselCards_CarouselCards.propTypes={type:a().oneOf(["RelatedCourses","RelatedBooks","RelatedArticles","RelatedCategories","RelatedTeachers","RelatedCourseItem"]),sectionId:a().string,title:a().string,cta:o.$Z,courses:a().array};var nr=CarouselCards_CarouselCards,ni={thematicAreaGroup:"area-tematica-principale",admissionTestTypes:"tipologia-test-di-ammissione",bookType:"tipologia-di-testo",choicesAndSuggestions:"scelte-e-consigli",thematicArea:"area-tematica",schoolYears:"anno-scolastico",modeOfLectures:"modalita-di-fruizione"},get_filters_query_params=e=>{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[t]=e;return"category"!==t&&"page"!==t})),n=Object.keys(t).reduce((e,n)=>{var r;let i=null===(r=Object.entries(ni).find(e=>{let[t,r]=e;return r===n}))||void 0===r?void 0:r[0];return i?{...e,[i]:t[n]}:e},{});return{queryParams:t,normalizedQueryParams:n}},nl=n(934),na=n(16132),no=n(10990),ns=n(39664);no.p8.registerPlugin(ns.ScrollToPlugin);var animations_scrollTo=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document&&document.getElementById("main-header-content")?document.getElementById("main-header-content").offsetHeight:0;no.p8.to(t||window,{duration:.4,scrollTo:{y:e,offsetY:n}})},nc=n(94861),nd=n(44323),nu=n(78260),np=n(81618);
1let nm={courses:{normalizer:nl.Z},books:{normalizer:na.Z}};var CategoriesFilter_FiltersItems=e=>{let{entity:t,parentLevelCategory:n,fieldsToUpdate:l,items:a,setLoader:o,handleFiltersSubmit:s=()=>{}}=e,[c,d]=(0,i.useState)(null),{setFilteredItems:u}=(0,np.GH)(),p=a.reduce((e,t)=>({...e,[t.key]:t.field.includes("[slug]")?{slug:[]}:[]}),{[n.id]:{slug:n.value}}),m=a.reduce((e,t)=>{let n=t.data.reduce((e,n)=>[...e,{type:"checkbox",label:n.label,id:"".concat(t.key,"-").concat(n.id),name:t.field,value:String(n.id)}],[]),r={type:"inputGroup",labelSecondary:t.label,options:n,isAccordion:!0,col:{xs:12,md:4}};return 0===n.length?e:[...e,r]},[{type:"hidden",value:n.value,id:n.id,name:n.id}]),h={method:"GET",endpoint:"api/".concat(t),initialValues:p,fieldsets:[{fields:m}],submit:{type:"submit",label:"Filtra",variant:"primary"},isFilter:!0,additionalFilters:[n.additionalFilter,"pagination[pageSize]=100","sort[0]=ranking:desc&sort[1]=title:asc"],avoidReset:!0};return(0,i.useEffect)(()=>{h.fieldsToUpdate=l,d(h)},[n.value,l]),c?(0,r.jsx)(atoms_Form,{...c,onSubmit:(e,n)=>{let r=null==n?void 0:n.data.map(e=>nm[t].normalizer(e));u(r),o(!1),s(e)},onBeforeSubmit:()=>{o(!0)}}):null},nh=n(66848),ng=n(34851),nf=n(79179);function CategoriesFilter_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  \n  ","\n"]);return CategoriesFilter_styles_templateObject=function(){return e},e}function CategoriesFilter_styles_templateObject1(){let e=(0,h._)(["\n  position: relative;\n"]);return CategoriesFilter_styles_templateObject1=function(){return e},e}function CategoriesFilter_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex: 0 0 15%;\n  color: ",";\n  background-color: ",";\n  border: 1px solid ",";\n  padding: ",";\n  cursor: pointer;\n\n  &:hover {\n    border-color: ",";\n    background-color: white;\n  }\n\n  &:focus-visible {\n    background-color: white;\n  }\n\n  ","\n\n  & > i {\n    margin-left: ",";\n  }\n"]);return CategoriesFilter_styles_templateObject2=function(){return e},e}function CategoriesFilter_styles_templateObject3(){let e=(0,h._)(["\n    height: auto;\n    opacity: 1;\n  "]);return CategoriesFilter_styles_templateObject3=function(){return e},e}function CategoriesFilter_styles_templateObject4(){let e=(0,h._)(["\n  width: 100%;\n  height: 0;\n  opacity: 0;\n  overflow: hidden;\n  transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;\n\n  ","\n\n  "," {\n    padding-top: ",";\n    padding-bottom: ",";\n\n    ","\n  }\n\n  "," {\n    margin-bottom: 0 !important;\n  }\n\n  "," {\n    "," {\n      width: 20%;\n\n      ","\n    }\n  }\n"]);return CategoriesFilter_styles_templateObject4=function(){return e},e}function CategoriesFilter_styles_templateObject5(){let e=(0,h._)(["\n    opacity: 1;\n    visibility: visible;\n    transform: translateY(0);\n  "]);return CategoriesFilter_styles_templateObject5=function(){return e},e}function CategoriesFilter_styles_templateObject6(){let e=(0,h._)(["\n  height: 100svh;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-end;\n  position: fixed;\n  top: 0;\n  left: 0;\n  opacity: 0;\n  visibility: hidden;\n  overflow-x: hidden;\n  overflow-y: auto;\n  padding-top: ",";\n  padding-bottom: ",";\n  transform: translateY(16px);\n  z-index: 1000;\n  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;\n\n  ","\n\n  "," {\n    position: sticky;\n    bottom: 0;\n    \n    "," {\n      width: 100%;\n    }\n  }\n"]);return CategoriesFilter_styles_templateObject6=function(){return e},e}function CategoriesFilter_styles_templateObject7(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n"]);return CategoriesFilter_styles_templateObject7=function(){return e},e}function CategoriesFilter_styles_templateObject8(){let e=(0,h._)(["\n    .swiper {\n      &::before {\n        content: '';\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: ",";\n        height: 100%;\n        background: linear-gradient(\n          to left,\n          rgba(255, 255, 255, 0) 0%,\n          "," 25%,\n          "," 50%,\n          "," 75%\n        );\n        z-index: 2;\n      }\n    }\n  "]);
1return CategoriesFilter_styles_templateObject8=function(){return e},e}function CategoriesFilter_styles_templateObject9(){let e=(0,h._)(["\n    .swiper {\n      &::after {\n        content: '';\n        position: absolute;\n        top: 0;\n        right: 0;\n        width: ",";\n        height: 100%;\n        background: linear-gradient(\n          to right,\n          rgba(255, 255, 255, 0) 0%,\n          "," 25%,\n          "," 50%,\n          "," 75%\n        );\n        z-index: 1;\n      }\n    }\n  "]);return CategoriesFilter_styles_templateObject9=function(){return e},e}function CategoriesFilter_styles_templateObject10(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  background-color: ",";\n\n  .swiper {\n    position: relative;\n    margin: 0;\n    width: 100%;\n  }\n\n  .swiper-slide {\n    width: auto;\n    padding: ",";\n\n    ","\n\n    &:before {\n      background-color: ",";\n    }\n\n    &:first-child {\n      &::before {\n        background-color: ",";\n      }\n    }\n  }\n\n  ","\n  \n  ","\n\n  "," {\n    background-color: ",";\n  }\n"]);return CategoriesFilter_styles_templateObject10=function(){return e},e}let nb=(0,g.ZP)(p.W2).withConfig({componentId:"sc-6fc31dfd-0"})(CategoriesFilter_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    gap: ".concat(t.rem(16),";\n  "))}),ny=g.ZP.div.withConfig({componentId:"sc-6fc31dfd-1"})(CategoriesFilter_styles_templateObject1()),n_=g.ZP.button.withConfig({componentId:"sc-6fc31dfd-2"})(CategoriesFilter_styles_templateObject2(),e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.textPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderPrimary},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 100%;\n    flex: 0;\n    margin-bottom: ".concat(t.rem(16),";\n  "),!0)},e=>{let{theme:t}=e;return t.rem(8)}),nx=(0,g.ZP)(p.W2).withConfig({componentId:"sc-6fc31dfd-3"})(CategoriesFilter_styles_templateObject4(),e=>{let{isOpen:t,$height:n}=e;return t&&(0,g.iv)(CategoriesFilter_styles_templateObject3())},F.l0,e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      padding-top: 0;\n    ",!0)},ng.C,F.iN,nh.S,e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        width: 100%;\n      ",!0)}),nj=(0,g.ZP)(p.W2).withConfig({componentId:"sc-6fc31dfd-4"})(CategoriesFilter_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{isOpen:t}=e;return t&&(0,g.iv)(CategoriesFilter_styles_templateObject5())},F.iN,nh.S),nv=(0,g.ZP)(p.W2).withConfig({componentId:"sc-6fc31dfd-5"})(CategoriesFilter_styles_templateObject7(),e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.rem(32)}),nC=g.ZP.div.withConfig({componentId:"sc-6fc31dfd-6"})(CategoriesFilter_styles_templateObject10(),e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(28,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      padding: ".concat(t.rem(16,0),";\n    "),!0)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderSecondary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderPrimary},e=>{let{theme:t,colorScheme:n,showStart:r}=e;return r&&(0,g.iv)(CategoriesFilter_styles_templateObject8(),e=>{let{theme:t}=e;return t.rem(67)},(0,nf.Z)(t.colorScheme[n].surface.backgroundColor,.75),(0,nf.Z)(t.colorScheme[n].surface.backgroundColor,.9),(0,nf.Z)(t.colorScheme[n].surface.backgroundColor,1))},e=>{let{theme:t,colorScheme:n,showEnd:r}=e;return r&&(0,g.iv)(CategoriesFilter_styles_templateObject9(),e=>{let{theme:t}=e;return t.rem(67)},(0,nf.Z)(t.colorScheme[n].surface.backgroundColor,.75),(0,nf.Z)(t.colorScheme[n].surface.backgroundColor,.9),(0,nf.Z)(t.colorScheme[n].surface.backgroundColor,1)
1)},nj,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor}),nw=i.useLayoutEffect,updateQueryWithFilters=e=>{let t={};for(let[n,r]of Object.entries(e))"object"==typeof r&&null!==r?Array.isArray(r)&&r.length>0?t[n]=r.join(","):r.slug&&Array.isArray(r.slug)&&r.slug.length>0?t[n]=r.slug.join(","):t[n]=r.slug:"string"==typeof r&&""!==r.trim()&&(t[n]=r);for(let[e,n]of Object.entries(t))ni[e]&&(t[ni[e]]=n,delete t[e]);return t},nO={isMounted:!1,isLoading:!1,isFiltered:!1,tempID:null,showStart:!1,showEnd:!0,filtersItems:[],openFilters:!1,filterPanelHeightDesktop:500,metaQuery:{}};function reducer(e,t){switch(t.type){case"SET_IS_MOUNTED":return{...e,isMounted:t.payload};case"SET_IS_LOADING":return{...e,isLoading:t.payload};case"SET_IS_FILTERED":return{...e,isFiltered:t.payload};case"SET_TEMP_ID":return{...e,tempID:t.payload};case"SET_SHOW_START":return{...e,showStart:t.payload};case"SET_SHOW_END":return{...e,showEnd:t.payload};case"SET_FILTERS_ITEMS":return{...e,filtersItems:t.payload};case"SET_OPEN_FILTERS":return{...e,openFilters:t.payload};case"SET_FILTER_PANEL_HEIGHT_DESKTOP":return{...e,filterPanelHeightDesktop:t.payload};case"SET_META_QUERY":return{...e,metaQuery:t.payload};default:throw Error()}}var organisms_CategoriesFilter=e=>{var t;let{queryParams:n,entity:l,entityCategory:a,firstLevelItemsEntity:o,firstLevelCategory:c,firstLevelQuery:d,firstLevelItems:h,secondLevelItemsEntity:g,secondLevelQuery:f,secondLevelItems:b,dynamicFilters:_,filtersItems:x,cardType:j,metaQuery:v,items:C}=e,w=(0,ec.useRouter)(),[O,S]=(0,i.useReducer)(reducer,nO),setIsMounted=e=>{S({type:"SET_IS_MOUNTED",payload:e})},setIsLoading=e=>{S({type:"SET_IS_LOADING",payload:e})},setIsFiltered=e=>{S({type:"SET_IS_FILTERED",payload:e})},setTempID=e=>{S({type:"SET_TEMP_ID",payload:e})},setShowStart=e=>{S({type:"SET_SHOW_START",payload:e})},setShowEnd=e=>{S({type:"SET_SHOW_END",payload:e})},setFiltersItems=e=>{S({type:"SET_FILTERS_ITEMS",payload:e})},setOpenFilters=e=>{S({type:"SET_OPEN_FILTERS",payload:e})},setFilterPanelHeightDesktop=e=>{S({type:"SET_FILTER_PANEL_HEIGHT_DESKTOP",payload:e})},setMetaQuery=e=>{S({type:"SET_META_QUERY",payload:e})},{filteredItems:P=[],setFilteredItems:I}=(0,np.GH)(),T=(0,Y.Z)("(max-width: 575px)"),Z=(0,i.useRef)(null),z=(0,i.useRef)(null),F=(0,i.useRef)([]),E=(0,i.useRef)(null),M=(0,i.useContext)(s.x),A=M?M.selectedColorScheme:"lightOrange",B={courses:{normalizer:nl.Z,baseSlug:"corsi",label:"Tutti i Corsi"},books:{normalizer:na.Z,baseSlug:"libri",label:"Tutti i Libri"},bookSeries:{baseSlug:"libri/collane",label:"Tutte le Collane"}},handleFilterBySecondLevel=async(e,t)=>{try{let n=O.filtersItems,r=P;if(setLoader(!0),O.tempID!==e.slug){let i=await (0,k.Hv)({entity:l,filters:"pagination[page]=1&pagination[pageSize]=12&sort[0]=ranking:desc&sort[1]=title:asc&filters".concat(d,"=").concat(c,"&filters").concat(f,"=").concat(e.slug)});if(setMetaQuery(i.meta),_){let t=await (0,k.yh)({filters:"?".concat(_.filters.map(e=>"".concat(e.prop,"=").concat(e.value,"&"))).concat(_.additional,"=").concat(e.slug)});n=(null==t?void 0:t.data)||[]}r=i.data&&i.data.length>0?i.data.map(e=>B[l].normalizer(e)):null,F.current.map(e=>e&&e.removeAttribute("aria-current")),t&&t.target.setAttribute("aria-current","true"),w.push({pathname:w.pathname,query:{category:w.query.category,[ni[g]]:e.slug}},void 0,{shallow:!0})}I(r),setFiltersItems(n)}catch(e){console.log(e)}finally{setTempID(e.slug),setLoader(!1)}},handleResetBySecondLevel=async e=>{var t,n;setLoader(!0);let r=C;if(w.query&&"CardBook"===j){let e=await (0,k.Hv)({entity:"books",filters:"pagination[page]=1&pagination[pageSize]=12&sort[0]=ranking:desc&sort[1]=title:asc&filters".concat(d,"=").concat(c)});r=e.data&&e.data.length>0?null===(t=e.data)||void 0===t?void 0:t.map(e=>B[l].normalizer(e)):[],setMetaQuery(null==e?void 0:e.meta),w.push({pathname:w.pathname,query:{category:w.query.category}},void 0,{shallow:!0})}if(w.query&&"CardCourse"===j){let e=await (0,k.Hv)({entity:"courses",filters:"pagination[page]=1&pagination[pageSize]=12&sort[0]=ranking:desc&sort[1]=title:asc&filters".concat(d,"=").concat(c)});r=e.data&&e.data.length>0?null===(n=e.data)||void 0===n?void 0:n.map(e=>B[l].normalizer(e)):[],setMetaQuery(null==e?void 0:e.meta),w.push({pathname:w.pathname,query:{category:w.query.category}},void 0,{shallow:!0})}setTempID(null),I(r),setFiltersItems([]),F.current.map(e=>e&&e.removeAttribute("aria-current")),e.target.setAttribute("aria-current","true"),setLoader(!1),setIsFiltered(!1)}
1,setLoader=e=>{setIsFiltered(!0),e?setIsLoading(!0):(setIsLoading(!1),setOpenFilters(!1),animations_scrollTo(Z.current))},slidesAreLongerThanSwiper=()=>{let e=E.current&&E.current.clientWidth,t=E.current&&E.current.querySelectorAll(".swiper-slide"),n=0;return e&&t&&t.length>0&&t.forEach(e=>{n+=e.clientWidth}),n>e},handleShadowOnResize=e=>{window&&window.addEventListener("resize",()=>{if(slidesAreLongerThanSwiper()){let{isBeginning:t,isEnd:n}=e;t||n?t?setShowStart(!1):n&&setShowEnd(!1):(setShowStart(!0),setShowEnd(!0))}else setShowStart(!1),setShowEnd(!1)})},handleSwiperEvent=e=>{let{isBeginning:t,isEnd:n}=e;t||n||(setShowStart(!0),setShowEnd(!0))},handleFiltersSubmit=e=>{let t=updateQueryWithFilters(e),n={...w.query,...t};for(let e in t.category=n.category,n)t[e]||delete n[e];w.push({pathname:w.pathname,query:n},void 0,{shallow:!0})},renderPanelFilters=()=>{let{normalizedQueryParams:e}=get_filters_query_params(w.query),t=Object.entries(e).map(e=>{let[t,n]=e,r=O.filtersItems.find(e=>e.key===t);if(g!=t)return{name:r.key,value:r.field.includes("[slug]")?{slug:n.split(",")}:[n]}});e[g]&&O.isFiltered&&1===Object.entries(e).length&&(t=O.filtersItems.map(e=>({name:e.key,value:e.field.includes("[slug]")?{slug:[]}:[]}))),e[g]||O.isFiltered||0!==Object.entries(e).length||(t=O.filtersItems.map(e=>({name:e.key,value:e.field.includes("[slug]")?{slug:[]}:[]}))),!e[g]&&O.isFiltered&&0===Object.entries(e).length&&(t=O.filtersItems.map(e=>({name:e.key,value:e.field.includes("[slug]")?{slug:[]}:[]})));let n=[{name:"".concat(g,"[slug]"),value:O.tempID?String(O.tempID):""},...t.length>0?t.filter(e=>e):[]];return n=n.reduce((e,t)=>{let n=e.find(e=>e.name===t.name);return n?e:e.concat([t])},[]),(0,r.jsx)(CategoriesFilter_FiltersItems,{entity:l,firstLevelCategory:String(c),parentLevelCategory:{id:g,value:O.tempID?String(O.tempID):"",additionalFilter:"filters".concat(d,"=").concat(c)},fieldsToUpdate:n,items:O.filtersItems,setLoader:setLoader,handleFiltersSubmit:handleFiltersSubmit})},handleRouteChangeStart=()=>{setOpenFilters(!1)};return(0,i.useEffect)(()=>(w.events.on("routeChangeStart",handleRouteChangeStart),()=>{w.events.off("routeChangeStart",handleRouteChangeStart)}),[w]),(0,i.useEffect)(()=>{document.body.style.overflow=T&&O.openFilters?"hidden":"auto"},[O.openFilters]),(0,i.useEffect)(()=>{I(C)},[C]),(0,i.useEffect)(()=>{setMetaQuery(v)},[v]),(0,i.useEffect)(()=>{setTempID(null==n?void 0:n[g]),S({type:"SET_FILTERS_ITEMS",payload:x})},[null==n?void 0:n[g]]),(0,i.useEffect)(()=>{setTimeout(()=>{if(z.current){let e=z.current.children[0].offsetHeight;setFilterPanelHeightDesktop(e)}},200)},[z.current]),nw(()=>(n&&Object.keys(n).length>0&&setTempID(n[g]),S({type:"SET_FILTERS_ITEMS",payload:x}),setMetaQuery(v),setIsMounted(!0),()=>{F.current=[]}),[]),O.isMounted?(0,r.jsxs)(r.Fragment,{children:[b||h?(0,r.jsxs)(nC,{ref:Z,colorScheme:A,showStart:O.showStart,showEnd:O.showEnd,children:[(0,r.jsxs)(nb,{children:[(0,r.jsxs)(et.tq,{slidesPerView:"auto",spaceBetween:16,freeMode:!0,mousewheel:!0,grabCursor:!0,direction:"horizontal",onReachEnd:()=>{setShowStart(!0),setShowEnd(!1)},onReachBeginning:()=>{setShowStart(!1),setShowEnd(!0)},onScroll:handleSwiperEvent,onTouchMove:handleSwiperEvent,ref:E,onAfterInit:e=>{setTimeout(()=>
1{slidesAreLongerThanSwiper()||(setShowStart(!1),setShowEnd(!1)),handleShadowOnResize(e)},100)},modules:[ee.Rv,ee.Gk],children:[!b&&h&&h.length>0?(0,r.jsx)(et.o5,{children:(0,r.jsx)(ny,{children:(0,r.jsx)(m.Z,{label:B[a||l].label,variant:"tertiary","aria-current":!0})})}):null,!b&&h&&h.length>0?h.map((e,t)=>{let n=e.slug.split("/"),i=n[n.length-1],o="FirstLevelItem-".concat(a||l,"-").concat(i,"-").concat(t);return(0,r.jsx)(et.o5,{children:(0,r.jsx)(ny,{children:(0,r.jsx)(m.Z,{label:e.title,href:"/".concat(B[a||l].baseSlug,"/").concat(i),variant:"tertiary"})})},o)}):null,b&&b.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(et.o5,{children:(0,r.jsx)(ny,{children:(0,r.jsx)(m.a,{label:"Tutte le categorie",variant:"tertiary","aria-current":!b.some(e=>!0===e.active),handleClick:e=>handleResetBySecondLevel(e),ref:e=>{e&&!F.current.includes(e)&&F.current.push(e)}})})}),b.map((e,t)=>{let n="SecondLevelItem-".concat(l,"-").concat(e.slug,"-").concat(t);return(0,r.jsx)(et.o5,{children:(0,r.jsx)(ny,{children:(0,r.jsx)(m.a,{label:e.title,variant:"tertiary","aria-current":e.active,handleClick:t=>handleFilterBySecondLevel(e,t),ref:e=>{e&&!F.current.includes(e)&&F.current.push(e)}})})},n)})]}):null]}),O.filtersItems&&O.filtersItems.length?(0,r.jsxs)(n_,{type:"button",colorScheme:A,variant:"tertiary","aria-expanded":O.openFilters,onClick:()=>setOpenFilters(!O.openFilters),children:[(0,r.jsx)(nc.aN,{colorScheme:A,children:O.openFilters?"Chiudi":"Filtra per"}),(0,r.jsx)(y.Z,{name:O.openFilters?"x-mark":"chevron-down"})]}):null]}),O.filtersItems&&O.filtersItems.length&&O.openFilters?T?(0,r.jsxs)(nj,{isOpen:O.openFilters,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(m.Z,{label:"Chiudi",variant:"tertiary",iconEnd:"x-mark",handleClick:()=>setOpenFilters(!O.openFilters)}),(0,r.jsx)(p.Nz,{xs:"2"})]}),renderPanelFilters()]}):(0,r.jsx)(nx,{isOpen:O.openFilters,$height:O.filterPanelHeightDesktop,ref:z,children:renderPanelFilters()}):null]}):null,P&&P.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(organisms_CardsGrid,{type:j,items:P}),(null===(t=O.metaQuery)||void 0===t?void 0:t.pagination)&&O.metaQuery.pagination.pageCount>1?(0,r.jsx)(nu.Z,{...O.metaQuery.pagination}):null]}):h?null:(0,r.jsx)(nv,{children:(0,r.jsx)(u.nv,{content:"Nessun risultato",typo:"displaySM",weight:"semibold"})}),(0,r.jsx)(p.Nz,{xs:3,md:5}),O.isLoading?(0,r.jsx)(nd.Z,{}):null]}):null};function CheckoutConfigurator_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  padding: ",";\n  position: relative;\n\n  ","\n\n  ","\n\n  label {\n    ",";\n    color: ",";\n  }\n\n  input {\n    -webkit-appearance: none;\n    appearance: none;\n    width: 100%;\n    height: ",";\n    border: none;\n    border-bottom: 1px solid ",";\n    ",";\n    color: ",";\n  }\n\n  .form-error {\n    color: ",";\n    ",";\n  }\n"]);return CheckoutConfigurator_styles_templateObject=function(){return e},e}function CheckoutConfigurator_styles_templateObject1(){let e=(0,h._)(["\n    transform: translateY(0);\n  "]);return CheckoutConfigurator_styles_templateObject1=function(){return e},e}function CheckoutConfigurator_styles_templateObject2(){let e=(0,h._)(["\n  width: 100%;\n  height: calc(100% - ",");\n\n  /* .has-announcement-bar & {\n    height: calc(100% - ",");\n\n    ","\n    \n    ","\n  } */\n  \n  position: fixed;\n  bottom: 0;\n  transform: translateY(calc(100% - ","));\n  z-index: 100;\n  background-color: white;\n  transition: transform .2s ease-in 0s;\n\n  ","\n\n\n  ","\n"]);return CheckoutConfigurator_styles_templateObject2=function(){return e},e}function CheckoutConfigurator_styles_templateObject3(){let e=(0,h._)(["\n    display: none;\n  "]);return CheckoutConfigurator_styles_templateObject3=function(){return e},e}function CheckoutConfigurator_styles_templateObject4(){let e=(0,h._)(["\n    transform: scaleY(-1);\n  "]);return CheckoutConfigurator_styles_templateObject4=function(){return e},e}function CheckoutConfigurator_styles_templateObject5(){let e=(0,h._)(["\n  position: absolute;\n  top: ",";\n  right: ",";\n  z-index: 1;\n\n  i {\n    font-size: ",";\n    transition: all .2s ease-in 0s;\n  }\n\n  ","\n  \n  ","\n"]);
1return CheckoutConfigurator_styles_templateObject5=function(){return e},e}function CheckoutConfigurator_styles_templateObject6(){let e=(0,h._)(["\n    display: none;\n  "]);return CheckoutConfigurator_styles_templateObject6=function(){return e},e}function CheckoutConfigurator_styles_templateObject7(){let e=(0,h._)(["\n  width: 100%;\n  height: ",";\n  left: 0;\n  top: 0;\n  position: absolute;\n  z-index: 10;\n\n  ","\n"]);return CheckoutConfigurator_styles_templateObject7=function(){return e},e}function CheckoutConfigurator_styles_templateObject8(){let e=(0,h._)(["\n  padding: 2rem 0;\n  border-bottom: 1px solid #aaa;\n  height: ",";\n  overflow: ",";\n  opacity: ",";\n  position: relative;\n"]);return CheckoutConfigurator_styles_templateObject8=function(){return e},e}function CheckoutConfigurator_styles_templateObject9(){let e=(0,h._)(["width: 100%;"]);return CheckoutConfigurator_styles_templateObject9=function(){return e},e}function CheckoutConfigurator_styles_templateObject10(){let e=(0,h._)(["\n    padding: ",";\n\n    &::before,\n    &::after {\n      display: none;\n    }\n  "]);return CheckoutConfigurator_styles_templateObject10=function(){return e},e}function CheckoutConfigurator_styles_templateObject11(){let e=(0,h._)(["\n    pointer-events: none;\n    opacity: .5;\n  "]);return CheckoutConfigurator_styles_templateObject11=function(){return e},e}function CheckoutConfigurator_styles_templateObject12(){let e=(0,h._)(["\n  width: 49%;\n  margin-bottom: ",";\n  padding: ",";\n  border-radius: 8px;\n  border: 1px solid ",";\n  background-color: ",";\n  position: relative;\n  cursor: pointer;\n  ","\n  font-weight: 600;\n  transition: all .2s ease-in 0s;\n\n  ","\n\n  &:hover {\n    background-color: ",";\n  }\n\n  &::before,\n  &::after {\n    content: '';\n    position: absolute;\n  }\n\n  &::before {\n    width: 20px;\n    height: 20px;\n    border-radius: 50%;\n    border: 1px solid ",";\n    top: 14px;\n    left: 16px;\n  }\n\n  &::after {\n    width: 16px;\n    height: 16px;\n    border-radius: 50%;\n    background-color: ",";\n    top: 16px;\n    left: 18px;\n    opacity: ",";\n    transition: opacity .2s ease-in 0s;\n  }\n\n  ","\n\n  ","\n"]);return CheckoutConfigurator_styles_templateObject12=function(){return e},e}function CheckoutConfigurator_styles_templateObject13(){let e=(0,h._)(["\n    pointer-events: none;\n  "]);return CheckoutConfigurator_styles_templateObject13=function(){return e},e}function CheckoutConfigurator_styles_templateObject14(){let e=(0,h._)(["\n  cursor: pointer;\n  margin: ",";\n\n  ","\n"]);return CheckoutConfigurator_styles_templateObject14=function(){return e},e}function CheckoutConfigurator_styles_templateObject15(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  display: inline;\n"]);return CheckoutConfigurator_styles_templateObject15=function(){return e},e}function CheckoutConfigurator_styles_templateObject16(){let e=(0,h._)(["\n  max-width: ",";\n  max-height: ",";\n"]);return CheckoutConfigurator_styles_templateObject16=function(){return e},e}function CheckoutConfigurator_styles_templateObject17(){let e=(0,h._)(["\n  margin-left: 2rem;\n"]);return CheckoutConfigurator_styles_templateObject17=function(){return e},e}function CheckoutConfigurator_styles_templateObject18(){let e=(0,h._)(["\n    top: ","!important;\n  "]);return CheckoutConfigurator_styles_templateObject18=function(){return e},e}function CheckoutConfigurator_styles_templateObject19(){let e=(0,h._)(["\n    transition: top .1s linear 0s;\n  "]);return CheckoutConfigurator_styles_templateObject19=function(){return e},e}function CheckoutConfigurator_styles_templateObject20(){let e=(0,h._)(["\n  width: 100%;\n  height: ",";\n  padding: ",";\n  border-bottom: 1px solid ",";\n  background-color: ",";\n  display: flex;\n  left: 0;\n  top: ",";\n  position: fixed;\n  z-index: 10;\n  transition: top .2s ease-in .2s;\n  \n  ",";\n\n  .has-announcement-bar & {\n    top: ",";\n\n    ","\n    \n    ","\n  } \n\n  ","\n\n  ","\n"]);return CheckoutConfigurator_styles_templateObject20=function(){return e},e}
1function styles_templateObject21(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  aspect-ratio: 1 / 1;\n  position: relative;\n  margin-right: ",";\n\n  img {\n    width: 100%;\n    height: 100%;\n    object-fit: contain;\n  }\n"]);return styles_templateObject21=function(){return e},e}function styles_templateObject22(){let e=(0,h._)(["\n  position: absolute;\n  right: 0;\n  top: 2rem;\n  cursor: pointer;\n"]);return styles_templateObject22=function(){return e},e}function styles_templateObject23(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  border-radius: 50%;\n  background-color: ",";\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin-right: ",";\n\n  i {\n    font-size: ",";\n    color: ",";\n  }\n"]);return styles_templateObject23=function(){return e},e}function styles_templateObject24(){let e=(0,h._)(["\n  height: calc(100vh - ",");\n  background-color: ",";\n  \n  ","\n\n  .has-announcement-bar & {\n    height: calc(100vh - ",");\n\n    ","\n    \n    ","\n  }\n"]);return styles_templateObject24=function(){return e},e}function styles_templateObject25(){let e=(0,h._)(["\n  width: 100%;\n  height: auto;\n\n  ","\n\n  &::before {\n    ","\n  }\n  \n  &::after {\n    ","\n  }\n\n"]);return styles_templateObject25=function(){return e},e}function styles_templateObject26(){let e=(0,h._)(["\n  width: 100%;\n  height: 1px;\n  background-color: ",";\n"]);return styles_templateObject26=function(){return e},e}function styles_templateObject27(){let e=(0,h._)(["\n  padding: ",";\n  color: ",";\n  background-color: #E5673E;\n  position: absolute;\n  top: 0;\n  right: 0;\n  border-bottom-left-radius: ",";\n"]);return styles_templateObject27=function(){return e},e}function styles_templateObject28(){let e=(0,h._)(["\n    color: ",";\n  "]);return styles_templateObject28=function(){return e},e}function styles_templateObject29(){let e=(0,h._)(["\n  margin-right: ",";\n  color: ",";\n  \n  i {\n    font-size: ",";\n  }\n\n  ","\n"]);return styles_templateObject29=function(){return e},e}function styles_templateObject30(){let e=(0,h._)(["\n  li {\n    display: flex;\n    margin-bottom: ",";\n  }\n"]);return styles_templateObject30=function(){return e},e}function styles_templateObject31(){let e=(0,h._)([""]);return styles_templateObject31=function(){return e},e}function styles_templateObject32(){let e=(0,h._)(["\n  padding: ",";\n  border: 1px solid ",";\n  display: inline-flex;\n  justify-content: space-evenly;\n  align-items: center;\n  align-self: flex-start;\n  gap: ",";\n"]);return styles_templateObject32=function(){return e},e}function styles_templateObject33(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n  cursor: pointer;\n"]);return styles_templateObject33=function(){return e},e}function styles_templateObject34(){let e=(0,h._)([""]);return styles_templateObject34=function(){return e},e}function styles_templateObject35(){let e=(0,h._)(["\n  width: 100%;\n  aspect-ratio: 1 / 1;\n  max-width: ",";\n\n  img {\n    width: 100%;\n    height: 100%;\n    object-fit: contain;\n  }\n"]);return styles_templateObject35=function(){return e},e}function styles_templateObject36(){let e=(0,h._)(["\n  color: ",";\n  margin-bottom: ",";\n  text-decoration: line-through;\n  position: relative;\n\n  &::before {\n    content: '';\n    width: 100%;\n    height: ",";\n    position: absolute;\n    background-color: ",";\n  }\n\n  &:before {\n    left: 0;\n    bottom: ",";\n    right: ",";\n  }\n"]);return styles_templateObject36=function(){return e},e}function styles_templateObject37(){let e=(0,h._)(["\n  position: relative;\n  width: ",";\n  height: ",";\n  margin-right: ",';\n\n  input[type="checkbox"] {\n    width: ',";\n    height: ",";\n    border: 1px solid ",";\n    margin: 0;\n    transition: background-color .2s ease-in 0s;\n    cursor: pointer;\n\n\n    &:checked {\n      background-color: ",";\n    }\n  }\n"]);return styles_templateObject37=function(){return e},e}function styles_templateObject38(){let e=(0,h._)(["\n  a {\n    text-decoration: underline;\n  }\n"]);return styles_templateObject38=function(){return e},e}
1function styles_templateObject39(){let e=(0,h._)(["\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  pointer-events: none;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  i {\n    font-size: ",";\n    color: #FFF;\n  }\n"]);return styles_templateObject39=function(){return e},e}function styles_templateObject40(){let e=(0,h._)(["\n    display: block;\n  "]);return styles_templateObject40=function(){return e},e}function styles_templateObject41(){let e=(0,h._)(["\n  display: none;\n  \n  ","\n"]);return styles_templateObject41=function(){return e},e}function styles_templateObject42(){let e=(0,h._)(["\n  border-radius: ",";\n  background-color: ",";\n  padding: ",";\n"]);return styles_templateObject42=function(){return e},e}function styles_templateObject43(){let e=(0,h._)(["\n    display: block;\n  "]);return styles_templateObject43=function(){return e},e}function styles_templateObject44(){let e=(0,h._)(["\n  display: none;\n\n  ","\n"]);return styles_templateObject44=function(){return e},e}function styles_templateObject45(){let e=(0,h._)(["\n    display: none;\n  "]);return styles_templateObject45=function(){return e},e}function styles_templateObject46(){let e=(0,h._)(["\n  display: block;\n\n  ","\n"]);return styles_templateObject46=function(){return e},e}function styles_templateObject47(){let e=(0,h._)(["\n  width: 100%;\n\n  &:after,\n  &:before {\n    top: 50%;\n    transform: translateY(-50%);\n  }\n"]);return styles_templateObject47=function(){return e},e}function styles_templateObject48(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  position: relative;\n  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.07);\n\n  ","\n\n  &:not(:last-child) {\n    margin-right: ",";\n\n    ","\n  }\n"]);return styles_templateObject48=function(){return e},e}function styles_templateObject49(){let e=(0,h._)(["\n    transition: all .2s ease-in 0s;\n    transform: translateY(0);\n    display: block;\n\n    ","\n  "]);return styles_templateObject49=function(){return e},e}function styles_templateObject50(){let e=(0,h._)(["\n    > div:first-child {\n      border-color: ",";\n    }\n  "]);return styles_templateObject50=function(){return e},e}function styles_templateObject51(){let e=(0,h._)(["\n  position: relative;\n  transform: translateY(",");\n  display: none;\n\n  > div:first-child {\n    border: 1px solid gray;\n    border-radius: ",";\n  }\n\n  input {\n    width: 100%;\n    border: none!important;\n    border-radius: ",";\n    \n  }\n\n  ","\n\n  ","\n  \n  ","\n"]);return styles_templateObject51=function(){return e},e}let nS=g.ZP.div.withConfig({componentId:"sc-f5483346-0"})(CheckoutConfigurator_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(40,24,24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(80,40),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 65%;\n    padding: ".concat(t.rem(100,160,40,160),";\n    height: 100%;\n    overflow-y: scroll;\n    overflow-x: hidden;\n    position: relative;\n  "))},e=>{let{theme:t}=e;return t.typo("paragraphXS")},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary},e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.typo("paragraphLG")},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.colors.status.error.default},e=>{let{theme:t}=e;return t.typo("paragraphXS")}),nk=g.ZP.div.withConfig({componentId:"sc-f5483346-1"})(CheckoutConfigurator_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(72)},e=>{let{theme:t}=e;return t.rem(136)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      height: calc(100% - ".concat(t.rem(148),");\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      height: 100%;\n    ")},e=>{let{theme:t}=e;return t.rem(56)},e=>{let{isMobileRecapOpen:t}=e;return t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject1())},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    height: 100%;\n    position: initial;\n    width: 35%;\n    transform: none;\n    bottom: auto;\n    transition: none;\n    z-index: 10;\n  ")}),nP=g.ZP.div.withConfig({componentId:"sc-f5483346-2"}
1)(CheckoutConfigurator_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.mediaQuery.lg(CheckoutConfigurator_styles_templateObject3())},e=>{let{isMobileRecapOpen:t}=e;return t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject4())}),nI=g.ZP.div.withConfig({componentId:"sc-f5483346-3"})(CheckoutConfigurator_styles_templateObject7(),e=>{let{theme:t}=e;return t.rem(56)},e=>{let{theme:t}=e;return t.mediaQuery.lg(CheckoutConfigurator_styles_templateObject6())}),nT=g.ZP.div.withConfig({componentId:"sc-f5483346-4"})(CheckoutConfigurator_styles_templateObject8(),e=>{let{theme:t,visible:n}=e;return n?"auto":"".concat(t.rem(54))},e=>{let{visible:t}=e;return t?"initial":"hidden"},e=>{let{visible:t}=e;return t?1:.5}),nZ=g.ZP.div.withConfig({componentId:"sc-f5483346-5"})(CheckoutConfigurator_styles_templateObject12(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16,16,16,52)},e=>{let{selected:t}=e;return t?"black":"#aaa"},e=>{let{selected:t,theme:n}=e;return t?n.colorScheme.lightOrange.surface.backgroundColor:n.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.typo("paragraphSM")},e=>{let{fullWidth:t}=e;return t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject9())},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{selected:t}=e;return t?1:0},e=>{let{hideRadio:t}=e;return t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject10(),e=>{let{theme:t}=e;return t.rem(24,0)})},e=>{let{disabled:t}=e;return t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject11())});g.ZP.div.withConfig({componentId:"sc-f5483346-6"})(CheckoutConfigurator_styles_templateObject14(),e=>{let{theme:t}=e;return t.rem(24,0)},e=>{let{disabled:t}=e;return t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject13())}),g.ZP.div.withConfig({componentId:"sc-f5483346-7"})(CheckoutConfigurator_styles_templateObject15(),e=>{let{theme:t}=e;return t.rem(60)},e=>{let{theme:t}=e;return t.rem(60)}),g.ZP.img.withConfig({componentId:"sc-f5483346-8"})(CheckoutConfigurator_styles_templateObject16(),e=>{let{theme:t}=e;return t.rem(60)},e=>{let{theme:t}=e;return t.rem(60)}),g.ZP.span.withConfig({componentId:"sc-f5483346-9"})(CheckoutConfigurator_styles_templateObject17());let nz=g.ZP.div.withConfig({componentId:"sc-f5483346-10"})(CheckoutConfigurator_styles_templateObject20(),e=>{let{theme:t}=e;return t.rem(60)},e=>{let{theme:t}=e;return t.rem(20,100)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(72)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 65%;\n    align-items: center;\n    height: ".concat(t.rem(92),";\n    padding: ").concat(t.rem(24,160,32),";\n    top: ").concat(t.rem(128),";\n  "))},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      top: ".concat(t.rem(148),";\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      top: ".concat(t.rem(160),";\n    "))},e=>{let{scrollDirection:t,theme:n}=e;return"down"===t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject18(),n.rem(72))},e=>{let{scrollDirection:t,theme:n}=e;return"up"===t&&(0,g.iv)(CheckoutConfigurator_styles_templateObject19())}),nF=g.ZP.div.withConfig({componentId:"sc-f5483346-11"})(styles_templateObject21(),e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(16)}),nE=g.ZP.div.withConfig({componentId:"sc-f5483346-12"})(styles_templateObject22()),nM=g.ZP.div.withConfig({componentId:"sc-f5483346-13"})(styles_templateObject23(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.colors.status.success.default},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(12)},e=>{let{theme:t}=e;return t.colors.grayscale.white}),nA=g.ZP.div.withConfig({componentId:"sc-f5483346-14"}
1)(styles_templateObject24(),e=>{let{theme:t}=e;return t.rem(64)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    display: flex;\n    flex-wrap: wrap;\n    height: calc(100vh - ".concat(t.rem(128),");\n  "))},e=>{let{theme:t}=e;return t.rem(136)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      height: calc(100vh - ".concat(t.rem(144),");\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      height: calc(100vh - ".concat(t.rem(168),");\n    "))}),nB=(0,g.ZP)(nZ).withConfig({componentId:"sc-f5483346-15"})(styles_templateObject25(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 48%;\n    padding: ".concat(t.rem(48,16,48,58),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      top: ".concat(t.rem(50),";\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      top: ".concat(t.rem(52),";\n    "))});g.ZP.div.withConfig({componentId:"sc-f5483346-16"})(styles_templateObject26(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary}),g.ZP.div.withConfig({componentId:"sc-f5483346-17"})(styles_templateObject27(),e=>{let{theme:t}=e;return t.rem(6,12)},e=>{let{theme:t}=e;return t.colors.grayscale.white},e=>{let{theme:t}=e;return t.rem(20)}),g.ZP.div.withConfig({componentId:"sc-f5483346-18"})(styles_templateObject29(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t,redIcon:n}=e;return n&&(0,g.iv)(styles_templateObject28(),t.colors.status.error.default)});let nN=g.ZP.div.withConfig({componentId:"sc-f5483346-19"})(styles_templateObject30(),e=>{let{theme:t}=e;return t.rem(4)});g.ZP.div.withConfig({componentId:"sc-f5483346-20"})(styles_templateObject31());let nD=g.ZP.div.withConfig({componentId:"sc-f5483346-21"})(styles_templateObject32(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(12)}),nR=g.ZP.div.withConfig({componentId:"sc-f5483346-22"})(styles_templateObject33()),nL=g.ZP.div.withConfig({componentId:"sc-f5483346-23"})(styles_templateObject34()),nQ=g.ZP.div.withConfig({componentId:"sc-f5483346-24"})(styles_templateObject35(),e=>{let{theme:t}=e;return t.rem(80)}),nq=g.ZP.div.withConfig({componentId:"sc-f5483346-25"})(styles_templateObject36(),e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(1)},e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(-4)},e=>{let{theme:t}=e;return t.rem(-10)}),nH=g.ZP.div.withConfig({componentId:"sc-f5483346-26"})(styles_templateObject37(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary}),nV=g.ZP.label.withConfig({componentId:"sc-f5483346-27"})(styles_templateObject38()),nX=g.ZP.div.withConfig({componentId:"sc-f5483346-28"})(styles_templateObject39(),e=>{let{theme:t}=e;return t.rem(24)});g.ZP.div.withConfig({componentId:"sc-f5483346-29"})(styles_templateObject41(),e=>{let{isActive:t}=e;return t&&(0,g.iv)(styles_templateObject40())});let nU=g.ZP.div.withConfig({componentId:"sc-f5483346-30"})(styles_templateObject42(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(12,16)}),nG=g.ZP.div.withConfig({componentId:"sc-f5483346-31"})(styles_templateObject44(),e=>{let{isVisible:t}=e;return t&&(0,g.iv)(styles_templateObject43())}),nW=g.ZP.div.withConfig({componentId:"sc-f5483346-32"})(styles_templateObject46(),e=>{let{isVisible:t}=e;return!t&&(0,g.iv)(styles_templateObject45())}),nJ=(0,g.ZP)(nZ).withConfig({componentId:"sc-f5483346-33"})(styles_templateObject47()),n$=g.ZP.div.withConfig({componentId:"sc-f5483346-34"}
1)(styles_templateObject48(),e=>{let{theme:t}=e;return t.rem(38)},e=>{let{theme:t}=e;return t.rem(26)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: ".concat(t.rem(50),";\n    height: ").concat(t.rem(34),";\n  "))},e=>{let{theme:t}=e;return t.rem(6)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      margin-right: ".concat(t.rem(8),";\n    "))}),nY=g.ZP.div.withConfig({componentId:"sc-f5483346-35"})(styles_templateObject51(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: ".concat(t.rem(300),";\n    display: block;\n    opacity: 0;\n  "))},e=>{let{selected:t,theme:n}=e;return t&&(0,g.iv)(styles_templateObject49(),n.mediaQuery.lg("\n      opacity: 1;\n    "))},e=>{let{hasError:t}=e;return t&&(0,g.iv)(styles_templateObject50(),e=>{let{theme:t}=e;return t.colors.status.error.default})});var nK=n(12140),CheckoutConfigurator_ConfiguratorParticipationMode=e=>{let t,{handleParticipationModeSelect:n,handleLocationSelect:l,preConfiguredLocation:a,state:o,componentIndex:s,handleGoToNextStep:c}=e,[d,h]=(0,i.useState)(""),g=o.wizard.participationMode,f=o.wizard.locations,b=o.wizard.location,y=o.steps[s].status;return"filled"===y&&(t="online"===g||"Online"===b?"Online":"In Aula, ".concat(b)),(0,i.useEffect)(()=>{a?h({label:a,value:a.toLowerCase()}):h("string"==typeof o.wizard.location&&"online"!==o.wizard.location.toLowerCase()?{label:o.wizard.location,value:o.wizard.location.toLowerCase()}:""),"Online"===a||"online"===a?(n("online"),l({label:"Online"})):n("offline")},[]),(0,i.useEffect)(()=>{"online"===g&&h("")},[g]),(0,r.jsx)(p.kC,{justifyContent:"space-between",wrap:"wrap",children:"filled"===y?(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,content:t}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(nZ,{onClick:()=>{n("online"),l({label:"Online"})},selected:"online"===g,children:"Online"}),(0,r.jsxs)(nZ,{onClick:()=>n("offline"),selected:"offline"===g,disabled:!(null==f?void 0:f.length),children:["In Aula ",(null==f?void 0:f.length)?"":"(Non disponibile per questo corso)"]}),"offline"===g?(0,r.jsxs)("div",{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,children:"Hai scelto In Aula. In quale sede desideri seguire il tuo corso?"}),(0,r.jsx)(p.Nz,{xs:2})]}):null,"offline"===g&&(null==f?void 0:f.length)?(0,r.jsxs)("div",{style:{width:"100%"},children:[(0,r.jsx)(u.nv,{typo:"paragraphXS",textSecondary:!0,children:"Citt\xe0"}),(0,r.jsx)(nK.Z,{options:f,onChange:l,defaultValue:d}),(0,r.jsx)(u.nv,{typo:"paragraphXS",textSecondary:!0,children:"Seleziona la citt\xe0 del corso dalla tendina o scrivendo la citt\xe0"})]}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(m.Z,{label:"Avanti",handleClick:()=>c(s+1),disabled:!g||"offline"===g&&"Online"===o.wizard.location||"offline"===g&&!o.wizard.location,iconEnd:"arrow-right",variant:"primary"})]})]})})};function ModalClassSchedule_styles_templateObject(){let e=(0,h._)(["\n    transform: translateX(0);\n  "]);return ModalClassSchedule_styles_templateObject=function(){return e},e}function ModalClassSchedule_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-top-left-radius: ",";\n  position: absolute;\n  transition: transform 0.2s ease-in-out;\n  right: 0;\n  transform: translateX(100%);\n  z-index: 100;\n\n  ","\n\n  ","\n"]);return ModalClassSchedule_styles_templateObject1=function(){return e},e}function ModalClassSchedule_styles_templateObject2(){let e=(0,h._)(["\n  padding: ",";\n  border-bottom: 1px solid ",";\n  position: relative;\n\n  ","\n"]);return ModalClassSchedule_styles_templateObject2=function(){return e},e}function ModalClassSchedule_styles_templateObject3(){let e=(0,h._)(["\n  position: absolute;\n  right: ",";\n  top: 50%;\n  transform: translateY(-50%);\n  cursor: pointer;\n\n  i {\n    font-size: ",";\n  }\n"]);return ModalClassSchedule_styles_templateObject3=function(){return e},e}
1function ModalClassSchedule_styles_templateObject4(){let e=(0,h._)(["\n  padding: ",";\n  overflow-y: scroll;\n\n  ","\n"]);return ModalClassSchedule_styles_templateObject4=function(){return e},e}function ModalClassSchedule_styles_templateObject5(){let e=(0,h._)(["\n  padding-bottom: ",";\n  border-bottom: 1px solid ",";\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n"]);return ModalClassSchedule_styles_templateObject5=function(){return e},e}let n0=g.ZP.div.withConfig({componentId:"sc-8b5adcde-0"})(ModalClassSchedule_styles_templateObject1(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{isOpen:t}=e;return t&&(0,g.iv)(ModalClassSchedule_styles_templateObject())},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: ".concat(t.rem(390),";\n  "))}),n1=g.ZP.div.withConfig({componentId:"sc-8b5adcde-1"})(ModalClassSchedule_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(20,60,20,20)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(24,60,24,24),";\n  "))}),n2=g.ZP.div.withConfig({componentId:"sc-8b5adcde-2"})(ModalClassSchedule_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.rem(32)}),n4=g.ZP.div.withConfig({componentId:"sc-8b5adcde-3"})(ModalClassSchedule_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(40),";\n  "))}),n6=g.ZP.div.withConfig({componentId:"sc-8b5adcde-4"})(ModalClassSchedule_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(32)});var Modal_ModalClassSchedule=e=>{let{title:t,list:n,isOpen:i}=e,{closeModal:l}=(0,b.dd)();return(0,r.jsxs)(n0,{isOpen:i,children:[(0,r.jsxs)(n1,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,content:t}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.X6,{typo:"headingMD",weight:"semibold",children:"Calendario Lezioni"}),(0,r.jsx)(n2,{onClick:l,children:(0,r.jsx)(y.Z,{name:"x-mark"})})]}),(0,r.jsx)(n4,{children:n.map((e,t)=>(0,r.jsx)(n6,{children:(0,r.jsx)(u.nv,{typo:"paragraphLG",content:e,weight:"semibold"})},t))})]})},n5=n(82968),n3=n(84512);function CardCourseDetail_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  height: 1px;\n  background-color: ",";\n"]);return CardCourseDetail_styles_templateObject=function(){return e},e}function CardCourseDetail_styles_templateObject1(){let e=(0,h._)(["\n  padding: ",";\n  color: ",";\n  background-color: #E5673E;\n  position: absolute;\n  top: 0;\n  right: 0;\n  border-bottom-left-radius: ",";\n"]);return CardCourseDetail_styles_templateObject1=function(){return e},e}function CardCourseDetail_styles_templateObject2(){let e=(0,h._)(["\n    color: ",";\n  "]);return CardCourseDetail_styles_templateObject2=function(){return e},e}function CardCourseDetail_styles_templateObject3(){let e=(0,h._)(["\n  margin-right: ",";\n  color: ",";\n  \n  i {\n    font-size: ",";\n  }\n\n  ","\n"]);return CardCourseDetail_styles_templateObject3=function(){return e},e}function CardCourseDetail_styles_templateObject4(){let e=(0,h._)(["\n  /* color: ",";*/\n  color: ",";\n  text-decoration: line-through;\n  margin-right: ",";\n  position: relative;\n\n  &:before {\n    content: '';\n    width: 1px;\n    height: ",";\n    position: absolute;\n    /* background-color: ",";*/\n\n    background-color: ",";\n\n    right: ",";\n  }\n"]);return CardCourseDetail_styles_templateObject4=function(){return e},e}function CardCourseDetail_styles_templateObject5(){let e=(0,h._)(["\n\n"]);return CardCourseDetail_styles_templateObject5=function(){return e},e}function CardCourseDetail_styles_templateObject6(){let e=(0,h._)(["\n\n"]);return CardCourseDetail_styles_templateObject6=function(){return e},e}function CardCourseDetail_styles_templateObject7(){let e=(0,h._)(["\n    /* width: ","; */\n    border-radius: ",";\n    border: 1px solid ",";\n    padding: ",";\n    position: relative;\n\n    /* &:not(:last-child) {\n      ","\n    } */\n\n\n    button,\n    a {\n      display: inline-flex;\n    }\n  "]);
1return CardCourseDetail_styles_templateObject7=function(){return e},e}function CardCourseDetail_styles_templateObject8(){let e=(0,h._)(["\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n\n  button,\n  a {\n    display: none;\n  }\n\n  ","\n"]);return CardCourseDetail_styles_templateObject8=function(){return e},e}function CardCourseDetail_styles_templateObject9(){let e=(0,h._)(["\n  button {\n    display: block;\n    padding-left: 0;\n\n    span {\n      left: 0;\n    }\n  }\n"]);return CardCourseDetail_styles_templateObject9=function(){return e},e}let n8=g.ZP.div.withConfig({componentId:"sc-739a6c34-0"})(CardCourseDetail_styles_templateObject(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary}),n9=g.ZP.div.withConfig({componentId:"sc-739a6c34-1"})(CardCourseDetail_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(6,12)},e=>{let{theme:t}=e;return t.colors.grayscale.white},e=>{let{theme:t}=e;return t.rem(20)}),n7=g.ZP.div.withConfig({componentId:"sc-739a6c34-2"})(CardCourseDetail_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textPrimary},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t,redIcon:n}=e;return n&&(0,g.iv)(CardCourseDetail_styles_templateObject2(),t.colors.status.error.default)}),re=g.ZP.div.withConfig({componentId:"sc-739a6c34-3"})(CardCourseDetail_styles_templateObject4(),e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(22)},e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary},e=>{let{theme:t}=e;return t.rem(-10)}),rt=g.ZP.div.withConfig({componentId:"sc-739a6c34-4"})(CardCourseDetail_styles_templateObject5()),rn=g.ZP.div.withConfig({componentId:"sc-739a6c34-5"})(CardCourseDetail_styles_templateObject6()),rr=g.ZP.div.withConfig({componentId:"sc-739a6c34-6"})(CardCourseDetail_styles_templateObject8(),e=>{let{theme:t,type:n}=e;return"CARD"===n&&(0,g.iv)(CardCourseDetail_styles_templateObject7(),t.rem(348),t.rem(8),t.colorScheme.white.surface.borderSecondary,t.rem(48,16,0),t.mediaQuery.lg("\n        margin-right: ".concat(t.rem(16),";\n      ")))}),ri=g.ZP.div.withConfig({componentId:"sc-739a6c34-7"})(CardCourseDetail_styles_templateObject9());var molecules_CardCourseDetail=e=>{let{dataFromStrapi:t,product:n,variant:i,handle:l,courseTitle:a,type:o="CARD"}=e,s=i.selectedOptions?{...i,...(0,n3.iy)(i.selectedOptions)}:i,{startDate:c="Parti subito",endSignupDate:d=!1,referenceTestSession:h,compareAtPrice:g,price:f,isEarlyBird:_,earlyBirdPrice:x,endPromoDate:j=!1,hideTagEarlyBird:v=!0}=s,{showModal:C}=(0,b.dd)(),{sendGTM:w}=(0,P.rS)(),O=i.classSchedule?JSON.parse(i.classSchedule):[],S=!!d&&(0,n5.y)({start:new Date,end:new Date(d)}),k=_&&x&&x>0&&j&&(0,n5.y)({start:new Date,end:new Date(j)})>=0,I=_&&x&&x>0&&!1===v&&j&&(0,n5.y)({start:new Date,end:new Date(j)})>=0,T=S<0;return(0,r.jsxs)(rr,{type:o,children:[(0,r.jsxs)(rt,{children:[I?(0,r.jsx)(n9,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",children:"Early Bird"})}):null,(0,r.jsx)(u.__,{weight:"semibold",textSecondary:!0,children:"TI PREPARA PER LE SESSIONI DI"}),(0,r.jsx)(p.Nz,{xs:.5}),(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,children:h}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(n8,{}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(n7,{children:(0,r.jsx)(y.Z,{name:"calendar"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(u.__,{weight:"semibold",textSecondary:!0,children:"PARTENZA"}),(0,r.jsx)(p.Nz,{xs:.5}),(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:(0,tp.Oh)(c)}),d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:.5}),(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,content:"Termine candidature  ".concat((0,tp.p6)(new Date(d||0),"d MMMM"))})]}):null]})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(n8,{}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(n7,{children:(0,r.jsx)(y.Z,{name:"clock"})}),(0,r.jsxs)(ri,{children:[(0,r.jsx)(u.__,{weight:"semibold",textSecondary:!0,children:"ORARIO LEZIONI"}),(0,r.jsx)(p.Nz,{xs:.5}),O.length>1?(0,r.jsx)(m.Z,{variant:"tertiary",iconEnd:"arrow-up-right",label:"Vedi il calendario",handleClick:()=>C(Modal_ModalClassSchedule,{title:a,list:O,foreground:!0})}):O.length>0?(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,children:O}):null]})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(n8,{}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(n7,{children:(0,r.jsx)(y.Z,{name:"calendar"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(u.__,{weight:"semibold",textSecondary:!0,children:"COSTO"}),(0,r.jsx)(p.Nz,{xs:.5}),(0,r.jsx)(p.kC,{alignItems:"center",children:k?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(re,{children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:(0,tp.T4)(g||f),weight:"semibold"})}),(0,r.jsx)(u.nv,{typo:"paragraphLG",textPrimary:!0,content:"".concat((0,tp.T4)({amount:x,currencyCode:"EUR"})),weight:"semibold"})]}):(0,r.jsx)(u.nv,{typo:"paragraphLG",textPrimary:!0,content:"".concat((0,tp.T4)(f)),weight:"semibold"})}),(0,r.jsx)(p.Nz,{xs:.5}),k?i.endPromoDate?(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"Entro il ".concat((0,tp.p6)(new Date(i.endPromoDate||0),"d MMMM"))}):null:i.endSignupDate?(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,content:"Termine candidature ".concat((0,tp.p6)(new Date(i.endSignupDate||0),"d MMMM"))}):null]})]}),S<15&&S>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(n7,{redIcon:!0,children:(0,r.jsx)(y.Z,{name:"signal"})}),(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,children:"Ultimi posti rimasti"})]})]}):null,T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(n7,{redIcon:!0,children:(0,r.jsx)(y.Z,{name:"signal"})}),(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,children:"Sold Out"})]})]}):null,(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(n8,{}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsxs)(rn,{children:[(0,r.jsx)(p.kC,{justifyContent:"center",children:T?(0,r.jsx)(m.Z,{label:"SOLD OUT",variant:"primary",fullWidth:!0,disabled:!0}):"CARD"===o?(0,r.jsx)(m.Z,{label:"Iscriviti",variant:"primary",href:"/products/".concat(l,"?variantId=").concat(i.id),fullWidth:!0,iconEnd:"arrow-right",handleClick:()=>{t&&w({...(0,tf.UB)({data:{data:{...t.data,...i,title:a,item_id:null==i?void 0:i.sku}}},"course")})}}):null}),(0,r.jsx)(p.Nz,{xs:2})]})]})}
1,CheckoutConfigurator_ConfiguratorDate=e=>{let{handleStartDateSelect:t,state:n,componentIndex:i,handleGoToNextStep:l,title:a,handleRemovePreselectedVariant:o}=e,{showModal:s}=(0,b.dd)(),c=n.steps[i].status,d=n.steps[i].filledProps,h=n.wizard.selectedStartDateId,g=n.wizard.filteredVariants||[],f=d.classSchedule?JSON.parse(d.classSchedule):[];return(0,r.jsxs)(p.kC,{justifyContent:"space-between",alignItems:"stretch",wrap:"wrap",children:["filled"===c?(0,r.jsxs)(p.kC,{$direction:"column",children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,style:{textTransform:"capitalize"},content:(0,tp.Oh)(null==d?void 0:d.startDate)}),f.length>1?(0,r.jsx)(m.Z,{variant:"tertiary",iconEnd:"arrow-up-right",label:"Vedi il calendario",handleClick:()=>s(Modal_ModalClassSchedule,{title:a,list:f,foreground:!0})}):String(null==d?void 0:d.startDate).toLowerCase()!==String(f).toLowerCase()?(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(f)}):null]}):(null==g?void 0:g.length)?g.map((e,n)=>{let{id:l}=e;return(0,r.jsx)(nB,{selected:l===h,onClick:()=>{t(e.id,i),o()},children:(0,r.jsx)(molecules_CardCourseDetail,{variant:e,type:"CONTENT"})},n)}):null,"idle"==c?(0,r.jsxs)("div",{style:{width:"100%"},children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(m.Z,{label:"Avanti",handleClick:()=>l(i+1),disabled:!n.wizard.selectedStartDateId,iconEnd:"arrow-right",variant:"primary"})]}):null]})};let cleanTitle=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(" - ").slice(1).join(" - ")};var CheckoutConfigurator_ConfiguratorAdditionalMaterial=e=>{var t,n,i,l,a,o;let{withCourseBooks:s,handleWithCourseBooksSelect:c,productDataFromStrapi:h,state:g,componentIndex:f,handleGoToNextStep:b}=e,y=g.steps[f].status,_=h.data.includedBooks,x=!!_.title&&_.title,j=null!=_&&null!==(t=_.shopifyProduct)&&void 0!==t&&!!t.title&&(null==_?void 0:null===(n=_.shopifyProduct)||void 0===n?void 0:n.title),v={src:(null==_?void 0:null===(l=_.shopifyProduct)||void 0===l?void 0:null===(i=l.image)||void 0===i?void 0:i.src)?null==_?void 0:null===(o=_.shopifyProduct)||void 0===o?void 0:null===(a=o.image)||void 0===a?void 0:a.src:_.image.url,alt:j};return(0,r.jsxs)(nN,{children:["filled"===y?(0,r.jsx)("div",{children:"Si"===s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,children:"Si, desidero ricevere i libri in dotazione"}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphXD",textPrimary:!0,content:cleanTitle(j)})]}):(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,children:"No, grazie. Ho gi\xe0 uno o pi\xf9 di questi libri (-100,
100 € di sconto)"})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textSecondary:!0,children:"L’iscrizione al corso comprende l’ultima edizione dei manuali di preparazione. Se sei gi\xe0 in possesso di tutti i libri in dotazione, ti riconosceremo uno sconto del valore di 100 euro sul prezzo del corso. Desideri riceverli?"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{wrap:"wrap",spacing:2,justifyContent:"space-between",alignItems:"stretch",children:[(0,r.jsx)(nZ,{fullWidth:!0,onClick:()=>c("Si"),selected:"Si"===s,children:(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(nF,{children:(0,r.jsx)(d(),{...v,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,children:"Si, desidero ricevere i libri in dotazione (Li riceverai all’indirizzo che ti chiederemo tra poco)"}),(0,r.jsx)(p.Nz,{xs:1}),x?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphXD",textPrimary:!0,content:cleanTitle(x)}),(0,r.jsx)(p.Nz,{xs:1})]}):null,cleanTitle(j)?(0,r.jsx)(u.nv,{typo:"paragraphXD",textPrimary:!0,content:cleanTitle(j)}):null]})]})}),(0,r.jsx)(nZ,{fullWidth:!0,onClick:()=>c("No"),selected:"No"===s,children:(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,children:"No grazie, ho gi\xe0 i libri Alpha Test"})})]})]}),"idle"===y?(0,r.jsxs)("div",{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(m.Z,{label:"Avanti",handleClick:()=>b(f+1),disabled:!g.wizard.withCourseBooks,iconEnd:"arrow-right",variant:"primary"})]}):null]})},rl=n(8749),CheckoutConfigurator_ConfiguratorAuth=e=>{let{formik:t,state:n,componentIndex:l,handleGoToNextStep:a,handleUpdateProgress:o,checkoutType:s,userMeta:c}=e,d=n.steps[l].status;return(0,i.useEffect)(()=>{c&&t.setValues({...t.values,email:c.email})},[c]),(0,r.jsxs)(p.kC,{$direction:"column",spacing:2,children:["filled"===d?(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:t.values.email}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(rl.Z,{type:"email",name:"email",label:"Indirizzo mail *",id:"email",...t.getFieldProps("email")})}),"idle"===d?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(p.kC,{gap:2,alignItems:"center",children:c?(0,r.jsx)(m.Z,{label:"Continua",handleClick:()=>{a(l+1),o(2)},iconEnd:"arrow-right",variant:"primary"}):(0,r.jsxs)(p.kC,{$direction:"column",children:[(0,r.jsx)(m.Z,{label:"Continua come ospite",handleClick:()=>{t.setFieldTouched("email",!0),t.validateField("email"),t.errors.email||""===t.values.email||(a(l+1),o(2)),"course"===s&&t.setFieldValue("coursistEmail",t.values.email)},iconEnd:"arrow-right",variant:"primary"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{typo:"paragraphXS",content:"oppure",textSecondary:!0}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(m.Z,{label:"Effettua login",href:"/api/auth/login?returnTo=".concat(window.location.href),iconEnd:"arrow-right",variant:"tertiary"})]})})]}):null]})},ra=n(25550);function Switch_styles_templateObject(){let e=(0,h._)(["\n    color: white;\n  "]);return Switch_styles_templateObject=function(){return e},e}function Switch_styles_templateObject1(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  cursor: pointer;\n  z-index: 2;\n  transition: color 0.2s ease-in-out;\n  line-height: 1;\n\n  > div {\n    display: flex;\n    align-items: center;\n  }\n\n  ","\n"]);return Switch_styles_templateObject1=function(){return e},e}function Switch_styles_templateObject2(){let e=(0,h._)(["\n    margin: 0 auto;\n    width: ",";\n    outline: 1px solid ",";\n    outline-offset: 4px;\n    border: none;\n    display: flex;\n\n    "," {\n      padding: ",";\n    }\n  "]);return Switch_styles_templateObject2=function(){return e},e}function Switch_styles_templateObject3(){let e=(0,h._)(["\n      transform: translateX(calc(100% - ",")) translateY(-50%);\n    "]);return Switch_styles_templateObject3=function(){return e},e}function Switch_styles_templateObject4(){let e=(0,h._)(["\n    height: ",";\n\n    "," {\n      display: flex;\n      justify-content: center;\n      align-items: center;\n\n      span {\n        font-size: ",";\n      }\n    }\n  "]);
1return Switch_styles_templateObject4=function(){return e},e}function Switch_styles_templateObject5(){let e=(0,h._)(["\n  border: 1px solid ",";\n  padding: ",";\n  border-radius: ",";\n  display: inline-flex;\n  justify-content: space-around;\n  position: relative;\n  gap: ",";\n\n  \n  ","\n\n  &::before {\n    content: '';\n    display: block;\n    width: 50%;\n    height: 80%;\n    border-radius: ",";\n    position: absolute;\n    top: 50%;\n    left: 0;\n    background-color: ",";\n    z-index: 1;\n    transition: transform 0.2s ease-in-out;\n    transform: translateY(-50%) translateX(",");\n\n    ","\n  }\n\n  ","\n"]);return Switch_styles_templateObject5=function(){return e},e}let ro=g.ZP.div.withConfig({componentId:"sc-a30e48ff-0"})(Switch_styles_templateObject1(),e=>{let{isActive:t}=e;return t&&(0,g.iv)(Switch_styles_templateObject())}),rs=g.ZP.div.withConfig({componentId:"sc-a30e48ff-1"})(Switch_styles_templateObject5(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(0,16)},e=>{let{theme:t}=e;return t.rem(100)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{centered:t,theme:n}=e;return t&&(0,g.iv)(Switch_styles_templateObject2(),n.rem(250),n.colorScheme.white.surface.borderPrimary,ro,e=>{let{theme:t}=e;return t.rem(12,0)})},e=>{let{theme:t}=e;return t.rem(50)},e=>{let{theme:t}=e;return t.colorScheme.dark.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{activeOption:t}=e;return t&&(0,g.iv)(Switch_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(4)})},e=>{let{small:t,theme:n}=e;return t&&(0,g.iv)(Switch_styles_templateObject4(),n.rem(40),ro,n.rem(14))});var molecules_Switch=e=>{let{options:t=[],activeValueToCheck:n=null,handleClick:l=()=>{},small:a,centered:o}=e,[s,c]=(0,i.useState)();return(0,i.useEffect)(()=>{n===t[0].value?c(0):c(1)},[n]),t.length?(0,r.jsxs)(rs,{activeOption:s,small:a,centered:o,children:[(0,r.jsx)(ro,{isActive:n===t[0].value,onClick:()=>l(t[0].value),children:(0,r.jsx)(u.X6,{typo:"headingSM",weight:"semibold",content:t[0].label})}),(0,r.jsx)(ro,{isActive:n===t[1].value,onClick:()=>l(t[1].value),children:(0,r.jsx)(u.X6,{typo:"headingSM",weight:"semibold",content:t[1].label})})]}):null},rc=n(75135),rd=n(22829),ru=n(28849),utils_buildCheckoutDataObj=(e,t,n,r)=>{let i,l,a,o,s;let{isCompany:c}=e;if("course"===n&&(i=r.product,l=r.productDataFromStrapi,a=r.includedBooks,o=r.lines),(s=t.wizard.differentShipping?{email:e.email,address1:"".concat(e.shippingAddress," ").concat(e.shippingAddressNumber),city:e.shippingCity,country:e.shippingCountry,firstName:e.shippingFirstName,lastName:e.shippingLastName,province:e.shippingProvince,zip:e.shippingZip,phone:e.shippingPhone}:{email:e.email,address1:"".concat(e.coursistAddress," ").concat(e.coursistAddressNumber),city:e.coursistCity,country:e.coursistCountry,firstName:e.coursistFirstName,lastName:e.coursistLastName,province:e.coursistProvince,zip:e.coursistZip,phone:e.coursistPhone}).coursistData={email:e.email,address1:"".concat(e.coursistAddress," ").concat(e.coursistAddressNumber),city:e.coursistCity,country:e.coursistCountry,province:e.coursistProvince,zip:e.coursistZip,isCompany:"".concat(c),phone:e.coursistPhone},s.billingData={firstName:e.billingFirstName,lastName:e.billingLastName,address1:e.billingAddress,city:e.billingCity,country:e.billingCountry,province:e.billingProvince,zip:e.billingZip,phone:t.wizard.differentShipping?e.shippingPhone:e.coursistPhone},c?(s.coursistData={...s.coursistData,company:e.company,vat:e.vatNumber,companyFiscalCode:e.companyFiscalCode,sdi:e.sdi,pec:e.pec},s.company=e.company):s.coursistData={...s.coursistData,firstName:e.coursistFirstName,lastName:e.coursistLastName,fiscalCode:e.coursistFiscalCode},"course"===n&&(s.coursistData.email=e.coursistEmail,s.courseName=t.wizard.selectedVariant[0].title,s.variantId=t.wizard.selectedVariant[0].id,s.freeItems=i.freeItems&&[],s.upsellItems=t.wizard.upsellCart,s.supportMaterial=(null==l?void 0:l.data.supportMaterial)||[],s.includedBooks="Si"===t.wizard.withCourseBooks&&a?[a]:[]),t.wizard.mergeCart&&o.length>0&&(s.lines=o),"book"===n){let e=(0,th.Z)("_rTokens")||null;e&&""!==e&&(s.coursistData.utm_tokens=e)}let d=(0,tg.P)();return d&&(s.hsdcid=d),s},utils_buildCustomPaymentObj=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],{email:l,address1:a,city:o,country:s,firstName:c,lastName:d,province:u,zip:p,coursistData:m,billingData:h,phone:g}=e,f={qr:t,input:{allowPartialAddresses:!0,buyerIdentity:{countryCode:s.toUpperCase()},email:l,lineItems:n.map(e=>({variantId:e.merchandise.id,quantity:e.quantity})),shippingAddress:{address1:a,city:o,country:s,firstName:c,lastName:d,province:u,zip:p,phone:g},billingData:{...h},coursistData:{...m},isEnableMarketing:r,hsdcid:(0,tg.P)()||""}};if(i&&i.length>0){let e=i.map(e=>{var t,n;if(null==e?void 0:null===(n=e.shopifyProduct)||void 0===n?void 0:null===(t=n.variants[0])||void 0===t?void 0:t.admin_graphql_api_id)return{customAttributes:[],variantId:e.shopifyProduct.variants[0].admin_graphql_api_id,quantity:1}});e.filter(e=>void 0!==e).length>0&&f.input.lineItems.push(...e)}return f};let rp={VOUCHER_INVALID_PARAMS:"Il codice inserito non \xe8 valido. Verifica di averlo copiato correttamente.",VOUCHER_NOT_AVAILABLE:"Il buono risulta gi\xe0 utilizzato o annullato.",VOUCHER_ACTIVATION_ERROR:"Impossibile verificare il buono in questo momento. Riprova tra qualche minuto.",VOUCHER_AMOUNT_EXCEEDED:"L'importo del buono \xe8 inferiore al totale dell'ordine.",VOUCHER_MERCHANT_INACTIVE:"Il servizio di pagamento non \xe8 attivo al momento. Riprova pi\xf9 tardi.",VOUCHER_CATEGORY_MISMATCH:"Il buono non \xe8 valido per questa categoria di prodotti.",VOUCHER_AMOUNT_INSUFFICIENT:"L'importo del buono \xe8 inferiore al totale dell'ordine.",VOUCHER_CF_MISMATCH:"Il codice fiscale non corrisponde al titolare del buono.",CHECK_SOAP_ERROR:"Errore durante la verifica del buono. Riprova tra qualche minuto.",CONFIRM_SOAP_ERROR:"Errore durante la conferma del pagamento. Contatta l'assistenza.",SOAP_CLIENT_ERROR:"Servizio temporaneamente non disponibile. Riprova tra qualche minuto.",DRAFT_ORDER_FAILED:"Errore nella creazione dell'ordine. Riprova tra qualche minuto.",
1SHOPIFY_RATE_LIMIT:"Il servizio \xe8 momentaneamente sovraccarico. Riprova tra qualche minuto.",SHOPIFY_AUTH_ERROR:"Errore di configurazione del servizio. Contatta l'assistenza.",SHOPIFY_SERVICE_ERROR:"Servizio temporaneamente non disponibile. Riprova tra qualche minuto.",INVALID_EMAIL:"L'indirizzo email inserito non \xe8 valido.",INVALID_PRODUCT:"Uno dei prodotti selezionati non \xe8 disponibile.",INVALID_PAYLOAD:"Verifica di aver compilato correttamente tutti i campi.",ORDER_CREATION_FAILED_AFTER_PAYMENT:"Il pagamento \xe8 stato registrato ma si \xe8 verificato un errore nella creazione dell'ordine. Contatta l'assistenza."},getCheckoutErrorMessage=e=>e&&rp[e]||"Verifica di aver inserito correttamente le informazioni";var rm=n(65485);let rh=[{type:"shopify",label:"No, non ho un buono ministeriale"},{type:"cartaCultura",label:"Carta Giovani o del Merito",icon:"payment-carte-cultura",input:{name:"payment-carte-cultura",id:"payment-carte-cultura",key:"cartaCultura"}},{type:"cartaDocente",label:"Carta del Docente",icon:"payment-carta-del-docente",input:{name:"payment-carta-del-docente",id:"payment-carta-del-docente",key:"cartaDocente"}}];var CheckoutConfigurator_ConfiguratorCustomPayments=e=>{let{customPayment:t="shopify",handleSelectCustomPayment:n=()=>{},handleShowCustomPaymentTYP:l=()=>{},handleToggleMarketing:a=()=>{},lines:o=[],formik:s,state:c,checkoutType:h,bookGifts:g}=e,[f,b]=(0,i.useState)(!1),[_,x]=(0,i.useState)(""),[j,v]=(0,i.useState)(!1),[C,w]=(0,i.useState)(!1),O=(0,i.useRef)(null),[S,I]=(0,i.useState)(!1),[T,Z]=(0,i.useState)(!1),{isLoading:z,setIsLoading:E}=(0,rm.r$)(),{sendGTM:M}=(0,P.rS)(),A=(0,tu.jD)(),B=(0,ec.useRouter)(),handleFetchCartExtendedData=async e=>Promise.all(e.map(async e=>"libro"===e.merchandise.product.productType?await (0,k.uy)(e.merchandise.product.handle):await (0,k.qB)(e.merchandise.product.handle)));(0,i.useEffect)(()=>{let handleTrackingCartaCultura=async()=>{let e=await handleFetchCartExtendedData(A.lines),t=e.map((e,t)=>{let{data:n}=e;return{data:n,cartData:o[t]}});M({...(0,tf.fp)({data:t,lines:o})})};"cartaCultura"===t&&s.values.cartaCultura.length>0&&!S&&(handleTrackingCartaCultura(),I(!0))},[s.values.cartaCultura]),(0,i.useEffect)(()=>{let handleTrackingCartaDocente=async()=>{let e=await handleFetchCartExtendedData(A.lines),t=e.map((e,t)=>{let{data:n}=e;return{data:n,cartData:o[t]}});M({...(0,tf.fp)({data:t,lines:o})})};"cartaDocente"===t&&s.values.cartaDocente.length>0&&!T&&(handleTrackingCartaDocente(),Z(!0))},[s.values.cartaDocente]),(0,i.useEffect)(()=>{f&&b(!1)},[s.values.cartaCultura,s.values.cartaDocente]);let startSlowTimer=()=>{w(!1),O.current=setTimeout(()=>w(!0),7e3)},clearSlowTimer=()=>{O.current&&clearTimeout(O.current),O.current=null,w(!1)},handleError=(e,t)=>{if("ORDER_CREATION_FAILED_AFTER_PAYMENT"===e&&t){sessionStorage.setItem("order_error_data",JSON.stringify(t)),A.linesRemove(o.map(e=>{let{id:t}=e;return t})),B.push("/checkout/errore-ordine");return}x(getCheckoutErrorMessage(e)),b(!0)},handleSuccess=()=>{v(!0),l()},handlePaymentInit=(e,t)=>{let n;let r=utils_buildCheckoutDataObj(e.values,c,h);"cartaCultura"===t&&(E(!0),startSlowTimer(),n=utils_buildCustomPaymentObj(r,e.values.cartaCultura,o,e.values.marketing,g),(0,k.Om)(n).then(e=>{let{result:t,errorCode:n,orderData:r}=e;clearSlowTimer(),E(!1),t||handleError(n,r),t&&handleSuccess()})),"cartaDocente"===t&&(E(!0),startSlowTimer(),n=utils_buildCustomPaymentObj(r,e.values.cartaDocente,o,e.values.marketing,g),(0,k.B4)(n).then(e=>{let{result:t,errorCode:n,orderData:r}=e;clearSlowTimer(),E(!1),t||handleError(n,r),t&&handleSuccess()}))};return(0,r.jsxs)("div",{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",content:"Vuoi usare una carta ministeriale?",weight:"semibold"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"Seleziona il tuo buono e inserisci il codice prima di completare l’ordine. Ricorda che il valore del tuo buono deve essere uguale o superiore al valore dei prodotti acquistati."}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"Se non hai un buono ministeriale, seleziona “No, non ho un buono ministeriale” per procedere al pagamento."}),(0,r.jsx)(p.Nz,{xs:4}),rh.map((e,i)=>(0,r.jsx)(nJ,{selected:e.type===t,onClick:()=>n(e.type,s),children:(0,r.jsxs)(p.kC,{justifyContent:"space-between",alignItems:{lg:"center"},$direction:{xs:"column",lg:"row"},fullWidth:!0,gap:{xs:2,lg:0},children:[(0,r.jsxs)(p.kC,{gap:1,alignItems:"center",fullWidth:!0,children:[e.icon?(0,r.jsx)(n$,{children:(0,r.jsx)(d(),{src:"/logos/payments/".concat(e.icon,".png"),alt:e.label,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})}):null,(0,r.jsx)(u.nv,{typo:"paragraphMD",content:e.label})]}
1),e.input?(0,r.jsx)(nY,{selected:e.type===t,hasError:f,children:(0,r.jsx)(rl.Z,{...s.getFieldProps(e.input.key),placeholder:"INSERISCI IL BUONO"})}):null]})},i)),"shopify"!==t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{alignItems:"center",gap:1,children:[(0,r.jsxs)(nH,{children:[(0,r.jsx)("input",{id:"termsPrivacyCheckbox",type:"checkbox",onChange:e=>{s.setFieldValue("termsPrivacyCheckbox",e.target.checked)},checked:s.values.termsPrivacyCheckbox}),(0,r.jsx)(nX,{children:(0,r.jsx)(y.Z,{name:"x-mark",ariaHidden:"true"})})]}),(0,r.jsxs)(nV,{htmlFor:"termsPrivacyCheckbox",children:["Ho preso visione dell'",(0,r.jsx)("a",{href:"/privacy-policy-web-marketing",target:"_blank",children:"informativa privacy"}),". *"]})]}),(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsxs)(p.kC,{alignItems:"center",gap:1,children:[(0,r.jsxs)(nH,{children:[(0,r.jsx)("input",{id:"marketing",type:"checkbox",onChange:e=>{a(e.target.checked),s.setFieldValue("marketing",e.target.checked)}}),(0,r.jsx)(nX,{children:(0,r.jsx)(y.Z,{name:"x-mark",ariaHidden:"true"})})]}),(0,r.jsx)(nV,{htmlFor:"marketing",children:"Acconsento all’invio di comunicazioni marketing: newsletters, info sui test e materiali gratuiti."})]}),(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(m.Z,{label:"Completa l'ordine",iconEnd:"arrow-right",variant:"primary",handleClick:()=>handlePaymentInit(s,t),disabled:!s.values.termsPrivacyCheckbox||("cartaCultura"===t?""===s.values.cartaCultura:"cartaDocente"===t?""===s.values.cartaDocente:void 0)||z}),C?(0,r.jsx)("div",{style:{marginTop:"12px",padding:"12px 16px",background:"#FFF8E1",borderRadius:"6px",border:"1px solid #FFE082"},children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"L'operazione sta richiedendo pi\xf9 tempo del previsto. Non ricaricare la pagina, il tuo ordine \xe8 in fase di elaborazione."})}):null,f?(0,r.jsx)(F.Xq,{children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:_})}):null,j?(0,r.jsx)(u.nv,{typo:"paragraphSM",content:"Operazione andata a buon fine"}):null]}):null]})},rg=n(96829),CheckoutConfigurator_ConfiguratorFormData=e=>{var t,n,l,a;let{formik:o,shippingType:s,setShippingType:c,handleDifferentShipping:d=()=>{},handleDifferentBilling:h=()=>{},handleCoursistCountrySelection:g=()=>{},handleCoursistProvinceSelection:f=()=>{},handleBillingCountrySelection:b=()=>{},handleBillingProvinceSelection:_=()=>{},handleShippingCountrySelection:x=()=>{},handleShippingProvinceSelection:j=()=>{},handleIsCompanySelect:v=()=>{},handleSelectCustomPayment:C=()=>{},handleScrollToComponent:w=()=>{},handleShowCustomPaymentTYP:O=()=>{},handleToggleMarketing:S=()=>{},setMarketingEmail:I=()=>{},customPayment:T,state:Z,componentIndex:z,handleGoToNextStep:F,handleUpdateProgress:E,checkoutType:M,userMeta:A,hasAdditionalMaterial:B,supportMaterial:N,bookGifts:D}=e,R=Z.steps[z].status,L=Z.wizard.coursistCountry,Q=Z.wizard.coursistProvince,q=Z.wizard.billingCountry,H=Z.wizard.billingProvince,V=Z.wizard.shippingCountry,X=Z.wizard.shippingProvince,U=Z.wizard.isCompany,G=Z.wizard.differentBilling,W=Z.wizard.differentShipping,{lines:J,cost:$}=(0,tu.jD)(),{sendGTM:Y}=(0,P.rS)(),K="Non hai un codice fiscale italiano? Clicca qui e inserisci il tuo identificativo fiscale estero",ee=Number(null!==(a=null==$?void 0:null===(t=$.subtotalAmount)||void 0===t?void 0:t.amount)&&void 0!==a?a:0),et=!(ee<20)&&J.every(e=>"altro"!==e.merchandise.product.productType),handleFetchCartExtendedData=async e=>Promise.all(e.map(async e=>"libro"===e.merchandise.product.productType?await (0,k.uy)(e.merchandise.product.handle):await (0,k.qB)(e.merchandise.product.handle)));(0,i.useEffect)(()=>{A&&A.user_metadata&&(o.setValues({...o.values,coursistFirstName:A.user_metadata.given_name,coursistLastName:A.user_metadata.family_name,coursistAddress:A.user_metadata.address,coursistAddressNumber:A.user_metadata.streetNumber?A.user_metadata.streetNumber:"",coursistCountry:A.user_metadata.country.value.toUpperCase(),coursistEmail:A.email,coursistCity:A.user_metadata.city,coursistFiscalCode:A.user_metadata.fiscalCode,coursistProvince:A.user_metadata.district,coursistZip:A.user_metadata.zip,coursistPhone:A.user_metadata.phone}),g({value:A.user_metadata.country.value.toUpperCase(),label:A.user_metadata.country.label}),f((0,ru.Q)(A.user_metadata.district,rd.Z)))},[]);let isCoursistDataCorrect=e=>""!==e.values.coursistFirstName&&!e.errors.coursistFirstName&&""!==e.values.coursistLastName&&!e.errors.coursistLastName&&""!==e.values.coursistAddress&&!e.errors.coursistAddress&&""!==e.values.coursistAddressNumber&&!e.errors.coursistAddressNumber&&""!==e.values.coursistCountry&&!e.errors.coursistCountry&&""!==e.values.coursistProvince&&!e.errors.coursistProvince&&""!==e.values.coursistZip&&!e.errors.coursistZip&&""!==e.values.coursistCity&&!e.errors.coursistCity&&""!==e.values.coursistFiscalCode&&!e.errors.coursistFiscalCode&&""!==e.values.coursistPhone&&!e.errors.coursistPhone&&""!==e.values.coursistEmail&&!e.errors.coursistEmail,isBillingDataCorrect=e=>e.values.isCompany?""!==e.values.billingAddress&&!e.errors.billingAddress&&""!==e.values.billingAddressNumber&&!e.errors.billingAddressNumber&&""!==e.values.billingCity&&!e.errors.billingCity&&""!==e.values.billingCountry&&!e.errors.billingCountry&&""!==e.values.billingEmail&&!e.errors.billingEmail&&""!==e.values.billingProvince&&!e.errors.billingProvince&&""!==e.values.company&&!e.errors.company&&""!==e.values.vatNumber&&!e.errors.vatNumber&&""!==e.values.sdi&&!e.errors.sdi&&""!==e.values.pec&&!e.errors.pec&&""!==e.values.billingZip&&!e.errors.billingZip:""!==e.values.billingAddress&&!e.errors.billingAddress&&""!==e.values.billingAddressNumber&&!e.errors.billingAddressNumber&&""!==e.values.billingCity&&!e.errors.billingCity&&""!==e.values.billingCountry&&!e.errors.billingCountry&&""!==e.values.billingEmail&&!e.errors.billingEmail&&""!==e.values.billingProvince&&!e.errors.billingProvince&&""!==e.values.billingFirstName&&!e.errors.billingFirstName&&""!==e.values.billingFiscalCode&&!e.errors.billingFiscalCode&&""!==e.values.billingLastName&&!e.errors.billingLastName&&""!==e.values.billingZip&&!e.errors.billingZip,isShippingDataCorrect=e=>""!==e.values.shippingFirstName&&!e.errors.shippingFirstName&&""!==e.values.shippingLastName&&!e.errors.shippingLastName&&""!==e.values.shippingFiscalCode&&!e.errors.shippingFiscalCode&&""!==e.values.shippingAddress&&!e.errors.shippingAddress&&""!==e.values.shippingAddressNumber&&!e.errors.shippingAddressNumber&&""!==e.values.shippingCity&&!e.errors.shippingCity&&""!==e.values.shippingZip&&!e.errors.shippingZip&&""!==e.values.shippingCountry&&!e.errors.shippingCountry&&""!==e.values.shippingProvince&&!e.errors.shippingProvince,isCheckoutDataCorrect=(e,t)=>
1{let n=isCoursistDataCorrect(e);return t.wizard.differentBilling&&(n=n&&isBillingDataCorrect(e)),t.wizard.differentShipping&&(n=n&&isShippingDataCorrect(e)),n},handleCoursistAddressAutocomplete=async e=>{if(!e)return;let{street:t,city:n,country:r,country_code:i,county:l,county_code:a,postcode:s}=e.properties,c=e.properties.housenumber||"";o.setValues({...o.values,coursistAddressNumber:c,coursistAddress:t,coursistCity:n,coursistCountry:i,coursistProvince:a,coursistZip:s}),g({value:i,label:r}),f({value:a,label:l})},handleBillingAddressAutocomplete=async e=>{if(!e)return;let{street:t,city:n,country:r,country_code:i,county:l,county_code:a,postcode:s}=e.properties,c=e.properties.housenumber||"";o.setValues({...o.values,billingAddressNumber:c,billingAddress:t,billingCity:n,billingCountry:i,billingProvince:a,billingZip:s}),b({value:i,label:r}),_({value:a,label:l})},handleClickModifyBilling=(e,t)=>{let n=t.wizard.differentBilling;e.setValues({...e.values,differentBilling:!n,billingFirstName:e.values.coursistFirstName,billingLastName:e.values.coursistLastName,billingFiscalCode:e.values.coursistFiscalCode,billingAddress:e.values.coursistAddress,billingAddressNumber:e.values.coursistAddressNumber,billingCountry:e.values.coursistCountry,billingProvince:e.values.coursistProvince,billingCity:e.values.coursistCity,billingZip:e.values.coursistZip}),h(!n),b(L),_(Q)},handleClickModifyShipping=(e,t)=>{let n=t.wizard.differentShipping;e.setValues({...e.values,differentShipping:!n,shippingFirstName:e.values.coursistFirstName,shippingLastName:e.values.coursistLastName,shippingAddress:e.values.coursistAddress,shippingAddressNumber:e.values.coursistAddressNumber,shippingCountry:e.values.coursistCountry,shippingProvince:e.values.coursistProvince,shippingCity:e.values.coursistCity,shippingZip:e.values.coursistZip,shippingPhone:e.values.coursistPhone}),d(!n),x(L),j(Q)},handleAddressManualInput=(e,t,n)=>{e.setFieldValue(n,t)};return(0,r.jsxs)("div",{children:["filled"===R?(0,r.jsxs)(p.kC,{wrap:"wrap",children:[(0,r.jsxs)("div",{style:{width:"50%"},children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Dati personali".concat("course"===M?" del corsista":"")}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistFirstName," ").concat(o.values.coursistLastName)}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:o.values.coursistFiscalCode.toUpperCase()}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:o.values.coursistPhone}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistAddress).concat(""!==o.values.coursistAddressNumber?", "+o.values.coursistAddressNumber:"")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistCity,", ").concat(o.values.coursistZip," ")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistProvince,", ").concat(o.values.coursistCountry.toUpperCase()," ")}),(0,r.jsx)(p.Nz,{xs:2})]}),G?(0,r.jsxs)("div",{style:{width:"50%"},children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Indirizzo di fatturazione"}),(0,r.jsx)(p.Nz,{xs:1}),U?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:o.values.company}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:o.values.vatNumber}),""!==o.values.companyFiscalCode?(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:o.values.companyFiscalCode}):null,(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:o.values.sdi}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:o.values.pec})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.billingFirstName," ").concat(o.values.billingLastName)}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.billingFiscalCode.toUpperCase())})]}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.billingAddress).concat(""!==o.values.billingAddressNumber?", "+o.values.billingAddressNumber:"")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.billingCity,", ").concat(o.values.billingZip," ")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.billingProvince,", ").concat(o.values.billingCountry.toUpperCase()," ")})]}):(0,r.jsxs)("div",{style:{width:"50%"},children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Indirizzo di fatturazione"}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistFirstName," ").concat(o.values.coursistLastName)}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistFiscalCode.toUpperCase())}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistAddress).concat(""!==o.values.coursistAddressNumber?", "+o.values.coursistAddressNumber:"")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistCity,", ").concat(o.values.coursistZip," ")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistProvince,", ").concat(o.values.coursistCountry.toUpperCase()," ")})]}),W?(0,r.jsxs)("div",{style:{width:"50%"},children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Indirizzo di spedizione"}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.shippingFirstName," ").concat(o.values.shippingLastName)}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.shippingPhone)}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.shippingAddress).concat(""!==o.values.shippingAddressNumber?", "+o.values.shippingAddressNumber:"")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.shippingCity,", ").concat(o.values.shippingZip," ")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.shippingProvince,", ").concat(o.values.shippingCountry.toUpperCase()," ")})]}):(0,r.jsx)(r.Fragment,{children:"course"!==M||"course"===M&&"Si"===Z.wizard.withCourseBooks&&B?(0,r.jsxs)("div",{style:{width:"50%"},children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Indirizzo di spedizione"}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistFirstName," ").concat(o.values.coursistLastName)}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistPhone)}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistAddress).concat(""!==o.values.coursistAddressNumber?", "+o.values.coursistAddressNumber:"")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistCity,", ").concat(o.values.coursistZip," ")}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"".concat(o.values.coursistProvince,", ").concat(o.values.coursistCountry.toUpperCase()," ")})]}):null})]}):(0,r.jsx)(p.W2,{noGutter:!0,children:(0,r.jsxs)(rg.eo,{apiKey:"3467054399394427b64a1dbcedc4b24a",children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(rl.Z,{id:"coursistFirstName",type:"text",label:"Nome".concat("course"===M?" del corsista":"","*"),...o.getFieldProps("coursistFirstName"),withFeedback:!0,placeholder:"Mario"}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:(0,r.jsx)(rl.Z,{id:"coursistLastName",type:"text",label:"Cognome".concat("course"===M?" del corsista":"","*"),...o.getFieldProps("coursistLastName"),withFeedback:!0,placeholder:"Rossi"})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(ra.Z,{onPlaceSelect:handleCoursistAddressAutocomplete,onUserInput:e=>handleAddressManualInput(o,e,"coursistAddress"),label:"Indirizzo di residenza*",address:A?null===(n=A.user_metadata)||void 0===n?void 0:n.address:null===(l=o.values)||void 0===l?void 0:l.coursistAddress,withFeedback:!0,hiddenFieldData:o.getFieldProps("coursistAddress")}),(0,r.jsx)(rl.Z,{type:"hidden",name:"coursistAddress",id:"coursistAddress",...o.getFieldProps("coursistAddress")}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:(0,r.jsx)(rl.Z,{id:"coursistAddressNumber",type:"text",label:"N. Civico*",...o.getFieldProps("coursistAddressNumber"),withFeedback:!0,placeholder:"1"})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:6,lg:3,children:[(0,r.jsx)(nK.Z,{id:"coursistCountry",name:"coursistCountry",...o.getFieldProps("coursistCountry"),options:rc.Z,value:L,onChange:e=>{g(e),o.setFieldValue("coursistCountry",e.value)},label:"Nazione*",withFeedback:!0}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsxs)(p.JX,{xs:6,lg:3,children:[(0,r.jsx)(nK.Z,{id:"coursistProvince",name:"coursistProvince",...o.getFieldProps("coursistProvince"),options:rd.Z,value:Q,onChange:e=>{f(e),o.setFieldValue("coursistProvince",e.value)},label:"Provincia*",withFeedback:!0}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:6,lg:3,children:(0,r.jsx)(rl.Z,{id:"coursistCity",type:"text",label:"Citt\xe0*",...o.getFieldProps("coursistCity"),withFeedback:!0,placeholder:"Roma"})}),(0,r.jsx)(p.JX,{xs:6,lg:3,children:(0,r.jsx)(rl.Z,{id:"coursistZip",type:"text",label:"CAP*",...o.getFieldProps("coursistZip"),withFeedback:!0,placeholder:"00100"})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(rl.Z,{id:"coursistFiscalCode",type:"text",label:"Codice fiscale*",...o.getFieldProps("coursistFiscalCode"),withFeedback:!0,uppercase:!0,placeholder:"AAABBB11C22D33E"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",$direction:"row-reverse",gap:1,children:[(0,r.jsxs)(nH,{children:[(0,r.jsx)("input",{id:"bypassCoursistFiscalCode",type:"checkbox",onChange:e=>{o.setFieldValue("bypassCoursistFiscalCode",e.target.checked)}}),(0,r.jsx)(nX,{children:(0,r.jsx)(y.Z,{name:"x-mark",ariaHidden:"true"})})]}),(0,r.jsx)("label",{htmlFor:"bypassCoursistFiscalCode",children:K})]})]}),(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(p.zv,{breakpoints:["xs","md"],children:(0,r.jsx)(p.Nz,{xs:1})}),(0,r.jsx)(rl.Z,{id:"coursistPhone",type:"text",label:"Cellulare*",...o.getFieldProps("coursistPhone"),withFeedback:!0,placeholder:"3331122333"})]})]}),"course"===M?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,weight:"semibold",content:"Indirizzo email con cui si acceder\xe0 alla piattaforma di e-learning del corso"})})}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(rl.Z,{label:"Email del corsista*",id:"coursistEmail",type:"coursistEmail",...o.getFieldProps("coursistEmail"),withFeedback:!0,placeholder:"[email protected]"})})})]}):null,(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(nU,{children:[(0,r.jsx)(u.nv,{content:"Dati per la fatturazione",weight:"semibold",textPrimary:!0,typo:"paragraphMD"}),(0,r.jsxs)(nG,{isVisible:Z.wizard.differentBilling,children:[(0,r.jsxs)(p.W2,{noGutter:!0,children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(molecules_Switch,{options:[{label:"Privato",value:!1},{label:"Azienda",value:!0}],handleClick:()=>{v(!U),o.setFieldValue("isCompany",!U)},activeValueToCheck:U,small:!0}),(0,r.jsx)(p.Nz,{xs:2}),U?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(rl.Z,{id:"company",type:"text",label:"Ragione sociale*",...o.getFieldProps("company"),withFeedback:!0,placeholder:"Ragione Sociale SRL"}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(rl.Z,{id:"vatNumber",type:"text",label:"Partita IVA*",...o.getFieldProps("vatNumber"),withFeedback:!0,placeholder:"12345678"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",$direction:"row-reverse",gap:1,children:[(0,r.jsxs)(nH,{children:[(0,r.jsx)("input",{id:"bypassVatNumber",type:"checkbox",onChange:e=>{o.setFieldValue("bypassVatNumber",e.target.checked)}}),(0,r.jsx)(nX,{children:(0,r.jsx)(y.Z,{name:"x-mark",ariaHidden:"true"})})]}),(0,r.jsx)("label",{htmlFor:"bypassVatNumber",children:K})]})]})]}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(rl.Z,{id:"companyFiscalCode",type:"text",label:"Codice Fiscale (se diverso da Partita IVA)",...o.getFieldProps("companyFiscalCode"),withFeedback:!0,placeholder:"AAABBB11C22D33E"})})}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Fatturazione elettronica"})})}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(rl.Z,{id:"sdi",type:"input",label:"Codice Destinatario*",...o.getFieldProps("sdi"),withFeedback:!0,placeholder:"1234567"}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(rl.Z,{id:"pec",type:"email",label:"Indirizzo PEC*",...o.getFieldProps("pec"),withFeedback:!0,placeholder:"[email protected]"})})})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(u.nv,{typo:"paragraphXS",content:"* Per ricevere la fattura elettronica tramite il Sistema di Interscambio (SdI) il cliente \xe8 tenuto a fornire anche il Codice Destinatario e/o l’indirizzo di posta certificata (PEC) come previsto dalla Legge di Bilancio 2018 in attuazione del Decreto Legislativo n.127 del 2015"})})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(rl.Z,{id:"billingFirstName",type:"text",label:"Nome*",...o.getFieldProps("billingFirstName"),withFeedback:!0,placeholder:"Mario"}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:(0,r.jsx)(rl.Z,{id:"billingLastName",type:"text",label:"Cognome*",...o.getFieldProps("billingLastName"),withFeedback:!0,placeholder:"Rossi"})})]}),(0,r.jsx)(p.zv,{breakpoints:["xs","md"],children:(0,r.jsx)(p.Nz,{xs:2})}),(0,r.jsx)(p.X2,{children:(0,r.jsxs)(p.JX,{xs:12,children:[(0,r.jsx)(rl.Z,{id:"billingFiscalCode",type:"text",label:"Codice fiscale*",...o.getFieldProps("billingFiscalCode"),withFeedback:!0,uppercase:!0,placeholder:"AAABBB11C22D33E"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",$direction:"row-reverse",gap:1,children:[(0,r.jsxs)(nH,{children:[(0,r.jsx)("input",{id:"bypassBillingFiscalCode",type:"checkbox",onChange:e=>{o.setFieldValue("bypassBillingFiscalCode",e.target.checked)}}),(0,r.jsx)(nX,{children:(0,r.jsx)(y.Z,{name:"x-mark",ariaHidden:"true"})})]}),(0,r.jsx)("label",{htmlFor:"bypassBillingFiscalCode",children:K})]})]})}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Indirizzo di fatturazione"})})}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(ra.Z,{onPlaceSelect:handleBillingAddressAutocomplete,onUserInput:e=>handleAddressManualInput(o,e,"billingAddress"),label:"Indirizzo di fatturazione*",address:o.values.coursistAddress,withFeedback:!0}),(0,r.jsx)(rl.Z,{type:"hidden",name:"billingAddress",id:"billingAddress",...o.getFieldProps("billingAddress")}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:(0,r.jsx)(rl.Z,{id:"billingAddressNumber",type:"text",label:"N. Civico*",...o.getFieldProps("billingAddressNumber"),withFeedback:!0,placeholder:"1"})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:6,lg:3,children:(0,r.jsx)(nK.Z,{id:"billingCountry",name:"billingCountry",...o.getFieldProps("billingCountry"),options:rc.Z,value:q,onChange:e=>{g(e),o.setFieldValue("billingCountry",e.value)},label:"Nazione*",withFeedback:!0})}),(0,r.jsxs)(p.JX,{xs:6,lg:3,children:[(0,r.jsx)(nK.Z,{id:"billingProvince",name:"billingProvince",...o.getFieldProps("billingProvince"),options:rd.Z,value:H,onChange:e=>{f(e),o.setFieldValue("billingProvince",e.value)},label:"Provincia*",withFeedback:!0}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:6,lg:3,children:(0,r.jsx)(rl.Z,{id:"billingCity",type:"text",label:"Citt\xe0*",...o.getFieldP
1rops("billingCity"),withFeedback:!0,placeholder:"Roma"})}),(0,r.jsx)(p.JX,{xs:6,lg:3,children:(0,r.jsx)(rl.Z,{id:"billingZip",type:"text",label:"CAP*",...o.getFieldProps("billingZip"),withFeedback:!0,placeholder:"00100"})})]})]}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.kC,{justifyContent:"flex-end",children:(0,r.jsx)(m.Z,{label:"Annulla",handleClick:()=>{let e=Z.wizard.differentBilling;o.setFieldValue("differentBilling",!e),h(!e)},variant:"quaternary"})})]}),(0,r.jsxs)(nW,{isVisible:!Z.wizard.differentBilling,children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{justifyContent:"space-between",alignItems:"center",children:[(0,r.jsx)(u.nv,{typo:"paragraphSM",textPrimary:!0,content:"Vuoi modificare i dati di fatturazione?"}),(0,r.jsx)(m.Z,{label:"Modifica",handleClick:()=>{handleClickModifyBilling(o,Z)},variant:"quaternary"})]})]})]}),(0,r.jsx)(p.Nz,{xs:2}),"course"!==M||"course"===M&&"Si"===Z.wizard.withCourseBooks&&B||N&&N.length>0?(0,r.jsxs)(nU,{children:[(0,r.jsx)(u.nv,{content:"Dati per la spedizione",weight:"semibold",textPrimary:!0,typo:"paragraphMD"}),(0,r.jsxs)(nG,{isVisible:Z.wizard.differentShipping,children:[(0,r.jsxs)(p.W2,{noGutter:!0,children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(rl.Z,{id:"shippingFirstName",type:"text",label:"Nome*",...o.getFieldProps("shippingFirstName"),withFeedback:!0,placeholder:"Mario"}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:(0,r.jsx)(rl.Z,{id:"shippingLastName",type:"text",label:"Cognome*",...o.getFieldProps("shippingLastName"),withFeedback:!0,placeholder:"Rossi"})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,content:"Indirizzo di spedizione"})})}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,children:[(0,r.jsx)(ra.Z,{onPlaceSelect:e=>{if(!e)return;let{street:t,city:n,country:r,country_code:i,county:l,county_code:a,postcode:s}=e.properties,c=e.properties.housenumber||"";o.setValues({...o.values,shippingAddressNumber:c,shippingAddress:t,shippingCity:n,shippingCountry:i,shippingProvince:a,shippingZip:s}),x({value:i,label:r}),j({value:a,label:l})},onUserInput:e=>handleAddressManualInput(o,e,"shippingAddress"),address:o.values.coursistAddress,label:"Indirizzo di residenza*",withFeedback:!0}),(0,r.jsx)(rl.Z,{type:"hidden",name:"shippingAddress",id:"shippingAddress",...o.getFieldProps("shippingAddress")}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:(0,r.jsx)(rl.Z,{id:"shippingAddressNumber",type:"text",label:"N. Civico*",...o.getFieldProps("shippingAddressNumber"),withFeedback:!0,placeholder:"1"})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:6,lg:3,children:[(0,r.jsx)(nK.Z,{id:"shippingCountry",name:"shippingCountry",...o.getFieldProps("shippingCountry"),options:rc.Z,value:V,onChange:e=>{x(e),o.setFieldValue("shippingCountry",e.value)},label:"Nazione*",withFeedback:!0}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsxs)(p.JX,{xs:6,lg:3,children:[(0,r.jsx)(nK.Z,{id:"shippingProvince",name:"shippingProvince",...o.getFieldProps("shippingProvince"),options:rd.Z,value:X,onChange:e=>{j(e),o.setFieldValue("shippingProvince",e.value)},label:"Provincia*",withFeedback:!0}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(p.JX,{xs:6,lg:3,children:(0,r.jsx)(rl.Z,{id:"shippingCity",type:"text",label:"Citt\xe0*",...o.getFieldProps("shippingCity"),withFeedback:!0,placeholder:"Roma"})}),(0,r.jsx)(p.JX,{xs:6,lg:3,children:(0,r.jsx)(rl.Z,{id:"shippingZip",type:"text",label:"CAP*",...o.getFieldProps("shippingZip"),withFeedback:!0,placeholder:"00100"})})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(rl.Z,{id:"shippingPhone",type:"text",label:"Cellulare*",...o.getFieldProps("shippingPhone"),withFeedback:!0,placeholder:"3331122333"})})}),(0,r.jsx)(p.Nz,{xs:4})]}),(0,r.jsx)(p.kC,{justifyContent:"flex-end",children:(0,r.jsx)(m.Z,{label:"Annulla",handleClick:()=>{let e=Z.wizard.differentShipping;o.setFieldValue("differentShipping",!e),d(!e)},variant:"quaternary"})})]}),(0,r.jsxs)(nW,{isVisible:!Z.wizard.differentShipping,children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{justifyContent:"space-between",alignItems:"center",children:[(0,r.jsx)(u.nv,{typo:"paragraphSM",textPrimary:!0,content:"Preferisci spedire a un indirizzo diverso da quello di residenza?"}),(0,r.jsx)(m.Z,{label:"Modifica",handleClick:()=>{handleClickModifyShipping(o,Z)},variant:"quaternary"})]})]})]}):null]})}),(0,r.jsx)(p.Nz,{xs:4}),"idle"===R?(0,r.jsxs)("div",{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(m.Z,{label:"Vai al riepilogo",handleClick:()=>{isCheckoutDataCorrect(o,Z)?isCheckoutDataCorrect(o,Z)&&(F(z+1),E(3),w(z),I(o.values.email),handleFetchCartExtendedData(J).then(e=>{let t=e.map((e,t)=>{let{data:n}=e;return{data:n,cartData:J[t]}});Y({...(0,tf.qp)({data:t,lines:J})})})):o.handleSubmit()},iconEnd:"arrow-right",variant:"primary"})]}):null,"filled"===R?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.fu,{}),(0,r.jsx)(p.Nz,{xs:5}),!o.values.isCompany&&"book"===M&&et?(0,r.jsx)(CheckoutConfigurator_
1ConfiguratorCustomPayments,{handleSelectCustomPayment:C,customPayment:T,formik:o,state:Z,checkoutType:M,lines:J,handleShowCustomPaymentTYP:O,handleToggleMarketing:S,bookGifts:D}):null,"shopify"===T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(m.Z,{label:"Procedi all'ordine",type:"submit",iconEnd:"arrow-right",variant:"primary",disabled:"book"===M&&J.length<=0})]}):null]}):null]})},CheckoutConfigurator_ConfiguratorUpsell=e=>{let{state:t,handleGoToNextStep:n,componentIndex:i,handleAddToCart:l}=e,a=t.steps[i].status,o=t.wizard.upsellItems,s=t.wizard.upsellCart;return(0,r.jsxs)("div",{children:["filled"===a?(0,r.jsx)("div",{children:s.length?s.map((e,t)=>(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:e.title},t)):(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"Non hai selezionato nessun prodotto"})}):o.length&&o.map((e,t)=>{let n=e.variants.nodes[0],i=s.find(e=>e.variantId===n.id),a=(null==i?void 0:i.quantity)||0;return(0,r.jsx)(nZ,{fullWidth:!0,hideRadio:!0,children:(0,r.jsx)(p.W2,{children:(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:2,$alignSelf:"center",children:(0,r.jsx)(nQ,{children:(0,r.jsx)("img",{src:e.featuredImage.url,alt:""})})}),(0,r.jsxs)(p.JX,{xs:8,children:[(0,r.jsx)(u.nv,{content:e.title,weight:"semibold",typo:"paragraphLG"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(nD,{children:[(0,r.jsx)(nR,{onClick:()=>{l({id:n.id,title:e.title,amount:n.price.amount,quantity:-1,cart:s})},children:(0,r.jsx)(y.Z,{name:"minus"})}),(0,r.jsx)(nL,{children:a}),(0,r.jsx)(nR,{onClick:()=>{l({id:n.id,title:e.title,amount:n.price.amount,image:e.images.edges[0].node,quantity:1,cart:s})},children:(0,r.jsx)(y.Z,{name:"plus"})})]})]}),(0,r.jsx)(p.JX,{xs:2,children:(0,r.jsxs)(p.kC,{alignItems:"flex-end",$direction:"column",children:[(null==n?void 0:n.compareAtPrice)&&Number(n.compareAtPrice.amount)!==Number(n.price.amount)?(0,r.jsx)(nq,{children:(0,r.jsx)(u.nv,{typo:"paragraphSM",content:(0,tp.T4)({amount:n.compareAtPrice.amount,currencyCode:"EUR"})})}):null,(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",content:(0,tp.T4)({amount:n.price.amount,currencyCode:"EUR"})})]})})]})})},t)}),"idle"===a?(0,r.jsxs)("div",{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(m.Z,{label:"Avanti",handleClick:()=>n(i+1),iconEnd:"arrow-right",variant:"primary"})]}):null]})},CheckoutConfigurator_ConfiguratorCartMerger=e=>{let{state:t,componentIndex:n,handleGoToNextStep:i,handleCartMerge:l=()=>{},cart:a}=e,o=t.steps[n].status,s=t.wizard.mergeCart;return(0,r.jsx)(p.kC,{$direction:"column",children:"filled"===o?(0,r.jsx)(r.Fragment,{children:s?(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"Pagherai i libri insieme al corso"}):(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"Pagherai i libri in seguito"})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"Abbiamo notato che hai aggiunto questi libri al carrello, clicca procedi per acquistarli subito o in seguito per acquistarli pi\xf9 tardi"}),(0,r.jsx)(p.Nz,{xs:2}),a.map(e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(nF,{children:(0,r.jsx)("img",{src:e.merchandise.image.url})}),(0,r.jsx)(u.nv,{content:"".concat(e.merchandise.product.title),weight:"semibold"})]}),(0,r.jsx)(p.Nz,{xs:1})]})),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{$direction:"row",gap:2,alignItems:{xs:"center",lg:"center"},children:[(0,r.jsx)(m.Z,{label:"Procedi",handleClick:()=>{l(!0),i(n+1)}}),(0,r.jsx)(m.Z,{label:"In seguito",handleClick:()=>{l(!1),i(n+1)},variant:"tertiary"})]})]})})};function Steps_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  height: 2px;\n  background-color: black;\n  display: flex;\n  justify-content: space-between;\n  position: relative;\n\n  &::before,\n  &::after {\n    content: '';\n    position: absolute;\n    background-color: ",";\n  }\n  \n  &:before {\n    height: 2px;\n    width: ",";\n  }\n"]);return Steps_styles_templateObject=function(){return e},e}function Steps_styles_templateObject1(){let e=(0,h._)(["\n  position: absolute;\n  left: 50%;\n  transform: translateX(-50%);\n  bottom: ",";\n  white-space: nowrap;\n  opacity: 0;\n  transition: all .2s ease-in 0s;\n  color: ",";\n\n  ","\n"]);
1return Steps_styles_templateObject1=function(){return e},e}function Steps_styles_templateObject2(){let e=(0,h._)(["\n  position: relative;\n  bottom: ",";\n  color: ",";\n\n  > * {\n    position: absolute;\n    left: 50%;\n    transform: translateX(-50%);\n    white-space: nowrap;\n  }\n"]);return Steps_styles_templateObject2=function(){return e},e}function Steps_styles_templateObject3(){let e=(0,h._)(["\n    border: 2px solid ",";\n    background-color: ",";\n    transform: translate(",", ",");\n\n    i {\n      display: block;\n      color: ",";\n    }\n  "]);return Steps_styles_templateObject3=function(){return e},e}function Steps_styles_templateObject4(){let e=(0,h._)(["\n    background-color: ",";\n    transform: translate(",", ",");\n\n    i {\n      display: none;\n      color: ",";\n    }\n\n    "," {\n      opacity: 1;\n      color: ",";\n    }\n  "]);return Steps_styles_templateObject4=function(){return e},e}function Steps_styles_templateObject5(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  padding-top: ",";\n  border-radius: 50%;\n  position: absolute;\n  left: ",";\n  transition: background-color .2s ease-in 0s;\n  transform: translate(",", ",");\n  background-color: ",";\n  display: flex;\n  justify-content: center;\n\n  i {\n    display: none;\n    font-size: ",";\n  }\n\n  ","\n\n  ","\n"]);return Steps_styles_templateObject5=function(){return e},e}function Steps_styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n\n  "," {\n    background-color: ",";\n  }\n"]);return Steps_styles_templateObject6=function(){return e},e}let rf=g.ZP.div.withConfig({componentId:"sc-cf312685-0"})(Steps_styles_templateObject(),e=>{let{theme:t}=e;return t.colors.status.success.default},e=>{let{currentStep:t,stepUnit:n}=e;return"".concat(n*t,"%")}),rb=g.ZP.div.withConfig({componentId:"sc-cf312685-1"})(Steps_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(-24)},e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.mediaQuery.xl("\n    opacity: 1;\n    bottom: ".concat(t.rem(-32),";\n  "))});g.ZP.div.withConfig({componentId:"sc-cf312685-2"})(Steps_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(-24)},e=>{let{theme:t,colorScheme:n,active:r}=e;return r?t.colorScheme["".concat(n)].surface.textPrimary:t.colorScheme["".concat(n)].button.disabledText});let ry=g.ZP.div.withConfig({componentId:"sc-cf312685-3"})(Steps_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(14)},e=>{let{theme:t}=e;return t.rem(14)},e=>{let{theme:t}=e;return t.rem(0)},e=>{let{position:t}=e;return"".concat(t,"%")},e=>{let{theme:t}=e;return t.rem(-7)},e=>{let{theme:t}=e;return t.rem(-7)},e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(10)},e=>{let{theme:t,filled:n}=e;return n&&(0,g.iv)(Steps_styles_templateObject3(),t.colors.status.success.default,t.colors.status.success.default,t.rem(-7),t.rem(-7),t.colors.grayscale.white)},e=>{let{theme:t,active:n}=e;return n&&(0,g.iv)(Steps_styles_templateObject4(),t.colors.grayscale.white,t.rem(-7),t.rem(-7),t.colors.grayscale.white,rb,t.colorScheme.white.surface.textPrimary)}),r_=g.ZP.div.withConfig({componentId:"sc-cf312685-4"})(Steps_styles_templateObject6(),rf,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderSecondary});var atoms_Steps=e=>{let{type:t,currentStep:n}=e,{selectedColorScheme:l}=(0,i.useContext)(s.x),a=n-1,o={course:["Accesso","Dati","Riepilogo"],book:["Accesso","Dati","Riepilogo"]};return(0,r.jsx)(r_,{colorScheme:l,children:(0,r.jsx)(rf,{stepUnit:50,currentStep:a,children:(e=>{let t=[];for(let n=0;n<3;n++)t.push((0,r.jsxs)(ry,{position:50*n,active:n===a,filled:n<=a,children:[(0,r.jsx)(y.Z,{name:"check"}),(0,r.jsx)(rb,{children:(0,r.jsx)(u.nv,{content:o["".concat(e)][n],fontPrimary:!0,weight:"semibold"})})]},n));return t})(t)})})},rx=n(15121);function ModalAbandonCart_styles_templateObject(){let e=(0,h._)(["\n  width: 90%;\n  max-width: ",";\n  padding: ",";\n  position: relative;\n  background-color: ",";\n  border-radius: ",";\n  z-index: 100;\n"]);
1return ModalAbandonCart_styles_templateObject=function(){return e},e}function ModalAbandonCart_styles_templateObject1(){let e=(0,h._)(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  margin: ",";\n  cursor: pointer;\n\n  i {\n    font-size: ",";\n  }\n"]);return ModalAbandonCart_styles_templateObject1=function(){return e},e}function ModalAbandonCart_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  text-align: center;\n"]);return ModalAbandonCart_styles_templateObject2=function(){return e},e}function ModalAbandonCart_styles_templateObject3(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  align-items: center;\n\n  ","\n"]);return ModalAbandonCart_styles_templateObject3=function(){return e},e}let rj=g.ZP.div.withConfig({componentId:"sc-da9f3b14-0"})(ModalAbandonCart_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(498)},e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(8)}),rv=g.ZP.div.withConfig({componentId:"sc-da9f3b14-1"})(ModalAbandonCart_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(24)}),rC=g.ZP.div.withConfig({componentId:"sc-da9f3b14-2"})(ModalAbandonCart_styles_templateObject2()),rw=g.ZP.div.withConfig({componentId:"sc-da9f3b14-3"})(ModalAbandonCart_styles_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: row;\n    justify-content: center;\n    gap: ".concat(t.rem(8),"\n  "))});var Modal_ModalAbandonCart=e=>{let{callback:t=()=>{},title:n="Vuoi ripensarci?",text:i="Se lasci questa pagina, i progressi del checkout saranno persi. Vuoi davvero uscire?"}=e,{closeModal:l}=(0,b.dd)();return(0,r.jsxs)(rj,{children:[(0,r.jsx)(rv,{children:(0,r.jsx)(y.Z,{name:"x-mark",onClick:()=>l()})}),(0,r.jsxs)(rC,{children:[(0,r.jsx)(u.X6,{content:n,weight:"semibold",fontSecondary:!0,typo:"headingMD"}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{content:i,typo:"paragraphMD"})]}),(0,r.jsx)(p.Nz,{xs:5}),(0,r.jsxs)(rw,{children:[(0,r.jsx)(m.Z,{handleClick:()=>{t(),l()},label:"Lascia il checkout",variant:"tertiary"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(m.Z,{handleClick:()=>l(),inheritedColorScheme:"dark",label:"Resta al Checkout"})]})]})},rO=n(85356),rS=n(25657),rk=n.n(rS);function Cart_styles_templateObject(){let e=(0,h._)(["\n  padding: ",";\n  border-bottom: 1px solid ",";\n  background-color: ",";\n"]);return Cart_styles_templateObject=function(){return e},e}function Cart_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  min-height: ",";\n  padding: ",";\n  border-top: 1px solid ",";\n  background-color: ",";\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  display: flex;\n  flex-direction: column;\n"]);return Cart_styles_templateObject1=function(){return e},e}function Cart_styles_templateObject2(){let e=(0,h._)(["\n  height: 100%;\n  padding: ",";\n  overflow-y: scroll;\n"]);return Cart_styles_templateObject2=function(){return e},e}function Cart_styles_templateObject3(){let e=(0,h._)(["\n  width: 100%;\n  height: 1px;\n  background-color: ",";\n"]);return Cart_styles_templateObject3=function(){return e},e}function Cart_styles_templateObject4(){let e=(0,h._)(["\n    padding-right: ",";\n  "]);return Cart_styles_templateObject4=function(){return e},e}function Cart_styles_templateObject5(){let e=(0,h._)(["\n  display: flex;\n  position: relative;\n\n  ","\n"]);return Cart_styles_templateObject5=function(){return e},e}function Cart_styles_templateObject6(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  aspect-ratio: 1 / 1;\n  position: relative;\n  margin-right: ",";\n  border-radius: ",";\n  overflow: hidden;\n\n  + div {\n    width: calc(100% - "," - ",");\n  }\n  \n  img {\n    object-fit: contain;\n  }\n"]);return Cart_styles_templateObject6=function(){return e},e}function Cart_styles_templateObject7(){let e=(0,h._)(["\n  padding-left: ",";\n  padding-right: ",";\n  display: flex;\n  flex-direction: column;\n"]);
1return Cart_styles_templateObject7=function(){return e},e}function Cart_styles_templateObject8(){let e=(0,h._)(["\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  border-left: 1px solid ",";\n  position: relative;\n"]);return Cart_styles_templateObject8=function(){return e},e}function Cart_styles_templateObject9(){let e=(0,h._)(["\n  width: ",";\n"]);return Cart_styles_templateObject9=function(){return e},e}function Cart_styles_templateObject10(){let e=(0,h._)(["\n  color: ",";\n  text-decoration: line-through;\n  margin-right: ",";\n  position: relative;\n  ",";\n  \n  &::before {\n    content: '';\n    width: 100%;\n    height: ",";\n    position: absolute;\n    background-color: ",";\n    right: ",";\n    height: 100%;\n    width: ",";\n  }\n"]);return Cart_styles_templateObject10=function(){return e},e}function Cart_styles_templateObject11(){let e=(0,h._)(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  cursor: pointer;\n\n  button {\n    appearance: none;\n    border: none;\n    background: none;\n    padding: 0;\n    cursor: pointer;\n  }\n\n  i {\n    pointer-events: none;\n    font-size: ",";\n  }\n"]);return Cart_styles_templateObject11=function(){return e},e}function Cart_styles_templateObject12(){let e=(0,h._)(["\n  position: absolute;\n  right: 0;\n  top: 0;\n  cursor: pointer;\n\n  i {\n    font-size: ",";\n  }\n"]);return Cart_styles_templateObject12=function(){return e},e}function Cart_styles_templateObject13(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  aspect-ratio: 1 / 1;\n  position: relative;\n  margin-right: ",";\n\n  img {\n    width: 100%;\n    height: 100%;\n    object-fit: contain;\n  }\n"]);return Cart_styles_templateObject13=function(){return e},e}function Cart_styles_templateObject14(){let e=(0,h._)(["\n  height: ",";\n  padding: ",";\n  margin-left: ",";\n  background-color: #E5673E;\n  color: ",";\n  display: flex;\n  align-items: center;\n  border-radius: ",";\n"]);return Cart_styles_templateObject14=function(){return e},e}let rP=g.ZP.div.withConfig({componentId:"sc-2f81d948-0"})(Cart_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(16,24)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor}),rI=g.ZP.div.withConfig({componentId:"sc-2f81d948-1"})(Cart_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(252)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor}),rT=g.ZP.div.withConfig({componentId:"sc-2f81d948-2"})(Cart_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(40,24,294)}),rZ=g.ZP.div.withConfig({componentId:"sc-2f81d948-3"})(Cart_styles_templateObject3(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary}),rz=g.ZP.div.withConfig({componentId:"sc-2f81d948-4"})(Cart_styles_templateObject5(),e=>{let{withXmark:t,theme:n}=e;return t&&(0,g.iv)(Cart_styles_templateObject4(),n.rem(32))}),rF=g.ZP.div.withConfig({componentId:"sc-2f81d948-5"})(Cart_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(24)}),rE=g.ZP.div.withConfig({componentId:"sc-2f81d948-6"})(Cart_styles_templateObject7(),e=>{let{theme:t}=e;return t.rem(104)},e=>{let{theme:t}=e;return t.rem(24)}),rM=g.ZP.div.withConfig({componentId:"sc-2f81d948-7"})(Cart_styles_templateObject8(),e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderSecondary}),rA=g.ZP.div.withConfig({componentId:"sc-2f81d948-8"})(Cart_styles_templateObject9(),e=>{let{theme:t}=e;return t.rem(80)}),rB=g.ZP.div.withConfig({componentId:"sc-2f81d948-9"})(Cart_styles_templateObject10(),e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(16)},rk().style,e=>{let{theme:t}=e;return t.rem(1)},e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(-9)},e=>{let{theme:t}=e;return t.rem(1)}),rN=g.ZP.div.withConfig({componentId:"sc-2f81d948-10"}
1)(Cart_styles_templateObject11(),e=>{let{theme:t}=e;return t.rem(24)}),rD=g.ZP.div.withConfig({componentId:"sc-2f81d948-11"})(Cart_styles_templateObject12(),e=>{let{theme:t}=e;return t.rem(24)});g.ZP.div.withConfig({componentId:"sc-2f81d948-12"})(Cart_styles_templateObject13(),e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(16)});let rR=g.ZP.div.withConfig({componentId:"sc-2f81d948-13"})(Cart_styles_templateObject14(),e=>{let{theme:t}=e;return t.rem(30)},e=>{let{theme:t}=e;return t.rem(0,16)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.colors.grayscale.white},e=>{let{theme:t}=e;return t.rem(50)}),Cart_cleanTitle=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(" - ").slice(1).join(" - ")};var molecules_Cart=e=>{var t,n,l,a,o,c,m,h;let{state:g,cartRecap:f,product:_,supportMaterial:x=[],upsellCart:j=[],checkoutType:v="course",includedBooks:C=!1,tentativeCheckout:w,hasAdditionalMaterial:O,bookGifts:S=[]}=e,{selectedColorScheme:k}=(0,i.useContext)(s.x),{sendGTM:I}=(0,P.rS)(),{lines:T,cost:Z,status:z,linesRemove:F}=(0,tu.jD)(),E=(0,ec.useRouter)(),{showModal:M}=(0,b.dd)(),{shipping:A,vat:B,discounts:N}=f,D=g.wizard.mergeCart,R=!!g.wizard.selectedVariant&&g.wizard.selectedVariant[0],L=!!R&&{...R,...(0,n3.iy)(R.selectedOptions)},Q=0,q=0,H=0,V=(null==T?void 0:T.length)?T.reduce((e,t)=>{var n,r,i,l;let a=Number(null!==(i=null===(r=t.merchandise)||void 0===r?void 0:null===(n=r.compareAtPrice)||void 0===n?void 0:n.amount)&&void 0!==i?i:0);return e+a*(null!==(l=t.quantity)&&void 0!==l?l:1)},0):0,X=0,U=0,G=null!=C&&!!C.title&&(null==C?void 0:C.title),W=null!=C&&null!==(t=C.shopifyProduct)&&void 0!==t&&!!t.title&&(null==C?void 0:null===(n=C.shopifyProduct)||void 0===n?void 0:n.title),J={src:(null==C?void 0:null===(a=C.shopifyProduct)||void 0===a?void 0:null===(l=a.image)||void 0===l?void 0:l.src)?null==C?void 0:null===(c=C.shopifyProduct)||void 0===c?void 0:null===(o=c.image)||void 0===o?void 0:o.src:(null==C?void 0:null===(m=C.image)||void 0===m?void 0:m.url)?C.image.url:null,alt:W||""};if("course"===v)H=N?N.reduce((e,t)=>e+t.amount,0):0,U=N.length?null===(h=N.find(e=>"WITH_COURSE_BOOK"===e.id))||void 0===h?void 0:h.amount:0,q+=+f.subtotal,Q+=q+A+B-(U||0),D&&(Q+=+Z.totalAmount.amount);else{let e=Z?Number(Z.subtotalAmount.amount):0;e>0&&e<20&&(X=4.9),q+=e,Q+=e+X}let handleRemoveLine=e=>{let t=T.find(t=>t.merchandise.id===e);if(!t)return;let removeLine=()=>{I({...(0,tf.bX)(t)}),F(t.id)};T.length<=1&&"book"===v?M(Modal_ModalAbandonCart,{title:"Vuoi ripensarci?",text:"Se lasci questa pagina, i progressi del checkout saranno persi. Vuoi davvero uscire?",callback:removeLine,foreground:!0}):removeLine()};return(0,i.useEffect)(()=>{0!==T.length||"idle"!==z||"book"!==v||w||E.back()},[T]),(0,r.jsxs)(rM,{colorScheme:k,children:[(0,r.jsx)(rP,{children:(0,r.jsx)(u.nv,{typo:"paragraphLG",fontSecondary:!0,children:"Riepilogo Ordine"})}),(0,r.jsxs)(rT,{children:["course"===v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(rz,{withXmark:!0,children:[(0,r.jsx)(rD,{onClick:()=>M(Modal_ModalAbandonCart,{title:"Vuoi ripensarci?",text:"Se lasci questa pagina, i progressi del checkout saranno persi. Vuoi davvero uscire?",callback:()=>E.back(),foreground:!0}),children:(0,r.jsx)(y.Z,{name:"x-mark"})}),_.featuredImage?(0,r.jsx)(rF,{children:(0,r.jsx)(d(),{src:_.featuredImage.url,alt:_.title,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,fontSecondary:!0,content:_.title,weight:"semibold"}),(0,r.jsx)(p.Nz,{xs:1}),g.wizard.location&&g.wizard.step>=2?(0,r.jsx)(u.nv,{typo:"paragraphXS",textPrimary:!0,fontSecondary:!0,content:"Online"!==g.wizard.location?"In aula, ".concat(g.wizard.location):"Online"}):null,L&&g.wizard.step>=3?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphXS",textPrimary:!0,fontSecondary:!0,content:(0,tp.Oh)(L.startDate)}),(0,r.jsx)(p.Nz,{xs:1}),L.isEarlyBird&&L.earlyBirdPrice&&L.endPromoDate&&(0,n5.y)({start:new Date,end:new Date(L.endPromoDate)})>=0?(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(rB,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",fontSecondary:!0,content:(0,tp.T4)({amount:L.price.amount,currencyCode:"EUR"})})}),(0,r.jsx)(u.X6,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,fontSecondary:!0,content:(0,tp.T4)({amount:L.earlyBirdPrice,currencyCode:"EUR"})}),!1===L.hideTagEarlyBird&&(0,r.jsx)(rR,{children:(0,r.jsx)(u.nv,{content:"EARLY BIRD",typo:"paragraphXS",fontSecondary:!0,weight:"semibold"})})]}):(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,weight:"semibold",fontSecondary:!0,content:(0,tp.T4)({amount:q,currencyCode:"EUR"})})]}):null]})]}),(0,r.jsx)(p.Nz,{xs:3})]}):null,"book"===v&&T&&T.length>0?T.map((e,t)=>{var n,i,l,a;return(0,r.jsxs)(r.Fragment,{children:[t>0?(0,r.jsx)(p.Nz,{xs:2}):null,(0,r.jsx)(rz,{withXmark:!0,children:(0,r.jsxs)(rO.M9,{line:e,children:[(null===(n=e.merchandise.image)||void 0===n?void 0:n.url)?(0,r.jsx)(rF,{children:(0,r.jsx)(d(),{src:e.merchandise.image.url,alt:e.merchandise.product.title,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",weight:"semibold",textPrimary:!0,fontSecondary:!0,children:e.merchandise.product.title}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(null===(i=e.merchandise.compareAtPrice)||void 0===i?void 0:i.amount)?(0,r.jsx)(rB,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",fontSecondary:!0,content:(0,tp.T4)({amount:null===(l=e.merchandise.compareAtPrice)||void 0===l?void 0:l.amount,currencyCode:(null===(a=e.merchandise.compareAtPrice)||void 0===a?void 0:a.currencyCode)||"EUR"})})}):null,(0,r.jsx)(u.X6,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,fontSecondary:!0,content:(0,tp.T4)({amount:e.merchandise.price.amount,currencyCode:e.merchandise.price.currencyCode})})]}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(rA,{children:(0,r.jsx)(rx.Z,{quantity:e.quantity})})]}),(0,r.jsx)(rN,{onClick:()=>handleRemoveLine(e.merchandise.id),children:(0,r.jsx)(y.Z,{name:"x-mark"})})]})},t),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(rZ,{}),(0,r.jsx)(p.Nz,{xs:2})]})}):null,S&&S.length>0&&T.length>0?(0,r.jsxs)(rE,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,fontSecondary:!0,content:"Prodotti in omaggio"}),(0,r.jsx)(p.Nz,{xs:2}),S.map((e,t)=>{var n,i,l,a,o,s,c,m,h,g;let f=(null===(n=e.shopifyProduct)||void 0===n?void 0:n.title)?null===(i=e.shopifyProduct)||void 0===i?void 0:i.title:!!e.abstract&&e.abstract,b={src:(null===(a=e.shopifyProduct)||void 0===a?void 0:null===(l=a.image)||void 0===l?void 0:l.src)?null===(s=e.shopifyProduct)||void 0===s?void 0:null===(o=s.image)||void 0===o?void 0:o.src:null!==(c=e.image)&&void 0!==c&&!!c.url&&(null===(m=e.image)||void 0===m?void 0:m.url),alt:(null===(h=e.shopifyProduct)||void 0===h?void 0:h.title)?null===(g=e.shopifyProduct)||void 0===g?void 0:g.title:e.title?e.title:"Prodotti in omaggio"};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(rz,{supportMaterial:!0,children:[b.src?(0,r.jsx)(rF,{children:(0,r.jsx)(d(),{...b,fill:!0})}):null,(0,r.jsxs)("div",{style:{paddingTop:"0.5rem"},children:[e.title?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",textPrimary:!0,fontSecondary:!0,weight:"semibold",children:Cart_cleanTitle(e.title)}),(0,r.jsx)(p.Nz,{xs:2})]}):null,f?(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,fontSecondary:!0,weight:"semibold",children:Cart_cleanTitle(f)}):null]})]},t),(0,r.jsx)(p.Nz,{xs:4})]})})]}):null,x&&x.length>0?(0,r.jsxs)(rE,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,fontSecondary:!0,content:"Materiali in dotazione"}),(0,r.jsx)(p.Nz,{xs:2}),x.map((e,t)=>{var n,i,l,a,o,s,c,m,h,g;let f=!!Cart_cleanTitle(null===(n=e.shopifyProduct)||void 0===n?void 0:n.title)&&(null===(i=e.shopifyProduct)||void 0===i?void 0:i.title),b={src:(null===(a=e.shopifyProduct)||void 0===a?void 0:null===(l=a.image)||void 0===l?void 0:l.src)?null===(s=e.shopifyProduct)||void 0===s?void 0:null===(o=s.image)||void 0===o?void 0:o.src:null!==(c=e.image)&&void 0!==c&&!!c.url&&(null===(m=e.image)||void 0===m?void 0:m.url),alt:(null===(h=e.shopifyProduct)||void 0===h?void 0:h.title)?null===(g=e.shopifyProduct)||void 0===g?void 0:g.title:Cart_cleanTitle(e.title)?Cart_cleanTitle(e.title):"Materiali di supporto"};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(rz,{supportMaterial:!0,children:[b.src?(0,r.jsx)(rF,{children:(0,r.jsx)(d(),{...b,fill:!0})}):null,(0,r.jsxs)("div",{style:{paddingTop:"0.5rem"},children:[e.title?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",textPrimary:!0,fontSecondary:!0,weight:"semibold",children:Cart_cleanTitle(e.title)}),(0,r.jsx)(p.Nz,{xs:2})]}):null,f?(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,fontSecondary:!0,weight:"semibold",children:Cart_cleanTitle(f)}):null]})]},t),(0,r.jsx)(p.Nz,{xs:4})]})})]}):null,(0,r.jsx)(p.Nz,{xs:2}),C&&"Si"===g.wizard.withCourseBooks?(0,r.jsxs)(rE,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,fontSecondary:!0,content:"Libri in dotazione"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[J.src?(0,r.jsx)(rF,{children:(0,r.jsx)(d(),{...J,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",textPrimary:!0}),(0,r.jsx)(p.Nz,{xs:1}),G?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphXD",textPrimary:!0,content:G}),(0,r.jsx)(p.Nz,{xs:1})]}):null,W?(0,r.jsx)(u.nv,{typo:"paragraphXD",textPrimary:!0,content:Cart_cleanTitle(W)}):null]})]})]}):null,(0,r.jsx)(p.Nz,{xs:2}),D&&T.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(rZ,{}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{typo:"paragraphLG",weight:"semibold",textPrimary:!0,fontSecondary:!0,children:"Carrello libri"}),(0,r.jsx)(p.Nz,{xs:2}),T.map((e,t)=>{var n,i,l,a,o;return(0,r.jsxs)(r.Fragment,{children:[t>0?(0,r.jsx)(p.Nz,{xs:2}):null,(0,r.jsx)(rz,{withXmark:!0,children:(0,r.jsxs)(rO.M9,{line:e,children:[e.merchandise.image?(0,r.jsx)(rF,{children:(0,r.jsx)(d(),{src:e.merchandise.image.url,alt:e.merchandise.product.title,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1200px) 50vw, 33vw"})}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",weight:"semibold",textPrimary:!0,fontSecondary:!0,children:e.merchandise.product.title}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(null===(n=e.merchandise)||void 0===n?void 0:n.compareAtPrice)?(0,r.jsx)(rB,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",fontSecondary:!0,content:(0,tp.T4)({amount:null===(l=e.merchandise)||void 0===l?void 0:null===(i=l.compareAtPrice)||void 0===i?void 0:i.amount,currencyCode:null===(o=e.merchandise)||void 0===o?void 0:null===(a=o.compareAtPrice)||void 0===a?void 0:a.currencyCode})})}):null,(0,r.jsx)(u.X6,{typo:"paragraphMD",weight:"semibold",textPrimary:!0,fontSecondary:!0,content:(0,tp.T4)({amount:e.merchandise.price.amount,currencyCode:e.merchandise.price.currencyCode})})]}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(rA,{children:(0,r.jsx)(rx.Z,{quantity:e.quantity})})]}),(0,r.jsx)(rN,{onClick:()=>handleRemoveLine(e.merchandise.id),children:(0,r.jsx)(y.Z,{name:"x-mark"})})]})},t),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(rZ,{})]})}),(0,r.jsx)(p.Nz,{xs:2})]}):null,j&&j.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",weight:"semibold",textPrimary:!0,fontSecondary:!0}),(0,r.jsx)(rZ,{}),(0,r.jsx)(p.Nz,{xs:2}),j.map((e,t)=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(rz,{children:[e.image?(0,r.jsx)(rF,{children:(0,r.jsx)(d(),{src:"".concat(e.image.url),alt:e.title,width:80,height:80})}):null,(0,r.jsxs)("div",{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,weight:"semibold",fontSecondary:!0,children:e.title}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:"Quantit\xe0: ".concat(e.quantity),fontSecondary:!0}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,content:new Intl.NumberFormat("it-IT",{style:"currency",currency:"EUR"}).format(Number(e.amount)),fontSecondary:!0})]})]},t),(0,r.jsx)(p.Nz,{xs:2}),t<j.length-1?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(rZ,{}),(0,r.jsx)(p.Nz,{xs:2})]}):null]}))]}):null]}),(0,r.jsxs)(rI,{children:["course"===v?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(p.kC,{justifyContent:"space-between",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:"Prezzo di listino"}),C&&"Si"!==g.wizard.withCourseBooks?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,content:(0,tp.T4)({amount:q+H-U,currencyCode:"EUR"})})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,content:(0,tp.T4)({amount:q+H,currencyCode:"EUR"})})})]})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{justifyContent:"space-between",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:"Prezzo di copertina"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,content:(0,tp.T4)({amount:V,currencyCode:"EUR"})})]}),V-q>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{justifyContent:"space-between",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:"Sconto"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,content:"- ".concat((0,tp.T4)({amount:V-q,currencyCode:"EUR"})),fontSecondary:!0})]}),(0,r.jsx)(p.Nz,{xs:2})]}):null]}),(0,r.jsx)("br",{}),B>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{justifyContent:"space-between",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:"IVA inclusa"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:B})]}),(0,r.jsx)("br",{})]}):null,D&&T.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{justifyContent:"space-between",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:"Carrello libri"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:(0,tp.T4)(Z.totalAmount)})]}),(0,r.jsx)("br",{})]}):null,H>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{justifyContent:"space-between",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:"Sconti applicati"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,content:"- ".concat((0,tp.T4)({amount:H,currencyCode:"EUR"})),fontSecondary:!0})]}),(0,r.jsx)(p.Nz,{xs:2})]}):null,j.length||D||"course"!==v||"course"===v&&"Si"===g.wizard.withCourseBooks&&O||x&&x.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.kC,{justifyContent:"space-between",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:"Spedizione"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,fontSecondary:!0,children:X>0?"".concat(X.toFixed(2)," €"):"Gratuita"})]}),(0,r.jsx)(p.Nz,{xs:2})]}):null,(0,r.jsx)(rZ,{}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)("div",{style:{marginTop:"auto"},children:(0,r.jsxs)(p.kC,{$direction:"column",fullWidth:!0,children:[(0,r.jsxs)(p.kC,{justifyContent:"space-between",alignItems:"center",fullWidth:!0,children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,weight:"semibold",fontSecondary:!0,children:"Totale"}),(0,r.jsx)(u.nv,{typo:"headingMD",weight:"semibold",content:(0,tp.T4)({amount:Q,currencyCode:"EUR"}),fontSecondary:!0})]}),(0,r.jsx)(p.Nz,{xs:2}),"books"===v?(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,center:!0,content:"Se hai un codice coupon inseriscilo in fase di pagamento. I coupon non sono cumulabili."}):null]})})]})]})},rL=[{title:"Indirizzo mail dell'ordine",recapTitle:"Indirizzo mail dell'ordine",component:"ConfiguratorAuth",progressGroup:1},{title:"Inserisci i tuoi dati",recapTitle:"Dati dell'utente e di spedizione",component:"ConfiguratorFormData",progressGroup:2}],rQ=[{title:"Indirizzo mail dell'ordine",recapTitle:"Indirizzo mail dell'ordine",component:"ConfiguratorAuth",progressGroup:1},{title:"Come vuoi seguire il corso",recapTitle:"Seguir\xf2 il corso",component:"ConfiguratorParticipationMode",progres
1sGroup:1},{title:"Scegli la data di partenza del corso (se ci sono pi\xf9 opzioni disponibili)",recapTitle:"Partenza del corso",component:"ConfiguratorDate",progressGroup:1},{title:"Libri in dotazione al corso",recapTitle:"Libri in dotazione al corso",component:"ConfiguratorAdditionalMaterial",progressGroup:1},{title:"Potrebbe interessarti anche",recapTitle:"Potrebbe interessarti anche",component:"ConfiguratorUpsell",progressGroup:1},{title:"Carrello libri",recapTitle:"Carrello libri",component:"ConfiguratorCartMerger",progressGroup:1},{title:"Inserisci i dati del corsista",recapTitle:"Dati del corsista e di spedizione",component:"ConfiguratorFormData",progressGroup:2}];let rq={email:"",coursistFirstName:"",coursistLastName:"",coursistAddress:"",coursistAddressNumber:"",coursistCountry:"",coursistProvince:"",coursistCity:"",coursistZip:"",coursistFiscalCode:"",coursistPhone:"",coursistEmail:"",differentBilling:!1,isCompany:!1,company:"",vatNumber:"",companyFiscalCode:"",sdi:"",pec:"",billingFirstName:"",billingLastName:"",billingFiscalCode:"",billingAddress:"",billingAddressNumber:"",billingCountry:"",billingProvince:"",billingCity:"",billingZip:"",differentShipping:!1,shippingFirstName:"",shippingLastName:"",shippingAddress:"",shippingAddressNumber:"",shippingCountry:"",shippingProvince:"",shippingCity:"",shippingZip:"",shippingPhone:"",pecOrSdiEntered:!1,bypassCoursistFiscalCode:!1,bypassBillingFiscalCode:!1,bypassVatNumber:!1},rH={email:"",coursistFirstName:"",coursistLastName:"",coursistAddress:"",coursistAddressNumber:"",coursistCountry:"",coursistProvince:"",coursistCity:"",coursistZip:"",coursistFiscalCode:"",coursistPhone:"",differentBilling:!1,isCompany:!1,company:"",vatNumber:"",companyFiscalCode:"",sdi:"",pec:"",billingFirstName:"",billingLastName:"",billingFiscalCode:"",billingAddress:"",billingAddressNumber:"",billingCountry:"",billingProvince:"",billingCity:"",billingZip:"",differentShipping:!1,shippingFirstName:"",shippingLastName:"",shippingAddress:"",shippingAddressNumber:"",shippingCountry:"",shippingProvince:"",shippingCity:"",shippingZip:"",shippingPhone:"",pecOrSdiEntered:!1,bypassCoursistFiscalCode:!1,bypassBillingFiscalCode:!1,bypassVatNumber:!1,customPayment:"shopify",cartaCultura:"",cartaDocente:"",termsPrivacyCheckbox:!1,marketing:!1},rV=/^(\+[1-9]{1}[0-9]{3,14})?([0-9]{9,14})$/,rX=/^(?:[A-Z][AEIOU][AEIOUX]|[AEIOU]X{2}|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}(?:[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[15MR][\dLMNP-V]|[26NS][0-8LMNP-U])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM]|[AC-EHLMPR-T][26NS][9V])|(?:[02468LNQSU][048LQU]|[13579MPRTV][26NS])B[26NS][9V])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[1-9MNP-V][\dLMNP-V]|[0L][1-9MNP-V]))[A-Z]$/i,rU=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,rG=S.object({email:S.string().email("Inserisci un indirizzo email valido").test("email","Inserisci un indirizzo email valido",e=>!!e&&rU.test(e)).required("Compila il campo"),coursistFirstName:S.string().required("Compila il campo").max(20,"Massimo 20 caratteri"),coursistLastName:S.string().required("Compila il campo").max(20,"Massimo 20 caratteri"),coursistAddress:S.string().required("Compila il campo"),coursistAddressNumber:S.string().required("Compila il campo"),coursistCountry:S.string().required("Compila il campo"),coursistProvince:S.string().required("Compila il campo"),coursistCity:S.string().required("Compila il campo"),coursistZip:S.string().required("Compila il campo"),coursistFiscalCode:S.string().when("bypassCoursistFiscalCode",{is:!1,then:()=>S.string().required("Compila il campo").trim().matches(rX,"Inserisci il codice fiscale corretto"),otherwise:()=>S.string().required("Insert your tax code")}),coursistPhone:S.string().required("Compila il campo").matches(rV,"Controlla il numero di telefono"),coursistEmail:S.string().email("Inserisci un indirizzo email valido").test("email","Inserisci un indirizzo email valido",e=>!!e&&rU.test(e)).required("Compila il campo"),differentBilling:S.bool(),isCompany:S.bool(),company:S.string().when(["isCompany","differentBilling"],{is:!0,then:()=>S.string().required("Compila il campo")}),vatNumber:S.string().when(["isCompany","differentBilling","bypassVatNumber"],e=>{let[t,n,r]=e;return t&&n&&!r?S.string().required("Compila il campo").matches(/^[0-9]{11}$/i,"Inserisci la partita IVA corretta"):t&&n&&r?S.string().required("Insert your tax code"):void 0}),companyFiscalCode:S.string().when(["isCompany","differentBilling"],{is:!0,then:()=>S.string().trim().matches(rX,"Inserisci il codice fiscale corretto")}),sdi:S.string().when(["isCompany","differentBilling","pecOrSdiEntered"],e=>{let[t,n,r]=e;return t&&n&&!r?S.string().required("Compila il campo").matches(/^[a-zA-Z0-9]{7}$/i,"Inserisci il codice SDI corretto"):t&&n&&r?S.string().notRequired().matches(/^[a-zA-Z0-9]{7}$/i,"Inserisci il codice SDI corretto"):void 0}),pec:S.string().when(["isCompany","differentBilling","pecOrSdiEntered"],e=>{let[t,n,r]=e;return t&&n&&!r?S.string().required("Compila il campo").test("pec","Inserisci un indirizzo email valido",e=>!!e&&rU.test(e)):t&&n&&r?S.string().notRequired().matches(rU,"Inserisci un indirizzo email valido"):void 0}),billingFirstName:S.string().when(["isCompany","differentBilling"],{is:(e,t)=>!e&&t,then:()=>S.string().required("Compila il campo").max(20,"Massimo 20 caratteri")}),billingLastName:S.string().when(["isCompany","differentBilling"],{is:(e,t)=>!e&&t,then:()=>S.string().required("Compila il campo").max(20,"Massimo 20 caratteri")}),billingFiscalCode:S.string().when(["isCompany","differentBilling","bypassBillingFiscalCode"],e=>{let[t,n,r]=e;
1return t||!n||r?!t&&n&&r?S.string().required("Insert your tax code"):void 0:S.string().required("Compila il campo").trim().matches(rX,"Inserisci il codice fiscale corretto")}),billingAddress:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingAddressNumber:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingCountry:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingProvince:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingCity:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingZip:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),differentShipping:S.bool(),shippingFirstName:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingLastName:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingAddress:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingAddressNumber:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingCountry:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingProvince:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingCity:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingZip:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingPhone:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo").matches(rV,"Controlla il numero di telefono")}),pecOrSdiEntered:S.bool().required(),bypassCoursistFiscalCode:S.bool().required(),bypassBillingFiscalCode:S.bool().required(),bypassVatNumber:S.bool().required()}),rW=S.object({email:S.string().email("Inserisci un indirizzo email valido").test("email","Inserisci un indirizzo email valido",e=>!!e&&rU.test(e)).required("Compila il campo"),coursistFirstName:S.string().required("Compila il campo").max(20,"Massimo 20 caratteri"),coursistLastName:S.string().required("Compila il campo").max(20,"Massimo 20 caratteri"),coursistAddress:S.string().required("Compila il campo"),coursistAddressNumber:S.string().required("Compila il campo"),coursistCountry:S.string().required("Compila il campo"),coursistProvince:S.string().required("Compila il campo"),coursistCity:S.string().required("Compila il campo"),coursistZip:S.string().required("Compila il campo"),coursistFiscalCode:S.string().when("bypassCoursistFiscalCode",{is:!1,then:()=>S.string().required("Compila il campo").trim().matches(rX,"Inserisci il codice fiscale corretto"),otherwise:()=>S.string().required("Insert your tax code")}),coursistPhone:S.string().required("Compila il campo").matches(rV,"Controlla il numero di telefono"),differentBilling:S.bool(),isCompany:S.bool(),company:S.string().when(["isCompany","differentBilling"],{is:!0,then:()=>S.string().required("Compila il campo")}),vatNumber:S.string().when(["isCompany","differentBilling","bypassVatNumber"],e=>{let[t,n,r]=e;return t&&n&&!r?S.string().required("Compila il campo").matches(/^[0-9]{11}$/i,"Inserisci la partita IVA corretta"):t&&n&&r?S.string().required("Insert your tax code"):void 0}),companyFiscalCode:S.string().when(["isCompany","differentBilling"],{is:!0,then:()=>S.string().trim().matches(rX,"Inserisci il codice fiscale corretto")}),sdi:S.string().when(["isCompany","differentBilling","pecOrSdiEntered"],e=>{let[t,n,r]=e;return t&&n&&!r?S.string().required("Compila il campo").matches(/^[a-zA-Z0-9]{7}$/i,"Inserisci il codice SDI corretto"):t&&n&&r?S.string().notRequired().matches(/^[a-zA-Z0-9]{7}$/i,"Inserisci il codice SDI corretto"):void 0}),pec:S.string().when(["isCompany","differentBilling","pecOrSdiEntered"],e=>{let[t,n,r]=e;return t&&n&&!r?S.string().required("Compila il campo").test("pec","Inserisci un indirizzo email valido",e=>!!e&&rU.test(e)):t&&n&&r?S.string().notRequired().matches(rU,"Inserisci un indirizzo email valido"):void 0}),billingFirstName:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo").max(20,"Massimo 20 caratteri")}),billingLastName:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo").max(20,"Massimo 20 caratteri")}),billingAddress:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingAddressNumber:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingCountry:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingProvince:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingCity:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingZip:S.string().when("differentBilling",{is:!0,then:()=>S.string().required("Compila il campo")}),billingFiscalCode:S.string().when(["isCompany","differentBilling","bypassBillingFiscalCode"],e=>{let[t,n,r]=e;
1return t||!n||r?!t&&n&&r?S.string().required("Insert your tax code"):void 0:S.string().required("Compila il campo").trim().matches(rX,"Inserisci il codice fiscale corretto")}),differentShipping:S.bool(),shippingFirstName:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingLastName:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingAddress:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingAddressNumber:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingCountry:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingProvince:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingCity:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingZip:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo")}),shippingPhone:S.string().when("differentShipping",{is:!0,then:()=>S.string().required("Compila il campo").matches(rV,"Controlla il numero di telefono")}),pecOrSdiEntered:S.bool().required(),bypassCoursistFiscalCode:S.bool().required(),bypassBillingFiscalCode:S.bool().required(),bypassVatNumber:S.bool().required(),customPayment:S.string(),cartaCultura:S.string().when("customPayment",{is:e=>"carta-cultura"===e,then:()=>S.string().required("Compila il campo")}),cartaDocente:S.string().when("customPayment",{is:e=>"carta-docente"===e,then:()=>S.string().required("Compila il campo")}),termsPrivacyCheckbox:S.bool().required(),marketing:S.bool()});var rJ={wizard:{filteredVariants:null,locations:null,location:null,selectedStartDateId:null,withCourseBooks:"Si",selectedVariant:null,differentBilling:!1,differentShipping:!1,checkout:null,participationMode:null,coursistCountry:null,coursistProvince:null,shippingCountry:null,shippingProvince:null,upsellCart:[],step:0,progress:1,isCompany:!1,mergeCart:!1,formik:!1},cartRecap:{},steps:[],productAdditionalInfo:{}},CheckoutConfigurator_reducer=(e,t)=>{var n,r,i,l,a;switch(t.type){case"INIT_COURSE_CHECKOUT":return{wizard:{...e.wizard,location:t.payload.preConfiguredLocation,selectedStartDateId:t.payload.preConfiguredStartDate,upsellItems:(null===(n=t.payload.product)||void 0===n?void 0:n.upsellItems)||[]},cartRecap:{subtotal:(null===(r=t.payload.product)||void 0===r?void 0:r.priceRange.maxVariantPrice.amount)||0,shipping:0,vat:0,discounts:[],total:(null===(i=t.payload.product)||void 0===i?void 0:i.priceRange.maxVariantPrice.amount)||0},steps:t.payload.selectedCheckout.map((e,n)=>{let{title:r,recapTitle:i,component:l,nextStepLabel:a,progressGroup:o}=e;return("ConfiguratorAdditionalMaterial"!==l||t.payload.hasAdditionalMaterial)&&("ConfiguratorUpsell"!==l||t.payload.hasUpsell)&&("ConfiguratorCartMerger"!==l||t.payload.cart.length)?{title:r,recapTitle:i,component:l,nextStepLabel:a,progressGroup:o,status:n<=0?"idle":"sleep",filledProps:{}}:null}).filter(e=>null!==e)};case"INIT_BOOK_CHECKOUT":return{wizard:{...e.wizard},cartRecap:{subtotal:(null===(l=t.payload.product)||void 0===l?void 0:l.priceRange.maxVariantPrice.amount)||0,shipping:0,vat:0,discounts:[],total:(null===(a=t.payload.product)||void 0===a?void 0:a.priceRange.maxVariantPrice.amount)||0},steps:t.payload.selectedCheckout.map((e,t)=>{let{title:n,recapTitle:r,component:i,nextStepLabel:l,progressGroup:a}=e;return{title:n,recapTitle:r,component:i,nextStepLabel:l,progressGroup:a,status:t<=0?"idle":"sleep",filledProps:{}}})};case"SET_WIZARD_OBJECT_VALUE":return t.payload.forEach(t=>{let n=t.keyToUpdate,r=t.value;e.wizard["".concat(n)]=r}),{...e};case"SET_COURSE_STEP_STATUS":return e.steps[t.payload.index].status=t.payload.status,{...e};case"MAP_PROPS_TO_STEP":return e.steps[t.payload.index].filledProps=t.payload.filledProps,{...e};case"RESET_SUBSEQUENT_STEPS":for(let n=t.payload.index+1;n<e.steps.length;n++)e.steps[n].status="sleep";return{...e};default:return e}},r$=n(57957),rY=n(60522),rK=n(44632),r0=n(23997),r1=n(30451),molecules_CustomPaymentTYP=e=>{let{gtmTracking:t=!1,lines:n,email:l,marketing:a}=e,[o,s]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),{sendGTM:h}=(0,P.rS)();return(0,i.useEffect)(()=>{(0,r1.Z)(n).then(e=>{let t=e.reduce((e,t,r)=>[...e,{...t,data:{...t.data,cartData:n[r]}}],[]);s(e=>t)})},[]),(0,i.useEffect)(()=>{o&&o.length>0&&(t&&h({eventName:t.eventName,values:t.values}),c||(h({...(0,tf._E)({data:o,lines:n})}),d(!0)))},[o]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:4,md:24}),(0,r.jsx)(p.W2,{children:(0,r.jsx)(p.X2,{children:(0,r.jsxs)(p.JX,{xs:12,md:8,$offset:{xs:0,md:2},children:[(0,r.jsxs)(p.kC,{justifyContent:"center",children:[(0,r.jsx)(u.X6,{typo:"headingXL",textPrimary:!0,content:"Grazie per il tuo ordine",weight:"semibold"}),(0,r.jsx)("div",{style:{color:"#007F5F",marginLeft:"1rem"},children:(0,r.jsx)(y.Z,{name:"check-circle",size:"large"})})]}),(0,r.jsx)(p.Nz,{xs:8}),(0,r.jsxs)(p.kC,{justifyContent:"center",alignItems:"center",$direction:"column",gap:2,children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",textPrimary:!0,content:"Continua la navigazione"}),(0,r.jsx)(m.Z,{href:"/",label:"Continua",variant:"primary"})]})]})})}),(0,r.jsx)(p.Nz,{xs:4,md:20})]})},organisms_CheckoutConfigurator=e=>{var t;let{product:n,productDataFromStrapi:l,preConfiguredLocation:a=null,preConfiguredVariantId:o=null,courseType:s,checkoutType:c="course"}=e,[d,h]=(0,i.useReducer)(CheckoutConfigurator_reducer,rJ),[g,f]=(0,i.useState)(!1),[b,_]=(0,i.useState)(!1),[x,j]=(0,i.useState)(o),[v,C]=(0,i.useState)(!1),[w,O]=(0,i.useState)("shopify"),[S,k]=(0,i.useState)(!1),[T,Z]=(0,i.useState)(!1),[z,F]=(0,i.useState)(!1),[E,M]=(0,i.useState)([]),[A,B]=(0,i.useState)(!1),[N,D]=(0,i.useState)([]),R={course:rQ,book:rL}[c],[L,Q]=(0,i.useState)({subtotal:null==n?void 0:n.priceRange.minVariantPrice.amount,shipping:0,vat:0,discounts:[],total:null==n?void 0:n.priceRange.minVariantPrice.amount}),q=(0,i.useRef)(null),H=[];
1R.forEach(e=>{H.push({["".concat(e.component)]:(0,i.useRef)(null)})});let V=(0,ec.useRouter)(),{setIsLoading:X}=(0,rm.r$)(),U={ConfiguratorParticipationMode:CheckoutConfigurator_ConfiguratorParticipationMode,ConfiguratorDate:CheckoutConfigurator_ConfiguratorDate,ConfiguratorAdditionalMaterial:CheckoutConfigurator_ConfiguratorAdditionalMaterial,ConfiguratorAuth:CheckoutConfigurator_ConfiguratorAuth,ConfiguratorFormData:CheckoutConfigurator_ConfiguratorFormData,ConfiguratorUpsell:CheckoutConfigurator_ConfiguratorUpsell,ConfiguratorCartMerger:CheckoutConfigurator_ConfiguratorCartMerger},{lines:G,id:W,linesRemove:J}=(0,tu.jD)(),{handleGetUserMeta:$}=(0,r$.ow)(),Y=$(),K=(null==n?void 0:n.upsellItems)||[],ee=(null==l?void 0:l.data.includedBooks)||!1,et=(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.supportMaterial)||!1,en=K.length,er="NO_BOOKS_ORDER",ei=(0,rY.Z)(),{sendGTM:el}=(0,P.rS)(),buildBookGifts=e=>{let t=e.reduce((e,t)=>{var n;return(null===(n=t.data.gift)||void 0===n?void 0:n.length)?[...e,...t.data.gift]:[...e]},[]),n=t.reduce((e,t)=>{let n=e.some(e=>{var n,r;return(null===(n=e.shopifyProduct)||void 0===n?void 0:n.variants[0].admin_graphql_api_id)===(null===(r=t.shopifyProduct)||void 0===r?void 0:r.variants[0].admin_graphql_api_id)});return n?e:[...e,t]},[]);D(n)};(0,i.useEffect)(()=>{"book"===c&&h({type:"INIT_BOOK_CHECKOUT",payload:{selectedCheckout:R,product:n}}),"course"===c&&(h({type:"INIT_COURSE_CHECKOUT",payload:{preConfiguredLocation:a,preSelectedVariantId:x,selectedCheckout:R,product:n,hasAdditionalMaterial:ee,hasUpsell:en,cart:G}}),h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"locations",value:(0,rK.hI)(n.variants.nodes)}]}))},[]),(0,i.useEffect)(()=>{"course"===c&&G<=0&&(h({type:"INIT_COURSE_CHECKOUT",payload:{preConfiguredLocation:a,preSelectedVariantId:x,selectedCheckout:R,product:n,hasAdditionalMaterial:ee,hasUpsell:en,cart:G}}),h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"locations",value:(0,rK.hI)(n.variants.nodes)}]}))},[G]),(0,i.useEffect)(()=>{if(a){let e=R.findIndex(e=>"ConfiguratorParticipationMode"===e.component);handleLocationSelect({label:a}),handleGoToNextStep(e+1)}},[a]),(0,i.useEffect)(()=>{if(x){let e=R.map((e,t)=>{let{title:n,component:r,nextStepLabel:i,progressGroup:l}=e;return("ConfiguratorAdditionalMaterial"!==r||ee)&&("ConfiguratorUpsell"!==r||en)?{title:n,component:r,nextStepLabel:i,progressGroup:l,status:t<=0?"idle":"sleep",filledProps:{}}:null}).filter(e=>null!==e),t=e.findIndex(e=>"ConfiguratorDate"===e.component);handleStartDateSelect(x,t)}},[x]),(0,i.useEffect)(()=>{if(x){let e=R.map((e,t)=>{let{title:n,component:r,nextStepLabel:i,progressGroup:l}=e;return("ConfiguratorAdditionalMaterial"!==r||ee)&&("ConfiguratorUpsell"!==r||en)?{title:n,component:r,nextStepLabel:i,progressGroup:l,status:t<=0?"idle":"sleep",filledProps:{}}:null}).filter(e=>null!==e),t=e.findIndex(e=>"ConfiguratorDate"===e.component);h({type:"SET_COURSE_STEP_STATUS",payload:{index:t,status:"idle"}}),handleGoToNextStep(t+1,!0)}},[d.wizard.selectedStartDateId]),(0,i.useEffect)(()=>{d.wizard.location&&h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"filteredVariants",value:(0,rK.$7)(n.variants.nodes,d.wizard.location)}]})},[d.wizard.location]),(0,i.useEffect)(()=>{d.wizard.location&&d.wizard.selectedStartDateId&&h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"filteredVariants",value:(0,rK.$7)(n.variants.nodes,d.wizard.location)},{keyToUpdate:"selectedVariant",value:(0,rK.c)(n.variants.nodes,d.wizard.selectedStartDateId)}]})},[d.wizard.selectedStartDateId]),(0,i.useEffect)(()=>{if(d.wizard.selectedVariant){let e=d.wizard.selectedVariant[0],t={amount:e.price.amount-e.earlyBirdPrice,id:"IS_EARLY_BIRD"},n=(null==e?void 0:e.isEarlyBird)&&(null==e?void 0:e.earlyBirdPrice)&&(null==e?void 0:e.earlyBirdPrice)>0&&(null==e?void 0:e.endPromoDate)&&(0,n5.y)({start:new Date,end:new Date(null==e?void 0:e.endPromoDate)})>=0;if(n){let n;n=L.discounts.find(e=>"IS_EARLY_BIRD"===e.id)?[...L.discounts]:[...L.discounts,t],Q(t=>({...t,subtotal:e.earlyBirdPrice,total:e.earlyBirdPrice,discounts:n}))}else Q(t=>({...t,subtotal:e.price.amount,total:e.price.amount,discounts:[...t.discounts.filter(e=>"IS_EARLY_BIRD"!==e.id)]}))}},[d.wizard.selectedVariant]),(0,i.useEffect)(()=>{let e={amount:100,id:"WITH_COURSE_BOOK"};"Si"===d.wizard.withCourseBooks?Q(e=>({...e,discounts:[...e.discounts.filter(e=>"WITH_COURSE_BOOK"!==e.id)],subtotal:L.subtotal})):"No"===d.wizard.withCourseBooks&&Q(t=>({...t,discounts:[...t.discounts,e]}))},[d.wizard.withCourseBooks]),(0,i.useEffect)(()=>{"Standard"===d.wizard.shippingType?Q(e=>({...e,shipping:parseFloat(0).toFixed(2)}
1)):"Express"===d.wizard.shippingType&&Q(e=>({...e,shipping:(parseFloat(e.shipping)+12).toFixed(2)}))},[d.wizard.shippingType]),(0,i.useEffect)(()=>{var e,t,r,i,a;if("No"===d.wizard.withCourseBooks&&d.wizard.checkout){let e=null===(r=d.wizard.checkout)||void 0===r?void 0:r.id,t=null===(i=d.wizard.checkout)||void 0===i?void 0:i.webUrl;t||X(!1),e&&(0,r0.Dh)(e,er,()=>{d.wizard.mergeCart&&handleEmptyCartAfterCheckout(),el({...(0,tf.UB)({data:{...l,discountCode:er,...d.wizard.selectedVariant[0],item_id:d.wizard.selectedVariant[0].sku,title:n.title}},"course")}),V.push(t)})}else{let e=null===(a=d.wizard.checkout)||void 0===a?void 0:a.webUrl;e?(d.wizard.mergeCart&&handleEmptyCartAfterCheckout(),V.push(e)):X(!1)}(null===(t=d.wizard.checkout)||void 0===t?void 0:null===(e=t.errors)||void 0===e?void 0:e.length)&&(C(!1),X(!1))},[d.wizard.checkout]),(0,i.useEffect)(()=>{G.length&&(0,r1.Z)(G).then(e=>{let t=e.reduce((e,t,n)=>[...e,{...t,data:{...t.data,cartData:G[n]}}],[]);B(e=>t),buildBookGifts(t)})},[G.length]);let handleUpdateProgress=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"progress",value:e}]})},handleGoToNextStep=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h({type:"SET_COURSE_STEP_STATUS",payload:{index:e-1,status:"filled"}}),h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"step",value:e}]}),e<d.steps.length&&!t&&(h({type:"SET_COURSE_STEP_STATUS",payload:{index:e,status:"idle"}}),animations_scrollTo(H[e].current,q.current))},handleModifyStep=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"step",value:e}]}),h({type:"SET_COURSE_STEP_STATUS",payload:{index:e,status:"idle"}}),h({type:"RESET_SUBSEQUENT_STEPS",payload:{index:e,formik:t}}),animations_scrollTo(H[e].current,q.current)},handleParticipationModeSelect=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"participationMode",value:e}]})},handleLocationSelect=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"location",value:e.label}]})},handleStartDateSelect=(e,t)=>{let r=n.variants.nodes.find(t=>{let{id:n}=t;return n===e}),i=r.selectedOptions?{...r,...(0,n3.iy)(r.selectedOptions)}:r,{classSchedule:l,startDate:a}=i;h({type:"MAP_PROPS_TO_STEP",payload:{index:t,filledProps:{classSchedule:l,startDate:a}}}),h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"selectedStartDateId",value:e}]}),h({type:"SET_COURSE_STEP_STATUS",payload:{index:t,status:"idle"}})},handleWithCourseBooksSelect=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"withCourseBooks",value:e}]})},handleShippingTypeSelect=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"shippingType",value:e}]})},handleDifferentBilling=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"differentBilling",value:e}]})},handleDifferentShipping=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"differentShipping",value:e}]})},handleIsCompanySelect=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"isCompany",value:e}]})},handleCoursistCountrySelection=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"coursistCountry",value:e}]})},handleCoursistProvinceSelection=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"coursistProvince",value:e}]})},handleBillingCountrySelection=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"billingCountry",value:e}]})},handleBillingProvinceSelection=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"billingProvince",value:e}]})},handleShippingCountrySelection=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"shippingCountry",value:e}]})},handleShippingProvinceSelection=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"shippingProvince",value:e}]})},handleCartMerge=e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"mergeCart",value:e}]})},handleAddToCart=e=>{let{id:t,title:n,image:r,amount:i,quantity:l,cart:a}=e,o=a.findIndex(e=>e.variantId===t);if(o>-1){let e=a[o];e.quantity+l<=0?(h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"upsellCart",value:a.filter(e=>e.variantId!==t)}]}),Q(e=>({...e,subtotal:(parseFloat(e.subtotal)-parseFloat(i)).toFixed(2)}))):(e.quantity+=l,h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"upsellCart",value:[...a]}]}),Q(e=>({...e,subtotal:(parseFloat(e.subtotal)+parseFloat(i)*parseInt(l)).toFixed(2)})))}else l>0&&(h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"upsellCart",value:[...d.wizard.upsellCart,{variantId:t,quantity:1,title:n,image:r,amount:i}]}]}),Q(e=>({...e,subtotal:(parseFloat(e.subtotal)+parseFloat(i)).toFixed(2)})))},handleError=e=>{_(!0),X(!1)},handleRemovePreselectedVariant=()=>{x&&j(!1)},handleEmptyCartAfterCheckout=()=>{C(!0),J(G.map(e=>{let{id:t}=e;return t}))},handleSelectCustomPayment=(e,t)=>
1{O(e),t.setFieldValue("customPayment",e)},handleShowCustomPaymentTYP=()=>{M(G),k(!0),handleEmptyCartAfterCheckout()},handleScrollToComponent=e=>{animations_scrollTo(H[e].current,q.current)},handleToggleMarketing=e=>{Z(e)};return S&&E?(0,r.jsx)(molecules_CustomPaymentTYP,{marketing:T,email:z,lines:E}):(0,r.jsxs)(nA,{children:[(0,r.jsxs)(nS,{ref:q,children:[(0,r.jsx)(nz,{scrollDirection:ei,children:(0,r.jsx)(atoms_Steps,{type:c,currentStep:d.wizard.progress})}),(0,r.jsx)(I.J9,{initialValues:{course:rq,book:rH}[c],validationSchema:{course:rG,book:rW}[c],enableReinitialize:!0,onSubmit:e=>{let t=utils_buildCheckoutDataObj(e,d,c,{product:n,productDataFromStrapi:l,includedBooks:ee,lines:G,bookGifts:N});"course"===c?(b||X(!0),(0,r0.zQ)(t,e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"checkout",value:e}]})},handleError)):W&&(X(!0),(0,r0.Kv)(t,G,W,N,e=>{handleEmptyCartAfterCheckout(),V.push(e)},e=>{h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"checkout",value:e}]})}))},children:e=>(d.wizard.formik||h({type:"SET_WIZARD_OBJECT_VALUE",payload:[{keyToUpdate:"formik",value:e}]}),""===e.values.sdi&&""===e.values.pec&&e.values.pecOrSdiEntered&&e.setFieldValue("pecOrSdiEntered",!1),""!==e.values.sdi||""===e.values.pec||e.values.pecOrSdiEntered||e.setFieldValue("pecOrSdiEntered",!0),""!==e.values.pec||""===e.values.sdi||e.values.pecOrSdiEntered||e.setFieldValue("pecOrSdiEntered",!0),(0,r.jsx)(I.l0,{onSubmit:e.handleSubmit,children:d.steps.map((t,i)=>{let o=U["".concat(t.component)],h={productDataFromStrapi:l,filledProps:d.steps[i].filledProps,state:d,componentIndex:i,courseType:s,title:(null==n?void 0:n.title)||"",session:!1,startDate:!1,preConfiguredLocation:a,withCourseBooks:d.wizard.withCourseBooks,formik:e,cart:G,shippingType:d.wizard.shippingType,handleStartDateSelect,handleGoToNextStep,handleUpdateProgress,handleParticipationModeSelect,handleLocationSelect,handleWithCourseBooksSelect,handleCartMerge,handleShippingTypeSelect,handleIsCompanySelect,handleDifferentShipping,handleDifferentBilling,handleCoursistCountrySelection,handleCoursistProvinceSelection,handleBillingCountrySelection,handleBillingProvinceSelection,handleShippingCountrySelection,handleShippingProvinceSelection,handleAddToCart,handleRemovePreselectedVariant,handleSelectCustomPayment,handleEmptyCartAfterCheckout,handleShowCustomPaymentTYP,handleScrollToComponent,handleToggleMarketing,setMarketingEmail:F,checkoutType:c,userMeta:Y,customPayment:w,hasAdditionalMaterial:ee,supportMaterial:et,bookGifts:N};return(0,r.jsxs)(nT,{visible:"idle"===t.status||"filled"===t.status,ref:H[i],children:["filled"===t.status?(0,r.jsx)(nE,{children:(0,r.jsx)(m.Z,{label:"Modifica",handleClick:()=>{handleModifyStep(i,e),handleUpdateProgress(t.progressGroup)},variant:"quaternary"})}):null,(0,r.jsxs)(p.kC,{alignItems:"center",children:["filled"===t.status?(0,r.jsx)(nM,{children:(0,r.jsx)(y.Z,{name:"check"})}):null,(0,r.jsx)(u.nv,{typo:"paragraphLG",weight:"semibold",textPrimary:!0,content:"filled"===t.status?t.recapTitle:t.title})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(o,{...h})]},i)})}))}),(0,r.jsx)(p.Nz,{xs:4})]}),(0,r.jsxs)(nk,{isMobileRecapOpen:g,children:[(0,r.jsx)(nI,{onClick:()=>f(!g),children:(0,r.jsx)(nP,{isMobileRecapOpen:g,children:(0,r.jsx)(y.Z,{name:"chevron-up"})})}),(0,r.jsx)(molecules_Cart,{state:d,booksCart:G,cartRecap:L,product:n,supportMaterial:et,upsellCart:d.wizard.upsellCart,checkoutType:c,courseType:s,includedBooks:ee,tentativeCheckout:v,hasAdditionalMaterial:ee,bookGifts:N})]})]})},r2=n(80099),r4=n(34472),hooks_useShopifyProducts=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,i.useState)(e),r=(0,i.useMemo)(()=>e.map(e=>(null==e?void 0:e.handle)||e.id).join(","),[e]);return(0,i.useEffect)(()=>{if(!(null==e?void 0:e.length))return;let t=!1,fetchVariants=async()=>{let r=await Promise.all(e.map(async e=>{let t=null==e?void 0:e.handle;if(!t)return e;try{var n,r;let i=await (0,r0.O1)(t),l=(0,rK.HU)(null==i?void 0:i.productByHandle),a=(null==l?void 0:null===(n=l.variants)||void 0===n?void 0:n.nodes)||[],o=(0,rK._x)(a||!1),s=null!=o&&!!o.startDate&&o.startDate,c=!1;if(a.length>0){let e=(0,n3.iy)(null===(r=a[0])||void 0===r?void 0:r.selectedOptions);c=(null==e?void 0:e.startDate)||!1}let d=s?"".concat((0,tp.p6)(new Date(s),"d MMMM u")):c||"Parti subito",u=(0,r4.Y)(a,{showCurrency:!1,showDecimals:!1});return{...e,effectivePrice:u,effettiveStartDate:d}}catch(n){return console.warn("Error fetching ".concat(t,":"),n.message),{...e,variants:[]}}}));t||n(r)};return fetchVariants(),()=>{t=!0}},[r]),t},molecules_AccordionCards=e=>{let{items:t}=e,n=(0,i.useId)(),[l,a]=(0,i.useState)(!1),[o,s]=(0,i.useState)(0),c=(0,Y.Z)("only screen and (min-width : 768px)"),d={2:6,3:4,4:3,5:4}
1,handleItemClick=e=>{c||s(t=>t===e?null:e)},u=i.useLayoutEffect;return u(()=>a(!0),[]),t&&t.length>0&&l?(0,r.jsx)(p.X2,{children:t.map((e,i)=>(0,r.jsx)(p.JX,{xs:12,md:6,lg:d[t.length],children:(0,r.jsx)(AccordionCards_AccordionCardsItem,{data:e,isOpen:!!c||o===i,destroy:c,onClick:()=>handleItemClick(i),componentId:n})},"AccordionCardsItem-".concat(i,"-").concat(null==e?void 0:e.id)))}):null},molecules_ComparisonCardsSwiper=e=>{let{items:t}=e;return(0,r.jsx)(nr,{as:"div",type:"RelatedCourseItem",items:t,inset:!0,isComparison:!0})};function ComparisonCardsList_styles_templateObject(){let e=(0,h._)(["\n  ","\n"]);return ComparisonCardsList_styles_templateObject=function(){return e},e}let r6=g.ZP.div.withConfig({componentId:"sc-599b0de0-0"})(ComparisonCardsList_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    row-gap: ".concat(t.rem(24),";\n  "))});var molecules_ComparisonCardsList=e=>{let{items:t}=e;return(0,r.jsx)(r6,{as:p.X2,children:t.map((e,t)=>(0,r.jsx)(p.JX,{xs:12,sm:6,lg:4,children:(0,r.jsx)(AccordionCards_AccordionCardsItem,{data:e})},t))})};function ComparisonCards_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n"]);return ComparisonCards_styles_templateObject=function(){return e},e}let r5=g.ZP.section.withConfig({componentId:"sc-bc835660-0"})(ComparisonCards_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))}),r3=i.useLayoutEffect;var organisms_ComparisonCards=e=>{let{sectionId:t,listType:n,items:l}=e,[a,o]=(0,i.useState)(!1),s=(0,Y.Z)("only screen and (min-width : 768px)");r3(()=>o(!0),[]);let c=hooks_useShopifyProducts(a?l:[]);return a&&(null==l?void 0:l.length)?(0,r.jsx)(r5,{as:"section",id:t,children:s?"list"===n?(0,r.jsx)(p.W2,{children:(0,r.jsx)(molecules_ComparisonCardsList,{items:c})}):(0,r.jsx)(molecules_ComparisonCardsSwiper,{items:c}):(0,r.jsx)(p.W2,{children:(0,r.jsx)(molecules_AccordionCards,{items:c})})}):null};function ComparisonReference_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n"]);return ComparisonReference_styles_templateObject=function(){return e},e}let r8=g.ZP.section.withConfig({componentId:"sc-db39698d-0"})(ComparisonReference_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))}),r9=i.useLayoutEffect;var organisms_ComparisonReference=e=>{let{sectionId:t,listType:n,items:l}=e,[a,o]=(0,i.useState)(!1),s=(0,Y.Z)("only screen and (min-width : 768px)");r9(()=>o(!0),[]);let c=hooks_useShopifyProducts(a?l:[]);return a&&(null==l?void 0:l.length)?(0,r.jsx)(r8,{as:"section",id:t,children:s?"list"===n?(0,r.jsx)(p.W2,{children:(0,r.jsx)(molecules_ComparisonCardsList,{items:c})}):(0,r.jsx)(molecules_ComparisonCardsSwiper,{items:c}):(0,r.jsx)(p.W2,{children:(0,r.jsx)(molecules_AccordionCards,{items:c})})}):null};function CookieTable_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n"]);return CookieTable_styles_templateObject=function(){return e},e}let r7=g.ZP.section.withConfig({componentId:"sc-63d2cd61-0"})(CookieTable_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))});var organisms_CookieTable=e=>{let{sectionId:t}=e;return(0,r.jsx)(r7,{as:"section",id:t,children:"Cookie Table"})};function CourseInfoRecap_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  height: 1px;\n"]);return CourseInfoRecap_styles_templateObject=function(){return e},e}function CourseInfoRecap_styles_templateObject1(){let e=(0,h._)(["\n  flex: 1 1 50%;\n  padding: ",";\n\n  ","\n\n  i {\n    font-size: ",";\n    margin-right: ","\n  }\n"]);
1return CourseInfoRecap_styles_templateObject1=function(){return e},e}function CourseInfoRecap_styles_templateObject2(){let e=(0,h._)(["\n    background-color: ",";\n    border: 1px solid ",";\n  "]);return CourseInfoRecap_styles_templateObject2=function(){return e},e}function CourseInfoRecap_styles_templateObject3(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  flex-wrap: wrap;\n  border: 1px solid;\n\n  ","\n\n  "," {\n    background-color: ",";\n  }\n\n  "," {\n    background-color: ",";\n\n    &:not(:last-child) {\n      border-right: 1px solid ",";\n      border-bottom: 1px solid ",";\n\n      ","\n    }\n\n    &:nth-child(3n) {\n      border-bottom: none;\n    }\n\n    &:nth-child(2n) {\n      ","\n    }\n  }\n"]);return CourseInfoRecap_styles_templateObject3=function(){return e},e}let ie=g.ZP.div.withConfig({componentId:"sc-c329a992-0"})(CourseInfoRecap_styles_templateObject()),it=g.ZP.div.withConfig({componentId:"sc-c329a992-1"})(CourseInfoRecap_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(20,16)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex: 1 1 25%;\n  ")},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(8)}),ir=g.ZP.div.withConfig({componentId:"sc-c329a992-2"})(CourseInfoRecap_styles_templateObject3(),e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(CourseInfoRecap_styles_templateObject2(),t.colorScheme["".concat(n)].surface.backgroundColor2,t.colorScheme["".concat(n)].surface.borderPrimary)},ie,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.textPrimary},it,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderPrimary},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderPrimary},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        border-bottom: none;\n      ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        border-right: none;\n      ",!0)});var molecules_CourseInfoRecap=e=>{let{courseRecap:t,inheritedColorScheme:n="white"}=e,{selectedColorScheme:l}=(0,i.useContext)(s.x);return(0,r.jsxs)(ir,{colorScheme:n||l,children:[(0,r.jsxs)(it,{children:[(0,r.jsxs)(p.kC,{$direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},children:[(0,r.jsx)(y.Z,{name:"map-pin"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",fontSecondary:!0,content:t.availability,weight:"semibold"})]}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsxs)(p.kC,{$direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},children:[(0,r.jsx)(y.Z,{name:(null==t?void 0:t.showAdmissionOutcome)?"check-circle":"language"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",content:(null==t?void 0:t.showAdmissionOutcome)?"Ammesso o ripreparato":t.language,weight:"semibold"})]})]}),(0,r.jsxs)(it,{children:[(0,r.jsxs)(p.kC,{$direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},children:[(0,r.jsx)(y.Z,{name:"calendar-days"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",fontSecondary:!0,content:"Prossima partenza",weight:"semibold"})]}),(0,r.jsx)(p.Nz,{xs:1}),t.nextDate.length?t.nextDate.map((e,t)=>(0,r.jsxs)(i.Fragment,{children:[t>0?(0,r.jsx)(ie,{small:!0}):null,(0,r.jsx)(u.nv,{typo:"headingXS",weight:"semibold",fontSecondary:!0,content:"".concat(e.start?"".concat((0,tp.p6)(new Date(e.start),"d MMMM u")):e.optionalStartDate?e.optionalStartDate:"Parti subito")}),e.registrationEnds?(0,r.jsx)(u.nv,{typo:"paragraphXS",fontSecondary:!0,children:(0,tp.p6)(new Date(e.registrationEnds),"d MMMM u")}):null]},t)):null]}),(null==t?void 0:t.length)?(0,r.jsxs)(it,{children:[(0,r.jsxs)(p.kC,{$direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},children:[(0,r.jsx)(y.Z,{name:"clock"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",weight:"semibold",fontSecondary:!0,content:"Durata"})]}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"headingXS",weight:"semibold",fontSecondary:!0,children:t.length})]}):null,(0,r.jsxs)(it,{children:[(0,r.jsxs)(p.kC,{$direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},children:[(0,r.jsx)(y.Z,{name:"currency-euro"}),(0,r.jsx)(u.nv,{typo:"paragraphMD",fontSecondary:!0,weight:"semibold",content:"Prezzo"})]}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(p.kC,{$direction:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},children:(0,r.jsx)(u.nv,{typo:"headingXS",weight:"semibold",fontSecondary:!0,children:t.price})})]})]})};
1function MaskedImage_styles_templateObject(){let e=(0,h._)(["\n    mask-image: url('/masks/mask-",".svg');\n    mask-size: 100%;\n    mask-repeat: no-repeat;\n    mask-position: center;\n  "]);return MaskedImage_styles_templateObject=function(){return e},e}function MaskedImage_styles_templateObject1(){let e=(0,h._)(["\n  position: relative;\n  width: 100%;\n  aspect-ratio: 1 / 1;\n\n  ","\n"]);return MaskedImage_styles_templateObject1=function(){return e},e}let ii=g.ZP.div.withConfig({componentId:"sc-e9af5037-0"})(MaskedImage_styles_templateObject1(),e=>{let{maskType:t}=e;return t&&(0,g.iv)(MaskedImage_styles_templateObject(),t)});var molecules_MaskedImage=e=>{var t;let{imageShape:n,image:i}=e;return(0,r.jsx)(ii,{maskType:n,children:(0,r.jsx)(d(),{src:i.src||i.url,alt:null!==(t=i.alt)&&void 0!==t?t:"",fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 75vw"})})};function CourseCover_styles_templateObject(){let e=(0,h._)(["\n  display: flex;\n  flex-wrap: wrap;\n"]);return CourseCover_styles_templateObject=function(){return e},e}function CourseCover_styles_templateObject1(){let e=(0,h._)(["\n    background-color: ",";\n  "]);return CourseCover_styles_templateObject1=function(){return e},e}function CourseCover_styles_templateObject2(){let e=(0,h._)(["\n  height: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: -1;\n  display: none;\n\n  ","\n\n  ","\n"]);return CourseCover_styles_templateObject2=function(){return e},e}function CourseCover_styles_templateObject3(){let e=(0,h._)(["\n  width: ",";\n  display: flex;\n  align-items: center;\n  gap: ",";\n  margin: 0 auto;\n\n  ","\n\n  ","\n\n  /* a {\n    width: 100%;\n\n    ","\n\n    ","\n  } */\n\n  /* button {\n    display: flex;\n    margin: 0 auto;\n\n    ","\n  } */\n"]);return CourseCover_styles_templateObject3=function(){return e},e}function CourseCover_styles_templateObject4(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  padding: ",";\n\n  background-color: ",";\n\n  ","\n\n  ","\n"]);return CourseCover_styles_templateObject4=function(){return e},e}function CourseCover_styles_templateObject5(){let e=(0,h._)(["\n  ","\n"]);return CourseCover_styles_templateObject5=function(){return e},e}function CourseCover_styles_templateObject6(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n\n  ","\n\n  ","\n"]);return CourseCover_styles_templateObject6=function(){return e},e}function CourseCover_styles_templateObject7(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  padding: 0;\n\n  ","\n"]);return CourseCover_styles_templateObject7=function(){return e},e}function CourseCover_styles_templateObject8(){let e=(0,h._)(["\n  width: 100%;\n  margin: 0 auto;\n  padding: ",";\n  position: relative;\n  top: ",";\n\n  ","\n"]);return CourseCover_styles_templateObject8=function(){return e},e}function CourseCover_styles_templateObject9(){let e=(0,h._)(["\n    color: ",";\n  "]);return CourseCover_styles_templateObject9=function(){return e},e}function CourseCover_styles_templateObject10(){let e=(0,h._)(["\n  position: relative;\n\n  ","\n\n  ","\n"]);return CourseCover_styles_templateObject10=function(){return e},e}let il=g.ZP.div.withConfig({componentId:"sc-a42caeb5-0"})(CourseCover_styles_templateObject()),ia=g.ZP.div.withConfig({componentId:"sc-a42caeb5-1"})(CourseCover_styles_templateObject2(),e=>{let{theme:t,colorScheme:n,accent:r}=e;return(0,g.iv)(CourseCover_styles_templateObject1(),r?t.colorScheme["".concat(n)].courseCover.accent:t.colorScheme["".concat(n)].surface.backgroundColor)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 50vw;\n    display: block;\n\n    & + ".concat(ia," {\n      left: auto;\n      right: 0;\n    }\n\n    //fix storybook\n    #storybook-root & {\n      width: 50%;\n    }\n  "))}),io=g.ZP.div.withConfig({componentId:"sc-a42caeb5-2"})(CourseCover_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(358)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 100%;\n    display: flex;\n    margin: 0;\n    flex-wrap: wrap;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: column;\n  ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      &:not(:last-child) {\n        margin-bottom: ".concat(t.rem(8),";\n      }\n    "),!0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      width: auto;\n\n      &:not(:first-child) {\n        margin-left: ".concat(t.rem(8),";\n      }\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      margin: 0;\n      margin-left: ".concat(t.rem(8),";\n    "))}),is=g.ZP.div.withConfig({componentId:"sc-a42caeb5-3"}
1)(CourseCover_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(40,16)},e=>{let{theme:t,colorScheme:n,accent:r}=e;return r?t.colorScheme["".concat(n)].button.iconBackground:t.colorScheme["".concat(n)].surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(40),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 50%;\n    background-color: transparent;\n    padding: ".concat(t.rem(80,0),"\n  "))}),ic=(0,g.ZP)(is).withConfig({componentId:"sc-a42caeb5-4"})(CourseCover_styles_templateObject5(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-right: ".concat(t.rem(80),"\n  "))}),id=(0,g.ZP)(is).withConfig({componentId:"sc-a42caeb5-5"})(CourseCover_styles_templateObject6(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(100),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(0,0,0,80),";\n  "))}),iu=(0,g.ZP)(p.W2).withConfig({componentId:"sc-a42caeb5-6"})(CourseCover_styles_templateObject7(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: row;\n  ")}),ip=(0,g.ZP)(p.W2).withConfig({componentId:"sc-a42caeb5-7"})(CourseCover_styles_templateObject8(),e=>{let{theme:t}=e;return t.rem(0,16)},e=>{let{theme:t}=e;return t.rem(-40)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: 0;\n    position: absolute;\n    left: 50%;\n    top: calc(100% - ".concat(t.rem(40),");\n    transform: translateX(-50%);\n  "))}),im=g.ZP.div.withConfig({componentId:"sc-a42caeb5-8"})(CourseCover_styles_templateObject10(),e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(CourseCover_styles_templateObject9(),t.colorScheme["".concat(n)].surface.textPrimary)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: ".concat(t.rem(80),";\n  "))});var CourseCover_CourseCoverActions=e=>{let{colorScheme:t,ctaPrimary:n,anchorTrigger:i,hasVariants:l,withAgos:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:4,md:6}),a?(0,r.jsxs)(p.zv,{breakpoints:["xs","sm"],children:[(0,r.jsx)(u.nv,{textPrimary:!0,typo:"paragraphMD",content:"Paga in 10 comode rate a tasso 0",weight:"semibold"}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(d(),{src:"/logos/agos-logo.png",style:{marginRight:"8px"},width:57,height:31,alt:"Agos Logo"}),(0,r.jsx)(u.nv,{textPrimary:!0,typo:"paragraphSM",content:"Disponibile con Finanziamento AGOS a tasso 0"})]}),(0,r.jsx)(p.Nz,{xs:2})]}):null,(0,r.jsxs)(io,{children:[(0,r.jsx)(m.Z,{...n,inheritedColorScheme:t,variant:"primary",iconEnd:"arrow-right",disabled:!l}),(null==i?void 0:i.label)?(0,r.jsx)(m.Z,{...i,inheritedColorScheme:t,variant:"tertiary",iconEnd:"arrow-right"}):null]}),a?(0,r.jsxs)(p.zv,{breakpoints:["md","lg","xl","xxl","xxxl"],children:[(0,r.jsx)(p.Nz,{xs:2,md:4}),(0,r.jsx)(u.nv,{textPrimary:!0,typo:"paragraphMD",content:"Paga in 10 comode rate a tasso 0",weight:"semibold"}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(d(),{src:"/logos/agos-logo.png",style:{marginRight:"8px"},width:57,height:31,alt:"Agos Logo"}),(0,r.jsx)(u.nv,{textPrimary:!0,typo:"paragraphSM",content:"Disponibile con Finanziamento AGOS a tasso 0"})]})]}):null]})},organisms_CourseCover=e=>{let{tags:t=[],title:n={},primarySubtitle:l={},description:a={},ctaPrimary:o={},anchorTrigger:s={},courseRecap:c={},image:d=null,imageShape:m,courseType:h,hasVariants:g,withAgos:f,colorScheme:b=null}=e,y=b||h;return(0,r.jsxs)(im,{colorScheme:y,children:[(0,r.jsxs)(iu,{children:[(0,r.jsx)(ia,{colorScheme:y}),(0,r.jsx)(ia,{colorScheme:y,accent:!0}),(0,r.jsxs)(ic,{colorScheme:y,children:[t.length?(0,r.jsx)(il,{children:t.map((e,t)=>(0,i.createElement)(ed.Z,{...e,key:t,inheritedColorScheme:y}))}):null,(0,r.jsx)(p.Nz,{xs:2}),n.content?(0,r.jsx)(u.X6,{typo:n.typo,as:n.as,textPrimary:!0,fontPrimary:!0,children:n.content}):null,(0,r.jsx)(p.Nz,{xs:2}),l.content?(0,r.jsx)(u.nv,{typo:l.typo,as:l.as,textSecondary:!0,content:l.content,weight:"semibold"}):null,(0,r.jsx)(p.Nz,{xs:2}),a.content?(0,r.jsx)(u.nv,{as:a.as,typo:a.typo,textSecondary:!0,children:a.content}):null,(0,r.jsx)(p.zv,{breakpoints:["md","lg","xl","xxl","xxxl"],children:(0,r.jsx)(CourseCover_CourseCoverActions,{colorScheme:y,ctaPrimary:o,anchorTrigger:s,hasVariants:g,withAgos:f})})]}),(0,r.jsx)(id,{colorScheme:y,accent:!0,children:d?(0,r.jsx)(molecules_MaskedImage,{imageShape:m,image:d}):null})]}),(0,r.jsxs)(ip,{children:[(0,r.jsx)(molecules_CourseInfoRecap,{courseRecap:c,inheritedColorScheme:y}),(0,r.jsx)(p.zv,{breakpoints:["xs","sm"],children:(0,r.jsx)(CourseCover_CourseCoverActions,{colorScheme:y,ctaPrimary:o,anchorTrigger:s,hasVariants:g,withAgos:f})})]})]})},ih=n(41973);
1function Faq_styles_templateObject(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n  "]);return Faq_styles_templateObject=function(){return e},e}function Faq_styles_templateObject1(){let e=(0,h._)(["\n  border-radius: ",";\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n"]);return Faq_styles_templateObject1=function(){return e},e}function Faq_styles_templateObject2(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-start;\n  margin-bottom: ",";\n\n  ","\n"]);return Faq_styles_templateObject2=function(){return e},e}function Faq_styles_templateObject3(){let e=(0,h._)(["\n  :not(:first-child) {\n    margin-top: ",";\n\n    ","\n  }\n"]);return Faq_styles_templateObject3=function(){return e},e}let ig=g.ZP.div.withConfig({componentId:"sc-aba377ff-0"})(Faq_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(Faq_styles_templateObject(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)}),ib=g.ZP.div.withConfig({componentId:"sc-aba377ff-1"})(Faq_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: column;\n    margin-bottom: ".concat(t.rem(16),";\n\n    ").concat(nh.S," {\n      margin-top: ").concat(t.rem(16),";\n    }\n  "),!0)}),iy=g.ZP.div.withConfig({componentId:"sc-aba377ff-2"})(Faq_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      margin-top: ".concat(t.rem(60),";\n    "))});var variants_FaqSimple=e=>{let{title:t,cta:n,faqs:i}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(ib,{children:[t?(0,r.jsx)(u.X6,{typo:"displayMD",content:t,fontPrimary:!0}):null,n?(0,r.jsx)(m.Z,{...n,variant:"tertiary",iconEnd:"arrow-right"}):null]}),i&&i.length>0?(0,r.jsx)(ih.Z,{items:i,variant:"twoColumns",withID:!0}):null]})},variants_FaqSpecified=e=>{let{groups:t}=e;return t&&t.length>0?t.map((e,t)=>(0,r.jsx)(iy,{children:(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:6,$direction:"column",children:[e.title?(0,r.jsx)(u.X6,{typo:"displayMD",content:e.title,fontPrimary:!0}):null,e.subtitle?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",content:e.subtitle,textSecondary:!0}),(0,r.jsx)(p.Nz,{xs:2})]}):null]}),(0,r.jsx)(p.JX,{xs:12,lg:6,children:e.faqs&&e.faqs.length>0?(0,r.jsx)(ih.Z,{items:e.faqs,variant:"base",withID:!0}):null})]})},"FaqSpecified-Item-".concat(null==e?void 0:e.id,"-").concat(t))):null};let Faq_Faq=e=>{let{sectionId:t,type:n,...l}=e,{selectedColorScheme:a}=(0,i.useContext)(s.x),o={FaqSimple:variants_FaqSimple,FaqSpecified:variants_FaqSpecified}[n];return o?(0,r.jsx)(ig,{colorScheme:a,as:"section",id:t,children:(0,r.jsx)(p.W2,{children:(0,r.jsx)(o,{...l})})}):null};Faq_Faq.propTypes={type:a().oneOf(["FaqSimple","FaqSpecified"]),sectionId:a().string,colorScheme:o.hl,title:a().string,cta:o.$Z,faqs:a().array,groups:a().array};var i_=Faq_Faq;function PostInfo_styles_templateObject(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n  text-transform: capitalize;\n  \n  ","\n"]);return PostInfo_styles_templateObject=function(){return e},e}function PostInfo_styles_templateObject1(){let e=(0,h._)(["\n  margin: ",";\n\n  ","\n"]);return PostInfo_styles_templateObject1=function(){return e},e}function PostInfo_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n\n  ","\n"]);return PostInfo_styles_templateObject2=function(){return e},e}let ix=g.ZP.div.withConfig({componentId:"sc-cb7ab159-0"})(PostInfo_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    flex-direction: column;\n    align-items: flex-start;\n  ",!0)}),ij=g.ZP.span.withConfig({componentId:"sc-cb7ab159-1"})(PostInfo_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(0,16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: none;\n  ",!0)}),iv=g.ZP.span.withConfig({componentId:"sc-cb7ab159-2"}
1)(PostInfo_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    margin-top: ".concat(t.rem(16),";\n  "),!0)});var molecules_PostInfo=e=>{let{date:t,categories:n}=e;return(0,r.jsxs)(ix,{children:[(0,r.jsx)(u.nv,{typo:"paragraphSM",content:t,weight:"semibold",textSecondary:!0}),(0,r.jsx)(ij,{as:u.nv,typo:"paragraphLG",content:"|"}),(0,r.jsx)(iv,{children:n&&n.length>0?n.map((e,t)=>(0,r.jsx)(ed.Z,{label:e.title,colorBrand:e.colorBrand,variant:"round"},"PostInfoCategory-".concat(t))):null})]})};function CardArticleMin_styles_templateObject(){let e=(0,h._)(["\n  height: 80px;\n  flex: 0 0 80px;\n  position: relative;\n  overflow: hidden;\n  border-radius: 0;\n  transition: border-radius 0.3s ease-in-out;\n  \n  img {\n    transform: scale(1);\n    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);\n  }\n"]);return CardArticleMin_styles_templateObject=function(){return e},e}function CardArticleMin_styles_templateObject1(){let e=(0,h._)(["\n  flex: 0 0 calc(100% - 80px);\n  padding-left: ",";\n"]);return CardArticleMin_styles_templateObject1=function(){return e},e}function CardArticleMin_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n  flex-wrap: wrap;\n\n  &:hover,\n  &:focus-within {\n    "," {\n      border-radius: ",";\n      \n      img {\n        transform: scale(1.2);\n      }\n    }\n  }\n"]);return CardArticleMin_styles_templateObject2=function(){return e},e}let iC=g.ZP.div.withConfig({componentId:"sc-afc94001-0"})(CardArticleMin_styles_templateObject()),iw=g.ZP.div.withConfig({componentId:"sc-afc94001-1"})(CardArticleMin_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(10)}),iO=g.ZP.a.withConfig({componentId:"sc-afc94001-2"})(CardArticleMin_styles_templateObject2(),iC,e=>{let{theme:t}=e;return t.rem(4)});var molecules_CardArticleMin=e=>{let{title:t,slug:n,image:i}=e;return(0,r.jsx)(tv.Z,{href:"".concat(n),children:(0,r.jsxs)(iO,{href:"".concat(n),children:[(0,r.jsx)(iC,{children:(null==i?void 0:i.src)?(0,r.jsx)(d(),{src:i.src,alt:i.alt||"",width:80,height:80}):null}),t?(0,r.jsx)(iw,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",content:t,weight:"semibold"})}):null]})})};function FeaturedArticles_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  padding-bottom: ",";\n  border-top: 1px solid;\n\n  /* "," */\n"]);return FeaturedArticles_styles_templateObject=function(){return e},e}function FeaturedArticles_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  padding: ",";\n  border: 1px solid;\n  border-radius: ",";\n\n  ","\n\n  ","\n\n  "," {\n    margin-bottom: ",";\n\n    ","\n  }\n"]);return FeaturedArticles_styles_templateObject1=function(){return e},e}function FeaturedArticles_styles_templateObject2(){let e=(0,h._)(["\n    "," {\n      border-top-color: ",";\n    }\n\n    "," {\n      background-color: ",";\n      color: ",";\n      border-color: ",";\n    }\n  "]);return FeaturedArticles_styles_templateObject2=function(){return e},e}function FeaturedArticles_styles_templateObject3(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n"]);return FeaturedArticles_styles_templateObject3=function(){return e},e}function FeaturedArticles_styles_templateObject4(){let e=(0,h._)(["\n  padding: ",";\n  border-top: 1px solid #DAD6D6;\n\n  &:last-child {\n    border-bottom: 1px solid #DAD6D6;\n  }\n"]);return FeaturedArticles_styles_templateObject4=function(){return e},e}let iS=g.ZP.div.withConfig({componentId:"sc-b1671dee-0"})(FeaturedArticles_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-bottom: ".concat(t.rem(40),";\n  "))}),ik=g.ZP.a.withConfig({componentId:"sc-b1671dee-1"})(FeaturedArticles_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(60,40)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: ".concat(t.rem(40),";\n  "),!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(24,16),";\n    margin-bottom: ").concat(t.rem(24),";\n  "),!0)},ix,e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      margin-bottom: ".concat(t.rem(24),";\n    "),!0)}),iP=g.ZP.div.withConfig({componentId:"sc-b1671dee-2"}
1)(FeaturedArticles_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(FeaturedArticles_styles_templateObject2(),iS,t.colorScheme["".concat(n)].surface.borderPrimary,ik,t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,t.colorScheme["".concat(n)].surface.borderPrimary)}),iI=g.ZP.div.withConfig({componentId:"sc-b1671dee-3"})(FeaturedArticles_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(10,0)}),FeaturedArticles_FeaturedArticles=e=>{let{sectionId:t,title:n,subtitle:l,article:a,latestArticles:o}=e,{selectedColorScheme:c}=(0,i.useContext)(s.x);return(0,r.jsx)(iP,{colorScheme:c,as:"section",id:t,children:(0,r.jsxs)(p.W2,{children:[(0,r.jsx)(iS,{}),n?(0,r.jsx)(u.nv,{typo:"headingLG",content:n,weight:"semibold"}):null,l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{typo:"paragraphLG",content:l,textSecondary:!0})]}):null,(0,r.jsx)(p.Nz,{xs:3,md:5}),(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:12,lg:9,children:a?(0,r.jsx)(tv.Z,{href:"".concat(a.slug),children:(0,r.jsxs)(ik,{href:"".concat(a.slug),children:[a.date||a.categories&&a.categories.length>0?(0,r.jsx)(molecules_PostInfo,{date:a.date,categories:a.categories}):null,a.title?(0,r.jsx)(u.X6,{typo:"displayMD",content:a.title,fontPrimary:!0}):null,a.excerpt?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphLG",content:a.excerpt,textSecondary:!0})]}):null]})}):null}),(0,r.jsxs)(p.JX,{xs:12,lg:3,$direction:"column",children:[(0,r.jsx)(u.X6,{typo:"displaySM",content:"Ultimi articoli"}),(0,r.jsx)(p.Nz,{xs:1}),o&&o.length>0?o.map((e,t)=>(0,r.jsx)(iI,{children:(0,r.jsx)(molecules_CardArticleMin,{...e})},"FeaturedArticles-CardArticleMin-".concat(t,"-").concat(e.id))):null]})]})]})})};FeaturedArticles_FeaturedArticles.propTypes={type:a().oneOf(["FeaturedArticles"]),sectionId:a().string,colorScheme:o.hl,title:a().string,subtitle:a().string,article:a().object,latestArticles:a().array};var iT=FeaturedArticles_FeaturedArticles;function CardFeatures_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n"]);return CardFeatures_styles_templateObject=function(){return e},e}function CardFeatures_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  aspect-ratio: 4 / 3;\n  border-radius: ",";\n  overflow: hidden;\n  \n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return CardFeatures_styles_templateObject1=function(){return e},e}let iZ=g.ZP.div.withConfig({componentId:"sc-83990363-0"})(CardFeatures_styles_templateObject()),iz=g.ZP.div.withConfig({componentId:"sc-83990363-1"})(CardFeatures_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(8)});var molecules_CardFeatures=e=>{let{type:t,image:n,preTitle:i,title:l,subtitle:a,cta:o,modal:s}=e,{showModal:c}=(0,b.dd)();return(0,r.jsxs)(iZ,{children:[n?"FeatureListIllustrative"==t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(iz,{children:(0,r.jsx)(d(),{src:null==n?void 0:n.src,alt:null==n?void 0:n.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 50vw"})}),(0,r.jsx)(p.Nz,{xs:2})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d(),{...n,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 50vw"}),(0,r.jsx)(p.Nz,{xs:2})]}):null,i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"label",content:i,weight:"semibold",uppercase:!0}),(0,r.jsx)(p.Nz,{xs:1})]}):null,l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"FeatureListStatistic"==t?"headingXXL":"headingMD",content:l,weight:"semibold"}),(0,r.jsx)(p.Nz,{xs:2})]}):null,a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",content:a,textSecondary:!0}),(0,r.jsx)(p.Nz,{xs:2})]}):null,o?(0,r.jsx)(r.Fragment,{children:s?(0,r.jsx)(m.Z,{...o,target:void 0,href:void 0,handleClick:()=>{c(Modal_ModalNewsletter,{modal:s})},variant:"tertiary",iconEnd:"arrow-right",noHorizontalPadding:!0}):(0,r.jsx)(m.Z,{...o,variant:"tertiary",iconEnd:"arrow-right",noHorizontalPadding:!0})}):null]})};
1function FeaturesLists_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  padding-bottom: ",";\n  border-top: 1px solid;\n\n  /* "," */\n"]);return FeaturesLists_styles_templateObject=function(){return e},e}function FeaturesLists_styles_templateObject1(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      border-top-color: ",";\n    }\n  "]);return FeaturesLists_styles_templateObject1=function(){return e},e}function FeaturesLists_styles_templateObject2(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n"]);return FeaturesLists_styles_templateObject2=function(){return e},e}let iF=g.ZP.div.withConfig({componentId:"sc-8ea4d10c-0"})(FeaturesLists_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-bottom: ".concat(t.rem(24),";\n  "))}),iE=g.ZP.div.withConfig({componentId:"sc-8ea4d10c-1"})(FeaturesLists_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(FeaturesLists_styles_templateObject1(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,iF,t.colorScheme["".concat(n)].surface.borderPrimary)}),FeaturesLists_FeaturesLists=e=>{let{sectionId:t,type:n,sectionTitle:l,items:a,ctaPrimary:o,ctaSecondary:c}=e,{selectedColorScheme:d}=(0,i.useContext)(s.x),h=a.length>3?3:3==a.length?4:2==a.length?6:3;return(0,r.jsx)(iE,{colorScheme:d,as:"section",id:t,children:(0,r.jsxs)(p.W2,{children:[(0,r.jsx)(iF,{}),l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.X6,{as:l.as,typo:l.typo,fontPrimary:!0,children:l.content}),(0,r.jsx)(p.Nz,{xs:5})]}):null,a&&a.length>0?(0,r.jsx)(p.X2,{children:a.map((e,t)=>(0,r.jsxs)(p.JX,{xs:12,md:6,lg:h,$direction:"column",align:"flex-start",children:[(0,r.jsx)(molecules_CardFeatures,{...e,type:n}),(0,r.jsx)(p.Nz,{xs:5})]},"FeaturesLists-".concat(n,"-").concat(t,"-").concat(e.id)))}):null,o||c?(0,r.jsxs)(ItemsGrouped,{direction:{xs:"column",md:"row"},space:{xs:16,md:24},children:[o?(0,r.jsx)(m.Z,{...o,variant:"primary",iconEnd:"arrow-right"}):null,c?(0,r.jsx)(m.Z,{...c,variant:"secondary",iconEnd:"chevron-right"}):null]}):null]})})};FeaturesLists_FeaturesLists.propTypes={type:a().oneOf(["FeatureListInformative","FeatureListIconic","FeatureListIllustrative","FeatureListStatistic"]),sectionId:a().string,colorScheme:o.hl,sectionTitle:o.DN,items:a().array,ctaPrimary:o.$Z,ctaSecondary:o.$Z};var iM=FeaturesLists_FeaturesLists;function FormSection_styles_templateObject(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n  "]);return FormSection_styles_templateObject=function(){return e},e}function FormSection_styles_templateObject1(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n"]);return FormSection_styles_templateObject1=function(){return e},e}function FormSection_styles_templateObject2(){let e=(0,h._)(["\n  position: relative;\n  aspect-ratio: 6 / 8;\n  border-radius: ",";\n  overflow: hidden;\n\n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return FormSection_styles_templateObject2=function(){return e},e}let iA=g.ZP.div.withConfig({componentId:"sc-b7e00cb6-0"})(FormSection_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(FormSection_styles_templateObject(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)}),iB=g.ZP.div.withConfig({componentId:"sc-b7e00cb6-1"})(FormSection_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    aspect-ratio: 3 / 4;\n    margin-bottom: ".concat(t.rem(24),";\n  "),!0)}),FormSection_FormSection=e=>{let{sectionId:t,title:n,subtitle:l,image:a,form:o}=e,{selectedColorScheme:c}=(0,i.useContext)(s.x),{formData:m}=hooks_useFormData(o),[h,g]=(0,i.useState)(!1);return(0,r.jsx)(iA,{as:"section",colorScheme:c,id:t,children:(0,r.jsx)(p.W2,{children:(0,r.jsxs)(p.X2,{children:[a&&(null==a?void 0:a.src)?(0,r.jsx)(p.JX,{xs:12,lg:5,children:(0,r.jsx)(iB,{children:(0,r.jsx)(d(),{src:a.src,alt:a.alt,fill:!0,sizes:"(max-width: 768px) 500vw, (max-width: 1200px) 50vw, 100vw"})})}):null,(0,r.jsxs)(p.JX,{xs:12,lg:a?7:12,children:[h?null:(0,r.jsxs)(r.Fragment,{children:[n?(0,r.jsx)(u.X6,{...n,fontPrimary:!0}):null,l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{...l,weight:"semibold",textSecondary:!0}),(0,r.jsx)(p.Nz,{xs:5})]}):null]}),m?(0,r.jsx)(atoms_Form,{...m,onSuccessSubmit:()=>{g(!0)}}):null]})]})})})};FormSection_FormSection.propTypes={sectionId:a().string,title:o.DN,subtitle:o.DN,formType:a().string};var iN=FormSection_FormSection,iD=n(92840);
1function Hero_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  padding-bottom: ",";\n  border-top: 1px solid;\n\n  ","\n"]);return Hero_styles_templateObject=function(){return e},e}function Hero_styles_templateObject1(){let e=(0,h._)(["\n  position: absolute;\n\n  ","\n"]);return Hero_styles_templateObject1=function(){return e},e}function Hero_styles_templateObject2(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      border-top-color: ",";\n    }\n\n    "," {\n      svg {\n        path {\n          stroke: ",";\n        }\n      }\n    }\n  "]);return Hero_styles_templateObject2=function(){return e},e}function Hero_styles_templateObject3(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  ","\n\n  "," {\n    margin-bottom: ",";\n  }\n"]);return Hero_styles_templateObject3=function(){return e},e}function Hero_styles_templateObject4(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  gap: ",";\n\n  ","\n"]);return Hero_styles_templateObject4=function(){return e},e}function Hero_styles_templateObject5(){let e=(0,h._)([""]);return Hero_styles_templateObject5=function(){return e},e}function Hero_styles_templateObject6(){let e=(0,h._)(["\n  position: relative;\n\n  ","\n"]);return Hero_styles_templateObject6=function(){return e},e}function Hero_styles_templateObject7(){let e=(0,h._)(["\n    mask-image: url('/masks/mask-",".svg');\n    mask-size: 100%;\n    mask-repeat: no-repeat;\n    mask-position: center;\n  "]);return Hero_styles_templateObject7=function(){return e},e}function Hero_styles_templateObject8(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  aspect-ratio: 4 / 4;\n\n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return Hero_styles_templateObject8=function(){return e},e}function Hero_styles_templateObject9(){let e=(0,h._)(["\n  bottom: 0;\n  right: 0;\n  z-index: 2;\n\n  svg {\n    path {\n      stroke-width: 2;\n      stroke-dasharray: 0;\n      stroke-dashoffset: 0;\n    }\n  }\n"]);return Hero_styles_templateObject9=function(){return e},e}function Hero_styles_templateObject10(){let e=(0,h._)(["\n  top: 0;\n  left: 0;\n  transform: translate(-30px, -30px);\n  z-index: 2;\n\n  ","\n"]);return Hero_styles_templateObject10=function(){return e},e}function Hero_styles_templateObject11(){let e=(0,h._)(["\n  top: 0;\n  left: 0;\n  transform: translate(30px, -10px);\n  z-index: 0;\n"]);return Hero_styles_templateObject11=function(){return e},e}let iR=g.ZP.div.withConfig({componentId:"sc-ee6150ff-0"})(Hero_styles_templateObject(),e=>{let{theme:t,imageIllustration:n}=e;return t.rem(n?60:24)},e=>{let{theme:t,imageIllustration:n}=e;return t.mediaQuery.lg("\n    padding-bottom: ".concat(t.rem(n?40:24),";\n  "),!0)}),iL=g.ZP.div.withConfig({componentId:"sc-ee6150ff-1"})(Hero_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    svg {\n      width: 140px;\n      height: auto;\n    }\n  ",!0)}),iQ=g.ZP.div.withConfig({componentId:"sc-ee6150ff-2"})(Hero_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(Hero_styles_templateObject2(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,iR,t.colorScheme["".concat(n)].surface.borderPrimary,iL,t.colorScheme["".concat(n)].surface.colorIcon)},ix,e=>{let{theme:t}=e;return t.rem(40)}),iq=g.ZP.div.withConfig({componentId:"sc-ee6150ff-3"})(Hero_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: auto;\n    flex-direction: row;\n  ")}),iH=(0,g.ZP)(p.JX).withConfig({componentId:"sc-ee6150ff-4"})(Hero_styles_templateObject5()),iV=(0,g.ZP)(p.JX).withConfig({componentId:"sc-ee6150ff-5"})(Hero_styles_templateObject6(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: ".concat(t.rem(24),";\n  "),!0)}),iX=g.ZP.div.withConfig({componentId:"sc-ee6150ff-6"}
1)(Hero_styles_templateObject8(),e=>{let{maskType:t}=e;return t&&(0,g.iv)(Hero_styles_templateObject7(),t)}),iU=(0,g.ZP)(iL).withConfig({componentId:"sc-ee6150ff-7"})(Hero_styles_templateObject9()),iG=(0,g.ZP)(iL).withConfig({componentId:"sc-ee6150ff-8"})(Hero_styles_templateObject10(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    transform: translate(0, -30px);\n  ",!0)}),iW=(0,g.ZP)(iL).withConfig({componentId:"sc-ee6150ff-9"})(Hero_styles_templateObject11()),Hero_Hero=e=>{let{sectionId:t,title:n,subtitle:l,body:a,ctaPrimary:o,ctaSecondary:c,image:h,imageShape:g,imageIllustration:f,imagePosition:b,date:y,categories:_}=e,{selectedColorScheme:x}=(0,i.useContext)(s.x);return(0,r.jsx)(iQ,{colorScheme:x,as:"section",id:t,children:(0,r.jsxs)(p.W2,{children:[(0,r.jsx)(iR,{imageIllustration:f}),(0,r.jsxs)(p.X2,{reverse:"right"!=b&&["lg","xl","xxl"],children:[(0,r.jsxs)(iH,{xs:12,lg:5,$offset:"right"==b?null:{lg:1},$order:{xs:2,lg:1},$direction:"column",justify:"center",align:"flex-start",children:[y||_&&_.length>0?(0,r.jsx)(molecules_PostInfo,{date:y,categories:_}):null,n?(0,r.jsx)(u.X6,{as:n.as,typo:n.typo,fontPrimary:!0,children:n.content}):null,l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"headingSM",content:l,weight:"semibold",textSecondary:!0})]}):null,a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{as:"div",typo:"paragraphMD",textSecondary:!0,children:a})]}):null,o||c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:5}),(0,r.jsxs)(iq,{children:[o&&(null==o?void 0:o.label)?(0,r.jsx)(m.Z,{...o,variant:"primary",iconEnd:"arrow-right",fullWidth:["xs","sm","md"]}):null,c&&(null==c?void 0:c.label)?(0,r.jsx)(m.Z,{...c,variant:"tertiary",iconEnd:"arrow-right",fullWidth:["xs","sm","md"]}):null]})]}):null]}),(0,r.jsxs)(iV,{xs:12,lg:6,$offset:"right"==b?{lg:1}:null,$order:{xs:1,lg:2},align:"center",children:[f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(iG,{children:(0,r.jsx)(iD.Mi,{})}),(0,r.jsx)(iW,{children:(0,r.jsx)(iD.Mi,{})})]}):null,(0,r.jsx)(iX,{maskType:g,children:h?(0,r.jsx)(d(),{src:h.src,alt:h.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw"}):null}),f?(0,r.jsx)(iU,{children:(0,r.jsx)(iD.Qu,{})}):null]})]})]})})};Hero_Hero.propTypes={type:a().oneOf(["Hero","HeroArticle"]),sectionId:a().string,colorScheme:o.hl,title:o.DN,subtitle:a().string,body:a().string,ctaPrimary:o.$Z,ctaSecondary:o.$Z,image:o.XR,imageShape:a().oneOf(["star","circle","square","cross"]),imageIllustration:a().bool,imagePosition:a().oneOf(["right","left"]),date:a().string,categories:a().array};var iJ=Hero_Hero;function HeroHomepage_styles_templateObject(){let e=(0,h._)(["\n  letter-spacing: 0.5px;\n  text-transform: uppercase;\n"]);return HeroHomepage_styles_templateObject=function(){return e},e}function HeroHomepage_styles_templateObject1(){let e=(0,h._)(["\n    cursor: pointer;\n  "]);return HeroHomepage_styles_templateObject1=function(){return e},e}function HeroHomepage_styles_templateObject2(){let e=(0,h._)(["\n  letter-spacing: -1.5px;\n  max-width: ",";\n\n  /* If href attribute is passed */\n  ","\n"]);return HeroHomepage_styles_templateObject2=function(){return e},e}function HeroHomepage_styles_templateObject3(){let e=(0,h._)(["\n  max-width: ",";\n"]);return HeroHomepage_styles_templateObject3=function(){return e},e}function HeroHomepage_styles_templateObject4(){let e=(0,h._)(["\n  width: 100%;\n  height: auto;\n  display: flex;\n  flex-direction: column;\n  padding-block: ",";\n  min-height:  ",";\n\n  @media (min-width: 1199px) {\n    flex-direction: row;\n    margin-block-end: -4px;\n     min-height: unset;\n  }\n"]);return HeroHomepage_styles_templateObject4=function(){return e},e}function HeroHomepage_styles_templateObject5(){let e=(0,h._)(["\n  min-height: ",";\n  max-height: ",";\n  width: 100%;\n  position: relative;\n  overflow: hidden;\n\n  ","\n\n  ","\n\n  @keyframes coverRTL {\n    100% {\n      transform: translateX(-100%);\n    }\n  }\n"]);return HeroHomepage_styles_templateObject5=function(){return e},e}
1function HeroHomepage_styles_templateObject6(){let e=(0,h._)(["\n    cursor: pointer;\n  "]);return HeroHomepage_styles_templateObject6=function(){return e},e}function HeroHomepage_styles_templateObject7(){let e=(0,h._)(["\n  object-fit: cover;\n  width: 100%;\n  height: 100%;\n\n  /* If href attribute is passed */\n  ","\n"]);return HeroHomepage_styles_templateObject7=function(){return e},e}function HeroHomepage_styles_templateObject8(){let e=(0,h._)(["\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n  justify-content: space-between;\n  padding-block: ",";\n  padding-bottom: ",";\n  padding-inline: ",";\n\n\n  ","\n"]);return HeroHomepage_styles_templateObject8=function(){return e},e}function HeroHomepage_styles_templateObject9(){let e=(0,h._)([""]);return HeroHomepage_styles_templateObject9=function(){return e},e}function HeroHomepage_styles_templateObject10(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  gap: ",";\n"]);return HeroHomepage_styles_templateObject10=function(){return e},e}function HeroHomepage_styles_templateObject11(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  width: fit-content;\n"]);return HeroHomepage_styles_templateObject11=function(){return e},e}function HeroHomepage_styles_templateObject12(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  justify-self: flex-end;\n  align-items: start;\n  gap: ",";\n  margin-block-start: ",";\n\n\n  ","\n"]);return HeroHomepage_styles_templateObject12=function(){return e},e}function HeroHomepage_styles_templateObject13(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  gap: ",";\n  position: absolute;\n  bottom: auto;\n  top: 410px;\n  left: 50%;\n  margin: auto;\n  z-index: 10;\n  transform: translateX(-50%);\n\n  ","\n\n  ","\n\n  & > .swiper-pagination-bullet {\n    min-width: 77.5px;\n    max-width: 77.5px;\n    height: 4px;\n    background-color: #dad6d6;\n    border: none;\n    cursor: pointer;\n\n    ","\n\n    &-active {\n      background-color: #ffb683;\n    }\n  }\n"]);return HeroHomepage_styles_templateObject13=function(){return e},e}function HeroHomepage_styles_templateObject14(){let e=(0,h._)([""]);return HeroHomepage_styles_templateObject14=function(){return e},e}function HeroHomepage_styles_templateObject15(){let e=(0,h._)(["\n    background-color: ",";\n  "]);return HeroHomepage_styles_templateObject15=function(){return e},e}function HeroHomepage_styles_templateObject16(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  overflow: hidden;\n  box-sizing: border-box;\n  color: #1B1818;\n\n  ","\n\n  .swiper {\n    overflow: visible !important;\n  }\n\n  .swiper-slide {\n   opacity: 0 !important;\n    width: 90% !important;\n    max-width: 90%;\n    box-sizing: border-box;\n    align-self: stretch;\n    transition: opacity 0.3s;\n\n    @media (min-width: 576px){\n      width: 95% !important;\n      max-width: 95% !important;\n    }\n\n    @media (min-width: 1300px) and (max-width: 1919px) {\n      width: 100% !important;\n      max-width: 100% !important;\n    }\n  }\n\n  .swiper-slide-active,\n  .swiper-slide-next,\n  .swiper-slide-next + .swiper-slide,\n  .swiper-slide-next + .swiper-slide + .swiper-slide,\n  .swiper-slide-next + .swiper-slide + .swiper-slide + .swiper-slide {\n    opacity: 1 !important;\n    transition: opacity 0.3s;\n  }\n    \n  .swiper-slide:only-child {\n    width: 100% !important;\n    max-width: 100% !important;\n  }\n\n  .swiper-slide:last-child:not(:only-child) {\n    width: 100% !important;\n    max-width: 100% !important;\n    padding-right: "," !important;\n  }\n"]);return HeroHomepage_styles_templateObject16=function(){return e},e}function HeroHomepage_styles_templateObject17(){let e=(0,h._)(["\n  position: absolute;\n  top: 117px;\n  left: -40px;\n  z-index: 20;\n  background: #fff;\n  border: 1px solid #3B3838;\n  color: #3B3838;\n  border-radius: 50%;\n  width:  ",";\n  height:  ",";\n  display: flex;\n  align-items: center;\n  cursor: pointer;\n  transition: background 0.2s, color 0.2s, opacity 0.2s;\n  &:hover {\n    background: #F5B98B;\n  }\n  &:disabled {\n    display: none !important;\n  }\n\n  & > i {\n    margin-left: 40px;\n  }\n\n  ","\n"]);
1return HeroHomepage_styles_templateObject17=function(){return e},e}function HeroHomepage_styles_templateObject18(){let e=(0,h._)(["\n  left: auto;\n  right: -40px;\n\n  & > i {\n    margin-left: 10px;\n  }\n"]);return HeroHomepage_styles_templateObject18=function(){return e},e}let i$=(0,g.ZP)(u.nv).withConfig({componentId:"sc-dfa21c6b-0"})(HeroHomepage_styles_templateObject()),iY=(0,g.ZP)(u.X6).withConfig({componentId:"sc-dfa21c6b-1"})(HeroHomepage_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(560)},e=>{let{href:t}=e;return t&&(0,g.iv)(HeroHomepage_styles_templateObject1())}),iK=g.ZP.div.withConfig({componentId:"sc-dfa21c6b-2"})(HeroHomepage_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(560)}),i0=g.ZP.div.withConfig({componentId:"sc-dfa21c6b-3"})(HeroHomepage_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(30)},e=>{let{theme:t}=e;return t.rem(630)}),i1=g.ZP.div.withConfig({componentId:"sc-dfa21c6b-4"})(HeroHomepage_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(245)},e=>{let{theme:t}=e;return t.rem(310)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      max-width: 100%;\n      min-height:  ".concat(t.rem(280),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.xl("\n      max-width: ".concat(t.rem(555),";\n      max-height: 100%;\n  "))}),i2=(0,g.ZP)(d()).withConfig({componentId:"sc-dfa21c6b-5"})(HeroHomepage_styles_templateObject7(),e=>{let{href:t}=e;return t&&(0,g.iv)(HeroHomepage_styles_templateObject6())}),i4=g.ZP.div.withConfig({componentId:"sc-dfa21c6b-6"})(HeroHomepage_styles_templateObject8(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(0)},e=>{let{theme:t}=e;return t.mediaQuery.xl("\n      display: flex;\n      flex-direction: column;\n      justify-content: space-between;\n      padding-inline: ".concat(t.rem(24),";\n      padding-block: ").concat(t.rem(0,8),";\n  "))});g.ZP.div.withConfig({componentId:"sc-dfa21c6b-7"})(HeroHomepage_styles_templateObject9());let i6=g.ZP.div.withConfig({componentId:"sc-dfa21c6b-8"})(HeroHomepage_styles_templateObject10(),e=>{let{theme:t}=e;return t.rem(8)}),i5=g.ZP.div.withConfig({componentId:"sc-dfa21c6b-9"})(HeroHomepage_styles_templateObject11()),i3=g.ZP.div.withConfig({componentId:"sc-dfa21c6b-10"})(HeroHomepage_styles_templateObject12(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    flex-direction: row;\n    gap: ".concat(t.rem(24),";\n    align-items: center;\n  "))});g.ZP.div.withConfig({componentId:"sc-dfa21c6b-11"})(HeroHomepage_styles_templateObject13(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    top: 520px;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    justify-content: flex-start;\n    margin: auto auto auto 0;\n    bottom: ".concat(t.rem(32),";\n    top: auto;\n    left: ").concat(t.rem(80),";\n    transform: translateX(0);\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      min-width: 93px;\n      max-width: 93px;\n    ")}),g.ZP.button.withConfig({componentId:"sc-dfa21c6b-12"})(HeroHomepage_styles_templateObject14());let i8=g.ZP.section.withConfig({componentId:"sc-dfa21c6b-13"})(HeroHomepage_styles_templateObject16(),e=>{let{hexBgColor:t}=e;return t&&(0,g.iv)(HeroHomepage_styles_templateObject15(),t)},e=>{let{theme:t}=e;return t.rem(40)}),i9=g.ZP.button.withConfig({componentId:"sc-dfa21c6b-14"})(HeroHomepage_styles_templateObject17(),e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.rem(80)},e=>{let{theme:t}=e;return t.mediaQuery.xl("\n       top: 50%;\n       transform: translateY(-50%);\n  ")}),i7=(0,g.ZP)(i9).withConfig({componentId:"sc-dfa21c6b-15"})(HeroHomepage_styles_templateObject18());var le=n(41664),lt=n.n(le);let ln=(0,i.forwardRef)((e,t)=>{let{item:n,index:i}=e,{image:l,title:a,preTitle:o,subtitle:s,body:c,ctaPrimary:d,ctaTertiary:p}=n,h=d||p,handleTitleScrollTo=e=>{if(!e)return;let t=document.getElementById(e);if(t){let e=t.getBoundingClientRect().top+window.scrollY-104;window.scrollTo({top:e,behavior:"smooth"});let n=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not
1([tabindex="-1"])');n&&n.length>0&&n[0].focus({preventScroll:!0})}},g=l?(0,N.Z)(l):null;return(0,r.jsxs)(i0,{ref:t,children:[(0,r.jsx)(i1,{children:g?h&&(h.href||h.scrollTo)?(0,r.jsx)(lt(),{href:h.href,target:h.target||"_self",children:(0,r.jsx)(i2,{src:g.src,alt:g.alt,priority:0===i,fill:!0,onClick:h.scrollTo?()=>handleTitleScrollTo(h.scrollTo):void 0,role:h.href?void 0:"link",tabIndex:h.href?void 0:0})}):(0,r.jsx)(i2,{src:g.src,alt:g.alt,priority:0===i,fill:!0}):null}),(0,r.jsxs)(i4,{children:[(0,r.jsxs)(i6,{children:[o?(0,r.jsx)(i5,{children:(0,r.jsx)(i$,{typo:"paragraphSM",content:o,weight:"semibold"})}):null,a?h&&(h.href||h.scrollTo)?(0,r.jsx)(lt(),{href:h.href,target:h.target||"_self",children:(0,r.jsx)(iY,{...a,as:u.X6,forwardedAs:a.as,typo:a.typo,content:a.content,fontPrimary:!0,onClick:h.scrollTo?()=>handleTitleScrollTo(h.scrollTo):void 0,role:h.href?void 0:"link",tabIndex:h.href?void 0:0})}):(0,r.jsx)(iY,{...a,as:u.X6,forwardedAs:a.as,typo:a.typo,content:a.content,fontPrimary:!0}):null,s?(0,r.jsx)(iK,{children:(0,r.jsx)(u.nv,{...s,typo:s.typo||'"headingSM"',weight:"semibold",textSecondary:!0})}):null,c?(0,r.jsx)(u.nv,{typo:"paragraphMD",content:c,textSecondary:!0}):null]}),d||p?(0,r.jsxs)(i3,{children:[d?(0,r.jsx)(m.Z,{...d,variant:"primary",iconEnd:"arrow-right"}):null,p?(0,r.jsx)(m.Z,{...p,variant:"tertiary",iconEnd:"arrow-right"}):null]}):null]})]})});ln.displayName="HeroHomepageSlide";var organisms_HeroHomepage=e=>{let{sectionId:t,items:n,hexBgColor:l}=e,a=(0,i.useRef)(null),o=(0,i.useRef)(null),c=(0,i.useRef)([]),[d,u]=(0,i.useState)(null),[m,h]=(0,i.useState)(null),{selectedColorScheme:g}=(0,i.useContext)(s.x),updateNavButtons=e=>{e&&(a.current&&(a.current.disabled=e.isBeginning),o.current&&(o.current.disabled=e.isEnd))},calculateMaxHeight=()=>{if(!c.current||0===c.current.length)return;let e=0;c.current.forEach(t=>{if(t){t.style.height="auto";let n=t.offsetHeight;n>e&&(e=n)}}),e>0&&(h(e),c.current.forEach(t=>{t&&(t.style.height="".concat(e,"px"))}))};return(0,i.useEffect)(()=>{if(!d)return;let update=()=>updateNavButtons(d);return d.on("slideChange",update),update(),()=>{d.off("slideChange",update)}},[d]),(0,i.useEffect)(()=>{if(!d||!n||0===n.length)return;let e=setTimeout(()=>{calculateMaxHeight()},100),handleResize=()=>{c.current.forEach(e=>{e&&(e.style.height="auto")}),setTimeout(calculateMaxHeight,50)};return window.addEventListener("resize",handleResize),()=>{clearTimeout(e),window.removeEventListener("resize",handleResize)}},[d,n]),(0,r.jsx)(i8,{id:t,hexBgColor:l,children:(0,r.jsxs)(p.W2,{children:[d&&d.slides&&(0,r.jsx)(i9,{ref:a,onClick:()=>d.slidePrev(),colorScheme:g,"aria-label":"Vai alla slide precedente",role:"button",children:(0,r.jsx)(y.Z,{name:"chevron-left"})}),(0,r.jsx)(et.tq,{onSwiper:u,modules:[ee.tl,ee.LW,ee.s5],spaceBetween:40,breakpoints:{0:{spaceBetween:24},450:{spaceBetween:40}},slidesPerView:"auto",children:Array.isArray(n)?n.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(ln,{item:e,index:t,ref:e=>{c.current[t]=e}})},"HeroHomepageSlide-".concat(t,"-").concat(null==e?void 0:e.id))):null}),d&&d.slides&&(0,r.jsx)(i7,{ref:o,onClick:()=>d.slideNext(),colorScheme:g,"aria-label":"Vai alla slide successiva",role:"button",children:(0,r.jsx)(y.Z,{name:"chevron-right"})})]})})};function Iframe_styles_templateObject(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n  "]);return Iframe_styles_templateObject=function(){return e},e}function Iframe_styles_templateObject1(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n\n  iframe {\n    width: 100%;\n  }\n"]);return Iframe_styles_templateObject1=function(){return e},e}let lr=g.ZP.div.withConfig({componentId:"sc-2100a752-0"})(Iframe_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(Iframe_styles_templateObject(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)});var li=n(58104);let Iframe_Iframe=e=>{let{sectionId:t,url:n,iframeLabel:l,height:a=500}=e,{selectedColorScheme:o}=(0,i.useContext)(s.x),[c,d]=(0,i.useState)(n||"");return(0,i.useEffect)(()=>
1{if(!n){d("");return}try{let e=new URL(n,window.location.origin),t=window.location.href.replace(/\//g,"|"),r=document.title.split("|")[0].trim();e.searchParams.set("url_origine",t),e.searchParams.set("title",r),d(e.toString())}catch(e){console.error("Invalid iframe url:",n,e),d(n)}},[n]),(0,r.jsx)(lr,{colorScheme:o,as:"section",id:t,children:(0,r.jsx)(p.W2,{children:(0,r.jsx)(li.Z,{license:"1jy4dww5qzv-s54r73oxcn-v59f4kfgfz",src:c,title:l,style:{width:"100%",height:"".concat(a,"px")},waitForLoad:!0})})})};Iframe_Iframe.propTypes={type:a().string,sectionId:a().string,colorScheme:o.hl,url:a().string,iframeLabel:a().string,height:a().number};var ll=Iframe_Iframe;function Image_styles_templateObject(){let e=(0,h._)(["\n      background-color: ",";\n    "]);return Image_styles_templateObject=function(){return e},e}function Image_styles_templateObject1(){let e=(0,h._)(["\n    ","\n\n    /* "," */\n\n    ","\n  "]);return Image_styles_templateObject1=function(){return e},e}function Image_styles_templateObject2(){let e=(0,h._)(["\n  ","\n"]);return Image_styles_templateObject2=function(){return e},e}function Image_styles_templateObject3(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n\n  ","\n\n  ","\n  \n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return Image_styles_templateObject3=function(){return e},e}function Image_styles_templateObject4(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n\n  ","\n  \n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return Image_styles_templateObject4=function(){return e},e}function Image_styles_templateObject5(){let e=(0,h._)(["\n  width: 100%;\n  max-width: ",";\n  position: relative;\n\n  ","\n  \n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return Image_styles_templateObject5=function(){return e},e}let la=g.ZP.div.withConfig({componentId:"sc-e01b69ff-0"})(Image_styles_templateObject2(),e=>{let{variant:t}=e;return"ImageFull"!=t&&(0,g.iv)(Image_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n      padding: ".concat(t.rem(24,0),";\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      padding: ".concat(t.rem(40,0),";\n    "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(Image_styles_templateObject(),t.colorScheme["".concat(n)].surface.backgroundColor)})}),lo=g.ZP.div.withConfig({componentId:"sc-e01b69ff-1"})(Image_styles_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.xs("\n    aspect-ratio: 4 / 7;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    aspect-ratio: 4 / 4;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    aspect-ratio: 16 / 9;\n  ")}),ls=g.ZP.div.withConfig({componentId:"sc-e01b69ff-2"})(Image_styles_templateObject4(),e=>{let{theme:t}=e;return t.mediaQuery.xs("\n    aspect-ratio: 4 / 3;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    aspect-ratio: 16 / 9;\n  ")}),lc=g.ZP.div.withConfig({componentId:"sc-e01b69ff-3"})(Image_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(1920)},e=>{let{theme:t}=e;return t.mediaQuery.xs("\n    aspect-ratio: 4 / 3;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    aspect-ratio: 16 / 9;\n  ")});var variants_ImageRightAligned=e=>{let{image:t}=e;return(0,r.jsx)(p.W2,{children:(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,lg:11,$offset:{lg:1},children:(0,r.jsx)(lo,{children:(0,r.jsx)(d(),{src:t.src,alt:t.alt,fill:!0,sizes:"100vw"})})})})})},variants_ImageContainerized=e=>{let{image:t}=e;return(0,r.jsx)(p.W2,{children:(0,r.jsx)(ls,{children:(0,r.jsx)(d(),{src:t.src,alt:t.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw"})})})},variants_ImageFull=e=>{let{image:t}=e;return(0,r.jsx)(lc,{children:(0,r.jsx)(d(),{src:t.src,alt:t.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw"})})};let Image_Image=e=>{let{sectionId:t,type:n,...l}=e,{selectedColorScheme:a}=(0,i.useContext)(s.x),o={ImageRightAligned:variants_ImageRightAligned,ImageContainerized:variants_ImageContainerized,ImageFull:variants_ImageFull}[n];return o?(0,r.jsx)(la,{colorScheme:a,variant:n,as:"section",id:t,children:(0,r.jsx)(o,{...l})}):null};Image_Image.propTypes={type:a().oneOf(["ImageRightAligned","ImageContainerized","ImageFull"]),sectionId:a().string,colorScheme:o.hl,image:o.XR.isRequired};var ld=Image_Image;
1function Signup_styles_templateObject(){let e=(0,h._)(["\n  width: 100vw;\n  height: 100vh;\n  padding: ",";\n  position: fixed;\n  top: 0;\n  z-index: 1000;\n  background-color: ",";\n  overflow-y: scroll;\n\n  ","\n"]);return Signup_styles_templateObject=function(){return e},e}function Signup_styles_templateObject1(){let e=(0,h._)(["\n  ","\n"]);return Signup_styles_templateObject1=function(){return e},e}function Signup_styles_templateObject2(){let e=(0,h._)(["\n  display: none;\n\n  ","\n"]);return Signup_styles_templateObject2=function(){return e},e}function Signup_styles_templateObject3(){let e=(0,h._)(["\n  i {\n    font-size: ",";\n  }\n"]);return Signup_styles_templateObject3=function(){return e},e}function Signup_styles_templateObject4(){let e=(0,h._)(["\n  background-color: ",";\n\n  ","\n"]);return Signup_styles_templateObject4=function(){return e},e}function Signup_styles_templateObject5(){let e=(0,h._)(["\n  ",";\n\n  a {\n    font-weight: bold;\n    text-decoration: underline;\n  }\n"]);return Signup_styles_templateObject5=function(){return e},e}function Signup_styles_templateObject6(){let e=(0,h._)(["\n  color: ",";\n  text-transform: center;\n"]);return Signup_styles_templateObject6=function(){return e},e}function Signup_styles_templateObject7(){let e=(0,h._)(["\n  display: inline-flex;\n  margin-right: ",";\n  i {\n    font-size: ",";\n    margin-right: ",";\n  }\n"]);return Signup_styles_templateObject7=function(){return e},e}let lu=g.ZP.div.withConfig({componentId:"sc-f9b7e621-0"})(Signup_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(40,16)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(80),";\n  "))}),lp=(0,g.ZP)(p.W2).withConfig({componentId:"sc-f9b7e621-1"})(Signup_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 50vw;\n  ")});g.ZP.div.withConfig({componentId:"sc-f9b7e621-2"})(Signup_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 100vw;\n    height: 100vh;\n    overflow: hidden;\n    position: absolute;\n    display: block;\n    right: 0;\n    top: 0;\n  ")}),g.ZP.div.withConfig({componentId:"sc-f9b7e621-3"})(Signup_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(56)});let lm=g.ZP.div.withConfig({componentId:"sc-f9b7e621-4"})(Signup_styles_templateObject4(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(40),";\n  "))}),lh=g.ZP.div.withConfig({componentId:"sc-f9b7e621-5"})(Signup_styles_templateObject5(),e=>{let{theme:t}=e;return t.typo("paragraphMD")}),lg=g.ZP.div.withConfig({componentId:"sc-f9b7e621-6"})(Signup_styles_templateObject6(),e=>{let{theme:t}=e;return t.colors.status.error.default}),lf=g.ZP.div.withConfig({componentId:"sc-f9b7e621-7"})(Signup_styles_templateObject7(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(4)});n(88100);var lb=n(42298),ly=n(79429),l_=n(59319),lx=n(38770),lj=n(27813),lv=[{label:"SSM (Scuole di Specializzazione in Medicina)",value:"SSM"},{label:"MMG (Medici di Medicina Generale)",value:"MMG"}],lC=n(30243);let lw=S.object().shape({name:S.string().required("Inserisci il tuo nome"),surname:S.string().required("Inserisci il tuo cognome"),email:S.string().email("Email non valida").required("Inserisci la mail"),phone:S.string().matches(/^(\+[1-9]{1}[0-9]{3,14})?([0-9]{9,14})$/,"Controlla il numero di telefono"),password:S.string().required("Inserisci la password").matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})/,"La password deve contenere almeno 8 caratteri, un numero, una lettera maiuscola, una lettera minuscola e un simbolo"),confirmPassword:S.string().required("Conferma la password").oneOf([S.ref("password"),null],"Le password devono essere uguali"),district:S.object().shape({label:S.string().required("Seleziona la provincia"),value:S.string().required("Seleziona la provincia")}),country:S.object().shape({label:S.string().required("Seleziona lo stato"),value:S.string().required("Seleziona lo stato")}),address:S.string().required("Compila il campo"),streetNumber:S.string().required("Compila il campo"),zip:S.string().required("Compila il campo"),dateOfBirth:S.date().typeError("Inserisci la data corretta").transform((e,t,n)=>n.isType(e)?e:(0,lx.Z)(t,"dd/MM/yyyy",new Date)).min((0,l_.Z)(new Date,100),"Inserisci la data corretta").transform((e,t,n)=>n.isType(e)?e:(0,lx.Z)(t,"dd/MM/yyyy",new Date)).max((0,l_.Z)(new Date,10),"Inserisci la data corretta").transform((e,t,n)=>n.isType(e)?e:(0,lx.Z)(t,"dd/MM/yyyy",new Date)),yearTest:S.object().shape({label:S.string().required("Seleziona lanno del test di tuo interesse"),value:S.string().required("Seleziona lanno del test di tuo interesse")})}
1),lO={name:"",surname:"",email:"",phone:"",password:"",confirmPassword:"",address:"",zip:"",streetNumber:"",country:"",dateOfBirth:"",postgraduateSchool:"",yearTest:""},lS=["La tua password deve contenere almeno 8 caratteri","Un numero","Una lettera maiuscola","Una lettera minuscola","Un simbolo"],populateYearTest=()=>{let e=(0,lb.Z)(new Date,"yyyy"),t=(0,lb.Z)((0,ly.Z)(new Date,1),"yyyy");return[{label:e,value:e},{label:t,value:t}]};var Signup_Registration=e=>{let{setTemplate:t}=e,[n,l]=(0,i.useState)(!1),[a,o]=(0,i.useState)({name:"",country:{label:"",value:""},district:{label:"",value:""},address:"",streetNumber:"",zip:""}),s=populateYearTest();return(0,r.jsxs)(lm,{children:[(0,r.jsx)(u.X6,{typo:"headingMD",as:"h1",content:"Sono un nuovo cliente"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{gap:1,alignItems:"center",children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textPrimary:!0,children:"Hai gi\xe0 un account?"}),(0,r.jsx)(m.Z,{variant:"tertiary",label:"Accedi",href:"/api/auth/login"})]}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(I.J9,{validationSchema:lw,initialValues:lO,onSubmit:async e=>{let{email:n,name:r,surname:i,phone:a,password:o,district:s,dateOfBirth:c,address:d,streetNumber:u,zip:p,country:m,postgraduateSchool:h,yearTest:g}=e,f={email:n,name:r,surname:i,phone:a,password:o,district:s.value,dateOfBirth:c,address:d,streetNumber:u,zip:p,country:m,postgraduateSchool:h.value,yearTest:g.value};(0,lj.a$)(f).then(e=>{var n,r;200===e.status&&(t("SUCCESS"),l(!1)),(null===(n=e.error)||void 0===n?void 0:n.status)===400&&(null===(r=e.error)||void 0===r?void 0:r.message)==="Email or Username are already taken"?l("La mail inserita \xe8 gi\xe0 stata utilizzata."):400===e.status&&l("Si \xe8 verificato un problema, riprova pi\xf9 tardi.")})},children:e=>{var t,i;return(0,r.jsx)(lC.eo,{apiKey:"3467054399394427b64a1dbcedc4b24a",children:(0,r.jsxs)(I.l0,{children:[n?(0,r.jsxs)(lg,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",content:n}),(0,r.jsx)(p.Nz,{xs:4})]}):null,(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:12,lg:6,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"text",name:"name",label:"Nome *",id:"name",...e.getFieldProps("name")})}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.JX,{xs:12,lg:6,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"text",name:"surname",label:"Cognome *",id:"surname",...e.getFieldProps("surname")})})]}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"email",name:"email",label:"Indirizzo mail *",id:"email",...e.getFieldProps("email")})})}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:12,lg:6,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"phone",name:"phone",label:"Numero di telefono *",id:"phone",...e.getFieldProps("phone")})}),(0,r.jsx)(p.JX,{xs:12,lg:6,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"text",name:"dateOfBirth",label:"Data di nascita *",id:"dateOfBirth",...e.getFieldProps("dateOfBirth")})})]}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(p.X2,{children:[(0,r.jsxs)(p.JX,{xs:12,lg:8,$direction:"column",children:[(0,r.jsx)(ra.Z,{label:"Indirizzo *",onPlaceSelect:t=>{let{properties:n}=t,{street:r,country:i,country_code:l,county:a,county_code:s,postcode:c}=n;e.setFieldValue("address",r),e.setFieldValue("country",{label:i,value:l}),e.setFieldValue("district",{label:a,value:s}),e.setFieldValue("zip",c),o(e=>({...e,country:{label:i,value:l},district:{label:a,value:s},address:r,zip:c}))},address:lO.address}),(0,r.jsx)(rl.Z,{type:"hidden",name:"address",label:"Indirizzo *",id:"address",...e.getFieldProps("address")})]}),(0,r.jsx)(p.JX,{xs:12,lg:4,children:(0,r.jsx)(rl.Z,{type:"text",name:"streetNumber",label:"Numero civico *",id:"streetNumber",...e.getFieldProps("streetNumber")})})]}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:12,lg:4,$direction:"column",children:(0,r.jsx)(nK.Z,{id:"district",name:"district",...e.getFieldProps("district"),label:"Provincia *",options:rd.Z,value:lO.district||a.district,defaultValue:lO.district,onChange:t=>{o(e=>({...e,district:t})),e.setFieldValue("district",t)}})}),(0,r.jsx)(p.JX,{xs:12,lg:4,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"text",name:"zip",label:"CAP *",id:"zip",...e.getFieldProps("zip")})}),(0,r.jsx)(p.JX,{xs:12,lg:4,$direction:"column",children:(0,r.jsx)(nK.Z,{id:"country",name:"country",...e.getFieldProps("country"),label:"Stato *",options:rc.Z,value:lO.country||a.country,defaultValue:lO.country,onChange:t=>{o(e=>({...e,country:t})),e.setFieldValue("country",t)}})})]}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"password",name:"password",label:"Password *",id:"password",password:!0,...e.getFieldProps("password")})})}),lS.map((e,t)=>(0,r.jsxs)(lf,{children:[(0,r.jsx)(y.Z,{name:"check"}),(0,r.jsx)(u.nv,{typo:"paragraphSM",content:e,textSecondary:!0})]})),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,$direction:"column",children:(0,r.jsx)(rl.Z,{type:"password",name:"confirmPassword",label:"Conferma la password *",id:"confirmPassword",password:!0,...e.getFieldProps("confirmPassword")})})}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.fu,{}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(u.nv,{textPrimary:!0,weight:"semibold",typo:"paragraphSM",content:"Sei gi\xe0 uno STUDENTE DI MEDICINA al quinto o ultimo anno? Se sei interessato alle Scuole di Specializzazione in Medicina seleziona l’area di tuo interesse:"}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(nK.Z,{id:"postgraduateSchool",name:"postgraduateSchool",...e.getFieldProps("postgraduateSchool"),options:lv,value:null===(t=e.props)||void 0===t?void 0:t.values.postgraduateSchool,defaultValue:lO.postgraduateSchool,onChange:t=>{e.setFieldValue("postgraduateSchool",t)}})})}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(nK.Z,{id:"yearTest",name:"yearTest",...e.getFieldProps("yearTest"),label:"Seleziona l'anno del test di tuo interesse: *",options:s,value:null===(i=e.props)||void 0===i?void 0:i.values.yearTest,defaultValue:lO.yearTest,onChange:t=>{e.setFieldValue("yearTest",t)}})})}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(p.X2,{children:(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(m.Z,{type:"submit",label:"Registrati",iconEnd:"arrow-right",variant:"primary",disabled:Object.keys(e.errors).length,fullWidth:!0})})})]})})}}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{typo:"paragraphSM",textSecondary:!0,content:"* Campo obbligatorio"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(lh,{children:["Registrandoti per un account, accetti i nostri ",(0,r.jsx)(lt(),{href:"/ecommerce",children:"Termini di utilizzo"}),". Si prega di consultare la nostra ",(0,r.jsx)(lt(),{href:"/privacy",children:"Privacy Policy"}),"."]})]})},Signup_Success=()=>{let e=(0,ec.useRouter)();return(0,i.useEffect)(()=>{setTimeout(()=>{e.push("/ecommerce")},4e3)},[]),(0,r.jsxs)(p.kC,{justifyContent:"center",$direction:"column",children:[(0,r.jsx)(p.Nz,{xs:28}),(0,r.jsx)(u.X6,{typo:"headingMD",as:"h1",content:"La registrazione \xe8 avvenuta con successo!"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsx)(u.nv,{typo:"paragraphMD",content:"Controlla la tua e-mail per attivare l'account"})]})},organisms_Signup=()=>{let[e,t]=(0,i.useState)("REGISTRATION");return(0,r.jsx)(lu,{children:(0,r.jsx)(lp,{children:(e=>{switch(e){case"REGISTRATION":return(0,r.jsx)(Signup_Registration,{setTemplate:t});case"SUCCESS":return(0,r.jsx)(Signup_Success,{});default:return(0,r.jsx)(Signup_Registration,{})}})(e)})})};
1function SocialProof_styles_templateObject(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n  "]);return SocialProof_styles_templateObject=function(){return e},e}function SocialProof_styles_templateObject1(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n"]);return SocialProof_styles_templateObject1=function(){return e},e}let lk=g.ZP.div.withConfig({componentId:"sc-f0e998be-0"})(SocialProof_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(SocialProof_styles_templateObject(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)}),SocialProof_SocialProof=e=>{let{sectionId:t,title:n,widgetProperties:l=[]}=e,{selectedColorScheme:a}=(0,i.useContext)(s.x),o=(0,i.useRef)(null),c=l.reduce(function(e){let{key:t,value:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:curr;return{...e,[t]:n}},{});return(0,i.useEffect)(()=>{window.Trustpilot&&window.Trustpilot.loadFromElement(o.current,!0)},[]),c?(0,r.jsx)(lk,{colorScheme:a,as:"section",id:t,children:(0,r.jsxs)(p.W2,{children:[n?(0,r.jsx)(u.X6,{...n,fontPrimary:!0}):null,(0,r.jsx)(p.Nz,{xs:5}),(0,r.jsx)("div",{ref:o,className:"trustpilot-widget",...c,children:(0,r.jsx)("a",{href:"https://it.trustpilot.com/review/www.alphatest.it",target:"_blank",rel:"noopener",children:"Trustpilot"})})]})}):null};SocialProof_SocialProof.propTypes={type:a().string,sectionId:a().string,colorScheme:o.hl,title:o.DN};var lP=SocialProof_SocialProof,lI=n(51526),lT=n(43495),lZ=n(6990);function Tabs_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n"]);return Tabs_styles_templateObject=function(){return e},e}function Tabs_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  \n  .swiper {\n    width: 100%;\n    margin: 0;\n  }\n  \n  .swiper-slide {\n    display: inline-flex;\n    width: auto;\n    padding-top: ",";\n    padding-bottom: ",";\n\n    &:first-child {\n      padding-left: ",";\n    }\n\n    &:last-child {\n      padding-right: ",";\n    }\n  }\n"]);return Tabs_styles_templateObject1=function(){return e},e}let lz=g.ZP.div.withConfig({componentId:"sc-2b607287-0"})(Tabs_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))}),lF=(0,g.ZP)(p.W2).withConfig({componentId:"sc-2b607287-1"})(Tabs_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(2)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)}),Text=e=>{let{sectionId:t,colorScheme:n,type:l,tabs:a}=e,[o,s]=(0,i.useState)(0),handleTabChange=e=>{s(e)};return(0,r.jsxs)(lz,{as:"section",id:t,children:[(0,r.jsx)(lF,{noGutter:!0,children:(0,r.jsx)(et.tq,{modules:[ee.Rv,ee.Gk],slidesPerView:"auto",spaceBetween:16,freeMode:{enabled:!0,sticky:!1,momentumBounce:!1,momentumVelocityRatio:.5},mousewheel:{enabled:!0,forceToAxis:!0},children:a.map((e,t)=>{let{id:n,tabTitle:i}=e;return(0,r.jsx)(et.o5,{children:(0,r.jsx)(m.Z,{label:i,"aria-current":o===t,handleClick:()=>handleTabChange(t),onKeyDown:e=>("Enter"===e.key||" "===e.key)&&handleTabChange(t)})},n)})})}),(0,r.jsx)(lI.M,{mode:"wait",children:(0,r.jsx)(lT.E.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.2},children:(()=>{let e={InteractiveTabsBanner:{type:"BannerImage",normalizer:lZ.Z,component:B}},t=e[l],i=(null==t?void 0:t.component)?t.normalizer(a[o]):null;return(null==t?void 0:t.component)?(0,r.jsx)(t.component,{...i,as:"div",sectionId:"InteractiveTabsBanner-Banner-".concat(a[o].id),type:t.type,colorScheme:n,tabItem:!0}):null})()},o)})]})};Text.propTypes={type:a().oneOf(["InteractiveTabsBanner"]),sectionId:a().string,tabs:a().array};var lE=Text;
1function Testimonials_styles_templateObject(){let e=(0,h._)(["\n  ","\n"]);return Testimonials_styles_templateObject=function(){return e},e}function Testimonials_styles_templateObject1(){let e=(0,h._)(["\n  padding: ",";\n  border: 1px solid;\n  border-radius: ",";\n\n  ","\n"]);return Testimonials_styles_templateObject1=function(){return e},e}function Testimonials_styles_templateObject2(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n  "]);return Testimonials_styles_templateObject2=function(){return e},e}function Testimonials_styles_templateObject3(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n\n  "," {\n    border-color: ",";\n  }\n"]);return Testimonials_styles_templateObject3=function(){return e},e}function Testimonials_styles_templateObject4(){let e=(0,h._)(["\n  position: relative;\n"]);return Testimonials_styles_templateObject4=function(){return e},e}function Testimonials_styles_templateObject5(){let e=(0,h._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  position: absolute;\n  bottom: 100%;\n  right: 30px;\n  z-index: 1;\n\n  ","\n\n  button {\n    &:first-child {\n      margin-right: ",";\n\n      ","\n    }\n\n    &.swiper-button-lock {\n      display: none;\n    }\n  }\n"]);return Testimonials_styles_templateObject5=function(){return e},e}function Testimonials_styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  aspect-ratio: 5 / 4;\n  border-radius: ",";\n  overflow: hidden;\n\n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return Testimonials_styles_templateObject6=function(){return e},e}function Testimonials_styles_templateObject7(){let e=(0,h._)(["\n  padding: ",";\n\n  ","\n"]);return Testimonials_styles_templateObject7=function(){return e},e}function Testimonials_styles_templateObject8(){let e=(0,h._)(["\n  color: #E5683E;\n"]);return Testimonials_styles_templateObject8=function(){return e},e}let lM=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-0"})(Testimonials_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    height: 100%;\n  ")}),lA=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-1"})(Testimonials_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(40),";\n  "))}),lB=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-2"})(Testimonials_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(Testimonials_styles_templateObject2(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)},lA,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.borderColor}),lN=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-3"})(Testimonials_styles_templateObject4()),lD=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-4"})(Testimonials_styles_templateObject5(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    right: ".concat(t.rem(16),";\n  "),!0)},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        margin-right: ".concat(t.rem(8),";\n      "),!0)}),lR=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-5"})(Testimonials_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: ".concat(t.rem(24),";\n  "),!0)}),lL=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-6"})(Testimonials_styles_templateObject7(),e=>{let{theme:t}=e;return t.rem(24,120,0,24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: calc(100% - 112px);\n    padding: ".concat(t.rem(16,16,0,16),";\n  "),!0)}),lQ=g.ZP.div.withConfig({componentId:"sc-2ed1f55c-7"})(Testimonials_styles_templateObject8());var organisms_Testimonials=e=>{let{sectionId:t,quotes:n}=e,[l,a]=(0,i.useState)(1),{selectedColorScheme:o}=(0,i.useContext)(s.x),[c,h]=(0,K.Z)(),[g,f]=(0,K.Z)();return(0,r.jsx)(lB,{colorScheme:o,as:"section",id:t,children:(0,r.jsx)(p.W2,{children:(0,r.jsxs)(lN,{children:[(0,r.jsx)(et.tq,{modules:[ee.W_,ee.s5,ee.xW],slidesPerView:1,autoHeight:!0,fadeEffect:{crossFade:!0},navigation:{prevEl:g,nextEl:c},a11y:{prevSlideMessage:"Precedente slide",nextSlideMessage:"Prossima slide"},effect:"fade",onRealIndexChange:e=>a(e.realIndex+1),children:n.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsxs)(p.X2,{reverse:["xs","sm","md"],children:[(0,r.jsxs)(p.JX,{xs:12,lg:5,$direction:"column",children:[(null==e?void 0:e.quote)?(0,r.jsx)(lM,{children:(0,r.jsxs)(lA,{children:[(0,r.jsxs)(p.zv,{breakpoints:["lg","xl","xxl","xxxl"],children:[(0,r.jsx)(y.Z,{name:"quote",size:"large"}),(0,r.jsx)(p.Nz,{xs:3})]}),(0,r.jsx)(u.X6,{typo:"displayXS",fontPrimary:!0,children:e.quote})]})}):null,(0,r.jsxs)(lL,{children:[(null==e?void 0:e.author)?(0,r.jsx)(u.nv,{content:e.author,typo:"paragraphLG",weight:"semibold"}):null,(null==e?void 0:e.role)?(0,r.jsx)(u.nv,{content:e.role,typo:"paragraphLG",textSecondary:!0}):null,(null==e?void 0:e.description)?(0,r.jsx)(lQ,{as:u.nv,content:e.description,typo:"paragraphSM",weight:"semibold"}):null]})]}),(0,r.jsx)(p.JX,{xs:12,lg:6,$offset:{xs:0,lg:1},$direction:"column",children:(0,r.jsx)(lR,{children:(0,r.jsx)(d(),{src:e.image.src,alt:e.image.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 50vw"})})})]})},"Testimonials-Item-".concat(t,"-").concat(null==e?void 0:e.id)))}),(0,r.jsx)(p.JX,{xs:12,lg:5,offsetRight:{xs:0,lg:1},style:{position:"relative"},noGutter:!0,children:(0,r.jsxs)(lD,{children:[(0,r.jsx)(m.a,{ref:f,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big"}),(0,r.jsx)(m.a,{ref:h,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big"})]})})]})})})};
1function Text_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  padding-bottom: ",";\n  border-top: 1px solid;\n\n  ","\n"]);return Text_styles_templateObject=function(){return e},e}function Text_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  min-height: ",";\n  display: flex;\n  align-items: center;\n  justify-content: center;\n\n  svg,\n  "," {\n    width: 100%;\n    height: 100%;\n  }\n"]);return Text_styles_templateObject1=function(){return e},e}function Text_styles_templateObject2(){let e=(0,h._)(["\n  padding: ",";\n  border-radius: ",";\n\n  ","\n\n  ","\n"]);return Text_styles_templateObject2=function(){return e},e}function Text_styles_templateObject3(){let e=(0,h._)(["\n    padding-bottom: ",";\n\n    ","\n  "]);return Text_styles_templateObject3=function(){return e},e}function Text_styles_templateObject4(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      border-top-color: ",";\n    }\n\n    "," {\n      svg {\n        color: ",";\n      }\n    }\n  "]);return Text_styles_templateObject4=function(){return e},e}function Text_styles_templateObject5(){let e=(0,h._)(["\n    "," {\n      background-color: ",";\n      color: ",";\n    }\n  "]);return Text_styles_templateObject5=function(){return e},e}function Text_styles_templateObject6(){let e=(0,h._)(["\n  padding-top: ",";\n\n  ","\n\n  ","\n\n  ","\n"]);return Text_styles_templateObject6=function(){return e},e}function Text_styles_templateObject7(){let e=(0,h._)(["\n    text-align: ",";\n  "]);return Text_styles_templateObject7=function(){return e},e}function Text_styles_templateObject8(){let e=(0,h._)(["\n  ","\n"]);return Text_styles_templateObject8=function(){return e},e}let lq=g.ZP.div.withConfig({componentId:"sc-72d9eddf-0"})(Text_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-bottom: ".concat(t.rem(24),";\n  "))}),lH=g.ZP.div.withConfig({componentId:"sc-72d9eddf-1"})(Text_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(410)},R.x),lV=g.ZP.div.withConfig({componentId:"sc-72d9eddf-2"})(Text_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(80,24),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(80,40),";\n  "))}),lX=g.ZP.div.withConfig({componentId:"sc-72d9eddf-3"})(Text_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n  "))},e=>{let{theme:t,removeBottomPadding:n}=e;return!0!==n&&(0,g.iv)(Text_styles_templateObject3(),t.rem(24),t.mediaQuery.lg("\n      padding-bottom: ".concat(t.rem(40),";\n    ")))},e=>{let{theme:t,colorScheme:n,variant:r}=e;return"TextQuote"!=r?(0,g.iv)(Text_styles_templateObject4(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,lq,t.colorScheme["".concat(n)].surface.borderSecondary,lH,t.colorScheme["".concat(n)].surface.colorIcon):(0,g.iv)(Text_styles_templateObject5(),lV,t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)}),lU=(0,g.ZP)(p.X2).withConfig({componentId:"sc-72d9eddf-4"})(Text_styles_templateObject8(),e=>{let{alignment:t}=e;return t&&(0,g.iv)(Text_styles_templateObject7(),t)});var variants_TextRichText=e=>{let{sectionTitle:t,titleUnderline:n,subtitle:i,body:l,ctaPrimary:a,ctaSecondary:o}=e;return(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(lq,{})}),(0,r.jsx)(p.JX,{xs:12,md:5,$direction:"column",offsetRight:{xs:0,md:1},children:t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.X6,{as:t.as,typo:t.typo,underline:n,children:t.content}),(0,r.jsx)(p.Nz,{xs:1})]}):null}),(0,r.jsxs)(p.JX,{xs:12,md:6,$direction:"column",align:"flex-start",children:[i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{...i,textSecondary:!0}),(0,r.jsx)(p.Nz,{xs:5})]}):null,l&&l.length>0?l.map((e,t)=>{let{id:n,title:i,body:a}=e;return(0,r.jsxs)("div",{children:[i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{as:"div",typo:"headingSM",children:i}),(0,r.jsx)(p.Nz,{xs:1})]}):null,a?(0,r.jsx)(u.nv,{as:"div",typo:"paragraphMD",textSecondary:!0,children:a}):null,t+1<l.length?(0,r.jsx)(p.Nz,{xs:5}):null]},n||t)}):null,a||o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(ItemsGrouped,{direction:{xs:"column",lg:"row"},space:{xs:16,lg:24},fullWidth:["xs","sm","md"],children:[a?(0,r.jsx)(m.Z,{...a,variant:"primary",iconEnd:"arrow-right"}):null,o?(0,r.jsx)(m.Z,{...o,variant:"secondary",iconEnd:"chevron-right"}):null]})]}):null]})]})},variants_TextHeadingLight=e=>{let{preTitle:t,sectionTitle:n,titleUnderline:i,subtitle:l,alignment:a,ctaPrimary:o,ctaSecondary:s}=e;return(0,r.jsxs)(lU,{alignment:a,children:[(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(lq,{})}),(0,r.jsxs)(p.JX,{xs:12,lg:6,$direction:"column",$offset:{xs:0,lg:"center"==a?3:0},align:"center"==a?"center":"flex-start",children:[t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{...t}),(0,r.jsx)(p.Nz,{xs:1})]}):null,n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.X6,{as:n.as,typo:n.typo,underline:i,fontPrimary:!0,children:n.content}),(0,r.jsx)(p.Nz,{xs:1})]}):null,l?(0,r.jsx)(u.nv,{...l,textSecondary:!0}):null,o||s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(ItemsGrouped,{direction:{xs:"column",lg:"row"},space:{xs:16,lg:24},fullWidth:["xs","sm","md"],children:[o?(0,r.jsx)(m.Z,{...o,variant:"primary",iconEnd:"arrow-right"}):null,s?(0,r.jsx)(m.Z,{...s,variant:"secondary",iconEnd:"chevron-right"}):null]})]}):null]})]})},variants_TextHeadingBig=e=>{let{sectionTitle:t,titleUnderline:n,subtitle:i,alignment:l,twoColumns:a,ctaPrimary:o,ctaSecondary:s}=e;return(0,r.jsxs)(lU,{alignment:l,children:[(0,r.jsx)(p.JX,{xs:12,lg:a?6:10,$direction:"column",$offset:{xs:0,lg:a?0:1},children:t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.X6,{as:t.as,typo:t.typo,underline:n,fontPrimary:!0,children:t.content}),(0,r.jsx)(p.Nz,{xs:1})]}):null}),(0,r.jsxs)(p.JX,{xs:12,md:10,lg:a?5:6,$direction:"column",$offset:{xs:0,md:a?2:1,lg:a?1:3},justify:"flex-end",align:"flex-start",children:[i?(0,r.jsx)(u.nv,{...i,textSecondary:!0}):null,o||s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(ItemsGrouped,{direction:{xs:"column",md:"row"},space:{xs:16,md:24},fullWidth:["xs","sm"],children:[o?(0,r.jsx)(m.Z,{...o,variant:"primary",iconEnd:"arrow-right"}):null,s?(0,r.jsx)(m.Z,{...s,variant:"secondary",iconEnd:"chevron-right"}):null]})]}):null]})]})},variants_TextColumns=e=>{let{sectionTitle:t,columnLeft:n,columnRight:i,image:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(lq,{})}),(0,r.jsx)(p.JX,{xs:12,lg:7,$direction:"column",children:t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.X6,{as:t.as,typo:t.typo,fontPrimary:!0,children:t.content}),(0,r.jsx)(p.Nz,{xs:1})]}):null})]}),(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.zv,{breakpoints:["xl","xxl","xxxl"],children:(0,r.jsx)(p.JX,{xs:12,lg:4,children:l?(0,r.jsx)(lH,{children:(0,r.jsx)(y.Z,{name:"illustration-".concat(l.toLowerCase()),unlockedProportions:!0})}):null})}),(0,r.jsx)(p.JX,{xs:12,lg:4,justify:"center",$direction:"column",children:n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:3}),(0,r.jsx)(u.nv,{typo:"paragraphLG",textSecondary:!0,children:n}),(0,r.jsx)(p.Nz,{xs:3})]}):null}),(0,r.jsx)(p.JX,{xs:12,lg:4,align:"flex-end",children:i?(0,r.jsx)(u.nv,{typo:"paragraphLG",textSecondary:!0,children:i}):null})]})]})},variants_TextQuote=e=>{let{author:t,quote:n}=e;return(0,r.jsxs)(lV,{children:[n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.zv,{breakpoints:["sm","md","lg","xl","xxl","xxxl"],children:(0,r.jsx)(u.X6,{as:"h3",typo:"displayMD",content:n,fontPrimary:!0})}),(0,r.jsx)(p.zv,{breakpoints:"xs",children:(0,r.jsx)(u.X6,{as:"h3",typo:"displaySM",content:n,fontPrimary:!0})})]}):null,t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(u.nv,{typo:"headingSM",content:t,textSecondary:!0})]}):null]})};let Text_Text=e=>{let{sectionId:t,type:n,removeBottomPadding:l,...a}=e,{selectedColorScheme:o}=(0,i.useContext)(s.x),c={TextRichText:variants_TextRichText,TextHeadingLight:variants_TextHeadingLight,TextHeadingBig:variants_TextHeadingBig,TextColumns:variants_TextColumns,TextQuote:variants_TextQuote}[n];return c?(0,r.jsx)(lX,{colorScheme:o,variant:n,as:"section",id:t,removeBottomPadding:l,children:(0,r.jsx)(p.W2,{children:(0,r.jsx)(c,{...a})})}):null};Text_Text.propTypes={type:a().oneOf(["TextRichText","TextHeadingLight","TextHeadingBig","TextColumns","TextQuote"]),sectionId:a().string,colorScheme:o.hl,alignment:a().oneOf(["left","center"]),twoColumns:a().bool,body:a().array,preTitle:o.DN,sectionTitle:o.DN,titleUnderline:a().bool,subt
1itle:o.DN,ctaPrimary:o.$Z,ctaSecondary:o.$Z,quote:a().string,author:a().string,columnLeft:a().string,columnRight:a().string};var lG=Text_Text;function TextImage_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  padding-bottom: ",";\n  border-top: 1px solid;\n\n  ","\n"]);return TextImage_styles_templateObject=function(){return e},e}function TextImage_styles_templateObject1(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      border-top-color: ",";\n    }\n  "]);return TextImage_styles_templateObject1=function(){return e},e}function TextImage_styles_templateObject2(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n\n  ","\n"]);return TextImage_styles_templateObject2=function(){return e},e}function TextImage_styles_templateObject3(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  aspect-ratio: 4 / 4;\n  border-radius: ",";\n  overflow: hidden;\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return TextImage_styles_templateObject3=function(){return e},e}let lW=g.ZP.div.withConfig({componentId:"sc-6d927781-0"})(TextImage_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-bottom: ".concat(t.rem(40),";\n  "))}),lJ=g.ZP.div.withConfig({componentId:"sc-6d927781-1"})(TextImage_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(TextImage_styles_templateObject1(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,lW,t.colorScheme["".concat(n)].surface.borderSecondary)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    text-align: center;\n  ",!0)}),l$=g.ZP.div.withConfig({componentId:"sc-6d927781-2"})(TextImage_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(16)});var organisms_TextImage=e=>{let{sectionId:t,title:n,subtitle:l,body:a,ctaPrimary:o,ctaSecondary:c,image:h}=e,{selectedColorScheme:g}=(0,i.useContext)(s.x);return(0,r.jsx)(lJ,{colorScheme:g,as:"section",id:t,children:(0,r.jsx)(p.W2,{children:(0,r.jsxs)(p.X2,{children:[(0,r.jsx)(p.JX,{xs:12,children:(0,r.jsx)(lW,{})}),(0,r.jsxs)(p.JX,{xs:12,lg:4,$direction:"column",align:{xs:"center",lg:"flex-start"},children:[n?(0,r.jsx)(u.X6,{as:n.as,typo:n.typo,children:n.content}):null,l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{...l,weight:"semibold",textSecondary:!0})]}):null,a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,children:a})]}):null,o||c?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsxs)(ItemsGrouped,{direction:{xs:"column",lg:"row"},space:{xs:16},children:[o&&(null==o?void 0:o.label)?(0,r.jsx)(m.Z,{...o,variant:"secondary",iconEnd:"chevron-right"}):null,c&&(null==c?void 0:c.label)?(0,r.jsx)(m.Z,{...c,variant:"tertiary",iconEnd:"arrow-right"}):null]}),(0,r.jsx)(p.Nz,{xs:4})]}):null]}),(0,r.jsx)(p.JX,{xs:12,lg:7,$offset:{lg:1},children:h?(0,r.jsx)(l$,{children:(0,r.jsx)(d(),{src:h.src,alt:h.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 50vw"})}):null})]})})})},lY=n(17211);function TimelineSwiper_styles_templateObject(){let e=(0,h._)(["\n  \n"]);return TimelineSwiper_styles_templateObject=function(){return e},e}function TimelineSwiper_styles_templateObject1(){let e=(0,h._)(["\n  min-height: auto;\n  position: relative;\n  background-color: ",";\n  border-radius: ",";\n  overflow: hidden;\n\n  ","\n\n  /* .swiper {\n    height: 550px;\n    \n    ","\n\n    ","\n  } */\n  \n  /* ","\n\n  "," */\n"]);return TimelineSwiper_styles_templateObject1=function(){return e},e}function TimelineSwiper_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  flex: 1 1 auto;\n  flex-wrap: wrap;\n  box-sizing: border-box;\n  background-color: ",";\n"]);
1return TimelineSwiper_styles_templateObject2=function(){return e},e}function TimelineSwiper_styles_templateObject3(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  aspect-ratio: 4 / 4;\n  overflow: hidden;\n\n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n\n  #storybook-root & {\n    height: 100%;\n  }\n"]);return TimelineSwiper_styles_templateObject3=function(){return e},e}function TimelineSwiper_styles_templateObject4(){let e=(0,h._)(["\n  width: 100%;\n  height: calc(550px - 156px);\n  padding: ",";\n  margin: ",";\n  overflow-y: auto;\n\n  ","\n\n  ","\n"]);return TimelineSwiper_styles_templateObject4=function(){return e},e}function TimelineSwiper_styles_templateObject5(){let e=(0,h._)(["\n  color: #E5683E;\n  text-transform: uppercase;\n  margin-bottom: ",";\n\n  ","\n"]);return TimelineSwiper_styles_templateObject5=function(){return e},e}function TimelineSwiper_styles_templateObject6(){let e=(0,h._)(["\n  margin-bottom: ",";\n"]);return TimelineSwiper_styles_templateObject6=function(){return e},e}function TimelineSwiper_styles_templateObject7(){let e=(0,h._)(["\n  width: calc(50% - 96px);\n  position: absolute;\n  top: 24px;\n  right: 48px;\n  z-index: 1;\n\n  ","\n\n  ","\n"]);return TimelineSwiper_styles_templateObject7=function(){return e},e}function TimelineSwiper_styles_templateObject8(){let e=(0,h._)(["\n  width: 100%;\n  height: 2px;\n  background-color: ",";\n\n  .swiper-scrollbar-drag {\n    background-color: ",";\n  }\n"]);return TimelineSwiper_styles_templateObject8=function(){return e},e}function TimelineSwiper_styles_templateObject9(){let e=(0,h._)(["\n  width: calc(50% - 96px);\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  position: absolute;\n  bottom: 32px;\n  right: 48px;\n  z-index: 1;\n\n  ","\n\n  ","\n"]);return TimelineSwiper_styles_templateObject9=function(){return e},e}function TimelineSwiper_styles_templateObject10(){let e=(0,h._)(["\n  text-transform: uppercase;\n"]);return TimelineSwiper_styles_templateObject10=function(){return e},e}function TimelineSwiper_styles_templateObject11(){let e=(0,h._)(["\n  button {\n    &:first-child {\n      margin-right: ",";\n    }\n  }\n"]);return TimelineSwiper_styles_templateObject11=function(){return e},e}g.ZP.div.withConfig({componentId:"sc-24e1dc82-0"})(TimelineSwiper_styles_templateObject());let lK=g.ZP.div.withConfig({componentId:"sc-24e1dc82-1"})(TimelineSwiper_styles_templateObject1(),e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    height: calc(100dvh - 72px);\n    border-radius: 0;\n  ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      height: 72vh;\n    ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      height: 90vh;\n    ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    height: calc(100svh - 104px);\n  ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    height: calc(100svh - 128px);\n  ",!0)}),l0=g.ZP.div.withConfig({componentId:"sc-24e1dc82-2"})(TimelineSwiper_styles_templateObject2(),e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor}),l1=g.ZP.div.withConfig({componentId:"sc-24e1dc82-3"})(TimelineSwiper_styles_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    height: 40dvh;\n    aspect-ratio: auto;\n  ",!0)}),l2=g.ZP.div.withConfig({componentId:"sc-24e1dc82-4"})(TimelineSwiper_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(0,48)},e=>{let{theme:t}=e;return t.rem(48,0,108,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    height: calc(50dvh - 104px);\n    padding: ".concat(t.rem(0,48),";\n    margin: ").concat(t.rem(16,0,0,0),";\n  "),!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(0,16),";\n  "),!0)}),l4=g.ZP.p.withConfig({componentId:"sc-24e1dc82-5"})(TimelineSwiper_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: ".concat(t.rem(16),";\n  "),!0)}
1),l6=g.ZP.p.withConfig({componentId:"sc-24e1dc82-6"})(TimelineSwiper_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(16)}),l5=g.ZP.div.withConfig({componentId:"sc-24e1dc82-7"})(TimelineSwiper_styles_templateObject7(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: calc(100% - 96px);\n    top: auto;\n    bottom: 16px;\n    left: 48px;\n    right: auto;\n  ",!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: calc(100% - 32px);\n    left: 16px;\n  ",!0)}),l3=g.ZP.div.withConfig({componentId:"sc-24e1dc82-8"})(TimelineSwiper_styles_templateObject8(),e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.borderSecondary},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackground}),l8=g.ZP.div.withConfig({componentId:"sc-24e1dc82-9"})(TimelineSwiper_styles_templateObject9(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: calc(100% - 96px);\n    position: relative;\n    left: 48px;\n    bottom: ".concat(t.rem(16),";\n    right: auto;\n    padding-bottom: ").concat(t.rem(16),";\n    margin-top: ").concat(t.rem(16),";\n  "),!0)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: calc(100% - 32px);\n    left: 16px;\n    bottom: 0;\n    padding-bottom: 0;\n  ",!0)}),l9=g.ZP.div.withConfig({componentId:"sc-24e1dc82-10"})(TimelineSwiper_styles_templateObject10()),l7=g.ZP.div.withConfig({componentId:"sc-24e1dc82-11"})(TimelineSwiper_styles_templateObject11(),e=>{let{theme:t}=e;return t.rem(16)});var molecules_TimelineSwiper=e=>{let{steps:t,sectionId:n=null}=e,[l,a]=(0,i.useState)(1),[o,s]=(0,K.Z)(),[c,h]=(0,K.Z)(),[g,f]=(0,K.Z)();return(0,r.jsx)(p.W2,{id:n,children:(0,r.jsxs)(lK,{children:[(0,r.jsx)(et.tq,{modules:[ee.W_,ee.LW,ee.s5,ee.xW],slidesPerView:1,navigation:{prevEl:c,nextEl:o},scrollbar:{el:g},a11y:{prevSlideMessage:"Precedente slide",nextSlideMessage:"Prossima slide"},effect:"fade",onRealIndexChange:e=>a(e.realIndex+1),children:t.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsxs)(l0,{children:[(0,r.jsx)(p.JX,{xs:12,lg:6,noGutter:!0,children:(0,r.jsx)(l1,{children:(0,r.jsx)(d(),{src:e.image.src,alt:e.image.alt,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 50vw"})})}),(0,r.jsx)(p.JX,{xs:12,lg:6,noGutter:!0,children:(0,r.jsxs)(l2,{children:[(null==e?void 0:e.tagline)?(0,r.jsx)(l4,{as:u.nv,typo:"label",content:e.tagline,weight:"semibold"}):null,(null==e?void 0:e.title)?(0,r.jsx)(l6,{as:u.nv,typo:"headingMD",content:e.title,weight:"semibold"}):null,(null==e?void 0:e.body)?(0,r.jsx)(u.nv,{typo:"paragraphLG",content:e.body,textSecondary:!0}):null]})})]})},"CarouselCards-Item-".concat(t,"-").concat(null==e?void 0:e.id)))}),(0,r.jsx)(l5,{children:(0,r.jsx)(l3,{ref:f})}),(0,r.jsxs)(l8,{children:[(0,r.jsx)(l9,{as:u.nv,typo:"label",content:"Step ".concat(l," / ").concat(t.length),weight:"semibold",textSecondary:!0}),(0,r.jsxs)(l7,{children:[(0,r.jsx)(m.a,{ref:h,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big",inheritedColorScheme:"lightOrange"}),(0,r.jsx)(m.a,{ref:s,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big",inheritedColorScheme:"lightOrange"})]})]})]})})},Timeline_TimelineModal=e=>{let{isOpen:t,steps:n}=e;return(0,r.jsx)(Modal_ModalBase,{isOpen:t,children:(0,r.jsx)(molecules_TimelineSwiper,{steps:n})})};let Timeline_Timeline=e=>{let{steps:t,...n}=e,{showModal:i}=(0,b.dd)(),l={TimelineBanner:{type:"BannerImage",normalizer:lZ.Z,component:B},TimelineTextImage:{type:"TextImage",normalizer:lY.Z,component:organisms_TextImage}},a=l[n.type],o={...n.ctaPrimary,handleClick:()=>{i(Timeline_TimelineModal,{steps:t})}},s=a?a.normalizer({...n,ctaPrimary:o}):null;return a?(0,r.jsx)(a.component,{...s,type:a.type}):null};Timeline_Timeline.propTypes={type:a().oneOf(["TimelineBanner","TimelineTextImage"]),sectionId:a().string,colorScheme:o.hl,steps:a().array};var ae=Timeline_Timeline;function TimelineCarousel_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n"]);return TimelineCarousel_styles_templateObject=function(){return e},e}let at=g.ZP.section.withConfig({componentId:"sc-5de35edd-0"}
1)(TimelineCarousel_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))}),TimelineCarousel=e=>{let{steps:t,sectionId:n}=e;return(0,r.jsx)(at,{children:(0,r.jsx)(molecules_TimelineSwiper,{steps:t,sectionId:n,as:"section"})})};TimelineCarousel.propTypes={steps:a().array,sectionId:a().string};var an=TimelineCarousel,ar=n(5152),ai=n.n(ar);function Video_styles_templateObject(){let e=(0,h._)(["\n  position: relative;\n  aspect-ratio: 16 / 9;\n\n  .react-player {\n    position: absolute;\n    top: 0;\n    left: 0;\n\n    &__shadow {\n      background: rgba(0, 0, 0, 0.5) !important;\n    }\n  }\n"]);return Video_styles_templateObject=function(){return e},e}let al=g.ZP.div.withConfig({componentId:"sc-504e453d-0"})(Video_styles_templateObject()),aa=ai()(()=>n.e(6310).then(n.t.bind(n,56310,23)),{loadableGenerated:{webpack:()=>[56310]},ssr:!1}),VideoPreview=e=>{let{image:t}=e;return(0,r.jsx)("img",{src:null==t?void 0:t.src,alt:null==t?void 0:t.alt,loading:"lazy"})};var molecules_Video=e=>{let{url:t,coverImage:n=null,handleOnEnd:i}=e;return(0,r.jsx)(al,{children:(0,r.jsx)(aa,{url:t,light:!n||(0,r.jsx)(VideoPreview,{image:n}),className:"react-player",width:"100%",height:"100%",controls:!0,onEnded:()=>{i&&i()}})})};function VideoSection_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n  background-color: rgba(0, 0, 0, 0.5);\n"]);return VideoSection_styles_templateObject=function(){return e},e}function VideoSection_styles_templateObject1(){let e=(0,h._)(["\n  max-width: ",";\n  padding: 16px;\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n\n  ","\n"]);return VideoSection_styles_templateObject1=function(){return e},e}function VideoSection_styles_templateObject2(){let e=(0,h._)(["\n  position: relative;\n\n  ","\n\n  ","\n\n  background-color: ",";\n\n  "," {\n    border-radius: 16px;\n    overflow: hidden;\n  }\n\n  "," {\n    background-color: ",";\n  }\n"]);return VideoSection_styles_templateObject2=function(){return e},e}let ao=g.ZP.div.withConfig({componentId:"sc-a93ed7ba-0"})(VideoSection_styles_templateObject()),as=g.ZP.div.withConfig({componentId:"sc-a93ed7ba-1"})(VideoSection_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(500)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: 50px;\n  ")}),ac=g.ZP.div.withConfig({componentId:"sc-a93ed7ba-2"})(VideoSection_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(24,0),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(40,0),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},al,as,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor});var organisms_VideoSection=e=>{let{sectionId:t,videoId:n,nextVideo:l,coverImage:a,form:o}=e,{selectedColorScheme:c}=(0,i.useContext)(s.x),[d,u]=(0,i.useState)(n),[m,h]=(0,i.useState)(!1),{formData:g}=hooks_useFormData(o);return(0,r.jsx)(ac,{colorScheme:c,as:"section",id:t,children:(0,r.jsxs)(p.W2,{children:[(0,r.jsx)(molecules_Video,{url:d,coverImage:a,handleOnEnd:()=>{h(!0)}}),m?(0,r.jsx)(ao,{children:(0,r.jsx)(as,{children:g?(0,r.jsx)(atoms_Form,{...g,onSubmit:()=>{u(l),h(!1)}}):null})}):null]})})};function AdditionalInfo_styles_templateObject(){let e=(0,h._)(["\n\n"]);return AdditionalInfo_styles_templateObject=function(){return e},e}function AdditionalInfo_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  padding: ",";\n  border-bottom: 1px solid ",";\n  position: relative;\n  cursor: pointer;\n\n  ","\n"]);return AdditionalInfo_styles_templateObject1=function(){return e},e}function AdditionalInfo_styles_templateObject2(){let e=(0,h._)(["\n  position: absolute;\n  right: 0;\n  top: 50%;\n  transform: translateY(-50%);\n\n  i {\n    font-size: ",";\n  }\n"]);
1return AdditionalInfo_styles_templateObject2=function(){return e},e}let ad=(0,g.ZP)(p.W2).withConfig({componentId:"sc-84a2f842-0"})(AdditionalInfo_styles_templateObject()),au=g.ZP.div.withConfig({componentId:"sc-84a2f842-1"})(AdditionalInfo_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(16,0)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 48%;\n  ")}),ap=g.ZP.div.withConfig({componentId:"sc-84a2f842-2"})(AdditionalInfo_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(32)});function ModalAdditionalInfo_styles_templateObject(){let e=(0,h._)(["\n    transform: translateX(0);\n  "]);return ModalAdditionalInfo_styles_templateObject=function(){return e},e}function ModalAdditionalInfo_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  height: 100vh;\n  background-color: ",";\n  border-top-left-radius: ",";\n  position: absolute;\n  transition: transform 0.2s ease-in-out;\n  right: 0;\n  transform: translateX(100%);\n  z-index: 100;\n\n  ","\n\n  ","\n"]);return ModalAdditionalInfo_styles_templateObject1=function(){return e},e}function ModalAdditionalInfo_styles_templateObject2(){let e=(0,h._)(["\n  padding: ",";\n  border-bottom: 1px solid ",";\n  position: relative;\n\n  ","\n"]);return ModalAdditionalInfo_styles_templateObject2=function(){return e},e}function ModalAdditionalInfo_styles_templateObject3(){let e=(0,h._)(["\n  position: absolute;\n  right: ",";\n  top: 50%;\n  transform: translateY(-50%);\n  cursor: pointer;\n\n  i {\n    font-size: ",";\n  }\n"]);return ModalAdditionalInfo_styles_templateObject3=function(){return e},e}function ModalAdditionalInfo_styles_templateObject4(){let e=(0,h._)(["\n  padding: ",";\n  overflow-y: scroll;\n\n  ","\n"]);return ModalAdditionalInfo_styles_templateObject4=function(){return e},e}function ModalAdditionalInfo_styles_templateObject5(){let e=(0,h._)(["\n  padding-bottom: ",";\n  border-bottom: 1px solid ",";\n  margin-bottom: ",";\n\n  ","\n"]);return ModalAdditionalInfo_styles_templateObject5=function(){return e},e}let am=g.ZP.div.withConfig({componentId:"sc-ad3fa8c7-0"})(ModalAdditionalInfo_styles_templateObject1(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{isOpen:t}=e;return t&&(0,g.iv)(ModalAdditionalInfo_styles_templateObject())},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: ".concat(t.rem(720),";\n  "))}),ah=g.ZP.div.withConfig({componentId:"sc-ad3fa8c7-1"})(ModalAdditionalInfo_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(20,60,20,20)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(24,60,24,24),";\n  "))}),ag=g.ZP.div.withConfig({componentId:"sc-ad3fa8c7-2"})(ModalAdditionalInfo_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.rem(32)}),af=g.ZP.div.withConfig({componentId:"sc-ad3fa8c7-3"})(ModalAdditionalInfo_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(40),";\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: space-between;\n  "))}),ab=g.ZP.div.withConfig({componentId:"sc-ad3fa8c7-4"})(ModalAdditionalInfo_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 48%;\n  ")});var Modal_ModalAdditionalInfo=e=>{let{panelTitle:t,details:n,isOpen:i}=e,{closeModal:l}=(0,b.dd)();return(0,r.jsxs)(am,{isOpen:i,children:[(0,r.jsxs)(ah,{children:[(0,r.jsx)(u.nv,{typo:"paragraphMD",textSecondary:!0,content:t}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.X6,{typo:"headingMD",weight:"semibold",children:"Informazioni aggiuntive"}),(0,r.jsx)(ag,{onClick:l,children:(0,r.jsx)(y.Z,{name:"x-mark"})})]}),(0,r.jsx)(af,{children:n.map((e,t)=>(0,r.jsx)(ab,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",content:e,weight:"semibold"})},t))})]})},organisms_AdditionalInfo=e=>{let{panelTitle:t,details:n=[],paymentsInfo:i=null}=e,{showModal:l}=(0,b.dd)();return(0,r.jsxs)(ad,{children:[(0,r.jsx)(u.X6,{as:"h2",textPrimary:!0,content:"Informazioni aggiuntive",typo:"displaySM"}),(0,r.jsx)(p.Nz,{xs:2}),(0,r.jsxs)(p.kC,{justifyContent:"space-between",children:[(0,r.jsxs)(au,{onClick:()=>l(Modal_ModalAdditionalInfo,{panelTitle:t,details:n}),children:[(0,r.jsx)(u.nv,{textPrimary:!0,content:"Dettagli",typo:"headingMD"}),(0,r.jsx)(ap,{children:(0,r.jsx)(y.Z,{name:"chevron-right"})})]}),i?(0,r.jsxs)(au,{children:[(0,r.jsx)(u.nv,{textPrimary:!0,content:"Informazioni sui pagamenti",typo:"headingMD"}),(0,r.jsx)(ap,{children:(0,r.jsx)(y.Z,{name:"chevron-right"})})]}):null]})]})};
1function FilterTableItem_styles_templateObject(){let e=(0,h._)(["\n  &:not(:last-child) {\n    margin-bottom: ",";\n  }\n"]);return FilterTableItem_styles_templateObject=function(){return e},e}function FilterTableItem_styles_templateObject1(){let e=(0,h._)(["\n  margin-bottom: ",";\n\n  ","\n"]);return FilterTableItem_styles_templateObject1=function(){return e},e}function FilterTableItem_styles_templateObject2(){let e=(0,h._)(["\n  padding-top: ",";\n  display: flex;\n  justify-content: space-between;\n\n  > a {\n    background-color: transparent;\n    padding-left: 0;\n\n    > i + span {\n      left: 0;\n    }\n  }\n\n  ","\n\n  ","\n"]);return FilterTableItem_styles_templateObject2=function(){return e},e}function FilterTableItem_styles_templateObject3(){let e=(0,h._)(["\n\n"]);return FilterTableItem_styles_templateObject3=function(){return e},e}function FilterTableItem_styles_templateObject4(){let e=(0,h._)(["\n  &:first-child {\n    border-top: 1px solid ",";\n  }\n\n  &:not(:last-child) {\n    // margin-bottom: ",";\n    border-bottom: 1px solid ",";\n  }\n"]);return FilterTableItem_styles_templateObject4=function(){return e},e}let ay=g.ZP.div.withConfig({componentId:"sc-ab59f321-0"})(FilterTableItem_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(40)}),a_=g.ZP.div.withConfig({componentId:"sc-ab59f321-1"})(FilterTableItem_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n  ")});g.ZP.div.withConfig({componentId:"sc-ab59f321-2"})(FilterTableItem_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding-top: 0;\n    flex-direction: column;\n    align-items: flex-start;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: row;\n    align-items: center;\n  ")});let ax=g.ZP.div.withConfig({componentId:"sc-ab59f321-3"})(FilterTableItem_styles_templateObject3()),aj=g.ZP.div.withConfig({componentId:"sc-ab59f321-4"})(FilterTableItem_styles_templateObject4(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary});function FilterTableRow_styles_templateObject(){let e=(0,h._)(["\n  padding: ",";\n  background-color: rgba(253, 233, 227, 0.5);\n\n  ","\n"]);return FilterTableRow_styles_templateObject=function(){return e},e}function FilterTableRow_styles_templateObject1(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  margin-bottom: ",";\n\n  ","\n\n  ","\n"]);return FilterTableRow_styles_templateObject1=function(){return e},e}function FilterTableRow_styles_templateObject2(){let e=(0,h._)(["\n  ","\n\n  ","\n\n  &:not(:last-child) {\n    margin-bottom: ",";\n\n    ","\n  }\n\n  &:first-child {\n    ","\n  }\n\n  &:last-child {\n    ","\n\n    ","\n  }\n"]);return FilterTableRow_styles_templateObject2=function(){return e},e}function FilterTableRow_styles_templateObject3(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n\n  button,\n  a {\n    background-color: transparent;\n\n    > i:first-child {\n      background-color: transparent;\n    }\n  }\n\n  button + button,\n  a + a {\n    margin-left: ",";\n  }\n\n  ","\n"]);return FilterTableRow_styles_templateObject3=function(){return e},e}function FilterTableRow_styles_templateObject4(){let e=(0,h._)(["\n  background-color: transparent;\n"]);return FilterTableRow_styles_templateObject4=function(){return e},e}let av=g.ZP.div.withConfig({componentId:"sc-e350989f-0"})(FilterTableRow_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(16,8),";\n    display: flex;\n    align-items: center;\n    background-color: transparent;\n    transition: background-color .2s ease-in 0s;\n\n    &:hover {\n      background-color: rgba(253, 233, 227, .5);\n    }\n  "))}),aC=g.ZP.div.withConfig({componentId:"sc-e350989f-1"}
1)(FilterTableRow_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    flex-direction: row;\n  ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    align-items: center;\n    width: 70%;\n    margin-bottom: 0;\n  ")}),aw=g.ZP.div.withConfig({componentId:"sc-e350989f-2"})(FilterTableRow_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 50%;\n    padding-right: ".concat(t.rem(40),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-right: ".concat(t.rem(24),";\n  "))},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      margin-bottom: 0;\n    ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      width: 70%;\n    ")},e=>{let{theme:t}=e;return t.mediaQuery.md("\n      padding-top: ".concat(t.rem(28),";\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      padding-top: 0;\n      width: 30%;\n    ")}),aO=g.ZP.div.withConfig({componentId:"sc-e350989f-3"})(FilterTableRow_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 30%;\n    justify-content: flex-end;\n  ")}),aS=(0,g.ZP)(m.Z).withConfig({componentId:"sc-e350989f-4"})(FilterTableRow_styles_templateObject4());function ModalFilterTableInfo_styles_templateObject(){let e=(0,h._)(["\n    transform: translateX(0);\n  "]);return ModalFilterTableInfo_styles_templateObject=function(){return e},e}function ModalFilterTableInfo_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  height: 100%;\n  background-color: ",";\n  border-top-left-radius: ",";\n  position: absolute;\n  transition: transform 0.2s ease-in-out;\n  right: 0;\n  transform: translateX(100%);\n  z-index: 100;\n\n  ","\n\n  ","\n"]);return ModalFilterTableInfo_styles_templateObject1=function(){return e},e}function ModalFilterTableInfo_styles_templateObject2(){let e=(0,h._)(["\n  padding: ",";\n  border-bottom: 1px solid ",";\n  position: relative;\n\n  ","\n"]);return ModalFilterTableInfo_styles_templateObject2=function(){return e},e}function ModalFilterTableInfo_styles_templateObject3(){let e=(0,h._)(["\n  position: absolute;\n  right: ",";\n  top: 50%;\n  transform: translateY(-50%);\n  cursor: pointer;\n\n  i {\n    font-size: ",";\n  }\n"]);return ModalFilterTableInfo_styles_templateObject3=function(){return e},e}function ModalFilterTableInfo_styles_templateObject4(){let e=(0,h._)(["\n  // height: calc(100% - ",");\n  padding: ",";\n  overflow-y: scroll;\n\n  ","\n"]);return ModalFilterTableInfo_styles_templateObject4=function(){return e},e}function ModalFilterTableInfo_styles_templateObject5(){let e=(0,h._)(["\n  width: 100%;\n  padding-bottom: ",";\n  border-bottom: 1px solid ",";\n  margin-bottom: ",";\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  gap: ",";\n\n  > p:last-child {\n    width: calc(100% - ",");\n  }\n"]);return ModalFilterTableInfo_styles_templateObject5=function(){return e},e}function ModalFilterTableInfo_styles_templateObject6(){let e=(0,h._)(["\n  width: ",";\n  height: ",";\n  border-radius: 50%;\n  background-color: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return ModalFilterTableInfo_styles_templateObject6=function(){return e},e}let ak=g.ZP.div.withConfig({componentId:"sc-7260689d-0"})(ModalFilterTableInfo_styles_templateObject1(),e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{isOpen:t}=e;return t&&(0,g.iv)(ModalFilterTableInfo_styles_templateObject())},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: ".concat(t.rem(720),";\n  "))}),aP=g.ZP.div.withConfig({componentId:"sc-7260689d-1"})(ModalFilterTableInfo_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(20,60,20,20)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(24,60,24,24),";\n  "))}),aI=g.ZP.div.withConfig({componentId:"sc-7260689d-2"})(ModalFilterTableInfo_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.rem(32)}),aT=g.ZP.div.withConfig({componentId:"sc-7260689d-3"}
1)(ModalFilterTableInfo_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(65)},e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.mediaQuery.md("\n    padding: ".concat(t.rem(40),";\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: space-between;\n  "))}),aZ=g.ZP.div.withConfig({componentId:"sc-7260689d-4"})(ModalFilterTableInfo_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(48)}),az=g.ZP.div.withConfig({componentId:"sc-7260689d-5"})(ModalFilterTableInfo_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.rem(40)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.button.iconBackground});var Modal_ModalFilterTableInfo=e=>{let{modal:t,isOpen:n}=e,{closeModal:i}=(0,b.dd)();return(0,r.jsxs)(ak,{isOpen:n,children:[(0,r.jsxs)(aP,{children:[(0,r.jsx)(u.X6,{typo:"headingMD",weight:"semibold",children:"Com'\xe8 fatto il test"}),(0,r.jsx)(aI,{onClick:i,children:(0,r.jsx)(y.Z,{name:"x-mark"})})]}),(0,r.jsx)(aT,{children:t.map((e,t)=>(0,r.jsxs)(aZ,{children:[e.number?(0,r.jsx)(az,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",content:e.number,weight:"semibold"})}):null,(0,r.jsx)(u.nv,{typo:"paragraphMD",content:e.text,weight:"semibold"})]},t))})]})},molecules_FilterTableRow=e=>{let{title:t,subtitle:n=null,description:i=null,coursesCTA:l,booksCTA:a,modal:o,withModal:s,type:c}=e,{showModal:d}=(0,b.dd)(),h="FilterTableWithModal"===c;return(0,r.jsxs)(av,{children:[(0,r.jsxs)(aC,{children:[(0,r.jsxs)(aw,{children:[(0,r.jsx)(u.X6,{typo:"headingXS",fontSecondary:!0,weight:"semibold",content:t}),(0,r.jsx)(p.Nz,{xs:.5}),n?(0,r.jsx)(u.nv,{fontSecondary:!0,content:n,typo:"paragraphMD"}):null]}),(0,r.jsx)(aw,{children:i?(0,r.jsx)(u.nv,{fontSecondary:!0,content:i,typo:"paragraphMD"}):null})]}),(0,r.jsxs)(aO,{children:[!h&&a?(0,r.jsx)(m.Z,{...a,iconEnd:"chevron-right",iconStart:"book-open",iconStartBackground:"transparent",variant:"secondary"}):null,!h&&l?(0,r.jsx)(m.Z,{...l,iconEnd:"chevron-right",iconStart:"video-camera",iconStartBackground:"transparent",variant:"secondary"}):null,s&&o?(0,r.jsx)(aS,{variant:"secondary",iconEnd:"chevron-right",handleClick:()=>d(Modal_ModalFilterTableInfo,{modal:o}),label:"Scopri di pi\xf9"}):null]})]})},molecules_FilterTableItem=e=>{let{title:t,tests:n,slug:i,type:l,overTitle:a=null,overSubtitle:o=null}=e;return(0,r.jsxs)(ay,{children:[(0,r.jsx)(a_,{children:o?(0,r.jsxs)(p.kC,{$direction:"column",gap:1,children:[(0,r.jsx)(u.X6,{...a,fontSecondary:!0,weight:"semibold"}),(0,r.jsx)(u.nv,{fontSecondary:!0,...o})]}):(0,r.jsx)(u.X6,{typo:"headingXL",fontSecondary:!0,weight:"semibold",content:t})}),(0,r.jsx)(ax,{children:n&&n.length?n.map((e,t)=>(0,r.jsx)(aj,{children:(0,r.jsx)(molecules_FilterTableRow,{...e,type:l})},"FilterTableListItem-".concat(t))):null})]})},aF=n(48802),aE=n.n(aF);function FilterTableFilters_styles_templateObject(){let e=(0,h._)(["\n\n  ","\n"]);return FilterTableFilters_styles_templateObject=function(){return e},e}function FilterTableFilters_styles_templateObject1(){let e=(0,h._)(["\n  ","\n  \n  ","\n"]);return FilterTableFilters_styles_templateObject1=function(){return e},e}function FilterTableFilters_styles_templateObject2(){let e=(0,h._)(["\n  padding-top: ",";\n  display: flex;\n  flex-wrap: wrap;\n"]);return FilterTableFilters_styles_templateObject2=function(){return e},e}function FilterTableFilters_styles_templateObject3(){let e=(0,h._)(["\n  padding-top: ",";\n  position: relative;\n"]);return FilterTableFilters_styles_templateObject3=function(){return e},e}function FilterTableFilters_styles_templateObject4(){let e=(0,h._)(["\n    left: ",";\n    bottom: ",";\n\n    i {\n      font-size: ",";\n    }\n  "]);return FilterTableFilters_styles_templateObject4=function(){return e},e}function FilterTableFilters_styles_templateObject5(){let e=(0,h._)(["\n  position: absolute;\n  \n  ","\n"]);return FilterTableFilters_styles_templateObject5=function(){return e},e}
1function FilterTableFilters_styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n  -webkit-appearance: none;\n  height: ",";\n  border: 1px solid ",";\n  border-radius: ",";\n  color: ",";\n  display: flex;\n  align-items: center;\n  padding: ",";\n  background-color: transparent;\n  ",";\n  ",";\n\n  &::placeholder {\n    color: inherit;\n  }\n"]);return FilterTableFilters_styles_templateObject6=function(){return e},e}let aM=g.ZP.div.withConfig({componentId:"sc-223fdadc-0"})(FilterTableFilters_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: flex;\n  ")}),aA=g.ZP.div.withConfig({componentId:"sc-223fdadc-1"})(FilterTableFilters_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 50%;\n\n    &:last-child {\n      padding-left: ".concat(t.rem(40),";\n    }\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    &:last-child {\n      padding-left: ".concat(t.rem(140),";\n    }\n  "))}),aB=g.ZP.div.withConfig({componentId:"sc-223fdadc-2"})(FilterTableFilters_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(16)}),aN=g.ZP.div.withConfig({componentId:"sc-223fdadc-3"})(FilterTableFilters_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(16)}),aD=g.ZP.div.withConfig({componentId:"sc-223fdadc-4"})(FilterTableFilters_styles_templateObject5(),e=>{let{theme:t,magnifyingGlass:n}=e;return n&&(0,g.iv)(FilterTableFilters_styles_templateObject4(),t.rem(24),t.rem(16),t.rem(24))}),aR=g.ZP.input.withConfig({componentId:"sc-223fdadc-5"})(FilterTableFilters_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(64)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.textSecondary},e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.textSecondary},e=>{let{theme:t}=e;return t.rem(0,56)},e=>{let{theme:t}=e;return t.typo("paragraphLG")},aE().style);function Chip_styles_templateObject(){let e=(0,h._)(["\n  background-color: ",";\n  color: ",";\n"]);return Chip_styles_templateObject=function(){return e},e}function Chip_styles_templateObject1(){let e=(0,h._)(["\n    ","\n  "]);return Chip_styles_templateObject1=function(){return e},e}function Chip_styles_templateObject2(){let e=(0,h._)(["\n  padding: ",";\n  transition: all .2s ease-in 0s;\n  border-radius: ",";\n  border: 1px solid ",";\n  cursor: pointer;\n  text-transform: uppercase;\n  margin-bottom: ",";\n\n  &:hover {\n    ","\n  }\n  ","\n\n  ","\n\n  &:not(:last-child) {\n    margin-right: ",";\n  }\n\n  > * {\n    pointer-events: none;\n  }\n"]);return Chip_styles_templateObject2=function(){return e},e}let aL=(0,g.iv)(Chip_styles_templateObject(),e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.colorIcon},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor}),aQ=g.ZP.div.withConfig({componentId:"sc-51ff7a56-0"})(Chip_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(10)},e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderPrimary},e=>{let{theme:t}=e;return t.rem(8)},aL,e=>{let{theme:t}=e;return t.mediaQuery.lg("\n  ")},e=>{let{isActive:t}=e;return t&&(0,g.iv)(Chip_styles_templateObject1(),aL)},e=>{let{theme:t}=e;return t.rem(8)});var atoms_Chip=e=>{let{label:t=null,isActive:n,handleClick:i=()=>{}}=e;return(0,r.jsx)(aQ,{isActive:n,onClick:()=>i(),children:(0,r.jsx)(u.__,{content:t,weight:"semibold",textSecondary:!0})})},molecules_FilterTableFilters=e=>{let{filters:t=null,handleClick:n=()=>{},handleSearch:i=()=>{},selectedFilter:l="all",searchValue:a=""}=e;return(0,r.jsxs)(aM,{children:[(0,r.jsxs)(aA,{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",fontSecondary:!0,weight:"semibold",content:"Filtra per"}),(0,r.jsx)(aB,{children:t&&t.map((e,t)=>(0,r.jsx)(atoms_Chip,{label:e.label,isActive:l===e.value,handleClick:()=>n(e.value)},"FilterTableFilters-".concat(t)))})]}),(0,r.jsxs)(aA,{children:[(0,r.jsx)(u.nv,{typo:"paragraphLG",fontSecondary:!0,weight:"semibold",content:"Cerca"}),(0,r.jsxs)(aN,{children:[(0,r.jsx)(aD,{magnifyingGlass:!0,children:(0,r.jsx)(y.Z,{name:"magnifying-glass"})}),(0,r.jsx)(aR,{type:"text",placeholder:"Cerca disciplina",onChange:e=>i(e.target.value),value:a})]})]})]})};
1function FilterTable_styles_templateObject(){let e=(0,h._)(["\n  padding: ",";\n  // background-color: ",";\n"]);return FilterTable_styles_templateObject=function(){return e},e}function FilterTable_styles_templateObject1(){let e=(0,h._)(["\n  padding: "," 0;\n"]);return FilterTable_styles_templateObject1=function(){return e},e}function FilterTable_styles_templateObject2(){let e=(0,h._)(["\n  padding: "," 0;\n"]);return FilterTable_styles_templateObject2=function(){return e},e}function FilterTable_styles_templateObject3(){let e=(0,h._)(["\n\n"]);return FilterTable_styles_templateObject3=function(){return e},e}function FilterTable_styles_templateObject4(){let e=(0,h._)(["\n\n"]);return FilterTable_styles_templateObject4=function(){return e},e}function FilterTable_styles_templateObject5(){let e=(0,h._)(["\n  padding: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return FilterTable_styles_templateObject5=function(){return e},e}let aq=g.ZP.div.withConfig({componentId:"sc-6260d012-0"})(FilterTable_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24,16)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor}),aH=(0,g.ZP)(p.W2).withConfig({componentId:"sc-6260d012-1"})(FilterTable_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)}),aV=(0,g.ZP)(p.W2).withConfig({componentId:"sc-6260d012-2"})(FilterTable_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(40)});g.ZP.div.withConfig({componentId:"sc-6260d012-3"})(FilterTable_styles_templateObject3()),g.ZP.div.withConfig({componentId:"sc-6260d012-4"})(FilterTable_styles_templateObject4());let aX=g.ZP.div.withConfig({componentId:"sc-6260d012-5"})(FilterTable_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(80)});var organisms_FilterTable=e=>{let{sectionId:t,admissionTestData:n,type:l,overTitle:a,overSubtitle:o}=e,[s,c]=(0,i.useState)("all"),[d,p]=(0,i.useState)(n),[m,h]=(0,i.useState)(""),[g,f]=(0,i.useState)([]),filterByTitleOrSubtitle=(e,t)=>e.reduce((e,n)=>{let r={};return(r.tests=n.tests.filter(e=>{if(-1!==e.title.toLowerCase().indexOf(t))return e}),r.tests.length)?(r.id=n.id,r.title=n.title,r.slug=n.slug,[...e,r]):e},[]),handleFilterSelection=e=>{"all"===e?p(n):p(n.filter(t=>t.slug===e)),c(t=>e),h(e=>"")},handleSearch=e=>{""!==m&&"all"!==s&&c("all"),p(filterByTitleOrSubtitle(n,e)),h(t=>e)};return(0,i.useEffect)(()=>{let e=n.map(e=>({label:e.title,value:e.slug}));f(t=>[{label:"TUTTI",value:"all"},...e])},[]),(0,r.jsxs)(aq,{as:"section",id:t,children:["FilterTableWithModal"!==l?(0,r.jsx)(aH,{children:(0,r.jsx)(molecules_FilterTableFilters,{filters:g,selectedFilter:s,searchValue:m,handleClick:e=>handleFilterSelection(e),handleSearch:e=>handleSearch(e)})}):null,(0,r.jsx)(aV,{children:d&&d.length?d.map((e,t)=>(0,r.jsx)(molecules_FilterTableItem,{...e,type:l,overTitle:a,overSubtitle:o},"FilterTableItem-".concat(t))):(0,r.jsx)(aX,{children:(0,r.jsx)(u.X6,{typo:"headingXS",content:"Nessun risultato",fontSecondary:!0,weight:"semibold"})})})]})},aU=n(82606);function TypeformEmbed_styles_templateObject(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n  "]);return TypeformEmbed_styles_templateObject=function(){return e},e}function TypeformEmbed_styles_templateObject1(){let e=(0,h._)(["\n      height: "," !important;\n    "]);return TypeformEmbed_styles_templateObject1=function(){return e},e}function TypeformEmbed_styles_templateObject2(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n\n  iframe {\n    ","\n  }\n"]);return TypeformEmbed_styles_templateObject2=function(){return e},e}let aG=g.ZP.section.withConfig({componentId:"sc-87139f00-0"})(TypeformEmbed_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(TypeformEmbed_styles_templateObject(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary)},e=>{let{iframeHeight:t}=e;
1return t&&(0,g.iv)(TypeformEmbed_styles_templateObject1(),"auto"==t?t:"".concat(t,"px"))}),TypeformEmbed_TypeformEmbed=e=>{let{sectionId:t,formId:n,iframeHeight:l="auto"}=e,{selectedColorScheme:a}=(0,i.useContext)(s.x);return n?(0,r.jsx)(aG,{colorScheme:a,id:t,iframeHeight:l,as:p.W2,children:(0,r.jsx)(aU.Widget,{id:n})}):null};TypeformEmbed_TypeformEmbed.propTypes={sectionId:a().string,colorScheme:o.hl,formId:a().string.isRequired};var aW=TypeformEmbed_TypeformEmbed;function CardBentoGrid_styles_templateObject(){let e=(0,h._)(["\n  height: 70%;\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  position: absolute;\n  top: 50%;\n  left: calc(100% - 200px);\n  opacity: 0.15;\n  pointer-events: none;\n  transform: translate(0, -50%);\n\n  ","\n\n  > svg {\n    width: auto;\n    height: 120%;\n\n    path {\n      transition: fill 0.3s ease-in-out;\n    }\n  }\n"]);return CardBentoGrid_styles_templateObject=function(){return e},e}function CardBentoGrid_styles_templateObject1(){let e=(0,h._)(["\n  position: absolute;\n  bottom: 20px;\n  right: 20px;\n  padding: ",";\n  border-radius: 100%;\n  transform: scale(1);\n  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;\n\n  ","\n"]);return CardBentoGrid_styles_templateObject1=function(){return e},e}function CardBentoGrid_styles_templateObject2(){let e=(0,h._)(["\n    padding-right: ",";\n  "]);return CardBentoGrid_styles_templateObject2=function(){return e},e}function CardBentoGrid_styles_templateObject3(){let e=(0,h._)(["\n  height: 100%;\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  padding: ",";\n  overflow: hidden;\n\n  ","\n\n  ","\n"]);return CardBentoGrid_styles_templateObject3=function(){return e},e}function CardBentoGrid_styles_templateObject4(){let e=(0,h._)(["\n      top: 50%;\n      bottom: auto;\n      transform: translateY(-50%) scale(1);\n    "]);return CardBentoGrid_styles_templateObject4=function(){return e},e}function CardBentoGrid_styles_templateObject5(){let e=(0,h._)(["\n      ","\n    "]);return CardBentoGrid_styles_templateObject5=function(){return e},e}function CardBentoGrid_styles_templateObject6(){let e=(0,h._)(["\n  height: 100%;\n  border-radius: ",";\n  background-color: ",";\n  transition: background-color 0.3s ease-in-out;\n\n  ","\n\n  "," {\n    display: block;\n    transition: color 0.3s ease-in-out;\n  }\n\n  "," {\n    color: ",";\n    background-color: ",";\n\n    ","\n  }\n\n  "," {\n    ","\n  }\n\n  &:hover,\n  &:focus-within {\n    background-color: ",";\n\n    "," {\n      color: ",";\n    }\n\n    "," {\n      > svg {\n        path {\n          fill: ",";\n        }\n      }\n    }\n\n    "," {\n      background-color: ",";\n\n      ","\n    }\n  }\n"]);return CardBentoGrid_styles_templateObject6=function(){return e},e}let aJ=g.ZP.div.withConfig({componentId:"sc-a3a23fae-0"})(CardBentoGrid_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    height: 100%;\n    left: calc(100% - 100px);\n  ",!0)}),a$=g.ZP.div.withConfig({componentId:"sc-a3a23fae-1"})(CardBentoGrid_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(10)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    top: 50%;\n    bottom: auto;\n    transform: translateY(-50%) scale(1);\n  ",!0)}),aY=g.ZP.div.withConfig({componentId:"sc-a3a23fae-2"})(CardBentoGrid_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{isStacked:t}=e;return t&&(0,g.iv)(CardBentoGrid_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(84)})},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-right: ".concat(t.rem(73),";\n  "),!0)}),aK=g.ZP.div.withConfig({componentId:"sc-a3a23fae-3"})(CardBentoGrid_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(20)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: ".concat(t.rem(8),";\n  "),!0)},nc.nv,a$,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].button.iconColor},e=>{let{theme:t,colorScheme:n}=e;
1return t.colorScheme["".concat(n)].button.iconBackground},e=>{let{isStacked:t,onlyTitle:n}=e;return(t||n)&&(0,g.iv)(CardBentoGrid_styles_templateObject4())},aJ,e=>{let{theme:t,isStacked:n}=e;return n&&(0,g.iv)(CardBentoGrid_styles_templateObject5(),t.mediaQuery.lg("\n        left: calc(100% - 50px);\n      "))},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.primaryPressedBackground},nc.nv,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.backgroundColor},aJ,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].surface.backgroundColor},a$,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme[n].button.iconBackgroundHover},e=>{let{theme:t,isStacked:n,onlyTitle:r}=e;return t.mediaQuery.lg("\n        transform: translateY(".concat(n||r?"-50%":"0",") scale(1.2);\n      "))});var molecules_CardBentoGrid=e=>{let{colorScheme:t,title:n,body:i,cta:l,imageShape:a,isStacked:o}=e;return(0,r.jsx)(tv.Z,{href:null==l?void 0:l.href,target:null==l?void 0:l.target,children:(0,r.jsx)(aK,{as:(null==l?void 0:l.href)?"a":"div",href:null==l?void 0:l.href,"aria-label":(null==l?void 0:l.href)?"Vai a ".concat(null==n?void 0:n.content):null,colorScheme:t,isStacked:o,onlyTitle:n&&!i&&!a,children:(0,r.jsxs)(aY,{isStacked:o,children:[n?(0,r.jsx)(u.nv,{...n,weight:"semibold"}):null,i?(0,r.jsxs)(r.Fragment,{children:[n?(0,r.jsx)(p.Nz,{xs:1}):null,(0,r.jsx)(u.nv,{typo:"label",as:"div",children:i})]}):null,a?(0,r.jsx)(aJ,{children:(0,r.jsx)(molecules_Shape,{imageShape:a,color:(0,D.getColorByScheme)(t)})}):null,(0,r.jsx)(a$,{children:(0,r.jsx)(y.Z,{name:"arrow-up-right",size:"big"})})]})})})};function BentoBoxGrid_styles_templateObject(){let e=(0,h._)(["\n  padding-top: ",";\n  padding-bottom: ",";\n\n  ","\n"]);return BentoBoxGrid_styles_templateObject=function(){return e},e}function BentoBoxGrid_styles_templateObject1(){let e=(0,h._)(["\n  ","\n"]);return BentoBoxGrid_styles_templateObject1=function(){return e},e}function BentoBoxGrid_styles_templateObject2(){let e=(0,h._)(["\n  gap: ",";\n\n  ","\n"]);return BentoBoxGrid_styles_templateObject2=function(){return e},e}let a0=(0,g.ZP)(p.W2).withConfig({componentId:"sc-bd9fbdd8-0"})(BentoBoxGrid_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))}),a1=g.ZP.div.withConfig({componentId:"sc-bd9fbdd8-1"})(BentoBoxGrid_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    &:not(:last-child) {\n      margin-bottom: ".concat(t.rem(24),";\n    }\n  "))}),a2=g.ZP.div.withConfig({componentId:"sc-bd9fbdd8-2"})(BentoBoxGrid_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    gap: ".concat(t.rem(24),";\n  "))}),BentoBoxGrid_BentoBoxGrid=e=>{let{sectionId:t,rows:n}=e;return n.length>0?(0,r.jsx)(a0,{id:t,as:"section",children:n.map((e,t)=>(0,r.jsx)(a1,{as:p.X2,children:e.columns.length>0?e.columns.map((e,t)=>(0,r.jsx)(a2,{as:p.JX,xs:12,lg:e.columnCount,$direction:"column",children:e.items.length>0?e.items.map((t,n)=>(0,r.jsx)(molecules_CardBentoGrid,{...t,isStacked:e.items.length>2},n)):null},t)):null},t))}):null};BentoBoxGrid_BentoBoxGrid.propTypes={sectionId:a().string,rows:a().array.isRequired};var a4=BentoBoxGrid_BentoBoxGrid,a6=n(66473);function EditorialCard_styles_templateObject(){let e=(0,h._)(["\n  display: inline-block;\n  padding: ",";\n  border-radius: ",";\n  font-size: ",";\n  font-weight: 600;\n  text-transform: uppercase;\n  margin-bottom: ",";\n  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;\n"]);return EditorialCard_styles_templateObject=function(){return e},e}function EditorialCard_styles_templateObject1(){let e=(0,h._)(["\n    mask-image: url('/masks/mask-",".svg');\n    mask-size: cover;\n    mask-repeat: no-repeat;\n    mask-position: center;\n  "]);return EditorialCard_styles_templateObject1=function(){return e},e}function EditorialCard_styles_templateObject2(){let e=(0,h._)(["\n  width: 100%;\n  position: relative;\n  aspect-ratio: 4 / 4;\n\n  ","\n\n  img {\n    object-fit: cover;\n    object-position: center;\n    transform: scale(1.1);\n  }\n"]);
1return EditorialCard_styles_templateObject2=function(){return e},e}function EditorialCard_styles_templateObject3(){let e=(0,h._)(["\n  position: absolute;\n  bottom: 5%;\n  right: 5%;\n  padding: ",";\n  border-radius: 100%;\n  opacity: 0;\n  transform: translate(-24px, 24px) scale(0.8);\n  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;\n"]);return EditorialCard_styles_templateObject3=function(){return e},e}function EditorialCard_styles_templateObject4(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      color: ",";\n      background-color: ",";\n    }\n\n    "," {\n      color: ",";\n      background-color: ",";\n    }\n  "]);return EditorialCard_styles_templateObject4=function(){return e},e}function EditorialCard_styles_templateObject5(){let e=(0,h._)(["\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-between;\n  text-align: center;\n  border-radius: ",";\n  transition: background-color 0.3s ease-in-out, transform 0.6s cubic-bezier(0.5, 2.5, 0.7, 0.7);\n  \n  ","\n\n  &:hover,\n  &:focus-within {\n    color: ",";\n    background-color: ",";\n    transform: translateY(-5px);\n\n    "," {\n      color: ",";\n      background-color: ",";\n    }\n\n    "," {\n      background-color: ",";\n      opacity: 1;\n      transform: translate(0, 0) scale(1);\n    }\n  }\n"]);return EditorialCard_styles_templateObject5=function(){return e},e}function EditorialCard_styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n  padding: ",";\n"]);return EditorialCard_styles_templateObject6=function(){return e},e}let a5=g.ZP.span.withConfig({componentId:"sc-cb4df05d-0"})(EditorialCard_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(3,12)},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(14)},e=>{let{theme:t}=e;return t.rem(8)}),a3=g.ZP.div.withConfig({componentId:"sc-cb4df05d-1"})(EditorialCard_styles_templateObject2(),e=>{let{maskType:t}=e;return t&&(0,g.iv)(EditorialCard_styles_templateObject1(),t)}),a8=g.ZP.div.withConfig({componentId:"sc-cb4df05d-2"})(EditorialCard_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(20)}),a9=g.ZP.a.withConfig({componentId:"sc-cb4df05d-3"})(EditorialCard_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(EditorialCard_styles_templateObject4(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,a5,t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].button.primaryPressedBackground,a8,t.colorScheme["".concat(n)].button.iconColor,t.colorScheme["".concat(n)].button.iconBackground)},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].button.primaryPressedBackground},a5,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].button.primaryPressedBackground},e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].surface.backgroundColor},a8,e=>{let{theme:t,colorScheme:n}=e;return t.colorScheme["".concat(n)].button.iconBackground}),a7=g.ZP.div.withConfig({componentId:"sc-cb4df05d-4"})(EditorialCard_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(24,16)}),oe={premium:"star",sprint:"circle",essential:"cross",masterclass:"square",biennale:"star"};var molecules_EditorialCard=e=>{let{colorScheme:t,image:n,imageShape:l,subtitle:a,tag:o,title:s,slug:c}=e,m=(0,i.useRef)(null),h=(0,i.useRef)(null);oe[l];let g=(0,i.useCallback)(e=>{let t=m.current.getBoundingClientRect(),n=(e.clientX-t.left)/2/20,r=(e.clientY-t.top)/2/20;no.ZP.to(h.current,{x:n,y:r})},[]);return(0,a6.Z)("mousemove",g,{target:m}),(0,r.jsx)(tv.Z,{href:"".concat(c),children:(0,r.jsxs)(a9,{href:"".concat(c),colorScheme:t,ref:m,children:[(0,r.jsxs)(a7,{children:[o?(0,r.jsx)(a5,{typo:"label",weight:"semibold",children:o}):null,(0,r.jsx)(u.nv,{...s,weight:"semibold"}),a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{...a}
1)]}):null]}),(0,r.jsx)(a3,{maskType:l,ref:e=>h.current=(null==e?void 0:e.childNodes)?e.childNodes[0]:null,children:n?(0,r.jsx)(d(),{src:n.url,alt:n.alt||"",fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 75vw"}):null}),(0,r.jsx)(a8,{children:(0,r.jsx)(y.Z,{name:"arrow-up-right",size:"huge"})})]})})};function EditorialCardsSwiper_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  height: 4px;\n\n  ","\n"]);return EditorialCardsSwiper_styles_templateObject=function(){return e},e}function EditorialCardsSwiper_styles_templateObject1(){let e=(0,h._)(["\n  position: relative;\n\n  .swiper-wrapper {\n    padding: ",";\n\n    ","\n\n    .swiper-slide {\n      height: auto !important;\n    }\n  }\n"]);return EditorialCardsSwiper_styles_templateObject1=function(){return e},e}function EditorialCardsSwiper_styles_templateObject2(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return EditorialCardsSwiper_styles_templateObject2=function(){return e},e}function EditorialCardsSwiper_styles_templateObject3(){let e=(0,h._)(["\n  position: relative;\n  padding: ",";\n  top: auto;\n  left: auto;\n  transform: translateY(0);\n  z-index: 1;\n\n  ","\n\n  button {\n    &:first-of-type {\n      margin-left: 0; \n    }\n\n    &.swiper-button-lock {\n      display: none;\n    }\n  }\n"]);return EditorialCardsSwiper_styles_templateObject3=function(){return e},e}function EditorialCardsSwiper_styles_templateObject4(){let e=(0,h._)(["\n  left: 0;\n\n  ","\n"]);return EditorialCardsSwiper_styles_templateObject4=function(){return e},e}function EditorialCardsSwiper_styles_templateObject5(){let e=(0,h._)(["\n  right: 0;\n\n  ","\n"]);return EditorialCardsSwiper_styles_templateObject5=function(){return e},e}let ot=g.ZP.div.withConfig({componentId:"sc-6a2a3299-0"})(EditorialCardsSwiper_styles_templateObject(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-top: ".concat(t.rem(24),";\n  "),!0)}),on=g.ZP.div.withConfig({componentId:"sc-6a2a3299-1"})(EditorialCardsSwiper_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      padding: ".concat(t.rem(40,0),";\n    "))}),or=g.ZP.div.withConfig({componentId:"sc-6a2a3299-2"})(EditorialCardsSwiper_styles_templateObject2()),oi=g.ZP.div.withConfig({componentId:"sc-6a2a3299-3"})(EditorialCardsSwiper_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(0,10)},e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    position: absolute;\n    padding: 0;\n    top: 50%;\n    transform: translateY(-50%);\n  ")}),ol=(0,g.ZP)(oi).withConfig({componentId:"sc-6a2a3299-4"})(EditorialCardsSwiper_styles_templateObject4(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    left: -52px;\n  ")}),oa=(0,g.ZP)(oi).withConfig({componentId:"sc-6a2a3299-5"})(EditorialCardsSwiper_styles_templateObject5(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    right: -52px;\n  ")});var molecules_EditorialCardsSwiper=e=>{let{items:t}=e,[n,i]=(0,K.Z)(),[l,a]=(0,K.Z)(),[o,s]=(0,K.Z)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(on,{children:[(0,r.jsx)(et.tq,{modules:[ee.W_,ee.LW,ee.s5],spaceBetween:28,slidesPerView:1,centerInsufficientSlides:!0,breakpoints:{768:{spaceBetween:40,slidesPerView:2},992:{slidesPerView:3}},navigation:{prevEl:l,nextEl:n},scrollbar:{el:o},a11y:{prevSlideMessage:"Precedente slide",nextSlideMessage:"Prossima slide"},grabCursor:!0,children:t.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(molecules_EditorialCard,{...e})},"EditorialCards-Item-".concat(t,"-").concat(null==e?void 0:e.id)))}),(0,r.jsxs)(or,{children:[(0,r.jsx)(ol,{children:(0,r.jsx)(m.a,{ref:a,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big"})}),(0,r.jsx)(oa,{children:(0,r.jsx)(m.a,{ref:i,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big"})})]})]}),(0,r.jsx)(ot,{ref:s})]})};function EditorialCardsList_styles_templateObject(){let e=(0,h._)(["\n  row-gap: ",";\n  padding: ",";\n\n  ","\n\n  ","\n"]);return EditorialCardsList_styles_templateObject=function(){return e},e}let oo=g.ZP.div.withConfig({componentId:"sc-a0f01517-0"}
1)(EditorialCardsList_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(24,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(40,0),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    row-gap: ".concat(t.rem(24),";\n  "))});var molecules_EditorialCardsList=e=>{let{items:t}=e;return(0,r.jsx)(oo,{as:p.X2,children:t.map((e,t)=>(0,r.jsx)(p.JX,{xs:12,sm:6,lg:4,children:(0,r.jsx)(molecules_EditorialCard,{...e})},t))})};function EditorialCards_styles_templateObject(){let e=(0,h._)(["\n    background-color: ",";\n    color: ",";\n\n    "," {\n      background-color: ",";\n\n      .swiper-scrollbar-drag {\n        background-color: ",";\n      }\n    }\n  "]);return EditorialCards_styles_templateObject=function(){return e},e}function EditorialCards_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  padding-top: ",";\n  padding-bottom: ",";\n\n  /* "," */\n\n  ","\n"]);return EditorialCards_styles_templateObject1=function(){return e},e}function EditorialCards_styles_templateObject2(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n\n  ","\n"]);return EditorialCards_styles_templateObject2=function(){return e},e}function EditorialCards_styles_templateObject3(){let e=(0,h._)(["\n        margin-top: ",";\n      "]);return EditorialCards_styles_templateObject3=function(){return e},e}function EditorialCards_styles_templateObject4(){let e=(0,h._)(["\n      margin-top: ",";\n      ","\n    "]);return EditorialCards_styles_templateObject4=function(){return e},e}function EditorialCards_styles_templateObject5(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n\n  ","\n"]);return EditorialCards_styles_templateObject5=function(){return e},e}let os=g.ZP.div.withConfig({componentId:"sc-b38a0a1f-0"})(EditorialCards_styles_templateObject1(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t,colorScheme:n}=e;return(0,g.iv)(EditorialCards_styles_templateObject(),t.colorScheme["".concat(n)].surface.backgroundColor,t.colorScheme["".concat(n)].surface.textPrimary,ot,t.colorScheme["".concat(n)].surface.borderSecondary,t.colorScheme["".concat(n)].button.iconBackground)}),oc=g.ZP.div.withConfig({componentId:"sc-b38a0a1f-1"})(EditorialCards_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    align-items: flex-start;\n  ",!0)});g.ZP.div.withConfig({componentId:"sc-b38a0a1f-2"})(EditorialCards_styles_templateObject5(),e=>{let{isItemsMoreThanThree:t}=e;return t&&(0,g.iv)(EditorialCards_styles_templateObject4(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg(EditorialCards_styles_templateObject3(),t.rem(40))})});let EditorialCards_EditorialCards=e=>{let{sectionId:t,listType:n,items:l,cta:a,title:o}=e,{selectedColorScheme:c}=(0,i.useContext)(s.x);return(0,r.jsx)(os,{colorScheme:c,as:"section",id:t,children:(0,r.jsxs)(p.W2,{children:[a||o?(0,r.jsxs)(oc,{children:[o?(0,r.jsx)(u.nv,{typo:"headingXL",content:o.content,weight:"semibold"}):null,a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(m.Z,{...a,variant:"secondary",iconEnd:"arrow-right"})]}):null]}):null,"list"===n?(0,r.jsx)(molecules_EditorialCardsList,{items:l}):(0,r.jsx)(molecules_EditorialCardsSwiper,{items:l})]})})};EditorialCards_EditorialCards.propTypes={sectionId:a().string,title:o.DN,cta:o.$Z,courses:a().array};var od=EditorialCards_EditorialCards;function EditorialReviewCard_styles_templateObject(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  padding: 16px;\n  border: 1px solid #1b18187b;\n  border-radius: ",";\n  background-color: ",";\n  height: 100%;\n\n  .card-title{\n    font-size: 21px;\n    line-height: 26px;\n    margin-bottom: 6px;\n\n    ","\n  }\n\n    ","\n\n"]);return EditorialReviewCard_styles_templateObject=function(){return e},e}
1function EditorialReviewCard_styles_templateObject1(){let e=(0,h._)(["\n  color: ",";\n  transform: rotate(180deg);\n  width: fit-content;\n"]);return EditorialReviewCard_styles_templateObject1=function(){return e},e}function EditorialReviewCard_styles_templateObject2(){let e=(0,h._)(["\n    font-size: 16px;\n    line-height: 24px;\n"]);return EditorialReviewCard_styles_templateObject2=function(){return e},e}function EditorialReviewCard_styles_templateObject3(){let e=(0,h._)(["\n  padding-top: 8px;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 12px;\n  margin-top: auto;\n\n  ","\n"]);return EditorialReviewCard_styles_templateObject3=function(){return e},e}function EditorialReviewCard_styles_templateObject4(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  min-width: 0;\n"]);return EditorialReviewCard_styles_templateObject4=function(){return e},e}function EditorialReviewCard_styles_templateObject5(){let e=(0,h._)(["\n  position: relative;\n  width: 32px;\n  height: 32px;\n  flex-shrink: 0;\n  border-radius: 50%;\n  overflow: hidden;\n\n  img {\n    object-fit: cover;\n    object-position: center;\n  }\n"]);return EditorialReviewCard_styles_templateObject5=function(){return e},e}function EditorialReviewCard_styles_templateObject6(){let e=(0,h._)(["\n  display: flex;\n  flex-direction: column;\n  gap: ",";\n  min-width: 0;\n"]);return EditorialReviewCard_styles_templateObject6=function(){return e},e}function EditorialReviewCard_styles_templateObject7(){let e=(0,h._)(["\n  width: 0.3px;\n  height: 40px;\n  background-color: #1b181829;\n  flex-shrink: 0;\n"]);return EditorialReviewCard_styles_templateObject7=function(){return e},e}function EditorialReviewCard_styles_templateObject8(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n  gap: ",";\n  flex-shrink: 0;\n"]);return EditorialReviewCard_styles_templateObject8=function(){return e},e}let ou=g.ZP.div.withConfig({componentId:"sc-eb14c116-0"})(EditorialReviewCard_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colors.grayscale.white},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      font-size: 26px;\n      line-height: 30px;\n      margin-bottom: 0px;\n    ")},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        gap: 12px;\n        padding: 20px;\n    ")}),op=g.ZP.div.withConfig({componentId:"sc-eb14c116-1"})(EditorialReviewCard_styles_templateObject1(),e=>{let{theme:t}=e;return t.colors.brands.coral}),om=g.ZP.div.withConfig({componentId:"sc-eb14c116-2"})(EditorialReviewCard_styles_templateObject2()),oh=g.ZP.div.withConfig({componentId:"sc-eb14c116-3"})(EditorialReviewCard_styles_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: row-reverse;\n    align-items: center;\n    justify-content: space-between;\n  ")}),og=g.ZP.div.withConfig({componentId:"sc-eb14c116-4"})(EditorialReviewCard_styles_templateObject4()),of=g.ZP.div.withConfig({componentId:"sc-eb14c116-5"})(EditorialReviewCard_styles_templateObject5()),ob=g.ZP.div.withConfig({componentId:"sc-eb14c116-6"})(EditorialReviewCard_styles_templateObject6(),e=>{let{theme:t}=e;return t.rem(2)}),oy=g.ZP.div.withConfig({componentId:"sc-eb14c116-7"})(EditorialReviewCard_styles_templateObject7()),o_=g.ZP.div.withConfig({componentId:"sc-eb14c116-8"})(EditorialReviewCard_styles_templateObject8(),e=>{let{theme:t}=e;return t.rem(2)}),ox="M10.7881 3.21068C11.2365 2.13274 12.7635 2.13273 13.2119 3.21068L15.2939 8.2164L20.6979 8.64964C21.8617 8.74293 22.3336 10.1952 21.4469 10.9547L17.3296 14.4817L18.5875 19.7551C18.8584 20.8908 17.623 21.7883 16.6267 21.1798L12 18.3538L7.37335 21.1798C6.37703 21.7883 5.14164 20.8908 5.41252 19.7551L6.67044 14.4817L2.55309 10.9547C1.66645 10.1952 2.13833 8.74294 3.30206 8.64964L8.70615 8.2164L10.7881 3.21068Z",EditorialReviewCard_StarRating=e=>{let{value:t}=e,n=(0,i.useId)(),l=Math.floor(t),a=t-l>=.5;return(0,r.jsxs)(o_,{"aria-label":"".concat(t," stelle su 5"),children:[Array.from({length:l}).map((e,t)=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:ox,fill:"#E5673E"})},"full-".concat(t))),a&&(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"star-half-".concat(n),children:(0,r.jsx)("rect",{x:"0",y:"0",width:"12",height:"24"})})}),(0,r.jsx)("path",{d:ox,fill:"#CCD6DE"}),(0,r.jsx)("path",{d:ox,fill:"#E5673E",clipPath:"url(#star-half-".concat(n,")")})]}),Array.from({length:5-l-(a?1:0)}).map((e,t)=>(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:ox,fill:"#CCD6DE"})},"empty-".concat(t)))]})};var molecules_EditorialReviewCard=e=>{let{title:t,description:n,author:i,profession:l,picture:a,star:o}=e;return(0,r.jsxs)(ou,{children:[(0,r.jsx)(op,{children:(0,r.jsx)(y.Z,{name:"quote",size:"big",unlockedProportions:!0,ariaHidden:!0})}),(0,r.jsx)(u.nv,{className:"card-title",typo:"paragraphLG",weight:"normal",textPrimary:!0,fontPrimary:!0,children:t}),n?(0,r.jsx)(om,{as:u.nv,typo:"paragraphSM",textSecondary:!0,children:n}):null,(0,r.jsxs)(oh,{children:[o?(0,r.jsx)(EditorialReviewCard_StarRating,{value:o}):null,(0,r.jsxs)(og,{children:[a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(of,{children:(0,r.jsx)(d(),{src:a.src,alt:a.alt||i||"",fill:!0,sizes:"32px"})}),(0,r.jsx)(oy,{})]}):null,(0,r.jsxs)(ob,{children:[i?(0,r.jsx)(u.nv,{style:{fontSize:"14px"},typo:"paragraphMD",weight:"normal",children:i}):null,l?(0,r.jsx)(u.nv,{style:{marginTop:"-5px",fontSize:"14px"},typo:"paragraphMD",weight:"medium",textSecondary:!0,children:l}):null]})]})]})]})};
1function EditorialReviews_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  overflow-x: clip;\n  padding-top: ",";\n  padding-bottom: ",";\n\n  ","\n\n  .section-title {\n    text-wrap: balance;\n    font-size: 24px;\n    line-height: 28px;\n    color: #1b1818;\n\n    ","\n  }\n"]);return EditorialReviews_styles_templateObject=function(){return e},e}function EditorialReviews_styles_templateObject1(){let e=(0,h._)(["\n  .swiper {\n    overflow: visible;\n\n    .swiper-slide {\n      height: auto !important;\n      max-width: 467px;\n    }\n  }\n"]);return EditorialReviews_styles_templateObject1=function(){return e},e}function EditorialReviews_styles_templateObject2(){let e=(0,h._)(["\n      visibility: hidden;\n      pointer-events: none;\n    "]);return EditorialReviews_styles_templateObject2=function(){return e},e}function EditorialReviews_styles_templateObject3(){let e=(0,h._)(["\n  display: flex;\n  gap: ",";\n  margin-top: ",";\n\n  ","\n"]);return EditorialReviews_styles_templateObject3=function(){return e},e}let oj=g.ZP.div.withConfig({componentId:"sc-8b9cd48a-0"})(EditorialReviews_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-top: ".concat(t.rem(40),";\n    padding-bottom: ").concat(t.rem(40),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        font-size: 32px;\n        line-height: 40px;\n    ")}),ov=g.ZP.div.withConfig({componentId:"sc-8b9cd48a-1"})(EditorialReviews_styles_templateObject1()),oC=g.ZP.div.withConfig({componentId:"sc-8b9cd48a-2"})(EditorialReviews_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{isLocked:t}=e;return t&&(0,g.iv)(EditorialReviews_styles_templateObject2())});var organisms_EditorialReviews=e=>{let{sectionId:t,title:n,reviews:l}=e,[a,o]=(0,i.useState)(!0),[s,c]=(0,K.Z)(),[d,h]=(0,K.Z)();return l&&0!==l.length?(0,r.jsx)(oj,{as:"section",id:t,children:(0,r.jsxs)(p.W2,{children:[n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.nv,{typo:"headingXL",className:"section-title",weight:"semibold",content:n,role:"heading","aria-level":"2"}),(0,r.jsx)(p.Nz,{xs:2.5,md:6})]}):null,(0,r.jsx)(ov,{children:(0,r.jsx)(et.tq,{modules:[ee.W_,ee.s5],spaceBetween:16,slidesPerView:1.5,breakpoints:{768:{slidesPerView:2.26,spaceBetween:16},992:{slidesPerView:3.26,spaceBetween:20}},navigation:{prevEl:d,nextEl:s},a11y:{prevSlideMessage:"Precedente slide",nextSlideMessage:"Prossima slide"},onSwiper:e=>o(e.isLocked),onLock:()=>o(!0),onUnlock:()=>o(!1),grabCursor:!0,children:l.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(molecules_EditorialReviewCard,{...e})},"EditorialReview-".concat(t,"-").concat(null==e?void 0:e.id)))})}),(0,r.jsxs)(oC,{isLocked:a,children:[(0,r.jsx)(m.a,{style:{width:"30px",height:"30px"},ref:h,variant:"secondary",iconEnd:"chevron-left"}),(0,r.jsx)(m.a,{style:{width:"30px",height:"30px"},ref:c,variant:"secondary",iconEnd:"chevron-right"})]})]})}):null},ow=n(28416);function CardCourseDetailList_styles_templateObject(){let e=(0,h._)(["\n  position: relative;\n\n  .swiper-wrapper {\n    padding: ",";\n\n    ","\n\n    .swiper-slide {\n      ","\n      \n      height: auto !important;\n    }\n  }\n"]);return CardCourseDetailList_styles_templateObject=function(){return e},e}function CardCourseDetailList_styles_templateObject1(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return CardCourseDetailList_styles_templateObject1=function(){return e},e}function CardCourseDetailList_styles_templateObject2(){let e=(0,h._)(["\n  position: relative;\n  padding: ",";\n  top: auto;\n  left: auto;\n  transform: translateY(0);\n  z-index: 1;\n\n  ","\n\n  button {\n    &:first-of-type {\n      margin-left: 0; \n    }\n\n    &.swiper-button-lock {\n      display: none;\n    }\n  }\n"]);return CardCourseDetailList_styles_templateObject2=function(){return e},e}function CardCourseDetailList_styles_templateObject3(){let e=(0,h._)(["\n  left: 0;\n\n  ","\n"]);
1return CardCourseDetailList_styles_templateObject3=function(){return e},e}function CardCourseDetailList_styles_templateObject4(){let e=(0,h._)(["\n  right: 0;\n\n  ","\n"]);return CardCourseDetailList_styles_templateObject4=function(){return e},e}function CardCourseDetailList_styles_templateObject5(){let e=(0,h._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  margin-top: ",";\n\n  ","\n"]);return CardCourseDetailList_styles_templateObject5=function(){return e},e}function CardCourseDetailList_styles_templateObject6(){let e=(0,h._)(["\n  width: 100%;\n  height: 1px;\n\n  ","\n"]);return CardCourseDetailList_styles_templateObject6=function(){return e},e}let oO=(0,g.ZP)(p.W2).withConfig({componentId:"sc-361bd469-0"})(CardCourseDetailList_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24,0)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      padding: ".concat(t.rem(40,0),";\n    "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n        max-width: ".concat(t.rem(348),";\n      "))}),oS=g.ZP.div.withConfig({componentId:"sc-361bd469-1"})(CardCourseDetailList_styles_templateObject1()),ok=g.ZP.div.withConfig({componentId:"sc-361bd469-2"})(CardCourseDetailList_styles_templateObject2(),e=>{let{theme:t}=e;return t.rem(0,10)},e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    position: absolute;\n    padding: 0;\n    top: 50%;\n    transform: translateY(-50%);\n  ")}),oP=(0,g.ZP)(ok).withConfig({componentId:"sc-361bd469-3"})(CardCourseDetailList_styles_templateObject3(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    left: -52px;\n  ")}),oI=(0,g.ZP)(ok).withConfig({componentId:"sc-361bd469-4"})(CardCourseDetailList_styles_templateObject4(),e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    right: -52px;\n  ")});g.ZP.div.withConfig({componentId:"sc-361bd469-5"})(CardCourseDetailList_styles_templateObject5(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.sm("\n    margin-top: ".concat(t.rem(40),";\n  "))});let oT=g.ZP.div.withConfig({componentId:"sc-361bd469-6"})(CardCourseDetailList_styles_templateObject6(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-top: ".concat(t.rem(24),";\n  "),!0)});var molecules_CardCourseDetailList=e=>{let{dataFromStrapi:t,variants:n,product:i,postId:l,type:a="CARD"}=e,[o,s]=(0,K.Z)(),[c,d]=(0,K.Z)(),[u,p]=(0,K.Z)();return(0,r.jsx)(oO,{id:"courses-variants-list",children:"CARD"===a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(et.tq,{modules:[ee.W_,ee.LW,ee.s5],spaceBetween:24,slidesPerView:1,breakpoints:{768:{slidesPerView:2},992:{slidesPerView:"auto"}},navigation:{prevEl:c,nextEl:o},a11y:{prevSlideMessage:"Precedente slide",nextSlideMessage:"Prossima slide"},grabCursor:!0,centerInsufficientSlides:!0,children:n.map((e,n)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(molecules_CardCourseDetail,{dataFromStrapi:t,variant:e,gId:i.id,id:l,handle:i.handle,courseTitle:i.title,type:a})},n))}),(0,r.jsxs)(oS,{children:[(0,r.jsx)(oP,{children:(0,r.jsx)(m.a,{ref:d,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big"})}),(0,r.jsx)(oI,{children:(0,r.jsx)(m.a,{ref:s,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big"})})]}),(0,r.jsx)(oT,{ref:p})]}):n.map((e,n)=>(0,r.jsx)(molecules_CardCourseDetail,{dataFromStrapi:t,variant:e,handle:i.handle,courseTitle:i.title,type:a},n))})};function CourseVariants_styles_templateObject(){let e=(0,h._)(["\n  width: 100%;\n  margin: 0 auto;\n"]);return CourseVariants_styles_templateObject=function(){return e},e}function CourseVariants_styles_templateObject1(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  position: relative;\n  z-index: 10;\n"]);return CourseVariants_styles_templateObject1=function(){return e},e}function CourseVariants_styles_templateObject2(){let e=(0,h._)(["\n  margin: 2rem 0 2rem 0;\n"]);return CourseVariants_styles_templateObject2=function(){return e},e}function CourseVariants_styles_templateObject3(){let e=(0,h._)(["\n  display: inline;\n  margin: 1rem;\n"]);return CourseVariants_styles_templateObject3=function(){return e},e}function CourseVariants_styles_templateObject4(){let e=(0,h._)(["\n  display: inline;\n  margin:  0.5rem;\n"]);
1return CourseVariants_styles_templateObject4=function(){return e},e}function CourseVariants_styles_templateObject5(){let e=(0,h._)(["\n  border: 1px solid black;\n  border-radius: 2rem;\n  color: ",";\n  background-color: ",";\n  padding: 1rem;\n  font-weight: bold;\n  cursor: pointer;\n"]);return CourseVariants_styles_templateObject5=function(){return e},e}function CourseVariants_styles_templateObject6(){let e=(0,h._)(["\n  display: flex;\n  flex-grow: 1;\n  flex-wrap: wrap;\n  justify-content: center;\n"]);return CourseVariants_styles_templateObject6=function(){return e},e}function CourseVariants_styles_templateObject7(){let e=(0,h._)(["\n  cursor: pointer;\n  ",";\n  font-weight: 600;\n  margin-top: ",";\n  \n  .custom-select__single-value {\n    color: ",";\n  }\n\n  ","\n"]);return CourseVariants_styles_templateObject7=function(){return e},e}let oZ=g.ZP.div.withConfig({componentId:"sc-e6466054-0"})(CourseVariants_styles_templateObject()),oz=g.ZP.div.withConfig({componentId:"sc-e6466054-1"})(CourseVariants_styles_templateObject1());g.ZP.div.withConfig({componentId:"sc-e6466054-2"})(CourseVariants_styles_templateObject2()),g.ZP.ul.withConfig({componentId:"sc-e6466054-3"})(CourseVariants_styles_templateObject3()),g.ZP.li.withConfig({componentId:"sc-e6466054-4"})(CourseVariants_styles_templateObject4()),g.ZP.span.withConfig({componentId:"sc-e6466054-5"})(CourseVariants_styles_templateObject5(),e=>e.isActive?"white":"black",e=>e.isActive?"black":"white"),g.ZP.div.withConfig({componentId:"sc-e6466054-6"})(CourseVariants_styles_templateObject6());let oF=g.ZP.div.withConfig({componentId:"sc-e6466054-7"})(CourseVariants_styles_templateObject7(),e=>{let{theme:t}=e;return t.typo("headingLG")},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.textSecondary},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-top: 0;\n    margin-left: ".concat(t.rem(16),";\n  "))});var oE={control:e=>({...e,minWidth:"175px",border:"none",borderRadius:0,cursor:"pointer"}),singleValue:e=>({...e,borderBottom:"2px solid #1B1818"}),dropdownIndicator:e=>({...e,color:"black"}),menu:e=>({...e,cursor:"pointer"}),indicatorSeparator:e=>({...e,display:"none"}),menu:e=>({...e,cursor:"pointer"})};let oM=[{label:"Online",value:"online"},{label:"In Aula",value:"offline"}],oA="CourseLocation";var organisms_CourseVariants=e=>{let{dataFromStrapi:t,product:n,postId:l}=e,[a,o]=(0,i.useState)("online"),[s,c]=(0,i.useState)(""),[d,m]=(0,i.useState)([]),[h,g]=(0,i.useState)({}),[f,b]=(0,i.useState)([]),handleLocationCookieUpdate=e=>{set_cookie(oA,e,365)};return(0,i.useEffect)(()=>{if(!(null==n?void 0:n.variants))return;let e=n.variants.nodes.filter(e=>e.availableForSale);e=e.map(e=>({...e,...(0,n3.iy)(e.selectedOptions)}));let t=e.filter(e=>e.isOffline),r=t.filter(e=>e.isOffline).reduce((e,t)=>(e[t.cityName]||(e[t.cityName]=[]),e[t.cityName].push(t),e),{}),i=e.filter(e=>!e.isOffline);m(i),g(r);let l=null;(0,th.Z)(oA)?l=(0,th.Z)(oA):Object.keys(r).forEach(e=>{"milano"===e.toLowerCase()&&(l=e)}),l?c(l):c(Object.keys(r)[0]),"online"===a&&b(i),i.length||o("offline")},[]),(0,i.useEffect)(()=>{"online"===a&&d.length?b(d):b(h[s])},[a,s]),(0,r.jsxs)(oZ,{children:[Object.keys(h).length&&d.length?(0,r.jsx)(molecules_Switch,{options:oM,activeValueToCheck:a,handleClick:o,centered:!0}):null,(0,r.jsx)(p.Nz,{xs:2}),Object.keys(h).length&&"offline"===a?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(oz,{children:(0,r.jsxs)(p.kC,{$direction:{xs:"column",lg:"row"},alignItems:"center",children:[(0,r.jsx)(u.X6,{weight:"semibold",textPrimary:!0,typo:"headingLG",children:"Scegli la tua citt\xe0:"}),(0,r.jsx)(oF,{children:(0,r.jsx)(ow.ZP,{styles:oE,onChange:e=>{c(e.value),handleLocationCookieUpdate(e.value)},defaultValue:{value:s.toLowerCase(),label:s},options:Object.keys(h).map(e=>({value:e,label:e})),value:s.value,classNamePrefix:"custom-select"})})]})})}):null,(null==f?void 0:f.length)?(0,r.jsx)(molecules_CardCourseDetailList,{variants:f,dataFromStrapi:t,product:n,postId:l}):null]})};function MiscProductCover_styles_templateObject(){let e=(0,h._)(["\n  padding: ",";\n  background-color: ",";\n\n  /* "," */\n\n  .swiper-thumb {\n    width: 70%;\n    position: relative;\n\n    .swiper-slide {\n      width: ","!important;\n    }\n  }\n"]);
1return MiscProductCover_styles_templateObject=function(){return e},e}function MiscProductCover_styles_templateObject1(){let e=(0,h._)(["\n  min-height: 100%;\n  display: flex;\n  flex-direction: column;\n  padding-left: 0;\n  padding-right: 0;\n\n  ","\n"]);return MiscProductCover_styles_templateObject1=function(){return e},e}function MiscProductCover_styles_templateObject2(){let e=(0,h._)(["\n  ","\n"]);return MiscProductCover_styles_templateObject2=function(){return e},e}function MiscProductCover_styles_templateObject3(){let e=(0,h._)(["\n  margin-bottom: ",";\n  position: relative;\n\n  ","\n"]);return MiscProductCover_styles_templateObject3=function(){return e},e}function MiscProductCover_styles_templateObject4(){let e=(0,h._)(["\n  position: relative;\n\n  ","\n\n  ","\n"]);return MiscProductCover_styles_templateObject4=function(){return e},e}function MiscProductCover_styles_templateObject5(){let e=(0,h._)(["\n  color: ",";\n  text-decoration: line-through;\n  margin-right: ",";\n  position: relative;\n\n  &:before {\n    content: '';\n    width: 1px;\n    height: ",";\n    position: absolute;\n    background-color: ",";\n    right: ",";\n  }\n"]);return MiscProductCover_styles_templateObject5=function(){return e},e}function MiscProductCover_styles_templateObject6(){let e=(0,h._)(["\n      color: ",";\n    "]);return MiscProductCover_styles_templateObject6=function(){return e},e}function MiscProductCover_styles_templateObject7(){let e=(0,h._)(["\n      color: ",";\n    "]);return MiscProductCover_styles_templateObject7=function(){return e},e}function MiscProductCover_styles_templateObject8(){let e=(0,h._)(["\n  ","\n\n  ","\n"]);return MiscProductCover_styles_templateObject8=function(){return e},e}function MiscProductCover_styles_templateObject9(){let e=(0,h._)(["\n  width: 100%;\n  aspect-ratio: 1 / 1;\n  position: relative;\n\n  img {\n    width: 100%;\n    height: 100%;\n    object-fit: contain;\n  }\n"]);return MiscProductCover_styles_templateObject9=function(){return e},e}function MiscProductCover_styles_templateObject10(){let e=(0,h._)(["\n      border-color: ",";\n    "]);return MiscProductCover_styles_templateObject10=function(){return e},e}function MiscProductCover_styles_templateObject11(){let e=(0,h._)(["\n  width: ",";\n  position: relative;\n  cursor: pointer;\n  aspect-ratio: 1 / 1;\n  border: 1px solid\n    ",";\n  overflow: hidden;\n  border-radius: ",";\n\n  ","\n\n  img {\n    object-fit: contain;\n  }\n"]);return MiscProductCover_styles_templateObject11=function(){return e},e}function MiscProductCover_styles_templateObject12(){let e=(0,h._)(["\n  border-radius: ",";\n  position: relative;\n  overflow: hidden;\n  aspect-ratio: 1 / 1;\n  width: 30%;\n  margin-right: ",";\n  \n  img {\n    object-fit: contain;\n  }\n  \n  ","\n"]);return MiscProductCover_styles_templateObject12=function(){return e},e}function MiscProductCover_styles_templateObject13(){let e=(0,h._)(["\n  width: 100%;\n\n  ","\n\n  ","\n"]);return MiscProductCover_styles_templateObject13=function(){return e},e}function MiscProductCover_styles_templateObject14(){let e=(0,h._)(["\n  a {\n    padding-left: 0;\n\n    span {\n      left: 0;\n    }\n  }\n"]);return MiscProductCover_styles_templateObject14=function(){return e},e}function MiscProductCover_styles_templateObject15(){let e=(0,h._)(["\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  color: ",";\n\n  i {\n    margin-right: ",";\n    font-size: ",";\n\n    ","\n  }\n\n  p + p {\n    position: relative;\n\n    margin-left: ",";\n\n    &:before {\n      content: '';\n      background-color: ",";\n      width: 1px;\n      height: 100%;\n      position: absolute;\n      left: ",";\n    }\n  }\n"]);return MiscProductCover_styles_templateObject15=function(){return e},e}function MiscProductCover_styles_templateObject16(){let e=(0,h._)(["\n  color: ",";\n  margin-left: ",";\n"]);return MiscProductCover_styles_templateObject16=function(){return e},e}function MiscProductCover_styles_templateObject17(){let e=(0,h._)(["\n  .accordion__content p {\n    ",";\n  }\n\n  button {\n    background-color: transparent !important;\n  }\n"]);
1return MiscProductCover_styles_templateObject17=function(){return e},e}function MiscProductCover_styles_templateObject18(){let e=(0,h._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  /* i {\n    font-size: ",";\n  } */\n"]);return MiscProductCover_styles_templateObject18=function(){return e},e}function MiscProductCover_styles_templateObject19(){let e=(0,h._)(["\n  padding-left: ",";\n  position: relative;\n\n  &:before {\n    content: '';\n    background-color: ",";\n    width: ",";\n    height: ",";\n    border-radius: 50%;\n    position: absolute;\n    left: ",";\n    top: 50%;\n    transform: translateY(-50%);\n  }\n"]);return MiscProductCover_styles_templateObject19=function(){return e},e}function MiscProductCover_styles_templateObject20(){let e=(0,h._)(["\n  /* width: ","; */\n  /* height: 100%; */\n  position: relative;\n\n  &:not(:last-child) {\n    margin-right: ",";\n\n    ","\n  }\n"]);return MiscProductCover_styles_templateObject20=function(){return e},e}function MiscProductCover_styles_templateObject21(){let e=(0,h._)(["\n  width: 100%;\n  position: absolute;\n  bottom: 0;\n  display: flex;\n  justify-content: space-between;\n\n  ","\n"]);return MiscProductCover_styles_templateObject21=function(){return e},e}function MiscProductCover_styles_templateObject22(){let e=(0,h._)(["\n  color: ",";\n"]);return MiscProductCover_styles_templateObject22=function(){return e},e}function MiscProductCover_styles_templateObject23(){let e=(0,h._)(["\n      width: 100%;\n      transform: translateX(-50%) translateY(0);\n    "]);return MiscProductCover_styles_templateObject23=function(){return e},e}function MiscProductCover_styles_templateObject24(){let e=(0,h._)(["\n  width: 0;\n  /* height: ","; */\n  position: fixed;\n  bottom: 0;\n  left: 50%;\n  right: 0;\n  z-index: 10;\n  padding: ",";\n  /* background-color: ","; */\n  background-color: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  transition: all 0.2s ease-in 0s;\n  transform: translateX(-50%) translateY(110%);\n  border-top: 1px solid black;\n\n  ","\n\n  ","\n"]);return MiscProductCover_styles_templateObject24=function(){return e},e}function MiscProductCover_styles_templateObject25(){let e=(0,h._)(["\n  margin-right: 0;\n  background-color: ",";\n  color: ",";\n  border: 1px solid ",";\n  transition: all 0.2s ease-in;\n\n  &:hover {\n    background-color: ",";\n    color: ",";\n  }\n"]);return MiscProductCover_styles_templateObject25=function(){return e},e}function MiscProductCover_styles_templateObject26(){let e=(0,h._)(["\n  color: #da220a;\n"]);return MiscProductCover_styles_templateObject26=function(){return e},e}function MiscProductCover_styles_templateObject27(){let e=(0,h._)(["\n  color: #63A67B;\n"]);return MiscProductCover_styles_templateObject27=function(){return e},e}let oB=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-0"})(MiscProductCover_styles_templateObject(),e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.colorScheme.lightOrange.surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding: ".concat(t.rem(90,0,56),";\n  "))},e=>{let{theme:t}=e;return t.rem(50)}),oN=(0,g.ZP)(p.W2).withConfig({componentId:"sc-ab3e6edf-1"})(MiscProductCover_styles_templateObject1(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    flex-direction: row;\n  ")}),oD=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-2"})(MiscProductCover_styles_templateObject2(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 50%;\n    height: 100%;\n  ")}),oR=(0,g.ZP)(oD).withConfig({componentId:"sc-ab3e6edf-3"})(MiscProductCover_styles_templateObject3(),e=>{let{theme:t}=e;return t.rem(32)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    margin-bottom: 0;\n    padding: ".concat(t.rem(60,100,0,100),";\n    position: sticky;\n    height: fit-content;\n    top: ").concat(t.rem(140),";\n  "))}),oL=(0,g.ZP)(oD).withConfig({componentId:"sc-ab3e6edf-4"})(MiscProductCover_styles_templateObject4(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    display: flex;\n    padding-top: ".concat(t.rem(60),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: ".concat(t.rem(470),";\n    margin: 0 auto;\n    display: block;\n  "))}),oQ=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-5"}
1)(MiscProductCover_styles_templateObject5(),e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.rem(22)},e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(-10)});g.ZP.div.withConfig({componentId:"sc-ab3e6edf-6"})(MiscProductCover_styles_templateObject8(),e=>{let{status:t,theme:n}=e;return"available"===t&&(0,g.iv)(MiscProductCover_styles_templateObject6(),n.colors.status.success.default)},e=>{let{status:t,theme:n}=e;return"available"!==t&&(0,g.iv)(MiscProductCover_styles_templateObject7(),n.colors.status.error.default)});let oq=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-7"})(MiscProductCover_styles_templateObject9()),oH=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-8"})(MiscProductCover_styles_templateObject11(),e=>{let{theme:t}=e;return t.rem(50)},e=>{let{theme:t}=e;return t.colorScheme.white.surface.borderSecondary},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{active:t,theme:n}=e;return t&&(0,g.iv)(MiscProductCover_styles_templateObject10(),n.colorScheme.white.surface.borderPrimary)});g.ZP.div.withConfig({componentId:"sc-ab3e6edf-9"})(MiscProductCover_styles_templateObject12(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(24)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: auto;\n    min-width: ".concat(t.rem(194),";\n    height: ").concat(t.rem(170),";\n    margin-right: ").concat(t.rem(16),";\n  "))});let oV=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-10"})(MiscProductCover_styles_templateObject13(),e=>{let{theme:t}=e;return t.mediaQuery.md("\n    width: 50%;\n    padding: ".concat(t.rem(24),";\n  "))},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 100%;\n    padding: 0;\n  ")});g.ZP.div.withConfig({componentId:"sc-ab3e6edf-11"})(MiscProductCover_styles_templateObject14()),g.ZP.div.withConfig({componentId:"sc-ab3e6edf-12"})(MiscProductCover_styles_templateObject15(),e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.rem(18)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      font-size: ".concat(t.rem(24),";\n    "))},e=>{let{theme:t}=e;return t.rem(16)},e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText},e=>{let{theme:t}=e;return t.rem(-8)});let oX=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-13"})(MiscProductCover_styles_templateObject16(),e=>{let{theme:t}=e;return t.colors.status.success.default},e=>{let{theme:t}=e;return t.rem(8)});g.ZP.div.withConfig({componentId:"sc-ab3e6edf-14"})(MiscProductCover_styles_templateObject17(),e=>{let{theme:t}=e;return t.typo("paragraphMD")}),g.ZP.div.withConfig({componentId:"sc-ab3e6edf-15"})(MiscProductCover_styles_templateObject18(),e=>{let{theme:t}=e;return t.rem(40)}),g.ZP.div.withConfig({componentId:"sc-ab3e6edf-16"})(MiscProductCover_styles_templateObject19(),e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t,status:n}=e;return"available"!==n?t.colors.status.error.default:t.colors.status.success.default},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(4)},e=>{let{theme:t}=e;return t.rem(0)}),g.ZP.div.withConfig({componentId:"sc-ab3e6edf-17"})(MiscProductCover_styles_templateObject20(),e=>{let{theme:t}=e;return t.rem(28)},e=>{let{theme:t}=e;return t.rem(8)},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n      margin-right: ".concat(t.rem(16),";\n    "))});let oU=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-18"})(MiscProductCover_styles_templateObject21(),e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    width: 70%;\n  ")}),oG=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-19"})(MiscProductCover_styles_templateObject22(),e=>{let{theme:t}=e;return t.colorScheme.white.button.disabledText}),oW=g.ZP.div.withConfig({componentId:"sc-ab3e6edf-20"})(MiscProductCover_styles_templateObject24(),e=>{let{theme:t}=e;return t.rem(74)},e=>{let{theme:t}=e;return t.rem(16,0)},e=>{let{theme:t}=e;return t.colorScheme.dark.surface.backgroundColor},e=>{let{theme:t}=e;return t.colorScheme.white.surface.backgroundColor},e=>{let{theme:t}=e;return t.mediaQuery.lg("\n    padding-bottom: env(safe-area-inset-bottom, 16px);\n  ",!0)},e=>{let{isVisible:t}=e;
1return t&&(0,g.iv)(MiscProductCover_styles_templateObject23())}),oJ=(0,g.ZP)(ed.Z).withConfig({componentId:"sc-ab3e6edf-21"})(MiscProductCover_styles_templateObject25(),e=>{let{href:t}=e;return!t&&"transparent"},e=>{let{href:t}=e;return!t&&"#464544"},e=>{let{href:t}=e;return t?"transparent":"#464544"},e=>{let{href:t}=e;return t&&"#1B1818"},e=>{let{href:t}=e;return t&&"#fff"});(0,g.ZP)(u.nv).withConfig({componentId:"sc-ab3e6edf-22"})(MiscProductCover_styles_templateObject26()),g.ZP.div.withConfig({componentId:"sc-ab3e6edf-23"})(MiscProductCover_styles_templateObject27());var organisms_MiscProductCover=e=>{let{tags:t=[],title:n,description:l,price:a=!1,abstract:o,relatedKit:s,imageGallery:c,subtitle:h,availability:g,variantId:f,additionalInfoData:y=!1,gift:_=!1,containedBooksValue:x=0,productData:j,strapiData:v}=e,[C,w]=(0,i.useState)(null),[O,S]=(0,i.useState)(null),[k,I]=(0,i.useState)(!1),[T,Z]=(0,i.useState)(0),[z,F]=(0,i.useState)(!1),[E,M]=(0,i.useState)(!0),[A,B]=(0,K.Z)(),[N,D]=(0,K.Z)(),[R,L]=(0,i.useState)((0,Y.Z)("(max-width: 1023px)")),Q=(0,ec.useRouter)(),{linesAdd:q,status:H,lines:V,id:X,cartAttributesUpdate:U}=(0,tu.jD)(),[G,W]=(0,i.useState)(!1),J=!0,$=!!a&&!!a.compareAt&&!!a.amount&&(0,tm.v)(a.compareAt,a.amount),{showModal:en}=(0,b.dd)(),er=(0,i.useRef)(null),{sendGTM:ei}=(0,P.rS)(),{handleGetUserMeta:el}=(0,r$.ow)(),ea=utils_getRTokens(Q.query),handleCheckIsMobile=()=>{if(!window)return!1;let e=window.innerWidth;e<=1023?L(!0):L(!1)},shouldRenderBuyNow=()=>{let e=!!a&&is_price_more_than_ten(a),t=(0,th.Z)("_rTokens");return e&&""===t};(0,i.useEffect)(()=>{window&&(Object.keys(ea).length>0&&set_cookie("_rTokens",JSON.stringify(ea)),M(shouldRenderBuyNow()),window.addEventListener("resize",handleCheckIsMobile))},[]),(0,i.useEffect)(()=>{if(R){let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?F(!1):F(!0)})});e.observe(er.current)}},[]),("out-of-stock"===g.status||"temporarily-out-of-stock"===g.status)&&(J=!1),(0,i.useEffect)(()=>{if(G&&"idle"===H&&X){let e=(0,tg.P)();e&&U([{key:"hsdcid",value:e}]),W(!1)}},[H,X,G]);let handleAddToCart=(e,t)=>{("idle"===e||"uninitialized"===e)&&(q([{merchandiseId:t}]),I(!0),ei({...(0,tf.UB)({data:v},"book")}),W(!0))};return(0,r.jsxs)(oB,{children:[(0,r.jsxs)(oN,{children:[(0,r.jsx)(oR,{children:c.length&&c.length>1?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(et.tq,{thumbs:{swiper:C&&!C.destroyed?C:null},onSwiper:S,modules:[ee.o3,ee.s5,ee.xW,ee.W_],effect:"fade",fadeEffect:{crossFade:!0},className:"swiper-main",grabCursor:!0,onSlideChange:e=>Z(e.activeIndex),ref:O,navigation:{prevEl:N,nextEl:A},children:c.map((e,t)=>(0,r.jsx)(et.o5,{children:(0,r.jsx)(oq,{onClick:()=>en(Modal_ModalImageViewer,{imageGallery:c,index:T,foreground:!0}),children:(0,r.jsx)(d(),{src:e.url,alt:e.alternativeText,priority:0===t,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 75vw"})})},"swiper-main-".concat(t)))}),(0,r.jsx)(p.Nz,{xs:4}),(0,r.jsx)(et.tq,{modules:[ee.o3,ee.W_],onSwiper:w,watchSlidesProgress:!0,className:"swiper-thumb",spaceBetween:16,slidesPerView:"auto",breakpoints:{1024:{allowTouchMove:!1}},children:c.map((e,t)=>(0,r.jsx)(et.o5,{onClick:()=>{C.slideTo(t),O.slideTo(t)},children:(0,r.jsx)(oH,{active:T===t,children:(0,r.jsx)(d(),{src:e.url,alt:e.alternativeText,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 75vw"})})},"swiper-thumb-".concat(t)))}),(0,r.jsxs)(oU,{children:[(0,r.jsx)(m.a,{ref:D,variant:"secondary",iconEnd:"chevron-left",iconEndSize:"big",inheritedColorScheme:"lightOrange"}),(0,r.jsx)(m.a,{ref:B,variant:"secondary",iconEnd:"chevron-right",iconEndSize:"big",inheritedColorScheme:"lightOrange"})]})]}):c.length?(0,r.jsx)(oq,{onClick:()=>en(Modal_ModalImageViewer,{imageGallery:c,foreground:!0}),children:(0,r.jsx)(d(),{src:c[0].url,alt:c[0].alternativeText,priority:!0,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 75vw"})}):null}),(0,r.jsxs)(oL,{children:[(0,r.jsxs)(oV,{children:[t.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.kC,{wrap:"wrap",gap:1,children:t.map((e,t)=>(0,i.createElement)(oJ,{...e,key:t}))}),(0,r.jsx)(p.Nz,{xs:2})]}):null,(0,r.jsx)(u.X6,{content:n,typo:"headingMD",weight:"semibold",fontSecondary:!0}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.X6,{typo:"headingXS",weight:"semibold",textSecondary:!0,fontSecondary:!0,children:h}),(0,r.jsxs)(p.kC,{alignItems:"center",children:[(0,r.jsx)(oQ,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",fontSecondary:!0,content:(0,tp.T4)({amount:a.compareAt,currencyCode:a.currencyCode})})}),(0,r.jsx)(u.X6,{typo:"headingSM",weight:"semibold",textPrimary:!0,content:(0,tp.T4)({amount:a.amount,currencyCode:a.currencyCode}),fontSecondary:!0}),$?(0,r.jsx)(oX,{children:(0,r.jsx)(u.X6,{typo:"paragraphMD",content:"- ".concat($,"% di sconto"),fontSecondary:!0})}):null]}),x>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(oG,{children:(0,r.jsx)(u.nv,{typo:"paragraphMD",content:"".concat((0,tp.T4)({amount:x,currencyCode:"EUR"})," (somma prezzi singoli libri)"),weight:"semibold",fontSecondary:!0})})]}):null,(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(p.fu,{}),(0,r.jsx)(p.Nz,{xs:1}),(0,r.jsx)(u.nv,{as:"div",typo:"paragraphMD",textSecondary:!0,content:l}),(0,r.jsx)(p.Nz,{xs:2})]}),(0,r.jsx)(oV,{children:(0,r.jsx)(m.Z,{label:"Aggiungi al carrello",iconEnd:"arrow-right",fullWidth:!0,disabled:!J||"updating"===
1H,handleClick:()=>handleAddToCart(H,f),innerRef:er})}),(0,r.jsx)(e9.Z,{isVisible:k,setShowTooltip:I,title:n,image:!!c.length&&c[0],price:(0,tp.T4)({amount:a.amount,currencyCode:a.currencyCode})})]})]}),J?(0,r.jsx)(p.zv,{breakpoints:["xs","sm","md","lg"],children:(0,r.jsx)(oW,{isVisible:z,children:(0,r.jsx)(m.Z,{variant:"secondary",iconEnd:"arrow-right",label:"Aggiungi al carrello",inheritedColorScheme:"white",disabled:"updating"===H,handleClick:()=>handleAddToCart(H,f)})})}):null]})}},60068:function(e,t){t.Z={miscProduct:e=>"/prodotto/".concat(e.slug),book:e=>{let t=(null==e?void 0:e.bookSerie)?e.bookSerie.slug:"undefined";return"/libri/".concat(t,"/").concat(e.slug)},course:e=>{let t=(null==e?void 0:e.thematicArea)?e.thematicArea.slug:"undefined";return"/corsi/".concat(t,"/").concat(e.slug)},blogPost:e=>"/magazine/".concat(e.slug)}},45358:function(e,t,n){var r=n(45881);t.Z=e=>{let{formType:t,content_ids:n,content_name:i,content_category:l,content_details:a,lead_type:o,has_current_year:s,has_marketing:c,drip:d,mail:u,file_name:p}=e,m=(0,r.Z)({content_ids:n,content_name:i,content_category:l,content_details:a,lead_type:o,drip:d,mail:u,file_name:null==p?void 0:p.url});return{formType:t,additionalHiddenFields:m,additionalFields:s?[{type:"select",id:"".concat(t,"-current_year"),name:"current_year",label:null,placeholder:"Anno corrente",value:"",options:[{label:"Terzo anno",value:"third_year"},{label:"Quarto anno",value:"fourth_year"},{label:"Quinto anno",value:"fifth_year"},{label:"Gi\xe0 laureato",value:"already_graduated"},{label:"Degree",value:"degree"}],col:{xs:12}}]:[],has_marketing:c}}},53470:function(e,t,n){var r=n(45358),i=n(22817);t.Z=e=>{let t=e&&(null==e?void 0:e.form)&&e.form.formMeta?{...e,form:{...e.form,image:(0,i.Z)(e.form.image),form:(0,r.Z)({...e.form.formMeta}),imageShape:"circle"}}:e;return t}},16132:function(e,t,n){var r=n(60068),i=n(65943),l=n(22817);t.Z=e=>{let t=r.Z.book(e),{id:n,title:a,subtitle:o,bookSerie:s,featuredImage:c,image:d,price:u,compare_at_price:p=null,coursesIncluded:m,thematicArea:h=!1}=e,g=d||(0,l.Z)(c),f=[{label:(null==h?void 0:h.title)||(null==s?void 0:s.title)||!1}],b={id:n,title:a,subtitle:o,slug:t,image:g,tags:f,compare_at_price:p,price:u,discount:!!u&&!!p&&(0,i.v)(p,u),coursesIncluded:m||!1};return b}},934:function(e,t,n){var r=n(22817);t.Z=e=>{let{id:t,colorScheme:n,type:i,typeLabel:l,title:a,subtitle:o,duration:s,slug:c,thematicArea:d,featuredImage:u,image:p}=e,m=p||(0,r.Z)(u),h={id:t,colorScheme:n,type:i,typeLabel:l,title:a,subtitle:o,duration:s,slug:"/corsi/".concat(null==d?void 0:d.slug,"/").concat(c),image:m};return h}},6990:function(e,t,n){var r=n(22817),i=n(45358),l=n(53470);t.Z=e=>{let{type:t,sectionId:n,colorScheme:a,title:o,subtitle:s,ctaPrimary:c,ctaSecondary:d,image:u,imageShape:p,submitButtonLabel:m,formMeta:h,modalPrimary:g,modalSecondary:f,hexBgColor:b}=e,y=(0,i.Z)({...h}),_={type:t,sectionId:n,colorScheme:a,title:o,subtitle:s,ctaPrimary:c,ctaSecondary:d,image:(0,r.Z)(u),imageShape:p,submitButtonLabel:m,form:y,modalPrimary:(0,l.Z)(g),modalSecondary:(0,l.Z)(f),hexBgColor:b};return _}},17211:function(e,t,n){var r=n(22817);t.Z=e=>{let{type:t,sectionId:n,colorScheme:i,title:l,subtitle:a,body:o,ctaPrimary:s,ctaSecondary:c,image:d}=e,u={type:t,sectionId:n,colorScheme:i,title:l,subtitle:a,body:o,ctaPrimary:s,ctaSecondary:c,image:(0,r.Z)(d)};return u}},45881:function(e,t){t.Z=e=>{let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return null!=r&&e.push({type:"hidden",id:n,name:n,value:r}),e},[]);return t}},62907:function(e,t){async function digestMessage(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t),r=Array.from(new Uint8Array(n)),i=r.map(e=>e.toString(16).padStart(2,"0")).join("");return i}t.Z=digestMessage},82968:function(e,t,n){n.d(t,{y:function(){return getDiffDays}});let getDiffDays=e=>{let{start:t=new Date,end:n}=e;return Math.round((n.getTime()-t.getTime())/864e5)}},79179:function(e,t){t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.replace("#","");3===n.length&&(n="".concat(n[0]).concat(n[0]).concat(n[1]).concat(n[1]).concat(n[2]).concat(n[2]));let r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t/=100),"rgba(".concat(r,",").concat(i,",").concat(l,",").concat(t,")")}},75265:function(e,t,n){n.d(t,{P:function(){return getHsdcid}});var r=n(14335);let getHsdcid=()=>(0,r.Z)("hsdcid")||null},86603:function(e,t,n){n.d(t,{$Z:function(){return o},DN:function(){return a},XR:function(){return s},hl:function(){return l}});var r=n(45697),i=n.n(r);let l=i().oneOf(["white","dark","lightOrange","whiteyMint","sprint","essential","premium","masterclass","biennale"]).isRequired,a=i().shape({content:i().string,typo:i().oneOf(["displayXL","displayLG","displayMD","displaySM","headingXXL","headingXL","headingLG","headingMD","headingSM","headingXS","paragraphLG","paragraphMD","paragraphSM","paragraphXS","label"]),as:i().oneOf(["h1","h2","h3","h4","h5","h6","div","p","span"])}
1),o=i().shape({label:i().string,href:i().string,scrollTo:i().string,target:i().oneOf(["_self","_blank"])}),s=i().shape({alt:i().string,src:i().string,width:i().number,height:i().number})},84512:function(e,t,n){n.d(t,{hX:function(){return mapMetaFieldsArrayToObject},iy:function(){return mapSelectedOptionsArrayToObject}});let mapMetaFieldsArrayToObject=e=>e?e.reduce((e,t)=>(t&&(e[t.key]=getMetaFieldValue(t)),e),{}):{},mapSelectedOptionsArrayToObject=e=>e?e.reduce((e,t)=>{if(t){let n=t.name.trim().replace(" ","_").toLowerCase();"sede"===n?e.cityName=t.value:"data_inizio"===n?e.startDate=t.value:e[n]=t.value}return e},{}):{},getMetaFieldValue=e=>{switch(e.type){case"boolean":return"true"===e.value;case"number":return 0;case"list.product_reference":try{return JSON.parse(e.value)||[]}catch(e){return[]}default:return e.value}}},34472:function(e,t,n){n.d(t,{Y:function(){return calculateEffectivePrice}});var r=n(82968),i=n(41596);let calculateEffectivePrice=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{currencyCode:n="EUR",showFromPrefix:l=!0,fromPrefixText:a="a partire da",showCurrency:o=!0,showDecimals:s=!0}=t;if(!e||0===e.length)return"";let c=e.map(e=>{var t;let n=(null==e?void 0:e.isEarlyBird)&&(null==e?void 0:e.earlyBirdPrice)&&parseFloat(e.earlyBirdPrice)>0&&(null==e?void 0:e.endPromoDate)&&(0,r.y)({start:new Date,end:new Date(e.endPromoDate)})>=0,i=n?parseFloat(null==e?void 0:e.earlyBirdPrice):parseFloat((null==e?void 0:null===(t=e.price)||void 0===t?void 0:t.amount)||0);return{isDiscounted:n,effectivePriceValue:i}}),d=Math.min(...c.map(e=>e.effectivePriceValue)),u=c.length>1,p=c.some(e=>e.effectivePriceValue!==d),m=c.every(e=>e.isDiscounted),h=(0,i.T4)({amount:d,currencyCode:n},"it-IT",{showCurrency:o,showDecimals:s});return l&&u&&(p||m)&&(h="".concat(a," ").concat(h)),h}},44632:function(e,t,n){n.d(t,{$7:function(){return filterVariant},HU:function(){return mapCourseMetaFields},_x:function(){return nearestStartDate},c:function(){return getSelectedVariant},hI:function(){return getAllLocations}});var r=n(84512);let mapCourseMetaFields=e=>{var t;if((null===(t=e.variants)||void 0===t?void 0:t.nodes)&&(e.variants.nodes=e.variants.nodes.map(e=>{let{metafields:t,...n}=e;return{...n,...(0,r.hX)(t)}})),e.metafields){let{metafields:t,...n}=e;e={...n,...(0,r.hX)(t)}}return e},getAllLocations=e=>e.reduce((e,t)=>{let n=!!t.isOffline&&t.cityName;if(!n)return[...e];let r=n.split(" ").join(""),i=e.find(e=>e.value===r);return i?[...e]:[...e,{value:r,label:n}]},[]),getSelectedVariant=(e,t)=>e.filter(e=>e.id===t),filterVariant=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;arguments.length>2&&void 0!==arguments[2]&&arguments[2];let n=e;return t&&(n=n.filter(e=>"Online"===t?!e.isOffline:t===e.cityName)),n},nearestStartDate=e=>{if(!e&&!e.length)return!1;let t=new Date;t.setHours(0,0,0,0);let n=e.filter(e=>{let n=new Date(e.startDate);return n.setHours(0,0,0,0),n>=t});return n.length>0?(n.sort((e,t)=>new Date(e.startDate)-new Date(t.startDate)),n[0]):(e.sort((e,t)=>new Date(t.startDate)-new Date(e.startDate)),e[0])}}}]);

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.