{"id":4330,"date":"2021-09-01T07:11:11","date_gmt":"2021-09-01T07:11:11","guid":{"rendered":"https:\/\/telemedi.com\/?page_id=4330"},"modified":"2025-03-10T15:52:09","modified_gmt":"2025-03-10T14:52:09","slug":"poz","status":"publish","type":"page","link":"https:\/\/telemedi.com\/pl\/lp\/poz\/","title":{"rendered":"Podstawowa Opieka Zdrowotna"},"content":{"rendered":"\n<section id=\"\" class=\"u-bg-pastel hero section--padding-default\">\n<div class=\"container u-bg-pastel hero__wrapper  after-background-pastel\">\n        <div class=\"row columns-14 u-bg-white hero__content-wrapper  \">\n                <div class=\"hero__content hero__content--ultrawide\">\n            <style>\n        #telemedi-widget-wrapper .telemedi-widget-root {\n            position: relative;\n            width: 100%;\n            height: auto;\n        }\n        \/* hide shadow box for the stationary widget *\/\n        #telemedi-consbook-stationary-widget > div > div {\n            padding: 0;\n            box-shadow: unset;\n        }\n    <\/style>\n    <div id=\"telemedi-widget-wrapper\"><\/div>\n        <script>\n        function getWidgetConfig() {\n            const widgetConfig = {\n                targetElementID: 'telemedico-widget',\r\napiHost: 'https:\/\/telemedi.co\/',\r\ndisplayMode: 'regular',\r\nsplashScreen: false,\r\nvisitDatePicker: false,\r\nfullWidthLayout: true,\r\nspecializationID: '164b5f7f-b72e-4038-a67c-5308082734a9',\r\nquickPaidRegisterPath: true,\r\nwidgetHost: 'https:\/\/widget.telemedi.com\/consbook-widget\/',\r\ndefaultStrategy: 'newUserStrategy',\r\nshowUserSessionStatus: false,\r\nadditionalPaymentLinkRedirectURL: true,\r\ndashboardHost: 'https:\/\/panel.telemedi.com',\r\ndetailedSource: 'lp-poz',\r\nclinicId: \"e255f0a2-36e6-4b41-b6c3-580669d42cbc\",\r\nshouldPaymentProviderRedirectBackToCurrentHost: true,\r\nshouldAddLanguageToRedirectUrl: true,            }\n\n            \/\/ update widget config specializationID with overrideSpecializationID\n            const overrideSpecializationID = \"\";\n            if (overrideSpecializationID) {\n                widgetConfig.specializationID = overrideSpecializationID;\n            }\n            \/\/ update widget config specializationID with specializationID from url\n            const urlParams = new URLSearchParams(window.location.search);\n            if (urlParams.get('specializationID')) {\n                widgetConfig.specializationID = urlParams.get('specializationID');\n            }\n\n            \/\/ update stationary widget config with city and specialization parameters from friendly url\n            const stationaryCity = \"\";\n            const stationarySpecialization = \"\";\n            if (stationaryCity && stationarySpecialization) {\n                widgetConfig.city = stationaryCity;\n                widgetConfig.specialization = stationarySpecialization;\n            }\n\n            if (typeof window.OpenReplay !== \"undefined\" ) {\n                \/\/ pass OpenReplay reference to widget config\n                widgetConfig.openReplayTracker = window.OpenReplay;\n            }\n\n            return widgetConfig;\n        }\n\n        function getMultipleWidgetData() {\n            const multipleWidgetData = [{\n                'hostUrl': 'https:\/\/widget.telemedi.com\/consbook-widget\/widget.js',\n                'widgetRoot': 'Telemedico',\n                'widgetId': 'telemedico-widget',\n                'widgetConfig': getWidgetConfig(),\n            }]\n                        return multipleWidgetData;\n        }\n\n        \/\/ appends passed config data to initially loaded data\n        function reloadConsbookWidgetWithConfigUpdate(widgetConfigUpdate = {}) {\n            if (typeof reloadConsbookWidget !== 'undefined') {\n                const widgetConfig = { ...getWidgetConfig(), ...widgetConfigUpdate };\n                reloadConsbookWidget(widgetConfig);\n            }\n        }\n\n        function telemediLoadWidget(widgetRoot, hostUrl, widgetId, config, tabIndex) {\n            \/\/ clear existing widget\n            const widgetWrapper = document.getElementById(\"telemedi-widget-wrapper\");\n            widgetWrapper.innerHTML =\n                '<div class=\"telemedi-widget-root\" id=\"' + widgetId + '\"><div class=\"telemedi-loader\"><\/div><\/div>';\n            \/\/ hide custom html\n            document.querySelectorAll(\".telemedi-widget-custom-html\").forEach(function (element) {\n                element.style.display = \"none\";\n            });\n            \/\/ check if selected tab has custom html\n            const customHtmlTab = document.querySelector(`[data-widget-tab=\"${tabIndex}\"]`);\n            if (customHtmlTab) {\n                widgetWrapper.style.display = \"none\";\n                customHtmlTab.style.display = \"block\";\n            } else {\n                widgetWrapper.style.display = \"block\";\n            }\n            \/\/ load widget\n            \/\/ check if consbook widget is already loaded on page\n            \/\/ if so reloadConsbookWidget to prevent error:\n            \/\/ Element.attachShadow: Unable to re-attach to existing ShadowDOM\n            if (widgetRoot === 'Telemedico' && window[widgetRoot] && typeof reloadConsbookWidget !== 'undefined') {\n                reloadConsbookWidget(config);\n            } else {\n                (function (w, d, s, o, f, js, fjs) {\n                    w[o] = w[o] || function () {\n                        (w[o].q = w[o].q || []).push(arguments)\n                    };\n                    js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];\n                    js.id = o;\n                    js.src = f;\n                    js.async = 1;\n                    fjs.parentNode.insertBefore(js, fjs);\n                }(window, document, 'script', widgetRoot, hostUrl));\n                window[widgetRoot](config);\n            }\n        }\n\n        function telemediLoadWidgetByTabIndex(index) {\n            const multipleWidgetData = getMultipleWidgetData();\n            const widgetData = multipleWidgetData[index];\n            telemediLoadWidget(\n                widgetData['widgetRoot'],\n                widgetData['hostUrl'],\n                widgetData['widgetId'],\n                widgetData['widgetConfig'],\n                index\n            );\n        }\n\n        telemediLoadWidget(\n            'Telemedico',\n            'https:\/\/widget.telemedi.com\/consbook-widget\/widget.js',\n            'telemedico-widget',\n            getWidgetConfig(),\n            0\n        );\n    <\/script>\n        <\/div>\n            <\/div>\n    <\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":2410,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-full-width.php","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"class_list":["post-4330","page","type-page","status-publish","hentry"],"acf":[],"lang":"pl","translations":{"pl":4330},"_links":{"self":[{"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/pages\/4330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/comments?post=4330"}],"version-history":[{"count":34,"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/pages\/4330\/revisions"}],"predecessor-version":[{"id":23485,"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/pages\/4330\/revisions\/23485"}],"up":[{"embeddable":true,"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/pages\/2410"}],"wp:attachment":[{"href":"https:\/\/telemedi.com\/tm-api\/wp\/v2\/media?parent=4330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}