PageSourceSearch

https://next.getvish.com/256.688a737115d57b16.js

js getvish.com collected 2026-10-03 23:28:37 UTC 25,093 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkvish_webapp=self.webpackChunkvish_webapp||[]).push([[256],{13256:(J,b,a)=>{a.r(b),a.d(b,{SquareOAuthModule:()=>Y});var O=a(36522),y=a(57857),M=a(38132),e=a(73664),C=a(43694),l=a(29330),D=a(7673),A=a(52318),S=a(88141),p=a(96697),F=a(31397),s=a(96354);const g="SQUARE_OAUTH_SALON_SLUG";var P=a(28249),m=a(41519),i=a(2615);let N=(()=>{class n{constructor(o,t,r,c){this._httpUrl=o,this._windowService=t,this._http=r,this._localStorage=c}handleAuthRequest(o){this._localStorage.setItem(g,o);const t=`${this._httpUrl}/integrations/square/oauth/redirect`,r={headers:new l.Lr({"X-Salon-Slug":o})};this._http.get(t,r).pipe((0,S.M)(c=>{this._windowService.changeLocation(c.url)}),(0,p.s)(1)).subscribe()}consumeCode(o,t){const r=Number(t),c=this._localStorage.getItem(g),f={code:o,nonce:r},E={headers:new l.Lr({"Content-Type":"application/json","X-Salon-Slug":c})};return this._http.post(`${this._httpUrl}/integrations/square/oauth/code`,f,E)}selectLocation(o){return this.hasLocationChanged(o).pipe((0,F.Z)(t=>!0===t?(0,D.of)({success:!1,reason:"location-changed"}):this.createIntegration(o).pipe((0,s.T)(()=>({success:!0})))))}hasLocationChanged(o){const t=this._localStorage.getItem(g);this.selectedLocation=o;const r={headers:new l.Lr({"Content-Type":"application/json","X-Salon-Slug":t})};return this._http.get(`${this._httpUrl}/integrations/square/location/active`,r).pipe((0,s.T)(c=>c),(0,S.M)(c=>this.previousLocation=c.location),(0,s.T)(c=>(0,P.A)((0,m.A)(c.location))&&c.location.id!==o?.id))}createIntegration(o){const t=this._localStorage.getItem(g),r={headers:new l.Lr({"Content-Type":"application/json","X-Salon-Slug":t})};return this._http.post(`${this._httpUrl}/integrations/square`,{locationId:o.id,merchantId:o.merchant_id,isEnabled:!1},r).pipe((0,s.T)(()=>{}))}static#e=this.\u0275fac=function(t){return new(t||n)(i.KVO(A.Po),i.KVO(O.s7),i.KVO(l.Qq),i.KVO(O.DT))};static#o=this.\u0275prov=i.jDH({token:n,factory:n.\u0275fac})}return n})(),v=(()=>{class n{constructor(o,t){this._route=o,this._squareOAuthService=t}ngOnInit(){const o=this._route.snapshot.queryParamMap.get("salonSlug");this._squareOAuthService.handleAuthRequest(o)}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(C.nX),e.rXU(N))};static#o=this.\u0275cmp=e.VBU({type:n,selectors:[["square-entry-component"]],standalone:!1,decls:2,vars:0,consts:()=>{let o;return o=$localize`:␟6c9d9d20ff35153f79da1cc36a237355fd4ae188␟1947815712604629957: Please follow instructions from your integration provider.
2`,[o,[1,"page-content"]]},template:function(t,r){1&t&&(e.j41(0,"div",1),e.pXf(1,0),e.k0s())},styles:[".page-content[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;height:75%}"]})}return n})();var U=a(18810),h=a(72200);function x(n,d){if(1&n&&(e.qex(0,null,1),e.j41(2,"div")(3,"p",8)(4,"b"),e.EFF(5),e.k0s()()(),e.j41(6,"div")(7,"p"),e.EFF(8),e.k0s()(),e.bVm()),2&n){const o=e.XpG(2);e.R7$(5),e.JRh(o.errorTitle),e.R7$(3),e.JRh(o.errorMessage)}}function k(n,d){if(1&n){const o=e.RV6();e.j41(0,"div"),e.DNE(1,x,9,2,"ng-container",6),e.j41(2,"div")(3,"button",7),e.bIt("click",function(){i.eBV(o);const r=e.XpG();return i.Njj(r.done())}),e.pXf(4,2),e.k0s()()()}if(2&n){const o=e.XpG();e.R7$(),e.Y8G("ngIf",o.error)}}function G(n,d){1&n&&(e.j41(0,"div"),e.pXf(1,3),e.k0s())}let X=(()=>{class n{constructor(o,t,r,c){this._squareOAuthService=o,this._windowService=t,this._route=r,this._router=c,this.inflight=!0}ngOnInit(){this.subscription=this._route.queryParamMap.pipe((0,s.T)(o=>({code:o.get("code"),state:o.get("state"),error:o.get("error"),errorDescription:o.get("error_description")})),(0,F.Z)(({code:o,state:t,error:r,errorDescription:c})=>(0,P.A)((0,m.A)(r))&&"user_denied"===c?(0,U.$)(new Error("access_denied")):this._squareOAuthService.consumeCode(o,t)),(0,p.s)(1)).subscribe(()=>{this.inflight=!1,this.error=!1,this._router.navigateByUrl("locations")},o=>{this.inflight=!1,this.error=!0,"access_denied"===o.message?(this.errorTitle=$localize`Access Denied`,this.errorMessage=$localize`Vish has not completed the Square authentication process.`):(this.errorTitle=$localize`An error has occured`,this.errorMessage=o.statusText)})}done(){this._windowService.close()}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(N),e.rXU(O.s7),e.rXU(C.nX),e.rXU(C.Ix))};static#o=this.\u0275cmp=e.VBU({type:n,selectors:[["square-callback"]],standalone:!1,decls:4,vars:2,consts:()=>{let o,t;return o=$localize`:␟a022729ee7e9a63420c273f547ac39c85c7d62cb␟5590470771698074172: Close Window `,t=$localize`:␟f614f69c28a799f9e04f879a2d1f114ad66b111b␟4970917682340515037:Loading, please wait...`,[["inflightTemplate",""],["errorTemplate",""],o,t,[1,"page-content"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[1,"button",3,"click"],[2,"font-size","20px"]]},template:function(t,r){if(1&t&&(e.j41(0,"div",4),e.DNE(1,k,5,1,"div",5)(2,G,2,0,"ng-template",null,0,e.C5r),e.k0s()),2&t){const c=e.sdS(3);e.R7$(),e.Y8G("ngIf",!r.inflight)("ngIfElse",c)}},dependencies:[h.bT],styles:["[_ngcontent-%COMP%]:root{--color-blue-gray-100: #f4f7f8;--color-slate-50: #f8f9fa;--color-slate-100: #f1f5f9;--color-slate-200: #e2e8f0;--color-slate-300: #cbd5e1;--color-slate-400: #94a3b8;--color-slate-500: #64748b;--color-slate-600: #475569;--color-slate-700: #334155;--color-slate-800: #1e293b;--color-slate-900: #0f172b;--color-slate-950: #020617;
2--color-cyan-50: #ecfeff;--color-cyan-100: #cffafe;--color-cyan-200: #a5f3fc;--color-cyan-300: #67e8f9;--color-cyan-400: #22d3ee;--color-cyan-500: #06b6d4;--color-cyan-600: #0891b2;--color-cyan-700: #0e7490;--color-cyan-800: #155e75;--color-cyan-900: #164e63;--color-cyan-950: #083344;--color-blue-50: #eff6ff;--color-blue-100: #dbeafe;--color-blue-200: #bfdbfe;--color-blue-300: #93c5fd;--color-blue-400: #60a5fa;--color-blue-500: #3b82f6;--color-blue-600: #2563eb;--color-blue-700: #1d4ed8;--color-blue-800: #1e40af;--color-blue-900: #1e3a8a;--color-blue-950: #172554;--color-red-50: #fef2f2;--color-red-100: #fee2e2;--color-red-200: #fecaca;--color-red-300: #fca5a5;--color-red-400: #f87171;--color-red-500: #ef4444;--color-red-600: #dc2626;--color-red-700: #b91c1c;--color-red-800: #991b1b;--color-red-900: #7f1d1d;--color-red-950: #450a0a;--color-green-50: #ecfdf5;--color-green-100: #d1fae5;--color-green-200: #a7f3d0;--color-green-300: #6ee7b7;--color-green-400: #34d399;--color-green-500: #10b981;--color-green-600: #059669;--color-green-700: #047857;--color-green-800: #065f46;--color-green-900: #064e3b;--color-green-950: #022c22;--color-purple-50: #f5f3ff;--color-purple-100: #ede9fe;--color-purple-200: #ddd6fe;--color-purple-300: #c4b5fd;--color-purple-400: #a78bfa;--color-purple-500: #8b5cf6;--color-purple-600: #7c3aed;--color-purple-700: #6d28d9;--color-purple-800: #5b21b6;--color-purple-900: #4c1d95;--color-purple-950: #2e1065;--color-teal-50: #f0fdfa;--color-teal-100: #ccfbf1;--color-teal-200: #99f6e4;--color-teal-300: #5eead4;--color-teal-400: #2dd4bf;--color-teal-500: #14b8a6;--color-teal-600: #0d9488;--color-teal-700: #0f766e;--color-teal-800: #115e59;--color-teal-900: #134e4a;--color-teal-950: #042f2e;--color-gray-50: #f9fafb;--color-gray-100: #f3f4f6;--color-gray-200: #e5e7eb;--color-gray-300: #d1d5db;--color-gray-400: #9ca3af;--color-gray-500: #6b7280;--color-rose-50: #fff1f2;--color-rose-100: #ffe4e6;--color-rose-200: #fecdd3;--color-rose-300: #fda4af;--color-rose-400: #fb7185;--color-rose-500: #f43f5e;--color-rose-600: #e11d48;--color-rose-700: #be123c;--color-rose-800: #9f1239;--color-rose-900: #881337;--color-rose-950: #4c0519;--color-pink-50: #fdf2f8;--color-pink-100: #fce7f3;--color-pink-200: #fbcfe8;--color-pink-300: #f9a8d4;--color-pink-400: #f472b6;--color-pink-500: #ec4899;--color-pink-600: #db2777;--color-pink-700: #be185d;--color-pink-800: #9d174d;--color-pink-900: #831843;--color-pink-950: #500724;--color-amber-50: #fffbeb;--color-amber-100: #fef3c7;--color-amber-200: #fde68a;--color-amber-300: #fcd34d;--color-amber-400: #fbbf24;--color-amber-500: #f59e0b;--color-amber-600: #d97706;--color-amber-700: #b45309;--color-amber-800: #92400e;--color-amber-900: #78350f;--color-amber-950: #451a03}.turquoise[_ngcontent-%COMP%]{color:#2dd4bf}.turquoise-background[_ngcontent-%COMP%]{background:#2dd4bf}.turquoise-border[_ngcontent-%COMP%]{border-color:#2dd4bf}.emerald[_ngcontent-%COMP%]{color:#84cc16}.emerald-background[_ngcontent-%COMP%]{background:#84cc16}.emerald-border[_ngcontent-%COMP%]{border-color:#84cc16}.peteriver[_ngcontent-%COMP%]{color:#0ea5e9}.peteriver-background[_ngcontent-%COMP%]{background:#0ea5e9}.peteriver-border[_ngcontent-%COMP%]{border-color:#0ea5e9}.wisteria[_ngcontent-%COMP%]{color:#7c3aed}.wisteria-background[_ngcontent-%COMP%]{background:#7c3aed}.wisteria-border[_ngcontent-%COMP%]{border-color:#7c3aed}.sunflower[_ngcontent-%COMP%]{color:#eab308}.sunflower-background[_ngcontent-%COMP%]{background:#eab308}.sunflower-border[_ngcontent-%COMP%]{border-color:#eab308}.pumpkin[_ngcontent-%COMP%]{color:#f97316}.pumpkin-background[_ngcontent-%COMP%]{background:#f97316}.pumpkin-border[_ngcontent-%COMP%]{border-color:#f97316}.alizarin[_ngcontent-%COMP%]{color:#e74c3c}.alizarin-background[_ngcontent-%COMP%]{background:#e74c3c}.alizarin-border[_ngcontent-%COMP%]{border-color:#e74c3c}.pink[_ngcontent-%COMP%]{color:#ed0d6c}.pink-background[_ngcontent-%COMP%]{background:#ed0d6c}.pink-border[_ngcontent-%COMP%]{border-color:#ed0d6c}.yellow[_ngcontent-%COMP%]{color:#eed531}.yellow-background[_ngcontent-%COMP%]{background:#eed531}.yellow-border[_ngcontent-%COMP%]{border-color:#eed531}.orange[_ngcontent-%COMP%]{color:#f98450}.orange-background[_ngcontent-%COMP%]{background:#f98450}.orange-border[_ngcontent-%COMP%]{border-color:#f98450}.error[_ngcontent-%COMP%]{color:red}.success[_ngcontent-%COMP%]{color:#0cce6b}@keyframes _ngcontent-%COMP%_pulse-animation{0%{box-shadow:0 0 0 0 var(--attention-color)}to{box-shadow:0 0 0 8px #0000}}button[_ngcontent-%COMP%], .button[_ngcontent-%COMP%]{font-family:Rubik,sans-serif;font-weight:400;border-radius:20px;background:#ed0d6c;transition:all .2s}button[_ngcontent-%COMP%]:hover, .button[_ngcontent-%COMP%]:hover{background:#ed0d6cb3}button.attention[_ngcontent-%COMP%], .button.attention[_ngcontent-%COMP%]{--attention-color: rgba(237, 13, 108, .4);box-shadow:0 0 0 0 var(--attention-color);animation:_ngcontent-%COMP%_pulse-animation 1.5s ease-out 0s infinite}button.minimal[_ngcontent-%COMP%], .button.minimal[_ngcontent-%COMP%]{min-height:0;padding:5px;white-space:nowrap}button.rounded[_ngcontent-%COMP%], .button.rounded[_ngcontent-%COMP%]{border-radius:12px}button[_ngcontent-%COMP%]:disabled, .button[_ngcontent-%COMP%]:disabled{background:#ed0d6c66}.button.outline[_ngcontent-%COMP%]{border-color:#ed0d6c;color:#ed0d6c}.button.outline[_ngcontent-%COMP%]:hover{background-color:#fff;border-color:#ed0d6c;color:#ed0d6c}.button.outline[_ngcontent-%COMP%]:disabled{border-color:var(--color-slate-400);color:var(--color-slate-400)}.button.outline.secondary[_ngcontent-%COMP%]{border-color:var(--color-slate-200);border-width:1px;border-radius:12px;margin:0 5px;color:#0f172b}.button.outline.secondary[_ngcontent-%COMP%]:disabled{border-color:var(--color-slate-50);color:var(--color-slate-400)}.button.active[_ngcontent-%COMP%]{background:#ed0d6c;color:#fff}.button.inactive[_ngcontent-%COMP%]{background:#868e96;color:#fff}.button.disabled[_ngcontent-%COMP%]{background:var(--color-slate-200);color:var(--color-slate-400);pointer-events:none}.button.secondary[_ngcontent-%COMP%]{background:var(--color-blue-gray-100);color:var(--color-slate-900)}.button.secondary[_ngcontent-%COMP%]:hover:not(:disabled){border:1px solid var(--color-slate-900);background:var(--color-blue-gray-100);color:var(--color-slate-900)}.button.secondary[_ngcontent-%COMP%]:disabled{background:unset}.button.transparent[_ngcontent-%COMP%]{background:none;border-radius:12px;color:#34383c}.button.transparent[_ngcontent-%COMP%]:hover, .button.transparent[_ngcontent-%COMP%]:disabled{color:#34383c80}.button.link[_ngcontent-%COMP%]{background:none;color:#ed0d6c;display:inline-block;margin:0;padding:0;font-style:italic;line-height:1.5;border:0;vertical-align:initial;min-height:initial}.page-content[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;height:75%;text-align:center;flex-direction:column}"]})}return n})();var _=a(89417);let I=(()=>{class n{constructor(o,t,r){this._httpUrl=o,this._localStorage=t,this._http=r}getLocations(){const o=this._localStorage.getItem(g),t={headers:new l.Lr({"Content-Type":"application/json","X-Salon-Slug":o})};return this._http.get(`${this._httpUrl}/integrations/square/location`,t).pipe((0,s.T)(r=>r))}selectLocation(o){this.location=o;const t=this._localStorage.getItem(g),r={headers:new l.Lr({"Content-Type":"application/json","X-Salon-Slug":t})};return this._http.post(`${this._httpUrl}/integrations/square`,{locationId:o.id,merchantId:o.merchant_id},r).pipe((0,s.T)(()=>{}))}static#e=this.\u0275fac=function(t){return new(t||n)(i.KVO(A.Po),i.KVO(O.DT),i.KVO(l.Qq))};static#o=this.\u0275prov=i.jDH({token:n,factory:n.\u0275fac})}return n})();var T=a(93406),w=a(48782),R=a(5951);function j(n,d){if(1&n&&(e.j41(0,"div",13)(1,"mat-radio-button",14)(2,"b"),e.EFF(3),e.k0s()()()),2&n){const o=d.$implicit;e.R7$(),e.Y8G("value",o),e.R7$(2),e.JRh(o.name)}}function H(n,d){if(1&n){const o=e.RV6();e.j41(0,"form",8),e.bIt("submit",function(){i.eBV(o);const r=e.XpG();return i.Njj(r.saveForm(r.form.value))}),e.j41(1,"mat-radio-group",9),e.DNE(2,j,4,2,"div",10),e.k0s(),e.j41(3,"div",11)(4,"button",12),e.bIt("click",function(){i.eBV(o);const r=e.XpG();return i.Njj(r.saveForm(r.form.value))}),e.pXf(5,1),e.k0s()()()}if(2&n){const o=e.XpG();e.Y8G("formGroup",o.form),e.R7$(2),e.Y8G("ngForOf",o.locations),e.R7$(2),e.Y8G("disabled",o.form.invali
2d)}}function Q(n,d){1&n&&(e.qex(0),e.nrm(1,"large-loading-indicator"),e.bVm())}function W(n,d){if(1&n&&(e.qex(0),e.j41(1,"alert-component",15)(2,"p")(3,"b"),e.pXf(4,2),e.k0s()(),e.j41(5,"p"),e.EFF(6),e.k0s()(),e.bVm()),2&n){const o=e.XpG();e.R7$(6),e.JRh(o.errorMessage)}}let B=(()=>{class n{constructor(o,t,r,c){this._fb=o,this._locationService=t,this._squareOAuthService=r,this._router=c}ngOnInit(){this.form=this._fb.group({location:[void 0,_.k0.required]}),this.loading=!0,this._locationService.getLocations().pipe((0,p.s)(1)).subscribe(o=>{this.loading=!1,this.error=!1,this.locations=o},o=>{this.loading=!1,this.error=!0,this.errorMessage=o.statusText})}saveForm(o){this._squareOAuthService.selectLocation(o.location).pipe((0,s.T)(t=>!0===t.success?"done":"location-change-warning"),(0,p.s)(1)).subscribe(t=>{this._router.navigateByUrl(t)},t=>{this.loading=!1,this.error=!0,this.errorMessage=t.statusText})}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(_.ok),e.rXU(I),e.rXU(N),e.rXU(C.Ix))};static#o=this.\u0275cmp=e.VBU({type:n,selectors:[["select-location"]],standalone:!1,decls:9,vars:3,consts:()=>{let o,t,r;return o=$localize`:␟15f5c77620cc5f14d9b7e82e4939e4300c30f5a7␟4283630113436638334:Select a Location`,t=$localize`:␟54a7f116973a4dde87234b4d79e495be32af4404␟6402799369429259805: Continue `,r=$localize`:␟53f5bea0eb4ff603d43d6a813b39bfb38c93eb1b␟243334900519944590:An error occured, please try again`,[o,t,r,[1,"container"],[1,"content-container"],[1,"content"],["novalidate","",3,"formGroup","submit",4,"ngIf"],[4,"ngIf"],["novalidate","",3,"submit","formGroup"],["formControlName","location"],["class","location",4,"ngFor","ngForOf"],[1,"controls",2,"margin","40px 20px 0 20px"],["type","button",1,"button","primary",2,"width","100%","padding-top","12px","padding-bottom","12px",3,"click","disabled"],[1,"location"],[3,"value"],["type","danger"]]},template:function(t,r){1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"header")(3,"h1"),e.pXf(4,0),e.k0s()(),e.j41(5,"div",5),e.DNE(6,H,6,3,"form",6)(7,Q,2,0,"ng-container",7)(8,W,7,
21,"ng-container",7),e.k0s()()()),2&t&&(e.R7$(6),e.Y8G("ngIf",!1===r.loading&&!1===r.error),e.R7$(),e.Y8G("ngIf",!0===r.loading),e.R7$(),e.Y8G("ngIf",!0===r.error))},dependencies:[h.Sq,h.bT,T.C,w.c,_.qT,_.BC,_.cb,_.j4,_.JD,R.VT,R._g],styles:['.container[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;flex-direction:column;height:100%;width:100%}.content-container[_ngcontent-%COMP%]{width:500px;background:#fff}.content[_ngcontent-%COMP%]{padding:10px 35px 30px}.location[_ngcontent-%COMP%]{margin:5px}form[_ngcontent-%COMP%]{margin:0}header[_ngcontent-%COMP%]{width:100%;padding:10px 20px;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.15rem;text-transform:uppercase;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]:after{content:"";position:absolute;height:3px;width:80px;left:0;bottom:0;background:#7460ee}']})}return n})(),q=(()=>{class n{static#e=this.\u0275fac=function(t){return new(t||n)};static#o=this.\u0275cmp=e.VBU({type:n,selectors:[["square-done"]],standalone:!1,decls:11,vars:0,consts:()=>{let o,t,r;return o=$localize`:␟bc6b5d3012b91acf60f7f2d1c838e40a5a64830c␟3343892858620052918:Configure Square Integration`,t=$localize`:␟c647b3d5498b15dac0193e63a10d95f5f5a2b915␟4836615552094365703:Success!`,r=$localize`:␟aacc7d435bae1707ee2b273dcc05bd0bd1429805␟6894947636979965671:Close this window to go back to the Vish Dashboard.`,[o,t,r,[1,"container"],[1,"content-container"],[1,"content"],["type","success"]]},template:function(t,r){1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"header")(3,"h1"),e.pXf(4,0),e.k0s()(),e.j41(5,"div",5)(6,"alert-component",6)(7,"h4"),e.pXf(8,1),e.k0s(),e.j41(9,"p"),e.pXf(10,2),e.k0s()()()()())},dependencies:[T.C],styles:['.container[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;flex-direction:column;height:100%;width:100%}.content-container[_ngcontent-%COMP%]{background:#fff;padding-top:5px;padding-bottom:20px;width:500px}.content[_ngcontent-%COMP%]{padding:20px 25px}header[_ngcontent-%COMP%]{width:100%;padding:10px 20px;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.15rem;text-transform:uppercase;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]:after{content:"";position:absolute;height:3px;width:80px;left:0;bottom:0;background:#7460ee}'],changeDetection:0})}return n})(),z=(()=>{class n{constructor(o,t){this._router=o,this._squareOauthService=t}ngOnInit(){this.selectedLocation=this._squareOauthService.selectedLocation,this.previousLocation=this._squareOauthService.previousLocation}cancel(){this._router.navigateByUrl("cancelled")}confirm(){this._squareOauthService.createIntegration(this.selectedLocation).pipe((0,p.s)(1)).subscribe(()=>{this._router.navigateByUrl("done")},o=>{this.loading=!1,this.error=!0,this.errorMessage=o.statusText})}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(C.Ix),e.rXU(N))};static#o=this.\u0275cmp=e.VBU({type:n,selectors:[["different-location-warning"]],standalone:!1,decls:29,vars:2,consts:()=>{let o,t,r,c,f,E,L,$;return o=$localize`:␟1551b49e3e0fb6e67271d18ccfda1bc5b3fc34b5␟4908222965408235835:Choose a Location`,t=$localize`:␟a8059e31694578c1b0344a76a345357d
2d60e8f01␟6759205696902713848:Warning`,r=$localize`:␟316b132c95f09747aa58527d49ac80c6b897131a␟6051766618088783746: Are you sure you want to change Square locations? `,c=$localize`:␟b11361a9765cef4134b7f8e582070732f83cdedc␟4256680828778352234: It appears that you've previously configured a Square integration with ${"[\ufffd#13\ufffd|\ufffd#14\ufffd]"}:START_BOLD_TEXT:${"\ufffd0\ufffd"}:INTERPOLATION:${"[\ufffd/#13\ufffd|\ufffd/#14\ufffd]"}:CLOSE_BOLD_TEXT: and now you're attempting to activate another integration with ${"[\ufffd#13\ufffd|\ufffd#14\ufffd]"}:START_BOLD_TEXT:${"\ufffd1\ufffd"}:INTERPOLATION_1:${"[\ufffd/#13\ufffd|\ufffd/#14\ufffd]"}:CLOSE_BOLD_TEXT:. `,c=e.k04(c),f=$localize`:␟db7466ae9ff2b6613d355fd4574677fd3cf8671c␟2741416872155999373: If you're sure you want to change Square locations, click ${"[\ufffd#17\ufffd|\ufffd#18\ufffd]"}:START_ITALIC_TEXT:Confirm${"[\ufffd/#17\ufffd|\ufffd/#18\ufffd]"}:CLOSE_ITALIC_TEXT: below, otherwise click ${"[\ufffd#17\ufffd|\ufffd#18\ufffd]"}:START_ITALIC_TEXT:Cancel${"[\ufffd/#17\ufffd|\ufffd/#18\ufffd]"}:CLOSE_ITALIC_TEXT:. This generally isn't recommended; you'll want to connect your new desired Square location to a new Vish location. `,f=e.k04(f),E=$localize`:␟f8cfbea8d1fa57826134e64aaec4b19ccfa776a9␟2871409418497986967:For assistance, please call 888-419-6391.`,L=$localize`:␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,$=$localize`:␟68e710782ccb5398b3acb8844caf0b199da2c3da␟9178182467454450952:Confirm`,[o,t,r,c,f,E,L,$,[1,"container"],[1,"content-container"],[1,"content"],["type","danger"],[2,"margin-top","10px"],[1,"controls"],[1,"button","outline",3,"click"],[1,"button","primary",3,"click"]]},template:function(t,r){1&t&&(e.j41(0,"div",8)(1,"div",9)(2,"header")(3,"h1"),e.pXf(4,0),e.k0s()(),e.j41(5,"div",10)(6,"alert-component",11)(7,"h4"),e.pXf(8,1),e.k0s(),e.j41(9,"p",12),e.pXf(10,2),e.k0s()(),e.j41(11,"p"),e.PLo(12,3),e.nrm(13,"b")(14,"b"),e.YFu(),e.k0s(),e.j41(15,"p"),e.PLo(16,4),e.nrm(17,"i")(18,"i"),e.YFu(),e.k0s(),e.j41(19,"p")(20,"b"),e.pXf(21,5),e.k0s()(),e.j41(22,"div",13)(23,"button",14),e.bIt("click",function(){return r.cancel()}),e.j41(24,"span"),e.pXf(25,6),e.k0s()(),e.j41(26,"button",15),e.bIt("click",function(){return r.confirm()}),e.j41(27,"span"),e.pXf(28,7),e.k0s()()()()()()),2&t&&(e.R7$(14),e.uP7(null==r.previousLocation?null:r.previousLocation.name)(null==r.selectedLocation?null:r.selectedLocation.name),e.nnv(12))},dependencies:[T.C],styles:['.container[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;flex-direction:column;height:100%;width:100%}.content-container[_ngcontent-%COMP%]{width:500px;background:#fff}.content[_ngcontent-%COMP%]{padding:10px 35px 30px}header[_ngcontent-%COMP%]{width:100%;padding:10px 20px;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.15rem;text-transform:uppercase;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]:after{content:"";position:absolute;height:3px;width:80px;left:0;bottom:0;background:#7460ee}.controls[_ngcontent-%COMP%]{display:flex;position:relative;justify-content:space-between;margin:0 10%}.controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{flex:1}.controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:first-of-type{margin-right:5px}.controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-of-type{margin-left:5px}']})}return n})(),V=(()=>{class n{close(){console.log("#close")}static#e=this.\u0275fac=function(t){return new(t||n)};static#o=this.\u0275cmp=e.VBU({type:n,selectors:[["square-cancelled"]],standalone:!1,decls:12,vars:0,consts:()=>{let o,t,r;return o=$localize`:␟bc6b5d3012b91acf60f7f2d1c838e40a5a64830c␟3343892858620052918:Configure Square Integration`,t=$localize`:␟4d589b093da58dfb8ac9299aa7a82b5b6ccb87f2␟4043049091728011235:Cancelled`,r=$localize`:␟5d51a32b81551b7e18add48f65ee1b2183fc17d6␟2326308710821702465: No Square account was linked to Vish${"\ufffd#11\ufffd\ufffd/#11\ufffd"}:LINE_BREAK: Close this window to reutrn to the Vish Dashboard `,[o,t,r,[1,"container"],[1,"content-container"],[1,"content"],["type","warning"]]},template:function(t,r){1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"header")(3,"h1"),e.pXf(4,0),e.k0s()(),e.j41(5,"div",5)(6,"alert-component",6)(7,"h4"),e.pXf(8,1),e.k0s(),e.j41(9,"p"),e.PLo(10,2),e.nrm(11,"br"),e.YFu(),e.k0s()()()()())},dependencies:[T.C],styles:['.container[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;flex-direction:column;height:100%;width:100%}.content-container[_ngcontent-%COMP%]{width:500px;background:#fff}.content[_ngcontent-%COMP%]{padding:10px 35px 30px}header[_ngcontent-%COMP%]{width:100%;padding:10px 20px;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.15rem;text-transform:uppercase;position:relative}header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]:after{content:"";position:absolute;height:3px;width:80px;left:0;bottom:0;background:#7460ee}.controls[_ngcontent-%COMP%]{display:flex;position:relative;justify-content:space-between;margin:0 10%}.controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{flex:1}.controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:first-of-type{margin-right:5px}.controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-of-type{margin-left:5px}']})}return n})(),K=(()=>{class n{static#e=this.\u0275fac=function(t){return new(t||n)};static#o=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=i.G2t({imports:[M.iI.forChild([{path:"",redirectTo:"oauth",pathMatch:"full"},{path:"oauth",component:v},{path:"oauth/callback",component:X},{path:"locations",component:B},{path:"location-change-warning",component:z},{path:"done",component:q},{path:"cancelled",component:V}]),M.iI]})}return n})(),Y=(()=>{class n{static#e=this.\u0275fac=function(t){return new(t||n)};static#o=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=i.G2t({providers:[N,I],imports:[y.G,O.c1,K]})}return n})()}}]);

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.