PageSourceSearch

https://us.tonies.com/cdn/shop/t/2839/assets/IframeContent.BRmiNvBT.chunk.min.js

js tonies.com collected 2026-10-02 03:37:56 UTC 15,631 bytes, 14 lines download raw bytes

1import{g as Le}from"./_commonjsHelpers.Cpj98o6Y.chunk.min.js";var ve={exports:{}};(function(ye){console.info(`
2IFRAME-RESIZER
3
4Iframe-Resizer 5 is now available via the following two packages:
5
6 * @iframe-resizer/parent
7 * @iframe-resizer/child
8
9Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery.
10
11Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.
12
13Please see https://iframe-resizer.com/upgrade for more details.
14`),function(N){if(typeof window>"u")return;var ee=0,L,ne=!1,te=!1,Fe="message",Me=Fe.length,W="[iFrameSizer]",q=W.length,v=null,I=window.requestAnimationFrame,ze=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),n={},B=null,S=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){F("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}});function ie(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function j(e,t,c){e.addEventListener(t,c,!1)}function xe(e,t,c){e.removeEventListener(t,c,!1)}function Oe(){var e=["moz","webkit","o","ms"],t;for(t=0;t<e.length&&!I;t+=1)I=window[e[t]+"RequestAnimationFrame"];I?I=I.bind(window):l("setup","RequestAnimationFrame not supported")}function Re(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}function ke(e){return W+"["+Re(e)+"]"}function oe(e){return n[e]?n[e].log:ne}function l(e,t){V("log",e,t,oe(e))}function re(e,t){V("info",e,t,oe(e))}function F(e,t){V("warn",e,t,!0)}function V(e,t,c,r){r===!0&&typeof window.console=="object"&&console[e](ke(t),c)}function Ee(e){function t(){function i(){le(g),ue(s),C("onResized",g)}f("Height"),f("Width"),de(i,g,"init")}function c(){var i=z.slice(q).split(":"),u=i[1]?parseInt(i[1],10):0,m=n[i[0]]&&n[i[0]].iframe,h=getComputedStyle(m);return{iframe:m,id:i[0],height:u+r(h)+d(h),width:i[2],type:i[3]}}function r(i){if(i.boxSizing!=="border-box")return 0;var u=i.paddingTop?parseInt(i.paddingTop,10):0,m=i.paddingBottom?parseInt(i.paddingBottom,10):0;return u+m}function d(i){if(i.boxSizing!=="border-box")return 0;var u=i.borderTopWidth?parseInt(i.borderTopWidth,10):0,m=i.borderBottomWidth?parseInt(i.borderBottomWidth,10):0;return u+m}function f(i){var u=Number(n[s]["max"+i]),m=Number(n[s]["min"+i]),h=i.toLowerCase(),w=Number(g[h]);l(s,"Checking "+h+" is in range "+m+"-"+u),w<m&&(w=m,l(s,"Set "+h+" to min value")),w>u&&(w=u,l(s,"Set "+h+" to max value")),g[h]=""+w}function O(){function i(){function h(){var y=0,E=!1;for(l(s,"Checking connection is from allowed list of origins: "+m);y<m.length;y++)if(m[y]===u){E=!0;break}return E}function w(){var y=n[s]&&n[s].remoteHost;return l(s,"Checking connection is from: "+y),u===y}return m.constructor===Array?h():w()}var u=e.origin,m=n[s]&&n[s].checkOrigin;if(m&&""+u!="null"&&!i())throw new Error("Unexpected message received from: "+u+" for "+g.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function P(){return W===(""+z).slice(0,q)&&z.slice(q).split(":")[0]in n}function R(){var i=g.type in{true:1,false:1,undefined:1};return i&&l(s,"Ignoring init message from meta parent page"),i}function k(i){return z.slice(z.indexOf(":")+Me+i)}function T(i){l(s,"onMessage passed: {iframe: "+g.iframe.id+", message: "+i+"}"),C("onMessage",{iframe:g.iframe,message:JSON.parse(i)}),l(s,"--")}function Y(){var i=document.body.getBoundingClientRect(),u=g.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:u.height,iframeWidth:u.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(u.top-i.top,10),offsetLeft:parseInt(u.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function H(i,u){function m(){x("Send Page Info","pageInfo:"+Y(),i,u)}Ie(m,32,u)}function Z(){function i(w,y){function E(){n[h]?H(n[h].iframe,h):u()}["scroll","resize"].forEach(function(be){l(h,w+be+" listener for sendPageInfo"),y(window,be,E)})}function u(){i("Remove ",xe)}function m(){i("Add ",j)}var h=s;m(),n[h]&&(n[h].stopPageInfo=u)}function G(){n[s]&&n[s].stopPageInfo&&(n[s].stopPageInfo(),delete n[s].stopPageInfo)}function K(){var i=!0;return g.iframe===null&&(F(s,"IFrame ("+g.id+") not found"),i=!1),i}function o(i){var u=i.getBoundingClientRect();return se(s),{x:Math.floor(Number(u.left)+Number(v.x)),y:Math.floor(Number(u.top)+Number(v.y))}}function a(i){function u(){v=y,p(),l(s,"--")}function m(){return{x:Number(g.width)+w.x,y:Number(g.height)+w.y}}function h(){window.parentIFrame?window.parentIFrame["scrollTo"+(i?"Offset":"")](y.x,y.y):F(s,"Unable to scroll to requested position, window.parentIFrame not found")}var w=i?o(g.iframe):{x:0,y:0},y=m();l(s,"Reposition requested from iFrame (offset x:"+w.x+" y:"+w.y+")"),window.top===window.self?u():h()}function p(){C("onScroll",v)===!1?ce():ue(s)}function b(i){function u(){var E=o(y);l(s,"Moving to in page link (#"+h+") at x: "+E.x+" y: "+E.y),v={x:E.x,y:E.y},p(),l(s,"--")}function m(){window.parentIFrame?window.parentIFrame.moveToAnchor(h):l(s,"In page link #"+h+" not found and window.parentIFrame not found")}var h=i.split("#")[1]||"",w=decodeURIComponent(h),y=document.getElementById(w)||document.getElementsByName(w)[0];y?u():window.top===window.self?l(s,"In page link #"+h+" not found"):m()}function M(i){var u={};if(Number(g.width)===0&&Number(g.height)===0){var m=k(9).split(":");u={x:m[1],y:m[0]}}else u={x:g.width,y:g.height};C(i,{iframe:g.iframe,screenX:Number(u.x),screenY:Number(u.y),type:g.type})}function C(i,u){return U(s,i,u)}function A(){switch(n[s]&&n[s].firstRun&&$(),g.type){case"close"
14:{J(g.iframe);break}case"message":{T(k(6));break}case"mouseenter":{M("onMouseEnter");break}case"mouseleave":{M("onMouseLeave");break}case"autoResize":{n[s].autoResize=JSON.parse(k(9));break}case"scrollTo":{a(!1);break}case"scrollToOffset":{a(!0);break}case"pageInfo":{H(n[s]&&n[s].iframe,s),Z();break}case"pageInfoStop":{G();break}case"inPageLink":{b(k(9));break}case"reset":{fe(g);break}case"init":{t(),C("onInit",g.iframe);break}default:Number(g.width)===0&&Number(g.height)===0?F("Unsupported message received ("+g.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}}function _(i){var u=!0;return n[i]||(u=!1,F(g.type+" No settings for "+i+". Message was: "+z)),u}function D(){for(var i in n)x("iFrame requested init",ge(i),n[i].iframe,i)}function $(){n[s]&&(n[s].firstRun=!1)}var z=e.data,g={},s=null;z==="[iFrameResizerChild]Ready"?D():P()?(g=c(),s=g.id,n[s]&&(n[s].loaded=!0),!R()&&_(s)&&(l(s,"Received: "+z),K()&&O()&&A())):re(s,"Ignored: "+z)}function U(e,t,c){var r=null,d=null;if(n[e])if(r=n[e][t],typeof r=="function")d=r(c);else throw new TypeError(t+" on iFrame["+e+"] is not a function");return d}function ae(e){var t=e.id;delete n[t]}function J(e){var t=e.id;if(U(t,"onClose",t)===!1){l(t,"Close iframe cancelled by onClose event");return}l(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(c){F(c)}U(t,"onClosed",t),l(t,"--"),ae(e),L&&(L.disconnect(),L=null)}function se(e){v===null&&(v={x:window.pageXOffset===N?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===N?document.documentElement.scrollTop:window.pageYOffset},l(e,"Get page position: "+v.x+","+v.y))}function ue(e){v!==null&&(window.scrollTo(v.x,v.y),l(e,"Set page position: "+v.x+","+v.y),ce())}function ce(){v=null}function fe(e){function t(){le(e),x("reset","reset",e.iframe,e.id)}l(e.id,"Size reset requested by "+(e.type==="init"?"host page":"iFrame")),se(e.id),de(t,e,"reset")}function le(e){function t(f){if(!e.id){l("undefined","messageData id not set");return}e.iframe.style[f]=e[f]+"px",l(e.id,"IFrame ("+d+") "+f+" set to "+e[f]+"px")}function c(f){!te&&e[f]==="0"&&(te=!0,l(d,"Hidden iFrame detected, creating visibility listener"),Pe())}function r(f){t(f),c(f)}var d=e.iframe.id;n[d]&&(n[d].sizeHeight&&r("height"),n[d].sizeWidth&&r("width"))}function de(e,t,c){c!==t.type&&I&&!window.jasmine?(l(t.id,"Requesting animation frame"),I(e)):e()}function x(e,t,c,r,d){function f(){var T=n[r]&&n[r].targetOrigin;l(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+T),c.contentWindow.postMessage(W+t,T)}function O(){F(r,"["+e+"] IFrame("+r+") not found")}function P(){c&&"contentWindow"in c&&c.contentWindow!==null?f():O()}function R(){function T(){n[r]&&!n[r].loaded&&!k&&(k=!0,F(r,"IFrame has not responded within "+n[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}d&&n[r]&&n[r].warningTimeout&&(n[r].msgTimeout=setTimeout(T,n[r].warningTimeout))}var k=!1;r=r||c.id,n[r]&&(P(),R())}function ge(e){return e+":"+n[e].bodyMarginV1+":"+n[e].sizeWidth+":"+n[e].log+":"+n[e].interval+":"+n[e].enablePublicMethods+":"+n[e].autoResize+":"+n[e].bodyMargin+":"+n[e].heightCalculationMethod+":"+n[e].bodyBackground+":"+n[e].bodyPadding+":"+n[e].tolerance+":"+n[e].inPageLinks+":"+n[e].resizeFrom+":"+n[e].widthCalculationMethod+":"+n[e].mouseEvents}function Te(e){return typeof e=="number"}function me(e,t){function c(){function a(b){var M=n[o][b];M!==1/0&&M!==0&&(e.style[b]=Te(M)?M+"px":M,l(o,"Set "+b+" = "+e.style[b]))}function p(b){if(n[o]["min"+b]>n[o]["max"+b])throw new Error("Value for min"+b+" can not be greater than max"+b)}p("Height"),p("Width"),a("maxHeight"),a("minHeight"),a("maxWidth"),a("minWidth")}function r(){var a=t&&t.id||S.id+ee++;return document.getElementById(a)!==null&&(a+=ee++),a}function d(a){if(typeof a!="string")throw new TypeError("Invaild id for iFrame. Expected String");return a===""&&(e.id=a=r(),ne=(t||{}).log,l(a,"Added missing iframe ID: "+a+" ("+e.src+")")),a}function f(){switch(l(o,"IFrame scrolling "+(n[o]&&n[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=(n[o]&&n[o].scrolling)===!1?"hidden":"auto",n[o]&&n[o].scrolling){case"omit":break;case!0:{e.scrolling="yes";break}case!1:{e.scrolling="no";break}default:e.scrolling=n[o]?n[o].scrolling:"no"}}function O(){(typeof(n[o]&&n[o].bodyMargin)=="number"||(n[o]&&n[o].bodyMargin)==="0")&&(n[o].bodyMarginV1=n[o].bodyMargin,n[o].bodyMargin=""+n[o].bodyMargin+"px")}function P(){var a=n[o]&&n[o].firstRun,p=n[o]&&n[o].heightCalculationMethod in ze;!a&&p&&fe({iframe:e,height:0,width:0,type:"init"})}function R(){n[o]&&(n[o].iframe.iFrameResizer={close:J.bind(null,n[o].iframe),removeListeners:ae.bind(null,n[o].iframe),resize:x.bind(null,"Window resize","resize",n[o].iframe),moveToAnchor:function(a){x("Move to anchor","moveToAnchor:"+a,n[o].iframe,o)},sendMessage:function(a){a=JSON.stringify(a),x("Send Message","message:"+a,n[o].iframe,o)}})}function k(a){function p(){x("iFrame.onload",a,e,N,!0),P()}function b(C){if(!e.parentNode)return null;var A=new C(function(_){_.forEach(function(D){var $=Array.prototype.slice.call(D.removedNodes
14);$.forEach(function(z){z===e&&J(e)})})});return A.observe(e.parentNode,{childList:!0}),A}var M=ie();M&&(L=b(M)),j(e,"load",p),x("init",a,e,N,!0)}function T(a){if(typeof a!="object")throw new TypeError("Options is not an object")}function Y(a){for(var p in S)Object.prototype.hasOwnProperty.call(S,p)&&(n[o][p]=Object.prototype.hasOwnProperty.call(a,p)?a[p]:S[p])}function H(a){return a===""||a.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":a}function Z(a){var p=a.split("Callback");if(p.length===2){var b="on"+p[0].charAt(0).toUpperCase()+p[0].slice(1);this[b]=this[a],delete this[a],F(o,"Deprecated: '"+a+"' has been renamed '"+b+"'. The old method will be removed in the next major version.")}}function G(a){a=a||{},n[o]=Object.create(null),n[o].iframe=e,n[o].firstRun=!0,n[o].remoteHost=e.src&&e.src.split("/").slice(0,3).join("/"),T(a),Object.keys(a).forEach(Z,a),Y(a),n[o]&&(n[o].targetOrigin=n[o].checkOrigin===!0?H(n[o].remoteHost):"*")}function K(){return o in n&&"iFrameResizer"in e}var o=d(e.id);K()?F(o,"Ignored iFrame, already setup."):(G(t),f(),c(),O(),k(ge(o)),R())}function Q(e,t){B===null&&(B=setTimeout(function(){B=null,e()},t))}var X={};function Ie(e,t,c){X[c]||(X[c]=setTimeout(function(){X[c]=null,e()},t))}function Pe(){function e(){function d(f){function O(R){return(n[f]&&n[f].iframe.style[R])==="0px"}function P(R){return R.offsetParent!==null}n[f]&&P(n[f].iframe)&&(O("height")||O("width"))&&x("Visibility change","resize",n[f].iframe,f)}Object.keys(n).forEach(function(f){d(f)})}function t(d){l("window","Mutation observed: "+d[0].target+" "+d[0].type),Q(e,16)}function c(){var d=document.querySelector("body"),f={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},O=new r(t);O.observe(d,f)}var r=ie();r&&c()}function Ce(e){function t(){pe("Window "+e,"resize")}l("window","Trigger event: "+e),Q(t,16)}function he(){function e(){pe("Tab Visible","resize")}document.visibilityState!=="hidden"&&(l("document","Trigger event: Visibility change"),Q(e,16))}function pe(e,t){function c(r){return n[r]&&n[r].resizeFrom==="parent"&&n[r].autoResize&&!n[r].firstRun}Object.keys(n).forEach(function(r){c(r)&&x(e,t,n[r].iframe,r)})}function Ne(){j(window,"message",Ee),j(window,"resize",function(){Ce("resize")}),j(document,"visibilitychange",he),j(document,"-webkit-visibilitychange",he)}function we(){function e(r,d){function f(){if(d.tagName){if(d.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected <IFRAME> tag, found <"+d.tagName+">")}else throw new TypeError("Object is not a valid DOM element")}d&&(f(),me(d,r),c.push(d))}function t(r){r&&r.enablePublicMethods&&F("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var c;return Oe(),Ne(),function(d,f){switch(c=[],t(d),typeof f){case"undefined":case"string":{Array.prototype.forEach.call(document.querySelectorAll(f||"iframe"),e.bind(N,d));break}case"object":{e(d,f);break}default:throw new TypeError("Unexpected data type ("+typeof f+")")}return c}}function je(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(c){function r(d,f){me(f,c)}return this.filter("iframe").each(r).end()}):re("","Unable to bind to jQuery, it is not fully loaded.")}window.jQuery!==N&&je(window.jQuery),ye.exports=we(),window.iFrameResize=window.iFrameResize||we()}()})(ve);var We=ve.exports;const Se=Le(We),He={props:{settings:Object},mounted(){this.iframeLoaded()},methods:{iframeLoaded(){Se({log:!0},`#${this.settings.iframe_id}`)}}},qe={name:"Iframe Content",components:{IframeContent:He}};export{qe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.