{"version":3,"sources":["jsdelivr-header.js","https://cdn.615873.xyz/npm/ractive-transitions-slide@0.4.0/src/ractive-transitions-slide.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gRCNA,IAAM,EAAW,CAChB,SAAU,IACV,OAAQ,aAGH,EAAQ,CACb,SACA,iBACA,oBACA,aACA,gBACA,YACA,gBAGK,EAAY,CACjB,OAAQ,EACR,eAAgB,EAChB,kBAAmB,EACnB,WAAY,EACZ,cAAe,EACf,UAAW,EACX,aAAc,G,OAGA,SAAiB,EAAG,GAClC,IAAI,EAEJ,EAAS,EAAE,cAAe,EAAQ,GAE7B,EAAE,SACN,EAAc,EAAE,SAAU,GAC1B,EAAE,SAAU,KAGZ,EAAE,SAAU,EAAE,SAAU,IACxB,EAAc,GAGf,EAAE,SAAU,YAAa,UAEzB,EAAE,aAAc,EAAa,GAAS,KAAM,EAAE,S","file":"https://cdn.615873.xyz/npm/ractive-transitions-slide@0.4.0/dist/ractive-transitions-slide.umd.js","sourceRoot":"","sourcesContent":["https://cdn.615873.xyz/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ractive-transitions-slide@0.4.0/dist/ractive-transitions-slide.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const DEFAULTS = {\n\tduration: 300,\n\teasing: 'easeInOut'\n};\n\nconst PROPS = [\n\t'height',\n\t'borderTopWidth',\n\t'borderBottomWidth',\n\t'paddingTop',\n\t'paddingBottom',\n\t'marginTop',\n\t'marginBottom'\n];\n\nconst COLLAPSED = {\n\theight: 0,\n\tborderTopWidth: 0,\n\tborderBottomWidth: 0,\n\tpaddingTop: 0,\n\tpaddingBottom: 0,\n\tmarginTop: 0,\n\tmarginBottom: 0\n};\n\nexport default function slide ( t, params ) {\n\tvar targetStyle;\n\n\tparams = t.processParams( params, DEFAULTS );\n\n\tif ( t.isIntro ) {\n\t\ttargetStyle = t.getStyle( PROPS );\n\t\tt.setStyle( COLLAPSED );\n\t} else {\n\t\t// make style explicit, so we're not transitioning to 'auto'\n\t\tt.setStyle( t.getStyle( PROPS ) );\n\t\ttargetStyle = COLLAPSED;\n\t}\n\n\tt.setStyle( 'overflowY', 'hidden' );\n\n\tt.animateStyle( targetStyle, params ).then( t.complete );\n}\n"]}