1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ebc75ac2-4a62-46c7-9ea6-74afeda18bda",e._sentryDebugIdIdentifier="sentry-dbid-ebc75ac2-4a62-46c7-9ea6-74afeda18bda")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5684],{31707:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var i=n(49222),d=n(10145),r=n(61118),a=n(55851);let s=e=>{let{backLink:t,label:n,description:s,...o}=e;return(0,i.jsxs)(d.s,{direction:"column",gap:{base:"14px",lg:"8px"},...o,children:[(0,i.jsxs)(d.s,{direction:"column",gap:{base:"8px",lg:"10px"},children:[t,(0,i.jsx)(r.D,{fontSize:{base:"24px",lg:"30px"},lineHeight:{base:"28.44px",lg:"35.55px"},fontFamily:"body",fontWeight:"600",color:"blue.800",children:n})]}),s&&(0,i.jsx)(a.E,{fontWeight:"400",fontSize:"16px",lineHeight:"21px",color:"gray.600",maxW:"700px",children:s})]})}},36126:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>h,default:()=>x});var i=n(49222),d=n(10145),r=n(90322),a=n(17040),s=n(22325),o=n(31707),c=n(17501),u=n(22410),l=n(29652),_=n(58143),p=n(742),g=n(53990),b=n(65418),m=n(43481);n(77766);var f=n(21590),h=!0;let x=e=>{let t=(0,p.t)(),{data:n}=(0,r.I)(["bundle",e.id],()=>(async e=>(await t.query({bundle:{__args:{id:e},__typename:!0,id:!0,substitution:!0,selected_categories:!0,categories:{markup_type:!0,percentage_product_margin:!0,percentage_bundle_margin:!0,fixed_bundle_margin:!0,fixed_product_margin:!0,enabled:!0,category:{default:!0,type:!0,additional_rule:!0,additional_service_info:!0,age_category:!0,booking_requirement:!0,bundle_offer_expiration:!0,product_service_redemption:!0,pricing_detail:!0,search_requirement:!0,coverage:!0,description:!0,name:!0,net_price:!0,recommended_bundle_percent:!0,recommended_bundle_fixed:!0,recommended_product_fixed:!0,recommended_product_percent:!0}},products:{...f.YT,images:!0}}})).bundle)(e.id)),h=(0,m.useRouter)(),x=(0,g.d)(),y=(0,a.jE)(),w=(0,s.n)(async e=>t.mutate({updateBundle:{__args:{input:e},id:!0,selected_categories:!0,categories:{...f.YT}}}),{onSuccess:()=>y.invalidateQueries(["bundle",e.id])});return n?(0,i.jsx)(c.P,{children:(0,i.jsxs)(d.s,{direction:"column",width:"100%",children:[(0,i.jsx)(o.Y,{label:"Edit Bundle",description:"Select which product categories to include in the bundle. For each category, you can edit the markups or keep the default ones recommended by TripAdd.",mb:"24px"}),(0,i.jsxs)(_.O,{children:[(0,i.jsx)(l.B,{}),(0,i.jsx)(u.J,{categorySubstitution:n.substitution,bundleCategories:n.categories,selectedCategories:n.selected_categories,submitLabel:"Update bundle",onSubmit:t=>{w.mutate((0,b.CL)({...t,id:e.id}),{onSuccess:e=>{h.push("/templates/".concat(e.updateBundle.id,"/install?source=edit"))},onError:e=>{x({title:e instanceof Error&&e.message||"Something went wrong, try again!",status:"error"})}})}})]})]})}):null}},40826:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/templates/[id]/edit",function(){return n(36126)}])}},e=>{e.O(0,[7355,3003,2773,4019,8589,6990,38,2682,3005,5255,7501,7296,7252,7425,636,6593,8792],()=>e(e.s=40826)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.