var IP,clickOnBook=!1,modals=[];const getTargets=()=>Array.from(document.getElementsByClassName("takyon-scripts-target-info"));function sleep(A){return new Promise((n=>setTimeout(n,A)))}const htmlTag=A=>`\n
\n
\n
\n

\n__RATENAME__\n

\n \n
\n\n
\n
\n`,htmlModal=A=>`\n \n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n \n __TITLE1__\n
\n
\n \n __TITLE2__\n
\n
\n \n __TITLE3__\n
\n
\n\n
__SUBTITLE__
\n
\n\n
    \n
  1. \n
    \n
    \n \n \n \n __MESSAGE01__\n \n __MESSAGE02__\n \n
    \n
    \n
  2. \n \n
  3. \n
    \n
    \n \n \n \n __MESSAGE11__\n \n __MESSAGE12__\n \n
    \n
    \n
  4. \n \n
  5. \n
    \n
    \n \n __MESSAGE21__\n \n \n __MESSAGE22__\n \n __MESSAGE23__\n \n
    \n
    \n
  6. \n
\n \n
\n\n \n \n \n`;let css=' @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");\n\n .takyon-modal-container {\n z-index: 999999999;\n position: fixed;\n height: 100vh;\n width: 100vw;\n\n background-color: rgba(0, 0, 0, 0.5);\n top: 0;\n left: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n font-family: "Poppins", sans-serif !important;\n line-height: 20px !important;\n font-size: 20px;\n font-weight: 400;\n\n transition-duration: 0.3s;\n }\n\n .takyon-scripts-target-info {\n font-family: "Poppins", sans-serif !important;\n position: relative;\n width: 100%;\n }\n\n .takyon-modal-container.takyon-closed {\n opacity: 0;\n transform: translateY(100vh);\n }\n\n .takyon-modal-container.takyon-open {\n opacity: 1;\n transform: translateY(0);\n }\n\n .takyon-scripts-target-info .takyon-ratename {\n white-space: nowrap;\n font-weight: 600 !important;\n color: black !important;\n }\n\n .takyon-modal-container .takyon-modal-content {\n position: relative;\n width: 100%;\n margin: 10px;\n\n max-width: 650px;\n\n background-color: #171717;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n\n overflow-x: hidden;\n\n max-height: 97svh;\n overflow-y: scroll;\n }\n\n .takyon-modal-container .takyon-close-modal {\n cursor: pointer;\n\n color: white;\n font-weight: 400;\n font-size: 15px;\n }\n\n .takyon-modal-container .takyon-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 15px;\n }\n\n .takyon-modal-container .takyon-header {\n width: 100%;\n background-color: #171717;\n padding: 10px 25px;\n }\n\n .takyon-modal-container .takyon-logo {\n height: 25px;\n }\n\n .takyon-modal-container .takyon-body-title-text {\n font-weight: 600 !important;\n font-size: 45px !important;\n max-width: 80%;\n line-height: 45px;\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n color: black !important;\n margin-bottom: 10px;\n }\n\n .takyon-modal-container .takyon-text-subtitle {\n margin: 0;\n /* margin-top: 10px; */\n font-size: 22px !important;\n }\n\n .takyon-modal-container .takyon-body-slot {\n display: flex;\n flex-direction: row;\n justify-content: center;\n margin: 0 30px;\n margin-left: 0;\n }\n\n .takyon-modal-container .takyon-body-title {\n display: flex;\n flex-direction: column;\n margin: 40px 30px 50px;\n }\n\n .takyon-modal-container .takyon-body {\n display: flex;\n flex-direction: column;\n align-items: left;\n padding: 30px 30px 50px;\n width: 100%;\n\n border-top-right-radius: 60%;\n background-color: white;\n }\n\n .takyon-modal-container .takyon-body-slot-svg {\n min-width: 50px;\n max-width: 50px;\n }\n\n .takyon-modal-container .takyon-flag {\n text-align: center;\n font-weight: bold;\n width: 100%;\n background-color: #171717;\n padding: 15px 0;\n color: white;\n }\n\n .takyon-modal-container .takyon-body-slot-text {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n color: black !important;\n margin-bottom: 30px;\n }\n\n .takyon-modal-container .takyon-body-slot-color-container {\n position: relative;\n }\n\n .takyon-modal-container .takyon-slot-message {\n position: relative;\n z-index: 2 !important;\n }\n\n .takyon-modal-container .takyon-body-slot-text-color {\n position: absolute;\n bottom: 5px;\n background-color: #8ce786;\n border-radius: 15px;\n width: 100%;\n height: 20px;\n\n z-index: 1;\n }\n\n .takyon-modal-container .takyon-body-slot-title-color {\n /* background-color: #8ce786;\n border-radius: 15px; */\n }\n\n .takyon-modal-container .takyon-footer {\n width: 100%;\n padding: 0 0 30px;\n background-color: white;\n }\n\n .takyon-modal-container .takyon-footer-text {\n font-size: 10px;\n line-height: 15px;\n margin: 0 30px;\n color: black !important;\n }\n\n .takyon-modal-container .takyon-footer-tos {\n color: #171717;\n text-decoration: none;\n cursor: pointer;\n }\n\n .takyon-info-btn {\n width: 30px;\n height: 30px;\n\n cursor: pointer;\n }\n\n .takyon-scripts-target-info .takyon-info-box {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0;\n\n width: max-content;\n\n line-height: 5px !important;\n color: black !important;\n\n display: flex;\n flex-direction: column;\n\n gap: 5px;\n\n cursor: pointer;\n\n position: relative;\n }\n\n .takyon-scripts-target-info .takyon-info-box:hover::after {\n height: 100%;\n }\n\n .takyon-scripts-target-info .takyon-row-1 {\n display: flex;\n align-items: center;\n color: white;\n background: black;\n border-radius: 8px;\n padding: 10px 15px;\n\n gap: 5px;\n\n font-size: larger;\n }\n\n .takyon-scripts-target-info .takyon-row-1:hover {\n text-decoration: underline;\n }\n\n .takyon-scripts-target-info .takyon-row-2 {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n gap: 5px;\n\n font-weight: light;\n }\n\n .takyon-scripts-target-info .takyon-powered {\n font-size: 16px;\n font-weight: 300;\n font-style: italic !important;\n margin: 0;\n }\n\n .takyon-scripts-target-info .takyon-logo-little {\n height: 20px;\n }\n\n .takyon-scripts-target-info .takyon-info-box p {\n margin: 0;\n display: flex;\n }\n\n .takyon-scripts-target-info .takyon-info-btn {\n width: 15px;\n height: 15px;\n }';const translations={en:{__POWERED__:"Se non puoi più utilizzare la prenotazione, puoi rivenderla ad altri viaggiatori fino a 3 giorni prima della partenza.",__DISCOVERMORE__:"Scopri di più",__RATENAME__:"Rivendi fino all'ultimo",__CLOSE__:"Chiudi",__TITLE1__:"La tua prenotazione",__TITLE2__:" alla massima",__TITLE3__:" flessibilità.",__SUBTITLE__:"Prenota e se non puoi più andare la rivendi!",__MESSAGE01__:"Prenota",__MESSAGE02__:" scegliendo la Tariffa Rivendibile",__MESSAGE11__:"Ricevi l'email",__MESSAGE12__:" da Takyon per visualizzare la tua prenotazione rivendibile",__MESSAGE21__:"Se non puoi più andare,",__MESSAGE22__:" rivendila",__MESSAGE23__:" su Takyon fino al giorno prima del check-in",__FOOTER0__:"*Scegliendo la Tariffa Rivendibile il cliente autorizza la creazione - tramite la tecnologia di Takyon S.r.l., a cui verranno trasmessi i dati del cliente - di un prodotto digitale (non-fungibile token) a cui verrà associata la prenotazione.",__FOOTER1__:"**Prenotando la Tariffa Rivendibile, il cliente dichiara di conoscere e accettare i Terms of Service che regolano la Piattaforma di Takyon e la circolazione del prodotto digitale: ",__TOS__:"Termini di Servizio"}},fixPage=()=>{Array.from(document.getElementsByClassName("resources-wraper")).filter((A=>A.innerHTML.toLowerCase().includes("takyon"))).forEach((A=>{A.style.display="flex"}))},loadTakyonStyleInPage=()=>{const A=document.createElement("style");A.textContent=css,document.head.appendChild(A)},toggleTakyonModal=async(A,n)=>{let i=document.getElementById("takyon-modal-container-"+A);if(!i){const n=modals.find((n=>n.id===A)).lang,o=translations[n];let a=htmlModal(A);Object.keys(o).map((A=>{a=a.replace(A,o[A])}));const t=document.createElement("div");t.innerHTML=a,document.body.append(t);document.getElementById("takyon-close-modal-"+A).addEventListener("click",(()=>{toggleTakyonModal(A,!1)}));document.getElementById("takyon-modal-container-"+A).addEventListener("click",(()=>{toggleTakyonModal(A,!1)})),i=document.getElementById("takyon-modal-container-"+A),await sleep(100)}n?(i.classList.remove("takyon-closed"),i.classList.add("takyon-open")):(i.classList.remove("takyon-open"),i.classList.add("takyon-closed"))},loadTakyonInfoScript=()=>{const A=getTargets();for(let n=0;n{E=E.replace(A,t[A])})),i.innerHTML=E;document.getElementById("takyon-logo-little-"+o).addEventListener("click",(A=>{A.preventDefault(),A.stopPropagation(),toggleTakyonModal(o,!0)})),modals.push({id:o,lang:a})}};document.addEventListener("DOMContentLoaded",(async()=>{loadTakyonStyleInPage(),loadTakyonInfoScript(),fixPage()}));const MutationObserver=window.MutationObserver||window.WebKitMutationObserver,mutationObserver=new MutationObserver((()=>{mutationObserver.disconnect(),loadTakyonInfoScript(),fixPage(),mutationObserver.observe(document,{childList:!0,subtree:!0})}));mutationObserver.observe(document,{childList:!0,subtree:!0});