1"use strict";(self["webpackChunk_nimiq_wallet"]=self["webpackChunk_nimiq_wallet"]||[]).push([[1706],{34500:function(e,t,r){r.d(t,{A:function(){return d}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"amount-menu"},[e._t("trigger",(function(){return[r("button",{staticClass:"reset button flex-row"},[e._v(e._s(e.ticker))])]})),e.open?r("div",{staticClass:"menu flex-column"},[e.feeOption?r("button",{staticClass:"reset flex-row",on:{click:function(t){return e.$emit("fee-selection")}}},[r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[r("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5"}},[r("line",{attrs:{x1:"15.25",y1:"3.25",x2:"7.75",y2:"3.25"}}),r("line",{attrs:{x1:"12.25",y1:"7.75",x2:"0.75",y2:"7.75"}}),r("line",{attrs:{x1:"13.75",y1:"12.25",x2:"4.75",y2:"12.25"}})])]),e._v(" "+e._s(e.$t("517"))+" ")]):e._e(),e.sendAllOption?r("button",{staticClass:"reset flex-row",on:{click:function(t){return e.$emit("send-max")}}},[r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"}},[r("g",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5"}},[r("line",{attrs:{x1:"8.25",y1:"6.25",x2:"8.25",y2:"15.25"}}),r("path",{attrs:{d:"M12.25,9.3l-4-4-4,4"}}),r("line",{attrs:{x1:"3.25",y1:"1.25",x2:"13.25",y2:"1.25"}})])]),e._v(" "+e._s(e.$t("493"))+" ")]):e._e(),e.feeOption||e.sendAllOption?r("div",{staticClass:"separator"}):e._e(),r("div",{staticClass:"flex-row currencies"},[e.onlyFiatCurrencies?e._e():r("button",{staticClass:"reset",class:{active:e.activeCurrency===e.currency||"btc"===e.currency&&"mbtc"===e.activeCurrency},on:{click:function(t){return e.$emit("currency",e.currency)}}},[e._v(e._s(e.currency.toUpperCase()))]),e._l([e.fiatCurrency].concat([].concat(e.otherFiatCurrencies).sort()),(function(t){return r("button",{key:t,staticClass:"reset",class:{active:e.activeCurrency===t},on:{click:function(r){return e.$emit("currency",t)}}},[e._v(e._s(t.toUpperCase()))])}))],2)]):e._e()],2)},a=[],o=r(41936),s=r(56453),i=(0,o.pM)({props:{open:{type:Boolean,default:!1},currency:{type:String,default:s.dv.NIM},onlyFiatCurrencies:{type:Boolean,default:!1},activeCurrency:{type:String,required:!0},fiatCurrency:{type:String,required:!0},otherFiatCurrencies:{type:Array,required:!0},feeOption:{type:Boolean,default:!0},sendAllOption:{type:Boolean,default:!0}},setup(e){const t=(0,o.EW)((()=>"mbtc"===e.activeCurrency?"mBTC":e.activeCurrency.toUpperCase()));return{ticker:t}}}),c=i,u=r(81656),l=(0,u.A)(c,n,a,!1,null,"40676f0c",null),d=l.exports},32093:function(e,t,r){r.d(t,{A:function(){return p}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Tooltip",{ref:"tooltip$",staticClass:"interactive-short-address",class:[e.tooltipHorizontalPosition,{"is-copyable":e.copyable,"offset-tooltip-position":e.offsetTooltipPosition}],attrs:{preferredPosition:e.tooltipPosition,container:e.tooltipContainer,noFocus:e.copyable},on:{show:function(t){return e.$emit("show")},hide:function(t){return e.$emit("hide")}},nativeOn:{"!mouseenter":function(t){return t.stopPropagation(),e.scheduleShowTooltip.apply(null,arguments)},"!mouseleave":function(t){return t.stopPropagation(),e.hideTooltip.apply(null,arguments)},"!focus":function(t){return t.stopPropagation(),e.scheduleShowTooltip.apply(null,arguments)},"!blur":function(t){return t.stopPropagation(),e.hideTooltip.apply(null,arguments)},"!click":function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)}},scopedSlots:e._u([{key:"trigger",fn:function(){return[e.copyable?r("Copyable",{ref:"copyable$",attrs:{text:e.address},on:{copy:e.onCopy}},[r("ShortAddress",{attrs:{address:e.address,displayedCharacters:e.displayedCharacters}})],1):r("ShortAddress",{attrs:{address:e.address,displayedCharacters:e.displayedCharacters}})]},proxy:!0},{key:"default",fn:function(){return[e._v(e._s(e.address))]},proxy:!0}])})},a=[],o=r(88468),s=r(41936),i=r(36698),c=(0,s.pM)({props:{address:{type:String,required:!0},displayedCharacters:Number,copyable:{type:Boolean,default:!1},tooltipContainer:Object,tooltipPosition:{type:String,default:"bottom right",validator:e=>/^(?:top|bottom) (?:left|right)$/.test(e)},offsetTooltipPosition:{type:Boolean,default:!0}},setup(e,t){const r=(0,s.KR)(null),n=(0,s.KR)(null),a=(0,s.EW)((()=>e.tooltipPosition.split(" ").pop()));let o=-1,i=-1;function c(e=0){-1===o&&(o=window.setTimeout((()=>{o=-1,r.value&&!r.value.isShown&&(r.value.show(),i=Date.now())}),e))}function u(){window.clearTimeout(o),o=-1,r.value&&r.value.isShown&&(r.value.hide(!0),i=-1)}function l(){c(e.copyable?200:0)}function d(){if(e.copyable){if(!n.value)return;n.value.$el&&n.value.$el.blur(),n.value.copy()}else{if(!r.value)return;if(r.value.isShown){if(Date.now()-i<200)return;u()}else c()}}function p(){t.emit("copy"),u(),c(1200)}return{tooltip$:r,copyable$:n,tooltipHorizontalPosition:a,scheduleShowTooltip:l,hideTooltip:u,onClick:d,onCopy:p}},components:{Tooltip:o.Tooltip,Copyable:o.Copyable,ShortAddress:i.A}}),u=c,l=r(81656),d=(0,l.A)(u,n,a,!1,null,"2aecfd58",null),p=d.exports},36698:function(e,t,r){r.d(t,{A:function(){return l}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("span",{staticClass:"short-address flex-row"},[r("span",{staticClass:"address"},[e._v(e._s(e.address.substring(0,Math.ceil(e.displayedCharacters/2))))]),r("svg",{attrs:{viewBox:"0 0 17 3",xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor"}},[r("circle",{attrs:{cx:"1.5",cy:"1.5",r:"1.5"}}),r("circle",{attrs:{cx:"8.5",cy:"1.5",r:"1.5"}}),r("circle",{attrs:{cx:"15.5",cy:"1.5",r:"1.5"}})]),r("span",{staticClass:"address"},[e._v(e._s(e.address.substring(e.address.length-Math.floor(e.displayedCharacters/2))))])])},a=[],o=r(41936),s=(0,o.pM)({props:{address:{type:String,required:!0},displayedCharacters:{type:Number,default:8}}}),i=s,c=r(81656),u=(0,c.A)(i,n,a,!1,null,"0436163a",null),l=u.exports},37201:function(e,t,r){r.a(e,(async function(e,n){try{var a=r(42917),o=r(47743),s=(r(29224),r(81656)),i=e([o]);o=(i.then?(await i)():i)[0];var c=(0,s.A)(o.A,a.X,a.Y,!1,null,"2edb0132",null);t.A=c.exports,n()}catch(u){n(u)}}))},56106:function(e,t,r){r.d(t,{A:function(){return y}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"qr-code-overlay"},[r("PageHeader",[e._v(e._s(e.$t("11",{currency:e.currency.toUpperCase()})))]),r("PageBody",{staticClass:"flex-column"},[r("div",{staticClass:"flex-column"},[r("QrCode",{staticClass:"qr-code",style:{"--qr-code-canvas-size":e.qrCodeCanvasSize+"px"},attrs:{data:""+e.qrPrefix+e.address,size:e.qrCodeCanvasSize,fill:"#1F2348"}}),r("InteractiveShortAddress",{attrs:{address:e.address,displayedCharacters:e.displayedAddressCharacters,copyable:"",tooltipPosition:"top right",offsetTooltipPosition:!1}})],1),r("p",{staticClass:"qr-info-text nq-light-blue"},[e._v(e._s(e.$t("472",{currency:e.currency.toUpperCase()})))])])],1)},a=[],o=r(41936),s=r(88468),i=r(38880),c=r(32093),u=(0,o.pM)({props:{qrPrefix:{type:String,default:""},address:{type:String,required:!0},currency:{type:String,required:!0}},setup(e){const{height:t,isMobile:r}=(0,i.l)(),n=(0,o.EW)((()=>Math.min(520,Math.floor(.95*t.value)))),a=(0,o.EW)((()=>{if(/nim/i.test(e.currency)){const e=2*Math.round(n.value/170);return Math.max(8,4*e+(e-2))}const t=r.value?26:24;return Math.max(8,Math.min(t,Math.round(n.value/20)))}));return{qrCodeCanvasSize:n,displayedAddressCharacters:a}},components:{PageBody:s.PageBody,PageHeader:s.PageHeader,QrCode:s.QrCode,InteractiveShortAddress:c.A}}),l=u,d=r(81656),p=(0,d.A)(l,n,a,!1,null,"498bc883",null),y=p.exports},29224:function(){},47743:function(e,t,r){r.a(e,(async function(e,n){try{var a=r(50970),o=e([a]);a=(o.then?(await o)():o)[0],t.A=a.A,n()}catch(s){n(s)}}))},42917:function(e,t,r){r.d(t,{X:function(){return n},Y:function(){return a}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"payment-link-overlay flex-column",on:{click:function(t){e.amountMenuOpened=!1}}},[r("PageHeader",{staticClass:"link-overlay"},[e._v(" "+e._s(e.$t("525"))+" "),r("div",{attrs:{slot:"more"},slot:"more"},[e._v(" "+e._s(e.$t("523"))+" ")])]),r("PageBody",{staticClass:"flex-column link-overlay"},[r("div",{staticClass:"inputs"},[r("div",{staticClass:"separator"}),"nim"===e.activeCurrency||"btc"===e.activeCurrency?r("AmountInput",{ref:"amountInputRef",attrs:{decimals:"btc"===e.currency?e.btcUnit.decimals:void 0,maxFontSize:5},model:{value:e.amount,callback:function(t){e.amount=t},expression:"amount"}},[r("AmountMenu",{staticClass:"ticker",attrs:{slot:"suffix",open:e.amountMenuOpened,currency:e.currency,activeCurrency:"nim"===e.activeCurrency?e.activeCurrency:e.btcUnit.ticker.toLowerCase(),fiatCurrency:e.fiatCurrency,otherFiatCurrencies:e.otherFiatCurrencies,feeOption:!1,sendAllOption:!1},on:{currency:function(t){return e.activeCurrency=t}},nativeOn:{click:function(t){t.stopPropagation(),e.amountMenuOpened=!e.amountMenuOpened}},slot:"suffix"})],1):r("AmountInput",{attrs:{decimals:e.fiatCurrencyInfo.decimals,maxFontSize:5},model:{value:e.fiatAmount,callback:function(t){e.fiatAmount=t},expression:"fiatAmount"}},[r("span",{staticClass:"tilde",attrs:{slot:"prefix"},slot:"prefix"},[e._v("~")]),r("AmountMenu",{staticClass:"ticker",attrs:{slot:"suffix",open:e.amountMenuOpened,currency:e.currency,activeCurrency:e.activeCurrency,fiatCurrency:e.fiatCurrency,otherFiatCurrencies:e.otherFiatCurrencies,feeOption:!1,sendAllOption:!1},on:{currency:function(t){return e.activeCurrency=t}},nativeOn:{click:function(t){t.stopPropagation(),e.amountMenuOpened=!e.amountMenuOpened}},slot:"suffix"})],1),r("div",{staticClass:"secondary-amount"}
1,["nim"===e.activeCurrency||"btc"===e.activeCurrency?r("span",{key:"fiat-amount"},[e._v(" "+e._s(e.amount>0?"~":"")),r("FiatConvertedAmount",{attrs:{amount:e.amount,currency:e.activeCurrency}})],1):"nim"===e.currency?r("span",{key:"nim-amount"},[e._v(" "+e._s(e.amount/1e5)+" NIM ")]):r("span",{key:"btc-amount"},[e._v(" "+e._s(e.amount/e.btcUnit.unitToCoins)+" "+e._s(e.btcUnit.ticker)+" ")])]),r("div",{staticClass:"separator"})],1),r("QrCode",{staticClass:"qr-code",attrs:{data:e.requestLink,size:400,fill:"#1F2348"}}),r("Copyable",{attrs:{text:e.origin+"/"+e.requestLink}},[e._v(" "+e._s(e.origin.replace(/https?:\/\//,""))+"/"+e._s(e.requestLink)+" ")])],1)],1)},a=[]},50970:function(e,t,r){r.a(e,(async function(e,n){try{var a=r(41936),o=r(88468),s=r(30511),i=r(24516),c=r(58566),u=r(39618),l=r(34500),d=r(76728),p=r(56453),y=r(40667),f=e([c,d,y]);[c,d,y]=f.then?(await f)():f,t.A=(0,a.pM)({props:{address:{type:String,required:!0},currency:{type:String,required:!0,validator:e=>Object.values(p.dv).includes(e)}},setup(e){const t=(0,a.KR)(0),r=(0,a.KR)(""),{btcUnit:n}=(0,c.C$)(),o=(0,a.EW)((()=>({type:e.currency===p.dv.NIM?s.Mc.URI:void 0,amount:t.value,currency:e.currency,message:r.value}))),u=(0,a.EW)((()=>(0,s.Iw)(e.address,o.value))),l=(0,a.KR)(!1),d=(0,a.KR)(e.currency),f=(0,a.KR)(0),{state:v,exchangeRates:C,currency:m}=(0,y.$)(),h=(0,a.EW)((()=>p.JY.filter((e=>e!==v.currency)))),g=(0,a.EW)((()=>d.value===p.dv.NIM||d.value===p.dv.BTC?new i.g(m.value):new i.g(d.value))),x=(0,a.EW)((()=>10**g.value.decimals/(e.currency===p.dv.NIM?1e5:1e8)));return(0,a.wB)(d,(r=>{r!==p.dv.NIM&&r!==p.dv.BTC?f.value=t.value*v.exchangeRates[e.currency][r]*x.value:f.value=0})),(0,a.wB)((()=>{d.value!==p.dv.NIM&&d.value!==p.dv.BTC&&(t.value=Math.floor(f.value/C.value[e.currency][d.value]/x.value))})),{origin:window.location.origin,amount:t,message:r,btcUnit:n,requestLink:u,amountMenuOpened:l,activeCurrency:d,fiatAmount:f,fiatCurrency:v.currency,fiatCurrencyInfo:g,otherFiatCurrencies:h}},components:{PageHeader:o.PageHeader,PageBody:o.PageBody,QrCode:o.QrCode,Copyable:o.Copyable,AmountInput:u.A,AmountMenu:l.A,FiatConvertedAmount:d.A}}),n()}catch(v){n(v)}}))}}]); 2//# sourceMappingURL=1706.f3eba942.js.map
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.