/*! elementor-pro - v3.23.0 - 05-08-2024 */ (()=>{"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,t=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,t="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}))})();{"id":658,"date":"2017-06-27T06:45:25","date_gmt":"2017-06-27T06:45:25","guid":{"rendered":"http:\/\/dummy.xtemos.com\/woodmart\/demos\/?page_id=658"},"modified":"2017-06-27T06:45:25","modified_gmt":"2017-06-27T06:45:25","slug":"faqs","status":"publish","type":"page","link":"https:\/\/addnionmotogear.com\/faqs\/","title":{"rendered":"FAQs"},"content":{"rendered":"

[vc_row equal_height=”yes” css_animation=”fadeIn” css=”.vc_custom_1494510617612{margin-right: -50px !important;margin-left: -50px !important;}”][vc_column css=”.vc_custom_1496938621896{margin-bottom: 20px !important;border-right-width: 1px !important;padding-top: 15px !important;padding-right: 50px !important;padding-left: 50px !important;border-right-color: #e8e8e8 !important;border-right-style: solid !important;}” offset=”vc_col-lg-6 vc_col-md-6″]\n\t\t

\n\t\t\t\n\t\t\t
\n\t\t\t\t<\/span>\n\t\t\t\t

SHOPPING INFORMATION<\/h4>\t\t\t\t\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\n\t\t\t\t\t<\/div>\n\t\t\n\t\t[vc_tta_accordion shape=”square” color=”white” c_icon=”chevron” c_position=”right” active_section=”1″ no_fill=”true” collapsible_all=”true”][vc_tta_section title=”Delivery charges for orders from the Online Shop?” tab_id=”1484652030151-41d816a1-ec06″][vc_column_text]A placerat ac vestibulum integer vehicula suspendisse nostra aptent fermentum tempor a magna erat ligula parturient curae sem conubia vestibulum ac inceptos sodales condimentum cursus nunc mi consectetur condimentum.<\/p>\n

Tristique parturient nulla ullamcorper at ullamcorper non orci iaculis neque augue.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”How long will delivery take?” tab_id=”1484652030190-407b08ef-5de7″][vc_column_text]Parturient ullamcorper et sagittis faucibus dui eu tortor ac parturient ridiculus vel hac condimentum scelerisque libero class.<\/p>\n

Pulvinar in dictumst suspendisse ullamcorper cras cum urna eget nibh facilisi eu a vestibulum morbi porttitor platea metus vestibulum.Ante ullamcorper adipiscing.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”What exactly happens after ordering?” tab_id=”1484652030219-c6960c7e-ee62″][vc_column_text]Parturient viverra enim torquent elit sociosqu sociis consectetur pretium suspendisse sem scelerisque risus magna est consectetur ullamcorper nunc.<\/p>\n

Porta sapien nulla maecenas quis condimentum curabitur suscipit dolor est phasellus dui sociis fringilla a dignissim quisque ullamcorper nec eu eros.Elit consectetur non parturient tempus adipiscing nullam metus.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”Do I receive an invoice for my order?” tab_id=”1484652030238-302a2c7c-fe6f”][vc_column_text]Et malesuada fermentum fames dapibus ac accumsan a varius nibh suspendisse bibendum a at fames sed nibh ullamcorper himenaeos litora egestas pulvinar at id egestas sapien mattis et eros.Scelerisque urna a leo parturient lacinia a purus hac.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”Tellus ridicdiam eleifend id ullamcorper?” tab_id=”1484652030262-e10da133-51b0″][vc_column_text]Parturient sociosqu in vestibulum vivamus accumsan nam tellus curae a at a dapibus a natoque lacus vestibulum hac elementum morbi morbi maecenas eros lorem in a vestibulum imperdiet in.<\/p>\n

Adipiscing primis torquent vivamus ut a condimentum neque ac.[\/vc_column_text][\/vc_tta_section][\/vc_tta_accordion][\/vc_column][vc_column css=”.vc_custom_1496938627545{margin-bottom: 20px !important;padding-top: 15px !important;padding-right: 50px !important;padding-left: 50px !important;}” offset=”vc_col-lg-6 vc_col-md-6″]\n\t\t

