Published on

Posted by

Categories:

Tagged:

/*! elementor-pro - v3.16.0 - 20-09-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}))})();import { __ } from '@wordpress/i18n'; export const DARK_PALETTES = [ { slug: 'style-1', title: __( 'Style 1', 'astra-sites' ), colors: [ '#8E43F0', '#7215EA', '#FFFFFF', '#EEEBF4', '#150E1F', '#494153', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-2', title: __( 'Style 2', 'astra-sites' ), colors: [ '#EF4D48', '#D90700', '#FFFFFF', '#EEEAEC', '#2B161B', '#3C2F32', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-3', title: __( 'Style 3', 'astra-sites' ), colors: [ '#FF42B3', '#FF0099', '#FFFFFF', '#EEEAEC', '#2B161B', '#3C2F32', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-4', title: __( 'Style 4', 'astra-sites' ), colors: [ '#FF6A97', '#FA036B', '#FFFFFF', '#EEEAEC', '#2B161B', '#3C2F32', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-5', title: __( 'Style 5', 'astra-sites' ), colors: [ '#FF7A3D', '#FF5100', '#FFFFFF', '#F1EDEB', '#1E1810', '#443D3A', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-6', title: __( 'Style 6', 'astra-sites' ), colors: [ '#F9C349', '#FFB100', '#FFFFFF', '#F0EFEC', '#1E1810', '#4D4A46', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-7', title: __( 'Style 7', 'astra-sites' ), colors: [ '#30C7B5', '#00AC97', '#FFFFFF', '#F0EFEC', '#1E1810', '#4D4A46', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-8', title: __( 'Style 8', 'astra-sites' ), colors: [ '#1BAE70', '#06752E', '#FFFFFF', '#EBECEB', '#14261C', '#3D4641', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-9', title: __( 'Style 9', 'astra-sites' ), colors: [ '#2FE6FF', '#00D0EC', '#FFFFFF', '#E8EBEC', '#101218', '#3B4244', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-10', title: __( 'Style 10', 'astra-sites' ), colors: [ '#4175FC', '#084AF3', '#FFFFFF', '#E8EBEC', '#101218', '#3B4244', '#000000', '#4B4F58', '#F6F7F8', ], }, ]; export const LIGHT_PALETTES = [ { slug: 'style-1', title: __( 'Style 1', 'astra-sites' ), colors: [ '#8E43F0', '#6300E2', '#150E1F', '#584D66', '#F3F1F6', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-2', title: __( 'Style 2', 'astra-sites' ), colors: [ '#EF4D48', '#D90700', '#2B161B', '#453E3E', '#F7F3F5', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-3', title: __( 'Style 3', 'astra-sites' ), colors: [ '#FF42B3', '#FF0099', '#2B161B', '#554B4E', '#F6F3F5', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-4', title: __( 'Style 4', 'astra-sites' ), colors: [ '#FF6A97', '#FA036B', '#2B161B', '#645659', '#F8F3F5', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-5', title: __( 'Style 5', 'astra-sites' ), colors: [ '#FF7A3D', '#FF5100', '#1E1810', '#575250', '#F8F5F4', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-6', title: __( 'Style 6', 'astra-sites' ), colors: [ '#F9C349', '#FFB100', '#1E1810', '#62615C', '#F8F7F3', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-7', title: __( 'Style 7', 'astra-sites' ), colors: [ '#30C7B5', '#00AC97', '#14261C', '#4F5655', '#F3F6F3', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-8', title: __( 'Style 8', 'astra-sites' ), colors: [ '#1BAE70', '#06752E', '#14261C', '#4E5652', '#F4F6F4', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-9', title: __( 'Style 9', 'astra-sites' ), colors: [ '#2FC1FF', '#08ACF2', '#101218', '#4C5253', '#F3F6F6', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, { slug: 'style-10', title: __( 'Style 10', 'astra-sites' ), colors: [ '#4175FC', '#084AF3', '#101218', '#494B51', '#F3F5F5', '#FFFFFF', '#000000', '#4B4F58', '#F6F7F8', ], }, ]; 1.0Irfan Jewellers - Best Online Gold Jewellery Shop In Lahore Pakistanhttps://irfanjewellers.comIrfan Jewellershttps://irfanjewellers.com/author/irfanjewellers/Gold Bracelet Design for Couple in Lahore, Pakistanrich600338<blockquote class="wp-embedded-content" data-secret="dKlPA1hq41"><a href="https://irfanjewellers.com/product/gold-bracelet-design-046/">Gold Bracelet Design 046</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://irfanjewellers.com/product/gold-bracelet-design-046/embed/#?secret=dKlPA1hq41" width="600" height="338" title="“Gold Bracelet Design 046” — Irfan Jewellers - Best Online Gold Jewellery Shop In Lahore Pakistan" data-secret="dKlPA1hq41" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script> /*! This file is auto-generated */ !function(d,l){"use strict";l.querySelector&&d.addEventListener&&"undefined"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!/[^a-zA-Z0-9]/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),o=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),c=new RegExp("^https?:$","i"),i=0;i<o.length;i++)o[i].style.display="none";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute("style"),"height"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):"link"===t.message&&(r=new URL(s.getAttribute("src")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener("message",d.wp.receiveEmbedMessage,!1),l.addEventListener("DOMContentLoaded",function(){for(var e,t,s=l.querySelectorAll("iframe.wp-embedded-content"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute("data-secret"))||(t=Math.random().toString(36).substring(2,12),e.src+="#?secret="+t,e.setAttribute("data-secret",t)),e.contentWindow.postMessage({message:"ready",secret:t},"*")},!1)))}(window,document); </script> https://irfanjewellers.com/wp-content/uploads/2024/08/Gold-Bracelet-Design-046_800x800.jpg800800Elegant 22K gold bracelet with intricate filigree and delicate floral motifs. Perfectly crafted for a timeless look, ideal for both everyday wear.