1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3430],{91581:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/agency/agreement-templates",function(){return n(40068)}])},51948:function(e,t,n){"use strict";var r=n(14251),s=n(52875),i=n(44747),l=n(85893),a=(n(67294),n(45697)),o=n(38504),c=n(74852),u=n(14373),h=n(40944),p=n(36411);function d(e){var t=e.items,n=e.mode,a=void 0===n?"light":n,d=e.textColor,x=void 0===d?"almostBlack":d,m=e.iconColor,g=void 0===m?"primary":m,f=(0,i.Z)(e,["items","mode","textColor","iconColor"]),Z=(0,p.Z)("sm");if(t.length<2)return null;var y=t[t.length-2],j="light"===a?g:"white",b="light"===a?x:"white";return(0,l.jsx)(o.Z,(0,s.Z)((0,r.Z)({},f),{display:"flex",alignItems:"center",children:Z?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.Z,{name:"chevron_left",color:j,mr:"5px",size:"xl"}),"object"===typeof y?(0,l.jsx)(u.Z,{href:y.href,hrefAs:y.hrefAs,decorationColor:b,children:(0,l.jsx)(c.Z,{weight:"bold",color:b,size:"sm",children:"string"===typeof y?y:y.label})}):(0,l.jsx)(c.Z,{weight:"bold",color:b,size:"sm",children:"string"===typeof y?y:y.label})]}):t.map((function(e,t){var n="string"===typeof e?e:e.label,r=(0,l.jsx)(c.Z,{weight:"bold",color:b,children:n});return(0,l.jsxs)(o.Z,{display:"flex",alignItems:"center",children:[t>0&&(0,l.jsx)(c.Z,{mx:"10px",color:j,weight:"bold",children:"/"}),"string"===typeof e?r:(0,l.jsx)(u.Z,{href:e.href,hrefAs:e.hrefAs,decorationColor:b,children:r})]},n)}))}))}d.propTypes={items:(0,a.arrayOf)((0,a.oneOfType)([a.string,(0,a.shape)({href:a.string,label:a.string})])),mode:(0,a.oneOf)(["light","dark"]),textColor:a.string,iconColor:a.string},t.Z=d},2815:function(e,t,n){"use strict";var r=n(34727),s=n(75815),i=n(18352),l=n(67573),a=n(90132),o=n(14251),c=n(48270),u=n(97582),h=n(85893),p=n(67294),d=n(45697),x=n(36135);t.Z=function(e){var t;return t=function(t){(0,a.Z)(l,t);var n=(0,c.Z)(l);function l(){return(0,s.Z)(this,l),n.apply(this,arguments)}return(0,i.Z)(l,[{key:"render",value:function(){return this.props.statusCode?(0,h.jsx)(x.default,(0,o.Z)({},this.props)):(0,h.jsx)(e,(0,o.Z)({},this.props))}}],[{key:"getInitialProps",value:function(t){return(0,r.Z)((function(){var n,r;return(0,u.__generator)(this,(function(s){switch(s.label){case 0:return e.getInitialProps?[4,e.getInitialProps(t)]:[3,2];case 1:return r=s.sent(),[3,3];case 2:r=null,s.label=3;case 3:return(n=r||{}).statusCode&&t.res&&(t.res.statusCode=n.statusCode),[2,n]}}))}))()}}]),l}(p.Component),(0,l.Z)(t,"propTypes",{statusCode:d.number}),t}},36135:function(e,t,n){"use strict";n.r(t);var r=n(34727),s=n(97582),i=n(85893),l=(n(67294),n(45697)),a=n(24844),o=n(31838),c=n(97892),u=n(98771),h=n(74852),p=n(52077),d=n(38504),x=n(14373);function m(e){var t=e.statusCode,n=e.title,r=e.message,s=(0,a.Kw)((function(e){return e.me.data})),l=n||(t>=500?"Uh oh! Something's wrong.":401===t?"You need an account to view this page!":403===t?"Sorry, access denied!":"Sorry, page not found!"),c=function(){return(0,i.jsxs)(d.Z,{py:"40px",px:["20px","20px","40px"],children:[(0,i.jsx)(h.Z,{tag:"h1",size:["xxxl","xxxxl"],align:"center",mb:"20px",lineHeight:1.5,children:l}),r?(0,i.jsx)(h.Z,{align:"center",lineHeight:1.5,children:r}):(0,i.jsxs)(h.Z,{align:"center",lineHeight:1.5,children:["If this isn't right, please contact support at"," ",(0,i.jsx)(x.Z,{external:!0,href:"mailto:".concat(o.Z.support.email),children:o.Z.support.email}),"."]}),(0,i.jsx)(d.Z,{display:"flex",justifyContent:"center",children:(0,i.jsx)(p.Z,{href:"/",minWidth:"200px",mt:"40px",children:"Home"})})]})};return(0,i.jsx)(i.Fragment,{children:s?(0,i.jsx)(u.Z,{children:(0,i.jsx)(c,{})}):(0,i.jsx)(c,{})})}m.getInitialProps=function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,c.ZP)(e)];case 1:return t.sent(),[2,{statusCode:e.res?e.res.statusCode:e.err?e.err.statusCode:null}]}}))}));return function(t){return e.apply(this,arguments)}}(),m.propTypes={statusCode:l.number,title:l.string,message:l.string},t.default=m},40068:function(e,t,n){"use strict";n.r(t);var r=n(34727),s=n(97582),i=n(85893),l=(n(67294),n(24844)),a=n(27484),o=n.n(a),c=n(28734),u=n.n(c),h=n(45697),p=n(97892),d=n(90812),x=n(5601),m=n(74852),g=n(52077),f=n(38504),Z=n(29761),y=n(51948),j=n(4433),b=n(2815),v=n(2369),w=n(86773),C=n(81631);o().extend(u());var _=[{label:"Home",href:"/"},{label:"Manage Agency",href:"/agency"},"Agreement Templates"];function A(e){var t=e.templates,n=e.agency,r=(0,l.WX)((function(e){return e.modals.showModal}));return(0,i.jsx)(x.Z,{title:"Document Templates",children:(0,i.jsxs)(v.Z,{mt:"20px",children:[(0,i.jsx)(y.Z,{items:_,mt:"20px"}),(0,i.jsxs)(f.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,i.jsx)(m.Z,{tag:"h1",size:"xxxxl",my:"20px",children:"Agreement Templates"}),(0,i.jsx)(g.Z,{iconRight:"add",onClick:function(){r({name:"NEW_AGREEMENT_TEMPLATE",props:{agency:n}})},children:"Add New Template"})]}),(0,i.jsxs)(f.Z,{display:"flex",mb:"40px",flexDirection:["column","column","row"],children:[(0,i.jsx)(f.Z,{flexBasis:[null,null,"50%"],mr:[null,
1null,"20px"],pr:[null,null,"20px"],py:"20px",children:(0,d.Z)(t)&&0!==t.length?t.map((function(e,t){return(0,i.jsx)(Z.Z,{href:(e.version,"/agreement-creator?id=".concat(e._id)),hrefAs:(e.version,"/agreement-creator/".concat(e._id)),heading:e.name,description:"Last updated ".concat(o()(e.updatedAt).format("Do [of] MMMM YYYY hh:mm a")),mt:t>0?"20px":0,shadow:"none",border:"none"},e._id)})):(0,i.jsx)(f.Z,{children:(0,i.jsx)(m.Z,{children:"You currently have no agreement templates."})})}),(0,i.jsx)(j.Z,{vertical:!0}),(0,i.jsxs)(f.Z,{flexBasis:[null,null,"50%"],ml:[null,null,"20px"],pl:[null,null,"20px"],py:"20px",children:[(0,i.jsx)(m.Z,{tag:"h2",size:"xxl",mb:"20px",children:"What are the agreement templates?"}),(0,i.jsxs)(m.Z,{children:["Agreement templates allow you to provide your own templates for agreements that then can be digital signed and built using our inbuilt agreement builder.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),"Once you've created a template, it'll automatically show up in the list of agreement templatesto choose from when creating a new agreement."]}),(0,i.jsx)(w.Z,{mt:"20px",backgroundColor:"#FFF",borderRadius:"10px",children:"Editing the templates will update them for every user in the agency."})]})]})]})})}A.getInitialProps=function(){var e=(0,r.Z)((function(e){var t,n,r,i;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return[4,(0,p.ZP)(e,{requiresAuth:!0,requiresOwner:!0})];case 1:s.sent(),t=e.store.getState().me.data.agency,r=new C.Z(e),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,r.getAgencyAgreementTemplates(t._id)];case 3:return n=s.sent(),[3,5];case 4:return i=s.sent(),console.warn(i),[2,{statusCode:i.statusCode,title:"Uh oh!",message:String(i)}];case 5:return[2,{templates:n,agency:t}]}}))}));return function(t){return e.apply(this,arguments)}}(),A.propTypes={templates:h.object,agency:h.object},t.default=(0,b.Z)(A)}},function(e){e.O(0,[8153,1517,4032,5601,8124,9774,2888,179],(function(){return t=91581,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.