1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opener = _____WB$wombat$assign$function_____("opener"); 10'use strict'; 11 12const AllTypesProps = { 13 BigIntType: "String", 14 BooleanType: "String", 15 FloatType: "String", 16 inputDataObject:{ 17 product_quantity:{ 18 type:"Int", 19 array:false, 20 arrayRequired:false, 21 required:false 22 }, 23 cart_name:{ 24 type:"String", 25 array:false, 26 arrayRequired:false, 27 required:false 28 }, 29 user_id:{ 30 type:"Int", 31 array:false, 32 arrayRequired:false, 33 required:false 34 }, 35 item_id:{ 36 type:"Int", 37 array:false, 38 arrayRequired:false, 39 required:false 40 }, 41 price_location_id:{ 42 type:"Int", 43 array:false, 44 arrayRequired:false, 45 required:false 46 }, 47 model:{ 48 type:"String", 49 array:false, 50 arrayRequired:false, 51 required:false 52 } 53 }, 54 IntType: "String", 55 Mutation:{ 56 V1AddToCart:{ 57 item_id:{ 58 type:"Int", 59 array:false, 60 arrayRequired:false, 61 required:false 62 }, 63 product_quantity:{ 64 type:"Int", 65 array:false, 66 arrayRequired:false, 67 required:false 68 }, 69 cart_name:{ 70 type:"String", 71 array:false, 72 arrayRequired:false, 73 required:false 74 }, 75 user_id:{ 76 type:"Int", 77 array:false, 78 arrayRequired:false, 79 required:false 80 }, 81 model:{ 82 type:"String", 83 array:false, 84 arrayRequired:false, 85 required:false 86 }, 87 price_location_id:{ 88 type:"Int", 89 array:false, 90 arrayRequired:false, 91 required:false 92 }, 93 location_id:{ 94 type:"Int", 95 array:false, 96 arrayRequired:false, 97 required:false 98 }, 99 bu_type:{ 100 type:"String", 101 array:false, 102 arrayRequired:false, 103 required:false 104 }, 105 id_reorder:{ 106 type:"Int", 107 array:false, 108 arrayRequired:false, 109 required:false 110 }, 111 campaign_id:{ 112 type:"Int", 113 array:true, 114 arrayRequired:false, 115 required:false 116 } 117 }, 118 V1UpdateCart:{ 119 input:{ 120 type:"inputDataObject", 121 array:true, 122 arrayRequired:false, 123 required:false 124 } 125 }, 126 V1DeleteCart:{ 127 item_id:{ 128 type:"Int", 129 array:false, 130 arrayRequired:false, 131 required:false 132 }, 133 cart_name:{ 134 type:"String", 135 array:false, 136 arrayRequired:false, 137 required:false 138 }, 139 user_id:{ 140 type:"Int", 141 array:false, 142 arrayRequired:false, 143 required:false 144 } 145 }, 146 V1DeleteAllCart:{ 147 cart_name:{ 148 type:"String", 149 array:false, 150 arrayRequired:false, 151 required:false 152 } 153 }, 154 V1DeleteCartDetailItems:{ 155 item_id:{ 156 type:"Int", 157 array:true, 158 arrayRequired:false, 159 required:false 160 }, 161 cart_name:{ 162 type:"String", 163 array:false, 164 arrayRequired:false, 165 required:false 166 } 167 }, 168 V1ReOrderProduct:{ 169 input:{ 170 type:"ReOrderInput", 171 array:true, 172 arrayRequired:false, 173 required:false 174 } 175 } 176 }, 177 Query:{ 178 V1GetProvince:{ 179 id:{ 180 type:"Int", 181 array:false, 182 arrayRequired:false, 183 required:true 184 } 185 }, 186 V1GetCity:{ 187 id:{ 188 type:"Int", 189 array:false, 190 arrayRequired:false, 191 required:true 192 } 193 }, 194 V1GetDistrict:{ 195 id:{ 196 type:"Int", 197 array:false, 198 arrayRequired:false, 199 required:true 200 } 201 }, 202 V1GetSubdistrict:{ 203 id:{ 204 type:"Int", 205 array:false, 206 arrayRequired:false, 207 required:true 208 } 209 }, 210 V1GetCart:{ 211 cart_name:{ 212 type:"String", 213 array:false, 214 arrayRequired:false, 215 required:false 216 }, 217 user_id:{ 218 type:"Int", 219 array:false, 220 arrayRequired:false, 221 required:false 222 } 223 } 224 }, 225 ReOrderInput:{ 226 item_id:{ 227 type:"Int", 228 array:false, 229 arrayRequired:false, 230 required:false 231 }, 232 id_reorder:{ 233 type:"Int", 234 array:false, 235 arrayRequired:false, 236 required:false 237 }, 238 item_name:{ 239 type:"String", 240 array:false, 241 arrayRequired:false, 242 required:false 243 }, 244 product_quantity:{ 245 type:"Int", 246 array:false, 247 arrayRequired:false, 248 required:false 249 }, 250 price:{ 251 type:"String", 252 array:false, 253 arrayRequired:false, 254 required:false 255 }, 256 vendor_id:{ 257 type:"Int", 258 array:false, 259 arrayRequired:false, 260 required:false 261 }, 262 minimum_order:{ 263 type:"Int", 264 array:false, 265 arrayRequired:false, 266 required:false 267 }, 268 image:{ 269 type:"String", 270 array:false, 271 arrayRequired:false, 272 required:false 273 }, 274 status:{ 275 type:"String", 276 array:false, 277 arrayRequired:false, 278 required:false 279 }, 280 message:{ 281 type:"String", 282 array:false, 283 arrayRequired:false, 284 required:false 285 }, 286 unique_id:{ 287 type:"String", 288 array:false, 289 arrayRequired:false, 290 required:false 291 } 292 }, 293 StringType: "String" 294}; 295 296const ReturnTypes = { 297 analyticsCart:{ 298 productID:"IntType", 299 productSKUID:"StringType", 300 productName:"StringType", 301 productBrand:"StringType",
302 productImageUrl:"StringType", 303 productUrl:"StringType", 304 productQuantity:"IntType", 305 productVariant:"StringType", 306 productCategoryID:"IntType", 307 productCategoryName:"StringType", 308 cartID:"IntType", 309 cartTax:"BigIntType", 310 cartShipping:"BigIntType", 311 cartAbandonURL:"StringType", 312 currency:"StringType", 313 productPrice:"BigIntType", 314 productDiscount:"BigIntType", 315 cartTotal:"BigIntType", 316 revenue:"BigIntType" 317 }, 318 atcResultCart:{ 319 message:"StringType", 320 status:"StringType", 321 result:"resultAtcCart" 322 }, 323 atcResultCartDeleted:{ 324 message:"StringType", 325 status:"StringType", 326 analytics:"resultAtcCartDeleted" 327 }, 328 campaignDetail:{ 329 campaign_name:"StringType", 330 campaign_detail_id:"StringType", 331 campaign_start:"StringType", 332 campaign_end:"StringType", 333 quantity_id:"StringType", 334 quantity:"StringType", 335 max_buy_qty:"IntType", 336 quantity_used:"IntType", 337 remaining_stock:"IntType" 338 }, 339 campaignDetailDeleted:{ 340 campaign_name:"StringType", 341 campaign_detail_id:"StringType", 342 campaign_start:"StringType", 343 campaign_end:"StringType", 344 quantity_id:"StringType", 345 quantity:"StringType", 346 max_buy_qty:"IntType", 347 quantity_used:"IntType", 348 remaining_stock:"IntType" 349 }, 350 CartProduct:{ 351 result:"resultDetailsCart", 352 message:"StringType" 353 }, 354 CartProductDeleted:{ 355 result:"resultDetailsCartDeleted", 356 message:"StringType" 357 }, 358 City:{ 359 id:"ID", 360 name:"String", 361 created_at:"String", 362 updated_at:"String", 363 province:"Province" 364 }, 365 configsCart:{ 366 cc_percentage:"FloatType" 367 }, 368 configsCartDeleted:{ 369 cc_percentage:"FloatType" 370 }, 371 detailCart:{ 372 id:"IntType", 373 name:"StringType", 374 microsite_url:"StringType", 375 description_schedule:"StringType", 376 ss_type:"StringType", 377 ss_type_name:"StringType", 378 ss_type_image:"StringType", 379 is_open:"StringType", 380 close_at:"StringType", 381 open_at:"StringType", 382 details:"detailsCart", 383 vendor_price_subtotal:"IntType" 384 }, 385 detailCartDeleted:{ 386 id:"IntType", 387 name:"StringType", 388 microsite_url:"StringType", 389 details:"detailsCartDeleted", 390 vendor_price_subtotal:"IntType" 391 }, 392 detailDailyDeals:{ 393 campaign_id:"IntType", 394 event_name:"StringType", 395 dailydeals_serial:"StringType", 396 campaign_detail_id:"IntType" 397 }, 398 detailDailyDealsDeleted:{ 399 campaign_id:"IntType", 400 event_name:"StringType", 401 dailydeals_serial:"StringType", 402 campaign_detail_id:"IntType" 403 }, 404 detailsCart:{ 405 created_at:"StringType", 406 updated_at:"StringType", 407 deleted_at:"StringType", 408 vendor_id:"IntType", 409 id_item:"IntType", 410 item_name:"StringType", 411 price:"BigIntType", 412 product_quantity:"IntType", 413 discount:"BigIntType", 414 price_location_id:"IntType", 415 location_id:"IntType", 416 available_stock:"IntType", 417 business_unit:"StringType", 418 id_reorder:"IntType", 419 minimum_order:"IntType", 420 maximum_order:"IntType", 421 dim_uom:"StringType", 422 default_image:"StringType", 423 alias:"StringType", 424 product_price_subtotal:"FloatType", 425 product_strike_price_subtotal:"FloatType", 426 campaign:"campaignDetail", 427 prices:"pricesCart", 428 is_stock_available:"IntType", 429 stock_type:"StringType" 430 }, 431 detailsCartDeleted:{ 432 created_at:"StringType", 433 updated_at:"StringType", 434 deleted_at:"StringType", 435 vendor_id:"IntType", 436 id_item:"IntType", 437 item_name:"StringType", 438 price:"BigIntType", 439 product_quantity:"IntType", 440 discount:"BigIntType", 441 price_location_id:"IntType", 442 location_id:"IntType", 443 business_unit:"StringType", 444 id_reorder:"IntType", 445 minimum_order:"IntType", 446 maximum_order:"IntType", 447 dim_uom:"StringType", 448 default_image:"StringType", 449 alias:"StringType", 450 product_price_subtotal:"FloatType", 451 campaign:"campaignDetailDeleted", 452 prices:"pricesCartDeleted" 453 }, 454 District:{ 455 id:"ID", 456 name:"String", 457 created_at:"String", 458 updated_at:"String", 459 province:"Province", 460 city:"City" 461 }, 462 Mutation:{ 463 V1AddToCart:"CartProduct", 464 V1UpdateCart:"CartProduct", 465 V1DeleteCart:"CartProduct", 466 V1DeleteAllCart:"CartProduct", 467 V1DeleteCartDetailItems:"CartProductDeleted", 468 V1ReOrderProduct:"CartProduct" 469 }, 470 objectAnalyticsCart:{ 471 cartTotal:"BigIntType", 472 revenue:"BigIntType", 473 cartID:"IntType", 474 cartTax:"BigIntType", 475 cartShipping:"BigIntType", 476 cartAbandonURL:"StringType", 477 currency:"StringType" 478 }, 479 objectAnalyticsProduct:{ 480 productID:"IntType", 481 productSKUID:"StringType", 482 productName:"StringType", 483 productBrand:"StringType",
484 productImageUrl:"StringType", 485 productUrl:"StringType", 486 productQuantity:"IntType", 487 productVariant:"StringType", 488 productCategoryID:"IntType", 489 productCategoryName:"StringType", 490 productPrice:"BigIntType", 491 productDiscount:"BigIntType" 492 }, 493 pricesCart:{ 494 price:"BigIntType", 495 price_tag:"StringType", 496 quantity_start:"IntType", 497 quantity_end:"IntType", 498 currency:"StringType", 499 discount:"BigIntType", 500 start_sale:"StringType", 501 end_sale:"StringType", 502 is_campaign:"BooleanType" 503 }, 504 pricesCartDeleted:{ 505 price:"BigIntType", 506 price_tag:"StringType", 507 quantity_start:"IntType", 508 quantity_end:"IntType", 509 currency:"StringType", 510 discount:"BigIntType", 511 start_sale:"StringType", 512 end_sale:"StringType", 513 is_campaign:"BooleanType" 514 }, 515 Province:{ 516 id:"ID", 517 name:"String", 518 created_at:"String", 519 updated_at:"String" 520 }, 521 Query:{ 522 V1GetProvince:"Province", 523 V1GetCity:"City", 524 V1GetDistrict:"District", 525 V1GetSubdistrict:"Subdistrict", 526 V1GetCart:"CartProduct" 527 }, 528 resultAtcCart:{ 529 analytics:"analyticsCart", 530 cookie:"StringType" 531 }, 532 resultAtcCartDeleted:{ 533 products:"objectAnalyticsProduct", 534 cart:"objectAnalyticsCart" 535 }, 536 resultDetailsCart:{ 537 id:"IntType", 538 id_user:"IntType", 539 name:"StringType", 540 total_weight:"StringType", 541 total_price:"StringType", 542 is_qr:"IntType", 543 created_at:"StringType", 544 updated_at:"StringType", 545 deleted_at:"StringType", 546 discount:"FloatType", 547 total_quantity:"IntType", 548 detail:"detailCart", 549 configs:"configsCart", 550 is_available_cc:"BooleanType", 551 is_avalaible_top:"BooleanType", 552 vendor_ceiling:"BigIntType", 553 top_left:"BigIntType", 554 tenor_day:"BigIntType", 555 on_daily_deals:"detailDailyDeals", 556 atc_validation_result:"atcResultCart" 557 }, 558 resultDetailsCartDeleted:{ 559 id:"IntType", 560 id_user:"IntType", 561 name:"StringType", 562 total_weight:"StringType", 563 total_price:"StringType", 564 is_qr:"IntType", 565 created_at:"StringType", 566 updated_at:"StringType", 567 deleted_at:"StringType", 568 discount:"FloatType", 569 total_quantity:"IntType", 570 detail:"detailCartDeleted", 571 configs:"configsCartDeleted", 572 is_available_cc:"BooleanType", 573 is_avalaible_top:"BooleanType", 574 vendor_ceiling:"BigIntType", 575 top_left:"BigIntType", 576 tenor_day:"BigIntType", 577 on_daily_deals:"detailDailyDealsDeleted", 578 atc_validation_result:"atcResultCartDeleted" 579 }, 580 Subdistrict:{ 581 id:"ID", 582 name:"String", 583 province:"Province", 584 postal_code:"String", 585 created_at:"String", 586 updated_at:"String", 587 city:"City", 588 district:"District" 589 } 590}; 591 592 593 const ScalarResolver = (scalar, value) => { 594 switch (scalar) { 595 case 'String': 596 return `"${value}"`; 597 case 'Int': 598 return `${value}`; 599 case 'Float': 600 return `${value}`; 601 case 'Boolean': 602 return `${value}`; 603 case 'ID': 604 return `"${value}"`; 605 case 'enum': 606 return `${value}`; 607 case 'scalar': 608 return `${value}`; 609 default: 610 return false; 611 } 612 }; 613 614 const TypesPropsResolver = ({ 615 value, 616 type, 617 name, 618 key, 619 blockArrays 620 }) => { 621 if (value === null) { 622 return `null`; 623 } 624 let resolvedValue = AllTypesProps[type][name]; 625 if (key) { 626 resolvedValue = resolvedValue[key]; 627 } 628 const typeResolved = resolvedValue.type; 629 const isArray = resolvedValue.array; 630 if (isArray && !blockArrays) { 631 return `[${value 632 .map((v) => TypesPropsResolver({ value: v, type, name, key, blockArrays: true })) 633 .join(',')}]`; 634 } 635 const reslovedScalar = ScalarResolver(typeResolved, value); 636 if (!reslovedScalar) { 637 const resolvedType = AllTypesProps[typeResolved]; 638 if (typeof resolvedType === 'object') { 639 const argsKeys = Object.keys(resolvedType); 640 return `{${argsKeys 641 .filter((ak) => value[ak] !== undefined) 642 .map( 643 (ak) => `${ak}:${TypesPropsResolver({ value: value[ak], type: typeResolved, name: ak })}` 644 )}}`; 645 } 646 return ScalarResolver(AllTypesProps[typeResolved], value); 647 } 648 return reslovedScalar; 649 }; 650 651 const isArrayFunction = ( 652 parent, 653 a 654 ) => { 655 const [values, r] = a; 656 const [mainKey, key, ...keys] = parent;
657 const keyValues = Object.keys(values); 658 659 if (!keys.length) { 660 return keyValues.length > 0 661 ? `(${keyValues 662 .map( 663 (v) => 664 `${v}:${TypesPropsResolver({ 665 value: values[v], 666 type: mainKey, 667 name: key, 668 key: v 669 })}` 670 ) 671 .join(',')})${r ? traverseToSeekArrays(parent, r) : ''}` 672 : traverseToSeekArrays(parent, r); 673 } 674 675 const [typeResolverKey] = keys.splice(keys.length - 1, 1); 676 let valueToResolve = ReturnTypes[mainKey][key]; 677 for (const k of keys) { 678 valueToResolve = ReturnTypes[valueToResolve][k]; 679 } 680 681 const argumentString = 682 keyValues.length > 0 683 ? `(${keyValues 684 .map( 685 (v) => 686 `${v}:${TypesPropsResolver({ 687 value: values[v], 688 type: valueToResolve, 689 name: typeResolverKey, 690 key: v 691 })}` 692 ) 693 .join(',')})${r ? traverseToSeekArrays(parent, r) : ''}` 694 : traverseToSeekArrays(parent, r); 695 return argumentString; 696 }; 697 698 const resolveKV = (k, v) => 699 typeof v === 'boolean' ? k : typeof v === 'object' ? `${k}{${objectToTree(v)}}` : `${k}${v}`; 700 701 const objectToTree = (o) => 702 `{${Object.keys(o).map((k) => `${resolveKV(k, o[k])}`).join(' ')}}`; 703 704const traverseToSeekArrays = (parent, a) => { 705 if (!a) return ''; 706 if (Object.keys(a).length === 0) { 707 return ''; 708 } 709 let b = {}; 710 if (Array.isArray(a)) { 711 return isArrayFunction([...parent], a); 712 } else { 713 if (typeof a === 'object') { 714 Object.keys(a).map((k) => { 715 if (k === '__alias') { 716 Object.keys(a[k]).map((aliasKey) => { 717 const aliasOperations = a[k][aliasKey]; 718 const aliasOperationName = Object.keys(aliasOperations)[0]; 719 const aliasOperation = aliasOperations[aliasOperationName]; 720 b[ 721 `${aliasOperationName}__alias__${aliasKey}: ${aliasOperationName}` 722 ] = traverseToSeekArrays([...parent, aliasOperationName], aliasOperation); 723 }); 724 } else { 725 b[k] = traverseToSeekArrays([...parent, k], a[k]); 726 } 727 }); 728 } else { 729 return ''; 730 } 731 } 732 return objectToTree(b); 733}; 734 735 const buildQuery = (type, a) => 736 traverseToSeekArrays([type], a).replace(/\"([^{^,^\n^\"]*)\":([^{^,^\n^\"]*)/g, '$1:$2'); 737 738 const queryConstruct = (t) => (o) => `${t.toLowerCase()}${buildQuery(t, o)}`; 739 740 const fullChainConstruct = (options) => (t) => (o) => apiFetch(options, queryConstruct(t)(o)); 741 const seekForAliases = (o) => { 742 if (typeof o === 'object' && o) { 743 const keys = Object.keys(o); 744 if (keys.length < 1) { 745 return; 746 } 747 keys.forEach((k) => { 748 const value = o[k]; 749 if (k.indexOf('__alias__') !== -1) { 750 const [operation, alias] = k.split('__alias__'); 751 o[alias] = { 752 [operation]: value 753 }; 754 delete o[k]; 755 } else { 756 if (Array.isArray(value)) { 757 value.forEach(seekForAliases); 758 } else { 759 if (typeof value === 'object') { 760 seekForAliases(value); 761 } 762 } 763 } 764 }); 765 } 766 }; 767 768const apiFetch = (options, query) => { 769 const fetchFunction = fetch; 770 let queryString = query; 771 let fetchOptions = options[1] || {}; 772 if (fetchOptions.method && fetchOptions.method === 'GET') { 773 queryString = encodeURIComponent(query); 774 return fetchFunction(`${options[0]}?query=${queryString}`, fetchOptions) 775 .then( 776async response => { 777 const { status } = response;
778 const result = await response.json(); 779 const statusChecker = new RegExp(/20[01]/g); 780 781 seekForAliases(result.data); 782 let manipulateResponse = {}; 783 let pointer = ''; 784 const pointerValidator = new RegExp(/^(V)([0-9])([A-Za-z0-9]*)/); 785 786 if (!result.data) throw new Error('unspected response from Ralali API, please contact developers [ERROR_CODE: fO9PRdT5GE]'); 787 788 pointer = Object.entries(result.data).map(([item]) => item); 789 790 if (!pointerValidator.test(pointer)) throw new Error('unspected response from Ralali API, please contact developers [ERROR_CODE: CBStCUdgF4]'); 791 792 const mutatedResult = { 793 data: result.data[pointer], 794 status: status 795 }; 796 797 manipulateResponse[pointer] = mutatedResult; 798 799 if (!statusChecker.test(status)) { 800 let message = 'Invalid request'; 801 if (mutatedResult.data.message) message = mutatedResult.data.message; 802 803 const errorMessage = new Error(message); 804 errorMessage.response = mutatedResult; 805 806 throw errorMessage 807 } 808 809 return manipulateResponse; 810} 811); 812 } 813 return fetchFunction(`${options[0]}`, { 814 body: JSON.stringify({ query: queryString }), 815 method: 'POST', 816 headers: { 817 'Content-Type': 'application/json' 818 }, 819 ...fetchOptions 820 }) 821 .then( 822async response => { 823 const { status } = response;
824 const result = await response.json(); 825 const statusChecker = new RegExp(/20[01]/g); 826 827 seekForAliases(result.data); 828 let manipulateResponse = {}; 829 let pointer = ''; 830 const pointerValidator = new RegExp(/^(V)([0-9])([A-Za-z0-9]*)/); 831 832 if (!result.data) throw new Error('unspected response from Ralali API, please contact developers [ERROR_CODE: fO9PRdT5GE]'); 833 834 pointer = Object.entries(result.data).map(([item]) => item); 835 836 if (!pointerValidator.test(pointer)) throw new Error('unspected response from Ralali API, please contact developers [ERROR_CODE: CBStCUdgF4]'); 837 838 const mutatedResult = { 839 data: result.data[pointer], 840 status: status 841 }; 842 843 manipulateResponse[pointer] = mutatedResult; 844 845 if (!statusChecker.test(status)) { 846 let message = 'Invalid request'; 847 if (mutatedResult.data.message) message = mutatedResult.data.message; 848 849 const errorMessage = new Error(message); 850 errorMessage.response = mutatedResult; 851 852 throw errorMessage 853 } 854 855 return manipulateResponse; 856} 857); 858 }; 859 const Api = (...options) => ({ 860 Query: { 861 V1GetProvince: (o) => 862 fullChainConstruct(options)('Query')({ 863 V1GetProvince: o 864 }).then((response) => response.V1GetProvince), 865V1GetCity: (o) => 866 fullChainConstruct(options)('Query')({ 867 V1GetCity: o 868 }).then((response) => response.V1GetCity), 869V1GetDistrict: (o) => 870 fullChainConstruct(options)('Query')({ 871 V1GetDistrict: o 872 }).then((response) => response.V1GetDistrict), 873V1GetSubdistrict: (o) => 874 fullChainConstruct(options)('Query')({ 875 V1GetSubdistrict: o 876 }).then((response) => response.V1GetSubdistrict), 877V1GetCart: (o) => 878 fullChainConstruct(options)('Query')({ 879 V1GetCart: o 880 }).then((response) => response.V1GetCart) 881 }, 882Mutation: { 883 V1AddToCart: (o) => 884 fullChainConstruct(options)('Mutation')({ 885 V1AddToCart: o 886 }).then((response) => response.V1AddToCart), 887V1UpdateCart: (o) => 888 fullChainConstruct(options)('Mutation')({ 889 V1UpdateCart: o 890 }).then((response) => response.V1UpdateCart), 891V1DeleteCart: (o) => 892 fullChainConstruct(options)('Mutation')({ 893 V1DeleteCart: o 894 }).then((response) => response.V1DeleteCart), 895V1DeleteAllCart: (o) => 896 fullChainConstruct(options)('Mutation')({ 897 V1DeleteAllCart: o 898 }).then((response) => response.V1DeleteAllCart), 899V1DeleteCartDetailItems: (o) => 900 fullChainConstruct(options)('Mutation')({ 901 V1DeleteCartDetailItems: o 902 }).then((response) => response.V1DeleteCartDetailItems), 903V1ReOrderProduct: (o) => 904 fullChainConstruct(options)('Mutation')({ 905 V1ReOrderProduct: o 906 }).then((response) => response.V1ReOrderProduct) 907 } 908 }); 909 910/*! ***************************************************************************** 911Copyright (c) Microsoft Corporation. All rights reserved. 912Licensed under the Apache License, Version 2.0 (the "License"); you may not use 913this file except in compliance with the License. You may obtain a copy of the 914License at http://www.apache.org/licenses/LICENSE-2.0 915 916THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 917KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 918WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 919MERCHANTABLITY OR NON-INFRINGEMENT. 920 921See the Apache Version 2.0 License for specific language governing permissions 922and limitations under the License. 923***************************************************************************** */ 924 925var __assign = function() { 926 __assign = Object.assign || function __assign(t) { 927 for (var s, i = 1, n = arguments.length; i < n; i++) { 928 s = arguments[i]; 929 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; 930 } 931 return t; 932 }; 933 return __assign.apply(this, arguments); 934}; 935 936var RalaliSDK = (function (Api) { return function (url, options) { 937 return Api(url, { 938 headers: __assign({ 'Content-Type': 'application/json' }, options) 939 }); 940}; }); 941 942(function (global, factory) { 943 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : false;
944 typeof global !== 'undefined' ? (global['RalaliSDK'] = factory()) : false; 945})(window, function () { 946 return RalaliSDK(Api); 947}); 948 949}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.