(self.webpackChunk_redotech_redo_shopify_extension=self.webpackChunk_redotech_redo_shopify_extension||[]).push([[337,241],{6112:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,o=Array(a);++n{var a=n(86685),o=n(50137);e.exports=function(e,t){for(var n=0,i=(t=a(t,e)).length;null!=e&&n{e.exports=function(e,t){return null!=e&&t in Object(e)}},79835:(e,t,n)=>{var a=n(2549),o=n(36250);e.exports=function(e,t,n,i){var r=n.length,s=r,d=!i;if(null==e)return!s;for(e=Object(e);r--;){var u=n[r];if(d&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++r{var a=n(18491),o=n(79566),i=n(76412),r=n(29933),s=n(49955);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?r(e)?o(e[0],e[1]):a(e):s(e)}},18491:(e,t,n)=>{var a=n(79835),o=n(66164),i=n(11233);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||a(n,e,t)}}},79566:(e,t,n)=>{var a=n(36250),o=n(49408),i=n(1131),r=n(79457),s=n(74232),d=n(11233),u=n(50137);e.exports=function(e,t){return r(e)&&s(t)?d(u(e),t):function(n){var r=o(n,e);return void 0===r&&r===t?i(n,e):a(t,r,3)}}},37737:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},55635:(e,t,n)=>{var a=n(43434);e.exports=function(e){return function(t){return a(t,e)}}},29240:(e,t,n)=>{var a=n(83517),o=n(6112),i=n(29933),r=n(98694),s=a?a.prototype:void 0,d=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(r(t))return d?d.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},86685:(e,t,n)=>{var a=n(29933),o=n(79457),i=n(53134),r=n(24146);e.exports=function(e,t){return a(e)?e:o(e,t)?[e]:i(r(e))}},66164:(e,t,n)=>{var a=n(74232),o=n(25946);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,a(r)]}return t}},5458:(e,t,n)=>{var a=n(86685),o=n(74040),i=n(29933),r=n(39309),s=n(56805),d=n(50137);e.exports=function(e,t,n){for(var u=-1,l=(t=a(t,e)).length,c=!1;++u{var a=n(29933),o=n(98694),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;e.exports=function(e,t){if(a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||r.test(e)||!i.test(e)||null!=t&&e in Object(t)}},74232:(e,t,n)=>{var a=n(38329);e.exports=function(e){return e==e&&!a(e)}},11233:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},66356:(e,t,n)=>{var a=n(27628);e.exports=function(e){var t=a(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},53134:(e,t,n)=>{var a=n(66356),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,r=a((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,a,o){t.push(a?o.replace(i,"$1"):n||e)})),t}));e.exports=r},50137:(e,t,n)=>{var a=n(98694);e.exports=function(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},49408:(e,t,n)=>{var a=n(43434);e.exports=function(e,t,n){var o=null==e?void 0:a(e,t);return void 0===o?n:o}},1131:(e,t,n)=>{var a=n(26393),o=n(5458);e.exports=function(e,t){return null!=e&&o(e,t,a)}},27628:(e,t,n)=>{function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],i=n.cache;if(i.has(o))return i.get(o);var r=e.apply(this,a);return n.cache=i.set(o,r)||i,r};return n.cache=new(a.Cache||o),n}var o=n(4593);a.Cache=o,e.exports=a},49955:(e,t,n)=>{var a=n(37737),o=n(55635),i=n(79457),r=n(50137);e.exports=function(e){return i(e)?a(r(e)):o(e)}},76594:(e,t,n)=>{var a=n(10241),o=n(92413);e.exports=function(e,t){return e&&e.length?o(e,a(t,2)):0}},24146:(e,t,n)=>{var a=n(29240);e.exports=function(e){return null==e?"":a(e)}},82689:(e,t,n)=>{"use strict";n.d(t,{fh:()=>d,h2:()=>h,Gm:()=>O,YF:()=>I,Mq:()=>P,Oj:()=>M,Ch:()=>C,e6:()=>g,lr:()=>m,Tn:()=>T,Rh:()=>W,$k:()=>_,UW:()=>E,eF:()=>B,xL:()=>b,fE:()=>S,X3:()=>N,pA:()=>k,j$:()=>D,Xo:()=>Y,wD:()=>L,yf:()=>K,YH:()=>Z,ME:()=>j,Ls:()=>z,ke:()=>J,MO:()=>U,QZ:()=>G,x:()=>w,s7:()=>H,rf:()=>X,q:()=>F,de:()=>x});var a=n(61958),o=n(72223),i=n(86964),r=n(15313);try{n(Object(function(){var e=new Error("Cannot find module 'temporal-polyfill/global'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){}const s=(0,r.J)({fields:{discountCode:{dataType:"Maybe Text",documentation:"The discount code to share with the customer."}}});var d;!function(e){e.SIGNUP_FORM="form",e.SHOPIFY_SYNC="shopify",e.SAVE_FOR_LATER="save-for-later",e.LOGIN="login",e.ORDER_TRACKING="order-tracking",e.IMPORT="import",e.UNKNOWN="unknown",e.MERCHANT="merchant",e.WARRANTY_REGISTRATION="warranty-registration",e.META_LEAD_ADS="meta-lead-ads",e.POSTSCRIPT="postscript",e.ORDER_TRACKING_PAGE="order-tracking-page",e.TEXT_TO_SUBSCRIBE="text-to-subscribe",e.PUBLIC_API="public-api"}(d||(d={}));const u={[d.SIGNUP_FORM]:"Signup form",[d.SHOPIFY_SYNC]:"Shopify sync",[d.SAVE_FOR_LATER]:'"Save for later" panel',[d.LOGIN]:"Customer account login",[d.ORDER_TRACKING]:"Order tracking",[d.IMPORT]:"CSV Import",[d.UNKNOWN]:"Unknown",[d.MERCHANT]:"Manual subscribe",[d.WARRANTY_REGISTRATION]:"Warranty registration",[d.META_LEAD_ADS]:"Meta lead ads",[d.POSTSCRIPT]:"Postscript",[d.ORDER_TRACKING_PAGE]:"Order tracking page",[d.TEXT_TO_SUBSCRIBE]:"Text to subscribe",[d.PUBLIC_API]:"Public API"},l=(0,r.J)({fields:{redoCustomerId:{dataType:"Text",documentation:"The Redo customer ID.",hideFromInsertionModal:!0,hideFromConditionStep:!0},customerFirstName:{dataType:"Maybe Text",documentation:"The first name of the customer who signed up for marketing messages."},customerLastName:{dataType:"Maybe Text",documentation:"The last name of the customer who signed up for marketing messages."},customerFullName:{dataType:"Maybe Text",documentation:"The full name of the customer who signed up for marketing messages."}}}),c=(0,r.J)({fields:{...l.fields,cartContext:{dataType:"Cart Context",documentation:"Data that is useful for generating product recommendations for an interactive cart"}}}),m=(0,r.J)({fields:{...c.fields,customerEmail:{dataType:"Email",documentation:"The email address of the customer."},unsubscribeLink:{dataType:"Maybe Url",documentation:"The link to unsubscribe from email updates. Only displays when the customer is subscribed"},oneClickUnsubscribeLink:{dataType:"Maybe Url",hideFromInsertionModal:!0,documentation:"The link to unsubscribe from email updates with one click for email delivery compliance. Only displays when the customer is subscribed"},...o.G}}),h=(0,r.J)({fields:{...c.fields,productVariantId:{dataType:"Text",documentation:"The product variant ID that is out of stock."},unsubscribeLink:{dataType:"Maybe Url",documentation:"The link to unsubscribe from email updates. Only displays when the customer is subscribed"},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer."}}}),T=(0,r.J)({fields:{...c.fields,productVariantId:{dataType:"Text",documentation:"The product variant ID that is out of stock."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer."}}}),p=(0,r.J)({fields:{...c.fields,alreadySubscribed:{dataType:"Boolean",documentation:"Whether the customer was already subscribed to marketing messages."},entryPoint:{dataType:"Enum",values:Object.values(d).filter((e=>![d.MERCHANT,d.IMPORT].includes(e))),documentation:"Where the customer signed up for marketing messages.",prettyValues:u},formId:{dataType:"Maybe Text",documentation:"The form that the customer signed up through, if any."},customerEventId:{dataType:"Maybe Text",documentation:"The ID of the customer event that triggered the signup.",hideFromInsertionModal:!0,hideFromConditionStep:!0}}}),_=(0,r.J)({fields:{...c.fields,customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer who abandoned the cart."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer who abandoned the cart."},unsubscribeLink:{dataType:"Maybe Url",documentation:"The link to unsubscribe from email updates. Only displays when the customer is subscribed"},oneClickUnsubscribeLink:{dataType:"Maybe Url",hideFromInsertionModal:!0,documentation:"The link to unsubscribe from email updates with one click for email delivery compliance. Only displays when the customer is subscribed"},segment:{dataType:"Token",tokenType:i.ov.CUSTOMER_GROUP_ID,documentation:"The segment that the customer entered or exited."}}}),E=(0,r.J)({fields:{...p.fields,...s.fields,unsubscribeLink:{dataType:"Maybe Url",documentation:"The link to unsubscribe from email updates. Only displays when the customer is subscribed"},oneClickUnsubscribeLink:{dataType:"Maybe Url",hideFromInsertionModal:!0,documentation:"The link to unsubscribe from email updates with one click for email delivery compliance. Only displays when the customer is subscribed"},customerEmail:{dataType:"Email",documentation:"The email address of the customer who signed up for marketing emails."}}}),R=(0,r.J)({fields:{...c.fields,isAbandonment:{dataType:"Boolean",documentation:"A flag to indicate that this is an abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0},unsubscribeLink:{dataType:"Maybe Url",documentation:"The link to unsubscribe from email updates. Only displays when the customer is subscribed"},oneClickUnsubscribeLink:{dataType:"Maybe Url",hideFromInsertionModal:!0,documentation:"The link to unsubscribe from email updates with one click for email delivery compliance. Only displays when the customer is subscribed"},customerEventId:{dataType:"Maybe Text",documentation:"The ID of the customer event that triggered the abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0}}}),I=(0,r.J)({fields:{...R.fields,isAbandonment:{dataType:"Boolean",documentation:"A flag to indicate that this is an abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0},time:{dataType:"DateTime",documentation:"The time the last item was added to the cart."},isCartAbandoned:{dataType:"Boolean",documentation:"If the customer has not begun the checkout process or checked out since updating their cart."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer who abandoned the cart."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer who abandoned the cart."},storeUrl:{dataType:"Maybe Url",documentation:"The URL of the store that the customer abandoned."},checkoutUrl:{dataType:"Maybe Url",documentation:"The URL of the checkout that the customer abandoned."}}}),O=(0,r.J)({fields:{...R.fields,isAbandonment:{dataType:"Boolean",documentation:"A flag to indicate that this is an abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0},time:{dataType:"DateTime",documentation:"When the browsing last occurred."},isBrowseAbandoned:{dataType:"Boolean",documentation:"If the customer has not added anything to the cart or placed an order since browsing."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer who abandoned their browsing session."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer who abandoned their browsing session."}}}),A=e=>({existingCartId:e?"preview":null,productIdsForRecommendations:[],productIdsAlreadyInCart:[],alreadyInCart:[]}),f={redoCustomerId:"65f9d2d37fd7c5a1d2c19876",customerFirstName:void 0,customerLastName:void 0,customerFullName:void 0,cartContext:A(!0)},P=(0,r.J)({fields:{...R.fields,isAbandonment:{dataType:"Boolean",documentation:"A flag to indicate that this is an abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0},time:{dataType:"DateTime",documentation:"When the last customer action on checkout occurred."},isCheckoutAbandoned:{dataType:"Boolean",documentation:"If the customer has not placed an order since starting checkout."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer who abandoned their browsing session."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer who abandoned their browsing session."},checkout:{dataType:"Maybe Shopify Checkout",documentation:"Data about the customer's checkout session"},storeUrl:{dataType:"Maybe Url",documentation:"The URL of the store that the customer abandoned."},checkoutUrl:{dataType:"Maybe Url",documentation:"The URL of the checkout that the customer abandoned."}}}),y={...f,isAbandonment:!0,unsubscribeLink:"https://example.com/unsubscribe",oneClickUnsubscribeLink:"https://example.com/one-click-unsubscribe",customerEventId:"67f8d6d38fd4c4b4d1c19876"},N={...y,isAbandonment:!0,time:Temporal.Now.instant(),isCheckoutAbandoned:!0,customerEmail:"john.doe@example.com",customerPhone:"+1234567890",checkout:{attributes:[],billingAddress:null,currencyCode:a.jK.Usd,discountApplications:[],email:"john.doe@example.com",lineItems:[],order:null,shippingAddress:null,shippingLine:null,subtotalPrice:{amount:100,currencyCode:a.jK.Usd},phone:"+1234567890",token:"",totalPrice:{amount:105,currencyCode:a.jK.Usd},totalTax:{amount:5,currencyCode:a.jK.Usd},transactions:[]},cartContext:A(!1),storeUrl:"https://example.com",checkoutUrl:"https://example.com/checkout"},b={...y,customerEmail:"john.doe@example.com",customerPhone:"+1234567890",isBrowseAbandoned:!0,isAbandonment:!0,time:Temporal.Now.instant(),cartContext:A(!1)},S={...y,customerEmail:"john.doe@example.com",customerPhone:"+1234567890",isCartAbandoned:!0,isAbandonment:!0,time:Temporal.Now.instant(),cartContext:A(!1),storeUrl:"https://example.com",checkoutUrl:"https://example.com/checkout"},C=(0,r.J)({fields:{...R.fields,isAbandonment:{dataType:"Boolean",documentation:"A flag to indicate that this is an abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0},time:{dataType:"DateTime",documentation:"The time the last item was added to the cart."},isCartAbandoned:{dataType:"Boolean",documentation:"If the customer has not begun the checkout process or checked out since updating their cart."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer who abandoned the cart."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer who abandoned the cart."},storeUrl:{dataType:"Maybe Url",documentation:"The URL of the store that the customer abandoned."},checkoutUrl:{dataType:"Maybe Url",documentation:"The URL of the checkout that the customer abandoned."}}}),M=(0,r.J)({fields:{...R.fields,isAbandonment:{dataType:"Boolean",documentation:"A flag to indicate that this is an abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0},time:{dataType:"DateTime",documentation:"When the browsing last occurred."},isBrowseAbandoned:{dataType:"Boolean",documentation:"If the customer has not added anything to the cart or placed an order since browsing."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer who abandoned their browsing session."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer who abandoned their browsing session."}}}),g=(0,r.J)({fields:{...R.fields,isAbandonment:{dataType:"Boolean",documentation:"A flag to indicate that this is an abandonment.",hideFromInsertionModal:!0,hideFromConditionStep:!0},time:{dataType:"DateTime",documentation:"When the last customer action on checkout occurred."},isCheckoutAbandoned:{dataType:"Boolean",documentation:"If the customer has not placed an order since starting checkout."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer who abandoned their browsing session."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer who abandoned their browsing session."},checkout:{dataType:"Maybe Shopify Checkout",documentation:"Data about the customer's checkout session"},storeUrl:{dataType:"Maybe Url",documentation:"The URL of the store that the customer abandoned."},checkoutUrl:{dataType:"Maybe Url",documentation:"The URL of the checkout that the customer abandoned."}}}),D={...y,customerEmail:"john.doe@example.com",customerPhone:"+1234567890",isCartAbandoned:!0,isAbandonment:!0,time:Temporal.Now.instant(),cartContext:A(!1),storeUrl:"https://example.com",checkoutUrl:"https://example.com/checkout"},k={...y,customerEmail:"john.doe@example.com",customerPhone:"+1234567890",isBrowseAbandoned:!0,isAbandonment:!0,time:Temporal.Now.instant(),cartContext:A(!1)},Y={...y,isAbandonment:!0,time:Temporal.Now.instant(),isCheckoutAbandoned:!0,customerEmail:"john.doe@example.com",customerPhone:"+1234567890",checkout:{attributes:[],billingAddress:null,currencyCode:a.jK.Usd,discountApplications:[],email:"john.doe@example.com",lineItems:[],order:null,shippingAddress:null,shippingLine:null,subtotalPrice:{amount:100,currencyCode:a.jK.Usd},phone:"+1234567890",token:"",totalPrice:{amount:105,currencyCode:a.jK.Usd},totalTax:{amount:5,currencyCode:a.jK.Usd},transactions:[]},cartContext:A(!1),storeUrl:"https://example.com",checkoutUrl:"https://example.com/checkout"},L={redoCustomerId:"65f9d2d37fd7c5a1d2c19876",customerEmail:"john@fake.com",unsubscribeLink:"https://example.com/unsubscribe",oneClickUnsubscribeLink:"https://example.com/one-click-unsubscribe",viewInBrowserLink:void 0,cartContext:A(!0),customerFirstName:void 0,customerLastName:void 0,customerFullName:void 0},U={redoCustomerId:"65f9d2d37fd7c5a1d2c19876",customerEmail:"john@fake.com",customerPhone:"+1234567890",unsubscribeLink:"https://example.com/unsubscribe",oneClickUnsubscribeLink:"https://example.com/one-click-unsubscribe",cartContext:A(!0),segment:"65f9d2d37fd7c5a1d2c19876",customerFirstName:void 0,customerLastName:void 0,customerFullName:void 0},v=((0,r.J)({fields:{...l.fields,customerPhoneNumber:{dataType:"Phone",documentation:"The phone number of the customer."},customer:{dataType:"Customer",documentation:"The customer object."}}}),{redoCustomerId:"65f9d2d37fd7c5a1d2c19876",alreadySubscribed:!1,entryPoint:d.SIGNUP_FORM,cartContext:A(!0),customerFirstName:void 0,customerLastName:void 0,customerFullName:void 0,formId:"66f8d6d38fd4c4b4d1c19876",customerEventId:"67f8d6d38fd4c4b4d1c19876"}),j={...v,discountCode:"EMAILABCD",customerEmail:"john@fake.com",unsubscribeLink:"https://example.com/unsubscribe",oneClickUnsubscribeLink:"https://example.com/one-click-unsubscribe"},x=(0,r.J)({fields:{...p.fields,discountCode:{dataType:"Maybe Text",documentation:"The discount code to share with the customer."},customerPhoneNumber:{dataType:"Phone",documentation:"The phone number of the customer who signed up for marketing SMS."}}}),w={...v,customerPhoneNumber:"+1234567890",discountCode:"SMSABCD"},F=(0,r.J)({fields:{...p.fields,customerPhoneNumber:{dataType:"Phone",documentation:"The phone number of the customer who confirmed their marketing SMS subscription."}}}),G={...v,customerPhoneNumber:"+1234567890"},B={...f,productVariantId:"123",unsubscribeLink:"https://example.com/unsubscribe",customerEmail:"john@fake.com",customerPhone:"+1234567890"},K={...f,productVariantId:"123",customerEmail:"john@fake.com",customerPhone:"+1234567890"},H=(0,r.J)({fields:{...c.fields,date:{dataType:"Date",documentation:"The date of the event."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer."}}}),z={...f,date:(V=new Date,Temporal.PlainDate.from({year:V.getUTCFullYear(),month:V.getUTCMonth()+1,day:V.getUTCDate()})),customerEmail:"john@fake.com",customerPhone:"+1234567890"};var V;const W=(0,r.J)({fields:{...c.fields,numericVariantId:{dataType:"Text",documentation:"The product variant ID that had a price drop."},productTitle:{dataType:"Text",documentation:"The title of the product that had a price drop."},variantTitle:{dataType:"Text",documentation:"The title of the variant that had a price drop."},formattedPreviousPrice:{dataType:"Text",documentation:"Previous price formatted with currency symbol."},formattedCurrentPrice:{dataType:"Text",documentation:"Current price formatted with currency symbol."},formattedSavings:{dataType:"Text",documentation:"Savings amount formatted with currency symbol."},formattedPriceDropPercentage:{dataType:"Text",documentation:"Formatted price drop percentage (e.g. '20%')."},customerEmail:{dataType:"Maybe Email",documentation:"The email address of the customer."},customerPhone:{dataType:"Maybe Phone",documentation:"The phone number of the customer."},unsubscribeLink:{dataType:"Maybe Url",documentation:"Link to unsubscribe from price drop notifications."},oneClickUnsubscribeLink:{dataType:"Maybe Url",hideFromInsertionModal:!0,documentation:"One-click unsubscribe link for compliance."}}}),X=(0,r.J)({fields:{...m.fields,...s.fields,shopNowLink:{dataType:"Maybe Url",documentation:"The link to the product on the store."},product:{dataType:"Product",documentation:"The product that the customer is registering a warranty for."},teamName:{dataType:"Text",documentation:"The name of the team that the customer is registering a warranty for."},teamEmail:{dataType:"Email",documentation:"The email of the team that the customer is registering a warranty for."}}}),J={...f,discountCode:"WARRANTYABCD",customerEmail:"john@fake.com",unsubscribeLink:"https://example.com/unsubscribe",oneClickUnsubscribeLink:"https://example.com/one-click-unsubscribe",viewInBrowserLink:void 0,shopNowLink:"https://example.com/shop-now",teamName:"Team Name",teamEmail:"team@fake.com",product:{id:123,title:"T-Shirt",variantTitle:"Red T-Shirt",image:{src:"https://example.com/image.jpg"},price:100,priceSet:{presentment_money:{amount:100,currency_code:"USD"}},isRedo:!1,requiresShipping:!0,tags:["tag1","tag2"],properties:{prop1:"value1",prop2:"value2"},sku:"123",green_return:!1,vendor:"vendor",handle:"handle",compareAtPrice:"100"}},Z={...f,numericVariantId:"123456",productTitle:"Wireless Headphones",variantTitle:"Black",formattedPreviousPrice:"$99.99",formattedCurrentPrice:"$79.99",formattedSavings:"$20.00",formattedPriceDropPercentage:"20%",customerEmail:"john@fake.com",customerPhone:"+1234567890",unsubscribeLink:"https://example.com/unsubscribe",oneClickUnsubscribeLink:"https://example.com/one-click-unsubscribe"}},2333:(e,t,n)=>{"use strict";n.d(t,{_L:()=>ea,ph:()=>na});var a=n(15313);const o=(0,a.J)({fields:{}}),i=(0,a.J)({fields:{}}),r=(0,a.J)({fields:{}}),s=(0,a.J)({fields:{redoCustomerId:{dataType:"Text",documentation:"Redo customer ID"},customerFullName:{dataType:"Text",documentation:"The full name of the customer who purchased the extended warranty."},customerFirstName:{dataType:"Text",documentation:"The first name of the customer who purchased the extended warranty."},customerLastName:{dataType:"Text",documentation:"The last name of the customer who purchased the extended warranty."},customerEmail:{dataType:"Email",documentation:"The email address of the customer who purchased the extended warranty."},teamName:{dataType:"Text",documentation:"The name of the team/store that sold the extended warranty."},purchaseDate:{dataType:"Date",documentation:"The date when the extended warranty was purchased."},effectiveDate:{dataType:"Date",documentation:"The date when the extended warranty coverage begins."},expirationDate:{dataType:"Date",documentation:"The date when the extended warranty coverage expires."},coverageTermDays:{dataType:"Number",documentation:"The number of days the extended warranty provides coverage."},purchasePrice:{dataType:"Number",documentation:"The price paid for the extended warranty."},orderName:{dataType:"Text",documentation:"The name/number of the order containing the extended warranty purchase."},productTitle:{dataType:"Text",documentation:"The title of the product being covered by the extended warranty."},variantTitle:{dataType:"Text",documentation:"The title of the specific product variant being covered."},sku:{dataType:"Text",documentation:"The SKU of the product variant being covered by the extended warranty."}}}),d=(Temporal.PlainDate.from("2024-01-15"),Temporal.PlainDate.from("2024-01-15"),Temporal.PlainDate.from("2025-01-15"),(0,a.J)({fields:{websiteUrl:{dataType:"Maybe Text",documentation:"The website URL from the webhook event"},storeName:{dataType:"Maybe Text",documentation:"The store name from the webhook event"},publishedAt:{dataType:"Maybe Text",documentation:"ISO timestamp when the webhook event was published"},timestamp:{dataType:"Maybe Number",documentation:"Unix timestamp of the webhook event"},customerEmail:{dataType:"Email",documentation:"Customer email"},customerPhoneNumber:{dataType:"Maybe Phone",documentation:"The phone number of the customer"},customerFirstName:{dataType:"Maybe Text",documentation:"The first name of the customer"},customerPointsBalance:{dataType:"Maybe Number",documentation:"Customer's current points balance"},customerPointsEarned:{dataType:"Maybe Number",documentation:"Total points earned by customer"},customerTotalSpendCents:{dataType:"Maybe Number",documentation:"Customer's total spend in cents"},customerTotalPurchases:{dataType:"Maybe Number",documentation:"Customer's total number of purchases"},customerThirdPartyId:{dataType:"Maybe Text",documentation:"Customer's third-party platform ID"},customerIsOptIn:{dataType:"Maybe Boolean",documentation:"Whether customer has opted into loyalty program"}}})),u=(0,a.J)({fields:{...d.fields,loyaltyNextPointsExpireOn:{dataType:"Maybe Text",documentation:"The date when the customer's next points will expire"},loyaltyNextPointsExpireAmount:{dataType:"Maybe Number",documentation:"The amount of points that will expire"},daysToPointExpiration:{dataType:"Maybe Number",documentation:"The number of days until the customer's points expire"}}}),l=(0,a.J)({fields:{...d.fields,pointsNeeded:{dataType:"Maybe Number",documentation:"Number of points needed to reach next reward level"},redemptionOptionName:{dataType:"Maybe Text",documentation:"Name of the redemption option available"},redemptionOptionAmount:{dataType:"Maybe Number",documentation:"Points required for the redemption option"}}}),c=(0,a.J)({fields:{...d.fields,redemptionOptionName:{dataType:"Maybe Text",documentation:"Name of the available redemption option"},redemptionOptionDescription:{dataType:"Maybe Text",documentation:"Description of the redemption option"},redemptionOptionAmount:{dataType:"Maybe Number",documentation:"Points required for the redemption option"},redemptionOptionDiscountType:{dataType:"Maybe Text",documentation:"Type of discount (percentage, fixed, etc.)"}}}),m=(0,a.J)({fields:{...d.fields,redemptionId:{dataType:"Maybe Number",documentation:"ID of the created redemption"},rewardText:{dataType:"Maybe Text",documentation:"Text description of the reward"},approved:{dataType:"Maybe Boolean",documentation:"Whether the redemption was approved"},redemptionOptionName:{dataType:"Maybe Text",documentation:"Name of the redeemed option"}}}),h=(0,a.J)({fields:{...d.fields,referrerEmail:{dataType:"Email",documentation:"Email of the customer who made the referral"},referredEmail:{dataType:"Email",documentation:"Email of the customer who was referred"},referralCode:{dataType:"Maybe Text",documentation:"The referral code that was used"},rewardPoints:{dataType:"Maybe Number",documentation:"Points awarded for the referral"}}}),T=(0,a.J)({fields:{...d.fields,from:{dataType:"Email",documentation:"Email of the customer sharing the referral"},referralLink:{dataType:"Maybe Text",documentation:"The referral link that was shared"},referralCode:{dataType:"Maybe Text",documentation:"The referral code"},totalShares:{dataType:"Maybe Number",documentation:"Total number of times this referral has been shared"}}}),p=(0,a.J)({fields:{...d.fields,rewardPoints:{dataType:"Maybe Number",documentation:"Points awarded for birthday"},redemptionOptionName:{dataType:"Maybe Text",documentation:"Name of birthday reward option"}}}),_=(0,a.J)({fields:{...d.fields}}),E=(0,a.J)({fields:{...d.fields,newTierName:{dataType:"Maybe Text",documentation:"Name of the new tier earned"},newTierRank:{dataType:"Maybe Number",documentation:"Rank of the new tier"},oldTierName:{dataType:"Maybe Text",documentation:"Name of the previous tier"},pointsMultiplier:{dataType:"Maybe Number",documentation:"Points multiplier for the new tier"}}}),R=(0,a.J)({fields:{...d.fields,oldTierName:{dataType:"Maybe Text",documentation:"Name of the tier that was lost"},oldTierRank:{dataType:"Maybe Number",documentation:"Rank of the tier that was lost"},newTierName:{dataType:"Maybe Text",documentation:"Name of the new tier"},newTierRank:{dataType:"Maybe Number",documentation:"Rank of the new tier"}}}),I=(0,a.J)({fields:{...d.fields,rewardPoints:{dataType:"Maybe Number",documentation:"Points earned in this event"},historyTitle:{dataType:"Maybe Text",documentation:"Description of how points were earned"},source:{dataType:"Maybe Text",documentation:"Source of the points (purchase, referral, etc.)"}}});var O=n(82689),A=n(10761);const f=`https://placehold.co/120x120?text=${encodeURIComponent("Personalized Content")}`,P="Custom field";var y,N,b=n(72223),S=n(56319),C=n(53826);!function(e){e.ORDER="order",e.RETURN="return",e.FULFILLMENT_GROUP="fulfillment_group"}(y||(y={})),function(e){e.EASYPOST="easypost",e.TRACK123="track123",e.FIRST_MILE="first_mile",e.UPS="ups",e.LANDMARK_GLOBAL="landmark_global",e.ETA_EXPRESS="eta_express"}(N||(N={}));const M=Object.keys({unknown:void 0,pre_transit:void 0,in_transit:void 0,out_for_delivery:void 0,available_for_pickup:void 0,cancelled:void 0,delivered:void 0,error:void 0,failure:void 0,return_to_sender:void 0,expired:void 0}),g={type:y.ORDER,id:"1234567890",customer:{email:"example@example.com"},fulfillments:[{id:"fulfillment-123",trackers:[{trackingPlatform:N.EASYPOST,id:"tracker-123",tracking_code:"1Z999AA10123456784",status:"in_transit",status_detail:"arrived_at_facility",carrier:"UPS",tracking_details:[{message:"Package received by carrier",status:"pre_transit",datetime:"2024-01-15T08:00:00Z",tracking_location:{city:"Los Angeles",state:"CA",country:"US",zip:"90001"}},{message:"In transit to destination",status:"in_transit",datetime:"2024-01-15T12:00:00Z",tracking_location:{city:"Phoenix",state:"AZ",country:"US",zip:"85001"}}],public_url:"https://track.example.com/tracker123",est_delivery_date:"2024-01-20T00:00:00Z",updated_at:"2024-01-15T12:00:00Z"}],lineItems:[],isShipped:!0,status:"in_transit",tracking_numbers:["1Z999AA10123456784"]},{id:"fulfillment-456",trackers:[{trackingPlatform:N.EASYPOST,id:"tracker-456",tracking_code:"9400111899223344556677",status:"pre_transit",status_detail:"status_update",carrier:"USPS",tracking_details:[{message:"Shipping label created",status:"pre_transit",datetime:"2024-01-16T10:00:00Z",tracking_location:{city:"San Francisco",state:"CA",country:"US",zip:"94102"}}],public_url:"https://track.example.com/tracker456",est_delivery_date:"2024-01-22T00:00:00Z",updated_at:"2024-01-16T10:00:00Z"}],lineItems:[],isShipped:!1,status:"pre_transit",tracking_numbers:["9400111899223344556677"]}],lineItems:[],currentEmailFlows:[],createdAt:new Date,teamId:"team-id",originalOrder:{id:"1234567890",shopify:{id:"1234567890",number:1001,name:"#1001",fulfillments:[],lineItems:[],createdAt:new Date,contact_email:"contact@example.com",customer:{id:"1234567890"},shippingLines:[],priceBeforeDiscounts:100,discounts:{individualDiscounts:[]},presentmentCurrency:"USD",currentSubtotalPriceSet:{presentment_money:{amount:100}},currentTotalPriceSet:{presentment_money:{amount:100}},currentTotalTaxSet:{presentment_money:{amount:100}},tags:[]}}},D=(0,a.J)({fields:{orderNumber:{dataType:"Text",documentation:"The shopify order number"},externalOrderId:{dataType:"Text",documentation:"The external order ID from the ecommerce platform"},redoId:{dataType:"Text",documentation:"The unique identifier for the trackable item in Redo",hideFromInsertionModal:!0},currentDate:{dataType:"Date",documentation:"The current date"},trackableType:{dataType:"Enum",documentation:'The type of trackable item: "order" or "return"',values:["order","return"]},orderSummary:{dataType:"Trackable Summary",documentation:"The summary of the order or return"},reviewRequest:{dataType:"Review Request",documentation:"A review request for the current order items"},customerCountry:{dataType:"Enum",documentation:"Which country the customer is in",values:A.Xr.map((e=>e.name))},productTags:{dataType:"Multiple Text",documentation:"The tags of all the products in the order"},redoCustomerId:{dataType:"Text",documentation:"The Redo customer ID.",hideFromInsertionModal:!0,hideFromConditionStep:!0},deliveryMethod:{dataType:"Multiple Text",documentation:"The delivery method of the shipment"},deliveryStatus:{dataType:"Enum",values:M.filter((e=>"unknown"!==e)),documentation:"The delivery status of the shipment."},skus:{dataType:"Multiple Text",documentation:"The SKUs of the products in the order"},orderTags:{dataType:"Multiple Text",documentation:"The tags of the order"},collections:{dataType:"Multiple Text",documentation:"All the collections that contain a product in the order"},fulfillmentId:{dataType:"Maybe Text",documentation:"The fulfillment ID of the order",hideFromInsertionModal:!0,hideFromConditionStep:!0},totalPrice:{dataType:"Number",documentation:"The total price of the order (or items being returned)"},packageNumberDescription:{dataType:"Maybe Text",documentation:"Text that specifies which fulfillment received a tracking update, if applicable"},relevantLineItems:{dataType:"Multiple Line Item",documentation:"The line items relevant to the shipment"},otherLineItems:{dataType:"Maybe Multiple Line Item",documentation:"Other line items"},unsubscribeLink:{dataType:"Maybe Url",documentation:"The link to unsubscribe from email updates. Only displays when the customer is subscribed"},oneClickUnsubscribeLink:{dataType:"Maybe Url",documentation:"The link to unsubscribe from email updates with one click for email delivery compliance. Only displays when the customer is subscribed",hideFromInsertionModal:!0},subscribeLink:{dataType:"Maybe Url",documentation:"The link to subscribe to email updates. Only displays when the customer is not subscribed"},trackingLink:{dataType:"Url",documentation:"The link to track the shipment"},orderDetailsLink:{dataType:"Url",documentation:"The link to view the order details"},shopifyOrderDetailsLink:{dataType:"Maybe Url",documentation:"The link to view the order details in Shopify"},carrierLink:{dataType:"Maybe Url",documentation:"The link to view the carrier details"},tracker:{dataType:"Tracker",documentation:"The tracker for the shipment"},cartContext:{dataType:"Cart Context",documentation:"Data related to the order or return that is useful for generating product recommendations for an interactive cart"},customerFullName:{dataType:"Maybe Text",documentation:"The full name of the customer"},customerFirstName:{dataType:"Maybe Text",documentation:"The first name of the customer"},customerLastName:{dataType:"Maybe Text",documentation:"The last name of the customer"},customerEmailSubscriber:{dataType:"Boolean",documentation:"True if the customer is subscribed to email marketing updates"},customerSmsSubscriber:{dataType:"Boolean",documentation:"True if the customer is subscribed to ether transactional or marketing SMS updates"},customerSmsMarketingSubscriber:{dataType:"Boolean",documentation:"True if the customer is subscribed to SMS marketing updates"},customerSmsTransactionalSubscriber:{dataType:"Boolean",documentation:"True if the customer is subscribed to transactional SMS updates"},customerEmail:{dataType:"Email",documentation:"The email address of the customer"},customerPhoneNumber:{dataType:"Maybe Phone",documentation:"The phone number of the customer"},trackingNumber:{dataType:"Maybe Text",documentation:"The tracking number of the shipment"},ecommerceProvider:{dataType:"Enum",values:[S.Kq.COMMENTSOLD,S.Kq.SHOPIFY,S.Kq.COMMERCE_CLOUD],documentation:"The ecommerce provider of the trackable item"},metafields:{dataType:"Object",documentation:"The metafields of the trackable item (Use `.` to access nested fields)"},returnSubmitted:{dataType:"Boolean",documentation:"Whether a return was submitted for any item in the order"},hasProductsEligibleForReview:{dataType:"Boolean",documentation:"Whether there are products in the order that are eligible for review (i.e., not all products have been returned)"},leaveReviewLink:{dataType:"Maybe Url",documentation:"The link to leave a review for the order"},hasLeftReviewForOrder:{dataType:"Boolean",documentation:"Whether the customer has left a review for the order"},teamSupportEmailUrl:{dataType:"Maybe Url",documentation:"The email address of the team support"},...b.G}}),k={orderNumber:"#1001",externalOrderId:"1234567890",redoId:"65b81f41da22f4000718b34e",redoCustomerId:"66b131782f9829bd1ed05bd7",fulfillmentId:"0987654321234567890",currentDate:Temporal.Now.instant().toZonedDateTimeISO("UTC").toPlainDate(),trackableType:"Order",orderSummary:{trackable:g,trackingPageUrl:"https://example.com",trackableType:{lowerCase:"order",titleCase:"Order",verb:"purchased"},orderDetails:{orderDate:new Date,orderId:"1234567890",fulfilled:!0},relevantLineItems:[{title:"Product 1",variantTitle:"Variant 1",image:{src:f},price:10,isRedo:!1,requiresShipping:!0,tags:[],properties:{[P]:"Value"},sku:"SKU-1",quantity:1,id:1,green_return:!0,priceSet:{presentment_money:{amount:10,currency_code:"USD"}},compareAtPrice:"20.00"}],otherLineItems:[{title:"Product 2",variantTitle:"Variant 2",image:{src:f},price:10,isRedo:!1,requiresShipping:!0,tags:[],properties:{},sku:"SKU-2",quantity:1,id:2,green_return:!0,priceSet:{presentment_money:{amount:10,currency_code:"USD"}}}],costSummary:{shippingProduct:"Shipping",shippingProductCost:"$10.00",taxCost:"$2.00",totalCost:"$29.00",priceBeforeDiscounts:"$20.00",discountStrings:["-10%","-$1.00"]},savingsSummary:{fullPrice:"$30.00",totalSavings:"$13.00"},customerInformation:{shippingAddress:{name:"John Doe",address1:"123 Main St",address2:"Suite 100",city:"San Francisco",province:"CA",postalCode:"94107",phone:"+1234567890"},billingAddress:{name:"John Doe",address1:"123 Main St",address2:"Suite 100",city:"San Francisco",province:"CA",postalCode:"94107",phone:"+1234567890"}}},reviewRequest:{relevantLineItems:[{product:{title:"Product 1",variantTitle:"Variant 1",image:{src:f},price:10,isRedo:!1,requiresShipping:!0,tags:[],properties:{},sku:"SKU-1",id:1,green_return:!0,priceSet:{presentment_money:{amount:10,currency_code:"USD"}}},quantity:1}],orderNumber:"#1001",storeUrl:"https://example.com",reviewPrioritization:C.JT.HighestPrice,customerEmail:"example@test.com",customerReturnedProductIdsForReviewFiltering:[]},customerEmailSubscriber:!0,customerSmsSubscriber:!1,customerSmsMarketingSubscriber:!1,customerSmsTransactionalSubscriber:!1,customerCountry:"United States",productTags:["tag1","tag2"],skus:["sku1","sku2"],orderTags:["tag1","tag2"],collections:["collection1","collection2"],packageNumberDescription:"Package 1 of 2",relevantLineItems:[{product:{id:1,title:"Product 1",variantTitle:"Variant 1",image:{src:f},price:10,priceSet:{presentment_money:{amount:10,currency_code:"USD"}},isRedo:!1,requiresShipping:!0,tags:[],properties:{},sku:"SKU-1",green_return:!0},quantity:1}],totalPrice:10,otherLineItems:void 0,unsubscribeLink:void 0,oneClickUnsubscribeLink:void 0,subscribeLink:"https://example.com/subscribe",trackingLink:"https://example.com/track",orderDetailsLink:"https://example.com/order-details",shopifyOrderDetailsLink:"https://example.com/shopify-order-details",carrierLink:"https://example.com/carrier-link",tracker:{trackableType:{lowerCase:"order",titleCase:"Order",verb:"purchased"},orderCreatedAt:new Date,code:"1234567890",link:"https://example.com",deliveryEstimate:new Date,status:"pre_transit",updatedAt:new Date,details:[{message:"Order received",status:"pre_transit",datetime:new Date,trackingLocation:{city:"San Francisco",state:"CA",country:"US",zip:"94107"}}],carrier:"USPS",carrierDetail:{service:"USPS First-Class Package Service",container_type:"envelope",est_delivery_date_local:"2025-01-01T00:00:00",est_delivery_time_local:"2025-01-01T00:00:00",guaranteed_delivery_date:"2025-02-01T00:00:00",alternate_identifier:"alternate-identifier",initial_delivery_attempt:"2025-01-01T00:00:00",origin_location:"San Francisco, CA, US, 94107",origin_tracking_location:{city:"San Francisco",state:"CA",country:"US",zip:"94107",object:"TrackingLocation"},destination_location:"New York, NY, US, 10001",destination_tracking_location:{city:"New York",state:"NY",country:"US",zip:"10001",object:"TrackingLocation"},object:"CarrierDetail"},trackable:g},cartContext:{productIdsForRecommendations:[],alreadyInCart:[],existingCartId:null},customerFullName:"John Doe",customerFirstName:"John",customerLastName:"Doe",customerEmail:"johndoe@example.com",customerPhoneNumber:"+1234567890",trackingNumber:"1234567890",deliveryMethod:["Economy Shipping (7-10 Business Days)"],deliveryStatus:"pre_transit",ecommerceProvider:S.Kq.SHOPIFY,metafields:{custom_metafield_1:"custom value 1"},returnSubmitted:!1,hasProductsEligibleForReview:!0,viewInBrowserLink:void 0,teamSupportEmailUrl:"mailto:support@example.com",leaveReviewLink:"https://example.com/leave-review",hasLeftReviewForOrder:!1},Y=(0,a.J)({fields:{groupId:{dataType:"Text",documentation:"Redo internal _id for the fulfillment group"}}}),L=(0,a.J)({fields:{pickupStoreAddress1:{dataType:"Maybe Text",documentation:"The first line of the pickup store address"},pickupStoreAddress2:{dataType:"Maybe Text",documentation:"The second line of the pickup store address"},pickupStoreCity:{dataType:"Maybe Text",documentation:"The city of the pickup store address"},pickupStoreProvince:{dataType:"Maybe Text",documentation:"The province of the pickup store address"},pickupStoreZip:{dataType:"Maybe Text",documentation:"The zip code of the pickup store address"},pickupStoreCountryCode:{dataType:"Maybe Text",documentation:"The country code of the pickup store address"},pickupStoreName:{dataType:"Maybe Text",documentation:"The name of the pickup store"},pickupStoreEmail:{dataType:"Maybe Text",documentation:"The email of the pickup store"},pickupStorePhone:{dataType:"Maybe Text",documentation:"The phone number of the pickup store"},...D.fields}}),U=(0,a.J)({fields:{addressError:{dataType:"Text",documentation:"Error message from address verification"},customerPortalLink:{dataType:"Url",documentation:"Deep link to customer portal address editing"},merchantName:{dataType:"Text",documentation:"Name of the merchant"},orderNumber:{dataType:"Text",documentation:"Order number"},redoCustomerId:{dataType:"Text",documentation:"Redo customer ID"},customerEmail:{dataType:"Email",documentation:"The email address of the customer"},customerFirstName:{dataType:"Maybe Text",documentation:"The first name of the customer"},redoId:{dataType:"Text",documentation:"The unique identifier for the trackable item in Redo",hideFromInsertionModal:!0},trackableType:{dataType:"Enum",documentation:'The type of trackable item: "order", "return", or "fulfillment_group"',values:["order","return","fulfillment_group"]}}}),v=(0,a.J)({fields:{...O.lr.fields,subscriptionsCharge:{dataType:"Subscriptions Charge",documentation:"Information about the subscriptions and upcoming charge."}}}),j=(0,a.J)({fields:{discountCode:{dataType:"Maybe Text",documentation:"The discount code to shared with the customer."},emailAddress:{dataType:"Email",documentation:"The email address of the customer."},customerName:{dataType:"Name",documentation:"The name of the customer."},redoCustomerId:{dataType:"Text",documentation:"The Redo customer ID.",hideFromInsertionModal:!0,hideFromConditionStep:!0}}}),x=(0,a.J)({fields:{...D.fields}}),w={...k};var F=n(90336),G=n(2077),B=(n(76594),n(82502));const K=B.Ikc({threadId:B.YjP().nullish()}),H=B.Ikc({risk:B.k5n(["low","medium","high"]).describe("The assessed risk level of the return. Low means the return is unlikely to be fraudulent. Medium means the return is likely to be fraudulent. High means the return is definitely fraudulent."),confidence:B.k5n(["low","medium","high"]).describe("The confidence in whether the return should be approved or denied. Low means the decision is not very confident. Medium means the decision is somewhat confident. High means the decision is very confident."),approved:B.zMY().describe("Indicates whether the return should be approved (true) or denied (false)."),explanation:B.YjP().describe("Explanation detailing the reason for the decision made. Start with explaining the decision, then justify that decision by going through the relevant information and evidence."),timelineExplanation:B.YjP().describe("A one line explanation of the decision made. This will be added to the timeline of the return to describe why an action was taken on the return for the merchant to see.")}).extend({threadId:B.YjP().optional()});var z,V,W;!function(e){e.NOT_HEADED_TO_INMAR="not-headed-to-inmar",e.MISSING_IDS="missing-ids",e.PENDING_MANUAL_REVIEW="pending-manual-review",e.NO_SHIPMENTS_PRESENT="no-shipments-present",e.INTERNAL_ERROR="internal-error",e.SUCCESS="success"}(z||(z={})),function(e){e.OUTCOME="redo.return.inmar.outcome",e.NUM_ITEMS_ADDED="redo.return.inmar.numItemsAdded"}(V||(V={})),function(e){e.VARIANT="variant",e.ADVANCED="advanced"}(W||(W={}));const X=B.Ikc({id:B.YjP(),type:B.k5n(["label","recovery","hold","upsell","repair","exchange_shipping","adjustment"]),payment_intent:B.bzn(),refund:B.bzn().optional(),amount_USD:B.aig().optional(),amount_received_USD:B.aig().optional()});var J,Z,q,Q,$,ee,te,ne,ae,oe,ie,re,se,de,ue,le;!function(e){e.AIMS360="aims360",e.APPAREL_MAGIC="apparelmagic",e.BRIGHTPEARL="brightpearl",e.CLOUDX="cloudx",e.FLEXPORT="flexport",e.NETSUITE="netsuite",e.SFOM="sfom",e.SHIPBOB="shipbob",e.SHIPHERO="shiphero",e.TRACKSTAR="trackstar",e.DEPOSCO="deposco-old"}(J||(J={})),function(e){e.SHIPSTREAM="shipstream",e.BLUEBOX="bluebox",e.SHIPMONK="shipmonk",e.DEPOSCO="deposco",e.NIMBLE="nimble",e.WHIPLASH_RYDER="whiplash",e.CIRRO="cirro"}(Z||(Z={})),function(e){e.AIMS360_GENERAL_ERROR="AIMS360_GENERAL_ERROR"}(q||(q={})),function(e){e.APPAREL_MAGIC_ORDER_NOT_FOUND="APPAREL_MAGIC_ORDER_NOT_FOUND",e.APPAREL_MAGIC_RA_NOT_DEFINED="APPAREL_MAGIC_RA_NOT_DEFINED",e.APPAREL_MAGIC_MULTIPLE_ORDERS="APPAREL_MAGIC_MULTIPLE_ORDERS",e.APPAREL_MAGIC_NO_ITEMS_TO_RETURN="APPAREL_MAGIC_NO_ITEMS_TO_RETURN",e.APPAREL_MAGIC_INSUFFICIENT_QUANTITY="APPAREL_MAGIC_INSUFFICIENT_QUANTITY"}(Q||(Q={})),function(e){e.BRIGHTPEARL_SALES_ORDER_ROW_NOT_FOUND="BRIGHTPEARL_SALES_ORDER_ROW_NOT_FOUND",e.BRIGHTPEARL_ORIGINAL_SALES_ORDER_NOT_FOUND="BRIGHTPEARL_ORIGINAL_SALES_ORDER_NOT_FOUND"}($||($={})),function(e){e.CLOUDX_ITEM_MASTER_ERROR="CLOUDX_ITEM_MASTER_ERROR",e.CLOUDX_STATE_ERROR="CLOUDX_STATE_ERROR"}(ee||(ee={})),function(e){e.DEPOSCO_INTEGRATION_NOT_FOUND="DEPOSCO_INTEGRATION_NOT_FOUND"}(te||(te={})),function(e){e.FLEXPORT_TRACKING_CODE_NOT_FOUND="FLEXPORT_TRACKING_CODE_NOT_FOUND",e.FLEXPORT_CARRIER_NOT_FOUND="FLEXPORT_CARRIER_NOT_FOUND",e.FLEXPORT_INVALID_LOCATION="FLEXPORT_INVALID_LOCATION",e.FLEXPORT_DUPLICATE_ENTRY="FLEXPORT_DUPLICATE_ENTRY",e.FLEXPORT_PRODUCT_NOT_FOUND="FLEXPORT_PRODUCT_NOT_FOUND",e.FLEXPORT_BAD_REQUEST="FLEXPORT_BAD_REQUEST"}(ne||(ne={})),function(e){e.NETSUITE_SALES_ORDER_NOT_FOUND="NETSUITE_SALES_ORDER_NOT_FOUND",e.NETSUITE_RETURN_AUTHORIZATION_CANNOT_BE_INITIALIZED="NETSUITE_RETURN_AUTHORIZATION_CANNOT_BE_INITIALIZED",e.NETSUITE_RETURN_AUTHORIZATION_MUST_HAVE_LINE_ITEMS="NETSUITE_RETURN_AUTHORIZATION_MUST_HAVE_LINE_ITEMS",e.NETSUITE_END_OF_GROUP_LINE_DELETE_ERROR="NETSUITE_END_OF_GROUP_LINE_DELETE_ERROR",e.NETSUITE_THIS_RECORD_ALREADY_EXISTS_ERROR="NETSUITE_THIS_RECORD_ALREADY_EXISTS_ERROR",e.NETSUITE_INVALID_FIELD_VALUE_ERROR="NETSUITE_INVALID_FIELD_VALUE_ERROR",e.NETSUITE_INVALID_LOGIN_ATTEMPT_ERROR="NETSUITE_INVALID_LOGIN_ATTEMPT_ERROR",e.NETSUITE_UNEXPECTED_SUITE_SCRIPT_ERROR="NETSUITE_UNEXPECTED_SUITE_SCRIPT_ERROR",e.NETSUITE_SALES_ORDER_MUST_BE_FULFILLED_ERROR="NETSUITE_SALES_ORDER_MUST_BE_FULFILLED_ERROR",e.NETSUITE_PERMISSION_VIOLATION_LISTS_TAX="NETSUITE_PERMISSION_VIOLATION_LISTS_TAX"}(ae||(ae={})),function(e){e.SFOM_DIDNT_RECEIVE_RMA_ID="SFOM_DIDNT_RECEIVE_RMA_ID"}(oe||(oe={})),function(e){e.SHIPBOB_NO_ORDERS_FOUND_FOR_SHOPIFY_ORDER_ERROR="SHIPBOB_NO_ORDERS_FOUND_FOR_SHOPIFY_ORDER_ERROR"}(ie||(ie={})),function(e){e.SHIPHERO_ORDER_NOT_FOUND="SHIPHERO_ORDER_NOT_FOUND",e.SHIPHERO_SKU_MISSING_ON_ORDER="SHIPHERO_SKU_MISSING_ON_ORDER"}(re||(re={})),function(e){e.SHIPSTREAM_DELIVERY_ALREADY_EXISTS="SHIPSTREAM_DELIVERY_ALREADY_EXISTS",e.ORDER_ID_NOT_FOUND_AFTER_CALLING_TRACKSTAR_ORDER_API="ORDER_ID_NOT_FOUND_AFTER_CALLING_TRACKSTAR_ORDER_API",e.ORDER_NOT_FOUND="ORDER_NOT_FOUND",e.ORDER_ITEM_NOT_FOUND="ORDER_ITEM_NOT_FOUND",e.WHIPLASH_RYDER_INVENTORY_ITEM_NOT_FOUND="WHIPLASH_RYDER_INVENTORY_ITEM_NOT_FOUND",e.RETURN_ALREADY_EXISTS="RETURN_ALREADY_EXISTS",e.NO_WAREHOUSE_FOUND_FOR_SHIPMENT="NO_WAREHOUSE_FOUND_FOR_SHIPMENT",e.NO_ORDER_ID_FOUND_FOR_RETURN="NO_ORDER_ID_FOUND_FOR_RETURN",e.ORDER_NOT_FOUND_FOR_CUSTOMER_NUMBER_OR_PO_NUMBER="ORDER_NOT_FOUND_FOR_CUSTOMER_NUMBER_OR_PO_NUMBER"}(se||(se={})),function(e){e.LABEL_REQUIRED="LABEL_REQUIRED"}(de||(de={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR"}(ue||(ue={})),function(e){e.NoSetUp="NO_SET_UP",e.Failure="FAILURE",e.AlreadyExists="ALREADY_EXISTS",e.LogicallyNotNeeded="LOGICALLY_NOT_NEEDED",e.LabelRequired="LABEL_REQUIRED",e.Success="SUCCESS"}(le||(le={}));const ce=B.k5n(q),me=B.k5n(Q),he=B.k5n($),Te=B.k5n(ee),pe=B.k5n(te),_e=B.k5n(ne),Ee=B.k5n(ae),Re=B.k5n(oe),Ie=B.k5n(ie),Oe=B.k5n(re),Ae=B.k5n(se),fe=B.k5n(de),Pe=B.k5n(ue),ye=B.KCZ([Oe,he,_e,Ee,Ie,Re,me,ce,Te,pe,Ae,fe,Pe]);var Ne,be;Object.values(re),Object.values($),Object.values(ne),Object.values(ae),Object.values(ie),Object.values(oe),Object.values(Q),Object.values(q),Object.values(ee),Object.values(te),Object.values(se),Object.values(de),Object.values(ue),B.k5n(le),function(e){e.CASH_SALE="cash_sale",e.SALES_ORDER="sales_order",e.BOTH="both"}(Ne||(Ne={})),B.k5n(Ne),function(e){e.CREDIT="credit",e.REFUND="refund",e.TOTAL="total",e.TOTAL_PRE_DISCOUNT="total-pre-discount"}(be||(be={})),B.k5n(be);const Se=B.Ikc({company:B.YjP().nullish(),name:B.YjP().nullish(),phone:B.YjP().nullish(),email:B.YjP().nullish(),street1:B.YjP().nullish(),street2:B.YjP().nullish(),city:B.YjP().nullish(),state:B.YjP().nullish(),zip:B.YjP(),country:B.YjP().nullish(),residential:B.zMY().nullish()}),Ce=B.Ikc({length:B.aig().nullish(),width:B.aig().nullish(),height:B.aig().nullish(),weight:B.aig()}),Me=B.Ikc({id:B.YjP().nullish(),form_type:B.YjP().nullish(),form_url:B.YjP().url().nullish(),submitted_electronically:B.zMY().nullish()});var ge;!function(e){e.CROSSBORDERLY="crossborderly",e.EASYPOST="easypost",e.GLOBALE="globale",e.IDF_SHIPPING="idf_shipping",e.MOCK="mock",e.SEKO="seko",e.SOAPBOX="soapbox"}(ge||(ge={}));const De=B.Ikc({id:B.YjP(),shipment_id:B.YjP(),rate:B.KCZ([B.aig(),B.YjP()]).nullish(),currency:B.KCZ([B.aig(),B.YjP()]).nullish(),carrier:B.YjP(),service:B.YjP(),delivery_date:B.YjP().nullish(),delivery_days:B.aig().nullish(),delivery_date_guaranteed:B.zMY().nullish(),upcharge:B.YjP().optional(),created_at:B.YjP(),updated_at:B.YjP(),shipping_provider_type:B.k5n(ge).default(ge.EASYPOST),carrier_account_id:B.YjP().nullish(),is_from_alternative_account:B.zMY().nullish()}),ke=B.Ikc({id:B.YjP(),label_url:B.KCZ([B.YjP(),B.YjP().url(),B.chJ()]),label_date:B.bzn().optional()}),Ye=B.Ikc({id:B.YjP(),to_address:Se.nullish(),from_address:Se.nullish(),status:B.YjP().nullish(),parcel:Ce.nullish(),customs_info:B.bzn(),forms:B.YOg(Me),is_from_alternative_account:B.zMY().nullish(),shipping_provider_type:B.k5n(ge).default(ge.EASYPOST),rates:B.YOg(De),selected_rate:De,postage_label:ke,insurance:B.YjP().nullish(),tracking_code:B.YjP(),tracker:B.bzn(),created_at:B.YjP(),updated_at:B.YjP()});var Le;!function(e){e.PICKUP="Pickup",e.GREEN="Green",e.DROP_OFF="Drop Off",e.SHIPMENT="Shipment",e.ERROR="Error"}(Le||(Le={}));const Ue=B.Ikc({type:B.euz(Le.PICKUP),pickupRequest:B.bzn(),pickupConfirmation:B.bzn()}),ve=B.Ikc({type:B.euz(Le.GREEN)}),je=B.Ikc({type:B.euz(Le.DROP_OFF)}),xe=B.Ikc({type:B.euz("Shipment"),shipment:Ye.nullish()}),we=B.Ikc({type:B.euz(Le.ERROR),error:B.YjP()}),Fe=B.gMt("type",[Ue,ve,je,xe,we]);var Ge,Be=n(78776);!function(e){e.OUTLOOK="outlook",e.GMAIL="gmail",e.REDO_SYSTEM="redo_system",e.MERCHANT_DEFINED="merchant_defined",e.IMPORTED_BY_ZENDESK_MACRO="imported_by_zendesk_macro"}(Ge||(Ge={}));var Ke,He,ze,Ve=n(1939),We=n(21656);!function(e){e.FULFILLMENT_GROUP="fulfillment-group",e.CONVERSATION="conversation",e.CUSTOMER="customer",e.RETURN="return"}(Ke||(Ke={})),function(e){e.MERCHANT="merchant",e.REDO="redo"}(He||(He={})),function(e){e.MERCHANT="merchant",e.REDO="redo",e.FLOW="flow"}(ze||(ze={}));const Xe=B.k5n(Ke),Je=B.k5n(We.D),Ze=B.k5n(Ve.q),qe=B.k5n(Ge),Qe=B.k5n(He),$e=B.k5n(ze),et=B.Ikc({name:B.YjP(),numericId:B.aig().nullish(),pillTheme:Je,source:B.KCZ([Ze,qe,Qe,$e]),kind:Xe}),tt=B.Ikc({_id:B.YjP(),name:B.YjP(),viewIds:B.YOg(B.YjP()),defaultViews:B.YOg(B.YjP()),createdAt:B.YjP().optional(),updatedAt:B.YjP().optional()});var nt,at,ot,it,rt,st,dt,ut,lt,ct,mt,ht,Tt,pt,_t,Et,Rt,It=n(12897);!function(e){e.NORMAL="normal",e.DELETED="deleted",e.HIDDEN="hidden",e.EDITED="edited"}(nt||(nt={})),function(e){e.PUBLIC="public",e.INTERNAL="internal"}(at||(at={})),function(e){e.EMAIL="email",e.REDO_CHAT="redoChat",e.FACEBOOK="facebook",e.FACEBOOK_COMMENTS="facebookComments",e.INSTAGRAM="instagram",e.INSTAGRAM_COMMENTS="instagramComments",e.SMS="sms",e.VOICE="voice",e.ATTENTIVE="attentive",e.POSTSCRIPT="postscript",e.TIKTOK="tiktok"}(ot||(ot={})),function(e){e.OPEN="open",e.CLOSED="closed",e.SNOOZED="snoozed",e.IN_PROGRESS="in_progress",e.HIDDEN="hidden"}(it||(it={})),B.k5n(it),function(e){e.CUSTOMER="customer",e.MERCHANT="merchant",e.SYSTEM="system",e.CALL="call",e.TOOL="tool"}(rt||(rt={})),function(e){e.READ="READ",e.CREATE="CREATE",e.UNSPECIFIED="UNSPECIFIED"}(st||(st={})),function(e){e.RECOMMEND="RECOMMEND",e.PURCHASE="PURCHASE"}(dt||(dt={})),function(e){e.ORDER_LOOKUP="ORDER_LOOKUP",e.FOUND_ORDER="FOUND_ORDER"}(ut||(ut={})),function(e){e.DEFAULT="default",e.COLLECT_EMAIL="collect_email",e.CODE_VERIFICATION="code_verification",e.OFFERING_CONVERT_TO_EMAIL="offering_convert_to_email"}(lt||(lt={})),function(e){e.MERCHANT_DASHBOARD_DEMO="MERCHANT_DASHBOARD_DEMO"}(ct||(ct={})),function(e){e.EXTREMELY_BRIEF="EXTREMELY_BRIEF",e.CONCISE="CONCISE",e.MODERATE="MODERATE",e.DETAILED="DETAILED",e.COMPREHENSIVE="COMPREHENSIVE"}(mt||(mt={})),function(e){e.TOOL_CALL="TOOL_CALL",e.TEXT="TEXT",e.CART_ITEMS="CART_ITEMS",e.CANCEL_ORDER="CANCEL_ORDER",e.PRODUCT_DISPLAY="PRODUCT_DISPLAY",e.PRODUCT_COMPARISON="PRODUCT_COMPARISON",e.DISPLAY_ORDER_TRACKING_INFO="DISPLAY_ORDER_TRACKING_INFO",e.TRACK_ORDER_UI="TRACK_ORDER_UI",e.TOOL_CALL_PRODUCT_INFO="PRODUCTS",e.TOOL_CALL_RELEVANT_PRODUCTS="RELEVANT_PRODUCTS",e.SUBSCRIBE_TO_BACK_IN_STOCK_NOTIFICATION="SUBSCRIBE_TO_BACK_IN_STOCK_NOTIFICATION",e.SUBSCRIBE_TO_BACK_IN_STOCK_NOTIFICATION_UI="SUBSCRIBE_TO_BACK_IN_STOCK_NOTIFICATION_UI",e.CONTACT_SUPPORT_UI="CONTACT_SUPPORT_UI",e.EMAIL_INPUT="EMAIL_INPUT",e.DISCOUNT_CODE="DISCOUNT_CODE",e.RESEND_RETURN_LABEL_UI="RESEND_RETURN_LABEL_UI",e.TOOL_CALL_TRACK_ORDER_AVAILABLE="TOOL_CALL_TRACK_ORDER_AVAILABLE",e.TOOL_CALL_ERROR="TOOL_CALL_ERROR",e.UPDATE_ADDRESS="UPDATE_ADDRESS",e.TOOL_CONFIRMATION_PROMPT="TOOL_CONFIRMATION_PROMPT",e.UPDATE_ORDER="UPDATE_ORDER",e.CREATE_BUNDLE="CREATE_BUNDLE",e.PRODUCT_VISUALIZATION_UPLOAD_UI="PRODUCT_VISUALIZATION_UPLOAD_UI",e.PRODUCT_VISUALIZATION_RESULT="PRODUCT_VISUALIZATION_RESULT"}(ht||(ht={})),function(e){e.ORDER_AVAILABLE_TO_TRACK="ORDER_AVAILABLE_TO_TRACK",e.NO_ORDER_FOUND="NO_ORDER_FOUND",e.ORDER_NOT_TRACKABLE="ORDER_NOT_TRACKABLE"}(Tt||(Tt={})),function(e){e.PENDING="pending",e.CONFIRMED="confirmed",e.REJECTED="rejected"}(pt||(pt={})),function(e){e.APPROVED="approved",e.DISAPPROVED="disapproved",e.SKIPPED="skipped",e.NO_STATUS="no status"}(_t||(_t={})),B.Ikc({category:B.YjP(),count:B.aig()}),function(e){e[e.MENTIONED_IN_CONVERSATION=1]="MENTIONED_IN_CONVERSATION",e[e.ASSIGNED_TO_CONVERSATION=2]="ASSIGNED_TO_CONVERSATION",e[e.NEW_MESSAGE_ASSIGNED_CONVERSATION=3]="NEW_MESSAGE_ASSIGNED_CONVERSATION",e[e.NEW_MESSAGE_UNASSIGNED_CONVERSATION=4]="NEW_MESSAGE_UNASSIGNED_CONVERSATION"}(Et||(Et={})),function(e){e[e.PUSH=1]="PUSH",e[e.EMAIL=2]="EMAIL",e[e.DESKTOP=3]="DESKTOP"}(Rt||(Rt={}));const Ot=B.bzn();!function(e){switch(e){case ot.EMAIL:case ot.REDO_CHAT:case ot.FACEBOOK:case ot.FACEBOOK_COMMENTS:case ot.INSTAGRAM:case ot.INSTAGRAM_COMMENTS:case ot.SMS:case ot.ATTENTIVE:case ot.POSTSCRIPT:case ot.VOICE:case ot.TIKTOK:return"";default:(0,It.xb)(e)}}(ot.EMAIL);const At=B.Ikc({roles:B.YOg(B.k5n(["admin","managed-claims-admin","support","user","reply-only","view-only","audien-support"])).nullish(),_id:G.Tu(),email:B.YjP().email(),createdAt:B.p6U(),firstName:B.YjP().nullish(),lastName:B.YjP().nullish(),name:B.YjP().nullish(),updatedAt:B.p6U(),image:B.YOg(B.bzn()).nullish(),team:B.YjP().nullish(),permissions:B.YOg(B.bzn()).nullish(),notifications:Ot,customViewOrdering:B.YOg(B.Ikc({viewName:B.YjP().optional(),view:B.YjP().optional()})).optional(),emailSignature:B.YjP().optional(),usePersonalSignature:B.zMY().optional(),viewFolders:tt});var ft,Pt;!function(e){e.UNKNOWN="unknown",e.REDO_ADMIN="redo_admin",e.SHOPIFY_LOGIN="shopify_login",e.ADDED_BY_MERCHANT="added_by_merchant",e.BIGCOMMERCE_LOGIN="bigcommerce_login",e.INTEGRATION_USER="integration_user",e.POS_USER="pos_user"}(ft||(ft={})),function(e){e.PENDING="pending",e.COMPLETE="complete",e.DELETED="deleted"}(Pt||(Pt={}));const yt=B.Ikc({customer:B.Ikc({firstName:B.YjP().nullish(),lastName:B.YjP().nullish(),email:B.YjP().nullish(),gravatarUrl:B.YjP().nullish()}).nullish(),user:B.KCZ([G.Tu(),At]).nullish(),image:B.YjP().nullish(),imageUrls:B.YOg(B.YjP()).nullish(),isShipment:B.zMY(),_id:G.Tu(),message:B.YjP().nullish(),link:B.Ikc({message:B.YjP().nullish(),orderNumber:B.YjP().nullish(),url:B.YjP().nullish()}).nullish(),subMessage:B.YjP().nullish(),isSystem:B.zMY().nullish(),updatedAt:B.p6U(),createdAt:B.p6U().nullish(),pendingLock:B.Ikc({metadataKey:B.YjP(),retryButtonTitle:B.YjP().nullish(),completeButtonTitle:B.YjP().nullish(),response:B.Ikc({responder:G.Tu(),submittedAt:B.p6U()}).nullish(),status:B.k5n(Pt)}).nullish()}),Nt=B.Ikc({_id:G.Tu(),timeline:B.YOg(yt),trackers:B.YOg(B.Ikc({_tracker:B.bzn(),fulfillmentID:B.YjP()})).optional(),trackingTimeline:B.YOg(B.bzn()).optional(),trackingAnalytics:B.Ikc({email:B.YOg(B.bzn()),page:B.YOg(B.Ikc({url:B.YjP(),eventType:B.k5n(["ad","upsell","promotion","subscription"]),image:B.YjP().nullish(),createdAt:B.p6U()}))}).optional(),trackingTextsSent:B.YOg(B.Ikc({sid:B.YjP(),mms:B.zMY(),sentAt:B.p6U()})).nullish(),trackingEmailsSent:B.YOg(B.Ikc({emailId:B.YjP(),status:B.YjP().optional(),sentAt:B.p6U(),s3URL:B.YjP().nullish(),trigger:B.YjP().optional(),attachmentInfo:B.Ikc({hasAttachments:B.zMY().optional(),attachmentCount:B.aig().optional(),attachmentNames:B.YOg(B.YjP()).optional()}).optional()})).optional(),trackingWebhooksSent:B.YOg(B.Ikc({destinationUrl:B.YjP(),sentAt:B.p6U(),automationStepId:B.YjP(),statusCode:B.aig().optional(),success:B.zMY(),trigger:B.YjP()})).nullish(),trackingBillingStatus:B.k5n(["billed","free"]).nullish(),discount:B.Ikc({id:B.YjP().nullish(),description:B.YjP().nullish(),code:B.YjP().nullish(),expirationDateTime:B.YjP().nullish()}).optional()});var bt,St,Ct,Mt;!function(e){e.RETURN_PROCESSED_EMAIL_SENT="return-processed-email-sent",e.DISCOUNT_CODE_CREATED="discount_code_created",e.RISE_CREDIT_ISSUED="rise_credit_issued",e.STORE_CREDIT_EMAILED="store_credit_emailed",e.GIFT_CARD_CREATED="gift_card_created",e.SHOPIFY_ACCOUNT_CREDIT_ISSUED="shopify_account_credit_issued",e.STORE_CREDIT_ORDER_ATTRIBUTES_UPDATED="store_credit_order_attributes_updated",e.STORE_CREDIT_ORDER_NOTES_UPDATED="store_credit_order_notes_updated",e.MASKED_CODE="masked_code",e.BIGCOMMERCE_STORE_CREDIT_ISSUED="bigcommerce_store_credit_issued",e.BIGCOMMERCE_GIFT_CERTIFICATE_ISSUED="bigcommerce_gift_certificate_issued",e.MERCHANT_CREDITED_FOR_MANAGED_CLAIM="merchant-credited-for-managed-claim",e.BIGCOMMERCE_INVENTORY_ADJUSTED_STORE_CREDIT="bigcommerce-inventory-adjusted-store_credit",e.BIGCOMMERCE_INVENTORY_ADJUSTED_REFUND="bigcommerce-inventory-adjusted-refund",e.BIGCOMMERCE_INVENTORY_ADJUSTED_EXCHANGE="bigcommerce-inventory-adjusted-exchange"}(bt||(bt={})),(Mt=St||(St={})).FRONT_DOOR="FRONT",Mt.BACK_DOOR="REAR",Mt.SIDE_DOOR="SIDE",Mt.OTHER="NONE",function(e){e.INSTANT="instant",e.PROCESSED="processed"}(Ct||(Ct={}));const gt=B.Ikc({accepted:B.zMY(),refund:B.aig()});var Dt;!function(e){e.EXCHANGE_ORDER_CREATED="exchange_order_created",e.RETURN_CREATED="return_created"}(Dt||(Dt={})),Object.values(Be.RO);const kt=B.Ikc({variantId:B.YjP(),title:B.YjP(),variantTitle:B.YjP(),images:B.YOg(B.YjP().nullable()),price:B.YjP(),tax:B.YjP().nullish(),itemValue:B.YjP().nullish(),quantity:B.aig(),attributes:B.YOg(B.Ikc({key:B.YjP(),value:B.YjP()})).nullish(),currencyCode:B.YjP().nullish()});var Yt,Lt,Ut,vt,jt,xt,wt,Ft,Gt,Bt;!function(e){e.OPEN="open",e.COMPLETE="complete",e.PENDING="pending",e.APPROVED="approved",e.REJECTED="rejected",e.PRE_SHIPMENT="pre-shipment",e.IN_REVIEW="in_review"}(Yt||(Yt={})),function(e){e.CLAIM="claim",e.RETURN="return",e.WARRANTY="warranty",e.RECYCLE="recycle"}(Lt||(Lt={})),function(e){e.REFUND="refund",e.STORE_CREDIT="store_credit",e.EXCHANGE="exchange"}(Ut||(Ut={})),function(e){e.PENDING="pending",e.PAYMENT_FAILED="payment_failed",e.PAID="paid",e.PROCESSED="processed",e.EXPIRED="expired"}(vt||(vt={})),function(e){e.CLIENT="client",e.EXCHANGE="exchange",e.EXCHANGE_STOCK="exchange_stock"}(jt||(jt={})),function(e){e.CLIENT="client",e.EXCHANGE="exchange",e.EXCHANGE_STOCK="exchange_stock"}(xt||(xt={})),function(e){e.APPROVE="approve",e.REJECT="reject",e.MANUAL_REVIEW="manual_review"}(wt||(wt={})),function(e){e.REDO="redo",e.MERCHANT="merchant"}(Ft||(Ft={})),function(e){e.APPROVED="APPROVED",e.REJECTED="REJECTED",e.PENDING="PENDING"}(Gt||(Gt={})),function(e){e.NEW="new",e.CLOSED="closed",e.UNDER_REVIEW="under_review",e.PENDING_DOCS="pending_docs",e.PAID="paid",e.CANCELLED="cancelled",e.EXPIRED="expired"}(Bt||(Bt={}));const Kt=B.Ikc({name:B.YjP().nullish(),address1:B.YjP(),address2:B.YjP().nullish(),city:B.YjP(),country:B.YjP().nullish(),country_code:B.YjP().nullish(),province:B.YjP().nullish(),province_code:B.YjP().nullish(),zip:B.YjP().nullish(),latitude:B.YjP().nullish(),longitude:B.YjP().nullish(),location:G.Tu().nullish(),first_name:B.YjP().nullish(),last_name:B.YjP().nullish(),company:B.YjP().nullish(),email:B.YjP().nullish(),phone:B.YjP().nullish(),externalLocationId:B.YjP().nullish(),trackstarWarehouseId:B.YjP().nullish(),inmarLocationId:B.YjP().nullish(),blueYonderLocationId:B.YjP().nullish(),aims360WarehouseId:B.YjP().nullish()});var Ht,zt,Vt;!function(e){e.STORE_CREDIT="store_credit",e.REFUND="refund",e.EXCHANGE="exchange"}(Ht||(Ht={})),function(e){e.RETURN_PORTAL="Return portal",e.MANUAL_REVIEW="Manual review",e.PRE_SHIPMENT="Pre-shipment",e.EXPIRED="Expired",e.POST_SHIPMENT="Post-shipment"}(zt||(zt={})),function(e){e.AUTOMATED="AUTOMATED",e.MANUAL="MANUAL"}(Vt||(Vt={}));const Wt=B.Ikc({code:B.YjP(),type:B.k5n(["label","boxless-return","instant-refund","pickup","in-store-return","claim-report","repair-invoice"]),customerMessage:B.YjP().optional(),systemMessage:B.YjP().optional(),error:B.YjP().optional(),errorCode:B.YjP().optional()}),Xt=B.Ikc({_shipment:Ye,_refund:B.bzn().nullish(),_refundError:B.bzn().nullish(),toAddress:C.eu,fromAddress:C.eu,parcel:B.Ikc({length:B.aig().nullish(),width:B.aig().nullish(),height:B.aig().nullish(),weight:B.aig()}),isReturn:B.zMY(),mode:B.k5n(["test","production"]),pickup:B.bzn(),postage_label:B.YjP().nullish(),form_label:B.YjP().nullish(),shipmentGroupID:B.YjP().optional(),filed_claim:G.Tu().nullish()}),Jt=B.Ikc({result:B.YOg(B.YjP()).nullish(),question:B.YjP().nullish(),questionText:B.YjP(),answer:B.YjP()}),Zt=B.Ikc({questionText:B.YjP(),inputType:B.YjP(),answer:B.YjP().nullish(),image:B.YjP().nullish()}),qt=B.Ikc({images:B.YOg(B.YjP()),product_id:B.YjP(),price:B.YjP(),option1:B.YjP().nullish(),option2:B.YjP().nullish(),option3:B.YjP().nullish(),variant_id:B.YjP(),sku:B.YjP().nullish(),variant_title:B.YjP(),product_title:B.YjP()}),Qt=B.Ikc({productId:B.YjP(),variantId:B.YjP(),title:B.YjP(),variantTitle:B.YjP(),imageSrc:B.YjP().nullish(),price:B.YjP().nullish()});var $t;!function(e){e.STORE_CREDIT="store_credit",e.REFUND="refund",e.NONE="none",e.REPAIR="repair"}($t||($t={}));const en=B.Ikc({_id:G.Tu(),barcodeUrl:B.YjP().nullish(),exchange_for:qt.nullish(),images:B.YOg(B.YjP().nullable()),variant_exists:B.zMY(),strategy:B.YjP(),status:B.k5n(Yt),quantity:B.aig(),grams:B.aig(),green_return:B.zMY(),damaged:B.zMY(),wrong_product:B.zMY(),reason:B.YjP().nullish(),order:B.KCZ([B.bzn(),G.Tu()]),product_id:B.YjP().nullish(),price:B.YjP(),price_adjustment:B.YjP().nullish(),merchant_adjustment:B.YjP().nullish(),merchant_grade:B.YjP().nullish(),merchant_outcome:B.YjP().nullish(),merchant_notes:B.YjP().nullish(),merchant_submission_notes:B.YjP().nullish(),item_disposition_audit_log:B.YOg(B.Ikc({userId:G.Tu(),timestamp:B.p6U(),updates:B.Ikc({merchant_grade:B.YjP().nullish(),merchant_outcome:B.YjP().nullish(),merchant_notes:B.YjP().nullish()})})).nullish(),hasBeenRestockedOnPlatform:B.zMY().nullish(),sku:B.YjP().nullish(),option1:B.YjP().nullish(),option2:B.YjP().nullish(),option3:B.YjP().nullish(),variant_id:B.YjP().nullish(),variant_title:B.YjP(),product_title:B.YjP(),line_item_id:B.YjP(),isTnplContractLineItem:B.zMY().nullish(),notes:B.YjP().nullish(),cancelled:B.zMY().nullish(),rejectMessage:B.YjP().nullish(),isManualReview:B.zMY().optional(),manualReviewReason:B.YjP().nullish(),isFlagged:B.zMY().optional(),flaggedReason:B.YjP().nullish(),originalVariantOptions:B.Ikc({strategy:B.YjP(),exchange_for:qt.nullish(),price_adjustment:B.YjP().nullish(),exchangeGroup:C.DI.nullish(),exchangeGroupItem:Qt.nullish()}).nullish(),multipleChoiceAnswers:B.YOg(Jt).nullish(),inputAnswers:B.YOg(Zt).nullish(),exchangeGroup:C.DI.nullish(),exchangeGroupItem:Qt.nullish(),shipmentGroupID:B.YjP().nullish(),shipmentGroupIDs:B.YOg(B.YjP()).nullish(),hsCode:B.YjP().nullish(),dropshipSupplierName:B.YjP().nullish(),isUnbundled:B.zMY().nullish(),tax:B.aig().nullish(),aiReturnReasonsThreadId:G.Tu().nullish(),aiReturnReasonSummary:B.YjP().nullish(),aiImageAnalysis:B.YjP().nullish(),posInput:B.Ikc({restockRequested:B.zMY().nullish()}).nullish(),pendingProcessingInfo:B.Ikc({reject:B.zMY().nullish(),shouldRestock:B.zMY().nullish(),handOffToMerchant:B.zMY().nullish()}).nullish()}),tn=B.Ikc({key:B.YjP(),value:B.YjP()}),nn=B.Ikc({first_name:B.YjP().nullish(),last_name:B.YjP().nullish(),email:B.YjP().nullish(),phone_number:B.YjP().nullish(),shopify_customer_id:B.YjP().nullish()}),an=B.Ikc({status:B.YjP(),created:B.p6U().nullish()}),on=B.k5n(["client","exchange","exchange_stock"]),rn=B.Ikc({id:B.YjP(),address:Kt,grams:B.aig().nullish(),labelInstructions:B.YjP().nullish()}),sn=B.Ikc({refund:B.aig().nullish(),storeCredit:B.aig().nullish(),greenReturnCredit:B.aig().nullish(),fee:B.aig(),returnCollectionHoldAmount:B.aig().nullish(),depositRefunded:B.zMY().nullish(),charge:B.aig().nullish(),repair:B.aig().nullish(),customerLabelUpchargeFee:B.aig().nullish()});var dn;!function(e){e.SHOP_APP="shopApp",e.POINT_OF_SALE="pointOfSale",e.WEB="web",e.AI="ai"}(dn||(dn={}));const un=B.k5n(dn),ln=B.Ikc({name:B.YjP(),number:B.KCZ([B.YjP(),B.aig()]).nullish(),order:G.Tu()}),cn=B.Ikc({notesToCustomer:B.YjP().nullish()}),mn=B.Ikc({discountedAmount:B.Ikc({amount:B.YjP()})}),hn=B.k5n(W),Tn=B.Ikc({type:hn,newProductId:B.YjP(),newVariantId:B.YjP()}),pn=B.k5n(S.Ap),_n=B.Ikc({name:B.YjP().nullish(),is_risk:B.zMY().nullish()}),En=B.Ikc({prediction_name:B.YjP(),prediction_value:pn,justification:B.YjP().nullish(),indicators:B.YOg(_n).nullish()}),Rn=Tn.extend({type:B.euz(W.VARIANT),lineItemId:B.YjP(),previousVariantId:B.YjP(),isUnbundled:B.zMY(),price:B.YjP(),tax:B.YjP()}),In=Tn.extend({type:B.euz(W.ADVANCED),discountPrice:B.YjP(),price:B.YjP(),tax:B.YjP()}),On=B.KCZ([Rn,In]),An=B.Ikc({id:B.YjP(),variantId:B.YjP(),discountPrice:B.YjP(),price:B.YjP(),tax:B.YjP()}),fn=B.Ikc({exchangeProducts:B.YOg(On),originOrder:B.RZV((()=>Pn)),totalAdjustments:B.aig()}),Pn=B.Ikc({isExchangeOrder:B.zMY(),originReturn:fn.optional(),lineItems:B.YOg(An)}),yn=B.KCZ([Pn,B.Ikc({error:B.YjP()})]),Nn=(B.PVZ([yn]).rest(yn),B.Ikc({shipmentGroupId:B.YjP(),boxBarcode:B.YjP(),boxId:B.YjP(),added:B.zMY()})),bn=B.Ikc({raKey:B.YjP(),raId:B.YjP()}),Sn=B.Ikc({returnKey:B.YjP(),returnId:B.YjP()}),Cn=B.Ikc({itemKey:B.YjP().nullish(),description:B.YjP(),quantity:B.aig()}),Mn=B.Ikc({ra:bn.nullish().describe("If present, we successfully created an RA in Inmar."),return:Sn.nullish().describe("If present, we successfully created a return on our RA in Inmar."),boxes:B.YOg(Nn).describe("If any present, we successfully added items to the box on our return in Inmar.").nullish(),issueCode:B.k5n(z).nullish().describe("If present, there was an issue with the Inmar integration."),issueMessage:B.YjP().nullish().describe("Description of issue, if there was one."),processedItems:B.YOg(Cn).nullish().describe("Items in the return.")}),gn=B.Ikc({eventType:B.YjP(),status:B.YjP(),eventDateTime:B.p6U(),eventId:B.YjP()}),Dn=B.Ikc({shipmentGroupId:B.YjP(),refReturnId:B.YjP(),qrCode:B.YjP().describe("QR code for customer to use at dropoff location"),qrCodeUri:B.YjP().nullish().describe("URI of a QR code PNG stored in S3 for this BlueYonder return"),status:B.YjP().nullish(),labelValue:B.YjP().nullish().describe("Label value from BlueYonder API for webhook matching"),webhookEvents:B.YOg(gn).describe("History of webhook events received"),lastWebhookUpdate:B.p6U().nullish(),createdAt:B.p6U()}),kn=B.Ikc({returns:B.YOg(Dn).describe("BlueYonder returns created for each shipment group"),chosen:B.zMY().nullish().describe("Whether customer selected BlueYonder as their shipment method")});var Yn;!function(e){e.RETURN_POINT="RETURN_POINT",e.COURIER="COURIER"}(Yn||(Yn={}));const Ln=B.Ikc({carrierName:B.YjP(),shippingLabelUrl:B.YjP(),trackingNumber:B.YjP(),trackingUrl:B.YjP()}),Un=B.Ikc({returnBearCaseId:B.YjP(),returnBearCaseShortId:B.YjP(),selectedReturnMethod:B.k5n(Yn),qrCodeUri:B.YjP().nullish(),shippingInfo:Ln.nullish()});var vn;B.Ikc({enabled:B.zMY(),pointsPerDollar:B.aig(),currentPoints:B.aig(),loyaltyPointsRedeemedOnOrder:B.aig(),lineItemPointsEarned:B.g1P(B.YjP(),B.aig())}),function(e){e.COMPLETE="complete",e.PENDING="pending"}(vn||(vn={}));const jn=B.Ikc({name:B.KCZ([B.k5n(J),B.k5n(Z)]),successful:B.zMY().default(!1),errorCode:ye.nullish(),merchantStopRetries:B.zMY().default(!1),merchantDismissed:B.zMY().default(!1),errorMessage:B.YjP().nullish()}),xn=B.YOg(jn).nullish();var wn;Nt.extend({_id:G.Tu(),createdAt:B.p6U(),updatedAt:B.p6U(),loopId:B.aig(),externalId:B.YjP().nullish(),idempotencyKey:B.YjP().nullish(),metadata:B.YOg(tn).optional(),tags:B.YOg(et).nullish(),status:B.k5n(Be.RO),allProductsDispositionCompleted:B.zMY().nullish(),customer:nn.nullish(),fulfillment:an,processed:B.Ikc({refunds:B.zMY(),storeCredit:B.zMY(),exchanges:B.zMY()}).optional(),provision:B.k5n(Ct).optional(),refunds:B.YOg(B.bzn()),storedCredits:B.YOg(B.Ikc({createdAt:B.p6U(),updatedAt:B.p6U(),priceRuleId:B.YjP().nullish(),discountCodeId:B.YjP().nullish(),source:on.nullish(),products:B.YOg(G.Tu()).nullish(),value:B.aig().nullish(),greenReturn:B.zMY()})),channel:un.optional(),giftCards:B.YOg(B.Ikc({createdAt:B.p6U(),updatedAt:B.p6U(),giftCardId:B.KCZ([B.YjP(),B.aig().transform(String)]).nullish(),code:B.YjP().nullish(),source:on.nullish(),products:B.YOg(B.YjP()).nullish(),value:B.aig().nullish(),greenReturn:B.zMY()})),products:B.YOg(en),barcodes:B.YOg(B.YjP()).nullish(),cancelled_products:B.YOg(en).nullish(),shipment:Xt.optional(),shipments:B.YOg(Xt).optional(),reShipments:B.YOg(Xt).nullish(),nonReturnCustomShipments:B.YOg(Xt).nullish(),shipmentGroups:B.YOg(rn).nullish(),paymentIntents:B.YOg(X).optional(),exchangeOrder:B.YOg(B.bzn()).optional(),exchangeShippingName:B.YjP().nullish(),exchangeShippingFee:B.aig().nullish(),draftOrderId:B.aig().nullish(),draftOrderURL:B.YjP().optional(),markedForManualReview:B.zMY().optional(),reviewingParty:B.fc(Ft).nullish(),automationStrategy:B.Ikc({strategy:B.fc(C.RT)}).nullish(),postage_label:B.YjP().nullish(),packingSlipLink:B.YjP().nullish(),form_label:B.YjP().nullish(),totals:sn,isFlatShipping:B.zMY().nullish(),returnMethod:Fe.nullish(),greenReturn:B.Ikc({discount:B.Ikc({amount:B.aig(),discountCodeId:B.YjP().nullish(),priceRuleId:B.aig().nullish(),code:B.YjP().nullish()}).nullish(),refund:B.Ikc({amount:B.aig().nullish()}).nullish()}).nullish(),stripe:B.Ikc({payment_token:B.YjP().nullish(),customer_id:B.YjP().nullish()}).nullish(),instantExchangeRecovery:B.Ikc({stripeInfo:B.Ikc({customer_id:B.YjP().nullish(),payment_token:B.YjP().nullish(),setup_intent:G.Tu().nullish()}),attempts:B.YOg(B.Ikc({createdAt:B.p6U(),successful:B.zMY()}))}).nullish(),labelDeductedFromCredit:B.zMY().nullish(),shippingFeeToDeduct:B.aig().nullish(),merchant_waived_shipping_fee_deduction:B.zMY().nullish(),merchant_waived_shipping_fee_amount:B.aig().nullish(),timeline:B.YOg(yt),team:G.Tu(),options:B.Ikc({sendNotifications:B.zMY(),waiveDraftFee:B.zMY().optional()}).optional(),address:Kt.nullish(),shipping_address:Kt.nullish(),newOrderAddress:Kt.nullish(),merchant_address:Kt.nullish(),freeNewOrderShipping:B.zMY().optional(),damaged:B.zMY(),wrongProduct:B.zMY(),shopifyReturnId:B.aig().nullish(),shopifyReturnIds:B.YOg(B.aig()).nullish(),netsuiteReturnAuthorization:B.Ikc({id:B.aig().nullish()}).nullish(),notes:cn.nullish(),orders:B.YOg(ln),type:B.k5n(Lt),returnType:B.YOg(B.k5n(Ut)),analyticsTotals:B.Ikc({orderName:B.YjP().nullish(),returnValueNoTaxAdjustment:B.aig().nullish(),returnTax:B.aig().nullish(),returnAdjustment:B.aig().nullish(),returnTotalValue:B.aig().nullish(),returnExchangeValue:B.aig().nullish(),returnStoreCreditValue:B.aig().nullish(),returnRefundValue:B.aig().nullish(),containsGreenReturn:B.zMY().nullish()}).nullish(),operations:B.Ikc({processedBy:B.YjP().nullish(),processedAt:B.p6U().nullish(),processedEmail:B.YjP().nullish(),approvedBy:B.YjP().nullish(),approvedAt:B.p6U().nullish(),approvedEmail:B.YjP().nullish(),createdBy:B.YjP().nullish(),createdEmail:B.YjP().nullish()}).nullish(),rejectType:B.k5n(zt).nullish(),originalReturnOptions:B.Ikc({advancedExchangeItems:B.YOg(kt),new_order_taxes:B.YjP().optional(),discount_allocations:B.YOg(mn).optional()}).nullish(),processAt:B.Ikc({exchange:B.p6U().nullish(),storeCredit:B.p6U().nullish(),refund:B.p6U().nullish()}).nullish(),sentInvoice:B.zMY().optional(),completedAt:B.p6U().nullish(),pickup:B._H3({email:B.YjP().nullish(),phone:B.YjP().nullish(),pickupDate:B.YjP(),pickupLocation:B._H3({packageLocation:B.k5n(St),specialInstructions:B.YjP().nullish()}),surveySent:B.zMY().nullish(),pickupPayer:B.YjP().nullish()}).nullish(),pickupMetrics:B.Ikc({eligible:B.zMY().nullish(),normalLabel:B.aig().nullish(),rate:B.aig().nullish(),coveredByRedo:B.zMY().nullish(),isMobile:B.zMY().nullish()}).nullish(),inStoreReturn:B.zMY().optional(),pos:B.Ikc({locationId:B.YjP()}).nullish(),settlement:gt.nullish(),instantRefund:B.Ikc({astra_user_id:B.YjP(),astraRoutine:B.bzn().nullish(),astraRoutines:B.YOg(B.bzn()),astraRoutinePullback:B.bzn().nullish(),status:B.k5n(vt),sandbox:B.zMY()}).nullish(),lastEmailReminder:B.p6U().nullish(),warnings:B.YOg(Wt).optional(),advancedExchangeItems:B.YOg(kt).optional(),new_order_taxes:B.YjP().optional(),discount_allocations:B.YOg(mn).optional(),usePreDiscountPrice:B.zMY().optional(),expirationDate:B.p6U(),filedWithCarrier:B.p6U().nullish(),some_processed:B.zMY().optional(),currentEmailFlows:B.YOg(B.Ikc({emailFlowId:B.YjP(),currentStep:B.aig(),continueDate:B.YjP(),fulfillmentId:B.YjP().optional()})).optional(),testId:B.YjP().nullish(),treatmentId:B.YjP().nullish(),pickupVariant:B.YjP().nullish(),rejectReason:B.YjP().nullish(),processingInput:B.Ikc({customerRejectionNotes:B.YjP().nullish()}).nullish(),currency:B.k5n(F.Sj).nullish(),presentmentCurrency:B.k5n(F.Sj).nullish(),newItemToExchangeRate:B.aig().optional(),happyReturnsData:B.Ikc({rmaId:B.YjP().nullish(),qrCode:B.YjP().nullish(),retailerId:B.YjP().nullish()}).nullish(),provider:B.k5n(S.Kq).nullish(),customerPortalVersion:B.k5n(C.x2).nullish(),agentReview:H.partial().nullish(),returnChat:K.nullish(),exchangeAgentBillable:B.zMY().nullish(),isManualLabel:B.zMY().nullish(),manualLabelData:B.Ikc({shipments:B.YOg(B.Ikc({address:Kt,returnItemIds:B.YOg(B.YjP()),packingSlipUrl:B.YjP().nullish()})).nullish()}).nullish(),approvedAt:B.p6U().nullish(),upsellBillingTrigger:B.fc(Dt).nullish(),inmar:Mn.nullish(),blueYonder:kn.nullish(),returnBear:Un.nullish(),merchantCreated:B.zMY().nullish(),yofiReturnScores:B.g1P(B.YjP(),En).nullish(),temporalWorkflowFailures:B.Ikc({workflows:B.YOg(B.Ikc({name:B.YjP(),attempts:B.aig()})),activities:B.YOg(B.Ikc({name:B.YjP(),attempts:B.aig()}))}).nullish(),exchangeAgentSeen:B.zMY().nullish(),reimburseForFinalSale:B.zMY().nullish().default(!0),createRmaResults:xn,featureFlags:B.g1P(B.YjP(),B.zMY()).nullish()}),function(e){e.IN_PROGRESS="IN_PROGRESS",e.COMPLETED="COMPLETED"}(wn||(wn={}));const Fn=(0,a.J)({fields:{...D.fields,returnPackingInstructions:{dataType:"Maybe Multiple Text",documentation:"Instructions for returning the items",hideFromConditionStep:!0},emailAttachments:{dataType:"Multiple Email Attachment",documentation:"The attached items in a return confirmation email",hideFromConditionStep:!0},compensationMethod:{dataType:"Multiple Enum",documentation:"The method of compensation for the return",values:Object.values(Ut)},customerRequestType:{dataType:"Enum",documentation:"The type of the return",values:Object.values(Lt)},notes:{dataType:"Object",documentation:"Notes from the merchant to the customer (Use `.` to access nested fields)",hideFromConditionStep:!0,hideFromInsertionModal:!0},notesToCustomerOnApproval:{dataType:"Maybe Text",documentation:"The note from the merchant to the customer on approval",hideFromConditionStep:!0},notesToCustomerOnProcessing:{dataType:"Maybe Text",documentation:"The note from the merchant to the customer on processing",hideFromConditionStep:!0},returnRejectedReason:{dataType:"Maybe Text",documentation:"The reason the return was rejected"},packagePickupDayOfWeek:{dataType:"Maybe Text",documentation:"The day of the week the package will be picked up"},packagePickupDetail:{dataType:"Maybe Text",documentation:"Details for picking up the package",hideFromConditionStep:!0},returnDetailsLink:{dataType:"Url",documentation:"The link to view the return details",hideFromConditionStep:!0},completeExchangeLink:{dataType:"Maybe Url",documentation:"The link to complete an exchange",hideFromConditionStep:!0},pickupSurveyLink:{dataType:"Maybe Url",documentation:"The link to a survey about the pickup experience",hideFromConditionStep:!0},pickupRescheduleLink:{dataType:"Maybe Url",documentation:"The link to reschedule a pickup",hideFromConditionStep:!0},pickupCancelLink:{dataType:"Maybe Url",documentation:"The link to cancel a pickup",hideFromConditionStep:!0},returnDetailsQrCode:{dataType:"Maybe Text",hideFromConditionStep:!0,documentation:"The QR code for customers to show to store associates"},storeLocationsLink:{dataType:"Url",documentation:"The link to the store locations",hideFromConditionStep:!0},isBlueYonderReturn:{dataType:"Boolean",hideFromInsertionModal:!0,documentation:"Whether the return is a blue yonder return or not"},returnPortalLoginLink:{dataType:"Url",documentation:"The link to the return portal",hideFromConditionStep:!0},storeName:{dataType:"Text",documentation:"The name of your store",hideFromConditionStep:!0},storeEmail:{dataType:"Text",documentation:"The default email of your store",hideFromConditionStep:!0},hasGreenReturnItems:{dataType:"Boolean",hideFromInsertionModal:!0,documentation:"Whether the return contains any green return items (items the customer can keep)"},allItemsAreGreenReturn:{dataType:"Boolean",hideFromInsertionModal:!0,documentation:"Whether all items in the return are green return items (customer keeps all items)"},exchangeOutOfStockPolicy:{dataType:"Text",documentation:"The pretty-formatted policy for out of stock exchanges",hideFromConditionStep:!0},isRepair:{dataType:"Boolean",hideFromInsertionModal:!0,documentation:"Whether the return is for repair (true) or not (false)"},returnSubmittedDate:{dataType:"Text",hideFromConditionStep:!0,documentation:"The date when the return was submitted by the customer"},returnExpirationDate:{dataType:"Maybe Text",hideFromConditionStep:!0,documentation:"The date when the return expires and is no longer valid"},isAnInstantExchange:{dataType:"Boolean",hideFromInsertionModal:!0,documentation:"Whether the return was an instant exchange or not"},isAnInStoreReturn:{dataType:"Boolean",hideFromInsertionModal:!0,documentation:"Whether the return is an in-store return or not"},channel:{dataType:"Maybe Text",documentation:"The channel the return was created from"},returnTotalValue:{dataType:"Text",documentation:"The total value of the return including taxes and adjustments",hideFromConditionStep:!0},isManualLabel:{dataType:"Boolean",hideFromInsertionModal:!0,documentation:"Whether the return was manually created or not"},boxlessReturnsQrCode:{dataType:"Multiple Url To Qr Code",documentation:"The URL to the QR code for customers to show at boxless drop off locations",hideFromConditionStep:!0},boxlessReturnsLocations:{dataType:"Maybe Url",documentation:"The link to view boxless drop off locations",hideFromConditionStep:!0},returnTags:{dataType:"Multiple Text",documentation:"Tags associated with the return"}}}),Gn=(0,a.J)({fields:{...Fn.fields,fedExEasyReturnsQrCodes:{dataType:"Multiple Url To Qr Code",documentation:"The QR code for customers to show at drop off locations",hideFromInsertionModal:!0,hideFromConditionStep:!0},fedExEasyReturnsLocations:{dataType:"Url",documentation:"The link to view FedEx Easy Returns locations",hideFromInsertionModal:!0,hideFromConditionStep:!0}}});var Bn,Kn,Hn,zn,Vn,Wn;!function(e){e.TRIAL_ACTIVE="trial_active",e.CANCELLED="cancelled",e.COMPLETE_PAID_BY_CUSTOMER="complete_paid_by_customer",e.COMPLETE_RETURNED="complete_returned"}(Bn||(Bn={})),function(e){e.ORDER_PURCHASE="order_purchase",e.TRIAL_END="trial_end"}(Kn||(Kn={})),function(e){e.AUTHORIZATION="authorization",e.CAPTURE_PREVIOUS_AUTHORIZATION="capture_previous_authorization",e.AUTHORIZE_AND_CAPTURE="authorize_and_capture"}(Hn||(Hn={})),function(e){e.PENDING="pending",e.SUCCEEDED="succeeded",e.FAILED="failed",e.API_FAILURE="api_failure"}(zn||(zn={})),function(e){e.INITIAL_PAYMENT_FAILED="initial_payment_failed",e.INELIGIBLE_FOR_TRIAL="ineligible_for_trial"}(Vn||(Vn={})),function(e){e.FRAUD_RISK="fraud_risk",e.CART_VALUE_EXCEEDED="cart_value_exceeded",e.CART_ITEM_COUNT_EXCEEDED="cart_item_count_exceeded"}(Wn||(Wn={}));const Xn=B.Ikc({type:B.euz(Wn.FRAUD_RISK),highestRiskLevel:B.fc(C.Q6),acceptableRiskLevel:B.fc(C.Q6)}),Jn=B.Ikc({type:B.euz(Wn.CART_VALUE_EXCEEDED),cartValue:B.aig(),cartValueLimit:B.aig()}),Zn=B.Ikc({type:B.euz(Wn.CART_ITEM_COUNT_EXCEEDED),cartTnplItemCount:B.aig(),cartMaxTnplItems:B.aig()}),qn=B.gMt("type",[Xn,Jn,Zn]),Qn=B.Ikc({idempotencyKey:B.YjP(),paymentReferenceId:B.YjP(),transactionId:B.YjP().optional(),parentTransactionId:B.YjP().optional(),date:B.p6U(),type:B.k5n(Hn),status:B.k5n(zn),amount:B.aig().optional(),jobId:B.YjP().optional()}),$n=(B.Ikc({_id:G.Tu(),team:G.Tu(),tnplContractTemplate:G.Tu(),shopifyOrderId:B.aig(),shopifyLineItemIds:B.YOg(B.aig()),shopifySellingPlanId:B.aig(),shopifyPaymentScheduleIds:B.YOg(B.aig()).optional(),shopifyPaymentMandateIds:B.YOg(B.YjP()),initialSellingPlanAmount:B.aig(),remainingTrialAmount:B.aig().optional(),sellingPlanCurrency:B.YjP(),order:G.Tu(),return:G.Tu().optional(),orderDate:B.p6U(),initialPaymentDate:B.p6U().optional(),deliveryDate:B.p6U().optional(),returnedDate:B.p6U().optional(),approvedDate:B.p6U().optional(),trialPeriodEnd:B.p6U().optional(),chargeDate:B.p6U().optional(),merchantProcessingEndDate:B.p6U().optional(),trialDatesCommitted:B.zMY().optional().default(!1),status:B.k5n(Bn),charges:B.YOg(Qn),orderRiskLevel:B.YjP().optional(),orderIneligibleReason:qn.optional(),cancelledReason:B.k5n(Vn).optional(),defaultedAt:B.p6U().optional(),shippingDueLater:B.aig().nullish(),createdAt:B.p6U(),updatedAt:B.p6U()}),(0,a.J)({fields:{...D.fields,tnplContractId:{dataType:"Text",documentation:"The unique identifier for the TNPL contract",hideFromInsertionModal:!0},tnplContractName:{dataType:"Text",documentation:"The name/title of the TNPL contract"},tnplContractStatus:{dataType:"Enum",values:Object.values(Bn),documentation:"The current status of the TNPL contract"},trialPeriodEnd:{dataType:"Maybe Date",documentation:"The date when the trial period ends"},chargeDate:{dataType:"Maybe Date",documentation:"The date when the customer will be charged"},chargeAmount:{dataType:"Maybe Number",documentation:"The amount to be charged to the customer"},initialFullAmountCharge:{dataType:"Maybe Number",documentation:"The initial full amount charge for the TNPL contract"},chargeStatus:{dataType:"Enum",values:Object.values(zn),documentation:"The current status of the charge process"},daysRemainingInTrial:{dataType:"Maybe Number",documentation:"Number of days remaining in the trial period"},returnDeadline:{dataType:"Maybe Date",documentation:"The deadline for returning trial items"},createTnplReturnLink:{dataType:"Maybe Url",documentation:"Link to create a TNPL return"},viewOrdersLink:{dataType:"Url",documentation:"Link to view orders in the customer portal"},keepAllItemsLink:{dataType:"Url",documentation:"Link to keep all items and complete the purchase"},trialRemainingAmountToAuthorize:{dataType:"Maybe Number",documentation:"The remaining trial amount to be authorized"}}}));var ea;Temporal.Now.instant().add({hours:168}).toZonedDateTimeISO("UTC").toPlainDate(),Temporal.Now.instant().add({hours:192}).toZonedDateTimeISO("UTC").toPlainDate(),Temporal.Now.instant().add({hours:168}).toZonedDateTimeISO("UTC").toPlainDate(),function(e){e.ORDER_TRACKING="order_tracking",e.RETURN_TRACKING="return_tracking",e.FEDEX_EASY_RETURNS_RETURN_TRACKING="fedex_easy_returns_return_tracking",e.TNPL_TRACKING="tnpl_tracking",e.EMAIL_MARKETING_SIGNUP="email_marketing_signup",e.SMS_MARKETING_SIGNUP="sms_marketing_signup",e.SMS_MARKETING_CONFIRMED="sms_marketing_confirmed",e.MARKETING_CAMPAIGN="marketing_campaign",e.REVIEWS="reviews",e.MARKETING_EMAIL="marketing_email",e.MARKETING_CART_ABANDONMENT="marketing_cart_abandonment",e.MARKETING_BROWSE_ABANDONMENT="marketing_browse_abandonment",e.MARKETING_CHECKOUT_ABANDONMENT="marketing_checkout_abandonment",e.MARKETING_COMMENTSOLD_CART_ABANDONMENT="marketing_commentsold_cart_abandonment",e.MARKETING_COMMENTSOLD_BROWSE_ABANDONMENT="marketing_commentsold_browse_abandonment",e.MARKETING_COMMENTSOLD_CHECKOUT_ABANDONMENT="marketing_commentsold_checkout_abandonment",e.MARKETING_BACK_IN_STOCK="marketing_back_in_stock",e.MARKETING_SEGMENT_MEMBERSHIP_CHANGE="marketing_segment_membership_change",e.MARKETING_WARRANTY_REGISTRATION="marketing_warranty_registration",e.MARKETING_LOW_INVENTORY="marketing_low_inventory",e.MARKETING_DATE="marketing_date",e.MARKETING_PRICE_DROP="marketing_price_drop",e.OMS_NEW_FULFILLMENT_GROUP="oms_new_fulfillment_group",e.OMS_ORDER_READY_FOR_PICKUP="oms_order_ready_for_pickup",e.ADDRESS_VERIFICATION_FAILED="address_verification_failed",e.CHECKOUT_TREE="checkout_tree",e.RCO_CHECKOUT_PACKAGE="rco_checkout_package",e.POST_PURCHASE_FLOW="post_purchase_flow",e.PRODUCT_SUBSCRIPTION_UPCOMING_CHARGE="product_subscription",e.EXTENDED_WARRANTY="extended_warranty",e.YOTPO_LOYALTY_EXPIRATION_REMINDER="yotpo_loyalty_expiration_reminder",e.YOTPO_LOYALTY_POINTS_REMINDER="yotpo_loyalty_points_reminder",e.YOTPO_LOYALTY_REDEMPTION_REMINDER="yotpo_loyalty_redemption_reminder",e.YOTPO_LOYALTY_REDEMPTION_CREATED="yotpo_loyalty_redemption_created",e.YOTPO_LOYALTY_REFERRAL_COMPLETED="yotpo_loyalty_referral_completed",e.YOTPO_LOYALTY_REFERRAL_SHARED="yotpo_loyalty_referral_shared",e.YOTPO_LOYALTY_CUSTOMER_BIRTHDAY="yotpo_loyalty_customer_birthday",e.YOTPO_LOYALTY_OPT_IN="yotpo_loyalty_opt_in",e.YOTPO_LOYALTY_TIER_EARNED="yotpo_loyalty_tier_earned",e.YOTPO_LOYALTY_TIER_LOST="yotpo_loyalty_tier_lost",e.YOTPO_LOYALTY_POINTS_EARNED="yotpo_loyalty_points_earned"}(ea||(ea={}));const ta={[ea.ORDER_TRACKING]:x,[ea.RETURN_TRACKING]:Fn,[ea.TNPL_TRACKING]:$n,[ea.EMAIL_MARKETING_SIGNUP]:O.UW,[ea.SMS_MARKETING_SIGNUP]:O.de,[ea.SMS_MARKETING_CONFIRMED]:O.q,[ea.MARKETING_CAMPAIGN]:O.lr,[ea.MARKETING_SEGMENT_MEMBERSHIP_CHANGE]:O.$k,[ea.REVIEWS]:j,[ea.MARKETING_EMAIL]:O.lr,[ea.MARKETING_CART_ABANDONMENT]:O.YF,[ea.MARKETING_BROWSE_ABANDONMENT]:O.Gm,[ea.MARKETING_CHECKOUT_ABANDONMENT]:O.Mq,[ea.MARKETING_COMMENTSOLD_CART_ABANDONMENT]:O.Ch,[ea.MARKETING_COMMENTSOLD_BROWSE_ABANDONMENT]:O.Oj,[ea.MARKETING_COMMENTSOLD_CHECKOUT_ABANDONMENT]:O.e6,[ea.OMS_NEW_FULFILLMENT_GROUP]:Y,[ea.OMS_ORDER_READY_FOR_PICKUP]:L,[ea.ADDRESS_VERIFICATION_FAILED]:U,[ea.MARKETING_BACK_IN_STOCK]:O.h2,[ea.MARKETING_LOW_INVENTORY]:O.Tn,[ea.MARKETING_WARRANTY_REGISTRATION]:O.rf,[ea.MARKETING_DATE]:O.s7,[ea.MARKETING_PRICE_DROP]:O.Rh,[ea.CHECKOUT_TREE]:i,[ea.RCO_CHECKOUT_PACKAGE]:o,[ea.POST_PURCHASE_FLOW]:r,[ea.PRODUCT_SUBSCRIPTION_UPCOMING_CHARGE]:v,[ea.EXTENDED_WARRANTY]:s,[ea.FEDEX_EASY_RETURNS_RETURN_TRACKING]:Gn,[ea.YOTPO_LOYALTY_EXPIRATION_REMINDER]:u,[ea.YOTPO_LOYALTY_POINTS_REMINDER]:l,[ea.YOTPO_LOYALTY_REDEMPTION_REMINDER]:c,[ea.YOTPO_LOYALTY_REDEMPTION_CREATED]:m,[ea.YOTPO_LOYALTY_REFERRAL_COMPLETED]:h,[ea.YOTPO_LOYALTY_REFERRAL_SHARED]:T,[ea.YOTPO_LOYALTY_CUSTOMER_BIRTHDAY]:p,[ea.YOTPO_LOYALTY_OPT_IN]:_,[ea.YOTPO_LOYALTY_TIER_EARNED]:E,[ea.YOTPO_LOYALTY_TIER_LOST]:R,[ea.YOTPO_LOYALTY_POINTS_EARNED]:I},na=e=>{const{key:t,default:n,isHtml:a=!0,schemaType:o}=e,i=t.replace(/[A-Z]/g,(e=>`_${e.toLowerCase()}`));let r="";if(o&&ta[o]){const e=ta[o].fields[t];if(e){const t=e.dataType;t.includes("Multiple")?r=a?'| list: "ordered"':'| join: ", "':"Object"===t&&(r='| object: "pairs"')}}if(n){const e=`| default: "${n}"`;r+=r?` ${e}`:e}return["{{",i,r,"}}"].filter(Boolean).join(" ")}},86964:(e,t,n)=>{"use strict";var a;n.d(t,{UG:()=>o,ov:()=>a}),function(e){e.CUSTOMER_GROUP_ID="customer_group_id"}(a||(a={}));const o=["Number","Text","Url","Email","Phone","Date","DateTime","Boolean","Object"]},15313:(e,t,n)=>{"use strict";function a(e){return e}n.d(t,{J:()=>a})},1939:(e,t,n)=>{"use strict";var a;n.d(t,{q:()=>a}),function(e){e.REDO_SUPPORT="redo-support",e.SHOPIFY="shopify",e.REDO_MARKETING="redo-marketing"}(a||(a={}))},23337:(e,t,n)=>{"use strict";var a,o,i,r,s,d,u,l,c,m,h,T,p,_,E,R,I,O,A,f,P,y,N,b,S,C,M;n.d(t,{C1:()=>T,So:()=>A,ay:()=>O,F6:()=>f}),n(2333),function(e){e.STATIC="static",e.AMP="amp"}(a||(a={})),function(e){e.REAL="real",e.BUILDER="builder",e.PREVIEW="preview",e.SEED_LIST="seed-list",e.VIEW_IN_BROWSER="view-in-browser"}(o||(o={})),function(e){e.FALLBACK="fallback",e.AMP="amp",e.APPLE_MAIL="apple-mail"}(i||(i={})),function(e){e.DYNAMIC="dynamic",e.MANUAL="static"}(r||(r={})),function(e){e.ROWS="rows",e.COLUMNS="columns"}(s||(s={})),function(e){e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl"}(d||(d={})),function(e){e.SMALL=.8,e.MEDIUM=1,e.LARGE=1.2,e.DEFAULT_HEIGHT=40,e.DEFAULT_WIDTH=200}(u||(u={})),function(e){e.SMALL=8,e.MEDIUM=16,e.LARGE=32}(l||(l={})),function(e){e.NORMAL="normal",e.BOLD="bold"}(c||(c={})),function(e){e.TRANSACTIONAL="transactional",e.MARKETING="marketing",e.DEFAULT="default"}(m||(m={})),function(e){e.TEMPLATE_COLLECTION="template_collection",e.CAMPAIGN="campaign"}(h||(h={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(T||(T={})),function(e){e.TOP="top",e.CENTER="center",e.BOTTOM="bottom"}(p||(p={})),function(e){e.IMAGE="image",e.LOGO="logo",e.TEXT="text"}(_||(_={})),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.CUSTOM="custom"}(E||(E={})),function(e){e.WEB_PAGE="web-page",e.DYNAMIC_VARIABLE="dynamic-variable"}(R||(R={})),function(e){e.WEB_PAGE="web-page",e.DYNAMIC_VARIABLE="dynamic-variable"}(I||(I={})),function(e){e.ARIAL="Arial",e.COURIER_NEW="Courier New",e.GEORGIA="Georgia",e.LUCIDA_SANS_UNICODE="Lucida Sans Unicode",e.TAHOMA="Tahoma",e.TIMES_NEW_ROMAN="Times New Roman",e.TREBUCHET_MS="Trebuchet MS",e.VERDANA="Verdana"}(O||(O={})),function(e){e.TRACKABLE_SUMMARY="order-summary",e.TRACKING_INFO="tracking-info",e.BUTTON="button",e.PRODUCTS="interactive-cart",e.HEADER="header",e.FOOTER="footer",e.IMAGE="image",e.TEXT="text",e.SPACER="spacer",e.LINE="line",e.REVIEW_REQUEST="review-request",e.COLUMN="column",e.MENU="menu",e.SOCIALS="socials",e.DISCOUNT="discount",e.SHOPPABLE_PRODUCTS="shoppable-products",e.SCRATCH_TO_REVEAL="scratch-to-reveal",e.INTERACTIVE_REVIEW_REQUEST="interactive-review-request",e.QR_CODE="qr-code-email",e.SUBSCRIPTION_SKIP_OR_DELAY="subscription-skip-or-delay",e.SUBSCRIPTION_ADD_TO_ORDER="subscription-add-to-order",e.SUBSCRIPTION_SWAP_PRODUCT="subscription-swap-product",e.CHROME_DINO="chrome-dino",e.SECTION_REFERENCE="section-reference"}(A||(A={})),function(e){e.APPLE="apple",e.DISCORD="discord",e.FACEBOOK="facebook",e.GITHUB="github",e.GOOGLE="google",e.INSTAGRAM="instagram",e.LINKEDIN="linkedin",e.PINTEREST="pinterest",e.REDDIT="reddit",e.SNAPCHAT="snapchat",e.TIKTOK="tiktok",e.TWITTER="twitter",e.YOUTUBE="youtube"}(f||(f={})),function(e){e.BLACK="black",e.WHITE="white",e.GRAY="gray"}(P||(P={})),function(e){e.CUSTOM="custom",e.BRANDKIT="brandkit"}(y||(y={})),function(e){e.DESKTOP="desktop",e.MOBILE="mobile",e.CUSTOM="custom"}(N||(N={})),function(e){e.RECOMMENDATIONS_CACHE_DURATION_HOURS=1,e.RECOMMENDATIONS_CACHE_KEY_PREFIX="email-recommendations-",e.MAX_QUANTITY_PER_PRODUCT=5,e.MAX_PRODUCTS_PER_EMAIL=10,e.MAX_VARIANT_DIMENSIONS=3,e.MAX_TITLE_LENGTH=70,e.MAX_DESCRIPTION_LENGTH=80}(b||(b={})),function(e){e.EXTRA_SMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRA_LARGE="xl"}(S||(S={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(C||(C={})),function(e){e.COVER="cover",e.CONTAIN="contain"}(M||(M={}))},72223:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});const a={viewInBrowserLink:{dataType:"Maybe Url",documentation:"The link to view the email in the browser."}}},56319:(e,t,n)=>{"use strict";var a,o,i,r,s;n.d(t,{Ap:()=>s,Kq:()=>o,Zp:()=>r}),function(e){e.BILLED="billed",e.FREE="free"}(a||(a={})),function(e){e.COMMENTSOLD="commentsold",e.SHOPIFY="shopify",e.COMMERCE_CLOUD="commerce-cloud",e.BIGCOMMERCE="bigcommerce",e.NETSUITE="netsuite",e.MANUAL="manual",e.TIKTOK="tiktok",e.AMAZON="amazon",e.WALMART="walmart",e.EBAY="ebay",e.APPAREL_MAGIC="apparel-magic",e.REDO_MARKETPLACE="redo-marketplace",e.SFOM="sfom",e.AIMS360="aims360",e.CIN7_OMNI="cin7-omni",e.CIN7_CORE="cin7-core",e.REDO_API="redo-api"}(o||(o={})),function(e){e.SHOPIFY_WEB="web",e.BIGCOMMERCE="bigcommerce",e.COMMENTSOLD="CommentSold",e.COMMERCECLOUD="Commerce Cloud",e.SFOM="Salesforce Order Management"}(i||(i={})),function(e){e.SHIPPING="shipping"}(r||(r={})),function(e){e.LOW="low",e.MEDIUM="medium",e.HIGH="high"}(s||(s={}))}}]); //# sourceMappingURL=337-04ea0cba.js.map