Files
amiibo-service/docs/js/671.a24ab9ad.js
T

10 lines
126 KiB
JavaScript
Raw Normal View History

2026-03-22 23:39:48 +00:00
/*!
* This source file is part of the Swift.org open source project
*
* Copyright (c) 2021 Apple Inc. and the Swift project authors
* Licensed under Apache License v2.0 with Runtime Library Exception
*
* See https://swift.org/LICENSE.txt for license information
* See https://swift.org/CONTRIBUTORS.txt for Swift project authors
*/
(self["webpackChunkswift_docc_render"]=self["webpackChunkswift_docc_render"]||[]).push([[671],{164:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"device-frame",class:e.classes,style:e.styles,attrs:{"data-device":e.device}},[t("div",{staticClass:"device-screen",class:{"with-device":e.currentDeviceAttrs}},[e._t("default")],2),t("div",{staticClass:"device"})])},i=[],s={},a=n(2655);const o=e=>e&&e!==1/0;var l={name:"DeviceFrame",props:{device:{type:String,required:!0}},provide:{insideDeviceFrame:!0},computed:{currentDeviceAttrs:({device:e})=>(0,a.PL)(["theme","device-frames",e],s[e]),styles:({toPixel:e,toUrl:t,toPct:n,currentDeviceAttrs:r={},toVal:i})=>{const{screenTop:s,screenLeft:a,screenWidth:o,frameWidth:l,lightUrl:c,darkUrl:u,screenHeight:A,frameHeight:d}=r;return{"--screen-top":n(s/d),"--screen-left":n(a/l),"--screen-width":n(o/l),"--screen-height":n(A/d),"--screen-aspect":i(o/A),"--frame-width":e(l),"--frame-aspect":i(l/d),"--device-light-url":t(c),"--device-dark-url":t(u)}},classes:({currentDeviceAttrs:e})=>({"no-device":!e})},methods:{toPixel:e=>o(e)?`${e}px`:null,toUrl:e=>o(e)?`url(${e})`:null,toPct:e=>o(e)?100*e+"%":null,toVal:e=>o(e)?e:null}},c=l,u=n(1656),A=(0,u.A)(c,r,i,!1,null,"c2eac128",null),d=A.exports},814:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=function(){var e=this,t=e._self._c;return t("code",{attrs:{tabindex:"0","data-before-code":e.$t("accessibility.code.start"),"data-after-code":e.$t("accessibility.code.end")}},[e._t("default")],2)},i=[],s={name:"CodeBlock"},a=s,o=n(1656),l=(0,o.A)(a,r,i,!1,null,"c21375ec",null),c=l.exports},1097:function(e,t,n){"use strict";n.d(t,{A:function(){return ye}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"code-listing",class:{"single-line":1===e.syntaxHighlightedLines.length,"is-wrapped":e.wrap>0},style:e.wrap>0?{"--wrap-ch":e.wrap}:null,attrs:{"data-syntax":e.syntaxNameNormalized}},[e.fileName?t("Filename",{attrs:{isActionable:e.isFileNameActionable,fileType:e.fileType},on:{click:function(t){return e.$emit("file-name-click")}}},[e._v(e._s(e.fileName)+" ")]):e._e(),t("div",{staticClass:"container-general"},[e.copyToClipboard?t("button",{staticClass:"copy-button",class:e.copyState,attrs:{"aria-label":e.$t("icons.copy"),title:e.$t("icons.copy")},on:{click:e.copyCodeToClipboard}},[e.copyState===e.CopyState.idle?t("CopyIcon",{staticClass:"copy-icon"}):e.copyState===e.CopyState.success?t("CheckmarkIcon",{staticClass:"checkmark-icon"}):e.copyState===e.CopyState.failure?t("CrossIcon",{staticClass:"cross-icon"}):e._e()],1):e._e(),t("pre",[t("CodeBlock",[e._l(e.syntaxHighlightedLines,function(n,r){return[t("span",{key:r,class:["code-line-container",{highlighted:e.isHighlighted(r)||e.isUserHighlighted(r),strikethrough:e.isUserStrikethrough(r)}]},[e.showLineNumbers?t("span",{staticClass:"code-number",attrs:{"data-line-number":e.lineNumberFor(r)}}):e._e(),t("span",{staticClass:"code-line",domProps:{innerHTML:e._s(n)}})]),e._v("\n")]})],2)],1)])],1)},i=[],s=(n(8111),n(7588),n(1701),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(6043)),a=n(1339),o=n(814),l=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"CopyIcon",attrs:{viewBox:"0 0 24 24",themeId:"copy"}},[t("title",[e._v(e._s(e.$t("icons.copy")))]),t("path",{attrs:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2\n .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0\n 16H8V7h11v14z"}})])},c=[],u=n(6515),A={name:"CopyIcon",components:{SVGIcon:u.A}},d=A,p=n(1656),h=(0,p.A)(d,l,c,!1,null,"5308ccb8",null),g=h.exports,f=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"CheckmarkIcon",attrs:{viewBox:"0 0 24 24",themeId:"checkmark"}},[t("path",{attrs:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}})])},m=[],v={name:"CheckmarkIcon",components:{SVGIcon:u.A}},y=v,b=(0,p.A)(y,f,m,!1,null,"4c718f32",null),C=b.exports,I=function(){var e=this,t=e._self._c;return t("SVGIcon",{staticClass:"CrossIcon",attrs:{viewBox:"0 0 24 24",themeId: