{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./TypeScripts/API/DansaiEstimateApi.ts","webpack:///./TypeScripts/Dansai/Bespoke.ts"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;;;;;;;;;;GAUG;AAIH,uDAAuD;AAEvD;IAMI,2BAAsB,KAAsB,EAAY,oBAAsC,EAAE,QAAiB;QAA3F,UAAK,GAAL,KAAK,CAAiB;QAAY,yBAAoB,GAApB,oBAAoB,CAAkB;QALpF,aAAQ,GAAG,EAAE,CAAC;QACjB,mBAAc,GAAS,EAAE,CAAC;QAK7B,IAAI,QAAQ,KAAK,SAAS,EAAE;YACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;SAC5B;IACL,CAAC;IAED;;;;;;OAMG;IACI,8CAAkB,GAAzB,UAA2B,MAAc,EAAE,KAAa,EAAE,MAAc,EAAE,QAAgB,EAAE,sBAA4B;QACpH,IAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,GAAG,0BAA0B,CAAC;QAEhE,IAAI,eAAe,GAAQ,EAAE,CAAC;QAC9B,IAAI,YAAY,GAAc,MAAO,CAAC,MAAM,CAA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,UAAU,CAAC,UAAU,EAAO,QAAQ,CAAC,CAAC;AAE/C,CAAC,EA5ZM,gBAAgB,KAAhB,gBAAgB,QA4ZtB","file":"Dansai/Bespoke.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./TypeScripts/Dansai/Bespoke.ts\");\n","/**\r\n * OppSites\r\n * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\r\n *\r\n * OpenAPI spec version: V1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\nimport * as models from '../model/models';\r\n\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nexport class DansaiEstimateApi {\r\n protected basePath = '';\r\n public defaultHeaders : any = {};\r\n\r\n static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];\r\n\r\n constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {\r\n if (basePath !== undefined) {\r\n this.basePath = basePath;\r\n }\r\n }\r\n\r\n /**\r\n * \r\n * @param itemId \r\n * @param width \r\n * @param height \r\n * @param quantity \r\n */\r\n public dansaiEstimateCalc (itemId: number, width: number, height: number, quantity: number, extraHttpRequestParams?: any ) : ng.IHttpPromise {\r\n const localVarPath = this.basePath + '/Api/DansaiEstimate/Calc';\r\n\r\n let queryParameters: any = {};\r\n let headerParams: any = (Object).assign({}, this.defaultHeaders);\r\n // verify required parameter 'itemId' is not null or undefined\r\n if (itemId === null || itemId === undefined) {\r\n throw new Error('Required parameter itemId was null or undefined when calling dansaiEstimateCalc.');\r\n }\r\n\r\n // verify required parameter 'width' is not null or undefined\r\n if (width === null || width === undefined) {\r\n throw new Error('Required parameter width was null or undefined when calling dansaiEstimateCalc.');\r\n }\r\n\r\n // verify required parameter 'height' is not null or undefined\r\n if (height === null || height === undefined) {\r\n throw new Error('Required parameter height was null or undefined when calling dansaiEstimateCalc.');\r\n }\r\n\r\n // verify required parameter 'quantity' is not null or undefined\r\n if (quantity === null || quantity === undefined) {\r\n throw new Error('Required parameter quantity was null or undefined when calling dansaiEstimateCalc.');\r\n }\r\n\r\n if (itemId !== undefined) {\r\n queryParameters['itemId'] = itemId;\r\n }\r\n\r\n if (width !== undefined) {\r\n queryParameters['width'] = width;\r\n }\r\n\r\n if (height !== undefined) {\r\n queryParameters['height'] = height;\r\n }\r\n\r\n if (quantity !== undefined) {\r\n queryParameters['quantity'] = quantity;\r\n }\r\n\r\n let httpRequestParams: ng.IRequestConfig = {\r\n method: 'GET',\r\n url: localVarPath,\r\n params: queryParameters,\r\n headers: headerParams\r\n };\r\n\r\n if (extraHttpRequestParams) {\r\n httpRequestParams = (Object).assign(httpRequestParams, extraHttpRequestParams);\r\n }\r\n\r\n return this.$http(httpRequestParams);\r\n }\r\n /**\r\n * \r\n * @param itemId \r\n * @param width \r\n * @param height \r\n * @param quantity \r\n */\r\n public dansaiEstimateEcEntry (itemId: number, width: number, height: number, quantity: number, extraHttpRequestParams?: any ) : ng.IHttpPromise {\r\n const localVarPath = this.basePath + '/Api/DansaiEstimate/EcEntry';\r\n\r\n let queryParameters: any = {};\r\n let headerParams: any = (Object).assign({}, this.defaultHeaders);\r\n // verify required parameter 'itemId' is not null or undefined\r\n if (itemId === null || itemId === undefined) {\r\n throw new Error('Required parameter itemId was null or undefined when calling dansaiEstimateEcEntry.');\r\n }\r\n\r\n // verify required parameter 'width' is not null or undefined\r\n if (width === null || width === undefined) {\r\n throw new Error('Required parameter width was null or undefined when calling dansaiEstimateEcEntry.');\r\n }\r\n\r\n // verify required parameter 'height' is not null or undefined\r\n if (height === null || height === undefined) {\r\n throw new Error('Required parameter height was null or undefined when calling dansaiEstimateEcEntry.');\r\n }\r\n\r\n // verify required parameter 'quantity' is not null or undefined\r\n if (quantity === null || quantity === undefined) {\r\n throw new Error('Required parameter quantity was null or undefined when calling dansaiEstimateEcEntry.');\r\n }\r\n\r\n if (itemId !== undefined) {\r\n queryParameters['itemId'] = itemId;\r\n }\r\n\r\n if (width !== undefined) {\r\n queryParameters['width'] = width;\r\n }\r\n\r\n if (height !== undefined) {\r\n queryParameters['height'] = height;\r\n }\r\n\r\n if (quantity !== undefined) {\r\n queryParameters['quantity'] = quantity;\r\n }\r\n\r\n let httpRequestParams: ng.IRequestConfig = {\r\n method: 'GET',\r\n url: localVarPath,\r\n params: queryParameters,\r\n headers: headerParams\r\n };\r\n\r\n if (extraHttpRequestParams) {\r\n httpRequestParams = (Object).assign(httpRequestParams, extraHttpRequestParams);\r\n }\r\n\r\n return this.$http(httpRequestParams);\r\n }\r\n /**\r\n * \r\n * @param itemId \r\n * @param width \r\n * @param height \r\n * @param quantity \r\n */\r\n public dansaiEstimateEcEntryPost (itemId: number, width: number, height: number, quantity: number, extraHttpRequestParams?: any ) : ng.IHttpPromise {\r\n const localVarPath = this.basePath + '/Api/DansaiEstimate/EcEntryPost';\r\n\r\n let queryParameters: any = {};\r\n let headerParams: any = (Object).assign({}, this.defaultHeaders);\r\n // verify required parameter 'itemId' is not null or undefined\r\n if (itemId === null || itemId === undefined) {\r\n throw new Error('Required parameter itemId was null or undefined when calling dansaiEstimateEcEntryPost.');\r\n }\r\n\r\n // verify required parameter 'width' is not null or undefined\r\n if (width === null || width === undefined) {\r\n throw new Error('Required parameter width was null or undefined when calling dansaiEstimateEcEntryPost.');\r\n }\r\n\r\n // verify required parameter 'height' is not null or undefined\r\n if (height === null || height === undefined) {\r\n throw new Error('Required parameter height was null or undefined when calling dansaiEstimateEcEntryPost.');\r\n }\r\n\r\n // verify required parameter 'quantity' is not null or undefined\r\n if (quantity === null || quantity === undefined) {\r\n throw new Error('Required parameter quantity was null or undefined when calling dansaiEstimateEcEntryPost.');\r\n }\r\n\r\n if (itemId !== undefined) {\r\n queryParameters['itemId'] = itemId;\r\n }\r\n\r\n if (width !== undefined) {\r\n queryParameters['width'] = width;\r\n }\r\n\r\n if (height !== undefined) {\r\n queryParameters['height'] = height;\r\n }\r\n\r\n if (quantity !== undefined) {\r\n queryParameters['quantity'] = quantity;\r\n }\r\n\r\n let httpRequestParams: ng.IRequestConfig = {\r\n method: 'POST',\r\n url: localVarPath,\r\n params: queryParameters,\r\n headers: headerParams\r\n };\r\n\r\n if (extraHttpRequestParams) {\r\n httpRequestParams = (Object).assign(httpRequestParams, extraHttpRequestParams);\r\n }\r\n\r\n return this.$http(httpRequestParams);\r\n }\r\n /**\r\n * \r\n * @param id \r\n */\r\n public dansaiEstimateFindById (id: number, extraHttpRequestParams?: any ) : ng.IHttpPromise {\r\n const localVarPath = this.basePath + '/Api/DansaiEstimate/FindById';\r\n\r\n let queryParameters: any = {};\r\n let headerParams: any = (Object).assign({}, this.defaultHeaders);\r\n // verify required parameter 'id' is not null or undefined\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling dansaiEstimateFindById.');\r\n }\r\n\r\n if (id !== undefined) {\r\n queryParameters['id'] = id;\r\n }\r\n\r\n let httpRequestParams: ng.IRequestConfig = {\r\n method: 'GET',\r\n url: localVarPath,\r\n params: queryParameters,\r\n headers: headerParams\r\n };\r\n\r\n if (extraHttpRequestParams) {\r\n httpRequestParams = (Object).assign(httpRequestParams, extraHttpRequestParams);\r\n }\r\n\r\n return this.$http(httpRequestParams);\r\n }\r\n /**\r\n * \r\n */\r\n public dansaiEstimateGetItems (extraHttpRequestParams?: any ) : ng.IHttpPromise> {\r\n const localVarPath = this.basePath + '/api/DansaiEstimate';\r\n\r\n let queryParameters: any = {};\r\n let headerParams: any = (Object).assign({}, this.defaultHeaders);\r\n let httpRequestParams: ng.IRequestConfig = {\r\n method: 'GET',\r\n url: localVarPath,\r\n params: queryParameters,\r\n headers: headerParams\r\n };\r\n\r\n if (extraHttpRequestParams) {\r\n httpRequestParams = (Object).assign(httpRequestParams, extraHttpRequestParams);\r\n }\r\n\r\n return this.$http(httpRequestParams);\r\n }\r\n /**\r\n * \r\n * @param code \r\n */\r\n public dansaiEstimateLoad (code: string, extraHttpRequestParams?: any ) : ng.IHttpPromise {\r\n const localVarPath = this.basePath + '/Api/DansaiEstimate/Load';\r\n\r\n let queryParameters: any = {};\r\n let headerParams: any = (Object).assign({}, this.defaultHeaders);\r\n // verify required parameter 'code' is not null or undefined\r\n if (code === null || code === undefined) {\r\n throw new Error('Required parameter code was null or undefined when calling dansaiEstimateLoad.');\r\n }\r\n\r\n if (code !== undefined) {\r\n queryParameters['code'] = code;\r\n }\r\n\r\n let httpRequestParams: ng.IRequestConfig = {\r\n method: 'GET',\r\n url: localVarPath,\r\n params: queryParameters,\r\n headers: headerParams\r\n };\r\n\r\n if (extraHttpRequestParams) {\r\n httpRequestParams = (Object).assign(httpRequestParams, extraHttpRequestParams);\r\n }\r\n\r\n return this.$http(httpRequestParams);\r\n }\r\n}\r\n","import { DansaiEstimateApi } from \"../API/DansaiEstimateApi\";\r\nimport { DansaiEstimateItem} from \"../model/DansaiEstimateItem\";\r\nimport { DaisiWebEstResult } from \"../model/DaisiWebEstResult\";\r\n\r\nmodule dansaiBespokeApp {\r\n\r\n class MainCtrl {\r\n apiClient: DansaiEstimateApi;\r\n\r\n items: DansaiEstimateItem[];\r\n width: number;\r\n height: number;\r\n quant: number;\r\n name: string;\r\n limitPrams: any = new Object;\r\n selectedItem: DansaiEstimateItem;\r\n calcPriceThrottle = _.throttle(this.calcPrice, 100);\r\n calcResult: DaisiWebEstResult;\r\n entered: boolean;\r\n accept: boolean;\r\n ecEntryError: boolean;\r\n showRule: boolean = false;\r\n estCode: string;\r\n\r\n\r\n dialog1: any;\r\n dialog2: any;\r\n\r\n constructor(private $scope: ng.IScope, private $http: ng.IHttpService, private $cookies: ng.cookies.ICookiesService) {\r\n this.apiClient = new DansaiEstimateApi($http, null, \"https://api.workup-system.com\");\r\n this.resetValues();\r\n\r\n\r\n this.sliderSyncSetup(\"width\", 80, 800);\r\n this.sliderSyncSetup(\"height\", 80, 1100);\r\n this.sliderSyncSetup(\"quant\", 100, 5000, 5);\r\n\r\n\r\n this.apiClient\r\n .dansaiEstimateGetItems()\r\n .then(c => {\r\n //var datas = _(c.data).map(d => ToCamelCaseObject(d));\r\n\r\n this.items = c.data;\r\n this.selectedItem = c.data[0];\r\n this.load();\r\n this.applyQueryStringValues();\r\n\r\n this.changeSelectedItem();\r\n\r\n });\r\n\r\n var height = jQuery('#scroll_box').outerHeight();\r\n jQuery('#scroll_box').on('scroll', function () {\r\n if (this.scrollTop + height >= this.scrollHeight) {\r\n jQuery('#check2').removeClass('disabled');\r\n jQuery('#check2 input').attr('disabled', \"false\");\r\n }\r\n });\r\n\r\n this.dialog1 = (jQuery(\"#dialog-form1\")).dialog({\r\n autoOpen: false,\r\n height: 400,\r\n width: 600,\r\n modal: true,\r\n buttons: {\r\n OK: () => {\r\n this.dialog1.dialog(\"close\");\r\n }\r\n },\r\n close: function () {\r\n }\r\n });\r\n this.dialog2 = (jQuery(\"#dialog-form2\")).dialog({\r\n autoOpen: false,\r\n height: 400,\r\n width: 600,\r\n modal: true,\r\n buttons: {\r\n OK: () => {\r\n this.dialog2.dialog(\"close\");\r\n }\r\n },\r\n close: function () {\r\n }\r\n });\r\n\r\n this.accept = true;\r\n }\r\n\r\n applyQueryStringValues() {\r\n var qv = this.getUrlVars();\r\n if (qv[\"initialSelect\"]) {\r\n var name = decodeURIComponent(qv[\"initialSelect\"]);\r\n var fi = _(this.items).find(c => c.name == name);\r\n if (fi != null) {\r\n this.selectedItem = fi;\r\n }\r\n\r\n this.save();\r\n var url = window.location.href;\r\n var qidx = url.indexOf(\"?\");\r\n url = url.substring(0, qidx);\r\n window.location.href = url;\r\n }\r\n if (qv[\"srcId\"] != null) {\r\n this.apiClient\r\n .dansaiEstimateFindById(qv[\"srcId\"])\r\n .then(c => {\r\n this.width = c.data.width;\r\n this.height = c.data.height;\r\n this.quant = c.data.quantity;\r\n this.selectedItem = _(this.items).find(d => d.name == c.data.name);\r\n });\r\n\r\n }\r\n }\r\n\r\n\r\n sliderSyncSetup(name: string, min: number, max: number, step = 1) {\r\n\r\n this.limitPrams[name] = {\r\n min: min,\r\n max: max,\r\n step: step\r\n };\r\n\r\n var sliderId = '#' + name + '_slider';\r\n var slider = jQuery(sliderId);\r\n slider.slider({\r\n min: min,\r\n max: max,\r\n step: step,\r\n value: this[name],\r\n slide: (e, ui) => {\r\n this[name] = ui.value;\r\n this.changeParam();\r\n this.$scope.$apply();\r\n }\r\n });\r\n this.$scope.$watch(() => this[name], (nv, ov) => {\r\n var slider = jQuery(sliderId);\r\n nv = Number(nv);\r\n nv = Math.max(nv, min);\r\n nv = Math.min(nv, max);\r\n //this[name] = nv;\r\n slider.slider({ value: nv });\r\n this.changeParam();\r\n //this.apply();\r\n }, false);\r\n }\r\n\r\n changeParam() {\r\n if (this.varidate()) {\r\n this.calcPriceThrottle();\r\n }\r\n }\r\n\r\n\r\n calcPrice() {\r\n\r\n //TODO:計算API呼び出し\r\n if (this.selectedItem == null)\r\n return;\r\n\r\n this.apiClient.dansaiEstimateCalc(this.selectedItem.id, this.width, this.height, this.quant)\r\n .then(c => {\r\n this.calcResult = c.data;\r\n\r\n });\r\n\r\n this.save();\r\n }\r\n\r\n varidate(): boolean {\r\n return this.isValid();\r\n }\r\n\r\n resetValues() {\r\n\r\n this.width = 80;\r\n this.height = 80;\r\n try {\r\n this.quant = this.limitPrams[\"quant\"].min;\r\n }\r\n catch (e) {\r\n this.quant = 100;\r\n }\r\n }\r\n\r\n isValid() {\r\n var result = true;\r\n result = result && !this.isRangeOver(\"width\") && !this.isRangeOver(\"height\") && !this.isRangeOver(\"quant\");\r\n\r\n if (this.quant % 5 != 0)\r\n return false;\r\n\r\n if (this.calcResult == null) {\r\n result = false;\r\n }\r\n\r\n return result;\r\n }\r\n\r\n hasNaN(): boolean {\r\n var result = false;\r\n result = result || this.isNaN(\"width\") || this.isNaN(\"height\") || this.isNaN(\"quant\");\r\n return result;\r\n\r\n }\r\n\r\n isRangeOver(name: string) {\r\n var param = this.limitPrams[name];\r\n var value = Number(this[name]);\r\n\r\n if (param == null)\r\n return false;\r\n\r\n if (isNaN(value))\r\n return true;\r\n\r\n if (value < param.min || param.max < value)\r\n return true;\r\n return false;\r\n }\r\n\r\n isNaN(name: string) {\r\n var value = Number(this[name]);\r\n\r\n var value = Number(this[name]);\r\n if (isNaN(value))\r\n return true;\r\n return false;\r\n }\r\n\r\n load() {\r\n try {\r\n var str = this.$cookies.get(\"data\");\r\n\r\n if (str != null) {\r\n var data = JSON.parse(str);\r\n\r\n //TODO:DDLも調整\r\n if (this.items != null) {\r\n this.selectedItem = _(this.items).find(c => c.id == data.selectedItemId);\r\n }\r\n\r\n this.width = data.width;\r\n this.height = data.height;\r\n this.quant = data.quant;\r\n }\r\n }\r\n catch (e) {\r\n }\r\n }\r\n\r\n save() {\r\n var data = {\r\n selectedItemId: this.selectedItem.id,\r\n width: this.width,\r\n height: this.height,\r\n quant: this.quant,\r\n };\r\n var str = JSON.stringify(data, null, null);\r\n this.$cookies.put(\"data\", str);\r\n }\r\n\r\n changeSelectedItem() {\r\n if (this.selectedItem == null)\r\n return;\r\n\r\n this.limitPrams[\"width\"].max = this.selectedItem.maxWidth;\r\n this.limitPrams[\"height\"].max = this.selectedItem.maxHeight;\r\n this.limitPrams[\"quant\"].min = this.selectedItem.minUnit;\r\n\r\n\r\n var sldw = jQuery(\"#width_slider\");\r\n var sldh = jQuery(\"#height_slider\");\r\n var sldq = jQuery(\"#quant_slider\");\r\n\r\n sldw.slider(\"option\", \"max\", this.limitPrams[\"width\"].max);\r\n sldh.slider(\"option\", \"max\", this.limitPrams[\"height\"].max);\r\n sldq.slider(\"option\", \"min\", this.limitPrams[\"quant\"].min);\r\n\r\n this.width = Math.max(this.width, this.limitPrams[\"width\"].min);\r\n this.width = Math.min(this.width, this.limitPrams[\"width\"].max);\r\n this.height = Math.max(this.height, this.limitPrams[\"height\"].min);\r\n this.height = Math.min(this.height, this.limitPrams[\"height\"].max);\r\n this.quant = Math.max(this.quant, this.limitPrams[\"quant\"].min);\r\n this.quant = Math.min(this.quant, this.limitPrams[\"quant\"].max);\r\n\r\n this.calcPriceThrottle();\r\n\r\n\r\n }\r\n\r\n JumpToEstimate() {\r\n var baseUrl = \"https://www.workup-system.com/Estimate/Order/?siteId=4\";\r\n baseUrl = baseUrl + \"&name=\" + encodeURIComponent(this.name);\r\n var productName = this.selectedItem.name + \" \" + this.width + \"x\" + this.height + \"mm\";\r\n baseUrl += \"&\" + this.ToQueryString(0, productName, this.calcResult.unitPrice, this.quant, \"枚\");\r\n\r\n window.open(baseUrl, \"_blank\");\r\n }\r\n\r\n ToQueryString(idx: number, productName: string, unitPrice: number, num: number, unitName: string): string {\r\n var qentity = \"[\" + idx + \"].\";\r\n return qentity + \"productName=\" + encodeURIComponent(productName) + \"&\" + qentity + \"unitPrice=\" + unitPrice + \"&\" + qentity + \"num=\" + num + \"&\" + qentity + \"unitName=\" + encodeURIComponent(unitName);\r\n }\r\n\r\n enterButtonImage(): string {\r\n var on = '//www.dansai.jp/data/daishi/image/est_ent_on.png';\r\n var off = '//www.dansai.jp/data/daishi/image/est_ent_off.png';\r\n var wait = '//www.dansai.jp/data/daishi/image/est_ent_wait.png';\r\n\r\n if (this.entered)\r\n return wait;\r\n\r\n return this.accept ? on : off;\r\n }\r\n\r\n ecEntry() {\r\n if (this.entered)\r\n return;\r\n\r\n if (!this.accept) {\r\n if (this.dialog2 != null) {\r\n this.dialog2.dialog(\"open\");\r\n }\r\n return;\r\n }\r\n\r\n\r\n this.apiClient\r\n .dansaiEstimateEcEntry(this.selectedItem.id, this.width, this.height, this.quant)\r\n .then(c => {\r\n window.location.href = \"//www.dansai.jp/product/\" + c.data;\r\n },\r\n c => {\r\n this.ecEntryError = true;\r\n });\r\n this.entered = true;\r\n }\r\n\r\n toggleAccept() {\r\n if ($('#check2').hasClass('disabled'))\r\n return;\r\n\r\n this.accept = !this.accept;\r\n }\r\n\r\n sohwKiyaku() {\r\n this.showRule = true;\r\n }\r\n\r\n clickAcceps() {\r\n if (this.showRule) {\r\n this.accept = true;\r\n }\r\n else {\r\n this.dialog1.dialog(\"open\");\r\n }\r\n }\r\n uncheckAcceps() {\r\n this.accept = false;\r\n }\r\n\r\n loadSetting() {\r\n this.apiClient\r\n .dansaiEstimateLoad(this.estCode)\r\n .then(c => {\r\n var result = c.data;\r\n this.selectedItem = this.items.filter(d => d.name == c.data.name)[0];\r\n this.width = c.data.width;\r\n this.height = c.data.height;\r\n this.quant = c.data.quantity;\r\n\r\n this.changeSelectedItem();\r\n });\r\n }\r\n getUrlVars(): string[] {\r\n var vars: string[] = [], hash;\r\n var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');\r\n for (var i = 0; i < hashes.length; i++) {\r\n hash = hashes[i].split('=');\r\n vars.push(hash[0]);\r\n vars[hash[0]] = hash[1];\r\n }\r\n return vars;\r\n }\r\n\r\n\r\n fixFooter: boolean = true;\r\n toggleFooter() {\r\n this.fixFooter = !this.fixFooter;\r\n\r\n if (this.fixFooter) {\r\n jQuery(\"#price-container\").css(\"position\", \"fixed\");\r\n jQuery(\".error-container\").css(\"position\", \"fixed\");\r\n jQuery(\"#error-container\").css(\"position\", \"fixed\");\r\n }\r\n else {\r\n jQuery(\"#price-container\").css(\"position\", \"unset\");\r\n jQuery(\".error-container\").css(\"position\", \"unset\");\r\n jQuery(\"#error-container\").css(\"position\", \"unset\");\r\n }\r\n }\r\n calcTax(n: number) {\r\n return Math.floor(n * 1.1);\r\n }\r\n\r\n }\r\n\r\n angular.module(\"dansaiBespokeApp\", ['ngCookies'])\r\n .controller(\"MainCtrl\", MainCtrl);\r\n\r\n}\r\n"],"sourceRoot":""}