\n\t\t\t\n\t\t\t
\n\t\t\t\t<\/span>\n\t\t\t\t

PAYMENT INFORMATION<\/h4>\t\t\t\t\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\n\t\t\t\t\t<\/div>\n\t\t\n\t\t[vc_tta_accordion shape=”square” color=”white” c_icon=”chevron” c_position=”right” active_section=”1″ no_fill=”true” collapsible_all=”true”][vc_tta_section title=”When the order payment is taken of my bank account?” tab_id=”1″][vc_column_text]Vestibulum a fringilla scelerisque ante nisl id taciti parturient praesent suscipit mi at id vestibulum cum vel purus suspendisse egestas ad aenean a penatibus urna.Dignissim senectus metus sodales euismod.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”What is wishlist?” tab_id=”1484056430132-f06cc1b5-a7ca”][vc_column_text]Proin vel nunc non curabitur nullam suspendisse potenti lacinia in duis neque tempor a felis sit parturient placerat suspendisse primis.<\/p>\n

Condimentum parturient aenean aliquam quis auctor dictumst condimentum nec ad non urna accumsan hendrerit pretium potenti adipiscing adipiscing a sapien hendrerit ullamcorper accumsan risus mi et porta.<\/p>\n

Ac et condimentum potenti condimentum.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”What should I do if I receive a damaged or wrong product?” tab_id=”1484049984302-e0b553b6-82dc”][vc_column_text]A faucibus leo auctor scelerisque sit torquent non ligula maecenas a suspendisse fermentum habitant aliquet consectetur mi ad nisl himenaeos elementum lobortis ornare ac adipiscing leo condimentum consectetur nibh laoreet.<\/p>\n

Dictum a elit ridiculus odio montes.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”Can I change or cancel my order?” tab_id=”1484057271889-b3b2ad15-15f7″][vc_column_text]Enim adipiscing commodo vestibulum condimentum parturient vulputate gravida phasellus scelerisque tellus lobortis scelerisque hac metus tincidunt mi.<\/p>\n

Vestibulum vestibulum parturient inceptos scelerisque neque a facilisis posuere sem ullamcorper scelerisque ac.[\/vc_column_text][\/vc_tta_section][vc_tta_section title=”What is “package tracking“ in my orders? ” tab_id=”1484056425804-e857e9fe-0c57″][vc_column_text]Dignissim id a at adipiscing aptent nunc a dui dis quis est arcu parturient conubia lacinia adipiscing pulvinar nullam mi etiam leo molestie at elementum.<\/p>\n

Quis nam per sem facilisis a a parturient consectetur mauris scelerisque parturient adipiscing pretium ac eget consectetur.<\/p>\n

Condimentum nascetur sagittis eu himenaeos pharetra natoque bibendum pharetra nec vel a turpis dis phasellus ultrices sapien.[\/vc_column_text][\/vc_tta_section][\/vc_tta_accordion][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"

[vc_row equal_height=”yes” css_animation=”fadeIn” css=”.vc_custom_1494510617612{margin-right: -50px !important;margin-left: -50px !important;}”][vc_column css=”.vc_custom_1496938621896{margin-bottom: 20px !important;border-right-width: 1px !important;padding-top: 15px !important;padding-right: 50px !important;padding-left: 50px !important;border-right-color: #e8e8e8<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-658","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/addnionmotogear.com\/wp-json\/wp\/v2\/pages\/658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/addnionmotogear.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/addnionmotogear.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/addnionmotogear.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/addnionmotogear.com\/wp-json\/wp\/v2\/comments?post=658"}],"version-history":[{"count":0,"href":"https:\/\/addnionmotogear.com\/wp-json\/wp\/v2\/pages\/658\/revisions"}],"wp:attachment":[{"href":"https:\/\/addnionmotogear.com\/wp-json\/wp\/v2\/media?parent=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}