PageSourceSearch

https://booking.absolutespa.com/webstorenew/chunk-IWB7JVGN.js

js absolutespa.com collected 2026-10-05 01:50:09 UTC 39,986 bytes, 1 lines download raw bytes

1import{$ as O,Ba as kt,Cb as X,Ce as ne,D as vt,Ee as nt,Ep as Vt,Fa as y,Ga as G,Gb as Z,K as wt,Ke as ot,Km as Wt,L as $,La as P,Ma as T,Mz as $t,N as yt,Na as A,Nm as Ct,Om as z,Q as tt,R as I,Ra as N,Rb as Dt,Rm as It,Sm as xt,T as F,Tb as it,Tm as Ft,Um as Pt,V as B,Vm as Bt,W as R,Wa as L,Xa as S,a as g,aa as D,b as _,eb as j,fa as Q,fb as H,fc as At,ff as st,gb as K,gd as Ut,h as ie,ha as Et,ib as W,j as l,jb as Tt,kb as Y,mn as Rt,mq as qt,n as J,na as Mt,oc as Qt,pp as zt,qa as m,r as q,ra as k,sc as Lt,u as _t,xa as et,xb as Ot}from"./chunk-B5AFIBST.js";var f=function(s){return s.GET_QUOTE_PREVIEW="[Webstore Quotes] Get Quote Preview",s.GET_QUOTE_PREVIEW_SUCCESS="[Webstore Quotes] Get Quote Preview Success",s.GET_QUOTE_PREVIEW_FAILURE="[Webstore Quotes] Get Quote Preview Failure",s.ACCEPT_QUOTE="[Webstore Quotes] Accept Quote",s.ACCEPT_QUOTE_SUCCESS="[Webstore Quotes] Accept Quote Success",s.ACCEPT_QUOTE_FAILURE="[Webstore Quotes] Accept Quote Failure",s}(f||{}),at=class{constructor(n){this.payload=n,this.type=f.GET_QUOTE_PREVIEW}},rt=class{constructor(n){this.payload=n,this.type=f.GET_QUOTE_PREVIEW_SUCCESS}},ct=class{constructor(n){this.payload=n,this.type=f.GET_QUOTE_PREVIEW_FAILURE}},dt=class{constructor(n){this.payload=n,this.type=f.ACCEPT_QUOTE}},lt=class{constructor(n){this.payload=n,this.type=f.ACCEPT_QUOTE_SUCCESS}},ht=class{constructor(n){this.payload=n,this.type=f.ACCEPT_QUOTE_FAILURE}};var Yt=ie(ne());var ut=class{constructor(s,n,t,e){l(this,"x");l(this,"y");l(this,"pressure");l(this,"time");if(isNaN(s)||isNaN(n))throw new Error("Point is invalid: (".concat(s,", ").concat(n,")"));this.x=+s,this.y=+n,this.pressure=t||0,this.time=e||Date.now()}distanceTo(s){return Math.sqrt(Math.pow(this.x-s.x,2)+Math.pow(this.y-s.y,2))}equals(s){return this.x===s.x&&this.y===s.y&&this.pressure===s.pressure&&this.time===s.time}velocityFrom(s){return this.time!==s.time?this.distanceTo(s)/(this.time-s.time):0}},oe=class Gt{constructor(n,t,e,i,o,a){l(this,"startPoint");l(this,"control2");l(this,"control1");l(this,"endPoint");l(this,"startWidth");l(this,"endWidth");this.startPoint=n,this.control2=t,this.control1=e,this.endPoint=i,this.startWidth=o,this.endWidth=a}static fromPoints(n,t){let e=this.calculateControlPoints(n[0],n[1],n[2]).c2,i=this.calculateControlPoints(n[1],n[2],n[3]).c1;return new Gt(n[1],e,i,n[2],t.start,t.end)}static calculateControlPoints(n,t,e){let i=n.x-t.x,o=n.y-t.y,a=t.x-e.x,c=t.y-e.y,r={x:(n.x+t.x)/2,y:(n.y+t.y)/2},d={x:(t.x+e.x)/2,y:(t.y+e.y)/2},h=Math.sqrt(i*i+o*o),p=Math.sqrt(a*a+c*c),C=r.x-d.x,U=r.y-d.y,E=h+p==0?0:p/(h+p),M={x:d.x+C*E,y:d.y+U*E},u=t.x-M.x,b=t.y-M.y;return{c1:new ut(r.x+u,r.y+b),c2:new ut(d.x+u,d.y+b)}}length(){let t=0,e,i;for(let o=0;o<=10;o+=1){let a=o/10,c=this.point(a,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this.point(a,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){let d=c-e,h=r-i;t+=Math.sqrt(d*d+h*h)}e=c,i=r}return t}point(n,t,e,i,o){return t*(1-n)*(1-n)*(1-n)+3*e*(1-n)*(1-n)*n+3*i*(1-n)*n*n+o*n*n*n}},se=class{constructor(){l(this,"_et");try{this._et=new EventTarget}catch{this._et=document}}addEventListener(s,n,t){this._et.addEventListener(s,n,t)}dispatchEvent(s){return this._et.dispatchEvent(s)}removeEventListener(s,n,t){this._et.removeEventListener(s,n,t)}};function ae(s,n=250){let t=0,e=null,i,o,a,c=()=>{t=Date.now(),e=null,i=s.apply(o,a),e||(o=null,a=[])};return function(...d){let h=Date.now(),p=n-(h-t);return o=this,a=d,p<=0||p>n?(e&&(clearTimeout(e),e=null),t=h,i=s.apply(o,a),e||(o=null,a=[])):e||(e=window.setTimeout(c,p)),i}}var Nt=class St extends se{constructor(t,e={}){var i,o,a;super();l(this,"canvas");l(this,"dotSize");l(this,"minWidth");l(this,"maxWidth");l(this,"penColor");
vendor: 10,144 bytes, line 1
1l(this,"minDistance");l(this,"velocityFilterWeight");l(this,"compositeOperation");l(this,"backgroundColor");l(this,"throttle");l(this,"canvasContextOptions");l(this,"_ctx");l(this,"_drawingStroke",!1);l(this,"_isEmpty",!0);l(this,"_dataUrl");l(this,"_dataUrlOptions");l(this,"_lastPoints",[]);l(this,"_data",[]);l(this,"_lastVelocity",0);l(this,"_lastWidth",0);l(this,"_strokeMoveUpdate");l(this,"_strokePointerId");this.canvas=t,this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle=(i=e.throttle)!=null?i:16,this.minDistance=(o=e.minDistance)!=null?o:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions=(a=e.canvasContextOptions)!=null?a:{},this._strokeMoveUpdate=this.throttle?ae(St.prototype._strokeUpdate,this.throttle):St.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._handlePointerCancel=this._handlePointerCancel.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){let{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){let t=this._data,e=this._dataUrl,i=this._dataUrlOptions;this.clear(),e&&this.fromDataURL(e,i),this.fromData(t,{clear:!1})}fromDataURL(t,e={}){return new Promise((i,o)=>{let a=new Image,c=e.ratio||window.devicePixelRatio||1,r=e.width||this.canvas.width/c,d=e.height||this.canvas.height/c,h=e.xOffset||0,p=e.yOffset||0;this._reset(this._getPointGroupOptions()),a.onload=()=>{this._ctx.drawImage(a,h,p,r,d),i()},a.onerror=C=>{o(C)},a.crossOrigin="anonymous",a.src=t,this._isEmpty=!1,this._dataUrl=t,this._dataUrlOptions=g({},e)})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),"data:image/svg+xml;base64,".concat(btoa(this.toSVG(e)));default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none",this.canvas.style.webkitUserSelect="none";let t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.style.webkitUserSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var e;let t=window.document===this.canvas.ownerDocument?window:(e=this.canvas.ownerDocument.defaultView)!=null?e:this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){let{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("pointercancel",this._handlePointerCancel),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd),t("touchcancel",this._handleTouchCancel)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this),this._drawLine.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,e){return e?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){let e=t.changedTouches[0];return{event:t,type:t.type,x:e.clientX,y:e.clientY,pressure:e.force}}_handleMouseDown(t){!this._isLeftButtonPressed(t,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(t))}_handleMouseMove(t){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}_handleMouseUp(t){this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))}_handleTouchStart(t){t.targetTouches.length!==1||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))}_handleTouchMove(t){if(t.targetTouches.length===1){if(t.cancelable&&t.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(t))}}_handleTouchEnd(t){t.targetTouches.length===0&&(t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t)))}_handlePointerCancel(t){this._allowPointerId(t)&&(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t),!1))}_handleTouchCancel(t){t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t),!1)}_getPointerId(t){return t.persistentDeviceId||t.pointerId}_allowPointerId(t,e=!1){return typeof this._strokePointerId>"u"?e:this._getPointerId(t)===this._strokePointerId}_handlePointerDown(t){this._drawingStroke||!this._isLeftButtonPressed(t)||!this._allowPointerId(t,!0)||(this._strokePointerId=this._getPointerId(t),t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))}_handlePointerMove(t){if(this._allowPointerId(t)){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}}_handlePointerUp(t){this._isLeftButtonPressed(t)||!this._allowPointerId(t)||(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;let{addEventListener:i}=this._getListenerFunctions();switch(t.event.type){case"mousedown":i("mousemove",this._handleMouseMove,{passive:!1}),i("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":i("touchmove",this._handleTouchMove,{passive:!1}),i("touchend",this._handleTouchEnd,{passive:!1}),i("touchcancel",this._handleTouchCancel,{passive:!1});break;case"pointerdown":i("pointermove",this._handlePointerMove,{passive:!1}),i("pointerup",this._handlePointerUp,{passive:!1}),i("pointercancel",this._handlePointerCancel,{passive:!1});break;default:}this._drawingStroke=!0;let o=this._getPointGroupOptions(),a=_(g({},o),{points:[]});this._data.push(a),this._reset(o),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));let e=this._createPoint(t.x,t.y,t.pressure),i=this._data[this._data.length-1],o=i.points,a=o.length>0&&o[o.length-1],c=a?e.distanceTo(a)<=this.minDistance:!1,r=this._getPointGroupOptions(i);if(!a||!(a&&c)){let d=this._addPoint(e,r);a?d&&this._drawCurve(d,r):this._drawDot(e,r),o.push({time:e.time,x:e.x,y:e.y,pressure:e.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,e=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(e&&this._strokeUpdate(t),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,i){let o=this.canvas.getBoundingClientRect();return new ut(t-o.left,e-o.top,i,new Date().getTime())}_addPoint(t,e){let{_lastPoints:i}=this;if(i.push(t),i.length>2){i.length===3&&i.unshift(i[0]);let o=this._calculateCurveWidths(i[1],i[2],e),a=oe.fromPoints(i,o);return i.shift(),a}return null}_calculateCurveWidths(t,e,i){let o=i.velocityFilterWeight*e.velocityFrom(t)+(1-i.velocityFilterWeight)*this._lastVelocity,a=this._strokeWidth(o,i),c={end:a,start:this._lastWidth};return this._lastVelocity=o,this._lastWidth=a,c}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,i){let o=this._ctx;o.moveTo(t,e),o.arc(t,e,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){let i=this._ctx,o=t.endWidth-t.startWidth,a=Math.ceil(t.length())*2;i.beginPath(),i.fillStyle=e.penColor;for(let c=0;c<a;c+=1){let r=c/a,d=r*r,h=d*r,p=1-r,C=p*p,U=C*p,E=U*t.startPoint.x;
1E+=3*C*r*t.control1.x,E+=3*p*d*t.control2.x,E+=h*t.endPoint.x;let M=U*t.startPoint.y;M+=3*C*r*t.control1.y,M+=3*p*d*t.control2.y,M+=h*t.endPoint.y;let u=Math.min(t.startWidth+h*o,e.maxWidth);this._drawCurveSegment(E,M,u)}i.closePath(),i.fill()}_getDotSize(t){return t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2}_drawDot(t,e){let i=this._ctx,o=this._getDotSize(e);i.beginPath(),this._drawCurveSegment(t.x,t.y,o),i.closePath(),i.fillStyle=e.penColor,i.fill()}_drawLine(t,e,i){let o=this._ctx;o.save(),o.beginPath(),o.moveTo(t.x,t.y),o.lineTo(e.x,e.y),o.lineWidth=this._getDotSize(i)*2,o.lineCap="round",o.strokeStyle=i.penColor,o.stroke(),o.restore(),this._isEmpty=!1}_fromData(t,e,i,o){for(let a of t){let{points:c}=a,r=this._getPointGroupOptions(a);if(c.length>2)for(let d=0;d<c.length;d+=1){let h=c[d],p=new ut(h.x,h.y,h.pressure,h.time);d===0&&this._reset(r);let C=this._addPoint(p,r);C&&e(C,r)}else c.length===2?(this._reset(r),o(c[0],c[1],r)):(this._reset(r),i(c[0],r))}}toSVG({includeBackgroundColor:t=!1,includeDataUrl:e=!1}={}){var p,C,U,E,M;let i=this._data,o=Math.max(window.devicePixelRatio||1,1),a=0,c=0,r=this.canvas.width/o,d=this.canvas.height/o,h=document.createElementNS("http://www.w3.org/2000/svg","svg");if(h.setAttribute("xmlns","http://www.w3.org/2000/svg"),h.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),h.setAttribute("viewBox","".concat(a," ").concat(c," ").concat(r," ").concat(d)),h.setAttribute("width",r.toString()),h.setAttribute("height",d.toString()),t&&this.backgroundColor){let u=document.createElement("rect");u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("fill",this.backgroundColor),h.appendChild(u)}if(e&&this._dataUrl){let u=((p=this._dataUrlOptions)==null?void 0:p.ratio)||window.devicePixelRatio||1,b=((C=this._dataUrlOptions)==null?void 0:C.width)||this.canvas.width/u,v=((U=this._dataUrlOptions)==null?void 0:U.height)||this.canvas.height/u,w=((E=this._dataUrlOptions)==null?void 0:E.xOffset)||0,ft=((M=this._dataUrlOptions)==null?void 0:M.yOffset)||0,x=document.createElement("image");x.setAttribute("x",w.toString()),x.setAttribute("y",ft.toString()),x.setAttribute("width",b.toString()),x.setAttribute("height",v.toString()),x.setAttribute("preserveAspectRatio","none"),x.setAttribute("href",this._dataUrl),h.appendChild(x)}return this._fromData(i,(u,{penColor:b})=>{let v=document.createElement("path");if(!isNaN(u.control1.x)&&!isNaN(u.control1.y)&&!isNaN(u.control2.x)&&!isNaN(u.control2.y)){let w="M ".concat(u.startPoint.x.toFixed(3),",").concat(u.startPoint.y.toFixed(3)," C ").concat(u.control1.x.toFixed(3),",").concat(u.control1.y.toFixed(3)," ").concat(u.control2.x.toFixed(3),",").concat(u.control2.y.toFixed(3)," ").concat(u.endPoint.x.toFixed(3),",").concat(u.endPoint.y.toFixed(3));v.setAttribute("d",w),v.setAttribute("stroke-width",(u.endWidth*2.25).toFixed(3)),v.setAttribute("stroke",b),v.setAttribute("fill","none"),v.setAttribute("stroke-linecap","round"),h.appendChild(v)}},(u,{penColor:b,dotSize:v,minWidth:w,maxWidth:ft})=>{let x=document.createElement("circle"),ee=v>0?v:(w+ft)/2;x.setAttribute("r",ee.toString()),x.setAttribute("cx",u.x.toString()),x.setAttribute("cy",u.y.toString()),x.setAttribute("fill",b),h.appendChild(x)},(u,b,v)=>{let w=document.createElement("line");w.setAttribute("x1",u.x.toString()),w.setAttribute("y1",u.y.toString()),w.setAttribute("x2",b.x.toString()),w.setAttribute("y2",b.y.toString()),w.setAttribute("stroke",v.penColor),w.setAttribute("stroke-width",(this._getDotSize(v)*2).toString()),w.setAttribute("stroke-linecap","round"),h.appendChild(w)}),h.outerHTML}};var pt=(()=>{let n=class n{constructor(e){this._elementRef=e,this.options=this.options||{},this.drawStart=new Q,this.drawBeforeUpdate=new Q,this.drawAfterUpdate=new Q,this.drawEnd=new Q}ngAfterContentInit(){let e=this.initCanvas(this.options);this.initSignaturePad(e,this.options),this.redrawCanvas()}ngOnDestroy(){let e=this.getCanvas();e.width=0,e.height=0}getSignaturePad(){return this.signaturePad}getCanvas(){return this._elementRef.nativeElement.querySelector("canvas")}redrawCanvas(){let e=this.getCanvas(),i=Math.max(window.devicePixelRatio||1,1);e.width=this._getWidthFix(e)*i,e.height=this._getHeightFix(e)*i,e.getContext("2d").scale(i,i),this.changeBackgroun
1dColor(this.signaturePad.backgroundColor)}changeBackgroundColor(e){this.signaturePad.backgroundColor=e;let i=this.signaturePad.toData();this.signaturePad.clear(),this.signaturePad.fromData(i)}toData(){return this.signaturePad?this.signaturePad.toData():[]}fromData(e){this.signaturePad.fromData(e)}toDataURL(e,i){return this.signaturePad.toDataURL(e,i)}fromDataURL(e,i={}){return!i.hasOwnProperty("height")&&this.options.canvasHeight&&(i.height=this.options.canvasHeight),!i.hasOwnProperty("width")&&this.options.canvasWidth&&(i.width=this.options.canvasWidth),this.signaturePad.fromDataURL(e,i)}clear(e=!0){e?(this.signaturePad.clear(),this.redrawCanvas()):this.signaturePad.clear(),this.endStroke(null)}isEmpty(){return this.signaturePad.isEmpty()}off(){this.signaturePad.off()}on(){this.signaturePad.on()}set(e,i){if(e==="canvasHeight"||e==="canvasWidth"){let o=this.getCanvas(),a=e.replace("canvas","").toLowerCase();if(o[a]===i)return;o[a]=i-this.extraWidth,this.clear()}else{if(this.signaturePad[e]===i)return;this.signaturePad[e]=i}}beginStroke(e){this.drawStart.emit(e)}beforeUpdateStroke(e){this.drawBeforeUpdate.emit(e)}afterUpdateStroke(e){this.drawAfterUpdate.emit(e)}endStroke(e){this.drawEnd.emit(e)}initCanvas(e){let i=this.getCanvas();return this.options.canvasHeight&&(i.height=e.canvasHeight-2),this.options.canvasWidth&&(i.width=e.canvasWidth-2),this.options.canvasBackground&&(i.style.background=e.canvasBackground),i}initSignaturePad(e,i){this.signaturePad=new Nt(e,i),this.signaturePad.addEventListener("beginStroke",o=>this.beginStroke(o.detail)),this.signaturePad.addEventListener("beforeUpdateStroke",o=>this.beforeUpdateStroke(o.detail)),this.signaturePad.addEventListener("afterUpdateStroke",o=>this.afterUpdateStroke(o.detail)),this.signaturePad.addEventListener("endStroke",o=>this.endStroke(o.detail))}_getWidthFix(e){let i=getComputedStyle(e),o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth);return this.extraWidth=o+a,e.offsetWidth-(o+a)}_getHeightFix(e){let i=getComputedStyle(e),o=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);return e.offsetHeight-(o+a)}};n.\u0275fac=function(i){return new(i||n)(k(Et))},n.\u0275cmp=B({type:n,selectors:[["signature-pad"]],inputs:{options:"options"},outputs:{drawStart:"drawStart",drawBeforeUpdate:"drawBeforeUpdate",drawAfterUpdate:"drawAfterUpdate",drawEnd:"drawEnd"},decls:1,vars:0,consts:[[1,"signature-pad-canvas"]],template:function(i,o){i&1&&A(0,"canvas",0)},styles:["[_nghost-%COMP%]{background:#faebd7;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]   .signature-pad-canvas[_ngcontent-%COMP%]{border:1px solid gray}"]});let s=n;return s})(),jt=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=R({type:n}),n.\u0275inj=I({});let s=n;return s})();function de(s,n){if(s&1){let t=N();P(0,"div",4)(1,"div",5),L("click",function(i){return O(t),D(i.stopPropagation())}),P(2,"div",6)(3,"h2",7),W(4),X(5,"getLocalizedValues"),T(),P(6,"button",8),L("click",function(){O(t);let i=S();return D(i.onClose())}),P(7,"div",9),X(8,"getLocalizedValues"),A(9,"div",10)(10,"div",11),P(11,"span",12),W(12,"close"),T()()()(),P(13,"div",13)(14,"div",14,0),A(16,"signature-pad",15,1),T()(),P(18,"div",16)(19,"button",17),L("click",function(){O(t);let i=S();return D(i.clearSignature())}),W(20),X(21,"getLocalizedValues"),T(),P(22,"button",18),L("click",function(){O(t);let i=S();return D(i.onSave())}),W(23),X(24,"getLocalizedValues"),T()()()()}if(s&2){let t=S();m(4),Tt(Z(5,14,"Add Signature","AddSignature",t.localizationClassKey,t.registerContextChangeDetectionFlag)),m(3),kt("aria-label",Z(8,19,"Close","Close",t.localizationClassKey,t.registerContextChangeDetectionFlag)),m(9),y("options",t.signaturePadOptions),m(3),G("background-color",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Secondary)("color","white"),m(),Y(" ",Z(21,24,"Clear","Clear",t.localizationClassKey,t.registerContextChangeDetectionFlag)," "),m(2),G("background-color",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Primary)("color","white"),y("disabled",t.isSignatureEmpty()),m(),Y(" ",Z(24,29,"Save","Save",t.localizationClassKey,t.registerContextChangeDetectionFlag)," ")}}
1function le(s,n){if(s&1&&(P(0,"div",19)(1,"div",20)(2,"div",14,0),A(4,"signature-pad",15,1),T()()()),s&2){let t=S();m(4),y("options",t.signaturePadOptions)}}var Kt=(()=>{let n=class n{constructor(e){this.store=e,this.minWidth=.5,this.maxWidth=2.5,this.canvasHeight=150,this.showAsModal=!1,this.localizationClassKey=st.WebstoreQuotes,this.close=new Q,this.save=new Q,this.signaturePadOptions={},this.registerContextChangeDetectionFlag=!1,this.destroyed$=new J,this.setRegisterContextChangeDetectionFlag=()=>{this.registerContextChangeDetectionFlag=!0},this.commonData$=this.store.select(i=>i.webstoreCommonState),this.commonData$.pipe($(this.destroyed$)).subscribe(i=>{this.commonData=i})}ngAfterViewInit(){this.updateSignaturePadOptions(),this.configLocalization()}configLocalization(){nt(this.localizationClassKey,this.setRegisterContextChangeDetectionFlag)}updateSignaturePadOptions(){this.signaturePadOptions={minWidth:this.minWidth,maxWidth:this.maxWidth,penColor:"#000000",canvasHeight:this.canvasHeight}}clearSignature(){this.signaturePad&&this.signaturePad.clear()}getSignature(){if(this.signaturePad&&!this.signaturePad.isEmpty())try{return this.signaturePad.toDataURL()}catch{return null}return null}isSignatureEmpty(){return this.signaturePad?this.signaturePad.isEmpty():!0}onClose(){this.close.emit()}onSave(){let e=this.getSignature();e&&this.save.emit(e)}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}};n.\u0275fac=function(i){return new(i||n)(k(z))},n.\u0275cmp=B({type:n,selectors:[["app-signature-pad"]],viewQuery:function(i,o){if(i&1&&j(pt,5),i&2){let a;H(a=K())&&(o.signaturePad=a.first)}},inputs:{minWidth:"minWidth",maxWidth:"maxWidth",canvasHeight:"canvasHeight",showAsModal:"showAsModal"},outputs:{close:"close",save:"save"},decls:2,vars:2,consts:[["signatureCanvas",""],["signaturePad",""],["class","signature-modal-backdrop",4,"ngIf"],["class","signature-embedded",4,"ngIf"],[1,"signature-modal-backdrop"],[1,"signature-modal",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","role","button","tabindex","0",1,"btn","btn-link","close-btn","close-btn-border","pad-0px",3,"click"],["role","button",1,"close-container","pad-0px"],[1,"leftright"],[1,"rightleft"],[2,"display","none"],[1,"modal-body"],[1,"signature-canvas-wrapper"],[3,"options"],[1,"modal-footer"],["type","button",1,"btn","btn-lg","zen-btn",3,"click"],["type","button",1,"btn","btn-lg","zen-btn",3,"click","disabled"],[1,"signature-embedded"],[1,"embedded-body"]],template:function(i,o){i&1&&et(0,de,25,34,"div",2)(1,le,6,1,"div",3),i&2&&(y("ngIf",o.showAsModal),m(),y("ngIf",!o.showAsModal))},dependencies:[it,pt,ot],styles:['.signature-modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}.close-container[_ngcontent-%COMP%]{position:relative;margin:auto;width:40px;height:25px;cursor:pointer;padding-left:20px}.leftright[_ngcontent-%COMP%]{height:2px;width:25px;position:absolute;margin-top:10px;background-color:#000;border-radius:2px;transform:rotate(45deg);transition:all .3s ease-in}.rightleft[_ngcontent-%COMP%]{height:2px;width:25px;position:absolute;margin-top:10px;background-color:#000;border-radius:2px;transform:rotate(-45deg);transition:all .3s ease-in}.signature-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;width:410px;min-width:300px;max-width:600px;height:350px;min-height:200px;max-height:350px;background:#fff;border-radius:16px;overflow:hidden}.signature-modal[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;padding:20px 24px;border-bottom:1px solid #E5E7EB;background:#fff}.signature-modal[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#1f2937;margin:0;line-height:1.2}.signature-modal[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{background:none;border:none}
1.signature-modal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{flex:1;width:100%;padding:0;overflow:hidden;background:#f3f4f6}.signature-modal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .signature-canvas-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;background:#fff;border-radius:8px;overflow:hidden;border:none}.signature-modal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .signature-canvas-wrapper[_ngcontent-%COMP%]   signature-pad[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.signature-modal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]   .signature-canvas-wrapper[_ngcontent-%COMP%]   signature-pad[_ngcontent-%COMP%]     canvas{width:100%!important;height:100%!important;touch-action:none;cursor:crosshair;background-color:#f5f6fa;border:none}.signature-modal[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;gap:12px;width:100%;padding:16px 24px;background:#fff;border-top:1px solid #E5E7EB}.signature-modal[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:10px 24px;font-size:15px;font-weight:500;border-radius:6px;cursor:pointer;transition:all .2s ease;outline:none;min-width:90px}.signature-modal[_ngcontent-%COMP%]   .modal-footer[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.signature-embedded[_ngcontent-%COMP%], .signature-embedded[_ngcontent-%COMP%]   .embedded-body[_ngcontent-%COMP%]{width:100%}.signature-embedded[_ngcontent-%COMP%]   .embedded-body[_ngcontent-%COMP%]   .signature-canvas-wrapper[_ngcontent-%COMP%]{width:100%;height:150px;background:#fff;border:none;border-radius:0;overflow:hidden}.signature-embedded[_ngcontent-%COMP%]   .embedded-body[_ngcontent-%COMP%]   .signature-canvas-wrapper[_ngcontent-%COMP%]   signature-pad[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.signature-embedded[_ngcontent-%COMP%]   .embedded-body[_ngcontent-%COMP%]   .signature-canvas-wrapper[_ngcontent-%COMP%]   signature-pad[_ngcontent-%COMP%]     canvas{width:100%!important;height:100%!important;touch-action:none;cursor:crosshair;background-color:#fafafa;border:none}@media (max-width: 768px){.signature-modal-backdrop[_ngcontent-%COMP%]{align-items:flex-end;background:#0006}.signature-modal[_ngcontent-%COMP%]{width:100%;height:50vh;border-radius:16px 16px 0 0;box-shadow:0 -4px 10px #0003;animation:_ngcontent-%COMP%_slide-up .3s ease-out}.signature-modal[_ngcontent-%COMP%]:before{content:"";display:block;width:40px;height:4px;background:#ccc;border-radius:2px;margin:8px auto}}@keyframes _ngcontent-%COMP%_slide-up{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}']});let s=n;return s})();var ue=["banner"],pe=["previewBlock"],me=s=>({"error-banner":s});function ge(s,n){if(s&1){let t=N();P(0,"div",9)(1,"button",10),L("click",function(){O(t);let i=S();return D(i.openSignatureModal())}),A(2,"loader",4),W(3),T()()}if(s&2){let t=S();m(),G("background-color",t.commonData==null||t.commonData.templateSettings==null||t.commonData.templateSettings.ButtonColor==null?null:t.commonData.templateSettings.ButtonColor.Primary)("color","white"),m(),y("type","button")("show",t.commonData==null||t.commonData.authentication==null||t.commonData.authentication.login==null?null:t.commonData.authentication.login.isVerifying),m(),Y(" ",t.constants==null||t.constants.CUSTOM_LABELS==null?null:t.constants.CUSTOM_LABELS.centerQuoteAcceptanceLabel," ")}}function fe(s,n){if(s&1){let t=N();P(0,"app-signature-pad",11,2),L("close",function(){O(t);let i=S();return D(i.onSignatureModalClose())})("save",function(i){O(t);let o=S();return D(o.onSignatureSave(i))}),T()}s&2&&y("showAsModal",!0)("canvasHeight",200)}var mt=(()=>{let n=class n{constructor(e,i,o,a,c){this.store=e,this.route=i,this.zenDialogService=o,this.domSanitizer=a,this.constantSetterAndGetterService=c,this.isLoading=!0,this.isBannerVisible=!1,this.destroyed$=new J,this.is_latest=!0,this.localizationClassKey=st.WebstoreQuotes,this.registerContextChangeDetectionFlag=!1,this.localizationPipe=new ot,this.awaitingLogin=!1,this.isAcceptingQuote=!1,this.showSignatureMod
1al=!1,this.setRegisterContextChangeDetectionFlag=()=>{this.registerContextChangeDetectionFlag=!0},this.fetchPreview=(r,d)=>{this.store.dispatch(new at({id:r,is_latest:d}))},this.onPreviewFetchSuccess=r=>{r.data&&(this.data=r.data,this.syncCenterId(r.data.center_id),this.previewBlock&&this.previewBlock.nativeElement&&(this.previewBlock.nativeElement.innerHTML=r.html_data),this.manageErrorBanner())},this.onPreviewFetchError=r=>{(r==null?void 0:r.status)===401?this.InitSignIn():this.loadBannerData(this.getLocalizeText("FailedToFetchErrorMessage"))},this.getBannerText=r=>{switch(r){case 1:return"".concat(this.getLocalizeText("QuoteConvertedToInvoiceLabel"));case 2:return"".concat(this.getLocalizeText("QuoteExpiredLabel"));case 3:let d="";return this.latest_quote_id&&(d=this.getLocalizeText("ClickForNewQuoteLabel",["webstorenew/quotes/".concat(this.latest_quote_id)])),"".concat(this.getLocalizeText("QuoteUpdatedLabel")).concat(d);default:return""}},this.onAcceptQuoteSuccess=()=>{this.showSignatureModal=!1,this.fetchPreview(this.id,this.is_latest)},this.onAcceptQuoteError=r=>{var p;let d=this.getLocalizeText("AcceptQuoteErrorMessage"),h=(r==null?void 0:r.global)||((p=r==null?void 0:r.error)==null?void 0:p.message)||(r==null?void 0:r.message)||d;this.loadBannerData(h),this.showSignatureModal=!1},this.cssStyleFile=a.bypassSecurityTrustResourceUrl("".concat(window.location.protocol,"//").concat(window.location.host,"/Common/Styles/Css/Custom/Quotes/QuotePreviewBaseStyles.css?v").concat((0,Yt.default)().format("yyyyMMDDhhmmss"))),this.quotesData$=this.store.select("webstoreQuotesState")}ngOnInit(){this.constants=this.constantSetterAndGetterService.getConstants(),this.commonData$=this.store.select("webstoreCommonState"),this.setValueFromQueryParams(),this.commonData$.pipe($(this.destroyed$)).subscribe(e=>{this.commonData=e,e.guest.isGuestLoggedIn==!0&&this.awaitingLogin&&(this.awaitingLogin=!1,this.fetchPreview(this.id,this.is_latest))}),this.quotesData$.pipe($(this.destroyed$)).subscribe(e=>{this.quotesData=e,this.isLoading=e.quotePreview.isLoading,this.isAcceptingQuote=e.acceptQuote.isLoading,e.quotePreview.data&&this.onPreviewFetchSuccess(e.quotePreview),e.quotePreview.error&&this.onPreviewFetchError(e.quotePreview.error),e.acceptQuote.success&&this.onAcceptQuoteSuccess(),e.acceptQuote.error&&this.onAcceptQuoteError(e.acceptQuote.error)}),this.configLocalization(),this.validateAuthentication(),this.subscribeQueryParamChange(),this.awaitingLogin===!1&&this.fetchPreview(this.id,this.is_latest)}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}setValueFromQueryParams(){this.id=this.route.snapshot.params.id,this.is_latest=this.route.snapshot.queryParams.latest!=="false",this.latest_quote_id=this.route.snapshot.queryParams.latest_quote_id,this.center_id=this.route.snapshot.queryParams.centerId}subscribeQueryParamChange(){this.route.params.subscribe(e=>{e.id&&e.id!==this.id&&(this.setValueFromQueryParams(),this.fetchPreview(this.id,this.is_latest))})}validateAuthentication(){var e;((e=this.commonData.guest)==null?void 0:e.isGuestLoggedIn)!==!0&&(this.isLoading=!1,this.InitSignIn())}configLocalization(){nt(this.localizationClassKey,this.setRegisterContextChangeDetectionFlag)}InitSignIn(){this.zenDialogService.showDialog(this.commonData.dialog.webstoreAuthDialog,"banner-sign-in-btn"),this.store.dispatch(new Ut({})),this.awaitingLogin=!0}syncCenterId(e){if(e&&!this.center_id){let i=new URL(window.location.href);i.searchParams.set("centerId",e),window.location.replace(i.toString())}this.center_id=e}manageErrorBanner(){let e="";if(this.data.preview_quote_id!==this.data.request_quote_id)switch(this.data.status){case 0:e=this.getLocalizeText("PreviousQuoteNoticeHtml",["webstorenew/quotes/".concat(this.data.request_quote_id,"?latest=false&latest_quote_id=").concat(this.data.preview_quote_id)]);break;case 2:e=this.getLocalizeText("QuoteLatestAndExpiredNoticeHtml",["webstorenew/quotes/".concat(this.data.request_quote_id,"?latest=false&latest_quote_id=").concat(this.data.preview_quote_id)]);break;default:e=this.getBannerText(this.data.status);break}else e=this.getBannerText(this.data.status);e===""?this.isBannerVisible=!1:this.loadBannerData(e)}loadBannerData(e){this.isBannerVisible=!0,this.banner.nativeElement.innerHTML=e}getLocalizeText(e,i){return this.localizationPipe.transform("",e,this.localizationClassKey,!1,!0,i)}
1openSignatureModal(){this.showSignatureModal=!0}onSignatureModalClose(){this.showSignatureModal=!1}onSignatureSave(e){if(!e){let i=this.getLocalizeText("QuotesSignatureRequiredError");this.loadBannerData(i);return}this.store.dispatch(new dt({id:this.id,signature:e,center_id:this.center_id}))}};n.\u0275fac=function(i){return new(i||n)(k(z),k(Wt),k(Rt),k(Qt),k(Lt))},n.\u0275cmp=B({type:n,selectors:[["webstore-quotes-preview"]],viewQuery:function(i,o){if(i&1&&(j(ue,5),j(pe,5)),i&2){let a;H(a=K())&&(o.banner=a.first),H(a=K())&&(o.previewBlock=a.first)}},decls:8,vars:8,consts:[["banner",""],["previewBlock",""],["signaturePad",""],["id","baseThemeStyleSheet","title","basic","media","all","rel","stylesheet","type","text/css",3,"href"],[3,"type","show"],[3,"ngClass"],["id","q-preview"],["class","accept-quote-container","style","text-align: center; margin-top: 20px;",4,"ngIf"],[3,"showAsModal","canvasHeight","close","save",4,"ngIf"],[1,"accept-quote-container",2,"text-align","center","margin-top","20px"],["type","button",1,"btn","btn-primary","btn-lg","zen-btn",3,"click"],[3,"close","save","showAsModal","canvasHeight"]],template:function(i,o){i&1&&(A(0,"link",3)(1,"loader",4)(2,"div",5,0)(4,"div",6,1),et(6,ge,4,7,"div",7)(7,fe,2,2,"app-signature-pad",8)),i&2&&(y("href",o.cssStyleFile,Mt),m(),y("type","page")("show",o.isLoading),m(),y("ngClass",Ot(6,me,o.isBannerVisible)),m(4),y("ngIf",!o.isLoading&&o.data&&o.data.status===0&&(o.constants==null||o.constants.ORGANIZATION_SETTINGS==null?null:o.constants.ORGANIZATION_SETTINGS.enableQuoteAcceptanceFlow)),m(),y("ngIf",o.showSignatureModal))},dependencies:[Dt,it,Vt,Kt],encapsulation:2});let s=n;return s})();var _e=[{path:"",pathMatch:"full",component:mt}],Xt=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=R({type:n}),n.\u0275inj=I({imports:[Ct.forChild(_e),Ct]});let s=n;return s})();var gt=(()=>{let n=class n{constructor(e){this.httpClient=e}getQuotePreview(e,i){return i=Object.assign(i,{is_receipt_print:!0}),this.httpClient.get("v1/quotes/".concat(e,"/preview"),i)}acceptQuote(e,i){return this.httpClient.put("v1/quotes/".concat(e,"/accept"),i)}};n.\u0275fac=function(i){return new(i||n)(F(zt))},n.\u0275prov=tt({token:n,factory:n.\u0275fac});let s=n;return s})();var Zt=(()=>{let n=class n{constructor(e,i,o){this.actions$=e,this.store=i,this.quoteService=o,this.onGetQuotePreview$=xt(()=>this.actions$.pipe(Pt(f.GET_QUOTE_PREVIEW),yt(this.store,(a,c)=>({action:a,commonState:c.webstoreCommonState})),wt(({action:a,commonState:c})=>this.quoteService.getQuotePreview(a.payload.id,{is_latest:a.payload.is_latest}).pipe(_t(r=>q(new rt(r))),vt(r=>q(new ct(r))))))),this.onAcceptQuote$=xt(()=>this.actions$.pipe(Pt(f.ACCEPT_QUOTE),yt(this.store,(a,c)=>({action:a,commonState:c.webstoreCommonState})),wt(({action:a,commonState:c})=>this.quoteService.acceptQuote(a.payload.id,{signature:a.payload.signature,center_id:a.payload.center_id}).pipe(_t(r=>q(new lt(r))),vt(r=>q(new ht(r)))))))}};n.\u0275fac=function(i){return new(i||n)(F(Ft),F(z),F(gt))},n.\u0275prov=tt({token:n,factory:n.\u0275fac});let s=n;return s})();var Jt={quotePreview:{data:null,isLoading:!1,error:null,html_data:"",preview_quote_id:"",request_quote_id:"",status:0},acceptQuote:{isLoading:!1,error:null,success:!1}};function te(s=Jt,n){var t,e,i,o;switch(n.type){case f.GET_QUOTE_PREVIEW:return _(g({},s),{quotePreview:_(g({},s.quotePreview),{isLoading:!0,error:null}),acceptQuote:_(g({},s.acceptQuote),{success:!1})});case f.GET_QUOTE_PREVIEW_SUCCESS:return _(g({},s),{quotePreview:_(g({},s.quotePreview),{isLoading:!1,error:null,data:n.payload.data,html_data:((t=n.payload.data)==null?void 0:t.html_data)||"",preview_quote_id:((e=n.payload.data)==null?void 0:e.preview_quote_id)||"",request_quote_id:((i=n.payload.data)==null?void 0:i.request_quote_id)||"",status:((o=n.payload.data)==null?void 0:o.status)||0})});case f.GET_QUOTE_PREVIEW_FAILURE:return _(g({},s),{quotePreview:_(g({},s.quotePreview),{isLoading:!1,error:n.payload})});case f.ACCEPT_QUOTE:return _(g({},s),{acceptQuote:_(g({},s.acceptQuote),{isLoading:!0,error:null,success:!1})});case f.ACCEPT_QUOTE_SUCCESS:return _(g({},s),{acceptQuote:_(g({},s.acceptQuote),{isLoading:!1,error:null,success:!0})});case f.ACCEPT_QUOTE_FAILURE:return _(g({},s),{acceptQuote:_(g({},s.acceptQuote),{isLoading:!1,error:n.payload,success:!1})});default:return s}}var bi=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=R({type:n,bootstrap:[mt]}),n.\u0275inj=I({providers:[gt],imports:[At,$t,Xt,qt,Bt.forFeature
1([Zt]),It.forFeature("webstoreQuotesState",te),jt]});let s=n;return s})();export{bi as WebstoreQuotesModule};

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.