window.CustomizerResponsiveDevicePreview=function(e){"use strict";const i={api:null,init:function(e){i.api=e,e.bind("ready",i.ready)},ready:function(){let e;e=i.api.previewer.previewUrl.validate,i.api.previewer.previewUrl.validate=function(t){let r=t;return null!==r&&(r=i.amendUrlWithPreviewedDevice(r)),e.call(this,r)},i.api.previewedDevice.bind((function(){const e=i.amendUrlWithPreviewedDevice(i.api.previewer.previewUrl.get());i.api.previewer.previewUrl.set(e)}))},amendUrlWithPreviewedDevice:function(t){let r,n;return r=document.createElement("a"),r.href=t,n=i.api.utils.parseQueryString(r.search.substr(1)),n.customize_previewed_device=i.api.previewedDevice.get(),r.search=e.param(n),setTimeout((function(){const e=document.querySelector("#customize-preview iframe");e&&(e.style.height="100%")}),100),setTimeout((function(){const e=document.querySelector("#customize-preview iframe");e&&(e.style.height="100%")}),500),setTimeout((function(){const e=document.querySelector("#customize-preview iframe");e&&(e.style.height="100%")}),1e3),setTimeout((function(){const e=document.querySelector("#customize-preview iframe");e&&(e.style.height="100%")}),2e3),r.href}};return i}(jQuery);