@dcl/shop 0.1.0-29234436777.commit-46b30c8 → 0.1.0-29254949383.commit-2b6a284
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{AnimatedBackground-Cwn2yHma.js → AnimatedBackground-CBTW32pD.js} +1 -1
- package/assets/{Assets-Ba14fiLW.js → Assets-CCVQi0rI.js} +1 -1
- package/assets/{Button-CmJyvPML.js → Button-Cr1_TS3D.js} +1 -1
- package/assets/Cart-BvzVbU00.js +1 -0
- package/assets/{CircularProgress-B38Tnnel.js → CircularProgress-DmKPpYYp.js} +1 -1
- package/assets/{Collection-9d6110wg.js → Collection-DWWE6LCn.js} +1 -1
- package/assets/{Creator-52mXn1JZ.js → Creator-S-8XDh4B.js} +1 -1
- package/assets/{ExchangeController-D9nn0rwm.js → ExchangeController-C16UGsPI.js} +1 -1
- package/assets/{GetCredits-BibEt3Q0.js → GetCredits-BdkbVl1H.js} +2 -2
- package/assets/{HelpersUtil-wI6CwQi4.js → HelpersUtil-DtC5olF9.js} +1 -1
- package/assets/{ImportListings-DWFoBS75.js → ImportListings-C2_DJBwz.js} +1 -1
- package/assets/ItemDetail-CVw1nXip.js +2 -0
- package/assets/Market-Cw2GjoaL.js +1 -0
- package/assets/{MenuItem-CYOrMkFI.js → MenuItem-DWYHS5jY.js} +1 -1
- package/assets/{MyAssets-DYPQwlm0.js → MyAssets-1ZE1pasl.js} +1 -1
- package/assets/{MyFavorites-DJOlX7xv.js → MyFavorites-BXHZPa3S.js} +1 -1
- package/assets/{MyPurchases-CJLocy5p.js → MyPurchases-4bq_8873.js} +1 -1
- package/assets/{NotFound-mmzi7Pal.js → NotFound-2_SxsvRo.js} +1 -1
- package/assets/{RealCheckout-FfVJxRkY.js → RealCheckout-DfpfMajt.js} +1 -1
- package/assets/{ShopFooterInner-BwPrPHf6.js → ShopFooterInner-ChpdTUyi.js} +2 -2
- package/assets/{Success-SMHxJQvv.js → Success-CfpPpfJ2.js} +1 -1
- package/assets/{SvgIcon-DfOMMT9-.js → SvgIcon-CMfDTydC.js} +1 -1
- package/assets/{SwapController-32I9y7GB.js → SwapController-DVHdee2F.js} +1 -1
- package/assets/{TradeService-1mN_88Gm.js → TradeService-Bd-vLt2h.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-f9ve9Onj.js → W3MFrameProviderSingleton-lwu7rhSU.js} +3 -3
- package/assets/{WebCryptoP256-DsoCA5ql.js → WebCryptoP256-DmRCPcui.js} +1 -1
- package/assets/{basic-C87fimX4.js → basic-CDnbFgPw.js} +1 -1
- package/assets/{biconomy-3jUHLidQ.js → biconomy-C-AP_kvC.js} +1 -1
- package/assets/{buy-gasless-NNmtz4Hf.js → buy-gasless-3T0lk5aN.js} +1 -1
- package/assets/{buy-BywD3zgc.js → buy-njp9xZO9.js} +1 -1
- package/assets/{ccip-fqxXOXaH.js → ccip-BYmSUL4p.js} +1 -1
- package/assets/{ccip-C2veV90k.js → ccip-rSz0T9dj.js} +1 -1
- package/assets/collection-DaX7TWx3.js +1 -0
- package/assets/{controller-BsGDpH2F.js → controller-QzyC0r-m.js} +2 -2
- package/assets/{core-DLS8z3IZ.js → core-CiQ-rgdc.js} +4 -4
- package/assets/{custom-CNN8-HjR.js → custom-BtXnP1ca.js} +1 -1
- package/assets/{data-capture-Bz1CYA99.js → data-capture-Da2_lc8C.js} +1 -1
- package/assets/{decimals-D2Ckoxoq.js → decimals-CmjzGAcp.js} +1 -1
- package/assets/decimals-gDjL7Ktl.js +1 -0
- package/assets/{detectExtension-D1xIWlT1.js → detectExtension-CSunUUY7.js} +1 -1
- package/assets/{email-DvgMwoLG.js → email-DFEkdCeY.js} +1 -1
- package/assets/{embedded-wallet-BOPZd0lG.js → embedded-wallet-BiQwlvkX.js} +1 -1
- package/assets/{engine-BZ5nKqbU.js → engine-Cc1lsUp2.js} +1 -1
- package/assets/{estimate-l1-fee-CiDx7-Wg.js → estimate-l1-fee-DhqI4M8P.js} +1 -1
- package/assets/{eth_estimateGas-CCnWHQn3.js → eth_estimateGas-DInlnlVz.js} +1 -1
- package/assets/{eth_getStorageAt-Bwl9wwQt.js → eth_getStorageAt-C_xjUjBL.js} +1 -1
- package/assets/{eth_getTransactionCount-tA2F6NtD.js → eth_getTransactionCount-C5eqLYqv.js} +1 -1
- package/assets/{extractIPFS-C1kQAh5J.js → extractIPFS-DMgu6Pq0.js} +1 -1
- package/assets/{features-8yErZPxX.js → features-CosSBUTn.js} +1 -1
- package/assets/{fetchTokenMetadata-Cz-9IIDh.js → fetchTokenMetadata-Pp9y-Tfu.js} +2 -2
- package/assets/{generateUtilityClasses-DnXJ3syJ.js → generateUtilityClasses-YwmkdnPH.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-5oA20eHX.js → get-ecosystem-wallet-info-BkineL4d.js} +1 -1
- package/assets/{getBalance-MmzbQ5LJ.js → getBalance-BMwxDuIL.js} +1 -1
- package/assets/{getInstalledModules-mbfgT1EE.js → getInstalledModules-_eL918qz.js} +1 -1
- package/assets/{getNFT-DsVCVWGt.js → getNFT-CkUh8MA-.js} +1 -1
- package/assets/{getNFT-CpEaFrgQ.js → getNFT-XLHc3NxY.js} +2 -2
- package/assets/{hashTypedData-BhVdZ9Si.js → hashTypedData-ByDD-Jrs.js} +1 -1
- package/assets/{hashTypedData-BQHZ0qhD.js → hashTypedData-wraUldbi.js} +1 -1
- package/assets/{import-C-JRj4ij.js → import-DuwIf2Pi.js} +1 -1
- package/assets/{in-app-wallet-calls-Do_L62wT.js → in-app-wallet-calls-CvA7f9QC.js} +1 -1
- package/assets/{index-lDox2EW3.js → index-0wvjQ-oP.js} +1 -1
- package/assets/{index-TpCTCSvq.js → index-9Flu8lxW.js} +1 -1
- package/assets/{index-BbD0yISi.js → index-A4m4wBnM.js} +1 -1
- package/assets/{index-Dasmeon7.js → index-B7lFElXy.js} +1 -1
- package/assets/{index-BbRhzb_N.js → index-B8OTXzM2.js} +1 -1
- package/assets/{index-F2k4qPyu.js → index-BDgRiE-g.js} +1 -1
- package/assets/{index-Dvt_97RW.js → index-BPiOplYA.js} +3 -3
- package/assets/{index-CUfjyv9J.js → index-BREgCTzU.js} +1 -1
- package/assets/{index-DUvsJWEE.js → index-BboeApBF.js} +1 -1
- package/assets/{index-nnEiL_xl.js → index-BelWVI_u.js} +1 -1
- package/assets/{index-BSTPxle4.js → index-BiC8AOx_.js} +5 -5
- package/assets/{index-BuWoid0k.js → index-C1il374B.js} +1 -1
- package/assets/{index-DrCk4gsw.js → index-CO0o2xky.js} +1 -1
- package/assets/{index-cfv17qZZ.js → index-CO_QSDoE.js} +1 -1
- package/assets/{index-D8Tq8_mq.js → index-CPbjyJbw.js} +1 -1
- package/assets/{index-C_IeSYi0.js → index-CQLwRG38.js} +1 -1
- package/assets/{index-KvsHM5Ro.js → index-CadBLrlA.js} +1 -1
- package/assets/{index-DWeomrtU.js → index-CcekaRK4.js} +1 -1
- package/assets/{index-BrTVlhqe.js → index-CkmZ55LK.js} +1 -1
- package/assets/{index-BwhBkTrm.js → index-ClQ8rl7A.js} +1 -1
- package/assets/{index-lrRowa87.js → index-CncCZvNK.js} +3 -3
- package/assets/{index-eV8_Iu0Q.js → index-CpNYJcRx.js} +1 -1
- package/assets/{index-9fBpqeTW.js → index-CpruLnUV.js} +1 -1
- package/assets/{index-CJQ2bE4u.js → index-Cs9y7LTd.js} +1 -1
- package/assets/{index-jp6FF3rK.js → index-D0UQKaej.js} +2 -2
- package/assets/{index-DN-4ZgpI.js → index-D1RzRzjx.js} +1 -1
- package/assets/{index-CK7x7Uct.js → index-D3SmImrT.js} +1 -1
- package/assets/{index-6uCBMpMT.js → index-D3aM00of.js} +2 -2
- package/assets/{index-SknEJh7D.js → index-D7xkl2o1.js} +1 -1
- package/assets/{index-BKB4CnZo.js → index-D85x0yip.js} +1 -1
- package/assets/{index-DUEVY5R9.js → index-D8aVqRam.js} +1 -1
- package/assets/{index-CxsXTivD.js → index-DFGD5YdA.js} +1 -1
- package/assets/{index-ADg4pc-e.js → index-DT0GWRTw.js} +1 -1
- package/assets/index-DUecbvfD.js +1 -0
- package/assets/{index-CJOFGy6K.js → index-D_L_F2T3.js} +2 -2
- package/assets/{index-Ce8C_2ts.js → index-DdayI9kv.js} +1 -1
- package/assets/{index-BXTxHO9b.js → index-Djz26u1Z.js} +1 -1
- package/assets/{index-CE15_peM.js → index-DmBTWkhQ.js} +1 -1
- package/assets/{index-CUGW0zwx.js → index-DsN8eKxF.js} +1 -1
- package/assets/{index-BPn6AO38.js → index-DvWJff_y.js} +1 -1
- package/assets/{index-CTtPAKdb.js → index-DvrPGZ5s.js} +1 -1
- package/assets/{index-Bc-zayrV.js → index-OTnqX510.js} +1 -1
- package/assets/{index-CUBgAiZt.js → index-RCMVZOG-.js} +1 -1
- package/assets/{index-D9dK1Bv6.js → index-TPp0P2AO.js} +1 -1
- package/assets/{index-B52ujJdu.js → index-Tc5UVwrs.js} +1 -1
- package/assets/{index-D4HhEkJx.js → index-dF1gY6xl.js} +1 -1
- package/assets/{index-CLltcM3O.js → index-kRa6J0YH.js} +1 -1
- package/assets/{index-Ct6O5o7Q.js → index-oY2L5ByU.js} +1 -1
- package/assets/{index-Be39rSWQ.js → index-rktQ2LR5.js} +1 -1
- package/assets/{index-zmziXJ6D.js → index-s-iN_q-_.js} +1 -1
- package/assets/{index-zGg2j8eu.js → index-trRRxvAA.js} +1 -1
- package/assets/{index-zdQUSwJ_.js → index-wDjEy5n2.js} +1 -1
- package/assets/{index-CB7xBtZ4.js → index-yqk7Psy8.js} +1 -1
- package/assets/{index.es-DejfqhXS.js → index.es-60mBMII2.js} +1 -1
- package/assets/{index.es-BrWxxnNi.js → index.es-BoSAg8zf.js} +4 -4
- package/assets/{index.es-CRWQ41N4.js → index.es-CZ7uV2fx.js} +1 -1
- package/assets/{localBatchGatewayRequest-B4-tOwYC.js → localBatchGatewayRequest-CXMJFr4c.js} +1 -1
- package/assets/{mana-rate-DpqLDxCs.js → mana-rate-G2IgQgyW.js} +1 -1
- package/assets/network-CnbVq7Z0.js +1 -0
- package/assets/{networks-D8m5y7Ti.js → networks-r9sGE5Sj.js} +1 -1
- package/assets/{onramp-Bfk9Bd1M.js → onramp-CgVoKVW7.js} +1 -1
- package/assets/{openzeppelin-B9bjMWik.js → openzeppelin-Rpe03s_y.js} +1 -1
- package/assets/{ownerOf-CxWFAfbY.js → ownerOf-BTHg84bk.js} +1 -1
- package/assets/{parseNft-DsPmWCOd.js → parseNft-C463ehIS.js} +2 -2
- package/assets/{parseSignature-DqyIqYsX.js → parseSignature-CqoG_x5i.js} +1 -1
- package/assets/{parseSignature-DZUnjH0u.js → parseSignature-uk9asJmq.js} +3 -3
- package/assets/{pay-with-exchange-BCA3EsoI.js → pay-with-exchange-BgZ0yWjf.js} +1 -1
- package/assets/{qr-overlay-CB8v9Jd0.js → qr-overlay-Bs59urO9.js} +1 -1
- package/assets/{receive-BwhwS3ym.js → receive-DQvaRb00.js} +1 -1
- package/assets/{resolveImplementation-BkbiAv4n.js → resolveImplementation-DiWDOoC-.js} +1 -1
- package/assets/{rpc-DtI5tlEK.js → rpc-B0v2hmqw.js} +1 -1
- package/assets/{secp256k1-Cpvn-Hxe.js → secp256k1-8zpNemVO.js} +1 -1
- package/assets/{secp256k1-D-2iiTeg.js → secp256k1-CIWvHXa5.js} +1 -1
- package/assets/{secp256k1-DdR8SV0q.js → secp256k1-D_5IJQNP.js} +1 -1
- package/assets/{send-BbWOrr6X.js → send-DFdllAvp.js} +1 -1
- package/assets/{send-batch-transaction-CeEu0FoG.js → send-batch-transaction-Cue_fsYP.js} +1 -1
- package/assets/{send-eip712-transaction-ChVppzOK.js → send-eip712-transaction-J7PyLuy0.js} +2 -2
- package/assets/{send-gasless-transaction-sb0E0po6.js → send-gasless-transaction-CGqmc9gq.js} +2 -2
- package/assets/{sendRawTransaction-DfkKeEIj.js → sendRawTransaction-DqQfBvpK.js} +3 -3
- package/assets/{serializeTransaction-BMQcgs5f.js → serializeTransaction-D10WG6BP.js} +1 -1
- package/assets/{session-proposal-BOMJNslx.js → session-proposal-BXcSOyh5.js} +1 -1
- package/assets/{session-request-BuTmdnrW.js → session-request-LLQFj3Mu.js} +2 -2
- package/assets/{sha256-B6f6cGDc.js → sha256-Cjhq2dOS.js} +1 -1
- package/assets/{signing-C7i9OoE0.js → signing-Y9nDnMGa.js} +4 -4
- package/assets/{socials-BwiXAyj8.js → socials-Dmewiywq.js} +1 -1
- package/assets/{swaps-COtPjQHb.js → swaps-GYMEid1a.js} +1 -1
- package/assets/{thirdweb-CWjKqXPO.js → thirdweb-CfOvVeCU.js} +3 -3
- package/assets/{totalSupply-CjjmVQaq.js → totalSupply-CQ0r81cJ.js} +1 -1
- package/assets/{transactionReceipt-D7Ih7p-O.js → transactionReceipt-QQ0xtwGL.js} +1 -1
- package/assets/{transactions-CfBjYFsb.js → transactions-TNSbdrJw.js} +1 -1
- package/assets/{useInfiniteGrid-ChpWT6kq.js → useInfiniteGrid-CnC_JbP2.js} +1 -1
- package/assets/{verifyHash-XXfYFAqS.js → verifyHash-BJoqovyM.js} +1 -1
- package/assets/{w3m-modal-Cm2JbaB5.js → w3m-modal-BW3eS204.js} +1 -1
- package/assets/{w3m-modal-D98XrLp6.js → w3m-modal-CIT0kzHW.js} +1 -1
- package/assets/{wait-for-tx-receipt-DDhMPIXR.js → wait-for-tx-receipt-BIo4AREx.js} +1 -1
- package/assets/{wallet-kind-CktcS-1H.js → wallet-kind-BbqVQ9gJ.js} +1 -1
- package/assets/{wallets-CdcuBf6f.js → wallets-DnAbchdq.js} +6 -6
- package/assets/{web-connector-B-YX1GrV.js → web-connector-BdTNreEm.js} +3 -3
- package/assets/{writeContract-DyVwcrmC.js → writeContract-BMiXHHeE.js} +1 -1
- package/assets/{zoraTestnet-DxvLrNJd.js → zoraTestnet-BpyNeGFA.js} +1 -1
- package/index.html +8 -8
- package/package.json +2 -2
- package/assets/Cart-D4UXmtWY.js +0 -1
- package/assets/ItemDetail-MHoHIX79.js +0 -2
- package/assets/Market-Vbz75DvS.js +0 -1
- package/assets/collection-u9WaFL3R.js +0 -1
- package/assets/decimals-CSBfxjm-.js +0 -1
- package/assets/index-DMQNbESG.js +0 -1
- package/assets/network-B0rMswFa.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as h,b as v}from"./lit-element-B3y9oplH.js";import{n as d}from"./class-map-CxwNmq0D.js";import"./index-
|
|
1
|
+
import{i as h,b as v}from"./lit-element-B3y9oplH.js";import{n as d}from"./class-map-CxwNmq0D.js";import"./index-DFGD5YdA.js";import{d as m,r as f}from"./index-BPiOplYA.js";import{c as u,U as p}from"./index-CadBLrlA.js";const g=m`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
width: var(--local-width);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as d,b as u}from"./lit-element-B3y9oplH.js";import{n as p}from"./class-map-CxwNmq0D.js";import{c as m}from"./index-
|
|
1
|
+
import{i as d,b as u}from"./lit-element-B3y9oplH.js";import{n as p}from"./class-map-CxwNmq0D.js";import{c as m}from"./index-CadBLrlA.js";import{d as f,r as h}from"./index-BPiOplYA.js";const g=f`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as x,k as N,r as i,j as f}from"./react-Vu6nbGi5.js";import{al as he,am as ve}from"./index-BSTPxle4.js";import{J as L}from"./generateUtilityClasses-DnXJ3syJ.js";import{r as q,j as ye,k as Ee}from"./Button-CmJyvPML.js";import{n as M}from"./SvgIcon-DfOMMT9-.js";import{C as we}from"./CircularProgress-B38Tnnel.js";var y=he(),A={},oe;function Pe(){if(oe)return A;oe=1,Object.defineProperty(A,"__esModule",{value:!0});function e(){let r,n;const t=new Promise((a,u)=>{r=c=>{a(c),t.isPending=!1},n=c=>{u(c),t.isPending=!1}}).catch(a=>Promise.reject(a));return t.resolve=r,t.reject=n,"finally"in t||(t.finally=a=>{t.then(a),t.catch(a)}),t.isPending=!0,t}return A.future=e,A.default=e,A}var be=Pe();const Se=x(be);function ae(e){return{all:e=e||new Map,on:function(r,n){var t=e.get(r);t?t.push(n):e.set(r,[n])},off:function(r,n){var t=e.get(r);t&&(n?t.splice(t.indexOf(n)>>>0,1):e.set(r,[]))},emit:function(r,n){var t=e.get(r);t&&t.slice().map(function(a){a(n)}),(t=e.get("*"))&&t.slice().map(function(a){a(r,n)})}}}const S=new Map,Y=new Map,Z=new Map,k=new Map;function se(e){const r=document.getElementById(e);return!r||!r.contentWindow?!1:Z.get(r.contentWindow)??!1}function H(e){if(e.data&&e.data.type)try{switch(e.data.type){case y.PreviewMessageType.CONTROLLER_RESPONSE:{const r=e.data.payload,{id:n}=r,t=S.get(n);t&&(S.delete(n),r.ok?t.resolve(r.result):r.ok===!1&&t.reject(new Error(r.error)));break}case y.PreviewMessageType.EMOTE_EVENT:{const r=e.data.payload,{type:n,payload:t}=r,a=e.source?Y.get(e.source):null;a&&n&&a.emit(n,t);break}case y.PreviewMessageType.LOAD:{e.source&&(Z.set(e.source,!0),(k.get(e.source)||[]).filter(t=>{var a;return((a=t.data)==null?void 0:a.type)!==y.PreviewMessageType.LOAD}).forEach(H),k.delete(e.source));break}default:}}catch(r){console.error("Error processing WearablePreview message:",r)}}const Me=e=>{var n;if(((n=e.data)==null?void 0:n.type)===y.PreviewMessageType.LOAD){H(e);return}if(!(e.source?Z.get(e.source):!1)&&e.source){const t=k.get(e.source)||[];t.push(e),k.set(e.source,t);return}H(e)};typeof window<"u"&&window.addEventListener("message",Me,!1);let ie=0;function Ae(e){return function(n,t,a){const u=document.getElementById(e);if(!u||!u.contentWindow){const d=new Error("iframe not found or not accessible");return Promise.reject(d)}const c=e+"-"+ie,l=Se();S.set(c,l);const p=y.PreviewMessageType.CONTROLLER_REQUEST,v={id:c,namespace:n,method:t,params:a},m=setTimeout(()=>{S.delete(c),l.reject(new Error(`Request timeout for ${t}`))},1e4),s=l.resolve,j=l.reject;l.resolve=d=>{clearTimeout(m),s(d)},l.reject=d=>{clearTimeout(m),j(d)};try{y.sendMessage(u.contentWindow,p,v)}catch(d){const w=d instanceof Error?d.message:String(d);l.reject(new Error(`Failed to send message: ${w}`)),S.delete(c),clearTimeout(m)}return ie++,l}}function Re(e){const r=document.getElementById(e);if(!r)throw new Error(`Could not find an iframe with id="${e}"`);S.clear();const n=r.contentWindow?Y.get(r.contentWindow)??ae():ae();r.contentWindow&&Y.set(r.contentWindow,n);const t=Ae(e);return{scene:{getScreenshot(a,u){return t("scene","getScreenshot",[a,u])},getMetrics(){return t("scene","getMetrics",[])},changeZoom:function(a){return t("scene","changeZoom",[a])},panCamera:function(a){return t("scene","panCamera",[a])},changeCameraPosition:function(a){return t("scene","changeCameraPosition",[a])},cleanup(){return t("scene","cleanup",[])},setUsername:function(a){return t("scene","setUsername",[a])}},emote:{getLength(){return t("emote","getLength",[])},isPlaying(){return t("emote","isPlaying",[])},goTo(a){return t("emote","goTo",[a])},play(){return t("emote","play",[])},pause(){return t("emote","pause",[])},stop(){return t("emote","stop",[])},enableSound(){return t("emote","enableSound",[])},disableSound(){return t("emote","disableSound",[])},hasSound(){return t("emote","hasSound",[])},isSocialEmote(){return t("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return t("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return t("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:n},physics:{setSpringBonesParams(a,u){return t("physics","setSpringBonesParams",[a,u])}}}}var g=ve(),R={},ue;function Te(){if(ue)return R;ue=1;var e=L();Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var r=e(q()),n=N();return R.default=(0,r.default)((0,n.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),R}var Ce=Te();const Ie=x(Ce);var T={},ce;function xe(){if(ce)return T;ce=1;var e=L();Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var r=e(q()),n=N();return T.default=(0,r.default)((0,n.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),T}var je=xe();const _e=x(je);var C={},le;function Oe(){if(le)return C;le=1;var e=L();Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var r=e(q()),n=N();return C.default=(0,r.default)((0,n.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),C}var ke=Oe();const Ne=x(ke);var I={},de;function Le(){if(de)return I;de=1;var e=L();Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var r=e(q()),n=N();return I.default=(0,r.default)((0,n.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),I}var qe=Le();const We=x(qe),Ve=(e,r)=>{const n=i.useRef(null),[t,a]=i.useState(!1);return i.useEffect(()=>{const u=r??Re(e);if(n.current=u,se(e)){a(!0);return}const c=document.getElementById(e);if(!c){console.error(`Could not find iframe with id="${e}"`);return}if(!c.contentWindow){console.error(`Iframe contentWindow is not accessible for id="${e}"`);return}const p=v=>{var m;((m=v.data)==null?void 0:m.type)===y.PreviewMessageType.LOAD&&se(e)&&a(!0)};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p),a(!1),n.current=null}},[e,r]),{controllerRef:n,isReady:t}},Ue={small:16,medium:20,large:24},me=({children:e,startIcon:r,endIcon:n,loading:t=!1,loadingIcon:a,loadingPosition:u="center",disabled:c=!1,size:l="medium",...p})=>{const v=f.jsx(we,{color:"inherit",size:Ue[l]}),m=a||v,s=t&&u==="center"?m:e;return f.jsx(ye,{disabled:c||t,startIcon:t&&u==="start"?m:r,endIcon:t&&u==="end"?m:n,size:l,...p,children:s})},De=M(Ee)(({theme:e})=>({display:"flex",position:"absolute",width:"100%",bottom:0,margin:`${e.spacing(2)} 0`,padding:`0 ${e.spacing(3)}`,gap:e.spacing(2)})),Fe=M(me)(({theme:e})=>({width:56,height:44,padding:0,minWidth:"unset",background:"rgba(0, 0, 0, 0.64) !important","& svg":{marginLeft:e.spacing(.5)}})),Be=M(me)(({theme:e,muted:r})=>({marginLeft:e.spacing(2.5),minWidth:25,background:"none",padding:0,opacity:r?.5:1})),ze=M("input")(({theme:e})=>({flex:1,width:"100%",background:"none",WebkitAppearance:"none","&:focus":{outline:"none"},"&::-webkit-slider-thumb":{WebkitAppearance:"none",width:24,height:24,borderRadius:10,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",paddingBottom:e.spacing(.625),marginTop:e.spacing(-.5)},"&::-moz-range-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",border:"none"},"&::-ms-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer"},"&::-webkit-slider-runnable-track":{width:300,height:15,background:"rgba(115, 110, 125, 0.32)",border:"none",borderRadius:10},"&::-moz-range-track":{width:"100%",height:15,borderRadius:10,cursor:"pointer",background:"rgba(115, 110, 125, 0.32)"}})),$e=M("div")({display:"flex",alignItems:"center"}),Ye=M("input")({width:56,height:44,borderRadius:5,background:"transparent",border:"1px solid rgba(115, 110, 125, 0.4)",color:"white",textAlign:"center","&:focus-visible":{outline:"1px solid"}}),He=({wearablePreviewId:e,className:r,hideFrameInput:n,hideProgressInput:t,hidePlayButton:a,hideSoundButton:u,wearablePreviewController:c,renderPlayButton:l,renderSoundButton:p,renderProgressBar:v,renderFrameInput:m})=>{const{controllerRef:s,isReady:j}=Ve(e,c),[d,w]=i.useState(0),[P,W]=i.useState(!1),[h,fe]=i.useState(void 0),[b,ge]=i.useState(!0),[_,G]=i.useState(void 0),[J,Q]=i.useState(!1),[K,X]=i.useState(!1),V=i.useCallback(()=>{w(0)},[]),U=i.useCallback(()=>{W(!1),w(o=>o>=Math.floor((h??0)*100)?0:o)},[h]),D=i.useCallback(()=>{W(!1)},[]),F=i.useCallback(async()=>{if(!K){let o=h;!h&&s.current&&(o=await s.current.emote.getLength()),W(!0),fe(o)}},[h,K,s]),B=i.useCallback(({length:o})=>{w(Math.ceil((o??0)*100))},[]);i.useEffect(()=>{const o=s.current;if(o)return o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_PLAY,F),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_PLAYING,B),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_END,U),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_PAUSE,D),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_LOOP,V),()=>{o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_PLAY,F),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_PLAYING,B),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_END,U),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_PAUSE,D),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_LOOP,V)}},[s,F,B,U,D,V]),i.useEffect(()=>{_===void 0&&j&&s.current&&s.current.emote.hasSound().then(o=>G(o)).catch(o=>{console.error("Error checking sound:",o),G(!1)})},[_,j,s]);const z=i.useCallback(async()=>{if(s.current)try{await s.current.emote.play()}catch(o){console.error("Error playing emote:",o)}},[s]),$=i.useCallback(async()=>{if(s.current)try{await s.current.emote.pause()}catch(o){console.error("Error pausing emote:",o)}},[s]),ee=i.useCallback(async()=>{P?await $():await z()},[P,z,$]),te=i.useCallback(()=>{var o,E;b?(o=s.current)==null||o.emote.disableSound():(E=s.current)==null||E.emote.enableSound(),ge(!b)},[b,s]),O=i.useCallback(async o=>{if(isNaN(o)||!s.current)return;let E=o;const ne=h??0;ne*100<o&&(E=ne*100),w(E),X(!0);try{P&&(await s.current.emote.pause(),Q(!0)),await s.current.emote.goTo(E/100)}catch(pe){console.error("Error changing frame:",pe)}},[h,P,s]),re=i.useCallback(async()=>{if(X(!1),J&&s.current){try{await s.current.emote.play()}catch(o){console.error("Error resuming play:",o)}Q(!1)}},[J,s]);return f.jsxs(De,{className:r,children:[a?null:l?l({isPlaying:P,onPlay:z,onPause:$,onToggle:ee}):f.jsx(Fe,{onClick:ee,children:P?f.jsx(Ie,{}):f.jsx(_e,{})}),t?null:v?v({frame:d,length:h??0,onChange:O,onMouseUp:re}):f.jsx(ze,{type:"range",value:d,max:Math.ceil((h??0)*100),min:0,step:1,onChange:o=>O(Number(o.target.value)),onMouseUp:re}),n?null:f.jsx($e,{children:m?m({frame:Math.round(d/100),onChange:o=>O(o*100)}):f.jsx(Ye,{type:"number",value:Math.round(d/100),onChange:o=>O(Number(o.target.value)*100)})}),u||!_?null:p?p({isSoundEnabled:b,hasSound:_,onToggle:te}):f.jsx(Be,{muted:!b,onClick:te,children:b?f.jsx(We,{}):f.jsx(Ne,{})})]})},et=Object.freeze(Object.defineProperty({__proto__:null,EmoteControls:He},Symbol.toStringTag,{value:"Module"}));export{me as B,He as E,Re as c,et as i,y as p,Ve as u};
|
|
1
|
+
import{g as x,k as N,r as i,j as f}from"./react-Vu6nbGi5.js";import{al as he,am as ve}from"./index-BiC8AOx_.js";import{J as L}from"./generateUtilityClasses-YwmkdnPH.js";import{r as q,j as ye,k as Ee}from"./Button-Cr1_TS3D.js";import{n as M}from"./SvgIcon-CMfDTydC.js";import{C as we}from"./CircularProgress-DmKPpYYp.js";var y=he(),A={},oe;function Pe(){if(oe)return A;oe=1,Object.defineProperty(A,"__esModule",{value:!0});function e(){let r,n;const t=new Promise((a,u)=>{r=c=>{a(c),t.isPending=!1},n=c=>{u(c),t.isPending=!1}}).catch(a=>Promise.reject(a));return t.resolve=r,t.reject=n,"finally"in t||(t.finally=a=>{t.then(a),t.catch(a)}),t.isPending=!0,t}return A.future=e,A.default=e,A}var be=Pe();const Se=x(be);function ae(e){return{all:e=e||new Map,on:function(r,n){var t=e.get(r);t?t.push(n):e.set(r,[n])},off:function(r,n){var t=e.get(r);t&&(n?t.splice(t.indexOf(n)>>>0,1):e.set(r,[]))},emit:function(r,n){var t=e.get(r);t&&t.slice().map(function(a){a(n)}),(t=e.get("*"))&&t.slice().map(function(a){a(r,n)})}}}const S=new Map,Y=new Map,Z=new Map,k=new Map;function se(e){const r=document.getElementById(e);return!r||!r.contentWindow?!1:Z.get(r.contentWindow)??!1}function H(e){if(e.data&&e.data.type)try{switch(e.data.type){case y.PreviewMessageType.CONTROLLER_RESPONSE:{const r=e.data.payload,{id:n}=r,t=S.get(n);t&&(S.delete(n),r.ok?t.resolve(r.result):r.ok===!1&&t.reject(new Error(r.error)));break}case y.PreviewMessageType.EMOTE_EVENT:{const r=e.data.payload,{type:n,payload:t}=r,a=e.source?Y.get(e.source):null;a&&n&&a.emit(n,t);break}case y.PreviewMessageType.LOAD:{e.source&&(Z.set(e.source,!0),(k.get(e.source)||[]).filter(t=>{var a;return((a=t.data)==null?void 0:a.type)!==y.PreviewMessageType.LOAD}).forEach(H),k.delete(e.source));break}default:}}catch(r){console.error("Error processing WearablePreview message:",r)}}const Me=e=>{var n;if(((n=e.data)==null?void 0:n.type)===y.PreviewMessageType.LOAD){H(e);return}if(!(e.source?Z.get(e.source):!1)&&e.source){const t=k.get(e.source)||[];t.push(e),k.set(e.source,t);return}H(e)};typeof window<"u"&&window.addEventListener("message",Me,!1);let ie=0;function Ae(e){return function(n,t,a){const u=document.getElementById(e);if(!u||!u.contentWindow){const d=new Error("iframe not found or not accessible");return Promise.reject(d)}const c=e+"-"+ie,l=Se();S.set(c,l);const p=y.PreviewMessageType.CONTROLLER_REQUEST,v={id:c,namespace:n,method:t,params:a},m=setTimeout(()=>{S.delete(c),l.reject(new Error(`Request timeout for ${t}`))},1e4),s=l.resolve,j=l.reject;l.resolve=d=>{clearTimeout(m),s(d)},l.reject=d=>{clearTimeout(m),j(d)};try{y.sendMessage(u.contentWindow,p,v)}catch(d){const w=d instanceof Error?d.message:String(d);l.reject(new Error(`Failed to send message: ${w}`)),S.delete(c),clearTimeout(m)}return ie++,l}}function Re(e){const r=document.getElementById(e);if(!r)throw new Error(`Could not find an iframe with id="${e}"`);S.clear();const n=r.contentWindow?Y.get(r.contentWindow)??ae():ae();r.contentWindow&&Y.set(r.contentWindow,n);const t=Ae(e);return{scene:{getScreenshot(a,u){return t("scene","getScreenshot",[a,u])},getMetrics(){return t("scene","getMetrics",[])},changeZoom:function(a){return t("scene","changeZoom",[a])},panCamera:function(a){return t("scene","panCamera",[a])},changeCameraPosition:function(a){return t("scene","changeCameraPosition",[a])},cleanup(){return t("scene","cleanup",[])},setUsername:function(a){return t("scene","setUsername",[a])}},emote:{getLength(){return t("emote","getLength",[])},isPlaying(){return t("emote","isPlaying",[])},goTo(a){return t("emote","goTo",[a])},play(){return t("emote","play",[])},pause(){return t("emote","pause",[])},stop(){return t("emote","stop",[])},enableSound(){return t("emote","enableSound",[])},disableSound(){return t("emote","disableSound",[])},hasSound(){return t("emote","hasSound",[])},isSocialEmote(){return t("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return t("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return t("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:n},physics:{setSpringBonesParams(a,u){return t("physics","setSpringBonesParams",[a,u])}}}}var g=ve(),R={},ue;function Te(){if(ue)return R;ue=1;var e=L();Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var r=e(q()),n=N();return R.default=(0,r.default)((0,n.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),R}var Ce=Te();const Ie=x(Ce);var T={},ce;function xe(){if(ce)return T;ce=1;var e=L();Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var r=e(q()),n=N();return T.default=(0,r.default)((0,n.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),T}var je=xe();const _e=x(je);var C={},le;function Oe(){if(le)return C;le=1;var e=L();Object.defineProperty(C,"__esModule",{value:!0}),C.default=void 0;var r=e(q()),n=N();return C.default=(0,r.default)((0,n.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),C}var ke=Oe();const Ne=x(ke);var I={},de;function Le(){if(de)return I;de=1;var e=L();Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var r=e(q()),n=N();return I.default=(0,r.default)((0,n.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),I}var qe=Le();const We=x(qe),Ve=(e,r)=>{const n=i.useRef(null),[t,a]=i.useState(!1);return i.useEffect(()=>{const u=r??Re(e);if(n.current=u,se(e)){a(!0);return}const c=document.getElementById(e);if(!c){console.error(`Could not find iframe with id="${e}"`);return}if(!c.contentWindow){console.error(`Iframe contentWindow is not accessible for id="${e}"`);return}const p=v=>{var m;((m=v.data)==null?void 0:m.type)===y.PreviewMessageType.LOAD&&se(e)&&a(!0)};return window.addEventListener("message",p),()=>{window.removeEventListener("message",p),a(!1),n.current=null}},[e,r]),{controllerRef:n,isReady:t}},Ue={small:16,medium:20,large:24},me=({children:e,startIcon:r,endIcon:n,loading:t=!1,loadingIcon:a,loadingPosition:u="center",disabled:c=!1,size:l="medium",...p})=>{const v=f.jsx(we,{color:"inherit",size:Ue[l]}),m=a||v,s=t&&u==="center"?m:e;return f.jsx(ye,{disabled:c||t,startIcon:t&&u==="start"?m:r,endIcon:t&&u==="end"?m:n,size:l,...p,children:s})},De=M(Ee)(({theme:e})=>({display:"flex",position:"absolute",width:"100%",bottom:0,margin:`${e.spacing(2)} 0`,padding:`0 ${e.spacing(3)}`,gap:e.spacing(2)})),Fe=M(me)(({theme:e})=>({width:56,height:44,padding:0,minWidth:"unset",background:"rgba(0, 0, 0, 0.64) !important","& svg":{marginLeft:e.spacing(.5)}})),Be=M(me)(({theme:e,muted:r})=>({marginLeft:e.spacing(2.5),minWidth:25,background:"none",padding:0,opacity:r?.5:1})),ze=M("input")(({theme:e})=>({flex:1,width:"100%",background:"none",WebkitAppearance:"none","&:focus":{outline:"none"},"&::-webkit-slider-thumb":{WebkitAppearance:"none",width:24,height:24,borderRadius:10,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",paddingBottom:e.spacing(.625),marginTop:e.spacing(-.5)},"&::-moz-range-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer",border:"none"},"&::-ms-thumb":{width:24,height:24,borderRadius:20,backgroundColor:"#736e7d",overflow:"visible",cursor:"pointer"},"&::-webkit-slider-runnable-track":{width:300,height:15,background:"rgba(115, 110, 125, 0.32)",border:"none",borderRadius:10},"&::-moz-range-track":{width:"100%",height:15,borderRadius:10,cursor:"pointer",background:"rgba(115, 110, 125, 0.32)"}})),$e=M("div")({display:"flex",alignItems:"center"}),Ye=M("input")({width:56,height:44,borderRadius:5,background:"transparent",border:"1px solid rgba(115, 110, 125, 0.4)",color:"white",textAlign:"center","&:focus-visible":{outline:"1px solid"}}),He=({wearablePreviewId:e,className:r,hideFrameInput:n,hideProgressInput:t,hidePlayButton:a,hideSoundButton:u,wearablePreviewController:c,renderPlayButton:l,renderSoundButton:p,renderProgressBar:v,renderFrameInput:m})=>{const{controllerRef:s,isReady:j}=Ve(e,c),[d,w]=i.useState(0),[P,W]=i.useState(!1),[h,fe]=i.useState(void 0),[b,ge]=i.useState(!0),[_,G]=i.useState(void 0),[J,Q]=i.useState(!1),[K,X]=i.useState(!1),V=i.useCallback(()=>{w(0)},[]),U=i.useCallback(()=>{W(!1),w(o=>o>=Math.floor((h??0)*100)?0:o)},[h]),D=i.useCallback(()=>{W(!1)},[]),F=i.useCallback(async()=>{if(!K){let o=h;!h&&s.current&&(o=await s.current.emote.getLength()),W(!0),fe(o)}},[h,K,s]),B=i.useCallback(({length:o})=>{w(Math.ceil((o??0)*100))},[]);i.useEffect(()=>{const o=s.current;if(o)return o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_PLAY,F),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_PLAYING,B),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_END,U),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_PAUSE,D),o.emote.events.on(g.PreviewEmoteEventType.ANIMATION_LOOP,V),()=>{o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_PLAY,F),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_PLAYING,B),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_END,U),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_PAUSE,D),o.emote.events.off(g.PreviewEmoteEventType.ANIMATION_LOOP,V)}},[s,F,B,U,D,V]),i.useEffect(()=>{_===void 0&&j&&s.current&&s.current.emote.hasSound().then(o=>G(o)).catch(o=>{console.error("Error checking sound:",o),G(!1)})},[_,j,s]);const z=i.useCallback(async()=>{if(s.current)try{await s.current.emote.play()}catch(o){console.error("Error playing emote:",o)}},[s]),$=i.useCallback(async()=>{if(s.current)try{await s.current.emote.pause()}catch(o){console.error("Error pausing emote:",o)}},[s]),ee=i.useCallback(async()=>{P?await $():await z()},[P,z,$]),te=i.useCallback(()=>{var o,E;b?(o=s.current)==null||o.emote.disableSound():(E=s.current)==null||E.emote.enableSound(),ge(!b)},[b,s]),O=i.useCallback(async o=>{if(isNaN(o)||!s.current)return;let E=o;const ne=h??0;ne*100<o&&(E=ne*100),w(E),X(!0);try{P&&(await s.current.emote.pause(),Q(!0)),await s.current.emote.goTo(E/100)}catch(pe){console.error("Error changing frame:",pe)}},[h,P,s]),re=i.useCallback(async()=>{if(X(!1),J&&s.current){try{await s.current.emote.play()}catch(o){console.error("Error resuming play:",o)}Q(!1)}},[J,s]);return f.jsxs(De,{className:r,children:[a?null:l?l({isPlaying:P,onPlay:z,onPause:$,onToggle:ee}):f.jsx(Fe,{onClick:ee,children:P?f.jsx(Ie,{}):f.jsx(_e,{})}),t?null:v?v({frame:d,length:h??0,onChange:O,onMouseUp:re}):f.jsx(ze,{type:"range",value:d,max:Math.ceil((h??0)*100),min:0,step:1,onChange:o=>O(Number(o.target.value)),onMouseUp:re}),n?null:f.jsx($e,{children:m?m({frame:Math.round(d/100),onChange:o=>O(o*100)}):f.jsx(Ye,{type:"number",value:Math.round(d/100),onChange:o=>O(Number(o.target.value)*100)})}),u||!_?null:p?p({isSoundEnabled:b,hasSound:_,onToggle:te}):f.jsx(Be,{muted:!b,onClick:te,children:b?f.jsx(We,{}):f.jsx(Ne,{})})]})},et=Object.freeze(Object.defineProperty({__proto__:null,EmoteControls:He},Symbol.toStringTag,{value:"Module"}));export{me as B,He as E,Re as c,et as i,y as p,Ve as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-
|
|
1
|
+
import{w as k,i as W,b as v}from"./lit-element-B3y9oplH.js";import{n as y}from"./class-map-CxwNmq0D.js";import{c as I}from"./index-CadBLrlA.js";import"./index-DFGD5YdA.js";import{Q as M}from"./browser-DHYOtFa8.js";import{d as O,r as N}from"./index-BPiOplYA.js";const Q=.1,_=2.5,$=7;function x(t,a,d){return t===a?!1:(t-a<0?a-t:t-a)<=d+Q}function A(t,a){const d=Array.prototype.slice.call(M.create(t,{errorCorrectionLevel:a}).modules.data,0),l=Math.sqrt(d.length);return d.reduce((h,f,p)=>(p%l===0?h.push([f]):h[h.length-1].push(f))&&h,[])}const q={generate({uri:t,size:a,logoSize:d,padding:l=8,dotColor:h="var(--apkt-colors-black)"}){const p=[],u=A(t,"Q"),n=(a-2*l)/u.length,E=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];E.forEach(({x:i,y:e})=>{const s=(u.length-$)*n*i+l,r=(u.length-$)*n*e+l,c=.45;for(let o=0;o<E.length;o+=1){const m=n*($-o*2);p.push(k`
|
|
2
2
|
<rect
|
|
3
3
|
fill=${o===2?"var(--apkt-colors-black)":"var(--apkt-colors-white)"}
|
|
4
4
|
width=${o===0?m-10:m}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as b,i as g,b as m}from"./lit-element-B3y9oplH.js";import{n as v,r as h}from"./class-map-CxwNmq0D.js";import{d as y}from"./index-
|
|
1
|
+
import{a as b,i as g,b as m}from"./lit-element-B3y9oplH.js";import{n as v,r as h}from"./class-map-CxwNmq0D.js";import{d as y}from"./index-BPiOplYA.js";import{c as w}from"./index-CadBLrlA.js";import{j as x,e as $,i as R,p as T,R as C,M as P}from"./W3MFrameProviderSingleton-lwu7rhSU.js";const s=T({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),_={state:s,subscribe(t){return R(s,()=>t(s))},subscribeKey(t,e){return $(s,t,e)},showTooltip({message:t,triggerRect:e,variant:o}){s.open=!0,s.message=t,s.triggerRect=e,s.variant=o},hide(){s.open=!1,s.message="",s.triggerRect={width:0,height:0,top:0,left:0}}},a=x(_),j=b`
|
|
2
2
|
:host {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: block;
|