PageSourceSearch

https://myaccount.agrinews-pubs.com/2401.55abc880e3534ede.js

js agrinews-pubs.com collected 2026-09-24 19:25:32 UTC 15,958 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkSubCon=self.webpackChunkSubCon||[]).push([[2401],{56130:(w,S,r)=>{r.d(S,{u:()=>m});var M=r(61135),F=r(94650);let m=(()=>{const f=class{constructor(){this.walletSource=new M.X({}),this.params$=this.walletSource.asObservable()}updateParams(T){this.walletSource.next({...this.walletSource.value,...T})}getParams(){return this.walletSource.value}};let o=f;return f.\u0275fac=function($){return new($||f)},f.\u0275prov=F.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),o})()},74814:(w,S,r)=>{r.r(S),r.d(S,{NavigaPayModule:()=>pe});var M=r(36895),F=r(86582),m=r(88776),o=r(89653),f=r(90965),e=r(94650),T=r(36840),$=r(20373),I=r(22529),z=r(95698);class Q{constructor(n,c,a,t,s,d,u){this.profileId=n,this.groupId=c,this.paymentType=a,this.customerId=t,this.creditCardInfo=s,this.issuerId=d,this.danNumber=u}}class Y{constructor(n,c,a,t,s,d,u,g){this.transactionAmount=n,this.paymentType=c,this.frequency=a,this.frequencyCount=t,this.recurringAmount=s,this.customBillingMessage1=d,this.customBillingMessage2=u,this.customBillingMessage3=g}}var l,i,y=(()=>{return(i=y||(y={})).CreditCard="CreditCard",i.ACH="ACH",i.GooglePay="GooglePay",i.ApplePay="ApplePay",i.PayPal="PayPal",y;var i})(),A=r(932);class K{constructor(n,c){this.parentStore=n,this.parentActions$=c,this.setFacadeActive()}setFacadeActive(){this.active=!0}setFacadeInactive(){this.active=!1}select(n){return this.parentStore.pipe((0,I.o)(()=>this.active),(0,o.Ys)(n))}subscribe(n){return this.parentActions$.pipe((0,m.l4)(n)).pipe((0,I.o)(()=>this.active))}}(i=l||(l={})).reset=(0,o.PH)("[NavigaPay] Reset"),i.getConfiguration=(0,o.PH)("[NavigaPay] Get Configuration",(0,o.Ky)()),i.getConfigurationSuccess=(0,o.PH)("[NavigaPay] Get Configuration Success",(0,o.Ky)()),i.getConfigurationFailed=(0,o.PH)("[NavigaPay] Get Configuration Failed",(0,o.Ky)()),i.createPaymentMethod=(0,o.PH)("[NavigaPay] Create Payment Method",(0,o.Ky)()),i.createPaymentMethodSuccess=(0,o.PH)("[NavigaPay] Create Payment Method Success",(0,o.Ky)()),i.createPaymentMethodFailed=(0,o.PH)("[NavigaPay] Create Payment Method Failed",(0,o.Ky)()),i.editPaymentMethod=(0,o.PH)("[NavigaPay] Edit Payment Method");var C,X=r(69814);!function(i){const n=(0,o.ZF)("navigaPayState");i.getConfiguration=(0,o.P1)(n,c=>c.configuration),i.getLoadingConfiguration=(0,o.P1)(n,c=>c.loadingConfiguration),i.getMessages=(0,o.P1)(n,c=>c.messages),i.getCMSPageData=(0,o.P1)(n,c=>c.cmsData),i.getCMSContents=(0,o.P1)(i.getCMSPageData,c=>c.contents),i.getCMSContentById=(0,X.B)(i.getCMSContents),i.getProcessing=(0,o.P1)(n,c=>c.processing),i.getCreditCard=(0,o.P1)(n,c=>c.creditCard)}(C||(C={}));let b=(()=>{const n=class extends K{constructor(a,t){super(a,t),this.store=a,this.actions$=t,this.getConfiguration$=this.select(C.getConfiguration),this.getLoadingConfiguration$=this.select(C.getLoadingConfiguration),this.getMessages$=this.select(C.getMessages),this.getCMSContentById$=this.select(C.getCMSContentById),this.getCMSContents$=this.select(C.getCMSContents),this.processing$=this.select(C.getProcessing),this.creditCard$=this.select(C.getCreditCard),this.onGetConfigurationSuccess$=this.subscribe(l.getConfigurationSuccess),this.onGetConfigurationFailed$=this.subscribe(l.getConfigurationFailed),this.onCreatePaymentMethodSuccess$=this.subscribe(l.createPaymentMethodSuccess),this.onCreatePaymentMethodFailed$=this.subscribe(l.createPaymentMethodFailed),this.setFacadeActive()}getConfiguration(a){this.store.dispatch(l.getConfiguration({payload:a}))}reset(){this.store.dispatch(l.reset())}createPaymentMethod(a){this.store.dispatch(l.createPaymentMethod({payload:a}))}editPaymentMethod(){this.store.dispatch(l.editPaymentMethod())}};let i=n;return n.\u0275fac=function(t){return new(t||n)(e.LFG(o.yh),e.LFG(m.eX))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),i})();var j=r(36396),V=r(11481),D=r(56130),k=r(74491),q=r(45863),_=r(33712),G=r(45475),ee=r(32624),te=r(61591),R=r(90433);const ae=["navigaPayForm"];function ne(i,n){if(1&i){const c=e.EpF();e.ynx(0),e.TgZ(1,"article",6)(2,"div",7)(3,"div",8),e._UZ(4,"label",9),e.ALo(5,"async"),e.TgZ(6,"span",10),e._uU(7),e.ALo(8,"async"),e.qZA()(),e.TgZ(9,"div",8),e._UZ(10,"label",9),e.ALo(11,"async"),e.TgZ(12,"span",10),e._uU(13),e.ALo(14,"async"),e.qZA()()(),e.TgZ(15,"div",7)(16,"div",8),e._UZ(17,"label",9),e.ALo(18,"async"),e.TgZ(19,"span",10),e._uU(20),e.ALo(21,"async"),e.qZA()(),e.TgZ(22,"div",8),e._UZ(23,"label",9),e.ALo(24,"async"),e.TgZ(25,"span",10),e._uU(26),e.ALo(27,"async"),e.ALo(28,"async"),e.qZA()()(),e.TgZ(29,"div",11)(30,"div",12)(31,"button",13),e.NdJ("click",function(){e.CHM(c);const t=e.oxw();return e.KtG(t.edit())}),e.ALo(32,"async"),e.qZA()()()(),e.BQk()}if(2&i){const c=e.oxw();e.xp6(4),e.Q6J("CMSContent",e.lcZ(5,10,c.contents$)("CreditCard.NameLabelText")),e.xp6(3),e.hij(" ",e.lcZ(8,12,c.creditCard$).ccName,""),e.xp6(3),e.Q6J("CMSContent",e.lcZ(11,14,c.contents$)("CreditCard.NumberLabelText")),e.xp6(3),e.hij(" ",e.lcZ(14,16,c.creditCard$).maskedNumber,""),e.xp6(4),e.Q6J("CMSContent",e.lcZ(18,18,c.contents$)("CreditCard.TypeLabelText")),e.xp6(3),e.hij(" ",e.lcZ(21,20,c.creditCard$).type,""),e.xp6(3),e.Q6J("CMSContent",e.lcZ(24,22,c.contents$)("CreditCard.ExpirationLabelText")),e.xp6(3),e.AsE(" ",e.lcZ(27,24,c.creditCard$).expMonth,"/",e.lcZ(28,26,c.creditCard$).expYear," "),e.xp6(5),e.Q6J("CMSContent",e.lcZ(32,28,c.contents$)("CreditCard.EditButtonLabelText"))}}function ie(i,n){1&i&&(e.ynx(0),e._UZ(1,"loader"),e.BQk())}let L=(()=>{const n=class extends $.T{constructor(a,t,s,d){super(),this.facade=a,this.notificationService=t,this.sanitizer=s,this.mpanService=d,this.componentActive=!0,this.showIframe=!1,this.iframeLoaded=!1,this.loadingIframe=!1,this.loading$=this.pipeWhile(this.facade.getLoadingConfiguration$,this.componentActive),this.processing$=this.pipeWhile(this.facade.processing$,this.componentActive),this.creditCard$=this.pipeWhile(this.facade.creditCard$,this.componentActive),this.messages$=this.pipeWhile(this.facade.getMessages$,this.componentActive),this.onSuccess=new e.vpe,this.onEdit=new e.vpe,this.iframeFormId="navigaPayForm",this.hasMoneris=!1,this.hasGooglepay=!1,this.hasApplepay=!1,this.preInitialize()}ngOnInit(){this.initialize()}ngOnDestroy(){this.componentActive=!1,this.facade.setFacadeInactive()}ngAfterViewChecked(){document.forms[this.iframeFormId]&&this.iframeUrl&&!this.iframeLoaded&&(this.iframeLoaded=!0,this.renderIframe())}edit(){this.onEdit.emit(),this.facade.editPaymentMethod(),this.configureProvider()}preInitialize(){this.facade.setFacadeActive(),this.facade.reset()}initialize(){this.configureMessages(),this.configureProvider()}configureProvider(){let a=!0;this.showIframe=!1,this.loadingIframe=!0,this.iframeLoaded=!1,this.iframeUrl="",this.iframeLoadTimeout=setTimeout(()=>{this.iframeLoaded||(this.loadingIframe=!0)},3e3),this.facade.onGetConfigurationSuccess$.pipe((0,I.o)(()=>a)).subscribe(t=>{this.iframeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`${t.payload.data.configuration.iframeUrl}&caller=${window.location.origin}`),this.serviceUrl=new URL(t.payload.data.configuration.iframeUrl),this.hasMoneris=this.serviceUrl?.href?.split("siteCode=")[1]?.includes("moneris"),this.hasGooglepay=this.serviceUrl?.href?.split("paymentType=")[1]?.includes("googlepay"),this.hasApplepay=this.serviceUrl?.href?.split("paymentType=")[1]?.includes("applepay"),this.showIframe=!0,this.transactionId=null,a=!1,setTimeout(()=>{this.navigaPayForm.nativeElement.submit()})}),this.facade.onGetConfigurationFailed$.pipe((0,I.o)(()=>a)).subscribe(t=>{a=!1}
1),this.data$.pipe((0,z.q)(1)).subscribe(t=>{let s=this.getNavigaPayPaymentType(t&&t.paymentMethodType?t.paymentMethodType:A.I.CreditCard),d=t&&null!=t.amount?t.amount:1;const g=s===y.ApplePay&&!(!t||!(t.term||t.length||t.optionAmount));let p=g?t.term:void 0,h=g?t.length:void 0;if(g&&p){const P=p.toLowerCase();"week"===P&&h&&h>0?(h*=7,p="daily"):"day"===P?p="daily":"month"===P?p="monthly":"year"===P&&(p="annually")}this.facade.getConfiguration(new Y(d,s,p,h,g?t.optionAmount:void 0,g?t.customBillingMessage1:void 0,g?t.customBillingMessage2:void 0,g?t.customBillingMessage3:void 0))})}configureMessages(){this.messages$.subscribe(a=>{this.notificationService.showMessages(a)})}renderIframe(){this.navigaPayForm.nativeElement.submit()}isIframeLoaded(){this.iframeLoaded=!0,clearTimeout(this.iframeLoadTimeout),setTimeout(()=>{this.loadingIframe=!1},350)}handleProviderMessage(a){if(!this.serviceUrl||!a||a.origin!=this.serviceUrl.origin)return;let t=JSON.parse(decodeURIComponent(a.data).replace(/&quot;/g,'"')),s=typeof(t?.operationResponseWrapper?.createProfileRedirectResponse||t?.operationResponseWrapper?.getProfileResponse)<"u",d=s?t.operationResponseWrapper.createProfileRedirectResponse:t?.operationResponseWrapper?.createPaymentRedirectResponse;if("ResponseCodeRedirectOperationCancel"==d?.operationMessage?.operationText||"ResponseCodeProfileOperationFailure"==d?.operationMessage?.operationText){this.configureProvider();const Ce="Operation timed out - Please try again later",ve=d.operationMessage.vendorResponseText2||d.operationMessage.vendorResponseText3?`${d.operationMessage.vendorResponseText2??""} ${d.operationMessage.vendorResponseText3??""}`.trim():Ce;return this.notificationService.showErrorMessage(new T.B(ve,"NavigaPay_E400_00")),void this.renderIframe()}let u=s?t.operationResponseWrapper.getProfileResponse.profile[0]:t.operationResponseWrapper.createPaymentRedirectResponse.profile[0];this.transactionId=u&&u.payments&&u.payments.length>0?u.payments[0].transactionId:null;let g=u&&u.payments&&u.payments.length>0?u.payments[0].authorizationCode:null,p=u.payments[0]||{},h=this.mapCardType(p.cardType),Z=p.profileId,B=p.paymentType,U=u.groupId,P=t.operationResponseWrapper.createPaymentRedirectResponse?.isMpan,he=p.danNumber?p.danNumber:null,me=u.customer?u.customer.customerId:null,fe={number:p.cardNumber,type:h,expirationMonth:p.expirationMonth,expirationYear:p.expirationYear,holderName:(p.billing||{}).fullName},ye=u.issuerId;this.mpanService.updateParams({isMpan:!0===P||"true"===P,authorizationCode:g,transactionId:this.transactionId}),this.createPaymentMethod(U,Z,B,me,fe,ye,he)}mapCardType(a){switch(a){case"VISA":return"VISA";case"MC":return"MASTERCARD";case"AMEX":return"AMEX";case"DISC":return"DISCOVER";default:return a}}createPaymentMethod(a,t,s,d,u,g,p){let h=!0;this.showIframe=!1,this.facade.onCreatePaymentMethodSuccess$.pipe((0,I.o)(()=>h)).subscribe(v=>{this.onSuccess.emit({paymentMethodId:v.payload.data.paymentMethodId,creditCard:v.payload.data.creditCardInfo,transactionId:""!=this.transactionId?this.transactionId:null}),h=!1}),this.facade.onCreatePaymentMethodFailed$.pipe((0,I.o)(()=>h)).subscribe(v=>{this.configureProvider(),h=!1}),this.facade.createPaymentMethod(new Q(t,a,s,d,u,g,p))}getNavigaPayPaymentType(a){switch(a){case A.I.CreditCard:return y.CreditCard;case A.I.BankAccount:return y.ACH;case A.I.ApplePay:return y.ApplePay;case A.I.GooglePay:return y.GooglePay;default:return y.CreditCard}}getPaymentContainerClass(){return this.hasMoneris?"moneris-container":this.hasGooglepay?"gpay-wrapper":this.hasApplepay?"applepay-wrapper":""}};let i=n;return n.\u0275fac=function(t){return new(t||n)(e.Y36(b),e.Y36(j.g),e.Y36(V.H7),e.Y36(D.u))},n.\u0275cmp=e.Xpm({type:n,selectors:[["naviga-pay"]],viewQuery:function(t,s){if(1&t&&e.Gf(ae,7),2&t){let d;e.iGM(d=e.CRH())&&(s.navigaPayForm=d.first)}},hostBindings:function(t,s){1&t&&e.NdJ("message",function(u){return s.handleProviderMessage(u)},!1,e.Jf7)},outputs:{onSuccess:"onSuccess",onEdit:"onEdit"},features:[e.qOj],decls:10,vars:11,consts:[[3,"hidden"],["id","navigaPayForm","method","post","target","payment-method",3,"action"],["navigaPayForm",""],[1,"navigapay-container"],["id","payment-method","name","payment-method","allow","payment *",1,"navigapay-iframe",3,"ngClass","load"],[4,"ngIf"],["no-gutters","",1,"mt-3"],["is","12","wrap",""],["is","12","desktop-is","6",1,"form-group"],[1,"control-label",3,"CMSContent"],[1,"form-control-plaintext"],["is","12",1,"mt-3"],["is","12","desktop-is","6"],["outline","","primary","","block","",3,"CMSContent","click"]],template:function(t,s){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"form",1,2),e.TgZ(3,"div",3)(4,"iframe",4),e.NdJ("load",function(){return s.isIframeLoaded()}),e.qZA()()(),e.YNc(5,ne,33,30,"ng-container",5),e.ALo(6,"async"),e.YNc(7,ie,2,0,"ng-container",5),e.ALo(8,"async"),e.ALo(9,"async")),2&t&&(e.Q6J("hidden",!s.showIframe),e.xp6(1),e.Q6J("action",s.iframeUrl,e.LSH),e.xp6(3),e.Q6J("ngClass",s.getPaymentContainerClass()),e.xp6(1),e.Q6J("ngIf",e.lcZ(6,5,s.creditCard$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(8,7,s.loading$)||e.lcZ(9,9,s.processing$)||s.loadingIframe))},dependencies:[M.mk,M.O5,k.R,q.r,_.U,G.Ow,G.tQ,ee.H,te.q,R._Y,R.JL,R.F,M.Ov],encapsulation:2}),i})();var E=r(30235),se=r(87478);let N=(()=>{const n=class extends se.b{getConfiguration$(a){let t=`paymentType=${a.paymentType}&transactionAmount=${a.transactionAmount}`;return a.frequency&&(t+=`&frequency=${encodeURIComponent(a.frequency)}`),a.frequencyCount&&(t+=`&frequencyCount=${a.frequencyCount}`),a.recurringAmount&&(t+=`&recurringAmount=${a.recurringAmount}`),a.customBillingMessage1&&(t+=`&customBillingMessage1=${encodeURIComponent(a.customBillingMessage1)}`),a.customBillingMessage2&&(t+=`&customBillingMessage2=${encodeURIComponent(a.customBillingMessage2)}`),a.customBillingMessage3&&(t+=`&customBillingMessage3=${encodeURIComponent(a.customBillingMessage3)}`),this.executeGet(`${E.W.Providers.NavigaPay.GetConfiguration}?${t}`)}createPaymentMethod$(a){return this.executePost(`${E.W.Providers.NavigaPay.CreatePaymentMethod}`,a)}};let i=n;return n.\u0275fac=function(){let a;return function(s){return(a||(a=e.n5z(n)))(s||n)}}(),n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),i})();var H=r(39646),W=r(63900),J=r(54004),O=r(70262);let oe=(()=>{const n=class{constructor(a,t){this.actions$=a,this.service=t,this.onGetConfiguration$=(0,m.GW)(()=>this.actions$.pipe((0,m.l4)(l.getConfiguration),(0,W.w)(s=>this.service.getConfiguration$(s.payload).pipe((0,J.U)(d=>l.getConfigurationSuccess({payload:d})),(0,O.K)(d=>(0,H.of)(l.getConfigurationFailed({payload:d.error.messages}))))))),this.onCreatePaymentMethod$=(0,m.GW)(()=>this.actions$.pipe((0,m.l4)(l.createPaymentMethod),(0,W.w)(s=>this.service.createPaymentMethod$(s.payload).pipe((0,J.U)(d=>l.createPaymentMethodSuccess({payload:d})),(0,O.K)(d=>(0,H.of)(l.createPaymentMethodFailed({payload:d.error.messages})))))))}};let i=n;return n.\u0275fac=function(t){return new(t||n)(e.LFG(m.eX),e.LFG(N))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),i})();var x,re=r(50834);!function(i){const c=(0,o.Lq)({loadingConfiguration:!1,processing:!1,
1creditCard:null,messages:[],cmsData:null},(0,o.on)(l.reset,(t,s)=>({...t,loadingConfiguration:!1,processing:!1,creditCard:null,messages:[]})),(0,o.on)(l.getConfiguration,(t,s)=>({...t,loadingConfiguration:!0,creditCard:null})),(0,o.on)(l.getConfigurationSuccess,(t,s)=>({...t,loadingConfiguration:!1,configuration:s.payload.data})),(0,o.on)(l.getConfigurationFailed,(t,s)=>({...t,loadingConfiguration:!1,messages:s.payload})),(0,o.on)(l.createPaymentMethod,(t,s)=>({...t,processing:!0})),(0,o.on)(l.createPaymentMethodSuccess,(t,s)=>({...t,processing:!1,creditCard:s.payload.data.creditCardInfo})),(0,o.on)(l.createPaymentMethodFailed,(t,s)=>({...t,processing:!1,creditCard:null,messages:re.P.replaceText(s.payload,t.cmsData?.notifications||[])})),(0,o.on)(l.editPaymentMethod,(t,s)=>({...t,loadingConfiguration:!1,processing:!1,creditCard:null,messages:[]})));i.reducer=function a(t,s){return c(t,s)}}(x||(x={}));const ce=[{path:"",component:L}],de=[o.Aw.forFeature("navigaPayState",x.reducer),m.sQ.forFeature([oe])],le=[M.ez,f.m,F.Bz.forChild(ce),de],ue=[N,b];let pe=(()=>{const n=class{constructor(){this.types={NavigaPayComponent:L}}};let i=n;return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:ue,imports:[le]}),i})()}}]);

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.