Anvil/assets/Settings.stories-9OGsm1Jo.js
André Jaenisch 55cfc3a009
Updates
2024-07-31 10:01:28 +02:00

2 lines
15 KiB
JavaScript

import{S as h,c as $,a as S,d as _,e as b,m as g,b as u,t as C,q as M,f as y,u as k}from"./index-CP70Tq58.js";import{a as w,b as x,f as B,h as E,k as D,d as a,l as G,i as K,m as P}from"./lifecycle-D_bIUHQK.js";import{S as Q}from"./SettingsSidebar-Rblogaok.js";import{S as j}from"./SettingsProfile-yb46hD34.js";import"./each-C4g42ehH.js";import"./XPro-DLv5pwJ7.js";import"./index-C0Lr04gB.js";import"./spread-CgU5AtxT.js";import"./globals-D0QH3NT1.js";import"./runtime-8AupoRbQ.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./ZoomOut24-CRRKQWCt.js";function A(){var t="/home/andre/src/svelte/Anvil/src/lib/components/molecules/Settings.svelte",e="c6659dd6ad24ae3825dc6164aaa8201c4f8471b0",o=window,l="__coverage__",c={path:"/home/andre/src/svelte/Anvil/src/lib/components/molecules/Settings.svelte",statementMap:{0:{start:{line:32,column:1},end:{line:32,column:43}},1:{start:{line:34,column:1},end:{line:57,column:3}},2:{start:{line:36,column:3},end:{line:36,column:49}},3:{start:{line:39,column:3},end:{line:39,column:55}},4:{start:{line:42,column:3},end:{line:42,column:52}},5:{start:{line:43,column:3},end:{line:43,column:18}},6:{start:{line:46,column:3},end:{line:46,column:23}},7:{start:{line:46,column:16},end:{line:46,column:23}},8:{start:{line:47,column:3},end:{line:47,column:53}},9:{start:{line:48,column:3},end:{line:48,column:18}},10:{start:{line:51,column:3},end:{line:51,column:54}},11:{start:{line:52,column:3},end:{line:52,column:19}},12:{start:{line:55,column:3},end:{line:55,column:49}},13:{start:{line:65,column:1},end:{line:65,column:43}},14:{start:{line:66,column:1},end:{line:66,column:66}},15:{start:{line:67,column:34},end:{line:67,column:78}},16:{start:{line:69,column:1},end:{line:137,column:3}},17:{start:{line:71,column:3},end:{line:71,column:24}},18:{start:{line:72,column:3},end:{line:72,column:49}},19:{start:{line:73,column:3},end:{line:73,column:15}},20:{start:{line:74,column:3},end:{line:74,column:30}},21:{start:{line:74,column:17},end:{line:74,column:30}},22:{start:{line:75,column:3},end:{line:75,column:12}},23:{start:{line:78,column:3},end:{line:78,column:54}},24:{start:{line:79,column:19},end:{line:79,column:32}},25:{start:{line:80,column:3},end:{line:80,column:59}},26:{start:{line:81,column:3},end:{line:81,column:30}},27:{start:{line:82,column:3},end:{line:82,column:39}},28:{start:{line:82,column:17},end:{line:82,column:39}},29:{start:{line:83,column:3},end:{line:83,column:29}},30:{start:{line:84,column:3},end:{line:84,column:12}},31:{start:{line:87,column:3},end:{line:87,column:44}},32:{start:{line:90,column:3},end:{line:90,column:41}},33:{start:{line:91,column:3},end:{line:91,column:47}},34:{start:{line:92,column:3},end:{line:92,column:28}},35:{start:{line:93,column:3},end:{line:93,column:39}},36:{start:{line:93,column:17},end:{line:93,column:39}},37:{start:{line:94,column:3},end:{line:94,column:18}},38:{start:{line:97,column:3},end:{line:116,column:4}},39:{start:{line:98,column:4},end:{line:107,column:5}},40:{start:{line:99,column:5},end:{line:101,column:6}},41:{start:{line:100,column:6},end:{line:100,column:33}},42:{start:{line:103,column:5},end:{line:103,column:37}},43:{start:{line:104,column:5},end:{line:104,column:18}},44:{start:{line:105,column:5},end:{line:105,column:32}},45:{start:{line:106,column:5},end:{line:106,column:27}},46:{start:{line:108,column:10},end:{line:116,column:4}},47:{start:{line:109,column:4},end:{line:109,column:19}},48:{start:{line:111,column:4},end:{line:113,column:7}},49:{start:{line:112,column:5},end:{line:112,column:21}},50:{start:{line:115,column:4},end:{line:115,column:19}},51:{start:{line:119,column:3},end:{line:119,column:23}},52:{start:{line:119,column:16},end:{line:119,column:23}},53:{start:{line:120,column:3},end:{line:120,column:53}},54:{start:{line:121,column:3},end:{line:121,column:27}},55:{start:{line:122,column:3},end:{line:122,column:18}},56:{start:{line:125,column:3},end:{line:125,column:54}},57:{start:{line:126,column:3},end:{line:126,column:28}},58:{start:{line:127,column:3},end:{line:127,column:19}},59:{start:{line:130,column:3},end:{line:132,column:4}},60:{start:{line:131,column:4},end:{line:131,column:16}},61:{start:{line:134,column:3},end:{line:134,column:38}},62:{start:{line:135,column:3},end:{line:135,column:30}},63:{start:{line:135,column:17},end:{line:135,column:30}},64:{start:{line:141,column:21},end:{line:141,column:30}},65:{start:{line:144,column:2},end:{line:144,column:45}},66:{start:{line:147,column:1},end:{line:147,column:39}},67:{start:{line:152,column:2},end:{line:152,column:10}},68:{start:{line:153,column:2},end:{line:153,column:69}},69:{start:{line:157,column:25},end:{line:157,column:202}}},fnMap:{0:{name:"create_if_block",decl:{start:{line:29,column:9},end:{line:29,column:24}},loc:{start:{line:29,column:30},end:{line:58,column:1}},line:29},1:{name:"(anonymous_1)",decl:{start:{line:35,column:2},end:{line:35,column:3}},loc:{start:{line:35,column:6},end:{line:37,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:38,column:2},end:{line:38,column:3}},loc:{start:{line:38,column:11},end:{line:40,column:3}},line:38},3:{name:"(anonymous_3)",decl:{start:{line:41,column:2},end:{line:41,column:3}},loc:{start:{line:41,column:20},end:{line:44,column:3}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:45,column:2},end:{line:45,column:3}},loc:{start:{line:45,column:11},end:{line:49,column:3}},line:45},5:{name:"(anonymous_5)",decl:{start:{line:50,column:2},end:{line:50,column:3}},loc:{start:{line:50,column:11},end:{line:53,column:3}},line:50},6:{name:"(anonymous_6)",decl:{start:{line:54,column:2},end:{line:54,column:3}},loc:{start:{line:54,column:15},end:{line:56,column:3}},line:54},7:{name:"create_fragment",decl:{start:{line:60,column:9},end:{line:60,column:24}},loc:{start:{line:60,column:30},end:{line:138,column:1}},line:60},8:{name:"(anonymous_8)",decl:{start:{line:70,column:2},end:{line:70,column:3}},loc:{start:{line:70,column:6},end:{line:76,column:3}},line:70},9:{name:"(anonymous_9)",decl:{start:{line:77,column:2},end:{line:77,column:3}},loc:{start:{line:77,column:11},end:{line:85,column:3}},line:77},10:{name:"(anonymous_10)",decl:{start:{line:86,column:2},end:{line:86,column:3}},loc:{start:{line:86,column:6},end:{line:88,column:3}},line:86},11:{name:"(anonymous_11)",decl:{start:{line:89,column:2},end:{line:89,column:3}},loc:{start:{line:89,column:20},end:{line:95,column:3}},line:89},12:{name:"(anonymous_12)",decl:{start:{line:96,column:2},end:{line:96,column:3}},loc:{start:{line:96,column:18},end:{line:117,column:3}},line:96},13:{name:"(anonymous_13)",decl:{start:{line:111,column:35},end:{line:111,column:36}},loc:{start:{line:111,column:41},end:{line:113,column:5}},line:111},14:{name:"(anonymous_14)",decl:{start:{line:118,column:2},end:{line:118,column:3}},loc:{start:{line:118,column:11},end:{line:123,column:3}},line:118},15:{name:"(anonymous_15)",decl:{start:{line:124,column:2},end:{line:124,column:3}},loc:{start:{line:124,column:11},end:{line:128,column:3}},line:124},16:{name:"(anonymous_16)",decl:{start:{line:129,column:2},end:{line:129,column:3}},loc:{start:{line:129,column:15},end:{line:136,column:3}},line:129},17:{name:"instance",decl:{start:{line:140,column:9},end:{line:140,column:17}},loc:{start:{line:140,column:49},end:{line:148,column:1}},line:140},18:{name:"onTileChanged",decl:{start:{line:143,column:10},end:{line:143,column:23}},loc:{start:{line:143,column:28},end:{line:145,column:2}},line:143},19:{name:"(anonymous_19)",decl:{start:{line:151,column:1},end:{line:151,column:2}},loc:{start:{line:151,column:22},end:{line:154,column:2}},line:151}},branchMap:{0:{loc:{start:{line:46,column:3},end:{line:46,column:23}},type:"if",locations:[{start:{line:46,column:3},end:{line:46,column:23}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:46},1:{loc:{start:{line:67,column:34},end:{line:67,column:78}},type:"binary-expr",locations:[{start:{line:67,column:34},end:{line:67,column:54}},{start:{line:67,column:58},end:{line:67,column:78}}],line:67},2:{loc:{start:{line:74,column:3},end:{line:74,column:30}},type:"if",locations:[{start:{line:74,column:3},end:{line:74,column:30}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:74},3:{loc:{start:{line:82,column:3},end:{line:82,column:39}},type:"if",locations:[{start:{line:82,column:3},end:{line:82,column:39}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:82},4:{loc:{start:{line:93,column:3},end:{line:93,column:39}},type:"if",locations:[{start:{line:93,column:3},end:{line:93,column:39}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:93},5:{loc:{start:{line:97,column:3},end:{line:116,column:4}},type:"if",locations:[{start:{line:97,column:3},end:{line:116,column:4}},{start:{line:108,column:10},end:{line:116,column:4}}],line:97},6:{loc:{start:{line:98,column:4},end:{line:107,column:5}},type:"if",locations:[{start:{line:98,column:4},end:{line:107,column:5}},{start:{line:102,column:11},end:{line:107,column:5}}],line:98},7:{loc:{start:{line:99,column:5},end:{line:101,column:6}},type:"if",locations:[{start:{line:99,column:5},end:{line:101,column:6}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:99},8:{loc:{start:{line:108,column:10},end:{line:116,column:4}},type:"if",locations:[{start:{line:108,column:10},end:{line:116,column:4}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108},9:{loc:{start:{line:119,column:3},end:{line:119,column:23}},type:"if",locations:[{start:{line:119,column:3},end:{line:119,column:23}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:119},10:{loc:{start:{line:130,column:3},end:{line:132,column:4}},type:"if",locations:[{start:{line:130,column:3},end:{line:132,column:4}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:130},11:{loc:{start:{line:135,column:3},end:{line:135,column:30}},type:"if",locations:[{start:{line:135,column:3},end:{line:135,column:30}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:135}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/andre/src/svelte/Anvil/src/lib/components/molecules/Settings.svelte"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;AAcQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,MAAM,CAAiC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACtD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,MAAM,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0DAUjB,CAAa,CA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AA;;AAEpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,CAAC,CAAE,CAAA,CAAA,CAAA,CAAA;kBACxB,CAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,CAAE,CAAA,CAAC,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c6659dd6ad24ae3825dc6164aaa8201c4f8471b0"},n=o[l]||(o[l]={});(!n[t]||n[t].hash!==e)&&(n[t]=c);var i=n[t];return A=function(){return i},i}A();function d(t){A().f[0]++;let e,o;return A().s[0]++,e=new j({}),A().s[1]++,{c(){A().f[1]++,A().s[2]++,_(e.$$.fragment)},l(l){A().f[2]++,A().s[3]++,b(e.$$.fragment,l)},m(l,c){A().f[3]++,A().s[4]++,g(e,l,c),A().s[5]++,o=!0},i(l){if(A().f[4]++,A().s[6]++,o){A().b[0][0]++,A().s[7]++;return}else A().b[0][1]++;A().s[8]++,u(e.$$.fragment,l),A().s[9]++,o=!0},o(l){A().f[5]++,A().s[10]++,C(e.$$.fragment,l),A().s[11]++,o=!1},d(l){A().f[6]++,A().s[12]++,y(e,l)}}}function q(t){A().f[7]++;let e,o,l,c;A().s[13]++,o=new Q({}),A().s[14]++,o.$on("switch-settings",t[1]);let n=(A().s[15]++,A().b[1][0]++,t[0]==="profile"&&(A().b[1][1]++,d()));return A().s[16]++,{c(){A().f[8]++,A().s[17]++,e=w("div"),A().s[18]++,_(o.$$.fragment),A().s[19]++,l=x(),A().s[20]++,n?(A().b[2][0]++,A().s[21]++,n.c()):A().b[2][1]++,A().s[22]++,this.h()},l(i){A().f[9]++,A().s[23]++,e=B(i,"DIV",{class:!0});var m=(A().s[24]++,E(e));A().s[25]++,b(o.$$.fragment,m),A().s[26]++,l=D(m),A().s[27]++,n?(A().b[3][0]++,A().s[28]++,n.l(m)):A().b[3][1]++,A().s[29]++,m.forEach(a),A().s[30]++,this.h()},h(){A().f[10]++,A().s[31]++,G(e,"class","flex bg-surface-50")},m(i,m){A().f[11]++,A().s[32]++,K(i,e,m),A().s[33]++,g(o,e,null),A().s[34]++,P(e,l),A().s[35]++,n?(A().b[4][0]++,A().s[36]++,n.m(e,null)):A().b[4][1]++,A().s[37]++,c=!0},p(i,[m]){A().f[12]++,A().s[38]++,i[0]==="profile"?(A().b[5][0]++,A().s[39]++,n?(A().b[6][0]++,A().s[40]++,m&1?(A().b[7][0]++,A().s[41]++,u(n,1)):A().b[7][1]++):(A().b[6][1]++,A().s[42]++,n=d(),A().s[43]++,n.c(),A().s[44]++,u(n,1),A().s[45]++,n.m(e,null))):(A().b[5][1]++,A().s[46]++,n?(A().b[8][0]++,A().s[47]++,k(),A().s[48]++,C(n,1,1,()=>{A().f[13]++,A().s[49]++,n=null}),A().s[50]++,M()):A().b[8][1]++)},i(i){if(A().f[14]++,A().s[51]++,c){A().b[9][0]++,A().s[52]++;return}else A().b[9][1]++;A().s[53]++,u(o.$$.fragment,i),A().s[54]++,u(n),A().s[55]++,c=!0},o(i){A().f[15]++,A().s[56]++,C(o.$$.fragment,i),A().s[57]++,C(n),A().s[58]++,c=!1},d(i){A().f[16]++,A().s[59]++,i?(A().b[10][0]++,A().s[60]++,a(e)):A().b[10][1]++,A().s[61]++,y(o),A().s[62]++,n?(A().b[11][0]++,A().s[63]++,n.d()):A().b[11][1]++}}}function H(t,e,o){A().f[17]++;let l=(A().s[64]++,"profile");function c(n){A().f[18]++,A().s[65]++,o(0,l=n.detail)}return A().s[66]++,[l,c]}class v extends h{constructor(e){A().f[19]++,A().s[67]++,super(),A().s[68]++,$(this,e,H,q,S,{})}}A().s[69]++;v.__docgen={version:3,name:"Settings.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const X={title:"Molecules/Settings",component:v,tags:["autodocs"]},s={};var r,f,p;s.parameters={...s.parameters,docs:{...(r=s.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(p=(f=s.parameters)==null?void 0:f.docs)==null?void 0:p.source}}};const Y=["Plain"];export{s as Plain,Y as __namedExportsOrder,X as default};
//# sourceMappingURL=Settings.stories-9OGsm1Jo.js.map