Best JavaScript code snippet using fast-check-monorepo
shippingfee.js
Source:shippingfee.js
1// shipping fee calculator 2$(document).ready(function() {3 // press enter to submit4 $('html').keypress(function (e) {5 var key = e.which;6 if(key == 13) // the enter key code7 {8 $('input[name = shipping]').click();9 return false; 10 }11 }); 12 // variables 13 var $weight = 0;14 var $distance = 0;15 var $quantity = 0;16 var $cost = 0;17 var $totalWeight = 0;18 var $additional = '';19 var $additionalCost = 0;20 var $totalCost = 0;21 var $lastClass = -1;22 // get åå23 $(".dropdown-menu.åå li").on('click', function(){24 $weight = parseFloat($(this).find('a').data('id'));25 console.log($weight)26 });27 //ãget è¡ãå
28 $(".dropdown-menu.è¡ãå
li").on('click', function(){29 $distance = parseInt($(this).find('a').data('id'));30 $additional = $(this).find('a').data('add');31 // console.log($distance)32 });33 // return shipping fee 34 $("input[name='shipping']").on("click", function(){35 36 /* panda button start */37 // randomly change panda color38 const colorVariations = [39 'blue',40 'green',41 'pink',42 'brown',43 'dark_brown'44 ];45 var $nextClass = Math.floor(Math.random() * 5);46 // ensures no repeat47 while ($nextClass === $lastClass) {48 var $nextClass = Math.floor(Math.random() * 5);49 }50 $('.panda_icon_random').removeClass('blue green pink brown dark_brown')51 .addClass(colorVariations[$nextClass]);52 $lastClass = $nextClass;53 /* panda button end */54 // input values55 $quantity = parseInt($('#æ°é').val());56 // calculate total weight57 $totalWeight = parseFloat($quantity * $weight).toFixed(4);58 /************** data for shipping fee cost **************/59 // calculate cost by distance and weight60 if($distance == 50) {61 switch (true) {62 case ($totalWeight < 20):63 $cost = 700;64 break;65 case($totalWeight < 30):66 $cost = 700;67 break;68 case($totalWeight < 40):69 $cost = 800;70 break;71 case($totalWeight < 60):72 $cost = 900;73 break;74 case($totalWeight < 80):75 $cost = 900;76 break;77 /**/78 case($totalWeight < 100):79 $cost = 1000;80 break;81 case($totalWeight < 120):82 $cost = 1200;83 break;84 case($totalWeight < 140):85 $cost = 1300;86 break;87 case($totalWeight < 160):88 $cost = 1400;89 break;90 case($totalWeight < 180):91 $cost = 1600;92 break;93 /**/94 case($totalWeight < 200):95 $cost = 1700;96 break;97 case($totalWeight < 250):98 $cost = 1700;99 break;100 case($totalWeight < 300):101 $cost = 2000;102 break;103 case($totalWeight < 350):104 $cost = 2300;105 break;106 case($totalWeight < 400):107 $cost = 2600;108 break;109 /**/110 case($totalWeight < 450):111 $cost = 2900;112 break;113 case($totalWeight < 500):114 $cost = 3200;115 break;116 case($totalWeight < 550):117 $cost = 3500;118 break;119 case($totalWeight < 600):120 $cost = 3800;121 break;122 case($totalWeight < 650):123 $cost = 4100;124 break;125 /**/126 case($totalWeight < 700):127 $cost = 4400;128 break;129 case($totalWeight < 750):130 $cost = 4700;131 break;132 case($totalWeight < 800):133 $cost = 5100;134 break;135 case($totalWeight < 850):136 $cost = 5400;137 break;138 case($totalWeight < 900):139 $cost = 5700;140 break;141 /**/142 case($totalWeight < 950):143 $cost = 6000;144 break;145 case($totalWeight < 1000):146 $cost = 6300;147 break;148 case($totalWeight < 1100):149 $cost = 6600;150 break;151 case($totalWeight < 1200):152 $cost = 7900;153 break;154 case($totalWeight < 1300):155 $cost = 8300;156 break;157 /**/158 case($totalWeight < 1400):159 $cost = 8800;160 break;161 case($totalWeight < 1500):162 $cost = 9200;163 break;164 case($totalWeight < 1600):165 $cost = 9600;166 break;167 case($totalWeight < 1700):168 $cost = 10100;169 break;170 case($totalWeight < 1800):171 $cost = 10500;172 break;173 /**/174 case($totalWeight < 1900):175 $cost = 11000;176 break;177 case($totalWeight < 2000):178 $cost = 11400;179 break;180 case($totalWeight >= 2000):181 $cost = 11800;182 break;183 default:184 $cost = "æ°éã number";185 break;186 }187 }188 else if ($distance == 100){189 switch (true){190 case ($totalWeight < 20):191 $cost = 700;192 break;193 case($totalWeight < 30):194 $cost = 700;195 break;196 case($totalWeight < 40):197 $cost = 800;198 break;199 case($totalWeight < 60):200 $cost = 900;201 break;202 case($totalWeight < 80):203 $cost = 900;204 break;205 /**/206 case($totalWeight < 100):207 $cost = 1100;208 break;209 case($totalWeight < 120):210 $cost = 1200;211 break;212 case($totalWeight < 140):213 $cost = 1400;214 break;215 case($totalWeight < 160):216 $cost = 1500;217 break;218 case($totalWeight < 180):219 $cost = 1600;220 break;221 /**/222 case($totalWeight < 200):223 $cost = 1800;224 break;225 case($totalWeight < 250):226 $cost = 1900;227 break;228 case($totalWeight < 300):229 $cost = 2100;230 break;231 case($totalWeight < 350):232 $cost = 2500;233 break;234 case($totalWeight < 400):235 $cost = 2800;236 break;237 /**/238 case($totalWeight < 450):239 $cost = 3200;240 break;241 case($totalWeight < 500):242 $cost = 3500;243 break;244 case($totalWeight < 550):245 $cost = 3800;246 break;247 case($totalWeight < 600):248 $cost = 4200;249 break;250 case($totalWeight < 650):251 $cost = 4500;252 break;253 /**/254 case($totalWeight < 700):255 $cost = 4900;256 break;257 case($totalWeight < 750):258 $cost = 5200;259 break;260 case($totalWeight < 800):261 $cost = 5500;262 break;263 case($totalWeight < 850):264 $cost = 5900;265 break;266 case($totalWeight < 900):267 $cost = 6200;268 break;269 /**/270 case($totalWeight < 950):271 $cost = 6500;272 break;273 case($totalWeight < 1000):274 $cost = 6900;275 break;276 case($totalWeight < 1100):277 $cost = 7200;278 break;279 case($totalWeight < 1200):280 $cost = 8800;281 break;282 case($totalWeight < 1300):283 $cost = 9300;284 break;285 /**/286 case($totalWeight < 1400):287 $cost = 9900;288 break;289 case($totalWeight < 1500):290 $cost = 10400;291 break;292 case($totalWeight < 1600):293 $cost = 11000;294 break;295 case($totalWeight < 1700):296 $cost = 11500;297 break;298 case($totalWeight < 1800):299 $cost = 12100;300 break;301 /**/302 case($totalWeight < 1900):303 $cost = 12600;304 break;305 case($totalWeight < 2000):306 $cost = 13200;307 break;308 case($totalWeight >= 2000):309 $cost = 13700;310 break;311 default:312 $cost = "æ°éãå
¥å number";313 break;314 }315 }316 else if ($distance == 150){317 switch (true){318 case ($totalWeight < 20):319 $cost = 700;320 break;321 case($totalWeight < 30):322 $cost = 800;323 break;324 case($totalWeight < 40):325 $cost = 800;326 break;327 case($totalWeight < 60):328 $cost = 900;329 break;330 case($totalWeight < 80):331 $cost = 1000;332 break;333 /**/334 case($totalWeight < 100):335 $cost = 1200;336 break;337 case($totalWeight < 120):338 $cost = 1300;339 break;340 case($totalWeight < 140):341 $cost = 1500;342 break;343 case($totalWeight < 160):344 $cost = 1600;345 break;346 case($totalWeight < 180):347 $cost = 1800;348 break;349 /**/350 case($totalWeight < 200):351 $cost = 1900;352 break;353 case($totalWeight < 250):354 $cost = 2000;355 break;356 case($totalWeight < 300):357 $cost = 2400;358 break;359 case($totalWeight < 350):360 $cost = 2800;361 break;362 case($totalWeight < 400):363 $cost = 3200;364 break;365 /**/366 case($totalWeight < 450):367 $cost = 3500;368 break;369 case($totalWeight < 500):370 $cost = 3900;371 break;372 case($totalWeight < 550):373 $cost = 4300;374 break;375 case($totalWeight < 600):376 $cost = 4700;377 break;378 case($totalWeight < 650):379 $cost = 5100;380 break;381 /**/382 case($totalWeight < 700):383 $cost = 5400;384 break;385 case($totalWeight < 750):386 $cost = 5900;387 break;388 case($totalWeight < 800):389 $cost = 6300;390 break;391 case($totalWeight < 850):392 $cost = 6600;393 break;394 case($totalWeight < 900):395 $cost = 7000;396 break;397 /**/398 case($totalWeight < 950):399 $cost = 7400;400 break;401 case($totalWeight < 1000):402 $cost = 7800;403 break;404 case($totalWeight < 1100):405 $cost = 8200;406 break;407 case($totalWeight < 1200):408 $cost = 10000;409 break;410 case($totalWeight < 1300):411 $cost = 10700;412 break;413 /**/414 case($totalWeight < 1400):415 $cost = 11400;416 break;417 case($totalWeight < 1500):418 $cost = 12100;419 break;420 case($totalWeight < 1600):421 $cost = 12800;422 break;423 case($totalWeight < 1700):424 $cost = 13500;425 break;426 case($totalWeight < 1800):427 $cost = 14300;428 break;429 /**/430 case($totalWeight < 1900):431 $cost = 15000;432 break;433 case($totalWeight < 2000):434 $cost = 15700;435 break;436 case($totalWeight >= 2000):437 $cost = 16400;438 break;439 default:440 $cost = "æ°éãå
¥åãã¦ãã ãã number";441 break;442 }443 }444 else if ($distance == 200){445 switch (true){446 case ($totalWeight < 20):447 $cost = 700;448 break;449 case($totalWeight < 30):450 $cost = 800;451 break;452 case($totalWeight < 40):453 $cost = 800;454 break;455 case($totalWeight < 60):456 $cost = 1000;457 break;458 case($totalWeight < 80):459 $cost = 1000;460 break;461 /**/462 case($totalWeight < 100):463 $cost = 1200;464 break;465 case($totalWeight < 120):466 $cost = 1400;467 break;468 case($totalWeight < 140):469 $cost = 1600;470 break;471 case($totalWeight < 160):472 $cost = 1800;473 break;474 case($totalWeight < 180):475 $cost = 1900;476 break;477 /**/478 case($totalWeight < 200):479 $cost = 2100;480 break;481 case($totalWeight < 250):482 $cost = 2200;483 break;484 case($totalWeight < 300):485 $cost = 2600;486 break;487 case($totalWeight < 350):488 $cost = 3000;489 break;490 case($totalWeight < 400):491 $cost = 3400;492 break;493 /**/494 case($totalWeight < 450):495 $cost = 3900;496 break;497 case($totalWeight < 500):498 $cost = 4300;499 break;500 case($totalWeight < 550):501 $cost = 4700;502 break;503 case($totalWeight < 600):504 $cost = 5200;505 break;506 case($totalWeight < 650):507 $cost = 5600;508 break;509 /**/510 case($totalWeight < 700):511 $cost = 6100;512 break;513 case($totalWeight < 750):514 $cost = 6500;515 break;516 case($totalWeight < 800):517 $cost = 6900;518 break;519 case($totalWeight < 850):520 $cost = 7300;521 break;522 case($totalWeight < 900):523 $cost = 7800;524 break;525 /**/526 case($totalWeight < 950):527 $cost = 8200;528 break;529 case($totalWeight < 1000):530 $cost = 8600;531 break;532 case($totalWeight < 1100):533 $cost = 9100;534 break;535 case($totalWeight < 1200):536 $cost = 11200;537 break;538 case($totalWeight < 1300):539 $cost = 12000;540 break;541 /**/542 case($totalWeight < 1400):543 $cost = 12900;544 break;545 case($totalWeight < 1500):546 $cost = 13700;547 break;548 case($totalWeight < 1600):549 $cost = 14600;550 break;551 case($totalWeight < 1700):552 $cost = 15400;553 break;554 case($totalWeight < 1800):555 $cost = 16300;556 break;557 /**/558 case($totalWeight < 1900):559 $cost = 17100;560 break;561 case($totalWeight < 2000):562 $cost = 18000;563 break;564 case($totalWeight >= 2000):565 $cost = 18800;566 break;567 default:568 $cost = "æ£ããæ°éãå
¥åãã¦ãã ãã";569 break;570 }571 }572 else if ($distance == 250){573 switch (true){574 case ($totalWeight < 20):575 $cost = 700;576 break;577 case($totalWeight < 30):578 $cost = 800;579 break;580 case($totalWeight < 40):581 $cost = 900;582 break;583 case($totalWeight < 60):584 $cost = 1000;585 break;586 case($totalWeight < 80):587 $cost = 1100;588 break;589 /**/590 case($totalWeight < 100):591 $cost = 1300;592 break;593 case($totalWeight < 120):594 $cost = 1500;595 break;596 case($totalWeight < 140):597 $cost = 1700;598 break;599 case($totalWeight < 160):600 $cost = 1900;601 break;602 case($totalWeight < 180):603 $cost = 2100;604 break;605 /**/606 case($totalWeight < 200):607 $cost = 2300;608 break;609 case($totalWeight < 250):610 $cost = 2400;611 break;612 case($totalWeight < 300):613 $cost = 2800;614 break;615 case($totalWeight < 350):616 $cost = 3300;617 break;618 case($totalWeight < 400):619 $cost = 3800;620 break;621 /**/622 case($totalWeight < 450):623 $cost = 4200;624 break;625 case($totalWeight < 500):626 $cost = 4700;627 break;628 case($totalWeight < 550):629 $cost = 5200;630 break;631 case($totalWeight < 600):632 $cost = 5700;633 break;634 case($totalWeight < 650):635 $cost = 6200;636 break;637 /**/638 case($totalWeight < 700):639 $cost = 6700;640 break;641 case($totalWeight < 750):642 $cost = 7100;643 break;644 case($totalWeight < 800):645 $cost = 7600;646 break;647 case($totalWeight < 850):648 $cost = 8100;649 break;650 case($totalWeight < 900):651 $cost = 8600;652 break;653 /**/654 case($totalWeight < 950):655 $cost = 9000;656 break;657 case($totalWeight < 1000):658 $cost = 9500;659 break;660 case($totalWeight < 1100):661 $cost = 10000;662 break;663 case($totalWeight < 1200):664 $cost = 12400;665 break;666 case($totalWeight < 1300):667 $cost = 13400;668 break;669 /**/670 case($totalWeight < 1400):671 $cost = 14400;672 break;673 case($totalWeight < 1500):674 $cost = 15400;675 break;676 case($totalWeight < 1600):677 $cost = 16400;678 break;679 case($totalWeight < 1700):680 $cost = 17400;681 break;682 case($totalWeight < 1800):683 $cost = 18400;684 break;685 /**/686 case($totalWeight < 1900):687 $cost = 19400;688 break;689 case($totalWeight < 2000):690 $cost = 20400;691 break;692 case($totalWeight >= 2000):693 $cost = 21400;694 break;695 default:696 $cost = "æ°éã";697 break;698 }699 }700 else if ($distance == 300){701 switch (true){702 case ($totalWeight < 20):703 $cost = 700;704 break;705 case($totalWeight < 30):706 $cost = 800;707 break;708 case($totalWeight < 40):709 $cost = 900;710 break;711 case($totalWeight < 60):712 $cost = 1000;713 break;714 case($totalWeight < 80):715 $cost = 1100;716 break;717 /**/718 case($totalWeight < 100):719 $cost = 1400;720 break;721 case($totalWeight < 120):722 $cost = 1600;723 break;724 case($totalWeight < 140):725 $cost = 1800;726 break;727 case($totalWeight < 160):728 $cost = 2000;729 break;730 case($totalWeight < 180):731 $cost = 2200;732 break;733 /**/734 case($totalWeight < 200):735 $cost = 2400;736 break;737 case($totalWeight < 250):738 $cost = 2500;739 break;740 case($totalWeight < 300):741 $cost = 3000;742 break;743 case($totalWeight < 350):744 $cost = 3500;745 break;746 case($totalWeight < 400):747 $cost = 4000;748 break;749 /**/750 case($totalWeight < 450):751 $cost = 4600;752 break;753 case($totalWeight < 500):754 $cost = 5100;755 break;756 case($totalWeight < 550):757 $cost = 5600;758 break;759 case($totalWeight < 600):760 $cost = 6100;761 break;762 case($totalWeight < 650):763 $cost = 6600;764 break;765 /**/766 case($totalWeight < 700):767 $cost = 7200;768 break;769 case($totalWeight < 750):770 $cost = 7700;771 break;772 case($totalWeight < 800):773 $cost = 8200;774 break;775 case($totalWeight < 850):776 $cost = 8700;777 break;778 case($totalWeight < 900):779 $cost = 9200;780 break;781 /**/782 case($totalWeight < 950):783 $cost = 9800;784 break;785 case($totalWeight < 1000):786 $cost = 10300;787 break;788 case($totalWeight < 1100):789 $cost = 10800;790 break;791 case($totalWeight < 1200):792 $cost = 13400;793 break;794 case($totalWeight < 1300):795 $cost = 14500;796 break;797 /**/798 case($totalWeight < 1400):799 $cost = 15600;800 break;801 case($totalWeight < 1500):802 $cost = 16600;803 break;804 case($totalWeight < 1600):805 $cost = 17700;806 break;807 case($totalWeight < 1700):808 $cost = 18800;809 break;810 case($totalWeight < 1800):811 $cost = 19900;812 break;813 /**/814 case($totalWeight < 1900):815 $cost = 21000;816 break;817 case($totalWeight < 2000):818 $cost = 22100;819 break;820 case($totalWeight >= 2000):821 $cost = 23200;822 break;823 default:824 $cost = "æ°éãæ£ããããã¾ããã";825 break;826 }827 }828 else if ($distance == 350){829 switch (true){830 case ($totalWeight < 20):831 $cost = 700;832 break;833 case($totalWeight < 30):834 $cost = 800;835 break;836 case($totalWeight < 40):837 $cost = 900;838 break;839 case($totalWeight < 60):840 $cost = 1000;841 break;842 case($totalWeight < 80):843 $cost = 1200;844 break;845 /**/846 case($totalWeight < 100):847 $cost = 1400;848 break;849 case($totalWeight < 120):850 $cost = 1600;851 break;852 case($totalWeight < 140):853 $cost = 1900;854 break;855 case($totalWeight < 160):856 $cost = 2100;857 break;858 case($totalWeight < 180):859 $cost = 2300;860 break;861 /**/862 case($totalWeight < 200):863 $cost = 2500;864 break;865 case($totalWeight < 250):866 $cost = 2600;867 break;868 case($totalWeight < 300):869 $cost = 3200;870 break;871 case($totalWeight < 350):872 $cost = 3700;873 break;874 case($totalWeight < 400):875 $cost = 4300;876 break;877 /**/878 case($totalWeight < 450):879 $cost = 4800;880 break;881 case($totalWeight < 500):882 $cost = 5400;883 break;884 case($totalWeight < 550):885 $cost = 5900;886 break;887 case($totalWeight < 600):888 $cost = 6500;889 break;890 case($totalWeight < 650):891 $cost = 7100;892 break;893 /**/894 case($totalWeight < 700):895 $cost = 7600;896 break;897 case($totalWeight < 750):898 $cost = 8200;899 break;900 case($totalWeight < 800):901 $cost = 8800;902 break;903 case($totalWeight < 850):904 $cost = 9300;905 break;906 case($totalWeight < 900):907 $cost = 9900;908 break;909 /**/910 case($totalWeight < 950):911 $cost = 10500;912 break;913 case($totalWeight < 1000):914 $cost = 11000;915 break;916 case($totalWeight < 1100):917 $cost = 11600;918 break;919 case($totalWeight < 1200):920 $cost = 14400;921 break;922 case($totalWeight < 1300):923 $cost = 15500;924 break;925 /**/926 case($totalWeight < 1400):927 $cost = 16700;928 break;929 case($totalWeight < 1500):930 $cost = 17900;931 break;932 case($totalWeight < 1600):933 $cost = 19100;934 break;935 case($totalWeight < 1700):936 $cost = 20300;937 break;938 case($totalWeight < 1800):939 $cost = 21400;940 break;941 /**/942 case($totalWeight < 1900):943 $cost = 22600;944 break;945 case($totalWeight < 2000):946 $cost = 23800;947 break;948 case($totalWeight >= 2000):949 $cost = 25000;950 break;951 default:952 $cost = "æ°éãæ£ããããã¾ããã";953 break;954 }955 }956 else if ($distance == 400){957 switch (true){958 case ($totalWeight < 20):959 $cost = 700;960 break;961 case($totalWeight < 30):962 $cost = 800;963 break;964 case($totalWeight < 40):965 $cost = 900;966 break;967 case($totalWeight < 60):968 $cost = 1100;969 break;970 case($totalWeight < 80):971 $cost = 1200;972 break;973 /**/974 case($totalWeight < 100):975 $cost = 1500;976 break;977 case($totalWeight < 120):978 $cost = 1700;979 break;980 case($totalWeight < 140):981 $cost = 2000;982 break;983 case($totalWeight < 160):984 $cost = 2200;985 break;986 case($totalWeight < 180):987 $cost = 2400;988 break;989 /**/990 case($totalWeight < 200):991 $cost = 2700;992 break;993 case($totalWeight < 250):994 $cost = 2800;995 break;996 case($totalWeight < 300):997 $cost = 3400;998 break;999 case($totalWeight < 350):1000 $cost = 4000;1001 break;1002 case($totalWeight < 400):1003 $cost = 4500;1004 break;1005 /**/1006 case($totalWeight < 450):1007 $cost = 5200;1008 break;1009 case($totalWeight < 500):1010 $cost = 5800;1011 break;1012 case($totalWeight < 550):1013 $cost = 6400;1014 break;1015 case($totalWeight < 600):1016 $cost = 7000;1017 break;1018 case($totalWeight < 650):1019 $cost = 7600;1020 break;1021 /**/1022 case($totalWeight < 700):1023 $cost = 8200;1024 break;1025 case($totalWeight < 750):1026 $cost = 8700;1027 break;1028 case($totalWeight < 800):1029 $cost = 9400;1030 break;1031 case($totalWeight < 850):1032 $cost = 10000;1033 break;1034 case($totalWeight < 900):1035 $cost = 10600;1036 break;1037 /**/1038 case($totalWeight < 950):1039 $cost = 11200;1040 break;1041 case($totalWeight < 1000):1042 $cost = 11800;1043 break;1044 case($totalWeight < 1100):1045 $cost = 12400;1046 break;1047 case($totalWeight < 1200):1048 $cost = 15300;1049 break;1050 case($totalWeight < 1300):1051 $cost = 16600;1052 break;1053 /**/1054 case($totalWeight < 1400):1055 $cost = 17900;1056 break;1057 case($totalWeight < 1500):1058 $cost = 19100;1059 break;1060 case($totalWeight < 1600):1061 $cost = 20400;1062 break;1063 case($totalWeight < 1700):1064 $cost = 21700;1065 break;1066 case($totalWeight < 1800):1067 $cost = 23000;1068 break;1069 /**/1070 case($totalWeight < 1900):1071 $cost = 24200;1072 break;1073 case($totalWeight < 2000):1074 $cost = 25500;1075 break;1076 case($totalWeight >= 2000):1077 $cost = 26800;1078 break;1079 default:1080 $cost = "æ°éãæ£ããããã¾ããã";1081 break;1082 }1083 }1084 else if ($distance == 450){1085 switch (true){1086 case ($totalWeight < 20):1087 $cost = 700;1088 break;1089 case($totalWeight < 30):1090 $cost = 800;1091 break;1092 case($totalWeight < 40):1093 $cost = 900;1094 break;1095 case($totalWeight < 60):1096 $cost = 1100;1097 break;1098 case($totalWeight < 80):1099 $cost = 1300;1100 break;1101 /**/1102 case($totalWeight < 100):1103 $cost = 1500;1104 break;1105 case($totalWeight < 120):1106 $cost = 1800;1107 break;1108 case($totalWeight < 140):1109 $cost = 2000;1110 break;1111 case($totalWeight < 160):1112 $cost = 2300;1113 break;1114 case($totalWeight < 180):1115 $cost = 2600;1116 break;1117 /**/1118 case($totalWeight < 200):1119 $cost = 2800;1120 break;1121 case($totalWeight < 250):1122 $cost = 3000;1123 break;1124 case($totalWeight < 300):1125 $cost = 3500;1126 break;1127 case($totalWeight < 350):1128 $cost = 4200;1129 break;1130 case($totalWeight < 400):1131 $cost = 4800;1132 break;1133 /**/1134 case($totalWeight < 450):1135 $cost = 5500;1136 break;1137 case($totalWeight < 500):1138 $cost = 6100;1139 break;1140 case($totalWeight < 550):1141 $cost = 6700;1142 break;1143 case($totalWeight < 600):1144 $cost = 7400;1145 break;1146 case($totalWeight < 650):1147 $cost = 8000;1148 break;1149 /**/1150 case($totalWeight < 700):1151 $cost = 8700;1152 break;1153 case($totalWeight < 750):1154 $cost = 9300;1155 break;1156 case($totalWeight < 800):1157 $cost = 9900;1158 break;1159 case($totalWeight < 850):1160 $cost = 10600;1161 break;1162 case($totalWeight < 900):1163 $cost = 11200;1164 break;1165 /**/1166 case($totalWeight < 950):1167 $cost = 11900;1168 break;1169 case($totalWeight < 1000):1170 $cost = 12500;1171 break;1172 case($totalWeight < 1100):1173 $cost = 13200;1174 break;1175 case($totalWeight < 1200):1176 $cost = 16300;1177 break;1178 case($totalWeight < 1300):1179 $cost = 17700;1180 break;1181 /**/1182 case($totalWeight < 1400):1183 $cost = 19100;1184 break;1185 case($totalWeight < 1500):1186 $cost = 20400;1187 break;1188 case($totalWeight < 1600):1189 $cost = 21800;1190 break;1191 case($totalWeight < 1700):1192 $cost = 23200;1193 break;1194 case($totalWeight < 1800):1195 $cost = 24500;1196 break;1197 /**/1198 case($totalWeight < 1900):1199 $cost = 25900;1200 break;1201 case($totalWeight < 2000):1202 $cost = 27300;1203 break;1204 case($totalWeight >= 2000):1205 $cost = 28600;1206 break;1207 default:1208 $cost = "æ°éãæ£ããããã¾ããã";1209 break;1210 }1211 }1212 else if ($distance == 500){1213 switch (true){1214 case ($totalWeight < 20):1215 $cost = 700;1216 break;1217 case($totalWeight < 30):1218 $cost = 800;1219 break;1220 case($totalWeight < 40):1221 $cost = 900;1222 break;1223 case($totalWeight < 60):1224 $cost = 1100;1225 break;1226 case($totalWeight < 80):1227 $cost = 1300;1228 break;1229 /**/1230 case($totalWeight < 100):1231 $cost = 1600;1232 break;1233 case($totalWeight < 120):1234 $cost = 1900;1235 break;1236 case($totalWeight < 140):1237 $cost = 2100;1238 break;1239 case($totalWeight < 160):1240 $cost = 2400;1241 break;1242 case($totalWeight < 180):1243 $cost = 2700;1244 break;1245 /**/1246 case($totalWeight < 200):1247 $cost = 3000;1248 break;1249 case($totalWeight < 250):1250 $cost = 3100;1251 break;1252 case($totalWeight < 300):1253 $cost = 3700;1254 break;1255 case($totalWeight < 350):1256 $cost = 4400;1257 break;1258 case($totalWeight < 400):1259 $cost = 5000;1260 break;1261 /**/1262 case($totalWeight < 450):1263 $cost = 5800;1264 break;1265 case($totalWeight < 500):1266 $cost = 6400;1267 break;1268 case($totalWeight < 550):1269 $cost = 7100;1270 break;1271 case($totalWeight < 600):1272 $cost = 7800;1273 break;1274 case($totalWeight < 650):1275 $cost = 8500;1276 break;1277 /**/1278 case($totalWeight < 700):1279 $cost = 9200;1280 break;1281 case($totalWeight < 750):1282 $cost = 9800;1283 break;1284 case($totalWeight < 800):1285 $cost = 10500;1286 break;1287 case($totalWeight < 850):1288 $cost = 11200;1289 break;1290 case($totalWeight < 900):1291 $cost = 11900;1292 break;1293 /**/1294 case($totalWeight < 950):1295 $cost = 12600;1296 break;1297 case($totalWeight < 1000):1298 $cost = 13330;1299 break;1300 case($totalWeight < 1100):1301 $cost = 13900;1302 break;1303 case($totalWeight < 1200):1304 $cost = 17300;1305 break;1306 case($totalWeight < 1300):1307 $cost = 18800;1308 break;1309 /**/1310 case($totalWeight < 1400):1311 $cost = 20200;1312 break;1313 case($totalWeight < 1500):1314 $cost = 21700;1315 break;1316 case($totalWeight < 1600):1317 $cost = 23100;1318 break;1319 case($totalWeight < 1700):1320 $cost = 24600;1321 break;1322 case($totalWeight < 1800):1323 $cost = 26100;1324 break;1325 /**/1326 case($totalWeight < 1900):1327 $cost = 27500;1328 break;1329 case($totalWeight < 2000):1330 $cost = 29000;1331 break;1332 case($totalWeight >= 2000):1333 $cost = 30400;1334 break;1335 default:1336 $cost = "æ°éãæ£ããããã¾ããã";1337 break;1338 }1339 }1340 else if ($distance == 550){1341 switch (true){1342 case ($totalWeight < 20):1343 $cost = 700;1344 break;1345 case($totalWeight < 30):1346 $cost = 900;1347 break;1348 case($totalWeight < 40):1349 $cost = 900;1350 break;1351 case($totalWeight < 60):1352 $cost = 1200;1353 break;1354 case($totalWeight < 80):1355 $cost = 1300;1356 break;1357 /**/1358 case($totalWeight < 100):1359 $cost = 1700;1360 break;1361 case($totalWeight < 120):1362 $cost = 1900;1363 break;1364 case($totalWeight < 140):1365 $cost = 2200;1366 break;1367 case($totalWeight < 160):1368 $cost = 2500;1369 break;1370 case($totalWeight < 180):1371 $cost = 2800;1372 break;1373 /**/1374 case($totalWeight < 200):1375 $cost = 3100;1376 break;1377 case($totalWeight < 250):1378 $cost = 3300;1379 break;1380 case($totalWeight < 300):1381 $cost = 3900;1382 break;1383 case($totalWeight < 350):1384 $cost = 4600;1385 break;1386 case($totalWeight < 400):1387 $cost = 5300;1388 break;1389 /**/1390 case($totalWeight < 450):1391 $cost = 6100;1392 break;1393 case($totalWeight < 500):1394 $cost = 6800;1395 break;1396 case($totalWeight < 550):1397 $cost = 7500;1398 break;1399 case($totalWeight < 600):1400 $cost = 8200;1401 break;1402 case($totalWeight < 650):1403 $cost = 8900;1404 break;1405 /**/1406 case($totalWeight < 700):1407 $cost = 9700;1408 break;1409 case($totalWeight < 750):1410 $cost = 10400;1411 break;1412 case($totalWeight < 800):1413 $cost = 11100;1414 break;1415 case($totalWeight < 850):1416 $cost = 11800;1417 break;1418 case($totalWeight < 900):1419 $cost = 12600;1420 break;1421 /**/1422 case($totalWeight < 950):1423 $cost = 13300;1424 break;1425 case($totalWeight < 1000):1426 $cost = 14000;1427 break;1428 case($totalWeight < 1100):1429 $cost = 14700;1430 break;1431 case($totalWeight < 1200):1432 $cost = 18300;1433 break;1434 case($totalWeight < 1300):1435 $cost = 19900;1436 break;1437 /**/1438 case($totalWeight < 1400):1439 $cost = 21400;1440 break;1441 case($totalWeight < 1500):1442 $cost = 23000;1443 break;1444 case($totalWeight < 1600):1445 $cost = 24500;1446 break;1447 case($totalWeight < 1700):1448 $cost = 26100;1449 break;1450 case($totalWeight < 1800):1451 $cost = 27600;1452 break;1453 /**/1454 case($totalWeight < 1900):1455 $cost = 29200;1456 break;1457 case($totalWeight < 2000):1458 $cost = 30700;1459 break;1460 case($totalWeight >= 2000):1461 $cost = 32300;1462 break;1463 default:1464 $cost = "æ°éãæ£ããããã¾ããã";1465 break;1466 }1467 }1468 else if ($distance == 600){1469 switch (true){1470 case ($totalWeight < 20):1471 $cost = 700;1472 break;1473 case($totalWeight < 30):1474 $cost = 900;1475 break;1476 case($totalWeight < 40):1477 $cost = 1000;1478 break;1479 case($totalWeight < 60):1480 $cost = 1200;1481 break;1482 case($totalWeight < 80):1483 $cost = 1400;1484 break;1485 /**/1486 case($totalWeight < 100):1487 $cost = 1700;1488 break;1489 case($totalWeight < 120):1490 $cost = 2000;1491 break;1492 case($totalWeight < 140):1493 $cost = 2300;1494 break;1495 case($totalWeight < 160):1496 $cost = 2600;1497 break;1498 case($totalWeight < 180):1499 $cost = 2900;1500 break;1501 /**/1502 case($totalWeight < 200):1503 $cost = 3200;1504 break;1505 case($totalWeight < 250):1506 $cost = 3400;1507 break;1508 case($totalWeight < 300):1509 $cost = 4100;1510 break;1511 case($totalWeight < 350):1512 $cost = 4800;1513 break;1514 case($totalWeight < 400):1515 $cost = 5600;1516 break;1517 /**/1518 case($totalWeight < 450):1519 $cost = 6400;1520 break;1521 case($totalWeight < 500):1522 $cost = 7100;1523 break;1524 case($totalWeight < 550):1525 $cost = 7900;1526 break;1527 case($totalWeight < 600):1528 $cost = 8600;1529 break;1530 case($totalWeight < 650):1531 $cost = 9400;1532 break;1533 /**/1534 case($totalWeight < 700):1535 $cost = 10200;1536 break;1537 case($totalWeight < 750):1538 $cost = 10900;1539 break;1540 case($totalWeight < 800):1541 $cost = 11700;1542 break;1543 case($totalWeight < 850):1544 $cost = 12500;1545 break;1546 case($totalWeight < 900):1547 $cost = 13200;1548 break;1549 /**/1550 case($totalWeight < 950):1551 $cost = 14000;1552 break;1553 case($totalWeight < 1000):1554 $cost = 14700;1555 break;1556 case($totalWeight < 1100):1557 $cost = 15500;1558 break;1559 case($totalWeight < 1200):1560 $cost = 19300;1561 break;1562 case($totalWeight < 1300):1563 $cost = 20900;1564 break;1565 /**/1566 case($totalWeight < 1400):1567 $cost = 22600;1568 break;1569 case($totalWeight < 1500):1570 $cost = 24200;1571 break;1572 case($totalWeight < 1600):1573 $cost = 25800;1574 break;1575 case($totalWeight < 1700):1576 $cost = 27500;1577 break;1578 case($totalWeight < 1800):1579 $cost = 29100;1580 break;1581 /**/1582 case($totalWeight < 1900):1583 $cost = 30800;1584 break;1585 case($totalWeight < 2000):1586 $cost = 32400;1587 break;1588 case($totalWeight >= 2000):1589 $cost = 34100;1590 break;1591 default:1592 $cost = "æ°éãæ£ããããã¾ããã";1593 break;1594 }1595 }1596 else if ($distance == 650){1597 switch (true){1598 case ($totalWeight < 20):1599 $cost = 800;1600 break;1601 case($totalWeight < 30):1602 $cost = 1000;1603 break;1604 case($totalWeight < 40):1605 $cost = 1100;1606 break;1607 case($totalWeight < 60):1608 $cost = 1400;1609 break;1610 case($totalWeight < 80):1611 $cost = 1600;1612 break;1613 /**/1614 case($totalWeight < 100):1615 $cost = 2000;1616 break;1617 case($totalWeight < 120):1618 $cost = 2400;1619 break;1620 case($totalWeight < 140):1621 $cost = 2700;1622 break;1623 case($totalWeight < 160):1624 $cost = 3100;1625 break;1626 case($totalWeight < 180):1627 $cost = 3500;1628 break;1629 /**/1630 case($totalWeight < 200):1631 $cost = 3800;1632 break;1633 case($totalWeight < 250):1634 $cost = 4000;1635 break;1636 case($totalWeight < 300):1637 $cost = 4800;1638 break;1639 case($totalWeight < 350):1640 $cost = 5800;1641 break;1642 case($totalWeight < 400):1643 $cost = 6700;1644 break;1645 /**/1646 case($totalWeight < 450):1647 $cost = 7600;1648 break;1649 case($totalWeight < 500):1650 $cost = 8500;1651 break;1652 case($totalWeight < 550):1653 $cost = 9400;1654 break;1655 case($totalWeight < 600):1656 $cost = 10300;1657 break;1658 case($totalWeight < 650):1659 $cost = 11200;1660 break;1661 /**/1662 case($totalWeight < 700):1663 $cost = 12100;1664 break;1665 case($totalWeight < 750):1666 $cost = 13100;1667 break;1668 case($totalWeight < 800):1669 $cost = 14000;1670 break;1671 case($totalWeight < 850):1672 $cost = 14900;1673 break;1674 case($totalWeight < 900):1675 $cost = 15800;1676 break;1677 /**/1678 case($totalWeight < 950):1679 $cost = 16700;1680 break;1681 case($totalWeight < 1000):1682 $cost = 17600;1683 break;1684 case($totalWeight < 1100):1685 $cost = 18500;1686 break;1687 case($totalWeight < 1200):1688 $cost = 20300;1689 break;1690 case($totalWeight < 1300):1691 $cost = 22000;1692 break;1693 /**/1694 case($totalWeight < 1400):1695 $cost = 23700;1696 break;1697 case($totalWeight < 1500):1698 $cost = 25500;1699 break;1700 case($totalWeight < 1600):1701 $cost = 27200;1702 break;1703 case($totalWeight < 1700):1704 $cost = 28900;1705 break;1706 case($totalWeight < 1800):1707 $cost = 30700;1708 break;1709 /**/1710 case($totalWeight < 1900):1711 $cost = 32400;1712 break;1713 case($totalWeight < 2000):1714 $cost = 34100;1715 break;1716 case($totalWeight >= 2000):1717 $cost = 35900;1718 break;1719 default:1720 $cost = "æ°éãæ£ããããã¾ããã";1721 break;1722 }1723 }1724 else if ($distance == 700){1725 switch (true){1726 case ($totalWeight < 20):1727 $cost = 800;1728 break;1729 case($totalWeight < 30):1730 $cost = 1000;1731 break;1732 case($totalWeight < 40):1733 $cost = 1100;1734 break;1735 case($totalWeight < 60):1736 $cost = 1400;1737 break;1738 case($totalWeight < 80):1739 $cost = 1600;1740 break;1741 /**/1742 case($totalWeight < 100):1743 $cost = 2100;1744 break;1745 case($totalWeight < 120):1746 $cost = 2500;1747 break;1748 case($totalWeight < 140):1749 $cost = 2800;1750 break;1751 case($totalWeight < 160):1752 $cost = 3200;1753 break;1754 case($totalWeight < 180):1755 $cost = 3600;1756 break;1757 /**/1758 case($totalWeight < 200):1759 $cost = 4000;1760 break;1761 case($totalWeight < 250):1762 $cost = 4200;1763 break;1764 case($totalWeight < 300):1765 $cost = 5000;1766 break;1767 case($totalWeight < 350):1768 $cost = 6000;1769 break;1770 case($totalWeight < 400):1771 $cost = 7000;1772 break;1773 /**/1774 case($totalWeight < 450):1775 $cost = 7900;1776 break;1777 case($totalWeight < 500):1778 $cost = 8900;1779 break;1780 case($totalWeight < 550):1781 $cost = 9800;1782 break;1783 case($totalWeight < 600):1784 $cost = 10800;1785 break;1786 case($totalWeight < 650):1787 $cost = 11800;1788 break;1789 /**/1790 case($totalWeight < 700):1791 $cost = 12700;1792 break;1793 case($totalWeight < 750):1794 $cost = 13700;1795 break;1796 case($totalWeight < 800):1797 $cost = 14600;1798 break;1799 case($totalWeight < 850):1800 $cost = 15600;1801 break;1802 case($totalWeight < 900):1803 $cost = 16600;1804 break;1805 /**/1806 case($totalWeight < 950):1807 $cost = 17500;1808 break;1809 case($totalWeight < 1000):1810 $cost = 18500;1811 break;1812 case($totalWeight < 1100):1813 $cost = 19400;1814 break;1815 case($totalWeight < 1200):1816 $cost = 21300;1817 break;1818 case($totalWeight < 1300):1819 $cost = 23100;1820 break;1821 /**/1822 case($totalWeight < 1400):1823 $cost = 24900;1824 break;1825 case($totalWeight < 1500):1826 $cost = 26700;1827 break;1828 case($totalWeight < 1600):1829 $cost = 28600;1830 break;1831 case($totalWeight < 1700):1832 $cost = 30400;1833 break;1834 case($totalWeight < 1800):1835 $cost = 32200;1836 break;1837 /**/1838 case($totalWeight < 1900):1839 $cost = 34000;1840 break;1841 case($totalWeight < 2000):1842 $cost = 35900;1843 break;1844 case($totalWeight >= 2000):1845 $cost = 37700;1846 break;1847 default:1848 $cost = "æ°éãæ£ããããã¾ããã";1849 break;1850 }1851 }1852 else if ($distance == 750){1853 switch (true){1854 case ($totalWeight < 20):1855 $cost = 800;1856 break;1857 case($totalWeight < 30):1858 $cost = 1000;1859 break;1860 case($totalWeight < 40):1861 $cost = 1200;1862 break;1863 case($totalWeight < 60):1864 $cost = 1400;1865 break;1866 case($totalWeight < 80):1867 $cost = 1700;1868 break;1869 /**/1870 case($totalWeight < 100):1871 $cost = 2100;1872 break;1873 case($totalWeight < 120):1874 $cost = 2500;1875 break;1876 case($totalWeight < 140):1877 $cost = 2900;1878 break;1879 case($totalWeight < 160):1880 $cost = 3300;1881 break;1882 case($totalWeight < 180):1883 $cost = 3700;1884 break;1885 /**/1886 case($totalWeight < 200):1887 $cost = 4100;1888 break;1889 case($totalWeight < 250):1890 $cost = 4400;1891 break;1892 case($totalWeight < 300):1893 $cost = 5300;1894 break;1895 case($totalWeight < 350):1896 $cost = 6300;1897 break;1898 case($totalWeight < 400):1899 $cost = 7300;1900 break;1901 /**/1902 case($totalWeight < 450):1903 $cost = 8300;1904 break;1905 case($totalWeight < 500):1906 $cost = 9300;1907 break;1908 case($totalWeight < 550):1909 $cost = 10300;1910 break;1911 case($totalWeight < 600):1912 $cost = 11300;1913 break;1914 case($totalWeight < 650):1915 $cost = 12300;1916 break;1917 /**/1918 case($totalWeight < 700):1919 $cost = 13300;1920 break;1921 case($totalWeight < 750):1922 $cost = 14300;1923 break;1924 case($totalWeight < 800):1925 $cost = 15300;1926 break;1927 case($totalWeight < 850):1928 $cost = 16300;1929 break;1930 case($totalWeight < 900):1931 $cost = 17300;1932 break;1933 /**/1934 case($totalWeight < 950):1935 $cost = 18300;1936 break;1937 case($totalWeight < 1000):1938 $cost = 19300;1939 break;1940 case($totalWeight < 1100):1941 $cost = 20300;1942 break;1943 case($totalWeight < 1200):1944 $cost = 22200;1945 break;1946 case($totalWeight < 1300):1947 $cost = 24200;1948 break;1949 /**/1950 case($totalWeight < 1400):1951 $cost = 26100;1952 break;1953 case($totalWeight < 1500):1954 $cost = 28000;1955 break;1956 case($totalWeight < 1600):1957 $cost = 29900;1958 break;1959 case($totalWeight < 1700):1960 $cost = 31800;1961 break;1962 case($totalWeight < 1800):1963 $cost = 33700;1964 break;1965 /**/1966 case($totalWeight < 1900):1967 $cost = 35700;1968 break;1969 case($totalWeight < 2000):1970 $cost = 37600;1971 break;1972 case($totalWeight >= 2000):1973 $cost = 39500;1974 break;1975 default:1976 $cost = "æ°éãæ£ããããã¾ããã";1977 break;1978 }1979 }1980 else if ($distance == 800){1981 switch (true){1982 case ($totalWeight < 20):1983 $cost = 800;1984 break;1985 case($totalWeight < 30):1986 $cost = 1000;1987 break;1988 case($totalWeight < 40):1989 $cost = 1200;1990 break;1991 case($totalWeight < 60):1992 $cost = 1500;1993 break;1994 case($totalWeight < 80):1995 $cost = 1700;1996 break;1997 /**/1998 case($totalWeight < 100):1999 $cost = 2200;2000 break;2001 case($totalWeight < 120):2002 $cost = 2600;2003 break;2004 case($totalWeight < 140):2005 $cost = 3000;2006 break;2007 case($totalWeight < 160):2008 $cost = 3500;2009 break;2010 case($totalWeight < 180):2011 $cost = 3900;2012 break;2013 /**/2014 case($totalWeight < 200):2015 $cost = 4300;2016 break;2017 case($totalWeight < 250):2018 $cost = 4500;2019 break;2020 case($totalWeight < 300):2021 $cost = 5500;2022 break;2023 case($totalWeight < 350):2024 $cost = 6500;2025 break;2026 case($totalWeight < 400):2027 $cost = 7500;2028 break;2029 /**/2030 case($totalWeight < 450):2031 $cost = 8600;2032 break;2033 case($totalWeight < 500):2034 $cost = 9700;2035 break;2036 case($totalWeight < 550):2037 $cost = 10700;2038 break;2039 case($totalWeight < 600):2040 $cost = 11800;2041 break;2042 case($totalWeight < 650):2043 $cost = 12800;2044 break;2045 /**/2046 case($totalWeight < 700):2047 $cost = 13900;2048 break;2049 case($totalWeight < 750):2050 $cost = 14900;2051 break;2052 case($totalWeight < 800):2053 $cost = 16000;2054 break;2055 case($totalWeight < 850):2056 $cost = 17000;2057 break;2058 case($totalWeight < 900):2059 $cost = 18100;2060 break;2061 /**/2062 case($totalWeight < 950):2063 $cost = 19100;2064 break;2065 case($totalWeight < 1000):2066 $cost = 20200;2067 break;2068 case($totalWeight < 1100):2069 $cost = 21200;2070 break;2071 case($totalWeight < 1200):2072 $cost = 23200;2073 break;2074 case($totalWeight < 1300):2075 $cost = 25200;2076 break;2077 /**/2078 case($totalWeight < 1400):2079 $cost = 27300;2080 break;2081 case($totalWeight < 1500):2082 $cost = 29300;2083 break;2084 case($totalWeight < 1600):2085 $cost = 31300;2086 break;2087 case($totalWeight < 1700):2088 $cost = 33300;2089 break;2090 case($totalWeight < 1800):2091 $cost = 35300;2092 break;2093 /**/2094 case($totalWeight < 1900):2095 $cost = 37300;2096 break;2097 case($totalWeight < 2000):2098 $cost = 39300;2099 break;2100 case($totalWeight >= 2000):2101 $cost = 41300;2102 break;2103 default:2104 $cost = "æ°éãæ£ããããã¾ããã";2105 break;2106 }2107 }2108 else if ($distance == 850){2109 switch (true){2110 case ($totalWeight < 20):2111 $cost = 800;2112 break;2113 case($totalWeight < 30):2114 $cost = 1100;2115 break;2116 case($totalWeight < 40):2117 $cost = 1200;2118 break;2119 case($totalWeight < 60):2120 $cost = 1500;2121 break;2122 case($totalWeight < 80):2123 $cost = 1800;2124 break;2125 /**/2126 case($totalWeight < 100):2127 $cost = 2300;2128 break;2129 case($totalWeight < 120):2130 $cost = 2700;2131 break;2132 case($totalWeight < 140):2133 $cost = 3100;2134 break;2135 case($totalWeight < 160):2136 $cost = 3600;2137 break;2138 case($totalWeight < 180):2139 $cost = 4000;2140 break;2141 /**/2142 case($totalWeight < 200):2143 $cost = 4500;2144 break;2145 case($totalWeight < 250):2146 $cost = 4700;2147 break;2148 case($totalWeight < 300):2149 $cost = 5700;2150 break;2151 case($totalWeight < 350):2152 $cost = 6800;2153 break;2154 case($totalWeight < 400):2155 $cost = 7800;2156 break;2157 /**/2158 case($totalWeight < 450):2159 $cost = 9000;2160 break;2161 case($totalWeight < 500):2162 $cost = 10100;2163 break;2164 case($totalWeight < 550):2165 $cost = 11100;2166 break;2167 case($totalWeight < 600):2168 $cost = 12200;2169 break;2170 case($totalWeight < 650):2171 $cost = 13300;2172 break;2173 /**/2174 case($totalWeight < 700):2175 $cost = 14400;2176 break;2177 case($totalWeight < 750):2178 $cost = 15500;2179 break;2180 case($totalWeight < 800):2181 $cost = 16600;2182 break;2183 case($totalWeight < 850):2184 $cost = 17700;2185 break;2186 case($totalWeight < 900):2187 $cost = 18800;2188 break;2189 /**/2190 case($totalWeight < 950):2191 $cost = 19900;2192 break;2193 case($totalWeight < 1000):2194 $cost = 21000;2195 break;2196 case($totalWeight < 1100):2197 $cost = 22100;2198 break;2199 case($totalWeight < 1200):2200 $cost = 24200;2201 break;2202 case($totalWeight < 1300):2203 $cost = 26300;2204 break;2205 /**/2206 case($totalWeight < 1400):2207 $cost = 28400;2208 break;2209 case($totalWeight < 1500):2210 $cost = 30500;2211 break;2212 case($totalWeight < 1600):2213 $cost = 32600;2214 break;2215 case($totalWeight < 1700):2216 $cost = 34700;2217 break;2218 case($totalWeight < 1800):2219 $cost = 36800;2220 break;2221 /**/2222 case($totalWeight < 1900):2223 $cost = 38900;2224 break;2225 case($totalWeight < 2000):2226 $cost = 41000;2227 break;2228 case($totalWeight >= 2000):2229 $cost = 43100;2230 break;2231 default:2232 $cost = "æ°éãæ£ããããã¾ããã";2233 break;2234 }2235 }2236 else if ($distance == 900){2237 switch (true){2238 case ($totalWeight < 20):2239 $cost = 800;2240 break;2241 case($totalWeight < 30):2242 $cost = 1100;2243 break;2244 case($totalWeight < 40):2245 $cost = 1200;2246 break;2247 case($totalWeight < 60):2248 $cost = 1500;2249 break;2250 case($totalWeight < 80):2251 $cost = 1800;2252 break;2253 /**/2254 case($totalWeight < 100):2255 $cost = 2300;2256 break;2257 case($totalWeight < 120):2258 $cost = 2800;2259 break;2260 case($totalWeight < 140):2261 $cost = 3200;2262 break;2263 case($totalWeight < 160):2264 $cost = 3700;2265 break;2266 case($totalWeight < 180):2267 $cost = 4200;2268 break;2269 /**/2270 case($totalWeight < 200):2271 $cost = 4600;2272 break;2273 case($totalWeight < 250):2274 $cost = 4900;2275 break;2276 case($totalWeight < 300):2277 $cost = 5900;2278 break;2279 case($totalWeight < 350):2280 $cost = 7000;2281 break;2282 case($totalWeight < 400):2283 $cost = 8100;2284 break;2285 /**/2286 case($totalWeight < 450):2287 $cost = 9300;2288 break;2289 case($totalWeight < 500):2290 $cost = 10400;2291 break;2292 case($totalWeight < 550):2293 $cost = 11600;2294 break;2295 case($totalWeight < 600):2296 $cost = 12700;2297 break;2298 case($totalWeight < 650):2299 $cost = 13900;2300 break;2301 /**/2302 case($totalWeight < 700):2303 $cost = 15000;2304 break;2305 case($totalWeight < 750):2306 $cost = 16200;2307 break;2308 case($totalWeight < 800):2309 $cost = 17300;2310 break;2311 case($totalWeight < 850):2312 $cost = 18400;2313 break;2314 case($totalWeight < 900):2315 $cost = 19600;2316 break;2317 /**/2318 case($totalWeight < 950):2319 $cost = 20700;2320 break;2321 case($totalWeight < 1000):2322 $cost = 21900;2323 break;2324 case($totalWeight < 1100):2325 $cost = 23000;2326 break;2327 case($totalWeight < 1200):2328 $cost = 25200;2329 break;2330 case($totalWeight < 1300):2331 $cost = 27400;2332 break;2333 /**/2334 case($totalWeight < 1400):2335 $cost = 29600;2336 break;2337 case($totalWeight < 1500):2338 $cost = 31800;2339 break;2340 case($totalWeight < 1600):2341 $cost = 34000;2342 break;2343 case($totalWeight < 1700):2344 $cost = 36200;2345 break;2346 case($totalWeight < 1800):2347 $cost = 38400;2348 break;2349 /**/2350 case($totalWeight < 1900):2351 $cost = 40600;2352 break;2353 case($totalWeight < 2000):2354 $cost = 42800;2355 break;2356 case($totalWeight >= 2000):2357 $cost = 45000;2358 break;2359 default:2360 $cost = "æ°éãæ£ããããã¾ããã";2361 break;2362 }2363 }2364 else if ($distance == 950){2365 switch (true){2366 case ($totalWeight < 20):2367 $cost = 800;2368 break;2369 case($totalWeight < 30):2370 $cost = 1100;2371 break;2372 case($totalWeight < 40):2373 $cost = 1200;2374 break;2375 case($totalWeight < 60):2376 $cost = 1600;2377 break;2378 case($totalWeight < 80):2379 $cost = 1900;2380 break;2381 /**/2382 case($totalWeight < 100):2383 $cost = 2400;2384 break;2385 case($totalWeight < 120):2386 $cost = 2900;2387 break;2388 case($totalWeight < 140):2389 $cost = 3300;2390 break;2391 case($totalWeight < 160):2392 $cost = 3800;2393 break;2394 case($totalWeight < 180):2395 $cost = 4300;2396 break;2397 /**/2398 case($totalWeight < 200):2399 $cost = 4800;2400 break;2401 case($totalWeight < 250):2402 $cost = 5000;2403 break;2404 case($totalWeight < 300):2405 $cost = 6100;2406 break;2407 case($totalWeight < 350):2408 $cost = 7300;2409 break;2410 case($totalWeight < 400):2411 $cost = 8400;2412 break;2413 /**/2414 case($totalWeight < 450):2415 $cost = 9600;2416 break;2417 case($totalWeight < 500):2418 $cost = 10800;2419 break;2420 case($totalWeight < 550):2421 $cost = 12000;2422 break;2423 case($totalWeight < 600):2424 $cost = 13200;2425 break;2426 case($totalWeight < 650):2427 $cost = 14400;2428 break;2429 /**/2430 case($totalWeight < 700):2431 $cost = 15600;2432 break;2433 case($totalWeight < 750):2434 $cost = 16800;2435 break;2436 case($totalWeight < 800):2437 $cost = 18000;2438 break;2439 case($totalWeight < 850):2440 $cost = 19100;2441 break;2442 case($totalWeight < 900):2443 $cost = 20300;2444 break;2445 /**/2446 case($totalWeight < 950):2447 $cost = 21500;2448 break;2449 case($totalWeight < 1000):2450 $cost = 22700;2451 break;2452 case($totalWeight < 1100):2453 $cost = 23900;2454 break;2455 case($totalWeight < 1200):2456 $cost = 26200;2457 break;2458 case($totalWeight < 1300):2459 $cost = 28500;2460 break;2461 /**/2462 case($totalWeight < 1400):2463 $cost = 30800;2464 break;2465 case($totalWeight < 1500):2466 $cost = 33100;2467 break;2468 case($totalWeight < 1600):2469 $cost = 35300;2470 break;2471 case($totalWeight < 1700):2472 $cost = 37600;2473 break;2474 case($totalWeight < 1800):2475 $cost = 39900;2476 break;2477 /**/2478 case($totalWeight < 1900):2479 $cost = 42200;2480 break;2481 case($totalWeight < 2000):2482 $cost = 44500;2483 break;2484 case($totalWeight >= 2000):2485 $cost = 46800;2486 break;2487 default:2488 $cost = "æ°éãæ£ããããã¾ããã";2489 break;2490 }2491 }2492 else if ($distance == 1000){2493 switch (true){2494 case ($totalWeight < 20):2495 $cost = 800;2496 break;2497 case($totalWeight < 30):2498 $cost = 1100;2499 break;2500 case($totalWeight < 40):2501 $cost = 1300;2502 break;2503 case($totalWeight < 60):2504 $cost = 1600;2505 break;2506 case($totalWeight < 80):2507 $cost = 1900;2508 break;2509 /**/2510 case($totalWeight < 100):2511 $cost = 2500;2512 break;2513 case($totalWeight < 120):2514 $cost = 3000;2515 break;2516 case($totalWeight < 140):2517 $cost = 3400;2518 break;2519 case($totalWeight < 160):2520 $cost = 3900;2521 break;2522 case($totalWeight < 180):2523 $cost = 4400;2524 break;2525 /**/2526 case($totalWeight < 200):2527 $cost = 4900;2528 break;2529 case($totalWeight < 250):2530 $cost = 5200;2531 break;2532 case($totalWeight < 300):2533 $cost = 6300;2534 break;2535 case($totalWeight < 350):2536 $cost = 7500;2537 break;2538 case($totalWeight < 400):2539 $cost = 8700;2540 break;2541 /**/2542 case($totalWeight < 450):2543 $cost = 10000;2544 break;2545 case($totalWeight < 500):2546 $cost = 11200;2547 break;2548 case($totalWeight < 550):2549 $cost = 12500;2550 break;2551 case($totalWeight < 600):2552 $cost = 13700;2553 break;2554 case($totalWeight < 650):2555 $cost = 14900;2556 break;2557 /**/2558 case($totalWeight < 700):2559 $cost = 16200;2560 break;2561 case($totalWeight < 750):2562 $cost = 17400;2563 break;2564 case($totalWeight < 800):2565 $cost = 18600;2566 break;2567 case($totalWeight < 850):2568 $cost = 19900;2569 break;2570 case($totalWeight < 900):2571 $cost = 21100;2572 break;2573 /**/2574 case($totalWeight < 950):2575 $cost = 22300;2576 break;2577 case($totalWeight < 1000):2578 $cost = 23600;2579 break;2580 case($totalWeight < 1100):2581 $cost = 24800;2582 break;2583 case($totalWeight < 1200):2584 $cost = 27200;2585 break;2586 case($totalWeight < 1300):2587 $cost = 29500;2588 break;2589 /**/2590 case($totalWeight < 1400):2591 $cost = 31900;2592 break;2593 case($totalWeight < 1500):2594 $cost = 34300;2595 break;2596 case($totalWeight < 1600):2597 $cost = 36700;2598 break;2599 case($totalWeight < 1700):2600 $cost = 39100;2601 break;2602 case($totalWeight < 1800):2603 $cost = 41400;2604 break;2605 /**/2606 case($totalWeight < 1900):2607 $cost = 43800;2608 break;2609 case($totalWeight < 2000):2610 $cost = 46200;2611 break;2612 case($totalWeight >= 2000):2613 $cost = 48600;2614 break;2615 default:2616 $cost = "æ°éãæ£ããããã¾ããã";2617 break;2618 }2619 }2620 else if ($distance == 1100){2621 switch (true){2622 case ($totalWeight < 20):2623 $cost = 1000;2624 break;2625 case($totalWeight < 30):2626 $cost = 1400;2627 break;2628 case($totalWeight < 40):2629 $cost = 1600;2630 break;2631 case($totalWeight < 60):2632 $cost = 2000;2633 break;2634 case($totalWeight < 80):2635 $cost = 2400;2636 break;2637 /**/2638 case($totalWeight < 100):2639 $cost = 3100;2640 break;2641 case($totalWeight < 120):2642 $cost = 3800;2643 break;2644 case($totalWeight < 140):2645 $cost = 4400;2646 break;2647 case($totalWeight < 160):2648 $cost = 5100;2649 break;2650 case($totalWeight < 180):2651 $cost = 5700;2652 break;2653 /**/2654 case($totalWeight < 200):2655 $cost = 6400;2656 break;2657 case($totalWeight < 250):2658 $cost = 6700;2659 break;2660 case($totalWeight < 300):2661 $cost = 8100;2662 break;2663 case($totalWeight < 350):2664 $cost = 9700;2665 break;2666 case($totalWeight < 400):2667 $cost = 11300;2668 break;2669 /**/2670 case($totalWeight < 450):2671 $cost = 13000;2672 break;2673 case($totalWeight < 500):2674 $cost = 14600;2675 break;2676 case($totalWeight < 550):2677 $cost = 16200;2678 break;2679 case($totalWeight < 600):2680 $cost = 17800;2681 break;2682 case($totalWeight < 650):2683 $cost = 19400;2684 break;2685 /**/2686 case($totalWeight < 700):2687 $cost = 21000;2688 break;2689 case($totalWeight < 750):2690 $cost = 22600;2691 break;2692 case($totalWeight < 800):2693 $cost = 24300;2694 break;2695 case($totalWeight < 850):2696 $cost = 25900;2697 break;2698 case($totalWeight < 900):2699 $cost = 27500;2700 break;2701 /**/2702 case($totalWeight < 950):2703 $cost = 29100;2704 break;2705 case($totalWeight < 1000):2706 $cost = 30700;2707 break;2708 case($totalWeight < 1100):2709 $cost = 32300;2710 break;2711 case($totalWeight < 1200):2712 $cost = 35400;2713 break;2714 case($totalWeight < 1300):2715 $cost = 38500;2716 break;2717 /**/2718 case($totalWeight < 1400):2719 $cost = 41700;2720 break;2721 case($totalWeight < 1500):2722 $cost = 44800;2723 break;2724 case($totalWeight < 1600):2725 $cost = 47900;2726 break;2727 case($totalWeight < 1700):2728 $cost = 51000;2729 break;2730 case($totalWeight < 1800):2731 $cost = 54100;2732 break;2733 /**/2734 case($totalWeight < 1900):2735 $cost = 57200;2736 break;2737 case($totalWeight < 2000):2738 $cost = 60400;2739 break;2740 case($totalWeight >= 2000):2741 $cost = 63500;2742 break;2743 default:2744 $cost = "æ°éãæ£ããããã¾ããã";2745 break;2746 }2747 }2748 else if ($distance == 1200){2749 switch (true){2750 case ($totalWeight < 20):2751 $cost = 1000;2752 break;2753 case($totalWeight < 30):2754 $cost = 1400;2755 break;2756 case($totalWeight < 40):2757 $cost = 1600;2758 break;2759 case($totalWeight < 60):2760 $cost = 2100;2761 break;2762 case($totalWeight < 80):2763 $cost = 2500;2764 break;2765 /**/2766 case($totalWeight < 100):2767 $cost = 3300;2768 break;2769 case($totalWeight < 120):2770 $cost = 4000;2771 break;2772 case($totalWeight < 140):2773 $cost = 4600;2774 break;2775 case($totalWeight < 160):2776 $cost = 5400;2777 break;2778 case($totalWeight < 180):2779 $cost = 6000;2780 break;2781 /**/2782 case($totalWeight < 200):2783 $cost = 6700;2784 break;2785 case($totalWeight < 250):2786 $cost = 7100;2787 break;2788 case($totalWeight < 300):2789 $cost = 8600;2790 break;2791 case($totalWeight < 350):2792 $cost = 10400;2793 break;2794 case($totalWeight < 400):2795 $cost = 12100;2796 break;2797 /**/2798 case($totalWeight < 450):2799 $cost = 13800;2800 break;2801 case($totalWeight < 500):2802 $cost = 15500;2803 break;2804 case($totalWeight < 550):2805 $cost = 17300;2806 break;2807 case($totalWeight < 600):2808 $cost = 19000;2809 break;2810 case($totalWeight < 650):2811 $cost = 20700;2812 break;2813 /**/2814 case($totalWeight < 700):2815 $cost = 22400;2816 break;2817 case($totalWeight < 750):2818 $cost = 24200;2819 break;2820 case($totalWeight < 800):2821 $cost = 25900;2822 break;2823 case($totalWeight < 850):2824 $cost = 27600;2825 break;2826 case($totalWeight < 900):2827 $cost = 29300;2828 break;2829 /**/2830 case($totalWeight < 950):2831 $cost = 31100;2832 break;2833 case($totalWeight < 1000):2834 $cost = 32800;2835 break;2836 case($totalWeight < 1100):2837 $cost = 34500;2838 break;2839 case($totalWeight < 1200):2840 $cost = 37800;2841 break;2842 case($totalWeight < 1300):2843 $cost = 41200;2844 break;2845 /**/2846 case($totalWeight < 1400):2847 $cost = 44500;2848 break;2849 case($totalWeight < 1500):2850 $cost = 47800;2851 break;2852 case($totalWeight < 1600):2853 $cost = 51200;2854 break;2855 case($totalWeight < 1700):2856 $cost = 54500;2857 break;2858 case($totalWeight < 1800):2859 $cost = 57900;2860 break;2861 /**/2862 case($totalWeight < 1900):2863 $cost = 61200;2864 break;2865 case($totalWeight < 2000):2866 $cost = 64500;2867 break;2868 case($totalWeight >= 2000):2869 $cost = 67900;2870 break;2871 default:2872 $cost = "æ°éãæ£ããããã¾ããã";2873 break;2874 }2875 }2876 else if ($distance == 1300){2877 switch (true){2878 case ($totalWeight < 20):2879 $cost = 1100;2880 break;2881 case($totalWeight < 30):2882 $cost = 1400;2883 break;2884 case($totalWeight < 40):2885 $cost = 1700;2886 break;2887 case($totalWeight < 60):2888 $cost = 2200;2889 break;2890 case($totalWeight < 80):2891 $cost = 2600;2892 break;2893 /**/2894 case($totalWeight < 100):2895 $cost = 3400;2896 break;2897 case($totalWeight < 120):2898 $cost = 4200;2899 break;2900 case($totalWeight < 140):2901 $cost = 4900;2902 break;2903 case($totalWeight < 160):2904 $cost = 5600;2905 break;2906 case($totalWeight < 180):2907 $cost = 6400;2908 break;2909 /**/2910 case($totalWeight < 200):2911 $cost = 7100;2912 break;2913 case($totalWeight < 250):2914 $cost = 7500;2915 break;2916 case($totalWeight < 300):2917 $cost = 9100;2918 break;2919 case($totalWeight < 350):2920 $cost = 11000;2921 break;2922 case($totalWeight < 400):2923 $cost = 12800;2924 break;2925 /**/2926 case($totalWeight < 450):2927 $cost = 14600;2928 break;2929 case($totalWeight < 500):2930 $cost = 16500;2931 break;2932 case($totalWeight < 550):2933 $cost = 18300;2934 break;2935 case($totalWeight < 600):2936 $cost = 20200;2937 break;2938 case($totalWeight < 650):2939 $cost = 22000;2940 break;2941 /**/2942 case($totalWeight < 700):2943 $cost = 23800;2944 break;2945 case($totalWeight < 750):2946 $cost = 25700;2947 break;2948 case($totalWeight < 800):2949 $cost = 27500;2950 break;2951 case($totalWeight < 850):2952 $cost = 29300;2953 break;2954 case($totalWeight < 900):2955 $cost = 31200;2956 break;2957 /**/2958 case($totalWeight < 950):2959 $cost = 33000;2960 break;2961 case($totalWeight < 1000):2962 $cost = 34800;2963 break;2964 case($totalWeight < 1100):2965 $cost = 36700;2966 break;2967 case($totalWeight < 1200):2968 $cost = 40200;2969 break;2970 case($totalWeight < 1300):2971 $cost = 43800;2972 break;2973 /**/2974 case($totalWeight < 1400):2975 $cost = 47400;2976 break;2977 case($totalWeight < 1500):2978 $cost = 50900;2979 break;2980 case($totalWeight < 1600):2981 $cost = 54500;2982 break;2983 case($totalWeight < 1700):2984 $cost = 58000;2985 break;2986 case($totalWeight < 1800):2987 $cost = 61600;2988 break;2989 /**/2990 case($totalWeight < 1900):2991 $cost = 65200;2992 break;2993 case($totalWeight < 2000):2994 $cost = 68700;2995 break;2996 case($totalWeight >= 2000):2997 $cost = 72300;2998 break;2999 default:3000 $cost = "æ°éãæ£ããããã¾ããã";3001 break;3002 }3003 }3004 else if ($distance == 1400){3005 switch (true){3006 case ($totalWeight < 20):3007 $cost = 1100;3008 break;3009 case($totalWeight < 30):3010 $cost = 1500;3011 break;3012 case($totalWeight < 40):3013 $cost = 1700;3014 break;3015 case($totalWeight < 60):3016 $cost = 2200;3017 break;3018 case($totalWeight < 80):3019 $cost = 2700;3020 break;3021 /**/3022 case($totalWeight < 100):3023 $cost = 3600;3024 break;3025 case($totalWeight < 120):3026 $cost = 4400;3027 break;3028 case($totalWeight < 140):3029 $cost = 5100;3030 break;3031 case($totalWeight < 160):3032 $cost = 5900;3033 break;3034 case($totalWeight < 180):3035 $cost = 6700;3036 break;3037 /**/3038 case($totalWeight < 200):3039 $cost = 7500;3040 break;3041 case($totalWeight < 250):3042 $cost = 7900;3043 break;3044 case($totalWeight < 300):3045 $cost = 9600;3046 break;3047 case($totalWeight < 350):3048 $cost = 11600;3049 break;3050 case($totalWeight < 400):3051 $cost = 13500;3052 break;3053 /**/3054 case($totalWeight < 450):3055 $cost = 15500;3056 break;3057 case($totalWeight < 500):3058 $cost = 17400;3059 break;3060 case($totalWeight < 550):3061 $cost = 19400;3062 break;3063 case($totalWeight < 600):3064 $cost = 21300;3065 break;3066 case($totalWeight < 650):3067 $cost = 23300;3068 break;3069 /**/3070 case($totalWeight < 700):3071 $cost = 25200;3072 break;3073 case($totalWeight < 750):3074 $cost = 27200;3075 break;3076 case($totalWeight < 800):3077 $cost = 29100;3078 break;3079 case($totalWeight < 850):3080 $cost = 31100;3081 break;3082 case($totalWeight < 900):3083 $cost = 33000;3084 break;3085 /**/3086 case($totalWeight < 950):3087 $cost = 35000;3088 break;3089 case($totalWeight < 1000):3090 $cost = 36900;3091 break;3092 case($totalWeight < 1100):3093 $cost = 38800;3094 break;3095 case($totalWeight < 1200):3096 $cost = 42600;3097 break;3098 case($totalWeight < 1300):3099 $cost = 46400;3100 break;3101 /**/3102 case($totalWeight < 1400):3103 $cost = 50200;3104 break;3105 case($totalWeight < 1500):3106 $cost = 54000;3107 break;3108 case($totalWeight < 1600):3109 $cost = 57800;3110 break;3111 case($totalWeight < 1700):3112 $cost = 61600;3113 break;3114 case($totalWeight < 1800):3115 $cost = 65300;3116 break;3117 /**/3118 case($totalWeight < 1900):3119 $cost = 69100;3120 break;3121 case($totalWeight < 2000):3122 $cost = 72900;3123 break;3124 case($totalWeight >= 2000):3125 $cost = 76700;3126 break;3127 default:3128 $cost = "æ°éãæ£ããããã¾ããã";3129 break;3130 }3131 }3132 else if ($distance == 1500){3133 switch (true){3134 case ($totalWeight < 20):3135 $cost = 1100;3136 break;3137 case($totalWeight < 30):3138 $cost = 1500;3139 break;3140 case($totalWeight < 40):3141 $cost = 1800;3142 break;3143 case($totalWeight < 60):3144 $cost = 2300;3145 break;3146 case($totalWeight < 80):3147 $cost = 2800;3148 break;3149 /**/3150 case($totalWeight < 100):3151 $cost = 3800;3152 break;3153 case($totalWeight < 120):3154 $cost = 4600;3155 break;3156 case($totalWeight < 140):3157 $cost = 5400;3158 break;3159 case($totalWeight < 160):3160 $cost = 6200;3161 break;3162 case($totalWeight < 180):3163 $cost = 7100;3164 break;3165 /**/3166 case($totalWeight < 200):3167 $cost = 7900;3168 break;3169 case($totalWeight < 250):3170 $cost = 8300;3171 break;3172 case($totalWeight < 300):3173 $cost = 10100;3174 break;3175 case($totalWeight < 350):3176 $cost = 12200;3177 break;3178 case($totalWeight < 400):3179 $cost = 14200;3180 break;3181 /**/3182 case($totalWeight < 450):3183 $cost = 16300;3184 break;3185 case($totalWeight < 500):3186 $cost = 18400;3187 break;3188 case($totalWeight < 550):3189 $cost = 20400;3190 break;3191 case($totalWeight < 600):3192 $cost = 22500;3193 break;3194 case($totalWeight < 650):3195 $cost = 24500;3196 break;3197 /**/3198 case($totalWeight < 700):3199 $cost = 26600;3200 break;3201 case($totalWeight < 750):3202 $cost = 28700;3203 break;3204 case($totalWeight < 800):3205 $cost = 30700;3206 break;3207 case($totalWeight < 850):3208 $cost = 32800;3209 break;3210 case($totalWeight < 900):3211 $cost = 34900;3212 break;3213 /**/3214 case($totalWeight < 950):3215 $cost = 36900;3216 break;3217 case($totalWeight < 1000):3218 $cost = 39000;3219 break;3220 case($totalWeight < 1100):3221 $cost = 41000;3222 break;3223 case($totalWeight < 1200):3224 $cost = 45000;3225 break;3226 case($totalWeight < 1300):3227 $cost = 49000;3228 break;3229 /**/3230 case($totalWeight < 1400):3231 $cost = 53000;3232 break;3233 case($totalWeight < 1500):3234 $cost = 57100;3235 break;3236 case($totalWeight < 1600):3237 $cost = 61100;3238 break;3239 case($totalWeight < 1700):3240 $cost = 65100;3241 break;3242 case($totalWeight < 1800):3243 $cost = 69100;3244 break;3245 /**/3246 case($totalWeight < 1900):3247 $cost = 73100;3248 break;3249 case($totalWeight < 2000):3250 $cost = 77100;3251 break;3252 case($totalWeight >= 2000):3253 $cost = 81100;3254 break;3255 default:3256 $cost = "æ°éãæ£ããããã¾ããã";3257 break;3258 }3259 }3260 else if ($distance == 1600){3261 switch (true){3262 case ($totalWeight < 20):3263 $cost = 1100;3264 break;3265 case($totalWeight < 30):3266 $cost = 1500;3267 break;3268 case($totalWeight < 40):3269 $cost = 1800;3270 break;3271 case($totalWeight < 60):3272 $cost = 2400;3273 break;3274 case($totalWeight < 80):3275 $cost = 2900;3276 break;3277 /**/3278 case($totalWeight < 100):3279 $cost = 3900;3280 break;3281 case($totalWeight < 120):3282 $cost = 4800;3283 break;3284 case($totalWeight < 140):3285 $cost = 5600;3286 break;3287 case($totalWeight < 160):3288 $cost = 6500;3289 break;3290 case($totalWeight < 180):3291 $cost = 7400;3292 break;3293 /**/3294 case($totalWeight < 200):3295 $cost = 8300;3296 break;3297 case($totalWeight < 250):3298 $cost = 8700;3299 break;3300 case($totalWeight < 300):3301 $cost = 10700;3302 break;3303 case($totalWeight < 350):3304 $cost = 12800;3305 break;3306 case($totalWeight < 400):3307 $cost = 15000;3308 break;3309 /**/3310 case($totalWeight < 450):3311 $cost = 17100;3312 break;3313 case($totalWeight < 500):3314 $cost = 19300;3315 break;3316 case($totalWeight < 550):3317 $cost = 21500;3318 break;3319 case($totalWeight < 600):3320 $cost = 23700;3321 break;3322 case($totalWeight < 650):3323 $cost = 25800;3324 break;3325 /**/3326 case($totalWeight < 700):3327 $cost = 28000;3328 break;3329 case($totalWeight < 750):3330 $cost = 30200;3331 break;3332 case($totalWeight < 800):3333 $cost = 32300;3334 break;3335 case($totalWeight < 850):3336 $cost = 34500;3337 break;3338 case($totalWeight < 900):3339 $cost = 36700;3340 break;3341 /**/3342 case($totalWeight < 950):3343 $cost = 38900;3344 break;3345 case($totalWeight < 1000):3346 $cost = 41000;3347 break;3348 case($totalWeight < 1100):3349 $cost = 43200;3350 break;3351 case($totalWeight < 1200):3352 $cost = 47400;3353 break;3354 case($totalWeight < 1300):3355 $cost = 51700;3356 break;3357 /**/3358 case($totalWeight < 1400):3359 $cost = 55900;3360 break;3361 case($totalWeight < 1500):3362 $cost = 60100;3363 break;3364 case($totalWeight < 1600):3365 $cost = 64400;3366 break;3367 case($totalWeight < 1700):3368 $cost = 68600;3369 break;3370 case($totalWeight < 1800):3371 $cost = 72800;3372 break;3373 /**/3374 case($totalWeight < 1900):3375 $cost = 77100;3376 break;3377 case($totalWeight < 2000):3378 $cost = 81300;3379 break;3380 case($totalWeight >= 2000):3381 $cost = 85500;3382 break;3383 default:3384 $cost = "æ°éãæ£ããããã¾ããã";3385 break;3386 }3387 }3388 else if ($distance == 1700){3389 switch (true){3390 case ($totalWeight < 20):3391 $cost = 1100;3392 break;3393 case($totalWeight < 30):3394 $cost = 1600;3395 break;3396 case($totalWeight < 40):3397 $cost = 1800;3398 break;3399 case($totalWeight < 60):3400 $cost = 2500;3401 break;3402 case($totalWeight < 80):3403 $cost = 3000;3404 break;3405 /**/3406 case($totalWeight < 100):3407 $cost = 4100;3408 break;3409 case($totalWeight < 120):3410 $cost = 5000;3411 break;3412 case($totalWeight < 140):3413 $cost = 5800;3414 break;3415 case($totalWeight < 160):3416 $cost = 6800;3417 break;3418 case($totalWeight < 180):3419 $cost = 7700;3420 break;3421 /**/3422 case($totalWeight < 200):3423 $cost = 8600;3424 break;3425 case($totalWeight < 250):3426 $cost = 9100;3427 break;3428 case($totalWeight < 300):3429 $cost = 11200;3430 break;3431 case($totalWeight < 350):3432 $cost = 13400;3433 break;3434 case($totalWeight < 400):3435 $cost = 15700;3436 break;3437 /**/3438 case($totalWeight < 450):3439 $cost = 18000;3440 break;3441 case($totalWeight < 500):3442 $cost = 20300;3443 break;3444 case($totalWeight < 550):3445 $cost = 22500;3446 break;3447 case($totalWeight < 600):3448 $cost = 24800;3449 break;3450 case($totalWeight < 650):3451 $cost = 27100;3452 break;3453 /**/3454 case($totalWeight < 700):3455 $cost = 29400;3456 break;3457 case($totalWeight < 750):3458 $cost = 31700;3459 break;3460 case($totalWeight < 800):3461 $cost = 34000;3462 break;3463 case($totalWeight < 850):3464 $cost = 36300;3465 break;3466 case($totalWeight < 900):3467 $cost = 38500;3468 break;3469 /**/3470 case($totalWeight < 950):3471 $cost = 40800;3472 break;3473 case($totalWeight < 1000):3474 $cost = 43100;3475 break;3476 case($totalWeight < 1100):3477 $cost = 45400;3478 break;3479 case($totalWeight < 1200):3480 $cost = 49800;3481 break;3482 case($totalWeight < 1300):3483 $cost = 54300;3484 break;3485 /**/3486 case($totalWeight < 1400):3487 $cost = 58700;3488 break;3489 case($totalWeight < 1500):3490 $cost = 63200;3491 break;3492 case($totalWeight < 1600):3493 $cost = 67600;3494 break;3495 case($totalWeight < 1700):3496 $cost = 72100;3497 break;3498 case($totalWeight < 1800):3499 $cost = 76600;3500 break;3501 /**/3502 case($totalWeight < 1900):3503 $cost = 81000;3504 break;3505 case($totalWeight < 2000):3506 $cost = 85500;3507 break;3508 case($totalWeight >= 2000):3509 $cost = 89900;3510 break;3511 default:3512 $cost = "æ°éãæ£ããããã¾ããã";3513 break;3514 }3515 }3516 else if ($distance == 1800){3517 switch (true){3518 case ($totalWeight < 20):3519 $cost = 1100;3520 break;3521 case($totalWeight < 30):3522 $cost = 1600;3523 break;3524 case($totalWeight < 40):3525 $cost = 1900;3526 break;3527 case($totalWeight < 60):3528 $cost = 2600;3529 break;3530 case($totalWeight < 80):3531 $cost = 3100;3532 break;3533 /**/3534 case($totalWeight < 100):3535 $cost = 4200;3536 break;3537 case($totalWeight < 120):3538 $cost = 5200;3539 break;3540 case($totalWeight < 140):3541 $cost = 6100;3542 break;3543 case($totalWeight < 160):3544 $cost = 7100;3545 break;3546 case($totalWeight < 180):3547 $cost = 8100;3548 break;3549 /**/3550 case($totalWeight < 200):3551 $cost = 9000;3552 break;3553 case($totalWeight < 250):3554 $cost = 9500;3555 break;3556 case($totalWeight < 300):3557 $cost = 11700;3558 break;3559 case($totalWeight < 350):3560 $cost = 14000;3561 break;3562 case($totalWeight < 400):3563 $cost = 16400;3564 break;3565 /**/3566 case($totalWeight < 450):3567 $cost = 18800;3568 break;3569 case($totalWeight < 500):3570 $cost = 21200;3571 break;3572 case($totalWeight < 550):3573 $cost = 23600;3574 break;3575 case($totalWeight < 600):3576 $cost = 26000;3577 break;3578 case($totalWeight < 650):3579 $cost = 28400;3580 break;3581 /**/3582 case($totalWeight < 700):3583 $cost = 30800;3584 break;3585 case($totalWeight < 750):3586 $cost = 33200;3587 break;3588 case($totalWeight < 800):3589 $cost = 35600;3590 break;3591 case($totalWeight < 850):3592 $cost = 38000;3593 break;3594 case($totalWeight < 900):3595 $cost = 40400;3596 break;3597 /**/3598 case($totalWeight < 950):3599 $cost = 42800;3600 break;3601 case($totalWeight < 1000):3602 $cost = 45200;3603 break;3604 case($totalWeight < 1100):3605 $cost = 47500;3606 break;3607 case($totalWeight < 1200):3608 $cost = 52200;3609 break;3610 case($totalWeight < 1300):3611 $cost = 56900;3612 break;3613 /**/3614 case($totalWeight < 1400):3615 $cost = 61600;3616 break;3617 case($totalWeight < 1500):3618 $cost = 66300;3619 break;3620 case($totalWeight < 1600):3621 $cost = 70900;3622 break;3623 case($totalWeight < 1700):3624 $cost = 75600;3625 break;3626 case($totalWeight < 1800):3627 $cost = 80300;3628 break;3629 /**/3630 case($totalWeight < 1900):3631 $cost = 85000;3632 break;3633 case($totalWeight < 2000):3634 $cost = 89700;3635 break;3636 case($totalWeight >= 2000):3637 $cost = 94300;3638 break;3639 default:3640 $cost = "æ°éãæ£ããããã¾ããã";3641 break;3642 }3643 }3644 else if ($distance == 1900){3645 switch (true){3646 case ($totalWeight < 20):3647 $cost = 1100;3648 break;3649 case($totalWeight < 30):3650 $cost = 1600;3651 break;3652 case($totalWeight < 40):3653 $cost = 1900;3654 break;3655 case($totalWeight < 60):3656 $cost = 2600;3657 break;3658 case($totalWeight < 80):3659 $cost = 3200;3660 break;3661 /**/3662 case($totalWeight < 100):3663 $cost = 4400;3664 break;3665 case($totalWeight < 120):3666 $cost = 5400;3667 break;3668 case($totalWeight < 140):3669 $cost = 6300;3670 break;3671 case($totalWeight < 160):3672 $cost = 7400;3673 break;3674 case($totalWeight < 180):3675 $cost = 8400;3676 break;3677 /**/3678 case($totalWeight < 200):3679 $cost = 9400;3680 break;3681 case($totalWeight < 250):3682 $cost = 9900;3683 break;3684 case($totalWeight < 300):3685 $cost = 12200;3686 break;3687 case($totalWeight < 350):3688 $cost = 14600;3689 break;3690 case($totalWeight < 400):3691 $cost = 17100;3692 break;3693 /**/3694 case($totalWeight < 450):3695 $cost = 19700;3696 break;3697 case($totalWeight < 500):3698 $cost = 22200;3699 break;3700 case($totalWeight < 550):3701 $cost = 24700;3702 break;3703 case($totalWeight < 600):3704 $cost = 27200;3705 break;3706 case($totalWeight < 650):3707 $cost = 29700;3708 break;3709 /**/3710 case($totalWeight < 700):3711 $cost = 32200;3712 break;3713 case($totalWeight < 750):3714 $cost = 34700;3715 break;3716 case($totalWeight < 800):3717 $cost = 37200;3718 break;3719 case($totalWeight < 850):3720 $cost = 39700;3721 break;3722 case($totalWeight < 900):3723 $cost = 42200;3724 break;3725 /**/3726 case($totalWeight < 950):3727 $cost = 44700;3728 break;3729 case($totalWeight < 1000):3730 $cost = 47200;3731 break;3732 case($totalWeight < 1100):3733 $cost = 49700;3734 break;3735 case($totalWeight < 1200):3736 $cost = 54600;3737 break;3738 case($totalWeight < 1300):3739 $cost = 59500;3740 break;3741 /**/3742 case($totalWeight < 1400):3743 $cost = 64400;3744 break;3745 case($totalWeight < 1500):3746 $cost = 69300;3747 break;3748 case($totalWeight < 1600):3749 $cost = 74200;3750 break;3751 case($totalWeight < 1700):3752 $cost = 79100;3753 break;3754 case($totalWeight < 1800):3755 $cost = 84000;3756 break;3757 /**/3758 case($totalWeight < 1900):3759 $cost = 88900;3760 break;3761 case($totalWeight < 2000):3762 $cost = 93800;3763 break;3764 case($totalWeight >= 2000):3765 $cost = 98700;3766 break;3767 default:3768 $cost = "æ°éãæ£ããããã¾ããã";3769 break;3770 }3771 }3772 else if ($distance == 2000){3773 switch (true){3774 case ($totalWeight < 20):3775 $cost = 1100;3776 break;3777 case($totalWeight < 30):3778 $cost = 1700;3779 break;3780 case($totalWeight < 40):3781 $cost = 2000;3782 break;3783 case($totalWeight < 60):3784 $cost = 2700;3785 break;3786 case($totalWeight < 80):3787 $cost = 3300;3788 break;3789 /**/3790 case($totalWeight < 100):3791 $cost = 4500;3792 break;3793 case($totalWeight < 120):3794 $cost = 5600;3795 break;3796 case($totalWeight < 140):3797 $cost = 6600;3798 break;3799 case($totalWeight < 160):3800 $cost = 7700;3801 break;3802 case($totalWeight < 180):3803 $cost = 8700;3804 break;3805 /**/3806 case($totalWeight < 200):3807 $cost = 9800;3808 break;3809 case($totalWeight < 250):3810 $cost = 10300;3811 break;3812 case($totalWeight < 300):3813 $cost = 12700;3814 break;3815 case($totalWeight < 350):3816 $cost = 15300;3817 break;3818 case($totalWeight < 400):3819 $cost = 17900;3820 break;3821 /**/3822 case($totalWeight < 450):3823 $cost = 20500;3824 break;3825 case($totalWeight < 500):3826 $cost = 23100;3827 break;3828 case($totalWeight < 550):3829 $cost = 25700;3830 break;3831 case($totalWeight < 600):3832 $cost = 28400;3833 break;3834 case($totalWeight < 650):3835 $cost = 31000;3836 break;3837 /**/3838 case($totalWeight < 700):3839 $cost = 33600;3840 break;3841 case($totalWeight < 750):3842 $cost = 36200;3843 break;3844 case($totalWeight < 800):3845 $cost = 38800;3846 break;3847 case($totalWeight < 850):3848 $cost = 41400;3849 break;3850 case($totalWeight < 900):3851 $cost = 44100;3852 break;3853 /**/3854 case($totalWeight < 950):3855 $cost = 46700;3856 break;3857 case($totalWeight < 1000):3858 $cost = 49300;3859 break;3860 case($totalWeight < 1100):3861 $cost = 51900;3862 break;3863 case($totalWeight < 1200):3864 $cost = 57000;3865 break;3866 case($totalWeight < 1300):3867 $cost = 62100;3868 break;3869 /**/3870 case($totalWeight < 1400):3871 $cost = 67300;3872 break;3873 case($totalWeight < 1500):3874 $cost = 72400;3875 break;3876 case($totalWeight < 1600):3877 $cost = 77500;3878 break;3879 case($totalWeight < 1700):3880 $cost = 82600;3881 break;3882 case($totalWeight < 1800):3883 $cost = 87800;3884 break;3885 /**/3886 case($totalWeight < 1900):3887 $cost = 92900;3888 break;3889 case($totalWeight < 2000):3890 $cost = 98000;3891 break;3892 case($totalWeight >= 2000):3893 $cost = 103100;3894 break;3895 default:3896 $cost = "æ°éãæ£ããããã¾ããã";3897 break;3898 }3899 }3900 // additional cost3901 if($additional == "none") {3902 $additionalCost = 0;3903 }3904 // æ±äº¬ã大éª3905 else if ($additional == "one"){3906 switch (true) {3907 case ($totalWeight < 20):3908 $additionalCost = 100;3909 break;3910 case($totalWeight < 30):3911 $additionalCost = 100;3912 break;3913 case($totalWeight < 40):3914 $additionalCost = 100;3915 break;3916 case($totalWeight < 60):3917 $additionalCost = 100;3918 break;3919 case($totalWeight < 80):3920 $additionalCost = 200;3921 break;3922 /* */3923 case($totalWeight < 100):3924 $additionalCost = 200;3925 break;3926 case($totalWeight < 120):3927 $additionalCost = 200;3928 break;3929 case($totalWeight < 140):3930 $additionalCost = 300;3931 break;3932 case($totalWeight < 160):3933 $additionalCost = 300;3934 break;3935 case($totalWeight < 180):3936 $additionalCost = 400;3937 break;3938 /* */3939 case($totalWeight < 200):3940 $additionalCost = 400;3941 break;3942 case($totalWeight < 250):3943 $additionalCost = 400;3944 break;3945 case($totalWeight < 300):3946 $additionalCost = 500;3947 break;3948 case($totalWeight < 350):3949 $additionalCost = 600;3950 break;3951 case($totalWeight < 400):3952 $additionalCost = 700;3953 break;3954 /* */3955 case($totalWeight < 450):3956 $additionalCost = 800;3957 break;3958 case($totalWeight < 500):3959 $additionalCost = 900;3960 break;3961 case($totalWeight < 550):3962 $additionalCost = 1000;3963 break;3964 case($totalWeight < 600):3965 $additionalCost = 1100;3966 break;3967 case($totalWeight < 650):3968 $additionalCost = 1200;3969 break;3970 /* */3971 case($totalWeight < 700):3972 $additionalCost = 1300;3973 break;3974 case($totalWeight < 750):3975 $additionalCost = 1400;3976 break;3977 case($totalWeight < 800):3978 $additionalCost = 1500;3979 break;3980 case($totalWeight < 850):3981 $additionalCost = 1600;3982 break;3983 case($totalWeight < 900):3984 $additionalCost = 1700;3985 break;3986 /* */3987 case($totalWeight < 950):3988 $additionalCost = 1800;3989 break;3990 case($totalWeight < 1000):3991 $additionalCost = 1900;3992 break;3993 case($totalWeight < 1100):3994 $additionalCost = 2000;3995 break;3996 case($totalWeight < 1200):3997 $additionalCost = 2200;3998 break;3999 case($totalWeight < 1300):4000 $additionalCost = 2400;4001 break;4002 /* */4003 case($totalWeight < 1400):4004 $additionalCost = 2600;4005 break;4006 case($totalWeight < 1500):4007 $additionalCost = 2800;4008 break;4009 case($totalWeight < 1600):4010 $additionalCost = 3000;4011 break;4012 case($totalWeight < 1700):4013 $additionalCost = 3200;4014 break;4015 case($totalWeight < 1800):4016 $additionalCost = 3400;4017 break;4018 /* */4019 case($totalWeight < 1900):4020 $additionalCost = 3600;4021 break;4022 case($totalWeight < 2000):4023 $additionalCost = 3800;4024 break;4025 case($totalWeight >= 2000):4026 $additionalCost = 4000;4027 break;4028 default:4029 break;4030 }4031 }4032 else{4033 switch (true) {4034 case ($totalWeight < 20):4035 $additionalCost = 70;4036 break;4037 case($totalWeight < 30):4038 $additionalCost = 70;4039 break;4040 case($totalWeight < 40):4041 $additionalCost = 70;4042 break;4043 case($totalWeight < 60):4044 $additionalCost = 70;4045 break;4046 case($totalWeight < 80):4047 $additionalCost = 140;4048 break;4049 /* */4050 case($totalWeight < 100):4051 $additionalCost = 140;4052 break;4053 case($totalWeight < 120):4054 $additionalCost = 140;4055 break;4056 case($totalWeight < 140):4057 $additionalCost = 210;4058 break;4059 case($totalWeight < 160):4060 $additionalCost = 210;4061 break;4062 case($totalWeight < 180):4063 $additionalCost = 280;4064 break;4065 /* */4066 case($totalWeight < 200):4067 $additionalCost = 280;4068 break;4069 case($totalWeight < 250):4070 $additionalCost = 280;4071 break;4072 case($totalWeight < 300):4073 $additionalCost = 350;4074 break;4075 case($totalWeight < 350):4076 $additionalCost = 420;4077 break;4078 case($totalWeight < 400):4079 $additionalCost = 490;4080 break;4081 /* */4082 case($totalWeight < 450):4083 $additionalCost = 560;4084 break;4085 case($totalWeight < 500):4086 $additionalCost = 630;4087 break;4088 case($totalWeight < 550):4089 $additionalCost = 700;4090 break;4091 case($totalWeight < 600):4092 $additionalCost = 770;4093 break;4094 case($totalWeight < 650):4095 $additionalCost = 840;4096 break;4097 /* */4098 case($totalWeight < 700):4099 $additionalCost = 910;4100 break;4101 case($totalWeight < 750):4102 $additionalCost = 980;4103 break;4104 case($totalWeight < 800):4105 $additionalCost = 1050;4106 break;4107 case($totalWeight < 850):4108 $additionalCost = 1120;4109 break;4110 case($totalWeight < 900):4111 $additionalCost = 1190;4112 break;4113 /* */4114 case($totalWeight < 950):4115 $additionalCost = 1260;4116 break;4117 case($totalWeight < 1000):4118 $additionalCost = 1330;4119 break;4120 case($totalWeight < 1100):4121 $additionalCost = 1400;4122 break;4123 case($totalWeight < 1200):4124 $additionalCost = 1540;4125 break;4126 case($totalWeight < 1300):4127 $additionalCost = 1680;4128 break;4129 /* */4130 case($totalWeight < 1400):4131 $additionalCost = 1820;4132 break;4133 case($totalWeight < 1500):4134 $additionalCost = 1960;4135 break;4136 case($totalWeight < 1600):4137 $additionalCost = 2100;4138 break;4139 case($totalWeight < 1700):4140 $additionalCost = 2240;4141 break;4142 case($totalWeight < 1800):4143 $additionalCost = 2380;4144 break;4145 /* */4146 case($totalWeight < 1900):4147 $additionalCost = 2520;4148 break;4149 case($totalWeight < 2000):4150 $additionalCost = 2660;4151 break;4152 case($totalWeight >= 2000):4153 $additionalCost = 2800;4154 break;4155 default:4156 break;4157 }4158 }4159 // shipping fee result 4160 if (typeof $cost === 'string' || $cost instanceof String)4161 {4162 $('.shipping-fee').html('æ°éãæ£ããããã¾ããã.');4163 }4164 else if($weight == 0){4165 $('.shipping-fee').html('ååãé¸ãã§ãã ããã');4166 }4167 else if($distance == 0){4168 $('.shipping-fee').html('è¡ãå
ãé¸ãã§ãã ããã');4169 }4170 else {4171 $totalCost = $cost + $additionalCost4172 // return cost 4173 $('.shipping-fee').html(`4174 <table class="result-table" style="width: 80%;">4175 <thead>4176 <tr>4177 <th style="width: 25%;">ç·éé</th>4178 <th style="width: 25%;">éè³</th>4179 <th style="width: 25%;">å²å¢æ</th>4180 <th style="width: 25%;">åè¨</th>4181 </tr>4182 </thead>4183 <tbody>4184 <tr>4185 <td>${$totalWeight}kg</td>4186 <td>${$totalCost - $additionalCost}å</td>4187 <td>${$additionalCost}å</td>4188 <td>${$totalCost}å</td>4189 </tr>4190 </tbody>4191 </table>`)4192 }4193 4194 });...
champions-collection.service.ts
Source:champions-collection.service.ts
1import { Injectable } from '@angular/core';2import { BehaviorSubject } from 'rxjs';3import { ChampionMap, eClasses, eOrigins, eRarity } from '../interface/interfaces';4@Injectable({5 providedIn: 'root'6})7export class ChampionsCollectionService {8 9 static championPool$: BehaviorSubject<ChampionMap> = new BehaviorSubject(ChampionsCollectionService.initializePlayerDeck() as ChampionMap);10 static get championPool():ChampionMap {11 return this.championPool$.getValue();12 }13 static set championPool(value: ChampionMap) {14 this.championPool$.next(value);15 }16 constructor() { }17 static initializePlayerDeck():ChampionMap {18 let champions = new Map();19 champions.set('Aatrox', {20 name: 'Aatrox',21 image: 'https://rerollcdn.com/characters/Skin/7/Aatrox.png',22 baseWeight: 1,23 newSynergyWeight: 0,24 sameSynergyWeight: 0,25potentialSynergyPoints: 0,26tierlistPoints:0,27 totalWeight: 0,28 origin: [eOrigins.SHIMMERSCALE],29 classes: [eClasses.WARRIOR],30 rarity: eRarity.POOR31 });32 champions.set('Vladimir', {33 name: 'Vladimir',34 image: 'https://rerollcdn.com/characters/Skin/7/Vladimir.png',35 baseWeight: 1.16,36 newSynergyWeight: 0,37 sameSynergyWeight: 0,38potentialSynergyPoints: 0,39tierlistPoints:0,40 totalWeight: 0,41 origin: [eOrigins.ASTRAL],42 classes: [eClasses.MAGE],43 rarity: eRarity.POOR44 });45 champions.set('Taric', {46 name: 'Taric',47 image: 'https://rerollcdn.com/characters/Skin/7/Taric.png',48 baseWeight: 1.28,49 newSynergyWeight: 0,50 sameSynergyWeight: 0,51potentialSynergyPoints: 0,52tierlistPoints:0,53 totalWeight: 0,54 origin: [eOrigins.JADE],55 classes: [eClasses.GUARDIAN],56 rarity: eRarity.POOR57 });58 champions.set('Tahm Kench', {59 name: 'Tahm Kench',60 image: 'https://rerollcdn.com/characters/Skin/7/TahmKench.png',61 baseWeight: 1.36,62 newSynergyWeight: 0,63 sameSynergyWeight: 0,64potentialSynergyPoints: 0,65tierlistPoints:0,66 totalWeight: 0,67 origin: [eOrigins.REVEL],68 classes: [eClasses.BRUISER],69 rarity: eRarity.POOR70 });71 champions.set('Skarner', {72 name: 'Skarner',73 image: 'https://rerollcdn.com/characters/Skin/7/Skarner.png',74 baseWeight: 1.12,75 newSynergyWeight: 0,76 sameSynergyWeight: 0,77potentialSynergyPoints: 0,78tierlistPoints:0,79 totalWeight: 0,80 origin: [eOrigins.ASTRAL],81 classes: [eClasses.BRUISER],82 rarity: eRarity.POOR83 });84 champions.set('Sejuani', {85 name: 'Sejuani',86 image: 'https://rerollcdn.com/characters/Skin/7/Sejuani.png',87 baseWeight: 1.58,88 newSynergyWeight: 0,89 sameSynergyWeight: 0,90potentialSynergyPoints: 0,91tierlistPoints:0,92 totalWeight: 0,93 origin: [eOrigins.GUILD],94 classes: [eClasses.CAVALIER],95 rarity: eRarity.POOR96 });97 champions.set('Nidalee', {98 name: 'Nidalee',99 image: 'https://rerollcdn.com/characters/Skin/7/Nidalee.png',100 baseWeight: 1.1,101 newSynergyWeight: 0,102 sameSynergyWeight: 0,103potentialSynergyPoints: 0,104tierlistPoints:0,105 totalWeight: 0,106 origin: [eOrigins.ASTRAL],107 classes: [eClasses.SHAPESHIFTER],108 rarity: eRarity.POOR109 });110 champions.set('Leona', {111 name: 'Leona',112 image: 'https://rerollcdn.com/characters/Skin/7/Leona.png',113 baseWeight: 1.14,114 newSynergyWeight: 0,115 sameSynergyWeight: 0,116potentialSynergyPoints: 0,117tierlistPoints:0,118 totalWeight: 0,119 origin: [eOrigins.MIRAGE],120 classes: [eClasses.GUARDIAN],121 rarity: eRarity.POOR122 });123 champions.set('Karma', {124 name: 'Karma',125 image: 'https://rerollcdn.com/characters/Skin/7/Karma.png',126 baseWeight: 1.3,127 newSynergyWeight: 0,128 sameSynergyWeight: 0,129potentialSynergyPoints: 0,130tierlistPoints:0,131 totalWeight: 0,132 origin: [eOrigins.JADE],133 classes: [eClasses.DRAGONMANCER],134 rarity: eRarity.POOR135 });136 champions.set('Heimerdinger', {137 name: 'Heimerdinger',138 image: 'https://rerollcdn.com/characters/Skin/7/Heimerdinger.png',139 baseWeight: 1.72,140 newSynergyWeight: 0,141 sameSynergyWeight: 0,142potentialSynergyPoints: 0,143tierlistPoints:0,144 totalWeight: 0,145 origin: [eOrigins.TRAINER],146 classes: [eClasses.MAGE],147 rarity: eRarity.POOR148 });149 champions.set('Ezreal', {150 name: 'Ezreal',151 image: 'https://rerollcdn.com/characters/Skin/7/Ezreal.png',152 baseWeight: 1.22,153 newSynergyWeight: 0,154 sameSynergyWeight: 0,155potentialSynergyPoints: 0,156tierlistPoints:0,157 totalWeight: 0,158 origin: [eOrigins.TEMPEST],159 classes: [eClasses.SWIFTSHOT],160 rarity: eRarity.POOR161 });162 champions.set('Senna', {163 name: 'Senna',164 image: 'https://rerollcdn.com/characters/Skin/7/Senna.png',165 baseWeight: 1.02,166 newSynergyWeight: 0,167 sameSynergyWeight: 0,168potentialSynergyPoints: 0,169tierlistPoints:0,170 totalWeight: 0,171 origin: [eOrigins.RAGEWING],172 classes: [eClasses.CANNONEER],173 rarity: eRarity.POOR174 });175 champions.set('Sett', {176 name: 'Sett',177 image: 'https://rerollcdn.com/characters/Skin/7/Sett.png',178 baseWeight: 1.04,179 newSynergyWeight: 0,180 sameSynergyWeight: 0,181potentialSynergyPoints: 0,182tierlistPoints:0,183 totalWeight: 0,184 origin: [eOrigins.RAGEWING],185 classes: [eClasses.DRAGONMANCER],186 rarity: eRarity.POOR187 });188 champions.set('Qiyana', {189 name: 'Qiyana',190 image: 'https://rerollcdn.com/characters/Skin/7/Qiyana.png',191 baseWeight: 1.6,192 newSynergyWeight: 0,193 sameSynergyWeight: 0,194potentialSynergyPoints: 0,195tierlistPoints:0,196 totalWeight: 0,197 origin: [eOrigins.TEMPEST],198 classes: [eClasses.ASSASSIN],199 rarity: eRarity.COMMON200 });201 champions.set('Jinx', {202 name: 'Jinx',203 image: 'https://rerollcdn.com/characters/Skin/7/Jinx.png',204 baseWeight: 1.66,205 newSynergyWeight: 0,206 sameSynergyWeight: 0,207potentialSynergyPoints: 0,208tierlistPoints:0,209 totalWeight: 0,210 origin: [eOrigins.REVEL],211 classes: [eClasses.CANNONEER],212 rarity: eRarity.COMMON213 });214 champions.set('Kayn', {215 name: 'Kayn',216 image: 'https://rerollcdn.com/characters/Skin/7/Kayn.png',217 baseWeight: 1.08,218 newSynergyWeight: 0,219 sameSynergyWeight: 0,220potentialSynergyPoints: 0,221tierlistPoints:0,222 totalWeight: 0,223 origin: [eOrigins.SHIMMERSCALE],224 classes: [eClasses.ASSASSIN],225 rarity: eRarity.COMMON226 });227 champions.set('Nami', {228 name: 'Nami',229 image: 'https://rerollcdn.com/characters/Skin/7/Nami.png',230 baseWeight: 1.54,231 newSynergyWeight: 0,232 sameSynergyWeight: 0,233potentialSynergyPoints: 0,234tierlistPoints:0,235 totalWeight: 0,236 origin: [eOrigins.ASTRAL],237 classes: [eClasses.MYSTIC, eClasses.MAGE],238 rarity: eRarity.COMMON239 });240 champions.set('Lillia', {241 name: 'Lillia',242 image: 'https://rerollcdn.com/characters/Skin/7/Lillia.png',243 baseWeight: 1.36,244 newSynergyWeight: 0,245 sameSynergyWeight: 0,246potentialSynergyPoints: 0,247tierlistPoints:0,248 totalWeight: 0,249 origin: [eOrigins.SCALESCORN],250 classes: [eClasses.CAVALIER, eClasses.MAGE],251 rarity: eRarity.COMMON252 });253 champions.set('Ashe', {254 name: 'Ashe',255 image: 'https://rerollcdn.com/characters/Skin/7/Ashe.png',256 baseWeight: 1.42,257 newSynergyWeight: 0,258 sameSynergyWeight: 0,259potentialSynergyPoints: 0,260tierlistPoints:0,261 totalWeight: 0,262 origin: [eOrigins.JADE],263 classes: [eClasses.DRAGONMANCER, eClasses.SWIFTSHOT],264 rarity: eRarity.COMMON265 });266 champions.set('Thresh', {267 name: 'Thresh',268 image: 'https://rerollcdn.com/characters/Skin/7/Thresh.png',269 baseWeight: 1.5,270 newSynergyWeight: 0,271 sameSynergyWeight: 0,272potentialSynergyPoints: 0,273tierlistPoints:0,274 totalWeight: 0,275 origin: [eOrigins.WHISPERS],276 classes: [eClasses.GUARDIAN],277 rarity: eRarity.COMMON278 });279 champions.set('Twitch', {280 name: 'Twitch',281 image: 'https://rerollcdn.com/characters/Skin/7/Twitch.png',282 baseWeight: 1.7,283 newSynergyWeight: 0,284 sameSynergyWeight: 0,285potentialSynergyPoints: 0,286tierlistPoints:0,287 totalWeight: 0,288 origin: [eOrigins.GUILD],289 classes: [eClasses.SWIFTSHOT],290 rarity: eRarity.COMMON291 });292 champions.set('Shen', {293 name: 'Shen',294 image: 'https://rerollcdn.com/characters/Skin/7/Shen.png',295 baseWeight: 1.32,296 newSynergyWeight: 0,297 sameSynergyWeight: 0,298potentialSynergyPoints: 0,299tierlistPoints:0,300 totalWeight: 0,301 origin: [eOrigins.RAGEWING],302 classes: [eClasses.BRUISER, eClasses.WARRIOR],303 rarity: eRarity.COMMON304 });305 champions.set('Tristana', {306 name: 'Tristana',307 image: 'https://rerollcdn.com/characters/Skin/7/Tristana.png',308 baseWeight: 1.8,309 newSynergyWeight: 0,310 sameSynergyWeight: 0,311potentialSynergyPoints: 0,312tierlistPoints:0,313 totalWeight: 0,314 origin: [eOrigins.TRAINER],315 classes: [eClasses.CANNONEER],316 rarity: eRarity.COMMON317 });318 champions.set('Braum', {319 name: 'Braum',320 image: 'https://rerollcdn.com/characters/Skin/7/Braum.png',321 baseWeight: 1.42,322 newSynergyWeight: 0,323 sameSynergyWeight: 0,324potentialSynergyPoints: 0,325tierlistPoints:0,326 totalWeight: 0,327 origin: [eOrigins.SCALESCORN],328 classes: [eClasses.GUARDIAN],329 rarity: eRarity.COMMON330 });331 champions.set('Gnar', {332 name: 'Gnar',333 image: 'https://rerollcdn.com/characters/Skin/7/Gnar.png',334 baseWeight: 1.64,335 newSynergyWeight: 0,336 sameSynergyWeight: 0,337potentialSynergyPoints: 0,338tierlistPoints:0,339 totalWeight: 0,340 origin: [eOrigins.JADE],341 classes: [eClasses.SHAPESHIFTER],342 rarity: eRarity.COMMON343 });344 champions.set('Yone', {345 name: 'Yone',346 image: 'https://rerollcdn.com/characters/Skin/7/Yone.png',347 baseWeight: 1.38,348 newSynergyWeight: 0,349 sameSynergyWeight: 0,350potentialSynergyPoints: 0,351tierlistPoints:0,352 totalWeight: 0,353 origin: [eOrigins.MIRAGE],354 classes: [eClasses.WARRIOR],355 rarity: eRarity.COMMON356 });357 champions.set('Swain', {358 name: 'Swain',359 image: 'https://rerollcdn.com/characters/Skin/7/Swain.png',360 baseWeight: 1.2,361 newSynergyWeight: 0,362 sameSynergyWeight: 0,363potentialSynergyPoints: 0,364tierlistPoints:0,365 totalWeight: 0,366 origin: [eOrigins.RAGEWING],367 classes: [eClasses.DRAGONMANCER,eClasses.SHAPESHIFTER],368 rarity: eRarity.RARE369 });370 champions.set('Olaf', {371 name: 'Olaf',372 image: 'https://rerollcdn.com/characters/Skin/7/Olaf.png',373 baseWeight: 1.52,374 newSynergyWeight: 0,375 sameSynergyWeight: 0,376potentialSynergyPoints: 0,377tierlistPoints:0,378 totalWeight: 0,379 origin: [eOrigins.SCALESCORN],380 classes: [eClasses.BRUISER, eClasses.WARRIOR],381 rarity: eRarity.RARE382 });383 champions.set('Diana', {384 name: 'Diana',385 image: 'https://rerollcdn.com/characters/Skin/7/Diana.png',386 baseWeight: 1.64,387 newSynergyWeight: 0,388 sameSynergyWeight: 0,389potentialSynergyPoints: 0,390tierlistPoints:0,391 totalWeight: 0,392 origin: [eOrigins.SCALESCORN],393 classes: [eClasses.ASSASSIN],394 rarity: eRarity.RARE395 });396 champions.set('Varus', {397 name: 'Varus',398 image: 'https://rerollcdn.com/characters/Skin/7/Varus.png',399 baseWeight: 1.44,400 newSynergyWeight: 0,401 sameSynergyWeight: 0,402potentialSynergyPoints: 0,403tierlistPoints:0,404 totalWeight: 0,405 origin: [eOrigins.ASTRAL],406 classes: [eClasses.SWIFTSHOT],407 rarity: eRarity.RARE408 });409 champions.set('Elise', {410 name: 'Elise',411 image: 'https://rerollcdn.com/characters/Skin/7/Elise.png',412 baseWeight: 1.34,413 newSynergyWeight: 0,414 sameSynergyWeight: 0,415potentialSynergyPoints: 0,416tierlistPoints:0,417 totalWeight: 0,418 origin: [eOrigins.WHISPERS],419 classes: [eClasses.SHAPESHIFTER],420 rarity: eRarity.RARE421 });422 champions.set('Ryze', {423 name: 'Ryze',424 image: 'https://rerollcdn.com/characters/Skin/7/Ryze.png',425 baseWeight: 1.26,426 newSynergyWeight: 0,427 sameSynergyWeight: 0,428potentialSynergyPoints: 0,429tierlistPoints:0,430 totalWeight: 0,431 origin: [eOrigins.GUILD],432 classes: [eClasses.MAGE],433 rarity: eRarity.RARE434 });435 champions.set('Lulu', {436 name: 'Lulu',437 image: 'https://rerollcdn.com/characters/Skin/7/Lulu.png',438 baseWeight: 1.84,439 newSynergyWeight: 0,440 sameSynergyWeight: 0,441potentialSynergyPoints: 0,442tierlistPoints:0,443 totalWeight: 0,444 origin: [eOrigins.TRAINER],445 classes: [eClasses.MYSTIC, eClasses.EVOKER],446 rarity: eRarity.RARE447 });448 champions.set('Anivia', {449 name: 'Anivia',450 image: 'https://rerollcdn.com/characters/Skin/7/Anivia.png',451 baseWeight: 1.68,452 newSynergyWeight: 0,453 sameSynergyWeight: 0,454potentialSynergyPoints: 0,455tierlistPoints:0,456 totalWeight: 0,457 origin: [eOrigins.JADE],458 classes: [eClasses.EVOKER,eClasses.LEGEND],459 rarity: eRarity.RARE460 });461 champions.set('Sylas', {462 name: 'Sylas',463 image: 'https://rerollcdn.com/characters/Skin/7/Sylas.png',464 baseWeight: 1.62,465 newSynergyWeight: 0,466 sameSynergyWeight: 0,467potentialSynergyPoints: 0,468tierlistPoints:0,469 totalWeight: 0,470 origin: [eOrigins.WHISPERS],471 classes: [eClasses.BRUISER,eClasses.MAGE],472 rarity: eRarity.RARE473 });474 475 champions.set('Nunu', {476 name: 'Nunu',477 image: 'https://rerollcdn.com/characters/Skin/7/Nunu.png',478 baseWeight: 1.4,479 newSynergyWeight: 0,480 sameSynergyWeight: 0,481potentialSynergyPoints: 0,482tierlistPoints:0,483 totalWeight: 0,484 origin: [eOrigins.MIRAGE],485 classes: [eClasses.CAVALIER],486 rarity: eRarity.RARE487 });488 champions.set('Lee Sin', {489 name: 'Lee Sin',490 image: 'https://rerollcdn.com/characters/Skin/7/LeeSin.png',491 baseWeight: 1.18,492 newSynergyWeight: 0,493 sameSynergyWeight: 0,494potentialSynergyPoints: 0,495tierlistPoints:0,496 totalWeight: 0,497 origin: [eOrigins.TEMPEST],498 classes: [eClasses.DRAGONMANCER],499 rarity: eRarity.RARE500 });501 champions.set('Volibear', {502 name: 'Volibear',503 image: 'https://rerollcdn.com/characters/Skin/7/Volibear.png',504 baseWeight: 1.06,505 newSynergyWeight: 0,506 sameSynergyWeight: 0,507potentialSynergyPoints: 0,508tierlistPoints:0,509 totalWeight: 0,510 origin: [eOrigins.SHIMMERSCALE],511 classes: [eClasses.DRAGONMANCER, eClasses.LEGEND],512 rarity: eRarity.RARE513 });514 champions.set('Illaoi', {515 name: 'Illaoi',516 image: 'https://rerollcdn.com/characters/Skin/7/Illaoi.png',517 baseWeight: 1.46,518 newSynergyWeight: 0,519 sameSynergyWeight: 0,520potentialSynergyPoints: 0,521tierlistPoints:0,522 totalWeight: 0,523 origin: [eOrigins.ASTRAL],524 classes: [eClasses.BRUISER],525 rarity: eRarity.RARE526 });527 champions.set('Xayah', {528 name: 'Xayah',529 image: 'https://rerollcdn.com/characters/Skin/7/Xayah.png',530 baseWeight: 1.56,531 newSynergyWeight: 0,532 sameSynergyWeight: 0,533potentialSynergyPoints: 0,534tierlistPoints:0,535 totalWeight: 0,536 origin: [eOrigins.RAGEWING],537 classes: [eClasses.SWIFTSHOT],538 rarity: eRarity.EPIC539 });540 champions.set('Corki', {541 name: 'Corki',542 image: 'https://rerollcdn.com/characters/Skin/7/Corki.png',543 baseWeight: 1.7,544 newSynergyWeight: 0,545 sameSynergyWeight: 0,546potentialSynergyPoints: 0,547tierlistPoints:0,548 totalWeight: 0,549 origin: [eOrigins.REVEL],550 classes: [eClasses.CANNONEER],551 rarity: eRarity.EPIC552 });553 champions.set('Hecarim', {554 name: 'Hecarim',555 image: 'https://rerollcdn.com/characters/Skin/7/Hecarim.png',556 baseWeight: 1.62,557 newSynergyWeight: 0,558 sameSynergyWeight: 0,559potentialSynergyPoints: 0,560tierlistPoints:0,561 totalWeight: 0,562 origin: [eOrigins.RAGEWING],563 classes: [eClasses.CAVALIER],564 rarity: eRarity.EPIC565 });566 champions.set('Talon', {567 name: 'Talon',568 image: 'https://rerollcdn.com/characters/Skin/7/Talon.png',569 baseWeight: 1.82,570 newSynergyWeight: 0,571 sameSynergyWeight: 0,572potentialSynergyPoints: 0,573tierlistPoints:0,574 totalWeight: 0,575 origin: [eOrigins.GUILD],576 classes: [eClasses.ASSASSIN],577 rarity: eRarity.EPIC578 });579 champions.set('Sona', {580 name: 'Sona',581 image: 'https://rerollcdn.com/characters/Skin/7/Sona.png',582 baseWeight: 1.86,583 newSynergyWeight: 0,584 sameSynergyWeight: 0,585potentialSynergyPoints: 0,586tierlistPoints:0,587 totalWeight: 0,588 origin: [eOrigins.REVEL],589 classes: [eClasses.EVOKER],590 rarity: eRarity.EPIC591 });592 champions.set('Ornn', {593 name: 'Ornn',594 image: 'https://rerollcdn.com/characters/Skin/7/Ornn.png',595 baseWeight: 1.66,596 newSynergyWeight: 0,597 sameSynergyWeight: 0,598potentialSynergyPoints: 0,599tierlistPoints:0,600 totalWeight: 0,601 origin: [eOrigins.TEMPEST],602 classes: [eClasses.BRUISER, eClasses.LEGEND],603 rarity: eRarity.EPIC604 });605 champions.set('Neeko', {606 name: 'Neeko',607 image: 'https://rerollcdn.com/characters/Skin/7/Neeko.png',608 baseWeight: 1.76,609 newSynergyWeight: 0,610 sameSynergyWeight: 0,611potentialSynergyPoints: 0,612tierlistPoints:0,613 totalWeight: 0,614 origin: [eOrigins.JADE],615 classes: [eClasses.SHAPESHIFTER],616 rarity: eRarity.EPIC617 });618 champions.set('Idas', {619 name: 'Idas',620 image: 'https://rerollcdn.com/characters/Skin/7/Idas.png',621 baseWeight: 1.24,622 newSynergyWeight: 0,623 sameSynergyWeight: 0,624potentialSynergyPoints: 0,625tierlistPoints:0,626 totalWeight: 0,627 origin: [eOrigins.SHIMMERSCALE, eOrigins.SHIMMERSCALE, eOrigins.SHIMMERSCALE],628 classes: [eClasses.GUARDIAN, eClasses.DRAGON],629 rarity: eRarity.DRAGON_EPIC630 });631 champions.set('Daeja', {632 name: 'Daeja',633 image: 'https://rerollcdn.com/characters/Skin/7/Daeja.png',634 baseWeight: 1.48,635 newSynergyWeight: 0,636 sameSynergyWeight: 0,637potentialSynergyPoints: 0,638tierlistPoints:0,639 totalWeight: 0,640 origin: [eOrigins.MIRAGE, eOrigins.MIRAGE, eOrigins.MIRAGE],641 classes: [eClasses.DRAGON],642 rarity: eRarity.DRAGON_EPIC643 });644 champions.set('Shi Oh Yu', {645 name: 'Shi Oh Yu',646 image: 'https://rerollcdn.com/characters/Skin/7/ShiOhYu.png',647 baseWeight: 1.74,648 newSynergyWeight: 0,649 sameSynergyWeight: 0,650potentialSynergyPoints: 0,651tierlistPoints:0,652 totalWeight: 0,653 origin: [eOrigins.JADE, eOrigins.JADE, eOrigins.JADE],654 classes: [eClasses.MYSTIC, eClasses.DRAGON],655 rarity: eRarity.DRAGON_EPIC656 });657 champions.set('Syfen', {658 name: 'Syfen',659 image: 'https://rerollcdn.com/characters/Skin/7/Syfen.png',660 baseWeight: 1.78,661 newSynergyWeight: 0,662 sameSynergyWeight: 0,663potentialSynergyPoints: 0,664tierlistPoints:0,665 totalWeight: 0,666 origin: [eOrigins.WHISPERS,eOrigins.WHISPERS,eOrigins.WHISPERS],667 classes: [eClasses.BRUISER,eClasses.DRAGON],668 rarity: eRarity.DRAGON_EPIC669 });670 champions.set('Pyke', {671 name: 'Pyke',672 image: 'https://rerollcdn.com/characters/Skin/7/Pyke.png',673 baseWeight: 2,674 newSynergyWeight: 0,675 sameSynergyWeight: 0,676potentialSynergyPoints: 0,677tierlistPoints:0,678 totalWeight: 0,679 origin: [eOrigins.WHISPERS],680 classes: [eClasses.ASSASSIN],681 rarity: eRarity.LEGENDARY682 });683 champions.set('Zoe', {684 name: 'Zoe',685 image: 'https://rerollcdn.com/characters/Skin/7/Zoe.png',686 baseWeight: 1.96,687 newSynergyWeight: 0,688 sameSynergyWeight: 0,689potentialSynergyPoints: 0,690tierlistPoints:0,691 totalWeight: 0,692 origin: [eOrigins.SHIMMERSCALE],693 classes: [eClasses.MAGE],694 rarity: eRarity.LEGENDARY695 });696 champions.set('Soraka', {697 name: 'Soraka',698 image: 'https://rerollcdn.com/characters/Skin/7/Soraka.png',699 baseWeight: 2.02,700 newSynergyWeight: 0,701 sameSynergyWeight: 0,702potentialSynergyPoints: 0,703tierlistPoints:0,704 totalWeight: 0,705 origin: [eOrigins.JADE],706 classes: [],707 rarity: eRarity.LEGENDARY708 });709 champions.set('Yasuo', {710 name: 'Yasuo',711 image: 'https://rerollcdn.com/characters/Skin/7/Yasuo.png',712 baseWeight: 1.94,713 newSynergyWeight: 0,714 sameSynergyWeight: 0,715potentialSynergyPoints: 0,716tierlistPoints:0,717 totalWeight: 0,718 origin: [eOrigins.MIRAGE],719 classes: [eClasses.DRAGONMANCER,eClasses.WARRIOR],720 rarity: eRarity.LEGENDARY721 });722 champions.set('Bard', {723 name: 'Bard',724 image: 'https://rerollcdn.com/characters/Skin/7/Bard.png',725 baseWeight: 2.04,726 newSynergyWeight: 0,727 sameSynergyWeight: 0,728potentialSynergyPoints: 0,729tierlistPoints:0,730 totalWeight: 0,731 origin: [eOrigins.GUILD],732 classes: [eClasses.MYSTIC, eClasses.BARD],733 rarity: eRarity.LEGENDARY734 });735 champions.set('Ao Shin', {736 name: 'Ao Shin',737 image: 'https://rerollcdn.com/characters/Skin/7/AoShin.png',738 baseWeight: 1.92,739 newSynergyWeight: 0,740 sameSynergyWeight: 0,741potentialSynergyPoints: 0,742tierlistPoints:0,743 totalWeight: 0,744 origin: [eOrigins.TEMPEST, eOrigins.TEMPEST, eOrigins.TEMPEST],745 classes: [eClasses.DRAGON],746 rarity: eRarity.DRAGON_LEGENDARY747 });748 champions.set('Aurelion Sol', {749 name: 'Aurelion Sol',750 image: 'https://rerollcdn.com/characters/Skin/7/AurelionSol.png',751 baseWeight: 1.9,752 newSynergyWeight: 0,753 sameSynergyWeight: 0,754potentialSynergyPoints: 0,755tierlistPoints:0,756 totalWeight: 0,757 origin: [eOrigins.ASTRAL, eOrigins.ASTRAL, eOrigins.ASTRAL],758 classes: [eClasses.EVOKER,eClasses.DRAGON],759 rarity: eRarity.DRAGON_LEGENDARY760 });761 champions.set('Shyvana', {762 name: 'Shyvana',763 image: 'https://rerollcdn.com/characters/Skin/7/Shyvana.png',764 baseWeight: 1.98,765 newSynergyWeight: 0,766 sameSynergyWeight: 0,767potentialSynergyPoints: 0,768tierlistPoints:0,769 totalWeight: 0,770 origin: [eOrigins.RAGEWING, eOrigins.RAGEWING, eOrigins.RAGEWING],771 classes: [eClasses.SHAPESHIFTER, eClasses.DRAGON],772 rarity: eRarity.DRAGON_LEGENDARY773 });774 return champions;775 }...
Shipping.js
Source:Shipping.js
1import React, { useContext, useEffect, useState } from "react";2import BasketContext from "../../../../context/BasketContext";3import UserContext from "../../../../context/UserContext";4export const Shipping = () => {5 const {6 shoppingCart,7 setShoppingCart,8 count,9 incrementCounter,10 location,11 setLocation,12 productCost,13 deliveryCost,14 setDeliveryCost,15 } = useContext(BasketContext);16 // const [deliveryCost, setDeliveryCost] = useState(0);17 const calculateDeliveryCost = () => {18 let totalWeight = 0;19 let cost = 0;20 shoppingCart.map((item) => (totalWeight += item.weight * item.amount));21 console.log(totalWeight);22 switch (location) {23 case "UK MAINLAND":24 if (totalWeight <= 1000) {25 cost = 2.99;26 } else if (totalWeight > 1000 && totalWeight <= 2000) {27 cost = 4.99;28 } else if (totalWeight > 2000 && totalWeight <= 5000) {29 cost = 6.99;30 } else if (totalWeight > 5000 && totalWeight <= 10000) {31 cost = 8.99;32 } else if (totalWeight > 10000 && totalWeight <= 20000) {33 cost = 11.99;34 } else {35 cost = 20;36 }37 break;38 case "NORTHERN IRELAND":39 if (totalWeight <= 1000) {40 cost = 4.99;41 } else if (totalWeight > 1000 && totalWeight <= 2000) {42 cost = 5.99;43 } else if (totalWeight > 2000 && totalWeight <= 5000) {44 cost = 8.99;45 } else if (totalWeight > 5000 && totalWeight <= 10000) {46 cost = 10.99;47 } else if (totalWeight > 10000 && totalWeight <= 20000) {48 cost = 14.99;49 } else {50 cost = 24.99;51 }52 break;53 case "IRELAND":54 if (totalWeight <= 1000) {55 cost = 7.99;56 } else if (totalWeight > 1000 && totalWeight <= 2000) {57 cost = 9.49;58 } else if (totalWeight > 2000 && totalWeight <= 5000) {59 cost = 11.99;60 } else if (totalWeight > 5000 && totalWeight <= 10000) {61 cost = 14.99;62 } else if (totalWeight > 10000 && totalWeight <= 20000) {63 cost = 19.99;64 } else {65 cost = 24.99;66 }67 break;68 case "SCOTTISH HIGHLANDS & ISLANDS":69 if (totalWeight <= 1000) {70 cost = 5.99;71 } else if (totalWeight > 1000 && totalWeight <= 2000) {72 cost = 7.49;73 } else if (totalWeight > 2000 && totalWeight <= 5000) {74 cost = 9.99;75 } else if (totalWeight > 5000 && totalWeight <= 10000) {76 cost = 12.99;77 } else if (totalWeight > 10000 && totalWeight <= 20000) {78 cost = 15.99;79 } else {80 cost = 24.99;81 }82 break;83 case "COLLECTION":84 cost = 0;85 break;86 }87 setDeliveryCost(cost);88 console.log(cost);89 // console.log(deliveryCost);90 };91 useEffect(() => {92 calculateDeliveryCost();93 }, [shoppingCart]);94 useEffect(() => {95 calculateDeliveryCost();96 }, [location]);97 const handleRadioButtion = (e) => {98 setLocation(e.target.value);99 };100 return (101 <div className="checkout-delivery-cost">102 <div className="checkout-delivery-options-container">103 <h4>SELECT YOUR SHIPPING LOCATION:</h4>104 <form105 className="checkout-delivery-options-form"106 onChange={handleRadioButtion}107 >108 <label>109 <input type="radio" value="COLLECTION" name="radio-button" />110 COLLECT FROM STORE111 </label>112 <label>113 <input type="radio" value="UK MAINLAND" name="radio-button" />114 UK MAINLAND115 </label>116 <label>117 <input type="radio" value="NORTHERN IRELAND" name="radio-button" />118 NORTHERN IRELAND119 </label>120 <label>121 <input type="radio" value="IRELAND" name="radio-button" />122 IRELAND123 </label>124 <label>125 <input126 type="radio"127 value="SCOTTISH HIGHLANDS & ISLANDS"128 name="radio-button"129 />130 SCOTTISH HIGHLANDS & ISLANDS131 </label>132 </form>133 </div>134 </div>135 );...
Using AI Code Generation
1const fc = require('fast-check');2const { totalWeight } = require('fast-check-monorepo');3const fc = require('fast-check');4const { totalWeight } = require('fast-check-monorepo');5const { totalWeight } = require('fast-check-monorepo');6const fc = require('fast-check');7const { totalWeight } = require('fast-check-monorepo');8const { totalWeight } = require('fast-check-monorepo');9const fc = require('fast-check');10const { totalWeight } = require('fast-check-monorepo');11const { totalWeight } = require('fast-check-monorepo');12const fc = require('fast-check');13const { totalWeight } = require('fast-check-monorepo');14const { totalWeight } = require('fast-check-monorepo');15const fc = require('fast-check');16const { totalWeight } = require('fast-check-monorepo');17const { totalWeight } = require('fast-check-monorepo');18const fc = require('fast-check');19const { totalWeight } = require('fast-check-monorepo');20const { totalWeight } = require('fast-check-monorepo');21const fc = require('fast-check');22const { totalWeight } = require('fast-check-monorepo');23const { totalWeight } = require('fast-check-monorepo');24const fc = require('fast-check');25const { totalWeight } = require('fast-check-monorepo');26const { totalWeight } = require('fast-check-monorepo');27const fc = require('fast-check');28const { totalWeight } = require('fast-check-monorepo');29const { totalWeight } = require('fast-check-monorepo');30const fc = require('fast-check');31const { totalWeight
Using AI Code Generation
1const { totalWeight } = require('fast-check-monorepo');2console.log(totalWeight(1, 2, 3));3{4 "scripts": {5 },6 "dependencies": {7 }8}
Using AI Code Generation
1const { totalWeight } = require('fast-check-monorepo')2const { totalWeight } = require('fast-check-monorepo')3const { totalWeight } = require('fast-check-monorepo')4const { totalWeight } = require('fast-check-monorepo')5const { totalWeight } = require('fast-check-monorepo')6console.log(totalWeight(1, 2,
Using AI Code Generation
1const fc = require("fast-check");2const { totalWeight } = require("fast-check/lib/check/arbitrary/TotalWeightArbitrary");3const { Weighted } = require("fast-check/lib/check/arbitrary/WeightedArbitrary");4const { WeightedTuple } = require("fast-check/lib/check/arbitrary/WeightedTupleArbitrary");5const { WeightedObject } = require("fast-check/lib/check/arbitrary/WeightedObjectArbitrary");6const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);7const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);8const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);9const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);10const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);11const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);12const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);13const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);14const totalWeightArbitrary = totalWeight([Weighted.weighted(1, fc.nat()), Weighted.weighted(2, fc.nat())]);
Using AI Code Generation
1import { totalWeight } from "fast-check-monorepo";2const result = totalWeight({ a: 1, b: 2, c: 3 });3import { totalWeight } from "fast-check-monorepo";4const result = totalWeight({ a: 1, b: 2, c: 3 });5import { totalWeight } from "fast-check-monorepo";6const result = totalWeight({ a: 1, b: 2, c: 3 });7import { totalWeight } from "fast-check-monorepo";8const result = totalWeight({ a: 1, b: 2, c: 3 });9import { totalWeight } from "fast-check-monorepo";10const result = totalWeight({ a: 1, b: 2, c: 3 });11import { totalWeight } from "fast-check-monorepo";12const result = totalWeight({ a: 1, b: 2, c: 3 });13import { totalWeight } from "fast-check-monorepo";14const result = totalWeight({ a: 1, b: 2, c: 3 });
Using AI Code Generation
1const fc = require('fast-check');2const {totalWeight} = require('fast-check-monorepo');3const {totalWeight} = require('fast-check-monorepo');4fc.assert(5 fc.property(fc.array(fc.nat()), (array) => totalWeight(array) >= 0)6);7[Image] [GitHub](github.com/rahulbhadani/fast-c...) [Image] 8### [rahulbhadani/fast-check-monorepo](github.com/rahulbhadani/fast-c...)
Using AI Code Generation
1import { totalWeight } from 'fast-check-monorepo'2import { totalWeight } from 'fast-check-monorepo'3import { totalWeight } from 'fast-check-monorepo'4import { totalWeight } from 'fast-check-monorepo'5import { totalWeight } from 'fast-check-monorepo'6import { totalWeight } from 'fast-check-monorepo'7import { totalWeight } from 'fast-check-monorepo'8const result = totalWeight([1, 2, 3, 4, 5, 6, 7,
Using AI Code Generation
1const { totalWeight } = require('fast-check-monorepo');2const arr = Array(1000).fill(0).map(() => totalWeight(1));3const sum = arr.reduce((a, b) => a + b, 0);4console.log(sum);5const { totalWeight } = require('fast-check-monorepo');6const arr = Array(1000).fill(0).map(() => totalWeight(1));7const sum = arr.reduce((a, b) => a + b, 0);8console.log(sum);9const { totalWeight } = require('fast-check-monorepo');10const arr = Array(1000).fill(0).map(() => totalWeight(1));11const sum = arr.reduce((a, b) => a + b, 0);12console.log(sum);13const { totalWeight } = require('fast-check-monorepo');14const arr = Array(1000).fill(0).map(() => totalWeight(1));15const sum = arr.reduce((a, b) => a + b, 0);16console.log(sum);17const { totalWeight } = require('fast-check-monorepo');18const arr = Array(1000).fill(0).map(() => totalWeight(1));19const sum = arr.reduce((a, b) => a + b, 0);20console.log(sum);
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!