/*! elementor-pro - v3.11.6 - 14-03-2023 */ (()=>{"use strict";class Screenshot extends elementorModules.ViewModule{getDefaultSettings(){return{empty_content_headline:"Empty Content.",crop:{width:1200,height:1500},excluded_external_css_urls:["https://kit-pro.fontawesome.com"],external_images_urls:["https://i.ytimg.com"],timeout:15e3,render_timeout:5e3,timerLabel:null,timer_label:`${ElementorScreenshotConfig.post_id} - timer`,image_placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",isDebug:elementorCommonConfig.isElementorDebug,isDebugSvg:!1,...ElementorScreenshotConfig}}getDefaultElements(){const e=jQuery(ElementorScreenshotConfig.selector),t=e.find(".elementor-section-wrap > .elementor-section, .elementor > .elementor-section");return{$elementor:e,$sections:t,$firstSection:t.first(),$notElementorElements:elementorCommon.elements.$body.find("> *:not(style, link)").not(e),$head:jQuery("head")}}onInit(){return super.onInit(),this.log("Screenshot init","time"),this.timeoutTimer=setTimeout(this.screenshotFailed.bind(this),this.getSettings("timeout")),this.captureScreenshot()}captureScreenshot(){return this.elements.$elementor.length||(elementorCommon.helpers.consoleWarn("Screenshots: The content of this page is empty, the module will create a fake conent just for this screenshot."),this.createFakeContent()),this.removeUnnecessaryElements(),this.handleIFrames(),this.removeFirstSectionMargin(),this.handleLinks(),this.loadExternalCss(),this.loadExternalImages(),Promise.resolve().then(this.createImage.bind(this)).then(this.createImageElement.bind(this)).then(this.cropCanvas.bind(this)).then(this.save.bind(this)).then(this.screenshotSucceed.bind(this)).catch(this.screenshotFailed.bind(this))}createFakeContent(){this.elements.$elementor=jQuery("
").css({height:this.getSettings("crop.height"),width:this.getSettings("crop.width"),display:"flex",alignItems:"center",justifyContent:"center"}),this.elements.$elementor.append(jQuery("

").css({fontSize:"85px"}).html(this.getSettings("empty_content_headline"))),document.body.prepend(this.elements.$elementor)}loadExternalCss(){const e=[this.getSettings("home_url"),...this.getSettings("excluded_external_css_urls")].map((e=>`[href^="${e}"]`)).join(", ");jQuery("link").not(e).each(((e,t)=>{const s=jQuery(t),n=s.clone();n.attr("href",this.getScreenshotProxyUrl(s.attr("href"))),this.elements.$head.append(n),s.remove()}))}loadExternalImages(){const e=this.getSettings("external_images_urls").map((e=>`img[src^="${e}"]`)).join(", ");jQuery(e).each(((e,t)=>{const s=jQuery(t);s.attr("src",this.getScreenshotProxyUrl(s.attr("src")))}))}handleIFrames(){this.elements.$elementor.find("iframe").each(((e,t)=>{const s=jQuery(t),n=jQuery("
",{css:{background:"gray",width:s.width(),height:s.height()}});s.before(n),s.remove()}))}removeUnnecessaryElements(){let e=0;this.elements.$sections.filter(((t,s)=>{let n=!1;return e>=this.getSettings("crop.height")&&(n=!0),e+=jQuery(s).outerHeight(),n})).each(((e,t)=>{t.remove()})),this.elements.$notElementorElements.remove()}handleLinks(){elementorCommon.elements.$body.find("a").attr("href","/")}removeFirstSectionMargin(){this.elements.$firstSection.css({marginTop:0})}createImage(){const e=new Promise((e=>{window.addEventListener("load",(()=>{e()}))})),t=new Promise((e=>{setTimeout((()=>{e()}),this.getSettings("render_timeout"))}));return Promise.race([e,t]).then((()=>{if(this.log("Start creating screenshot."),this.getSettings("isDebugSvg"))return domtoimage.toSvg(document.body,{imagePlaceholder:this.getSettings("image_placeholder")}).then((e=>this.download(e))),Promise.reject("Debug SVG.");return/^((?!chrome|android).)*safari/i.test(window.userAgent)?(this.log('Creating screenshot with "html2canvas"'),html2canvas(document.body).then((e=>e.toDataURL("image/png")))):(this.log('Creating screenshot with "dom-to-image"'),domtoimage.toPng(document.body,{imagePlaceholder:this.getSettings("image_placeholder")}))}))}download(e){const t=jQuery("",{href:e,download:"debugSvg.svg",html:"Download SVG"});elementorCommon.elements.$body.append(t),t.trigger("click")}createImageElement(e){const t=new Image;return t.src=e,new Promise((e=>{t.onload=()=>e(t)}))}cropCanvas(e){const t=this.getSettings("crop.width"),s=this.getSettings("crop.height"),n=document.createElement("canvas"),i=n.getContext("2d"),o=t/e.width;return n.width=t,n.height=s>e.height?e.height:s,i.drawImage(e,0,0,e.width,e.height,0,0,e.width*o,e.height*o),Promise.resolve(n)}save(e){return new Promise(((t,s)=>{elementorCommon.ajax.addRequest("screenshot_save",{data:{post_id:this.getSettings("post_id"),screenshot:e.toDataURL("image/png")},success:e=>{this.log(`Screenshot created: ${encodeURI(e)}`),t(e)},error:()=>{this.log("Failed to create screenshot."),s()}})}))}markAsFailed(){return new Promise(((e,t)=>{elementorCommon.ajax.addRequest("screenshot_failed",{data:{post_id:this.getSettings("post_id")},success:()=>{this.log("Marked as failed."),e()},error:()=>{this.log("Failed to mark this screenshot as failed."),t()}})}))}getScreenshotProxyUrl(e){return`${this.getSettings("home_url")}?screenshot_proxy&nonce=${this.getSettings("nonce")}&href=${e}`}screenshotSucceed(e){this.screenshotDone(!0,e)}screenshotFailed(e){this.log(e,null),this.markAsFailed().then((()=>this.screenshotDone(!1)))}screenshotDone(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;clearTimeout(this.timeoutTimer),this.timeoutTimer=null,window.parent.postMessage({name:"capture-screenshot-done",success:e,id:this.getSettings("post_id"),imageUrl:t},"*"),this.log(`Screenshot ${e?"Succeed":"Failed"}.`,"timeEnd")}log(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"timeLog";this.getSettings("isDebug")&&(console.log("string"==typeof e?`${this.getSettings("post_id")} - ${e}`:e),t&&console[t](this.getSettings("timer_label")))}}jQuery((()=>{new Screenshot}))})(); Blog | Page 3 of 4 | Dr Shamim Patel

Blog

The Psychological Impact of Chronic Pelvic Pain: Coping Strategies and Support - Dr. Shamim Patel
April 26, 2023

The Role of Diet and Lifestyle Factors in Infertility

Many couples are faced with infertility issues. In addition to several other factors, diet and lifestyle may significantly improve or prevent infertility. A systematic review evaluated the relationship between modifiable lifestyle behaviors and fertility in men and women. The review examined the effects of fat-rich diets, delayed childbearing/age of starting a family, smoking, alcohol misuse, […]

Read More
What is Da Vinci's Robotic Surgery - Dr. Shamim Patel
April 11, 2023

What is Da Vinci’s Robotic Surgery?

The da Vinci Robotic Surgery System is a sophisticated technology that facilitates complex, minimally invasive procedures. It allows surgeons to have a magnified three-dimensional view of the surgical site in real time and to operate through small incisions. It improves agility, visualization and precision and allows for more accurate surgery. However, despite its benefits, it […]

Read More
What Are the Main Causes of Pelvic Pain - Dr. Shamim Patel
January 25, 2023

What Are the Main Causes of Pelvic Pain?

If you are suffering from pain in your lower back, pelvic region, or abdominal area then you are probably wondering what the main causes of it are. You might also wonder if there are any cures or remedies for it. Read on to learn more about this topic of Pelvic Pain. Symptoms Pelvic pain is […]

Read More
5 Symptoms of Fibrosis - Dr. Shamim Patel
January 12, 2023

5 Symptoms of Fibrosis

Fibrosis is a disease that affects a large number of people. It can affect both the lung and the liver and be a result of various illnesses, such as bronchiectasis or intussusceptions. Symptoms of fibrosis can be varied, but here are 5 of the more common ones that you should be aware of. Pneumothorax Pneumothorax […]

Read More
What First Steps a Pregnant Patient With COVID-19 Should Take - Dr. Shamim Patel
December 21, 2022

What First Steps a Pregnant Patient With COVID-19 Should Take

You have several things to consider if you are pregnant and have been diagnosed with COVID-19. You might wonder how it affects you and your baby, how to prevent it from spreading, and how to take care of your health while in the womb. Symptoms of COVID-19 during pregnancy COVID-19 is an infection that affects […]

Read More
How Does Infertility Affect a Woman's Mental Health?
November 29, 2022

How Does Infertility Affect a Woman’s Mental Health?

Having infertility affects a woman’s mental health in a variety of ways. These can include depression, low self-esteem, stress, and depression. It is essential to understand how the condition affects a woman’s mental health and what steps can be taken to deal with the problem. These steps can include psychotherapy, counseling, or stress reduction. Stress […]

Read More
What First Steps Should a Pregnant Women With COVID Take - Dr. Shamim Patel
November 8, 2022

What First Steps Should a Pregnant Women With COVID Take

If you or a member of your family has been diagnosed with COVID-19, you should know a few things you should do as a pregnant patient. There are travel restrictions for pregnant women with the disease, as well as vaccination and treatment options. In addition, you may want to consider staying home and recovering while you […]

Read More
3 Main High-Risk Pregnancy Types - Dr. Shamim Patel
October 12, 2022

3 Main High-Risk Pregnancy Types

High-risk pregnancy occurs when a woman has several health problems during her pregnancy. The chances of premature labor and birth are increased for these women. They also are at a higher risk of contracting STIs and STDs. Some complications can include excessive bleeding during labor, preeclampsia, or problems with the baby’s development. In rare cases, […]

Read More
Master-Slave Control Strategy for Da Vinci Robotic Surgery - Dr. Shamim Patel
September 22, 2022

Master-Slave Control Strategy for Da Vinci Robotic Surgery

The Da Vinci Surgical System uses a minimally invasive approach for various surgeries. These procedures include prostatectomies, cardiovascular valve repair, gynecologic surgeries, and renal surgery. It is also used to perform eyelid surgeries, such as cataract removal. Minimally invasive surgery The Davinci Robotic Surgery system is a cutting-edge technology that allows doctors to perform minimally […]

Read More
What First Steps Should a Pregnant Women With COVID Take? - Dr. Shamim Patel
September 14, 2022

What First Steps Should a Pregnant Women With COVID Take?

If you or a member of your family has been diagnosed with COVID-19, you should know a few things you should do as a pregnant patient. There are travel restrictions for pregnant women with the disease, as well as vaccination and treatment options. In addition, you may want to consider staying home and recovering while […]

Read More