{
  "version": 3,
  "sources": ["/cdn/shop/t/39/assets/iframe-titles.js?a11y=1"],
  "sourcesContent": ["(() => {\r\n  const namesBySource = [\r\n    [/toastique-quiz-[\\w-]+\\.herokuapp\\.com/, 'Toastique franchise qualification quiz'],\r\n    [/tq-short-form-[\\w-]+\\.herokuapp\\.com/, 'Toastique franchise inquiry form'],\r\n    [/embedsocial\\.com/, 'Customer reviews'],\r\n    [/google\\.[a-z.]+\\/maps|maps\\.google\\./, 'Map of this Toastique location'],\r\n    [/player\\.vimeo\\.com|youtube(-nocookie)?\\.com|youtu\\.be/, 'Video'],\r\n    [/forms\\.zohopublic\\.com/, 'Form'],\r\n    [/docs\\.google\\.com|drive\\.google\\.com/, 'Embedded document'],\r\n  ];\r\n\r\n  const nameFor = (iframe) => {\r\n    const src = iframe.getAttribute('src') || '';\r\n    const source = src && src !== 'about:blank' ? src : iframe.getAttribute('data-src') || src;\r\n    const match = namesBySource.find(([pattern]) => pattern.test(source));\r\n    return match ? match[1] : 'Embedded content';\r\n  };\r\n\r\n  const titleFrame = (iframe) => {\r\n    const namedByThisScript = iframe.hasAttribute('data-auto-title');\r\n    const hasName =\r\n      (iframe.getAttribute('title') || '').trim() ||\r\n      (iframe.getAttribute('aria-label') || '').trim() ||\r\n      iframe.hasAttribute('aria-labelledby');\r\n    if (hasName && !namedByThisScript) return;\r\n    iframe.setAttribute('title', nameFor(iframe));\r\n    iframe.setAttribute('data-auto-title', '');\r\n  };\r\n\r\n  const titleAll = (root) => {\r\n    if (root.tagName === 'IFRAME') titleFrame(root);\r\n    if (root.querySelectorAll) root.querySelectorAll('iframe').forEach(titleFrame);\r\n  };\r\n\r\n  const start = () => {\r\n    titleAll(document);\r\n    new MutationObserver((mutations) => {\r\n      mutations.forEach((mutation) => {\r\n        mutation.addedNodes.forEach((node) => {\r\n          if (node.nodeType === 1) titleAll(node);\r\n        });\r\n        if (mutation.type === 'attributes' && mutation.target.tagName === 'IFRAME') titleFrame(mutation.target);\r\n      });\r\n    }).observe(document.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['src', 'data-src'] });\r\n  };\r\n\r\n  if (document.readyState === 'loading') {\r\n    document.addEventListener('DOMContentLoaded', start);\r\n  } else {\r\n    start();\r\n  }\r\n})();\r\n"],
  "mappings": "CAAC,IAAM,CACL,MAAM,cAAgB,CACpB,CAAC,wCAAyC,wCAAwC,EAClF,CAAC,uCAAwC,kCAAkC,EAC3E,CAAC,mBAAoB,kBAAkB,EACvC,CAAC,uCAAwC,gCAAgC,EACzE,CAAC,wDAAyD,OAAO,EACjE,CAAC,yBAA0B,MAAM,EACjC,CAAC,uCAAwC,mBAAmB,CAC9D,EAEM,QAAW,QAAW,CAC1B,MAAM,IAAM,OAAO,aAAa,KAAK,GAAK,GACpC,OAAS,KAAO,MAAQ,cAAgB,IAAM,OAAO,aAAa,UAAU,GAAK,IACjF,MAAQ,cAAc,KAAK,CAAC,CAAC,OAAO,IAAM,QAAQ,KAAK,MAAM,CAAC,EACpE,OAAO,MAAQ,MAAM,CAAC,EAAI,kBAC5B,EAEM,WAAc,QAAW,CAC7B,MAAM,kBAAoB,OAAO,aAAa,iBAAiB,IAE5D,OAAO,aAAa,OAAO,GAAK,IAAI,KAAK,IACzC,OAAO,aAAa,YAAY,GAAK,IAAI,KAAK,GAC/C,OAAO,aAAa,iBAAiB,IACxB,CAAC,oBAChB,OAAO,aAAa,QAAS,QAAQ,MAAM,CAAC,EAC5C,OAAO,aAAa,kBAAmB,EAAE,EAC3C,EAEM,SAAY,MAAS,CACrB,KAAK,UAAY,UAAU,WAAW,IAAI,EAC1C,KAAK,kBAAkB,KAAK,iBAAiB,QAAQ,EAAE,QAAQ,UAAU,CAC/E,EAEM,MAAQ,IAAM,CAClB,SAAS,QAAQ,EACjB,IAAI,iBAAkB,WAAc,CAClC,UAAU,QAAS,UAAa,CAC9B,SAAS,WAAW,QAAS,MAAS,CAChC,KAAK,WAAa,GAAG,SAAS,IAAI,CACxC,CAAC,EACG,SAAS,OAAS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